opencode-swarm 7.188.2 → 7.188.4

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 (106) 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/cli/{auto-checkpoint-e4r8nfq5.js → auto-checkpoint-gp13e1h5.js} +8 -8
  4. package/dist/cli/{checkpoint-ejm8n9y5.js → checkpoint-61vy6pjg.js} +16 -16
  5. package/dist/cli/{coder-settlement-hped4xgs.js → coder-settlement-2s4rr23t.js} +12 -12
  6. package/dist/cli/{config-doctor-1qp1jmz4.js → config-doctor-0pjjr594.js} +15 -15
  7. package/dist/cli/{core-j5yff7rq.js → core-qdn60dm0.js} +3 -3
  8. package/dist/cli/{curation-policy-v64ctcbd.js → curation-policy-2rdbwc6a.js} +6 -6
  9. package/dist/cli/{curator-jf60p665.js → curator-8yqmmn5w.js} +42 -42
  10. package/dist/cli/{curator-drift-2sypkddx.js → curator-drift-n4t27md5.js} +8 -8
  11. package/dist/cli/curator-llm-factory-30n2fnef.js +82 -0
  12. package/dist/cli/{doctor-knowledge-receipt-phase-id-xyecjehq.js → doctor-knowledge-receipt-phase-id-vk9c6t3k.js} +8 -8
  13. package/dist/cli/{evidence-summary-service-k2g6hj96.js → evidence-summary-service-xpdx8se9.js} +19 -19
  14. package/dist/cli/{gate-evidence-vmzyfpsp.js → gate-evidence-px2mexyg.js} +7 -7
  15. package/dist/cli/guardrail-explain-38hmb1s9.js +83 -0
  16. package/dist/cli/{guardrail-log-2htm6kes.js → guardrail-log-y61ewh6d.js} +7 -7
  17. package/dist/cli/{guardrail-reset-dbwzk3p9.js → guardrail-reset-3arv6rfs.js} +42 -42
  18. package/dist/cli/{hive-promoter-c24qc0e1.js → hive-promoter-5naewxf9.js} +42 -42
  19. package/dist/cli/{index-bf1meb32.js → index-0yqa3awy.js} +2 -2
  20. package/dist/cli/{index-m1qy7f1e.js → index-103gsfn1.js} +1 -1
  21. package/dist/cli/{index-9wfjc4cn.js → index-195msz9x.js} +1 -1
  22. package/dist/cli/{index-r6e8syr3.js → index-1d51nz8d.js} +1 -1
  23. package/dist/cli/{index-edf2eztc.js → index-1e4s8cyt.js} +4 -4
  24. package/dist/cli/{index-rwabrcsg.js → index-2ajapc0r.js} +1 -1
  25. package/dist/cli/{index-dwm3czmf.js → index-3034m1wv.js} +4 -4
  26. package/dist/cli/{index-bejxkee0.js → index-4czf0es9.js} +1 -1
  27. package/dist/cli/{index-wb01w8ex.js → index-4vgvybav.js} +2 -2
  28. package/dist/cli/{index-0v2svrev.js → index-4zran0jk.js} +1 -1
  29. package/dist/cli/{index-0rzc71q8.js → index-53me7h10.js} +5 -5
  30. package/dist/cli/{index-md4xx63t.js → index-64nkt4ek.js} +1 -1
  31. package/dist/cli/{index-4e3qcwfb.js → index-6kckcdd7.js} +3 -3
  32. package/dist/cli/{index-1466xg5c.js → index-6kf62j82.js} +1 -1
  33. package/dist/cli/{index-1hqybe51.js → index-6qtgyzw2.js} +3 -3
  34. package/dist/cli/{index-jd3hvnqn.js → index-75bm071p.js} +2 -2
  35. package/dist/cli/{index-mb1reyw3.js → index-8tf5tewn.js} +2 -2
  36. package/dist/cli/{index-rn5hh7pp.js → index-8zs4v02d.js} +6 -6
  37. package/dist/cli/{index-51dww7y9.js → index-94b58ssa.js} +82 -82
  38. package/dist/cli/{index-rx9phqsj.js → index-a5z8eqs0.js} +44 -44
  39. package/dist/cli/{index-9b86vn97.js → index-bqqyxmpk.js} +7 -7
  40. package/dist/cli/{index-x2p51ka9.js → index-d3p96wkj.js} +6 -6
  41. package/dist/cli/{index-41v699sv.js → index-d74wbpqc.js} +7 -7
  42. package/dist/cli/{index-gd41qkx3.js → index-dka1ra21.js} +7 -7
  43. package/dist/cli/{index-b02cdy5w.js → index-fm0yan3t.js} +4 -4
  44. package/dist/cli/{index-b9pz70d0.js → index-ge4hk20b.js} +2 -2
  45. package/dist/cli/{index-9hsnarbv.js → index-gmmz119k.js} +1 -1
  46. package/dist/cli/{index-7sbyvk99.js → index-gyhj562n.js} +2 -2
  47. package/dist/cli/{index-4htcpbs4.js → index-h83221w1.js} +3 -3
  48. package/dist/cli/{index-wxf5feq2.js → index-j7pqzxyq.js} +2 -2
  49. package/dist/cli/{index-a8gvszr2.js → index-jc0jxg7y.js} +2 -2
  50. package/dist/cli/{index-zwgh0gty.js → index-jkz10gm7.js} +1 -1
  51. package/dist/cli/{index-kxj8bqtj.js → index-ntyc39rv.js} +2 -2
  52. package/dist/cli/{index-fq78x7th.js → index-p8kv9hh6.js} +11 -11
  53. package/dist/cli/{index-mf19yqss.js → index-qwrx78m5.js} +2 -2
  54. package/dist/cli/{index-yay1xxzk.js → index-rqheyf9e.js} +4 -4
  55. package/dist/cli/{index-pz26qx3x.js → index-sh7se0x5.js} +7 -7
  56. package/dist/cli/{index-tr901ma3.js → index-tr6kaa6q.js} +5 -5
  57. package/dist/cli/{index-cc1vzq4m.js → index-v09x4k5h.js} +1 -1
  58. package/dist/cli/{index-x73e0zkb.js → index-vx59q2ex.js} +1 -1
  59. package/dist/cli/{index-ea10gcja.js → index-wftdsx38.js} +5 -5
  60. package/dist/cli/{index-k1aek1xr.js → index-wsab75et.js} +3 -3
  61. package/dist/cli/{index-9hag235h.js → index-ww91zjzk.js} +1 -1
  62. package/dist/cli/{index-vhwbxtzt.js → index-xn48kjf4.js} +2 -2
  63. package/dist/cli/{index-zyc869ys.js → index-yacpp9jq.js} +3 -3
  64. package/dist/cli/{index-3dvzvhrp.js → index-yctaaj1k.js} +5 -5
  65. package/dist/cli/{index-m6k9fsae.js → index-ywpn0arj.js} +42 -42
  66. package/dist/cli/index.js +43 -43
  67. package/dist/cli/{knowledge-escalator-5sqgd4pg.js → knowledge-escalator-2c4svh7n.js} +14 -14
  68. package/dist/cli/{knowledge-events-05yp3j0n.js → knowledge-events-7zea5hzr.js} +12 -12
  69. package/dist/cli/{knowledge-link-9gx2djyd.js → knowledge-link-r9nx1eaj.js} +5 -5
  70. package/dist/cli/{knowledge-store-zx3qkamt.js → knowledge-store-rdya1anx.js} +6 -6
  71. package/dist/cli/{knowledge-validator-pc399we4.js → knowledge-validator-qnc4byyh.js} +8 -8
  72. package/dist/cli/{mcp-8ptynxsv.js → mcp-z21kvvnf.js} +1 -1
  73. package/dist/cli/{model-preflight-bhxpnrb6.js → model-preflight-jbg35f6e.js} +42 -42
  74. package/dist/cli/{pending-delegations-6wcwj6sp.js → pending-delegations-c1yjybf1.js} +12 -12
  75. package/dist/cli/{pr-subscriptions-22q1p6wg.js → pr-subscriptions-2mngc0jg.js} +12 -12
  76. package/dist/cli/{pr-workflow-gate-5v9yabv2.js → pr-workflow-gate-h4s5w5y0.js} +42 -42
  77. package/dist/cli/{runner-x8sbydkw.js → runner-3ynjanks.js} +6 -6
  78. package/dist/cli/{scan-cursor-dkd9jvvq.js → scan-cursor-385k9dkp.js} +7 -7
  79. package/dist/cli/{schema-nsnc7dm8.js → schema-cp8sqp1b.js} +1 -1
  80. package/dist/cli/{scope-persistence-hwafwz1n.js → scope-persistence-d587cb6v.js} +15 -15
  81. package/dist/cli/{server-k52tg8j6.js → server-t0wansfd.js} +51 -43
  82. package/dist/cli/{skill-generator-ak2vxhqe.js → skill-generator-f2j1jnqf.js} +16 -16
  83. package/dist/cli/{snapshot-coordination-init-nwh6z0a6.js → snapshot-coordination-init-9gvgq52n.js} +42 -42
  84. package/dist/cli/{speckit-checkoff-wydtzjmn.js → speckit-checkoff-zw0w6ekx.js} +4 -4
  85. package/dist/cli/{telemetry-d0j31j5d.js → telemetry-eq1cwq2x.js} +1 -1
  86. package/dist/cli/{workspace-snapshot-y60ay5eq.js → workspace-snapshot-w60bykdz.js} +3 -3
  87. package/dist/cli/{worktree-collision-ownership-5fbzrgnm.js → worktree-collision-ownership-0d8xf1d8.js} +13 -13
  88. package/dist/cli/{worktree-isolation-643nwna7.js → worktree-isolation-ds8n4a16.js} +42 -42
  89. package/dist/context-map/capsule-builder.d.ts +14 -1
  90. package/dist/context-map/persistence.d.ts +9 -0
  91. package/dist/context-map/post-agent-update.d.ts +90 -1
  92. package/dist/host/v2/agents-commands.d.ts +41 -0
  93. package/dist/host/v2/events.d.ts +39 -0
  94. package/dist/host/v2/guidance.d.ts +30 -0
  95. package/dist/host/v2/hooks.d.ts +31 -0
  96. package/dist/host/v2/setup.d.ts +61 -0
  97. package/dist/host/v2/tools.d.ts +41 -0
  98. package/dist/host/v2/types.d.ts +291 -0
  99. package/dist/index.d.ts +1 -0
  100. package/dist/index.js +14 -13
  101. package/dist/tools/syntax-check.d.ts +14 -0
  102. package/dist/types/context-capsule.d.ts +12 -0
  103. package/dist/types/context-map.d.ts +1 -1
  104. package/package.json +1 -1
  105. package/dist/cli/curator-llm-factory-we3t6fqd.js +0 -82
  106. package/dist/cli/guardrail-explain-cpr1hh21.js +0 -83
