glimmervoid 0.47.1-next.263 → 0.47.1-next.266
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 +16 -21
- package/dist/chunks/{adapters-CgBZESh9.js → adapters-CkgywK6b.js} +1 -1
- package/dist/chunks/{adapters-C6PO5Nk1.js → adapters-Dx1U5sPa.js} +10 -46
- package/dist/chunks/{agent-api-cli-C6liUoEt.js → agent-api-cli-BLNaCyCK.js} +43 -50
- package/dist/chunks/{agent-api-cli-D4AchPAW.js → agent-api-cli-BgtBfEpE.js} +1 -1
- package/dist/chunks/{agent-api-core-CbAT8lQd.js → agent-api-core-B9Y8p1sI.js} +11 -5
- package/dist/chunks/agent-home-Bg2CwnwX.js +1 -0
- package/dist/chunks/{agent-home-Cc2oGNYa.js → agent-home-BzANIIVe.js} +2 -2
- package/dist/chunks/{agent-setup-cli-BTC5SZ-Q.js → agent-setup-cli-CBbNJvmM.js} +1 -1
- package/dist/chunks/{build-channel-DcgkUZnG.js → build-channel-5BUVzH7i.js} +2 -2
- package/dist/chunks/{config-DHQpb4gS.js → config-Bf3aImLn.js} +1 -1
- package/dist/chunks/config-store-BlzFAHSI.js +1 -0
- package/dist/chunks/{config-store-B3VQlr0X.js → config-store-DPI2U_ec.js} +2 -2
- package/dist/chunks/{git-version-CgbF5-7t.js → git-version-BvibrGvo.js} +1 -1
- package/dist/chunks/{grok-9BcIdXH_.js → grok-B5dS28Ox.js} +1 -1
- package/dist/chunks/{kimi-CKcgRTqA.js → kimi-CXbdfj0T.js} +127 -5
- package/dist/chunks/kimi-w5wnZn8w.js +1 -0
- package/dist/chunks/{loopback-post-DZK7YibD.js → loopback-post-DgtBg6M_.js} +2 -18
- package/dist/chunks/{main-C13UHJc4.js → main-mJAz4Qsd.js} +716 -577
- package/dist/chunks/{pair-cli-CStBuhUH.js → pair-cli-BwjDBgl5.js} +2 -2
- package/dist/chunks/{path-doctor-CkYCMK5u.js → path-doctor-C23VAqeu.js} +1 -54
- package/dist/chunks/{remote-config-C2EUPup8.js → remote-config-DSYCnfRA.js} +1 -1
- package/dist/chunks/{session-COI2_9Eq.js → session-Bea8RPJ5.js} +201 -2
- package/dist/chunks/{session-routes-BrxM6k-v.js → session-routes-BTMSVce8.js} +9 -1
- package/dist/chunks/{settings-cli-BWmRHK4E.js → settings-cli-Bb8uoBUd.js} +5 -5
- package/dist/chunks/{settings-readout-core-VXGAgoZU.js → settings-readout-core-x2dualn7.js} +2 -2
- package/dist/chunks/{shown-files-core-CQeyRy9W.js → shown-files-core-D2HvpYbu.js} +1 -1
- package/dist/chunks/{spawn-env-mgD54MHq.js → spawn-env-n2RVkMxc.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-ClDsYPXU.js → ssh-sign-cli-CCRsXp-f.js} +2 -2
- package/dist/client/assets/{action-status-B1gT1JCK.js → action-status-kYtKMGjN.js} +1 -1
- package/dist/client/assets/action-status-kYtKMGjN.js.br +0 -0
- package/dist/client/assets/{alert-sound-CnbLj8Ge.js → alert-sound-DgoHlCku.js} +1 -1
- package/dist/client/assets/alert-sound-DgoHlCku.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-C51ejhiO.js → benchmark-panel-DNgsmHl2.js} +1 -1
- package/dist/client/assets/benchmark-panel-DNgsmHl2.js.br +0 -0
- package/dist/client/assets/{card-registry-xOaXCSXL.js → card-registry-BY5hMgbI.js} +1 -1
- package/dist/client/assets/card-registry-BY5hMgbI.js.br +0 -0
- package/dist/client/assets/{celebration-player-BrnT80ny.js → celebration-player-BHpV1Rf_.js} +1 -1
- package/dist/client/assets/celebration-player-BHpV1Rf_.js.br +0 -0
- package/dist/client/assets/{community-panel-BkCV4FOw.js → community-panel-Ba7Ppr-s.js} +1 -1
- package/dist/client/assets/community-panel-Ba7Ppr-s.js.br +0 -0
- package/dist/client/assets/{control-ws-CmOs3MCv.js → control-ws-DLYZcM_c.js} +1 -1
- package/dist/client/assets/control-ws-DLYZcM_c.js.br +0 -0
- package/dist/client/assets/{dialogs-BClQ3hsS.js → dialogs-eQXD58rA.js} +1 -1
- package/dist/client/assets/dialogs-eQXD58rA.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-BPO4ct6E.js → doc-editor-ui-CbBWXbrp.js} +1 -1
- package/dist/client/assets/doc-editor-ui-CbBWXbrp.js.br +0 -0
- package/dist/client/assets/{feature-hint-BHcOkEX1.js → feature-hint-BM_9juah.js} +1 -1
- package/dist/client/assets/feature-hint-BM_9juah.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-D9o35cYo.js → first-run-checklist-B0u3xzD5.js} +1 -1
- package/dist/client/assets/first-run-checklist-B0u3xzD5.js.br +0 -0
- package/dist/client/assets/{hooks-panel-CTocImRm.js → hooks-panel-Cek00ZhO.js} +1 -1
- package/dist/client/assets/hooks-panel-Cek00ZhO.js.br +0 -0
- package/dist/client/assets/{index-DHGkZCOH.css → index-BeOPri-2.css} +1 -1
- package/dist/client/assets/index-BeOPri-2.css.br +0 -0
- package/dist/client/assets/index-CsZNHdJT.js +78 -0
- package/dist/client/assets/index-CsZNHdJT.js.br +0 -0
- package/dist/client/assets/{issues-panel-D4DhECEP.js → issues-panel-BOeYMzEs.js} +1 -1
- package/dist/client/assets/issues-panel-BOeYMzEs.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CgGqQ7I-.js → my-prs-panel-d9RoNUfy.js} +1 -1
- package/dist/client/assets/my-prs-panel-d9RoNUfy.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CIccTK7h.js → nyan-cat-BMsZXAWE.js} +1 -1
- package/dist/client/assets/nyan-cat-BMsZXAWE.js.br +0 -0
- package/dist/client/assets/{phone-shell-BBi4sVW1.js → phone-shell-CBvfs5Q4.js} +1 -1
- package/dist/client/assets/phone-shell-CBvfs5Q4.js.br +0 -0
- package/dist/client/assets/{plan-face-DR0sS4kD.js → plan-face-Bmre1ipT.js} +1 -1
- package/dist/client/assets/plan-face-Bmre1ipT.js.br +0 -0
- package/dist/client/assets/{plan-render-qN7kcfCr.js → plan-render-CSgvT2MS.js} +1 -1
- package/dist/client/assets/plan-render-CSgvT2MS.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DakNbBJL.js → pr-queue-columns-PaYWyOTi.js} +1 -1
- package/dist/client/assets/pr-queue-columns-PaYWyOTi.js.br +0 -0
- package/dist/client/assets/{radar-panel-DGZOiXUN.js → radar-panel-CsJwUtqX.js} +1 -1
- package/dist/client/assets/radar-panel-CsJwUtqX.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CnYzdJd1.js → repo-roots-adder-I_osQTym.js} +1 -1
- package/dist/client/assets/repo-roots-adder-I_osQTym.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CwOxURHa.js → resume-dialog-BoXngMc2.js} +1 -1
- package/dist/client/assets/resume-dialog-BoXngMc2.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CCmEO_5a.js → review-queue-panel-Dx4RTtN9.js} +1 -1
- package/dist/client/assets/review-queue-panel-Dx4RTtN9.js.br +0 -0
- package/dist/client/assets/{session-tick-Dco5WtNk.js → session-tick-Bn4vajhu.js} +1 -1
- package/dist/client/assets/session-tick-Bn4vajhu.js.br +0 -0
- package/dist/client/assets/{settings-panel-BgMLMW1l.js → settings-panel-DCIkcVt_.js} +2 -2
- package/dist/client/assets/settings-panel-DCIkcVt_.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-CJM-xw-I.js → shown-lightbox-CvQpDcpX.js} +1 -1
- package/dist/client/assets/shown-lightbox-CvQpDcpX.js.br +0 -0
- package/dist/client/assets/{team-review-panel-iARODqvM.js → team-review-panel-D6mFydSP.js} +1 -1
- package/dist/client/assets/team-review-panel-D6mFydSP.js.br +0 -0
- package/dist/client/assets/{trace-panel-BySPJR-t.js → trace-panel-Bfq4tBBH.js} +1 -1
- package/dist/client/assets/trace-panel-Bfq4tBBH.js.br +0 -0
- package/dist/client/assets/updates-view-core-ChBcprFg.js +1 -0
- package/dist/client/assets/updates-view-core-ChBcprFg.js.br +0 -0
- package/dist/client/assets/{usage-panel-o9Yrzmjh.js → usage-panel-CAHY96Ka.js} +1 -1
- package/dist/client/assets/usage-panel-CAHY96Ka.js.br +0 -0
- package/dist/client/index.html +7 -7
- package/dist/client/index.html.br +0 -0
- package/dist/scripts/postinstall-path-check.js +1 -8
- package/dist/server/index.js +1 -1
- package/dist/session/command-hook-relay.js +1 -1
- package/dist/session/hook-relay.js +2 -2
- package/dist/session/statusline-relay.js +1 -1
- package/package.json +1 -2
- package/dist/chunks/agent-home-BZB8hXrH.js +0 -1
- package/dist/chunks/config-store-BkQY9hbl.js +0 -1
- package/dist/chunks/guardrails-proxy-core-BI3rdY-m.js +0 -27
- package/dist/chunks/kimi-Ch7mq51x.js +0 -1
- package/dist/chunks/spawn-command-CQECOvjC.js +0 -134
- package/dist/client/assets/action-status-B1gT1JCK.js.br +0 -0
- package/dist/client/assets/alert-sound-CnbLj8Ge.js.br +0 -0
- package/dist/client/assets/benchmark-panel-C51ejhiO.js.br +0 -0
- package/dist/client/assets/card-registry-xOaXCSXL.js.br +0 -0
- package/dist/client/assets/celebration-player-BrnT80ny.js.br +0 -0
- package/dist/client/assets/community-panel-BkCV4FOw.js.br +0 -0
- package/dist/client/assets/control-ws-CmOs3MCv.js.br +0 -0
- package/dist/client/assets/dialogs-BClQ3hsS.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-BPO4ct6E.js.br +0 -0
- package/dist/client/assets/feature-hint-BHcOkEX1.js.br +0 -0
- package/dist/client/assets/first-run-checklist-D9o35cYo.js.br +0 -0
- package/dist/client/assets/hooks-panel-CTocImRm.js.br +0 -0
- package/dist/client/assets/index-B2urLsa7.js +0 -78
- package/dist/client/assets/index-B2urLsa7.js.br +0 -0
- package/dist/client/assets/index-DHGkZCOH.css.br +0 -0
- package/dist/client/assets/issues-panel-D4DhECEP.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CgGqQ7I-.js.br +0 -0
- package/dist/client/assets/nyan-cat-CIccTK7h.js.br +0 -0
- package/dist/client/assets/phone-shell-BBi4sVW1.js.br +0 -0
- package/dist/client/assets/plan-face-DR0sS4kD.js.br +0 -0
- package/dist/client/assets/plan-render-qN7kcfCr.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DakNbBJL.js.br +0 -0
- package/dist/client/assets/radar-panel-DGZOiXUN.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CnYzdJd1.js.br +0 -0
- package/dist/client/assets/resume-dialog-CwOxURHa.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CCmEO_5a.js.br +0 -0
- package/dist/client/assets/session-tick-Dco5WtNk.js.br +0 -0
- package/dist/client/assets/settings-panel-BgMLMW1l.js.br +0 -0
- package/dist/client/assets/shown-lightbox-CJM-xw-I.js.br +0 -0
- package/dist/client/assets/team-review-panel-iARODqvM.js.br +0 -0
- package/dist/client/assets/trace-panel-BySPJR-t.js.br +0 -0
- package/dist/client/assets/updates-view-core-CVAaEaN_.js +0 -1
- package/dist/client/assets/updates-view-core-CVAaEaN_.js.br +0 -0
- package/dist/client/assets/usage-panel-o9Yrzmjh.js.br +0 -0
- package/dist/session/guardrails-open-launcher.js +0 -145
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -3,12 +3,12 @@ import { r as firstLine, s as nodePtyRebuildHint, t as probeNodePty } from "../c
|
|
|
3
3
|
import { i as errorText } from "../chunks/text-DoirglWV.js";
|
|
4
4
|
import { a as packageRoot } from "../chunks/runtime-paths-D_ZjJLE0.js";
|
|
5
5
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
6
|
-
import { t as AGENT_API_VERBS } from "../chunks/session-
|
|
6
|
+
import { t as AGENT_API_VERBS } from "../chunks/session-Bea8RPJ5.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-B9Y8p1sI.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-
|
|
11
|
-
import {
|
|
10
|
+
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-BvibrGvo.js";
|
|
11
|
+
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
12
12
|
import fs from "node:fs";
|
|
13
13
|
import path from "node:path";
|
|
14
14
|
import os from "node:os";
|
|
@@ -57,25 +57,25 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
57
57
|
return 0;
|
|
58
58
|
}],
|
|
59
59
|
["pair", async (subcommandArgs) => {
|
|
60
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
60
|
+
const { runPairCli } = await import("../chunks/pair-cli-BwjDBgl5.js");
|
|
61
61
|
return runPairCli(subcommandArgs);
|
|
62
62
|
}],
|
|
63
63
|
["agent", async (subcommandArgs) => {
|
|
64
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
64
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-CBbNJvmM.js");
|
|
65
65
|
return runAgentSetupCli(subcommandArgs);
|
|
66
66
|
}],
|
|
67
67
|
["settings", async (subcommandArgs) => {
|
|
68
|
-
const { runSettingsCli } = await import("../chunks/settings-cli-
|
|
68
|
+
const { runSettingsCli } = await import("../chunks/settings-cli-Bb8uoBUd.js");
|
|
69
69
|
return runSettingsCli(subcommandArgs);
|
|
70
70
|
}],
|
|
71
71
|
["ssh-sign", async (subcommandArgs) => {
|
|
72
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
72
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-CCRsXp-f.js");
|
|
73
73
|
return runSshSignCli(subcommandArgs);
|
|
74
74
|
}]
|
|
75
75
|
];
|
|
76
76
|
var ownSubcommandNames = new Set(OWN_SUBCOMMAND_RUNNERS.map(([name]) => name));
|
|
77
77
|
var SUBCOMMAND_RUNNERS = new Map([...OWN_SUBCOMMAND_RUNNERS, ...AGENT_API_VERBS.filter((verb) => !ownSubcommandNames.has(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
78
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
78
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-BgtBfEpE.js");
|
|
79
79
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
80
80
|
}])]);
|
|
81
81
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -89,7 +89,7 @@ function missingAgentText(agentId) {
|
|
|
89
89
|
}
|
|
90
90
|
async function printSessionLimits() {
|
|
91
91
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
92
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
92
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-BgtBfEpE.js");
|
|
93
93
|
const limitsLines = await sessionLimitsHelpLines();
|
|
94
94
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
95
95
|
}
|
|
@@ -146,7 +146,7 @@ async function readDeclaredCustomAgents() {
|
|
|
146
146
|
declared: [],
|
|
147
147
|
error: null
|
|
148
148
|
};
|
|
149
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
149
|
+
const { loadConfigFile } = await import("../chunks/config-store-BlzFAHSI.js");
|
|
150
150
|
try {
|
|
151
151
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
152
152
|
if (!loaded.config) return {
|
|
@@ -222,7 +222,7 @@ async function runDoctor() {
|
|
|
222
222
|
}
|
|
223
223
|
switchSection("Agents");
|
|
224
224
|
try {
|
|
225
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
225
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-CkgywK6b.js");
|
|
226
226
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
227
227
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
228
228
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -230,11 +230,11 @@ async function runDoctor() {
|
|
|
230
230
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
231
231
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
232
232
|
}
|
|
233
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
233
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-CBbNJvmM.js");
|
|
234
234
|
const grokSetup = inspectGrokAgentSetup();
|
|
235
235
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
236
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
237
|
-
const { describeAgentHome } = await import("../chunks/agent-home-
|
|
236
|
+
const { default: kimi } = await import("../chunks/kimi-w5wnZn8w.js");
|
|
237
|
+
const { describeAgentHome } = await import("../chunks/agent-home-Bg2CwnwX.js");
|
|
238
238
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-CgoT45SE.js");
|
|
239
239
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
240
240
|
} catch (err) {
|
|
@@ -244,7 +244,7 @@ async function runDoctor() {
|
|
|
244
244
|
try {
|
|
245
245
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-DUfaYypN.js");
|
|
246
246
|
const { execFileSync } = await import("../chunks/child-process-safe-BKjzSEYd.js");
|
|
247
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
247
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-CBbNJvmM.js");
|
|
248
248
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
249
249
|
line("Sane YOLO", binPath || "not installed");
|
|
250
250
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -264,11 +264,6 @@ async function runDoctor() {
|
|
|
264
264
|
line("reason", nodePty.reason);
|
|
265
265
|
line("hint", nodePtyRebuildHint(platform));
|
|
266
266
|
}
|
|
267
|
-
switchSection("Guardrails");
|
|
268
|
-
for (const [label, value] of guardrailsDoctorRows(probeGuardrailsDependencies({
|
|
269
|
-
platform,
|
|
270
|
-
exec: execSync
|
|
271
|
-
}))) line(label, value);
|
|
272
267
|
switchSection("Git");
|
|
273
268
|
for (const [label, value] of gitDoctorRows(probeGitVersion())) line(label, value);
|
|
274
269
|
switchSection("Config");
|
|
@@ -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-Dx1U5sPa.js";
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { o as relayPath, u as isPathInside } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Jt as shortSha$1, Kt as FULL_SHA_RE } from "./session-Bea8RPJ5.js";
|
|
4
4
|
import { c as spawn, i as execFileSync, r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
5
|
-
import { Dt as UpdateChannel, c as SHELL_AGENT_ID, x as InstallFlavor } from "./config-
|
|
6
|
-
import { o as supervisionLine } from "./session-routes-
|
|
5
|
+
import { Dt as UpdateChannel, c as SHELL_AGENT_ID, x as InstallFlavor } from "./config-Bf3aImLn.js";
|
|
6
|
+
import { o as supervisionLine } from "./session-routes-BTMSVce8.js";
|
|
7
7
|
import { a as rawTextOr, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
8
|
-
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
9
8
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
10
9
|
import { i as saneYoloEnv, r as SANE_YOLO_PATH_ENV, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
11
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
10
|
+
import { t as buildAgentEnv } from "./spawn-env-n2RVkMxc.js";
|
|
12
11
|
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-
|
|
12
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-B5dS28Ox.js";
|
|
14
13
|
import { O as nextBackoffMs } from "./json-file-AKRVPqG1.js";
|
|
15
|
-
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-
|
|
14
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-5BUVzH7i.js";
|
|
15
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-CXbdfj0T.js";
|
|
16
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 {
|
|
18
|
-
import { t as kimi } from "./kimi-CKcgRTqA.js";
|
|
17
|
+
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-BzANIIVe.js";
|
|
19
18
|
import fs from "node:fs";
|
|
20
19
|
import path from "node:path";
|
|
21
20
|
import os from "node:os";
|
|
@@ -138,28 +137,6 @@ function buildEnv$2(baseEnv, extraEnv, options) {
|
|
|
138
137
|
return buildAgentEnv(baseEnv, extraEnv, envProfile$3, options);
|
|
139
138
|
}
|
|
140
139
|
var settingsArgs = (settingsPath) => ["--settings", settingsPath];
|
|
141
|
-
var SESSION_ID_FLAG = "--session-id";
|
|
142
|
-
function requestedSessionId(extraArgs) {
|
|
143
|
-
const flagIndex = extraArgs.indexOf(SESSION_ID_FLAG);
|
|
144
|
-
if (flagIndex !== -1) return extraArgs[flagIndex + 1] ?? null;
|
|
145
|
-
const assignment = extraArgs.find((argument) => argument.startsWith(`${SESSION_ID_FLAG}=`));
|
|
146
|
-
return assignment ? assignment.slice(13) : null;
|
|
147
|
-
}
|
|
148
|
-
function launchSessionId({ resumeSessionId, extraArgs, generatedId }) {
|
|
149
|
-
const knownSessionId = resumeSessionId ?? requestedSessionId(extraArgs);
|
|
150
|
-
if (knownSessionId) return {
|
|
151
|
-
agentSessionId: knownSessionId,
|
|
152
|
-
extraArgs: [...extraArgs]
|
|
153
|
-
};
|
|
154
|
-
return {
|
|
155
|
-
agentSessionId: generatedId,
|
|
156
|
-
extraArgs: [
|
|
157
|
-
...extraArgs,
|
|
158
|
-
SESSION_ID_FLAG,
|
|
159
|
-
generatedId
|
|
160
|
-
]
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
140
|
var APPEND_SYSTEM_PROMPT_FLAG = "--append-system-prompt";
|
|
164
141
|
var APPENDED_SYSTEM_PROMPT_FLAGS = Object.freeze([APPEND_SYSTEM_PROMPT_FLAG, "--append-system-prompt-file"]);
|
|
165
142
|
function isAppendedSystemPromptArgument(launchArgument) {
|
|
@@ -194,7 +171,6 @@ var claudeCode = {
|
|
|
194
171
|
buildEnv: buildEnv$2,
|
|
195
172
|
buildArgs: buildArgs$2,
|
|
196
173
|
settingsArgs,
|
|
197
|
-
launchSessionId,
|
|
198
174
|
capabilities: {
|
|
199
175
|
hooks: true,
|
|
200
176
|
awaitingInput: true,
|
|
@@ -1860,18 +1836,6 @@ var SKIP_PERMISSIONS_ARGS = [
|
|
|
1860
1836
|
"-s",
|
|
1861
1837
|
"workspace-write"
|
|
1862
1838
|
];
|
|
1863
|
-
var OUTER_GUARDRAILS_ARGS = ["-s", "danger-full-access"];
|
|
1864
|
-
var OUTER_GUARDRAILS_SKIP_PERMISSIONS_ARGS = [
|
|
1865
|
-
"-a",
|
|
1866
|
-
"never",
|
|
1867
|
-
...OUTER_GUARDRAILS_ARGS
|
|
1868
|
-
];
|
|
1869
|
-
function permissionArgs(dangerouslySkipPermissions, hasOuterGuardrails) {
|
|
1870
|
-
if (hasOuterGuardrails && dangerouslySkipPermissions) return OUTER_GUARDRAILS_SKIP_PERMISSIONS_ARGS;
|
|
1871
|
-
if (hasOuterGuardrails) return OUTER_GUARDRAILS_ARGS;
|
|
1872
|
-
if (dangerouslySkipPermissions) return SKIP_PERMISSIONS_ARGS;
|
|
1873
|
-
return [];
|
|
1874
|
-
}
|
|
1875
1839
|
var OPERATOR_CONFIG_FILE_NAME = "config.toml";
|
|
1876
1840
|
var DEVELOPER_INSTRUCTIONS_KEY = "developer_instructions";
|
|
1877
1841
|
var DEVELOPER_INSTRUCTIONS_DECLARATION_RE = /^[^\S\r\n]*["']?developer_instructions["']?[^\S\r\n]*=/m;
|
|
@@ -1886,11 +1850,11 @@ function setsOperatorInstructions(operatorConfigText) {
|
|
|
1886
1850
|
function isDeveloperInstructionsOverride(launchArgument) {
|
|
1887
1851
|
return launchArgument.startsWith(`${DEVELOPER_INSTRUCTIONS_KEY}=`);
|
|
1888
1852
|
}
|
|
1889
|
-
function buildArgs$1({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null,
|
|
1853
|
+
function buildArgs$1({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, hasOperatorInstructions = false, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
1890
1854
|
const args = [...UPDATE_CHECK_ARGS];
|
|
1891
1855
|
if (canRunHelpCommand && !hasOperatorInstructions && !extraArgs.some(isDeveloperInstructionsOverride)) args.push("-c", `${DEVELOPER_INSTRUCTIONS_KEY}='''${supervisionLine({ canSpawn })}'''`);
|
|
1892
1856
|
if (resumeSessionId) args.push("resume", resumeSessionId);
|
|
1893
|
-
args.push(...
|
|
1857
|
+
if (dangerouslySkipPermissions) args.push(...SKIP_PERMISSIONS_ARGS);
|
|
1894
1858
|
if (extraArgs.length > 0) args.push(...extraArgs);
|
|
1895
1859
|
if (initialPrompt != null) args.push(initialPrompt);
|
|
1896
1860
|
return args;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-CbAT8lQd.js";
|
|
1
|
+
import { l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-Bea8RPJ5.js";
|
|
2
|
+
import { i as formatSessionLimits } from "./session-routes-BTMSVce8.js";
|
|
3
|
+
import { p as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-B9Y8p1sI.js";
|
|
5
4
|
import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
|
|
6
|
-
import { n as decideGuardrailsProxy } from "./guardrails-proxy-core-BI3rdY-m.js";
|
|
7
5
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
8
|
-
import { r as describeOverCap } from "./shown-files-core-
|
|
6
|
+
import { r as describeOverCap } from "./shown-files-core-D2HvpYbu.js";
|
|
9
7
|
import fs from "node:fs";
|
|
10
8
|
import path from "node:path";
|
|
11
9
|
import http from "node:http";
|
|
@@ -18,6 +16,39 @@ function pullRequestBody(rest) {
|
|
|
18
16
|
const pullRequest = rest.join(" ").trim();
|
|
19
17
|
return pullRequest ? { pr: pullRequest } : null;
|
|
20
18
|
}
|
|
19
|
+
function readOpsArgument(opsText) {
|
|
20
|
+
if (opsText === "-") return parseJsonOrNull(fs.readFileSync(0, "utf8"));
|
|
21
|
+
return parseJsonOrNull(opsText);
|
|
22
|
+
}
|
|
23
|
+
function whiteboardBody([subcommand, ...rest]) {
|
|
24
|
+
const joined = rest.join(" ").trim();
|
|
25
|
+
if (subcommand === "list") return { sub: "list" };
|
|
26
|
+
if (subcommand === "new" || subcommand === "connect" || subcommand === "disconnect" || subcommand === "get") {
|
|
27
|
+
if (!joined) return null;
|
|
28
|
+
return subcommand === "new" ? {
|
|
29
|
+
sub: "new",
|
|
30
|
+
title: joined
|
|
31
|
+
} : {
|
|
32
|
+
sub: subcommand,
|
|
33
|
+
board: joined
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const [board, ...argumentWords] = rest;
|
|
37
|
+
if (!board || argumentWords.length === 0) return null;
|
|
38
|
+
if (subcommand === "resolve") return {
|
|
39
|
+
sub: "resolve",
|
|
40
|
+
board,
|
|
41
|
+
note: argumentWords.join(" ").trim()
|
|
42
|
+
};
|
|
43
|
+
if (subcommand !== "put") return null;
|
|
44
|
+
const ops = readOpsArgument(argumentWords.join(" "));
|
|
45
|
+
if (ops === null) return null;
|
|
46
|
+
return {
|
|
47
|
+
sub: "put",
|
|
48
|
+
board,
|
|
49
|
+
ops: Array.isArray(ops) ? ops : [ops]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
21
52
|
var BODY_BUILDERS = {
|
|
22
53
|
spawn: (rest) => {
|
|
23
54
|
const prompt = rest.join(" ").trim();
|
|
@@ -69,7 +100,8 @@ var BODY_BUILDERS = {
|
|
|
69
100
|
settings: ([command, settingPath]) => ({
|
|
70
101
|
command,
|
|
71
102
|
...settingPath === void 0 ? {} : { path: settingPath }
|
|
72
|
-
})
|
|
103
|
+
}),
|
|
104
|
+
whiteboard: whiteboardBody
|
|
73
105
|
};
|
|
74
106
|
function bodySaysOk(text) {
|
|
75
107
|
try {
|
|
@@ -135,31 +167,8 @@ function requestOverHttp(target, deadline, sendBody) {
|
|
|
135
167
|
sendBody(request);
|
|
136
168
|
});
|
|
137
169
|
}
|
|
138
|
-
function guardrailsProxyTarget(guardrailsProxy, endpoint, headers) {
|
|
139
|
-
const proxyHeaders = guardrailsProxy.authorization ? { "proxy-authorization": guardrailsProxy.authorization } : {};
|
|
140
|
-
return {
|
|
141
|
-
hostname: guardrailsProxy.hostname,
|
|
142
|
-
port: String(guardrailsProxy.port),
|
|
143
|
-
path: endpoint.href,
|
|
144
|
-
headers: {
|
|
145
|
-
...headers,
|
|
146
|
-
...proxyHeaders,
|
|
147
|
-
host: endpoint.host
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function postThroughGuardrailsProxy(guardrailsProxy, { endpoint, headers, bodyText, deadline }) {
|
|
152
|
-
return requestOverHttp(guardrailsProxyTarget(guardrailsProxy, endpoint, {
|
|
153
|
-
...headers,
|
|
154
|
-
"content-length": String(Buffer.byteLength(bodyText))
|
|
155
|
-
}), deadline, (request) => request.end(bodyText));
|
|
156
|
-
}
|
|
157
|
-
function wasConnectionRefused(error) {
|
|
158
|
-
if (errorCode(error) === "ECONNREFUSED") return true;
|
|
159
|
-
return errorCode(error?.cause) === "ECONNREFUSED";
|
|
160
|
-
}
|
|
161
170
|
async function postToAgentIngress({ endpoint, token, body, deadline = null }) {
|
|
162
|
-
|
|
171
|
+
return postDirectly({
|
|
163
172
|
endpoint,
|
|
164
173
|
headers: {
|
|
165
174
|
"content-type": "application/json",
|
|
@@ -167,15 +176,7 @@ async function postToAgentIngress({ endpoint, token, body, deadline = null }) {
|
|
|
167
176
|
},
|
|
168
177
|
bodyText: JSON.stringify(body),
|
|
169
178
|
deadline
|
|
170
|
-
};
|
|
171
|
-
try {
|
|
172
|
-
return await postDirectly(post);
|
|
173
|
-
} catch (error) {
|
|
174
|
-
if (!wasConnectionRefused(error)) throw error;
|
|
175
|
-
const guardrailsProxy = decideGuardrailsProxy(process.env);
|
|
176
|
-
if (!guardrailsProxy) throw error;
|
|
177
|
-
return postThroughGuardrailsProxy(guardrailsProxy, post);
|
|
178
|
-
}
|
|
179
|
+
});
|
|
179
180
|
}
|
|
180
181
|
async function sessionLimitsHelpLines({ timeoutMs = HELP_LIMITS_TIMEOUT_MS } = {}) {
|
|
181
182
|
const rawUrl = process.env[AGENT_URL_ENV];
|
|
@@ -245,20 +246,12 @@ function streamFileBody(filePath) {
|
|
|
245
246
|
}
|
|
246
247
|
async function postFileToShow(endpoint, token, file, caption) {
|
|
247
248
|
const headers = showHeaders(token, file, caption);
|
|
248
|
-
|
|
249
|
+
return requestOverHttp({
|
|
249
250
|
hostname: endpoint.hostname,
|
|
250
251
|
port: endpoint.port,
|
|
251
252
|
path: `${endpoint.pathname}${endpoint.search}`,
|
|
252
253
|
headers
|
|
253
|
-
};
|
|
254
|
-
try {
|
|
255
|
-
return await requestOverHttp(directTarget, null, streamFileBody(file.filePath));
|
|
256
|
-
} catch (error) {
|
|
257
|
-
if (!wasConnectionRefused(error)) throw error;
|
|
258
|
-
const guardrailsProxy = decideGuardrailsProxy(process.env);
|
|
259
|
-
if (!guardrailsProxy) throw error;
|
|
260
|
-
return requestOverHttp(guardrailsProxyTarget(guardrailsProxy, endpoint, headers), null, streamFileBody(file.filePath));
|
|
261
|
-
}
|
|
254
|
+
}, null, streamFileBody(file.filePath));
|
|
262
255
|
}
|
|
263
256
|
function replyError(replyText) {
|
|
264
257
|
const reply = parseJsonOrNull(replyText);
|
|
@@ -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-BLNaCyCK.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as RefinedTaskTitle, R as TASK_TITLE_CONTROL_CHARACTERS, a as AgentAnswerRequest, c as AgentEditRequest, d as AgentReadRequest, f as AgentReviewsRequest, g as AgentSpawnRequest, h as AgentSettingsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentSendRequest, s as AgentCloseRequest, t as AGENT_API_VERBS, u as AgentPullRequestRequest } from "./session-
|
|
2
|
-
import { E as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
3
|
-
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-
|
|
1
|
+
import { C as RefinedTaskTitle, K as WhiteboardAgentRequest, 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-Bea8RPJ5.js";
|
|
2
|
+
import { E as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-Bf3aImLn.js";
|
|
3
|
+
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-BTMSVce8.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
//#region shared/session-naming.ts
|
|
@@ -600,7 +600,8 @@ var REQUEST_PARSERS = Object.freeze({
|
|
|
600
600
|
reviews: parseReviewsBody,
|
|
601
601
|
prs: parseEmptyBody,
|
|
602
602
|
"link-pr": parsePullRequestBody,
|
|
603
|
-
settings: bodyParser(AgentSettingsRequest)
|
|
603
|
+
settings: bodyParser(AgentSettingsRequest),
|
|
604
|
+
whiteboard: bodyParser(WhiteboardAgentRequest)
|
|
604
605
|
});
|
|
605
606
|
function checkAgentReply(verb, reply) {
|
|
606
607
|
const checked = AGENT_REPLY_SCHEMAS[verb].safeParse(reply.body);
|
|
@@ -865,6 +866,11 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
865
866
|
summary: "Read Glimmervoid's settings; a secret shows only as configured or not",
|
|
866
867
|
missingArgumentHint: null
|
|
867
868
|
},
|
|
869
|
+
whiteboard: {
|
|
870
|
+
usage: "whiteboard new|list|connect|disconnect|get|put|resolve",
|
|
871
|
+
summary: "Create, connect to, read and edit a shared whiteboard the operator and connected sessions edit together",
|
|
872
|
+
missingArgumentHint: "glimmervoid whiteboard: run \"glimmervoid whiteboard new <title>\", \"list\", \"connect <board>\", \"disconnect <board>\", \"get <board>\", \"put <board> <ops-json|->\" or \"resolve <board> <note>\""
|
|
873
|
+
},
|
|
868
874
|
limits: {
|
|
869
875
|
usage: "limits",
|
|
870
876
|
summary: "List which of these commands answer here and what the guardrails block",
|
|
@@ -875,4 +881,4 @@ function agentCommandHelpLines() {
|
|
|
875
881
|
return Object.values(AGENT_COMMAND_HELP).map(({ usage, summary }) => ` ${usage.padEnd(Math.max(USAGE_COLUMN_WIDTH, usage.length + 1))}${summary}`);
|
|
876
882
|
}
|
|
877
883
|
//#endregion
|
|
878
|
-
export { parseRefinedTaskTitle as A, shouldAdoptReportedResumeId as B, extractAiTitle as C, isSelfWakePrompt as D, extractPromptTaskTitle as E, RESUME_ID_RE as F,
|
|
884
|
+
export { parseRefinedTaskTitle as A, shouldAdoptReportedResumeId as B, extractAiTitle as C, isSelfWakePrompt as D, extractPromptTaskTitle as E, RESUME_ID_RE as F, nextSuggestedName as G, listRepoConversations as H, isConversationReplacedAtStartup as I, pickAutoResume as L, resolveTaskTitle as M, seedTaskTitleSources as N, isSubstantivePrompt as O, AUTO_CONTINUE_PROMPT as P, resolveResumeTarget as R, decideTaskTitleRefinement as S, extractOscTaskTitle as T, listRepoWorktreePaths as U, claudeProjectsDir 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, resumePromptFor as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as describeAgentHome } from "./agent-home-BzANIIVe.js";
|
|
@@ -7,7 +7,7 @@ import fs, { closeSync, mkdirSync, openSync, readdirSync, renameSync, rmSync, un
|
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
|
-
//#region server/
|
|
10
|
+
//#region server/session-temp/session-temp-locks.ts
|
|
11
11
|
var LOCK_FILE_SUFFIX = ".lock";
|
|
12
12
|
var SESSION_TEMP_GATE_FILE_NAME = "session-temp.gate";
|
|
13
13
|
var TRASH_FOLDER_PREFIX = ".deleting-";
|
|
@@ -577,4 +577,4 @@ function releaseUnheldAgentHomeSecrets(generatedHome) {
|
|
|
577
577
|
releaseSecretsUnlessHeldElsewhere(generatedHome, { whenLocksMissing: "keep" });
|
|
578
578
|
}
|
|
579
579
|
//#endregion
|
|
580
|
-
export {
|
|
580
|
+
export { prepareAgentHome as a, releaseAgentHome as c, releaseSessionLock as d, sessionIdOfLockFile as f, holdPreparedAgentHome as i, releaseUnheldAgentHomeSecrets as l, generatedAgentHomePath as n, prepareScratchAgentHome as o, trashSessionTempFolderOnceUnheld as p, holdAgentHome as r, realAgentHome as s, describeAgentHome as t, createHeldSessionTempFolder as u };
|
|
@@ -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-B5dS28Ox.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./session-
|
|
2
|
-
import { A as HintFeature, C as ONBOARDING_STEP_STATES, S as ONBOARDING_STEPS, T as OPERATOR_SURFACES, b as DASHBOARD_VIEWS, n as BUILTIN_AGENT_IDS, w as OPERATOR_ACTIONS_BY_SURFACE } from "./config-
|
|
1
|
+
import "./session-Bea8RPJ5.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-Bf3aImLn.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 MyPrKeepMergeableRequest, $t as GithubPollingRefreshRequest, B as UnseenOutcome, E as SESSION_DOC_PATH_MAX_CHARS, Et as ReviewChecksState, F as ShownFile, J as LinkedPr, M as SessionDoc, N as SessionSnapshot, Nt as TeamReviewActionRequest, P as SessionState, Pt as TeamReviewActionResult, Qt as repoParts, Rt as TeamReviewStatus, Wt as hasRequiredActionHead, Y as MyPr, Yt as GH_SEGMENT, Zt as REPO_SLUG_RE, _t as CommitSha, ct as MyPrSearchNode, en as GithubPollingRefreshResult, et as MyPrKeepMergeableResult, gt as repositoryName, ht as pullRequestKeyFormat, it as MyPrMergeResult, mt as SessionPrLinks, nn as githubPollingShape, ot as MyPrMergeWhenReadyRequest, pt as MyPrsStatus, rt as MyPrMergeRequest, st as MyPrMergeWhenReadyResult, tn as GithubPrsFreshness, x as CoherenceHooksState, xt as GithubReviewDecision, z as TaskTitle } from "./session-Bea8RPJ5.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-DPI2U_ec.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { a as packageRoot, l as equalsIgnoringCaseOnWindows } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
3
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
|
-
import { $ as FLYING_ANIMALS_DURATION_RANGE, Et as UPDATE_CHANNELS, Q as FLYING_ANIMALS_DEFAULTS, Z as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_SCAN_INTERVAL_RANGE, at as PORT_RANGE, ct as POSTHOG_PROJECT_ID_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, et as FLYING_ANIMALS_GAP_RANGE, f as USAGE_COST_MODES, ft as REPLAY_BUFFER_KB_RANGE, gt as USAGE_RETAIN_DAYS_RANGE, ht as USAGE_INTEGER_RANGES, i as Config, it as NON_NEGATIVE_NUMBER_RANGE, lt as POSTHOG_TRAFFIC_BASELINE_RANGE, m as normalizeLegacyConfigNumbers, mt as USAGE_BUDGET_RANGE, n as BUILTIN_AGENT_IDS, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, pt as TASK_TITLE_TIMEOUT_RANGE, rt as MEMORY_RESERVE_MB_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSTHOG_FIX_TIMEOUT_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_SCALE_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_MIN_USERS_RANGE, vt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, yt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE } from "./config-
|
|
4
|
+
import { $ as FLYING_ANIMALS_DURATION_RANGE, Et as UPDATE_CHANNELS, Q as FLYING_ANIMALS_DEFAULTS, Z as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as USAGE_SCAN_INTERVAL_RANGE, at as PORT_RANGE, ct as POSTHOG_PROJECT_ID_RANGE, d as BranchGcFileSettings, dt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, et as FLYING_ANIMALS_GAP_RANGE, f as USAGE_COST_MODES, ft as REPLAY_BUFFER_KB_RANGE, gt as USAGE_RETAIN_DAYS_RANGE, ht as USAGE_INTEGER_RANGES, i as Config, it as NON_NEGATIVE_NUMBER_RANGE, lt as POSTHOG_TRAFFIC_BASELINE_RANGE, m as normalizeLegacyConfigNumbers, mt as USAGE_BUDGET_RANGE, n as BUILTIN_AGENT_IDS, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, pt as TASK_TITLE_TIMEOUT_RANGE, rt as MEMORY_RESERVE_MB_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSTHOG_FIX_TIMEOUT_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as FLYING_ANIMALS_SCALE_RANGE, u as configIssueMessage, ut as POSTHOG_TRAFFIC_MIN_USERS_RANGE, vt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, yt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE } from "./config-Bf3aImLn.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-5BUVzH7i.js";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import os from "node:os";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AGENT_API_VERBS } from "./session-
|
|
1
|
+
import { t as AGENT_API_VERBS } from "./session-Bea8RPJ5.js";
|
|
2
2
|
import { i as execFileSync } from "./child-process-safe-BCOoKfxG.js";
|
|
3
3
|
//#region server/core/command-line-core.ts
|
|
4
4
|
var SUBCOMMANDS_HONORING_TRAILING_GLOBAL_OPTIONS = /* @__PURE__ */ new Set(["doctor", "pair"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { o as relayPath } from "./runtime-paths-D_ZjJLE0.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
4
|
+
import { t as buildAgentEnv } from "./spawn-env-n2RVkMxc.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,14 +1,136 @@
|
|
|
1
1
|
import { o as relayPath } from "./runtime-paths-D_ZjJLE0.js";
|
|
2
|
-
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
2
|
+
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-Bea8RPJ5.js";
|
|
3
3
|
import { i as execFileSync } from "./child-process-safe-BCOoKfxG.js";
|
|
4
|
-
import { n as resolveAgentCommand, t as buildAgentSpawnCommand } from "./spawn-command-CQECOvjC.js";
|
|
5
4
|
import { n as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
5
|
+
import { t as buildAgentEnv } from "./spawn-env-n2RVkMxc.js";
|
|
7
6
|
import { l as KIMI_HOME_PROFILE, m as renderKimiHooksBlock } from "./agent-home-core-DgW3orTE.js";
|
|
8
|
-
import {
|
|
7
|
+
import { c as releaseAgentHome, i as holdPreparedAgentHome, o as prepareScratchAgentHome, s as realAgentHome } from "./agent-home-BzANIIVe.js";
|
|
9
8
|
import fs from "node:fs";
|
|
10
9
|
import path from "node:path";
|
|
11
10
|
import { createHash } from "node:crypto";
|
|
11
|
+
//#region session/core/spawn-command.ts
|
|
12
|
+
function classifyCommandKind(resolvedPath) {
|
|
13
|
+
if (!resolvedPath) return "unresolved";
|
|
14
|
+
const ext = (resolvedPath.match(/\.[^.\\/]+$/) || [""])[0].toLowerCase();
|
|
15
|
+
return ext === ".exe" || ext === ".com" ? "exe" : "shim";
|
|
16
|
+
}
|
|
17
|
+
function dedupePathMatches(matches, platform = process.platform) {
|
|
18
|
+
const pathApi = platform === "win32" ? path.win32 : path.posix;
|
|
19
|
+
const seen = /* @__PURE__ */ new Set();
|
|
20
|
+
const unique = [];
|
|
21
|
+
for (const candidate of matches) {
|
|
22
|
+
let normalized = pathApi.normalize(candidate.trim());
|
|
23
|
+
if (normalized.length > 1) normalized = normalized.replace(/[\\/]+$/, "");
|
|
24
|
+
const key = platform === "win32" ? normalized.toLowerCase() : normalized;
|
|
25
|
+
if (seen.has(key)) continue;
|
|
26
|
+
seen.add(key);
|
|
27
|
+
unique.push(normalized);
|
|
28
|
+
}
|
|
29
|
+
return unique;
|
|
30
|
+
}
|
|
31
|
+
var PATH_PROBE_OPTIONS = {
|
|
32
|
+
encoding: "utf8",
|
|
33
|
+
stdio: [
|
|
34
|
+
"ignore",
|
|
35
|
+
"pipe",
|
|
36
|
+
"ignore"
|
|
37
|
+
],
|
|
38
|
+
timeout: 2e3
|
|
39
|
+
};
|
|
40
|
+
function pathProbesFor(name, platform) {
|
|
41
|
+
if (platform === "win32") return [{
|
|
42
|
+
file: "where",
|
|
43
|
+
args: [name]
|
|
44
|
+
}];
|
|
45
|
+
return [{
|
|
46
|
+
file: "which",
|
|
47
|
+
args: ["-a", name]
|
|
48
|
+
}, {
|
|
49
|
+
file: "sh",
|
|
50
|
+
args: [
|
|
51
|
+
"-c",
|
|
52
|
+
"command -v \"$1\"",
|
|
53
|
+
"sh",
|
|
54
|
+
name
|
|
55
|
+
]
|
|
56
|
+
}];
|
|
57
|
+
}
|
|
58
|
+
function resolveCommandMatches(name, { platform, runProbe }) {
|
|
59
|
+
for (const probe of pathProbesFor(name, platform)) {
|
|
60
|
+
let matches = [];
|
|
61
|
+
try {
|
|
62
|
+
matches = dedupePathMatches(runProbe(probe).split(/\r?\n/).filter((line) => line.trim()), platform);
|
|
63
|
+
} catch {
|
|
64
|
+
matches = [];
|
|
65
|
+
}
|
|
66
|
+
if (matches.length > 0) return matches;
|
|
67
|
+
}
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
function resolveArgvCommandMatches(name, { platform, execFile }) {
|
|
71
|
+
return resolveCommandMatches(name, {
|
|
72
|
+
platform,
|
|
73
|
+
runProbe: (probe) => execFile(probe.file, probe.args, PATH_PROBE_OPTIONS)
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function isAbsoluteCommandPath(name, platform) {
|
|
77
|
+
return (platform === "win32" ? path.win32 : path.posix).isAbsolute(name);
|
|
78
|
+
}
|
|
79
|
+
function resolveAgentCommand({ name, platform = process.platform, execFile, pathExists }) {
|
|
80
|
+
if (isAbsoluteCommandPath(name, platform)) {
|
|
81
|
+
if (typeof pathExists !== "function") throw new TypeError("resolveAgentCommand requires a pathExists probe for an absolute command");
|
|
82
|
+
if (pathExists(name)) return {
|
|
83
|
+
path: name,
|
|
84
|
+
kind: classifyCommandKind(name)
|
|
85
|
+
};
|
|
86
|
+
console.warn(`[glimmervoid] could not resolve '${name}'`);
|
|
87
|
+
return {
|
|
88
|
+
path: null,
|
|
89
|
+
kind: "unresolved"
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
if (typeof execFile !== "function") throw new TypeError("resolveAgentCommand requires an execFile function");
|
|
93
|
+
const matches = resolveArgvCommandMatches(name, {
|
|
94
|
+
platform,
|
|
95
|
+
execFile
|
|
96
|
+
});
|
|
97
|
+
if (matches.length === 0) {
|
|
98
|
+
console.warn(`[glimmervoid] could not resolve '${name}'`);
|
|
99
|
+
return {
|
|
100
|
+
path: null,
|
|
101
|
+
kind: "unresolved"
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
const resolvedPath = matches[0];
|
|
105
|
+
if (process.env.GLIMMERVOID_DEBUG_SPAWN) console.log(`[glimmervoid] resolved '${name}' (first match wins): ${resolvedPath}`);
|
|
106
|
+
if (matches.length > 1) console.warn(`[glimmervoid] multiple '${name}' on PATH (Bun shim risk):\n ${matches.join("\n ")}`);
|
|
107
|
+
const kind = classifyCommandKind(resolvedPath);
|
|
108
|
+
if (platform === "win32") console.log(`[glimmervoid] ${name} spawn strategy: ${kind === "exe" ? "direct exe" : "cmd.exe shim fallback"}`);
|
|
109
|
+
return {
|
|
110
|
+
path: resolvedPath,
|
|
111
|
+
kind
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function buildAgentSpawnCommand({ name, platform, resolved, argGroups = [] }) {
|
|
115
|
+
const childArgs = argGroups.flatMap((group) => group || []);
|
|
116
|
+
if (platform !== "win32") return {
|
|
117
|
+
file: name,
|
|
118
|
+
args: childArgs
|
|
119
|
+
};
|
|
120
|
+
if (resolved && resolved.kind === "exe" && resolved.path) return {
|
|
121
|
+
file: resolved.path,
|
|
122
|
+
args: childArgs
|
|
123
|
+
};
|
|
124
|
+
return {
|
|
125
|
+
file: "cmd.exe",
|
|
126
|
+
args: [
|
|
127
|
+
"/c",
|
|
128
|
+
name,
|
|
129
|
+
...childArgs
|
|
130
|
+
]
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
12
134
|
//#region session/adapters/kimi.ts
|
|
13
135
|
var ID = "kimi";
|
|
14
136
|
var COMMAND_NAME = "kimi";
|
|
@@ -245,4 +367,4 @@ var kimi = {
|
|
|
245
367
|
}
|
|
246
368
|
};
|
|
247
369
|
//#endregion
|
|
248
|
-
export { kimi as t };
|
|
370
|
+
export { resolveArgvCommandMatches as i, buildAgentSpawnCommand as n, resolveAgentCommand as r, kimi as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-CXbdfj0T.js";
|