@cat-factory/agents 0.128.2 → 0.129.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/kinds/versions.d.ts +1 -1
- package/dist/agents/kinds/versions.d.ts.map +1 -1
- package/dist/agents/kinds/versions.js +5 -1
- package/dist/agents/kinds/versions.js.map +1 -1
- package/dist/agents/prompts/delivery-contract.d.ts.map +1 -1
- package/dist/agents/prompts/delivery-contract.js +11 -0
- package/dist/agents/prompts/delivery-contract.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AA8BA,+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;;iBAgBF,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,E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BAAE,IAAI;;;iBACzC,EAAE,EAAE,WAAW;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;;iBAOvC,EAAE,EAAE,OAAO;iBAAE,OAAO,EAAE,CAAC;iBAAE,IAAI;;CACY,CAAA;AAEpD,0DAA0D;AAC1D,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,eAAe,CAAA;AAyBnD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAMlE;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"}
|
|
@@ -54,7 +54,11 @@ export const PROMPT_VERSIONS = {
|
|
|
54
54
|
},
|
|
55
55
|
// v5: the build phase now distinguishes `established` (standing) from `aspirational`
|
|
56
56
|
// (agreed-but-not-built) requirements in the committed `spec/`.
|
|
57
|
-
|
|
57
|
+
// v6: the shared delivery contract states that commits are PUBLISHED as they are made, so the
|
|
58
|
+
// agent adds commits rather than amending/resetting/rebasing ones it already made, a rule it
|
|
59
|
+
// could not infer, since the checkpoint push that publishes them is invisible from inside the
|
|
60
|
+
// container.
|
|
61
|
+
build: { id: 'build', version: 6, text: standardSystemPrompt('build') },
|
|
58
62
|
// Brought under version control alongside the implementation-state axis: the spec-writer now
|
|
59
63
|
// emits `requirementItem.state`, and its output is the durable behaviour contract every later
|
|
60
64
|
// step reads, so a change to it needs to be attributable like the standard phases. Numbering
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/agents/kinds/versions.ts"],"names":[],"mappings":"AA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AAA;IACzB,IAAI,eAAe,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAC3C,MAAM,KAAK,GAAG,YAAY,CAAC,IAA0C,CAAC,CAAA;IACtE,OAAO,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AACpD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,MAAM,EAAE,GAAG,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-contract.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/delivery-contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delivery-contract.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/delivery-contract.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,0BAA0B,QAY3B,CAAA"}
|
|
@@ -18,9 +18,20 @@
|
|
|
18
18
|
// solution versus scratch scripts / build artifacts it created while exploring, so
|
|
19
19
|
// it selects and commits its own work. The harness then pushes those commits and
|
|
20
20
|
// opens the PR — it does not blindly `git add -A` (that would commit garbage).
|
|
21
|
+
//
|
|
22
|
+
// The APPEND-ONLY rule below is the half this contract was missing. The harness
|
|
23
|
+
// checkpoint-pushes the agent's commits about once a minute so an evicted container
|
|
24
|
+
// doesn't lose them, which makes a commit PUBLISHED within a minute of being made,
|
|
25
|
+
// something the agent has no way to observe. Amending or resetting one after that is
|
|
26
|
+
// ordinary git hygiene, and the "validate locally before you finish" instruction below
|
|
27
|
+
// is exactly what leads an agent to commit, run the tests, fix, and amend. The harness
|
|
28
|
+
// now leases its force push so its OWN checkpoint can be rewritten (see
|
|
29
|
+
// `createWorkBranchPusher`), but a rewrite of commits an EARLIER run published still
|
|
30
|
+
// costs a refused push and a re-dispatch, so the rule is stated rather than inferred.
|
|
21
31
|
export const PLATFORM_DELIVERY_CONTRACT = [
|
|
22
32
|
'How your work ships — you commit, the platform delivers:',
|
|
23
33
|
'- Commit your changes yourself, with clear messages. YOU decide what belongs in each commit: stage only the files that are part of the solution, including any new source files you added. Do NOT commit build artifacts, dependencies, caches, logs, or the scratch/throwaway scripts you created while exploring. The platform will not add untracked files for you, so anything you leave uncommitted and untracked is lost.',
|
|
34
|
+
'- Add commits; never rewrite them. The platform publishes your commits to the branch WHILE you work (it pushes them periodically so nothing is lost if this container dies), so treat every commit you have made as already published: do NOT `git commit --amend`, `git reset` a commit away, `git rebase`, or otherwise rewrite history. If you need to change something you already committed, make another commit on top. A messy-but-honest history is fine; a rewritten one can cost the run its delivery.',
|
|
24
35
|
'- After you finish, the platform pushes your branch, opens or updates the pull request, runs CI, and — if a required check fails — dispatches a dedicated CI-fixer agent against this same branch. None of that is your job.',
|
|
25
36
|
'- Do NOT run `git push`, do NOT open or update pull requests, and do NOT use the `gh` CLI or call the GitHub API. You have no push credentials; attempting it only wastes the run.',
|
|
26
37
|
'- Spend your whole budget on the change itself. Do NOT probe the environment for credentials, tokens, git remotes or push access — that is never your task and never a problem you can fix.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-contract.js","sourceRoot":"","sources":["../../../src/agents/prompts/delivery-contract.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,mFAAmF;AACnF,iFAAiF;AACjF,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,kFAAkF;AAClF,oFAAoF;AACpF,2EAA2E;AAC3E,mFAAmF;AACnF,mFAAmF;AACnF,gFAAgF;AAChF,gFAAgF;AAChF,sEAAsE;AACtE,EAAE;AACF,mFAAmF;AACnF,mFAAmF;AACnF,iFAAiF;AACjF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,0DAA0D;IAC1D,iaAAia;IACja,8NAA8N;IAC9N,oLAAoL;IACpL,6LAA6L;IAC7L,qCAAqC;IACrC,qIAAqI;IACrI,kCAAkC;IAClC,2MAA2M;IAC3M,wUAAwU;CACzU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"delivery-contract.js","sourceRoot":"","sources":["../../../src/agents/prompts/delivery-contract.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,mFAAmF;AACnF,iFAAiF;AACjF,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,kFAAkF;AAClF,kFAAkF;AAClF,oFAAoF;AACpF,2EAA2E;AAC3E,mFAAmF;AACnF,mFAAmF;AACnF,gFAAgF;AAChF,gFAAgF;AAChF,sEAAsE;AACtE,EAAE;AACF,mFAAmF;AACnF,mFAAmF;AACnF,iFAAiF;AACjF,+EAA+E;AAC/E,EAAE;AACF,gFAAgF;AAChF,oFAAoF;AACpF,mFAAmF;AACnF,qFAAqF;AACrF,uFAAuF;AACvF,uFAAuF;AACvF,wEAAwE;AACxE,qFAAqF;AACrF,sFAAsF;AACtF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,0DAA0D;IAC1D,iaAAia;IACja,kfAAkf;IAClf,8NAA8N;IAC9N,oLAAoL;IACpL,6LAA6L;IAC7L,qCAAqC;IACrC,qIAAqI;IACrI,kCAAkC;IAClC,2MAA2M;IAC3M,wUAAwU;CACzU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.129.0",
|
|
4
4
|
"description": "Agent catalog, routing, prompts and fragment library for the Agent Architecture Board.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"handlebars": "^4.7.9",
|
|
33
33
|
"p-map": "^7.0.6",
|
|
34
34
|
"valibot": "^1.4.2",
|
|
35
|
-
"@cat-factory/contracts": "0.
|
|
36
|
-
"@cat-factory/kernel": "0.
|
|
37
|
-
"@cat-factory/prompt-fragments": "1.0.
|
|
35
|
+
"@cat-factory/contracts": "0.308.0",
|
|
36
|
+
"@cat-factory/kernel": "0.298.0",
|
|
37
|
+
"@cat-factory/prompt-fragments": "1.0.71"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "7.0.2",
|
|
41
41
|
"vitest": "^4.1.10",
|
|
42
|
-
"@cat-factory/caching": "0.20.
|
|
42
|
+
"@cat-factory/caching": "0.20.16"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsc -b tsconfig.build.json",
|