opencode-swarm 7.164.11 → 7.164.12
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/engineering-conventions/SKILL.md +1 -1
- package/dist/background/pending-delegations.d.ts +7 -2
- package/dist/background/pr-subscriptions.d.ts +3 -3
- package/dist/cli/{coder-settlement-0rfk8y11.js → coder-settlement-yh1q5fr3.js} +15 -16
- package/dist/cli/{config-doctor-j17b7qq2.js → config-doctor-bd4yzmh7.js} +3 -3
- package/dist/cli/{core-evhjjrtt.js → core-y0s1vmyc.js} +2 -2
- package/dist/cli/{curation-policy-vj6z5hvr.js → curation-policy-gs1qakn7.js} +5 -6
- package/dist/cli/{curator-vqd5yeck.js → curator-brqack0j.js} +48 -46
- package/dist/cli/{curator-drift-ez81vg2t.js → curator-drift-1sg9yk2m.js} +14 -12
- package/dist/cli/curator-llm-factory-dtsjc3zf.js +70 -0
- package/dist/cli/{dispatch-dqybvj8v.js → dispatch-c7xjt7js.js} +3 -3
- package/dist/cli/{evidence-summary-service-937x7rbg.js → evidence-summary-service-nqbcvp30.js} +24 -23
- package/dist/cli/{gate-evidence-q1cehr4k.js → gate-evidence-9stdtpej.js} +9 -10
- package/dist/cli/guardrail-explain-3ff1z3fm.js +71 -0
- package/dist/cli/{guardrail-log-3g93f3g2.js → guardrail-log-sf39x00b.js} +10 -10
- package/dist/cli/{guardrail-reset-qe2r5qzq.js → guardrail-reset-9wr6a60s.js} +48 -46
- package/dist/cli/hive-promoter-bqtj8261.js +85 -0
- package/dist/cli/{index-kv2tdkk5.js → index-03enxdaq.js} +1 -1
- package/dist/cli/{index-ggrp3v00.js → index-0byep4pe.js} +15 -17
- package/dist/cli/{index-2bgr671r.js → index-2bhz5k91.js} +20 -2
- package/dist/cli/{index-mmjamc9b.js → index-3fnym6ac.js} +5 -5
- package/dist/cli/{index-d9entpn3.js → index-40twgsyh.js} +4 -4
- package/dist/cli/{index-ggtmsm84.js → index-4mjmnysc.js} +1 -1
- package/dist/cli/{index-e90em0x4.js → index-4vb56w2k.js} +12 -17
- package/dist/cli/{index-r656jh9j.js → index-5wc5pbzc.js} +3700 -2609
- package/dist/cli/{index-w3gtqey0.js → index-6chhqq2n.js} +4 -4
- package/dist/cli/{index-qbw3yw2d.js → index-888pq4xx.js} +11 -11
- package/dist/cli/{index-3146wmgv.js → index-8d90gzaz.js} +1 -1
- package/dist/cli/{index-5jx22kwc.js → index-8vw2pjgr.js} +544 -15
- package/dist/cli/{index-b2nj04q6.js → index-9ss2m4rs.js} +1 -434
- package/dist/cli/{index-x43debgx.js → index-ad9064j9.js} +15 -17
- package/dist/cli/{index-5kcvrpkt.js → index-b25t91a3.js} +1 -1
- package/dist/cli/index-c45662wc.js +361 -0
- package/dist/cli/{index-aqppaaqx.js → index-cgewrpw5.js} +3 -2
- package/dist/cli/{index-zfs3zqeq.js → index-d3mpxsmy.js} +771 -21
- package/dist/cli/{index-y1yqmkv7.js → index-d7j3n5ra.js} +52 -50
- package/dist/cli/{index-4vb6qa73.js → index-ebce775n.js} +36 -2
- package/dist/cli/{index-dsg9dw3b.js → index-eed0gkv6.js} +2 -2
- package/dist/cli/index-es64amqt.js +675 -0
- package/dist/cli/{index-9gxbjkts.js → index-ewv8qa8q.js} +22 -19
- package/dist/cli/{index-1ww7wj8d.js → index-hb7bh4r2.js} +15 -15
- package/dist/cli/{index-kc2tgcm7.js → index-hg09xemc.js} +4 -4
- package/dist/cli/{index-w95vxjde.js → index-hvz4ad2t.js} +39 -8
- package/dist/cli/{index-77z98j76.js → index-k0s8n6m5.js} +314 -130
- package/dist/cli/{index-7m32fjb4.js → index-kxv193aq.js} +9 -9
- package/dist/cli/{index-hp22pzn5.js → index-m8xrbdmn.js} +2 -2
- package/dist/cli/{index-4gqxppcx.js → index-mee9maf5.js} +2 -2
- package/dist/cli/{index-r3mvsbtq.js → index-p612v1mv.js} +7 -1
- package/dist/cli/{index-r5q5gd2a.js → index-qgajv9rd.js} +2 -2
- package/dist/cli/{index-zjg4chy2.js → index-qqq04n70.js} +2 -2
- package/dist/cli/{index-ww6zm5hr.js → index-r2p0pgst.js} +3 -3
- package/dist/cli/{index-47kh2103.js → index-r69gzes2.js} +14 -14
- package/dist/cli/{index-vdn32nws.js → index-sphahrmq.js} +3 -3
- package/dist/cli/{index-rhqdsc1x.js → index-vw66q1rw.js} +9 -9
- package/dist/cli/{index-kch6yenm.js → index-wasdrhev.js} +7 -7
- package/dist/cli/{index-c5v1w13g.js → index-wknpkfm8.js} +807 -629
- package/dist/cli/{index-pp2nya9v.js → index-x39hjdf1.js} +2 -4
- package/dist/cli/{index-n8688d12.js → index-xxfk62zd.js} +2 -2
- package/dist/cli/index-yvqg6kn5.js +429 -0
- package/dist/cli/{index-nqsj0g5y.js → index-ztm0q26v.js} +8 -8
- package/dist/cli/index.js +50 -48
- package/dist/cli/{knowledge-escalator-j04g450p.js → knowledge-escalator-01vva51d.js} +17 -18
- package/dist/cli/{knowledge-events-53z45rs0.js → knowledge-events-dpfwh1hs.js} +15 -16
- package/dist/cli/{knowledge-link-a6kfg3qm.js → knowledge-link-2rvp966j.js} +4 -5
- package/dist/cli/{knowledge-store-whm0gagt.js → knowledge-store-aw58ae7b.js} +6 -7
- package/dist/cli/{knowledge-validator-h8m7065g.js → knowledge-validator-yhd31ryf.js} +8 -9
- package/dist/cli/{pending-delegations-6hkpe5ze.js → pending-delegations-fjetcz8e.js} +17 -8
- package/dist/cli/{pr-subscriptions-11zca1mh.js → pr-subscriptions-cwwtfs8w.js} +17 -8
- package/dist/cli/{pr-workflow-gate-6g29rkg7.js → pr-workflow-gate-5xwtg1k2.js} +50 -48
- package/dist/cli/{runner-5abw3t35.js → runner-mb51twxt.js} +6 -7
- package/dist/cli/{scan-cursor-mkfx410t.js → scan-cursor-j11qwf0v.js} +9 -10
- package/dist/cli/{schema-jbbam3ev.js → schema-0xp3bde3.js} +1 -1
- package/dist/cli/{scope-persistence-q1ct4k42.js → scope-persistence-brrk806y.js} +19 -12
- package/dist/cli/{skill-generator-cv8fg96x.js → skill-generator-j8qzmet9.js} +20 -21
- package/dist/cli/snapshot-coordination-init-h0xmtftq.js +84 -0
- package/dist/cli/{telemetry-mbqqamsj.js → telemetry-m84ap0pp.js} +1 -1
- package/dist/cli/{workspace-snapshot-eh18vgkn.js → workspace-snapshot-6z9rk7xw.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-xgnn8dsq.js → worktree-collision-ownership-j9zykj18.js} +21 -12
- package/dist/cli/{worktree-isolation-k2dgfmeg.js → worktree-isolation-jd39xz6h.js} +48 -46
- package/dist/commands/close.d.ts +13 -6
- package/dist/commands/reset-session.d.ts +4 -0
- package/dist/db/coordination-store.d.ts +85 -0
- package/dist/db/durability.d.ts +22 -5
- package/dist/db/index.d.ts +1 -0
- package/dist/db/project-db.d.ts +12 -0
- package/dist/index.js +810 -705
- package/dist/memory/schema.d.ts +3 -3
- package/dist/pr-review/authorization.d.ts +5 -4
- package/dist/pr-review/persistence.d.ts +10 -1
- package/dist/scope/scope-binding.d.ts +10 -0
- package/dist/scope/scope-persistence.d.ts +10 -0
- package/dist/services/handoff-service.d.ts +2 -0
- package/dist/services/status-service.d.ts +4 -0
- package/dist/session/snapshot-coordination-init.d.ts +49 -0
- package/dist/session/snapshot-reader.d.ts +2 -0
- package/dist/session/snapshot-store.d.ts +42 -0
- package/dist/session/snapshot-writer.d.ts +4 -1
- package/dist/state.d.ts +6 -3
- package/dist/turbo/epic/state.d.ts +4 -20
- package/dist/utils/bun-compat.d.ts +10 -0
- package/dist/utils/external-tool-runner.d.ts +2 -0
- package/package.json +3 -2
- package/dist/cli/curator-llm-factory-sxcpmcqq.js +0 -68
- package/dist/cli/guardrail-explain-xv9aw1bf.js +0 -69
- package/dist/cli/hive-promoter-09yc9mp5.js +0 -83
- package/dist/cli/index-xnb3tk7x.js +0 -24
- package/dist/cli/{ast-diff-ekd9v10f.js → ast-diff-b0esr2kf.js} +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-m8xrbdmn.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-03enxdaq.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,73 +94,75 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
97
|
+
} from "./index-5wc5pbzc.js";
|
|
98
|
+
import"./index-8d90gzaz.js";
|
|
99
|
+
import"./index-hvz4ad2t.js";
|
|
100
|
+
import"./index-wasdrhev.js";
|
|
101
|
+
import"./index-b25t91a3.js";
|
|
102
|
+
import"./index-k0s8n6m5.js";
|
|
103
|
+
import"./index-x39hjdf1.js";
|
|
103
104
|
import"./index-txdagbh7.js";
|
|
104
105
|
import"./index-cw912re7.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-d9entpn3.js";
|
|
106
|
+
import"./index-hb7bh4r2.js";
|
|
107
|
+
import"./index-kxv193aq.js";
|
|
108
|
+
import"./index-40twgsyh.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
|
-
import"./index-
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-zfs3zqeq.js";
|
|
110
|
+
import"./index-ztm0q26v.js";
|
|
111
|
+
import"./index-9ss2m4rs.js";
|
|
112
|
+
import"./index-d3mpxsmy.js";
|
|
114
113
|
import"./index-zsrtt42s.js";
|
|
115
|
-
import"./index-
|
|
116
|
-
import"./index-
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-kc2tgcm7.js";
|
|
119
|
-
import"./index-ggtmsm84.js";
|
|
120
|
-
import"./index-rtry5xyf.js";
|
|
121
|
-
import"./index-x43debgx.js";
|
|
122
|
-
import"./index-4vb6qa73.js";
|
|
123
|
-
import"./index-5jx22kwc.js";
|
|
124
|
-
import"./index-c5v1w13g.js";
|
|
125
|
-
import"./index-e90em0x4.js";
|
|
126
|
-
import"./index-ry16d01s.js";
|
|
127
|
-
import"./index-4gqxppcx.js";
|
|
128
|
-
import"./index-556ja8an.js";
|
|
129
|
-
import"./index-4fwbbad3.js";
|
|
114
|
+
import"./index-r69gzes2.js";
|
|
115
|
+
import"./index-6chhqq2n.js";
|
|
116
|
+
import"./index-xxfk62zd.js";
|
|
130
117
|
import"./index-b43rt5ph.js";
|
|
131
118
|
import"./index-q7sjgr1y.js";
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
119
|
+
import"./index-ad9064j9.js";
|
|
120
|
+
import"./index-ebce775n.js";
|
|
121
|
+
import"./index-8vw2pjgr.js";
|
|
122
|
+
import"./index-0byep4pe.js";
|
|
123
|
+
import"./index-qqq04n70.js";
|
|
124
|
+
import"./index-z6xqpmqg.js";
|
|
125
|
+
import"./index-p612v1mv.js";
|
|
126
|
+
import"./index-hg09xemc.js";
|
|
127
|
+
import"./index-4mjmnysc.js";
|
|
128
|
+
import"./index-rtry5xyf.js";
|
|
129
|
+
import"./index-qgajv9rd.js";
|
|
135
130
|
import"./index-3qf1vxtb.js";
|
|
136
131
|
import"./index-n832052r.js";
|
|
137
|
-
import"./index-
|
|
138
|
-
import"./index-
|
|
139
|
-
import"./index-
|
|
140
|
-
import"./index-
|
|
132
|
+
import"./index-wknpkfm8.js";
|
|
133
|
+
import"./index-4vb56w2k.js";
|
|
134
|
+
import"./index-mee9maf5.js";
|
|
135
|
+
import"./index-556ja8an.js";
|
|
136
|
+
import"./index-yvqg6kn5.js";
|
|
137
|
+
import"./index-c45662wc.js";
|
|
138
|
+
import"./index-es64amqt.js";
|
|
139
|
+
import"./index-ry16d01s.js";
|
|
140
|
+
import"./index-n4fzmqz8.js";
|
|
141
|
+
import"./index-eed0gkv6.js";
|
|
142
|
+
import"./index-888pq4xx.js";
|
|
143
|
+
import"./index-ae75rja9.js";
|
|
144
|
+
import"./index-sphahrmq.js";
|
|
145
|
+
import"./index-7qefgq4j.js";
|
|
146
|
+
import"./index-2bhz5k91.js";
|
|
147
|
+
import"./index-ewv8qa8q.js";
|
|
148
|
+
import"./index-r2p0pgst.js";
|
|
149
|
+
import"./index-7g4c7s5r.js";
|
|
150
|
+
import"./index-vw66q1rw.js";
|
|
151
|
+
import"./index-9e6fdz2h.js";
|
|
152
|
+
import"./index-4rhhvd1a.js";
|
|
141
153
|
import {
|
|
142
154
|
init_schema,
|
|
143
155
|
stripKnownSwarmPrefix
|
|
144
|
-
} from "./index-
|
|
145
|
-
import"./index-9e6fdz2h.js";
|
|
146
|
-
import"./index-4rhhvd1a.js";
|
|
147
|
-
import"./index-dsg9dw3b.js";
|
|
156
|
+
} from "./index-cgewrpw5.js";
|
|
148
157
|
import {
|
|
149
158
|
AGENT_TOOL_MAP,
|
|
150
159
|
ORCHESTRATOR_NAME,
|
|
151
160
|
init_constants
|
|
152
161
|
} from "./index-50j914b5.js";
|
|
153
162
|
import"./index-zjygnfay.js";
|
|
154
|
-
import"./index-ae75rja9.js";
|
|
155
|
-
import"./index-vdn32nws.js";
|
|
156
|
-
import"./index-xnb3tk7x.js";
|
|
157
163
|
import"./index-bk5tah7q.js";
|
|
158
|
-
import"./index-7qefgq4j.js";
|
|
159
|
-
import"./index-2bgr671r.js";
|
|
160
|
-
import"./index-9gxbjkts.js";
|
|
161
|
-
import"./index-ww6zm5hr.js";
|
|
162
|
-
import"./index-7g4c7s5r.js";
|
|
163
164
|
import"./index-bpmtbmy9.js";
|
|
165
|
+
import"./index-4fwbbad3.js";
|
|
164
166
|
import"./index-zgwm4ryv.js";
|
|
165
167
|
import"./index-a76rekgs.js";
|
|
166
168
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
bunSpawn
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-p612v1mv.js";
|
|
5
5
|
import {
|
|
6
6
|
init_git_executable,
|
|
7
7
|
resolveGitExecutable
|
|
@@ -92,7 +92,7 @@ var _internals = {
|
|
|
92
92
|
symlinkSync: fs.symlinkSync
|
|
93
93
|
},
|
|
94
94
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
95
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
95
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-brrk806y.js");
|
|
96
96
|
return realWrite(directory, taskId, files);
|
|
97
97
|
},
|
|
98
98
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -463,6 +463,26 @@ async function removeWorktree(worktreePath, projectRoot, options) {
|
|
|
463
463
|
for (let attempt = 0;attempt < MAX_RETRIES; attempt++) {
|
|
464
464
|
const result = await runGit(["worktree", "remove", worktreePath], projectRoot);
|
|
465
465
|
if (result.exitCode === 0) {
|
|
466
|
+
if (fs.existsSync(worktreePath)) {
|
|
467
|
+
const trusted = isPathUnderSwarmWorktreeBase(worktreePath, projectRoot, options?.worktreeDir ? [options.worktreeDir] : []);
|
|
468
|
+
if (!trusted) {
|
|
469
|
+
return {
|
|
470
|
+
error: "git removed the worktree registration but the residual directory is outside the trusted swarm worktree base"
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
try {
|
|
474
|
+
fs.rmSync(worktreePath, { recursive: true, force: true });
|
|
475
|
+
} catch (error) {
|
|
476
|
+
return {
|
|
477
|
+
error: `git removed the worktree registration but residual directory cleanup failed: ${error instanceof Error ? error.message : String(error)}`
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
if (fs.existsSync(worktreePath)) {
|
|
481
|
+
return {
|
|
482
|
+
error: "git removed the worktree registration but the residual directory still exists after cleanup"
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
}
|
|
466
486
|
return { success: true };
|
|
467
487
|
}
|
|
468
488
|
lastError = result.stderr.trim() || result.stdout.trim();
|
|
@@ -473,6 +493,20 @@ async function removeWorktree(worktreePath, projectRoot, options) {
|
|
|
473
493
|
if (options?.force && isPathUnderSwarmWorktreeBase(worktreePath, projectRoot, options.worktreeDir ? [options.worktreeDir] : [])) {
|
|
474
494
|
const forced = await runGit(["worktree", "remove", "--force", worktreePath], projectRoot);
|
|
475
495
|
if (forced.exitCode === 0) {
|
|
496
|
+
if (fs.existsSync(worktreePath)) {
|
|
497
|
+
try {
|
|
498
|
+
fs.rmSync(worktreePath, { recursive: true, force: true });
|
|
499
|
+
} catch (error) {
|
|
500
|
+
return {
|
|
501
|
+
error: `git force-removed the worktree registration but residual directory cleanup failed: ${error instanceof Error ? error.message : String(error)}`
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
if (fs.existsSync(worktreePath)) {
|
|
505
|
+
return {
|
|
506
|
+
error: "git force-removed the worktree registration but the residual directory still exists after cleanup"
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
}
|
|
476
510
|
return { success: true };
|
|
477
511
|
}
|
|
478
512
|
return { error: forced.stderr.trim() || forced.stdout.trim() };
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./index-7qefgq4j.js";
|
|
5
5
|
import {
|
|
6
6
|
atomicWriteSwarmFile
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-ewv8qa8q.js";
|
|
8
8
|
import {
|
|
9
9
|
pseudonymousRef,
|
|
10
10
|
resolveLineageSalt,
|
|
11
11
|
telemetry
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-r2p0pgst.js";
|
|
13
13
|
|
|
14
14
|
// src/health/learning-health.ts
|
|
15
15
|
import { promises as fs } from "fs";
|