glimmervoid 0.47.1-next.229 → 0.47.1-next.231
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-CKVPSK_7.js → adapters-BMfx0b49.js} +7 -7
- package/dist/chunks/{adapters-CygniY1v.js → adapters-D0izCXcA.js} +1 -1
- package/dist/chunks/{agent-api-cli-BNhdK4kD.js → agent-api-cli-DZHKncku.js} +1 -1
- package/dist/chunks/{agent-api-cli-DIyFHMQ_.js → agent-api-cli-DzGmDEtP.js} +6 -10
- package/dist/chunks/{agent-api-core-DRLkUcDo.js → agent-api-core-BXsCOaJR.js} +76 -7
- package/dist/chunks/{agent-setup-cli-CwjtzaC0.js → agent-setup-cli-vosbXY_R.js} +1 -1
- package/dist/chunks/{build-channel-DTsNiNtD.js → build-channel-CMDHW0aU.js} +2 -2
- package/dist/chunks/{config-B4X9G6EN.js → config-CNjerNAG.js} +1 -1
- package/dist/chunks/{config-store-CdZUjqvn.js → config-store-BF-dXf5J.js} +2 -2
- package/dist/chunks/config-store-BW3pYl7k.js +1 -0
- package/dist/chunks/{git-version-CtTo5o6G.js → git-version-C89bPuT5.js} +1 -1
- package/dist/chunks/{grok-z6bXbyuG.js → grok-BJgm9k2N.js} +1 -1
- package/dist/chunks/kimi-PYH1vF_o.js +1 -0
- package/dist/chunks/{kimi-C0-lIyFc.js → kimi-_YASGtRn.js} +2 -2
- package/dist/chunks/{main-BUeQr1zB.js → main-Beo7pO0J.js} +52 -25
- package/dist/chunks/{pair-cli-CIIEfyMa.js → pair-cli-Bsj3DXdD.js} +2 -2
- package/dist/chunks/{remote-config-geigo1iu.js → remote-config-Kd68jYOd.js} +1 -1
- package/dist/chunks/{session-B2Wieg0a.js → session-BQaAlkib.js} +82 -6
- package/dist/chunks/{session-routes-Cr9S--Nf.js → session-routes-CmWSbar1.js} +1 -1
- package/dist/chunks/{settings-cli-De3PF699.js → settings-cli-D5wyNpyj.js} +5 -5
- package/dist/chunks/{settings-readout-core-BWm0p8no.js → settings-readout-core-B31x6QPQ.js} +2 -2
- package/dist/chunks/{shown-files-core-C7ER2sw2.js → shown-files-core-Obw4gbqC.js} +1 -1
- package/dist/chunks/{spawn-env-C-PfRa2d.js → spawn-env-Dh1MZR4M.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-BMkCBbTf.js → ssh-sign-cli-BoyzgqeN.js} +2 -2
- package/dist/client/assets/{action-status-BmCLf994.js → action-status-BhcsCW_q.js} +1 -1
- package/dist/client/assets/action-status-BhcsCW_q.js.br +0 -0
- package/dist/client/assets/{alert-sound-CHUOs9qA.js → alert-sound-CZSefPCd.js} +1 -1
- package/dist/client/assets/alert-sound-CZSefPCd.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-Dg2LUV_K.js → benchmark-panel-CcyJjR6F.js} +1 -1
- package/dist/client/assets/benchmark-panel-CcyJjR6F.js.br +0 -0
- package/dist/client/assets/{card-registry-TiXTLzQ_.js → card-registry-KozCALEU.js} +1 -1
- package/dist/client/assets/card-registry-KozCALEU.js.br +0 -0
- package/dist/client/assets/{celebration-player-DlXl8jYm.js → celebration-player-DgzvPNwv.js} +1 -1
- package/dist/client/assets/celebration-player-DgzvPNwv.js.br +0 -0
- package/dist/client/assets/{community-panel-B8_oX6Nf.js → community-panel-Cv-KWhma.js} +1 -1
- package/dist/client/assets/community-panel-Cv-KWhma.js.br +0 -0
- package/dist/client/assets/{control-ws-MHGZwhmZ.js → control-ws-Bpur1D9F.js} +1 -1
- package/dist/client/assets/control-ws-Bpur1D9F.js.br +0 -0
- package/dist/client/assets/{dialogs-CJKkG6cZ.js → dialogs-E3GjiOVp.js} +1 -1
- package/dist/client/assets/dialogs-E3GjiOVp.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-o1VDYOK8.js → doc-editor-ui-BFo9RCV8.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BFo9RCV8.js.br +0 -0
- package/dist/client/assets/{feature-hint-B2hJ0SjB.js → feature-hint-BcvF1_1P.js} +1 -1
- package/dist/client/assets/feature-hint-BcvF1_1P.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-CYwnZeLA.js → first-run-checklist-Dmm49wBj.js} +1 -1
- package/dist/client/assets/first-run-checklist-Dmm49wBj.js.br +0 -0
- package/dist/client/assets/{hooks-panel-DfDJyS4q.js → hooks-panel-D_1wYFxv.js} +1 -1
- package/dist/client/assets/hooks-panel-D_1wYFxv.js.br +0 -0
- package/dist/client/assets/{index-HmvxniAw.js → index-D-XJD0BW.js} +5 -5
- package/dist/client/assets/index-D-XJD0BW.js.br +0 -0
- package/dist/client/assets/{issues-panel-nfSCPAUe.js → issues-panel-CO6bjV5a.js} +1 -1
- package/dist/client/assets/issues-panel-CO6bjV5a.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-C2wVleEA.js → my-prs-panel-CWAcmQsW.js} +1 -1
- package/dist/client/assets/my-prs-panel-CWAcmQsW.js.br +0 -0
- package/dist/client/assets/{nyan-cat-BmmNNHu4.js → nyan-cat-nRD50B3O.js} +1 -1
- package/dist/client/assets/nyan-cat-nRD50B3O.js.br +0 -0
- package/dist/client/assets/{phone-shell-E7vGVTrv.js → phone-shell-BgMogHGU.js} +1 -1
- package/dist/client/assets/phone-shell-BgMogHGU.js.br +0 -0
- package/dist/client/assets/{plan-face-DYBUphuX.js → plan-face-BBHNaDb1.js} +1 -1
- package/dist/client/assets/plan-face-BBHNaDb1.js.br +0 -0
- package/dist/client/assets/{plan-render-Bd6JE_y9.js → plan-render-BrWO70P6.js} +1 -1
- package/dist/client/assets/plan-render-BrWO70P6.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DQ5dqb8Y.js → pr-queue-columns-Ck1FBv7y.js} +1 -1
- package/dist/client/assets/pr-queue-columns-Ck1FBv7y.js.br +0 -0
- package/dist/client/assets/{radar-panel-CxXbJzxA.js → radar-panel-BQGPRTRC.js} +1 -1
- package/dist/client/assets/radar-panel-BQGPRTRC.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-D1Cw-1yf.js → repo-roots-adder-D5aS6BU-.js} +1 -1
- package/dist/client/assets/repo-roots-adder-D5aS6BU-.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CQn64KVs.js → resume-dialog-DfmlYCAa.js} +1 -1
- package/dist/client/assets/resume-dialog-DfmlYCAa.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-DgI3YkW_.js → review-queue-panel-D9vcuLdb.js} +1 -1
- package/dist/client/assets/review-queue-panel-D9vcuLdb.js.br +0 -0
- package/dist/client/assets/{session-tick-DaSgyLUw.js → session-tick-D-K21l5t.js} +1 -1
- package/dist/client/assets/session-tick-D-K21l5t.js.br +0 -0
- package/dist/client/assets/{settings-panel-axhyHBh7.js → settings-panel-Dkcjsq4P.js} +2 -2
- package/dist/client/assets/settings-panel-Dkcjsq4P.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-4in4QXod.js → shown-lightbox-BdLPTLNS.js} +1 -1
- package/dist/client/assets/shown-lightbox-BdLPTLNS.js.br +0 -0
- package/dist/client/assets/{team-review-panel-us78gY1D.js → team-review-panel-PuynC5ds.js} +1 -1
- package/dist/client/assets/team-review-panel-PuynC5ds.js.br +0 -0
- package/dist/client/assets/{trace-panel-tFDwG3h5.js → trace-panel-WIwRiMUl.js} +1 -1
- package/dist/client/assets/trace-panel-WIwRiMUl.js.br +0 -0
- package/dist/client/assets/updates-view-core-0hJlwaqF.js +1 -0
- package/dist/client/assets/updates-view-core-0hJlwaqF.js.br +0 -0
- package/dist/client/assets/{usage-panel-DDKzBK3q.js → usage-panel-Dph-dz_N.js} +1 -1
- package/dist/client/assets/usage-panel-Dph-dz_N.js.br +0 -0
- package/dist/client/assets/{visions-panel-DR1x-xHl.js → visions-panel-Ivb9niDw.js} +1 -1
- package/dist/client/assets/visions-panel-Ivb9niDw.js.br +0 -0
- package/dist/client/index.html +6 -6
- 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-BoOtYk7l.js +0 -1
- package/dist/chunks/kimi-CZzNBlEO.js +0 -1
- package/dist/client/assets/action-status-BmCLf994.js.br +0 -0
- package/dist/client/assets/alert-sound-CHUOs9qA.js.br +0 -0
- package/dist/client/assets/benchmark-panel-Dg2LUV_K.js.br +0 -0
- package/dist/client/assets/card-registry-TiXTLzQ_.js.br +0 -0
- package/dist/client/assets/celebration-player-DlXl8jYm.js.br +0 -0
- package/dist/client/assets/community-panel-B8_oX6Nf.js.br +0 -0
- package/dist/client/assets/control-ws-MHGZwhmZ.js.br +0 -0
- package/dist/client/assets/dialogs-CJKkG6cZ.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-o1VDYOK8.js.br +0 -0
- package/dist/client/assets/feature-hint-B2hJ0SjB.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CYwnZeLA.js.br +0 -0
- package/dist/client/assets/hooks-panel-DfDJyS4q.js.br +0 -0
- package/dist/client/assets/index-HmvxniAw.js.br +0 -0
- package/dist/client/assets/issues-panel-nfSCPAUe.js.br +0 -0
- package/dist/client/assets/my-prs-panel-C2wVleEA.js.br +0 -0
- package/dist/client/assets/nyan-cat-BmmNNHu4.js.br +0 -0
- package/dist/client/assets/phone-shell-E7vGVTrv.js.br +0 -0
- package/dist/client/assets/plan-face-DYBUphuX.js.br +0 -0
- package/dist/client/assets/plan-render-Bd6JE_y9.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DQ5dqb8Y.js.br +0 -0
- package/dist/client/assets/radar-panel-CxXbJzxA.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-D1Cw-1yf.js.br +0 -0
- package/dist/client/assets/resume-dialog-CQn64KVs.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DgI3YkW_.js.br +0 -0
- package/dist/client/assets/session-tick-DaSgyLUw.js.br +0 -0
- package/dist/client/assets/settings-panel-axhyHBh7.js.br +0 -0
- package/dist/client/assets/shown-lightbox-4in4QXod.js.br +0 -0
- package/dist/client/assets/team-review-panel-us78gY1D.js.br +0 -0
- package/dist/client/assets/trace-panel-tFDwG3h5.js.br +0 -0
- package/dist/client/assets/updates-view-core-Dxvxlb5s.js +0 -1
- package/dist/client/assets/updates-view-core-Dxvxlb5s.js.br +0 -0
- package/dist/client/assets/usage-panel-DDKzBK3q.js.br +0 -0
- package/dist/client/assets/visions-panel-DR1x-xHl.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 { o as packageRoot } from "../chunks/runtime-paths-ghcH9CeW.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-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-BXsCOaJR.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-C89bPuT5.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";
|
|
@@ -65,15 +65,15 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
65
65
|
return 0;
|
|
66
66
|
}],
|
|
67
67
|
["pair", async (subcommandArgs) => {
|
|
68
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
68
|
+
const { runPairCli } = await import("../chunks/pair-cli-Bsj3DXdD.js");
|
|
69
69
|
return runPairCli(subcommandArgs);
|
|
70
70
|
}],
|
|
71
71
|
["agent", async (subcommandArgs) => {
|
|
72
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
72
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-vosbXY_R.js");
|
|
73
73
|
return runAgentSetupCli(subcommandArgs);
|
|
74
74
|
}],
|
|
75
75
|
["settings", async (subcommandArgs) => {
|
|
76
|
-
const { runSettingsCli } = await import("../chunks/settings-cli-
|
|
76
|
+
const { runSettingsCli } = await import("../chunks/settings-cli-D5wyNpyj.js");
|
|
77
77
|
return runSettingsCli(subcommandArgs);
|
|
78
78
|
}],
|
|
79
79
|
["visions", async (subcommandArgs) => {
|
|
@@ -81,13 +81,13 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
81
81
|
return runVisionsCli(subcommandArgs);
|
|
82
82
|
}],
|
|
83
83
|
["ssh-sign", async (subcommandArgs) => {
|
|
84
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
84
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-BoyzgqeN.js");
|
|
85
85
|
return runSshSignCli(subcommandArgs);
|
|
86
86
|
}]
|
|
87
87
|
];
|
|
88
88
|
var ownSubcommandNames = new Set(OWN_SUBCOMMAND_RUNNERS.map(([name]) => name));
|
|
89
89
|
var SUBCOMMAND_RUNNERS = new Map([...OWN_SUBCOMMAND_RUNNERS, ...AGENT_API_VERBS.filter((verb) => !ownSubcommandNames.has(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
90
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
90
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-DZHKncku.js");
|
|
91
91
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
92
92
|
}])]);
|
|
93
93
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -101,7 +101,7 @@ function missingAgentText(agentId) {
|
|
|
101
101
|
}
|
|
102
102
|
async function printSessionLimits() {
|
|
103
103
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
104
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
104
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-DZHKncku.js");
|
|
105
105
|
const limitsLines = await sessionLimitsHelpLines();
|
|
106
106
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
107
107
|
}
|
|
@@ -158,7 +158,7 @@ async function readDeclaredCustomAgents() {
|
|
|
158
158
|
declared: [],
|
|
159
159
|
error: null
|
|
160
160
|
};
|
|
161
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
161
|
+
const { loadConfigFile } = await import("../chunks/config-store-BW3pYl7k.js");
|
|
162
162
|
try {
|
|
163
163
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
164
164
|
if (!loaded.config) return {
|
|
@@ -234,7 +234,7 @@ async function runDoctor() {
|
|
|
234
234
|
}
|
|
235
235
|
switchSection("Agents");
|
|
236
236
|
try {
|
|
237
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
237
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-D0izCXcA.js");
|
|
238
238
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
239
239
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
240
240
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -242,10 +242,10 @@ async function runDoctor() {
|
|
|
242
242
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
243
243
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
244
244
|
}
|
|
245
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
245
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-vosbXY_R.js");
|
|
246
246
|
const grokSetup = inspectGrokAgentSetup();
|
|
247
247
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
248
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
248
|
+
const { default: kimi } = await import("../chunks/kimi-PYH1vF_o.js");
|
|
249
249
|
const { describeKimiHome } = await import("../chunks/kimi-home-DEuu2e0l.js");
|
|
250
250
|
line("kimi home", describeKimiHome(kimi.expectedHooksBlock()));
|
|
251
251
|
} catch (err) {
|
|
@@ -255,7 +255,7 @@ async function runDoctor() {
|
|
|
255
255
|
try {
|
|
256
256
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-Cc0_ZR6V.js");
|
|
257
257
|
const { execFileSync } = await import("../chunks/child-process-safe-BKjzSEYd.js");
|
|
258
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
258
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-vosbXY_R.js");
|
|
259
259
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
260
260
|
line("Sane YOLO", binPath || "not installed");
|
|
261
261
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { s as relayPath } from "./runtime-paths-ghcH9CeW.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Vt as shortSha$1, zt as FULL_SHA_RE } from "./session-BQaAlkib.js";
|
|
3
3
|
import { i as execFileSync, r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
4
|
-
import { Ot as UpdateChannel, S as InstallFlavor, c as SHELL_AGENT_ID } from "./config-
|
|
5
|
-
import { o as supervisionLine } from "./session-routes-
|
|
4
|
+
import { Ot as UpdateChannel, S as InstallFlavor, c as SHELL_AGENT_ID } from "./config-CNjerNAG.js";
|
|
5
|
+
import { o as supervisionLine } from "./session-routes-CmWSbar1.js";
|
|
6
6
|
import { c as textOr, i as numberOr, s as rawTextOr } from "./coerce-NSst8oRP.js";
|
|
7
7
|
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
8
8
|
import { n as parseJsonRecord } from "./json-core-dfa_7Fak.js";
|
|
9
9
|
import { n as SANE_YOLO_PATH_ENV, r as saneYoloEnv } from "./sane-yolo-DSyFqbVE.js";
|
|
10
10
|
import { r as nextBackoffMs } from "./backoff-DjVpfHk7.js";
|
|
11
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
11
|
+
import { t as buildAgentEnv } from "./spawn-env-Dh1MZR4M.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-
|
|
14
|
-
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-
|
|
15
|
-
import { t as kimi } from "./kimi-
|
|
13
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-BJgm9k2N.js";
|
|
14
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-CMDHW0aU.js";
|
|
15
|
+
import { t as kimi } from "./kimi-_YASGtRn.js";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
//#region session/adapters/claude-code.ts
|
|
@@ -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-BMfx0b49.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-DzGmDEtP.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as errorCode } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as formatSessionLimits } from "./session-routes-
|
|
4
|
-
import {
|
|
2
|
+
import { l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-BQaAlkib.js";
|
|
3
|
+
import { i as formatSessionLimits } from "./session-routes-CmWSbar1.js";
|
|
4
|
+
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-BXsCOaJR.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-dfa_7Fak.js";
|
|
8
|
-
import { r as describeOverCap } from "./shown-files-core-
|
|
8
|
+
import { r as describeOverCap } from "./shown-files-core-Obw4gbqC.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import http from "node:http";
|
|
@@ -63,7 +63,7 @@ var BODY_BUILDERS = {
|
|
|
63
63
|
},
|
|
64
64
|
limits: () => ({}),
|
|
65
65
|
review: pullRequestBody,
|
|
66
|
-
reviews: () => ({}
|
|
66
|
+
reviews: (rest) => pullRequestBody(rest) ?? {},
|
|
67
67
|
prs: () => ({}),
|
|
68
68
|
"link-pr": pullRequestBody,
|
|
69
69
|
settings: ([command, settingPath]) => ({
|
|
@@ -84,10 +84,6 @@ function limitsLines(replyText) {
|
|
|
84
84
|
if (!limits.success) return null;
|
|
85
85
|
return formatSessionLimits(limits.data);
|
|
86
86
|
}
|
|
87
|
-
function printableReply(verb, replyText) {
|
|
88
|
-
if (verb !== "limits") return replyText;
|
|
89
|
-
return limitsLines(replyText)?.join("\n") ?? replyText;
|
|
90
|
-
}
|
|
91
87
|
function verbEndpoint(rawUrl, verb) {
|
|
92
88
|
const target = resolveHookTarget(rawUrl, verb, AGENT_PATH_PREFIX);
|
|
93
89
|
if (!target.url) return { ok: false };
|
|
@@ -334,7 +330,7 @@ async function runAgentApiCli(args) {
|
|
|
334
330
|
token: target.token,
|
|
335
331
|
body
|
|
336
332
|
});
|
|
337
|
-
console.log(
|
|
333
|
+
console.log(reply.text);
|
|
338
334
|
return reply.hasSuccessStatus && bodySaysOk(reply.text) ? 0 : 1;
|
|
339
335
|
}
|
|
340
336
|
function sessionEndpoint(verb) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { D 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-BQaAlkib.js";
|
|
2
|
+
import { D as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-CNjerNAG.js";
|
|
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";
|
|
6
6
|
//#region shared/session-naming.ts
|
|
@@ -453,6 +453,7 @@ function chooseRefinedSessionName({ currentName, projectFolderName, proposedName
|
|
|
453
453
|
var MAX_LIFETIME_SPAWNS = 10;
|
|
454
454
|
var MAX_SPAWNS_IN_FLIGHT = 1;
|
|
455
455
|
var REFUSAL_REASON = "unknown session";
|
|
456
|
+
var BROKEN_REPLY_STATUS = 500;
|
|
456
457
|
var INVALID_BODY_STATUS = 400;
|
|
457
458
|
var ROLE_REFUSED_STATUS = 403;
|
|
458
459
|
var PUSH_REFUSED_STATUS = 409;
|
|
@@ -564,6 +565,20 @@ var parsePullRequestBody = (payload) => {
|
|
|
564
565
|
request: { pullRequestKey }
|
|
565
566
|
};
|
|
566
567
|
};
|
|
568
|
+
var parseReviewsBody = (payload) => {
|
|
569
|
+
const parsed = AgentReviewsRequest.safeParse(payload);
|
|
570
|
+
if (!parsed.success) return refuseInvalidBody(parsed.error.issues);
|
|
571
|
+
if (parsed.data.pr === void 0) return {
|
|
572
|
+
ok: true,
|
|
573
|
+
request: { pullRequestKey: null }
|
|
574
|
+
};
|
|
575
|
+
const pullRequest = parsePullRequestBody({ pr: parsed.data.pr });
|
|
576
|
+
if (!pullRequest.ok) return pullRequest;
|
|
577
|
+
return {
|
|
578
|
+
ok: true,
|
|
579
|
+
request: { pullRequestKey: pullRequest.request.pullRequestKey }
|
|
580
|
+
};
|
|
581
|
+
};
|
|
567
582
|
var REQUEST_PARSERS = Object.freeze({
|
|
568
583
|
spawn: bodyParser(AgentSpawnRequest),
|
|
569
584
|
send: bodyParser(AgentSendRequest),
|
|
@@ -577,11 +592,32 @@ var REQUEST_PARSERS = Object.freeze({
|
|
|
577
592
|
show: parseEmptyBody,
|
|
578
593
|
limits: parseEmptyBody,
|
|
579
594
|
review: parsePullRequestBody,
|
|
580
|
-
reviews:
|
|
595
|
+
reviews: parseReviewsBody,
|
|
581
596
|
prs: parseEmptyBody,
|
|
582
597
|
"link-pr": parsePullRequestBody,
|
|
583
598
|
settings: bodyParser(AgentSettingsRequest)
|
|
584
599
|
});
|
|
600
|
+
function checkAgentReply(verb, reply) {
|
|
601
|
+
const checked = AGENT_REPLY_SCHEMAS[verb].safeParse(reply.body);
|
|
602
|
+
if (checked.success) return {
|
|
603
|
+
ok: true,
|
|
604
|
+
reply: {
|
|
605
|
+
status: reply.status,
|
|
606
|
+
body: checked.data
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
return {
|
|
610
|
+
ok: false,
|
|
611
|
+
issue: checked.error.issues[0]?.message ?? "unknown issue",
|
|
612
|
+
reply: {
|
|
613
|
+
status: BROKEN_REPLY_STATUS,
|
|
614
|
+
body: {
|
|
615
|
+
ok: false,
|
|
616
|
+
error: `glimmervoid built a ${verb} reply that breaks its contract`
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
}
|
|
585
621
|
function parseAgentVerb(verb, payload) {
|
|
586
622
|
if (!isAgentApiVerb(verb)) return {
|
|
587
623
|
ok: false,
|
|
@@ -674,6 +710,39 @@ function projectReviews({ configured, reason, inFlight, queued, drafts }) {
|
|
|
674
710
|
}))
|
|
675
711
|
};
|
|
676
712
|
}
|
|
713
|
+
var UNTRUSTED_DRAFT_NOTE = "the draft was written by a model that read the untrusted pull request, so verify each point before acting on it";
|
|
714
|
+
function projectReviewDetail({ drafts, inFlight, queued }, pullRequestKey) {
|
|
715
|
+
const requestedKey = pullRequestKey.toLowerCase();
|
|
716
|
+
const isRequested = (review) => review.key.toLowerCase() === requestedKey;
|
|
717
|
+
const running = inFlight.find(isRequested);
|
|
718
|
+
const draft = drafts.find(isRequested);
|
|
719
|
+
if (draft) return {
|
|
720
|
+
ok: true,
|
|
721
|
+
key: draft.key,
|
|
722
|
+
state: "drafted",
|
|
723
|
+
phase: running?.phase ?? null,
|
|
724
|
+
note: UNTRUSTED_DRAFT_NOTE,
|
|
725
|
+
draft
|
|
726
|
+
};
|
|
727
|
+
if (running) return {
|
|
728
|
+
ok: true,
|
|
729
|
+
key: running.key,
|
|
730
|
+
state: "reviewing",
|
|
731
|
+
phase: running.phase,
|
|
732
|
+
note: null,
|
|
733
|
+
draft: null
|
|
734
|
+
};
|
|
735
|
+
const waiting = queued.find(isRequested);
|
|
736
|
+
if (!waiting) return null;
|
|
737
|
+
return {
|
|
738
|
+
ok: true,
|
|
739
|
+
key: waiting.key,
|
|
740
|
+
state: "queued",
|
|
741
|
+
phase: null,
|
|
742
|
+
note: null,
|
|
743
|
+
draft: null
|
|
744
|
+
};
|
|
745
|
+
}
|
|
677
746
|
function projectMyPrs(snapshot) {
|
|
678
747
|
if (!snapshot) return {
|
|
679
748
|
ok: true,
|
|
@@ -772,8 +841,8 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
772
841
|
missingArgumentHint: "glimmervoid review: this command needs a pull request, for example \"glimmervoid review https://github.com/acme/app/pull/12\" or \"glimmervoid review acme/app#12\""
|
|
773
842
|
},
|
|
774
843
|
reviews: {
|
|
775
|
-
usage: "reviews",
|
|
776
|
-
summary: "List the Reviews tab: reviews running, queued and drafted",
|
|
844
|
+
usage: "reviews [pr]",
|
|
845
|
+
summary: "List the Reviews tab: reviews running, queued and drafted; with a pull request, read its draft in full",
|
|
777
846
|
missingArgumentHint: null
|
|
778
847
|
},
|
|
779
848
|
prs: {
|
|
@@ -801,4 +870,4 @@ function agentCommandHelpLines() {
|
|
|
801
870
|
return Object.values(AGENT_COMMAND_HELP).map(({ usage, summary }) => ` ${usage.padEnd(Math.max(USAGE_COLUMN_WIDTH, usage.length + 1))}${summary}`);
|
|
802
871
|
}
|
|
803
872
|
//#endregion
|
|
804
|
-
export {
|
|
873
|
+
export { parseRefinedTaskTitle as A, claudeProjectsDir as B, extractAiTitle as C, isSelfWakePrompt as D, extractPromptTaskTitle as E, RESUME_ID_RE as F, nextSuggestedName as G, listRepoConversations as H, pickAutoResume as I, resolveResumeTarget as L, resolveTaskTitle as M, seedTaskTitleSources as N, isSubstantivePrompt as O, AUTO_CONTINUE_PROMPT as P, resumePromptFor as R, decideTaskTitleRefinement as S, extractOscTaskTitle as T, listRepoWorktreePaths as U, encodeProjectDir as V, isAutoNameOf as W, projectReviews as _, decideAgentRequest as a, chooseRefinedSessionName as b, describeChildEndNote as c, describeRoleRefusal as d, describeUnpushedCloseRefusal as f, projectReviewDetail as g, projectMyPrs as h, checkAgentReply as i, resolveRefocusTaskTitle as j, parseRefinedSessionName as k, describeKeptChildAttention as l, parseAgentVerb as m, REFUSAL_REASON as n, decideSpawnAllowance as o, isAgentApiVerb as p, agentCommandHelpLines as r, deriveChildSessionName as s, AGENT_COMMAND_HELP as t, describePushLanding as u, buildPersistedTaskTitle as v, extractHookTaskTitle as w, cleanTaskPrompt as x, buildTaskTitleRefinementPrompt as y, shouldAdoptReportedResumeId as z };
|
|
@@ -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-BJgm9k2N.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-BjFK_eSH.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./session-
|
|
2
|
-
import { C as ONBOARDING_STEPS, E as OPERATOR_SURFACES, T as OPERATOR_ACTIONS_BY_SURFACE, j as HintFeature, n as BUILTIN_AGENT_IDS, w as ONBOARDING_STEP_STATES, x as DASHBOARD_VIEWS } from "./config-
|
|
1
|
+
import "./session-BQaAlkib.js";
|
|
2
|
+
import { C as ONBOARDING_STEPS, E as OPERATOR_SURFACES, T as OPERATOR_ACTIONS_BY_SURFACE, j as HintFeature, n as BUILTIN_AGENT_IDS, w as ONBOARDING_STEP_STATES, x as DASHBOARD_VIEWS } from "./config-CNjerNAG.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
|
|
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-BQaAlkib.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -2,11 +2,11 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
|
|
3
3
|
import { o as packageRoot } from "./runtime-paths-ghcH9CeW.js";
|
|
4
4
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
5
|
-
import { $ as FLYING_ANIMALS_DEFAULTS, Dt as UPDATE_CHANNELS, Q as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_RETAIN_DAYS_RANGE, at as NON_NEGATIVE_NUMBER_RANGE, bt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, ct as POSTHOG_FIX_TIMEOUT_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, et as FLYING_ANIMALS_DURATION_RANGE, ft as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, gt as USAGE_INTEGER_RANGES, h as normalizeLegacyConfigNumbers, ht as USAGE_BUDGET_RANGE, i as Config, it as MEMORY_RESERVE_MB_RANGE, lt as POSTHOG_PROJECT_ID_RANGE, mt as TASK_TITLE_TIMEOUT_RANGE, n as BUILTIN_AGENT_IDS, nt as FLYING_ANIMALS_SCALE_RANGE, ot as PORT_RANGE, p as USAGE_COST_MODES, pt as REPLAY_BUFFER_KB_RANGE, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSITIVE_NUMBER_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_GAP_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_BASELINE_RANGE, vt as USAGE_SCAN_INTERVAL_RANGE, yt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE } from "./config-
|
|
5
|
+
import { $ as FLYING_ANIMALS_DEFAULTS, Dt as UPDATE_CHANNELS, Q as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_RETAIN_DAYS_RANGE, at as NON_NEGATIVE_NUMBER_RANGE, bt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, ct as POSTHOG_FIX_TIMEOUT_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, et as FLYING_ANIMALS_DURATION_RANGE, ft as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, gt as USAGE_INTEGER_RANGES, h as normalizeLegacyConfigNumbers, ht as USAGE_BUDGET_RANGE, i as Config, it as MEMORY_RESERVE_MB_RANGE, lt as POSTHOG_PROJECT_ID_RANGE, mt as TASK_TITLE_TIMEOUT_RANGE, n as BUILTIN_AGENT_IDS, nt as FLYING_ANIMALS_SCALE_RANGE, ot as PORT_RANGE, p as USAGE_COST_MODES, pt as REPLAY_BUFFER_KB_RANGE, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSITIVE_NUMBER_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_GAP_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_BASELINE_RANGE, vt as USAGE_SCAN_INTERVAL_RANGE, yt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE } from "./config-CNjerNAG.js";
|
|
6
6
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
7
7
|
import { t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
|
|
8
8
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-BjFK_eSH.js";
|
|
9
|
-
import { f as FeatureFlagsResponse, g as TELEMETRY_KILL_SWITCH_FLAG, n as isExperimentalBuild, p as MAX_TEXT_LENGTH } from "./build-channel-
|
|
9
|
+
import { f as FeatureFlagsResponse, g as TELEMETRY_KILL_SWITCH_FLAG, n as isExperimentalBuild, p as MAX_TEXT_LENGTH } from "./build-channel-CMDHW0aU.js";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import os from "node:os";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-BF-dXf5J.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AGENT_API_VERBS } from "./session-
|
|
1
|
+
import { t as AGENT_API_VERBS } from "./session-BQaAlkib.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([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { s as relayPath } from "./runtime-paths-ghcH9CeW.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
4
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
4
|
+
import { t as buildAgentEnv } from "./spawn-env-Dh1MZR4M.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-_YASGtRn.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as relayPath } from "./runtime-paths-ghcH9CeW.js";
|
|
2
|
-
import {
|
|
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
5
|
import { t as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-DSyFqbVE.js";
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
6
|
+
import { t as buildAgentEnv } from "./spawn-env-Dh1MZR4M.js";
|
|
7
7
|
import { a as prepareKimiHome, i as kimiHomeLinkRefusal, n as generatedKimiHomePath, o as realKimiHome, p as renderKimiHooksBlock, r as holdKimiHome, s as releaseKimiHome } from "./kimi-home-WZ9E4f-u.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
@@ -3,13 +3,13 @@ import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./te
|
|
|
3
3
|
import { a as sanitizeWorktreeName, i as safePathSegment, n as equalsIgnoringCaseOnWindows, r as isPathInside, t as caseFoldedPathKey } from "./paths-Bu4eH1Yd.js";
|
|
4
4
|
import { c as resolvePackageBin, i as clientDir, n as bundled, o as packageRoot, r as cliPath, s as relayPath, t as assetRoot } from "./runtime-paths-ghcH9CeW.js";
|
|
5
5
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
6
|
-
import {
|
|
6
|
+
import { $ as MyPrMergeWhenReadyRequest, $t as RESTARTABLE_STATES, A as SIGN_URL_ENV, At as TeamReviewStateEntry, Bt as HEX_SHA_RE, Ct as ReviewResult, D as SESSION_NAME_PATTERN, Et as TeamReviewActionRequest, F as ShownFile, Ft as canApproveAfterComment, G as MyPrCheckContextsResponse, Gt as repoParts, H as MyPr, Ht as GH_SEGMENT, It as decisionAsIfApprovalRequired, J as MyPrLaneEntry, K as MyPrKeepMergeableRequest, L as SshSignRequest, Mt as TeamReviewThreadCommentsResponse, Nt as TeamReviewThreadResult, O as SESSION_NAME_RULE_TEXT, Ot as TeamReviewCompareFiles, Pt as TeamReviewThreadsRepository, Q as MyPrMergeStateResponse, Qt as MERGEABLE_LIVE_STATES, Rt as hasStandingViewerApproval, S as ConversationQuestion, St as ReviewFinding, T as SESSION_DOC_BODY_CAP_BYTES, Tt as ReviewVerdict, U as MyPrAutoRebase, Ut as NODE_ID_RE, V as LinkedPr, Vt as shortSha, W as MyPrCheckContext, Wt as REPO_SLUG_RE, X as MyPrMergeRequest, Xt as BADGE_LABELS, Y as MyPrMergeMethod, Zt as KILLABLE_STATES, _ as COHERENCE_HOOKS_INACTIVE, _t as PostingPlan, at as MyPrsState, b as CONVERSATION_TOOL_RESULT_HOOK_EVENT, bt as ReviewComment, dt as DECIDING_REVIEW_STATES, en as STATES, ft as EarlierReview, gt as PostedReviewEvent, ht as GithubReviewState, i as ASK_USER_QUESTION_TOOL_NAME, it as MyPrsSnapshot, j as SSH_SIGN_BODY_CAP_BYTES, jt as TeamReviewStatus, k as SHOWN_FILE_CAP_BYTES, kt as TeamReviewResolveResponse, nt as MyPrThreadNode, pt as FindingSeverity, r as AGENT_URL_ENV, rt as MyPrThreadsResponse, ut as CommitSha, v as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, vt as PrDetail, wt as ReviewThreadId, xt as ReviewDraft, y as CONVERSATION_PERMISSION_HOOK_EVENT, z as TaskTitle } from "./session-BQaAlkib.js";
|
|
7
7
|
import { c as spawn, i as execFileSync, n as execFile, r as execFileAsync, t as assertLaunchable } from "./child-process-safe-BCOoKfxG.js";
|
|
8
|
-
import { $t as issuePullRequestStateFromGithub, A as HINT_VIEW_BY_FEATURE, At as SessionSetup, B as MergedPrListing, Bt as PLAN_RESULT_HOOK_EVENT, Ct as CommunityItem, D as pullRequestKeyFromReference, Et as DISCORD_CHANNEL_NAME_RE, F as BenchmarkJudgement, Ft as ChangeMap, G as GithubPrLightSearchNode, Gt as planTitle, H as PrCheckoutCaseInput, Ht as PlanDecision, I as BenchmarkRun, It as changeMapFactId, J as WorkflowCommentBody, Jt as IssueKey, K as GithubPrsFrame, Kt as GithubIssuePullRequestsRepository, L as BenchmarkStatus, Lt as PLAN_BODY_CAP_BYTES, M as BenchmarkActionRequest, Mt as TraceCheckpoint, N as BenchmarkCase, Nt as TraceRecord, O as FeatureHintState, P as BenchmarkId, Pt as CoherenceJournalOutput, Qt as IssuesStatus, R as BenchmarkSuite, Rt as PLAN_HOOK_EVENT, St as CommunityDraft, Tt as CommunityVerdict, U as GithubPrDetailNode, Ut as PlanRevision, V as MinedPrReviewData, Vt as PLAN_TOOL_NAME, W as GithubPrKey, Wt as parseExitPlanModeHookPayload, X as WorkflowsSettings, Xt as IssuesSearchResponse, Y as WorkflowLabelName, Yt as IssueUpdate, Z as WorkflowsState, Zt as IssuesState, a as ConfigUpdate, b as ClientMessage, c as SHELL_AGENT_ID, f as ReviewAgentId, g as CHANGES_POLL_INTERVAL_MS, gt as USAGE_INTEGER_RANGES, jt as MAX_RAW_LINE_CHARS, k as HINT_FEATURES, kt as UpdateJournal, m as USAGE_VENDOR_KEYS, p as USAGE_COST_MODES, q as comparablePrKey, qt as GithubIssueResponse, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CLIENT_LOG_TEXT_MAX_CHARS, wt as CommunityState, xt as CommunityActionRequest, y as CONTROL_FRAME_MAX_BYTES, z as CommitComparison, zt as PLAN_HOOK_OUTPUT_MAX_CHARS } from "./config-
|
|
9
|
-
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-
|
|
10
|
-
import { A as
|
|
8
|
+
import { $t as issuePullRequestStateFromGithub, A as HINT_VIEW_BY_FEATURE, At as SessionSetup, B as MergedPrListing, Bt as PLAN_RESULT_HOOK_EVENT, Ct as CommunityItem, D as pullRequestKeyFromReference, Et as DISCORD_CHANNEL_NAME_RE, F as BenchmarkJudgement, Ft as ChangeMap, G as GithubPrLightSearchNode, Gt as planTitle, H as PrCheckoutCaseInput, Ht as PlanDecision, I as BenchmarkRun, It as changeMapFactId, J as WorkflowCommentBody, Jt as IssueKey, K as GithubPrsFrame, Kt as GithubIssuePullRequestsRepository, L as BenchmarkStatus, Lt as PLAN_BODY_CAP_BYTES, M as BenchmarkActionRequest, Mt as TraceCheckpoint, N as BenchmarkCase, Nt as TraceRecord, O as FeatureHintState, P as BenchmarkId, Pt as CoherenceJournalOutput, Qt as IssuesStatus, R as BenchmarkSuite, Rt as PLAN_HOOK_EVENT, St as CommunityDraft, Tt as CommunityVerdict, U as GithubPrDetailNode, Ut as PlanRevision, V as MinedPrReviewData, Vt as PLAN_TOOL_NAME, W as GithubPrKey, Wt as parseExitPlanModeHookPayload, X as WorkflowsSettings, Xt as IssuesSearchResponse, Y as WorkflowLabelName, Yt as IssueUpdate, Z as WorkflowsState, Zt as IssuesState, a as ConfigUpdate, b as ClientMessage, c as SHELL_AGENT_ID, f as ReviewAgentId, g as CHANGES_POLL_INTERVAL_MS, gt as USAGE_INTEGER_RANGES, jt as MAX_RAW_LINE_CHARS, k as HINT_FEATURES, kt as UpdateJournal, m as USAGE_VENDOR_KEYS, p as USAGE_COST_MODES, q as comparablePrKey, qt as GithubIssueResponse, r as BrowserConfig, rt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CLIENT_LOG_TEXT_MAX_CHARS, wt as CommunityState, xt as CommunityActionRequest, y as CONTROL_FRAME_MAX_BYTES, z as CommitComparison, zt as PLAN_HOOK_OUTPUT_MAX_CHARS } from "./config-CNjerNAG.js";
|
|
9
|
+
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-CmWSbar1.js";
|
|
10
|
+
import { A as parseRefinedTaskTitle, B as claudeProjectsDir, C as extractAiTitle, D as isSelfWakePrompt, E as extractPromptTaskTitle, F as RESUME_ID_RE, G as nextSuggestedName, H as listRepoConversations, I as pickAutoResume, L as resolveResumeTarget, M as resolveTaskTitle, N as seedTaskTitleSources, O as isSubstantivePrompt, P as AUTO_CONTINUE_PROMPT, R as resumePromptFor, S as decideTaskTitleRefinement, T as extractOscTaskTitle, U as listRepoWorktreePaths, V as encodeProjectDir, W as isAutoNameOf, _ as projectReviews, a as decideAgentRequest, b as chooseRefinedSessionName, c as describeChildEndNote, d as describeRoleRefusal, f as describeUnpushedCloseRefusal, g as projectReviewDetail, h as projectMyPrs, i as checkAgentReply, j as resolveRefocusTaskTitle, k as parseRefinedSessionName, l as describeKeptChildAttention, m as parseAgentVerb, n as REFUSAL_REASON, o as decideSpawnAllowance, s as deriveChildSessionName, u as describePushLanding, v as buildPersistedTaskTitle, w as extractHookTaskTitle, x as cleanTaskPrompt, y as buildTaskTitleRefinementPrompt, z as shouldAdoptReportedResumeId } from "./agent-api-core-BXsCOaJR.js";
|
|
11
11
|
import { a as positiveIntOr, c as textOr, i as numberOr, n as isRecord, o as positiveNumberOr, r as nonNegativeIntOr, s as rawTextOr, t as coercedNumberOr } from "./coerce-NSst8oRP.js";
|
|
12
|
-
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-
|
|
12
|
+
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-C89bPuT5.js";
|
|
13
13
|
import { n as checkGuardrailsDependencies, t as allowGuardedSpawn } from "./guardrails-deps-BfZSPpNs.js";
|
|
14
14
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
15
15
|
import { t as HOOK_VIA_GUARDRAILS_PROXY_ENV } from "./guardrails-proxy-core-BI3rdY-m.js";
|
|
@@ -19,18 +19,18 @@ import { i as saneYoloFiles } from "./sane-yolo-DSyFqbVE.js";
|
|
|
19
19
|
import { _ as lineStartOffsets, a as projectForUri, b as replacedSpanOfWholeTextChange, c as visionsLaneReloadSignature, d as applyDidOpen, f as createDocStore, g as lineOfOffset, h as getDoc, i as isUriInProjects, l as applyDidChange, m as formatRange, n as applyEditorNotification, o as resolveVisionsScopeProjects, p as detectBlankLineBoundary, r as createEditorState, s as scopePathsOf, t as ACTIVITY_METHOD, u as applyDidClose, v as listDocs, x as uriOfParams, y as offsetOfPosition } from "./ingest-editor-core-B2tycW_m.js";
|
|
20
20
|
import { n as DEFAULT_MAX_MS, r as nextBackoffMs, t as DEFAULT_BASE_MS } from "./backoff-DjVpfHk7.js";
|
|
21
21
|
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
|
|
22
|
-
import { a as readPageTitle, i as filesAfterRetention, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, t as SHOWN_SNIFF_BYTES } from "./shown-files-core-
|
|
22
|
+
import { a as readPageTitle, i as filesAfterRetention, n as decideShownKind, o as shownMimeForFilename, r as describeOverCap, t as SHOWN_SNIFF_BYTES } from "./shown-files-core-Obw4gbqC.js";
|
|
23
23
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
24
24
|
import { C as parseCgroupBytes, S as memoryReserveBytes, T as parseMemAvailableBytes, _ as createSpawnGate, a as jsonStateLoadError, b as cgroupLimitBytes, c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, g as createSerialQueue, h as createMemoryAdmission, i as createJsonStateWriter, m as createKeyedSerialQueue, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomicSync, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, u as writeJsonAtomic, v as isQueueAdmissionTimeout, w as parseCgroupV2Path, x as headroomFromReadings, y as cgroupAncestorPaths } from "./json-file-BjFK_eSH.js";
|
|
25
|
-
import { $ as DEFAULT_BRANCH_GC_PREFIXES, A as isExperimentalSetting, B as claudeAccountUuidOf, F as buildAiGenerationEvents, G as exceptionFingerprint, H as decideIsDevInstall, I as buildBrowserExceptionProperties, J as resolveProjectToken, K as nodeMajorVersion, L as buildExceptionProperties, M as TELEMETRY_BATCH_URL, N as TELEMETRY_FLAGS_URL, P as adapterBucket, R as buildPersonProperties, U as decideRemoteTelemetryState, V as codexUserIdOf, W as decideTelemetryConsent, Z as stableConfigKey, _ as SETTINGS_INDEX, a as ensureProjectIds, at as worktreeIntegrationTips, ct as isSameDirectoryPath, et as matchedPrefix, g as validateSettingsBlock, h as settingsBlockSpecFor, i as createConfigStore, it as usablePrefixes, j as FIRST_RUN_NOTICE, m as mergeSettingsBlock, n as DEFAULT_CONFIG, nt as planWorktreeGc, o as generateProjectId, ot as canonicalizePath, q as parsePosthogReleaseId, rt as sessionIdFromBranch, s as glimmervoidHomeDir$1, st as comparableDirectoryPath, t as ABORT_CONFIG_SAVE, tt as planBranchGc, z as classifySessionExit } from "./config-store-
|
|
26
|
-
import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-
|
|
27
|
-
import { $ as identityFromRelPath, A as decideFileRead, B as sessionsRootCandidates, C as pickNewestPublished, D as codexRootCandidates, E as codexHomes, F as kimiHomes, G as kimiSessionIdFromPath, H as shouldPersistWarehouse, I as passOutcome, J as dedupKeys, K as parseKimiUsageLine, L as projectDirCandidates, M as expandTilde, N as grokHomes, O as codexSessionIdFromPath, P as isUsageFile, Q as foldReplacementIntoGenerationRollup, R as resolveProjectsDirs, S as parseResolvedSha, T as codexFallbackRoots, U as splitLines$1, V as shouldEvaluateDespiteIoFailures, W as kimiDedupIdentity, X as expandAdvisorIterations, Y as emptyTotals, Z as foldEntryIntoGenerationRollup, _ as isCheckFresh, a as describeAgentResolvability, at as totalTokensOf$1, b as parseRegistryDeprecation, c as isKnownAgentId, ct as claudeCode, d as resolveAdapter, et as isWithinGenerationRecencyWindow, f as setCustomAgents, g as decideUpdateStatus, h as decideInstallFlavor, i as customAgentFingerprint, it as shouldReplace, j as dedupeCodexFiles, k as continuationDelayMs, l as listAgentIds, m as readHostCodexVersion, n as cachedAgentResolvability, nt as parseJsonLine, o as getAdapter, ot as vendorUsageEntry, p as codex, q as addEntryToTotals, r as commandFor, rt as parseUsageLine, s as hookProfileOf, st as HOOK_TOOLS, t as DEFAULT_AGENT_ID, tt as mergeGenerationRollups, u as resetCommandCache, v as normalizeSha, w as shortSha$1, x as parseRegistryLatest, y as normalizeUpdateChannel, z as scopedClaudeRoots } from "./adapters-
|
|
25
|
+
import { $ as DEFAULT_BRANCH_GC_PREFIXES, A as isExperimentalSetting, B as claudeAccountUuidOf, F as buildAiGenerationEvents, G as exceptionFingerprint, H as decideIsDevInstall, I as buildBrowserExceptionProperties, J as resolveProjectToken, K as nodeMajorVersion, L as buildExceptionProperties, M as TELEMETRY_BATCH_URL, N as TELEMETRY_FLAGS_URL, P as adapterBucket, R as buildPersonProperties, U as decideRemoteTelemetryState, V as codexUserIdOf, W as decideTelemetryConsent, Z as stableConfigKey, _ as SETTINGS_INDEX, a as ensureProjectIds, at as worktreeIntegrationTips, ct as isSameDirectoryPath, et as matchedPrefix, g as validateSettingsBlock, h as settingsBlockSpecFor, i as createConfigStore, it as usablePrefixes, j as FIRST_RUN_NOTICE, m as mergeSettingsBlock, n as DEFAULT_CONFIG, nt as planWorktreeGc, o as generateProjectId, ot as canonicalizePath, q as parsePosthogReleaseId, rt as sessionIdFromBranch, s as glimmervoidHomeDir$1, st as comparableDirectoryPath, t as ABORT_CONFIG_SAVE, tt as planBranchGc, z as classifySessionExit } from "./config-store-BF-dXf5J.js";
|
|
26
|
+
import { _ as TelemetryState, a as DEEP_HISTORY_SCROLLBACK_LINES, c as describeDataAttach, d as DashboardTelemetryReport, h as TELEMETRY_EVENT_SCHEMAS, i as HookEnvelope, l as parseDataAttach, m as PendingCrashReport, r as HTTP_URL_RE, s as LOGGED_FAST_CLOSE_COUNTS, u as parseDataClientMessage } from "./build-channel-CMDHW0aU.js";
|
|
27
|
+
import { $ as identityFromRelPath, A as decideFileRead, B as sessionsRootCandidates, C as pickNewestPublished, D as codexRootCandidates, E as codexHomes, F as kimiHomes, G as kimiSessionIdFromPath, H as shouldPersistWarehouse, I as passOutcome, J as dedupKeys, K as parseKimiUsageLine, L as projectDirCandidates, M as expandTilde, N as grokHomes, O as codexSessionIdFromPath, P as isUsageFile, Q as foldReplacementIntoGenerationRollup, R as resolveProjectsDirs, S as parseResolvedSha, T as codexFallbackRoots, U as splitLines$1, V as shouldEvaluateDespiteIoFailures, W as kimiDedupIdentity, X as expandAdvisorIterations, Y as emptyTotals, Z as foldEntryIntoGenerationRollup, _ as isCheckFresh, a as describeAgentResolvability, at as totalTokensOf$1, b as parseRegistryDeprecation, c as isKnownAgentId, ct as claudeCode, d as resolveAdapter, et as isWithinGenerationRecencyWindow, f as setCustomAgents, g as decideUpdateStatus, h as decideInstallFlavor, i as customAgentFingerprint, it as shouldReplace, j as dedupeCodexFiles, k as continuationDelayMs, l as listAgentIds, m as readHostCodexVersion, n as cachedAgentResolvability, nt as parseJsonLine, o as getAdapter, ot as vendorUsageEntry, p as codex, q as addEntryToTotals, r as commandFor, rt as parseUsageLine, s as hookProfileOf, st as HOOK_TOOLS, t as DEFAULT_AGENT_ID, tt as mergeGenerationRollups, u as resetCommandCache, v as normalizeSha, w as shortSha$1, x as parseRegistryLatest, y as normalizeUpdateChannel, z as scopedClaudeRoots } from "./adapters-BMfx0b49.js";
|
|
28
28
|
import { c as releaseUnheldKimiHomeSecrets, d as sessionIdOfLockFile, f as trashSessionTempFolderOnceUnheld, i as kimiHomeLinkRefusal, l as createHeldSessionTempFolder, n as generatedKimiHomePath, o as realKimiHome, u as releaseSessionLock } from "./kimi-home-WZ9E4f-u.js";
|
|
29
|
-
import { t as kimi } from "./kimi-
|
|
29
|
+
import { t as kimi } from "./kimi-_YASGtRn.js";
|
|
30
30
|
import { _ as escapeMarkup, g as createLaneLog, n as createVisionsSetup, v as refuseRunningNodeLaunches, y as stableNodePath } from "./visions-setup-DVl9-SzU.js";
|
|
31
31
|
import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME } from "./ssh-signing-core-CRhVVWNW.js";
|
|
32
|
-
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-
|
|
33
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
32
|
+
import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, p as hashSecret, r as validateRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-Kd68jYOd.js";
|
|
33
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-B31x6QPQ.js";
|
|
34
34
|
import { createRequire } from "node:module";
|
|
35
35
|
import fs, { readFileSync, readlinkSync } from "node:fs";
|
|
36
36
|
import path, { join, resolve } from "node:path";
|
|
@@ -2006,10 +2006,23 @@ function declaredContentLength(req) {
|
|
|
2006
2006
|
const declared = Number(req.headers["content-length"]);
|
|
2007
2007
|
return Number.isFinite(declared) && declared >= 0 ? declared : null;
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function sendShowReply({ res, logger }, status, body) {
|
|
2010
|
+
if (res.headersSent) return;
|
|
2011
|
+
const checked = checkAgentReply("show", {
|
|
2012
|
+
status,
|
|
2013
|
+
body
|
|
2014
|
+
});
|
|
2015
|
+
if (!checked.ok) logger.warn(`[agent-api] show reply broke its contract: ${checked.issue}`);
|
|
2016
|
+
res.status(checked.reply.status).json(checked.reply.body);
|
|
2017
|
+
}
|
|
2018
|
+
function answerShow({ req, res, session, shownFiles, logger }) {
|
|
2019
|
+
const answer = (status, body) => sendShowReply({
|
|
2020
|
+
res,
|
|
2021
|
+
logger
|
|
2022
|
+
}, status, body);
|
|
2010
2023
|
const name = path.basename(decodeHeaderText(req.headers["x-glimmervoid-show-name"]) ?? "");
|
|
2011
2024
|
if (!name) {
|
|
2012
|
-
|
|
2025
|
+
answer(400, {
|
|
2013
2026
|
ok: false,
|
|
2014
2027
|
error: "show needs the file name in x-glimmervoid-show-name"
|
|
2015
2028
|
});
|
|
@@ -2018,16 +2031,13 @@ function answerShow({ req, res, session, shownFiles }) {
|
|
|
2018
2031
|
const caption = decodeHeaderText(req.headers["x-glimmervoid-show-caption"])?.slice(0, 500) ?? null;
|
|
2019
2032
|
const declaredBytes = declaredContentLength(req);
|
|
2020
2033
|
if (declaredBytes !== null && declaredBytes > 209715200) {
|
|
2021
|
-
|
|
2034
|
+
answer(413, {
|
|
2022
2035
|
ok: false,
|
|
2023
2036
|
error: describeOverCap(name, declaredBytes)
|
|
2024
2037
|
});
|
|
2025
2038
|
req.resume();
|
|
2026
2039
|
return;
|
|
2027
2040
|
}
|
|
2028
|
-
const answer = (status, body) => {
|
|
2029
|
-
if (!res.headersSent) res.status(status).json(body);
|
|
2030
|
-
};
|
|
2031
2041
|
shownFiles.reserveIncomingPath(session.id).then(async (incomingPath) => {
|
|
2032
2042
|
const outcome = await streamRequestToFile({
|
|
2033
2043
|
req,
|
|
@@ -2249,14 +2259,18 @@ function mountAgentIngressRoutes(app, dependencies) {
|
|
|
2249
2259
|
const roleRefusal = agentApi.refuseRole(session, "show");
|
|
2250
2260
|
if (roleRefusal) {
|
|
2251
2261
|
req.resume();
|
|
2252
|
-
|
|
2262
|
+
sendShowReply({
|
|
2263
|
+
res,
|
|
2264
|
+
logger
|
|
2265
|
+
}, roleRefusal.status, roleRefusal.body);
|
|
2253
2266
|
return;
|
|
2254
2267
|
}
|
|
2255
2268
|
answerShow({
|
|
2256
2269
|
req,
|
|
2257
2270
|
res,
|
|
2258
2271
|
session,
|
|
2259
|
-
shownFiles
|
|
2272
|
+
shownFiles,
|
|
2273
|
+
logger
|
|
2260
2274
|
});
|
|
2261
2275
|
});
|
|
2262
2276
|
app.post("/agent/:glimmervoidId/:verb", (req, res) => {
|
|
@@ -4759,6 +4773,20 @@ function createAgentApiWiring({ config, agentSessions, listAllSessions, listBoar
|
|
|
4759
4773
|
}
|
|
4760
4774
|
};
|
|
4761
4775
|
}
|
|
4776
|
+
function reviews(pullRequestKey) {
|
|
4777
|
+
if (!operatorState) return githubLanesUnavailable();
|
|
4778
|
+
const status = operatorState.teamReviewStatus();
|
|
4779
|
+
if (pullRequestKey === null) return {
|
|
4780
|
+
status: 200,
|
|
4781
|
+
body: projectReviews(status)
|
|
4782
|
+
};
|
|
4783
|
+
const detail = projectReviewDetail(status, pullRequestKey);
|
|
4784
|
+
if (!detail) return refusal(404, `${pullRequestKey} is not in the Reviews tab, so run glimmervoid review ${pullRequestKey} to queue one`);
|
|
4785
|
+
return {
|
|
4786
|
+
status: 200,
|
|
4787
|
+
body: detail
|
|
4788
|
+
};
|
|
4789
|
+
}
|
|
4762
4790
|
function linkPr(session, pullRequestKey) {
|
|
4763
4791
|
const link = manualPrLink(pullRequestKey, operatorState?.myPrsStatus()?.prs ?? [], Date.now());
|
|
4764
4792
|
if (!link) return refusal(400, `not a GitHub pull request: ${pullRequestKey}`);
|
|
@@ -4944,10 +4972,7 @@ function createAgentApiWiring({ config, agentSessions, listAllSessions, listBoar
|
|
|
4944
4972
|
body: limits(session)
|
|
4945
4973
|
}),
|
|
4946
4974
|
review: (_session, { pullRequestKey }) => review(pullRequestKey),
|
|
4947
|
-
reviews: () =>
|
|
4948
|
-
status: 200,
|
|
4949
|
-
body: projectReviews(operatorState.teamReviewStatus())
|
|
4950
|
-
} : githubLanesUnavailable(),
|
|
4975
|
+
reviews: (_session, { pullRequestKey }) => reviews(pullRequestKey),
|
|
4951
4976
|
prs: () => operatorState ? {
|
|
4952
4977
|
status: 200,
|
|
4953
4978
|
body: projectMyPrs(operatorState.myPrsStatus())
|
|
@@ -4970,7 +4995,9 @@ function createAgentApiWiring({ config, agentSessions, listAllSessions, listBoar
|
|
|
4970
4995
|
};
|
|
4971
4996
|
const roleRefusal = describeRoleRefusal(parsed.verb, roleFactsOf(session));
|
|
4972
4997
|
if (roleRefusal) return roleRefusal;
|
|
4973
|
-
|
|
4998
|
+
const checked = checkAgentReply(parsed.verb, await dispatch(session, parsed.verb, parsed.request));
|
|
4999
|
+
if (!checked.ok) logger.warn(`[agent-api] ${parsed.verb} reply broke its contract: ${checked.issue}`);
|
|
5000
|
+
return checked.reply;
|
|
4974
5001
|
}
|
|
4975
5002
|
function markChildWorktreeDiscard(childId) {
|
|
4976
5003
|
childIdsToDiscard.add(childId);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { l as resolveConfigPath } from "./config-store-
|
|
3
|
-
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-
|
|
2
|
+
import { l as resolveConfigPath } from "./config-store-BF-dXf5J.js";
|
|
3
|
+
import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-Kd68jYOd.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region server/text-format.ts
|
|
6
6
|
function trimIso(iso) {
|
|
@@ -3,7 +3,7 @@ import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
|
|
|
3
3
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
4
4
|
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
|
|
5
5
|
import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-BjFK_eSH.js";
|
|
6
|
-
import { ot as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-
|
|
6
|
+
import { ot as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-BF-dXf5J.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|