opencode-swarm 7.165.0 → 7.166.0

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 (95) 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/background/delegation-cost-identity.d.ts +41 -0
  4. package/dist/background/delegation-lifecycle.d.ts +24 -5
  5. package/dist/background/pending-delegations.d.ts +2 -0
  6. package/dist/background/pr-monitor-worker.d.ts +60 -6
  7. package/dist/background/pr-subscriptions.d.ts +13 -0
  8. package/dist/cli/{capability-probe-5wa7mcp6.js → capability-probe-faqefhah.js} +2 -1
  9. package/dist/cli/{coder-settlement-89nt4j7g.js → coder-settlement-ydg2jfrk.js} +8 -8
  10. package/dist/cli/{config-doctor-gm6f5chm.js → config-doctor-drqx6tzc.js} +2 -2
  11. package/dist/cli/{core-91p43zwj.js → core-x6sftfwt.js} +1 -1
  12. package/dist/cli/{curation-policy-bqpmry2n.js → curation-policy-jtzwz6bc.js} +4 -4
  13. package/dist/cli/{curator-drift-hbc3w5zj.js → curator-drift-2vwtkegg.js} +2 -2
  14. package/dist/cli/{curator-4bs2hmy9.js → curator-kg2h8jjf.js} +34 -34
  15. package/dist/cli/curator-llm-factory-7znajprp.js +70 -0
  16. package/dist/cli/{evidence-summary-service-g1xd8egd.js → evidence-summary-service-ry5ebnmq.js} +15 -15
  17. package/dist/cli/{gate-evidence-gdmgsz7c.js → gate-evidence-qgeceqy8.js} +5 -5
  18. package/dist/cli/guardrail-explain-jdv4n2j3.js +71 -0
  19. package/dist/cli/{guardrail-log-nyggdv04.js → guardrail-log-s7c3rpde.js} +7 -7
  20. package/dist/cli/{guardrail-reset-rp9jq0gj.js → guardrail-reset-4nmy7xas.js} +34 -34
  21. package/dist/cli/{hive-promoter-39xb4tx2.js → hive-promoter-w5tsgttc.js} +34 -34
  22. package/dist/cli/{index-tqw8w2n5.js → index-17yszqs5.js} +1 -1
  23. package/dist/cli/{index-qzvry1n1.js → index-289epdpc.js} +36 -36
  24. package/dist/cli/{index-7h94rfem.js → index-2dvk153d.js} +14 -12
  25. package/dist/cli/{index-p7hdp3rp.js → index-2rm5x9ps.js} +1 -1
  26. package/dist/cli/{index-xwbn7c8m.js → index-2v17wb75.js} +2 -2
  27. package/dist/cli/{index-y1zhpfk8.js → index-30f4fe30.js} +4 -4
  28. package/dist/cli/{index-n3pjcks8.js → index-359djbj1.js} +5 -5
  29. package/dist/cli/{index-4gmt79q9.js → index-4mpdy32j.js} +1 -1
  30. package/dist/cli/{index-afpkqsdb.js → index-52jfm5s0.js} +13 -6
  31. package/dist/cli/{index-6m24v15v.js → index-79sr3fd1.js} +2 -2
  32. package/dist/cli/{index-dh5th4jn.js → index-8hqkrd2j.js} +1 -1
  33. package/dist/cli/{index-3xyjvx24.js → index-8m12y79g.js} +11 -9
  34. package/dist/cli/{index-e6n7cemz.js → index-8n62bphd.js} +11 -7
  35. package/dist/cli/{index-hdakb4n9.js → index-9hy5q7gp.js} +15 -12
  36. package/dist/cli/{index-2k53pfnc.js → index-a5w71m8f.js} +4 -4
  37. package/dist/cli/{index-6rx1rdaq.js → index-a7rw4g4s.js} +1 -1
  38. package/dist/cli/{index-w6988bbc.js → index-aftapk6j.js} +75 -1
  39. package/dist/cli/{index-hwz46jj7.js → index-an89qzd9.js} +2074 -545
  40. package/dist/cli/{index-58be2gtd.js → index-apxaa755.js} +2 -2
  41. package/dist/cli/{index-j2svfhzk.js → index-axf65x87.js} +1 -1
  42. package/dist/cli/{index-g8wdekzz.js → index-bw7r2b2m.js} +2 -2
  43. package/dist/cli/{index-ajknebrc.js → index-c20gf089.js} +1 -1
  44. package/dist/cli/{index-ptsqnxwd.js → index-czr3jcg6.js} +20 -10
  45. package/dist/cli/{index-jre6tm3v.js → index-edm41q4j.js} +1 -1
  46. package/dist/cli/{index-r5hj3nfe.js → index-ejf6w8vw.js} +2 -2
  47. package/dist/cli/{index-c4ddtrqg.js → index-fywshabz.js} +6 -6
  48. package/dist/cli/{index-6be5caj8.js → index-hrkamw9q.js} +3 -3
  49. package/dist/cli/{index-f36hy1x4.js → index-hvk3zs62.js} +1 -1
  50. package/dist/cli/{index-5ebgzb5a.js → index-hwj25q9r.js} +78 -53
  51. package/dist/cli/{index-gn6ybsc4.js → index-jc9cxh90.js} +7 -7
  52. package/dist/cli/{index-e45htt92.js → index-jx9f4ke1.js} +1 -1
  53. package/dist/cli/{index-zycp24b9.js → index-mg43w8p2.js} +1 -1
  54. package/dist/cli/{index-0e9jh9c7.js → index-nb924ar6.js} +2 -2
  55. package/dist/cli/{index-k1ntjzmf.js → index-p04pa9c9.js} +1 -1
  56. package/dist/cli/{index-4fwbbad3.js → index-q1r1cfww.js} +46 -17
  57. package/dist/cli/{index-5ythtd9t.js → index-qkq56zyr.js} +11 -11
  58. package/dist/cli/{index-1v6vc90w.js → index-rkn17q5e.js} +3 -3
  59. package/dist/cli/{index-556ja8an.js → index-yzjaj53h.js} +9 -2
  60. package/dist/cli/index.js +34 -34
  61. package/dist/cli/{knowledge-escalator-eq07pcj3.js → knowledge-escalator-xdzmr31d.js} +10 -10
  62. package/dist/cli/{knowledge-events-rv9q9mkm.js → knowledge-events-1t1t0bv7.js} +8 -8
  63. package/dist/cli/{knowledge-link-dgvbqjqg.js → knowledge-link-1zykfk1p.js} +3 -3
  64. package/dist/cli/{knowledge-store-cxcr0ttk.js → knowledge-store-m2snb0xg.js} +4 -4
  65. package/dist/cli/{knowledge-validator-8qtd9ys0.js → knowledge-validator-tf7yq2pd.js} +6 -6
  66. package/dist/cli/{pending-delegations-dp3g8e7k.js → pending-delegations-jr8hwxrz.js} +11 -9
  67. package/dist/cli/{pr-subscriptions-3vx06rar.js → pr-subscriptions-ca1xmf9r.js} +13 -9
  68. package/dist/cli/{pr-workflow-gate-bbet0apk.js → pr-workflow-gate-fb1dj0zx.js} +34 -34
  69. package/dist/cli/{runner-0e3bjeev.js → runner-j3acybhs.js} +4 -4
  70. package/dist/cli/{scan-cursor-zwm0xng7.js → scan-cursor-3gdvy0ym.js} +5 -5
  71. package/dist/cli/{schema-ebfxgya0.js → schema-mzb1354k.js} +1 -1
  72. package/dist/cli/{scope-persistence-6c55akfz.js → scope-persistence-c4n21b5n.js} +14 -14
  73. package/dist/cli/{skill-generator-mv5jxzsh.js → skill-generator-dvpvwt8k.js} +12 -12
  74. package/dist/cli/{snapshot-coordination-init-n556wa18.js → snapshot-coordination-init-g7v63zcm.js} +34 -34
  75. package/dist/cli/{telemetry-a1yvjerj.js → telemetry-9h1z2w9d.js} +1 -1
  76. package/dist/cli/{worktree-collision-ownership-pp4z4z8p.js → worktree-collision-ownership-k15qrpy9.js} +9 -9
  77. package/dist/cli/{worktree-isolation-69hz9dgg.js → worktree-isolation-y7ec1pm5.js} +34 -34
  78. package/dist/commands/pr-monitor-status.d.ts +2 -0
  79. package/dist/commands/registry.d.ts +8 -0
  80. package/dist/commands/report.d.ts +36 -0
  81. package/dist/db/observability-event-store.d.ts +162 -0
  82. package/dist/git/pr.d.ts +23 -25
  83. package/dist/hooks/context-capsule-inject.d.ts +3 -0
  84. package/dist/index.d.ts +6 -1
  85. package/dist/index.js +522 -429
  86. package/dist/observability/catalog.d.ts +8 -4
  87. package/dist/sandbox/executor.d.ts +10 -0
  88. package/dist/sandbox/win32/runner-client.d.ts +7 -0
  89. package/dist/services/context-attribution.d.ts +69 -0
  90. package/dist/services/cost-accounting.d.ts +2 -0
  91. package/dist/telemetry.d.ts +10 -2
  92. package/opencode-swarm.schema.json +1 -1
  93. package/package.json +1 -1
  94. package/dist/cli/curator-llm-factory-fhbjwar0.js +0 -70
  95. package/dist/cli/guardrail-explain-1nfbtpgg.js +0 -71