@@ -33,36 +33,36 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-b02cdy5w.js";
36
+ } from "./index-fm0yan3t.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-yay1xxzk.js";
39
- import"./index-ea10gcja.js";
38
+ import"./index-rqheyf9e.js";
39
+ import"./index-wftdsx38.js";
40
40
  import"./index-m9zzj4ee.js";
41
- import"./index-bejxkee0.js";
41
+ import"./index-4czf0es9.js";
42
42
  import"./index-2s7dvzff.js";
43
- import"./index-dwm3czmf.js";
44
- import"./index-rwabrcsg.js";
43
+ import"./index-3034m1wv.js";
44
+ import"./index-2ajapc0r.js";
45
45
  import"./index-rtry5xyf.js";
46
- import"./index-wxf5feq2.js";
46
+ import"./index-j7pqzxyq.js";
47
47
  import"./index-kbkk7vnh.js";
48
48
  import"./index-0725jpp7.js";
49
- import"./index-mb1reyw3.js";
50
- import"./index-9b86vn97.js";
49
+ import"./index-8tf5tewn.js";
50
+ import"./index-bqqyxmpk.js";
51
51
  import"./index-vzm6zre7.js";
52
52
  import"./index-ae75rja9.js";
53
- import"./index-zwgh0gty.js";
54
- import"./index-7sbyvk99.js";
55
- import"./index-0v2svrev.js";
53
+ import"./index-jkz10gm7.js";
54
+ import"./index-gyhj562n.js";
55
+ import"./index-4zran0jk.js";
56
56
  import"./index-t7hmqgjy.js";
