glimmervoid 0.51.1-next.656 → 0.51.1-next.658

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 (102) hide show
  1. package/dist/bin/glimmervoid.js +11 -11
  2. package/dist/chunks/{adapters-BBs-OckB.js → adapters-CelEKFSU.js} +2 -2
  3. package/dist/chunks/{adapters-CLSQ3VXb.js → adapters-D406ZeSJ.js} +1 -1
  4. package/dist/chunks/{agent-api-cli-Bg94bZH6.js → agent-api-cli-BVVdUXfX.js} +1 -1
  5. package/dist/chunks/{agent-api-cli-DDiInfYR.js → agent-api-cli-V7_noMcp.js} +1 -1
  6. package/dist/chunks/{agent-api-core-D6OOPWzo.js → agent-api-core-Bsy4NVee.js} +23 -2
  7. package/dist/chunks/{child-process-safe-D-aYiDnX.js → child-process-safe-BIh8yQ0I.js} +31 -1
  8. package/dist/chunks/child-process-safe-D5RpuuyW.js +1 -0
  9. package/dist/chunks/{git-version-5bFHvYor.js → git-version-BfOQqktJ.js} +1 -1
  10. package/dist/chunks/{kimi-Bz8ag6OP.js → kimi-90IC3Zhg.js} +1 -1
  11. package/dist/chunks/kimi-BDCF5M-_.js +1 -0
  12. package/dist/chunks/{main-BOq2WFyR.js → main-UUvKAgFb.js} +264 -66
  13. package/dist/chunks/{pr-flows-cli-3G9O9RVx.js → pr-flows-cli-DSBz1qeW.js} +3 -3
  14. package/dist/chunks/{pr-flows-external-Cot_-U0y.js → pr-flows-external-D_-egvLq.js} +1 -1
  15. package/dist/chunks/{settings-cli-9Sl_QsOH.js → settings-cli-CN4kxNWg.js} +1 -1
  16. package/dist/chunks/{ssh-sign-cli-bUndk6hJ.js → ssh-sign-cli-BBrY0H6A.js} +2 -2
  17. package/dist/client/assets/{benchmark-panel-CoVhGRiw.js → benchmark-panel-C5UVQniP.js} +1 -1
  18. package/dist/client/assets/benchmark-panel-C5UVQniP.js.br +0 -0
  19. package/dist/client/assets/{boards-view-BtU9BBNK.js → boards-view-BNb--VOD.js} +1 -1
  20. package/dist/client/assets/boards-view-BNb--VOD.js.br +0 -0
  21. package/dist/client/assets/{community-panel-DQcP6j2q.js → community-panel-BLGjTEbr.js} +1 -1
  22. package/dist/client/assets/community-panel-BLGjTEbr.js.br +0 -0
  23. package/dist/client/assets/{dialogs-BWClap32.js → dialogs-CdtwjoAj.js} +1 -1
  24. package/dist/client/assets/dialogs-CdtwjoAj.js.br +0 -0
  25. package/dist/client/assets/{doc-editor-ui-Uzuh6af0.js → doc-editor-ui-QbvVV1Pf.js} +1 -1
  26. package/dist/client/assets/doc-editor-ui-QbvVV1Pf.js.br +0 -0
  27. package/dist/client/assets/{feature-hint-qcLHjUKL.js → feature-hint-B-lIRg3s.js} +1 -1
  28. package/dist/client/assets/feature-hint-B-lIRg3s.js.br +0 -0
  29. package/dist/client/assets/{first-run-checklist-DIGpCJHv.js → first-run-checklist-Cpf-SeoF.js} +1 -1
  30. package/dist/client/assets/first-run-checklist-Cpf-SeoF.js.br +0 -0
  31. package/dist/client/assets/{hooks-panel-DznxjwK-.js → hooks-panel-NepGYIrY.js} +1 -1
  32. package/dist/client/assets/hooks-panel-NepGYIrY.js.br +0 -0
  33. package/dist/client/assets/{index-BGlXT__0.js → index-DReX-AZ_.js} +5 -5
  34. package/dist/client/assets/index-DReX-AZ_.js.br +0 -0
  35. package/dist/client/assets/{issues-panel-DwB_OuUw.js → issues-panel-CUCxyjHk.js} +1 -1
  36. package/dist/client/assets/issues-panel-CUCxyjHk.js.br +0 -0
  37. package/dist/client/assets/{lane-read-token-step-AUOrQB2-.js → lane-read-token-step-BlEFQF0f.js} +1 -1
  38. package/dist/client/assets/lane-read-token-step-BlEFQF0f.js.br +0 -0
  39. package/dist/client/assets/{my-prs-panel-CITUltFT.js → my-prs-panel-DxHJWsdw.js} +1 -1
  40. package/dist/client/assets/my-prs-panel-DxHJWsdw.js.br +0 -0
  41. package/dist/client/assets/{nyan-cat-FdcKECoN.js → nyan-cat-kKvi_XrJ.js} +1 -1
  42. package/dist/client/assets/nyan-cat-kKvi_XrJ.js.br +0 -0
  43. package/dist/client/assets/{phone-shell-CBCVFoGv.js → phone-shell-DWGOgDEW.js} +1 -1
  44. package/dist/client/assets/phone-shell-DWGOgDEW.js.br +0 -0
  45. package/dist/client/assets/{plan-face-mWUTOUaK.js → plan-face-BngqDdtM.js} +1 -1
  46. package/dist/client/assets/plan-face-BngqDdtM.js.br +0 -0
  47. package/dist/client/assets/{plan-render-n_PFvS9T.js → plan-render-Ctqb0jUi.js} +1 -1
  48. package/dist/client/assets/plan-render-Ctqb0jUi.js.br +0 -0
  49. package/dist/client/assets/{pr-queue-columns-BLQB68aP.js → pr-queue-columns-CYYsHbeE.js} +1 -1
  50. package/dist/client/assets/pr-queue-columns-CYYsHbeE.js.br +0 -0
  51. package/dist/client/assets/{radar-panel-B1h-yPzj.js → radar-panel-Co6mNh0Y.js} +1 -1
  52. package/dist/client/assets/radar-panel-Co6mNh0Y.js.br +0 -0
  53. package/dist/client/assets/{repo-roots-adder-BIUHC9Ri.js → repo-roots-adder-CCjrU4d3.js} +1 -1
  54. package/dist/client/assets/repo-roots-adder-CCjrU4d3.js.br +0 -0
  55. package/dist/client/assets/{resume-dialog-tPsKUJ3O.js → resume-dialog-DwnO1h1c.js} +1 -1
  56. package/dist/client/assets/resume-dialog-DwnO1h1c.js.br +0 -0
  57. package/dist/client/assets/{review-queue-panel-D3-6JboL.js → review-queue-panel-DJydHO4N.js} +1 -1
  58. package/dist/client/assets/review-queue-panel-DJydHO4N.js.br +0 -0
  59. package/dist/client/assets/{settings-panel-DsniemSU.js → settings-panel-QyMx9xHk.js} +2 -2
  60. package/dist/client/assets/settings-panel-QyMx9xHk.js.br +0 -0
  61. package/dist/client/assets/{shown-face-DejGJFtk.js → shown-face-BucD4wNI.js} +1 -1
  62. package/dist/client/assets/shown-face-BucD4wNI.js.br +0 -0
  63. package/dist/client/assets/{trace-panel-Dq3vRX18.js → trace-panel-DMaJs9-u.js} +1 -1
  64. package/dist/client/assets/trace-panel-DMaJs9-u.js.br +0 -0
  65. package/dist/client/assets/{usage-panel-CTwhMakg.js → usage-panel-BW4-KxgX.js} +1 -1
  66. package/dist/client/assets/usage-panel-BW4-KxgX.js.br +0 -0
  67. package/dist/client/assets/{your-day-tip-B_hdSXzz.js → your-day-tip-CMPAi8RI.js} +1 -1
  68. package/dist/client/assets/your-day-tip-CMPAi8RI.js.br +0 -0
  69. package/dist/client/index.html +1 -1
  70. package/dist/client/index.html.br +0 -0
  71. package/dist/server/index.js +1 -1
  72. package/dist/session/hook-tool-relay.js +1 -1
  73. package/dist/session/statusline-relay.js +1 -1
  74. package/package.json +1 -1
  75. package/dist/chunks/child-process-safe-BQXXguZm.js +0 -1
  76. package/dist/chunks/kimi-Do62c3Gf.js +0 -1
  77. package/dist/client/assets/benchmark-panel-CoVhGRiw.js.br +0 -0
  78. package/dist/client/assets/boards-view-BtU9BBNK.js.br +0 -0
  79. package/dist/client/assets/community-panel-DQcP6j2q.js.br +0 -0
  80. package/dist/client/assets/dialogs-BWClap32.js.br +0 -0
  81. package/dist/client/assets/doc-editor-ui-Uzuh6af0.js.br +0 -0
  82. package/dist/client/assets/feature-hint-qcLHjUKL.js.br +0 -0
  83. package/dist/client/assets/first-run-checklist-DIGpCJHv.js.br +0 -0
  84. package/dist/client/assets/hooks-panel-DznxjwK-.js.br +0 -0
  85. package/dist/client/assets/index-BGlXT__0.js.br +0 -0
  86. package/dist/client/assets/issues-panel-DwB_OuUw.js.br +0 -0
  87. package/dist/client/assets/lane-read-token-step-AUOrQB2-.js.br +0 -0
  88. package/dist/client/assets/my-prs-panel-CITUltFT.js.br +0 -0
  89. package/dist/client/assets/nyan-cat-FdcKECoN.js.br +0 -0
  90. package/dist/client/assets/phone-shell-CBCVFoGv.js.br +0 -0
  91. package/dist/client/assets/plan-face-mWUTOUaK.js.br +0 -0
  92. package/dist/client/assets/plan-render-n_PFvS9T.js.br +0 -0
  93. package/dist/client/assets/pr-queue-columns-BLQB68aP.js.br +0 -3
  94. package/dist/client/assets/radar-panel-B1h-yPzj.js.br +0 -0
  95. package/dist/client/assets/repo-roots-adder-BIUHC9Ri.js.br +0 -0
  96. package/dist/client/assets/resume-dialog-tPsKUJ3O.js.br +0 -0
  97. package/dist/client/assets/review-queue-panel-D3-6JboL.js.br +0 -0
  98. package/dist/client/assets/settings-panel-DsniemSU.js.br +0 -0
  99. package/dist/client/assets/shown-face-DejGJFtk.js.br +0 -0
  100. package/dist/client/assets/trace-panel-Dq3vRX18.js.br +0 -0
  101. package/dist/client/assets/usage-panel-CTwhMakg.js.br +0 -0
  102. package/dist/client/assets/your-day-tip-B_hdSXzz.js.br +0 -0