@@ -1,5 +1,10 @@
1
1
  // @bun
2
2
  import {
3
+ init_path_identity,
4
+ sanitizeDiagnosticText
5
+ } from "./index-yzjaj53h.js";
6
+ import {
7
+ criticalWarn,
3
8
  init_logger,
4
9
  warn
5
10
  } from "./index-zgwm4ryv.js";
@@ -504,13 +509,14 @@ class WindowsSandboxExecutor {
504
509
  throw 'cmd.exe did not report an exit code';
505
510
  }
506
511
  exit [int]$childExitCode;`;
507
- const envOverrideBlock = envOverrideLines.length > 0 ? `
508
- ${envOverrideLines.join(`
509
- `)}` : "";
512
+ const envOverrideBlock = envOverrideLines.length > 0 ? `${envOverrideLines.join(`
513
+ `)}
514
+ ` : "";
510
515
  const psScript = `
511
516
  $ErrorActionPreference = 'Stop';
512
517
  $ProgressPreference = 'SilentlyContinue';
513
518
  try {
519
+ ${envOverrideBlock}
514
520
  $env:TEMP = '${escapedTemp}';
515
521
  $env:TMP = '${escapedTemp}';
516
522
 
@@ -529,7 +535,6 @@ try {
529
535
  Remove-Item Env:$v -Force -ErrorAction SilentlyContinue;
530
536
  }
531
537
  }
