framework
Version:
The (AI) Framework: turnkey, zero-config AI orchestration that wraps a coding-agent CLI (Claude Code) as a black box and takes you from an idea to a running app. Vite for AI.
35 lines • 2.06 kB
TypeScript
/**
* The prompts a build session opens with, and the one check that decides between them.
*
* This was the driver-backed half of ai-autopilot's `Bootstrap` spine: injectable build / improve
* steps whose results were wrapped in a synthetic supervised agent so the narration could show a
* phase. The spine went with the review loop (A3/A5), and the session that used it is now one
* prompt honoring gates (D2), so what survives is the prompt text itself.
*/
/** Compose the build prompt for an intent. The stack is the agent's call (#545). */
export declare function buildPrompt(intent: string): string;
/**
* Framing for an agent against an *existing* codebase. The greenfield {@link buildPrompt} tells the
* agent the workspace may be empty and to scaffold from scratch, which is the wrong instruction
* when the user pointed the framework at a project that already exists (#185).
*
* Naming the workspace is the whole job. The rules that used to follow it (do not re-scaffold,
* read the existing code first, make the smallest coherent set of changes) were dropped in #1224:
* they told a capable agent how to do its work rather than what the work was, and the one thing it
* cannot infer, that this codebase already exists, is in the first line. Chosen when the workspace
* already holds source at build time.
*/
export declare function extendPrompt(intent: string): string;
/**
* A hard "the app does not exist yet — create it from scratch" directive, for a build whose
* opening turn left the workspace empty: the agent stalled rather than scaffolding (#182).
*/
export declare function scaffoldPrompt(intent: string): string;
/**
* Whether a workspace holds no app yet — no source file the agent could have
* produced. Used to detect a build that stalled without scaffolding (#182):
* lockfiles, dotfiles, and dependency/output dirs do not count. Best-effort and
* cheap: it stops at the first real file and never throws.
*/
export declare function isWorkspaceEmpty(dir: string): boolean;
//# sourceMappingURL=steps.d.ts.map