opencode-swarm 7.164.0 → 7.164.1

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 (80) hide show
  1. package/dist/cli/{coder-settlement-84je6bza.js → coder-settlement-w4qk90kh.js} +10 -11
  2. package/dist/cli/{config-doctor-vfze38e1.js → config-doctor-r81bp1nd.js} +3 -3
  3. package/dist/cli/{core-q5hv8e2w.js → core-xfw4s9b9.js} +2 -2
  4. package/dist/cli/{curation-policy-a2zty4br.js → curation-policy-2h37sd6p.js} +4 -5
  5. package/dist/cli/{curator-4pckmmyf.js → curator-7zy6bdmw.js} +33 -36
  6. package/dist/cli/{curator-drift-wy7ejcvw.js → curator-drift-ykrdf08r.js} +4 -5
  7. package/dist/cli/curator-llm-factory-7gjvm4ds.js +66 -0
  8. package/dist/cli/{evidence-summary-service-b15yes21.js → evidence-summary-service-519ny6b1.js} +14 -15
  9. package/dist/cli/{gate-evidence-70h0w4tb.js → gate-evidence-a7st3vbc.js} +6 -7
  10. package/dist/cli/guardrail-explain-ewcm37em.js +67 -0
  11. package/dist/cli/{guardrail-log-7rxbd20p.js → guardrail-log-kp51by1v.js} +7 -8
  12. package/dist/cli/{guardrail-reset-3b4gs357.js → guardrail-reset-reyfwtwn.js} +33 -36
  13. package/dist/cli/{hive-promoter-s80g1gwb.js → hive-promoter-zf2vf5sw.js} +33 -36
  14. package/dist/cli/{index-zbpcpsk0.js → index-1af3rb5n.js} +7 -7
  15. package/dist/cli/{index-xk0kc1py.js → index-2ee2g27m.js} +7427 -2520
  16. package/dist/cli/{index-td6n935w.js → index-2s40e3b0.js} +2 -2
  17. package/dist/cli/{index-9xd073d4.js → index-2yd732fd.js} +7 -1
  18. package/dist/cli/{index-hyq20s2v.js → index-5084szce.js} +11 -11
  19. package/dist/cli/{index-nzrhw31r.js → index-5bza8nxz.js} +2 -2
  20. package/dist/cli/{index-c4pynht5.js → index-6097tx05.js} +1 -1
  21. package/dist/cli/{index-t90gjc0k.js → index-644t46hr.js} +1 -1
  22. package/dist/cli/{index-t5t82jy8.js → index-6ay5zp1v.js} +5 -5
  23. package/dist/cli/{index-ynqp3jb6.js → index-6kd3jnaf.js} +1 -1
  24. package/dist/cli/{index-70bfj3v1.js → index-6t35714n.js} +1 -1
  25. package/dist/cli/{index-nhxaa9j5.js → index-862c0xhc.js} +1 -1
  26. package/dist/cli/{index-4jersar8.js → index-b98r3pyv.js} +4 -4
  27. package/dist/cli/{index-93sepnc9.js → index-dhzsvmx6.js} +1 -1
  28. package/dist/cli/{index-pvgcex0d.js → index-e630pvvw.js} +4 -4
  29. package/dist/cli/{index-3b762978.js → index-f9nfknjg.js} +182 -37
  30. package/dist/cli/{index-c69jbpex.js → index-fwfhbs27.js} +2 -2
  31. package/dist/cli/{index-e3hwzcjv.js → index-h2f21caa.js} +2 -2
  32. package/dist/cli/{index-1hpjwz3s.js → index-hcn69kp0.js} +1 -1
  33. package/dist/cli/{index-4afh2cz7.js → index-hzaw10zh.js} +6 -6
  34. package/dist/cli/{index-wdtckfnf.js → index-j0ajeary.js} +1 -1
  35. package/dist/cli/{index-bm73pych.js → index-jczbtx2x.js} +7 -7
  36. package/dist/cli/{index-tb1k8jya.js → index-k8j7m0e2.js} +1 -1
  37. package/dist/cli/{index-7r9vpkwa.js → index-n1wcq816.js} +3 -3
  38. package/dist/cli/{index-t9rhtvy9.js → index-pmmfhzsp.js} +3 -3
  39. package/dist/cli/{index-fckfgptr.js → index-qbr05tbw.js} +2 -2
  40. package/dist/cli/{index-g64154pd.js → index-r5jn0ah5.js} +2 -2
  41. package/dist/cli/{index-dtn0pne5.js → index-v56mhyhs.js} +1 -1
  42. package/dist/cli/{index-qkk2skff.js → index-vc3zmtxb.js} +35 -38
  43. package/dist/cli/{index-1z4jzwja.js → index-vdgw2k4c.js} +1 -1
  44. package/dist/cli/{index-2s4s9n82.js → index-vkckf2ch.js} +1 -1
  45. package/dist/cli/{index-v3a9rmyh.js → index-vrxx0ea4.js} +4 -4
  46. package/dist/cli/{index-gxd8fwyt.js → index-wnf1ej2q.js} +4 -4
  47. package/dist/cli/{index-9sy65e94.js → index-wv4b01ex.js} +31 -33
  48. package/dist/cli/{index-ma8w6pfp.js → index-x2qmpkth.js} +3 -3
  49. package/dist/cli/{index-0515j0cz.js → index-y2f5s2cf.js} +1 -1
  50. package/dist/cli/{index-12f1tsn2.js → index-yc415pzf.js} +654 -15
  51. package/dist/cli/index.js +33 -36
  52. package/dist/cli/{knowledge-escalator-sttdnwf8.js → knowledge-escalator-wwkbsgvw.js} +12 -13
  53. package/dist/cli/{knowledge-events-4h88stj7.js → knowledge-events-vmmgwfmc.js} +10 -11
  54. package/dist/cli/{knowledge-link-yykmxdyw.js → knowledge-link-bvra01zv.js} +3 -4
  55. package/dist/cli/{knowledge-store-j832fxpx.js → knowledge-store-6wbagbqm.js} +4 -5
  56. package/dist/cli/{knowledge-validator-edbg761g.js → knowledge-validator-q1z4fmeg.js} +6 -7
  57. package/dist/cli/{model-preflight-c3mc8njg.js → model-preflight-1ecjbg73.js} +1 -1
  58. package/dist/cli/{pending-delegations-sphntrs0.js → pending-delegations-cq5g4rr4.js} +4 -6
  59. package/dist/cli/{pr-subscriptions-1a4gcnzv.js → pr-subscriptions-m0z5wxkb.js} +4 -5
  60. package/dist/cli/pr-workflow-gate-0zvp0qs9.js +221 -0
  61. package/dist/cli/{runner-d294h1by.js → runner-s55g5233.js} +4 -5
  62. package/dist/cli/{scan-cursor-5frvp7nb.js → scan-cursor-z6zepy3r.js} +5 -6
  63. package/dist/cli/{schema-9xkt5hvd.js → schema-skf0ckh4.js} +2 -2
  64. package/dist/cli/{scope-persistence-gk55h3sp.js → scope-persistence-f6davq7x.js} +8 -9
  65. package/dist/cli/{skill-generator-sxxf7jbb.js → skill-generator-wqbazppk.js} +14 -15
  66. package/dist/cli/{worktree-collision-ownership-7kj2ryt1.js → worktree-collision-ownership-c0030qbm.js} +5 -7
  67. package/dist/cli/{worktree-isolation-67fs6rz9.js → worktree-isolation-09qq8066.js} +33 -36
  68. package/dist/hooks/delegation-gate.d.ts +1 -0
  69. package/dist/hooks/pr-workflow-gate.d.ts +14 -8
  70. package/dist/hooks/pr-workflow-response-gate.d.ts +9 -12
  71. package/dist/index.js +53 -52
  72. package/dist/pr-review/authorization.d.ts +18 -12
  73. package/dist/tools/authorize-pr-review-reentry.d.ts +12 -8
  74. package/package.json +1 -1
  75. package/dist/cli/authorization-vstrh7ra.js +0 -23
  76. package/dist/cli/curator-llm-factory-msbj3hpn.js +0 -69
  77. package/dist/cli/guardrail-explain-kksdy032.js +0 -70
  78. package/dist/cli/index-ed5ykebp.js +0 -151
  79. package/dist/cli/index-mmngnxev.js +0 -883
  80. package/dist/cli/index-w7ekntej.js +0 -643
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-3f7hqtgg.js";
6
6
  import {
7
7
  removeWorktreeProvisioningOwner
8
- } from "./index-fckfgptr.js";
8
+ } from "./index-qbr05tbw.js";
9
9
  import {
10
10
  SOURCE_WORKTREE_GONE_STAGE,
11
11
  getTaskWorkflowSnapshot,
@@ -13,19 +13,19 @@ import {
13
13
  reconcileLandedMerge,
14
14
  withTaskEvidenceTransaction,
15
15
  writeWorkflowWalFile
16
- } from "./index-7r9vpkwa.js";
16
+ } from "./index-n1wcq816.js";
17
17
  import {
18
18
  canonicalRootKeyFresh
19
19
  } from "./index-ddszzne4.js";
