opencode-swarm 7.155.0 → 7.157.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/background/workspace-snapshot.d.ts +28 -0
- package/dist/cli/{coder-settlement-2kdtysrg.js → coder-settlement-dz2x352d.js} +9 -9
- package/dist/cli/{config-doctor-s6p9aqfv.js → config-doctor-4jxf9w9e.js} +3 -3
- package/dist/cli/{core-ev2ebc4v.js → core-xf2f087t.js} +2 -2
- package/dist/cli/{curation-policy-jabphe51.js → curation-policy-72qx868r.js} +4 -4
- package/dist/cli/{curator-llm-factory-kd8v16jj.js → curator-llm-factory-7mfvey3x.js} +31 -31
- package/dist/cli/{curator-adp0dsv4.js → curator-pjjw3ja4.js} +31 -31
- package/dist/cli/{dispatch-w0rzasz3.js → dispatch-7r46tfr9.js} +10 -8
- package/dist/cli/{evidence-summary-service-kpjpd86j.js → evidence-summary-service-5ffkbs50.js} +12 -12
- package/dist/cli/{gate-evidence-etbcms2v.js → gate-evidence-ne9rbdtb.js} +5 -5
- package/dist/cli/guardrail-explain-b9vr4ta3.js +67 -0
- package/dist/cli/{guardrail-log-614g1pta.js → guardrail-log-hrt36jz5.js} +5 -5
- package/dist/cli/{guardrail-reset-0wdj53cp.js → guardrail-reset-pggm9hx4.js} +31 -31
- package/dist/cli/{hashing-mjwn6j4y.js → hashing-r4hbav6j.js} +1 -1
- package/dist/cli/{hive-promoter-b1wv52fs.js → hive-promoter-7vxm11sm.js} +31 -31
- package/dist/cli/{index-caqe8x14.js → index-12e2hztp.js} +1 -1
- package/dist/cli/{index-rb4t72we.js → index-1dzy1j4v.js} +2 -2
- package/dist/cli/{index-79qymsxf.js → index-2e60kmzg.js} +1 -1
- package/dist/cli/{index-vnn7qq8c.js → index-3f7hqtgg.js} +62 -1
- package/dist/cli/{index-qzqpq75z.js → index-3qpr16k2.js} +52 -33
- package/dist/cli/{index-qj9jrjvr.js → index-3vqdt1sx.js} +5 -5
- package/dist/cli/{index-c590qxts.js → index-4kd1nqd2.js} +8 -3
- package/dist/cli/{index-34wn2ztk.js → index-4w20thrc.js} +22 -4
- package/dist/cli/{index-26cvxrym.js → index-61nkp124.js} +2 -2
- package/dist/cli/{index-6bqqzfbe.js → index-6sbx96v6.js} +2 -2
- package/dist/cli/{index-zvp68qx6.js → index-79k7p589.js} +1 -1
- package/dist/cli/{index-ketfp4rv.js → index-8n602qc2.js} +4 -4
- package/dist/cli/{index-fjcm6wwf.js → index-91ybfvy2.js} +1 -1
- package/dist/cli/{index-wwv3cbv1.js → index-93ymj3j5.js} +5 -5
- package/dist/cli/{index-myt57pht.js → index-9r7gp6cp.js} +5 -1
- package/dist/cli/{index-85p1850w.js → index-b5xm177r.js} +1 -1
- package/dist/cli/{index-0q8kywcf.js → index-dwkrdpz2.js} +1 -1
- package/dist/cli/{index-veajr5x7.js → index-ebratyzr.js} +1 -1
- package/dist/cli/{index-kgdbtwfm.js → index-g0j2hnse.js} +5 -5
- package/dist/cli/{index-2gfe61qp.js → index-gk6wpq41.js} +5259 -1394
- package/dist/cli/{index-aqg7c1z9.js → index-gpf3cjre.js} +1 -1
- package/dist/cli/{index-ctsct3hy.js → index-j3egsxa1.js} +6 -6
- package/dist/cli/{index-xn23xnnk.js → index-n6ayyadp.js} +4 -4
- package/dist/cli/{index-t3xqpece.js → index-n7gv8m7v.js} +4 -4
- package/dist/cli/{index-mm7ase9k.js → index-nd22bsnt.js} +6 -2
- package/dist/cli/{index-c9nabqzd.js → index-ngn6jmad.js} +2 -2
- package/dist/cli/{index-xdy28ngt.js → index-nwkr6tvv.js} +17 -1
- package/dist/cli/{index-spbxf9vn.js → index-p0by16z8.js} +2 -2
- package/dist/cli/{index-dw2q720x.js → index-q94gt4n9.js} +3 -3
- package/dist/cli/{index-kyc2c7hq.js → index-t0kxka8n.js} +2 -2
- package/dist/cli/{index-e90g4dsw.js → index-tvtvhjh0.js} +4 -4
- package/dist/cli/{index-y8552snf.js → index-txdagbh7.js} +6 -1
- package/dist/cli/{index-egnpzfe3.js → index-vbqssmbs.js} +6 -6
- package/dist/cli/{index-ew6fykvv.js → index-xe6zbfps.js} +1 -1
- package/dist/cli/{index-x9tbe9v7.js → index-zq7pw6qg.js} +2 -2
- package/dist/cli/index.js +31 -31
- package/dist/cli/{knowledge-escalator-z09aqvfe.js → knowledge-escalator-d65mctqy.js} +10 -10
- package/dist/cli/{knowledge-events-03f1rwm8.js → knowledge-events-6aet71sp.js} +8 -8
- package/dist/cli/{knowledge-link-4frk38w8.js → knowledge-link-z9cchqdj.js} +3 -3
- package/dist/cli/{knowledge-store-sn28k13f.js → knowledge-store-vvgxbakx.js} +4 -4
- package/dist/cli/{knowledge-validator-rwrt3yja.js → knowledge-validator-4fb6pbpn.js} +6 -6
- package/dist/cli/{model-preflight-b95w8wxy.js → model-preflight-cv9kvw8h.js} +1 -1
- package/dist/cli/{pending-delegations-qe16vfrj.js → pending-delegations-f52jtanf.js} +1 -1
- package/dist/cli/{pr-subscriptions-00evnffe.js → pr-subscriptions-76vg2xya.js} +2 -2
- package/dist/cli/{runner-k1rkbjm8.js → runner-eagt6gf8.js} +5 -5
- package/dist/cli/{scan-cursor-h3mfzjc9.js → scan-cursor-q3530gc8.js} +5 -5
- package/dist/cli/{schema-c37h5xw4.js → schema-5zc62306.js} +6 -2
- package/dist/cli/{scope-persistence-35z42pj5.js → scope-persistence-fzqf115q.js} +7 -7
- package/dist/cli/{skill-generator-60px2mvb.js → skill-generator-kh1z90tm.js} +12 -12
- package/dist/cli/{workspace-snapshot-8269e1p9.js → workspace-snapshot-yq0tc49d.js} +9 -1
- package/dist/cli/{worktree-collision-ownership-2pc20ypq.js → worktree-collision-ownership-2qxjtxt6.js} +3 -3
- package/dist/cli/{worktree-isolation-w4yamc3b.js → worktree-isolation-40v34p0s.js} +31 -31
- package/dist/commands/command-dispatch.d.ts +2 -1
- package/dist/commands/harness.d.ts +14 -0
- package/dist/commands/index.d.ts +3 -1
- package/dist/commands/registry.d.ts +115 -2
- package/dist/config/schema.d.ts +34 -0
- package/dist/harness/contracts.d.ts +492 -0
- package/dist/harness/factory.d.ts +72 -0
- package/dist/harness/hash.d.ts +4 -0
- package/dist/harness/index.d.ts +6 -0
- package/dist/harness/patch.d.ts +3 -0
- package/dist/harness/public-api.d.ts +105 -0
- package/dist/harness/source-candidate.d.ts +45 -0
- package/dist/harness/store.d.ts +256 -0
- package/dist/hooks/pr-workflow-gate.d.ts +291 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +320 -296
- package/dist/lang/manifest-files.d.ts +25 -0
- package/dist/security/write-authority.d.ts +2 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/invalidate-pr-feedback-publication.d.ts +20 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cli/guardrail-explain-wqb5h7kk.js +0 -67
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
DEFAULT_AGENT_PROFILES,
|
|
26
26
|
DEFAULT_ARCHITECT_PROFILE,
|
|
27
27
|
DEFAULT_EXTERNAL_SKILLS_CONFIG,
|
|
28
|
+
DEFAULT_HARNESS_EVOLUTION_CONFIG,
|
|
28
29
|
DEFAULT_MODEL_CONTEXT_TOKENS,
|
|
29
30
|
DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
|
|
30
31
|
DEFAULT_SKILLS_CONFIG,
|
|
@@ -47,6 +48,7 @@ import {
|
|
|
47
48
|
GitConfigSchema,
|
|
48
49
|
GuardrailsConfigSchema,
|
|
49
50
|
GuardrailsProfileSchema,
|
|
51
|
+
HarnessEvolutionConfigSchema,
|
|
50
52
|
HooksConfigSchema,
|
|
51
53
|
IncrementalVerifyConfigSchema,
|
|
52
54
|
IntegrationAnalysisConfigSchema,
|
|
@@ -99,8 +101,8 @@ import {
|
|
|
99
101
|
resolveGeneratedAgentRole,
|
|
100
102
|
resolveGuardrailsConfig,
|
|
101
103
|
stripKnownSwarmPrefix
|
|
102
|
-
} from "./index-
|
|
103
|
-
import"./index-
|
|
104
|
+
} from "./index-4w20thrc.js";
|
|
105
|
+
import"./index-9r7gp6cp.js";
|
|
104
106
|
import"./index-zjygnfay.js";
|
|
105
107
|
import"./index-bk5tah7q.js";
|
|
106
108
|
import"./index-bpmtbmy9.js";
|
|
@@ -159,6 +161,7 @@ export {
|
|
|
159
161
|
IntegrationAnalysisConfigSchema,
|
|
160
162
|
IncrementalVerifyConfigSchema,
|
|
161
163
|
HooksConfigSchema,
|
|
164
|
+
HarnessEvolutionConfigSchema,
|
|
162
165
|
GuardrailsProfileSchema,
|
|
163
166
|
GuardrailsConfigSchema,
|
|
164
167
|
GitConfigSchema,
|
|
@@ -181,6 +184,7 @@ export {
|
|
|
181
184
|
DEFAULT_SKILLS_CONFIG,
|
|
182
185
|
DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
|
|
183
186
|
DEFAULT_MODEL_CONTEXT_TOKENS,
|
|
187
|
+
DEFAULT_HARNESS_EVOLUTION_CONFIG,
|
|
184
188
|
DEFAULT_EXTERNAL_SKILLS_CONFIG,
|
|
185
189
|
DEFAULT_ARCHITECT_PROFILE,
|
|
186
190
|
DEFAULT_AGENT_PROFILES,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
26
|
+
} from "./index-n7gv8m7v.js";
|
|
27
|
+
import"./index-79k7p589.js";
|
|
28
|
+
import"./index-nwkr6tvv.js";
|
|
29
29
|
import"./index-556ja8an.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
30
|
+
import"./index-2e60kmzg.js";
|
|
31
|
+
import"./index-4w20thrc.js";
|
|
32
|
+
import"./index-9r7gp6cp.js";
|
|
33
33
|
import"./index-zjygnfay.js";
|
|
34
34
|
import"./index-9e6fdz2h.js";
|
|
35
35
|
import"./index-4rhhvd1a.js";
|
|
36
36
|
import"./index-bk5tah7q.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-6sbx96v6.js";
|
|
38
38
|
import"./index-xagq35tf.js";
|
|
39
39
|
import"./index-ed5ykebp.js";
|
|
40
40
|
import"./index-h1g8w4v0.js";
|
|
@@ -33,30 +33,30 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-n6ayyadp.js";
|
|
37
|
+
import"./index-tvtvhjh0.js";
|
|
38
|
+
import"./index-gpf3cjre.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
40
|
import"./index-q7sjgr1y.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
41
|
+
import"./index-j3egsxa1.js";
|
|
42
|
+
import"./index-3vqdt1sx.js";
|
|
43
|
+
import"./index-q94gt4n9.js";
|
|
44
44
|
import"./index-gprxjmm7.js";
|
|
45
45
|
import"./index-n832052r.js";
|
|
46
46
|
import"./index-dtn0pne5.js";
|
|
47
47
|
import"./index-z6xqpmqg.js";
|
|
48
48
|
import"./index-r3mvsbtq.js";
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
49
|
+
import"./index-2e60kmzg.js";
|
|
50
|
+
import"./index-4w20thrc.js";
|
|
51
|
+
import"./index-9r7gp6cp.js";
|
|
52
52
|
import"./index-zjygnfay.js";
|
|
53
53
|
import"./index-9e6fdz2h.js";
|
|
54
54
|
import"./index-4rhhvd1a.js";
|
|
55
55
|
import"./index-ae75rja9.js";
|
|
56
|
-
import"./index-
|
|
57
|
-
import"./index-
|
|
56
|
+
import"./index-b5xm177r.js";
|
|
57
|
+
import"./index-xe6zbfps.js";
|
|
58
58
|
import"./index-bk5tah7q.js";
|
|
59
|
-
import"./index-
|
|
59
|
+
import"./index-6sbx96v6.js";
|
|
60
60
|
import"./index-xagq35tf.js";
|
|
61
61
|
import"./index-ed5ykebp.js";
|
|
62
62
|
import"./index-h1g8w4v0.js";
|
|
@@ -10,10 +10,12 @@ import {
|
|
|
10
10
|
parsePorcelainPaths,
|
|
11
11
|
parsePorcelainV2Snapshot,
|
|
12
12
|
readGitTextAtRevision,
|
|
13
|
+
redactRemoteUrlIdentity,
|
|
13
14
|
resolveCommitCountSince,
|
|
14
15
|
resolveCommitCountSinceAsync,
|
|
15
16
|
resolveCurrentGitHead,
|
|
16
17
|
resolveCurrentGitHeadAsync,
|
|
18
|
+
resolveCurrentLocalHeadRefAsync,
|
|
17
19
|
resolveCurrentUpstreamPushTarget,
|
|
18
20
|
resolveCurrentUpstreamPushTargetAsync,
|
|
19
21
|
resolveCurrentUpstreamRemoteRef,
|
|
@@ -36,9 +38,11 @@ import {
|
|
|
36
38
|
resolvePrWorkflowRevisionDigestDetailedAsync,
|
|
37
39
|
resolveRemoteRefsContainingHead,
|
|
38
40
|
resolveRemoteRefsContainingHeadAsync,
|
|
41
|
+
resolveRemoteUrlIdentity,
|
|
42
|
+
resolveRemoteUrlIdentityAsync,
|
|
39
43
|
switchPrFeedbackTrackingCandidateAsync,
|
|
40
44
|
workspaceSnapshotMatches
|
|
41
|
-
} from "./index-
|
|
45
|
+
} from "./index-3f7hqtgg.js";
|
|
42
46
|
import"./index-r3mvsbtq.js";
|
|
43
47
|
import"./index-9e6fdz2h.js";
|
|
44
48
|
import"./index-4rhhvd1a.js";
|
|
@@ -47,6 +51,8 @@ import"./index-a76rekgs.js";
|
|
|
47
51
|
export {
|
|
48
52
|
workspaceSnapshotMatches,
|
|
49
53
|
switchPrFeedbackTrackingCandidateAsync,
|
|
54
|
+
resolveRemoteUrlIdentityAsync,
|
|
55
|
+
resolveRemoteUrlIdentity,
|
|
50
56
|
resolveRemoteRefsContainingHeadAsync,
|
|
51
57
|
resolveRemoteRefsContainingHead,
|
|
52
58
|
resolvePrWorkflowRevisionDigestDetailedAsync,
|
|
@@ -69,10 +75,12 @@ export {
|
|
|
69
75
|
resolveCurrentUpstreamRemoteRef,
|
|
70
76
|
resolveCurrentUpstreamPushTargetAsync,
|
|
71
77
|
resolveCurrentUpstreamPushTarget,
|
|
78
|
+
resolveCurrentLocalHeadRefAsync,
|
|
72
79
|
resolveCurrentGitHeadAsync,
|
|
73
80
|
resolveCurrentGitHead,
|
|
74
81
|
resolveCommitCountSinceAsync,
|
|
75
82
|
resolveCommitCountSince,
|
|
83
|
+
redactRemoteUrlIdentity,
|
|
76
84
|
readGitTextAtRevision,
|
|
77
85
|
parsePorcelainV2Snapshot,
|
|
78
86
|
parsePorcelainPaths,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
WORKTREE_PROVISIONING_OWNER_LEASE_MS,
|
|
7
7
|
removeWorktreeProvisioningOwner,
|
|
8
8
|
scanWorktreeProvisioningOwnersForRecovery
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-dwkrdpz2.js";
|
|
10
10
|
import {
|
|
11
11
|
scanDelegationFallbacksForRecovery,
|
|
12
12
|
scanDelegationsForRecovery
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-12e2hztp.js";
|
|
14
14
|
import"./index-ddszzne4.js";
|
|
15
15
|
import"./index-dtn0pne5.js";
|
|
16
16
|
import"./index-z6xqpmqg.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveGitExecutable
|
|
24
24
|
} from "./index-9e6fdz2h.js";
|
|
25
25
|
import"./index-4rhhvd1a.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-6sbx96v6.js";
|
|
27
27
|
import"./index-xagq35tf.js";
|
|
28
28
|
import"./index-ed5ykebp.js";
|
|
29
29
|
import"./index-h1g8w4v0.js";
|
|
@@ -21,61 +21,61 @@ import {
|
|
|
21
21
|
sanitizeWorktreeTaskId,
|
|
22
22
|
standardWorktreeByCallID,
|
|
23
23
|
standardWorktreeSerializationSessions
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
24
|
+
} from "./index-gk6wpq41.js";
|
|
25
|
+
import"./index-t0kxka8n.js";
|
|
26
|
+
import"./index-4kd1nqd2.js";
|
|
27
|
+
import"./index-nd22bsnt.js";
|
|
28
|
+
import"./index-93ymj3j5.js";
|
|
29
|
+
import"./index-ngn6jmad.js";
|
|
30
30
|
import"./index-134d35c1.js";
|
|
31
31
|
import"./index-nj6rmyeh.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
32
|
+
import"./index-txdagbh7.js";
|
|
33
|
+
import"./index-g0j2hnse.js";
|
|
34
|
+
import"./index-1dzy1j4v.js";
|
|
35
35
|
import"./index-70ha9e09.js";
|
|
36
36
|
import"./index-c8s9a3zh.js";
|
|
37
37
|
import"./index-9ss2m4rs.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-91ybfvy2.js";
|
|
39
39
|
import"./index-zsrtt42s.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
40
|
+
import"./index-vbqssmbs.js";
|
|
41
|
+
import"./index-dwkrdpz2.js";
|
|
42
|
+
import"./index-n6ayyadp.js";
|
|
43
|
+
import"./index-tvtvhjh0.js";
|
|
44
|
+
import"./index-gpf3cjre.js";
|
|
45
45
|
import"./index-rtry5xyf.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
46
|
+
import"./index-61nkp124.js";
|
|
47
|
+
import"./index-p0by16z8.js";
|
|
48
|
+
import"./index-12e2hztp.js";
|
|
49
49
|
import"./index-ddszzne4.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
50
|
+
import"./index-3f7hqtgg.js";
|
|
51
|
+
import"./index-n7gv8m7v.js";
|
|
52
|
+
import"./index-79k7p589.js";
|
|
53
|
+
import"./index-nwkr6tvv.js";
|
|
54
54
|
import"./index-556ja8an.js";
|
|
55
55
|
import"./index-4fwbbad3.js";
|
|
56
56
|
import"./index-b43rt5ph.js";
|
|
57
57
|
import"./index-q7sjgr1y.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-j3egsxa1.js";
|
|
59
|
+
import"./index-3vqdt1sx.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveWorktreeIsolationConfig
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-q94gt4n9.js";
|
|
63
63
|
import"./index-gprxjmm7.js";
|
|
64
64
|
import"./index-n832052r.js";
|
|
65
65
|
import"./index-dtn0pne5.js";
|
|
66
66
|
import"./index-z6xqpmqg.js";
|
|
67
67
|
import"./index-r3mvsbtq.js";
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
70
|
-
import"./index-
|
|
68
|
+
import"./index-2e60kmzg.js";
|
|
69
|
+
import"./index-4w20thrc.js";
|
|
70
|
+
import"./index-9r7gp6cp.js";
|
|
71
71
|
import"./index-zjygnfay.js";
|
|
72
72
|
import"./index-9e6fdz2h.js";
|
|
73
73
|
import"./index-4rhhvd1a.js";
|
|
74
74
|
import"./index-ae75rja9.js";
|
|
75
|
-
import"./index-
|
|
76
|
-
import"./index-
|
|
75
|
+
import"./index-b5xm177r.js";
|
|
76
|
+
import"./index-xe6zbfps.js";
|
|
77
77
|
import"./index-bk5tah7q.js";
|
|
78
|
-
import"./index-
|
|
78
|
+
import"./index-6sbx96v6.js";
|
|
79
79
|
import"./index-xagq35tf.js";
|
|
80
80
|
import"./index-ed5ykebp.js";
|
|
81
81
|
import"./index-h1g8w4v0.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentDefinition } from '../agents/index.js';
|
|
2
|
-
import type { AutoReviewConfig } from '../config/schema.js';
|
|
2
|
+
import type { AutoReviewConfig, PluginConfig } from '../config/schema.js';
|
|
3
3
|
import type { EvaluationModelDispatcher } from '../evaluation/model-dispatcher.js';
|
|
4
4
|
import type { ReviewModelDispatcher } from '../review/contracts.js';
|
|
5
5
|
import type { ReviewAgentModelRegistry } from '../review/runtime.js';
|
|
@@ -29,6 +29,7 @@ export declare function executeSwarmCommand(args: {
|
|
|
29
29
|
sessionID: string;
|
|
30
30
|
tokens: string[];
|
|
31
31
|
packageRoot?: string;
|
|
32
|
+
config?: PluginConfig;
|
|
32
33
|
buildHelpText?: () => string;
|
|
33
34
|
policy?: SwarmCommandPolicy;
|
|
34
35
|
evaluationModelDispatcher?: EvaluationModelDispatcher;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AgentDefinition } from '../agents/index.js';
|
|
2
|
+
import { type PluginConfig } from '../config/schema.js';
|
|
3
|
+
type HarnessCommandOptions = {
|
|
4
|
+
config?: PluginConfig;
|
|
5
|
+
};
|
|
6
|
+
export declare function handleBlueprintValidateCommand(directory: string, args: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
7
|
+
export declare function handleBlueprintCurrentCommand(directory: string, agents: Record<string, AgentDefinition>, options?: HarnessCommandOptions): Promise<string>;
|
|
8
|
+
export declare function handleBlueprintHistoryCommand(directory: string, args?: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
9
|
+
export declare function handleBlueprintDiffCommand(directory: string, args: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
10
|
+
export declare function handleBlueprintExportCommand(directory: string, args: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
11
|
+
export declare function handleHarnessCandidateValidateCommand(directory: string, args: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
12
|
+
export declare function handleHarnessCandidateShowCommand(directory: string, args: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
13
|
+
export declare function handleHarnessCandidateDiffCommand(directory: string, args: string[], options?: HarnessCommandOptions): Promise<string>;
|
|
14
|
+
export {};
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentDefinition } from '../agents/index.js';
|
|
2
|
-
import type { AutoReviewConfig } from '../config/schema.js';
|
|
2
|
+
import type { AutoReviewConfig, PluginConfig } from '../config/schema.js';
|
|
3
3
|
import type { EvaluationModelDispatcher } from '../evaluation/model-dispatcher.js';
|
|
4
4
|
import type { ReviewModelDispatcher } from '../review/contracts.js';
|
|
5
5
|
import type { ReviewAgentModelRegistry } from '../review/runtime.js';
|
|
@@ -38,6 +38,7 @@ export { handleGateStatsCommand } from './gate-stats';
|
|
|
38
38
|
export { handleGuardrailExplain } from './guardrail-explain';
|
|
39
39
|
export { handleGuardrailLog } from './guardrail-log';
|
|
40
40
|
export { handleHandoffCommand } from './handoff';
|
|
41
|
+
export { handleBlueprintCurrentCommand, handleBlueprintDiffCommand, handleBlueprintExportCommand, handleBlueprintHistoryCommand, handleBlueprintValidateCommand, handleHarnessCandidateDiffCommand, handleHarnessCandidateShowCommand, handleHarnessCandidateValidateCommand, } from './harness';
|
|
41
42
|
export { handleHistoryCommand } from './history';
|
|
42
43
|
export { handleKnowledgeListCommand, handleKnowledgeMigrateCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, handleKnowledgeRetryHardeningCommand, handleKnowledgeUnactionableCommand, } from './knowledge';
|
|
43
44
|
export { handleLearningCommand } from './learning';
|
|
@@ -72,6 +73,7 @@ export declare function buildHelpText(): string;
|
|
|
72
73
|
*/
|
|
73
74
|
export declare function createSwarmCommandHandler(directory: string, agents: Record<string, AgentDefinition>, options?: {
|
|
74
75
|
getActiveAgentName?: (sessionID: string) => string | undefined;
|
|
76
|
+
config?: PluginConfig;
|
|
75
77
|
packageRoot?: string;
|
|
76
78
|
registeredAgents?: Record<string, {
|
|
77
79
|
tools?: Record<string, boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentDefinition } from '../agents/index.js';
|
|
2
|
-
import type { AutoReviewConfig } from '../config/schema.js';
|
|
2
|
+
import type { AutoReviewConfig, PluginConfig } from '../config/schema.js';
|
|
3
3
|
import type { EvaluationModelDispatcher } from '../evaluation/model-dispatcher.js';
|
|
4
4
|
import type { ReviewModelDispatcher } from '../review/contracts.js';
|
|
5
5
|
import type { ReviewAgentModelRegistry } from '../review/runtime.js';
|
|
@@ -14,6 +14,7 @@ export type CommandContext = {
|
|
|
14
14
|
args: string[];
|
|
15
15
|
sessionID: string;
|
|
16
16
|
agents: Record<string, AgentDefinition>;
|
|
17
|
+
config?: PluginConfig;
|
|
17
18
|
packageRoot?: string;
|
|
18
19
|
/**
|
|
19
20
|
* Dispatch path identifier. Issue #890: forensic audit trail for
|
|
@@ -73,6 +74,118 @@ export type CommandEntry = {
|
|
|
73
74
|
toolNoArgs?: boolean;
|
|
74
75
|
};
|
|
75
76
|
export declare const COMMAND_REGISTRY: {
|
|
77
|
+
readonly 'blueprint validate': {
|
|
78
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
79
|
+
readonly description: "Validate a declarative harness blueprint or atomic blueprint patch";
|
|
80
|
+
readonly args: "<project-relative-json>";
|
|
81
|
+
readonly category: "utility";
|
|
82
|
+
readonly toolPolicy: "none";
|
|
83
|
+
};
|
|
84
|
+
readonly 'blueprint current': {
|
|
85
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
86
|
+
readonly description: "Show the ledger-derived current harness blueprint projection";
|
|
87
|
+
readonly args: "";
|
|
88
|
+
readonly category: "utility";
|
|
89
|
+
readonly toolPolicy: "none";
|
|
90
|
+
};
|
|
91
|
+
readonly 'blueprint history': {
|
|
92
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
93
|
+
readonly description: "Show bounded hash-verified harness version history";
|
|
94
|
+
readonly args: "[--limit <1..100>]";
|
|
95
|
+
readonly category: "utility";
|
|
96
|
+
readonly toolPolicy: "none";
|
|
97
|
+
};
|
|
98
|
+
readonly 'blueprint diff': {
|
|
99
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
100
|
+
readonly description: "Compare two stored harness blueprint versions";
|
|
101
|
+
readonly args: "<from-version> <to-version>";
|
|
102
|
+
readonly category: "utility";
|
|
103
|
+
readonly toolPolicy: "none";
|
|
104
|
+
};
|
|
105
|
+
readonly 'blueprint export': {
|
|
106
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
107
|
+
readonly description: "Export a canonical stored harness blueprint";
|
|
108
|
+
readonly args: "[version]";
|
|
109
|
+
readonly category: "utility";
|
|
110
|
+
readonly toolPolicy: "none";
|
|
111
|
+
};
|
|
112
|
+
readonly 'harness candidate validate': {
|
|
113
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
114
|
+
readonly description: "Validate an inert harness candidate manifest";
|
|
115
|
+
readonly args: "<project-relative-json>";
|
|
116
|
+
readonly category: "utility";
|
|
117
|
+
readonly toolPolicy: "none";
|
|
118
|
+
};
|
|
119
|
+
readonly 'harness candidate show': {
|
|
120
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
121
|
+
readonly description: "Show bounded harness candidate metadata without raw patch content";
|
|
122
|
+
readonly args: "<candidate-id>";
|
|
123
|
+
readonly category: "utility";
|
|
124
|
+
readonly toolPolicy: "none";
|
|
125
|
+
};
|
|
126
|
+
readonly 'harness candidate diff': {
|
|
127
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
128
|
+
readonly description: "Show candidate file and blueprint-change metadata without raw patch content";
|
|
129
|
+
readonly args: "<candidate-id>";
|
|
130
|
+
readonly category: "utility";
|
|
131
|
+
readonly toolPolicy: "none";
|
|
132
|
+
};
|
|
133
|
+
readonly 'blueprint-validate': {
|
|
134
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
135
|
+
readonly description: "TUI shortcut alias for blueprint validate";
|
|
136
|
+
readonly category: "utility";
|
|
137
|
+
readonly aliasOf: "blueprint validate";
|
|
138
|
+
readonly deprecated: true;
|
|
139
|
+
};
|
|
140
|
+
readonly 'blueprint-current': {
|
|
141
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
142
|
+
readonly description: "TUI shortcut alias for blueprint current";
|
|
143
|
+
readonly category: "utility";
|
|
144
|
+
readonly aliasOf: "blueprint current";
|
|
145
|
+
readonly deprecated: true;
|
|
146
|
+
};
|
|
147
|
+
readonly 'blueprint-history': {
|
|
148
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
149
|
+
readonly description: "TUI shortcut alias for blueprint history";
|
|
150
|
+
readonly category: "utility";
|
|
151
|
+
readonly aliasOf: "blueprint history";
|
|
152
|
+
readonly deprecated: true;
|
|
153
|
+
};
|
|
154
|
+
readonly 'blueprint-diff': {
|
|
155
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
156
|
+
readonly description: "TUI shortcut alias for blueprint diff";
|
|
157
|
+
readonly category: "utility";
|
|
158
|
+
readonly aliasOf: "blueprint diff";
|
|
159
|
+
readonly deprecated: true;
|
|
160
|
+
};
|
|
161
|
+
readonly 'blueprint-export': {
|
|
162
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
163
|
+
readonly description: "TUI shortcut alias for blueprint export";
|
|
164
|
+
readonly category: "utility";
|
|
165
|
+
readonly aliasOf: "blueprint export";
|
|
166
|
+
readonly deprecated: true;
|
|
167
|
+
};
|
|
168
|
+
readonly 'harness-candidate-validate': {
|
|
169
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
170
|
+
readonly description: "TUI shortcut alias for harness candidate validate";
|
|
171
|
+
readonly category: "utility";
|
|
172
|
+
readonly aliasOf: "harness candidate validate";
|
|
173
|
+
readonly deprecated: true;
|
|
174
|
+
};
|
|
175
|
+
readonly 'harness-candidate-show': {
|
|
176
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
177
|
+
readonly description: "TUI shortcut alias for harness candidate show";
|
|
178
|
+
readonly category: "utility";
|
|
179
|
+
readonly aliasOf: "harness candidate show";
|
|
180
|
+
readonly deprecated: true;
|
|
181
|
+
};
|
|
182
|
+
readonly 'harness-candidate-diff': {
|
|
183
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
184
|
+
readonly description: "TUI shortcut alias for harness candidate diff";
|
|
185
|
+
readonly category: "utility";
|
|
186
|
+
readonly aliasOf: "harness candidate diff";
|
|
187
|
+
readonly deprecated: true;
|
|
188
|
+
};
|
|
76
189
|
readonly 'acknowledge-spec-drift': {
|
|
77
190
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
78
191
|
readonly description: "Acknowledge that the spec has drifted from the plan and suppress further warnings";
|
|
@@ -639,7 +752,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
639
752
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
640
753
|
readonly description: "Clear a stuck PR_REVIEW/PR_FEEDBACK mechanical gate and stop the auto-resume loop [mode] [reason]";
|
|
641
754
|
readonly args: "[PR_REVIEW|PR_FEEDBACK] [reason...]";
|
|
642
|
-
readonly details: "Human-only escape hatch for an unrecoverable PR_REVIEW or PR_FEEDBACK mechanical gate. When the architect cannot reach complete_pr_workflow — for example a compound `git fetch && git checkout` was rejected as read-only shell syntax, the PR head cannot be fetched, or the working tree is on the wrong branch — running this clears the durable gate state for the current session and stops the auto-resume loop without depending on the trapped model. The agent itself cannot run this command; it must call the abort_pr_workflow tool (or ask you to run this command). Both paths funnel into the same fail-closed abortPrWorkflow hook, which refuses while the workflow is armed for publication or while PR workflow lanes are still in flight. This human-only force path has exactly one exception to
|
|
755
|
+
readonly details: "Human-only escape hatch for an unrecoverable PR_REVIEW or PR_FEEDBACK mechanical gate. When the architect cannot reach complete_pr_workflow — for example a compound `git fetch && git checkout` was rejected as read-only shell syntax, the PR head cannot be fetched, or the working tree is on the wrong branch — running this clears the durable gate state for the current session and stops the auto-resume loop without depending on the trapped model. The agent itself cannot run this command; it must call the abort_pr_workflow tool (or ask you to run this command). Both paths funnel into the same fail-closed abortPrWorkflow hook, which refuses while the workflow is armed for publication or while PR workflow lanes are still in flight. Issue #2108 adds the two audited exits from an armed publication window: the invalidate_pr_feedback_publication tool (change approved content — every approval of the generation is superseded and the full ladder re-runs) and the abort_pr_workflow tool kind \"cancel-publication\" with cancel_publication: true and a reason (terminal no-publish cancellation; never grants push authority). A plain recovery or force abort never clears an armed window. This human-only force path has exactly one exception to the lane refusal (issue #2251): when the ONLY lanes still blocking are ones past the 30-minute staleness horizon that the liveness probe reports as still running — a lane nothing will ever settle on a schedule — it clears the gate anyway, names exactly which lanes it overrode, and finalizes their delegation records so the session can start a new PR workflow. Those sessions are NOT stopped and their output is NOT collected. A lane with a fresh updatedAt still blocks even under force, and any delegation record that still keeps the session blocked is named in the warning. When checkout preparation preserved a stash, the result instructs the caller to run prepare_pr_workflow_checkout operation=restore after the clear. An audit event is appended to .swarm/events.jsonl.";
|
|
643
756
|
readonly category: "utility";
|
|
644
757
|
readonly toolPolicy: "restricted";
|
|
645
758
|
};
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -1003,6 +1003,27 @@ export declare const SkillPropagationConfigSchema: z.ZodObject<{
|
|
|
1003
1003
|
audiences: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
|
|
1004
1004
|
}, z.core.$strip>;
|
|
1005
1005
|
export type SkillPropagationConfig = z.infer<typeof SkillPropagationConfigSchema>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Declarative HarnessOpt mutation policy (issue #1825).
|
|
1008
|
+
*
|
|
1009
|
+
* This block is consumed only by explicit harness API/command calls. It does
|
|
1010
|
+
* not enable activation, optimization, init-time scans, or candidate execution.
|
|
1011
|
+
*/
|
|
1012
|
+
export declare const HarnessEvolutionConfigSchema: z.ZodObject<{
|
|
1013
|
+
source_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1014
|
+
extra_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1015
|
+
max_patch_bytes: z.ZodDefault<z.ZodNumber>;
|
|
1016
|
+
max_files: z.ZodDefault<z.ZodNumber>;
|
|
1017
|
+
max_file_bytes: z.ZodDefault<z.ZodNumber>;
|
|
1018
|
+
max_total_bytes: z.ZodDefault<z.ZodNumber>;
|
|
1019
|
+
max_changed_lines: z.ZodDefault<z.ZodNumber>;
|
|
1020
|
+
max_versions: z.ZodDefault<z.ZodNumber>;
|
|
1021
|
+
max_inactive_candidates: z.ZodDefault<z.ZodNumber>;
|
|
1022
|
+
max_replay_records: z.ZodDefault<z.ZodNumber>;
|
|
1023
|
+
max_output_bytes: z.ZodDefault<z.ZodNumber>;
|
|
1024
|
+
}, z.core.$strict>;
|
|
1025
|
+
export type HarnessEvolutionConfig = z.infer<typeof HarnessEvolutionConfigSchema>;
|
|
1026
|
+
export declare const DEFAULT_HARNESS_EVOLUTION_CONFIG: HarnessEvolutionConfig;
|
|
1006
1027
|
export declare const SkillImproverConfigSchema: z.ZodObject<{
|
|
1007
1028
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1008
1029
|
model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2516,6 +2537,19 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
2516
2537
|
}>>;
|
|
2517
2538
|
allow_deterministic_fallback: z.ZodDefault<z.ZodBoolean>;
|
|
2518
2539
|
}, z.core.$strip>>;
|
|
2540
|
+
harness_evolution: z.ZodOptional<z.ZodObject<{
|
|
2541
|
+
source_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2542
|
+
extra_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2543
|
+
max_patch_bytes: z.ZodDefault<z.ZodNumber>;
|
|
2544
|
+
max_files: z.ZodDefault<z.ZodNumber>;
|
|
2545
|
+
max_file_bytes: z.ZodDefault<z.ZodNumber>;
|
|
2546
|
+
max_total_bytes: z.ZodDefault<z.ZodNumber>;
|
|
2547
|
+
max_changed_lines: z.ZodDefault<z.ZodNumber>;
|
|
2548
|
+
max_versions: z.ZodDefault<z.ZodNumber>;
|
|
2549
|
+
max_inactive_candidates: z.ZodDefault<z.ZodNumber>;
|
|
2550
|
+
max_replay_records: z.ZodDefault<z.ZodNumber>;
|
|
2551
|
+
max_output_bytes: z.ZodDefault<z.ZodNumber>;
|
|
2552
|
+
}, z.core.$strict>>;
|
|
2519
2553
|
spec_writer: z.ZodOptional<z.ZodObject<{
|
|
2520
2554
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2521
2555
|
model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|