/** * v1.3.2 §P1 — `create` assist for agent / goal / schedule. * * `agent add` / `goal new` and the new `schedules new` produce a deterministic * scaffold (frontmatter / yaml / placeholders). This adds an opt-in LLM pass * that drafts the *free-text body* from a one-line brief — the agent's process * steps, a schedule's prompt, a goal's intent prose — while the structured * scaffold stays machine-generated. The skill domain already has this (the * messenger author loop in skill-manager.ts); this is the CLI-side, single-shot * counterpart for the other three managers. * * Injectable caller (deterministic in tests, Claude-backed when opted in via * `--assist`). The caller only ever produces a *draft*; the command re-validates * and falls back to the plain scaffold if the draft is unusable — assist can * never produce an invalid asset. */ export type AssistKind = "agent" | "goal" | "schedule"; export interface AssistInput { kind: AssistKind; /** The asset id/name being created. */ name: string; /** The user's one-line intent. */ brief: string; } export interface AssistCaller { /** Draft the free-text body for the asset; null to fall back to the scaffold. */ draft(input: AssistInput): Promise; call_count?: number; } export declare function buildAssistPrompt(input: AssistInput): string; /** Strip a wrapping ``` code fence if the model added one. */ export declare function stripFences(raw: string): string; /** Claude-backed caller — constructed only when the user passes --assist. */ export declare function createClaudeAssistCaller(cwd: string, timeoutMs?: number): AssistCaller;