rulvar API reference / @rulvar/planner / runPlannerSelfRepair
Function: runPlannerSelfRepair()
ts
function runPlannerSelfRepair(options): Promise<{
engine: Engine;
entries: JournalEntry[];
planned: PlanResult;
}>;Defined in: packages/planner/src/cassettes.ts:100
One planner-self-repair run: the first draft fails lint, the JSON diagnostics ride the repair prompt, the second draft compiles. Returns the normalized planning journal plus the plan result.
Parameters
| Parameter | Type |
|---|---|
options | { makeAdapter: () => unknown; modelRef: string; seedEntries?: JournalEntry[]; store?: InMemoryStore; } |
options.makeAdapter | () => unknown |
options.modelRef | string |
options.seedEntries? | JournalEntry[] |
options.store? | InMemoryStore |
Returns
Promise<{ engine: Engine; entries: JournalEntry[]; planned: PlanResult; }>