/** * Get decision template (DEO v1.0 format) */ export declare function getDecisionTemplate(): string; /** * Get risk template */ export declare function getRiskTemplate(): string; /** * Get provenance README content */ export declare function getProvenanceReadme(): string; /** * Get Cursor AI rules */ export declare function getCursorRules(appCode: string, area: string): string; /** * Get Cursor create-decision prompt */ export declare function getCursorCreateDecisionPrompt(): string; /** * Get Cursor create-risk prompt */ export declare function getCursorCreateRiskPrompt(): string; /** * Get Cursor PR review prompt */ export declare function getCursorPRReviewPrompt(): string; /** * Returns the Node.js script used as the preToolUse hook for Cursor * and the PreToolUse hook for Claude Code. * * Behaviour: * 1. Finds the nearest provenance.config.json (walks up from the file being * edited, or falls back to repo root). Handles monorepo layouts by * searching the whole repo when needed. * 2. Reads the last 5 decisions (sorted by mtime) and counts open risks. * 3. Returns an `agent_message` so the agent sees current provenance context * before making changes — without blocking any tool call. */ export declare function getProvenanceContextCheckScript(): string; /** * Returns the stop-event prompt for the Cursor hooks.json. * * Uses a prompt hook (not a script) so it works without any external binary. * The prompt tells the agent to check if any significant decisions were made * and to create a DEO if one is missing. Handles single and monorepo layouts. */ export declare function getCursorSessionEndPrompt(): string; /** * Returns the Cursor .cursor/hooks.json content. * Designed to be merged into any existing hooks.json rather than overwrite. */ export declare function buildCursorHooksJson(existing: any): any; /** * Returns the Claude Code PreToolUse hook script (bash wrapper around the * shared Node.js context check script). Placed at .claude/hooks/PreToolUse.js */ export declare function getClaudePreToolUseHookScript(): string; /** * Returns the Claude Code Stop hook script. * * On Stop, Claude Code sends a JSON object with {stop_hook_active, transcript}. * If no DEO was created this session, we return {"decision":"continue","reason":"..."} * which causes Claude to continue with the instruction to create a record. */ export declare function getClaudeStopHookScript(): string; /** * Create Cursor AI starter pack. * * Installs: * - provenance/ai/cursor/ — rules, prompts (documentation) * - .cursor/hooks.json — preToolUse context injection + stop session-end * - .cursor/hooks/prvc-context-check.js — the hook script * * Merges into any existing .cursor/hooks.json instead of clobbering it. */ export declare function createCursorStarterPack(baseDir: string, appCode: string, area: string): void; /** * Create Claude Code starter pack. * * Installs: * - provenance/ai/claude/README.md — documentation * - .claude/hooks/PreToolUse.js — context injection before file edits * - .claude/hooks/Stop.js — session-end provenance check * - .claude/hooks/settings.json — hook registration */ export declare function createClaudeStarterPack(baseDir: string, appCode: string, area: string): void; /** * Create Antigravity starter pack */ export declare function createAntigravityStarterPack(baseDir: string, appCode: string, area: string): void;