57
- import"./index-4htcpbs4.js";
57
+ import"./index-h83221w1.js";
58
58
  import"./index-fzpt2djt.js";
59
59
  import"./index-ejhxgyvm.js";
60
60
  import"./index-7g4c7s5r.js";
61
- import"./index-r6e8syr3.js";
61
+ import"./index-1d51nz8d.js";
62
62
  import"./index-gx2vp8gx.js";
63
- import"./index-1466xg5c.js";
63
+ import"./index-6kf62j82.js";
64
64
  import"./index-zxdawwc7.js";
65
- import"./index-9hsnarbv.js";
65
+ import"./index-gmmz119k.js";
66
66
  import"./index-bstjg81q.js";
67
67
  import"./index-bk5tah7q.js";
68
68
  import"./index-gknz3bv1.js";
@@ -8,74 +8,74 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-51dww7y9.js";
12
- import"./index-zyc869ys.js";
13
- import"./index-kxj8bqtj.js";
14
- import"./index-tr901ma3.js";
11
+ } from "./index-94b58ssa.js";
12
+ import"./index-yacpp9jq.js";
13
+ import"./index-ntyc39rv.js";
14
+ import"./index-tr6kaa6q.js";
15
15
  import"./index-vx8a8w3b.js";
16
- import"./index-x73e0zkb.js";
17
- import"./index-jd3hvnqn.js";
16
+ import"./index-vx59q2ex.js";
17
+ import"./index-75bm071p.js";
18
18
  import"./index-txdagbh7.js";
19
- import"./index-wb01w8ex.js";
19
+ import"./index-4vgvybav.js";
20
20
  import"./index-rdec0y3z.js";
21
- import"./index-1hqybe51.js";
22
- import"./index-pz26qx3x.js";
23
- import"./index-b02cdy5w.js";
24
- import"./index-rn5hh7pp.js";
25
- import"./index-mf19yqss.js";
26
- import"./index-41v699sv.js";
21
+ import"./index-6qtgyzw2.js";
22
+ import"./index-sh7se0x5.js";
23
+ import"./index-fm0yan3t.js";
24
+ import"./index-8zs4v02d.js";
25
+ import"./index-qwrx78m5.js";
26
+ import"./index-d74wbpqc.js";
27
27
  import"./index-cjapb4hy.js";
28
- import"./index-a8gvszr2.js";
28
+ import"./index-jc0jxg7y.js";
29
29
  import"./index-pt7h91zc.js";
30
30
  import"./index-q7sjgr1y.js";
31
- import"./index-x2p51ka9.js";
32
- import"./index-fq78x7th.js";
31
+ import"./index-d3p96wkj.js";
32
+ import"./index-p8kv9hh6.js";
33
33
  import"./index-6b295cas.js";
34
34
  import"./index-9nyqt3kb.js";
35
- import"./index-9wfjc4cn.js";
35
+ import"./index-195msz9x.js";
36
36
  import"./index-zsrtt42s.js";
37
- import"./index-bf1meb32.js";
38
- import"./index-edf2eztc.js";
39
- import"./index-4e3qcwfb.js";
37
+ import"./index-0yqa3awy.js";
38
+ import"./index-1e4s8cyt.js";
39
+ import"./index-6kckcdd7.js";
40
40
  import"./index-g4fs6z4e.js";
41
- import"./index-gd41qkx3.js";
42
- import"./index-yay1xxzk.js";
43
- import"./index-ea10gcja.js";
41
+ import"./index-dka1ra21.js";
42
+ import"./index-rqheyf9e.js";
43
+ import"./index-wftdsx38.js";
44
44
  import"./index-m9zzj4ee.js";
