glimmervoid 0.52.3-next.904 → 0.52.3-next.907
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 +17 -17
- package/dist/chunks/{adapters-kGokkPDB.js → adapters-BB_cVOuu.js} +7 -7
- package/dist/chunks/{adapters-DI1S7MjK.js → adapters-Bpxp73pV.js} +1 -1
- package/dist/chunks/agent-api-cli-CML2lYYo.js +1 -0
- package/dist/chunks/{agent-api-cli-CgMrQJsg.js → agent-api-cli-JrNrtqDx.js} +5 -5
- package/dist/chunks/{agent-api-core-9cNQAJjj.js → agent-api-core-DwIrL8GD.js} +4 -4
- package/dist/chunks/{agent-setup-cli-KWnBjXF7.js → agent-setup-cli-JkOLi7qZ.js} +1 -1
- package/dist/chunks/{board-store-core-Dfk3K4wk.js → board-store-core-TVGaLMCA.js} +6 -10
- package/dist/chunks/{config-BkElkDqk.js → config-DvIydQIP.js} +2 -2
- package/dist/chunks/config-store--yvQLObm.js +1 -0
- package/dist/chunks/{config-store-C9FxGbIV.js → config-store-mjOK-0S9.js} +3 -3
- package/dist/chunks/{control-messages-CaFNk_yN.js → control-messages-DKOUIgCF.js} +4 -4
- package/dist/chunks/{grok-BQY3yMTP.js → grok-CleDl9m3.js} +1 -1
- package/dist/chunks/{host-cli-DDkGorPK.js → host-cli-DUMKj9oS.js} +3 -3
- package/dist/chunks/{host-registry-core-D0GbOUXS.js → host-registry-core-CMGYm4Xl.js} +1 -1
- package/dist/chunks/{kimi-DQoT1KBI.js → kimi-BlUpdyrk.js} +2 -2
- package/dist/chunks/kimi-CJWr3aPa.js +1 -0
- package/dist/chunks/{layout-worker-core-ish0uBfg.js → layout-worker-core-DLIQWLmg.js} +55 -17
- package/dist/chunks/{main-DRvID-7A.js → main-C-q7ckZl.js} +159 -43
- package/dist/chunks/{pack-agent-BeKVakBA.js → pack-agent-RGVse2r5.js} +4 -4
- package/dist/chunks/{pack-bridge-DUlBZ-Tp.js → pack-bridge-C2SMBNVK.js} +1 -1
- package/dist/chunks/{pack-files-C9i3hDqc.js → pack-files-DaVKEQnJ.js} +3 -3
- package/dist/chunks/{packs-cli-B8tKvjGl.js → packs-cli-D3LAPlk6.js} +5 -5
- package/dist/chunks/{pair-cli-BspS7znX.js → pair-cli-0Wf41-Ks.js} +2 -2
- package/dist/chunks/{pr-flows-cli-BtmGXSQS.js → pr-flows-cli-Bydq6l-8.js} +5 -5
- package/dist/chunks/{pr-flows-external-Cy6HqIKw.js → pr-flows-external-jCWY255G.js} +3 -3
- package/dist/chunks/{remote-config-BjXyb8de.js → remote-config-PAVx-DET.js} +1 -1
- package/dist/chunks/{session-BwpeZyoD.js → session-CM3Z1_Wr.js} +1 -1
- package/dist/chunks/settings-cli-BMcUze7U.js +1 -0
- package/dist/chunks/{settings-cli-DrhRYNZp.js → settings-cli-BzEls_mc.js} +5 -5
- package/dist/chunks/{settings-readout-core-CNezXczs.js → settings-readout-core-BdppFSga.js} +2 -2
- package/dist/chunks/{spawn-env-BshLkWX9.js → spawn-env-BLOxjIfJ.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-BvurU2hV.js → ssh-sign-cli--1brMTmJ.js} +2 -2
- package/dist/chunks/{whiteboard-DYhjr5Zx.js → whiteboard-6Wocx4Wt.js} +186 -16
- package/dist/chunks/{whiteboard-layout-core-DhjpV10E.js → whiteboard-layout-core-CsfgiILH.js} +127 -18
- package/dist/chunks/{whiteboard-plan-core-BgURR29E.js → whiteboard-plan-core-DMmDhbqG.js} +4 -1
- package/dist/chunks/{whiteboard-tiles-DX79RVP6.js → whiteboard-tiles-Bf5-AEuT.js} +18 -5
- package/dist/client/assets/{action-status-C5YfgS6d.js → action-status-BRu8Iu6P.js} +1 -1
- package/dist/client/assets/action-status-BRu8Iu6P.js.br +0 -0
- package/dist/client/assets/{agent-core-D0W-eF8K.js → agent-core-CDw_9puE.js} +2 -2
- package/dist/client/assets/agent-core-CDw_9puE.js.br +0 -0
- package/dist/client/assets/{agent-mark-Cjw2mU7W.js → agent-mark-CvBG0ACe.js} +1 -1
- package/dist/client/assets/agent-mark-CvBG0ACe.js.br +0 -0
- package/dist/client/assets/{arena-panel-ue26yBZq.js → arena-panel-EncQvC3M.js} +2 -2
- package/dist/client/assets/arena-panel-EncQvC3M.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-Bo45ffey.js → benchmark-panel-jfVehXrU.js} +1 -1
- package/dist/client/assets/benchmark-panel-jfVehXrU.js.br +0 -0
- package/dist/client/assets/boards-view-CHT_Cseh.js +183 -0
- package/dist/client/assets/boards-view-CHT_Cseh.js.br +0 -0
- package/dist/client/assets/boards-view-ClG4vvwG.css +1 -0
- package/dist/client/assets/boards-view-ClG4vvwG.css.br +0 -0
- package/dist/client/assets/button-C7SLamNc.js +1 -0
- package/dist/client/assets/button-C7SLamNc.js.br +0 -0
- package/dist/client/assets/{card-actions-D2bz7DqF.js → card-actions-CEgEGdEO.js} +1 -1
- package/dist/client/assets/{card-registry-DHhetqds.js → card-registry-CFVpb1ft.js} +1 -1
- package/dist/client/assets/card-registry-CFVpb1ft.js.br +0 -0
- package/dist/client/assets/{celebration-player-k-ISAJ-c.js → celebration-player-CdqkM3Xr.js} +1 -1
- package/dist/client/assets/celebration-player-CdqkM3Xr.js.br +0 -0
- package/dist/client/assets/{chart-readout-DYE220fA.js → chart-readout-D2cts2K-.js} +1 -1
- package/dist/client/assets/{community-panel-CC2YEUwt.js → community-panel-CyobYCew.js} +1 -1
- package/dist/client/assets/community-panel-CyobYCew.js.br +0 -0
- package/dist/client/assets/{control-ws-DzfSB4uP.js → control-ws-CZlkZIb9.js} +1 -1
- package/dist/client/assets/control-ws-CZlkZIb9.js.br +0 -0
- package/dist/client/assets/{dialogs-n_0_WTbl.js → dialogs-_PPaszQV.js} +2 -2
- package/dist/client/assets/dialogs-_PPaszQV.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-CepJrMsF.js → doc-editor-ui-D5o9otxV.js} +2 -2
- package/dist/client/assets/doc-editor-ui-D5o9otxV.js.br +0 -0
- package/dist/client/assets/dom-helpers-DMxXv4Ea.js +1 -0
- package/dist/client/assets/dom-helpers-DMxXv4Ea.js.br +0 -0
- package/dist/client/assets/{feature-hint-BvxMK2RI.js → feature-hint-BVMkETlA.js} +1 -1
- package/dist/client/assets/feature-hint-BVMkETlA.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-BVxudld_.js → first-run-checklist-CNKEABoq.js} +1 -1
- package/dist/client/assets/first-run-checklist-CNKEABoq.js.br +0 -0
- package/dist/client/assets/{flying-animal-preview-B8I0Jd0Q.js → flying-animal-preview-Dl3rVXO6.js} +1 -1
- package/dist/client/assets/{hooks-panel-DriVYRBa.js → hooks-panel-DKApCFlw.js} +1 -1
- package/dist/client/assets/hooks-panel-DKApCFlw.js.br +0 -0
- package/dist/client/assets/index-BoJNgEvn.css +2 -0
- package/dist/client/assets/index-BoJNgEvn.css.br +0 -0
- package/dist/client/assets/index-TXtcA22X.js +77 -0
- package/dist/client/assets/index-TXtcA22X.js.br +0 -0
- package/dist/client/assets/{issues-panel-DI-w71NA.js → issues-panel-gP1MOEzb.js} +1 -1
- package/dist/client/assets/issues-panel-gP1MOEzb.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-CZLcgqd1.js → lane-read-token-step-9MN-_xBV.js} +5 -5
- package/dist/client/assets/lane-read-token-step-9MN-_xBV.js.br +0 -0
- package/dist/client/assets/{menu-DhCMf1rm.js → menu-BMRRDtdm.js} +1 -1
- package/dist/client/assets/menu-BMRRDtdm.js.br +0 -0
- package/dist/client/assets/{modal-DOm9ZehF.js → modal-D4nA7tAU.js} +1 -1
- package/dist/client/assets/modal-D4nA7tAU.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CejLCkMH.js → my-prs-panel-CRNe6-Lj.js} +1 -1
- package/dist/client/assets/my-prs-panel-CRNe6-Lj.js.br +0 -0
- package/dist/client/assets/{nyan-cat-D60h5p64.js → nyan-cat-DOg6i71b.js} +1 -1
- package/dist/client/assets/nyan-cat-DOg6i71b.js.br +0 -0
- package/dist/client/assets/{phone-shell-D_70Nrhp.js → phone-shell-DgThU4rA.js} +1 -1
- package/dist/client/assets/phone-shell-DgThU4rA.js.br +0 -0
- package/dist/client/assets/{plan-face-BRWl5moe.js → plan-face-DBpejMes.js} +1 -1
- package/dist/client/assets/plan-face-DBpejMes.js.br +0 -0
- package/dist/client/assets/{plan-render-BZNXsire.js → plan-render-b4hfgPzY.js} +1 -1
- package/dist/client/assets/plan-render-b4hfgPzY.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-BG8Cd75P.js → pr-queue-columns-BjuevAdQ.js} +1 -1
- package/dist/client/assets/pr-queue-columns-BjuevAdQ.js.br +0 -0
- package/dist/client/assets/{pr-status-icon-DPf5GbqK.js → pr-status-icon-BXz1v0Fp.js} +1 -1
- package/dist/client/assets/pr-status-icon-BXz1v0Fp.js.br +0 -0
- package/dist/client/assets/{radar-panel-NaxnqQle.js → radar-panel-DAq4ha0j.js} +1 -1
- package/dist/client/assets/radar-panel-DAq4ha0j.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-B7XmGFyG.js → repo-roots-adder-Bq724t-y.js} +1 -1
- package/dist/client/assets/repo-roots-adder-Bq724t-y.js.br +0 -0
- package/dist/client/assets/{resume-dialog-ByAsiycD.js → resume-dialog-Bo0240m8.js} +1 -1
- package/dist/client/assets/resume-dialog-Bo0240m8.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-Caf4PE4y.js → review-queue-panel-DO4r7zab.js} +1 -1
- package/dist/client/assets/review-queue-panel-DO4r7zab.js.br +0 -0
- package/dist/client/assets/{session-row-Df7xeOcX.js → session-row-DZYIZWtI.js} +1 -1
- package/dist/client/assets/session-row-DZYIZWtI.js.br +0 -0
- package/dist/client/assets/{session-tick-BgyaGqbD.js → session-tick-BFGhEgBa.js} +1 -1
- package/dist/client/assets/session-tick-BFGhEgBa.js.br +0 -0
- package/dist/client/assets/{settings-panel-BmT1dShi.js → settings-panel-6K0QaS9J.js} +4 -4
- package/dist/client/assets/settings-panel-6K0QaS9J.js.br +0 -0
- package/dist/client/assets/{setup-step-YEtzugxX.js → setup-step-C3CgVblt.js} +1 -1
- package/dist/client/assets/setup-step-C3CgVblt.js.br +0 -0
- package/dist/client/assets/{trace-panel-BncCoUsd.js → trace-panel-BHYQRc2G.js} +1 -1
- package/dist/client/assets/trace-panel-BHYQRc2G.js.br +0 -0
- package/dist/client/assets/{ui-prefs-CyntieQY.js → ui-prefs-CH9smlIV.js} +1 -1
- package/dist/client/assets/ui-prefs-CH9smlIV.js.br +0 -0
- package/dist/client/assets/{usage-panel-JteD3_AA.js → usage-panel-B4Zyg4Hb.js} +1 -1
- package/dist/client/assets/usage-panel-B4Zyg4Hb.js.br +0 -0
- package/dist/client/assets/{your-day-tip-B-4MxHqw.js → your-day-tip-ClQhVo7O.js} +1 -1
- package/dist/client/assets/your-day-tip-ClQhVo7O.js.br +0 -0
- package/dist/client/index.html +16 -16
- 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-s-X-PCvt.js +0 -1
- package/dist/chunks/config-store-BoX33apm.js +0 -1
- package/dist/chunks/kimi-DEaJJ2sg.js +0 -1
- package/dist/chunks/settings-cli-BSWoP6r7.js +0 -1
- package/dist/client/assets/action-status-C5YfgS6d.js.br +0 -0
- package/dist/client/assets/agent-core-D0W-eF8K.js.br +0 -0
- package/dist/client/assets/agent-mark-Cjw2mU7W.js.br +0 -0
- package/dist/client/assets/arena-panel-ue26yBZq.js.br +0 -0
- package/dist/client/assets/benchmark-panel-Bo45ffey.js.br +0 -0
- package/dist/client/assets/boards-view-BaquLYdf.js +0 -182
- package/dist/client/assets/boards-view-BaquLYdf.js.br +0 -0
- package/dist/client/assets/boards-view-kJv55UPo.css +0 -1
- package/dist/client/assets/boards-view-kJv55UPo.css.br +0 -0
- package/dist/client/assets/button-BFVuG8G5.js +0 -1
- package/dist/client/assets/button-BFVuG8G5.js.br +0 -0
- package/dist/client/assets/card-registry-DHhetqds.js.br +0 -0
- package/dist/client/assets/celebration-player-k-ISAJ-c.js.br +0 -0
- package/dist/client/assets/community-panel-CC2YEUwt.js.br +0 -0
- package/dist/client/assets/control-ws-DzfSB4uP.js.br +0 -0
- package/dist/client/assets/dialogs-n_0_WTbl.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-CepJrMsF.js.br +0 -0
- package/dist/client/assets/dom-helpers-CzHI2jjm.js +0 -1
- package/dist/client/assets/dom-helpers-CzHI2jjm.js.br +0 -0
- package/dist/client/assets/feature-hint-BvxMK2RI.js.br +0 -0
- package/dist/client/assets/first-run-checklist-BVxudld_.js.br +0 -0
- package/dist/client/assets/hooks-panel-DriVYRBa.js.br +0 -0
- package/dist/client/assets/index-Bofu8IcF.js +0 -77
- package/dist/client/assets/index-Bofu8IcF.js.br +0 -0
- package/dist/client/assets/index-DConAYv4.css +0 -2
- package/dist/client/assets/index-DConAYv4.css.br +0 -0
- package/dist/client/assets/issues-panel-DI-w71NA.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-CZLcgqd1.js.br +0 -0
- package/dist/client/assets/menu-DhCMf1rm.js.br +0 -0
- package/dist/client/assets/modal-DOm9ZehF.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CejLCkMH.js.br +0 -0
- package/dist/client/assets/nyan-cat-D60h5p64.js.br +0 -0
- package/dist/client/assets/phone-shell-D_70Nrhp.js.br +0 -0
- package/dist/client/assets/plan-face-BRWl5moe.js.br +0 -0
- package/dist/client/assets/plan-render-BZNXsire.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-BG8Cd75P.js.br +0 -0
- package/dist/client/assets/pr-status-icon-DPf5GbqK.js.br +0 -0
- package/dist/client/assets/radar-panel-NaxnqQle.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-B7XmGFyG.js.br +0 -0
- package/dist/client/assets/resume-dialog-ByAsiycD.js.br +0 -0
- package/dist/client/assets/review-queue-panel-Caf4PE4y.js.br +0 -0
- package/dist/client/assets/session-row-Df7xeOcX.js.br +0 -0
- package/dist/client/assets/session-tick-BgyaGqbD.js.br +0 -0
- package/dist/client/assets/settings-panel-BmT1dShi.js.br +0 -0
- package/dist/client/assets/setup-step-YEtzugxX.js.br +0 -5
- package/dist/client/assets/trace-panel-BncCoUsd.js.br +0 -0
- package/dist/client/assets/ui-prefs-CyntieQY.js.br +0 -0
- package/dist/client/assets/usage-panel-JteD3_AA.js.br +0 -0
- package/dist/client/assets/your-day-tip-B-4MxHqw.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-CM3Z1_Wr.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-DwIrL8GD.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-0Wf41-Ks.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-JkOLi7qZ.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-BMcUze7U.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-DUMKj9oS.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-Bydq6l-8.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-D3LAPlk6.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-Bydq6l-8.js");
|
|
99
99
|
return runPrActionReportCli(parsed);
|
|
100
100
|
},
|
|
101
101
|
vault: async ({ values }) => {
|
|
@@ -111,7 +111,7 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
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--1brMTmJ.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-CML2lYYo.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-CML2lYYo.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--yvQLObm.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-Bpxp73pV.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-JkOLi7qZ.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-CJWr3aPa.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-JkOLi7qZ.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,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-BlUpdyrk.js";
|
|
2
|
+
import { i as isSpinnerChar, n as classifyAgentTitle, r as isBrailleChar, t as grok } from "./grok-CleDl9m3.js";
|
|
3
|
+
import { n as buildAgentEnv } from "./spawn-env-BLOxjIfJ.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-mjOK-0S9.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-CM3Z1_Wr.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-DKOUIgCF.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-DvIydQIP.js";
|
|
21
21
|
import fs from "node:fs";
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
import os from "node:os";
|
|
@@ -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-BB_cVOuu.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-JrNrtqDx.js";
|
|
@@ -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-DwIrL8GD.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 {
|
|
6
|
-
import {
|
|
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-CM3Z1_Wr.js";
|
|
5
|
+
import { M as WhiteboardAgentReply, T as STEP_STATUSES, w as Op } from "./whiteboard-6Wocx4Wt.js";
|
|
6
|
+
import { L as boardSvgDocument, g as layoutBoard } from "./whiteboard-layout-core-CsfgiILH.js";
|
|
7
|
+
import { i as stepBoxesOf, n as dependencyWireIdsInto, r as planSteps, t as dependencyWireId } from "./whiteboard-plan-core-DMmDhbqG.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";
|
|
@@ -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-DKOUIgCF.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-CM3Z1_Wr.js";
|
|
3
3
|
import { n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
|
|
4
|
-
import {
|
|
4
|
+
import { N as WhiteboardAgentRequest } from "./whiteboard-6Wocx4Wt.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-DvIydQIP.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-CleDl9m3.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 {
|
|
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-6Wocx4Wt.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-DMmDhbqG.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";
|
|
@@ -415,12 +415,7 @@ var Rect = z.strictObject({
|
|
|
415
415
|
minY: z.number(),
|
|
416
416
|
maxY: z.number()
|
|
417
417
|
});
|
|
418
|
-
var ElementKind = z.enum(
|
|
419
|
-
"box",
|
|
420
|
-
"frame",
|
|
421
|
-
"wire",
|
|
422
|
-
"note"
|
|
423
|
-
]);
|
|
418
|
+
var ElementKind = z.enum(KIND_NAMES);
|
|
424
419
|
var ElementWrite = z.strictObject({
|
|
425
420
|
elementId: z.string(),
|
|
426
421
|
kind: ElementKind,
|
|
@@ -524,13 +519,14 @@ var StoreReply = z.discriminatedUnion("ok", [z.strictObject({
|
|
|
524
519
|
error: z.string()
|
|
525
520
|
})]);
|
|
526
521
|
var EMPTY_BODY = "{}";
|
|
527
|
-
var
|
|
522
|
+
var ELEMENT_KIND_NAME_SET = new Set(ElementKind.options);
|
|
528
523
|
var BoardHeadFields = z.record(z.string(), z.unknown());
|
|
529
524
|
var ElementIdentity = z.object({ id: z.string() });
|
|
530
525
|
function searchableTextOf(element) {
|
|
531
526
|
if (element.kind === "box") return [element.title, ...linesOfBox(element).map((line) => [line.key, line.text].filter(Boolean).join(" "))].join("\n");
|
|
532
527
|
if (element.kind === "wire") return element.label ?? "";
|
|
533
528
|
if (element.kind === "note") return element.text;
|
|
529
|
+
if (element.kind === "stroke") return "";
|
|
534
530
|
return element.title;
|
|
535
531
|
}
|
|
536
532
|
function headOf(board) {
|
|
@@ -633,7 +629,7 @@ function headRowsOf(record) {
|
|
|
633
629
|
};
|
|
634
630
|
}
|
|
635
631
|
function isElementKind(value) {
|
|
636
|
-
return typeof value === "string" &&
|
|
632
|
+
return typeof value === "string" && ELEMENT_KIND_NAME_SET.has(value);
|
|
637
633
|
}
|
|
638
634
|
function isEveryRowDecodable(storedRows) {
|
|
639
635
|
try {
|
|
@@ -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-CM3Z1_Wr.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-DKOUIgCF.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as loadConfigFile } from "./config-store-mjOK-0S9.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
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-DvIydQIP.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-DKOUIgCF.js";
|
|
5
|
+
import { N as SESSION_COMMANDS, Tn as prFlowRulesJsonSchema, an as PrFlowCommand, fn as PrFlowPrAction, hn as PrFlowSourceCommand, pn as PrFlowRule } from "./session-CM3Z1_Wr.js";
|
|
6
6
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
7
7
|
import { l as QuestionRule } from "./question-manager-C_RzS1Ot.js";
|
|
8
8
|
import { d as writeJsonAtomicSync, f as writeTextAtomic, p as writeTextAtomicSync } from "./json-file-ZNAeT6DN.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 {
|
|
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-CM3Z1_Wr.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-6Wocx4Wt.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 Tile, l as TileDiff, r as LayoutRect, s as TILE_LODS, t as BoardChrome } from "./whiteboard-tiles-
|
|
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 Tile, l as TileDiff, r as LayoutRect, s as TILE_LODS, t as BoardChrome } from "./whiteboard-tiles-Bf5-AEuT.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-C2SMBNVK.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-BLOxjIfJ.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-DKOUIgCF.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-CMGYm4Xl.js";
|
|
5
|
+
import { i as saveValidatedConfig, n as requireView, t as processIo } from "./settings-cli-BzEls_mc.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-DKOUIgCF.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) {
|
|
@@ -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-CM3Z1_Wr.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-BLOxjIfJ.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as default } from "./kimi-BlUpdyrk.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as PlacedPaint, c as Tile, i as PlacedBox, l as TileDiff, n as LaidOutMedia, o as RememberedRoute, r as LayoutRect, t as BoardChrome, u as TileKey } from "./whiteboard-tiles-
|
|
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 isElementTable, H as KIND_NAMES, U as elementTableOf, V as sparseElement, W as elementTableOfStoredRows, b as Element, j as WHITEBOARD_LIMITS, l as BoardHead, u as BoardOutline } from "./whiteboard-6Wocx4Wt.js";
|
|
2
|
+
import { a as PlacedPaint, c as Tile, i as PlacedBox, l as TileDiff, n as LaidOutMedia, o as RememberedRoute, r as LayoutRect, t as BoardChrome, u as TileKey } from "./whiteboard-tiles-Bf5-AEuT.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-DMmDhbqG.js";
|
|
4
4
|
import { n as openDatabase, r as setAside, t as isUnreadableDatabase } from "./sqlite-files-DaPMH3cI.js";
|
|
5
|
-
import { A as
|
|
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-CsfgiILH.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -54,12 +54,7 @@ var PlacedRow = z.object({
|
|
|
54
54
|
slot: z.number().int().nonnegative(),
|
|
55
55
|
element_id: z.string(),
|
|
56
56
|
body: z.string(),
|
|
57
|
-
record_kind: z.enum(
|
|
58
|
-
"box",
|
|
59
|
-
"frame",
|
|
60
|
-
"wire",
|
|
61
|
-
"note"
|
|
62
|
-
]),
|
|
57
|
+
record_kind: z.enum(KIND_NAMES),
|
|
63
58
|
record_body: z.string()
|
|
64
59
|
});
|
|
65
60
|
var RouteRow = z.object({
|
|
@@ -508,6 +503,7 @@ function storeLaidOut(world, element) {
|
|
|
508
503
|
world.laidOutById.set(element.id, element);
|
|
509
504
|
if (element.kind === "box") placeId(world.boxGrid, element.id, element);
|
|
510
505
|
if (element.kind === "note") placeId(world.softGrid, element.id, element);
|
|
506
|
+
if (element.kind === "stroke") placeId(world.inkGrid, element.id, element);
|
|
511
507
|
if (element.kind === "frame") {
|
|
512
508
|
placeId(world.softGrid, element.id, frameTitleStripOf(element));
|
|
513
509
|
placeId(world.frameGrid, element.id, element);
|
|
@@ -522,6 +518,7 @@ function forgetLaidOut(world, id) {
|
|
|
522
518
|
dropId(world.softGrid, id);
|
|
523
519
|
dropId(world.frameGrid, id);
|
|
524
520
|
dropId(world.wireGrid, id);
|
|
521
|
+
dropId(world.inkGrid, id);
|
|
525
522
|
world.loopFrameIds.delete(id);
|
|
526
523
|
}
|
|
527
524
|
function recomputedAround(world) {
|
|
@@ -530,7 +527,8 @@ function recomputedAround(world) {
|
|
|
530
527
|
world.boxGrid,
|
|
531
528
|
world.softGrid,
|
|
532
529
|
world.frameGrid,
|
|
533
|
-
world.wireGrid
|
|
530
|
+
world.wireGrid,
|
|
531
|
+
world.inkGrid
|
|
534
532
|
].reduce((around, idGrid) => unionOfStored(idGrid, around), header);
|
|
535
533
|
}
|
|
536
534
|
function chromeOfWorld(world, board) {
|
|
@@ -551,6 +549,7 @@ function emptyWorld(board, minIncrementalElements) {
|
|
|
551
549
|
softGrid: createIdGrid(SOLID_CELL_SIZE),
|
|
552
550
|
frameGrid: createIdGrid(SOLID_CELL_SIZE),
|
|
553
551
|
wireGrid: createIdGrid(WIRE_CELL_SIZE),
|
|
552
|
+
inkGrid: createIdGrid(SOLID_CELL_SIZE),
|
|
554
553
|
loopFrameIds: /* @__PURE__ */ new Set(),
|
|
555
554
|
routeMemory: {
|
|
556
555
|
contentTop: 0,
|
|
@@ -673,11 +672,26 @@ function touchesStepBox(element, stepBoxIds) {
|
|
|
673
672
|
if (element?.kind === "wire") return stepBoxIds.has(element.from) || stepBoxIds.has(element.to);
|
|
674
673
|
return false;
|
|
675
674
|
}
|
|
675
|
+
function isInStack(board, boxId) {
|
|
676
|
+
return dependentsOfKind(board, boxId, "frame").some((frame) => frame.collapsed);
|
|
677
|
+
}
|
|
678
|
+
function cardIdOf(board, boxId) {
|
|
679
|
+
return dependentsOfKind(board, boxId, "frame").find((frame) => frame.collapsed)?.contains[0] ?? boxId;
|
|
680
|
+
}
|
|
681
|
+
function touchesStack(board, element) {
|
|
682
|
+
if (!element) return false;
|
|
683
|
+
if (element.kind === "frame") return element.collapsed;
|
|
684
|
+
if (element.kind === "box") return isInStack(board, element.id);
|
|
685
|
+
if (element.kind === "wire") return isInStack(board, element.from) || isInStack(board, element.to);
|
|
686
|
+
if (element.kind === "stroke") return false;
|
|
687
|
+
return isInStack(board, element.on);
|
|
688
|
+
}
|
|
676
689
|
function needsRebuild(world, board, changes) {
|
|
677
690
|
const index = boardIndexOf(board.elements);
|
|
678
691
|
if (world.version !== board.version - 1 || index.elementCount < world.minIncrementalElements || world.laidOutById.size === 0) return true;
|
|
679
692
|
for (const change of changes.values()) {
|
|
680
693
|
if (touchesStepBox(change.before, index.stepBoxIds) || touchesStepBox(change.after, index.stepBoxIds)) return true;
|
|
694
|
+
if (touchesStack(board, change.before) || touchesStack(board, change.after)) return true;
|
|
681
695
|
if ((change.before?.kind === "box" || change.after?.kind === "box" || change.before?.kind === "note" || change.after?.kind === "note") && world.floatingBoxCount > 0) return true;
|
|
682
696
|
}
|
|
683
697
|
return false;
|
|
@@ -742,6 +756,7 @@ function hasKind(element, kind) {
|
|
|
742
756
|
}
|
|
743
757
|
function laidOutSolids(world, board, changes) {
|
|
744
758
|
const dirtyBoxIds = dirtyBoxIdsOf(board, changes);
|
|
759
|
+
for (const boxId of dirtyBoxIds) if (isInStack(board, boxId)) return null;
|
|
745
760
|
const placedBoxes = placedDirtyBoxes(world, board, dirtyBoxIds);
|
|
746
761
|
if (!placedBoxes) return null;
|
|
747
762
|
const nextById = new Map(placedBoxes);
|
|
@@ -757,6 +772,7 @@ function laidOutSolids(world, board, changes) {
|
|
|
757
772
|
if (change.after?.kind === "note") stackBoxIds.add(change.after.on);
|
|
758
773
|
if (change.before?.kind === "note" || change.after?.kind === "note") nextById.set(id, null);
|
|
759
774
|
if (change.before?.kind === "frame" || change.after?.kind === "frame") dirtyFrameIds.add(id);
|
|
775
|
+
if (change.before?.kind === "stroke" || change.after?.kind === "stroke") nextById.set(id, change.after?.kind === "stroke" ? laidOutStrokeOf(change.after, world.pinnedOffsetY) : null);
|
|
760
776
|
if (change.after?.kind === "note" && (change.isAppended || !world.noteOrderById.has(id))) world.noteOrderById.set(id, nextNoteOrderOf(world, id));
|
|
761
777
|
if (change.after?.kind !== "note" && change.before?.kind === "note") world.noteOrderById.delete(id);
|
|
762
778
|
}
|
|
@@ -888,7 +904,7 @@ function routeInputOver(world, board, rerouteIds, contextIds) {
|
|
|
888
904
|
const box = world.laidOutById.get(id);
|
|
889
905
|
if (box?.kind === "box") boxesById.set(id, box);
|
|
890
906
|
};
|
|
891
|
-
for (const id of endpointIdsOf(board, [...rerouteIds, ...contextIds])) addBox(id);
|
|
907
|
+
for (const id of endpointIdsOf(board, [...rerouteIds, ...contextIds])) addBox(cardIdOf(board, id));
|
|
892
908
|
const areas = [...rerouteIds].flatMap((id) => {
|
|
893
909
|
const laidOut = world.laidOutById.get(id);
|
|
894
910
|
return laidOut?.kind === "wire" ? segmentRectsOf(laidOut).map((rect) => inflated(rect, 14)) : [];
|
|
@@ -908,7 +924,8 @@ function routeInputOver(world, board, rerouteIds, contextIds) {
|
|
|
908
924
|
});
|
|
909
925
|
const wiresOf = (ids) => [...ids].flatMap((id) => {
|
|
910
926
|
const wire = board.elements.get(id);
|
|
911
|
-
|
|
927
|
+
if (wire?.kind !== "wire") return [];
|
|
928
|
+
return wireEndingAtCard(wire, (boxId) => cardIdOf(board, boxId)) ?? [];
|
|
912
929
|
});
|
|
913
930
|
return {
|
|
914
931
|
wires: wiresOf(rerouteIds),
|
|
@@ -1144,6 +1161,7 @@ function layoutOf(world) {
|
|
|
1144
1161
|
const pinnedBoxes = [];
|
|
1145
1162
|
const nearBoxes = [];
|
|
1146
1163
|
const notes = [];
|
|
1164
|
+
const strokes = [];
|
|
1147
1165
|
for (const element of world.board.elements.values()) {
|
|
1148
1166
|
const laidOut = world.laidOutById.get(element.id);
|
|
1149
1167
|
if (laidOut?.kind === "frame") frames.push(laidOut);
|
|
@@ -1151,6 +1169,7 @@ function layoutOf(world) {
|
|
|
1151
1169
|
if (laidOut?.kind === "box" && element.kind === "box" && element.at) pinnedBoxes.push(laidOut);
|
|
1152
1170
|
if (laidOut?.kind === "box" && element.kind === "box" && !element.at) nearBoxes.push(laidOut);
|
|
1153
1171
|
if (laidOut?.kind === "note") notes.push(laidOut);
|
|
1172
|
+
if (laidOut?.kind === "stroke") strokes.push(laidOut);
|
|
1154
1173
|
}
|
|
1155
1174
|
const layout = {
|
|
1156
1175
|
elements: [
|
|
@@ -1158,7 +1177,8 @@ function layoutOf(world) {
|
|
|
1158
1177
|
...wires,
|
|
1159
1178
|
...pinnedBoxes,
|
|
1160
1179
|
...nearBoxes,
|
|
1161
|
-
...notes
|
|
1180
|
+
...notes,
|
|
1181
|
+
...strokes
|
|
1162
1182
|
],
|
|
1163
1183
|
...world.chrome,
|
|
1164
1184
|
warnings: warningsOf(world)
|
|
@@ -1467,6 +1487,23 @@ function defaultFocusOf(index) {
|
|
|
1467
1487
|
height: DEFAULT_FOCUS_HEIGHT
|
|
1468
1488
|
};
|
|
1469
1489
|
}
|
|
1490
|
+
function readElementOf(element) {
|
|
1491
|
+
if (element.kind !== "stroke") return element;
|
|
1492
|
+
const { x, y, width, height } = laidOutStrokeOf(element, 0);
|
|
1493
|
+
return {
|
|
1494
|
+
kind: "stroke",
|
|
1495
|
+
id: element.id,
|
|
1496
|
+
bounds: {
|
|
1497
|
+
x,
|
|
1498
|
+
y,
|
|
1499
|
+
width,
|
|
1500
|
+
height
|
|
1501
|
+
},
|
|
1502
|
+
pointCount: element.points.length / 2,
|
|
1503
|
+
width: element.width,
|
|
1504
|
+
tone: element.tone
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1470
1507
|
function elementPageOf(board, elementIds, offset) {
|
|
1471
1508
|
const elements = [];
|
|
1472
1509
|
let pageChars = 0;
|
|
@@ -1474,9 +1511,10 @@ function elementPageOf(board, elementIds, offset) {
|
|
|
1474
1511
|
for (; nextIndex < elementIds.length && elements.length < WHITEBOARD_LIMITS.readPage; nextIndex += 1) {
|
|
1475
1512
|
const element = board.elements.get(elementIds[nextIndex] ?? "");
|
|
1476
1513
|
if (!element) continue;
|
|
1477
|
-
const
|
|
1514
|
+
const readElement = readElementOf(element);
|
|
1515
|
+
const elementChars = JSON.stringify(element.kind === "stroke" ? readElement : sparseElement(element)).length;
|
|
1478
1516
|
if (elements.length > 0 && pageChars + elementChars > WHITEBOARD_LIMITS.readPageChars) break;
|
|
1479
|
-
elements.push(
|
|
1517
|
+
elements.push(readElement);
|
|
1480
1518
|
pageChars += elementChars;
|
|
1481
1519
|
}
|
|
1482
1520
|
return {
|
|
@@ -1485,7 +1523,7 @@ function elementPageOf(board, elementIds, offset) {
|
|
|
1485
1523
|
};
|
|
1486
1524
|
}
|
|
1487
1525
|
function fitsOnePage(board) {
|
|
1488
|
-
if (board.elements.size > WHITEBOARD_LIMITS.readPage) return false;
|
|
1526
|
+
if (board.elements.size > WHITEBOARD_LIMITS.readPage || boardIndexOf(board.elements).strokeCount > 0) return false;
|
|
1489
1527
|
let pageChars = 0;
|
|
1490
1528
|
for (const id of board.elements.keys()) pageChars += board.elements.sparseLengthOf(id);
|
|
1491
1529
|
return pageChars <= WHITEBOARD_LIMITS.readPageChars;
|