glimmervoid 0.52.3-next.780 → 0.52.3-next.782
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 +21 -21
- package/dist/chunks/{adapters-B5u1KStv.js → adapters-B5OoLoCc.js} +23 -73
- package/dist/chunks/adapters-D4HZn-iw.js +1 -0
- package/dist/chunks/{agent-api-cli-DtQEDhFT.js → agent-api-cli-Do53usTb.js} +1 -1
- package/dist/chunks/agent-api-cli-DorIc6HB.js +1 -0
- package/dist/chunks/{agent-api-core-DonMhX6o.js → agent-api-core-ub6MRHm5.js} +2 -2
- package/dist/chunks/agent-home-Dn_2tLhp.js +1 -0
- package/dist/chunks/{agent-home-BfTTI0CX.js → agent-home-EaMTOzrq.js} +2 -2
- package/dist/chunks/agent-home-core-3SUeuXf7.js +1 -0
- package/dist/chunks/{agent-setup-cli-C-WvMQr5.js → agent-setup-cli-B0g01lGk.js} +2 -2
- package/dist/chunks/canonical-paths-M4JscBu0.js +47 -0
- package/dist/chunks/{config-BMsVdLak.js → config-CdEJXhF0.js} +1 -1
- package/dist/chunks/{config-store-C7JjRfsP.js → config-store-D_HB8r-V.js} +7 -48
- package/dist/chunks/config-store-y7_yZ0fc.js +1 -0
- package/dist/chunks/{control-messages-Dvnv3zGd.js → control-messages-Db2YYhMv.js} +1 -1
- package/dist/chunks/{grok-tnj9zPI4.js → grok-BBH-Z2hM.js} +2 -2
- package/dist/chunks/hook-tools-D50rqYvj.js +63 -0
- package/dist/chunks/{host-cli-B3MNPZTO.js → host-cli-_MkX0Nov.js} +3 -3
- package/dist/chunks/{host-registry-core-1HGlK-zM.js → host-registry-core-CUflbwkh.js} +1 -1
- package/dist/chunks/{json-file-BjFK_eSH.js → json-file-AKRVPqG1.js} +14 -2
- package/dist/chunks/{kimi-DhTmg2pj.js → kimi-B8jwbXxY.js} +3 -3
- package/dist/chunks/kimi-DJbfZfYg.js +1 -0
- package/dist/chunks/{main-DD1Hn3IY.js → main-BIVCaUz3.js} +418 -6140
- package/dist/chunks/{pack-agent-BB0i63O1.js → pack-agent-DLaGtU3W.js} +3 -2
- package/dist/chunks/pack-files-C6jJPjkp.js +322 -0
- package/dist/chunks/{packs-cli-CiJpIrf0.js → packs-cli-DxmaLXzC.js} +4 -4
- package/dist/chunks/{pair-cli-DIAK2COn.js → pair-cli-DG-zt6_w.js} +2 -2
- package/dist/chunks/paths-Bu4eH1Yd.js +27 -0
- package/dist/chunks/{pr-flows-cli--Bk11zvM.js → pr-flows-cli-CRWsL_dt.js} +5 -4
- package/dist/chunks/{pack-files-BqMA8Jpe.js → pr-flows-core-uZmgLEy3.js} +2 -320
- package/dist/chunks/{pr-flows-external-DqbLxNZp.js → pr-flows-external-DZc-nL4n.js} +1 -1
- package/dist/chunks/{remote-config-r1Zz8tLh.js → remote-config-CMRvePVc.js} +4 -3
- package/dist/chunks/{runtime-paths-DfoHzN15.js → runtime-paths-BYZiXmTG.js} +2 -26
- package/dist/chunks/runtime-paths-XGSqTac1.js +1 -0
- package/dist/chunks/{settings-cli-CldC6PKI.js → settings-cli-6ASjgo2W.js} +4 -4
- package/dist/chunks/settings-cli-DauUbeRX.js +1 -0
- package/dist/chunks/{settings-readout-core-CeTIpmeQ.js → settings-readout-core-CbGnRdGi.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-D5Gyi8vy.js → ssh-sign-cli-Dz2lPwJT.js} +1 -1
- package/dist/chunks/watch-cli-CLHop_fD.js +491 -0
- package/dist/chunks/watchee-settings-C4I5XR-9.js +6059 -0
- package/dist/client/assets/{agent-mark-1rt1RoaY.js → agent-mark-BqFnJem8.js} +1 -1
- package/dist/client/assets/agent-mark-BqFnJem8.js.br +0 -0
- package/dist/client/assets/{arena-panel-CpOf8Ml5.js → arena-panel-DQEuedK0.js} +2 -2
- package/dist/client/assets/arena-panel-DQEuedK0.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-DLskqUG3.js → benchmark-panel-C96qR8J1.js} +1 -1
- package/dist/client/assets/benchmark-panel-C96qR8J1.js.br +0 -0
- package/dist/client/assets/{boards-view-DQYr6YRk.js → boards-view-CgmdWZf3.js} +1 -1
- package/dist/client/assets/boards-view-CgmdWZf3.js.br +0 -0
- package/dist/client/assets/{community-panel-BG0bit7w.js → community-panel-DCzhK5mM.js} +1 -1
- package/dist/client/assets/community-panel-DCzhK5mM.js.br +0 -0
- package/dist/client/assets/{dialogs-MwESDvIb.js → dialogs-BGdllLTd.js} +1 -1
- package/dist/client/assets/dialogs-BGdllLTd.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-CFTKdkoQ.js → doc-editor-ui-DFn8JBbd.js} +1 -1
- package/dist/client/assets/doc-editor-ui-DFn8JBbd.js.br +0 -0
- package/dist/client/assets/{feature-hint-xYEPVR1U.js → feature-hint-D5IyCAkP.js} +1 -1
- package/dist/client/assets/feature-hint-D5IyCAkP.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-CPapA_wC.js → first-run-checklist-BitVBYhA.js} +1 -1
- package/dist/client/assets/first-run-checklist-BitVBYhA.js.br +0 -0
- package/dist/client/assets/{hooks-panel-CS2Euj_X.js → hooks-panel-BafEIm_4.js} +1 -1
- package/dist/client/assets/hooks-panel-BafEIm_4.js.br +0 -0
- package/dist/client/assets/{index-B25jqd2G.js → index-D-I5Bdux.js} +5 -5
- package/dist/client/assets/index-D-I5Bdux.js.br +0 -0
- package/dist/client/assets/{issues-panel-CK4GzZgA.js → issues-panel-CwwQlCEK.js} +1 -1
- package/dist/client/assets/issues-panel-CwwQlCEK.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-D88VbS3Y.js → lane-read-token-step-CYM006Vc.js} +1 -1
- package/dist/client/assets/lane-read-token-step-CYM006Vc.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-gRoQ9ngk.js → my-prs-panel-DEchkpZe.js} +1 -1
- package/dist/client/assets/my-prs-panel-DEchkpZe.js.br +0 -0
- package/dist/client/assets/{nyan-cat-C0sB59tC.js → nyan-cat-qs0ED6MV.js} +1 -1
- package/dist/client/assets/nyan-cat-qs0ED6MV.js.br +0 -0
- package/dist/client/assets/{phone-shell-D9H0XFQI.js → phone-shell-DxXTcRyb.js} +1 -1
- package/dist/client/assets/phone-shell-DxXTcRyb.js.br +0 -0
- package/dist/client/assets/{plan-face-BNRRQo0_.js → plan-face-dN2WM4E0.js} +1 -1
- package/dist/client/assets/plan-face-dN2WM4E0.js.br +0 -0
- package/dist/client/assets/{plan-render-CARr4c2h.js → plan-render-9nde5tnv.js} +1 -1
- package/dist/client/assets/plan-render-9nde5tnv.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BaTm2vpy.js → pr-queue-columns-CuwA-nIp.js} +1 -1
- package/dist/client/assets/pr-queue-columns-CuwA-nIp.js.br +0 -0
- package/dist/client/assets/{radar-panel-Bxy17Eb_.js → radar-panel-DrtZQ9aW.js} +1 -1
- package/dist/client/assets/radar-panel-DrtZQ9aW.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-vm03dtVT.js → repo-roots-adder-DJFf0IDa.js} +1 -1
- package/dist/client/assets/repo-roots-adder-DJFf0IDa.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DV3XpxLp.js → resume-dialog-XHxojRra.js} +1 -1
- package/dist/client/assets/resume-dialog-XHxojRra.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-CdAo3yat.js → review-queue-panel-Cov6cA_r.js} +1 -1
- package/dist/client/assets/review-queue-panel-Cov6cA_r.js.br +0 -0
- package/dist/client/assets/{session-actions-M7tnrLPu.js → session-actions-K7U3UnMC.js} +2 -2
- package/dist/client/assets/session-actions-K7U3UnMC.js.br +0 -0
- package/dist/client/assets/{session-row-BqrNrtm7.js → session-row-DhrcM0P7.js} +1 -1
- package/dist/client/assets/session-row-DhrcM0P7.js.br +0 -0
- package/dist/client/assets/{settings-panel-CpstKwQ8.js → settings-panel-D48-ajAr.js} +2 -2
- package/dist/client/assets/settings-panel-D48-ajAr.js.br +0 -0
- package/dist/client/assets/{trace-panel-C8fAW_qz.js → trace-panel-C2_LuozU.js} +1 -1
- package/dist/client/assets/trace-panel-C2_LuozU.js.br +0 -0
- package/dist/client/assets/{usage-panel-B9IjtiuD.js → usage-panel-gJuz1Yn1.js} +1 -1
- package/dist/client/assets/usage-panel-gJuz1Yn1.js.br +0 -0
- package/dist/client/assets/{your-day-tip-DgYkov7g.js → your-day-tip-67SHCDes.js} +1 -1
- package/dist/client/assets/your-day-tip-67SHCDes.js.br +5 -0
- package/dist/client/index.html +4 -4
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/adapters-DZAHdDSX.js +0 -1
- package/dist/chunks/agent-api-cli-DMKQMPTp.js +0 -1
- package/dist/chunks/agent-home-DTw7fA1o.js +0 -1
- package/dist/chunks/agent-home-core-CnEQUJxA.js +0 -1
- package/dist/chunks/backoff-DjVpfHk7.js +0 -14
- package/dist/chunks/config-store-BuMdMc-V.js +0 -1
- package/dist/chunks/kimi-DMd6e-kr.js +0 -1
- package/dist/chunks/runtime-paths-j5rMoZKx.js +0 -1
- package/dist/chunks/settings-cli-CxWyXWeX.js +0 -1
- package/dist/chunks/watch-cli-Dm2c1Y-1.js +0 -138
- package/dist/chunks/watcher-core-D2Lp82kX.js +0 -109
- package/dist/client/assets/agent-mark-1rt1RoaY.js.br +0 -0
- package/dist/client/assets/arena-panel-CpOf8Ml5.js.br +0 -0
- package/dist/client/assets/benchmark-panel-DLskqUG3.js.br +0 -0
- package/dist/client/assets/boards-view-DQYr6YRk.js.br +0 -0
- package/dist/client/assets/community-panel-BG0bit7w.js.br +0 -0
- package/dist/client/assets/dialogs-MwESDvIb.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-CFTKdkoQ.js.br +0 -0
- package/dist/client/assets/feature-hint-xYEPVR1U.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CPapA_wC.js.br +0 -0
- package/dist/client/assets/hooks-panel-CS2Euj_X.js.br +0 -0
- package/dist/client/assets/index-B25jqd2G.js.br +0 -0
- package/dist/client/assets/issues-panel-CK4GzZgA.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-D88VbS3Y.js.br +0 -0
- package/dist/client/assets/my-prs-panel-gRoQ9ngk.js.br +0 -0
- package/dist/client/assets/nyan-cat-C0sB59tC.js.br +0 -0
- package/dist/client/assets/phone-shell-D9H0XFQI.js.br +0 -0
- package/dist/client/assets/plan-face-BNRRQo0_.js.br +0 -0
- package/dist/client/assets/plan-render-CARr4c2h.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BaTm2vpy.js.br +0 -0
- package/dist/client/assets/radar-panel-Bxy17Eb_.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-vm03dtVT.js.br +0 -0
- package/dist/client/assets/resume-dialog-DV3XpxLp.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CdAo3yat.js.br +0 -0
- package/dist/client/assets/session-actions-M7tnrLPu.js.br +0 -0
- package/dist/client/assets/session-row-BqrNrtm7.js.br +0 -0
- package/dist/client/assets/settings-panel-CpstKwQ8.js.br +0 -0
- package/dist/client/assets/trace-panel-C8fAW_qz.js.br +0 -0
- package/dist/client/assets/usage-panel-B9IjtiuD.js.br +0 -0
- package/dist/client/assets/your-day-tip-DgYkov7g.js.br +0 -0
- package/dist/chunks/{agent-home-core-kOGl6Fwb.js → agent-home-core-jwbtRYeT.js} +1 -1
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { r as firstLine, s as nodePtyRebuildHint, t as probeNodePty } from "../chunks/node-pty-preflight-DbfWP9Rc.js";
|
|
3
3
|
import { i as errorText } from "../chunks/text-DoirglWV.js";
|
|
4
|
-
import { o as packageRoot } from "../chunks/runtime-paths-
|
|
4
|
+
import { o as packageRoot } from "../chunks/runtime-paths-BYZiXmTG.js";
|
|
5
5
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
6
6
|
import { t as AGENT_API_VERBS } from "../chunks/session-qwJv402s.js";
|
|
7
7
|
import { a as execSync } from "../chunks/child-process-safe-BIh8yQ0I.js";
|
|
8
|
-
import { at as parseCommand, it as isOwnedCommandName, r as agentCommandHelpLines, rt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-
|
|
8
|
+
import { at as parseCommand, it as isOwnedCommandName, r as agentCommandHelpLines, rt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-ub6MRHm5.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";
|
|
@@ -66,7 +66,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
66
66
|
return await runDoctor() ? 0 : 1;
|
|
67
67
|
},
|
|
68
68
|
pair: async ({ values }) => {
|
|
69
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
69
|
+
const { runPairCli } = await import("../chunks/pair-cli-DG-zt6_w.js");
|
|
70
70
|
return runPairCli({
|
|
71
71
|
isListing: values.list === true,
|
|
72
72
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -74,38 +74,38 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
74
74
|
});
|
|
75
75
|
},
|
|
76
76
|
agent: async () => {
|
|
77
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
77
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-B0g01lGk.js");
|
|
78
78
|
return runAgentSetupCli();
|
|
79
79
|
},
|
|
80
80
|
settings: async (parsed) => {
|
|
81
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
81
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-DauUbeRX.js");
|
|
82
82
|
return runParsedSettingsCli(parsed);
|
|
83
83
|
},
|
|
84
84
|
host: async (parsed) => {
|
|
85
|
-
const { runHostCli } = await import("../chunks/host-cli-
|
|
85
|
+
const { runHostCli } = await import("../chunks/host-cli-_MkX0Nov.js");
|
|
86
86
|
return runHostCli(parsed);
|
|
87
87
|
},
|
|
88
88
|
"pr-flows": async (parsed) => {
|
|
89
|
-
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli
|
|
89
|
+
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-CRWsL_dt.js");
|
|
90
90
|
return runPrFlowsCheckCli(parsed);
|
|
91
91
|
},
|
|
92
92
|
packs: async (parsed) => {
|
|
93
|
-
const { runPacksCli } = await import("../chunks/packs-cli-
|
|
93
|
+
const { runPacksCli } = await import("../chunks/packs-cli-DxmaLXzC.js");
|
|
94
94
|
return runPacksCli(parsed);
|
|
95
95
|
},
|
|
96
96
|
"pr-action": async (parsed) => {
|
|
97
|
-
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli
|
|
97
|
+
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-CRWsL_dt.js");
|
|
98
98
|
return runPrActionReportCli(parsed);
|
|
99
99
|
},
|
|
100
100
|
watch: async ({ values }) => {
|
|
101
|
-
const { runWatchCli } = await import("../chunks/watch-cli-
|
|
101
|
+
const { runWatchCli } = await import("../chunks/watch-cli-CLHop_fD.js");
|
|
102
102
|
return runWatchCli({
|
|
103
103
|
inboxUrl: typeof values.inbox === "string" ? values.inbox : null,
|
|
104
104
|
isPingOnly: values.ping === true
|
|
105
105
|
});
|
|
106
106
|
},
|
|
107
107
|
"ssh-sign": async ({ rawArgs }) => {
|
|
108
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
108
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-Dz2lPwJT.js");
|
|
109
109
|
return runSshSignCli(rawArgs);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
@@ -127,7 +127,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
127
127
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
128
128
|
}
|
|
129
129
|
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) => {
|
|
130
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
130
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-DorIc6HB.js");
|
|
131
131
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
132
132
|
}])]);
|
|
133
133
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -141,7 +141,7 @@ function missingAgentText(agentId) {
|
|
|
141
141
|
}
|
|
142
142
|
async function printSessionLimits() {
|
|
143
143
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
144
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
144
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-DorIc6HB.js");
|
|
145
145
|
const limitsLines = await sessionLimitsHelpLines();
|
|
146
146
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
147
147
|
}
|
|
@@ -198,7 +198,7 @@ async function readDeclaredCustomAgents() {
|
|
|
198
198
|
declared: [],
|
|
199
199
|
error: null
|
|
200
200
|
};
|
|
201
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
201
|
+
const { loadConfigFile } = await import("../chunks/config-store-y7_yZ0fc.js");
|
|
202
202
|
try {
|
|
203
203
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
204
204
|
if (!loaded.config) return {
|
|
@@ -274,7 +274,7 @@ async function runDoctor() {
|
|
|
274
274
|
}
|
|
275
275
|
switchSection("Agents");
|
|
276
276
|
try {
|
|
277
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
277
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-D4HZn-iw.js");
|
|
278
278
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
279
279
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
280
280
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -282,21 +282,21 @@ async function runDoctor() {
|
|
|
282
282
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
283
283
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
284
284
|
}
|
|
285
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
285
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-B0g01lGk.js");
|
|
286
286
|
const grokSetup = inspectGrokAgentSetup();
|
|
287
287
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
288
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
289
|
-
const { describeAgentHome } = await import("../chunks/agent-home-
|
|
290
|
-
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-
|
|
288
|
+
const { default: kimi } = await import("../chunks/kimi-DJbfZfYg.js");
|
|
289
|
+
const { describeAgentHome } = await import("../chunks/agent-home-Dn_2tLhp.js");
|
|
290
|
+
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-3SUeuXf7.js");
|
|
291
291
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
292
292
|
} catch (err) {
|
|
293
293
|
line("agents", `probe failed: ${firstLine(errorText(err))}`);
|
|
294
294
|
}
|
|
295
295
|
switchSection("Sane YOLO");
|
|
296
296
|
try {
|
|
297
|
-
const { resolvePackageBin } = await import("../chunks/runtime-paths-
|
|
297
|
+
const { resolvePackageBin } = await import("../chunks/runtime-paths-XGSqTac1.js");
|
|
298
298
|
const { execFileSync } = await import("../chunks/child-process-safe-D5RpuuyW.js");
|
|
299
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
299
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-B0g01lGk.js");
|
|
300
300
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
301
301
|
line("Sane YOLO", binPath || "not installed");
|
|
302
302
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as safePathSegment, r as isPathInside } from "./paths-Bu4eH1Yd.js";
|
|
3
|
+
import { s as relayPath } from "./runtime-paths-BYZiXmTG.js";
|
|
3
4
|
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, E as REQUEST_USER_INPUT_TOOL_NAME, Kn as shortSha$1, S as CONVERSATION_PERMISSION_HOOK_EVENT, Wn as FULL_SHA_RE, i as ASK_USER_QUESTION_TOOL_NAME } from "./session-qwJv402s.js";
|
|
4
5
|
import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-BIh8yQ0I.js";
|
|
5
|
-
import {
|
|
6
|
+
import { en as InstallFlavor, fn as PLAN_RESULT_HOOK_EVENT, pn as PLAN_TOOL_NAME, sn as UpdateChannel, un as PLAN_HOOK_EVENT, zt as HTTP_URL_RE } from "./control-messages-Db2YYhMv.js";
|
|
6
7
|
import { o as QUESTION_TOOL_HOLD_HOOK_EVENT } from "./question-manager-DC7Vhfzr.js";
|
|
7
8
|
import { a as rawTextOr, n as isRecord, o as textOr, r as numberOr } from "./coerce-oz_Z_6E7.js";
|
|
8
|
-
import { c as SHELL_AGENT_ID } from "./config-
|
|
9
|
+
import { c as SHELL_AGENT_ID } from "./config-CdEJXhF0.js";
|
|
9
10
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
10
|
-
import { a as QWEN_SANE_YOLO_FLAVOR, n as COPILOT_SANE_YOLO_FLAVOR,
|
|
11
|
-
import {
|
|
12
|
-
import { n as buildAgentEnv } from "./spawn-env-CoOq-qwL.js";
|
|
11
|
+
import { a as QWEN_SANE_YOLO_FLAVOR, n as COPILOT_SANE_YOLO_FLAVOR, r as GEMINI_SANE_YOLO_FLAVOR, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-YyMaZ6jg.js";
|
|
12
|
+
import { O as nextBackoffMs, c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-AKRVPqG1.js";
|
|
13
13
|
import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { c as
|
|
14
|
+
import { n as isHookToolId, r as mergeCodexPreToolUse, t as HOOK_TOOLS } from "./hook-tools-D50rqYvj.js";
|
|
15
|
+
import { n as buildAgentEnv } from "./spawn-env-CoOq-qwL.js";
|
|
16
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-BBH-Z2hM.js";
|
|
17
|
+
import { b as compareReleaseVersions, o as glimmervoidHomeDir, x as isExperimentalBuild } from "./config-store-D_HB8r-V.js";
|
|
18
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-B8jwbXxY.js";
|
|
19
|
+
import { _ as renderCodexHookTables, c as CODEX_HOME_PROFILE, f as QWEN_HOME_PROFILE, l as COPILOT_HOME_PROFILE, p as doesProjectConfigTurnHooksOff, t as AGENT_HOME_CONFIG_NAME, u as GEMINI_HOME_PROFILE, v as renderCodexHooksBlock, x as cleanJsonc } from "./agent-home-core-jwbtRYeT.js";
|
|
20
|
+
import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, s as readOptionalText } from "./agent-home-EaMTOzrq.js";
|
|
20
21
|
import fs from "node:fs";
|
|
21
22
|
import path from "node:path";
|
|
22
23
|
import os from "node:os";
|
|
@@ -253,66 +254,6 @@ async function sweepOrphanedHostScratch() {
|
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
256
|
//#endregion
|
|
256
|
-
//#region session/core/hook-tools.ts
|
|
257
|
-
function toForwardSlashes$1(commandPath) {
|
|
258
|
-
return commandPath.replace(/\\/g, "/");
|
|
259
|
-
}
|
|
260
|
-
function codexGroup(command, matcher = "Bash") {
|
|
261
|
-
if (!command) return null;
|
|
262
|
-
return `{matcher='${matcher}',hooks=[{type='command',command='${command}'}]}`;
|
|
263
|
-
}
|
|
264
|
-
function posthogToolMatcher(tool) {
|
|
265
|
-
return `^mcp__${tool.serverName ?? ""}__`;
|
|
266
|
-
}
|
|
267
|
-
function posthogGateCommand(tool) {
|
|
268
|
-
return `"${toForwardSlashes$1(tool.interpreterPath ?? "node")}" "${toForwardSlashes$1(tool.binPath)}" ${tool.serverName ?? ""} || exit 2`;
|
|
269
|
-
}
|
|
270
|
-
var HOOK_TOOLS = {
|
|
271
|
-
saneYolo: {
|
|
272
|
-
capability: "saneYolo",
|
|
273
|
-
purpose: "Sane YOLO catastrophic command protection",
|
|
274
|
-
env: (tool, homeDir) => ({
|
|
275
|
-
[SANE_YOLO_PATH_ENV]: tool.binPath,
|
|
276
|
-
...saneYoloEnv(homeDir)
|
|
277
|
-
}),
|
|
278
|
-
claudeEntry: (tool) => ({
|
|
279
|
-
matcher: "Bash|PowerShell|Monitor|Read|Edit|Write|MultiEdit|NotebookEdit|Glob|Grep",
|
|
280
|
-
hooks: [{
|
|
281
|
-
type: "command",
|
|
282
|
-
command: `node "${toForwardSlashes$1(tool.binPath)}" hook --coding-cli`
|
|
283
|
-
}]
|
|
284
|
-
}),
|
|
285
|
-
codexGroup: (tool) => codexGroup(buildHookCommand(tool.binPath, "hook", ["--codex"])),
|
|
286
|
-
codexTrustedArgs: () => []
|
|
287
|
-
},
|
|
288
|
-
posthogReadGate: {
|
|
289
|
-
capability: "hooks",
|
|
290
|
-
purpose: "Read-only PostHog MCP access for lanes",
|
|
291
|
-
env: () => ({}),
|
|
292
|
-
claudeEntry: (tool) => ({
|
|
293
|
-
matcher: posthogToolMatcher(tool),
|
|
294
|
-
hooks: [{
|
|
295
|
-
type: "command",
|
|
296
|
-
command: posthogGateCommand(tool)
|
|
297
|
-
}]
|
|
298
|
-
}),
|
|
299
|
-
codexGroup: (tool) => codexGroup(posthogGateCommand(tool), posthogToolMatcher(tool)),
|
|
300
|
-
codexTrustedArgs: (tool) => [
|
|
301
|
-
"-c",
|
|
302
|
-
"features.hooks=true",
|
|
303
|
-
"-c",
|
|
304
|
-
`mcp_servers.${tool.serverName ?? ""}.default_tools_approval_mode="approve"`
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
function mergeCodexPreToolUse(groups) {
|
|
309
|
-
if (groups.length === 0) return [];
|
|
310
|
-
return ["-c", `hooks.PreToolUse=[${groups.join(",")}]`];
|
|
311
|
-
}
|
|
312
|
-
function isHookToolId(name) {
|
|
313
|
-
return Object.hasOwn(HOOK_TOOLS, name);
|
|
314
|
-
}
|
|
315
|
-
//#endregion
|
|
316
257
|
//#region session/core/user-hooks-core.ts
|
|
317
258
|
var MAX_NAME_LENGTH = 64;
|
|
318
259
|
var MAX_MATCHER_LENGTH = 200;
|
|
@@ -3828,6 +3769,15 @@ function hookProfileOf(adapter) {
|
|
|
3828
3769
|
if (!adapter.capabilities.hooks) return null;
|
|
3829
3770
|
return adapter.hooks;
|
|
3830
3771
|
}
|
|
3772
|
+
function projectHookConfigRelPaths() {
|
|
3773
|
+
const relPaths = /* @__PURE__ */ new Set();
|
|
3774
|
+
for (const { adapter } of BUILT_IN_AGENTS) {
|
|
3775
|
+
const injection = hookProfileOf(adapter)?.injection;
|
|
3776
|
+
if (!injection || !("projectConfigCandidates" in injection)) continue;
|
|
3777
|
+
for (const { relPath } of injection.projectConfigCandidates) relPaths.add(relPath);
|
|
3778
|
+
}
|
|
3779
|
+
return [...relPaths];
|
|
3780
|
+
}
|
|
3831
3781
|
function listAgentIds() {
|
|
3832
3782
|
return [...ADAPTERS.keys(), ...customAdapters.keys()];
|
|
3833
3783
|
}
|
|
@@ -3891,4 +3841,4 @@ function resetCommandCache() {
|
|
|
3891
3841
|
resolvedCommands.clear();
|
|
3892
3842
|
}
|
|
3893
3843
|
//#endregion
|
|
3894
|
-
export {
|
|
3844
|
+
export { continuationDelayMs as $, listClaudeGlobalConfigPathCandidates as $t, shortSha as A, claudeCode as At, MAX_TRANSCRIPT_READ_BYTES as B, appendUserHooks as Bt, isCheckFresh as C, isWithinGenerationRecencyWindow as Ct, parseRegistryLatest as D, shouldReplace as Dt, parseRegistryDeprecation as E, parseUsageLine as Et, exceedsUploadCap as F, sweepOrphans as Ft, isOversizedPartialLine as G, removeHook as Gt, committedOffsetFromTraceTailOrNull as H, normalizeHook as Ht, framePathPaste as I, writeSessionSettings as It, withCommittedOffset as J, sweepOrphanedHostScratch as Jt, planContiguousRead as K, upsertHook as Kt, imageMimeForUploadFilename as L, HOOK_EVENT_CATALOG as Lt, MAX_UPLOAD_BYTES as M, PLAN_HOLD_RELEASE_MS as Mt, buildUploadFilename as N, buildHookSettings as Nt, parseResolvedSha as O, totalTokensOf as Ot, decideUploadType as P, generateToken as Pt, codexSessionIdFromPath as Q, removalsJournalPath as Qt, isSafePathSegment as R, ID_RE as Rt, decideUpdateStatus as S, identityFromRelPath as St, normalizeUpdateChannel as T, parseJsonLine as Tt, completeLineBytes as U, rawStoredHooks as Ut, TRACE_TAIL_SCAN_BYTES as V, hooksForProject as Vt, containmentRefusalReason as W, readStoredHooks as Wt, codexHomes as X, appendRemovalRecordSync as Xt, codexFallbackRoots as Y, appendRemovalRecord as Yt, codexRootCandidates as Z, recordSweptPath as Zt, codex as _, dedupKeys as _t, customAgentFingerprint as a, kimiHomes as at, NODE_PTY_INSTALL_SCRIPT_FLAG as b, foldEntryIntoGenerationRollup as bt, hookProfileOf as c, resolveProjectsDirs as ct, listAgentIds as d, shouldEvaluateDespiteIoFailures as dt, decideFileRead as et, projectHookConfigRelPaths as f, shouldPersistWarehouse as ft, folderTrustRoot as g, addEntryToTotals as gt, setCustomAgents as h, parseKimiUsageLine as ht, commandFor as i, isUsageFile as it, openContainedFile as j, HOOK_EVENTS$4 as jt, pickNewestPublished as k, vendorUsageEntry as kt, isBuiltInAgentId as l, scopedClaudeRoots as lt, resolveAdapter as m, kimiDedupIdentity as mt, DEFAULT_AGENT_ID as n, expandTilde as nt, describeAgentResolvability as o, passOutcome as ot, resetCommandCache as p, splitLines as pt, resumeOffsetFrom as q, makeHostScratchDirectory as qt, cachedAgentResolvability as r, grokHomes as rt, getAdapter as s, projectDirCandidates as st, BUILT_IN_AGENTS as t, dedupeCodexFiles as tt, isKnownAgentId as u, sessionsRootCandidates as ut, readHostCodexVersion as v, emptyTotals as vt, normalizeSha as w, mergeGenerationRollups as wt, decideInstallFlavor as x, foldReplacementIntoGenerationRollup as xt, requestCodexAppServer as y, expandAdvisorIterations as yt, planUploadRetention as z, agentHookGroupOf as zt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { o as describeAgentResolvability, d as listAgentIds, h as setCustomAgents } from "./adapters-B5OoLoCc.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { it as STEP_STATUSES, nt as Op, r as AGENT_URL_ENV, st as WhiteboardAgentReply, u as AgentLimitsReply } from "./session-qwJv402s.js";
|
|
2
|
-
import { X as formatSessionLimits, at as parseCommand, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
2
|
+
import { X as formatSessionLimits, at as parseCommand, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-ub6MRHm5.js";
|
|
3
3
|
import { a as resolveHookTarget } from "./hook-relay-core-KYIjwQJ1.js";
|
|
4
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
5
5
|
import { c as planSteps, l as stepBoxesOf, o as dependencyWireId, r as layoutBoard, s as dependencyWireIdsInto, t as boardSvgDocument } from "./whiteboard-svg-core-BGL8Q8fb.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-Do53usTb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as RefinedTaskTitle, O as SESSION_COMMANDS, V as TASK_TITLE_CONTROL_CHARACTERS, _ as AgentSettingsRequest, a as AgentAnswerRequest, c as AgentCloseRequest, ct as WhiteboardAgentRequest, d as AgentPacksRequest, f as AgentPullRequestRequest, h as AgentSendRequest, l as AgentEditRequest, m as AgentReviewsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentReadRequest, s as AgentCheckoutRequest, t as AGENT_API_VERBS, v as AgentSpawnRequest, y as AgentWhyRequest } from "./session-qwJv402s.js";
|
|
2
|
-
import {
|
|
2
|
+
import { an as pullRequestKeyFromReference } from "./control-messages-Db2YYhMv.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
4
|
+
import { l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-CdEJXhF0.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { parseArgs } from "node:util";
|
|
7
7
|
import crypto from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as describeAgentHome } from "./agent-home-EaMTOzrq.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { n as glimmervoidHomeDir } from "./config-path-core-DUWk0Lui.js";
|
|
3
|
-
import { p as writeTextAtomicSync } from "./json-file-
|
|
4
|
-
import { a as AGENT_HOME_SOURCES_NAME, b as resolveRealAgentHome, g as planAgentHome, h as linkKindFor, i as AGENT_HOME_PROFILES, m as fileStampKey, n as AGENT_HOME_CONFLICTS_NAME, r as AGENT_HOME_IN_USE_LOCK_NAME } from "./agent-home-core-
|
|
3
|
+
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
|
+
import { a as AGENT_HOME_SOURCES_NAME, b as resolveRealAgentHome, g as planAgentHome, h as linkKindFor, i as AGENT_HOME_PROFILES, m as fileStampKey, n as AGENT_HOME_CONFLICTS_NAME, r as AGENT_HOME_IN_USE_LOCK_NAME } from "./agent-home-core-jwbtRYeT.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import fs, { closeSync, mkdirSync, openSync, readdirSync, renameSync, rmSync, unlinkSync } from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { d as KIMI_HOME_PROFILE } from "./agent-home-core-jwbtRYeT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
3
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-BBH-Z2hM.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
//#region server/agent-setup-cli.ts
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
|
+
//#region shared/timer-deps.ts
|
|
6
|
+
var DEFAULT_TIMER_FNS = Object.freeze({
|
|
7
|
+
setTimeoutFn: (fn, ms) => setTimeout(fn, ms),
|
|
8
|
+
clearTimeoutFn: (handle) => clearTimeout(handle),
|
|
9
|
+
setIntervalFn: (fn, ms) => setInterval(fn, ms),
|
|
10
|
+
clearIntervalFn: (handle) => clearInterval(handle)
|
|
11
|
+
});
|
|
12
|
+
function unrefTimer(handle) {
|
|
13
|
+
if (typeof handle !== "object" || handle === null) return handle;
|
|
14
|
+
if (!("unref" in handle) || typeof handle.unref !== "function") return handle;
|
|
15
|
+
handle.unref();
|
|
16
|
+
return handle;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region shared/canonical-paths.ts
|
|
20
|
+
var realpathNative = promisify(fs.realpath.native);
|
|
21
|
+
function canonicalizePath(p) {
|
|
22
|
+
try {
|
|
23
|
+
return fs.realpathSync.native(p);
|
|
24
|
+
} catch {
|
|
25
|
+
return p;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function isSameDirectoryPath(a, b) {
|
|
29
|
+
const resolvedA = path.resolve(String(a || ""));
|
|
30
|
+
const resolvedB = path.resolve(String(b || ""));
|
|
31
|
+
if (equalsIgnoringCaseOnWindows(resolvedA, resolvedB)) return true;
|
|
32
|
+
if (process.platform !== "win32" && process.platform !== "darwin") return false;
|
|
33
|
+
return equalsIgnoringCaseOnWindows(canonicalizePath(resolvedA), canonicalizePath(resolvedB));
|
|
34
|
+
}
|
|
35
|
+
async function comparableDirectoryPath(candidatePath) {
|
|
36
|
+
const resolvedPath = path.resolve(String(candidatePath || ""));
|
|
37
|
+
let canonicalPath;
|
|
38
|
+
try {
|
|
39
|
+
canonicalPath = await realpathNative(resolvedPath);
|
|
40
|
+
} catch {
|
|
41
|
+
canonicalPath = resolvedPath;
|
|
42
|
+
}
|
|
43
|
+
if (process.platform !== "win32") return canonicalPath;
|
|
44
|
+
return canonicalPath.toLowerCase();
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { unrefTimer as a, DEFAULT_TIMER_FNS as i, comparableDirectoryPath as n, isSameDirectoryPath as r, canonicalizePath as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as TaskTitle, Nt as SessionPrLinks, Pn as PrFlowsSettings, Xn as repoParts } from "./session-qwJv402s.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as FIXED_PORT_RANGE, Et as USAGE_INTEGER_RANGES, J as WorkflowsSettingsUpdate, L as DISCORD_CHANNEL_NAME_RE, Q as COMMUNITY_INTERVAL_MINUTES_RANGE, R as SKILL_NAME_RE, St as REPLAY_BUFFER_KB_RANGE, X as BRANCH_GC_INTERVAL_MS_RANGE, Z as BRANCH_GC_STALE_DAYS_RANGE, _ as AgentSetup, _t as POSTHOG_TRAFFIC_BASELINE_RANGE, at as MEMORY_RESERVE_MB_RANGE, bt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, ct as POSITIVE_NUMBER_RANGE, d as GitObjectSha, dt as POSTHOG_INTERVAL_RANGE, ft as POSTHOG_INVESTIGATION_TIMEOUT_RANGE, gt as POSTHOG_RECURRENCE_WINDOW_RANGE, ht as POSTHOG_PROJECT_ID_RANGE, i as HostEntries, it as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, lt as POSTHOG_ESCALATION_RANGE, m as RaceId, mt as POSTHOG_MIN_USERS_RANGE, pt as POSTHOG_MAX_CONCURRENT_RANGE, q as WorkflowsSettings, sn as UpdateChannel, st as PORT_RANGE, ut as POSTHOG_FIX_TIMEOUT_RANGE, vt as POSTHOG_TRAFFIC_COOLDOWN_RANGE, wt as TASK_TITLE_TIMEOUT_RANGE, xt as POSTHOG_TRANSIENT_RECURRENCE_RANGE, yt as POSTHOG_TRAFFIC_MIN_USERS_RANGE } from "./control-messages-Db2YYhMv.js";
|
|
3
3
|
import { c as QuestionManagerSettings } from "./question-manager-DC7Vhfzr.js";
|
|
4
4
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,46 +1,19 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as equalsIgnoringCaseOnWindows, r as isPathInside } from "./paths-Bu4eH1Yd.js";
|
|
3
|
+
import { o as packageRoot } from "./runtime-paths-BYZiXmTG.js";
|
|
3
4
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
5
|
import { An as PrFlowRule, Hn as prFlowRulesJsonSchema, Mn as PrFlowSourceCommand, O as SESSION_COMMANDS, Sn as PrFlowCommand, kn as PrFlowPrAction } from "./session-qwJv402s.js";
|
|
5
|
-
import { $ as
|
|
6
|
+
import { $ as FIXED_PORT_RANGE, At as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, Ct as REVIEWS_TURN_LIMIT_RANGE, Dt as USAGE_RETAIN_DAYS_RANGE, Et as USAGE_INTEGER_RANGES, Ot as USAGE_SCAN_INTERVAL_RANGE, Q as COMMUNITY_INTERVAL_MINUTES_RANGE, Qt as DASHBOARD_VIEWS, St as REPLAY_BUFFER_KB_RANGE, Tt as USAGE_BUDGET_RANGE, _t as POSTHOG_TRAFFIC_BASELINE_RANGE, at as MEMORY_RESERVE_MB_RANGE, bt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, ct as POSITIVE_NUMBER_RANGE, et as FLYING_ANIMALS_DEFAULTS, ht as POSTHOG_PROJECT_ID_RANGE, in as OPERATOR_SURFACES, it as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, kt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, nn as ONBOARDING_STEP_STATES, nt as FLYING_ANIMALS_GAP_RANGE, on as UPDATE_CHANNELS, ot as NON_NEGATIVE_NUMBER_RANGE, rn as OPERATOR_ACTIONS_BY_SURFACE, rt as FLYING_ANIMALS_SCALE_RANGE, st as PORT_RANGE, tn as ONBOARDING_STEPS, tt as FLYING_ANIMALS_DURATION_RANGE, u as HintFeature, ut as POSTHOG_FIX_TIMEOUT_RANGE, wt as TASK_TITLE_TIMEOUT_RANGE, y as DEFAULT_MODELS, yt as POSTHOG_TRAFFIC_MIN_USERS_RANGE } from "./control-messages-Db2YYhMv.js";
|
|
6
7
|
import { l as QuestionRule } from "./question-manager-DC7Vhfzr.js";
|
|
7
8
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
8
|
-
import { d as BranchGcFileSettings, f as USAGE_COST_MODES, i as Config, m as normalizeLegacyConfigNumbers, n as BUILTIN_AGENT_IDS, s as RUNTIME_CONFIG_SCALAR_KEYS, t as AGENT_ID_SHAPE_MESSAGE, u as configIssueMessage } from "./config-
|
|
9
|
-
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-
|
|
9
|
+
import { d as BranchGcFileSettings, f as USAGE_COST_MODES, i as Config, m as normalizeLegacyConfigNumbers, n as BUILTIN_AGENT_IDS, s as RUNTIME_CONFIG_SCALAR_KEYS, t as AGENT_ID_SHAPE_MESSAGE, u as configIssueMessage } from "./config-CdEJXhF0.js";
|
|
10
|
+
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
11
|
+
import { i as DEFAULT_TIMER_FNS, t as canonicalizePath } from "./canonical-paths-M4JscBu0.js";
|
|
10
12
|
import fs from "node:fs";
|
|
11
13
|
import path from "node:path";
|
|
12
14
|
import os from "node:os";
|
|
13
15
|
import { z } from "zod";
|
|
14
|
-
import { promisify } from "node:util";
|
|
15
16
|
import crypto, { createHash } from "node:crypto";
|
|
16
|
-
//#region shared/canonical-paths.ts
|
|
17
|
-
var realpathNative = promisify(fs.realpath.native);
|
|
18
|
-
function canonicalizePath(p) {
|
|
19
|
-
try {
|
|
20
|
-
return fs.realpathSync.native(p);
|
|
21
|
-
} catch {
|
|
22
|
-
return p;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function isSameDirectoryPath(a, b) {
|
|
26
|
-
const resolvedA = path.resolve(String(a || ""));
|
|
27
|
-
const resolvedB = path.resolve(String(b || ""));
|
|
28
|
-
if (equalsIgnoringCaseOnWindows(resolvedA, resolvedB)) return true;
|
|
29
|
-
if (process.platform !== "win32" && process.platform !== "darwin") return false;
|
|
30
|
-
return equalsIgnoringCaseOnWindows(canonicalizePath(resolvedA), canonicalizePath(resolvedB));
|
|
31
|
-
}
|
|
32
|
-
async function comparableDirectoryPath(candidatePath) {
|
|
33
|
-
const resolvedPath = path.resolve(String(candidatePath || ""));
|
|
34
|
-
let canonicalPath;
|
|
35
|
-
try {
|
|
36
|
-
canonicalPath = await realpathNative(resolvedPath);
|
|
37
|
-
} catch {
|
|
38
|
-
canonicalPath = resolvedPath;
|
|
39
|
-
}
|
|
40
|
-
if (process.platform !== "win32") return canonicalPath;
|
|
41
|
-
return canonicalPath.toLowerCase();
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
17
|
//#region server/core/config-secrets-core.ts
|
|
45
18
|
var ENV_SECRET_BINDINGS = Object.freeze([
|
|
46
19
|
{
|
|
@@ -3974,20 +3947,6 @@ function isExperimentalBuild(version) {
|
|
|
3974
3947
|
return parsed !== null && parsed.experimentalBuildNumber !== null;
|
|
3975
3948
|
}
|
|
3976
3949
|
//#endregion
|
|
3977
|
-
//#region shared/timer-deps.ts
|
|
3978
|
-
var DEFAULT_TIMER_FNS = Object.freeze({
|
|
3979
|
-
setTimeoutFn: (fn, ms) => setTimeout(fn, ms),
|
|
3980
|
-
clearTimeoutFn: (handle) => clearTimeout(handle),
|
|
3981
|
-
setIntervalFn: (fn, ms) => setInterval(fn, ms),
|
|
3982
|
-
clearIntervalFn: (handle) => clearInterval(handle)
|
|
3983
|
-
});
|
|
3984
|
-
function unrefTimer(handle) {
|
|
3985
|
-
if (typeof handle !== "object" || handle === null) return handle;
|
|
3986
|
-
if (!("unref" in handle) || typeof handle.unref !== "function") return handle;
|
|
3987
|
-
handle.unref();
|
|
3988
|
-
return handle;
|
|
3989
|
-
}
|
|
3990
|
-
//#endregion
|
|
3991
3950
|
//#region server/core/branch-gc-core.ts
|
|
3992
3951
|
var SESSION_BRANCH_PREFIX = "glimmervoid/session/";
|
|
3993
3952
|
var DEFAULT_BRANCH_GC_PREFIXES = [SESSION_BRANCH_PREFIX, "worktree-agent-"];
|
|
@@ -4794,4 +4753,4 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
4794
4753
|
};
|
|
4795
4754
|
}
|
|
4796
4755
|
//#endregion
|
|
4797
|
-
export {
|
|
4756
|
+
export { buildExceptionProperties as $, displayText as A, isExperimentalSetting as B, SECRET_PRESENCE_SUFFIX as C, SETTINGS_INDEX as D, validateSettingsBlock as E, settingsGroupOf as F, parseDataAttach as G, FAST_TERMINAL_CLOSE_MS as H, settingsOf as I, TELEMETRY_BATCH_URL as J, parseDataClientMessage as K, valueAtPath as L, parsePosthogProjectSelection as M, scoreSettingsSearch as N, cloneValue as O, setValueAtPath as P, buildBrowserExceptionProperties as Q, FILE_ONLY_GROUPS as R, isSettingAvailable as S, settingsBlockSpecFor as T, LOGGED_FAST_CLOSE_COUNTS as U, DEEP_HISTORY_SCROLLBACK_LINES as V, describeDataAttach as W, adapterBucket as X, TELEMETRY_FLAGS_URL as Y, buildAiGenerationEvents as Z, sessionIdFromBranch as _, stableConfigKey as _t, generateProjectId as a, decideRemoteTelemetryState as at, compareReleaseVersions as b, resolveConfigPath as c, nodeMajorVersion as ct, DEFAULT_CONFIG as d, DashboardTelemetryReport as dt, buildPersonProperties as et, DEFAULT_BRANCH_GC_PREFIXES as f, PendingCrashReport as ft, planWorktreeGc as g, readEnvSecrets as gt, planBranchGc as h, ENV_SECRET_BINDINGS as ht, ensureProjectIds as i, decideIsDevInstall as it, hasScaledUnit as j, deleteValueAtPath as k, saveConfigFileOnce as l, parsePosthogReleaseId as lt, matchedPrefix as m, TelemetryState as mt, createConfigStore as n, claudeAccountUuidOf as nt, glimmervoidHomeDir as o, decideTelemetryConsent as ot, isGcCandidateWorktree as p, TELEMETRY_EVENT_SCHEMAS as pt, FIRST_RUN_NOTICE as q, ABORT_CONFIG_SAVE as r, codexUserIdOf as rt, loadConfigFile as s, exceptionFingerprint as st, IS_EXPERIMENTAL_BUILD as t, classifySessionExit as tt, validateConfig as u, resolveProjectToken as ut, usablePrefixes as v, withEnvSecrets as vt, mergeSettingsBlock as w, isExperimentalBuild as x, worktreeIntegrationTips as y, SETTINGS_REGISTRY as z };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-D_HB8r-V.js";
|
|
@@ -3197,4 +3197,4 @@ var serverVariants = [
|
|
|
3197
3197
|
];
|
|
3198
3198
|
z.discriminatedUnion("type", serverVariants);
|
|
3199
3199
|
//#endregion
|
|
3200
|
-
export {
|
|
3200
|
+
export { FIXED_PORT_RANGE as $, GithubTeam as $t, MinedPrReviewData as A, WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE as At, GithubPrDetailNode as B, HookEnvelope as Bt, BenchmarkId as C, REVIEWS_TURN_LIMIT_RANGE as Ct, BenchmarkSuite as D, USAGE_RETAIN_DAYS_RANGE as Dt, BenchmarkStatus as E, USAGE_INTEGER_RANGES as Et, CommunityState as F, IssuesSearchResponse as Ft, WorkflowCommentBody as G, CoherenceJournalOutput as Gt, GithubPrLightSearchNode as H, MAX_RAW_LINE_CHARS as Ht, CommunityVerdict as I, IssuesState as It, WorkflowsSettingsUpdate as J, CHANGES_POLL_INTERVAL_MS as Jt, WorkflowLabelName as K, ChangeMap as Kt, DISCORD_CHANNEL_NAME_RE as L, IssuesStatus as Lt, CommunityActionRequest as M, GithubIssueResponse as Mt, CommunityDraft as N, IssueKey as Nt, CommitComparison as O, USAGE_SCAN_INTERVAL_RANGE as Ot, CommunityItem as P, IssueUpdate as Pt, COMMUNITY_INTERVAL_MINUTES_RANGE as Q, DASHBOARD_VIEWS as Qt, SKILL_NAME_RE as R, issuePullRequestStateFromGithub as Rt, BenchmarkCase as S, REPLAY_BUFFER_KB_RANGE as St, BenchmarkRun as T, USAGE_BUDGET_RANGE as Tt, GithubPrsFrame as U, TraceCheckpoint as Ut, GithubPrKey as V, SessionSetup as Vt, comparablePrKey as W, TraceRecord as Wt, BRANCH_GC_INTERVAL_MS_RANGE as X, CLIENT_LOG_TEXT_MAX_CHARS as Xt, WorkflowsState as Y, CHANGES_WATCH_LEASE_MS as Yt, BRANCH_GC_STALE_DAYS_RANGE as Z, CONTROL_FRAME_MAX_BYTES as Zt, AgentSetup as _, planTitle as _n, POSTHOG_TRAFFIC_BASELINE_RANGE as _t, HostEntry as a, pullRequestKeyFromReference as an, MEMORY_RESERVE_MB_RANGE as at, EFFORT_OPTION_ID as b, POSTHOG_TRAFFIC_MULTIPLIER_RANGE as bt, HINT_FEATURES as c, UpdateJournal as cn, POSITIVE_NUMBER_RANGE as ct, GitObjectSha as d, PLAN_HOOK_OUTPUT_MAX_CHARS as dn, POSTHOG_INTERVAL_RANGE as dt, InstallFlavor as en, FLYING_ANIMALS_DEFAULTS as et, JudgeResult as f, PLAN_RESULT_HOOK_EVENT as fn, POSTHOG_INVESTIGATION_TIMEOUT_RANGE as ft, RaceSpec as g, parseExitPlanModeHookPayload as gn, POSTHOG_RECURRENCE_WINDOW_RANGE as gt, RaceRecord as h, PlanRevision as hn, POSTHOG_PROJECT_ID_RANGE as ht, HostEntries as i, OPERATOR_SURFACES as in, KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE as it, PrCheckoutCaseInput as j, GithubIssuePullRequestsRepository as jt, MergedPrListing as k, WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE as kt, HINT_VIEW_BY_FEATURE as l, PLAN_BODY_CAP_BYTES as ln, POSTHOG_ESCALATION_RANGE as lt, RaceId as m, PlanDecision as mn, POSTHOG_MIN_USERS_RANGE as mt, PackApproveRequest as n, ONBOARDING_STEP_STATES as nn, FLYING_ANIMALS_GAP_RANGE as nt, HubPhoneAlertFrame as o, UPDATE_CHANNELS as on, NON_NEGATIVE_NUMBER_RANGE as ot, RACE_JUDGE_AGENT as p, PLAN_TOOL_NAME as pn, POSTHOG_MAX_CONCURRENT_RANGE as pt, WorkflowsSettings as q, changeMapFactId as qt, HUB_PHONE_ALERT_TEXT_MAX as r, OPERATOR_ACTIONS_BY_SURFACE as rn, FLYING_ANIMALS_SCALE_RANGE as rt, FeatureHintState as s, UpdateChannel as sn, PORT_RANGE as st, ClientMessage as t, ONBOARDING_STEPS as tn, FLYING_ANIMALS_DURATION_RANGE as tt, HintFeature as u, PLAN_HOOK_EVENT as un, POSTHOG_FIX_TIMEOUT_RANGE as ut, CATALOG_AGENT_IDS as v, POSTHOG_TRAFFIC_COOLDOWN_RANGE as vt, BenchmarkJudgement as w, TASK_TITLE_TIMEOUT_RANGE as wt, BenchmarkActionRequest as x, POSTHOG_TRANSIENT_RECURRENCE_RANGE as xt, DEFAULT_MODELS as y, POSTHOG_TRAFFIC_MIN_USERS_RANGE as yt, GithubPr as z, HTTP_URL_RE as zt };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { s as relayPath } from "./runtime-paths-
|
|
2
|
+
import { s as relayPath } from "./runtime-paths-BYZiXmTG.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { n as buildAgentEnv } from "./spawn-env-CoOq-qwL.js";
|
|
5
4
|
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
5
|
+
import { n as buildAgentEnv } from "./spawn-env-CoOq-qwL.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import os from "node:os";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { o as SANE_YOLO_PATH_ENV, s as saneYoloEnv } from "./sane-yolo-YyMaZ6jg.js";
|
|
2
|
+
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
3
|
+
//#region session/core/hook-tools.ts
|
|
4
|
+
function toForwardSlashes(commandPath) {
|
|
5
|
+
return commandPath.replace(/\\/g, "/");
|
|
6
|
+
}
|
|
7
|
+
function codexGroup(command, matcher = "Bash") {
|
|
8
|
+
if (!command) return null;
|
|
9
|
+
return `{matcher='${matcher}',hooks=[{type='command',command='${command}'}]}`;
|
|
10
|
+
}
|
|
11
|
+
function posthogToolMatcher(tool) {
|
|
12
|
+
return `^mcp__${tool.serverName ?? ""}__`;
|
|
13
|
+
}
|
|
14
|
+
function posthogGateCommand(tool) {
|
|
15
|
+
return `"${toForwardSlashes(tool.interpreterPath ?? "node")}" "${toForwardSlashes(tool.binPath)}" ${tool.serverName ?? ""} || exit 2`;
|
|
16
|
+
}
|
|
17
|
+
var HOOK_TOOLS = {
|
|
18
|
+
saneYolo: {
|
|
19
|
+
capability: "saneYolo",
|
|
20
|
+
purpose: "Sane YOLO catastrophic command protection",
|
|
21
|
+
env: (tool, homeDir) => ({
|
|
22
|
+
[SANE_YOLO_PATH_ENV]: tool.binPath,
|
|
23
|
+
...saneYoloEnv(homeDir)
|
|
24
|
+
}),
|
|
25
|
+
claudeEntry: (tool) => ({
|
|
26
|
+
matcher: "Bash|PowerShell|Monitor|Read|Edit|Write|MultiEdit|NotebookEdit|Glob|Grep",
|
|
27
|
+
hooks: [{
|
|
28
|
+
type: "command",
|
|
29
|
+
command: `node "${toForwardSlashes(tool.binPath)}" hook --coding-cli`
|
|
30
|
+
}]
|
|
31
|
+
}),
|
|
32
|
+
codexGroup: (tool) => codexGroup(buildHookCommand(tool.binPath, "hook", ["--codex"])),
|
|
33
|
+
codexTrustedArgs: () => []
|
|
34
|
+
},
|
|
35
|
+
posthogReadGate: {
|
|
36
|
+
capability: "hooks",
|
|
37
|
+
purpose: "Read-only PostHog MCP access for lanes",
|
|
38
|
+
env: () => ({}),
|
|
39
|
+
claudeEntry: (tool) => ({
|
|
40
|
+
matcher: posthogToolMatcher(tool),
|
|
41
|
+
hooks: [{
|
|
42
|
+
type: "command",
|
|
43
|
+
command: posthogGateCommand(tool)
|
|
44
|
+
}]
|
|
45
|
+
}),
|
|
46
|
+
codexGroup: (tool) => codexGroup(posthogGateCommand(tool), posthogToolMatcher(tool)),
|
|
47
|
+
codexTrustedArgs: (tool) => [
|
|
48
|
+
"-c",
|
|
49
|
+
"features.hooks=true",
|
|
50
|
+
"-c",
|
|
51
|
+
`mcp_servers.${tool.serverName ?? ""}.default_tools_approval_mode="approve"`
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function mergeCodexPreToolUse(groups) {
|
|
56
|
+
if (groups.length === 0) return [];
|
|
57
|
+
return ["-c", `hooks.PreToolUse=[${groups.join(",")}]`];
|
|
58
|
+
}
|
|
59
|
+
function isHookToolId(name) {
|
|
60
|
+
return Object.hasOwn(HOOK_TOOLS, name);
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { isHookToolId as n, mergeCodexPreToolUse as r, HOOK_TOOLS as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
-
import { i as HostEntries } from "./control-messages-
|
|
2
|
+
import { i as HostEntries } from "./control-messages-Db2YYhMv.js";
|
|
3
3
|
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
4
|
-
import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-
|
|
5
|
-
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-
|
|
4
|
+
import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-CUflbwkh.js";
|
|
5
|
+
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-6ASjgo2W.js";
|
|
6
6
|
//#region server/hosts/host-cli.ts
|
|
7
7
|
var DEFAULT_DASHBOARD_PORT = 3e3;
|
|
8
8
|
function registeredHosts() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as HostEntry } from "./control-messages-
|
|
1
|
+
import { a as HostEntry } from "./control-messages-Db2YYhMv.js";
|
|
2
2
|
//#region server/hosts/core/host-registry-core.ts
|
|
3
3
|
var LOOPBACK_TARGET_RE = /^(?:[^@]*@)?(?:localhost|127(?:\.\d{1,3}){3}|\[?::1\]?|0\.0\.0\.0)$/i;
|
|
4
4
|
function addHostTo(hosts, candidate) {
|