glimmervoid 0.47.1-next.261 → 0.47.1-next.263
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 -13
- package/dist/chunks/{adapters-BcdxBJrK.js → adapters-C6PO5Nk1.js} +5 -5
- package/dist/chunks/{adapters-Cq3sq9_D.js → adapters-CgBZESh9.js} +1 -1
- package/dist/chunks/{agent-api-cli-DPcLg3bI.js → agent-api-cli-C6liUoEt.js} +1 -1
- package/dist/chunks/{agent-api-cli-BQ9AWzLq.js → agent-api-cli-D4AchPAW.js} +1 -1
- package/dist/chunks/{agent-api-core-D-5aezJr.js → agent-api-core-CbAT8lQd.js} +1 -1
- package/dist/chunks/agent-home-BZB8hXrH.js +1 -0
- package/dist/chunks/{agent-home-DMK9PkOo.js → agent-home-Cc2oGNYa.js} +22 -4
- package/dist/chunks/agent-home-core-CgoT45SE.js +1 -0
- package/dist/chunks/{agent-home-core-DZ_zGHQJ.js → agent-home-core-DgW3orTE.js} +1 -1
- package/dist/chunks/{build-channel-Cb8Y5B7_.js → build-channel-DcgkUZnG.js} +1 -1
- package/dist/chunks/{config-C5FMUnaM.js → config-DHQpb4gS.js} +1 -6
- package/dist/chunks/{config-store-CbHHLlY7.js → config-store-B3VQlr0X.js} +2 -57
- package/dist/chunks/config-store-BkQY9hbl.js +1 -0
- package/dist/chunks/{kimi-0sSirxxH.js → kimi-CKcgRTqA.js} +12 -2
- package/dist/chunks/kimi-Ch7mq51x.js +1 -0
- package/dist/chunks/{main-DnEif6TC.js → main-C13UHJc4.js} +149 -1105
- package/dist/chunks/{pair-cli-CgUfjYW6.js → pair-cli-CStBuhUH.js} +2 -2
- package/dist/chunks/{path-doctor-C23VAqeu.js → path-doctor-CkYCMK5u.js} +54 -1
- package/dist/chunks/{remote-config-aohcc-l3.js → remote-config-C2EUPup8.js} +1 -1
- package/dist/chunks/{settings-cli-DE-3gv0R.js → settings-cli-BWmRHK4E.js} +4 -4
- package/dist/chunks/{settings-readout-core-DnsXKNpc.js → settings-readout-core-VXGAgoZU.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-B00Hh_X-.js → ssh-sign-cli-ClDsYPXU.js} +1 -1
- package/dist/client/assets/{alert-sound-C2-mZeNL.js → alert-sound-CnbLj8Ge.js} +1 -1
- package/dist/client/assets/alert-sound-CnbLj8Ge.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-njN3YVaP.js → benchmark-panel-C51ejhiO.js} +1 -1
- package/dist/client/assets/benchmark-panel-C51ejhiO.js.br +0 -0
- package/dist/client/assets/{celebration-player-BZrN8yg4.js → celebration-player-BrnT80ny.js} +1 -1
- package/dist/client/assets/celebration-player-BrnT80ny.js.br +0 -0
- package/dist/client/assets/{community-panel-C1o92l5q.js → community-panel-BkCV4FOw.js} +1 -1
- package/dist/client/assets/community-panel-BkCV4FOw.js.br +0 -0
- package/dist/client/assets/{dialogs-PBl8O-4R.js → dialogs-BClQ3hsS.js} +1 -1
- package/dist/client/assets/dialogs-BClQ3hsS.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-ChdZVeTZ.js → doc-editor-ui-BPO4ct6E.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BPO4ct6E.js.br +0 -0
- package/dist/client/assets/{feature-hint-Bp_XN05K.js → feature-hint-BHcOkEX1.js} +1 -1
- package/dist/client/assets/feature-hint-BHcOkEX1.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DnvCvijN.js → first-run-checklist-D9o35cYo.js} +1 -1
- package/dist/client/assets/first-run-checklist-D9o35cYo.js.br +0 -0
- package/dist/client/assets/{hooks-panel-CuSGPfnh.js → hooks-panel-CTocImRm.js} +1 -1
- package/dist/client/assets/hooks-panel-CTocImRm.js.br +0 -0
- package/dist/client/assets/{index-D3Qn-Gpw.js → index-B2urLsa7.js} +5 -5
- package/dist/client/assets/index-B2urLsa7.js.br +0 -0
- package/dist/client/assets/{issues-panel-DPzD_uiu.js → issues-panel-D4DhECEP.js} +1 -1
- package/dist/client/assets/issues-panel-D4DhECEP.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-DjCpDC6O.js → my-prs-panel-CgGqQ7I-.js} +1 -1
- package/dist/client/assets/my-prs-panel-CgGqQ7I-.js.br +0 -0
- package/dist/client/assets/{nyan-cat-B5mOD_Ng.js → nyan-cat-CIccTK7h.js} +1 -1
- package/dist/client/assets/nyan-cat-CIccTK7h.js.br +0 -0
- package/dist/client/assets/{phone-shell-upbznUgo.js → phone-shell-BBi4sVW1.js} +1 -1
- package/dist/client/assets/phone-shell-BBi4sVW1.js.br +0 -0
- package/dist/client/assets/{plan-face-DYS6tmJt.js → plan-face-DR0sS4kD.js} +1 -1
- package/dist/client/assets/plan-face-DR0sS4kD.js.br +0 -0
- package/dist/client/assets/{plan-render-BiKsPFC1.js → plan-render-qN7kcfCr.js} +1 -1
- package/dist/client/assets/plan-render-qN7kcfCr.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DR4D8r-k.js → pr-queue-columns-DakNbBJL.js} +1 -1
- package/dist/client/assets/pr-queue-columns-DakNbBJL.js.br +0 -0
- package/dist/client/assets/{radar-panel-DWe4snDi.js → radar-panel-DGZOiXUN.js} +1 -1
- package/dist/client/assets/radar-panel-DGZOiXUN.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-YpvdWtDn.js → repo-roots-adder-CnYzdJd1.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CnYzdJd1.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DdLqfQWG.js → resume-dialog-CwOxURHa.js} +1 -1
- package/dist/client/assets/resume-dialog-CwOxURHa.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-mLURWjYB.js → review-queue-panel-CCmEO_5a.js} +1 -1
- package/dist/client/assets/review-queue-panel-CCmEO_5a.js.br +0 -0
- package/dist/client/assets/settings-panel-BgMLMW1l.js +4 -0
- package/dist/client/assets/settings-panel-BgMLMW1l.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-BdPgIKWJ.js → shown-lightbox-CJM-xw-I.js} +1 -1
- package/dist/client/assets/shown-lightbox-CJM-xw-I.js.br +0 -0
- package/dist/client/assets/{team-review-panel-DAB0xU7c.js → team-review-panel-iARODqvM.js} +1 -1
- package/dist/client/assets/team-review-panel-iARODqvM.js.br +0 -0
- package/dist/client/assets/{trace-panel-DKWsPqwF.js → trace-panel-BySPJR-t.js} +1 -1
- package/dist/client/assets/trace-panel-BySPJR-t.js.br +0 -0
- package/dist/client/assets/{usage-panel-DpmKpTGU.js → usage-panel-o9Yrzmjh.js} +1 -1
- package/dist/client/assets/usage-panel-o9Yrzmjh.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/scripts/postinstall-path-check.js +1 -2
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-home-core-D0FRjVyC.js +0 -1
- package/dist/chunks/agent-home-w7C50GTe.js +0 -1
- package/dist/chunks/config-store-DMHBAMS-.js +0 -1
- package/dist/chunks/guardrails-deps-BfZSPpNs.js +0 -70
- package/dist/chunks/kimi-DvRVJFxU.js +0 -1
- package/dist/client/assets/alert-sound-C2-mZeNL.js.br +0 -0
- package/dist/client/assets/benchmark-panel-njN3YVaP.js.br +0 -0
- package/dist/client/assets/celebration-player-BZrN8yg4.js.br +0 -0
- package/dist/client/assets/community-panel-C1o92l5q.js.br +0 -0
- package/dist/client/assets/dialogs-PBl8O-4R.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-ChdZVeTZ.js.br +0 -0
- package/dist/client/assets/feature-hint-Bp_XN05K.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DnvCvijN.js.br +0 -0
- package/dist/client/assets/hooks-panel-CuSGPfnh.js.br +0 -0
- package/dist/client/assets/index-D3Qn-Gpw.js.br +0 -0
- package/dist/client/assets/issues-panel-DPzD_uiu.js.br +0 -0
- package/dist/client/assets/my-prs-panel-DjCpDC6O.js.br +0 -0
- package/dist/client/assets/nyan-cat-B5mOD_Ng.js.br +0 -0
- package/dist/client/assets/phone-shell-upbznUgo.js.br +0 -0
- package/dist/client/assets/plan-face-DYS6tmJt.js.br +0 -0
- package/dist/client/assets/plan-render-BiKsPFC1.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DR4D8r-k.js.br +0 -0
- package/dist/client/assets/radar-panel-DWe4snDi.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-YpvdWtDn.js.br +0 -0
- package/dist/client/assets/resume-dialog-DdLqfQWG.js.br +0 -0
- package/dist/client/assets/review-queue-panel-mLURWjYB.js.br +0 -0
- package/dist/client/assets/settings-panel-DhINS4En.js +0 -4
- package/dist/client/assets/settings-panel-DhINS4En.js.br +0 -0
- package/dist/client/assets/shown-lightbox-BdPgIKWJ.js.br +0 -0
- package/dist/client/assets/team-review-panel-DAB0xU7c.js.br +0 -0
- package/dist/client/assets/trace-panel-DKWsPqwF.js.br +0 -0
- package/dist/client/assets/usage-panel-DpmKpTGU.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -5,11 +5,10 @@ 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-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-CbAT8lQd.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-CgbF5-7t.js";
|
|
11
|
-
import { i as guardrailsDoctorRows, r as
|
|
12
|
-
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
11
|
+
import { a as probeGuardrailsDependencies, i as pnpmGlobalBinDir, n as npmGlobalBinDir, o as guardrailsDoctorRows, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-CkYCMK5u.js";
|
|
13
12
|
import fs from "node:fs";
|
|
14
13
|
import path from "node:path";
|
|
15
14
|
import os from "node:os";
|
|
@@ -58,7 +57,7 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
58
57
|
return 0;
|
|
59
58
|
}],
|
|
60
59
|
["pair", async (subcommandArgs) => {
|
|
61
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
60
|
+
const { runPairCli } = await import("../chunks/pair-cli-CStBuhUH.js");
|
|
62
61
|
return runPairCli(subcommandArgs);
|
|
63
62
|
}],
|
|
64
63
|
["agent", async (subcommandArgs) => {
|
|
@@ -66,17 +65,17 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
66
65
|
return runAgentSetupCli(subcommandArgs);
|
|
67
66
|
}],
|
|
68
67
|
["settings", async (subcommandArgs) => {
|
|
69
|
-
const { runSettingsCli } = await import("../chunks/settings-cli-
|
|
68
|
+
const { runSettingsCli } = await import("../chunks/settings-cli-BWmRHK4E.js");
|
|
70
69
|
return runSettingsCli(subcommandArgs);
|
|
71
70
|
}],
|
|
72
71
|
["ssh-sign", async (subcommandArgs) => {
|
|
73
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
72
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-ClDsYPXU.js");
|
|
74
73
|
return runSshSignCli(subcommandArgs);
|
|
75
74
|
}]
|
|
76
75
|
];
|
|
77
76
|
var ownSubcommandNames = new Set(OWN_SUBCOMMAND_RUNNERS.map(([name]) => name));
|
|
78
77
|
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-
|
|
78
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-D4AchPAW.js");
|
|
80
79
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
81
80
|
}])]);
|
|
82
81
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -90,7 +89,7 @@ function missingAgentText(agentId) {
|
|
|
90
89
|
}
|
|
91
90
|
async function printSessionLimits() {
|
|
92
91
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
93
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
92
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-D4AchPAW.js");
|
|
94
93
|
const limitsLines = await sessionLimitsHelpLines();
|
|
95
94
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
96
95
|
}
|
|
@@ -147,7 +146,7 @@ async function readDeclaredCustomAgents() {
|
|
|
147
146
|
declared: [],
|
|
148
147
|
error: null
|
|
149
148
|
};
|
|
150
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
149
|
+
const { loadConfigFile } = await import("../chunks/config-store-BkQY9hbl.js");
|
|
151
150
|
try {
|
|
152
151
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
153
152
|
if (!loaded.config) return {
|
|
@@ -223,7 +222,7 @@ async function runDoctor() {
|
|
|
223
222
|
}
|
|
224
223
|
switchSection("Agents");
|
|
225
224
|
try {
|
|
226
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
225
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-CgBZESh9.js");
|
|
227
226
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
228
227
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
229
228
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -234,9 +233,9 @@ async function runDoctor() {
|
|
|
234
233
|
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BTC5SZ-Q.js");
|
|
235
234
|
const grokSetup = inspectGrokAgentSetup();
|
|
236
235
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
237
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
238
|
-
const { describeAgentHome } = await import("../chunks/agent-home-
|
|
239
|
-
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-
|
|
236
|
+
const { default: kimi } = await import("../chunks/kimi-Ch7mq51x.js");
|
|
237
|
+
const { describeAgentHome } = await import("../chunks/agent-home-BZB8hXrH.js");
|
|
238
|
+
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-CgoT45SE.js");
|
|
240
239
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
241
240
|
} catch (err) {
|
|
242
241
|
line("agents", `probe failed: ${firstLine(errorText(err))}`);
|
|
@@ -2,7 +2,7 @@ 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
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-
|
|
5
|
+
import { Dt as UpdateChannel, c as SHELL_AGENT_ID, x as InstallFlavor } from "./config-DHQpb4gS.js";
|
|
6
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";
|
|
@@ -12,10 +12,10 @@ import { t as buildAgentEnv } from "./spawn-env-mgD54MHq.js";
|
|
|
12
12
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
13
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-
|
|
16
|
-
import { c as CODEX_HOME_PROFILE,
|
|
17
|
-
import { a as holdPreparedAgentHome, c as
|
|
18
|
-
import { t as kimi } from "./kimi-
|
|
15
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-DcgkUZnG.js";
|
|
16
|
+
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-DgW3orTE.js";
|
|
17
|
+
import { a as holdPreparedAgentHome, c as realAgentHome, l as releaseAgentHome, r as generatedAgentHomePath } from "./agent-home-Cc2oGNYa.js";
|
|
18
|
+
import { t as kimi } from "./kimi-CKcgRTqA.js";
|
|
19
19
|
import fs from "node:fs";
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import os from "node:os";
|
|
@@ -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-C6PO5Nk1.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-COI2_9Eq.js";
|
|
3
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-
|
|
4
|
+
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-CbAT8lQd.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-C6liUoEt.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-COI2_9Eq.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-DHQpb4gS.js";
|
|
3
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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as describeAgentHome } from "./agent-home-Cc2oGNYa.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir } from "./config-path-core-DUWk0Lui.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
|
-
import { a as AGENT_HOME_SOURCES_NAME, d as
|
|
4
|
+
import { a as AGENT_HOME_SOURCES_NAME, d as planAgentHome, i as AGENT_HOME_IN_USE_LOCK_NAME, n as AGENT_HOME_CONFIG_NAME, r as AGENT_HOME_CONFLICTS_NAME, t as AGENT_HOME_BASE_NAME, u as fileStampKey } from "./agent-home-core-DgW3orTE.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs, { closeSync, mkdirSync, openSync, readdirSync, renameSync, rmSync, unlinkSync } from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -300,7 +300,7 @@ function readSourceStamps(generatedHome) {
|
|
|
300
300
|
}
|
|
301
301
|
function inspectAgentHome(profile, options) {
|
|
302
302
|
const realHome = realAgentHome(profile, options.env, options.homeDir);
|
|
303
|
-
const generatedHome = generatedAgentHomePath(profile, options.env, options.homeDir);
|
|
303
|
+
const generatedHome = options.generatedHome ?? generatedAgentHomePath(profile, options.env, options.homeDir);
|
|
304
304
|
try {
|
|
305
305
|
return {
|
|
306
306
|
generatedHome,
|
|
@@ -426,7 +426,7 @@ function realFileStamps(realHome) {
|
|
|
426
426
|
return stamps;
|
|
427
427
|
}
|
|
428
428
|
function prepareAgentHome(profile, options) {
|
|
429
|
-
const generatedHome = generatedAgentHomePath(profile, options.env, options.homeDir);
|
|
429
|
+
const generatedHome = options.generatedHome ?? generatedAgentHomePath(profile, options.env, options.homeDir);
|
|
430
430
|
try {
|
|
431
431
|
fs.mkdirSync(generatedHome, {
|
|
432
432
|
recursive: true,
|
|
@@ -469,6 +469,24 @@ function holdPreparedAgentHome(profile, env, renderBlock) {
|
|
|
469
469
|
if ("refusal" in prepared) releaseAgentHome(generatedHome);
|
|
470
470
|
return prepared;
|
|
471
471
|
}
|
|
472
|
+
function prepareScratchAgentHome(profile, { env, renderBlock, home, configSuffix, files }) {
|
|
473
|
+
const prepared = prepareAgentHome(profile, {
|
|
474
|
+
env,
|
|
475
|
+
renderBlock,
|
|
476
|
+
generatedHome: home
|
|
477
|
+
});
|
|
478
|
+
if ("refusal" in prepared) return prepared;
|
|
479
|
+
try {
|
|
480
|
+
for (const [name, text] of Object.entries(files)) {
|
|
481
|
+
fs.rmSync(path.join(home, name), { force: true });
|
|
482
|
+
fs.writeFileSync(path.join(home, name), text, { mode: GENERATED_FILE_MODE });
|
|
483
|
+
}
|
|
484
|
+
fs.appendFileSync(path.join(home, AGENT_HOME_CONFIG_NAME), configSuffix);
|
|
485
|
+
} catch (error) {
|
|
486
|
+
return { refusal: `${home} cannot take the lane files: ${errorMessage(error)}` };
|
|
487
|
+
}
|
|
488
|
+
return prepared;
|
|
489
|
+
}
|
|
472
490
|
function agentHomeNotes(profile, generatedHome, plan) {
|
|
473
491
|
const notes = [];
|
|
474
492
|
if (plan.hasStaleBlockInRealConfig) notes.push(`the real config.toml still holds an old Glimmervoid hooks block, which ${profile.vendor} sessions here ignore and you can delete`);
|
|
@@ -559,4 +577,4 @@ function releaseUnheldAgentHomeSecrets(generatedHome) {
|
|
|
559
577
|
releaseSecretsUnlessHeldElsewhere(generatedHome, { whenLocksMissing: "keep" });
|
|
560
578
|
}
|
|
561
579
|
//#endregion
|
|
562
|
-
export { holdPreparedAgentHome as a,
|
|
580
|
+
export { holdPreparedAgentHome as a, realAgentHome as c, createHeldSessionTempFolder as d, releaseSessionLock as f, holdAgentHome as i, releaseAgentHome as l, trashSessionTempFolderOnceUnheld as m, describeAgentHome as n, prepareAgentHome as o, sessionIdOfLockFile as p, generatedAgentHomePath as r, prepareScratchAgentHome as s, agentHomeLinkRefusal as t, releaseUnheldAgentHomeSecrets as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { l as KIMI_HOME_PROFILE } from "./agent-home-core-DgW3orTE.js";
|
|
@@ -438,4 +438,4 @@ function renderCodexHooksBlock(options) {
|
|
|
438
438
|
].join("\n")}\n`;
|
|
439
439
|
}
|
|
440
440
|
//#endregion
|
|
441
|
-
export { AGENT_HOME_SOURCES_NAME as a, CODEX_HOME_PROFILE as c,
|
|
441
|
+
export { AGENT_HOME_SOURCES_NAME as a, CODEX_HOME_PROFILE as c, planAgentHome as d, renderCodexHookTables as f, AGENT_HOME_IN_USE_LOCK_NAME as i, KIMI_HOME_PROFILE as l, renderKimiHooksBlock as m, AGENT_HOME_CONFIG_NAME as n, BLOCK_END as o, renderCodexHooksBlock as p, AGENT_HOME_CONFLICTS_NAME as r, BLOCK_START as s, AGENT_HOME_BASE_NAME as t, fileStampKey as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-DHQpb4gS.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"]);
|
|
@@ -2507,7 +2507,6 @@ var BranchGcControlSettings = BranchGcFileSettings.omit({
|
|
|
2507
2507
|
Object.freeze(["enabled", "deleteUnmerged"]);
|
|
2508
2508
|
Object.freeze(["staleDays", "intervalMs"]);
|
|
2509
2509
|
var GithubSettings = z.object({ teams: z.array(z.string({ error: "github.teams must be an array of org/slug strings" }).refine((team) => repoParts(team) !== null, { message: "github.teams entries must be org/slug with valid GitHub segments" }), { error: "github.teams must be an array of org/slug strings" }).optional() }, { error: "github must be an object" }).nullable().optional();
|
|
2510
|
-
var SANDBOX_DOMAIN_PATTERN = /^(?:\*\.(?=[^.]+\.[^.]+))?(?:[a-z0-9-]+\.)+[a-z0-9-]+(?::\d{1,5})?$/i;
|
|
2511
2510
|
var reviewerChoiceSettings = (field) => optionalObject(field, {
|
|
2512
2511
|
model: optionalString(`${field}.model`, true),
|
|
2513
2512
|
effort: optionalString(`${field}.effort`, true)
|
|
@@ -2523,11 +2522,7 @@ var TeamReviewSettings = optionalObject("teamReview", {
|
|
|
2523
2522
|
skill: optionalString("teamReview.skill", true),
|
|
2524
2523
|
reviewer: reviewerChoiceSettings("teamReview.reviewer"),
|
|
2525
2524
|
stampReviewer: reviewerChoiceSettings("teamReview.stampReviewer"),
|
|
2526
|
-
sandbox: optionalObject("teamReview.sandbox", {
|
|
2527
|
-
extraDomains: z.array(z.string({ error: "teamReview.sandbox.extraDomains must be an array of domain strings" }).trim().regex(SANDBOX_DOMAIN_PATTERN, { error: "teamReview.sandbox.extraDomains entries must be bare domains like registry.npmjs.org or *.example.com, with no scheme or path" }), { error: "teamReview.sandbox.extraDomains must be an array of domain strings" }).optional(),
|
|
2528
|
-
openNetwork: optionalBoolean("teamReview.sandbox.openNetwork"),
|
|
2529
|
-
loadMcpServers: optionalBoolean("teamReview.sandbox.loadMcpServers")
|
|
2530
|
-
}),
|
|
2525
|
+
sandbox: optionalObject("teamReview.sandbox", { loadMcpServers: optionalBoolean("teamReview.sandbox.loadMcpServers") }),
|
|
2531
2526
|
reReviewAfterHours: optionalNumber("teamReview.reReviewAfterHours"),
|
|
2532
2527
|
skipIdleAfterDays: optionalNumber("teamReview.skipIdleAfterDays")
|
|
2533
2528
|
});
|
|
@@ -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-DHQpb4gS.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-DcgkUZnG.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import os from "node:os";
|
|
@@ -1590,60 +1590,6 @@ var SECTIONS = Object.freeze([
|
|
|
1590
1590
|
suggestionsFrom: "review-stamp-efforts",
|
|
1591
1591
|
...MACHINE_NOW
|
|
1592
1592
|
},
|
|
1593
|
-
{
|
|
1594
|
-
id: "team-review-sandbox",
|
|
1595
|
-
path: "status:team-review-sandbox",
|
|
1596
|
-
title: "Review sandbox",
|
|
1597
|
-
description: "What the review agent can reach and read, from the same values each review launches with.",
|
|
1598
|
-
control: "readonly",
|
|
1599
|
-
keywords: [
|
|
1600
|
-
"sandbox",
|
|
1601
|
-
"network",
|
|
1602
|
-
"egress",
|
|
1603
|
-
"mcp",
|
|
1604
|
-
"credentials",
|
|
1605
|
-
"tools",
|
|
1606
|
-
"restricted"
|
|
1607
|
-
],
|
|
1608
|
-
status: "team-review-sandbox",
|
|
1609
|
-
...READOUT
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
id: "team-review-sandbox-extra-domains",
|
|
1613
|
-
path: "teamReview.sandbox.extraDomains",
|
|
1614
|
-
title: "Extra allowed domains",
|
|
1615
|
-
description: "Domains the review sandbox may reach on top of the agent API and api.github.com.",
|
|
1616
|
-
control: "list",
|
|
1617
|
-
keywords: [
|
|
1618
|
-
"sandbox",
|
|
1619
|
-
"network",
|
|
1620
|
-
"egress",
|
|
1621
|
-
"allowlist"
|
|
1622
|
-
],
|
|
1623
|
-
danger: true,
|
|
1624
|
-
warning: "The review runs code from the pull request under review. Every domain added here is a place that code can send what it reads.",
|
|
1625
|
-
listPlaceholder: "registry.npmjs.org",
|
|
1626
|
-
listEmptyText: "No extra domains.",
|
|
1627
|
-
defaultValue: [],
|
|
1628
|
-
...MACHINE_NOW
|
|
1629
|
-
},
|
|
1630
|
-
{
|
|
1631
|
-
id: "team-review-sandbox-open-network",
|
|
1632
|
-
path: "teamReview.sandbox.openNetwork",
|
|
1633
|
-
title: "Open network egress",
|
|
1634
|
-
description: "Let the review sandbox reach any domain instead of the allowlist.",
|
|
1635
|
-
control: "toggle",
|
|
1636
|
-
keywords: [
|
|
1637
|
-
"sandbox",
|
|
1638
|
-
"network",
|
|
1639
|
-
"egress",
|
|
1640
|
-
"open"
|
|
1641
|
-
],
|
|
1642
|
-
danger: true,
|
|
1643
|
-
warning: "Enabling this control lets code from the pull request under review reach any address, including the Glimmervoid dashboard on this machine, which it can use to start sessions outside the sandbox. Treat it as running the pull request author's code as you, unsandboxed.",
|
|
1644
|
-
defaultValue: false,
|
|
1645
|
-
...MACHINE_NOW
|
|
1646
|
-
},
|
|
1647
1593
|
{
|
|
1648
1594
|
id: "team-review-sandbox-load-mcp-servers",
|
|
1649
1595
|
path: "teamReview.sandbox.loadMcpServers",
|
|
@@ -1651,7 +1597,6 @@ var SECTIONS = Object.freeze([
|
|
|
1651
1597
|
description: "Give the Claude Code review agent your own MCP servers instead of none.",
|
|
1652
1598
|
control: "toggle",
|
|
1653
1599
|
keywords: [
|
|
1654
|
-
"sandbox",
|
|
1655
1600
|
"mcp",
|
|
1656
1601
|
"servers",
|
|
1657
1602
|
"tools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-B3VQlr0X.js";
|
|
@@ -4,8 +4,8 @@ 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
6
|
import { t as buildAgentEnv } from "./spawn-env-mgD54MHq.js";
|
|
7
|
-
import {
|
|
8
|
-
import { a as holdPreparedAgentHome, c as releaseAgentHome, s as
|
|
7
|
+
import { l as KIMI_HOME_PROFILE, m as renderKimiHooksBlock } from "./agent-home-core-DgW3orTE.js";
|
|
8
|
+
import { a as holdPreparedAgentHome, c as realAgentHome, l as releaseAgentHome, s as prepareScratchAgentHome } from "./agent-home-Cc2oGNYa.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
@@ -140,6 +140,15 @@ function prepareHome(env) {
|
|
|
140
140
|
if (hooksBlock === null) return { refusal: "the hook relay path cannot be written into a kimi hooks block" };
|
|
141
141
|
return holdPreparedAgentHome(KIMI_HOME_PROFILE, env, () => hooksBlock);
|
|
142
142
|
}
|
|
143
|
+
function prepareScratchHome(env, scratch) {
|
|
144
|
+
const hooksBlock = expectedHooksBlock();
|
|
145
|
+
if (hooksBlock === null) return { refusal: "the hook relay path cannot be written into a kimi hooks block" };
|
|
146
|
+
return prepareScratchAgentHome(KIMI_HOME_PROFILE, {
|
|
147
|
+
env,
|
|
148
|
+
renderBlock: () => hooksBlock,
|
|
149
|
+
...scratch
|
|
150
|
+
});
|
|
151
|
+
}
|
|
143
152
|
var WINDOWS_SHAPED_ROOT = /^(?:[A-Za-z]:\/|\/\/)/;
|
|
144
153
|
var MAX_WORKSPACE_SLUG_LENGTH = 40;
|
|
145
154
|
function slugifyWorkspaceName(name) {
|
|
@@ -205,6 +214,7 @@ var kimi = {
|
|
|
205
214
|
kind: "generated-home",
|
|
206
215
|
homeEnvName: HOME_ENV_NAME,
|
|
207
216
|
prepareHome,
|
|
217
|
+
prepareScratchHome,
|
|
208
218
|
releaseHome: releaseAgentHome
|
|
209
219
|
}
|
|
210
220
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-CKcgRTqA.js";
|