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.
Files changed (107) hide show
  1. package/.opencode/skills/engineering-conventions/SKILL.md +1 -1
  2. package/dist/background/pending-delegations.d.ts +7 -2
  3. package/dist/background/pr-subscriptions.d.ts +3 -3
  4. package/dist/cli/{coder-settlement-0rfk8y11.js → coder-settlement-yh1q5fr3.js} +15 -16
  5. package/dist/cli/{config-doctor-j17b7qq2.js → config-doctor-bd4yzmh7.js} +3 -3
  6. package/dist/cli/{core-evhjjrtt.js → core-y0s1vmyc.js} +2 -2
  7. package/dist/cli/{curation-policy-vj6z5hvr.js → curation-policy-gs1qakn7.js} +5 -6
  8. package/dist/cli/{curator-vqd5yeck.js → curator-brqack0j.js} +48 -46
  9. package/dist/cli/{curator-drift-ez81vg2t.js → curator-drift-1sg9yk2m.js} +14 -12
  10. package/dist/cli/curator-llm-factory-dtsjc3zf.js +70 -0
  11. package/dist/cli/{dispatch-dqybvj8v.js → dispatch-c7xjt7js.js} +3 -3
  12. package/dist/cli/{evidence-summary-service-937x7rbg.js → evidence-summary-service-nqbcvp30.js} +24 -23
  13. package/dist/cli/{gate-evidence-q1cehr4k.js → gate-evidence-9stdtpej.js} +9 -10
  14. package/dist/cli/guardrail-explain-3ff1z3fm.js +71 -0
  15. package/dist/cli/{guardrail-log-3g93f3g2.js → guardrail-log-sf39x00b.js} +10 -10
  16. package/dist/cli/{guardrail-reset-qe2r5qzq.js → guardrail-reset-9wr6a60s.js} +48 -46
  17. package/dist/cli/hive-promoter-bqtj8261.js +85 -0
  18. package/dist/cli/{index-kv2tdkk5.js → index-03enxdaq.js} +1 -1
  19. package/dist/cli/{index-ggrp3v00.js → index-0byep4pe.js} +15 -17
  20. package/dist/cli/{index-2bgr671r.js → index-2bhz5k91.js} +20 -2
  21. package/dist/cli/{index-mmjamc9b.js → index-3fnym6ac.js} +5 -5
  22. package/dist/cli/{index-d9entpn3.js → index-40twgsyh.js} +4 -4
  23. package/dist/cli/{index-ggtmsm84.js → index-4mjmnysc.js} +1 -1
  24. package/dist/cli/{index-e90em0x4.js → index-4vb56w2k.js} +12 -17
  25. package/dist/cli/{index-r656jh9j.js → index-5wc5pbzc.js} +3700 -2609
  26. package/dist/cli/{index-w3gtqey0.js → index-6chhqq2n.js} +4 -4
  27. package/dist/cli/{index-qbw3yw2d.js → index-888pq4xx.js} +11 -11
  28. package/dist/cli/{index-3146wmgv.js → index-8d90gzaz.js} +1 -1
  29. package/dist/cli/{index-5jx22kwc.js → index-8vw2pjgr.js} +544 -15
  30. package/dist/cli/{index-b2nj04q6.js → index-9ss2m4rs.js} +1 -434
  31. package/dist/cli/{index-x43debgx.js → index-ad9064j9.js} +15 -17
  32. package/dist/cli/{index-5kcvrpkt.js → index-b25t91a3.js} +1 -1
  33. package/dist/cli/index-c45662wc.js +361 -0
  34. package/dist/cli/{index-aqppaaqx.js → index-cgewrpw5.js} +3 -2
  35. package/dist/cli/{index-zfs3zqeq.js → index-d3mpxsmy.js} +771 -21
  36. package/dist/cli/{index-y1yqmkv7.js → index-d7j3n5ra.js} +52 -50
  37. package/dist/cli/{index-4vb6qa73.js → index-ebce775n.js} +36 -2
  38. package/dist/cli/{index-dsg9dw3b.js → index-eed0gkv6.js} +2 -2
  39. package/dist/cli/index-es64amqt.js +675 -0
  40. package/dist/cli/{index-9gxbjkts.js → index-ewv8qa8q.js} +22 -19
  41. package/dist/cli/{index-1ww7wj8d.js → index-hb7bh4r2.js} +15 -15
  42. package/dist/cli/{index-kc2tgcm7.js → index-hg09xemc.js} +4 -4
  43. package/dist/cli/{index-w95vxjde.js → index-hvz4ad2t.js} +39 -8
  44. package/dist/cli/{index-77z98j76.js → index-k0s8n6m5.js} +314 -130
  45. package/dist/cli/{index-7m32fjb4.js → index-kxv193aq.js} +9 -9
  46. package/dist/cli/{index-hp22pzn5.js → index-m8xrbdmn.js} +2 -2
  47. package/dist/cli/{index-4gqxppcx.js → index-mee9maf5.js} +2 -2
  48. package/dist/cli/{index-r3mvsbtq.js → index-p612v1mv.js} +7 -1
  49. package/dist/cli/{index-r5q5gd2a.js → index-qgajv9rd.js} +2 -2
  50. package/dist/cli/{index-zjg4chy2.js → index-qqq04n70.js} +2 -2
  51. package/dist/cli/{index-ww6zm5hr.js → index-r2p0pgst.js} +3 -3
  52. package/dist/cli/{index-47kh2103.js → index-r69gzes2.js} +14 -14
  53. package/dist/cli/{index-vdn32nws.js → index-sphahrmq.js} +3 -3
  54. package/dist/cli/{index-rhqdsc1x.js → index-vw66q1rw.js} +9 -9
  55. package/dist/cli/{index-kch6yenm.js → index-wasdrhev.js} +7 -7
  56. package/dist/cli/{index-c5v1w13g.js → index-wknpkfm8.js} +807 -629
  57. package/dist/cli/{index-pp2nya9v.js → index-x39hjdf1.js} +2 -4
  58. package/dist/cli/{index-n8688d12.js → index-xxfk62zd.js} +2 -2
  59. package/dist/cli/index-yvqg6kn5.js +429 -0
  60. package/dist/cli/{index-nqsj0g5y.js → index-ztm0q26v.js} +8 -8
  61. package/dist/cli/index.js +50 -48
  62. package/dist/cli/{knowledge-escalator-j04g450p.js → knowledge-escalator-01vva51d.js} +17 -18
  63. package/dist/cli/{knowledge-events-53z45rs0.js → knowledge-events-dpfwh1hs.js} +15 -16
  64. package/dist/cli/{knowledge-link-a6kfg3qm.js → knowledge-link-2rvp966j.js} +4 -5
  65. package/dist/cli/{knowledge-store-whm0gagt.js → knowledge-store-aw58ae7b.js} +6 -7
  66. package/dist/cli/{knowledge-validator-h8m7065g.js → knowledge-validator-yhd31ryf.js} +8 -9
  67. package/dist/cli/{pending-delegations-6hkpe5ze.js → pending-delegations-fjetcz8e.js} +17 -8
  68. package/dist/cli/{pr-subscriptions-11zca1mh.js → pr-subscriptions-cwwtfs8w.js} +17 -8
  69. package/dist/cli/{pr-workflow-gate-6g29rkg7.js → pr-workflow-gate-5xwtg1k2.js} +50 -48
  70. package/dist/cli/{runner-5abw3t35.js → runner-mb51twxt.js} +6 -7
  71. package/dist/cli/{scan-cursor-mkfx410t.js → scan-cursor-j11qwf0v.js} +9 -10
  72. package/dist/cli/{schema-jbbam3ev.js → schema-0xp3bde3.js} +1 -1
  73. package/dist/cli/{scope-persistence-q1ct4k42.js → scope-persistence-brrk806y.js} +19 -12
  74. package/dist/cli/{skill-generator-cv8fg96x.js → skill-generator-j8qzmet9.js} +20 -21
  75. package/dist/cli/snapshot-coordination-init-h0xmtftq.js +84 -0
  76. package/dist/cli/{telemetry-mbqqamsj.js → telemetry-m84ap0pp.js} +1 -1
  77. package/dist/cli/{workspace-snapshot-eh18vgkn.js → workspace-snapshot-6z9rk7xw.js} +3 -3
  78. package/dist/cli/{worktree-collision-ownership-xgnn8dsq.js → worktree-collision-ownership-j9zykj18.js} +21 -12
  79. package/dist/cli/{worktree-isolation-k2dgfmeg.js → worktree-isolation-jd39xz6h.js} +48 -46
  80. package/dist/commands/close.d.ts +13 -6
  81. package/dist/commands/reset-session.d.ts +4 -0
  82. package/dist/db/coordination-store.d.ts +85 -0
  83. package/dist/db/durability.d.ts +22 -5
  84. package/dist/db/index.d.ts +1 -0
  85. package/dist/db/project-db.d.ts +12 -0
  86. package/dist/index.js +810 -705
  87. package/dist/memory/schema.d.ts +3 -3
  88. package/dist/pr-review/authorization.d.ts +5 -4
  89. package/dist/pr-review/persistence.d.ts +10 -1
  90. package/dist/scope/scope-binding.d.ts +10 -0
  91. package/dist/scope/scope-persistence.d.ts +10 -0
  92. package/dist/services/handoff-service.d.ts +2 -0
  93. package/dist/services/status-service.d.ts +4 -0
  94. package/dist/session/snapshot-coordination-init.d.ts +49 -0
  95. package/dist/session/snapshot-reader.d.ts +2 -0
  96. package/dist/session/snapshot-store.d.ts +42 -0
  97. package/dist/session/snapshot-writer.d.ts +4 -1
  98. package/dist/state.d.ts +6 -3
  99. package/dist/turbo/epic/state.d.ts +4 -20
  100. package/dist/utils/bun-compat.d.ts +10 -0
  101. package/dist/utils/external-tool-runner.d.ts +2 -0
  102. package/package.json +3 -2
  103. package/dist/cli/curator-llm-factory-sxcpmcqq.js +0 -68
  104. package/dist/cli/guardrail-explain-xv9aw1bf.js +0 -69
  105. package/dist/cli/hive-promoter-09yc9mp5.js +0 -83
  106. package/dist/cli/index-xnb3tk7x.js +0 -24
  107. package/dist/cli/{ast-diff-ekd9v10f.js → ast-diff-b0esr2kf.js} +3 -3