532
- ${envOverrideBlock}
533
538
 
534
539
  # Execute the command \u2014 PS-native cmdlets via Invoke-Expression, others via the standard command interpreter
535
540
  $commandBytes = [Convert]::FromBase64String('${commandBase64}');
@@ -598,6 +603,7 @@ __export(exports_runner_client, {
598
603
  buildDefaultPolicy: () => buildDefaultPolicy,
599
604
  _resetProbeCache: () => _resetProbeCache,
600
605
  _internals: () => _internals3,
606
+ RUNNER_PROTOCOL_SCHEMA_VERSION: () => RUNNER_PROTOCOL_SCHEMA_VERSION,
601
607
  RUNNER_EXIT_CODES: () => RUNNER_EXIT_CODES
602
608
  });
603
609
  import { spawn, spawnSync as spawnSync3 } from "child_process";
@@ -608,9 +614,11 @@ import { fileURLToPath } from "url";
608
614
  function findRunnerBinary() {
609
615
  const arch = process.arch === "x64" ? "x64" : "arm64";
610
616
  const platform = "win32";
617
+ const runtimeDir = _internals3.runtimeDir ?? _runtimeDir;
611
618
  const packagePaths = [
612
- path3.resolve(_runtimeDir, "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe"),
613
- path3.resolve(_runtimeDir, "..", "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe")
619
+ path3.resolve(runtimeDir, "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe"),
620
+ path3.resolve(runtimeDir, "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe"),
621
+ path3.resolve(runtimeDir, "..", "..", "..", "..", "binaries", `${platform}-${arch}`, "swarm-sandbox-runner.exe")
614
622
  ];
615
623
  for (const p of packagePaths) {
616
624
  try {
@@ -654,7 +662,7 @@ function probe() {
654
662
  capabilities: null,
655
663
  error: "runner binary not found"
656
664
  };
657
- warn("Sandbox runner binary not found \u2014 degrading to weak sandbox");
665
+ criticalWarn("[sandbox] swarm-sandbox-runner binary not found \u2014 native Windows sandbox unavailable; commands fall back to the weak PowerShell wrapper (or run unsandboxed in advisory mode). Run /swarm diagnose for details.");
658
666
  return _cachedProbe;
659
667
  }
660
668
  try {
@@ -672,7 +680,7 @@ function probe() {
672
680
  capabilities: null,
673
681
  error: `probe spawn error: ${result.error.code ?? result.error.message}`
674
682
  };
675
- warn(`Sandbox runner probe failed: ${_cachedProbe.error}`);
683
+ criticalWarn(`[sandbox] swarm-sandbox-runner probe failed (${_cachedProbe.error}) \u2014 degrading to weak sandbox. This covers wrong-arch and corrupt binaries; run /swarm diagnose for details.`);
676
684
  return _cachedProbe;
677
685
  }
678
686
  if (result.status !== 0) {
@@ -682,10 +690,21 @@ function probe() {
682
690
  capabilities: null,
683
691
  error: `probe exited with code ${result.status}`
684
692
  };
685
- warn(`Sandbox runner probe failed: ${_cachedProbe.error}`);
693
+ criticalWarn(`[sandbox] swarm-sandbox-runner probe failed (${_cachedProbe.error}) \u2014 degrading to weak sandbox. Run /swarm diagnose for details.`);
686
694
  return _cachedProbe;
687
695
  }
688
696
  const capabilities = JSON.parse(result.stdout?.trim() ?? "{}");
697
+ const reportedProtocol = typeof capabilities.protocol_schema_version === "number" ? capabilities.protocol_schema_version : null;
698
+ if (reportedProtocol !== RUNNER_PROTOCOL_SCHEMA_VERSION) {
699
+ _cachedProbe = {
700
+ available: false,
701
+ mode: "none",
702
+ capabilities,
703
+ error: `runner protocol mismatch (got ${reportedProtocol ?? "none"}, expected ${RUNNER_PROTOCOL_SCHEMA_VERSION})`
704
+ };
705
+ criticalWarn(`[sandbox] ${_cachedProbe.error} at ${path3.basename(binary)} \u2014 stale or foreign runner binary refused; degrading to weak sandbox. Run /swarm diagnose for details.`);
706
+ return _cachedProbe;
707
+ }
689
708
  let mode = "none";
690
709
  if (capabilities.app_container_available) {
691
710
  mode = "app-container";
@@ -706,7 +725,7 @@ function probe() {
706
725
  capabilities: null,
707
726
  error: `probe threw: ${msg}`
708
727
  };
709
- warn(`Sandbox runner probe threw: ${msg}`);
728
+ criticalWarn(`[sandbox] swarm-sandbox-runner probe threw (${sanitizeDiagnosticText(msg, 200)}) \u2014 degrading to weak sandbox. Run /swarm diagnose for details.`);
710
729
  return _cachedProbe;
711
730
  }
712
731
  }
@@ -806,6 +825,7 @@ function buildDefaultPolicy(workspaceRoot, runId) {
806
825
  HTTP_PROXY: "http://127.0.0.1:1",
807
826
  HTTPS_PROXY: "http://127.0.0.1:1"
808
827
  },
828
+ env_unsets: [],
809
829
  path_stubs: ["ssh.exe", "curl.exe", "wget.exe", "scp.exe", "sftp.exe"],
810
830
  private_desktop: true,
811
831
  deny_alternate_data_streams: true,
@@ -814,8 +834,9 @@ function buildDefaultPolicy(workspaceRoot, runId) {
814
834
  deny_symlink_egress: true
815
835
  };
816
836
  }
