glimmervoid 0.52.2-next.700 → 0.52.2-next.703
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/glimmervoid.js +16 -16
- package/dist/chunks/{adapters-BwrJAzEk.js → adapters-FEi1xOts.js} +15 -6
- package/dist/chunks/{adapters-BQVgsufG.js → adapters-w5GOkhlK.js} +1 -1
- package/dist/chunks/{agent-api-cli-CtQRT4Db.js → agent-api-cli-BLyR79E3.js} +3 -3
- package/dist/chunks/agent-api-cli-DVs4BeP_.js +1 -0
- package/dist/chunks/{agent-api-core-Ddnr3HgI.js → agent-api-core-Cnkg8Qam.js} +2 -2
- package/dist/chunks/{agent-setup-cli-CEU_RVfh.js → agent-setup-cli-DAEX4Z0H.js} +1 -1
- package/dist/chunks/{config-BL8YQ3Ak.js → config-DiPt3I6q.js} +2 -2
- package/dist/chunks/config-store-C9ynPe9J.js +1 -0
- package/dist/chunks/{config-store-aB3AE95Q.js → config-store-Dl4nSG10.js} +8 -7
- package/dist/chunks/{grok-TfN6HhpF.js → grok-DWvNECgc.js} +1 -1
- package/dist/chunks/{kimi-DFoV_Vpe.js → kimi-BcXGiuND.js} +2 -2
- package/dist/chunks/kimi-C74ElgUz.js +1 -0
- package/dist/chunks/{main-CdI5YDx2.js → main-BV_28mSY.js} +51 -26
- package/dist/chunks/{pack-agent-DlW4j1b6.js → pack-agent-DmA2Vt3T.js} +55 -27
- package/dist/chunks/{pack-bridge-CQ2Jlear.js → pack-bridge-CBJNhZ1u.js} +1 -1
- package/dist/chunks/{packs-cli-DCKa39sG.js → packs-cli-DC4Rgn1_.js} +4 -4
- package/dist/chunks/packs-cli-p3uDBJco.js +1 -0
- package/dist/chunks/{pair-cli-Dud8jpuO.js → pair-cli-BEwh_FPN.js} +2 -2
- package/dist/chunks/{pr-flows-cli-Clw5RPyH.js → pr-flows-cli-BzxqbfoY.js} +22 -29
- package/dist/chunks/{pr-flows-external-DfN4780W.js → pr-flows-external-nV8Twsr3.js} +3 -3
- package/dist/chunks/{remote-config-dHj-Qfux.js → remote-config-DTMfaggb.js} +1 -1
- package/dist/chunks/{session-BrX33men.js → session-HrWPtZq1.js} +6 -3
- package/dist/chunks/{settings-cli-9Z0TOaxK.js → settings-cli-Cd2kd5Wg.js} +5 -5
- package/dist/chunks/{settings-readout-core-c06UYQ-8.js → settings-readout-core-CbuMpDHd.js} +2 -2
- package/dist/chunks/{shown-files-core-Dw46r34m.js → shown-files-core-CfDLqQo9.js} +1 -1
- package/dist/chunks/{spawn-env-C9TqrBFa.js → spawn-env-BEzcqK8w.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-CtLGtrUf.js → ssh-sign-cli-EAue_bXT.js} +2 -2
- package/dist/client/assets/{action-status-Bbo7Fyia.js → action-status-BQU6d-0z.js} +1 -1
- package/dist/client/assets/action-status-BQU6d-0z.js.br +0 -0
- package/dist/client/assets/{arena-panel-BcFyfNIz.js → arena-panel-2RS6yp6x.js} +2 -2
- package/dist/client/assets/arena-panel-2RS6yp6x.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-8adiRj58.js → benchmark-panel-CuOTjOjV.js} +1 -1
- package/dist/client/assets/benchmark-panel-CuOTjOjV.js.br +0 -0
- package/dist/client/assets/{boards-view-BYrHNy7_.js → boards-view-K0jO9dyX.js} +1 -1
- package/dist/client/assets/boards-view-K0jO9dyX.js.br +0 -0
- package/dist/client/assets/button-B30QfKTN.js +1 -0
- package/dist/client/assets/button-B30QfKTN.js.br +0 -0
- package/dist/client/assets/{card-actions-D5VASOyl.js → card-actions-DZRZp3KM.js} +1 -1
- package/dist/client/assets/{card-registry-CxPu9XGn.js → card-registry-D77jxFPD.js} +1 -1
- package/dist/client/assets/card-registry-D77jxFPD.js.br +0 -0
- package/dist/client/assets/{community-panel-DuhFElUE.js → community-panel-VWDQkTx2.js} +1 -1
- package/dist/client/assets/community-panel-VWDQkTx2.js.br +0 -0
- package/dist/client/assets/{control-ws-DxQoY1aG.js → control-ws-BzcRTVte.js} +1 -1
- package/dist/client/assets/control-ws-BzcRTVte.js.br +0 -0
- package/dist/client/assets/{dialogs-CsR2VL48.js → dialogs-La2p3hez.js} +1 -1
- package/dist/client/assets/dialogs-La2p3hez.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-BMmdIAUZ.js → doc-editor-ui-LezJoOYI.js} +1 -1
- package/dist/client/assets/doc-editor-ui-LezJoOYI.js.br +0 -0
- package/dist/client/assets/{feature-hint-D8fvOt_6.js → feature-hint-DEkmSJRA.js} +1 -1
- package/dist/client/assets/feature-hint-DEkmSJRA.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DXxFfVj8.js → first-run-checklist-DHE6LoCu.js} +1 -1
- package/dist/client/assets/first-run-checklist-DHE6LoCu.js.br +0 -0
- package/dist/client/assets/{hooks-panel-8SdAGDIE.js → hooks-panel-UwyG0b8u.js} +1 -1
- package/dist/client/assets/hooks-panel-UwyG0b8u.js.br +0 -0
- package/dist/client/assets/{index-BpJLUG8w.js → index-C7HbL-Hv.js} +5 -5
- package/dist/client/assets/index-C7HbL-Hv.js.br +0 -0
- package/dist/client/assets/{issues-panel-D2KeAw49.js → issues-panel-DnID_8RI.js} +1 -1
- package/dist/client/assets/issues-panel-DnID_8RI.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-zxCT-DxQ.js +10 -0
- package/dist/client/assets/lane-read-token-step-zxCT-DxQ.js.br +0 -0
- package/dist/client/assets/{menu-ByAf-D4t.js → menu-BL0J9l3S.js} +1 -1
- package/dist/client/assets/menu-BL0J9l3S.js.br +0 -0
- package/dist/client/assets/{modal-Cccq9QKp.js → modal-CnO3B835.js} +1 -1
- package/dist/client/assets/modal-CnO3B835.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-o3elfWkA.js → my-prs-panel-LIhBs__B.js} +1 -1
- package/dist/client/assets/my-prs-panel-LIhBs__B.js.br +0 -0
- package/dist/client/assets/{nyan-cat-abWFtaCF.js → nyan-cat-CZYlTtQ4.js} +1 -1
- package/dist/client/assets/nyan-cat-CZYlTtQ4.js.br +0 -0
- package/dist/client/assets/{phone-shell-Sg1BVjmk.js → phone-shell-Bujtye-7.js} +1 -1
- package/dist/client/assets/phone-shell-Bujtye-7.js.br +0 -0
- package/dist/client/assets/{plan-face-PduUgrqO.js → plan-face-DvakRmdK.js} +2 -2
- package/dist/client/assets/plan-face-DvakRmdK.js.br +0 -0
- package/dist/client/assets/{plan-render-nK2dU7R_.js → plan-render-0iQxhHib.js} +1 -1
- package/dist/client/assets/plan-render-0iQxhHib.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-C5jzKI3C.js → pr-queue-columns-Di3NuB1G.js} +1 -1
- package/dist/client/assets/pr-queue-columns-Di3NuB1G.js.br +5 -0
- package/dist/client/assets/{pr-status-icon-DxYoCfBP.js → pr-status-icon-BL8wzUBO.js} +1 -1
- package/dist/client/assets/{pr-status-icon-DxYoCfBP.js.br → pr-status-icon-BL8wzUBO.js.br} +0 -0
- package/dist/client/assets/{radar-panel-mGl9GVKl.js → radar-panel-Do_zB_HR.js} +1 -1
- package/dist/client/assets/radar-panel-Do_zB_HR.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-F-hCwHRv.js → repo-roots-adder-BRItJIP3.js} +1 -1
- package/dist/client/assets/repo-roots-adder-BRItJIP3.js.br +0 -0
- package/dist/client/assets/{resume-dialog-yt1pJ6E5.js → resume-dialog-C20s-Vy8.js} +1 -1
- package/dist/client/assets/resume-dialog-C20s-Vy8.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CEa3O_7p.js → review-queue-panel-BUMAEloG.js} +1 -1
- package/dist/client/assets/review-queue-panel-BUMAEloG.js.br +0 -0
- package/dist/client/assets/{session-actions-D1lFvO9l.js → session-actions-CXX9fAsf.js} +2 -2
- package/dist/client/assets/session-actions-CXX9fAsf.js.br +0 -0
- package/dist/client/assets/{session-row-Cmq8XtAl.js → session-row-CD9-ixO4.js} +1 -1
- package/dist/client/assets/session-row-CD9-ixO4.js.br +0 -0
- package/dist/client/assets/{session-tick-lPppK7OC.js → session-tick-CbiHcZQf.js} +1 -1
- package/dist/client/assets/session-tick-CbiHcZQf.js.br +0 -0
- package/dist/client/assets/settings-panel-CQ6bDGC8.js +4 -0
- package/dist/client/assets/settings-panel-CQ6bDGC8.js.br +0 -0
- package/dist/client/assets/{setup-step-B0XzLQJc.js → setup-step-D6yDe11H.js} +1 -1
- package/dist/client/assets/setup-step-D6yDe11H.js.br +2 -0
- package/dist/client/assets/{shown-face-Dw8PDnCu.js → shown-face-CBOF6_tU.js} +1 -1
- package/dist/client/assets/shown-face-CBOF6_tU.js.br +0 -0
- package/dist/client/assets/{trace-panel-CuSHeDYP.js → trace-panel-ClQv4qS5.js} +1 -1
- package/dist/client/assets/trace-panel-ClQv4qS5.js.br +0 -0
- package/dist/client/assets/{usage-panel-Ci9UYm5o.js → usage-panel-BpvCCl5s.js} +1 -1
- package/dist/client/assets/usage-panel-BpvCCl5s.js.br +0 -0
- package/dist/client/assets/{your-day-tip-CiXlVA02.js → your-day-tip-olCdd77C.js} +1 -1
- package/dist/client/assets/your-day-tip-olCdd77C.js.br +0 -0
- package/dist/client/index.html +12 -12
- package/dist/client/index.html.br +0 -0
- package/dist/schema/pack.v1.json +28 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-CAVmc6oB.js +0 -1
- package/dist/chunks/config-store-CEM4SJvM.js +0 -1
- package/dist/chunks/kimi-DPAw6RI-.js +0 -1
- package/dist/chunks/packs-cli-DV__4MB_.js +0 -1
- package/dist/client/assets/action-status-Bbo7Fyia.js.br +0 -0
- package/dist/client/assets/arena-panel-BcFyfNIz.js.br +0 -0
- package/dist/client/assets/benchmark-panel-8adiRj58.js.br +0 -0
- package/dist/client/assets/boards-view-BYrHNy7_.js.br +0 -0
- package/dist/client/assets/button-CeEmJCQe.js +0 -1
- package/dist/client/assets/button-CeEmJCQe.js.br +0 -0
- package/dist/client/assets/card-registry-CxPu9XGn.js.br +0 -0
- package/dist/client/assets/community-panel-DuhFElUE.js.br +0 -0
- package/dist/client/assets/control-ws-DxQoY1aG.js.br +0 -0
- package/dist/client/assets/dialogs-CsR2VL48.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-BMmdIAUZ.js.br +0 -0
- package/dist/client/assets/feature-hint-D8fvOt_6.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DXxFfVj8.js.br +0 -0
- package/dist/client/assets/hooks-panel-8SdAGDIE.js.br +0 -0
- package/dist/client/assets/index-BpJLUG8w.js.br +0 -0
- package/dist/client/assets/issues-panel-D2KeAw49.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-Ce7AeyjP.js +0 -10
- package/dist/client/assets/lane-read-token-step-Ce7AeyjP.js.br +0 -0
- package/dist/client/assets/menu-ByAf-D4t.js.br +0 -0
- package/dist/client/assets/modal-Cccq9QKp.js.br +0 -0
- package/dist/client/assets/my-prs-panel-o3elfWkA.js.br +0 -0
- package/dist/client/assets/nyan-cat-abWFtaCF.js.br +0 -0
- package/dist/client/assets/phone-shell-Sg1BVjmk.js.br +0 -0
- package/dist/client/assets/plan-face-PduUgrqO.js.br +0 -0
- package/dist/client/assets/plan-render-nK2dU7R_.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-C5jzKI3C.js.br +0 -3
- package/dist/client/assets/radar-panel-mGl9GVKl.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-F-hCwHRv.js.br +0 -0
- package/dist/client/assets/resume-dialog-yt1pJ6E5.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CEa3O_7p.js.br +0 -0
- package/dist/client/assets/session-actions-D1lFvO9l.js.br +0 -0
- package/dist/client/assets/session-row-Cmq8XtAl.js.br +0 -0
- package/dist/client/assets/session-tick-lPppK7OC.js.br +0 -0
- package/dist/client/assets/settings-panel-C3YT4FNF.js +0 -4
- package/dist/client/assets/settings-panel-C3YT4FNF.js.br +0 -0
- package/dist/client/assets/setup-step-B0XzLQJc.js.br +0 -0
- package/dist/client/assets/shown-face-Dw8PDnCu.js.br +0 -0
- package/dist/client/assets/trace-panel-CuSHeDYP.js.br +0 -0
- package/dist/client/assets/usage-panel-Ci9UYm5o.js.br +0 -0
- package/dist/client/assets/your-day-tip-CiXlVA02.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -3,9 +3,9 @@ import { r as firstLine, s as nodePtyRebuildHint, t as probeNodePty } from "../c
|
|
|
3
3
|
import { i as errorText } from "../chunks/text-DoirglWV.js";
|
|
4
4
|
import { o as packageRoot } from "../chunks/runtime-paths-DfoHzN15.js";
|
|
5
5
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
6
|
-
import { t as AGENT_API_VERBS } from "../chunks/session-
|
|
6
|
+
import { t as AGENT_API_VERBS } from "../chunks/session-HrWPtZq1.js";
|
|
7
7
|
import { a as execSync } from "../chunks/child-process-safe-BIh8yQ0I.js";
|
|
8
|
-
import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-
|
|
8
|
+
import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-Cnkg8Qam.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-BfOQqktJ.js";
|
|
11
11
|
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
@@ -64,7 +64,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
64
64
|
return await runDoctor() ? 0 : 1;
|
|
65
65
|
},
|
|
66
66
|
pair: async ({ values }) => {
|
|
67
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
67
|
+
const { runPairCli } = await import("../chunks/pair-cli-BEwh_FPN.js");
|
|
68
68
|
return runPairCli({
|
|
69
69
|
isListing: values.list === true,
|
|
70
70
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -72,27 +72,27 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
74
|
agent: async () => {
|
|
75
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
75
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-DAEX4Z0H.js");
|
|
76
76
|
return runAgentSetupCli();
|
|
77
77
|
},
|
|
78
78
|
settings: async (parsed) => {
|
|
79
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
79
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-Cd2kd5Wg.js");
|
|
80
80
|
return runParsedSettingsCli(parsed);
|
|
81
81
|
},
|
|
82
82
|
"pr-flows": async (parsed) => {
|
|
83
|
-
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-
|
|
83
|
+
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-BzxqbfoY.js");
|
|
84
84
|
return runPrFlowsCheckCli(parsed);
|
|
85
85
|
},
|
|
86
86
|
packs: async (parsed) => {
|
|
87
|
-
const { runPacksCli } = await import("../chunks/packs-cli-
|
|
87
|
+
const { runPacksCli } = await import("../chunks/packs-cli-p3uDBJco.js");
|
|
88
88
|
return runPacksCli(parsed);
|
|
89
89
|
},
|
|
90
90
|
"pr-action": async (parsed) => {
|
|
91
|
-
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-
|
|
91
|
+
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-BzxqbfoY.js");
|
|
92
92
|
return runPrActionReportCli(parsed);
|
|
93
93
|
},
|
|
94
94
|
"ssh-sign": async ({ rawArgs }) => {
|
|
95
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
95
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-EAue_bXT.js");
|
|
96
96
|
return runSshSignCli(rawArgs);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -114,7 +114,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
114
114
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
115
115
|
}
|
|
116
116
|
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) => {
|
|
117
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
117
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-DVs4BeP_.js");
|
|
118
118
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
119
119
|
}])]);
|
|
120
120
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -128,7 +128,7 @@ function missingAgentText(agentId) {
|
|
|
128
128
|
}
|
|
129
129
|
async function printSessionLimits() {
|
|
130
130
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
131
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
131
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-DVs4BeP_.js");
|
|
132
132
|
const limitsLines = await sessionLimitsHelpLines();
|
|
133
133
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
134
134
|
}
|
|
@@ -185,7 +185,7 @@ async function readDeclaredCustomAgents() {
|
|
|
185
185
|
declared: [],
|
|
186
186
|
error: null
|
|
187
187
|
};
|
|
188
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
188
|
+
const { loadConfigFile } = await import("../chunks/config-store-C9ynPe9J.js");
|
|
189
189
|
try {
|
|
190
190
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
191
191
|
if (!loaded.config) return {
|
|
@@ -261,7 +261,7 @@ async function runDoctor() {
|
|
|
261
261
|
}
|
|
262
262
|
switchSection("Agents");
|
|
263
263
|
try {
|
|
264
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
264
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-w5GOkhlK.js");
|
|
265
265
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
266
266
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
267
267
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -269,10 +269,10 @@ async function runDoctor() {
|
|
|
269
269
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
270
270
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
271
271
|
}
|
|
272
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
272
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-DAEX4Z0H.js");
|
|
273
273
|
const grokSetup = inspectGrokAgentSetup();
|
|
274
274
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
275
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
275
|
+
const { default: kimi } = await import("../chunks/kimi-C74ElgUz.js");
|
|
276
276
|
const { describeAgentHome } = await import("../chunks/agent-home-CvVPEMQj.js");
|
|
277
277
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-BK5Xnyjy.js");
|
|
278
278
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -283,7 +283,7 @@ async function runDoctor() {
|
|
|
283
283
|
try {
|
|
284
284
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-j5rMoZKx.js");
|
|
285
285
|
const { execFileSync } = await import("../chunks/child-process-safe-D5RpuuyW.js");
|
|
286
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
286
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-DAEX4Z0H.js");
|
|
287
287
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
288
288
|
line("Sane YOLO", binPath || "not installed");
|
|
289
289
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { f as isPathInside, p as safePathSegment, s as relayPath } from "./runtime-paths-DfoHzN15.js";
|
|
3
|
-
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Fn as
|
|
3
|
+
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Fn as FULL_SHA_RE, Ln as shortSha$1, S as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME } from "./session-HrWPtZq1.js";
|
|
4
4
|
import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-BIh8yQ0I.js";
|
|
5
|
-
import { Mt as HTTP_URL_RE, an as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, en as UpdateChannel, on as PLAN_TOOL_NAME, qt as InstallFlavor, rn as PLAN_HOOK_EVENT } from "./config-
|
|
5
|
+
import { Mt as HTTP_URL_RE, an as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, en as UpdateChannel, on as PLAN_TOOL_NAME, qt as InstallFlavor, rn as PLAN_HOOK_EVENT } from "./config-DiPt3I6q.js";
|
|
6
6
|
import { a as rawTextOr, n as isRecord, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
7
7
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
8
8
|
import { i as saneYoloEnv, r as SANE_YOLO_PATH_ENV, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
9
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
9
|
+
import { t as buildAgentEnv } from "./spawn-env-BEzcqK8w.js";
|
|
10
10
|
import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
11
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-
|
|
11
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-DWvNECgc.js";
|
|
12
12
|
import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-AKRVPqG1.js";
|
|
13
|
-
import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-
|
|
14
|
-
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-
|
|
13
|
+
import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-Dl4nSG10.js";
|
|
14
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-BcXGiuND.js";
|
|
15
15
|
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-CbCN4fxx.js";
|
|
16
16
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-UaqVWfqV.js";
|
|
17
17
|
import fs from "node:fs";
|
|
@@ -2273,9 +2273,18 @@ function classifyTitle(title, { cwdBasename = null } = {}) {
|
|
|
2273
2273
|
classifyAgainstCwdBasename: classifyActionRequired
|
|
2274
2274
|
});
|
|
2275
2275
|
}
|
|
2276
|
+
var PROJECT_TITLE_MAX_GRAPHEMES = 24;
|
|
2277
|
+
var PROJECT_TITLE_TRUNCATION_MARKER = "...";
|
|
2278
|
+
var graphemeSegmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
2279
|
+
function codexProjectTitle(projectName) {
|
|
2280
|
+
const graphemes = Array.from(graphemeSegmenter.segment(projectName), (part) => part.segment);
|
|
2281
|
+
if (graphemes.length <= PROJECT_TITLE_MAX_GRAPHEMES) return projectName;
|
|
2282
|
+
return graphemes.slice(0, 21).join("") + PROJECT_TITLE_TRUNCATION_MARKER;
|
|
2283
|
+
}
|
|
2276
2284
|
var titleProfile$1 = {
|
|
2277
2285
|
classifyTitle,
|
|
2278
2286
|
quietUntilFirstPrompt: true,
|
|
2287
|
+
projectTitleOf: codexProjectTitle,
|
|
2279
2288
|
taskTitle: {
|
|
2280
2289
|
readsTranscriptTitle: false,
|
|
2281
2290
|
genericTitles: [ID],
|
|
@@ -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-FEi1xOts.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { at as WhiteboardAgentReply, r as AGENT_URL_ENV, tt as UNIT_STATUSES, u as AgentLimitsReply } from "./session-
|
|
2
|
-
import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
1
|
+
import { at as WhiteboardAgentReply, r as AGENT_URL_ENV, tt as UNIT_STATUSES, u as AgentLimitsReply } from "./session-HrWPtZq1.js";
|
|
2
|
+
import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-Cnkg8Qam.js";
|
|
3
3
|
import { i as resolveHookTarget } from "./hook-relay-core-DA_bz2KA.js";
|
|
4
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
5
|
-
import { h as layoutBoard, i as describeOverCap, p as boardSvgDocument, v as planSteps } from "./shown-files-core-
|
|
5
|
+
import { h as layoutBoard, i as describeOverCap, p as boardSvgDocument, v as planSteps } from "./shown-files-core-CfDLqQo9.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import http from "node:http";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-BLyR79E3.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as SESSION_COMMANDS, E as RefinedTaskTitle, V as TASK_TITLE_CONTROL_CHARACTERS, _ as AgentSettingsRequest, a as AgentAnswerRequest, c as AgentCloseRequest, d as AgentPacksRequest, f as AgentPullRequestRequest, h as AgentSendRequest, l as AgentEditRequest, m as AgentReviewsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, ot as WhiteboardAgentRequest, p as AgentReadRequest, s as AgentCheckoutRequest, t as AGENT_API_VERBS, v as AgentSpawnRequest, y as AgentWhyRequest } from "./session-
|
|
2
|
-
import { Qt as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
1
|
+
import { D as SESSION_COMMANDS, E as RefinedTaskTitle, V as TASK_TITLE_CONTROL_CHARACTERS, _ as AgentSettingsRequest, a as AgentAnswerRequest, c as AgentCloseRequest, d as AgentPacksRequest, f as AgentPullRequestRequest, h as AgentSendRequest, l as AgentEditRequest, m as AgentReviewsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, ot as WhiteboardAgentRequest, p as AgentReadRequest, s as AgentCheckoutRequest, t as AGENT_API_VERBS, v as AgentSpawnRequest, y as AgentWhyRequest } from "./session-HrWPtZq1.js";
|
|
2
|
+
import { Qt as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-DiPt3I6q.js";
|
|
3
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-
|
|
2
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-DWvNECgc.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as Op, At as SessionPrLinks, Bn as
|
|
2
|
-
import { i as ThemePalette, t as PackBridgeTopic } from "./pack-bridge-
|
|
1
|
+
import { $ as Op, At as SessionPrLinks, Bn as REPO_SLUG_RE, Cn as PrFlowSaveRuleRequest, Ct as MyPrMergeWhenReadyResult, En as PrFlowsSettings, F as SessionDoc, Gn as githubPollingShape, H as TaskTitle, Hn as GithubPollingRefreshRequest, Ht as ReviewChecksState, I as SessionSnapshot, J as BoardReview, K as Board, L as SessionState, Lt as GithubReviewDecision, Mt as repositoryName, Nt as CommitSha, On as PrFlowsStatus, R as ShownFile, Rn as GH_SEGMENT, St as MyPrMergeWhenReadyRequest, U as UnseenOutcome, Un as GithubPollingRefreshResult, Vn as repoParts, Wn as GithubPrsFreshness, Xt as TeamReviewActionResult, Y as BoardSummary, Yt as TeamReviewActionRequest, _n as PrFlowDisposeResult, bn as PrFlowPendingApproval, bt as MyPrMergeResult, dt as MyPr, en as TeamReviewStatus, gn as PrFlowDisposeRequest, gt as MyPrKeepMergeableResult, ht as MyPrKeepMergeableRequest, it as WHITEBOARD_LIMITS, jt as pullRequestKeyFormat, k as SESSION_DOC_PATH_MAX_CHARS, kt as MyPrsStatus, mn as PrFlowApproveRequest, on as hasRequiredActionHead, pn as PrActionRunRequest, ut as LinkedPr, vn as PrFlowItemRequest, w as CoherenceHooksState, wt as MyPrSearchNode, yt as MyPrMergeRequest } from "./session-HrWPtZq1.js";
|
|
2
|
+
import { i as ThemePalette, t as PackBridgeTopic } from "./pack-bridge-CBJNhZ1u.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-Dl4nSG10.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { d as equalsIgnoringCaseOnWindows, f as isPathInside, o as packageRoot } from "./runtime-paths-DfoHzN15.js";
|
|
3
3
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
|
-
import { D as SESSION_COMMANDS,
|
|
5
|
-
import { $t as UPDATE_CHANNELS, Ct as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, E as DEFAULT_MODELS, Gt as DASHBOARD_VIEWS, Jt as ONBOARDING_STEPS, St as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, Xt as OPERATOR_ACTIONS_BY_SURFACE, Yt as ONBOARDING_STEP_STATES, Zt as OPERATOR_SURFACES, _t as TASK_TITLE_TIMEOUT_RANGE, at as FLYING_ANIMALS_SCALE_RANGE, b as HintFeature, bt as USAGE_RETAIN_DAYS_RANGE, ct as NON_NEGATIVE_NUMBER_RANGE, d as BranchGcFileSettings, dt as POSTHOG_FIX_TIMEOUT_RANGE, f as USAGE_COST_MODES, ft as POSTHOG_PROJECT_ID_RANGE, gt as REPLAY_BUFFER_KB_RANGE, ht as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, i as Config, it as FLYING_ANIMALS_GAP_RANGE, lt as PORT_RANGE, m as normalizeLegacyConfigNumbers, mt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, n as BUILTIN_AGENT_IDS, nt as FLYING_ANIMALS_DEFAULTS, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, pt as POSTHOG_TRAFFIC_BASELINE_RANGE, rt as FLYING_ANIMALS_DURATION_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as MEMORY_RESERVE_MB_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as COMMUNITY_INTERVAL_MINUTES_RANGE, u as configIssueMessage, ut as POSITIVE_NUMBER_RANGE, vt as USAGE_BUDGET_RANGE, xt as USAGE_SCAN_INTERVAL_RANGE, yt as USAGE_INTEGER_RANGES } from "./config-
|
|
4
|
+
import { D as SESSION_COMMANDS, Pn as prFlowRulesJsonSchema, Sn as PrFlowRule, hn as PrFlowCommand, wn as PrFlowScopedCommand, xn as PrFlowPrAction } from "./session-HrWPtZq1.js";
|
|
5
|
+
import { $t as UPDATE_CHANNELS, Ct as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, E as DEFAULT_MODELS, Gt as DASHBOARD_VIEWS, Jt as ONBOARDING_STEPS, St as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, Xt as OPERATOR_ACTIONS_BY_SURFACE, Yt as ONBOARDING_STEP_STATES, Zt as OPERATOR_SURFACES, _t as TASK_TITLE_TIMEOUT_RANGE, at as FLYING_ANIMALS_SCALE_RANGE, b as HintFeature, bt as USAGE_RETAIN_DAYS_RANGE, ct as NON_NEGATIVE_NUMBER_RANGE, d as BranchGcFileSettings, dt as POSTHOG_FIX_TIMEOUT_RANGE, f as USAGE_COST_MODES, ft as POSTHOG_PROJECT_ID_RANGE, gt as REPLAY_BUFFER_KB_RANGE, ht as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, i as Config, it as FLYING_ANIMALS_GAP_RANGE, lt as PORT_RANGE, m as normalizeLegacyConfigNumbers, mt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, n as BUILTIN_AGENT_IDS, nt as FLYING_ANIMALS_DEFAULTS, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, pt as POSTHOG_TRAFFIC_BASELINE_RANGE, rt as FLYING_ANIMALS_DURATION_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as MEMORY_RESERVE_MB_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as COMMUNITY_INTERVAL_MINUTES_RANGE, u as configIssueMessage, ut as POSITIVE_NUMBER_RANGE, vt as USAGE_BUDGET_RANGE, xt as USAGE_SCAN_INTERVAL_RANGE, yt as USAGE_INTEGER_RANGES } from "./config-DiPt3I6q.js";
|
|
6
6
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
7
7
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
8
8
|
import fs from "node:fs";
|
|
@@ -3089,8 +3089,8 @@ var FILE_ONLY_SETTINGS = Object.freeze([
|
|
|
3089
3089
|
path: "prFlows.sources",
|
|
3090
3090
|
title: "PR flows sources",
|
|
3091
3091
|
group: "lanes-team-review",
|
|
3092
|
-
description: "Commands that report review findings for your own pull requests, run without a shell on each new head once you approve the exact command in My PRs. Each entry has id, label, command (an argv array; {prUrl}, {repo}, {number} and {head} expand inside one argument, and GLIMMERVOID_PR_URL, GLIMMERVOID_PR_REPO, GLIMMERVOID_PR_NUMBER and GLIMMERVOID_PR_HEAD are set) and
|
|
3093
|
-
jsonSchema: z.toJSONSchema(z.array(
|
|
3092
|
+
description: "Commands that report review findings for your own pull requests, run without a shell on each new head once you approve the exact command in My PRs. Each entry has id, label, command (an argv array; {prUrl}, {repo}, {number} and {head} expand inside one argument, and GLIMMERVOID_PR_URL, GLIMMERVOID_PR_REPO, GLIMMERVOID_PR_NUMBER and GLIMMERVOID_PR_HEAD are set), timeoutSeconds and optional repos (owner/name; every repository when absent), and prints {\"findings\": [{\"path\", \"lineStart\", \"lineEnd\", \"priority\", \"body\", \"url\"}], \"status\": [{\"label\", \"state\"}]} JSON. Each id is unique within the list. Check entries with glimmervoid pr-flows check.",
|
|
3093
|
+
jsonSchema: z.toJSONSchema(z.array(PrFlowScopedCommand), { io: "input" }),
|
|
3094
3094
|
example: [{
|
|
3095
3095
|
id: "scanner",
|
|
3096
3096
|
label: "Scanner",
|
|
@@ -3179,7 +3179,7 @@ var FILE_ONLY_SETTINGS = Object.freeze([
|
|
|
3179
3179
|
path: "packs",
|
|
3180
3180
|
title: "Packs",
|
|
3181
3181
|
group: "lanes-team-review",
|
|
3182
|
-
description: "More pack directories to load besides every directory under ~/.glimmervoid/packs/. A pack is a pack.json (name, version, description, requires, and sections such as prFlows with prActions, sources, actions and
|
|
3182
|
+
description: "More pack directories to load besides every directory under ~/.glimmervoid/packs/. A pack is a pack.json (name, version, description, requires, and sections such as prFlows with prActions, sources, actions, rules and a repos default for them) plus the files it uses, shared by copying the directory; its commands can use {packDir}, its ids show as <pack>/<id>, and it waits for one approval in Settings, Packs that any edit to a file in it asks again.",
|
|
3183
3183
|
control: "list",
|
|
3184
3184
|
keywords: [
|
|
3185
3185
|
"packs",
|
|
@@ -3198,7 +3198,7 @@ var FILE_ONLY_SETTINGS = Object.freeze([
|
|
|
3198
3198
|
path: "prFlows.rules",
|
|
3199
3199
|
title: "PR flows rules",
|
|
3200
3200
|
group: "lanes-team-review",
|
|
3201
|
-
description: "Ordered rules for review items on your own pull requests; the first match acts with no click and lands in the Handled list, where Undo reopens it. Each matches on source, priority, paths, text and
|
|
3201
|
+
description: "Ordered rules for review items on your own pull requests; the first match acts with no click and lands in the Handled list, where Undo reopens it. Each matches on source, priority, paths, text, scope and repos (owner/name; every repository when absent), and acts with ask, fix-local, dismiss or run:<action id>.",
|
|
3202
3202
|
jsonSchema: prFlowRulesJsonSchema(z.array(PrFlowRule)),
|
|
3203
3203
|
example: [{
|
|
3204
3204
|
name: "Generated files",
|
|
@@ -3209,6 +3209,7 @@ var FILE_ONLY_SETTINGS = Object.freeze([
|
|
|
3209
3209
|
name: "Bot nits",
|
|
3210
3210
|
source: "review-bot[bot]",
|
|
3211
3211
|
priority: ["low"],
|
|
3212
|
+
repos: ["acme/app"],
|
|
3212
3213
|
action: "run:ask-bot"
|
|
3213
3214
|
}],
|
|
3214
3215
|
control: "json",
|
|
@@ -3228,7 +3229,7 @@ var FILE_ONLY_SETTINGS = Object.freeze([
|
|
|
3228
3229
|
path: "prFlows.repoRules",
|
|
3229
3230
|
title: "PR flows repository rules",
|
|
3230
3231
|
group: "lanes-team-review",
|
|
3231
|
-
description: "Rules per repository (owner/name to a list of rules), checked before prFlows.rules for that repository.",
|
|
3232
|
+
description: "Deprecated: put repos on each rule in prFlows.rules instead. Rules per repository (owner/name to a list of rules), still checked before prFlows.rules for that repository.",
|
|
3232
3233
|
jsonSchema: prFlowRulesJsonSchema(z.record(z.string(), z.array(PrFlowRule))),
|
|
3233
3234
|
example: { "acme/app": [{
|
|
3234
3235
|
name: "Docs typos",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { s as relayPath } from "./runtime-paths-DfoHzN15.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
4
|
+
import { t as buildAgentEnv } from "./spawn-env-BEzcqK8w.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { s as relayPath } from "./runtime-paths-DfoHzN15.js";
|
|
2
|
-
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
2
|
+
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-HrWPtZq1.js";
|
|
3
3
|
import { i as execFileSync } from "./child-process-safe-BIh8yQ0I.js";
|
|
4
4
|
import { n as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
5
5
|
import { i as kimiMcpFiles, n as KIMI_MCP_CONFIG_NAME, t as KIMI_MCP_BASE_NAME } from "./agent-config-DDpOIcFv.js";
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
6
|
+
import { t as buildAgentEnv } from "./spawn-env-BEzcqK8w.js";
|
|
7
7
|
import { l as KIMI_HOME_PROFILE, m as renderKimiHooksBlock } from "./agent-home-core-CbCN4fxx.js";
|
|
8
8
|
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, o as prepareScratchAgentHome, s as realAgentHome } from "./agent-home-UaqVWfqV.js";
|
|
9
9
|
import fs from "node:fs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-BcXGiuND.js";
|
|
@@ -2,10 +2,10 @@ import { a as showHomeAsTilde, i as sanitizeOneLine, n as requireExecutableSpawn
|
|
|
2
2
|
import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
3
3
|
import { a as examplePacksDir, c as resolveFfmpegPath, d as equalsIgnoringCaseOnWindows, f as isPathInside, i as clientDir, l as resolvePackageBin, m as sanitizeWorktreeName, n as bundled, o as packageRoot, p as safePathSegment, r as cliPath, s as relayPath, t as assetRoot, u as caseFoldedPathKey } from "./runtime-paths-DfoHzN15.js";
|
|
4
4
|
import { n as glimmervoidHomeDir, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
5
|
-
import { $ as Op, $t as TeamReviewStateEntry, A as SESSION_NAME_PATTERN, B as SshSignRequest, Bt as PostingPlan, C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Cn as PrFlowSaveRuleRequest, Dt as MyPrsSnapshot, En as
|
|
5
|
+
import { $ as Op, $t as TeamReviewStateEntry, A as SESSION_NAME_PATTERN, An as PrThreadUnresolveResponse, B as SshSignRequest, Bn as REPO_SLUG_RE, Bt as PostingPlan, C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Cn as PrFlowSaveRuleRequest, Dn as PrFlowsState, Dt as MyPrsSnapshot, En as PrFlowsSettings, Et as MyPrThreadsResponse, Ft as EarlierReview, Gt as ReviewFinding, H as TaskTitle, In as HEX_SHA_RE, It as FindingSeverity, Jn as MERGEABLE_LIVE_STATES, Jt as ReviewVerdict, K as Board, Kn as BADGE_LABELS, Kt as ReviewResult, Ln as shortSha, M as SHOWN_FILE_CAP_BYTES, N as SIGN_URL_ENV, Nn as prActionReportPath, Nt as CommitSha$1, O as SESSION_DOC_BODY_CAP_BYTES, Ot as MyPrsState, P as SSH_SIGN_BODY_CAP_BYTES, Pt as DECIDING_REVIEW_STATES, Q as Note, Qt as TeamReviewResolveResponse, R as ShownFile, Rn as GH_SEGMENT, Rt as GithubReviewState, S as CONVERSATION_PERMISSION_HOOK_EVENT, Sn as PrFlowRule, St as MyPrMergeWhenReadyRequest, T as ConversationQuestion, Tt as MyPrThreadNode, Ut as ReviewComment, Vn as repoParts, Vt as PrDetail, W as BOARD_MEDIA_MAX_EDGE_PX, Wt as ReviewDraft, X as Box, Xn as STATES, Yn as RESTARTABLE_STATES, Yt as TeamReviewActionRequest, Z as Frame, Zt as TeamReviewCompareFiles, _ as AgentSettingsRequest, _t as MyPrLaneEntry, an as decisionAsIfApprovalRequired, b as COHERENCE_HOOKS_INACTIVE, c as AgentCloseRequest, cn as PR_ACTION_REPORT_BODY_CAP_BYTES, ct as sparseBoardRecord, d as AgentPacksRequest, dn as PR_ACTION_TOKEN_ENV, dt as MyPr, en as TeamReviewStatus, et as Panel, f as AgentPullRequestRequest, fn as PrActionReportBody, ft as MyPrAutoRebase, gn as PrFlowDisposeRequest, ht as MyPrKeepMergeableRequest, i as ASK_USER_QUESTION_TOOL_NAME, in as canApproveAfterComment, it as WHITEBOARD_LIMITS, j as SESSION_NAME_RULE_TEXT, kn as PrThreadReplyResponse, l as AgentEditRequest, ln as PR_ACTION_REPORT_ROUTE, lt as sparseBoardReply, mn as PrFlowApproveRequest, mt as MyPrCheckContextsResponse, nn as TeamReviewThreadResult, nt as Unit, o as AgentAttentionRequest, pn as PrActionRunRequest, pt as MyPrCheckContext, q as BoardRecord, qn as KILLABLE_STATES, qt as ReviewThreadId, r as AGENT_URL_ENV, rn as TeamReviewThreadsRepository, rt as WHITEBOARD_ASSET_ROUTE, sn as hasStandingViewerApproval, st as Wire, tn as TeamReviewThreadCommentsResponse, un as PR_ACTION_REPORT_URL_ENV, ut as LinkedPr, v as AgentSpawnRequest, vn as PrFlowItemRequest, vt as MyPrMergeMethod, x as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, xt as MyPrMergeStateResponse, y as AgentWhyRequest, yt as MyPrMergeRequest, zn as NODE_ID_RE, zt as PostedReviewEvent } from "./session-HrWPtZq1.js";
|
|
6
6
|
import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-BIh8yQ0I.js";
|
|
7
|
-
import { $ as WorkflowsSettings, A as BenchmarkId, At as IssuesStatus, B as CommunityDraft, Bt as changeMapFactId, C as RaceRecord, D as EFFORT_OPTION_ID, Dt as IssueUpdate, E as DEFAULT_MODELS, Et as IssueKey, F as CommitComparison, Ft as MAX_RAW_LINE_CHARS, G as SKILL_NAME_RE, H as CommunityState, I as MergedPrListing, It as TraceCheckpoint, J as GithubPrLightSearchNode, K as GithubPrDetailNode, Kt as GithubTeam, L as MinedPrReviewData, Lt as TraceRecord, M as BenchmarkRun, N as BenchmarkStatus, Nt as HookEnvelope, O as BenchmarkActionRequest, Ot as IssuesSearchResponse, P as BenchmarkSuite, Pt as SessionSetup, Q as WorkflowLabelName, Qt as pullRequestKeyFromReference, R as PrCheckoutCaseInput, Rt as CoherenceJournalOutput, T as CATALOG_AGENT_IDS, Tt as GithubIssueResponse, U as CommunityVerdict, Ut as CLIENT_LOG_TEXT_MAX_CHARS, V as CommunityItem, Vt as CHANGES_POLL_INTERVAL_MS, W as DISCORD_CHANNEL_NAME_RE, Wt as CONTROL_FRAME_MAX_BYTES, X as comparablePrKey, Y as GithubPrsFrame, Z as WorkflowCommentBody, _ as FeatureHintState, a as ConfigUpdate, an as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, cn as PlanRevision, et as WorkflowsState, f as USAGE_COST_MODES, g as PackApproveRequest, h as ClientMessage, in as PLAN_HOOK_OUTPUT_MAX_CHARS, j as BenchmarkJudgement, jt as issuePullRequestStateFromGithub, k as BenchmarkCase, kt as IssuesState, ln as parseExitPlanModeHookPayload, n as BUILTIN_AGENT_IDS, nn as PLAN_BODY_CAP_BYTES, on as PLAN_TOOL_NAME, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_VENDOR_KEYS, q as GithubPrKey, r as BrowserConfig, rn as PLAN_HOOK_EVENT, s as RUNTIME_CONFIG_SCALAR_KEYS, sn as PlanDecision, tn as UpdateJournal, u as configIssueMessage, un as planTitle, v as HINT_FEATURES, w as RaceSpec, wt as GithubIssuePullRequestsRepository, x as JudgeResult, y as HINT_VIEW_BY_FEATURE, yt as USAGE_INTEGER_RANGES, z as CommunityActionRequest, zt as ChangeMap } from "./config-
|
|
8
|
-
import { $ as supervisionLine, A as parseRefinedSessionName, B as resumePromptFor, C as decideTaskTitleRefinement, D as extractPromptTaskTitle, E as extractOscTaskTitle, F as AUTO_CONTINUE_PROMPT, G as isAutoNameOf, H as claudeProjectsDir, I as RESUME_ID_RE, K as nextSuggestedName, L as isConversationReplacedAtStartup, M as resolveRefocusTaskTitle, N as resolveTaskTitle, O as isSelfWakePrompt, P as seedTaskTitleSources, Q as routeAgentNotes, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, X as permitsHelpCommand, Y as hintFor, Z as promptHintFor, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as toolHookFactsOf, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedTaskTitle, k as isSubstantivePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as describeSessionLimits, s as decideSpawnAllowance, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as resolveResumeTarget } from "./agent-api-core-
|
|
7
|
+
import { $ as WorkflowsSettings, A as BenchmarkId, At as IssuesStatus, B as CommunityDraft, Bt as changeMapFactId, C as RaceRecord, D as EFFORT_OPTION_ID, Dt as IssueUpdate, E as DEFAULT_MODELS, Et as IssueKey, F as CommitComparison, Ft as MAX_RAW_LINE_CHARS, G as SKILL_NAME_RE, H as CommunityState, I as MergedPrListing, It as TraceCheckpoint, J as GithubPrLightSearchNode, K as GithubPrDetailNode, Kt as GithubTeam, L as MinedPrReviewData, Lt as TraceRecord, M as BenchmarkRun, N as BenchmarkStatus, Nt as HookEnvelope, O as BenchmarkActionRequest, Ot as IssuesSearchResponse, P as BenchmarkSuite, Pt as SessionSetup, Q as WorkflowLabelName, Qt as pullRequestKeyFromReference, R as PrCheckoutCaseInput, Rt as CoherenceJournalOutput, T as CATALOG_AGENT_IDS, Tt as GithubIssueResponse, U as CommunityVerdict, Ut as CLIENT_LOG_TEXT_MAX_CHARS, V as CommunityItem, Vt as CHANGES_POLL_INTERVAL_MS, W as DISCORD_CHANNEL_NAME_RE, Wt as CONTROL_FRAME_MAX_BYTES, X as comparablePrKey, Y as GithubPrsFrame, Z as WorkflowCommentBody, _ as FeatureHintState, a as ConfigUpdate, an as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, cn as PlanRevision, et as WorkflowsState, f as USAGE_COST_MODES, g as PackApproveRequest, h as ClientMessage, in as PLAN_HOOK_OUTPUT_MAX_CHARS, j as BenchmarkJudgement, jt as issuePullRequestStateFromGithub, k as BenchmarkCase, kt as IssuesState, ln as parseExitPlanModeHookPayload, n as BUILTIN_AGENT_IDS, nn as PLAN_BODY_CAP_BYTES, on as PLAN_TOOL_NAME, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as USAGE_VENDOR_KEYS, q as GithubPrKey, r as BrowserConfig, rn as PLAN_HOOK_EVENT, s as RUNTIME_CONFIG_SCALAR_KEYS, sn as PlanDecision, tn as UpdateJournal, u as configIssueMessage, un as planTitle, v as HINT_FEATURES, w as RaceSpec, wt as GithubIssuePullRequestsRepository, x as JudgeResult, y as HINT_VIEW_BY_FEATURE, yt as USAGE_INTEGER_RANGES, z as CommunityActionRequest, zt as ChangeMap } from "./config-DiPt3I6q.js";
|
|
8
|
+
import { $ as supervisionLine, A as parseRefinedSessionName, B as resumePromptFor, C as decideTaskTitleRefinement, D as extractPromptTaskTitle, E as extractOscTaskTitle, F as AUTO_CONTINUE_PROMPT, G as isAutoNameOf, H as claudeProjectsDir, I as RESUME_ID_RE, K as nextSuggestedName, L as isConversationReplacedAtStartup, M as resolveRefocusTaskTitle, N as resolveTaskTitle, O as isSelfWakePrompt, P as seedTaskTitleSources, Q as routeAgentNotes, R as pickAutoResume, S as cleanTaskPrompt, T as extractHookTaskTitle, U as listRepoConversations, V as shouldAdoptReportedResumeId, W as listRepoWorktreePaths, X as permitsHelpCommand, Y as hintFor, Z as promptHintFor, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as toolHookFactsOf, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedTaskTitle, k as isSubstantivePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as describeSessionLimits, s as decideSpawnAllowance, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as resolveResumeTarget } from "./agent-api-core-Cnkg8Qam.js";
|
|
9
9
|
import { a as rawTextOr, i as positiveNumberOr, n as isRecord$2, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-oz_Z_6E7.js";
|
|
10
10
|
import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-BfOQqktJ.js";
|
|
11
11
|
import { t as HOOK_URL_ENV } from "./hook-relay-core-DA_bz2KA.js";
|
|
@@ -13,20 +13,20 @@ import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusRep
|
|
|
13
13
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
14
14
|
import { a as saneYoloFiles } from "./sane-yolo-BjUkqIoH.js";
|
|
15
15
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
16
|
-
import { _ as findDependencyCycle, a as filesAfterRetention, c as readPageTitle, d as thumbnailOwnerIdOf, f as thumbnailRecipeFor, g as cappedWarnings, h as layoutBoard, i as describeOverCap, l as shownMimeForFilename, m as escapeMarkup, n as SHOWN_SNIFF_BYTES, o as isShownPageMime, p as boardSvgDocument, r as decideShownKind, s as leavesVisibleRawTextOpen, t as SHOWN_PAGE_ZOOM_BRIDGE, u as thumbnailFilenameOf, v as planSteps$1, y as unitsOf } from "./shown-files-core-
|
|
16
|
+
import { _ as findDependencyCycle, a as filesAfterRetention, c as readPageTitle, d as thumbnailOwnerIdOf, f as thumbnailRecipeFor, g as cappedWarnings, h as layoutBoard, i as describeOverCap, l as shownMimeForFilename, m as escapeMarkup, n as SHOWN_SNIFF_BYTES, o as isShownPageMime, p as boardSvgDocument, r as decideShownKind, s as leavesVisibleRawTextOpen, t as SHOWN_PAGE_ZOOM_BRIDGE, u as thumbnailFilenameOf, v as planSteps$1, y as unitsOf } from "./shown-files-core-CfDLqQo9.js";
|
|
17
17
|
import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-DDpOIcFv.js";
|
|
18
18
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
19
19
|
import { C as parseCgroupBytes, D as DEFAULT_MAX_MS, E as DEFAULT_BASE_MS, O as nextBackoffMs, 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-AKRVPqG1.js";
|
|
20
|
-
import { $ as buildAiGenerationEvents, Ct as isSameDirectoryPath, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as adapterBucket, St as comparableDirectoryPath, U as DEEP_HISTORY_SCROLLBACK_LINES, X as TELEMETRY_BATCH_URL, Y as FIRST_RUN_NOTICE, Z as TELEMETRY_FLAGS_URL, _ as sessionIdFromBranch, a as generateProjectId, at as codexUserIdOf, b as DEFAULT_TIMER_FNS, ct as decideTelemetryConsent, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildBrowserExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as TelemetryState, h as planBranchGc, ht as TELEMETRY_EVENT_SCHEMAS, i as ensureProjectIds, it as claudeAccountUuidOf, k as SETTINGS_INDEX, lt as exceptionFingerprint, m as matchedPrefix, mt as PendingCrashReport, n as createConfigStore, nt as buildPersonProperties, o as glimmervoidHomeDir$1, ot as decideIsDevInstall, p as isGcCandidateWorktree, pt as DashboardTelemetryReport, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as classifySessionExit, st as decideRemoteTelemetryState, tt as buildExceptionProperties, ut as nodeMajorVersion, v as usablePrefixes, x as unrefTimer, xt as canonicalizePath, y as worktreeIntegrationTips, yt as stableConfigKey, z as valueAtPath } from "./config-store-
|
|
21
|
-
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-
|
|
22
|
-
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine$1, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-
|
|
20
|
+
import { $ as buildAiGenerationEvents, Ct as isSameDirectoryPath, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as adapterBucket, St as comparableDirectoryPath, U as DEEP_HISTORY_SCROLLBACK_LINES, X as TELEMETRY_BATCH_URL, Y as FIRST_RUN_NOTICE, Z as TELEMETRY_FLAGS_URL, _ as sessionIdFromBranch, a as generateProjectId, at as codexUserIdOf, b as DEFAULT_TIMER_FNS, ct as decideTelemetryConsent, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildBrowserExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as TelemetryState, h as planBranchGc, ht as TELEMETRY_EVENT_SCHEMAS, i as ensureProjectIds, it as claudeAccountUuidOf, k as SETTINGS_INDEX, lt as exceptionFingerprint, m as matchedPrefix, mt as PendingCrashReport, n as createConfigStore, nt as buildPersonProperties, o as glimmervoidHomeDir$1, ot as decideIsDevInstall, p as isGcCandidateWorktree, pt as DashboardTelemetryReport, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as classifySessionExit, st as decideRemoteTelemetryState, tt as buildExceptionProperties, ut as nodeMajorVersion, v as usablePrefixes, x as unrefTimer, xt as canonicalizePath, y as worktreeIntegrationTips, yt as stableConfigKey, z as valueAtPath } from "./config-store-Dl4nSG10.js";
|
|
21
|
+
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-BcXGiuND.js";
|
|
22
|
+
import { $ as grokHomes, A as decideUploadType, At as generateToken, B as containmentRefusalReason, Bt as readStoredHooks, C as parseRegistryLatest, Ct as shouldReplace, D as openContainedFile, Dt as HOOK_EVENTS, E as shortSha$1, Et as claudeCode, F as planUploadRetention, Ft as agentHookGroupOf, G as codexFallbackRoots, Gt as sweepOrphanedHostScratch, H as planContiguousRead, Ht as upsertHook, I as MAX_TRANSCRIPT_READ_BYTES, It as appendUserHooks, J as codexSessionIdFromPath, Jt as recordSweptPath, K as codexHomes, Kt as appendRemovalRecord, L as TRACE_TAIL_SCAN_BYTES, Lt as hooksForProject, M as framePathPaste, Mt as writeSessionSettings, N as imageMimeForUploadFilename, Nt as HOOK_EVENT_CATALOG, O as MAX_UPLOAD_BYTES, Ot as PLAN_HOLD_RELEASE_MS, P as isSafePathSegment, Pt as ID_RE, Q as expandTilde, R as committedOffsetFromTraceTailOrNull, Rt as normalizeHook, S as parseRegistryDeprecation, St as parseUsageLine, T as pickNewestPublished, Tt as vendorUsageEntry, U as resumeOffsetFrom, Ut as HOOK_TOOLS, V as isOversizedPartialLine, Vt as removeHook, W as withCommittedOffset, Wt as makeHostScratchDirectory, X as decideFileRead, Y as continuationDelayMs, Yt as removalsJournalPath, Z as dedupeCodexFiles, _ as decideInstallFlavor, _t as foldReplacementIntoGenerationRollup, a as describeAgentResolvability, at as scopedClaudeRoots, b as normalizeSha, bt as mergeGenerationRollups, c as isKnownAgentId, ct as shouldPersistWarehouse, d as resolveAdapter, dt as parseKimiUsageLine, et as isUsageFile, f as setCustomAgents, ft as addEntryToTotals, g as NODE_PTY_INSTALL_SCRIPT_FLAG, gt as foldEntryIntoGenerationRollup, h as requestCodexAppServer, ht as expandAdvisorIterations, i as customAgentFingerprint, it as resolveProjectsDirs, j as exceedsUploadCap, jt as sweepOrphans, k as buildUploadFilename, kt as buildHookSettings, l as listAgentIds, lt as splitLines, m as readHostCodexVersion, mt as emptyTotals, n as cachedAgentResolvability, nt as passOutcome, o as getAdapter, ot as sessionsRootCandidates, p as codex, pt as dedupKeys, q as codexRootCandidates, qt as appendRemovalRecordSync, r as commandFor, rt as projectDirCandidates, s as hookProfileOf, st as shouldEvaluateDespiteIoFailures, t as DEFAULT_AGENT_ID$1, tt as kimiHomes, u as resetCommandCache, ut as kimiDedupIdentity, v as decideUpdateStatus, vt as identityFromRelPath, w as parseResolvedSha, wt as totalTokensOf$1, x as normalizeUpdateChannel, xt as parseJsonLine$1, y as isCheckFresh, yt as isWithinGenerationRecencyWindow, z as completeLineBytes, zt as rawStoredHooks } from "./adapters-FEi1xOts.js";
|
|
23
23
|
import { c as CODEX_HOME_PROFILE, l as KIMI_HOME_PROFILE } from "./agent-home-core-CbCN4fxx.js";
|
|
24
24
|
import { d as releaseSessionLock, f as sessionIdOfLockFile, l as releaseUnheldAgentHomeSecrets, n as generatedAgentHomePath, p as trashSessionTempFolderOnceUnheld, s as realAgentHome, u as createHeldSessionTempFolder } from "./agent-home-UaqVWfqV.js";
|
|
25
|
-
import { B as threadCandidates, D as mergeItems, E as itemLocation, F as
|
|
25
|
+
import { B as threadCandidates, D as mergeItems, E as itemLocation, F as savedRuleFor, G as withOnlyOpenPrs, H as visibleRun, I as scopedToRepo, J as withRuleRun, K as withPrActionRun, L as shouldTellBranchMoved, N as prFlowRules, O as packPathsOf, P as prFlowSetup, R as sourceCandidates$1, S as commandFingerprint, T as flaggingReviewers, U as withHandled, V as unknownActionWarnings, W as withInterruptedRuns, Y as decideHostAllowed, _ as packFileHeaders, b as acceptReport, c as packDirsUnder, d as readPackDir, f as PACK_FILE_NAME, g as approvedPackThemes, h as approvedPackPanels, j as prActionRunAfterExit, k as plannedActions, l as packsStatePath, n as readPacksForAgent, p as PacksState, q as withReopened, s as PACKS_DIR_NAME, v as packRow, w as fixLocallyPrompt, x as branchMovedNote, y as pendingPackNote, z as teammateThreadItems } from "./pack-agent-DmA2Vt3T.js";
|
|
26
26
|
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, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-BbhBpAhR.js";
|
|
27
|
-
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-
|
|
28
|
-
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-
|
|
29
|
-
import { t as createPrFlowsExternal } from "./pr-flows-external-
|
|
27
|
+
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-DTMfaggb.js";
|
|
28
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-CbuMpDHd.js";
|
|
29
|
+
import { t as createPrFlowsExternal } from "./pr-flows-external-nV8Twsr3.js";
|
|
30
30
|
import { createRequire } from "node:module";
|
|
31
31
|
import fs, { readFileSync } from "node:fs";
|
|
32
32
|
import path, { join, resolve } from "node:path";
|
|
@@ -15903,8 +15903,13 @@ function finishCompaction(tracking, state) {
|
|
|
15903
15903
|
shouldResetDetectionSources
|
|
15904
15904
|
};
|
|
15905
15905
|
}
|
|
15906
|
-
function
|
|
15907
|
-
return tracking.
|
|
15906
|
+
function isIdleTitleActivity(tracking) {
|
|
15907
|
+
return !tracking.hasPromptInFlight && tracking.idleTitleState !== null;
|
|
15908
|
+
}
|
|
15909
|
+
function isCompactionEndingSignal(tracking, signal, source, hooksReportPrompts) {
|
|
15910
|
+
if (signal !== "ready" || source === "hook") return false;
|
|
15911
|
+
if (tracking.isCompacting) return true;
|
|
15912
|
+
return hooksReportPrompts && isIdleTitleActivity(tracking);
|
|
15908
15913
|
}
|
|
15909
15914
|
function suppressCompactionSignal(tracking, signal) {
|
|
15910
15915
|
return tracking.isCompacting && signal === "working" && tracking.returnState !== null;
|
|
@@ -15914,7 +15919,7 @@ function mapCompactionActivityEvent(tracking, signal, event) {
|
|
|
15914
15919
|
return "new_output";
|
|
15915
15920
|
}
|
|
15916
15921
|
function isIdleCompactionActivity(tracking, signal, source) {
|
|
15917
|
-
return signal === "working" && source === "title" &&
|
|
15922
|
+
return signal === "working" && source === "title" && isIdleTitleActivity(tracking);
|
|
15918
15923
|
}
|
|
15919
15924
|
//#endregion
|
|
15920
15925
|
//#region session/core/terminal-color-query.ts
|
|
@@ -17439,6 +17444,10 @@ var TERMINAL_QUERY_REPLY_PATTERN = /\x1b\[[?>]?[\d;]*(?:\$y|[cRnt])|\x1b\][^\x07
|
|
|
17439
17444
|
function isOperatorKeystroke(input) {
|
|
17440
17445
|
return input.replace(TERMINAL_REPORT_PATTERN, "").replace(TERMINAL_QUERY_REPLY_PATTERN, "") !== "";
|
|
17441
17446
|
}
|
|
17447
|
+
var NON_SUBMITTING_CARRIAGE_RETURN_PATTERN = /\x1b\[200~[\s\S]*?\x1b\[201~|\x1b\r/g;
|
|
17448
|
+
function isPromptSubmit(input) {
|
|
17449
|
+
return isOperatorKeystroke(input) && input.replace(NON_SUBMITTING_CARRIAGE_RETURN_PATTERN, "").includes("\r");
|
|
17450
|
+
}
|
|
17442
17451
|
var LONE_ESCAPE = "\x1B";
|
|
17443
17452
|
var OPTION_DIGIT_SHORTCUT_PATTERN = /^[1-9]$/;
|
|
17444
17453
|
function isPromptClosingKeystroke(input, isQuestionPrompt) {
|
|
@@ -22122,6 +22131,7 @@ var Session = class extends EventEmitter {
|
|
|
22122
22131
|
_pendingPromptToolName;
|
|
22123
22132
|
_pendingAttentionNotes;
|
|
22124
22133
|
_titleQuiet;
|
|
22134
|
+
_hooksReportPrompts;
|
|
22125
22135
|
_spawnCommand;
|
|
22126
22136
|
_initialPrompt;
|
|
22127
22137
|
_pendingPromptSupervisionLine;
|
|
@@ -22249,6 +22259,7 @@ var Session = class extends EventEmitter {
|
|
|
22249
22259
|
this._pendingPromptToolName = null;
|
|
22250
22260
|
this._pendingAttentionNotes = [];
|
|
22251
22261
|
this._titleQuiet = false;
|
|
22262
|
+
this._hooksReportPrompts = false;
|
|
22252
22263
|
this.backgroundTracking = createSessionBackgroundTracking({
|
|
22253
22264
|
detectBackgroundAgents: detectBackgroundAgents && this._can("backgroundAgents"),
|
|
22254
22265
|
agentTtlMs,
|
|
@@ -22414,7 +22425,7 @@ var Session = class extends EventEmitter {
|
|
|
22414
22425
|
this._titleSource.on("title", (title) => {
|
|
22415
22426
|
const taskTitleVocabulary = this._adapter.titleProfile.taskTitle;
|
|
22416
22427
|
if (taskTitleVocabulary.readsTranscriptTitle) return;
|
|
22417
|
-
const oscTitle = extractOscTaskTitle(title,
|
|
22428
|
+
const oscTitle = extractOscTaskTitle(title, this._titleProjectName(), taskTitleVocabulary);
|
|
22418
22429
|
if (!oscTitle) return;
|
|
22419
22430
|
this._taskTitleSources.oscTitle = oscTitle;
|
|
22420
22431
|
this._updateTaskTitle();
|
|
@@ -22776,7 +22787,7 @@ var Session = class extends EventEmitter {
|
|
|
22776
22787
|
ts: s.ts
|
|
22777
22788
|
};
|
|
22778
22789
|
this._observeCompaction(s.signal, s.source);
|
|
22779
|
-
if (isCompactionEndingSignal(this._compaction, s.signal, s.source)) {
|
|
22790
|
+
if (isCompactionEndingSignal(this._compaction, s.signal, s.source, this._hooksReportPrompts)) {
|
|
22780
22791
|
this._finishCompaction();
|
|
22781
22792
|
return;
|
|
22782
22793
|
}
|
|
@@ -23297,9 +23308,10 @@ var Session = class extends EventEmitter {
|
|
|
23297
23308
|
env: {}
|
|
23298
23309
|
};
|
|
23299
23310
|
const settingsArgs = [...hookInjection.args, ...mcpLaunch.args];
|
|
23300
|
-
this.
|
|
23311
|
+
this._hooksReportPrompts = this._hooks.hasInjection() && !isRemoteCodex;
|
|
23312
|
+
this._titleQuiet = this._adapter.titleProfile.quietUntilFirstPrompt === true && this._hooksReportPrompts;
|
|
23301
23313
|
this._armTitleQuietFallback();
|
|
23302
|
-
this.
|
|
23314
|
+
this._applyTitleContext();
|
|
23303
23315
|
const injectedEnv = {
|
|
23304
23316
|
...hookInjection.env,
|
|
23305
23317
|
...this._launch.agentApiEnv(),
|
|
@@ -23496,6 +23508,13 @@ var Session = class extends EventEmitter {
|
|
|
23496
23508
|
console.warn(`[session ${this.id}] pty socket error: ${message} - killing the session`);
|
|
23497
23509
|
this.kill();
|
|
23498
23510
|
}
|
|
23511
|
+
_titleProjectName() {
|
|
23512
|
+
const cwdBasename = path.basename(this.effectiveCwd());
|
|
23513
|
+
return this._adapter.titleProfile.projectTitleOf?.(cwdBasename) ?? cwdBasename;
|
|
23514
|
+
}
|
|
23515
|
+
_applyTitleContext() {
|
|
23516
|
+
this._titleSource.setContext({ cwdBasename: this._titleProjectName() });
|
|
23517
|
+
}
|
|
23499
23518
|
_armTitleQuietFallback() {
|
|
23500
23519
|
this._clearTimer("_titleQuietFallbackTimer");
|
|
23501
23520
|
if (!this._titleQuiet) return;
|
|
@@ -23598,7 +23617,11 @@ var Session = class extends EventEmitter {
|
|
|
23598
23617
|
}
|
|
23599
23618
|
write(text) {
|
|
23600
23619
|
if (this._recorder) this._recorder.writeInput(text);
|
|
23601
|
-
if (this.ptyProcess
|
|
23620
|
+
if (!this.ptyProcess || !this._ptyAlive) return;
|
|
23621
|
+
this.ptyProcess.write(text);
|
|
23622
|
+
if (!isPromptSubmit(text)) return;
|
|
23623
|
+
this._observeCompaction("resume");
|
|
23624
|
+
this._titleQuiet = false;
|
|
23602
23625
|
}
|
|
23603
23626
|
noteOperatorDraft() {
|
|
23604
23627
|
this.emit("operator-input");
|
|
@@ -40291,7 +40314,7 @@ function createPrFlowsWiring({ statePath, openPrs, linkedSession, readConfigFile
|
|
|
40291
40314
|
const prActionsByPr = {};
|
|
40292
40315
|
const prActionRunsByPr = {};
|
|
40293
40316
|
for (const pr of openPrs()) {
|
|
40294
|
-
const prActionChoices =
|
|
40317
|
+
const prActionChoices = scopedToRepo(approvedPrActions, pr.repo).map(({ id, label }) => ({
|
|
40295
40318
|
id,
|
|
40296
40319
|
label
|
|
40297
40320
|
}));
|
|
@@ -40471,7 +40494,7 @@ function createPrFlowsWiring({ statePath, openPrs, linkedSession, readConfigFile
|
|
|
40471
40494
|
ok: false,
|
|
40472
40495
|
error: "The pull request has a new head since this view loaded; check it and click again."
|
|
40473
40496
|
};
|
|
40474
|
-
const action =
|
|
40497
|
+
const action = scopedToRepo(setup.commands.prActions, pr.repo).find((candidate) => candidate.id === request.actionId && setup.approved.has(commandFingerprint("pr-action", candidate)));
|
|
40475
40498
|
if (!action) return {
|
|
40476
40499
|
ok: false,
|
|
40477
40500
|
error: "That action is not in prFlows.prActions for this repository, or it waits for your approval in My PRs."
|
|
@@ -40585,7 +40608,7 @@ function createPrFlowsWiring({ statePath, openPrs, linkedSession, readConfigFile
|
|
|
40585
40608
|
ok: false,
|
|
40586
40609
|
error: "That review item is no longer open on this pull request."
|
|
40587
40610
|
};
|
|
40588
|
-
const rule = PrFlowRule.safeParse(savedRuleFor(found.item, request.reason));
|
|
40611
|
+
const rule = PrFlowRule.safeParse(savedRuleFor(found.item, found.pr.repo, request.reason));
|
|
40589
40612
|
if (!rule.success) return {
|
|
40590
40613
|
ok: false,
|
|
40591
40614
|
error: `Could not build a rule for this item: ${rule.error.issues[0]?.message ?? "invalid rule"}`
|
|
@@ -40683,12 +40706,14 @@ function createPrFlowsWiring({ statePath, openPrs, linkedSession, readConfigFile
|
|
|
40683
40706
|
label
|
|
40684
40707
|
}));
|
|
40685
40708
|
const runnableActionIds = new Set(runnableActions.map((action) => action.id));
|
|
40709
|
+
const { rules: personalRules, warnings: ruleWarnings } = prFlowRules(configFile);
|
|
40710
|
+
const allRules = [...personalRules, ...setup.packRules];
|
|
40711
|
+
for (const warning of ruleWarnings) nextWarnings.add(warning);
|
|
40686
40712
|
for (const pr of prs) {
|
|
40687
|
-
startDueSources(pr, commands.sources, approved);
|
|
40713
|
+
startDueSources(pr, scopedToRepo(commands.sources, pr.repo), approved);
|
|
40688
40714
|
tellBranchMoved(pr);
|
|
40689
|
-
const
|
|
40690
|
-
const
|
|
40691
|
-
for (const warning of [...ruleWarnings, ...unknownActionWarnings(rules, new Set(commands.actions.map((action) => action.id)))]) nextWarnings.add(warning);
|
|
40715
|
+
const rules = scopedToRepo(allRules, pr.repo);
|
|
40716
|
+
for (const warning of unknownActionWarnings(rules, new Set(commands.actions.map((action) => action.id)))) nextWarnings.add(warning);
|
|
40692
40717
|
for (const planned of plannedActions(pr.key, reviewItemsFor(pr), rules, state, runnableActionIds)) {
|
|
40693
40718
|
if (planned.action.startsWith("run:") && hasActionRunAtHead(pr, planned.item.key, planned.action)) continue;
|
|
40694
40719
|
const outcome = await disposeGuarded({
|