glimmervoid 0.51.1-next.655 → 0.51.1-next.656
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 +24 -19
- package/dist/chunks/{adapters-QYejudMO.js → adapters-BBs-OckB.js} +10 -10
- package/dist/chunks/{adapters-BU37FLqo.js → adapters-CLSQ3VXb.js} +1 -1
- package/dist/chunks/{agent-api-cli-DgVeVa0h.js → agent-api-cli-Bg94bZH6.js} +3 -3
- package/dist/chunks/{agent-api-cli-m2vQhZQA.js → agent-api-cli-DDiInfYR.js} +1 -1
- package/dist/chunks/{agent-api-core-CWPNeptA.js → agent-api-core-D6OOPWzo.js} +26 -2
- package/dist/chunks/{hook-command-core-5G0De2KV.js → agent-config-DDpOIcFv.js} +1 -17
- package/dist/chunks/{agent-home-DGjtaaCS.js → agent-home-Bt3Itm9c.js} +1 -1
- package/dist/chunks/agent-home-Chl-ukFf.js +1 -0
- package/dist/chunks/agent-home-core-3HONviqr.js +1 -0
- package/dist/chunks/{agent-home-core-8U0YNRUx.js → agent-home-core-BGvFYDNV.js} +2 -1
- package/dist/chunks/{agent-setup-cli-BnfdHSmi.js → agent-setup-cli-BMakPgSm.js} +1 -1
- package/dist/chunks/child-process-safe-BQXXguZm.js +1 -0
- package/dist/chunks/{child-process-safe-BCOoKfxG.js → child-process-safe-D-aYiDnX.js} +25 -1
- package/dist/chunks/{config-Cdx4cMno.js → config-DLiW1cu2.js} +33 -3
- package/dist/chunks/config-store--XCw6Ia5.js +1 -0
- package/dist/chunks/{config-store-DVWnxI-S.js → config-store-N024BRC9.js} +128 -2
- package/dist/chunks/{git-version-xS1GFU8P.js → git-version-5bFHvYor.js} +1 -1
- package/dist/chunks/{grok-YfkRRPzE.js → grok-DBVCL80q.js} +2 -2
- package/dist/chunks/hook-command-core-qTNK-xMF.js +17 -0
- package/dist/chunks/{kimi-DuFGEMHP.js → kimi-Bz8ag6OP.js} +6 -6
- package/dist/chunks/kimi-Do62c3Gf.js +1 -0
- package/dist/chunks/{main-7oweMpoV.js → main-BOq2WFyR.js} +659 -52
- package/dist/chunks/{pair-cli-BufdmSlv.js → pair-cli-BykDnA81.js} +2 -2
- package/dist/chunks/pr-flows-cli-3G9O9RVx.js +233 -0
- package/dist/chunks/pr-flows-external-Cot_-U0y.js +497 -0
- package/dist/chunks/{remote-config-Bgd2cJp5.js → remote-config-B7X3OA4c.js} +1 -1
- package/dist/chunks/{session-D-C2x8yg.js → session-BSGnvWLZ.js} +197 -2
- package/dist/chunks/{settings-cli-79NvDbPA.js → settings-cli-9Sl_QsOH.js} +22 -5
- package/dist/chunks/{settings-readout-core-BpoxjFmz.js → settings-readout-core-Bmtw1P7k.js} +4 -2
- package/dist/chunks/{shown-files-core-Dpas35wM.js → shown-files-core-Bi-g66pK.js} +1 -1
- package/dist/chunks/{spawn-env-BdKZMEme.js → spawn-env-BmKhfv3B.js} +8 -3
- package/dist/chunks/{ssh-sign-cli-BoN-bVK9.js → ssh-sign-cli-bUndk6hJ.js} +3 -3
- package/dist/client/assets/{action-status-DaZn2p-M.js → action-status-7uYFqQnB.js} +1 -1
- package/dist/client/assets/action-status-7uYFqQnB.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-eKPVeE_d.js → benchmark-panel-CoVhGRiw.js} +1 -1
- package/dist/client/assets/benchmark-panel-CoVhGRiw.js.br +0 -0
- package/dist/client/assets/{boards-view-DH5Nl2gd.js → boards-view-BtU9BBNK.js} +1 -1
- package/dist/client/assets/boards-view-BtU9BBNK.js.br +0 -0
- package/dist/client/assets/button-CcMsoQzN.js +1 -0
- package/dist/client/assets/button-CcMsoQzN.js.br +0 -0
- package/dist/client/assets/{card-registry-CRupHUTh.js → card-registry-DK9v3_RQ.js} +1 -1
- package/dist/client/assets/card-registry-DK9v3_RQ.js.br +0 -0
- package/dist/client/assets/{celebration-player-izW1b7ma.js → celebration-player-DOmLClnR.js} +1 -1
- package/dist/client/assets/celebration-player-DOmLClnR.js.br +0 -0
- package/dist/client/assets/{community-panel-IGnuBDLD.js → community-panel-DQcP6j2q.js} +1 -1
- package/dist/client/assets/community-panel-DQcP6j2q.js.br +0 -0
- package/dist/client/assets/{control-ws-DjeFoTOi.js → control-ws-CcK6cfLo.js} +1 -1
- package/dist/client/assets/control-ws-CcK6cfLo.js.br +0 -0
- package/dist/client/assets/{dialogs-CDwLnWL7.js → dialogs-BWClap32.js} +1 -1
- package/dist/client/assets/dialogs-BWClap32.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-D1a-JD3R.js → doc-editor-ui-Uzuh6af0.js} +1 -1
- package/dist/client/assets/doc-editor-ui-Uzuh6af0.js.br +0 -0
- package/dist/client/assets/{feature-hint-BZc6kib8.js → feature-hint-qcLHjUKL.js} +1 -1
- package/dist/client/assets/feature-hint-qcLHjUKL.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-AbYvXQwl.js → first-run-checklist-DIGpCJHv.js} +1 -1
- package/dist/client/assets/first-run-checklist-DIGpCJHv.js.br +0 -0
- package/dist/client/assets/{flying-animal-preview-mnfMatlZ.js → flying-animal-preview-BGQQ0vpO.js} +1 -1
- package/dist/client/assets/{hooks-panel-CzJ5A47A.js → hooks-panel-DznxjwK-.js} +1 -1
- package/dist/client/assets/hooks-panel-DznxjwK-.js.br +0 -0
- package/dist/client/assets/index-BGlXT__0.js +78 -0
- package/dist/client/assets/index-BGlXT__0.js.br +0 -0
- package/dist/client/assets/index-DYaR8R1T.css +2 -0
- package/dist/client/assets/index-DYaR8R1T.css.br +0 -0
- package/dist/client/assets/{issues-panel-04gvceOh.js → issues-panel-DwB_OuUw.js} +1 -1
- package/dist/client/assets/issues-panel-DwB_OuUw.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-AUOrQB2-.js +11 -0
- package/dist/client/assets/lane-read-token-step-AUOrQB2-.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-qC9hvTLT.css → lane-read-token-step-B9_C2OMY.css} +1 -1
- package/dist/client/assets/lane-read-token-step-B9_C2OMY.css.br +0 -0
- package/dist/client/assets/{modal-BOO8fI5C.js → modal-aIEWJqJZ.js} +1 -1
- package/dist/client/assets/modal-aIEWJqJZ.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CITUltFT.js +1 -0
- package/dist/client/assets/my-prs-panel-CITUltFT.js.br +0 -0
- package/dist/client/assets/{nyan-cat-Cne_nogo.js → nyan-cat-FdcKECoN.js} +1 -1
- package/dist/client/assets/nyan-cat-FdcKECoN.js.br +0 -0
- package/dist/client/assets/{phone-shell-COZGXXII.js → phone-shell-CBCVFoGv.js} +1 -1
- package/dist/client/assets/phone-shell-CBCVFoGv.js.br +0 -0
- package/dist/client/assets/{plan-face-Cq3mK0GR.js → plan-face-mWUTOUaK.js} +2 -2
- package/dist/client/assets/plan-face-mWUTOUaK.js.br +0 -0
- package/dist/client/assets/{plan-render-DgQZidnY.js → plan-render-n_PFvS9T.js} +1 -1
- package/dist/client/assets/plan-render-n_PFvS9T.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-D-xyODdy.js → pr-queue-columns-BLQB68aP.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BLQB68aP.js.br +3 -0
- package/dist/client/assets/{radar-panel-DSMsCEWY.js → radar-panel-B1h-yPzj.js} +1 -1
- package/dist/client/assets/radar-panel-B1h-yPzj.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-VNO7hS-b.js → repo-roots-adder-BIUHC9Ri.js} +1 -1
- package/dist/client/assets/repo-roots-adder-BIUHC9Ri.js.br +0 -0
- package/dist/client/assets/{resume-dialog-Bj2clUGl.js → resume-dialog-tPsKUJ3O.js} +1 -1
- package/dist/client/assets/resume-dialog-tPsKUJ3O.js.br +0 -0
- package/dist/client/assets/review-queue-panel-D3-6JboL.js +1 -0
- package/dist/client/assets/review-queue-panel-D3-6JboL.js.br +0 -0
- package/dist/client/assets/{session-tick-C3h6EIfL.js → session-tick-xhpsdS_C.js} +1 -1
- package/dist/client/assets/session-tick-xhpsdS_C.js.br +0 -0
- package/dist/client/assets/settings-panel-DsniemSU.js +4 -0
- package/dist/client/assets/settings-panel-DsniemSU.js.br +0 -0
- package/dist/client/assets/{setup-step-CzN01hWV.js → setup-step-BimNP-SY.js} +1 -1
- package/dist/client/assets/setup-step-BimNP-SY.js.br +3 -0
- package/dist/client/assets/{shown-face-COnf3QaU.js → shown-face-DejGJFtk.js} +1 -1
- package/dist/client/assets/shown-face-DejGJFtk.js.br +0 -0
- package/dist/client/assets/team-review-settings-core-BHv0yl1m.js +1 -0
- package/dist/client/assets/team-review-settings-core-BHv0yl1m.js.br +0 -0
- package/dist/client/assets/{trace-panel-_bZnT2ka.js → trace-panel-Dq3vRX18.js} +1 -1
- package/dist/client/assets/trace-panel-Dq3vRX18.js.br +0 -0
- package/dist/client/assets/{ui-prefs-DgQmPqwl.js → ui-prefs-BpYWbC7l.js} +1 -1
- package/dist/client/assets/ui-prefs-BpYWbC7l.js.br +0 -0
- package/dist/client/assets/{usage-panel-DifWXVIQ.js → usage-panel-CTwhMakg.js} +1 -1
- package/dist/client/assets/usage-panel-CTwhMakg.js.br +0 -0
- package/dist/client/assets/{your-day-tip-C8Gae4uC.js → your-day-tip-B_hdSXzz.js} +1 -1
- package/dist/client/assets/your-day-tip-B_hdSXzz.js.br +0 -0
- package/dist/client/assets/{zod-HKxiE8lw.js → zod-_N0uRWDY.js} +4 -4
- package/dist/client/assets/zod-_N0uRWDY.js.br +0 -0
- package/dist/client/index.html +10 -10
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/dist/session/hook-tool-relay.js +1 -1
- package/dist/session/statusline-relay.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-home-B3ELUBLU.js +0 -1
- package/dist/chunks/agent-home-core-C7GFm7jA.js +0 -1
- package/dist/chunks/child-process-safe-BKjzSEYd.js +0 -1
- package/dist/chunks/config-store-CHn9TGw2.js +0 -1
- package/dist/chunks/kimi-Bl8GFqqA.js +0 -1
- package/dist/client/assets/action-status-DaZn2p-M.js.br +0 -0
- package/dist/client/assets/benchmark-panel-eKPVeE_d.js.br +0 -0
- package/dist/client/assets/boards-view-DH5Nl2gd.js.br +0 -0
- package/dist/client/assets/button-C22nHZZN.js +0 -1
- package/dist/client/assets/button-C22nHZZN.js.br +0 -0
- package/dist/client/assets/card-registry-CRupHUTh.js.br +0 -0
- package/dist/client/assets/celebration-player-izW1b7ma.js.br +0 -0
- package/dist/client/assets/community-panel-IGnuBDLD.js.br +0 -0
- package/dist/client/assets/control-ws-DjeFoTOi.js.br +0 -0
- package/dist/client/assets/dialogs-CDwLnWL7.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-D1a-JD3R.js.br +0 -0
- package/dist/client/assets/feature-hint-BZc6kib8.js.br +0 -0
- package/dist/client/assets/first-run-checklist-AbYvXQwl.js.br +0 -0
- package/dist/client/assets/hooks-panel-CzJ5A47A.js.br +0 -0
- package/dist/client/assets/index-CUDCAuhU.js +0 -78
- package/dist/client/assets/index-CUDCAuhU.js.br +0 -0
- package/dist/client/assets/index-DHdhy_HA.css +0 -2
- package/dist/client/assets/index-DHdhy_HA.css.br +0 -0
- package/dist/client/assets/issues-panel-04gvceOh.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-BdVZuyD9.js +0 -10
- package/dist/client/assets/lane-read-token-step-BdVZuyD9.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-qC9hvTLT.css.br +0 -0
- package/dist/client/assets/modal-BOO8fI5C.js.br +0 -0
- package/dist/client/assets/my-prs-panel-Aur5TZEC.js +0 -1
- package/dist/client/assets/my-prs-panel-Aur5TZEC.js.br +0 -0
- package/dist/client/assets/nyan-cat-Cne_nogo.js.br +0 -0
- package/dist/client/assets/phone-shell-COZGXXII.js.br +0 -0
- package/dist/client/assets/plan-face-Cq3mK0GR.js.br +0 -0
- package/dist/client/assets/plan-render-DgQZidnY.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-D-xyODdy.js.br +0 -0
- package/dist/client/assets/radar-panel-DSMsCEWY.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-VNO7hS-b.js.br +0 -0
- package/dist/client/assets/resume-dialog-Bj2clUGl.js.br +0 -0
- package/dist/client/assets/review-queue-panel-0APZme-J.js +0 -1
- package/dist/client/assets/review-queue-panel-0APZme-J.js.br +0 -0
- package/dist/client/assets/session-tick-C3h6EIfL.js.br +0 -0
- package/dist/client/assets/settings-panel-3lOeMKpe.js +0 -4
- package/dist/client/assets/settings-panel-3lOeMKpe.js.br +0 -0
- package/dist/client/assets/setup-step-CzN01hWV.js.br +0 -3
- package/dist/client/assets/shown-face-COnf3QaU.js.br +0 -0
- package/dist/client/assets/team-review-settings-core-CzJi_KDZ.js +0 -1
- package/dist/client/assets/team-review-settings-core-CzJi_KDZ.js.br +0 -0
- package/dist/client/assets/trace-panel-_bZnT2ka.js.br +0 -0
- package/dist/client/assets/ui-prefs-DgQmPqwl.js.br +0 -0
- package/dist/client/assets/usage-panel-DifWXVIQ.js.br +0 -0
- package/dist/client/assets/your-day-tip-C8Gae4uC.js.br +0 -0
- package/dist/client/assets/zod-HKxiE8lw.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -3,11 +3,11 @@ 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 { a as packageRoot } from "../chunks/runtime-paths-CYwF658V.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-
|
|
7
|
-
import { a as execSync } from "../chunks/child-process-safe-
|
|
8
|
-
import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-
|
|
6
|
+
import { t as AGENT_API_VERBS } from "../chunks/session-BSGnvWLZ.js";
|
|
7
|
+
import { a as execSync } from "../chunks/child-process-safe-D-aYiDnX.js";
|
|
8
|
+
import { nt as isOwnedCommandName, r as agentCommandHelpLines, rt as parseCommand, tt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-D6OOPWzo.js";
|
|
9
9
|
import { t as renderTable } from "../chunks/ascii-figure-core-pDAwtlKO.js";
|
|
10
|
-
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-
|
|
10
|
+
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-5bFHvYor.js";
|
|
11
11
|
import { i as pnpmGlobalBinDir, n as npmGlobalBinDir, r as onPath, t as formatPathNotice } from "../chunks/path-doctor-C23VAqeu.js";
|
|
12
12
|
import fs from "node:fs";
|
|
13
13
|
import path from "node:path";
|
|
@@ -21,7 +21,8 @@ With no command, starts the server.
|
|
|
21
21
|
|
|
22
22
|
Commands:
|
|
23
23
|
doctor Check the install, PATH, agent CLIs and native module, then exit
|
|
24
|
-
settings <cmd> Read and change config.json: list, get, set, unset, search, schema (each takes --json)
|
|
24
|
+
settings <cmd> Read and change config.json: list, get, describe, set, unset, search, schema (each takes --json)
|
|
25
|
+
pr-flows check Check PR flows sources, actions and rules; --pr <url> runs each approved source once
|
|
25
26
|
pair Mint a single-use pairing link for a remote device
|
|
26
27
|
pair --list List paired devices
|
|
27
28
|
pair --revoke <id> Revoke a paired device
|
|
@@ -61,7 +62,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
61
62
|
return await runDoctor() ? 0 : 1;
|
|
62
63
|
},
|
|
63
64
|
pair: async ({ values }) => {
|
|
64
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
65
|
+
const { runPairCli } = await import("../chunks/pair-cli-BykDnA81.js");
|
|
65
66
|
return runPairCli({
|
|
66
67
|
isListing: values.list === true,
|
|
67
68
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -69,15 +70,19 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
69
70
|
});
|
|
70
71
|
},
|
|
71
72
|
agent: async () => {
|
|
72
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
73
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-BMakPgSm.js");
|
|
73
74
|
return runAgentSetupCli();
|
|
74
75
|
},
|
|
75
76
|
settings: async (parsed) => {
|
|
76
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
77
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-9Sl_QsOH.js");
|
|
77
78
|
return runParsedSettingsCli(parsed);
|
|
78
79
|
},
|
|
80
|
+
"pr-flows": async (parsed) => {
|
|
81
|
+
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-3G9O9RVx.js");
|
|
82
|
+
return runPrFlowsCheckCli(parsed);
|
|
83
|
+
},
|
|
79
84
|
"ssh-sign": async ({ rawArgs }) => {
|
|
80
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
85
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-bUndk6hJ.js");
|
|
81
86
|
return runSshSignCli(rawArgs);
|
|
82
87
|
}
|
|
83
88
|
};
|
|
@@ -99,7 +104,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
99
104
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
100
105
|
}
|
|
101
106
|
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) => {
|
|
102
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
107
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-DDiInfYR.js");
|
|
103
108
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
104
109
|
}])]);
|
|
105
110
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -113,7 +118,7 @@ function missingAgentText(agentId) {
|
|
|
113
118
|
}
|
|
114
119
|
async function printSessionLimits() {
|
|
115
120
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
116
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
121
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-DDiInfYR.js");
|
|
117
122
|
const limitsLines = await sessionLimitsHelpLines();
|
|
118
123
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
119
124
|
}
|
|
@@ -170,7 +175,7 @@ async function readDeclaredCustomAgents() {
|
|
|
170
175
|
declared: [],
|
|
171
176
|
error: null
|
|
172
177
|
};
|
|
173
|
-
const { loadConfigFile } = await import("../chunks/config-store
|
|
178
|
+
const { loadConfigFile } = await import("../chunks/config-store--XCw6Ia5.js");
|
|
174
179
|
try {
|
|
175
180
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
176
181
|
if (!loaded.config) return {
|
|
@@ -246,7 +251,7 @@ async function runDoctor() {
|
|
|
246
251
|
}
|
|
247
252
|
switchSection("Agents");
|
|
248
253
|
try {
|
|
249
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
254
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-CLSQ3VXb.js");
|
|
250
255
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
251
256
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
252
257
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -254,12 +259,12 @@ async function runDoctor() {
|
|
|
254
259
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
255
260
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
256
261
|
}
|
|
257
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
262
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BMakPgSm.js");
|
|
258
263
|
const grokSetup = inspectGrokAgentSetup();
|
|
259
264
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
260
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
261
|
-
const { describeAgentHome } = await import("../chunks/agent-home-
|
|
262
|
-
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-
|
|
265
|
+
const { default: kimi } = await import("../chunks/kimi-Do62c3Gf.js");
|
|
266
|
+
const { describeAgentHome } = await import("../chunks/agent-home-Chl-ukFf.js");
|
|
267
|
+
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-3HONviqr.js");
|
|
263
268
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
264
269
|
} catch (err) {
|
|
265
270
|
line("agents", `probe failed: ${firstLine(errorText(err))}`);
|
|
@@ -267,8 +272,8 @@ async function runDoctor() {
|
|
|
267
272
|
switchSection("Sane YOLO");
|
|
268
273
|
try {
|
|
269
274
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-CKqE4LXP.js");
|
|
270
|
-
const { execFileSync } = await import("../chunks/child-process-safe-
|
|
271
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
275
|
+
const { execFileSync } = await import("../chunks/child-process-safe-BQXXguZm.js");
|
|
276
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-BMakPgSm.js");
|
|
272
277
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
273
278
|
line("Sane YOLO", binPath || "not installed");
|
|
274
279
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { a as isMissingFileError, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { d as isPathInside, f as safePathSegment, o as relayPath } from "./runtime-paths-CYwF658V.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Kt as UpdateChannel, Qt as PLAN_TOOL_NAME, Yt as PLAN_HOOK_EVENT, Zt as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, wt as HTTP_URL_RE, zt as InstallFlavor } from "./config-
|
|
3
|
+
import { b as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME, x as CONVERSATION_TOOL_RESULT_HOOK_EVENT, xn as shortSha$1, yn as FULL_SHA_RE } from "./session-BSGnvWLZ.js";
|
|
4
|
+
import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-D-aYiDnX.js";
|
|
5
|
+
import { Kt as UpdateChannel, Qt as PLAN_TOOL_NAME, Yt as PLAN_HOOK_EVENT, Zt as PLAN_RESULT_HOOK_EVENT, c as SHELL_AGENT_ID, wt as HTTP_URL_RE, zt as InstallFlavor } from "./config-DLiW1cu2.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 {
|
|
10
|
-
import { t as
|
|
11
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-
|
|
9
|
+
import { t as buildAgentEnv } from "./spawn-env-BmKhfv3B.js";
|
|
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-DBVCL80q.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 { S as isExperimentalBuild, o as glimmervoidHomeDir, x as compareReleaseVersions } from "./config-store-
|
|
14
|
-
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-
|
|
15
|
-
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-
|
|
16
|
-
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-
|
|
13
|
+
import { S as isExperimentalBuild, o as glimmervoidHomeDir, x as compareReleaseVersions } from "./config-store-N024BRC9.js";
|
|
14
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-Bz8ag6OP.js";
|
|
15
|
+
import { c as CODEX_HOME_PROFILE, f as renderCodexHookTables, n as AGENT_HOME_CONFIG_NAME, p as renderCodexHooksBlock } from "./agent-home-core-BGvFYDNV.js";
|
|
16
|
+
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, s as realAgentHome } from "./agent-home-Bt3Itm9c.js";
|
|
17
17
|
import fs from "node:fs";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import os from "node:os";
|
|
@@ -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-BBs-OckB.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Q as UNIT_STATUSES, l as AgentLimitsReply, nt as WhiteboardAgentReply, r as AGENT_URL_ENV } from "./session-
|
|
2
|
-
import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
1
|
+
import { Q as UNIT_STATUSES, l as AgentLimitsReply, nt as WhiteboardAgentReply, r as AGENT_URL_ENV } from "./session-BSGnvWLZ.js";
|
|
2
|
+
import { J as formatSessionLimits, i as agentCommandSpec, m as isAgentApiVerb, rt as parseCommand, t as AGENT_COMMAND_HELP } from "./agent-api-core-D6OOPWzo.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 { g as layoutBoard, i as describeOverCap, m as boardSvgDocument, y as planSteps } from "./shown-files-core-
|
|
5
|
+
import { g as layoutBoard, i as describeOverCap, m as boardSvgDocument, y as planSteps } from "./shown-files-core-Bi-g66pK.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import http from "node:http";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-
|
|
1
|
+
export { t as askAgentApi, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-Bg94bZH6.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as SESSION_COMMANDS, _ as AgentWhyRequest, a as AgentAnswerRequest, c as AgentEditRequest, d as AgentReadRequest, f as AgentReviewsRequest, g as AgentSpawnRequest, h as AgentSettingsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentSendRequest, rt as WhiteboardAgentRequest, s as AgentCloseRequest, t as AGENT_API_VERBS, u as AgentPullRequestRequest, w as RefinedTaskTitle, z as TASK_TITLE_CONTROL_CHARACTERS } from "./session-
|
|
2
|
-
import { Wt as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
1
|
+
import { T as SESSION_COMMANDS, _ as AgentWhyRequest, a as AgentAnswerRequest, c as AgentEditRequest, d as AgentReadRequest, f as AgentReviewsRequest, g as AgentSpawnRequest, h as AgentSettingsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentSendRequest, rt as WhiteboardAgentRequest, s as AgentCloseRequest, t as AGENT_API_VERBS, u as AgentPullRequestRequest, w as RefinedTaskTitle, z as TASK_TITLE_CONTROL_CHARACTERS } from "./session-BSGnvWLZ.js";
|
|
2
|
+
import { Wt as pullRequestKeyFromReference, l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-DLiW1cu2.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";
|
|
@@ -251,6 +251,12 @@ change it in the dashboard settings or through its environment variable.`,
|
|
|
251
251
|
positionals: SETTING_PATH,
|
|
252
252
|
options: [JSON_OPTION]
|
|
253
253
|
},
|
|
254
|
+
{
|
|
255
|
+
name: "describe",
|
|
256
|
+
summary: "One setting: what it does, its default and, for a structured value, its JSON Schema and an example (needs no config file)",
|
|
257
|
+
positionals: SETTING_PATH,
|
|
258
|
+
options: [JSON_OPTION]
|
|
259
|
+
},
|
|
254
260
|
{
|
|
255
261
|
name: "search",
|
|
256
262
|
summary: "Find settings by title, keyword, key path or section",
|
|
@@ -268,6 +274,24 @@ change it in the dashboard settings or through its environment variable.`,
|
|
|
268
274
|
}
|
|
269
275
|
]
|
|
270
276
|
},
|
|
277
|
+
"pr-flows": {
|
|
278
|
+
name: "pr-flows",
|
|
279
|
+
summary: "Check the PR flows sources, actions and rules in config.json",
|
|
280
|
+
subcommands: [{
|
|
281
|
+
name: "check",
|
|
282
|
+
summary: "Name each entry valid or its error, run each source once against --pr and print each action's expanded command without running it",
|
|
283
|
+
options: [
|
|
284
|
+
{
|
|
285
|
+
name: "pr",
|
|
286
|
+
type: "string",
|
|
287
|
+
valueName: "url",
|
|
288
|
+
summary: "A pull request URL to run the sources against"
|
|
289
|
+
},
|
|
290
|
+
JSON_OPTION,
|
|
291
|
+
CONFIG_OPTION
|
|
292
|
+
]
|
|
293
|
+
}]
|
|
294
|
+
},
|
|
271
295
|
"ssh-sign": {
|
|
272
296
|
name: "ssh-sign",
|
|
273
297
|
summary: "Sign a commit with the operator's forwarded ssh agent (git runs this)",
|
|
@@ -130,20 +130,4 @@ function mcpLaunchFor({ agentId, listenerPort, sessionId, agentToken }) {
|
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
//#endregion
|
|
133
|
-
|
|
134
|
-
var SAFE_PATH_RE = /^[A-Za-z0-9_.:/\\ -]+$/;
|
|
135
|
-
var SAFE_EVENT_RE = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/;
|
|
136
|
-
function buildHookCommand(relayPath, event, argvTail = []) {
|
|
137
|
-
const rawPath = String(relayPath);
|
|
138
|
-
const rawEvent = String(event);
|
|
139
|
-
if (!SAFE_PATH_RE.test(rawPath)) return null;
|
|
140
|
-
if (!SAFE_EVENT_RE.test(rawEvent)) return null;
|
|
141
|
-
if (argvTail.some((argument) => !/^[A-Za-z0-9_-]+$/.test(argument))) return null;
|
|
142
|
-
const forwardSlashedPath = rawPath.replace(/\\/g, "/");
|
|
143
|
-
return `node ${/\s/.test(forwardSlashedPath) ? `"${forwardSlashedPath}"` : forwardSlashedPath} ${rawEvent}${argvTail.length ? ` ${argvTail.join(" ")}` : ""}`;
|
|
144
|
-
}
|
|
145
|
-
function shellQuote(value) {
|
|
146
|
-
return `'${String(value).replace(/'/g, `'\\''`)}'`;
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
export { MCP_CREDENTIAL_ENV as a, parsePresentedCredential as c, KIMI_MCP_CONFIG_NAME as i, shellQuote as n, kimiMcpFiles as o, KIMI_MCP_BASE_NAME as r, mcpLaunchFor as s, buildHookCommand as t };
|
|
133
|
+
export { mcpLaunchFor as a, kimiMcpFiles as i, KIMI_MCP_CONFIG_NAME as n, parsePresentedCredential as o, MCP_CREDENTIAL_ENV as r, KIMI_MCP_BASE_NAME as t };
|
|
@@ -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
3
|
import { p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
4
|
-
import { a as AGENT_HOME_SOURCES_NAME, d as planAgentHome, i as AGENT_HOME_IN_USE_LOCK_NAME, n as AGENT_HOME_CONFIG_NAME, r as AGENT_HOME_CONFLICTS_NAME, t as AGENT_HOME_BASE_NAME, u as fileStampKey } from "./agent-home-core-
|
|
4
|
+
import { a as AGENT_HOME_SOURCES_NAME, d as planAgentHome, i as AGENT_HOME_IN_USE_LOCK_NAME, n as AGENT_HOME_CONFIG_NAME, r as AGENT_HOME_CONFLICTS_NAME, t as AGENT_HOME_BASE_NAME, u as fileStampKey } from "./agent-home-core-BGvFYDNV.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 { t as describeAgentHome } from "./agent-home-Bt3Itm9c.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { l as KIMI_HOME_PROFILE } from "./agent-home-core-BGvFYDNV.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as KIMI_MCP_CONFIG_NAME, t as KIMI_MCP_BASE_NAME } from "./agent-config-DDpOIcFv.js";
|
|
2
|
+
import { t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
2
3
|
import path from "node:path";
|
|
3
4
|
//#region session/core/agent-home-core.ts
|
|
4
5
|
var BLOCK_START = "# >>> glimmervoid hooks (managed, inert outside Glimmervoid) >>>";
|
|
@@ -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-DBVCL80q.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as execFileSync } from "./child-process-safe-D-aYiDnX.js";
|
|
@@ -81,5 +81,29 @@ function spawn(file, ...rest) {
|
|
|
81
81
|
return cp.spawn(file, spawnOptions);
|
|
82
82
|
}
|
|
83
83
|
var execFileAsync = promisify(execFile);
|
|
84
|
+
async function runCommandSafely(command, args, { cwd, env, timeoutMs, maxBufferBytes, signal }) {
|
|
85
|
+
try {
|
|
86
|
+
const { stdout, stderr } = await execFileAsync(command, args, {
|
|
87
|
+
cwd,
|
|
88
|
+
env,
|
|
89
|
+
encoding: "utf8",
|
|
90
|
+
timeout: timeoutMs,
|
|
91
|
+
maxBuffer: maxBufferBytes,
|
|
92
|
+
...signal ? { signal } : {}
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
ok: true,
|
|
96
|
+
stdout,
|
|
97
|
+
stderr
|
|
98
|
+
};
|
|
99
|
+
} catch (error) {
|
|
100
|
+
const failure = error ?? {};
|
|
101
|
+
return {
|
|
102
|
+
ok: false,
|
|
103
|
+
stdout: String(failure.stdout ?? ""),
|
|
104
|
+
stderr: String(failure.stderr || failure.message || "")
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
84
108
|
//#endregion
|
|
85
|
-
export { execSync as a,
|
|
109
|
+
export { execSync as a, runCommandSafely as c, execFileSync as i, spawn as l, execFile as n, hide as o, execFileAsync as r, refuseLaunchesOf as s, assertLaunchable as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as CommitSha, B as TaskTitle, D as SESSION_DOC_PATH_MAX_CHARS, Dt as SessionPrLinks, Et as MyPrsStatus, F as SessionState, G as BoardReview, I as ShownFile, K as BoardSummary, Kt as TeamReviewActionRequest, N as SessionDoc, Ot as pullRequestKeyFormat, P as SessionSnapshot, Pt as GithubReviewDecision, S as CoherenceHooksState, U as Board, V as UnseenOutcome, X as Op, Zt as TeamReviewStatus, _t as MyPrMergeResult, bt as MyPrMergeWhenReadyResult, cn as
|
|
1
|
+
import { At as CommitSha, B as TaskTitle, D as SESSION_DOC_PATH_MAX_CHARS, Dn as GithubPollingRefreshResult, Dt as SessionPrLinks, En as GithubPollingRefreshRequest, Et as MyPrsStatus, F as SessionState, G as BoardReview, I as ShownFile, K as BoardSummary, Kt as TeamReviewActionRequest, N as SessionDoc, On as GithubPrsFreshness, Ot as pullRequestKeyFormat, P as SessionSnapshot, Pt as GithubReviewDecision, S as CoherenceHooksState, Sn as GH_SEGMENT, Tn as repoParts, U as Board, V as UnseenOutcome, X as Op, Zt as TeamReviewStatus, _t as MyPrMergeResult, an as PrFlowApproveRequest, bt as MyPrMergeWhenReadyResult, cn as PrFlowDisposeResult, ct as MyPr, dn as PrFlowSaveRuleRequest, ft as MyPrKeepMergeableRequest, gt as MyPrMergeRequest, hn as PrFlowsStatus, kn as githubPollingShape, kt as repositoryName, ln as PrFlowItemRequest, pn as PrFlowsSettings, pt as MyPrKeepMergeableResult, qt as TeamReviewActionResult, rn as hasRequiredActionHead, sn as PrFlowDisposeRequest, st as LinkedPr, tt as WHITEBOARD_LIMITS, wn as REPO_SLUG_RE, xt as MyPrSearchNode, yt as MyPrMergeWhenReadyRequest, zt as ReviewChecksState } from "./session-BSGnvWLZ.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -467,7 +467,13 @@ var OPERATOR_ACTIONS_BY_SURFACE = Object.freeze({
|
|
|
467
467
|
"merge",
|
|
468
468
|
"keep-mergeable",
|
|
469
469
|
"merge-when-ready",
|
|
470
|
-
"refresh"
|
|
470
|
+
"refresh",
|
|
471
|
+
"pr-flow-dismiss",
|
|
472
|
+
"pr-flow-fix-local",
|
|
473
|
+
"pr-flow-undo",
|
|
474
|
+
"pr-flow-save-rule",
|
|
475
|
+
"pr-flow-approve",
|
|
476
|
+
"pr-flow-run"
|
|
471
477
|
],
|
|
472
478
|
hints: [
|
|
473
479
|
"shown",
|
|
@@ -1830,6 +1836,7 @@ var GithubPr = z.strictObject({
|
|
|
1830
1836
|
rollupState: ReviewChecksState.nullable(),
|
|
1831
1837
|
unresolvedThreads: MyPr.shape.unresolvedThreads,
|
|
1832
1838
|
threads: z.array(MyPr.shape.threads.element.strict()),
|
|
1839
|
+
reviewItems: MyPr.shape.reviewItems,
|
|
1833
1840
|
behindBy: MyPr.shape.behindBy,
|
|
1834
1841
|
reviewRequests: z.array(MyPr.shape.reviewRequests.element.strict()),
|
|
1835
1842
|
approvals: MyPr.shape.approvals,
|
|
@@ -1889,6 +1896,22 @@ var githubClientVariants = [
|
|
|
1889
1896
|
loose("github-polling-refresh", {
|
|
1890
1897
|
...GithubPollingRefreshRequest.shape,
|
|
1891
1898
|
requestId
|
|
1899
|
+
}),
|
|
1900
|
+
loose("pr-flow-dispose", {
|
|
1901
|
+
...PrFlowDisposeRequest.shape,
|
|
1902
|
+
requestId
|
|
1903
|
+
}),
|
|
1904
|
+
loose("pr-flow-undo", {
|
|
1905
|
+
...PrFlowItemRequest.shape,
|
|
1906
|
+
requestId
|
|
1907
|
+
}),
|
|
1908
|
+
loose("pr-flow-save-rule", {
|
|
1909
|
+
...PrFlowSaveRuleRequest.shape,
|
|
1910
|
+
requestId
|
|
1911
|
+
}),
|
|
1912
|
+
loose("pr-flow-approve", {
|
|
1913
|
+
...PrFlowApproveRequest.shape,
|
|
1914
|
+
requestId
|
|
1892
1915
|
})
|
|
1893
1916
|
];
|
|
1894
1917
|
var githubServerVariants = [
|
|
@@ -1949,8 +1972,13 @@ var githubServerVariants = [
|
|
|
1949
1972
|
...GithubPollingRefreshResult.shape,
|
|
1950
1973
|
requestId
|
|
1951
1974
|
}),
|
|
1975
|
+
loose("pr-flow-dispose-result", {
|
|
1976
|
+
...PrFlowDisposeResult.shape,
|
|
1977
|
+
requestId
|
|
1978
|
+
}),
|
|
1952
1979
|
TeamReviewStatus,
|
|
1953
1980
|
MyPrsStatus,
|
|
1981
|
+
PrFlowsStatus,
|
|
1954
1982
|
GithubPrsFrame,
|
|
1955
1983
|
IssuesStatus
|
|
1956
1984
|
];
|
|
@@ -2899,7 +2927,8 @@ var createBrowserConfigShape = (isAbsolutePath) => ({
|
|
|
2899
2927
|
usage: createUsageSettings(isAbsolutePath),
|
|
2900
2928
|
telegram: TelegramSettings,
|
|
2901
2929
|
telemetry: TelemetrySettings,
|
|
2902
|
-
workflows: WorkflowsSettings.nullable().optional()
|
|
2930
|
+
workflows: WorkflowsSettings.nullable().optional(),
|
|
2931
|
+
prFlows: PrFlowsSettings.nullable().optional()
|
|
2903
2932
|
});
|
|
2904
2933
|
var createBrowserConfig = (isAbsolutePath) => z.object(createBrowserConfigShape(isAbsolutePath));
|
|
2905
2934
|
//#endregion
|
|
@@ -3068,6 +3097,7 @@ var FILE_CONFIG_SHAPE = {
|
|
|
3068
3097
|
usage: optionalLooseObject("usage"),
|
|
3069
3098
|
telegram: optionalLooseObject("telegram"),
|
|
3070
3099
|
workflows: optionalLooseObject("workflows"),
|
|
3100
|
+
prFlows: optionalLooseObject("prFlows"),
|
|
3071
3101
|
guardrails: optionalLooseObject("guardrails"),
|
|
3072
3102
|
telemetry: TelemetryFileSettings,
|
|
3073
3103
|
trace: TraceSettings,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-N024BRC9.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { a as packageRoot, u as equalsIgnoringCaseOnWindows } from "./runtime-paths-CYwF658V.js";
|
|
3
3
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
|
-
import { T as SESSION_COMMANDS } from "./session-
|
|
5
|
-
import { $ as MEMORY_RESERVE_MB_RANGE, Bt as ONBOARDING_STEPS, Gt as UPDATE_CHANNELS, Ht as OPERATOR_ACTIONS_BY_SURFACE, J as FLYING_ANIMALS_DEFAULTS, Lt as DASHBOARD_VIEWS, Q as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, Ut as OPERATOR_SURFACES, Vt as ONBOARDING_STEP_STATES, X as FLYING_ANIMALS_GAP_RANGE, Y as FLYING_ANIMALS_DURATION_RANGE, Z as FLYING_ANIMALS_SCALE_RANGE, at as POSTHOG_TRAFFIC_BASELINE_RANGE, ct as REPLAY_BUFFER_KB_RANGE, d as BranchGcFileSettings, dt as USAGE_INTEGER_RANGES, et as NON_NEGATIVE_NUMBER_RANGE, f as USAGE_COST_MODES, ft as USAGE_RETAIN_DAYS_RANGE, ht as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, i as Config, it as POSTHOG_PROJECT_ID_RANGE, lt as TASK_TITLE_TIMEOUT_RANGE, m as normalizeLegacyConfigNumbers, mt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, n as BUILTIN_AGENT_IDS, nt as POSITIVE_NUMBER_RANGE, ot as POSTHOG_TRAFFIC_MIN_USERS_RANGE, pt as USAGE_SCAN_INTERVAL_RANGE, q as COMMUNITY_INTERVAL_MINUTES_RANGE, rt as POSTHOG_FIX_TIMEOUT_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as PORT_RANGE, u as configIssueMessage, ut as USAGE_BUDGET_RANGE, y as HintFeature } from "./config-
|
|
4
|
+
import { T as SESSION_COMMANDS, on as PrFlowCommand, un as PrFlowRule } from "./session-BSGnvWLZ.js";
|
|
5
|
+
import { $ as MEMORY_RESERVE_MB_RANGE, Bt as ONBOARDING_STEPS, Gt as UPDATE_CHANNELS, Ht as OPERATOR_ACTIONS_BY_SURFACE, J as FLYING_ANIMALS_DEFAULTS, Lt as DASHBOARD_VIEWS, Q as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, Ut as OPERATOR_SURFACES, Vt as ONBOARDING_STEP_STATES, X as FLYING_ANIMALS_GAP_RANGE, Y as FLYING_ANIMALS_DURATION_RANGE, Z as FLYING_ANIMALS_SCALE_RANGE, at as POSTHOG_TRAFFIC_BASELINE_RANGE, ct as REPLAY_BUFFER_KB_RANGE, d as BranchGcFileSettings, dt as USAGE_INTEGER_RANGES, et as NON_NEGATIVE_NUMBER_RANGE, f as USAGE_COST_MODES, ft as USAGE_RETAIN_DAYS_RANGE, ht as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, i as Config, it as POSTHOG_PROJECT_ID_RANGE, lt as TASK_TITLE_TIMEOUT_RANGE, m as normalizeLegacyConfigNumbers, mt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, n as BUILTIN_AGENT_IDS, nt as POSITIVE_NUMBER_RANGE, ot as POSTHOG_TRAFFIC_MIN_USERS_RANGE, pt as USAGE_SCAN_INTERVAL_RANGE, q as COMMUNITY_INTERVAL_MINUTES_RANGE, rt as POSTHOG_FIX_TIMEOUT_RANGE, s as RUNTIME_CONFIG_SCALAR_KEYS, st as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, t as AGENT_ID_SHAPE_MESSAGE, tt as PORT_RANGE, u as configIssueMessage, ut as USAGE_BUDGET_RANGE, y as HintFeature } from "./config-DLiW1cu2.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";
|
|
@@ -2208,6 +2208,18 @@ var LANES_COMMUNITY = {
|
|
|
2208
2208
|
};
|
|
2209
2209
|
//#endregion
|
|
2210
2210
|
//#region shared/settings/file-only-settings.ts
|
|
2211
|
+
function prFlowRulesJsonSchema(rulesSchema) {
|
|
2212
|
+
return z.toJSONSchema(rulesSchema, {
|
|
2213
|
+
io: "input",
|
|
2214
|
+
override: ({ zodSchema, jsonSchema }) => {
|
|
2215
|
+
if (zodSchema !== PrFlowRule) return;
|
|
2216
|
+
Object.assign(jsonSchema, Object.fromEntries([["if", {
|
|
2217
|
+
properties: { action: { const: "dismiss" } },
|
|
2218
|
+
required: ["action"]
|
|
2219
|
+
}], ["then", { required: ["reason"] }]]));
|
|
2220
|
+
}
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2211
2223
|
var FILE_ONLY_SETTINGS = Object.freeze([
|
|
2212
2224
|
{
|
|
2213
2225
|
id: "file-debug-mode",
|
|
@@ -3080,6 +3092,120 @@ var FILE_ONLY_SETTINGS = Object.freeze([
|
|
|
3080
3092
|
takesEffect: "now",
|
|
3081
3093
|
fileOnlyReason: "Rule definitions are written in config.json; the Workflows section only switches each rule on or off.",
|
|
3082
3094
|
...FILE_ONLY
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
id: "file-pr-flows-sources",
|
|
3098
|
+
path: "prFlows.sources",
|
|
3099
|
+
title: "PR flows sources",
|
|
3100
|
+
group: "lanes-team-review",
|
|
3101
|
+
description: "Commands that report review findings for your own pull requests, run without a shell on each new head once you approve the exact command in My PRs. Each entry has id, label, command (an argv array; {prUrl}, {repo}, {number} and {head} expand inside one argument, and GLIMMERVOID_PR_URL, GLIMMERVOID_PR_REPO, GLIMMERVOID_PR_NUMBER and GLIMMERVOID_PR_HEAD are set) and timeoutSeconds, and prints {\"findings\": [{\"path\", \"lineStart\", \"lineEnd\", \"priority\", \"body\", \"url\"}], \"status\": [{\"label\", \"state\"}]} JSON. Each id is unique within the list. Check entries with glimmervoid pr-flows check.",
|
|
3102
|
+
jsonSchema: z.toJSONSchema(z.array(PrFlowCommand), { io: "input" }),
|
|
3103
|
+
example: [{
|
|
3104
|
+
id: "scanner",
|
|
3105
|
+
label: "Scanner",
|
|
3106
|
+
command: [
|
|
3107
|
+
"my-review-scanner",
|
|
3108
|
+
"--pr",
|
|
3109
|
+
"{prUrl}",
|
|
3110
|
+
"--json"
|
|
3111
|
+
],
|
|
3112
|
+
timeoutSeconds: 120
|
|
3113
|
+
}],
|
|
3114
|
+
control: "json",
|
|
3115
|
+
keywords: [
|
|
3116
|
+
"pull requests",
|
|
3117
|
+
"review items",
|
|
3118
|
+
"bots",
|
|
3119
|
+
"commands"
|
|
3120
|
+
],
|
|
3121
|
+
defaultValue: [],
|
|
3122
|
+
takesEffect: "now",
|
|
3123
|
+
fileOnlyReason: "Commands run on this machine, so they are written in config.json and each one waits for your approval in My PRs.",
|
|
3124
|
+
...FILE_ONLY
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
id: "file-pr-flows-actions",
|
|
3128
|
+
path: "prFlows.actions",
|
|
3129
|
+
title: "PR flows actions",
|
|
3130
|
+
group: "lanes-team-review",
|
|
3131
|
+
description: "Commands that act on a review item of your own pull request, shown as a button with their label and named by rules as run:<id>. Each entry has id, label, command and timeoutSeconds like a source, also expands {itemPath} and {itemLine}, gets the item as GLIMMERVOID_ITEM_JSON, waits for your approval in My PRs, and has an id unique within the list. Exit 0 is done and non-zero failed, unless stdout prints {\"outcome\": \"done\" | \"started\" | \"refused\" | \"failed\", \"message\"} JSON.",
|
|
3132
|
+
jsonSchema: z.toJSONSchema(z.array(PrFlowCommand), { io: "input" }),
|
|
3133
|
+
example: [{
|
|
3134
|
+
id: "ask-bot",
|
|
3135
|
+
label: "Ask bot",
|
|
3136
|
+
command: [
|
|
3137
|
+
"gh",
|
|
3138
|
+
"pr",
|
|
3139
|
+
"comment",
|
|
3140
|
+
"{prUrl}",
|
|
3141
|
+
"--body",
|
|
3142
|
+
"@review-bot fix {itemPath}:{itemLine}"
|
|
3143
|
+
]
|
|
3144
|
+
}],
|
|
3145
|
+
control: "json",
|
|
3146
|
+
keywords: [
|
|
3147
|
+
"pull requests",
|
|
3148
|
+
"review items",
|
|
3149
|
+
"commands"
|
|
3150
|
+
],
|
|
3151
|
+
defaultValue: [],
|
|
3152
|
+
takesEffect: "now",
|
|
3153
|
+
fileOnlyReason: "Commands run on this machine, so they are written in config.json and each one waits for your approval in My PRs.",
|
|
3154
|
+
...FILE_ONLY
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
id: "file-pr-flows-rules",
|
|
3158
|
+
path: "prFlows.rules",
|
|
3159
|
+
title: "PR flows rules",
|
|
3160
|
+
group: "lanes-team-review",
|
|
3161
|
+
description: "Ordered rules for review items on your own pull requests; the first match acts with no click and lands in the Handled list, where Undo reopens it. Each matches on source, priority, paths, text and scope, and acts with ask, fix-local, dismiss or run:<action id>.",
|
|
3162
|
+
jsonSchema: prFlowRulesJsonSchema(z.array(PrFlowRule)),
|
|
3163
|
+
example: [{
|
|
3164
|
+
name: "Generated files",
|
|
3165
|
+
paths: ["dist/"],
|
|
3166
|
+
action: "dismiss",
|
|
3167
|
+
reason: "Generated output; the source change is reviewed instead."
|
|
3168
|
+
}, {
|
|
3169
|
+
name: "Bot nits",
|
|
3170
|
+
source: "review-bot[bot]",
|
|
3171
|
+
priority: ["low"],
|
|
3172
|
+
action: "run:ask-bot"
|
|
3173
|
+
}],
|
|
3174
|
+
control: "json",
|
|
3175
|
+
keywords: [
|
|
3176
|
+
"pull requests",
|
|
3177
|
+
"review items",
|
|
3178
|
+
"dismiss",
|
|
3179
|
+
"automation"
|
|
3180
|
+
],
|
|
3181
|
+
defaultValue: [],
|
|
3182
|
+
takesEffect: "now",
|
|
3183
|
+
fileOnlyReason: "Rules are written in config.json; Save as rule in My PRs is the one dashboard writer, and it only appends.",
|
|
3184
|
+
...FILE_ONLY
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
id: "file-pr-flows-repo-rules",
|
|
3188
|
+
path: "prFlows.repoRules",
|
|
3189
|
+
title: "PR flows repository rules",
|
|
3190
|
+
group: "lanes-team-review",
|
|
3191
|
+
description: "Rules per repository (owner/name to a list of rules), checked before prFlows.rules for that repository.",
|
|
3192
|
+
jsonSchema: prFlowRulesJsonSchema(z.record(z.string(), z.array(PrFlowRule))),
|
|
3193
|
+
example: { "acme/app": [{
|
|
3194
|
+
name: "Docs typos",
|
|
3195
|
+
paths: ["docs/"],
|
|
3196
|
+
text: "typo",
|
|
3197
|
+
action: "fix-local"
|
|
3198
|
+
}] },
|
|
3199
|
+
control: "json",
|
|
3200
|
+
keywords: [
|
|
3201
|
+
"pull requests",
|
|
3202
|
+
"review items",
|
|
3203
|
+
"repositories"
|
|
3204
|
+
],
|
|
3205
|
+
defaultValue: {},
|
|
3206
|
+
takesEffect: "now",
|
|
3207
|
+
fileOnlyReason: STRUCTURED_VALUE,
|
|
3208
|
+
...FILE_ONLY
|
|
3083
3209
|
}
|
|
3084
3210
|
]);
|
|
3085
3211
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
2
|
import { o as relayPath } from "./runtime-paths-CYwF658V.js";
|
|
3
3
|
import { n as isRecord } from "./coerce-oz_Z_6E7.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
4
|
+
import { t as buildAgentEnv } from "./spawn-env-BmKhfv3B.js";
|
|
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";
|
|
8
8
|
import os from "node:os";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region session/core/hook-command-core.ts
|
|
2
|
+
var SAFE_PATH_RE = /^[A-Za-z0-9_.:/\\ -]+$/;
|
|
3
|
+
var SAFE_EVENT_RE = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/;
|
|
4
|
+
function buildHookCommand(relayPath, event, argvTail = []) {
|
|
5
|
+
const rawPath = String(relayPath);
|
|
6
|
+
const rawEvent = String(event);
|
|
7
|
+
if (!SAFE_PATH_RE.test(rawPath)) return null;
|
|
8
|
+
if (!SAFE_EVENT_RE.test(rawEvent)) return null;
|
|
9
|
+
if (argvTail.some((argument) => !/^[A-Za-z0-9_-]+$/.test(argument))) return null;
|
|
10
|
+
const forwardSlashedPath = rawPath.replace(/\\/g, "/");
|
|
11
|
+
return `node ${/\s/.test(forwardSlashedPath) ? `"${forwardSlashedPath}"` : forwardSlashedPath} ${rawEvent}${argvTail.length ? ` ${argvTail.join(" ")}` : ""}`;
|
|
12
|
+
}
|
|
13
|
+
function shellQuote(value) {
|
|
14
|
+
return `'${String(value).replace(/'/g, `'\\''`)}'`;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { shellQuote as n, buildHookCommand as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as relayPath } from "./runtime-paths-CYwF658V.js";
|
|
2
|
-
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
3
|
-
import { i as execFileSync } from "./child-process-safe-
|
|
2
|
+
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-BSGnvWLZ.js";
|
|
3
|
+
import { i as execFileSync } from "./child-process-safe-D-aYiDnX.js";
|
|
4
4
|
import { n as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-BjUkqIoH.js";
|
|
5
|
-
import { i as
|
|
6
|
-
import { t as buildAgentEnv } from "./spawn-env-
|
|
7
|
-
import { l as KIMI_HOME_PROFILE, m as renderKimiHooksBlock } from "./agent-home-core-
|
|
8
|
-
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, o as prepareScratchAgentHome, s as realAgentHome } from "./agent-home-
|
|
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-BmKhfv3B.js";
|
|
7
|
+
import { l as KIMI_HOME_PROFILE, m as renderKimiHooksBlock } from "./agent-home-core-BGvFYDNV.js";
|
|
8
|
+
import { c as releaseAgentHome, i as holdPreparedAgentHome, n as generatedAgentHomePath, o as prepareScratchAgentHome, s as realAgentHome } from "./agent-home-Bt3Itm9c.js";
|
|
9
9
|
import fs from "node:fs";
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
//#region session/core/spawn-command.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-Bz8ag6OP.js";
|