817
- var _runtimeDir, RUNNER_EXIT_CODES, _cachedProbe, _internals3;
837
+ var _runtimeDir, RUNNER_PROTOCOL_SCHEMA_VERSION = 1, RUNNER_EXIT_CODES, _cachedProbe, _internals3;
818
838
  var init_runner_client = __esm(() => {
839
+ init_path_identity();
819
840
  init_logger();
820
841
  _runtimeDir = fileURLToPath(new URL(".", import.meta.url));
821
842
  RUNNER_EXIT_CODES = {
@@ -831,7 +852,8 @@ var init_runner_client = __esm(() => {
831
852
  _internals3 = {
832
853
  findRunnerBinary,
833
854
  spawnRunner: spawnSync3,
834
- spawnAsync: spawn
855
+ spawnAsync: spawn,
856
+ runtimeDir: null
835
857
  };
836
858
  });
837
859
 
@@ -859,7 +881,7 @@ class NativeWindowsSandboxExecutor {
859
881
  } else if (this._fallbackExecutor.isAvailable()) {
860
882
  this._strength = "weak";
861
883
  this.mechanism = "powershell-wrapper";
862
- warn(`Native sandbox runner unavailable (${this._probeResult.error ?? "unknown"}); ` + "falling back to PowerShell environment restrictions (weak sandbox)");
884
+ criticalWarn(`[sandbox] native Windows sandbox runner unavailable (${sanitizeDiagnosticText(this._probeResult.error ?? "unknown", 200)}); falling back to PowerShell environment restrictions (weak sandbox). Run /swarm diagnose for details.`);
863
885
  } else {
864
886
  this._strength = "none";
865
887
  this.mechanism = "none";
@@ -876,13 +898,16 @@ class NativeWindowsSandboxExecutor {
876
898
  disable(reason) {
877
899
  this._disabled = true;
878
900
  this._disabledReason = reason;
879
- warn(`Sandbox disabled: ${reason}. Falling through to tool-layer enforcement.`);
901
+ criticalWarn(`[sandbox] Sandbox disabled: ${sanitizeDiagnosticText(reason, 200)}. Falling through to tool-layer enforcement. Run /swarm diagnose for details.`);
880
902
  }
881
903
  wrapCommand(command, scopePaths, tempDir, envOverrides, policy) {
882
904
  if (!this.isAvailable()) {
883
905
  throw new SandboxError("Sandbox not available", "SANDBOX_UNAVAILABLE");
884
906
  }
885
907
  if (this._strength === "strong") {
908
+ if (/["&|<>^%]/.test(command)) {
909
+ return this._fallbackExecutor.wrapCommand(command, scopePaths, tempDir, envOverrides);
910
+ }
886
911
  return this._wrapWithRunner(command, scopePaths, tempDir, envOverrides, policy);
887
912
  }
888
913
  return this._fallbackExecutor.wrapCommand(command, scopePaths, tempDir, envOverrides);
@@ -907,6 +932,9 @@ class NativeWindowsSandboxExecutor {
907
932
  continue;
908
933
  if (typeof value === "string") {
909
934
  policy.env_overrides[key] = value;
935
+ } else {
936
+ policy.env_unsets.push(key);
937
+ policy.env_allowlist = policy.env_allowlist.filter((allowed) => allowed.toUpperCase() !== key.toUpperCase());
910
938
  }
911
939
  }
912
940
  }
@@ -957,6 +985,7 @@ class NativeWindowsSandboxExecutor {
957
985
  }
958
986
  }
959
987
  var init_native_sandbox_executor = __esm(() => {
988
+ init_path_identity();
960
989
  init_logger();
961
990
  init_executor();
962
991
  init_restricted_environment_executor();
@@ -1007,7 +1036,7 @@ async function _createExecutor() {
1007
1036
  return null;
1008
1037
  }
1009
1038
  async function _createLinuxExecutor() {
1010
- const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isBubblewrapAvailable } = await import("./capability-probe-5wa7mcp6.js");
1039
+ const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isBubblewrapAvailable } = await import("./capability-probe-faqefhah.js");
1011
1040
  await new SandboxCapabilityProbe2().detect();
1012
1041
  if (!isBubblewrapAvailable()) {
1013
1042
  return null;
@@ -1027,7 +1056,7 @@ async function _createMacOSExecutor() {
1027
1056
  }
1028
1057
  return null;
1029
1058
  }
1030
- const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isSandboxExecAvailable } = await import("./capability-probe-5wa7mcp6.js");
1059
+ const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isSandboxExecAvailable } = await import("./capability-probe-faqefhah.js");
1031
1060
  await new SandboxCapabilityProbe2().detect();
1032
1061
  if (!isSandboxExecAvailable()) {
1033
1062
  return null;
@@ -1040,7 +1069,7 @@ async function _createMacOSExecutor() {
1040
1069
  }
1041
1070
  }
1042
1071
  async function _createWindowsExecutor() {
1043
- const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isWindowsSandboxAvailable } = await import("./capability-probe-5wa7mcp6.js");
1072
+ const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isWindowsSandboxAvailable } = await import("./capability-probe-faqefhah.js");
1044
1073
  await new SandboxCapabilityProbe2().detect();
1045
1074
  if (!isWindowsSandboxAvailable()) {
1046
1075
  return null;
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-tqw8w2n5.js";
6
+ } from "./index-17yszqs5.js";
7
7
  import {
8
8
  validateWorkspaceRoot
9
9
  } from "./index-cw912re7.js";
@@ -23,7 +23,7 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-e6n7cemz.js";
26
+ } from "./index-8n62bphd.js";
27
27
  import {
28
28
  estimateCharsForTokens,
29
29
  estimateTokens,
@@ -57,10 +57,10 @@ import {
57
57
  replayFromLedgerWithStatus,
58
58
  takeSnapshotEvent,
59
59
  takeSnapshotWithRetry
60
- } from "./index-y1zhpfk8.js";
60
+ } from "./index-30f4fe30.js";
61
61
  import {
62
62
  appendCoreEventSync
63
- } from "./index-xwbn7c8m.js";
63
+ } from "./index-2v17wb75.js";
64
64
  import {
65
65
  derivePlanId,
66
66
  derivePlanIdentityHash,
@@ -68,13 +68,13 @@ import {
68
68
  importCoordinationOnce,
69
69
  listCoordinationStates,
70
70
  transitionCoordinationState
71
- } from "./index-e45htt92.js";
71
+ } from "./index-jx9f4ke1.js";
72
72
  import {
73
73
  DURABILITY_CLASSES,
74
74
  getProjectDb,
75
75
  projectDbExists,
76
76
  withDurabilityClass
77
- } from "./index-w6988bbc.js";
77
+ } from "./index-aftapk6j.js";
78
78
  import {
79
79
  canonicalRootKeyFresh
80
80
  } from "./index-7qefgq4j.js";
