glimmervoid 0.52.3-next.760 → 0.52.3-next.762
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/README.md +1 -0
- package/dist/bin/glimmervoid.js +16 -11
- package/dist/chunks/{adapters-CWIRJz6v.js → adapters-B1Hu8pvS.js} +1 -1
- package/dist/chunks/{adapters-ti5pxZ3Z.js → adapters-DeIad0md.js} +3 -3
- package/dist/chunks/{agent-api-cli-BlBkYR9U.js → agent-api-cli--OF8o_yd.js} +1 -1
- package/dist/chunks/agent-api-cli-JbOOc3_j.js +1 -0
- package/dist/chunks/{agent-api-core-DKlVa_rx.js → agent-api-core-VAoV6DH1.js} +54 -2
- package/dist/chunks/{config-CTS0VjsX.js → config-Cu5vvgp5.js} +2 -1
- package/dist/chunks/config-store-CVwJAMzM.js +1 -0
- package/dist/chunks/{config-store-DSxJyF6T.js → config-store-DR1asRaA.js} +52 -20
- package/dist/chunks/{control-messages-BWSK-Wg2.js → control-messages-DrWM7YQQ.js} +60 -2
- package/dist/chunks/host-cli-CUMvsPKG.js +92 -0
- package/dist/chunks/host-registry-core-XH8hHYM8.js +38 -0
- package/dist/chunks/{main-BZwGXgoi.js → main-C7qgFD0_.js} +768 -41
- package/dist/chunks/{pack-agent-DQi4kbLj.js → pack-agent-BUUsdxXq.js} +1 -1
- package/dist/chunks/{packs-cli-CVfUk8za.js → packs-cli-BaiUvdYN.js} +2 -2
- package/dist/chunks/{pair-cli-B-rCbNPY.js → pair-cli-BK2c5yp8.js} +2 -2
- package/dist/chunks/{pr-flows-cli-CX-Mjd1z.js → pr-flows-cli-5A5ucNtY.js} +2 -2
- package/dist/chunks/{remote-config-B_gAGXqF.js → remote-config-DsTUFni4.js} +1 -1
- package/dist/chunks/{settings-cli-EzR4Ldg2.js → settings-cli-7Xdafbin.js} +10 -9
- package/dist/chunks/settings-cli-BU0GAmiz.js +1 -0
- package/dist/chunks/{settings-readout-core-CavRxM3J.js → settings-readout-core-CbOflGiD.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-HUSFVWRp.js → ssh-sign-cli-AaV5rKI_.js} +1 -1
- package/dist/client/assets/{action-status-DK0aPW-J.js → action-status-7Hf0KNMw.js} +1 -1
- package/dist/client/assets/action-status-7Hf0KNMw.js.br +0 -0
- package/dist/client/assets/{agent-mark-Dns_XIyl.js → agent-mark-CkhiPyeX.js} +1 -1
- package/dist/client/assets/agent-mark-CkhiPyeX.js.br +0 -0
- package/dist/client/assets/{arena-panel-CEXL1q2p.js → arena-panel-DahxN1bp.js} +2 -2
- package/dist/client/assets/arena-panel-DahxN1bp.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-B6ioFR8o.js → benchmark-panel-CkjgOaZR.js} +1 -1
- package/dist/client/assets/benchmark-panel-CkjgOaZR.js.br +0 -0
- package/dist/client/assets/boards-view-CHzl3yTj.js +1 -0
- package/dist/client/assets/boards-view-CHzl3yTj.js.br +0 -0
- package/dist/client/assets/button-_rZqnogW.js +1 -0
- package/dist/client/assets/button-_rZqnogW.js.br +0 -0
- package/dist/client/assets/{card-actions-BbEvwADc.js → card-actions-CSr1xgGA.js} +1 -1
- package/dist/client/assets/{card-registry-BxfZBDLq.js → card-registry-DKKQilUx.js} +1 -1
- package/dist/client/assets/card-registry-DKKQilUx.js.br +0 -0
- package/dist/client/assets/community-panel-BLoEug0x.js +1 -0
- package/dist/client/assets/community-panel-BLoEug0x.js.br +0 -0
- package/dist/client/assets/control-ws-B1LQ2XVj.js +4 -0
- package/dist/client/assets/control-ws-B1LQ2XVj.js.br +0 -0
- package/dist/client/assets/dialogs-DUKLuz2w.js +66 -0
- package/dist/client/assets/dialogs-DUKLuz2w.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-HAHW7Yic.js → doc-editor-ui-DcXcOX-8.js} +2 -2
- package/dist/client/assets/doc-editor-ui-DcXcOX-8.js.br +0 -0
- package/dist/client/assets/{feature-hint-JGW9WLUW.js → feature-hint-DEMRhMpY.js} +1 -1
- package/dist/client/assets/feature-hint-DEMRhMpY.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-CYbT5ht1.js → first-run-checklist-Ds_UHSqh.js} +1 -1
- package/dist/client/assets/first-run-checklist-Ds_UHSqh.js.br +0 -0
- package/dist/client/assets/{hooks-panel-BfgZKjlQ.js → hooks-panel-CrTfh0xG.js} +1 -1
- package/dist/client/assets/hooks-panel-CrTfh0xG.js.br +0 -0
- package/dist/client/assets/index-B5b1oYuZ.js +75 -0
- package/dist/client/assets/index-B5b1oYuZ.js.br +0 -0
- package/dist/client/assets/{index-DtI-jnDn.css → index-Cs5K0qKL.css} +1 -1
- package/dist/client/assets/index-Cs5K0qKL.css.br +0 -0
- package/dist/client/assets/issues-panel-BAdOuNdj.js +1 -0
- package/dist/client/assets/issues-panel-BAdOuNdj.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-CwP_MwCi.css → lane-read-token-step-B9mIDwiN.css} +1 -1
- package/dist/client/assets/lane-read-token-step-B9mIDwiN.css.br +0 -0
- package/dist/client/assets/{lane-read-token-step-BljPL9Tm.js → lane-read-token-step-JBwofCO0.js} +5 -5
- package/dist/client/assets/lane-read-token-step-JBwofCO0.js.br +0 -0
- package/dist/client/assets/{menu-CMBo7_he.js → menu-03dyIruV.js} +1 -1
- package/dist/client/assets/menu-03dyIruV.js.br +0 -0
- package/dist/client/assets/{modal-IyMyRZY4.js → modal-BImrO0XC.js} +1 -1
- package/dist/client/assets/modal-BImrO0XC.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-C2wGzEpE.js → my-prs-panel-Dqv7yTcG.js} +1 -1
- package/dist/client/assets/my-prs-panel-Dqv7yTcG.js.br +0 -0
- package/dist/client/assets/{nyan-cat-DTCBY07R.js → nyan-cat-D1kv4XkV.js} +1 -1
- package/dist/client/assets/nyan-cat-D1kv4XkV.js.br +0 -0
- package/dist/client/assets/phone-shell-BOJYeWgH.js +1 -0
- package/dist/client/assets/phone-shell-BOJYeWgH.js.br +0 -0
- package/dist/client/assets/{plan-face-BZ6aYFOw.js → plan-face-Ph2iXvxb.js} +2 -2
- package/dist/client/assets/plan-face-Ph2iXvxb.js.br +0 -0
- package/dist/client/assets/{plan-render-B3CmBx4c.js → plan-render-D40ReuPn.js} +1 -1
- package/dist/client/assets/plan-render-D40ReuPn.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BVrQ68ur.js +1 -0
- package/dist/client/assets/pr-queue-columns-BVrQ68ur.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-HE_Jm1RY.js → pr-status-icon-DmC4E-lT.js} +1 -1
- package/dist/client/assets/pr-status-icon-DmC4E-lT.js.br +0 -0
- package/dist/client/assets/{radar-panel-C0OifgG0.js → radar-panel-O_JVHo9I.js} +1 -1
- package/dist/client/assets/radar-panel-O_JVHo9I.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-BEyRt9FQ.js → repo-roots-adder-Cr6KmYgi.js} +1 -1
- package/dist/client/assets/repo-roots-adder-Cr6KmYgi.js.br +0 -0
- package/dist/client/assets/{resume-dialog-CCA6nAAM.js → resume-dialog-D5X0-eeK.js} +1 -1
- package/dist/client/assets/resume-dialog-D5X0-eeK.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DS-lURzu.js +1 -0
- package/dist/client/assets/review-queue-panel-DS-lURzu.js.br +0 -0
- package/dist/client/assets/{session-actions-DnpvnnFg.js → session-actions-DR2a_37U.js} +2 -2
- package/dist/client/assets/session-actions-DR2a_37U.js.br +0 -0
- package/dist/client/assets/{session-row-DJz5D0He.js → session-row-CSI7Mhbk.js} +1 -1
- package/dist/client/assets/session-row-CSI7Mhbk.js.br +0 -0
- package/dist/client/assets/{session-tick-BEgWxOFZ.js → session-tick-BKqirqDC.js} +1 -1
- package/dist/client/assets/session-tick-BKqirqDC.js.br +0 -0
- package/dist/client/assets/settings-panel-BQjCsMEK.js +4 -0
- package/dist/client/assets/settings-panel-BQjCsMEK.js.br +0 -0
- package/dist/client/assets/{settings-panel-gVM13RdM.css → settings-panel-CHulaCbW.css} +1 -1
- package/dist/client/assets/settings-panel-CHulaCbW.css.br +0 -0
- package/dist/client/assets/{setup-step-CIL3paT0.js → setup-step-B0yfEbJq.js} +1 -1
- package/dist/client/assets/setup-step-B0yfEbJq.js.br +2 -0
- package/dist/client/assets/trace-panel-DxXYGhVI.js +2 -0
- package/dist/client/assets/trace-panel-DxXYGhVI.js.br +0 -0
- package/dist/client/assets/usage-panel-cBHBSm38.js +1 -0
- package/dist/client/assets/usage-panel-cBHBSm38.js.br +0 -0
- package/dist/client/assets/{your-day-tip-yZsDA_-P.js → your-day-tip-Dhs6AU3f.js} +1 -1
- package/dist/client/assets/your-day-tip-Dhs6AU3f.js.br +7 -0
- package/dist/client/index.html +14 -14
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/dist/session/remote-setup/SKILL.md +12 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-BthwXQ3D.js +0 -1
- package/dist/chunks/config-store-DtkMNtt9.js +0 -1
- package/dist/client/assets/action-status-DK0aPW-J.js.br +0 -0
- package/dist/client/assets/agent-mark-Dns_XIyl.js.br +0 -0
- package/dist/client/assets/arena-panel-CEXL1q2p.js.br +0 -0
- package/dist/client/assets/benchmark-panel-B6ioFR8o.js.br +0 -0
- package/dist/client/assets/boards-view-BNTNEN5o.js +0 -1
- package/dist/client/assets/boards-view-BNTNEN5o.js.br +0 -0
- package/dist/client/assets/button-C539VSFP.js +0 -1
- package/dist/client/assets/button-C539VSFP.js.br +0 -0
- package/dist/client/assets/card-registry-BxfZBDLq.js.br +0 -0
- package/dist/client/assets/community-panel-DXm7w_Z8.js +0 -1
- package/dist/client/assets/community-panel-DXm7w_Z8.js.br +0 -0
- package/dist/client/assets/control-ws-BOv4Iyd0.js +0 -4
- package/dist/client/assets/control-ws-BOv4Iyd0.js.br +0 -0
- package/dist/client/assets/dialogs-DE1N8TZx.js +0 -62
- package/dist/client/assets/dialogs-DE1N8TZx.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-HAHW7Yic.js.br +0 -0
- package/dist/client/assets/feature-hint-JGW9WLUW.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CYbT5ht1.js.br +0 -0
- package/dist/client/assets/hooks-panel-BfgZKjlQ.js.br +0 -0
- package/dist/client/assets/index-CLJVyVLi.js +0 -75
- package/dist/client/assets/index-CLJVyVLi.js.br +0 -0
- package/dist/client/assets/index-DtI-jnDn.css.br +0 -0
- package/dist/client/assets/issues-panel-BwauoSy5.js +0 -1
- package/dist/client/assets/issues-panel-BwauoSy5.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-BljPL9Tm.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-CwP_MwCi.css.br +0 -0
- package/dist/client/assets/menu-CMBo7_he.js.br +0 -0
- package/dist/client/assets/modal-IyMyRZY4.js.br +0 -0
- package/dist/client/assets/my-prs-panel-C2wGzEpE.js.br +0 -0
- package/dist/client/assets/nyan-cat-DTCBY07R.js.br +0 -0
- package/dist/client/assets/phone-shell-CEQkdF5B.js +0 -1
- package/dist/client/assets/phone-shell-CEQkdF5B.js.br +0 -0
- package/dist/client/assets/plan-face-BZ6aYFOw.js.br +0 -0
- package/dist/client/assets/plan-render-B3CmBx4c.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-DIl3IKOl.js +0 -1
- package/dist/client/assets/pr-queue-columns-DIl3IKOl.js.br +0 -2
- package/dist/client/assets/pr-status-icon-HE_Jm1RY.js.br +0 -0
- package/dist/client/assets/radar-panel-C0OifgG0.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-BEyRt9FQ.js.br +0 -0
- package/dist/client/assets/resume-dialog-CCA6nAAM.js.br +0 -0
- package/dist/client/assets/review-queue-panel-CKS6AntL.js +0 -1
- package/dist/client/assets/review-queue-panel-CKS6AntL.js.br +0 -0
- package/dist/client/assets/session-actions-DnpvnnFg.js.br +0 -0
- package/dist/client/assets/session-row-DJz5D0He.js.br +0 -0
- package/dist/client/assets/session-tick-BEgWxOFZ.js.br +0 -0
- package/dist/client/assets/settings-panel-DmMv2Iu3.js +0 -4
- package/dist/client/assets/settings-panel-DmMv2Iu3.js.br +0 -0
- package/dist/client/assets/settings-panel-gVM13RdM.css.br +0 -0
- package/dist/client/assets/setup-step-CIL3paT0.js.br +0 -0
- package/dist/client/assets/trace-panel-DlI2qx7E.js +0 -2
- package/dist/client/assets/trace-panel-DlI2qx7E.js.br +0 -0
- package/dist/client/assets/usage-panel-By3jDAdk.js +0 -1
- package/dist/client/assets/usage-panel-By3jDAdk.js.br +0 -0
- package/dist/client/assets/your-day-tip-yZsDA_-P.js.br +0 -0
package/README.md
CHANGED
|
@@ -114,6 +114,7 @@ glimmervoid # start the server on port 3000
|
|
|
114
114
|
glimmervoid --port 3001 # start on another port
|
|
115
115
|
glimmervoid doctor # check the install, PATH, agents and native module
|
|
116
116
|
glimmervoid settings list # read and change settings from the terminal
|
|
117
|
+
glimmervoid host add devbox --ssh devbox # link another machine running Glimmervoid
|
|
117
118
|
glimmervoid pair --name phone # pair a remote device
|
|
118
119
|
```
|
|
119
120
|
|
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -5,7 +5,7 @@ import { o as packageRoot } from "../chunks/runtime-paths-DfoHzN15.js";
|
|
|
5
5
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-DUWk0Lui.js";
|
|
6
6
|
import { t as AGENT_API_VERBS } from "../chunks/session-D2jXyTD_.js";
|
|
7
7
|
import { a as execSync } from "../chunks/child-process-safe-BIh8yQ0I.js";
|
|
8
|
-
import { it as parseCommand, nt as OWNED_COMMAND_SPECS, r as agentCommandHelpLines, rt as isOwnedCommandName } from "../chunks/agent-api-core-
|
|
8
|
+
import { it as parseCommand, nt as OWNED_COMMAND_SPECS, r as agentCommandHelpLines, rt as isOwnedCommandName } from "../chunks/agent-api-core-VAoV6DH1.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";
|
|
@@ -22,6 +22,7 @@ With no command, starts the server.
|
|
|
22
22
|
Commands:
|
|
23
23
|
doctor Check the install, PATH, agent CLIs and native module, then exit
|
|
24
24
|
settings <cmd> Read and change config.json: list, get, describe, set, unset, search, schema (each takes --json)
|
|
25
|
+
host <cmd> Register machines this dashboard links over ssh: add, list, remove
|
|
25
26
|
packs <cmd> Build a pack: guide, check <folder>, preview <folder>, list
|
|
26
27
|
pr-flows check Check PR flows sources, actions and rules; --pr <url> runs each approved source once
|
|
27
28
|
pr-action report Report a PR action run's outcome from the command it ran (--outcome, --message)
|
|
@@ -64,7 +65,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
64
65
|
return await runDoctor() ? 0 : 1;
|
|
65
66
|
},
|
|
66
67
|
pair: async ({ values }) => {
|
|
67
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
68
|
+
const { runPairCli } = await import("../chunks/pair-cli-BK2c5yp8.js");
|
|
68
69
|
return runPairCli({
|
|
69
70
|
isListing: values.list === true,
|
|
70
71
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -76,23 +77,27 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
76
77
|
return runAgentSetupCli();
|
|
77
78
|
},
|
|
78
79
|
settings: async (parsed) => {
|
|
79
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
80
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-BU0GAmiz.js");
|
|
80
81
|
return runParsedSettingsCli(parsed);
|
|
81
82
|
},
|
|
83
|
+
host: async (parsed) => {
|
|
84
|
+
const { runHostCli } = await import("../chunks/host-cli-CUMvsPKG.js");
|
|
85
|
+
return runHostCli(parsed);
|
|
86
|
+
},
|
|
82
87
|
"pr-flows": async (parsed) => {
|
|
83
|
-
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-
|
|
88
|
+
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-5A5ucNtY.js");
|
|
84
89
|
return runPrFlowsCheckCli(parsed);
|
|
85
90
|
},
|
|
86
91
|
packs: async (parsed) => {
|
|
87
|
-
const { runPacksCli } = await import("../chunks/packs-cli-
|
|
92
|
+
const { runPacksCli } = await import("../chunks/packs-cli-BaiUvdYN.js");
|
|
88
93
|
return runPacksCli(parsed);
|
|
89
94
|
},
|
|
90
95
|
"pr-action": async (parsed) => {
|
|
91
|
-
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-
|
|
96
|
+
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-5A5ucNtY.js");
|
|
92
97
|
return runPrActionReportCli(parsed);
|
|
93
98
|
},
|
|
94
99
|
"ssh-sign": async ({ rawArgs }) => {
|
|
95
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
100
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-AaV5rKI_.js");
|
|
96
101
|
return runSshSignCli(rawArgs);
|
|
97
102
|
}
|
|
98
103
|
};
|
|
@@ -114,7 +119,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
114
119
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
115
120
|
}
|
|
116
121
|
var SUBCOMMAND_RUNNERS = new Map([...Object.keys(OWNED_COMMAND_SPECS).filter(isOwnedCommandName).map((name) => [name, (subcommandArgs) => runOwnedCommand(name, subcommandArgs)]), ...AGENT_API_VERBS.filter((verb) => !isOwnedCommandName(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
117
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
122
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-JbOOc3_j.js");
|
|
118
123
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
119
124
|
}])]);
|
|
120
125
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -128,7 +133,7 @@ function missingAgentText(agentId) {
|
|
|
128
133
|
}
|
|
129
134
|
async function printSessionLimits() {
|
|
130
135
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
131
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
136
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-JbOOc3_j.js");
|
|
132
137
|
const limitsLines = await sessionLimitsHelpLines();
|
|
133
138
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
134
139
|
}
|
|
@@ -185,7 +190,7 @@ async function readDeclaredCustomAgents() {
|
|
|
185
190
|
declared: [],
|
|
186
191
|
error: null
|
|
187
192
|
};
|
|
188
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
193
|
+
const { loadConfigFile } = await import("../chunks/config-store-CVwJAMzM.js");
|
|
189
194
|
try {
|
|
190
195
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
191
196
|
if (!loaded.config) return {
|
|
@@ -261,7 +266,7 @@ async function runDoctor() {
|
|
|
261
266
|
}
|
|
262
267
|
switchSection("Agents");
|
|
263
268
|
try {
|
|
264
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
269
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-B1Hu8pvS.js");
|
|
265
270
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
266
271
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
267
272
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { o as describeAgentResolvability, d as listAgentIds, m as setCustomAgents } from "./adapters-
|
|
1
|
+
export { o as describeAgentResolvability, d as listAgentIds, m as setCustomAgents } from "./adapters-DeIad0md.js";
|
|
@@ -2,17 +2,17 @@ import { a as isMissingFileError, r as errorMessage, t as errorCode } from "./te
|
|
|
2
2
|
import { f as isPathInside, p as safePathSegment, s as relayPath } from "./runtime-paths-DfoHzN15.js";
|
|
3
3
|
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, E as REQUEST_USER_INPUT_TOOL_NAME, Gn as shortSha$1, S as CONVERSATION_PERMISSION_HOOK_EVENT, Un as FULL_SHA_RE, i as ASK_USER_QUESTION_TOOL_NAME } from "./session-D2jXyTD_.js";
|
|
4
4
|
import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-BIh8yQ0I.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Lt as HTTP_URL_RE, Qt as InstallFlavor, an as UpdateChannel, cn as PLAN_HOOK_EVENT, dn as PLAN_TOOL_NAME, un as PLAN_RESULT_HOOK_EVENT } from "./control-messages-DrWM7YQQ.js";
|
|
6
6
|
import { o as QUESTION_TOOL_HOLD_HOOK_EVENT } from "./question-manager-DC7Vhfzr.js";
|
|
7
7
|
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-
|
|
8
|
+
import { c as SHELL_AGENT_ID } from "./config-Cu5vvgp5.js";
|
|
9
9
|
import { n as parseJsonRecord } from "./json-core-If8h-Qgy.js";
|
|
10
10
|
import { a as QWEN_SANE_YOLO_FLAVOR, n as COPILOT_SANE_YOLO_FLAVOR, o as SANE_YOLO_PATH_ENV, r as GEMINI_SANE_YOLO_FLAVOR, s as saneYoloEnv, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-YyMaZ6jg.js";
|
|
11
11
|
import { n as buildAgentEnv } from "./spawn-env-D7ujJ_Ft.js";
|
|
12
12
|
import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-qTNK-xMF.js";
|
|
13
13
|
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-B8MD3Im7.js";
|
|
14
14
|
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";
|
|
15
|
-
import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-
|
|
15
|
+
import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-DR1asRaA.js";
|
|
16
16
|
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-CLOvsy4O.js";
|
|
17
17
|
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-kOGl6Fwb.js";
|
|
18
18
|
import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, s as readOptionalText } from "./agent-home-DJ4vlmD4.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nt as UNIT_STATUSES, ot as WhiteboardAgentReply, r as AGENT_URL_ENV, u as AgentLimitsReply } from "./session-D2jXyTD_.js";
|
|
2
|
-
import { Y as formatSessionLimits, i as agentCommandSpec, it as parseCommand, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
2
|
+
import { Y as formatSessionLimits, i as agentCommandSpec, it as parseCommand, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-VAoV6DH1.js";
|
|
3
3
|
import { a as resolveHookTarget } from "./hook-relay-core-Y1L0npBF.js";
|
|
4
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
5
5
|
import { r as layoutBoard, s as planSteps, t as boardSvgDocument } from "./whiteboard-svg-core-BY9DHeuX.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli--OF8o_yd.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, 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, st as WhiteboardAgentRequest, t as AGENT_API_VERBS, v as AgentSpawnRequest, y as AgentWhyRequest } from "./session-D2jXyTD_.js";
|
|
2
|
-
import {
|
|
2
|
+
import { rn as pullRequestKeyFromReference } from "./control-messages-DrWM7YQQ.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-Cu5vvgp5.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { parseArgs } from "node:util";
|
|
7
7
|
import crypto from "node:crypto";
|
|
@@ -280,6 +280,58 @@ change it in the dashboard settings or through its environment variable.`,
|
|
|
280
280
|
}
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
+
host: {
|
|
284
|
+
name: "host",
|
|
285
|
+
summary: "Register other machines running Glimmervoid that this dashboard links over ssh",
|
|
286
|
+
subcommands: [
|
|
287
|
+
{
|
|
288
|
+
name: "add",
|
|
289
|
+
summary: "Register a host; a running Glimmervoid links it without a restart",
|
|
290
|
+
positionals: {
|
|
291
|
+
usage: "<id>",
|
|
292
|
+
min: 1,
|
|
293
|
+
max: 1
|
|
294
|
+
},
|
|
295
|
+
options: [
|
|
296
|
+
{
|
|
297
|
+
name: "ssh",
|
|
298
|
+
type: "string",
|
|
299
|
+
valueName: "target",
|
|
300
|
+
summary: "An ssh host or ~/.ssh/config alias whose host key is already known"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "name",
|
|
304
|
+
type: "string",
|
|
305
|
+
valueName: "label",
|
|
306
|
+
summary: "Name shown in the sidebar (default: the id)"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "port",
|
|
310
|
+
type: "string",
|
|
311
|
+
valueName: "number",
|
|
312
|
+
summary: "That machine's dashboard port (default: 3000)"
|
|
313
|
+
},
|
|
314
|
+
CONFIG_OPTION
|
|
315
|
+
],
|
|
316
|
+
missingArgumentHint: "this command needs <id>, such as glimmervoid host add devbox --ssh devbox"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
name: "list",
|
|
320
|
+
summary: "Every registered host",
|
|
321
|
+
options: [JSON_OPTION, CONFIG_OPTION]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "remove",
|
|
325
|
+
summary: "Unregister a host; its sessions keep running there",
|
|
326
|
+
positionals: {
|
|
327
|
+
usage: "<id>",
|
|
328
|
+
min: 1,
|
|
329
|
+
max: 1
|
|
330
|
+
},
|
|
331
|
+
options: [CONFIG_OPTION]
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
283
335
|
"pr-flows": {
|
|
284
336
|
name: "pr-flows",
|
|
285
337
|
summary: "Check the PR flows sources, actions, PR actions and rules in config.json and its packs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as TaskTitle, Mt as SessionPrLinks, Nn as PrFlowsSettings, Yn as repoParts } from "./session-D2jXyTD_.js";
|
|
2
|
-
import {
|
|
2
|
+
import { K as WorkflowsSettings, L as DISCORD_CHANNEL_NAME_RE, R as SKILL_NAME_RE, St as TASK_TITLE_TIMEOUT_RANGE, X as BRANCH_GC_STALE_DAYS_RANGE, Y as BRANCH_GC_INTERVAL_MS_RANGE, Z as COMMUNITY_INTERVAL_MINUTES_RANGE, _ as AgentSetup, _t as POSTHOG_TRAFFIC_MIN_USERS_RANGE, an as UpdateChannel, at as PORT_RANGE, bt as REPLAY_BUFFER_KB_RANGE, ct as POSTHOG_FIX_TIMEOUT_RANGE, d as GitObjectSha, dt as POSTHOG_MAX_CONCURRENT_RANGE, ft as POSTHOG_MIN_USERS_RANGE, gt as POSTHOG_TRAFFIC_COOLDOWN_RANGE, ht as POSTHOG_TRAFFIC_BASELINE_RANGE, i as HostEntries, lt as POSTHOG_INTERVAL_RANGE, m as RaceId, mt as POSTHOG_RECURRENCE_WINDOW_RANGE, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, pt as POSTHOG_PROJECT_ID_RANGE, q as WorkflowsSettingsUpdate, rt as MEMORY_RESERVE_MB_RANGE, st as POSTHOG_ESCALATION_RANGE, ut as POSTHOG_INVESTIGATION_TIMEOUT_RANGE, vt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, wt as USAGE_INTEGER_RANGES, yt as POSTHOG_TRANSIENT_RECURRENCE_RANGE } from "./control-messages-DrWM7YQQ.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";
|
|
@@ -425,6 +425,7 @@ var Config = z.object({
|
|
|
425
425
|
allowedOrigins: z.array(z.string()).optional(),
|
|
426
426
|
ownerLogin: z.string().optional()
|
|
427
427
|
}).passthrough().optional(),
|
|
428
|
+
hosts: HostEntries.optional(),
|
|
428
429
|
projects: z.array(ProjectConfig)
|
|
429
430
|
}).passthrough().superRefine((config, ctx) => {
|
|
430
431
|
if (!Array.isArray(config.projects)) return;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-DR1asRaA.js";
|
|
@@ -2,10 +2,10 @@ import { n as errorLabel, r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { d as equalsIgnoringCaseOnWindows, f as isPathInside, o as packageRoot } from "./runtime-paths-DfoHzN15.js";
|
|
3
3
|
import { n as glimmervoidHomeDir$1, t as decideConfigPath } from "./config-path-core-DUWk0Lui.js";
|
|
4
4
|
import { O as SESSION_COMMANDS, On as PrFlowPrAction, Vn as prFlowRulesJsonSchema, jn as PrFlowSourceCommand, kn as PrFlowRule, xn as PrFlowCommand } from "./session-D2jXyTD_.js";
|
|
5
|
-
import { $ as
|
|
5
|
+
import { $ as FLYING_ANIMALS_DURATION_RANGE, $t as ONBOARDING_STEPS, Ct as USAGE_BUDGET_RANGE, Dt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, Et as USAGE_SCAN_INTERVAL_RANGE, Ot as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, Q as FLYING_ANIMALS_DEFAULTS, St as TASK_TITLE_TIMEOUT_RANGE, Tt as USAGE_RETAIN_DAYS_RANGE, Xt as DASHBOARD_VIEWS, Z as COMMUNITY_INTERVAL_MINUTES_RANGE, _t as POSTHOG_TRAFFIC_MIN_USERS_RANGE, at as PORT_RANGE, bt as REPLAY_BUFFER_KB_RANGE, ct as POSTHOG_FIX_TIMEOUT_RANGE, en as ONBOARDING_STEP_STATES, et as FLYING_ANIMALS_GAP_RANGE, ht as POSTHOG_TRAFFIC_BASELINE_RANGE, in as UPDATE_CHANNELS, it as NON_NEGATIVE_NUMBER_RANGE, nn as OPERATOR_SURFACES, nt as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, ot as POSITIVE_NUMBER_RANGE, pt as POSTHOG_PROJECT_ID_RANGE, rt as MEMORY_RESERVE_MB_RANGE, tn as OPERATOR_ACTIONS_BY_SURFACE, tt as FLYING_ANIMALS_SCALE_RANGE, u as HintFeature, vt as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, wt as USAGE_INTEGER_RANGES, xt as REVIEWS_TURN_LIMIT_RANGE, y as DEFAULT_MODELS } from "./control-messages-DrWM7YQQ.js";
|
|
6
6
|
import { l as QuestionRule } from "./question-manager-DC7Vhfzr.js";
|
|
7
7
|
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-
|
|
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-Cu5vvgp5.js";
|
|
9
9
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-AKRVPqG1.js";
|
|
10
10
|
import fs from "node:fs";
|
|
11
11
|
import path from "node:path";
|
|
@@ -1410,24 +1410,6 @@ var MACHINE_SESSIONS = {
|
|
|
1410
1410
|
status: "agent-logins",
|
|
1411
1411
|
...READOUT
|
|
1412
1412
|
},
|
|
1413
|
-
{
|
|
1414
|
-
id: "remote-setup",
|
|
1415
|
-
path: "status:remote-setup",
|
|
1416
|
-
title: "Remote host setup",
|
|
1417
|
-
description: "Start a session that helps you run Glimmervoid on another Linux machine over ssh.",
|
|
1418
|
-
control: "readonly",
|
|
1419
|
-
keywords: [
|
|
1420
|
-
"remote",
|
|
1421
|
-
"ssh",
|
|
1422
|
-
"server",
|
|
1423
|
-
"devbox",
|
|
1424
|
-
"tailscale",
|
|
1425
|
-
"pair",
|
|
1426
|
-
"host"
|
|
1427
|
-
],
|
|
1428
|
-
status: "remote-setup",
|
|
1429
|
-
...READOUT
|
|
1430
|
-
},
|
|
1431
1413
|
{
|
|
1432
1414
|
id: "branch-gc-delete-unmerged",
|
|
1433
1415
|
path: "branchGc.deleteUnmerged",
|
|
@@ -1510,6 +1492,53 @@ var MACHINE_SAFETY = {
|
|
|
1510
1492
|
}
|
|
1511
1493
|
]
|
|
1512
1494
|
};
|
|
1495
|
+
var MACHINE_HOSTS = {
|
|
1496
|
+
id: "machine-hosts",
|
|
1497
|
+
level: "machine",
|
|
1498
|
+
title: "Hosts",
|
|
1499
|
+
description: "Other machines running Glimmervoid that this dashboard links over ssh and shows in the sidebar.",
|
|
1500
|
+
settings: [{
|
|
1501
|
+
id: "hosts",
|
|
1502
|
+
path: "status:hosts",
|
|
1503
|
+
title: "Linked hosts",
|
|
1504
|
+
description: "Each host's link and build. The host key must already be known to ssh. Removing a host leaves its sessions running there.",
|
|
1505
|
+
control: "readonly",
|
|
1506
|
+
keywords: [
|
|
1507
|
+
"remote",
|
|
1508
|
+
"ssh",
|
|
1509
|
+
"machine",
|
|
1510
|
+
"devbox",
|
|
1511
|
+
"server",
|
|
1512
|
+
"link",
|
|
1513
|
+
"tunnel",
|
|
1514
|
+
"add host",
|
|
1515
|
+
"remove host"
|
|
1516
|
+
],
|
|
1517
|
+
status: "hosts",
|
|
1518
|
+
...READOUT
|
|
1519
|
+
}, {
|
|
1520
|
+
id: "remote-setup",
|
|
1521
|
+
path: "status:remote-setup",
|
|
1522
|
+
title: "Remote host setup",
|
|
1523
|
+
description: "Start a session that helps you run Glimmervoid on another Linux machine over ssh.",
|
|
1524
|
+
control: "readonly",
|
|
1525
|
+
keywords: [
|
|
1526
|
+
"remote",
|
|
1527
|
+
"ssh",
|
|
1528
|
+
"server",
|
|
1529
|
+
"devbox",
|
|
1530
|
+
"tailscale",
|
|
1531
|
+
"pair",
|
|
1532
|
+
"host"
|
|
1533
|
+
],
|
|
1534
|
+
status: "remote-setup",
|
|
1535
|
+
...READOUT,
|
|
1536
|
+
legacyIds: [{
|
|
1537
|
+
sectionId: "machine-sessions",
|
|
1538
|
+
settingId: "remote-setup"
|
|
1539
|
+
}]
|
|
1540
|
+
}]
|
|
1541
|
+
};
|
|
1513
1542
|
var MACHINE_SERVER = {
|
|
1514
1543
|
id: "machine-server",
|
|
1515
1544
|
level: "machine",
|
|
@@ -3410,6 +3439,7 @@ var SECTIONS = Object.freeze([
|
|
|
3410
3439
|
MACHINE_SESSIONS,
|
|
3411
3440
|
MACHINE_SAFETY,
|
|
3412
3441
|
MACHINE_UPDATES,
|
|
3442
|
+
MACHINE_HOSTS,
|
|
3413
3443
|
MACHINE_SERVER,
|
|
3414
3444
|
MACHINE_USAGE,
|
|
3415
3445
|
LANES_POSTHOG,
|
|
@@ -4613,6 +4643,8 @@ function createConfigStore({ settingsDefaults, readTelemetryInstallId, isExperim
|
|
|
4613
4643
|
if (newConfig.coder == null) delete config.coder;
|
|
4614
4644
|
if (newConfig.coder != null) config.coder = newConfig.coder;
|
|
4615
4645
|
config.customAgents = newConfig.customAgents ?? [];
|
|
4646
|
+
if (newConfig.hosts == null) delete config.hosts;
|
|
4647
|
+
if (newConfig.hosts != null) config.hosts = newConfig.hosts;
|
|
4616
4648
|
config.hooks = Array.isArray(newConfig.hooks) ? newConfig.hooks : [];
|
|
4617
4649
|
if (newConfig.port != null && newConfig.port !== config.port) console.log(`[settings] Port changed to ${newConfig.port} - restart required to take effect`);
|
|
4618
4650
|
}
|
|
@@ -1292,6 +1292,14 @@ var settingsClientVariants = [
|
|
|
1292
1292
|
loose("delete-hook", {
|
|
1293
1293
|
id: z.string(),
|
|
1294
1294
|
requestId
|
|
1295
|
+
}),
|
|
1296
|
+
loose("add-host", {
|
|
1297
|
+
host: z.record(z.string(), z.unknown()),
|
|
1298
|
+
requestId
|
|
1299
|
+
}),
|
|
1300
|
+
loose("remove-host", {
|
|
1301
|
+
id: z.string(),
|
|
1302
|
+
requestId
|
|
1295
1303
|
})
|
|
1296
1304
|
];
|
|
1297
1305
|
var settingsServerVariants = [
|
|
@@ -1333,6 +1341,11 @@ var settingsServerVariants = [
|
|
|
1333
1341
|
sessionId: z.string().optional(),
|
|
1334
1342
|
sessionName: z.string().optional()
|
|
1335
1343
|
}),
|
|
1344
|
+
loose("host-change-result", {
|
|
1345
|
+
requestId,
|
|
1346
|
+
ok: z.boolean(),
|
|
1347
|
+
error: optionalError
|
|
1348
|
+
}),
|
|
1336
1349
|
loose("delete-hook-result", {
|
|
1337
1350
|
requestId,
|
|
1338
1351
|
ok: z.boolean(),
|
|
@@ -2808,6 +2821,50 @@ var FeatureHintState = z.object({
|
|
|
2808
2821
|
starHintOutcome: z.enum(STAR_HINT_OUTCOMES).nullable().default(null)
|
|
2809
2822
|
}).strict();
|
|
2810
2823
|
//#endregion
|
|
2824
|
+
//#region shared/contracts/hosts.ts
|
|
2825
|
+
var HOST_ID_RE = /^[a-z][a-z0-9-]{0,31}$/;
|
|
2826
|
+
var SSH_TARGET_RE = /^(?!-)[A-Za-z0-9._@:[\]-]{1,255}$/;
|
|
2827
|
+
var DASHBOARD_PORT_ERROR = { error: "host dashboardPort must be a port number from 1 to 65535" };
|
|
2828
|
+
var HostEntry = z.object({
|
|
2829
|
+
id: z.string().regex(HOST_ID_RE, { error: "host id must be 1 to 32 lowercase letters, digits and dashes, starting with a letter" }),
|
|
2830
|
+
name: z.string().min(1, { error: "host name must not be empty" }).max(60, { error: "host name must be at most 60 characters" }),
|
|
2831
|
+
sshTarget: z.string().regex(SSH_TARGET_RE, { error: "host sshTarget must be an ssh host or alias that does not start with a dash" }),
|
|
2832
|
+
dashboardPort: z.number(DASHBOARD_PORT_ERROR).int(DASHBOARD_PORT_ERROR).min(1, DASHBOARD_PORT_ERROR).max(65535, DASHBOARD_PORT_ERROR)
|
|
2833
|
+
}).strict();
|
|
2834
|
+
var HostEntries = z.array(HostEntry).superRefine((hosts, ctx) => {
|
|
2835
|
+
const seenIds = /* @__PURE__ */ new Set();
|
|
2836
|
+
for (const [index, host] of hosts.entries()) {
|
|
2837
|
+
if (seenIds.has(host.id)) ctx.addIssue({
|
|
2838
|
+
code: "custom",
|
|
2839
|
+
path: [index, "id"],
|
|
2840
|
+
message: `hosts[${index}].id "${host.id}" is used by another host`
|
|
2841
|
+
});
|
|
2842
|
+
seenIds.add(host.id);
|
|
2843
|
+
}
|
|
2844
|
+
});
|
|
2845
|
+
var HostLinkState = z.enum([
|
|
2846
|
+
"connecting",
|
|
2847
|
+
"connected",
|
|
2848
|
+
"reconnecting",
|
|
2849
|
+
"unreachable",
|
|
2850
|
+
"version-differs"
|
|
2851
|
+
]);
|
|
2852
|
+
var HostStatus = z.object({
|
|
2853
|
+
id: z.string(),
|
|
2854
|
+
name: z.string(),
|
|
2855
|
+
sshTarget: z.string(),
|
|
2856
|
+
dashboardPort: z.number().int(),
|
|
2857
|
+
state: HostLinkState,
|
|
2858
|
+
hostVersion: z.string().nullable(),
|
|
2859
|
+
hubVersion: z.string(),
|
|
2860
|
+
lastError: z.string().nullable()
|
|
2861
|
+
}).strict();
|
|
2862
|
+
var HUB_PHONE_ALERT_TEXT_MAX = 4e3;
|
|
2863
|
+
var HubPhoneAlertFrame = z.object({
|
|
2864
|
+
type: z.literal("hub-phone-alert"),
|
|
2865
|
+
text: z.string().min(1).max(HUB_PHONE_ALERT_TEXT_MAX)
|
|
2866
|
+
}).strict();
|
|
2867
|
+
//#endregion
|
|
2811
2868
|
//#region shared/contracts/control/system-messages.ts
|
|
2812
2869
|
var systemClientVariants = [
|
|
2813
2870
|
loose("ping", { requestId }),
|
|
@@ -2842,7 +2899,8 @@ var systemServerVariants = [
|
|
|
2842
2899
|
loose("shutting-down"),
|
|
2843
2900
|
loose("restarting"),
|
|
2844
2901
|
loose("feature-hint", { hint: FeatureHint }),
|
|
2845
|
-
loose("star-hint")
|
|
2902
|
+
loose("star-hint"),
|
|
2903
|
+
loose("hosts-status", { hosts: z.array(HostStatus) })
|
|
2846
2904
|
];
|
|
2847
2905
|
//#endregion
|
|
2848
2906
|
//#region shared/contracts/control/pack-messages.ts
|
|
@@ -2980,4 +3038,4 @@ var serverVariants = [
|
|
|
2980
3038
|
];
|
|
2981
3039
|
z.discriminatedUnion("type", serverVariants);
|
|
2982
3040
|
//#endregion
|
|
2983
|
-
export {
|
|
3041
|
+
export { FLYING_ANIMALS_DURATION_RANGE as $, ONBOARDING_STEPS as $t, MinedPrReviewData as A, GithubIssueResponse as At, GithubPrKey as B, MAX_RAW_LINE_CHARS as Bt, BenchmarkId as C, USAGE_BUDGET_RANGE as Ct, BenchmarkSuite as D, WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE as Dt, BenchmarkStatus as E, USAGE_SCAN_INTERVAL_RANGE as Et, CommunityState as F, IssuesStatus as Ft, WorkflowLabelName as G, changeMapFactId as Gt, GithubPrsFrame as H, TraceRecord as Ht, CommunityVerdict as I, issuePullRequestStateFromGithub as It, WorkflowsState as J, CLIENT_LOG_TEXT_MAX_CHARS as Jt, WorkflowsSettings as K, CHANGES_POLL_INTERVAL_MS as Kt, DISCORD_CHANNEL_NAME_RE as L, HTTP_URL_RE as Lt, CommunityActionRequest as M, IssueUpdate as Mt, CommunityDraft as N, IssuesSearchResponse as Nt, CommitComparison as O, WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE as Ot, CommunityItem as P, IssuesState as Pt, FLYING_ANIMALS_DEFAULTS as Q, InstallFlavor as Qt, SKILL_NAME_RE as R, HookEnvelope as Rt, BenchmarkCase as S, TASK_TITLE_TIMEOUT_RANGE as St, BenchmarkRun as T, USAGE_RETAIN_DAYS_RANGE as Tt, comparablePrKey as U, CoherenceJournalOutput as Ut, GithubPrLightSearchNode as V, TraceCheckpoint as Vt, WorkflowCommentBody as W, ChangeMap as Wt, BRANCH_GC_STALE_DAYS_RANGE as X, DASHBOARD_VIEWS as Xt, BRANCH_GC_INTERVAL_MS_RANGE as Y, CONTROL_FRAME_MAX_BYTES as Yt, COMMUNITY_INTERVAL_MINUTES_RANGE as Z, GithubTeam as Zt, AgentSetup as _, POSTHOG_TRAFFIC_MIN_USERS_RANGE as _t, HostEntry as a, UpdateChannel as an, PORT_RANGE as at, EFFORT_OPTION_ID as b, REPLAY_BUFFER_KB_RANGE as bt, HINT_FEATURES as c, PLAN_HOOK_EVENT as cn, POSTHOG_FIX_TIMEOUT_RANGE as ct, GitObjectSha as d, PLAN_TOOL_NAME as dn, POSTHOG_MAX_CONCURRENT_RANGE as dt, ONBOARDING_STEP_STATES as en, FLYING_ANIMALS_GAP_RANGE as et, JudgeResult as f, PlanDecision as fn, POSTHOG_MIN_USERS_RANGE as ft, RaceSpec as g, POSTHOG_TRAFFIC_COOLDOWN_RANGE as gt, RaceRecord as h, planTitle as hn, POSTHOG_TRAFFIC_BASELINE_RANGE as ht, HostEntries as i, UPDATE_CHANNELS as in, NON_NEGATIVE_NUMBER_RANGE as it, PrCheckoutCaseInput as j, IssueKey as jt, MergedPrListing as k, GithubIssuePullRequestsRepository as kt, HINT_VIEW_BY_FEATURE as l, PLAN_HOOK_OUTPUT_MAX_CHARS as ln, POSTHOG_INTERVAL_RANGE as lt, RaceId as m, parseExitPlanModeHookPayload as mn, POSTHOG_RECURRENCE_WINDOW_RANGE as mt, PackApproveRequest as n, OPERATOR_SURFACES as nn, KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE as nt, HubPhoneAlertFrame as o, UpdateJournal as on, POSITIVE_NUMBER_RANGE as ot, RACE_JUDGE_AGENT as p, PlanRevision as pn, POSTHOG_PROJECT_ID_RANGE as pt, WorkflowsSettingsUpdate as q, CHANGES_WATCH_LEASE_MS as qt, HUB_PHONE_ALERT_TEXT_MAX as r, pullRequestKeyFromReference as rn, MEMORY_RESERVE_MB_RANGE as rt, FeatureHintState as s, PLAN_BODY_CAP_BYTES as sn, POSTHOG_ESCALATION_RANGE as st, ClientMessage as t, OPERATOR_ACTIONS_BY_SURFACE as tn, FLYING_ANIMALS_SCALE_RANGE as tt, HintFeature as u, PLAN_RESULT_HOOK_EVENT as un, POSTHOG_INVESTIGATION_TIMEOUT_RANGE as ut, CATALOG_AGENT_IDS as v, POSTHOG_TRAFFIC_MULTIPLIER_RANGE as vt, BenchmarkJudgement as w, USAGE_INTEGER_RANGES as wt, BenchmarkActionRequest as x, REVIEWS_TURN_LIMIT_RANGE as xt, DEFAULT_MODELS as y, POSTHOG_TRANSIENT_RECURRENCE_RANGE as yt, GithubPrDetailNode as z, SessionSetup as zt };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { r as errorMessage } from "./text-DoirglWV.js";
|
|
2
|
+
import { i as HostEntries } from "./control-messages-DrWM7YQQ.js";
|
|
3
|
+
import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
|
|
4
|
+
import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-XH8hHYM8.js";
|
|
5
|
+
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-7Xdafbin.js";
|
|
6
|
+
//#region server/hosts/host-cli.ts
|
|
7
|
+
var DEFAULT_DASHBOARD_PORT = 3e3;
|
|
8
|
+
function registeredHosts() {
|
|
9
|
+
const parsed = HostEntries.safeParse(requireView().config.hosts ?? []);
|
|
10
|
+
if (!parsed.success) throw new Error("hosts in config.json is not valid; fix it with glimmervoid settings");
|
|
11
|
+
return parsed.data;
|
|
12
|
+
}
|
|
13
|
+
function saveHostChange(change) {
|
|
14
|
+
saveValidatedConfig(requireView(), "hosts", (config) => {
|
|
15
|
+
const changed = change(HostEntries.parse(config.hosts ?? []));
|
|
16
|
+
if (!changed.ok) throw new Error(changed.error);
|
|
17
|
+
if (changed.hosts.length === 0) delete config.hosts;
|
|
18
|
+
if (changed.hosts.length > 0) config.hosts = changed.hosts;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function dashboardPortOf(raw) {
|
|
22
|
+
if (typeof raw !== "string") return DEFAULT_DASHBOARD_PORT;
|
|
23
|
+
if (!/^\d+$/.test(raw)) throw new Error(`--port ${raw} is not a port number`);
|
|
24
|
+
return Number(raw);
|
|
25
|
+
}
|
|
26
|
+
function hostLines(hosts) {
|
|
27
|
+
if (hosts.length === 0) return "No hosts registered. Add one with glimmervoid host add <id> --ssh <target>.";
|
|
28
|
+
return renderTable({
|
|
29
|
+
title: "Hosts",
|
|
30
|
+
headers: [
|
|
31
|
+
"Id",
|
|
32
|
+
"Name",
|
|
33
|
+
"Ssh target",
|
|
34
|
+
"Dashboard port"
|
|
35
|
+
],
|
|
36
|
+
rows: hosts.map((host) => [
|
|
37
|
+
host.id,
|
|
38
|
+
host.name,
|
|
39
|
+
host.sshTarget,
|
|
40
|
+
String(host.dashboardPort)
|
|
41
|
+
]),
|
|
42
|
+
align: [
|
|
43
|
+
"left",
|
|
44
|
+
"left",
|
|
45
|
+
"left",
|
|
46
|
+
"right"
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var RELOAD_NOTE = "A running Glimmervoid picks this up without a restart.";
|
|
51
|
+
var HOST_COMMANDS = {
|
|
52
|
+
add: ({ positionals, values }, io) => {
|
|
53
|
+
const hostId = positionals[0] ?? "";
|
|
54
|
+
if (typeof values.ssh !== "string") throw new Error("add needs --ssh <target>, such as glimmervoid host add devbox --ssh devbox");
|
|
55
|
+
const candidate = {
|
|
56
|
+
id: hostId,
|
|
57
|
+
name: typeof values.name === "string" ? values.name : hostId,
|
|
58
|
+
sshTarget: values.ssh,
|
|
59
|
+
dashboardPort: dashboardPortOf(values.port)
|
|
60
|
+
};
|
|
61
|
+
saveHostChange((hosts) => addHostTo(hosts, candidate));
|
|
62
|
+
io.writeOutput(`Added host ${hostId} (${candidate.sshTarget}, dashboard port ${candidate.dashboardPort}). ${RELOAD_NOTE}\n`);
|
|
63
|
+
return 0;
|
|
64
|
+
},
|
|
65
|
+
list: ({ values }, io) => {
|
|
66
|
+
const hosts = registeredHosts();
|
|
67
|
+
io.writeOutput(`${values.json === true ? JSON.stringify(hosts, null, 2) : hostLines(hosts)}\n`);
|
|
68
|
+
return 0;
|
|
69
|
+
},
|
|
70
|
+
remove: ({ positionals }, io) => {
|
|
71
|
+
const hostId = positionals[0] ?? "";
|
|
72
|
+
saveHostChange((hosts) => removeHostFrom(hosts, hostId));
|
|
73
|
+
io.writeOutput(`Removed host ${hostId}; its sessions keep running there. ${RELOAD_NOTE}\n`);
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function runHostCli(parsed, io = processIo()) {
|
|
78
|
+
const commandName = parsed.commandPath[1] ?? "";
|
|
79
|
+
const command = HOST_COMMANDS[commandName];
|
|
80
|
+
if (!command) {
|
|
81
|
+
io.writeError(`host: unknown command ${commandName}\n`);
|
|
82
|
+
return 1;
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
return command(parsed, io);
|
|
86
|
+
} catch (error) {
|
|
87
|
+
io.writeError(`host: ${errorMessage(error)}\n`);
|
|
88
|
+
return 1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { runHostCli };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { a as HostEntry } from "./control-messages-DrWM7YQQ.js";
|
|
2
|
+
//#region server/hosts/core/host-registry-core.ts
|
|
3
|
+
var LOOPBACK_TARGET_RE = /^(?:[^@]*@)?(?:localhost|127(?:\.\d{1,3}){3}|\[?::1\]?|0\.0\.0\.0)$/i;
|
|
4
|
+
function addHostTo(hosts, candidate) {
|
|
5
|
+
const parsed = HostEntry.safeParse(candidate);
|
|
6
|
+
if (!parsed.success) return {
|
|
7
|
+
ok: false,
|
|
8
|
+
error: parsed.error.issues.map((issue) => issue.message).join("; ")
|
|
9
|
+
};
|
|
10
|
+
const host = parsed.data;
|
|
11
|
+
if (LOOPBACK_TARGET_RE.test(host.sshTarget)) return {
|
|
12
|
+
ok: false,
|
|
13
|
+
error: `host sshTarget ${host.sshTarget} is this machine; link another machine`
|
|
14
|
+
};
|
|
15
|
+
if (hosts.some((registered) => registered.id === host.id)) return {
|
|
16
|
+
ok: false,
|
|
17
|
+
error: `a host with id ${host.id} is already registered`
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
ok: true,
|
|
21
|
+
hosts: [...hosts, host]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function removeHostFrom(hosts, hostId) {
|
|
25
|
+
if (!hosts.some((registered) => registered.id === hostId)) return {
|
|
26
|
+
ok: false,
|
|
27
|
+
error: `no host with id ${hostId} is registered`
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
ok: true,
|
|
31
|
+
hosts: hosts.filter((registered) => registered.id !== hostId)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function isSameHostEntry(left, right) {
|
|
35
|
+
return left.name === right.name && left.sshTarget === right.sshTarget && left.dashboardPort === right.dashboardPort;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { isSameHostEntry as n, removeHostFrom as r, addHostTo as t };
|