45
- import"./index-bejxkee0.js";
45
+ import"./index-4czf0es9.js";
46
46
  import"./index-2s7dvzff.js";
47
- import"./index-dwm3czmf.js";
48
- import"./index-rwabrcsg.js";
47
+ import"./index-3034m1wv.js";
48
+ import"./index-2ajapc0r.js";
49
49
  import"./index-rtry5xyf.js";
50
- import"./index-wxf5feq2.js";
50
+ import"./index-j7pqzxyq.js";
51
51
  import"./index-kbkk7vnh.js";
52
52
  import"./index-0725jpp7.js";
53
- import"./index-0rzc71q8.js";
54
- import"./index-3dvzvhrp.js";
55
- import"./index-b9pz70d0.js";
56
- import"./index-m1qy7f1e.js";
57
- import"./index-cc1vzq4m.js";
58
- import"./index-9hag235h.js";
53
+ import"./index-53me7h10.js";
54
+ import"./index-yctaaj1k.js";
55
+ import"./index-ge4hk20b.js";
56
+ import"./index-103gsfn1.js";
57
+ import"./index-v09x4k5h.js";
58
+ import"./index-ww91zjzk.js";
59
59
  import"./index-ry16d01s.js";
60
60
  import"./index-rdm3px0g.js";
61
61
  import"./index-7pmbnjvj.js";
62
- import"./index-mb1reyw3.js";
63
- import"./index-9b86vn97.js";
62
+ import"./index-8tf5tewn.js";
63
+ import"./index-bqqyxmpk.js";
64
64
  import"./index-vzm6zre7.js";
65
65
  import"./index-ae75rja9.js";
66
- import"./index-zwgh0gty.js";
67
- import"./index-7sbyvk99.js";
68
- import"./index-0v2svrev.js";
66
+ import"./index-jkz10gm7.js";
67
+ import"./index-gyhj562n.js";
68
+ import"./index-4zran0jk.js";
69
69
  import"./index-t7hmqgjy.js";
70
- import"./index-4htcpbs4.js";
70
+ import"./index-h83221w1.js";
71
71
  import"./index-fzpt2djt.js";
72
72
  import"./index-ejhxgyvm.js";
73
73
  import"./index-7g4c7s5r.js";
74
- import"./index-r6e8syr3.js";
74
+ import"./index-1d51nz8d.js";
75
75
  import"./index-gx2vp8gx.js";
76
- import"./index-1466xg5c.js";
76
+ import"./index-6kf62j82.js";
77
77
  import"./index-zxdawwc7.js";
78
- import"./index-9hsnarbv.js";
78
+ import"./index-gmmz119k.js";
79
79
  import"./index-bstjg81q.js";
80
80
  import"./index-bk5tah7q.js";
81
81
  import"./index-gknz3bv1.js";
@@ -7,13 +7,13 @@ import {
7
7
  parseSpeckitTasksContent,
8
8
  propagateSpeckitCheckoff,
9
9
  writeSpeckitCheckoffLedger
10
- } from "./index-bf1meb32.js";
10
+ } from "./index-0yqa3awy.js";
11
11
  import"./index-ejhxgyvm.js";
12
12
  import"./index-7g4c7s5r.js";
13
- import"./index-r6e8syr3.js";
14
- import"./index-1466xg5c.js";
13
+ import"./index-1d51nz8d.js";
14
+ import"./index-6kf62j82.js";
15
15
  import"./index-zxdawwc7.js";
16
- import"./index-9hsnarbv.js";
16
+ import"./index-gmmz119k.js";
17
17
  import"./index-bstjg81q.js";
18
18
  import"./index-bk5tah7q.js";
19
19
  import"./index-gknz3bv1.js";
@@ -14,7 +14,7 @@ import {
14
14
  startHeartbeatTracking,
15
15
  stopHeartbeatTracking,
16
16
  telemetry
17
- } from "./index-4htcpbs4.js";
17
+ } from "./index-h83221w1.js";
18
18
  import"./index-fzpt2djt.js";
19
19
  import"./index-gknz3bv1.js";
20
20
  import"./index-zpsr8rpc.js";
@@ -46,11 +46,11 @@ import {
46
46
  shouldSkipSnapshot,
47
47
  switchPrFeedbackTrackingCandidateAsync,
48
48
  workspaceSnapshotMatches
49
- } from "./index-mf19yqss.js";
50
- import"./index-bejxkee0.js";
49
+ } from "./index-qwrx78m5.js";
50
+ import"./index-4czf0es9.js";
51
51
  import"./index-2s7dvzff.js";
52
52
  import"./index-fzpt2djt.js";
53
- import"./index-r6e8syr3.js";
53
+ import"./index-1d51nz8d.js";
54
54
  import"./index-zxdawwc7.js";
55
55
  import"./index-zpsr8rpc.js";
56
56
  import"./index-zgwm4ryv.js";
@@ -6,37 +6,37 @@ import {
6
6
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
7
7
  removeWorktreeProvisioningOwner,
8
8
  scanWorktreeProvisioningOwnersForRecovery
9
- } from "./index-a8gvszr2.js";
9
+ } from "./index-jc0jxg7y.js";
10
10
  import {
11
11
  scanWorktreeMergeFailuresForRecovery
12
12
  } from "./index-zsrtt42s.js";
