opencode-swarm 7.123.0 → 7.124.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 (88) hide show
  1. package/README.md +3 -0
  2. package/dist/cli/{config-doctor-3ksh1534.js → config-doctor-53mnpeke.js} +6 -6
  3. package/dist/cli/{core-cwgb7ev8.js → core-d38hc85b.js} +4 -4
  4. package/dist/cli/{curation-policy-4j4qce5a.js → curation-policy-ny033330.js} +2 -2
  5. package/dist/cli/{curator-drift-6b2fjsgr.js → curator-drift-h9a2sjvf.js} +7 -7
  6. package/dist/cli/curator-llm-factory-e0tjz8qq.js +53 -0
  7. package/dist/cli/{curator-tkyn9bzz.js → curator-nvn1pdq6.js} +30 -29
  8. package/dist/cli/{dispatch-07jgc3hn.js → dispatch-f4hj1cj7.js} +3 -3
  9. package/dist/cli/{evidence-summary-service-96ndczbk.js → evidence-summary-service-9hq7n9k9.js} +12 -12
  10. package/dist/cli/{gate-evidence-xqks3kk2.js → gate-evidence-cy2te3x8.js} +2 -2
  11. package/dist/cli/guardrail-explain-d3dd57nf.js +54 -0
  12. package/dist/cli/guardrail-log-3q2z9axs.js +16 -0
  13. package/dist/cli/{hive-promoter-y5wsztkc.js → hive-promoter-9gbpepgm.js} +30 -29
  14. package/dist/cli/index-134d35c1.js +116 -0
  15. package/dist/cli/{index-cqsak7bf.js → index-13d2g7k9.js} +1 -1
  16. package/dist/cli/{index-m1abzg93.js → index-1kz6da87.js} +4 -2
  17. package/dist/cli/{index-22e127jw.js → index-23zsx7dm.js} +5 -3
  18. package/dist/cli/{index-kzj3fp7c.js → index-2445sx3d.js} +1 -1
  19. package/dist/cli/{index-ctpgsj84.js → index-2tn5h2zp.js} +1 -1
  20. package/dist/cli/{index-n2712byd.js → index-2x4maxte.js} +8 -5
  21. package/dist/cli/{index-6xnxz6z0.js → index-3x761jqv.js} +4 -2
  22. package/dist/cli/{index-3rr0ese8.js → index-3yyr4ynk.js} +41 -9
  23. package/dist/cli/{index-7cspygmb.js → index-4rzzzjtg.js} +11 -8
  24. package/dist/cli/{index-nprawcc0.js → index-6n2jpz7x.js} +1 -1
  25. package/dist/cli/{index-7g91saha.js → index-8pz0ypxz.js} +38 -31
  26. package/dist/cli/index-bk5tah7q.js +19 -0
  27. package/dist/cli/{index-293f68mj.js → index-bpmtbmy9.js} +4680 -4342
  28. package/dist/cli/index-c6crt5rs.js +2494 -0
  29. package/dist/cli/{index-19zn67q6.js → index-e19mxn9f.js} +5 -1
  30. package/dist/cli/{index-hns7xjm7.js → index-eeg04r0x.js} +4 -2
  31. package/dist/cli/{index-ye3fndsw.js → index-gacm5s2n.js} +9 -5
  32. package/dist/cli/{index-d6h5hq91.js → index-gnvg72y1.js} +2 -2
  33. package/dist/cli/{index-17eybc3z.js → index-htbjqftb.js} +1 -1
  34. package/dist/cli/{index-vcgfqd8f.js → index-k5jrywpr.js} +4 -2
  35. package/dist/cli/{index-jyrhy4ww.js → index-mkkx1a4f.js} +2435 -1435
  36. package/dist/cli/{index-gnp9x6se.js → index-n832052r.js} +4 -2
  37. package/dist/cli/{index-6sgqnvpw.js → index-qd77aft9.js} +2 -2
  38. package/dist/cli/{index-816rkp4y.js → index-s9mj4rb9.js} +5 -3
  39. package/dist/cli/{index-q00e4s1s.js → index-tyg0zezw.js} +11 -7
  40. package/dist/cli/{index-gw3m5fw0.js → index-v2rdhwx8.js} +5 -3
  41. package/dist/cli/{index-det5jwfk.js → index-v5ecczts.js} +5 -1
  42. package/dist/cli/{index-2j25br0p.js → index-wqwpzhv1.js} +9 -9
  43. package/dist/cli/{index-dywekeen.js → index-x2mmnrnx.js} +1 -1
  44. package/dist/cli/{index-j9kxwshw.js → index-z0m4angq.js} +8 -6
  45. package/dist/cli/{index-5e4e2hvv.js → index-z6xqpmqg.js} +4 -0
  46. package/dist/cli/{index-m0bmh3w0.js → index-zjedv2bd.js} +2 -2
  47. package/dist/cli/{index-p0arc26j.js → index-zjygnfay.js} +7 -2
  48. package/dist/cli/index.js +33 -30
  49. package/dist/cli/{knowledge-escalator-dyxsm78k.js → knowledge-escalator-r1s01m3z.js} +4 -4
  50. package/dist/cli/{knowledge-events-36q6nvae.js → knowledge-events-a9hmxvke.js} +1 -1
  51. package/dist/cli/{knowledge-store-e07b4s54.js → knowledge-store-jt31br5k.js} +2 -2
  52. package/dist/cli/{knowledge-validator-sfyf7wn2.js → knowledge-validator-9vrwxr3z.js} +5 -5
  53. package/dist/cli/{pending-delegations-68cbaqv2.js → pending-delegations-e3bcqj77.js} +7 -5
  54. package/dist/cli/{pr-subscriptions-x653151h.js → pr-subscriptions-bxpqde8w.js} +5 -5
  55. package/dist/cli/{scan-cursor-hm0aqqae.js → scan-cursor-bkjtsawg.js} +3 -3
  56. package/dist/cli/{schema-13bnng2n.js → schema-y3z416z7.js} +7 -4
  57. package/dist/cli/{scope-persistence-d9erwnvb.js → scope-persistence-habn4q8a.js} +4 -4
  58. package/dist/cli/{skill-generator-63r20a9k.js → skill-generator-794hyndw.js} +7 -7
  59. package/dist/cli/sqlite-loader-r1kgt2pq.js +12 -0
  60. package/dist/commands/memory-link.d.ts +28 -0
  61. package/dist/commands/registry.d.ts +25 -0
  62. package/dist/config/schema.d.ts +6 -0
  63. package/dist/index.js +330 -317
  64. package/dist/knowledge/family-migration-shared.d.ts +24 -0
  65. package/dist/knowledge/family-migration.d.ts +5 -0
  66. package/dist/memory/config.d.ts +11 -0
  67. package/dist/memory/consolidation-log.d.ts +8 -2
  68. package/dist/memory/finalize-reward-sweep.d.ts +2 -1
  69. package/dist/memory/gateway.d.ts +13 -0
  70. package/dist/memory/index.d.ts +4 -2
  71. package/dist/memory/local-jsonl-provider.d.ts +25 -1
  72. package/dist/memory/memory-family-manifest.d.ts +52 -0
  73. package/dist/memory/memory-family-migration.d.ts +94 -0
  74. package/dist/memory/memory-link.d.ts +103 -0
  75. package/dist/memory/provider-pool.d.ts +35 -0
  76. package/dist/memory/redaction.d.ts +31 -0
  77. package/dist/memory/schema.d.ts +21 -0
  78. package/dist/memory/sqlite-provider.d.ts +58 -1
  79. package/dist/memory/storage-root.d.ts +93 -0
  80. package/dist/memory/types.d.ts +20 -1
  81. package/dist/services/knowledge-diagnostics.d.ts +25 -0
  82. package/dist/services/status-service.d.ts +16 -0
  83. package/package.json +1 -1
  84. package/dist/cli/curator-llm-factory-mfvd4sqx.js +0 -52
  85. package/dist/cli/guardrail-explain-4vytbchb.js +0 -53
  86. package/dist/cli/guardrail-log-z291m4gw.js +0 -16
  87. package/dist/cli/index-4rhcth7a.js +0 -14
  88. package/dist/cli/index-wr8qgpz5.js +0 -2463