20
20
  import {
21
21
  appendCoreEventSync
22
- } from "./index-93sepnc9.js";
22
+ } from "./index-dhzsvmx6.js";
23
23
  import {
24
24
  isPathWithinDeclaredScope
25
25
  } from "./index-556ja8an.js";
26
26
  import {
27
27
  validateSwarmPath
28
- } from "./index-dtn0pne5.js";
28
+ } from "./index-v56mhyhs.js";
29
29
  import {
30
30
  init_git_executable,
31
31
  resolveGitExecutable
@@ -478,7 +478,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
478
478
  awaitingMergeByCallID,
479
479
  cleanupStandardWorktreeForCallId,
480
480
  standardWorktreeByCallID
481
- } = await import("./worktree-isolation-67fs6rz9.js");
481
+ } = await import("./worktree-isolation-09qq8066.js");
482
482
  standardWorktreeByCallID.delete(descriptor.callID);
483
483
  if (hasResidue)
484
484
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -602,7 +602,7 @@ async function recoverCoderSettlement(directory, taskId) {
602
602
  awaitingMergeByCallID,
603
603
  finishStandardWorktreeDispatch,
604
604
  standardWorktreeByCallID
605
- } = await import("./worktree-isolation-67fs6rz9.js");
605
+ } = await import("./worktree-isolation-09qq8066.js");
606
606
  const descriptor = wal.worktree;