13
13
  import {
14
14
  scanDelegationFallbacksForRecovery,
15
15
  scanDelegationsForRecovery
16
- } from "./index-gd41qkx3.js";
17
- import"./index-bejxkee0.js";
16
+ } from "./index-dka1ra21.js";
17
+ import"./index-4czf0es9.js";
18
18
  import"./index-2s7dvzff.js";
19
- import"./index-m1qy7f1e.js";
20
- import"./index-cc1vzq4m.js";
21
- import"./index-9hag235h.js";
19
+ import"./index-103gsfn1.js";
20
+ import"./index-v09x4k5h.js";
21
+ import"./index-ww91zjzk.js";
22
22
  import"./index-ry16d01s.js";
23
23
  import"./index-rdm3px0g.js";
24
24
  import"./index-7pmbnjvj.js";
25
- import"./index-mb1reyw3.js";
26
- import"./index-9b86vn97.js";
25
+ import"./index-8tf5tewn.js";
26
+ import"./index-bqqyxmpk.js";
27
27
  import"./index-vzm6zre7.js";
28
28
  import"./index-ae75rja9.js";
29
- import"./index-zwgh0gty.js";
30
- import"./index-7sbyvk99.js";
31
- import"./index-0v2svrev.js";
29
+ import"./index-jkz10gm7.js";
30
+ import"./index-gyhj562n.js";
31
+ import"./index-4zran0jk.js";
32
32
  import"./index-t7hmqgjy.js";
33
- import"./index-4htcpbs4.js";
33
+ import"./index-h83221w1.js";
34
34
  import {
35
35
  canonicalRootKeyFresh
36
36
  } from "./index-fzpt2djt.js";
37
37
  import"./index-ejhxgyvm.js";
38
38
  import"./index-7g4c7s5r.js";
39
- import"./index-r6e8syr3.js";
39
+ import"./index-1d51nz8d.js";
40
40
  import"./index-zxdawwc7.js";
41
41
  import"./index-bk5tah7q.js";
42
42
  import"./index-gknz3bv1.js";
@@ -21,76 +21,76 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-51dww7y9.js";
25
- import"./index-zyc869ys.js";
26
- import"./index-kxj8bqtj.js";
27
- import"./index-tr901ma3.js";
24
+ } from "./index-94b58ssa.js";
25
+ import"./index-yacpp9jq.js";
26
+ import"./index-ntyc39rv.js";
27
+ import"./index-tr6kaa6q.js";
28
28
  import"./index-vx8a8w3b.js";
29
- import"./index-x73e0zkb.js";
30
- import"./index-jd3hvnqn.js";
29
+ import"./index-vx59q2ex.js";
30
+ import"./index-75bm071p.js";
31
31
  import"./index-txdagbh7.js";
32
- import"./index-wb01w8ex.js";
32
+ import"./index-4vgvybav.js";
33
33
  import"./index-rdec0y3z.js";
34
- import"./index-1hqybe51.js";
35
- import"./index-pz26qx3x.js";
36
- import"./index-b02cdy5w.js";
37
- import"./index-rn5hh7pp.js";
38
- import"./index-mf19yqss.js";
39
- import"./index-41v699sv.js";
34
+ import"./index-6qtgyzw2.js";
35
+ import"./index-sh7se0x5.js";
36
+ import"./index-fm0yan3t.js";
37
+ import"./index-8zs4v02d.js";
38
+ import"./index-qwrx78m5.js";
39
+ import"./index-d74wbpqc.js";
40
40
  import"./index-cjapb4hy.js";
41
- import"./index-a8gvszr2.js";
41
+ import"./index-jc0jxg7y.js";
42
42
  import"./index-pt7h91zc.js";
43
43
  import"./index-q7sjgr1y.js";
44
- import"./index-x2p51ka9.js";
45
- import"./index-fq78x7th.js";
44
+ import"./index-d3p96wkj.js";
45
+ import"./index-p8kv9hh6.js";
46
46
  import"./index-6b295cas.js";
47
47
  import"./index-9nyqt3kb.js";
48
- import"./index-9wfjc4cn.js";
48
+ import"./index-195msz9x.js";
49
49
  import"./index-zsrtt42s.js";
50
- import"./index-bf1meb32.js";
51
- import"./index-edf2eztc.js";
52
- import"./index-4e3qcwfb.js";
50
+ import"./index-0yqa3awy.js";
51
+ import"./index-1e4s8cyt.js";
52
+ import"./index-6kckcdd7.js";
53
53
  import"./index-g4fs6z4e.js";
54
- import"./index-gd41qkx3.js";
55
- import"./index-yay1xxzk.js";
56
- import"./index-ea10gcja.js";
54
+ import"./index-dka1ra21.js";
55
+ import"./index-rqheyf9e.js";
56
+ import"./index-wftdsx38.js";
57
57
  import"./index-m9zzj4ee.js";
58
- import"./index-bejxkee0.js";
58
+ import"./index-4czf0es9.js";
59
59
  import"./index-2s7dvzff.js";
60
- import"./index-dwm3czmf.js";
61
- import"./index-rwabrcsg.js";
60
+ import"./index-3034m1wv.js";
61
+ import"./index-2ajapc0r.js";
62
62
  import"./index-rtry5xyf.js";
63
63
  import {
64
64
  resolveWorktreeIsolationConfig
65
- } from "./index-wxf5feq2.js";
65
+ } from "./index-j7pqzxyq.js";
66
66
  import"./index-kbkk7vnh.js";
