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.
- package/dist/bin/glimmervoid.js +11 -11
- package/dist/chunks/{adapters-BBs-OckB.js → adapters-CelEKFSU.js} +2 -2
- package/dist/chunks/{adapters-CLSQ3VXb.js → adapters-D406ZeSJ.js} +1 -1
- package/dist/chunks/{agent-api-cli-Bg94bZH6.js → agent-api-cli-BVVdUXfX.js} +1 -1
- package/dist/chunks/{agent-api-cli-DDiInfYR.js → agent-api-cli-V7_noMcp.js} +1 -1
- package/dist/chunks/{agent-api-core-D6OOPWzo.js → agent-api-core-Bsy4NVee.js} +23 -2
- package/dist/chunks/{child-process-safe-D-aYiDnX.js → child-process-safe-BIh8yQ0I.js} +31 -1
- package/dist/chunks/child-process-safe-D5RpuuyW.js +1 -0
- package/dist/chunks/{git-version-5bFHvYor.js → git-version-BfOQqktJ.js} +1 -1
- package/dist/chunks/{kimi-Bz8ag6OP.js → kimi-90IC3Zhg.js} +1 -1
- package/dist/chunks/kimi-BDCF5M-_.js +1 -0
- package/dist/chunks/{main-BOq2WFyR.js → main-UUvKAgFb.js} +264 -66
- package/dist/chunks/{pr-flows-cli-3G9O9RVx.js → pr-flows-cli-DSBz1qeW.js} +3 -3
- package/dist/chunks/{pr-flows-external-Cot_-U0y.js → pr-flows-external-D_-egvLq.js} +1 -1
- package/dist/chunks/{settings-cli-9Sl_QsOH.js → settings-cli-CN4kxNWg.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-bUndk6hJ.js → ssh-sign-cli-BBrY0H6A.js} +2 -2
- package/dist/client/assets/{benchmark-panel-CoVhGRiw.js → benchmark-panel-C5UVQniP.js} +1 -1
- package/dist/client/assets/benchmark-panel-C5UVQniP.js.br +0 -0
- package/dist/client/assets/{boards-view-BtU9BBNK.js → boards-view-BNb--VOD.js} +1 -1
- package/dist/client/assets/boards-view-BNb--VOD.js.br +0 -0
- package/dist/client/assets/{community-panel-DQcP6j2q.js → community-panel-BLGjTEbr.js} +1 -1
- package/dist/client/assets/community-panel-BLGjTEbr.js.br +0 -0
- package/dist/client/assets/{dialogs-BWClap32.js → dialogs-CdtwjoAj.js} +1 -1
- package/dist/client/assets/dialogs-CdtwjoAj.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-Uzuh6af0.js → doc-editor-ui-QbvVV1Pf.js} +1 -1
- package/dist/client/assets/doc-editor-ui-QbvVV1Pf.js.br +0 -0
- package/dist/client/assets/{feature-hint-qcLHjUKL.js → feature-hint-B-lIRg3s.js} +1 -1
- package/dist/client/assets/feature-hint-B-lIRg3s.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DIGpCJHv.js → first-run-checklist-Cpf-SeoF.js} +1 -1
- package/dist/client/assets/first-run-checklist-Cpf-SeoF.js.br +0 -0
- package/dist/client/assets/{hooks-panel-DznxjwK-.js → hooks-panel-NepGYIrY.js} +1 -1
- package/dist/client/assets/hooks-panel-NepGYIrY.js.br +0 -0
- package/dist/client/assets/{index-BGlXT__0.js → index-DReX-AZ_.js} +5 -5
- package/dist/client/assets/index-DReX-AZ_.js.br +0 -0
- package/dist/client/assets/{issues-panel-DwB_OuUw.js → issues-panel-CUCxyjHk.js} +1 -1
- package/dist/client/assets/issues-panel-CUCxyjHk.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-AUOrQB2-.js → lane-read-token-step-BlEFQF0f.js} +1 -1
- package/dist/client/assets/lane-read-token-step-BlEFQF0f.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CITUltFT.js → my-prs-panel-DxHJWsdw.js} +1 -1
- package/dist/client/assets/my-prs-panel-DxHJWsdw.js.br +0 -0
- package/dist/client/assets/{nyan-cat-FdcKECoN.js → nyan-cat-kKvi_XrJ.js} +1 -1
- package/dist/client/assets/nyan-cat-kKvi_XrJ.js.br +0 -0
- package/dist/client/assets/{phone-shell-CBCVFoGv.js → phone-shell-DWGOgDEW.js} +1 -1
- package/dist/client/assets/phone-shell-DWGOgDEW.js.br +0 -0
- package/dist/client/assets/{plan-face-mWUTOUaK.js → plan-face-BngqDdtM.js} +1 -1
- package/dist/client/assets/plan-face-BngqDdtM.js.br +0 -0
- package/dist/client/assets/{plan-render-n_PFvS9T.js → plan-render-Ctqb0jUi.js} +1 -1
- package/dist/client/assets/plan-render-Ctqb0jUi.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BLQB68aP.js → pr-queue-columns-CYYsHbeE.js} +1 -1
- package/dist/client/assets/pr-queue-columns-CYYsHbeE.js.br +0 -0
- package/dist/client/assets/{radar-panel-B1h-yPzj.js → radar-panel-Co6mNh0Y.js} +1 -1
- package/dist/client/assets/radar-panel-Co6mNh0Y.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-BIUHC9Ri.js → repo-roots-adder-CCjrU4d3.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CCjrU4d3.js.br +0 -0
- package/dist/client/assets/{resume-dialog-tPsKUJ3O.js → resume-dialog-DwnO1h1c.js} +1 -1
- package/dist/client/assets/resume-dialog-DwnO1h1c.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-D3-6JboL.js → review-queue-panel-DJydHO4N.js} +1 -1
- package/dist/client/assets/review-queue-panel-DJydHO4N.js.br +0 -0
- package/dist/client/assets/{settings-panel-DsniemSU.js → settings-panel-QyMx9xHk.js} +2 -2
- package/dist/client/assets/settings-panel-QyMx9xHk.js.br +0 -0
- package/dist/client/assets/{shown-face-DejGJFtk.js → shown-face-BucD4wNI.js} +1 -1
- package/dist/client/assets/shown-face-BucD4wNI.js.br +0 -0
- package/dist/client/assets/{trace-panel-Dq3vRX18.js → trace-panel-DMaJs9-u.js} +1 -1
- package/dist/client/assets/trace-panel-DMaJs9-u.js.br +0 -0
- package/dist/client/assets/{usage-panel-CTwhMakg.js → usage-panel-BW4-KxgX.js} +1 -1
- package/dist/client/assets/usage-panel-BW4-KxgX.js.br +0 -0
- package/dist/client/assets/{your-day-tip-B_hdSXzz.js → your-day-tip-CMPAi8RI.js} +1 -1
- package/dist/client/assets/your-day-tip-CMPAi8RI.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/dist/session/hook-tool-relay.js +1 -1
- package/dist/session/statusline-relay.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/child-process-safe-BQXXguZm.js +0 -1
- package/dist/chunks/kimi-Do62c3Gf.js +0 -1
- package/dist/client/assets/benchmark-panel-CoVhGRiw.js.br +0 -0
- package/dist/client/assets/boards-view-BtU9BBNK.js.br +0 -0
- package/dist/client/assets/community-panel-DQcP6j2q.js.br +0 -0
- package/dist/client/assets/dialogs-BWClap32.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-Uzuh6af0.js.br +0 -0
- package/dist/client/assets/feature-hint-qcLHjUKL.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DIGpCJHv.js.br +0 -0
- package/dist/client/assets/hooks-panel-DznxjwK-.js.br +0 -0
- package/dist/client/assets/index-BGlXT__0.js.br +0 -0
- package/dist/client/assets/issues-panel-DwB_OuUw.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-AUOrQB2-.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CITUltFT.js.br +0 -0
- package/dist/client/assets/nyan-cat-FdcKECoN.js.br +0 -0
- package/dist/client/assets/phone-shell-CBCVFoGv.js.br +0 -0
- package/dist/client/assets/plan-face-mWUTOUaK.js.br +0 -0
- package/dist/client/assets/plan-render-n_PFvS9T.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BLQB68aP.js.br +0 -3
- package/dist/client/assets/radar-panel-B1h-yPzj.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-BIUHC9Ri.js.br +0 -0
- package/dist/client/assets/resume-dialog-tPsKUJ3O.js.br +0 -0
- package/dist/client/assets/review-queue-panel-D3-6JboL.js.br +0 -0
- package/dist/client/assets/settings-panel-DsniemSU.js.br +0 -0
- package/dist/client/assets/shown-face-DejGJFtk.js.br +0 -0
- package/dist/client/assets/trace-panel-Dq3vRX18.js.br +0 -0
- package/dist/client/assets/usage-panel-CTwhMakg.js.br +0 -0
- package/dist/client/assets/your-day-tip-B_hdSXzz.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -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-
|
|
8
|
-
import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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 (!
|
|
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,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-
|
|
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";
|