607
607
  const reconstructedDispatch = {
608
608
  callID: descriptor.callID,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteSwarmFile
4
- } from "./index-3b762978.js";
4
+ } from "./index-f9nfknjg.js";
5
5
  import {
6
6
  pseudonymousRef,
7
7
  resolveLineageSalt,
@@ -6,17 +6,17 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-ynqp3jb6.js";
9
+ } from "./index-6kd3jnaf.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-70bfj3v1.js";
12
+ } from "./index-6t35714n.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
16
16
  } from "./index-bk5tah7q.js";
17
17
  import {
18
18
  readCachedParsedFile
19
- } from "./index-ed5ykebp.js";
19
+ } from "./index-f9nfknjg.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-7g4c7s5r.js";
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-4h88stj7.js");
716
+ } = await import("./knowledge-events-vmmgwfmc.js");
717
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
718
718
  const flagIds = new Set;
719
719
  for (const e of atFloor) {
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
780
780
  });
781
781
  }
782
782
  if (action === "quarantine" && toQuarantine.length > 0) {
783
- const { quarantineEntry } = await import("./knowledge-validator-edbg761g.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-9xkt5hvd.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-q1z4fmeg.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-skf0ckh4.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-v3a9rmyh.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-vrxx0ea4.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-ynqp3jb6.js";
10
+ } from "./index-6kd3jnaf.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-nzrhw31r.js";
5
+ } from "./index-5bza8nxz.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
9
9
  } from "./index-556ja8an.js";
10
10
  import {
11
11
  validateSwarmPath
12
- } from "./index-dtn0pne5.js";
12
+ } from "./index-v56mhyhs.js";
13
13
  import {
14
14
  bunSpawn,
15
15
  classifySpawnFailure
@@ -26,7 +26,7 @@ import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-70bfj3v1.js";
29
+ } from "./index-6t35714n.js";
30
30
  import {
31
31
  assertProjectRoot
32
32
  } from "./index-36nt17m8.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-nhxaa9j5.js";
5
+ } from "./index-862c0xhc.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-td6n935w.js";
8
+ } from "./index-2s40e3b0.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
12
- } from "./index-9xd073d4.js";
12
+ } from "./index-2yd732fd.js";
13
13
 
14
14
  // src/config/index.ts
15
15
  init_constants();
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-dtn0pne5.js";
4
+ } from "./index-v56mhyhs.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-3b762978.js";
7
+ } from "./index-f9nfknjg.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -6,11 +6,11 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-td6n935w.js";
9
+ } from "./index-2s40e3b0.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
13
- } from "./index-9xd073d4.js";
13
+ } from "./index-2yd732fd.js";
14
14
  import {
15
15
  log
16
16
  } from "./index-zgwm4ryv.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-r3mvsbtq.js";
