opencode-swarm 7.135.2 → 7.135.3

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 (70) hide show
  1. package/.opencode/skills/critic-gate/SKILL.md +10 -0
  2. package/dist/agents/index.d.ts +12 -0
  3. package/dist/cli/{config-doctor-pj3yvxdb.js → config-doctor-4nznqeca.js} +3 -2
  4. package/dist/cli/{core-4va9z2ng.js → core-4z1s2ak1.js} +3 -2
  5. package/dist/cli/{curation-policy-b2caf3v3.js → curation-policy-81m14519.js} +3 -3
  6. package/dist/cli/{curator-drift-2ta83hss.js → curator-drift-jpap6hv4.js} +2 -2
  7. package/dist/cli/{curator-r1s2mwf2.js → curator-e0z5gcww.js} +24 -23
  8. package/dist/cli/{curator-llm-factory-9983528d.js → curator-llm-factory-fem13y9n.js} +24 -23
  9. package/dist/cli/{dispatch-wtk6dxky.js → dispatch-b1fge4xk.js} +2 -2
  10. package/dist/cli/{evidence-summary-service-feby8ny0.js → evidence-summary-service-w006jnpg.js} +5 -5
  11. package/dist/cli/{gate-evidence-84b03mb4.js → gate-evidence-aenyz6vt.js} +2 -2
  12. package/dist/cli/{guardrail-explain-pwxvg5n0.js → guardrail-explain-wgaj23hd.js} +25 -24
  13. package/dist/cli/{guardrail-log-yzpz8b7t.js → guardrail-log-04p1z1vt.js} +5 -4
  14. package/dist/cli/{hive-promoter-586dhndj.js → hive-promoter-k345z42k.js} +24 -23
  15. package/dist/cli/{index-g3meqrsg.js → index-168phrs7.js} +12 -10
  16. package/dist/cli/{index-3m7kpnqf.js → index-30pg2rs3.js} +1 -1
  17. package/dist/cli/{index-b0eva00y.js → index-36v55ryg.js} +1 -1
  18. package/dist/cli/index-3jcyn8g6.js +1219 -0
  19. package/dist/cli/{index-hdy2nd5h.js → index-45t7w06b.js} +4 -4
  20. package/dist/cli/{index-bs4m85v1.js → index-5436jxnw.js} +2 -2
  21. package/dist/cli/{index-j92ser8n.js → index-a01r818w.js} +5 -3
  22. package/dist/cli/{index-hvrrq3f3.js → index-bcmrg4t4.js} +1 -1
  23. package/dist/cli/{index-d5psymdk.js → index-c9ddxv4k.js} +57 -8
  24. package/dist/cli/{index-7pnvf04s.js → index-cggqh2dz.js} +10 -10
  25. package/dist/cli/{index-340chr1e.js → index-dwargd10.js} +10105 -9998
  26. package/dist/cli/{index-ckdva4rs.js → index-f52jt0am.js} +5 -5
  27. package/dist/cli/{index-jgkjxpdh.js → index-gxxxmajn.js} +2 -2
  28. package/dist/cli/{index-2pxk6qg4.js → index-kb7qy7an.js} +4 -2
  29. package/dist/cli/{index-j0kte6gd.js → index-p5kr35wh.js} +8 -1210
  30. package/dist/cli/{index-02cqjna3.js → index-p9ngg568.js} +4 -4
  31. package/dist/cli/{index-8gw8p7yh.js → index-rv7s2k9y.js} +1 -1
  32. package/dist/cli/{index-3xbx305x.js → index-tcn457d5.js} +1 -1
  33. package/dist/cli/{index-9c3gf2wd.js → index-wygxzvtf.js} +6 -4
  34. package/dist/cli/{index-73dfyfhq.js → index-x20cgr2q.js} +1 -1
  35. package/dist/cli/{index-cwdy5vw9.js → index-y47crdg9.js} +30 -28
  36. package/dist/cli/{index-qqkw794p.js → index-yf30m841.js} +3 -3
  37. package/dist/cli/index.js +27 -25
  38. package/dist/cli/{knowledge-escalator-w7by1m8m.js → knowledge-escalator-42ecv7m3.js} +4 -4
  39. package/dist/cli/{knowledge-events-n8xxsay3.js → knowledge-events-zhna7v3g.js} +2 -2
  40. package/dist/cli/knowledge-link-mm1w967j.js +1 -1
  41. package/dist/cli/{knowledge-store-xzmvfnx3.js → knowledge-store-56jcfc5k.js} +2 -2
  42. package/dist/cli/{knowledge-validator-5q1amsq6.js → knowledge-validator-8zk0pnb6.js} +5 -5
  43. package/dist/cli/{pending-delegations-mt5gs1bt.js → pending-delegations-qajsxct0.js} +4 -4
  44. package/dist/cli/{pr-subscriptions-v5xd3j6d.js → pr-subscriptions-qhr41epq.js} +4 -4
  45. package/dist/cli/{scan-cursor-1q1zmt4b.js → scan-cursor-h3ndxd41.js} +3 -3
  46. package/dist/cli/{schema-8mtsfspm.js → schema-r6wmd7zp.js} +2 -1
  47. package/dist/cli/scope-persistence-h2fpgxww.js +2 -2
  48. package/dist/cli/{skill-generator-54xbjgak.js → skill-generator-12cftsx4.js} +6 -6
  49. package/dist/cli/{worktree-collision-ownership-15hymf1y.js → worktree-collision-ownership-13btcj9g.js} +5 -5
  50. package/dist/commands/approve-plan-critic.d.ts +21 -0
  51. package/dist/commands/registry.d.ts +8 -0
  52. package/dist/config/cache-paths.d.ts +48 -0
  53. package/dist/config/constants.d.ts +18 -0
  54. package/dist/config/host-path.d.ts +95 -0
  55. package/dist/config/lane-context.d.ts +117 -0
  56. package/dist/config/lane-permissions.d.ts +277 -0
  57. package/dist/config/schema.d.ts +10 -0
  58. package/dist/config/swarm-branch.d.ts +130 -0
  59. package/dist/hooks/delegation-gate.d.ts +42 -1
  60. package/dist/hooks/skill-propagation-gate.d.ts +10 -0
  61. package/dist/index.js +211 -199
  62. package/dist/memory/schema.d.ts +4 -4
  63. package/dist/tools/approve-plan-critic.d.ts +5 -0
  64. package/dist/tools/index.d.ts +1 -0
  65. package/dist/tools/manifest.d.ts +1 -0
  66. package/dist/tools/tool-metadata.d.ts +4 -0
  67. package/package.json +1 -1
  68. package/dist/cli/{index-bfd4xfpp.js → index-4qzeef9h.js} +3 -3
  69. package/dist/cli/{index-ryqnn3nv.js → index-mrtms113.js} +3 -3
  70. package/dist/cli/{index-m0ynxkaa.js → index-vm4xw9z3.js} +3 -3
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
702
702
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
703
703
  if (atFloor.length === 0 && recovered.length === 0)
