pi-subagents 0.88.1 → 0.89.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 (93) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/bundle/agents.js +3 -3
  3. package/bundle/child-tool-plan.js +2 -2
  4. package/bundle/{chunk-4QFZZV3O.js → chunk-4AL6LDBY.js} +3 -1
  5. package/bundle/{chunk-5EMPFFO4.js → chunk-4FFKVLBG.js} +4 -4
  6. package/bundle/{chunk-L4YY2TOE.js → chunk-5TXWZB73.js} +1 -1
  7. package/bundle/{chunk-ZJ2BT5TI.js → chunk-6D54VW3E.js} +56 -34
  8. package/bundle/{chunk-YDZ7BZD5.js → chunk-77VQEATI.js} +1 -1
  9. package/bundle/{chunk-7OX6O7DQ.js → chunk-BERAWSQQ.js} +5 -5
  10. package/bundle/{chunk-LV3CPYXJ.js → chunk-C22YEYFZ.js} +4 -4
  11. package/bundle/{chunk-VTUUOLM4.js → chunk-CASL47ST.js} +34 -5
  12. package/bundle/{chunk-YQSTGPEU.js → chunk-F6PTAPQ3.js} +75 -32
  13. package/bundle/{chunk-FLNDHNPE.js → chunk-IGZTXGPG.js} +98 -29
  14. package/bundle/{chunk-CPSUJHZE.js → chunk-KCDPTXHT.js} +39 -10
  15. package/bundle/{chunk-PCZEQQAQ.js → chunk-LUNVS6KP.js} +26 -15
  16. package/bundle/{chunk-4MVDMA5C.js → chunk-LWH7IGI3.js} +21 -7
  17. package/bundle/{chunk-DSHQWGHO.js → chunk-MIX3MCIF.js} +96 -96
  18. package/bundle/{chunk-2DIEL4WG.js → chunk-OUM6SEVD.js} +2 -2
  19. package/bundle/{chunk-XIA5GSEU.js → chunk-Q4VH72JI.js} +2 -2
  20. package/bundle/{chunk-D32H53HM.js → chunk-R3NH5XAL.js} +1 -1
  21. package/bundle/{chunk-6OWNDN7R.js → chunk-ROJH7KPK.js} +2 -2
  22. package/bundle/{chunk-4ZQBZDF3.js → chunk-SG3NCWZW.js} +86 -20
  23. package/bundle/{chunk-KXW62VBU.js → chunk-SWGB2P5J.js} +1 -1
  24. package/bundle/{chunk-N6TAAIB3.js → chunk-TDXVQPZW.js} +5 -5
  25. package/bundle/{chunk-6CG2VAG4.js → chunk-TRN65L4F.js} +1 -1
  26. package/bundle/{chunk-GDR2ILWY.js → chunk-TXC7WIPL.js} +51 -22
  27. package/bundle/{chunk-PYKBTBY6.js → chunk-URKQZHVH.js} +9 -9
  28. package/bundle/{chunk-W6HIYD2Z.js → chunk-UUW7P6KJ.js} +1 -1
  29. package/bundle/{chunk-CYKNHFXB.js → chunk-VEEUXJDO.js} +1 -1
  30. package/bundle/{chunk-47ZN7NKR.js → chunk-YJIU5WF4.js} +1 -1
  31. package/bundle/{chunk-RMZAAXIR.js → chunk-YLU5JFW2.js} +2 -2
  32. package/bundle/control-channel.js +2 -2
  33. package/bundle/index.js +2 -2
  34. package/bundle/intercom-bridge.js +2 -2
  35. package/bundle/preflight.js +8 -8
  36. package/bundle/project-panes.js +3 -3
  37. package/docs/agents.md +10 -4
  38. package/docs/configuration.md +2 -0
  39. package/docs/extension-api.md +1 -1
  40. package/docs/tool-reference.md +1 -1
  41. package/docs/workflows.md +5 -3
  42. package/package.json +1 -1
  43. package/src/extension/herdr-pi-bridge.js +79 -23
  44. package/src/extension/schemas.js +1 -1
  45. package/src/extension/subagent-options.js +5 -0
  46. package/src/intercom/result-intercom.js +3 -2
  47. package/src/runs/background/async-job-tracker.js +85 -9
  48. package/src/runs/background/async-status.d.ts +2 -0
  49. package/src/runs/background/async-status.js +8 -3
  50. package/src/runs/background/notify.d.ts +3 -0
  51. package/src/runs/background/notify.js +7 -2
  52. package/src/runs/background/run-status.js +3 -2
  53. package/src/runs/background/runner-child-launch.js +1 -0
  54. package/src/runs/background/subagent-runner.js +11 -8
  55. package/src/runs/foreground/execution.js +8 -7
  56. package/src/runs/foreground/subagent-executor.js +31 -5
  57. package/src/runs/shared/child-launch.d.ts +2 -0
  58. package/src/runs/shared/child-launch.js +1 -1
  59. package/src/runs/shared/child-session.d.ts +2 -1
  60. package/src/runs/shared/herdr-connection.d.ts +6 -0
  61. package/src/runs/shared/herdr-connection.js +11 -1
  62. package/src/runs/shared/herdr-machine.d.ts +2 -2
  63. package/src/runs/shared/herdr-machine.js +49 -22
  64. package/src/runs/shared/herdr-pane-host.d.ts +7 -19
  65. package/src/runs/shared/herdr-pane-host.js +48 -33
  66. package/src/runs/shared/herdr-pi-protocol.d.ts +1 -0
  67. package/src/runs/shared/herdr-pi-protocol.js +3 -2
  68. package/src/runs/shared/herdr-placed-run.d.ts +2 -12
  69. package/src/runs/shared/herdr-placed-run.js +10 -8
  70. package/src/runs/shared/kept-branch-text.d.ts +8 -0
  71. package/src/runs/shared/kept-branch-text.js +24 -0
  72. package/src/runs/shared/local-machine-access.d.ts +4 -1
  73. package/src/runs/shared/local-machine-access.js +6 -3
  74. package/src/runs/shared/mutation-evidence.d.ts +7 -1
  75. package/src/runs/shared/mutation-evidence.js +18 -2
  76. package/src/runs/shared/parallel-handoff.js +19 -7
  77. package/src/runs/shared/placed-run-owner.d.ts +4 -2
  78. package/src/runs/shared/placed-run-owner.js +15 -7
  79. package/src/runs/shared/rex-machine.d.ts +7 -3
  80. package/src/runs/shared/rex-machine.js +12 -9
  81. package/src/runs/shared/rex-pane-host.js +7 -27
  82. package/src/runs/shared/single-output.js +2 -2
  83. package/src/runs/shared/subagent-prompt-runtime.js +34 -0
  84. package/src/runs/shared/tool-availability.d.ts +4 -0
  85. package/src/runs/shared/tool-availability.js +7 -0
  86. package/src/runs/shared/worktree-cleanup-plan.js +2 -2
  87. package/src/runs/shared/worktree.d.ts +4 -14
  88. package/src/runs/shared/worktree.js +38 -8
  89. package/src/shared/types.d.ts +26 -2
  90. package/src/shared/utils.d.ts +2 -0
  91. package/src/shared/utils.js +9 -0
  92. package/src/workflows/workflow-child-summary.d.ts +2 -1
  93. package/src/workflows/workflow-child-summary.js +14 -6