package/README.md CHANGED
@@ -1144,6 +1144,9 @@ Control how tool outputs are summarized for LLM context.
1144
1144
  | `/swarm memory evaluate` | Run memory recall evaluation fixtures |
1145
1145
  | `/swarm memory import` | Import legacy JSONL memory into SQLite |
1146
1146
  | `/swarm memory migrate` | Run the one-time JSONL to SQLite migration |
1147
+ | `/swarm memory link [name]` | Share memory across linked worktrees (requires `memory.link.enabled`) |
1148
+ | `/swarm memory link status` | Show whether memory is cohort-linked (distinct from knowledge link) |
1149
+ | `/swarm memory unlink` | Stop sharing memory; copies cohort family back to local |
1147
1150
  | `/swarm concurrency <set|status|reset>` | Manage session-scoped runtime concurrency override |
1148
1151
  | `/swarm turbo` | Enable turbo mode for the current session (bypasses QA gates) |
1149
1152
  | `/swarm full-auto` | Toggle Full-Auto Mode for the current session [on|off] |
@@ -12,13 +12,13 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-det5jwfk.js";
16
- import"./index-wr8qgpz5.js";
17
- import"./index-4rhcth7a.js";
18
- import"./index-5e4e2hvv.js";
19
- import"./index-p0arc26j.js";
15
+ } from "./index-v5ecczts.js";
16
+ import"./index-c6crt5rs.js";
17
+ import"./index-bk5tah7q.js";
18
+ import"./index-z6xqpmqg.js";
19
+ import"./index-zjygnfay.js";
20
20
  import"./index-zgwm4ryv.js";
