@slowcook-ai/cli 0.13.0 → 0.14.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cli.js +9 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/brew/prompts.d.ts +3 -290
  4. package/dist/commands/brew/prompts.d.ts.map +1 -1
  5. package/dist/commands/brew/prompts.js +3 -462
  6. package/dist/commands/brew/prompts.js.map +1 -1
  7. package/dist/commands/extract/index.d.ts +2 -0
  8. package/dist/commands/extract/index.d.ts.map +1 -0
  9. package/dist/commands/extract/index.js +90 -0
  10. package/dist/commands/extract/index.js.map +1 -0
  11. package/dist/commands/init/templates.d.ts.map +1 -1
  12. package/dist/commands/init/templates.js +4 -0
  13. package/dist/commands/init/templates.js.map +1 -1
  14. package/dist/commands/investigate/prompts.d.ts +7 -87
  15. package/dist/commands/investigate/prompts.d.ts.map +1 -1
  16. package/dist/commands/investigate/prompts.js +7 -234
  17. package/dist/commands/investigate/prompts.js.map +1 -1
  18. package/dist/commands/map/emit-tokens.d.ts +53 -0
  19. package/dist/commands/map/emit-tokens.d.ts.map +1 -0
  20. package/dist/commands/map/emit-tokens.js +316 -0
  21. package/dist/commands/map/emit-tokens.js.map +1 -0
  22. package/dist/commands/map/index.d.ts +17 -0
  23. package/dist/commands/map/index.d.ts.map +1 -1
  24. package/dist/commands/map/index.js +72 -5
  25. package/dist/commands/map/index.js.map +1 -1
  26. package/dist/commands/refine/agent.d.ts.map +1 -1
  27. package/dist/commands/refine/agent.js +21 -0
  28. package/dist/commands/refine/agent.js.map +1 -1
  29. package/dist/commands/refine/context.d.ts +11 -0
  30. package/dist/commands/refine/context.d.ts.map +1 -1
  31. package/dist/commands/refine/context.js +45 -0
  32. package/dist/commands/refine/context.js.map +1 -1
  33. package/dist/commands/refine/mock-fixtures.d.ts +39 -0
  34. package/dist/commands/refine/mock-fixtures.d.ts.map +1 -0
  35. package/dist/commands/refine/mock-fixtures.js +86 -0
  36. package/dist/commands/refine/mock-fixtures.js.map +1 -0
  37. package/dist/commands/refine/prompts.d.ts +10 -21
  38. package/dist/commands/refine/prompts.d.ts.map +1 -1
  39. package/dist/commands/refine/prompts.js +10 -376
  40. package/dist/commands/refine/prompts.js.map +1 -1
  41. package/dist/commands/refine/spec-yaml.d.ts +306 -128
  42. package/dist/commands/refine/spec-yaml.d.ts.map +1 -1
  43. package/dist/commands/refine/spec-yaml.js +33 -0
  44. package/dist/commands/refine/spec-yaml.js.map +1 -1
  45. package/dist/commands/sift/prompts.d.ts +3 -111
  46. package/dist/commands/sift/prompts.d.ts.map +1 -1
  47. package/dist/commands/sift/prompts.js +3 -190
  48. package/dist/commands/sift/prompts.js.map +1 -1
  49. package/dist/commands/testgen/prompts.d.ts +3 -13
  50. package/dist/commands/testgen/prompts.d.ts.map +1 -1
  51. package/dist/commands/testgen/prompts.js +3 -384
  52. package/dist/commands/testgen/prompts.js.map +1 -1
  53. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"spec-yaml.d.ts","sourceRoot":"","sources":["../../../src/commands/refine/spec-yaml.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAE3B,+CAA+C;AAC/C,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,UAAU,QAAiC,CAAC;AAoCzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAzKlB;;;;;;;;;;;;;;;;;;;;;;;;;eAyBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJJ,CAAC;AAEF,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CASxD"}
@@ -73,6 +73,39 @@ export const SpecProposalsSchema = z.object({
73
73
  }))
