glimmervoid 0.52.2-next.706 → 0.52.2-next.708
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-w5GOkhlK.js → adapters-BX-ML3PF.js} +1 -1
- package/dist/chunks/{adapters-FEi1xOts.js → adapters-Bk606HYU.js} +7 -6
- package/dist/chunks/agent-api-cli-CN904-o8.js +1 -0
- package/dist/chunks/{agent-api-cli-BLyR79E3.js → agent-api-cli-D5i6Aaxk.js} +3 -3
- package/dist/chunks/{agent-api-core-Cnkg8Qam.js → agent-api-core-Bxc1V6IS.js} +10 -5
- package/dist/chunks/{agent-setup-cli-DAEX4Z0H.js → agent-setup-cli-CNfGVi5N.js} +1 -1
- package/dist/chunks/{config-DiPt3I6q.js → config-BmJ9RqVi.js} +2 -2
- package/dist/chunks/{config-store-Dl4nSG10.js → config-store-6XipBvYu.js} +2 -2
- package/dist/chunks/config-store-VDlYwv_U.js +1 -0
- package/dist/chunks/{grok-DWvNECgc.js → grok-BXZnhs-i.js} +1 -1
- package/dist/chunks/kimi-DRku5Zt9.js +1 -0
- package/dist/chunks/{kimi-BcXGiuND.js → kimi-DU7pXLJd.js} +2 -2
- package/dist/chunks/{main-BV_28mSY.js → main-fJ2P1CXK.js} +64 -18
- package/dist/chunks/{pack-agent-DmA2Vt3T.js → pack-agent-kPL1_C11.js} +92 -46
- package/dist/chunks/{pack-bridge-CBJNhZ1u.js → pack-bridge-DT97V0M_.js} +2 -2
- package/dist/chunks/packs-cli-BGjPjwjC.js +1 -0
- package/dist/chunks/{packs-cli-DC4Rgn1_.js → packs-cli-wE9e0PRp.js} +38 -21
- package/dist/chunks/{pair-cli-BEwh_FPN.js → pair-cli-2uiU5BkX.js} +2 -2
- package/dist/chunks/{pr-flows-cli-BzxqbfoY.js → pr-flows-cli-CC5XrR6y.js} +6 -6
- package/dist/chunks/{pr-flows-external-nV8Twsr3.js → pr-flows-external-DoqZWZkV.js} +3 -3
- package/dist/chunks/{remote-config-DTMfaggb.js → remote-config-F5lysUVX.js} +1 -1
- package/dist/chunks/{session-HrWPtZq1.js → session-Ctzyy3sF.js} +40 -3
- package/dist/chunks/{settings-cli-Cd2kd5Wg.js → settings-cli-DDupUmFE.js} +5 -5
- package/dist/chunks/{settings-readout-core-CbuMpDHd.js → settings-readout-core-Dx_X8p0M.js} +2 -2
- package/dist/chunks/{shown-files-core-CfDLqQo9.js → shown-files-core-AKNIXRfL.js} +1 -1
- package/dist/chunks/{spawn-env-BEzcqK8w.js → spawn-env-D9Gtgndb.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-EAue_bXT.js → ssh-sign-cli-DSCqRc-5.js} +2 -2
- package/dist/client/assets/{action-status-BQU6d-0z.js → action-status-rxc5WGWV.js} +1 -1
- package/dist/client/assets/action-status-rxc5WGWV.js.br +0 -0
- package/dist/client/assets/{arena-panel-AjJoLggu.js → arena-panel-CgwxuLWb.js} +2 -2
- package/dist/client/assets/arena-panel-CgwxuLWb.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-CW7jbdMX.js → benchmark-panel-BIcVedub.js} +1 -1
- package/dist/client/assets/benchmark-panel-BIcVedub.js.br +0 -0
- package/dist/client/assets/{boards-view-DT8i2XJk.js → boards-view-C1u-KlqJ.js} +1 -1
- package/dist/client/assets/boards-view-C1u-KlqJ.js.br +0 -0
- package/dist/client/assets/button-D4yLJK3N.js +1 -0
- package/dist/client/assets/button-D4yLJK3N.js.br +0 -0
- package/dist/client/assets/{card-actions-DZRZp3KM.js → card-actions-DOYXIR7t.js} +1 -1
- package/dist/client/assets/{card-registry-D77jxFPD.js → card-registry-DY8mP3KR.js} +1 -1
- package/dist/client/assets/card-registry-DY8mP3KR.js.br +0 -0
- package/dist/client/assets/{community-panel-DtyJrApz.js → community-panel-CRvvVI2B.js} +1 -1
- package/dist/client/assets/community-panel-CRvvVI2B.js.br +0 -0
- package/dist/client/assets/{control-ws-BzcRTVte.js → control-ws-CtahMJLs.js} +1 -1
- package/dist/client/assets/control-ws-CtahMJLs.js.br +0 -0
- package/dist/client/assets/{dialogs-L__wqQUK.js → dialogs-QpWe8tYR.js} +1 -1
- package/dist/client/assets/dialogs-QpWe8tYR.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-Ct-3PA3w.js → doc-editor-ui-CWYq9l3O.js} +1 -1
- package/dist/client/assets/doc-editor-ui-CWYq9l3O.js.br +0 -0
- package/dist/client/assets/{feature-hint-DO_DvoKz.js → feature-hint-CPruSUQQ.js} +1 -1
- package/dist/client/assets/feature-hint-CPruSUQQ.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-B8upa8oo.js → first-run-checklist-CrmMbDto.js} +1 -1
- package/dist/client/assets/first-run-checklist-CrmMbDto.js.br +0 -0
- package/dist/client/assets/{hooks-panel-DXlObkii.js → hooks-panel-CRi-pBko.js} +1 -1
- package/dist/client/assets/hooks-panel-CRi-pBko.js.br +0 -0
- package/dist/client/assets/{index-BxFSLYlN.js → index-DF_ZqCN9.js} +5 -5
- package/dist/client/assets/index-DF_ZqCN9.js.br +0 -0
- package/dist/client/assets/{issues-panel-D2cJ3cqU.js → issues-panel-aNzgk8Qi.js} +1 -1
- package/dist/client/assets/issues-panel-aNzgk8Qi.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-F5zq469Q.js → lane-read-token-step-Dx0p5ncV.js} +1 -1
- package/dist/client/assets/lane-read-token-step-Dx0p5ncV.js.br +0 -0
- package/dist/client/assets/{menu-BL0J9l3S.js → menu-CHluFLPe.js} +1 -1
- package/dist/client/assets/menu-CHluFLPe.js.br +0 -0
- package/dist/client/assets/{modal-CnO3B835.js → modal-C1JTHud7.js} +1 -1
- package/dist/client/assets/modal-C1JTHud7.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CVGpeiwd.js → my-prs-panel-CnrlE63z.js} +1 -1
- package/dist/client/assets/my-prs-panel-CnrlE63z.js.br +0 -0
- package/dist/client/assets/{nyan-cat-DQRca_5t.js → nyan-cat-mPnve7BB.js} +1 -1
- package/dist/client/assets/nyan-cat-mPnve7BB.js.br +0 -0
- package/dist/client/assets/{phone-shell-LTYn4b4i.js → phone-shell-CTFOZGGW.js} +1 -1
- package/dist/client/assets/phone-shell-CTFOZGGW.js.br +0 -0
- package/dist/client/assets/{plan-face-TtPyLtNT.js → plan-face-CF_QCsCU.js} +1 -1
- package/dist/client/assets/plan-face-CF_QCsCU.js.br +0 -0
- package/dist/client/assets/{plan-render-Caz0lc1C.js → plan-render-0rzZFxUD.js} +1 -1
- package/dist/client/assets/plan-render-0rzZFxUD.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-DL1gIz6A.js → pr-queue-columns-BsZuoV92.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BsZuoV92.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-BL8wzUBO.js → pr-status-icon-CZbk4RGh.js} +1 -1
- package/dist/client/assets/pr-status-icon-CZbk4RGh.js.br +0 -0
- package/dist/client/assets/{radar-panel-D91HsOd5.js → radar-panel-_JSo56D3.js} +1 -1
- package/dist/client/assets/radar-panel-_JSo56D3.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-CkSWCkOO.js → repo-roots-adder-M_SovKoK.js} +1 -1
- package/dist/client/assets/repo-roots-adder-M_SovKoK.js.br +0 -0
- package/dist/client/assets/{resume-dialog-W-Vtr8To.js → resume-dialog-D6diNkLk.js} +1 -1
- package/dist/client/assets/resume-dialog-D6diNkLk.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-B7IW6EHG.js → review-queue-panel-BImDcTcl.js} +1 -1
- package/dist/client/assets/review-queue-panel-BImDcTcl.js.br +0 -0
- package/dist/client/assets/{session-actions-CPzKt0MK.js → session-actions-DZTeFJNl.js} +2 -2
- package/dist/client/assets/session-actions-DZTeFJNl.js.br +0 -0
- package/dist/client/assets/{session-row-ly74TkCe.js → session-row-DQP4Da-K.js} +1 -1
- package/dist/client/assets/session-row-DQP4Da-K.js.br +0 -0
- package/dist/client/assets/{session-tick-CbiHcZQf.js → session-tick-BqAW_8XQ.js} +1 -1
- package/dist/client/assets/session-tick-BqAW_8XQ.js.br +0 -0
- package/dist/client/assets/{settings-panel-CXvPbm4F.js → settings-panel-BYqmKxyz.js} +2 -2
- package/dist/client/assets/settings-panel-BYqmKxyz.js.br +0 -0
- package/dist/client/assets/{setup-step-D6yDe11H.js → setup-step-ChXUUNTF.js} +1 -1
- package/dist/client/assets/setup-step-ChXUUNTF.js.br +0 -0
- package/dist/client/assets/{shown-face-DULqlLhV.js → shown-face-BmNrB5U7.js} +1 -1
- package/dist/client/assets/shown-face-BmNrB5U7.js.br +0 -0
- package/dist/client/assets/{trace-panel-DBnYJgFw.js → trace-panel-CvQlfT_x.js} +1 -1
- package/dist/client/assets/trace-panel-CvQlfT_x.js.br +0 -0
- package/dist/client/assets/{usage-panel-Cip2a7Fe.js → usage-panel-ChL8RmsD.js} +1 -1
- package/dist/client/assets/usage-panel-ChL8RmsD.js.br +0 -0
- package/dist/client/assets/{your-day-tip-CrJzhb9V.js → your-day-tip-BeTm3C4g.js} +1 -1
- package/dist/client/assets/your-day-tip-BeTm3C4g.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 +6 -3
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-DVs4BeP_.js +0 -1
- package/dist/chunks/config-store-C9ynPe9J.js +0 -1
- package/dist/chunks/kimi-C74ElgUz.js +0 -1
- package/dist/chunks/packs-cli-p3uDBJco.js +0 -1
- package/dist/client/assets/action-status-BQU6d-0z.js.br +0 -0
- package/dist/client/assets/arena-panel-AjJoLggu.js.br +0 -0
- package/dist/client/assets/benchmark-panel-CW7jbdMX.js.br +0 -0
- package/dist/client/assets/boards-view-DT8i2XJk.js.br +0 -0
- package/dist/client/assets/button-B30QfKTN.js +0 -1
- package/dist/client/assets/button-B30QfKTN.js.br +0 -0
- package/dist/client/assets/card-registry-D77jxFPD.js.br +0 -0
- package/dist/client/assets/community-panel-DtyJrApz.js.br +0 -0
- package/dist/client/assets/control-ws-BzcRTVte.js.br +0 -0
- package/dist/client/assets/dialogs-L__wqQUK.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-Ct-3PA3w.js.br +0 -0
- package/dist/client/assets/feature-hint-DO_DvoKz.js.br +0 -0
- package/dist/client/assets/first-run-checklist-B8upa8oo.js.br +0 -0
- package/dist/client/assets/hooks-panel-DXlObkii.js.br +0 -0
- package/dist/client/assets/index-BxFSLYlN.js.br +0 -0
- package/dist/client/assets/issues-panel-D2cJ3cqU.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-F5zq469Q.js.br +0 -0
- package/dist/client/assets/menu-BL0J9l3S.js.br +0 -0
- package/dist/client/assets/modal-CnO3B835.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CVGpeiwd.js.br +0 -0
- package/dist/client/assets/nyan-cat-DQRca_5t.js.br +0 -0
- package/dist/client/assets/phone-shell-LTYn4b4i.js.br +0 -0
- package/dist/client/assets/plan-face-TtPyLtNT.js.br +0 -0
- package/dist/client/assets/plan-render-Caz0lc1C.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DL1gIz6A.js.br +0 -3
- package/dist/client/assets/pr-status-icon-BL8wzUBO.js.br +0 -0
- package/dist/client/assets/radar-panel-D91HsOd5.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-CkSWCkOO.js.br +0 -0
- package/dist/client/assets/resume-dialog-W-Vtr8To.js.br +0 -0
- package/dist/client/assets/review-queue-panel-B7IW6EHG.js.br +0 -0
- package/dist/client/assets/session-actions-CPzKt0MK.js.br +0 -0
- package/dist/client/assets/session-row-ly74TkCe.js.br +0 -0
- package/dist/client/assets/session-tick-CbiHcZQf.js.br +0 -0
- package/dist/client/assets/settings-panel-CXvPbm4F.js.br +0 -0
- package/dist/client/assets/setup-step-D6yDe11H.js.br +0 -2
- package/dist/client/assets/shown-face-DULqlLhV.js.br +0 -0
- package/dist/client/assets/trace-panel-DBnYJgFw.js.br +0 -0
- package/dist/client/assets/usage-panel-Cip2a7Fe.js.br +0 -0
- package/dist/client/assets/your-day-tip-CrJzhb9V.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-Ctzyy3sF.js";
|
|
7
7
|
import { a as execSync } from "../chunks/child-process-safe-BIh8yQ0I.js";
|
|
8
|
-
import {
|
|
8
|
+
import { it as parseCommand, nt as OWNED_COMMAND_SPECS, r as agentCommandHelpLines, rt as isOwnedCommandName } from "../chunks/agent-api-core-Bxc1V6IS.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-2uiU5BkX.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-CNfGVi5N.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-DDupUmFE.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-CC5XrR6y.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-BGjPjwjC.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-CC5XrR6y.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-DSCqRc-5.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-CN904-o8.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-CN904-o8.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-VDlYwv_U.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-BX-ML3PF.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-CNfGVi5N.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-DRku5Zt9.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-CNfGVi5N.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 +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-Bk606HYU.js";
|
|
@@ -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 {
|
|
3
|
+
import { Bn as shortSha$1, C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Rn as FULL_SHA_RE, S as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME } from "./session-Ctzyy3sF.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-BmJ9RqVi.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-D9Gtgndb.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-BXZnhs-i.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-6XipBvYu.js";
|
|
14
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-DU7pXLJd.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";
|
|
@@ -927,6 +927,7 @@ function mapHookToSignal$1(event, payload) {
|
|
|
927
927
|
if (tool === "CronCreate") return "cron-created";
|
|
928
928
|
if (tool === "CronDelete") return "cron-deleted";
|
|
929
929
|
if (tool === "AskUserQuestion") return "working";
|
|
930
|
+
if (isRecord(payload?.tool_response) && typeof payload.tool_response.backgroundTaskId === "string") return "background-task-launched";
|
|
930
931
|
return null;
|
|
931
932
|
}
|
|
932
933
|
case "notification": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-D5i6Aaxk.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 {
|
|
1
|
+
import { at as WhiteboardAgentReply, r as AGENT_URL_ENV, tt as UNIT_STATUSES, u as AgentLimitsReply } from "./session-Ctzyy3sF.js";
|
|
2
|
+
import { Y as formatSessionLimits, i as agentCommandSpec, it as parseCommand, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-Bxc1V6IS.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-AKNIXRfL.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import http from "node:http";
|
|
@@ -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-Ctzyy3sF.js";
|
|
2
|
+
import { Qt as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-BmJ9RqVi.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";
|
|
@@ -332,8 +332,8 @@ change it in the dashboard settings or through its environment variable.`,
|
|
|
332
332
|
options: [{
|
|
333
333
|
name: "schema",
|
|
334
334
|
type: "string",
|
|
335
|
-
valueName: "pack|bridge",
|
|
336
|
-
summary: "Print only the pack.json (pack)
|
|
335
|
+
valueName: "pack|bridge|pr-flows",
|
|
336
|
+
summary: "Print only the pack.json (pack), panel bridge (bridge) or prFlows command output (pr-flows) JSON Schema"
|
|
337
337
|
}]
|
|
338
338
|
},
|
|
339
339
|
{
|
|
@@ -1102,6 +1102,11 @@ function isSelfWakePrompt(prompt) {
|
|
|
1102
1102
|
if (typeof prompt !== "string") return false;
|
|
1103
1103
|
return prompt.replace(TASK_NOTIFICATION_ENVELOPE_PATTERN, " ").trim() === "" && prompt.trim() !== "";
|
|
1104
1104
|
}
|
|
1105
|
+
var NOTIFIED_TASK_ID_PATTERN = /<task-id>\s*([^<\s]+)\s*<\/task-id>/gi;
|
|
1106
|
+
function extractNotifiedTaskIds(prompt) {
|
|
1107
|
+
if (typeof prompt !== "string") return [];
|
|
1108
|
+
return (prompt.match(TASK_NOTIFICATION_ENVELOPE_PATTERN) ?? []).flatMap((envelope) => [...envelope.matchAll(NOTIFIED_TASK_ID_PATTERN)].map((match) => match[1]));
|
|
1109
|
+
}
|
|
1105
1110
|
function isSubstantivePrompt(prompt) {
|
|
1106
1111
|
if (typeof prompt !== "string") return false;
|
|
1107
1112
|
const cleanedPrompt = cleanTaskPrompt(prompt);
|
|
@@ -1860,4 +1865,4 @@ function agentCommandSpec(verb) {
|
|
|
1860
1865
|
};
|
|
1861
1866
|
}
|
|
1862
1867
|
//#endregion
|
|
1863
|
-
export {
|
|
1868
|
+
export { routeAgentNotes as $, isSubstantivePrompt as A, resolveResumeTarget as B, decideTaskTitleRefinement as C, extractOscTaskTitle as D, extractNotifiedTaskIds as E, seedTaskTitleSources as F, listRepoWorktreePaths as G, shouldAdoptReportedResumeId as H, AUTO_CONTINUE_PROMPT as I, describeSessionLimits as J, isAutoNameOf as K, RESUME_ID_RE as L, parseRefinedTaskTitle as M, resolveRefocusTaskTitle as N, extractPromptTaskTitle as O, resolveTaskTitle as P, promptHintFor as Q, isConversationReplacedAtStartup as R, cleanTaskPrompt as S, extractHookTaskTitle as T, claudeProjectsDir as U, resumePromptFor as V, listRepoConversations as W, hintFor as X, formatSessionLimits as Y, permitsHelpCommand as Z, projectReviewDetail as _, checkAgentReply as a, buildTaskTitleRefinementPrompt as b, deriveChildSessionName as c, describePushLanding as d, supervisionLine as et, describeRoleRefusal as f, projectMyPrs as g, parseAgentVerb as h, agentCommandSpec as i, parseCommand as it, parseRefinedSessionName as j, isSelfWakePrompt as k, describeChildEndNote as l, isAgentApiVerb as m, REFUSAL_REASON as n, OWNED_COMMAND_SPECS as nt, decideAgentRequest as o, describeUnpushedCloseRefusal as p, nextSuggestedName as q, agentCommandHelpLines as r, isOwnedCommandName as rt, decideSpawnAllowance as s, AGENT_COMMAND_HELP as t, toolHookFactsOf as tt, describeKeptChildAttention as u, projectReviews as v, extractAiTitle as w, chooseRefinedSessionName as x, buildPersistedTaskTitle as y, pickAutoResume as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-
|
|
2
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-BXZnhs-i.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,
|
|
2
|
-
import { i as ThemePalette, t as PackBridgeTopic } from "./pack-bridge-
|
|
1
|
+
import { $ as Op, An as PrFlowsStatus, At as SessionPrLinks, Ct as MyPrMergeWhenReadyResult, F as SessionDoc, Gn as GithubPollingRefreshRequest, H as TaskTitle, Ht as ReviewChecksState, I as SessionSnapshot, J as BoardReview, Jn as githubPollingShape, K as Board, Kn as GithubPollingRefreshResult, L as SessionState, Lt as GithubReviewDecision, Mt as repositoryName, Nt as CommitSha, On as PrFlowsSettings, R as ShownFile, Sn as PrFlowPendingApproval, St as MyPrMergeWhenReadyRequest, Tn as PrFlowSaveRuleRequest, U as UnseenOutcome, Un as REPO_SLUG_RE, Vn as GH_SEGMENT, Wn as repoParts, Xt as TeamReviewActionResult, Y as BoardSummary, Yt as TeamReviewActionRequest, _n as PrFlowDisposeRequest, bn as PrFlowItemRequest, bt as MyPrMergeResult, dt as MyPr, en as TeamReviewStatus, gt as MyPrKeepMergeableResult, hn as PrFlowApproveRequest, ht as MyPrKeepMergeableRequest, it as WHITEBOARD_LIMITS, jt as pullRequestKeyFormat, k as SESSION_DOC_PATH_MAX_CHARS, kt as MyPrsStatus, mn as PrActionRunRequest, on as hasRequiredActionHead, qn as GithubPrsFreshness, ut as LinkedPr, vn as PrFlowDisposeResult, w as CoherenceHooksState, wt as MyPrSearchNode, yt as MyPrMergeRequest } from "./session-Ctzyy3sF.js";
|
|
2
|
+
import { i as ThemePalette, t as PackBridgeTopic } from "./pack-bridge-DT97V0M_.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";
|
|
@@ -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 {
|
|
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 { Cn as PrFlowPrAction, D as SESSION_COMMANDS, En as PrFlowScopedCommand, In as prFlowRulesJsonSchema, gn as PrFlowCommand, wn as PrFlowRule } from "./session-Ctzyy3sF.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-BmJ9RqVi.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-6XipBvYu.js";
|
|
@@ -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-D9Gtgndb.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-DU7pXLJd.js";
|
|
@@ -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-Ctzyy3sF.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-D9Gtgndb.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";
|
|
@@ -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, $
|
|
5
|
+
import { $ as Op, $n as STATES, $t as TeamReviewStateEntry, A as SESSION_NAME_PATTERN, B as SshSignRequest, Bn as shortSha, Bt as PostingPlan, C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Dt as MyPrsSnapshot, Et as MyPrThreadsResponse, Fn as prActionReportPath, Ft as EarlierReview, Gt as ReviewFinding, H as TaskTitle, Hn as NODE_ID_RE, It as FindingSeverity, Jt as ReviewVerdict, K as Board, Kt as ReviewResult, M as SHOWN_FILE_CAP_BYTES, Mn as PrThreadUnresolveResponse, N as SIGN_URL_ENV, Nt as CommitSha$1, O as SESSION_DOC_BODY_CAP_BYTES, On as PrFlowsSettings, Ot as MyPrsState, P as SSH_SIGN_BODY_CAP_BYTES, Pt as DECIDING_REVIEW_STATES, Q as Note, Qn as RESTARTABLE_STATES, Qt as TeamReviewResolveResponse, R as ShownFile, Rt as GithubReviewState, S as CONVERSATION_PERMISSION_HOOK_EVENT, St as MyPrMergeWhenReadyRequest, T as ConversationQuestion, Tn as PrFlowSaveRuleRequest, Tt as MyPrThreadNode, Un as REPO_SLUG_RE, Ut as ReviewComment, Vn as GH_SEGMENT, Vt as PrDetail, W as BOARD_MEDIA_MAX_EDGE_PX, Wn as repoParts, Wt as ReviewDraft, X as Box, Xn as KILLABLE_STATES, Yn as BADGE_LABELS, Yt as TeamReviewActionRequest, Z as Frame, Zn as MERGEABLE_LIVE_STATES, Zt as TeamReviewCompareFiles, _ as AgentSettingsRequest, _n as PrFlowDisposeRequest, _t as MyPrLaneEntry, an as decisionAsIfApprovalRequired, b as COHERENCE_HOOKS_INACTIVE, bn as PrFlowItemRequest, 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, ft as MyPrAutoRebase, hn as PrFlowApproveRequest, ht as MyPrKeepMergeableRequest, i as ASK_USER_QUESTION_TOOL_NAME, in as canApproveAfterComment, it as WHITEBOARD_LIMITS, j as SESSION_NAME_RULE_TEXT, jn as PrThreadReplyResponse, kn as PrFlowsState, l as AgentEditRequest, ln as PR_ACTION_REPORT_ROUTE, lt as sparseBoardReply, mn as PrActionRunRequest, mt as MyPrCheckContextsResponse, nn as TeamReviewThreadResult, nt as Unit, o as AgentAttentionRequest, pn as PrActionReportBody, pt as MyPrCheckContext, q as BoardRecord, 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, vt as MyPrMergeMethod, wn as PrFlowRule, x as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, xt as MyPrMergeStateResponse, y as AgentWhyRequest, yt as MyPrMergeRequest, zn as HEX_SHA_RE, zt as PostedReviewEvent } from "./session-Ctzyy3sF.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
|
|
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-BmJ9RqVi.js";
|
|
8
|
+
import { $ as routeAgentNotes, A as isSubstantivePrompt, B as resolveResumeTarget, C as decideTaskTitleRefinement, D as extractOscTaskTitle, E as extractNotifiedTaskIds, F as seedTaskTitleSources, G as listRepoWorktreePaths, H as shouldAdoptReportedResumeId, I as AUTO_CONTINUE_PROMPT, J as describeSessionLimits, K as isAutoNameOf, L as RESUME_ID_RE, M as parseRefinedTaskTitle, N as resolveRefocusTaskTitle, O as extractPromptTaskTitle, P as resolveTaskTitle, Q as promptHintFor, R as isConversationReplacedAtStartup, S as cleanTaskPrompt, T as extractHookTaskTitle, U as claudeProjectsDir, V as resumePromptFor, W as listRepoConversations, X as hintFor, Z as permitsHelpCommand, _ as projectReviewDetail, a as checkAgentReply, b as buildTaskTitleRefinementPrompt, c as deriveChildSessionName, d as describePushLanding, et as supervisionLine, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, j as parseRefinedSessionName, k as isSelfWakePrompt, l as describeChildEndNote, n as REFUSAL_REASON, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as nextSuggestedName, s as decideSpawnAllowance, tt as toolHookFactsOf, u as describeKeptChildAttention, v as projectReviews, w as extractAiTitle, x as chooseRefinedSessionName, y as buildPersistedTaskTitle, z as pickAutoResume } from "./agent-api-core-Bxc1V6IS.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-AKNIXRfL.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-6XipBvYu.js";
|
|
21
|
+
import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-DU7pXLJd.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-Bk606HYU.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
|
|
25
|
+
import { A as prActionRunAfterExit, B as unknownActionWarnings, C as fixLocallyPrompt, D as packPathsOf, E as mergeItems, F as scopedToRepo, G as withPrActionRun, H as withHandled, I as shouldTellBranchMoved, J as decideHostAllowed, K as withReopened, L as sourceCandidates$1, M as prFlowRules, N as prFlowSetup, O as plannedActions, P as savedRuleFor, R as teammateThreadItems, T as itemLocation, U as withInterruptedRuns, V as visibleRun, W as withOnlyOpenPrs, _ as packRow, b as branchMovedNote, c as packsStatePath, d as PACK_FILE_NAME, f as PacksState, g as packFileHeaders, h as approvedPackThemes, m as approvedPackPanels, n as readPacksForAgent, o as PACKS_DIR_NAME, q as withRuleRun, s as packDirsUnder, u as readPackDir, v as pendingPackNote, w as flaggingReviewers, x as commandFingerprint, y as acceptReport, z as threadCandidates } from "./pack-agent-kPL1_C11.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-F5lysUVX.js";
|
|
28
|
+
import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-Dx_X8p0M.js";
|
|
29
|
+
import { t as createPrFlowsExternal } from "./pr-flows-external-DoqZWZkV.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";
|
|
@@ -2633,7 +2633,7 @@ function servePackFile(req, res, packFileSource) {
|
|
|
2633
2633
|
res.status(404).end();
|
|
2634
2634
|
return;
|
|
2635
2635
|
}
|
|
2636
|
-
for (const [name, value] of Object.entries(packFileHeaders(filePath))) res.setHeader(name, value);
|
|
2636
|
+
for (const [name, value] of Object.entries(packFileHeaders(filePath, req.headers.origin))) res.setHeader(name, value);
|
|
2637
2637
|
res.setHeader("Cache-Control", "private, max-age=604800, immutable");
|
|
2638
2638
|
res.setHeader("Content-Length", String(bytes.byteLength));
|
|
2639
2639
|
res.end(bytes);
|
|
@@ -17556,6 +17556,7 @@ var WEAK_TASK_TYPES = /* @__PURE__ */ new Set(["shell", "monitor"]);
|
|
|
17556
17556
|
var NON_GATING_TASK_TYPES = /* @__PURE__ */ new Set(["dream", "monitor"]);
|
|
17557
17557
|
var DEFAULT_SHELL_TASK_TTL_MS = 36e5;
|
|
17558
17558
|
var DEFAULT_TEAMMATE_TASK_TTL_MS = 9e4;
|
|
17559
|
+
var DEFAULT_NOTIFICATION_DELIVERY_WINDOW_MS = 1e4;
|
|
17559
17560
|
function declaredActiveCount(entries, idleIds, ageMs = 0, weakTtlMs = DEFAULT_SHELL_TASK_TTL_MS, idleNameCount = 0, teammateTtlMs = DEFAULT_TEAMMATE_TASK_TTL_MS, agentTtlMs = DEFAULT_AGENT_TTL_MS) {
|
|
17560
17561
|
if (!entries) return 0;
|
|
17561
17562
|
let activeCount = 0;
|
|
@@ -17586,13 +17587,14 @@ function declaredEntryAgeStartTs(entry, declaredTs, declaredFirstSeenTs) {
|
|
|
17586
17587
|
if (!WEAK_TASK_TYPES.has(entry.type) || !entry.id) return declaredTs;
|
|
17587
17588
|
return declaredFirstSeenTs?.get(entry.id) ?? declaredTs;
|
|
17588
17589
|
}
|
|
17589
|
-
function msUntilNextDrain({ countedAgents = null, declaredEntries = null, declaredTs = 0, declaredFirstSeenTs = void 0, idleIds = null, now = 0, agentTtlMs = DEFAULT_AGENT_TTL_MS, weakTtlMs = DEFAULT_SHELL_TASK_TTL_MS, teammateTtlMs = DEFAULT_TEAMMATE_TASK_TTL_MS } = {}) {
|
|
17590
|
+
function msUntilNextDrain({ countedAgents = null, declaredEntries = null, declaredTs = 0, declaredFirstSeenTs = void 0, idleIds = null, now = 0, agentTtlMs = DEFAULT_AGENT_TTL_MS, weakTtlMs = DEFAULT_SHELL_TASK_TTL_MS, teammateTtlMs = DEFAULT_TEAMMATE_TASK_TTL_MS, undeliveredSettledTasks = null, notificationDeliveryWindowMs = DEFAULT_NOTIFICATION_DELIVERY_WINDOW_MS } = {}) {
|
|
17590
17591
|
let earliestExpiry = null;
|
|
17591
17592
|
const consider = (expiresAt) => {
|
|
17592
17593
|
if (expiresAt <= now) return;
|
|
17593
17594
|
if (earliestExpiry === null || expiresAt < earliestExpiry) earliestExpiry = expiresAt;
|
|
17594
17595
|
};
|
|
17595
17596
|
if (countedAgents) for (const ts of countedAgents.values()) consider(ts + agentTtlMs);
|
|
17597
|
+
if (undeliveredSettledTasks) for (const settledTs of undeliveredSettledTasks.values()) consider(settledTs + notificationDeliveryWindowMs);
|
|
17596
17598
|
if (declaredEntries) for (const e of declaredEntries) {
|
|
17597
17599
|
if (e.id && idleIds && idleIds.has(e.id)) continue;
|
|
17598
17600
|
if (e.type && NON_GATING_TASK_TYPES.has(e.type)) continue;
|
|
@@ -17612,7 +17614,7 @@ function evictDepartedTeammateNames(idleTeammateNames, declaredTeammateIds, curr
|
|
|
17612
17614
|
}
|
|
17613
17615
|
return currentTeammateIds;
|
|
17614
17616
|
}
|
|
17615
|
-
function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs = DEFAULT_SHELL_TASK_TTL_MS, teammateTaskTtlMs = DEFAULT_TEAMMATE_TASK_TTL_MS, now = Date.now } = {}) {
|
|
17617
|
+
function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs = DEFAULT_SHELL_TASK_TTL_MS, teammateTaskTtlMs = DEFAULT_TEAMMATE_TASK_TTL_MS, notificationDeliveryWindowMs = DEFAULT_NOTIFICATION_DELIVERY_WINDOW_MS, now = Date.now } = {}) {
|
|
17616
17618
|
const countedAgents = /* @__PURE__ */ new Map();
|
|
17617
17619
|
const observedAgentIdsThisTurn = /* @__PURE__ */ new Set();
|
|
17618
17620
|
const orphanAgentStops = /* @__PURE__ */ new Map();
|
|
@@ -17622,6 +17624,8 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17622
17624
|
const idleTaskIds = /* @__PURE__ */ new Set();
|
|
17623
17625
|
const idleTeammateNames = /* @__PURE__ */ new Map();
|
|
17624
17626
|
let declaredTeammateIds = /* @__PURE__ */ new Set();
|
|
17627
|
+
const launchedBackgroundTasks = /* @__PURE__ */ new Map();
|
|
17628
|
+
const undeliveredSettledTasks = /* @__PURE__ */ new Map();
|
|
17625
17629
|
let breakdown = {
|
|
17626
17630
|
counted: 0,
|
|
17627
17631
|
declared: 0,
|
|
@@ -17635,6 +17639,8 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17635
17639
|
pruneAgents(countedAgents, at, agentTtlMs);
|
|
17636
17640
|
pruneAgents(orphanAgentStops, at, agentTtlMs);
|
|
17637
17641
|
pruneAgents(idleTeammateNames, at, agentTtlMs);
|
|
17642
|
+
pruneAgents(launchedBackgroundTasks, at, shellTaskTtlMs);
|
|
17643
|
+
pruneAgents(undeliveredSettledTasks, at, notificationDeliveryWindowMs);
|
|
17638
17644
|
if (declaredEntries === null) return;
|
|
17639
17645
|
if (declaredEntries.some((entry) => entryAgeMs(entry, at) < declaredEntryTtlMs(entry.type, shellTaskTtlMs, teammateTaskTtlMs, agentTtlMs))) return;
|
|
17640
17646
|
declaredEntries = null;
|
|
@@ -17673,6 +17679,11 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17673
17679
|
const declaredIds = new Set(entries.flatMap((e) => e.id ? [e.id] : []));
|
|
17674
17680
|
for (const id of declaredFirstSeenTs.keys()) if (!declaredIds.has(id)) declaredFirstSeenTs.delete(id);
|
|
17675
17681
|
for (const id of declaredIds) if (!declaredFirstSeenTs.has(id)) declaredFirstSeenTs.set(id, declaredTs);
|
|
17682
|
+
for (const id of launchedBackgroundTasks.keys()) {
|
|
17683
|
+
if (declaredIds.has(id)) continue;
|
|
17684
|
+
launchedBackgroundTasks.delete(id);
|
|
17685
|
+
undeliveredSettledTasks.set(id, declaredTs);
|
|
17686
|
+
}
|
|
17676
17687
|
for (const id of idleTaskIds) if (!declaredIds.has(id)) idleTaskIds.delete(id);
|
|
17677
17688
|
declaredTeammateIds = evictDepartedTeammateNames(idleTeammateNames, declaredTeammateIds, entries);
|
|
17678
17689
|
if (declaredActiveCount(entries, idleTaskIds, (entry) => entryAgeMs(entry, declaredTs), shellTaskTtlMs, 0, teammateTaskTtlMs, agentTtlMs) === 0 && countedAgents.size > 0) countedAgents.clear();
|
|
@@ -17706,6 +17717,16 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17706
17717
|
if (agentId.startsWith(prefix) && /^[0-9a-f]+$/i.test(agentId.slice(prefix.length))) idleTeammateNames.delete(name);
|
|
17707
17718
|
}
|
|
17708
17719
|
},
|
|
17720
|
+
noteBackgroundTaskLaunched(taskId) {
|
|
17721
|
+
undeliveredSettledTasks.delete(taskId);
|
|
17722
|
+
launchedBackgroundTasks.set(taskId, now());
|
|
17723
|
+
},
|
|
17724
|
+
noteTaskNotificationsDelivered(taskIds) {
|
|
17725
|
+
for (const taskId of taskIds) {
|
|
17726
|
+
launchedBackgroundTasks.delete(taskId);
|
|
17727
|
+
undeliveredSettledTasks.delete(taskId);
|
|
17728
|
+
}
|
|
17729
|
+
},
|
|
17709
17730
|
activeCount() {
|
|
17710
17731
|
const at = now();
|
|
17711
17732
|
reap(at);
|
|
@@ -17716,7 +17737,7 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17716
17737
|
idleNames: idleTeammateNames.size,
|
|
17717
17738
|
idleTasks: idleTaskIds.size
|
|
17718
17739
|
};
|
|
17719
|
-
return Math.max(countedAgents.size, declared);
|
|
17740
|
+
return Math.max(countedAgents.size, declared + undeliveredSettledTasks.size);
|
|
17720
17741
|
},
|
|
17721
17742
|
isOnlyBackgroundTasks() {
|
|
17722
17743
|
const at = now();
|
|
@@ -17742,7 +17763,9 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17742
17763
|
now: at,
|
|
17743
17764
|
agentTtlMs,
|
|
17744
17765
|
weakTtlMs: shellTaskTtlMs,
|
|
17745
|
-
teammateTtlMs: teammateTaskTtlMs
|
|
17766
|
+
teammateTtlMs: teammateTaskTtlMs,
|
|
17767
|
+
undeliveredSettledTasks,
|
|
17768
|
+
notificationDeliveryWindowMs
|
|
17746
17769
|
});
|
|
17747
17770
|
},
|
|
17748
17771
|
clear() {
|
|
@@ -17755,6 +17778,8 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17755
17778
|
idleTaskIds.clear();
|
|
17756
17779
|
idleTeammateNames.clear();
|
|
17757
17780
|
declaredTeammateIds.clear();
|
|
17781
|
+
launchedBackgroundTasks.clear();
|
|
17782
|
+
undeliveredSettledTasks.clear();
|
|
17758
17783
|
},
|
|
17759
17784
|
inspect() {
|
|
17760
17785
|
return {
|
|
@@ -17766,7 +17791,9 @@ function createTaskRegistry({ agentTtlMs = DEFAULT_AGENT_TTL_MS, shellTaskTtlMs
|
|
|
17766
17791
|
declaredFirstSeenTs: new Map(declaredFirstSeenTs),
|
|
17767
17792
|
idleTaskIds: new Set(idleTaskIds),
|
|
17768
17793
|
idleTeammateNames: new Map(idleTeammateNames),
|
|
17769
|
-
declaredTeammateIds: new Set(declaredTeammateIds)
|
|
17794
|
+
declaredTeammateIds: new Set(declaredTeammateIds),
|
|
17795
|
+
launchedBackgroundTasks: new Map(launchedBackgroundTasks),
|
|
17796
|
+
undeliveredSettledTasks: new Map(undeliveredSettledTasks)
|
|
17770
17797
|
};
|
|
17771
17798
|
}
|
|
17772
17799
|
};
|
|
@@ -21322,6 +21349,12 @@ function extractCronTaskId(payload) {
|
|
|
21322
21349
|
//#region session/session-background-tracking.ts
|
|
21323
21350
|
var SCHEDULED_WAKEUP_KEY = "scheduled-wakeup";
|
|
21324
21351
|
var MAX_TIMER_DELAY_MS = 2147483647;
|
|
21352
|
+
function launchedBackgroundTaskId(payload) {
|
|
21353
|
+
const toolResponse = payload.tool_response;
|
|
21354
|
+
if (!isRecord$2(toolResponse)) return null;
|
|
21355
|
+
const backgroundTaskId = toolResponse.backgroundTaskId;
|
|
21356
|
+
return typeof backgroundTaskId === "string" && backgroundTaskId ? backgroundTaskId : null;
|
|
21357
|
+
}
|
|
21325
21358
|
function createSessionBackgroundTracking({ detectBackgroundAgents, agentTtlMs, shellTaskTtlMs, teammateTaskTtlMs, gateReleaseSettleMs, detectScheduledWakeups, port }) {
|
|
21326
21359
|
const tasks = createTaskRegistry({
|
|
21327
21360
|
agentTtlMs,
|
|
@@ -21481,6 +21514,11 @@ function createSessionBackgroundTracking({ detectBackgroundAgents, agentTtlMs, s
|
|
|
21481
21514
|
const payload = raw.payload || {};
|
|
21482
21515
|
const taskId = typeof payload.task_id === "string" && payload.task_id ? payload.task_id : null;
|
|
21483
21516
|
const name = typeof payload.teammate_name === "string" ? payload.teammate_name : "";
|
|
21517
|
+
if (raw.signal === "background-task-launched") {
|
|
21518
|
+
const backgroundTaskId = launchedBackgroundTaskId(payload);
|
|
21519
|
+
if (backgroundTaskId) tasks.noteBackgroundTaskLaunched(backgroundTaskId);
|
|
21520
|
+
return;
|
|
21521
|
+
}
|
|
21484
21522
|
if (raw.signal === "task-created") {
|
|
21485
21523
|
clearGateHeldReady();
|
|
21486
21524
|
tasks.noteTaskCreated({
|
|
@@ -21499,6 +21537,12 @@ function createSessionBackgroundTracking({ detectBackgroundAgents, agentTtlMs, s
|
|
|
21499
21537
|
if (!name) return;
|
|
21500
21538
|
tasks.noteTeammateIdle(name, Date.now());
|
|
21501
21539
|
}
|
|
21540
|
+
function noteTaskNotificationsDelivered(prompt) {
|
|
21541
|
+
if (!detectBackgroundAgents) return;
|
|
21542
|
+
const deliveredTaskIds = extractNotifiedTaskIds(prompt);
|
|
21543
|
+
if (deliveredTaskIds.length === 0) return;
|
|
21544
|
+
withAgentCount(() => tasks.noteTaskNotificationsDelivered(deliveredTaskIds));
|
|
21545
|
+
}
|
|
21502
21546
|
function trackSubagent(raw) {
|
|
21503
21547
|
if (!detectBackgroundAgents) return;
|
|
21504
21548
|
const declaredAgentId = raw.payload?.agent_id;
|
|
@@ -21635,6 +21679,7 @@ function createSessionBackgroundTracking({ detectBackgroundAgents, agentTtlMs, s
|
|
|
21635
21679
|
applyBackgroundTasks,
|
|
21636
21680
|
clearBgDeclared,
|
|
21637
21681
|
trackTaskLifecycle,
|
|
21682
|
+
noteTaskNotificationsDelivered,
|
|
21638
21683
|
trackSubagent,
|
|
21639
21684
|
activeAgentCount,
|
|
21640
21685
|
awaitingBackgroundTasks,
|
|
@@ -22566,7 +22611,7 @@ var Session = class extends EventEmitter {
|
|
|
22566
22611
|
this.backgroundTracking.trackSubagent(raw);
|
|
22567
22612
|
return;
|
|
22568
22613
|
}
|
|
22569
|
-
if (raw && (raw.signal === "task-created" || raw.signal === "task-completed" || raw.signal === "teammate-idle")) {
|
|
22614
|
+
if (raw && (raw.signal === "task-created" || raw.signal === "task-completed" || raw.signal === "teammate-idle" || raw.signal === "background-task-launched")) {
|
|
22570
22615
|
this.backgroundTracking.trackTaskLifecycle(raw);
|
|
22571
22616
|
return;
|
|
22572
22617
|
}
|
|
@@ -22631,6 +22676,7 @@ var Session = class extends EventEmitter {
|
|
|
22631
22676
|
this._observeCompaction("resume");
|
|
22632
22677
|
this._titleQuiet = false;
|
|
22633
22678
|
this._setPendingPromptKind(null);
|
|
22679
|
+
this.backgroundTracking.noteTaskNotificationsDelivered(raw.payload?.prompt);
|
|
22634
22680
|
this.backgroundTracking.clearGateHeldReady();
|
|
22635
22681
|
this.backgroundTracking.resetTurnEvidence();
|
|
22636
22682
|
this.backgroundTracking.clearBgDeclared();
|