pi-webapp 0.1.31-alpha.4 → 0.1.31
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/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/bin/package-pi-cli.d.mts +1 -0
- package/bin/package-pi-cli.mjs +26 -0
- package/bin/pi-webapp.mjs +4 -2
- package/dist/extension.js +35 -33
- package/dist/hosted-recovery.js +8 -0
- package/dist/hosted-worker.js +3 -0
- package/docs/diagrams.md +22 -53
- package/docs/hosted-agent-wiring.md +206 -0
- package/docs/hosted-alpha-release.md +72 -0
- package/docs/hosted-confirmation-lifecycle.md +49 -0
- package/docs/hosted-excalidraw-migration.md +46 -0
- package/docs/hosted-linked-update.md +101 -0
- package/docs/hosted-multiview-transport.md +61 -0
- package/docs/hosted-ori39-compatibility.md +106 -0
- package/docs/hosted-ori40-fault-lifecycle.md +74 -0
- package/docs/hosted-ori42-management.md +81 -0
- package/docs/hosted-paired-updater.md +61 -0
- package/docs/hosted-platform-acceptance-ori41.md +135 -0
- package/docs/hosted-platform-fixes-ori41.md +153 -0
- package/docs/hosted-plugin-gc.md +53 -0
- package/docs/hosted-plugin-installation.md +150 -0
- package/docs/hosted-plugin-runtime.md +122 -0
- package/docs/hosted-plugin-ui-integration.md +69 -0
- package/docs/hosted-production-acceptance.md +93 -0
- package/docs/hosted-production-bootstrap.md +141 -0
- package/docs/hosted-update-recovery.md +171 -0
- package/docs/sentry.md +15 -11
- package/package.json +18 -16
- package/web/dist/.vite/manifest.json +113 -1682
- package/web/dist/assets/app-CkT84si6.js +544 -0
- package/web/dist/assets/app.css +1 -1
- package/web/dist/assets/app.js +7 -5
- package/web/dist/assets/asciidoc-fDuF7HNn.js +2 -0
- package/web/dist/assets/bat-CIKKTCO7.js +2 -0
- package/web/dist/assets/bibtex-D13O2Wvh.js +2 -0
- package/web/dist/assets/c-BxgHfdNM.js +2 -0
- package/web/dist/assets/clojure-CiHGeAtp.js +2 -0
- package/web/dist/assets/cmake-DmzJtVCe.js +2 -0
- package/web/dist/assets/{cpp-DMGWgsSz.js → cpp-WTsyTmWk.js} +3 -1
- package/web/dist/assets/csharp-BusYHIEz.js +2 -0
- package/web/dist/assets/css-D-q0lhfR.js +2 -0
- package/web/dist/assets/csv-DFLln536.js +2 -0
- package/web/dist/assets/dart-CafiI-9_.js +2 -0
- package/web/dist/assets/diff-Br1ISN9_.js +2 -0
- package/web/dist/assets/dotenv-CIz2XDph.js +2 -0
- package/web/dist/assets/{elixir-sVOXZpgC.js → elixir-R3IvWmT5.js} +3 -1
- package/web/dist/assets/{erlang-C4_gHZ2S.js → erlang-NGps-vi9.js} +3 -1
- package/web/dist/assets/fish-ByHW6pZw.js +2 -0
- package/web/dist/assets/{fsharp-Cv5ra58w.js → fsharp-BOBx9XdV.js} +3 -1
- package/web/dist/assets/go-BeHf35-M.js +2 -0
- package/web/dist/assets/{graphql-B_h7z8QF.js → graphql-Bu7dAtew.js} +3 -1
- package/web/dist/assets/groovy-zjY2ZfG0.js +2 -0
- package/web/dist/assets/haskell-CMvfT32Y.js +2 -0
- package/web/dist/assets/hcl-RKiXyu-a.js +2 -0
- package/web/dist/assets/{html-BQzGhNSS.js → html-COcRjUs1.js} +3 -1
- package/web/dist/assets/{html-derivative-Bhd9D5yb.js → html-derivative-C2Epw9Yg.js} +3 -1
- package/web/dist/assets/{http-D8BvZbjX.js → http-BtEaP0_p.js} +3 -1
- package/web/dist/assets/ini-DuzuNcum.js +2 -0
- package/web/dist/assets/java-K8yEFi64.js +2 -0
- package/web/dist/assets/javascript-D_ijBMSX.js +2 -0
- package/web/dist/assets/{julia-DGlqHGmw.js → julia-yApUWuwQ.js} +3 -1
- package/web/dist/assets/kotlin-BSbocnsc.js +2 -0
- package/web/dist/assets/latex-B2rh6wcV.js +2 -0
- package/web/dist/assets/less-DrDudO82.js +2 -0
- package/web/dist/assets/log-ljR8DmTe.js +2 -0
- package/web/dist/assets/{lua-KeJfiUHt.js → lua-DyIUvKwX.js} +3 -1
- package/web/dist/assets/make-D75dUjYA.js +2 -0
- package/web/dist/assets/markdown-CW047eNb.js +2 -0
- package/web/dist/assets/mdx-XsqTTZB4.js +2 -0
- package/web/dist/assets/nix-CipIrdNI.js +2 -0
- package/web/dist/assets/{perl-D7MbmVge.js → perl-CpGQZpC_.js} +3 -1
- package/web/dist/assets/{php-JejPRwzT.js → php-mDUeg8is.js} +3 -1
- package/web/dist/assets/{plugin-DtO0gZBn.js → plugin-BNln-AV2.js} +3 -1
- package/web/dist/assets/{plugin-B4TCKNbA.js → plugin-BR-ExlfJ.js} +5 -3
- package/web/dist/assets/{plugin-Dtwg42bN.js → plugin-DO3fYZIM.js} +3 -1
- package/web/dist/assets/plugin2.css +1 -1
- package/web/dist/assets/powershell-jgDnaG9I.js +2 -0
- package/web/dist/assets/proto-BIjSd36w.js +2 -0
- package/web/dist/assets/python-D7_Ztkaq.js +2 -0
- package/web/dist/assets/r-CJzV5ecV.js +2 -0
- package/web/dist/assets/{rst-Bz1_glFI.js → rst-D36AriVO.js} +3 -1
- package/web/dist/assets/{ruby-oizq67Sq.js → ruby-DfvZI7yF.js} +3 -1
- package/web/dist/assets/rust-DSBpfBj6.js +2 -0
- package/web/dist/assets/scala-C5J7wQ_u.js +2 -0
- package/web/dist/assets/{scss-DMeWdmPn.js → scss-Ce0Xtdy1.js} +3 -1
- package/web/dist/assets/sql-B8q9hRYB.js +2 -0
- package/web/dist/assets/{svelte-BEhn2A1K.js → svelte-Bbeskamu.js} +3 -1
- package/web/dist/assets/swift-BYyWkiAC.js +2 -0
- package/web/dist/assets/system-verilog-DeQRavVp.js +2 -0
- package/web/dist/assets/{telemetry-client-Cvi2eILd.js → telemetry-client-CBQBug9X.js} +3 -1
- package/web/dist/assets/toml-D4Tpftfr.js +2 -0
- package/web/dist/assets/vb-CT8kYl35.js +2 -0
- package/web/dist/assets/verilog-CRrcH6Pt.js +2 -0
- package/web/dist/assets/{vue-C1O1jwon.js → vue-_U3Asls5.js} +3 -1
- package/web/dist/assets/{xml-Db5pMVNY.js → xml-DCBoxqhY.js} +3 -1
- package/web/dist/assets/yaml-jmrW97Mk.js +2 -0
- package/assets/diagrams-NOTICES.txt +0 -703
- package/web/dist/.vite/static-assets.json +0 -1
- package/web/dist/assets/Assistant-Bold.woff2 +0 -0
- package/web/dist/assets/Assistant-Medium.woff2 +0 -0
- package/web/dist/assets/Assistant-Regular.woff2 +0 -0
- package/web/dist/assets/Assistant-SemiBold.woff2 +0 -0
- package/web/dist/assets/abnfDiagram-VCTEODGH-DOPlOkUJ.js +0 -1
- package/web/dist/assets/app-gCk-2TDF.js +0 -542
- package/web/dist/assets/ar-SA-G6X2FPQ2-DZfey2lT.js +0 -10
- package/web/dist/assets/arc-DG_vwUrU.js +0 -1
- package/web/dist/assets/architectureDiagram-5GKGNRK7-ECpwUvbT.js +0 -36
- package/web/dist/assets/az-AZ-76LH7QW2-DWGJksfR.js +0 -1
- package/web/dist/assets/bg-BG-XCXSNQG7-ZxUgqtcs.js +0 -5
- package/web/dist/assets/blockDiagram-I7D4REHJ-s2II5Siy.js +0 -129
- package/web/dist/assets/bn-BD-2XOGV67Q-Db0cVQ4Y.js +0 -5
- package/web/dist/assets/c4Diagram-7LVT6UL2-B3dXdnJP.js +0 -38
- package/web/dist/assets/ca-ES-6MX7JW3Y-DnTHsp9g.js +0 -8
- package/web/dist/assets/channel-BNmt9r9T.js +0 -1
- package/web/dist/assets/chunk-2Q5K7J3B-4JenjRP2.js +0 -1
- package/web/dist/assets/chunk-5VM5RSS4-DcZaSc8t.js +0 -15
- package/web/dist/assets/chunk-F27PBJKO-DT--4dNr.js +0 -1
- package/web/dist/assets/chunk-IMKFNOWR-DkcD9Q04.js +0 -231
- package/web/dist/assets/chunk-JWPE2WC7-DcfbcRY9.js +0 -1
- package/web/dist/assets/chunk-POPQ4Y6H-BGw17ABw.js +0 -1
- package/web/dist/assets/chunk-SVP7TREG-CdlJhbkL.js +0 -88
- package/web/dist/assets/chunk-TICWLB2K-B30eF_rg.js +0 -206
- package/web/dist/assets/chunk-XXDRQBXY-D8lcfHi6.js +0 -1
- package/web/dist/assets/classDiagram-ZZMXUADV-CYExlNpU.js +0 -1
- package/web/dist/assets/classDiagram-v2-VYDZK3BY-BOCqfMKB.js +0 -1
- package/web/dist/assets/cose-bilkent-JH36ORCC-DeCM8oGs.js +0 -1
- package/web/dist/assets/cs-CZ-2BRQDIVT-DuMpkIPQ.js +0 -11
- package/web/dist/assets/cynefin-OW5HDTMX-Cd2IdigE.js +0 -178
- package/web/dist/assets/cynefinDiagram-5FMLGOSQ-CHHc8NfT.js +0 -62
- package/web/dist/assets/cytoscape.esm-D53fhQAk.js +0 -331
- package/web/dist/assets/da-DK-5WZEPLOC-D3x0whDi.js +0 -5
- package/web/dist/assets/dagre-GXQ25YYZ-BlnSzJm3.js +0 -4
- package/web/dist/assets/de-DE-XR44H4JA-PvFlf9-o.js +0 -8
- package/web/dist/assets/defaultLocale-DJbf9fPl.js +0 -1
- package/web/dist/assets/diagram-S7CK7UJ4-C8cpqu4g.js +0 -30
- package/web/dist/assets/diagram-UQ7AKVKN-CiE5Y0hF.js +0 -41
- package/web/dist/assets/diagram-VSXAHHWV-wFDYB5SE.js +0 -3
- package/web/dist/assets/diagram-VX7I27RA-BJB4bQJ8.js +0 -24
- package/web/dist/assets/diagram-Z3DM3KII-DDfhenF6.js +0 -24
- package/web/dist/assets/directory-open-01563666-CIgzoJPA.js +0 -1
- package/web/dist/assets/directory-open-4ed118d0-CnVxIWxR.js +0 -1
- package/web/dist/assets/ebnfDiagram-PWID7BFC-CKfU0hGL.js +0 -1
- package/web/dist/assets/el-GR-BZB4AONW-CSxYW7dT.js +0 -10
- package/web/dist/assets/erDiagram-RLTQ6QDP-DPjb8P7m.js +0 -99
- package/web/dist/assets/es-ES-U4NZUMDT-Bt1KalfH.js +0 -9
- package/web/dist/assets/eu-ES-A7QVB2H4-l87AYtlV.js +0 -11
- package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-Bold.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-Medium.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-Regular.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Assistant/Assistant-SemiBold.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Cascadia/CascadiaCode-Regular.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Liberation/LiberationSans-Regular.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Virgil/Virgil-Regular.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-019d66dcad46dc156b162d267f981c20.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-04b718e5623574919c8b0dea5f301444.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-069e77aac84590e2e991d0a0176d34f2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-06c77b8c66e51ed6c63ccb502dd8b8af.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-08e0dc436ad0ad61ba5558db0674d762.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-093b9ef39a46ceae95a1df18a0a3a326.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-095c169f3314805276f603a362766abd.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-09850c4077f3fffe707905872e0e2460.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0986d134c05864f5025962eef9f994a0.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0b5d723fdc4e249c140f0909e87d03b4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0f626226ba1272e832aea87bafd9720e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0f7fb1e0d5015bb1371343153ecf7ce3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0fa55a080fcd0f9dc2e0b0058b793df8.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-0facdf1ea213ba40261022f5d5ed4493.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-10a7ae9a371830a80c3d844acf1c02d7.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-112c051027b2d766c19a519f6ee1f4f7.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-11c345711937f0ba4b8f7b6b919c8440.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-12b52b58eb3df36804b9a654ec9ee194.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-13ae07ed2e272d26d59bc0691cd7117a.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-13d2887ec8ee73c43acdabc52a05af7b.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-145aa02cdd91946e67dc934e1acffe75.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-15dc6d811c9cd078f9086a740d5a1038.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-173945821411c09f70c95f98d590e697.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1b611157cd46bb184d4fa4dae2d6a2b8.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1e6fd68f1f3902ce48ce8c69df385622.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1ee544f0f1dac422545c505baa788992.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-1fdc0c67ed57263a80fd108c1f6ccf24.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-203b0e569e3b14aac86a003dc3fa523e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-20cc1bbf50e7efb442756cb605672c1f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-20e7bf72fa05de9adf7dbcc7bf51dde6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-21430ee05a1248901da8d0de08744d47.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-23686f7f29da6e8008c36dd3a80c83d6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-23ad2d71b280f00b1363b95b7bea94eb.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-23f228f3999c01983860012330e4be08.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-24476a126f129212beb33f66853ea151.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-24a21c1e4449222e8d1898d69ff3a404.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-25b7f38e18f035f96cb5e547bd2bd08c.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-29cec36cd205b211da97acabaa62f055.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2a26d20a23b00898ce82f09d2ee47c3f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2adbc89c11e65905393d3dfc468b9d5b.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2b7441d46298788ac94e610ffcc709b6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2b77e8ebfb2367ab2662396a60e7d320.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2cf96d082d35ea3d8106851223ad0d16.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2d43040e86ff03ba677f6f9c04cd0805.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-2e33e8dc771ef5e1d9127d60a6b73679.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-33432927cd87d40cfe393c7482bf221f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-353f33792a8f60dc69323ddf635a269e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-36925dfe329a45086cbb7fc5c20d45ac.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3717077e38f98d89eae729b6c14e56dc.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3756e81d3e149cf6099163ee79944fec.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-395c35dd584b56b0789f58a0559beaf1.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3c9de2ae0ea4bc91a510942dfa4be8d2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3cc70dbb64df5b21f1326cc24dee2195.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3e1f8f654357353bf0e04ba5c34b5f7f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3e63ed8162808a9e425ed80a8bc79114.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-3eaa538115d76932653c21d8dc28f207.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4095eb84ef3874e2600247bee0b04026.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-41521fade99856108931b4768b1b2648.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-450da755d5bcb70906e1295e559b9602.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-452225341522a7942f0f6aab1a5c91a3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4535823663ad81405188a528d8f2b1a2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4806e761d750087c2d734fc64596eaff.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4a0fdb40036e87b40aa08dd30584cb85.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4a38cc3e9cf104e69ba246d37f8cf135.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4aca6a43e59aceee2166b0c7e4e85ef1.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4bfaa8ffa64c5ee560aa2daba7c9cbd3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4dc6d5f188d5c96d44815cd1e81aa885.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4ddc14ed3eb0c3e46364317dfc0144a3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4ee10ae43505e2e0bc62656ced49c0fa.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-4f50e5136e136527280bc902c5817561.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-51502f1206be09c565f1547c406e9558.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-51a0e808bbc8361236ac521a119758a3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-52a84a22fd1369bffeaf21da2d6158dc.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5330a2119a716e4e7224ed108b085dac.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-543fa46ace099a7099dad69123399400.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-544fc28abe2c5c30e62383fd4dac255f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-54acdfc2166ad7fcbd074f75fd4a56ba.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5572b3513ba8df57a3d5d7303ee6b11b.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-56467a5c8840c4d23a60b2f935114848.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-56a32a7689abd0326e57c10c6c069bb4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-57862b464a55b18c7bf234ce22907d73.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-583d166e56ba0de4b77eabb47ef67839.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5882ffa04f32584d26109137e2da4352.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-58fd02350d0bc52cf1ca3bb32ce9766e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5935a5775af3d5c6307ac667bd9ae74e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-59e9ff77b0efaf684bc09274fb6908c9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5a1ce3117cfe90c48e8fb4a9a00f694d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5a45d991244d4c7140217e1e5f5ca4f4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5a7fac4b8b23a6e4e5ba0c9bf1756c91.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5b0ed6971aaab9c8ad563230bd5471a7.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-5d2898fbc097a7e24c6f38d80587621e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-603aefd23e350ba7eb124273e3c9bcf1.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-60a3089806700d379f11827ee9843b6b.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-60a41c7e1c68f22424e6d22df544bc82.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-642b26e2e5f5fb780b51b593dbc8c851.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-66493ba5a8367f2928812f446f47b56a.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-670ba603758d94268e8606f240a42e12.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-671a2c20b1eb9e4ef8a192833940e319.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-684d65f1793cac449dde5d59cb3c47fb.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-69c09cc5fa3e55c74fc4821f76909cc3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6ae5b42180ad70b971c91e7eefb8eba2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6e092f71c1e634059ada0e52abadce67.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6f3256af8454371776bc46670d33cc65.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-6fe5c5973cc06f74b2387a631ea36b88.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-70c2eb8d64e71a42a834eb857ea9df51.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-70e811fd7994e61f408c923de6ddd078.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7197d6fda6cba7c3874c53d6381ca239.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-72252d73220fa3cd856677888cee1635.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-72536a3d71b694a0d53dd90ddceae41e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-726303e0774b4e678bff8c2deb6ca603.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-733171b4ffcd17ea1fe1c0ba627173bf.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-739bc1a567439c7cffcd1614644593d2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-73e309718fd16cea44b4d54a33581811.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7494dc504ae00ee9cd0505f990f88c5d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-74e2263a91439c25b91d5132ce9f4d62.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-761d05e3cd968cf574166867998ef06a.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7718fe60986d8b42b1be9c5ace5ccf25.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-774d4f764a1299da5d28ec2f2ffe0d69.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-79d494361ae093b69e74ee9dbe65bfd4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-79f007c1c6d07557120982951ea67998.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7a07ddc0f0c0f5f4a9bad6ee3dda66b5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7ab2bed91166a9dca83a5ebfbe2a7f38.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7ccce86603f80a099ddb0cb21d4ae3e3.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7e4bde7e9c7f84cd34d8a845e384c746.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7e929f262f30c8ee78bf398150b1a7cd.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7eb9fffd1aa890d07d0f88cc82e6cfe4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-7f855356ab893b0d2b9c1c83b8116f0e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-829615148e6357d826b9242eb7fbbd1e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-866fa7613df6b3fd272bcfd4530c0bb9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-87599f94b6cc129d505b375798d0d751.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8c2f33cee3993174f7e87c28e4bf42ee.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8d3bcabb847b56243b16afe62adaaf21.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8de5b863cb50dfefdd07cb11c774d579.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8e9f97f01034820170065b2921b4fb5e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-8f476c4c99813d57cbe6eca4727388ad.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-903bb6865f3452e2fda42e3a25547bc5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-91ddb2969bf2d31ba02ad82998d1314c.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-938d90c10ff8c20386af7f242c05d6b0.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-93fc8f28a33234bcadf1527cafabd502.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-95429962233afd82db1c27df1500a28c.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9544732d2e62d1a429674f8ee41b5d3a.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9592bfc861f07bcb8d75c196b370e548.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-95bfd249da4902577b4b7d76ebdd0b44.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-968cffdc8ee679da094e77ebf50f58ef.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-97f7f48ce90c9429bf32ae51469db74d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-982b630266d87db93d2539affb1275c6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-98f2ad84457de7f3740d9920b8fa8667.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-99a16ef6a64934d5781933dbd9c46b2e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9cfb2a77a4e45025105ad29a1748b90d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9d81066dd2b337c938df6e90380a00dc.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-9eb5a99df4e76ac3363453ac9ca288b1.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a004ddfcb26e67bd6e678c8ed19e25ce.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a0ca5df4258213d7fc9fce80f65ce760.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a1f916d6039285c4ffb900cd654e418f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a203b91dad570bf05a58c3c3ddb529bf.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a365e82ed54697a52f27adcea1315fe8.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a4c34be6d42152e64b0df90bc4607f64.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-a7accba310e821da5505f71c03b76bdb.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-aa0d470430e6391eca720c7cfa44446f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-aa5c9ca6cf4fba00433b7aa3fa10671a.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ac9ceb44437becc3e9c4dbfebab7fc2d.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b1220a3c61f85cc0408deedb4c5f57a2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b358f7a51ece39a3247942b1feabdb29.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b57aaedfd8ebdf3931f25119dc6a5eb2.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b5c1596551c256e0e9cf02028595b092.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b6d128682ee29e471486354d486a1b90.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b6fd38ca30869792244804b04bc058da.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b7d203b051eff504ff59ddca7576b6a9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-b96d9226ce77ec94ceca043d712182e6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ba3de316d63c7e339987b16f41a0b879.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-bafff7a14c27403dcc6cf1432e8ea836.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-bd77e3c7f9e0b072d96af37f73d1aa32.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-be549ab72f0719d606a5c01e2c0219b6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c16ed9740b85badf16e86ea782a3062f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c1f94158256bb1f3bf665b053d895af9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c40533fdf4cc57177b12803598af7e59.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c4a687ac4f0c2766eefc9f77ed99cddf.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c69f61a4ab18d0488c8d1fc12e7028e8.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c8b71798409ccc126ee264a00aadcf21.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-c99eda15fc26a2941579560f76c3a5cf.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cb17fc3db95f6d139afc9d31a8e93293.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cbaaefaaf326668277aa24dfa93c4d28.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cd145ce4a0ea18469358df53c207bc1b.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cdbce89e82cc1ab53a2decbf5819278f.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ce4884f96f11589608b76b726a755803.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cf2cc71752631e579e35b0e423bf2638.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cf6ff4e0f491ca0cf3038187a997b9b4.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-cfb211578629b7e8153b37240de6a9d5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-d0cf73942fea1c74edbdf0b3011f4656.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-d2666cbed13462c5dc36fa2f15c202ca.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-d3716376641d615e2995605b29bca7b6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-dac48066b5883d8b4551fc584f0c2a3e.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-dbea1af6dcd9860be40c3d18254338f5.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e11567fd2accf9957cd0d3c2be937d87.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e2ead7ea7da0437f085f42ffc05f8d13.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e3fcf5180fd466c8915c4e8069491054.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e480d9c614742d05f0e78f274f1e69e6.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e4bca6cfa53e499cae0a6be4894a90e9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e51ef413167c6e14e0c0fdcc585f2fc9.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e5f453bb04da18eed01675eeebd88bf8.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-e656f091b9dc4709722c9f4b84d3c797.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ec181b795ac1fb5a50d700b6e996d745.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-ee8bae97908d5147b423f77ad0d3c1bb.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f0f13b5c60e0af5553bd359f5513be1b.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f2b54d4e7be0eaefe1c2c56836fa5368.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f56414bf9bced67990def8660e306759.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f5d079153c99a25b9be5b8583c4cc8a7.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f6032fc06eb20480f096199713f70885.woff2 +0 -0
- package/web/dist/assets/excalidraw/fonts/Xiaolai/Xiaolai-Regular-f8ee5d36068a42b51d0e4a1116cfcec1.woff2 +0 -0
- package/web/dist/assets/fa-IR-HGAKTJCU-DIaro9Hx.js +0 -8
- package/web/dist/assets/fi-FI-Z5N7JZ37-COLyTVSp.js +0 -6
- package/web/dist/assets/file-open-002ab408-Cy0lZgj6.js +0 -1
- package/web/dist/assets/file-open-7c801643-DbefhMI_.js +0 -1
- package/web/dist/assets/file-save-3189631c-BPCcZ2YS.js +0 -1
- package/web/dist/assets/file-save-745eba88-C1L7DNUT.js +0 -1
- package/web/dist/assets/flowDiagram-HODETNUW-CBEJA9iU.js +0 -168
- package/web/dist/assets/fr-FR-RHASNOE6-Dqi638pn.js +0 -9
- package/web/dist/assets/ganttDiagram-EL5Y4UJY-vAHRozpM.js +0 -292
- package/web/dist/assets/gitGraphDiagram-WWUBYQGX-DCXKE3o8.js +0 -106
- package/web/dist/assets/gl-ES-HMX3MZ6V-Dfcw_231.js +0 -10
- package/web/dist/assets/he-IL-6SHJWFNN-BSAgg49S.js +0 -10
- package/web/dist/assets/hi-IN-IWLTKZ5I-BqI-UNou.js +0 -4
- package/web/dist/assets/hu-HU-A5ZG7DT2-B16ap7C1.js +0 -7
- package/web/dist/assets/id-ID-SAP4L64H-BUqRAxnn.js +0 -10
- package/web/dist/assets/image-blob-reduce.esm-BusboIaP.js +0 -7
- package/web/dist/assets/index-jgQcOxOn.js +0 -330
- package/web/dist/assets/infoDiagram-27XIBGKW-vfG1s0OL.js +0 -2
- package/web/dist/assets/init-DJLlxTyT.js +0 -1
- package/web/dist/assets/ishikawaDiagram-5VMMS53U-Bci9k7OW.js +0 -70
- package/web/dist/assets/it-IT-JPQ66NNP-BWRN1Ku9.js +0 -11
- package/web/dist/assets/ja-JP-DBVTYXUO-No6piD4d.js +0 -8
- package/web/dist/assets/journeyDiagram-3NMN7TZE-DPaDQjfX.js +0 -139
- package/web/dist/assets/kaa-6HZHGXH3-DdHIcOCS.js +0 -1
- package/web/dist/assets/kab-KAB-ZGHBKWFO-2wPJRIz0.js +0 -8
- package/web/dist/assets/kanban-definition-UXKFOSKX-COZcNcrM.js +0 -89
- package/web/dist/assets/kk-KZ-P5N5QNE5-BnVddHiG.js +0 -1
- package/web/dist/assets/km-KH-HSX4SM5Z-CaQh_1Zz.js +0 -11
- package/web/dist/assets/ko-KR-MTYHY66A-BiAIKUW_.js +0 -9
- package/web/dist/assets/ku-TR-6OUDTVRD-Cmqyx_qg.js +0 -9
- package/web/dist/assets/layout-D1ZAr34W.js +0 -1
- package/web/dist/assets/linear-CMBY9Ynj.js +0 -1
- package/web/dist/assets/lt-LT-XHIRWOB4-FPPi26PI.js +0 -3
- package/web/dist/assets/lv-LV-5QDEKY6T-CdfhNxb4.js +0 -7
- package/web/dist/assets/mindmap-definition-YA3MSWOX-DO_oVGmk.js +0 -96
- package/web/dist/assets/mr-IN-CRQNXWMA-D5Mv5ubd.js +0 -13
- package/web/dist/assets/my-MM-5M5IBNSE-CG_XcsDc.js +0 -1
- package/web/dist/assets/nb-NO-T6EIAALU-ButcGDIE.js +0 -10
- package/web/dist/assets/nl-NL-IS3SIHDZ-B4RCIW6U.js +0 -8
- package/web/dist/assets/nn-NO-6E72VCQL-Xesywhmp.js +0 -8
- package/web/dist/assets/oc-FR-POXYY2M6-DScPx0Ux.js +0 -8
- package/web/dist/assets/ordinal-DwN7YuHj.js +0 -1
- package/web/dist/assets/pa-IN-N4M65BXN-VndNSoj5.js +0 -4
- package/web/dist/assets/pegDiagram-XKGWAZYB-DDMhIEdn.js +0 -1
- package/web/dist/assets/percentages-BXMCSKIN-VuFdtdZF.js +0 -215
- package/web/dist/assets/percentages-BXMCSKIN.css +0 -1
- package/web/dist/assets/pica-GNj3eWcB.js +0 -7
- package/web/dist/assets/pieDiagram-E7YTZNPT-CV4Axk4E.js +0 -39
- package/web/dist/assets/pl-PL-T2D74RX3-B2jYVPHk.js +0 -9
- package/web/dist/assets/plugin-BAyOcS28.js +0 -3
- package/web/dist/assets/plugin3.css +0 -1
- package/web/dist/assets/pt-BR-5N22H2LF-cpUpSu3B.js +0 -9
- package/web/dist/assets/pt-PT-UZXXM6DQ-Bm5o1aNS.js +0 -9
- package/web/dist/assets/quadrantDiagram-AXDQQJYC-BrOice72.js +0 -7
- package/web/dist/assets/railroadDiagram-O6MQD6OU-CkIA7mzY.js +0 -1
- package/web/dist/assets/requirementDiagram-BXWQKSXE-BLZfWa3W.js +0 -84
- package/web/dist/assets/ro-RO-JPDTUUEW-D5ewbr8v.js +0 -11
- package/web/dist/assets/roundRect-lnpiQ-4W.js +0 -1
- package/web/dist/assets/ru-RU-B4JR7IUQ-BM4UrPha.js +0 -9
- package/web/dist/assets/sankeyDiagram-P5KCCOFB-yD9hxLJX.js +0 -40
- package/web/dist/assets/sequenceDiagram-WJ2MYXX4-CVqyJvFC.js +0 -162
- package/web/dist/assets/si-LK-N5RQ5JYF-BnIjQwpQ.js +0 -1
- package/web/dist/assets/sizeCapture-INFHLROL-CkvfPyS2.js +0 -1
- package/web/dist/assets/sk-SK-C5VTKIMK-C0h1qdby.js +0 -6
- package/web/dist/assets/sl-SI-NN7IZMDC-DNV45ffS.js +0 -6
- package/web/dist/assets/stateDiagram-D77RDMKH-Nh0i53vT.js +0 -1
- package/web/dist/assets/stateDiagram-v2-MP3YSRHH-BM-K9bmc.js +0 -1
- package/web/dist/assets/subset-shared.chunk-TuA1fSFQ.js +0 -84
- package/web/dist/assets/subset-worker.chunk-BTM-pM_r.js +0 -1
- package/web/dist/assets/sv-SE-XGPEYMSR-uosawlJJ.js +0 -10
- package/web/dist/assets/swimlanes-42K2YHIH-CrScVzJe.js +0 -1
- package/web/dist/assets/swimlanesDiagram-VR7AAH4N-BSX45RRS.js +0 -8
- package/web/dist/assets/ta-IN-2NMHFXQM-Dt9s5QjW.js +0 -9
- package/web/dist/assets/th-TH-HPSO5L25-BxufhAju.js +0 -2
- package/web/dist/assets/timeline-definition-24CTP7MA-CJbJt2dR.js +0 -120
- package/web/dist/assets/tr-TR-DEFEU3FU-BIQE9Xm7.js +0 -7
- package/web/dist/assets/uk-UA-QMV73CPH-DhyX8oOD.js +0 -6
- package/web/dist/assets/vennDiagram-4TSXK5OY-Dvn1Sbov.js +0 -34
- package/web/dist/assets/vi-VN-M7AON7JQ-BCPc5pcG.js +0 -5
- package/web/dist/assets/wardleyDiagram-VM6X3IG4-D6lZMm5T.js +0 -78
- package/web/dist/assets/xychartDiagram-S5SC5T6Z-h2UKcCAm.js +0 -7
- package/web/dist/assets/zh-CN-LNUGB5OW-n8E34oE-.js +0 -10
- package/web/dist/assets/zh-HK-E62DVLB3-BaW9jv7O.js +0 -1
- package/web/dist/assets/zh-TW-RAJ6MFWO-Ba9nSPFU.js +0 -9
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="1cdc12a6-b808-46ff-9738-9ce130403211",r._sentryDebugIdIdentifier="sentry-dbid-1cdc12a6-b808-46ff-9738-9ce130403211")}catch{}})();import{resolve as Se}from"node:path";import{lstat as Z,readdir as _e,rename as ee}from"node:fs/promises";import{join as k}from"node:path";import{createHash as se}from"node:crypto";var o=class extends Error{code;status;reason;constructor(e,t,n={}){super(t),this.name="HostedPluginError",this.code=e,this.status=n.status,this.reason=n.reason}};var L=r=>r.code==="ENOENT";var qe={files:4096,total:128*1024*1024,js:16*1024*1024,css:4*1024*1024,font:8*1024*1024,other:2*1024*1024};var h=r=>se("sha256").update(r).digest("hex");import{constants as M}from"node:fs";import{lstat as ae,mkdir as ce,open as q,rename as le,unlink as z}from"node:fs/promises";import{dirname as fe,join as de}from"node:path";import{randomUUID as ue}from"node:crypto";import{setTimeout as pe}from"node:timers/promises";async function S(r){await ce(r,{recursive:!0,mode:448});let e=await ae(r);if(!e.isDirectory()||e.isSymbolicLink())throw new o("invalid_storage","Plugin storage must be a real directory")}async function w(r,e){let t;try{t=await q(r,M.O_RDONLY|M.O_NONBLOCK|(M.O_NOFOLLOW??0))}catch(n){if(L(n))return null;throw n}try{let n=await t.stat();if(!n.isFile()||n.nlink>1||n.size>e)throw new o("invalid_storage","Invalid storage record size or type");let s=Buffer.alloc(Math.min(n.size+1,e+1)),i=0;for(;i<s.length;){let a=await t.read(s,i,s.length-i,i);if(!a.bytesRead)break;i+=a.bytesRead}if(i>e||i!==n.size)throw new o("invalid_storage","Storage record changed during read");return s.subarray(0,i)}finally{await t.close()}}async function x(r,e=2*1024*1024){let t=await w(r,e);if(!t)return null;try{return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(t))}catch{throw new o("invalid_storage","Invalid JSON storage record; original bytes preserved")}}async function b(r){let e=await w(r,2097152);if(e===null)return null;let t;try{t=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(e))}catch{throw new o("gc_recovery_required",`Invalid journal ${r}; stop all owners and inspect original bytes`)}if(!t||typeof t!="object"||Array.isArray(t))throw new o("gc_recovery_required",`Invalid journal ${r}; original bytes preserved`);return t}async function m(r,e){let t=`${r}.${ue()}.tmp`,n=await q(t,"wx",384);try{try{await n.writeFile(JSON.stringify(e)),await n.sync()}finally{await n.close()}await le(t,r);let s;try{s=await q(fe(r),"r"),await s.sync()}catch(i){if(!["EINVAL","EPERM","EACCES","EISDIR","ENOTSUP","EBADF"].includes(i.code??""))throw i}finally{await s?.close()}}finally{await z(t).catch(()=>{})}}async function P(r,e,t=2e3){await S(r);let n=de(r,"transaction.lock"),s=Date.now()+t,i;for(;;)try{i=await q(n,"wx",384);break}catch(a){if(a.code!=="EEXIST")throw a;if(Date.now()>=s)throw new o("storage_busy","Plugin storage is locked; stop all writers before recovering an abandoned lock");await pe(10)}try{return await i.writeFile(JSON.stringify({pid:process.pid,createdAt:new Date().toISOString()})),await e()}finally{await i.close(),await z(n)}}import{lstat as C,mkdir as he,open as B,realpath as K,readdir as F,link as ge,rename as we,unlink as _,copyFile as me,rm as ye}from"node:fs/promises";import{dirname as ve,isAbsolute as V,join as d,relative as X,resolve as be,sep as J,win32 as ke}from"node:path";import{randomUUID as W}from"node:crypto";var j=192*1024*1024,A=512*1024,Q=r=>typeof r=="string"&&/^[a-f0-9-]{36}$/.test(r);function Ie(r){if(!r||typeof r!="object"||Array.isArray(r))throw new o("invalid_input","Expected object input");return r}function Y(r){if(typeof r!="string"||!/^[\w.-]{1,160}$/.test(r)||r==="."||r==="..")throw new o("invalid_input","Invalid state key");return r}function N(r){if(r&&(!Q(r.stateRef)||typeof r.version!="string"||!Number.isSafeInteger(r.generation)||r.generation<1||!Number.isSafeInteger(r.schema)||r.schema<1||typeof r.enabled!="boolean"||typeof r.operationId!="string"))throw new o("invalid_storage","Invalid active plugin record");return r}var H=class{root;pluginId;legacy;checkpoint;constructor(e,t,n,s){this.root=d(e,h(t)),this.pluginId=t,this.legacy=n,this.checkpoint=s}active(){return x(d(this.root,"active.json")).then(N)}async recover(){return P(this.root,async()=>{let e=await this.active(),t=await b(d(this.root,"transition.json"));if(!t)return{active:e,recovered:"none"};if(!t.next||!Object.hasOwn(t,"before")||Object.keys(t).some(a=>!["version","before","next"].includes(a))||Object.hasOwn(t,"version")&&t.version!==1)throw new o("invalid_storage","Invalid activation journal; stop all owners and inspect transition.json");N(t.next),N(t.before);let n=e?.operationId===t.next.operationId?"committed":"not_committed";if(!((a,c)=>a===null||c===null?a===c:["version","generation","stateRef","schema","enabled","operationId"].every(f=>a[f]===c[f]))(e,n==="committed"?t.next:t.before))throw new o("gc_recovery_required","Activation journal does not match the active pointer; original bytes preserved");let i=t.before;if(n==="committed"&&i&&i.stateRef!==e.stateRef&&await m(d(this.root,"previous.json"),i),n==="committed"){let a=await b(d(this.root,"fork.json"));a?.version===1&&a.stateRef===e.stateRef&&Object.keys(a).every(c=>["version","stateRef"].includes(c))&&await _(d(this.root,"fork.json"))}return await _(d(this.root,"transition.json")),{active:e,recovered:n}})}async activate(e,t){return P(this.root,async()=>{let n=await this.active();if((n?.generation??0)!==e)throw new o("stale_generation","Plugin activation changed concurrently");let s=await b(d(this.root,"fork.json"));if(s&&(s.version!==1||s.stateRef!==t.stateRef||Object.keys(s).some(a=>!["version","stateRef"].includes(a))))throw new o("gc_recovery_required","Activation refused: unresolved fork.json belongs to another target; stop all owners and inspect it");let i=N({...t,generation:e+1,operationId:W()});await S(d(this.root,"states")),await S(d(this.root,"states",i.stateRef)),await m(d(this.root,"transition.json"),{version:1,before:n,next:i}),await this.checkpoint?.("prepared");try{await m(d(this.root,"active.json"),i)}catch(a){if((await this.active())?.operationId!==i.operationId)throw a}await this.checkpoint?.("committed");try{n&&n.stateRef!==i.stateRef&&await m(d(this.root,"previous.json"),n),await _(d(this.root,"transition.json")),await _(d(this.root,"fork.json")).catch(()=>{})}catch{}return await this.checkpoint?.("cleaned"),i})}async forkState(e){return P(this.root,async()=>{let t=await this.assertGeneration(e,!1),n=W(),s=d(this.root,"states",n);if(await b(d(this.root,"fork.json")))throw new o("gc_recovery_required","Unresolved fork.json; stop all owners and inspect the reserved state before retrying");await m(d(this.root,"fork.json"),{version:1,stateRef:n}),await S(s);let i=d(this.root,"states",t.stateRef);for(let a of await F(i)){if(!/^[a-f0-9]{64}\.json$/.test(a))throw new o("invalid_storage","Unexpected state file");if(!await w(d(i,a),j))throw new o("invalid_storage","Missing state file");await me(d(i,a),d(s,a))}return await this.checkpoint?.("forked"),n})}async collect(e){return P(this.root,async()=>{for(let l of["transition.json","fork.json"])if(await w(d(this.root,l),2*1024*1024))throw new o("gc_recovery_required",`GC refused: unresolved ${l}; stop all owners and inspect recovery references`);let t=await this.active(),n=N(await b(d(this.root,"previous.json")));if(!t&&await w(d(this.root,"active.json"),2*1024*1024))throw new o("gc_recovery_required","GC refused: null active pointer; restore activation metadata before cleanup");let s=[t,n].filter(l=>!!l),i=d(this.root,"states");await S(i);let a=await F(i),c=new Set(s.map(l=>l.stateRef));for(let l of a){if(!Q(l))throw new o("gc_recovery_required","GC refused: unexpected state directory; inspect states before cleanup");let u=d(i,l),p=await C(u);if(!p.isDirectory()||p.isSymbolicLink())throw new o("gc_recovery_required","GC refused: linked/non-directory state snapshot");for(let g of await F(u)){let y=await C(d(u,g));if(!/^[a-f0-9]{64}\.json$/.test(g)||!y.isFile()||y.isSymbolicLink()||y.nlink!==1)throw new o("gc_recovery_required","GC refused: unexpected snapshot content; original bytes preserved");if(!c.has(l)){let v=await x(d(u,g),j);if(!v)throw new o("gc_recovery_required","GC refused: missing snapshot record");if(Object.hasOwn(v,"committed")){let I=v;if(Object.keys(I).some($=>!["requestId","inputHash","nextHash","committed"].includes($))||I.committed!==!0||!/^[a-f0-9]{64}$/.test(I.inputHash)||!/^[a-f0-9]{64}$/.test(I.nextHash)||typeof I.requestId!="string")throw new o("gc_recovery_required",`GC refused: unresolved file intent in states/${l}; reconcile the workspace save before cleanup`)}else{if(Object.keys(v).some(I=>!["revision","schema","value","requestId","inputHash"].includes(I)))throw new o("gc_recovery_required","GC refused: unknown snapshot envelope; original bytes preserved");this.validateState(v)}}}}for(let l of c)if(!a.includes(l))throw new o("gc_recovery_required","GC refused: referenced snapshot is missing; restore recovery data first");let f=await e(s);for(let l of a)c.has(l)||await ye(d(i,l),{recursive:!0,force:!0});return f})}async assertGeneration(e,t=!0){let n=await this.active();if(!n||n.generation!==e||t&&!n.enabled)throw new o("stale_generation","Plugin generation is no longer active");return n}scopeKey(e){if(!e.scope||typeof e.scope.cwd!="string"||!e.scope.cwd||typeof e.scope.sessionId!="string"||!e.scope.sessionId||typeof e.scope.workspaceId!="string"||!e.scope.workspaceId)throw new o("invalid_scope","Missing authenticated plugin scope");return JSON.stringify([e.scope.workspaceId,e.scope.cwd,e.scope.sessionId])}statePath(e,t,n){return d(this.root,"states",e.stateRef,`${h(this.scopeKey(t)+":state:"+n)}.json`)}async call(e,t,n){if(!Number.isSafeInteger(e.generation)||!/^[\w-]{1,160}$/.test(e.requestId))throw new o("invalid_lease","Invalid invocation lease");this.scopeKey(e);let s=Ie(n);return P(this.root,async()=>{let i=await this.assertGeneration(e.generation);switch(t){case"state.read":{let a=await x(this.statePath(i,e,Y(s.key)),j);return a?(this.validateState(a),{revision:a.revision,schema:a.schema,value:a.value}):null}case"state.compareAndSwap":{let a=this.statePath(i,e,Y(s.key));if(!Number.isSafeInteger(s.expectedRevision)||s.expectedRevision<0||s.schema!==i.schema||!Object.hasOwn(s,"value"))throw new o("invalid_input","Invalid state revision or schema");if(JSON.stringify(s.value)===void 0)throw new o("invalid_input","State value must be JSON serializable");let c=JSON.stringify(s);if(Buffer.byteLength(c)>j)throw new o("state_too_large","Plugin state exceeds limit");let f=await x(a,j);f&&this.validateState(f);let l=h(c);if(f?.requestId===e.requestId&&f.inputHash===l)return{revision:f.revision,schema:f.schema,value:f.value};if((f?.revision??0)!==s.expectedRevision)throw new o("revision_conflict","Plugin state changed concurrently");let u={revision:s.expectedRevision+1,schema:i.schema,value:s.value,requestId:e.requestId,inputHash:l};return await m(a,u),{revision:u.revision,schema:u.schema,value:u.value}}case"workspace.read":{let{target:a}=await this.fileTarget(e.scope.cwd,s.path),c=s.maxBytes===void 0?A:s.maxBytes;if(!Number.isSafeInteger(c)||c<=0||c>A)throw new o("invalid_input","Invalid workspace read limit");let f=await w(a,c);return f?{text:new TextDecoder("utf-8",{fatal:!0}).decode(f),hash:h(f)}:null}case"workspace.commit":return this.commitFile(i,e,s);case"legacy.read":return this.legacy?this.legacy(e):null;default:throw new o("method_denied","Unknown host broker method")}})}validateState(e){if(!Number.isSafeInteger(e.revision)||e.revision<1||!Number.isSafeInteger(e.schema)||e.schema<1||!Object.hasOwn(e,"value")||typeof e.requestId!="string"||!/^[a-f0-9]{64}$/.test(e.inputHash))throw new o("invalid_storage","Invalid plugin state; original bytes preserved")}async fileTarget(e,t,n=!1){if(typeof t!="string"||t.length>4096||!t.endsWith(".excalidraw")||t.includes("\\")||t.includes("\0")||V(t)||ke.isAbsolute(t))throw new o("invalid_path","Use a workspace-relative .excalidraw path");let s=await K(e),i=be(s,t),a=X(s,i);if(!a||a===".."||a.startsWith(`..${J}`)||V(a))throw new o("invalid_path","Workspace path escapes root");let c=s,f=a.split(J);for(let u=0;u<f.length;u++){c=d(c,f[u]);let p;try{p=await C(c)}catch(g){if(!L(g))throw g;if(u<f.length-1){if(!n||X(s,c)!=="diagrams")throw new o("invalid_path","Workspace directory does not exist");try{await he(c,{mode:448})}catch(y){if(y.code!=="EEXIST")throw y}p=await C(c)}}if(p&&(p.isSymbolicLink()||(u<f.length-1?!p.isDirectory():!p.isFile()||p.nlink!==1)))throw new o("invalid_path","Workspace path contains a link or non-regular file")}let l=await K(ve(i));if(l!==s&&!l.startsWith(s+J))throw new o("invalid_path","Workspace directory changed");return{target:i,parent:l}}async commitFile(e,t,n){if(typeof n.text!="string"||Buffer.byteLength(n.text)>A||!(n.expectedHash===null||typeof n.expectedHash=="string"&&/^[a-f0-9]{64}$/.test(n.expectedHash)))throw new o("invalid_input","Invalid file content or expected hash");let{target:s,parent:i}=await this.fileTarget(t.scope.cwd,n.path,!0),a=d(this.root,"states",e.stateRef,`${h(this.scopeKey(t)+":file:"+t.requestId+":"+String(n.path))}.json`),c=h(JSON.stringify(n)),f=h(n.text),l=await x(a);if(l&&(l.requestId!==t.requestId||l.inputHash!==c||l.nextHash!==f))throw new o("duplicate_request","Request ID was reused with different content");let u;try{u=await B(`${s}.lock`,"wx",384)}catch(g){throw g.code==="EEXIST"?new o("file_busy","Workspace file is locked; original file preserved"):g}let p;try{await u.writeFile(JSON.stringify({pid:process.pid,requestId:t.requestId}));let g=await w(s,A),y=g?h(g):null;if(l&&y===f)return{hash:f};if(l?.committed||y!==n.expectedHash)throw new o("file_conflict","Workspace file already exists or changed externally");await m(a,{requestId:t.requestId,inputHash:c,nextHash:f,committed:!1}),p=d(i,`.plugin-${W()}.tmp`);let v=await B(p,"wx",384);try{await v.writeFile(n.text),await v.sync()}finally{await v.close()}if((await this.fileTarget(t.scope.cwd,n.path)).parent!==i)throw new o("file_conflict","Workspace directory changed during save");let $=await w(s,A);if(($?h($):null)!==n.expectedHash)throw new o("file_conflict","Workspace file changed during save");if(await this.assertGeneration(t.generation),n.expectedHash===null){try{await ge(p,s)}catch(G){throw G.code==="EEXIST"?new o("file_conflict","Workspace file was created concurrently"):G}await _(p),p=void 0}else await we(p,s),p=void 0;return await m(a,{requestId:t.requestId,inputHash:c,nextHash:f,committed:!0}),{hash:f}}finally{p&&await _(p).catch(()=>{}),await u.close(),await _(`${s}.lock`)}}};var U="ALL_HOSTS_AND_PLUGIN_WORKERS_STOPPED_AND_BACKUP_VERIFIED";async function T(r){let e=[];async function t(n,s=""){let i=await Z(n);if(!i.isDirectory()||i.isSymbolicLink())throw new o("invalid_storage","Recovery refuses linked/non-directory storage");for(let a of(await _e(n)).sort()){let c=k(n,a),f=s+a,l=await Z(c);if(l.isSymbolicLink())throw new o("invalid_storage","Recovery refuses links");if(l.isDirectory())await t(c,f+"/");else{if(e.length>=1e4)throw new o("invalid_storage","Recovery inspection budget exceeded");let u=await w(c,192*1024*1024);if(!u)throw new o("invalid_storage","Recovery input disappeared");e.push({path:f,bytes:u.length,sha256:h(u)})}}}return await t(r),{fingerprint:h(JSON.stringify(e)),files:e,warning:"Offline only: externally stop/fence ALL hosts and plugin workers, back up storage and workspace files. Never infer stopped ownership from PID alone."}}async function te(r,e,t,n){let s=new H(r,e),i=await T(s.root);if(n!==U)throw new o("confirmation_required","Explicit stopped-owner and verified-backup confirmation required");if(i.fingerprint!==t)throw new o("recovery_changed","Storage changed since inspection");return s.recover()}async function ne(r,e,t,n){let s=new H(r,e),i=s.root;if(n!==U)throw new o("confirmation_required","Explicit stopped-owner and verified-backup confirmation required");let a=await T(i);if(a.fingerprint!==t)throw new o("recovery_changed","Storage changed since inspection");if(await w(k(i,"transition.json"),2*1024*1024))throw new o("gc_recovery_required","Reconcile transition.json using broker.recover before resolving a fork");let c=await b(k(i,"fork.json")),f=await s.active(),l=await b(k(i,"previous.json"));if(!c||c.version!==1||!/^[a-f0-9-]{36}$/.test(c.stateRef)||Object.keys(c).some(p=>!["version","stateRef"].includes(p))||!f||l&&typeof l.stateRef!="string"||[f?.stateRef,l?.stateRef].includes(c.stateRef))throw new o("gc_recovery_required","Fork is unknown or referenced by active/previous; original bytes preserved");let u=`recovered-${t}-fork.json`;if(a.files.some(p=>p.path===u))throw new o("recovery_changed","Recovery evidence already exists");return await ee(k(i,"fork.json"),k(i,u)),{recovered:"fork.json",stateRef:c.stateRef,fingerprint:t}}async function re(r,e,t){if(t!==U||!/^[a-f0-9]{64}$/.test(e))throw new o("confirmation_required","Explicit stopped-owner and verified-backup confirmation required");let n=await T(r);if(n.fingerprint!==e)throw new o("recovery_changed","Storage changed since inspection; nothing recovered, inspect again");let s=n.files.filter(i=>["runtime.lock","transaction.lock"].includes(i.path));for(let i of s){let a=`recovered-${e}-${i.path}.json`;if(n.files.some(c=>c.path===a))throw new o("recovery_changed","Recovery evidence already exists")}for(let i of s)await ee(k(r,i.path),k(r,`recovered-${e}-${i.path}.json`));return await m(k(r,`recovery-${e}.json`),{version:1,fingerprint:e,locks:s,confirmation:t,recoveredAt:new Date().toISOString()}),{recovered:s.map(i=>i.path),fingerprint:e}}var[R,ie,E,O,D,...xe]=process.argv.slice(2),Pe=ie&&!xe.length&&(R==="inspect"&&!E&&!O&&!D||R==="recover-locks"&&E&&O&&!D||["recover-fork","reconcile-transition"].includes(R??"")&&E&&O&&D);if(!Pe)console.error(`Offline only. Usage: node --experimental-strip-types scripts/hosted-stopped-recovery.ts
|
|
2
|
+
inspect BROKER_ROOT
|
|
3
|
+
recover-locks BROKER_ROOT FINGERPRINT CONFIRMATION
|
|
4
|
+
reconcile-transition DATA_ROOT PLUGIN_ID FINGERPRINT CONFIRMATION
|
|
5
|
+
recover-fork DATA_ROOT PLUGIN_ID FINGERPRINT CONFIRMATION
|
|
6
|
+
CONFIRMATION = ALL_HOSTS_AND_PLUGIN_WORKERS_STOPPED_AND_BACKUP_VERIFIED`),process.exitCode=2;else try{let r=Se(ie),e=R==="inspect"?await T(r):R==="recover-locks"?await re(r,E,O):R==="recover-fork"?await ne(r,E,O,D):await te(r,E,O,D);console.log(JSON.stringify(e,null,2))}catch(r){console.error(r instanceof Error?r.message:"Recovery failed"),process.exitCode=1}var ft=void 0;export{ft as default};
|
|
7
|
+
|
|
8
|
+
//# debugId=1cdc12a6-b808-46ff-9738-9ce130403211
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="15cc4280-e2ee-45ad-aded-b138e3e4c78a",t._sentryDebugIdIdentifier="sentry-dbid-15cc4280-e2ee-45ad-aded-b138e3e4c78a")}catch{}})();import{AsyncLocalStorage as y}from"node:async_hooks";import{pathToFileURL as b}from"node:url";function c(t){let e=t&&typeof t=="object"?t:{};return{code:typeof e.code=="string"&&/^[\w.-]{1,80}$/.test(e.code)?e.code:"plugin_failed",message:t instanceof Error?t.message:"Plugin operation failed",...Number.isInteger(e.status)&&Number(e.status)>=400&&Number(e.status)<=599?{status:Number(e.status)}:{},...typeof e.reason=="string"&&/^[\w.-]{1,80}$/.test(e.reason)?{reason:e.reason}:{}}}var l=new y,s=new Map,v=0,n,a=t=>{process.connected&&process.send?.(t)};process.on("message",t=>{if(!t||typeof t!="object")return;let e=t;if(e.type==="broker-response"&&typeof e.id=="string"){let r=s.get(e.id);if(!r)return;if(s.delete(e.id),e.ok)r.resolve(e.value);else{let o=e.error;r.reject(Object.assign(new Error(o?.message??"Host broker rejected request"),{code:o?.code,status:o?.status,reason:o?.reason}))}return}if(e.type!=="request"||typeof e.id!="string"||typeof e.method!="string")return;let i=e.id;(async()=>{switch(e.method){case"initialize":{if(n)throw new Error("Already initialized");let r=e.input,o=await import(b(r.entry).href);if(typeof o.createRuntime!="function")throw new Error("Missing createRuntime export");return n=await o.createRuntime({pluginId:r.pluginId,version:r.version,generation:r.generation,broker:{call(f,g){let u=l.getStore();if(!u)return Promise.reject(new Error("Broker calls require an active invocation"));if(s.size>=64)return Promise.reject(new Error("Too many broker requests"));let d=`b${++v}`;return new Promise((m,w)=>{s.set(d,{resolve:m,reject:w}),a({type:"broker-request",id:d,invocationId:u.requestId,method:f,input:g})})}}}),{initialized:!0}}case"describe":if(!n)throw new Error("Not initialized");return n.describe();case"health":if(!n)throw new Error("Not initialized");return n.health();case"invoke":{if(!n)throw new Error("Not initialized");let r=e.input;return l.run(r,()=>n.invoke(r))}case"dispose":return await n?.dispose?.(),{disposed:!0};default:throw new Error("Unknown runtime operation")}})().then(r=>a({type:"response",id:i,ok:!0,value:r}),r=>a({type:"response",id:i,ok:!1,error:c(r)}))});process.on("disconnect",()=>{for(let t of s.values())t.reject(new Error("Host disconnected"));s.clear(),process.exitCode=1,Promise.resolve(n?.dispose?.()).finally(()=>process.exit(1))});var H=void 0;export{H as default};
|
|
2
|
+
|
|
3
|
+
//# debugId=15cc4280-e2ee-45ad-aded-b138e3e4c78a
|
package/docs/diagrams.md
CHANGED
|
@@ -1,72 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Optional official Excalidraw plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Excalidraw is **not bundled or installed by default**. In **Plugins → Hosted plugins**, explicitly install and enable `@chengzhiyi/pi-excalidraw`. The offline official card contains metadata only; opening it does not contact npm or download editor code/fonts. Installation needs an available compatible official release. The verification artifact used on this branch is not evidence of npm publication.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The retired `PI_WEBAPP_HOSTED_EXCALIDRAW` flag is ignored, including `0`. Files, Terminal, Git and protocol-v1 plugins retain their existing lifecycle. An unsupported SDK fails explicitly rather than restoring builtin drawings or reloading sessions. This branch verifies SDK 1.3.0.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
2. The agent reads `excalidraw_read_me` and calls `excalidraw_create_view`. The drawing appears in that tool's result, **before the final answer**, not as a separate application appended to the answer. A new diagram is automatically materialized when its preview becomes visible; there is no initial acceptance step. The backend still truthfully reports `pending_canvas` until a browser has materialized it.
|
|
9
|
-
3. Click **Edit**. The right panel contains **the native Excalidraw editor**, without an outer save toolbar, second prompt field, suggestions or diagram list. Drag, edit text, zoom and use native undo/redo. The optional workbench **Excalidraw** entry opens a blank native canvas directly, including without a model.
|
|
10
|
-
4. Continue asking for changes **in the main chat**. All loaded diagram models in this session flush pending manual changes before the prompt is sent. `diagram_read({})` reads the active drawing and latest revision; selecting an editor focuses it. `diagram_patch` proposes local changes. Existing-diagram modifications have **Apply edits / Keep original in chat**, never a review form in the panel. An outdated candidate cannot overwrite newer manual edits. When multiple drawings could be intended, clarify which one; active means the latest created or explicitly focused drawing, not semantic intent inference.
|
|
11
|
-
5. The hamburger menu starts with **official local menu items**: Open, Save to… (browser source file), Export image… (native PNG/SVG/clipboard options), Find on canvas, Command palette, Help and Reset the canvas. Official Save to active file appears only when a browser file handle exists. Theme still follows the host. The custom **Workspace & backups** section (including duplicate import/download/PNG actions and the backup-browser dialog) has been removed, not merely collapsed. Use official Open / Save to… / Export image… for local files and images. The existing Ctrl/Cmd+S workspace-save shortcut remains separate and asks for a workspace-relative path; a browser-native file save does not mark the workspace file saved or bypass its hash protection. Native Open replaces the current scene after the official confirmation and keeps its diagram identity. Unsupported image/embed content is rejected, not silently dropped. The old workspace-path Open prompt remains removed.
|
|
12
|
-
6. Save defaults to `diagrams/<id>.excalidraw`. A new path must not exist. An existing file can only be updated from its loaded hash. Conflicts preserve the current draft; use a new path or explicitly reload. There is no force-overwrite button. Source download remains available even if synchronization fails. PNG exports the current confirmed scene, not an unaccepted modification.
|
|
13
|
-
7. Browser backups remain best-effort, not durable workspace files. Removing their menu browser does not delete backups or disable automatic same-drawing recovery detection; a detected newer backup still requires an explicit choice before restoring. Backend import/save actions and their scope/revision/file protections remain available.
|
|
14
|
-
8. New graph/element candidates and every successful hand-edit sync now create a backend **local checkpoint with the same drawing ID**. After restarting the backend, the original conversation card and editor can read that state without a browser backup or manual source-file save. This is distinct from exporting a user-owned `.excalidraw` file. Legacy drawings lost before this change cannot be reconstructed without actual retained data. A truly unavailable card shows a short status and **no Edit button**; it does not create a blank replacement. Already-open unavailable editor routes can still fall back to a writable blank canvas at 100%, but no recovery banner or automatic path dialog is shown.
|
|
7
|
+
## Drawing workflow
|
|
15
8
|
|
|
16
|
-
|
|
9
|
+
- Ask the main conversation to draw. `excalidraw_read_me` describes compact inert elements; `excalidraw_create_view` creates a tool-result preview. New untouched revision-zero scenes initialize in the browser. Historical tool arguments are never treated as the latest scene.
|
|
10
|
+
- **Edit** opens the native editor, with hand editing, native undo/redo and native file/export menu. No extra model or drawing-service account is needed. PNG requires a browser.
|
|
11
|
+
- Native scenes are authoritative. Sync uses exact revisions; existing replacements/patches remain candidates for explicit acceptance/rejection. Hand edits invalidate stale acceptance rather than disappearing.
|
|
12
|
+
- The workbench entry also supports a blank canvas without a model. Browser backups are recovery data, not committed backend drafts.
|
|
13
|
+
- Workspace saves use relative `.excalidraw` paths, a loaded SHA-256, exclusive sibling locks and atomic commits. New paths are no-replace. External edits, symlinks, invalid paths, oversized files and stale generations fail closed. There is no force-overwrite button.
|
|
14
|
+
- Export source for portable independent backups. No remote sharing/upload action or cloud collaboration is introduced. Configured model calls are separate from local rendering.
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
The plugin owns `excalidraw_read_me`, `excalidraw_create_view`, `diagram_reference`, `diagram_create`, `diagram_read`, and `diagram_patch`. The host never registers a second builtin owner. It loads only verified package resources in isolated lifecycle realms under the existing strict CSP (no unsafe-eval or remote script/font sources).
|
|
19
17
|
|
|
20
|
-
|
|
18
|
+
## Existing drawings and browser backups
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
Stop all old bridge/writer processes before migration; binaries predating the cooperative marker cannot be fenced by it. The host's opaque compatibility reader verifies legacy envelope scope, identity, filenames and byte budgets under the original `scope.lock`. The plugin validates drawing data and imports by CAS once. IDs, scene geometry, revision, candidate (including stale candidates), focus, savedRevision, path and diskHash survive. The durable `hosted-migration.json` marker prevents a cooperative old writer returning. Original legacy bytes remain under `getAgentDir()/pi-web/diagrams/`; the new hosted store is separate. **No native user `.excalidraw` file is automatically rewritten or deleted.**
|
|
23
21
|
|
|
24
|
-
|
|
22
|
+
Historical `diagram:<id>` links resolve to the enabled hosted editor. Without it, old cards/links offer an honest install/enable recovery path, not a fabricated empty latest scene. A genuinely unavailable ID remains unavailable. Same-origin `pi-diagram:<session>:<id>` localStorage backups use their original keys: matching IDs offer explicit recovery; unavailable IDs retain recoverable source for explicit import into a new ID. Invalid backups are not applied. Changing browser origin/profile cannot magically recover another origin's storage; keep the old profile and export source before changing it.
|
|
25
23
|
|
|
26
|
-
-
|
|
27
|
-
- `excalidraw_create_view({title?, elements, id?, baseRevision?})`: `elements` is a JSON array string of **1–150 compact inert Excalidraw skeletons**, with explicit positions and geometry. Types: rectangle, ellipse, diamond, text, line, arrow. Shape labels use `label:{text,fontSize}`; arrows use relative `points` and `start:{id}` / `end:{id}`. Styles include safe colors, fills, strokes, roughness, opacity, font size and groups. `groupIds` accepts up to 10 strings, each 1–100 Unicode letters/digits, underscores or hyphens (for example `["entry-layer_2", "architecture-123"]`); the same group ID groups elements without needing a separate group element. New drawings initialize automatically. Supplying an existing `id` and exact `baseRevision` proposes a full replacement requiring chat review.
|
|
28
|
-
- `diagram_read({id?, elementIds?})`: latest synchronized native elements/revision; omit ID for the active drawing. Reads default to 100 elements and report truncation.
|
|
29
|
-
- `diagram_patch`: add/remove nodes and edges; update labels, geometry and styles without rebuilding untouched elements. Explicitly moving/resizing a shape reroutes incident arrows, so those manually routed paths can change. Unrelated native paths remain intact.
|
|
24
|
+
Corruption, permission failures and lock contention are not missing-data signals. They preserve data and report errors. Never steal locks based on PID disappearance. Stop owners, back up storage, and inspect the specific journal/lock before deliberate recovery.
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
## Hotplug and limits
|
|
32
27
|
|
|
33
|
-
|
|
28
|
+
Install/enable/update/disable/uninstall retain the same SDK/TUI adapter and AgentSession: no page reload, `ctx.reload` or session reconstruction. Normal update waits for open editors; **Update and reopen now** explicitly warns that native undo history resets and requires every view to flush/acknowledge. Dirty/disconnected clients do not expire by TTL. Disable/uninstall drains frames and hides tools, retaining state, legacy sources and user files. Reinstall recovers committed data. See [bootstrap](hosted-production-bootstrap.md), [migration verification](hosted-excalidraw-migration.md), and [GC/recovery](hosted-plugin-gc.md).
|
|
34
29
|
|
|
35
|
-
|
|
30
|
+
Host-linked updater, crash recovery UX, complete multiwindow/browser/Electron/platform parity and reference-machine performance remain parent release gates. The original detailed browser matrix is retained as test provenance in the plugin repository, not claimed as rerun hosted acceptance.
|
|
36
31
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
The additive native `workbench.toolViews` contribution receives a tool call's partial arguments and eventual result. The host keeps these views attached to the tool call, outside collapsed execution details and above the final answer. Stream/committed-message overlap is deduplicated **by toolCallId within each turn**, preferring committed arguments, not by tool name or matching JSON; distinct calls remain distinct. This fixes that reproducible duplicate-view race, not a claim that screenshots alone prove the runtime cause. Each card uses the shared Excalidraw icon, a compact title/status and a proper chevron to toggle its preview. The separate **View parameters** button opens the host's centered, body-portaled modal, never an expanding JSON region inside chat. The scrollable, theme-aware modal contains input/result text, supports Escape, mask click, a close button, keyboard focus containment and return to the trigger. Long input stays selectable and wraps within the viewport at narrow widths. Raw arguments are not printed above the card. Collapse/inspector state survives stream-to-result transitions. The agent instructions also forbid repeating scene JSON in normal answer text; arbitrary historical assistant prose is not silently filtered or rewritten. `workbench.beforeSend` lets enabled plugins finish manual-state synchronization before the next main-chat prompt. A failed hook restores the prompt, shows an error and does not send stale state to the agent; switching sessions during the hook cancels that send. External protocol-v1 slots continue working unchanged.
|
|
40
|
-
|
|
41
|
-
During argument streaming, the view extracts only complete top-level JSON objects from `elements`, validates them, converts them through the official Excalidraw helper, and refreshes an SVG preview. Preview-only dangling bindings are omitted until their targets arrive. Final server validation remains authoritative. This is **actual incremental element display when the provider emits tool-argument updates**, not simulated progress. It is not per-stroke drawing animation, smooth camera choreography, or a promise that every model/provider streams parseable arguments. Without deltas, the full result appears on completion. A stopped/failed partial preview is not a committed diagram or file.
|
|
42
|
-
|
|
43
|
-
This native contribution is **not a general MCP Apps/AppBridge host**: no `ui://` resource fetching, arbitrary remote HTML, sandboxed third-party App transport or universal MCP connector is added. Reusing the upstream App unchanged would require that separate host lifecycle/security bridge and its React 19/SDK build, rather than merely adding an MCP URL. Here the existing local revision/file protections are retained rather than replaced with the reference's checkpoint storage. No remote drawing service or Excalidraw account is needed. The reference's “Open in Excalidraw” action uploads a diagram; that action is intentionally not added.
|
|
44
|
-
|
|
45
|
-
## Ownership, persistence and security
|
|
46
|
-
|
|
47
|
-
- Bundled plugin: `src/plugins/builtin/diagrams/{contract,server,client}`, not an independently published plugin package. Tools share `ServerPluginRegistry.runAgentAction` enablement gates. Disabling the plugin closes its panels and rejects backend tool/actions, even if schemas remain visible in an existing runtime.
|
|
48
|
-
- Native scenes are authoritative after hand edits. Browser sync is serialized with compare-and-swap revisions. Only untouched revision-zero creations may use automatic initialization. Existing replacements and patches retain explicit chat review and stale-base checks. Main-chat pre-send synchronization includes text changes, not just position summaries.
|
|
49
|
-
- Disk saving checks the loaded SHA-256, takes an exclusive sibling lock, fsyncs a temporary file and commits atomically. New-file creation is no-replace. Paths stay in the current workspace; absolute paths, symlinks, non-regular files and other extensions are rejected. Only the conventional `diagrams/` parent is created automatically. Never steal a live writer's lock.
|
|
50
|
-
- Cooperative locks cannot prevent every race by an uncooperative same-user external editor. Plugins are trusted host code, not a filesystem sandbox.
|
|
51
|
-
- Drafts/candidates/focus are checkpointed under `getAgentDir()/pi-web/diagrams/<sha256([cwd, sessionId])>/`, outside the project. Each bounded record includes and verifies the workspace/session envelope, identity, revisions, candidate and native scene. Scope access stays isolated; IDs do not become arbitrary file paths. Files use mode 0600 and directories 0700, no-follow bounded reads and atomic synced-temp replacement. A cooperative per-scope lock serializes independent bridge instances; each transaction reloads state before checking revisions. Records are not cloud backups and are not automatically deleted when the plugin is disabled. There is currently no pruning UI; operators should back up or remove inactive state only with writers stopped.
|
|
52
|
-
- The unavailable-draft response still has `reason: "diagram_unavailable"`. Corruption, failed persistence, permissions and lock contention are errors, not evidence that a drawing is missing: they do not clear records or trigger missing-content UI. Checkpoints written by older memory-only versions do not exist and are not invented from historical tool arguments. Reopened source files remain new drawings; original cards are not rebound to unrelated imported IDs.
|
|
53
|
-
- A successful mutation response means its checkpoint write completed. A mutation may have reached disk even if its response was lost; stale revisions then fail safely rather than retrying an overwrite. Successful `.excalidraw` saving followed by failed checkpoint writing can likewise report a failure and require reopening, rather than bypassing file-hash protection. Unsynced keystrokes, browser termination before the debounce/flush, power loss and deleted state are not zero-loss guarantees. Export source files for portability and independent backup. After an unclean process kill a leftover `scope.lock` is deliberately not auto-stolen (PID reuse/reclamation races); stop all writers and remove only the abandoned lock before retrying. Graceful restart releases it normally.
|
|
54
|
-
- No cloud collaboration, uploads, remote libraries, independent model/telemetry service or headless browser is added. PNG requires a browser. Model inputs follow the existing configured provider; local rendering does not imply offline model inference.
|
|
55
|
-
|
|
56
|
-
## Resources and maintenance
|
|
57
|
-
|
|
58
|
-
The plugin entry remains thin. `Canvas.tsx`, its editor CSS and the official component load on demand for visible previews/editors or an active streamed drawing. Offscreen finalized previews defer loading/refresh. Inline SVG blob images never mount editable canvases. Hidden tabs unmount native editors while retaining small models; JavaScript remains cached.
|
|
59
|
-
|
|
60
|
-
`scripts/excalidraw-assets.mjs` copies unmodified WOFF2 fonts, including CJK subsets, into an explicit same-origin asset inventory. `canvas-env.ts` configures local fonts. The checked build transform removes the pinned package's CDN fallback without relaxing CSP. Upgrades require reviewing that transform, font licenses, notices and scene/export regressions. Bundled notices are in `assets/diagrams-NOTICES.txt`.
|
|
61
|
-
|
|
62
|
-
## Checks
|
|
32
|
+
## Reproduce
|
|
63
33
|
|
|
64
34
|
```sh
|
|
65
35
|
npm run check
|
|
66
36
|
npm run build
|
|
67
|
-
npm test
|
|
68
|
-
|
|
69
|
-
git diff --check
|
|
37
|
+
HOSTED_EXCALIDRAW_TGZ=/absolute/path/to/plugin.tgz npm test
|
|
38
|
+
HOSTED_EXCALIDRAW_TGZ=/absolute/path/to/plugin.tgz npx playwright test test/browser/hosted-production.spec.ts
|
|
70
39
|
```
|
|
71
40
|
|
|
72
|
-
|
|
41
|
+
The exact archive test validates import/save/restart/uninstall/reinstall with a real child worker. The full-host Chromium suite covers 1440px/390px install/edit/native undo/PNG/save/update/disable/uninstall/reinstall under production CSP with deterministic local registry/model fixtures, not real registry/provider acceptance. Font resources and notices belong exclusively to the separately installed plugin package; the host retains only metadata/icon/ID compatibility.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# ORI-27: long-lived hosted tools (SDK 1.3.0)
|
|
2
|
+
|
|
3
|
+
Historical adapter milestone; current default-hosted/optional-package composition is in
|
|
4
|
+
[migration verification](hosted-excalidraw-migration.md). Builtin drawings have since
|
|
5
|
+
been removed; no second owner or reload fallback exists.
|
|
6
|
+
|
|
7
|
+
This patch originally supplied a **generic host adapter**, not production Excalidraw activation.
|
|
8
|
+
Built-in drawings remain unchanged. Never register both implementations' names.
|
|
9
|
+
No plugin module, renderer, worker object or editor code is imported here.
|
|
10
|
+
|
|
11
|
+
## Public seams
|
|
12
|
+
|
|
13
|
+
`HostedAgentAdapter` receives a host `HostedAgentService`:
|
|
14
|
+
|
|
15
|
+
- `policy(pluginId, authenticatedScope)` returns enabled, optional tool-name
|
|
16
|
+
allowlist, planMode, exposure and allowNested. Defaults: direct, nested denied.
|
|
17
|
+
- `invoke(pluginId, request, signal)` returns a normal SDK tool result. It must
|
|
18
|
+
route to the correct scope's supervisor and map domain output into
|
|
19
|
+
`{content, details}`. Do not treat a worker's arbitrary value as a tool result.
|
|
20
|
+
Supervisor invocation does not currently accept cancellation: reject before
|
|
21
|
+
starting if aborted; once started, preserve the supervisor's lease until actual
|
|
22
|
+
completion, even if the caller aborts. Do not report rollback on timeout.
|
|
23
|
+
- Descriptors are data-only `HostedToolDescriptor`s from the supervisor's verified
|
|
24
|
+
`tools`. `action` is forwarded unchanged; parameter schemas are cloned without
|
|
25
|
+
flattening, permissive wrappers or action/input envelope substitution.
|
|
26
|
+
- `freeze()` synchronously closes admission and waits for **all** registered
|
|
27
|
+
sessions (including retained/background SDK sessions and mounted TUI sessions)
|
|
28
|
+
to emit `agent_settled`. Plugin-call idle and `agent_end` are insufficient.
|
|
29
|
+
- `change(pluginId, descriptors)` requires the frozen/settled boundary. Empty
|
|
30
|
+
descriptors remove exposure, replacing registrations with hidden host-only
|
|
31
|
+
tombstones. No stale action/schema/renderer/worker closure remains registered.
|
|
32
|
+
- `thaw()` reopens admission and wakes blocked direct SDK/TUI prompts plus host
|
|
33
|
+
prompt queues. Always thaw in a finally block. Policy/exposure changes that
|
|
34
|
+
change discovery must also use freeze/change/thaw, even if schemas are unchanged.
|
|
35
|
+
- `invokeAction` applies admission and conservative policy: disabled, plan mode
|
|
36
|
+
and tool-only allowlists deny actions. The service must additionally validate
|
|
37
|
+
the actual UI action against a **host-owned action allowlist/permission policy**.
|
|
38
|
+
Never route browser-provided scope or a raw unrestricted action directly here.
|
|
39
|
+
|
|
40
|
+
`readonly` is an unverified plugin hint. The parent must verify trusted package
|
|
41
|
+
policy before accepting it as plan-mode permission. Execution-time policy checks
|
|
42
|
+
also deny calls after a permission revocation before a discovery refresh occurs.
|
|
43
|
+
Nested calls use the normal SDK `tool_call` hook (`parentToolCallId`), including
|
|
44
|
+
codemode's `ctx.executeTool`; hidden tools remain unreachable even if activated.
|
|
45
|
+
|
|
46
|
+
## Required supervisor ordering (important integration finding)
|
|
47
|
+
|
|
48
|
+
The baseline supervisor (`6a604e6`) marks itself **draining before calling its
|
|
49
|
+
freeze hook**. Calling only `adapter.freeze()` from that hook is NOT sufficient:
|
|
50
|
+
an already-admitted Agent batch may still need to invoke old-schema tools, which
|
|
51
|
+
would then be refused by the draining supervisor.
|
|
52
|
+
|
|
53
|
+
Serialize management operations at the parent and **pre-freeze the Agent adapter
|
|
54
|
+
before calling supervisor.replace/disable**. Keep the old supervisor active while
|
|
55
|
+
awaiting that barrier. Do not freeze from inside an active Agent tool/extension
|
|
56
|
+
command that waits for itself to settle; schedule management externally.
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
await adapter.freeze(); // gate closes now; old batches finish on old supervisor
|
|
60
|
+
try {
|
|
61
|
+
await supervisor.replace(pkg); // or disable()
|
|
62
|
+
} finally {
|
|
63
|
+
adapter.thaw();
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
With that outer barrier, wire the supervisor's hooks as follows:
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
const hooks = {
|
|
71
|
+
canSwitch: () => views.canSwitch(),
|
|
72
|
+
freeze: async () => {
|
|
73
|
+
if (!adapter.isFrozen) throw new Error('Missing outer Agent barrier');
|
|
74
|
+
await views.flushAndFreezeAll(); // includes every mounted frame, authenticated FlushBarrier
|
|
75
|
+
},
|
|
76
|
+
committed: async active => {
|
|
77
|
+
adapter.change(pluginId, active.enabled ? supervisor.tools : []);
|
|
78
|
+
await views.reconnect(active);
|
|
79
|
+
},
|
|
80
|
+
resume: async () => { await views.resumeOldGeneration(); },
|
|
81
|
+
};
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Preflight name conflicts **before committing persistent activation**, using
|
|
85
|
+
`adapter.validateChange(pluginId, candidateDescriptors)` while holding the parent
|
|
86
|
+
management serialization. This does not mutate registrations and is repeated
|
|
87
|
+
by `change`. Parent must obtain verified candidate descriptors before commit;
|
|
88
|
+
the baseline supervisor currently exposes only active tools, not a candidate
|
|
89
|
+
precommit hook. Until that parent-owned integration seam exists, do not expose
|
|
90
|
+
production enable/update as atomic or enable a conflicting builtin name. `change`
|
|
91
|
+
rejects any unrelated builtin/extension name and cross-plugin name reuse,
|
|
92
|
+
including tombstoned ownership. It also detects a different extension taking the
|
|
93
|
+
visible name after registration (schema identity mismatch) and never overwrites
|
|
94
|
+
that owner. The SDK resolves duplicate extension names first-extension-wins;
|
|
95
|
+
trusted external extensions can still intentionally shadow each other. The
|
|
96
|
+
adapter is not an isolation boundary for malicious in-process extensions.
|
|
97
|
+
The adapter's change-time preflight is the final defense, not a transaction with
|
|
98
|
+
supervisor activation: the baseline supervisor swallows committed-hook failures
|
|
99
|
+
into `reconnectRequired`. Parent must surface that failure and keep normal plugin
|
|
100
|
+
admission closed if publication failed; never claim successful tool activation.
|
|
101
|
+
|
|
102
|
+
Parent integration resolution: the combined feature branch now exposes
|
|
103
|
+
`HostedManagerOptions.lifecycle<T>(id, operation)` (after background preparation)
|
|
104
|
+
and `HostedSwitchHooks.validateCandidate(tools)` (verified candidate before
|
|
105
|
+
persistent activation). Use these seams rather than validating active descriptors
|
|
106
|
+
only in the committed hook. Tests reject candidate ownership conflicts while
|
|
107
|
+
preserving the old PID and active pointer. Production bootstrap wiring is still
|
|
108
|
+
in progress.
|
|
109
|
+
|
|
110
|
+
No automatic fallback to reload/rebuild exists. An unsupported SDK fails before
|
|
111
|
+
registration. Freeze deliberately waits rather than aborting/killing old batches;
|
|
112
|
+
if an operator cancels a management attempt, leave the old runtime active and
|
|
113
|
+
thaw only through the serialized parent coordinator. Never proceed on timeout.
|
|
114
|
+
|
|
115
|
+
## SDK / WorkspaceSessions wiring
|
|
116
|
+
|
|
117
|
+
The eighth, additive constructor argument is optional; existing callers retain
|
|
118
|
+
their current behavior:
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
const hosted = {
|
|
122
|
+
adapter,
|
|
123
|
+
scope: (cwd, sessionId) => ({ cwd, sessionId, workspaceId: trustedWorkspaceId(cwd) }),
|
|
124
|
+
};
|
|
125
|
+
const sessions = new WorkspaceSessions(publish, fallbackModel, trusted,
|
|
126
|
+
reportError, telemetry, changed, nonConflictingCustomTools, hosted);
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
WorkspaceSessions injects one inline factory before SDK creation, attaches after
|
|
130
|
+
creation, tracks every retained runtime regardless of foreground selection, and
|
|
131
|
+
releases bindings on shutdown/failed creation/disposal. New sessions receive the
|
|
132
|
+
current descriptors without reloading any old session. Queued prompts resume on
|
|
133
|
+
thaw. Normal send/resume reject during freeze; direct SDK prompts wait at the
|
|
134
|
+
`before_agent_start` gate and use the post-switch loadout. Already-admitted runs
|
|
135
|
+
may finish automatic follow-ups/retries before the final settlement.
|
|
136
|
+
|
|
137
|
+
For a different SDK embedder use `adapter.extension(scope)` as a
|
|
138
|
+
`DefaultResourceLoader.extensionFactories` entry, then `adapter.attach(session)`
|
|
139
|
+
before prompting. Keep the returned release callback until actual session
|
|
140
|
+
shutdown. Release is lifecycle cleanup, **not** a way to disable a live session's
|
|
141
|
+
tools. Shutdown must abort/wait for work first. SDK dispose without emitting
|
|
142
|
+
session_shutdown must still invoke the release callback.
|
|
143
|
+
|
|
144
|
+
## TUI / pi-host wiring (parent-owned file, not modified here)
|
|
145
|
+
|
|
146
|
+
Register from the existing long-lived host extension, using the real context's
|
|
147
|
+
session ID, trusted cwd/workspace and the same shared adapter coordinator:
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
let releaseHosted: (() => void) | undefined;
|
|
151
|
+
pi.on('session_start', (_event, ctx) => {
|
|
152
|
+
releaseHosted?.();
|
|
153
|
+
releaseHosted = adapter.mountTui(pi, {
|
|
154
|
+
cwd: ctx.cwd,
|
|
155
|
+
sessionId: ctx.sessionManager.getSessionId(),
|
|
156
|
+
workspaceId: trustedWorkspaceId(ctx.cwd),
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
pi.on('session_shutdown', () => { releaseHosted?.(); releaseHosted = undefined; });
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Do not call `mountTui` during an active turn. Commands that initiate management
|
|
163
|
+
must not await their own unsettled run. No terminal rendering API is needed;
|
|
164
|
+
the tools work in print and TUI with the same policy and batch barrier.
|
|
165
|
+
|
|
166
|
+
## SDK verification and tests
|
|
167
|
+
|
|
168
|
+
Read the installed 0.87.1 README, extensions/SDK/TUI and session/message docs,
|
|
169
|
+
and dynamic-tools / SDK examples; verified against the **actual installed 1.3.0**
|
|
170
|
+
`extensions/types.d.ts`, loader, runner and agent-session implementation:
|
|
171
|
+
|
|
172
|
+
- registerTool replaces this extension's definition and refreshes the current
|
|
173
|
+
AgentSession registry; no reload/shutdown is necessary.
|
|
174
|
+
- hidden means unreachable, unlike inactive direct/codemode tools.
|
|
175
|
+
- direct -> codemode retains an old active name in SDK refresh; adapter explicitly
|
|
176
|
+
removes owned non-direct names from the active set without changing unrelated tools.
|
|
177
|
+
- nested calls traverse hooks; `agent_settled` follows recovery/automatic work.
|
|
178
|
+
- SDK validation can coerce primitive values; schemas are forwarded exactly,
|
|
179
|
+
not claimed to impose stronger validation than the SDK. Missing required
|
|
180
|
+
arguments are rejected in real-provider-loop tests.
|
|
181
|
+
|
|
182
|
+
The adapter deliberately pins `VERSION === '1.3.0'`. Reverify these contracts and
|
|
183
|
+
update that guard before supporting another SDK; do not quietly accept a version
|
|
184
|
+
without hidden/nested/dynamic registration support.
|
|
185
|
+
|
|
186
|
+
```sh
|
|
187
|
+
node --import ./test/setup-env.mjs --experimental-strip-types --test \
|
|
188
|
+
test/hosted-agent*.test.ts test/background-sessions.test.ts \
|
|
189
|
+
test/diagram-tools-sdk.test.ts test/hosted-plugins.test.ts \
|
|
190
|
+
test/prompt-queue-bridge.test.ts
|
|
191
|
+
npm run check
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
17 tests passed. New deterministic no-network tests exercise real SDK model/tool
|
|
195
|
+
loops, TUI mount lifecycle in print mode, same session identities/no dispose on
|
|
196
|
+
enable/replace/hide, retained background old-schema batches, plugin-idle vs
|
|
197
|
+
settled, direct prompt admission while frozen, both retained/new session schemas,
|
|
198
|
+
exact schema required-input validation, direct/codemode/nested denial, plan mode,
|
|
199
|
+
allowlist, execution-time disabled policy, hidden activation resistance,
|
|
200
|
+
cross-plugin/builtin/late foreign ownership conflicts and cleanup.
|
|
201
|
+
|
|
202
|
+
Not verified here: real terminal UI interaction, full application's management
|
|
203
|
+
routes, browser all-window freeze/reconnect, real provider networking,
|
|
204
|
+
Excalidraw enabled end-to-end, platform packaging or releases. Parent owns
|
|
205
|
+
bootstrap/service/supervisor integration and these acceptance gates. No npm
|
|
206
|
+
install, publish, push, merge, builtin drawing removal or unrelated code edits.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Hosted Excalidraw alpha integration
|
|
2
|
+
|
|
3
|
+
This integrates the previously accepted optional official Excalidraw plugin runtime
|
|
4
|
+
with alpha's conversation activity feedback. The official editor is independently
|
|
5
|
+
published as `@chengzhiyi/pi-excalidraw@0.1.1`; it is not a host dependency.
|
|
6
|
+
|
|
7
|
+
## Host channel compatibility
|
|
8
|
+
|
|
9
|
+
The host accepts exact stable versions and the launcher's exact `X.Y.Z-alpha.N`
|
|
10
|
+
channel. The original version is retained in update journals and diagnostics.
|
|
11
|
+
Alpha hosts explicitly participate in the supported host-range grammar using full
|
|
12
|
+
SemVer precedence, not a stripped stable core: `0.1.31-alpha.5` satisfies
|
|
13
|
+
`>=0.1.0 <1.0.0`, but **not** `>=0.1.31` or exact `0.1.31`. Caret/tilde
|
|
14
|
+
upper bounds also exclude the next core's prereleases. Unsupported channels,
|
|
15
|
+
malformed versions and unsupported range syntax fail closed. Plugin package
|
|
16
|
+
selection and installation remain **stable-only**, with unchanged SRI, capability,
|
|
17
|
+
resource, state and lifecycle checks.
|
|
18
|
+
|
|
19
|
+
PR core verification boots the actual host with a temporary alpha identity and
|
|
20
|
+
restores `package.json` exactly afterwards. This catches release-only bootstrap
|
|
21
|
+
regressions before the separate publication job allocates its actual version.
|
|
22
|
+
|
|
23
|
+
## Distribution gates
|
|
24
|
+
|
|
25
|
+
- Host development now pins the published `@chengzhiyi/pi-web-protocol@0.1.1`
|
|
26
|
+
with registry SHA-512 lock integrity. The former development-only vendor tgz is
|
|
27
|
+
removed. Release CI verifies the exact protocol pin instead of following a
|
|
28
|
+
later registry `latest`. A mismatched registry version fails closed.
|
|
29
|
+
- CI fetches only exact published plugin test fixtures via `npm pack
|
|
30
|
+
--ignore-scripts`, independently verifies their recorded SHA-512/SHA-256, and
|
|
31
|
+
enables the previously opt-in archive, paired-update, v1 compatibility, stress
|
|
32
|
+
and public npm tests. These are test fixtures, not bundled host dependencies.
|
|
33
|
+
- A separate strict hosted browser gate rejects missing production lifecycle
|
|
34
|
+
cases, silent fixture skips, retries, and failed-closed shutdown annotations.
|
|
35
|
+
Only the explicitly obsolete socket-pool diagnostic is allowed to skip.
|
|
36
|
+
- Alpha publication remains the normal verified-source CI path, uses npm's
|
|
37
|
+
`alpha` tag, and never updates stable `latest`. Version allocation uses actual
|
|
38
|
+
registry tags at release time; there is no speculative version-only commit.
|
|
39
|
+
- No desktop installer publication, stable release, gate bypass, or unsupported
|
|
40
|
+
platform certification is implied by this alpha change.
|
|
41
|
+
|
|
42
|
+
## Integrated behavior
|
|
43
|
+
|
|
44
|
+
`PiConversation` retains activity/status elapsed feedback as well as the hosted
|
|
45
|
+
transcript retirement boundary and tool-view incarnation keys. Activity tests
|
|
46
|
+
supply an explicit empty hosted inventory: an activity-only fake host must not
|
|
47
|
+
produce an unrelated missing-integration 503 alert. Error assertions remain
|
|
48
|
+
strict. Public npm test failure receipts include the management response and
|
|
49
|
+
inventory diagnostics; network failures are not silently substituted with local
|
|
50
|
+
archives or retried by the test.
|
|
51
|
+
|
|
52
|
+
## Local pre-PR evidence
|
|
53
|
+
|
|
54
|
+
- `check`, `build`: PASS with published protocol 0.1.1.
|
|
55
|
+
- Node: 429 PASS / 1 Windows-only SKIP; desktop Node: 94 PASS.
|
|
56
|
+
- Hosted Chromium: 32 clean body-and-shutdown PASS / 1 historical diagnostic
|
|
57
|
+
SKIP, strict gate 0 (including 70-cycle lifecycle stress).
|
|
58
|
+
- Activity 1440/390/320: 3 PASS.
|
|
59
|
+
- Real public npm installation 1440/390: 2 PASS; real 0.1.0 → 0.1.1 update
|
|
60
|
+
1440/390: 2 PASS. Same SDK session and parent page, data retained. Model
|
|
61
|
+
outputs are deterministic fixtures, not live provider inference.
|
|
62
|
+
|
|
63
|
+
Earlier local failures remain evidence: missing postinstall PTY executable-bit
|
|
64
|
+
repair after an ignore-scripts dependency install, an old fixture SHA parameter,
|
|
65
|
+
activity fake-host 503 alerts, and intermittent public download/500 failures.
|
|
66
|
+
A full browser run was cancelled at the harness's 15-minute limit without a JSON
|
|
67
|
+
report and is NOT claimed as complete. Bounded suites above were subsequently
|
|
68
|
+
run explicitly; the full repository suite must still pass in PR CI before merge.
|
|
69
|
+
|
|
70
|
+
Previously approved unavailable GUI/platform/IME skips remain SKIP, not PASS.
|
|
71
|
+
A successful PR workflow is verification only; host publication and registry
|
|
72
|
+
source/integrity receipts are separate required outcomes.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# ORI-37: real removal confirmation and explicit lost-view reconciliation
|
|
2
|
+
|
|
3
|
+
## Isolated handoff
|
|
4
|
+
|
|
5
|
+
Host baseline `4c0ebbd`, plugin baseline `6108c6b`. Dedicated worktrees `pi-webapp-ori37` and `pi-extensions-ori37`, branch `fix/ori37-lifecycle` in each repository. No shared alpha/parent source edits, push, publishing, release merge, CSP changes, storage reset, TTL, synthetic acknowledgement or automatic Restore.
|
|
6
|
+
|
|
7
|
+
## Normal authoritative removal
|
|
8
|
+
|
|
9
|
+
`useHostedTranscript` keeps the previous React projection mounted when an authoritative snapshot removes a hosted call. The old projection's hosted tool owners retire as one boundary: wait for initialization, invoke the original realm's real `freeze` (which flushes and makes the plugin root inert), submit clean status only after that RPC succeeds, and close the exact mount/generation/token capability. Only after all closes succeed can the latest queued history replace that projection. Retiring the complete old tool projection prevents an additional removal arriving during a pending close from slipping through the gate. Editor/controller owners are not retired by this boundary.
|
|
10
|
+
|
|
11
|
+
Tool-call incarnations advance atomically after all real closes, so a provider reusing the same call ID after an actual absence cannot revive the closed capability. A partial failure keeps the old owners mounted, reports a recovery error and offers Retry; it does not remount successfully closed siblings while another close is uncertain. This may recreate retained **tool previews** at a removal boundary, but does not recreate the parent document, retained SDK session, editor or controller.
|
|
12
|
+
|
|
13
|
+
The plugin now sends its actual initial status from `initialize`, rather than leaving a healthy newly initialized realm unknown until the 150ms status timer happens to run. This is measured plugin status, not a host-invented clean acknowledgement. Shutdown still performs the real freeze barrier.
|
|
14
|
+
|
|
15
|
+
## Abrupt reload: explicit reconciliation, not a handoff claim
|
|
16
|
+
|
|
17
|
+
A per-tab sessionStorage journal records exact registered capabilities (including kind/content ID). Successful real close removes the matching record. A replacement document displays the previous document's unconfirmed capabilities separately, including generation and mount/content identity.
|
|
18
|
+
|
|
19
|
+
The journal is **not** a draft/checkpoint identity, proof of a latest draft, a server-wide lost-view list, or a guarantee of recovery if browser storage is unavailable/lost. A copied tab journal is also not liveness evidence. Missing capabilities remain fail closed; this change never enumerates/clears registrations or guesses that a newer revision supersedes them.
|
|
20
|
+
|
|
21
|
+
For the supported reload recovery path, the plugin's existing local-backup, Download draft and explicit Restore UI remain separate. The host warning says that the latest edits are unacknowledged, asks the user to rescue/download first, warns of permanent loss if the latest draft is inaccessible, and requires a separate explicit discard decision for **each** exact old capability. There is no bulk discard or automatic Restore. Native losing geometry is downloaded before reload in the browser regression; Restore does not dismiss the old capability warnings.
|
|
22
|
+
|
|
23
|
+
The additive `discard` operation is not a flush acknowledgement and does not mark any view clean. It removes only the confirmed, authenticated owner/workspace/session/mount/generation/token registration. It refuses active barriers and in-flight capability actions. Ordinary iframe actions now require a still-registered capability too; discarded and old-generation capabilities cannot write. Existing trusted host/v1 action calls without a view capability remain compatible. Generation/CAS/flush-action allowlists are retained.
|
|
24
|
+
|
|
25
|
+
## Parent integration / vendor synchronization
|
|
26
|
+
|
|
27
|
+
Integrate **both** host and plugin commits and rebuild the plugin archive; do not combine this host change with the previous archive and claim full lifecycle acceptance. If the parent keeps a vendored/local Excalidraw archive, it must synchronize that archive to the rebuilt plugin payload and its integrity metadata. The new JSON operation lives in the host's `src/contracts/hosted-plugins.ts`; the external `@chengzhiyi/pi-web-protocol` package and protocol-1 MessagePort DTOs did not change, so no protocol-package vendor bump is required. This is a local development payload, not a published new immutable 0.1.0 release.
|
|
28
|
+
|
|
29
|
+
## Verification and adverse findings
|
|
30
|
+
|
|
31
|
+
- Host check and build: PASS. Existing build warnings retained.
|
|
32
|
+
- Related Node suites: **77 passed, 3 skipped, 0 failed** (80 total). Added tests cover unknown-view fail-closed, per-item scope/confirmation, active-action refusal, revoked action rejection, retryable retirement and deferred real close.
|
|
33
|
+
- Plugin check/build: PASS; plugin Node suite **17/17 passed**.
|
|
34
|
+
- Final focused built-App Chromium run: **5/5 passed, zero shutdown-failed-closed annotations**: original progressive/actual-removal body, new network-close-failure + retained-original-realm/retry body, original competing dirty-window recovery with per-item explicit reconciliation, and **both unchanged production lifecycle bodies (1440/390)**. The progressive test holds the actual close HTTP response and proves the original iframe is still attached, then proves a different realm mounts after real completion. No successful flush or close is mocked.
|
|
35
|
+
- The parity helper retains teardown failure annotations/attachments and now **rethrows** shutdown errors. Body success can no longer hide a lifecycle failure.
|
|
36
|
+
- Final wider browser run: **11 passed, 2 failed, 1 skipped** (14 total), consistent with two earlier runs before adding the negative recovery body. No shutdown-failed-closed annotations. The two failures are preserved, not waived: A06 samples an earlier viewport checkpoint and later observes a newer pan/zoom checkpoint after freeze; labeled A09 expects revision 1 while the real preview reaches revision 2 with the same candidate identity. These assertions were not loosened; this handoff does **not** claim an all-green parity suite or establish those body failures as pre-existing. They require parent triage separate from the two lifecycle gates, which now pass.
|
|
37
|
+
- `test/browser/hosted-production.spec.ts` is byte-unchanged from baseline; `git diff --check`: PASS.
|
|
38
|
+
|
|
39
|
+
Local rebuilt plugin archive SHA-256: `932c697f49d87855d5ddc46786c9d0d8ee7b52f64f95af266c46d18ce84d53d5`.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
npm run check
|
|
43
|
+
npm run build
|
|
44
|
+
node --import ./test/setup-env.mjs --experimental-strip-types --test --test-concurrency=4 test/hosted-*.test.ts test/conversation-turns.test.ts
|
|
45
|
+
HOSTED_EXCALIDRAW_TGZ=/absolute/path/to/rebuilt-local.tgz npx playwright test test/browser/hosted-parity.spec.ts test/browser/hosted-production.spec.ts --grep 'progressive arguments|competing real windows|close network failure|retained SDK hot lifecycle' --reporter=line,json
|
|
46
|
+
HOSTED_EXCALIDRAW_TGZ=/absolute/path/to/rebuilt-local.tgz npx playwright test test/browser/hosted-parity.spec.ts test/browser/hosted-production.spec.ts test/browser/hosted-transport.spec.ts --reporter=line,json
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The wider command is intentionally reported nonzero for its two unweakened body assertions. No browser/OS matrix certification or lossless recovery from arbitrary destroyed realms is claimed.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# ORI-31: optional-default Excalidraw extraction
|
|
2
|
+
|
|
3
|
+
## Delivered scope
|
|
4
|
+
|
|
5
|
+
Hosted drawing ownership is the production default; the official package is **absent until explicitly installed**. The old opt-in flag is ignored, including `0`. Root `@excalidraw/excalidraw`, exclusive overrides/transitive packages, builtin domain/client/server/tool/API registrations, dedicated fonts/notices and Vite font/CDN transform are removed. Files/Terminal/Git and protocol-v1 remain. The same long-lived SDK/TUI adapter performs changes without page reload, `ctx.reload` or AgentSession replacement. An incompatible SDK/foreign tool owner fails explicitly, never restores builtin/reload fallback.
|
|
6
|
+
|
|
7
|
+
The existing `legacy-checkpoints.ts` at assignment base already had no builtin persistence import. It is retained as a minimal opaque, bounded, exact workspace/session-envelope reader with the original cooperative lock and migration marker. Drawing validation remains in the external plugin. The import CAS occurs once. Original legacy bytes, IDs, geometry, stale candidates, revision, focus, savedRevision/path/diskHash and user-owned native files are preserved. Stop old uncooperative/pre-marker writers first. Locks are never auto-stolen.
|
|
8
|
+
|
|
9
|
+
The host retains only a tiny icon/metadata/history-recovery contribution. Historical `diagram:<id>` aliases select the enabled hosted editor; absent/disabled UI explains install/enable recovery and does not reconstruct scenes from tool arguments. Plugin model tests cover the unchanged same-origin localStorage keys for matching IDs (explicit recovery) and unavailable IDs (recoverable backup, no fake scene/write). The runtime/editor/font implementation itself is unchanged from plugin `c54e0b6`.
|
|
10
|
+
|
|
11
|
+
## Evidence and regression provenance
|
|
12
|
+
|
|
13
|
+
Migration was verified **before removal**: 23/23 host drawing+installation+exact-tgz tests. After removal, executed plugin tests retain all 8 original plugin-domain/model cases (3 drawing, 3 validators, 1 store and 1 recovery); the other 5 original host boundary tests have hosted/broker/default-absence replacements, not a retained production drawing domain. New file-broker parity tests preserve native file path/hash/no-replace/size/link/lock/race boundaries. New opaque-loader tests preserve corrupt and scope-mismatched bytes, refuse live locks and linked scopes, and fence the test-only old cooperative writer.
|
|
14
|
+
|
|
15
|
+
Exact archive testing installs 426 real resources, launches the actual child backend, imports old and rich saved/stale-candidate checkpoints, preserves focus/metadata, syncs/saves, restarts and uninstalls/reinstalls without losing the original native file. Full-host Chromium at 1440px/390px exercises actual authenticated HTTP, actual worker/tgz, retained SDK session, native edit/undo/redo/PNG/save, pending update, explicit warned reopen, disable/uninstall/reinstall and identity retention under strict production CSP. Registry/model transports are deterministic fixtures, not published releases or external provider acceptance.
|
|
16
|
+
|
|
17
|
+
The detailed provenance and original seven builtin-browser suites are retained in the plugin's `test/MIGRATION-PROVENANCE.md` and `test/legacy-{source,browser}/`. Archived suites are **not counted as passing hosted tests**. The wider menu/theme/Mermaid/import/export/IME/multiwindow matrix remains a parent acceptance gate.
|
|
18
|
+
|
|
19
|
+
## Clean published-shaped offline consumer
|
|
20
|
+
|
|
21
|
+
Build the host, pack without lifecycle scripts, then install into a clean isolated directory:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npm run check
|
|
25
|
+
npm run build
|
|
26
|
+
HOSTED_EXCALIDRAW_TGZ=/absolute/path/plugin.tgz npm test
|
|
27
|
+
PI_WEBAPP_HOSTED_EXCALIDRAW=0 node --import ./test/setup-env.mjs --experimental-strip-types --test test/hosted-bootstrap.test.ts
|
|
28
|
+
HOSTED_EXCALIDRAW_TGZ=/absolute/path/plugin.tgz npx playwright test test/browser/hosted-production.spec.ts
|
|
29
|
+
npm pack --ignore-scripts --pack-destination /absolute/path/artifacts
|
|
30
|
+
# In a fresh temp directory, package.json contains the local host tgz plus exact
|
|
31
|
+
# @earendil-works/pi-coding-agent and pi-ai 1.3.0 consumer peers:
|
|
32
|
+
npm install --offline --ignore-scripts --no-audit --no-fund
|
|
33
|
+
# Back in this checkout:
|
|
34
|
+
node scripts/verify-no-builtin-drawings.mjs /absolute/path/consumer
|
|
35
|
+
node scripts/verify-offline-hosted-consumer.mjs /absolute/path/consumer
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
No dependency symlink is mutated. No install lifecycle scripts, registry requests, credentials, publication, push or release merge are needed. Dependency/artifact inspection rejects editor/converter/roughjs dependencies and editor/font signatures in **both packed browser and Node output**. KaTeX math fonts and the SDK's independent `grok-mermaid` dependency are intentionally not mislabelled as Excalidraw code. Source metadata/icon/old-ID mentions are allowed; the word Excalidraw is not banned.
|
|
39
|
+
|
|
40
|
+
The installed-consumer startup check uses the **actual installed extension**, SDK/TUI `/web` command, authenticated HTTP, and Chromium with a clean provider-free profile and retired flag `0`. It verifies absent official card, no builtin drawing tools/API, zero plugin code/font fetch, zero external fetch and zero page errors. It does not claim a packaged Electron launch.
|
|
41
|
+
|
|
42
|
+
Exact final counts, commit IDs, artifact hashes and install logs are delivered on ORI-31, outside this packaged document to avoid an artifact hashing itself. Development protocol release protection is unchanged: the locked `0.2.0-dev.1` snapshot is verification-only and publication remains blocked.
|
|
43
|
+
|
|
44
|
+
## Not claimed
|
|
45
|
+
|
|
46
|
+
No blanket A01–A25 pass. Packaged Electron/macOS/Windows/Linux, other browsers, full legacy browser-matrix conversion, distributed/multiwindow crash recovery, paired application updater, registry publisher provenance and reference-machine performance remain parent gates. State/code GC and postcommit recovery semantics are not modified here. Build's existing large-chunk/use-client and worker debug-proxy missing-default warnings remain; do not relax CSP or resource budgets to hide them.
|