21
- import"./index-293f68mj.js";
21
+ import"./index-bpmtbmy9.js";
22
22
  import"./index-a76rekgs.js";
23
23
  export {
24
24
  writeDoctorArtifact,
@@ -14,10 +14,10 @@ import {
14
14
  resolveWorktreeBaseDir,
15
15
  shortenWorktreePath,
16
16
  writeLaneProfileToDiskReal
17
- } from "./index-gw3m5fw0.js";
18
- import"./index-ye3fndsw.js";
19
- import"./index-5e4e2hvv.js";
20
- import"./index-p0arc26j.js";
17
+ } from "./index-v2rdhwx8.js";
18
+ import"./index-gacm5s2n.js";
19
+ import"./index-z6xqpmqg.js";
20
+ import"./index-zjygnfay.js";
21
21
  import"./index-zgwm4ryv.js";
22
22
  import"./index-qe3v54nb.js";
23
23
  import"./index-a76rekgs.js";
@@ -4,9 +4,9 @@ import {
4
4
  authorizeCuration,
5
5
  buildConfigFingerprintInput,
6
6
  readCohortConfigFingerprint
7
- } from "./index-cqsak7bf.js";
7
+ } from "./index-13d2g7k9.js";
8
8
  import"./index-rtry5xyf.js";
9
- import"./index-dywekeen.js";
9
+ import"./index-x2mmnrnx.js";
10
10
  import"./index-ae75rja9.js";
11
11
  import"./index-q27bajqb.js";
12
12
  import"./index-zgwm4ryv.js";
@@ -4,21 +4,21 @@ import {
4
4
  } from "./index-c8s9a3zh.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-816rkp4y.js";
8
- import"./index-gnp9x6se.js";
9
- import"./index-ye3fndsw.js";
7
+ } from "./index-s9mj4rb9.js";
8
+ import"./index-n832052r.js";
9
+ import"./index-gacm5s2n.js";
10
10
  import {
11
11
  readSwarmFileAsync,
12
12
  validateSwarmPath
13
- } from "./index-kzj3fp7c.js";
14
- import"./index-5e4e2hvv.js";
15
- import"./index-p0arc26j.js";
13
+ } from "./index-2445sx3d.js";
14
+ import"./index-z6xqpmqg.js";
15
+ import"./index-zjygnfay.js";
16
16
  import {
17
17
  init_logger,
18
18
  warn
19
19
  } from "./index-zgwm4ryv.js";
20
20
  import"./index-fsrp8wp3.js";
21
- import"./index-293f68mj.js";
21
+ import"./index-bpmtbmy9.js";
22
22
  import"./index-qe3v54nb.js";
23
23
  import"./index-a76rekgs.js";
24
24
 
