glimmervoid 0.46.2-next.176 → 0.46.2-next.177
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 +8 -8
- package/dist/chunks/{adapters-B0FRgNMD.js → adapters-AiMCdqav.js} +1 -1
- package/dist/chunks/{adapters-uj1hQlDB.js → adapters-DU6jnKd3.js} +101 -33
- package/dist/chunks/{agent-api-cli-C7rOK_j2.js → agent-api-cli-Blh4i-e_.js} +1 -1
- package/dist/chunks/{agent-api-cli-DN6W8Xwx.js → agent-api-cli-nIoMZ9c4.js} +1 -1
- package/dist/chunks/{agent-api-core-CkplLc3H.js → agent-api-core-B3fuAlaR.js} +1 -1
- package/dist/chunks/{build-channel-B7N0y2ED.js → build-channel-BpphxZcy.js} +1 -1
- package/dist/chunks/{config-FWXqJcc5.js → config-jnDuttam.js} +4 -2
- package/dist/chunks/config-store-Ck7QZdt0.js +1 -0
- package/dist/chunks/{config-store-ByTf734U.js → config-store-eMlT56kt.js} +2 -2
- package/dist/chunks/{main-CWUVOH3k.js → main-QelptGIT.js} +16 -10
- package/dist/chunks/{pair-cli-1f912zOk.js → pair-cli-D1PaM0jr.js} +2 -2
- package/dist/chunks/{remote-config--aXh1Cd8.js → remote-config-Cpg-SS0f.js} +1 -1
- package/dist/chunks/{settings-cli-D5r4x085.js → settings-cli-DaGPZte_.js} +4 -4
- package/dist/chunks/{settings-readout-core-CVlJx8Jy.js → settings-readout-core-DNiU1YXo.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-hDAdQeDt.js → ssh-sign-cli-BJQ2g9zn.js} +1 -1
- package/dist/client/assets/{alert-sound-xw7m_jG5.js → alert-sound-B3FAkjBY.js} +1 -1
- package/dist/client/assets/alert-sound-B3FAkjBY.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-BLd_Zjvl.js → benchmark-panel-CwSMx0t-.js} +1 -1
- package/dist/client/assets/benchmark-panel-CwSMx0t-.js.br +0 -0
- package/dist/client/assets/{celebration-player-C003uCx5.js → celebration-player-CKuYFPpe.js} +1 -1
- package/dist/client/assets/celebration-player-CKuYFPpe.js.br +0 -0
- package/dist/client/assets/{dialogs-rnOIiuVl.js → dialogs-6a61ZXh-.js} +1 -1
- package/dist/client/assets/dialogs-6a61ZXh-.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-Cf6-mvDK.js → doc-editor-ui-Bltd8iwc.js} +1 -1
- package/dist/client/assets/doc-editor-ui-Bltd8iwc.js.br +0 -0
- package/dist/client/assets/{feature-hint-TOVU-h8P.js → feature-hint-CCNrjk2P.js} +1 -1
- package/dist/client/assets/feature-hint-CCNrjk2P.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-BgBEBEyt.js → first-run-checklist-naBL9YSv.js} +1 -1
- package/dist/client/assets/first-run-checklist-naBL9YSv.js.br +0 -0
- package/dist/client/assets/{hooks-panel-D8d4x-F6.js → hooks-panel-CqrjbkxA.js} +1 -1
- package/dist/client/assets/hooks-panel-CqrjbkxA.js.br +0 -0
- package/dist/client/assets/{index-MFeSyqIO.js → index-KnsTnYTH.js} +5 -5
- package/dist/client/assets/index-KnsTnYTH.js.br +0 -0
- package/dist/client/assets/{issues-panel-Cwj4g10U.js → issues-panel-DUYggYU8.js} +1 -1
- package/dist/client/assets/issues-panel-DUYggYU8.js.br +0 -0
- package/dist/client/assets/{nyan-cat-Da1j_wfR.js → nyan-cat-CoX_F4Kc.js} +1 -1
- package/dist/client/assets/nyan-cat-CoX_F4Kc.js.br +0 -0
- package/dist/client/assets/{phone-shell-8yW7brLi.js → phone-shell-UJrfne5I.js} +1 -1
- package/dist/client/assets/phone-shell-UJrfne5I.js.br +0 -0
- package/dist/client/assets/{plan-face-B_D32orj.js → plan-face-D4PcBTxl.js} +1 -1
- package/dist/client/assets/plan-face-D4PcBTxl.js.br +0 -0
- package/dist/client/assets/{plan-render-Cil_yZE6.js → plan-render-CJvsbqV2.js} +1 -1
- package/dist/client/assets/plan-render-CJvsbqV2.js.br +0 -0
- package/dist/client/assets/{pr-scope-tabs-BEnHor3s.js → pr-scope-tabs-Csv-4C2i.js} +1 -1
- package/dist/client/assets/pr-scope-tabs-Csv-4C2i.js.br +0 -0
- package/dist/client/assets/{radar-panel-DyVqMKhK.js → radar-panel-DmOjGLm6.js} +1 -1
- package/dist/client/assets/radar-panel-DmOjGLm6.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DFHZu3A3.js → resume-dialog-CGPeUf4O.js} +1 -1
- package/dist/client/assets/resume-dialog-CGPeUf4O.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-u0L_6br6.js → review-queue-panel-CQBBZJXS.js} +1 -1
- package/dist/client/assets/review-queue-panel-CQBBZJXS.js.br +0 -0
- package/dist/client/assets/{settings-panel-BAd3SvkL.js → settings-panel-BxoXFH9B.js} +2 -2
- package/dist/client/assets/settings-panel-BxoXFH9B.js.br +0 -0
- package/dist/client/assets/{shown-lightbox-SiwoTVrM.js → shown-lightbox-CbuA_eYL.js} +1 -1
- package/dist/client/assets/shown-lightbox-CbuA_eYL.js.br +0 -0
- package/dist/client/assets/{trace-panel-psPvYmU8.js → trace-panel-DOEYK7o6.js} +1 -1
- package/dist/client/assets/trace-panel-DOEYK7o6.js.br +0 -0
- package/dist/client/assets/{usage-panel-7Pf0t9Tk.js → usage-panel-dLbGoBud.js} +1 -1
- package/dist/client/assets/usage-panel-dLbGoBud.js.br +0 -0
- package/dist/client/assets/{visions-panel-BpTGrkqO.js → visions-panel-eDtz_XJp.js} +1 -1
- package/dist/client/assets/visions-panel-eDtz_XJp.js.br +0 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/config-store-CfexUCju.js +0 -1
- package/dist/client/assets/alert-sound-xw7m_jG5.js.br +0 -0
- package/dist/client/assets/benchmark-panel-BLd_Zjvl.js.br +0 -0
- package/dist/client/assets/celebration-player-C003uCx5.js.br +0 -0
- package/dist/client/assets/dialogs-rnOIiuVl.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-Cf6-mvDK.js.br +0 -0
- package/dist/client/assets/feature-hint-TOVU-h8P.js.br +0 -0
- package/dist/client/assets/first-run-checklist-BgBEBEyt.js.br +0 -0
- package/dist/client/assets/hooks-panel-D8d4x-F6.js.br +0 -0
- package/dist/client/assets/index-MFeSyqIO.js.br +0 -0
- package/dist/client/assets/issues-panel-Cwj4g10U.js.br +0 -0
- package/dist/client/assets/nyan-cat-Da1j_wfR.js.br +0 -0
- package/dist/client/assets/phone-shell-8yW7brLi.js.br +0 -0
- package/dist/client/assets/plan-face-B_D32orj.js.br +0 -0
- package/dist/client/assets/plan-render-Cil_yZE6.js.br +0 -0
- package/dist/client/assets/pr-scope-tabs-BEnHor3s.js.br +0 -0
- package/dist/client/assets/radar-panel-DyVqMKhK.js.br +0 -0
- package/dist/client/assets/resume-dialog-DFHZu3A3.js.br +0 -0
- package/dist/client/assets/review-queue-panel-u0L_6br6.js.br +0 -0
- package/dist/client/assets/settings-panel-BAd3SvkL.js.br +0 -0
- package/dist/client/assets/shown-lightbox-SiwoTVrM.js.br +0 -0
- package/dist/client/assets/trace-panel-psPvYmU8.js.br +0 -0
- package/dist/client/assets/usage-panel-7Pf0t9Tk.js.br +0 -0
- package/dist/client/assets/visions-panel-BpTGrkqO.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -5,7 +5,7 @@ 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
6
|
import { t as AGENT_API_VERBS } from "../chunks/session-B2Wieg0a.js";
|
|
7
7
|
import { i as execSync } from "../chunks/child-process-safe-D4hyVIXj.js";
|
|
8
|
-
import { r as agentCommandHelpLines } from "../chunks/agent-api-core-
|
|
8
|
+
import { r as agentCommandHelpLines } from "../chunks/agent-api-core-B3fuAlaR.js";
|
|
9
9
|
import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
|
|
10
10
|
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-WyrLHANY.js";
|
|
11
11
|
import { i as guardrailsDoctorRows, r as probeGuardrailsDependencies } from "../chunks/guardrails-deps-BjPzk1rE.js";
|
|
@@ -65,7 +65,7 @@ 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-D1PaM0jr.js");
|
|
69
69
|
return runPairCli(subcommandArgs);
|
|
70
70
|
}],
|
|
71
71
|
["agent", async (subcommandArgs) => {
|
|
@@ -73,7 +73,7 @@ var OWN_SUBCOMMAND_RUNNERS = [
|
|
|
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-DaGPZte_.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-BJQ2g9zn.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-nIoMZ9c4.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-nIoMZ9c4.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-Ck7QZdt0.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-AiMCdqav.js");
|
|
238
238
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
239
239
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
240
240
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -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-DU6jnKd3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as relayPath } from "./runtime-paths-ghcH9CeW.js";
|
|
2
2
|
import { Lt as FULL_SHA_RE, zt as shortSha$1 } from "./session-B2Wieg0a.js";
|
|
3
3
|
import { n as execFileAsync, r as execFileSync } from "./child-process-safe-D4hyVIXj.js";
|
|
4
|
-
import {
|
|
4
|
+
import { S as InstallFlavor, bt as UpdateChannel, c as SHELL_AGENT_ID } from "./config-jnDuttam.js";
|
|
5
5
|
import { o as supervisionLine } from "./session-routes-Cr9S--Nf.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-Cc40FiZI.js";
|
|
@@ -10,7 +10,7 @@ import { r as nextBackoffMs } from "./backoff-DjVpfHk7.js";
|
|
|
10
10
|
import { t as buildAgentEnv } from "./spawn-env-BFfAkGlR.js";
|
|
11
11
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
12
12
|
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-DnkhGGf5.js";
|
|
13
|
-
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-
|
|
13
|
+
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-BpphxZcy.js";
|
|
14
14
|
import { n as mergeCodexPreToolUse, t as HOOK_TOOLS } from "./hook-tools-Cr97Vdap.js";
|
|
15
15
|
import { t as kimi } from "./kimi-BiLAVDKd.js";
|
|
16
16
|
import fs from "node:fs";
|
|
@@ -18,7 +18,7 @@ import path from "node:path";
|
|
|
18
18
|
//#region session/adapters/claude-code.ts
|
|
19
19
|
var ID$1 = "claude-code";
|
|
20
20
|
var COMMAND_NAME$1 = "claude";
|
|
21
|
-
var envProfile$
|
|
21
|
+
var envProfile$3 = {
|
|
22
22
|
scrub: [
|
|
23
23
|
"CLAUDECODE",
|
|
24
24
|
"CLAUDE_CODE_SSE_PORT",
|
|
@@ -35,7 +35,7 @@ function isKnownIdleChar(char) {
|
|
|
35
35
|
if (!char) return false;
|
|
36
36
|
return KNOWN_IDLE_CODEPOINTS.has(char.codePointAt(0) ?? 0);
|
|
37
37
|
}
|
|
38
|
-
var titleProfile$
|
|
38
|
+
var titleProfile$2 = {
|
|
39
39
|
isSpinnerChar,
|
|
40
40
|
isIdleChar: isKnownIdleChar,
|
|
41
41
|
dropsLeadingAscii: true,
|
|
@@ -112,7 +112,7 @@ var hooks$1 = {
|
|
|
112
112
|
mapPromptToolName: mapHookPromptToolName,
|
|
113
113
|
injection: { kind: "settings-file" }
|
|
114
114
|
};
|
|
115
|
-
function resolveCommand$
|
|
115
|
+
function resolveCommand$2({ platform, execFile = execFileSync, pathExists = fs.existsSync } = {}) {
|
|
116
116
|
return resolveAgentCommand({
|
|
117
117
|
name: COMMAND_NAME$1,
|
|
118
118
|
platform: platform || process.platform,
|
|
@@ -120,7 +120,7 @@ function resolveCommand$1({ platform, execFile = execFileSync, pathExists = fs.e
|
|
|
120
120
|
pathExists
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
function buildSpawnCommand$
|
|
123
|
+
function buildSpawnCommand$2({ platform, resolved, settingsArgs: injectedSettingsArgs = [], agentArgs = [] }) {
|
|
124
124
|
return buildAgentSpawnCommand({
|
|
125
125
|
name: COMMAND_NAME$1,
|
|
126
126
|
platform,
|
|
@@ -128,8 +128,8 @@ function buildSpawnCommand$1({ platform, resolved, settingsArgs: injectedSetting
|
|
|
128
128
|
argGroups: [injectedSettingsArgs, agentArgs]
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function buildEnv$
|
|
132
|
-
return buildAgentEnv(baseEnv, extraEnv, envProfile$
|
|
131
|
+
function buildEnv$2(baseEnv, extraEnv, options) {
|
|
132
|
+
return buildAgentEnv(baseEnv, extraEnv, envProfile$3, options);
|
|
133
133
|
}
|
|
134
134
|
var settingsArgs = (settingsPath) => ["--settings", settingsPath];
|
|
135
135
|
var SESSION_ID_FLAG = "--session-id";
|
|
@@ -159,7 +159,7 @@ var APPENDED_SYSTEM_PROMPT_FLAGS = Object.freeze([APPEND_SYSTEM_PROMPT_FLAG, "--
|
|
|
159
159
|
function isAppendedSystemPromptArgument(launchArgument) {
|
|
160
160
|
return APPENDED_SYSTEM_PROMPT_FLAGS.some((flag) => launchArgument === flag || launchArgument.startsWith(`${flag}=`));
|
|
161
161
|
}
|
|
162
|
-
function buildArgs$
|
|
162
|
+
function buildArgs$2({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, hasOuterGuardrails = false, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
163
163
|
const args = dangerouslySkipPermissions ? ["--dangerously-skip-permissions"] : [];
|
|
164
164
|
if (resumeSessionId) args.push("--resume", resumeSessionId);
|
|
165
165
|
if (canRunHelpCommand && !extraArgs.some(isAppendedSystemPromptArgument)) args.push(APPEND_SYSTEM_PROMPT_FLAG, supervisionLine({
|
|
@@ -183,13 +183,13 @@ var claudeCode = {
|
|
|
183
183
|
label: "Claude Code",
|
|
184
184
|
usageVendor: "claude",
|
|
185
185
|
commandName: COMMAND_NAME$1,
|
|
186
|
-
envProfile: envProfile$
|
|
187
|
-
titleProfile: titleProfile$
|
|
186
|
+
envProfile: envProfile$3,
|
|
187
|
+
titleProfile: titleProfile$2,
|
|
188
188
|
hooks: hooks$1,
|
|
189
|
-
resolveCommand: resolveCommand$
|
|
190
|
-
buildSpawnCommand: buildSpawnCommand$
|
|
191
|
-
buildEnv: buildEnv$
|
|
192
|
-
buildArgs: buildArgs$
|
|
189
|
+
resolveCommand: resolveCommand$2,
|
|
190
|
+
buildSpawnCommand: buildSpawnCommand$2,
|
|
191
|
+
buildEnv: buildEnv$2,
|
|
192
|
+
buildArgs: buildArgs$2,
|
|
193
193
|
settingsArgs,
|
|
194
194
|
launchSessionId,
|
|
195
195
|
capabilities: {
|
|
@@ -981,7 +981,7 @@ var COMMAND_NAME = "codex";
|
|
|
981
981
|
var RELAY_PATH = relayPath("hook-relay");
|
|
982
982
|
var HOOK_TOOL_RELAY_PATH = relayPath("hook-tool-relay");
|
|
983
983
|
var HOOK_EVENTS = LEGACY_HOOK_EVENTS;
|
|
984
|
-
var envProfile$
|
|
984
|
+
var envProfile$2 = {
|
|
985
985
|
scrub: [],
|
|
986
986
|
set: {}
|
|
987
987
|
};
|
|
@@ -996,7 +996,7 @@ function classifyTitle(title, { cwdBasename = null } = {}) {
|
|
|
996
996
|
classifyAgainstCwdBasename: classifyActionRequired
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
|
-
var titleProfile = {
|
|
999
|
+
var titleProfile$1 = {
|
|
1000
1000
|
classifyTitle,
|
|
1001
1001
|
quietUntilFirstPrompt: true,
|
|
1002
1002
|
taskTitle: {
|
|
@@ -1106,9 +1106,9 @@ function buildHookArgs({ relayPath = RELAY_PATH, events = HOOK_EVENTS, matchedRe
|
|
|
1106
1106
|
}
|
|
1107
1107
|
var installedHookPlan = null;
|
|
1108
1108
|
function probeInstalledCodexVersion() {
|
|
1109
|
-
const versionCommand = buildSpawnCommand({
|
|
1109
|
+
const versionCommand = buildSpawnCommand$1({
|
|
1110
1110
|
platform: process.platform,
|
|
1111
|
-
resolved: resolveCommand(),
|
|
1111
|
+
resolved: resolveCommand$1(),
|
|
1112
1112
|
agentArgs: ["--version"]
|
|
1113
1113
|
});
|
|
1114
1114
|
try {
|
|
@@ -1122,9 +1122,9 @@ function probeInstalledCodexVersion() {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
async function readHostCodexVersion() {
|
|
1125
|
-
const versionCommand = buildSpawnCommand({
|
|
1125
|
+
const versionCommand = buildSpawnCommand$1({
|
|
1126
1126
|
platform: process.platform,
|
|
1127
|
-
resolved: resolveCommand(),
|
|
1127
|
+
resolved: resolveCommand$1(),
|
|
1128
1128
|
agentArgs: ["--version"]
|
|
1129
1129
|
});
|
|
1130
1130
|
try {
|
|
@@ -1162,7 +1162,7 @@ var hooks = {
|
|
|
1162
1162
|
mayContributeHooks
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
|
-
function resolveCommand({ platform, execFile = execFileSync, pathExists = fs.existsSync } = {}) {
|
|
1165
|
+
function resolveCommand$1({ platform, execFile = execFileSync, pathExists = fs.existsSync } = {}) {
|
|
1166
1166
|
return resolveAgentCommand({
|
|
1167
1167
|
name: COMMAND_NAME,
|
|
1168
1168
|
platform: platform || process.platform,
|
|
@@ -1170,7 +1170,7 @@ function resolveCommand({ platform, execFile = execFileSync, pathExists = fs.exi
|
|
|
1170
1170
|
pathExists
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
function buildSpawnCommand({ platform, resolved, settingsArgs = [], agentArgs = [] }) {
|
|
1173
|
+
function buildSpawnCommand$1({ platform, resolved, settingsArgs = [], agentArgs = [] }) {
|
|
1174
1174
|
return buildAgentSpawnCommand({
|
|
1175
1175
|
name: COMMAND_NAME,
|
|
1176
1176
|
platform,
|
|
@@ -1178,8 +1178,8 @@ function buildSpawnCommand({ platform, resolved, settingsArgs = [], agentArgs =
|
|
|
1178
1178
|
argGroups: [settingsArgs, agentArgs]
|
|
1179
1179
|
});
|
|
1180
1180
|
}
|
|
1181
|
-
function buildEnv(baseEnv, extraEnv, options) {
|
|
1182
|
-
return buildAgentEnv(baseEnv, extraEnv, envProfile$
|
|
1181
|
+
function buildEnv$1(baseEnv, extraEnv, options) {
|
|
1182
|
+
return buildAgentEnv(baseEnv, extraEnv, envProfile$2, options);
|
|
1183
1183
|
}
|
|
1184
1184
|
var UPDATE_CHECK_ARGS = ["-c", "check_for_update_on_startup=false"];
|
|
1185
1185
|
var SKIP_PERMISSIONS_ARGS = [
|
|
@@ -1214,7 +1214,7 @@ function setsOperatorInstructions(operatorConfigText) {
|
|
|
1214
1214
|
function isDeveloperInstructionsOverride(launchArgument) {
|
|
1215
1215
|
return launchArgument.startsWith(`${DEVELOPER_INSTRUCTIONS_KEY}=`);
|
|
1216
1216
|
}
|
|
1217
|
-
function buildArgs({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, hasOuterGuardrails = false, hasOperatorInstructions = false, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
1217
|
+
function buildArgs$1({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, hasOuterGuardrails = false, hasOperatorInstructions = false, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
1218
1218
|
const args = [...UPDATE_CHECK_ARGS];
|
|
1219
1219
|
if (canRunHelpCommand && !hasOperatorInstructions && !extraArgs.some(isDeveloperInstructionsOverride)) args.push("-c", `${DEVELOPER_INSTRUCTIONS_KEY}='''${supervisionLine({
|
|
1220
1220
|
isGuarded: hasOuterGuardrails,
|
|
@@ -1231,13 +1231,13 @@ var codex = {
|
|
|
1231
1231
|
label: "Codex CLI",
|
|
1232
1232
|
usageVendor: "codex",
|
|
1233
1233
|
commandName: COMMAND_NAME,
|
|
1234
|
-
envProfile: envProfile$
|
|
1235
|
-
titleProfile,
|
|
1234
|
+
envProfile: envProfile$2,
|
|
1235
|
+
titleProfile: titleProfile$1,
|
|
1236
1236
|
hooks,
|
|
1237
|
-
resolveCommand,
|
|
1238
|
-
buildSpawnCommand,
|
|
1239
|
-
buildEnv,
|
|
1240
|
-
buildArgs,
|
|
1237
|
+
resolveCommand: resolveCommand$1,
|
|
1238
|
+
buildSpawnCommand: buildSpawnCommand$1,
|
|
1239
|
+
buildEnv: buildEnv$1,
|
|
1240
|
+
buildArgs: buildArgs$1,
|
|
1241
1241
|
operatorConfigPath,
|
|
1242
1242
|
setsOperatorInstructions,
|
|
1243
1243
|
buildHookArgs,
|
|
@@ -1269,6 +1269,73 @@ var codex = {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
1271
|
//#endregion
|
|
1272
|
+
//#region session/adapters/shell.ts
|
|
1273
|
+
var envProfile$1 = {
|
|
1274
|
+
scrub: [],
|
|
1275
|
+
set: {}
|
|
1276
|
+
};
|
|
1277
|
+
var SHELL_CAPABILITIES = Object.freeze({
|
|
1278
|
+
hooks: false,
|
|
1279
|
+
awaitingInput: false,
|
|
1280
|
+
backgroundAgents: false,
|
|
1281
|
+
resume: false,
|
|
1282
|
+
statusLine: false,
|
|
1283
|
+
rtk: false,
|
|
1284
|
+
saneYolo: false,
|
|
1285
|
+
compactQuiet: false,
|
|
1286
|
+
skipPermissionsFlag: false,
|
|
1287
|
+
headless: false
|
|
1288
|
+
});
|
|
1289
|
+
var titleProfile = {
|
|
1290
|
+
classifyTitle: () => "ignore",
|
|
1291
|
+
taskTitle: {
|
|
1292
|
+
readsTranscriptTitle: false,
|
|
1293
|
+
genericTitles: [SHELL_AGENT_ID],
|
|
1294
|
+
agentSuffix: ""
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
function shellCommandName(platform, env) {
|
|
1298
|
+
if (platform === "win32") return env.COMSPEC || "cmd.exe";
|
|
1299
|
+
return env.SHELL || "/bin/sh";
|
|
1300
|
+
}
|
|
1301
|
+
var commandName = shellCommandName(process.platform, process.env);
|
|
1302
|
+
function resolveCommand({ platform, execFile = execFileSync, pathExists = fs.existsSync } = {}) {
|
|
1303
|
+
return resolveAgentCommand({
|
|
1304
|
+
name: commandName,
|
|
1305
|
+
platform: platform || process.platform,
|
|
1306
|
+
execFile,
|
|
1307
|
+
pathExists
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
function buildSpawnCommand({ platform, resolved, agentArgs = [] }) {
|
|
1311
|
+
return buildAgentSpawnCommand({
|
|
1312
|
+
name: commandName,
|
|
1313
|
+
platform,
|
|
1314
|
+
resolved,
|
|
1315
|
+
argGroups: [agentArgs]
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
function buildEnv(baseEnv, extraEnv, options) {
|
|
1319
|
+
return buildAgentEnv(baseEnv, extraEnv, envProfile$1, options);
|
|
1320
|
+
}
|
|
1321
|
+
function buildArgs() {
|
|
1322
|
+
return process.platform === "win32" ? [] : ["-l"];
|
|
1323
|
+
}
|
|
1324
|
+
var shell = {
|
|
1325
|
+
id: SHELL_AGENT_ID,
|
|
1326
|
+
label: "Shell",
|
|
1327
|
+
usageVendor: SHELL_AGENT_ID,
|
|
1328
|
+
commandName,
|
|
1329
|
+
envProfile: envProfile$1,
|
|
1330
|
+
titleProfile,
|
|
1331
|
+
hooks: null,
|
|
1332
|
+
capabilities: SHELL_CAPABILITIES,
|
|
1333
|
+
resolveCommand,
|
|
1334
|
+
buildSpawnCommand,
|
|
1335
|
+
buildEnv,
|
|
1336
|
+
buildArgs
|
|
1337
|
+
};
|
|
1338
|
+
//#endregion
|
|
1272
1339
|
//#region session/adapters/custom.ts
|
|
1273
1340
|
var envProfile = {
|
|
1274
1341
|
scrub: [],
|
|
@@ -1351,7 +1418,8 @@ var adapterEntries = [
|
|
|
1351
1418
|
[claudeCode.id, claudeCode],
|
|
1352
1419
|
[codex.id, codex],
|
|
1353
1420
|
[grok.id, grok],
|
|
1354
|
-
[kimi.id, kimi]
|
|
1421
|
+
[kimi.id, kimi],
|
|
1422
|
+
[shell.id, shell]
|
|
1355
1423
|
];
|
|
1356
1424
|
var ADAPTERS = new Map(adapterEntries);
|
|
1357
1425
|
var customAdapters = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as errorCode } from "./text-DoirglWV.js";
|
|
2
2
|
import { c as AgentLimitsReply, n as AGENT_URL_ENV } from "./session-B2Wieg0a.js";
|
|
3
3
|
import { i as formatSessionLimits } from "./session-routes-Cr9S--Nf.js";
|
|
4
|
-
import { f as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
4
|
+
import { f as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-B3fuAlaR.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";
|
|
@@ -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-Blh4i-e_.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I as TASK_TITLE_CONTROL_CHARACTERS, a as AgentAttentionRequest, d as AgentSendRequest, i as AgentAnswerRequest, l as AgentPullRequestRequest, m as AgentSpawnRequest, o as AgentCloseRequest, p as AgentSettingsRequest, s as AgentEditRequest, t as AGENT_API_VERBS, u as AgentReadRequest, x as RefinedTaskTitle } from "./session-B2Wieg0a.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-jnDuttam.js";
|
|
3
3
|
import { n as NO_OWN_WORKTREE_REASON, t as COMMAND_ROUTES } from "./session-routes-Cr9S--Nf.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import crypto from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./session-B2Wieg0a.js";
|
|
2
|
-
import {
|
|
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-jnDuttam.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"]);
|
|
@@ -2652,11 +2652,13 @@ var ConfigUpdate = z.object({
|
|
|
2652
2652
|
worktreeShare: true
|
|
2653
2653
|
}).strict();
|
|
2654
2654
|
var AGENT_ID_RE = /^[a-z][a-z0-9-]{1,31}$/;
|
|
2655
|
+
var SHELL_AGENT_ID = "shell";
|
|
2655
2656
|
var BUILTIN_AGENT_IDS = Object.freeze([
|
|
2656
2657
|
"claude-code",
|
|
2657
2658
|
"codex",
|
|
2658
2659
|
"grok",
|
|
2659
|
-
"kimi"
|
|
2660
|
+
"kimi",
|
|
2661
|
+
SHELL_AGENT_ID
|
|
2660
2662
|
]);
|
|
2661
2663
|
var AGENT_ID_SHAPE_MESSAGE = "an agent id of 2 to 32 characters of lowercase letters, digits and dashes, starting with a letter";
|
|
2662
2664
|
var AGENT_COMMAND_BASENAME_RE = /^[A-Za-z0-9._+-]+$/;
|
|
@@ -2894,4 +2896,4 @@ function configIssueMessage(error) {
|
|
|
2894
2896
|
return error.issues[0]?.message || "settings are invalid";
|
|
2895
2897
|
}
|
|
2896
2898
|
//#endregion
|
|
2897
|
-
export {
|
|
2899
|
+
export { FLYING_ANIMALS_DURATION_RANGE as $, HINT_VIEW_BY_FEATURE as A, PLAN_HOOK_EVENT as At, MergedPrListing as B, IssueKey as Bt, ONBOARDING_STEPS as C, MAX_RAW_LINE_CHARS as Ct, pullRequestKeyFromReference as D, ChangeMap as Dt, OPERATOR_SURFACES as E, CoherenceJournalOutput as Et, BenchmarkJudgement as F, PlanRevision as Ft, GithubPrLightSearchNode as G, issuePullRequestStateFromGithub as Gt, PrCheckoutCaseInput as H, IssuesSearchResponse as Ht, BenchmarkRun as I, parseExitPlanModeHookPayload as It, WorkflowCommentBody as J, GithubPrsFrame as K, BenchmarkStatus as L, planTitle as Lt, BenchmarkActionRequest as M, PLAN_RESULT_HOOK_EVENT as Mt, BenchmarkCase as N, PLAN_TOOL_NAME as Nt, FeatureHintState as O, changeMapFactId as Ot, BenchmarkId as P, PlanDecision as Pt, FLYING_ANIMALS_DEFAULTS as Q, BenchmarkSuite as R, GithubIssuePullRequestsRepository as Rt, InstallFlavor as S, SessionSetup as St, OPERATOR_ACTIONS_BY_SURFACE as T, TraceRecord as Tt, GithubPrDetailNode as U, IssuesState as Ut, MinedPrReviewData as V, IssueUpdate as Vt, GithubPrKey as W, IssuesStatus as Wt, WorkflowsSettings as X, WorkflowLabelName as Y, WorkflowsState as Z, CHANGES_WATCH_LEASE_MS as _, WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE as _t, ConfigUpdate as a, PORT_RANGE as at, ClientMessage as b, UpdateChannel as bt, SHELL_AGENT_ID as c, POSTHOG_TRAFFIC_BASELINE_RANGE as ct, BranchGcFileSettings as d, REPLAY_BUFFER_KB_RANGE as dt, FLYING_ANIMALS_GAP_RANGE as et, ReviewAgentId as f, TASK_TITLE_TIMEOUT_RANGE as ft, CHANGES_POLL_INTERVAL_MS as g, USAGE_SCAN_INTERVAL_RANGE as gt, normalizeLegacyConfigNumbers as h, USAGE_RETAIN_DAYS_RANGE as ht, Config as i, NON_NEGATIVE_NUMBER_RANGE as it, HintFeature as j, PLAN_HOOK_OUTPUT_MAX_CHARS as jt, HINT_FEATURES as k, PLAN_BODY_CAP_BYTES as kt, TASK_TITLE_SOURCE_PRIORITY as l, POSTHOG_TRAFFIC_MIN_USERS_RANGE as lt, USAGE_VENDOR_KEYS as m, USAGE_INTEGER_RANGES as mt, BUILTIN_AGENT_IDS as n, KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE as nt, PersistedTaskTitle as o, POSITIVE_NUMBER_RANGE as ot, USAGE_COST_MODES as p, USAGE_BUDGET_RANGE as pt, comparablePrKey as q, BrowserConfig as r, MEMORY_RESERVE_MB_RANGE as rt, RUNTIME_CONFIG_SCALAR_KEYS as s, POSTHOG_FIX_TIMEOUT_RANGE as st, AGENT_ID_SHAPE_MESSAGE as t, FLYING_ANIMALS_SCALE_RANGE as tt, configIssueMessage as u, POSTHOG_TRAFFIC_MULTIPLIER_RANGE as ut, CLIENT_LOG_TEXT_MAX_CHARS as v, WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE as vt, ONBOARDING_STEP_STATES as w, TraceCheckpoint as wt, DASHBOARD_VIEWS as x, UpdateJournal as xt, CONTROL_FRAME_MAX_BYTES as y, UPDATE_CHANNELS as yt, CommitComparison as z, GithubIssueResponse as zt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as loadConfigFile } from "./config-store-eMlT56kt.js";
|
|
@@ -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
|
|
5
|
+
import { $ as FLYING_ANIMALS_DURATION_RANGE, Q as FLYING_ANIMALS_DEFAULTS, _t as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, at as PORT_RANGE, ct as POSTHOG_TRAFFIC_BASELINE_RANGE, d as BranchGcFileSettings, dt as REPLAY_BUFFER_KB_RANGE, et as FLYING_ANIMALS_GAP_RANGE, ft as TASK_TITLE_TIMEOUT_RANGE, gt as USAGE_SCAN_INTERVAL_RANGE, h as normalizeLegacyConfigNumbers, ht as USAGE_RETAIN_DAYS_RANGE, i as Config, it as NON_NEGATIVE_NUMBER_RANGE, lt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, mt as USAGE_INTEGER_RANGES, n as BUILTIN_AGENT_IDS, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, p as USAGE_COST_MODES, pt as USAGE_BUDGET_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_MULTIPLIER_RANGE, vt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, yt as UPDATE_CHANNELS } from "./config-jnDuttam.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-BpphxZcy.js";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import os from "node:os";
|
|
@@ -5,9 +5,9 @@ import { c as resolvePackageBin, i as clientDir, n as bundled, o as packageRoot,
|
|
|
5
5
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
6
6
|
import { At as TeamReviewThreadCommentsResponse, B as MyPr, Bt as GH_SEGMENT, C as SESSION_DOC_BODY_CAP_BYTES, Ct as ReviewVerdict, D as SHOWN_FILE_CAP_BYTES, Dt as TeamReviewResolveResponse, E as SESSION_NAME_RULE_TEXT, Et as TeamReviewCompareFiles, F as SshSignRequest, H as MyPrCheckContext, Ht as REPO_SLUG_RE, It as hasStandingViewerApproval, J as MyPrMergeRequest, Jt as BADGE_LABELS, K as MyPrLaneEntry, L as TaskTitle, Mt as TeamReviewThreadsRepository, N as ShownFile, Nt as canApproveAfterComment, O as SIGN_URL_ENV, Ot as TeamReviewStateEntry, Pt as decisionAsIfApprovalRequired, Qt as STATES, Rt as HEX_SHA_RE, St as ReviewThreadId, T as SESSION_NAME_PATTERN, U as MyPrCheckContextsResponse, Ut as repoParts, V as MyPrAutoRebase, Vt as NODE_ID_RE, W as MyPrKeepMergeableRequest, X as MyPrMergeStateResponse, Xt as MERGEABLE_LIVE_STATES, Yt as KILLABLE_STATES, Z as MyPrMergeWhenReadyRequest, Zt as RESTARTABLE_STATES, _ as CONVERSATION_PERMISSION_HOOK_EVENT, b as ConversationQuestion, bt as ReviewFinding, ct as CommitSha, dt as FindingSeverity, et as MyPrThreadNode, g as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, gt as PrDetail, h as COHERENCE_HOOKS_INACTIVE, ht as PostingPlan, jt as TeamReviewThreadResult, k as SSH_SIGN_BODY_CAP_BYTES, kt as TeamReviewStatus, lt as DECIDING_REVIEW_STATES, mt as PostedReviewEvent, n as AGENT_URL_ENV, nt as MyPrsSnapshot, pt as GithubReviewState, q as MyPrMergeMethod, r as ASK_USER_QUESTION_TOOL_NAME, rt as MyPrsState, tt as MyPrThreadsResponse, ut as EarlierReview, v as CONVERSATION_TOOL_RESULT_HOOK_EVENT, vt as ReviewComment, wt as TeamReviewActionRequest, xt as ReviewResult, yt as ReviewDraft, z as LinkedPr, zt as shortSha } from "./session-B2Wieg0a.js";
|
|
7
7
|
import { n as execFileAsync, o as spawn, r as execFileSync, t as execFile } from "./child-process-safe-D4hyVIXj.js";
|
|
8
|
-
import { At as
|
|
8
|
+
import { A as HINT_VIEW_BY_FEATURE, At as PLAN_HOOK_EVENT, B as MergedPrListing, Bt as IssueKey, Ct as MAX_RAW_LINE_CHARS, D as pullRequestKeyFromReference, Dt as ChangeMap, Et as CoherenceJournalOutput, F as BenchmarkJudgement, Ft as PlanRevision, G as GithubPrLightSearchNode, Gt as issuePullRequestStateFromGithub, H as PrCheckoutCaseInput, Ht as IssuesSearchResponse, I as BenchmarkRun, It as parseExitPlanModeHookPayload, J as WorkflowCommentBody, K as GithubPrsFrame, L as BenchmarkStatus, Lt as planTitle, M as BenchmarkActionRequest, Mt as PLAN_RESULT_HOOK_EVENT, N as BenchmarkCase, Nt as PLAN_TOOL_NAME, O as FeatureHintState, Ot as changeMapFactId, P as BenchmarkId, Pt as PlanDecision, R as BenchmarkSuite, Rt as GithubIssuePullRequestsRepository, St as SessionSetup, Tt as TraceRecord, U as GithubPrDetailNode, Ut as IssuesState, V as MinedPrReviewData, Vt as IssueUpdate, W as GithubPrKey, Wt as IssuesStatus, X as WorkflowsSettings, Y as WorkflowLabelName, Z as WorkflowsState, a as ConfigUpdate, b as ClientMessage, c as SHELL_AGENT_ID, f as ReviewAgentId, g as CHANGES_POLL_INTERVAL_MS, jt as PLAN_HOOK_OUTPUT_MAX_CHARS, k as HINT_FEATURES, kt as PLAN_BODY_CAP_BYTES, m as USAGE_VENDOR_KEYS, mt as USAGE_INTEGER_RANGES, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_COST_MODES, q as comparablePrKey, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage, v as CLIENT_LOG_TEXT_MAX_CHARS, wt as TraceCheckpoint, xt as UpdateJournal, y as CONTROL_FRAME_MAX_BYTES, z as CommitComparison, zt as GithubIssueResponse } from "./config-jnDuttam.js";
|
|
9
9
|
import { a as permitsHelpCommand, o as supervisionLine, r as describeSessionLimits } from "./session-routes-Cr9S--Nf.js";
|
|
10
|
-
import { A as seedTaskTitleSources, B as listRepoWorktreePaths, C as extractPromptTaskTitle, D as parseRefinedTaskTitle, E as parseRefinedSessionName, F as resumePromptFor, H as nextSuggestedName, I as shouldAdoptReportedResumeId, L as claudeProjectsDir, M as RESUME_ID_RE, N as pickAutoResume, O as resolveRefocusTaskTitle, P as resolveResumeTarget, R as encodeProjectDir, S as extractOscTaskTitle, T as isSubstantivePrompt, V as isAutoNameOf, _ as buildTaskTitleRefinementPrompt, a as decideSpawnAllowance, b as decideTaskTitleRefinement, c as describeKeptChildAttention, d as describeUnpushedCloseRefusal, g as buildPersistedTaskTitle, h as projectReviews, i as decideAgentRequest, j as AUTO_CONTINUE_PROMPT, k as resolveTaskTitle, l as describePushLanding, m as projectMyPrs, n as REFUSAL_REASON, o as deriveChildSessionName, p as parseAgentVerb, s as describeChildEndNote, u as describeRoleRefusal, v as chooseRefinedSessionName, w as isSelfWakePrompt, x as extractAiTitle, y as cleanTaskPrompt, z as listRepoConversations } from "./agent-api-core-
|
|
10
|
+
import { A as seedTaskTitleSources, B as listRepoWorktreePaths, C as extractPromptTaskTitle, D as parseRefinedTaskTitle, E as parseRefinedSessionName, F as resumePromptFor, H as nextSuggestedName, I as shouldAdoptReportedResumeId, L as claudeProjectsDir, M as RESUME_ID_RE, N as pickAutoResume, O as resolveRefocusTaskTitle, P as resolveResumeTarget, R as encodeProjectDir, S as extractOscTaskTitle, T as isSubstantivePrompt, V as isAutoNameOf, _ as buildTaskTitleRefinementPrompt, a as decideSpawnAllowance, b as decideTaskTitleRefinement, c as describeKeptChildAttention, d as describeUnpushedCloseRefusal, g as buildPersistedTaskTitle, h as projectReviews, i as decideAgentRequest, j as AUTO_CONTINUE_PROMPT, k as resolveTaskTitle, l as describePushLanding, m as projectMyPrs, n as REFUSAL_REASON, o as deriveChildSessionName, p as parseAgentVerb, s as describeChildEndNote, u as describeRoleRefusal, v as chooseRefinedSessionName, w as isSelfWakePrompt, x as extractAiTitle, y as cleanTaskPrompt, z as listRepoConversations } from "./agent-api-core-B3fuAlaR.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
12
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-WyrLHANY.js";
|
|
13
13
|
import { n as checkGuardrailsDependencies, t as allowGuardedSpawn } from "./guardrails-deps-BjPzk1rE.js";
|
|
@@ -22,15 +22,15 @@ import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.j
|
|
|
22
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-C7ER2sw2.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 resolveProjectToken, B as buildAiGenerationEvents, G as claudeAccountUuidOf, H as buildExceptionProperties, I as FIRST_RUN_NOTICE, J as decideRemoteTelemetryState, K as codexUserIdOf, L as TELEMETRY_BATCH_URL, Q as parsePosthogReleaseId, R as TELEMETRY_FLAGS_URL, S as validateSettingsBlock, U as buildPersonProperties, V as buildBrowserExceptionProperties, W as classifySessionExit, X as exceptionFingerprint, Y as decideTelemetryConsent, Z as nodeMajorVersion, _ as isRtkBinaryName, a as ensureProjectIds, at as matchedPrefix, b as mergeSettingsBlock, ct as sessionIdFromBranch, dt as canonicalizePath, ft as comparableDirectoryPath, g as installTargetPath, h as findEscapingArchiveMember, i as createConfigStore, it as DEFAULT_BRANCH_GC_PREFIXES, lt as usablePrefixes, m as decideRtkInstall, n as DEFAULT_CONFIG, nt as stableConfigKey, o as generateProjectId, ot as planBranchGc, p as assetForPlatform, pt as isSameDirectoryPath, q as decideIsDevInstall, s as glimmervoidHomeDir$1, st as planWorktreeGc, t as ABORT_CONFIG_SAVE, ut as worktreeIntegrationTips, v as verifyDigest, x as settingsBlockSpecFor, z as adapterBucket } 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, 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 claudeCode, 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 resolveProjectToken, B as buildAiGenerationEvents, G as claudeAccountUuidOf, H as buildExceptionProperties, I as FIRST_RUN_NOTICE, J as decideRemoteTelemetryState, K as codexUserIdOf, L as TELEMETRY_BATCH_URL, Q as parsePosthogReleaseId, R as TELEMETRY_FLAGS_URL, S as validateSettingsBlock, U as buildPersonProperties, V as buildBrowserExceptionProperties, W as classifySessionExit, X as exceptionFingerprint, Y as decideTelemetryConsent, Z as nodeMajorVersion, _ as isRtkBinaryName, a as ensureProjectIds, at as matchedPrefix, b as mergeSettingsBlock, ct as sessionIdFromBranch, dt as canonicalizePath, ft as comparableDirectoryPath, g as installTargetPath, h as findEscapingArchiveMember, i as createConfigStore, it as DEFAULT_BRANCH_GC_PREFIXES, lt as usablePrefixes, m as decideRtkInstall, n as DEFAULT_CONFIG, nt as stableConfigKey, o as generateProjectId, ot as planBranchGc, p as assetForPlatform, pt as isSameDirectoryPath, q as decideIsDevInstall, s as glimmervoidHomeDir$1, st as planWorktreeGc, t as ABORT_CONFIG_SAVE, ut as worktreeIntegrationTips, v as verifyDigest, x as settingsBlockSpecFor, z as adapterBucket } from "./config-store-eMlT56kt.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-BpphxZcy.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, 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 claudeCode, 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-DU6jnKd3.js";
|
|
28
28
|
import { t as HOOK_TOOLS } from "./hook-tools-Cr97Vdap.js";
|
|
29
29
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldKimiHomeSecrets, n as generatedKimiHomePath, o as realKimiHome, p as trashSessionTempFolderOnceUnheld, u as createHeldSessionTempFolder } from "./kimi-home-CYJpt82i.js";
|
|
30
30
|
import { t as kimi } from "./kimi-BiLAVDKd.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-Cpg-SS0f.js";
|
|
33
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-DNiU1YXo.js";
|
|
34
34
|
import { _ as escapeMarkup, g as createLaneLog, n as createVisionsSetup } from "./visions-setup-VMMyqOpl.js";
|
|
35
35
|
import { t as getRtkPath } from "./rtk-resolver-BifDj_oS.js";
|
|
36
36
|
import { createRequire } from "node:module";
|
|
@@ -6182,6 +6182,10 @@ function explainNotification(to, gate, event, opts) {
|
|
|
6182
6182
|
category: null,
|
|
6183
6183
|
reason: "owned-by-parent-silent"
|
|
6184
6184
|
};
|
|
6185
|
+
if (opts?.isMachineShell) return {
|
|
6186
|
+
category: null,
|
|
6187
|
+
reason: "machine-shell-silent"
|
|
6188
|
+
};
|
|
6185
6189
|
if (event === "user_kill") return {
|
|
6186
6190
|
category: null,
|
|
6187
6191
|
reason: "user-kill-silent"
|
|
@@ -6724,7 +6728,8 @@ function createSessionEventWiring(dependencies) {
|
|
|
6724
6728
|
const { category, reason } = explainNotification(to, notifyGate, event, {
|
|
6725
6729
|
signal: detail?.signal ?? void 0,
|
|
6726
6730
|
hookSeen: session.hookSeen,
|
|
6727
|
-
isOwnedByParentSession: session.ownerId !== null
|
|
6731
|
+
isOwnedByParentSession: session.ownerId !== null,
|
|
6732
|
+
isMachineShell: session.agentId === SHELL_AGENT_ID
|
|
6728
6733
|
});
|
|
6729
6734
|
session.recordNotifyDecision({
|
|
6730
6735
|
ts: Date.now(),
|
|
@@ -50243,6 +50248,7 @@ function createSessionFactory(dependencies) {
|
|
|
50243
50248
|
isSettingOn: (dependencies.getConfig?.() ?? config).coherence?.enabled === true
|
|
50244
50249
|
});
|
|
50245
50250
|
const builtMapping = project.environment;
|
|
50251
|
+
const isMachineShell = (overrides.agent ?? project.agent) === SHELL_AGENT_ID;
|
|
50246
50252
|
const sessionTempFolder = builtMapping ? null : ensureSessionTempFolder(project.id);
|
|
50247
50253
|
const session = new Session({
|
|
50248
50254
|
id: project.id,
|
|
@@ -50260,7 +50266,7 @@ function createSessionFactory(dependencies) {
|
|
|
50260
50266
|
replayBufferKB: config.replayBufferKB,
|
|
50261
50267
|
hookRouter: dependencies.hookRouter,
|
|
50262
50268
|
getHookPort: dependencies.getHookPort,
|
|
50263
|
-
gitWorkspace: builtMapping ? null : dependencies.getGitWorkspace(),
|
|
50269
|
+
gitWorkspace: builtMapping || isMachineShell ? null : dependencies.getGitWorkspace(),
|
|
50264
50270
|
integrationBranch: project.baseBranch || configuredIntegrationBranch(config),
|
|
50265
50271
|
autoRebase: config.worktreeAutoRebase !== false,
|
|
50266
50272
|
syncOnStart: config.worktreeSyncOnStart !== false,
|
|
@@ -50275,7 +50281,7 @@ function createSessionFactory(dependencies) {
|
|
|
50275
50281
|
planReviewPort: dependencies.getPlanReviewPort(),
|
|
50276
50282
|
planLimits: planLimitsEnabled(config),
|
|
50277
50283
|
getUserHooks: () => dependencies.getUserHooks(project.id),
|
|
50278
|
-
prepareCoherence: builtMapping ? null : prepareCoherence,
|
|
50284
|
+
prepareCoherence: builtMapping || isMachineShell ? null : prepareCoherence,
|
|
50279
50285
|
commitSigningProgram: dependencies.commitSigningProgram ?? null,
|
|
50280
50286
|
getRemoteLaunch: builtMapping ? () => remoteLaunchFor(project, builtMapping, dependencies.getConfig?.() ?? config) : null,
|
|
50281
50287
|
...overrides,
|
|
@@ -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-eMlT56kt.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-Cpg-SS0f.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 { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-
|
|
6
|
+
import { dt as canonicalizePath, s as glimmervoidHomeDir } from "./config-store-eMlT56kt.js";
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import crypto from "node:crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
3
3
|
import { f as AgentSettingsReply } from "./session-B2Wieg0a.js";
|
|
4
|
-
import { r as BrowserConfig } from "./config-
|
|
4
|
+
import { r as BrowserConfig } from "./config-jnDuttam.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-NSst8oRP.js";
|
|
6
6
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
7
|
-
import { A as setValueAtPath, F as SETTINGS_REGISTRY, N as valueAtPath, O as parsePosthogProjectSelection, T as deleteValueAtPath, c as loadConfigFile, d as validateConfig, et as ENV_SECRET_BINDINGS, f as isSettingAvailable, k as scoreSettingsSearch, r as IS_EXPERIMENTAL_BUILD, rt as withEnvSecrets, tt as readEnvSecrets, u as saveConfigFileOnce, w as cloneValue } from "./config-store-
|
|
8
|
-
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-
|
|
7
|
+
import { A as setValueAtPath, F as SETTINGS_REGISTRY, N as valueAtPath, O as parsePosthogProjectSelection, T as deleteValueAtPath, c as loadConfigFile, d as validateConfig, et as ENV_SECRET_BINDINGS, f as isSettingAvailable, k as scoreSettingsSearch, r as IS_EXPERIMENTAL_BUILD, rt as withEnvSecrets, tt as readEnvSecrets, u as saveConfigFileOnce, w as cloneValue } from "./config-store-eMlT56kt.js";
|
|
8
|
+
import { a as fail, c as listSettings, d as renderSectionTables, f as requireConfigFileSetting, g as valueText, h as succeed, i as describeSetting, l as readSetting, m as settingsRequestForServer, n as configFileViewOf, o as fitColumn, p as sectionOf, r as defaultText, s as getSetting, t as availableSettings } from "./settings-readout-core-DNiU1YXo.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import { parseArgs } from "node:util";
|
|
@@ -330,7 +330,7 @@ function processIo() {
|
|
|
330
330
|
async function runSettingsCli(commandArguments, io = processIo()) {
|
|
331
331
|
const serverRequest = settingsRequestForServer(commandArguments, process.env);
|
|
332
332
|
if (!serverRequest) return runSettingsCommand(commandArguments, io);
|
|
333
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
333
|
+
const { askAgentApi } = await import("./agent-api-cli-nIoMZ9c4.js");
|
|
334
334
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
335
335
|
ok: false,
|
|
336
336
|
error: errorMessage(error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as AgentSettingsRequest } from "./session-B2Wieg0a.js";
|
|
2
2
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
3
|
-
import { C as SETTINGS_INDEX, D as hasScaledUnit, E as displayText, F as SETTINGS_REGISTRY, M as settingsOf, N as valueAtPath, P as FILE_ONLY_GROUPS, f as isSettingAvailable, j as settingsGroupOf, tt as readEnvSecrets, w as cloneValue } from "./config-store-
|
|
3
|
+
import { C as SETTINGS_INDEX, D as hasScaledUnit, E as displayText, F as SETTINGS_REGISTRY, M as settingsOf, N as valueAtPath, P as FILE_ONLY_GROUPS, f as isSettingAvailable, j as settingsGroupOf, tt as readEnvSecrets, w as cloneValue } from "./config-store-eMlT56kt.js";
|
|
4
4
|
import { parseArgs } from "node:util";
|
|
5
5
|
//#region server/core/settings-readout-core.ts
|
|
6
6
|
var VALUE_COLUMN_WIDTH = 40;
|
|
@@ -2,7 +2,7 @@ import { r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { O as SIGN_URL_ENV, P as SshSignReply } from "./session-B2Wieg0a.js";
|
|
3
3
|
import { n as execFileAsync, o as spawn } from "./child-process-safe-D4hyVIXj.js";
|
|
4
4
|
import { a as isLoopbackHostname } from "./hook-relay-core-DA_bz2KA.js";
|
|
5
|
-
import { n as postToAgentIngress } from "./agent-api-cli-
|
|
5
|
+
import { n as postToAgentIngress } from "./agent-api-cli-Blh4i-e_.js";
|
|
6
6
|
import { l as parseSshPublicKey } from "./ssh-signing-core-CRhVVWNW.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gi as e,Hi as t,Ji as n,Ki as r,Ui as i,Wi as a,Yi as o,qi as s}from"./index-
|
|
1
|
+
import{Gi as e,Hi as t,Ji as n,Ki as r,Ui as i,Wi as a,Yi as o,qi as s}from"./index-KnsTnYTH.js";var c=.3,l=null;function u(){return o(l)}function d(e){return n(e,l)}async function f(){try{let e=await fetch(t,{credentials:`same-origin`,cache:`no-store`});e.ok&&(l=s(await e.json()))}catch{}}function p(){let e=new AudioContext;return e.state===`suspended`&&e.resume(),e}function m(e,t){setTimeout(()=>e.close().catch(()=>{}),(t+.1)*1e3)}function h(e){g(a[e]??a.chime)}function g(e){let t=p(),n=t.createGain();n.gain.value=e.peakGain,n.connect(t.destination);let r=t.currentTime,i=0;for(let a of e.tones){let e=r+a.startSeconds,o=e+a.durationSeconds,s=t.createOscillator(),c=t.createGain();s.type=a.waveform,s.frequency.setValueAtTime(a.frequency,e),a.endFrequency&&s.frequency.exponentialRampToValueAtTime(a.endFrequency,o),c.gain.setValueAtTime(.001,e),c.gain.exponentialRampToValueAtTime(a.gain??1,e+.01),c.gain.exponentialRampToValueAtTime(.001,o),s.connect(c),c.connect(n),s.start(e),s.stop(o),i=Math.max(i,a.startSeconds+a.durationSeconds)}m(t,i)}async function _(e){try{let t=await fetch(r(e),{credentials:`same-origin`});return t.ok?await t.arrayBuffer():null}catch{return null}}async function v(e){let t=await _(e);if(!t)return!1;let n=p();try{let e=await n.decodeAudioData(t),r=n.createGain();r.gain.value=c,r.connect(n.destination);let i=n.createBufferSource();return i.buffer=e,i.connect(r),i.start(),m(n,e.duration),!0}catch{return n.close().catch(()=>{}),!1}}var y=[659.25,830.61,987.77,1108.73,987.77,830.61,739.99,659.25,739.99,830.61,987.77,1108.73,987.77,830.61];function b(){try{let e=new AudioContext;if(e.state===`suspended`&&e.resume(),e.state===`suspended`)return;let t=e.createGain();t.gain.value=.05,t.connect(e.destination);let n=.125,r=e.currentTime;for(let i=0;i<y.length;i++){let a=r+i*n,o=e.createOscillator(),s=e.createGain();o.type=`square`,o.frequency.value=y[i],s.gain.setValueAtTime(.001,a),s.gain.exponentialRampToValueAtTime(1,a+.01),s.gain.exponentialRampToValueAtTime(.001,a+n*.9),o.connect(s),s.connect(t),o.start(a),o.stop(a+n)}let i=r+y.length*n;t.gain.setValueAtTime(.05,i-.05),t.gain.exponentialRampToValueAtTime(.001,i),setTimeout(()=>e.close().catch(()=>{}),(i-r+.1)*1e3)}catch{}}function x(){try{h(i)}catch{}}function S(t){try{let n=d(t),r=e(n);if(!r){h(n);return}v(r).then(e=>{e||x()})}catch{}}export{f as loadCustomSounds,S as playAlertSound,b as playNyanJingle,g as playToneSequence,d as resolveSoundId,u as soundOptions};
|
|
Binary file
|