704
704
  return;
705
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-n8xxsay3.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-zhna7v3g.js");
706
706
  const rollups = await readKnowledgeCounterRollups(directory);
707
707
  const flagIds = new Set;
708
708
  for (const e of atFloor) {
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
769
769
  });
770
770
  }
771
771
  if (action === "quarantine" && toQuarantine.length > 0) {
772
- const { quarantineEntry } = await import("./knowledge-validator-5q1amsq6.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-8mtsfspm.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-8zk0pnb6.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-r6wmd7zp.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-g3meqrsg.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-168phrs7.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
608
608
  deltas.push({ id, delta });
609
609
  }
610
610
  if (deltas.length > 0) {
611
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-xzmvfnx3.js");
611
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-56jcfc5k.js");
612
612
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
613
613
  }
614
614
  return {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-bfd4xfpp.js";
4
+ } from "./index-4qzeef9h.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-09b9zncg.js";
@@ -1,18 +1,20 @@
1
1
  // @bun
2
2
  import {
3
- DEFAULT_WORKTREE_ISOLATION_CONFIG,
4
3
  ExternalSkillsConfigSchema,
5
4
  GATE_CONFIG_KNOWN_SECTION_KEYS,
6
5
  GateConfigSchema,
7
6
  PluginConfigSchema,
8
- init_constants,
9
7
  init_schema,
10
8
  resolveExternalSkillsConfig
11
- } from "./index-j0kte6gd.js";
9
+ } from "./index-p5kr35wh.js";
12
10
  import {
13
11
  advisoryWarn,
14
12
  init_warning_buffer
15
13
  } from "./index-4rhhvd1a.js";
