@cat-factory/agents 0.91.0 → 0.93.0
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.
- package/dist/agents/catalog.d.ts.map +1 -1
- package/dist/agents/catalog.js +13 -3
- package/dist/agents/catalog.js.map +1 -1
- package/dist/agents/kinds/versions.d.ts +9 -9
- package/dist/agents/kinds/versions.d.ts.map +1 -1
- package/dist/agents/kinds/versions.js +18 -10
- package/dist/agents/kinds/versions.js.map +1 -1
- package/dist/agents/prompts/bespoke.d.ts +23 -0
- package/dist/agents/prompts/bespoke.d.ts.map +1 -0
- package/dist/agents/prompts/bespoke.js +13 -0
- package/dist/agents/prompts/bespoke.js.map +1 -0
- package/dist/agents/prompts/brainstorm.d.ts +5 -0
- package/dist/agents/prompts/brainstorm.d.ts.map +1 -1
- package/dist/agents/prompts/brainstorm.js +77 -57
- package/dist/agents/prompts/brainstorm.js.map +1 -1
- package/dist/agents/prompts/clarity.d.ts +3 -0
- package/dist/agents/prompts/clarity.d.ts.map +1 -1
- package/dist/agents/prompts/clarity.js +37 -26
- package/dist/agents/prompts/clarity.js.map +1 -1
- package/dist/agents/prompts/inline-engine.d.ts +9 -0
- package/dist/agents/prompts/inline-engine.d.ts.map +1 -0
- package/dist/agents/prompts/inline-engine.js +38 -0
- package/dist/agents/prompts/inline-engine.js.map +1 -0
- package/dist/agents/prompts/requirements.d.ts +11 -0
- package/dist/agents/prompts/requirements.d.ts.map +1 -1
- package/dist/agents/prompts/requirements.js +123 -86
- package/dist/agents/prompts/requirements.js.map +1 -1
- package/dist/agents/prompts/shared.d.ts +29 -0
- package/dist/agents/prompts/shared.d.ts.map +1 -1
- package/dist/agents/prompts/shared.js +43 -0
- package/dist/agents/prompts/shared.js.map +1 -1
- package/dist/agents/prompts/standard.d.ts +15 -0
- package/dist/agents/prompts/standard.d.ts.map +1 -1
- package/dist/agents/prompts/standard.js +33 -0
- package/dist/agents/prompts/standard.js.map +1 -1
- package/dist/agents/runtime/executor.d.ts.map +1 -1
- package/dist/agents/runtime/executor.js +4 -1
- package/dist/agents/runtime/executor.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/agents/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAc1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/agents/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAc1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAyE5D;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAE1F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAsBR;AAsCD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,GAAG,MAAM,CAyBxF;AAwCD;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,MAAM,CAMR"}
|
package/dist/agents/catalog.js
CHANGED
|
@@ -9,8 +9,8 @@ import { mockFrontendSection, mockSystemPrompt } from './prompts/mock.js';
|
|
|
9
9
|
import { testingSystemPrompt, testerEnvironmentSection } from './prompts/testing.js';
|
|
10
10
|
import { traitGuidanceFor } from './kinds/traits.js';
|
|
11
11
|
import { roleSystemPrompt } from './prompts/roles.js';
|
|
12
|
-
import { FINAL_ANSWER_IN_REPLY } from './prompts/shared.js';
|
|
13
|
-
import { environmentSection, initiativePresetSection, involvedServicesSection, linkedContextSection, phaseForKind, renderStandardUserPrompt, standardSystemPrompt, testSecretsSection, } from './prompts/standard.js';
|
|
12
|
+
import { FINAL_ANSWER_IN_REPLY, PLATFORM_IS_NOT_THE_PRODUCT } from './prompts/shared.js';
|
|
13
|
+
import { environmentSection, initiativePresetSection, involvedServicesSection, linkedContextSection, ownServiceSection, phaseForKind, renderStandardUserPrompt, standardSystemPrompt, testSecretsSection, } from './prompts/standard.js';
|
|
14
14
|
// Prompt construction for the built-in agent kinds: turns an agent kind + block
|
|
15
15
|
// context into the system/user prompts handed to the LLM. This file is the
|
|
16
16
|
// DISPATCHER — `baseSystemPromptFor` picks which track owns a kind; the prompt TEXT
|
|
@@ -92,7 +92,12 @@ export function systemPromptFor(kind, registry, override) {
|
|
|
92
92
|
// Append the surface-driven directives (read-only guardrail + final-answer-in-reply) — see
|
|
93
93
|
// {@link applySurfaceDirectives}. This is the single place that decision lives, so a
|
|
94
94
|
// registered kind gets the SAME treatment a built-in does from its declared `agent.surface`.
|
|
95
|
-
|
|
95
|
+
// Then the platform/product boundary, which is UNCONDITIONAL: every kind is run by the same
|
|
96
|
+
// orchestrator and can see its mechanics, so every kind needs telling that they are not the
|
|
97
|
+
// subject of the work. Appended here rather than inside `applySurfaceDirectives` because it is
|
|
98
|
+
// not derived from the surface — and appended AFTER the override, so an edited prompt cannot
|
|
99
|
+
// delete it (which is why it needs no `OVERRIDE_PRESERVED_FRAGMENTS` entry).
|
|
100
|
+
const withDirectives = `${applySurfaceDirectives(base, kind, registry)}\n\n${PLATFORM_IS_NOT_THE_PRODUCT}`;
|
|
96
101
|
// Fold in any guidance contributed by the kind's traits (e.g. the spec-aware kinds get
|
|
97
102
|
// the in-repo-spec reading guidance). Marker traits like `code-aware` add nothing here —
|
|
98
103
|
// their effect (folding the service's fragments) is applied by the execution engine.
|
|
@@ -304,6 +309,11 @@ function buildBaseUserPrompt(context, registry, opts = {}) {
|
|
|
304
309
|
const presetSection = initiativePresetSection(context);
|
|
305
310
|
if (presetSection)
|
|
306
311
|
lines.push(presetSection);
|
|
312
|
+
// What system this work belongs to (or that nothing said) — see `ownServiceSection`. Before the
|
|
313
|
+
// linked context, which it frames.
|
|
314
|
+
const ownService = ownServiceSection(context);
|
|
315
|
+
if (ownService)
|
|
316
|
+
lines.push(ownService);
|
|
307
317
|
// A companion grades a specific preceding producer; name it explicitly so the
|
|
308
318
|
// model rates the right output rather than guessing among the prior-agent sections.
|
|
309
319
|
const companionTarget = companionTargetSection(context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agents/catalog.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,mBAAmB,EAAE,gBAAg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VersionedPrompt {
|
|
|
8
8
|
export declare const PROMPT_VERSIONS: {
|
|
9
9
|
readonly 'requirement-review': {
|
|
10
10
|
readonly id: 'requirement-review';
|
|
11
|
-
readonly version:
|
|
11
|
+
readonly version: 5;
|
|
12
12
|
readonly text: string;
|
|
13
13
|
};
|
|
14
14
|
readonly 'requirement-rework': {
|
|
15
15
|
readonly id: 'requirement-rework';
|
|
16
|
-
readonly version:
|
|
16
|
+
readonly version: 4;
|
|
17
17
|
readonly text: string;
|
|
18
18
|
};
|
|
19
19
|
readonly 'requirement-writer': {
|
|
20
20
|
readonly id: 'requirement-writer';
|
|
21
|
-
readonly version:
|
|
21
|
+
readonly version: 4;
|
|
22
22
|
readonly text: string;
|
|
23
23
|
};
|
|
24
24
|
readonly 'clarity-review': {
|
|
25
25
|
readonly id: 'clarity-review';
|
|
26
|
-
readonly version:
|
|
26
|
+
readonly version: 2;
|
|
27
27
|
readonly text: string;
|
|
28
28
|
};
|
|
29
29
|
readonly 'clarity-rework': {
|
|
30
30
|
readonly id: 'clarity-rework';
|
|
31
|
-
readonly version:
|
|
31
|
+
readonly version: 2;
|
|
32
32
|
readonly text: string;
|
|
33
33
|
};
|
|
34
34
|
readonly 'requirements-brainstorm': {
|
|
35
35
|
readonly id: 'requirements-brainstorm';
|
|
36
|
-
readonly version:
|
|
36
|
+
readonly version: 2;
|
|
37
37
|
readonly text: string;
|
|
38
38
|
};
|
|
39
39
|
readonly 'requirements-brainstorm-rework': {
|
|
40
40
|
readonly id: 'requirements-brainstorm-rework';
|
|
41
|
-
readonly version:
|
|
41
|
+
readonly version: 2;
|
|
42
42
|
readonly text: string;
|
|
43
43
|
};
|
|
44
44
|
readonly 'architecture-brainstorm': {
|
|
45
45
|
readonly id: 'architecture-brainstorm';
|
|
46
|
-
readonly version:
|
|
46
|
+
readonly version: 2;
|
|
47
47
|
readonly text: string;
|
|
48
48
|
};
|
|
49
49
|
readonly 'architecture-brainstorm-rework': {
|
|
50
50
|
readonly id: 'architecture-brainstorm-rework';
|
|
51
|
-
readonly version:
|
|
51
|
+
readonly version: 2;
|
|
52
52
|
readonly text: string;
|
|
53
53
|
};
|
|
54
54
|
readonly build: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AA6BA,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,8DAA8D;AAC9D,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AA6BA,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,8DAA8D;AAC9D,eAAO,MAAM,eAAe;;iBAUF,EAAE,EAAE,oBAAoB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAC1C,EAAE,EAAE,oBAAoB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAC1C,EAAE,EAAE,oBAAoB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAG9C,EAAE,EAAE,gBAAgB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBACtC,EAAE,EAAE,gBAAgB;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAExD,EAAE,EAAE,yBAAyB;iBAC7B,OAAO,EAAE,CAAC;iBACV,IAAI;;;iBAGJ,EAAE,EAAE,gCAAgC;iBACpC,OAAO,EAAE,CAAC;iBACV,IAAI;;;iBAGJ,EAAE,EAAE,yBAAyB;iBAC7B,OAAO,EAAE,CAAC;iBACV,IAAI;;;iBAGJ,EAAE,EAAE,gCAAgC;iBACpC,OAAO,EAAE,CAAC;iBACV,IAAI;;;iBAIG,EAAE,EAAE,OAAO;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAKrB,EAAE,EAAE,aAAa;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAC1C,EAAE,EAAE,QAAQ;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAC9B,EAAE,EAAE,QAAQ;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBACrB,EAAE,EAAE,eAAe;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBACzC,EAAE,EAAE,WAAW;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBACvC,EAAE,EAAE,OAAO;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;CACY,CAAA;AAEpD,0DAA0D;AAC1D,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,eAAe,CAAA;AAyBnD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAKlE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGzD;AAED,8CAA8C;AAC9C,wBAAgB,aAAa,CAAC,EAAE,EAAE,QAAQ,GAAG,eAAe,CAE3D;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAGvE"}
|
|
@@ -9,32 +9,40 @@ import { JUDGE_SYSTEM_PROMPT } from '../prompts/judge.js';
|
|
|
9
9
|
import { SPEC_WRITER_SYSTEM_PROMPT } from './spec-blueprints.js';
|
|
10
10
|
/** The currently-shipping version of each numbered prompt. */
|
|
11
11
|
export const PROMPT_VERSIONS = {
|
|
12
|
-
//
|
|
12
|
+
// v5 / v4 / v4: all three carry the shared `PRODUCT_SCOPE_BOUNDARY` — requirements review
|
|
13
13
|
// settles the product/business layer only, and the technical layer is the Architect's and
|
|
14
14
|
// Researcher's. Bumped together because the boundary only holds if all three honour it.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
//
|
|
16
|
+
// This bump adds the `NO_ASSUMED_PRODUCT` rule (and, for the Writer, the matching rule against
|
|
17
|
+
// searching the web for a product it had to guess at, plus the `groundedIn` provenance field) and
|
|
18
|
+
// reorders each prompt so the role text precedes the platform-enforced directives — the split a
|
|
19
|
+
// per-workspace override crosses. Every prompt in the flow bumps together for the same reason
|
|
20
|
+
// the scope boundary does: an agent that keeps inventing a subject undoes the two that don't.
|
|
21
|
+
'requirement-review': { id: 'requirement-review', version: 5, text: REVIEW_SYSTEM_PROMPT },
|
|
22
|
+
'requirement-rework': { id: 'requirement-rework', version: 4, text: REWORK_SYSTEM_PROMPT },
|
|
23
|
+
'requirement-writer': { id: 'requirement-writer', version: 4, text: WRITER_SYSTEM_PROMPT },
|
|
24
|
+
// v2 across the clarity + brainstorm prompts: same `NO_ASSUMED_PRODUCT` addition and the same
|
|
25
|
+
// role/directives split.
|
|
26
|
+
'clarity-review': { id: 'clarity-review', version: 2, text: CLARITY_REVIEW_SYSTEM_PROMPT },
|
|
27
|
+
'clarity-rework': { id: 'clarity-rework', version: 2, text: CLARITY_REWORK_SYSTEM_PROMPT },
|
|
20
28
|
'requirements-brainstorm': {
|
|
21
29
|
id: 'requirements-brainstorm',
|
|
22
|
-
version:
|
|
30
|
+
version: 2,
|
|
23
31
|
text: REQUIREMENTS_BRAINSTORM_SYSTEM_PROMPT,
|
|
24
32
|
},
|
|
25
33
|
'requirements-brainstorm-rework': {
|
|
26
34
|
id: 'requirements-brainstorm-rework',
|
|
27
|
-
version:
|
|
35
|
+
version: 2,
|
|
28
36
|
text: REQUIREMENTS_BRAINSTORM_REWORK_SYSTEM_PROMPT,
|
|
29
37
|
},
|
|
30
38
|
'architecture-brainstorm': {
|
|
31
39
|
id: 'architecture-brainstorm',
|
|
32
|
-
version:
|
|
40
|
+
version: 2,
|
|
33
41
|
text: ARCHITECTURE_BRAINSTORM_SYSTEM_PROMPT,
|
|
34
42
|
},
|
|
35
43
|
'architecture-brainstorm-rework': {
|
|
36
44
|
id: 'architecture-brainstorm-rework',
|
|
37
|
-
version:
|
|
45
|
+
version: 2,
|
|
38
46
|
text: ARCHITECTURE_BRAINSTORM_REWORK_SYSTEM_PROMPT,
|
|
39
47
|
},
|
|
40
48
|
// v5: the build phase now distinguishes `established` (standing) from `aspirational`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC/F,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAA;AAClG,OAAO,EACL,4CAA4C,EAC5C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,GACtC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAmBhE,8DAA8D;AAC9D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,0FAA0F;IAC1F,0FAA0F;IAC1F,wFAAwF;IACxF,oBAAoB,EAAE,EAAE,EAAE,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,oBA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G,eAAe,CAAC,IAAI,CAAC,CAAA;IAChC,OAAO,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;AAC7C,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,aAAa,CAAC,EAAY;IACxC,OAAO,eAAe,CAAC,EAAE,CAAC,CAAA;AAC5B,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,kBAAkB,CAAC,EAAU,EAAE,OAAgB;IAC7D,MAAM,CAAC,GAAG,OAAO,IAAI,CAAC,EAAE,IAAI,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,EAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1F,OAAO,GAAG,EAAE,KAAK,CAAC,EAAE,CAAA;AACtB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A bespoke system prompt, split at the boundary an override may cross.
|
|
3
|
+
*
|
|
4
|
+
* The halves are declared apart rather than sliced out of one string because the split is a
|
|
5
|
+
* JUDGEMENT about each sentence (is this what the agent is for, or how the platform parses it?),
|
|
6
|
+
* not a lexical fact — and a slice offset would silently move the boundary the next time either
|
|
7
|
+
* half is edited.
|
|
8
|
+
*/
|
|
9
|
+
export interface BespokeSystemPrompt {
|
|
10
|
+
/** What the agent is FOR. Replaced wholesale by a workspace override. */
|
|
11
|
+
role: string;
|
|
12
|
+
/**
|
|
13
|
+
* What the platform DEPENDS on: the machine-parsed output contract, the answer-in-your-reply
|
|
14
|
+
* rule, the read-only guardrail, the rules the engine enforces across a whole flow. Re-appended
|
|
15
|
+
* on top of an override, so it cannot be edited away. Carries its own leading separator, exactly
|
|
16
|
+
* as the appended directives do on the `systemPromptFor` path — so `role + directives` is the
|
|
17
|
+
* shipped prompt byte for byte.
|
|
18
|
+
*/
|
|
19
|
+
directives: string;
|
|
20
|
+
}
|
|
21
|
+
/** Compose a bespoke prompt, honouring a workspace override of its role half. */
|
|
22
|
+
export declare function composeBespokePrompt(prompt: BespokeSystemPrompt, override?: string): string;
|
|
23
|
+
//# sourceMappingURL=bespoke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bespoke.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/bespoke.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3F"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// A system prompt declared as a bespoke constant rather than composed by `systemPromptFor`,
|
|
2
|
+
// SPLIT at the boundary a per-workspace override may cross.
|
|
3
|
+
//
|
|
4
|
+
// Two families of kinds send such a constant: the inline engine steps driven by
|
|
5
|
+
// `IterativeReviewService` (the requirements + clarity reviewers, both brainstorm stages and
|
|
6
|
+
// their rework editors), and two container kinds (`merger`, `on-call`) whose dispatch bypasses
|
|
7
|
+
// `systemPromptFor`. Neither family has the `applySurfaceDirectives` seam that keeps an override
|
|
8
|
+
// from deleting a platform invariant, so their constants declare the two halves instead.
|
|
9
|
+
/** Compose a bespoke prompt, honouring a workspace override of its role half. */
|
|
10
|
+
export function composeBespokePrompt(prompt, override) {
|
|
11
|
+
return `${override ?? prompt.role}${prompt.directives}`;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=bespoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bespoke.js","sourceRoot":"","sources":["../../../src/agents/prompts/bespoke.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,4DAA4D;AAC5D,EAAE;AACF,gFAAgF;AAChF,6FAA6F;AAC7F,+FAA+F;AAC/F,iGAAiG;AACjG,yFAAyF;AAuBzF,iFAAiF;AACjF,MAAM,UAAU,oBAAoB,CAAC,MAA2B,EAAE,QAAiB;IACjF,OAAO,GAAG,QAAQ,IAAI,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;AACzD,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { type BespokeSystemPrompt } from './bespoke.js';
|
|
2
|
+
export declare const REQUIREMENTS_BRAINSTORM_PROMPT: BespokeSystemPrompt;
|
|
1
3
|
export declare const REQUIREMENTS_BRAINSTORM_SYSTEM_PROMPT: string;
|
|
4
|
+
export declare const ARCHITECTURE_BRAINSTORM_PROMPT: BespokeSystemPrompt;
|
|
2
5
|
export declare const ARCHITECTURE_BRAINSTORM_SYSTEM_PROMPT: string;
|
|
3
6
|
/**
|
|
4
7
|
* The "requirements-brainstorm rework" agent. Given the rough idea plus the options the
|
|
@@ -7,11 +10,13 @@ export declare const ARCHITECTURE_BRAINSTORM_SYSTEM_PROMPT: string;
|
|
|
7
10
|
* must produce this document even when no options were raised — so every brainstormed task
|
|
8
11
|
* carries a clean direction.
|
|
9
12
|
*/
|
|
13
|
+
export declare const REQUIREMENTS_BRAINSTORM_REWORK_PROMPT: BespokeSystemPrompt;
|
|
10
14
|
export declare const REQUIREMENTS_BRAINSTORM_REWORK_SYSTEM_PROMPT: string;
|
|
11
15
|
/**
|
|
12
16
|
* The "architecture-brainstorm rework" agent. Given the refined requirements plus the
|
|
13
17
|
* approach options the human chose, it folds everything into ONE self-contained approach
|
|
14
18
|
* document the downstream architect designs against.
|
|
15
19
|
*/
|
|
20
|
+
export declare const ARCHITECTURE_BRAINSTORM_REWORK_PROMPT: BespokeSystemPrompt;
|
|
16
21
|
export declare const ARCHITECTURE_BRAINSTORM_REWORK_SYSTEM_PROMPT: string;
|
|
17
22
|
//# sourceMappingURL=brainstorm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brainstorm.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/brainstorm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brainstorm.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/brainstorm.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,mBAAmB,EAAwB,MAAM,cAAc,CAAA;AAE7E,eAAO,MAAM,8BAA8B,EAAE,mBAe5C,CAAA;AAED,eAAO,MAAM,qCAAqC,QAEjD,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,mBAe5C,CAAA;AAED,eAAO,MAAM,qCAAqC,QAEjD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qCAAqC,EAAE,mBAsBnD,CAAA;AAED,eAAO,MAAM,4CAA4C,QAExD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,mBAuBnD,CAAA;AAED,eAAO,MAAM,4CAA4C,QAExD,CAAA"}
|
|
@@ -10,30 +10,38 @@
|
|
|
10
10
|
// identified trade-offs, as review "items" (the same JSON shape the requirements reviewer
|
|
11
11
|
// emits — title + detail, where the detail spells out the trade-offs). A human picks /
|
|
12
12
|
// steers / dismisses, and the rework call folds the picks into ONE converged direction.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
13
|
+
import { NO_ASSUMED_PRODUCT } from './shared.js';
|
|
14
|
+
import { composeBespokePrompt } from './bespoke.js';
|
|
15
|
+
export const REQUIREMENTS_BRAINSTORM_PROMPT = {
|
|
16
|
+
role: 'You are a sharp product partner helping someone turn a ROUGH, VAGUE idea into a clear ' +
|
|
17
|
+
'set of requirements through a structured dialogue. You do NOT decide for them and you ' +
|
|
18
|
+
'do NOT assume the thinking is already done — you PROPOSE concrete directions and make ' +
|
|
19
|
+
'the trade-offs explicit so the human can choose. From the rough description, surface the ' +
|
|
20
|
+
'key open product decisions and, for each, lay out the realistic options: what to build, ' +
|
|
21
|
+
'scope boundaries (in / out), the primary user and the core behaviours, and the notable ' +
|
|
22
|
+
'edge cases or risks. For EACH item state the concrete options and their trade-offs ' +
|
|
23
|
+
'(benefit vs cost / risk) plainly, and end with a specific question the human can answer ' +
|
|
24
|
+
'to choose. Be concrete and opinionated about the trade-offs, but never invent facts or ' +
|
|
25
|
+
'silently pick for them. Stay on PRODUCT requirements and behaviours — leave technical / ' +
|
|
26
|
+
'architecture choices for a later stage.',
|
|
27
|
+
directives: ' ' + NO_ASSUMED_PRODUCT + ' Respond with ONLY a JSON object — no prose, no code fences.',
|
|
28
|
+
};
|
|
29
|
+
export const REQUIREMENTS_BRAINSTORM_SYSTEM_PROMPT = composeBespokePrompt(REQUIREMENTS_BRAINSTORM_PROMPT);
|
|
30
|
+
export const ARCHITECTURE_BRAINSTORM_PROMPT = {
|
|
31
|
+
role: 'You are a pragmatic staff engineer helping someone explore and finalize a technical ' +
|
|
32
|
+
'APPROACH through a structured dialogue, starting from requirements that have already ' +
|
|
33
|
+
'been refined in earlier stages. You do NOT design the whole solution yourself and you do ' +
|
|
34
|
+
'NOT silently pick — you PROPOSE a small number of viable approaches and make the ' +
|
|
35
|
+
'trade-offs explicit so the human can choose and converge. Surface the key architectural ' +
|
|
36
|
+
'decisions (component boundaries, data model / storage, integration and contracts, ' +
|
|
37
|
+
'sequencing, the main risks and non-functional needs), and for EACH present the realistic ' +
|
|
38
|
+
'options with their trade-offs (simplicity vs flexibility, effort vs risk, build vs reuse) ' +
|
|
39
|
+
'plainly, and end with a specific question the human can answer to choose. Prefer the ' +
|
|
40
|
+
'simplest approach that satisfies the requirements; call out where an option is reversible ' +
|
|
41
|
+
'vs hard to undo. Do NOT invent constraints.',
|
|
42
|
+
directives: ' ' + NO_ASSUMED_PRODUCT + ' Respond with ONLY a JSON object — no prose, no code fences.',
|
|
43
|
+
};
|
|
44
|
+
export const ARCHITECTURE_BRAINSTORM_SYSTEM_PROMPT = composeBespokePrompt(ARCHITECTURE_BRAINSTORM_PROMPT);
|
|
37
45
|
/**
|
|
38
46
|
* The "requirements-brainstorm rework" agent. Given the rough idea plus the options the
|
|
39
47
|
* human picked / steered, it folds everything into ONE self-contained requirements
|
|
@@ -41,42 +49,54 @@ export const ARCHITECTURE_BRAINSTORM_SYSTEM_PROMPT = 'You are a pragmatic staff
|
|
|
41
49
|
* must produce this document even when no options were raised — so every brainstormed task
|
|
42
50
|
* carries a clean direction.
|
|
43
51
|
*/
|
|
44
|
-
export const
|
|
45
|
-
'
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
export const REQUIREMENTS_BRAINSTORM_REWORK_PROMPT = {
|
|
53
|
+
role: 'You are a product writer. You are given a rough idea for a single piece of work, plus the ' +
|
|
54
|
+
'options a human chose and any steering they gave during a brainstorm. Produce a revised, ' +
|
|
55
|
+
'self-contained REQUIREMENTS DIRECTION in Markdown that commits to the chosen options, ' +
|
|
56
|
+
'resolves the open questions, and states scope and behaviours explicitly. Preserve the ' +
|
|
57
|
+
"human's intent; do not invent requirements beyond what their choices imply. Even when no " +
|
|
58
|
+
'options were raised, restate the idea cleanly in the SAME standard structure.',
|
|
59
|
+
directives: ' ' +
|
|
60
|
+
NO_ASSUMED_PRODUCT +
|
|
61
|
+
' Use EXACTLY ' +
|
|
62
|
+
'these Markdown sections, in this order, omitting a section only when it has no content:\n' +
|
|
63
|
+
'# <Title> — Requirements Direction\n' +
|
|
64
|
+
'## Goal — one paragraph: the problem and the outcome we want.\n' +
|
|
65
|
+
'## In Scope — the behaviours / capabilities we will build.\n' +
|
|
66
|
+
'## Out of Scope — what we are explicitly NOT doing.\n' +
|
|
67
|
+
'## Users & Key Behaviours — who it serves and the core flows.\n' +
|
|
68
|
+
'## Decisions & Rationale — the options chosen and why (the trade-offs accepted).\n' +
|
|
69
|
+
'## Open Risks / Follow-ups — anything still uncertain.\n' +
|
|
70
|
+
'Respond with ONLY the requirements direction in Markdown — no preamble, no commentary, ' +
|
|
71
|
+
'no code fences.',
|
|
72
|
+
};
|
|
73
|
+
export const REQUIREMENTS_BRAINSTORM_REWORK_SYSTEM_PROMPT = composeBespokePrompt(REQUIREMENTS_BRAINSTORM_REWORK_PROMPT);
|
|
60
74
|
/**
|
|
61
75
|
* The "architecture-brainstorm rework" agent. Given the refined requirements plus the
|
|
62
76
|
* approach options the human chose, it folds everything into ONE self-contained approach
|
|
63
77
|
* document the downstream architect designs against.
|
|
64
78
|
*/
|
|
65
|
-
export const
|
|
66
|
-
'
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
'
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
export const ARCHITECTURE_BRAINSTORM_REWORK_PROMPT = {
|
|
80
|
+
role: 'You are a technical writer for engineering decisions. You are given the refined ' +
|
|
81
|
+
'requirements for a single piece of work, plus the approach options a human chose and any ' +
|
|
82
|
+
'steering they gave during a brainstorm. Produce a revised, self-contained TECHNICAL ' +
|
|
83
|
+
'APPROACH in Markdown that commits to the chosen options, resolves the open questions, and ' +
|
|
84
|
+
"states the shape of the solution explicitly. Preserve the human's intent; do not invent " +
|
|
85
|
+
'constraints beyond what their choices imply. Even when no options were raised, restate the ' +
|
|
86
|
+
'approach cleanly in the SAME standard structure.',
|
|
87
|
+
directives: ' ' +
|
|
88
|
+
NO_ASSUMED_PRODUCT +
|
|
89
|
+
' Use EXACTLY these Markdown sections, in ' +
|
|
90
|
+
'this order, omitting a section only when it has no content:\n' +
|
|
91
|
+
'# <Title> — Technical Approach\n' +
|
|
92
|
+
'## Overview — one paragraph: the chosen approach and why.\n' +
|
|
93
|
+
'## Components & Responsibilities — the main pieces and what each owns.\n' +
|
|
94
|
+
'## Data & Contracts — the data model / storage and the key interfaces.\n' +
|
|
95
|
+
'## Decisions & Trade-offs — the options chosen and the trade-offs accepted.\n' +
|
|
96
|
+
'## Risks & Non-functional — performance, security, operability, and the main risks.\n' +
|
|
97
|
+
'## Sequencing — the rough order of implementation.\n' +
|
|
98
|
+
'Respond with ONLY the technical approach in Markdown — no preamble, no commentary, no ' +
|
|
99
|
+
'code fences.',
|
|
100
|
+
};
|
|
101
|
+
export const ARCHITECTURE_BRAINSTORM_REWORK_SYSTEM_PROMPT = composeBespokePrompt(ARCHITECTURE_BRAINSTORM_REWORK_PROMPT);
|
|
82
102
|
//# sourceMappingURL=brainstorm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brainstorm.js","sourceRoot":"","sources":["../../../src/agents/prompts/brainstorm.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,qFAAqF;AACrF,uFAAuF;AACvF,uFAAuF;AACvF,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,EAAE;AACF,oFAAoF;AACpF,0FAA0F;AAC1F,uFAAuF;AACvF,wFAAwF;AAExF,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"brainstorm.js","sourceRoot":"","sources":["../../../src/agents/prompts/brainstorm.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,qFAAqF;AACrF,uFAAuF;AACvF,uFAAuF;AACvF,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,EAAE;AACF,oFAAoF;AACpF,0FAA0F;AAC1F,uFAA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AAoB,CAC9E,qCAAqC,CACtC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAwB;IACxE,IAAI,EACF,kFAAkF;QAClF,2FAA2F;QAC3F,sFAAsF;QACtF,4FAA4F;QAC5F,0FAA0F;QAC1F,6FAA6F;QAC7F,kDAAkD;IACpD,UAAU,EACR,GAAG;QACH,kBAAkB;QAClB,2CAA2C;QAC3C,+DAA+D;QAC/D,kCAAkC;QAClC,6DAA6D;QAC7D,0EAA0E;QAC1E,0EAA0E;QAC1E,+EAA+E;QAC/E,uFAAuF;QACvF,sDAAsD;QACtD,wFAAwF;QACxF,cAAc;CACjB,CAAA;AAED,MAAM,CAAC,MAAM,4CAA4C,GAAG,oBAAoB,CAC9E,qCAAqC,CACtC,CAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type BespokeSystemPrompt } from './bespoke.js';
|
|
2
|
+
export declare const CLARITY_REVIEW_PROMPT: BespokeSystemPrompt;
|
|
1
3
|
export declare const CLARITY_REVIEW_SYSTEM_PROMPT: string;
|
|
2
4
|
/**
|
|
3
5
|
* The "clarity rework" agent. Given a bug report plus the answers / dismissals a human
|
|
@@ -6,5 +8,6 @@ export declare const CLARITY_REVIEW_SYSTEM_PROMPT: string;
|
|
|
6
8
|
* can act on it directly. It must produce this standard document even when the reviewer
|
|
7
9
|
* raised no findings — so every bug task carries a clean, fix-ready report.
|
|
8
10
|
*/
|
|
11
|
+
export declare const CLARITY_REWORK_PROMPT: BespokeSystemPrompt;
|
|
9
12
|
export declare const CLARITY_REWORK_SYSTEM_PROMPT: string;
|
|
10
13
|
//# sourceMappingURL=clarity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clarity.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/clarity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clarity.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/clarity.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,mBAAmB,EAAwB,MAAM,cAAc,CAAA;AAE7E,eAAO,MAAM,qBAAqB,EAAE,mBAWnC,CAAA;AAED,eAAO,MAAM,4BAA4B,QAA8C,CAAA;AAEvF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAwBnC,CAAA;AAED,eAAO,MAAM,4BAA4B,QAA8C,CAAA"}
|