@@ -0,0 +1,53 @@
1
+ // @bun
2
+ import {
3
+ createCuratorLLMDelegate
4
+ } from "./index-mkkx1a4f.js";
5
+ import"./index-e19mxn9f.js";
6
+ import"./index-v5ecczts.js";
7
+ import"./index-4rzzzjtg.js";
8
+ import"./index-4905hd2m.js";
9
+ import"./index-134d35c1.js";
10
+ import"./index-6n2jpz7x.js";
11
+ import"./index-tyg0zezw.js";
12
+ import"./index-z0m4angq.js";
13
+ import"./index-eeg04r0x.js";
14
+ import"./index-vxv732ex.js";
15
+ import"./index-c8s9a3zh.js";
16
+ import"./index-s9mj4rb9.js";
17
+ import"./index-23zsx7dm.js";
18
+ import"./index-zjedv2bd.js";
19
+ import"./index-13d2g7k9.js";
20
+ import"./index-rtry5xyf.js";
21
+ import"./index-2x4maxte.js";
22
+ import"./index-x2mmnrnx.js";
23
+ import"./index-ae75rja9.js";
24
+ import"./index-q27bajqb.js";
25
+ import"./index-3yyr4ynk.js";
26
+ import"./index-k5jrywpr.js";
27
+ import"./index-n832052r.js";
28
+ import"./index-c6crt5rs.js";
29
+ import"./index-bk5tah7q.js";
30
+ import"./index-8fwhhayc.js";
31
+ import"./index-q1exe2b3.js";
32
+ import"./index-gnvg72y1.js";
33
+ import"./index-2tn5h2zp.js";
34
+ import"./index-1kz6da87.js";
35
+ import"./index-v2rdhwx8.js";
36
+ import"./index-gacm5s2n.js";
37
+ import"./index-2445sx3d.js";
38
+ import"./index-z6xqpmqg.js";
39
+ import"./index-zjygnfay.js";
40
+ import"./index-zgwm4ryv.js";
41
+ import"./index-dqh3zhhc.js";
42
+ import"./index-3x761jqv.js";
43
+ import"./index-7mkpsw6g.js";
44
+ import"./index-fsrp8wp3.js";
45
+ import"./index-76kvm9z5.js";
46
+ import"./index-q2rrv0cy.js";
47
+ import"./index-bpmtbmy9.js";
48
+ import"./index-7g4c7s5r.js";
49
+ import"./index-qe3v54nb.js";
50
+ import"./index-a76rekgs.js";
51
+ export {
52
+ createCuratorLLMDelegate
53
+ };
@@ -14,49 +14,50 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-jyrhy4ww.js";
18
- import"./index-19zn67q6.js";
19
- import"./index-det5jwfk.js";
20
- import"./index-7cspygmb.js";
17
+ } from "./index-mkkx1a4f.js";
18
+ import"./index-e19mxn9f.js";
19
+ import"./index-v5ecczts.js";
20
+ import"./index-4rzzzjtg.js";
21
21
  import"./index-4905hd2m.js";
22
- import"./index-nprawcc0.js";
23
- import"./index-q00e4s1s.js";
24
- import"./index-j9kxwshw.js";
25
- import"./index-hns7xjm7.js";
22
+ import"./index-134d35c1.js";
23
+ import"./index-6n2jpz7x.js";
24
+ import"./index-tyg0zezw.js";
25
+ import"./index-z0m4angq.js";
26
+ import"./index-eeg04r0x.js";
26
27
  import"./index-vxv732ex.js";
27
28
  import"./index-c8s9a3zh.js";
28
- import"./index-816rkp4y.js";
29
- import"./index-22e127jw.js";
30
- import"./index-m0bmh3w0.js";
31
- import"./index-cqsak7bf.js";
29
+ import"./index-s9mj4rb9.js";
30
+ import"./index-23zsx7dm.js";
31
+ import"./index-zjedv2bd.js";
32
+ import"./index-13d2g7k9.js";
32
33
  import"./index-rtry5xyf.js";
33
- import"./index-n2712byd.js";
34
- import"./index-dywekeen.js";
34
+ import"./index-2x4maxte.js";
35
+ import"./index-x2mmnrnx.js";
35
36
  import"./index-ae75rja9.js";
36
37
  import"./index-q27bajqb.js";
37
- import"./index-3rr0ese8.js";
38
- import"./index-vcgfqd8f.js";
39
- import"./index-gnp9x6se.js";
40
- import"./index-wr8qgpz5.js";
41
- import"./index-4rhcth7a.js";
38
+ import"./index-3yyr4ynk.js";
39
+ import"./index-k5jrywpr.js";
40
+ import"./index-n832052r.js";
41
+ import"./index-c6crt5rs.js";
42
+ import"./index-bk5tah7q.js";
42
43
  import"./index-8fwhhayc.js";
43
44
  import"./index-q1exe2b3.js";