14
+ import {
15
+ DEFAULT_WORKTREE_ISOLATION_CONFIG,
16
+ init_constants
17
+ } from "./index-3jcyn8g6.js";
16
18
  import {
17
19
  MAX_MERGE_DEPTH,
18
20
  deepMerge,
@@ -715,4 +717,4 @@ function resolveWorktreeIsolationConfig(config) {
715
717
  // src/config/index.ts
716
718
  var _internals = { loadPluginConfigWithMeta };
717
719
 
718
- export { loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader, resolveWorktreeIsolationConfig, _internals };
720
+ export { resolveWorktreeIsolationConfig, loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader, _internals };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-bfd4xfpp.js";
4
+ } from "./index-4qzeef9h.js";
5
5
 
6
6
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
7
7
  import * as fs from "fs";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-bs4m85v1.js";
4
+ } from "./index-5436jxnw.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-hvrrq3f3.js";
7
+ } from "./index-bcmrg4t4.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,61 +84,63 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-340chr1e.js";
88
- import"./index-m0ynxkaa.js";
89
- import"./index-2pxk6qg4.js";
90
- import"./index-j92ser8n.js";
91
- import"./index-7pnvf04s.js";
87
+ } from "./index-dwargd10.js";
88
+ import"./index-vm4xw9z3.js";
89
+ import"./index-kb7qy7an.js";
90
+ import"./index-a01r818w.js";
91
+ import"./index-cggqh2dz.js";
92
92
  import"./index-4905hd2m.js";
93
93
  import"./index-134d35c1.js";
94
- import"./index-qqkw794p.js";
95
- import"./index-ckdva4rs.js";
96
- import"./index-b0eva00y.js";
94
+ import"./index-yf30m841.js";
95
+ import"./index-f52jt0am.js";
96
+ import"./index-36v55ryg.js";
97
97
  import"./index-dg1njnms.js";
98
98
  import"./index-c8s9a3zh.js";
99
99
  import"./index-9ss2m4rs.js";
100
- import"./index-ryqnn3nv.js";
101
- import"./index-3xbx305x.js";
102
- import"./index-jgkjxpdh.js";
103
- import"./index-3m7kpnqf.js";
100
+ import"./index-y6a7gjtj.js";
101
+ import"./index-mrtms113.js";
102
+ import"./index-gxxxmajn.js";
103
+ import"./index-30pg2rs3.js";
104
104
  import"./index-rtry5xyf.js";
105
- import"./index-02cqjna3.js";
106
- import"./index-8gw8p7yh.js";
105
+ import"./index-p9ngg568.js";
106
+ import"./index-rv7s2k9y.js";
107
107
  import"./index-ae75rja9.js";
108
108
  import"./index-dzyjb33e.js";
109
109
  import"./index-ey29aap6.js";
110
- import"./index-9c3gf2wd.js";
110
+ import"./index-wygxzvtf.js";
111
111
  import"./index-k5jrywpr.js";
112
112
  import"./index-n832052r.js";
113
113
  import {
114
- AGENT_TOOL_MAP,
115
- ORCHESTRATOR_NAME,
116
- init_constants,
117
114
  init_schema,
118
115
  stripKnownSwarmPrefix
119
- } from "./index-j0kte6gd.js";
116
+ } from "./index-p5kr35wh.js";
120
117
  import"./index-bk5tah7q.js";
121
118
  import"./index-8fwhhayc.js";
122
119
  import"./index-q1exe2b3.js";
120
+ import"./index-tcn457d5.js";
123
121
  import"./index-vg3yx648.js";
124
122
  import"./index-wxyxf0bd.js";
125
123
  import"./index-1kz6da87.js";
126
- import"./index-73dfyfhq.js";
124
+ import"./index-x20cgr2q.js";
127
125
  import"./index-b8zgtz81.js";
128
- import"./index-d5psymdk.js";
126
+ import"./index-c9ddxv4k.js";
129
127
  import"./index-4rhhvd1a.js";
130
- import"./index-hdy2nd5h.js";
131
- import"./index-bfd4xfpp.js";
128
+ import {
129
+ AGENT_TOOL_MAP,
130
+ ORCHESTRATOR_NAME,
131
+ init_constants
132
+ } from "./index-3jcyn8g6.js";
133
+ import"./index-45t7w06b.js";
134
+ import"./index-4qzeef9h.js";
132
135
  import"./index-fsrp8wp3.js";
133
136
  import"./index-09b9zncg.js";