@@ -82,7 +82,7 @@ import {
82
82
  assertProjectRoot,
83
83
  tryAcquireLock,
84
84
  withEvidenceLock
85
- } from "./index-jre6tm3v.js";
85
+ } from "./index-edm41q4j.js";
86
86
  import {
87
87
  atomicWriteSwarmFileSync,
88
88
  invalidateCachedArtifact,
@@ -90,10 +90,10 @@ import {
90
90
  } from "./index-gy0nyfbw.js";
91
91
  import {
92
92
  emit
93
- } from "./index-5ebgzb5a.js";
93
+ } from "./index-hwj25q9r.js";
94
94
  import {
95
95
  PlanSchema
96
- } from "./index-zycp24b9.js";
96
+ } from "./index-mg43w8p2.js";
97
97
  import {
98
98
  GIT_BINARY_ENV_VAR,
99
99
  describeGitResolution,
@@ -108,7 +108,7 @@ import {
108
108
  init_executor,
109
109
  isUntrustedEnvKey,
110
110
  isValidEnvKey
111
- } from "./index-4fwbbad3.js";
111
+ } from "./index-q1r1cfww.js";
112
112
  import {
113
113
  criticalWarn,
114
114
  error,
@@ -4159,4 +4159,4 @@ function mergeDurableGateEntriesFromEvidence(taskId, entries, evidence) {
4159
4159
  return merged;
4160
4160
  }
4161
4161
 
4162
- export { normalizePath, buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, isSecretscanEvidence, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
4162
+ export { normalizePath, buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, readLaneEnvFileFromDiskSync, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, isSecretscanEvidence, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-58be2gtd.js";
5
+ } from "./index-apxaa755.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,7 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-zycp24b9.js";
47
+ } from "./index-mg43w8p2.js";
48
48
  import"./index-9e6fdz2h.js";
49
49
  import"./index-4rhhvd1a.js";
50
50
  import {
@@ -70,7 +70,7 @@ import {
70
70
  TurboConfigSchema,
71
71
  WorktreeIsolationConfigSchema,
72
72
  resolveAutoReviewConfig
73
- } from "./index-0e9jh9c7.js";
73
+ } from "./index-nb924ar6.js";
74
74
  import {
75
75
  ALL_AGENT_NAMES,
76
76
  ALL_SUBAGENT_NAMES,
@@ -1,7 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ __esm
4
+ } from "./index-a76rekgs.js";
5
+
2
6
  // src/scope/path-identity.ts
3
7
  import * as path from "path";
4
- var BIDI_CONTROL_CHARACTERS = /[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/u;
5
8
  function isControlCharacter(character) {
6
9
  const codePoint = character.codePointAt(0) ?? 0;
7
10
  return codePoint <= 31 || codePoint >= 127 && codePoint <= 159;
@@ -58,5 +61,9 @@ function sanitizeDiagnosticText(value, maxLength = 256) {
58
61
  return rendered;
59
62
  return `${rendered.slice(0, Math.max(0, maxLength - 1))}\u2026`;
60
63
  }
64
+ var BIDI_CONTROL_CHARACTERS;
65
+ var init_path_identity = __esm(() => {
66
+ BIDI_CONTROL_CHARACTERS = /[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/u;
67
+ });
61
68
 
62
- export { getPathFlavor, pathIdentitiesEqual, isPathIdentityWithin, isPathWithinDeclaredScope, isOnDifferentPathRoot, unsafePathTextReason, sanitizeDiagnosticText };
69
+ export { getPathFlavor, pathIdentitiesEqual, isPathIdentityWithin, isPathWithinDeclaredScope, isOnDifferentPathRoot, unsafePathTextReason, sanitizeDiagnosticText, init_path_identity };
package/dist/cli/index.js CHANGED
@@ -13,66 +13,65 @@ import {
13
13
  readCachePackageVersion,
14
14
  resolveCommand,
15
15
  safeRealpathSync
16
- } from "./index-hwz46jj7.js";
16
+ } from "./index-an89qzd9.js";
17
17
  import"./index-8d90gzaz.js";
18
- import"./index-f36hy1x4.js";
19
- import"./index-hdakb4n9.js";
20
- import"./index-k1ntjzmf.js";
21
- import"./index-5ythtd9t.js";
22
- import"./index-tqw8w2n5.js";
18
+ import"./index-hvk3zs62.js";
19
+ import"./index-9hy5q7gp.js";
20
+ import"./index-p04pa9c9.js";
21
+ import"./index-qkq56zyr.js";
22
+ import"./index-17yszqs5.js";
23
23
  import"./index-txdagbh7.js";
24
24
  import"./index-cw912re7.js";
25
- import"./index-6be5caj8.js";
26
- import"./index-n3pjcks8.js";
27
- import"./index-g8wdekzz.js";
25
+ import"./index-hrkamw9q.js";
26
+ import"./index-359djbj1.js";
27
+ import"./index-bw7r2b2m.js";
28
28
  import"./index-70ha9e09.js";
29
- import"./index-dh5th4jn.js";
29
+ import"./index-8hqkrd2j.js";
30
30
  import"./index-9ss2m4rs.js";
31
- import"./index-ptsqnxwd.js";
31
+ import"./index-czr3jcg6.js";
32
32
  import"./index-zsrtt42s.js";
33
- import"./index-7h94rfem.js";
33
+ import"./index-2dvk153d.js";
34
34
  import"./index-6chhqq2n.js";
35
35
  import"./index-8bdk7124.js";
36
36
  import"./index-b43rt5ph.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-e6n7cemz.js";
39
- import"./index-p7hdp3rp.js";
40
- import"./index-afpkqsdb.js";
41
- import"./index-gn6ybsc4.js";
38
+ import"./index-8n62bphd.js";
39
+ import"./index-2rm5x9ps.js";
40
+ import"./index-52jfm5s0.js";
41
+ import"./index-jc9cxh90.js";
42
42
  import"./index-anxs69ad.js";
43
43
  import"./index-z6xqpmqg.js";
44
44
  import"./index-p612v1mv.js";
45
- import"./index-2k53pfnc.js";
46
- import"./index-ajknebrc.js";
45
+ import"./index-a5w71m8f.js";
46
+ import"./index-c20gf089.js";
47
47
  import"./index-rtry5xyf.js";
48
- import"./index-58be2gtd.js";
48
+ import"./index-apxaa755.js";
49
49
  import"./index-3qf1vxtb.js";
50
50
  import"./index-n832052r.js";
51
- import"./index-3xyjvx24.js";
52
- import"./index-y1zhpfk8.js";
53
- import"./index-xwbn7c8m.js";
54
- import"./index-556ja8an.js";
55
- import"./index-6m24v15v.js";
56
- import"./index-e45htt92.js";
57
- import"./index-w6988bbc.js";
51
+ import"./index-8m12y79g.js";
52
+ import"./index-30f4fe30.js";
53
+ import"./index-2v17wb75.js";
54
+ import"./index-79sr3fd1.js";
55
+ import"./index-jx9f4ke1.js";
56
+ import"./index-aftapk6j.js";
58
57
  import"./index-ry16d01s.js";
59
58
  import"./index-n4fzmqz8.js";
60
- import"./index-j2svfhzk.js";
61
- import"./index-c4ddtrqg.js";
59
+ import"./index-axf65x87.js";
60
+ import"./index-fywshabz.js";
62
61
  import"./index-ae75rja9.js";
63
- import"./index-6rx1rdaq.js";
62
+ import"./index-a7rw4g4s.js";
64
63
  import"./index-7qefgq4j.js";
65
- import"./index-jre6tm3v.js";
64
+ import"./index-edm41q4j.js";
66
65
  import"./index-gy0nyfbw.js";
67
- import"./index-5ebgzb5a.js";
66
+ import"./index-hwj25q9r.js";
68
67
  import"./index-7g4c7s5r.js";
69
- import"./index-zycp24b9.js";
68
+ import"./index-mg43w8p2.js";
70
69
  import"./index-9e6fdz2h.js";
71
70
  import"./index-4rhhvd1a.js";
72
71
  import {
73
72
  init_package,
74
73
  package_default
75
- } from "./index-0e9jh9c7.js";
74
+ } from "./index-nb924ar6.js";
76
75
  import {
77
76
  DEFAULT_AGENT_CONFIGS,
78
77
  init_constants
@@ -80,7 +79,8 @@ import {
80
79
  import"./index-zjygnfay.js";
81
80
  import"./index-bk5tah7q.js";
82
81
  import"./index-bpmtbmy9.js";
83
- import"./index-4fwbbad3.js";
82
+ import"./index-q1r1cfww.js";
83
+ import"./index-yzjaj53h.js";
84
84
  import"./index-zgwm4ryv.js";
85
85
  import"./index-a76rekgs.js";
86
86
 
@@ -9,27 +9,27 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-n3pjcks8.js";
13
- import"./index-gn6ybsc4.js";
12
+ } from "./index-359djbj1.js";
13
+ import"./index-jc9cxh90.js";
14
14
  import"./index-anxs69ad.js";
15
15
  import"./index-z6xqpmqg.js";
16
16
  import"./index-p612v1mv.js";
17
- import"./index-58be2gtd.js";
17
+ import"./index-apxaa755.js";
18
18
  import"./index-3qf1vxtb.js";
19
19
  import"./index-n832052r.js";
20
- import"./index-j2svfhzk.js";
21
- import"./index-c4ddtrqg.js";
20
+ import"./index-axf65x87.js";
21
+ import"./index-fywshabz.js";
22
22
  import"./index-ae75rja9.js";
23
- import"./index-6rx1rdaq.js";
23
+ import"./index-a7rw4g4s.js";
24
24
  import"./index-7qefgq4j.js";
25
- import"./index-jre6tm3v.js";
25
+ import"./index-edm41q4j.js";
26
26
  import"./index-gy0nyfbw.js";
27
- import"./index-5ebgzb5a.js";
27
+ import"./index-hwj25q9r.js";
28
28
  import"./index-7g4c7s5r.js";
29
- import"./index-zycp24b9.js";
29
+ import"./index-mg43w8p2.js";
30
30
  import"./index-9e6fdz2h.js";
31
31
  import"./index-4rhhvd1a.js";
32
- import"./index-0e9jh9c7.js";
32
+ import"./index-nb924ar6.js";
33
33
  import"./index-a0d4fp6r.js";
34
34
  import"./index-zjygnfay.js";
35
35
  import"./index-bk5tah7q.js";
@@ -29,25 +29,25 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-gn6ybsc4.js";
32
+ } from "./index-jc9cxh90.js";
33
33
  import"./index-anxs69ad.js";
34
34
  import"./index-z6xqpmqg.js";
35
35
  import"./index-p612v1mv.js";
36
- import"./index-58be2gtd.js";
36
+ import"./index-apxaa755.js";
37
37
  import"./index-3qf1vxtb.js";
38
38
  import"./index-n832052r.js";
39
- import"./index-j2svfhzk.js";
39
+ import"./index-axf65x87.js";
40
40
  import"./index-ae75rja9.js";
41
- import"./index-6rx1rdaq.js";
41
+ import"./index-a7rw4g4s.js";
42
42
  import"./index-7qefgq4j.js";
43
- import"./index-jre6tm3v.js";
43
+ import"./index-edm41q4j.js";
44
44
  import"./index-gy0nyfbw.js";
45
- import"./index-5ebgzb5a.js";
45
+ import"./index-hwj25q9r.js";
46
46
  import"./index-7g4c7s5r.js";
47
- import"./index-zycp24b9.js";
47
+ import"./index-mg43w8p2.js";
48
48
  import"./index-9e6fdz2h.js";
49
49
  import"./index-4rhhvd1a.js";
50
- import"./index-0e9jh9c7.js";
50
+ import"./index-nb924ar6.js";
51
51
  import"./index-a0d4fp6r.js";
52
52
  import"./index-zjygnfay.js";
53
53
  import"./index-bk5tah7q.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-6rx1rdaq.js";
15
+ } from "./index-a7rw4g4s.js";
16
16
  import"./index-7qefgq4j.js";
17
- import"./index-jre6tm3v.js";
17
+ import"./index-edm41q4j.js";
18
18
  import"./index-gy0nyfbw.js";
19
- import"./index-5ebgzb5a.js";
19
+ import"./index-hwj25q9r.js";
20
20
  import"./index-7g4c7s5r.js";
21
21
  import"./index-bpmtbmy9.js";
22
22
  import"./index-zgwm4ryv.js";
@@ -42,15 +42,15 @@ import {
42
42
  transactKnowledge,
43
43
  transactKnowledgeWithCas,
44
44
  wordBigrams
45
- } from "./index-c4ddtrqg.js";
45
+ } from "./index-fywshabz.js";
46
46
  import {
47
47
  resolveHiveDataDir
48
48
  } from "./index-ae75rja9.js";