@@ -4,10 +4,10 @@ import { i as errorText } from "../chunks/text-DoirglWV.js";
4
4
  import { a as packageRoot } from "../chunks/runtime-paths-CYwF658V.js";
5
5
  import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
6
6
  import { t as AGENT_API_VERBS } from "../chunks/session-BSGnvWLZ.js";
7
- import { a as execSync } from "../chunks/child-process-safe-D-aYiDnX.js";
8
- import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-D6OOPWzo.js";
7
+ import { a as execSync } from "../chunks/child-process-safe-BIh8yQ0I.js";
8
+ import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-Bsy4NVee.js";
9
9
  import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
10
- import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-5bFHvYor.js";
10
+ import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-BfOQqktJ.js";
11
11
  import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
12
12
  import fs from "node:fs";
13
13
  import path from "node:path";
@@ -74,15 +74,15 @@ var OWNED_COMMAND_RUNNERS = {
74
74
  return runAgentSetupCli();
75
75
  },
76
76
  settings: async (parsed) => {
77
- const { runParsedSettingsCli } = await import("../chunks/settings-cli-9Sl_QsOH.js");
77
+ const { runParsedSettingsCli } = await import("../chunks/settings-cli-CN4kxNWg.js");
78
78
  return runParsedSettingsCli(parsed);
79
79
  },