74
74
  .optional(),
75
75
  }).optional(),
76
+ /**
77
+ * 0.14.0-α.1 (mockup-first refinement, data-layer seam) — fixtures
78
+ * the agent has hand-authored to make a mockup behaviorally complete.
79
+ * Keyed by domain (a single-word slug derived from the story's primary
80
+ * resource: `notifications`, `bookmarks`, `feed`). Each domain's
81
+ * `seed` is an arbitrary record of named arrays/values that the
82
+ * generated `<domain>.mock.ts` will export verbatim.
83
+ *
84
+ * Example:
85
+ * fixtures:
86
+ * status: pending
87
+ * proposed_by: refine-agent
88
+ * by_domain:
89
+ * notifications:
90
+ * seed:
91
+ * list:
92
+ * - { id: "n-1", actor_handle: "@alice", read_at: null }
93
+ * - { id: "n-2", actor_handle: "@bob", read_at: "2026-04-25T12:00:00Z" }
94
+ * unread_count: 1
95
+ *
96
+ * Refine writes `src/lib/data/notifications.mock.ts` exporting
97
+ * `seed.list` and `seed.unread_count` as JSON-equivalent constants.
98
+ * The page/component imports from `@/lib/data/notifications`; an
99
+ * env flag `MOCK_STORY_N=1` routes the import to the mock module.
100
+ * Brew (later) writes the real `notifications.ts` and removes the flag.
101
+ */
102
+ fixtures: ProposalBaseSchema.extend({
103
+ by_domain: z
104
+ .record(z.string(), z.object({
105
+ seed: z.record(z.string(), z.unknown()),
106
+ }))
107
+ .optional(),
108
+ }).optional(),
76
109
  });
