glimmervoid 0.47.1-next.256 → 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-CJcD56oG.js → adapters-CHah6aJ0.js} +7 -7
- package/dist/chunks/{adapters-CpMmp79m.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-BvHppwtG.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-Co0r53k-.js → grok-6_qW-UXZ.js} +1 -1
- package/dist/chunks/kimi-Bv6AgPnN.js +1 -0
- package/dist/chunks/{kimi-B35I7Rlu.js → kimi-gqX-CtP3.js} +12 -4
- package/dist/chunks/{main-8l7jEAEj.js → main-fr5D_OG4.js} +43 -34
- 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-DSyFqbVE.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-Dh1MZR4M.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-nObsHOF2.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-DgbFgKGU.js → benchmark-panel-CWYOnjDG.js} +1 -1
- package/dist/client/assets/benchmark-panel-CWYOnjDG.js.br +0 -0
- package/dist/client/assets/{celebration-player-Apvk7V6W.js → celebration-player-vRRn5MpO.js} +1 -1
- package/dist/client/assets/celebration-player-vRRn5MpO.js.br +0 -0
- package/dist/client/assets/{community-panel-Vgej12A3.js → community-panel-3bVIK6eq.js} +1 -1
- package/dist/client/assets/community-panel-3bVIK6eq.js.br +0 -0
- package/dist/client/assets/{dialogs-B8RKOX4n.js → dialogs-DL9A1wPJ.js} +1 -1
- package/dist/client/assets/dialogs-DL9A1wPJ.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-COELnIgo.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-C_dTSK8M.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-B1FQAjNR.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-CaIxvW6N.js → hooks-panel-CVSsMuW-.js} +1 -1
- package/dist/client/assets/hooks-panel-CVSsMuW-.js.br +0 -0
- package/dist/client/assets/{index-CkWcv96E.js → index-Cgs2aewN.js} +5 -5
- package/dist/client/assets/index-Cgs2aewN.js.br +0 -0
- package/dist/client/assets/{issues-panel-CBOMPC7_.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-Dy867XKL.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-CqzrxcX4.js → nyan-cat-R0kjqBLP.js} +1 -1
- package/dist/client/assets/nyan-cat-R0kjqBLP.js.br +0 -0
- package/dist/client/assets/{phone-shell-Dgw7VD_m.js → phone-shell-CkkBHjIW.js} +1 -1
- package/dist/client/assets/phone-shell-CkkBHjIW.js.br +0 -0
- package/dist/client/assets/{plan-face-yrLAF3sG.js → plan-face-DHCMYHpa.js} +1 -1
- package/dist/client/assets/plan-face-DHCMYHpa.js.br +0 -0
- package/dist/client/assets/{plan-render-C7ptYr08.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-CGys3K9B.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-CHCFBK2r.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-CowA6ntl.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-tASWu5g6.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-DxkMCPEg.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-xoaoFAFb.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-CtnfA03I.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-CceM5g0L.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-GYxTeioI.js → trace-panel-46IAbw1m.js} +1 -1
- package/dist/client/assets/trace-panel-46IAbw1m.js.br +0 -0
- package/dist/client/assets/{usage-panel-tFP3bvvU.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-BhmoA__R.js +0 -1
- package/dist/client/assets/alert-sound-nObsHOF2.js.br +0 -0
- package/dist/client/assets/benchmark-panel-DgbFgKGU.js.br +0 -0
- package/dist/client/assets/celebration-player-Apvk7V6W.js.br +0 -0
- package/dist/client/assets/community-panel-Vgej12A3.js.br +0 -0
- package/dist/client/assets/dialogs-B8RKOX4n.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-COELnIgo.js.br +0 -0
- package/dist/client/assets/feature-hint-C_dTSK8M.js.br +0 -0
- package/dist/client/assets/first-run-checklist-B1FQAjNR.js.br +0 -0
- package/dist/client/assets/hooks-panel-CaIxvW6N.js.br +0 -0
- package/dist/client/assets/index-CkWcv96E.js.br +0 -0
- package/dist/client/assets/issues-panel-CBOMPC7_.js.br +0 -0
- package/dist/client/assets/my-prs-panel-Dy867XKL.js.br +0 -0
- package/dist/client/assets/nyan-cat-CqzrxcX4.js.br +0 -0
- package/dist/client/assets/phone-shell-Dgw7VD_m.js.br +0 -0
- package/dist/client/assets/plan-face-yrLAF3sG.js.br +0 -0
- package/dist/client/assets/plan-render-C7ptYr08.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-CGys3K9B.js.br +0 -0
- package/dist/client/assets/radar-panel-CHCFBK2r.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CowA6ntl.js.br +0 -0
- package/dist/client/assets/resume-dialog-tASWu5g6.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DxkMCPEg.js.br +0 -0
- package/dist/client/assets/settings-panel-xoaoFAFb.js.br +0 -0
- package/dist/client/assets/shown-lightbox-CtnfA03I.js.br +0 -0
- package/dist/client/assets/team-review-panel-CceM5g0L.js.br +0 -0
- package/dist/client/assets/trace-panel-GYxTeioI.js.br +0 -0
- package/dist/client/assets/usage-panel-tFP3bvvU.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";
|
|
@@ -237,7 +237,7 @@ var HOOK_TOOLS = {
|
|
|
237
237
|
...saneYoloEnv(homeDir)
|
|
238
238
|
}),
|
|
239
239
|
claudeEntry: (tool) => ({
|
|
240
|
-
matcher: "Bash|PowerShell|Monitor",
|
|
240
|
+
matcher: "Bash|PowerShell|Monitor|Read|Edit|Write|MultiEdit|NotebookEdit|Glob|Grep",
|
|
241
241
|
hooks: [{
|
|
242
242
|
type: "command",
|
|
243
243
|
command: `node "${toForwardSlashes(tool.binPath)}" hook --coding-cli`
|
|
@@ -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";
|
|
@@ -29,7 +29,15 @@ var HOOK_EVENTS = Object.freeze([
|
|
|
29
29
|
var TOOL_EVENTS = Object.freeze(["PreToolUse", "PostToolUse"]);
|
|
30
30
|
var SUBAGENT_TOOL_NAME = "Agent";
|
|
31
31
|
var MATCHED_TOOL_NAMES = Object.freeze([ASK_USER_QUESTION_TOOL_NAME, SUBAGENT_TOOL_NAME]);
|
|
32
|
-
var
|
|
32
|
+
var SANE_YOLO_TOOL_NAMES = Object.freeze([
|
|
33
|
+
"Bash",
|
|
34
|
+
"Read",
|
|
35
|
+
"ReadMediaFile",
|
|
36
|
+
"Write",
|
|
37
|
+
"Edit",
|
|
38
|
+
"Glob",
|
|
39
|
+
"Grep"
|
|
40
|
+
]);
|
|
33
41
|
var envProfile = {
|
|
34
42
|
scrub: [],
|
|
35
43
|
set: { KIMI_CODE_NO_AUTO_UPDATE: "1" }
|
|
@@ -121,7 +129,7 @@ function expectedHooksBlock() {
|
|
|
121
129
|
matchedToolNames: MATCHED_TOOL_NAMES,
|
|
122
130
|
saneYolo: {
|
|
123
131
|
relayPath: HOOK_TOOL_RELAY_PATH,
|
|
124
|
-
toolNames:
|
|
132
|
+
toolNames: SANE_YOLO_TOOL_NAMES,
|
|
125
133
|
agentFlavor: KIMI_SANE_YOLO_FLAVOR
|
|
126
134
|
}
|
|
127
135
|
});
|