glimmervoid 0.48.4-next.413 → 0.48.4-next.415
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 +7 -7
- package/dist/chunks/{adapters-0QRq0bk_.js → adapters-BZta5YXd.js} +3 -20
- package/dist/chunks/{adapters-BNofq6cz.js → adapters-Bhk2OHKK.js} +1 -1
- package/dist/chunks/{agent-api-cli-DrFA9CIy.js → agent-api-cli-BzQYDEj_.js} +1 -1
- package/dist/chunks/{agent-api-cli-Bwf14_O-.js → agent-api-cli-D8xE_dS5.js} +1 -2
- package/dist/chunks/{agent-api-core-CaimPVwy.js → agent-api-core-CRHvD0tB.js} +274 -4
- package/dist/chunks/{kimi-DCuDKSY_.js → kimi-2Q_zNAyk.js} +1 -2
- package/dist/chunks/kimi-DQVo_Lv9.js +1 -0
- package/dist/chunks/{main-KU7cZ0D0.js → main-BhVqaj0M.js} +25 -28
- package/dist/chunks/{settings-cli-3IeMmqZh.js → settings-cli-Cl8MHj6J.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-DFs2GgKk.js → ssh-sign-cli-B0gWlWTO.js} +1 -1
- package/dist/client/assets/{benchmark-panel-DVH2EUM4.js → benchmark-panel-BgazNMQP.js} +1 -1
- package/dist/client/assets/benchmark-panel-BgazNMQP.js.br +0 -0
- package/dist/client/assets/{boards-view-CvNxwPYq.js → boards-view-DFTUsh-o.js} +1 -1
- package/dist/client/assets/boards-view-DFTUsh-o.js.br +0 -0
- package/dist/client/assets/{community-panel-CxDXTYjb.js → community-panel-AoJA27DB.js} +1 -1
- package/dist/client/assets/community-panel-AoJA27DB.js.br +0 -0
- package/dist/client/assets/{dialogs-_cEkSw4f.js → dialogs-y5lXEJgw.js} +1 -1
- package/dist/client/assets/dialogs-y5lXEJgw.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-f86PFBJN.js → doc-editor-ui-CnhgYX0G.js} +1 -1
- package/dist/client/assets/doc-editor-ui-CnhgYX0G.js.br +0 -0
- package/dist/client/assets/{feature-hint-DIYsuOU2.js → feature-hint-DTGN8Ga2.js} +1 -1
- package/dist/client/assets/feature-hint-DTGN8Ga2.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DHPFyHXF.js → first-run-checklist-COzs9fOG.js} +1 -1
- package/dist/client/assets/first-run-checklist-COzs9fOG.js.br +0 -0
- package/dist/client/assets/{hooks-panel-DpSfleKQ.js → hooks-panel-C1NWMEgS.js} +1 -1
- package/dist/client/assets/hooks-panel-C1NWMEgS.js.br +0 -0
- package/dist/client/assets/{index-U9O8Qn9q.js → index-Dcc1v5Av.js} +5 -5
- package/dist/client/assets/index-Dcc1v5Av.js.br +0 -0
- package/dist/client/assets/{issues-panel-DtVqCEbo.js → issues-panel-__368Agm.js} +1 -1
- package/dist/client/assets/issues-panel-__368Agm.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-06b5K5qY.js → my-prs-panel-dBUUujCq.js} +1 -1
- package/dist/client/assets/my-prs-panel-dBUUujCq.js.br +0 -0
- package/dist/client/assets/{nyan-cat-D_sPOx41.js → nyan-cat-Dfypb-_b.js} +1 -1
- package/dist/client/assets/nyan-cat-Dfypb-_b.js.br +0 -0
- package/dist/client/assets/{phone-shell-DPUFm7oc.js → phone-shell-CC9Is5Zp.js} +1 -1
- package/dist/client/assets/phone-shell-CC9Is5Zp.js.br +0 -0
- package/dist/client/assets/{plan-face-BBrTfA-G.js → plan-face-SYUsr_No.js} +1 -1
- package/dist/client/assets/plan-face-SYUsr_No.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DbqS3HZw.js → pr-queue-columns-BNl1EiRi.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BNl1EiRi.js.br +2 -0
- package/dist/client/assets/{radar-panel-DH_f2_UJ.js → radar-panel-tURXYGla.js} +1 -1
- package/dist/client/assets/radar-panel-tURXYGla.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-BwDOiMqH.js → repo-roots-adder-DomEGaaF.js} +1 -1
- package/dist/client/assets/repo-roots-adder-DomEGaaF.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DnNvjSEj.js → resume-dialog-OcgYlsLZ.js} +1 -1
- package/dist/client/assets/resume-dialog-OcgYlsLZ.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CprQgqa_.js → review-queue-panel-BDu7ld3H.js} +1 -1
- package/dist/client/assets/review-queue-panel-BDu7ld3H.js.br +0 -0
- package/dist/client/assets/{settings-panel-CrgsTjHg.js → settings-panel-6xxJzZAT.js} +2 -2
- package/dist/client/assets/settings-panel-6xxJzZAT.js.br +0 -0
- package/dist/client/assets/{shown-face-DZ9pU4gP.js → shown-face-CSQp5ENw.js} +1 -1
- package/dist/client/assets/shown-face-CSQp5ENw.js.br +0 -0
- package/dist/client/assets/{team-review-panel-Dk3fX09o.js → team-review-panel-DSlKuREZ.js} +1 -1
- package/dist/client/assets/team-review-panel-DSlKuREZ.js.br +0 -0
- package/dist/client/assets/{trace-panel-YoRoXSkH.js → trace-panel-DhQpujB9.js} +1 -1
- package/dist/client/assets/trace-panel-DhQpujB9.js.br +0 -0
- package/dist/client/assets/{usage-panel-CEb7Du90.js → usage-panel-BNhe87nA.js} +1 -1
- package/dist/client/assets/usage-panel-BNhe87nA.js.br +0 -0
- package/dist/client/assets/{your-day-tip-C7TZsmhW.js → your-day-tip-BvPjQGqu.js} +1 -1
- package/dist/client/assets/your-day-tip-BvPjQGqu.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/kimi-D7svDops.js +0 -1
- package/dist/chunks/session-routes-BeH0VyCm.js +0 -255
- package/dist/client/assets/benchmark-panel-DVH2EUM4.js.br +0 -0
- package/dist/client/assets/boards-view-CvNxwPYq.js.br +0 -0
- package/dist/client/assets/community-panel-CxDXTYjb.js.br +0 -0
- package/dist/client/assets/dialogs-_cEkSw4f.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-f86PFBJN.js.br +0 -0
- package/dist/client/assets/feature-hint-DIYsuOU2.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DHPFyHXF.js.br +0 -0
- package/dist/client/assets/hooks-panel-DpSfleKQ.js.br +0 -0
- package/dist/client/assets/index-U9O8Qn9q.js.br +0 -0
- package/dist/client/assets/issues-panel-DtVqCEbo.js.br +0 -0
- package/dist/client/assets/my-prs-panel-06b5K5qY.js.br +0 -0
- package/dist/client/assets/nyan-cat-D_sPOx41.js.br +0 -0
- package/dist/client/assets/phone-shell-DPUFm7oc.js.br +0 -0
- package/dist/client/assets/plan-face-BBrTfA-G.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DbqS3HZw.js.br +0 -0
- package/dist/client/assets/radar-panel-DH_f2_UJ.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-BwDOiMqH.js.br +0 -0
- package/dist/client/assets/resume-dialog-DnNvjSEj.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CprQgqa_.js.br +0 -0
- package/dist/client/assets/settings-panel-CrgsTjHg.js.br +0 -0
- package/dist/client/assets/shown-face-DZ9pU4gP.js.br +0 -0
- package/dist/client/assets/team-review-panel-Dk3fX09o.js.br +0 -0
- package/dist/client/assets/trace-panel-YoRoXSkH.js.br +0 -0
- package/dist/client/assets/usage-panel-CEb7Du90.js.br +0 -0
- package/dist/client/assets/your-day-tip-C7TZsmhW.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -6,7 +6,7 @@ import { a as packageRoot } from "../chunks/runtime-paths-CYwF658V.js";
|
|
|
6
6
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
7
7
|
import { t as AGENT_API_VERBS } from "../chunks/session-DUFWokKF.js";
|
|
8
8
|
import { a as execSync } from "../chunks/child-process-safe-BCOoKfxG.js";
|
|
9
|
-
import {
|
|
9
|
+
import { $ as OWNED_COMMAND_SPECS, et as isOwnedCommandName, r as agentCommandHelpLines, tt as parseCommand } from "../chunks/agent-api-core-CRHvD0tB.js";
|
|
10
10
|
import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
|
|
11
11
|
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-xS1GFU8P.js";
|
|
12
12
|
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
@@ -75,7 +75,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
75
75
|
return runAgentSetupCli();
|
|
76
76
|
},
|
|
77
77
|
settings: async (parsed) => {
|
|
78
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
78
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-Cl8MHj6J.js");
|
|
79
79
|
return runParsedSettingsCli(parsed);
|
|
80
80
|
},
|
|
81
81
|
why: async ({ positionals }) => {
|
|
@@ -83,7 +83,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
83
83
|
return runWhyCli({ targetArgument: positionals[0] ?? "" });
|
|
84
84
|
},
|
|
85
85
|
"ssh-sign": async ({ rawArgs }) => {
|
|
86
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
86
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-B0gWlWTO.js");
|
|
87
87
|
return runSshSignCli(rawArgs);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
@@ -105,7 +105,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
105
105
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
106
106
|
}
|
|
107
107
|
var SUBCOMMAND_RUNNERS = new Map([...Object.keys(OWNED_COMMAND_SPECS).filter(isOwnedCommandName).map((name) => [name, (subcommandArgs) => runOwnedCommand(name, subcommandArgs)]), ...AGENT_API_VERBS.filter((verb) => !isOwnedCommandName(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
108
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
108
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-BzQYDEj_.js");
|
|
109
109
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
110
110
|
}])]);
|
|
111
111
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -119,7 +119,7 @@ function missingAgentText(agentId) {
|
|
|
119
119
|
}
|
|
120
120
|
async function printSessionLimits() {
|
|
121
121
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
122
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
122
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-BzQYDEj_.js");
|
|
123
123
|
const limitsLines = await sessionLimitsHelpLines();
|
|
124
124
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
125
125
|
}
|
|
@@ -252,7 +252,7 @@ async function runDoctor() {
|
|
|
252
252
|
}
|
|
253
253
|
switchSection("Agents");
|
|
254
254
|
try {
|
|
255
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
255
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-Bhk2OHKK.js");
|
|
256
256
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
257
257
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
258
258
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -263,7 +263,7 @@ async function runDoctor() {
|
|
|
263
263
|
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BZKv1Xzf.js");
|
|
264
264
|
const grokSetup = inspectGrokAgentSetup();
|
|
265
265
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
266
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
266
|
+
const { default: kimi } = await import("../chunks/kimi-DQVo_Lv9.js");
|
|
267
267
|
const { describeAgentHome } = await import("../chunks/agent-home-DHteh_iQ.js");
|
|
268
268
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-DO3oucw-.js");
|
|
269
269
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -4,7 +4,6 @@ import { rn as shortSha$1, tn as FULL_SHA_RE } from "./session-DUFWokKF.js";
|
|
|
4
4
|
import { c as spawn, i as execFileSync, r as execFileAsync } from "./child-process-safe-BCOoKfxG.js";
|
|
5
5
|
import { S as InstallFlavor, c as SHELL_AGENT_ID, kt as UpdateChannel } from "./config-Bx-mkPue.js";
|
|
6
6
|
import { a as rawTextOr, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
7
|
-
import { s as supervisionLine } from "./session-routes-BeH0VyCm.js";
|
|
8
7
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
9
8
|
import { i as saneYoloEnv, r as SANE_YOLO_PATH_ENV, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
10
9
|
import { t as buildAgentEnv } from "./spawn-env-POxyFuJA.js";
|
|
@@ -12,7 +11,7 @@ import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
|
12
11
|
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-BXv_dMaP.js";
|
|
13
12
|
import { O as nextBackoffMs } from "./json-file-AKRVPqG1.js";
|
|
14
13
|
import { n as isExperimentalBuild, t as compareReleaseVersions } from "./build-channel-guTpzLpI.js";
|
|
15
|
-
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-
|
|
14
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-2Q_zNAyk.js";
|
|
16
15
|
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-gp8KlW8i.js";
|
|
17
16
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-BHtmhtJA.js";
|
|
18
17
|
import fs from "node:fs";
|
|
@@ -137,15 +136,9 @@ function buildEnv$2(baseEnv, extraEnv, options) {
|
|
|
137
136
|
return buildAgentEnv(baseEnv, extraEnv, envProfile$3, options);
|
|
138
137
|
}
|
|
139
138
|
var settingsArgs = (settingsPath) => ["--settings", settingsPath];
|
|
140
|
-
|
|
141
|
-
var APPENDED_SYSTEM_PROMPT_FLAGS = Object.freeze([APPEND_SYSTEM_PROMPT_FLAG, "--append-system-prompt-file"]);
|
|
142
|
-
function isAppendedSystemPromptArgument(launchArgument) {
|
|
143
|
-
return APPENDED_SYSTEM_PROMPT_FLAGS.some((flag) => launchArgument === flag || launchArgument.startsWith(`${flag}=`));
|
|
144
|
-
}
|
|
145
|
-
function buildArgs$2({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
139
|
+
function buildArgs$2({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null } = {}) {
|
|
146
140
|
const args = dangerouslySkipPermissions ? ["--dangerously-skip-permissions"] : [];
|
|
147
141
|
if (resumeSessionId) args.push("--resume", resumeSessionId);
|
|
148
|
-
if (canRunHelpCommand && !extraArgs.some(isAppendedSystemPromptArgument)) args.push(APPEND_SYSTEM_PROMPT_FLAG, supervisionLine({ canSpawn }));
|
|
149
142
|
for (let index = 0; index < extraArgs.length; index += 1) {
|
|
150
143
|
const argument = extraArgs[index];
|
|
151
144
|
if (resumeSessionId && argument === "--session-id") {
|
|
@@ -1841,22 +1834,13 @@ var SKIP_PERMISSIONS_ARGS = [
|
|
|
1841
1834
|
"workspace-write"
|
|
1842
1835
|
];
|
|
1843
1836
|
var OPERATOR_CONFIG_FILE_NAME = "config.toml";
|
|
1844
|
-
var DEVELOPER_INSTRUCTIONS_KEY = "developer_instructions";
|
|
1845
|
-
var DEVELOPER_INSTRUCTIONS_DECLARATION_RE = /^[^\S\r\n]*["']?developer_instructions["']?[^\S\r\n]*=/m;
|
|
1846
1837
|
function operatorConfigPath(env) {
|
|
1847
1838
|
const [codexHome] = codexHomes(env, null);
|
|
1848
1839
|
if (!codexHome) return null;
|
|
1849
1840
|
return path.join(codexHome, OPERATOR_CONFIG_FILE_NAME);
|
|
1850
1841
|
}
|
|
1851
|
-
function
|
|
1852
|
-
return DEVELOPER_INSTRUCTIONS_DECLARATION_RE.test(operatorConfigText);
|
|
1853
|
-
}
|
|
1854
|
-
function isDeveloperInstructionsOverride(launchArgument) {
|
|
1855
|
-
return launchArgument.startsWith(`${DEVELOPER_INSTRUCTIONS_KEY}=`);
|
|
1856
|
-
}
|
|
1857
|
-
function buildArgs$1({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null, hasOperatorInstructions = false, canRunHelpCommand = true, canSpawn = false } = {}) {
|
|
1842
|
+
function buildArgs$1({ dangerouslySkipPermissions = false, resumeSessionId = null, extraArgs = [], initialPrompt = null } = {}) {
|
|
1858
1843
|
const args = [...UPDATE_CHECK_ARGS];
|
|
1859
|
-
if (canRunHelpCommand && !hasOperatorInstructions && !extraArgs.some(isDeveloperInstructionsOverride)) args.push("-c", `${DEVELOPER_INSTRUCTIONS_KEY}='''${supervisionLine({ canSpawn })}'''`);
|
|
1860
1844
|
if (resumeSessionId) args.push("resume", resumeSessionId);
|
|
1861
1845
|
if (dangerouslySkipPermissions) args.push(...SKIP_PERMISSIONS_ARGS);
|
|
1862
1846
|
if (extraArgs.length > 0) args.push(...extraArgs);
|
|
@@ -1876,7 +1860,6 @@ var codex = {
|
|
|
1876
1860
|
buildEnv: buildEnv$1,
|
|
1877
1861
|
buildArgs: buildArgs$1,
|
|
1878
1862
|
operatorConfigPath,
|
|
1879
|
-
setsOperatorInstructions,
|
|
1880
1863
|
buildHookArgs,
|
|
1881
1864
|
buildHookCommand,
|
|
1882
1865
|
mayContributeHooks,
|
|
@@ -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-BZta5YXd.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-D8xE_dS5.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Z as UNIT_STATUSES, et as WhiteboardAgentReply, l as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-DUFWokKF.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as formatSessionLimits } from "./session-routes-BeH0VyCm.js";
|
|
2
|
+
import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP, tt as parseCommand } from "./agent-api-core-CRHvD0tB.js";
|
|
4
3
|
import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
|
|
5
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
6
5
|
import { d as layoutBoard, m as planSteps, r as describeOverCap, u as escapeMarkup } from "./shown-files-core-BmJUuTS4.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, tt as WhiteboardAgentRequest, u as AgentPullRequestRequest } from "./session-DUFWokKF.js";
|
|
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, tt as WhiteboardAgentRequest, u as AgentPullRequestRequest, w as SESSION_COMMANDS } from "./session-DUFWokKF.js";
|
|
2
2
|
import { D as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-Bx-mkPue.js";
|
|
3
|
-
import { n as
|
|
3
|
+
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { parseArgs } from "node:util";
|
|
6
6
|
import crypto from "node:crypto";
|
|
@@ -291,6 +291,259 @@ function renderOverviewLine(usage, summary) {
|
|
|
291
291
|
return `${padColumn(usage)}${summary}`;
|
|
292
292
|
}
|
|
293
293
|
//#endregion
|
|
294
|
+
//#region session/core/session-routes.ts
|
|
295
|
+
var SUPERVISION_LINE = "Glimmervoid supervises this session. Run glimmervoid --help for the commands it gives you and this session's limits.";
|
|
296
|
+
var SPAWN_LINE = "To delegate work that edits files or runs long, use glimmervoid spawn rather than an in-process subagent: the spawned session gets its own dashboard card the operator can watch. An in-process subagent stays fine for a quick read-only lookup.";
|
|
297
|
+
var HELP_COMMAND = "glimmervoid --help";
|
|
298
|
+
var SHELL_TOOL_RULE = "Bash";
|
|
299
|
+
var SHELL_PREFIX_RULE = /^Bash\((.+):\*\)$/;
|
|
300
|
+
var NEVER_ASK_MODE = "dontAsk";
|
|
301
|
+
var NO_OWN_WORKTREE_REASON = "this session has no worktree of its own, so there is nothing of its own to land";
|
|
302
|
+
var ANSWERS = Object.freeze({ answers: true });
|
|
303
|
+
function supervisionLine({ canSpawn = false }) {
|
|
304
|
+
if (!canSpawn) return SUPERVISION_LINE;
|
|
305
|
+
return `${SUPERVISION_LINE} ${SPAWN_LINE}`;
|
|
306
|
+
}
|
|
307
|
+
function coversHelpCommand(permissionRule) {
|
|
308
|
+
if (typeof permissionRule !== "string") return false;
|
|
309
|
+
if (permissionRule === SHELL_TOOL_RULE) return true;
|
|
310
|
+
const commandPrefix = SHELL_PREFIX_RULE.exec(permissionRule)?.[1];
|
|
311
|
+
if (commandPrefix === void 0) return false;
|
|
312
|
+
return HELP_COMMAND === commandPrefix || HELP_COMMAND.startsWith(`${commandPrefix} `);
|
|
313
|
+
}
|
|
314
|
+
function permissionRules(listed) {
|
|
315
|
+
return Array.isArray(listed) ? listed : [];
|
|
316
|
+
}
|
|
317
|
+
function permitsHelpCommand(settingsPermissions) {
|
|
318
|
+
if (settingsPermissions === null) return true;
|
|
319
|
+
if (permissionRules(settingsPermissions.deny).some(coversHelpCommand)) return false;
|
|
320
|
+
if (settingsPermissions.defaultMode !== NEVER_ASK_MODE) return true;
|
|
321
|
+
return permissionRules(settingsPermissions.allow).some(coversHelpCommand);
|
|
322
|
+
}
|
|
323
|
+
function pushRoute({ isEphemeral, isSpawnedChild, hasOwnWorktree }) {
|
|
324
|
+
if (isEphemeral && !isSpawnedChild) return {
|
|
325
|
+
answers: false,
|
|
326
|
+
code: "not-operator-session",
|
|
327
|
+
reason: "only an operator session or a session it spawned can push"
|
|
328
|
+
};
|
|
329
|
+
if (!hasOwnWorktree) return {
|
|
330
|
+
answers: false,
|
|
331
|
+
code: "no-worktree",
|
|
332
|
+
reason: NO_OWN_WORKTREE_REASON
|
|
333
|
+
};
|
|
334
|
+
return ANSWERS;
|
|
335
|
+
}
|
|
336
|
+
function spawnRoute({ isEphemeral, isSpawnedChild }) {
|
|
337
|
+
if (isSpawnedChild) return {
|
|
338
|
+
answers: false,
|
|
339
|
+
reason: "a spawned session may not spawn another"
|
|
340
|
+
};
|
|
341
|
+
if (isEphemeral) return {
|
|
342
|
+
answers: false,
|
|
343
|
+
reason: "only an operator session may spawn a session, because the new session gets an operator session's tools and permissions, which can be wider than this one's"
|
|
344
|
+
};
|
|
345
|
+
return ANSWERS;
|
|
346
|
+
}
|
|
347
|
+
function hasOperatorCard({ isEphemeral, isSpawnedChild }) {
|
|
348
|
+
if (!isEphemeral) return true;
|
|
349
|
+
return isSpawnedChild;
|
|
350
|
+
}
|
|
351
|
+
function attentionRoute(caller) {
|
|
352
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
353
|
+
return {
|
|
354
|
+
answers: false,
|
|
355
|
+
reason: "a lane session cannot raise attention, because its notes are not delivered to the operator"
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
function editRoute(caller) {
|
|
359
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
360
|
+
return {
|
|
361
|
+
answers: false,
|
|
362
|
+
reason: "a lane session cannot surface a file, because it has no card for the operator to open the file from"
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function showRoute(caller) {
|
|
366
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
367
|
+
return {
|
|
368
|
+
answers: false,
|
|
369
|
+
reason: "a lane session cannot show a file, because it has no card for the operator to see it on"
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
function operatorStateRoute(caller) {
|
|
373
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
374
|
+
return {
|
|
375
|
+
answers: false,
|
|
376
|
+
reason: "a lane session cannot read or queue the operator's reviews, pull requests or settings, because a lane runs on input the operator has not vetted"
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
function channelRoute(caller) {
|
|
380
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
381
|
+
return {
|
|
382
|
+
answers: false,
|
|
383
|
+
reason: "a lane session has no parent or spawned sessions to message"
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
function closeRoute({ isEphemeral, isSpawnedChild }) {
|
|
387
|
+
if (isSpawnedChild) return {
|
|
388
|
+
answers: false,
|
|
389
|
+
reason: "a spawned session owns no sessions to close"
|
|
390
|
+
};
|
|
391
|
+
if (isEphemeral) return {
|
|
392
|
+
answers: false,
|
|
393
|
+
reason: "a lane session owns no sessions to close"
|
|
394
|
+
};
|
|
395
|
+
return ANSWERS;
|
|
396
|
+
}
|
|
397
|
+
function linkPrRoute(caller) {
|
|
398
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
399
|
+
return {
|
|
400
|
+
answers: false,
|
|
401
|
+
reason: "a lane session cannot link a pull request, because it has no card to show the link on"
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
function whiteboardRoute(caller) {
|
|
405
|
+
if (hasOperatorCard(caller)) return ANSWERS;
|
|
406
|
+
return {
|
|
407
|
+
answers: false,
|
|
408
|
+
reason: "a lane session cannot use a whiteboard, because a lane runs on input the operator has not vetted and has no card to show the board on"
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
var COMMAND_ROUTES = Object.freeze({
|
|
412
|
+
push: pushRoute,
|
|
413
|
+
spawn: spawnRoute,
|
|
414
|
+
send: channelRoute,
|
|
415
|
+
read: channelRoute,
|
|
416
|
+
close: closeRoute,
|
|
417
|
+
answer: closeRoute,
|
|
418
|
+
attention: attentionRoute,
|
|
419
|
+
board: () => ANSWERS,
|
|
420
|
+
edit: editRoute,
|
|
421
|
+
show: showRoute,
|
|
422
|
+
review: operatorStateRoute,
|
|
423
|
+
reviews: operatorStateRoute,
|
|
424
|
+
prs: operatorStateRoute,
|
|
425
|
+
"link-pr": linkPrRoute,
|
|
426
|
+
settings: operatorStateRoute,
|
|
427
|
+
whiteboard: whiteboardRoute,
|
|
428
|
+
limits: () => ANSWERS
|
|
429
|
+
});
|
|
430
|
+
var SHOWABLE_PATH = /\.(png|jpe?g|gif|webp|svg|mp4|webm|html?)(?=$|[\s'"`)|;&,])/i;
|
|
431
|
+
var FILE_WRITING_TOOLS = /* @__PURE__ */ new Set(["Write", "Edit"]);
|
|
432
|
+
var SHELL_TOOLS = /* @__PURE__ */ new Set(["Bash"]);
|
|
433
|
+
var SUBAGENT_TOOLS = /* @__PURE__ */ new Set(["Agent", "Task"]);
|
|
434
|
+
var GIT_PUSH = /\bgit\s+push\b/;
|
|
435
|
+
var PR_REVIEW = /\bgh\s+pr\s+review\b/;
|
|
436
|
+
var GLIMMERVOID_CONFIG = /\.glimmervoid[\\/]config\.json\b/;
|
|
437
|
+
function shellCommandOf({ toolName, toolInput }) {
|
|
438
|
+
if (!SHELL_TOOLS.has(toolName)) return null;
|
|
439
|
+
return typeof toolInput.command === "string" ? toolInput.command : null;
|
|
440
|
+
}
|
|
441
|
+
function filePathOf({ toolName, toolInput }) {
|
|
442
|
+
if (!FILE_WRITING_TOOLS.has(toolName)) return null;
|
|
443
|
+
return typeof toolInput.file_path === "string" ? toolInput.file_path : null;
|
|
444
|
+
}
|
|
445
|
+
function namesShowableFile(facts) {
|
|
446
|
+
if (facts.event !== "posttooluse") return false;
|
|
447
|
+
const named = filePathOf(facts) ?? shellCommandOf(facts);
|
|
448
|
+
return named !== null && SHOWABLE_PATH.test(named);
|
|
449
|
+
}
|
|
450
|
+
function startsSubagent(facts) {
|
|
451
|
+
return facts.event === "posttooluse" && SUBAGENT_TOOLS.has(facts.toolName);
|
|
452
|
+
}
|
|
453
|
+
function failsGitPush(facts) {
|
|
454
|
+
if (facts.event !== "posttoolusefailure") return false;
|
|
455
|
+
return GIT_PUSH.test(shellCommandOf(facts) ?? "");
|
|
456
|
+
}
|
|
457
|
+
function touchesGlimmervoidConfig(facts) {
|
|
458
|
+
const named = filePathOf(facts) ?? shellCommandOf(facts);
|
|
459
|
+
return named !== null && GLIMMERVOID_CONFIG.test(named);
|
|
460
|
+
}
|
|
461
|
+
function runsPullRequestReview(facts) {
|
|
462
|
+
if (facts.event !== "posttooluse") return false;
|
|
463
|
+
return PR_REVIEW.test(shellCommandOf(facts) ?? "");
|
|
464
|
+
}
|
|
465
|
+
var COMMAND_HINTS = Object.freeze({
|
|
466
|
+
show: {
|
|
467
|
+
firesOn: namesShowableFile,
|
|
468
|
+
text: "Glimmervoid: glimmervoid show <path> puts an image, video or HTML file on this session's card for the operator."
|
|
469
|
+
},
|
|
470
|
+
spawn: {
|
|
471
|
+
firesOn: startsSubagent,
|
|
472
|
+
text: "Glimmervoid: for work that edits files or runs long, glimmervoid spawn <prompt> gives it its own dashboard card; an in-process subagent stays fine for a quick read-only lookup."
|
|
473
|
+
},
|
|
474
|
+
push: {
|
|
475
|
+
firesOn: failsGitPush,
|
|
476
|
+
text: "Glimmervoid: glimmervoid push lands this session's commits on the integration branch and pushes it."
|
|
477
|
+
},
|
|
478
|
+
settings: {
|
|
479
|
+
firesOn: touchesGlimmervoidConfig,
|
|
480
|
+
text: "Glimmervoid: glimmervoid settings get <key> reads Glimmervoid's settings without opening config.json."
|
|
481
|
+
},
|
|
482
|
+
review: {
|
|
483
|
+
firesOn: runsPullRequestReview,
|
|
484
|
+
text: "Glimmervoid: glimmervoid review <pr> queues a team review whose draft waits in the Reviews tab for the operator to post."
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
var HINTED_COMMANDS = Object.keys(COMMAND_HINTS);
|
|
488
|
+
var KIMI_MAIN_AGENT_ID = "main";
|
|
489
|
+
var TOOL_HOOK_EVENTS = /* @__PURE__ */ new Set(["posttooluse", "posttoolusefailure"]);
|
|
490
|
+
function isToolHookEvent(event) {
|
|
491
|
+
return TOOL_HOOK_EVENTS.has(event);
|
|
492
|
+
}
|
|
493
|
+
function toolHookFactsOf(event, payload) {
|
|
494
|
+
const normalizedEvent = event.toLowerCase();
|
|
495
|
+
if (!isToolHookEvent(normalizedEvent)) return null;
|
|
496
|
+
if (typeof payload.tool_name !== "string") return null;
|
|
497
|
+
if (typeof payload.agent_id === "string" && payload.agent_id !== KIMI_MAIN_AGENT_ID) return null;
|
|
498
|
+
return {
|
|
499
|
+
event: normalizedEvent,
|
|
500
|
+
toolName: payload.tool_name,
|
|
501
|
+
toolInput: isRecord(payload.tool_input) ? payload.tool_input : {}
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
function hintFor(facts, gate) {
|
|
505
|
+
const command = HINTED_COMMANDS.find((candidate) => !gate.hintedCommands.has(candidate) && !gate.ranCommands.has(candidate) && COMMAND_HINTS[candidate].firesOn(facts) && gate.answers(candidate));
|
|
506
|
+
if (command === void 0) return null;
|
|
507
|
+
return {
|
|
508
|
+
command,
|
|
509
|
+
event: facts.event,
|
|
510
|
+
text: COMMAND_HINTS[command].text
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
function commandLimit(name, facts) {
|
|
514
|
+
const verdict = COMMAND_ROUTES[name](facts);
|
|
515
|
+
if (verdict.answers) return {
|
|
516
|
+
name,
|
|
517
|
+
answers: true
|
|
518
|
+
};
|
|
519
|
+
return {
|
|
520
|
+
name,
|
|
521
|
+
answers: false,
|
|
522
|
+
reason: verdict.reason
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function sessionBoundary({ environment }) {
|
|
526
|
+
return environment === null ? "none" : "workspace";
|
|
527
|
+
}
|
|
528
|
+
function describeSessionLimits(facts) {
|
|
529
|
+
return {
|
|
530
|
+
commands: SESSION_COMMANDS.map((name) => commandLimit(name, facts)),
|
|
531
|
+
boundary: sessionBoundary(facts),
|
|
532
|
+
environment: facts.environment
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function boundaryLines({ boundary, environment }) {
|
|
536
|
+
if (environment === null) return [` boundary: ${boundary}`];
|
|
537
|
+
return [` boundary: ${boundary}`, ` environment: ${environment.name}, workspace ${environment.workspace}, ${environment.state}`];
|
|
538
|
+
}
|
|
539
|
+
function formatSessionLimits(limits) {
|
|
540
|
+
return [
|
|
541
|
+
"This session:",
|
|
542
|
+
...limits.commands.map(({ name, answers, reason }) => answers ? ` ${name}: available` : ` ${name}: not available, ${reason}`),
|
|
543
|
+
...boundaryLines(limits)
|
|
544
|
+
];
|
|
545
|
+
}
|
|
546
|
+
//#endregion
|
|
294
547
|
//#region shared/session-naming.ts
|
|
295
548
|
function isAutoNameOf(name, baseName) {
|
|
296
549
|
if (name === baseName) return true;
|
|
@@ -1231,24 +1484,28 @@ var WHITEBOARD_SUBCOMMANDS = [
|
|
|
1231
1484
|
];
|
|
1232
1485
|
var AGENT_COMMAND_HELP = Object.freeze({
|
|
1233
1486
|
spawn: {
|
|
1487
|
+
whenToUse: "Use it for work that edits files or runs long; an in-process subagent stays fine for a quick read-only lookup",
|
|
1234
1488
|
usage: "spawn <prompt>",
|
|
1235
1489
|
positionals: requiredText("<prompt>"),
|
|
1236
1490
|
summary: "Start a session on that prompt, with its own dashboard card, that this session owns until its task is done",
|
|
1237
1491
|
missingArgumentHint: "this command needs text, for example \"glimmervoid spawn check the failing test\""
|
|
1238
1492
|
},
|
|
1239
1493
|
send: {
|
|
1494
|
+
whenToUse: "Use it to steer a spawned session, or to report back to the parent",
|
|
1240
1495
|
usage: "send [child] <text>",
|
|
1241
1496
|
positionals: requiredText("[child] <text>"),
|
|
1242
1497
|
summary: "Message a session this one spawned; a spawned session messages its parent with send <text>",
|
|
1243
1498
|
missingArgumentHint: "this command needs text, for example \"glimmervoid send the tests pass\" or, to a spawned session, \"glimmervoid send <child> fix the failing test\""
|
|
1244
1499
|
},
|
|
1245
1500
|
read: {
|
|
1501
|
+
whenToUse: "Use it when a spawned session or the parent has messaged this session",
|
|
1246
1502
|
usage: "read [child]",
|
|
1247
1503
|
positionals: optionalText("[child]"),
|
|
1248
1504
|
summary: "Read what this session's spawned sessions sent; a spawned session reads its parent's messages",
|
|
1249
1505
|
missingArgumentHint: null
|
|
1250
1506
|
},
|
|
1251
1507
|
close: {
|
|
1508
|
+
whenToUse: "Use it once a spawned session's work has landed or is no longer wanted",
|
|
1252
1509
|
usage: "close <child>",
|
|
1253
1510
|
positionals: requiredText("<child>"),
|
|
1254
1511
|
options: [{
|
|
@@ -1260,6 +1517,7 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1260
1517
|
missingArgumentHint: "this command needs the spawned session, for example \"glimmervoid close <child>\""
|
|
1261
1518
|
},
|
|
1262
1519
|
answer: {
|
|
1520
|
+
whenToUse: "Use it when a spawned session waits on a question this session can settle",
|
|
1263
1521
|
usage: "answer <child> <json>|--operator",
|
|
1264
1522
|
positionals: {
|
|
1265
1523
|
usage: "<child> [json]",
|
|
@@ -1275,6 +1533,7 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1275
1533
|
missingArgumentHint: "this command needs a child and a JSON object of answers, or --operator"
|
|
1276
1534
|
},
|
|
1277
1535
|
attention: {
|
|
1536
|
+
whenToUse: "Use it when the task is blocked on the operator, such as a refused call a retry will not change",
|
|
1278
1537
|
usage: "attention <note>",
|
|
1279
1538
|
positionals: requiredText("<note>"),
|
|
1280
1539
|
summary: "Flag this session as needing the operator",
|
|
@@ -1282,21 +1541,25 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1282
1541
|
},
|
|
1283
1542
|
board: {
|
|
1284
1543
|
usage: "board",
|
|
1544
|
+
whenToUse: "Use it to see what other sessions are working on before touching shared code",
|
|
1285
1545
|
summary: "List the live sessions",
|
|
1286
1546
|
missingArgumentHint: null
|
|
1287
1547
|
},
|
|
1288
1548
|
push: {
|
|
1289
1549
|
usage: "push",
|
|
1550
|
+
whenToUse: "Use it when this session's commits are ready to land",
|
|
1290
1551
|
summary: "Land this session's commits on the integration branch and push it",
|
|
1291
1552
|
missingArgumentHint: null
|
|
1292
1553
|
},
|
|
1293
1554
|
edit: {
|
|
1555
|
+
whenToUse: "Use it when the operator should write or correct text, such as a plan or a prompt",
|
|
1294
1556
|
usage: "edit <path>",
|
|
1295
1557
|
positionals: requiredText("<path>"),
|
|
1296
1558
|
summary: "Open a text file for the operator to edit in the dashboard",
|
|
1297
1559
|
missingArgumentHint: "this command needs a file path, for example \"glimmervoid edit drafts/post.md\""
|
|
1298
1560
|
},
|
|
1299
1561
|
show: {
|
|
1562
|
+
whenToUse: "Use it after making a screenshot, chart, recording or HTML page the operator should see",
|
|
1300
1563
|
usage: "show <path>... [--caption <text>]",
|
|
1301
1564
|
positionals: requiredText("<path>..."),
|
|
1302
1565
|
options: [{
|
|
@@ -1309,6 +1572,7 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1309
1572
|
missingArgumentHint: "this command needs a file path, for example \"glimmervoid show out/diagram.png --caption 'the new layout'\""
|
|
1310
1573
|
},
|
|
1311
1574
|
review: {
|
|
1575
|
+
whenToUse: "Use it instead of gh pr review when a pull request needs a review the operator posts",
|
|
1312
1576
|
usage: "review <pr>",
|
|
1313
1577
|
positionals: requiredText("<pr>"),
|
|
1314
1578
|
summary: "Queue a team review of a pull request; the draft waits in the Reviews tab for the operator to post",
|
|
@@ -1316,16 +1580,19 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1316
1580
|
},
|
|
1317
1581
|
reviews: {
|
|
1318
1582
|
usage: "reviews [pr]",
|
|
1583
|
+
whenToUse: "Use it to follow a queued review or read its draft",
|
|
1319
1584
|
positionals: optionalText("[pr]"),
|
|
1320
1585
|
summary: "List the Reviews tab: reviews running, queued and drafted; with a pull request, read its draft in full",
|
|
1321
1586
|
missingArgumentHint: null
|
|
1322
1587
|
},
|
|
1323
1588
|
prs: {
|
|
1324
1589
|
usage: "prs",
|
|
1590
|
+
whenToUse: "Use it to find which of the operator's pull requests need work",
|
|
1325
1591
|
summary: "List the operator's open pull requests with their checks, reviews and merge state",
|
|
1326
1592
|
missingArgumentHint: null
|
|
1327
1593
|
},
|
|
1328
1594
|
"link-pr": {
|
|
1595
|
+
whenToUse: "Use it after opening a pull request for this session's work",
|
|
1329
1596
|
usage: "link-pr <pr>",
|
|
1330
1597
|
positionals: requiredText("<pr>"),
|
|
1331
1598
|
summary: "Link a pull request to this session's card",
|
|
@@ -1333,11 +1600,13 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1333
1600
|
},
|
|
1334
1601
|
settings: {
|
|
1335
1602
|
usage: "settings list|get",
|
|
1603
|
+
whenToUse: "Use it instead of reading config.json",
|
|
1336
1604
|
summary: "Read Glimmervoid's settings; a secret shows only as configured or not",
|
|
1337
1605
|
missingArgumentHint: null,
|
|
1338
1606
|
isPassthrough: true
|
|
1339
1607
|
},
|
|
1340
1608
|
whiteboard: {
|
|
1609
|
+
whenToUse: "Use it to plan or explain a design with the operator or other sessions",
|
|
1341
1610
|
usage: "whiteboard new|list|connect|disconnect|get|put|render|resolve|delete|plan",
|
|
1342
1611
|
subcommands: WHITEBOARD_SUBCOMMANDS,
|
|
1343
1612
|
summary: "Create, connect to, read, edit, plan on and delete a shared whiteboard the operator and connected sessions edit together",
|
|
@@ -1345,12 +1614,13 @@ var AGENT_COMMAND_HELP = Object.freeze({
|
|
|
1345
1614
|
},
|
|
1346
1615
|
limits: {
|
|
1347
1616
|
usage: "limits",
|
|
1617
|
+
whenToUse: "Use it when a command is refused, to see why",
|
|
1348
1618
|
summary: "List which of these commands answer here and why the rest do not",
|
|
1349
1619
|
missingArgumentHint: null
|
|
1350
1620
|
}
|
|
1351
1621
|
});
|
|
1352
1622
|
function agentCommandHelpLines() {
|
|
1353
|
-
return Object.values(AGENT_COMMAND_HELP).map(({ usage, summary }) => renderOverviewLine(usage, summary));
|
|
1623
|
+
return Object.values(AGENT_COMMAND_HELP).map(({ usage, summary, whenToUse }) => renderOverviewLine(usage, `${summary}. ${whenToUse}`));
|
|
1354
1624
|
}
|
|
1355
1625
|
function agentCommandSpec(verb) {
|
|
1356
1626
|
const { summary, missingArgumentHint, positionals, options, subcommands, isPassthrough } = AGENT_COMMAND_HELP[verb];
|
|
@@ -1365,4 +1635,4 @@ function agentCommandSpec(verb) {
|
|
|
1365
1635
|
};
|
|
1366
1636
|
}
|
|
1367
1637
|
//#endregion
|
|
1368
|
-
export { parseRefinedSessionName as A, resumePromptFor as B, decideTaskTitleRefinement as C, extractPromptTaskTitle as D, extractOscTaskTitle as E, AUTO_CONTINUE_PROMPT as F, isAutoNameOf as G, claudeProjectsDir as H, RESUME_ID_RE as I,
|
|
1638
|
+
export { OWNED_COMMAND_SPECS as $, parseRefinedSessionName as A, resumePromptFor as B, decideTaskTitleRefinement as C, extractPromptTaskTitle as D, extractOscTaskTitle as E, AUTO_CONTINUE_PROMPT as F, isAutoNameOf as G, claudeProjectsDir as H, RESUME_ID_RE as I, formatSessionLimits as J, nextSuggestedName as K, isConversationReplacedAtStartup as L, resolveRefocusTaskTitle as M, resolveTaskTitle as N, isSelfWakePrompt as O, seedTaskTitleSources as P, toolHookFactsOf as Q, pickAutoResume as R, cleanTaskPrompt as S, extractHookTaskTitle as T, listRepoConversations as U, shouldAdoptReportedResumeId as V, listRepoWorktreePaths as W, permitsHelpCommand as X, hintFor as Y, supervisionLine as Z, projectReviewDetail as _, checkAgentReply as a, buildTaskTitleRefinementPrompt as b, deriveChildSessionName as c, describePushLanding as d, isOwnedCommandName as et, describeRoleRefusal as f, projectMyPrs as g, parseAgentVerb as h, agentCommandSpec as i, parseRefinedTaskTitle as j, isSubstantivePrompt as k, describeChildEndNote as l, isAgentApiVerb as m, REFUSAL_REASON as n, decideAgentRequest as o, describeUnpushedCloseRefusal as p, describeSessionLimits as q, agentCommandHelpLines as r, decideSpawnAllowance as s, AGENT_COMMAND_HELP as t, parseCommand as tt, describeKeptChildAttention as u, projectReviews as v, extractAiTitle as w, chooseRefinedSessionName as x, buildPersistedTaskTitle as y, resolveResumeTarget as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-2Q_zNAyk.js";
|