67
67
  import"./index-0725jpp7.js";
68
- import"./index-0rzc71q8.js";
69
- import"./index-3dvzvhrp.js";
70
- import"./index-b9pz70d0.js";
71
- import"./index-m1qy7f1e.js";
72
- import"./index-cc1vzq4m.js";
73
- import"./index-9hag235h.js";
68
+ import"./index-53me7h10.js";
69
+ import"./index-yctaaj1k.js";
70
+ import"./index-ge4hk20b.js";
71
+ import"./index-103gsfn1.js";
72
+ import"./index-v09x4k5h.js";
73
+ import"./index-ww91zjzk.js";
74
74
  import"./index-ry16d01s.js";
75
75
  import"./index-rdm3px0g.js";
76
76
  import"./index-7pmbnjvj.js";
77
- import"./index-mb1reyw3.js";
78
- import"./index-9b86vn97.js";
77
+ import"./index-8tf5tewn.js";
78
+ import"./index-bqqyxmpk.js";
79
79
  import"./index-vzm6zre7.js";
80
80
  import"./index-ae75rja9.js";
81
- import"./index-zwgh0gty.js";
82
- import"./index-7sbyvk99.js";
83
- import"./index-0v2svrev.js";
81
+ import"./index-jkz10gm7.js";
82
+ import"./index-gyhj562n.js";
83
+ import"./index-4zran0jk.js";
84
84
  import"./index-t7hmqgjy.js";
85
- import"./index-4htcpbs4.js";
85
+ import"./index-h83221w1.js";
86
86
  import"./index-fzpt2djt.js";
87
87
  import"./index-ejhxgyvm.js";
88
88
  import"./index-7g4c7s5r.js";
89
- import"./index-r6e8syr3.js";
89
+ import"./index-1d51nz8d.js";
90
90
  import"./index-gx2vp8gx.js";
91
- import"./index-1466xg5c.js";
91
+ import"./index-6kf62j82.js";
92
92
  import"./index-zxdawwc7.js";
93
- import"./index-9hsnarbv.js";
93
+ import"./index-gmmz119k.js";
94
94
  import"./index-bstjg81q.js";
95
95
  import"./index-bk5tah7q.js";
96
96
  import"./index-gknz3bv1.js";
@@ -20,7 +20,7 @@
20
20
  */
21
21
  import * as fs from 'node:fs';
22
22
  import type { AgentRole, CapsuleDelegationReason, CapsuleMetadata, ContextCapsule, ReadPolicyEntry, RoleProfile } from '../types/context-capsule';
23
- import type { ContextMap } from '../types/context-map';
23
+ import type { ContextMap, DecisionEntry } from '../types/context-map';
24
24
  import { extractFileSummary, isFileStale } from './file-summary';
25
25
  import { computeContentHash, createEmptyContextMap, loadContextMap } from './persistence';
26
26
  /**
@@ -108,6 +108,19 @@ export declare const DEFAULT_ROLE_PROFILES: Record<AgentRole, RoleProfile>;
108
108
  * @returns Array of read policy entries, one per file
109
109
  */
110
110
  export declare function buildReadPolicy(files: string[], map: ContextMap, directory: string, invalidateOnHashChange?: boolean, contentCache?: Map<string, string | undefined>): ReadPolicyEntry[];
111
+ /**
112
+ * Maximum number of decisions a critic capsule's Decisions section carries
113
+ * (#3016). Task-scoped decisions are selected first; remaining slots go to
114
+ * the most recent other decisions.
115
+ */
116
+ export declare const MAX_CAPSULE_DECISIONS = 10;
117
+ /**
118
+ * Select the decisions surfaced in a critic capsule: entries recorded for
119
+ * this task first, then the most recent decisions from other tasks, capped
120
+ * at {@link MAX_CAPSULE_DECISIONS} entries total. When either group exceeds
121
+ * its share, the MOST RECENT entries win (the log is append-order).
122
+ */
123
+ export declare function selectCapsuleDecisions(decisions: readonly DecisionEntry[], taskId: string): DecisionEntry[];
111
124
  /**
112
125
  * Build a role-specific Context Capsule for a delegated agent.
113
126
  *
@@ -45,6 +45,15 @@ export declare function createEmptyContextMap(): ContextMap;
45
45
  * Load the Context Map from `.swarm/context-map.json` in the given directory.
46
46
  * Returns `null` if the file doesn't exist or cannot be parsed (corrupt file).
47
47
  * Never throws.
48
+ *
49
+ * Structural validation (#3016): every field downstream code iterates or
50
+ * spreads must have the shape the writers produce — `decisions` an array,
51
+ * `files` and `task_history` non-null non-array objects. Absent keys fail
52
+ * closed the same way: every in-repo writer (`createEmptyContextMap`,
53
+ * `saveContextMap`, the append paths) always materializes all three keys, so
54
+ * a map missing or mis-shaping them is foreign or hand-mangled and is
55
+ * replaced by a fresh map rather than silently dropped mid-update or
56
+ * corrupted by spread semantics.
48
57
  */
49
58
  export declare function loadContextMap(directory: string): ContextMap | null;
50
59
  /**
@@ -16,9 +16,51 @@
16
16
  * No `bun:` imports — this module is Node-ESM-loadable (Invariant 2).
17
17
  */
