visual-living-plan 0.1.0 → 2.33.0
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 +159 -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 +1727 -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-C2KL2wxg.js +1 -0
- package/dist/client/assets/selector-CDsXW7SO.css +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/commentOrder.d.ts +19 -0
- package/dist/commentOrder.js +26 -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/mcp/endpoint.d.ts +20 -0
- package/dist/mcp/endpoint.js +61 -0
- package/dist/mcp/oauthServer.d.ts +33 -0
- package/dist/mcp/oauthServer.js +403 -0
- package/dist/mcp/oauthStore.d.ts +42 -0
- package/dist/mcp/oauthStore.js +138 -0
- package/dist/mcp/planTools.d.ts +27 -0
- package/dist/mcp/planTools.js +230 -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/planCheck.d.ts +22 -0
- package/dist/planCheck.js +30 -0
- package/dist/planEntries.d.ts +12 -0
- package/dist/planEntries.js +117 -0
- package/dist/planHost.d.ts +33 -0
- package/dist/planHost.js +290 -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 +138 -0
- package/dist/planSession.js +1209 -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 +23 -0
- package/dist/registryService.js +618 -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/docs/changelogs/changelog-2026-11-20.md +23 -0
- package/docs/changelogs/changelog-2026-12-02.md +22 -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 +90 -16
- package/skills/live-plan/SKILL.md +396 -0
- package/skills/live-plan/primitives.md +738 -0
- package/skills/living-plan/SKILL.md +0 -71
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { dashboardLoadingCss, rowSkeletonHtml } from './dashboardLoading';
|
|
2
|
+
import { dashboardOverviewCss, overviewSkeletonHtml } from './dashboardOverview';
|
|
3
|
+
import { dashboardSearchCss } from './dashboardSearchView';
|
|
4
|
+
import { hostToolbarCss } from './hostToolbar';
|
|
5
|
+
/** Dashboard document CSS, shared by the loopback page and the Start route. */
|
|
6
|
+
export function dashboardDocumentCss() {
|
|
7
|
+
return ` :root {
|
|
8
|
+
color-scheme: light;
|
|
9
|
+
--ink: #181e25;
|
|
10
|
+
--charcoal: #34393f;
|
|
11
|
+
--muted: #666666;
|
|
12
|
+
--canvas: #ffffff;
|
|
13
|
+
--surface: #f5f5f5;
|
|
14
|
+
--paper: var(--canvas);
|
|
15
|
+
--panel: var(--surface);
|
|
16
|
+
--hairline: #e9e9e9;
|
|
17
|
+
--hairline-strong: #d4d4d8;
|
|
18
|
+
--hairline-strong-hover: #a1a1aa;
|
|
19
|
+
--line: var(--hairline);
|
|
20
|
+
--accent: #0094fc;
|
|
21
|
+
--primary: #171717;
|
|
22
|
+
--primary-hover: #242424;
|
|
23
|
+
--on-primary: #ffffff;
|
|
24
|
+
--accent-soft: #dbeafe;
|
|
25
|
+
--good: #0a7a38;
|
|
26
|
+
--good-soft: #dcf5e2;
|
|
27
|
+
--warn: #9a3412;
|
|
28
|
+
--warn-soft: #ffedd5;
|
|
29
|
+
--danger: #c9372c;
|
|
30
|
+
--shadow: none;
|
|
31
|
+
--shadow-popover: 0 4px 6px rgba(0, 0, 0, 0.08);
|
|
32
|
+
--font-body: "DM Sans", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
33
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
34
|
+
--space-xxs: 4px;
|
|
35
|
+
--space-xs: 8px;
|
|
36
|
+
--space-sm: 12px;
|
|
37
|
+
--space-md: 16px;
|
|
38
|
+
--space-lg: 20px;
|
|
39
|
+
--space-xl: 24px;
|
|
40
|
+
--space-xxl: 32px;
|
|
41
|
+
--space-section: 64px;
|
|
42
|
+
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
43
|
+
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
|
|
44
|
+
}
|
|
45
|
+
@media (prefers-color-scheme: dark) {
|
|
46
|
+
:root {
|
|
47
|
+
color-scheme: dark;
|
|
48
|
+
--ink: #ededed;
|
|
49
|
+
--charcoal: #ededed;
|
|
50
|
+
--muted: #949494;
|
|
51
|
+
--canvas: #171717;
|
|
52
|
+
--surface: #1c1c1c;
|
|
53
|
+
--paper: var(--canvas);
|
|
54
|
+
--panel: var(--surface);
|
|
55
|
+
--hairline: #2c2c2c;
|
|
56
|
+
--hairline-strong: #4a4a4a;
|
|
57
|
+
--hairline-strong-hover: #666666;
|
|
58
|
+
--line: var(--hairline);
|
|
59
|
+
--accent: #0094fc;
|
|
60
|
+
--primary: #ffffff;
|
|
61
|
+
--primary-hover: #f5f5f5;
|
|
62
|
+
--on-primary: #171717;
|
|
63
|
+
--accent-soft: rgba(147, 197, 253, 0.14);
|
|
64
|
+
--good: #6edb8f;
|
|
65
|
+
--good-soft: rgba(134, 239, 172, 0.12);
|
|
66
|
+
--warn: #fdba74;
|
|
67
|
+
--warn-soft: rgba(253, 186, 116, 0.12);
|
|
68
|
+
--danger: #ffc9bd;
|
|
69
|
+
--shadow: none;
|
|
70
|
+
--shadow-popover: 0 4px 6px rgba(0, 0, 0, 0.08);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
html, body { overflow-x: clip; }
|
|
74
|
+
* { box-sizing: border-box; }
|
|
75
|
+
body {
|
|
76
|
+
margin: 0;
|
|
77
|
+
color: var(--charcoal);
|
|
78
|
+
font-family: var(--font-body);
|
|
79
|
+
background: var(--canvas);
|
|
80
|
+
}
|
|
81
|
+
main { margin: 0; padding: 24px 32px 64px; }
|
|
82
|
+
${hostToolbarCss}
|
|
83
|
+
${dashboardSearchCss()}
|
|
84
|
+
${dashboardLoadingCss()}
|
|
85
|
+
${dashboardOverviewCss()}
|
|
86
|
+
.dash-status-row { margin: 0 0 16px; }
|
|
87
|
+
.titlebar-action:disabled { cursor: progress; opacity: 0.75; }
|
|
88
|
+
.plan-btn-ghost { border-color: transparent; background: transparent; }
|
|
89
|
+
[hidden] { display: none !important; }
|
|
90
|
+
.tab-label:focus-visible {
|
|
91
|
+
outline: 2px solid var(--accent);
|
|
92
|
+
outline-offset: 2px;
|
|
93
|
+
}
|
|
94
|
+
.dash-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 24px; }
|
|
95
|
+
.dash-section:last-child { margin-bottom: 0; }
|
|
96
|
+
.section-bar {
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: space-between;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 12px;
|
|
101
|
+
flex-wrap: wrap;
|
|
102
|
+
}
|
|
103
|
+
.tabs {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 2px;
|
|
107
|
+
padding: 3px;
|
|
108
|
+
border: 1px solid var(--line);
|
|
109
|
+
border-radius: 999px;
|
|
110
|
+
background: var(--surface);
|
|
111
|
+
}
|
|
112
|
+
.tab-label,
|
|
113
|
+
.titlebar-action {
|
|
114
|
+
font: inherit;
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
line-height: 1.4;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
.tab-label {
|
|
121
|
+
border: 0;
|
|
122
|
+
background: transparent;
|
|
123
|
+
color: var(--ink);
|
|
124
|
+
border-radius: 999px;
|
|
125
|
+
padding: 8px 12px;
|
|
126
|
+
}
|
|
127
|
+
.tab-label[aria-pressed="true"] {
|
|
128
|
+
background: var(--primary);
|
|
129
|
+
color: var(--on-primary);
|
|
130
|
+
}
|
|
131
|
+
.status { color: var(--muted); margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
|
|
132
|
+
.table-wrap {
|
|
133
|
+
overflow: auto;
|
|
134
|
+
border: 1px solid var(--line);
|
|
135
|
+
border-radius: 16px;
|
|
136
|
+
background: var(--panel);
|
|
137
|
+
box-shadow: var(--shadow);
|
|
138
|
+
}
|
|
139
|
+
table { width: 100%; border-collapse: collapse; min-width: 640px; }
|
|
140
|
+
caption {
|
|
141
|
+
text-align: left;
|
|
142
|
+
padding: 16px 16px 0;
|
|
143
|
+
font-weight: 600;
|
|
144
|
+
color: var(--ink);
|
|
145
|
+
font-size: 20px;
|
|
146
|
+
line-height: 1.4;
|
|
147
|
+
}
|
|
148
|
+
th, td {
|
|
149
|
+
text-align: left;
|
|
150
|
+
padding: 12px 16px;
|
|
151
|
+
border-bottom: 1px solid var(--line);
|
|
152
|
+
vertical-align: top;
|
|
153
|
+
}
|
|
154
|
+
th {
|
|
155
|
+
font-size: 0.75rem;
|
|
156
|
+
color: var(--muted);
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
tr:last-child td { border-bottom: 0; }
|
|
160
|
+
.title { font-weight: 600; }
|
|
161
|
+
.title-link { color: var(--ink); text-decoration: none; text-underline-offset: 3px; }
|
|
162
|
+
.title-link:hover { text-decoration: underline; }
|
|
163
|
+
.title-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
|
|
164
|
+
.sub { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
|
|
165
|
+
.path {
|
|
166
|
+
font-family: var(--font-mono);
|
|
167
|
+
font-size: 0.75rem;
|
|
168
|
+
overflow-wrap: break-word;
|
|
169
|
+
}
|
|
170
|
+
.status-line { display: inline-flex; align-items: center; gap: 0.4rem; }
|
|
171
|
+
.status-line + .sub { margin-top: 6px; }
|
|
172
|
+
.agent-icon { display: inline-flex; color: var(--muted); }
|
|
173
|
+
.agent-icon svg { width: 15px; height: 15px; display: block; }
|
|
174
|
+
.agent-icon.on { color: #04b54b; }
|
|
175
|
+
.tab-label {
|
|
176
|
+
transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
|
|
177
|
+
}
|
|
178
|
+
.tab-label:active { transform: scale(0.97); }
|
|
179
|
+
@media (prefers-reduced-motion: reduce) {
|
|
180
|
+
.tab-label { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
|
|
181
|
+
.tab-label:active { transform: none; }
|
|
182
|
+
}
|
|
183
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
184
|
+
@keyframes enter {
|
|
185
|
+
from { opacity: 0; transform: translateY(8px); }
|
|
186
|
+
to { opacity: 1; transform: none; }
|
|
187
|
+
}
|
|
188
|
+
@keyframes row-in {
|
|
189
|
+
from { opacity: 0; }
|
|
190
|
+
to { opacity: 1; }
|
|
191
|
+
}
|
|
192
|
+
.dash-section {
|
|
193
|
+
animation: enter 200ms var(--ease-out) both;
|
|
194
|
+
}
|
|
195
|
+
.dash-section:nth-child(2) { animation-delay: 80ms; }
|
|
196
|
+
.dash-card.enter { animation: enter 200ms var(--ease-out) both; }
|
|
197
|
+
tbody tr.enter { animation: row-in 150ms var(--ease-out) both; }
|
|
198
|
+
}
|
|
199
|
+
.num { font-variant-numeric: tabular-nums; }
|
|
200
|
+
.plan-actions-cell { vertical-align: middle; }
|
|
201
|
+
.plan-actions {
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: flex-end;
|
|
205
|
+
gap: var(--space-xxs);
|
|
206
|
+
}
|
|
207
|
+
.plan-row-menu {
|
|
208
|
+
position: fixed;
|
|
209
|
+
z-index: 30;
|
|
210
|
+
}
|
|
211
|
+
.plan-row-menu .plan-menu-item:hover,
|
|
212
|
+
.plan-row-menu .plan-menu-item:focus-visible { background: var(--accent-soft); }
|
|
213
|
+
.plan-btn {
|
|
214
|
+
display: inline-flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
gap: var(--space-xs);
|
|
218
|
+
height: 36px;
|
|
219
|
+
border: 1px solid var(--hairline);
|
|
220
|
+
background: var(--canvas);
|
|
221
|
+
color: var(--ink);
|
|
222
|
+
border-radius: 999px;
|
|
223
|
+
padding: 0 var(--space-md);
|
|
224
|
+
font: inherit;
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
font-weight: 500;
|
|
227
|
+
line-height: 1;
|
|
228
|
+
cursor: pointer;
|
|
229
|
+
text-decoration: none;
|
|
230
|
+
transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
|
|
231
|
+
}
|
|
232
|
+
.plan-btn svg { width: 16px; height: 16px; flex: none; }
|
|
233
|
+
.plan-btn-ghost {
|
|
234
|
+
border-color: transparent;
|
|
235
|
+
background: transparent;
|
|
236
|
+
color: var(--ink);
|
|
237
|
+
}
|
|
238
|
+
.plan-btn-ghost:hover {
|
|
239
|
+
background: color-mix(in srgb, var(--ink) 6%, transparent);
|
|
240
|
+
border-color: transparent;
|
|
241
|
+
}
|
|
242
|
+
.plan-btn.plan-action { width: 36px; padding: 0; }
|
|
243
|
+
.plan-btn:focus-visible {
|
|
244
|
+
outline: 2px solid var(--accent);
|
|
245
|
+
outline-offset: 2px;
|
|
246
|
+
}
|
|
247
|
+
.plan-btn:active { transform: scale(0.97); }
|
|
248
|
+
@media (prefers-reduced-motion: reduce) {
|
|
249
|
+
.plan-btn { transition: background-color 150ms ease, border-color 150ms ease; }
|
|
250
|
+
.plan-btn:active { transform: none; }
|
|
251
|
+
}
|
|
252
|
+
.empty { color: var(--muted); }
|
|
253
|
+
.plan-btn-secondary { border-color: var(--hairline-strong); }
|
|
254
|
+
.plan-btn-secondary:hover:not(:disabled) { border-color: var(--hairline-strong-hover); }
|
|
255
|
+
.plan-btn-destructive { background: #dc2626; border-color: #dc2626; color: #ffffff; }
|
|
256
|
+
.plan-btn-destructive:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }
|
|
257
|
+
.plan-btn:disabled { opacity: 0.6; cursor: progress; }
|
|
258
|
+
dialog.plan-alert-content {
|
|
259
|
+
width: min(28rem, calc(100vw - 32px));
|
|
260
|
+
margin: auto;
|
|
261
|
+
padding: 24px;
|
|
262
|
+
border: 1px solid var(--line);
|
|
263
|
+
border-radius: 16px;
|
|
264
|
+
background: var(--canvas);
|
|
265
|
+
color: var(--ink);
|
|
266
|
+
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
|
|
267
|
+
}
|
|
268
|
+
dialog.plan-alert-content[open] { display: grid; gap: 16px; }
|
|
269
|
+
dialog.plan-alert-content::backdrop { background: rgba(0, 0, 0, 0.45); }
|
|
270
|
+
.plan-alert-header { display: grid; gap: 8px; }
|
|
271
|
+
.plan-alert-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
|
|
272
|
+
.plan-alert-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
|
|
273
|
+
.plan-alert-error { margin: 0; color: #dc2626; font-size: 14px; }
|
|
274
|
+
.plan-alert-footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
|
|
275
|
+
.account-card {
|
|
276
|
+
display: grid;
|
|
277
|
+
gap: 12px;
|
|
278
|
+
margin: 0 0 16px;
|
|
279
|
+
padding: 16px;
|
|
280
|
+
border: 1px solid var(--line);
|
|
281
|
+
border-radius: 16px;
|
|
282
|
+
background: var(--panel);
|
|
283
|
+
}
|
|
284
|
+
.account-row { display: flex; gap: 12px 24px; align-items: baseline; flex-wrap: wrap; }
|
|
285
|
+
.account-card p { margin: 0; color: var(--muted); line-height: 1.5; }
|
|
286
|
+
.account-identity { color: var(--ink); font-weight: 600; }
|
|
287
|
+
.account-meta strong { color: var(--ink); font-weight: 600; }
|
|
288
|
+
.account-note code {
|
|
289
|
+
font-family: var(--font-mono);
|
|
290
|
+
font-size: 0.86em;
|
|
291
|
+
}`;
|
|
292
|
+
}
|
|
293
|
+
/** Lucide "search", the field's leading icon. A spinner takes its place while a search runs. */
|
|
294
|
+
const searchGlassSvg = '<svg class="dash-search-glass" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg>';
|
|
295
|
+
/** Dashboard table and summary, without the document shell. */
|
|
296
|
+
export function dashboardMainHtml(lede) {
|
|
297
|
+
return ` <main>
|
|
298
|
+
<section class="dash-section" aria-label="Summary">
|
|
299
|
+
<div class="period-bar">
|
|
300
|
+
<div class="tabs" role="group" aria-label="Summary period">
|
|
301
|
+
<button type="button" class="tab-label" data-period="day" aria-pressed="true">Today</button>
|
|
302
|
+
<button type="button" class="tab-label" data-period="week" aria-pressed="false" aria-label="This week">Week</button>
|
|
303
|
+
<button type="button" class="tab-label" data-period="month" aria-pressed="false" aria-label="This month">Month</button>
|
|
304
|
+
</div>
|
|
305
|
+
<div class="dash-status-row"><p class="status" id="status">Loading plans…</p><span class="dash-spinner" id="status-spinner" aria-hidden="true"></span></div>
|
|
306
|
+
<button type="button" class="titlebar-action" id="refresh"><span class="dash-spinner" id="refresh-spinner" aria-hidden="true" hidden></span><span id="refresh-label">Refresh</span></button>
|
|
307
|
+
</div>
|
|
308
|
+
<section class="dash-overview" id="stats" aria-label="Summary for the period" aria-live="polite" aria-busy="true">${overviewSkeletonHtml()}</section>
|
|
309
|
+
</section>
|
|
310
|
+
<section class="dash-section" aria-label="Plans">
|
|
311
|
+
<div class="section-bar">
|
|
312
|
+
<div class="tabs" role="group" aria-label="Plan status">
|
|
313
|
+
<button type="button" class="tab-label" data-filter="all" aria-pressed="true">All</button>
|
|
314
|
+
<button type="button" class="tab-label" data-filter="active" aria-pressed="false">Active</button>
|
|
315
|
+
<button type="button" class="tab-label" data-filter="idle" aria-pressed="false">Idle</button>
|
|
316
|
+
<button type="button" class="tab-label" data-filter="executed" aria-pressed="false">Executed</button>
|
|
317
|
+
<button type="button" class="tab-label" data-filter="interrupted" aria-pressed="false">Interrupted</button>
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
<form class="dash-search" id="search-form" role="search" aria-label="Search plans">
|
|
321
|
+
<span class="dash-search-box" id="search-box">
|
|
322
|
+
<span class="dash-search-icon" aria-hidden="true">${searchGlassSvg}<span class="dash-spinner"></span></span>
|
|
323
|
+
<input class="dash-search-field" id="search-query" type="search" name="q" maxlength="200" placeholder="Search plan titles and text" aria-label="Search plans" autocomplete="off" />
|
|
324
|
+
</span>
|
|
325
|
+
<label class="dash-search-option"><input type="checkbox" id="search-versions" /> Include saved versions</label>
|
|
326
|
+
<label class="dash-search-option"><input type="checkbox" id="search-any" /> Match any term</label>
|
|
327
|
+
<span class="dash-search-actions" id="search-actions" hidden>
|
|
328
|
+
<button type="button" class="plan-btn plan-btn-ghost" id="search-clear">Clear</button>
|
|
329
|
+
</span>
|
|
330
|
+
</form>
|
|
331
|
+
<div id="search-view" hidden>
|
|
332
|
+
<div class="dash-search-note-row">
|
|
333
|
+
<p class="dash-search-note" id="search-status" aria-live="polite"></p>
|
|
334
|
+
<button type="button" class="plan-btn plan-btn-secondary" id="search-retry" hidden>Try again</button>
|
|
335
|
+
</div>
|
|
336
|
+
<div class="dash-search-results" id="search-results"></div>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="table-wrap" aria-busy="true">
|
|
339
|
+
<table>
|
|
340
|
+
<caption>Plans<span class="caption-count" id="plans-count"></span></caption>
|
|
341
|
+
<thead>
|
|
342
|
+
<tr>
|
|
343
|
+
<th scope="col">Plan</th>
|
|
344
|
+
<th scope="col">Status</th>
|
|
345
|
+
<th scope="col">Progress</th>
|
|
346
|
+
<th scope="col">Started</th>
|
|
347
|
+
<th scope="col"><span class="dash-sr">Actions</span></th>
|
|
348
|
+
</tr>
|
|
349
|
+
</thead>
|
|
350
|
+
<tbody id="rows">${rowSkeletonHtml()}</tbody>
|
|
351
|
+
</table>
|
|
352
|
+
</div>
|
|
353
|
+
</section>
|
|
354
|
+
<p class="lede dash-footnote">${lede}</p>
|
|
355
|
+
<dialog id="delete-dialog" class="plan-alert-content" aria-labelledby="delete-dialog-title" aria-describedby="delete-dialog-text">
|
|
356
|
+
<div class="plan-alert-header">
|
|
357
|
+
<h2 class="plan-alert-title" id="delete-dialog-title">Delete this plan?</h2>
|
|
358
|
+
<p class="plan-alert-description" id="delete-dialog-text">“<span id="delete-dialog-name"></span>” will be removed from the dashboard. Its file and history stay stored, and serving the plan again brings it back.</p>
|
|
359
|
+
</div>
|
|
360
|
+
<p class="plan-alert-error" id="delete-dialog-error" role="alert" hidden>Could not delete the plan. Try again.</p>
|
|
361
|
+
<div class="plan-alert-footer">
|
|
362
|
+
<button type="button" class="plan-btn plan-btn-secondary" id="delete-dialog-cancel">Cancel</button>
|
|
363
|
+
<button type="button" class="plan-btn plan-btn-destructive" id="delete-dialog-confirm">Delete</button>
|
|
364
|
+
</div>
|
|
365
|
+
</dialog>
|
|
366
|
+
</main>`;
|
|
367
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { DashboardSearchPlan, DashboardSearchResponse, DashboardSearchVersion, SearchHit } from './planSearch';
|
|
2
|
+
/** Shortest query the field searches while someone types. Enter searches any length. */
|
|
3
|
+
export declare const SEARCH_MIN_TYPED = 2;
|
|
4
|
+
/** Most often the field sends a search while someone types. */
|
|
5
|
+
export declare const SEARCH_THROTTLE_MS = 300;
|
|
6
|
+
/**
|
|
7
|
+
* Call `run` at most once per `wait` ms. The first call after a pause runs at once and the last
|
|
8
|
+
* call in a burst always runs, so the final text is always searched. Self-contained: the local
|
|
9
|
+
* dashboard script inlines it with `toString()`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function throttle<A extends unknown[]>(run: (...args: A) => void, wait: number): ((...args: A) => void) & {
|
|
12
|
+
cancel: () => void;
|
|
13
|
+
flush: () => void;
|
|
14
|
+
};
|
|
15
|
+
/** Styles for the dashboard search row and its results. Both dashboards use them, on the same tokens. */
|
|
16
|
+
export declare function dashboardSearchCss(): string;
|
|
17
|
+
/** "phase · Confirm design · line 44" for one hit. */
|
|
18
|
+
export declare function hitWhere(hit: SearchHit): string;
|
|
19
|
+
/** Link for one hit: the version's page, at the matched block when it has one. */
|
|
20
|
+
export declare function hitHref(version: DashboardSearchVersion, hit: SearchHit): string | null;
|
|
21
|
+
export declare function versionLabel(version: DashboardSearchVersion): string;
|
|
22
|
+
/**
|
|
23
|
+
* Split a snippet so each match can be marked. A fuzzy result sends the `[start, end)` ranges to
|
|
24
|
+
* mark. Without them every exact occurrence of a term is marked.
|
|
25
|
+
*/
|
|
26
|
+
export declare function highlightParts(snippet: string, terms: string[], ranges?: Array<[number, number]> | null): Array<{
|
|
27
|
+
text: string;
|
|
28
|
+
match: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
/** Where a result's plan title links: the plan page, or its newest saved version on the host. */
|
|
31
|
+
export declare function planOpenUrl(plan: Pick<DashboardSearchPlan, 'url' | 'openUrl'>): string | null;
|
|
32
|
+
/** "3 matches in 2 plans, live text only." A matched plan title counts as one match. */
|
|
33
|
+
export declare function searchSummary(result: DashboardSearchResponse): string;
|
|
34
|
+
/**
|
|
35
|
+
* Text listing for `live-plan search` without `--url`: one heading per plan with its link,
|
|
36
|
+
* then one line per hit. `base` turns the host's relative links into full URLs.
|
|
37
|
+
*/
|
|
38
|
+
export declare function formatDashboardSearch(result: DashboardSearchResponse, base?: string): string;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/** Shortest query the field searches while someone types. Enter searches any length. */
|
|
2
|
+
export const SEARCH_MIN_TYPED = 2;
|
|
3
|
+
/** Most often the field sends a search while someone types. */
|
|
4
|
+
export const SEARCH_THROTTLE_MS = 300;
|
|
5
|
+
/**
|
|
6
|
+
* Call `run` at most once per `wait` ms. The first call after a pause runs at once and the last
|
|
7
|
+
* call in a burst always runs, so the final text is always searched. Self-contained: the local
|
|
8
|
+
* dashboard script inlines it with `toString()`.
|
|
9
|
+
*/
|
|
10
|
+
export function throttle(run, wait) {
|
|
11
|
+
let last = 0;
|
|
12
|
+
let timer = null;
|
|
13
|
+
let pending = null;
|
|
14
|
+
const fire = () => {
|
|
15
|
+
timer = null;
|
|
16
|
+
if (!pending)
|
|
17
|
+
return;
|
|
18
|
+
const args = pending;
|
|
19
|
+
pending = null;
|
|
20
|
+
last = Date.now();
|
|
21
|
+
run(...args);
|
|
22
|
+
};
|
|
23
|
+
const call = (...args) => {
|
|
24
|
+
pending = args;
|
|
25
|
+
if (timer)
|
|
26
|
+
return;
|
|
27
|
+
const left = wait - (Date.now() - last);
|
|
28
|
+
if (left <= 0)
|
|
29
|
+
fire();
|
|
30
|
+
else
|
|
31
|
+
timer = setTimeout(fire, left);
|
|
32
|
+
};
|
|
33
|
+
call.cancel = () => {
|
|
34
|
+
if (timer)
|
|
35
|
+
clearTimeout(timer);
|
|
36
|
+
timer = null;
|
|
37
|
+
pending = null;
|
|
38
|
+
};
|
|
39
|
+
call.flush = () => {
|
|
40
|
+
if (timer)
|
|
41
|
+
clearTimeout(timer);
|
|
42
|
+
timer = null;
|
|
43
|
+
fire();
|
|
44
|
+
};
|
|
45
|
+
return call;
|
|
46
|
+
}
|
|
47
|
+
/** Styles for the dashboard search row and its results. Both dashboards use them, on the same tokens. */
|
|
48
|
+
export function dashboardSearchCss() {
|
|
49
|
+
return `
|
|
50
|
+
.dash-search, .dash-search *, .dash-search-results, .dash-search-results * { box-sizing: border-box; }
|
|
51
|
+
.dash-search {
|
|
52
|
+
max-width: 100%;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-wrap: wrap;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: var(--space-xs) var(--space-md);
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
.dash-search-box {
|
|
60
|
+
position: relative;
|
|
61
|
+
flex: 1 1 16rem;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
max-width: 100%;
|
|
64
|
+
display: flex;
|
|
65
|
+
}
|
|
66
|
+
.dash-search-icon {
|
|
67
|
+
position: absolute;
|
|
68
|
+
left: 13px;
|
|
69
|
+
top: 50%;
|
|
70
|
+
width: 16px;
|
|
71
|
+
height: 16px;
|
|
72
|
+
margin-top: -8px;
|
|
73
|
+
color: var(--muted);
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
.dash-search-icon svg { display: block; width: 16px; height: 16px; }
|
|
77
|
+
.dash-search-icon .dash-spinner { position: absolute; inset: 1px; }
|
|
78
|
+
.dash-search-box[data-busy] .dash-search-glass { visibility: hidden; }
|
|
79
|
+
.dash-search-box:not([data-busy]) .dash-spinner { display: none; }
|
|
80
|
+
.dash-search-field {
|
|
81
|
+
flex: 1 1 auto;
|
|
82
|
+
width: 100%;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
height: 36px;
|
|
86
|
+
padding: 0 14px 0 36px;
|
|
87
|
+
border: 1px solid var(--hairline-strong, var(--line));
|
|
88
|
+
border-radius: 999px;
|
|
89
|
+
background: var(--canvas, transparent);
|
|
90
|
+
color: var(--ink);
|
|
91
|
+
font: inherit;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
}
|
|
94
|
+
.dash-search-field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
95
|
+
.dash-search-option {
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
gap: 6px;
|
|
99
|
+
color: var(--muted);
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
}
|
|
103
|
+
.dash-search-option input { accent-color: var(--accent); margin: 0; }
|
|
104
|
+
.dash-search-actions { display: inline-flex; gap: var(--space-xs); }
|
|
105
|
+
.dash-search-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
|
|
106
|
+
.dash-search-note-row { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; margin: 0 0 12px; }
|
|
107
|
+
.dash-search-note-row .dash-search-note { margin: 0; }
|
|
108
|
+
.dash-search-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 100%; transition: opacity 150ms ease; }
|
|
109
|
+
.dash-search-results[aria-busy="true"] { opacity: 0.55; }
|
|
110
|
+
.dash-search-title-match { display: block; margin: -2px 0 2px; color: var(--muted); font-size: 0.8rem; }
|
|
111
|
+
.dash-search-plan {
|
|
112
|
+
border: 1px solid var(--line);
|
|
113
|
+
border-radius: 16px;
|
|
114
|
+
background: var(--panel);
|
|
115
|
+
padding: 14px 16px;
|
|
116
|
+
min-width: 0;
|
|
117
|
+
}
|
|
118
|
+
.dash-search-plan h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
|
|
119
|
+
.dash-search-plan h3 a { color: var(--ink); text-decoration: none; text-underline-offset: 3px; }
|
|
120
|
+
.dash-search-plan h3 a:hover { text-decoration: underline; }
|
|
121
|
+
.dash-search-version + .dash-search-version { margin-top: 8px; }
|
|
122
|
+
.dash-search-version-label {
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
border-radius: 999px;
|
|
125
|
+
padding: 0.1rem 0.5rem;
|
|
126
|
+
margin: 4px 0;
|
|
127
|
+
font-size: 0.75rem;
|
|
128
|
+
font-weight: 600;
|
|
129
|
+
background: var(--accent-soft);
|
|
130
|
+
color: var(--ink);
|
|
131
|
+
}
|
|
132
|
+
.dash-search-version-label.saved { background: var(--warn-soft); color: var(--warn); }
|
|
133
|
+
.dash-search-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
|
|
134
|
+
.dash-search-hit { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; color: inherit; text-decoration: none; min-width: 0; }
|
|
135
|
+
a.dash-search-hit:hover { background: var(--canvas, rgba(127, 127, 127, 0.08)); }
|
|
136
|
+
a.dash-search-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
|
|
137
|
+
.dash-search-where { display: block; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
|
|
138
|
+
.dash-search-snippet { display: block; font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
|
|
139
|
+
.dash-search-snippet mark, .dash-search-plan h3 mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
|
|
140
|
+
`;
|
|
141
|
+
}
|
|
142
|
+
/** "phase · Confirm design · line 44" for one hit. */
|
|
143
|
+
export function hitWhere(hit) {
|
|
144
|
+
const kind = hit.type === 'line' ? 'line' : hit.type;
|
|
145
|
+
// When the match is the title line itself, the snippet already shows the title.
|
|
146
|
+
const name = hit.title && hit.snippet.trim() === hit.title.trim() ? hit.blockId : hit.title || hit.blockId;
|
|
147
|
+
return [kind, name, `line ${hit.line}`].filter(Boolean).join(' · ');
|
|
148
|
+
}
|
|
149
|
+
/** Link for one hit: the version's page, at the matched block when it has one. */
|
|
150
|
+
export function hitHref(version, hit) {
|
|
151
|
+
if (!version.url)
|
|
152
|
+
return null;
|
|
153
|
+
return hit.blockId ? `${version.url}#${encodeURIComponent(hit.blockId)}` : version.url;
|
|
154
|
+
}
|
|
155
|
+
export function versionLabel(version) {
|
|
156
|
+
return version.live ? 'Live' : `Version ${version.seq}`;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Split a snippet so each match can be marked. A fuzzy result sends the `[start, end)` ranges to
|
|
160
|
+
* mark. Without them every exact occurrence of a term is marked.
|
|
161
|
+
*/
|
|
162
|
+
export function highlightParts(snippet, terms, ranges) {
|
|
163
|
+
const parts = [];
|
|
164
|
+
if (ranges && ranges.length > 0) {
|
|
165
|
+
let from = 0;
|
|
166
|
+
for (const range of ranges) {
|
|
167
|
+
const start = Math.max(from, Math.min(Number(range[0]) || 0, snippet.length));
|
|
168
|
+
const end = Math.min(snippet.length, Number(range[1]) || 0);
|
|
169
|
+
if (end <= start)
|
|
170
|
+
continue;
|
|
171
|
+
if (start > from)
|
|
172
|
+
parts.push({ text: snippet.slice(from, start), match: false });
|
|
173
|
+
parts.push({ text: snippet.slice(start, end), match: true });
|
|
174
|
+
from = end;
|
|
175
|
+
}
|
|
176
|
+
if (from < snippet.length)
|
|
177
|
+
parts.push({ text: snippet.slice(from), match: false });
|
|
178
|
+
return parts;
|
|
179
|
+
}
|
|
180
|
+
const lower = snippet.toLowerCase();
|
|
181
|
+
let at = 0;
|
|
182
|
+
while (at < snippet.length) {
|
|
183
|
+
let next = -1;
|
|
184
|
+
let length = 0;
|
|
185
|
+
for (const term of terms) {
|
|
186
|
+
if (!term)
|
|
187
|
+
continue;
|
|
188
|
+
const index = lower.indexOf(term, at);
|
|
189
|
+
if (index !== -1 && (next === -1 || index < next || (index === next && term.length > length))) {
|
|
190
|
+
next = index;
|
|
191
|
+
length = term.length;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (next === -1) {
|
|
195
|
+
parts.push({ text: snippet.slice(at), match: false });
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
if (next > at)
|
|
199
|
+
parts.push({ text: snippet.slice(at, next), match: false });
|
|
200
|
+
parts.push({ text: snippet.slice(next, next + length), match: true });
|
|
201
|
+
at = next + length;
|
|
202
|
+
}
|
|
203
|
+
return parts;
|
|
204
|
+
}
|
|
205
|
+
/** Where a result's plan title links: the plan page, or its newest saved version on the host. */
|
|
206
|
+
export function planOpenUrl(plan) {
|
|
207
|
+
return plan.openUrl ?? plan.url ?? null;
|
|
208
|
+
}
|
|
209
|
+
/** "3 matches in 2 plans, live text only." A matched plan title counts as one match. */
|
|
210
|
+
export function searchSummary(result) {
|
|
211
|
+
const hits = result.plans.reduce((sum, plan) => sum +
|
|
212
|
+
(plan.titleMatched && plan.titleMatched.length > 0 ? 1 : 0) +
|
|
213
|
+
plan.versions.reduce((count, version) => count + version.hits.length, 0), 0);
|
|
214
|
+
const scope = result.version === 'all' ? 'live text and saved versions' : 'live text only';
|
|
215
|
+
if (hits === 0)
|
|
216
|
+
return `No matches in ${result.searchedPlans} ${result.searchedPlans === 1 ? 'plan' : 'plans'}, ${scope}.`;
|
|
217
|
+
const plans = result.plans.length;
|
|
218
|
+
const more = result.truncated ? ' Some results were left out; narrow the search to see them.' : '';
|
|
219
|
+
return `${hits} ${hits === 1 ? 'match' : 'matches'} in ${plans} ${plans === 1 ? 'plan' : 'plans'}, ${scope}.${more}`;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Text listing for `live-plan search` without `--url`: one heading per plan with its link,
|
|
223
|
+
* then one line per hit. `base` turns the host's relative links into full URLs.
|
|
224
|
+
*/
|
|
225
|
+
export function formatDashboardSearch(result, base) {
|
|
226
|
+
const absolute = (value) => {
|
|
227
|
+
if (!value)
|
|
228
|
+
return null;
|
|
229
|
+
try {
|
|
230
|
+
return base ? new URL(value, base).href : value;
|
|
231
|
+
}
|
|
232
|
+
catch {
|
|
233
|
+
return value;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
const lines = [];
|
|
237
|
+
for (const plan of result.plans) {
|
|
238
|
+
const link = absolute(plan.openUrl ?? plan.url);
|
|
239
|
+
lines.push(`${plan.title || 'Untitled plan'}${link ? ` ${link}` : ''}`);
|
|
240
|
+
if (plan.titleMatched && plan.titleMatched.length > 0)
|
|
241
|
+
lines.push(` title ${plan.titleMatched.join(', ')}`);
|
|
242
|
+
for (const version of plan.versions) {
|
|
243
|
+
const versionLink = absolute(version.url);
|
|
244
|
+
const opens = version.live && versionLink === link ? '' : versionLink ? ` ${versionLink}` : '';
|
|
245
|
+
lines.push(` ${version.live ? 'live' : `v${version.seq}`}${version.parsed ? '' : ' (searched line by line: this version does not parse)'}${opens}`);
|
|
246
|
+
for (const hit of version.hits) {
|
|
247
|
+
const where = [hit.type, hit.blockId ?? hit.title].filter(Boolean).join(' ');
|
|
248
|
+
lines.push(` ${where} L${hit.line} ${hit.snippet}`);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
lines.push('');
|
|
252
|
+
}
|
|
253
|
+
lines.push(searchSummary(result));
|
|
254
|
+
return lines.join('\n');
|
|
255
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const DESKTOP_SCHEME = "living-plan";
|
|
2
|
+
/**
|
|
3
|
+
* The `living-plan://` link for a page on the local service, or on `cloudUrl`, the hosted app the
|
|
4
|
+
* desktop app is set up with. Null when the app cannot show the page.
|
|
5
|
+
*/
|
|
6
|
+
export declare function desktopLinkFor(pageUrl: string, cloudUrl?: string | null): string | null;
|
|
7
|
+
/** The hosted app the desktop app opens: the host chosen in setup, else the one the CLI is signed in to. */
|
|
8
|
+
export declare function desktopCloudUrl(): Promise<string | null>;
|
|
9
|
+
/** `LIVE_PLAN_DESKTOP=0` (or `off`, `false`, `no`) keeps every page in the browser. */
|
|
10
|
+
export declare function desktopAppDisabled(env: NodeJS.ProcessEnv): boolean;
|
|
11
|
+
export type DesktopOpenDeps = {
|
|
12
|
+
platform: NodeJS.Platform;
|
|
13
|
+
env: NodeJS.ProcessEnv;
|
|
14
|
+
/** The hosted app the desktop app is set up with. Read from the config home when omitted. */
|
|
15
|
+
cloudUrl?: () => Promise<string | null>;
|
|
16
|
+
/** Run a command with no output and resolve its exit code, or null when it could not run. */
|
|
17
|
+
run?: (command: string, args: string[]) => Promise<number | null>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Open the page in the desktop app. Resolves false when the page has no app link, the app is
|
|
21
|
+
* turned off, or it is not installed, so `openUrl` tries the web app and then a browser tab.
|
|
22
|
+
*/
|
|
23
|
+
export declare function openInDesktopApp(pageUrl: string, deps?: DesktopOpenDeps): Promise<boolean>;
|