visual-living-plan 0.1.0 → 2.32.1
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/DESIGN.md +213 -0
- package/README.md +155 -28
- package/dist/AuthScreen.d.ts +9 -0
- package/dist/AuthScreen.js +7 -0
- package/dist/DesktopModeSwitch.d.ts +13 -0
- package/dist/DesktopModeSwitch.js +14 -0
- package/dist/OAuthMark.d.ts +6 -0
- package/dist/OAuthMark.js +8 -0
- package/dist/accountInitials.d.ts +5 -0
- package/dist/accountInitials.js +20 -0
- package/dist/accountLinking.d.ts +26 -0
- package/dist/accountLinking.js +46 -0
- package/dist/agentEvents.d.ts +31 -0
- package/dist/agentEvents.js +260 -0
- package/dist/agentPresence.d.ts +42 -0
- package/dist/agentPresence.js +69 -0
- package/dist/agentSkills.d.ts +35 -0
- package/dist/agentSkills.js +89 -0
- package/dist/agentStream.d.ts +35 -0
- package/dist/agentStream.js +133 -0
- package/dist/appearanceDom.d.ts +13 -0
- package/dist/appearanceDom.js +24 -0
- package/dist/appearanceSettings.d.ts +29 -0
- package/dist/appearanceSettings.js +293 -0
- package/dist/assets.d.ts +14 -0
- package/dist/assets.js +72 -0
- package/dist/authSearch.d.ts +11 -0
- package/dist/authSearch.js +30 -0
- package/dist/changelog.d.ts +11 -0
- package/dist/changelog.js +63 -0
- package/dist/changelogParse.d.ts +53 -0
- package/dist/changelogParse.js +226 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1684 -0
- package/dist/cliLauncher.d.ts +40 -0
- package/dist/cliLauncher.js +170 -0
- package/dist/cliToken.d.ts +11 -0
- package/dist/cliToken.js +15 -0
- package/dist/client/.vite/manifest.json +1780 -0
- package/dist/client/assets/BarChart-DtV3dIq4.js +1 -0
- package/dist/client/assets/BlockEditor-BklSUBjk.js +168 -0
- package/dist/client/assets/BlockEditor-K5h6xc4_.css +1 -0
- package/dist/client/assets/CodeBlock-BbI08MlQ.js +1 -0
- package/dist/client/assets/CodeBlock-BxRMnldw.js +175 -0
- package/dist/client/assets/LineChart-CQYMEbD6.js +1 -0
- package/dist/client/assets/Mermaid-Ciu9eIoG.js +1 -0
- package/dist/client/assets/Mermaid-jPWLXX7e.js +1 -0
- package/dist/client/assets/Popover-DbE4vUPG.js +1 -0
- package/dist/client/assets/ReactFlowExecutionCanvas-BhVs-adc.js +7 -0
- package/dist/client/assets/ReactFlowExecutionCanvas-DLioOiRN.css +1 -0
- package/dist/client/assets/StatusIcon-C_-Lm9b4.js +1 -0
- package/dist/client/assets/Workflow-C92OpLyf.js +1 -0
- package/dist/client/assets/agentPresence-D8asHrTp.js +1 -0
- package/dist/client/assets/andromeeda-DW8vo71h.js +1 -0
- package/dist/client/assets/andromeeda-vGVdxbeo.js +1 -0
- package/dist/client/assets/arrow-up-CEVVOXD5.js +1 -0
- package/dist/client/assets/arrow-up-down-BSjnQK2I.js +1 -0
- package/dist/client/assets/aurora-x-CDeNXAV0.js +1 -0
- package/dist/client/assets/aurora-x-rMvKqtYI.js +1 -0
- package/dist/client/assets/ayu-dark-CwczpL8O.js +1 -0
- package/dist/client/assets/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/client/assets/ayu-light-C3h-C4tm.js +1 -0
- package/dist/client/assets/ayu-light-DSh22xiD.js +1 -0
- package/dist/client/assets/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/client/assets/ayu-mirage-JE6hAyHG.js +1 -0
- package/dist/client/assets/browserStore-BDGKYoJj.js +435 -0
- package/dist/client/assets/button-BI07wqbi.css +1 -0
- package/dist/client/assets/button-DJWAGApe.js +1 -0
- package/dist/client/assets/catppuccin-frappe-C9Q5zVZY.js +1 -0
- package/dist/client/assets/catppuccin-frappe-pyXErRRU.js +1 -0
- package/dist/client/assets/catppuccin-latte-BILSUICr.js +1 -0
- package/dist/client/assets/catppuccin-latte-CtsyrtPq.js +1 -0
- package/dist/client/assets/catppuccin-macchiato-Ck60ZZQE.js +1 -0
- package/dist/client/assets/catppuccin-macchiato-R8nAf1vR.js +1 -0
- package/dist/client/assets/catppuccin-mocha-C_2G67cS.js +1 -0
- package/dist/client/assets/catppuccin-mocha-DjuaAJKi.js +1 -0
- package/dist/client/assets/ccount-nzzEXTrh.js +1 -0
- package/dist/client/assets/chartRows-CNjjLsAH.js +2 -0
- package/dist/client/assets/circle-x-BLGxA3gi.js +1 -0
- package/dist/client/assets/client-BsE_buVT.js +9 -0
- package/dist/client/assets/constants-CmGPilXJ.js +1 -0
- package/dist/client/assets/dark-plus-CHgc6GYj.js +1 -0
- package/dist/client/assets/dark-plus-Cs2F2srj.js +1 -0
- package/dist/client/assets/default-5FplaXL4.js +7 -0
- package/dist/client/assets/diffsTheme-PJJTu2Rq.js +1 -0
- package/dist/client/assets/dracula-BHWKrbxM.js +1 -0
- package/dist/client/assets/dracula-Cf1PG3MT.js +1 -0
- package/dist/client/assets/dracula-soft-5eyTD99u.js +1 -0
- package/dist/client/assets/dracula-soft-DXuNm1Kq.js +1 -0
- package/dist/client/assets/editSource-DQfw4nRm.js +1 -0
- package/dist/client/assets/editSource-U5AoD-Wo.js +14 -0
- package/dist/client/assets/engine-CLTPZlti.js +1 -0
- package/dist/client/assets/engine-DUyaiAMV.js +2 -0
- package/dist/client/assets/everforest-dark-CjdfwUBe.js +1 -0
- package/dist/client/assets/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/client/assets/everforest-light-CfVwwCBP.js +1 -0
- package/dist/client/assets/everforest-light-Df2xbC6M.js +1 -0
- package/dist/client/assets/forgetDocuments-CIUBitCs.js +1 -0
- package/dist/client/assets/formatCSSVariablePrefix-KRh9vnZf.js +1 -0
- package/dist/client/assets/github-dark-BL6HSl_n.js +1 -0
- package/dist/client/assets/github-dark-C-LZuMrd.js +1 -0
- package/dist/client/assets/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/client/assets/github-dark-default-zacuWV-M.js +1 -0
- package/dist/client/assets/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/client/assets/github-dark-dimmed-Mc0P9idi.js +1 -0
- package/dist/client/assets/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/client/assets/github-dark-high-contrast-IMKX2AVF.js +1 -0
- package/dist/client/assets/github-light-EUqPIrTm.js +1 -0
- package/dist/client/assets/github-light-default-BXViO-2h.js +1 -0
- package/dist/client/assets/github-light-default-DVlCqP3X.js +1 -0
- package/dist/client/assets/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/client/assets/github-light-high-contrast-Dj6zTyWR.js +1 -0
- package/dist/client/assets/github-light-mYhEBkPo.js +1 -0
- package/dist/client/assets/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/client/assets/gruvbox-dark-hard-QTgQQZn-.js +1 -0
- package/dist/client/assets/gruvbox-dark-medium-9d5YdCTx.js +1 -0
- package/dist/client/assets/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/client/assets/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/client/assets/gruvbox-dark-soft-XCkqeBhR.js +1 -0
- package/dist/client/assets/gruvbox-light-hard--5-nXqNp.js +1 -0
- package/dist/client/assets/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/client/assets/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/client/assets/gruvbox-light-medium-COA1PZW2.js +1 -0
- package/dist/client/assets/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/client/assets/gruvbox-light-soft-CIJpzjAO.js +1 -0
- package/dist/client/assets/hastToHtml-Dj8rXue9.js +11 -0
- package/dist/client/assets/highlight-cB-PkhyE.js +1 -0
- package/dist/client/assets/highlights-LLBF1DTm.js +1 -0
- package/dist/client/assets/horizon-Ba2cwkSy.js +1 -0
- package/dist/client/assets/horizon-CE9ld1lL.js +1 -0
- package/dist/client/assets/horizon-bright-DSNQnXHK.js +1 -0
- package/dist/client/assets/horizon-bright-DaEDgBmR.js +1 -0
- package/dist/client/assets/houston-B6x0XVpU.js +1 -0
- package/dist/client/assets/houston-CsvMBhTu.js +1 -0
- package/dist/client/assets/jsx-runtime-DKj5X9O4.js +1 -0
- package/dist/client/assets/kanagawa-dragon-Bozd7klA.js +1 -0
- package/dist/client/assets/kanagawa-dragon-DhTFvBMT.js +1 -0
- package/dist/client/assets/kanagawa-lotus--m8sdOxn.js +1 -0
- package/dist/client/assets/kanagawa-lotus-BmuOG9ZW.js +1 -0
- package/dist/client/assets/kanagawa-wave-BML5mF2J.js +1 -0
- package/dist/client/assets/kanagawa-wave-D-tTv4k2.js +1 -0
- package/dist/client/assets/laserwave-C_8bwKvT.js +1 -0
- package/dist/client/assets/laserwave-HSLx0L75.js +1 -0
- package/dist/client/assets/lib-COgu-QLX.js +33 -0
- package/dist/client/assets/lib-CdRiGVUZ.js +1 -0
- package/dist/client/assets/light-plus-CUjWrTSi.js +1 -0
- package/dist/client/assets/light-plus-DVQuIRkW.js +1 -0
- package/dist/client/assets/loader-CjL04K29.js +1 -0
- package/dist/client/assets/main-BGMX_GnZ.js +2 -0
- package/dist/client/assets/main-BTko4EvJ.css +1 -0
- package/dist/client/assets/material-theme-Bm3Qr25_.js +1 -0
- package/dist/client/assets/material-theme-CnthUGfg.js +1 -0
- package/dist/client/assets/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/client/assets/material-theme-darker-DUi03Qre.js +1 -0
- package/dist/client/assets/material-theme-lighter-D2-qr5Vw.js +1 -0
- package/dist/client/assets/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/client/assets/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/client/assets/material-theme-ocean-CWR-LogA.js +1 -0
- package/dist/client/assets/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/client/assets/material-theme-palenight-Cnv8m1ra.js +1 -0
- package/dist/client/assets/mdxEntries-BNTMP8ct.css +1 -0
- package/dist/client/assets/mdxEntries-L-V7bB6i.js +1 -0
- package/dist/client/assets/mermaid-Bjhs-krb.js +1 -0
- package/dist/client/assets/mermaid-Di4j-zgD.js +146 -0
- package/dist/client/assets/min-dark-BSWPekZh.js +1 -0
- package/dist/client/assets/min-dark-EXoM-6Xo.js +1 -0
- package/dist/client/assets/min-light-DDpmG2fV.js +1 -0
- package/dist/client/assets/min-light-DVOTDhnA.js +1 -0
- package/dist/client/assets/monokai-BscAjiQZ.js +1 -0
- package/dist/client/assets/monokai-DkggTbGy.js +1 -0
- package/dist/client/assets/mountChrome-BVWpsDCy.js +122 -0
- package/dist/client/assets/mountChrome-DhTDH3YM.css +1 -0
- package/dist/client/assets/night-owl-Bdcs0PMi.js +1 -0
- package/dist/client/assets/night-owl-DhmEMT88.js +1 -0
- package/dist/client/assets/night-owl-light-RoU30LE0.js +1 -0
- package/dist/client/assets/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/client/assets/noShiki-DB8hQ_W3.js +1 -0
- package/dist/client/assets/noShiki-GTG3tT8x.js +1 -0
- package/dist/client/assets/nord-Cb4Vim4T.js +1 -0
- package/dist/client/assets/nord-u7hMircQ.js +1 -0
- package/dist/client/assets/offlineSync-Cv3FVIlJ.js +1 -0
- package/dist/client/assets/one-dark-pro-08PdtLzi.js +1 -0
- package/dist/client/assets/one-dark-pro-C6YyR8OD.js +1 -0
- package/dist/client/assets/one-light-D7Lr4KcI.js +1 -0
- package/dist/client/assets/one-light-DgvUEtgI.js +1 -0
- package/dist/client/assets/opfs-worker-DuTOCgWR.js +5919 -0
- package/dist/client/assets/pierre-dark-B2jZWvHG.js +1 -0
- package/dist/client/assets/pierre-dark-CpLgRqie.js +1 -0
- package/dist/client/assets/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +1 -0
- package/dist/client/assets/pierre-dark-protanopia-deuteranopia-CebgQdRf.js +1 -0
- package/dist/client/assets/pierre-dark-soft-DdE7dyP3.js +1 -0
- package/dist/client/assets/pierre-dark-soft-kZQmAZld.js +1 -0
- package/dist/client/assets/pierre-dark-tritanopia-CXimiT7X.js +1 -0
- package/dist/client/assets/pierre-dark-tritanopia-CpjhbsIL.js +1 -0
- package/dist/client/assets/pierre-dark-vibrant-CpQYzh95.js +1 -0
- package/dist/client/assets/pierre-dark-vibrant-DzBsxHvQ.js +1 -0
- package/dist/client/assets/pierre-light-CoaEpmwp.js +1 -0
- package/dist/client/assets/pierre-light-Vf__O3ev.js +1 -0
- package/dist/client/assets/pierre-light-protanopia-deuteranopia-0fSaH845.js +1 -0
- package/dist/client/assets/pierre-light-protanopia-deuteranopia-BUtWcCQC.js +1 -0
- package/dist/client/assets/pierre-light-soft-C3QCXKvN.js +1 -0
- package/dist/client/assets/pierre-light-soft-lWLdNTOI.js +1 -0
- package/dist/client/assets/pierre-light-tritanopia-CEbqgOJL.js +1 -0
- package/dist/client/assets/pierre-light-tritanopia-CKLy6XvA.js +1 -0
- package/dist/client/assets/pierre-light-vibrant-D80Fkn33.js +1 -0
- package/dist/client/assets/pierre-light-vibrant-DDuTEIhH.js +1 -0
- package/dist/client/assets/planEditButton-CbWGczbi.js +45 -0
- package/dist/client/assets/planEvents-cuzv9ELr.js +1 -0
- package/dist/client/assets/planMdx-Db1ze_nN.js +110 -0
- package/dist/client/assets/plastic-B8mE6BxX.js +1 -0
- package/dist/client/assets/plastic-DQwYfKfQ.js +1 -0
- package/dist/client/assets/poimandres-DRFjx7u4.js +1 -0
- package/dist/client/assets/poimandres-DUFjrgxT.js +1 -0
- package/dist/client/assets/preload-helper-Dx0-lKy1.js +1 -0
- package/dist/client/assets/queryClient-Bs5tSUJh.js +1 -0
- package/dist/client/assets/react-dom-DpzJPrWF.js +1 -0
- package/dist/client/assets/rebaseDraft-B2--cj1c.js +19 -0
- package/dist/client/assets/red-BJvdDEUx.js +1 -0
- package/dist/client/assets/red-CYlAq2b0.js +1 -0
- package/dist/client/assets/register-hZEIk3A9.css +1 -0
- package/dist/client/assets/register-htm5s8o9.js +1 -0
- package/dist/client/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
- package/dist/client/assets/rose-pine-BSqRqUae.js +1 -0
- package/dist/client/assets/rose-pine-aMsaMD1D.js +1 -0
- package/dist/client/assets/rose-pine-dawn-8PwUyIlP.js +1 -0
- package/dist/client/assets/rose-pine-dawn-U6TBE82u.js +1 -0
- package/dist/client/assets/rose-pine-moon-CAU7u1h4.js +1 -0
- package/dist/client/assets/rose-pine-moon-DO-qXg-I.js +1 -0
- package/dist/client/assets/routeEdges-B2z8v0di.js +24 -0
- package/dist/client/assets/selector-CDsXW7SO.css +1 -0
- package/dist/client/assets/selector-tlBGWtQl.js +1 -0
- package/dist/client/assets/settingsChrome-NGUDtEIp.js +1 -0
- package/dist/client/assets/shiki-BOXJeUHI.js +2 -0
- package/dist/client/assets/slack-dark-CMu0smFa.js +1 -0
- package/dist/client/assets/slack-dark-DnToyrRv.js +1 -0
- package/dist/client/assets/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/client/assets/slack-ochin-BBne7cjw.js +1 -0
- package/dist/client/assets/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/client/assets/snazzy-light-CV8HUEmk.js +1 -0
- package/dist/client/assets/solarized-dark-CmYmhSgI.js +1 -0
- package/dist/client/assets/solarized-dark-b97czJOk.js +1 -0
- package/dist/client/assets/solarized-light-CjLLwxRp.js +1 -0
- package/dist/client/assets/solarized-light-DFPxpIYQ.js +1 -0
- package/dist/client/assets/stampPlanParts-DVXYCykw.js +15 -0
- package/dist/client/assets/stampPlanParts-ctZzxWdw.css +1 -0
- package/dist/client/assets/stream-tokenizer-C3n8hi1h.js +4 -0
- package/dist/client/assets/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/client/assets/synthwave-84-wQeDKbzQ.js +1 -0
- package/dist/client/assets/textChildren-ZDSs1dod.js +1 -0
- package/dist/client/assets/themes-CdTJhjZf.js +2 -0
- package/dist/client/assets/tokyo-night-D4ZgDiA7.js +1 -0
- package/dist/client/assets/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/client/assets/triangle-alert-C9Sgr3jF.js +1 -0
- package/dist/client/assets/unwrapDefault-ByDmBtHB.js +1 -0
- package/dist/client/assets/utils-C9Glzetk.js +2 -0
- package/dist/client/assets/versionView-zkSROPw7.js +1 -0
- package/dist/client/assets/vesper-DdrHHSXu.js +1 -0
- package/dist/client/assets/vesper-sUHevyKv.js +1 -0
- package/dist/client/assets/vitesse-black-CfklMpOb.js +1 -0
- package/dist/client/assets/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/client/assets/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/client/assets/vitesse-dark-CJkzwmKT.js +1 -0
- package/dist/client/assets/vitesse-light-BxMp8E1Y.js +1 -0
- package/dist/client/assets/vitesse-light-VbXTXTou.js +1 -0
- package/dist/client/assets/wa-sqlite-Ba70bhIr.wasm +0 -0
- package/dist/client/assets/warmPlans-CYFrLwcX.js +1 -0
- package/dist/client/assets/with-selector-HIcjK0_d.js +1 -0
- package/dist/client/assets/workflowSource-LMsRuqF_.js +3 -0
- package/dist/client/favicon.png +0 -0
- package/dist/client/icons/apple-touch-icon-180x180.png +0 -0
- package/dist/client/icons/favicon.ico +0 -0
- package/dist/client/icons/maskable-icon-192x192.png +0 -0
- package/dist/client/icons/maskable-icon-512x512.png +0 -0
- package/dist/client/icons/pwa-16x16.png +0 -0
- package/dist/client/icons/pwa-192x192.png +0 -0
- package/dist/client/icons/pwa-32x32.png +0 -0
- package/dist/client/icons/pwa-512x512.png +0 -0
- package/dist/client/icons/pwa-64x64.png +0 -0
- package/dist/clientLog.d.ts +5 -0
- package/dist/clientLog.js +64 -0
- package/dist/cloudClient.d.ts +38 -0
- package/dist/cloudClient.js +185 -0
- package/dist/cloudCommand.d.ts +23 -0
- package/dist/cloudCommand.js +159 -0
- package/dist/cloudFrontmatter.d.ts +4 -0
- package/dist/cloudFrontmatter.js +30 -0
- package/dist/cloudStore.d.ts +28 -0
- package/dist/cloudStore.js +70 -0
- package/dist/cloudWatch.d.ts +12 -0
- package/dist/cloudWatch.js +103 -0
- package/dist/commentReply.d.ts +25 -0
- package/dist/commentReply.js +17 -0
- package/dist/configHome.d.ts +34 -0
- package/dist/configHome.js +136 -0
- package/dist/dashboard.d.ts +67 -0
- package/dist/dashboard.js +86 -0
- package/dist/dashboardClientScript.d.ts +2 -0
- package/dist/dashboardClientScript.js +1006 -0
- package/dist/dashboardDocument.d.ts +13 -0
- package/dist/dashboardDocument.js +40 -0
- package/dist/dashboardFormat.d.ts +98 -0
- package/dist/dashboardFormat.js +199 -0
- package/dist/dashboardLoading.d.ts +19 -0
- package/dist/dashboardLoading.js +94 -0
- package/dist/dashboardOverview.d.ts +28 -0
- package/dist/dashboardOverview.js +333 -0
- package/dist/dashboardPage.d.ts +2 -0
- package/dist/dashboardPage.js +11 -0
- package/dist/dashboardParts.d.ts +4 -0
- package/dist/dashboardParts.js +367 -0
- package/dist/dashboardSearchView.d.ts +38 -0
- package/dist/dashboardSearchView.js +255 -0
- package/dist/desktopApp.d.ts +23 -0
- package/dist/desktopApp.js +110 -0
- package/dist/desktopBridge.d.ts +21 -0
- package/dist/desktopBridge.js +78 -0
- package/dist/desktopCommand.d.ts +61 -0
- package/dist/desktopCommand.js +172 -0
- package/dist/desktopConfig.d.ts +54 -0
- package/dist/desktopConfig.js +164 -0
- package/dist/desktopNotices.d.ts +105 -0
- package/dist/desktopNotices.js +427 -0
- package/dist/diff.d.ts +2 -0
- package/dist/diff.js +46 -0
- package/dist/diffsTheme.d.ts +51 -0
- package/dist/diffsTheme.js +86 -0
- package/dist/diffsThemeCatalog.d.ts +3 -0
- package/dist/diffsThemeCatalog.js +78 -0
- package/dist/elkRuntime.node.d.ts +7 -0
- package/dist/elkRuntime.node.js +63 -0
- package/dist/execution.d.ts +78 -0
- package/dist/execution.js +139 -0
- package/dist/expectedWorkflow.d.ts +11 -0
- package/dist/expectedWorkflow.js +99 -0
- package/dist/favicon.d.ts +4 -0
- package/dist/favicon.js +40 -0
- package/dist/favicon.png +0 -0
- package/dist/faviconBase64.d.ts +1 -0
- package/dist/faviconBase64.js +1 -0
- package/dist/fileVersion.d.ts +8 -0
- package/dist/fileVersion.js +20 -0
- package/dist/formatBytes.d.ts +2 -0
- package/dist/formatBytes.js +13 -0
- package/dist/gitStatus.d.ts +12 -0
- package/dist/gitStatus.js +88 -0
- package/dist/hostToolbar.d.ts +38 -0
- package/dist/hostToolbar.js +249 -0
- package/dist/http.d.ts +8 -0
- package/dist/http.js +38 -0
- package/dist/httpServer.d.ts +13 -0
- package/dist/httpServer.js +40 -0
- package/dist/icons/apple-touch-icon-180x180.png +0 -0
- package/dist/icons/favicon.ico +0 -0
- package/dist/icons/maskable-icon-192x192.png +0 -0
- package/dist/icons/maskable-icon-512x512.png +0 -0
- package/dist/icons/pwa-16x16.png +0 -0
- package/dist/icons/pwa-192x192.png +0 -0
- package/dist/icons/pwa-32x32.png +0 -0
- package/dist/icons/pwa-512x512.png +0 -0
- package/dist/icons/pwa-64x64.png +0 -0
- package/dist/lanAccess.d.ts +31 -0
- package/dist/lanAccess.js +110 -0
- package/dist/lanAddress.d.ts +24 -0
- package/dist/lanAddress.js +174 -0
- package/dist/lanCommand.d.ts +25 -0
- package/dist/lanCommand.js +159 -0
- package/dist/lanConfig.d.ts +40 -0
- package/dist/lanConfig.js +130 -0
- package/dist/lanFirewall.d.ts +17 -0
- package/dist/lanFirewall.js +221 -0
- package/dist/layoutGraph.d.ts +13 -0
- package/dist/layoutGraph.js +55 -0
- package/dist/localName.d.ts +9 -0
- package/dist/localName.js +28 -0
- package/dist/lockBanner.d.ts +2 -0
- package/dist/lockBanner.js +2 -0
- package/dist/mdnsPacket.d.ts +44 -0
- package/dist/mdnsPacket.js +384 -0
- package/dist/mdnsPublish.d.ts +12 -0
- package/dist/mdnsPublish.js +290 -0
- package/dist/offlineSync.d.ts +249 -0
- package/dist/offlineSync.js +477 -0
- package/dist/openUrl.d.ts +40 -0
- package/dist/openUrl.js +147 -0
- package/dist/openedPages.d.ts +14 -0
- package/dist/openedPages.js +48 -0
- package/dist/pageEditPull.d.ts +9 -0
- package/dist/pageEditPull.js +29 -0
- package/dist/pageRoutes.d.ts +3 -0
- package/dist/pageRoutes.js +34 -0
- package/dist/parse.d.ts +7 -0
- package/dist/parse.js +100 -0
- package/dist/pid.d.ts +2 -0
- package/dist/pid.js +13 -0
- package/dist/planArchive.d.ts +4 -0
- package/dist/planArchive.js +28 -0
- package/dist/planEntries.d.ts +12 -0
- package/dist/planEntries.js +117 -0
- package/dist/planHost.d.ts +31 -0
- package/dist/planHost.js +286 -0
- package/dist/planId.d.ts +2 -0
- package/dist/planId.js +6 -0
- package/dist/planMdx/blockEdit.d.ts +41 -0
- package/dist/planMdx/blockEdit.js +60 -0
- package/dist/planMdx/cellPart.d.ts +14 -0
- package/dist/planMdx/cellPart.js +26 -0
- package/dist/planMdx/compilePlanMdx.d.ts +3 -0
- package/dist/planMdx/compilePlanMdx.js +22 -0
- package/dist/planMdx/editSource.d.ts +39 -0
- package/dist/planMdx/editSource.js +327 -0
- package/dist/planMdx/frontmatter.d.ts +5 -0
- package/dist/planMdx/frontmatter.js +15 -0
- package/dist/planMdx/markdown.d.ts +6 -0
- package/dist/planMdx/markdown.js +470 -0
- package/dist/planMdx/outline.d.ts +8 -0
- package/dist/planMdx/outline.js +548 -0
- package/dist/planMdx/payload.d.ts +4 -0
- package/dist/planMdx/payload.js +18 -0
- package/dist/planMdx/rebaseDraft.d.ts +54 -0
- package/dist/planMdx/rebaseDraft.js +675 -0
- package/dist/planMdx/recmaPlanComponents.d.ts +18 -0
- package/dist/planMdx/recmaPlanComponents.js +52 -0
- package/dist/planMdx/remarkBlockRanges.d.ts +104 -0
- package/dist/planMdx/remarkBlockRanges.js +275 -0
- package/dist/planMdx/remarkCodeMeta.d.ts +16 -0
- package/dist/planMdx/remarkCodeMeta.js +25 -0
- package/dist/planMdx/remarkGfmTable.d.ts +5 -0
- package/dist/planMdx/remarkGfmTable.js +15 -0
- package/dist/planMdx/remarkGfmTaskList.d.ts +5 -0
- package/dist/planMdx/remarkGfmTaskList.js +15 -0
- package/dist/planMdx/remarkMermaid.d.ts +16 -0
- package/dist/planMdx/remarkMermaid.js +56 -0
- package/dist/planMdx/source.d.ts +11 -0
- package/dist/planMdx/source.js +131 -0
- package/dist/planMdx/titleEdit.d.ts +35 -0
- package/dist/planMdx/titleEdit.js +112 -0
- package/dist/planPage.css +2125 -0
- package/dist/planProgress.d.ts +17 -0
- package/dist/planProgress.js +78 -0
- package/dist/planReady.d.ts +8 -0
- package/dist/planReady.js +20 -0
- package/dist/planRefNavigation.d.ts +4 -0
- package/dist/planRefNavigation.js +8 -0
- package/dist/planRoutes.d.ts +12 -0
- package/dist/planRoutes.js +141 -0
- package/dist/planSearch.d.ts +166 -0
- package/dist/planSearch.js +462 -0
- package/dist/planSession.d.ts +130 -0
- package/dist/planSession.js +1182 -0
- package/dist/planSnapshots.d.ts +34 -0
- package/dist/planSnapshots.js +113 -0
- package/dist/planStatus.d.ts +26 -0
- package/dist/planStatus.js +46 -0
- package/dist/planStepHeading.d.ts +16 -0
- package/dist/planStepHeading.js +34 -0
- package/dist/planTarget.d.ts +16 -0
- package/dist/planTarget.js +92 -0
- package/dist/planToc.d.ts +24 -0
- package/dist/planToc.js +258 -0
- package/dist/planVersionMenu.d.ts +12 -0
- package/dist/planVersionMenu.js +23 -0
- package/dist/processRecord.d.ts +108 -0
- package/dist/processRecord.js +68 -0
- package/dist/processesPanel.d.ts +7 -0
- package/dist/processesPanel.js +636 -0
- package/dist/pwaIconFile.d.ts +2 -0
- package/dist/pwaIconFile.js +42 -0
- package/dist/pwaIcons.d.ts +28 -0
- package/dist/pwaIcons.js +46 -0
- package/dist/registerServiceWorker.d.ts +25 -0
- package/dist/registerServiceWorker.js +26 -0
- package/dist/registryClient.d.ts +94 -0
- package/dist/registryClient.js +490 -0
- package/dist/registryConstants.d.ts +9 -0
- package/dist/registryConstants.js +9 -0
- package/dist/registryLock.d.ts +19 -0
- package/dist/registryLock.js +48 -0
- package/dist/registryPage.d.ts +2 -0
- package/dist/registryPage.js +284 -0
- package/dist/registryService.d.ts +21 -0
- package/dist/registryService.js +562 -0
- package/dist/registryStore.d.ts +63 -0
- package/dist/registryStore.js +398 -0
- package/dist/releaseNotes.d.ts +35 -0
- package/dist/releaseNotes.js +62 -0
- package/dist/render.d.ts +50 -0
- package/dist/render.js +1506 -0
- package/dist/requestGuard.d.ts +21 -0
- package/dist/requestGuard.js +42 -0
- package/dist/reviewRound.d.ts +12 -0
- package/dist/reviewRound.js +19 -0
- package/dist/runFollow.d.ts +28 -0
- package/dist/runFollow.js +33 -0
- package/dist/searchMatch.d.ts +35 -0
- package/dist/searchMatch.js +270 -0
- package/dist/server.d.ts +24 -0
- package/dist/server.js +114 -0
- package/dist/serviceLog.d.ts +56 -0
- package/dist/serviceLog.js +481 -0
- package/dist/shellCache.d.ts +69 -0
- package/dist/shellCache.js +289 -0
- package/dist/shellWorker.js +322 -0
- package/dist/shellWorkerResponse.d.ts +4 -0
- package/dist/shellWorkerResponse.js +15 -0
- package/dist/startServer.d.ts +2 -0
- package/dist/startServer.js +2 -0
- package/dist/store/meta.d.ts +53 -0
- package/dist/store/meta.js +140 -0
- package/dist/store/migrate.d.ts +3 -0
- package/dist/store/migrate.js +408 -0
- package/dist/store/rows.d.ts +4 -0
- package/dist/store/rows.js +100 -0
- package/dist/store/schema.d.ts +5 -0
- package/dist/store/schema.js +5 -0
- package/dist/store/sqlite.d.ts +19 -0
- package/dist/store/sqlite.js +57 -0
- package/dist/store/tables.d.ts +1892 -0
- package/dist/store/tables.js +136 -0
- package/dist/theme.d.ts +174 -0
- package/dist/theme.js +444 -0
- package/dist/themeBootstrap.d.ts +2 -0
- package/dist/themeBootstrap.js +11 -0
- package/dist/tui/DashboardApp.d.ts +19 -0
- package/dist/tui/DashboardApp.js +237 -0
- package/dist/tui/PaletteProvider.d.ts +12 -0
- package/dist/tui/PaletteProvider.js +36 -0
- package/dist/tui/PlanActions.d.ts +7 -0
- package/dist/tui/PlanActions.js +9 -0
- package/dist/tui/PlanCard.d.ts +13 -0
- package/dist/tui/PlanCard.js +31 -0
- package/dist/tui/PlanRow.d.ts +13 -0
- package/dist/tui/PlanRow.js +31 -0
- package/dist/tui/PlanTable.d.ts +13 -0
- package/dist/tui/PlanTable.js +24 -0
- package/dist/tui/ProcessCard.d.ts +9 -0
- package/dist/tui/ProcessCard.js +24 -0
- package/dist/tui/ProcessList.d.ts +9 -0
- package/dist/tui/ProcessList.js +12 -0
- package/dist/tui/SegmentButton.d.ts +7 -0
- package/dist/tui/SegmentButton.js +18 -0
- package/dist/tui/StatCard.d.ts +6 -0
- package/dist/tui/StatCard.js +17 -0
- package/dist/tui/dashboardView.d.ts +45 -0
- package/dist/tui/dashboardView.js +192 -0
- package/dist/tui/openExternal.d.ts +2 -0
- package/dist/tui/openExternal.js +5 -0
- package/dist/tui/palette.d.ts +27 -0
- package/dist/tui/palette.js +66 -0
- package/dist/tui/planColumns.d.ts +38 -0
- package/dist/tui/planColumns.js +14 -0
- package/dist/tui/readDashboard.d.ts +3 -0
- package/dist/tui/readDashboard.js +15 -0
- package/dist/tui/readProcesses.d.ts +3 -0
- package/dist/tui/readProcesses.js +23 -0
- package/dist/tui/registryView.d.ts +11 -0
- package/dist/tui/registryView.js +56 -0
- package/dist/tui/runTui.d.ts +21 -0
- package/dist/tui/runTui.js +86 -0
- package/dist/tui/systemTheme.d.ts +28 -0
- package/dist/tui/systemTheme.js +141 -0
- package/dist/types.d.ts +191 -0
- package/dist/types.js +0 -0
- package/dist/webManifest.d.ts +39 -0
- package/dist/webManifest.js +48 -0
- package/dist/workflow.d.ts +8 -0
- package/dist/workflow.js +42 -0
- package/dist/workflowLayoutShared.d.ts +25 -0
- package/dist/workflowLayoutShared.js +33 -0
- package/dist/workflowSource.d.ts +31 -0
- package/dist/workflowSource.js +90 -0
- package/docs/changelogs/changelog-2026-10-27.md +203 -0
- package/docs/changelogs/changelog-2026-10-28.md +181 -0
- package/docs/changelogs/changelog-2026-10-29.md +349 -0
- package/docs/changelogs/changelog-2026-10-30.md +303 -0
- package/docs/changelogs/changelog-2026-10-31.md +129 -0
- package/docs/changelogs/changelog-2026-11-01.md +155 -0
- package/docs/changelogs/changelog-2026-11-02.md +195 -0
- package/docs/changelogs/changelog-2026-11-03.md +209 -0
- package/docs/changelogs/changelog-2026-11-04.md +243 -0
- package/docs/changelogs/changelog-2026-11-05.md +172 -0
- package/docs/changelogs/changelog-2026-11-06.md +123 -0
- package/docs/changelogs/changelog-2026-11-07.md +138 -0
- package/docs/changelogs/changelog-2026-11-08.md +47 -0
- package/docs/changelogs/changelog-2026-11-10.md +219 -0
- package/docs/changelogs/changelog-2026-11-11.md +205 -0
- package/docs/changelogs/changelog-2026-11-12.md +44 -0
- package/docs/changelogs/changelog-2026-11-13.md +48 -0
- package/docs/changelogs/changelog-2026-11-14.md +116 -0
- package/docs/changelogs/changelog-2026-11-15.md +31 -0
- package/docs/changelogs/changelog-2026-11-16.md +41 -0
- package/docs/changelogs/changelog-2026-11-17.md +25 -0
- package/docs/changelogs/changelog-2026-11-18.md +71 -0
- package/docs/changelogs/changelog-2026-11-19.md +19 -0
- package/examples/cloud-showcase.plan.md +181 -0
- package/examples/component-showcase.plan.md +378 -0
- package/examples/component-tour.plan.md +168 -0
- package/examples/data-table.plan.md +917 -0
- package/examples/execution-graph.json +15 -5
- package/examples/form-controls.plan.md +51 -0
- package/examples/live-plan.config.json +5 -0
- package/examples/rate-limit.plan.md +110 -78
- package/examples/submission-delivery-runbook.md +122 -0
- package/examples/submission-delivery.plan.md +107 -0
- package/examples/tables.plan.md +61 -0
- package/package.json +86 -15
- package/skills/live-plan/SKILL.md +381 -0
- package/skills/live-plan/primitives.md +738 -0
- package/skills/living-plan/SKILL.md +0 -71
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type DashboardDocumentInput = {
|
|
2
|
+
lede?: string;
|
|
3
|
+
/** Extra titlebar controls. The cloud host passes the user menu. Local passes Running plans. */
|
|
4
|
+
toolbarHtml?: string;
|
|
5
|
+
/** Logo target. Local opens running plans. The cloud host opens this dashboard. */
|
|
6
|
+
logoHref?: string;
|
|
7
|
+
apiPath?: string;
|
|
8
|
+
host?: 'local' | 'cloud';
|
|
9
|
+
headExtra: string;
|
|
10
|
+
footScript: string;
|
|
11
|
+
};
|
|
12
|
+
/** Control dashboard document. Loopback and the cloud host share this layout. */
|
|
13
|
+
export declare function renderDashboardDocument(options: DashboardDocumentInput): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { dashboardClientScript } from './dashboardClientScript';
|
|
2
|
+
import { dashboardDocumentCss, dashboardMainHtml } from './dashboardParts';
|
|
3
|
+
import { renderHostToolbar } from './hostToolbar';
|
|
4
|
+
const defaultLede = 'Running plans and plans that have already executed. Summaries follow the local day, week, and month. Files modified is the largest git change set seen during the run. Each plan file is kept in the registry\'s plans folder.';
|
|
5
|
+
const defaultToolbar = '<a class="titlebar-action" href="/">Running plans</a>';
|
|
6
|
+
/** Control dashboard document. Loopback and the cloud host share this layout. */
|
|
7
|
+
export function renderDashboardDocument(options) {
|
|
8
|
+
const input = {
|
|
9
|
+
lede: options.lede ?? defaultLede,
|
|
10
|
+
toolbarHtml: options.toolbarHtml ?? defaultToolbar,
|
|
11
|
+
logoHref: options.logoHref ?? '/',
|
|
12
|
+
apiPath: options.apiPath ?? '/api/dashboard',
|
|
13
|
+
headExtra: options.headExtra,
|
|
14
|
+
footScript: options.footScript,
|
|
15
|
+
};
|
|
16
|
+
const hostAttr = options.host === 'cloud' ? ' data-plan-host="cloud"' : '';
|
|
17
|
+
return `<!doctype html>
|
|
18
|
+
<html lang="en"${hostAttr}>
|
|
19
|
+
<head>
|
|
20
|
+
<meta charset="utf-8" />
|
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
22
|
+
${input.headExtra}
|
|
23
|
+
<title>Plan dashboard · Living Plan</title>
|
|
24
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
25
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
26
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
|
27
|
+
<style>
|
|
28
|
+
${dashboardDocumentCss()}
|
|
29
|
+
</style>
|
|
30
|
+
</head>
|
|
31
|
+
<body>
|
|
32
|
+
${renderHostToolbar({ title: 'Dashboard', logoHref: input.logoHref, endHtml: input.toolbarHtml, host: options.host ?? 'local' })}
|
|
33
|
+
${dashboardMainHtml(input.lede)}
|
|
34
|
+
<script>
|
|
35
|
+
${dashboardClientScript(input.apiPath)}
|
|
36
|
+
</script>
|
|
37
|
+
${input.footScript}
|
|
38
|
+
</body>
|
|
39
|
+
</html>`;
|
|
40
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type DashboardSummary, type PlanActivity } from './dashboard';
|
|
2
|
+
export type DashboardFilter = 'all' | PlanActivity;
|
|
3
|
+
export declare const DASHBOARD_FILTERS: Array<{
|
|
4
|
+
id: DashboardFilter;
|
|
5
|
+
label: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function activityLabel(activity: PlanActivity): string;
|
|
8
|
+
/** The row's pill: Active while an agent is connected, Idle while the plan is open without one. */
|
|
9
|
+
export declare function statusLabel(plan: {
|
|
10
|
+
status: string;
|
|
11
|
+
agentConnected?: boolean | null;
|
|
12
|
+
}): string;
|
|
13
|
+
/** The line under an open plan's pill. Empty for a finished run. */
|
|
14
|
+
export declare function agentLine(plan: {
|
|
15
|
+
status: string;
|
|
16
|
+
agentConnected?: boolean | null;
|
|
17
|
+
agentSeenAt?: number | null;
|
|
18
|
+
}, now?: number): string;
|
|
19
|
+
export declare function completionLabel(state: string): string;
|
|
20
|
+
export declare function formatWhen(ms: number | null | undefined): string;
|
|
21
|
+
export declare function formatDuration(ms: number): string;
|
|
22
|
+
export declare function formatRange(summary: Pick<DashboardSummary, 'from' | 'to'>): string;
|
|
23
|
+
/**
|
|
24
|
+
* A period's window, with the day written once when it starts and ends on the same day:
|
|
25
|
+
* "Nov 15, 12:00 AM – 9:24 PM", or "Nov 10 – Nov 15, 9:24 PM" across days.
|
|
26
|
+
* Self-contained: the local dashboard script inlines it with `toString()`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function rangeText(from: number | null | undefined, to: number | null | undefined): string;
|
|
29
|
+
/** http(s) links only. Anything else is not offered as Open. */
|
|
30
|
+
export declare function safeHttpUrl(value: string | null | undefined): string;
|
|
31
|
+
export declare function visiblePlans<T extends {
|
|
32
|
+
status: string;
|
|
33
|
+
agentConnected?: boolean | null;
|
|
34
|
+
}>(plans: T[], filter: DashboardFilter): T[];
|
|
35
|
+
/**
|
|
36
|
+
* The empty table line for one period and status filter, such as "No idle plans this week."
|
|
37
|
+
* Self-contained: the local dashboard script inlines it with `toString()`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function emptyPlansText(filter: string, period: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* The status line beside the period tabs once plans have loaded: the period and its window,
|
|
42
|
+
* such as "Today · Nov 15, 12:00 AM – 9:24 PM". Loading, errors, and offline replace it.
|
|
43
|
+
*/
|
|
44
|
+
export declare function dashboardStatusLine(summary: Pick<DashboardSummary, 'label' | 'from' | 'to'>): string;
|
|
45
|
+
/** The count beside the table caption: "5", or "2 of 5" while a status filter hides some. */
|
|
46
|
+
export declare function plansCountText(shown: number, total: number, filter: DashboardFilter): string;
|
|
47
|
+
/**
|
|
48
|
+
* The line under the plan count: how many of the period's plans started inside it.
|
|
49
|
+
* Self-contained: the local dashboard script inlines it with `toString()`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function startedText(summary: {
|
|
52
|
+
plans?: number;
|
|
53
|
+
started?: number;
|
|
54
|
+
period?: string;
|
|
55
|
+
}): string;
|
|
56
|
+
export type StatusSegment = {
|
|
57
|
+
id: PlanActivity;
|
|
58
|
+
label: string;
|
|
59
|
+
count: number;
|
|
60
|
+
share: number;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The status bar's parts in drawing order, open plans first, then finished runs. `share` is the
|
|
64
|
+
* whole-number percent of the period's plans. Self-contained: the local dashboard script inlines it.
|
|
65
|
+
*/
|
|
66
|
+
export declare function statusSegments(summary: {
|
|
67
|
+
active?: number;
|
|
68
|
+
idle?: number;
|
|
69
|
+
running?: number;
|
|
70
|
+
executed?: number;
|
|
71
|
+
interrupted?: number;
|
|
72
|
+
}): StatusSegment[];
|
|
73
|
+
/** The review verdict a finished row reads. Empty when there was none. Self-contained. */
|
|
74
|
+
export declare function outcomeLabel(outcome: string | null | undefined): string;
|
|
75
|
+
/**
|
|
76
|
+
* Where a plan lives: the name of its folder, and the plan file relative to that folder (the whole
|
|
77
|
+
* path when the file is elsewhere). A hosted plan has no file, so both are empty. Self-contained.
|
|
78
|
+
*/
|
|
79
|
+
export declare function planPlace(plan: {
|
|
80
|
+
directory?: string | null;
|
|
81
|
+
planPath?: string | null;
|
|
82
|
+
}): {
|
|
83
|
+
folder: string;
|
|
84
|
+
file: string;
|
|
85
|
+
};
|
|
86
|
+
/** "1/3 phases · 3/4 answers", leaving out a part the plan does not have. Self-contained. */
|
|
87
|
+
export declare function progressDetail(plan: {
|
|
88
|
+
phaseDone?: number;
|
|
89
|
+
phaseTotal?: number;
|
|
90
|
+
interactionDone?: number;
|
|
91
|
+
interactionTotal?: number;
|
|
92
|
+
}): string;
|
|
93
|
+
/** "1 question waiting", "3 questions waiting". Self-contained. */
|
|
94
|
+
export declare function questionsText(count: number): string;
|
|
95
|
+
/** How long a plan has been open, or how long its run took. `duration` is already formatted. Self-contained. */
|
|
96
|
+
export declare function durationPhrase(status: string, duration: string): string;
|
|
97
|
+
/** "1 file changed", "6 files changed". Self-contained. */
|
|
98
|
+
export declare function filesText(count: number): string;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { planActivity } from './dashboard';
|
|
2
|
+
import { agentPresenceText } from './agentPresence';
|
|
3
|
+
export const DASHBOARD_FILTERS = [
|
|
4
|
+
{ id: 'all', label: 'All' },
|
|
5
|
+
{ id: 'active', label: 'Active' },
|
|
6
|
+
{ id: 'idle', label: 'Idle' },
|
|
7
|
+
{ id: 'executed', label: 'Executed' },
|
|
8
|
+
{ id: 'interrupted', label: 'Interrupted' },
|
|
9
|
+
];
|
|
10
|
+
const ACTIVITY_LABEL = {
|
|
11
|
+
active: 'Active',
|
|
12
|
+
idle: 'Idle',
|
|
13
|
+
executed: 'Executed',
|
|
14
|
+
interrupted: 'Interrupted',
|
|
15
|
+
};
|
|
16
|
+
/** Completion of the plan's work. `idle` reads "Not started" so it is not confused with an Idle row. */
|
|
17
|
+
const COMPLETION_LABEL = {
|
|
18
|
+
idle: 'Not started',
|
|
19
|
+
in_progress: 'In progress',
|
|
20
|
+
partial: 'Partial',
|
|
21
|
+
complete: 'Complete',
|
|
22
|
+
};
|
|
23
|
+
export function activityLabel(activity) {
|
|
24
|
+
return ACTIVITY_LABEL[activity];
|
|
25
|
+
}
|
|
26
|
+
/** The row's pill: Active while an agent is connected, Idle while the plan is open without one. */
|
|
27
|
+
export function statusLabel(plan) {
|
|
28
|
+
return ACTIVITY_LABEL[planActivity(plan)];
|
|
29
|
+
}
|
|
30
|
+
/** The line under an open plan's pill. Empty for a finished run. */
|
|
31
|
+
export function agentLine(plan, now = Date.now()) {
|
|
32
|
+
if (plan.status !== 'running')
|
|
33
|
+
return '';
|
|
34
|
+
return agentPresenceText({ connected: Boolean(plan.agentConnected), seenAt: plan.agentSeenAt ?? null }, now);
|
|
35
|
+
}
|
|
36
|
+
export function completionLabel(state) {
|
|
37
|
+
if (state === 'idle' || state === 'in_progress' || state === 'partial' || state === 'complete') {
|
|
38
|
+
return COMPLETION_LABEL[state];
|
|
39
|
+
}
|
|
40
|
+
return COMPLETION_LABEL.idle;
|
|
41
|
+
}
|
|
42
|
+
export function formatWhen(ms) {
|
|
43
|
+
if (!ms)
|
|
44
|
+
return '';
|
|
45
|
+
return new Intl.DateTimeFormat(undefined, {
|
|
46
|
+
month: 'short',
|
|
47
|
+
day: 'numeric',
|
|
48
|
+
hour: 'numeric',
|
|
49
|
+
minute: '2-digit',
|
|
50
|
+
}).format(new Date(ms));
|
|
51
|
+
}
|
|
52
|
+
export function formatDuration(ms) {
|
|
53
|
+
const seconds = Math.max(0, Math.round(Number(ms) / 1000));
|
|
54
|
+
if (seconds < 60)
|
|
55
|
+
return `${seconds}s`;
|
|
56
|
+
const minutes = Math.floor(seconds / 60);
|
|
57
|
+
if (minutes < 60)
|
|
58
|
+
return `${minutes}m`;
|
|
59
|
+
const hours = Math.floor(minutes / 60);
|
|
60
|
+
if (hours < 48)
|
|
61
|
+
return `${hours}h ${minutes % 60}m`;
|
|
62
|
+
return `${Math.floor(hours / 24)}d ${hours % 24}h`;
|
|
63
|
+
}
|
|
64
|
+
export function formatRange(summary) {
|
|
65
|
+
return rangeText(summary.from, summary.to);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A period's window, with the day written once when it starts and ends on the same day:
|
|
69
|
+
* "Nov 15, 12:00 AM – 9:24 PM", or "Nov 10 – Nov 15, 9:24 PM" across days.
|
|
70
|
+
* Self-contained: the local dashboard script inlines it with `toString()`.
|
|
71
|
+
*/
|
|
72
|
+
export function rangeText(from, to) {
|
|
73
|
+
if (!from && !to)
|
|
74
|
+
return '';
|
|
75
|
+
const day = new Intl.DateTimeFormat(undefined, { month: 'short', day: 'numeric' });
|
|
76
|
+
const time = new Intl.DateTimeFormat(undefined, { hour: 'numeric', minute: '2-digit' });
|
|
77
|
+
const start = new Date(Number(from) || Number(to));
|
|
78
|
+
const end = new Date(Number(to) || Number(from));
|
|
79
|
+
if (start.toDateString() === end.toDateString())
|
|
80
|
+
return `${day.format(start)}, ${time.format(start)} – ${time.format(end)}`;
|
|
81
|
+
return `${day.format(start)} – ${day.format(end)}, ${time.format(end)}`;
|
|
82
|
+
}
|
|
83
|
+
/** http(s) links only. Anything else is not offered as Open. */
|
|
84
|
+
export function safeHttpUrl(value) {
|
|
85
|
+
if (!value)
|
|
86
|
+
return '';
|
|
87
|
+
try {
|
|
88
|
+
const url = new URL(value);
|
|
89
|
+
if (url.protocol !== 'http:' && url.protocol !== 'https:')
|
|
90
|
+
return '';
|
|
91
|
+
return url.href;
|
|
92
|
+
}
|
|
93
|
+
catch {
|
|
94
|
+
return '';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export function visiblePlans(plans, filter) {
|
|
98
|
+
if (filter === 'all')
|
|
99
|
+
return plans;
|
|
100
|
+
return plans.filter((plan) => planActivity(plan) === filter);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The empty table line for one period and status filter, such as "No idle plans this week."
|
|
104
|
+
* Self-contained: the local dashboard script inlines it with `toString()`.
|
|
105
|
+
*/
|
|
106
|
+
export function emptyPlansText(filter, period) {
|
|
107
|
+
const when = period === 'week' ? 'this week' : period === 'month' ? 'this month' : 'today';
|
|
108
|
+
const kind = filter === 'active' || filter === 'idle' || filter === 'executed' || filter === 'interrupted' ? `${filter} ` : '';
|
|
109
|
+
return `No ${kind}plans ${when}.`;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The status line beside the period tabs once plans have loaded: the period and its window,
|
|
113
|
+
* such as "Today · Nov 15, 12:00 AM – 9:24 PM". Loading, errors, and offline replace it.
|
|
114
|
+
*/
|
|
115
|
+
export function dashboardStatusLine(summary) {
|
|
116
|
+
const range = summary.from ? rangeText(summary.from, summary.to) : '';
|
|
117
|
+
const label = summary.label || 'Period';
|
|
118
|
+
return range ? `${label} · ${range}` : label;
|
|
119
|
+
}
|
|
120
|
+
/** The count beside the table caption: "5", or "2 of 5" while a status filter hides some. */
|
|
121
|
+
export function plansCountText(shown, total, filter) {
|
|
122
|
+
return filter === 'all' ? String(total) : `${shown} of ${total}`;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The line under the plan count: how many of the period's plans started inside it.
|
|
126
|
+
* Self-contained: the local dashboard script inlines it with `toString()`.
|
|
127
|
+
*/
|
|
128
|
+
export function startedText(summary) {
|
|
129
|
+
const when = summary.period === 'week' ? 'this week' : summary.period === 'month' ? 'this month' : 'today';
|
|
130
|
+
if (!summary.plans)
|
|
131
|
+
return `No plans ${when}`;
|
|
132
|
+
return `${Number(summary.started) || 0} started ${when}`;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The status bar's parts in drawing order, open plans first, then finished runs. `share` is the
|
|
136
|
+
* whole-number percent of the period's plans. Self-contained: the local dashboard script inlines it.
|
|
137
|
+
*/
|
|
138
|
+
export function statusSegments(summary) {
|
|
139
|
+
const active = Number(summary.active) || 0;
|
|
140
|
+
const idle = summary.idle == null ? Math.max(0, (Number(summary.running) || 0) - active) : Number(summary.idle) || 0;
|
|
141
|
+
const parts = [
|
|
142
|
+
['active', 'Active', active],
|
|
143
|
+
['idle', 'Idle', idle],
|
|
144
|
+
['executed', 'Executed', Number(summary.executed) || 0],
|
|
145
|
+
['interrupted', 'Interrupted', Number(summary.interrupted) || 0],
|
|
146
|
+
];
|
|
147
|
+
const total = parts.reduce((sum, part) => sum + part[2], 0);
|
|
148
|
+
return parts.map(([id, label, count]) => ({ id, label, count, share: total ? Math.round((count / total) * 100) : 0 }));
|
|
149
|
+
}
|
|
150
|
+
/** The review verdict a finished row reads. Empty when there was none. Self-contained. */
|
|
151
|
+
export function outcomeLabel(outcome) {
|
|
152
|
+
if (outcome === 'approve')
|
|
153
|
+
return 'Approved';
|
|
154
|
+
if (outcome === 'deny')
|
|
155
|
+
return 'Denied';
|
|
156
|
+
if (outcome === 'iterate')
|
|
157
|
+
return 'Iterate requested';
|
|
158
|
+
return '';
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Where a plan lives: the name of its folder, and the plan file relative to that folder (the whole
|
|
162
|
+
* path when the file is elsewhere). A hosted plan has no file, so both are empty. Self-contained.
|
|
163
|
+
*/
|
|
164
|
+
export function planPlace(plan) {
|
|
165
|
+
const path = String(plan.planPath || '');
|
|
166
|
+
if (!path)
|
|
167
|
+
return { folder: '', file: '' };
|
|
168
|
+
const directory = String(plan.directory || '').replace(/[\\/]+$/, '');
|
|
169
|
+
const folder = directory.slice(Math.max(directory.lastIndexOf('/'), directory.lastIndexOf('\\')) + 1);
|
|
170
|
+
const inside = directory && (path.startsWith(directory + '/') || path.startsWith(directory + '\\'));
|
|
171
|
+
return { folder, file: inside ? path.slice(directory.length + 1) : path };
|
|
172
|
+
}
|
|
173
|
+
/** "1/3 phases · 3/4 answers", leaving out a part the plan does not have. Self-contained. */
|
|
174
|
+
export function progressDetail(plan) {
|
|
175
|
+
const parts = [];
|
|
176
|
+
const phases = Number(plan.phaseTotal) || 0;
|
|
177
|
+
const asked = Number(plan.interactionTotal) || 0;
|
|
178
|
+
if (phases > 0)
|
|
179
|
+
parts.push(`${Number(plan.phaseDone) || 0}/${phases} phases`);
|
|
180
|
+
if (asked > 0)
|
|
181
|
+
parts.push(`${Number(plan.interactionDone) || 0}/${asked} answers`);
|
|
182
|
+
return parts.length ? parts.join(' · ') : 'No phases or questions';
|
|
183
|
+
}
|
|
184
|
+
/** "1 question waiting", "3 questions waiting". Self-contained. */
|
|
185
|
+
export function questionsText(count) {
|
|
186
|
+
return count === 1 ? '1 question waiting' : `${count} questions waiting`;
|
|
187
|
+
}
|
|
188
|
+
/** How long a plan has been open, or how long its run took. `duration` is already formatted. Self-contained. */
|
|
189
|
+
export function durationPhrase(status, duration) {
|
|
190
|
+
if (status === 'running')
|
|
191
|
+
return `Open for ${duration}`;
|
|
192
|
+
if (status === 'interrupted')
|
|
193
|
+
return `Stopped after ${duration}`;
|
|
194
|
+
return `Ran for ${duration}`;
|
|
195
|
+
}
|
|
196
|
+
/** "1 file changed", "6 files changed". Self-contained. */
|
|
197
|
+
export function filesText(count) {
|
|
198
|
+
return count === 1 ? '1 file changed' : `${count} files changed`;
|
|
199
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Loading states for both dashboards: skeleton summary cards, table rows, and search results while
|
|
3
|
+
* nothing has arrived yet, a dimmed view while newer rows are on the way, and a small spinner.
|
|
4
|
+
* The loopback page renders these strings. The hosted page renders the same classes in React.
|
|
5
|
+
*/
|
|
6
|
+
/** Rows the plan table shows before the first answer. */
|
|
7
|
+
export declare const ROW_SKELETONS = 4;
|
|
8
|
+
/** Bar widths per skeleton row, so the placeholder does not read as one repeated block. */
|
|
9
|
+
export declare const ROW_SKELETON_WIDTHS: Array<{
|
|
10
|
+
title: string;
|
|
11
|
+
sub: string;
|
|
12
|
+
path: string;
|
|
13
|
+
when: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function dashboardLoadingCss(): string;
|
|
16
|
+
/** Plan table placeholder rows. */
|
|
17
|
+
export declare function rowSkeletonHtml(): string;
|
|
18
|
+
/** Search result placeholders: two plan cards with a few hit lines each. */
|
|
19
|
+
export declare function searchSkeletonHtml(): string;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Loading states for both dashboards: skeleton summary cards, table rows, and search results while
|
|
3
|
+
* nothing has arrived yet, a dimmed view while newer rows are on the way, and a small spinner.
|
|
4
|
+
* The loopback page renders these strings. The hosted page renders the same classes in React.
|
|
5
|
+
*/
|
|
6
|
+
/** Rows the plan table shows before the first answer. */
|
|
7
|
+
export const ROW_SKELETONS = 4;
|
|
8
|
+
/** Bar widths per skeleton row, so the placeholder does not read as one repeated block. */
|
|
9
|
+
export const ROW_SKELETON_WIDTHS = [
|
|
10
|
+
{ title: '180px', sub: '64px', path: '300px', when: '108px' },
|
|
11
|
+
{ title: '140px', sub: '52px', path: '260px', when: '116px' },
|
|
12
|
+
{ title: '210px', sub: '72px', path: '320px', when: '104px' },
|
|
13
|
+
{ title: '160px', sub: '58px', path: '240px', when: '112px' },
|
|
14
|
+
];
|
|
15
|
+
export function dashboardLoadingCss() {
|
|
16
|
+
return `
|
|
17
|
+
.dash-skeleton {
|
|
18
|
+
display: block;
|
|
19
|
+
height: 12px;
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
background: color-mix(in srgb, var(--ink) 8%, transparent);
|
|
23
|
+
}
|
|
24
|
+
.dash-skeleton.pill { border-radius: 999px; }
|
|
25
|
+
.row-skeleton td { vertical-align: middle; }
|
|
26
|
+
.row-skeleton .dash-skeleton + .dash-skeleton { margin-top: 8px; }
|
|
27
|
+
.row-skeleton .skel-title { height: 14px; }
|
|
28
|
+
.row-skeleton .skel-sub { height: 10px; }
|
|
29
|
+
.row-skeleton .skel-pill { height: 22px; width: 64px; border-radius: 999px; }
|
|
30
|
+
.row-skeleton .skel-meter { height: 6px; width: 7.5rem; border-radius: 999px; }
|
|
31
|
+
.search-skeleton .dash-skeleton + .dash-skeleton { margin-top: 10px; }
|
|
32
|
+
.search-skeleton .skel-heading { height: 15px; width: 44%; }
|
|
33
|
+
.search-skeleton .skel-label { height: 18px; width: 48px; border-radius: 999px; }
|
|
34
|
+
.search-skeleton .skel-where { height: 10px; width: 30%; }
|
|
35
|
+
.search-skeleton .skel-line { height: 12px; width: 86%; }
|
|
36
|
+
/* The views that dim while a new period loads. The transition sits on the view, not on
|
|
37
|
+
.dash-pending, so the new numbers brighten in place when the class comes off. */
|
|
38
|
+
.dash-overview, .table-wrap { transition: opacity 150ms ease; }
|
|
39
|
+
.dash-pending { opacity: 0.55; }
|
|
40
|
+
.dash-spinner {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
flex: none;
|
|
43
|
+
width: 14px;
|
|
44
|
+
height: 14px;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
border: 2px solid color-mix(in srgb, var(--muted) 30%, transparent);
|
|
47
|
+
border-top-color: var(--accent);
|
|
48
|
+
vertical-align: -2px;
|
|
49
|
+
}
|
|
50
|
+
.dash-status-row { display: flex; align-items: center; gap: var(--space-xs); }
|
|
51
|
+
.dash-status-row > .status { margin: 0; }
|
|
52
|
+
.dash-retry { margin-left: var(--space-xs); }
|
|
53
|
+
@keyframes dash-spin { to { transform: rotate(360deg); } }
|
|
54
|
+
@keyframes dash-shimmer {
|
|
55
|
+
from { background-position: 100% 0; }
|
|
56
|
+
to { background-position: -100% 0; }
|
|
57
|
+
}
|
|
58
|
+
.dash-spinner, .dash-spin svg, svg.dash-spin { animation: dash-spin 0.8s linear infinite; }
|
|
59
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
60
|
+
.dash-skeleton {
|
|
61
|
+
background: linear-gradient(
|
|
62
|
+
90deg,
|
|
63
|
+
color-mix(in srgb, var(--ink) 8%, transparent) 30%,
|
|
64
|
+
color-mix(in srgb, var(--ink) 4%, transparent) 50%,
|
|
65
|
+
color-mix(in srgb, var(--ink) 8%, transparent) 70%
|
|
66
|
+
);
|
|
67
|
+
background-size: 200% 100%;
|
|
68
|
+
animation: dash-shimmer 1.4s ease-in-out infinite;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@media (prefers-reduced-motion: reduce) {
|
|
72
|
+
.dash-spinner, .dash-spin svg, svg.dash-spin { animation-duration: 1.6s; }
|
|
73
|
+
.dash-overview, .table-wrap, .dash-pending { transition: none; }
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
}
|
|
77
|
+
/** Plan table placeholder rows. */
|
|
78
|
+
export function rowSkeletonHtml() {
|
|
79
|
+
return ROW_SKELETON_WIDTHS.slice(0, ROW_SKELETONS)
|
|
80
|
+
.map((width) => `<tr class="row-skeleton" aria-hidden="true">` +
|
|
81
|
+
`<td class="plan-cell"><span class="dash-skeleton skel-title" style="width:${width.title}"></span><span class="dash-skeleton skel-sub" style="width:${width.sub}"></span><span class="dash-skeleton skel-sub" style="width:${width.path}"></span></td>` +
|
|
82
|
+
`<td><span class="dash-skeleton skel-pill"></span></td>` +
|
|
83
|
+
`<td><span class="dash-skeleton skel-meter"></span><span class="dash-skeleton skel-sub" style="width:96px"></span></td>` +
|
|
84
|
+
`<td class="plan-time-cell"><span class="dash-skeleton skel-sub" style="width:${width.when}"></span></td>` +
|
|
85
|
+
`<td class="plan-actions-cell"></td>` +
|
|
86
|
+
`</tr>`)
|
|
87
|
+
.join('');
|
|
88
|
+
}
|
|
89
|
+
/** Search result placeholders: two plan cards with a few hit lines each. */
|
|
90
|
+
export function searchSkeletonHtml() {
|
|
91
|
+
const hit = '<span class="dash-skeleton skel-where"></span><span class="dash-skeleton skel-line"></span>';
|
|
92
|
+
const card = (lines) => `<article class="dash-search-plan search-skeleton" aria-hidden="true"><span class="dash-skeleton skel-heading"></span><span class="dash-skeleton skel-label"></span>${hit.repeat(lines)}</article>`;
|
|
93
|
+
return card(2) + card(1);
|
|
94
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { PlanActivity } from './dashboard';
|
|
2
|
+
/**
|
|
3
|
+
* One glyph per row status, from the plan page's status set (DESIGN.md D4): a progress ring while an
|
|
4
|
+
* agent works, an empty dashed ring while the plan waits, a check disc when it ran, and a ban when it
|
|
5
|
+
* stopped. The pill's label names it, so the state never rests on color alone.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ACTIVITY_GLYPH_SVG: Record<PlanActivity, string>;
|
|
8
|
+
/** Lucide `folder`, before the folder a plan is linked to. */
|
|
9
|
+
export declare const FOLDER_ICON_SVG: string;
|
|
10
|
+
/** Lucide `git-branch`, before the branch the plan's folder is on. */
|
|
11
|
+
export declare const BRANCH_ICON_SVG: string;
|
|
12
|
+
/** Which way a row's completion meter reads: finished, stopped short, or still going. */
|
|
13
|
+
export type ProgressTone = 'complete' | 'stopped' | 'open';
|
|
14
|
+
export declare function progressTone(plan: {
|
|
15
|
+
status: string;
|
|
16
|
+
completionState?: string | null;
|
|
17
|
+
}): ProgressTone;
|
|
18
|
+
/** Placeholder cards while the first numbers load, shaped like the three summary cards. */
|
|
19
|
+
export declare function overviewSkeletonHtml(): string;
|
|
20
|
+
/** Number of summary cards. */
|
|
21
|
+
export declare const OVERVIEW_CARDS = 3;
|
|
22
|
+
/**
|
|
23
|
+
* Status colors for the bar, its legend, the pills, and the meters. Light values are the design
|
|
24
|
+
* system's status tokens. Dark values are stepped so neighbors in the bar stay apart for color-blind
|
|
25
|
+
* readers (checked with the dataviz palette validator: adjacent CVD ΔE ≥ 9.6, all ≥ 3:1 on the
|
|
26
|
+
* dark surface). The pill tints are the change-tag pairs, which keep 4.5:1 text in both themes.
|
|
27
|
+
*/
|
|
28
|
+
export declare function dashboardOverviewCss(): string;
|