@@ -3,66 +3,68 @@ import {
3
3
  getAgentSession,
4
4
  getBlockingActionCircuit,
5
5
  resetActionCircuitExternally
6
- } from "./index-r656jh9j.js";
7
- import"./index-w95vxjde.js";
8
- import"./index-kch6yenm.js";
9
- import"./index-5kcvrpkt.js";
10
- import"./index-77z98j76.js";
11
- import"./index-pp2nya9v.js";
6
+ } from "./index-5wc5pbzc.js";
7
+ import"./index-8d90gzaz.js";
8
+ import"./index-hvz4ad2t.js";
9
+ import"./index-wasdrhev.js";
10
+ import"./index-b25t91a3.js";
11
+ import"./index-k0s8n6m5.js";
12
+ import"./index-x39hjdf1.js";
12
13
  import"./index-txdagbh7.js";
13
14
  import"./index-cw912re7.js";
14
- import"./index-3146wmgv.js";
15
- import"./index-1ww7wj8d.js";
16
- import"./index-7m32fjb4.js";
17
- import"./index-d9entpn3.js";
15
+ import"./index-hb7bh4r2.js";
16
+ import"./index-kxv193aq.js";
17
+ import"./index-40twgsyh.js";
18
18
  import"./index-70ha9e09.js";