44
- import"./index-d6h5hq91.js";
45
- import"./index-ctpgsj84.js";
46
- import"./index-m1abzg93.js";
47
- import"./index-gw3m5fw0.js";
48
- import"./index-ye3fndsw.js";
49
- import"./index-kzj3fp7c.js";
50
- import"./index-5e4e2hvv.js";
51
- import"./index-p0arc26j.js";
45
+ import"./index-gnvg72y1.js";
46
+ import"./index-2tn5h2zp.js";
47
+ import"./index-1kz6da87.js";
48
+ import"./index-v2rdhwx8.js";
49
+ import"./index-gacm5s2n.js";
50
+ import"./index-2445sx3d.js";
51
+ import"./index-z6xqpmqg.js";
52
+ import"./index-zjygnfay.js";
52
53
  import"./index-zgwm4ryv.js";
53
54
  import"./index-dqh3zhhc.js";
54
- import"./index-6xnxz6z0.js";
55
+ import"./index-3x761jqv.js";
55
56
  import"./index-7mkpsw6g.js";
56
57
  import"./index-fsrp8wp3.js";
57
58
  import"./index-76kvm9z5.js";
58
59
  import"./index-q2rrv0cy.js";
59
- import"./index-293f68mj.js";
60
+ import"./index-bpmtbmy9.js";
60
61
  import"./index-7g4c7s5r.js";
61
62
  import"./index-qe3v54nb.js";
62
63
  import"./index-a76rekgs.js";
@@ -11,9 +11,9 @@ import {
11
11
  defaultTestFilesFor,
12
12
  detectProjectLanguages,
13
13
  tokenizeCommand
14
- } from "./index-nprawcc0.js";
15
- import"./index-5e4e2hvv.js";
16
- import"./index-p0arc26j.js";
14
+ } from "./index-6n2jpz7x.js";
15
+ import"./index-z6xqpmqg.js";
16
+ import"./index-zjygnfay.js";
17
17
  import"./index-zgwm4ryv.js";
18
18
  import"./index-qe3v54nb.js";
19
19
  import"./index-a76rekgs.js";
@@ -6,26 +6,26 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-7cspygmb.js";
10
- import"./index-816rkp4y.js";
11
- import"./index-vcgfqd8f.js";
12
- import"./index-gnp9x6se.js";
9
+ } from "./index-4rzzzjtg.js";
10
+ import"./index-s9mj4rb9.js";
11
+ import"./index-k5jrywpr.js";
12
+ import"./index-n832052r.js";
13
13
  import"./index-q1exe2b3.js";
14
- import"./index-ctpgsj84.js";
15
- import"./index-m1abzg93.js";
16
- import"./index-ye3fndsw.js";
17
- import"./index-kzj3fp7c.js";
18
- import"./index-5e4e2hvv.js";
19
- import"./index-p0arc26j.js";
14
+ import"./index-2tn5h2zp.js";
15
+ import"./index-1kz6da87.js";
16
+ import"./index-gacm5s2n.js";
17
+ import"./index-2445sx3d.js";
18
+ import"./index-z6xqpmqg.js";
19
+ import"./index-zjygnfay.js";
20
20
  import {
21
21
  log
22
22
  } from "./index-zgwm4ryv.js";
23
- import"./index-6xnxz6z0.js";
23
+ import"./index-3x761jqv.js";
24
24
  import"./index-7mkpsw6g.js";
25
25
  import"./index-fsrp8wp3.js";
26
26
  import"./index-76kvm9z5.js";
27
27
  import"./index-q2rrv0cy.js";
28
- import"./index-293f68mj.js";
28
+ import"./index-bpmtbmy9.js";
29
29
  import"./index-7g4c7s5r.js";
30
30
  import"./index-qe3v54nb.js";
31
31
  import"./index-a76rekgs.js";
@@ -9,12 +9,12 @@ import {
9
9
  readTaskEvidenceRaw,
10
10
  recordAgentDispatch,
11
11
  recordGateEvidence
12
- } from "./index-6xnxz6z0.js";
12
+ } from "./index-3x761jqv.js";
13
13
  import"./index-7mkpsw6g.js";
14
14
  import"./index-fsrp8wp3.js";
15
15
  import"./index-76kvm9z5.js";
16
16
  import"./index-q2rrv0cy.js";
17
- import"./index-293f68mj.js";
17
+ import"./index-bpmtbmy9.js";
18
18
  import"./index-7g4c7s5r.js";
19
19
  import"./index-qe3v54nb.js";
20
20
  import"./index-a76rekgs.js";
