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,52 @@
|
|
|
1
|
+
const PLAN_TAGS = new Set([
|
|
2
|
+
'phase',
|
|
3
|
+
'choice',
|
|
4
|
+
'approve',
|
|
5
|
+
'form',
|
|
6
|
+
'questions',
|
|
7
|
+
'checklist',
|
|
8
|
+
'callout',
|
|
9
|
+
'workflow',
|
|
10
|
+
'option',
|
|
11
|
+
'item',
|
|
12
|
+
'field',
|
|
13
|
+
]);
|
|
14
|
+
/**
|
|
15
|
+
* MDX compiles unknown lowercase tags as intrinsic elements (`_jsx("phase")`),
|
|
16
|
+
* which ignores the component map. Point those tags at `_components.phase`
|
|
17
|
+
* so the plan vocabulary resolves through the map.
|
|
18
|
+
*/
|
|
19
|
+
export function recmaPlanComponents() {
|
|
20
|
+
return (tree) => {
|
|
21
|
+
rewrite(tree);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function rewrite(node) {
|
|
25
|
+
if (!node || typeof node !== 'object')
|
|
26
|
+
return;
|
|
27
|
+
if (node.type === 'CallExpression' &&
|
|
28
|
+
(node.callee?.name === '_jsx' || node.callee?.name === '_jsxs' || node.callee?.name === '_jsxDEV') &&
|
|
29
|
+
node.arguments?.[0]?.type === 'Literal' &&
|
|
30
|
+
typeof node.arguments[0].value === 'string' &&
|
|
31
|
+
PLAN_TAGS.has(node.arguments[0].value)) {
|
|
32
|
+
const name = node.arguments[0].value;
|
|
33
|
+
node.arguments[0] = {
|
|
34
|
+
type: 'MemberExpression',
|
|
35
|
+
object: { type: 'Identifier', name: '_components' },
|
|
36
|
+
property: { type: 'Identifier', name },
|
|
37
|
+
computed: false,
|
|
38
|
+
optional: false,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
for (const value of Object.values(node)) {
|
|
42
|
+
if (Array.isArray(value)) {
|
|
43
|
+
for (const item of value) {
|
|
44
|
+
if (item && typeof item === 'object' && 'type' in item)
|
|
45
|
+
rewrite(item);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else if (value && typeof value === 'object' && 'type' in value) {
|
|
49
|
+
rewrite(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
type Attribute = {
|
|
2
|
+
type: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
value?: unknown;
|
|
5
|
+
};
|
|
6
|
+
type MdNode = {
|
|
7
|
+
type: string;
|
|
8
|
+
name?: string | null;
|
|
9
|
+
position?: {
|
|
10
|
+
start?: {
|
|
11
|
+
offset?: number;
|
|
12
|
+
column?: number;
|
|
13
|
+
};
|
|
14
|
+
end?: {
|
|
15
|
+
offset?: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
children?: MdNode[];
|
|
19
|
+
attributes?: Attribute[];
|
|
20
|
+
data?: {
|
|
21
|
+
hProperties?: Record<string, unknown>;
|
|
22
|
+
} & Record<string, unknown>;
|
|
23
|
+
};
|
|
24
|
+
/** The attribute that carries a block's place in the plan's MDX: `start-end` offsets. */
|
|
25
|
+
export declare const BLOCK_RANGE_ATTR = "data-plan-block";
|
|
26
|
+
/** The attribute that carries the place of a pipe table cell's text, so a click edits that cell alone. Empty cells have `n-n`. */
|
|
27
|
+
export declare const CELL_RANGE_ATTR = "data-plan-cell-range";
|
|
28
|
+
/**
|
|
29
|
+
* The attribute that carries the place of text a component draws inside itself: a paragraph, a
|
|
30
|
+
* heading, a list, or a quote in a callout, an approval, an update, a tab, a pane, or a layout box.
|
|
31
|
+
* A click on it edits that text where it reads. It is not a block of the plan: it has no grip and
|
|
32
|
+
* keeps its place in its card.
|
|
33
|
+
*/
|
|
34
|
+
export declare const TEXT_RANGE_ATTR = "data-plan-text";
|
|
35
|
+
/**
|
|
36
|
+
* Mark each block with where it is in the plan's MDX (ADR 0040), so the page can edit that block
|
|
37
|
+
* in place and splice the edit back into the file. Top-level blocks are marked, and so are the
|
|
38
|
+
* blocks inside a phase. A JSX block gets the range as an attribute; markdown gets it on the
|
|
39
|
+
* element it renders to (a fence on its `<code>`). Text inside a card is marked with
|
|
40
|
+
* `data-plan-text` instead, so it is edited where it reads without becoming a block that moves.
|
|
41
|
+
*/
|
|
42
|
+
export declare function remarkBlockRanges(): (tree: MdNode, file?: {
|
|
43
|
+
value?: unknown;
|
|
44
|
+
}) => void;
|
|
45
|
+
/** `120-344` as numbers, or null. */
|
|
46
|
+
export declare function parseBlockRange(value: unknown): {
|
|
47
|
+
start: number;
|
|
48
|
+
end: number;
|
|
49
|
+
} | null;
|
|
50
|
+
/**
|
|
51
|
+
* Where the MDX the page compiles starts in the plan file. The page compiles the body after the
|
|
52
|
+
* front matter, trimmed (src/planMdx/source.ts `planSourceToMdx`), so a block's offsets are relative
|
|
53
|
+
* to that text.
|
|
54
|
+
*/
|
|
55
|
+
export declare function mdxBodyOffset(source: string): number;
|
|
56
|
+
/** `120-131` as numbers, or null. A cell's range can be empty (`120-120`), where an empty cell's text goes. */
|
|
57
|
+
export declare function parseCellRange(value: unknown): {
|
|
58
|
+
start: number;
|
|
59
|
+
end: number;
|
|
60
|
+
} | null;
|
|
61
|
+
/** Replace one block of a plan file (by its range in the compiled MDX) with new text. */
|
|
62
|
+
export declare function spliceBlock(source: string, range: {
|
|
63
|
+
start: number;
|
|
64
|
+
end: number;
|
|
65
|
+
}, text: string): string;
|
|
66
|
+
/** Add a new block after the block at `range`, or at the end of the plan when `range` is null. */
|
|
67
|
+
export declare function insertBlockAfter(source: string, range: {
|
|
68
|
+
start: number;
|
|
69
|
+
end: number;
|
|
70
|
+
} | null, text: string): string;
|
|
71
|
+
/** Where a moved block goes: before or after another block. */
|
|
72
|
+
export type BlockPlace = 'before' | 'after';
|
|
73
|
+
/**
|
|
74
|
+
* The plan file with the block at `moved` put before or after the block at `target` (both ranges
|
|
75
|
+
* in the compiled MDX, as `data-plan-block` has them). The block's text moves as written and every
|
|
76
|
+
* other byte stays. `range` is the moved block's place in the new file. Null when the move would
|
|
77
|
+
* put the block inside itself.
|
|
78
|
+
*/
|
|
79
|
+
export declare function moveBlock(source: string, moved: {
|
|
80
|
+
start: number;
|
|
81
|
+
end: number;
|
|
82
|
+
}, target: {
|
|
83
|
+
start: number;
|
|
84
|
+
end: number;
|
|
85
|
+
}, place: BlockPlace): {
|
|
86
|
+
source: string;
|
|
87
|
+
range: {
|
|
88
|
+
start: number;
|
|
89
|
+
end: number;
|
|
90
|
+
};
|
|
91
|
+
} | null;
|
|
92
|
+
/**
|
|
93
|
+
* Where a block that started at `offset` in `before` (a place in its compiled MDX, as
|
|
94
|
+
* `data-plan-block` has it) starts in `after`, for two plan files that differ in one stretch, as an
|
|
95
|
+
* edit leaves them. A block before the stretch keeps its place, a block after it moves with it, and
|
|
96
|
+
* a block that started inside it is gone: null.
|
|
97
|
+
*/
|
|
98
|
+
export declare function remapBlockStart(before: string, after: string, offset: number): number | null;
|
|
99
|
+
/** A block's text in the plan file. */
|
|
100
|
+
export declare function blockText(source: string, range: {
|
|
101
|
+
start: number;
|
|
102
|
+
end: number;
|
|
103
|
+
}): string;
|
|
104
|
+
export {};
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/** The attribute that carries a block's place in the plan's MDX: `start-end` offsets. */
|
|
2
|
+
export const BLOCK_RANGE_ATTR = 'data-plan-block';
|
|
3
|
+
/** The attribute that carries the place of a pipe table cell's text, so a click edits that cell alone. Empty cells have `n-n`. */
|
|
4
|
+
export const CELL_RANGE_ATTR = 'data-plan-cell-range';
|
|
5
|
+
/** Nodes the page draws as a block of their own. Definitions, ESM, and expressions are not edited. */
|
|
6
|
+
const BLOCK_TYPES = new Set([
|
|
7
|
+
'paragraph',
|
|
8
|
+
'heading',
|
|
9
|
+
'list',
|
|
10
|
+
'blockquote',
|
|
11
|
+
'code',
|
|
12
|
+
'table',
|
|
13
|
+
'thematicBreak',
|
|
14
|
+
'mdxJsxFlowElement',
|
|
15
|
+
]);
|
|
16
|
+
/**
|
|
17
|
+
* The attribute that carries the place of text a component draws inside itself: a paragraph, a
|
|
18
|
+
* heading, a list, or a quote in a callout, an approval, an update, a tab, a pane, or a layout box.
|
|
19
|
+
* A click on it edits that text where it reads. It is not a block of the plan: it has no grip and
|
|
20
|
+
* keeps its place in its card.
|
|
21
|
+
*/
|
|
22
|
+
export const TEXT_RANGE_ATTR = 'data-plan-text';
|
|
23
|
+
/** Blocks whose own blocks are edited one by one too: a phase's paragraphs, code, and cards. */
|
|
24
|
+
const CONTAINERS = new Set(['phase']);
|
|
25
|
+
/** Text, the markdown that is edited as it reads. */
|
|
26
|
+
const TEXT_TYPES = new Set(['paragraph', 'heading', 'list', 'blockquote']);
|
|
27
|
+
/**
|
|
28
|
+
* Components that draw their children as the plan's prose, so the text in them is edited where it
|
|
29
|
+
* reads. Components that read their children as data (a data table, a file tree, an endpoint, a
|
|
30
|
+
* choice's options, a form's fields) are not here: their own editor changes them.
|
|
31
|
+
*/
|
|
32
|
+
const TEXT_CONTAINERS = new Set([
|
|
33
|
+
'callout',
|
|
34
|
+
'approve',
|
|
35
|
+
'choice',
|
|
36
|
+
'questions',
|
|
37
|
+
'Update',
|
|
38
|
+
'Tabs',
|
|
39
|
+
'Tab',
|
|
40
|
+
'Compare',
|
|
41
|
+
'Pane',
|
|
42
|
+
'box',
|
|
43
|
+
'Box',
|
|
44
|
+
'hstack',
|
|
45
|
+
'HStack',
|
|
46
|
+
'vstack',
|
|
47
|
+
'VStack',
|
|
48
|
+
'responsiveStack',
|
|
49
|
+
'ResponsiveStack',
|
|
50
|
+
'Stack',
|
|
51
|
+
'Row',
|
|
52
|
+
]);
|
|
53
|
+
/** Stamp the text inside a component with its place, and the text inside the components it holds. */
|
|
54
|
+
function stampText(nodes) {
|
|
55
|
+
for (const node of nodes ?? []) {
|
|
56
|
+
if (node.type === 'mdxJsxFlowElement') {
|
|
57
|
+
if (node.name && TEXT_CONTAINERS.has(node.name))
|
|
58
|
+
stampText(node.children);
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (!TEXT_TYPES.has(node.type))
|
|
62
|
+
continue;
|
|
63
|
+
const start = node.position?.start?.offset;
|
|
64
|
+
const end = node.position?.end?.offset;
|
|
65
|
+
if (typeof start !== 'number' || typeof end !== 'number' || end <= start)
|
|
66
|
+
continue;
|
|
67
|
+
// Indented text would lose its indentation when edited on its own. The card's editor edits it.
|
|
68
|
+
if (node.position?.start?.column !== 1)
|
|
69
|
+
continue;
|
|
70
|
+
const data = node.data ?? {};
|
|
71
|
+
node.data = { ...data, hProperties: { ...(data.hProperties ?? {}), [TEXT_RANGE_ATTR]: `${start}-${end}` } };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/** Each cell of a pipe table gets the place of its text: from its first child to its last, or where text would go. */
|
|
75
|
+
function stampCells(table, source) {
|
|
76
|
+
for (const row of table.children ?? []) {
|
|
77
|
+
for (const cell of row.children ?? []) {
|
|
78
|
+
if (cell.type !== 'tableCell')
|
|
79
|
+
continue;
|
|
80
|
+
const first = cell.children?.[0]?.position?.start?.offset;
|
|
81
|
+
const last = cell.children?.[cell.children.length - 1]?.position?.end?.offset;
|
|
82
|
+
let start;
|
|
83
|
+
let end;
|
|
84
|
+
if (typeof first === 'number' && typeof last === 'number' && last >= first) {
|
|
85
|
+
start = first;
|
|
86
|
+
end = last;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
// An empty cell: text goes after its pipe and one space.
|
|
90
|
+
let at = cell.position?.start?.offset;
|
|
91
|
+
if (typeof at !== 'number')
|
|
92
|
+
continue;
|
|
93
|
+
if (source[at] === '|')
|
|
94
|
+
at += 1;
|
|
95
|
+
if (source[at] === ' ')
|
|
96
|
+
at += 1;
|
|
97
|
+
start = at;
|
|
98
|
+
end = at;
|
|
99
|
+
}
|
|
100
|
+
const data = cell.data ?? {};
|
|
101
|
+
cell.data = { ...data, hProperties: { ...(data.hProperties ?? {}), [CELL_RANGE_ATTR]: `${start}-${end}` } };
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function stamp(nodes, nested, source) {
|
|
106
|
+
for (const node of nodes ?? []) {
|
|
107
|
+
if (!BLOCK_TYPES.has(node.type))
|
|
108
|
+
continue;
|
|
109
|
+
const start = node.position?.start?.offset;
|
|
110
|
+
const end = node.position?.end?.offset;
|
|
111
|
+
if (typeof start !== 'number' || typeof end !== 'number' || end <= start)
|
|
112
|
+
continue;
|
|
113
|
+
// An indented block inside a card would lose its indentation when edited on its own. The card is edited whole.
|
|
114
|
+
if (nested && node.position?.start?.column !== 1)
|
|
115
|
+
continue;
|
|
116
|
+
const value = `${start}-${end}`;
|
|
117
|
+
if (node.type === 'mdxJsxFlowElement') {
|
|
118
|
+
node.attributes = [...(node.attributes ?? []), { type: 'mdxJsxAttribute', name: BLOCK_RANGE_ATTR, value }];
|
|
119
|
+
if (node.name && CONTAINERS.has(node.name))
|
|
120
|
+
stamp(node.children, true, source);
|
|
121
|
+
else if (node.name && TEXT_CONTAINERS.has(node.name))
|
|
122
|
+
stampText(node.children);
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
if (node.type === 'table')
|
|
126
|
+
stampCells(node, source);
|
|
127
|
+
const data = node.data ?? {};
|
|
128
|
+
node.data = { ...data, hProperties: { ...(data.hProperties ?? {}), [BLOCK_RANGE_ATTR]: value } };
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Mark each block with where it is in the plan's MDX (ADR 0040), so the page can edit that block
|
|
133
|
+
* in place and splice the edit back into the file. Top-level blocks are marked, and so are the
|
|
134
|
+
* blocks inside a phase. A JSX block gets the range as an attribute; markdown gets it on the
|
|
135
|
+
* element it renders to (a fence on its `<code>`). Text inside a card is marked with
|
|
136
|
+
* `data-plan-text` instead, so it is edited where it reads without becoming a block that moves.
|
|
137
|
+
*/
|
|
138
|
+
export function remarkBlockRanges() {
|
|
139
|
+
return (tree, file) => stamp(tree.children, false, String(file?.value ?? ''));
|
|
140
|
+
}
|
|
141
|
+
/** `120-344` as numbers, or null. */
|
|
142
|
+
export function parseBlockRange(value) {
|
|
143
|
+
if (typeof value !== 'string')
|
|
144
|
+
return null;
|
|
145
|
+
const match = /^(\d+)-(\d+)$/.exec(value);
|
|
146
|
+
if (!match)
|
|
147
|
+
return null;
|
|
148
|
+
const start = Number(match[1]);
|
|
149
|
+
const end = Number(match[2]);
|
|
150
|
+
return end > start ? { start, end } : null;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Where the MDX the page compiles starts in the plan file. The page compiles the body after the
|
|
154
|
+
* front matter, trimmed (src/planMdx/source.ts `planSourceToMdx`), so a block's offsets are relative
|
|
155
|
+
* to that text.
|
|
156
|
+
*/
|
|
157
|
+
export function mdxBodyOffset(source) {
|
|
158
|
+
const match = /^---\r?\n[\s\S]*?\r?\n---\r?\n?/.exec(source);
|
|
159
|
+
const body = match ? source.slice(match[0].length) : source;
|
|
160
|
+
const lead = body.length - body.trimStart().length;
|
|
161
|
+
return source.length - body.length + lead;
|
|
162
|
+
}
|
|
163
|
+
/** `120-131` as numbers, or null. A cell's range can be empty (`120-120`), where an empty cell's text goes. */
|
|
164
|
+
export function parseCellRange(value) {
|
|
165
|
+
if (typeof value !== 'string')
|
|
166
|
+
return null;
|
|
167
|
+
const match = /^(\d+)-(\d+)$/.exec(value);
|
|
168
|
+
if (!match)
|
|
169
|
+
return null;
|
|
170
|
+
const start = Number(match[1]);
|
|
171
|
+
const end = Number(match[2]);
|
|
172
|
+
return end >= start ? { start, end } : null;
|
|
173
|
+
}
|
|
174
|
+
/** Replace one block of a plan file (by its range in the compiled MDX) with new text. */
|
|
175
|
+
export function spliceBlock(source, range, text) {
|
|
176
|
+
const offset = mdxBodyOffset(source);
|
|
177
|
+
const start = offset + range.start;
|
|
178
|
+
const end = offset + range.end;
|
|
179
|
+
const before = source.slice(0, start);
|
|
180
|
+
const after = source.slice(end);
|
|
181
|
+
const next = text.trim();
|
|
182
|
+
if (!next) {
|
|
183
|
+
// A removed block takes the blank line after it too, so the file keeps one blank line between blocks.
|
|
184
|
+
return `${before.replace(/\n+$/, '\n')}${after.replace(/^\n+/, '\n')}`.replace(/^\n+/, '');
|
|
185
|
+
}
|
|
186
|
+
return `${before}${next}${after}`;
|
|
187
|
+
}
|
|
188
|
+
/** Add a new block after the block at `range`, or at the end of the plan when `range` is null. */
|
|
189
|
+
export function insertBlockAfter(source, range, text) {
|
|
190
|
+
const next = text.trim();
|
|
191
|
+
if (!next)
|
|
192
|
+
return source;
|
|
193
|
+
if (!range)
|
|
194
|
+
return `${source.replace(/\s*$/, '')}\n\n${next}\n`;
|
|
195
|
+
const at = mdxBodyOffset(source) + range.end;
|
|
196
|
+
return `${source.slice(0, at)}\n\n${next}${source.slice(at)}`;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Cut the text between `from` and `to` (absolute offsets) out of a plan file with one of the
|
|
200
|
+
* separators beside it: the one after it when another block follows, else the one before it, so
|
|
201
|
+
* a closing tag or the end of the file keeps its own line.
|
|
202
|
+
*/
|
|
203
|
+
function cutBlock(source, from, to) {
|
|
204
|
+
const after = source.slice(to);
|
|
205
|
+
const trailing = /^\s*\n/.exec(after)?.[0] ?? '';
|
|
206
|
+
const rest = after.slice(trailing.length).trimStart();
|
|
207
|
+
if (trailing && rest && !rest.startsWith('</')) {
|
|
208
|
+
return { source: `${source.slice(0, from)}${after.slice(trailing.length)}`, start: from, end: to + trailing.length };
|
|
209
|
+
}
|
|
210
|
+
const before = source.slice(0, from);
|
|
211
|
+
const leading = /\s*$/.exec(before)?.[0] ?? '';
|
|
212
|
+
const start = from - leading.length;
|
|
213
|
+
return { source: `${source.slice(0, start)}${after}`, start, end: to };
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* The plan file with the block at `moved` put before or after the block at `target` (both ranges
|
|
217
|
+
* in the compiled MDX, as `data-plan-block` has them). The block's text moves as written and every
|
|
218
|
+
* other byte stays. `range` is the moved block's place in the new file. Null when the move would
|
|
219
|
+
* put the block inside itself.
|
|
220
|
+
*/
|
|
221
|
+
export function moveBlock(source, moved, target, place) {
|
|
222
|
+
const offset = mdxBodyOffset(source);
|
|
223
|
+
const from = offset + moved.start;
|
|
224
|
+
const to = offset + moved.end;
|
|
225
|
+
const at = offset + (place === 'before' ? target.start : target.end);
|
|
226
|
+
if (at > from && at < to)
|
|
227
|
+
return null;
|
|
228
|
+
const text = source.slice(from, to);
|
|
229
|
+
const insert = place === 'before' ? `${text}\n\n` : `\n\n${text}`;
|
|
230
|
+
const lead = place === 'before' ? 0 : 2;
|
|
231
|
+
let next;
|
|
232
|
+
let start;
|
|
233
|
+
if (at >= to) {
|
|
234
|
+
// Put it in first: the cut before it then shifts it by what it took.
|
|
235
|
+
const cut = cutBlock(`${source.slice(0, at)}${insert}${source.slice(at)}`, from, to);
|
|
236
|
+
next = cut.source;
|
|
237
|
+
start = at + lead - (cut.end - cut.start);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
const cut = cutBlock(source, from, to);
|
|
241
|
+
next = `${cut.source.slice(0, at)}${insert}${cut.source.slice(at)}`;
|
|
242
|
+
start = at + lead;
|
|
243
|
+
}
|
|
244
|
+
const body = mdxBodyOffset(next);
|
|
245
|
+
return { source: next, range: { start: start - body, end: start - body + text.length } };
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Where a block that started at `offset` in `before` (a place in its compiled MDX, as
|
|
249
|
+
* `data-plan-block` has it) starts in `after`, for two plan files that differ in one stretch, as an
|
|
250
|
+
* edit leaves them. A block before the stretch keeps its place, a block after it moves with it, and
|
|
251
|
+
* a block that started inside it is gone: null.
|
|
252
|
+
*/
|
|
253
|
+
export function remapBlockStart(before, after, offset) {
|
|
254
|
+
if (before === after)
|
|
255
|
+
return offset;
|
|
256
|
+
const at = mdxBodyOffset(before) + offset;
|
|
257
|
+
const shortest = Math.min(before.length, after.length);
|
|
258
|
+
let prefix = 0;
|
|
259
|
+
while (prefix < shortest && before[prefix] === after[prefix])
|
|
260
|
+
prefix += 1;
|
|
261
|
+
let suffix = 0;
|
|
262
|
+
while (suffix < shortest - prefix && before[before.length - 1 - suffix] === after[after.length - 1 - suffix])
|
|
263
|
+
suffix += 1;
|
|
264
|
+
// A block right where text was put in moves with the text after it.
|
|
265
|
+
if (at >= before.length - suffix)
|
|
266
|
+
return at + after.length - before.length - mdxBodyOffset(after);
|
|
267
|
+
if (at <= prefix)
|
|
268
|
+
return at - mdxBodyOffset(after);
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
/** A block's text in the plan file. */
|
|
272
|
+
export function blockText(source, range) {
|
|
273
|
+
const offset = mdxBodyOffset(source);
|
|
274
|
+
return source.slice(offset + range.start, offset + range.end);
|
|
275
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type MdNode = {
|
|
2
|
+
type: string;
|
|
3
|
+
meta?: string | null;
|
|
4
|
+
children?: MdNode[];
|
|
5
|
+
data?: {
|
|
6
|
+
hProperties?: Record<string, unknown>;
|
|
7
|
+
} & Record<string, unknown>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Keep a fence's meta (the text after its language, such as `start=40`) on the rendered `<code>`
|
|
11
|
+
* as `data-meta`. MDX drops it otherwise, and the page reads `start=` from it to number the lines.
|
|
12
|
+
*/
|
|
13
|
+
export declare function remarkCodeMeta(): (tree: MdNode) => void;
|
|
14
|
+
/** The first line number a fence asks for with `start=N`, or undefined. */
|
|
15
|
+
export declare function fenceStartLine(meta: unknown): number | undefined;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keep a fence's meta (the text after its language, such as `start=40`) on the rendered `<code>`
|
|
3
|
+
* as `data-meta`. MDX drops it otherwise, and the page reads `start=` from it to number the lines.
|
|
4
|
+
*/
|
|
5
|
+
export function remarkCodeMeta() {
|
|
6
|
+
return (tree) => {
|
|
7
|
+
visit(tree);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function visit(node) {
|
|
11
|
+
if (node.type === 'code' && node.meta && node.meta.trim()) {
|
|
12
|
+
const data = node.data ?? {};
|
|
13
|
+
node.data = { ...data, hProperties: { ...(data.hProperties ?? {}), 'data-meta': node.meta.trim() } };
|
|
14
|
+
}
|
|
15
|
+
for (const child of node.children ?? [])
|
|
16
|
+
visit(child);
|
|
17
|
+
}
|
|
18
|
+
/** The first line number a fence asks for with `start=N`, or undefined. */
|
|
19
|
+
export function fenceStartLine(meta) {
|
|
20
|
+
if (typeof meta !== 'string')
|
|
21
|
+
return undefined;
|
|
22
|
+
const match = /(?:^|\s)start=(\d+)(?:\s|$)/i.exec(meta);
|
|
23
|
+
const value = match ? Number(match[1]) : Number.NaN;
|
|
24
|
+
return Number.isInteger(value) && value >= 1 ? value : undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { gfmTableFromMarkdown, gfmTableToMarkdown } from 'mdast-util-gfm-table';
|
|
2
|
+
import { gfmTable } from 'micromark-extension-gfm-table';
|
|
3
|
+
/**
|
|
4
|
+
* Parse GitHub pipe tables while compiling a plan.
|
|
5
|
+
* Cell text stays markdown, so inline code, emphasis, and links still render.
|
|
6
|
+
*/
|
|
7
|
+
export function remarkGfmTable() {
|
|
8
|
+
const data = this.data();
|
|
9
|
+
const micromarkExtensions = data.micromarkExtensions ?? (data.micromarkExtensions = []);
|
|
10
|
+
const fromMarkdownExtensions = data.fromMarkdownExtensions ?? (data.fromMarkdownExtensions = []);
|
|
11
|
+
const toMarkdownExtensions = data.toMarkdownExtensions ?? (data.toMarkdownExtensions = []);
|
|
12
|
+
micromarkExtensions.push(gfmTable());
|
|
13
|
+
fromMarkdownExtensions.push(gfmTableFromMarkdown());
|
|
14
|
+
toMarkdownExtensions.push(gfmTableToMarkdown());
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { gfmTaskListItemFromMarkdown, gfmTaskListItemToMarkdown } from 'mdast-util-gfm-task-list-item';
|
|
2
|
+
import { gfmTaskListItem } from 'micromark-extension-gfm-task-list-item';
|
|
3
|
+
/**
|
|
4
|
+
* Parse GitHub task list items (`- [ ]` and `- [x]`) while compiling a plan.
|
|
5
|
+
* The item gets a checkbox in place of the `[ ]` text, as the editor already shows it.
|
|
6
|
+
*/
|
|
7
|
+
export function remarkGfmTaskList() {
|
|
8
|
+
const data = this.data();
|
|
9
|
+
const micromarkExtensions = data.micromarkExtensions ?? (data.micromarkExtensions = []);
|
|
10
|
+
const fromMarkdownExtensions = data.fromMarkdownExtensions ?? (data.fromMarkdownExtensions = []);
|
|
11
|
+
const toMarkdownExtensions = data.toMarkdownExtensions ?? (data.toMarkdownExtensions = []);
|
|
12
|
+
micromarkExtensions.push(gfmTaskListItem());
|
|
13
|
+
fromMarkdownExtensions.push(gfmTaskListItemFromMarkdown());
|
|
14
|
+
toMarkdownExtensions.push(gfmTaskListItemToMarkdown());
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type MdNode = {
|
|
2
|
+
type: string;
|
|
3
|
+
position?: unknown;
|
|
4
|
+
lang?: string | null;
|
|
5
|
+
value?: string;
|
|
6
|
+
children?: MdNode[];
|
|
7
|
+
name?: string | null;
|
|
8
|
+
attributes?: unknown[];
|
|
9
|
+
data?: unknown;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Turn a CommonMark `mermaid` fence into a Pele `<Mermaid chart={...} />` element.
|
|
13
|
+
* The chart string is a compiled literal, not an import or a call.
|
|
14
|
+
*/
|
|
15
|
+
export declare function remarkMermaid(): (tree: MdNode) => void;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { valueToEstree } from 'estree-util-value-to-estree';
|
|
2
|
+
/**
|
|
3
|
+
* Turn a CommonMark `mermaid` fence into a Pele `<Mermaid chart={...} />` element.
|
|
4
|
+
* The chart string is a compiled literal, not an import or a call.
|
|
5
|
+
*/
|
|
6
|
+
export function remarkMermaid() {
|
|
7
|
+
return (tree) => {
|
|
8
|
+
replaceMermaid(tree);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function replaceMermaid(node) {
|
|
12
|
+
const children = node.children;
|
|
13
|
+
if (!children)
|
|
14
|
+
return;
|
|
15
|
+
for (let index = 0; index < children.length; index += 1) {
|
|
16
|
+
const child = children[index];
|
|
17
|
+
if (!child)
|
|
18
|
+
continue;
|
|
19
|
+
if (child.type === 'code' && child.lang === 'mermaid' && child.value?.trim()) {
|
|
20
|
+
// Keep the fence's place in the file, so the page can edit the diagram as a block (remarkBlockRanges).
|
|
21
|
+
children[index] = { ...mermaidElement(child.value.replace(/\n$/, '')), ...(child.position ? { position: child.position } : {}) };
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
replaceMermaid(child);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function mermaidElement(source) {
|
|
28
|
+
const literal = JSON.stringify(source);
|
|
29
|
+
return {
|
|
30
|
+
type: 'mdxJsxFlowElement',
|
|
31
|
+
name: 'Mermaid',
|
|
32
|
+
attributes: [
|
|
33
|
+
{
|
|
34
|
+
type: 'mdxJsxAttribute',
|
|
35
|
+
name: 'chart',
|
|
36
|
+
value: {
|
|
37
|
+
type: 'mdxJsxAttributeValueExpression',
|
|
38
|
+
value: literal,
|
|
39
|
+
data: {
|
|
40
|
+
estree: {
|
|
41
|
+
type: 'Program',
|
|
42
|
+
sourceType: 'module',
|
|
43
|
+
body: [
|
|
44
|
+
{
|
|
45
|
+
type: 'ExpressionStatement',
|
|
46
|
+
expression: valueToEstree(source),
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
children: [],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** A plan file is already MDX. Entry fences and {% tags %} are not rewritten. */
|
|
2
|
+
export declare function planSourceToMdx(source: string): string;
|
|
3
|
+
export declare function planSourceFlags(source: string): {
|
|
4
|
+
mermaid: boolean;
|
|
5
|
+
code: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* HTML for the plan column when the MDX bundle is not on the page.
|
|
9
|
+
* The open page replaces this with the compiled MDX app.
|
|
10
|
+
*/
|
|
11
|
+
export declare function renderPlanStaticHtml(source: string): string;
|