opencode-swarm 7.144.3 → 7.144.4
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/.opencode/skills/swarm-pr-review/SKILL.md +3 -1
- package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +28 -0
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +2 -0
- package/README.md +3 -1
- package/dist/background/pending-delegations.d.ts +14 -0
- package/dist/cli/{config-doctor-pkr9w2nv.js → config-doctor-rw9zrjk6.js} +3 -3
- package/dist/cli/{core-7pymdx0b.js → core-zjx9aqaf.js} +2 -2
- package/dist/cli/{curation-policy-y1pqpztb.js → curation-policy-0wbrh11c.js} +5 -5
- package/dist/cli/{curator-wbzcjd0q.js → curator-g54a7wv0.js} +27 -27
- package/dist/cli/{curator-llm-factory-7are9wjh.js → curator-llm-factory-xgb4pxmm.js} +27 -27
- package/dist/cli/{evidence-summary-service-rcgrdm52.js → evidence-summary-service-fnr5y54e.js} +11 -11
- package/dist/cli/{gate-evidence-jmzctnhg.js → gate-evidence-2xt1x07r.js} +6 -6
- package/dist/cli/{guardrail-explain-brgw4sve.js → guardrail-explain-6wcgr9tz.js} +28 -28
- package/dist/cli/{guardrail-log-k1s9xf3h.js → guardrail-log-5w4b9zrw.js} +4 -4
- package/dist/cli/{hive-promoter-vcj5h0e3.js → hive-promoter-x63ehffd.js} +27 -27
- package/dist/cli/{index-xwpmxpb7.js → index-03pv47h2.js} +6 -6
- package/dist/cli/{index-zwrqe065.js → index-1csyxv0f.js} +1 -1
- package/dist/cli/{index-s2rcz51a.js → index-1jsmmx7y.js} +66 -34
- package/dist/cli/{index-06cn7haa.js → index-2m7mavaz.js} +2 -2
- package/dist/cli/{index-pr8vhj6j.js → index-4w5qdbk7.js} +7 -7
- package/dist/cli/{index-6s2q144w.js → index-8j0va7jp.js} +2 -2
- package/dist/cli/{index-8hkjk37c.js → index-9qq7c18c.js} +1 -1
- package/dist/cli/{index-satc0vs6.js → index-az8etqpp.js} +6 -6
- package/dist/cli/{index-584grrwn.js → index-bt9aa01f.js} +1 -1
- package/dist/cli/{index-ep14xc5z.js → index-btmsqv7p.js} +4 -4
- package/dist/cli/{index-x68tw7v3.js → index-cz25e8xp.js} +4 -4
- package/dist/cli/{index-7554tecy.js → index-d12jd5mn.js} +2 -2
- package/dist/cli/{index-0fgwdtvp.js → index-dty5qgk2.js} +1 -1
- package/dist/cli/{index-wd24zn2e.js → index-f9vvg5xb.js} +1 -1
- package/dist/cli/{index-8214dd7j.js → index-fqcjragy.js} +2 -2
- package/dist/cli/{index-2en8s72h.js → index-h98t1m88.js} +2 -2
- package/dist/cli/{index-krxcxkdq.js → index-jabkn643.js} +18 -3
- package/dist/cli/{index-zswmbm15.js → index-mazgg5s2.js} +1 -1
- package/dist/cli/{index-wck434f8.js → index-nckg4gxb.js} +2 -2
- package/dist/cli/{index-ghzvxj3g.js → index-p7cm3gtj.js} +31 -29
- package/dist/cli/{index-qj22wyw2.js → index-psvxq93b.js} +3 -3
- package/dist/cli/{index-p7hbphaq.js → index-pw83zgny.js} +3 -3
- package/dist/cli/{index-247wf23m.js → index-q4ed1jk7.js} +1236 -841
- package/dist/cli/{index-p863y7xx.js → index-q67jb94n.js} +1 -1
- package/dist/cli/{index-whezv7vc.js → index-v3y3qg48.js} +1 -1
- package/dist/cli/{index-eya357bk.js → index-x6tp0hfr.js} +5 -5
- package/dist/cli/{index-1brb14xc.js → index-y8j8ehc8.js} +2 -2
- package/dist/cli/{index-b227mpnk.js → index-yts89pqg.js} +4 -4
- package/dist/cli/{index-dpfphnmy.js → index-ywn7vtxp.js} +1 -1
- package/dist/cli/{index-j6mfyy0a.js → index-z6v7kwpa.js} +3 -3
- package/dist/cli/{index-pag8nsb1.js → index-zb0xcz9t.js} +3 -3
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-x6jrcrwj.js → knowledge-escalator-ypg14d5r.js} +11 -11
- package/dist/cli/{knowledge-events-aw22r72m.js → knowledge-events-nkrym4wb.js} +9 -9
- package/dist/cli/{knowledge-link-bntppte4.js → knowledge-link-e4qgqmpx.js} +4 -4
- package/dist/cli/{knowledge-store-19xg1rw1.js → knowledge-store-vh3nhtg2.js} +5 -5
- package/dist/cli/{knowledge-validator-8wh82z0a.js → knowledge-validator-jrxvexv6.js} +7 -7
- package/dist/cli/{pending-delegations-1y303j3k.js → pending-delegations-pw79c8ds.js} +3 -3
- package/dist/cli/{pr-subscriptions-wvd041rp.js → pr-subscriptions-fk628bhc.js} +3 -3
- package/dist/cli/{runner-jn55k8xb.js → runner-b02sz2vx.js} +5 -5
- package/dist/cli/{scan-cursor-429r5db9.js → scan-cursor-fp7w5jmc.js} +6 -6
- package/dist/cli/{schema-jdwjcby0.js → schema-rptwqbm4.js} +2 -2
- package/dist/cli/{scope-persistence-s0s1bz15.js → scope-persistence-0bkaxawa.js} +7 -7
- package/dist/cli/{skill-generator-ffbj0ye5.js → skill-generator-nh8b4gjv.js} +13 -13
- package/dist/cli/{telemetry-xyfb5vm8.js → telemetry-cybx6cfz.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-z5ftwjz3.js → worktree-collision-ownership-hqd9ypsz.js} +3 -3
- package/dist/cli/{worktree-isolation-y2p93438.js → worktree-isolation-canf3rj8.js} +27 -27
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/recover.d.ts +17 -0
- package/dist/commands/registry.d.ts +9 -1
- package/dist/commands/reset-session.d.ts +2 -0
- package/dist/hooks/context-budget.d.ts +4 -0
- package/dist/hooks/context-usage.d.ts +48 -0
- package/dist/hooks/pr-workflow-gate.d.ts +29 -2
- package/dist/index.js +310 -304
- package/dist/observability/catalog.d.ts +8 -6
- package/dist/sast/semgrep.d.ts +3 -2
- package/dist/telemetry.d.ts +17 -1
- package/dist/tools/context-status.d.ts +9 -3
- package/dist/tools/dispatch-lanes.d.ts +27 -2
- package/dist/tools/pre-check-batch.d.ts +9 -0
- package/dist/tools/sast-scan.d.ts +3 -0
- package/dist/workflow/coder-settlement.d.ts +74 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-rn0eq85g.js";
|
|
5
5
|
import {
|
|
6
6
|
withEvidenceLock
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-f9vvg5xb.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_external,
|
|
10
10
|
init_zod
|
|
@@ -248,6 +248,16 @@ var INGESTION_CLAIM_LEASE_MS = 30000;
|
|
|
248
248
|
var BACKGROUND_INGESTION_LEASE_MS = 30000;
|
|
249
249
|
var DEFAULT_STALE_DELEGATION_TIMEOUT_MS = 30 * 60000;
|
|
250
250
|
var DEFAULT_SWEEPABLE_DELEGATION_STATUSES = new Set(["pending", "running", "ingestion_error"]);
|
|
251
|
+
var WorkflowLaneRecoverySchema = exports_external.object({
|
|
252
|
+
workflowLane: exports_external.string(),
|
|
253
|
+
kind: exports_external.enum([
|
|
254
|
+
"parser-normalization",
|
|
255
|
+
"parser-row-recovery",
|
|
256
|
+
"truncated-preview-durable-artifact",
|
|
257
|
+
"transcript-incomplete-terminal-candidate"
|
|
258
|
+
]),
|
|
259
|
+
reason: exports_external.string()
|
|
260
|
+
}).strict();
|
|
251
261
|
var ResultSchema = exports_external.object({
|
|
252
262
|
text: exports_external.string().optional(),
|
|
253
263
|
error: exports_external.string().optional(),
|
|
@@ -260,7 +270,8 @@ var ResultSchema = exports_external.object({
|
|
|
260
270
|
outputArtifactError: exports_external.string().optional(),
|
|
261
271
|
transcriptIncomplete: exports_external.boolean().optional(),
|
|
262
272
|
messageCount: exports_external.number().optional(),
|
|
263
|
-
salvagedWorkflowLanes: exports_external.array(exports_external.string()).optional()
|
|
273
|
+
salvagedWorkflowLanes: exports_external.array(exports_external.string()).optional(),
|
|
274
|
+
salvagedWorkflowLaneRecoveries: exports_external.array(WorkflowLaneRecoverySchema).optional()
|
|
264
275
|
}).strict();
|
|
265
276
|
var WorkspaceSchema = exports_external.object({
|
|
266
277
|
directory: exports_external.string(),
|
|
@@ -1412,6 +1423,10 @@ async function appendDelegationTransition(directory, correlationId, transition)
|
|
|
1412
1423
|
const current = findRecordForWrite(records, correlationId);
|
|
1413
1424
|
if (!current)
|
|
1414
1425
|
return;
|
|
1426
|
+
if (transition.expectedCurrentStatuses && !transition.expectedCurrentStatuses.includes(current.status)) {
|
|
1427
|
+
next = current;
|
|
1428
|
+
return;
|
|
1429
|
+
}
|
|
1415
1430
|
if (isTerminal(current.status) && transition.status !== "consumed" && transition.status !== "ingestion_error" && !(current.status === "completed" && transition.status === "stale")) {
|
|
1416
1431
|
next = current;
|
|
1417
1432
|
return;
|
|
@@ -1449,7 +1464,7 @@ function sameTerminalEvent(left, right) {
|
|
|
1449
1464
|
return left.eventId === right.eventId && left.status === right.status && sameRetainedResult(left.result, right.result);
|
|
1450
1465
|
}
|
|
1451
1466
|
function sameRetainedResult(left, right) {
|
|
1452
|
-
return left.chars === right.chars && left.truncated === right.truncated && left.digest === right.digest && left.outputRef === right.outputRef && left.outputPreviewChars === right.outputPreviewChars && left.outputDegraded === right.outputDegraded && left.outputArtifactError === right.outputArtifactError && left.transcriptIncomplete === right.transcriptIncomplete && left.messageCount === right.messageCount && sameJson(left.salvagedWorkflowLanes, right.salvagedWorkflowLanes);
|
|
1467
|
+
return left.chars === right.chars && left.truncated === right.truncated && left.digest === right.digest && left.outputRef === right.outputRef && left.outputPreviewChars === right.outputPreviewChars && left.outputDegraded === right.outputDegraded && left.outputArtifactError === right.outputArtifactError && left.transcriptIncomplete === right.transcriptIncomplete && left.messageCount === right.messageCount && sameJson(left.salvagedWorkflowLanes, right.salvagedWorkflowLanes) && sameJson(left.salvagedWorkflowLaneRecoveries, right.salvagedWorkflowLaneRecoveries);
|
|
1453
1468
|
}
|
|
1454
1469
|
function settlementProvenanceFor(record) {
|
|
1455
1470
|
const baseline = record.taskChangeContext?.baseline;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readKnowledge,
|
|
4
4
|
transactKnowledge
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-03pv47h2.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveKnowledgeStoreDir
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-ywn7vtxp.js";
|
|
9
9
|
import {
|
|
10
10
|
init_knowledge_types,
|
|
11
11
|
isActiveStatus
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-2m7mavaz.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-q67jb94n.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -66,6 +66,7 @@ import {
|
|
|
66
66
|
handlePreflightCommand,
|
|
67
67
|
handlePromoteCommand,
|
|
68
68
|
handleQaGatesCommand,
|
|
69
|
+
handleRecoverCommand,
|
|
69
70
|
handleResetCommand,
|
|
70
71
|
handleResetSessionCommand,
|
|
71
72
|
handleRetrieveCommand,
|
|
@@ -84,64 +85,64 @@ import {
|
|
|
84
85
|
handleWriteRetroCommand,
|
|
85
86
|
normalizeSwarmCommandInput,
|
|
86
87
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
88
|
-
import"./index-
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
88
|
+
} from "./index-q4ed1jk7.js";
|
|
89
|
+
import"./index-d12jd5mn.js";
|
|
90
|
+
import"./index-h98t1m88.js";
|
|
91
|
+
import"./index-az8etqpp.js";
|
|
91
92
|
import"./index-134d35c1.js";
|
|
92
93
|
import"./index-b6e016tv.js";
|
|
93
|
-
import"./index-
|
|
94
|
-
import"./index-
|
|
94
|
+
import"./index-1csyxv0f.js";
|
|
95
|
+
import"./index-fqcjragy.js";
|
|
95
96
|
import"./index-y8552snf.js";
|
|
96
|
-
import"./index-
|
|
97
|
+
import"./index-nckg4gxb.js";
|
|
97
98
|
import"./index-70ha9e09.js";
|
|
98
99
|
import"./index-c8s9a3zh.js";
|
|
99
100
|
import"./index-9ss2m4rs.js";
|
|
100
101
|
import"./index-74hpm6sh.js";
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
102
|
+
import"./index-bt9aa01f.js";
|
|
103
|
+
import"./index-zb0xcz9t.js";
|
|
104
|
+
import"./index-x6tp0hfr.js";
|
|
105
|
+
import"./index-yts89pqg.js";
|
|
106
|
+
import"./index-dty5qgk2.js";
|
|
106
107
|
import"./index-rtry5xyf.js";
|
|
107
108
|
import"./index-zsrtt42s.js";
|
|
108
|
-
import"./index-
|
|
109
|
+
import"./index-jabkn643.js";
|
|
109
110
|
import"./index-k3cxyk66.js";
|
|
110
|
-
import"./index-
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
111
|
+
import"./index-cz25e8xp.js";
|
|
112
|
+
import"./index-8j0va7jp.js";
|
|
113
|
+
import"./index-pw83zgny.js";
|
|
114
|
+
import"./index-z6v7kwpa.js";
|
|
114
115
|
import"./index-556ja8an.js";
|
|
115
116
|
import"./index-7sy3aa9m.js";
|
|
116
117
|
import"./index-wx8zdh4a.js";
|
|
117
118
|
import"./index-8fwhhayc.js";
|
|
118
119
|
import"./index-q1exe2b3.js";
|
|
119
|
-
import"./index-
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
120
|
+
import"./index-03pv47h2.js";
|
|
121
|
+
import"./index-4w5qdbk7.js";
|
|
122
|
+
import"./index-psvxq93b.js";
|
|
122
123
|
import"./index-gprxjmm7.js";
|
|
123
124
|
import"./index-n832052r.js";
|
|
124
125
|
import"./index-rn0eq85g.js";
|
|
125
126
|
import"./index-z6xqpmqg.js";
|
|
126
|
-
import"./index-
|
|
127
|
+
import"./index-9qq7c18c.js";
|
|
127
128
|
import {
|
|
128
129
|
init_schema,
|
|
129
130
|
stripKnownSwarmPrefix
|
|
130
|
-
} from "./index-
|
|
131
|
+
} from "./index-y8j8ehc8.js";
|
|
131
132
|
import"./index-4rhhvd1a.js";
|
|
132
133
|
import {
|
|
133
134
|
AGENT_TOOL_MAP,
|
|
134
135
|
ORCHESTRATOR_NAME,
|
|
135
136
|
init_constants
|
|
136
|
-
} from "./index-
|
|
137
|
+
} from "./index-v3y3qg48.js";
|
|
137
138
|
import"./index-zjygnfay.js";
|
|
138
139
|
import"./index-ae75rja9.js";
|
|
139
|
-
import"./index-
|
|
140
|
-
import"./index-
|
|
140
|
+
import"./index-ywn7vtxp.js";
|
|
141
|
+
import"./index-mazgg5s2.js";
|
|
141
142
|
import"./index-ed5ykebp.js";
|
|
142
143
|
import"./index-bk5tah7q.js";
|
|
143
|
-
import"./index-
|
|
144
|
-
import"./index-
|
|
144
|
+
import"./index-f9vvg5xb.js";
|
|
145
|
+
import"./index-1jsmmx7y.js";
|
|
145
146
|
import"./index-7g4c7s5r.js";
|
|
146
147
|
import"./index-bpmtbmy9.js";
|
|
147
148
|
import"./index-4nt52yr9.js";
|
|
@@ -413,6 +414,7 @@ export {
|
|
|
413
414
|
handleRetrieveCommand,
|
|
414
415
|
handleResetSessionCommand,
|
|
415
416
|
handleResetCommand,
|
|
417
|
+
handleRecoverCommand,
|
|
416
418
|
handleQaGatesCommand,
|
|
417
419
|
handlePromoteCommand,
|
|
418
420
|
handlePreflightCommand,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-9qq7c18c.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-y8j8ehc8.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-v3y3qg48.js";
|
|
13
13
|
|
|
14
14
|
// src/config/index.ts
|
|
15
15
|
init_constants();
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computePlanStructureHash,
|
|
4
4
|
derivePlanId
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-z6v7kwpa.js";
|
|
6
6
|
import {
|
|
7
7
|
unsafePathTextReason
|
|
8
8
|
} from "./index-556ja8an.js";
|
|
9
9
|
import {
|
|
10
10
|
PlanSchema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-9qq7c18c.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProjectRoot
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-f9vvg5xb.js";
|
|
15
15
|
import {
|
|
16
16
|
require_proper_lockfile
|
|
17
17
|
} from "./index-7g4c7s5r.js";
|