Three-role workflow (questioner → answerer → explorer) that iterates over .knowledge/ cards to discover and fill knowledge gaps via BFS. - questioner: createLlmRole, reads card, asks 3 technical questions - answerer: spawnSafe nerve knowledge query, judges answers - explorer: reads code, writes/patches .knowledge cards, runs sync - moderator: BFS queue from message history, stagnation rule Closes #266
9 lines
279 B
TypeScript
9 lines
279 B
TypeScript
import type { StartStep } from "@uncaged/nerve-core";
|
|
|
|
type StartMetaWithWorkdir = StartStep["meta"] & { workdir?: string | null };
|
|
|
|
export function resolveWorkdir(start: StartStep): string {
|
|
const m = start.meta as StartMetaWithWorkdir;
|
|
return m.workdir ?? process.cwd();
|
|
}
|