19
- import"./index-nqsj0g5y.js";
20
- import"./index-b2nj04q6.js";
21
- import"./index-n4fzmqz8.js";
22
- import"./index-zfs3zqeq.js";
19
+ import"./index-ztm0q26v.js";
20
+ import"./index-9ss2m4rs.js";
21
+ import"./index-d3mpxsmy.js";
23
22
  import"./index-zsrtt42s.js";
24
- import"./index-47kh2103.js";
25
- import"./index-w3gtqey0.js";
26
- import"./index-n8688d12.js";
27
- import"./index-kc2tgcm7.js";
28
- import"./index-ggtmsm84.js";
29
- import"./index-rtry5xyf.js";
30
- import"./index-x43debgx.js";
31
- import"./index-4vb6qa73.js";
32
- import"./index-5jx22kwc.js";
33
- import"./index-c5v1w13g.js";
34
- import"./index-e90em0x4.js";
35
- import"./index-ry16d01s.js";
36
- import"./index-4gqxppcx.js";
37
- import"./index-556ja8an.js";
38
- import"./index-4fwbbad3.js";
23
+ import"./index-r69gzes2.js";
24
+ import"./index-6chhqq2n.js";
25
+ import"./index-xxfk62zd.js";
39
26
  import"./index-b43rt5ph.js";