134
137
  import"./index-7g4c7s5r.js";
135
- import"./index-7a2hm51h.js";
136
138
  import"./index-bpmtbmy9.js";
139
+ import"./index-7a2hm51h.js";
137
140
  import"./index-z6xqpmqg.js";
138
141
  import"./index-zjygnfay.js";
139
- import"./index-zgwm4ryv.js";
140
- import"./index-y6a7gjtj.js";
141
142
  import"./index-y111zefa.js";
143
+ import"./index-zgwm4ryv.js";
142
144
  import"./index-a76rekgs.js";
143
145
 
144
146
  // src/commands/index.ts
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-jgkjxpdh.js";
5
+ } from "./index-gxxxmajn.js";
6
6
  import {
7
7
  computeOutcomeSignal,
8
8
  readKnowledge,
9
9
  resolveHiveKnowledgePath,
10
10
  resolveSwarmKnowledgePath,
11
11
  transactKnowledge
12
- } from "./index-02cqjna3.js";
12
+ } from "./index-p9ngg568.js";
13
13
  import {
14
14
  effectiveRetrievalOutcomes,
15
15
  readKnowledgeCounterRollups
16
- } from "./index-8gw8p7yh.js";
16
+ } from "./index-rv7s2k9y.js";
17
17
  import {
18
18
  init_knowledge_types,
19
19
  isActiveStatus
package/dist/cli/index.js CHANGED
@@ -6,60 +6,62 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-340chr1e.js";
10
- import"./index-m0ynxkaa.js";
11
- import"./index-2pxk6qg4.js";
12
- import"./index-j92ser8n.js";
13
- import"./index-7pnvf04s.js";
9
+ } from "./index-dwargd10.js";
10
+ import"./index-vm4xw9z3.js";
11
+ import"./index-kb7qy7an.js";
12
+ import"./index-a01r818w.js";
13
+ import"./index-cggqh2dz.js";
14
14
  import"./index-4905hd2m.js";
15
15
  import"./index-134d35c1.js";
16
- import"./index-qqkw794p.js";
17
- import"./index-ckdva4rs.js";
18
- import"./index-b0eva00y.js";
16
+ import"./index-yf30m841.js";
17
+ import"./index-f52jt0am.js";
18
+ import"./index-36v55ryg.js";
19
19
  import"./index-dg1njnms.js";
20
20
  import"./index-c8s9a3zh.js";
21
21
  import"./index-9ss2m4rs.js";
22
- import"./index-ryqnn3nv.js";
23
- import"./index-3xbx305x.js";
24
- import"./index-jgkjxpdh.js";
25
- import"./index-3m7kpnqf.js";
22
+ import"./index-y6a7gjtj.js";
23
+ import"./index-mrtms113.js";
24
+ import"./index-gxxxmajn.js";
25
+ import"./index-30pg2rs3.js";
26
26
  import"./index-rtry5xyf.js";
27
- import"./index-02cqjna3.js";
28
- import"./index-8gw8p7yh.js";
27
+ import"./index-p9ngg568.js";
28
+ import"./index-rv7s2k9y.js";
29
29
  import"./index-ae75rja9.js";
30
30
  import"./index-dzyjb33e.js";
31
31
  import"./index-ey29aap6.js";
32
- import"./index-9c3gf2wd.js";
32
+ import"./index-wygxzvtf.js";
33
33
  import"./index-k5jrywpr.js";
34
34
  import"./index-n832052r.js";
35
35
  import {
36
- DEFAULT_AGENT_CONFIGS,
37
- init_constants,
38
36
  init_package,
39
37
  package_default
40
- } from "./index-j0kte6gd.js";
38
+ } from "./index-p5kr35wh.js";
41
39
  import"./index-bk5tah7q.js";
42
40
  import"./index-8fwhhayc.js";
43
41
  import"./index-q1exe2b3.js";
42
+ import"./index-tcn457d5.js";
44
43
  import"./index-vg3yx648.js";
45
44
  import"./index-wxyxf0bd.js";
46
45
  import"./index-1kz6da87.js";
47
- import"./index-73dfyfhq.js";
46
+ import"./index-x20cgr2q.js";
48
47
  import"./index-b8zgtz81.js";
49
- import"./index-d5psymdk.js";
48
+ import"./index-c9ddxv4k.js";
50
49
  import"./index-4rhhvd1a.js";