8
8
  import {
9
9
  readCachedTextFile
10
- } from "./index-ed5ykebp.js";
10
+ } from "./index-f9nfknjg.js";
11
11
  import {
12
12
  warn
13
13
  } from "./index-zgwm4ryv.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-c69jbpex.js";
4
+ } from "./index-fwfhbs27.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-t90gjc0k.js";
7
+ } from "./index-644t46hr.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,72 +94,69 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-xk0kc1py.js";
98
- import"./index-c4pynht5.js";
99
- import"./index-9sy65e94.js";
100
- import"./index-g64154pd.js";
101
- import"./index-hyq20s2v.js";
102
- import"./index-2s4s9n82.js";
97
+ } from "./index-2ee2g27m.js";
98
+ import"./index-6097tx05.js";
99
+ import"./index-wv4b01ex.js";
100
+ import"./index-r5jn0ah5.js";
101
+ import"./index-5084szce.js";
102
+ import"./index-vkckf2ch.js";
103
103
  import"./index-txdagbh7.js";
104
104
  import"./index-3146wmgv.js";
105
- import"./index-pvgcex0d.js";
106
- import"./index-t5t82jy8.js";
107
- import"./index-e3hwzcjv.js";
105
+ import"./index-e630pvvw.js";
106
+ import"./index-6ay5zp1v.js";
107
+ import"./index-h2f21caa.js";
108
108
  import"./index-70ha9e09.js";
109
- import"./index-0515j0cz.js";
110
- import"./index-1hpjwz3s.js";
109
+ import"./index-y2f5s2cf.js";
110
+ import"./index-hcn69kp0.js";
111
111
  import"./index-zaab1wz9.js";
112
- import"./index-ma8w6pfp.js";
112
+ import"./index-x2qmpkth.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-4afh2cz7.js";
114
+ import"./index-hzaw10zh.js";
115
115
  import"./index-3f7hqtgg.js";
116
- import"./index-fckfgptr.js";
117
- import"./index-gxd8fwyt.js";
118
- import"./index-tb1k8jya.js";
116
+ import"./index-qbr05tbw.js";
117
+ import"./index-wnf1ej2q.js";
118
+ import"./index-k8j7m0e2.js";
119
119
  import"./index-rtry5xyf.js";
120
- import"./index-7r9vpkwa.js";
121
- import"./index-nzrhw31r.js";
122
- import"./index-12f1tsn2.js";
120
+ import"./index-n1wcq816.js";
121
+ import"./index-5bza8nxz.js";
122
+ import"./index-yc415pzf.js";
123
123
  import"./index-ddszzne4.js";
124
- import"./index-mmngnxev.js";
125
- import"./index-w7ekntej.js";
126
- import"./index-4jersar8.js";
127
- import"./index-1z4jzwja.js";
128
- import"./index-93sepnc9.js";
124
+ import"./index-b98r3pyv.js";
125
+ import"./index-vdgw2k4c.js";
126
+ import"./index-dhzsvmx6.js";
129
127
  import"./index-556ja8an.js";
130
128
  import"./index-4fwbbad3.js";
131
129
  import"./index-b43rt5ph.js";
132
130
  import"./index-q7sjgr1y.js";
133
- import"./index-bm73pych.js";
134
- import"./index-zbpcpsk0.js";
135
- import"./index-t9rhtvy9.js";
131
+ import"./index-jczbtx2x.js";
132
+ import"./index-1af3rb5n.js";
133
+ import"./index-pmmfhzsp.js";
136
134
  import"./index-zg9d392c.js";
137
135
  import"./index-n832052r.js";
138
- import"./index-dtn0pne5.js";
136
+ import"./index-v56mhyhs.js";
139
137
  import"./index-z6xqpmqg.js";
140
138
  import"./index-r3mvsbtq.js";
141
- import"./index-nhxaa9j5.js";
139
+ import"./index-862c0xhc.js";
142
140
  import {
143
141
  init_schema,
144
142
  stripKnownSwarmPrefix
145
- } from "./index-td6n935w.js";
143
+ } from "./index-2s40e3b0.js";
146
144
  import"./index-9e6fdz2h.js";
147
145
  import"./index-4rhhvd1a.js";