40
27
  import"./index-q7sjgr1y.js";
41
- import"./index-qbw3yw2d.js";
42
- import"./index-ggrp3v00.js";
43
- import"./index-r5q5gd2a.js";
28
+ import"./index-ad9064j9.js";
29
+ import"./index-ebce775n.js";
30
+ import"./index-8vw2pjgr.js";
31
+ import"./index-0byep4pe.js";
32
+ import"./index-qqq04n70.js";
33
+ import"./index-z6xqpmqg.js";
34
+ import"./index-p612v1mv.js";
35
+ import"./index-hg09xemc.js";
36
+ import"./index-4mjmnysc.js";
37
+ import"./index-rtry5xyf.js";
38
+ import"./index-qgajv9rd.js";
44
39
  import"./index-3qf1vxtb.js";
45
40
  import"./index-n832052r.js";
46
- import"./index-zjg4chy2.js";
47
- import"./index-z6xqpmqg.js";
48
- import"./index-r3mvsbtq.js";
49
- import"./index-rhqdsc1x.js";
50
- import"./index-aqppaaqx.js";
41
+ import"./index-wknpkfm8.js";
42
+ import"./index-4vb56w2k.js";
43
+ import"./index-mee9maf5.js";
44
+ import"./index-556ja8an.js";
45
+ import"./index-yvqg6kn5.js";
46
+ import"./index-c45662wc.js";
47
+ import"./index-es64amqt.js";
48
+ import"./index-ry16d01s.js";
49
+ import"./index-n4fzmqz8.js";
50
+ import"./index-eed0gkv6.js";
51
+ import"./index-888pq4xx.js";
52
+ import"./index-ae75rja9.js";
53
+ import"./index-sphahrmq.js";
54
+ import"./index-7qefgq4j.js";
55
+ import"./index-2bhz5k91.js";
56
+ import"./index-ewv8qa8q.js";
57
+ import"./index-r2p0pgst.js";
58
+ import"./index-7g4c7s5r.js";
59
+ import"./index-vw66q1rw.js";
51
60
  import"./index-9e6fdz2h.js";
52
61
  import"./index-4rhhvd1a.js";
53
- import"./index-dsg9dw3b.js";
62
+ import"./index-cgewrpw5.js";
54
63
  import"./index-50j914b5.js";
55
64
  import"./index-zjygnfay.js";
56
- import"./index-ae75rja9.js";
57
- import"./index-vdn32nws.js";
58
- import"./index-xnb3tk7x.js";
59
65
  import"./index-bk5tah7q.js";
