opencode-swarm 7.113.2 → 7.113.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 (69) hide show
  1. package/binaries/win32-arm64/.gitkeep +0 -0
  2. package/binaries/win32-x64/.gitkeep +0 -0
  3. package/dist/background/event-bus.d.ts +1 -1
  4. package/dist/background/queue.d.ts +11 -0
  5. package/dist/background/trigger.d.ts +1 -0
  6. package/dist/cli/{capability-probe-sh9bwh39.js → capability-probe-f1paszww.js} +1 -1
  7. package/dist/cli/{config-doctor-az11cwf5.js → config-doctor-xbdfrbwt.js} +2 -2
  8. package/dist/cli/{core-f4cbabe7.js → core-zg8s1jwx.js} +2 -2
  9. package/dist/cli/{curator-drift-jvs1v6em.js → curator-drift-c0by7063.js} +2 -2
  10. package/dist/cli/curator-llm-factory-b3g0g0cd.js +41 -0
  11. package/dist/cli/{curator-9s04amtf.js → curator-nh9raf1a.js} +26 -22
  12. package/dist/cli/{dispatch-wst7bypk.js → dispatch-mczsxy5s.js} +2 -2
  13. package/dist/cli/{evidence-summary-service-w1er1ea2.js → evidence-summary-service-8g594znj.js} +7 -7
  14. package/dist/cli/{gate-evidence-9hdwj6tt.js → gate-evidence-vkpqt300.js} +5 -5
  15. package/dist/cli/guardrail-explain-wpv5eskq.js +42 -0
  16. package/dist/cli/{guardrail-log-hysxdwg9.js → guardrail-log-qfc2j0tb.js} +4 -4
  17. package/dist/cli/hive-promoter-c0fd3j02.js +51 -0
  18. package/dist/cli/{index-0dab9w37.js → index-0p660a87.js} +2 -2
  19. package/dist/cli/{index-32bx4kch.js → index-0q7rrh59.js} +4 -4
  20. package/dist/cli/{index-n7rd2rkj.js → index-10v7hrkj.js} +2 -2
  21. package/dist/cli/{index-1ey3dxq7.js → index-147ja18h.js} +0 -4
  22. package/dist/cli/{index-0gf6de8b.js → index-2148358e.js} +45 -1
  23. package/dist/cli/{index-30ejh1tx.js → index-43khae15.js} +3 -3
  24. package/dist/cli/{index-x5g7et24.js → index-4h2ea8h5.js} +2 -2
  25. package/dist/cli/{index-5mkc2f9z.js → index-4sckv7y6.js} +1 -1
  26. package/dist/cli/{index-w51xz4dr.js → index-5yzr9fk6.js} +25 -25
  27. package/dist/cli/{index-q1jaeynn.js → index-80jkseqw.js} +2 -2
  28. package/dist/cli/{index-wvrj16f0.js → index-8fwhhayc.js} +4 -0
  29. package/dist/cli/{index-54dgk0bv.js → index-ct9e0y0q.js} +803 -450
  30. package/dist/cli/{index-afgh75zg.js → index-f6y341yk.js} +14 -11
  31. package/dist/cli/{index-db1fh1fv.js → index-g40r5d08.js} +1 -1
  32. package/dist/cli/{index-8f256d7t.js → index-g6va6n3t.js} +1 -1
  33. package/dist/cli/{index-9fxs0rm1.js → index-ga4ta3cr.js} +1 -1
  34. package/dist/cli/{index-t6wfwdm1.js → index-h7q1bvzm.js} +3 -3
  35. package/dist/cli/{index-h389ed8y.js → index-mr4whary.js} +3 -3
  36. package/dist/cli/{index-g55nzpwn.js → index-n6fa2hhk.js} +1 -1
  37. package/dist/cli/{index-vn263hqt.js → index-pa6t33pt.js} +17 -10
  38. package/dist/cli/{index-h91bv3hy.js → index-qe3v54nb.js} +6 -1
  39. package/dist/cli/{index-hpp2r0sd.js → index-qzqx2qky.js} +3 -3
  40. package/dist/cli/{index-fhmw7evd.js → index-rdwfqhp7.js} +2 -2
  41. package/dist/cli/{index-1rga1vvb.js → index-wh8949ef.js} +1 -1
  42. package/dist/cli/{index-r9fjzr3k.js → index-xbe1wtme.js} +1 -1
  43. package/dist/cli/index.js +22 -22
  44. package/dist/cli/{knowledge-escalator-4gbz527n.js → knowledge-escalator-0q1p6br7.js} +8 -8
  45. package/dist/cli/{knowledge-events-b6x28fgc.js → knowledge-events-9518gzsp.js} +6 -6
  46. package/dist/cli/{knowledge-store-h3cjx4dg.js → knowledge-store-k5rab79h.js} +6 -6
  47. package/dist/cli/{knowledge-validator-q6jw2p0t.js → knowledge-validator-csay9wqj.js} +7 -7
  48. package/dist/cli/{pending-delegations-t047f4a7.js → pending-delegations-ddbkbgxy.js} +4 -4
  49. package/dist/cli/{pr-subscriptions-p8g2rzxd.js → pr-subscriptions-vwv7zm2p.js} +5 -5
  50. package/dist/cli/{schema-qb313fyy.js → schema-e5kd993s.js} +1 -1
  51. package/dist/cli/{scope-persistence-5ccgtebg.js → scope-persistence-fm0gzhnk.js} +2 -2
  52. package/dist/cli/{skill-generator-nnwn4sq0.js → skill-generator-z01sjppf.js} +9 -9
  53. package/dist/cli/{telemetry-jm7t8031.js → telemetry-jny76r83.js} +1 -1
  54. package/dist/commands/registry.d.ts +7 -0
  55. package/dist/config/constants.d.ts +1 -1
  56. package/dist/hooks/curator.d.ts +33 -9
  57. package/dist/hooks/hive-promoter.d.ts +7 -0
  58. package/dist/hooks/knowledge-curator.d.ts +13 -0
  59. package/dist/hooks/messages-transform.d.ts +22 -1
  60. package/dist/hooks/spawn-helper.d.ts +10 -0
  61. package/dist/index.js +208 -206
  62. package/dist/sandbox/capability-probe.d.ts +14 -0
  63. package/dist/sandbox/macos/sandbox-exec-executor.d.ts +5 -0
  64. package/dist/tools/tool-metadata.d.ts +1 -1
  65. package/dist/utils/path-security.d.ts +28 -0
  66. package/package.json +2 -1
  67. package/dist/cli/curator-llm-factory-dwvk7rh0.js +0 -41
  68. package/dist/cli/guardrail-explain-2k271yh4.js +0 -42
  69. package/dist/cli/hive-promoter-0y4pnft4.js +0 -49
