glimmervoid 0.48.4-next.388 → 0.48.4-next.389
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 +16 -16
- package/dist/chunks/{adapters-DV80NQ2T.js → adapters-DUBAgJNX.js} +8 -8
- package/dist/chunks/{adapters-6dLscHaF.js → adapters-igEBw_OX.js} +1 -1
- package/dist/chunks/{agent-api-cli-CvA8R9Ex.js → agent-api-cli-B8A6VClE.js} +4 -4
- package/dist/chunks/{agent-api-cli-DqaN7hdd.js → agent-api-cli-BJs-xXmv.js} +1 -1
- package/dist/chunks/{agent-api-core-B1cPu0Yh.js → agent-api-core-jq6vR13e.js} +3 -3
- package/dist/chunks/{agent-setup-cli-DBti6PCp.js → agent-setup-cli-eVos7ynZ.js} +1 -1
- package/dist/chunks/{build-channel-BoFTO0xU.js → build-channel-BKm1gBwG.js} +2 -2
- package/dist/chunks/{commit-sessions-BGKai7rr.js → commit-sessions-Cs-9V1qs.js} +1 -1
- package/dist/chunks/{config-BDKvwDKL.js → config-DIZ5SmjH.js} +1 -1
- package/dist/chunks/config-store-CZHJ-nSd.js +1 -0
- package/dist/chunks/{config-store-CckUQt6t.js → config-store-IV04of10.js} +3 -3
- package/dist/chunks/{grok-CZBHEx0x.js → grok-DgType7c.js} +2 -2
- package/dist/chunks/kimi-BMl5Pn8g.js +1 -0
- package/dist/chunks/{kimi-DFko6RY0.js → kimi-Cw59fBNw.js} +3 -3
- package/dist/chunks/{main-DLV7WNvK.js → main-rNa9a_gN.js} +95 -21
- package/dist/chunks/{pair-cli-DDLpwrB0.js → pair-cli-DgFZTzCl.js} +2 -2
- package/dist/chunks/{pairings-store-CjJeSEDA.js → pairings-store-BgJT5Cct.js} +2 -2
- package/dist/chunks/runtime-paths-CKqE4LXP.js +1 -0
- package/dist/chunks/{runtime-paths-D_ZjJLE0.js → runtime-paths-CYwF658V.js} +16 -1
- package/dist/chunks/{session-CiiJT0bd.js → session-CMDu4xZJ.js} +2 -1
- package/dist/chunks/{session-routes-CXXqs1-Q.js → session-routes-DTbznjwQ.js} +1 -1
- package/dist/chunks/{settings-cli-DdSxDh-t.js → settings-cli-C4VqPLfL.js} +5 -5
- package/dist/chunks/{settings-readout-core-BQXwtrkd.js → settings-readout-core-zh8Uye_Z.js} +2 -2
- package/dist/chunks/{shown-files-core-7TMRiQBO.js → shown-files-core-C8rudyNn.js} +17 -2
- package/dist/chunks/{spawn-env-BQvLlfoe.js → spawn-env-BySQfWQ5.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-BIAcyhfB.js → ssh-sign-cli-BgUOh6q_.js} +2 -2
- package/dist/chunks/{why-cli-DBvAnyqm.js → why-cli-Bw7paxpA.js} +2 -2
- package/dist/client/assets/{action-status-9-KFn40S.js → action-status-D9MbWvHM.js} +1 -1
- package/dist/client/assets/action-status-D9MbWvHM.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-BfwFTF--.js → benchmark-panel-CyCNJgoC.js} +1 -1
- package/dist/client/assets/benchmark-panel-CyCNJgoC.js.br +0 -0
- package/dist/client/assets/{boards-view-Lj02yTKe.js → boards-view-cgtpxSSv.js} +1 -1
- package/dist/client/assets/boards-view-cgtpxSSv.js.br +0 -0
- package/dist/client/assets/{card-registry-QkFucChR.js → card-registry-DpM1fVL3.js} +1 -1
- package/dist/client/assets/card-registry-DpM1fVL3.js.br +0 -0
- package/dist/client/assets/{community-panel-CQEhMV1x.js → community-panel-CAFXWWU6.js} +1 -1
- package/dist/client/assets/community-panel-CAFXWWU6.js.br +0 -0
- package/dist/client/assets/{control-ws-QMRdj5AN.js → control-ws-BlKr7EBT.js} +1 -1
- package/dist/client/assets/control-ws-BlKr7EBT.js.br +0 -0
- package/dist/client/assets/{dialogs--32YdkNG.js → dialogs-BWTvUXHR.js} +1 -1
- package/dist/client/assets/dialogs-BWTvUXHR.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-CbaCH6Ab.js → doc-editor-ui-BgAtkLJY.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BgAtkLJY.js.br +0 -0
- package/dist/client/assets/{feature-hint-Dg-KEi7B.js → feature-hint-BIUslwoK.js} +1 -1
- package/dist/client/assets/feature-hint-BIUslwoK.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-RzP3mLlj.js → first-run-checklist-ZAbW9af9.js} +1 -1
- package/dist/client/assets/first-run-checklist-ZAbW9af9.js.br +0 -0
- package/dist/client/assets/{hooks-panel-BSA_UIjL.js → hooks-panel-DXIPKz6N.js} +1 -1
- package/dist/client/assets/hooks-panel-DXIPKz6N.js.br +0 -0
- package/dist/client/assets/index-KdnP-QRl.js +78 -0
- package/dist/client/assets/index-KdnP-QRl.js.br +0 -0
- package/dist/client/assets/{issues-panel-B20d1R_Z.js → issues-panel-EXM-4Y0I.js} +1 -1
- package/dist/client/assets/issues-panel-EXM-4Y0I.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-BNr-4cR3.js → my-prs-panel-88jojlPl.js} +1 -1
- package/dist/client/assets/my-prs-panel-88jojlPl.js.br +0 -0
- package/dist/client/assets/{nyan-cat-DbTKOc_5.js → nyan-cat-Bb6kKUUt.js} +1 -1
- package/dist/client/assets/nyan-cat-Bb6kKUUt.js.br +0 -0
- package/dist/client/assets/{phone-shell-CIM8ffm4.js → phone-shell-BCSmLjZB.js} +1 -1
- package/dist/client/assets/phone-shell-BCSmLjZB.js.br +0 -0
- package/dist/client/assets/{plan-face-BQ9mcErp.js → plan-face-XclxPb1c.js} +1 -1
- package/dist/client/assets/plan-face-XclxPb1c.js.br +0 -0
- package/dist/client/assets/{plan-render-wciu3ZB0.js → plan-render-DeTcut57.js} +1 -1
- package/dist/client/assets/plan-render-DeTcut57.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DTTdwU9g.js → pr-queue-columns-DD5ctJU_.js} +1 -1
- package/dist/client/assets/pr-queue-columns-DD5ctJU_.js.br +0 -0
- package/dist/client/assets/{radar-panel-DN0k1ATU.js → radar-panel-CB__n4kR.js} +1 -1
- package/dist/client/assets/radar-panel-CB__n4kR.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CfbWPeWi.js → repo-roots-adder-CV7YSM4P.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CV7YSM4P.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CJPYNikm.js → resume-dialog-Bta9BbV3.js} +1 -1
- package/dist/client/assets/resume-dialog-Bta9BbV3.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-BclCFpz6.js → review-queue-panel-C53V1GCH.js} +1 -1
- package/dist/client/assets/review-queue-panel-C53V1GCH.js.br +0 -0
- package/dist/client/assets/{session-tick-D15Po2dW.js → session-tick-JcLeWKuF.js} +1 -1
- package/dist/client/assets/{settings-panel-BksPLwig.js → settings-panel-DCaQmhIn.js} +2 -2
- package/dist/client/assets/settings-panel-DCaQmhIn.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-DckI6Gd5.js → shown-lightbox-BtppukqJ.js} +1 -1
- package/dist/client/assets/shown-lightbox-BtppukqJ.js.br +0 -0
- package/dist/client/assets/{team-review-panel-jcukD6kK.js → team-review-panel-DGXaCUjZ.js} +1 -1
- package/dist/client/assets/team-review-panel-DGXaCUjZ.js.br +0 -0
- package/dist/client/assets/{trace-panel-CyddzPii.js → trace-panel-DVwqxnUl.js} +1 -1
- package/dist/client/assets/trace-panel-DVwqxnUl.js.br +0 -0
- package/dist/client/assets/updates-view-core-DxgAYYQw.js +1 -0
- package/dist/client/assets/updates-view-core-DxgAYYQw.js.br +0 -0
- package/dist/client/assets/{usage-panel-C5sTO58_.js → usage-panel-CdHSQgVh.js} +1 -1
- package/dist/client/assets/usage-panel-CdHSQgVh.js.br +0 -0
- package/dist/client/assets/{your-day-tip-Dsk-EG5s.js → your-day-tip-B79jMHdP.js} +1 -1
- package/dist/client/assets/your-day-tip-B79jMHdP.js.br +0 -0
- package/dist/client/index.html +6 -6
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +2 -2
- package/package.json +3 -1
- package/dist/chunks/config-store-CkTKtOAL.js +0 -1
- package/dist/chunks/kimi-aIdXIASl.js +0 -1
- package/dist/chunks/runtime-paths-DUfaYypN.js +0 -1
- package/dist/client/assets/action-status-9-KFn40S.js.br +0 -0
- package/dist/client/assets/benchmark-panel-BfwFTF--.js.br +0 -0
- package/dist/client/assets/boards-view-Lj02yTKe.js.br +0 -0
- package/dist/client/assets/card-registry-QkFucChR.js.br +0 -0
- package/dist/client/assets/community-panel-CQEhMV1x.js.br +0 -0
- package/dist/client/assets/control-ws-QMRdj5AN.js.br +0 -0
- package/dist/client/assets/dialogs--32YdkNG.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-CbaCH6Ab.js.br +0 -0
- package/dist/client/assets/feature-hint-Dg-KEi7B.js.br +0 -0
- package/dist/client/assets/first-run-checklist-RzP3mLlj.js.br +0 -0
- package/dist/client/assets/hooks-panel-BSA_UIjL.js.br +0 -0
- package/dist/client/assets/index-C22ss1VU.js +0 -78
- package/dist/client/assets/index-C22ss1VU.js.br +0 -0
- package/dist/client/assets/issues-panel-B20d1R_Z.js.br +0 -0
- package/dist/client/assets/my-prs-panel-BNr-4cR3.js.br +0 -0
- package/dist/client/assets/nyan-cat-DbTKOc_5.js.br +0 -0
- package/dist/client/assets/phone-shell-CIM8ffm4.js.br +0 -0
- package/dist/client/assets/plan-face-BQ9mcErp.js.br +0 -0
- package/dist/client/assets/plan-render-wciu3ZB0.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DTTdwU9g.js.br +0 -0
- package/dist/client/assets/radar-panel-DN0k1ATU.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CfbWPeWi.js.br +0 -0
- package/dist/client/assets/resume-dialog-CJPYNikm.js.br +0 -0
- package/dist/client/assets/review-queue-panel-BclCFpz6.js.br +0 -0
- package/dist/client/assets/settings-panel-BksPLwig.js.br +0 -0
- package/dist/client/assets/shown-lightbox-DckI6Gd5.js.br +0 -0
- package/dist/client/assets/team-review-panel-jcukD6kK.js.br +0 -0
- package/dist/client/assets/trace-panel-CyddzPii.js.br +0 -0
- package/dist/client/assets/updates-view-core-BwZ3cg0B.js +0 -1
- package/dist/client/assets/updates-view-core-BwZ3cg0B.js.br +0 -0
- package/dist/client/assets/usage-panel-C5sTO58_.js.br +0 -0
- package/dist/client/assets/your-day-tip-Dsk-EG5s.js.br +0 -7
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { i as nodePtyRebuildHint, t as probeNodePty } from "../chunks/node-pty-preflight-CQNBCDVM.js";
|
|
3
3
|
import { t as firstLine } from "../chunks/text-core-rXHoQWP9.js";
|
|
4
4
|
import { i as errorText } from "../chunks/text-DoirglWV.js";
|
|
5
|
-
import { a as packageRoot } from "../chunks/runtime-paths-
|
|
5
|
+
import { a as packageRoot } from "../chunks/runtime-paths-CYwF658V.js";
|
|
6
6
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
7
|
-
import { t as AGENT_API_VERBS } from "../chunks/session-
|
|
7
|
+
import { t as AGENT_API_VERBS } from "../chunks/session-CMDu4xZJ.js";
|
|
8
8
|
import { a as execSync } from "../chunks/child-process-safe-BCOoKfxG.js";
|
|
9
|
-
import { J as isOwnedCommandName, Y as parseCommand, q as OWNED_COMMAND_SPECS, r as agentCommandHelpLines } from "../chunks/agent-api-core-
|
|
9
|
+
import { J as isOwnedCommandName, Y as parseCommand, q as OWNED_COMMAND_SPECS, r as agentCommandHelpLines } from "../chunks/agent-api-core-jq6vR13e.js";
|
|
10
10
|
import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
|
|
11
11
|
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-xS1GFU8P.js";
|
|
12
12
|
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
@@ -63,7 +63,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
63
63
|
return await runDoctor() ? 0 : 1;
|
|
64
64
|
},
|
|
65
65
|
pair: async ({ values }) => {
|
|
66
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
66
|
+
const { runPairCli } = await import("../chunks/pair-cli-DgFZTzCl.js");
|
|
67
67
|
return runPairCli({
|
|
68
68
|
isListing: values.list === true,
|
|
69
69
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -71,19 +71,19 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
71
71
|
});
|
|
72
72
|
},
|
|
73
73
|
agent: async () => {
|
|
74
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
74
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-eVos7ynZ.js");
|
|
75
75
|
return runAgentSetupCli();
|
|
76
76
|
},
|
|
77
77
|
settings: async (parsed) => {
|
|
78
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
78
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-C4VqPLfL.js");
|
|
79
79
|
return runParsedSettingsCli(parsed);
|
|
80
80
|
},
|
|
81
81
|
why: async ({ positionals }) => {
|
|
82
|
-
const { runWhyCli } = await import("../chunks/why-cli-
|
|
82
|
+
const { runWhyCli } = await import("../chunks/why-cli-Bw7paxpA.js");
|
|
83
83
|
return runWhyCli({ targetArgument: positionals[0] ?? "" });
|
|
84
84
|
},
|
|
85
85
|
"ssh-sign": async ({ rawArgs }) => {
|
|
86
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
86
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-BgUOh6q_.js");
|
|
87
87
|
return runSshSignCli(rawArgs);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
@@ -105,7 +105,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
105
105
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
106
106
|
}
|
|
107
107
|
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) => {
|
|
108
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
108
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-BJs-xXmv.js");
|
|
109
109
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
110
110
|
}])]);
|
|
111
111
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -119,7 +119,7 @@ function missingAgentText(agentId) {
|
|
|
119
119
|
}
|
|
120
120
|
async function printSessionLimits() {
|
|
121
121
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
122
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
122
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-BJs-xXmv.js");
|
|
123
123
|
const limitsLines = await sessionLimitsHelpLines();
|
|
124
124
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
125
125
|
}
|
|
@@ -176,7 +176,7 @@ async function readDeclaredCustomAgents() {
|
|
|
176
176
|
declared: [],
|
|
177
177
|
error: null
|
|
178
178
|
};
|
|
179
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
179
|
+
const { loadConfigFile } = await import("../chunks/config-store-CZHJ-nSd.js");
|
|
180
180
|
try {
|
|
181
181
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
182
182
|
if (!loaded.config) return {
|
|
@@ -252,7 +252,7 @@ async function runDoctor() {
|
|
|
252
252
|
}
|
|
253
253
|
switchSection("Agents");
|
|
254
254
|
try {
|
|
255
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
255
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-igEBw_OX.js");
|
|
256
256
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
257
257
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
258
258
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -260,10 +260,10 @@ async function runDoctor() {
|
|
|
260
260
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
261
261
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
262
262
|
}
|
|
263
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
263
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-eVos7ynZ.js");
|
|
264
264
|
const grokSetup = inspectGrokAgentSetup();
|
|
265
265
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
266
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
266
|
+
const { default: kimi } = await import("../chunks/kimi-BMl5Pn8g.js");
|
|
267
267
|
const { describeAgentHome } = await import("../chunks/agent-home-Bg2CwnwX.js");
|
|
268
268
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-CgoT45SE.js");
|
|
269
269
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -272,9 +272,9 @@ async function runDoctor() {
|
|
|
272
272
|
}
|
|
273
273
|
switchSection("Sane YOLO");
|
|
274
274
|
try {
|
|
275
|
-
const { resolvePackageBin } = await import("../chunks/runtime-paths-
|
|
275
|
+
const { resolvePackageBin } = await import("../chunks/runtime-paths-CKqE4LXP.js");
|
|
276
276
|
const { execFileSync } = await import("../chunks/child-process-safe-BKjzSEYd.js");
|
|
277
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
277
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-eVos7ynZ.js");
|
|
278
278
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
279
279
|
line("Sane YOLO", binPath || "not installed");
|
|
280
280
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $t as FULL_SHA_RE, tn as shortSha$1 } from "./session-
|
|
2
|
+
import { d as isPathInside, o as relayPath } from "./runtime-paths-CYwF658V.js";
|
|
3
|
+
import { $t as FULL_SHA_RE, tn as shortSha$1 } from "./session-CMDu4xZJ.js";
|
|
4
4
|
import { c as spawn, i as execFileSync, r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
5
|
-
import { S as InstallFlavor, c as SHELL_AGENT_ID, kt as UpdateChannel } from "./config-
|
|
6
|
-
import { o as supervisionLine } from "./session-routes-
|
|
5
|
+
import { S as InstallFlavor, c as SHELL_AGENT_ID, kt as UpdateChannel } from "./config-DIZ5SmjH.js";
|
|
6
|
+
import { o as supervisionLine } from "./session-routes-DTbznjwQ.js";
|
|
7
7
|
import { a as rawTextOr, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
8
8
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
9
9
|
import { i as saneYoloEnv, r as SANE_YOLO_PATH_ENV, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
10
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
10
|
+
import { t as buildAgentEnv } from "./spawn-env-BySQfWQ5.js";
|
|
11
11
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
12
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-
|
|
12
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-DgType7c.js";
|
|
13
13
|
import { O as nextBackoffMs } from "./json-file-AKRVPqG1.js";
|
|
14
|
-
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-
|
|
15
|
-
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-
|
|
14
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-BKm1gBwG.js";
|
|
15
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-Cw59fBNw.js";
|
|
16
16
|
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-DgW3orTE.js";
|
|
17
17
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-BzANIIVe.js";
|
|
18
18
|
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-DUBAgJNX.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Q as WhiteboardAgentReply, l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-
|
|
2
|
-
import { Y as parseCommand, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
3
|
-
import { i as formatSessionLimits } from "./session-routes-
|
|
1
|
+
import { Q as WhiteboardAgentReply, l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-CMDu4xZJ.js";
|
|
2
|
+
import { Y as parseCommand, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-jq6vR13e.js";
|
|
3
|
+
import { i as formatSessionLimits } from "./session-routes-DTbznjwQ.js";
|
|
4
4
|
import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
|
|
5
5
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
6
|
-
import {
|
|
6
|
+
import { d as layoutBoard, p as planSteps, r as describeOverCap, u as escapeMarkup } from "./shown-files-core-C8rudyNn.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import http from "node:http";
|
|
@@ -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-B8A6VClE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as WhiteboardAgentRequest, C as RefinedTaskTitle, R as TASK_TITLE_CONTROL_CHARACTERS, a as AgentAnswerRequest, c as AgentEditRequest, d as AgentReadRequest, f as AgentReviewsRequest, g as AgentSpawnRequest, h as AgentSettingsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentSendRequest, s as AgentCloseRequest, t as AGENT_API_VERBS, u as AgentPullRequestRequest } from "./session-
|
|
2
|
-
import { D as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
3
|
-
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-
|
|
1
|
+
import { $ as WhiteboardAgentRequest, C as RefinedTaskTitle, R as TASK_TITLE_CONTROL_CHARACTERS, a as AgentAnswerRequest, c as AgentEditRequest, d as AgentReadRequest, f as AgentReviewsRequest, g as AgentSpawnRequest, h as AgentSettingsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentSendRequest, s as AgentCloseRequest, t as AGENT_API_VERBS, u as AgentPullRequestRequest } from "./session-CMDu4xZJ.js";
|
|
2
|
+
import { D as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-DIZ5SmjH.js";
|
|
3
|
+
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-DTbznjwQ.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { parseArgs } from "node:util";
|
|
6
6
|
import crypto from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-
|
|
2
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-DgType7c.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./session-
|
|
2
|
-
import { C as ONBOARDING_STEPS, E as OPERATOR_SURFACES, T as OPERATOR_ACTIONS_BY_SURFACE, b as DASHBOARD_VIEWS, j as HintFeature, n as BUILTIN_AGENT_IDS, w as ONBOARDING_STEP_STATES } from "./config-
|
|
1
|
+
import "./session-CMDu4xZJ.js";
|
|
2
|
+
import { C as ONBOARDING_STEPS, E as OPERATOR_SURFACES, T as OPERATOR_ACTIONS_BY_SURFACE, b as DASHBOARD_VIEWS, j as HintFeature, n as BUILTIN_AGENT_IDS, w as ONBOARDING_STEP_STATES } from "./config-DIZ5SmjH.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region shared/contracts/telemetry.ts
|
|
5
5
|
var TELEMETRY_ADAPTERS = Object.freeze([...BUILTIN_AGENT_IDS, "custom"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
3
|
-
import { Pt as TraceRecord } from "./config-
|
|
3
|
+
import { Pt as TraceRecord } from "./config-DIZ5SmjH.js";
|
|
4
4
|
import { m as createKeyedSerialQueue, n as appendJsonLines } from "./json-file-AKRVPqG1.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as UnseenOutcome, Bt as TeamReviewActionRequest, Ct as repositoryName, E as SESSION_DOC_PATH_MAX_CHARS, F as ShownFile, Gt as TeamReviewStatus, H as Board, J as Op, M as SessionDoc, N as SessionSnapshot, Nt as ReviewChecksState, Ot as GithubReviewDecision, P as SessionState, St as pullRequestKeyFormat, Vt as TeamReviewActionResult, W as BoardSummary, Z as WHITEBOARD_LIMITS, Zt as hasRequiredActionHead, an as repoParts, bt as MyPrsStatus, cn as GithubPrsFreshness, dt as MyPrMergeResult, ht as MyPrSearchNode, in as REPO_SLUG_RE, ln as githubPollingShape, mt as MyPrMergeWhenReadyResult, nn as GH_SEGMENT, nt as MyPr, on as GithubPollingRefreshRequest, ot as MyPrKeepMergeableRequest, pt as MyPrMergeWhenReadyRequest, sn as GithubPollingRefreshResult, st as MyPrKeepMergeableResult, tt as LinkedPr, ut as MyPrMergeRequest, wt as CommitSha, x as CoherenceHooksState, xt as SessionPrLinks, z as TaskTitle } from "./session-
|
|
1
|
+
import { B as UnseenOutcome, Bt as TeamReviewActionRequest, Ct as repositoryName, E as SESSION_DOC_PATH_MAX_CHARS, F as ShownFile, Gt as TeamReviewStatus, H as Board, J as Op, M as SessionDoc, N as SessionSnapshot, Nt as ReviewChecksState, Ot as GithubReviewDecision, P as SessionState, St as pullRequestKeyFormat, Vt as TeamReviewActionResult, W as BoardSummary, Z as WHITEBOARD_LIMITS, Zt as hasRequiredActionHead, an as repoParts, bt as MyPrsStatus, cn as GithubPrsFreshness, dt as MyPrMergeResult, ht as MyPrSearchNode, in as REPO_SLUG_RE, ln as githubPollingShape, mt as MyPrMergeWhenReadyResult, nn as GH_SEGMENT, nt as MyPr, on as GithubPollingRefreshRequest, ot as MyPrKeepMergeableRequest, pt as MyPrMergeWhenReadyRequest, sn as GithubPollingRefreshResult, st as MyPrKeepMergeableResult, tt as LinkedPr, ut as MyPrMergeRequest, wt as CommitSha, x as CoherenceHooksState, xt as SessionPrLinks, z as TaskTitle } from "./session-CMDu4xZJ.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-IV04of10.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { a as packageRoot,
|
|
2
|
+
import { a as packageRoot, u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.js";
|
|
3
3
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
|
-
import { $ as FLYING_ANIMALS_DEFAULTS, Ot as UPDATE_CHANNELS, Q as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_RETAIN_DAYS_RANGE, at as NON_NEGATIVE_NUMBER_RANGE, bt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, ct as POSTHOG_FIX_TIMEOUT_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, et as FLYING_ANIMALS_DURATION_RANGE, f as USAGE_COST_MODES, ft as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, gt as USAGE_INTEGER_RANGES, ht as USAGE_BUDGET_RANGE, i as Config, it as MEMORY_RESERVE_MB_RANGE, lt as POSTHOG_PROJECT_ID_RANGE, m as normalizeLegacyConfigNumbers, mt as TASK_TITLE_TIMEOUT_RANGE, n as BUILTIN_AGENT_IDS, nt as FLYING_ANIMALS_SCALE_RANGE, ot as PORT_RANGE, pt as REPLAY_BUFFER_KB_RANGE, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSITIVE_NUMBER_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_GAP_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_BASELINE_RANGE, vt as USAGE_SCAN_INTERVAL_RANGE, yt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE } from "./config-
|
|
4
|
+
import { $ as FLYING_ANIMALS_DEFAULTS, Ot as UPDATE_CHANNELS, Q as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_RETAIN_DAYS_RANGE, at as NON_NEGATIVE_NUMBER_RANGE, bt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, ct as POSTHOG_FIX_TIMEOUT_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, et as FLYING_ANIMALS_DURATION_RANGE, f as USAGE_COST_MODES, ft as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, gt as USAGE_INTEGER_RANGES, ht as USAGE_BUDGET_RANGE, i as Config, it as MEMORY_RESERVE_MB_RANGE, lt as POSTHOG_PROJECT_ID_RANGE, m as normalizeLegacyConfigNumbers, mt as TASK_TITLE_TIMEOUT_RANGE, n as BUILTIN_AGENT_IDS, nt as FLYING_ANIMALS_SCALE_RANGE, ot as PORT_RANGE, pt as REPLAY_BUFFER_KB_RANGE, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSITIVE_NUMBER_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_GAP_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_BASELINE_RANGE, vt as USAGE_SCAN_INTERVAL_RANGE, yt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE } from "./config-DIZ5SmjH.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
6
6
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
7
|
-
import { f as FeatureFlagsResponse, g as TELEMETRY_KILL_SWITCH_FLAG, n as isExperimentalBuild, p as MAX_TEXT_LENGTH } from "./build-channel-
|
|
7
|
+
import { f as FeatureFlagsResponse, g as TELEMETRY_KILL_SWITCH_FLAG, n as isExperimentalBuild, p as MAX_TEXT_LENGTH } from "./build-channel-BKm1gBwG.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import os from "node:os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { o as relayPath } from "./runtime-paths-
|
|
2
|
+
import { o as relayPath } from "./runtime-paths-CYwF658V.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
4
|
+
import { t as buildAgentEnv } from "./spawn-env-BySQfWQ5.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-Cw59fBNw.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as relayPath } from "./runtime-paths-
|
|
2
|
-
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
1
|
+
import { o as relayPath } from "./runtime-paths-CYwF658V.js";
|
|
2
|
+
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-CMDu4xZJ.js";
|
|
3
3
|
import { i as execFileSync } from "./child-process-safe-BCOoKfxG.js";
|
|
4
4
|
import { n as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
5
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
5
|
+
import { t as buildAgentEnv } from "./spawn-env-BySQfWQ5.js";
|
|
6
6
|
import { l as KIMI_HOME_PROFILE, m as renderKimiHooksBlock } from "./agent-home-core-DgW3orTE.js";
|
|
7
7
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, o as prepareScratchAgentHome, s as realAgentHome } from "./agent-home-BzANIIVe.js";
|
|
8
8
|
import fs from "node:fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as requireExecutableSpawnHelper } from "./node-pty-preflight-CQNBCDVM.js";
|
|
2
2
|
import { n as sanitizeOneLine, r as showHomeAsTilde, t as firstLine$1 } from "./text-core-rXHoQWP9.js";
|
|
3
3
|
import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
4
|
-
import { a as packageRoot, c as
|
|
4
|
+
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";
|
|
5
5
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
6
|
-
import { A as SIGN_URL_ENV, At as PostedReviewEvent, Bt as TeamReviewActionRequest, D as SESSION_NAME_PATTERN, Dt as FindingSeverity, Et as EarlierReview, F as ShownFile, Ft as ReviewDraft, G as Box, Gt as TeamReviewStatus, Ht as TeamReviewCompareFiles, It as ReviewFinding, Jt as TeamReviewThreadsRepository, K as Frame, Kt as TeamReviewThreadCommentsResponse, L as SshSignRequest, Lt as ReviewResult, Mt as PrDetail, O as SESSION_NAME_RULE_TEXT, Pt as ReviewComment, Qt as hasStandingViewerApproval, Rt as ReviewThreadId, S as ConversationQuestion, T as SESSION_DOC_BODY_CAP_BYTES, Tt as DECIDING_REVIEW_STATES, U as BoardRecord, Ut as TeamReviewResolveResponse, Wt as TeamReviewStateEntry, X as Unit, Xt as decisionAsIfApprovalRequired, Y as Panel, Yt as canApproveAfterComment, Z as WHITEBOARD_LIMITS, _ as COHERENCE_HOOKS_INACTIVE, _t as MyPrThreadsResponse, an as repoParts, at as MyPrCheckContextsResponse, b as CONVERSATION_TOOL_RESULT_HOOK_EVENT, ct as MyPrLaneEntry, dn as KILLABLE_STATES, en as HEX_SHA_RE, et as Wire, fn as MERGEABLE_LIVE_STATES, ft as MyPrMergeStateResponse, gt as MyPrThreadNode, i as ASK_USER_QUESTION_TOOL_NAME, in as REPO_SLUG_RE, it as MyPrCheckContext, j as SSH_SIGN_BODY_CAP_BYTES, jt as PostingPlan, k as SHOWN_FILE_CAP_BYTES, kt as GithubReviewState, lt as MyPrMergeMethod, mn as STATES, nn as GH_SEGMENT, nt as MyPr, ot as MyPrKeepMergeableRequest, pn as RESTARTABLE_STATES, pt as MyPrMergeWhenReadyRequest, q as Note, qt as TeamReviewThreadResult, r as AGENT_URL_ENV, rn as NODE_ID_RE, rt as MyPrAutoRebase, tn as shortSha, tt as LinkedPr, un as BADGE_LABELS, ut as MyPrMergeRequest, v as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, vt as MyPrsSnapshot, wt as CommitSha, y as CONVERSATION_PERMISSION_HOOK_EVENT, yt as MyPrsState, z as TaskTitle, zt as ReviewVerdict } from "./session-
|
|
6
|
+
import { A as SIGN_URL_ENV, At as PostedReviewEvent, Bt as TeamReviewActionRequest, D as SESSION_NAME_PATTERN, Dt as FindingSeverity, Et as EarlierReview, F as ShownFile, Ft as ReviewDraft, G as Box, Gt as TeamReviewStatus, Ht as TeamReviewCompareFiles, It as ReviewFinding, Jt as TeamReviewThreadsRepository, K as Frame, Kt as TeamReviewThreadCommentsResponse, L as SshSignRequest, Lt as ReviewResult, Mt as PrDetail, O as SESSION_NAME_RULE_TEXT, Pt as ReviewComment, Qt as hasStandingViewerApproval, Rt as ReviewThreadId, S as ConversationQuestion, T as SESSION_DOC_BODY_CAP_BYTES, Tt as DECIDING_REVIEW_STATES, U as BoardRecord, Ut as TeamReviewResolveResponse, Wt as TeamReviewStateEntry, X as Unit, Xt as decisionAsIfApprovalRequired, Y as Panel, Yt as canApproveAfterComment, Z as WHITEBOARD_LIMITS, _ as COHERENCE_HOOKS_INACTIVE, _t as MyPrThreadsResponse, an as repoParts, at as MyPrCheckContextsResponse, b as CONVERSATION_TOOL_RESULT_HOOK_EVENT, ct as MyPrLaneEntry, dn as KILLABLE_STATES, en as HEX_SHA_RE, et as Wire, fn as MERGEABLE_LIVE_STATES, ft as MyPrMergeStateResponse, gt as MyPrThreadNode, i as ASK_USER_QUESTION_TOOL_NAME, in as REPO_SLUG_RE, it as MyPrCheckContext, j as SSH_SIGN_BODY_CAP_BYTES, jt as PostingPlan, k as SHOWN_FILE_CAP_BYTES, kt as GithubReviewState, lt as MyPrMergeMethod, mn as STATES, nn as GH_SEGMENT, nt as MyPr, ot as MyPrKeepMergeableRequest, pn as RESTARTABLE_STATES, pt as MyPrMergeWhenReadyRequest, q as Note, qt as TeamReviewThreadResult, r as AGENT_URL_ENV, rn as NODE_ID_RE, rt as MyPrAutoRebase, tn as shortSha, tt as LinkedPr, un as BADGE_LABELS, ut as MyPrMergeRequest, v as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, vt as MyPrsSnapshot, wt as CommitSha, y as CONVERSATION_PERMISSION_HOOK_EVENT, yt as MyPrsState, z as TaskTitle, zt as ReviewVerdict } from "./session-CMDu4xZJ.js";
|
|
7
7
|
import { c as spawn, i as execFileSync, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-BCOoKfxG.js";
|
|
8
|
-
import { $t as IssuesStatus, A as HINT_VIEW_BY_FEATURE, At as UpdateJournal, B as MergedPrListing, Bt as PLAN_HOOK_OUTPUT_MAX_CHARS, Ct as CommunityItem, D as pullRequestKeyFromReference, Dt as SKILL_NAME_RE, Et as DISCORD_CHANNEL_NAME_RE, F as BenchmarkJudgement, Ft as CoherenceJournalOutput, G as GithubPrLightSearchNode, Gt as parseExitPlanModeHookPayload, H as PrCheckoutCaseInput, Ht as PLAN_TOOL_NAME, I as BenchmarkRun, It as ChangeMap, J as WorkflowCommentBody, Jt as GithubIssueResponse, K as GithubPrsFrame, Kt as planTitle, L as BenchmarkStatus, Lt as changeMapFactId, M as BenchmarkActionRequest, Mt as MAX_RAW_LINE_CHARS, N as BenchmarkCase, Nt as TraceCheckpoint, O as FeatureHintState, P as BenchmarkId, Pt as TraceRecord, Qt as IssuesState, R as BenchmarkSuite, Rt as PLAN_BODY_CAP_BYTES, St as CommunityDraft, Tt as CommunityVerdict, U as GithubPrDetailNode, Ut as PlanDecision, V as MinedPrReviewData, Vt as PLAN_RESULT_HOOK_EVENT, W as GithubPrKey, Wt as PlanRevision, X as WorkflowsSettings, Xt as IssueUpdate, Y as WorkflowLabelName, Yt as IssueKey, Z as WorkflowsState, Zt as IssuesSearchResponse, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, c as SHELL_AGENT_ID, en as issuePullRequestStateFromGithub, f as USAGE_COST_MODES, gt as USAGE_INTEGER_RANGES, h as CHANGES_POLL_INTERVAL_MS, jt as SessionSetup, k as HINT_FEATURES, p as USAGE_VENDOR_KEYS, q as comparablePrKey, qt as GithubIssuePullRequestsRepository, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CONTROL_FRAME_MAX_BYTES, wt as CommunityState, x as GithubTeam, xt as CommunityActionRequest, y as ClientMessage, z as CommitComparison, zt as PLAN_HOOK_EVENT } from "./config-
|
|
9
|
-
import { 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, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, 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, 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-
|
|
10
|
-
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-
|
|
8
|
+
import { $t as IssuesStatus, A as HINT_VIEW_BY_FEATURE, At as UpdateJournal, B as MergedPrListing, Bt as PLAN_HOOK_OUTPUT_MAX_CHARS, Ct as CommunityItem, D as pullRequestKeyFromReference, Dt as SKILL_NAME_RE, Et as DISCORD_CHANNEL_NAME_RE, F as BenchmarkJudgement, Ft as CoherenceJournalOutput, G as GithubPrLightSearchNode, Gt as parseExitPlanModeHookPayload, H as PrCheckoutCaseInput, Ht as PLAN_TOOL_NAME, I as BenchmarkRun, It as ChangeMap, J as WorkflowCommentBody, Jt as GithubIssueResponse, K as GithubPrsFrame, Kt as planTitle, L as BenchmarkStatus, Lt as changeMapFactId, M as BenchmarkActionRequest, Mt as MAX_RAW_LINE_CHARS, N as BenchmarkCase, Nt as TraceCheckpoint, O as FeatureHintState, P as BenchmarkId, Pt as TraceRecord, Qt as IssuesState, R as BenchmarkSuite, Rt as PLAN_BODY_CAP_BYTES, St as CommunityDraft, Tt as CommunityVerdict, U as GithubPrDetailNode, Ut as PlanDecision, V as MinedPrReviewData, Vt as PLAN_RESULT_HOOK_EVENT, W as GithubPrKey, Wt as PlanRevision, X as WorkflowsSettings, Xt as IssueUpdate, Y as WorkflowLabelName, Yt as IssueKey, Z as WorkflowsState, Zt as IssuesSearchResponse, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, c as SHELL_AGENT_ID, en as issuePullRequestStateFromGithub, f as USAGE_COST_MODES, gt as USAGE_INTEGER_RANGES, h as CHANGES_POLL_INTERVAL_MS, jt as SessionSetup, k as HINT_FEATURES, p as USAGE_VENDOR_KEYS, q as comparablePrKey, qt as GithubIssuePullRequestsRepository, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CONTROL_FRAME_MAX_BYTES, wt as CommunityState, x as GithubTeam, xt as CommunityActionRequest, y as ClientMessage, z as CommitComparison, zt as PLAN_HOOK_EVENT } from "./config-DIZ5SmjH.js";
|
|
9
|
+
import { 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, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, 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, 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-jq6vR13e.js";
|
|
10
|
+
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-DTbznjwQ.js";
|
|
11
11
|
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";
|
|
12
12
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-xS1GFU8P.js";
|
|
13
13
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
@@ -15,20 +15,20 @@ import { r as refocusReplyFor, t as promptContextReplyOf } from "./refocus-core-
|
|
|
15
15
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
16
16
|
import { a as saneYoloFiles } from "./sane-yolo-BjUkqIoH.js";
|
|
17
17
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
18
|
-
import { a as readPageTitle, c as
|
|
18
|
+
import { a as readPageTitle, c as thumbnailOwnerIdOf, d as layoutBoard, f as findDependencyCycle, i as filesAfterRetention, l as thumbnailRecipeFor, m as unitsOf, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, s as thumbnailFilenameOf, t as SHOWN_SNIFF_BYTES, u as escapeMarkup } from "./shown-files-core-C8rudyNn.js";
|
|
19
19
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
20
20
|
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";
|
|
21
|
-
import { $ as stableConfigKey, B as buildPersonProperties, F as TELEMETRY_FLAGS_URL, G as decideRemoteTelemetryState, H as claudeAccountUuidOf, I as adapterBucket, J as nodeMajorVersion, K as decideTelemetryConsent, L as buildAiGenerationEvents, M as isExperimentalSetting, N as FIRST_RUN_NOTICE, P as TELEMETRY_BATCH_URL, R as buildBrowserExceptionProperties, U as codexUserIdOf, V as classifySessionExit, W as decideIsDevInstall, X as resolveProjectToken, Y as parsePosthogReleaseId, _ as settingsBlockSpecFor, a as ensureProjectIds, at as sessionIdFromBranch, ct as canonicalizePath, f as DEFAULT_TIMER_FNS, g as mergeSettingsBlock, i as createConfigStore, it as planWorktreeGc, k as valueAtPath, lt as comparableDirectoryPath, n as DEFAULT_CONFIG, nt as matchedPrefix, o as generateProjectId, ot as usablePrefixes, p as unrefTimer, q as exceptionFingerprint, rt as planBranchGc, s as glimmervoidHomeDir$1, st as worktreeIntegrationTips, t as ABORT_CONFIG_SAVE, tt as DEFAULT_BRANCH_GC_PREFIXES, ut as isSameDirectoryPath, v as validateSettingsBlock, y as SETTINGS_INDEX, z as buildExceptionProperties } from "./config-store-
|
|
22
|
-
import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-
|
|
23
|
-
import { i as resolveArgvCommandMatches } from "./kimi-
|
|
24
|
-
import { $ as grokHomes, A as decideUploadType, B as containmentRefusalReason, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as claudeCode, E as shortSha$1, Et as HOOK_TOOLS, F as planUploadRetention, G as codexFallbackRoots, H as planContiguousRead, I as MAX_TRANSCRIPT_READ_BYTES, J as codexSessionIdFromPath, K as codexHomes, L as TRACE_TAIL_SCAN_BYTES, M as framePathPaste, N as imageMimeForUploadFilename, O as MAX_UPLOAD_BYTES, P as isSafePathSegment, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, V as isOversizedPartialLine, W as withCommittedOffset, X as decideFileRead, Y as continuationDelayMs, 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, k as buildUploadFilename, 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, 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 } from "./adapters-
|
|
21
|
+
import { $ as stableConfigKey, B as buildPersonProperties, F as TELEMETRY_FLAGS_URL, G as decideRemoteTelemetryState, H as claudeAccountUuidOf, I as adapterBucket, J as nodeMajorVersion, K as decideTelemetryConsent, L as buildAiGenerationEvents, M as isExperimentalSetting, N as FIRST_RUN_NOTICE, P as TELEMETRY_BATCH_URL, R as buildBrowserExceptionProperties, U as codexUserIdOf, V as classifySessionExit, W as decideIsDevInstall, X as resolveProjectToken, Y as parsePosthogReleaseId, _ as settingsBlockSpecFor, a as ensureProjectIds, at as sessionIdFromBranch, ct as canonicalizePath, f as DEFAULT_TIMER_FNS, g as mergeSettingsBlock, i as createConfigStore, it as planWorktreeGc, k as valueAtPath, lt as comparableDirectoryPath, n as DEFAULT_CONFIG, nt as matchedPrefix, o as generateProjectId, ot as usablePrefixes, p as unrefTimer, q as exceptionFingerprint, rt as planBranchGc, s as glimmervoidHomeDir$1, st as worktreeIntegrationTips, t as ABORT_CONFIG_SAVE, tt as DEFAULT_BRANCH_GC_PREFIXES, ut as isSameDirectoryPath, v as validateSettingsBlock, y as SETTINGS_INDEX, z as buildExceptionProperties } from "./config-store-IV04of10.js";
|
|
22
|
+
import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-BKm1gBwG.js";
|
|
23
|
+
import { i as resolveArgvCommandMatches } from "./kimi-Cw59fBNw.js";
|
|
24
|
+
import { $ as grokHomes, A as decideUploadType, B as containmentRefusalReason, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as claudeCode, E as shortSha$1, Et as HOOK_TOOLS, F as planUploadRetention, G as codexFallbackRoots, H as planContiguousRead, I as MAX_TRANSCRIPT_READ_BYTES, J as codexSessionIdFromPath, K as codexHomes, L as TRACE_TAIL_SCAN_BYTES, M as framePathPaste, N as imageMimeForUploadFilename, O as MAX_UPLOAD_BYTES, P as isSafePathSegment, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, V as isOversizedPartialLine, W as withCommittedOffset, X as decideFileRead, Y as continuationDelayMs, 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, k as buildUploadFilename, 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, 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 } from "./adapters-DUBAgJNX.js";
|
|
25
25
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-DgW3orTE.js";
|
|
26
26
|
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-BzANIIVe.js";
|
|
27
27
|
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";
|
|
28
|
-
import { a as defaultPairingsPath, c as decideDeviceAuth, i as createSeenStore, l as deviceNameFromUserAgent, n as configSiblingPath, o as defaultSeenPath, r as createPairingsStore, s as DEFAULT_DEVICE_MAX_AGE_MS, u as hashSecret } from "./pairings-store-
|
|
29
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
28
|
+
import { a as defaultPairingsPath, c as decideDeviceAuth, i as createSeenStore, l as deviceNameFromUserAgent, n as configSiblingPath, o as defaultSeenPath, r as createPairingsStore, s as DEFAULT_DEVICE_MAX_AGE_MS, u as hashSecret } from "./pairings-store-BgJT5Cct.js";
|
|
29
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-zh8Uye_Z.js";
|
|
30
30
|
import { n as normalizeRemoteConfig, r as validateRemoteConfig, t as decideBindHost } from "./remote-config-Dcejfz01.js";
|
|
31
|
-
import { g as runGit, h as runGh, i as createCommitSessions, m as runCommand, p as gitCommandFailure, t as COMMIT_SESSIONS_FOLDER_NAME } from "./commit-sessions-
|
|
31
|
+
import { g as runGit, h as runGh, i as createCommitSessions, m as runCommand, p as gitCommandFailure, t as COMMIT_SESSIONS_FOLDER_NAME } from "./commit-sessions-Cs-9V1qs.js";
|
|
32
32
|
import { createRequire } from "node:module";
|
|
33
33
|
import fs, { readFileSync } from "node:fs";
|
|
34
34
|
import path, { join, resolve } from "node:path";
|
|
@@ -41838,6 +41838,51 @@ function createTraceChangeBroadcast({ source, broadcast, setTimeoutFunction = se
|
|
|
41838
41838
|
return { stop };
|
|
41839
41839
|
}
|
|
41840
41840
|
//#endregion
|
|
41841
|
+
//#region server/session/shown-thumbnails.ts
|
|
41842
|
+
var VIDEO_POSTER_TIMEOUT_MS = 15e3;
|
|
41843
|
+
var THUMBNAIL_WEBP_QUALITY = 80;
|
|
41844
|
+
async function writeImageThumbnail(sourcePath, thumbnailPath) {
|
|
41845
|
+
const { default: sharp } = await import("sharp");
|
|
41846
|
+
await sharp(sourcePath, { animated: false }).resize(320, 320, {
|
|
41847
|
+
fit: "inside",
|
|
41848
|
+
withoutEnlargement: true
|
|
41849
|
+
}).webp({ quality: THUMBNAIL_WEBP_QUALITY }).toFile(thumbnailPath);
|
|
41850
|
+
}
|
|
41851
|
+
async function writeVideoPoster(sourcePath, thumbnailPath) {
|
|
41852
|
+
const ffmpegPath = resolveFfmpegPath();
|
|
41853
|
+
if (!ffmpegPath) throw new Error("ffmpeg-static has no binary for this platform");
|
|
41854
|
+
await execFileAsync(ffmpegPath, [
|
|
41855
|
+
"-v",
|
|
41856
|
+
"error",
|
|
41857
|
+
"-i",
|
|
41858
|
+
sourcePath,
|
|
41859
|
+
"-frames:v",
|
|
41860
|
+
"1",
|
|
41861
|
+
"-vf",
|
|
41862
|
+
`scale='min(320,iw)':'min(320,ih)':force_original_aspect_ratio=decrease`,
|
|
41863
|
+
"-c:v",
|
|
41864
|
+
"libwebp",
|
|
41865
|
+
"-quality",
|
|
41866
|
+
String(THUMBNAIL_WEBP_QUALITY),
|
|
41867
|
+
"-y",
|
|
41868
|
+
thumbnailPath
|
|
41869
|
+
], { timeout: VIDEO_POSTER_TIMEOUT_MS });
|
|
41870
|
+
}
|
|
41871
|
+
var THUMBNAIL_WRITERS = {
|
|
41872
|
+
image: writeImageThumbnail,
|
|
41873
|
+
"video-poster": writeVideoPoster
|
|
41874
|
+
};
|
|
41875
|
+
async function makeShownThumbnail(recipe, sourcePath, thumbnailPath) {
|
|
41876
|
+
if (recipe === "none") return false;
|
|
41877
|
+
try {
|
|
41878
|
+
await THUMBNAIL_WRITERS[recipe](sourcePath, thumbnailPath);
|
|
41879
|
+
return true;
|
|
41880
|
+
} catch {
|
|
41881
|
+
await fs$1.unlink(thumbnailPath).catch(() => {});
|
|
41882
|
+
return false;
|
|
41883
|
+
}
|
|
41884
|
+
}
|
|
41885
|
+
//#endregion
|
|
41841
41886
|
//#region server/session/shown-files-wiring.ts
|
|
41842
41887
|
var SHOWN_FOLDER_NAME = "shown";
|
|
41843
41888
|
var INDEX_FILENAME = "index.json";
|
|
@@ -41867,6 +41912,7 @@ async function writeSessionIndex(indexPath, files) {
|
|
|
41867
41912
|
function createShownFilesWiring({ shownRoot, broadcastControl, now = Date.now }) {
|
|
41868
41913
|
const filesBySessionId = /* @__PURE__ */ new Map();
|
|
41869
41914
|
const indexQueue = createKeyedSerialQueue();
|
|
41915
|
+
const thumbnailSizeByPath = /* @__PURE__ */ new Map();
|
|
41870
41916
|
function sessionDir(sessionId) {
|
|
41871
41917
|
return path.join(shownRoot, sessionId);
|
|
41872
41918
|
}
|
|
@@ -41876,8 +41922,15 @@ function createShownFilesWiring({ shownRoot, broadcastControl, now = Date.now })
|
|
|
41876
41922
|
if (!isSafePathSegment(sessionId)) continue;
|
|
41877
41923
|
const files = await readSessionIndex(path.join(sessionDir(sessionId), INDEX_FILENAME));
|
|
41878
41924
|
if (files.length > 0 && !filesBySessionId.has(sessionId)) filesBySessionId.set(sessionId, files);
|
|
41925
|
+
for (const file of files) if (file.hasThumbnail) await recordThumbnailSize(path.join(sessionDir(sessionId), thumbnailFilenameOf(file.id)));
|
|
41879
41926
|
}
|
|
41880
41927
|
}
|
|
41928
|
+
async function recordThumbnailSize(thumbnailPath) {
|
|
41929
|
+
const stats = await fs$1.stat(thumbnailPath).catch(() => null);
|
|
41930
|
+
if (!stats) return false;
|
|
41931
|
+
thumbnailSizeByPath.set(thumbnailPath, stats.size);
|
|
41932
|
+
return true;
|
|
41933
|
+
}
|
|
41881
41934
|
async function reserveIncomingPath(sessionId) {
|
|
41882
41935
|
const dir = sessionDir(sessionId);
|
|
41883
41936
|
await fs$1.mkdir(dir, {
|
|
@@ -41896,7 +41949,9 @@ function createShownFilesWiring({ shownRoot, broadcastControl, now = Date.now })
|
|
|
41896
41949
|
const kept = filesAfterRetention(withNewest, droppedIds);
|
|
41897
41950
|
await writeSessionIndex(path.join(dir, INDEX_FILENAME), kept);
|
|
41898
41951
|
filesBySessionId.set(sessionId, kept);
|
|
41899
|
-
|
|
41952
|
+
const droppedFilenames = droppedIds.flatMap((droppedId) => [droppedId, thumbnailFilenameOf(droppedId)]);
|
|
41953
|
+
for (const droppedId of droppedIds) thumbnailSizeByPath.delete(path.join(dir, thumbnailFilenameOf(droppedId)));
|
|
41954
|
+
await Promise.all(droppedFilenames.map((droppedFilename) => fs$1.unlink(path.join(dir, droppedFilename)).catch(() => {})));
|
|
41900
41955
|
}
|
|
41901
41956
|
async function admit(session, arrival) {
|
|
41902
41957
|
const firstChunk = await readFirstChunk(arrival.incomingPath);
|
|
@@ -41915,7 +41970,10 @@ function createShownFilesWiring({ shownRoot, broadcastControl, now = Date.now })
|
|
|
41915
41970
|
randomSuffix: crypto.randomBytes(4).toString("hex"),
|
|
41916
41971
|
extension: verdict.extension
|
|
41917
41972
|
});
|
|
41918
|
-
|
|
41973
|
+
const storedPath = path.join(sessionDir(session.id), fileId);
|
|
41974
|
+
await fs$1.rename(arrival.incomingPath, storedPath);
|
|
41975
|
+
const thumbnailPath = path.join(sessionDir(session.id), thumbnailFilenameOf(fileId));
|
|
41976
|
+
const hasThumbnail = await makeShownThumbnail(thumbnailRecipeFor(verdict.kind), storedPath, thumbnailPath) && await recordThumbnailSize(thumbnailPath);
|
|
41919
41977
|
const file = {
|
|
41920
41978
|
id: fileId,
|
|
41921
41979
|
name: arrival.name,
|
|
@@ -41924,7 +41982,8 @@ function createShownFilesWiring({ shownRoot, broadcastControl, now = Date.now })
|
|
|
41924
41982
|
mime: verdict.mime,
|
|
41925
41983
|
sizeBytes: arrival.sizeBytes,
|
|
41926
41984
|
pageTitle: verdict.kind === "page" ? readPageTitle(firstChunk) : null,
|
|
41927
|
-
shownAt
|
|
41985
|
+
shownAt,
|
|
41986
|
+
hasThumbnail
|
|
41928
41987
|
};
|
|
41929
41988
|
await indexQueue.run(session.id, () => recordAdmitted(session.id, file));
|
|
41930
41989
|
broadcastControl({
|
|
@@ -41937,17 +41996,32 @@ function createShownFilesWiring({ shownRoot, broadcastControl, now = Date.now })
|
|
|
41937
41996
|
file
|
|
41938
41997
|
};
|
|
41939
41998
|
}
|
|
41940
|
-
function findServable(sessionId,
|
|
41941
|
-
if (!isSafePathSegment(sessionId) || !isSafePathSegment(
|
|
41942
|
-
const
|
|
41943
|
-
|
|
41999
|
+
function findServable(sessionId, filename) {
|
|
42000
|
+
if (!isSafePathSegment(sessionId) || !isSafePathSegment(filename)) return null;
|
|
42001
|
+
const thumbnailOwnerId = thumbnailOwnerIdOf(filename);
|
|
42002
|
+
if (thumbnailOwnerId !== null) return findServableThumbnail(sessionId, thumbnailOwnerId, filename);
|
|
42003
|
+
const file = filesBySessionId.get(sessionId)?.find((shown) => shown.id === filename);
|
|
42004
|
+
const mime = shownMimeForFilename(filename);
|
|
41944
42005
|
if (!file || !mime) return null;
|
|
41945
42006
|
return {
|
|
41946
|
-
path: path.join(sessionDir(sessionId),
|
|
42007
|
+
path: path.join(sessionDir(sessionId), filename),
|
|
41947
42008
|
mime,
|
|
41948
42009
|
sizeBytes: file.sizeBytes
|
|
41949
42010
|
};
|
|
41950
42011
|
}
|
|
42012
|
+
function findServableThumbnail(sessionId, ownerId, filename) {
|
|
42013
|
+
const owner = filesBySessionId.get(sessionId)?.find((shown) => shown.id === ownerId);
|
|
42014
|
+
const mime = shownMimeForFilename(filename);
|
|
42015
|
+
if (!owner?.hasThumbnail || !mime) return null;
|
|
42016
|
+
const thumbnailPath = path.join(sessionDir(sessionId), filename);
|
|
42017
|
+
const sizeBytes = thumbnailSizeByPath.get(thumbnailPath);
|
|
42018
|
+
if (sizeBytes === void 0) return null;
|
|
42019
|
+
return {
|
|
42020
|
+
path: thumbnailPath,
|
|
42021
|
+
mime,
|
|
42022
|
+
sizeBytes
|
|
42023
|
+
};
|
|
42024
|
+
}
|
|
41951
42025
|
function snapshotMessage() {
|
|
41952
42026
|
return {
|
|
41953
42027
|
type: "session-shown-snapshot",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { l as resolveConfigPath } from "./config-store-
|
|
3
|
-
import { a as defaultPairingsPath, i as createSeenStore, o as defaultSeenPath, r as createPairingsStore, t as REVOCATION_PROPAGATION_SECONDS } from "./pairings-store-
|
|
2
|
+
import { l as resolveConfigPath } from "./config-store-IV04of10.js";
|
|
3
|
+
import { a as defaultPairingsPath, i as createSeenStore, o as defaultSeenPath, r as createPairingsStore, t as REVOCATION_PROPAGATION_SECONDS } from "./pairings-store-BgJT5Cct.js";
|
|
4
4
|
import { n as normalizeRemoteConfig } from "./remote-config-Dcejfz01.js";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
//#region server/text-format.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
4
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-AKRVPqG1.js";
|
|
5
|
-
import { ct as canonicalizePath, f as DEFAULT_TIMER_FNS, p as unrefTimer, s as glimmervoidHomeDir } from "./config-store-
|
|
5
|
+
import { ct as canonicalizePath, f as DEFAULT_TIMER_FNS, p as unrefTimer, s as glimmervoidHomeDir } from "./config-store-IV04of10.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as resolvePackageBin } from "./runtime-paths-CYwF658V.js";
|
|
@@ -89,5 +89,20 @@ function readPackageBin(packageName, binName) {
|
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
var ffmpegPath;
|
|
93
|
+
function resolveFfmpegPath() {
|
|
94
|
+
if (ffmpegPath !== void 0) return ffmpegPath;
|
|
95
|
+
ffmpegPath = readFfmpegPath();
|
|
96
|
+
return ffmpegPath;
|
|
97
|
+
}
|
|
98
|
+
function readFfmpegPath() {
|
|
99
|
+
try {
|
|
100
|
+
const exported = createRequire(path.join(packageRoot, "package.json"))("ffmpeg-static");
|
|
101
|
+
if (typeof exported !== "string") return null;
|
|
102
|
+
return fs.statSync(exported).isFile() ? exported : null;
|
|
103
|
+
} catch {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
92
107
|
//#endregion
|
|
93
|
-
export { packageRoot as a,
|
|
108
|
+
export { packageRoot as a, resolvePackageBin as c, isPathInside as d, safePathSegment as f, clientDir as i, caseFoldedPathKey as l, bundled as n, relayPath as o, sanitizeWorktreeName as p, cliPath as r, resolveFfmpegPath as s, assetRoot as t, equalsIgnoringCaseOnWindows as u };
|
|
@@ -1396,7 +1396,8 @@ var ShownFile = z.object({
|
|
|
1396
1396
|
mime: z.string(),
|
|
1397
1397
|
sizeBytes: z.number().int().nonnegative(),
|
|
1398
1398
|
pageTitle: z.string().nullable(),
|
|
1399
|
-
shownAt: z.number().finite()
|
|
1399
|
+
shownAt: z.number().finite(),
|
|
1400
|
+
hasThumbnail: z.boolean().default(false)
|
|
1400
1401
|
}).strict();
|
|
1401
1402
|
var SessionDoc = z.object({
|
|
1402
1403
|
path: z.string(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as SESSION_COMMANDS } from "./session-
|
|
1
|
+
import { w as SESSION_COMMANDS } from "./session-CMDu4xZJ.js";
|
|
2
2
|
//#region session/core/session-routes.ts
|
|
3
3
|
var SUPERVISION_LINE = "Glimmervoid supervises this session. Run glimmervoid --help for the commands it gives you and this session's limits.";
|
|
4
4
|
var SPAWN_LINE = "To delegate work that edits files or runs long, use glimmervoid spawn rather than an in-process subagent: the spawned session gets its own dashboard card the operator can watch. An in-process subagent stays fine for a quick read-only lookup.";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
3
|
-
import { m as AgentSettingsReply } from "./session-
|
|
4
|
-
import { r as BrowserConfig } from "./config-
|
|
3
|
+
import { m as AgentSettingsReply } from "./session-CMDu4xZJ.js";
|
|
4
|
+
import { r as BrowserConfig } from "./config-DIZ5SmjH.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
6
6
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
7
|
-
import { E as setValueAtPath, Q as readEnvSecrets, T as scoreSettingsSearch, Z as ENV_SECRET_BINDINGS, b as cloneValue, c as loadConfigFile, d as validateConfig, et as withEnvSecrets, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, r as IS_EXPERIMENTAL_BUILD, u as saveConfigFileOnce, w as parsePosthogProjectSelection, x as deleteValueAtPath } from "./config-store-
|
|
8
|
-
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-
|
|
7
|
+
import { E as setValueAtPath, Q as readEnvSecrets, T as scoreSettingsSearch, Z as ENV_SECRET_BINDINGS, b as cloneValue, c as loadConfigFile, d as validateConfig, et as withEnvSecrets, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, r as IS_EXPERIMENTAL_BUILD, u as saveConfigFileOnce, w as parsePosthogProjectSelection, x as deleteValueAtPath } from "./config-store-IV04of10.js";
|
|
8
|
+
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-zh8Uye_Z.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
//#region server/settings-cli.ts
|
|
@@ -303,7 +303,7 @@ function runParsedSettingsCommand(parsed, io) {
|
|
|
303
303
|
async function runParsedSettingsCli(parsed, io = processIo()) {
|
|
304
304
|
const serverRequest = settingsRequestForServer(parsed, process.env);
|
|
305
305
|
if (!serverRequest) return runParsedSettingsCommand(parsed, io);
|
|
306
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
306
|
+
const { askAgentApi } = await import("./agent-api-cli-BJs-xXmv.js");
|
|
307
307
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
308
308
|
ok: false,
|
|
309
309
|
error: errorMessage(error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as AgentSettingsRequest } from "./session-
|
|
1
|
+
import { h as AgentSettingsRequest } from "./session-CMDu4xZJ.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import { A as FILE_ONLY_GROUPS, C as hasScaledUnit, D as settingsGroupOf, O as settingsOf, Q as readEnvSecrets, S as displayText, b as cloneValue, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, y as SETTINGS_INDEX } from "./config-store-
|
|
3
|
+
import { A as FILE_ONLY_GROUPS, C as hasScaledUnit, D as settingsGroupOf, O as settingsOf, Q as readEnvSecrets, S as displayText, b as cloneValue, j as SETTINGS_REGISTRY, k as valueAtPath, m as isSettingAvailable, y as SETTINGS_INDEX } from "./config-store-IV04of10.js";
|
|
4
4
|
//#region server/core/settings-readout-core.ts
|
|
5
5
|
var VALUE_COLUMN_WIDTH = 40;
|
|
6
6
|
var SECTION_BY_SETTING_ID = new Map([...SETTINGS_REGISTRY.sections.flatMap((section) => section.settings.map((setting) => [setting.id, {
|