148
- import"./index-wdtckfnf.js";
146
+ import"./index-j0ajeary.js";
149
147
  import {
150
148
  AGENT_TOOL_MAP,
151
149
  ORCHESTRATOR_NAME,
152
150
  init_constants
153
- } from "./index-9xd073d4.js";
151
+ } from "./index-2yd732fd.js";
154
152
  import"./index-zjygnfay.js";
155
153
  import"./index-ae75rja9.js";
156
- import"./index-ynqp3jb6.js";
157
- import"./index-70bfj3v1.js";
154
+ import"./index-6kd3jnaf.js";
155
+ import"./index-6t35714n.js";
158
156
  import"./index-bk5tah7q.js";
159
157
  import"./index-36nt17m8.js";
160
- import"./index-3b762978.js";
158
+ import"./index-f9nfknjg.js";
161
159
  import"./index-1b1h770t.js";
162
- import"./index-ed5ykebp.js";
163
160
  import"./index-7g4c7s5r.js";
164
161
  import"./index-bpmtbmy9.js";
165
162
  import"./index-zgwm4ryv.js";
@@ -4,7 +4,7 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-nhxaa9j5.js";
7
+ } from "./index-862c0xhc.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
@@ -9,7 +9,7 @@ import {
9
9
  } from "./index-txdagbh7.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-70bfj3v1.js";
12
+ } from "./index-6t35714n.js";
13
13
  import {
14
14
  assertProjectRoot,
15
15
  withEvidenceLock
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-t9rhtvy9.js";
5
+ } from "./index-pmmfhzsp.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -42,7 +42,7 @@ import {
42
42
  loadPluginConfig,
43
43
  loadPluginConfigWithMeta,
44
44
  loadPluginConfigWithMetaAsync
45
- } from "./index-nhxaa9j5.js";
45
+ } from "./index-862c0xhc.js";
46
46
  import {
47
47
  AUTO_REVIEW_V8_BURN_IN_DECISION,
48
48
  AgentOverrideConfigSchema,
@@ -64,7 +64,7 @@ import {
64
64
  TurboConfigSchema,
65
65
  WorktreeIsolationConfigSchema,
66
66
  resolveAutoReviewConfig
67
- } from "./index-td6n935w.js";
67
+ } from "./index-2s40e3b0.js";
68
68
  import"./index-9e6fdz2h.js";
69
69
  import"./index-4rhhvd1a.js";
70
70
  import {
@@ -76,7 +76,7 @@ import {
76
76
  QA_AGENTS,
77
77
  isQAAgent,
78
78
  isSubagent
79
- } from "./index-9xd073d4.js";
79
+ } from "./index-2yd732fd.js";
80
80
  import"./index-zjygnfay.js";
81
81
  import"./index-bk5tah7q.js";
82
82
  import"./index-bpmtbmy9.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-tb1k8jya.js";
4
+ } from "./index-k8j7m0e2.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-bm73pych.js";
12
+ } from "./index-jczbtx2x.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-ynqp3jb6.js";
15
+ } from "./index-6kd3jnaf.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-70bfj3v1.js";
18
+ } from "./index-6t35714n.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -11,13 +11,13 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-td6n935w.js";
14
+ } from "./index-2s40e3b0.js";
15
15
  import {
16
16
  observeStoreHealth
17
- } from "./index-wdtckfnf.js";
17
+ } from "./index-j0ajeary.js";
18
18
  import {
19
19
  init_constants
20
- } from "./index-9xd073d4.js";
20
+ } from "./index-2yd732fd.js";
21
21
  import {
22
22
  telemetry
23
23
  } from "./index-1b1h770t.js";
@@ -1709,6 +1709,17 @@ var require_picomatch2 = __commonJS((exports, module) => {
1709
1709
  module.exports = picomatch;
1710
1710
  });
1711
1711
 
1712
+ // src/hooks/normalize-tool-name.ts
1713
+ var NAMESPACE_PREFIX_PATTERN = /^[^:]+[:.]/;
1714
+ function normalizeToolName(toolName) {
1715
+ if (!toolName)
1716
+ return;
1717
+ return toolName.replace(NAMESPACE_PREFIX_PATTERN, "");
1718
+ }
1719
+ function normalizeToolNameLowerCase(toolName) {
1720
+ return toolName.replace(NAMESPACE_PREFIX_PATTERN, "").toLowerCase();
1721
+ }
1722
+
1712
1723
  // src/context/zone-classifier.ts