77
110
  const SpecSchema = z.object({
78
111
  $schema: z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"spec-yaml.js","sourceRoot":"","sources":["../../../src/commands/refine/spec-yaml.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,GAKf,MAAM,mBAAmB,CAAC;AAE3B,+CAA+C;AAC/C,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC;AACjC,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AAEzD,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AAEnE,MAAM,oBAAoB,GAAG,CAAC,CAA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ew is exploratory
5
- * and ratchets across many iterations to flip many tests green, sift
6
- * is **narrow**: one bug, one regression test, minimum-diff fix.
7
- *
8
- * The system prompt has a different orientation from brew's:
9
- * - "the regression test is the contract" (not "the spec")
10
- * - "the bug profile names the failure locus — go there first"
11
- * - "touch the named file and nothing else; halt voluntarily if
12
- * the fix needs more"
13
- * - "this is restoration, not feature work — match existing patterns
14
- * instead of inventing"
2
+ * Re-export shim — see investigate/prompts.ts for the rationale.
3
+ * Source of truth: `@slowcook-ai/llm-anthropic/prompts/sift`.
15
4
  */
16
- export declare const SIFT_SYSTEM = "You are the sift agent for slowcook \u2014 a TDD-first bug-fix flow.\n\n## Your role\n\nYou receive a bug profile (from investigate) and a regression test (from recipe --regression). The regression test is currently RED against the codebase. Your job: make a minimum-diff code change that flips it to GREEN, without disturbing anything else.\n\nYou are NOT brew. Brew implements features from a fresh spec \u2014 you implement fixes for known regressions. Different posture:\n\n- **The regression test IS the contract.** You don't read the spec; you read the test. The test names exactly what behavior must hold; your fix makes that behavior hold.\n- **The bug profile names the failure locus.** The investigate agent already did the diagnostic work \u2014 `failure_locus.file`, `.line`, `.function`, `.diagnosis`. Trust that. Open the file, find the named function, see why the test is failing.\n- **Stay inside fix_scope.** The bug profile lists `fix_scope` paths \u2014 those are your allowed_paths. If your edit needs to touch something outside, halt voluntarily and let the operator widen scope (the locus is probably wrong).\n- **Restoration, not invention.** Match the patterns already in the file. If you're tempted to introduce a new pattern, halt \u2014 that's a story-shaped change, not a bug fix.\n- **Minimum diff.** Bug fixes that look like refactors are bug fixes that have lost the plot. If your diff is more than ~30 lines across more than 2 files, you've drifted. Halt.\n\n## Tools\n\n- **read_file(path)** \u2014 read a file in full.\n- **outline_file(path)** \u2014 compact ~200-token outline (imports, exports, signatures with line numbers). Use first.\n- **list_directory(path)** \u2014 see what's in a dir.\n- **find_references(symbol)** \u2014 find all use sites of a symbol; useful before renaming or extending an existing function.\n- **find_definition(symbol)** \u2014 find where a symbol is declared.\n- **grep(pattern, glob?)** \u2014 repo-wide ripgrep.\n- **write_file(path, contents)** \u2014 replace a file with new contents. Read first, then write the COMPLETE updated contents.\n\nYou do NOT have `run_tests` \u2014 slowcook runs the regression test between your turns and tells you the result in the next prompt. Your only output per turn is read calls + at most one write call.\n\n## Halting voluntarily\n\nIf after one turn of investigation the fix doesn't look minimum-diff\nwithin the bug profile's `fix_scope`, end your turn with:\n\n```\n<halt>\n<reason>One-line reason \u2014 e.g., \"fix requires touching files outside fix_scope\" or \"regression test asserts behavior the named locus doesn't actually control\".</reason>\n</halt>\n```\n\nThe operator picks up your halt, edits the bug profile or widens the scope, and re-runs sift. **Don't guess.** A wrong fix that flips the regression test green by accident is worse than a clean halt \u2014 sift's mistake compounds into the next bug.\n\n## Iteration limits\n\nDefault budget: 3 iterations, ~$0.50 spend cap. The harness halts you automatically beyond that. If you can't fix it in 3 turns, the bug profile is wrong or the scope is too narrow \u2014 halt voluntarily on iteration 2 with a diagnostic.\n";
17
- /**
18
- * Anthropic-shape tool definitions sift presents to the LLM. Subset
19
- * of brew's: read tools + write_file. Excludes brew's
20
- * \`justify_diff_overflow\` (sift halts instead of overflowing) and
21
- * \`find_handler\` (sift's failure locus is already named).
22
- */
23
- export declare const SIFT_TOOLS: ({
24
- name: string;
25
- description: string;
26
- input_schema: {
27
- type: "object";
28
- properties: {
29
- path: {
30
- type: "string";
31
- description: string;
32
- };
33
- symbol?: undefined;
34
- pattern?: undefined;
35
- glob?: undefined;
36
- contents?: undefined;
37
- };
38
- required: string[];
39
- };
40
- } | {
41
- name: string;
42
- description: string;
43
- input_schema: {
44
- type: "object";
45
- properties: {
46
- symbol: {
47
- type: "string";
48
- description: string;
49
- };
50
- path?: undefined;
51
- pattern?: undefined;
52
- glob?: undefined;
53
- contents?: undefined;
54
- };
55
- required: string[];
56
- };
57
- } | {
58
- name: string;
59
- description: string;
60
- input_schema: {
61
- type: "object";
62
- properties: {
63
- pattern: {
64
- type: "string";
65
- description: string;
66
- };
67
- glob: {
68
- type: "string";
69
- description: string;
70
- };
71
- path?: undefined;
72
- symbol?: undefined;
73
- contents?: undefined;
74
- };
75
- required: string[];
76
- };
77
- } | {
78
- name: string;
79
- description: string;
80
- input_schema: {
81
- type: "object";
82
- properties: {
83
- path: {
84
- type: "string";
85
- description: string;
86
- };
87
- contents: {
88
- type: "string";
89
- description: string;
90
- };
91
- symbol?: undefined;
92
- pattern?: undefined;
93
- glob?: undefined;
94
- };
95
- required: string[];
96
- };
97
- })[];
98
- export interface SiftTurnPromptArgs {
99
- iteration: number;
100
- maxIterations: number;
101
- bugProfileYaml: string;
102
- regressionTestPath: string;
103
- regressionTestSrc: string;
104
- /** Latest test run result. Empty on iter 1. */
105
- testResult?: {
106
- status: "red" | "green";
107
- /** Vitest failure message for the regression test (when red). */
108
- failureMessage?: string;
109
- };
110
- /** Files sift has touched in prior iters. Empty on iter 1. */
111
- priorEdits?: string[];
112
- }
113
- export declare function buildSiftTurnPrompt(args: SiftTurnPromptArgs): string;
5
+ export { SIFT_SYSTEM, SIFT_TOOLS, buildSiftTurnPrompt, type SiftTurnPromptArgs, } from "@slowcook-ai/llm-anthropic";
114
6
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/commands/sift/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,WAAW,moGA0CvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwFtB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,+CAA+C;IAC/C,UAAU,CAAC,EAAE;QACX,MAAM,EAAE,KAAK,GAAG,OAAO,CAAC;QACxB,iEAAiE;QACjE,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CA4CpE"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/commands/sift/prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,KAAK,kBAAkB,GACxB,MAAM,4BAA4B,CAAC"}
@@ -1,193 +1,6 @@
1
1
  /**
2
- * Prompts for the `slowcook sift` agent.
3
- *
4
- * Sift is the bug-flow analogue of brew. Where brew is exploratory
5
- * and ratchets across many iterations to flip many tests green, sift
6
- * is **narrow**: one bug, one regression test, minimum-diff fix.
7
- *
8
- * The system prompt has a different orientation from brew's:
9
- * - "the regression test is the contract" (not "the spec")
10
- * - "the bug profile names the failure locus — go there first"
11
- * - "touch the named file and nothing else; halt voluntarily if
12
- * the fix needs more"
13
- * - "this is restoration, not feature work — match existing patterns
14
- * instead of inventing"
2
+ * Re-export shim — see investigate/prompts.ts for the rationale.
3
+ * Source of truth: `@slowcook-ai/llm-anthropic/prompts/sift`.
15
4
  */
16
- export const SIFT_SYSTEM = `You are the sift agent for slowcook — a TDD-first bug-fix flow.
17
-
18
- ## Your role
19
-
20
- You receive a bug profile (from investigate) and a regression test (from recipe --regression). The regression test is currently RED against the codebase. Your job: make a minimum-diff code change that flips it to GREEN, without disturbing anything else.
21
-
22
- You are NOT brew. Brew implements features from a fresh spec — you implement fixes for known regressions. Different posture:
23
-
24
- - **The regression test IS the contract.** You don't read the spec; you read the test. The test names exactly what behavior must hold; your fix makes that behavior hold.
25
- - **The bug profile names the failure locus.** The investigate agent already did the diagnostic work — \`failure_locus.file\`, \`.line\`, \`.function\`, \`.diagnosis\`. Trust that. Open the file, find the named function, see why the test is failing.
26
- - **Stay inside fix_scope.** The bug profile lists \`fix_scope\` paths — those are your allowed_paths. If your edit needs to touch something outside, halt voluntarily and let the operator widen scope (the locus is probably wrong).
27
- - **Restoration, not invention.** Match the patterns already in the file. If you're tempted to introduce a new pattern, halt — that's a story-shaped change, not a bug fix.
28
- - **Minimum diff.** Bug fixes that look like refactors are bug fixes that have lost the plot. If your diff is more than ~30 lines across more than 2 files, you've drifted. Halt.
29
-
30
- ## Tools
31
-
32
- - **read_file(path)** — read a file in full.
33
- - **outline_file(path)** — compact ~200-token outline (imports, exports, signatures with line numbers). Use first.
34
- - **list_directory(path)** — see what's in a dir.
35
- - **find_references(symbol)** — find all use sites of a symbol; useful before renaming or extending an existing function.
36
- - **find_definition(symbol)** — find where a symbol is declared.
37
- - **grep(pattern, glob?)** — repo-wide ripgrep.
38
- - **write_file(path, contents)** — replace a file with new contents. Read first, then write the COMPLETE updated contents.
39
-
40
- You do NOT have \`run_tests\` — slowcook runs the regression test between your turns and tells you the result in the next prompt. Your only output per turn is read calls + at most one write call.
41
-
42
- ## Halting voluntarily
43
-
44
- If after one turn of investigation the fix doesn't look minimum-diff
45
- within the bug profile's \`fix_scope\`, end your turn with:
46
-
47
- \`\`\`
48
- <halt>
49
- <reason>One-line reason — e.g., "fix requires touching files outside fix_scope" or "regression test asserts behavior the named locus doesn't actually control".</reason>
50
- </halt>
51
- \`\`\`
52
-
53
- The operator picks up your halt, edits the bug profile or widens the scope, and re-runs sift. **Don't guess.** A wrong fix that flips the regression test green by accident is worse than a clean halt — sift's mistake compounds into the next bug.
54
-
55
- ## Iteration limits
56
-
57
- Default budget: 3 iterations, ~$0.50 spend cap. The harness halts you automatically beyond that. If you can't fix it in 3 turns, the bug profile is wrong or the scope is too narrow — halt voluntarily on iteration 2 with a diagnostic.
58
- `;
59
- /**
60
- * Anthropic-shape tool definitions sift presents to the LLM. Subset
61
- * of brew's: read tools + write_file. Excludes brew's
62
- * \`justify_diff_overflow\` (sift halts instead of overflowing) and
63
- * \`find_handler\` (sift's failure locus is already named).
64
- */
65
- export const SIFT_TOOLS = [
66
- {
67
- name: "read_file",
68
- description: "Read a file's full contents. Always read before write_file on the same path.",
69
- input_schema: {
70
- type: "object",
71
- properties: {
72
- path: { type: "string", description: "Repo-relative path." },
73
- },
74
- required: ["path"],
75
- },
76
- },
77
- {
78
- name: "outline_file",
79
- description: "Compact outline (imports, top-level exports, signatures with line numbers). Use first to scope.",
80
- input_schema: {
81
- type: "object",
82
- properties: {
83
- path: { type: "string", description: "Repo-relative path." },
84
- },
85
- required: ["path"],
86
- },
87
- },
88
- {
89
- name: "list_directory",
90
- description: "List entries in a directory.",
91
- input_schema: {
92
- type: "object",
93
- properties: {
94
- path: { type: "string", description: "Repo-relative path." },
95
- },
96
- required: ["path"],
97
- },
98
- },
99
- {
100
- name: "find_references",
101
- description: "All use sites of a symbol across the repo (file:line entries).",
102
- input_schema: {
103
- type: "object",
104
- properties: {
105
- symbol: { type: "string", description: "Identifier name." },
106
- },
107
- required: ["symbol"],
108
- },
109
- },
110
- {
111
- name: "find_definition",
112
- description: "Where a symbol is declared.",
113
- input_schema: {
114
- type: "object",
115
- properties: {
116
- symbol: { type: "string", description: "Identifier name." },
117
- },
118
- required: ["symbol"],
119
- },
120
- },
121
- {
122
- name: "grep",
123
- description: "Repo-wide ripgrep. Use when find_references is too narrow (e.g. searching column names in SQL files).",
124
- input_schema: {
125
- type: "object",
126
- properties: {
127
- pattern: { type: "string", description: "Pattern to search." },
128
- glob: {
129
- type: "string",
130
- description: "Optional glob (e.g., 'supabase/migrations/*.sql').",
131
- },
132
- },
133
- required: ["pattern"],
134
- },
135
- },
136
- {
137
- name: "write_file",
138
- description: "Create or fully replace a file. ALWAYS read first, then write the complete updated contents. Restricted to paths inside the bug profile's fix_scope.",
139
- input_schema: {
140
- type: "object",
141
- properties: {
142
- path: { type: "string", description: "Repo-relative path." },
143
- contents: { type: "string", description: "Full new file contents." },
144
- },
145
- required: ["path", "contents"],
146
- },
147
- },
148
- ];
149
- export function buildSiftTurnPrompt(args) {
150
- const lines = [];
151
- lines.push(`# Sift iteration ${args.iteration} of ${args.maxIterations}`);
152
- lines.push("");
153
- lines.push("## Bug profile");
154
- lines.push("```yaml");
155
- lines.push(args.bugProfileYaml);
156
- lines.push("```");
157
- lines.push("");
158
- lines.push("## Regression test (the contract)");
159
- lines.push(`File: \`${args.regressionTestPath}\``);
160
- lines.push("```ts");
161
- lines.push(args.regressionTestSrc);
162
- lines.push("```");
163
- lines.push("");
164
- if (args.testResult) {
165
- if (args.testResult.status === "green") {
166
- lines.push("## Last run: GREEN");
167
- lines.push("");
168
- lines.push("The regression test now passes. You're done — emit a `<halt>` with `<reason>regression green</reason>` so the harness can wrap up.");
169
- }
170
- else {
171
- lines.push("## Last run: RED");
172
- if (args.testResult.failureMessage) {
173
- lines.push("```");
174
- lines.push(args.testResult.failureMessage.slice(0, 1500));
175
- lines.push("```");
176
- }
177
- else {
178
- lines.push("(no failure message captured — run the regression file by hand to see why)");
179
- }
180
- }
181
- lines.push("");
182
- }
183
- if (args.priorEdits && args.priorEdits.length > 0) {
184
- lines.push("## Prior edits this run");
185
- for (const e of args.priorEdits)
186
- lines.push(`- \`${e}\``);
187
- lines.push("");
188
- }
189
- lines.push("## Your turn");
190
- lines.push("Read the failure_locus file, identify why the regression assertion fails, write the minimum diff that flips it. Stay inside fix_scope. Halt voluntarily if the fix needs more.");
191
- return lines.join("\n");
192
- }
5
+ export { SIFT_SYSTEM, SIFT_TOOLS, buildSiftTurnPrompt, } from "@slowcook-ai/llm-anthropic";
193
6
  //# sourceMappingURL=prompts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/commands/sift/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;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CAAC;QACtC,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,UAAU;YAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC1D,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3B,KAAK,CAAC,IAAI,CACR,gLAAgL,CACjL,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/commands/sift/prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,mBAAmB,GAEpB,MAAM,4BAA4B,CAAC"}
@@ -1,16 +1,6 @@
1
1
  /**
2
- * System prompt for the test-gen agent (Phase B2, as of 0.7.0).
3
- *
4
- * Turns a frozen spec YAML into a **bundle**: one tier-1 integration test
5
- * file plus any missing route stubs (so vitest can collect the tests) and
6
- * any missing mock helpers (so the tests have intent-level fakes to call).
7
- * Output is multi-artifact via XML-tagged blocks; slowcook parses each
8
- * block, writes the files, and skips anything that already exists.
9
- *
10
- * Before B2, consumers had to hand-author stubs + helpers (the story-005
11
- * manual intervention on rewo). B2 automates both so an issue can flow
12
- * refine → spec → testgen → brew with zero human touchpoints between
13
- * "merge tests PR" and "review implementation PR."
2
+ * Re-export shim see investigate/prompts.ts for the rationale.
3
+ * Source of truth: `@slowcook-ai/llm-anthropic/prompts/testgen`.
14
4
  */
15
- export declare const TESTGEN_SYSTEM: (projectContext: string) => string;
5
+ export { TESTGEN_SYSTEM } from "@slowcook-ai/llm-anthropic";
16
6
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/commands/testgen/prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,cAAc,GAAI,gBAAgB,MAAM,WAmXuM,CAAC"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/commands/testgen/prompts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC"}