glimmervoid 0.47.1-next.257 → 0.47.1-next.258
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 +12 -12
- package/dist/chunks/{adapters-CX2dbKiF.js → adapters-CHah6aJ0.js} +6 -6
- package/dist/chunks/{adapters-COA7jjXs.js → adapters-wHjrsK41.js} +1 -1
- package/dist/chunks/{agent-api-cli-HE2RxVpq.js → agent-api-cli-BYnfsA7f.js} +1 -1
- package/dist/chunks/{agent-api-cli-Dvg17P5H.js → agent-api-cli-D1tdAPBd.js} +1 -1
- package/dist/chunks/{agent-api-core-CxziVhnp.js → agent-api-core-DAAWtXVD.js} +1 -1
- package/dist/chunks/{agent-setup-cli-C0rq4LlN.js → agent-setup-cli-BsEkZlRc.js} +1 -1
- package/dist/chunks/{build-channel-DkEUPQnu.js → build-channel-DQkyslls.js} +1 -1
- package/dist/chunks/{config-DaLY0f9y.js → config-msD87zbt.js} +4 -3
- package/dist/chunks/config-store-DJrzEDnG.js +1 -0
- package/dist/chunks/{config-store-DzoMjEw6.js → config-store-DcjnatyI.js} +44 -21
- package/dist/chunks/{grok-CNT8DCGZ.js → grok-6_qW-UXZ.js} +1 -1
- package/dist/chunks/kimi-Bv6AgPnN.js +1 -0
- package/dist/chunks/{kimi-CROia0Qa.js → kimi-gqX-CtP3.js} +2 -2
- package/dist/chunks/{main-1a8k55Ik.js → main-fr5D_OG4.js} +39 -27
- package/dist/chunks/{pair-cli-kmCTIG6A.js → pair-cli-Cg_6Os_Q.js} +2 -2
- package/dist/chunks/{remote-config-pztIAqaU.js → remote-config-BmUDD1WE.js} +1 -1
- package/dist/chunks/{sane-yolo-CY1F156O.js → sane-yolo-DHs0dZTW.js} +7 -4
- package/dist/chunks/{settings-cli-CLXxmAZ_.js → settings-cli-4uXnz8Uq.js} +4 -4
- package/dist/chunks/{settings-readout-core-B9_CZx5W.js → settings-readout-core-DxfzdITm.js} +1 -1
- package/dist/chunks/{spawn-env-Cu7OdatC.js → spawn-env-DoDREsO-.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-BFcEjsCa.js → ssh-sign-cli-CsWQ5JZK.js} +1 -1
- package/dist/client/assets/{alert-sound-CZx5Zm05.js → alert-sound-nf3o3_wq.js} +1 -1
- package/dist/client/assets/alert-sound-nf3o3_wq.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-DyVWh3o1.js → benchmark-panel-CWYOnjDG.js} +1 -1
- package/dist/client/assets/benchmark-panel-CWYOnjDG.js.br +0 -0
- package/dist/client/assets/{celebration-player-DXYzqPBC.js → celebration-player-vRRn5MpO.js} +1 -1
- package/dist/client/assets/celebration-player-vRRn5MpO.js.br +0 -0
- package/dist/client/assets/{community-panel-DYt3h78v.js → community-panel-3bVIK6eq.js} +1 -1
- package/dist/client/assets/community-panel-3bVIK6eq.js.br +0 -0
- package/dist/client/assets/{dialogs-CeyGUQ_N.js → dialogs-DL9A1wPJ.js} +1 -1
- package/dist/client/assets/dialogs-DL9A1wPJ.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-DcgHaimX.js → doc-editor-ui-DkiiztD-.js} +1 -1
- package/dist/client/assets/doc-editor-ui-DkiiztD-.js.br +0 -0
- package/dist/client/assets/{feature-hint-CBerOTv5.js → feature-hint-CJElDiTQ.js} +1 -1
- package/dist/client/assets/feature-hint-CJElDiTQ.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DKeSAsQX.js → first-run-checklist-BRRr6sOU.js} +1 -1
- package/dist/client/assets/first-run-checklist-BRRr6sOU.js.br +0 -0
- package/dist/client/assets/{hooks-panel-BVYZMX7O.js → hooks-panel-CVSsMuW-.js} +1 -1
- package/dist/client/assets/hooks-panel-CVSsMuW-.js.br +0 -0
- package/dist/client/assets/{index-CCwbxRUr.js → index-Cgs2aewN.js} +5 -5
- package/dist/client/assets/index-Cgs2aewN.js.br +0 -0
- package/dist/client/assets/{issues-panel-BsykEd7F.js → issues-panel-UnV9EDiE.js} +1 -1
- package/dist/client/assets/issues-panel-UnV9EDiE.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-uaBodpEn.js → my-prs-panel-DSfvvXjn.js} +1 -1
- package/dist/client/assets/my-prs-panel-DSfvvXjn.js.br +0 -0
- package/dist/client/assets/{nyan-cat-U1H9SwJO.js → nyan-cat-R0kjqBLP.js} +1 -1
- package/dist/client/assets/nyan-cat-R0kjqBLP.js.br +0 -0
- package/dist/client/assets/{phone-shell-CqB4rMGA.js → phone-shell-CkkBHjIW.js} +1 -1
- package/dist/client/assets/phone-shell-CkkBHjIW.js.br +0 -0
- package/dist/client/assets/{plan-face-CEmegNLe.js → plan-face-DHCMYHpa.js} +1 -1
- package/dist/client/assets/plan-face-DHCMYHpa.js.br +0 -0
- package/dist/client/assets/{plan-render-DdduGzbo.js → plan-render-CEulKrG9.js} +1 -1
- package/dist/client/assets/plan-render-CEulKrG9.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-B1zPUfHo.js → pr-queue-columns-BZeDNC8e.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BZeDNC8e.js.br +0 -0
- package/dist/client/assets/{radar-panel-CEwrIF7_.js → radar-panel-CaGYAYdt.js} +1 -1
- package/dist/client/assets/radar-panel-CaGYAYdt.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-BEGxMD41.js → repo-roots-adder-HMQi5ENo.js} +1 -1
- package/dist/client/assets/repo-roots-adder-HMQi5ENo.js.br +0 -0
- package/dist/client/assets/{resume-dialog-Bkmfe8pK.js → resume-dialog-CH9jnJzS.js} +1 -1
- package/dist/client/assets/resume-dialog-CH9jnJzS.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-mv1bYDT1.js → review-queue-panel-BUu9nIDI.js} +1 -1
- package/dist/client/assets/review-queue-panel-BUu9nIDI.js.br +0 -0
- package/dist/client/assets/{settings-panel-B7ooBURV.js → settings-panel-B_D7EiHD.js} +2 -2
- package/dist/client/assets/settings-panel-B_D7EiHD.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-CbYuKiRV.js → shown-lightbox-C1FVlOGG.js} +1 -1
- package/dist/client/assets/shown-lightbox-C1FVlOGG.js.br +0 -0
- package/dist/client/assets/{team-review-panel-D4DYefn3.js → team-review-panel-Cv0tRI8P.js} +1 -1
- package/dist/client/assets/team-review-panel-Cv0tRI8P.js.br +0 -0
- package/dist/client/assets/{trace-panel-bPCRO9T5.js → trace-panel-46IAbw1m.js} +1 -1
- package/dist/client/assets/trace-panel-46IAbw1m.js.br +0 -0
- package/dist/client/assets/{usage-panel-BSIIKwHP.js → usage-panel-DmfLxVPm.js} +1 -1
- package/dist/client/assets/usage-panel-DmfLxVPm.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/dist/session/hook-tool-relay.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/config-store-CaAtiPz4.js +0 -1
- package/dist/chunks/kimi-M6Q1W-rl.js +0 -1
- package/dist/client/assets/alert-sound-CZx5Zm05.js.br +0 -0
- package/dist/client/assets/benchmark-panel-DyVWh3o1.js.br +0 -0
- package/dist/client/assets/celebration-player-DXYzqPBC.js.br +0 -0
- package/dist/client/assets/community-panel-DYt3h78v.js.br +0 -0
- package/dist/client/assets/dialogs-CeyGUQ_N.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-DcgHaimX.js.br +0 -0
- package/dist/client/assets/feature-hint-CBerOTv5.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DKeSAsQX.js.br +0 -0
- package/dist/client/assets/hooks-panel-BVYZMX7O.js.br +0 -0
- package/dist/client/assets/index-CCwbxRUr.js.br +0 -0
- package/dist/client/assets/issues-panel-BsykEd7F.js.br +0 -0
- package/dist/client/assets/my-prs-panel-uaBodpEn.js.br +0 -0
- package/dist/client/assets/nyan-cat-U1H9SwJO.js.br +0 -0
- package/dist/client/assets/phone-shell-CqB4rMGA.js.br +0 -0
- package/dist/client/assets/plan-face-CEmegNLe.js.br +0 -0
- package/dist/client/assets/plan-render-DdduGzbo.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-B1zPUfHo.js.br +0 -0
- package/dist/client/assets/radar-panel-CEwrIF7_.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-BEGxMD41.js.br +0 -0
- package/dist/client/assets/resume-dialog-Bkmfe8pK.js.br +0 -0
- package/dist/client/assets/review-queue-panel-mv1bYDT1.js.br +0 -0
- package/dist/client/assets/settings-panel-B7ooBURV.js.br +0 -0
- package/dist/client/assets/shown-lightbox-CbYuKiRV.js.br +0 -0
- package/dist/client/assets/team-review-panel-D4DYefn3.js.br +0 -0
- package/dist/client/assets/trace-panel-bPCRO9T5.js.br +0 -0
- package/dist/client/assets/usage-panel-BSIIKwHP.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -5,7 +5,7 @@ import { a as packageRoot } from "../chunks/runtime-paths-D_ZjJLE0.js";
|
|
|
5
5
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
6
6
|
import { t as AGENT_API_VERBS } from "../chunks/session-BQaAlkib.js";
|
|
7
7
|
import { a as execSync } from "../chunks/child-process-safe-BCOoKfxG.js";
|
|
8
|
-
import { r as agentCommandHelpLines } from "../chunks/agent-api-core-
|
|
8
|
+
import { r as agentCommandHelpLines } from "../chunks/agent-api-core-DAAWtXVD.js";
|
|
9
9
|
import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
|
|
10
10
|
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-D4rz3ygs.js";
|
|
11
11
|
import { i as guardrailsDoctorRows, r as probeGuardrailsDependencies } from "../chunks/guardrails-deps-BfZSPpNs.js";
|
|
@@ -58,25 +58,25 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
58
58
|
return 0;
|
|
59
59
|
}],
|
|
60
60
|
["pair", async (subcommandArgs) => {
|
|
61
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
61
|
+
const { runPairCli } = await import("../chunks/pair-cli-Cg_6Os_Q.js");
|
|
62
62
|
return runPairCli(subcommandArgs);
|
|
63
63
|
}],
|
|
64
64
|
["agent", async (subcommandArgs) => {
|
|
65
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
65
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-BsEkZlRc.js");
|
|
66
66
|
return runAgentSetupCli(subcommandArgs);
|
|
67
67
|
}],
|
|
68
68
|
["settings", async (subcommandArgs) => {
|
|
69
|
-
const { runSettingsCli } = await import("../chunks/settings-cli-
|
|
69
|
+
const { runSettingsCli } = await import("../chunks/settings-cli-4uXnz8Uq.js");
|
|
70
70
|
return runSettingsCli(subcommandArgs);
|
|
71
71
|
}],
|
|
72
72
|
["ssh-sign", async (subcommandArgs) => {
|
|
73
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
73
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-CsWQ5JZK.js");
|
|
74
74
|
return runSshSignCli(subcommandArgs);
|
|
75
75
|
}]
|
|
76
76
|
];
|
|
77
77
|
var ownSubcommandNames = new Set(OWN_SUBCOMMAND_RUNNERS.map(([name]) => name));
|
|
78
78
|
var SUBCOMMAND_RUNNERS = new Map([...OWN_SUBCOMMAND_RUNNERS, ...AGENT_API_VERBS.filter((verb) => !ownSubcommandNames.has(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
79
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
79
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-D1tdAPBd.js");
|
|
80
80
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
81
81
|
}])]);
|
|
82
82
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -90,7 +90,7 @@ function missingAgentText(agentId) {
|
|
|
90
90
|
}
|
|
91
91
|
async function printSessionLimits() {
|
|
92
92
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
93
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
93
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-D1tdAPBd.js");
|
|
94
94
|
const limitsLines = await sessionLimitsHelpLines();
|
|
95
95
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
96
96
|
}
|
|
@@ -147,7 +147,7 @@ async function readDeclaredCustomAgents() {
|
|
|
147
147
|
declared: [],
|
|
148
148
|
error: null
|
|
149
149
|
};
|
|
150
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
150
|
+
const { loadConfigFile } = await import("../chunks/config-store-DJrzEDnG.js");
|
|
151
151
|
try {
|
|
152
152
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
153
153
|
if (!loaded.config) return {
|
|
@@ -223,7 +223,7 @@ async function runDoctor() {
|
|
|
223
223
|
}
|
|
224
224
|
switchSection("Agents");
|
|
225
225
|
try {
|
|
226
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
226
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-wHjrsK41.js");
|
|
227
227
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
228
228
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
229
229
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -231,10 +231,10 @@ async function runDoctor() {
|
|
|
231
231
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
232
232
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
233
233
|
}
|
|
234
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
234
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BsEkZlRc.js");
|
|
235
235
|
const grokSetup = inspectGrokAgentSetup();
|
|
236
236
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
237
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
237
|
+
const { default: kimi } = await import("../chunks/kimi-Bv6AgPnN.js");
|
|
238
238
|
const { describeKimiHome } = await import("../chunks/kimi-home-Czh-wcQ_.js");
|
|
239
239
|
line("kimi home", describeKimiHome(kimi.expectedHooksBlock()));
|
|
240
240
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function runDoctor() {
|
|
|
244
244
|
try {
|
|
245
245
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-DUfaYypN.js");
|
|
246
246
|
const { execFileSync } = await import("../chunks/child-process-safe-BKjzSEYd.js");
|
|
247
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
247
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BsEkZlRc.js");
|
|
248
248
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
249
249
|
line("Sane YOLO", binPath || "not installed");
|
|
250
250
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -2,18 +2,18 @@ import { a as isMissingFileError } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { o as relayPath, u as isPathInside } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
3
|
import { Vt as shortSha$1, zt as FULL_SHA_RE } from "./session-BQaAlkib.js";
|
|
4
4
|
import { i as execFileSync, r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
5
|
-
import { Dt as UpdateChannel, c as SHELL_AGENT_ID, x as InstallFlavor } from "./config-
|
|
5
|
+
import { Dt as UpdateChannel, c as SHELL_AGENT_ID, x as InstallFlavor } from "./config-msD87zbt.js";
|
|
6
6
|
import { o as supervisionLine } from "./session-routes-CmWSbar1.js";
|
|
7
7
|
import { a as rawTextOr, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
8
8
|
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
9
9
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
10
|
-
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-
|
|
11
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
10
|
+
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-DHs0dZTW.js";
|
|
11
|
+
import { t as buildAgentEnv } from "./spawn-env-DoDREsO-.js";
|
|
12
12
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
13
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-
|
|
13
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-6_qW-UXZ.js";
|
|
14
14
|
import { O as nextBackoffMs } from "./json-file-AKRVPqG1.js";
|
|
15
|
-
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-
|
|
16
|
-
import { t as kimi } from "./kimi-
|
|
15
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-DQkyslls.js";
|
|
16
|
+
import { t as kimi } from "./kimi-gqX-CtP3.js";
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -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-CHah6aJ0.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as errorCode } from "./text-DoirglWV.js";
|
|
2
2
|
import { l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-BQaAlkib.js";
|
|
3
3
|
import { i as formatSessionLimits } from "./session-routes-CmWSbar1.js";
|
|
4
|
-
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
4
|
+
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-DAAWtXVD.js";
|
|
5
5
|
import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
|
|
6
6
|
import { n as decideGuardrailsProxy } from "./guardrails-proxy-core-BI3rdY-m.js";
|
|
7
7
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-
|
|
1
|
+
export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-BYnfsA7f.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { 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-BQaAlkib.js";
|
|
2
|
-
import { E as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
2
|
+
import { E as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-msD87zbt.js";
|
|
3
3
|
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-CmWSbar1.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
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-6_qW-UXZ.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
1
|
import "./session-BQaAlkib.js";
|
|
2
|
-
import { A as HintFeature, C as ONBOARDING_STEP_STATES, S as ONBOARDING_STEPS, T as OPERATOR_SURFACES, b as DASHBOARD_VIEWS, n as BUILTIN_AGENT_IDS, w as OPERATOR_ACTIONS_BY_SURFACE } from "./config-
|
|
2
|
+
import { A as HintFeature, C as ONBOARDING_STEP_STATES, S as ONBOARDING_STEPS, T as OPERATOR_SURFACES, b as DASHBOARD_VIEWS, n as BUILTIN_AGENT_IDS, w as OPERATOR_ACTIONS_BY_SURFACE } from "./config-msD87zbt.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"]);
|
|
@@ -2599,13 +2599,13 @@ var PlanReviewSettings = z.object({ enabled: optionalBoolean("planReview.enabled
|
|
|
2599
2599
|
var optionalPathList = (field) => z.array(z.string({ error: `${field} must be an array of paths` }).trim().min(1, { error: `${field} must be an array of paths` }), { error: `${field} must be an array of paths` }).optional();
|
|
2600
2600
|
var guardrailsShape = {
|
|
2601
2601
|
unguardedRepos: optionalPathList("guardrails.unguardedRepos"),
|
|
2602
|
-
blockedPaths: optionalPathList("guardrails.blockedPaths")
|
|
2603
|
-
unreadablePaths: optionalPathList("guardrails.unreadablePaths")
|
|
2602
|
+
blockedPaths: optionalPathList("guardrails.blockedPaths")
|
|
2604
2603
|
};
|
|
2605
2604
|
var isHomeRelativePath = (entry) => entry === "~" || entry.startsWith("~/") || entry.startsWith("~\\");
|
|
2605
|
+
var absoluteOrHomePathList = (field, isAbsolutePath) => z.array(z.string({ error: `${field} must be an array of paths` }).trim().min(1, { error: `${field} must be an array of paths` }).refine((entry) => isHomeRelativePath(entry) || isAbsolutePath(entry), { message: `${field} entries must be absolute paths or start with ~/` }), { error: `${field} must be an array of paths` }).optional();
|
|
2606
2606
|
var createGuardrailsSettings = (isAbsolutePath) => z.object({
|
|
2607
2607
|
...guardrailsShape,
|
|
2608
|
-
blockedPaths:
|
|
2608
|
+
blockedPaths: absoluteOrHomePathList("guardrails.blockedPaths", isAbsolutePath)
|
|
2609
2609
|
}, { error: "guardrails must be an object" }).strict().optional();
|
|
2610
2610
|
var GuardrailsFileSettings = z.object(guardrailsShape, { error: "guardrails must be an object" }).passthrough().optional();
|
|
2611
2611
|
var telemetryShape = { enabled: optionalBoolean("telemetry.enabled") };
|
|
@@ -2625,6 +2625,7 @@ var createBrowserConfigShape = (isAbsolutePath) => ({
|
|
|
2625
2625
|
detectBackgroundAgents: optionalBoolean("detectBackgroundAgents"),
|
|
2626
2626
|
recordSignals: optionalBoolean("recordSignals"),
|
|
2627
2627
|
saneYolo: optionalBoolean("saneYolo"),
|
|
2628
|
+
saneYoloUnreadablePaths: absoluteOrHomePathList("saneYoloUnreadablePaths", isAbsolutePath),
|
|
2628
2629
|
skipPermissionsByDefault: optionalBoolean("skipPermissionsByDefault"),
|
|
2629
2630
|
checkForUpdates: optionalBoolean("checkForUpdates"),
|
|
2630
2631
|
updateChannel: UpdateChannel.optional(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-DcjnatyI.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { a as packageRoot, l as equalsIgnoringCaseOnWindows } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
3
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
|
-
import { $ as FLYING_ANIMALS_DURATION_RANGE, Et as UPDATE_CHANNELS, Q as FLYING_ANIMALS_DEFAULTS, Z as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_SCAN_INTERVAL_RANGE, at as PORT_RANGE, ct as POSTHOG_PROJECT_ID_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, et as FLYING_ANIMALS_GAP_RANGE, f as USAGE_COST_MODES, ft as REPLAY_BUFFER_KB_RANGE, gt as USAGE_RETAIN_DAYS_RANGE, ht as USAGE_INTEGER_RANGES, i as Config, it as NON_NEGATIVE_NUMBER_RANGE, lt as POSTHOG_TRAFFIC_BASELINE_RANGE, m as normalizeLegacyConfigNumbers, mt as USAGE_BUDGET_RANGE, n as BUILTIN_AGENT_IDS, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, pt as TASK_TITLE_TIMEOUT_RANGE, rt as MEMORY_RESERVE_MB_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSTHOG_FIX_TIMEOUT_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_SCALE_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_MIN_USERS_RANGE, vt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, yt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE } from "./config-
|
|
4
|
+
import { $ as FLYING_ANIMALS_DURATION_RANGE, Et as UPDATE_CHANNELS, Q as FLYING_ANIMALS_DEFAULTS, Z as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_SCAN_INTERVAL_RANGE, at as PORT_RANGE, ct as POSTHOG_PROJECT_ID_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, et as FLYING_ANIMALS_GAP_RANGE, f as USAGE_COST_MODES, ft as REPLAY_BUFFER_KB_RANGE, gt as USAGE_RETAIN_DAYS_RANGE, ht as USAGE_INTEGER_RANGES, i as Config, it as NON_NEGATIVE_NUMBER_RANGE, lt as POSTHOG_TRAFFIC_BASELINE_RANGE, m as normalizeLegacyConfigNumbers, mt as USAGE_BUDGET_RANGE, n as BUILTIN_AGENT_IDS, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, pt as TASK_TITLE_TIMEOUT_RANGE, rt as MEMORY_RESERVE_MB_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSTHOG_FIX_TIMEOUT_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_SCALE_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_MIN_USERS_RANGE, vt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, yt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE } from "./config-msD87zbt.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-DQkyslls.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import os from "node:os";
|
|
@@ -1162,7 +1162,7 @@ var SECTIONS = Object.freeze([
|
|
|
1162
1162
|
id: "sane-yolo",
|
|
1163
1163
|
path: "saneYolo",
|
|
1164
1164
|
title: "Sane YOLO",
|
|
1165
|
-
description: "Block catastrophic commands in
|
|
1165
|
+
description: "Block catastrophic commands and reads of credentials in every session whose agent supports it, when the cc-safety-net executable is available and trusted hooks are installed. Missing or untrusted hooks leave a session unprotected.",
|
|
1166
1166
|
control: "toggle",
|
|
1167
1167
|
keywords: [
|
|
1168
1168
|
"permissions",
|
|
@@ -1172,6 +1172,23 @@ var SECTIONS = Object.freeze([
|
|
|
1172
1172
|
defaultValue: true,
|
|
1173
1173
|
...MACHINE_NEW_SESSIONS
|
|
1174
1174
|
},
|
|
1175
|
+
{
|
|
1176
|
+
id: "sane-yolo-unreadable-paths",
|
|
1177
|
+
path: "saneYoloUnreadablePaths",
|
|
1178
|
+
title: "Unreadable folders",
|
|
1179
|
+
description: "Extra folders and files Sane YOLO refuses to let an agent read, on top of the built-in credential list. A leading ~ means the home folder.",
|
|
1180
|
+
control: "list",
|
|
1181
|
+
keywords: [
|
|
1182
|
+
"guardrails",
|
|
1183
|
+
"secrets",
|
|
1184
|
+
"credentials",
|
|
1185
|
+
"sane yolo"
|
|
1186
|
+
],
|
|
1187
|
+
defaultValue: [],
|
|
1188
|
+
listPlaceholder: "~/folder",
|
|
1189
|
+
listEmptyText: "Only the built-in credential list is unreadable.",
|
|
1190
|
+
...MACHINE_NEW_SESSIONS
|
|
1191
|
+
},
|
|
1175
1192
|
{
|
|
1176
1193
|
id: "branch-gc-delete-unmerged",
|
|
1177
1194
|
path: "branchGc.deleteUnmerged",
|
|
@@ -1221,22 +1238,6 @@ var SECTIONS = Object.freeze([
|
|
|
1221
1238
|
listPlaceholder: "~/folder",
|
|
1222
1239
|
listEmptyText: "Only the built-in list is blocked.",
|
|
1223
1240
|
...MACHINE_NEW_SESSIONS
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
id: "guardrails-unreadable-paths",
|
|
1227
|
-
path: "guardrails.unreadablePaths",
|
|
1228
|
-
title: "Unreadable folders",
|
|
1229
|
-
description: "Extra folders and files a guarded session cannot read, on top of the built-in credential list. A leading ~ means the home folder.",
|
|
1230
|
-
control: "list",
|
|
1231
|
-
keywords: [
|
|
1232
|
-
"guardrails",
|
|
1233
|
-
"secrets",
|
|
1234
|
-
"credentials"
|
|
1235
|
-
],
|
|
1236
|
-
defaultValue: [],
|
|
1237
|
-
listPlaceholder: "~/folder",
|
|
1238
|
-
listEmptyText: "Only the built-in credential list is unreadable.",
|
|
1239
|
-
...MACHINE_NEW_SESSIONS
|
|
1240
1241
|
}
|
|
1241
1242
|
]
|
|
1242
1243
|
},
|
|
@@ -3302,8 +3303,7 @@ var DEFAULT_CONFIG = {
|
|
|
3302
3303
|
} },
|
|
3303
3304
|
guardrails: {
|
|
3304
3305
|
unguardedRepos: [],
|
|
3305
|
-
blockedPaths: []
|
|
3306
|
-
unreadablePaths: []
|
|
3306
|
+
blockedPaths: []
|
|
3307
3307
|
},
|
|
3308
3308
|
telemetry: { enabled: true },
|
|
3309
3309
|
checkForUpdates: true,
|
|
@@ -3311,6 +3311,7 @@ var DEFAULT_CONFIG = {
|
|
|
3311
3311
|
autoResume: true,
|
|
3312
3312
|
skipPermissionsByDefault: false,
|
|
3313
3313
|
saneYolo: true,
|
|
3314
|
+
saneYoloUnreadablePaths: [],
|
|
3314
3315
|
telegramNotifications: false,
|
|
3315
3316
|
integrationBranch: null,
|
|
3316
3317
|
worktreeRoot: "",
|
|
@@ -3574,6 +3575,20 @@ function retiredGuardrailKeysWarning(config) {
|
|
|
3574
3575
|
if (retiredKeys.length === 0) return null;
|
|
3575
3576
|
return `[guardrails] config.json still has ${retiredKeys.join(" and ")}. These keys are ignored, so their unreadable paths and opt-outs do not apply until you move them.`;
|
|
3576
3577
|
}
|
|
3578
|
+
function isAbsoluteOrHomePath(entry) {
|
|
3579
|
+
if (typeof entry !== "string") return false;
|
|
3580
|
+
const trimmedEntry = entry.trim();
|
|
3581
|
+
return trimmedEntry === "~" || trimmedEntry.startsWith("~/") || path.isAbsolute(trimmedEntry);
|
|
3582
|
+
}
|
|
3583
|
+
function migrateGuardrailsUnreadablePaths(config) {
|
|
3584
|
+
const guardrails = config.guardrails;
|
|
3585
|
+
if (!isRecord(guardrails) || !Object.hasOwn(guardrails, "unreadablePaths")) return null;
|
|
3586
|
+
const { unreadablePaths: legacyUnreadablePaths, ...remainingGuardrails } = guardrails;
|
|
3587
|
+
config.guardrails = remainingGuardrails;
|
|
3588
|
+
if (config.saneYoloUnreadablePaths !== void 0) return "[config] Dropped guardrails.unreadablePaths: saneYoloUnreadablePaths is already set and takes its place.";
|
|
3589
|
+
config.saneYoloUnreadablePaths = (Array.isArray(legacyUnreadablePaths) ? legacyUnreadablePaths : []).filter(isAbsoluteOrHomePath);
|
|
3590
|
+
return "[config] Moved guardrails.unreadablePaths to saneYoloUnreadablePaths: Sane YOLO now refuses reads of those folders.";
|
|
3591
|
+
}
|
|
3577
3592
|
function readIsExperimentalBuild() {
|
|
3578
3593
|
const manifest = JSON.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8"));
|
|
3579
3594
|
return isRecord(manifest) && isExperimentalBuild(manifest.version);
|
|
@@ -3594,6 +3609,13 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
3594
3609
|
config.branchGc = resolveBranchGcAndWarn(config.branchGc);
|
|
3595
3610
|
const retiredGuardrailKeys = retiredGuardrailKeysWarning(config);
|
|
3596
3611
|
if (retiredGuardrailKeys !== null) console.warn(retiredGuardrailKeys);
|
|
3612
|
+
const unreadablePathsMigration = migrateGuardrailsUnreadablePaths(config);
|
|
3613
|
+
if (unreadablePathsMigration !== null) try {
|
|
3614
|
+
writeJsonAtomicSync(configPath, withoutEnvSecrets(config, envSecrets), { mode: 384 });
|
|
3615
|
+
console.log(unreadablePathsMigration);
|
|
3616
|
+
} catch (err) {
|
|
3617
|
+
console.warn("[config] Failed to persist the guardrails.unreadablePaths move:", errorMessage(err));
|
|
3618
|
+
}
|
|
3597
3619
|
if (Array.isArray(config.projects) && ensureProjectIds(config.projects)) try {
|
|
3598
3620
|
writeJsonAtomicSync(configPath, withoutEnvSecrets(config, envSecrets), { mode: 384 });
|
|
3599
3621
|
console.log("[config] Auto-assigned IDs to projects missing them");
|
|
@@ -3730,6 +3752,7 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
3730
3752
|
telemetryForcedOff: isTelemetryForcedOff(process.env),
|
|
3731
3753
|
telemetryInstallId: readTelemetryInstallId?.() ?? null,
|
|
3732
3754
|
saneYolo: config.saneYolo ?? effectiveDefaults.saneYolo,
|
|
3755
|
+
saneYoloUnreadablePaths: config.saneYoloUnreadablePaths ?? DEFAULT_CONFIG.saneYoloUnreadablePaths,
|
|
3733
3756
|
checkForUpdates: config.checkForUpdates ?? effectiveDefaults.checkForUpdates,
|
|
3734
3757
|
updateChannel: config.updateChannel ?? effectiveDefaults.updateChannel,
|
|
3735
3758
|
autoResume: config.autoResume ?? effectiveDefaults.autoResume,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { o as relayPath } from "./runtime-paths-D_ZjJLE0.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-DoDREsO-.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-gqX-CtP3.js";
|
|
@@ -2,8 +2,8 @@ import { o as relayPath } from "./runtime-paths-D_ZjJLE0.js";
|
|
|
2
2
|
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-BQaAlkib.js";
|
|
3
3
|
import { i as execFileSync } from "./child-process-safe-BCOoKfxG.js";
|
|
4
4
|
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
5
|
-
import { t as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
5
|
+
import { t as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-DHs0dZTW.js";
|
|
6
|
+
import { t as buildAgentEnv } from "./spawn-env-DoDREsO-.js";
|
|
7
7
|
import { a as prepareKimiHome, i as kimiHomeLinkRefusal, m as renderKimiHooksBlock, n as generatedKimiHomePath, o as realKimiHome, r as holdKimiHome, s as releaseKimiHome } from "./kimi-home-4-aMoqJC.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
@@ -4,9 +4,9 @@ import { a as packageRoot, c as caseFoldedPathKey, d as safePathSegment, f as sa
|
|
|
4
4
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
5
5
|
import { $ as MyPrMergeWhenReadyRequest, $t as RESTARTABLE_STATES, A as SIGN_URL_ENV, At as TeamReviewStateEntry, Bt as HEX_SHA_RE, Ct as ReviewResult, D as SESSION_NAME_PATTERN, Et as TeamReviewActionRequest, F as ShownFile, Ft as canApproveAfterComment, G as MyPrCheckContextsResponse, Gt as repoParts, H as MyPr, Ht as GH_SEGMENT, It as decisionAsIfApprovalRequired, J as MyPrLaneEntry, K as MyPrKeepMergeableRequest, L as SshSignRequest, Mt as TeamReviewThreadCommentsResponse, Nt as TeamReviewThreadResult, O as SESSION_NAME_RULE_TEXT, Ot as TeamReviewCompareFiles, Pt as TeamReviewThreadsRepository, Q as MyPrMergeStateResponse, Qt as MERGEABLE_LIVE_STATES, Rt as hasStandingViewerApproval, S as ConversationQuestion, St as ReviewFinding, T as SESSION_DOC_BODY_CAP_BYTES, Tt as ReviewVerdict, U as MyPrAutoRebase, Ut as NODE_ID_RE, V as LinkedPr, Vt as shortSha, W as MyPrCheckContext, Wt as REPO_SLUG_RE, X as MyPrMergeRequest, Xt as BADGE_LABELS, Y as MyPrMergeMethod, Zt as KILLABLE_STATES, _ as COHERENCE_HOOKS_INACTIVE, _t as PostingPlan, at as MyPrsState, b as CONVERSATION_TOOL_RESULT_HOOK_EVENT, bt as ReviewComment, dt as DECIDING_REVIEW_STATES, en as STATES, ft as EarlierReview, gt as PostedReviewEvent, ht as GithubReviewState, i as ASK_USER_QUESTION_TOOL_NAME, it as MyPrsSnapshot, j as SSH_SIGN_BODY_CAP_BYTES, jt as TeamReviewStatus, k as SHOWN_FILE_CAP_BYTES, kt as TeamReviewResolveResponse, nt as MyPrThreadNode, pt as FindingSeverity, r as AGENT_URL_ENV, rt as MyPrThreadsResponse, ut as CommitSha, v as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, vt as PrDetail, wt as ReviewThreadId, xt as ReviewDraft, y as CONVERSATION_PERMISSION_HOOK_EVENT, z as TaskTitle } from "./session-BQaAlkib.js";
|
|
6
6
|
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";
|
|
7
|
-
import { At as MAX_RAW_LINE_CHARS, B as MinedPrReviewData, Bt as PLAN_TOOL_NAME, Ct as CommunityState, D as FeatureHintState, E as pullRequestKeyFromReference, F as BenchmarkRun, Ft as changeMapFactId, G as GithubPrsFrame, Gt as GithubIssuePullRequestsRepository, H as GithubPrDetailNode, Ht as PlanRevision, I as BenchmarkStatus, It as PLAN_BODY_CAP_BYTES, J as WorkflowLabelName, Jt as IssueUpdate, K as comparablePrKey, Kt as GithubIssueResponse, L as BenchmarkSuite, Lt as PLAN_HOOK_EVENT, M as BenchmarkCase, Mt as TraceRecord, N as BenchmarkId, Nt as CoherenceJournalOutput, O as HINT_FEATURES, Ot as UpdateJournal, P as BenchmarkJudgement, Pt as ChangeMap, Qt as issuePullRequestStateFromGithub, R as CommitComparison, Rt as PLAN_HOOK_OUTPUT_MAX_CHARS, St as CommunityItem, Tt as DISCORD_CHANNEL_NAME_RE, U as GithubPrKey, Ut as parseExitPlanModeHookPayload, V as PrCheckoutCaseInput, Vt as PlanDecision, W as GithubPrLightSearchNode, Wt as planTitle, X as WorkflowsState, Xt as IssuesState, Y as WorkflowsSettings, Yt as IssuesSearchResponse, Zt as IssuesStatus, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, bt as CommunityActionRequest, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, h as CHANGES_POLL_INTERVAL_MS, ht as USAGE_INTEGER_RANGES, j as BenchmarkActionRequest, jt as TraceCheckpoint, k as HINT_VIEW_BY_FEATURE, kt as SessionSetup, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_VENDOR_KEYS, q as WorkflowCommentBody, qt as IssueKey, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CONTROL_FRAME_MAX_BYTES, wt as CommunityVerdict, xt as CommunityDraft, y as ClientMessage, z as MergedPrListing, zt as PLAN_RESULT_HOOK_EVENT } from "./config-
|
|
7
|
+
import { At as MAX_RAW_LINE_CHARS, B as MinedPrReviewData, Bt as PLAN_TOOL_NAME, Ct as CommunityState, D as FeatureHintState, E as pullRequestKeyFromReference, F as BenchmarkRun, Ft as changeMapFactId, G as GithubPrsFrame, Gt as GithubIssuePullRequestsRepository, H as GithubPrDetailNode, Ht as PlanRevision, I as BenchmarkStatus, It as PLAN_BODY_CAP_BYTES, J as WorkflowLabelName, Jt as IssueUpdate, K as comparablePrKey, Kt as GithubIssueResponse, L as BenchmarkSuite, Lt as PLAN_HOOK_EVENT, M as BenchmarkCase, Mt as TraceRecord, N as BenchmarkId, Nt as CoherenceJournalOutput, O as HINT_FEATURES, Ot as UpdateJournal, P as BenchmarkJudgement, Pt as ChangeMap, Qt as issuePullRequestStateFromGithub, R as CommitComparison, Rt as PLAN_HOOK_OUTPUT_MAX_CHARS, St as CommunityItem, Tt as DISCORD_CHANNEL_NAME_RE, U as GithubPrKey, Ut as parseExitPlanModeHookPayload, V as PrCheckoutCaseInput, Vt as PlanDecision, W as GithubPrLightSearchNode, Wt as planTitle, X as WorkflowsState, Xt as IssuesState, Y as WorkflowsSettings, Yt as IssuesSearchResponse, Zt as IssuesStatus, _ as CLIENT_LOG_TEXT_MAX_CHARS, a as ConfigUpdate, bt as CommunityActionRequest, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, h as CHANGES_POLL_INTERVAL_MS, ht as USAGE_INTEGER_RANGES, j as BenchmarkActionRequest, jt as TraceCheckpoint, k as HINT_VIEW_BY_FEATURE, kt as SessionSetup, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_VENDOR_KEYS, q as WorkflowCommentBody, qt as IssueKey, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CONTROL_FRAME_MAX_BYTES, wt as CommunityVerdict, xt as CommunityDraft, y as ClientMessage, z as MergedPrListing, zt as PLAN_RESULT_HOOK_EVENT } from "./config-msD87zbt.js";
|
|
8
8
|
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-CmWSbar1.js";
|
|
9
|
-
import { A as parseRefinedTaskTitle, B as shouldAdoptReportedResumeId, C as extractAiTitle, D as isSelfWakePrompt, E as extractPromptTaskTitle, F as RESUME_ID_RE, G as isAutoNameOf, H as encodeProjectDir, I as isConversationReplacedAtStartup, K as nextSuggestedName, L as pickAutoResume, M as resolveTaskTitle, N as seedTaskTitleSources, O as isSubstantivePrompt, P as AUTO_CONTINUE_PROMPT, R as resolveResumeTarget, S as decideTaskTitleRefinement, T as extractOscTaskTitle, U as listRepoConversations, V as claudeProjectsDir, W as listRepoWorktreePaths, _ as projectReviews, a as decideAgentRequest, b as chooseRefinedSessionName, c as describeChildEndNote, d as describeRoleRefusal, f as describeUnpushedCloseRefusal, g as projectReviewDetail, h as projectMyPrs, i as checkAgentReply, j as resolveRefocusTaskTitle, k as parseRefinedSessionName, l as describeKeptChildAttention, m as parseAgentVerb, n as REFUSAL_REASON, o as decideSpawnAllowance, s as deriveChildSessionName, u as describePushLanding, v as buildPersistedTaskTitle, w as extractHookTaskTitle, x as cleanTaskPrompt, y as buildTaskTitleRefinementPrompt, z as resumePromptFor } from "./agent-api-core-
|
|
9
|
+
import { A as parseRefinedTaskTitle, B as shouldAdoptReportedResumeId, C as extractAiTitle, D as isSelfWakePrompt, E as extractPromptTaskTitle, F as RESUME_ID_RE, G as isAutoNameOf, H as encodeProjectDir, I as isConversationReplacedAtStartup, K as nextSuggestedName, L as pickAutoResume, M as resolveTaskTitle, N as seedTaskTitleSources, O as isSubstantivePrompt, P as AUTO_CONTINUE_PROMPT, R as resolveResumeTarget, S as decideTaskTitleRefinement, T as extractOscTaskTitle, U as listRepoConversations, V as claudeProjectsDir, W as listRepoWorktreePaths, _ as projectReviews, a as decideAgentRequest, b as chooseRefinedSessionName, c as describeChildEndNote, d as describeRoleRefusal, f as describeUnpushedCloseRefusal, g as projectReviewDetail, h as projectMyPrs, i as checkAgentReply, j as resolveRefocusTaskTitle, k as parseRefinedSessionName, l as describeKeptChildAttention, m as parseAgentVerb, n as REFUSAL_REASON, o as decideSpawnAllowance, s as deriveChildSessionName, u as describePushLanding, v as buildPersistedTaskTitle, w as extractHookTaskTitle, x as cleanTaskPrompt, y as buildTaskTitleRefinementPrompt, z as resumePromptFor } from "./agent-api-core-DAAWtXVD.js";
|
|
10
10
|
import { a as rawTextOr, i as positiveNumberOr, n as isRecord, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
|
|
11
11
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-D4rz3ygs.js";
|
|
12
12
|
import { n as checkGuardrailsDependencies, t as allowGuardedSpawn } from "./guardrails-deps-BfZSPpNs.js";
|
|
@@ -15,19 +15,19 @@ import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
|
15
15
|
import { t as HOOK_VIA_GUARDRAILS_PROXY_ENV } from "./guardrails-proxy-core-BI3rdY-m.js";
|
|
16
16
|
import { n as refocusReplyFor } from "./refocus-core-CwP_KIcU.js";
|
|
17
17
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
18
|
-
import { i as saneYoloFiles } from "./sane-yolo-
|
|
18
|
+
import { i as saneYoloFiles } from "./sane-yolo-DHs0dZTW.js";
|
|
19
19
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
20
20
|
import { a as readPageTitle, i as filesAfterRetention, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, t as SHOWN_SNIFF_BYTES } from "./shown-files-core-Obw4gbqC.js";
|
|
21
21
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
22
22
|
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, 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-AKRVPqG1.js";
|
|
23
|
-
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-
|
|
24
|
-
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-
|
|
25
|
-
import { $ as kimiHomes, A as framePathPaste, B as planContiguousRead, C as pickNewestPublished, Ct as vendorUsageEntry, D as buildUploadFilename, E as MAX_UPLOAD_BYTES, F as TRACE_TAIL_SCAN_BYTES, G as codexRootCandidates, H as withCommittedOffset, I as committedOffsetFromTraceTailOrNull, J as decideFileRead, K as codexSessionIdFromPath, L as completeLineBytes, M as isSafePathSegment, N as planUploadRetention, O as decideUploadType, P as MAX_TRANSCRIPT_READ_BYTES, Q as isUsageFile, R as containmentRefusalReason, S as parseResolvedSha, St as totalTokensOf$1, T as openContainedFile, Tt as claudeCode, U as codexFallbackRoots, V as resumeOffsetFrom, W as codexHomes, X as expandTilde, Y as dedupeCodexFiles, Z as grokHomes, _ as isCheckFresh, _t as isWithinGenerationRecencyWindow, a as describeAgentResolvability, at as shouldEvaluateDespiteIoFailures, b as parseRegistryDeprecation, bt as parseUsageLine, c as isKnownAgentId, ct as kimiDedupIdentity, d as resolveAdapter, dt as dedupKeys, et as passOutcome, f as setCustomAgents, ft as emptyTotals, g as decideUpdateStatus, gt as identityFromRelPath, h as decideInstallFlavor, ht as foldReplacementIntoGenerationRollup, i as customAgentFingerprint, it as sessionsRootCandidates, j as imageMimeForUploadFilename, k as exceedsUploadCap, l as listAgentIds, lt as parseKimiUsageLine, m as readHostCodexVersion, mt as foldEntryIntoGenerationRollup, n as cachedAgentResolvability, nt as resolveProjectsDirs, o as getAdapter, ot as shouldPersistWarehouse, p as codex, pt as expandAdvisorIterations, q as continuationDelayMs, r as commandFor, rt as scopedClaudeRoots, s as hookProfileOf, st as splitLines, t as DEFAULT_AGENT_ID$1, tt as projectDirCandidates, u as resetCommandCache, ut as addEntryToTotals, v as normalizeSha, vt as mergeGenerationRollups, w as shortSha$1, wt as HOOK_TOOLS, x as parseRegistryLatest, xt as shouldReplace, y as normalizeUpdateChannel, yt as parseJsonLine, z as isOversizedPartialLine } from "./adapters-
|
|
23
|
+
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-DcjnatyI.js";
|
|
24
|
+
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-DQkyslls.js";
|
|
25
|
+
import { $ as kimiHomes, A as framePathPaste, B as planContiguousRead, C as pickNewestPublished, Ct as vendorUsageEntry, D as buildUploadFilename, E as MAX_UPLOAD_BYTES, F as TRACE_TAIL_SCAN_BYTES, G as codexRootCandidates, H as withCommittedOffset, I as committedOffsetFromTraceTailOrNull, J as decideFileRead, K as codexSessionIdFromPath, L as completeLineBytes, M as isSafePathSegment, N as planUploadRetention, O as decideUploadType, P as MAX_TRANSCRIPT_READ_BYTES, Q as isUsageFile, R as containmentRefusalReason, S as parseResolvedSha, St as totalTokensOf$1, T as openContainedFile, Tt as claudeCode, U as codexFallbackRoots, V as resumeOffsetFrom, W as codexHomes, X as expandTilde, Y as dedupeCodexFiles, Z as grokHomes, _ as isCheckFresh, _t as isWithinGenerationRecencyWindow, a as describeAgentResolvability, at as shouldEvaluateDespiteIoFailures, b as parseRegistryDeprecation, bt as parseUsageLine, c as isKnownAgentId, ct as kimiDedupIdentity, d as resolveAdapter, dt as dedupKeys, et as passOutcome, f as setCustomAgents, ft as emptyTotals, g as decideUpdateStatus, gt as identityFromRelPath, h as decideInstallFlavor, ht as foldReplacementIntoGenerationRollup, i as customAgentFingerprint, it as sessionsRootCandidates, j as imageMimeForUploadFilename, k as exceedsUploadCap, l as listAgentIds, lt as parseKimiUsageLine, m as readHostCodexVersion, mt as foldEntryIntoGenerationRollup, n as cachedAgentResolvability, nt as resolveProjectsDirs, o as getAdapter, ot as shouldPersistWarehouse, p as codex, pt as expandAdvisorIterations, q as continuationDelayMs, r as commandFor, rt as scopedClaudeRoots, s as hookProfileOf, st as splitLines, t as DEFAULT_AGENT_ID$1, tt as projectDirCandidates, u as resetCommandCache, ut as addEntryToTotals, v as normalizeSha, vt as mergeGenerationRollups, w as shortSha$1, wt as HOOK_TOOLS, x as parseRegistryLatest, xt as shouldReplace, y as normalizeUpdateChannel, yt as parseJsonLine, z as isOversizedPartialLine } from "./adapters-CHah6aJ0.js";
|
|
26
26
|
import { c as releaseUnheldKimiHomeSecrets, d as sessionIdOfLockFile, f as trashSessionTempFolderOnceUnheld, i as kimiHomeLinkRefusal, l as createHeldSessionTempFolder, n as generatedKimiHomePath, o as realKimiHome, p as definesHooksOutsideArrayTables, u as releaseSessionLock } from "./kimi-home-4-aMoqJC.js";
|
|
27
|
-
import { t as kimi } from "./kimi-
|
|
27
|
+
import { t as kimi } from "./kimi-gqX-CtP3.js";
|
|
28
28
|
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";
|
|
29
|
-
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-
|
|
30
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
29
|
+
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-BmUDD1WE.js";
|
|
30
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DxfzdITm.js";
|
|
31
31
|
import { createRequire } from "node:module";
|
|
32
32
|
import fs, { readFileSync, readlinkSync } from "node:fs";
|
|
33
33
|
import path, { join, resolve } from "node:path";
|
|
@@ -15028,7 +15028,7 @@ function createSessionOutput(options) {
|
|
|
15028
15028
|
}
|
|
15029
15029
|
//#endregion
|
|
15030
15030
|
//#region server/hook-tools.ts
|
|
15031
|
-
var
|
|
15031
|
+
var writtenPolicyByHome = /* @__PURE__ */ new Map();
|
|
15032
15032
|
var warnedTools = /* @__PURE__ */ new Set();
|
|
15033
15033
|
function currentGlimmervoidHome() {
|
|
15034
15034
|
return glimmervoidHomeDir(os.homedir(), process.env);
|
|
@@ -15036,9 +15036,11 @@ function currentGlimmervoidHome() {
|
|
|
15036
15036
|
function saneYoloHomeDir() {
|
|
15037
15037
|
return path.join(currentGlimmervoidHome(), "sane-yolo");
|
|
15038
15038
|
}
|
|
15039
|
-
function writeSaneYoloPolicy(homeDir, glimmervoidHome = currentGlimmervoidHome()) {
|
|
15040
|
-
|
|
15041
|
-
|
|
15039
|
+
function writeSaneYoloPolicy(homeDir, unreadablePaths, glimmervoidHome = currentGlimmervoidHome()) {
|
|
15040
|
+
const policyFiles = saneYoloFiles(path.join(glimmervoidHome, GUARDRAILS_TEMP_FOLDER), unreadablePaths);
|
|
15041
|
+
const policyKey = JSON.stringify(policyFiles);
|
|
15042
|
+
if (writtenPolicyByHome.get(homeDir) === policyKey) return;
|
|
15043
|
+
for (const [relativePath, contents] of Object.entries(policyFiles)) {
|
|
15042
15044
|
const filePath = path.join(homeDir, relativePath);
|
|
15043
15045
|
const serialized = `${JSON.stringify(contents, null, 2)}\n`;
|
|
15044
15046
|
fs.mkdirSync(path.dirname(filePath), {
|
|
@@ -15053,7 +15055,7 @@ function writeSaneYoloPolicy(homeDir, glimmervoidHome = currentGlimmervoidHome()
|
|
|
15053
15055
|
}
|
|
15054
15056
|
if (previous !== serialized) writeTextAtomicSync(filePath, serialized, { mode: 384 });
|
|
15055
15057
|
}
|
|
15056
|
-
|
|
15058
|
+
writtenPolicyByHome.set(homeDir, policyKey);
|
|
15057
15059
|
}
|
|
15058
15060
|
function warnOnce(toolId, message, warn) {
|
|
15059
15061
|
if (warnedTools.has(toolId)) return;
|
|
@@ -15069,7 +15071,7 @@ function resolveHookTools(config, { warn = console.warn } = {}) {
|
|
|
15069
15071
|
return hookTools;
|
|
15070
15072
|
}
|
|
15071
15073
|
try {
|
|
15072
|
-
writeSaneYoloPolicy(saneYoloHomeDir());
|
|
15074
|
+
writeSaneYoloPolicy(saneYoloHomeDir(), config.saneYoloUnreadablePaths ?? []);
|
|
15073
15075
|
hookTools.push({
|
|
15074
15076
|
id: "saneYolo",
|
|
15075
15077
|
binPath
|
|
@@ -15079,8 +15081,11 @@ function resolveHookTools(config, { warn = console.warn } = {}) {
|
|
|
15079
15081
|
}
|
|
15080
15082
|
return hookTools;
|
|
15081
15083
|
}
|
|
15082
|
-
function resolveRequiredSaneYoloHookTools({ resolve = resolveHookTools } = {}) {
|
|
15083
|
-
const hookTools = resolve({
|
|
15084
|
+
function resolveRequiredSaneYoloHookTools(unreadablePaths, { resolve = resolveHookTools } = {}) {
|
|
15085
|
+
const hookTools = resolve({
|
|
15086
|
+
saneYolo: true,
|
|
15087
|
+
saneYoloUnreadablePaths: unreadablePaths
|
|
15088
|
+
});
|
|
15084
15089
|
return hookTools.some((tool) => tool.id === "saneYolo") ? hookTools : null;
|
|
15085
15090
|
}
|
|
15086
15091
|
//#endregion
|
|
@@ -20533,7 +20538,7 @@ function laneAgentArgs({ isClaude, isWrapped, isCodex, extraArgs, model, posture
|
|
|
20533
20538
|
if (isCodex && !isWrapped) return [...UNWRAPPED_CODEX_GUARDRAILS_ARGS, ...extraArgs];
|
|
20534
20539
|
return [...extraArgs];
|
|
20535
20540
|
}
|
|
20536
|
-
function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDataClients = () => {}, hookRouter = null, getHookPort = null, spawnGate = null, replayBufferKB = void 0, recordLane = null, laneName, allowTools = [], createSession = (options) => new Session(options), settingsPermissions, spawnEnv = null, prepareGuardrails = prepareGuardrailsLaunch, guardrailsRefusal = allowGuardedSpawn, prepareMcp = prepareLaneMcp, platform = process.platform }) {
|
|
20541
|
+
function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDataClients = () => {}, hookRouter = null, getHookPort = null, spawnGate = null, replayBufferKB = void 0, recordLane = null, laneName, getSaneYoloUnreadablePaths, allowTools = [], createSession = (options) => new Session(options), settingsPermissions, spawnEnv = null, prepareGuardrails = prepareGuardrailsLaunch, guardrailsRefusal = allowGuardedSpawn, prepareMcp = prepareLaneMcp, platform = process.platform }) {
|
|
20537
20542
|
return async function spawnLaneSession({ id, name, prompt, cwd, agent = DEFAULT_AGENT_ID$1, extraArgs = [], model = null, signal = null, onOutput, readablePaths = [] }) {
|
|
20538
20543
|
const isCodex = agent === "codex";
|
|
20539
20544
|
const isKimi = agent === KIMI_AGENT_ID$1;
|
|
@@ -20543,7 +20548,7 @@ function createLaneSpawn({ sessions = /* @__PURE__ */ new Map(), closeSessionDat
|
|
|
20543
20548
|
if (!isWrapped && (hasClaudeShell || isKimi)) throw new Error(`${laneName} lane needs the sandbox runtime, which does not run on ${platform}`);
|
|
20544
20549
|
const guardrailsRefusalReason = isWrapped ? guardrailsRefusal() : null;
|
|
20545
20550
|
if (guardrailsRefusalReason !== null) throw new Error(guardrailsRefusalReason);
|
|
20546
|
-
const guardHookTools = hasClaudeShell && hookRouter ? resolveRequiredSaneYoloHookTools() ?? [] : null;
|
|
20551
|
+
const guardHookTools = hasClaudeShell && hookRouter ? resolveRequiredSaneYoloHookTools(getSaneYoloUnreadablePaths()) ?? [] : null;
|
|
20547
20552
|
if (guardHookTools && !guardHookTools.some((tool) => tool.id === "saneYolo")) throw new Error(GUARD_HOOK_UNAVAILABLE_ERROR);
|
|
20548
20553
|
await runLaneSession();
|
|
20549
20554
|
async function runLaneSession() {
|
|
@@ -27327,7 +27332,7 @@ function createTeamReviewSpawn({ reviewSessions, closeSessionDataClients, hookRo
|
|
|
27327
27332
|
laneArgs: extraClaudeArgs,
|
|
27328
27333
|
agent: agent ?? DEFAULT_AGENT_ID$1
|
|
27329
27334
|
}) : null;
|
|
27330
|
-
const sharedHookTools = hookToolConfig ? resolveHookTools$2(
|
|
27335
|
+
const sharedHookTools = hookToolConfig ? resolveHookTools$2(hookToolConfig) : [];
|
|
27331
27336
|
const sess = makeSession({
|
|
27332
27337
|
id,
|
|
27333
27338
|
name,
|
|
@@ -27797,6 +27802,7 @@ function createTeamReviewWiring({ config, store, reviewSessions, closeSessionDat
|
|
|
27797
27802
|
spawnReview: trackReview,
|
|
27798
27803
|
judgeThread: createThreadJudge(createLaneSpawn({
|
|
27799
27804
|
laneName: "team-review",
|
|
27805
|
+
getSaneYoloUnreadablePaths: () => config.saneYoloUnreadablePaths ?? [],
|
|
27800
27806
|
sessions: reviewSessions,
|
|
27801
27807
|
closeSessionDataClients,
|
|
27802
27808
|
hookRouter,
|
|
@@ -33504,7 +33510,10 @@ function createRadarWiring({ config, investigationSessions, closeSessionDataClie
|
|
|
33504
33510
|
...facts,
|
|
33505
33511
|
readablePaths: [...facts.readablePaths, ...laneMcp?.readablePaths ?? []]
|
|
33506
33512
|
}, access), laneMcp?.posture), guardrails);
|
|
33507
|
-
const sharedHookTools = resolveHookTools$1({
|
|
33513
|
+
const sharedHookTools = resolveHookTools$1({
|
|
33514
|
+
saneYolo: config.saneYolo,
|
|
33515
|
+
saneYoloUnreadablePaths: config.saneYoloUnreadablePaths
|
|
33516
|
+
});
|
|
33508
33517
|
const sess = makeSession({
|
|
33509
33518
|
id,
|
|
33510
33519
|
name,
|
|
@@ -34996,10 +35005,11 @@ function createCommunityRunner({ spawnDependencies, homeDir, getSettings }) {
|
|
|
34996
35005
|
}
|
|
34997
35006
|
};
|
|
34998
35007
|
}
|
|
34999
|
-
function createDiscordSource(api, settings, spawnDependencies) {
|
|
35008
|
+
function createDiscordSource(api, settings, spawnDependencies, getSaneYoloUnreadablePaths) {
|
|
35000
35009
|
if (!spawnDependencies || settings.discordChannels.length === 0) return null;
|
|
35001
35010
|
const judgeSpawn = createLaneSpawn({
|
|
35002
35011
|
laneName: COMMUNITY_LANE_ID,
|
|
35012
|
+
getSaneYoloUnreadablePaths,
|
|
35003
35013
|
sessions: spawnDependencies.investigationSessions,
|
|
35004
35014
|
closeSessionDataClients: spawnDependencies.closeSessionDataClients,
|
|
35005
35015
|
hookRouter: spawnDependencies.hookRouter,
|
|
@@ -35068,7 +35078,7 @@ function createCommunityWiring({ config, broadcast = () => {}, homeDir = glimmer
|
|
|
35068
35078
|
return createCommunityPoller({
|
|
35069
35079
|
intervalMinutes: settings.intervalMinutes,
|
|
35070
35080
|
queryForum: (sinceIso) => hogQLRows(api, settings.projectId, forumQuery(), { since: sinceIso }),
|
|
35071
|
-
discord: createDiscordSource(api, settings, spawnDependencies),
|
|
35081
|
+
discord: createDiscordSource(api, settings, spawnDependencies, () => config.saneYoloUnreadablePaths ?? []),
|
|
35072
35082
|
readState: stateIo.readState,
|
|
35073
35083
|
writeState: stateIo.writeState,
|
|
35074
35084
|
runItem,
|
|
@@ -42249,7 +42259,8 @@ function createBackendLanes(dependencies) {
|
|
|
42249
42259
|
recordLane,
|
|
42250
42260
|
replayBufferKB: config.replayBufferKB,
|
|
42251
42261
|
laneName: "benchmark",
|
|
42252
|
-
guardrailsRefusal
|
|
42262
|
+
guardrailsRefusal,
|
|
42263
|
+
getSaneYoloUnreadablePaths: () => configStore.config.saneYoloUnreadablePaths ?? []
|
|
42253
42264
|
}),
|
|
42254
42265
|
credentials: claudeCredentials,
|
|
42255
42266
|
claudeCommand,
|
|
@@ -42300,7 +42311,8 @@ function createBackendLanes(dependencies) {
|
|
|
42300
42311
|
replayBufferKB: config.replayBufferKB,
|
|
42301
42312
|
laneName: "task-title",
|
|
42302
42313
|
allowTools: TASK_TITLE_LANE_TOOLS,
|
|
42303
|
-
guardrailsRefusal
|
|
42314
|
+
guardrailsRefusal,
|
|
42315
|
+
getSaneYoloUnreadablePaths: () => configStore.config.saneYoloUnreadablePaths ?? []
|
|
42304
42316
|
})
|
|
42305
42317
|
});
|
|
42306
42318
|
const usage = createUsageWiring({
|
|
@@ -50697,10 +50709,10 @@ function createBackendSessionRuntime(dependencies) {
|
|
|
50697
50709
|
getUserHooks: (projectId) => hooksForProject(dependencies.config.hooks, projectId),
|
|
50698
50710
|
sessionGuardrails: createSessionGuardrails({
|
|
50699
50711
|
getSettings: () => {
|
|
50700
|
-
const { guardrails } = dependencies.configStore.config;
|
|
50712
|
+
const { guardrails, saneYoloUnreadablePaths } = dependencies.configStore.config;
|
|
50701
50713
|
return {
|
|
50702
50714
|
blockedPaths: guardrails?.blockedPaths ?? DEFAULT_CONFIG.guardrails.blockedPaths,
|
|
50703
|
-
unreadablePaths:
|
|
50715
|
+
unreadablePaths: saneYoloUnreadablePaths ?? DEFAULT_CONFIG.saneYoloUnreadablePaths
|
|
50704
50716
|
};
|
|
50705
50717
|
},
|
|
50706
50718
|
uploadsRoot: configSiblingPath(dependencies.configStore.configPath, "uploads"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { l as resolveConfigPath } from "./config-store-
|
|
3
|
-
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-
|
|
2
|
+
import { l as resolveConfigPath } from "./config-store-DcjnatyI.js";
|
|
3
|
+
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-BmUDD1WE.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -2,7 +2,7 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { l as equalsIgnoringCaseOnWindows } from "./runtime-paths-D_ZjJLE0.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-DcjnatyI.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -5,7 +5,7 @@ var SANE_YOLO_HOST_FLAGS = { [KIMI_SANE_YOLO_FLAVOR]: "--kimi-code" };
|
|
|
5
5
|
function saneYoloHostFlag(agentFlavor) {
|
|
6
6
|
return SANE_YOLO_HOST_FLAGS[agentFlavor] ?? "--grok-build";
|
|
7
7
|
}
|
|
8
|
-
function saneYoloPolicy(guardrailsTempRoot) {
|
|
8
|
+
function saneYoloPolicy(guardrailsTempRoot, unreadablePaths) {
|
|
9
9
|
return {
|
|
10
10
|
version: 1,
|
|
11
11
|
destructive_command_protection: {
|
|
@@ -18,7 +18,10 @@ function saneYoloPolicy(guardrailsTempRoot) {
|
|
|
18
18
|
},
|
|
19
19
|
allow_paths: [guardrailsTempRoot]
|
|
20
20
|
},
|
|
21
|
-
secret_protection: {
|
|
21
|
+
secret_protection: {
|
|
22
|
+
enabled: true,
|
|
23
|
+
deny_paths: [...unreadablePaths]
|
|
24
|
+
}
|
|
22
25
|
};
|
|
23
26
|
}
|
|
24
27
|
var SANE_YOLO_RULES = {
|
|
@@ -100,9 +103,9 @@ var SANE_YOLO_INFRA_RULEBOOK = {
|
|
|
100
103
|
}
|
|
101
104
|
]
|
|
102
105
|
};
|
|
103
|
-
function saneYoloFiles(guardrailsTempRoot) {
|
|
106
|
+
function saneYoloFiles(guardrailsTempRoot, unreadablePaths) {
|
|
104
107
|
return {
|
|
105
|
-
"policy.json": saneYoloPolicy(guardrailsTempRoot),
|
|
108
|
+
"policy.json": saneYoloPolicy(guardrailsTempRoot, unreadablePaths),
|
|
106
109
|
"rules/rule.json": SANE_YOLO_RULES,
|
|
107
110
|
"rules/infra/rulebook.json": SANE_YOLO_INFRA_RULEBOOK
|
|
108
111
|
};
|