export declare const CLI_VERSION_FOR_TEMPLATES = "0.6.9"; /** * Path of the single-source-of-truth CLI pin file. Every workflow reads * from this at run time so a version bump is a one-file edit, not * N files × sed. Bump deliberately via a PR. */ export declare const SLOWCOOK_CLI_VERSION_FILE = ".brewing/slowcook-cli-version"; export declare function slowcookCliVersionFile(cliVersion: string): string; export interface TemplateParams { /** CODEOWNERS handle or team (e.g. "@aminazar" or "@acme/frontend"). */ owner: string; /** Whether the project has Playwright installed (affects stack.json comments). */ hasPlaywright: boolean; } export declare const SLOWCOOK_CODEOWNERS_MARKER_BEGIN = "# --- slowcook:frozen-paths BEGIN ---"; export declare const SLOWCOOK_CODEOWNERS_MARKER_END = "# --- slowcook:frozen-paths END ---"; export declare const SLOWCOOK_GITIGNORE_MARKER_BEGIN = "# --- slowcook:derived-files BEGIN ---"; export declare const SLOWCOOK_GITIGNORE_MARKER_END = "# --- slowcook:derived-files END ---"; export declare function frozenPathsJson(): string; export declare function contextMdTemplate(): string; export declare function brewingReadme(): string; export declare function codeownersSection(params: TemplateParams): string; export declare function codeownersFullFile(params: TemplateParams): string; export declare function gitkeep(): string; /** * Committable git pre-commit hook that keeps `.brewing/code-map.*` * fresh on disk so brew agents and `slowcook map check` see up-to-date * snapshots when they run. * * 0.12.4+: code-map files are NOT tracked in git (added to .gitignore * by `slowcook init`). Earlier versions committed them, which produced * merge conflicts on every parallel PR — two brews regenerating the * same derived file inevitably diverge. Now the hook regenerates the * map locally + brew/CI workflow steps regenerate at workflow start; * the file never enters git history. * * Activation is a one-time per-clone `git config core.hooksPath .githooks` * — we can't set it from init because it's a local-clone concern. The * generated `.brewing/README.md` documents the one-liner. */ export declare function preCommitHook(): string; /** * 0.12.4+ — gitignore section that slowcook init appends to the * consumer's .gitignore (or creates if absent). Wrapped in the * SLOWCOOK_GITIGNORE_MARKER_* sentinels so subsequent `slowcook init * --force` calls can replace the section without trampling * consumer-added patterns elsewhere in the file. */ /** * 0.12.12+ (Phase 2C) — README inside `.brewing/patterns/`. The * directory itself is the contract; this README documents how to * write a pattern that brew will index. Patterns are *team-authored* * (slowcook never auto-emits them); they live in git, are stable * across brews, and serve as project-specific recipes. */ export declare function patternsReadme(): string; /** * 0.19.x+ — generic agent-bootstrap preflight script. * * Run this from any new agent session's first action. Prints PASS/FAIL * for each prerequisite the agent needs to do real work in this * consumer's environment: * * - SSH client (often needed for remote dev servers, gh-via-ssh, etc.) * - git (writing branches) * - gh CLI (opening PRs — the slowcook branch-discipline rule depends * on `gh pr create`) * - jq (parsing JSON from gh/api calls) * - gh auth status (logged in) * * Consumer-specific checks (SSH key on disk for a remote dev box, etc.) * go in a separate `scripts/agent-preflight.local.sh` that this script * sources when present. Keeps the slowcook-shipped template generic. * * Why this exists: GitHub Actions mounts secrets for workflows; agents * running OUTSIDE workflows (long-lived Claude Code sessions, Managed * Agents, etc.) have no programmatic path to GH secrets and need * out-of-band provisioning by the PM. Without a preflight, the agent * flails on its first action and burns a turn debugging its own * environment. * * Surfaced from a delgoosh bijan-agent triage 2026-05-30: the agent * lacked `gh`, had no path to obtain its SSH key, and the PM-facing * server-setup doc was being handed to the agent as if it were * agent-facing. */ export declare function agentPreflightScript(): string; /** * 0.19.x+ — agent-bootstrap doc. Describes what the PM provisions * out-of-band for each agent (per-agent SSH keys, gh auth, env vars, * etc.) so the agent's preflight passes. * * Lives at \`ops/agent-bootstrap.md\` — under \`ops/\` so it's clearly * PM-facing (agents should consult AGENTS.md for their operating * manual; \`ops/\` files are server-side / per-agent setup runbooks * for the PM). */ export declare function agentBootstrapDoc(): string; export declare function gitignoreSection(): string; //# sourceMappingURL=templates.d.ts.map