@locus-forge/locus-map 0.2.2-dev.20261206.g5e970d2 → 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/dist/assets/{abnfDiagram-VCTEODGH-JiCO6vo-.js → abnfDiagram-VCTEODGH-YtlnkH6t.js} +1 -1
- package/dist/assets/{ar-SA-G6X2FPQ2-BdzEBmp3.js → ar-SA-G6X2FPQ2-BH5AlOAp.js} +1 -1
- package/dist/assets/{architectureDiagram-5GKGNRK7-D7T_vJwe.js → architectureDiagram-5GKGNRK7-DKYw7IM8.js} +1 -1
- package/dist/assets/{az-AZ-76LH7QW2-BQ_SoVB7.js → az-AZ-76LH7QW2-DoI4xcyq.js} +1 -1
- package/dist/assets/{bg-BG-XCXSNQG7-DlH1olUf.js → bg-BG-XCXSNQG7-CS9_2dp-.js} +1 -1
- package/dist/assets/{blockDiagram-I7D4REHJ-DPz0LEjY.js → blockDiagram-I7D4REHJ-FelDwD1I.js} +1 -1
- package/dist/assets/{bn-BD-2XOGV67Q-CFIZU06C.js → bn-BD-2XOGV67Q-CoIu5tTK.js} +1 -1
- package/dist/assets/{c4Diagram-7LVT6UL2-B6uCi0Ol.js → c4Diagram-7LVT6UL2-Bh7h9IHP.js} +1 -1
- package/dist/assets/{ca-ES-6MX7JW3Y-Bpe3kOti.js → ca-ES-6MX7JW3Y-DAEHzf3H.js} +1 -1
- package/dist/assets/channel-DXsl7ag_.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-DTWRWhpx.js → chunk-2Q5K7J3B-CgUOCDxa.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-Dfr1HUAN.js → chunk-5VM5RSS4-B97oha-s.js} +1 -1
- package/dist/assets/{chunk-F27PBJKO-D_IVoCIK.js → chunk-F27PBJKO-BQGqI2Ej.js} +1 -1
- package/dist/assets/{chunk-IMKFNOWR-Boa_chn8.js → chunk-IMKFNOWR-C_sOeFT_.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-RaK8jzc2.js → chunk-JWPE2WC7-DG5n2owX.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-D7xOpv6O.js → chunk-POPQ4Y6H-Y-h3THrr.js} +1 -1
- package/dist/assets/{chunk-SVP7TREG-XvJsx1jt.js → chunk-SVP7TREG-Dn6yBHtF.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-DZCVWmZG.js → chunk-TICWLB2K-Cb_yWOVI.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-Djk-REAy.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-D6XaIbtG.js → cose-bilkent-JH36ORCC-Bt7ZI9S1.js} +1 -1
- package/dist/assets/{cs-CZ-2BRQDIVT-BdzgSHdJ.js → cs-CZ-2BRQDIVT-BKZzkx2M.js} +1 -1
- package/dist/assets/{cynefin-OW5HDTMX-BMTkMDG1.js → cynefin-OW5HDTMX-n6-BmECj.js} +1 -1
- package/dist/assets/{cynefinDiagram-5FMLGOSQ-C2s5i9h9.js → cynefinDiagram-5FMLGOSQ-Bq2km1fZ.js} +1 -1
- package/dist/assets/{d3-scale-BMIMKl27.js → d3-scale-C9oJHYFk.js} +1 -1
- package/dist/assets/{da-DK-5WZEPLOC-Bj-GFWHU.js → da-DK-5WZEPLOC-DWJm1_Yl.js} +1 -1
- package/dist/assets/{dagre-GXQ25YYZ-CMT8wlz0.js → dagre-GXQ25YYZ-D9EJj_nK.js} +1 -1
- package/dist/assets/{de-DE-XR44H4JA-JmpondAB.js → de-DE-XR44H4JA-D-5dMJXD.js} +1 -1
- package/dist/assets/{diagram-S7CK7UJ4-DU1blS3M.js → diagram-S7CK7UJ4-DX3qZf_H.js} +1 -1
- package/dist/assets/{diagram-UQ7AKVKN-0lWi4KDV.js → diagram-UQ7AKVKN-lODsxrZ9.js} +1 -1
- package/dist/assets/{diagram-VSXAHHWV-CrseWrhn.js → diagram-VSXAHHWV-B48xz8Xq.js} +1 -1
- package/dist/assets/{diagram-VX7I27RA-C5BMS8Ql.js → diagram-VX7I27RA-Dms2AfBa.js} +1 -1
- package/dist/assets/{diagram-Z3DM3KII-Cc3vq6b8.js → diagram-Z3DM3KII-BnwZBeJA.js} +1 -1
- package/dist/assets/{ebnfDiagram-PWID7BFC-ZF78imma.js → ebnfDiagram-PWID7BFC-OtcCvaIU.js} +1 -1
- package/dist/assets/{el-GR-BZB4AONW-BFslUpdm.js → el-GR-BZB4AONW-BZVA3YVN.js} +1 -1
- package/dist/assets/{engines-BtEtIBXt.js → engines-DPbXorS1.js} +1 -1
- package/dist/assets/{erDiagram-RLTQ6QDP-CjPjDn2i.js → erDiagram-RLTQ6QDP-Cnh8Gn9f.js} +1 -1
- package/dist/assets/{es-ES-U4NZUMDT-B0ezBTxQ.js → es-ES-U4NZUMDT-DKJIfS-2.js} +1 -1
- package/dist/assets/{eu-ES-A7QVB2H4-DP_gx2kf.js → eu-ES-A7QVB2H4-LHCF7lHc.js} +1 -1
- package/dist/assets/{fa-IR-HGAKTJCU-BuT1ELty.js → fa-IR-HGAKTJCU-CMtLvHxY.js} +1 -1
- package/dist/assets/{fi-FI-Z5N7JZ37-BAu_Cj7n.js → fi-FI-Z5N7JZ37-CUIzm5UM.js} +1 -1
- package/dist/assets/{flowDiagram-HODETNUW-yqPGWNdd.js → flowDiagram-HODETNUW-lneiCvFi.js} +1 -1
- package/dist/assets/{fr-FR-RHASNOE6-OF1CpgtN.js → fr-FR-RHASNOE6-DTJ2WS73.js} +1 -1
- package/dist/assets/{ganttDiagram-EL5Y4UJY-zUY5je2K.js → ganttDiagram-EL5Y4UJY-B2aJ2MDb.js} +1 -1
- package/dist/assets/{gitGraphDiagram-WWUBYQGX-oWrs7wy0.js → gitGraphDiagram-WWUBYQGX-C74V3MFm.js} +1 -1
- package/dist/assets/{gl-ES-HMX3MZ6V-CkJ47l98.js → gl-ES-HMX3MZ6V-BP8M0fQQ.js} +1 -1
- package/dist/assets/{he-IL-6SHJWFNN-D7CecRlh.js → he-IL-6SHJWFNN-BMd-Q0PW.js} +1 -1
- package/dist/assets/{hi-IN-IWLTKZ5I-CGlW2X-h.js → hi-IN-IWLTKZ5I-Ct52OkX5.js} +1 -1
- package/dist/assets/{hu-HU-A5ZG7DT2-Dq_n_tbp.js → hu-HU-A5ZG7DT2-NfIL6Jfo.js} +1 -1
- package/dist/assets/{id-ID-SAP4L64H-CotwO_06.js → id-ID-SAP4L64H-Osl6P1wb.js} +1 -1
- package/dist/assets/{index-CdVc9Lmz.js → index-CyQSsku0.js} +181 -181
- package/dist/assets/{index-Cv-tTxNC.css → index-DR6sd54W.css} +1 -1
- package/dist/assets/{index-VaWCb9bx.js → index-VfiAlFSM.js} +5 -5
- package/dist/assets/{infoDiagram-27XIBGKW-CYzIkNFW.js → infoDiagram-27XIBGKW-BjDMKD-X.js} +1 -1
- package/dist/assets/{ishikawaDiagram-5VMMS53U-DkgUsuk5.js → ishikawaDiagram-5VMMS53U-DjrBmz8f.js} +1 -1
- package/dist/assets/{it-IT-JPQ66NNP-h97o81us.js → it-IT-JPQ66NNP-vT-EYZw5.js} +1 -1
- package/dist/assets/{ja-JP-DBVTYXUO-M6EVfh0o.js → ja-JP-DBVTYXUO-DexyPC4p.js} +1 -1
- package/dist/assets/{journeyDiagram-3NMN7TZE-CuKkNrJy.js → journeyDiagram-3NMN7TZE-Bs5RL4Ef.js} +1 -1
- package/dist/assets/{kaa-6HZHGXH3-DUy85zzz.js → kaa-6HZHGXH3-0BLUFlXY.js} +1 -1
- package/dist/assets/{kab-KAB-ZGHBKWFO-ChL-fKtk.js → kab-KAB-ZGHBKWFO-ByGN5_Fc.js} +1 -1
- package/dist/assets/{kanban-definition-UXKFOSKX-DkOxt3kf.js → kanban-definition-UXKFOSKX-DgcopnbA.js} +1 -1
- package/dist/assets/{kk-KZ-P5N5QNE5-DY6ucSGD.js → kk-KZ-P5N5QNE5-DlK-wQWu.js} +1 -1
- package/dist/assets/{km-KH-HSX4SM5Z-BAaS4014.js → km-KH-HSX4SM5Z-BZ75967_.js} +1 -1
- package/dist/assets/{ko-KR-MTYHY66A-D-r3mJ1R.js → ko-KR-MTYHY66A-C-copauZ.js} +1 -1
- package/dist/assets/{ku-TR-6OUDTVRD-Dk1GCoOP.js → ku-TR-6OUDTVRD-CNqY-Uj4.js} +1 -1
- package/dist/assets/{layout-DtNEGI4_.js → layout-B8D2HGrb.js} +1 -1
- package/dist/assets/{lt-LT-XHIRWOB4-3Z2Ui1VZ.js → lt-LT-XHIRWOB4-BopE_XJX.js} +1 -1
- package/dist/assets/{lv-LV-5QDEKY6T-Bg59rOkR.js → lv-LV-5QDEKY6T--7hU3JSZ.js} +1 -1
- package/dist/assets/{mindmap-definition-YA3MSWOX-Dcs8eV7p.js → mindmap-definition-YA3MSWOX-DYOVTEyE.js} +1 -1
- package/dist/assets/{mr-IN-CRQNXWMA-DepTOG29.js → mr-IN-CRQNXWMA-DydjVI2G.js} +1 -1
- package/dist/assets/{my-MM-5M5IBNSE-4KqL4Tav.js → my-MM-5M5IBNSE-D6ewM-EV.js} +1 -1
- package/dist/assets/{nb-NO-T6EIAALU-5YWO_l3W.js → nb-NO-T6EIAALU--iqOwj15.js} +1 -1
- package/dist/assets/{nl-NL-IS3SIHDZ-QlAndkM2.js → nl-NL-IS3SIHDZ-Bnhl_SmS.js} +1 -1
- package/dist/assets/{nn-NO-6E72VCQL-BscwhEDW.js → nn-NO-6E72VCQL-CIx7sLAQ.js} +1 -1
- package/dist/assets/{oc-FR-POXYY2M6-k7bYbSQj.js → oc-FR-POXYY2M6-DWt5a8Ow.js} +1 -1
- package/dist/assets/{pa-IN-N4M65BXN-jxBFwrWj.js → pa-IN-N4M65BXN-BW3LNure.js} +1 -1
- package/dist/assets/{pegDiagram-XKGWAZYB-zM-VZA3r.js → pegDiagram-XKGWAZYB-ixSY_9-e.js} +1 -1
- package/dist/assets/{pica-CsWQ4DPU.js → pica-Dn0N8xAP.js} +1 -1
- package/dist/assets/{pieDiagram-E7YTZNPT-C60FE0D8.js → pieDiagram-E7YTZNPT-BbCRV6Qi.js} +1 -1
- package/dist/assets/{pl-PL-T2D74RX3-be8atU_l.js → pl-PL-T2D74RX3-7nXJ8SiV.js} +1 -1
- package/dist/assets/{pt-BR-5N22H2LF-CSE0O2fj.js → pt-BR-5N22H2LF-DKGGof4J.js} +1 -1
- package/dist/assets/{pt-PT-UZXXM6DQ-5rnYJhy1.js → pt-PT-UZXXM6DQ-DCLEXuhk.js} +1 -1
- package/dist/assets/{quadrantDiagram-AXDQQJYC-DyH84hx6.js → quadrantDiagram-AXDQQJYC-Bvh_H4wg.js} +1 -1
- package/dist/assets/{railroadDiagram-O6MQD6OU-DCrJgP9s.js → railroadDiagram-O6MQD6OU-DHC3neQ8.js} +1 -1
- package/dist/assets/{requirementDiagram-BXWQKSXE-C78-QlFo.js → requirementDiagram-BXWQKSXE-DuCkl3u1.js} +1 -1
- package/dist/assets/{ro-RO-JPDTUUEW-Gh6EgC27.js → ro-RO-JPDTUUEW-Cwf4k3Ou.js} +1 -1
- package/dist/assets/{ru-RU-B4JR7IUQ-BUWESZhq.js → ru-RU-B4JR7IUQ-sZF6fySs.js} +1 -1
- package/dist/assets/{sankeyDiagram-P5KCCOFB-D_MOkKEs.js → sankeyDiagram-P5KCCOFB-1ELTqwtI.js} +1 -1
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-BeQbHZRB.js → sequenceDiagram-WJ2MYXX4-BK8Ou8Dz.js} +1 -1
- package/dist/assets/{si-LK-N5RQ5JYF-C9pnvQMf.js → si-LK-N5RQ5JYF-DmYhXIqO.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-DUn-Mus_.js → sizeCapture-INFHLROL-BKwx3lxX.js} +1 -1
- package/dist/assets/{sk-SK-C5VTKIMK-FnkPBibb.js → sk-SK-C5VTKIMK-BRLu35YX.js} +1 -1
- package/dist/assets/{sl-SI-NN7IZMDC-Cwrqj_B9.js → sl-SI-NN7IZMDC-CMjfvJTr.js} +1 -1
- package/dist/assets/{stateDiagram-D77RDMKH-C3EF3jQ3.js → stateDiagram-D77RDMKH-CDwJ9XLN.js} +1 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-BZjKARGY.js +1 -0
- package/dist/assets/{subset-shared.chunk-8ifLcT_D.js → subset-shared.chunk-DngAvf0H.js} +1 -1
- package/dist/assets/{subset-worker.chunk-DrNTybDR.js → subset-worker.chunk-DkH_mqr5.js} +1 -1
- package/dist/assets/{sv-SE-XGPEYMSR-Btz80pGx.js → sv-SE-XGPEYMSR-G4S06sbd.js} +1 -1
- package/dist/assets/{swimlanes-42K2YHIH-B2_kGhPA.js → swimlanes-42K2YHIH-Z9u8PDi-.js} +1 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-D0kM5xmS.js +8 -0
- package/dist/assets/{ta-IN-2NMHFXQM-B0bWtgu1.js → ta-IN-2NMHFXQM-DgBbCQ8S.js} +1 -1
- package/dist/assets/{th-TH-HPSO5L25-DgC0yFw3.js → th-TH-HPSO5L25-o9u4fVfq.js} +1 -1
- package/dist/assets/{timeline-definition-24CTP7MA-Bu0W3Mcy.js → timeline-definition-24CTP7MA-BNgrm1r_.js} +1 -1
- package/dist/assets/{tr-TR-DEFEU3FU-C9Mmy6ri.js → tr-TR-DEFEU3FU-BqqSdzoL.js} +1 -1
- package/dist/assets/{uk-UA-QMV73CPH-rxEnqB_i.js → uk-UA-QMV73CPH-Dna46aia.js} +1 -1
- package/dist/assets/{vennDiagram-4TSXK5OY-63JTeOph.js → vennDiagram-4TSXK5OY-CHwUI40M.js} +1 -1
- package/dist/assets/{vi-VN-M7AON7JQ-DOVa-vAT.js → vi-VN-M7AON7JQ-CbKRBQPB.js} +1 -1
- package/dist/assets/{wardleyDiagram-VM6X3IG4-Bct0TRuC.js → wardleyDiagram-VM6X3IG4-KB0xBjXX.js} +1 -1
- package/dist/assets/{xychartDiagram-S5SC5T6Z-C21zgvSM.js → xychartDiagram-S5SC5T6Z-B3LOQLL-.js} +1 -1
- package/dist/assets/{zh-CN-LNUGB5OW-MyifsmQ8.js → zh-CN-LNUGB5OW-BFjA6n_2.js} +1 -1
- package/dist/assets/{zh-HK-E62DVLB3-Cp55UViv.js → zh-HK-E62DVLB3-BoTU6iS7.js} +1 -1
- package/dist/assets/{zh-TW-RAJ6MFWO-DMy6SZap.js → zh-TW-RAJ6MFWO-DB4kdpOS.js} +1 -1
- package/dist/index.html +2 -2
- package/docs/LOCAL-DOCUMENT.md +36 -83
- package/docs/VIEWER-LAUNCH.md +24 -27
- 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/package.json +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 +148 -20
- package/scripts/lib/project-catalog.mjs +250 -95
- package/scripts/lib/project-registry.mjs +151 -47
- package/scripts/lib/view-args.mjs +25 -45
- package/scripts/locus-map.mjs +12 -11
- package/scripts/open-map.mjs +18 -8
- package/skills/locus-map/SKILL.md +6 -4
- package/skills/locus-map/references/checks.md +1 -1
- package/skills/locus-map/references/component-checkpoint.md +4 -4
- package/skills/locus-map/references/folder.md +2 -2
- package/skills/locus-map/references/selection.md +2 -2
- package/skills/locus-map/references/visual-composition.md +20 -20
- package/skills/locus-map-draft/SKILL.md +76 -76
- package/skills/locus-map-draft/references/divergence-and-formats.md +58 -107
- package/skills/locus-map-primitives/SKILL.md +11 -14
- 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/src/bundle/projectClient.js +5 -3
- package/src/main.jsx +25 -1
- package/src/viewer/ControlIcon.jsx +2 -0
- package/src/viewer/ProjectLocation.jsx +25 -7
- package/src/viewer/ProjectRail.jsx +9 -2
- package/src/viewer/ProjectViewChainViewer.jsx +35 -16
- package/src/viewer/SketchCanvas.jsx +124 -15
- package/src/viewer/ViewChainViewer.jsx +14 -5
- package/src/viewer/ViewerSettings.jsx +208 -0
- package/src/viewer/projectContents.js +248 -55
- package/src/viewer/projectNavigation.js +27 -3
- package/src/viewer/viewChain.css +52 -1
- package/dist/assets/channel-DB3atv5o.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-CzvsXoj_.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY-HxwJpdPt.js +0 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CVQHmIvK.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-C1rOmrkT.js +0 -8
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# Choose the visual structure for Locus Map
|
|
2
2
|
|
|
3
|
-
Locus Map (`locus-map view`) opens both
|
|
4
|
-
freeform analytical boards, timelines, and any of the 53
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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`.
|
|
8
11
|
|
|
9
12
|
## Step 0: route by reader need before `selection.md`
|
|
10
13
|
|
|
@@ -13,9 +16,9 @@ Choose the structure and deliverable before entering [selection](selection.md) o
|
|
|
13
16
|
|
|
14
17
|
| What the reader needs | Where to start | Delivered format in Locus Map |
|
|
15
18
|
| --- | --- | --- |
|
|
16
|
-
| Open-ended topic, competing layouts, or early feedback before full work | `skills/locus-map-draft/SKILL.md` | 1–
|
|
17
|
-
| Quantitative charts, matrices, timelines, freeform
|
|
18
|
-
| Connected map with clickable Inspector cards, `--details-files` Markdown/LaTeX/HTML, `readingTree` / `readingTable`, or `
|
|
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"`) |
|
|
19
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) |
|
|
20
23
|
| Local project task tracking | [Author a project task map](task-maps.md) | `<map>.locus-map.json` (`--tasks-dir`) |
|
|
21
24
|
|
|
@@ -25,11 +28,11 @@ Pick the visual lens from the reader's question rather than defaulting to boxes
|
|
|
25
28
|
|
|
26
29
|
| Reader's question | Archetype and first screen | Primary tooling |
|
|
27
30
|
| --- | --- | --- |
|
|
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` |
|
|
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 |
|
|
29
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` |
|
|
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 |
|
|
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) |
|
|
31
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` |
|
|
32
|
-
| Where should each audience start and drill down? | **Topic navigator**: foldable `readingTree`, docked `readingTable`, or `
|
|
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` |
|
|
33
36
|
|
|
34
37
|
One topic folder (for example, an ML experiment) may combine both formats side-by-side: a semantic
|
|
35
38
|
`experiment.locus-map.json` for methodology and Inspector reports alongside a `metrics.excalidraw`
|
|
@@ -54,16 +57,13 @@ chart board in **Contents**.
|
|
|
54
57
|
[deliverable updates](folder.md#updates): if an existing `<topic>.excalidraw` differs from the
|
|
55
58
|
last published build (for example, after **Save drawing** edits) or its origin is unknown, keep
|
|
56
59
|
the rebuilt file as a candidate in `artifacts/` until the user chooses which version to keep.
|
|
57
|
-
6. View the delivered board in **Contents
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
port `8181` is already in use, launch with a temporary `LOCUS_MAP_PROJECTS_FILE` and `--port 0`
|
|
61
|
-
(`docs/VIEWER-LAUNCH.md`).
|
|
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).
|
|
62
63
|
|
|
63
64
|
## Current viewer boundaries
|
|
64
65
|
|
|
65
|
-
- `.excalidraw` boards open
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
standalone `.excalidraw` files (`docs/VIEWER-LAUNCH.md`).
|
|
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
69
|
- Never claim a Draw board or a `--source` draft map has R7-verified source claims.
|
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: locus-map-draft
|
|
3
|
-
description: "Formalizes an open-ended visual request, builds 1–
|
|
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
4
|
---
|
|
5
5
|
|
|
6
6
|
# locus-map-draft
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Agree on visual structure and field provenance in Locus Map before full research or delivery.
|
|
9
9
|
Use `locus-map` (`MAP_BIN`), `npx @locus-forge/locus-map`, or checkout `scripts/locus-map.mjs`.
|
|
10
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–
|
|
12
|
-
in parallel; otherwise author
|
|
13
|
-
[divergence axes and
|
|
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`.
|
|
14
18
|
|
|
15
19
|
## 0. Decide whether drafting helps
|
|
16
20
|
|
|
17
|
-
Skip drafting when
|
|
21
|
+
Skip drafting when layout and visual form are already fixed: route directly to
|
|
18
22
|
`skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`.
|
|
19
|
-
Use `locus-map-draft` when the
|
|
20
|
-
|
|
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.
|
|
21
25
|
|
|
22
|
-
## 1. Formalize the
|
|
26
|
+
## 1. Formalize framing without scanning the full repo
|
|
23
27
|
|
|
24
28
|
Record the verbatim request, `reader-question`, `audience`, `outputLanguage`, `Must show`, known
|
|
25
|
-
`provided-facts`, and
|
|
29
|
+
`provided-facts`, and template slots (`missing-or-unverified`) in
|
|
26
30
|
`TARGET_PROJECT/.locus-map/TOPIC/artifacts/drafts/SESSION_ID/session.md` (or
|
|
27
|
-
`~/.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## 3. Author
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Preview
|
|
66
|
-
`docs/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Collect feedback on which variant or specific components to keep, drop, or combine.
|
|
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.
|
|
75
78
|
|
|
76
79
|
## 5. Lock the visual reference and route onward
|
|
77
80
|
|
|
78
|
-
Save the
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
- **
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
verbatim framing into R0; withhold draft layouts from R1–R5 to avoid confirmation bias; supply
|
|
94
|
-
`chosen-direction.md` at R6 (or only `duties: ["authorBuild"]` in Pi). If real sources contradict
|
|
95
|
-
the draft layout, sources prevail and return the conflict to the user.
|
|
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"]`).
|
|
@@ -1,127 +1,78 @@
|
|
|
1
|
-
# Divergence axes
|
|
1
|
+
# Divergence axes and dummy templates
|
|
2
2
|
|
|
3
|
-
Use this reference during `locus-map-draft` to pick the right number of
|
|
4
|
-
|
|
5
|
-
|
|
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
6
|
|
|
7
|
-
|
|
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)
|
|
8
14
|
|
|
9
15
|
| Count | When to use | Typical scenario |
|
|
10
16
|
| --- | --- | --- |
|
|
11
|
-
| `0` (skip) |
|
|
12
|
-
| `1` |
|
|
13
|
-
| `2` |
|
|
14
|
-
| `3` (default) | Open
|
|
15
|
-
| `4` (max) |
|
|
16
|
-
|
|
17
|
-
**Single-agent fallback:** when subagents are unavailable or disallowed,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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:
|
|
27
48
|
|
|
28
49
|
| Axis | Contrasting choices |
|
|
29
50
|
| --- | --- |
|
|
30
|
-
| 1.
|
|
31
|
-
| 2. Visual
|
|
32
|
-
| 3.
|
|
33
|
-
| 4. Delivery surface & route | Self-contained `.excalidraw` visual via Draw (`locus-map`) vs. clickable `.locus-map.json` with Inspector reading materials vs. R0–R7 verified map (`locus-map-research`) |
|
|
34
|
-
|
|
35
|
-
### Worked example: four variants for an ML experiment
|
|
36
|
-
|
|
37
|
-
1. **Experiment discussion board** (`draft.mjs` → `.excalidraw`): left column holds hypothesis and
|
|
38
|
-
success criteria; center shows slice behavior and anonymized error examples; right side frames
|
|
39
|
-
competing explanations and next checks.
|
|
40
|
-
2. **Methodology verification map** (`draft.puml` / `draft.map.json` → `.locus-map.json`,
|
|
41
|
-
`editorial-v4`): shows split → threshold tuning → evaluation with an explicit caveat on canvas,
|
|
42
|
-
attaching LaTeX formulas, split dates, PNG figures, and static HTML reports in Inspector via
|
|
43
|
-
`--details-files`.
|
|
44
|
-
3. **Metrics comparison canvas** (`draft.mjs` or `draft.puml` → `.excalidraw`): pairs headline
|
|
45
|
-
deltas with a weekly trend and a slice `heatmap` or additive `waterfall`, composed with Draw and
|
|
46
|
-
`embedSvg`.
|
|
47
|
-
4. **Topic index** (`draft.map.json` / `project.json` preview): splits overview from per-topic
|
|
48
|
-
detail views when stakeholders revisit data, thresholds, and error slices independently.
|
|
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`) |
|
|
49
54
|
|
|
50
55
|
## Draft worker brief and budget
|
|
51
56
|
|
|
52
|
-
- Put each
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
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`)
|
|
57
63
|
- Pass the shared Framing Packet (verbatim request, audience, `outputLanguage`, `Must show`,
|
|
58
|
-
`provided-facts`, `missing-or-unverified`), the assigned
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- Inspect every `draft.png` directly before presenting it. If 1 of the N workers fails to render,
|
|
64
|
-
present the completed drafts and report the failed concept separately rather than blocking.
|
|
65
|
-
|
|
66
|
-
## Format selection: Draw vs lightweight Map source
|
|
67
|
-
|
|
68
|
-
- **Draw (`draft.mjs` or `draft.puml`) → `draft.excalidraw` + `draft.png`**: resolve
|
|
69
|
-
`@locus-forge/locus-draw/skill` via `drawSkillPath` from `"$MAP_BIN" doctor --json`. Read its
|
|
70
|
-
`references/diagram-types.md`, `references/javascript-authoring.md`, and
|
|
71
|
-
`references/javascript-layout.md`. Draw splits its 53 catalog categories across JS API
|
|
72
|
-
(`heatmap`, `waterfall`, `radar`, `sankey`, custom `Scene` + `nodeCard` + `embedSvg`) and
|
|
73
|
-
PlantUML transfer (`bar`, `line`, `scatter`, `quadrant`, `timeline`, `story-map`, etc.); follow
|
|
74
|
-
the chosen catalog row's actual authoring language. Export into `vN-SLUG/builds/1/` and copy
|
|
75
|
-
`scene.excalidraw` and `scene.png` to `vN-SLUG/draft.excalidraw` and `vN-SLUG/draft.png`.
|
|
76
|
-
- **Lightweight Map source (`"$MAP_BIN" build --source`) → `draft.locus-map.json` + `draft.png`**:
|
|
77
|
-
produces a `semantic` card graph (`draft`, `claims: "unverified"`). Use `draft.puml` for standard
|
|
78
|
-
cards, or schema-v1 `draft.map.json` when JSON-only features such as `readingTree` or
|
|
79
|
-
`readingTable` (`docs/DIAGRAM-SOURCE.md`) are central. Build into `vN-SLUG/builds/1/`, then copy
|
|
80
|
-
the bundle and PNG to `vN-SLUG/draft.locus-map.json` and `vN-SLUG/draft.png`. Omit
|
|
81
|
-
`citations.json`, `--record-for`, and viewer move/save/reopen checks during drafting.
|
|
82
|
-
- **Current workspace limits (`docs/LOCAL-DOCUMENT.md`, `docs/VIEWER-LAUNCH.md`)**: `.excalidraw`
|
|
83
|
-
sketches edit and save natively in workspace mode, but have no Inspector panel and cannot serve
|
|
84
|
-
as `project.json` `↘` targets yet. Do not prototype a `sequence` or `component` research map
|
|
85
|
-
with `build --source`; sketch its structure in Draw and note that full Inspector support uses
|
|
86
|
-
`skills/locus-map-research/SKILL.md`.
|
|
87
|
-
|
|
88
|
-
## Preview drafts in Locus Map
|
|
89
|
-
|
|
90
|
-
Drafts under `artifacts/drafts/SESSION_ID/` are automatically excluded from normal library scans
|
|
91
|
-
because `artifacts/` is skipped (`docs/LOCAL-DOCUMENT.md`). To let the user inspect, pan, and
|
|
92
|
-
move components across both `.excalidraw` and `.locus-map.json` drafts in one viewer window without
|
|
93
|
-
touching `~/.locusmap/projects.toml` or port `8181`, write a hidden `.viewer.toml` inside the
|
|
94
|
-
session folder:
|
|
95
|
-
|
|
96
|
-
```toml
|
|
97
|
-
[[projects]]
|
|
98
|
-
name = "Drafts: TOPIC"
|
|
99
|
-
folder = "."
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Launch with:
|
|
103
|
-
|
|
104
|
-
```sh
|
|
105
|
-
LOCUS_MAP_PROJECTS_FILE=DIR/artifacts/drafts/SESSION_ID/.viewer.toml \
|
|
106
|
-
"$MAP_BIN" view --port 0
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
Because workspace registry mode enables sketch discovery alongside `.locus-map.json` bundles
|
|
110
|
-
(`docs/VIEWER-LAUNCH.md`) while skipping `builds/` subfolders, every `vN-SLUG/draft.*` appears once
|
|
111
|
-
in **Contents**. When a user edits a draft in the viewer:
|
|
112
|
-
|
|
113
|
-
- For a `.excalidraw` sketch, they click **Save drawing**; read back `vN-SLUG/draft.excalidraw` as
|
|
114
|
-
layout guidance for the final build.
|
|
115
|
-
- For a `.locus-map.json` draft, they click **Save chain file**; read back
|
|
116
|
-
`vN-SLUG/draft.locus-map.json` as layout guidance for the final build.
|
|
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.
|
|
117
69
|
|
|
118
70
|
## Evidence firewall
|
|
119
71
|
|
|
120
|
-
1. Never cite any
|
|
72
|
+
1. Never cite any file under `drafts/` or `archive/` inside `facts.md`, `citations.json`,
|
|
121
73
|
`sourceBindings`, or R4 `sources`, and never pass draft files or `chosen-direction.md` through
|
|
122
74
|
`--snapshot-documents` or final `--details-files`.
|
|
123
75
|
2. Never rename or copy a draft `.locus-map.json` into the topic root as a finished deliverable.
|
|
124
76
|
3. On `skills/locus-map-research/SKILL.md`, keep draft artifacts out of R1–R5 source investigation;
|
|
125
77
|
only R0 receives the verbatim request framing and R6 receives `chosen-direction.md`. In native
|
|
126
|
-
Pi runs (`locus-map-compact`), restrict
|
|
127
|
-
so `researchAuthor` stays unbiased.
|
|
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,21 +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
|
-
|
|
49
|
-
the viewer renders card anchors smaller and muted so they stay distinct from page destinations. Expanding a group shows its children in the sidebar.
|
|
50
|
-
Use `locus-map view TOPIC` (or `locus-map view --project [TOPIC|FILE]`, or `npx @locus-forge/locus-map view ...`)
|
|
51
|
-
from the project root; `--source-root` defaults automatically under `.locus-map/`.
|
|
52
|
-
See `docs/LOCAL-DOCUMENT.md` and `docs/VIEWER-LAUNCH.md` for discovery and launch modes.
|
|
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.
|
|
53
50
|
|
|
54
51
|
## Fold a branch on the canvas
|
|
55
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
|
}
|