glimmervoid 0.47.1-next.260 → 0.47.1-next.261
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 +14 -14
- package/dist/chunks/{adapters-M-cwyHEu.js → adapters-BcdxBJrK.js} +10 -16
- package/dist/chunks/{adapters-B_uPE1Et.js → adapters-Cq3sq9_D.js} +1 -1
- package/dist/chunks/{agent-api-cli-D1tdAPBd.js → agent-api-cli-BQ9AWzLq.js} +1 -1
- package/dist/chunks/{agent-api-cli-BYnfsA7f.js → agent-api-cli-DPcLg3bI.js} +4 -4
- package/dist/chunks/{agent-api-core-DAAWtXVD.js → agent-api-core-D-5aezJr.js} +3 -3
- package/dist/chunks/{agent-setup-cli-C91eRDZ-.js → agent-setup-cli-BTC5SZ-Q.js} +1 -1
- package/dist/chunks/{build-channel-DQkyslls.js → build-channel-Cb8Y5B7_.js} +2 -2
- package/dist/chunks/{config-msD87zbt.js → config-C5FMUnaM.js} +2 -22
- package/dist/chunks/{config-store-DcjnatyI.js → config-store-CbHHLlY7.js} +18 -51
- package/dist/chunks/config-store-DMHBAMS-.js +1 -0
- package/dist/chunks/{git-version-D4rz3ygs.js → git-version-CgbF5-7t.js} +1 -1
- package/dist/chunks/{grok-wsZ9ME8i.js → grok-9BcIdXH_.js} +1 -1
- package/dist/chunks/{kimi-suU2c93F.js → kimi-0sSirxxH.js} +2 -2
- package/dist/chunks/kimi-DvRVJFxU.js +1 -0
- package/dist/chunks/{main-CFfuow_H.js → main-DnEif6TC.js} +5339 -5761
- package/dist/chunks/{pair-cli-Cg_6Os_Q.js → pair-cli-CgUfjYW6.js} +2 -2
- package/dist/chunks/{remote-config-BmUDD1WE.js → remote-config-aohcc-l3.js} +1 -1
- package/dist/chunks/{session-BQaAlkib.js → session-COI2_9Eq.js} +2 -13
- package/dist/chunks/{session-routes-CmWSbar1.js → session-routes-BrxM6k-v.js} +9 -33
- package/dist/chunks/{settings-cli-4uXnz8Uq.js → settings-cli-DE-3gv0R.js} +5 -5
- package/dist/chunks/{settings-readout-core-DxfzdITm.js → settings-readout-core-DnsXKNpc.js} +2 -2
- package/dist/chunks/{shown-files-core-Obw4gbqC.js → shown-files-core-CQeyRy9W.js} +1 -1
- package/dist/chunks/{spawn-env-Dwzij9eE.js → spawn-env-mgD54MHq.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-CsWQ5JZK.js → ssh-sign-cli-B00Hh_X-.js} +2 -2
- package/dist/client/assets/action-status-B1gT1JCK.js +1 -0
- package/dist/client/assets/action-status-B1gT1JCK.js.br +0 -0
- package/dist/client/assets/{alert-sound-D1n5diFX.js → alert-sound-C2-mZeNL.js} +1 -1
- package/dist/client/assets/alert-sound-C2-mZeNL.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-J5Jl7XAO.js → benchmark-panel-njN3YVaP.js} +1 -1
- package/dist/client/assets/benchmark-panel-njN3YVaP.js.br +0 -0
- package/dist/client/assets/{card-registry-BTYF9l0b.js → card-registry-xOaXCSXL.js} +1 -1
- package/dist/client/assets/card-registry-xOaXCSXL.js.br +0 -0
- package/dist/client/assets/{celebration-player-ghUpbHyM.js → celebration-player-BZrN8yg4.js} +1 -1
- package/dist/client/assets/celebration-player-BZrN8yg4.js.br +0 -0
- package/dist/client/assets/{community-panel-si57DlHN.js → community-panel-C1o92l5q.js} +1 -1
- package/dist/client/assets/community-panel-C1o92l5q.js.br +0 -0
- package/dist/client/assets/{control-ws-DS1pvNbe.js → control-ws-CmOs3MCv.js} +1 -1
- package/dist/client/assets/control-ws-CmOs3MCv.js.br +0 -0
- package/dist/client/assets/dialogs-PBl8O-4R.js +74 -0
- package/dist/client/assets/dialogs-PBl8O-4R.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-Bga5iZ_S.js → doc-editor-ui-ChdZVeTZ.js} +1 -1
- package/dist/client/assets/doc-editor-ui-ChdZVeTZ.js.br +0 -0
- package/dist/client/assets/{feature-hint-B5CcjCgp.js → feature-hint-Bp_XN05K.js} +1 -1
- package/dist/client/assets/feature-hint-Bp_XN05K.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-Dnr9YII7.js → first-run-checklist-DnvCvijN.js} +1 -1
- package/dist/client/assets/first-run-checklist-DnvCvijN.js.br +0 -0
- package/dist/client/assets/{hooks-panel-CcUGxEnN.js → hooks-panel-CuSGPfnh.js} +1 -1
- package/dist/client/assets/hooks-panel-CuSGPfnh.js.br +0 -0
- package/dist/client/assets/index-D3Qn-Gpw.js +78 -0
- package/dist/client/assets/index-D3Qn-Gpw.js.br +0 -0
- package/dist/client/assets/index-DHGkZCOH.css +2 -0
- package/dist/client/assets/index-DHGkZCOH.css.br +0 -0
- package/dist/client/assets/{issues-panel-CPJTbpxB.js → issues-panel-DPzD_uiu.js} +1 -1
- package/dist/client/assets/issues-panel-DPzD_uiu.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-NZ65g5Pb.js → my-prs-panel-DjCpDC6O.js} +1 -1
- package/dist/client/assets/my-prs-panel-DjCpDC6O.js.br +0 -0
- package/dist/client/assets/{nyan-cat-DpEJHm8S.js → nyan-cat-B5mOD_Ng.js} +1 -1
- package/dist/client/assets/nyan-cat-B5mOD_Ng.js.br +0 -0
- package/dist/client/assets/{phone-shell-Drcxnrxf.js → phone-shell-upbznUgo.js} +1 -1
- package/dist/client/assets/phone-shell-upbznUgo.js.br +0 -0
- package/dist/client/assets/{plan-face-ClrJp3Xw.js → plan-face-DYS6tmJt.js} +1 -1
- package/dist/client/assets/plan-face-DYS6tmJt.js.br +0 -0
- package/dist/client/assets/{plan-render-BJcqCYcy.js → plan-render-BiKsPFC1.js} +1 -1
- package/dist/client/assets/plan-render-BiKsPFC1.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-CKwNQUVc.js → pr-queue-columns-DR4D8r-k.js} +1 -1
- package/dist/client/assets/pr-queue-columns-DR4D8r-k.js.br +0 -0
- package/dist/client/assets/{radar-panel-BAiBZySi.js → radar-panel-DWe4snDi.js} +1 -1
- package/dist/client/assets/radar-panel-DWe4snDi.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-g805K6Ky.js → repo-roots-adder-YpvdWtDn.js} +1 -1
- package/dist/client/assets/repo-roots-adder-YpvdWtDn.js.br +0 -0
- package/dist/client/assets/{resume-dialog-opMb2a3h.js → resume-dialog-DdLqfQWG.js} +1 -1
- package/dist/client/assets/resume-dialog-DdLqfQWG.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-BT-cSS1L.js → review-queue-panel-mLURWjYB.js} +1 -1
- package/dist/client/assets/review-queue-panel-mLURWjYB.js.br +0 -0
- package/dist/client/assets/{session-tick-Cf8vKYL1.js → session-tick-Dco5WtNk.js} +1 -1
- package/dist/client/assets/session-tick-Dco5WtNk.js.br +0 -0
- package/dist/client/assets/settings-panel-DhINS4En.js +4 -0
- package/dist/client/assets/settings-panel-DhINS4En.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-Bh7_WCcT.js → shown-lightbox-BdPgIKWJ.js} +1 -1
- package/dist/client/assets/shown-lightbox-BdPgIKWJ.js.br +0 -0
- package/dist/client/assets/{team-review-panel-SHSiDoq0.js → team-review-panel-DAB0xU7c.js} +3 -3
- package/dist/client/assets/team-review-panel-DAB0xU7c.js.br +0 -0
- package/dist/client/assets/{trace-panel-Bn8Ix7Kw.js → trace-panel-DKWsPqwF.js} +1 -1
- package/dist/client/assets/trace-panel-DKWsPqwF.js.br +0 -0
- package/dist/client/assets/updates-view-core-CVAaEaN_.js +1 -0
- package/dist/client/assets/updates-view-core-CVAaEaN_.js.br +0 -0
- package/dist/client/assets/{usage-panel-BWviwXWp.js → usage-panel-DpmKpTGU.js} +1 -1
- package/dist/client/assets/usage-panel-DpmKpTGU.js.br +0 -0
- package/dist/client/index.html +7 -7
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/config-store-DJrzEDnG.js +0 -1
- package/dist/chunks/kimi-DP651wx7.js +0 -1
- package/dist/client/assets/action-status-Cfrg8b4w.js +0 -1
- package/dist/client/assets/action-status-Cfrg8b4w.js.br +0 -0
- package/dist/client/assets/alert-sound-D1n5diFX.js.br +0 -0
- package/dist/client/assets/benchmark-panel-J5Jl7XAO.js.br +0 -0
- package/dist/client/assets/card-registry-BTYF9l0b.js.br +0 -0
- package/dist/client/assets/celebration-player-ghUpbHyM.js.br +0 -0
- package/dist/client/assets/community-panel-si57DlHN.js.br +0 -0
- package/dist/client/assets/control-ws-DS1pvNbe.js.br +0 -0
- package/dist/client/assets/dialogs-CbHT1Ff3.js +0 -85
- package/dist/client/assets/dialogs-CbHT1Ff3.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-Bga5iZ_S.js.br +0 -0
- package/dist/client/assets/feature-hint-B5CcjCgp.js.br +0 -0
- package/dist/client/assets/first-run-checklist-Dnr9YII7.js.br +0 -0
- package/dist/client/assets/hooks-panel-CcUGxEnN.js.br +0 -0
- package/dist/client/assets/index-BJZdA70x.css +0 -2
- package/dist/client/assets/index-BJZdA70x.css.br +0 -0
- package/dist/client/assets/index-Yc1Jxr4O.js +0 -78
- package/dist/client/assets/index-Yc1Jxr4O.js.br +0 -0
- package/dist/client/assets/issues-panel-CPJTbpxB.js.br +0 -0
- package/dist/client/assets/my-prs-panel-NZ65g5Pb.js.br +0 -0
- package/dist/client/assets/nyan-cat-DpEJHm8S.js.br +0 -0
- package/dist/client/assets/phone-shell-Drcxnrxf.js.br +0 -0
- package/dist/client/assets/plan-face-ClrJp3Xw.js.br +0 -0
- package/dist/client/assets/plan-render-BJcqCYcy.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-CKwNQUVc.js.br +0 -0
- package/dist/client/assets/radar-panel-BAiBZySi.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-g805K6Ky.js.br +0 -0
- package/dist/client/assets/resume-dialog-opMb2a3h.js.br +0 -0
- package/dist/client/assets/review-queue-panel-BT-cSS1L.js.br +0 -0
- package/dist/client/assets/session-tick-Cf8vKYL1.js.br +0 -0
- package/dist/client/assets/settings-panel-BwPh-7g7.js +0 -4
- package/dist/client/assets/settings-panel-BwPh-7g7.js.br +0 -0
- package/dist/client/assets/shown-lightbox-Bh7_WCcT.js.br +0 -0
- package/dist/client/assets/team-review-panel-SHSiDoq0.js.br +0 -0
- package/dist/client/assets/trace-panel-Bn8Ix7Kw.js.br +0 -0
- package/dist/client/assets/updates-view-core-ma4WYKET.js +0 -1
- package/dist/client/assets/updates-view-core-ma4WYKET.js.br +0 -0
- package/dist/client/assets/usage-panel-BWviwXWp.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -3,11 +3,11 @@ import { r as firstLine, s as nodePtyRebuildHint, t as probeNodePty } from "../c
|
|
|
3
3
|
import { i as errorText } from "../chunks/text-DoirglWV.js";
|
|
4
4
|
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
|
-
import { t as AGENT_API_VERBS } from "../chunks/session-
|
|
6
|
+
import { t as AGENT_API_VERBS } from "../chunks/session-COI2_9Eq.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-D-5aezJr.js";
|
|
9
9
|
import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
|
|
10
|
-
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-
|
|
10
|
+
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-CgbF5-7t.js";
|
|
11
11
|
import { i as guardrailsDoctorRows, r as probeGuardrailsDependencies } from "../chunks/guardrails-deps-BfZSPpNs.js";
|
|
12
12
|
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
13
13
|
import fs from "node:fs";
|
|
@@ -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-CgUfjYW6.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-BTC5SZ-Q.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-DE-3gv0R.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-B00Hh_X-.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-BQ9AWzLq.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-BQ9AWzLq.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-DMHBAMS-.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-Cq3sq9_D.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-BTC5SZ-Q.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-DvRVJFxU.js");
|
|
238
238
|
const { describeAgentHome } = await import("../chunks/agent-home-w7C50GTe.js");
|
|
239
239
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-D0FRjVyC.js");
|
|
240
240
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -245,7 +245,7 @@ async function runDoctor() {
|
|
|
245
245
|
try {
|
|
246
246
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-DUfaYypN.js");
|
|
247
247
|
const { execFileSync } = await import("../chunks/child-process-safe-BKjzSEYd.js");
|
|
248
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
248
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BTC5SZ-Q.js");
|
|
249
249
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
250
250
|
line("Sane YOLO", binPath || "not installed");
|
|
251
251
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { o as relayPath, u as isPathInside } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
|
-
import { Vt as shortSha$1, zt as FULL_SHA_RE } from "./session-
|
|
3
|
+
import { Vt as shortSha$1, zt as FULL_SHA_RE } from "./session-COI2_9Eq.js";
|
|
4
4
|
import { c as spawn, 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-
|
|
6
|
-
import { o as supervisionLine } from "./session-routes-
|
|
5
|
+
import { Dt as UpdateChannel, c as SHELL_AGENT_ID, x as InstallFlavor } from "./config-C5FMUnaM.js";
|
|
6
|
+
import { o as supervisionLine } from "./session-routes-BrxM6k-v.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
10
|
import { i as saneYoloEnv, r as SANE_YOLO_PATH_ENV, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
11
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
11
|
+
import { t as buildAgentEnv } from "./spawn-env-mgD54MHq.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-9BcIdXH_.js";
|
|
14
14
|
import { O as nextBackoffMs } from "./json-file-AKRVPqG1.js";
|
|
15
|
-
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-
|
|
15
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-Cb8Y5B7_.js";
|
|
16
16
|
import { c as CODEX_HOME_PROFILE, m as renderCodexHooksBlock, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHookTables } from "./agent-home-core-DZ_zGHQJ.js";
|
|
17
17
|
import { a as holdPreparedAgentHome, c as releaseAgentHome, r as generatedAgentHomePath, s as realAgentHome } from "./agent-home-DMK9PkOo.js";
|
|
18
|
-
import { t as kimi } from "./kimi-
|
|
18
|
+
import { t as kimi } from "./kimi-0sSirxxH.js";
|
|
19
19
|
import fs from "node:fs";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import os from "node:os";
|
|
@@ -165,13 +165,10 @@ var APPENDED_SYSTEM_PROMPT_FLAGS = Object.freeze([APPEND_SYSTEM_PROMPT_FLAG, "--
|
|
|
165
165
|
function isAppendedSystemPromptArgument(launchArgument) {
|
|
166
166
|
return APPENDED_SYSTEM_PROMPT_FLAGS.some((flag) => launchArgument === flag || launchArgument.startsWith(`${flag}=`));
|
|
167
167
|
}
|
|
168
|
-
function buildArgs$2({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null,
|
|
168
|
+
function buildArgs$2({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
169
169
|
const args = dangerouslySkipPermissions ? ["--dangerously-skip-permissions"] : [];
|
|
170
170
|
if (resumeSessionId) args.push("--resume", resumeSessionId);
|
|
171
|
-
if (canRunHelpCommand && !extraArgs.some(isAppendedSystemPromptArgument)) args.push(APPEND_SYSTEM_PROMPT_FLAG, supervisionLine({
|
|
172
|
-
isGuarded: hasOuterGuardrails,
|
|
173
|
-
canSpawn
|
|
174
|
-
}));
|
|
171
|
+
if (canRunHelpCommand && !extraArgs.some(isAppendedSystemPromptArgument)) args.push(APPEND_SYSTEM_PROMPT_FLAG, supervisionLine({ canSpawn }));
|
|
175
172
|
for (let index = 0; index < extraArgs.length; index += 1) {
|
|
176
173
|
const argument = extraArgs[index];
|
|
177
174
|
if (resumeSessionId && argument === "--session-id") {
|
|
@@ -1891,10 +1888,7 @@ function isDeveloperInstructionsOverride(launchArgument) {
|
|
|
1891
1888
|
}
|
|
1892
1889
|
function buildArgs$1({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, hasOuterGuardrails = false, hasOperatorInstructions = false, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
1893
1890
|
const args = [...UPDATE_CHECK_ARGS];
|
|
1894
|
-
if (canRunHelpCommand && !hasOperatorInstructions && !extraArgs.some(isDeveloperInstructionsOverride)) args.push("-c", `${DEVELOPER_INSTRUCTIONS_KEY}='''${supervisionLine({
|
|
1895
|
-
isGuarded: hasOuterGuardrails,
|
|
1896
|
-
canSpawn
|
|
1897
|
-
})}'''`);
|
|
1891
|
+
if (canRunHelpCommand && !hasOperatorInstructions && !extraArgs.some(isDeveloperInstructionsOverride)) args.push("-c", `${DEVELOPER_INSTRUCTIONS_KEY}='''${supervisionLine({ canSpawn })}'''`);
|
|
1898
1892
|
if (resumeSessionId) args.push("resume", resumeSessionId);
|
|
1899
1893
|
args.push(...permissionArgs(dangerouslySkipPermissions, hasOuterGuardrails));
|
|
1900
1894
|
if (extraArgs.length > 0) args.push(...extraArgs);
|
|
@@ -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-BcdxBJrK.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-DPcLg3bI.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as errorCode } from "./text-DoirglWV.js";
|
|
2
|
-
import { l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-
|
|
3
|
-
import { i as formatSessionLimits } from "./session-routes-
|
|
4
|
-
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
2
|
+
import { l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-COI2_9Eq.js";
|
|
3
|
+
import { i as formatSessionLimits } from "./session-routes-BrxM6k-v.js";
|
|
4
|
+
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-D-5aezJr.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";
|
|
8
|
-
import { r as describeOverCap } from "./shown-files-core-
|
|
8
|
+
import { r as describeOverCap } from "./shown-files-core-CQeyRy9W.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import http from "node:http";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
-
import { E as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
3
|
-
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-
|
|
1
|
+
import { 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-COI2_9Eq.js";
|
|
2
|
+
import { E as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-C5FMUnaM.js";
|
|
3
|
+
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-BrxM6k-v.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
//#region shared/session-naming.ts
|
|
@@ -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-9BcIdXH_.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./session-
|
|
2
|
-
import { 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-
|
|
1
|
+
import "./session-COI2_9Eq.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-C5FMUnaM.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region shared/contracts/telemetry.ts
|
|
5
5
|
var TELEMETRY_ADAPTERS = Object.freeze([...BUILTIN_AGENT_IDS, "custom"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as MyPrMergeWhenReadyRequest, B as UnseenOutcome, Dt as TeamReviewActionResult, E as SESSION_DOC_PATH_MAX_CHARS, Et as TeamReviewActionRequest, F as ShownFile, Gt as repoParts, H as MyPr, Ht as GH_SEGMENT, Jt as GithubPrsFreshness, K as MyPrKeepMergeableRequest, Kt as GithubPollingRefreshRequest, Lt as hasRequiredActionHead, M as SessionDoc, N as SessionSnapshot, P as SessionState, V as LinkedPr, Wt as REPO_SLUG_RE, X as MyPrMergeRequest, Yt as githubPollingShape, Z as MyPrMergeResult, ct as pullRequestKeyFormat, et as MyPrMergeWhenReadyResult, jt as TeamReviewStatus, lt as repositoryName, mt as GithubReviewDecision, ot as MyPrsStatus, q as MyPrKeepMergeableResult, qt as GithubPollingRefreshResult, st as SessionPrLinks, tt as MyPrSearchNode, ut as CommitSha, x as CoherenceHooksState, yt as ReviewChecksState, z as TaskTitle } from "./session-
|
|
1
|
+
import { $ as MyPrMergeWhenReadyRequest, B as UnseenOutcome, Dt as TeamReviewActionResult, E as SESSION_DOC_PATH_MAX_CHARS, Et as TeamReviewActionRequest, F as ShownFile, Gt as repoParts, H as MyPr, Ht as GH_SEGMENT, Jt as GithubPrsFreshness, K as MyPrKeepMergeableRequest, Kt as GithubPollingRefreshRequest, Lt as hasRequiredActionHead, M as SessionDoc, N as SessionSnapshot, P as SessionState, V as LinkedPr, Wt as REPO_SLUG_RE, X as MyPrMergeRequest, Yt as githubPollingShape, Z as MyPrMergeResult, ct as pullRequestKeyFormat, et as MyPrMergeWhenReadyResult, jt as TeamReviewStatus, lt as repositoryName, mt as GithubReviewDecision, ot as MyPrsStatus, q as MyPrKeepMergeableResult, qt as GithubPollingRefreshResult, st as SessionPrLinks, tt as MyPrSearchNode, ut as CommitSha, x as CoherenceHooksState, yt as ReviewChecksState, z as TaskTitle } from "./session-COI2_9Eq.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -1478,8 +1478,6 @@ var SessionCardFields = z.object({
|
|
|
1478
1478
|
worktree: z.boolean(),
|
|
1479
1479
|
workspace: z.boolean().optional(),
|
|
1480
1480
|
remoteWorkspace: z.string().optional(),
|
|
1481
|
-
guarded: z.boolean().optional(),
|
|
1482
|
-
guardrailsReleased: z.boolean().optional(),
|
|
1483
1481
|
resumeSessionId: nullableString,
|
|
1484
1482
|
ephemeral: z.boolean().optional(),
|
|
1485
1483
|
ownerId: sessionId.optional(),
|
|
@@ -1675,7 +1673,6 @@ var clientVariants = [
|
|
|
1675
1673
|
agent: z.string().optional(),
|
|
1676
1674
|
dangerouslySkipPermissions: z.boolean().optional(),
|
|
1677
1675
|
saneYolo: z.boolean().optional(),
|
|
1678
|
-
unguarded: z.boolean().optional(),
|
|
1679
1676
|
runInPlace: z.boolean().optional(),
|
|
1680
1677
|
environment: z.string().optional(),
|
|
1681
1678
|
requestId
|
|
@@ -1866,10 +1863,6 @@ var clientVariants = [
|
|
|
1866
1863
|
draft: z.boolean().optional()
|
|
1867
1864
|
}),
|
|
1868
1865
|
loose("plan-decision", PlanDecision.shape),
|
|
1869
|
-
loose("set-session-guardrails", {
|
|
1870
|
-
id: sessionId,
|
|
1871
|
-
isOn: z.boolean()
|
|
1872
|
-
}),
|
|
1873
1866
|
loose("session-doc-read", {
|
|
1874
1867
|
id: sessionId,
|
|
1875
1868
|
path: sessionDocPath,
|
|
@@ -2596,18 +2589,8 @@ var TelegramSettings = optionalObject("telegram", {
|
|
|
2596
2589
|
});
|
|
2597
2590
|
var TraceSettings = z.object({ enabled: optionalBoolean("trace.enabled") }, { error: "trace must be an object" }).optional();
|
|
2598
2591
|
var PlanReviewSettings = z.object({ enabled: optionalBoolean("planReview.enabled") }, { error: "planReview must be an object" }).optional();
|
|
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
|
-
var guardrailsShape = {
|
|
2601
|
-
unguardedRepos: optionalPathList("guardrails.unguardedRepos"),
|
|
2602
|
-
blockedPaths: optionalPathList("guardrails.blockedPaths")
|
|
2603
|
-
};
|
|
2604
2592
|
var isHomeRelativePath = (entry) => entry === "~" || entry.startsWith("~/") || entry.startsWith("~\\");
|
|
2605
2593
|
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
|
-
var createGuardrailsSettings = (isAbsolutePath) => z.object({
|
|
2607
|
-
...guardrailsShape,
|
|
2608
|
-
blockedPaths: absoluteOrHomePathList("guardrails.blockedPaths", isAbsolutePath)
|
|
2609
|
-
}, { error: "guardrails must be an object" }).strict().optional();
|
|
2610
|
-
var GuardrailsFileSettings = z.object(guardrailsShape, { error: "guardrails must be an object" }).passthrough().optional();
|
|
2611
2594
|
var telemetryShape = { enabled: optionalBoolean("telemetry.enabled") };
|
|
2612
2595
|
var TelemetrySettings = z.object(telemetryShape, { error: "telemetry must be an object" }).strict().optional();
|
|
2613
2596
|
var TelemetryFileSettings = z.object(telemetryShape, { error: "telemetry must be an object" }).passthrough().optional();
|
|
@@ -2646,7 +2629,6 @@ var createBrowserConfigShape = (isAbsolutePath) => ({
|
|
|
2646
2629
|
posthog: PosthogSettings,
|
|
2647
2630
|
usage: createUsageSettings(isAbsolutePath),
|
|
2648
2631
|
telegram: TelegramSettings,
|
|
2649
|
-
guardrails: createGuardrailsSettings(isAbsolutePath),
|
|
2650
2632
|
telemetry: TelemetrySettings,
|
|
2651
2633
|
workflows: WorkflowsSettings.nullable().optional()
|
|
2652
2634
|
});
|
|
@@ -2798,7 +2780,6 @@ var ProjectConfig = z.object({
|
|
|
2798
2780
|
agent: z.string({ error: "projects[].agent must be a string" }).regex(AGENT_ID_RE, { error: `projects[].agent must be ${AGENT_ID_SHAPE_MESSAGE}` }).optional(),
|
|
2799
2781
|
codexBypassHookTrust: z.boolean().optional(),
|
|
2800
2782
|
dangerouslySkipPermissions: z.boolean({ error: "projects[].dangerouslySkipPermissions must be a boolean" }).optional(),
|
|
2801
|
-
unguarded: z.boolean({ error: "projects[].unguarded must be a boolean" }).optional(),
|
|
2802
2783
|
saneYolo: z.boolean({ error: "projects[].saneYolo must be a boolean" }).optional(),
|
|
2803
2784
|
environment: ProjectEnvironment.optional()
|
|
2804
2785
|
}).passthrough();
|
|
@@ -2816,7 +2797,7 @@ var FILE_CONFIG_SHAPE = {
|
|
|
2816
2797
|
usage: optionalLooseObject("usage"),
|
|
2817
2798
|
telegram: optionalLooseObject("telegram"),
|
|
2818
2799
|
workflows: optionalLooseObject("workflows"),
|
|
2819
|
-
guardrails:
|
|
2800
|
+
guardrails: optionalLooseObject("guardrails"),
|
|
2820
2801
|
telemetry: TelemetryFileSettings,
|
|
2821
2802
|
trace: TraceSettings,
|
|
2822
2803
|
planReview: PlanReviewSettings,
|
|
@@ -2883,7 +2864,6 @@ var CONFIG_BLOCK_KEYS = Object.freeze([
|
|
|
2883
2864
|
"posthog",
|
|
2884
2865
|
"usage",
|
|
2885
2866
|
"telegram",
|
|
2886
|
-
"guardrails",
|
|
2887
2867
|
"telemetry",
|
|
2888
2868
|
"workflows",
|
|
2889
2869
|
"coder"
|
|
@@ -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-C5FMUnaM.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-Cb8Y5B7_.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import os from "node:os";
|
|
@@ -1136,11 +1136,15 @@ var SECTIONS = Object.freeze([
|
|
|
1136
1136
|
]
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
|
-
id: "machine-
|
|
1139
|
+
id: "machine-safety",
|
|
1140
1140
|
level: "machine",
|
|
1141
|
-
title: "
|
|
1142
|
-
description: "
|
|
1143
|
-
legacyIds: [
|
|
1141
|
+
title: "Sane YOLO and unattended",
|
|
1142
|
+
description: "Which risky commands and credential reads Sane YOLO blocks, and which unattended actions automated work may take.",
|
|
1143
|
+
legacyIds: [
|
|
1144
|
+
"machine-guardrails",
|
|
1145
|
+
"lanes-unattended",
|
|
1146
|
+
"unattended"
|
|
1147
|
+
],
|
|
1144
1148
|
settings: [
|
|
1145
1149
|
{
|
|
1146
1150
|
id: "skip-permissions-by-default",
|
|
@@ -1204,40 +1208,6 @@ var SECTIONS = Object.freeze([
|
|
|
1204
1208
|
warning: "Enabling this control lets branch cleanup delete stale remote branches without merge proof.",
|
|
1205
1209
|
defaultValue: false,
|
|
1206
1210
|
...MACHINE_NOW
|
|
1207
|
-
},
|
|
1208
|
-
{
|
|
1209
|
-
id: "guardrails-unguarded-repos",
|
|
1210
|
-
path: "guardrails.unguardedRepos",
|
|
1211
|
-
title: "Unguarded repositories",
|
|
1212
|
-
description: "Folders whose sessions run without guardrails. A session started in one of these folders, or below it, is not guarded.",
|
|
1213
|
-
control: "list",
|
|
1214
|
-
keywords: [
|
|
1215
|
-
"guardrails",
|
|
1216
|
-
"opt out",
|
|
1217
|
-
"dotfiles"
|
|
1218
|
-
],
|
|
1219
|
-
danger: true,
|
|
1220
|
-
warning: "A session without guardrails can read credentials and write anywhere this account can.",
|
|
1221
|
-
defaultValue: [],
|
|
1222
|
-
listPlaceholder: "Folder path",
|
|
1223
|
-
listEmptyText: "Every repository is guarded.",
|
|
1224
|
-
...MACHINE_NEW_SESSIONS
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
id: "guardrails-blocked-paths",
|
|
1228
|
-
path: "guardrails.blockedPaths",
|
|
1229
|
-
title: "Blocked folders",
|
|
1230
|
-
description: "Extra folders and files a guarded session cannot write, on top of credentials and Glimmervoid's own state. A leading ~ means the home folder.",
|
|
1231
|
-
control: "list",
|
|
1232
|
-
keywords: [
|
|
1233
|
-
"guardrails",
|
|
1234
|
-
"block",
|
|
1235
|
-
"protect"
|
|
1236
|
-
],
|
|
1237
|
-
defaultValue: [],
|
|
1238
|
-
listPlaceholder: "~/folder",
|
|
1239
|
-
listEmptyText: "Only the built-in list is blocked.",
|
|
1240
|
-
...MACHINE_NEW_SESSIONS
|
|
1241
1211
|
}
|
|
1242
1212
|
]
|
|
1243
1213
|
},
|
|
@@ -3301,10 +3271,6 @@ var DEFAULT_CONFIG = {
|
|
|
3301
3271
|
minIntervalSeconds: 60,
|
|
3302
3272
|
timeoutSeconds: 60
|
|
3303
3273
|
} },
|
|
3304
|
-
guardrails: {
|
|
3305
|
-
unguardedRepos: [],
|
|
3306
|
-
blockedPaths: []
|
|
3307
|
-
},
|
|
3308
3274
|
telemetry: { enabled: true },
|
|
3309
3275
|
checkForUpdates: true,
|
|
3310
3276
|
updateChannel: "release",
|
|
@@ -3569,11 +3535,17 @@ function resolveBranchGcAndWarn(branchGc) {
|
|
|
3569
3535
|
function secretSourcesOf(env) {
|
|
3570
3536
|
return Object.fromEntries(readEnvSecrets(env).map((secret) => [`${secret.blockName}.${secret.secretKey}`, secret.environmentVariable]));
|
|
3571
3537
|
}
|
|
3538
|
+
var RETIRED_PROJECT_FLAGS = Object.freeze(["unconfined", "unguarded"]);
|
|
3572
3539
|
function retiredGuardrailKeysWarning(config) {
|
|
3573
3540
|
const projects = Array.isArray(config.projects) ? config.projects : [];
|
|
3574
|
-
const
|
|
3541
|
+
const guardrails = config.guardrails;
|
|
3542
|
+
const retiredKeys = [
|
|
3543
|
+
...Object.hasOwn(config, "sandbox") ? ["sandbox"] : [],
|
|
3544
|
+
...isRecord(guardrails) ? Object.keys(guardrails).filter((key) => key !== "unreadablePaths").map((key) => `guardrails.${key}`) : [],
|
|
3545
|
+
...RETIRED_PROJECT_FLAGS.filter((key) => projects.some((project) => isRecord(project) && Object.hasOwn(project, key))).map((key) => `projects[].${key}`)
|
|
3546
|
+
];
|
|
3575
3547
|
if (retiredKeys.length === 0) return null;
|
|
3576
|
-
return `[
|
|
3548
|
+
return `[sane-yolo] config.json still has ${retiredKeys.join(", ")}; these keys are ignored (unreadablePaths moved to saneYoloUnreadablePaths)`;
|
|
3577
3549
|
}
|
|
3578
3550
|
function isAbsoluteOrHomePath(entry) {
|
|
3579
3551
|
if (typeof entry !== "string") return false;
|
|
@@ -3741,10 +3713,6 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
3741
3713
|
...DEFAULT_CONFIG.trace,
|
|
3742
3714
|
...config.trace
|
|
3743
3715
|
}),
|
|
3744
|
-
guardrails: pickBlock("guardrails", {
|
|
3745
|
-
...DEFAULT_CONFIG.guardrails,
|
|
3746
|
-
...config.guardrails
|
|
3747
|
-
}),
|
|
3748
3716
|
telemetry: pickBlock("telemetry", {
|
|
3749
3717
|
...DEFAULT_CONFIG.telemetry,
|
|
3750
3718
|
...config.telemetry
|
|
@@ -3813,7 +3781,6 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
3813
3781
|
if (newConfig.posthog != null) config.posthog = newConfig.posthog;
|
|
3814
3782
|
if (newConfig.usage != null) config.usage = newConfig.usage;
|
|
3815
3783
|
if (newConfig.telegram != null) config.telegram = newConfig.telegram;
|
|
3816
|
-
if (newConfig.guardrails != null) config.guardrails = newConfig.guardrails;
|
|
3817
3784
|
if (newConfig.telemetry != null) config.telemetry = newConfig.telemetry;
|
|
3818
3785
|
if (newConfig.workflows == null) delete config.workflows;
|
|
3819
3786
|
if (newConfig.workflows != null) config.workflows = newConfig.workflows;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-CbHHLlY7.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AGENT_API_VERBS } from "./session-
|
|
1
|
+
import { t as AGENT_API_VERBS } from "./session-COI2_9Eq.js";
|
|
2
2
|
import { i as execFileSync } from "./child-process-safe-BCOoKfxG.js";
|
|
3
3
|
//#region server/core/command-line-core.ts
|
|
4
4
|
var SUBCOMMANDS_HONORING_TRAILING_GLOBAL_OPTIONS = /* @__PURE__ */ new Set(["doctor", "pair"]);
|
|
@@ -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-mgD54MHq.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as relayPath } from "./runtime-paths-D_ZjJLE0.js";
|
|
2
|
-
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
2
|
+
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-COI2_9Eq.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
5
|
import { n as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
6
|
+
import { t as buildAgentEnv } from "./spawn-env-mgD54MHq.js";
|
|
7
7
|
import { h as renderKimiHooksBlock, l as KIMI_HOME_PROFILE } from "./agent-home-core-DZ_zGHQJ.js";
|
|
8
8
|
import { a as holdPreparedAgentHome, c as releaseAgentHome, s as realAgentHome } from "./agent-home-DMK9PkOo.js";
|
|
9
9
|
import fs from "node:fs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-0sSirxxH.js";
|