51
- import"./index-hdy2nd5h.js";
52
- import"./index-bfd4xfpp.js";
50
+ import {
51
+ DEFAULT_AGENT_CONFIGS,
52
+ init_constants
53
+ } from "./index-3jcyn8g6.js";
54
+ import"./index-45t7w06b.js";
55
+ import"./index-4qzeef9h.js";
53
56
  import"./index-fsrp8wp3.js";
54
57
  import"./index-09b9zncg.js";
55
58
  import"./index-7g4c7s5r.js";
56
- import"./index-7a2hm51h.js";
57
59
  import"./index-bpmtbmy9.js";
60
+ import"./index-7a2hm51h.js";
58
61
  import"./index-z6xqpmqg.js";
59
62
  import"./index-zjygnfay.js";
60
- import"./index-zgwm4ryv.js";
61
- import"./index-y6a7gjtj.js";
62
63
  import"./index-y111zefa.js";
64
+ import"./index-zgwm4ryv.js";
63
65
  import"./index-a76rekgs.js";
64
66
 
65
67
  // src/cli/index.ts
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-ckdva4rs.js";
12
- import"./index-02cqjna3.js";
13
- import"./index-8gw8p7yh.js";
11
+ } from "./index-f52jt0am.js";
12
+ import"./index-p9ngg568.js";
13
+ import"./index-rv7s2k9y.js";
14
14
  import"./index-ae75rja9.js";
15
15
  import"./index-dzyjb33e.js";
16
16
  import"./index-ey29aap6.js";
@@ -19,8 +19,8 @@ import"./index-fsrp8wp3.js";
19
19
  import"./index-09b9zncg.js";
20
20
  import"./index-7g4c7s5r.js";
21
21
  import"./index-7a2hm51h.js";
22
- import"./index-zgwm4ryv.js";
23
22
  import"./index-y111zefa.js";
23
+ import"./index-zgwm4ryv.js";
24
24
  import"./index-a76rekgs.js";
25
25
  export {
26
26
  readRecentEscalations,
@@ -26,7 +26,7 @@ import {
26
26
  resolveKnowledgeCounterBaselinePath,
27
27
  resolveKnowledgeEventsPath,
28
28
  resolveLegacyApplicationLogPath
29
- } from "./index-8gw8p7yh.js";
29
+ } from "./index-rv7s2k9y.js";
30
30
  import"./index-ae75rja9.js";
31
31
  import"./index-dzyjb33e.js";
32
32
  import"./index-ey29aap6.js";
@@ -34,8 +34,8 @@ import"./index-fsrp8wp3.js";
34
34
  import"./index-09b9zncg.js";
35
35
  import"./index-7g4c7s5r.js";
36
36
  import"./index-7a2hm51h.js";
37
- import"./index-zgwm4ryv.js";
38
37
  import"./index-y111zefa.js";
38
+ import"./index-zgwm4ryv.js";
39
39
  import"./index-a76rekgs.js";
