glimmervoid 0.52.3-next.907 → 0.52.3-next.909
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 +18 -18
- package/dist/chunks/{adapters-Bpxp73pV.js → adapters-DB4JmDcV.js} +1 -1
- package/dist/chunks/{adapters-BB_cVOuu.js → adapters-DwgANN3A.js} +7 -7
- package/dist/chunks/{agent-api-cli-JrNrtqDx.js → agent-api-cli-a9jQM8gD.js} +5 -5
- package/dist/chunks/agent-api-cli-louSVPAm.js +1 -0
- package/dist/chunks/{agent-api-core-DwIrL8GD.js → agent-api-core-2q0C_oNf.js} +4 -4
- package/dist/chunks/{agent-setup-cli-JkOLi7qZ.js → agent-setup-cli-CVJcTC34.js} +1 -1
- package/dist/chunks/{board-store-core-TVGaLMCA.js → board-store-core-khjsQSbY.js} +2 -6
- package/dist/chunks/{config-DvIydQIP.js → config-COHY_N3p.js} +2 -2
- package/dist/chunks/{config-store-mjOK-0S9.js → config-store-BAWZYLRI.js} +93 -5
- package/dist/chunks/config-store-DZJFJxES.js +1 -0
- package/dist/chunks/{control-messages-DKOUIgCF.js → control-messages-BpDQ6rEU.js} +4 -4
- package/dist/chunks/{grok-CleDl9m3.js → grok-BIRsi9vA.js} +1 -1
- package/dist/chunks/{host-cli-DUMKj9oS.js → host-cli-C289cgea.js} +3 -3
- package/dist/chunks/{host-registry-core-CMGYm4Xl.js → host-registry-core-a6KlkQdw.js} +1 -1
- package/dist/chunks/kimi-BeZ6dGoj.js +1 -0
- package/dist/chunks/{kimi-BlUpdyrk.js → kimi-CmbWKxOS.js} +2 -2
- package/dist/chunks/{layout-worker-core-DLIQWLmg.js → layout-worker-core-CEqdiqTA.js} +28 -22
- package/dist/chunks/{watcher-link-RIafqyaA.js → link-signing-core-QyQDc4XP.js} +1 -71
- package/dist/chunks/{main-C-q7ckZl.js → main-bK3edLB1.js} +274 -92
- package/dist/chunks/{pack-agent-RGVse2r5.js → pack-agent-DCukZ2w3.js} +4 -4
- package/dist/chunks/{pack-bridge-C2SMBNVK.js → pack-bridge-CGiOVuxR.js} +1 -1
- package/dist/chunks/{pack-files-DaVKEQnJ.js → pack-files-sTdkoo2H.js} +3 -3
- package/dist/chunks/{packs-cli-D3LAPlk6.js → packs-cli-QxstGXo9.js} +5 -5
- package/dist/chunks/{pair-cli-0Wf41-Ks.js → pair-cli-DNlG4CKe.js} +2 -2
- package/dist/chunks/{pr-flows-cli-Bydq6l-8.js → pr-flows-cli-DMxuicPj.js} +5 -5
- package/dist/chunks/{pr-flows-external-jCWY255G.js → pr-flows-external-BSvnsau1.js} +3 -3
- package/dist/chunks/{remote-config-PAVx-DET.js → remote-config-D4jCIFjD.js} +1 -1
- package/dist/chunks/{session-CM3Z1_Wr.js → session-CDXol8Ub.js} +1 -1
- package/dist/chunks/{settings-cli-BzEls_mc.js → settings-cli-9FEgfQG2.js} +5 -5
- package/dist/chunks/settings-cli-B-ew0v9O.js +1 -0
- package/dist/chunks/{settings-readout-core-BdppFSga.js → settings-readout-core-CdHm6wBN.js} +2 -2
- package/dist/chunks/{spawn-env-BLOxjIfJ.js → spawn-env-D18R5qXK.js} +1 -1
- package/dist/chunks/{ssh-sign-cli--1brMTmJ.js → ssh-sign-cli-Cy0BK85K.js} +2 -2
- package/dist/chunks/{watch-cli-BozTol4o.js → watch-cli-yihKZKer.js} +2 -1
- package/dist/chunks/watcher-link-CmEbXgiN.js +78 -0
- package/dist/chunks/{whiteboard-6Wocx4Wt.js → whiteboard-DRJXZElZ.js} +5 -1
- package/dist/chunks/{whiteboard-layout-core-CsfgiILH.js → whiteboard-layout-core-PTrxs12D.js} +2 -2
- package/dist/chunks/{whiteboard-plan-core-DMmDhbqG.js → whiteboard-plan-core-G8PV9pyu.js} +1 -1
- package/dist/chunks/{whiteboard-tiles-Bf5-AEuT.js → whiteboard-tiles-DqAB4aRa.js} +3 -3
- package/dist/client/assets/{action-status-BRu8Iu6P.js → action-status-dfWRYrW_.js} +1 -1
- package/dist/client/assets/action-status-dfWRYrW_.js.br +0 -0
- package/dist/client/assets/{agent-core-CDw_9puE.js → agent-core-Dq-I_4Fp.js} +2 -2
- package/dist/client/assets/agent-core-Dq-I_4Fp.js.br +0 -0
- package/dist/client/assets/{agent-mark-CvBG0ACe.js → agent-mark-CD-aY7uz.js} +1 -1
- package/dist/client/assets/agent-mark-CD-aY7uz.js.br +0 -0
- package/dist/client/assets/{arena-panel-EncQvC3M.js → arena-panel-CgUabmbp.js} +2 -2
- package/dist/client/assets/arena-panel-CgUabmbp.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-jfVehXrU.js → benchmark-panel-DKz3cnAx.js} +1 -1
- package/dist/client/assets/benchmark-panel-DKz3cnAx.js.br +0 -0
- package/dist/client/assets/{boards-view-CHT_Cseh.js → boards-view-Dv4TCgDC.js} +1 -1
- package/dist/client/assets/boards-view-Dv4TCgDC.js.br +0 -0
- package/dist/client/assets/{button-C7SLamNc.js → button-DvHS73Fb.js} +1 -1
- package/dist/client/assets/button-DvHS73Fb.js.br +0 -0
- package/dist/client/assets/{card-actions-CEgEGdEO.js → card-actions-CPyfKERi.js} +1 -1
- package/dist/client/assets/{card-registry-CFVpb1ft.js → card-registry-Dz0URN54.js} +1 -1
- package/dist/client/assets/card-registry-Dz0URN54.js.br +0 -0
- package/dist/client/assets/{celebration-player-CdqkM3Xr.js → celebration-player-DbKUyplm.js} +1 -1
- package/dist/client/assets/celebration-player-DbKUyplm.js.br +0 -0
- package/dist/client/assets/{chart-readout-D2cts2K-.js → chart-readout-B2EP9hnD.js} +1 -1
- package/dist/client/assets/{community-panel-CyobYCew.js → community-panel-ChV5j_MF.js} +1 -1
- package/dist/client/assets/community-panel-ChV5j_MF.js.br +0 -0
- package/dist/client/assets/{control-ws-CZlkZIb9.js → control-ws-zkCkCpGX.js} +1 -1
- package/dist/client/assets/control-ws-zkCkCpGX.js.br +0 -0
- package/dist/client/assets/{dialogs-_PPaszQV.js → dialogs-BzwOg8jH.js} +1 -1
- package/dist/client/assets/dialogs-BzwOg8jH.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-D5o9otxV.js → doc-editor-ui-HYwgBJJF.js} +1 -1
- package/dist/client/assets/doc-editor-ui-HYwgBJJF.js.br +0 -0
- package/dist/client/assets/dom-helpers-DJvd5MKA.js +1 -0
- package/dist/client/assets/dom-helpers-DJvd5MKA.js.br +0 -0
- package/dist/client/assets/{feature-hint-BVMkETlA.js → feature-hint-BvT6i1vp.js} +1 -1
- package/dist/client/assets/feature-hint-BvT6i1vp.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-CNKEABoq.js → first-run-checklist-JiuVGWfz.js} +1 -1
- package/dist/client/assets/first-run-checklist-JiuVGWfz.js.br +0 -0
- package/dist/client/assets/{flying-animal-preview-Dl3rVXO6.js → flying-animal-preview-D23fr3bI.js} +1 -1
- package/dist/client/assets/{hooks-panel-DKApCFlw.js → hooks-panel-By5dHOYW.js} +1 -1
- package/dist/client/assets/hooks-panel-By5dHOYW.js.br +0 -0
- package/dist/client/assets/{index-TXtcA22X.js → index-BBTXnYv5.js} +5 -5
- package/dist/client/assets/index-BBTXnYv5.js.br +0 -0
- package/dist/client/assets/{issues-panel-gP1MOEzb.js → issues-panel-DuIOK7dC.js} +1 -1
- package/dist/client/assets/issues-panel-DuIOK7dC.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-9MN-_xBV.js → lane-read-token-step-Ct-q40iA.js} +1 -1
- package/dist/client/assets/lane-read-token-step-Ct-q40iA.js.br +0 -0
- package/dist/client/assets/{menu-BMRRDtdm.js → menu-COJ5S1Hc.js} +1 -1
- package/dist/client/assets/menu-COJ5S1Hc.js.br +1 -0
- package/dist/client/assets/{modal-D4nA7tAU.js → modal-BRYx12QA.js} +1 -1
- package/dist/client/assets/modal-BRYx12QA.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CRNe6-Lj.js → my-prs-panel-Cg-hRlz7.js} +1 -1
- package/dist/client/assets/my-prs-panel-Cg-hRlz7.js.br +0 -0
- package/dist/client/assets/{nyan-cat-DOg6i71b.js → nyan-cat-Doyx7fmE.js} +1 -1
- package/dist/client/assets/nyan-cat-Doyx7fmE.js.br +0 -0
- package/dist/client/assets/{phone-shell-DgThU4rA.js → phone-shell-CKR2Wo6R.js} +1 -1
- package/dist/client/assets/phone-shell-CKR2Wo6R.js.br +0 -0
- package/dist/client/assets/{plan-face-DBpejMes.js → plan-face-joEXtuyG.js} +1 -1
- package/dist/client/assets/plan-face-joEXtuyG.js.br +0 -0
- package/dist/client/assets/{plan-render-b4hfgPzY.js → plan-render-D4SpB_W5.js} +1 -1
- package/dist/client/assets/plan-render-D4SpB_W5.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BjuevAdQ.js → pr-queue-columns-BP1umO-O.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BP1umO-O.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-BXz1v0Fp.js → pr-status-icon-Bv6LCx6G.js} +1 -1
- package/dist/client/assets/pr-status-icon-Bv6LCx6G.js.br +0 -0
- package/dist/client/assets/{radar-panel-DAq4ha0j.js → radar-panel-nJdoHSAY.js} +1 -1
- package/dist/client/assets/radar-panel-nJdoHSAY.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-Bq724t-y.js → repo-roots-adder-CilEKhzW.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CilEKhzW.js.br +0 -0
- package/dist/client/assets/{resume-dialog-Bo0240m8.js → resume-dialog-BlXB-1P7.js} +1 -1
- package/dist/client/assets/resume-dialog-BlXB-1P7.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-DO4r7zab.js → review-queue-panel-BFZ1IdWq.js} +1 -1
- package/dist/client/assets/review-queue-panel-BFZ1IdWq.js.br +0 -0
- package/dist/client/assets/{session-row-DZYIZWtI.js → session-row-Jejj3-Ib.js} +1 -1
- package/dist/client/assets/session-row-Jejj3-Ib.js.br +0 -0
- package/dist/client/assets/{session-tick-BFGhEgBa.js → session-tick-DwoMf2Cg.js} +1 -1
- package/dist/client/assets/session-tick-DwoMf2Cg.js.br +0 -0
- package/dist/client/assets/{settings-panel-6K0QaS9J.js → settings-panel-DLNhJUI6.js} +2 -2
- package/dist/client/assets/settings-panel-DLNhJUI6.js.br +0 -0
- package/dist/client/assets/{setup-step-C3CgVblt.js → setup-step-BVrVC6sd.js} +1 -1
- package/dist/client/assets/setup-step-BVrVC6sd.js.br +0 -0
- package/dist/client/assets/{trace-panel-BHYQRc2G.js → trace-panel-CsqK6r75.js} +1 -1
- package/dist/client/assets/trace-panel-CsqK6r75.js.br +0 -0
- package/dist/client/assets/{ui-prefs-CH9smlIV.js → ui-prefs-Ca03tvpV.js} +1 -1
- package/dist/client/assets/ui-prefs-Ca03tvpV.js.br +0 -0
- package/dist/client/assets/{usage-panel-B4Zyg4Hb.js → usage-panel-CNLoGy6H.js} +1 -1
- package/dist/client/assets/usage-panel-CNLoGy6H.js.br +0 -0
- package/dist/client/assets/{your-day-tip-ClQhVo7O.js → your-day-tip-C0LYJvbE.js} +1 -1
- package/dist/client/assets/your-day-tip-C0LYJvbE.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/dist/server/whiteboard/board-store-worker.js +1 -1
- package/dist/server/whiteboard/layout-worker.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-CML2lYYo.js +0 -1
- package/dist/chunks/config-store--yvQLObm.js +0 -1
- package/dist/chunks/kimi-CJWr3aPa.js +0 -1
- package/dist/chunks/settings-cli-BMcUze7U.js +0 -1
- package/dist/client/assets/action-status-BRu8Iu6P.js.br +0 -0
- package/dist/client/assets/agent-core-CDw_9puE.js.br +0 -0
- package/dist/client/assets/agent-mark-CvBG0ACe.js.br +0 -0
- package/dist/client/assets/arena-panel-EncQvC3M.js.br +0 -0
- package/dist/client/assets/benchmark-panel-jfVehXrU.js.br +0 -0
- package/dist/client/assets/boards-view-CHT_Cseh.js.br +0 -0
- package/dist/client/assets/button-C7SLamNc.js.br +0 -0
- package/dist/client/assets/card-registry-CFVpb1ft.js.br +0 -0
- package/dist/client/assets/celebration-player-CdqkM3Xr.js.br +0 -0
- package/dist/client/assets/community-panel-CyobYCew.js.br +0 -0
- package/dist/client/assets/control-ws-CZlkZIb9.js.br +0 -0
- package/dist/client/assets/dialogs-_PPaszQV.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-D5o9otxV.js.br +0 -0
- package/dist/client/assets/dom-helpers-DMxXv4Ea.js +0 -1
- package/dist/client/assets/dom-helpers-DMxXv4Ea.js.br +0 -0
- package/dist/client/assets/feature-hint-BVMkETlA.js.br +0 -0
- package/dist/client/assets/first-run-checklist-CNKEABoq.js.br +0 -0
- package/dist/client/assets/hooks-panel-DKApCFlw.js.br +0 -0
- package/dist/client/assets/index-TXtcA22X.js.br +0 -0
- package/dist/client/assets/issues-panel-gP1MOEzb.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-9MN-_xBV.js.br +0 -0
- package/dist/client/assets/menu-BMRRDtdm.js.br +0 -0
- package/dist/client/assets/modal-D4nA7tAU.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CRNe6-Lj.js.br +0 -0
- package/dist/client/assets/nyan-cat-DOg6i71b.js.br +0 -0
- package/dist/client/assets/phone-shell-DgThU4rA.js.br +0 -0
- package/dist/client/assets/plan-face-DBpejMes.js.br +0 -0
- package/dist/client/assets/plan-render-b4hfgPzY.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BjuevAdQ.js.br +0 -0
- package/dist/client/assets/pr-status-icon-BXz1v0Fp.js.br +0 -0
- package/dist/client/assets/radar-panel-DAq4ha0j.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-Bq724t-y.js.br +0 -0
- package/dist/client/assets/resume-dialog-Bo0240m8.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DO4r7zab.js.br +0 -0
- package/dist/client/assets/session-row-DZYIZWtI.js.br +0 -0
- package/dist/client/assets/session-tick-BFGhEgBa.js.br +0 -0
- package/dist/client/assets/settings-panel-6K0QaS9J.js.br +0 -0
- package/dist/client/assets/setup-step-C3CgVblt.js.br +0 -0
- package/dist/client/assets/trace-panel-BHYQRc2G.js.br +0 -0
- package/dist/client/assets/ui-prefs-CH9smlIV.js.br +0 -0
- package/dist/client/assets/usage-panel-B4Zyg4Hb.js.br +0 -0
- package/dist/client/assets/your-day-tip-ClQhVo7O.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-CDXol8Ub.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-2q0C_oNf.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";
|
|
@@ -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-DNlG4CKe.js");
|
|
71
71
|
return runPairCli({
|
|
72
72
|
isListing: values.list === true,
|
|
73
73
|
revokeDeviceId: typeof values.revoke === "string" ? values.revoke : null,
|
|
@@ -75,27 +75,27 @@ 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-CVJcTC34.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-B-ew0v9O.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-C289cgea.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-DMxuicPj.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-QxstGXo9.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-DMxuicPj.js");
|
|
99
99
|
return runPrActionReportCli(parsed);
|
|
100
100
|
},
|
|
101
101
|
vault: async ({ values }) => {
|
|
@@ -107,11 +107,11 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
109
|
watch: async ({ values }) => {
|
|
110
|
-
const { runWatchCli } = await import("../chunks/watch-cli-
|
|
110
|
+
const { runWatchCli } = await import("../chunks/watch-cli-yihKZKer.js");
|
|
111
111
|
return runWatchCli({ rawPort: typeof values.port === "string" ? values.port : null });
|
|
112
112
|
},
|
|
113
113
|
"ssh-sign": async ({ rawArgs }) => {
|
|
114
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli
|
|
114
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-Cy0BK85K.js");
|
|
115
115
|
return runSshSignCli(rawArgs);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
@@ -133,7 +133,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
133
133
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
134
134
|
}
|
|
135
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) => {
|
|
136
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
136
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-louSVPAm.js");
|
|
137
137
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
138
138
|
}])]);
|
|
139
139
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -147,7 +147,7 @@ function missingAgentText(agentId) {
|
|
|
147
147
|
}
|
|
148
148
|
async function printSessionLimits() {
|
|
149
149
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
150
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
150
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-louSVPAm.js");
|
|
151
151
|
const limitsLines = await sessionLimitsHelpLines();
|
|
152
152
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
153
153
|
}
|
|
@@ -204,7 +204,7 @@ async function readDeclaredCustomAgents() {
|
|
|
204
204
|
declared: [],
|
|
205
205
|
error: null
|
|
206
206
|
};
|
|
207
|
-
const { loadConfigFile } = await import("../chunks/config-store
|
|
207
|
+
const { loadConfigFile } = await import("../chunks/config-store-DZJFJxES.js");
|
|
208
208
|
try {
|
|
209
209
|
const loaded = loadConfigFile(decided.path, { exitOnError: false });
|
|
210
210
|
if (!loaded.config) return {
|
|
@@ -280,7 +280,7 @@ async function runDoctor() {
|
|
|
280
280
|
}
|
|
281
281
|
switchSection("Agents");
|
|
282
282
|
try {
|
|
283
|
-
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-
|
|
283
|
+
const { listAgentIds, describeAgentResolvability, setCustomAgents } = await import("../chunks/adapters-DB4JmDcV.js");
|
|
284
284
|
const declaredCustomAgents = await readDeclaredCustomAgents();
|
|
285
285
|
if (declaredCustomAgents.error) line("config", declaredCustomAgents.error);
|
|
286
286
|
setCustomAgents(declaredCustomAgents.declared);
|
|
@@ -288,10 +288,10 @@ async function runDoctor() {
|
|
|
288
288
|
const { label, path: resolvedPath } = describeAgentResolvability(id);
|
|
289
289
|
line(`${id} (${label})`, resolvedPath ?? missingAgentText(id));
|
|
290
290
|
}
|
|
291
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
291
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-CVJcTC34.js");
|
|
292
292
|
const grokSetup = inspectGrokAgentSetup();
|
|
293
293
|
line("grok hook setup", `${grokSetup.classification}: ${grokSetup.filePath}`);
|
|
294
|
-
const { default: kimi } = await import("../chunks/kimi-
|
|
294
|
+
const { default: kimi } = await import("../chunks/kimi-BeZ6dGoj.js");
|
|
295
295
|
const { describeAgentHome } = await import("../chunks/agent-home-BIDgimmJ.js");
|
|
296
296
|
const { KIMI_HOME_PROFILE } = await import("../chunks/agent-home-core-B3IRzwkX.js");
|
|
297
297
|
line("kimi home", describeAgentHome(KIMI_HOME_PROFILE, kimi.expectedHooksBlock()));
|
|
@@ -302,7 +302,7 @@ async function runDoctor() {
|
|
|
302
302
|
try {
|
|
303
303
|
const { resolvePackageBin } = await import("../chunks/runtime-paths-BI7m38Nj.js");
|
|
304
304
|
const { execFileSync } = await import("../chunks/child-process-safe-BrQd4i6y.js");
|
|
305
|
-
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-
|
|
305
|
+
const { inspectGrokAgentSetup } = await import("../chunks/agent-setup-cli-CVJcTC34.js");
|
|
306
306
|
const binPath = resolvePackageBin("cc-safety-net", "cc-safety-net");
|
|
307
307
|
line("Sane YOLO", binPath || "not installed");
|
|
308
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-DwgANN3A.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
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-CmbWKxOS.js";
|
|
2
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-BIRsi9vA.js";
|
|
3
|
+
import { n as buildAgentEnv } from "./spawn-env-D18R5qXK.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 { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-
|
|
8
|
-
import { Dn as FULL_SHA_RE, E as CONVERSATION_TOOL_RESULT_HOOK_EVENT, T as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME, j as REQUEST_USER_INPUT_TOOL_NAME, kn as shortSha$1 } from "./session-
|
|
7
|
+
import { C as isExperimentalBuild, S as compareReleaseVersions, o as glimmervoidHomeDir } from "./config-store-BAWZYLRI.js";
|
|
8
|
+
import { Dn as FULL_SHA_RE, E as CONVERSATION_TOOL_RESULT_HOOK_EVENT, T as CONVERSATION_PERMISSION_HOOK_EVENT, i as ASK_USER_QUESTION_TOOL_NAME, j as REQUEST_USER_INPUT_TOOL_NAME, kn as shortSha$1 } from "./session-CDXol8Ub.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
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-
|
|
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-BpDQ6rEU.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
19
|
import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, s as readOptionalText } from "./agent-home-rRvnBnrO.js";
|
|
20
|
-
import { c as SHELL_AGENT_ID } from "./config-
|
|
20
|
+
import { c as SHELL_AGENT_ID } from "./config-COHY_N3p.js";
|
|
21
21
|
import fs from "node:fs";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import os from "node:os";
|
|
@@ -1,10 +1,10 @@
|
|
|
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-2q0C_oNf.js";
|
|
3
3
|
import { t as AgentNeedReply } from "./secrets-DUjhXqjU.js";
|
|
4
|
-
import { d as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-
|
|
5
|
-
import { M as WhiteboardAgentReply, T as STEP_STATUSES, w as Op } from "./whiteboard-
|
|
6
|
-
import { L as boardSvgDocument, g as layoutBoard } from "./whiteboard-layout-core-
|
|
7
|
-
import { i as stepBoxesOf, n as dependencyWireIdsInto, r as planSteps, t as dependencyWireId } from "./whiteboard-plan-core-
|
|
4
|
+
import { d as AgentLimitsReply, r as AGENT_URL_ENV } from "./session-CDXol8Ub.js";
|
|
5
|
+
import { M as WhiteboardAgentReply, T as STEP_STATUSES, w as Op } from "./whiteboard-DRJXZElZ.js";
|
|
6
|
+
import { L as boardSvgDocument, g as layoutBoard } from "./whiteboard-layout-core-PTrxs12D.js";
|
|
7
|
+
import { i as stepBoxesOf, n as dependencyWireIdsInto, r as planSteps, t as dependencyWireId } from "./whiteboard-plan-core-G8PV9pyu.js";
|
|
8
8
|
import { t as parseJsonOrNull } from "./json-core-B1ov-SNz.js";
|
|
9
9
|
import { o as needExitCode } from "./secrets-broker-core-R0yZwtMq.js";
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-a9jQM8gD.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { sn as pullRequestKeyFromReference } from "./control-messages-
|
|
2
|
-
import { K as TASK_TITLE_CONTROL_CHARACTERS, M as RefinedTaskTitle, N as SESSION_COMMANDS, b as AgentWhyRequest, c as AgentCheckoutRequest, f as AgentPacksRequest, g as AgentSendRequest, h as AgentReviewsRequest, l as AgentCloseRequest, m as AgentReadRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAnswerRequest, p as AgentPullRequestRequest, s as AgentAttentionRequest, t as AGENT_API_VERBS, u as AgentEditRequest, v as AgentSettingsRequest, y as AgentSpawnRequest } from "./session-
|
|
1
|
+
import { sn as pullRequestKeyFromReference } from "./control-messages-BpDQ6rEU.js";
|
|
2
|
+
import { K as TASK_TITLE_CONTROL_CHARACTERS, M as RefinedTaskTitle, N as SESSION_COMMANDS, b as AgentWhyRequest, c as AgentCheckoutRequest, f as AgentPacksRequest, g as AgentSendRequest, h as AgentReviewsRequest, l as AgentCloseRequest, m as AgentReadRequest, n as AGENT_REPLY_SCHEMAS, o as AgentAnswerRequest, p as AgentPullRequestRequest, s as AgentAttentionRequest, t as AGENT_API_VERBS, u as AgentEditRequest, v as AgentSettingsRequest, y as AgentSpawnRequest } from "./session-CDXol8Ub.js";
|
|
3
3
|
import { n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
|
|
4
|
-
import { N as WhiteboardAgentRequest } from "./whiteboard-
|
|
4
|
+
import { N as WhiteboardAgentRequest } from "./whiteboard-DRJXZElZ.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-COHY_N3p.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { parseArgs } from "node:util";
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -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-BIRsi9vA.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 { H as KIND_NAMES, R as linesOfBox, U as elementTableOf, W as elementTableOfStoredRows, d as BoardRecord, h as Box, j as WHITEBOARD_LIMITS } from "./whiteboard-
|
|
1
|
+
import { G as isElementKind, H as KIND_NAMES, R as linesOfBox, U as elementTableOf, W as elementTableOfStoredRows, d as BoardRecord, h as Box, j as WHITEBOARD_LIMITS } from "./whiteboard-DRJXZElZ.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
3
|
-
import { o as assetIdOf, t as dependencyWireId } from "./whiteboard-plan-core-
|
|
3
|
+
import { o as assetIdOf, t as dependencyWireId } from "./whiteboard-plan-core-G8PV9pyu.js";
|
|
4
4
|
import { t as caseFoldedPathKey } from "./paths-C2u2R_6l.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -519,7 +519,6 @@ var StoreReply = z.discriminatedUnion("ok", [z.strictObject({
|
|
|
519
519
|
error: z.string()
|
|
520
520
|
})]);
|
|
521
521
|
var EMPTY_BODY = "{}";
|
|
522
|
-
var ELEMENT_KIND_NAME_SET = new Set(ElementKind.options);
|
|
523
522
|
var BoardHeadFields = z.record(z.string(), z.unknown());
|
|
524
523
|
var ElementIdentity = z.object({ id: z.string() });
|
|
525
524
|
function searchableTextOf(element) {
|
|
@@ -628,9 +627,6 @@ function headRowsOf(record) {
|
|
|
628
627
|
logBodies: record.log.map((change) => JSON.stringify(change))
|
|
629
628
|
};
|
|
630
629
|
}
|
|
631
|
-
function isElementKind(value) {
|
|
632
|
-
return typeof value === "string" && ELEMENT_KIND_NAME_SET.has(value);
|
|
633
|
-
}
|
|
634
630
|
function isEveryRowDecodable(storedRows) {
|
|
635
631
|
try {
|
|
636
632
|
return [...elementTableOfStoredRows(storedRows).values()].length === storedRows.length;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Nn as repoParts, _n as PrFlowsSettings, gt as SessionPrLinks, q as TaskTitle } from "./session-
|
|
1
|
+
import { Nn as repoParts, _n as PrFlowsSettings, gt as SessionPrLinks, q as TaskTitle } from "./session-CDXol8Ub.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
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-
|
|
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-BpDQ6rEU.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";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as equalsIgnoringCaseOnWindows, r as isPathInside } from "./paths-C2u2R_6l.js";
|
|
2
2
|
import { a as withoutEnvSecrets, i as withEnvSecrets, n as readEnvSecrets } from "./config-secrets-core-Dl2-_qLd.js";
|
|
3
|
-
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-
|
|
4
|
-
import { At as USAGE_SCAN_INTERVAL_RANGE, Dt as USAGE_BUDGET_RANGE, Et as TASK_TITLE_TIMEOUT_RANGE, Mt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, Ot as USAGE_INTEGER_RANGES, S as DEFAULT_MODELS, St as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, Tt as REVIEWS_TURN_LIMIT_RANGE, _t as POSTHOG_PROJECT_ID_RANGE, an as OPERATOR_ACTIONS_BY_SURFACE, at as FLYING_ANIMALS_SCALE_RANGE, cn as UPDATE_CHANNELS, ct as NON_NEGATIVE_NUMBER_RANGE, en as DASHBOARD_VIEWS, et as COMMUNITY_INTERVAL_MINUTES_RANGE, ft as POSTHOG_FIX_TIMEOUT_RANGE, in as ONBOARDING_STEP_STATES, it as FLYING_ANIMALS_GAP_RANGE, jt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, kt as USAGE_RETAIN_DAYS_RANGE, lt as PORT_RANGE, nt as FLYING_ANIMALS_DEFAULTS, on as OPERATOR_SURFACES, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, rn as ONBOARDING_STEPS, rt as FLYING_ANIMALS_DURATION_RANGE, st as MEMORY_RESERVE_MB_RANGE, tt as FIXED_PORT_RANGE, u as HintFeature, ut as POSITIVE_NUMBER_RANGE, wt as REPLAY_BUFFER_KB_RANGE, xt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, yt as POSTHOG_TRAFFIC_BASELINE_RANGE } from "./control-messages-
|
|
5
|
-
import { N as SESSION_COMMANDS, Tn as prFlowRulesJsonSchema, an as PrFlowCommand, fn as PrFlowPrAction, hn as PrFlowSourceCommand, pn as PrFlowRule } from "./session-
|
|
3
|
+
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-COHY_N3p.js";
|
|
4
|
+
import { At as USAGE_SCAN_INTERVAL_RANGE, Dt as USAGE_BUDGET_RANGE, Et as TASK_TITLE_TIMEOUT_RANGE, Mt as WORKFLOWS_MAX_CONCURRENT_SESSIONS_RANGE, Ot as USAGE_INTEGER_RANGES, S as DEFAULT_MODELS, St as POSTHOG_TRAFFIC_MULTIPLIER_RANGE, Tt as REVIEWS_TURN_LIMIT_RANGE, _t as POSTHOG_PROJECT_ID_RANGE, an as OPERATOR_ACTIONS_BY_SURFACE, at as FLYING_ANIMALS_SCALE_RANGE, cn as UPDATE_CHANNELS, ct as NON_NEGATIVE_NUMBER_RANGE, en as DASHBOARD_VIEWS, et as COMMUNITY_INTERVAL_MINUTES_RANGE, ft as POSTHOG_FIX_TIMEOUT_RANGE, in as ONBOARDING_STEP_STATES, it as FLYING_ANIMALS_GAP_RANGE, jt as WORKFLOWS_MAX_ACTIONS_PER_POLL_RANGE, kt as USAGE_RETAIN_DAYS_RANGE, lt as PORT_RANGE, nt as FLYING_ANIMALS_DEFAULTS, on as OPERATOR_SURFACES, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, rn as ONBOARDING_STEPS, rt as FLYING_ANIMALS_DURATION_RANGE, st as MEMORY_RESERVE_MB_RANGE, tt as FIXED_PORT_RANGE, u as HintFeature, ut as POSITIVE_NUMBER_RANGE, wt as REPLAY_BUFFER_KB_RANGE, xt as POSTHOG_TRAFFIC_MIN_USERS_RANGE, yt as POSTHOG_TRAFFIC_BASELINE_RANGE } from "./control-messages-BpDQ6rEU.js";
|
|
5
|
+
import { N as SESSION_COMMANDS, Tn as prFlowRulesJsonSchema, an as PrFlowCommand, fn as PrFlowPrAction, hn as PrFlowSourceCommand, pn as PrFlowRule } from "./session-CDXol8Ub.js";
|
|
6
|
+
import { l as PROBE_CREDENTIALS, m as WATCHER_LANE_IDS } from "./watcher-link-CmEbXgiN.js";
|
|
6
7
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
7
8
|
import { l as QuestionRule } from "./question-manager-C_RzS1Ot.js";
|
|
8
9
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-ZNAeT6DN.js";
|
|
@@ -100,6 +101,23 @@ var RADAR_HANDOFF_STEPS = Object.freeze([
|
|
|
100
101
|
"read-diff",
|
|
101
102
|
"count-commits"
|
|
102
103
|
]);
|
|
104
|
+
var WATCHER_TELEMETRY_LANES = Object.freeze([...WATCHER_LANE_IDS, "other"]);
|
|
105
|
+
var WATCHER_CHILD_END_KINDS = Object.freeze([
|
|
106
|
+
"exited",
|
|
107
|
+
"crashed",
|
|
108
|
+
"failed_to_start"
|
|
109
|
+
]);
|
|
110
|
+
var WATCHER_FAILURE_KINDS = Object.freeze([
|
|
111
|
+
"no_credential",
|
|
112
|
+
"unauthorized",
|
|
113
|
+
"forbidden",
|
|
114
|
+
"not_found",
|
|
115
|
+
"rate_limited",
|
|
116
|
+
"server_error",
|
|
117
|
+
"graphql_error",
|
|
118
|
+
"unreachable",
|
|
119
|
+
"other"
|
|
120
|
+
]);
|
|
103
121
|
var OPERATOR_ACTIONS = Object.freeze([...new Set(Object.values(OPERATOR_ACTIONS_BY_SURFACE).flat())]);
|
|
104
122
|
var MAX_TEXT_LENGTH = 512;
|
|
105
123
|
var nonNegativeInteger = z.number().int().nonnegative();
|
|
@@ -122,9 +140,49 @@ var AppStartedProperties = z.object({
|
|
|
122
140
|
}).strict();
|
|
123
141
|
var AppActiveProperties = z.object({
|
|
124
142
|
active_session_count: nonNegativeInteger,
|
|
143
|
+
watcher_probe_count: nonNegativeInteger.optional(),
|
|
144
|
+
watcher_covered_probe_count: nonNegativeInteger.optional(),
|
|
145
|
+
watcher_nudge_count: nonNegativeInteger.optional(),
|
|
146
|
+
watcher_child_restart_count: nonNegativeInteger.optional(),
|
|
125
147
|
...PersonProperties.partial().shape
|
|
126
148
|
}).strict();
|
|
127
149
|
var DataDeletionRequestedProperties = z.object({}).strict();
|
|
150
|
+
var VaultCompanionConnectionProperties = z.object({
|
|
151
|
+
state: z.enum([
|
|
152
|
+
"connected",
|
|
153
|
+
"disconnected",
|
|
154
|
+
"refused"
|
|
155
|
+
]),
|
|
156
|
+
refusal_kind: z.enum(["wrong_path", "unauthorized"]).optional(),
|
|
157
|
+
connected_seconds: nonNegativeInteger.optional()
|
|
158
|
+
}).strict();
|
|
159
|
+
var VaultSecretAnsweredProperties = z.object({
|
|
160
|
+
delivered_count: nonNegativeInteger,
|
|
161
|
+
pending_count: nonNegativeInteger,
|
|
162
|
+
denied_count: nonNegativeInteger,
|
|
163
|
+
companion_offline_count: nonNegativeInteger,
|
|
164
|
+
failed_count: nonNegativeInteger
|
|
165
|
+
}).strict();
|
|
166
|
+
var watcherLane = z.enum(WATCHER_TELEMETRY_LANES);
|
|
167
|
+
var probeCredential = z.enum(PROBE_CREDENTIALS);
|
|
168
|
+
var WatcherChildEndedProperties = z.object({
|
|
169
|
+
end_kind: z.enum(WATCHER_CHILD_END_KINDS),
|
|
170
|
+
run_seconds: nonNegativeInteger
|
|
171
|
+
}).strict();
|
|
172
|
+
var WatcherProbeFailingProperties = z.object({
|
|
173
|
+
lane: watcherLane,
|
|
174
|
+
credential: probeCredential,
|
|
175
|
+
failure_kind: z.enum(WATCHER_FAILURE_KINDS)
|
|
176
|
+
}).strict();
|
|
177
|
+
var WatcherProbeRecoveredProperties = z.object({
|
|
178
|
+
lane: watcherLane,
|
|
179
|
+
credential: probeCredential,
|
|
180
|
+
failing_seconds: nonNegativeInteger
|
|
181
|
+
}).strict();
|
|
182
|
+
var WatcherNudgeReceivedProperties = z.object({
|
|
183
|
+
lane: watcherLane,
|
|
184
|
+
kind: z.enum(["changed", "recovered"])
|
|
185
|
+
}).strict();
|
|
128
186
|
var SessionStartedProperties = z.object({ adapter: z.enum(TELEMETRY_ADAPTERS) }).strict();
|
|
129
187
|
var SessionEndedProperties = z.object({
|
|
130
188
|
adapter: z.enum(TELEMETRY_ADAPTERS),
|
|
@@ -243,7 +301,13 @@ var TELEMETRY_EVENT_SCHEMAS = Object.freeze({
|
|
|
243
301
|
team_review_post_refused: TeamReviewPostRefusedProperties,
|
|
244
302
|
radar_investigation_finished: RadarInvestigationFinishedProperties,
|
|
245
303
|
radar_fix_handoff_failed: RadarFixHandoffFailedProperties,
|
|
246
|
-
data_deletion_requested: DataDeletionRequestedProperties
|
|
304
|
+
data_deletion_requested: DataDeletionRequestedProperties,
|
|
305
|
+
watcher_child_ended: WatcherChildEndedProperties,
|
|
306
|
+
watcher_probe_failing: WatcherProbeFailingProperties,
|
|
307
|
+
watcher_probe_recovered: WatcherProbeRecoveredProperties,
|
|
308
|
+
watcher_nudge_received: WatcherNudgeReceivedProperties,
|
|
309
|
+
vault_companion_connection: VaultCompanionConnectionProperties,
|
|
310
|
+
vault_secret_answered: VaultSecretAnsweredProperties
|
|
247
311
|
});
|
|
248
312
|
Object.freeze([
|
|
249
313
|
{
|
|
@@ -252,7 +316,7 @@ Object.freeze([
|
|
|
252
316
|
},
|
|
253
317
|
{
|
|
254
318
|
name: "app_active",
|
|
255
|
-
description: "Once a day while the server runs, with how many sessions are live, and the same person properties as app_started."
|
|
319
|
+
description: "Once a day while the server runs, with how many sessions are live, how many probes the watcher was handed and how many of them it covers, and how many watcher nudges and watcher restarts happened since the last one, and the same person properties as app_started."
|
|
256
320
|
},
|
|
257
321
|
{
|
|
258
322
|
name: "session_started",
|
|
@@ -317,6 +381,30 @@ Object.freeze([
|
|
|
317
381
|
{
|
|
318
382
|
name: "data_deletion_requested",
|
|
319
383
|
description: "Delete my data was confirmed in Settings > Privacy, with no properties. Sent under the old install id even when telemetry is off, unless the maintainers stopped all sending, and then the install id is replaced. PostHog deletes the person and every event under that id on receipt."
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: "watcher_child_ended",
|
|
387
|
+
description: "The watcher process ended while Glimmervoid still wanted it running: whether it exited cleanly, crashed or failed to start, and how long it ran, in whole seconds."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: "watcher_probe_failing",
|
|
391
|
+
description: "A watcher probe started failing: which lane and which kind of read credential it uses, and a failure kind from a fixed list. Never the URL, repository, token or error text."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: "watcher_probe_recovered",
|
|
395
|
+
description: "A failing watcher probe answered again: which lane and kind of read credential, and how long it was failing, in whole seconds."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "watcher_nudge_received",
|
|
399
|
+
description: "The watcher told a lane its answer changed or recovered: which lane and which of the two. Never the probe, URL or repository."
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
name: "vault_companion_connection",
|
|
403
|
+
description: "A vault companion connected, disconnected (with how long it stayed, in whole seconds) or was refused (because it asked for the wrong path or brought the wrong token; once per reason until a companion connects). Never the token, address or account."
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
name: "vault_secret_answered",
|
|
407
|
+
description: "An agent asked for secrets by name and got its answer: how many names came back delivered, pending, denied, companion offline or failed. Never the names, values or project."
|
|
320
408
|
}
|
|
321
409
|
]);
|
|
322
410
|
Object.freeze([
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-BAWZYLRI.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { An as GH_SEGMENT, At as ReviewChecksState, Ct as GithubReviewDecision, D as CoherenceHooksState, F as SESSION_DOC_PATH_MAX_CHARS, Fn as GithubPollingRefreshResult, H as SessionSnapshot, Ht as TeamReviewStatus, In as GithubPrsFreshness, J as UnseenOutcome, Jt as hasRequiredActionHead, Ln as githubPollingShape, Lt as TeamReviewActionRequest, Mn as REPO_SLUG_RE, Pn as GithubPollingRefreshRequest, Rt as TeamReviewActionResult, U as SessionState, V as SessionDoc, X as MyPr, Y as LinkedPr, _t as pullRequestKeyFormat, at as MyPrMergeResult, ct as MyPrMergeWhenReadyResult, dn as PrFlowPendingApproval, et as MyPrKeepMergeableRequest, gt as SessionPrLinks, ht as MyPrsStatus, in as PrFlowApproveRequest, it as MyPrMergeRequest, k as MergeStatus, ln as PrFlowItemRequest, lt as MyPrSearchNode, mn as PrFlowSaveRuleRequest, on as PrFlowDisposeRequest, q as TaskTitle, rn as PrActionRunRequest, sn as PrFlowDisposeResult, st as MyPrMergeWhenReadyRequest, tt as MyPrKeepMergeableResult, vt as repositoryName, x as AttentionNote, yn as PrFlowsStatus, yt as CommitSha } from "./session-
|
|
2
|
-
import { b as Element, c as Board, j as WHITEBOARD_LIMITS, l as BoardHead, m as BoardSummary, p as BoardReview, w as Op } from "./whiteboard-
|
|
1
|
+
import { An as GH_SEGMENT, At as ReviewChecksState, Ct as GithubReviewDecision, D as CoherenceHooksState, F as SESSION_DOC_PATH_MAX_CHARS, Fn as GithubPollingRefreshResult, H as SessionSnapshot, Ht as TeamReviewStatus, In as GithubPrsFreshness, J as UnseenOutcome, Jt as hasRequiredActionHead, Ln as githubPollingShape, Lt as TeamReviewActionRequest, Mn as REPO_SLUG_RE, Pn as GithubPollingRefreshRequest, Rt as TeamReviewActionResult, U as SessionState, V as SessionDoc, X as MyPr, Y as LinkedPr, _t as pullRequestKeyFormat, at as MyPrMergeResult, ct as MyPrMergeWhenReadyResult, dn as PrFlowPendingApproval, et as MyPrKeepMergeableRequest, gt as SessionPrLinks, ht as MyPrsStatus, in as PrFlowApproveRequest, it as MyPrMergeRequest, k as MergeStatus, ln as PrFlowItemRequest, lt as MyPrSearchNode, mn as PrFlowSaveRuleRequest, on as PrFlowDisposeRequest, q as TaskTitle, rn as PrActionRunRequest, sn as PrFlowDisposeResult, st as MyPrMergeWhenReadyRequest, tt as MyPrKeepMergeableResult, vt as repositoryName, x as AttentionNote, yn as PrFlowsStatus, yt as CommitSha } from "./session-CDXol8Ub.js";
|
|
2
|
+
import { b as Element, c as Board, j as WHITEBOARD_LIMITS, l as BoardHead, m as BoardSummary, p as BoardReview, w as Op } from "./whiteboard-DRJXZElZ.js";
|
|
3
3
|
import { r as ManagerDecision } from "./question-manager-C_RzS1Ot.js";
|
|
4
4
|
import { a as SecretDecision, o as SecretName, r as ProjectApprovals, s as SecretRevoke } from "./secrets-DUjhXqjU.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import { a as PackStoreData, h as ThemePalette, i as PackPanelAct, n as PackBridgeTopic, o as PackStoreKey, r as PackName, s as PackStoreValue } from "./pack-bridge-
|
|
5
|
+
import { c as TileDiff, o as TILE_LODS, r as LayoutRect, s as Tile, t as BoardChrome } from "./whiteboard-tiles-DqAB4aRa.js";
|
|
6
|
+
import { a as PackStoreData, h as ThemePalette, i as PackPanelAct, n as PackBridgeTopic, o as PackStoreKey, r as PackName, s as PackStoreValue } from "./pack-bridge-CGiOVuxR.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
// shared/contracts/plan-review.ts
|
|
9
9
|
var PLAN_TITLE_MAX_CHARS = 120;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
2
2
|
import { r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
3
3
|
import { l as relayPath } from "./runtime-paths-5UK7AN_h.js";
|
|
4
|
-
import { n as buildAgentEnv } from "./spawn-env-
|
|
4
|
+
import { n as buildAgentEnv } from "./spawn-env-D18R5qXK.js";
|
|
5
5
|
import { t as buildHookCommand } from "./hook-command-core-Bu5xBKp3.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as HostEntries } from "./control-messages-
|
|
1
|
+
import { i as HostEntries } from "./control-messages-BpDQ6rEU.js";
|
|
2
2
|
import { r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
3
3
|
import { t as renderTable } from "./ascii-figure-core-BegIbndz.js";
|
|
4
|
-
import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-
|
|
5
|
-
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-
|
|
4
|
+
import { r as removeHostFrom, t as addHostTo } from "./host-registry-core-a6KlkQdw.js";
|
|
5
|
+
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-9FEgfQG2.js";
|
|
6
6
|
// server/hosts/host-cli.ts
|
|
7
7
|
var DEFAULT_DASHBOARD_PORT = 3e3;
|
|
8
8
|
function registeredHosts() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as HostEntry } from "./control-messages-
|
|
1
|
+
import { a as HostEntry } from "./control-messages-BpDQ6rEU.js";
|
|
2
2
|
// server/hosts/core/host-registry-core.ts
|
|
3
3
|
var LOOPBACK_TARGET_RE = /^(?:[^@]*@)?(?:localhost|127(?:\.\d{1,3}){3}|\[?::1\]?|0\.0\.0\.0)$/i;
|
|
4
4
|
function addHostTo(hosts, candidate) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-CmbWKxOS.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as execFileSync } from "./child-process-safe-pP6Vf2i9.js";
|
|
2
2
|
import { l as relayPath } from "./runtime-paths-5UK7AN_h.js";
|
|
3
|
-
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-
|
|
3
|
+
import { i as ASK_USER_QUESTION_TOOL_NAME } from "./session-CDXol8Ub.js";
|
|
4
4
|
import { i as kimiMcpFiles, n as KIMI_MCP_CONFIG_NAME, t as KIMI_MCP_BASE_NAME } from "./agent-config-BJVJpVzX.js";
|
|
5
5
|
import { d as KIMI_HOME_PROFILE, y as renderKimiHooksBlock } from "./agent-home-core-DmcBI03O.js";
|
|
6
6
|
import { i as KIMI_SANE_YOLO_FLAVOR } from "./sane-yolo-DqvfS8ed.js";
|
|
7
|
-
import { n as buildAgentEnv } from "./spawn-env-
|
|
7
|
+
import { n as buildAgentEnv } from "./spawn-env-D18R5qXK.js";
|
|
8
8
|
import { c as realAgentHome, i as holdPreparedAgentHome, l as releaseAgentHome, n as generatedAgentHomePath, o as prepareScratchAgentHome } from "./agent-home-rRvnBnrO.js";
|
|
9
9
|
import { o as QUESTION_TOOL_HOLD_HOOK_EVENT, s as QUESTION_TOOL_HOLD_TIMEOUT_MS } from "./question-manager-C_RzS1Ot.js";
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as appendElement, c as boardIndexOf, d as elementsOfKind, p as storeElement, r as planSteps, u as dropElement } from "./whiteboard-plan-core-
|
|
1
|
+
import { G as isElementKind, K as isElementTable, U as elementTableOf, V as sparseElement, W as elementTableOfStoredRows, b as Element, j as WHITEBOARD_LIMITS, l as BoardHead, u as BoardOutline } from "./whiteboard-DRJXZElZ.js";
|
|
2
|
+
import { a as RememberedRoute, c as TileDiff, i as PlacedBox, l as TileKey, n as LaidOutMedia, r as LayoutRect, s as Tile, t as BoardChrome } from "./whiteboard-tiles-DqAB4aRa.js";
|
|
3
|
+
import { a as appendElement, c as boardIndexOf, d as elementsOfKind, p as storeElement, r as planSteps, u as dropElement } from "./whiteboard-plan-core-G8PV9pyu.js";
|
|
4
4
|
import { n as openDatabase, r as setAside, t as isUnreadableDatabase } from "./sqlite-files-DaPMH3cI.js";
|
|
5
|
-
import { A as routeWires, C as cappedWarningLists, D as obstacleRectsByKey, E as labelWidthOf, F as placeSlot, I as removeSlot, L as boardSvgDocument, M as wireExtentOf, N as createSpatialGrid, O as pointsOfPath, P as forEachSlotTouching, S as wireEndingAtCard, T as inflated, _ as legendEntriesFrom, a as dressedElement, b as stepBandOf, c as frameTitleStripOf, f as laidOutBox, h as laidOutStrokeOf, i as coveredTitleWarning, j as unionOf, k as rectsOverlap, l as headerRectOf, m as laidOutNearBox, n as chromeAround, o as dressedLayout, p as laidOutFrameOf, r as contentBoundsOf, s as elementSignature, t as boxOverlapWarning, u as isInStepBand, v as noteStackOn, x as wireCeilingOf, y as placeBoardWithMemory } from "./whiteboard-layout-core-
|
|
5
|
+
import { A as routeWires, C as cappedWarningLists, D as obstacleRectsByKey, E as labelWidthOf, F as placeSlot, I as removeSlot, L as boardSvgDocument, M as wireExtentOf, N as createSpatialGrid, O as pointsOfPath, P as forEachSlotTouching, S as wireEndingAtCard, T as inflated, _ as legendEntriesFrom, a as dressedElement, b as stepBandOf, c as frameTitleStripOf, f as laidOutBox, h as laidOutStrokeOf, i as coveredTitleWarning, j as unionOf, k as rectsOverlap, l as headerRectOf, m as laidOutNearBox, n as chromeAround, o as dressedLayout, p as laidOutFrameOf, r as contentBoundsOf, s as elementSignature, t as boxOverlapWarning, u as isInStepBand, v as noteStackOn, x as wireCeilingOf, y as placeBoardWithMemory } from "./whiteboard-layout-core-PTrxs12D.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -50,13 +50,6 @@ var HeadRow = z.object({
|
|
|
50
50
|
code_stamp: z.string(),
|
|
51
51
|
chrome: z.string()
|
|
52
52
|
});
|
|
53
|
-
var PlacedRow = z.object({
|
|
54
|
-
slot: z.number().int().nonnegative(),
|
|
55
|
-
element_id: z.string(),
|
|
56
|
-
body: z.string(),
|
|
57
|
-
record_kind: z.enum(KIND_NAMES),
|
|
58
|
-
record_body: z.string()
|
|
59
|
-
});
|
|
60
53
|
var RouteRow = z.object({
|
|
61
54
|
wire_id: z.string(),
|
|
62
55
|
body: z.string()
|
|
@@ -80,12 +73,24 @@ function parsedJson(text) {
|
|
|
80
73
|
return;
|
|
81
74
|
}
|
|
82
75
|
}
|
|
76
|
+
function isPaintOfElement(value, elementId) {
|
|
77
|
+
if (typeof value !== "object" || value === null) return false;
|
|
78
|
+
const element = Reflect.get(value, "element");
|
|
79
|
+
return Number.isInteger(Reflect.get(value, "paintOrder")) && typeof element === "object" && element !== null && Reflect.get(element, "id") === elementId;
|
|
80
|
+
}
|
|
81
|
+
function isSlot(value) {
|
|
82
|
+
return typeof value === "number" && Number.isInteger(value) && value >= 0;
|
|
83
|
+
}
|
|
84
|
+
function columnsOnly(statement) {
|
|
85
|
+
statement.setReturnArrays(true);
|
|
86
|
+
return statement;
|
|
87
|
+
}
|
|
83
88
|
function statementsOf(database) {
|
|
84
89
|
return {
|
|
85
90
|
head: database.prepare("SELECT version, updated_at, code_stamp, chrome FROM layout_head WHERE board_id = ?"),
|
|
86
91
|
upsertHead: database.prepare("INSERT INTO layout_head (board_id, version, updated_at, code_stamp, chrome) VALUES (?, ?, ?, ?, ?) ON CONFLICT(board_id) DO UPDATE SET version = excluded.version, updated_at = excluded.updated_at, code_stamp = excluded.code_stamp, chrome = excluded.chrome"),
|
|
87
92
|
removeHead: database.prepare("DELETE FROM layout_head WHERE board_id = ?"),
|
|
88
|
-
|
|
93
|
+
rowColumns: columnsOnly(database.prepare("SELECT slot, element_id, body, record_kind, record_body FROM placed WHERE board_id = ? ORDER BY slot")),
|
|
89
94
|
upsertRow: database.prepare("INSERT INTO placed (board_id, element_id, slot, body, record_kind, record_body) VALUES (?, ?, ?, ?, ?, ?) ON CONFLICT(board_id, element_id) DO UPDATE SET slot = excluded.slot, body = excluded.body, record_kind = excluded.record_kind, record_body = excluded.record_body"),
|
|
90
95
|
removeRow: database.prepare("DELETE FROM placed WHERE board_id = ? AND element_id = ?"),
|
|
91
96
|
removeRows: database.prepare("DELETE FROM placed WHERE board_id = ?"),
|
|
@@ -126,17 +131,18 @@ function cacheOver(database, codeStamp) {
|
|
|
126
131
|
if (!chrome.success) return null;
|
|
127
132
|
const painted = [];
|
|
128
133
|
const records = [];
|
|
129
|
-
for (const row of statements.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
painted
|
|
134
|
+
for (const row of statements.rowColumns.iterate(boardId)) {
|
|
135
|
+
if (!Array.isArray(row)) return null;
|
|
136
|
+
const [slot, elementId, body, recordKind, recordBody] = row;
|
|
137
|
+
if (!isSlot(slot) || typeof elementId !== "string" || typeof body !== "string" || !isElementKind(recordKind) || typeof recordBody !== "string") return null;
|
|
138
|
+
const paint = parsedJson(body);
|
|
139
|
+
if (!isPaintOfElement(paint, elementId)) return null;
|
|
140
|
+
while (painted.length < slot) painted.push(null);
|
|
141
|
+
painted[slot] = paint;
|
|
136
142
|
records.push({
|
|
137
|
-
id:
|
|
138
|
-
kind:
|
|
139
|
-
body:
|
|
143
|
+
id: elementId,
|
|
144
|
+
kind: recordKind,
|
|
145
|
+
body: recordBody
|
|
140
146
|
});
|
|
141
147
|
}
|
|
142
148
|
return {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import crypto from "node:crypto";
|
|
3
2
|
// cloud/link/core/link-signing-core.ts
|
|
4
3
|
var REQUEST_ID_HEADER = "x-glimmervoid-request-id";
|
|
@@ -83,73 +82,4 @@ function signedRequestFromHeaders(headers, method, path, body) {
|
|
|
83
82
|
signature: headerText(SIGNATURE_HEADER)
|
|
84
83
|
};
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
var LINK_SECRET_ENV = "GLIMMERVOID_LINK_SECRET";
|
|
88
|
-
var LINK_SERVER_URL_ENV = "GLIMMERVOID_LINK_SERVER_URL";
|
|
89
|
-
var WATCHER_HOME_ENV = "GLIMMERVOID_WATCHER_HOME";
|
|
90
|
-
var WATCHER_LISTENING_MESSAGE = "watcher-listening";
|
|
91
|
-
var NUDGES_PATH = "/link/nudges";
|
|
92
|
-
var PROBE_SET_PATH = "/probe-set";
|
|
93
|
-
var CREDENTIALS_PATH = "/credentials";
|
|
94
|
-
var STATUS_PATH = "/status";
|
|
95
|
-
var HEALTH_PATH = "/healthz";
|
|
96
|
-
var MIN_PROBE_INTERVAL_MS = 6e4;
|
|
97
|
-
var MAX_LINK_BODY_BYTES = 1048576;
|
|
98
|
-
var ProbeCredential = z.enum(["github", "posthog"]);
|
|
99
|
-
var Probe = z.strictObject({
|
|
100
|
-
id: z.string().regex(/^[a-z0-9:._-]{1,120}$/),
|
|
101
|
-
laneId: z.string().min(1).max(60),
|
|
102
|
-
everyMs: z.number().int().min(MIN_PROBE_INTERVAL_MS),
|
|
103
|
-
method: z.enum(["GET", "POST"]),
|
|
104
|
-
url: z.url({ protocol: /^https$/ }),
|
|
105
|
-
body: z.string().max(65536).nullable(),
|
|
106
|
-
credential: ProbeCredential,
|
|
107
|
-
answerField: z.string().regex(/^[a-z_]{1,40}$/).optional()
|
|
108
|
-
});
|
|
109
|
-
var ProbeSet = z.strictObject({
|
|
110
|
-
revision: z.string().min(1).max(128),
|
|
111
|
-
probes: z.array(Probe).max(200).refine((probes) => new Set(probes.map((probe) => probe.id)).size === probes.length, "probe ids must be unique")
|
|
112
|
-
});
|
|
113
|
-
var ProbeFailure = z.strictObject({
|
|
114
|
-
status: z.number().int().nullable(),
|
|
115
|
-
reason: z.string().max(500)
|
|
116
|
-
});
|
|
117
|
-
var Nudge = z.strictObject({
|
|
118
|
-
nudgeId: z.uuid(),
|
|
119
|
-
probeId: z.string().nullable(),
|
|
120
|
-
kind: z.enum([
|
|
121
|
-
"changed",
|
|
122
|
-
"failing",
|
|
123
|
-
"recovered",
|
|
124
|
-
"check-in"
|
|
125
|
-
]),
|
|
126
|
-
failure: ProbeFailure.nullable(),
|
|
127
|
-
at: z.iso.datetime()
|
|
128
|
-
});
|
|
129
|
-
var ProbeStatus = z.enum([
|
|
130
|
-
"unknown",
|
|
131
|
-
"ok",
|
|
132
|
-
"failing"
|
|
133
|
-
]);
|
|
134
|
-
var WatcherStatus = z.strictObject({
|
|
135
|
-
probeSetRevision: z.string().nullable(),
|
|
136
|
-
hasCredentials: z.strictObject({
|
|
137
|
-
github: z.boolean(),
|
|
138
|
-
posthog: z.boolean()
|
|
139
|
-
}),
|
|
140
|
-
probes: z.array(z.strictObject({
|
|
141
|
-
probeId: z.string(),
|
|
142
|
-
status: ProbeStatus,
|
|
143
|
-
lastRunAt: z.iso.datetime().nullable(),
|
|
144
|
-
failure: ProbeFailure.nullable()
|
|
145
|
-
}))
|
|
146
|
-
});
|
|
147
|
-
var WatcherCredentials = z.strictObject({
|
|
148
|
-
github: z.string().min(1).nullable(),
|
|
149
|
-
posthog: z.strictObject({
|
|
150
|
-
host: z.url({ protocol: /^https$/ }),
|
|
151
|
-
apiKey: z.string().min(1)
|
|
152
|
-
}).nullable()
|
|
153
|
-
});
|
|
154
|
-
var GITHUB_API_HOST = "api.github.com";
|
|
155
|
-
export { credentialStoreKey as _, LINK_SERVER_URL_ENV as a, signedRequestFromHeaders as b, Nudge as c, STATUS_PATH as d, WATCHER_HOME_ENV as f, createRecentRequestIds as g, WatcherStatus as h, LINK_SECRET_ENV as i, PROBE_SET_PATH as l, WatcherCredentials as m, GITHUB_API_HOST as n, MAX_LINK_BODY_BYTES as o, WATCHER_LISTENING_MESSAGE as p, HEALTH_PATH as r, NUDGES_PATH as s, CREDENTIALS_PATH as t, ProbeSet as u, directionKey as v, verifyRequest as x, signedHeaders as y };
|
|
85
|
+
export { signedRequestFromHeaders as a, signedHeaders as i, credentialStoreKey as n, verifyRequest as o, directionKey as r, createRecentRequestIds as t };
|