80
80
  "pr-flows": async (parsed) => {
81
- const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-3G9O9RVx.js");
81
+ const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-DSBz1qeW.js");
82
82
  return runPrFlowsCheckCli(parsed);
83
83
  },
84
84
  "ssh-sign": async ({ rawArgs }) => {
85
- const { runSshSignCli } = await import("../chunks/ssh-sign-cli-bUndk6hJ.js");
85
+ const { runSshSignCli } = await import("../chunks/ssh-sign-cli-BBrY0H6A.js");
86
86
  return runSshSignCli(rawArgs);
87
87
  }
88
88
  };
@@ -104,7 +104,7 @@ async function runOwnedCommand(name, subcommandArgs) {
104
104
  return OWNED_COMMAND_RUNNERS[name](parsed);
105
105
  }
106
106
  var SUBCOMMAND_RUNNERS = new Map([...Object.keys(OWNED_COMMAND_SPECS).filter(isOwnedCommandName).map((name) => [name, (subcommandArgs) => runOwnedCommand(name, subcommandArgs)]), ...AGENT_API_VERBS.filter((verb) => !isOwnedCommandName(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
107
- const { runAgentApiCli } = await import("../chunks/agent-api-cli-DDiInfYR.js");
107
+ const { runAgentApiCli } = await import("../chunks/agent-api-cli-V7_noMcp.js");
108
108
  return runAgentApiCli([subcommandName, ...subcommandArgs]);
109
109
  }])]);