40
40
  export {
41
41
  resolveLegacyApplicationLogPath,
@@ -18,8 +18,8 @@ import"./index-fsrp8wp3.js";
18
18
  import"./index-09b9zncg.js";
19
19
  import"./index-7g4c7s5r.js";
20
20
  import"./index-7a2hm51h.js";
21
- import"./index-zgwm4ryv.js";
22
21
  import"./index-y111zefa.js";
22
+ import"./index-zgwm4ryv.js";
23
23
  import"./index-a76rekgs.js";
24
24
  export {
25
25
  writeLinkPointer,
@@ -41,7 +41,7 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-02cqjna3.js";
44
+ } from "./index-p9ngg568.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
@@ -52,8 +52,8 @@ import"./index-fsrp8wp3.js";
52
52
  import"./index-09b9zncg.js";
53
53
  import"./index-7g4c7s5r.js";
54
54
  import"./index-7a2hm51h.js";
55
- import"./index-zgwm4ryv.js";
56
55
  import"./index-y111zefa.js";
56
+ import"./index-zgwm4ryv.js";
57
57
  import"./index-a76rekgs.js";
58
58
  export {
59
59
  wordBigrams,
@@ -23,11 +23,11 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-jgkjxpdh.js";
27
- import"./index-3m7kpnqf.js";
26
+ } from "./index-gxxxmajn.js";
27
+ import"./index-30pg2rs3.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-02cqjna3.js";
30
- import"./index-8gw8p7yh.js";
29
+ import"./index-p9ngg568.js";
30
+ import"./index-rv7s2k9y.js";
31
31
  import"./index-ae75rja9.js";
32
32
  import"./index-dzyjb33e.js";
33
33
  import"./index-ey29aap6.js";
@@ -36,8 +36,8 @@ import"./index-fsrp8wp3.js";
36
36
  import"./index-09b9zncg.js";
37
37
  import"./index-7g4c7s5r.js";
38
38
  import"./index-7a2hm51h.js";
39
- import"./index-zgwm4ryv.js";
40
39
  import"./index-y111zefa.js";
40
+ import"./index-zgwm4ryv.js";
41
41
  import"./index-a76rekgs.js";
42
42
  export {
43
43
  validateSkillPath,
@@ -40,17 +40,17 @@ import {
40
40
  sweepStaleDelegations,
41
41
  updateCoderSettlement,
42
42
  writeDelegationFallback
43
- } from "./index-hdy2nd5h.js";
44
- import"./index-bfd4xfpp.js";
43
+ } from "./index-45t7w06b.js";
44
+ import"./index-4qzeef9h.js";
45
45
  import"./index-fsrp8wp3.js";
46
46
  import"./index-09b9zncg.js";
47
47
  import"./index-7g4c7s5r.js";
48
- import"./index-7a2hm51h.js";
49
48
  import"./index-bpmtbmy9.js";
49
+ import"./index-7a2hm51h.js";
50
50
  import"./index-z6xqpmqg.js";
51
51
  import"./index-zjygnfay.js";
52
- import"./index-zgwm4ryv.js";
53
52
  import"./index-y111zefa.js";
53
+ import"./index-zgwm4ryv.js";
54
54
  import"./index-a76rekgs.js";
55
55
  export {
56
56
  writeDelegationFallback,
@@ -9,17 +9,17 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-3xbx305x.js";
13
- import"./index-bfd4xfpp.js";
12
+ } from "./index-tcn457d5.js";
13
+ import"./index-4qzeef9h.js";
14
14
  import"./index-fsrp8wp3.js";
15
15
  import"./index-09b9zncg.js";
16
16
  import"./index-7g4c7s5r.js";
17
- import"./index-7a2hm51h.js";
18
17
  import"./index-bpmtbmy9.js";
18
+ import"./index-7a2hm51h.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-zjygnfay.js";
21
- import"./index-zgwm4ryv.js";
22
21
  import"./index-y111zefa.js";
22
+ import"./index-zgwm4ryv.js";
23
23
  import"./index-a76rekgs.js";
24
24
  export {
25
25
  updateSnapshot,
@@ -4,8 +4,8 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-b0eva00y.js";
8
- import"./index-02cqjna3.js";
7
+ } from "./index-36v55ryg.js";
8
+ import"./index-p9ngg568.js";
9
9
  import"./index-ae75rja9.js";
10
10
  import"./index-dzyjb33e.js";
11
11
  import"./index-ey29aap6.js";
@@ -14,8 +14,8 @@ import"./index-fsrp8wp3.js";
14
14
  import"./index-09b9zncg.js";
15
15
  import"./index-7g4c7s5r.js";
16
16
  import"./index-7a2hm51h.js";
17
- import"./index-zgwm4ryv.js";
18
17
  import"./index-y111zefa.js";
18
+ import"./index-zgwm4ryv.js";
19
19
  import"./index-a76rekgs.js";
20
20
  export {
21
21
  getScanStatus,
@@ -93,8 +93,9 @@ import {
93
93
  resolveGeneratedAgentRole,
94
94
  resolveGuardrailsConfig,
95
95
  stripKnownSwarmPrefix
96
- } from "./index-j0kte6gd.js";
96
+ } from "./index-p5kr35wh.js";
97
97
  import"./index-bk5tah7q.js";
98
+ import"./index-3jcyn8g6.js";
98
99
  import"./index-bpmtbmy9.js";
99
100
  import"./index-zjygnfay.js";
100
101
  import"./index-a76rekgs.js";
@@ -17,10 +17,10 @@ import"./index-wxyxf0bd.js";
17
17
  import"./index-1kz6da87.js";
18
18
  import"./index-09b9zncg.js";
19
19
  import"./index-7g4c7s5r.js";
20
- import"./index-7a2hm51h.js";
21
20
  import"./index-bpmtbmy9.js";
22
- import"./index-zgwm4ryv.js";
21
+ import"./index-7a2hm51h.js";
23
22
  import"./index-y111zefa.js";
23
+ import"./index-zgwm4ryv.js";
24
24
  import"./index-a76rekgs.js";
25
25
  export {
26
26
  writeScopeToDisk,
@@ -33,12 +33,12 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-qqkw794p.js";
37
- import"./index-jgkjxpdh.js";
38
- import"./index-3m7kpnqf.js";
36
+ } from "./index-yf30m841.js";
37
+ import"./index-gxxxmajn.js";
38
+ import"./index-30pg2rs3.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-02cqjna3.js";
41
- import"./index-8gw8p7yh.js";
40
+ import"./index-p9ngg568.js";
41
+ import"./index-rv7s2k9y.js";
42
42
  import"./index-ae75rja9.js";
43
43
  import"./index-dzyjb33e.js";
44
44
  import"./index-ey29aap6.js";
@@ -48,8 +48,8 @@ import"./index-fsrp8wp3.js";
48
48
  import"./index-09b9zncg.js";
49
49
  import"./index-7g4c7s5r.js";
50
50
  import"./index-7a2hm51h.js";
51
- import"./index-zgwm4ryv.js";
52
51
  import"./index-y111zefa.js";
52
+ import"./index-zgwm4ryv.js";
53
53
  import"./index-a76rekgs.js";
54
54
  export {
55
55
  writeEvalStub,
@@ -1,26 +1,26 @@
1
1
  // @bun
2
2
  import {
3
3
  scanWorktreeProvisioningOwnersForRecovery
4
- } from "./index-73dfyfhq.js";
4
+ } from "./index-x20cgr2q.js";
5
5
  import {
6
6
  scanWorktreeMergeFailuresForRecovery
7
7
  } from "./index-b8zgtz81.js";
8
8
  import {
9
9
  scanDelegationFallbacksForRecovery,
10
10
  scanDelegationsForRecovery
11
- } from "./index-hdy2nd5h.js";
12
- import"./index-bfd4xfpp.js";
11
+ } from "./index-45t7w06b.js";
12
+ import"./index-4qzeef9h.js";
13
13
  import"./index-fsrp8wp3.js";
