/** * GitHub Actions workflow templates consumed by `slowcook init`. These used * to live in `@slowcook-ai/cli/src/commands/init/templates.ts`, which meant * CLI shipped GitHub-specific YAML despite slowcook's forge-agnostic * pledge. 0.7.0 moves them here so CLI stays neutral. * * Shape: a static function that returns an array of `{ path, contents }` * entries. Init calls it with the CLI version it wants pinned in `.brewing/ * slowcook-cli-version` and writes each entry. No forge credentials * required — this is scaffold-time, not runtime. * * Future forges (GitLab, Gitea, Bitbucket) implement their own * equivalent — e.g. `getGitLabCiArtifacts()` returning `.gitlab-ci.yml`. */ /** A single file the init step will write to the consumer's repo. */ export interface CiArtifact { /** Repo-relative path. */ path: string; /** Full file contents. */ contents: string; /** * Optional executable bit hint. Pre-commit hooks and similar scripts * need 0o755 to actually run; plain text files don't need a bit set. */ executable?: boolean; } /** * Consumer package manager. Filed as slowcook#25 — templates default * to \`npm ci\` which fails on pnpm-only repos. \`getGitHubCiArtifacts\` * threads the detected pm through to each workflow template. */ export type PackageManager = "npm" | "pnpm" | "yarn"; export declare function getGitHubCiArtifacts(params: { cliVersion: string; /** Consumer package manager (slowcook#25). Defaults to npm. */ packageManager?: PackageManager; }): CiArtifact[]; /** * 0.19.4-α (sc#146 finding 2) — spec content validators as a PR check. * * Fires on pull_request when files matching `specs/story-*.yaml` change. * Runs `slowcook check spec` against the changed-files list (so noise * stays narrow). Catches: * * - YAML/Zod parse failures introduced by hand-amendments * - entity.field hallucinations (validated against * `.brewing/repo-knowledge/auto/backend-entities.md`) * - components_to_reuse paths whose mock file doesn't mention the * spec's data fields (shape mismatch — caught by sc#136 lint at * refine emit time, now also at PR-amendment time) * * Why a workflow and not just refine's in-process lint: the in-process * check fires when refine emits the spec. Hand-amendment commits push * straight to git and bypass refine entirely. Without this workflow, * the lint never sees them. */ export declare function slowcookSpecValidateWorkflow(): string; /** Stable identifier for this forge. */ export declare const FORGE_ID: "github"; //# sourceMappingURL=templates.d.ts.map