110
110
  var AGENT_INSTALL_COMMAND_BY_ID = {
@@ -118,7 +118,7 @@ function missingAgentText(agentId) {
118
118
  }
119
119
  async function printSessionLimits() {
120
120
  if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
121
- const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-DDiInfYR.js");
121
+ const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-V7_noMcp.js");
122
122
  const limitsLines = await sessionLimitsHelpLines();
123
123
  console.log(`\n${limitsLines.join("\n")}`);
124
124
  }
@@ -251,7 +251,7 @@ async function runDoctor() {
251
251
  }
252
252
  switchSection("Agents");
253
253
  try {
254
- const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-CLSQ3VXb.js");
254
+ const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-D406ZeSJ.js");
255
255
  const declaredCustomAgents = await readDeclaredCustomAgents();
256
256
  if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
257
257
  setCustomAgents(declaredCustomAgents.declared);
@@ -262,7 +262,7 @@ async function runDoctor() {
262
262
  const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BMakPgSm.js");
263
263
  const grokSetup = inspectGrokAgentSetup();
264
264
  line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
265
- const { default: kimi } = await import("../chunks/kimi-Do62c3Gf.js");
265
+ const { default: kimi } = await import("../chunks/kimi-BDCF5M-_.js");
266
266
  const { describeAgentHome } = await import("../chunks/agent-home-Chl-ukFf.js");
267
267
  const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-3HONviqr.js");
268
268
  line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
@@ -272,7 +272,7 @@ async function runDoctor() {
272
272
  switchSection("Sane YOLO");
273
273
  try {
274
274
  const { resolvePackageBin } = await import("../chunks/runtime-paths-CKqE4LXP.js");
275
- const { execFileSync } = await import("../chunks/child-process-safe-BQXXguZm.js");
275
+ const { execFileSync } = await import("../chunks/child-process-safe-D5RpuuyW.js");
276
276
  const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BMakPgSm.js");
277
277
  const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
278
278
  line("Sane YOLO", binPath || "not installed");
@@ -1,7 +1,7 @@
1
1
  import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
2
2
  import { d as isPathInside, f as safePathSegment, o as relayPath } from "./runtime-paths-CYwF658V.js";
3
3
  import { b as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME, x as CONVERSATION_TOOL_RESULT_HOOK_EVENT, xn as shortSha$1, yn as FULL_SHA_RE } from "./session-BSGnvWLZ.js";
4
- import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-D-aYiDnX.js";
4
+ import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-BIh8yQ0I.js";
5
5
  import { Kt as UpdateChannel, Qt as PLAN_TOOL_NAME, Yt as PLAN_HOOK_EVENT, Zt as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, wt as HTTP_URL_RE, zt as InstallFlavor } from "./config-DLiW1cu2.js";
6
6
  import { a as rawTextOr, n as isRecord, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
7
7
  import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
@@ -11,7 +11,7 @@ import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-qTNK
11
11
  import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-DBVCL80q.js";
12
12
  import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-AKRVPqG1.js";
13
13
  import { S as isExperimentalBuild, o as glimmervoidHomeDir, x as compareReleaseVersions } from "./config-store-N024BRC9.js";
14
- import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-Bz8ag6OP.js";
14
+ import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-90IC3Zhg.js";
15
15
  import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-BGvFYDNV.js";
16
16
  import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-Bt3Itm9c.js";
17
17
  import fs from "node:fs";
@@ -1 +1 @@
1
- export { a as describeAgentResolvability, l as listAgentIds, f as setCustomAgents } from "./adapters-BBs-OckB.js";
1
+ export { a as describeAgentResolvability, l as listAgentIds, f as setCustomAgents } from "./adapters-CelEKFSU.js";
@@ -1,5 +1,5 @@
1
1
  import { Q as UNIT_STATUSES, l as AgentLimitsReply, nt as WhiteboardAgentReply, r as AGENT_URL_ENV } from "./session-BSGnvWLZ.js";
2
- import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-D6OOPWzo.js";
2
+ import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-Bsy4NVee.js";
3
3
  import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
4
4
  import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
5
5
  import { g as layoutBoard, i as describeOverCap, m as boardSvgDocument, y as planSteps } from "./shown-files-core-Bi-g66pK.js";
@@ -1 +1 @@
1
- export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-Bg94bZH6.js";
1
+ export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-BVVdUXfX.js";
@@ -813,7 +813,22 @@ function transcriptPathCandidates({ resumeSessionId, transcriptPath, projectsDir
813
813
  for (const projectsDir of projectsDirs) for (const cwd of cwds) candidates.push(path.join(projectsDir, encodeProjectDir(cwd), transcriptFileName));
814
814
  return Array.from(new Set(candidates));
815
815
  }
816
- function resolveResumeTarget(options, fileExists) {
816
+ function findTranscriptInAnyProjectDir(projectsDirs, transcriptFileName, resumeFs) {
817
+ for (const projectsDir of projectsDirs) {
818
+ let projectDirNames;
819
+ try {
820
+ projectDirNames = resumeFs.readdirSync(projectsDir);
821
+ } catch {
822
+ continue;
823
+ }
824
+ for (const projectDirName of projectDirNames) {
825
+ const candidate = path.join(projectsDir, projectDirName, transcriptFileName);
826
+ if (resumeFs.existsSync(candidate)) return candidate;
827
+ }
828
+ }
829
+ return null;
830
+ }
831
+ function resolveResumeTarget(options, resumeFs) {
817
832
  if (!options.resumeSessionId) return {
818
833
  resumeSessionId: null,
819
834
  transcriptPath: null,
@@ -828,13 +843,19 @@ function resolveResumeTarget(options, fileExists) {
828
843
  const checkedTranscriptPaths = [];
829
844
  for (const candidate of candidates) {
830
845
  checkedTranscriptPaths.push(candidate);
831
- if (!fileExists(candidate)) continue;
846
+ if (!resumeFs.existsSync(candidate)) continue;
832
847
  return {
833
848
  resumeSessionId: options.resumeSessionId,
834
849
  transcriptPath: candidate,
835
850
  checkedTranscriptPaths
836
851
  };
837
852
  }
853
+ const movedTranscriptPath = findTranscriptInAnyProjectDir(options.projectsDirs, `${options.resumeSessionId}.jsonl`, resumeFs);
854
+ if (movedTranscriptPath) return {
855
+ resumeSessionId: options.resumeSessionId,
856
+ transcriptPath: movedTranscriptPath,
857
+ checkedTranscriptPaths
858
+ };
838
859
  return {
839
860
  resumeSessionId: null,
840
861
  transcriptPath: candidates[0] || null,
@@ -2,6 +2,7 @@ import cp from "node:child_process";
2
2
  import { promisify } from "node:util";
3
3
  //#region server/child-process-safe.ts
4
4
  var refusedNodePath = null;
5
+ var STOPPED_CHILD_KILL_GRACE_MS = 2e3;
5
6
  function refuseLaunchesOf(nodePath) {
6
7
  refusedNodePath = nodePath;
7
8
  }
@@ -47,7 +48,7 @@ var execFile = Object.assign(function execFile(file, ...rest) {
47
48
  const failure = err;
48
49
  failure.stdout = stdout;
49
50
  failure.stderr = stderr;
50
- return reject(failure);
51
+ return rejectOnceExited(child, () => reject(failure));
51
52
  }
52
53
  resolve({
53
54
  stdout,
@@ -55,6 +56,7 @@ var execFile = Object.assign(function execFile(file, ...rest) {
55
56
  });
56
57
  };
57
58
  const child = cp.execFile(file, args, execOptions, callback);
59
+ killIfStopIgnored(child, execOptions.timeout, execOptions.signal);
58
60
  if (typeof input !== "string") return;
59
61
  if (!child.stdin) return reject(/* @__PURE__ */ new Error("execFile stdin unavailable"));
60
62
  child.stdin.on("error", (error) => {
@@ -63,6 +65,34 @@ var execFile = Object.assign(function execFile(file, ...rest) {
63
65
  });
64
66
  child.stdin.end(input);
65
67
  }) });
68
+ function rejectOnceExited(child, rejectFailure) {
69
+ if (child.pid !== void 0 && child.exitCode === null && child.signalCode === null) {
70
+ child.once("exit", rejectFailure);
71
+ return;
72
+ }
73
+ rejectFailure();
74
+ }
75
+ function killIfStopIgnored(child, timeoutMs, signal) {
76
+ const pendingTimers = [];
77
+ const scheduleForcedKill = () => {
78
+ const forcedKillTimer = setTimeout(() => {
79
+ if (child.exitCode !== null || child.signalCode !== null) return;
80
+ child.kill("SIGKILL");
81
+ }, STOPPED_CHILD_KILL_GRACE_MS);
82
+ forcedKillTimer.unref();
83
+ pendingTimers.push(forcedKillTimer);
84
+ };
85
+ if (timeoutMs) {
86
+ const timeoutTimer = setTimeout(scheduleForcedKill, timeoutMs);
87
+ timeoutTimer.unref();
88
+ pendingTimers.push(timeoutTimer);
89
+ }
90
+ signal?.addEventListener("abort", scheduleForcedKill, { once: true });
91
+ child.once("exit", () => {
92
+ for (const timer of pendingTimers) clearTimeout(timer);
93
+ signal?.removeEventListener("abort", scheduleForcedKill);
94
+ });
95
+ }
66
96
  function execFileSync(file, ...rest) {
67
97
  assertLaunchable(file);
68
98
  const { args, options } = split(rest);
@@ -0,0 +1 @@
1
+ export { i as execFileSync } from "./child-process-safe-BIh8yQ0I.js";
@@ -1,4 +1,4 @@
1
- import { i as execFileSync } from "./child-process-safe-D-aYiDnX.js";
1
+ import { i as execFileSync } from "./child-process-safe-BIh8yQ0I.js";
2
2
  import { parseArgs } from "node:util";
3
3
  //#region server/core/command-line-core.ts
4
4
  var GLOBAL_OPTIONS = {
@@ -1,6 +1,6 @@
1
1
  import { o as relayPath } from "./runtime-paths-CYwF658V.js";
2
2
  import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-BSGnvWLZ.js";
3
- import { i as execFileSync } from "./child-process-safe-D-aYiDnX.js";
3
+ import { i as execFileSync } from "./child-process-safe-BIh8yQ0I.js";
4
4
  import { n as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
5
5
  import { i as kimiMcpFiles, n as KIMI_MCP_CONFIG_NAME, t as KIMI_MCP_BASE_NAME } from "./agent-config-DDpOIcFv.js";
6
6
  import { t as buildAgentEnv } from "./spawn-env-BmKhfv3B.js";
@@ -0,0 +1 @@
1
+ export { t as default } from "./kimi-90IC3Zhg.js";