opencode-swarm 7.179.1 → 7.180.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 (104) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/background/pr-event-subscribers.d.ts +2 -0
  4. package/dist/background/pr-feedback-event-queue.d.ts +7 -0
  5. package/dist/background/pr-feedback-loop.d.ts +162 -0
  6. package/dist/cli/{coder-settlement-f1nmezzv.js → coder-settlement-34z9xgnx.js} +13 -13
  7. package/dist/cli/{config-doctor-ena2803f.js → config-doctor-tkfrwztz.js} +2 -2
  8. package/dist/cli/{core-fcfzme3m.js → core-z9ybzpvr.js} +4 -5
  9. package/dist/cli/{curation-policy-c7mdsf7m.js → curation-policy-gwzmjmt7.js} +6 -5
  10. package/dist/cli/{curator-drift-d93pwt8h.js → curator-drift-3bbn011w.js} +22 -12
  11. package/dist/cli/curator-llm-factory-e162g7xp.js +74 -0
  12. package/dist/cli/{curator-q9s5q9v4.js → curator-zv4qs07j.js} +44 -42
  13. package/dist/cli/{evidence-summary-service-wtj8mkm6.js → evidence-summary-service-wrfth5tr.js} +22 -20
  14. package/dist/cli/{gate-evidence-h83yb8nd.js → gate-evidence-adqbxnm7.js} +8 -8
  15. package/dist/cli/guardrail-explain-dn96802k.js +75 -0
  16. package/dist/cli/{guardrail-log-zf1htf1d.js → guardrail-log-rcza6v3y.js} +6 -6
  17. package/dist/cli/{guardrail-reset-f2p198j3.js → guardrail-reset-fjn42e0n.js} +44 -42
  18. package/dist/cli/hive-promoter-hgqqn7qw.js +89 -0
  19. package/dist/cli/{index-aqpwm350.js → index-06crt1ej.js} +2 -2
  20. package/dist/cli/{index-wrt875kh.js → index-0725jpp7.js} +1 -1
  21. package/dist/cli/{index-f2v90gfc.js → index-0v1rtanv.js} +24 -165
  22. package/dist/cli/{index-q375xdcw.js → index-1hzqyx13.js} +9 -1
  23. package/dist/cli/{index-xy7k7f3k.js → index-1p8fk9jb.js} +2 -2
  24. package/dist/cli/{index-pfg3jwe9.js → index-2h0qng38.js} +3 -3
  25. package/dist/cli/{index-9fb01jk5.js → index-3jap3516.js} +1 -1
  26. package/dist/cli/{index-dz12bshh.js → index-5gmn0a3j.js} +8 -8
  27. package/dist/cli/{index-5d224akk.js → index-5m378633.js} +4 -4
  28. package/dist/cli/{index-0h3cr7pn.js → index-5yc5n4ae.js} +1 -1
  29. package/dist/cli/{index-pn023bf9.js → index-7pj0x345.js} +48 -46
  30. package/dist/cli/{index-w4c2repz.js → index-7w6dnpvc.js} +44 -42
  31. package/dist/cli/{index-zbhvr9st.js → index-8b1f2t5q.js} +8 -10
  32. package/dist/cli/{index-cvg402ha.js → index-91dhg3wr.js} +2 -2
  33. package/dist/cli/{index-3pzwsesm.js → index-92m05mew.js} +2 -2
  34. package/dist/cli/{index-6r92fw88.js → index-93vk5s7v.js} +8 -8
  35. package/dist/cli/{index-ne9zamcs.js → index-989v83pb.js} +1 -1
  36. package/dist/cli/{index-g6nyk713.js → index-aspxz5r5.js} +1 -1
  37. package/dist/cli/index-b9z9gvx0.js +339 -0
  38. package/dist/cli/{index-2b0ktpbf.js → index-bdpgfep1.js} +5 -5
  39. package/dist/cli/{index-nzekzzs2.js → index-bv4b8tpa.js} +5 -5
  40. package/dist/cli/{index-n1tcj1q7.js → index-bx70zs8d.js} +187 -47
  41. package/dist/cli/{index-n2wjrgcs.js → index-caj76d0f.js} +6 -8
  42. package/dist/cli/{index-549wxbe1.js → index-cjapb4hy.js} +1 -1
  43. package/dist/cli/{index-y94vwx2q.js → index-cxgr6ad5.js} +13 -15
  44. package/dist/cli/{index-ajm7ebyd.js → index-dcttq1mn.js} +2 -2
  45. package/dist/cli/{index-9s1xzvnn.js → index-defq2crz.js} +13 -3
  46. package/dist/cli/{index-ky262b73.js → index-dnbqmay5.js} +1606 -895
  47. package/dist/cli/index-ejhxgyvm.js +147 -0
  48. package/dist/cli/{index-epfjc1c1.js → index-ekgc71m1.js} +10 -10
  49. package/dist/cli/{index-s4bkey0q.js → index-gc6h1fmf.js} +4 -4
  50. package/dist/cli/index-gx2vp8gx.js +100 -0
  51. package/dist/cli/{index-h59vsbch.js → index-htrb9ec3.js} +1 -1
  52. package/dist/cli/{index-yfpswnjt.js → index-jmrsfhwq.js} +3 -3
  53. package/dist/cli/{index-rb9jmj30.js → index-jrfv2am8.js} +7 -7
  54. package/dist/cli/{index-pskba939.js → index-jscqefqm.js} +1 -1
  55. package/dist/cli/{index-y98fvmb8.js → index-kp654qcw.js} +32 -17
  56. package/dist/cli/{index-93nx95me.js → index-mhrn7hbb.js} +8 -7
  57. package/dist/cli/{index-h4nh6s8b.js → index-nhxykfyy.js} +1 -1
  58. package/dist/cli/{index-yp25bc9n.js → index-pnt98k7z.js} +7 -7
  59. package/dist/cli/{index-vp9pn7sv.js → index-ret97f1t.js} +5 -5
  60. package/dist/cli/{index-sj29n50e.js → index-v1sc1gxv.js} +6 -6
  61. package/dist/cli/{index-a11ztzs5.js → index-vmthakz0.js} +1 -1
  62. package/dist/cli/{index-b567t0cr.js → index-x6kjbjya.js} +9 -7
  63. package/dist/cli/{index-m1w40kfw.js → index-zptq8mp1.js} +4 -103
  64. package/dist/cli/{index-34bwqcea.js → index-zvxy0mev.js} +1 -1
  65. package/dist/cli/{index-zz7gzw57.js → index-zxdawwc7.js} +88 -4
  66. package/dist/cli/index.js +45 -43
  67. package/dist/cli/{knowledge-escalator-z6tkgrjq.js → knowledge-escalator-x8vcmb6k.js} +16 -15
  68. package/dist/cli/{knowledge-events-2bgefatz.js → knowledge-events-naf9kyyc.js} +14 -13
  69. package/dist/cli/{knowledge-link-gfz47ves.js → knowledge-link-g0q25hqv.js} +5 -4
  70. package/dist/cli/{knowledge-store-1fphg9sa.js → knowledge-store-dnv0ph42.js} +6 -5
  71. package/dist/cli/{knowledge-validator-723h2vck.js → knowledge-validator-a1rfzkmv.js} +8 -7
  72. package/dist/cli/{mcp-xyswgya5.js → mcp-hnb0m05a.js} +1 -1
  73. package/dist/cli/{pending-delegations-5zm19yvv.js → pending-delegations-05p6cmbh.js} +13 -12
  74. package/dist/cli/{pr-subscriptions-5hm6hzv6.js → pr-subscriptions-a2djfzyx.js} +13 -12
  75. package/dist/cli/{pr-workflow-gate-48rzb2bh.js → pr-workflow-gate-wkmx8nr6.js} +46 -42
  76. package/dist/cli/{runner-16b691ba.js → runner-hkbds12j.js} +6 -5
  77. package/dist/cli/{scan-cursor-m28tddrg.js → scan-cursor-4khfn5pm.js} +8 -8
  78. package/dist/cli/{schema-jt9axyj6.js → schema-a5zb02h8.js} +3 -1
  79. package/dist/cli/{scope-persistence-d0358pw7.js → scope-persistence-nsw324ce.js} +18 -17
  80. package/dist/cli/{server-d5jxcbxz.js → server-exj4wt8j.js} +52 -50
  81. package/dist/cli/{skill-generator-qanka67x.js → skill-generator-r2cdtx7b.js} +18 -17
  82. package/dist/cli/{snapshot-coordination-init-mhrq11p8.js → snapshot-coordination-init-sad6q0a2.js} +44 -42
  83. package/dist/cli/speckit-checkoff-46g9sqak.js +31 -0
  84. package/dist/cli/{workspace-snapshot-rfnn80dg.js → workspace-snapshot-4m2ex1ey.js} +4 -5
  85. package/dist/cli/{worktree-collision-ownership-ygdbpexh.js → worktree-collision-ownership-4znkfq1t.js} +16 -16
  86. package/dist/cli/{worktree-isolation-4855f2az.js → worktree-isolation-mv9ee00v.js} +44 -42
  87. package/dist/commands/pr-feedback-loop.d.ts +1 -0
  88. package/dist/commands/registry.d.ts +10 -2
  89. package/dist/config/schema.d.ts +27 -0
  90. package/dist/hooks/delegation-tracker.d.ts +6 -1
  91. package/dist/hooks/pr-workflow-gate.d.ts +1 -1
  92. package/dist/index.js +626 -600
  93. package/dist/sdd/effective-spec.d.ts +35 -22
  94. package/dist/sdd/speckit-checkoff.d.ts +113 -0
  95. package/dist/session/hydration-ownership.d.ts +83 -0
  96. package/dist/session/snapshot-coordination-init.d.ts +2 -1
  97. package/dist/session/snapshot-reader.d.ts +25 -7
  98. package/dist/state.d.ts +32 -2
  99. package/opencode-swarm.schema.json +40 -0
  100. package/package.json +1 -1
  101. package/dist/cli/curator-llm-factory-dds2fnhj.js +0 -72
  102. package/dist/cli/guardrail-explain-qm5wej7v.js +0 -73
  103. package/dist/cli/hive-promoter-1mhx2jh0.js +0 -87
  104. package/dist/cli/index-4ddpvd5c.js +0 -94
