glimmervoid 0.51.1-next.657 → 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 +7 -7
- 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/{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-DympA6AH.js → main-UUvKAgFb.js} +259 -64
- package/dist/chunks/{pr-flows-cli-DqCLgNd-.js → pr-flows-cli-DSBz1qeW.js} +2 -2
- package/dist/chunks/{pr-flows-external-Cot_-U0y.js → pr-flows-external-D_-egvLq.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-CIaf6Rsv.js → ssh-sign-cli-BBrY0H6A.js} +1 -1
- package/dist/client/assets/{benchmark-panel-DuQ2x7Yg.js → benchmark-panel-C5UVQniP.js} +1 -1
- package/dist/client/assets/benchmark-panel-C5UVQniP.js.br +0 -0
- package/dist/client/assets/{boards-view-CInPbBer.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-B3MfrwWW.js → community-panel-BLGjTEbr.js} +1 -1
- package/dist/client/assets/community-panel-BLGjTEbr.js.br +0 -0
- package/dist/client/assets/{dialogs-Cs0PH2NU.js → dialogs-CdtwjoAj.js} +1 -1
- package/dist/client/assets/dialogs-CdtwjoAj.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-BRKiepkr.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-Dxro697Q.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-BIbz1oN6.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-DZy8Freb.js → hooks-panel-NepGYIrY.js} +1 -1
- package/dist/client/assets/hooks-panel-NepGYIrY.js.br +0 -0
- package/dist/client/assets/{index-Ci8Jywjn.js → index-DReX-AZ_.js} +5 -5
- package/dist/client/assets/index-DReX-AZ_.js.br +0 -0
- package/dist/client/assets/{issues-panel-ZINPwCuR.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-wjXF8jvQ.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-Cms0VHxh.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-CyfI5K76.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-BkyndB6H.js → phone-shell-DWGOgDEW.js} +1 -1
- package/dist/client/assets/phone-shell-DWGOgDEW.js.br +0 -0
- package/dist/client/assets/{plan-face-GUAHtBiU.js → plan-face-BngqDdtM.js} +1 -1
- package/dist/client/assets/plan-face-BngqDdtM.js.br +0 -0
- package/dist/client/assets/{plan-render-DdgfWXS1.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-CpQwf2-X.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-GVMwpM5Z.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-DFu-LkeZ.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-DwXezE3p.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-pTKJZqJE.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-DqpnO2wj.js → settings-panel-QyMx9xHk.js} +2 -2
- package/dist/client/assets/settings-panel-QyMx9xHk.js.br +0 -0
- package/dist/client/assets/{shown-face--lDTctXx.js → shown-face-BucD4wNI.js} +1 -1
- package/dist/client/assets/shown-face-BucD4wNI.js.br +0 -0
- package/dist/client/assets/{trace-panel-BfJ3zzQd.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-DhQhBKj9.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-4X-gy4td.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-DuQ2x7Yg.js.br +0 -0
- package/dist/client/assets/boards-view-CInPbBer.js.br +0 -0
- package/dist/client/assets/community-panel-B3MfrwWW.js.br +0 -0
- package/dist/client/assets/dialogs-Cs0PH2NU.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-BRKiepkr.js.br +0 -0
- package/dist/client/assets/feature-hint-Dxro697Q.js.br +0 -0
- package/dist/client/assets/first-run-checklist-BIbz1oN6.js.br +0 -0
- package/dist/client/assets/hooks-panel-DZy8Freb.js.br +0 -0
- package/dist/client/assets/index-Ci8Jywjn.js.br +0 -0
- package/dist/client/assets/issues-panel-ZINPwCuR.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-wjXF8jvQ.js.br +0 -0
- package/dist/client/assets/my-prs-panel-Cms0VHxh.js.br +0 -0
- package/dist/client/assets/nyan-cat-CyfI5K76.js.br +0 -0
- package/dist/client/assets/phone-shell-BkyndB6H.js.br +0 -0
- package/dist/client/assets/plan-face-GUAHtBiU.js.br +0 -0
- package/dist/client/assets/plan-render-DdgfWXS1.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-CpQwf2-X.js.br +0 -0
- package/dist/client/assets/radar-panel-GVMwpM5Z.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-DFu-LkeZ.js.br +0 -0
- package/dist/client/assets/resume-dialog-DwXezE3p.js.br +0 -0
- package/dist/client/assets/review-queue-panel-pTKJZqJE.js.br +0 -0
- package/dist/client/assets/settings-panel-DqpnO2wj.js.br +0 -0
- package/dist/client/assets/shown-face--lDTctXx.js.br +0 -0
- package/dist/client/assets/trace-panel-BfJ3zzQd.js.br +0 -0
- package/dist/client/assets/usage-panel-DhQhBKj9.js.br +0 -0
- package/dist/client/assets/your-day-tip-4X-gy4td.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-
|
|
7
|
+
import { a as execSync } from "../chunks/child-process-safe-BIh8yQ0I.js";
|
|
8
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";
|
|
@@ -78,11 +78,11 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
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
|
};
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -3,11 +3,11 @@ import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./te
|
|
|
3
3
|
import { a as packageRoot, c as resolvePackageBin, d as isPathInside, f as safePathSegment, i as clientDir, l as caseFoldedPathKey, n as bundled, o as relayPath, p as sanitizeWorktreeName, r as cliPath, s as resolveFfmpegPath, t as assetRoot, u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.js";
|
|
4
4
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
5
5
|
import { $ as Unit, $t as TeamReviewThreadResult, A as SHOWN_FILE_CAP_BYTES, An as BADGE_LABELS, At as CommitSha$1, B as TaskTitle, Bt as ReviewComment, C as ConversationQuestion, Cn as NODE_ID_RE, Ct as MyPrThreadsResponse, E as SESSION_DOC_BODY_CAP_BYTES, Ft as GithubReviewState, Gt as ReviewVerdict, Ht as ReviewFinding, I as ShownFile, It as PostedReviewEvent, J as Frame, Jt as TeamReviewCompareFiles, Kt as TeamReviewActionRequest, Lt as PostingPlan, M as SSH_SIGN_BODY_CAP_BYTES, Mn as MERGEABLE_LIVE_STATES, Mt as EarlierReview, Nn as RESTARTABLE_STATES, Nt as FindingSeverity, O as SESSION_NAME_PATTERN, Pn as STATES, Qt as TeamReviewThreadCommentsResponse, R as SshSignRequest, Rt as PrDetail, Sn as GH_SEGMENT, St as MyPrThreadNode, Tn as repoParts, Tt as MyPrsState, U as Board, Ut as ReviewResult, Vt as ReviewDraft, W as BoardRecord, Wt as ReviewThreadId, X as Op, Xt as TeamReviewStateEntry, Y as Note, Yt as TeamReviewResolveResponse, Z as Panel, Zt as TeamReviewStatus, _ as AgentWhyRequest, _n as PrThreadUnresolveResponse, an as PrFlowApproveRequest, at as sparseBoardRecord, b as CONVERSATION_PERMISSION_HOOK_EVENT, bn as HEX_SHA_RE, c as AgentEditRequest, ct as MyPr, dn as PrFlowSaveRuleRequest, dt as MyPrCheckContextsResponse, en as TeamReviewThreadsRepository, et as WHITEBOARD_ASSET_ROUTE, ft as MyPrKeepMergeableRequest, g as AgentSpawnRequest, gn as PrThreadReplyResponse, gt as MyPrMergeRequest, h as AgentSettingsRequest, ht as MyPrMergeMethod, i as ASK_USER_QUESTION_TOOL_NAME, in as hasStandingViewerApproval, it as Wire, j as SIGN_URL_ENV, jn as KILLABLE_STATES, jt as DECIDING_REVIEW_STATES, k as SESSION_NAME_RULE_TEXT, ln as PrFlowItemRequest, lt as MyPrAutoRebase, mn as PrFlowsState, mt as MyPrLaneEntry, nn as decisionAsIfApprovalRequired, o as AgentAttentionRequest, ot as sparseBoardReply, pn as PrFlowsSettings, q as Box, r as AGENT_URL_ENV, s as AgentCloseRequest, sn as PrFlowDisposeRequest, st as LinkedPr, tn as canApproveAfterComment, tt as WHITEBOARD_LIMITS, u as AgentPullRequestRequest, un as PrFlowRule, ut as MyPrCheckContext, v as COHERENCE_HOOKS_INACTIVE, vt as MyPrMergeStateResponse, wn as REPO_SLUG_RE, wt as MyPrsSnapshot, x as CONVERSATION_TOOL_RESULT_HOOK_EVENT, xn as shortSha, y as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, yt as MyPrMergeWhenReadyRequest } from "./session-BSGnvWLZ.js";
|
|
6
|
-
import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-
|
|
6
|
+
import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-BIh8yQ0I.js";
|
|
7
7
|
import { $t as PlanDecision, A as PrCheckoutCaseInput, At as CoherenceJournalOutput, B as GithubPrLightSearchNode, C as BenchmarkJudgement, Ct as issuePullRequestStateFromGithub, D as CommitComparison, Dt as MAX_RAW_LINE_CHARS, E as BenchmarkSuite, Et as SessionSetup, F as CommunityVerdict, Ft as CLIENT_LOG_TEXT_MAX_CHARS, G as WorkflowsSettings, H as comparablePrKey, I as DISCORD_CHANNEL_NAME_RE, It as CONTROL_FRAME_MAX_BYTES, Jt as PLAN_BODY_CAP_BYTES, K as WorkflowsState, L as SKILL_NAME_RE, M as CommunityDraft, Mt as changeMapFactId, N as CommunityItem, Nt as CHANGES_POLL_INTERVAL_MS, O as MergedPrListing, Ot as TraceCheckpoint, P as CommunityState, Q as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, Qt as PLAN_TOOL_NAME, R as GithubPrDetailNode, Rt as GithubTeam, S as BenchmarkId, St as IssuesStatus, T as BenchmarkStatus, Tt as HookEnvelope, U as WorkflowCommentBody, V as GithubPrsFrame, W as WorkflowLabelName, Wt as pullRequestKeyFromReference, Xt as PLAN_HOOK_OUTPUT_MAX_CHARS, Yt as PLAN_HOOK_EVENT, Zt as PLAN_RESULT_HOOK_EVENT, _ as HINT_FEATURES, _t as GithubIssueResponse, a as ConfigUpdate, b as BenchmarkActionRequest, bt as IssuesSearchResponse, c as SHELL_AGENT_ID, dt as USAGE_INTEGER_RANGES, en as PlanRevision, f as USAGE_COST_MODES, g as FeatureHintState, gt as GithubIssuePullRequestsRepository, h as ClientMessage, j as CommunityActionRequest, jt as ChangeMap, k as MinedPrReviewData, kt as TraceRecord, n as BUILTIN_AGENT_IDS, nn as planTitle, p as USAGE_VENDOR_KEYS, qt as UpdateJournal, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, tn as parseExitPlanModeHookPayload, u as configIssueMessage, v as HINT_VIEW_BY_FEATURE, vt as IssueKey, w as BenchmarkRun, x as BenchmarkCase, xt as IssuesState, yt as IssueUpdate, z as GithubPrKey } from "./config-DLiW1cu2.js";
|
|
8
8
|
import { $ as supervisionLine, A as parseRefinedSessionName, B as resumePromptFor, C as decideTaskTitleRefinement, D as extractPromptTaskTitle, E as extractOscTaskTitle, F as AUTO_CONTINUE_PROMPT, G as isAutoNameOf, H as claudeProjectsDir, I as RESUME_ID_RE, K as nextSuggestedName, L as isConversationReplacedAtStartup, M as resolveRefocusTaskTitle, N as resolveTaskTitle, O as isSelfWakePrompt, P as seedTaskTitleSources, Q as routeAgentNotes, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, X as permitsHelpCommand, Y as hintFor, Z as promptHintFor, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as toolHookFactsOf, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedTaskTitle, k as isSubstantivePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as describeSessionLimits, s as decideSpawnAllowance, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as resolveResumeTarget } from "./agent-api-core-Bsy4NVee.js";
|
|
9
9
|
import { a as rawTextOr, i as positiveNumberOr, n as isRecord$1, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
|
|
10
|
-
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-
|
|
10
|
+
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-BfOQqktJ.js";
|
|
11
11
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
12
12
|
import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusReplyFor, t as REFOCUS_NOTE } from "./refocus-core-tjJsDDKL.js";
|
|
13
13
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
@@ -18,13 +18,13 @@ import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config
|
|
|
18
18
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
19
19
|
import { C as parseCgroupBytes, D as DEFAULT_MAX_MS, E as DEFAULT_BASE_MS, O as nextBackoffMs, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-AKRVPqG1.js";
|
|
20
20
|
import { $ as buildBrowserExceptionProperties, D as validateSettingsBlock, E as settingsBlockSpecFor, G as describeDataAttach, H as DEEP_HISTORY_SCROLLBACK_LINES, J as FIRST_RUN_NOTICE, K as parseDataAttach, O as SETTINGS_INDEX, Q as buildAiGenerationEvents, R as valueAtPath, St as isSameDirectoryPath, T as mergeSettingsBlock, V as isExperimentalSetting, W as LOGGED_FAST_CLOSE_COUNTS, X as TELEMETRY_FLAGS_URL, Y as TELEMETRY_BATCH_URL, Z as adapterBucket, _ as usablePrefixes, a as generateProjectId, at as decideIsDevInstall, b as unrefTimer, bt as canonicalizePath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as resolveProjectToken, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as DashboardTelemetryReport, g as sessionIdFromBranch, h as planWorktreeGc, ht as TelemetryState, i as ensureProjectIds, it as codexUserIdOf, lt as nodeMajorVersion, m as planBranchGc, mt as TELEMETRY_EVENT_SCHEMAS, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir$1, ot as decideRemoteTelemetryState, p as matchedPrefix, pt as PendingCrashReport, q as parseDataClientMessage, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as parsePosthogReleaseId, v as worktreeIntegrationTips, vt as stableConfigKey, xt as comparableDirectoryPath, y as DEFAULT_TIMER_FNS } from "./config-store-N024BRC9.js";
|
|
21
|
-
import { i as resolveArgvCommandMatches } from "./kimi-
|
|
22
|
-
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-
|
|
21
|
+
import { i as resolveArgvCommandMatches } from "./kimi-90IC3Zhg.js";
|
|
22
|
+
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-CelEKFSU.js";
|
|
23
23
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-BGvFYDNV.js";
|
|
24
24
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldAgentHomeSecrets, n as generatedAgentHomePath, p as trashSessionTempFolderOnceUnheld, s as realAgentHome, u as createHeldSessionTempFolder } from "./agent-home-Bt3Itm9c.js";
|
|
25
25
|
import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME } from "./ssh-signing-core-CRhVVWNW.js";
|
|
26
26
|
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-B7X3OA4c.js";
|
|
27
|
-
import { S as withRuleRun, _ as threadCandidates, a as fixLocallyPrompt, b as withOnlyOpenPrs, c as mergeItems, d as prFlowCommands, f as prFlowRules, g as teammateThreadItems, h as sourceCandidates$1, l as pendingApprovals, m as shouldTellBranchMoved, n as branchMovedNote, o as flaggingReviewers, p as savedRuleFor, r as commandFingerprint, s as itemLocation, t as createPrFlowsExternal, u as plannedActions, v as unknownActionWarnings, x as withReopened, y as withHandled } from "./pr-flows-external-
|
|
27
|
+
import { S as withRuleRun, _ as threadCandidates, a as fixLocallyPrompt, b as withOnlyOpenPrs, c as mergeItems, d as prFlowCommands, f as prFlowRules, g as teammateThreadItems, h as sourceCandidates$1, l as pendingApprovals, m as shouldTellBranchMoved, n as branchMovedNote, o as flaggingReviewers, p as savedRuleFor, r as commandFingerprint, s as itemLocation, t as createPrFlowsExternal, u as plannedActions, v as unknownActionWarnings, x as withReopened, y as withHandled } from "./pr-flows-external-D_-egvLq.js";
|
|
28
28
|
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-Bmtw1P7k.js";
|
|
29
29
|
import { createRequire } from "node:module";
|
|
30
30
|
import fs, { readFileSync } from "node:fs";
|
|
@@ -18587,19 +18587,10 @@ var CLONED_CACHE_DIRS = [
|
|
|
18587
18587
|
".vite",
|
|
18588
18588
|
".vite-temp"
|
|
18589
18589
|
];
|
|
18590
|
-
var NOTIFYING_REASONS = /* @__PURE__ */ new Set([
|
|
18591
|
-
"not-apfs",
|
|
18592
|
-
"other-volume",
|
|
18593
|
-
"install-stale",
|
|
18594
|
-
"outside-link",
|
|
18595
|
-
"torn",
|
|
18596
|
-
"failed"
|
|
18597
|
-
]);
|
|
18598
18590
|
function skipDependencyClone(reason) {
|
|
18599
18591
|
return {
|
|
18600
18592
|
action: "skip",
|
|
18601
|
-
reason
|
|
18602
|
-
notify: NOTIFYING_REASONS.has(reason)
|
|
18593
|
+
reason
|
|
18603
18594
|
};
|
|
18604
18595
|
}
|
|
18605
18596
|
function planDependencyClone(facts) {
|
|
@@ -18610,11 +18601,11 @@ function planDependencyClone(facts) {
|
|
|
18610
18601
|
if (facts.mainDevice !== facts.worktreeParentDevice) return skipDependencyClone("other-volume");
|
|
18611
18602
|
if (!isInstallCurrent(facts.lock)) return skipDependencyClone("install-stale");
|
|
18612
18603
|
const dirs = ["."];
|
|
18613
|
-
const
|
|
18604
|
+
const skippedDirs = [];
|
|
18614
18605
|
for (const nestedDir of facts.nestedPackageDirs) {
|
|
18615
18606
|
if (nestedDir.dir === ".") continue;
|
|
18616
18607
|
if (!isNestedInstallCurrent(nestedDir)) {
|
|
18617
|
-
|
|
18608
|
+
skippedDirs.push(nestedDir.dir);
|
|
18618
18609
|
continue;
|
|
18619
18610
|
}
|
|
18620
18611
|
dirs.push(nestedDir.dir);
|
|
@@ -18622,7 +18613,7 @@ function planDependencyClone(facts) {
|
|
|
18622
18613
|
return {
|
|
18623
18614
|
action: "clone",
|
|
18624
18615
|
dirs,
|
|
18625
|
-
|
|
18616
|
+
skippedDirs
|
|
18626
18617
|
};
|
|
18627
18618
|
}
|
|
18628
18619
|
function isNestedInstallCurrent({ ownLock, hasAnyLockfile }) {
|
|
@@ -18688,23 +18679,112 @@ function stagingPathFor(worktreeDir, relativeDir) {
|
|
|
18688
18679
|
const dirKey = crypto.createHash("sha256").update(relativeDir).digest("hex").slice(0, 16);
|
|
18689
18680
|
return path.join(path.dirname(worktreeDir), `.${path.basename(worktreeDir)}.${dirKey}.node_modules-clone`);
|
|
18690
18681
|
}
|
|
18682
|
+
var INSTALL_TIMEOUT_MS$1 = 6e5;
|
|
18683
|
+
var REGISTRY_STALL_ARGS = ["--fetch-timeout=30000", "--fetch-retries=1"];
|
|
18684
|
+
var INSTALL_COMMAND_BY_KIND = {
|
|
18685
|
+
npm: {
|
|
18686
|
+
command: "npm",
|
|
18687
|
+
args: [
|
|
18688
|
+
"ci",
|
|
18689
|
+
"--ignore-scripts",
|
|
18690
|
+
"--no-audit",
|
|
18691
|
+
"--no-fund",
|
|
18692
|
+
...REGISTRY_STALL_ARGS
|
|
18693
|
+
]
|
|
18694
|
+
},
|
|
18695
|
+
pnpm: {
|
|
18696
|
+
command: "pnpm",
|
|
18697
|
+
args: [
|
|
18698
|
+
"install",
|
|
18699
|
+
"--frozen-lockfile",
|
|
18700
|
+
"--ignore-scripts",
|
|
18701
|
+
...REGISTRY_STALL_ARGS
|
|
18702
|
+
]
|
|
18703
|
+
}
|
|
18704
|
+
};
|
|
18705
|
+
var INSTALL_ENV_NAMES = /* @__PURE__ */ new Set([
|
|
18706
|
+
"PATH",
|
|
18707
|
+
"HOME",
|
|
18708
|
+
"USER",
|
|
18709
|
+
"LOGNAME",
|
|
18710
|
+
"SHELL",
|
|
18711
|
+
"LANG",
|
|
18712
|
+
"LC_ALL",
|
|
18713
|
+
"TMPDIR",
|
|
18714
|
+
"XDG_CACHE_HOME",
|
|
18715
|
+
"XDG_CONFIG_HOME",
|
|
18716
|
+
"XDG_DATA_HOME",
|
|
18717
|
+
"HTTP_PROXY",
|
|
18718
|
+
"HTTPS_PROXY",
|
|
18719
|
+
"NO_PROXY",
|
|
18720
|
+
"http_proxy",
|
|
18721
|
+
"https_proxy",
|
|
18722
|
+
"no_proxy",
|
|
18723
|
+
"SSL_CERT_FILE",
|
|
18724
|
+
"SSL_CERT_DIR",
|
|
18725
|
+
"NODE_EXTRA_CA_CERTS"
|
|
18726
|
+
]);
|
|
18727
|
+
function planDependencyInstall(platform, packageDirs) {
|
|
18728
|
+
const plan = {
|
|
18729
|
+
installs: [],
|
|
18730
|
+
unsupportedDirs: []
|
|
18731
|
+
};
|
|
18732
|
+
if (platform === "win32") return plan;
|
|
18733
|
+
for (const packageDir of packageDirs) {
|
|
18734
|
+
if (packageDir.hasNodeModules) continue;
|
|
18735
|
+
const lockKind = installableLockKind(packageDir.lockfiles);
|
|
18736
|
+
if (lockKind) {
|
|
18737
|
+
plan.installs.push({
|
|
18738
|
+
dir: packageDir.dir,
|
|
18739
|
+
...INSTALL_COMMAND_BY_KIND[lockKind]
|
|
18740
|
+
});
|
|
18741
|
+
continue;
|
|
18742
|
+
}
|
|
18743
|
+
if (packageDir.lockfiles.length) plan.unsupportedDirs.push(packageDir.dir);
|
|
18744
|
+
}
|
|
18745
|
+
return plan;
|
|
18746
|
+
}
|
|
18747
|
+
function installableLockKind(lockfiles) {
|
|
18748
|
+
for (const kind of ["npm", "pnpm"]) if (lockfiles.includes(LOCKFILE_BY_KIND[kind].lockfile)) return kind;
|
|
18749
|
+
return null;
|
|
18750
|
+
}
|
|
18751
|
+
function installEnvFrom(serverEnv) {
|
|
18752
|
+
const installEnv = {};
|
|
18753
|
+
for (const [name, value] of Object.entries(serverEnv)) if (INSTALL_ENV_NAMES.has(name)) installEnv[name] = value;
|
|
18754
|
+
return installEnv;
|
|
18755
|
+
}
|
|
18756
|
+
function lastOutputLineOf(output) {
|
|
18757
|
+
return output.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).at(-1) ?? "";
|
|
18758
|
+
}
|
|
18759
|
+
function describeInstalledDirs(outcome) {
|
|
18760
|
+
const installedDirs = outcome.results.filter((result) => result.ok).map((result) => result.dir);
|
|
18761
|
+
if (!installedDirs.length) return null;
|
|
18762
|
+
return `installed node_modules (${installedDirs.join(", ")}) in ${outcome.elapsedMs}ms`;
|
|
18763
|
+
}
|
|
18764
|
+
function describeInstallWarnings(outcome) {
|
|
18765
|
+
const warnings = [];
|
|
18766
|
+
for (const result of outcome.results) {
|
|
18767
|
+
if (result.ok) continue;
|
|
18768
|
+
const failure = result.timedOut ? "timed out after 10 minutes" : `failed: ${result.lastOutputLine || "no output"}`;
|
|
18769
|
+
warnings.push(`${result.command} in ${result.dir} ${failure}; install dependencies in the worktree`);
|
|
18770
|
+
}
|
|
18771
|
+
if (outcome.unsupportedDirs.length) warnings.push(`node_modules in ${outcome.unsupportedDirs.join(", ")} was not installed because the worktree has no package-lock.json or pnpm-lock.yaml there; install dependencies there`);
|
|
18772
|
+
return warnings;
|
|
18773
|
+
}
|
|
18691
18774
|
function describeDependencyCloneSkip(reason) {
|
|
18692
18775
|
return SKIP_DESCRIPTIONS[reason];
|
|
18693
18776
|
}
|
|
18694
|
-
function describeStaleDirs(staleDirs) {
|
|
18695
|
-
return `node_modules in ${staleDirs.join(", ")} does not match its lockfile in the main checkout, so it was not cloned; install dependencies there`;
|
|
18696
|
-
}
|
|
18697
18777
|
var SKIP_DESCRIPTIONS = {
|
|
18698
18778
|
present: "node_modules is already in the worktree",
|
|
18699
18779
|
platform: "dependency cloning runs on macOS only",
|
|
18700
18780
|
"no-main-install": "the main checkout has no node_modules",
|
|
18701
18781
|
"no-lockfile": "the worktree has no package-lock.json or pnpm-lock.yaml",
|
|
18702
|
-
"not-apfs": "the main checkout is not on APFS, so node_modules was not cloned
|
|
18703
|
-
"other-volume": "the main checkout and the worktree are on different volumes, so node_modules was not cloned
|
|
18704
|
-
"install-stale": "the main checkout's node_modules does not match the worktree's lockfile, so it was not cloned
|
|
18705
|
-
"outside-link": "the main checkout's node_modules holds a link outside the repository (npm link or a file: dependency), so it was not cloned
|
|
18706
|
-
torn: "the main checkout's node_modules changed during the clone, so the clone was discarded
|
|
18707
|
-
failed: "cloning node_modules from the main checkout failed
|
|
18782
|
+
"not-apfs": "the main checkout is not on APFS, so node_modules was not cloned",
|
|
18783
|
+
"other-volume": "the main checkout and the worktree are on different volumes, so node_modules was not cloned",
|
|
18784
|
+
"install-stale": "the main checkout's node_modules does not match the worktree's lockfile, so it was not cloned",
|
|
18785
|
+
"outside-link": "the main checkout's node_modules holds a link outside the repository (npm link or a file: dependency), so it was not cloned",
|
|
18786
|
+
torn: "the main checkout's node_modules changed during the clone, so the clone was discarded",
|
|
18787
|
+
failed: "cloning node_modules from the main checkout failed"
|
|
18708
18788
|
};
|
|
18709
18789
|
//#endregion
|
|
18710
18790
|
//#region session/worktree/worktree-provisioning.ts
|
|
@@ -18790,7 +18870,11 @@ function createWorktreeProvisioning(context, deps) {
|
|
|
18790
18870
|
});
|
|
18791
18871
|
return false;
|
|
18792
18872
|
}
|
|
18793
|
-
async function provision(
|
|
18873
|
+
async function provision(options = {}) {
|
|
18874
|
+
provisionAbort = new AbortController();
|
|
18875
|
+
return provisionWorktree(options);
|
|
18876
|
+
}
|
|
18877
|
+
async function provisionWorktree({ fresh = false }) {
|
|
18794
18878
|
if (workspaceMembers) return provisionWorkspaceMembers(workspaceMembers);
|
|
18795
18879
|
if (!gitWorkspace) return true;
|
|
18796
18880
|
if (lifecycleState.worktreeDir && fs.existsSync(lifecycleState.worktreeDir)) {
|
|
@@ -18894,33 +18978,54 @@ function createWorktreeProvisioning(context, deps) {
|
|
|
18894
18978
|
await seedWorktreeDependencies(currentProjectPath(), workspace.cwd, workspace.base || null);
|
|
18895
18979
|
return true;
|
|
18896
18980
|
}
|
|
18981
|
+
let provisionAbort = new AbortController();
|
|
18982
|
+
let seedInFlight = null;
|
|
18983
|
+
async function stopSeeding() {
|
|
18984
|
+
provisionAbort.abort();
|
|
18985
|
+
await seedInFlight;
|
|
18986
|
+
}
|
|
18897
18987
|
async function seedWorktreeDependencies(mainCheckout, worktreeDir, branch) {
|
|
18898
18988
|
if (!seedDependencies) return;
|
|
18899
|
-
const
|
|
18989
|
+
const { signal } = provisionAbort;
|
|
18990
|
+
if (signal.aborted) return;
|
|
18991
|
+
const seeding = seedDependencies({
|
|
18900
18992
|
mainCheckout,
|
|
18901
|
-
worktreeDir
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
}
|
|
18915
|
-
const reason = describeDependencyCloneSkip(outcome.reason);
|
|
18916
|
-
console.log(`[session ${id}] did not clone node_modules into ${worktreeDir}: ${reason}`);
|
|
18917
|
-
if (outcome.notify) port.emit("worktree-warning", {
|
|
18993
|
+
worktreeDir,
|
|
18994
|
+
signal
|
|
18995
|
+
});
|
|
18996
|
+
seedInFlight = seeding;
|
|
18997
|
+
const outcome = await seeding.finally(() => {
|
|
18998
|
+
if (seedInFlight === seeding) seedInFlight = null;
|
|
18999
|
+
});
|
|
19000
|
+
if (!outcome) return;
|
|
19001
|
+
const { clone, install } = outcome;
|
|
19002
|
+
logCloneOutcome(clone, worktreeDir);
|
|
19003
|
+
const notices = installNotices(install, worktreeDir);
|
|
19004
|
+
if (!notices.length) return;
|
|
19005
|
+
port.emit("worktree-warning", {
|
|
18918
19006
|
id,
|
|
18919
19007
|
branch,
|
|
18920
|
-
notice:
|
|
19008
|
+
notice: notices.join(" ")
|
|
18921
19009
|
});
|
|
18922
19010
|
}
|
|
18923
|
-
|
|
19011
|
+
function logCloneOutcome(clone, worktreeDir) {
|
|
19012
|
+
if (clone.action === "cloned") {
|
|
19013
|
+
console.log(`[session ${id}] cloned node_modules into ${worktreeDir} (${clone.dirs.join(", ")}) in ${clone.elapsedMs}ms`);
|
|
19014
|
+
return;
|
|
19015
|
+
}
|
|
19016
|
+
console.log(`[session ${id}] did not clone node_modules into ${worktreeDir}: ${describeDependencyCloneSkip(clone.reason)}`);
|
|
19017
|
+
}
|
|
19018
|
+
function installNotices(install, worktreeDir) {
|
|
19019
|
+
const installedSummary = describeInstalledDirs(install);
|
|
19020
|
+
if (installedSummary) console.log(`[session ${id}] ${installedSummary} into ${worktreeDir}`);
|
|
19021
|
+
const warnings = describeInstallWarnings(install);
|
|
19022
|
+
for (const warning of warnings) console.log(`[session ${id}] ${warning}`);
|
|
19023
|
+
return warnings;
|
|
19024
|
+
}
|
|
19025
|
+
return {
|
|
19026
|
+
provision,
|
|
19027
|
+
stopSeeding
|
|
19028
|
+
};
|
|
18924
19029
|
}
|
|
18925
19030
|
//#endregion
|
|
18926
19031
|
//#region session/worktree/worktree-lifecycle-context.ts
|
|
@@ -19686,7 +19791,7 @@ function createSessionWorktreeLifecycle({ id, projectPath, integrationBranch = n
|
|
|
19686
19791
|
effectiveIntegrationBranch,
|
|
19687
19792
|
setMergeStatus
|
|
19688
19793
|
};
|
|
19689
|
-
const { provision } = createWorktreeProvisioning(context, {
|
|
19794
|
+
const { provision, stopSeeding } = createWorktreeProvisioning(context, {
|
|
19690
19795
|
adoptWorktree,
|
|
19691
19796
|
resolveCommonGitDir,
|
|
19692
19797
|
runAutoRebase,
|
|
@@ -19736,6 +19841,7 @@ function createSessionWorktreeLifecycle({ id, projectPath, integrationBranch = n
|
|
|
19736
19841
|
await releaseWorkspaceMembers(workspaceMembers.members, keepRepoPaths);
|
|
19737
19842
|
}
|
|
19738
19843
|
async function discardWorktree() {
|
|
19844
|
+
await stopSeeding();
|
|
19739
19845
|
if (workspaceMembers?.ok) return releaseWorkspaceMembers(workspaceMembers.members);
|
|
19740
19846
|
stopWatching();
|
|
19741
19847
|
if (gitWorkspace && lifecycleState.workspace) try {
|
|
@@ -53705,8 +53811,108 @@ function createRecorder(sessionName, captureConfig, recordSignals = true) {
|
|
|
53705
53811
|
var CLONE_TIMEOUT_MS = 6e5;
|
|
53706
53812
|
var NODE_MODULES = "node_modules";
|
|
53707
53813
|
var LINK_LIST_MAX_BYTES = 67108864;
|
|
53708
|
-
var
|
|
53709
|
-
var
|
|
53814
|
+
var INSTALL_OUTPUT_MAX_BYTES = 16777216;
|
|
53815
|
+
var seedQueue = createSerialQueue();
|
|
53816
|
+
var seedWorktreeDependencies = ({ mainCheckout, worktreeDir, signal }) => seedQueue.run(async () => {
|
|
53817
|
+
const clone = await cloneDependencies(mainCheckout, worktreeDir).catch(() => skipDependencyClone("failed"));
|
|
53818
|
+
if (signal.aborted) return null;
|
|
53819
|
+
const install = await installDependencies(worktreeDir, signal).catch((error) => unreadableInstallOutcome(error));
|
|
53820
|
+
if (signal.aborted) return null;
|
|
53821
|
+
const skippedDirs = clone.action === "cloned" ? clone.skippedDirs : [];
|
|
53822
|
+
const reportedDirs = /* @__PURE__ */ new Set([...install.unsupportedDirs, ...install.results.map((result) => result.dir)]);
|
|
53823
|
+
const emptyDirs = await dirsWithoutNodeModules(worktreeDir, skippedDirs.filter((dir) => !reportedDirs.has(dir)));
|
|
53824
|
+
return {
|
|
53825
|
+
clone,
|
|
53826
|
+
install: {
|
|
53827
|
+
...install,
|
|
53828
|
+
unsupportedDirs: [...install.unsupportedDirs, ...emptyDirs]
|
|
53829
|
+
}
|
|
53830
|
+
};
|
|
53831
|
+
}, { signal }).catch(() => null);
|
|
53832
|
+
async function installDependencies(worktreeDir, signal) {
|
|
53833
|
+
const startedAt = performance.now();
|
|
53834
|
+
const plan = planDependencyInstall(process.platform, await listPackageDirFacts(worktreeDir));
|
|
53835
|
+
const results = [];
|
|
53836
|
+
for (const install of plan.installs) {
|
|
53837
|
+
if (signal.aborted) break;
|
|
53838
|
+
results.push(await runInstall(worktreeDir, install, signal));
|
|
53839
|
+
}
|
|
53840
|
+
return {
|
|
53841
|
+
results,
|
|
53842
|
+
unsupportedDirs: plan.unsupportedDirs,
|
|
53843
|
+
elapsedMs: Math.round(performance.now() - startedAt)
|
|
53844
|
+
};
|
|
53845
|
+
}
|
|
53846
|
+
async function listTrackedPackageDirs(worktreeDir) {
|
|
53847
|
+
const tracked = await runGit([
|
|
53848
|
+
"ls-files",
|
|
53849
|
+
"-z",
|
|
53850
|
+
"--",
|
|
53851
|
+
"package.json",
|
|
53852
|
+
"**/package.json"
|
|
53853
|
+
], {
|
|
53854
|
+
cwd: worktreeDir,
|
|
53855
|
+
trim: false
|
|
53856
|
+
});
|
|
53857
|
+
if (!tracked.ok) return [];
|
|
53858
|
+
return packageDirsFromTrackedFiles(tracked.out.split("\0").filter(Boolean));
|
|
53859
|
+
}
|
|
53860
|
+
async function listPackageDirFacts(worktreeDir) {
|
|
53861
|
+
const packageDirs = [];
|
|
53862
|
+
for (const relativeDir of await listTrackedPackageDirs(worktreeDir)) {
|
|
53863
|
+
const packageDir = path.join(worktreeDir, relativeDir);
|
|
53864
|
+
const lockfiles = [];
|
|
53865
|
+
for (const lockfile of KNOWN_LOCKFILES) if (await pathExists(path.join(packageDir, lockfile))) lockfiles.push(lockfile);
|
|
53866
|
+
packageDirs.push({
|
|
53867
|
+
dir: relativeDir,
|
|
53868
|
+
hasNodeModules: await pathExists(path.join(packageDir, NODE_MODULES)),
|
|
53869
|
+
lockfiles
|
|
53870
|
+
});
|
|
53871
|
+
}
|
|
53872
|
+
return packageDirs;
|
|
53873
|
+
}
|
|
53874
|
+
async function runInstall(worktreeDir, install, signal) {
|
|
53875
|
+
const packageDir = path.join(worktreeDir, install.dir);
|
|
53876
|
+
const commandLine = [install.command, ...install.args].join(" ");
|
|
53877
|
+
const run = await runCommand(install.command, install.args, {
|
|
53878
|
+
cwd: packageDir,
|
|
53879
|
+
timeoutMs: INSTALL_TIMEOUT_MS$1,
|
|
53880
|
+
maxBuffer: INSTALL_OUTPUT_MAX_BYTES,
|
|
53881
|
+
replaceEnv: installEnvFrom(process.env),
|
|
53882
|
+
signal
|
|
53883
|
+
});
|
|
53884
|
+
if (run.ok) return {
|
|
53885
|
+
dir: install.dir,
|
|
53886
|
+
command: commandLine,
|
|
53887
|
+
ok: true
|
|
53888
|
+
};
|
|
53889
|
+
await removeTree(path.join(packageDir, NODE_MODULES));
|
|
53890
|
+
return {
|
|
53891
|
+
dir: install.dir,
|
|
53892
|
+
command: commandLine,
|
|
53893
|
+
ok: false,
|
|
53894
|
+
lastOutputLine: lastOutputLineOf(run.stderr ?? "") || lastOutputLineOf(run.err),
|
|
53895
|
+
timedOut: run.timedOut === true
|
|
53896
|
+
};
|
|
53897
|
+
}
|
|
53898
|
+
async function dirsWithoutNodeModules(worktreeDir, relativeDirs) {
|
|
53899
|
+
const emptyDirs = [];
|
|
53900
|
+
for (const relativeDir of relativeDirs) if (!await pathExists(path.join(worktreeDir, relativeDir, NODE_MODULES))) emptyDirs.push(relativeDir);
|
|
53901
|
+
return emptyDirs;
|
|
53902
|
+
}
|
|
53903
|
+
function unreadableInstallOutcome(error) {
|
|
53904
|
+
return {
|
|
53905
|
+
results: [{
|
|
53906
|
+
dir: ".",
|
|
53907
|
+
command: "dependency install",
|
|
53908
|
+
ok: false,
|
|
53909
|
+
lastOutputLine: errorMessage(error),
|
|
53910
|
+
timedOut: false
|
|
53911
|
+
}],
|
|
53912
|
+
unsupportedDirs: [],
|
|
53913
|
+
elapsedMs: 0
|
|
53914
|
+
};
|
|
53915
|
+
}
|
|
53710
53916
|
async function cloneDependencies(mainCheckout, worktreeDir) {
|
|
53711
53917
|
const startedAt = performance.now();
|
|
53712
53918
|
if (process.platform !== "darwin") return skipDependencyClone("platform");
|
|
@@ -53759,7 +53965,7 @@ async function cloneDependencies(mainCheckout, worktreeDir) {
|
|
|
53759
53965
|
return {
|
|
53760
53966
|
action: "cloned",
|
|
53761
53967
|
dirs: landedDirs,
|
|
53762
|
-
|
|
53968
|
+
skippedDirs: plan.skippedDirs,
|
|
53763
53969
|
elapsedMs: Math.round(performance.now() - startedAt)
|
|
53764
53970
|
};
|
|
53765
53971
|
}
|
|
@@ -53820,19 +54026,8 @@ async function readLock(mainDir, worktreeDir) {
|
|
|
53820
54026
|
return null;
|
|
53821
54027
|
}
|
|
53822
54028
|
async function listNestedPackageDirs(mainCheckout, worktreeDir) {
|
|
53823
|
-
const tracked = await runGit([
|
|
53824
|
-
"ls-files",
|
|
53825
|
-
"-z",
|
|
53826
|
-
"--",
|
|
53827
|
-
"package.json",
|
|
53828
|
-
"**/package.json"
|
|
53829
|
-
], {
|
|
53830
|
-
cwd: worktreeDir,
|
|
53831
|
-
trim: false
|
|
53832
|
-
});
|
|
53833
|
-
if (!tracked.ok) return [];
|
|
53834
54029
|
const nestedDirs = [];
|
|
53835
|
-
for (const relativeDir of
|
|
54030
|
+
for (const relativeDir of await listTrackedPackageDirs(worktreeDir)) {
|
|
53836
54031
|
if (relativeDir === ".") continue;
|
|
53837
54032
|
if (await pathExists(path.join(worktreeDir, relativeDir, NODE_MODULES))) continue;
|
|
53838
54033
|
if (!await pathExists(path.join(mainCheckout, relativeDir, NODE_MODULES))) continue;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
3
3
|
import { m as AgentSettingsReply, mn as PrFlowsState } from "./session-BSGnvWLZ.js";
|
|
4
|
-
import { c as runCommandSafely } from "./child-process-safe-
|
|
4
|
+
import { c as runCommandSafely } from "./child-process-safe-BIh8yQ0I.js";
|
|
5
5
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
6
|
-
import { d as prFlowCommands, f as prFlowRules, i as expandPlaceholders, r as commandFingerprint, t as createPrFlowsExternal, v as unknownActionWarnings } from "./pr-flows-external-
|
|
6
|
+
import { d as prFlowCommands, f as prFlowRules, i as expandPlaceholders, r as commandFingerprint, t as createPrFlowsExternal, v as unknownActionWarnings } from "./pr-flows-external-D_-egvLq.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import os from "node:os";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fn as PrFlowSourceOutput, on as PrFlowCommand, pn as PrFlowsSettings, un as PrFlowRule, vn as ReportedPrFlowActionOutcome } from "./session-BSGnvWLZ.js";
|
|
2
|
-
import { c as runCommandSafely } from "./child-process-safe-
|
|
2
|
+
import { c as runCommandSafely } from "./child-process-safe-BIh8yQ0I.js";
|
|
3
3
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
4
4
|
import { n as withoutGlimmervoidSecrets } from "./spawn-env-BmKhfv3B.js";
|
|
5
5
|
import { z } from "zod";
|