60
- import"./index-7qefgq4j.js";
61
- import"./index-2bgr671r.js";
62
- import"./index-9gxbjkts.js";
63
- import"./index-ww6zm5hr.js";
64
- import"./index-7g4c7s5r.js";
65
66
  import"./index-bpmtbmy9.js";
67
+ import"./index-4fwbbad3.js";
66
68
  import"./index-zgwm4ryv.js";
67
69
  import"./index-a76rekgs.js";
68
70
 
@@ -0,0 +1,85 @@
1
+ // @bun
2
+ import {
3
+ _internals2 as _internals,
4
+ checkHivePromotions,
5
+ countDistinctProjects,
6
+ createHivePromoterHook,
7
+ isHiveEligible,
8
+ promoteFromSwarm,
9
+ promoteToHive
10
+ } from "./index-5wc5pbzc.js";
11
+ import"./index-8d90gzaz.js";
12
+ import"./index-hvz4ad2t.js";
13
+ import"./index-wasdrhev.js";
14
+ import"./index-b25t91a3.js";
15
+ import"./index-k0s8n6m5.js";
16
+ import"./index-x39hjdf1.js";
17
+ import"./index-txdagbh7.js";
18
+ import"./index-cw912re7.js";
19
+ import"./index-hb7bh4r2.js";
20
+ import"./index-kxv193aq.js";
21
+ import"./index-40twgsyh.js";
22
+ import"./index-70ha9e09.js";
23
+ import"./index-ztm0q26v.js";
24
+ import"./index-9ss2m4rs.js";
25
+ import"./index-d3mpxsmy.js";
26
+ import"./index-zsrtt42s.js";
27
+ import"./index-r69gzes2.js";
28
+ import"./index-6chhqq2n.js";
29
+ import"./index-xxfk62zd.js";
30
+ import"./index-b43rt5ph.js";
31
+ import"./index-q7sjgr1y.js";
32
+ import"./index-ad9064j9.js";
33
+ import"./index-ebce775n.js";
34
+ import"./index-8vw2pjgr.js";
35
+ import"./index-0byep4pe.js";
36
+ import"./index-qqq04n70.js";
37
+ import"./index-z6xqpmqg.js";
38
+ import"./index-p612v1mv.js";
39
+ import"./index-hg09xemc.js";
40
+ import"./index-4mjmnysc.js";
41
+ import"./index-rtry5xyf.js";
42
+ import"./index-qgajv9rd.js";
43
+ import"./index-3qf1vxtb.js";
44
+ import"./index-n832052r.js";
45
+ import"./index-wknpkfm8.js";
46
+ import"./index-4vb56w2k.js";
47
+ import"./index-mee9maf5.js";
48
+ import"./index-556ja8an.js";
49
+ import"./index-yvqg6kn5.js";
50
+ import"./index-c45662wc.js";
51
+ import"./index-es64amqt.js";
52
+ import"./index-ry16d01s.js";
53
+ import"./index-n4fzmqz8.js";
54
+ import"./index-eed0gkv6.js";
55
+ import {
56
+ resolveHiveKnowledgePath
57
+ } from "./index-888pq4xx.js";
58
+ import"./index-ae75rja9.js";
59
+ import"./index-sphahrmq.js";
60
+ import"./index-7qefgq4j.js";
61
+ import"./index-2bhz5k91.js";
62
+ import"./index-ewv8qa8q.js";
63
+ import"./index-r2p0pgst.js";
64
+ import"./index-7g4c7s5r.js";
65
+ import"./index-vw66q1rw.js";
66
+ import"./index-9e6fdz2h.js";
67
+ import"./index-4rhhvd1a.js";
68
+ import"./index-cgewrpw5.js";
69
+ import"./index-50j914b5.js";
70
+ import"./index-zjygnfay.js";
71
+ import"./index-bk5tah7q.js";
72
+ import"./index-bpmtbmy9.js";
73
+ import"./index-4fwbbad3.js";
74
+ import"./index-zgwm4ryv.js";
75
+ import"./index-a76rekgs.js";
76
+ export {
77
+ resolveHiveKnowledgePath,
78
+ promoteToHive,
79
+ promoteFromSwarm,
80
+ isHiveEligible,
81
+ createHivePromoterHook,
82
+ countDistinctProjects,
83
+ checkHivePromotions,
84
+ _internals
85
+ };
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-kch6yenm.js";
7
+ } from "./index-wasdrhev.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -1,38 +1,36 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-zjg4chy2.js";
5
- import {
6
- loadPluginConfigWithMeta
7
- } from "./index-rhqdsc1x.js";
8
- import {
9
- KnowledgeConfigSchema,
10
- init_schema
11
- } from "./index-aqppaaqx.js";
4
+ } from "./index-qqq04n70.js";
12
5
  import {
13
6
  observeReceiptTransition
14
- } from "./index-dsg9dw3b.js";
7
+ } from "./index-eed0gkv6.js";
15
8
  import {
16
9
  resolveHiveEventsPath
17
10
  } from "./index-ae75rja9.js";
