opencode-swarm 7.169.0 → 7.170.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/README.md +1 -0
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/ci/evaluate.d.ts +100 -0
- package/dist/ci/index.d.ts +13 -0
- package/dist/ci/quality-checks.d.ts +58 -0
- package/dist/ci/report.d.ts +21 -0
- package/dist/ci/runtime.d.ts +81 -0
- package/dist/cli/{capability-probe-faqefhah.js → capability-probe-pdwwz8gs.js} +1 -1
- package/dist/cli/{coder-settlement-fd6ba876.js → coder-settlement-65zx1bet.js} +3 -3
- package/dist/cli/{config-doctor-zeppqwwx.js → config-doctor-c30rss1c.js} +2 -2
- package/dist/cli/{core-fj1afc31.js → core-8wkbr1tr.js} +1 -1
- package/dist/cli/{curator-llm-factory-4t773tmz.js → curator-llm-factory-jkjqasfs.js} +20 -20
- package/dist/cli/{curator-emftndv0.js → curator-pckzk1q4.js} +20 -20
- package/dist/cli/{evidence-summary-service-51b69jc3.js → evidence-summary-service-4ydcapke.js} +7 -7
- package/dist/cli/{gate-evidence-53s161wb.js → gate-evidence-xwqfky3m.js} +2 -2
- package/dist/cli/{guardrail-explain-mhx8gt8q.js → guardrail-explain-fe2veh2s.js} +21 -21
- package/dist/cli/{guardrail-log-xg6hrdsq.js → guardrail-log-z38j69bx.js} +3 -3
- package/dist/cli/{guardrail-reset-fgv5kt5x.js → guardrail-reset-mmnzt4mz.js} +20 -20
- package/dist/cli/{hive-promoter-41zygtgx.js → hive-promoter-68hrw1y1.js} +20 -20
- package/dist/cli/{index-sxcfszbe.js → index-06rbdzqn.js} +1 -1
- package/dist/cli/{index-ksybszed.js → index-0xprxg95.js} +1 -1
- package/dist/cli/{index-2znfa537.js → index-31sqcdsd.js} +1 -1
- package/dist/cli/{index-p6xsgk4r.js → index-3axdtaf0.js} +2 -2
- package/dist/cli/{index-nwv3e3kc.js → index-3eh2n3dx.js} +1 -1
- package/dist/cli/{index-zapc8vj4.js → index-3p3y55xg.js} +4 -4
- package/dist/cli/{index-yj24ny5k.js → index-4wc5gfgm.js} +1 -1
- package/dist/cli/{index-wwr67xc0.js → index-59fcfpkh.js} +1 -1
- package/dist/cli/{index-sb1s03y9.js → index-5bbem0ey.js} +3 -3
- package/dist/cli/{index-q1r1cfww.js → index-76qm2c2y.js} +37 -26
- package/dist/cli/{index-0vgs5r39.js → index-8w1mrvbd.js} +3 -3
- package/dist/cli/{index-c7kr7tnk.js → index-9xk97bcf.js} +3 -3
- package/dist/cli/{index-3zcds757.js → index-j144fgk8.js} +3370 -2498
- package/dist/cli/{index-s96dpjsk.js → index-mjn6aqqk.js} +2 -2
- package/dist/cli/{index-1cbjemgh.js → index-n0d5hrs4.js} +2 -2
- package/dist/cli/{index-dd48vt27.js → index-p6fj7qz7.js} +3 -3
- package/dist/cli/{index-83m0y4cj.js → index-pw00xcj0.js} +3 -3
- package/dist/cli/{index-55fkkjec.js → index-r1z8nrb6.js} +5 -5
- package/dist/cli/{index-76ng6vmq.js → index-ssx8087p.js} +4 -4
- package/dist/cli/{index-exf0j569.js → index-t73888m0.js} +1 -1
- package/dist/cli/{index-3bfzpzsb.js → index-td6xrw55.js} +1 -1
- package/dist/cli/{index-8x9keek6.js → index-xztkjj3c.js} +28 -22
- package/dist/cli/{index-egkc2bpv.js → index-ye43mdfm.js} +1 -1
- package/dist/cli/{index-e4dxf5cr.js → index-z5vas8c3.js} +20 -20
- package/dist/cli/{index-5reh1bjz.js → index-zw3hkzch.js} +1 -1
- package/dist/cli/index.js +25 -20
- package/dist/cli/{knowledge-escalator-07s44av0.js → knowledge-escalator-pz2faktx.js} +6 -6
- package/dist/cli/{knowledge-events-j2n1569p.js → knowledge-events-s6s8qedx.js} +4 -4
- package/dist/cli/{knowledge-store-85metj89.js → knowledge-store-dgv3xw3h.js} +1 -1
- package/dist/cli/{knowledge-validator-63k1xzcc.js → knowledge-validator-22qppdyv.js} +2 -2
- package/dist/cli/{pending-delegations-dckmjymn.js → pending-delegations-4r21nf9d.js} +2 -2
- package/dist/cli/{pr-subscriptions-pyh73me6.js → pr-subscriptions-d52xy3zd.js} +1 -1
- package/dist/cli/{pr-workflow-gate-k1r4rjw4.js → pr-workflow-gate-0de81kzw.js} +20 -20
- package/dist/cli/{scan-cursor-k6egg4n0.js → scan-cursor-ahbbejab.js} +2 -2
- package/dist/cli/{schema-vdrtpggt.js → schema-17h2hcw9.js} +1 -1
- package/dist/cli/{scope-persistence-h1mmww19.js → scope-persistence-gcn3zm5e.js} +5 -5
- package/dist/cli/{skill-generator-pmn6gmvk.js → skill-generator-hkqr5qs7.js} +7 -7
- package/dist/cli/{snapshot-coordination-init-rspykgd0.js → snapshot-coordination-init-ms36zxv6.js} +20 -20
- package/dist/cli/{worktree-collision-ownership-x84dzzzc.js → worktree-collision-ownership-7v7gg511.js} +2 -2
- package/dist/cli/{worktree-isolation-nw9pakkx.js → worktree-isolation-nanamt25.js} +20 -20
- package/dist/commands/ci.d.ts +40 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/hooks/gate-denial-tracker.d.ts +18 -14
- package/dist/index.js +436 -434
- package/dist/sandbox/macos/sandbox-exec-executor.d.ts +48 -11
- package/package.json +1 -1
|
@@ -78,45 +78,45 @@ import {
|
|
|
78
78
|
withPrWorkflowCheckoutMutationLock,
|
|
79
79
|
withPrWorkflowCheckoutPreparationLock,
|
|
80
80
|
writePrWorkflowAtomicJson
|
|
81
|
-
} from "./index-
|
|
81
|
+
} from "./index-j144fgk8.js";
|
|
82
82
|
import"./index-5400m33a.js";
|
|
83
83
|
import"./index-7h01bkm6.js";
|
|
84
|
-
import"./index-
|
|
84
|
+
import"./index-zw3hkzch.js";
|
|
85
85
|
import"./index-cgpwjctj.js";
|
|
86
|
-
import"./index-
|
|
87
|
-
import"./index-
|
|
86
|
+
import"./index-ye43mdfm.js";
|
|
87
|
+
import"./index-3p3y55xg.js";
|
|
88
88
|
import"./index-xnpjwc4h.js";
|
|
89
89
|
import"./index-txdagbh7.js";
|
|
90
90
|
import"./index-9br68j86.js";
|
|
91
91
|
import"./index-cw912re7.js";
|
|
92
|
-
import"./index-
|
|
93
|
-
import"./index-
|
|
94
|
-
import"./index-
|
|
92
|
+
import"./index-9xk97bcf.js";
|
|
93
|
+
import"./index-r1z8nrb6.js";
|
|
94
|
+
import"./index-3eh2n3dx.js";
|
|
95
95
|
import"./index-fyfbpz4f.js";
|
|
96
96
|
import"./index-gfbggp8k.js";
|
|
97
97
|
import"./index-0hgmsyfp.js";
|
|
98
98
|
import"./index-zsrtt42s.js";
|
|
99
|
-
import"./index-
|
|
99
|
+
import"./index-5bbem0ey.js";
|
|
100
100
|
import"./index-fhh02gwx.js";
|
|
101
101
|
import"./index-nyn01yrz.js";
|
|
102
102
|
import"./index-b43rt5ph.js";
|
|
103
103
|
import"./index-q7sjgr1y.js";
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
104
|
+
import"./index-06rbdzqn.js";
|
|
105
|
+
import"./index-59fcfpkh.js";
|
|
106
106
|
import {
|
|
107
107
|
PR_REVIEW_BASE_DIMENSION_IDS
|
|
108
|
-
} from "./index-
|
|
109
|
-
import"./index-
|
|
108
|
+
} from "./index-0xprxg95.js";
|
|
109
|
+
import"./index-8w1mrvbd.js";
|
|
110
110
|
import"./index-b3pmzbh1.js";
|
|
111
111
|
import"./index-2s7dvzff.js";
|
|
112
|
-
import"./index-
|
|
112
|
+
import"./index-31sqcdsd.js";
|
|
113
113
|
import"./index-bm5xrfnx.js";
|
|
114
114
|
import"./index-rtry5xyf.js";
|
|
115
|
-
import"./index-
|
|
115
|
+
import"./index-mjn6aqqk.js";
|
|
116
116
|
import"./index-3qf1vxtb.js";
|
|
117
117
|
import"./index-n832052r.js";
|
|
118
|
-
import"./index-
|
|
119
|
-
import"./index-
|
|
118
|
+
import"./index-3axdtaf0.js";
|
|
119
|
+
import"./index-pw00xcj0.js";
|
|
120
120
|
import"./index-fgp96k3r.js";
|
|
121
121
|
import"./index-br3mvbsa.js";
|
|
122
122
|
import"./index-bernkwgf.js";
|
|
@@ -124,7 +124,7 @@ import"./index-dvbf6fpn.js";
|
|
|
124
124
|
import"./index-rdm3px0g.js";
|
|
125
125
|
import"./index-ry16d01s.js";
|
|
126
126
|
import"./index-5qt9yf5w.js";
|
|
127
|
-
import"./index-
|
|
127
|
+
import"./index-ssx8087p.js";
|
|
128
128
|
import"./index-vzm6zre7.js";
|
|
129
129
|
import"./index-ae75rja9.js";
|
|
130
130
|
import"./index-9ttqbhvw.js";
|
|
@@ -134,15 +134,15 @@ import"./index-nprdr0sm.js";
|
|
|
134
134
|
import"./index-nbdmdyke.js";
|
|
135
135
|
import"./index-1xnse449.js";
|
|
136
136
|
import"./index-ee6ydtfe.js";
|
|
137
|
-
import"./index-
|
|
137
|
+
import"./index-td6xrw55.js";
|
|
138
138
|
import"./index-0mhftbpp.js";
|
|
139
139
|
import"./index-a1w58b47.js";
|
|
140
|
-
import"./index-
|
|
140
|
+
import"./index-4wc5gfgm.js";
|
|
141
141
|
import"./index-sxt7fgcw.js";
|
|
142
142
|
import"./index-bk5tah7q.js";
|
|
143
143
|
import"./index-bpmtbmy9.js";
|
|
144
144
|
import"./index-zpsr8rpc.js";
|
|
145
|
-
import"./index-
|
|
145
|
+
import"./index-76qm2c2y.js";
|
|
146
146
|
import"./index-yzjaj53h.js";
|
|
147
147
|
import"./index-zgwm4ryv.js";
|
|
148
148
|
import"./index-a76rekgs.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-3eh2n3dx.js";
|
|
8
|
+
import"./index-ssx8087p.js";
|
|
9
9
|
import"./index-vzm6zre7.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
11
|
import"./index-9ttqbhvw.js";
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
resolveGeneratedAgentRole,
|
|
110
110
|
resolveGuardrailsConfig,
|
|
111
111
|
stripKnownSwarmPrefix
|
|
112
|
-
} from "./index-
|
|
112
|
+
} from "./index-4wc5gfgm.js";
|
|
113
113
|
import"./index-sxt7fgcw.js";
|
|
114
114
|
import"./index-bk5tah7q.js";
|
|
115
115
|
import"./index-bpmtbmy9.js";
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-3axdtaf0.js";
|
|
27
|
+
import"./index-pw00xcj0.js";
|
|
28
28
|
import"./index-fgp96k3r.js";
|
|
29
29
|
import"./index-br3mvbsa.js";
|
|
30
30
|
import"./index-bernkwgf.js";
|
|
@@ -32,7 +32,7 @@ import"./index-dvbf6fpn.js";
|
|
|
32
32
|
import"./index-rdm3px0g.js";
|
|
33
33
|
import"./index-ry16d01s.js";
|
|
34
34
|
import"./index-5qt9yf5w.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-ssx8087p.js";
|
|
36
36
|
import"./index-vzm6zre7.js";
|
|
37
37
|
import"./index-ae75rja9.js";
|
|
38
38
|
import"./index-9ttqbhvw.js";
|
|
@@ -42,10 +42,10 @@ import"./index-nprdr0sm.js";
|
|
|
42
42
|
import"./index-nbdmdyke.js";
|
|
43
43
|
import"./index-1xnse449.js";
|
|
44
44
|
import"./index-ee6ydtfe.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-td6xrw55.js";
|
|
46
46
|
import"./index-0mhftbpp.js";
|
|
47
47
|
import"./index-a1w58b47.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-4wc5gfgm.js";
|
|
49
49
|
import"./index-sxt7fgcw.js";
|
|
50
50
|
import"./index-bk5tah7q.js";
|
|
51
51
|
import"./index-bpmtbmy9.js";
|
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-9xk97bcf.js";
|
|
37
37
|
import"./index-q7sjgr1y.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-8w1mrvbd.js";
|
|
39
39
|
import"./index-b3pmzbh1.js";
|
|
40
40
|
import"./index-2s7dvzff.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-31sqcdsd.js";
|
|
42
42
|
import"./index-bm5xrfnx.js";
|
|
43
43
|
import"./index-rtry5xyf.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-mjn6aqqk.js";
|
|
45
45
|
import"./index-3qf1vxtb.js";
|
|
46
46
|
import"./index-n832052r.js";
|
|
47
47
|
import"./index-5qt9yf5w.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-ssx8087p.js";
|
|
49
49
|
import"./index-vzm6zre7.js";
|
|
50
50
|
import"./index-ae75rja9.js";
|
|
51
51
|
import"./index-9ttqbhvw.js";
|
|
@@ -55,10 +55,10 @@ import"./index-nprdr0sm.js";
|
|
|
55
55
|
import"./index-nbdmdyke.js";
|
|
56
56
|
import"./index-1xnse449.js";
|
|
57
57
|
import"./index-ee6ydtfe.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-td6xrw55.js";
|
|
59
59
|
import"./index-0mhftbpp.js";
|
|
60
60
|
import"./index-a1w58b47.js";
|
|
61
|
-
import"./index-
|
|
61
|
+
import"./index-4wc5gfgm.js";
|
|
62
62
|
import"./index-sxt7fgcw.js";
|
|
63
63
|
import"./index-bk5tah7q.js";
|
|
64
64
|
import"./index-bpmtbmy9.js";
|
package/dist/cli/{snapshot-coordination-init-rspykgd0.js → snapshot-coordination-init-ms36zxv6.js}
RENAMED
|
@@ -8,43 +8,43 @@ import {
|
|
|
8
8
|
markSnapshotCoordinationClosing,
|
|
9
9
|
retrySnapshotCoordinationInitialization,
|
|
10
10
|
startSnapshotCoordinationInitialization
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-j144fgk8.js";
|
|
12
12
|
import"./index-5400m33a.js";
|
|
13
13
|
import"./index-7h01bkm6.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-zw3hkzch.js";
|
|
15
15
|
import"./index-cgpwjctj.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-ye43mdfm.js";
|
|
17
|
+
import"./index-3p3y55xg.js";
|
|
18
18
|
import"./index-xnpjwc4h.js";
|
|
19
19
|
import"./index-txdagbh7.js";
|
|
20
20
|
import"./index-9br68j86.js";
|
|
21
21
|
import"./index-cw912re7.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
import"./index-9xk97bcf.js";
|
|
23
|
+
import"./index-r1z8nrb6.js";
|
|
24
|
+
import"./index-3eh2n3dx.js";
|
|
25
25
|
import"./index-fyfbpz4f.js";
|
|
26
26
|
import"./index-gfbggp8k.js";
|
|
27
27
|
import"./index-0hgmsyfp.js";
|
|
28
28
|
import"./index-zsrtt42s.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-5bbem0ey.js";
|
|
30
30
|
import"./index-fhh02gwx.js";
|
|
31
31
|
import"./index-nyn01yrz.js";
|
|
32
32
|
import"./index-b43rt5ph.js";
|
|
33
33
|
import"./index-q7sjgr1y.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
34
|
+
import"./index-06rbdzqn.js";
|
|
35
|
+
import"./index-59fcfpkh.js";
|
|
36
|
+
import"./index-0xprxg95.js";
|
|
37
|
+
import"./index-8w1mrvbd.js";
|
|
38
38
|
import"./index-b3pmzbh1.js";
|
|
39
39
|
import"./index-2s7dvzff.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-31sqcdsd.js";
|
|
41
41
|
import"./index-bm5xrfnx.js";
|
|
42
42
|
import"./index-rtry5xyf.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-mjn6aqqk.js";
|
|
44
44
|
import"./index-3qf1vxtb.js";
|
|
45
45
|
import"./index-n832052r.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-3axdtaf0.js";
|
|
47
|
+
import"./index-pw00xcj0.js";
|
|
48
48
|
import"./index-fgp96k3r.js";
|
|
49
49
|
import"./index-br3mvbsa.js";
|
|
50
50
|
import"./index-bernkwgf.js";
|
|
@@ -52,7 +52,7 @@ import"./index-dvbf6fpn.js";
|
|
|
52
52
|
import"./index-rdm3px0g.js";
|
|
53
53
|
import"./index-ry16d01s.js";
|
|
54
54
|
import"./index-5qt9yf5w.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-ssx8087p.js";
|
|
56
56
|
import"./index-vzm6zre7.js";
|
|
57
57
|
import"./index-ae75rja9.js";
|
|
58
58
|
import"./index-9ttqbhvw.js";
|
|
@@ -62,15 +62,15 @@ import"./index-nprdr0sm.js";
|
|
|
62
62
|
import"./index-nbdmdyke.js";
|
|
63
63
|
import"./index-1xnse449.js";
|
|
64
64
|
import"./index-ee6ydtfe.js";
|
|
65
|
-
import"./index-
|
|
65
|
+
import"./index-td6xrw55.js";
|
|
66
66
|
import"./index-0mhftbpp.js";
|
|
67
67
|
import"./index-a1w58b47.js";
|
|
68
|
-
import"./index-
|
|
68
|
+
import"./index-4wc5gfgm.js";
|
|
69
69
|
import"./index-sxt7fgcw.js";
|
|
70
70
|
import"./index-bk5tah7q.js";
|
|
71
71
|
import"./index-bpmtbmy9.js";
|
|
72
72
|
import"./index-zpsr8rpc.js";
|
|
73
|
-
import"./index-
|
|
73
|
+
import"./index-76qm2c2y.js";
|
|
74
74
|
import"./index-yzjaj53h.js";
|
|
75
75
|
import"./index-zgwm4ryv.js";
|
|
76
76
|
import"./index-a76rekgs.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
scanDelegationFallbacksForRecovery,
|
|
15
15
|
scanDelegationsForRecovery
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-0xprxg95.js";
|
|
17
17
|
import"./index-b3pmzbh1.js";
|
|
18
18
|
import"./index-2s7dvzff.js";
|
|
19
19
|
import"./index-br3mvbsa.js";
|
|
@@ -22,7 +22,7 @@ import"./index-dvbf6fpn.js";
|
|
|
22
22
|
import"./index-rdm3px0g.js";
|
|
23
23
|
import"./index-ry16d01s.js";
|
|
24
24
|
import"./index-5qt9yf5w.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-ssx8087p.js";
|
|
26
26
|
import"./index-vzm6zre7.js";
|
|
27
27
|
import"./index-ae75rja9.js";
|
|
28
28
|
import"./index-9ttqbhvw.js";
|
|
@@ -21,45 +21,45 @@ import {
|
|
|
21
21
|
sanitizeWorktreeTaskId,
|
|
22
22
|
standardWorktreeByCallID,
|
|
23
23
|
standardWorktreeSerializationSessions
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-j144fgk8.js";
|
|
25
25
|
import"./index-5400m33a.js";
|
|
26
26
|
import"./index-7h01bkm6.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-zw3hkzch.js";
|
|
28
28
|
import"./index-cgpwjctj.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-ye43mdfm.js";
|
|
30
|
+
import"./index-3p3y55xg.js";
|
|
31
31
|
import"./index-xnpjwc4h.js";
|
|
32
32
|
import"./index-txdagbh7.js";
|
|
33
33
|
import"./index-9br68j86.js";
|
|
34
34
|
import"./index-cw912re7.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
35
|
+
import"./index-9xk97bcf.js";
|
|
36
|
+
import"./index-r1z8nrb6.js";
|
|
37
|
+
import"./index-3eh2n3dx.js";
|
|
38
38
|
import"./index-fyfbpz4f.js";
|
|
39
39
|
import"./index-gfbggp8k.js";
|
|
40
40
|
import"./index-0hgmsyfp.js";
|
|
41
41
|
import"./index-zsrtt42s.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-5bbem0ey.js";
|
|
43
43
|
import"./index-fhh02gwx.js";
|
|
44
44
|
import"./index-nyn01yrz.js";
|
|
45
45
|
import"./index-b43rt5ph.js";
|
|
46
46
|
import"./index-q7sjgr1y.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
47
|
+
import"./index-06rbdzqn.js";
|
|
48
|
+
import"./index-59fcfpkh.js";
|
|
49
|
+
import"./index-0xprxg95.js";
|
|
50
|
+
import"./index-8w1mrvbd.js";
|
|
51
51
|
import"./index-b3pmzbh1.js";
|
|
52
52
|
import"./index-2s7dvzff.js";
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-31sqcdsd.js";
|
|
54
54
|
import"./index-bm5xrfnx.js";
|
|
55
55
|
import"./index-rtry5xyf.js";
|
|
56
56
|
import {
|
|
57
57
|
resolveWorktreeIsolationConfig
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-mjn6aqqk.js";
|
|
59
59
|
import"./index-3qf1vxtb.js";
|
|
60
60
|
import"./index-n832052r.js";
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
61
|
+
import"./index-3axdtaf0.js";
|
|
62
|
+
import"./index-pw00xcj0.js";
|
|
63
63
|
import"./index-fgp96k3r.js";
|
|
64
64
|
import"./index-br3mvbsa.js";
|
|
65
65
|
import"./index-bernkwgf.js";
|
|
@@ -67,7 +67,7 @@ import"./index-dvbf6fpn.js";
|
|
|
67
67
|
import"./index-rdm3px0g.js";
|
|
68
68
|
import"./index-ry16d01s.js";
|
|
69
69
|
import"./index-5qt9yf5w.js";
|
|
70
|
-
import"./index-
|
|
70
|
+
import"./index-ssx8087p.js";
|
|
71
71
|
import"./index-vzm6zre7.js";
|
|
72
72
|
import"./index-ae75rja9.js";
|
|
73
73
|
import"./index-9ttqbhvw.js";
|
|
@@ -77,15 +77,15 @@ import"./index-nprdr0sm.js";
|
|
|
77
77
|
import"./index-nbdmdyke.js";
|
|
78
78
|
import"./index-1xnse449.js";
|
|
79
79
|
import"./index-ee6ydtfe.js";
|
|
80
|
-
import"./index-
|
|
80
|
+
import"./index-td6xrw55.js";
|
|
81
81
|
import"./index-0mhftbpp.js";
|
|
82
82
|
import"./index-a1w58b47.js";
|
|
83
|
-
import"./index-
|
|
83
|
+
import"./index-4wc5gfgm.js";
|
|
84
84
|
import"./index-sxt7fgcw.js";
|
|
85
85
|
import"./index-bk5tah7q.js";
|
|
86
86
|
import"./index-bpmtbmy9.js";
|
|
87
87
|
import"./index-zpsr8rpc.js";
|
|
88
|
-
import"./index-
|
|
88
|
+
import"./index-76qm2c2y.js";
|
|
89
89
|
import"./index-yzjaj53h.js";
|
|
90
90
|
import"./index-zgwm4ryv.js";
|
|
91
91
|
import"./index-a76rekgs.js";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `swarm ci` command handler (issue #2497).
|
|
3
|
+
*
|
|
4
|
+
* Advisory headless CI: evaluates a checked-out repo's authoritative gates
|
|
5
|
+
* read-only (see src/ci/evaluate.ts), renders Markdown + [SWARM_CI_JSON],
|
|
6
|
+
* and maps the run outcome to a machine exit status:
|
|
7
|
+
* 0 = every evaluated gate passed (and at least one was evaluated)
|
|
8
|
+
* 1 = gate violation / no-data / corrupt evidence / nothing to evaluate
|
|
9
|
+
* 2 = cancelled (SIGINT/SIGTERM)
|
|
10
|
+
* 3 = deadline or internal error
|
|
11
|
+
*
|
|
12
|
+
* The command must run without a TTY and without the OpenCode host
|
|
13
|
+
* (scrubbed CI environments), so it carries NO toolPolicy (neither
|
|
14
|
+
* human-only nor agent-gated). It uses `ctx.directory` — never
|
|
15
|
+
* process.cwd() — per AGENTS.md invariant 4, spawns no subprocess, and
|
|
16
|
+
* consumes no stdin.
|
|
17
|
+
*/
|
|
18
|
+
import { runAdvisoryCiRuntime } from '../ci/index.js';
|
|
19
|
+
import type { CommandContext, CommandFailure } from './registry.js';
|
|
20
|
+
export declare const DEFAULT_CI_DEADLINE_MS = 300000;
|
|
21
|
+
export interface CiSignalCancellation {
|
|
22
|
+
/** The handler invoked on SIGINT/SIGTERM; exported for unit testing the
|
|
23
|
+
* wiring without relying on platform signal delivery. */
|
|
24
|
+
handler: () => void;
|
|
25
|
+
install: () => void;
|
|
26
|
+
dispose: () => void;
|
|
27
|
+
}
|
|
28
|
+
/** Wire SIGINT/SIGTERM to the run's AbortController. Kept as a seam so the
|
|
29
|
+
* cancellation contract is unit-testable on platforms where self-signalling
|
|
30
|
+
* a native process is unreliable (Windows Git Bash; see frozen check C5's
|
|
31
|
+
* notes). */
|
|
32
|
+
export declare function createSignalCancellation(controller: AbortController, onCancelled?: () => void): CiSignalCancellation;
|
|
33
|
+
export declare function handleCiCommand(ctx: CommandContext): Promise<string | CommandFailure>;
|
|
34
|
+
/** Test seam: dependency injection over the runtime entry so handler-level
|
|
35
|
+
* diagnostic-branch tests can drive cancelled/deadline outcomes without
|
|
36
|
+
* timing or signal-delivery dependence (repo convention: DI over mock.module;
|
|
37
|
+
* restore in afterEach). */
|
|
38
|
+
export declare const _internals: {
|
|
39
|
+
runAdvisoryCiRuntime: typeof runAdvisoryCiRuntime;
|
|
40
|
+
};
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { handleAutoProceedCommand } from './auto-proceed';
|
|
|
12
12
|
export { handleBenchmarkCommand } from './benchmark';
|
|
13
13
|
export { handleBrainstormCommand } from './brainstorm';
|
|
14
14
|
export { handleCheckpointCommand } from './checkpoint';
|
|
15
|
+
export { createSignalCancellation, DEFAULT_CI_DEADLINE_MS, handleCiCommand, } from './ci';
|
|
15
16
|
export { handleCiSimulateCommand } from './ci-simulate';
|
|
16
17
|
export { handleClarifyCommand } from './clarify';
|
|
17
18
|
export { handleCloseCommand } from './close';
|
|
@@ -788,6 +788,14 @@ export declare const COMMAND_REGISTRY: {
|
|
|
788
788
|
readonly category: "agent";
|
|
789
789
|
readonly toolPolicy: "none";
|
|
790
790
|
};
|
|
791
|
+
readonly ci: {
|
|
792
|
+
readonly handler: (ctx: CommandContext) => Promise<string | CommandFailure>;
|
|
793
|
+
readonly description: "Advisory headless CI: evaluate the repo gate/evidence state read-only with machine exit codes [--timeout-ms <n>] [--json]";
|
|
794
|
+
readonly args: "--timeout-ms <n>, --json";
|
|
795
|
+
readonly details: "Host-decoupled, read-only evaluation of the checked-out repo (#2497): per-task required gates (tri-state evidence), plan-critic approval, and evidence-quality thresholds, composed from the authoritative readers. Exits 0 only when every evaluated gate passes; 1 on any violation, no-data, corrupt evidence, or a missing plan; 2 on cancellation (SIGINT/SIGTERM); 3 on deadline/internal error. Emits a Markdown report plus a [SWARM_CI_JSON] machine block. Never writes to .swarm and cannot satisfy or bypass any gate; runs with no TTY and no OpenCode host.";
|
|
796
|
+
readonly category: "diagnostics";
|
|
797
|
+
readonly toolPolicy: "none";
|
|
798
|
+
};
|
|
791
799
|
readonly 'ci-monitor': {
|
|
792
800
|
readonly handler: (ctx: CommandContext) => CommandResult;
|
|
793
801
|
readonly description: "Drive an already-reviewed, approved PR to green and merged (monitor CI, fix, merge) [pr]";
|
|
@@ -8,21 +8,18 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This module owns that counter. `noteGateDenial` is called from the single
|
|
10
10
|
* catch site wrapping the fail-closed chain in `src/index.ts`. It:
|
|
11
|
-
* 1. classifies the denial by
|
|
12
|
-
*
|
|
11
|
+
* 1. classifies the denial by its bounded structured cause (falling back to
|
|
12
|
+
* the leading code token of the error message),
|
|
13
|
+
* 2. increments a per-(sessionID, invocationID, stable action, cause) streak,
|
|
13
14
|
* 3. APPENDS (never rewrites) escalating guidance to the error message so the
|
|
14
15
|
* model reads it in the tool-rejection text, and
|
|
15
16
|
* 4. at the hard rung, pushes an advisory + emits telemetry.
|
|
16
17
|
*
|
|
17
|
-
* The
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* streak on `Task` → `coder`. Under the interleaving the loop actually
|
|
23
|
-
* exhibits — deny coder, delegate an explorer to investigate, deny coder again —
|
|
24
|
-
* the STOP rung was unreachable. Sub-scoping both the count and the reset by
|
|
25
|
-
* dispatch target makes a success clear only what plausibly succeeded.
|
|
18
|
+
* The action projection intentionally retains only stable routing fields. It
|
|
19
|
+
* canonicalizes the `Task` role and target aliases, while omitting prompts,
|
|
20
|
+
* command content, and other retry-varying payloads. The same projection is
|
|
21
|
+
* used by note, reset, and the test peek/expiry seams, so a success can clear
|
|
22
|
+
* only what plausibly succeeded.
|
|
26
23
|
*
|
|
27
24
|
* Invariants this module must not break:
|
|
28
25
|
* - The caller ALWAYS rethrows. Decoration is append-only, so the leading
|
|
@@ -82,6 +79,13 @@ export declare function gateDenialDiscriminator(tool: string, args: unknown): st
|
|
|
82
79
|
* a per-occurrence key.
|
|
83
80
|
*/
|
|
84
81
|
export declare function deriveGateDenialCode(message: string): string;
|
|
82
|
+
/**
|
|
83
|
+
* Resolve a denial cause from an own data property only. Accessors and
|
|
84
|
+
* inherited values are intentionally ignored so a hostile/frozen error cannot
|
|
85
|
+
* make tracking invoke arbitrary code. The message parser remains the
|
|
86
|
+
* trajectory logger's message-only boundary.
|
|
87
|
+
*/
|
|
88
|
+
export declare function deriveStructuredGateDenialCode(err: unknown): string | undefined;
|
|
85
89
|
/**
|
|
86
90
|
* True when the thrown value is a user/host abort rather than a policy denial.
|
|
87
91
|
* Aborts must not count toward a denial streak AND must not reset one: a user
|
|
@@ -94,7 +98,7 @@ export declare function gateDenialWarnText(count: number, code: string): string;
|
|
|
94
98
|
* The append-only hard rung, modelled on `nonTransientHardStopMessage`
|
|
95
99
|
* (src/hooks/guardrails/nontransient-circuit.ts:336-354).
|
|
96
100
|
*/
|
|
97
|
-
export declare function gateDenialStopText(count: number, code: string, tool: string): string;
|
|
101
|
+
export declare function gateDenialStopText(count: number, code: string, tool: string, actionPattern?: string): string;
|
|
98
102
|
export interface GateDenialOptions {
|
|
99
103
|
/**
|
|
100
104
|
* `guardrails.enabled`. The thresholds live in the `guardrails` config block
|
|
@@ -169,7 +173,7 @@ export declare const _test_exports: {
|
|
|
169
173
|
readonly MAX_DISCRIMINATOR_LENGTH: 64;
|
|
170
174
|
readonly streakCount: () => number;
|
|
171
175
|
/** Read a streak length without mutating it. */
|
|
172
|
-
readonly peekStreak: (sessionID: string, tool: string, code: string,
|
|
176
|
+
readonly peekStreak: (sessionID: string, tool: string, code: string, target?: unknown) => number;
|
|
173
177
|
/** Force a streak's TTL into the past so eviction can be tested. */
|
|
174
|
-
readonly expireStreak: (sessionID: string, tool: string, code: string,
|
|
178
|
+
readonly expireStreak: (sessionID: string, tool: string, code: string, target?: unknown) => void;
|
|
175
179
|
};
|