@locus-forge/locus-map 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.locus-pi/workflows/locus-map-compact/locus-map-compact.workflow.mjs +925 -0
- package/CONTRIBUTING.md +194 -0
- package/LICENSE +21 -0
- package/README.md +161 -2
- package/SECURITY.md +58 -0
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/assets/Assistant-Bold-gm-uSS1B.woff2 +0 -0
- package/dist/assets/Assistant-Medium-DrcxCXg3.woff2 +0 -0
- package/dist/assets/Assistant-Regular-DVxZuzxb.woff2 +0 -0
- package/dist/assets/Assistant-SemiBold-SCI4bEL9.woff2 +0 -0
- package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/assets/abnfDiagram-VCTEODGH-BnTGKKaL.js +1 -0
- package/dist/assets/ar-SA-G6X2FPQ2-LY3czoz9.js +10 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-BG9h9KRx.js +36 -0
- package/dist/assets/az-AZ-76LH7QW2-Brv6kuM6.js +1 -0
- package/dist/assets/bg-BG-XCXSNQG7-tsQwwvMW.js +5 -0
- package/dist/assets/blockDiagram-I7D4REHJ-V9bUuR63.js +129 -0
- package/dist/assets/bn-BD-2XOGV67Q-0Cou5nNv.js +5 -0
- package/dist/assets/c4Diagram-7LVT6UL2-BmCtzbrY.js +38 -0
- package/dist/assets/ca-ES-6MX7JW3Y-pZF7WJUL.js +8 -0
- package/dist/assets/channel-Dx9OTBrx.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-D2iTDmHh.js +1 -0
- package/dist/assets/chunk-5VM5RSS4-CTxdXZIx.js +15 -0
- package/dist/assets/chunk-F27PBJKO-Hic1X1pm.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-DhLW1JVb.js +231 -0
- package/dist/assets/chunk-JWPE2WC7-_g5twKlC.js +1 -0
- package/dist/assets/chunk-POPQ4Y6H-DMV4qmkd.js +1 -0
- package/dist/assets/chunk-SVP7TREG-BWg83oEL.js +88 -0
- package/dist/assets/chunk-TICWLB2K-CPmkpa7J.js +206 -0
- package/dist/assets/chunk-XXDRQBXY-KnXvIZ_8.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-Da4s894j.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY--H9NrCfO.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-BChK_CGh.js +1 -0
- package/dist/assets/cs-CZ-2BRQDIVT-CtAC2Qjy.js +11 -0
- package/dist/assets/cynefin-OW5HDTMX-CdsltaMX.js +166 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-bXvXX3Fx.js +62 -0
- package/dist/assets/cytoscape.esm-BHa1VTXv.js +321 -0
- package/dist/assets/d3-scale-sM87TD1Z.js +1 -0
- package/dist/assets/da-DK-5WZEPLOC-DyWwaclV.js +5 -0
- package/dist/assets/dagre-GXQ25YYZ-CTmiZZVO.js +4 -0
- package/dist/assets/de-DE-XR44H4JA-BDXUBHki.js +8 -0
- package/dist/assets/diagram-S7CK7UJ4-Bm8Fy0R_.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-BU_AmM_A.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-B78LUoXq.js +3 -0
- package/dist/assets/diagram-VX7I27RA-DNvWjMlf.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-DmFVt1fa.js +24 -0
- package/dist/assets/directory-open-01563666-DWU9wJ6I.js +1 -0
- package/dist/assets/directory-open-4ed118d0-CunoC1EB.js +1 -0
- package/dist/assets/dist-5XZJcZMV.js +21 -0
- package/dist/assets/dist-YE-j8nFO.js +3 -0
- package/dist/assets/ebnfDiagram-PWID7BFC-CpDna0Jp.js +1 -0
- package/dist/assets/el-GR-BZB4AONW-CNhF7oN2.js +10 -0
- package/dist/assets/engines-a8mi_N6S.js +1 -0
- package/dist/assets/erDiagram-RLTQ6QDP-BGD-9OAS.js +99 -0
- package/dist/assets/es-ES-U4NZUMDT-DXMrJcKL.js +9 -0
- package/dist/assets/eu-ES-A7QVB2H4-BTkMEwMi.js +11 -0
- package/dist/assets/fa-IR-HGAKTJCU-CgkknSS7.js +8 -0
- package/dist/assets/fi-FI-Z5N7JZ37-B1K83nId.js +6 -0
- package/dist/assets/file-open-002ab408-DIuFHtCF.js +1 -0
- package/dist/assets/file-open-7c801643-684qeFg4.js +1 -0
- package/dist/assets/file-save-3189631c-C1wFhQhH.js +1 -0
- package/dist/assets/file-save-745eba88-Bb9F9Kg7.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-CjU1yR1F.js +168 -0
- package/dist/assets/fr-FR-RHASNOE6-CBFZBGMr.js +9 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-bvb8BjSh.js +292 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-DZXQ_x8t.js +106 -0
- package/dist/assets/gl-ES-HMX3MZ6V-CON98Mma.js +10 -0
- package/dist/assets/he-IL-6SHJWFNN-CBoFaEdB.js +10 -0
- package/dist/assets/hi-IN-IWLTKZ5I-BJuoh3dl.js +4 -0
- package/dist/assets/hu-HU-A5ZG7DT2-CQruu8XR.js +7 -0
- package/dist/assets/icon-0-B1nVfAeC.js +6 -0
- package/dist/assets/icon-1-BB6AG9gM.js +6 -0
- package/dist/assets/icon-10-DZFK3YST.js +7 -0
- package/dist/assets/icon-100-DJkcDXhn.js +7 -0
- package/dist/assets/icon-101-DBSse9CM.js +6 -0
- package/dist/assets/icon-102-BnxZHFIv.js +6 -0
- package/dist/assets/icon-103-sLc3eQWO.js +6 -0
- package/dist/assets/icon-104-BQazFUnn.js +6 -0
- package/dist/assets/icon-105-Cc1dCVZY.js +7 -0
- package/dist/assets/icon-106-Dsm26VMI.js +7 -0
- package/dist/assets/icon-107-CTfHlA3r.js +8 -0
- package/dist/assets/icon-108-BV3_gTwL.js +7 -0
- package/dist/assets/icon-109-LcWd-DPG.js +7 -0
- package/dist/assets/icon-11-Ck94EqLX.js +7 -0
- package/dist/assets/icon-110-CzMtvC4E.js +7 -0
- package/dist/assets/icon-111-RhOOYnYs.js +6 -0
- package/dist/assets/icon-112-Brjphob9.js +6 -0
- package/dist/assets/icon-113-D6o90w8p.js +8 -0
- package/dist/assets/icon-114-B3PtrOAM.js +7 -0
- package/dist/assets/icon-115-BHWSQi73.js +6 -0
- package/dist/assets/icon-116-CjjTDutA.js +6 -0
- package/dist/assets/icon-117-CiyDBQRd.js +6 -0
- package/dist/assets/icon-118-BKghplP7.js +6 -0
- package/dist/assets/icon-119-C66U0X2Z.js +6 -0
- package/dist/assets/icon-12-BIIzektY.js +7 -0
- package/dist/assets/icon-120-DOWuZwny.js +6 -0
- package/dist/assets/icon-121-CFpHliq-.js +6 -0
- package/dist/assets/icon-122-CDbFwKzd.js +8 -0
- package/dist/assets/icon-123-C4_ZzJKx.js +8 -0
- package/dist/assets/icon-124-CSrE5xMq.js +8 -0
- package/dist/assets/icon-125-CViMXo6M.js +7 -0
- package/dist/assets/icon-126-LvH7ZIUN.js +7 -0
- package/dist/assets/icon-127-D4rZyYvV.js +10 -0
- package/dist/assets/icon-128-C60_2TSj.js +7 -0
- package/dist/assets/icon-129-BTKaVLyI.js +6 -0
- package/dist/assets/icon-13-MmHg-aVB.js +7 -0
- package/dist/assets/icon-130-C1nmEjwm.js +7 -0
- package/dist/assets/icon-131-CFanGaiN.js +7 -0
- package/dist/assets/icon-132-DvDvP_mz.js +7 -0
- package/dist/assets/icon-133-BbNiBiYQ.js +7 -0
- package/dist/assets/icon-134-Rdo3VLsE.js +6 -0
- package/dist/assets/icon-135-dIyCdAnR.js +6 -0
- package/dist/assets/icon-136-DXeBKuFV.js +7 -0
- package/dist/assets/icon-137-DTQC1STd.js +7 -0
- package/dist/assets/icon-138-CieKkHSA.js +9 -0
- package/dist/assets/icon-139-yCDfoHA7.js +7 -0
- package/dist/assets/icon-14-_iYhOAxf.js +7 -0
- package/dist/assets/icon-15-CIkC0bSy.js +7 -0
- package/dist/assets/icon-16-Dz0Hwmvs.js +6 -0
- package/dist/assets/icon-17-Cf1jKmJ9.js +6 -0
- package/dist/assets/icon-18-C_cVw5ru.js +6 -0
- package/dist/assets/icon-19-De7tySRe.js +6 -0
- package/dist/assets/icon-2-BiezH_JN.js +7 -0
- package/dist/assets/icon-20-CjL7S_wd.js +6 -0
- package/dist/assets/icon-21-C0q-1bpH.js +6 -0
- package/dist/assets/icon-22-D2-vd2Vo.js +6 -0
- package/dist/assets/icon-23-CedJLXKG.js +7 -0
- package/dist/assets/icon-24-C58mciGE.js +6 -0
- package/dist/assets/icon-25-DSHXW9L-.js +6 -0
- package/dist/assets/icon-26-DXutjT6y.js +6 -0
- package/dist/assets/icon-27--BoADDsQ.js +6 -0
- package/dist/assets/icon-28-CheZrtz1.js +8 -0
- package/dist/assets/icon-29-CrZdz1I2.js +7 -0
- package/dist/assets/icon-3-sYhuFSG7.js +7 -0
- package/dist/assets/icon-30-C7Kyjm57.js +6 -0
- package/dist/assets/icon-31-DtcvlpTq.js +6 -0
- package/dist/assets/icon-32-CphWtCb4.js +6 -0
- package/dist/assets/icon-33-CQT4KEni.js +6 -0
- package/dist/assets/icon-34-pe2lPRPi.js +6 -0
- package/dist/assets/icon-35-BVtSZw3c.js +6 -0
- package/dist/assets/icon-36-xRhJ8mZt.js +6 -0
- package/dist/assets/icon-37-Uq6qYn82.js +7 -0
- package/dist/assets/icon-38-BpFeeALu.js +7 -0
- package/dist/assets/icon-39-Dx9zYq-y.js +7 -0
- package/dist/assets/icon-4-BeiqVGT3.js +7 -0
- package/dist/assets/icon-40-D0wxO99E.js +7 -0
- package/dist/assets/icon-41-5eBMQB2n.js +8 -0
- package/dist/assets/icon-42-BSElyGDo.js +7 -0
- package/dist/assets/icon-43-BSOGyJdE.js +8 -0
- package/dist/assets/icon-44-DAYRrZIq.js +7 -0
- package/dist/assets/icon-45-DXY5ZNNW.js +7 -0
- package/dist/assets/icon-46-BGV7Hq6C.js +7 -0
- package/dist/assets/icon-47-ZrOn6gh_.js +7 -0
- package/dist/assets/icon-48-CsZTQMYV.js +7 -0
- package/dist/assets/icon-49-B8BaY0Mp.js +7 -0
- package/dist/assets/icon-5-CpedJNNw.js +7 -0
- package/dist/assets/icon-50-B7IWOCKA.js +7 -0
- package/dist/assets/icon-51-2Rn1eZ4M.js +7 -0
- package/dist/assets/icon-52-D4HDdcUX.js +8 -0
- package/dist/assets/icon-53-DNszwqSR.js +6 -0
- package/dist/assets/icon-54-Xp8wC9Mn.js +6 -0
- package/dist/assets/icon-55-DvKPtWtc.js +6 -0
- package/dist/assets/icon-56-qdaDYO-c.js +6 -0
- package/dist/assets/icon-57-C3jBnpDY.js +6 -0
- package/dist/assets/icon-58-CHVPbimu.js +6 -0
- package/dist/assets/icon-59-BxYpVoLi.js +6 -0
- package/dist/assets/icon-6-DGMnODWY.js +7 -0
- package/dist/assets/icon-60-nT25Jfot.js +6 -0
- package/dist/assets/icon-61-TWCIas0q.js +6 -0
- package/dist/assets/icon-62-B2rpCbSK.js +6 -0
- package/dist/assets/icon-63-xnsp2xo2.js +6 -0
- package/dist/assets/icon-64-PMlrHZZa.js +6 -0
- package/dist/assets/icon-65-BmQAifhj.js +6 -0
- package/dist/assets/icon-66-DeV16I8-.js +6 -0
- package/dist/assets/icon-67-B8HsO_gP.js +6 -0
- package/dist/assets/icon-68-ComCfpKF.js +6 -0
- package/dist/assets/icon-69-CG4uEyXD.js +5 -0
- package/dist/assets/icon-7-D7QV8iDt.js +7 -0
- package/dist/assets/icon-70-DhuszGqg.js +5 -0
- package/dist/assets/icon-71-CECea36R.js +8 -0
- package/dist/assets/icon-72-D6Cilerx.js +5 -0
- package/dist/assets/icon-73-BcXKN0_Q.js +6 -0
- package/dist/assets/icon-74-x-WCCw7Y.js +6 -0
- package/dist/assets/icon-75-DwYg3aAl.js +6 -0
- package/dist/assets/icon-76-Dmh1yl_o.js +6 -0
- package/dist/assets/icon-77-BWpZprdZ.js +6 -0
- package/dist/assets/icon-78--zVbx8yc.js +6 -0
- package/dist/assets/icon-79-CEUXlPh-.js +6 -0
- package/dist/assets/icon-8-BdsnITTH.js +7 -0
- package/dist/assets/icon-80-Bg-ZZRLP.js +7 -0
- package/dist/assets/icon-81-cD-KNOoy.js +6 -0
- package/dist/assets/icon-82-16FU2TZ-.js +6 -0
- package/dist/assets/icon-83-CvL4wS1h.js +6 -0
- package/dist/assets/icon-84-BfiboSwi.js +6 -0
- package/dist/assets/icon-85-LB0Ura8Y.js +6 -0
- package/dist/assets/icon-86-DWja1qqa.js +6 -0
- package/dist/assets/icon-87-GQ4vkWov.js +6 -0
- package/dist/assets/icon-88-Bjb3oyjh.js +6 -0
- package/dist/assets/icon-89-CS3JNCxI.js +6 -0
- package/dist/assets/icon-9-aGq56hE7.js +6 -0
- package/dist/assets/icon-90-B0_E4np7.js +6 -0
- package/dist/assets/icon-91-D_7zfU7y.js +8 -0
- package/dist/assets/icon-92-DMMH9vOM.js +6 -0
- package/dist/assets/icon-93-wLckB8wM.js +6 -0
- package/dist/assets/icon-94-CjD59yDM.js +6 -0
- package/dist/assets/icon-95-CipgPXt3.js +7 -0
- package/dist/assets/icon-96-DeADzXz2.js +8 -0
- package/dist/assets/icon-97-BNxSQhrs.js +7 -0
- package/dist/assets/icon-98-CZW2Twh8.js +6 -0
- package/dist/assets/icon-99-CIA1GOq3.js +6 -0
- package/dist/assets/id-ID-SAP4L64H-VhaoENjR.js +10 -0
- package/dist/assets/image-blob-reduce.esm-BZtWH-rr.js +2 -0
- package/dist/assets/index-CDNl17QJ.css +1 -0
- package/dist/assets/index-CboxqaL5.js +328 -0
- package/dist/assets/index-DBGHN_5E.js +624 -0
- package/dist/assets/infoDiagram-27XIBGKW-CM9Hap0f.js +2 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-i8pQztJI.js +70 -0
- package/dist/assets/it-IT-JPQ66NNP-Dj9BkXfh.js +11 -0
- package/dist/assets/ja-JP-DBVTYXUO-CB2BlfIS.js +8 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-PxcdqONT.js +139 -0
- package/dist/assets/kaa-6HZHGXH3-CLnR_zY5.js +1 -0
- package/dist/assets/kab-KAB-ZGHBKWFO-8TJr4nPf.js +8 -0
- package/dist/assets/kanban-definition-UXKFOSKX-B2p5NBhO.js +89 -0
- package/dist/assets/katex-HP8lGamR.js +257 -0
- package/dist/assets/kk-KZ-P5N5QNE5-5uZYjZ2e.js +1 -0
- package/dist/assets/km-KH-HSX4SM5Z-D54aOpMd.js +11 -0
- package/dist/assets/ko-KR-MTYHY66A-Bnm0G6eo.js +9 -0
- package/dist/assets/ku-TR-6OUDTVRD-CtGCn_eB.js +9 -0
- package/dist/assets/layout-BBV3_Svw.js +1 -0
- package/dist/assets/libavoid-BRQRZjmQ.wasm +0 -0
- package/dist/assets/lt-LT-XHIRWOB4-Bl8G0yv6.js +3 -0
- package/dist/assets/lv-LV-5QDEKY6T-Cax93Eua.js +7 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-CsOezwmE.js +96 -0
- package/dist/assets/mr-IN-CRQNXWMA-Br7GVyJH.js +13 -0
- package/dist/assets/my-MM-5M5IBNSE-xC6lzTDV.js +1 -0
- package/dist/assets/nb-NO-T6EIAALU-B0i5THqA.js +10 -0
- package/dist/assets/nl-NL-IS3SIHDZ-CqYhUjP3.js +8 -0
- package/dist/assets/nn-NO-6E72VCQL-rpjr_9Z5.js +8 -0
- package/dist/assets/oc-FR-POXYY2M6-BlhQ99Ty.js +8 -0
- package/dist/assets/pa-IN-N4M65BXN-N2XbQgZ_.js +4 -0
- package/dist/assets/pegDiagram-XKGWAZYB-C2iSJgYQ.js +1 -0
- package/dist/assets/pica-DvYcrBvx.js +2 -0
- package/dist/assets/pieDiagram-E7YTZNPT-CUjgOGBw.js +39 -0
- package/dist/assets/pl-PL-T2D74RX3-CnMxn1dA.js +9 -0
- package/dist/assets/pt-BR-5N22H2LF-Di-jnHb3.js +9 -0
- package/dist/assets/pt-PT-UZXXM6DQ-BaAKq8Sh.js +9 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-DwwqgJXZ.js +7 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-DyRgYGPF.js +1 -0
- package/dist/assets/requirementDiagram-BXWQKSXE-C3ixXeHJ.js +84 -0
- package/dist/assets/ro-RO-JPDTUUEW-BWrclVyo.js +11 -0
- package/dist/assets/roundRect-mAH3dD0p.js +1 -0
- package/dist/assets/ru-RU-B4JR7IUQ-_z0DINaG.js +9 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-mKpKYI_w.js +40 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-ZkNd0Wnj.js +162 -0
- package/dist/assets/si-LK-N5RQ5JYF-CdKOb383.js +1 -0
- package/dist/assets/sizeCapture-INFHLROL-hQLGO-0z.js +1 -0
- package/dist/assets/sk-SK-C5VTKIMK-MHJC6ZIe.js +6 -0
- package/dist/assets/sl-SI-NN7IZMDC-BF9YWbZx.js +6 -0
- package/dist/assets/stateDiagram-D77RDMKH-CRWj3j-B.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-B2DcVJGG.js +1 -0
- package/dist/assets/subset-shared.chunk-DtxXjVIA.js +22 -0
- package/dist/assets/subset-worker.chunk-DONNSbUF.js +1 -0
- package/dist/assets/sv-SE-XGPEYMSR-DkaTkfUY.js +10 -0
- package/dist/assets/swimlanes-42K2YHIH-CFf6j7jO.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-DO_W2uN2.js +8 -0
- package/dist/assets/ta-IN-2NMHFXQM-BfxqXEDI.js +9 -0
- package/dist/assets/th-TH-HPSO5L25-DT3vLA39.js +2 -0
- package/dist/assets/timeline-definition-24CTP7MA-BGP2Dq8M.js +120 -0
- package/dist/assets/tr-TR-DEFEU3FU-CdfsG7py.js +7 -0
- package/dist/assets/uk-UA-QMV73CPH-CZrQuC1S.js +6 -0
- package/dist/assets/vennDiagram-4TSXK5OY-CaxGPIab.js +34 -0
- package/dist/assets/vi-VN-M7AON7JQ-DQJk1_KV.js +5 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-DQxQ-zXH.js +78 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-DoxdZQ6R.js +7 -0
- package/dist/assets/zh-CN-LNUGB5OW-DRVBfkOy.js +10 -0
- package/dist/assets/zh-HK-E62DVLB3-BJHrltss.js +1 -0
- package/dist/assets/zh-TW-RAJ6MFWO-DpMZ5m2x.js +9 -0
- package/dist/fonts/Assistant/Assistant-Bold.woff2 +0 -0
- package/dist/fonts/Assistant/Assistant-Medium.woff2 +0 -0
- package/dist/fonts/Assistant/Assistant-Regular.woff2 +0 -0
- package/dist/fonts/Assistant/Assistant-SemiBold.woff2 +0 -0
- package/dist/fonts/Cascadia/CascadiaCode-Regular.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
- package/dist/fonts/Liberation/LiberationSans-Regular.woff2 +0 -0
- package/dist/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
- package/dist/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Virgil/Virgil-Regular.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-019d66dcad46dc156b162d267f981c20.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-04b718e5623574919c8b0dea5f301444.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-069e77aac84590e2e991d0a0176d34f2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-06c77b8c66e51ed6c63ccb502dd8b8af.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-08e0dc436ad0ad61ba5558db0674d762.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-093b9ef39a46ceae95a1df18a0a3a326.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-095c169f3314805276f603a362766abd.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-09850c4077f3fffe707905872e0e2460.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0986d134c05864f5025962eef9f994a0.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0b5d723fdc4e249c140f0909e87d03b4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0f626226ba1272e832aea87bafd9720e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0f7fb1e0d5015bb1371343153ecf7ce3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0fa55a080fcd0f9dc2e0b0058b793df8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0facdf1ea213ba40261022f5d5ed4493.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-10a7ae9a371830a80c3d844acf1c02d7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-112c051027b2d766c19a519f6ee1f4f7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-11c345711937f0ba4b8f7b6b919c8440.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-12b52b58eb3df36804b9a654ec9ee194.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-13ae07ed2e272d26d59bc0691cd7117a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-13d2887ec8ee73c43acdabc52a05af7b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-145aa02cdd91946e67dc934e1acffe75.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-15dc6d811c9cd078f9086a740d5a1038.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-173945821411c09f70c95f98d590e697.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1b611157cd46bb184d4fa4dae2d6a2b8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1e6fd68f1f3902ce48ce8c69df385622.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1ee544f0f1dac422545c505baa788992.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1fdc0c67ed57263a80fd108c1f6ccf24.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-203b0e569e3b14aac86a003dc3fa523e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-20cc1bbf50e7efb442756cb605672c1f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-20e7bf72fa05de9adf7dbcc7bf51dde6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-21430ee05a1248901da8d0de08744d47.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-23686f7f29da6e8008c36dd3a80c83d6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-23ad2d71b280f00b1363b95b7bea94eb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-23f228f3999c01983860012330e4be08.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-24476a126f129212beb33f66853ea151.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-24a21c1e4449222e8d1898d69ff3a404.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-25b7f38e18f035f96cb5e547bd2bd08c.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-29cec36cd205b211da97acabaa62f055.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2a26d20a23b00898ce82f09d2ee47c3f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2adbc89c11e65905393d3dfc468b9d5b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2b7441d46298788ac94e610ffcc709b6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2b77e8ebfb2367ab2662396a60e7d320.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2cf96d082d35ea3d8106851223ad0d16.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2d43040e86ff03ba677f6f9c04cd0805.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2e33e8dc771ef5e1d9127d60a6b73679.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-33432927cd87d40cfe393c7482bf221f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-353f33792a8f60dc69323ddf635a269e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-36925dfe329a45086cbb7fc5c20d45ac.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3717077e38f98d89eae729b6c14e56dc.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3756e81d3e149cf6099163ee79944fec.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-395c35dd584b56b0789f58a0559beaf1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3c9de2ae0ea4bc91a510942dfa4be8d2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3cc70dbb64df5b21f1326cc24dee2195.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3e1f8f654357353bf0e04ba5c34b5f7f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3e63ed8162808a9e425ed80a8bc79114.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3eaa538115d76932653c21d8dc28f207.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4095eb84ef3874e2600247bee0b04026.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-41521fade99856108931b4768b1b2648.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-450da755d5bcb70906e1295e559b9602.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-452225341522a7942f0f6aab1a5c91a3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4535823663ad81405188a528d8f2b1a2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4806e761d750087c2d734fc64596eaff.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4a0fdb40036e87b40aa08dd30584cb85.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4a38cc3e9cf104e69ba246d37f8cf135.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4aca6a43e59aceee2166b0c7e4e85ef1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4bfaa8ffa64c5ee560aa2daba7c9cbd3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4dc6d5f188d5c96d44815cd1e81aa885.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4ddc14ed3eb0c3e46364317dfc0144a3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4ee10ae43505e2e0bc62656ced49c0fa.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4f50e5136e136527280bc902c5817561.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-51502f1206be09c565f1547c406e9558.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-51a0e808bbc8361236ac521a119758a3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-52a84a22fd1369bffeaf21da2d6158dc.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5330a2119a716e4e7224ed108b085dac.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-543fa46ace099a7099dad69123399400.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-544fc28abe2c5c30e62383fd4dac255f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-54acdfc2166ad7fcbd074f75fd4a56ba.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5572b3513ba8df57a3d5d7303ee6b11b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-56467a5c8840c4d23a60b2f935114848.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-56a32a7689abd0326e57c10c6c069bb4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-57862b464a55b18c7bf234ce22907d73.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-583d166e56ba0de4b77eabb47ef67839.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5882ffa04f32584d26109137e2da4352.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-58fd02350d0bc52cf1ca3bb32ce9766e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5935a5775af3d5c6307ac667bd9ae74e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-59e9ff77b0efaf684bc09274fb6908c9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5a1ce3117cfe90c48e8fb4a9a00f694d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5a45d991244d4c7140217e1e5f5ca4f4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5a7fac4b8b23a6e4e5ba0c9bf1756c91.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5b0ed6971aaab9c8ad563230bd5471a7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5d2898fbc097a7e24c6f38d80587621e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-603aefd23e350ba7eb124273e3c9bcf1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-60a3089806700d379f11827ee9843b6b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-60a41c7e1c68f22424e6d22df544bc82.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-642b26e2e5f5fb780b51b593dbc8c851.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-66493ba5a8367f2928812f446f47b56a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-670ba603758d94268e8606f240a42e12.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-671a2c20b1eb9e4ef8a192833940e319.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-684d65f1793cac449dde5d59cb3c47fb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-69c09cc5fa3e55c74fc4821f76909cc3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6ae5b42180ad70b971c91e7eefb8eba2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6e092f71c1e634059ada0e52abadce67.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6f3256af8454371776bc46670d33cc65.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6fe5c5973cc06f74b2387a631ea36b88.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-70c2eb8d64e71a42a834eb857ea9df51.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-70e811fd7994e61f408c923de6ddd078.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7197d6fda6cba7c3874c53d6381ca239.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-72252d73220fa3cd856677888cee1635.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-72536a3d71b694a0d53dd90ddceae41e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-726303e0774b4e678bff8c2deb6ca603.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-733171b4ffcd17ea1fe1c0ba627173bf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-739bc1a567439c7cffcd1614644593d2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-73e309718fd16cea44b4d54a33581811.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7494dc504ae00ee9cd0505f990f88c5d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-74e2263a91439c25b91d5132ce9f4d62.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-761d05e3cd968cf574166867998ef06a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7718fe60986d8b42b1be9c5ace5ccf25.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-774d4f764a1299da5d28ec2f2ffe0d69.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-79d494361ae093b69e74ee9dbe65bfd4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-79f007c1c6d07557120982951ea67998.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7a07ddc0f0c0f5f4a9bad6ee3dda66b5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7ab2bed91166a9dca83a5ebfbe2a7f38.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7ccce86603f80a099ddb0cb21d4ae3e3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7e4bde7e9c7f84cd34d8a845e384c746.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7e929f262f30c8ee78bf398150b1a7cd.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7eb9fffd1aa890d07d0f88cc82e6cfe4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7f855356ab893b0d2b9c1c83b8116f0e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-829615148e6357d826b9242eb7fbbd1e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-866fa7613df6b3fd272bcfd4530c0bb9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-87599f94b6cc129d505b375798d0d751.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8c2f33cee3993174f7e87c28e4bf42ee.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8d3bcabb847b56243b16afe62adaaf21.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8de5b863cb50dfefdd07cb11c774d579.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8e9f97f01034820170065b2921b4fb5e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8f476c4c99813d57cbe6eca4727388ad.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-903bb6865f3452e2fda42e3a25547bc5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-91ddb2969bf2d31ba02ad82998d1314c.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-938d90c10ff8c20386af7f242c05d6b0.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-93fc8f28a33234bcadf1527cafabd502.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-95429962233afd82db1c27df1500a28c.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9544732d2e62d1a429674f8ee41b5d3a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9592bfc861f07bcb8d75c196b370e548.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-95bfd249da4902577b4b7d76ebdd0b44.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-968cffdc8ee679da094e77ebf50f58ef.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-97f7f48ce90c9429bf32ae51469db74d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-982b630266d87db93d2539affb1275c6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-98f2ad84457de7f3740d9920b8fa8667.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-99a16ef6a64934d5781933dbd9c46b2e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9cfb2a77a4e45025105ad29a1748b90d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9d81066dd2b337c938df6e90380a00dc.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9eb5a99df4e76ac3363453ac9ca288b1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a004ddfcb26e67bd6e678c8ed19e25ce.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a0ca5df4258213d7fc9fce80f65ce760.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a1f916d6039285c4ffb900cd654e418f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a203b91dad570bf05a58c3c3ddb529bf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a365e82ed54697a52f27adcea1315fe8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a4c34be6d42152e64b0df90bc4607f64.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a7accba310e821da5505f71c03b76bdb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-aa0d470430e6391eca720c7cfa44446f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-aa5c9ca6cf4fba00433b7aa3fa10671a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ac9ceb44437becc3e9c4dbfebab7fc2d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b1220a3c61f85cc0408deedb4c5f57a2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b358f7a51ece39a3247942b1feabdb29.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b57aaedfd8ebdf3931f25119dc6a5eb2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b5c1596551c256e0e9cf02028595b092.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b6d128682ee29e471486354d486a1b90.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b6fd38ca30869792244804b04bc058da.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b7d203b051eff504ff59ddca7576b6a9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b96d9226ce77ec94ceca043d712182e6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ba3de316d63c7e339987b16f41a0b879.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-bafff7a14c27403dcc6cf1432e8ea836.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-bd77e3c7f9e0b072d96af37f73d1aa32.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-be549ab72f0719d606a5c01e2c0219b6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c16ed9740b85badf16e86ea782a3062f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c1f94158256bb1f3bf665b053d895af9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c40533fdf4cc57177b12803598af7e59.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c4a687ac4f0c2766eefc9f77ed99cddf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c69f61a4ab18d0488c8d1fc12e7028e8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c8b71798409ccc126ee264a00aadcf21.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c99eda15fc26a2941579560f76c3a5cf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cb17fc3db95f6d139afc9d31a8e93293.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cbaaefaaf326668277aa24dfa93c4d28.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cd145ce4a0ea18469358df53c207bc1b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cdbce89e82cc1ab53a2decbf5819278f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ce4884f96f11589608b76b726a755803.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cf2cc71752631e579e35b0e423bf2638.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cf6ff4e0f491ca0cf3038187a997b9b4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cfb211578629b7e8153b37240de6a9d5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-d0cf73942fea1c74edbdf0b3011f4656.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-d2666cbed13462c5dc36fa2f15c202ca.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-d3716376641d615e2995605b29bca7b6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-dac48066b5883d8b4551fc584f0c2a3e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-dbea1af6dcd9860be40c3d18254338f5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e11567fd2accf9957cd0d3c2be937d87.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e2ead7ea7da0437f085f42ffc05f8d13.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e3fcf5180fd466c8915c4e8069491054.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e480d9c614742d05f0e78f274f1e69e6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e4bca6cfa53e499cae0a6be4894a90e9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e51ef413167c6e14e0c0fdcc585f2fc9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e5f453bb04da18eed01675eeebd88bf8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e656f091b9dc4709722c9f4b84d3c797.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ec181b795ac1fb5a50d700b6e996d745.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ee8bae97908d5147b423f77ad0d3c1bb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f0f13b5c60e0af5553bd359f5513be1b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f2b54d4e7be0eaefe1c2c56836fa5368.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f56414bf9bced67990def8660e306759.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f5d079153c99a25b9be5b8583c4cc8a7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f6032fc06eb20480f096199713f70885.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f8ee5d36068a42b51d0e4a1116cfcec1.woff2 +0 -0
- package/dist/index.html +3 -0
- package/dist/layout-runtime/libavoid-js-LICENSE.txt +505 -0
- package/dist/layout-runtime/libavoid.wasm +0 -0
- package/dist/layout-runtime/wasm-graphviz-LICENSE.txt +201 -0
- package/dist/licenses/commonmark-BSD-2-Clause.txt +89 -0
- package/dist/licenses/entities-BSD-2-Clause.txt +11 -0
- package/dist/licenses/libavoid-js-LGPL-2.1.txt +505 -0
- package/dist/licenses/locus-draw-MIT.txt +21 -0
- package/dist/licenses/markdown-reading-notices.txt +564 -0
- package/dist/licenses/mdurl-MIT.txt +45 -0
- package/dist/licenses/wasm-graphviz-Apache-2.0.txt +201 -0
- package/docs/AGENTS.md +78 -0
- package/docs/BUNDLE-FORMAT.md +212 -0
- package/docs/C4-AUTO-LAYOUT.md +170 -0
- package/docs/DIAGRAM-COMMUNICATION.md +273 -0
- package/docs/DIAGRAM-SOURCE.md +398 -0
- package/docs/DSL-AUTHORING.md +360 -0
- package/docs/EXPLICIT-LAYOUT.md +161 -0
- package/docs/FRESHNESS.md +160 -0
- package/docs/LANGUAGE-COMPATIBILITY.md +87 -0
- package/docs/LOCAL-DOCUMENT.md +255 -0
- package/docs/MODEL-CONTRACT.md +490 -0
- package/docs/PI-WORKFLOW.md +597 -0
- package/docs/PLANTUML-SOURCE.md +78 -0
- package/docs/SCENE-ADAPTER.md +213 -0
- package/docs/VIEW-CHAIN.md +129 -0
- package/docs/VIEWER-LAUNCH.md +128 -0
- package/docs/VIEWER.md +379 -0
- package/docs/adr/ADR-001-2026-12-03-inspector-original-document-first/ADR-001-2026-12-03-inspector-original-document-first.md +26 -0
- package/docs/adr/ADR-002-2026-12-03-project-selector/ADR-002-2026-12-03-project-selector.md +26 -0
- package/docs/adr/ADR-003-2026-12-03-project-authored-task-maps/ADR-003-2026-12-03-project-authored-task-maps.md +32 -0
- package/docs/adr/ADR-004-2026-12-03-shared-map-build-and-open/ADR-004-2026-12-03-shared-map-build-and-open.md +28 -0
- package/docs/adr/ADR-005-2026-12-04-named-libraries/ADR-005-2026-12-04-named-libraries.md +26 -0
- package/docs/adr/ADR-006-2026-12-05-workspace-navigation-rows/ADR-006-2026-12-05-workspace-navigation-rows.md +29 -0
- package/docs/adr/ADR-007-2026-12-05-native-edit-selection/ADR-007-2026-12-05-native-edit-selection.md +25 -0
- package/docs/assets/locus-map-repository.locus-map.json +1 -0
- package/docs/assets/locus-map-repository.mjs +327 -0
- package/docs/assets/locus-map-repository.png +0 -0
- package/docs/capabilities.json +747 -0
- package/docs/compact-component-cards.md +43 -0
- package/docs/decisions.md +23 -0
- package/docs/index.md +69 -0
- package/index.html +1 -0
- package/licenses/commonmark-BSD-2-Clause.txt +89 -0
- package/licenses/entities-BSD-2-Clause.txt +11 -0
- package/licenses/excalidraw-LICENSE +21 -0
- package/licenses/libavoid-js-LGPL-2.1.txt +505 -0
- package/licenses/locus-draw-MIT.txt +21 -0
- package/licenses/markdown-reading-notices.txt +564 -0
- package/licenses/mdurl-MIT.txt +45 -0
- package/licenses/parse5-MIT.txt +19 -0
- package/licenses/react-LICENSE +21 -0
- package/licenses/react-dom-LICENSE +21 -0
- package/licenses/vendor/@antfu__install-pkg__LICENSE +21 -0
- package/licenses/vendor/@babel__runtime__LICENSE +22 -0
- package/licenses/vendor/@braintree__sanitize-url__LICENSE +21 -0
- package/licenses/vendor/@chevrotain__cst-dts-gen__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__gast__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__regexp-to-ast__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__types__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__utils__LICENSE.txt +202 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__chokidar__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__immutable__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__picomatch__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__readdirp__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__sass__LICENSE +1532 -0
- package/licenses/vendor/@excalidraw__laser-pointer__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__markdown-to-text__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__mermaid-to-excalidraw__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__mermaid-to-excalidraw__node_modules__nanoid__LICENSE +20 -0
- package/licenses/vendor/@excalidraw__random-username__LICENSE +21 -0
- package/licenses/vendor/@floating-ui__core__LICENSE +20 -0
- package/licenses/vendor/@floating-ui__dom__LICENSE +20 -0
- package/licenses/vendor/@floating-ui__react-dom__LICENSE +20 -0
- package/licenses/vendor/@floating-ui__utils__LICENSE +20 -0
- package/licenses/vendor/@iconify__types__license.txt +21 -0
- package/licenses/vendor/@iconify__utils__license.txt +21 -0
- package/licenses/vendor/@mermaid-js__parser__LICENSE +21 -0
- package/licenses/vendor/@parcel__watcher-linux-x64-glibc__LICENSE +21 -0
- package/licenses/vendor/@parcel__watcher__LICENSE +21 -0
- package/licenses/vendor/@types__d3-array__LICENSE +21 -0
- package/licenses/vendor/@types__d3-axis__LICENSE +21 -0
- package/licenses/vendor/@types__d3-brush__LICENSE +21 -0
- package/licenses/vendor/@types__d3-chord__LICENSE +21 -0
- package/licenses/vendor/@types__d3-color__LICENSE +21 -0
- package/licenses/vendor/@types__d3-contour__LICENSE +21 -0
- package/licenses/vendor/@types__d3-delaunay__LICENSE +21 -0
- package/licenses/vendor/@types__d3-dispatch__LICENSE +21 -0
- package/licenses/vendor/@types__d3-drag__LICENSE +21 -0
- package/licenses/vendor/@types__d3-dsv__LICENSE +21 -0
- package/licenses/vendor/@types__d3-ease__LICENSE +21 -0
- package/licenses/vendor/@types__d3-fetch__LICENSE +21 -0
- package/licenses/vendor/@types__d3-force__LICENSE +21 -0
- package/licenses/vendor/@types__d3-format__LICENSE +21 -0
- package/licenses/vendor/@types__d3-geo__LICENSE +21 -0
- package/licenses/vendor/@types__d3-hierarchy__LICENSE +21 -0
- package/licenses/vendor/@types__d3-interpolate__LICENSE +21 -0
- package/licenses/vendor/@types__d3-path__LICENSE +21 -0
- package/licenses/vendor/@types__d3-polygon__LICENSE +21 -0
- package/licenses/vendor/@types__d3-quadtree__LICENSE +21 -0
- package/licenses/vendor/@types__d3-random__LICENSE +21 -0
- package/licenses/vendor/@types__d3-scale-chromatic__LICENSE +21 -0
- package/licenses/vendor/@types__d3-scale__LICENSE +21 -0
- package/licenses/vendor/@types__d3-selection__LICENSE +21 -0
- package/licenses/vendor/@types__d3-shape__LICENSE +21 -0
- package/licenses/vendor/@types__d3-time-format__LICENSE +21 -0
- package/licenses/vendor/@types__d3-time__LICENSE +21 -0
- package/licenses/vendor/@types__d3-timer__LICENSE +21 -0
- package/licenses/vendor/@types__d3-transition__LICENSE +21 -0
- package/licenses/vendor/@types__d3-zoom__LICENSE +21 -0
- package/licenses/vendor/@types__d3__LICENSE +21 -0
- package/licenses/vendor/@types__estree__LICENSE +21 -0
- package/licenses/vendor/@types__geojson__LICENSE +21 -0
- package/licenses/vendor/@types__trusted-types__LICENSE +21 -0
- package/licenses/vendor/@upsetjs__venn.js__LICENSE +22 -0
- package/licenses/vendor/anymatch__LICENSE +15 -0
- package/licenses/vendor/anymatch__node_modules__picomatch__LICENSE +21 -0
- package/licenses/vendor/aria-hidden__LICENSE +21 -0
- package/licenses/vendor/binary-extensions__license +10 -0
- package/licenses/vendor/braces__LICENSE +21 -0
- package/licenses/vendor/browser-fs-access__LICENSE +201 -0
- package/licenses/vendor/canvas-roundrect-polyfill__LICENSE +21 -0
- package/licenses/vendor/chevrotain-allstar__LICENSE +16 -0
- package/licenses/vendor/chevrotain__LICENSE.txt +202 -0
- package/licenses/vendor/chokidar__LICENSE +21 -0
- package/licenses/vendor/clsx__license +9 -0
- package/licenses/vendor/commander__LICENSE +22 -0
- package/licenses/vendor/cose-base__LICENSE +21 -0
- package/licenses/vendor/crc-32__LICENSE +14 -0
- package/licenses/vendor/cross-env__LICENSE +20 -0
- package/licenses/vendor/cross-spawn__LICENSE +21 -0
- package/licenses/vendor/cytoscape-cose-bilkent__LICENSE +21 -0
- package/licenses/vendor/cytoscape-fcose__LICENSE +19 -0
- package/licenses/vendor/cytoscape-fcose__node_modules__cose-base__LICENSE +21 -0
- package/licenses/vendor/cytoscape-fcose__node_modules__layout-base__LICENSE +21 -0
- package/licenses/vendor/cytoscape__LICENSE +19 -0
- package/licenses/vendor/d3-array__LICENSE +13 -0
- package/licenses/vendor/d3-axis__LICENSE +13 -0
- package/licenses/vendor/d3-brush__LICENSE +13 -0
- package/licenses/vendor/d3-chord__LICENSE +13 -0
- package/licenses/vendor/d3-color__LICENSE +13 -0
- package/licenses/vendor/d3-contour__LICENSE +13 -0
- package/licenses/vendor/d3-delaunay__LICENSE +14 -0
- package/licenses/vendor/d3-dispatch__LICENSE +13 -0
- package/licenses/vendor/d3-drag__LICENSE +13 -0
- package/licenses/vendor/d3-dsv__LICENSE +13 -0
- package/licenses/vendor/d3-ease__LICENSE +28 -0
- package/licenses/vendor/d3-fetch__LICENSE +13 -0
- package/licenses/vendor/d3-force__LICENSE +13 -0
- package/licenses/vendor/d3-format__LICENSE +13 -0
- package/licenses/vendor/d3-geo__LICENSE +34 -0
- package/licenses/vendor/d3-hierarchy__LICENSE +13 -0
- package/licenses/vendor/d3-interpolate__LICENSE +13 -0
- package/licenses/vendor/d3-path__LICENSE +13 -0
- package/licenses/vendor/d3-polygon__LICENSE +13 -0
- package/licenses/vendor/d3-quadtree__LICENSE +13 -0
- package/licenses/vendor/d3-random__LICENSE +13 -0
- package/licenses/vendor/d3-sankey__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__d3-array__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__d3-path__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__d3-shape__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__internmap__LICENSE +13 -0
- package/licenses/vendor/d3-scale-chromatic__LICENSE +28 -0
- package/licenses/vendor/d3-scale__LICENSE +13 -0
- package/licenses/vendor/d3-selection__LICENSE +13 -0
- package/licenses/vendor/d3-shape__LICENSE +13 -0
- package/licenses/vendor/d3-time-format__LICENSE +13 -0
- package/licenses/vendor/d3-time__LICENSE +13 -0
- package/licenses/vendor/d3-timer__LICENSE +13 -0
- package/licenses/vendor/d3-transition__LICENSE +13 -0
- package/licenses/vendor/d3-zoom__LICENSE +13 -0
- package/licenses/vendor/d3__LICENSE +13 -0
- package/licenses/vendor/dagre-d3-es__LICENSE.md +23 -0
- package/licenses/vendor/dayjs__LICENSE +21 -0
- package/licenses/vendor/delaunator__LICENSE +15 -0
- package/licenses/vendor/detect-libc__LICENSE +201 -0
- package/licenses/vendor/detect-node-es__LICENSE +21 -0
- package/licenses/vendor/dompurify__LICENSE +202 -0
- package/licenses/vendor/es-toolkit__LICENSE +21 -0
- package/licenses/vendor/es-toolkit__NOTICE +39 -0
- package/licenses/vendor/es6-promise-pool__LICENSE +19 -0
- package/licenses/vendor/esbuild__LICENSE.md +21 -0
- package/licenses/vendor/fdir__LICENSE +7 -0
- package/licenses/vendor/fill-range__LICENSE +21 -0
- package/licenses/vendor/fractional-indexing__LICENSE +121 -0
- package/licenses/vendor/get-nonce__LICENSE +21 -0
- package/licenses/vendor/glob-parent__LICENSE +15 -0
- package/licenses/vendor/glur__LICENSE +22 -0
- package/licenses/vendor/hachure-fill__LICENSE +21 -0
- package/licenses/vendor/iconv-lite__LICENSE +21 -0
- package/licenses/vendor/image-blob-reduce__LICENSE +21 -0
- package/licenses/vendor/immutable__LICENSE +21 -0
- package/licenses/vendor/import-meta-resolve__license +74 -0
- package/licenses/vendor/inherits__LICENSE +16 -0
- package/licenses/vendor/internmap__LICENSE +13 -0
- package/licenses/vendor/is-binary-path__license +9 -0
- package/licenses/vendor/is-extglob__LICENSE +21 -0
- package/licenses/vendor/is-glob__LICENSE +21 -0
- package/licenses/vendor/is-number__LICENSE +21 -0
- package/licenses/vendor/isexe__LICENSE +15 -0
- package/licenses/vendor/jotai-scope__LICENSE +21 -0
- package/licenses/vendor/jotai__LICENSE +21 -0
- package/licenses/vendor/js-tokens__LICENSE +21 -0
- package/licenses/vendor/katex__LICENSE +21 -0
- package/licenses/vendor/katex__node_modules__commander__LICENSE +22 -0
- package/licenses/vendor/khroma__license +21 -0
- package/licenses/vendor/langium__LICENSE +16 -0
- package/licenses/vendor/layout-base__LICENSE +21 -0
- package/licenses/vendor/lodash-es__LICENSE +47 -0
- package/licenses/vendor/lodash.debounce__LICENSE +47 -0
- package/licenses/vendor/lodash.throttle__LICENSE +47 -0
- package/licenses/vendor/loose-envify__LICENSE +21 -0
- package/licenses/vendor/marked__LICENSE.md +44 -0
- package/licenses/vendor/mermaid__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__@braintree__sanitize-url__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__@chevrotain__types__LICENSE.txt +202 -0
- package/licenses/vendor/mermaid__node_modules__@mermaid-js__parser__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__points-on-curve__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__roughjs__LICENSE +21 -0
- package/licenses/vendor/multimath__LICENSE +21 -0
- package/licenses/vendor/nanoid__LICENSE +20 -0
- package/licenses/vendor/node-addon-api__LICENSE.md +9 -0
- package/licenses/vendor/normalize-path__LICENSE +21 -0
- package/licenses/vendor/object-assign__license +21 -0
- package/licenses/vendor/open-color__LICENSE +21 -0
- package/licenses/vendor/package-manager-detector__LICENSE +21 -0
- package/licenses/vendor/pako__LICENSE +21 -0
- package/licenses/vendor/path-data-parser__LICENSE +21 -0
- package/licenses/vendor/path-key__license +9 -0
- package/licenses/vendor/perfect-freehand__LICENSE +21 -0
- package/licenses/vendor/pica__LICENSE +21 -0
- package/licenses/vendor/picocolors__LICENSE +15 -0
- package/licenses/vendor/picomatch__LICENSE +21 -0
- package/licenses/vendor/png-chunk-text__LICENSE.md +21 -0
- package/licenses/vendor/png-chunks-encode__LICENSE.md +21 -0
- package/licenses/vendor/png-chunks-extract__LICENSE.md +21 -0
- package/licenses/vendor/points-on-curve__LICENSE +21 -0
- package/licenses/vendor/points-on-path__LICENSE +21 -0
- package/licenses/vendor/points-on-path__node_modules__points-on-curve__LICENSE +21 -0
- package/licenses/vendor/postcss__LICENSE +20 -0
- package/licenses/vendor/postcss__node_modules__nanoid__LICENSE +20 -0
- package/licenses/vendor/pwacompat__LICENSE +201 -0
- package/licenses/vendor/react-dom__LICENSE +21 -0
- package/licenses/vendor/react-remove-scroll__LICENSE +21 -0
- package/licenses/vendor/react-style-singleton__LICENSE +21 -0
- package/licenses/vendor/react__LICENSE +21 -0
- package/licenses/vendor/readdirp__LICENSE +21 -0
- package/licenses/vendor/robust-predicates__LICENSE +24 -0
- package/licenses/vendor/rollup__LICENSE.md +679 -0
- package/licenses/vendor/roughjs__LICENSE +21 -0
- package/licenses/vendor/roughjs__node_modules__points-on-curve__LICENSE +21 -0
- package/licenses/vendor/rw__LICENSE +26 -0
- package/licenses/vendor/safer-buffer__LICENSE +21 -0
- package/licenses/vendor/sass__LICENSE +1692 -0
- package/licenses/vendor/scheduler__LICENSE +21 -0
- package/licenses/vendor/shebang-command__license +9 -0
- package/licenses/vendor/shebang-regex__license +9 -0
- package/licenses/vendor/sliced__LICENSE +22 -0
- package/licenses/vendor/source-map-js__LICENSE +28 -0
- package/licenses/vendor/stylis__LICENSE +21 -0
- package/licenses/vendor/tinyexec__LICENSE +21 -0
- package/licenses/vendor/tinyglobby__LICENSE +21 -0
- package/licenses/vendor/to-regex-range__LICENSE +21 -0
- package/licenses/vendor/ts-dedent__LICENSE +21 -0
- package/licenses/vendor/tslib__LICENSE.txt +12 -0
- package/licenses/vendor/tunnel-rat__LICENSE +21 -0
- package/licenses/vendor/use-callback-ref__LICENSE +21 -0
- package/licenses/vendor/use-sidecar__LICENSE +21 -0
- package/licenses/vendor/use-sync-external-store__LICENSE +21 -0
- package/licenses/vendor/uuid__LICENSE.md +9 -0
- package/licenses/vendor/vite__LICENSE.md +2144 -0
- package/licenses/vendor/vscode-jsonrpc__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver-protocol__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver-textdocument__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver-types__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver__License.txt +11 -0
- package/licenses/vendor/vscode-uri__LICENSE.md +9 -0
- package/licenses/vendor/webworkify__LICENSE +18 -0
- package/licenses/vendor/which__LICENSE +15 -0
- package/licenses/vendor/zustand__LICENSE +21 -0
- package/licenses/wasm-graphviz-Apache-2.0.txt +201 -0
- package/package.json +93 -4
- package/scripts/build-locus-map-workflow.mjs +29 -0
- package/scripts/build-map.mjs +138 -0
- package/scripts/check-installed-draw.mjs +13 -0
- package/scripts/check-locus-map-workflow-pi.mjs +39 -0
- package/scripts/convert-map-source.mjs +34 -0
- package/scripts/lib/library-directory.mjs +73 -0
- package/scripts/lib/map-build-invocation.mjs +50 -0
- package/scripts/lib/map-viewer-server.mjs +322 -0
- package/scripts/lib/original-materials.mjs +70 -0
- package/scripts/lib/original-report-server.mjs +52 -0
- package/scripts/lib/project-catalog.mjs +484 -0
- package/scripts/lib/project-map-inputs.mjs +161 -0
- package/scripts/lib/project-registry.mjs +180 -0
- package/scripts/lib/project-tasks.mjs +100 -0
- package/scripts/lib/sketch-publication.mjs +72 -0
- package/scripts/lib/task-map-build.mjs +110 -0
- package/scripts/lib/task-map-worker.mjs +20 -0
- package/scripts/lib/workflow/build-native-map.mjs +134 -0
- package/scripts/lib/workflow/compact-access.mjs +167 -0
- package/scripts/lib/workflow/compact-admission.mjs +410 -0
- package/scripts/lib/workflow/compact-builds.mjs +153 -0
- package/scripts/lib/workflow/compact-final.mjs +77 -0
- package/scripts/lib/workflow/compact-handoff.mjs +679 -0
- package/scripts/lib/workflow/compact-instructions.mjs +81 -0
- package/scripts/lib/workflow/compact-methods.mjs +203 -0
- package/scripts/lib/workflow/compact-native-evidence.mjs +423 -0
- package/scripts/lib/workflow/compact-native.mjs +92 -0
- package/scripts/lib/workflow/compact-prefix.mjs +470 -0
- package/scripts/lib/workflow/compact-prompts.mjs +108 -0
- package/scripts/lib/workflow/compact-reader.mjs +170 -0
- package/scripts/lib/workflow/compact-report.mjs +106 -0
- package/scripts/lib/workflow/compact-reuse.mjs +422 -0
- package/scripts/lib/workflow/compact-route.mjs +380 -0
- package/scripts/lib/workflow/compact-source.mjs +69 -0
- package/scripts/lib/workflow/input-body.js +152 -0
- package/scripts/lib/workflow/native-artifacts.mjs +53 -0
- package/scripts/lib/workflow/native-calls.mjs +609 -0
- package/scripts/lib/workflow/native-output.mjs +204 -0
- package/scripts/lib/workflow/policy.json +27 -0
- package/scripts/lib/workflow/reader-surface.mjs +183 -0
- package/scripts/lib/workflow/route-body.js +182 -0
- package/scripts/lib/workflow/route.mjs +342 -0
- package/scripts/lib/workflow/schemas.mjs +244 -0
- package/scripts/lib/workflow/source-bindings.mjs +16 -0
- package/scripts/lib/workflow/source-bodies.mjs +33 -0
- package/scripts/lib/zed.mjs +20 -0
- package/scripts/locus-map.mjs +150 -0
- package/scripts/measure-traceability.mjs +160 -0
- package/scripts/open-map.mjs +59 -0
- package/scripts/prepare-assets.mjs +114 -0
- package/scripts/prepare-locus-map-run.mjs +102 -0
- package/scripts/traceability/authoring.mjs +294 -0
- package/scripts/traceability/built-scene.mjs +220 -0
- package/scripts/traceability/geometry.mjs +185 -0
- package/scripts/traceability/journal.mjs +77 -0
- package/scripts/traceability/metrics.mjs +362 -0
- package/scripts/traceability/run.mjs +316 -0
- package/scripts/traceability/static-delivery.mjs +59 -0
- package/scripts/traceability/view.mjs +245 -0
- package/scripts/verify-locus-map-workflow-run.mjs +347 -0
- package/scripts/vite-browser-dependencies.mjs +15 -0
- package/scripts/vite-cache.mjs +48 -0
- package/skills/README.md +17 -0
- package/skills/locus-map/SKILL.md +116 -0
- package/skills/locus-map/assets/artifact-handoff.md +45 -0
- package/skills/locus-map/assets/examples/README.md +26 -0
- package/skills/locus-map/assets/examples/library-c4.puml +18 -0
- package/skills/locus-map/assets/examples/library-flow.puml +16 -0
- package/skills/locus-map/assets/examples/prepare.mjs +13 -0
- package/skills/locus-map/assets/task-map.mjs +160 -0
- package/skills/locus-map/references/authoring-order.md +354 -0
- package/skills/locus-map/references/build-environment.md +99 -0
- package/skills/locus-map/references/checks.md +181 -0
- package/skills/locus-map/references/connected-diagram.md +17 -0
- package/skills/locus-map/references/draw-skill.md +47 -0
- package/skills/locus-map/references/folder.md +82 -0
- package/skills/locus-map/references/pi-handoff.md +51 -0
- package/skills/locus-map/references/revise.md +56 -0
- package/skills/locus-map/references/selection.md +67 -0
- package/skills/locus-map/references/task-maps.md +16 -0
- package/skills/locus-map-primitives/SKILL.md +57 -0
- package/skills/locus-map-primitives/assets/batch/README.md +21 -0
- package/skills/locus-map-primitives/assets/batch/accept-batch.mjs +9 -0
- package/skills/locus-map-primitives/assets/batch/build.mjs +43 -0
- package/skills/locus-map-primitives/assets/batch/intake.puml +21 -0
- package/skills/locus-map-primitives/assets/batch/materials.json +18 -0
- package/skills/locus-map-primitives/assets/batch/project.json +58 -0
- package/skills/locus-map-primitives/assets/batch/protocol.md +14 -0
- package/skills/locus-map-primitives/assets/batch/results.html +10 -0
- package/skills/locus-map-primitives/assets/batch/run-batch.mjs +9 -0
- package/skills/locus-map-primitives/assets/batch/sources.mjs +39 -0
- package/skills/locus-map-primitives/references/card-presentation.md +9 -0
- package/skills/locus-map-primitives/references/reading-files.md +21 -0
- package/skills/locus-map-research/SKILL.md +103 -0
- package/skills/locus-map-research/assets/examples/README.md +41 -0
- package/skills/locus-map-research/assets/examples/cases.mjs +57 -0
- package/skills/locus-map-research/assets/examples/prepare.mjs +66 -0
- package/skills/locus-map-research/references/explanation-design.md +244 -0
- package/skills/locus-map-research/references/stages.json +113 -0
- package/src/adapter/annotationPolicy.js +493 -0
- package/src/adapter/archimatePresentation.js +9 -0
- package/src/adapter/areas.js +82 -0
- package/src/adapter/autoLayout/engines.js +15 -0
- package/src/adapter/autoLayout/metrics.js +32 -0
- package/src/adapter/autoLayout/shared.js +68 -0
- package/src/adapter/cards/README.md +14 -0
- package/src/adapter/cards/geometry.js +2 -0
- package/src/adapter/cards/glyphs.js +2 -0
- package/src/adapter/cards/labels.js +2 -0
- package/src/adapter/cards/taskStatus.js +28 -0
- package/src/adapter/cards/template.js +14 -0
- package/src/adapter/cards/templates/archimate.js +2 -0
- package/src/adapter/cards/templates/c4-2b.js +3 -0
- package/src/adapter/cards/templates/c4-reference.js +2 -0
- package/src/adapter/cards/templates/compact-b.js +2 -0
- package/src/adapter/cards/templates/e2.js +3 -0
- package/src/adapter/cards/templates/editorial.js +2 -0
- package/src/adapter/cards/templates/legacy.js +2 -0
- package/src/adapter/cards/text.js +2 -0
- package/src/adapter/chain.js +24 -0
- package/src/adapter/conversion.js +14 -0
- package/src/adapter/drawProjection.js +280 -0
- package/src/adapter/drawingStyle.js +20 -0
- package/src/adapter/drift.js +13 -0
- package/src/adapter/edgeCues.js +138 -0
- package/src/adapter/editGeometry.js +116 -0
- package/src/adapter/glyphDrift.js +1 -0
- package/src/adapter/identity.js +10 -0
- package/src/adapter/index.js +36 -0
- package/src/adapter/layout.js +91 -0
- package/src/adapter/layoutDiagnostics.js +87 -0
- package/src/adapter/nativePresentation.js +53 -0
- package/src/adapter/page.js +108 -0
- package/src/adapter/presentation.js +82 -0
- package/src/adapter/relationLabels.js +21 -0
- package/src/adapter/routeGeometry.js +1 -0
- package/src/adapter/semanticAdmission.js +901 -0
- package/src/adapter/skeleton.js +83 -0
- package/src/adapter/staticDelivery.js +211 -0
- package/src/app.css +13 -0
- package/src/authoring/author-worker.mjs +46 -0
- package/src/authoring/automaticLayout.js +24 -0
- package/src/authoring/boundedProcess.mjs +92 -0
- package/src/authoring/browser-build-worker.mjs +139 -0
- package/src/authoring/browserBuild.mjs +151 -0
- package/src/authoring/browserBuildClient.js +220 -0
- package/src/authoring/browserExecutable.mjs +83 -0
- package/src/authoring/browserSession.mjs +38 -0
- package/src/authoring/buildDelivery.mjs +127 -0
- package/src/authoring/buildDiagram.mjs +247 -0
- package/src/authoring/buildMap.mjs +165 -0
- package/src/authoring/citationChecks.mjs +80 -0
- package/src/authoring/diagramChecks.js +215 -0
- package/src/authoring/diagramLayoutChecks.js +47 -0
- package/src/authoring/diagramSource.js +125 -0
- package/src/authoring/diagramText.js +5 -0
- package/src/authoring/excalidrawDsl.js +83 -0
- package/src/authoring/gridLayout.js +2 -0
- package/src/authoring/mapAuthoring.js +234 -0
- package/src/authoring/moduleRunner.mjs +24 -0
- package/src/authoring/plantumlSource.js +4 -0
- package/src/authoring/plantumlSyntax.js +1 -0
- package/src/authoring/printPlantumlSource.js +4 -0
- package/src/authoring/readDetailsFiles.mjs +215 -0
- package/src/authoring/regenerationArtifacts.mjs +91 -0
- package/src/authoring/runtimeIdentity.mjs +171 -0
- package/src/authoring/sceneComparison.mjs +182 -0
- package/src/authoring/selectAutomaticLayout.mjs +115 -0
- package/src/authoring/sourceEvidence.mjs +219 -0
- package/src/authoring/sourceView.js +22 -0
- package/src/authoring/staticExport.js +63 -0
- package/src/authoring/viewTree.js +46 -0
- package/src/authoring/viewportSettle.js +19 -0
- package/src/bundle/assets.js +163 -0
- package/src/bundle/browser.js +73 -0
- package/src/bundle/catalogFiles.js +53 -0
- package/src/bundle/chain.js +289 -0
- package/src/bundle/chainBrowser.js +59 -0
- package/src/bundle/index.js +133 -0
- package/src/bundle/localDocument.mjs +366 -0
- package/src/bundle/localDocumentClient.js +115 -0
- package/src/bundle/projectClient.js +173 -0
- package/src/bundle/safety.js +178 -0
- package/src/bundle/scene.js +213 -0
- package/src/bundle/sketch.js +111 -0
- package/src/chain/index.js +1 -0
- package/src/chain/projection.js +28 -0
- package/src/chain/validation.js +268 -0
- package/src/contract/archimateNotation.js +47 -0
- package/src/contract/c4Presentation.js +50 -0
- package/src/contract/citations.js +1 -0
- package/src/contract/cli.mjs +20 -0
- package/src/contract/diagramPresentation.js +140 -0
- package/src/contract/documentVersions.js +20 -0
- package/src/contract/index.js +92 -0
- package/src/contract/layoutAreas.js +62 -0
- package/src/contract/layoutHints.js +2 -0
- package/src/contract/page.js +142 -0
- package/src/contract/presentationProfile.js +36 -0
- package/src/contract/readingMarkdown.js +124 -0
- package/src/contract/readingMaterials.js +102 -0
- package/src/contract/relationshipBody.js +1 -0
- package/src/contract/safety.js +35 -0
- package/src/contract/validation.js +499 -0
- package/src/freshness/cli.mjs +21 -0
- package/src/freshness/git.js +119 -0
- package/src/freshness/index.js +155 -0
- package/src/freshness/local.js +107 -0
- package/src/main.jsx +88 -0
- package/src/research/admission-body.js +1059 -0
- package/src/research/cli.mjs +83 -0
- package/src/research/contract.js +1169 -0
- package/src/research/generate-pi-admission.mjs +49 -0
- package/src/research/schemas.mjs +13 -0
- package/src/tasks/locus.mjs +119 -0
- package/src/tasks/taskIndex.js +47 -0
- package/src/viewer/ControlIcon.jsx +28 -0
- package/src/viewer/DiagramGuide.jsx +72 -0
- package/src/viewer/DiagramViewer.jsx +705 -0
- package/src/viewer/EditorialKey.jsx +69 -0
- package/src/viewer/FoldButtons.jsx +38 -0
- package/src/viewer/HighlightOverlay.jsx +157 -0
- package/src/viewer/Inspector.jsx +128 -0
- package/src/viewer/MapInputNotice.jsx +42 -0
- package/src/viewer/Minimap.jsx +140 -0
- package/src/viewer/ProjectLocation.jsx +34 -0
- package/src/viewer/ProjectRail.jsx +122 -0
- package/src/viewer/ProjectTabs.jsx +23 -0
- package/src/viewer/ProjectTasks.jsx +158 -0
- package/src/viewer/ProjectViewChainViewer.jsx +690 -0
- package/src/viewer/RegenerationComparison.jsx +213 -0
- package/src/viewer/SavedDiagramLink.jsx +34 -0
- package/src/viewer/SceneEditPrompt.jsx +56 -0
- package/src/viewer/SketchCanvas.jsx +301 -0
- package/src/viewer/ViewChainViewer.jsx +340 -0
- package/src/viewer/camera.js +119 -0
- package/src/viewer/chainEditorSession.js +110 -0
- package/src/viewer/chainInstallation.js +28 -0
- package/src/viewer/details/CommonMarkBody.jsx +92 -0
- package/src/viewer/details/InspectorReadingSettings.jsx +67 -0
- package/src/viewer/details/MeaningFirst.jsx +79 -0
- package/src/viewer/details/PhraseAndCondition.jsx +34 -0
- package/src/viewer/details/ReadingFiles.jsx +111 -0
- package/src/viewer/details/ReadingMarkdown.jsx +96 -0
- package/src/viewer/details/RelationshipBody.jsx +45 -0
- package/src/viewer/details/SourceEvidence.jsx +104 -0
- package/src/viewer/details/TaskDocument.jsx +41 -0
- package/src/viewer/details/details.css +190 -0
- package/src/viewer/diagramControls.css +58 -0
- package/src/viewer/diagramGuide.css +25 -0
- package/src/viewer/directedPath.js +36 -0
- package/src/viewer/fit.js +11 -0
- package/src/viewer/geometry.js +62 -0
- package/src/viewer/highlight.js +159 -0
- package/src/viewer/inspectorPosition.js +79 -0
- package/src/viewer/interaction.js +94 -0
- package/src/viewer/minimapGeometry.js +21 -0
- package/src/viewer/projectContents.js +93 -0
- package/src/viewer/projectNavigation.js +227 -0
- package/src/viewer/projectTasks.css +33 -0
- package/src/viewer/readingTree.js +120 -0
- package/src/viewer/sceneEditPrompt.js +94 -0
- package/src/viewer/sceneState.js +23 -0
- package/src/viewer/sceneWarnings.js +12 -0
- package/src/viewer/theme.css +20 -0
- package/src/viewer/useInspectorPosition.js +155 -0
- package/src/viewer/viewChain.css +181 -0
- package/src/viewer/viewChainState.js +86 -0
- package/src/viewer/viewer.css +76 -0
- package/vite.config.js +42 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { isPortablePath, isSafeUrl } from '../contract/index.js';
|
|
2
|
+
import { inspectWorktree, isCommit, isRegularBlob, prepareRepository, readTree, readSourceBlob, listSourcePaths } from '../freshness/git.js';
|
|
3
|
+
import { hashLocalFile, localRoot, readLocalSource } from '../freshness/local.js';
|
|
4
|
+
import { MapAuthoringError } from './mapAuthoring.js';
|
|
5
|
+
import { copyFile, mkdir, realpath, rm, lstat } from 'node:fs/promises';
|
|
6
|
+
import { constants } from 'node:fs';
|
|
7
|
+
import { dirname, resolve, relative, isAbsolute } from 'node:path';
|
|
8
|
+
|
|
9
|
+
const refusal = (code, path, message) => new MapAuthoringError([{ code, path, message }]);
|
|
10
|
+
|
|
11
|
+
function repositoryUrl(source) {
|
|
12
|
+
const suffix = `#L${source.lines.start}-L${source.lines.end}`;
|
|
13
|
+
return `${source.repository}/blob/${source.revision}/${source.path}${suffix}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export async function materializeSourceEvidence(sources, bindings) {
|
|
17
|
+
const evidence = {};
|
|
18
|
+
for (const source of sources) {
|
|
19
|
+
const path = `/sources/${source.id}`;
|
|
20
|
+
if (!isPortablePath(source.path)) throw refusal('UNSAFE_SOURCE_PATH', `${path}/path`, 'Source path must be portable.');
|
|
21
|
+
if (source.type === 'repository') {
|
|
22
|
+
if (!isSafeUrl(source.repository, { repository: true })) throw refusal('UNSAFE_REPOSITORY', `${path}/repository`, 'Repository identity must be credential-free HTTPS.');
|
|
23
|
+
const binding = bindings.repositories?.[source.repository];
|
|
24
|
+
if (!binding) throw refusal('REPOSITORY_BINDING_REQUIRED', path, `No local binding was supplied for ${source.repository}.`);
|
|
25
|
+
const repo = await prepareRepository({ root: binding.root, targetRevision: source.revision });
|
|
26
|
+
if (!(await isCommit(repo, source.revision))) throw refusal('REVISION_UNAVAILABLE', `${path}/revision`, 'The exact cited revision is not available locally.');
|
|
27
|
+
const tree = await readTree(repo, source.revision, [source.path]);
|
|
28
|
+
const entry = tree.get(source.path);
|
|
29
|
+
if (!isRegularBlob(entry)) throw refusal('SOURCE_BLOB_REQUIRED', `${path}/path`, 'The cited path must be a regular Git blob at the exact revision.');
|
|
30
|
+
if (repo.head === source.revision) {
|
|
31
|
+
const worktree = await inspectWorktree(repo, [source.path], tree);
|
|
32
|
+
const dirty = worktree.get(source.path);
|
|
33
|
+
if (dirty) throw refusal(dirty.code ?? 'DIRTY_CITED_PATH', `${path}/path`, 'A local change cannot be cited as HEAD; use a committed revision or an explicit document snapshot.');
|
|
34
|
+
}
|
|
35
|
+
await readSourceRange({ type: source.type, identity: source.repository, revision: source.revision, root: binding.root, path: '' }, source.path, source.lines);
|
|
36
|
+
evidence[source.id] = {
|
|
37
|
+
state: 'available',
|
|
38
|
+
source: { type: 'repository', repository: source.repository, revision: source.revision, path: source.path, lineRange: source.lines, contentHash: `git-${repo.algorithm}:${entry.hash}` },
|
|
39
|
+
freshness: { status: 'unknown' }, url: repositoryUrl(source),
|
|
40
|
+
};
|
|
41
|
+
} else if (source.type === 'document') {
|
|
42
|
+
const binding = bindings.documents?.[source.path];
|
|
43
|
+
if (!binding) throw refusal('DOCUMENT_BINDING_REQUIRED', path, `No local snapshot binding was supplied for ${source.path}.`);
|
|
44
|
+
const root = await localRoot(binding.root);
|
|
45
|
+
const hash = await hashLocalFile(root, binding.path, 'sha256');
|
|
46
|
+
if (!hash) throw refusal('DOCUMENT_SNAPSHOT_REQUIRED', path, 'The designated local document snapshot is unavailable.');
|
|
47
|
+
if (binding.revision !== source.revision || source.revision !== `sha256:${hash.hash}`) throw refusal('DOCUMENT_SNAPSHOT_CHANGED', path, 'The accepted document copy changed or belongs to a different revision.');
|
|
48
|
+
await readSourceRange({ type: source.type, identity: source.path, revision: source.revision, root, path: binding.path }, source.path, source.lines);
|
|
49
|
+
evidence[source.id] = {
|
|
50
|
+
state: 'available',
|
|
51
|
+
source: { type: 'document', path: source.path, contentHash: `sha256:${hash.hash}`, lineRange: source.lines },
|
|
52
|
+
freshness: { status: 'unknown' },
|
|
53
|
+
};
|
|
54
|
+
} else throw refusal('SOURCE_TYPE_UNSUPPORTED', `${path}/type`, 'Source type must be repository or document.');
|
|
55
|
+
}
|
|
56
|
+
return evidence;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Observation of the original, separate from the unchanged semantic model of the accepted copy. */
|
|
60
|
+
export async function observeDocumentOrigins(sources, bindings) {
|
|
61
|
+
const observations = [];
|
|
62
|
+
for (const source of sources.filter(item => item.type === 'document')) {
|
|
63
|
+
const binding = bindings.documents?.[source.path];
|
|
64
|
+
if (!binding?.origin || !isPortablePath(binding.origin.path)) throw refusal('DOCUMENT_ORIGIN_REQUIRED', `/sources/${source.id}`, 'The accepted copy must keep a separate pointer to the external original.');
|
|
65
|
+
const base = { sourceId: source.id, snapshotRevision: source.revision };
|
|
66
|
+
try {
|
|
67
|
+
const current = await hashLocalFile(await localRoot(binding.origin.root), binding.origin.path, 'sha256');
|
|
68
|
+
if (!current) throw new Error('The original is unavailable.');
|
|
69
|
+
const observedRevision = `sha256:${current.hash}`;
|
|
70
|
+
observations.push({ ...base, status: observedRevision === source.revision ? 'unchanged' : 'changed', observedRevision });
|
|
71
|
+
} catch (error) {
|
|
72
|
+
observations.push({ ...base, status: 'unavailable', reason: 'The original is unavailable during the local binding check.' });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return observations;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function contains(parent, child) {
|
|
79
|
+
const path = relative(parent, child);
|
|
80
|
+
return path === '' || path === '.' || (!path.startsWith('../') && path !== '..' && !isAbsolute(path));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Read-only. Prepared paths are not yet materialized run inputs. */
|
|
84
|
+
export async function inspectDocumentSnapshots(sources, snapshotDirectory) {
|
|
85
|
+
const root = resolve(snapshotDirectory);
|
|
86
|
+
if (root !== resolve(await realpath(dirname(root)), root.split('/').at(-1))) throw refusal('SNAPSHOT_ROOT', '/snapshotDirectory', 'The parent of the copy directory must be an accessible real path.');
|
|
87
|
+
try { await lstat(root); throw refusal('SNAPSHOT_EXISTS', '/snapshotDirectory', 'Copies require a new directory; existing inputs are preserved.'); }
|
|
88
|
+
catch (error) { if (error.code !== 'ENOENT') throw error; }
|
|
89
|
+
const prepared = [], copies = [];
|
|
90
|
+
for (const [index, source] of sources.entries()) {
|
|
91
|
+
if (source.type === 'repository') { prepared.push({ ...source, originRoot: '', originPath: '' }); continue; }
|
|
92
|
+
if (source.type !== 'document' || !isPortablePath(source.path)) throw refusal('DOCUMENT_SOURCE', '/sources', 'Expected a document with a portable path.');
|
|
93
|
+
const originRoot = await localRoot(source.root);
|
|
94
|
+
if (contains(root, originRoot) || contains(root, resolve(originRoot, source.path))) throw refusal('SNAPSHOT_OVERLAP', '/snapshotDirectory', 'The copy directory cannot contain the original input.');
|
|
95
|
+
const original = await hashLocalFile(originRoot, source.path, 'sha256');
|
|
96
|
+
if (!original) throw refusal('DOCUMENT_UNAVAILABLE', '/sources', 'The original document is unavailable before research.');
|
|
97
|
+
// Narrow exact-byte boundary of a deliberately frozen external document.
|
|
98
|
+
const revision = `sha256:${original.hash}`;
|
|
99
|
+
if (source.revision !== 'snapshot' && source.revision !== revision) throw refusal('DOCUMENT_REVISION', '/sources/revision', 'The original does not match the explicitly selected revision; for a new copy, set snapshot.');
|
|
100
|
+
const path = `document-${index + 1}.source`;
|
|
101
|
+
prepared.push({ ...source, root, path, revision, originRoot, originPath: source.path });
|
|
102
|
+
copies.push({ originRoot, originPath: source.path, path, revision });
|
|
103
|
+
}
|
|
104
|
+
return { root, sources: prepared, copies };
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Explicit materialization of new inputs; does not overwrite originals or prior directories. */
|
|
108
|
+
export async function materializeDocumentSnapshots(plan) {
|
|
109
|
+
if (!plan.copies.length) return plan.sources;
|
|
110
|
+
await mkdir(plan.root);
|
|
111
|
+
try {
|
|
112
|
+
for (const copy of plan.copies) {
|
|
113
|
+
if (!isPortablePath(copy.path) || !isPortablePath(copy.originPath)) throw refusal('SNAPSHOT_PATH', '/copies', 'Non-portable copy path.');
|
|
114
|
+
await copyFile(resolve(copy.originRoot, copy.originPath), resolve(plan.root, copy.path), constants.COPYFILE_EXCL);
|
|
115
|
+
const actual = await hashLocalFile(plan.root, copy.path, 'sha256');
|
|
116
|
+
if (!actual || `sha256:${actual.hash}` !== copy.revision) throw refusal('DOCUMENT_CHANGED_DURING_SNAPSHOT', '/copies', 'The document changed between selection and copying; the input was not accepted.');
|
|
117
|
+
}
|
|
118
|
+
return plan.sources;
|
|
119
|
+
} catch (error) {
|
|
120
|
+
await rm(plan.root, { recursive: true, force: true });
|
|
121
|
+
throw error;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const SOURCE_READ_BYTES = 16384;
|
|
126
|
+
const closedQuery = (value, fields) => value && typeof value === 'object' && !Array.isArray(value)
|
|
127
|
+
&& Object.keys(value).length === fields.length && fields.every(key => Object.hasOwn(value, key));
|
|
128
|
+
const byteSize = value => Buffer.byteLength(JSON.stringify(value), 'utf8');
|
|
129
|
+
const sourceReadError = (code, message) => refusal(code, '/source-read', message);
|
|
130
|
+
const safeSourcePath = value => isPortablePath(value) && !/[\u0000-\u001f\u007f]/u.test(value);
|
|
131
|
+
function sourceText(bytes) {
|
|
132
|
+
try {
|
|
133
|
+
const text = new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(bytes);
|
|
134
|
+
if (/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/u.test(text)) throw new Error();
|
|
135
|
+
return text;
|
|
136
|
+
} catch { throw sourceReadError('SOURCE_TEXT_REQUIRED', 'Only supported UTF-8 text can be read through this interface.'); }
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** A bounded observation, never an accepted fact or proof that the model understood it. */
|
|
140
|
+
export async function readSourceObservation(bindings, sources, query) {
|
|
141
|
+
return observeSource(bindings, sources, query, {});
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
async function observeSource(bindings, sources, query, snapshot) {
|
|
145
|
+
if (!Array.isArray(bindings) || !bindings.length) throw sourceReadError('SOURCE_SCOPE_REQUIRED', 'Explicit coordinator source bindings are required.');
|
|
146
|
+
const byId = closedQuery(query, ['kind', 'sourceId', 'start']) && query.kind === 'excerpt';
|
|
147
|
+
const byScope = closedQuery(query, ['kind', 'scopeIndex', 'path', 'start', 'end']) && query.kind === 'excerpt';
|
|
148
|
+
const discovery = closedQuery(query, ['kind', 'scopeIndex', 'after']) && query.kind === 'paths';
|
|
149
|
+
if (!byId && !byScope && !discovery) throw sourceReadError('SOURCE_QUERY_SHAPE', 'Use one closed source excerpt or path-discovery query.');
|
|
150
|
+
const source = byId ? sources.find(row => row.id === query.sourceId) : null;
|
|
151
|
+
if (byId && !source) throw sourceReadError('UNKNOWN_SOURCE', 'The source ID is absent from this admitted prefix.');
|
|
152
|
+
const scopeIndex = byId ? bindings.findIndex(row => row.type === source.type && row.revision === source.revision
|
|
153
|
+
&& row.identity === (source.type === 'repository' ? source.repository : source.path)
|
|
154
|
+
&& (row.type === 'document' || row.path === '' || source.path === row.path || source.path.startsWith(row.path + '/'))) : query.scopeIndex;
|
|
155
|
+
if (!Number.isSafeInteger(scopeIndex) || scopeIndex < 0 || scopeIndex >= bindings.length) throw sourceReadError('SOURCE_SCOPE_MISMATCH', 'The selected source scope is unavailable.');
|
|
156
|
+
const binding = bindings[scopeIndex];
|
|
157
|
+
const scope = { type: binding.type, identity: binding.identity, revision: binding.revision, path: binding.type === 'repository' ? binding.path : '' };
|
|
158
|
+
const repo = binding.type === 'repository' ? snapshot.repo ??= await prepareRepository({ root: binding.root, targetRevision: binding.revision }) : null;
|
|
159
|
+
if (discovery) {
|
|
160
|
+
if (typeof query.after !== 'string' || query.after && !safeSourcePath(query.after)) throw sourceReadError('SOURCE_CURSOR', 'A portable previous path or the empty initial cursor is required.');
|
|
161
|
+
const paths = repo ? await listSourcePaths(repo, binding.revision, binding.path) : [binding.identity];
|
|
162
|
+
if (paths.some(path => !safeSourcePath(path))) throw sourceReadError('SOURCE_PATH_UNSUPPORTED', 'The source tree contains a path unsupported by this text interface.');
|
|
163
|
+
const start = query.after === '' ? 0 : paths.indexOf(query.after) + 1;
|
|
164
|
+
if (query.after && start === 0) throw sourceReadError('SOURCE_CURSOR', 'The previous path does not belong to this exact source tree.');
|
|
165
|
+
let count = Math.min(200, paths.length - start), result;
|
|
166
|
+
do {
|
|
167
|
+
result = { schemaVersion: 1, request: query, scope, paths: paths.slice(start, start + count), nextAfter: start + count < paths.length ? paths[start + count - 1] : null };
|
|
168
|
+
if (byteSize(result) <= SOURCE_READ_BYTES) return result;
|
|
169
|
+
count--;
|
|
170
|
+
} while (count > 0);
|
|
171
|
+
throw sourceReadError('SOURCE_PATH_LIMIT', 'One path and its metadata exceed the response byte limit.');
|
|
172
|
+
}
|
|
173
|
+
const path = byId ? source.path : query.path;
|
|
174
|
+
if (!safeSourcePath(path) || (repo ? !(binding.path === '' || path === binding.path || path.startsWith(binding.path + '/')) : path !== binding.identity)) throw sourceReadError('SOURCE_SCOPE_MISMATCH', 'The path is outside the coordinator source scope.');
|
|
175
|
+
if (!snapshot.lines) {
|
|
176
|
+
let bytes;
|
|
177
|
+
if (repo) bytes = await readSourceBlob(repo, binding.revision, path);
|
|
178
|
+
else {
|
|
179
|
+
const document = await readLocalSource(await localRoot(binding.root), binding.path);
|
|
180
|
+
if (!document || document.revision !== binding.revision) throw sourceReadError('DOCUMENT_SNAPSHOT_CHANGED', 'The accepted document copy is unavailable or changed.');
|
|
181
|
+
bytes = document.bytes;
|
|
182
|
+
}
|
|
183
|
+
snapshot.lines = sourceText(bytes).split(/\r?\n/u);
|
|
184
|
+
if (snapshot.lines.at(-1) === '') snapshot.lines.pop();
|
|
185
|
+
}
|
|
186
|
+
const lines = snapshot.lines;
|
|
187
|
+
const start = byId && query.start === null ? source.lines.start : query.start, wantedEnd = byId ? source.lines.end : query.end === null ? lines.length : query.end;
|
|
188
|
+
if (!Number.isSafeInteger(start) || !Number.isSafeInteger(wantedEnd) || start < 1 || wantedEnd < start || wantedEnd > lines.length
|
|
189
|
+
|| byId && start < source.lines.start) {
|
|
190
|
+
const error = sourceReadError('SOURCE_RANGE', 'The exact requested line range is unavailable.');
|
|
191
|
+
error.emptySource = lines.length === 0;
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
194
|
+
let end = Math.min(wantedEnd, start + 199);
|
|
195
|
+
while (end >= start) {
|
|
196
|
+
const result = { schemaVersion: 1, request: query, scope, path, sourceId: source?.id ?? '', lines: { start, end }, text: lines.slice(start - 1, end).join('\n'), nextStart: end < wantedEnd ? end + 1 : null };
|
|
197
|
+
if (byteSize(result) <= SOURCE_READ_BYTES) return result;
|
|
198
|
+
end--;
|
|
199
|
+
}
|
|
200
|
+
throw sourceReadError('SOURCE_LINE_LIMIT', 'One source line and its metadata exceed the response byte limit.');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** Consume every bounded page; an admitted first excerpt is not a completed range check. */
|
|
204
|
+
export async function readSourceRange(binding, path, lines) {
|
|
205
|
+
const snapshot = {};
|
|
206
|
+
let start = lines?.start ?? 1;
|
|
207
|
+
do {
|
|
208
|
+
try {
|
|
209
|
+
const observation = await observeSource([binding], [], {
|
|
210
|
+
kind: 'excerpt', scopeIndex: 0, path, start, end: lines?.end ?? null,
|
|
211
|
+
}, snapshot);
|
|
212
|
+
start = observation.nextStart;
|
|
213
|
+
} catch (error) {
|
|
214
|
+
// Empty text is an available whole file, but cannot produce an excerpt's line range.
|
|
215
|
+
if (lines === undefined && error.emptySource === true) return;
|
|
216
|
+
throw error;
|
|
217
|
+
}
|
|
218
|
+
} while (start !== null);
|
|
219
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { compileDiagramSource, validateDiagramSource } from './diagramSource.js';
|
|
2
|
+
import { projectView } from '../adapter/chain.js';
|
|
3
|
+
import { modelCardTemplate } from '../adapter/cards/template.js';
|
|
4
|
+
import { nativeCardLayout } from '../adapter/nativePresentation.js';
|
|
5
|
+
import { taskCardStatus } from '../adapter/cards/taskStatus.js';
|
|
6
|
+
import { buildDrawScene } from '../adapter/skeleton.js';
|
|
7
|
+
|
|
8
|
+
export function compileSourceView(source) {
|
|
9
|
+
const { model, chain } = compileDiagramSource(validateDiagramSource(source));
|
|
10
|
+
return projectView(model, chain, chain.rootViewId);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Available to a project author that wants to place native cards explicitly.
|
|
14
|
+
export const sourcePrimitives = {
|
|
15
|
+
taskCardStatus,
|
|
16
|
+
measureCards(source) {
|
|
17
|
+
const model = compileSourceView(source);
|
|
18
|
+
const template = modelCardTemplate(model);
|
|
19
|
+
return new Map(model.nodes.map(node => [node.id, nativeCardLayout(node, {}, undefined, { template })]));
|
|
20
|
+
},
|
|
21
|
+
checkGeometry(source) { buildDrawScene(compileSourceView(source)); },
|
|
22
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const active = element => element && !element.isDeleted;
|
|
2
|
+
|
|
3
|
+
/** Keep the delivery choice explicit in the production client. */
|
|
4
|
+
export function selectDeliveryScene(sourceScene, exportScene, staticDelivery) {
|
|
5
|
+
if (!staticDelivery) return sourceScene;
|
|
6
|
+
if (!exportScene) throw Object.assign(new Error('Static delivery requires its export scene P.'), { code: 'STATIC_EXPORT_SCENE' });
|
|
7
|
+
return exportScene;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const rotate = ([x, y], [cx, cy], angle) => [
|
|
11
|
+
(x - cx) * Math.cos(angle) - (y - cy) * Math.sin(angle) + cx,
|
|
12
|
+
(x - cx) * Math.sin(angle) + (y - cy) * Math.cos(angle) + cy,
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
function elementBounds(element) {
|
|
16
|
+
const angle = element.angle || 0;
|
|
17
|
+
if (Array.isArray(element.points) && element.points.length) {
|
|
18
|
+
const localX = element.points.map(point => point[0]);
|
|
19
|
+
const localY = element.points.map(point => point[1]);
|
|
20
|
+
const center = [element.x + (Math.min(...localX) + Math.max(...localX)) / 2,
|
|
21
|
+
element.y + (Math.min(...localY) + Math.max(...localY)) / 2];
|
|
22
|
+
const points = element.points.map(point => rotate([element.x + point[0], element.y + point[1]], center, angle));
|
|
23
|
+
const xs = points.map(point => point[0]);
|
|
24
|
+
const ys = points.map(point => point[1]);
|
|
25
|
+
return [Math.min(...xs), Math.min(...ys), Math.max(...xs), Math.max(...ys)];
|
|
26
|
+
}
|
|
27
|
+
const center = [element.x + element.width / 2, element.y + element.height / 2];
|
|
28
|
+
if (element.type === 'ellipse') {
|
|
29
|
+
const halfWidth = element.width / 2, halfHeight = element.height / 2;
|
|
30
|
+
const width = Math.hypot(halfWidth * Math.cos(angle), halfHeight * Math.sin(angle));
|
|
31
|
+
const height = Math.hypot(halfHeight * Math.cos(angle), halfWidth * Math.sin(angle));
|
|
32
|
+
return [center[0] - width, center[1] - height, center[0] + width, center[1] + height];
|
|
33
|
+
}
|
|
34
|
+
const points = element.type === 'diamond'
|
|
35
|
+
? [[center[0], element.y], [element.x + element.width, center[1]], [center[0], element.y + element.height], [element.x, center[1]]]
|
|
36
|
+
: [[element.x, element.y], [element.x + element.width, element.y],
|
|
37
|
+
[element.x + element.width, element.y + element.height], [element.x, element.y + element.height]];
|
|
38
|
+
const rotated = points.map(point => rotate(point, center, angle));
|
|
39
|
+
return [Math.min(...rotated.map(point => point[0])), Math.min(...rotated.map(point => point[1])),
|
|
40
|
+
Math.max(...rotated.map(point => point[0])), Math.max(...rotated.map(point => point[1]))];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Apply Excalidraw's export padding, scale, and truncation to admitted P bounds.
|
|
44
|
+
* The browser supplies public getCommonBounds; offline verification recomputes
|
|
45
|
+
* those bounds for the admitted native primitives saved in P. */
|
|
46
|
+
export function staticExportGeometry(elements, { padding, scale }, commonBounds) {
|
|
47
|
+
const activeElements = elements.filter(active);
|
|
48
|
+
const bounds = commonBounds ?? activeElements.map(elementBounds).reduce((result, value) => [
|
|
49
|
+
Math.min(result[0], value[0]), Math.min(result[1], value[1]),
|
|
50
|
+
Math.max(result[2], value[2]), Math.max(result[3], value[3]),
|
|
51
|
+
], [Infinity, Infinity, -Infinity, -Infinity]);
|
|
52
|
+
if (!activeElements.length || !Array.isArray(bounds) || bounds.length !== 4
|
|
53
|
+
|| !Number.isFinite(padding) || padding < 0 || !Number.isFinite(scale) || scale <= 0
|
|
54
|
+
|| bounds.some(value => !Number.isFinite(value))) {
|
|
55
|
+
throw Object.assign(new Error('Static export geometry requires finite nonempty elements, padding, and scale.'), { code: 'STATIC_EXPORT_GEOMETRY' });
|
|
56
|
+
}
|
|
57
|
+
const [minX, minY, maxX, maxY] = bounds;
|
|
58
|
+
return {
|
|
59
|
+
bounds: { minX, minY, maxX, maxY },
|
|
60
|
+
widthPx: Math.trunc((maxX - minX + padding * 2) * scale),
|
|
61
|
+
heightPx: Math.trunc((maxY - minY + padding * 2) * scale),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ModelValidationError, parseAndValidate } from '../contract/index.js';
|
|
2
|
+
import { parseAndValidateChain, STRUCTURED_CHAIN_LIMITS } from '../chain/index.js';
|
|
3
|
+
import { projectedModel } from '../chain/projection.js';
|
|
4
|
+
import { composeDslModel, DslCompositionError } from './excalidrawDsl.js';
|
|
5
|
+
|
|
6
|
+
/** Author declarations as a tree, with explicit links to already declared views. */
|
|
7
|
+
export function composeDslChain(input, { question, root }) {
|
|
8
|
+
const model = parseAndValidate(input), views = [], links = [], seen = new Set(), arrangements = new Map();
|
|
9
|
+
const visit = definition => {
|
|
10
|
+
if (!definition || seen.has(definition.id) || views.length >= STRUCTURED_CHAIN_LIMITS.views) throw new DslCompositionError([{ code: 'DSL_VIEW_TREE', path: '/root', message: `Declare each view once, with at most ${STRUCTURED_CHAIN_LIMITS.views} views; use viewId for additional links.` }]);
|
|
11
|
+
seen.add(definition.id);
|
|
12
|
+
const { id, title, question: readerQuestion, family = 'decision', nodeIds, maxNodes = Array.isArray(nodeIds) ? nodeIds.length : 0, arrange, children = [] } = definition;
|
|
13
|
+
if (!Array.isArray(nodeIds) || !nodeIds.length) throw new DslCompositionError([{ code: 'DSL_VIEW_NODES', path: `/views/${id}/nodeIds`, message: 'Select a non-empty array of canonical model nodes.' }]);
|
|
14
|
+
if (!Number.isInteger(maxNodes) || maxNodes < 1 || maxNodes > STRUCTURED_CHAIN_LIMITS.nodes) throw new DslCompositionError([{ code: 'VIEW_BUDGET', path: `/views/${id}/maxNodes`, message: `Declare an integer budget from 1 to ${STRUCTURED_CHAIN_LIMITS.nodes}.` }]);
|
|
15
|
+
if (nodeIds.length > maxNodes) throw new DslCompositionError([{ code: 'VIEW_BUDGET_EXCEEDED', path: `/views/${id}/nodeIds`, message: `The number of selected nodes exceeds the declared maxNodes=${maxNodes}.` }]);
|
|
16
|
+
if (model.schemaVersion !== 2 && definition.presentationProfile !== undefined) throw new DslCompositionError([{ code: 'MODEL_CHAIN_VERSION', path: `/views/${id}/presentationProfile`, message: 'An explicit view profile requires model v2.' }]);
|
|
17
|
+
const ids = new Set(nodeIds), edgeIds = definition.edgeIds ?? model.edges.filter(edge => ids.has(edge.from) && ids.has(edge.to)).map(edge => edge.id);
|
|
18
|
+
const view = { id, title, question: readerQuestion, family, nodeIds, edgeIds, maxNodes,
|
|
19
|
+
...(model.schemaVersion === 2 ? { presentationProfile: definition.presentationProfile ?? model.presentationProfile } : {}),
|
|
20
|
+
...(definition.layout === undefined ? {} : { layout: definition.layout }) };
|
|
21
|
+
// Fail at the author's boundary before expensive composition.
|
|
22
|
+
if (ids.size !== nodeIds.length || nodeIds.some(nodeId => !model.nodes.some(node => node.id === nodeId))) throw new DslCompositionError([{ code: 'DSL_VIEW_NODES', path: `/views/${id}/nodeIds`, message: 'Select unique node IDs from the canonical model.' }]);
|
|
23
|
+
if (!Array.isArray(edgeIds) || edgeIds.some(edgeId => !model.edges.some(edge => edge.id === edgeId && ids.has(edge.from) && ids.has(edge.to)))) throw new DslCompositionError([{ code: 'DSL_VIEW_EDGES', path: `/views/${id}/edgeIds`, message: 'Select canonical edges whose endpoints are both in this view.' }]);
|
|
24
|
+
views.push(view); arrangements.set(id, arrange);
|
|
25
|
+
for (const child of children) {
|
|
26
|
+
if (!child || Boolean(child.view) === Boolean(child.viewId)) throw new DslCompositionError([{ code: 'DSL_VIEW_LINK', path: `/views/${id}`, message: 'A child declares either view or viewId, plus its trigger.' }]);
|
|
27
|
+
links.push({ fromViewId: id, trigger: child.trigger, toViewId: child.view?.id ?? child.viewId });
|
|
28
|
+
if (child.view) visit(child.view);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
visit(root);
|
|
32
|
+
// Admit the authored layout before projection can override family or composition
|
|
33
|
+
// can replace positions. This also prevents callbacks on an invalid chain.
|
|
34
|
+
const chain = parseAndValidateChain({ schemaVersion: model.schemaVersion === 2 ? 3 : 2, question, rootViewId: root.id, views, links }, model);
|
|
35
|
+
const composedViews = chain.views.map(view => {
|
|
36
|
+
let composed;
|
|
37
|
+
try { composed = composeDslModel(projectedModel(model, view), arrangements.get(view.id)); }
|
|
38
|
+
catch (error) {
|
|
39
|
+
if (!(error instanceof DslCompositionError || error instanceof ModelValidationError)) throw error;
|
|
40
|
+
throw new DslCompositionError(error.diagnostics.map(item => ({ ...item, path: `/views/${view.id}${item.path}` })));
|
|
41
|
+
}
|
|
42
|
+
const { family, ...layout } = composed.layout;
|
|
43
|
+
return { ...view, layout };
|
|
44
|
+
});
|
|
45
|
+
return parseAndValidateChain({ ...chain, views: composedViews }, model);
|
|
46
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Regular Chrome applies --start-fullscreen asynchronously: a page that loads quickly can still see
|
|
2
|
+
// the window without its final height (observed: 1440x813, then 1440x900 about 1.5 s later).
|
|
3
|
+
// Wait a bounded time for the requested CSS size; the caller then compares the returned size
|
|
4
|
+
// exactly, so a browser that never reaches it is still refused. The limit leaves room for a loaded
|
|
5
|
+
// machine and stays far inside the build timeout.
|
|
6
|
+
export async function settledViewport(expected, {
|
|
7
|
+
read = () => ({ width: globalThis.innerWidth, height: globalThis.innerHeight }),
|
|
8
|
+
now = () => performance.now(),
|
|
9
|
+
sleep = ms => new Promise(resolve => setTimeout(resolve, ms)),
|
|
10
|
+
timeoutMs = 10000, intervalMs = 25,
|
|
11
|
+
} = {}) {
|
|
12
|
+
const deadline = now() + timeoutMs;
|
|
13
|
+
let observed = read();
|
|
14
|
+
while ((observed.width !== expected.width || observed.height !== expected.height) && now() < deadline) {
|
|
15
|
+
await sleep(intervalMs);
|
|
16
|
+
observed = read();
|
|
17
|
+
}
|
|
18
|
+
return observed;
|
|
19
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { isPortablePath } from '../contract/index.js';
|
|
2
|
+
import { BUNDLE_LIMITS, record, requireBundle, sha256 } from './safety.js';
|
|
3
|
+
|
|
4
|
+
const assetId = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/;
|
|
5
|
+
const extensions = { 'image/png': /\.png$/i, 'image/jpeg': /\.jpe?g$/i, 'image/webp': /\.webp$/i };
|
|
6
|
+
const ascii = (bytes, offset, length) => String.fromCharCode(...bytes.subarray(offset, offset + length));
|
|
7
|
+
const uint32 = (bytes, offset, littleEndian = false) => new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getUint32(offset, littleEndian);
|
|
8
|
+
|
|
9
|
+
function pngSize(bytes) {
|
|
10
|
+
requireBundle(bytes.length >= 57 && bytes.slice(0, 8).every((n, i) => n === [137, 80, 78, 71, 13, 10, 26, 10][i]),
|
|
11
|
+
'INVALID_ASSET', 'PNG signature is invalid.');
|
|
12
|
+
let offset = 8;
|
|
13
|
+
let dimensions;
|
|
14
|
+
let dataSeen = false;
|
|
15
|
+
let ended = false;
|
|
16
|
+
while (offset + 12 <= bytes.length) {
|
|
17
|
+
const length = uint32(bytes, offset);
|
|
18
|
+
const type = ascii(bytes, offset + 4, 4);
|
|
19
|
+
requireBundle(/^[A-Za-z]{4}$/.test(type) && offset + length + 12 <= bytes.length,
|
|
20
|
+
'INVALID_ASSET', 'PNG chunk is truncated or invalid.');
|
|
21
|
+
// Validate CRCs so corrupt or mislabeled data fails before installing a bundle.
|
|
22
|
+
let crc = 0xffffffff;
|
|
23
|
+
for (let i = offset + 4; i < offset + 8 + length; i++) {
|
|
24
|
+
crc ^= bytes[i];
|
|
25
|
+
for (let bit = 0; bit < 8; bit++) crc = crc >>> 1 ^ (crc & 1 ? 0xedb88320 : 0);
|
|
26
|
+
}
|
|
27
|
+
requireBundle((crc ^ 0xffffffff) >>> 0 === uint32(bytes, offset + 8 + length), 'INVALID_ASSET', 'PNG chunk checksum is invalid.');
|
|
28
|
+
if (!dimensions) {
|
|
29
|
+
requireBundle(type === 'IHDR' && length === 13, 'INVALID_ASSET', 'PNG must begin with its dimension header.');
|
|
30
|
+
dimensions = [uint32(bytes, offset + 8), uint32(bytes, offset + 12)];
|
|
31
|
+
const color = bytes[offset + 17], depth = bytes[offset + 16];
|
|
32
|
+
const depths = { 0: [1, 2, 4, 8, 16], 2: [8, 16], 3: [1, 2, 4, 8], 4: [8, 16], 6: [8, 16] };
|
|
33
|
+
requireBundle(depths[color]?.includes(depth) && bytes[offset + 18] === 0 && bytes[offset + 19] === 0 && bytes[offset + 20] <= 1,
|
|
34
|
+
'INVALID_ASSET', 'PNG encoding header is invalid.');
|
|
35
|
+
} else requireBundle(type !== 'IHDR', 'INVALID_ASSET', 'PNG has duplicate headers.');
|
|
36
|
+
if (type === 'IDAT') dataSeen = true;
|
|
37
|
+
offset += length + 12;
|
|
38
|
+
if (type === 'IEND') {
|
|
39
|
+
requireBundle(length === 0 && dataSeen && offset === bytes.length, 'INVALID_ASSET', 'PNG has an invalid end or trailing data.');
|
|
40
|
+
ended = true;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
requireBundle(ended, 'INVALID_ASSET', 'PNG image data is incomplete.');
|
|
45
|
+
return dimensions;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function jpegSize(bytes) {
|
|
49
|
+
requireBundle(bytes.length >= 12 && bytes[0] === 255 && bytes[1] === 216
|
|
50
|
+
&& bytes.at(-2) === 255 && bytes.at(-1) === 217, 'INVALID_ASSET', 'JPEG signature or end marker is invalid.');
|
|
51
|
+
let offset = 2;
|
|
52
|
+
let dimensions;
|
|
53
|
+
while (offset + 3 < bytes.length) {
|
|
54
|
+
requireBundle(bytes[offset++] === 255, 'INVALID_ASSET', 'JPEG marker is invalid.');
|
|
55
|
+
while (bytes[offset] === 255) offset++;
|
|
56
|
+
const marker = bytes[offset++];
|
|
57
|
+
requireBundle(marker !== 0 && marker !== 216 && marker !== 217, 'INVALID_ASSET', 'JPEG header marker is invalid.');
|
|
58
|
+
const length = bytes[offset] * 256 + bytes[offset + 1];
|
|
59
|
+
requireBundle(length >= 2 && offset + length <= bytes.length - 2, 'INVALID_ASSET', 'JPEG segment is truncated.');
|
|
60
|
+
if ([0xc0, 0xc1, 0xc2].includes(marker)) {
|
|
61
|
+
requireBundle(!dimensions && length >= 8 && bytes[offset + 2] === 8, 'INVALID_ASSET', 'Unsupported JPEG frame header.');
|
|
62
|
+
dimensions = [bytes[offset + 5] * 256 + bytes[offset + 6], bytes[offset + 3] * 256 + bytes[offset + 4]];
|
|
63
|
+
}
|
|
64
|
+
if (marker === 0xda) {
|
|
65
|
+
requireBundle(dimensions && length >= 6 && offset + length < bytes.length - 2, 'INVALID_ASSET', 'JPEG scan or dimensions are missing.');
|
|
66
|
+
return dimensions;
|
|
67
|
+
}
|
|
68
|
+
offset += length;
|
|
69
|
+
}
|
|
70
|
+
requireBundle(false, 'INVALID_ASSET', 'JPEG has no supported image scan.');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function webpSize(bytes) {
|
|
74
|
+
requireBundle(bytes.length >= 26 && ascii(bytes, 0, 4) === 'RIFF' && ascii(bytes, 8, 4) === 'WEBP'
|
|
75
|
+
&& uint32(bytes, 4, true) + 8 === bytes.length, 'INVALID_ASSET', 'WebP container is invalid.');
|
|
76
|
+
let offset = 12;
|
|
77
|
+
let dimensions;
|
|
78
|
+
let imageSeen = false;
|
|
79
|
+
while (offset + 8 <= bytes.length) {
|
|
80
|
+
const type = ascii(bytes, offset, 4), length = uint32(bytes, offset + 4, true), start = offset + 8;
|
|
81
|
+
requireBundle(start + length <= bytes.length, 'INVALID_ASSET', 'WebP chunk is truncated.');
|
|
82
|
+
if (type === 'VP8X') {
|
|
83
|
+
requireBundle(offset === 12 && length === 10 && !(bytes[start] & 2), 'INVALID_ASSET', 'Animated or invalid WebP is unsupported.');
|
|
84
|
+
dimensions = [1 + bytes[start + 4] + bytes[start + 5] * 256 + bytes[start + 6] * 65536,
|
|
85
|
+
1 + bytes[start + 7] + bytes[start + 8] * 256 + bytes[start + 9] * 65536];
|
|
86
|
+
} else if (type === 'VP8 ') {
|
|
87
|
+
requireBundle(!imageSeen && length >= 10 && bytes[start + 3] === 0x9d && bytes[start + 4] === 1 && bytes[start + 5] === 0x2a,
|
|
88
|
+
'INVALID_ASSET', 'WebP lossy frame is invalid.');
|
|
89
|
+
const frame = [(bytes[start + 6] + bytes[start + 7] * 256) & 0x3fff, (bytes[start + 8] + bytes[start + 9] * 256) & 0x3fff];
|
|
90
|
+
requireBundle(!dimensions || frame.every((value, index) => value === dimensions[index]), 'INVALID_ASSET', 'WebP canvas and frame dimensions differ.');
|
|
91
|
+
dimensions = frame;
|
|
92
|
+
imageSeen = true;
|
|
93
|
+
} else if (type === 'VP8L') {
|
|
94
|
+
requireBundle(!imageSeen && length >= 5 && bytes[start] === 0x2f && (bytes[start + 4] >> 5) === 0,
|
|
95
|
+
'INVALID_ASSET', 'WebP lossless frame is invalid.');
|
|
96
|
+
const frame = [1 + bytes[start + 1] + (bytes[start + 2] & 0x3f) * 256,
|
|
97
|
+
1 + (bytes[start + 2] >> 6) + bytes[start + 3] * 4 + (bytes[start + 4] & 15) * 1024];
|
|
98
|
+
requireBundle(!dimensions || frame.every((value, index) => value === dimensions[index]), 'INVALID_ASSET', 'WebP canvas and frame dimensions differ.');
|
|
99
|
+
dimensions = frame;
|
|
100
|
+
imageSeen = true;
|
|
101
|
+
} else requireBundle(['ALPH', 'ICCP', 'EXIF', 'XMP '].includes(type), 'INVALID_ASSET', 'Unsupported WebP chunk.');
|
|
102
|
+
offset = start + length + (length % 2);
|
|
103
|
+
}
|
|
104
|
+
requireBundle(offset === bytes.length && dimensions && imageSeen, 'INVALID_ASSET', 'WebP image data is incomplete.');
|
|
105
|
+
return dimensions;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function inspectImage(bytes, mimeType) {
|
|
109
|
+
requireBundle(bytes instanceof Uint8Array && bytes.byteLength > 0 && bytes.byteLength <= BUNDLE_LIMITS.assetBytes,
|
|
110
|
+
'INVALID_ASSET', 'Asset bytes are missing or exceed the size limit.');
|
|
111
|
+
requireBundle(typeof mimeType === 'string' && Object.hasOwn(extensions, mimeType),
|
|
112
|
+
'INVALID_ASSET', 'Only PNG, JPEG, and WebP assets are supported.');
|
|
113
|
+
const [width, height] = ({ 'image/png': pngSize, 'image/jpeg': jpegSize, 'image/webp': webpSize })[mimeType](bytes);
|
|
114
|
+
requireBundle(width > 0 && height > 0 && width <= BUNDLE_LIMITS.imageDimension && height <= BUNDLE_LIMITS.imageDimension
|
|
115
|
+
&& width * height <= BUNDLE_LIMITS.imagePixels, 'LIMIT_EXCEEDED', 'Image dimensions exceed the decoded-image limit.');
|
|
116
|
+
return { width, height };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export async function validateAssets(model, supplied) {
|
|
120
|
+
const source = supplied instanceof Map ? new Map(supplied) : new Map(Object.entries(record(supplied ?? {}, 'Asset bytes')));
|
|
121
|
+
const catalog = model.assets;
|
|
122
|
+
const keys = Object.keys(catalog).sort();
|
|
123
|
+
requireBundle(source.size === keys.length && keys.length <= BUNDLE_LIMITS.assets
|
|
124
|
+
&& [...source.keys()].every(key => typeof key === 'string' && Object.hasOwn(catalog, key)),
|
|
125
|
+
'ASSET_SET_MISMATCH', 'Bundle assets must match the model asset catalog exactly.');
|
|
126
|
+
const paths = new Set();
|
|
127
|
+
const validated = new Map();
|
|
128
|
+
let total = 0;
|
|
129
|
+
let totalPixels = 0;
|
|
130
|
+
// Snapshot and inspect every buffer before yielding to asynchronous hashing.
|
|
131
|
+
for (const key of keys) {
|
|
132
|
+
const metadata = catalog[key];
|
|
133
|
+
requireBundle(assetId.test(key) && !['__proto__', 'prototype', 'constructor'].includes(key)
|
|
134
|
+
&& isPortablePath(metadata.path, { asset: true }) && extensions[metadata.mimeType]?.test(metadata.path),
|
|
135
|
+
'INVALID_ASSET', 'Asset key, relative path, or MIME type is unsafe.');
|
|
136
|
+
const portablePath = metadata.path.normalize('NFC').toLowerCase();
|
|
137
|
+
requireBundle(!paths.has(portablePath), 'DUPLICATE_ASSET', 'Asset paths must be unique across portable filesystems.');
|
|
138
|
+
paths.add(portablePath);
|
|
139
|
+
const value = source.get(key);
|
|
140
|
+
const inputBytes = value instanceof Uint8Array ? value : record(value, `Asset ${key}`).bytes;
|
|
141
|
+
requireBundle(inputBytes instanceof Uint8Array && inputBytes.byteLength <= BUNDLE_LIMITS.assetBytes,
|
|
142
|
+
'INVALID_ASSET', 'Provide each asset as Uint8Array bytes.');
|
|
143
|
+
const bytes = new Uint8Array(inputBytes); // Snapshot caller-owned buffers before any await.
|
|
144
|
+
total += bytes.length;
|
|
145
|
+
requireBundle(total <= BUNDLE_LIMITS.totalAssetBytes, 'LIMIT_EXCEEDED', 'Total asset bytes exceed the bundle limit.');
|
|
146
|
+
const dimensions = inspectImage(bytes, metadata.mimeType);
|
|
147
|
+
totalPixels += dimensions.width * dimensions.height;
|
|
148
|
+
requireBundle(totalPixels <= BUNDLE_LIMITS.totalImagePixels, 'LIMIT_EXCEEDED', 'Total decoded image pixels exceed the bundle limit.');
|
|
149
|
+
validated.set(key, { bytes, path: metadata.path, mimeType: metadata.mimeType, ...dimensions });
|
|
150
|
+
}
|
|
151
|
+
for (const [key, asset] of validated) {
|
|
152
|
+
const metadata = catalog[key];
|
|
153
|
+
const { bytes } = asset;
|
|
154
|
+
const hash = await sha256(bytes);
|
|
155
|
+
requireBundle((metadata.byteLength === undefined || metadata.byteLength === bytes.length)
|
|
156
|
+
&& (metadata.width === undefined || metadata.width === asset.width)
|
|
157
|
+
&& (metadata.height === undefined || metadata.height === asset.height)
|
|
158
|
+
&& (metadata.contentHash === undefined || metadata.contentHash === hash),
|
|
159
|
+
'ASSET_METADATA_MISMATCH', 'Asset bytes do not match their declared size, dimensions, or content hash.');
|
|
160
|
+
asset.sha256 = hash;
|
|
161
|
+
}
|
|
162
|
+
return validated;
|
|
163
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { hydrateScene } from './catalogFiles.js';
|
|
2
|
+
// Browser-only integrations. Core bundle validation deliberately has no Excalidraw,
|
|
3
|
+
// DOM, filesystem, Node crypto, or network imports.
|
|
4
|
+
import { inspectSavedSemanticScene } from '../adapter/semanticAdmission.js';
|
|
5
|
+
import { admitCueModel } from '../adapter/edgeCues.js';
|
|
6
|
+
import { parseAndValidate } from '../contract/index.js';
|
|
7
|
+
import { validateAssets } from './assets.js';
|
|
8
|
+
import { createAssetUrls } from './chainBrowser.js';
|
|
9
|
+
import { imageExportData, sanitizeChainScene } from './scene.js';
|
|
10
|
+
import { BundleError } from './safety.js';
|
|
11
|
+
|
|
12
|
+
export { createAssetUrls };
|
|
13
|
+
|
|
14
|
+
/** Full browser staging. Install only after this resolves; dispose the prior lease
|
|
15
|
+
* after replacing its UI, or this lease if installation is canceled/superseded.
|
|
16
|
+
* @returns {Promise<{bundle:object,model:object,scene:object,assets:Map,assetUrls:Map<string,string>,dispose:()=>void}>}
|
|
17
|
+
*/
|
|
18
|
+
export async function prepareBundle(input) {
|
|
19
|
+
const { loadBundle } = await import('./index.js');
|
|
20
|
+
const loaded = await loadBundle(input);
|
|
21
|
+
const lease = await createAssetUrls(loaded.assets);
|
|
22
|
+
return { ...loaded, assetUrls: lease.urls, dispose: lease.dispose };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** No download side effect; the caller chooses filename/destination. */
|
|
26
|
+
export async function exportBundleBlob(input) {
|
|
27
|
+
const { saveBundle } = await import('./index.js');
|
|
28
|
+
return new Blob([await saveBundle(input)], { type: 'application/json' });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
async function prepareSceneExport({ model: modelInput, scene: sceneInput, assets = {} }) {
|
|
32
|
+
let parsed;
|
|
33
|
+
try { parsed = parseAndValidate(modelInput); }
|
|
34
|
+
catch (error) { throw new BundleError('INVALID_MODEL', 'The export semantic model is invalid.', error.diagnostics ?? []); }
|
|
35
|
+
const scene = sanitizeChainScene(sceneInput, parsed);
|
|
36
|
+
const [model] = await Promise.all([admitCueModel(parsed), validateAssets(parsed, assets)]);
|
|
37
|
+
const result = inspectSavedSemanticScene(model, scene);
|
|
38
|
+
if (!result.valid) throw new BundleError('SEMANTIC_DRIFT', 'The scene changes semantic labels, identities, or connections. Reconcile it with the model before exporting.', result.diagnostics);
|
|
39
|
+
return { scene: await hydrateScene(scene), model };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Official Excalidraw serialization. Does not include the canonical model or
|
|
43
|
+
* inspector assets; the portable bundle is required to reopen those together. */
|
|
44
|
+
export async function exportSceneBlob(input) {
|
|
45
|
+
const { scene } = await prepareSceneExport(input);
|
|
46
|
+
const { serializeAsJSON } = await import('@excalidraw/excalidraw');
|
|
47
|
+
return new Blob([serializeAsJSON(scene.elements, scene.appState, scene.files, 'local')], { type: 'application/json' });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Official SVG/PNG exporters. Embedding is disabled unless explicitly true.
|
|
51
|
+
* Basic image exports strip semantic metadata and all native navigation links.
|
|
52
|
+
* @returns {Promise<Blob>}
|
|
53
|
+
*/
|
|
54
|
+
export async function exportImageBlob(input, { format = 'svg', embedScene = false } = {}) {
|
|
55
|
+
if (!['svg', 'png'].includes(format)) throw new BundleError('INVALID_EXPORT', 'Choose SVG or PNG output.');
|
|
56
|
+
const { scene, model } = await prepareSceneExport(input);
|
|
57
|
+
const data = imageExportData(scene, { embedScene, view: model });
|
|
58
|
+
const { exportToSvg, exportToBlob } = await import('@excalidraw/excalidraw');
|
|
59
|
+
if (format === 'png') return exportToBlob({ ...data, files: scene.files, mimeType: 'image/png', maxWidthOrHeight: 4096 });
|
|
60
|
+
const { svgExportFiles } = await import('@locus-forge/locus-draw/scene/browser');
|
|
61
|
+
const files = svgExportFiles(scene.files);
|
|
62
|
+
if (embedScene) {
|
|
63
|
+
// The official exporter serializes the same file objects into SVG metadata.
|
|
64
|
+
// Symbol aliases are renderer-only; embedded JSON keeps the editable file ID.
|
|
65
|
+
for (const [id, file] of Object.entries(files)) {
|
|
66
|
+
if (file.id !== id) file.toJSON = () => scene.files[id];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const svg = await exportToSvg({ ...data, files, renderEmbeddables: false });
|
|
70
|
+
// Defense in depth if an upstream version unexpectedly emits navigation.
|
|
71
|
+
if (svg.querySelector('a,script,foreignObject,iframe')) throw new BundleError('UNSAFE_EXPORT', 'The exported SVG contains active content.');
|
|
72
|
+
return new Blob([svg.outerHTML], { type: 'image/svg+xml' });
|
|
73
|
+
}
|