18
11
  import {
19
12
  resolveKnowledgeStoreDir
20
- } from "./index-vdn32nws.js";
21
- import {
22
- atomicWriteFile
23
- } from "./index-xnb3tk7x.js";
13
+ } from "./index-sphahrmq.js";
24
14
  import {
25
15
  canonicalRootKey
26
16
  } from "./index-7qefgq4j.js";
27
17
  import {
28
- assertProjectRoot
29
- } from "./index-2bgr671r.js";
18
+ assertProjectRoot,
19
+ atomicWriteFile
20
+ } from "./index-2bhz5k91.js";
30
21
  import {
31
22
  emit
32
- } from "./index-ww6zm5hr.js";
23
+ } from "./index-r2p0pgst.js";
33
24
  import {
34
25
  require_proper_lockfile
35
26
  } from "./index-7g4c7s5r.js";
27
+ import {
28
+ loadPluginConfigWithMeta
29
+ } from "./index-vw66q1rw.js";
30
+ import {
31
+ KnowledgeConfigSchema,
32
+ init_schema
33
+ } from "./index-cgewrpw5.js";
36
34
  import {
37
35
  init_logger,
38
36
  warn
@@ -2815,7 +2813,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2815
2813
  }
2816
2814
  let bumps = 0;
2817
2815
  if (deltas.length > 0) {
2818
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-whm0gagt.js");
2816
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-aw58ae7b.js");
2819
2817
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2820
2818
  }
2821
2819
  return {
@@ -1,7 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ atomicWriteFileAnyRoot
4
+ } from "./index-ewv8qa8q.js";
2
5
  import {
3
6
  emit
4
- } from "./index-ww6zm5hr.js";
7
+ } from "./index-r2p0pgst.js";
5
8
  import {
6
9
  require_proper_lockfile
7
10
  } from "./index-7g4c7s5r.js";
@@ -360,4 +363,19 @@ async function withEvidenceLock(directory, evidencePath, agent, taskId, fn, time
360
363
  }
361
364
  }
362
365
 