14
14
  import"./index-09b9zncg.js";
15
15
  import"./index-7g4c7s5r.js";
16
- import"./index-7a2hm51h.js";
17
16
  import"./index-bpmtbmy9.js";
17
+ import"./index-7a2hm51h.js";
18
18
  import"./index-z6xqpmqg.js";
19
19
  import"./index-zjygnfay.js";
20
- import"./index-zgwm4ryv.js";
21
20
  import {
22
21
  bunSpawn
23
22
  } from "./index-y111zefa.js";
23
+ import"./index-zgwm4ryv.js";
24
24
  import"./index-a76rekgs.js";
25
25
 
26
26
  // src/hooks/delegation-gate/worktree-collision-ownership.ts
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Handle /swarm approve-plan-critic command.
3
+ *
4
+ * Human-only escape hatch for the ratchet-tighter `critic_pre_plan` execution
5
+ * gate (issue #2012). When the critic returns APPROVED but the mechanical
6
+ * snapshot recorder fails to persist it (verdict-format mismatch, dispatch-
7
+ * signal miss, or a plan.json read race), the gate permanently blocks ALL
8
+ * coder delegations because `critic_pre_plan` defaults to `true` and cannot be
9
+ * disabled. This records a manual `plan_critic_gate` approval snapshot so the
10
+ * gate unblocks, with a distinct `method: 'manual_override'` audit marker.
11
+ *
12
+ * The command is `toolPolicy: 'restricted'` — the agent cannot run it via
13
+ * `swarm_command`; the agent must instead call the `approve_plan_critic` tool
14
+ * (or ask the user to run this command). Both paths funnel into
15
+ * `forceRecordPlanCriticApproval`. The command path sets `user_confirmed: true`
16
+ * (human-initiated); the tool path sets `user_confirmed: false`
17
+ * (agent-initiated) so a self-approve is visible in the audit trail.
18
+ *
19
+ * Mirrors the PR_REVIEW #1898 escape-hatch pattern (`/swarm abort-pr-workflow`).
20
+ */
21
+ export declare function handleApprovePlanCriticCommand(directory: string, args: string[], sessionID: string): Promise<string>;
@@ -551,6 +551,14 @@ export declare const COMMAND_REGISTRY: {
551
551
  readonly category: "utility";
552
552
  readonly toolPolicy: "restricted";
553
553
  };
554
+ readonly 'approve-plan-critic': {
555
+ readonly handler: (ctx: CommandContext) => Promise<string>;
556
+ readonly description: "Record a MANUAL plan-critic approval to unblock the critic_pre_plan execution gate [reason...]";
557
+ readonly args: "[reason...]";
558
+ readonly details: "Human-only escape hatch for the ratchet-tighter critic_pre_plan execution gate (issue #2012). When the critic already returned APPROVED but the mechanical snapshot recorder failed to persist it (verdict-format mismatch, dispatch-signal miss, or a plan.json read race), the gate permanently blocks ALL coder delegations because critic_pre_plan defaults to true and cannot be disabled. Running this records a manual plan_critic_gate approval snapshot so the gate unblocks, with a distinct method: \"manual_override\" audit marker. The agent itself cannot run this command; it must call the approve_plan_critic tool (or ask you to run this command). Both paths funnel into the same forceRecordPlanCriticApproval hook, which requires an active architect session. An audit event is appended to .swarm/events.jsonl. Prefer re-running MODE: CRITIC-GATE first; use this only as an escape hatch when a legitimate APPROVED was lost.";
559
+ readonly category: "utility";
560
+ readonly toolPolicy: "restricted";
561
+ };
554
562
  readonly 'pr-review': {
555
563
  readonly handler: (ctx: CommandContext) => CommandResult;
556
564
  readonly description: "Launch deep PR review with multi-lane analysis [url] [--council]";
@@ -3,6 +3,54 @@
3
3
  * Mirrors CONFIG_DIR in src/cli/index.ts.
4
4
  */
5
5
  export declare function getPluginConfigDir(): string;
6
+ /**
7
+ * The config directory the OpenCode HOST is actually using, honouring
8
+ * `OPENCODE_CONFIG_DIR`.
9
+ *
10
+ * Verbatim host precedence (`C:\OpenCode\opencode.exe`, opencode 1.18.10,
11
+ * offset 107379448):
12
+ *
13
+ * ```js
14
+ * function y(N={}){return{home:G.home,data:G.data,cache:G.cache,
15
+ * config:e.OPENCODE_CONFIG_DIR??G.config, ...}}
16
+ * ```
17
+ *
18
+ * This is deliberately SEPARATE from {@link getPluginConfigDir}, which has
19
+ * shared semantics relied on by `src/cli/index.ts` and
20
+ * `src/services/diagnose-service.ts` for locating plugin caches and lock files.
21
+ * Changing that function's meaning would move those consumers too.
22
+ *
23
+ * Only the worktree-lane permission allowlist uses this: under
24
+ * `OPENCODE_CONFIG_DIR` the two directories differ, and allowlisting the wrong
25
+ * one grants a directory the host is not reading while denying the one it is.
26
+ */
27
+ export declare function getHostConfigDir(): string;
28
+ /**
29
+ * The data directory the OpenCode HOST uses.
30
+ *
31
+ * Verbatim host source (opencode 1.18.10, offset ~107378180):
32
+ * `V = XDG_DATA_HOME || join(homedir(), ".local", "share")`
33
+ * `U = join(V, "opencode")` -> `Global.Path.data`
34
+ *
35
+ * Unlike `config`, the data path has no environment override: the `y()` service
36
+ * factory passes `data: G.data` straight through (offset 107379448).
37
+ *
38
+ * Used by the worktree-lane allowlist to re-grant `<data>/plans`, which the
39
+ * host natively allows to its `plan` agent.
40
+ */
41
+ export declare function getHostDataDir(): string;
42
+ /**
43
+ * Where OpenCode caches URL-sourced skills (`skills.urls`).
44
+ *
45
+ * Both discovery implementations agree on the root:
46
+ * v1 (offset 102988349): `join(Global.Path.cache, "skills")`
47
+ * v2 (offset 103375250): `resolve(cache, "skills", Bun.hash(url))` — a
48
+ * per-URL subdirectory of the same root.
49
+ *
50
+ * Pure path construction, no I/O and no network: the pull itself is the host's
51
+ * job, and the plugin only needs to know where the result lands.
52
+ */
53
+ export declare function getHostSkillCacheDir(): string;
6
54
  /**
7
55
  * All known locations where OpenCode may cache the opencode-swarm plugin.
8
56
  * Order: newest/canonical first so status reporting shows the most relevant