@@ -12,7 +12,7 @@ import {
12
12
  import {
13
13
  readSwarmFileAsync,
14
14
  validateSwarmPath
15
- } from "./index-1rga1vvb.js";
15
+ } from "./index-wh8949ef.js";
16
16
  import {
17
17
  readCachedParsedFile
18
18
  } from "./index-jtqkh8jf.js";
@@ -27,22 +27,22 @@ import {
27
27
  readTaskEvidence,
28
28
  readTaskEvidenceRaw,
29
29
  sanitizeTaskId
30
- } from "./index-x5g7et24.js";
30
+ } from "./index-4h2ea8h5.js";
31
31
  import {
32
32
  ZodError,
33
33
  exports_external
34
34
  } from "./index-293f68mj.js";
35
35
  import {
36
36
  withEvidenceLock
37
- } from "./index-5mkc2f9z.js";
37
+ } from "./index-4sckv7y6.js";
38
38
  import {
39
39
  emit
40
- } from "./index-vn263hqt.js";
40
+ } from "./index-pa6t33pt.js";
41
41
  import {
42
42
  bunHash,
43
43
  bunWrite,
44
44
  mergeEnvForChild
45
- } from "./index-h91bv3hy.js";
45
+ } from "./index-qe3v54nb.js";
46
46
  import {
47
47
  __esm,
48
48
  __export,
@@ -265,10 +265,10 @@ function buildSandboxProfile(scopePaths, tempDir, envOverrides) {
265
265
  (allow file-read* (subpath "/sbin"))
266
266
  (allow file-read* (subpath "/lib"))
267
267
  (allow file-read* (subpath "/lib64"))
268
+ (deny file-write*)
268
269
  ${rwAllowLines}
269
270
  ${envLines.join(`
270
- `)}
271
- (deny file-write*)`;
271
+ `)}`;
272
272
  return profile;
273
273
  }
274
274
 
@@ -351,7 +351,8 @@ var init_sandbox_exec_executor = __esm(() => {
351
351
  init_executor();
352
352
  SANDBOX_UNAVAILABLE_CODES = new Set(["ENOENT", "EACCES", "ENOSPC"]);
353
353
  _internals3 = {
354
- probeSandboxExec
354
+ probeSandboxExec,
355
+ buildSandboxProfile
355
356
  };
356
357
  });
357
358
 
@@ -792,7 +793,7 @@ async function _createExecutor() {
792
793
  return null;
793
794
  }
794
795
  async function _createLinuxExecutor() {
795
- const { SandboxCapabilityProbe, isBubblewrapAvailable } = await import("./capability-probe-sh9bwh39.js");
796
+ const { SandboxCapabilityProbe, isBubblewrapAvailable } = await import("./capability-probe-f1paszww.js");
796
797
  await new SandboxCapabilityProbe().detect();
797
798
  if (!isBubblewrapAvailable()) {
798
799
  return null;
@@ -805,7 +806,7 @@ async function _createLinuxExecutor() {
805
806
  }
806
807
  }
807
808
  async function _createMacOSExecutor() {
808
- const { SandboxCapabilityProbe, isSandboxExecAvailable } = await import("./capability-probe-sh9bwh39.js");
809
+ const { SandboxCapabilityProbe, isSandboxExecAvailable } = await import("./capability-probe-f1paszww.js");
809
810
  await new SandboxCapabilityProbe().detect();
810
811
  if (!isSandboxExecAvailable()) {
811
812
  return null;
@@ -818,7 +819,7 @@ async function _createMacOSExecutor() {
818
819
  }
819
820
  }
820
821
  async function _createWindowsExecutor() {
821
- const { SandboxCapabilityProbe, isWindowsSandboxAvailable } = await import("./capability-probe-sh9bwh39.js");
822
+ const { SandboxCapabilityProbe, isWindowsSandboxAvailable } = await import("./capability-probe-f1paszww.js");
822
823
  await new SandboxCapabilityProbe().detect();
823
824
  if (!isWindowsSandboxAvailable()) {
824
825
  return null;
@@ -1543,6 +1544,8 @@ function loadDurableStatus(statusPath) {
1543
1544
  }
1544
1545
  }
1545
1546
  function initDurableStatusPath(projectDir) {
1547
+ if (typeof projectDir !== "string" || projectDir.length === 0)
1548
+ return;
1546
1549
  const nextPath = path5.join(projectDir, ".swarm", "worktree-merge-status.json");
1547
1550
  if (durableStatusPath === nextPath && hasLoaded)
1548
1551
  return;
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-zgwm4ryv.js";
6
6
  import {
7
7
  atomicWriteFile
8
- } from "./index-0dab9w37.js";
8
+ } from "./index-0p660a87.js";
9
9
 
10
10
  // src/hooks/knowledge-link.ts
11
11
  import {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  stripKnownSwarmPrefix
4
- } from "./index-1ey3dxq7.js";
4
+ } from "./index-147ja18h.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-zgwm4ryv.js";
8
8
  import {
9
9
  bunSpawnSync
10
- } from "./index-h91bv3hy.js";
10
+ } from "./index-qe3v54nb.js";
11
11
  import {
12
12
  __export
13
13
  } from "./index-a76rekgs.js";
@@ -4,7 +4,7 @@ import {
4
4
  countEntryViolationsInWindow,
5
5
  readKnowledgeEvents,
6
6
  recordKnowledgeEvent
7
- } from "./index-hpp2r0sd.js";
7
+ } from "./index-qzqx2qky.js";
8
8
  import {
9
9
  jaccardBigram,
10
10
  readKnowledge,
@@ -12,7 +12,7 @@ import {
12
12
  resolveSwarmKnowledgePath,
13
13
  transactKnowledge,
14
14
  wordBigrams
15
- } from "./index-32bx4kch.js";
15
+ } from "./index-0q7rrh59.js";
16
16
  import {
17
17
  isActiveStatus
18
18
  } from "./index-bfwt3abw.js";
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
188
188
  alreadyInactive: true
189
189
  };
190
190
  }
191
- const { quarantineEntry } = await import("./knowledge-validator-q6jw2p0t.js");
191
+ const { quarantineEntry } = await import("./knowledge-validator-csay9wqj.js");
192
192
  await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
193
193
  return { quarantined: true, entryId, contradictionsInWindow: count };
194
194
  } catch {
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-30ejh1tx.js";
5
+ } from "./index-43khae15.js";
6
6
  import {
7
7
  effectiveRetrievalOutcomes,
8
8
  readKnowledgeCounterRollups
9
- } from "./index-hpp2r0sd.js";
9
+ } from "./index-qzqx2qky.js";
10
10
  import {
11
11
  computeOutcomeSignal,
12
12
  readKnowledge,
13
13
  resolveHiveKnowledgePath,
14
14
  resolveSwarmKnowledgePath,
15
15
  transactKnowledge
16
- } from "./index-32bx4kch.js";
16
+ } from "./index-0q7rrh59.js";
17
17
  import {
18
18
  isActiveStatus
19
19
  } from "./index-bfwt3abw.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-vvk2g744.js";
5
5
  import {
6
6
  bunWrite
7
- } from "./index-h91bv3hy.js";
7
+ } from "./index-qe3v54nb.js";
8
8
  import {
9
9
  __toESM
10
10
  } from "./index-a76rekgs.js";
@@ -31,11 +31,14 @@ function initTelemetry(projectDirectory) {
31
31
  fs.mkdirSync(swarmDir, { recursive: true });
32
32
  }
33
33
  const telemetryPath = path.join(swarmDir, "telemetry.jsonl");
34
- _writeStream = createWriteStream(telemetryPath, { flags: "a" });
35
- _writeStream.on("error", () => {
36
- _disabled = true;
37
- _writeStream = null;
34
+ const stream = createWriteStream(telemetryPath, { flags: "a" });
35
+ stream.on("error", () => {
36
+ if (_writeStream === stream) {
37
+ _disabled = true;
38
+ _writeStream = null;
39
+ }
38
40
  });
41
+ _writeStream = stream;
39
42
  } catch {
40
43
  _disabled = true;
41
44
  _writeStream = null;
@@ -51,8 +54,9 @@ function emit(event, data) {
51
54
  event,
52
55
  ...data
53
56
  }) + os.EOL;
54
- _writeStream.write(line, (err) => {
55
- if (err) {
57
+ const stream = _writeStream;
58
+ stream.write(line, (err) => {
59
+ if (err && _writeStream === stream) {
56
60
  _disabled = true;
57
61
  _writeStream = null;
58
62
  }
@@ -89,11 +93,14 @@ function rotateTelemetryIfNeeded(maxBytes = 10 * 1024 * 1024) {
89
93
  fs.renameSync(telemetryPath, rotatedPath);
90
94
  if (_writeStream !== null) {
91
95
  _writeStream.end();
92
- _writeStream = createWriteStream(telemetryPath, { flags: "a" });
93
- _writeStream.on("error", () => {
94
- _disabled = true;
95
- _writeStream = null;
96
+ const stream = createWriteStream(telemetryPath, { flags: "a" });
97
+ stream.on("error", () => {
98
+ if (_writeStream === stream) {
99
+ _disabled = true;
100
+ _writeStream = null;
101
+ }
96
102
  });
103
+ _writeStream = stream;
97
104
  }
98
105
  } catch {}
99
106
  }
@@ -281,7 +281,12 @@ function bunSpawn(cmd, options) {
281
281
  const bun = getBun();
282
282
  if (bun?.spawn) {
283
283
  const mergedEnv2 = mergeEnvForChild(options?.env, options?.envOverrides);
284
- const spawnOpts = mergedEnv2 !== undefined ? { ...options, env: mergedEnv2 } : options;
284
+ const spawnOpts = { ...options };
285
+ if (mergedEnv2 !== undefined)
286
+ spawnOpts.env = mergedEnv2;
287
+ if (options?.timeout && options.timeout > 0) {
288
+ spawnOpts.killSignal = "SIGKILL";
289
+ }
285
290
  const proc2 = bun.spawn(cmd, spawnOpts);
286
291
  return {
287
292
  stdout: streamFromBun(proc2.stdout),
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveKnowledgeStoreDir
4
- } from "./index-db1fh1fv.js";
4
+ } from "./index-g40r5d08.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
8
8
  } from "./index-zgwm4ryv.js";
9
9
  import {
10
10
  atomicWriteFile
11
- } from "./index-0dab9w37.js";
11
+ } from "./index-0p660a87.js";
12
12
  import {
13
13
  require_proper_lockfile
14
14
  } from "./index-vvk2g744.js";
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
594
594
  deltas.push({ id, delta });
595
595
  }
596
596
  if (deltas.length > 0) {
597
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-h3cjx4dg.js");
597
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-k5rab79h.js");
598
598
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
599
599
  }
600
600
  return {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-zgwm4ryv.js";
5
5
  import {
6
6
  bunSpawn
7
- } from "./index-h91bv3hy.js";
7
+ } from "./index-qe3v54nb.js";
8
8
  import {
9
9
  __require
10
10
  } from "./index-a76rekgs.js";
@@ -34,7 +34,7 @@ var _internals = {
34
34
  symlinkSync: fs.symlinkSync
35
35
  },
36
36
  writeScopeToDisk: async (directory, taskId, files) => {
37
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-5ccgtebg.js");
37
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-fm0gzhnk.js");
38
38
  return realWrite(directory, taskId, files);
39
39
  },
40
40
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-zgwm4ryv.js";
11
11
  import {
12
12
  bunFile
13
- } from "./index-h91bv3hy.js";
13
+ } from "./index-qe3v54nb.js";
14
14
 
15
15
  // src/hooks/utils.ts
16
16
  import * as fs from "fs";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-8f256d7t.js";
5
+ } from "./index-g6va6n3t.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
package/dist/cli/index.js CHANGED
@@ -7,42 +7,42 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-54dgk0bv.js";
11
- import"./index-8f256d7t.js";
10
+ } from "./index-ct9e0y0q.js";
11
+ import"./index-g6va6n3t.js";
12
12
  import"./index-c8s9a3zh.js";
13
- import"./index-0gf6de8b.js";
13
+ import"./index-2148358e.js";
14
14
  import {
15
15
  DEFAULT_AGENT_CONFIGS
16
- } from "./index-1ey3dxq7.js";
17
- import"./index-afgh75zg.js";
16
+ } from "./index-147ja18h.js";
17
+ import"./index-f6y341yk.js";
18
18
  import"./index-scww5b77.js";
19
- import"./index-9fxs0rm1.js";
20
- import"./index-q1jaeynn.js";
21
- import"./index-h389ed8y.js";
22
- import"./index-30ejh1tx.js";
23
- import"./index-t6wfwdm1.js";
24
- import"./index-hpp2r0sd.js";
25
- import"./index-32bx4kch.js";
19
+ import"./index-ga4ta3cr.js";
20
+ import"./index-80jkseqw.js";
21
+ import"./index-mr4whary.js";
22
+ import"./index-43khae15.js";
23
+ import"./index-h7q1bvzm.js";
24
+ import"./index-qzqx2qky.js";
25
+ import"./index-0q7rrh59.js";
26
26
  import"./index-bfwt3abw.js";
27
- import"./index-db1fh1fv.js";
27
+ import"./index-g40r5d08.js";
28
28
  import"./index-jt58s751.js";
29
- import"./index-wvrj16f0.js";
29
+ import"./index-8fwhhayc.js";
30
30
  import"./index-q1exe2b3.js";
31
- import"./index-g55nzpwn.js";
32
- import"./index-fhmw7evd.js";
33
- import"./index-1rga1vvb.js";
31
+ import"./index-n6fa2hhk.js";
32
+ import"./index-rdwfqhp7.js";
33
+ import"./index-wh8949ef.js";
34
34
  import"./index-jtqkh8jf.js";
35
35
  import"./index-5e4e2hvv.js";
36
36
  import"./index-p0arc26j.js";
37
37
  import"./index-zgwm4ryv.js";
38
38
  import"./index-dqh3zhhc.js";
39
- import"./index-x5g7et24.js";
40
- import"./index-0dab9w37.js";
39
+ import"./index-4h2ea8h5.js";
40
+ import"./index-0p660a87.js";
41
41
  import"./index-293f68mj.js";
42
- import"./index-5mkc2f9z.js";
43
- import"./index-vn263hqt.js";
42
+ import"./index-4sckv7y6.js";
43
+ import"./index-pa6t33pt.js";
44
44
  import"./index-vvk2g744.js";
45
- import"./index-h91bv3hy.js";
45
+ import"./index-qe3v54nb.js";
46
46
  import"./index-a76rekgs.js";
47
47
 
48
48
  // src/cli/index.ts
@@ -8,18 +8,18 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-t6wfwdm1.js";
12
- import"./index-hpp2r0sd.js";
13
- import"./index-32bx4kch.js";
11
+ } from "./index-h7q1bvzm.js";
12
+ import"./index-qzqx2qky.js";
13
+ import"./index-0q7rrh59.js";
14
14
  import"./index-bfwt3abw.js";
15
- import"./index-db1fh1fv.js";
15
+ import"./index-g40r5d08.js";
16
16
  import"./index-jtqkh8jf.js";
17
17
  import"./index-zgwm4ryv.js";
18
- import"./index-0dab9w37.js";
19
- import"./index-5mkc2f9z.js";
20
- import"./index-vn263hqt.js";
18
+ import"./index-0p660a87.js";
19
+ import"./index-4sckv7y6.js";
20
+ import"./index-pa6t33pt.js";
21
21
  import"./index-vvk2g744.js";
22
- import"./index-h91bv3hy.js";
22
+ import"./index-qe3v54nb.js";
23
23
  import"./index-a76rekgs.js";
24
24
  export {
25
25
  readRecentEscalations,
@@ -25,14 +25,14 @@ import {
25
25
  resolveKnowledgeCounterBaselinePath,
26
26
  resolveKnowledgeEventsPath,
27
27
  resolveLegacyApplicationLogPath
28
- } from "./index-hpp2r0sd.js";
29
- import"./index-db1fh1fv.js";
28
+ } from "./index-qzqx2qky.js";
29
+ import"./index-g40r5d08.js";
30
30
  import"./index-zgwm4ryv.js";
31
- import"./index-0dab9w37.js";
32
- import"./index-5mkc2f9z.js";
33
- import"./index-vn263hqt.js";
31
+ import"./index-0p660a87.js";
32
+ import"./index-4sckv7y6.js";
33
+ import"./index-pa6t33pt.js";
34
34
  import"./index-vvk2g744.js";
35
- import"./index-h91bv3hy.js";
35
+ import"./index-qe3v54nb.js";
36
36
  import"./index-a76rekgs.js";
37
37
  export {
38
38
  resolveLegacyApplicationLogPath,
@@ -34,16 +34,16 @@ import {
34
34
  transactFile,
35
35
  transactKnowledge,
36
36
  wordBigrams
37
- } from "./index-32bx4kch.js";
37
+ } from "./index-0q7rrh59.js";
38
38
  import"./index-bfwt3abw.js";
39
- import"./index-db1fh1fv.js";
39
+ import"./index-g40r5d08.js";
40
40
  import"./index-jtqkh8jf.js";
41
41
  import"./index-zgwm4ryv.js";
42
- import"./index-0dab9w37.js";
43
- import"./index-5mkc2f9z.js";
44
- import"./index-vn263hqt.js";
42
+ import"./index-0p660a87.js";
43
+ import"./index-4sckv7y6.js";
44
+ import"./index-pa6t33pt.js";
45
45
  import"./index-vvk2g744.js";
46
- import"./index-h91bv3hy.js";
46
+ import"./index-qe3v54nb.js";
47
47
  import"./index-a76rekgs.js";
48
48
  export {
49
49
  wordBigrams,
@@ -22,17 +22,17 @@ import {
22
22
  validateLesson,
23
23
  validateSkillCandidatePath,
24
24
  validateSkillPath
25
- } from "./index-30ejh1tx.js";
26
- import"./index-32bx4kch.js";
25
+ } from "./index-43khae15.js";
26
+ import"./index-0q7rrh59.js";
27
27
  import"./index-bfwt3abw.js";
28
- import"./index-db1fh1fv.js";
28
+ import"./index-g40r5d08.js";
29
29
  import"./index-jtqkh8jf.js";
30
30
  import"./index-zgwm4ryv.js";
31
- import"./index-0dab9w37.js";
32
- import"./index-5mkc2f9z.js";
33
- import"./index-vn263hqt.js";
31
+ import"./index-0p660a87.js";
32
+ import"./index-4sckv7y6.js";
33
+ import"./index-pa6t33pt.js";
34
34
  import"./index-vvk2g744.js";
35
- import"./index-h91bv3hy.js";
35
+ import"./index-qe3v54nb.js";
36
36
  import"./index-a76rekgs.js";
37
37
  export {
38
38
  validateSkillPath,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-1rga1vvb.js";
4
+ } from "./index-wh8949ef.js";
5
5
  import"./index-jtqkh8jf.js";
6
6
  import"./index-5e4e2hvv.js";
7
7
  import"./index-p0arc26j.js";
@@ -14,10 +14,10 @@ import {
14
14
  } from "./index-293f68mj.js";
15
15
  import {
16
16
  withEvidenceLock
17
- } from "./index-5mkc2f9z.js";
18
- import"./index-vn263hqt.js";
17
+ } from "./index-4sckv7y6.js";
18
+ import"./index-pa6t33pt.js";
19
19
  import"./index-vvk2g744.js";
20
- import"./index-h91bv3hy.js";
20
+ import"./index-qe3v54nb.js";
21
21
  import"./index-a76rekgs.js";
22
22
 
23
23
  // src/background/pending-delegations.ts
@@ -9,17 +9,17 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-q1jaeynn.js";
13
- import"./index-1rga1vvb.js";
12
+ } from "./index-80jkseqw.js";
13
+ import"./index-wh8949ef.js";
14
14
  import"./index-jtqkh8jf.js";
15
15
  import"./index-5e4e2hvv.js";
16
16
  import"./index-p0arc26j.js";
17
17
  import"./index-zgwm4ryv.js";
18
18
  import"./index-293f68mj.js";
19
- import"./index-5mkc2f9z.js";
20
- import"./index-vn263hqt.js";
19
+ import"./index-4sckv7y6.js";
20
+ import"./index-pa6t33pt.js";
21
21
  import"./index-vvk2g744.js";
22
- import"./index-h91bv3hy.js";
22
+ import"./index-qe3v54nb.js";
23
23
  import"./index-a76rekgs.js";
24
24
  export {
25
25
  updateSnapshot,
@@ -86,7 +86,7 @@ import {
86
86
  resolveGeneratedAgentRole,
87
87
  resolveGuardrailsConfig,
88
88
  stripKnownSwarmPrefix
89
- } from "./index-1ey3dxq7.js";
89
+ } from "./index-147ja18h.js";
90
90
  import"./index-bfwt3abw.js";
91
91
  import"./index-p0arc26j.js";
92
92
  import"./index-293f68mj.js";
@@ -6,9 +6,9 @@ import {
6
6
  readScopeFromDisk,
7
7
  resolveScopeWithFallbacks,
8
8
  writeScopeToDisk
9
- } from "./index-g55nzpwn.js";
9
+ } from "./index-n6fa2hhk.js";
10
10
  import"./index-vvk2g744.js";
11
- import"./index-h91bv3hy.js";
11
+ import"./index-qe3v54nb.js";
12
12
  import"./index-a76rekgs.js";
13
13
  export {
14
14
  writeScopeToDisk,
@@ -33,19 +33,19 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-h389ed8y.js";
37
- import"./index-30ejh1tx.js";
38
- import"./index-hpp2r0sd.js";
39
- import"./index-32bx4kch.js";
36
+ } from "./index-mr4whary.js";
37
+ import"./index-43khae15.js";
38
+ import"./index-qzqx2qky.js";
39
+ import"./index-0q7rrh59.js";
40
40
  import"./index-bfwt3abw.js";
41
- import"./index-db1fh1fv.js";
41
+ import"./index-g40r5d08.js";
42
42
  import"./index-jtqkh8jf.js";
43
43
  import"./index-zgwm4ryv.js";
44
- import"./index-0dab9w37.js";
45
- import"./index-5mkc2f9z.js";
46
- import"./index-vn263hqt.js";
44
+ import"./index-0p660a87.js";
45
+ import"./index-4sckv7y6.js";
46
+ import"./index-pa6t33pt.js";
47
47
  import"./index-vvk2g744.js";
48
- import"./index-h91bv3hy.js";
48
+ import"./index-qe3v54nb.js";
49
49
  import"./index-a76rekgs.js";
50
50
  export {
51
51
  writeEvalStub,
@@ -8,7 +8,7 @@ import {
8
8
  resetTelemetryForTesting,
9
9
  rotateTelemetryIfNeeded,
10
10
  telemetry
11
- } from "./index-vn263hqt.js";
11
+ } from "./index-pa6t33pt.js";
12
12
  import"./index-a76rekgs.js";
13
13
  export {
14
14
  telemetry,
@@ -176,6 +176,13 @@ export declare const COMMAND_REGISTRY: {
176
176
  readonly toolPolicy: "agent";
177
177
  readonly toolNoArgs: false;
178
178
  };
179
+ readonly 'guardrail-explain': {
180
+ readonly handler: (ctx: CommandContext) => Promise<string>;
181
+ readonly description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)";
182
+ readonly category: "diagnostics";
183
+ readonly aliasOf: "guardrail explain";
184
+ readonly deprecated: true;
185
+ };
179
186
  readonly 'guardrail-log': {
180
187
  readonly handler: (ctx: CommandContext) => Promise<string>;
181
188
  readonly description: "Read the guardrail decision log (use --blocks-only for blocks)";
@@ -27,7 +27,7 @@ export declare const SKILL_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>
27
27
  * NOTE: bash/shell tools are intentionally excluded — bash commands are opaque
28
28
  * to static scope analysis. Post-hoc detection via guardrails diff-scope provides secondary coverage.
29
29
  */
30
- export declare const WRITE_TOOL_NAMES: readonly ["write", "edit", "patch", "apply_patch", "swarm_apply_patch", "create_file", "insert", "replace", "append", "prepend"];
30
+ export declare const WRITE_TOOL_NAMES: readonly ["write", "edit", "patch", "apply_patch", "swarm_apply_patch", "create_file", "insert", "replace", "append", "prepend", "extract_code_blocks"];
31
31
  export type WriteToolName = (typeof WRITE_TOOL_NAMES)[number];
32
32
  export declare const DEFAULT_MODELS: Record<string, string>;
33
33
  export declare const DEFAULT_AGENT_CONFIGS: Record<string, {