49
- import"./index-6rx1rdaq.js";
49
+ import"./index-a7rw4g4s.js";
50
50
  import"./index-7qefgq4j.js";
51
- import"./index-jre6tm3v.js";
51
+ import"./index-edm41q4j.js";
52
52
  import"./index-gy0nyfbw.js";
53
- import"./index-5ebgzb5a.js";
53
+ import"./index-hwj25q9r.js";
54
54
  import"./index-7g4c7s5r.js";
55
55
  import"./index-bk5tah7q.js";
56
56
  import"./index-bpmtbmy9.js";
@@ -23,16 +23,16 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-2k53pfnc.js";
27
- import"./index-ajknebrc.js";
26
+ } from "./index-a5w71m8f.js";
27
+ import"./index-c20gf089.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-c4ddtrqg.js";
29
+ import"./index-fywshabz.js";
30
30
  import"./index-ae75rja9.js";
31
- import"./index-6rx1rdaq.js";
31
+ import"./index-a7rw4g4s.js";
32
32
  import"./index-7qefgq4j.js";
33
- import"./index-jre6tm3v.js";
33
+ import"./index-edm41q4j.js";
34
34
  import"./index-gy0nyfbw.js";
35
- import"./index-5ebgzb5a.js";
35
+ import"./index-hwj25q9r.js";
36
36
  import"./index-7g4c7s5r.js";
