glimmervoid 0.52.3-next.838 → 0.52.3-next.841
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 +13 -13
- package/dist/chunks/{adapters-B1k8FDU5.js → adapters-D2zr2Uop.js} +4 -5
- package/dist/chunks/{adapters-COIzHLk_.js → adapters-DqH6rr17.js} +1 -1
- package/dist/chunks/{agent-setup-cli-sPLcSqu3.js → agent-setup-cli-Dl02S8kv.js} +1 -1
- package/dist/chunks/config-store-BsOT3TkF.js +1 -0
- package/dist/chunks/{config-store-qbQjbdGp.js → config-store-DRIDk1dj.js} +31 -4
- package/dist/chunks/{grok-CipeU5cC.js → grok-z0gCHJuh.js} +1 -1
- package/dist/chunks/{host-cli-CAR95LFQ.js → host-cli-Cmh7CJZN.js} +1 -1
- package/dist/chunks/kimi-D6H6co0c.js +1 -0
- package/dist/chunks/{kimi-DmGX6yjF.js → kimi-DoJtxbMK.js} +1 -1
- package/dist/chunks/{main-Cc2JGBdM.js → main-DeeaAaSi.js} +65 -26
- package/dist/chunks/{packs-cli-BPNS6v7c.js → packs-cli-B35qdjPU.js} +1 -1
- package/dist/chunks/{pair-cli-C5CTbWGe.js → pair-cli-BfToAEYw.js} +2 -2
- package/dist/chunks/{remote-config-BJJeoIEq.js → remote-config-MtTrtohP.js} +3 -3
- package/dist/chunks/runtime-paths-BDgOIpU-.js +1 -0
- package/dist/chunks/{runtime-paths-YS6tWGDa.js → runtime-paths-Bg4cKFoq.js} +25 -2
- package/dist/chunks/{settings-cli-CZgS28eb.js → settings-cli-Br1U03X4.js} +2 -2
- package/dist/chunks/settings-cli-DoWp6qzv.js +1 -0
- package/dist/chunks/{settings-readout-core-BrUnDY8a.js → settings-readout-core-BKUStfoo.js} +1 -1
- package/dist/chunks/timer-deps-yeY8p-gc.js +14 -0
- package/dist/chunks/{watch-cli-C3GdjTh1.js → watch-cli-0XmC36if.js} +101 -28
- package/dist/chunks/{watchee-settings--OZC62ym.js → watchee-settings-Bu93osrP.js} +72 -64
- package/dist/client/assets/{agent-core-IagWp_5L.js → agent-core-BBakMR_x.js} +2 -2
- package/dist/client/assets/agent-core-BBakMR_x.js.br +0 -0
- package/dist/client/assets/{agent-mark-CeFX5v8y.js → agent-mark-CvBp2Vrz.js} +1 -1
- package/dist/client/assets/agent-mark-CvBp2Vrz.js.br +0 -0
- package/dist/client/assets/{arena-panel-02vUx_Xa.js → arena-panel-pTer0rz7.js} +2 -2
- package/dist/client/assets/arena-panel-pTer0rz7.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-DB8npUQm.js → benchmark-panel-CvgUDXaf.js} +1 -1
- package/dist/client/assets/benchmark-panel-CvgUDXaf.js.br +0 -0
- package/dist/client/assets/{boards-view-nGEjfH9Y.js → boards-view-mJ7_ojKe.js} +1 -1
- package/dist/client/assets/boards-view-mJ7_ojKe.js.br +0 -0
- package/dist/client/assets/{community-panel-C7YhQN3n.js → community-panel--he2ZdKr.js} +1 -1
- package/dist/client/assets/community-panel--he2ZdKr.js.br +0 -0
- package/dist/client/assets/{dialogs-BEOxFgZe.js → dialogs-DUKd951O.js} +1 -1
- package/dist/client/assets/dialogs-DUKd951O.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-DpPr188Q.js → doc-editor-ui-BuXfO1aq.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BuXfO1aq.js.br +0 -0
- package/dist/client/assets/{feature-hint-LdOcWtrA.js → feature-hint-CDRSmmHL.js} +1 -1
- package/dist/client/assets/feature-hint-CDRSmmHL.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-1SKaO6nW.js → first-run-checklist-CXpRnU63.js} +1 -1
- package/dist/client/assets/first-run-checklist-CXpRnU63.js.br +0 -0
- package/dist/client/assets/{hooks-panel-CcghhBlR.js → hooks-panel-Dg174zsJ.js} +1 -1
- package/dist/client/assets/hooks-panel-Dg174zsJ.js.br +0 -0
- package/dist/client/assets/{index-DgDI3kFD.js → index-BH0EN62M.js} +5 -5
- package/dist/client/assets/index-BH0EN62M.js.br +0 -0
- package/dist/client/assets/{issues-panel-BWs3OZHS.js → issues-panel-DyFprAeS.js} +1 -1
- package/dist/client/assets/issues-panel-DyFprAeS.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-CcMjrQyI.js → lane-read-token-step-B8p0bxOy.js} +1 -1
- package/dist/client/assets/lane-read-token-step-B8p0bxOy.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-DaOSi7iI.js → my-prs-panel-LtJs_ipe.js} +1 -1
- package/dist/client/assets/my-prs-panel-LtJs_ipe.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CORWckfk.js → nyan-cat-CSicgTiT.js} +1 -1
- package/dist/client/assets/nyan-cat-CSicgTiT.js.br +0 -0
- package/dist/client/assets/{phone-shell-_G_ciX1y.js → phone-shell-ChriJfnn.js} +1 -1
- package/dist/client/assets/phone-shell-ChriJfnn.js.br +0 -0
- package/dist/client/assets/{plan-face-DWR41G_w.js → plan-face-CLbEjtEr.js} +1 -1
- package/dist/client/assets/plan-face-CLbEjtEr.js.br +0 -0
- package/dist/client/assets/{plan-render-rjePieU4.js → plan-render-Crv1SJU9.js} +1 -1
- package/dist/client/assets/plan-render-Crv1SJU9.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BCoHYTzP.js → pr-queue-columns-C5Bx7R14.js} +1 -1
- package/dist/client/assets/pr-queue-columns-C5Bx7R14.js.br +0 -0
- package/dist/client/assets/{radar-panel-DqyUGhea.js → radar-panel-Dolgat0i.js} +1 -1
- package/dist/client/assets/radar-panel-Dolgat0i.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-BcX3tvRJ.js → repo-roots-adder-D8RglW4e.js} +1 -1
- package/dist/client/assets/repo-roots-adder-D8RglW4e.js.br +0 -0
- package/dist/client/assets/{resume-dialog-D2Sm4oFH.js → resume-dialog-CB7hHYC0.js} +1 -1
- package/dist/client/assets/resume-dialog-CB7hHYC0.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-K6SfWZlj.js → review-queue-panel-BL96L6oi.js} +1 -1
- package/dist/client/assets/review-queue-panel-BL96L6oi.js.br +0 -0
- package/dist/client/assets/{session-row-L4apwv1I.js → session-row-BgXMPN12.js} +1 -1
- package/dist/client/assets/session-row-BgXMPN12.js.br +0 -0
- package/dist/client/assets/{settings-panel-DXCr544Y.js → settings-panel-BTYGqTw_.js} +2 -2
- package/dist/client/assets/settings-panel-BTYGqTw_.js.br +0 -0
- package/dist/client/assets/{trace-panel-DBAiG71Z.js → trace-panel-C_rE_Esd.js} +1 -1
- package/dist/client/assets/trace-panel-C_rE_Esd.js.br +0 -0
- package/dist/client/assets/{usage-panel-ByBHUjIy.js → usage-panel-CF1hqe3K.js} +1 -1
- package/dist/client/assets/usage-panel-CF1hqe3K.js.br +0 -0
- package/dist/client/assets/{your-day-tip-OnTpkxEq.js → your-day-tip-CvlElQ_J.js} +1 -1
- package/dist/client/assets/your-day-tip-CvlElQ_J.js.br +0 -0
- package/dist/client/index.html +4 -4
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/canonical-paths-tdQPG3Kv.js +0 -45
- package/dist/chunks/config-store-Dxdi1z2O.js +0 -1
- package/dist/chunks/kimi-ZOtYN-uj.js +0 -1
- package/dist/chunks/paths-C2u2R_6l.js +0 -26
- package/dist/chunks/runtime-paths-DQdrF6Gy.js +0 -1
- package/dist/chunks/settings-cli-Cujdk9R0.js +0 -1
- package/dist/client/assets/agent-core-IagWp_5L.js.br +0 -0
- package/dist/client/assets/agent-mark-CeFX5v8y.js.br +0 -0
- package/dist/client/assets/arena-panel-02vUx_Xa.js.br +0 -0
- package/dist/client/assets/benchmark-panel-DB8npUQm.js.br +0 -0
- package/dist/client/assets/boards-view-nGEjfH9Y.js.br +0 -0
- package/dist/client/assets/community-panel-C7YhQN3n.js.br +0 -0
- package/dist/client/assets/dialogs-BEOxFgZe.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-DpPr188Q.js.br +0 -0
- package/dist/client/assets/feature-hint-LdOcWtrA.js.br +0 -0
- package/dist/client/assets/first-run-checklist-1SKaO6nW.js.br +0 -0
- package/dist/client/assets/hooks-panel-CcghhBlR.js.br +0 -0
- package/dist/client/assets/index-DgDI3kFD.js.br +0 -0
- package/dist/client/assets/issues-panel-BWs3OZHS.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-CcMjrQyI.js.br +0 -0
- package/dist/client/assets/my-prs-panel-DaOSi7iI.js.br +0 -0
- package/dist/client/assets/nyan-cat-CORWckfk.js.br +0 -0
- package/dist/client/assets/phone-shell-_G_ciX1y.js.br +0 -0
- package/dist/client/assets/plan-face-DWR41G_w.js.br +0 -0
- package/dist/client/assets/plan-render-rjePieU4.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BCoHYTzP.js.br +0 -0
- package/dist/client/assets/radar-panel-DqyUGhea.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-BcX3tvRJ.js.br +0 -0
- package/dist/client/assets/resume-dialog-D2Sm4oFH.js.br +0 -0
- package/dist/client/assets/review-queue-panel-K6SfWZlj.js.br +0 -0
- package/dist/client/assets/session-row-L4apwv1I.js.br +0 -0
- package/dist/client/assets/settings-panel-DXCr544Y.js.br +0 -0
- package/dist/client/assets/trace-panel-DBAiG71Z.js.br +0 -0
- package/dist/client/assets/usage-panel-ByBHUjIy.js.br +0 -0
- package/dist/client/assets/your-day-tip-OnTpkxEq.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -7,7 +7,7 @@ import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config
|
|
|
7
7
|
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-BE08x5OZ.js";
|
|
8
8
|
import { r as firstLine, s as nodePtyRebuildHint, t as probeNodePty } from "../chunks/node-pty-preflight-B6wME-M3.js";
|
|
9
9
|
import { i as errorText } from "../chunks/text-BDF4aFhQ.js";
|
|
10
|
-
import { o as packageRoot } from "../chunks/runtime-paths-
|
|
10
|
+
import { o as packageRoot } from "../chunks/runtime-paths-Bg4cKFoq.js";
|
|
11
11
|
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-CHyvHUpg.js";
|
|
12
12
|
import fs from "node:fs";
|
|
13
13
|
import path from "node:path";
|
|
@@ -66,7 +66,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
66
66
|
return await runDoctor() ? 0 : 1;
|
|
67
67
|
},
|
|
68
68
|
pair: async ({ values }) => {
|
|
69
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
69
|
+
const { runPairCli } = await import("../chunks/pair-cli-BfToAEYw.js");
|
|
70
70
|
return runPairCli({
|
|
71
71
|
isListing: values.list === true,
|
|
72
72
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -74,15 +74,15 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
76
|
agent: async () => {
|
|
77
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
77
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-Dl02S8kv.js");
|
|
78
78
|
return runAgentSetupCli();
|
|
79
79
|
},
|
|
80
80
|
settings: async (parsed) => {
|
|
81
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
81
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-DoWp6qzv.js");
|
|
82
82
|
return runParsedSettingsCli(parsed);
|
|
83
83
|
},
|
|
84
84
|
host: async (parsed) => {
|
|
85
|
-
const { runHostCli } = await import("../chunks/host-cli-
|
|
85
|
+
const { runHostCli } = await import("../chunks/host-cli-Cmh7CJZN.js");
|
|
86
86
|
return runHostCli(parsed);
|
|
87
87
|
},
|
|
88
88
|
"pr-flows": async (parsed) => {
|
|
@@ -90,7 +90,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
90
90
|
return runPrFlowsCheckCli(parsed);
|
|
91
91
|
},
|
|
92
92
|
packs: async (parsed) => {
|
|
93
|
-
const { runPacksCli } = await import("../chunks/packs-cli-
|
|
93
|
+
const { runPacksCli } = await import("../chunks/packs-cli-B35qdjPU.js");
|
|
94
94
|
return runPacksCli(parsed);
|
|
95
95
|
},
|
|
96
96
|
"pr-action": async (parsed) => {
|
|
@@ -98,7 +98,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
98
98
|
return runPrActionReportCli(parsed);
|
|
99
99
|
},
|
|
100
100
|
watch: async ({ values }) => {
|
|
101
|
-
const { runWatchCli } = await import("../chunks/watch-cli-
|
|
101
|
+
const { runWatchCli } = await import("../chunks/watch-cli-0XmC36if.js");
|
|
102
102
|
return runWatchCli({
|
|
103
103
|
inboxUrl: typeof values.inbox === "string" ? values.inbox : null,
|
|
104
104
|
isPingOnly: values.ping === true
|
|
@@ -198,7 +198,7 @@ async function readDeclaredCustomAgents() {
|
|
|
198
198
|
declared: [],
|
|
199
199
|
error: null
|
|
200
200
|
};
|
|
201
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
201
|
+
const { loadConfigFile } = await import("../chunks/config-store-BsOT3TkF.js");
|
|
202
202
|
try {
|
|
203
203
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
204
204
|
if (!loaded.config) return {
|
|
@@ -274,7 +274,7 @@ async function runDoctor() {
|
|
|
274
274
|
}
|
|
275
275
|
switchSection("Agents");
|
|
276
276
|
try {
|
|
277
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
277
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-DqH6rr17.js");
|
|
278
278
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
279
279
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
280
280
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -282,10 +282,10 @@ async function runDoctor() {
|
|
|
282
282
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
283
283
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
284
284
|
}
|
|
285
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
285
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-Dl02S8kv.js");
|
|
286
286
|
const grokSetup = inspectGrokAgentSetup();
|
|
287
287
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
288
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
288
|
+
const { default: kimi } = await import("../chunks/kimi-D6H6co0c.js");
|
|
289
289
|
const { describeAgentHome } = await import("../chunks/agent-home-nX9NZK2_.js");
|
|
290
290
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-B3IRzwkX.js");
|
|
291
291
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -294,9 +294,9 @@ async function runDoctor() {
|
|
|
294
294
|
}
|
|
295
295
|
switchSection("Sane YOLO");
|
|
296
296
|
try {
|
|
297
|
-
const { resolvePackageBin } = await import("../chunks/runtime-paths-
|
|
297
|
+
const { resolvePackageBin } = await import("../chunks/runtime-paths-BDgOIpU-.js");
|
|
298
298
|
const { execFileSync } = await import("../chunks/child-process-safe-BrQd4i6y.js");
|
|
299
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
299
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-Dl02S8kv.js");
|
|
300
300
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
301
301
|
line("Sane YOLO", binPath || "not installed");
|
|
302
302
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-
|
|
2
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-
|
|
1
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-DoJtxbMK.js";
|
|
2
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-z0gCHJuh.js";
|
|
3
3
|
import { n as buildAgentEnv } from "./spawn-env-DugQ_EeZ.js";
|
|
4
4
|
import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-pP6Vf2i9.js";
|
|
5
5
|
import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
|
|
6
6
|
import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-B4WAD15T.js";
|
|
7
|
-
import { b as compareReleaseVersions, o as glimmervoidHomeDir, x as isExperimentalBuild } from "./config-store-
|
|
7
|
+
import { b as compareReleaseVersions, o as glimmervoidHomeDir, x as isExperimentalBuild } from "./config-store-DRIDk1dj.js";
|
|
8
8
|
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, D as REQUEST_USER_INPUT_TOOL_NAME, S as CONVERSATION_PERMISSION_HOOK_EVENT, cr as shortSha$1, i as ASK_USER_QUESTION_TOOL_NAME, or as FULL_SHA_RE } from "./session-D_SsusV0.js";
|
|
9
9
|
import { a as rawTextOr, n as isRecord, o as textOr, r as numberOr } from "./coerce-D6vRlIGO.js";
|
|
10
|
-
import { s as relayPath } from "./runtime-paths-
|
|
10
|
+
import { f as isPathInside, p as safePathSegment, s as relayPath } from "./runtime-paths-Bg4cKFoq.js";
|
|
11
11
|
import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-Bu5xBKp3.js";
|
|
12
12
|
import { n as isHookToolId, r as mergeCodexPreToolUse, t as HOOK_TOOLS } from "./hook-tools-CytPV0RW.js";
|
|
13
13
|
import { Kt as HTTP_URL_RE, _n as PLAN_HOOK_EVENT, bn as PLAN_TOOL_NAME, mn as UpdateChannel, sn as InstallFlavor, yn as PLAN_RESULT_HOOK_EVENT } from "./control-messages-CUvmUx81.js";
|
|
14
14
|
import { o as QUESTION_TOOL_HOLD_HOOK_EVENT } from "./question-manager-C_RzS1Ot.js";
|
|
15
|
-
import { i as safePathSegment, r as isPathInside } from "./paths-C2u2R_6l.js";
|
|
16
15
|
import { n as parseJsonRecord } from "./json-core-B1ov-SNz.js";
|
|
17
16
|
import { S as cleanJsonc, _ as renderCodexHookTables, c as CODEX_HOME_PROFILE, f as QWEN_HOME_PROFILE, l as COPILOT_HOME_PROFILE, p as doesProjectConfigTurnHooksOff, t as AGENT_HOME_CONFIG_NAME, u as GEMINI_HOME_PROFILE, v as renderCodexHooksBlock, x as tomlBasicString } from "./agent-home-core-DmcBI03O.js";
|
|
18
17
|
import { a as QWEN_SANE_YOLO_FLAVOR, n as COPILOT_SANE_YOLO_FLAVOR, r as GEMINI_SANE_YOLO_FLAVOR, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-BJM6ju1w.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { o as describeAgentResolvability, f as listAgentIds, g as setCustomAgents } from "./adapters-
|
|
1
|
+
export { o as describeAgentResolvability, f as listAgentIds, g as setCustomAgents } from "./adapters-D2zr2Uop.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-
|
|
1
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-z0gCHJuh.js";
|
|
2
2
|
import { o as isMissingFileError, r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-B4WAD15T.js";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-DRIDk1dj.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as equalsIgnoringCaseOnWindows, r as isPathInside } from "./paths-C2u2R_6l.js";
|
|
1
|
+
import { d as equalsIgnoringCaseOnWindows, f as isPathInside, o as packageRoot } from "./runtime-paths-Bg4cKFoq.js";
|
|
3
2
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
4
3
|
import { d as BranchGcFileSettings, f as USAGE_COST_MODES, i as Config, m as normalizeLegacyConfigNumbers, n as BUILTIN_AGENT_IDS, s as RUNTIME_CONFIG_SCALAR_KEYS, t as AGENT_ID_SHAPE_MESSAGE, u as configIssueMessage } from "./config-r6W-aA3l.js";
|
|
5
4
|
import { At as USAGE_BUDGET_RANGE, Dt as REPLAY_BUFFER_KB_RANGE, Ft as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, Mt as USAGE_RETAIN_DAYS_RANGE, Nt as USAGE_SCAN_INTERVAL_RANGE, Ot as REVIEWS_TURN_LIMIT_RANGE, Pt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, S as DEFAULT_MODELS, St as POSTHOG_TRAFFIC_BASELINE_RANGE, Tt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, an as DASHBOARD_VIEWS, at as FLYING_ANIMALS_DEFAULTS, bt as POSTHOG_PROJECT_ID_RANGE, cn as ONBOARDING_STEPS, ct as FLYING_ANIMALS_SCALE_RANGE, dn as OPERATOR_SURFACES, dt as NON_NEGATIVE_NUMBER_RANGE, ft as PORT_RANGE, ht as POSTHOG_FIX_TIMEOUT_RANGE, it as FIXED_PORT_RANGE, jt as USAGE_INTEGER_RANGES, kt as TASK_TITLE_TIMEOUT_RANGE, ln as ONBOARDING_STEP_STATES, lt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as FLYING_ANIMALS_DURATION_RANGE, pn as UPDATE_CHANNELS, pt as POSITIVE_NUMBER_RANGE, rt as COMMUNITY_INTERVAL_MINUTES_RANGE, st as FLYING_ANIMALS_GAP_RANGE, u as HintFeature, un as OPERATOR_ACTIONS_BY_SURFACE, ut as MEMORY_RESERVE_MB_RANGE, wt as POSTHOG_TRAFFIC_MIN_USERS_RANGE } from "./control-messages-CUvmUx81.js";
|
|
@@ -7,13 +6,41 @@ import { Gn as PrFlowPrAction, Jn as PrFlowSourceCommand, Kn as PrFlowRule, Rn a
|
|
|
7
6
|
import { l as QuestionRule } from "./question-manager-C_RzS1Ot.js";
|
|
8
7
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-B4WAD15T.js";
|
|
9
8
|
import { n as errorLabel, r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
10
|
-
import {
|
|
9
|
+
import { t as DEFAULT_TIMER_FNS } from "./timer-deps-yeY8p-gc.js";
|
|
11
10
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-qUZH9-0F.js";
|
|
12
11
|
import fs from "node:fs";
|
|
13
12
|
import path from "node:path";
|
|
14
13
|
import os from "node:os";
|
|
15
14
|
import { z } from "zod";
|
|
15
|
+
import { promisify } from "node:util";
|
|
16
16
|
import crypto, { createHash } from "node:crypto";
|
|
17
|
+
// shared/canonical-paths.ts
|
|
18
|
+
var realpathNative = promisify(fs.realpath.native);
|
|
19
|
+
function canonicalizePath(p) {
|
|
20
|
+
try {
|
|
21
|
+
return fs.realpathSync.native(p);
|
|
22
|
+
} catch {
|
|
23
|
+
return p;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function isSameDirectoryPath(a, b) {
|
|
27
|
+
const resolvedA = path.resolve(String(a || ""));
|
|
28
|
+
const resolvedB = path.resolve(String(b || ""));
|
|
29
|
+
if (equalsIgnoringCaseOnWindows(resolvedA, resolvedB)) return true;
|
|
30
|
+
if (process.platform !== "win32" && process.platform !== "darwin") return false;
|
|
31
|
+
return equalsIgnoringCaseOnWindows(canonicalizePath(resolvedA), canonicalizePath(resolvedB));
|
|
32
|
+
}
|
|
33
|
+
async function comparableDirectoryPath(candidatePath) {
|
|
34
|
+
const resolvedPath = path.resolve(String(candidatePath || ""));
|
|
35
|
+
let canonicalPath;
|
|
36
|
+
try {
|
|
37
|
+
canonicalPath = await realpathNative(resolvedPath);
|
|
38
|
+
} catch {
|
|
39
|
+
canonicalPath = resolvedPath;
|
|
40
|
+
}
|
|
41
|
+
if (process.platform !== "win32") return canonicalPath;
|
|
42
|
+
return canonicalPath.toLowerCase();
|
|
43
|
+
}
|
|
17
44
|
// server/core/config-secrets-core.ts
|
|
18
45
|
var ENV_SECRET_BINDINGS = Object.freeze([
|
|
19
46
|
{
|
|
@@ -4700,4 +4727,4 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
4700
4727
|
DEFAULT_CONFIG
|
|
4701
4728
|
};
|
|
4702
4729
|
}
|
|
4703
|
-
export { buildExceptionProperties as $, displayText as A, isExperimentalSetting as B, SECRET_PRESENCE_SUFFIX as C, SETTINGS_INDEX as D, validateSettingsBlock as E, settingsGroupOf as F, parseDataAttach as G, FAST_TERMINAL_CLOSE_MS as H, settingsOf as I, TELEMETRY_BATCH_URL as J, parseDataClientMessage as K, valueAtPath as L, parsePosthogProjectSelection as M, scoreSettingsSearch as N, cloneValue as O, setValueAtPath as P, buildBrowserExceptionProperties as Q, FILE_ONLY_GROUPS as R, isSettingAvailable as S, settingsBlockSpecFor as T, LOGGED_FAST_CLOSE_COUNTS as U, DEEP_HISTORY_SCROLLBACK_LINES as V, describeDataAttach as W, adapterBucket as X, TELEMETRY_FLAGS_URL as Y, buildAiGenerationEvents as Z, sessionIdFromBranch as _, stableConfigKey as _t, generateProjectId as a, decideRemoteTelemetryState as at, compareReleaseVersions as b, resolveConfigPath as c, nodeMajorVersion as ct, DEFAULT_CONFIG as d, DashboardTelemetryReport as dt, buildPersonProperties as et, DEFAULT_BRANCH_GC_PREFIXES as f, PendingCrashReport as ft, planWorktreeGc as g, readEnvSecrets as gt, planBranchGc as h, ENV_SECRET_BINDINGS as ht, ensureProjectIds as i, decideIsDevInstall as it, hasScaledUnit as j, deleteValueAtPath as k, saveConfigFileOnce as l, parsePosthogReleaseId as lt, matchedPrefix as m, TelemetryState as mt, createConfigStore as n, claudeAccountUuidOf as nt, glimmervoidHomeDir as o, decideTelemetryConsent as ot, isGcCandidateWorktree as p, TELEMETRY_EVENT_SCHEMAS as pt, FIRST_RUN_NOTICE as q, ABORT_CONFIG_SAVE as r, codexUserIdOf as rt, loadConfigFile as s, exceptionFingerprint as st, IS_EXPERIMENTAL_BUILD as t, classifySessionExit as tt, validateConfig as u, resolveProjectToken as ut, usablePrefixes as v, withEnvSecrets as vt, mergeSettingsBlock as w, isExperimentalBuild as x, worktreeIntegrationTips as y, SETTINGS_REGISTRY as z };
|
|
4730
|
+
export { buildExceptionProperties as $, displayText as A, isExperimentalSetting as B, SECRET_PRESENCE_SUFFIX as C, SETTINGS_INDEX as D, validateSettingsBlock as E, settingsGroupOf as F, parseDataAttach as G, FAST_TERMINAL_CLOSE_MS as H, settingsOf as I, TELEMETRY_BATCH_URL as J, parseDataClientMessage as K, valueAtPath as L, parsePosthogProjectSelection as M, scoreSettingsSearch as N, cloneValue as O, setValueAtPath as P, buildBrowserExceptionProperties as Q, FILE_ONLY_GROUPS as R, isSettingAvailable as S, settingsBlockSpecFor as T, LOGGED_FAST_CLOSE_COUNTS as U, DEEP_HISTORY_SCROLLBACK_LINES as V, describeDataAttach as W, adapterBucket as X, TELEMETRY_FLAGS_URL as Y, buildAiGenerationEvents as Z, sessionIdFromBranch as _, stableConfigKey as _t, generateProjectId as a, decideRemoteTelemetryState as at, compareReleaseVersions as b, comparableDirectoryPath as bt, resolveConfigPath as c, nodeMajorVersion as ct, DEFAULT_CONFIG as d, DashboardTelemetryReport as dt, buildPersonProperties as et, DEFAULT_BRANCH_GC_PREFIXES as f, PendingCrashReport as ft, planWorktreeGc as g, readEnvSecrets as gt, planBranchGc as h, ENV_SECRET_BINDINGS as ht, ensureProjectIds as i, decideIsDevInstall as it, hasScaledUnit as j, deleteValueAtPath as k, saveConfigFileOnce as l, parsePosthogReleaseId as lt, matchedPrefix as m, TelemetryState as mt, createConfigStore as n, claudeAccountUuidOf as nt, glimmervoidHomeDir as o, decideTelemetryConsent as ot, isGcCandidateWorktree as p, TELEMETRY_EVENT_SCHEMAS as pt, FIRST_RUN_NOTICE as q, ABORT_CONFIG_SAVE as r, codexUserIdOf as rt, loadConfigFile as s, exceptionFingerprint as st, IS_EXPERIMENTAL_BUILD as t, classifySessionExit as tt, validateConfig as u, resolveProjectToken as ut, usablePrefixes as v, withEnvSecrets as vt, mergeSettingsBlock as w, isExperimentalBuild as x, isSameDirectoryPath as xt, worktreeIntegrationTips as y, canonicalizePath as yt, SETTINGS_REGISTRY as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
2
2
|
import { r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
3
|
-
import { s as relayPath } from "./runtime-paths-
|
|
3
|
+
import { s as relayPath } from "./runtime-paths-Bg4cKFoq.js";
|
|
4
4
|
import { n as buildAgentEnv } from "./spawn-env-DugQ_EeZ.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-Bu5xBKp3.js";
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -2,7 +2,7 @@ import { i as HostEntries } from "./control-messages-CUvmUx81.js";
|
|
|
2
2
|
import { r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
3
3
|
import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
|
|
4
4
|
import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-Cfgb5WnY.js";
|
|
5
|
-
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-
|
|
5
|
+
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-Br1U03X4.js";
|
|
6
6
|
// server/hosts/host-cli.ts
|
|
7
7
|
var DEFAULT_DASHBOARD_PORT = 3e3;
|
|
8
8
|
function registeredHosts() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-DoJtxbMK.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as execFileSync } from "./child-process-safe-pP6Vf2i9.js";
|
|
2
|
-
import { s as relayPath } from "./runtime-paths-
|
|
2
|
+
import { s as relayPath } from "./runtime-paths-Bg4cKFoq.js";
|
|
3
3
|
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-D_SsusV0.js";
|
|
4
4
|
import { i as kimiMcpFiles, n as KIMI_MCP_CONFIG_NAME, t as KIMI_MCP_BASE_NAME } from "./agent-config-BJVJpVzX.js";
|
|
5
5
|
import { d as KIMI_HOME_PROFILE, y as renderKimiHooksBlock } from "./agent-home-core-DmcBI03O.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as codexSessionIdFromPath, $t as removalsJournalPath, A as pickNewestPublished, At as vendorUsageEntry, B as planUploadRetention, Bt as agentHookGroupOf, C as decideUpdateStatus, Ct as identityFromRelPath, D as parseRegistryDeprecation, Dt as parseUsageLine, E as normalizeUpdateChannel, Et as parseJsonLine, F as decideUploadType, Ft as generateToken, G as containmentRefusalReason, Gt as readStoredHooks, H as TRACE_TAIL_SCAN_BYTES, Ht as hooksForProject, I as exceedsUploadCap, It as sweepOrphans, J as resumeOffsetFrom, Jt as makeHostScratchDirectory, K as isOversizedPartialLine, Kt as removeHook, L as framePathPaste, Lt as writeSessionSettings, M as openContainedFile, Mt as HOOK_EVENTS, N as MAX_UPLOAD_BYTES, Nt as PLAN_HOLD_RELEASE_MS, O as parseRegistryLatest, Ot as shouldReplace, P as buildUploadFilename, Pt as buildHookSettings, Q as codexRootCandidates, Qt as recordSweptPath, R as imageMimeForUploadFilename, Rt as HOOK_EVENT_CATALOG, S as decideInstallFlavor, St as foldReplacementIntoGenerationRollup, T as normalizeSha, Tt as mergeGenerationRollups, U as committedOffsetFromTraceTailOrNull, Ut as normalizeHook, V as MAX_TRANSCRIPT_READ_BYTES, Vt as appendUserHooks, W as completeLineBytes, Wt as rawStoredHooks, X as codexFallbackRoots, Xt as appendRemovalRecord, Y as withCommittedOffset, Yt as sweepOrphanedHostScratch, Z as codexHomes, Zt as appendRemovalRecordSync, _ as folderTrustRoot, _t as addEntryToTotals, a as customAgentFingerprint, at as isUsageFile, b as requestCodexAppServer, bt as expandAdvisorIterations, c as hookProfileOf, ct as projectDirCandidates, d as isKnownAgentId, dt as sessionsRootCandidates, en as listClaudeGlobalConfigPathCandidates, et as continuationDelayMs, f as listAgentIds, ft as shouldEvaluateDespiteIoFailures, g as setCustomAgents, gt as parseKimiUsageLine, h as resolveAdapter, ht as kimiDedupIdentity, i as commandFor, it as grokHomes, j as shortSha, jt as claudeCode, k as parseResolvedSha, kt as totalTokensOf$1, l as isBuiltInAgentId, lt as resolveProjectsDirs, m as resetCommandCache, mt as splitLines, n as DEFAULT_AGENT_ID$1, nt as dedupeCodexFiles, o as describeAgentResolvability, ot as kimiHomes, p as projectHookConfigRelPaths, pt as shouldPersistWarehouse, q as planContiguousRead, qt as upsertHook, r as cachedAgentResolvability, rt as expandTilde, s as getAdapter, st as passOutcome, tt as decideFileRead, u as isFirstClassAgent, ut as scopedClaudeRoots, v as codex, vt as dedupKeys, w as isCheckFresh, wt as isWithinGenerationRecencyWindow, x as NODE_PTY_INSTALL_SCRIPT_FLAG, xt as foldEntryIntoGenerationRollup, y as readHostCodexVersion, yt as emptyTotals, z as isSafePathSegment, zt as ID_RE } from "./adapters-
|
|
2
|
-
import { $ as buildExceptionProperties, B as isExperimentalSetting, D as SETTINGS_INDEX, E as validateSettingsBlock, G as parseDataAttach, J as TELEMETRY_BATCH_URL, K as parseDataClientMessage, L as valueAtPath, Q as buildBrowserExceptionProperties, T as settingsBlockSpecFor, U as LOGGED_FAST_CLOSE_COUNTS, V as DEEP_HISTORY_SCROLLBACK_LINES, W as describeDataAttach, X as adapterBucket, Y as TELEMETRY_FLAGS_URL, Z as buildAiGenerationEvents, _ as sessionIdFromBranch, _t as stableConfigKey, a as generateProjectId, at as decideRemoteTelemetryState, ct as nodeMajorVersion, d as DEFAULT_CONFIG, dt as DashboardTelemetryReport, et as buildPersonProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as PendingCrashReport, g as planWorktreeGc, h as planBranchGc, i as ensureProjectIds, it as decideIsDevInstall, lt as parsePosthogReleaseId, m as matchedPrefix, mt as TelemetryState, n as createConfigStore, nt as claudeAccountUuidOf, o as glimmervoidHomeDir, ot as decideTelemetryConsent, p as isGcCandidateWorktree, pt as TELEMETRY_EVENT_SCHEMAS, q as FIRST_RUN_NOTICE, r as ABORT_CONFIG_SAVE, rt as codexUserIdOf, st as exceptionFingerprint, tt as classifySessionExit, ut as resolveProjectToken, v as usablePrefixes, w as mergeSettingsBlock, y as worktreeIntegrationTips } from "./config-store-
|
|
1
|
+
import { $ as codexSessionIdFromPath, $t as removalsJournalPath, A as pickNewestPublished, At as vendorUsageEntry, B as planUploadRetention, Bt as agentHookGroupOf, C as decideUpdateStatus, Ct as identityFromRelPath, D as parseRegistryDeprecation, Dt as parseUsageLine, E as normalizeUpdateChannel, Et as parseJsonLine, F as decideUploadType, Ft as generateToken, G as containmentRefusalReason, Gt as readStoredHooks, H as TRACE_TAIL_SCAN_BYTES, Ht as hooksForProject, I as exceedsUploadCap, It as sweepOrphans, J as resumeOffsetFrom, Jt as makeHostScratchDirectory, K as isOversizedPartialLine, Kt as removeHook, L as framePathPaste, Lt as writeSessionSettings, M as openContainedFile, Mt as HOOK_EVENTS, N as MAX_UPLOAD_BYTES, Nt as PLAN_HOLD_RELEASE_MS, O as parseRegistryLatest, Ot as shouldReplace, P as buildUploadFilename, Pt as buildHookSettings, Q as codexRootCandidates, Qt as recordSweptPath, R as imageMimeForUploadFilename, Rt as HOOK_EVENT_CATALOG, S as decideInstallFlavor, St as foldReplacementIntoGenerationRollup, T as normalizeSha, Tt as mergeGenerationRollups, U as committedOffsetFromTraceTailOrNull, Ut as normalizeHook, V as MAX_TRANSCRIPT_READ_BYTES, Vt as appendUserHooks, W as completeLineBytes, Wt as rawStoredHooks, X as codexFallbackRoots, Xt as appendRemovalRecord, Y as withCommittedOffset, Yt as sweepOrphanedHostScratch, Z as codexHomes, Zt as appendRemovalRecordSync, _ as folderTrustRoot, _t as addEntryToTotals, a as customAgentFingerprint, at as isUsageFile, b as requestCodexAppServer, bt as expandAdvisorIterations, c as hookProfileOf, ct as projectDirCandidates, d as isKnownAgentId, dt as sessionsRootCandidates, en as listClaudeGlobalConfigPathCandidates, et as continuationDelayMs, f as listAgentIds, ft as shouldEvaluateDespiteIoFailures, g as setCustomAgents, gt as parseKimiUsageLine, h as resolveAdapter, ht as kimiDedupIdentity, i as commandFor, it as grokHomes, j as shortSha, jt as claudeCode, k as parseResolvedSha, kt as totalTokensOf$1, l as isBuiltInAgentId, lt as resolveProjectsDirs, m as resetCommandCache, mt as splitLines, n as DEFAULT_AGENT_ID$1, nt as dedupeCodexFiles, o as describeAgentResolvability, ot as kimiHomes, p as projectHookConfigRelPaths, pt as shouldPersistWarehouse, q as planContiguousRead, qt as upsertHook, r as cachedAgentResolvability, rt as expandTilde, s as getAdapter, st as passOutcome, tt as decideFileRead, u as isFirstClassAgent, ut as scopedClaudeRoots, v as codex, vt as dedupKeys, w as isCheckFresh, wt as isWithinGenerationRecencyWindow, x as NODE_PTY_INSTALL_SCRIPT_FLAG, xt as foldEntryIntoGenerationRollup, y as readHostCodexVersion, yt as emptyTotals, z as isSafePathSegment, zt as ID_RE } from "./adapters-D2zr2Uop.js";
|
|
2
|
+
import { $ as buildExceptionProperties, B as isExperimentalSetting, D as SETTINGS_INDEX, E as validateSettingsBlock, G as parseDataAttach, J as TELEMETRY_BATCH_URL, K as parseDataClientMessage, L as valueAtPath, Q as buildBrowserExceptionProperties, T as settingsBlockSpecFor, U as LOGGED_FAST_CLOSE_COUNTS, V as DEEP_HISTORY_SCROLLBACK_LINES, W as describeDataAttach, X as adapterBucket, Y as TELEMETRY_FLAGS_URL, Z as buildAiGenerationEvents, _ as sessionIdFromBranch, _t as stableConfigKey, a as generateProjectId, at as decideRemoteTelemetryState, bt as comparableDirectoryPath, ct as nodeMajorVersion, d as DEFAULT_CONFIG, dt as DashboardTelemetryReport, et as buildPersonProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as PendingCrashReport, g as planWorktreeGc, h as planBranchGc, i as ensureProjectIds, it as decideIsDevInstall, lt as parsePosthogReleaseId, m as matchedPrefix, mt as TelemetryState, n as createConfigStore, nt as claudeAccountUuidOf, o as glimmervoidHomeDir, ot as decideTelemetryConsent, p as isGcCandidateWorktree, pt as TELEMETRY_EVENT_SCHEMAS, q as FIRST_RUN_NOTICE, r as ABORT_CONFIG_SAVE, rt as codexUserIdOf, st as exceptionFingerprint, tt as classifySessionExit, ut as resolveProjectToken, v as usablePrefixes, w as mergeSettingsBlock, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath } from "./config-store-DRIDk1dj.js";
|
|
3
3
|
import { C as parseCgroupBytes, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, 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-B4WAD15T.js";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as examplePacksDir, c as resolveFfmpegPath, d as equalsIgnoringCaseOnWindows, f as isPathInside, i as clientDir, l as resolvePackageBin, m as sanitizeWorktreeName, n as bundled, o as packageRoot, p as safePathSegment, r as cliPath, s as relayPath, t as assetRoot, u as caseFoldedPathKey } from "./runtime-paths-Bg4cKFoq.js";
|
|
5
5
|
import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
|
|
6
|
-
import {
|
|
7
|
-
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-
|
|
6
|
+
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-yeY8p-gc.js";
|
|
7
|
+
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-DoJtxbMK.js";
|
|
8
8
|
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-pP6Vf2i9.js";
|
|
9
9
|
import { $t as ChangeMap, A as BenchmarkSuite, Cn as parseExitPlanModeHookPayload, D as BenchmarkJudgement, E as BenchmarkId, F as CommunityActionRequest, Ht as IssuesState, J as comparablePrKey, Jt as SessionSetup, O as BenchmarkRun, P as PrCheckoutCaseInput, Qt as CoherenceJournalOutput, Rt as IssueKey, S as DEFAULT_MODELS, Sn as PlanRevision, T as BenchmarkCase, Xt as TraceCheckpoint, Yt as MAX_RAW_LINE_CHARS, Zt as TraceRecord, _ as RaceSpec, _n as PLAN_HOOK_EVENT, b as CATALOG_AGENT_IDS, bn as PLAN_TOOL_NAME, c as HINT_FEATURES, d as ContestantMetrics, en as changeMapFactId, et as WorkflowsState, fn as pullRequestKeyFromReference, g as RaceRecord, gn as PLAN_BODY_CAP_BYTES, h as RaceJudgeAgent, hn as UpdateJournal, in as CONTROL_FRAME_MAX_BYTES, jt as USAGE_INTEGER_RANGES, k as BenchmarkStatus, l as HINT_VIEW_BY_FEATURE, n as PackApproveRequest, o as HubPhoneAlertFrame, p as RACE_CRITERIA, q as GithubPrsFrame, qt as HookEnvelope, r as HUB_PHONE_ALERT_TEXT_MAX, rn as CLIENT_LOG_TEXT_MAX_CHARS, s as FeatureHintState, t as ClientMessage, tn as CHANGES_POLL_INTERVAL_MS, vn as PLAN_HOOK_OUTPUT_MAX_CHARS, w as BenchmarkActionRequest, wn as planTitle, x as CatalogAgentId, xn as PlanDecision, yn as PLAN_RESULT_HOOK_EVENT, z as CommunityState } from "./control-messages-CUvmUx81.js";
|
|
10
10
|
import { A as SESSION_DOC_BODY_CAP_BYTES, An as PR_ACTION_REPORT_ROUTE, Bt as MyPrMergeWhenReadyRequest, C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, D as REQUEST_USER_INPUT_TOOL_NAME, Et as DEVICE_NAMES, F as SIGN_URL_ENV, Fn as PrActionReportBody, G as BOARD_DOC_CAP_BYTES, Hn as PrFlowItemRequest, I as SSH_SIGN_BODY_CAP_BYTES, In as PrActionRunRequest, K as BOARD_MEDIA_MAX_EDGE_PX, Kn as PrFlowRule, Kt as MyPrsSnapshot, Ln as PrFlowApproveRequest, Lt as MyPrMergeRequest, M as SESSION_NAME_PATTERN, Mn as PR_ACTION_TOKEN_ENV, N as SESSION_NAME_RULE_TEXT, Nt as MyPrKeepMergeableRequest, On as hasStandingViewerApproval, Ot as LinkedPr, P as SHOWN_FILE_CAP_BYTES, Q as BoardRecord, Qt as CommitSha$1, S as CONVERSATION_PERMISSION_HOOK_EVENT, St as ICON_NAMES, T as ConversationQuestion, U as TaskTitle, V as SshSignRequest, X as BOX_SHAPES, Xn as PrFlowsSettings, Z as Board, Zn as PrFlowsState, _ as AgentSettingsRequest, _r as BADGE_LABELS, _t as linesOfBox, b as COHERENCE_HOOKS_INACTIVE, bn as TeamReviewStateEntry, br as RESTARTABLE_STATES, bt as sparseBoardReply, c as AgentCloseRequest, cr as shortSha$1, ct as Note, d as AgentPacksRequest, dn as ReviewDraft, dt as WHITEBOARD_ASSET_ROUTE, f as AgentPullRequestRequest, fr as repoParts, ft as WHITEBOARD_LIMITS, gn as TeamReviewActionRequest, gt as fieldNamesOfShape, ht as Wire, i as ASK_USER_QUESTION_TOOL_NAME, jn as PR_ACTION_REPORT_URL_ENV, kn as PR_ACTION_REPORT_BODY_CAP_BYTES, l as AgentEditRequest, lr as GH_SEGMENT, lt as Op, o as AgentAttentionRequest, ot as Frame, q as BOARD_PAGE_ESCAPE_MESSAGE, qn as PrFlowSaveRuleRequest, r as AGENT_URL_ENV, rr as prActionReportPath, sr as HEX_SHA_RE, tt as Box, v as AgentSpawnRequest, vr as KILLABLE_STATES, vt as mediaOfBox, x as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, xn as TeamReviewStatus, xr as STATES, y as AgentWhyRequest, yr as MERGEABLE_LIVE_STATES, yt as sparseBoardRecord, zn as PrFlowDisposeRequest } from "./session-D_SsusV0.js";
|
|
@@ -16,14 +16,13 @@ import { a as layoutBoardWithMemory, i as layoutBoard, l as planSteps$1, n as es
|
|
|
16
16
|
import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-r6W-aA3l.js";
|
|
17
17
|
import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody$1, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-CsleOFZ5.js";
|
|
18
18
|
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, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-C7Dohjcn.js";
|
|
19
|
-
import { a as createPairingsStore, c as defaultSeenPath, d as deviceNameFromUserAgent, f as hashSecret, i as configSiblingPath, l as DEFAULT_DEVICE_MAX_AGE_MS, n as normalizeRemoteConfig, o as createSeenStore, r as validateRemoteConfig, s as defaultPairingsPath, t as decideBindHost, u as decideDeviceAuth } from "./remote-config-
|
|
20
|
-
import { a as examplePacksDir, c as resolveFfmpegPath, i as clientDir, l as resolvePackageBin, n as bundled, o as packageRoot, r as cliPath, s as relayPath, t as assetRoot } from "./runtime-paths-YS6tWGDa.js";
|
|
19
|
+
import { a as createPairingsStore, c as defaultSeenPath, d as deviceNameFromUserAgent, f as hashSecret, i as configSiblingPath, l as DEFAULT_DEVICE_MAX_AGE_MS, n as normalizeRemoteConfig, o as createSeenStore, r as validateRemoteConfig, s as defaultPairingsPath, t as decideBindHost, u as decideDeviceAuth } from "./remote-config-MtTrtohP.js";
|
|
21
20
|
import { n as shellQuote } from "./hook-command-core-Bu5xBKp3.js";
|
|
22
21
|
import { c as realAgentHome, f as createHeldSessionTempFolder, h as trashSessionTempFolderOnceUnheld, m as sessionIdOfLockFile, p as releaseSessionLock, u as releaseEveryUnheldAgentHomeSecrets } from "./agent-home-CMO0JfeR.js";
|
|
23
|
-
import { $ as TRAFFIC_KEY, $a as withAllowRules, $i as projectParentDirs, $n as HUNK_HEADER, $r as resumeTimeoutMs, $t as runGit, A as discordItemsFromRows, Aa as parseThreadJudgeResult, Ai as claimExpiredPendingFixes, An as mergeAttemptKey, Ar as isSameGithubReviews, At as workflowSpawnQueueKey, B as pendingEntries, Ba as CLOSED_LANE_ACCESS_CONFIG, Bi as investigationTrigger, Bn as readMyPrsFeatureSettings, Br as prBaseRef, Bt as issuesListingErrors, C as admitPendingItems, Ca as THREAD_JUDGE_BACKOFF_MS, Ci as RADAR_UNTRUSTED_ITEM_MAX_CHARS, Cn as keepMergeableFixesToCancel, Cr as errorDraft, Ct as withOwnPostedComment, D as communityGate, Da as buildThreadJudgeRequest, Di as belowMinimumInvestigationChange, Dn as keepMergeablePushArgs, Dr as hasViewerReviewedAt, Dt as workflowSessionLimit, E as buildJudgeRequest, Ea as answeredViewerThreads, Ei as approvedFixSessionPrompt, En as keepMergeablePrompt, Er as githubReviewsFrom, F as forumItemsFromRows, Fa as UNTRUSTED_PAYLOAD_FILENAME, Fi as decideFixHandoff, Fn as myPrsStatus, Ft as ISSUES_STATE_FILENAME, G as requeueInterruptedRuns, Ga as findPosthogServer, Gi as nextState, Gn as toMyPrsWireStatus, Gr as priorReviewFor, Gt as mergeIssues, H as readCommunitySettings, Ha as buildLanePermissions, Hi as issueKey, Hn as shouldRebaseMyPr, Hr as prKey, Ht as issuesRepoPaths, Ia as UNTRUSTED_PREAMBLE, Ii as decideIssueAction, In as prunedFailedAutoRebaseAttempts, Ir as parseFindingLine, It as emptyIssuesState, J as shownEntries, Ja as laneAccessConfigOf, Ji as normalizePrTitle, Jn as withStageSince, Jr as readyDraft, Jt as withListedPullRequests, K as selectRuns, Ka as kimiLaneMcpPosture, Ki as normalizeJobMode, Kn as truncatedSearchNote, Kr as reReviewResult, Kt as pruneIssueSessionLinks, L as markRunning, La as UNTRUSTED_REF_MAX_CHARS, Li as decideJobMode, Ln as prunedKeepMergeableState, Lr as parsePostingPlan, Lt as issuesCachedSourcesGate, M as draftNotificationText, Ma as shouldJudgeThread, Mi as classifyIssueChange, Mn as mergeQueuePrsToMerge, Mr as markDraftStale, Mt as workflowsShouldStart, N as emptyCommunityState, Na as threadJudgePatch, Nr as nextDraftStatus, O as communitySessionPrompt, Oa as hasPresentableThreads, Oi as buildInvestigationRecord, On as keepMergeablePushTarget, Or as invalidComments, Ot as workflowSessionName, P as entryFromRun, Pa as viewerThreadTally, Pi as dailyVolumeSeries, Pn as myPrsShouldStart, Pr as notMineDraft, Pt as ISSUES_LANE_ID, Qa as readOnlyGitAllowRules, Qi as planInvestigations, Qn as DEFAULT_REVIEWER, Qr as resumeDecision, Qt as runGh, R as parseCommunityState, Ra as UntrustedPayload, Ri as decideVanishedEntry, Rn as prunedMergeQueueKeys, Rr as parseReviewReport, Rt as issuesLinkedPrKeys, S as RUN_TIMEOUT_SECONDS, Sa as selectionArgs, Si as RADAR_RESULT_FILENAME, Sn as keepMergeableClaudeArgs, Sr as earlierReviewToKeep, St as watchedWorkflowRepos, T as buildCommunityRequest, Ta as THREAD_PLACEHOLDER_ERROR, Ti as appendInvestigation, Tn as keepMergeablePermissions, Tr as githubRepoSlugFromRemote, U as readPosthogConnection, Ua as codexLaneMcpPosture, Ui as issueUrl, Un as sortedMyPrs, Ur as prSessionName, Ut as issuesSettingsGate, V as prunedState, Va as LANE_CONFIG_EDIT_DENY_RULES, Vi as isAbsolutePathish, Vn as shouldFixMergeability, Vr as prHeadRef, Vt as issuesListingSourceKey, W as readTelegramTarget, Wa as codexMcpServers, Wi as markInvestigationArchived, Wn as stampStageSince, Wr as prSessionPrompt, Wt as issuesStatus, X as POSTHOG_API_KEY_ENV, Xa as laneMcpConfig, Xi as pickDirectoryForProjectName, Xn as myPrMergeRefusal, Xr as remoteMatchesGithubRepo, Xt as gitCommandFailure, Y as withPendingItems, Ya as laneAccessEnvBlocker, Yi as pendingFixesDropped, Yn as myPrFromGithubPr, Yr as remergeGitEnvPrefix, Yt as createPrGh, Za as laneMcpPosture, Zi as pingFor, Zr as restoreDraftAtReviewedHead, Zt as runCommand, _ as JUDGE_RESULT_FILENAME$1, _a as cleanHomeArgs, _i as INVESTIGATIONS_KEY, _n as heldOrListedPr, _r as canPost, _t as hasFreeWorkflowSessionSlot,
|
|
22
|
+
import { $ as TRAFFIC_KEY, $a as withAllowRules, $i as projectParentDirs, $n as HUNK_HEADER, $r as resumeTimeoutMs, $t as runGit, A as discordItemsFromRows, Aa as parseThreadJudgeResult, Ai as claimExpiredPendingFixes, An as mergeAttemptKey, Ar as isSameGithubReviews, At as workflowSpawnQueueKey, B as pendingEntries, Ba as CLOSED_LANE_ACCESS_CONFIG, Bi as investigationTrigger, Bn as readMyPrsFeatureSettings, Br as prBaseRef, Bt as issuesListingErrors, C as admitPendingItems, Ca as THREAD_JUDGE_BACKOFF_MS, Ci as RADAR_UNTRUSTED_ITEM_MAX_CHARS, Cn as keepMergeableFixesToCancel, Co as isWatcherJobKind, Cr as errorDraft, Ct as withOwnPostedComment, D as communityGate, Da as buildThreadJudgeRequest, Di as belowMinimumInvestigationChange, Dn as keepMergeablePushArgs, Dr as hasViewerReviewedAt, Dt as workflowSessionLimit, E as buildJudgeRequest, Ea as answeredViewerThreads, Ei as approvedFixSessionPrompt, En as keepMergeablePrompt, Er as githubReviewsFrom, F as forumItemsFromRows, Fa as UNTRUSTED_PAYLOAD_FILENAME, Fi as decideFixHandoff, Fn as myPrsStatus, Ft as ISSUES_STATE_FILENAME, G as requeueInterruptedRuns, Ga as findPosthogServer, Gi as nextState, Gn as toMyPrsWireStatus, Gr as priorReviewFor, Gt as mergeIssues, H as readCommunitySettings, Ha as buildLanePermissions, Hi as issueKey, Hn as shouldRebaseMyPr, Hr as prKey, Ht as issuesRepoPaths, Ia as UNTRUSTED_PREAMBLE, Ii as decideIssueAction, In as prunedFailedAutoRebaseAttempts, Ir as parseFindingLine, It as emptyIssuesState, J as shownEntries, Ja as laneAccessConfigOf, Ji as normalizePrTitle, Jn as withStageSince, Jr as readyDraft, Jt as withListedPullRequests, K as selectRuns, Ka as kimiLaneMcpPosture, Ki as normalizeJobMode, Kn as truncatedSearchNote, Kr as reReviewResult, Kt as pruneIssueSessionLinks, L as markRunning, La as UNTRUSTED_REF_MAX_CHARS, Li as decideJobMode, Ln as prunedKeepMergeableState, Lr as parsePostingPlan, Lt as issuesCachedSourcesGate, M as draftNotificationText, Ma as shouldJudgeThread, Mi as classifyIssueChange, Mn as mergeQueuePrsToMerge, Mr as markDraftStale, Mt as workflowsShouldStart, N as emptyCommunityState, Na as threadJudgePatch, Nr as nextDraftStatus, O as communitySessionPrompt, Oa as hasPresentableThreads, Oi as buildInvestigationRecord, On as keepMergeablePushTarget, Or as invalidComments, Ot as workflowSessionName, P as entryFromRun, Pa as viewerThreadTally, Pi as dailyVolumeSeries, Pn as myPrsShouldStart, Pr as notMineDraft, Pt as ISSUES_LANE_ID, Qa as readOnlyGitAllowRules, Qi as planInvestigations, Qn as DEFAULT_REVIEWER, Qr as resumeDecision, Qt as runGh, R as parseCommunityState, Ra as UntrustedPayload, Ri as decideVanishedEntry, Rn as prunedMergeQueueKeys, Rr as parseReviewReport, Rt as issuesLinkedPrKeys, S as RUN_TIMEOUT_SECONDS, Sa as selectionArgs, Si as RADAR_RESULT_FILENAME, Sn as keepMergeableClaudeArgs, So as WatcherJobEnvelope, Sr as earlierReviewToKeep, St as watchedWorkflowRepos, T as buildCommunityRequest, Ta as THREAD_PLACEHOLDER_ERROR, Ti as appendInvestigation, Tn as keepMergeablePermissions, Tr as githubRepoSlugFromRemote, U as readPosthogConnection, Ua as codexLaneMcpPosture, Ui as issueUrl, Un as sortedMyPrs, Ur as prSessionName, Ut as issuesSettingsGate, V as prunedState, Va as LANE_CONFIG_EDIT_DENY_RULES, Vi as isAbsolutePathish, Vn as shouldFixMergeability, Vr as prHeadRef, Vt as issuesListingSourceKey, W as readTelegramTarget, Wa as codexMcpServers, Wi as markInvestigationArchived, Wn as stampStageSince, Wr as prSessionPrompt, Wt as issuesStatus, X as POSTHOG_API_KEY_ENV, Xa as laneMcpConfig, Xi as pickDirectoryForProjectName, Xn as myPrMergeRefusal, Xr as remoteMatchesGithubRepo, Xt as gitCommandFailure, Y as withPendingItems, Ya as laneAccessEnvBlocker, Yi as pendingFixesDropped, Yn as myPrFromGithubPr, Yr as remergeGitEnvPrefix, Yt as createPrGh, Za as laneMcpPosture, Zi as pingFor, Zr as restoreDraftAtReviewedHead, Zt as runCommand, _ as JUDGE_RESULT_FILENAME$1, _a as cleanHomeArgs, _i as INVESTIGATIONS_KEY, _n as heldOrListedPr, _r as canPost, _t as hasFreeWorkflowSessionSlot, aa as sanitizeSessionName, ai as sectionAfter, an as MY_PRS_FIX_CHECKOUT_DIRNAME, ar as REVIEW_PROMPT_FILENAME, at as extractRows, b as MAX_BODY_CHARS, ba as parseCodexModels, bi as RADAR_EXCEPTION_EVENTS_QUERY, bn as isMovedBranchPushRejection, bo as WATCHER_JOB_PAYLOADS, br as draftAfter, bt as nextListedRepos, c as COMMUNITY_POSTING_FILENAME, ca as summaryLineFromReportText, ci as shouldAutoReview, cn as MY_PRS_HELD_WATCH_OWNER, cr as REVIEW_TIMEOUT_SECONDS, ct as WORKFLOWS_LANE_ID, d as COMMUNITY_STATE_FILENAME, da as underlyingInvestigationChange, di as teamReviewStatus, dn as MyPrsLaneState, do as restartDelayMs, dr as TEAM_REVIEW_STATE_FILENAME, dt as WORKFLOW_NOTIFY_CATEGORY, ea as pruneInvestigations, ei as reviewAttemptsAfter, en as createGithubStorePoller, eo as withLaneAccessRules, er as PROGRESS_EMIT_INTERVAL_MS, et as computeBaseline, f as COMMUNITY_UNTRUSTED_SOURCE, fa as validateInvestigationId, fi as triagePr, fn as autoRebaseAttemptKey, fo as watcherChildInboxUrl, fr as absolutePathReadRule, ft as WORKFLOW_PROMPT_FILENAME, g as JUDGE_PROMPT_FILENAME, ga as choiceSelection, gi as FIX_VERDICTS, gn as emptyMyPrsLaneState, go as WATCHER_HOME_ENV, gr as buildReviewPrompt, gt as enabledWorkflowRules, h as JUDGE_MODEL, ha as readGithubTeams, hi as withoutControlCharacters, hn as currentKeepMergeableAttempt, hr as askedForRefusal, ht as emptyWorkflowsState, i as watcherHomeDir, ia as resolvePosthogHost, ii as reviewerFor, in as MY_PRS_FIX_BOOTSTRAP_PROMPT, io as secondaryRateLimitWaitMs, ir as REVIEW_POSTING_FILENAME, it as createPosthogApi, ja as shouldAutoResolveThread, ji as claimPendingFix, jn as mergeQueuePositions, jr as isUnreviewedDraft, jt as workflowTeamName, k as discordDropSummary, ka as isThreadPlaceholderDraft, ki as buildIssueSessionPrompt, kn as keepMergeableTimeoutSeconds, kr as isPostableStatus, kt as workflowSpawnPrompt, l as COMMUNITY_PROMPT_FILENAME, la as toCount, li as shouldPruneEntry, ln as MY_PRS_LANE_ID, lo as nextCrashCount, lr as REVIEW_UNTRUSTED_ITEM_MAX_CHARS, lt as WORKFLOWS_STATE_FILENAME, m as JUDGE_MESSAGE_CHARS, ma as nulSeparatedPaths, mi as fencedUntrusted, mn as consecutiveKeepMergeableAttempts, mo as WATCHEE_SETTINGS_CHANGED_MESSAGE, mr as applyReviewProgress, mt as diffPrEvents, na as radarUntrustedItems, ni as reviewUntrustedItems, nn as isBotAuthor, no as createLaneRunner, nr as REVIEW_AGENT_ADAPTER_ID, o as COMMUNITY_BOOTSTRAP_PROMPT, oa as scrubForPaste, oi as selectCandidates, on as MY_PRS_FIX_PROMPT_FILENAME, or as REVIEW_REPORT_FILENAME, ot as normalizeIssues, p as JUDGE_BOOTSTRAP_PROMPT, pa as validateIssueRef, pi as uiFilesOf, pn as autoRebaseRecord, pr as advanceAwakeElapsed, pt as areWorkflowActionsEnabled, q as shouldNotifyDraft, qa as laneAccess, qi as normalizePrBody, qn as withAutoRebase, qr as readTeamReviewSettings, qt as resolveIssuesProjects, ra as resolveIssueProject, ri as reviewerAgentArgs, rn as MY_PRS_FIX_BASE_BRANCH, ro as createTickLoop, rr as REVIEW_BOOTSTRAP_PROMPT, rt as spikeSummaryLine, s as COMMUNITY_LANE_ID, sa as slotDeferredInvestigationChange, si as sessionLinkedToPr, sn as MY_PRS_FIX_WORK_BRANCH, sr as REVIEW_RESUME_PROMPT, st as parseSpikeIssueIds, ta as radarShouldStart, ti as reviewSnapshotFromGithubPr, tn as githubStoreRateLimitedError, to as GITHUB_RATE_LIMIT_WINDOW_MS, tr as REMERGE_OBJECTS_DIRNAME, tt as decideTrafficSpike, u as COMMUNITY_REPORT_FILENAME, ua as unarchivedInvestigations, ui as startReviewProgress, un as MY_PRS_STATE_FILENAME, ur as TEAM_REVIEW_LANE_ID, v as JUDGE_TIMEOUT_MS$1, va as launchArgs, vi as JOB_MODES, vn as isFailedAttemptRetryDue, vr as commentableLines, vt as matchRules$1, w as applyCommunityAction, wa as THREAD_JUDGE_ITEM_MAX_CHARS, wi as RADAR_UNTRUSTED_SOURCE, wn as keepMergeableHandoff, wr as eventForAction, wt as workflowNotification, x as NOTIFICATION_CATEGORY, xa as parseKimiModels, xi as RADAR_REPORT_FILENAME, xn as keepMergeableAttemptKey, xr as draftsNewestFirst, xt as resolveWorkflowsSettings, y as JUDGE_UNTRUSTED_SOURCE, ya as parseClaudeInitialize, yi as PENDING_FIX_TTL_MS, yn as isHeadPushedByKeepMergeable, yr as diffHeaderPath, yt as mergeWorkflowsUpdateOverStored, z as parseJudgeResult, za as ACCEPT_EDITS_MODE, zi as fixDetailLine, zn as pushFailureReason, zr as postedReviewBody, zt as issuesListingBatches } from "./watchee-settings-Bu93osrP.js";
|
|
24
23
|
import { a as rawTextOr, i as positiveNumberOr$1, n as isRecord$1, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-D6vRlIGO.js";
|
|
25
24
|
import { C as createTsconfigPathsResolver, E as resolveExtendsPath, T as parseTsconfigJsonc, d as KIMI_HOME_PROFILE, w as matchPathPatterns } from "./agent-home-core-DmcBI03O.js";
|
|
26
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
25
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-BKUStfoo.js";
|
|
27
26
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-B1ov-SNz.js";
|
|
28
27
|
import { t as HOOK_TOOLS } from "./hook-tools-CytPV0RW.js";
|
|
29
28
|
import { a as showHomeAsTilde, i as sanitizeOneLine, n as requireExecutableSpawnHelper, r as firstLine$2 } from "./node-pty-preflight-B6wME-M3.js";
|
|
@@ -54876,6 +54875,12 @@ function createRecentJobIds(capacity) {
|
|
|
54876
54875
|
}
|
|
54877
54876
|
};
|
|
54878
54877
|
}
|
|
54878
|
+
function watcheeSettingsReply(settings) {
|
|
54879
|
+
return {
|
|
54880
|
+
revision: crypto.createHash("sha256").update(JSON.stringify(settings)).digest("hex"),
|
|
54881
|
+
settings
|
|
54882
|
+
};
|
|
54883
|
+
}
|
|
54879
54884
|
// cloud/inbox/job-inbox-listener.ts
|
|
54880
54885
|
var RECENT_JOB_ID_CAPACITY = 1e3;
|
|
54881
54886
|
var OVERSIZED_BODY_MESSAGE = "the job is over 1 MiB";
|
|
@@ -54915,11 +54920,34 @@ function runJob(handlers, job) {
|
|
|
54915
54920
|
const handler = handlers[job.kind];
|
|
54916
54921
|
return handler(job);
|
|
54917
54922
|
}
|
|
54918
|
-
function createJobInboxRequestHandler({ token, handlers, log = console }) {
|
|
54923
|
+
function createJobInboxRequestHandler({ token, handlers, watcheeSettings = () => null, log = console }) {
|
|
54919
54924
|
const recentJobIds = createRecentJobIds(RECENT_JOB_ID_CAPACITY);
|
|
54920
54925
|
const inFlightJobIds = /* @__PURE__ */ new Set();
|
|
54926
|
+
function ackFor(jobId, status) {
|
|
54927
|
+
const settingsRevision = watcheeSettings()?.revision;
|
|
54928
|
+
return settingsRevision === void 0 ? {
|
|
54929
|
+
jobId,
|
|
54930
|
+
status
|
|
54931
|
+
} : {
|
|
54932
|
+
jobId,
|
|
54933
|
+
status,
|
|
54934
|
+
settingsRevision
|
|
54935
|
+
};
|
|
54936
|
+
}
|
|
54937
|
+
function isInboxRoute(request) {
|
|
54938
|
+
if (request.method === "POST" && request.url === "/jobs") return true;
|
|
54939
|
+
return request.method === "GET" && request.url === "/watchees";
|
|
54940
|
+
}
|
|
54941
|
+
function sendWatcheeSettings(response) {
|
|
54942
|
+
const published = watcheeSettings();
|
|
54943
|
+
if (published === null) {
|
|
54944
|
+
sendJson(response, 503, { error: "the server has not published watchee settings yet" });
|
|
54945
|
+
return;
|
|
54946
|
+
}
|
|
54947
|
+
sendJson(response, 200, published);
|
|
54948
|
+
}
|
|
54921
54949
|
async function handle(request, response) {
|
|
54922
|
-
if (request
|
|
54950
|
+
if (!isInboxRoute(request)) {
|
|
54923
54951
|
sendJson(response, 404, { error: "not found" });
|
|
54924
54952
|
return;
|
|
54925
54953
|
}
|
|
@@ -54927,6 +54955,10 @@ function createJobInboxRequestHandler({ token, handlers, log = console }) {
|
|
|
54927
54955
|
sendJson(response, 401, { error: "missing or wrong watcher token" });
|
|
54928
54956
|
return;
|
|
54929
54957
|
}
|
|
54958
|
+
if (request.method === "GET") {
|
|
54959
|
+
sendWatcheeSettings(response);
|
|
54960
|
+
return;
|
|
54961
|
+
}
|
|
54930
54962
|
const parsed = parseWatcherJob(parseJsonBody(await readBody(request)));
|
|
54931
54963
|
if (!parsed.ok) {
|
|
54932
54964
|
sendJson(response, 400, { error: parsed.reason });
|
|
@@ -54934,10 +54966,7 @@ function createJobInboxRequestHandler({ token, handlers, log = console }) {
|
|
|
54934
54966
|
}
|
|
54935
54967
|
const { job } = parsed;
|
|
54936
54968
|
if (recentJobIds.hasSeen(job.jobId)) {
|
|
54937
|
-
sendJson(response, 200,
|
|
54938
|
-
jobId: job.jobId,
|
|
54939
|
-
status: "duplicate"
|
|
54940
|
-
});
|
|
54969
|
+
sendJson(response, 200, ackFor(job.jobId, "duplicate"));
|
|
54941
54970
|
return;
|
|
54942
54971
|
}
|
|
54943
54972
|
if (inFlightJobIds.has(job.jobId)) {
|
|
@@ -54955,10 +54984,7 @@ function createJobInboxRequestHandler({ token, handlers, log = console }) {
|
|
|
54955
54984
|
inFlightJobIds.delete(job.jobId);
|
|
54956
54985
|
}
|
|
54957
54986
|
recentJobIds.remember(job.jobId);
|
|
54958
|
-
sendJson(response, 200,
|
|
54959
|
-
jobId: job.jobId,
|
|
54960
|
-
status: "accepted"
|
|
54961
|
-
});
|
|
54987
|
+
sendJson(response, 200, ackFor(job.jobId, "accepted"));
|
|
54962
54988
|
}
|
|
54963
54989
|
return (request, response) => {
|
|
54964
54990
|
handle(request, response).catch((error) => {
|
|
@@ -55055,17 +55081,25 @@ function createWatcherSupervisor({ inboxUrl, token, environment = () => ({}), lo
|
|
|
55055
55081
|
supervision = "restarting";
|
|
55056
55082
|
runningChild.kill();
|
|
55057
55083
|
}
|
|
55084
|
+
function notifySettingsChanged() {
|
|
55085
|
+
if (runningChild === null || !runningChild.connected) return;
|
|
55086
|
+
runningChild.send({ type: WATCHEE_SETTINGS_CHANGED_MESSAGE }, (sendError) => {
|
|
55087
|
+
if (sendError) log.warn(`[watcher] could not tell the child to fetch new settings: ${sendError.message}; it fetches them when it restarts`);
|
|
55088
|
+
});
|
|
55089
|
+
}
|
|
55058
55090
|
return {
|
|
55059
55091
|
start,
|
|
55060
55092
|
stop,
|
|
55061
|
-
refreshEnvironment
|
|
55093
|
+
refreshEnvironment,
|
|
55094
|
+
notifySettingsChanged
|
|
55062
55095
|
};
|
|
55063
55096
|
}
|
|
55064
55097
|
// cloud/inbox/job-inbox-wiring.ts
|
|
55065
55098
|
var NO_OP_INBOX = {
|
|
55066
55099
|
attach: () => {},
|
|
55067
55100
|
startWatcher: () => {},
|
|
55068
|
-
refreshWatcherEnvironment: () => {}
|
|
55101
|
+
refreshWatcherEnvironment: () => {},
|
|
55102
|
+
publishWatcheeSettings: () => {}
|
|
55069
55103
|
};
|
|
55070
55104
|
function createJobInbox({ watcherConfig, handlers, watcherEnvironment, log = console }) {
|
|
55071
55105
|
const envToken = watcherConfig?.token ?? null;
|
|
@@ -55085,13 +55119,16 @@ function createJobInbox({ watcherConfig, handlers, watcherEnvironment, log = con
|
|
|
55085
55119
|
};
|
|
55086
55120
|
}
|
|
55087
55121
|
const token = decision.tokenSource === "env" && envToken !== null ? envToken : crypto.randomBytes(32).toString("hex");
|
|
55122
|
+
let publishedSettings = null;
|
|
55088
55123
|
const handleRequest = createJobInboxRequestHandler({
|
|
55089
55124
|
token,
|
|
55090
55125
|
handlers,
|
|
55126
|
+
watcheeSettings: () => publishedSettings,
|
|
55091
55127
|
log
|
|
55092
55128
|
});
|
|
55093
55129
|
const stopCallbacks = [];
|
|
55094
55130
|
const environmentRefreshes = [];
|
|
55131
|
+
const settingsChangeNotices = [];
|
|
55095
55132
|
return {
|
|
55096
55133
|
decision,
|
|
55097
55134
|
token,
|
|
@@ -55116,10 +55153,15 @@ function createJobInbox({ watcherConfig, handlers, watcherEnvironment, log = con
|
|
|
55116
55153
|
});
|
|
55117
55154
|
stopCallbacks.push(supervisor.stop);
|
|
55118
55155
|
environmentRefreshes.push(supervisor.refreshEnvironment);
|
|
55156
|
+
settingsChangeNotices.push(supervisor.notifySettingsChanged);
|
|
55119
55157
|
supervisor.start();
|
|
55120
55158
|
},
|
|
55121
55159
|
refreshWatcherEnvironment() {
|
|
55122
55160
|
for (const refresh of environmentRefreshes) refresh();
|
|
55161
|
+
},
|
|
55162
|
+
publishWatcheeSettings(settings) {
|
|
55163
|
+
publishedSettings = watcheeSettingsReply(settings);
|
|
55164
|
+
for (const noticeSettingsChanged of settingsChangeNotices) noticeSettingsChanged();
|
|
55123
55165
|
}
|
|
55124
55166
|
};
|
|
55125
55167
|
}
|
|
@@ -55200,9 +55242,6 @@ function watcheeSettingsFromConfig(config, issuesProjectRepos) {
|
|
|
55200
55242
|
community: communityWatcheeSettings(config)
|
|
55201
55243
|
};
|
|
55202
55244
|
}
|
|
55203
|
-
function syncWatcheeSettings(config, issuesProjectRepos, log = console) {
|
|
55204
|
-
return writeWatcheeSettings(watcherHomeDir(), watcheeSettingsFromConfig(config, issuesProjectRepos)).catch((error) => log.warn(`[watcher] could not write the watchee settings: ${errorMessage(error)}`));
|
|
55205
|
-
}
|
|
55206
55245
|
// server/backend/backend.ts
|
|
55207
55246
|
var AGENT_INGRESS_HOST = "127.0.0.1";
|
|
55208
55247
|
function createBackend(httpServer, options = {}) {
|
|
@@ -55559,7 +55598,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
55559
55598
|
for (const [, sess] of sessions) sess.updateSettings(config);
|
|
55560
55599
|
notifications.applySettings();
|
|
55561
55600
|
laneAssembly.restartServiceLanes();
|
|
55562
|
-
issues.watchedProjectRepos().then((projectRepos) =>
|
|
55601
|
+
issues.watchedProjectRepos().then((projectRepos) => jobInbox.publishWatcheeSettings(watcheeSettingsFromConfig(config, projectRepos)));
|
|
55563
55602
|
jobInbox.refreshWatcherEnvironment();
|
|
55564
55603
|
}
|
|
55565
55604
|
function downloadUpdateOnceListening() {
|
|
@@ -55688,7 +55727,7 @@ function createBackend(httpServer, options = {}) {
|
|
|
55688
55727
|
"community.rows": community.acceptRows
|
|
55689
55728
|
})
|
|
55690
55729
|
});
|
|
55691
|
-
issues.watchedProjectRepos().then((projectRepos) =>
|
|
55730
|
+
issues.watchedProjectRepos().then((projectRepos) => jobInbox.publishWatcheeSettings(watcheeSettingsFromConfig(config, projectRepos)));
|
|
55692
55731
|
const { requestShutdown, requestRestart } = createLifecycle({
|
|
55693
55732
|
shutdown,
|
|
55694
55733
|
httpServer,
|
|
@@ -3,7 +3,7 @@ import { _ as decideHostAllowed, a as packReportText, g as readCappedBody, i as
|
|
|
3
3
|
import { n as parseJsonRecord } from "./json-core-B1ov-SNz.js";
|
|
4
4
|
import { ar as prFlowsOutputJsonSchemaText, n as AGENT_REPLY_SCHEMAS, xr as STATES } from "./session-D_SsusV0.js";
|
|
5
5
|
import { n as glimmervoidHomeDir } from "./config-path-core-qUZH9-0F.js";
|
|
6
|
-
import { a as examplePacksDir } from "./runtime-paths-
|
|
6
|
+
import { a as examplePacksDir } from "./runtime-paths-Bg4cKFoq.js";
|
|
7
7
|
import { l as packBridgeJsonSchemaText, m as THEME_STATE_NAMES, n as PackBridgeTopic, t as PACK_DATA_MAX_BYTES } from "./pack-bridge-zn5b7h2d.js";
|
|
8
8
|
import { a as readApprovedPackFingerprints, o as readPackDir, u as packJsonSchemaText } from "./pack-files-DhRZWjsI.js";
|
|
9
9
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as resolveConfigPath } from "./config-store-
|
|
2
|
-
import { a as createPairingsStore, c as defaultSeenPath, n as normalizeRemoteConfig, o as createSeenStore, s as defaultPairingsPath } from "./remote-config-
|
|
1
|
+
import { c as resolveConfigPath } from "./config-store-DRIDk1dj.js";
|
|
2
|
+
import { a as createPairingsStore, c as defaultSeenPath, n as normalizeRemoteConfig, o as createSeenStore, s as defaultPairingsPath } from "./remote-config-MtTrtohP.js";
|
|
3
3
|
import { r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
// server/text-format.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as equalsIgnoringCaseOnWindows } from "./runtime-paths-Bg4cKFoq.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
4
4
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-B4WAD15T.js";
|
|
5
|
-
import {
|
|
6
|
-
import { o as glimmervoidHomeDir } from "./config-store-
|
|
5
|
+
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-yeY8p-gc.js";
|
|
6
|
+
import { o as glimmervoidHomeDir, yt as canonicalizePath } from "./config-store-DRIDk1dj.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { l as resolvePackageBin } from "./runtime-paths-Bg4cKFoq.js";
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
import { r as isPathInside } from "./paths-C2u2R_6l.js";
|
|
2
1
|
import { createRequire } from "node:module";
|
|
3
2
|
import fs from "node:fs";
|
|
4
3
|
import path from "node:path";
|
|
5
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
+
// shared/paths.ts
|
|
6
|
+
function caseFoldedPathKey(value) {
|
|
7
|
+
return process.platform === "win32" ? value.toLowerCase() : value;
|
|
8
|
+
}
|
|
9
|
+
function equalsIgnoringCaseOnWindows(a, b) {
|
|
10
|
+
return caseFoldedPathKey(a) === caseFoldedPathKey(b);
|
|
11
|
+
}
|
|
12
|
+
function isPathInside(parent, child, { allowEqual = true, foldCase = false } = {}) {
|
|
13
|
+
if (!parent || !child) return false;
|
|
14
|
+
const resolvedParent = path.resolve(parent);
|
|
15
|
+
const resolvedChild = path.resolve(child);
|
|
16
|
+
const from = foldCase ? resolvedParent.toLowerCase() : resolvedParent;
|
|
17
|
+
const to = foldCase ? resolvedChild.toLowerCase() : resolvedChild;
|
|
18
|
+
const relative = path.relative(from, to);
|
|
19
|
+
if (relative === "") return allowEqual;
|
|
20
|
+
if (path.isAbsolute(relative)) return false;
|
|
21
|
+
return relative !== ".." && !relative.startsWith(`..${path.sep}`);
|
|
22
|
+
}
|
|
23
|
+
function safePathSegment(value) {
|
|
24
|
+
return String(value).replace(/[<>:"/\\|?*\x00-\x1f]/g, "-").replace(/[. ]+$/, "") || "_";
|
|
25
|
+
}
|
|
26
|
+
function sanitizeWorktreeName(value) {
|
|
27
|
+
return String(value || "").replace(/[^\w.-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
28
|
+
}
|
|
6
29
|
// server/core/runtime-paths.ts
|
|
7
30
|
function findPackageRoot(startDirectory, hasPackageJson) {
|
|
8
31
|
let directory = startDirectory;
|
|
@@ -80,4 +103,4 @@ function readFfmpegPath() {
|
|
|
80
103
|
return null;
|
|
81
104
|
}
|
|
82
105
|
}
|
|
83
|
-
export { examplePacksDir as a, resolveFfmpegPath as c, clientDir as i, resolvePackageBin as l, bundled as n, packageRoot as o, cliPath as r, relayPath as s, assetRoot as t };
|
|
106
|
+
export { examplePacksDir as a, resolveFfmpegPath as c, equalsIgnoringCaseOnWindows as d, isPathInside as f, clientDir as i, resolvePackageBin as l, sanitizeWorktreeName as m, bundled as n, packageRoot as o, safePathSegment as p, cliPath as r, relayPath as s, assetRoot as t, caseFoldedPathKey as u };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
2
2
|
import { r as BrowserConfig } from "./config-r6W-aA3l.js";
|
|
3
3
|
import { g as AgentSettingsReply } from "./session-D_SsusV0.js";
|
|
4
|
-
import { L as valueAtPath, M as parsePosthogProjectSelection, N as scoreSettingsSearch, O as cloneValue, P as setValueAtPath, S as isSettingAvailable, gt as readEnvSecrets, ht as ENV_SECRET_BINDINGS, k as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, vt as withEnvSecrets, z as SETTINGS_REGISTRY } from "./config-store-
|
|
4
|
+
import { L as valueAtPath, M as parsePosthogProjectSelection, N as scoreSettingsSearch, O as cloneValue, P as setValueAtPath, S as isSettingAvailable, gt as readEnvSecrets, ht as ENV_SECRET_BINDINGS, k as deleteValueAtPath, l as saveConfigFileOnce, s as loadConfigFile, t as IS_EXPERIMENTAL_BUILD, u as validateConfig, vt as withEnvSecrets, z as SETTINGS_REGISTRY } from "./config-store-DRIDk1dj.js";
|
|
5
5
|
import { r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
|
|
6
6
|
import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
|
|
7
7
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-qUZH9-0F.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-
|
|
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-BKUStfoo.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
// server/settings-cli.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runParsedSettingsCli } from "./settings-cli-Br1U03X4.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as AgentSettingsRequest } from "./session-D_SsusV0.js";
|
|
2
|
-
import { A as displayText, D as SETTINGS_INDEX, F as settingsGroupOf, I as settingsOf, L as valueAtPath, O as cloneValue, R as FILE_ONLY_GROUPS, S as isSettingAvailable, gt as readEnvSecrets, j as hasScaledUnit, z as SETTINGS_REGISTRY } from "./config-store-
|
|
2
|
+
import { A as displayText, D as SETTINGS_INDEX, F as settingsGroupOf, I as settingsOf, L as valueAtPath, O as cloneValue, R as FILE_ONLY_GROUPS, S as isSettingAvailable, gt as readEnvSecrets, j as hasScaledUnit, z as SETTINGS_REGISTRY } from "./config-store-DRIDk1dj.js";
|
|
3
3
|
import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
|
|
4
4
|
// server/core/settings-readout-core.ts
|
|
5
5
|
var VALUE_COLUMN_WIDTH = 40;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// shared/timer-deps.ts
|
|
2
|
+
var DEFAULT_TIMER_FNS = Object.freeze({
|
|
3
|
+
setTimeoutFn: (fn, ms) => setTimeout(fn, ms),
|
|
4
|
+
clearTimeoutFn: (handle) => clearTimeout(handle),
|
|
5
|
+
setIntervalFn: (fn, ms) => setInterval(fn, ms),
|
|
6
|
+
clearIntervalFn: (handle) => clearInterval(handle)
|
|
7
|
+
});
|
|
8
|
+
function unrefTimer(handle) {
|
|
9
|
+
if (typeof handle !== "object" || handle === null) return handle;
|
|
10
|
+
if (!("unref" in handle) || typeof handle.unref !== "function") return handle;
|
|
11
|
+
handle.unref();
|
|
12
|
+
return handle;
|
|
13
|
+
}
|
|
14
|
+
export { unrefTimer as n, DEFAULT_TIMER_FNS as t };
|