18
18
  import * as fs from 'node:fs';
19
- import type { ContextMap } from '../types/context-map';
19
+ import type { ContextMap, DecisionEntry } from '../types/context-map';
20
20
  import { extractFileSummary } from './file-summary';
21
21
  import { appendDecision, appendTaskHistory, createEmptyContextMap, loadContextMap, saveContextMap } from './persistence';
22
+ /**
23
+ * A decision extracted from `.swarm/context.md`'s `## Decisions` section,
24
+ * ready to be persisted as a `DecisionEntry` by `updateContextMapAfterAgent`.
25
+ */
26
+ export interface PostAgentDecision {
27
+ /** The decision text (bullet text before the first `: ` separator) */
28
+ decision: string;
29
+ /** Rationale text (after the first `: ` separator; empty when absent) */
30
+ rationale: string;
31
+ /** Phase number when the bullet carried or inherited one, else absent */
32
+ phase?: number;
33
+ }
34
+ /**
35
+ * Options for {@link extractContextDecisionsFromContextMd}.
36
+ */
37
+ export interface ExtractContextDecisionsOptions {
38
+ /**
39
+ * Session agent role used to gate the sync. `.swarm/context.md` is
40
+ * architect-maintained (subagents are forbidden from writing it), so when
41
+ * a role is supplied and is not an architect role — bare `'architect'`
42
+ * (`ORCHESTRATOR_NAME`) or a multi-swarm prefixed form ending in
43
+ * `'_architect'` — the sync returns no decisions without reading the file.
44
+ * Omit to extract regardless of role.
45
+ */
46
+ agent_role?: string;
47
+ }
48
+ /**
49
+ * Maximum number of context.md decisions one sync records. The architect
50
+ * appends newest decisions at the bottom of the file, so the window keeps the
51
+ * MOST RECENT entries; older entries beyond the window are never
52
+ * retroactively recorded.
53
+ */
54
+ export declare const MAX_CONTEXT_MD_DECISIONS = 50;
55
+ /**
56
+ * Character bound for the context.md content handed to the shared extractor
57
+ * (PR #3023 feedback FB-005). The shared extractor's own cap slices a PREFIX
58
+ * (oldest-first), which would invert the most-recent window for pathological
59
+ * file sizes and silently drop a `## Decisions` heading lying beyond the
60
+ * slice; this module slices from the TAIL instead so the most recent content
61
+ * is what gets scanned.
62
+ */
63
+ export declare const MAX_CONTEXT_MD_CONTENT_CHARS = 1000000;
22
64
  /**
23
65
  * Parameters for updating the Context Map after an agent completes a task.
24
66
  * Captures all relevant context from the agent's work session so that
@@ -45,10 +87,57 @@ export interface PostAgentUpdateParams {
45
87
  decisions?: Array<{
46
88
  decision: string;
47
89
  rationale: string;
90
+ phase?: number;
48
91
  }>;
49
92
  /** Project root directory */
50
93
  directory: string;
51
94
  }