@@ -1,87 +0,0 @@
1
- // @bun
2
- import {
3
- _internals3 as _internals,
4
- checkHivePromotions,
5
- countDistinctProjects,
6
- createHivePromoterHook,
7
- isHiveEligible,
8
- promoteFromSwarm,
9
- promoteToHive
10
- } from "./index-ky262b73.js";
11
- import"./index-hamqvzqn.js";
12
- import"./index-pskba939.js";
13
- import"./index-aqpwm350.js";
14
- import"./index-h4nh6s8b.js";
15
- import"./index-q375xdcw.js";
16
- import"./index-y98fvmb8.js";
17
- import"./index-g6nyk713.js";
18
- import"./index-txdagbh7.js";
19
- import"./index-n1tcj1q7.js";
20
- import"./index-6b295cas.js";
21
- import"./index-dz12bshh.js";
22
- import"./index-vp9pn7sv.js";
23
- import"./index-pfg3jwe9.js";
24
- import"./index-rdec0y3z.js";
25
- import"./index-6r92fw88.js";
26
- import"./index-549wxbe1.js";
27
- import"./index-zsrtt42s.js";
28
- import"./index-y94vwx2q.js";
29
- import"./index-2b0ktpbf.js";
30
- import"./index-3pzwsesm.js";
31
- import"./index-pt7h91zc.js";
32
- import"./index-q7sjgr1y.js";
33
- import"./index-n2wjrgcs.js";
34
- import"./index-zbhvr9st.js";
35
- import"./index-sj29n50e.js";
36
- import"./index-epfjc1c1.js";
37
- import"./index-s4bkey0q.js";
38
- import"./index-2s7dvzff.js";
39
- import"./index-5d224akk.js";
40
- import"./index-0h3cr7pn.js";
41
- import"./index-rtry5xyf.js";
42
- import"./index-ajm7ebyd.js";
43
- import"./index-frcemc0b.js";
44
- import"./index-wrt875kh.js";
45
- import"./index-rb9jmj30.js";
46
- import"./index-b567t0cr.js";
47
- import"./index-h59vsbch.js";
48
- import"./index-cvg402ha.js";
49
- import"./index-a11ztzs5.js";
50
- import"./index-nzekzzs2.js";
51
- import"./index-ry16d01s.js";
52
- import"./index-rdm3px0g.js";
53
- import"./index-yfpswnjt.js";
54
- import {
55
- resolveHiveKnowledgePath
56
- } from "./index-yp25bc9n.js";
57
- import"./index-vzm6zre7.js";
58
- import"./index-ae75rja9.js";
59
- import"./index-34bwqcea.js";
60
- import"./index-f2v90gfc.js";
61
- import"./index-7g4c7s5r.js";
62
- import"./index-qt0793qm.js";
63
- import"./index-ne9zamcs.js";
64
- import"./index-1xnse449.js";
65
- import"./index-c1ggtmpm.js";
66
- import"./index-m1w40kfw.js";
67
- import"./index-zz7gzw57.js";
68
- import"./index-4ddpvd5c.js";
69
- import"./index-9s1xzvnn.js";
70
- import"./index-w872yykk.js";
71
- import"./index-bk5tah7q.js";
72
- import"./index-gknz3bv1.js";
73
- import"./index-zpsr8rpc.js";
74
- import"./index-wvghb3x6.js";
75
- import"./index-9rwhas09.js";
76
- import"./index-zgwm4ryv.js";
77
- import"./index-a76rekgs.js";
78
- export {
79
- resolveHiveKnowledgePath,
80
- promoteToHive,
81
- promoteFromSwarm,
82
- isHiveEligible,
83
- createHivePromoterHook,
84
- countDistinctProjects,
85
- checkHivePromotions,
86
- _internals
87
- };
@@ -1,94 +0,0 @@
1
- // @bun
2
- import {
3
- init_logger,
4
- log
5
- } from "./index-zgwm4ryv.js";
6
- import {
7
- __esm
8
- } from "./index-a76rekgs.js";
9
-
10
- // src/observability/startup-contract.ts
11
- function noteStartupAdvisory() {
12
- if (!state.advisoryWindowOpen)
13
- return;
14
- state.advisoryCount += 1;
15
- }
16
- var state;
17
- var init_startup_contract = __esm(() => {
18
- state = {
19
- importMarkMs: null,
20
- serverStartMark: null,
21
- serverResolvedMark: null,
22
- serverMs: null,
23
- queueScheduledAt: null,
24
- queuePending: 0,
25
- queueTasks: 0,
26
- queueCompleted: 0,
27
- queueFailed: 0,
28
- queueSettled: false,
29
- queueSettledMs: null,
30
- advisoryCount: 0,
31
- advisoryWindowOpen: false,
32
- firstTurnDone: false,
33
- firstToolDone: false,
34
- firstToolName: null,
35
- firstTurnMs: null,
36
- firstToolMs: null
37
- };
38
- });
39
-
40
- // src/services/warning-buffer.ts
41
- function sanitizeBufferedLine(s) {
42
- return s.replace(/\s+/g, " ").replace(CONTROL_CHARS_RE, "").replace(/\s+/g, " ").trim();
43
- }
44
- function addDeferredWarning(warning) {
45
- noteStartupAdvisory();
46
- const sanitized = sanitizeBufferedLine(warning);
47
- if (deferredWarnings.length < MAX_DEFERRED_WARNINGS - 1) {
48
- deferredWarnings.push(sanitized);
49
- return;
50
- }
51
- if (!deferredWarningsTruncated) {
52
- deferredWarnings.push(`[opencode-swarm] ${MAX_DEFERRED_WARNINGS - 1} deferred warnings buffered; additional advisories were dropped (cap reached). Run with OPENCODE_SWARM_DEBUG=1 to see all advisories in the debug log.`);
53
- deferredWarningsTruncated = true;
54
- }
55
- }
56
- function renderAdvisoryDetail(data) {
57
- if (data === undefined || data === null)
58
- return "";
59
- let raw;
60
- if (typeof data === "string") {
61
- raw = data;
62
- } else if (data instanceof Error) {
63
- raw = data.message;
64
- } else if (Array.isArray(data) && data.every((d) => typeof d === "string")) {
65
- raw = data.join("; ");
66
- } else {
67
- try {
68
- raw = JSON.stringify(data) ?? String(data);
69
- } catch {
70
- raw = String(data);
71
- }
72
- }
73
- const collapsed = sanitizeBufferedLine(raw);
74
- if (collapsed === "")
75
- return "";
76
- return collapsed.length > MAX_ADVISORY_DETAIL_CHARS ? `${collapsed.slice(0, MAX_ADVISORY_DETAIL_CHARS - 1)}\u2026` : collapsed;
77
- }
78
- function advisoryWarn(message, data) {
79
- const detail = renderAdvisoryDetail(data);
80
- addDeferredWarning(detail ? `${message} ${detail}` : message);
81
- log(message, data);
82
- }
83
- function getDeferredWarnings() {
84
- return [...deferredWarnings];
85
- }
86
- var deferredWarnings, MAX_DEFERRED_WARNINGS = 50, deferredWarningsTruncated = false, CONTROL_CHARS_RE, MAX_ADVISORY_DETAIL_CHARS = 600;
87
- var init_warning_buffer = __esm(() => {
88
- init_startup_contract();
89
- init_logger();
90
- deferredWarnings = [];
91
- CONTROL_CHARS_RE = /[\x00-\x1F\x7F-\x9F]/g;
92
- });
93
-
94
- export { addDeferredWarning, advisoryWarn, getDeferredWarnings, init_warning_buffer };