@@ -0,0 +1,54 @@
1
+ // @bun
2
+ import {
3
+ handleGuardrailExplain
4
+ } from "./index-qd77aft9.js";
5
+ import"./index-mkkx1a4f.js";
6
+ import"./index-e19mxn9f.js";
7
+ import"./index-v5ecczts.js";
8
+ import"./index-4rzzzjtg.js";
9
+ import"./index-4905hd2m.js";
10
+ import"./index-134d35c1.js";
11
+ import"./index-6n2jpz7x.js";
12
+ import"./index-tyg0zezw.js";
13
+ import"./index-z0m4angq.js";
14
+ import"./index-eeg04r0x.js";
15
+ import"./index-vxv732ex.js";
16
+ import"./index-c8s9a3zh.js";
17
+ import"./index-s9mj4rb9.js";
18
+ import"./index-23zsx7dm.js";
19
+ import"./index-zjedv2bd.js";
20
+ import"./index-13d2g7k9.js";
21
+ import"./index-rtry5xyf.js";
22
+ import"./index-2x4maxte.js";
23
+ import"./index-x2mmnrnx.js";
24
+ import"./index-ae75rja9.js";
25
+ import"./index-q27bajqb.js";
26
+ import"./index-3yyr4ynk.js";
27
+ import"./index-k5jrywpr.js";
28
+ import"./index-n832052r.js";
29
+ import"./index-c6crt5rs.js";
30
+ import"./index-bk5tah7q.js";
31
+ import"./index-8fwhhayc.js";
32
+ import"./index-q1exe2b3.js";
33
+ import"./index-gnvg72y1.js";
34
+ import"./index-2tn5h2zp.js";
35
+ import"./index-1kz6da87.js";
36
+ import"./index-v2rdhwx8.js";
37
+ import"./index-gacm5s2n.js";
38
+ import"./index-2445sx3d.js";
39
+ import"./index-z6xqpmqg.js";
40
+ import"./index-zjygnfay.js";
41
+ import"./index-zgwm4ryv.js";
42
+ import"./index-dqh3zhhc.js";
43
+ import"./index-3x761jqv.js";
44
+ import"./index-7mkpsw6g.js";
45
+ import"./index-fsrp8wp3.js";
46
+ import"./index-76kvm9z5.js";
47
+ import"./index-q2rrv0cy.js";
48
+ import"./index-bpmtbmy9.js";
49
+ import"./index-7g4c7s5r.js";
50
+ import"./index-qe3v54nb.js";
51
+ import"./index-a76rekgs.js";
52
+ export {
53
+ handleGuardrailExplain
54
+ };
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import {
3
+ handleGuardrailLog
4
+ } from "./index-htbjqftb.js";
5
+ import"./index-e19mxn9f.js";
6
+ import"./index-c6crt5rs.js";
7
+ import"./index-bk5tah7q.js";
8
+ import"./index-z6xqpmqg.js";
9
+ import"./index-zjygnfay.js";
10
+ import"./index-zgwm4ryv.js";
11
+ import"./index-bpmtbmy9.js";
12
+ import"./index-qe3v54nb.js";
13
+ import"./index-a76rekgs.js";
14
+ export {
15
+ handleGuardrailLog
16
+ };
@@ -7,51 +7,52 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-jyrhy4ww.js";
11
- import"./index-19zn67q6.js";
12
- import"./index-det5jwfk.js";
13
- import"./index-7cspygmb.js";
10
+ } from "./index-mkkx1a4f.js";
11
+ import"./index-e19mxn9f.js";
12
+ import"./index-v5ecczts.js";
13
+ import"./index-4rzzzjtg.js";
14
14
  import"./index-4905hd2m.js";
15
- import"./index-nprawcc0.js";
16
- import"./index-q00e4s1s.js";
17
- import"./index-j9kxwshw.js";
18
- import"./index-hns7xjm7.js";
15
+ import"./index-134d35c1.js";
16
+ import"./index-6n2jpz7x.js";
17
+ import"./index-tyg0zezw.js";
18
+ import"./index-z0m4angq.js";
19
+ import"./index-eeg04r0x.js";
19
20
  import"./index-vxv732ex.js";
20
21
  import"./index-c8s9a3zh.js";
21
- import"./index-816rkp4y.js";
22
- import"./index-22e127jw.js";
23
- import"./index-m0bmh3w0.js";
24
- import"./index-cqsak7bf.js";
22
+ import"./index-s9mj4rb9.js";
23
+ import"./index-23zsx7dm.js";
24
+ import"./index-zjedv2bd.js";
25
+ import"./index-13d2g7k9.js";
25
26
  import"./index-rtry5xyf.js";
