glimmervoid 0.52.3-next.877 → 0.52.3-next.879
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 +23 -26
- package/dist/chunks/{adapters-D8KgUnLz.js → adapters-DKvG8d1N.js} +1 -1
- package/dist/chunks/{adapters-nKHVIKNr.js → adapters-ciCSEeuG.js} +68 -10
- package/dist/chunks/{agent-api-cli-otG7cI42.js → agent-api-cli-BD7vL66F.js} +2 -2
- package/dist/chunks/agent-api-cli-BLN5MWaF.js +1 -0
- package/dist/chunks/{agent-api-core-BA5F3Pn8.js → agent-api-core-DlDi35_H.js} +13 -17
- package/dist/chunks/{agent-setup-cli-C0wz9zNb.js → agent-setup-cli-f-t3FuSE.js} +1 -1
- package/dist/chunks/{config-B0D7QDAG.js → config-BM4-f0Z8.js} +13 -13
- package/dist/chunks/config-secrets-core-Dl2-_qLd.js +88 -0
- package/dist/chunks/{config-store-BkWh4QuT.js → config-store-CFmAOi62.js} +58 -130
- package/dist/chunks/config-store-CydcoQYr.js +1 -0
- package/dist/chunks/{control-messages-BrGUxPNk.js → control-messages-CRm8sO0Y.js} +18 -21
- package/dist/chunks/{grok--sP0zxij.js → grok-BQ2YzXm5.js} +1 -1
- package/dist/chunks/{host-cli-CfJW2bpW.js → host-cli-SiL5MK15.js} +3 -3
- package/dist/chunks/{host-registry-core-s3g4I7cZ.js → host-registry-core-BRnRGFjf.js} +1 -1
- package/dist/chunks/{kimi-CAIcwYSb.js → kimi-CWl-0JEY.js} +2 -2
- package/dist/chunks/kimi-vLAt04ly.js +1 -0
- package/dist/chunks/{main-CqcAEcjd.js → main-BCSdW20f.js} +9119 -1023
- package/dist/chunks/{pack-agent-DuZX7yfB.js → pack-agent-c0oY3sXG.js} +4 -5
- package/dist/chunks/{pack-bridge--9q6NYOJ.js → pack-bridge-DEecwLtn.js} +1 -1
- package/dist/chunks/{pr-flows-core-DW-VXt5p.js → pack-files-CCp_F1iB.js} +318 -2
- package/dist/chunks/{packs-cli-BLlDjXCg.js → packs-cli-Dr_FafvU.js} +5 -5
- package/dist/chunks/{pair-cli-D1OWZ3FP.js → pair-cli-BiSfVsVj.js} +2 -2
- package/dist/chunks/{pr-flows-cli-jUR_-uN-.js → pr-flows-cli-BGaCj9lI.js} +5 -6
- package/dist/chunks/{pr-flows-external-B9Sf3p5B.js → pr-flows-external-2uN7kX6l.js} +3 -3
- package/dist/chunks/{remote-config-BWa5aqN7.js → remote-config-CMQHoT0F.js} +2 -3
- package/dist/chunks/{session-Dtyksece.js → session-D2If80a1.js} +2 -1
- package/dist/chunks/settings-cli-CjxpMZst.js +1 -0
- package/dist/chunks/{settings-cli-BSYeB0lR.js → settings-cli-Dqk3U9mY.js} +6 -5
- package/dist/chunks/{settings-readout-core-jyoChJDk.js → settings-readout-core-Co075jhl.js} +3 -2
- package/dist/chunks/{spawn-env-DqJ5uzmX.js → spawn-env-DusuISAX.js} +4 -9
- package/dist/chunks/{ssh-sign-cli-CqsPKSA7.js → ssh-sign-cli-qKI9hlNb.js} +2 -2
- package/dist/chunks/{vault-cli-BIF430-r.js → vault-cli-4yXHgVeo.js} +1 -1
- package/dist/chunks/watch-cli-BozTol4o.js +659 -0
- package/dist/chunks/watcher-link-RIafqyaA.js +155 -0
- package/dist/client/assets/{action-status-slmoUjdT.js → action-status-0frd4OHR.js} +1 -1
- package/dist/client/assets/action-status-0frd4OHR.js.br +0 -0
- package/dist/client/assets/{agent-core-M701-8Ft.js → agent-core-DdEcUx07.js} +2 -2
- package/dist/client/assets/agent-core-DdEcUx07.js.br +0 -0
- package/dist/client/assets/{agent-mark-DO47uXS7.js → agent-mark-BPCFBDn1.js} +1 -1
- package/dist/client/assets/agent-mark-BPCFBDn1.js.br +0 -0
- package/dist/client/assets/{arena-panel-CdA6JCl7.js → arena-panel-0noKjsIw.js} +2 -2
- package/dist/client/assets/arena-panel-0noKjsIw.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-nLGkHdnu.js → benchmark-panel-CqdRTc3R.js} +1 -1
- package/dist/client/assets/benchmark-panel-CqdRTc3R.js.br +0 -0
- package/dist/client/assets/boards-view-CrknZmws.js +182 -0
- package/dist/client/assets/boards-view-CrknZmws.js.br +0 -0
- package/dist/client/assets/boards-view-kJv55UPo.css +1 -0
- package/dist/client/assets/boards-view-kJv55UPo.css.br +0 -0
- package/dist/client/assets/button-CI0XWKbK.js +1 -0
- package/dist/client/assets/button-CI0XWKbK.js.br +0 -0
- package/dist/client/assets/{card-actions-EO7sC44x.js → card-actions-CIcRr6jw.js} +1 -1
- package/dist/client/assets/{card-registry-B0Aza2uL.js → card-registry-lVHA6KGz.js} +1 -1
- package/dist/client/assets/card-registry-lVHA6KGz.js.br +0 -0
- package/dist/client/assets/{celebration-player-BE97vKM5.js → celebration-player-BsH1Ofku.js} +1 -1
- package/dist/client/assets/celebration-player-BsH1Ofku.js.br +0 -0
- package/dist/client/assets/{chart-readout-BoilFQc3.js → chart-readout-JvzkX3O9.js} +1 -1
- package/dist/client/assets/community-panel-YrPb_0cq.js +1 -0
- package/dist/client/assets/community-panel-YrPb_0cq.js.br +0 -0
- package/dist/client/assets/{control-ws-DRx-MvXo.js → control-ws-Dt6sUWtm.js} +3 -3
- package/dist/client/assets/control-ws-Dt6sUWtm.js.br +0 -0
- package/dist/client/assets/{dialogs-DV2a_Z1-.js → dialogs-x8Dzc2Kq.js} +2 -2
- package/dist/client/assets/dialogs-x8Dzc2Kq.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-UDRtqJdX.js → doc-editor-ui-C3woO79O.js} +4 -4
- package/dist/client/assets/doc-editor-ui-C3woO79O.js.br +0 -0
- package/dist/client/assets/dom-helpers-DlGUJnYt.js +1 -0
- package/dist/client/assets/dom-helpers-DlGUJnYt.js.br +0 -0
- package/dist/client/assets/{feature-hint-4M_3wcYK.js → feature-hint-BSHUTQUZ.js} +1 -1
- package/dist/client/assets/feature-hint-BSHUTQUZ.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DW189A_6.js → first-run-checklist-BDWLdLKN.js} +1 -1
- package/dist/client/assets/first-run-checklist-BDWLdLKN.js.br +0 -0
- package/dist/client/assets/{flying-animal-preview-DOvBPuGK.js → flying-animal-preview-BV_tC1gn.js} +1 -1
- package/dist/client/assets/{hooks-panel-Dv5qMK05.js → hooks-panel-C-a8AQUf.js} +1 -1
- package/dist/client/assets/hooks-panel-C-a8AQUf.js.br +0 -0
- package/dist/client/assets/index-Bb3PXULZ.js +77 -0
- package/dist/client/assets/index-Bb3PXULZ.js.br +0 -0
- package/dist/client/assets/issues-panel-D8v_0bcG.js +1 -0
- package/dist/client/assets/issues-panel-D8v_0bcG.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-sBNqWIAD.js → lane-read-token-step-CDUeK5-U.js} +1 -1
- package/dist/client/assets/lane-read-token-step-CDUeK5-U.js.br +0 -0
- package/dist/client/assets/{menu-GxMeqxzN.js → menu-FqFhS17V.js} +1 -1
- package/dist/client/assets/menu-FqFhS17V.js.br +3 -0
- package/dist/client/assets/{modal-C-uejfB1.js → modal-B00PeDaF.js} +1 -1
- package/dist/client/assets/modal-B00PeDaF.js.br +0 -0
- package/dist/client/assets/my-prs-panel-DkC-VqTN.js +1 -0
- package/dist/client/assets/my-prs-panel-DkC-VqTN.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CXVxM3n-.js → nyan-cat-B5kRxbFw.js} +1 -1
- package/dist/client/assets/nyan-cat-B5kRxbFw.js.br +0 -0
- package/dist/client/assets/{phone-shell-D1VpeXoR.js → phone-shell-C43MYFNM.js} +1 -1
- package/dist/client/assets/phone-shell-C43MYFNM.js.br +0 -0
- package/dist/client/assets/{plan-face-52bpKr-C.js → plan-face-DM6zCjo3.js} +2 -2
- package/dist/client/assets/plan-face-DM6zCjo3.js.br +0 -0
- package/dist/client/assets/plan-render--BXAIAK8.js +4 -0
- package/dist/client/assets/plan-render--BXAIAK8.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-bnLPPiV4.js → pr-queue-columns-CLo-mtzZ.js} +1 -1
- package/dist/client/assets/pr-queue-columns-CLo-mtzZ.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-ClnIf0bs.js → pr-status-icon-Cp1T-rXc.js} +1 -1
- package/dist/client/assets/pr-status-icon-Cp1T-rXc.js.br +0 -0
- package/dist/client/assets/radar-panel-ppaDYxrU.js +1 -0
- package/dist/client/assets/radar-panel-ppaDYxrU.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-TFjsFRyz.js → repo-roots-adder-lPZPN48J.js} +1 -1
- package/dist/client/assets/repo-roots-adder-lPZPN48J.js.br +0 -0
- package/dist/client/assets/{resume-dialog-rzHYpqJm.js → resume-dialog-CjDzsecO.js} +1 -1
- package/dist/client/assets/resume-dialog-CjDzsecO.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-6ckueFK_.js → review-queue-panel-BnrNTP6O.js} +1 -1
- package/dist/client/assets/review-queue-panel-BnrNTP6O.js.br +0 -0
- package/dist/client/assets/{session-row-DYvRaYaR.js → session-row-Bw9SipTk.js} +1 -1
- package/dist/client/assets/session-row-Bw9SipTk.js.br +0 -0
- package/dist/client/assets/{session-tick-W0SyUpx_.js → session-tick-CywPEEkd.js} +1 -1
- package/dist/client/assets/session-tick-CywPEEkd.js.br +0 -0
- package/dist/client/assets/{settings-panel-CtdrltFg.js → settings-panel-CzmAjgVM.js} +4 -4
- package/dist/client/assets/settings-panel-CzmAjgVM.js.br +0 -0
- package/dist/client/assets/{setup-step-BTnMK9tU.js → setup-step-Bvj39IgO.js} +1 -1
- package/dist/client/assets/setup-step-Bvj39IgO.js.br +0 -0
- package/dist/client/assets/{trace-panel-BkPXpjs6.js → trace-panel-Ciuj-Oqu.js} +2 -2
- package/dist/client/assets/trace-panel-Ciuj-Oqu.js.br +0 -0
- package/dist/client/assets/{ui-prefs-DZ7FI4CF.js → ui-prefs-Br0cl_NZ.js} +1 -1
- package/dist/client/assets/ui-prefs-Br0cl_NZ.js.br +0 -0
- package/dist/client/assets/{usage-panel-CYN8oW7b.js → usage-panel-CggxiIX9.js} +1 -1
- package/dist/client/assets/usage-panel-CggxiIX9.js.br +0 -0
- package/dist/client/assets/{your-day-tip-BeKEFevo.js → your-day-tip-ChwAO9iv.js} +1 -1
- package/dist/client/assets/your-day-tip-ChwAO9iv.js.br +0 -0
- package/dist/client/index.html +15 -15
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-DM0H6oG_.js +0 -1
- package/dist/chunks/config-store-DrNBefsR.js +0 -1
- package/dist/chunks/hook-tools-B_T7l5gH.js +0 -62
- package/dist/chunks/kimi-Bo2toOY1.js +0 -1
- package/dist/chunks/pack-files-B96TS0vm.js +0 -320
- package/dist/chunks/settings-cli-DjRPDLrV.js +0 -1
- package/dist/chunks/timer-deps-yeY8p-gc.js +0 -14
- package/dist/chunks/watch-cli-CYUVS6aE.js +0 -1288
- package/dist/chunks/watchee-settings-BliJEf1M.js +0 -7781
- package/dist/client/assets/action-status-slmoUjdT.js.br +0 -0
- package/dist/client/assets/agent-core-M701-8Ft.js.br +0 -0
- package/dist/client/assets/agent-mark-DO47uXS7.js.br +0 -0
- package/dist/client/assets/arena-panel-CdA6JCl7.js.br +0 -0
- package/dist/client/assets/benchmark-panel-nLGkHdnu.js.br +0 -0
- package/dist/client/assets/boards-view-BSldlFbb.css +0 -1
- package/dist/client/assets/boards-view-BSldlFbb.css.br +0 -0
- package/dist/client/assets/boards-view-C2J87Xol.js +0 -182
- package/dist/client/assets/boards-view-C2J87Xol.js.br +0 -0
- package/dist/client/assets/button-ekD1XORl.js +0 -1
- package/dist/client/assets/button-ekD1XORl.js.br +0 -0
- package/dist/client/assets/card-registry-B0Aza2uL.js.br +0 -0
- package/dist/client/assets/celebration-player-BE97vKM5.js.br +0 -0
- package/dist/client/assets/community-panel-Br2Bbsqf.js +0 -1
- package/dist/client/assets/community-panel-Br2Bbsqf.js.br +0 -0
- package/dist/client/assets/control-ws-DRx-MvXo.js.br +0 -0
- package/dist/client/assets/dialogs-DV2a_Z1-.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-UDRtqJdX.js.br +0 -0
- package/dist/client/assets/dom-helpers-CA_azHic.js +0 -1
- package/dist/client/assets/dom-helpers-CA_azHic.js.br +0 -0
- package/dist/client/assets/feature-hint-4M_3wcYK.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DW189A_6.js.br +0 -0
- package/dist/client/assets/hooks-panel-Dv5qMK05.js.br +0 -0
- package/dist/client/assets/index-NfyXRvUv.js +0 -77
- package/dist/client/assets/index-NfyXRvUv.js.br +0 -0
- package/dist/client/assets/issues-panel-Bnp6wCRL.js +0 -1
- package/dist/client/assets/issues-panel-Bnp6wCRL.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-sBNqWIAD.js.br +0 -0
- package/dist/client/assets/menu-GxMeqxzN.js.br +0 -0
- package/dist/client/assets/modal-C-uejfB1.js.br +0 -0
- package/dist/client/assets/my-prs-panel-BFOtie0V.js +0 -1
- package/dist/client/assets/my-prs-panel-BFOtie0V.js.br +0 -0
- package/dist/client/assets/nyan-cat-CXVxM3n-.js.br +0 -0
- package/dist/client/assets/phone-shell-D1VpeXoR.js.br +0 -0
- package/dist/client/assets/plan-face-52bpKr-C.js.br +0 -0
- package/dist/client/assets/plan-render-ChEwhvuZ.js +0 -4
- package/dist/client/assets/plan-render-ChEwhvuZ.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-bnLPPiV4.js.br +0 -0
- package/dist/client/assets/pr-status-icon-ClnIf0bs.js.br +0 -0
- package/dist/client/assets/radar-panel-B5_74W-P.js +0 -1
- package/dist/client/assets/radar-panel-B5_74W-P.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-TFjsFRyz.js.br +0 -0
- package/dist/client/assets/resume-dialog-rzHYpqJm.js.br +0 -0
- package/dist/client/assets/review-queue-panel-6ckueFK_.js.br +0 -0
- package/dist/client/assets/session-row-DYvRaYaR.js.br +0 -0
- package/dist/client/assets/session-tick-W0SyUpx_.js.br +0 -0
- package/dist/client/assets/settings-panel-CtdrltFg.js.br +0 -0
- package/dist/client/assets/setup-step-BTnMK9tU.js.br +0 -0
- package/dist/client/assets/trace-panel-BkPXpjs6.js.br +0 -0
- package/dist/client/assets/ui-prefs-DZ7FI4CF.js.br +0 -0
- package/dist/client/assets/usage-panel-CYN8oW7b.js.br +0 -0
- package/dist/client/assets/your-day-tip-BeKEFevo.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as AGENT_API_VERBS } from "../chunks/session-
|
|
2
|
+
import { t as AGENT_API_VERBS } from "../chunks/session-D2If80a1.js";
|
|
3
3
|
import { a as execSync } from "../chunks/child-process-safe-pP6Vf2i9.js";
|
|
4
|
-
import { at as parseCommand, it as isOwnedCommandName, r as agentCommandHelpLines, rt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-
|
|
4
|
+
import { at as parseCommand, it as isOwnedCommandName, r as agentCommandHelpLines, rt as OWNED_COMMAND_SPECS } from "../chunks/agent-api-core-DlDi35_H.js";
|
|
5
5
|
import { t as renderTable } from "../chunks/ascii-figure-core-BegIbndz.js";
|
|
6
6
|
import { n as glimmervoidHomeDir, t as decideConfigPath } from "../chunks/config-path-core-qUZH9-0F.js";
|
|
7
7
|
import { i as parseCommandLine, r as gitDoctorRows, t as probeGitVersion } from "../chunks/git-version-BE08x5OZ.js";
|
|
@@ -30,8 +30,8 @@ Commands:
|
|
|
30
30
|
pair --list List paired devices
|
|
31
31
|
pair --revoke <id> Revoke a paired device
|
|
32
32
|
agent setup grok Install the Grok hook relay, which does nothing outside Glimmervoid
|
|
33
|
-
watch --inbox <url> Run the watcher, delivering jobs to a job inbox; --ping sends one ping and exits
|
|
34
33
|
vault Run the vault companion that reads approved secrets from 1Password; --server <url> serves another machine
|
|
34
|
+
watch Run the watcher, which runs the server's probes and nudges it on change
|
|
35
35
|
|
|
36
36
|
Inside a Glimmervoid session:
|
|
37
37
|
${agentCommandHelpLines().join("\n")}
|
|
@@ -67,7 +67,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
67
67
|
return await runDoctor() ? 0 : 1;
|
|
68
68
|
},
|
|
69
69
|
pair: async ({ values }) => {
|
|
70
|
-
const { runPairCli } = await import("../chunks/pair-cli-
|
|
70
|
+
const { runPairCli } = await import("../chunks/pair-cli-BiSfVsVj.js");
|
|
71
71
|
return runPairCli({
|
|
72
72
|
isListing: values.list === true,
|
|
73
73
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -75,46 +75,43 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
77
|
agent: async () => {
|
|
78
|
-
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-
|
|
78
|
+
const { runAgentSetupCli } = await import("../chunks/agent-setup-cli-f-t3FuSE.js");
|
|
79
79
|
return runAgentSetupCli();
|
|
80
80
|
},
|
|
81
81
|
settings: async (parsed) => {
|
|
82
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
82
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-CjxpMZst.js");
|
|
83
83
|
return runParsedSettingsCli(parsed);
|
|
84
84
|
},
|
|
85
85
|
host: async (parsed) => {
|
|
86
|
-
const { runHostCli } = await import("../chunks/host-cli-
|
|
86
|
+
const { runHostCli } = await import("../chunks/host-cli-SiL5MK15.js");
|
|
87
87
|
return runHostCli(parsed);
|
|
88
88
|
},
|
|
89
89
|
"pr-flows": async (parsed) => {
|
|
90
|
-
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-
|
|
90
|
+
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-BGaCj9lI.js");
|
|
91
91
|
return runPrFlowsCheckCli(parsed);
|
|
92
92
|
},
|
|
93
93
|
packs: async (parsed) => {
|
|
94
|
-
const { runPacksCli } = await import("../chunks/packs-cli-
|
|
94
|
+
const { runPacksCli } = await import("../chunks/packs-cli-Dr_FafvU.js");
|
|
95
95
|
return runPacksCli(parsed);
|
|
96
96
|
},
|
|
97
97
|
"pr-action": async (parsed) => {
|
|
98
|
-
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-
|
|
98
|
+
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-BGaCj9lI.js");
|
|
99
99
|
return runPrActionReportCli(parsed);
|
|
100
100
|
},
|
|
101
|
-
watch: async ({ values }) => {
|
|
102
|
-
const { runWatchCli } = await import("../chunks/watch-cli-CYUVS6aE.js");
|
|
103
|
-
return runWatchCli({
|
|
104
|
-
inboxUrl: typeof values.inbox === "string" ? values.inbox : null,
|
|
105
|
-
isPingOnly: values.ping === true
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
101
|
vault: async ({ values }) => {
|
|
109
|
-
const { runVaultCli } = await import("../chunks/vault-cli-
|
|
102
|
+
const { runVaultCli } = await import("../chunks/vault-cli-4yXHgVeo.js");
|
|
110
103
|
return runVaultCli({
|
|
111
104
|
serverUrl: typeof values.server === "string" ? values.server : null,
|
|
112
105
|
accountName: typeof values.account === "string" ? values.account : null,
|
|
113
106
|
newItemsVault: typeof values["new-items-vault"] === "string" ? values["new-items-vault"] : null
|
|
114
107
|
});
|
|
115
108
|
},
|
|
109
|
+
watch: async ({ values }) => {
|
|
110
|
+
const { runWatchCli } = await import("../chunks/watch-cli-BozTol4o.js");
|
|
111
|
+
return runWatchCli({ rawPort: typeof values.port === "string" ? values.port : null });
|
|
112
|
+
},
|
|
116
113
|
"ssh-sign": async ({ rawArgs }) => {
|
|
117
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
114
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-qKI9hlNb.js");
|
|
118
115
|
return runSshSignCli(rawArgs);
|
|
119
116
|
}
|
|
120
117
|
};
|
|
@@ -136,7 +133,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
136
133
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
137
134
|
}
|
|
138
135
|
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) => {
|
|
139
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
136
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-BLN5MWaF.js");
|
|
140
137
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
141
138
|
}])]);
|
|
142
139
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -150,7 +147,7 @@ function missingAgentText(agentId) {
|
|
|
150
147
|
}
|
|
151
148
|
async function printSessionLimits() {
|
|
152
149
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
153
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
150
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-BLN5MWaF.js");
|
|
154
151
|
const limitsLines = await sessionLimitsHelpLines();
|
|
155
152
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
156
153
|
}
|
|
@@ -207,7 +204,7 @@ async function readDeclaredCustomAgents() {
|
|
|
207
204
|
declared: [],
|
|
208
205
|
error: null
|
|
209
206
|
};
|
|
210
|
-
const { loadConfigFile } = await import("../chunks/config-store-
|
|
207
|
+
const { loadConfigFile } = await import("../chunks/config-store-CydcoQYr.js");
|
|
211
208
|
try {
|
|
212
209
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
213
210
|
if (!loaded.config) return {
|
|
@@ -283,7 +280,7 @@ async function runDoctor() {
|
|
|
283
280
|
}
|
|
284
281
|
switchSection("Agents");
|
|
285
282
|
try {
|
|
286
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
283
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-DKvG8d1N.js");
|
|
287
284
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
288
285
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
289
286
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -291,10 +288,10 @@ async function runDoctor() {
|
|
|
291
288
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
292
289
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
293
290
|
}
|
|
294
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
291
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-f-t3FuSE.js");
|
|
295
292
|
const grokSetup = inspectGrokAgentSetup();
|
|
296
293
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
297
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
294
|
+
const { default: kimi } = await import("../chunks/kimi-vLAt04ly.js");
|
|
298
295
|
const { describeAgentHome } = await import("../chunks/agent-home-BIDgimmJ.js");
|
|
299
296
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-B3IRzwkX.js");
|
|
300
297
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -305,7 +302,7 @@ async function runDoctor() {
|
|
|
305
302
|
try {
|
|
306
303
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-BI7m38Nj.js");
|
|
307
304
|
const { execFileSync } = await import("../chunks/child-process-safe-BrQd4i6y.js");
|
|
308
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
305
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-f-t3FuSE.js");
|
|
309
306
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
310
307
|
line("Sane YOLO", binPath || "not installed");
|
|
311
308
|
if (binPath) line("cc-safety-net version", execFileSync(process.execPath, [binPath, "--version"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { o as describeAgentResolvability, f as listAgentIds, g as setCustomAgents } from "./adapters-
|
|
1
|
+
export { o as describeAgentResolvability, f as listAgentIds, g as setCustomAgents } from "./adapters-ciCSEeuG.js";
|
|
@@ -1,30 +1,88 @@
|
|
|
1
|
-
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-
|
|
2
|
-
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok
|
|
3
|
-
import { n as buildAgentEnv } from "./spawn-env-
|
|
1
|
+
import { n as buildAgentSpawnCommand, r as resolveAgentCommand, t as kimi } from "./kimi-CWl-0JEY.js";
|
|
2
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-BQ2YzXm5.js";
|
|
3
|
+
import { n as buildAgentEnv } from "./spawn-env-DusuISAX.js";
|
|
4
4
|
import { i as execFileSync, l as spawn, r as execFileAsync } from "./child-process-safe-pP6Vf2i9.js";
|
|
5
5
|
import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
|
|
6
6
|
import { c as loadedJsonValue, d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync, s as loadJsonStateFileSync, t as appendJsonLine } from "./json-file-ZNAeT6DN.js";
|
|
7
|
-
import {
|
|
8
|
-
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Cn as FULL_SHA_RE, D as REQUEST_USER_INPUT_TOOL_NAME, S as CONVERSATION_PERMISSION_HOOK_EVENT, Tn as shortSha$1, i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
7
|
+
import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-CFmAOi62.js";
|
|
8
|
+
import { C as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Cn as FULL_SHA_RE, D as REQUEST_USER_INPUT_TOOL_NAME, S as CONVERSATION_PERMISSION_HOOK_EVENT, Tn as shortSha$1, i as ASK_USER_QUESTION_TOOL_NAME } from "./session-D2If80a1.js";
|
|
9
9
|
import { a as rawTextOr, n as isRecord, o as textOr, r as numberOr } from "./coerce-D6vRlIGO.js";
|
|
10
10
|
import { l as relayPath } from "./runtime-paths-5UK7AN_h.js";
|
|
11
11
|
import { n as shellQuote, t as buildHookCommand } from "./hook-command-core-Bu5xBKp3.js";
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
12
|
+
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-DqvfS8ed.js";
|
|
13
|
+
import { Vt as HTTP_URL_RE, fn as PLAN_HOOK_EVENT, hn as PLAN_TOOL_NAME, ln as UpdateChannel, mn as PLAN_RESULT_HOOK_EVENT, nn as InstallFlavor } from "./control-messages-CRm8sO0Y.js";
|
|
14
14
|
import { o as QUESTION_TOOL_HOLD_HOOK_EVENT } from "./question-manager-C_RzS1Ot.js";
|
|
15
15
|
import { i as safePathSegment, r as isPathInside } from "./paths-C2u2R_6l.js";
|
|
16
16
|
import { r as nextBackoffMs } from "./backoff-CMhw1Fu8.js";
|
|
17
17
|
import { n as parseJsonRecord } from "./json-core-B1ov-SNz.js";
|
|
18
18
|
import { S as cleanJsonc, _ 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 tomlBasicString } from "./agent-home-core-DmcBI03O.js";
|
|
19
|
-
import { a as QWEN_SANE_YOLO_FLAVOR, n as COPILOT_SANE_YOLO_FLAVOR, r as GEMINI_SANE_YOLO_FLAVOR, t as CODEX_SANE_YOLO_FLAVOR } from "./sane-yolo-DqvfS8ed.js";
|
|
20
19
|
import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, s as readOptionalText } from "./agent-home-rRvnBnrO.js";
|
|
21
|
-
import { c as SHELL_AGENT_ID } from "./config-
|
|
20
|
+
import { c as SHELL_AGENT_ID } from "./config-BM4-f0Z8.js";
|
|
22
21
|
import fs from "node:fs";
|
|
23
22
|
import path from "node:path";
|
|
24
23
|
import os from "node:os";
|
|
25
24
|
import { z } from "zod";
|
|
26
25
|
import crypto from "node:crypto";
|
|
27
26
|
import fsp, { mkdir, mkdtemp, readdir, realpath, rm } from "node:fs/promises";
|
|
27
|
+
// session/core/hook-tools.ts
|
|
28
|
+
function toForwardSlashes$1(commandPath) {
|
|
29
|
+
return commandPath.replace(/\\/g, "/");
|
|
30
|
+
}
|
|
31
|
+
function codexGroup(command, matcher = "Bash") {
|
|
32
|
+
if (!command) return null;
|
|
33
|
+
return `{matcher='${matcher}',hooks=[{type='command',command='${command}'}]}`;
|
|
34
|
+
}
|
|
35
|
+
function posthogToolMatcher(tool) {
|
|
36
|
+
return `^mcp__${tool.serverName ?? ""}__`;
|
|
37
|
+
}
|
|
38
|
+
function posthogGateCommand(tool) {
|
|
39
|
+
return `"${toForwardSlashes$1(tool.interpreterPath ?? "node")}" "${toForwardSlashes$1(tool.binPath)}" ${tool.serverName ?? ""} || exit 2`;
|
|
40
|
+
}
|
|
41
|
+
var HOOK_TOOLS = {
|
|
42
|
+
saneYolo: {
|
|
43
|
+
capability: "saneYolo",
|
|
44
|
+
purpose: "Sane YOLO catastrophic command protection",
|
|
45
|
+
env: (tool, homeDir) => ({
|
|
46
|
+
[SANE_YOLO_PATH_ENV]: tool.binPath,
|
|
47
|
+
...saneYoloEnv(homeDir)
|
|
48
|
+
}),
|
|
49
|
+
claudeEntry: (tool) => ({
|
|
50
|
+
matcher: "Bash|PowerShell|Monitor|Read|Edit|Write|MultiEdit|NotebookEdit|Glob|Grep",
|
|
51
|
+
hooks: [{
|
|
52
|
+
type: "command",
|
|
53
|
+
command: `node "${toForwardSlashes$1(tool.binPath)}" hook --coding-cli`
|
|
54
|
+
}]
|
|
55
|
+
}),
|
|
56
|
+
codexGroup: (tool) => codexGroup(buildHookCommand(tool.binPath, "hook", ["--codex"])),
|
|
57
|
+
codexTrustedArgs: () => []
|
|
58
|
+
},
|
|
59
|
+
posthogReadGate: {
|
|
60
|
+
capability: "hooks",
|
|
61
|
+
purpose: "Read-only PostHog MCP access for lanes",
|
|
62
|
+
env: () => ({}),
|
|
63
|
+
claudeEntry: (tool) => ({
|
|
64
|
+
matcher: posthogToolMatcher(tool),
|
|
65
|
+
hooks: [{
|
|
66
|
+
type: "command",
|
|
67
|
+
command: posthogGateCommand(tool)
|
|
68
|
+
}]
|
|
69
|
+
}),
|
|
70
|
+
codexGroup: (tool) => codexGroup(posthogGateCommand(tool), posthogToolMatcher(tool)),
|
|
71
|
+
codexTrustedArgs: (tool) => [
|
|
72
|
+
"-c",
|
|
73
|
+
"features.hooks=true",
|
|
74
|
+
"-c",
|
|
75
|
+
`mcp_servers.${tool.serverName ?? ""}.default_tools_approval_mode="approve"`
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
function mergeCodexPreToolUse(groups) {
|
|
80
|
+
if (groups.length === 0) return [];
|
|
81
|
+
return ["-c", `hooks.PreToolUse=[${groups.join(",")}]`];
|
|
82
|
+
}
|
|
83
|
+
function isHookToolId(name) {
|
|
84
|
+
return Object.hasOwn(HOOK_TOOLS, name);
|
|
85
|
+
}
|
|
28
86
|
// session/core/claude-trust-core.ts
|
|
29
87
|
var CLAUDE_CONFIG_LOCK_SUFFIX = ".lock";
|
|
30
88
|
var CLAUDE_CONFIG_LOCK_STALE_MS = 1e4;
|
|
@@ -3881,4 +3939,4 @@ function cachedAgentResolvability(agentId) {
|
|
|
3881
3939
|
function resetCommandCache() {
|
|
3882
3940
|
resolvedCommands.clear();
|
|
3883
3941
|
}
|
|
3884
|
-
export { codexSessionIdFromPath as $, removalsJournalPath as $t, pickNewestPublished as A, vendorUsageEntry as At, planUploadRetention as B, agentHookGroupOf as Bt, decideUpdateStatus as C, identityFromRelPath as Ct, parseRegistryDeprecation as D, parseUsageLine as Dt, normalizeUpdateChannel as E, parseJsonLine as Et, decideUploadType as F, generateToken as Ft, containmentRefusalReason as G, readStoredHooks as Gt, TRACE_TAIL_SCAN_BYTES as H, hooksForProject as Ht, exceedsUploadCap as I, sweepOrphans as It, resumeOffsetFrom as J, makeHostScratchDirectory as Jt, isOversizedPartialLine as K, removeHook as Kt, framePathPaste as L, writeSessionSettings as Lt, openContainedFile as M, HOOK_EVENTS$4 as Mt, MAX_UPLOAD_BYTES as N, PLAN_HOLD_RELEASE_MS as Nt, parseRegistryLatest as O, shouldReplace as Ot, buildUploadFilename as P, buildHookSettings as Pt, codexRootCandidates as Q, recordSweptPath as Qt, imageMimeForUploadFilename as R, HOOK_EVENT_CATALOG as Rt, decideInstallFlavor as S, foldReplacementIntoGenerationRollup as St, normalizeSha as T, mergeGenerationRollups as Tt, committedOffsetFromTraceTailOrNull as U, normalizeHook as Ut, MAX_TRANSCRIPT_READ_BYTES as V, appendUserHooks as Vt, completeLineBytes as W, rawStoredHooks as Wt, codexFallbackRoots as X, appendRemovalRecord as Xt, withCommittedOffset as Y, sweepOrphanedHostScratch as Yt, codexHomes as Z, appendRemovalRecordSync as Zt, folderTrustRoot as _, addEntryToTotals as _t, customAgentFingerprint as a, isUsageFile as at, requestCodexAppServer as b, expandAdvisorIterations as bt, hookProfileOf as c, projectDirCandidates as ct, isKnownAgentId as d, sessionsRootCandidates as dt, listClaudeGlobalConfigPathCandidates as en, continuationDelayMs as et, listAgentIds as f, shouldEvaluateDespiteIoFailures as ft, setCustomAgents as g, parseKimiUsageLine as gt, resolveAdapter as h, kimiDedupIdentity as ht, commandFor as i, grokHomes as it, shortSha as j, claudeCode as jt, parseResolvedSha as k, totalTokensOf as kt, isBuiltInAgentId as l, resolveProjectsDirs as lt, resetCommandCache as m, splitLines as mt, DEFAULT_AGENT_ID as n, dedupeCodexFiles as nt, describeAgentResolvability as o, kimiHomes as ot, projectHookConfigRelPaths as p, shouldPersistWarehouse as pt, planContiguousRead as q, upsertHook as qt, cachedAgentResolvability as r, expandTilde as rt, getAdapter as s, passOutcome as st, BUILT_IN_AGENTS as t, decideFileRead as tt, isFirstClassAgent as u, scopedClaudeRoots as ut, codex as v, dedupKeys as vt, isCheckFresh as w, isWithinGenerationRecencyWindow as wt, NODE_PTY_INSTALL_SCRIPT_FLAG as x, foldEntryIntoGenerationRollup as xt, readHostCodexVersion as y, emptyTotals as yt, isSafePathSegment as z, ID_RE as zt };
|
|
3942
|
+
export { codexSessionIdFromPath as $, removalsJournalPath as $t, pickNewestPublished as A, vendorUsageEntry as At, planUploadRetention as B, agentHookGroupOf as Bt, decideUpdateStatus as C, identityFromRelPath as Ct, parseRegistryDeprecation as D, parseUsageLine as Dt, normalizeUpdateChannel as E, parseJsonLine as Et, decideUploadType as F, generateToken as Ft, containmentRefusalReason as G, readStoredHooks as Gt, TRACE_TAIL_SCAN_BYTES as H, hooksForProject as Ht, exceedsUploadCap as I, sweepOrphans as It, resumeOffsetFrom as J, makeHostScratchDirectory as Jt, isOversizedPartialLine as K, removeHook as Kt, framePathPaste as L, writeSessionSettings as Lt, openContainedFile as M, HOOK_EVENTS$4 as Mt, MAX_UPLOAD_BYTES as N, PLAN_HOLD_RELEASE_MS as Nt, parseRegistryLatest as O, shouldReplace as Ot, buildUploadFilename as P, buildHookSettings as Pt, codexRootCandidates as Q, recordSweptPath as Qt, imageMimeForUploadFilename as R, HOOK_EVENT_CATALOG as Rt, decideInstallFlavor as S, foldReplacementIntoGenerationRollup as St, normalizeSha as T, mergeGenerationRollups as Tt, committedOffsetFromTraceTailOrNull as U, normalizeHook as Ut, MAX_TRANSCRIPT_READ_BYTES as V, appendUserHooks as Vt, completeLineBytes as W, rawStoredHooks as Wt, codexFallbackRoots as X, appendRemovalRecord as Xt, withCommittedOffset as Y, sweepOrphanedHostScratch as Yt, codexHomes as Z, appendRemovalRecordSync as Zt, folderTrustRoot as _, addEntryToTotals as _t, customAgentFingerprint as a, isUsageFile as at, requestCodexAppServer as b, expandAdvisorIterations as bt, hookProfileOf as c, projectDirCandidates as ct, isKnownAgentId as d, sessionsRootCandidates as dt, listClaudeGlobalConfigPathCandidates as en, continuationDelayMs as et, listAgentIds as f, shouldEvaluateDespiteIoFailures as ft, setCustomAgents as g, parseKimiUsageLine as gt, resolveAdapter as h, kimiDedupIdentity as ht, commandFor as i, grokHomes as it, shortSha as j, claudeCode as jt, parseResolvedSha as k, totalTokensOf as kt, isBuiltInAgentId as l, resolveProjectsDirs as lt, resetCommandCache as m, splitLines as mt, DEFAULT_AGENT_ID as n, dedupeCodexFiles as nt, describeAgentResolvability as o, kimiHomes as ot, projectHookConfigRelPaths as p, shouldPersistWarehouse as pt, planContiguousRead as q, upsertHook as qt, cachedAgentResolvability as r, expandTilde as rt, getAdapter as s, passOutcome as st, BUILT_IN_AGENTS as t, HOOK_TOOLS as tn, decideFileRead as tt, isFirstClassAgent as u, scopedClaudeRoots as ut, codex as v, dedupKeys as vt, isCheckFresh as w, isWithinGenerationRecencyWindow as wt, NODE_PTY_INSTALL_SCRIPT_FLAG as x, foldEntryIntoGenerationRollup as xt, readHostCodexVersion as y, emptyTotals as yt, isSafePathSegment as z, ID_RE as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as resolveHookTarget } from "./hook-relay-core-ne0rkTgG.js";
|
|
2
|
-
import { X as formatSessionLimits, at as parseCommand, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-
|
|
2
|
+
import { X as formatSessionLimits, at as parseCommand, i as agentCommandSpec, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-DlDi35_H.js";
|
|
3
3
|
import { t as AgentNeedReply } from "./secrets-DUjhXqjU.js";
|
|
4
|
-
import { r as AGENT_URL_ENV, u as AgentLimitsReply } from "./session-
|
|
4
|
+
import { r as AGENT_URL_ENV, u as AgentLimitsReply } from "./session-D2If80a1.js";
|
|
5
5
|
import { S as STEP_STATUSES, T as WhiteboardAgentReply, x as Op } from "./whiteboard-4D2QlRnn.js";
|
|
6
6
|
import { P as boardSvgDocument, p as layoutBoard } from "./whiteboard-layout-core-Ds1WuyDi.js";
|
|
7
7
|
import { i as stepBoxesOf, n as dependencyWireIdsInto, r as planSteps, t as dependencyWireId } from "./whiteboard-plan-core-B8bQWIvS.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-BD7vL66F.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as TASK_TITLE_CONTROL_CHARACTERS, O as RefinedTaskTitle, _ as AgentSettingsRequest, a as AgentAnswerRequest, c as AgentCloseRequest, d as AgentPacksRequest, f as AgentPullRequestRequest, h as AgentSendRequest, k as SESSION_COMMANDS, l as AgentEditRequest, m as AgentReviewsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentReadRequest, s as AgentCheckoutRequest, t as AGENT_API_VERBS, v as AgentSpawnRequest, y as AgentWhyRequest } from "./session-
|
|
1
|
+
import { sn as pullRequestKeyFromReference } from "./control-messages-CRm8sO0Y.js";
|
|
2
|
+
import { H as TASK_TITLE_CONTROL_CHARACTERS, O as RefinedTaskTitle, _ as AgentSettingsRequest, a as AgentAnswerRequest, c as AgentCloseRequest, d as AgentPacksRequest, f as AgentPullRequestRequest, h as AgentSendRequest, k as SESSION_COMMANDS, l as AgentEditRequest, m as AgentReviewsRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAttentionRequest, p as AgentReadRequest, s as AgentCheckoutRequest, t as AGENT_API_VERBS, v as AgentSpawnRequest, y as AgentWhyRequest } from "./session-D2If80a1.js";
|
|
3
3
|
import { n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
|
|
4
4
|
import { E as WhiteboardAgentRequest } from "./whiteboard-4D2QlRnn.js";
|
|
5
5
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
6
6
|
import { a as firstCodePoints } from "./text-BDF4aFhQ.js";
|
|
7
|
-
import { l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-
|
|
7
|
+
import { l as TASK_TITLE_SOURCE_PRIORITY, o as PersistedTaskTitle } from "./config-BM4-f0Z8.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { parseArgs } from "node:util";
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -411,20 +411,6 @@ change it in the dashboard settings or through its environment variable.`,
|
|
|
411
411
|
}
|
|
412
412
|
]
|
|
413
413
|
},
|
|
414
|
-
watch: {
|
|
415
|
-
name: "watch",
|
|
416
|
-
summary: "Run the watcher: deliver jobs to a Glimmervoid job inbox with the GLIMMERVOID_WATCHER_TOKEN bearer token",
|
|
417
|
-
options: [{
|
|
418
|
-
name: "inbox",
|
|
419
|
-
type: "string",
|
|
420
|
-
valueName: "url",
|
|
421
|
-
summary: "The job inbox to deliver to, for example http://127.0.0.1:7700 (https for another machine)"
|
|
422
|
-
}, {
|
|
423
|
-
name: "ping",
|
|
424
|
-
type: "boolean",
|
|
425
|
-
summary: "Send one ping job, then exit 0 on its ack or 1 with the reason"
|
|
426
|
-
}]
|
|
427
|
-
},
|
|
428
414
|
vault: {
|
|
429
415
|
name: "vault",
|
|
430
416
|
summary: "Run the vault companion on the operator's machine: read approved secrets from 1Password for a Glimmervoid server's sessions",
|
|
@@ -449,6 +435,16 @@ change it in the dashboard settings or through its environment variable.`,
|
|
|
449
435
|
}
|
|
450
436
|
]
|
|
451
437
|
},
|
|
438
|
+
watch: {
|
|
439
|
+
name: "watch",
|
|
440
|
+
summary: "Run the watcher: run the probes the server sends and nudge the server when one changes, reading the link secret and server URL from the environment",
|
|
441
|
+
options: [{
|
|
442
|
+
name: "port",
|
|
443
|
+
type: "string",
|
|
444
|
+
valueName: "number",
|
|
445
|
+
summary: "The loopback port the server sends probes to (default: any free port)"
|
|
446
|
+
}]
|
|
447
|
+
},
|
|
452
448
|
"ssh-sign": {
|
|
453
449
|
name: "ssh-sign",
|
|
454
450
|
summary: "Sign a commit with the operator's forwarded ssh agent (git runs this)",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok
|
|
1
|
+
import { a as classifyGrokHooksFile, o as renderGrokHooksFile, t as grok } from "./grok-BQ2YzXm5.js";
|
|
2
2
|
import { o as isMissingFileError, r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
3
3
|
import { p as writeTextAtomicSync } from "./json-file-ZNAeT6DN.js";
|
|
4
4
|
import fs from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { U as TaskTitle, ft as SessionPrLinks, kn as repoParts, pn as PrFlowsSettings } from "./session-
|
|
1
|
+
import { U as TaskTitle, ft as SessionPrLinks, kn as repoParts, pn as PrFlowsSettings } from "./session-D2If80a1.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as BRANCH_GC_STALE_DAYS_RANGE, B as DISCORD_CHANNEL_NAME_RE, Ct as POSTHOG_TRANSIENT_RECURRENCE_RANGE, Et as TASK_TITLE_TIMEOUT_RANGE, Ot as USAGE_INTEGER_RANGES, Q as BRANCH_GC_INTERVAL_MS_RANGE, St as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, V as SKILL_NAME_RE, X as WorkflowsSettingsUpdate, Y as WorkflowsSettings, _t as POSTHOG_PROJECT_ID_RANGE, bt as POSTHOG_TRAFFIC_COOLDOWN_RANGE, dt as POSTHOG_ESCALATION_RANGE, et as COMMUNITY_INTERVAL_MINUTES_RANGE, f as GitObjectSha, ft as POSTHOG_FIX_TIMEOUT_RANGE, gt as POSTHOG_MIN_USERS_RANGE, ht as POSTHOG_MAX_CONCURRENT_RANGE, i as HostEntries, ln as UpdateChannel, lt as PORT_RANGE, m as RaceId, mt as POSTHOG_INVESTIGATION_TIMEOUT_RANGE, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, pt as POSTHOG_INTERVAL_RANGE, st as MEMORY_RESERVE_MB_RANGE, tt as FIXED_PORT_RANGE, ut as POSITIVE_NUMBER_RANGE, v as AgentHomeKind, vt as POSTHOG_RECURRENCE_WINDOW_RANGE, wt as REPLAY_BUFFER_KB_RANGE, xt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, y as AgentSetup, yt as POSTHOG_TRAFFIC_BASELINE_RANGE } from "./control-messages-CRm8sO0Y.js";
|
|
4
4
|
import { c as QuestionManagerSettings } from "./question-manager-C_RzS1Ot.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -145,6 +145,7 @@ var PosthogSettings = optionalObject("posthog", {
|
|
|
145
145
|
autoFix: optionalBoolean("posthog.autoFix"),
|
|
146
146
|
host: optionalString("posthog.host", true).refine((value) => value == null || !value || /^https?:\/\//i.test(value), { message: "posthog.host must be an http(s) URL" }),
|
|
147
147
|
apiKey: optionalString("posthog.apiKey", true),
|
|
148
|
+
readApiKey: optionalString("posthog.readApiKey", true),
|
|
148
149
|
repoPath: optionalString("posthog.repoPath", true),
|
|
149
150
|
projects: z.union([z.literal("all"), z.array(z.number({ error: "posthog.projects must be \"all\" or an array of positive integer project ids" }).int({ error: "posthog.projects must be \"all\" or an array of positive integer project ids" }).positive({ error: "posthog.projects must be \"all\" or an array of positive integer project ids" }), { error: "posthog.projects must be \"all\" or an array of positive integer project ids" })], { error: "posthog.projects must be \"all\" or an array of positive integer project ids" }).optional(),
|
|
150
151
|
projectMap: z.record(z.string(), z.unknown(), { error: "posthog.projectMap must be an object" }).optional(),
|
|
@@ -179,16 +180,15 @@ var absoluteOrHomePathList = (field, isAbsolutePath) => z.array(z.string({ error
|
|
|
179
180
|
var telemetryShape = { enabled: optionalBoolean("telemetry.enabled") };
|
|
180
181
|
var TelemetrySettings = z.object(telemetryShape, { error: "telemetry must be an object" }).strict().optional();
|
|
181
182
|
var TelemetryFileSettings = z.object(telemetryShape, { error: "telemetry must be an object" }).passthrough().optional();
|
|
182
|
-
var
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
inboxPort: z.number({ error: "watcher.inboxPort must be a port from 1 to 65535 or null" }).int().min(FIXED_PORT_RANGE.min).max(FIXED_PORT_RANGE.max).nullable().optional()
|
|
183
|
+
var vaultShape = {
|
|
184
|
+
host: optionalString("vault.host", true),
|
|
185
|
+
port: z.number({ error: "vault.port must be a port from 1 to 65535 or null" }).int().min(FIXED_PORT_RANGE.min).max(FIXED_PORT_RANGE.max).nullable().optional()
|
|
186
186
|
};
|
|
187
|
-
var
|
|
188
|
-
var
|
|
189
|
-
...
|
|
187
|
+
var VaultSettings = z.object(vaultShape, { error: "vault must be an object" }).strict().optional();
|
|
188
|
+
var VaultFileSettings = z.object({
|
|
189
|
+
...vaultShape,
|
|
190
190
|
token: z.string().optional()
|
|
191
|
-
}, { error: "
|
|
191
|
+
}, { error: "vault must be an object" }).passthrough().optional();
|
|
192
192
|
var createBrowserConfigShape = (isAbsolutePath) => ({
|
|
193
193
|
port: z.number().int().min(PORT_RANGE.min).max(PORT_RANGE.max).optional(),
|
|
194
194
|
notifyDebounceMs: z.number().finite().nonnegative().optional(),
|
|
@@ -230,7 +230,7 @@ var createBrowserConfigShape = (isAbsolutePath) => ({
|
|
|
230
230
|
usage: createUsageSettings(isAbsolutePath),
|
|
231
231
|
telegram: TelegramSettings,
|
|
232
232
|
telemetry: TelemetrySettings,
|
|
233
|
-
|
|
233
|
+
vault: VaultSettings,
|
|
234
234
|
workflows: WorkflowsSettings.nullable().optional(),
|
|
235
235
|
prFlows: PrFlowsSettings.nullable().optional()
|
|
236
236
|
});
|
|
@@ -436,7 +436,7 @@ var Config = z.object({
|
|
|
436
436
|
ownerLogin: z.string().optional()
|
|
437
437
|
}).passthrough().optional(),
|
|
438
438
|
hosts: HostEntries.optional(),
|
|
439
|
-
|
|
439
|
+
vault: VaultFileSettings,
|
|
440
440
|
projects: z.array(ProjectConfig)
|
|
441
441
|
}).passthrough().superRefine((config, ctx) => {
|
|
442
442
|
if (!Array.isArray(config.projects)) return;
|
|
@@ -487,7 +487,7 @@ var CONFIG_BLOCK_KEYS = Object.freeze([
|
|
|
487
487
|
"usage",
|
|
488
488
|
"telegram",
|
|
489
489
|
"telemetry",
|
|
490
|
-
"
|
|
490
|
+
"vault",
|
|
491
491
|
"workflows",
|
|
492
492
|
"coder"
|
|
493
493
|
]);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
2
|
+
// server/core/config-secrets-core.ts
|
|
3
|
+
var ENV_SECRET_BINDINGS = Object.freeze([
|
|
4
|
+
{
|
|
5
|
+
blockName: "posthog",
|
|
6
|
+
secretKey: "apiKey",
|
|
7
|
+
environmentVariable: "GLIMMERVOID_POSTHOG_API_KEY",
|
|
8
|
+
isEnvironmentOnly: false
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
blockName: "posthog",
|
|
12
|
+
secretKey: "readApiKey",
|
|
13
|
+
environmentVariable: "GLIMMERVOID_POSTHOG_READ_API_KEY",
|
|
14
|
+
isEnvironmentOnly: false
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
blockName: "telegram",
|
|
18
|
+
secretKey: "botToken",
|
|
19
|
+
environmentVariable: "GLIMMERVOID_TELEGRAM_BOT_TOKEN",
|
|
20
|
+
isEnvironmentOnly: false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
blockName: "github",
|
|
24
|
+
secretKey: "readToken",
|
|
25
|
+
environmentVariable: "GLIMMERVOID_GITHUB_READ_TOKEN",
|
|
26
|
+
isEnvironmentOnly: false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
blockName: "vault",
|
|
30
|
+
secretKey: "token",
|
|
31
|
+
environmentVariable: "GLIMMERVOID_VAULT_TOKEN",
|
|
32
|
+
isEnvironmentOnly: true
|
|
33
|
+
}
|
|
34
|
+
]);
|
|
35
|
+
var ENVIRONMENT_ONLY_BINDINGS = ENV_SECRET_BINDINGS.filter((binding) => binding.isEnvironmentOnly);
|
|
36
|
+
function readEnvSecrets(env) {
|
|
37
|
+
const resolvedSecrets = [];
|
|
38
|
+
for (const binding of ENV_SECRET_BINDINGS) {
|
|
39
|
+
const value = env[binding.environmentVariable];
|
|
40
|
+
if (typeof value !== "string" || value.length === 0) continue;
|
|
41
|
+
resolvedSecrets.push({
|
|
42
|
+
...binding,
|
|
43
|
+
value
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return resolvedSecrets;
|
|
47
|
+
}
|
|
48
|
+
function copyOfBlock(config, blockName) {
|
|
49
|
+
const block = config[blockName];
|
|
50
|
+
if (!isRecord(block)) return {};
|
|
51
|
+
return { ...block };
|
|
52
|
+
}
|
|
53
|
+
function withEnvSecrets(config, envSecrets) {
|
|
54
|
+
const withoutFileHeldEnvironmentOnlySecrets = withoutEnvSecrets(config, ENVIRONMENT_ONLY_BINDINGS);
|
|
55
|
+
if (envSecrets.length === 0) return withoutFileHeldEnvironmentOnlySecrets;
|
|
56
|
+
const overlaid = { ...withoutFileHeldEnvironmentOnlySecrets };
|
|
57
|
+
for (const secret of envSecrets) overlaid[secret.blockName] = {
|
|
58
|
+
...copyOfBlock(overlaid, secret.blockName),
|
|
59
|
+
[secret.secretKey]: secret.value
|
|
60
|
+
};
|
|
61
|
+
return overlaid;
|
|
62
|
+
}
|
|
63
|
+
function withoutEnvSecrets(config, envSecrets) {
|
|
64
|
+
if (envSecrets.length === 0) return config;
|
|
65
|
+
const stripped = { ...config };
|
|
66
|
+
for (const secret of envSecrets) {
|
|
67
|
+
if (!isRecord(stripped[secret.blockName])) continue;
|
|
68
|
+
const remaining = copyOfBlock(stripped, secret.blockName);
|
|
69
|
+
delete remaining[secret.secretKey];
|
|
70
|
+
if (Object.keys(remaining).length === 0) {
|
|
71
|
+
delete stripped[secret.blockName];
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
stripped[secret.blockName] = remaining;
|
|
75
|
+
}
|
|
76
|
+
return stripped;
|
|
77
|
+
}
|
|
78
|
+
function withSortedKeys(value) {
|
|
79
|
+
if (Array.isArray(value)) return value.map(withSortedKeys);
|
|
80
|
+
if (!isRecord(value)) return value;
|
|
81
|
+
const sorted = {};
|
|
82
|
+
for (const key of Object.keys(value).sort()) sorted[key] = withSortedKeys(value[key]);
|
|
83
|
+
return sorted;
|
|
84
|
+
}
|
|
85
|
+
function stableConfigKey(value) {
|
|
86
|
+
return JSON.stringify(withSortedKeys(value));
|
|
87
|
+
}
|
|
88
|
+
export { withoutEnvSecrets as a, withEnvSecrets as i, readEnvSecrets as n, stableConfigKey as r, ENV_SECRET_BINDINGS as t };
|