1713
1724
  function classifyFile(filePath) {
1714
1725
  const normalized = filePath.toLowerCase().replace(/\\/g, "/");
@@ -1768,6 +1779,23 @@ function classifyFile(filePath) {
1768
1779
  };
1769
1780
  }
1770
1781
 
1782
+ // src/utils/stable-stringify.ts
1783
+ function stableCanonicalStringify(value) {
1784
+ if (value === undefined)
1785
+ return "null";
1786
+ if (value === null)
1787
+ return "null";
1788
+ if (typeof value !== "object")
1789
+ return JSON.stringify(value);
1790
+ if (Array.isArray(value)) {
1791
+ return `[${value.map((el) => stableCanonicalStringify(el)).join(",")}]`;
1792
+ }
1793
+ const obj = value;
1794
+ const keys = Object.keys(obj).sort();
1795
+ const entries = keys.map((k) => `${JSON.stringify(k)}:${stableCanonicalStringify(obj[k])}`).join(",");
1796
+ return `{${entries}}`;
1797
+ }
1798
+
1771
1799
  // src/hooks/guardrails/file-authority.ts
1772
1800
  import * as fsSync from "fs";
1773
1801
  var import_picomatch = __toESM(require_picomatch2(), 1);
@@ -2109,23 +2137,6 @@ function protectedRoots(projectRoot, additional = []) {
2109
2137
  // src/utils/arg-hash.ts
2110
2138
  var HASH_INPUT_CAP_BYTES = 64 * 1024;
2111
2139
 
2112
- // src/utils/stable-stringify.ts
2113
- function stableCanonicalStringify(value) {
2114
- if (value === undefined)
2115
- return "null";
2116
- if (value === null)
2117
- return "null";
2118
- if (typeof value !== "object")
2119
- return JSON.stringify(value);
2120
- if (Array.isArray(value)) {
2121
- return `[${value.map((el) => stableCanonicalStringify(el)).join(",")}]`;
2122
- }
2123
- const obj = value;
2124
- const keys = Object.keys(obj).sort();
2125
- const entries = keys.map((k) => `${JSON.stringify(k)}:${stableCanonicalStringify(obj[k])}`).join(",");
2126
- return `{${entries}}`;
2127
- }
2128
-
2129
2140
  // src/hooks/guardrails/file-authority.ts
2130
2141
  var pathNormalizationCache = new QuickLRU({
2131
2142
  maxSize: 500
@@ -2641,19 +2652,6 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options =
2641
2652
 
2642
2653
  // src/hooks/guardrails/helpers.ts
2643
2654
  init_constants();
2644
-
2645
- // src/hooks/normalize-tool-name.ts
2646
- var NAMESPACE_PREFIX_PATTERN = /^[^:]+[:.]/;
2647
- function normalizeToolName(toolName) {
2648
- if (!toolName)
2649
- return;
2650
- return toolName.replace(NAMESPACE_PREFIX_PATTERN, "");
2651
- }
2652
- function normalizeToolNameLowerCase(toolName) {
2653
- return toolName.replace(NAMESPACE_PREFIX_PATTERN, "").toLowerCase();
2654
- }
2655
-
2656
- // src/hooks/guardrails/helpers.ts
2657
2655
  function isInDeclaredScope(filePath, scopeEntries, cwd) {
2658
2656
  return isPathWithinDeclaredScope(filePath, scopeEntries, cwd);
2659
2657
  }
@@ -1,16 +1,16 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-dtn0pne5.js";
4
+ } from "./index-v56mhyhs.js";
5
5
  import {
6
6
  observeStoreHealth
7
- } from "./index-wdtckfnf.js";
7
+ } from "./index-j0ajeary.js";
8
8
  import {
9
9
  withEvidenceLock
10
10
  } from "./index-36nt17m8.js";
11
11
  import {
12
12
  atomicWriteSwarmFileSync
13
- } from "./index-3b762978.js";
13
+ } from "./index-f9nfknjg.js";
14
14
  import {
15
15
  telemetry
16
16
  } from "./index-1b1h770t.js";
@@ -6,7 +6,7 @@ import {
6
6
  canonicalProjectKey,
7
7
  classifyDbWriteError,
8
8
  getProjectDb
9
- } from "./index-1hpjwz3s.js";
9
+ } from "./index-hcn69kp0.js";
10
10
  import {
11
11
  init_logger,
12
12
  log,