26
27
  import {
27
28
  resolveHiveKnowledgePath
28
- } from "./index-n2712byd.js";
29
- import"./index-dywekeen.js";
29
+ } from "./index-2x4maxte.js";
30
+ import"./index-x2mmnrnx.js";
30
31
  import"./index-ae75rja9.js";
31
32
  import"./index-q27bajqb.js";
32
- import"./index-3rr0ese8.js";
33
- import"./index-vcgfqd8f.js";
34
- import"./index-gnp9x6se.js";
35
- import"./index-wr8qgpz5.js";
36
- import"./index-4rhcth7a.js";
33
+ import"./index-3yyr4ynk.js";
34
+ import"./index-k5jrywpr.js";
35
+ import"./index-n832052r.js";
36
+ import"./index-c6crt5rs.js";
37
+ import"./index-bk5tah7q.js";
37
38
  import"./index-8fwhhayc.js";
38
39
  import"./index-q1exe2b3.js";
39
- import"./index-d6h5hq91.js";
40
- import"./index-ctpgsj84.js";
41
- import"./index-m1abzg93.js";
42
- import"./index-gw3m5fw0.js";
43
- import"./index-ye3fndsw.js";
44
- import"./index-kzj3fp7c.js";
45
- import"./index-5e4e2hvv.js";
46
- import"./index-p0arc26j.js";
40
+ import"./index-gnvg72y1.js";
41
+ import"./index-2tn5h2zp.js";
42
+ import"./index-1kz6da87.js";
43
+ import"./index-v2rdhwx8.js";
44
+ import"./index-gacm5s2n.js";
45
+ import"./index-2445sx3d.js";
46
+ import"./index-z6xqpmqg.js";
47
+ import"./index-zjygnfay.js";
47
48
  import"./index-zgwm4ryv.js";
48
49
  import"./index-dqh3zhhc.js";
49
- import"./index-6xnxz6z0.js";
50
+ import"./index-3x761jqv.js";
50
51
  import"./index-7mkpsw6g.js";
51
52
  import"./index-fsrp8wp3.js";
52
53
  import"./index-76kvm9z5.js";
53
54
  import"./index-q2rrv0cy.js";
54
- import"./index-293f68mj.js";
55
+ import"./index-bpmtbmy9.js";
55
56
  import"./index-7g4c7s5r.js";
56
57
  import"./index-qe3v54nb.js";
57
58
  import"./index-a76rekgs.js";