@@ -28,6 +28,7 @@ import {
28
28
  hostStepVerdictLabel,
29
29
  isActiveAsyncState,
30
30
  isComparablePathInside,
31
+ isWorktreeCleanupTaskDone,
31
32
  normalizeParallelGroups,
32
33
  normalizeWorktreeBaseRef,
33
34
  parseHostStepNode,
@@ -46,10 +47,10 @@ import {
46
47
  validateModelResponseAliases,
47
48
  withWorkflowChildRunModel,
48
49
  withWorktreeTransaction
49
- } from "./chunk-CPSUJHZE.js";
50
+ } from "./chunk-KCDPTXHT.js";
50
51
  import {
51
52
  validateIntercomBridgeConfig
52
- } from "./chunk-47ZN7NKR.js";
53
+ } from "./chunk-YJIU5WF4.js";
53
54
  import {
54
55
  stableJsonDigest
55
56
  } from "./chunk-7F6RKT6W.js";
@@ -58,7 +59,7 @@ import {
58
59
  } from "./chunk-YARY7JWU.js";
59
60
  import {
60
61
  missingForkCopyNote
61
- } from "./chunk-YDZ7BZD5.js";
62
+ } from "./chunk-77VQEATI.js";
62
63
  import {
63
64
  DEFAULT_FILE_SYSTEM_RETRY_DELAYS_MS,
64
65
  assertWorkflowLaneKey,
@@ -71,6 +72,7 @@ import {
71
72
  intersectThinkingCeilings,
72
73
  isDynamicParallelStep,
73
74
  isParallelStep,
75
+ isStatusAccessError,
74
76
  normalizeExtensionBindings,
75
77
  normalizeWorkflowLaneMetadata,
76
78
  parseThinkingLevel,
@@ -83,7 +85,7 @@ import {
83
85
  validateToolBudgetConfig,
84
86
  waitForFileSystemRetry,
85
87
  writeAtomicJson
86
- } from "./chunk-4MVDMA5C.js";
88
+ } from "./chunk-LWH7IGI3.js";
87
89
  import {
88
90
  DIRS,
89
91
  RUNNER_LAUNCHER_NAME_PATTERN,
@@ -545,6 +547,7 @@ function stopStoppableAsyncStatusChildren(status, stopChild, message) {
545
547
  var KEY_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
546
548
  var TERMINAL_STATES = /* @__PURE__ */ new Set(["completed", "failed", "paused", "stopped", "rejected", "detached"]);
547
549
  var MAX_REQUIRED_ID_BYTES = 4096;
550
+ var MAX_SESSION_FILE_BYTES = 4096;
548
551
  var ACTIVITY_COUNTERS = ["currentToolStartedAt", "lastActivityAt", "durationMs", "toolCount", "turnCount", "tokens", "inputTokens", "outputTokens"];
549
552
  function workflowChildProgress(progress) {
550
553
  return {
@@ -599,6 +602,7 @@ function workflowChildSummary(input) {
599
602
  ...bounded(entry.runId, 256) ? { runId: bounded(entry.runId, 256) } : {},
600
603
  ...previous?.agent ? { agent: previous.agent } : {},
601
604
  ...previous?.sessionName ? { sessionName: previous.sessionName } : {},
605
+ ...previous?.sessionFile ? { sessionFile: previous.sessionFile } : {},
602
606
  ...previous?.model ? { model: previous.model } : {},
603
607
  ...previous?.thinking ? { thinking: previous.thinking } : {}
604
608
  });
@@ -615,6 +619,7 @@ function workflowChildSummary(input) {
615
619
  ...bounded(step.runId, 256) ? { runId: bounded(step.runId, 256) } : {},
616
620
  ...launchResolved && bounded(step.agent, 256) ? { agent: bounded(step.agent, 256) } : {},
617
621
  ...bounded(step.sessionName, 256) ? { sessionName: bounded(step.sessionName, 256) } : {},
622
+ ...bounded(step.sessionFile, MAX_SESSION_FILE_BYTES) ? { sessionFile: step.sessionFile } : {},
618
623
  ...bounded(step.model, 256) ? { model: bounded(step.model, 256) } : {},
619
624
  ...bounded(step.thinking, 32) ? { thinking: bounded(step.thinking, 32) } : {}
620
625
  });
@@ -629,6 +634,7 @@ function workflowChildSummary(input) {
629
634
  ...bounded(child.runId, 256) ? { runId: bounded(child.runId, 256) } : {},
630
635
  ...bounded(child.agent, 256) ? { agent: bounded(child.agent, 256) } : {},
631
636
  ...bounded(result?.sessionName, 256) ? { sessionName: bounded(result?.sessionName, 256) } : {},
637
+ ...bounded(result?.sessionFile, MAX_SESSION_FILE_BYTES) ? { sessionFile: result?.sessionFile } : {},
632
638
  ...bounded(result?.model, 256) ? { model: bounded(result?.model, 256) } : {},
633
639
  ...bounded(result?.thinking, 32) ? { thinking: bounded(result?.thinking, 32) } : {}
634
640
  });
@@ -640,11 +646,14 @@ function workflowChildSummary(input) {
640
646
  }
641
647
  for (const [key, launch] of input.launches ?? []) {
642
648
  const row = rows.get(key);
643
- if (!row || row.state !== "running") continue;
649
+ if (!row) continue;
650
+ const running = row.state === "running";
644
651
  rows.set(key, {
645
652
  ...row,
646
- ...!row.runId && bounded(launch.runId, 256) ? { runId: launch.runId } : {},
647
- ...!row.agent && bounded(launch.agent, 256) ? { agent: launch.agent } : {}
653
+ ...running && !row.runId && bounded(launch.runId, 256) ? { runId: launch.runId } : {},
654
+ ...running && !row.agent && bounded(launch.agent, 256) ? { agent: launch.agent } : {},
655
+ // Finished rows keep it too: live updates carry no child results, so this is a settled child's only transcript link until the workflow returns.
656
+ ...!row.sessionFile && bounded(launch.sessionFile, MAX_SESSION_FILE_BYTES) ? { sessionFile: launch.sessionFile } : {}
648
657
  });
649
658
  }
650
659
  for (const [key, progress] of input.progress ?? []) {
@@ -680,16 +689,16 @@ function parseWorkflowChildSummary(value) {
680
689
  const children = input.children.map((row) => {
681
690
  if (!row || typeof row !== "object" || Array.isArray(row)) throw new Error("workflowChildren child row is invalid.");
682
691
  const child = row;
683
- if (Object.keys(child).some((key) => !["childId", "runId", "agent", "sessionName", "model", "thinking", "state", "activity"].includes(key))) throw new Error("workflowChildren child row has unsupported fields.");
692
+ if (Object.keys(child).some((key) => !["childId", "runId", "agent", "sessionName", "sessionFile", "model", "thinking", "state", "activity"].includes(key))) throw new Error("workflowChildren child row has unsupported fields.");
684
693
  if (typeof child.childId !== "string" || !KEY_PATTERN.test(child.childId)) throw new Error("workflowChildren childId is invalid.");
685
694
  const state = child.state;
686
695
  if (state !== "pending" && state !== "running" && state !== "completed" && state !== "failed" && state !== "paused" && state !== "stopped" && state !== "rejected" && state !== "detached") throw new Error("workflowChildren child state is invalid.");
687
- for (const [field, maxBytes] of [["runId", 256], ["agent", 256], ["sessionName", 256], ["model", 256], ["thinking", 32]]) {
696
+ for (const [field, maxBytes] of [["runId", 256], ["agent", 256], ["sessionName", 256], ["sessionFile", MAX_SESSION_FILE_BYTES], ["model", 256], ["thinking", 32]]) {
688
697
  if (child[field] !== void 0 && bounded(child[field], maxBytes) === void 0) throw new Error(`workflowChildren child ${field} is invalid.`);
689
698
  }
690
699
  const activity = parseActivity(child.activity);
691
700
  if (activity && state !== "running") throw new Error("workflowChildren child activity requires running state.");
692
- return { childId: child.childId, state, ...activity ? { activity } : {}, ...child.runId ? { runId: child.runId } : {}, ...child.agent ? { agent: child.agent } : {}, ...child.sessionName ? { sessionName: child.sessionName } : {}, ...child.model ? { model: child.model } : {}, ...child.thinking ? { thinking: child.thinking } : {} };
701
+ return { childId: child.childId, state, ...activity ? { activity } : {}, ...child.runId ? { runId: child.runId } : {}, ...child.agent ? { agent: child.agent } : {}, ...child.sessionName ? { sessionName: child.sessionName } : {}, ...child.sessionFile ? { sessionFile: child.sessionFile } : {}, ...child.model ? { model: child.model } : {}, ...child.thinking ? { thinking: child.thinking } : {} };
693
702
  });
694
703
  if (new Set(children.map((child) => child.childId)).size !== children.length) throw new Error("workflowChildren has duplicate childId values.");
695
704
  if (typeof input.parentToolCallId !== "string") throw new Error("workflowChildren.parentToolCallId is invalid.");
@@ -1683,6 +1692,12 @@ async function hashFileAsync(diffPath) {
1683
1692
  function splitNul(output) {
1684
1693
  return output.split("\0").filter((part) => part.length > 0);
1685
1694
  }
1695
+ function gitFailureReason(error) {
1696
+ const stderr = error && typeof error === "object" && "stderr" in error ? String(error.stderr ?? "") : "";
1697
+ if (/not a git repository/i.test(stderr)) return "not a Git work tree";
1698
+ const firstLine = (stderr || (error instanceof Error ? error.message : String(error))).split("\n").find((line) => line.trim().length > 0);
1699
+ return firstLine?.trim() ?? "git failed";
1700
+ }
1686
1701
  function hashLargeDiff(cwd, relativePath) {
1687
1702
  const tempDir = fs2.mkdtempSync(path2.join(os.tmpdir(), "pi-subagents-tracked-diff-"));
1688
1703
  const diffPath = path2.join(tempDir, "diff.patch");
@@ -1729,7 +1744,7 @@ function snapshotTrackedMutations(cwd) {
1729
1744
  for (const file of changed.paths) fingerprints[file] = fingerprintPath(cwd, file);
1730
1745
  return { source: "tracked-files", trackedOnly: true, cwd, dirtyFiles: changed.paths, fingerprints, truncated: changed.truncated };
1731
1746
  } catch (error) {
1732
- return { source: "tracked-files", trackedOnly: true, cwd, dirtyFiles: [], fingerprints: {}, unavailable: error instanceof Error ? error.message : String(error) };
1747
+ return { source: "tracked-files", trackedOnly: true, cwd, dirtyFiles: [], fingerprints: {}, unavailable: gitFailureReason(error) };
1733
1748
  }
1734
1749
  }
1735
1750
  async function fingerprintPathAsync(cwd, relativePath) {
@@ -1747,6 +1762,13 @@ async function fingerprintPathAsync(cwd, relativePath) {
1747
1762
  }
1748
1763
  }
1749
1764
  }
1765
+ function remoteMutationSnapshot(cwd) {
1766
+ return { source: "tracked-files", trackedOnly: true, cwd, dirtyFiles: [], fingerprints: {}, unavailable: "Local Git evidence is not authoritative for a pane-native remote run." };
1767
+ }
1768
+ function remoteMutationEvidence(machine) {
1769
+ const changed = machine.initialGit && machine.finalGit ? machine.initialGit.head !== machine.finalGit.head || machine.initialGit.dirty !== machine.finalGit.dirty : void 0;
1770
+ return { source: "tracked-files", trackedOnly: true, changedFiles: [], attemptedMutation: changed === true, ...changed === void 0 ? { unavailable: "Remote Git before/after evidence was incomplete." } : {} };
1771
+ }
1750
1772
  async function collectTrackedMutationEvidence(snapshot, cwd = snapshot.cwd) {
1751
1773
  if (snapshot.unavailable) {
1752
1774
  return { source: "tracked-files", trackedOnly: true, changedFiles: [], attemptedMutation: false, unavailable: snapshot.unavailable };
@@ -1772,7 +1794,7 @@ async function collectTrackedMutationEvidence(snapshot, cwd = snapshot.cwd) {
1772
1794
  truncated: snapshot.truncated || current.truncated || void 0
1773
1795
  };
1774
1796
  } catch (error) {
1775
- return { source: "tracked-files", trackedOnly: true, changedFiles: [], attemptedMutation: false, unavailable: error instanceof Error ? error.message : String(error) };
1797
+ return { source: "tracked-files", trackedOnly: true, changedFiles: [], attemptedMutation: false, unavailable: gitFailureReason(error) };
1776
1798
  }
1777
1799
  }
1778
1800
  function formatPathList(paths) {
@@ -2151,9 +2173,11 @@ function isolateCorruptActiveRun(asyncDir, runId, error, now) {
2151
2173
  }
2152
2174
  const markerCanBeReleased = processTerminal?.state === "observed" || markerAge !== void 0 && markerAge > DEFAULT_STALE_TERMINAL_ACTIVE_MARKER_MS;
2153
2175
  let markerAction = "active marker retained because runner liveness is unknown";
2176
+ let retained = true;
2154
2177
  if (markerCanBeReleased) {
2155
2178
  try {
2156
2179
  releaseActiveRunIndex(asyncDir);
2180
+ retained = false;
2157
2181
  markerAction = processTerminal?.state === "observed" ? "active marker released after observed process-terminal proof" : "stale active marker released";
2158
2182
  } catch (releaseError) {
2159
2183
  markerAction = `failed to release active marker: ${getErrorMessage(releaseError)}`;
@@ -2168,9 +2192,10 @@ function isolateCorruptActiveRun(asyncDir, runId, error, now) {
2168
2192
  }
2169
2193
  const signature = `${fileSignature}
2170
2194
  ${line}`;
2171
- if (reportedCorruptStatus.get(statusPath) === signature) return;
2195
+ if (reportedCorruptStatus.get(statusPath) === signature) return retained;
2172
2196
  reportedCorruptStatus.set(statusPath, signature);
2173
2197
  console.error(line);
2198
+ return retained;
2174
2199
  }
2175
2200
  function isNotFoundError(error) {
2176
2201
  return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
@@ -2403,6 +2428,9 @@ function statusToSummary(asyncDir, status, nestedWarnings = [], nestedRoute) {
2403
2428
  ...status.sessionFile ? { sessionFile: status.sessionFile } : {}
2404
2429
  };
2405
2430
  }
2431
+ function summarizeAsyncStatus(asyncDir, status) {
2432
+ return statusToSummary(asyncDir, status);
2433
+ }
2406
2434
  function sortRuns(runs) {
2407
2435
  const rank = (state) => {
2408
2436
  switch (state) {
@@ -2502,7 +2530,7 @@ function listAsyncRuns(asyncDirRoot, options = {}, observeStatus) {
2502
2530
  } catch (error) {
2503
2531
  observeStatus?.(null);
2504
2532
  if (!activeEntries.has(entry) || !isAsyncStatusIsolationError(asyncDir, error)) throw error;
2505
- isolateCorruptActiveRun(asyncDir, entry, error, options.now);
2533
+ if (isolateCorruptActiveRun(asyncDir, entry, error, options.now) && isStatusAccessError(error, asyncDir)) options.onUnreadableActiveRun?.(entry, asyncDir);
2506
2534
  continue;
2507
2535
  }
2508
2536
  if (!status) {
@@ -2745,6 +2773,30 @@ async function withRepositoryWorktreeLock(repo, action, options = {}) {
2745
2773
  // src/runs/shared/parallel-handoff.ts
2746
2774
  import * as fs5 from "node:fs";
2747
2775
  import * as path5 from "node:path";
2776
+
2777
+ // src/runs/shared/kept-branch-text.ts
2778
+ var KEPT_BRANCH_LINE = /^Kept branch (\S+) at ([0-9a-f]+): its commits are on no other branch\.$/;
2779
+ function readKeptBranches(value) {
2780
+ if (!Array.isArray(value)) return [];
2781
+ return value.filter((entry) => typeof entry?.branch === "string" && typeof entry?.tip === "string");
2782
+ }
2783
+ function formatKeptBranchLines(keptBranches) {
2784
+ return keptBranches.map(({ branch, tip }) => `Kept branch ${branch} at ${tip.slice(0, 12)}: its commits are on no other branch.`);
2785
+ }
2786
+ function formatParallelHandoffLines(handoffPath, keptBranches) {
2787
+ return [`Parallel handoff: ${handoffPath}`, ...formatKeptBranchLines(readKeptBranches(keptBranches))];
2788
+ }
2789
+ function parseKeptBranchLines(lines) {
2790
+ const kept = [];
2791
+ for (const line of lines) {
2792
+ const match = line.match(KEPT_BRANCH_LINE);
2793
+ if (!match) break;
2794
+ kept.push({ branch: match[1], tip: match[2] });
2795
+ }
2796
+ return kept;
2797
+ }
2798
+
2799
+ // src/runs/shared/parallel-handoff.ts
2748
2800
  function optionalIdentity(value, label) {
2749
2801
  if (value === void 0) return void 0;
2750
2802
  if (typeof value !== "string" || !value.trim()) throw new Error(`${label} must be a non-empty string.`);
@@ -2890,6 +2942,7 @@ function resolveRetainedWorktreeCwd(manifestPath, runId, childIndex, recordedWor
2890
2942
  }
2891
2943
  function referenceFor(manifestPath, manifest) {
2892
2944
  const children = manifest.groups.flatMap((group) => group.children);
2945
+ const keptBranches = manifest.groups.flatMap((group) => group.cleanup.tasks.flatMap((task) => task.keptBranchTip ? [{ branch: task.branch, tip: task.keptBranchTip }] : []));
2893
2946
  return {
2894
2947
  version: 1,
2895
2948
  path: manifestPath,
@@ -2897,6 +2950,7 @@ function referenceFor(manifestPath, manifest) {
2897
2950
  childCount: children.length,
2898
2951
  changedPatches: children.filter((child) => child.patch.changed).length,
2899
2952
  cleanupState: manifest.groups.every((group) => group.cleanup.state === "complete") ? "complete" : "partial",
2953
+ ...keptBranches.length ? { keptBranches } : {},
2900
2954
  ...Object.prototype.hasOwnProperty.call(manifest, "cleanupEligibility") ? { cleanupEligibility: trustedStoredCleanupEligibility(manifest) } : {}
2901
2955
  };
2902
2956
  }
@@ -3242,6 +3296,7 @@ function writeParallelHandoffGroupUnlocked(input) {
3242
3296
  const previous = existing?.groups.flatMap((item) => item.cleanup.tasks).find((item) => item.path === task.path && item.branch === task.branch);
3243
3297
  if (previous?.worktreeRemoved) task.worktreeRemoved = true;
3244
3298
  if (previous?.branchRemoved) task.branchRemoved = true;
3299
+ if (previous?.keptBranchTip) task.keptBranchTip = previous.keptBranchTip;
3245
3300
  if (!task.worktreeRemoved && previous?.reason?.includes("retained child resume")) {
3246
3301
  task.preserved = true;
3247
3302
  task.reason = previous.reason;
@@ -3349,10 +3404,15 @@ function writeWorktreeSetupHandoff(input) {
3349
3404
  });
3350
3405
  }
3351
3406
  function formatParallelHandoffReference(reference) {
3352
- return `Worktree handoff: ${reference.path} (${reference.childCount} children, ${reference.changedPatches} changed patches, cleanup ${reference.cleanupState})`;
3407
+ const patches = reference.changedPatches > 0 ? "; the work is in groups[].children[].patch, not applied to this checkout" : "";
3408
+ const kept = reference.cleanupState === "complete" ? "" : "; groups[].cleanup.tasks[] (reason, errors) says what stayed behind";
3409
+ return [
3410
+ `Worktree handoff: ${reference.path} (${reference.childCount} children, ${reference.changedPatches} changed patches, cleanup ${reference.cleanupState})${patches}${kept}`,
3411
+ ...formatKeptBranchLines(reference.keptBranches ?? [])
3412
+ ].join("\n");
3353
3413
  }
3354
3414
  function formatParallelHandoffError(error) {
3355
- return `Worktree handoff unavailable: ${error instanceof Error ? error.message : String(error)}`;
3415
+ return `Worktree handoff unavailable: ${error instanceof Error ? error.message : String(error)}; check \`git worktree list\` for worktrees left behind`;
3356
3416
  }
3357
3417
  function discardPreservedWorktrees(...args) {
3358
3418
  return withHandoffWriteLock(args[0], () => discardPreservedWorktreesUnlocked(...args));
@@ -3363,7 +3423,7 @@ function discardPreservedWorktreesUnlocked(manifestPath, authorization) {
3363
3423
  if (!manifest) throw new Error(`Parallel handoff manifest not found: ${resolvedPath}`);
3364
3424
  let attempted = 0;
3365
3425
  for (const group of manifest.groups) {
3366
- const pending = group.cleanup.tasks.filter((task) => task.preserved && (!task.worktreeRemoved || !task.branchRemoved));
3426
+ const pending = group.cleanup.tasks.filter((task) => task.preserved && !isWorktreeCleanupTaskDone(task));
3367
3427
  if (pending.length === 0) continue;
3368
3428
  attempted += pending.length;
3369
3429
  const report = cleanupWorktrees({
@@ -3381,11 +3441,11 @@ function discardPreservedWorktreesUnlocked(manifestPath, authorization) {
3381
3441
  syntheticPaths: []
3382
3442
  }))
3383
3443
  }, { kind: "discard", authorization });
3384
- const updates = new Map(report.tasks.map((task) => [task.index, task.worktreeRemoved && task.branchRemoved ? task : { ...task, preserved: true, reason: task.reason ?? "discard cleanup remains incomplete" }]));
3444
+ const updates = new Map(report.tasks.map((task) => [task.index, isWorktreeCleanupTaskDone(task) ? task : { ...task, preserved: true, reason: task.reason ?? "discard cleanup remains incomplete" }]));
3385
3445
  group.cleanup = {
3386
3446
  state: group.cleanup.tasks.every((task) => {
3387
3447
  const next = updates.get(task.index) ?? task;
3388
- return next.worktreeRemoved && next.branchRemoved;
3448
+ return isWorktreeCleanupTaskDone(next);
3389
3449
  }) && report.pruned ? "complete" : "partial",
3390
3450
  tasks: group.cleanup.tasks.map((task) => updates.get(task.index) ?? task),
3391
3451
  pruned: report.pruned,
@@ -3394,7 +3454,7 @@ function discardPreservedWorktreesUnlocked(manifestPath, authorization) {
3394
3454
  }
3395
3455
  manifest.updatedAt = Date.now();
3396
3456
  writeAtomicJson(resolvedPath, manifest);
3397
- const remaining = manifest.groups.flatMap((group) => group.cleanup.tasks.map((task) => ({ group, task }))).filter(({ task }) => task.preserved && (!task.worktreeRemoved || !task.branchRemoved));
3457
+ const remaining = manifest.groups.flatMap((group) => group.cleanup.tasks.map((task) => ({ group, task }))).filter(({ task }) => task.preserved && !isWorktreeCleanupTaskDone(task));
3398
3458
  const lines = attempted === 0 ? [`No preserved worktrees remain in ${resolvedPath}.`] : [`Discard processed ${attempted} preserved worktree${attempted === 1 ? "" : "s"}.`, `Manifest: ${resolvedPath}`];
3399
3459
  if (remaining.length > 0) {
3400
3460
  lines.push("", "Some worktrees remain. Inspect and remove them manually if appropriate:");
@@ -4164,6 +4224,8 @@ export {
4164
4224
  projectAsyncWorkflowRows,
4165
4225
  projectAsyncStatusSnapshot,
4166
4226
  snapshotTrackedMutations,
4227
+ remoteMutationSnapshot,
4228
+ remoteMutationEvidence,
4167
4229
  collectTrackedMutationEvidence,
4168
4230
  projectTimeoutRecovery,
4169
4231
  formatTimeoutRecoveryLines,
@@ -4173,6 +4235,7 @@ export {
4173
4235
  formatWorkflowChecklistPhase,
4174
4236
  formatWorkflowChecklistBottleneck,
4175
4237
  formatWorkflowChecklistText,
4238
+ summarizeAsyncStatus,
4176
4239
  listAsyncRuns,
4177
4240
  formatWorkflowStageLine,
4178
4241
  formatAsyncRunOutputPath,
@@ -4182,6 +4245,9 @@ export {
4182
4245
  utf8Tail,
4183
4246
  withHandoffWriteLock,
4184
4247
  withRepositoryWorktreeLock,
4248
+ readKeptBranches,
4249
+ formatParallelHandoffLines,
4250
+ parseKeptBranchLines,
4185
4251
  readParallelHandoffManifest,
4186
4252
  protectRetainedWorktreeForResume,
4187
4253
  resolveRetainedWorktreeCwd,
@@ -8,7 +8,7 @@ import {
8
8
  validateCodeOwnedProfileRunner,
9
9
  validatePermissionRules,
10
10
  validateToolBudgetConfig
11
- } from "./chunk-4MVDMA5C.js";
11
+ } from "./chunk-LWH7IGI3.js";
12
12
 
13
13
  // src/agents/runtime-agent-registry.ts
14
14
  var RUNTIME_AGENT_REGISTRY_KEY = "pi-subagents.runtime-agents.v1";
@@ -8,7 +8,7 @@ import {
8
8
  projectTimeoutRecovery,
9
9
  readAsyncRecoveryDescriptor,
10
10
  utf8Tail
11
- } from "./chunk-4ZQBZDF3.js";
11
+ } from "./chunk-SG3NCWZW.js";
12
12
  import {
13
13
  MAX_ARGS_BYTES,
14
14
  MAX_ARGS_DEPTH,
@@ -21,10 +21,10 @@ import {
21
21
  resultFilePath,
22
22
  resultPayloadMatchesSessionRun,
23
23
  resultPayloadPathForSessionRun
24
- } from "./chunk-CPSUJHZE.js";
24
+ } from "./chunk-KCDPTXHT.js";
25
25
  import {
26
26
  PROJECT_SUBAGENTS_RELATIVE_DIR
27
- } from "./chunk-YDZ7BZD5.js";
27
+ } from "./chunk-77VQEATI.js";
28
28
  import {
29
29
  listBackgroundWorkWakeChannels,
30
30
  snapshotBackgroundWork
@@ -50,7 +50,7 @@ import {
50
50
  waitToolName,
51
51
  withSettingsFileLease,
52
52
  writePrivateAtomicJson
53
- } from "./chunk-4MVDMA5C.js";
53
+ } from "./chunk-LWH7IGI3.js";
54
54
  import {
55
55
  DIRS,
56
56
  INTERCOM_DETACH_REQUEST_EVENT,
@@ -906,7 +906,7 @@ var SubagentParamProperties = {
906
906
  usageBudget: Type2.Optional(UsageBudgetOverride),
907
907
  agentScope: Type2.Optional(Type2.String({ description: "user/project/both (default); project wins collisions." })),
908
908
  cwd: Type2.Optional(Type2.String({ description: "Execution/project-pane directory." })),
909
- machine: Type2.Optional(Type2.String({ minLength: 1, maxLength: 128, description: 'Herdr saved machine id or label (runs an external CLI agent), a Rex host named in settings (runs a Pi child), or "local" (a Pi child in a Rex pane here). On another machine, cwd is a directory there.' })),
909
+ machine: Type2.Optional(Type2.String({ minLength: 1, maxLength: 128, description: 'Herdr saved machine id or label (runs an external CLI agent), a Rex host named in settings (runs a Pi child), or "local" (a Pi child in a new tab of the Herdr or Rex session this Pi runs in). On another machine, cwd is a directory there.' })),
910
910
  requireLauncher: Type2.Optional(Type2.Object({
911
911
  name: Type2.String({ pattern: RUNNER_LAUNCHER_NAME_PATTERN.source }),
912
912
  definitionDigest: Type2.String({ pattern: "^[0-9a-f]{64}$" })
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "pi-subagents",
4
- version: "0.88.1",
4
+ version: "0.89.1",
5
5
  private: true,
6
6
  description: "Pi extension for single-agent delegation and scripted multi-agent workflows",
7
7
  author: "Nico Bailon",
@@ -3,8 +3,9 @@ import {
3
3
  REX_LOCAL_MACHINE,
4
4
  getAgentDir,
5
5
  getProjectConfigDir,
6
+ resolveLocalLaunchCwd,
6
7
  resolveRexLocalPlacement
7
- } from "./chunk-4MVDMA5C.js";
8
+ } from "./chunk-LWH7IGI3.js";
8
9
 
9
10
  // src/runs/shared/herdr-machine.ts
10
11
  import { spawnSync as spawnSync2 } from "node:child_process";
@@ -54,12 +55,20 @@ function decodeHerdrJsonLine(line) {
54
55
  function shellQuoteRemote(value) {
55
56
  return `'${value.replaceAll("'", "'\\''")}'`;
56
57
  }
58
+ function shellScriptCommand(script, args = []) {
59
+ return `sh -c ${shellQuoteRemote(script)} sh${args.map((arg) => ` ${shellQuoteRemote(arg)}`).join("")}`;
60
+ }
57
61
  function remoteShellCommand(script, args = []) {
58
- return `sh -c ${shellQuoteRemote(`PATH="${HERDR_REMOTE_PATH}"; export PATH; ${script}`)} sh${args.map((arg) => ` ${shellQuoteRemote(arg)}`).join("")}`;
62
+ return shellScriptCommand(`PATH="${HERDR_REMOTE_PATH}"; export PATH; ${script}`, args);
59
63
  }
60
64
  function canonicalHerdrSession(session) {
61
65
  return session && session !== "default" ? session : null;
62
66
  }
67
+ function herdrLocalEnv(socket, session, source) {
68
+ const { HERDR_SESSION: _session, HERDR_CLIENT_SOCKET_PATH: _client, HERDR_PANE_ID: _pane, HERDR_ENV: _env, HERDR_SOCKET_PATH: _socket, ...env } = source;
69
+ const selected = canonicalHerdrSession(session);
70
+ return { ...env, HERDR_SOCKET_PATH: socket, ...selected ? { HERDR_SESSION: selected } : {} };
71
+ }
63
72
  function sshEnvCommand(session, command) {
64
73
  const selected = canonicalHerdrSession(session), assignment = selected ? ` HERDR_SESSION=${shellQuoteRemote(selected)}` : "";
65
74
  return `/usr/bin/env -u HERDR_SOCKET_PATH -u HERDR_SESSION${assignment} ${remoteShellCommand(command)}`;
@@ -393,20 +402,13 @@ function parseMachineCatalog(json) {
393
402
  });
394
403
  }
395
404
  function readHerdrMachineCatalog(env, herdrBin) {
396
- const result = spawnSync2(herdrBin, ["machine", "list", "--json"], {
397
- env,
398
- encoding: "utf-8",
399
- maxBuffer: MAX_HERDR_MACHINE_LIST_BYTES,
400
- timeout: HERDR_MACHINE_LIST_TIMEOUT_MS,
401
- windowsHide: true
402
- });
403
- if (result.error) {
404
- const code = result.error.code;
405
- if (code === "ENOENT") throw new Error(`Herdr CLI '${herdrBin}' was not found on PATH. Saved-machine placement needs Herdr installed locally.`);
406
- throw new Error(`Failed to run herdr machine list --json: ${result.error.message}`);
407
- }
408
- if (result.status !== 0) throw new Error(`herdr machine list --json exited with code ${result.status}: ${(result.stderr || result.stdout).trim()}`);
409
- return parseMachineCatalog(result.stdout);
405
+ return parseMachineCatalog(runLocalHerdr(herdrBin, ["machine", "list", "--json"], env, `Herdr CLI '${herdrBin}' was not found on PATH. Saved-machine placement needs Herdr installed locally.`));
406
+ }
407
+ function runLocalHerdr(bin, args, env, notFound) {
408
+ const result = spawnSync2(bin, args, { env, encoding: "utf-8", maxBuffer: MAX_HERDR_MACHINE_LIST_BYTES, timeout: HERDR_MACHINE_LIST_TIMEOUT_MS, windowsHide: true });
409
+ if (result.error) throw new Error(result.error.code === "ENOENT" ? notFound : `Failed to run herdr ${args.join(" ")}: ${result.error.message}`, { cause: result.error });
410
+ if (result.status !== 0) throw new Error(`herdr ${args.join(" ")} exited with code ${result.status}: ${(result.stderr || result.stdout).trim().slice(0, 512)}`);
411
+ return result.stdout;
410
412
  }
411
413
  function selectMachine(catalog, requested) {
412
414
  const byId = catalog.find((entry) => entry.id === requested);
@@ -513,12 +515,35 @@ function resolveHerdrMachinePlacement(input) {
513
515
  ...settings?.env ? { env: settings.env } : {}
514
516
  };
515
517
  }
518
+ function resolveHerdrLocalPlacement(input) {
519
+ if (process.platform === "win32") throw new Error("Machine 'local' runs the child in a Herdr pane, which is not supported on Windows.");
520
+ const env = input.env, paneId = env.HERDR_PANE_ID.trim(), bin = input.herdrBin ?? env.HERDR_BIN ?? "herdr", notFound = `Machine 'local' needs the Herdr CLI, but '${bin}' was not found on PATH.`;
521
+ let endpoint;
522
+ try {
523
+ endpoint = parseHerdrEndpoint(runLocalHerdr(bin, ["status", "server", "--json"], env, notFound), env.HERDR_SESSION);
524
+ } catch (error) {
525
+ throw new Error(`Machine 'local' could not confirm this pane's Herdr server: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
526
+ }
527
+ let pane;
528
+ try {
529
+ pane = JSON.parse(runLocalHerdr(bin, ["pane", "get", paneId], herdrLocalEnv(endpoint.socket, endpoint.session, env), notFound));
530
+ } catch (error) {
531
+ throw new Error(`Machine 'local' needs this Pi's Herdr pane ${paneId}, but the Herdr server at ${endpoint.socket} did not return it: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
532
+ }
533
+ const result = pane?.result;
534
+ if (result?.type !== "pane_info" || result.pane?.pane_id !== paneId) throw new Error(`The Herdr server at ${endpoint.socket} did not confirm pane ${paneId}.`);
535
+ return { provider: "herdr", id: REX_LOCAL_MACHINE, socket: endpoint.socket, ...endpoint.session ? { session: endpoint.session } : {}, cwd: resolveLocalLaunchCwd(input.cwd, input.stepCwd) };
536
+ }
516
537
  function resolveMachinePlacement(input) {
517
538
  const requested = validateMachineName(input.machine);
518
539
  const settings = input.settings ?? readMachineSettings(input.cwd, [requested]);
519
540
  if (requested === REX_LOCAL_MACHINE) {
520
- if (settings?.rex) throw new Error("Machine 'local' is reserved for a Rex pane on this machine; give the Rex SSH host in subagents.machines.local.rex another name.");
521
- return { machine: resolveRexLocalPlacement({ cwd: input.cwd, stepCwd: input.stepCwd, env: input.env }) };
541
+ if (settings?.rex) throw new Error("Machine 'local' is reserved for a new tab on this machine; give the Rex SSH host in subagents.machines.local.rex another name.");
542
+ const env = input.env ?? process.env;
543
+ if (env.HERDR_ENV === "1" && env.HERDR_PANE_ID?.trim()) return { machine: resolveHerdrLocalPlacement({ cwd: input.cwd, stepCwd: input.stepCwd, env, herdrBin: input.herdrBin }) };
544
+ if (env.REX_SESSION?.trim()) return { machine: resolveRexLocalPlacement({ cwd: input.cwd, stepCwd: input.stepCwd, env }) };
545
+ const core = env.HC_TERMINAL_ID?.trim() ? " It runs in a Herdr Core terminal (HC_TERMINAL_ID), which machine 'local' does not support." : "";
546
+ throw new Error(`Machine 'local' opens the child in a new tab of the terminal this Pi runs in, but this Pi is running in neither Herdr (HERDR_ENV=1 with HERDR_PANE_ID) nor Rex (REX_SESSION).${core}`);
522
547
  }
523
548
  if (settings?.rex) return { machine: { provider: "rex", id: requested, target: settings.rex.ssh, cwd: validateRemoteCwd(remoteMachineCwd(input.stepCwd, settings.cwd, requested), requested) } };
524
549
  return resolveHerdrMachinePlacement(input);
@@ -527,16 +552,17 @@ var PLACED_RESTORE_UNSUPPORTED = "Pane-native remote Pi does not support fork, r
527
552
  function formatHerdrMachineRunnerUnsupported(input) {
528
553
  if (input.machine === void 0) return void 0;
529
554
  const name = input.machine.trim();
555
+ const local = name === REX_LOCAL_MACHINE;
530
556
  let rex;
531
557
  try {
532
- rex = name === REX_LOCAL_MACHINE || userRexMachine(name);
558
+ rex = local || userRexMachine(name);
533
559
  } catch (error) {
534
560
  return error instanceof Error ? error.message : String(error);
535
561
  }
536
562
  if (rex) {
537
- if (input.runnerType !== void 0 && input.runnerType !== "pi") return `Agent '${input.agentName}' requested machine '${name}', but Rex supports native Pi children only. Remove the machine or use a native Pi agent.`;
563
+ if (input.runnerType !== void 0 && input.runnerType !== "pi") return `Agent '${input.agentName}' requested machine '${name}', but ${local ? "machine 'local' runs" : "Rex supports"} native Pi children only. Remove the machine or use a native Pi agent.`;
538
564
  if (input.worktree === true) return `Agent '${input.agentName}' requested machine '${name}', but managed worktrees cannot be combined with machine placement.`;
539
- if (process.platform === "win32") return `Machine '${name}' runs the child in a Rex pane, which is not supported on Windows.`;
565
+ if (process.platform === "win32") return `Machine '${name}' runs the child in ${local ? "a Herdr or Rex pane" : "a Rex pane"}, which is not supported on Windows.`;
540
566
  return void 0;
541
567
  }
542
568
  if (input.runnerType !== void 0 && input.runnerType !== "pi" && input.runnerType !== "external-cli") {
@@ -551,8 +577,11 @@ function formatHerdrMachineRunnerUnsupported(input) {
551
577
  }
552
578
 
553
579
  export {
554
- remoteShellCommand,
580
+ shellScriptCommand,
581
+ herdrLocalEnv,
555
582
  runBoundedCommand,
583
+ parseHerdrEndpoint,
584
+ SocketRpcClient,
556
585
  sshMachineAccess,
557
586
  connectHerdrMachine,
558
587
  resolveMachinePlacement,
@@ -7,37 +7,37 @@ import {
7
7
  safeTranscriptEvent,
8
8
  steerAsyncRun,
9
9
  steerWorkflowForegroundTarget
10
- } from "./chunk-7OX6O7DQ.js";
10
+ } from "./chunk-BERAWSQQ.js";
11
11
  import {
12
12
  FLEET_STATUS_WIDGET_KEY,
13
13
  runningTone,
14
14
  stepTaskSummary
15
- } from "./chunk-5EMPFFO4.js";
15
+ } from "./chunk-4FFKVLBG.js";
16
16
  import {
17
17
  foregroundChildStateLabel,
18
18
  formatAsyncRunTranscript,
19
19
  stopAsyncRun
20
- } from "./chunk-LV3CPYXJ.js";
20
+ } from "./chunk-C22YEYFZ.js";
21
21
  import {
22
22
  contextModeBadge,
23
23
  contextModeLabel,
24
24
  decodeUtf8Tail,
25
25
  listAsyncRuns
26
- } from "./chunk-4ZQBZDF3.js";
26
+ } from "./chunk-SG3NCWZW.js";
27
27
  import {
28
28
  reportSessionWarning
29
29
  } from "./chunk-HXRB42AF.js";
30
- import "./chunk-CPSUJHZE.js";
31
- import "./chunk-W6HIYD2Z.js";
30
+ import "./chunk-KCDPTXHT.js";
31
+ import "./chunk-UUW7P6KJ.js";
32
32
  import "./chunk-NIXWDZZV.js";
33
- import "./chunk-47ZN7NKR.js";
33
+ import "./chunk-YJIU5WF4.js";
34
34
  import "./chunk-7F6RKT6W.js";
35
35
  import "./chunk-YARY7JWU.js";
36
36
  import "./chunk-7J4ZXMY7.js";
37
37
  import {
38
38
  getArtifactPaths,
39
39
  getArtifactsDir
40
- } from "./chunk-YDZ7BZD5.js";
40
+ } from "./chunk-77VQEATI.js";
41
41
  import {
42
42
  snapshotExternalRuns
43
43
  } from "./chunk-UKG4V45O.js";
@@ -49,7 +49,7 @@ import {
49
49
  formatTokens,
50
50
  readStatus,
51
51
  shortenPath
52
- } from "./chunk-4MVDMA5C.js";
52
+ } from "./chunk-LWH7IGI3.js";
53
53
  import {
54
54
  DIRS
55
55
  } from "./chunk-JEZOSEWG.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  resolveWatchPath,
6
6
  writeAtomicJson
7
- } from "./chunk-4MVDMA5C.js";
7
+ } from "./chunk-LWH7IGI3.js";
8
8
  import {
9
9
  POLL_INTERVAL_MS
10
10
  } from "./chunk-JEZOSEWG.js";
@@ -11,7 +11,7 @@ import {
11
11
  readStatus,
12
12
  writeAtomicJson,
13
13
  writePrivateAtomicJson
14
- } from "./chunk-4MVDMA5C.js";
14
+ } from "./chunk-LWH7IGI3.js";
15
15
  import {
16
16
  ASYNC_DIR,
17
17
  INTERCOM_DETACH_REQUEST_EVENT,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-7F6RKT6W.js";
4
4
  import {
5
5
  getAgentDir
6
- } from "./chunk-4MVDMA5C.js";
6
+ } from "./chunk-LWH7IGI3.js";
7
7
 
8
8
  // src/intercom/intercom-bridge.ts
9
9
  import * as fs from "node:fs";
@@ -11,13 +11,13 @@ import {
11
11
  validateAuthorityPolicy,
12
12
  validateMissionStoreConfig,
13
13
  validateModelResponseAliases
14
- } from "./chunk-CPSUJHZE.js";
14
+ } from "./chunk-KCDPTXHT.js";
15
15
  import {
16
16
  getAgentDir,
17
17
  readStatus,
18
18
  validatePermissionConfig,
19
19
  writePrivateAtomicJson
20
- } from "./chunk-4MVDMA5C.js";
20
+ } from "./chunk-LWH7IGI3.js";
21
21
  import {
22
22
  FLEET_KEYBINDING_ACTIONS,
23
23
  RUNNER_LAUNCHER_NAME_PATTERN,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  requestAsyncStop
3
- } from "./chunk-W6HIYD2Z.js";
3
+ } from "./chunk-UUW7P6KJ.js";
4
4
  import "./chunk-NIXWDZZV.js";
5
- import "./chunk-4MVDMA5C.js";
5
+ import "./chunk-LWH7IGI3.js";
6
6
  import "./chunk-JEZOSEWG.js";
7
7
  import "./chunk-YFCK7H2S.js";
8
8
  import "./chunk-QXASAHIA.js";