37
37
  import"./index-bk5tah7q.js";
38
38
  import"./index-bpmtbmy9.js";
@@ -55,6 +55,7 @@ import {
55
55
  recordPendingDelegation,
56
56
  recordPendingDelegationDetailed,
57
57
  registerLegacyCoderSettlementReconciler,
58
+ registerStaleSweepObserver,
58
59
  releaseBackgroundCoderReservation,
59
60
  releasePreparedBackgroundAdvisories,
60
61
  removeDelegationFallback,
@@ -66,23 +67,23 @@ import {
66
67
  sweepStaleDelegations,
67
68
  updateCoderSettlement,
68
69
  writeDelegationFallback
69
- } from "./index-afpkqsdb.js";
70
+ } from "./index-52jfm5s0.js";
70
71
  import"./index-anxs69ad.js";
71
72
  import"./index-z6xqpmqg.js";
72
73
  import"./index-p612v1mv.js";
73
- import"./index-6m24v15v.js";
74
- import"./index-e45htt92.js";
75
- import"./index-w6988bbc.js";
74
+ import"./index-79sr3fd1.js";
75
+ import"./index-jx9f4ke1.js";
76
+ import"./index-aftapk6j.js";
76
77
  import"./index-ry16d01s.js";
77
78
  import"./index-n4fzmqz8.js";
78
- import"./index-j2svfhzk.js";
79
- import"./index-c4ddtrqg.js";
79
+ import"./index-axf65x87.js";
80
+ import"./index-fywshabz.js";
80
81
  import"./index-ae75rja9.js";
81
- import"./index-6rx1rdaq.js";
82
+ import"./index-a7rw4g4s.js";
82
83
  import"./index-7qefgq4j.js";
83
- import"./index-jre6tm3v.js";
84
+ import"./index-edm41q4j.js";
84
85
  import"./index-gy0nyfbw.js";
85
- import"./index-5ebgzb5a.js";
86
+ import"./index-hwj25q9r.js";
86
87
  import"./index-7g4c7s5r.js";
87
88
  import"./index-zjygnfay.js";
88
89
  import"./index-bk5tah7q.js";
@@ -101,6 +102,7 @@ export {
101
102
  removeDelegationFallback,
102
103
  releasePreparedBackgroundAdvisories,
103
104
  releaseBackgroundCoderReservation,
105
+ registerStaleSweepObserver,
104
106
  registerLegacyCoderSettlementReconciler,
105
107
  recordPendingDelegationDetailed,
106
108
  recordPendingDelegation,