@locus-forge/locus-map 0.1.0 → 0.2.2-dev.20261206.g5e970d2
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/CONTRIBUTING.md +2 -2
- package/README.md +35 -10
- package/THIRD_PARTY_NOTICES.md +3 -1
- 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-tB0FidS0.js → abnfDiagram-VCTEODGH-JiCO6vo-.js} +1 -1
- package/dist/assets/{ar-SA-G6X2FPQ2-BQNIWg05.js → ar-SA-G6X2FPQ2-BdzEBmp3.js} +1 -1
- package/dist/assets/{architectureDiagram-5GKGNRK7-D1SjeTh7.js → architectureDiagram-5GKGNRK7-D7T_vJwe.js} +1 -1
- package/dist/assets/{az-AZ-76LH7QW2-BAQK4UQr.js → az-AZ-76LH7QW2-BQ_SoVB7.js} +1 -1
- package/dist/assets/{bg-BG-XCXSNQG7-BDvRwwoU.js → bg-BG-XCXSNQG7-DlH1olUf.js} +1 -1
- package/dist/assets/{blockDiagram-I7D4REHJ-xOWzl6z3.js → blockDiagram-I7D4REHJ-DPz0LEjY.js} +1 -1
- package/dist/assets/{bn-BD-2XOGV67Q-B-osMrPA.js → bn-BD-2XOGV67Q-CFIZU06C.js} +1 -1
- package/dist/assets/{c4Diagram-7LVT6UL2-D5e6bidF.js → c4Diagram-7LVT6UL2-B6uCi0Ol.js} +1 -1
- package/dist/assets/{ca-ES-6MX7JW3Y-BqurRCRN.js → ca-ES-6MX7JW3Y-Bpe3kOti.js} +1 -1
- package/dist/assets/channel-DB3atv5o.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-CQmSUQUU.js → chunk-2Q5K7J3B-DTWRWhpx.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-iLXee7yJ.js → chunk-5VM5RSS4-Dfr1HUAN.js} +1 -1
- package/dist/assets/{chunk-F27PBJKO-BSQMcINP.js → chunk-F27PBJKO-D_IVoCIK.js} +1 -1
- package/dist/assets/{chunk-IMKFNOWR-l-2241K-.js → chunk-IMKFNOWR-Boa_chn8.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-Cu7ldP_G.js → chunk-JWPE2WC7-RaK8jzc2.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-BkgM8HKl.js → chunk-POPQ4Y6H-D7xOpv6O.js} +1 -1
- package/dist/assets/{chunk-SVP7TREG-BR7R6F9G.js → chunk-SVP7TREG-XvJsx1jt.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-DzFEizqD.js → chunk-TICWLB2K-DZCVWmZG.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-B3V5ae8Q.js → chunk-XXDRQBXY-Djk-REAy.js} +1 -1
- package/dist/assets/classDiagram-ZZMXUADV-CzvsXoj_.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-HxwJpdPt.js +1 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-BSUyEU78.js → cose-bilkent-JH36ORCC-D6XaIbtG.js} +1 -1
- package/dist/assets/{cs-CZ-2BRQDIVT-BtaYa8qS.js → cs-CZ-2BRQDIVT-BdzgSHdJ.js} +1 -1
- package/dist/assets/{cynefin-OW5HDTMX-BQ6G1FGd.js → cynefin-OW5HDTMX-BMTkMDG1.js} +1 -1
- package/dist/assets/{cynefinDiagram-5FMLGOSQ-BmH3cQU1.js → cynefinDiagram-5FMLGOSQ-C2s5i9h9.js} +1 -1
- package/dist/assets/{d3-scale-6PaX2_v-.js → d3-scale-BMIMKl27.js} +1 -1
- package/dist/assets/{da-DK-5WZEPLOC-Dk88jbcE.js → da-DK-5WZEPLOC-Bj-GFWHU.js} +1 -1
- package/dist/assets/{dagre-GXQ25YYZ-DzqDTRYR.js → dagre-GXQ25YYZ-CMT8wlz0.js} +1 -1
- package/dist/assets/{de-DE-XR44H4JA-BtkAzckW.js → de-DE-XR44H4JA-JmpondAB.js} +1 -1
- package/dist/assets/{diagram-S7CK7UJ4-CKkad9LS.js → diagram-S7CK7UJ4-DU1blS3M.js} +1 -1
- package/dist/assets/{diagram-UQ7AKVKN-HnH6kGvY.js → diagram-UQ7AKVKN-0lWi4KDV.js} +1 -1
- package/dist/assets/{diagram-VSXAHHWV-BGbiUlE1.js → diagram-VSXAHHWV-CrseWrhn.js} +1 -1
- package/dist/assets/{diagram-VX7I27RA-MPt2qzsq.js → diagram-VX7I27RA-C5BMS8Ql.js} +1 -1
- package/dist/assets/{diagram-Z3DM3KII-hcUL0DLm.js → diagram-Z3DM3KII-Cc3vq6b8.js} +1 -1
- package/dist/assets/{ebnfDiagram-PWID7BFC-hUZUNK__.js → ebnfDiagram-PWID7BFC-ZF78imma.js} +1 -1
- package/dist/assets/{el-GR-BZB4AONW-DOnEE5fq.js → el-GR-BZB4AONW-BFslUpdm.js} +1 -1
- package/dist/assets/{engines-C6k3bUFA.js → engines-BtEtIBXt.js} +1 -1
- package/dist/assets/{erDiagram-RLTQ6QDP-DoHgp3nM.js → erDiagram-RLTQ6QDP-CjPjDn2i.js} +1 -1
- package/dist/assets/{es-ES-U4NZUMDT-VFRkCKl6.js → es-ES-U4NZUMDT-B0ezBTxQ.js} +1 -1
- package/dist/assets/{eu-ES-A7QVB2H4-CWlqsMWd.js → eu-ES-A7QVB2H4-DP_gx2kf.js} +1 -1
- package/dist/assets/{fa-IR-HGAKTJCU-CxtwUetE.js → fa-IR-HGAKTJCU-BuT1ELty.js} +1 -1
- package/dist/assets/{fi-FI-Z5N7JZ37-Djl1mow5.js → fi-FI-Z5N7JZ37-BAu_Cj7n.js} +1 -1
- package/dist/assets/{flowDiagram-HODETNUW-CCs8KCI7.js → flowDiagram-HODETNUW-yqPGWNdd.js} +1 -1
- package/dist/assets/{fr-FR-RHASNOE6-CTSI58QE.js → fr-FR-RHASNOE6-OF1CpgtN.js} +1 -1
- package/dist/assets/{ganttDiagram-EL5Y4UJY-V39NrnLQ.js → ganttDiagram-EL5Y4UJY-zUY5je2K.js} +1 -1
- package/dist/assets/{gitGraphDiagram-WWUBYQGX-DsfCYVRX.js → gitGraphDiagram-WWUBYQGX-oWrs7wy0.js} +1 -1
- package/dist/assets/{gl-ES-HMX3MZ6V-9X19A7Co.js → gl-ES-HMX3MZ6V-CkJ47l98.js} +1 -1
- package/dist/assets/{he-IL-6SHJWFNN-CCWn0aTE.js → he-IL-6SHJWFNN-D7CecRlh.js} +1 -1
- package/dist/assets/{hi-IN-IWLTKZ5I-Czvn3Cqk.js → hi-IN-IWLTKZ5I-CGlW2X-h.js} +1 -1
- package/dist/assets/{hu-HU-A5ZG7DT2-CSA0xyZy.js → hu-HU-A5ZG7DT2-Dq_n_tbp.js} +1 -1
- package/dist/assets/{id-ID-SAP4L64H-C8Y8IY1j.js → id-ID-SAP4L64H-CotwO_06.js} +1 -1
- package/dist/assets/index-CdVc9Lmz.js +624 -0
- package/dist/assets/{index-C_ek_ppO.css → index-Cv-tTxNC.css} +1 -1
- package/dist/assets/{index-0Kge4otW.js → index-VaWCb9bx.js} +5 -5
- package/dist/assets/{infoDiagram-27XIBGKW-C0Ivywz2.js → infoDiagram-27XIBGKW-CYzIkNFW.js} +1 -1
- package/dist/assets/{ishikawaDiagram-5VMMS53U-CMmE4k9T.js → ishikawaDiagram-5VMMS53U-DkgUsuk5.js} +1 -1
- package/dist/assets/{it-IT-JPQ66NNP-gVSFrMB6.js → it-IT-JPQ66NNP-h97o81us.js} +1 -1
- package/dist/assets/{ja-JP-DBVTYXUO-HnD6OZRp.js → ja-JP-DBVTYXUO-M6EVfh0o.js} +1 -1
- package/dist/assets/{journeyDiagram-3NMN7TZE-CpkEKmSl.js → journeyDiagram-3NMN7TZE-CuKkNrJy.js} +1 -1
- package/dist/assets/{kaa-6HZHGXH3-C29qXHap.js → kaa-6HZHGXH3-DUy85zzz.js} +1 -1
- package/dist/assets/{kab-KAB-ZGHBKWFO-CLNG0bT_.js → kab-KAB-ZGHBKWFO-ChL-fKtk.js} +1 -1
- package/dist/assets/{kanban-definition-UXKFOSKX-hOCBBBFh.js → kanban-definition-UXKFOSKX-DkOxt3kf.js} +1 -1
- package/dist/assets/{kk-KZ-P5N5QNE5-DNoNNWtH.js → kk-KZ-P5N5QNE5-DY6ucSGD.js} +1 -1
- package/dist/assets/{km-KH-HSX4SM5Z-eQMwEzV_.js → km-KH-HSX4SM5Z-BAaS4014.js} +1 -1
- package/dist/assets/{ko-KR-MTYHY66A-DP3yaFyg.js → ko-KR-MTYHY66A-D-r3mJ1R.js} +1 -1
- package/dist/assets/{ku-TR-6OUDTVRD-B2GUIkso.js → ku-TR-6OUDTVRD-Dk1GCoOP.js} +1 -1
- package/dist/assets/{layout-D_xIMZTq.js → layout-DtNEGI4_.js} +1 -1
- package/dist/assets/{lt-LT-XHIRWOB4-CuDegLO4.js → lt-LT-XHIRWOB4-3Z2Ui1VZ.js} +1 -1
- package/dist/assets/{lv-LV-5QDEKY6T-DOjbM5AK.js → lv-LV-5QDEKY6T-Bg59rOkR.js} +1 -1
- package/dist/assets/{mindmap-definition-YA3MSWOX-DL4r3hzu.js → mindmap-definition-YA3MSWOX-Dcs8eV7p.js} +1 -1
- package/dist/assets/{mr-IN-CRQNXWMA-C0vzd3Vl.js → mr-IN-CRQNXWMA-DepTOG29.js} +1 -1
- package/dist/assets/{my-MM-5M5IBNSE-Dirjg8Yf.js → my-MM-5M5IBNSE-4KqL4Tav.js} +1 -1
- package/dist/assets/{nb-NO-T6EIAALU-IpjtB42R.js → nb-NO-T6EIAALU-5YWO_l3W.js} +1 -1
- package/dist/assets/{nl-NL-IS3SIHDZ-BiVBDlHI.js → nl-NL-IS3SIHDZ-QlAndkM2.js} +1 -1
- package/dist/assets/{nn-NO-6E72VCQL-kbUyKFiJ.js → nn-NO-6E72VCQL-BscwhEDW.js} +1 -1
- package/dist/assets/{oc-FR-POXYY2M6-C-zRRb5B.js → oc-FR-POXYY2M6-k7bYbSQj.js} +1 -1
- package/dist/assets/{pa-IN-N4M65BXN-Dhh3bH7-.js → pa-IN-N4M65BXN-jxBFwrWj.js} +1 -1
- package/dist/assets/{pegDiagram-XKGWAZYB-CtbYRYVR.js → pegDiagram-XKGWAZYB-zM-VZA3r.js} +1 -1
- package/dist/assets/{pica-HSHSc6s6.js → pica-CsWQ4DPU.js} +1 -1
- package/dist/assets/{pieDiagram-E7YTZNPT-Cwv0hsvK.js → pieDiagram-E7YTZNPT-C60FE0D8.js} +1 -1
- package/dist/assets/{pl-PL-T2D74RX3-CuDP0Pq6.js → pl-PL-T2D74RX3-be8atU_l.js} +1 -1
- package/dist/assets/{pt-BR-5N22H2LF-BlvJqOgZ.js → pt-BR-5N22H2LF-CSE0O2fj.js} +1 -1
- package/dist/assets/{pt-PT-UZXXM6DQ-C3RUoC5C.js → pt-PT-UZXXM6DQ-5rnYJhy1.js} +1 -1
- package/dist/assets/{quadrantDiagram-AXDQQJYC-C_u4_Oxh.js → quadrantDiagram-AXDQQJYC-DyH84hx6.js} +1 -1
- package/dist/assets/{railroadDiagram-O6MQD6OU-FHKPLH9r.js → railroadDiagram-O6MQD6OU-DCrJgP9s.js} +1 -1
- package/dist/assets/{requirementDiagram-BXWQKSXE-B_8MbGxf.js → requirementDiagram-BXWQKSXE-C78-QlFo.js} +1 -1
- package/dist/assets/{ro-RO-JPDTUUEW-QUZCSbcA.js → ro-RO-JPDTUUEW-Gh6EgC27.js} +1 -1
- package/dist/assets/{ru-RU-B4JR7IUQ-BCk_AmNC.js → ru-RU-B4JR7IUQ-BUWESZhq.js} +1 -1
- package/dist/assets/{sankeyDiagram-P5KCCOFB-DsfunxYA.js → sankeyDiagram-P5KCCOFB-D_MOkKEs.js} +1 -1
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-cRf71lBb.js → sequenceDiagram-WJ2MYXX4-BeQbHZRB.js} +1 -1
- package/dist/assets/{si-LK-N5RQ5JYF-jo1qm6JU.js → si-LK-N5RQ5JYF-C9pnvQMf.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-COrYinZO.js → sizeCapture-INFHLROL-DUn-Mus_.js} +1 -1
- package/dist/assets/{sk-SK-C5VTKIMK-BnMkvGRK.js → sk-SK-C5VTKIMK-FnkPBibb.js} +1 -1
- package/dist/assets/{sl-SI-NN7IZMDC-DIkgazuw.js → sl-SI-NN7IZMDC-Cwrqj_B9.js} +1 -1
- package/dist/assets/{stateDiagram-D77RDMKH-BvBlef2E.js → stateDiagram-D77RDMKH-C3EF3jQ3.js} +1 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CVQHmIvK.js +1 -0
- package/dist/assets/{subset-shared.chunk-Cp0oS3tn.js → subset-shared.chunk-8ifLcT_D.js} +1 -1
- package/dist/assets/{subset-worker.chunk-BEbN9HM2.js → subset-worker.chunk-DrNTybDR.js} +1 -1
- package/dist/assets/{sv-SE-XGPEYMSR-CxQiCAkW.js → sv-SE-XGPEYMSR-Btz80pGx.js} +1 -1
- package/dist/assets/{swimlanes-42K2YHIH-BjR8lfsn.js → swimlanes-42K2YHIH-B2_kGhPA.js} +1 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-C1rOmrkT.js +8 -0
- package/dist/assets/{ta-IN-2NMHFXQM-e_HiIsgP.js → ta-IN-2NMHFXQM-B0bWtgu1.js} +1 -1
- package/dist/assets/{th-TH-HPSO5L25-DTp8x86q.js → th-TH-HPSO5L25-DgC0yFw3.js} +1 -1
- package/dist/assets/{timeline-definition-24CTP7MA-B0uf0zYu.js → timeline-definition-24CTP7MA-Bu0W3Mcy.js} +1 -1
- package/dist/assets/{tr-TR-DEFEU3FU-BfTQG1sR.js → tr-TR-DEFEU3FU-C9Mmy6ri.js} +1 -1
- package/dist/assets/{uk-UA-QMV73CPH-DMHmllj-.js → uk-UA-QMV73CPH-rxEnqB_i.js} +1 -1
- package/dist/assets/{vennDiagram-4TSXK5OY-AxXlA6VW.js → vennDiagram-4TSXK5OY-63JTeOph.js} +1 -1
- package/dist/assets/{vi-VN-M7AON7JQ-BtoynmIl.js → vi-VN-M7AON7JQ-DOVa-vAT.js} +1 -1
- package/dist/assets/{wardleyDiagram-VM6X3IG4-BiKqKrb1.js → wardleyDiagram-VM6X3IG4-Bct0TRuC.js} +1 -1
- package/dist/assets/{xychartDiagram-S5SC5T6Z-DKJ6ufCR.js → xychartDiagram-S5SC5T6Z-C21zgvSM.js} +1 -1
- package/dist/assets/{zh-CN-LNUGB5OW-BiSoyhtF.js → zh-CN-LNUGB5OW-MyifsmQ8.js} +1 -1
- package/dist/assets/{zh-HK-E62DVLB3-C6DC7GXY.js → zh-HK-E62DVLB3-Cp55UViv.js} +1 -1
- package/dist/assets/{zh-TW-RAJ6MFWO-D1A1a-SQ.js → zh-TW-RAJ6MFWO-DMy6SZap.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/licenses/markdown-reading-notices.txt +76 -0
- package/docs/BUNDLE-FORMAT.md +18 -5
- package/docs/DIAGRAM-SOURCE.md +59 -12
- package/docs/LOCAL-DOCUMENT.md +17 -14
- package/docs/MODEL-CONTRACT.md +7 -4
- package/docs/PLANTUML-SOURCE.md +3 -2
- package/docs/VIEWER-LAUNCH.md +18 -3
- package/docs/VIEWER.md +118 -35
- package/docs/adr/ADR-001-2026-12-03-inspector-original-document-first/ADR-001-2026-12-03-inspector-original-document-first.md +1 -1
- 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/capabilities.json +27 -4
- package/docs/decisions.md +3 -1
- package/licenses/markdown-reading-notices.txt +76 -0
- package/package.json +5 -2
- package/scripts/build-map.mjs +1 -1
- package/scripts/lib/map-viewer-server.mjs +48 -24
- package/scripts/lib/original-materials.mjs +1 -1
- package/scripts/lib/original-report-server.mjs +7 -3
- package/scripts/lib/project-catalog.mjs +14 -2
- package/scripts/lib/project-map-inputs.mjs +1 -1
- package/scripts/lib/sketch-publication.mjs +1 -1
- package/scripts/lib/task-map-build.mjs +1 -1
- package/scripts/lib/view-args.mjs +183 -0
- package/scripts/lib/workflow/reader-surface.mjs +29 -11
- package/scripts/locus-map.mjs +14 -20
- package/scripts/open-map.mjs +84 -49
- package/scripts/vite-browser-dependencies.mjs +2 -1
- package/skills/README.md +2 -1
- package/skills/locus-map/SKILL.md +27 -25
- package/skills/locus-map/assets/artifact-handoff.md +2 -1
- package/skills/locus-map/references/build-environment.md +11 -7
- package/skills/locus-map/references/checks.md +16 -4
- package/skills/locus-map/references/component-checkpoint.md +35 -0
- package/skills/locus-map/references/draw-skill.md +2 -1
- package/skills/locus-map/references/selection.md +36 -13
- package/skills/locus-map/references/task-maps.md +5 -0
- package/skills/locus-map/references/visual-composition.md +69 -0
- package/skills/locus-map-draft/SKILL.md +95 -0
- package/skills/locus-map-draft/assets/chosen-direction.md +47 -0
- package/skills/locus-map-draft/references/divergence-and-formats.md +127 -0
- package/skills/locus-map-primitives/SKILL.md +6 -2
- package/skills/locus-map-primitives/references/card-presentation.md +57 -3
- package/skills/locus-map-primitives/references/reading-files.md +1 -1
- package/src/adapter/areas.js +1 -0
- package/src/adapter/semanticAdmission.js +118 -5
- package/src/authoring/buildDiagram.mjs +99 -19
- package/src/authoring/canvas-source-worker.mjs +96 -0
- package/src/authoring/canvasSource.mjs +41 -0
- package/src/authoring/diagramChecks.js +143 -1
- package/src/authoring/diagramSource.js +31 -5
- package/src/authoring/printPlantumlSource.js +13 -2
- package/src/authoring/readDetailsFiles.mjs +100 -19
- package/src/bundle/chain.js +129 -32
- package/src/bundle/chainBrowser.js +26 -2
- package/src/bundle/localDocument.mjs +87 -22
- package/src/bundle/localDocumentClient.js +5 -1
- package/src/bundle/projectClient.js +59 -18
- package/src/chain/validation.js +7 -1
- package/src/contract/readingMarkdown.js +57 -13
- package/src/contract/readingMaterials.js +18 -2
- package/src/contract/readingTable.js +66 -0
- package/src/viewer/ControlIcon.jsx +1 -0
- package/src/viewer/DiagramViewer.jsx +97 -56
- package/src/viewer/EmbeddedExcalidrawEditor.jsx +305 -0
- package/src/viewer/HighlightOverlay.jsx +146 -33
- package/src/viewer/Inspector.jsx +110 -33
- package/src/viewer/ProjectRail.jsx +11 -5
- package/src/viewer/ProjectTabs.jsx +9 -6
- package/src/viewer/ProjectViewChainViewer.jsx +235 -77
- package/src/viewer/ReadingTable.jsx +151 -0
- package/src/viewer/SketchCanvas.jsx +34 -87
- package/src/viewer/ViewChainViewer.jsx +583 -81
- package/src/viewer/camera.js +50 -18
- package/src/viewer/chainEditorSession.js +161 -35
- package/src/viewer/chainInstallation.js +3 -3
- package/src/viewer/details/CanvasPreview.jsx +303 -0
- package/src/viewer/details/InspectorReadingSettings.jsx +50 -13
- package/src/viewer/details/MeaningFirst.jsx +2 -2
- package/src/viewer/details/ReadingFiles.jsx +32 -4
- package/src/viewer/details/ReadingMarkdown.jsx +43 -12
- package/src/viewer/details/RelationshipBody.jsx +2 -2
- package/src/viewer/details/details.css +69 -26
- package/src/viewer/diagramControls.css +1 -1
- package/src/viewer/fileError.js +53 -0
- package/src/viewer/geometry.js +12 -0
- package/src/viewer/highlight.js +26 -12
- package/src/viewer/inspectorPosition.js +68 -16
- package/src/viewer/projectTasks.css +1 -2
- package/src/viewer/readingTable.css +47 -0
- package/src/viewer/sceneState.js +0 -4
- package/src/viewer/sketchSettling.js +71 -0
- package/src/viewer/useInspectorPosition.js +126 -39
- package/src/viewer/viewChain.css +55 -24
- package/src/viewer/viewer.css +23 -12
- package/dist/assets/channel-DP1yLO71.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-DKQje2st.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY-C3KVT455.js +0 -1
- package/dist/assets/index-BaHpjra6.js +0 -362
- package/dist/assets/stateDiagram-v2-MP3YSRHH-jeUVI-Q4.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-Dp8eikhA.js +0 -8
package/scripts/open-map.mjs
CHANGED
|
@@ -1,59 +1,94 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { realpathSync } from 'node:fs';
|
|
2
3
|
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
3
5
|
import { readWorkspaceRegistry } from './lib/project-registry.mjs';
|
|
4
6
|
import { startMapViewer } from './lib/map-viewer-server.mjs';
|
|
5
7
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
let
|
|
12
|
-
let
|
|
13
|
-
let
|
|
14
|
-
let
|
|
15
|
-
|
|
8
|
+
export const DEFAULT_SHUTDOWN_GRACE_MS = 1500;
|
|
9
|
+
|
|
10
|
+
export async function runOpenMap(args = process.argv.slice(2), { distDir, shutdownGraceMs = DEFAULT_SHUTDOWN_GRACE_MS } = {}) {
|
|
11
|
+
let filePath;
|
|
12
|
+
let projectPath;
|
|
13
|
+
let libraryRoot;
|
|
14
|
+
let registryRoot;
|
|
15
|
+
let previousDocumentPath;
|
|
16
|
+
let sourceRoot;
|
|
17
|
+
let readOnly = false;
|
|
18
|
+
let port;
|
|
19
|
+
const usage = `Usage:
|
|
16
20
|
node scripts/open-map.mjs --document /full/path/map.locus-map.json [--previous-document /full/path/previous.locus-map.json] [--source-root DIR] [--read-only] [--port 4181]
|
|
17
21
|
node scripts/open-map.mjs --project /full/path/project.json [--source-root DIR] [--read-only] [--port 4181]
|
|
18
22
|
node scripts/open-map.mjs --library /full/path/project [--source-root DIR] [--read-only] [--port 4181]`;
|
|
19
|
-
const seen = new Set();
|
|
20
|
-
for (let index = 0; index < args.length; index++) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
if ([filePath, projectPath, libraryRoot, registryRoot].filter(Boolean).length !== 1 || (!filePath && previousDocumentPath)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
23
|
+
const seen = new Set();
|
|
24
|
+
for (let index = 0; index < args.length; index++) {
|
|
25
|
+
const option = args[index];
|
|
26
|
+
if (seen.has(option)) throw new Error(usage);
|
|
27
|
+
seen.add(option);
|
|
28
|
+
if (option === '--local' && libraryRoot) continue;
|
|
29
|
+
if (option === '--read-only') { readOnly = true; continue; }
|
|
30
|
+
const value = args[++index];
|
|
31
|
+
if (!value || value.startsWith('--')) throw new Error(usage);
|
|
32
|
+
if (option === '--document') filePath = value;
|
|
33
|
+
else if (option === '--project') projectPath = value;
|
|
34
|
+
else if (option === '--user-projects') registryRoot = value;
|
|
35
|
+
else if (option === '--library') libraryRoot = value;
|
|
36
|
+
else if (option === '--previous-document') previousDocumentPath = value;
|
|
37
|
+
else if (option === '--source-root') sourceRoot = path.resolve(value);
|
|
38
|
+
else if (option === '--port' && /^[0-9]+$/.test(value)) port = Number(value);
|
|
39
|
+
else throw new Error(usage);
|
|
40
|
+
}
|
|
41
|
+
if ([filePath, projectPath, libraryRoot, registryRoot].filter(Boolean).length !== 1 || (!filePath && previousDocumentPath)
|
|
42
|
+
|| [filePath, projectPath, libraryRoot, registryRoot, previousDocumentPath].some(value => value !== undefined && !path.isAbsolute(value))
|
|
43
|
+
|| (port !== undefined && (!Number.isInteger(port) || port < 0 || port > 65535))) {
|
|
44
|
+
throw new Error(usage);
|
|
45
|
+
}
|
|
46
|
+
let viewer;
|
|
47
|
+
try {
|
|
48
|
+
const registry = registryRoot && await readWorkspaceRegistry(registryRoot);
|
|
49
|
+
port ??= registry ? registry.port ?? 8181 : 0;
|
|
50
|
+
viewer = await startMapViewer({ filePath, projectPath, libraryRoot, registry, previousDocumentPath, sourceRoot, readOnly, port, ...(distDir ? { distDir } : {}) });
|
|
51
|
+
if (registry?.file) console.error(`Using project registry ${registry.file}`);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.error(error.code === 'EADDRINUSE' ? `Port ${port} is in use. Reuse your running viewer or choose another --port.` : error.message);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
process.stdout.write(`${viewer.url}\n`);
|
|
57
|
+
const rawClose = viewer.close.bind(viewer);
|
|
58
|
+
const detachSignals = () => {
|
|
59
|
+
process.off('SIGINT', onSignal);
|
|
60
|
+
process.off('SIGTERM', onSignal);
|
|
61
|
+
};
|
|
62
|
+
let closePromise;
|
|
63
|
+
const close = options => {
|
|
64
|
+
const promise = rawClose(options);
|
|
65
|
+
if (!closePromise) closePromise = promise.finally(detachSignals);
|
|
66
|
+
return closePromise;
|
|
67
|
+
};
|
|
68
|
+
let closing = false;
|
|
69
|
+
async function onSignal() {
|
|
70
|
+
if (closing) {
|
|
71
|
+
close({ force: true }).catch(() => {});
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
closing = true;
|
|
75
|
+
const forceTimer = setTimeout(() => {
|
|
76
|
+
close({ force: true }).catch(() => {});
|
|
77
|
+
}, shutdownGraceMs);
|
|
78
|
+
forceTimer.unref();
|
|
79
|
+
try { await close(); process.exitCode = 0; }
|
|
80
|
+
catch (error) { process.stderr.write(`${error.message}\n`); process.exitCode = 1; }
|
|
81
|
+
finally { clearTimeout(forceTimer); }
|
|
82
|
+
}
|
|
83
|
+
process.on('SIGINT', onSignal);
|
|
84
|
+
process.on('SIGTERM', onSignal);
|
|
85
|
+
return { ...viewer, close };
|
|
41
86
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (registry?.file) console.error(`Using project registry ${registry.file}`);
|
|
48
|
-
} catch (error) {
|
|
49
|
-
console.error(error.code === 'EADDRINUSE' ? `Port ${port} is in use. Reuse your running viewer or choose another --port.` : error.message);
|
|
50
|
-
process.exit(1);
|
|
87
|
+
|
|
88
|
+
function isMainModule() {
|
|
89
|
+
if (!process.argv[1]) return false;
|
|
90
|
+
try { return realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url)); }
|
|
91
|
+
catch { return false; }
|
|
51
92
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
for (const signal of ['SIGINT', 'SIGTERM']) process.on(signal, async () => {
|
|
55
|
-
if (closing) return;
|
|
56
|
-
closing = true;
|
|
57
|
-
try { await viewer.close(); process.exitCode = 0; }
|
|
58
|
-
catch (error) { process.stderr.write(`${error.message}\n`); process.exitCode = 1; }
|
|
59
|
-
});
|
|
93
|
+
|
|
94
|
+
if (isMainModule()) await runOpenMap();
|
|
@@ -8,7 +8,8 @@ export const BROWSER_DEPENDENCIES = [
|
|
|
8
8
|
'@locus-forge/locus-draw/scene',
|
|
9
9
|
'@locus-forge/locus-draw/scene/browser',
|
|
10
10
|
'@locus-forge/locus-draw/source',
|
|
11
|
+
'@mdit/plugin-tex',
|
|
11
12
|
'commonmark',
|
|
12
|
-
'js-yaml', 'markdown-it',
|
|
13
|
+
'js-yaml', 'katex', 'markdown-it',
|
|
13
14
|
'react', 'react-dom', 'react-dom/client',
|
|
14
15
|
];
|
package/skills/README.md
CHANGED
|
@@ -4,7 +4,8 @@ Start with the result the user wants. A request to revise a map uses the same en
|
|
|
4
4
|
|
|
5
5
|
| User request | Start here | What it delivers |
|
|
6
6
|
| --- | --- | --- |
|
|
7
|
-
| “Show how checkout works.” “Fix the unreadable return arrow on this map.” | [locus-map](locus-map/SKILL.md) | The coordinator
|
|
7
|
+
| “Show how checkout works.” “Visualize this ML experiment with charts and notes.” “Fix the unreadable return arrow on this map.” | [locus-map](locus-map/SKILL.md) | The main coordinator chooses a fitting visual structure (Draw visual board/chart, connected semantic map, or architecture view), builds or revises it in Locus Map, and owns feedback and project drawing preferences. |
|
|
8
|
+
| “I'm not sure how to lay out this experiment — show me 3 visual drafts first.” | [locus-map-draft](locus-map-draft/SKILL.md) | Formalizes an open-ended request, builds 1–4 quick draft options (`.mjs`, `.puml`, or `.map.json`) for early component feedback in Locus Map, and hands the chosen visual reference off to authoring or research. |
|
|
8
9
|
| “How do I link this card to a second map?” “Which file owns a foldable tree?” | [locus-map-primitives](locus-map-primitives/SKILL.md) | A reference for canvas operations, files, links and runnable examples. An author can consult it during a map revision. |
|
|
9
10
|
| “Verify who owns each component before drawing it.” | [locus-map-research](locus-map-research/SKILL.md) | A source-backed, independently reviewed research packet for the author. Use it for verified claims, component, sequence or decision families and the supported ArchiMate subset. The coordinator still owns delivery. |
|
|
10
11
|
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: locus-map
|
|
3
|
-
description: "Creates or revises
|
|
3
|
+
description: "Creates or revises Draw visual boards, connected semantic maps, or researched architecture views in Locus Map, records feedback and reuses preferences."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# locus-map
|
|
7
7
|
|
|
8
|
-
Answer the reader's question with
|
|
9
|
-
|
|
10
|
-
Use
|
|
11
|
-
|
|
8
|
+
Answer the reader's question with the fitting visual structure in Locus Map. Draw owns genres and geometry.
|
|
9
|
+
Draft options: `skills/locus-map-draft/SKILL.md`. Primitives: `skills/locus-map-primitives/SKILL.md`. Pi: assigned methods only.
|
|
10
|
+
Use `locus-map` (`MAP_BIN`), `npx @locus-forge/locus-map`, or `scripts/locus-map.mjs`. Resolve paths via `productRoot` in `"$MAP_BIN" doctor --json`.
|
|
11
|
+
Viewer setup: [setup](references/build-environment.md), `docs/VIEWER-LAUNCH.md`.
|
|
12
12
|
|
|
13
13
|
## Create or revise
|
|
14
14
|
|
|
15
|
-
Outside Pi
|
|
16
|
-
|
|
15
|
+
Outside Pi, pick structure first via [visual composition](references/visual-composition.md):
|
|
16
|
+
draft 1–4 options (`locus-map-draft`), build a Draw `.excalidraw` board, or follow sections 1–6 for `.locus-map.json`.
|
|
17
|
+
Read `.locus-map/preferences.md`; to revise, use `<name>.feedback.md` and [Revise a diagram from feedback](references/revise.md).
|
|
17
18
|
In Pi, Build reads preferences only if assigned. The current request takes precedence.
|
|
18
19
|
|
|
19
20
|
## 1. Frame one diagram
|
|
@@ -30,7 +31,7 @@ hand-offs, decisions, stores. A request that names nothing specific needs no lis
|
|
|
30
31
|
requested diagram type. Dropping an item, merging requested steps or replacing the subject is a narrowing: return it
|
|
31
32
|
to the user with the options. A brief that delegates the diagram passes this frame unchanged.
|
|
32
33
|
|
|
33
|
-
For a standalone source draft, trace
|
|
34
|
+
For a standalone source draft, trace caller/handoffs via [one connected diagram](references/connected-diagram.md) and its ↘ destination rules.
|
|
34
35
|
Use the [diagram folder and source checkout](references/folder.md).
|
|
35
36
|
|
|
36
37
|
## 2. Choose the family and route from the registry
|
|
@@ -48,15 +49,16 @@ An unsupported notation needs an explicit limit, a bounded alternative and agree
|
|
|
48
49
|
- **Source draft (default when sufficient):** `source` admits only `semantic`, including `.puml` C4 Component
|
|
49
50
|
vocabulary and reading areas. Read sources/callers; keep each planned node/relation, `path:line` evidence and
|
|
50
51
|
unresolved claims in `facts.md`. Imports, citations and rendering do not establish truth. Continue with sections 3–6.
|
|
51
|
-
- **Research route:** verified claims, component/sequence/decision
|
|
52
|
-
or
|
|
53
|
-
Use `skills/locus-map-research/SKILL.md` and
|
|
54
|
-
question → mechanism →
|
|
55
|
-
|
|
52
|
+
- **Research route:** verified claims, component/sequence/decision, ArchiMate subset,
|
|
53
|
+
or author/reviewer/reader flow, per registry admission.
|
|
54
|
+
Use `skills/locus-map-research/SKILL.md` and [research authoring order](references/authoring-order.md):
|
|
55
|
+
question → mechanism → source review → build/open → reader trial. Authorized Pi runs:
|
|
56
|
+
[Pi handoff](references/pi-handoff.md); stopped-run reuse: `docs/PI-WORKFLOW.md`.
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
Route sets evidence rules, not subject: it can depict research/Pi without running it.
|
|
59
|
+
Not running Pi limits method only.
|
|
60
|
+
Never mix research flags with `--source` or promote a draft to verified.
|
|
61
|
+
Outside Pi duties, check [component checkpoint](references/component-checkpoint.md) before authoring when its triggers apply.
|
|
60
62
|
|
|
61
63
|
## 3. Author the selected source view through Draw
|
|
62
64
|
|
|
@@ -67,7 +69,7 @@ Keep the selected family, route and `Must show` on the agreed surface; Draw refi
|
|
|
67
69
|
Budgets cannot remove required content. A semantic conflict returns to selection and its source owner.
|
|
68
70
|
|
|
69
71
|
For a source draft choose direction before placement using the main reading path guidance in `docs/DIAGRAM-SOURCE.md`.
|
|
70
|
-
Keep the
|
|
72
|
+
Keep the `.puml` and preview stub, or keep schema-v1 input and generator for JSON-only features (such as a foldable tree).
|
|
71
73
|
Before building, reconcile each shown responsibility, relation, guard and boundary with the actual sources.
|
|
72
74
|
A semantic correction returns to the source/facts and, on the research route, its required review. A geometry-only
|
|
73
75
|
repair stays in the authoring/build loop. Moving a card in the viewer cannot establish a new semantic claim.
|
|
@@ -80,21 +82,21 @@ repair stays in the authoring/build loop. Moving a card in the viewer cannot est
|
|
|
80
82
|
|
|
81
83
|
See [build environment](references/build-environment.md) for browser/outputs/preflight. Run preflight before building; include it in build briefs.
|
|
82
84
|
|
|
83
|
-
Inspect the build's PNG and check report
|
|
84
|
-
Keep inputs near
|
|
85
|
-
Repair
|
|
85
|
+
Inspect the build's PNG and check report against the request, real handoffs and `Must show`.
|
|
86
|
+
Keep inputs near consumers; use `--multi-screen` if reading zoom needs space. Whole-map Fit gives orientation.
|
|
87
|
+
Repair source into the next build directory via [checks and repairs](references/checks.md) and [deliverable updates](references/folder.md#updates).
|
|
86
88
|
|
|
87
89
|
## 5. Open, edit and reopen
|
|
88
90
|
|
|
89
91
|
Checkout: `npm run build` once; npm: use the included viewer:
|
|
90
92
|
|
|
91
93
|
```sh
|
|
92
|
-
"$MAP_BIN" view
|
|
94
|
+
"$MAP_BIN" view <diagram>
|
|
93
95
|
```
|
|
94
96
|
|
|
95
|
-
Reopen by
|
|
96
|
-
Open the printed
|
|
97
|
-
On a copy outside
|
|
97
|
+
Reopen by topic or relative path (`--source-root` is automatic). Never save `#write=`.
|
|
98
|
+
Open the printed URL in browser; `docs/LOCAL-DOCUMENT.md` owns Open, Save and regeneration.
|
|
99
|
+
On a copy outside folder root, check open, whole-card move, Save and reopen.
|
|
98
100
|
Presentation edits may be retained; changes to labels, identity or relation direction are refused by design.
|
|
99
101
|
A build proves no viewer opening, saved change or reader understanding; record those separately.
|
|
100
102
|
|
|
@@ -113,4 +115,4 @@ Return the folder (`.puml`, document, `README.md` with the verified reopen comma
|
|
|
113
115
|
inspected PNG and check report; show the PNG itself where the reply can display images. State the source revision, claims
|
|
114
116
|
state, remaining warnings, checks actually performed and any `Must show` item not shown, with who decided it.
|
|
115
117
|
A source build is `claims: "unverified"` even when it renders and saves correctly. Human acceptance remains separate.
|
|
116
|
-
|
|
118
|
+
Neutral examples: [library examples](assets/examples/README.md); research examples stay with research.
|
|
@@ -11,6 +11,7 @@ audience:
|
|
|
11
11
|
outputLanguage:
|
|
12
12
|
Must show: each item the request names -> where the reader sees it; or omitted, and who decided
|
|
13
13
|
View choice: type/profile and composition, and why; each rejected real alternative and what it hides
|
|
14
|
+
Component checkpoint: approved (<specimen>) | skipped — <reason> | n/a (Pi)
|
|
14
15
|
Orientation: TB | LR; prefer TB for directed graphs with no required orientation; reason
|
|
15
16
|
Main path and roles: ordered IDs; entry, steps, result, helpers, records (also in facts.md);
|
|
16
17
|
or none — <reason> when the view has no ordered stages and no single flow
|
|
@@ -26,7 +27,7 @@ Unknowns kept visible:
|
|
|
26
27
|
Claims: unverified | accepted research evidence: <link>
|
|
27
28
|
Open/edit/save/reopen: actual result, or not checked
|
|
28
29
|
Reader understanding: first answers and separate assessment, or untested
|
|
29
|
-
- Reopen: `locus-map view
|
|
30
|
+
- Reopen: `locus-map view DIAGRAM_NAME` (or `npx @locus-forge/locus-map view DIAGRAM_NAME`) from the target project root when delivered under `.locus-map/`; for custom destinations outside `.locus-map/`, record the working directory and delivered file path (`locus-map view DELIVERED_FILE`). For an unpublished Map checkout, record `node <checkout>/scripts/locus-map.mjs view ...` with the same target.
|
|
30
31
|
Next action:
|
|
31
32
|
```
|
|
32
33
|
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
# Build environment, side effects and preflight
|
|
2
2
|
|
|
3
3
|
Read this before the first build in a session and before writing a brief that asks
|
|
4
|
-
another executor to build.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
the
|
|
10
|
-
|
|
4
|
+
another executor to build. Prefer installed `locus-map` (global or
|
|
5
|
+
`./node_modules/.bin/locus-map`) or `npx @locus-forge/locus-map`, and run
|
|
6
|
+
`locus-map doctor --json` from the target project to read `productRoot` and
|
|
7
|
+
`drawSkillPath`. Resolve resources against `productRoot`. Keep the target
|
|
8
|
+
project as the working directory. Use `locus-map build` with the same arguments
|
|
9
|
+
as the source build and `locus-map view TARGET` (topic name or relative path)
|
|
10
|
+
for the built document or project catalog (`--source-root` defaults
|
|
11
|
+
automatically under `.locus-map/`). The package and installer prepare the
|
|
12
|
+
viewer. For the smoke test, resolve the example next to the reported Draw
|
|
13
|
+
skill. The Node and npm examples below run in an unpublished Map development
|
|
14
|
+
checkout.
|
|
11
15
|
|
|
12
16
|
Use `--style handwritten` for hand-lettered text, or `--style default` to override a saved Draw preference for this build. Both build routes support it.
|
|
13
17
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
A build that reaches rendering writes `check.json`: `status` (`draft` or `failed`), `claims` (always `unverified` for a source build),
|
|
4
4
|
`render`, `fit` (the zoom a reader gets at 1600×1000 and the smallest rendered text per role) and `checks`.
|
|
5
5
|
Each check has a `code`, `severity`, `passed`, the offending `ids`, its `value` and `limit`.
|
|
6
|
+
`render: "passed"` and `diagnostics: []` are NOT sufficient for readiness: inspect every row in `checks[]` with `passed: false`, including warnings.
|
|
6
7
|
A failed error check means no document was published; the diagnostic PNG beside it, when the render got that
|
|
7
8
|
far, shows what went wrong. Invalid source fails earlier: no directory is created and stderr names the field.
|
|
8
9
|
|
|
@@ -14,8 +15,17 @@ collisions and semantic checks still gate the build. Check the delivered image a
|
|
|
14
15
|
its intended size when it is itself a reading surface.
|
|
15
16
|
|
|
16
17
|
Read the longest short titles at 100% before settling on a profile. A wide
|
|
17
|
-
`c4-reference-v1` card is 320 scene units
|
|
18
|
-
|
|
18
|
+
`c4-reference-v1` card is 320 scene units (`c4-modern-v2` wide is 360). For
|
|
19
|
+
`editorial-v2` through `editorial-v4`, use `size: "extra-wide"` (420 units,
|
|
20
|
+
PlantUML `$tags="extra-wide"`) whenever titles wrap unnecessarily—especially on
|
|
21
|
+
Russian or descriptive research maps where words are longer (at `extra-wide`, a
|
|
22
|
+
single title line fits roughly 31–34 Cyrillic characters). Keep the intended
|
|
23
|
+
font size; if a title still wraps onto an awkward trailing word at `extra-wide`,
|
|
24
|
+
move parenthetical detail or series/model qualifiers into `technology` (or
|
|
25
|
+
`badge` on profiles that admit node appearance overrides; on canonical
|
|
26
|
+
`c4-reference-v1`, shorten the title, use `technology` for a technology
|
|
27
|
+
qualifier, or move detail to Inspector `details`), and inspect
|
|
28
|
+
`TITLE_WRAP_WARNING` in `check.json`. On a research
|
|
19
29
|
history, state in the legend when an arrow means chronological order. Label
|
|
20
30
|
branching or causal relations with the observation or condition that explains
|
|
21
31
|
the next step. Put supporting evidence in the relationship Inspector.
|
|
@@ -26,7 +36,7 @@ Open the delivered project in Locus Map. Follow the route from the contents to a
|
|
|
26
36
|
|
|
27
37
|
State the comparator and result on the card. Use a negative tone for every observed deterioration, including multiple on a page. Label an unstable gain, an unchanged result, uncertain economics and future work in words. A page with no losses can have zero red cards. Declare representative samples in the exported legend. Check both themes and reopen the saved scene.
|
|
28
38
|
|
|
29
|
-
|
|
39
|
+
Keep project contents (`project.json` `navigation`) focused on diagram pages (saved maps and views, optionally grouped), or omit `navigation` when the default document list is enough. Add in-page card or experiment anchors (`node`) to `navigation` only when the reader explicitly requests sidebar jumps to individual cards; keep cross-canvas drilldowns in `links` and attach the protocol and report to each node. If two results fed the experiment, draw and source both labeled relations to the same card in an ordinary view. Reserve foldable reading trees for single-parent canvases. See the project contents guidance in `docs/LOCAL-DOCUMENT.md`.
|
|
30
40
|
For requested soft lines, keep rounded or curved routing while adjusting
|
|
31
41
|
spacing, side ports and lanes. Inspect crossings and detours on the final scene.
|
|
32
42
|
For long notes and reports with figures, see “Package reading files with the
|
|
@@ -64,11 +74,13 @@ supporting cards beside the steps that use them.
|
|
|
64
74
|
| Code | Means | What to do |
|
|
65
75
|
|---|---|---|
|
|
66
76
|
| `FIT_ZOOM_WARNING` | Overview zoom below 0.70 | Inspect the overview and the intended reading region |
|
|
77
|
+
| `TITLE_WRAP_WARNING` | One or more card titles wrapped awkwardly (`many-lines`: 3+ lines, `wider-size-fits`: a wider profile card size fits the title on one line, or `orphan-wrap`: an unbalanced single leftover word or short stub on line 2); `details[]` lists each node's `extraWidthPx` deficit and `suggestedSize` | Set `size: "extra-wide"` on `editorial-v2`–`editorial-v4` (`size: "wide"` on C4 profiles) when `suggestedSize` is reported, or trim/move parenthetical detail into `technology` (or `badge` only on profiles that admit node appearance overrides; on canonical `c4-reference-v1`, shorten the title, use `technology`, or move detail to Inspector `details`) to eliminate orphan wraps. Keep balanced two-line titles when shortening would lose meaning |
|
|
67
78
|
| `FIT_ZOOM_MIN`, `RENDERED_TEXT_MIN` (multi-screen) | Whole-map overview falls below the single-screen limits | Retain the overview as an orientation aid and verify each continuation at 100% |
|
|
68
79
|
| `DETAILS_MISSING`, `SOURCES_MISSING` | Inspector text or citations are missing | Check each flagged element against its source. Add a note for a real condition, payload or consequence. A clear label can stand alone; record the warning instead of adding filler. See [connected diagrams](connected-diagram.md) and the [installed Draw skill](draw-skill.md). |
|
|
69
80
|
| `CONDITION_NOT_VISIBLE` | A reminder for every relation with a `condition`: the field shows only in the Inspector | Check that the label words or a note show the guard; then the warning may stay |
|
|
70
81
|
| `LEGEND_STYLE_MISSING` | A declared legend leaves out a style that is used | Add the item, or accept it for card kinds the tags already explain |
|
|
71
|
-
| `EDGE_ROUTE_DETOUR`, `
|
|
82
|
+
| `EDGE_ROUTE_DETOUR`, `ADJACENT_EDGE_DETOUR` | A relation path exceeds 4× the direct card-to-card distance, or an unobstructed neighbour pair detours >2.5× its gap or leaves facing sides | Inspect the rendered route even when `render: "passed"` (failing detour checks are also surfaced in `diagnostics` and stderr) — an outer-perimeter or header-jog detour signals a corridor or area-header obstacle to fix via ports, layout, or Draw routing fixes |
|
|
83
|
+
| `AREA_ROUTE_OUTSIDE`, `AREA_LABEL_BOUNDARY`, `EDGE_CROSSING_WARNING`, `COLLINEAR_SHARED_RUN` | The layout reads worse than it could | Use the layout reference in the [installed Draw skill](draw-skill.md) |
|
|
72
84
|
| `AREA_NONMEMBER_INSIDE` | A card sits inside an area it does not belong to | Move it out, or add it to the area if it really belongs |
|
|
73
85
|
|
|
74
86
|
Source errors occur before rendering. PlantUML errors name a source path, line and column; JSON errors name a
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Two-step component checkpoint (outside Pi duties)
|
|
2
|
+
|
|
3
|
+
Complete this two-step gate before authoring full diagrams whenever an interactive request risks style, card-anatomy, or diagram-type mismatch. Autonomous Pi duties (`authorBuild` and R0–R7) keep their own `Narrative Decision` and review gates and do not pause for this checkpoint.
|
|
4
|
+
|
|
5
|
+
## When this checkpoint is mandatory
|
|
6
|
+
|
|
7
|
+
Require Step 1 approval before building the full deliverable whenever any of the following holds:
|
|
8
|
+
|
|
9
|
+
- The request calls for **2 or more connected canvases** or a multi-document atlas (`project.json`).
|
|
10
|
+
- The request covers broad scope across system architecture, workflows, tasks, and roadmap together.
|
|
11
|
+
- The diagram family, presentation profile, or sequence-vs-workflow boundary is open (see [selection](selection.md)).
|
|
12
|
+
- It is the **first diagram in a project** with no approved `.locus-map/preferences.md` visual defaults.
|
|
13
|
+
|
|
14
|
+
You may skip Step 1 when none of the triggers above apply, for a targeted revision to an already-approved canvas, when the user explicitly opts out, or when a non-interactive / delegated one-shot brief cannot pause for human approval. When skipping a triggered workflow, record `Component checkpoint: skipped — <reason>` in `handoff.md`.
|
|
15
|
+
|
|
16
|
+
## Step 1: Diagram plan and real Draw specimens (wait for approval)
|
|
17
|
+
|
|
18
|
+
Before writing full diagram sources or `project.json`:
|
|
19
|
+
|
|
20
|
+
1. **Present the diagram plan:** list every planned canvas, its Map family (`semantic`, `component`, `sequence`, `decision`), authoring route (`--source`, `research --single-diagram`, or standalone Draw if an unverified sketch is explicitly agreed), Draw profile (strict canonical `c4-reference-v1` with standard C4 roles/palette and no ad-hoc pastel color overrides as default for architecture overviews; `editorial-v4` for workflows; `task-card-v1` for `--tasks-dir`; `c4-modern-v2` only when explicitly chosen), and what each candidate shows or loses. State explicitly when an option falls outside Map admission: standalone Draw `.excalidraw` files cannot be registered or linked in `project.json` and carry no Inspector `details` or `sources`.
|
|
21
|
+
2. **Build 2–4 real specimen cards/components:** author a minimal specimen source file at `<diagram>/artifacts/checkpoint/specimen.puml` (or `.map.json`) and build it to a separate build subdirectory `--out-dir <diagram>/artifacts/checkpoint/builds/1` (never put the specimen source inside `--out-dir` or the published project root so output checks and project discovery stay clean). When `sequence` vs workflow is the open decision, include a small participant pair with ordered messages rather than isolated cards alone. Populate profile-accurate slots:
|
|
22
|
+
- **Standard C4 architecture (`c4-reference-v1`):** keep canonical C4 roles and low-chroma palette without ad-hoc pastel color overrides, decorative badges, or extra icons (`«role»` → `Title` → optional `[Technology]` → `body`).
|
|
23
|
+
- **Code-backed workflows (`editorial-v4` / editorial profiles):** for code-backed workflow steps, follow the 3-slot workflow card pattern — Line 1 (`label`): `Step N · <action>` (or localized `Шаг N · <действие>`), Line 2 (`technology`): compact code anchor `Code: :module → File :: fn()` (or localized `Код: :module → File :: fn()`), Line 3+ (`body`): 2–3 concise bullets using Unicode `• ` (literal UTF-8 `• ` in `.puml`, where `\u` escapes fail with `TEXT_ESCAPE_UNSUPPORTED`; literal `• ` or `\u2022 ` in `.map.json` / `.mjs`) — never leading `- `, which `locus-draw`'s `MARKUP` regex (`src/source/diagramSource.ts`) rejects with `INVALID_TEXT`. On grouped task grids or non-code editorial boards, keep the appropriate 3-slot editorial layout (for example `T-xxx · Title` + single status subline in `technology`).
|
|
24
|
+
- **Card-anatomy reading guide:** on non-trivial workflow diagrams, include a small left-side or top-left card-anatomy breakdown note/block (for example `Card anatomy (how to read slots)` / localized `Разбор карточки (как читать слоты)`) via `page.notes` (`LM_Note`) on non-`readingTree` canvases — in `grid` mode via an unoccupied row cell such as `page.notes[].cell: [0, 0]` (`LM_Note(..., $place="cell:0,0")`) inside a node-occupied column `0` (dedicated note-only columns fail with `LAYOUT_COVERAGE`), or in `auto`/`explicit` mode via `below: "<leftmostNodeId>"` (`$place="below:<node>"`) or `page.footer` (since `cell` fails with `GRID_CELL_CONFLICT` and unattached `page.notes` render at the bottom) — keeping it clear of area contours (or setting matching `area`) to avoid `AREA_NOTE_BOUNDARY`, and using `• ` bullets rather than `- `. Check area clearance on the rendered specimen. On foldable `readingTree` views, put the reading guide in `page.footer` alongside `page.legend` (never `page.notes`, which disables folding). Follow `skills/locus-map-primitives/references/card-presentation.md` and [draw skill](draw-skill.md).
|
|
25
|
+
3. **Show the specimen PNG inline and stop:** inspect the rendered specimen PNG and ask the user for explicit approval (`approve`) or adjustments before authoring full canvases.
|
|
26
|
+
|
|
27
|
+
## Step 2: Full build and delivery (only after approval)
|
|
28
|
+
|
|
29
|
+
1. Apply any adjustments requested on the specimens, then author and build every planned canvas using the selected route's delivery flow (`artifacts/builds/<n>/` + `check.json` for `--source`; `build.json`, metrics, and saved-scene checks for `research`).
|
|
30
|
+
2. Inspect every route report (`checks[]`, including warnings such as `EDGE_ROUTE_DETOUR`, `ADJACENT_EDGE_DETOUR`, and `MAIN_PATH_MISSING`; see [checks](checks.md)) and every rendered PNG. On revisions to existing documents, follow the replacement guard in [deliverable updates](folder.md#updates) (`cmp` against the last published build before replacing the canvas root; keep a candidate when the root differs or its origin is unknown so saved viewer edits are never overwritten) before updating `project.json`.
|
|
31
|
+
3. Verify the viewer opens cleanly and offer to save reusable visual defaults into `.locus-map/preferences.md`.
|
|
32
|
+
|
|
33
|
+
## Evidence firewall
|
|
34
|
+
|
|
35
|
+
Approving Step 1 specimens approves **visual grammar, profile, and card anatomy only**. It never verifies architectural or factual claims: `--source` outputs remain `status: "draft"` and `claims: "unverified"`, and `research` maps still execute full R0–R7 source verification independently.
|
|
@@ -42,6 +42,7 @@ For visual choices, read `new URL('references/presentation-profiles.md', doctor.
|
|
|
42
42
|
where `doctor` is the parsed output of `locus-map doctor --json`. Follow its catalog and
|
|
43
43
|
specimen links within that installed skill.
|
|
44
44
|
|
|
45
|
-
The chooser links PlantUML, editable scenes and PNG specimens for `c4-
|
|
45
|
+
The chooser compares the installed profiles and links PlantUML, editable scenes and PNG specimens for the editorial and modern C4 profiles (`assets/examples/c4.puml` / `c4.png` illustrates `c4-reference-v1`; `skills/locus-map/assets/task-map.mjs` illustrates `task-card-v1`).
|
|
46
|
+
Default to `c4-reference-v1` for standard C4 architecture overviews and `editorial-v4` for workflows; use `c4-modern-v2` only when modern colored C4 cards are explicitly selected.
|
|
46
47
|
Set `iconId` only when it literally disambiguates sibling nodes of the same role, up to 3–5 explicit icons per view.
|
|
47
48
|
Leave `iconId` unset to use the profile's default glyph otherwise.
|
|
@@ -14,16 +14,23 @@ Paths here and in `docs/capabilities.json` start at the explicitly selected Map
|
|
|
14
14
|
`evidenceMeaning`. It describes existing capabilities; runtime admission remains with the linked owners.
|
|
15
15
|
Read the selected family/route docs, plus shared-limit docs relevant to the requested meaning.
|
|
16
16
|
3. Select for the reader's needed inference, not a keyword. Use `component` for real physical ownership/nesting,
|
|
17
|
-
`sequence` for an actual common ordered message list, and `decision` for
|
|
18
|
-
`semantic`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
`sequence` for an actual common ordered message/reply list across participant lifelines, and `decision` for
|
|
18
|
+
choices, guards and outcomes. `semantic` explains structure, step-by-step workflows, branching pipelines,
|
|
19
|
+
qualitative data flow and independent parallel steps. Keep **Sequence vs Workflow** explicit: a step-by-step
|
|
20
|
+
processing pipeline with branching decisions and stage areas is a workflow graph (`semantic` on `--source`
|
|
21
|
+
with an editorial profile), not a UML sequence diagram. "Boundaries" need not mean physical containment;
|
|
22
|
+
"step by step" need not mean a total message order. Do not invent order between independent branches. A
|
|
23
|
+
barrier can be explained in text and conditions, but this gives no typed concurrency or checked full-barrier
|
|
24
|
+
guarantee, in any family.
|
|
22
25
|
4. Check family and route in both directions in the registry, then check the source subset and profile separately.
|
|
23
|
-
Ordinary `.puml`/schema-v1 `.map.json` use `source` and produce `semantic` only
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
Ordinary `.puml`/schema-v1 `.map.json` use `source` and produce `semantic` only (`sequence` is admitted on
|
|
27
|
+
the `research` route via `--single-diagram`, not `--source`; never silently substitute one for the other —
|
|
28
|
+
clarify the tradeoff during the component checkpoint, or use standalone Draw `.excalidraw` if an unverified
|
|
29
|
+
sequence sketch is explicitly agreed, noting that `.excalidraw` files cannot be registered or linked in
|
|
30
|
+
`project.json` and carry no Inspector `details` or `sources`). C4 Component vocabulary and reading areas are not canonical `contains`
|
|
31
|
+
ownership. Source profiles belong to Draw; resolve them through `docs/PLANTUML-SOURCE.md` and the installed
|
|
32
|
+
Draw skill. `docs/DIAGRAM-SOURCE.md` owns Map source admission. Other families and verified claims use
|
|
33
|
+
`research`; the ArchiMate application subset also keeps that workflow.
|
|
27
34
|
Check `docs/DSL-AUTHORING.md`, `docs/MODEL-CONTRACT.md` and `docs/LANGUAGE-COMPATIBILITY.md` for the actual
|
|
28
35
|
combination. A scenario profile admits semantic/decision; the ArchiMate subset admits semantic only.
|
|
29
36
|
Registry `canonical-model` is a low-level API for caller-supplied models, not another ordinary CLI or a way
|
|
@@ -60,8 +67,24 @@ changed research meaning requires renewed independent acceptance. Geometry alone
|
|
|
60
67
|
|
|
61
68
|
Run `locus-map doctor --json`. Resolve `references/presentation-profiles.md` relative to
|
|
62
69
|
`drawSkillPath` to compare the installed Draw specimens before selecting the profile and node
|
|
63
|
-
overrides. See [locating the Draw skill](draw-skill.md).
|
|
70
|
+
overrides. See [locating the Draw skill](draw-skill.md) and `skills/locus-map-primitives/references/card-presentation.md`.
|
|
64
71
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
- **Standard C4 architecture overviews (default):** strictly use canonical **`c4-reference-v1`** for Context, Container and
|
|
73
|
+
Component diagrams. Keep its standard C4 roles and built-in low-chroma palette (blue family for owned
|
|
74
|
+
systems/containers/components, cylinder for data stores, muted grey for external systems, dashed system boundaries)
|
|
75
|
+
with no ad-hoc pastel color overrides, decorative badges or extra icons.
|
|
76
|
+
- **Workflows, pipelines and grouped overviews:** choose **`editorial-v4`** (or another Map-admitted editorial
|
|
77
|
+
profile listed in `docs/capabilities.json` and Draw's `references/presentation-profiles.md`). Keep cards neutral by
|
|
78
|
+
default and reserve `accent` or `tone` for 1–3 explicit semantic signals. For code-backed workflow steps, follow the
|
|
79
|
+
3-slot workflow card pattern (action title, code anchor, `• ` plain-text bullets) with a card-anatomy reading guide
|
|
80
|
+
on non-trivial flows; for grouped task boards, keep `T-xxx · Title` and a single status slot in `technology`.
|
|
81
|
+
- **Colored modern C4 cards (opt-in only):** use **`c4-modern-v2`** only when the user explicitly selects modern
|
|
82
|
+
colored presentation cards over canonical `c4-reference-v1`.
|
|
83
|
+
- **Canonical local task lists:** use **`task-card-v1`** on `locus-map build --tasks-dir` (see [task maps](task-maps.md)).
|
|
84
|
+
|
|
85
|
+
On profiles that admit node appearance overrides (`editorial-v2`–`editorial-v4`, `c4-modern-v1`–`c4-modern-v2`;
|
|
86
|
+
`c4-reference-v1` rejects node `iconId`, `shape`, `badge`, `tone` and root `source.accent` with `PROFILE_KIND` and
|
|
87
|
+
ignores PlantUML style overrides with `PLANTUML_STYLE_IGNORED`), set `iconId` only when it literally disambiguates
|
|
88
|
+
sibling nodes of the same role, up to 3–5 explicit icons per view. Leave `iconId` unset to use the profile's default
|
|
89
|
+
glyph otherwise. Follow `skills/locus-map-primitives/references/card-presentation.md` for minimalist 3-slot card
|
|
90
|
+
anatomy, code-backed workflow card slots (`• ` plain-text bullets), and card-anatomy reading guides.
|
|
@@ -14,3 +14,8 @@ locus-map view .tasks/map.locus-map.json
|
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Inspect the rendered canvas, a directed relationship and its original. When changing an existing view, verify that the authored edit appears after the build. The registry and viewer launch instructions live in `docs/VIEWER-LAUNCH.md` under the product root reported by `locus-map doctor --json`.
|
|
17
|
+
|
|
18
|
+
## Task card discipline (single-column vs grouped overview)
|
|
19
|
+
|
|
20
|
+
- **Canonical single-column task map (`locus-map build --tasks-dir`, `task-card-v1`)**: use one vertical column; place the task ID in `tag`, normalized status via `primitives.taskCardStatus(task.status, task.archived)` in `technology`, the full canonical title in `label`, a concise summary in `body`, and an optional expected result in `outcome`. Never repeat status in `tag` or `body`.
|
|
21
|
+
- **Grouped multi-column task overview board (simplified `editorial-v4` or newer editorial profile)**: put the task ID directly in `label` (for example, `T-264 · Markdown grounding corpus` or `T-257/258 · Markdown-first import`), state status/priority/progress in **one** metadata slot only (`technology`), and keep `tag` empty unless needed for a single orthogonal axis. Never duplicate status across `badge`, `technology`, and `tag`, and avoid `badge` pills on mixed-length grid titles where row-1 vs row-2 wrapping breaks visual alignment.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Choose the visual structure for Locus Map
|
|
2
|
+
|
|
3
|
+
Locus Map (`locus-map view`) opens both Draw-authored `.excalidraw` visuals (charts, matrices,
|
|
4
|
+
freeform analytical boards, timelines, and any of the 53 genres in `@locus-forge/locus-draw`) and
|
|
5
|
+
connected semantic `.locus-map.json` maps. Architecture diagrams are one entry route, not a
|
|
6
|
+
mandatory lens for non-architectural topics such as ML experiments, incident reviews, or research
|
|
7
|
+
comparisons.
|
|
8
|
+
|
|
9
|
+
## Step 0: route by reader need before `selection.md`
|
|
10
|
+
|
|
11
|
+
Choose the structure and deliverable before entering [selection](selection.md) or
|
|
12
|
+
`skills/locus-map-research/SKILL.md`:
|
|
13
|
+
|
|
14
|
+
| What the reader needs | Where to start | Delivered format in Locus Map |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| Open-ended topic, competing layouts, or early feedback before full work | `skills/locus-map-draft/SKILL.md` | 1–4 quick draft previews (`.mjs`/`.puml`/`.map.json`) → `chosen-direction.md` → route below |
|
|
17
|
+
| Quantitative charts, matrices, timelines, freeform notes, or mixed analytical board | Author with installed Draw (below) | `<topic>.excalidraw` in `.locus-map/TOPIC/` |
|
|
18
|
+
| Connected map with clickable Inspector cards, `--details-files` Markdown/LaTeX/HTML, `readingTree` / `readingTable`, or `project.json` `↘` links | Continue sections 1–6 of `skills/locus-map/SKILL.md` via [selection](selection.md) | `<topic>.locus-map.json` (`source` route, `claims: "unverified"`) |
|
|
19
|
+
| Verified claims, physical `component` containment, ordered `sequence`, guarded `decision`, or ArchiMate subset | `skills/locus-map-research/SKILL.md` | `<topic>.locus-map.json` (R0–R7 accepted build) |
|
|
20
|
+
| Local project task tracking | [Author a project task map](task-maps.md) | `<map>.locus-map.json` (`--tasks-dir`) |
|
|
21
|
+
|
|
22
|
+
## Five visual archetypes
|
|
23
|
+
|
|
24
|
+
Pick the visual lens from the reader's question rather than defaulting to boxes and arrows:
|
|
25
|
+
|
|
26
|
+
| Reader's question | Archetype and first screen | Primary tooling |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| What do we know so far and which hypotheses compete? | **Exploration board**: freeform text, excerpts, framed columns ("Observations", "Hypotheses", "Next check") | Draw JS (`Scene`, `textBox`, panels) → `.excalidraw` |
|
|
29
|
+
| How large is the difference and where does it occur? | **Measurement canvas**: shared-axis charts (`bar`, `line`, `scatter`, `heatmap`, `waterfall`, `radar`) + exact summary table | Installed Draw catalog (`Measurements and comparisons`) → `.excalidraw` |
|
|
30
|
+
| What is the conclusion and what supports it? | **Conclusion & evidence breakdown**: thesis, main finding, and caveat on canvas; protocols, LaTeX, PNG figures, and HTML reports on click | Draw board `.excalidraw`, or `editorial-v4` `.locus-map.json` + `--details-files` |
|
|
31
|
+
| How does the system, workflow, or decision work? | **Mechanism & architecture**: components, responsibilities, guards, stores, boundaries | Existing `locus-map` `source` or `locus-map-research` R0–R7 → `.locus-map.json` |
|
|
32
|
+
| Where should each audience start and drill down? | **Topic navigator**: foldable `readingTree`, docked `readingTable`, or `project.json` catalog, optionally paired beside a `.excalidraw` metrics board | `.locus-map.json` (`readingTree` / `readingTable` / `project.json`) + sibling `.excalidraw` |
|
|
33
|
+
|
|
34
|
+
One topic folder (for example, an ML experiment) may combine both formats side-by-side: a semantic
|
|
35
|
+
`experiment.locus-map.json` for methodology and Inspector reports alongside a `metrics.excalidraw`
|
|
36
|
+
chart board in **Contents**.
|
|
37
|
+
|
|
38
|
+
## Deliver a Draw visual into Locus Map
|
|
39
|
+
|
|
40
|
+
1. Outside Pi duties, check [component checkpoint](component-checkpoint.md) before full authoring
|
|
41
|
+
when its triggers apply (keeping its existing skip conditions).
|
|
42
|
+
2. Resolve `@locus-forge/locus-draw/skill` using [installed Draw authoring](draw-skill.md). Read
|
|
43
|
+
its `SKILL.md`, `references/diagram-types.md`, `references/javascript-authoring.md`, and
|
|
44
|
+
`references/javascript-layout.md`.
|
|
45
|
+
3. Match the authoring path to the chosen row in Draw's `references/diagram-types.md`: some genres
|
|
46
|
+
(`heatmap`, `waterfall`, `radar`, `sankey`, and custom `Scene` + `nodeCard` + `embedSvg` boards)
|
|
47
|
+
use JavaScript; others (`bar`, `line`, `scatter`, `quadrant`, etc.) use PlantUML transfer.
|
|
48
|
+
4. Keep the authored script (`<topic>.mjs` or `<topic>.puml`) and build directories inside
|
|
49
|
+
`artifacts/builds/<n>/` (following [the diagram folder](folder.md)) so normal library scans skip
|
|
50
|
+
working builds (`docs/LOCAL-DOCUMENT.md`).
|
|
51
|
+
5. Export and visually inspect the PNG and `diagnostics.json`, then publish `<topic>.excalidraw`
|
|
52
|
+
into `<target-project>/.locus-map/TOPIC/` (or the user's named library folder in
|
|
53
|
+
`docs/VIEWER-LAUNCH.md`) using the replacement rule in
|
|
54
|
+
[deliverable updates](folder.md#updates): if an existing `<topic>.excalidraw` differs from the
|
|
55
|
+
last published build (for example, after **Save drawing** edits) or its origin is unknown, keep
|
|
56
|
+
the rebuilt file as a candidate in `artifacts/` until the user chooses which version to keep.
|
|
57
|
+
6. View the delivered board in **Contents**: if the target library is already open in a running
|
|
58
|
+
workspace viewer, click **Refresh library**. Otherwise launch `locus-map view` (workspace mode,
|
|
59
|
+
without `--local`); if `<target-project>` is not registered in `~/.locusmap/projects.toml` or
|
|
60
|
+
port `8181` is already in use, launch with a temporary `LOCUS_MAP_PROJECTS_FILE` and `--port 0`
|
|
61
|
+
(`docs/VIEWER-LAUNCH.md`).
|
|
62
|
+
|
|
63
|
+
## Current viewer boundaries
|
|
64
|
+
|
|
65
|
+
- `.excalidraw` boards open, edit, and save natively in `locus-map view` workspace mode, but they
|
|
66
|
+
do not expose the semantic Inspector panel, `--details-files`, or `project.json` `↘` targets.
|
|
67
|
+
- `locus-map view --local` and `locus-map view FILE.excalidraw` do not currently discover or open
|
|
68
|
+
standalone `.excalidraw` files (`docs/VIEWER-LAUNCH.md`).
|
|
69
|
+
- Never claim a Draw board or a `--source` draft map has R7-verified source claims.
|