opencode-swarm 7.152.1 → 7.153.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.
Files changed (87) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +10 -10
  2. package/dist/cli/{capability-probe-va4kk8vg.js → capability-probe-5wa7mcp6.js} +3 -2
  3. package/dist/cli/{config-doctor-bbqmye7a.js → config-doctor-7s7xga6f.js} +3 -3
  4. package/dist/cli/{core-fh4e6ex0.js → core-vkpy14vv.js} +2 -2
  5. package/dist/cli/{curation-policy-nem98yc9.js → curation-policy-xy7tm4ad.js} +4 -4
  6. package/dist/cli/{curator-909s9dvs.js → curator-6freqnhf.js} +25 -26
  7. package/dist/cli/{curator-llm-factory-462rysph.js → curator-llm-factory-q5cjk7mt.js} +25 -26
  8. package/dist/cli/{evidence-summary-service-kqw4y0yr.js → evidence-summary-service-engtgjww.js} +11 -11
  9. package/dist/cli/{gate-evidence-ycts62pj.js → gate-evidence-6bzzz8kq.js} +5 -5
  10. package/dist/cli/{guardrail-explain-7620hasq.js → guardrail-explain-vsck39dh.js} +26 -27
  11. package/dist/cli/{guardrail-log-e1tmdxxa.js → guardrail-log-0dn8m3k6.js} +4 -4
  12. package/dist/cli/{guardrail-reset-gdnaxxvb.js → guardrail-reset-6e2vyfn9.js} +25 -26
  13. package/dist/cli/{hive-promoter-d0xydg6r.js → hive-promoter-021abs6z.js} +25 -26
  14. package/dist/cli/{index-mken64yj.js → index-0n7nm9e8.js} +1 -1
  15. package/dist/cli/{index-pvrap7xg.js → index-1yfpw7w0.js} +1 -1
  16. package/dist/cli/{index-2e1294d1.js → index-3z2f1cy8.js} +16 -10
  17. package/dist/cli/{index-n0vc5b5t.js → index-3z5jtyan.js} +14 -6
  18. package/dist/cli/{index-85gkedsf.js → index-4fwbbad3.js} +521 -15
  19. package/dist/cli/{index-nd8tkb3g.js → index-4gn111h3.js} +5 -5
  20. package/dist/cli/{index-rq6aetkv.js → index-5w915x8b.js} +4 -4
  21. package/dist/cli/{index-q77e475x.js → index-5x67858f.js} +3 -3
  22. package/dist/cli/{index-k3d919yf.js → index-6v77adf7.js} +84 -23
  23. package/dist/cli/{index-0tfgn5x0.js → index-77xy577c.js} +6 -6
  24. package/dist/cli/{index-02ajc6d1.js → index-7q56f3se.js} +2 -2
  25. package/dist/cli/{index-xyfdmrv7.js → index-80ekaf5b.js} +1 -1
  26. package/dist/cli/{index-sg2sx2q7.js → index-95qra69h.js} +3826 -2018
  27. package/dist/cli/{index-73pmnsjg.js → index-9gjbe4e4.js} +1 -1
  28. package/dist/cli/{index-z8s2asdk.js → index-9vdh4kdx.js} +22 -150
  29. package/dist/cli/{index-z9fyd0d6.js → index-babtfqa0.js} +2 -2
  30. package/dist/cli/{index-4tvvh7pn.js → index-dh1gk5c5.js} +29 -28
  31. package/dist/cli/{index-3djxegsc.js → index-e2hs0bh7.js} +1 -1
  32. package/dist/cli/{index-qqrdmaxq.js → index-eajfs7v4.js} +2 -2
  33. package/dist/cli/{index-26vyr198.js → index-eqh3t8eh.js} +6 -6
  34. package/dist/cli/{index-29vd7v3e.js → index-g0m6kypc.js} +1 -1
  35. package/dist/cli/{index-96m8ckpq.js → index-hexhzq5j.js} +4 -4
  36. package/dist/cli/{index-ryecg2st.js → index-hkmgzesw.js} +3 -3
  37. package/dist/cli/{index-x6803sxh.js → index-hw49515c.js} +2 -2
  38. package/dist/cli/{index-7fh82sm1.js → index-k2ydsqs7.js} +2 -2
  39. package/dist/cli/{index-cpg98bh1.js → index-myt57pht.js} +1 -1
  40. package/dist/cli/{index-79g6edht.js → index-qgfnd206.js} +1 -1
  41. package/dist/cli/{index-44xdtqz8.js → index-x6zy6veh.js} +1 -1
  42. package/dist/cli/{index-dn6yt0xg.js → index-xv881ahz.js} +5 -5
  43. package/dist/cli/index.js +25 -26
  44. package/dist/cli/{knowledge-escalator-4egcr928.js → knowledge-escalator-79zbhpz5.js} +10 -10
  45. package/dist/cli/{knowledge-events-kdyv4jzn.js → knowledge-events-79cak7eb.js} +8 -8
  46. package/dist/cli/{knowledge-link-h8cwj7af.js → knowledge-link-40zsr5ja.js} +3 -3
  47. package/dist/cli/{knowledge-store-dq3cvg53.js → knowledge-store-w29aw5w0.js} +4 -4
  48. package/dist/cli/{knowledge-validator-4bhtden9.js → knowledge-validator-qsecnt2d.js} +6 -6
  49. package/dist/cli/{model-preflight-7ea00h34.js → model-preflight-b95w8wxy.js} +1 -1
  50. package/dist/cli/{runner-w81n9js3.js → runner-fbgsxs74.js} +4 -4
  51. package/dist/cli/{scan-cursor-2eezv81a.js → scan-cursor-1r3pcdqp.js} +5 -5
  52. package/dist/cli/{schema-v4qcqhek.js → schema-19qsv6fw.js} +2 -2
  53. package/dist/cli/{scope-persistence-y2r227r0.js → scope-persistence-ypcrvqtt.js} +6 -6
  54. package/dist/cli/{skill-generator-hhzxvb3h.js → skill-generator-wpp9kpa0.js} +12 -12
  55. package/dist/cli/{worktree-isolation-ve338ez6.js → worktree-isolation-wcry8qnn.js} +25 -26
  56. package/dist/commands/approve-write.d.ts +1 -0
  57. package/dist/commands/index.d.ts +1 -0
  58. package/dist/commands/registry.d.ts +7 -0
  59. package/dist/config/schema.d.ts +39 -4
  60. package/dist/consensus/contracts.d.ts +14 -0
  61. package/dist/hooks/full-auto-permission.d.ts +7 -0
  62. package/dist/hooks/guardrails/index.d.ts +2 -1
  63. package/dist/hooks/guardrails/tool-before.d.ts +4 -0
  64. package/dist/hooks/pr-workflow-gate.d.ts +12 -0
  65. package/dist/hooks/scope-guard.d.ts +1 -3
  66. package/dist/index.js +624 -606
  67. package/dist/learning/provenance.d.ts +9 -0
  68. package/dist/sandbox/capability-probe.d.ts +40 -1
  69. package/dist/sandbox/executor.d.ts +26 -1
  70. package/dist/sandbox/linux/bubblewrap-executor.d.ts +3 -1
  71. package/dist/sandbox/macos/sandbox-exec-executor.d.ts +3 -1
  72. package/dist/sandbox/skip-state.d.ts +24 -0
  73. package/dist/sandbox/win32/native-sandbox-executor.d.ts +5 -1
  74. package/dist/security/command-classifier.d.ts +22 -0
  75. package/dist/security/protected-input-integrity.d.ts +19 -0
  76. package/dist/security/protected-path-policy.d.ts +9 -0
  77. package/dist/security/write-authority.d.ts +46 -0
  78. package/dist/services/diagnose-service.d.ts +1 -1
  79. package/dist/services/skill-generator.d.ts +2 -0
  80. package/dist/services/skill-improver.d.ts +69 -0
  81. package/dist/tools/dispatch-lanes.d.ts +47 -0
  82. package/dist/tools/repo-graph/query.d.ts +2 -1
  83. package/dist/tools/repo-graph/types.d.ts +64 -0
  84. package/dist/tools/repo-graph.d.ts +1 -1
  85. package/dist/tools/skill-improve.d.ts +7 -0
  86. package/package.json +1 -1
  87. package/dist/cli/index-3g0xk6tk.js +0 -219
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.152.1",
3
+ "version": "7.153.0",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,219 +0,0 @@
1
- // @bun
2
- import {
3
- _internals,
4
- _internals1 as _internals2,
5
- exports_runner_client,
6
- init_bubblewrap_executor,
7
- init_runner_client,
8
- init_sandbox_exec_executor
9
- } from "./index-85gkedsf.js";
10
- import {
11
- __esm,
12
- __toCommonJS
13
- } from "./index-a76rekgs.js";
14
-
15
- // src/sandbox/capability-probe.ts
16
- import { execFile, spawnSync } from "child_process";
17
- import * as os from "os";
18
- function _resetCapabilityCache() {
19
- _cached = undefined;
20
- }
21
- function withProbeTimeout(cmd, args, ms) {
22
- return new Promise((resolve, reject) => {
23
- const controller = new AbortController;
24
- const timer = setTimeout(() => {
25
- controller.abort();
26
- proc?.kill();
27
- }, ms);
28
- const unref = timer.unref;
29
- if (typeof unref === "function") {
30
- unref.call(timer);
31
- }
32
- let proc;
33
- try {
34
- proc = execFile(cmd, args, {
35
- signal: controller.signal,
36
- timeout: ms,
37
- windowsHide: true,
38
- cwd: os.tmpdir()
39
- }, (error, stdout, _stderr) => {
40
- clearTimeout(timer);
41
- if (error) {
42
- const exc = error;
43
- if (exc.code === "ENOENT" || exc.code === "ENOTFOUND") {
44
- reject(new Error("binary not found"));
45
- } else {
46
- reject(error);
47
- }
48
- return;
49
- }
50
- resolve(stdout?.trim() ?? "");
51
- });
52
- } catch (spawnError) {
53
- clearTimeout(timer);
54
- reject(spawnError);
55
- }
56
- });
57
- }
58
- async function probeLinux() {
59
- try {
60
- const binary = _internals.resolveBwrapBinary();
61
- const output = await _internals3.withProbeTimeout(binary, ["--version"], 2000);
62
- if (output.length > 0) {
63
- return {
64
- status: "enabled",
65
- strength: "strong",
66
- mechanism: "Bubblewrap",
67
- platform: "linux"
68
- };
69
- }
70
- return {
71
- status: "disabled",
72
- mechanism: "Bubblewrap",
73
- platform: "linux",
74
- error: "binary returned empty version"
75
- };
76
- } catch (err) {
77
- const msg = err instanceof Error ? err.message : String(err);
78
- if (msg === "binary not found") {
79
- return {
80
- status: "unsupported",
81
- mechanism: "Bubblewrap",
82
- platform: "linux",
83
- error: msg
84
- };
85
- }
86
- return {
87
- status: "disabled",
88
- mechanism: "Bubblewrap",
89
- platform: "linux",
90
- error: msg
91
- };
92
- }
93
- }
94
- async function probeMacOS() {
95
- try {
96
- const binary = _internals2.resolveSandboxExecBinary();
97
- const target = _internals2.resolveProbeTargetBinary();
98
- const profile = _internals2.buildProbeProfile(os.tmpdir());
99
- await _internals3.withProbeTimeout(binary, ["-p", profile, target], 2000);
100
- return {
101
- status: "enabled",
102
- strength: "strong",
103
- mechanism: "sandbox-exec",
104
- platform: "darwin"
105
- };
106
- } catch (err) {
107
- const msg = err instanceof Error ? err.message : String(err);
108
- if (msg === "binary not found") {
109
- return {
110
- status: "unsupported",
111
- mechanism: "sandbox-exec",
112
- platform: "darwin",
113
- error: msg
114
- };
115
- }
116
- return {
117
- status: "disabled",
118
- mechanism: "sandbox-exec",
119
- platform: "darwin",
120
- error: msg
121
- };
122
- }
123
- }
124
- function probeWindows() {
125
- try {
126
- const { probe: runnerProbe } = (init_runner_client(), __toCommonJS(exports_runner_client));
127
- const result = runnerProbe();
128
- if (result.available) {
129
- return {
130
- status: "enabled",
131
- strength: "strong",
132
- platform: "win32",
133
- mechanism: `native-runner/${result.mode}`
134
- };
135
- }
136
- } catch {}
137
- try {
138
- const result = spawnSync("cmd", ["/c", "echo", "ok"], {
139
- windowsHide: true,
140
- encoding: "utf-8",
141
- timeout: 5000,
142
- stdio: ["ignore", "pipe", "ignore"]
143
- });
144
- if (result.error) {
145
- return {
146
- status: "disabled",
147
- platform: "win32",
148
- mechanism: "PowerShell wrapper",
149
- error: `cmd.exe probe failed: ${result.error.code}`
150
- };
151
- }
152
- return result.status === 0 ? {
153
- status: "enabled",
154
- strength: "advisory",
155
- platform: "win32",
156
- mechanism: "PowerShell wrapper"
157
- } : {
158
- status: "disabled",
159
- platform: "win32",
160
- mechanism: "PowerShell wrapper",
161
- error: "cmd.exe probe returned non-zero"
162
- };
163
- } catch (err) {
164
- return {
165
- status: "disabled",
166
- platform: "win32",
167
- mechanism: "PowerShell wrapper",
168
- error: String(err)
169
- };
170
- }
171
- }
172
- function isBubblewrapAvailable() {
173
- return _cached?.status === "enabled" && _cached?.platform === "linux";
174
- }
175
- function isSandboxExecAvailable() {
176
- return _cached?.status === "enabled" && _cached?.platform === "darwin";
177
- }
178
- function isWindowsSandboxAvailable() {
179
- return _cached?.status === "enabled" && _cached?.platform === "win32";
180
- }
181
-
182
- class SandboxCapabilityProbe {
183
- async detect() {
184
- if (_cached !== undefined) {
185
- return _cached;
186
- }
187
- const platform = process.platform;
188
- switch (platform) {
189
- case "linux":
190
- _cached = await probeLinux();
191
- break;
192
- case "darwin":
193
- _cached = await probeMacOS();
194
- break;
195
- case "win32":
196
- _cached = probeWindows();
197
- break;
198
- default: {
199
- _cached = {
200
- status: "unsupported",
201
- mechanism: "unknown",
202
- platform,
203
- error: `unsupported platform: ${platform}`
204
- };
205
- }
206
- }
207
- return _cached;
208
- }
209
- }
210
- var _cached, _internals3;
211
- var init_capability_probe = __esm(() => {
212
- init_bubblewrap_executor();
213
- init_sandbox_exec_executor();
214
- _internals3 = {
215
- withProbeTimeout
216
- };
217
- });
218
-
219
- export { _resetCapabilityCache, _internals3 as _internals, isBubblewrapAvailable, isSandboxExecAvailable, isWindowsSandboxAvailable, SandboxCapabilityProbe, init_capability_probe };