UNPKG

relaycode

Version:

A developer assistant that automates applying code changes from LLMs.

43 lines (40 loc) 1.95 kB
import * as konro from 'konro'; import { OnDemandDbContext } from 'konro'; import { StateFile } from 'relaycode-core'; declare const relaySchema: konro.KonroSchema<{ readonly transactions: { readonly id: konro.ColumnDefinition<number>; readonly uuid: konro.ColumnDefinition<string>; readonly projectId: konro.ColumnDefinition<string>; readonly createdAt: konro.ColumnDefinition<string>; readonly linesAdded: konro.ColumnDefinition<number | null>; readonly linesRemoved: konro.ColumnDefinition<number | null>; readonly linesDifference: konro.ColumnDefinition<number | null>; readonly gitCommitMsg: konro.ColumnDefinition<string | null>; readonly gitCommittedAt: konro.ColumnDefinition<string | null>; readonly promptSummary: konro.ColumnDefinition<string | null>; readonly reasoning: konro.ColumnDefinition<string[]>; readonly operations: konro.ColumnDefinition<({ path: string; type: "write"; content: string; patchStrategy: "replace" | "standard-diff" | "search-replace"; } | { path: string; type: "delete"; } | { type: "rename"; from: string; to: string; })[]>; readonly snapshot: konro.ColumnDefinition<Record<string, string | null>>; readonly approved: konro.ColumnDefinition<boolean>; readonly status: konro.ColumnDefinition<string>; }; }, {}>; type RelaySchema = typeof relaySchema; type TransactionRecord = RelaySchema['base']['transactions']; declare function toStateFile(record: TransactionRecord): StateFile; declare function fromStateFile(stateFile: StateFile): Omit<TransactionRecord, 'id' | 'status'>; declare function getDb(cwd: string): OnDemandDbContext<RelaySchema>; export { type RelaySchema, type TransactionRecord, fromStateFile, getDb, relaySchema, toStateFile };