@@ -0,0 +1,116 @@
1
+ // @bun
2
+ // src/db/sqlite-loader.ts
3
+ import { createRequire } from "module";
4
+ function createNodeDatabaseCtor(DatabaseSyncCtor) {
5
+
6
+ class NodeSqliteDatabase {
7
+ raw;
8
+ stmts = new Map;
9
+ savepointCounter = 0;
10
+ constructor(filename) {
11
+ this.raw = new DatabaseSyncCtor(filename, { allowExtension: true });
12
+ }
13
+ statement(sql) {
14
+ let stmt = this.stmts.get(sql);
15
+ if (!stmt) {
16
+ stmt = this.raw.prepare(sql);
17
+ this.stmts.set(sql, stmt);
18
+ }
19
+ return stmt;
20
+ }
21
+ run(sql, ...rest) {
22
+ if (rest.length === 0) {
23
+ this.raw.exec(sql);
24
+ return;
25
+ }
26
+ const params = rest.length === 1 && Array.isArray(rest[0]) ? rest[0] : rest;
27
+ return this.statement(sql).run(...params);
28
+ }
29
+ query(sql) {
30
+ const stmt = this.statement(sql);
31
+ return {
32
+ get: (...params) => stmt.get(...params),
33
+ all: (...params) => stmt.all(...params),
34
+ iterate: (...params) => stmt.iterate(...params)
35
+ };
36
+ }
37
+ get inTransaction() {
38
+ return this.raw.isTransaction;
39
+ }
40
+ transaction(fn) {
41
+ return (...args) => {
42
+ if (this.raw.isTransaction) {
43
+ const sp = `swarm_sp_${this.savepointCounter++}`;
44
+ this.raw.exec(`SAVEPOINT ${sp}`);
45
+ try {
46
+ const result = fn(...args);
47
+ this.raw.exec(`RELEASE ${sp}`);
48
+ return result;
49
+ } catch (err) {
50
+ try {
51
+ this.raw.exec(`ROLLBACK TO ${sp}`);
52
+ this.raw.exec(`RELEASE ${sp}`);
53
+ } catch {}
54
+ throw err;
55
+ }
56
+ }
57
+ this.raw.exec("BEGIN");
58
+ try {
59
+ const result = fn(...args);
60
+ this.raw.exec("COMMIT");
61
+ return result;
62
+ } catch (err) {
63
+ try {
64
+ this.raw.exec("ROLLBACK");
65
+ } catch {}
66
+ throw err;
67
+ }
68
+ };
69
+ }
70
+ loadExtension(path) {
71
+ this.raw.enableLoadExtension(true);
72
+ try {
73
+ this.raw.loadExtension(path);
74
+ } finally {
75
+ this.raw.enableLoadExtension(false);
76
+ }
77
+ }
78
+ close() {
79
+ this.stmts.clear();
80
+ this.raw.close();
81
+ }
82
+ }
83
+ return NodeSqliteDatabase;
84
+ }
85
+ var _DatabaseCtor = null;
86
+ var _internals = {
87
+ requireModule(id) {
88
+ return createRequire(import.meta.url)(id);
89
+ },
90
+ reset() {
91
+ _DatabaseCtor = null;
92
+ }
93
+ };
94
+ function loadDatabaseCtor() {
95
+ if (_DatabaseCtor)
96
+ return _DatabaseCtor;
97
+ let bunError;
98
+ try {
99
+ const mod = _internals.requireModule("bun:sqlite");
100
+ _DatabaseCtor = mod.Database;
101
+ return _DatabaseCtor;
102
+ } catch (err) {
103
+ bunError = err;
104
+ }
105
+ try {
106
+ const mod = _internals.requireModule("node:sqlite");
107
+ _DatabaseCtor = createNodeDatabaseCtor(mod.DatabaseSync);
108
+ return _DatabaseCtor;
109
+ } catch (nodeError) {
110
+ const bunMsg = bunError instanceof Error ? bunError.message : String(bunError);
111
+ const nodeMsg = nodeError instanceof Error ? nodeError.message : String(nodeError);
112
+ throw new Error("opencode-swarm: no SQLite driver available. This build needs Bun " + "(bun:sqlite) or Node.js 22.13+ (node:sqlite). " + `bun:sqlite: ${bunMsg}; node:sqlite: ${nodeMsg}`);
113
+ }
114
+ }
115
+
116
+ export { createNodeDatabaseCtor, _internals, loadDatabaseCtor };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-dywekeen.js";
7
+ } from "./index-x2mmnrnx.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,
@@ -1,9 +1,11 @@
1
1
  // @bun
2
2
  import {
3
- exports_external
4
- } from "./index-293f68mj.js";
3
+ exports_external,
4
+ init_zod
5
+ } from "./index-bpmtbmy9.js";
5
6
 
6
7
  // src/config/plan-schema.ts
8
+ init_zod();
7
9
  var ExecutionProfileSchema = exports_external.object({
8
10
  parallelization_enabled: exports_external.boolean().default(false),
9
11
  max_concurrent_tasks: exports_external.number().int().min(1).max(64).default(10),
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-kzj3fp7c.js";
4
+ } from "./index-2445sx3d.js";
5
5
  import {
6
6
  log
7
7
  } from "./index-zgwm4ryv.js";
@@ -9,10 +9,12 @@ import {
9
9
  withEvidenceLock
10
10
  } from "./index-76kvm9z5.js";
11
11
  import {
12
- exports_external
13
- } from "./index-293f68mj.js";
12
+ exports_external,
13
+ init_zod
14
+ } from "./index-bpmtbmy9.js";
14
15
 
15
16
  // src/background/pr-subscriptions.ts
17
+ init_zod();
16
18
  import * as fs from "fs";
17
19
  import * as path from "path";
18
20
  var PR_SUBSCRIPTIONS_FILE = "pr-monitor/subscriptions.jsonl";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  SwarmError
4
- } from "./index-5e4e2hvv.js";
4
+ } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  warn
7
7
  } from "./index-zgwm4ryv.js";
@@ -3,7 +3,7 @@ import {
3
3
  ExecutionProfileSchema,
4
4
  PlanSchema,
5
5
  TaskStatusSchema
6
- } from "./index-m1abzg93.js";
6
+ } from "./index-1kz6da87.js";
7
7
  import {
8
8
  criticalWarn,
9
9
  init_logger,