363
- export { tryAcquireLock, listActiveLocks, hasExplicitProjectBoundary, isStrictPathDescendant, assertProjectRoot, EvidenceLockTimeoutError, withEvidenceLock };
366
+ // src/evidence/task-file.ts
367
+ import * as path3 from "path";
368
+ function taskEvidenceRelPath(taskId) {
369
+ return path3.join("evidence", `${taskId}.json`);
370
+ }
371
+ function taskEvidencePath(directory, taskId) {
372
+ return path3.join(directory, ".swarm", taskEvidenceRelPath(taskId));
373
+ }
374
+ async function atomicWriteFile(targetPath, content) {
375
+ await atomicWriteFileAnyRoot(targetPath, content);
376
+ }
377
+ function withTaskEvidenceLock(directory, taskId, agent, fn) {
378
+ return withEvidenceLock(directory, taskEvidenceRelPath(taskId), agent, taskId, fn);
379
+ }
380
+
381
+ export { tryAcquireLock, listActiveLocks, hasExplicitProjectBoundary, isStrictPathDescendant, assertProjectRoot, EvidenceLockTimeoutError, withEvidenceLock, taskEvidencePath, atomicWriteFile, withTaskEvidenceLock };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-r5q5gd2a.js";
5
+ } from "./index-qgajv9rd.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,9 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-rhqdsc1x.js";
47
+ } from "./index-vw66q1rw.js";
48
+ import"./index-9e6fdz2h.js";
49
+ import"./index-4rhhvd1a.js";
48
50
  import {
49
51
  AUTO_REVIEW_V8_BURN_IN_DECISION,
50
52
  AgentOverrideConfigSchema,
@@ -68,9 +70,7 @@ import {
68
70
  TurboConfigSchema,
69
71
  WorktreeIsolationConfigSchema,
70
72
  resolveAutoReviewConfig
71
- } from "./index-aqppaaqx.js";
72
- import"./index-9e6fdz2h.js";
73
- import"./index-4rhhvd1a.js";
73
+ } from "./index-cgewrpw5.js";
74
74
  import {
75
75
  ALL_AGENT_NAMES,
76
76
  ALL_SUBAGENT_NAMES,
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-qbw3yw2d.js";
5
+ } from "./index-888pq4xx.js";
6
+ import {
7
+ resolveKnowledgeStoreDir
8
+ } from "./index-sphahrmq.js";
6
9
  import {
7
10
  init_git_executable,
8
11
  resolveGitExecutableAsync
9
12
  } from "./index-9e6fdz2h.js";
10
- import {
11
- resolveKnowledgeStoreDir
12
- } from "./index-vdn32nws.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-vdn32nws.js";
10
+ } from "./index-sphahrmq.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -1,32 +1,27 @@
1
1
  // @bun
2
2
  import {
3
- ExecutionProfileSchema,
4
- PlanSchema,
5
- TaskStatusSchema,
6
- init_loader
7
- } from "./index-rhqdsc1x.js";
3
+ derivePlanId,
4
+ derivePlanIdentityHash
5
+ } from "./index-c45662wc.js";
8
6
  import {
9
7
  assertProjectRoot,
10
8
  withEvidenceLock
11
- } from "./index-2bgr671r.js";
9
+ } from "./index-2bhz5k91.js";
12
10
  import {
13
11
  emit
14
- } from "./index-ww6zm5hr.js";
12
+ } from "./index-r2p0pgst.js";
13
+ import {
14
+ ExecutionProfileSchema,
15
+ PlanSchema,
16
+ TaskStatusSchema,
17
+ init_loader
18
+ } from "./index-vw66q1rw.js";
15
19
  import {
16
20
  criticalWarn,
17
21
  init_logger,
18
22
  log
19
23
  } from "./index-zgwm4ryv.js";
20
24
 
21
- // src/plan/utils.ts
22
- import { createHash } from "crypto";
23
- function derivePlanId(plan) {
24
- return `${plan.swarm}-${plan.title}`.replace(/[^a-zA-Z0-9-_]/g, "_");
25
- }
26
- function derivePlanIdentityHash(plan) {
27
- return createHash("sha256").update(JSON.stringify([plan.swarm, plan.title]), "utf8").digest("hex");
28
- }
29
-
30
25
  // src/plan/ledger.ts
31
26
  import * as crypto from "crypto";
32
27
  import * as fs from "fs";
@@ -969,4 +964,4 @@ var _internals = {
969
964
  randomUUID: () => crypto.randomUUID()
970
965
  };
971
966
 
972
- export { normalizeExecutionProfileForHash, derivePlanId, derivePlanIdentityHash, LedgerStaleWriterError, computePlanLedgerHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, replayFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan };
967
+ export { normalizeExecutionProfileForHash, LedgerStaleWriterError, computePlanLedgerHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, replayFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan };