@locus-forge/locus-map 0.2.0 → 0.3.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/CONTRIBUTING.md +2 -2
- package/README.md +21 -6
- package/dist/assets/{abnfDiagram-VCTEODGH-BnTGKKaL.js → abnfDiagram-VCTEODGH-YtlnkH6t.js} +1 -1
- package/dist/assets/{ar-SA-G6X2FPQ2-LY3czoz9.js → ar-SA-G6X2FPQ2-BH5AlOAp.js} +1 -1
- package/dist/assets/{architectureDiagram-5GKGNRK7-BG9h9KRx.js → architectureDiagram-5GKGNRK7-DKYw7IM8.js} +1 -1
- package/dist/assets/{az-AZ-76LH7QW2-Brv6kuM6.js → az-AZ-76LH7QW2-DoI4xcyq.js} +1 -1
- package/dist/assets/{bg-BG-XCXSNQG7-tsQwwvMW.js → bg-BG-XCXSNQG7-CS9_2dp-.js} +1 -1
- package/dist/assets/{blockDiagram-I7D4REHJ-V9bUuR63.js → blockDiagram-I7D4REHJ-FelDwD1I.js} +1 -1
- package/dist/assets/{bn-BD-2XOGV67Q-0Cou5nNv.js → bn-BD-2XOGV67Q-CoIu5tTK.js} +1 -1
- package/dist/assets/{c4Diagram-7LVT6UL2-BmCtzbrY.js → c4Diagram-7LVT6UL2-Bh7h9IHP.js} +1 -1
- package/dist/assets/{ca-ES-6MX7JW3Y-pZF7WJUL.js → ca-ES-6MX7JW3Y-DAEHzf3H.js} +1 -1
- package/dist/assets/channel-DXsl7ag_.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-D2iTDmHh.js → chunk-2Q5K7J3B-CgUOCDxa.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-CTxdXZIx.js → chunk-5VM5RSS4-B97oha-s.js} +1 -1
- package/dist/assets/{chunk-F27PBJKO-Hic1X1pm.js → chunk-F27PBJKO-BQGqI2Ej.js} +1 -1
- package/dist/assets/{chunk-IMKFNOWR-DhLW1JVb.js → chunk-IMKFNOWR-C_sOeFT_.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-_g5twKlC.js → chunk-JWPE2WC7-DG5n2owX.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-DMV4qmkd.js → chunk-POPQ4Y6H-Y-h3THrr.js} +1 -1
- package/dist/assets/{chunk-SVP7TREG-BWg83oEL.js → chunk-SVP7TREG-Dn6yBHtF.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-CPmkpa7J.js → chunk-TICWLB2K-Cb_yWOVI.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-KnXvIZ_8.js → chunk-XXDRQBXY-QE51OqTj.js} +1 -1
- package/dist/assets/classDiagram-ZZMXUADV-DLyWZtYF.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-Cb3mb68m.js +1 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-BChK_CGh.js → cose-bilkent-JH36ORCC-Bt7ZI9S1.js} +1 -1
- package/dist/assets/{cs-CZ-2BRQDIVT-CtAC2Qjy.js → cs-CZ-2BRQDIVT-BKZzkx2M.js} +1 -1
- package/dist/assets/{cynefin-OW5HDTMX-CdsltaMX.js → cynefin-OW5HDTMX-n6-BmECj.js} +1 -1
- package/dist/assets/{cynefinDiagram-5FMLGOSQ-bXvXX3Fx.js → cynefinDiagram-5FMLGOSQ-Bq2km1fZ.js} +1 -1
- package/dist/assets/{d3-scale-sM87TD1Z.js → d3-scale-C9oJHYFk.js} +1 -1
- package/dist/assets/{da-DK-5WZEPLOC-DyWwaclV.js → da-DK-5WZEPLOC-DWJm1_Yl.js} +1 -1
- package/dist/assets/{dagre-GXQ25YYZ-CTmiZZVO.js → dagre-GXQ25YYZ-D9EJj_nK.js} +1 -1
- package/dist/assets/{de-DE-XR44H4JA-BDXUBHki.js → de-DE-XR44H4JA-D-5dMJXD.js} +1 -1
- package/dist/assets/{diagram-S7CK7UJ4-Bm8Fy0R_.js → diagram-S7CK7UJ4-DX3qZf_H.js} +1 -1
- package/dist/assets/{diagram-UQ7AKVKN-BU_AmM_A.js → diagram-UQ7AKVKN-lODsxrZ9.js} +1 -1
- package/dist/assets/{diagram-VSXAHHWV-B78LUoXq.js → diagram-VSXAHHWV-B48xz8Xq.js} +1 -1
- package/dist/assets/{diagram-VX7I27RA-DNvWjMlf.js → diagram-VX7I27RA-Dms2AfBa.js} +1 -1
- package/dist/assets/{diagram-Z3DM3KII-DmFVt1fa.js → diagram-Z3DM3KII-BnwZBeJA.js} +1 -1
- package/dist/assets/{ebnfDiagram-PWID7BFC-CpDna0Jp.js → ebnfDiagram-PWID7BFC-OtcCvaIU.js} +1 -1
- package/dist/assets/{el-GR-BZB4AONW-CNhF7oN2.js → el-GR-BZB4AONW-BZVA3YVN.js} +1 -1
- package/dist/assets/{engines-a8mi_N6S.js → engines-DPbXorS1.js} +1 -1
- package/dist/assets/{erDiagram-RLTQ6QDP-BGD-9OAS.js → erDiagram-RLTQ6QDP-Cnh8Gn9f.js} +1 -1
- package/dist/assets/{es-ES-U4NZUMDT-DXMrJcKL.js → es-ES-U4NZUMDT-DKJIfS-2.js} +1 -1
- package/dist/assets/{eu-ES-A7QVB2H4-BTkMEwMi.js → eu-ES-A7QVB2H4-LHCF7lHc.js} +1 -1
- package/dist/assets/{fa-IR-HGAKTJCU-CgkknSS7.js → fa-IR-HGAKTJCU-CMtLvHxY.js} +1 -1
- package/dist/assets/{fi-FI-Z5N7JZ37-B1K83nId.js → fi-FI-Z5N7JZ37-CUIzm5UM.js} +1 -1
- package/dist/assets/{flowDiagram-HODETNUW-CjU1yR1F.js → flowDiagram-HODETNUW-lneiCvFi.js} +1 -1
- package/dist/assets/{fr-FR-RHASNOE6-CBFZBGMr.js → fr-FR-RHASNOE6-DTJ2WS73.js} +1 -1
- package/dist/assets/{ganttDiagram-EL5Y4UJY-bvb8BjSh.js → ganttDiagram-EL5Y4UJY-B2aJ2MDb.js} +1 -1
- package/dist/assets/{gitGraphDiagram-WWUBYQGX-DZXQ_x8t.js → gitGraphDiagram-WWUBYQGX-C74V3MFm.js} +1 -1
- package/dist/assets/{gl-ES-HMX3MZ6V-CON98Mma.js → gl-ES-HMX3MZ6V-BP8M0fQQ.js} +1 -1
- package/dist/assets/{he-IL-6SHJWFNN-CBoFaEdB.js → he-IL-6SHJWFNN-BMd-Q0PW.js} +1 -1
- package/dist/assets/{hi-IN-IWLTKZ5I-BJuoh3dl.js → hi-IN-IWLTKZ5I-Ct52OkX5.js} +1 -1
- package/dist/assets/{hu-HU-A5ZG7DT2-CQruu8XR.js → hu-HU-A5ZG7DT2-NfIL6Jfo.js} +1 -1
- package/dist/assets/{id-ID-SAP4L64H-VhaoENjR.js → id-ID-SAP4L64H-Osl6P1wb.js} +1 -1
- package/dist/assets/index-CyQSsku0.js +624 -0
- package/dist/assets/{index-CDNl17QJ.css → index-DR6sd54W.css} +1 -1
- package/dist/assets/{index-CboxqaL5.js → index-VfiAlFSM.js} +5 -5
- package/dist/assets/{infoDiagram-27XIBGKW-CM9Hap0f.js → infoDiagram-27XIBGKW-BjDMKD-X.js} +1 -1
- package/dist/assets/{ishikawaDiagram-5VMMS53U-i8pQztJI.js → ishikawaDiagram-5VMMS53U-DjrBmz8f.js} +1 -1
- package/dist/assets/{it-IT-JPQ66NNP-Dj9BkXfh.js → it-IT-JPQ66NNP-vT-EYZw5.js} +1 -1
- package/dist/assets/{ja-JP-DBVTYXUO-CB2BlfIS.js → ja-JP-DBVTYXUO-DexyPC4p.js} +1 -1
- package/dist/assets/{journeyDiagram-3NMN7TZE-PxcdqONT.js → journeyDiagram-3NMN7TZE-Bs5RL4Ef.js} +1 -1
- package/dist/assets/{kaa-6HZHGXH3-CLnR_zY5.js → kaa-6HZHGXH3-0BLUFlXY.js} +1 -1
- package/dist/assets/{kab-KAB-ZGHBKWFO-8TJr4nPf.js → kab-KAB-ZGHBKWFO-ByGN5_Fc.js} +1 -1
- package/dist/assets/{kanban-definition-UXKFOSKX-B2p5NBhO.js → kanban-definition-UXKFOSKX-DgcopnbA.js} +1 -1
- package/dist/assets/{kk-KZ-P5N5QNE5-5uZYjZ2e.js → kk-KZ-P5N5QNE5-DlK-wQWu.js} +1 -1
- package/dist/assets/{km-KH-HSX4SM5Z-D54aOpMd.js → km-KH-HSX4SM5Z-BZ75967_.js} +1 -1
- package/dist/assets/{ko-KR-MTYHY66A-Bnm0G6eo.js → ko-KR-MTYHY66A-C-copauZ.js} +1 -1
- package/dist/assets/{ku-TR-6OUDTVRD-CtGCn_eB.js → ku-TR-6OUDTVRD-CNqY-Uj4.js} +1 -1
- package/dist/assets/{layout-BBV3_Svw.js → layout-B8D2HGrb.js} +1 -1
- package/dist/assets/{lt-LT-XHIRWOB4-Bl8G0yv6.js → lt-LT-XHIRWOB4-BopE_XJX.js} +1 -1
- package/dist/assets/{lv-LV-5QDEKY6T-Cax93Eua.js → lv-LV-5QDEKY6T--7hU3JSZ.js} +1 -1
- package/dist/assets/{mindmap-definition-YA3MSWOX-CsOezwmE.js → mindmap-definition-YA3MSWOX-DYOVTEyE.js} +1 -1
- package/dist/assets/{mr-IN-CRQNXWMA-Br7GVyJH.js → mr-IN-CRQNXWMA-DydjVI2G.js} +1 -1
- package/dist/assets/{my-MM-5M5IBNSE-xC6lzTDV.js → my-MM-5M5IBNSE-D6ewM-EV.js} +1 -1
- package/dist/assets/{nb-NO-T6EIAALU-B0i5THqA.js → nb-NO-T6EIAALU--iqOwj15.js} +1 -1
- package/dist/assets/{nl-NL-IS3SIHDZ-CqYhUjP3.js → nl-NL-IS3SIHDZ-Bnhl_SmS.js} +1 -1
- package/dist/assets/{nn-NO-6E72VCQL-rpjr_9Z5.js → nn-NO-6E72VCQL-CIx7sLAQ.js} +1 -1
- package/dist/assets/{oc-FR-POXYY2M6-BlhQ99Ty.js → oc-FR-POXYY2M6-DWt5a8Ow.js} +1 -1
- package/dist/assets/{pa-IN-N4M65BXN-N2XbQgZ_.js → pa-IN-N4M65BXN-BW3LNure.js} +1 -1
- package/dist/assets/{pegDiagram-XKGWAZYB-C2iSJgYQ.js → pegDiagram-XKGWAZYB-ixSY_9-e.js} +1 -1
- package/dist/assets/{pica-DvYcrBvx.js → pica-Dn0N8xAP.js} +1 -1
- package/dist/assets/{pieDiagram-E7YTZNPT-CUjgOGBw.js → pieDiagram-E7YTZNPT-BbCRV6Qi.js} +1 -1
- package/dist/assets/{pl-PL-T2D74RX3-CnMxn1dA.js → pl-PL-T2D74RX3-7nXJ8SiV.js} +1 -1
- package/dist/assets/{pt-BR-5N22H2LF-Di-jnHb3.js → pt-BR-5N22H2LF-DKGGof4J.js} +1 -1
- package/dist/assets/{pt-PT-UZXXM6DQ-BaAKq8Sh.js → pt-PT-UZXXM6DQ-DCLEXuhk.js} +1 -1
- package/dist/assets/{quadrantDiagram-AXDQQJYC-DwwqgJXZ.js → quadrantDiagram-AXDQQJYC-Bvh_H4wg.js} +1 -1
- package/dist/assets/{railroadDiagram-O6MQD6OU-DyRgYGPF.js → railroadDiagram-O6MQD6OU-DHC3neQ8.js} +1 -1
- package/dist/assets/{requirementDiagram-BXWQKSXE-C3ixXeHJ.js → requirementDiagram-BXWQKSXE-DuCkl3u1.js} +1 -1
- package/dist/assets/{ro-RO-JPDTUUEW-BWrclVyo.js → ro-RO-JPDTUUEW-Cwf4k3Ou.js} +1 -1
- package/dist/assets/{ru-RU-B4JR7IUQ-_z0DINaG.js → ru-RU-B4JR7IUQ-sZF6fySs.js} +1 -1
- package/dist/assets/{sankeyDiagram-P5KCCOFB-mKpKYI_w.js → sankeyDiagram-P5KCCOFB-1ELTqwtI.js} +1 -1
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-ZkNd0Wnj.js → sequenceDiagram-WJ2MYXX4-BK8Ou8Dz.js} +1 -1
- package/dist/assets/{si-LK-N5RQ5JYF-CdKOb383.js → si-LK-N5RQ5JYF-DmYhXIqO.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-hQLGO-0z.js → sizeCapture-INFHLROL-BKwx3lxX.js} +1 -1
- package/dist/assets/{sk-SK-C5VTKIMK-MHJC6ZIe.js → sk-SK-C5VTKIMK-BRLu35YX.js} +1 -1
- package/dist/assets/{sl-SI-NN7IZMDC-BF9YWbZx.js → sl-SI-NN7IZMDC-CMjfvJTr.js} +1 -1
- package/dist/assets/{stateDiagram-D77RDMKH-CRWj3j-B.js → stateDiagram-D77RDMKH-CDwJ9XLN.js} +1 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-BZjKARGY.js +1 -0
- package/dist/assets/{subset-shared.chunk-DtxXjVIA.js → subset-shared.chunk-DngAvf0H.js} +1 -1
- package/dist/assets/{subset-worker.chunk-DONNSbUF.js → subset-worker.chunk-DkH_mqr5.js} +1 -1
- package/dist/assets/{sv-SE-XGPEYMSR-DkaTkfUY.js → sv-SE-XGPEYMSR-G4S06sbd.js} +1 -1
- package/dist/assets/{swimlanes-42K2YHIH-CFf6j7jO.js → swimlanes-42K2YHIH-Z9u8PDi-.js} +1 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-D0kM5xmS.js +8 -0
- package/dist/assets/{ta-IN-2NMHFXQM-BfxqXEDI.js → ta-IN-2NMHFXQM-DgBbCQ8S.js} +1 -1
- package/dist/assets/{th-TH-HPSO5L25-DT3vLA39.js → th-TH-HPSO5L25-o9u4fVfq.js} +1 -1
- package/dist/assets/{timeline-definition-24CTP7MA-BGP2Dq8M.js → timeline-definition-24CTP7MA-BNgrm1r_.js} +1 -1
- package/dist/assets/{tr-TR-DEFEU3FU-CdfsG7py.js → tr-TR-DEFEU3FU-BqqSdzoL.js} +1 -1
- package/dist/assets/{uk-UA-QMV73CPH-CZrQuC1S.js → uk-UA-QMV73CPH-Dna46aia.js} +1 -1
- package/dist/assets/{vennDiagram-4TSXK5OY-CaxGPIab.js → vennDiagram-4TSXK5OY-CHwUI40M.js} +1 -1
- package/dist/assets/{vi-VN-M7AON7JQ-DQJk1_KV.js → vi-VN-M7AON7JQ-CbKRBQPB.js} +1 -1
- package/dist/assets/{wardleyDiagram-VM6X3IG4-DQxQ-zXH.js → wardleyDiagram-VM6X3IG4-KB0xBjXX.js} +1 -1
- package/dist/assets/{xychartDiagram-S5SC5T6Z-DoxdZQ6R.js → xychartDiagram-S5SC5T6Z-B3LOQLL-.js} +1 -1
- package/dist/assets/{zh-CN-LNUGB5OW-DRVBfkOy.js → zh-CN-LNUGB5OW-BFjA6n_2.js} +1 -1
- package/dist/assets/{zh-HK-E62DVLB3-BJHrltss.js → zh-HK-E62DVLB3-BoTU6iS7.js} +1 -1
- package/dist/assets/{zh-TW-RAJ6MFWO-DpMZ5m2x.js → zh-TW-RAJ6MFWO-DB4kdpOS.js} +1 -1
- package/dist/index.html +2 -2
- package/docs/BUNDLE-FORMAT.md +18 -5
- package/docs/DIAGRAM-SOURCE.md +59 -12
- package/docs/LOCAL-DOCUMENT.md +42 -86
- package/docs/MODEL-CONTRACT.md +7 -4
- package/docs/PLANTUML-SOURCE.md +3 -2
- package/docs/VIEWER-LAUNCH.md +29 -22
- package/docs/VIEWER.md +93 -26
- package/docs/adr/ADR-002-2026-12-03-project-selector/ADR-002-2026-12-03-project-selector.md +1 -1
- package/docs/adr/ADR-005-2026-12-04-named-libraries/ADR-005-2026-12-04-named-libraries.md +1 -1
- package/docs/capabilities.json +21 -3
- package/package.json +2 -1
- package/scripts/build-map.mjs +1 -1
- package/scripts/lib/library-directory.mjs +1 -1
- package/scripts/lib/map-build-invocation.mjs +5 -1
- package/scripts/lib/map-viewer-server.mjs +195 -43
- package/scripts/lib/original-materials.mjs +1 -1
- package/scripts/lib/original-report-server.mjs +7 -3
- package/scripts/lib/project-catalog.mjs +264 -97
- package/scripts/lib/project-map-inputs.mjs +1 -1
- package/scripts/lib/project-registry.mjs +151 -47
- package/scripts/lib/sketch-publication.mjs +1 -1
- package/scripts/lib/task-map-build.mjs +1 -1
- package/scripts/lib/view-args.mjs +163 -0
- package/scripts/lib/workflow/reader-surface.mjs +29 -11
- package/scripts/locus-map.mjs +18 -23
- package/scripts/open-map.mjs +96 -51
- package/skills/README.md +2 -1
- package/skills/locus-map/SKILL.md +30 -26
- 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/folder.md +2 -2
- 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 +78 -0
- package/skills/locus-map-primitives/SKILL.md +11 -10
- package/skills/locus-map-primitives/assets/batch/README.md +2 -2
- package/skills/locus-map-primitives/assets/batch/build.mjs +1 -1
- package/skills/locus-map-primitives/assets/batch/{project.json → topic.json} +13 -20
- 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 +64 -21
- package/src/chain/validation.js +7 -1
- package/src/contract/readingMaterials.js +18 -2
- package/src/contract/readingTable.js +66 -0
- package/src/main.jsx +25 -1
- package/src/viewer/ControlIcon.jsx +3 -0
- package/src/viewer/DiagramViewer.jsx +70 -30
- package/src/viewer/EmbeddedExcalidrawEditor.jsx +305 -0
- package/src/viewer/HighlightOverlay.jsx +53 -25
- package/src/viewer/Inspector.jsx +109 -39
- package/src/viewer/ProjectLocation.jsx +25 -7
- package/src/viewer/ProjectRail.jsx +20 -7
- package/src/viewer/ProjectViewChainViewer.jsx +254 -83
- package/src/viewer/ReadingTable.jsx +151 -0
- package/src/viewer/SketchCanvas.jsx +133 -84
- package/src/viewer/ViewChainViewer.jsx +557 -57
- package/src/viewer/ViewerSettings.jsx +208 -0
- package/src/viewer/camera.js +50 -18
- package/src/viewer/chainEditorSession.js +160 -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/ReadingFiles.jsx +32 -4
- package/src/viewer/details/details.css +65 -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/inspectorPosition.js +54 -31
- package/src/viewer/projectContents.js +248 -55
- package/src/viewer/projectNavigation.js +27 -3
- package/src/viewer/readingTable.css +47 -0
- package/src/viewer/sketchSettling.js +71 -0
- package/src/viewer/useInspectorPosition.js +116 -35
- package/src/viewer/viewChain.css +92 -5
- package/src/viewer/viewer.css +23 -12
- package/dist/assets/channel-Dx9OTBrx.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-Da4s894j.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY--H9NrCfO.js +0 -1
- package/dist/assets/index-DBGHN_5E.js +0 -624
- package/dist/assets/stateDiagram-v2-MP3YSRHH-B2DcVJGG.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-DO_W2uN2.js +0 -8
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Choose the visual structure for Locus Map
|
|
2
|
+
|
|
3
|
+
Locus Map (`locus-map view`) opens both connected semantic `.locus-map.json` maps and Draw-authored
|
|
4
|
+
`.excalidraw` visuals (charts, matrices, freeform analytical boards, timelines, and any of the 53
|
|
5
|
+
genres in `@locus-forge/locus-draw`). Architecture diagrams are one entry route, not a mandatory
|
|
6
|
+
lens for non-architectural topics such as ML experiments, incident reviews, or research comparisons.
|
|
7
|
+
|
|
8
|
+
For viewer launch, `~/.locus-map/projects.toml`, and `:8181` reuse, see `docs/VIEWER-LAUNCH.md`.
|
|
9
|
+
For nested topic folders, `drafts/`, excluded folders, and optional `topic.json`, see
|
|
10
|
+
`docs/LOCAL-DOCUMENT.md`.
|
|
11
|
+
|
|
12
|
+
## Step 0: route by reader need before `selection.md`
|
|
13
|
+
|
|
14
|
+
Choose the structure and deliverable before entering [selection](selection.md) or
|
|
15
|
+
`skills/locus-map-research/SKILL.md`:
|
|
16
|
+
|
|
17
|
+
| What the reader needs | Where to start | Delivered format in Locus Map |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| Open-ended topic, competing layouts, or early feedback before full work | `skills/locus-map-draft/SKILL.md` | 1–3 interactive dummy templates in `<topic>/drafts/<variant>/<variant>.locus-map.json` → `chosen-direction.md` → route below |
|
|
20
|
+
| Quantitative charts, matrices, timelines, or freeform visual-only board (no Inspector cards) | Author with installed Draw (below) | `<topic>.excalidraw` in `.locus-map/TOPIC/` |
|
|
21
|
+
| Connected map with clickable Inspector cards, `--details-files` Markdown/LaTeX/HTML, `readingTree` / `readingTable`, or `topic.json` `↘` links | Continue sections 1–6 of `skills/locus-map/SKILL.md` via [selection](selection.md) | `<topic>.locus-map.json` (`source` route, `claims: "unverified"`) |
|
|
22
|
+
| 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) |
|
|
23
|
+
| Local project task tracking | [Author a project task map](task-maps.md) | `<map>.locus-map.json` (`--tasks-dir`) |
|
|
24
|
+
|
|
25
|
+
## Five visual archetypes
|
|
26
|
+
|
|
27
|
+
Pick the visual lens from the reader's question rather than defaulting to boxes and arrows:
|
|
28
|
+
|
|
29
|
+
| Reader's question | Archetype and first screen | Primary tooling |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| 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`, or `editorial-v4` `.locus-map.json` when Inspector cards are needed |
|
|
32
|
+
| 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` |
|
|
33
|
+
| 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 | `editorial-v4` `.locus-map.json` + `--details-files` (or Draw `.excalidraw` when visual-only) |
|
|
34
|
+
| 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` |
|
|
35
|
+
| Where should each audience start and drill down? | **Topic navigator**: nested topic folders, foldable `readingTree`, docked `readingTable`, or optional `topic.json` | `.locus-map.json` (`readingTree` / `readingTable` / `topic.json`) + optional sibling `.excalidraw` |
|
|
36
|
+
|
|
37
|
+
One topic folder (for example, an ML experiment) may combine both formats side-by-side: a semantic
|
|
38
|
+
`experiment.locus-map.json` for methodology and Inspector reports alongside a `metrics.excalidraw`
|
|
39
|
+
chart board in **Contents**.
|
|
40
|
+
|
|
41
|
+
## Deliver a Draw visual into Locus Map
|
|
42
|
+
|
|
43
|
+
1. Outside Pi duties, check [component checkpoint](component-checkpoint.md) before full authoring
|
|
44
|
+
when its triggers apply (keeping its existing skip conditions).
|
|
45
|
+
2. Resolve `@locus-forge/locus-draw/skill` using [installed Draw authoring](draw-skill.md). Read
|
|
46
|
+
its `SKILL.md`, `references/diagram-types.md`, `references/javascript-authoring.md`, and
|
|
47
|
+
`references/javascript-layout.md`.
|
|
48
|
+
3. Match the authoring path to the chosen row in Draw's `references/diagram-types.md`: some genres
|
|
49
|
+
(`heatmap`, `waterfall`, `radar`, `sankey`, and custom `Scene` + `nodeCard` + `embedSvg` boards)
|
|
50
|
+
use JavaScript; others (`bar`, `line`, `scatter`, `quadrant`, etc.) use PlantUML transfer.
|
|
51
|
+
4. Keep the authored script (`<topic>.mjs` or `<topic>.puml`) and build directories inside
|
|
52
|
+
`artifacts/builds/<n>/` (following [the diagram folder](folder.md)) so normal library scans skip
|
|
53
|
+
working builds (`docs/LOCAL-DOCUMENT.md`).
|
|
54
|
+
5. Export and visually inspect the PNG and `diagnostics.json`, then publish `<topic>.excalidraw`
|
|
55
|
+
into `<target-project>/.locus-map/TOPIC/` (or the user's named library folder in
|
|
56
|
+
`docs/VIEWER-LAUNCH.md`) using the replacement rule in
|
|
57
|
+
[deliverable updates](folder.md#updates): if an existing `<topic>.excalidraw` differs from the
|
|
58
|
+
last published build (for example, after **Save drawing** edits) or its origin is unknown, keep
|
|
59
|
+
the rebuilt file as a candidate in `artifacts/` until the user chooses which version to keep.
|
|
60
|
+
6. View the delivered board in **Contents** using the standard launch workflow in `docs/VIEWER-LAUNCH.md`
|
|
61
|
+
(`http://127.0.0.1:8181/?cwd=<target-project>` + **Refresh library**, or `locus-map view --local`
|
|
62
|
+
for an unregistered checkout).
|
|
63
|
+
|
|
64
|
+
## Current viewer boundaries
|
|
65
|
+
|
|
66
|
+
- Saved `.excalidraw` boards open in **View** mode by default with a **View / Edit** toggle and
|
|
67
|
+
save natively in workspace and `--local` launches, but they do not expose the semantic Inspector
|
|
68
|
+
panel, `--details-files`, or `topic.json` `↘` targets.
|
|
69
|
+
- Never claim a Draw board or a `--source` draft map has R7-verified source claims.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: locus-map-draft
|
|
3
|
+
description: "Formalizes an open-ended visual request, builds 1–3 annotated dummy templates (wireframe + source contract) as interactive .locus-map.json canvases for early layout feedback, and routes the approved format onward."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# locus-map-draft
|
|
7
|
+
|
|
8
|
+
Agree on visual structure and field provenance in Locus Map before full research or delivery.
|
|
9
|
+
Use `locus-map` (`MAP_BIN`), `npx @locus-forge/locus-map`, or checkout `scripts/locus-map.mjs`.
|
|
10
|
+
Resolve `productRoot` and `drawSkillPath` from `"$MAP_BIN" doctor --json`.
|
|
11
|
+
This skill grants no agent-launch authority. When the host permits subagents, run 1–3 draft workers
|
|
12
|
+
in parallel; otherwise author sequentially, guided by
|
|
13
|
+
[divergence axes and dummy templates](references/divergence-and-formats.md).
|
|
14
|
+
|
|
15
|
+
Viewer launch, `~/.locus-map/projects.toml`, and `:8181` reuse are owned by `docs/VIEWER-LAUNCH.md`.
|
|
16
|
+
Nested topic folders, `drafts/`, excluded build folders, and optional `topic.json` are owned by
|
|
17
|
+
`docs/LOCAL-DOCUMENT.md`.
|
|
18
|
+
|
|
19
|
+
## 0. Decide whether drafting helps
|
|
20
|
+
|
|
21
|
+
Skip drafting when layout and visual form are already fixed: route directly to
|
|
22
|
+
`skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`.
|
|
23
|
+
Use `locus-map-draft` when the layout is open (e.g., an ML overview, multi-direction board, or
|
|
24
|
+
hierarchy), competing Canvas compositions fit, or the user wants dummy templates first.
|
|
25
|
+
|
|
26
|
+
## 1. Formalize framing without scanning the full repo
|
|
27
|
+
|
|
28
|
+
Record the verbatim request, `reader-question`, `audience`, `outputLanguage`, `Must show`, known
|
|
29
|
+
`provided-facts`, and template slots (`missing-or-unverified`) in
|
|
30
|
+
`TARGET_PROJECT/.locus-map/TOPIC/artifacts/drafts/SESSION_ID/session.md` (or
|
|
31
|
+
`~/.locus-map/maps/TOPIC/artifacts/drafts/SESSION_ID/session.md` when no project directory is given).
|
|
32
|
+
**Save tokens:** do NOT read hundreds of cards or code files during drafting; read at most top-level
|
|
33
|
+
entry docs or ask only about unknowns that materially change the template layout.
|
|
34
|
+
|
|
35
|
+
## 2. Design 1–3 annotated dummy templates
|
|
36
|
+
|
|
37
|
+
Pick 1–3 Canvas candidates (`1` to validate one layout, `2` for a focused trade-off, `3` default)
|
|
38
|
+
using [divergence axes and dummy templates](references/divergence-and-formats.md).
|
|
39
|
+
**Dummy-template rule (wireframe + source contract):** annotate each card/section slot with
|
|
40
|
+
**what goes there**, **where it comes from (`source`)**, **who/how populates it**, and **what opens
|
|
41
|
+
on click** (keep at most one short format example). Do NOT dump real tables or long prose on drafts.
|
|
42
|
+
Do NOT enable `readingTable` unless a table view was explicitly asked: keep Canvas as the primary
|
|
43
|
+
surface. Every pair of candidates must differ in layout archetype or visual density.
|
|
44
|
+
|
|
45
|
+
## 3. Author interactive `.locus-map.json` drafts and inspect PNGs
|
|
46
|
+
|
|
47
|
+
Place active drafts under `TARGET_PROJECT/.locus-map/TOPIC/drafts/VARIANT_SLUG/` (never inside
|
|
48
|
+
`artifacts/` and never using generic `draft.*` filenames):
|
|
49
|
+
|
|
50
|
+
- **Default format (`.locus-map.json`):** author `VARIANT_SLUG.mjs` (or `.puml` / `.map.json`)
|
|
51
|
+
generating a schema-v1 map with `claims: "unverified"`, a descriptive `model.title`, `page`
|
|
52
|
+
declared on-canvas, visible `DRAFT · CONCEPT` badge, and `--details-files` dummy Markdown slot
|
|
53
|
+
contracts under `VARIANT_SLUG/materials/`. Build into `VARIANT_SLUG/builds/1/` (skipped by
|
|
54
|
+
library scans), visually inspect the PNG, and copy the bundle and PNG to
|
|
55
|
+
`VARIANT_SLUG/VARIANT_SLUG.locus-map.json` and `VARIANT_SLUG/VARIANT_SLUG.png`.
|
|
56
|
+
Keeping `VARIANT_SLUG.mjs` beside the bundle automatically enables **Source** (`Open source in Zed`).
|
|
57
|
+
- **Explicit visual-only chart exception (`.excalidraw`):** use Draw → `VARIANT_SLUG.excalidraw`
|
|
58
|
+
only when the user explicitly requests a non-semantic chart board (`heatmap`, `waterfall`, `radar`,
|
|
59
|
+
`sankey`) with no clickable Inspector cards.
|
|
60
|
+
- Add an optional `TARGET_PROJECT/.locus-map/TOPIC/topic.json` (e.g., `{ "version": 1, "title": "..." }`)
|
|
61
|
+
and optional `drafts/topic.json` (`order`) if you want a custom topic title or fixed variant order.
|
|
62
|
+
- Use `[slot ← source]` / `[TBD]` tags (never angle-bracket tags, which fail `INVALID_TEXT`).
|
|
63
|
+
|
|
64
|
+
## 4. Preview in Locus Map and gather feedback
|
|
65
|
+
|
|
66
|
+
Show every `VARIANT_SLUG.png` inline beside a short trade-off table (Canvas layout, density,
|
|
67
|
+
click-detail contract, and target route).
|
|
68
|
+
|
|
69
|
+
Preview through the standard workspace viewer on `8181` (never create `.viewer.toml` and never pass
|
|
70
|
+
`LOCUS_MAP_PROJECTS_FILE` or `--port 0`; see `docs/VIEWER-LAUNCH.md`):
|
|
71
|
+
- If `TARGET_PROJECT` is registered in `~/.locus-map/projects.toml` and `8181` is running, open
|
|
72
|
+
`http://127.0.0.1:8181/?cwd=TARGET_PROJECT&map=TOPIC/drafts/VARIANT_SLUG/VARIANT_SLUG.locus-map.json`
|
|
73
|
+
(or click **Refresh library**).
|
|
74
|
+
- If `TARGET_PROJECT` is unregistered, either suggest adding its `[[projects]]` stanza to
|
|
75
|
+
`~/.locus-map/projects.toml` or run `locus-map view TOPIC` / `locus-map view --local`.
|
|
76
|
+
|
|
77
|
+
Ask which template (or component combination) to lock before filling real repository data.
|
|
78
|
+
|
|
79
|
+
## 5. Lock the visual reference and route onward
|
|
80
|
+
|
|
81
|
+
Save the approved composition, slot contracts, and grounding checklist in
|
|
82
|
+
`TARGET_PROJECT/.locus-map/TOPIC/artifacts/drafts/SESSION_ID/chosen-direction.md` using the
|
|
83
|
+
[chosen-direction handoff template](assets/chosen-direction.md). Once the final map is delivered,
|
|
84
|
+
move `TARGET_PROJECT/.locus-map/TOPIC/drafts/` to `TARGET_PROJECT/.locus-map/TOPIC/archive/drafts/`
|
|
85
|
+
so finished topics stay clean in **Contents**.
|
|
86
|
+
|
|
87
|
+
**Evidence firewall:** dummy templates express visual structure only. Never cite any file under
|
|
88
|
+
`drafts/` or `archive/` in `facts.md`, `citations.json`, `sourceBindings`, `--snapshot-documents`,
|
|
89
|
+
or final `--details-files`, and never promote a draft directly as a verified map.
|
|
90
|
+
|
|
91
|
+
Route the approved template into the matching downstream flow (full repo reading happens here):
|
|
92
|
+
- **Interactive semantic map (`.locus-map.json`):** populate via `skills/locus-map/SKILL.md` (`source`).
|
|
93
|
+
- **Explicit Draw chart visual (`.excalidraw`):** populate via `skills/locus-map/SKILL.md`.
|
|
94
|
+
- **Verified source-backed research (`skills/locus-map-research/SKILL.md`):** pass verbatim framing
|
|
95
|
+
to R0, withhold drafts from R1–R5, and supply `chosen-direction.md` only at R6 (`duties: ["authorBuild"]`).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Chosen Visual Direction (from locus-map-draft)
|
|
2
|
+
|
|
3
|
+
## 1. Status and evidence boundary
|
|
4
|
+
|
|
5
|
+
- Draft status: `VISUAL_DIRECTION_ONLY` (may contain illustrative `[example]` / `[TBD]` placeholders)
|
|
6
|
+
- Allowed downstream use: reader framing, visual structure, component selection, layout and style intent
|
|
7
|
+
- Forbidden downstream use: MUST NOT be cited as factual evidence, passed via `--snapshot-documents` or `sourceBindings`, or used to bypass source checks or R7 review
|
|
8
|
+
|
|
9
|
+
## 2. Original framing (preserved verbatim)
|
|
10
|
+
|
|
11
|
+
- Request (verbatim):
|
|
12
|
+
- `reader-question`:
|
|
13
|
+
- `audience`:
|
|
14
|
+
- `outputLanguage`:
|
|
15
|
+
- `Must show`:
|
|
16
|
+
- REQUIRED_ITEM -> canvas | inspector-card
|
|
17
|
+
|
|
18
|
+
## 3. Selected visual reference and component feedback
|
|
19
|
+
|
|
20
|
+
- Session directory: `artifacts/drafts/SESSION_ID/`
|
|
21
|
+
- Selected concept: `vN-SLUG` (note any combined elements from other drafts)
|
|
22
|
+
- Reference files:
|
|
23
|
+
- PNG preview: `artifacts/drafts/SESSION_ID/vN-SLUG/draft.png`
|
|
24
|
+
- Source script/input: `artifacts/drafts/SESSION_ID/vN-SLUG/draft.mjs` | `draft.puml` | `draft.map.json`
|
|
25
|
+
- Editable scene/document: `artifacts/drafts/SESSION_ID/vN-SLUG/draft.excalidraw` | `draft.locus-map.json`
|
|
26
|
+
- User feedback on components:
|
|
27
|
+
- Keep:
|
|
28
|
+
- Remove or simplify:
|
|
29
|
+
- Add or adjust:
|
|
30
|
+
- Rejected variants (for `View choice` rationale):
|
|
31
|
+
- `vA-SLUG`: WHAT_IT_HID_OR_LOST
|
|
32
|
+
|
|
33
|
+
## 4. Target downstream route
|
|
34
|
+
|
|
35
|
+
- Target skill and route: `locus-map` (Draw `.mjs`/`.puml` -> `.excalidraw`) | `locus-map` (`source` -> `.locus-map.json`) | `locus-map-research` (R0–R7)
|
|
36
|
+
- Admitted Map family (when targeting `.locus-map.json`): `semantic` | `component` | `sequence` | `decision` | `n/a (Draw visual)`
|
|
37
|
+
- Visual form / profile:
|
|
38
|
+
- Orientation & layout notes:
|
|
39
|
+
- Disclosed capability limits:
|
|
40
|
+
|
|
41
|
+
## 5. Grounding checklist (must be replaced or verified downstream)
|
|
42
|
+
|
|
43
|
+
- Confirmed user inputs / files / data:
|
|
44
|
+
- Placeholders to replace with verified values or source facts:
|
|
45
|
+
- [ ] PLACEHOLDER_ITEM -> TARGET_FILE_OR_DATASET
|
|
46
|
+
- Open questions for research or data gathering:
|
|
47
|
+
- [ ] OPEN_QUESTION
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Divergence axes and dummy templates
|
|
2
|
+
|
|
3
|
+
Use this reference during `locus-map-draft` to pick the right number of template candidates, keep
|
|
4
|
+
drafts as lightweight annotated dummy wireframes (without reading full repositories upfront), and
|
|
5
|
+
keep Canvas primary (without hijacking it with `readingTable`).
|
|
6
|
+
|
|
7
|
+
For viewer launch and `projects.toml`, see `docs/VIEWER-LAUNCH.md`.
|
|
8
|
+
For nested topic folders, `drafts/`, excluded directories, and optional `topic.json`, see
|
|
9
|
+
`docs/LOCAL-DOCUMENT.md`.
|
|
10
|
+
For choosing between `.locus-map.json` and visual-only `.excalidraw` charts, see
|
|
11
|
+
`skills/locus-map/references/visual-composition.md`.
|
|
12
|
+
|
|
13
|
+
## Choose the number of drafts (N = 1..3, max 4)
|
|
14
|
+
|
|
15
|
+
| Count | When to use | Typical scenario |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| `0` (skip) | Layout and card schema are already agreed | Explicit C4 diagram, targeted chart, or revision of an existing map. Route directly to `skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`. |
|
|
18
|
+
| `1` | One specific layout needs validation before filling data | Confirming one multi-column dummy template with slot provenance before scanning ~200 files. |
|
|
19
|
+
| `2` | Two layout archetypes compete | Compact side-by-side outliner vs. structured multi-column card grid (both `.locus-map.json`). |
|
|
20
|
+
| `3` (default) | Open layout choice for a multi-block report or overview | Three distinct Canvas layouts using the same dummy-template contract (e.g., WBS direction columns, compact status lists / foldable `readingTree`, and 4-column semantic grid with areas). |
|
|
21
|
+
| `4` (max) | Explicit user request for 4 options | Hard ceiling: more than four images overwhelm side-by-side comparison. |
|
|
22
|
+
|
|
23
|
+
**Single-agent fallback:** when subagents are unavailable or disallowed, author `1–3` candidates
|
|
24
|
+
sequentially in isolated subfolders under `TOPIC/drafts/VARIANT_SLUG/` so each candidate tests
|
|
25
|
+
a distinct layout archetype rather than a cosmetic color swap.
|
|
26
|
+
|
|
27
|
+
## Annotated dummy-template rule (save tokens, show provenance)
|
|
28
|
+
|
|
29
|
+
During drafting, do **not** read hundreds of source files or replace the user's review with finished
|
|
30
|
+
data-dense dashboards unless the user explicitly asked for real slices:
|
|
31
|
+
|
|
32
|
+
1. **Label every slot with its contract:** on each card, branch, or section block, write
|
|
33
|
+
`[What goes here ← source path or field · who/how fills it]` (plus at most 1 brief format hint),
|
|
34
|
+
and attach the full slot specification in clickable Inspector Markdown under `materials/`.
|
|
35
|
+
2. **Keep Canvas compact and multi-column:** for multiple directions or categories, place branches
|
|
36
|
+
**side-by-side** (e.g., 3–4 columns) instead of one long vertical scroll column.
|
|
37
|
+
3. **Always declare `page` on-canvas:** declare `page` (`title`, `eyebrow`) so every template opens
|
|
38
|
+
flush in the unified viewer chrome without extra HTML heading shifts.
|
|
39
|
+
4. **Never substitute Canvas with `readingTable`:** `readingTable` defaults to `defaultMode: "table"`,
|
|
40
|
+
which hides the Canvas behind a full-screen table. Do **not** add `readingTable` during drafting
|
|
41
|
+
unless the user explicitly asks for a table-first view (if requested alongside a canvas, set
|
|
42
|
+
`defaultMode: "canvas"` when Canvas should open first).
|
|
43
|
+
|
|
44
|
+
## Three structural divergence axes
|
|
45
|
+
|
|
46
|
+
Require candidates to differ on at least two structural axes (never cosmetic colors), while keeping
|
|
47
|
+
all candidates in interactive `.locus-map.json` by default:
|
|
48
|
+
|
|
49
|
+
| Axis | Contrasting choices |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| 1. Layout archetype | Multi-column WBS direction tree (`grid` columns + vertical chains) vs. compact side-by-side status lists / foldable `readingTree` vs. 4-column semantic grid with grouped `areas` (`editorial-v4`, `c4-reference-v1`; `c4-modern-v2` opt-in only) |
|
|
52
|
+
| 2. Visual density | Compact single-line pills/rows (`badge` rollups + status tones) vs. slim annotated cards vs. structured multi-slot cards with Inspector deep-dives |
|
|
53
|
+
| 3. Detail depth on click | Short inline slot note on card + full template Markdown checklist (`--details-files`) vs. linked subtopic drill-downs (`topic.json` `links`) vs. foldable branch overview (`readingTree`) |
|
|
54
|
+
|
|
55
|
+
## Draft worker brief and budget
|
|
56
|
+
|
|
57
|
+
- Put each candidate in `TOPIC/drafts/VARIANT_SLUG/` with zero shared mutable files:
|
|
58
|
+
- `VARIANT_SLUG.mjs` (or `.puml` / `.map.json`) — authored generator/source (auto-bound to **Source** in Zed)
|
|
59
|
+
- `VARIANT_SLUG.locus-map.json` — built interactive map with descriptive `model.title` (never `draft.*`)
|
|
60
|
+
- `VARIANT_SLUG.png` — inspected render
|
|
61
|
+
- `materials/` — dummy Markdown slot contracts + `materials.json` (skipped by library scan)
|
|
62
|
+
- `builds/1/` — build output directory (skipped by library scan; avoids `OUTPUT_EXISTS`)
|
|
63
|
+
- Pass the shared Framing Packet (verbatim request, audience, `outputLanguage`, `Must show`,
|
|
64
|
+
`provided-facts`, `missing-or-unverified`), the assigned axes, and an anti-clone note.
|
|
65
|
+
- Keep drafts lean: 1–2 render passes, visible `DRAFT · CONCEPT` badge, and `[slot ← source]` / `[TBD]`
|
|
66
|
+
tags. Avoid angle-bracket tokens, which trigger Draw `INVALID_TEXT` and R5–R7 HTML-tag checks.
|
|
67
|
+
- Omit `citations.json`, `--record-for`, and move/save/reopen checks during drafting.
|
|
68
|
+
- Inspect every `VARIANT_SLUG.png` directly before presenting it.
|
|
69
|
+
|
|
70
|
+
## Evidence firewall
|
|
71
|
+
|
|
72
|
+
1. Never cite any file under `drafts/` or `archive/` inside `facts.md`, `citations.json`,
|
|
73
|
+
`sourceBindings`, or R4 `sources`, and never pass draft files or `chosen-direction.md` through
|
|
74
|
+
`--snapshot-documents` or final `--details-files`.
|
|
75
|
+
2. Never rename or copy a draft `.locus-map.json` into the topic root as a finished deliverable.
|
|
76
|
+
3. On `skills/locus-map-research/SKILL.md`, keep draft artifacts out of R1–R5 source investigation;
|
|
77
|
+
only R0 receives the verbatim request framing and R6 receives `chosen-direction.md`. In native
|
|
78
|
+
Pi runs (`locus-map-compact`), restrict draft layout guidance to `duties: ["authorBuild"]`.
|
|
@@ -15,8 +15,8 @@ Resolve product paths below from `productRoot` in `locus-map doctor --json`. Its
|
|
|
15
15
|
| Add a step, directed relation or note | Edit the Draw-authored `.puml` or the admitted schema-v1 `.map.json` input in the diagram folder. Draw owns source syntax and geometry. |
|
|
16
16
|
| Build a researched view | An author `.mjs` consumes the accepted packet projection. Use the research skill for source bindings and independent admission. |
|
|
17
17
|
| Open or save a canvas | A delivered `.locus-map.json` contains the model, views and scenes. Viewer Save preserves presentation edits. Update facts in the source and rebuild. |
|
|
18
|
-
| Link separate documents |
|
|
19
|
-
| Group project tabs | The user registry `~/.
|
|
18
|
+
| Link separate documents | Optional `topic.json` overlays links, ordering, and navigation on nested folders. Each file keeps its own model and save boundary. |
|
|
19
|
+
| Group project tabs | The user registry `~/.locus-map/projects.toml` names library folders. See `docs/VIEWER-LAUNCH.md`. |
|
|
20
20
|
| Select supported input and family | Read the product's `docs/capabilities.json`. It lists routes, profiles and limits. |
|
|
21
21
|
|
|
22
22
|
Use the library selected by the reader for delivery. The conventional project folder is `.locus-map/DIAGRAM/`.
|
|
@@ -35,17 +35,18 @@ Use [element fields and reading files](references/reading-files.md) to add a sho
|
|
|
35
35
|
- **Within one saved document.** Each view selects existing nodes and edges from one model. A `chain.links` entry names `fromViewId`, a node/edge `trigger` there and `toViewId`.
|
|
36
36
|
These links form an acyclic graph and target views. Return via the ancestor trail, sidebar or visit history.
|
|
37
37
|
The ordinary `build --source` creates one semantic view. Linked views of one model use an admitted author module or canonical integration (`docs/VIEW-CHAIN.md`).
|
|
38
|
-
- **Between saved documents.**
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
- **Between saved documents.** Place related subtopics directly under `.locus-map/TOPIC/SUBTOPIC/SUBTOPIC.locus-map.json`
|
|
39
|
+
(no `pages/` wrapper) and add an optional `.locus-map/TOPIC/topic.json` for `links`, `order`, `entry`, `models`, `sources`, or `navigation`.
|
|
40
|
+
Every `map` path in `topic.json` resolves relative to that folder. Bind one source `{map, view, trigger}` to one `{map, view}` with an optional `node`.
|
|
41
|
+
A trigger belongs to its source view. An internal link on that trigger takes precedence. See the [worked topic manifest](assets/batch/topic.json).
|
|
41
42
|
- **What a destination looks like.** A linked element can show ↘ on the canvas. Hover or focus it to see **Destination diagram** and the destination name.
|
|
42
|
-
A
|
|
43
|
+
A topic target names the document, view and optional card, omitting repeated titles. Click ↘ or the named Inspector action to open it.
|
|
43
44
|
- **Two ways back.** An authored ↘ on the child can point to one fixed parent card. The viewer's **Return to** remembers the actual source of the visit.
|
|
44
|
-
On direct entry it looks for a matching incoming link, preferring the
|
|
45
|
-
For this behavior
|
|
45
|
+
On direct entry it looks for a matching incoming link, preferring the enclosing topic entry as source for the same target. It can fall back to the topic entry.
|
|
46
|
+
For this behavior, keep parent and child in one topic folder, as in the example. A topic entry on a fresh visit has no parent to return to.
|
|
46
47
|
The viewer uses incoming links for this lookup. An outgoing reverse link on every content card is unnecessary.
|
|
47
|
-
- **
|
|
48
|
-
|
|
48
|
+
- **Topic contents.** Nested folders directly build **Contents**; see `docs/LOCAL-DOCUMENT.md` for `topic.json`
|
|
49
|
+
(`order`, `navigation`, `drafts/`) and `docs/VIEWER-LAUNCH.md` for launch and `:8181` reuse.
|
|
49
50
|
|
|
50
51
|
## Fold a branch on the canvas
|
|
51
52
|
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
The [batch importer](run-batch.mjs) calls the [filter](accept-batch.mjs) and stores eligible rows. Run `node validation/run-batch.mjs` from either generated project to reproduce the comparison. Read it alongside the [protocol](protocol.md) and [four-row comparison](results.html). The [PlantUML intake](intake.puml) and its [JavaScript equivalent](sources.mjs) tell the same story on one canvas. The optional second canvas expands its validation rules.
|
|
4
4
|
|
|
5
|
-
From a project with Map installed, run the [example builder](build.mjs). Use two new directories to compare the source formats. Each invocation retains the input, the build artifacts, the reading materials and the [
|
|
5
|
+
From a project with Map installed, run the [example builder](build.mjs). Use two new directories to compare the source formats. Each invocation retains the input, the build artifacts, the reading materials and the [topic manifest](topic.json).
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
BIN="$(pwd)/node_modules/.bin/locus-map"
|
|
9
9
|
EXAMPLE="$(node -p "require('node:path').join(require('node:path').dirname(require.resolve('@locus-forge/locus-map/primitives-skill')), 'assets/batch/build.mjs')")"
|
|
10
10
|
node "$EXAMPLE" plantuml batch-puml
|
|
11
11
|
node "$EXAMPLE" javascript batch-js
|
|
12
|
-
"$BIN" view
|
|
12
|
+
"$BIN" view batch-puml/.locus-map/batch --source-root batch-puml
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Open the printed address. Repeat with `batch-js` as both the project directory and original source root.
|
|
@@ -39,5 +39,5 @@ for (const source of [intake, rules]) {
|
|
|
39
39
|
const saved = source.id + '.locus-map.json';
|
|
40
40
|
await copyFile(join(build, saved), join(folder, saved));
|
|
41
41
|
}
|
|
42
|
-
await copy('
|
|
42
|
+
await copy('topic.json', join(maps, 'topic.json'));
|
|
43
43
|
console.log('Project ready at ' + project);
|
|
@@ -1,55 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"
|
|
3
|
+
"title": "Batch library",
|
|
4
4
|
"entry": {
|
|
5
|
-
"map": "intake",
|
|
5
|
+
"map": "intake/intake.locus-map.json",
|
|
6
6
|
"view": "intake"
|
|
7
7
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"id": "rules",
|
|
16
|
-
"modelId": "rules",
|
|
17
|
-
"path": "rules/rules.locus-map.json"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
8
|
+
"order": ["intake", "rules"],
|
|
9
|
+
"models": {
|
|
10
|
+
"intake/intake.locus-map.json": "intake",
|
|
11
|
+
"rules/rules.locus-map.json": "rules"
|
|
12
|
+
},
|
|
20
13
|
"links": [
|
|
21
14
|
{
|
|
22
15
|
"from": {
|
|
23
|
-
"map": "intake",
|
|
16
|
+
"map": "intake/intake.locus-map.json",
|
|
24
17
|
"view": "intake",
|
|
25
18
|
"trigger": "check"
|
|
26
19
|
},
|
|
27
20
|
"to": {
|
|
28
|
-
"map": "rules",
|
|
21
|
+
"map": "rules/rules.locus-map.json",
|
|
29
22
|
"view": "rules",
|
|
30
23
|
"node": "context"
|
|
31
24
|
}
|
|
32
25
|
},
|
|
33
26
|
{
|
|
34
27
|
"from": {
|
|
35
|
-
"map": "intake",
|
|
28
|
+
"map": "intake/intake.locus-map.json",
|
|
36
29
|
"view": "intake",
|
|
37
30
|
"trigger": "store"
|
|
38
31
|
},
|
|
39
32
|
"to": {
|
|
40
|
-
"map": "rules",
|
|
33
|
+
"map": "rules/rules.locus-map.json",
|
|
41
34
|
"view": "rules",
|
|
42
35
|
"node": "unique"
|
|
43
36
|
}
|
|
44
37
|
},
|
|
45
38
|
{
|
|
46
39
|
"from": {
|
|
47
|
-
"map": "rules",
|
|
40
|
+
"map": "rules/rules.locus-map.json",
|
|
48
41
|
"view": "rules",
|
|
49
42
|
"trigger": "context"
|
|
50
43
|
},
|
|
51
44
|
"to": {
|
|
52
|
-
"map": "intake",
|
|
45
|
+
"map": "intake/intake.locus-map.json",
|
|
53
46
|
"view": "intake",
|
|
54
47
|
"node": "check"
|
|
55
48
|
}
|
|
@@ -4,6 +4,60 @@ Run `locus-map doctor --json` and read `references/presentation-profiles.md` rel
|
|
|
4
4
|
returned `drawSkillPath` URL. Compare the Draw specimens, then follow the chooser to its
|
|
5
5
|
per-node appearance reference and icon catalog.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
## Select the profile by diagram role
|
|
8
|
+
|
|
9
|
+
| View purpose | Default profile | Opt-in / specialized alternative |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Standard C4 architecture (Context, Container, Component) | `c4-reference-v1` | `c4-modern-v2` only when colored modern C4 cards are explicitly chosen |
|
|
12
|
+
| Workflows, pipelines, roadmaps, grouped overviews | `editorial-v4` | `editorial-v2` for light compact cards |
|
|
13
|
+
| Canonical local task list (`locus-map build --tasks-dir`) | `task-card-v1` (single vertical column) | Simplified editorial profile for multi-column grouped task boards |
|
|
14
|
+
|
|
15
|
+
- Adhere strictly to canonical **`c4-reference-v1`** for standard C4 architecture overviews: use standard C4 roles and its built-in low-chroma palette (blue owned elements, cylinders for data stores, muted grey for external participants, dashed system boundaries) without ad-hoc pastel color overrides, decorative badges, or icon clutter. Use `c4-modern-v2` only when the user explicitly opts into colored modern C4 cards.
|
|
16
|
+
- Keep editorial boards **neutral by default**: reserve `accent` and `tone` (`negative`, `caution`, `positive`) for 1–3 high-signal cards, never as arbitrary decorative variety.
|
|
17
|
+
- On `editorial-v2` through `editorial-v4`, prefer `size: "extra-wide"` (420 units, PlantUML `$tags="extra-wide"`) for ordinary cards when titles wrap—especially in Russian or descriptive research views; on `c4-modern-v2` / `c4-reference-v1`, use `size: "wide"`. When parenthetical qualifiers would leave an awkward trailing orphan on a second title line, move them into `technology` (or `badge` on profiles that admit node appearance overrides; on canonical `c4-reference-v1`, shorten the title, use `technology` for a technology qualifier, or move detail to Inspector `details`), and check `TITLE_WRAP_WARNING` in `check.json`.
|
|
18
|
+
- On profiles that admit node appearance overrides (`editorial-v2`–`editorial-v4`, `c4-modern-v1`–`c4-modern-v2`; `c4-reference-v1` rejects node `iconId`, `shape`, `badge`, `tone`, and root `source.accent` with `PROFILE_KIND` and ignores PlantUML style overrides with `PLANTUML_STYLE_IGNORED`), set `iconId` only when it literally disambiguates sibling nodes of the same role, up to 3–5 explicit icons per view. Leave `iconId` unset to use the profile's default glyph otherwise.
|
|
19
|
+
|
|
20
|
+
## Minimalist 3-slot card anatomy
|
|
21
|
+
|
|
22
|
+
Keep cards clean and immediately scannable by matching the profile's actual slots without stacking decorative metadata:
|
|
23
|
+
|
|
24
|
+
1. **Standard C4 (`c4-reference-v1`)**: renders `«role»` stereotype above **`Title` (`label`)** → optional `[Technology]` → **Essence (`body`)** (plus claim status row only when non-current).
|
|
25
|
+
2. **Editorial & modern C4 (`editorial-v4`, `c4-modern-v2`) — minimalist 3-slot layout**:
|
|
26
|
+
- **Title (`label`)**: recognizable entity, action, or task name. On multi-column grouped task boards, put the task ID directly in `label` (for example, `T-264 · Markdown grounding corpus`), not buried in a footer slot.
|
|
27
|
+
- **One role/metadata line**: either `[Type: Technology]` (`c4-modern-v2`) or one concise editorial `technology` subline (module, code anchor, key type, or single status/progress value). Never stack `iconId` + `badge` + `[Type: Tech]` + uppercase `tag` + `body` + status on the same card.
|
|
28
|
+
- **Essence (`body`)**: 1–3 short lines explaining what the element does or delivers. Move longer detail, full file paths, and edge cases to `details` (Inspector).
|
|
29
|
+
3. **Canonical task list (`task-card-v1` via `--tasks-dir`)**: header metadata, complete title, description, and optional expected outcome.
|
|
30
|
+
|
|
31
|
+
### Workflow card slot pattern
|
|
32
|
+
|
|
33
|
+
For code-backed step-by-step workflow and pipeline diagrams on editorial profiles (preferring `editorial-v4`), use this validated 3-slot structure (authored in the language the user requested):
|
|
34
|
+
|
|
35
|
+
1. **Line 1 — Title (`label`)**: action-oriented step heading in the form `Step N · <action>` (for example, `Step 1 · Validate submission`, or localized `Шаг N · <действие>`).
|
|
36
|
+
2. **Line 2 — Code anchor (`technology`)**: compact code-location slot in the form `Code: :module → File :: fn()` (or localized `Код: :module → File :: fn()`; in `.puml`, trailing `fn()` emits a benign `TEXT_PREVIEW_DIFFERS` warning while Draw/Map preserves the text literally).
|
|
37
|
+
3. **Line 3+ — Details (`body`)**: 2–3 concise bullet lines using the **Unicode bullet `• ` (`\u2022 `)** (within the 240-character `body` limit; keep extended rationale and edge cases in Inspector `details`). Prefer `editorial-v4` (or set `size: "extra-wide"` / `$tags="extra-wide"` when bullets wrap), because standard-width `editorial-v2` and `editorial-v3` cap `body` at 3 rendered lines total and throw `CARD_TEXT_OVERFLOW` on a 4th wrapped line.
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
Step 1 · Validate submission
|
|
41
|
+
Code: :quiz-api → SubmitUseCase :: execute()
|
|
42
|
+
• Checks active attempt and deadline
|
|
43
|
+
• Rejects duplicate answers with 409
|
|
44
|
+
• Persists raw payload before scoring
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
> **Plain-text bullet rule (`MARKUP` guard):** Never start a line in `body` (or other plain-text fields such as `page.notes` and `page.footer`) with ASCII `- `, `+ `, `* `, or numbered `1. `. In `locus-draw`'s `MARKUP` regex (`src/source/diagramSource.ts`), leading list markers trigger markup rejection and fail validation with `INVALID_TEXT`. Always use Unicode `• ` (`\u2022 ` or literal `• ` in `.map.json` / `.mjs`; literal UTF-8 `• ` in `.puml`, where `\u` escapes fail with `TEXT_ESCAPE_UNSUPPORTED`) for inline bullet lines inside card descriptions/body slots; Markdown `- ` lists belong only in Inspector `details`.
|
|
48
|
+
|
|
49
|
+
## Restraint with tags, folded corners, and badges
|
|
50
|
+
|
|
51
|
+
- **Tags (`tag`)**: leave `tag` unset unless it carries a self-evident, uniform axis across cards (such as `STEP 1`, `STEP 2`). Avoid cryptic ALL-CAPS shorthand like `INPUT · TODAY` whose meaning cannot be inferred from the card.
|
|
52
|
+
- **Folded-corner document shape (`shape: "document"` / default `kind: "artifact"` styling)**: preserve source-backed semantics (`kind: "artifact"` stays `"artifact"` — never relabel an artifact as `kind: "component"` just to hide the corner). Instead, set `shape: "card"` on a profile that admits node appearance overrides, or choose a presentation that keeps a plain rectangular silhouette unless distinguishing physical documents/files from runtime components is load-bearing and explained in the legend and anatomy note.
|
|
53
|
+
- **Single status slot & badge discipline**: state status/priority/progress **once** — never duplicate the same state across `badge`, `technology`, and `tag` (for example, `planned · p1` + `Plan reviewed` + `PLAN READY`). In equal-width grids using `editorial-v4` or `c4-modern-v2`, avoid combining `badge` pills with varying title lengths: a badge stays inline next to short titles but drops onto a second line under slightly longer titles, breaking list rhythm.
|
|
54
|
+
|
|
55
|
+
## Add a card-anatomy reading guide
|
|
56
|
+
|
|
57
|
+
Whenever a diagram uses non-trivial editorial cards, structured workflow slots, custom accents/tones, shapes, or dashed/solid border rules, add a compact reading guide explaining **what each card slot, shape, fill, and border means** — a shape list in `page.legend` alone does not explain card slots:
|
|
58
|
+
|
|
59
|
+
- **Non-trivial workflow diagrams (recommended):** add a small left-side or top-left **card-anatomy breakdown** note/block (titled in the user's language, for example `Card anatomy (how to read slots)` or localized `Разбор карточки (как читать слоты)`) so readers immediately understand the slot structure (`Step title → Code anchor → • detail bullets`) without guessing. On non-`readingTree` canvases, place this `page.notes` item (`LM_Note`) using a Draw-supported anchor and `• ` (never `- `) bullets:
|
|
60
|
+
- **Grid layout (`layout.mode: "grid"`):** use an unoccupied left/top-left row cell via `page.notes[].cell: [row, column]` (PlantUML `LM_Note(id, text, $place="cell:<row>,<column>")`, for example `[0, 0]`) inside a column `0` that also contains at least one node in another row — a dedicated note-only column fails with `LAYOUT_COVERAGE`.
|
|
61
|
+
- **Automatic or explicit layout (`auto` / `explicit`):** `cell` fails with `GRID_CELL_CONFLICT`, unattached `page.notes` always render in the full-width bottom block, and native PlantUML `note left` / `note top` still place below the node with `NOTE_PLACED_BELOW`. Either anchor `below: "<leftmostNodeId>"` (`LM_Note(id, text, $place="below:<node>")`) under a left/top-left card, or use `page.footer` when the guide needs predictable bottom placement.
|
|
62
|
+
- Keep every `page.notes` block outside all area contours — or set `area` to its enclosing area — and check area clearance on the rendered specimen so it never triggers `AREA_NOTE_BOUNDARY`.
|
|
63
|
+
- **Foldable `readingTree` views and compact bottom guides:** put the 1–2 line reading guide in **`page.footer`** near `page.legend` (for example: `Card anatomy: Title → Code anchor / Status → • Details · Dashed border = proposed`). Never use `page.notes` (`role: 'note'`) on foldable `readingTree` views because it disables foldable reading-tree projection in the viewer.
|
|
@@ -18,4 +18,4 @@ Choose an existing document the reader can read from beginning to end. If the re
|
|
|
18
18
|
|
|
19
19
|
Select the node or arrow in View mode. Read any short author's note, followed immediately by the first assigned document. Review the final meaningful section in the Inspector. Additional materials open separately. Under the `productRoot` reported by `locus-map doctor --json`, see “Inspector reading order” in `docs/VIEWER.md`.
|
|
20
20
|
|
|
21
|
-
Markdown renders headings, lists, code and tables. The raw Markdown disclosure includes the leading YAML. Embedded HTML shows static text, headings, tables and figures within the import limits. For a long or interactive report, state what the static reader can show and provide the original path. See “Package reading files with the diagram” in `docs/DIAGRAM-SOURCE.md`
|
|
21
|
+
Markdown renders headings, lists, code and tables. The raw Markdown disclosure includes the leading YAML. Embedded HTML shows static text, headings, tables and figures within the import limits. You can also attach up to 16 canvas diagrams (`.locus-map.json`, `.excalidraw`, `.puml`, `.map.json`, or `.mjs` at depth 1), which render inline in the Inspector with full-screen pop-out editing and retain `sourcePaths` provenance when supplied. For a long or interactive report, state what the static reader can show and provide the original path. See “Package reading files with the diagram” in `docs/DIAGRAM-SOURCE.md` for limits, canvas source compilation rules, and supported image paths, and `docs/VIEWER.md` for inline preview and pop-out navigation behavior.
|
package/src/adapter/areas.js
CHANGED
|
@@ -23,6 +23,7 @@ const mapParts = (parts) =>
|
|
|
23
23
|
export const areaElementId = geometry.areaElementId;
|
|
24
24
|
export const areaGroupId = geometry.areaGroupId;
|
|
25
25
|
export const ROUTE_DETOUR_WARN_RATIO = geometry.ROUTE_DETOUR_WARN_RATIO;
|
|
26
|
+
export const ADJACENT_DETOUR_WARN_RATIO = geometry.ADJACENT_DETOUR_WARN_RATIO ?? 2.5;
|
|
26
27
|
export const areaGeometry = geometry.areaGeometry;
|
|
27
28
|
export const canonicalAutoAreaGeometries = (model, ...args) =>
|
|
28
29
|
geometry.canonicalAutoAreaGeometries(presentationInput(model), ...args);
|