95
+ /**
96
+ * Allocate the next durable decision ID for a context map.
97
+ *
98
+ * Derived from the decisions already present in the map being updated:
99
+ * the max numeric suffix among existing `A<n>` IDs + 1, computed with BigInt
100
+ * so suffixes past 2^53 stay exact. Mirrors `allocateSummaryId` in
101
+ * src/summaries/manager.ts (issue #2576 / #2720): after a process restart
102
+ * the map is reloaded from disk, so allocation continues after the persisted
103
+ * IDs instead of restarting at A1 and duplicating identity in
104
+ * `.swarm/context-map.json`.
105
+ *
106
+ * IDs that do not match `^A\d+$` (foreign prefixes, non-strings) are ignored
107
+ * rather than crashing allocation.
108
+ */
109
+ export declare function allocateDecisionId(decisions: readonly DecisionEntry[]): string;
110
+ /**
111
+ * Extract decisions from `.swarm/context.md`'s `## Decisions` section.
112
+ *
113
+ * The context file is the repo's decisions-recording convention (architect
114
+ * prompt `src/agents/architect.ts`; shared `## Decisions` grammar parsed by
115
+ * `extractContextDecisions`, the #2493 consolidation). Each bullet
116
+ * `- <decision>: <rationale>` becomes a {@link PostAgentDecision}: the text
117
+ * before the FIRST `: ` is the decision, the remainder the rationale (a
118
+ * rationale may itself contain colons; a bullet without a separator yields an
119
+ * empty rationale). Bullets whose decision text is empty after the
120
+ * extractor's marker stripping are dropped.
121
+ *
122
+ * Bounded: keeps the most recent {@link MAX_CONTEXT_MD_DECISIONS} entries —
123
+ * entries beyond that window are never retroactively recorded.
124
+ *
125
+ * When `options.agent_role` is supplied and is not an architect role, returns
126
+ * `[]` without touching the filesystem (the file is architect-maintained;
127
+ * subagent-only sessions do not adopt its decisions).
128
+ *
129
+ * Never throws — a missing or unreadable file yields `[]`.
130
+ */
131
+ export declare function extractContextDecisionsFromContextMd(directory: string, options?: ExtractContextDecisionsOptions): PostAgentDecision[];
132
+ /**
133
+ * Upper bound for the PERSISTED decisions log in `.swarm/context-map.json`
134
+ * (PR #3023 feedback FB-002). The log is append-only within this window:
135
+ * after each update the most recent entries are kept and older ones are
136
+ * trimmed at save time, so reworded decision variants cannot grow the file
137
+ * without bound. The capsule read surface is additionally capped by
138
+ * `MAX_CAPSULE_DECISIONS` in the capsule builder.
139
+ */
140
+ export declare const MAX_PERSISTED_DECISIONS = 200;
52
141
  /**
53
142
  * Test-only dependency-injection seam. Production code calls through this
54
143
  * object so tests can replace the underlying implementations without
@@ -0,0 +1,41 @@
1
+ /**
2
+ * v2 agent + command registration (issue #3004 / #2910).
3
+ *
4
+ * Single-source design: the v1 `config` hook IS the shared builder. This
5
+ * module invokes `hooks.config` against a synthetic `opencodeConfig` object
6
+ * and registers the resulting `.agent` / `.command` tables onto the v2 agent
7
+ * and command domains — the auto-select promotions and the entire v1 command table are reused with
8
+ * zero extraction from src/index.ts (the v1 TUI shortcut block stays
9
+ * byte-pinned). DELTA: the lane-permission mutations the v1 hook writes into
10
+ * the config object (applyLanePermissions) have no v2 destination here and
11
+ * are dropped - external-directory lane scoping is a #2910 follow-up row in
12
+ * docs/host/v2-hook-inventory.md.
13
+ *
14
+ * Mappings (docs/host/v2-hook-inventory.md rows 4-5):
15
+ * - v1 AgentConfig → v2 Agent.Info: `prompt`→`system`, `mode` preserved
16
+ * (multi-swarm `*_architect` primary semantics — AGENTS.md invariant 11),
17
+ * `model` string 'provider/model' → Model.Ref, `tools` allowlist →
18
+ * per-tool allow permission rules (best-effort; see inventory).
19
+ * - Entries the v1 hook marks `disable: true` (auto-select disabling the
20
+ * `build`/`plan` built-ins) are REMOVED on the v2 agent editor.
21
+ * - v1 command entries `{template, description}` → v2 CommandDefinition
22
+ * whose `execute` submits the expanded template through
23
+ * `ctx.session.prompt` (TUI-side $ARGUMENTS expansion is replaced by
24
+ * direct substitution — inventory row).
25
+ */
26
+ import type { V1HooksSubset, V2AgentInfo, V2PluginContext, V2Registration } from './types';
27
+ interface V1AgentConfigLike {
28
+ mode?: unknown;
29
+ prompt?: unknown;
30
+ description?: unknown;
31
+ model?: unknown;
32
+ tools?: unknown;
33
+ disable?: unknown;
34
+ }
35
+ /** Map one v1 AgentConfig entry to a v2 Agent.Info. */
36
+ export declare function mapV1AgentToV2(name: string, config: V1AgentConfigLike): V2AgentInfo;
37
+ /** Expand a v1 TUI template for a v2 command execution. */
38
+ export declare function expandV1Template(template: string, argumentsText: string): string;
39
+ /** Register agents + commands via the synthetic config-hook run. */
40
+ export declare function registerV2AgentsAndCommands(ctx: V2PluginContext, hooks: V1HooksSubset, directory: string, registrations: V2Registration[]): Promise<void>;
41
+ export {};
@@ -0,0 +1,39 @@
1
+ /**
2
+ * v2 event subscription pump (issue #3004 / #2910).
3
+ *
4
+ * Consumes the v2 host's event stream (async iterable from
5
+ * `ctx.event.subscribe()`) and maps host events onto the plugin's existing v1
6
+ * event handler. The pump runs detached; the returned stop function breaks
7
+ * iteration (called by the v2 cleanup).
8
+ *
9
+ * Event-name map (full table in docs/host/v2-hook-inventory.md row 14):
10
+ *
11
+ * v2 event → v1 handler input
12
+ * ------------------------+-------------------------------------------
13
+ * session.idle → { type: 'session.idle', properties }
14
+ * session.status.updated → { type: 'session.idle', properties } (state watch)
15
+ * session.text.delta → { type: 'message.part.updated', properties }
16
+ * session.text.ended → { type: 'message.updated', properties }
17
+ * session.tool.called → { type: 'message.part.updated', properties }
18
+ * session.tool.success → { type: 'message.updated', properties }
19
+ * session.tool.failed → { type: 'message.updated', properties }
20
+ * session.execution.failed → { type: 'session.error', properties }
21
+ * session.deleted / session.created → same-name v1 types
22
+ *
23
+ * Unmapped event types are counted in a bounded debug log, never silently
24
+ * assumed. This module is named deferred-/startDeferred- per the C6 await
25
+ * convention (its awaits live in deferred-named helpers).
26
+ */
27
+ import type { V1HooksSubset, V2EventEnvelope, V2PluginContext } from './types';
28
+ interface MappedEvent {
29
+ type: string;
30
+ properties: Record<string, unknown>;
31
+ }
32
+ /** Map a v2 event envelope onto the v1 handler input (or undefined). */
33
+ export declare function mapV2EventToV1(envelope: V2EventEnvelope): MappedEvent | undefined;
34
+ /**
35
+ * Start the detached event pump. Returns a stop function. Named per the C6
36
+ * convention (deferred).
37
+ */
38
+ export declare function startDeferredEventPump(ctx: V2PluginContext, hooks: V1HooksSubset): () => void;
39
+ export {};