spatial-views 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/README.md +201 -19
  2. package/dist/app/assets/{abnfDiagram-S7VZAUFO-BVgtb0Hw.js → abnfDiagram-S7VZAUFO-CFbb_Sz2.js} +1 -1
  3. package/dist/app/assets/{architecture-WOLXFQ4H-DxylGHqT.js → architecture-WOLXFQ4H-CsBD__5a.js} +1 -1
  4. package/dist/app/assets/architectureDiagram-YGSQEFNW-C0ic4ib1.js +36 -0
  5. package/dist/app/assets/{blockDiagram-APKKGZFW-C7fb3MCE.js → blockDiagram-APKKGZFW-BZDPbzAG.js} +1 -1
  6. package/dist/app/assets/{c4Diagram-KJ2TOQU5-Bkb_0fbd.js → c4Diagram-KJ2TOQU5-BilBWuq5.js} +1 -1
  7. package/dist/app/assets/{chunk-6MUBBAK2-DU4vZ03M.js → chunk-6MUBBAK2-BBl-4tQr.js} +1 -1
  8. package/dist/app/assets/{chunk-AXFCVDMN-De96BVTB.js → chunk-AXFCVDMN-BhsttQ-k.js} +1 -1
  9. package/dist/app/assets/{chunk-BG4553SI-J33jsRLV.js → chunk-BG4553SI-mWcPcFZr.js} +2 -2
  10. package/dist/app/assets/{chunk-DQASFODM-Bh85SSGO.js → chunk-DQASFODM-7FKe2gLt.js} +1 -1
  11. package/dist/app/assets/{chunk-HFQBQIA3-CCklgplR.js → chunk-HFQBQIA3-nXrQ08BL.js} +1 -1
  12. package/dist/app/assets/{chunk-KQLB2F66-B04qR8ED.js → chunk-KQLB2F66-swukhFmZ.js} +1 -1
  13. package/dist/app/assets/{chunk-KS47KZWR-BsqDyyAt.js → chunk-KS47KZWR-DkDkwO82.js} +1 -1
  14. package/dist/app/assets/{chunk-LEVMRMFU-DwxrBz2u.js → chunk-LEVMRMFU-DXH6iXv3.js} +1 -1
  15. package/dist/app/assets/{chunk-M57EVK23-D9YIHjps.js → chunk-M57EVK23-B-kEyOJF.js} +1 -1
  16. package/dist/app/assets/{chunk-OY52VR5R-WB63DeTA.js → chunk-OY52VR5R-DweG7qYw.js} +1 -1
  17. package/dist/app/assets/{chunk-QB3YPZ4I-cHzzKdtb.js → chunk-QB3YPZ4I-DyozK3lV.js} +1 -1
  18. package/dist/app/assets/{chunk-R3KSYZAL-C7rDagaa.js → chunk-R3KSYZAL-BEXCUN6J.js} +1 -1
  19. package/dist/app/assets/{chunk-STOXU5M4-CG6pnJtH.js → chunk-STOXU5M4-BaTlty4O.js} +1 -1
  20. package/dist/app/assets/{chunk-TU62E6Q5-BbcGYfy_.js → chunk-TU62E6Q5-_rcUP1Fh.js} +1 -1
  21. package/dist/app/assets/chunk-X3CZISLH-NOpCnvgE.js +1 -0
  22. package/dist/app/assets/{chunk-X4PVCEUW-BUI1Oi3q.js → chunk-X4PVCEUW-DGxTL3kB.js} +1 -1
  23. package/dist/app/assets/{chunk-XXDRQBXY-DYhK5YW-.js → chunk-XXDRQBXY-C02Gpej2.js} +1 -1
  24. package/dist/app/assets/{classDiagram-v2-L25IHNXF-K-k5GTUn.js → classDiagram-v2-L25IHNXF-DLEBwpvk.js} +1 -1
  25. package/dist/app/assets/cose-bilkent-JH36ORCC-kNCXOm8k.js +1 -0
  26. package/dist/app/assets/cynefin-EF2NZ3EQ-6MWNLbuF.js +1 -0
  27. package/dist/app/assets/{cynefinDiagram-L36ESFBY-mkV33_Xx.js → cynefinDiagram-L36ESFBY-CLFstukD.js} +1 -1
  28. package/dist/app/assets/{d3-scale-ygdFCUH8.js → d3-scale-CaJQQYkF.js} +1 -1
  29. package/dist/app/assets/{dagre-SPEB5RXH-BNIymLsu.js → dagre-SPEB5RXH-BaSAny1T.js} +1 -1
  30. package/dist/app/assets/{diagram-3B7GL73J-CGOiolFW.js → diagram-3B7GL73J-DJNlt5Sg.js} +1 -1
  31. package/dist/app/assets/{diagram-DNEMPZML-DZFkHNly.js → diagram-DNEMPZML-DEHeuILB.js} +1 -1
  32. package/dist/app/assets/{diagram-L3MUGCDN-B42GAYLq.js → diagram-L3MUGCDN-ob5Ka2Xc.js} +1 -1
  33. package/dist/app/assets/{diagram-LA4NIPWU-BYuLRYId.js → diagram-LA4NIPWU-DNESzFAc.js} +1 -1
  34. package/dist/app/assets/{diagram-MHCOC4E2-DGzI6TJG.js → diagram-MHCOC4E2-CVi9zKjG.js} +1 -1
  35. package/dist/app/assets/{diagram-XPFHEONP-CTBEgDQ8.js → diagram-XPFHEONP-DInT4C7e.js} +1 -1
  36. package/dist/app/assets/dist-CjvHN74u.js +1 -0
  37. package/dist/app/assets/{ebnfDiagram-UZSYDL2S-GuMdOCvL.js → ebnfDiagram-UZSYDL2S-CRCZNsji.js} +1 -1
  38. package/dist/app/assets/{elk-XV6XMXQE-BpY3loT5.js → elk-XV6XMXQE-D4fsWI2l.js} +1 -1
  39. package/dist/app/assets/{erDiagram-EYBAPDEH-nDZ2PMGl.js → erDiagram-EYBAPDEH-YQNM5StV.js} +1 -1
  40. package/dist/app/assets/{eventmodeling-K75KTNOO-BN42Mgwh.js → eventmodeling-K75KTNOO-Bev08J2F.js} +1 -1
  41. package/dist/app/assets/flowDiagram-MALGAFMO-BhJ554DH.js +1 -0
  42. package/dist/app/assets/ganttDiagram-23REXITY-CkaBMYM4.js +292 -0
  43. package/dist/app/assets/gitGraph-VSP46ZUC-CtbZ0sIS.js +1 -0
  44. package/dist/app/assets/{gitGraphDiagram-STJD7YCW-CDkKLrvO.js → gitGraphDiagram-STJD7YCW-D15ZdQ-Z.js} +1 -1
  45. package/dist/app/assets/index-Bn6_wHEp.js +98 -0
  46. package/dist/app/assets/index-H-Z7MFhZ.css +1 -0
  47. package/dist/app/assets/info-OHQRW6UA-CfUW1XFR.js +1 -0
  48. package/dist/app/assets/{infoDiagram-KBXO4MBG-B92P8pjY.js → infoDiagram-KBXO4MBG-DT7LbBRQ.js} +1 -1
  49. package/dist/app/assets/{ishikawaDiagram-M35NCXHK-BRZsbCvK.js → ishikawaDiagram-M35NCXHK-CF51lhjB.js} +1 -1
  50. package/dist/app/assets/{journeyDiagram-OPLOXDXO-Bppwb1oF.js → journeyDiagram-OPLOXDXO-_36FonKk.js} +1 -1
  51. package/dist/app/assets/{kanban-definition-BZKZHSQY-ByD_x5cm.js → kanban-definition-BZKZHSQY-tLk_OlQ-.js} +1 -1
  52. package/dist/app/assets/{mermaid-parser.core-CKmnV0Md.js → mermaid-parser.core-_3Vo8x6b.js} +3 -3
  53. package/dist/app/assets/mermaid.core-y-x1CYxC.js +44 -0
  54. package/dist/app/assets/{mindmap-definition-I2QAS2VK-fRbUh23C.js → mindmap-definition-I2QAS2VK-BCI4HRX3.js} +1 -1
  55. package/dist/app/assets/packet-JDAUHWVQ-Cco3UoaI.js +1 -0
  56. package/dist/app/assets/{pegDiagram-FD4XPPHP-qIABf6H8.js → pegDiagram-FD4XPPHP-BOzSoNji.js} +1 -1
  57. package/dist/app/assets/pie-XZMESJXO-reOB2GXn.js +1 -0
  58. package/dist/app/assets/{pieDiagram-J4AKIIQI-Bb4RBdrc.js → pieDiagram-J4AKIIQI-PlHpwT_c.js} +1 -1
  59. package/dist/app/assets/{quadrantDiagram-XTYBLID2-B0CpcVWE.js → quadrantDiagram-XTYBLID2-CdxZ0ael.js} +1 -1
  60. package/dist/app/assets/radar-ABXABTNO-DfCl8uV2.js +1 -0
  61. package/dist/app/assets/railroad-I3PHUGI6-4s14UyW1.js +1 -0
  62. package/dist/app/assets/{railroad-abnf-LNEFI6M7-BUhw7Iuo.js → railroad-abnf-LNEFI6M7-C49jJE4Y.js} +1 -1
  63. package/dist/app/assets/{railroad-ebnf-DWYD2UWJ-nQNF56LJ.js → railroad-ebnf-DWYD2UWJ-Bx-pcPc7.js} +1 -1
  64. package/dist/app/assets/{railroad-peg-JR7BVNR7-CwvbVIo6.js → railroad-peg-JR7BVNR7-DjBPSCKV.js} +1 -1
  65. package/dist/app/assets/{railroadDiagram-MRQ6NCDL-Dwr-mPZL.js → railroadDiagram-MRQ6NCDL-wGcmIMqq.js} +1 -1
  66. package/dist/app/assets/{requirementDiagram-Y7LWUY3S-Ctv2DKJM.js → requirementDiagram-Y7LWUY3S-DprFI03z.js} +1 -1
  67. package/dist/app/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  68. package/dist/app/assets/{sankeyDiagram-WGJFYUXA-BvKX0eIe.js → sankeyDiagram-WGJFYUXA-DygYWLTR.js} +1 -1
  69. package/dist/app/assets/{sequenceDiagram-5NDRBG5M-Y4YqU2Xt.js → sequenceDiagram-5NDRBG5M-BzIr2DBO.js} +1 -1
  70. package/dist/app/assets/{stateDiagram-v2-FJ4FJNEA-DmjIjn4u.js → stateDiagram-v2-FJ4FJNEA-MGCqKnm_.js} +1 -1
  71. package/dist/app/assets/{swimlanes-UMQ2AFYF-B2O5JCjs.js → swimlanes-UMQ2AFYF-CIEH82Zt.js} +1 -1
  72. package/dist/app/assets/swimlanesDiagram-OMPLPG4O-YWNJjl0g.js +8 -0
  73. package/dist/app/assets/{timeline-definition-SEUHKTQE-DJJdixAI.js → timeline-definition-SEUHKTQE-BGYSqup2.js} +1 -1
  74. package/dist/app/assets/treeView-D4JQ5SDB-B39o1sJo.js +1 -0
  75. package/dist/app/assets/treemap-SAJKECNS-BoGxrUH4.js +1 -0
  76. package/dist/app/assets/{usecaseDiagram-AFA6YXN4-Bp8pXgvR.js → usecaseDiagram-AFA6YXN4-dy6oVOke.js} +1 -1
  77. package/dist/app/assets/{vennDiagram-NNMJR3RB-DYSfZMWT.js → vennDiagram-NNMJR3RB-CUyuhcAk.js} +1 -1
  78. package/dist/app/assets/wardley-7MLQ67FV-sYPAvQ06.js +1 -0
  79. package/dist/app/assets/{wardleyDiagram-S7YFUSEH-CGJ8qg76.js → wardleyDiagram-S7YFUSEH-DYtxYUHe.js} +1 -1
  80. package/dist/app/assets/{xychartDiagram-GGNKY7IX-CRSvraFc.js → xychartDiagram-GGNKY7IX-ClR06AlB.js} +1 -1
  81. package/dist/app/index.html +3 -2
  82. package/dist/cli/index.js +281 -53
  83. package/dist/core/api.js +262 -51
  84. package/dist/core/approvals.js +426 -0
  85. package/dist/core/context.js +68 -3
  86. package/dist/core/diff.js +156 -0
  87. package/dist/core/docs.js +9 -3
  88. package/dist/core/doctor.js +152 -0
  89. package/dist/core/doctypes.js +79 -0
  90. package/dist/core/edit.js +25 -0
  91. package/dist/core/flags.js +13 -0
  92. package/dist/core/gaps.js +7 -2
  93. package/dist/core/heading.js +4 -0
  94. package/dist/core/history.js +36 -5
  95. package/dist/core/home.js +345 -0
  96. package/dist/core/lanes.js +134 -0
  97. package/dist/core/launch.js +34 -0
  98. package/dist/core/layout.js +362 -0
  99. package/dist/core/newdoc.js +66 -0
  100. package/dist/core/open-folder.js +30 -0
  101. package/dist/core/openspec.js +6 -6
  102. package/dist/core/paths.js +71 -4
  103. package/dist/core/project.js +392 -0
  104. package/dist/core/route.js +420 -0
  105. package/dist/core/scan.js +514 -0
  106. package/dist/core/schema.js +170 -1
  107. package/dist/core/scope.js +126 -0
  108. package/dist/core/setup.js +134 -0
  109. package/dist/core/skills.js +92 -14
  110. package/dist/core/storage/config.js +74 -0
  111. package/dist/core/storage/events.js +54 -0
  112. package/dist/core/storage/folder-watch.js +147 -0
  113. package/dist/core/storage/folder.js +469 -0
  114. package/dist/core/storage/index.js +8 -0
  115. package/dist/core/storage/local.js +22 -0
  116. package/dist/core/storage/migrate.js +48 -0
  117. package/dist/core/storage/postgres.js +290 -0
  118. package/dist/core/storage/types.js +101 -0
  119. package/dist/core/storage.js +483 -77
  120. package/dist/core/suggest.js +283 -0
  121. package/dist/core/tree.js +254 -0
  122. package/dist/core/types.js +583 -0
  123. package/dist/core/version.js +1 -1
  124. package/dist/core/versions.js +245 -0
  125. package/dist/core/watch.js +2 -136
  126. package/dist/core/xml.js +23 -5
  127. package/dist/demo/args.js +58 -0
  128. package/dist/demo/browser.js +301 -0
  129. package/dist/demo/platform.js +147 -0
  130. package/dist/demo/run.js +198 -0
  131. package/dist/demo/steps.js +328 -0
  132. package/dist/mcp/project-tools.js +193 -0
  133. package/dist/mcp/server.js +493 -65
  134. package/examples/platform/README.md +33 -0
  135. package/examples/platform/api/package.json +8 -0
  136. package/examples/platform/api/src/auth-middleware.js +16 -0
  137. package/examples/platform/api/src/proxy.js +7 -0
  138. package/examples/platform/api/src/rate-limit.js +13 -0
  139. package/examples/platform/api/src/server.js +40 -0
  140. package/examples/platform/auth/package.json +9 -0
  141. package/examples/platform/auth/src/server.js +24 -0
  142. package/examples/platform/auth/src/tokens.js +19 -0
  143. package/examples/platform/auth/src/users.js +16 -0
  144. package/examples/platform/docs/api/PRD.md +10 -0
  145. package/examples/platform/docs/api/SDD.md +15 -0
  146. package/examples/platform/docs/auth/PRD.md +10 -0
  147. package/examples/platform/docs/auth/SDD.md +8 -0
  148. package/examples/platform/docs/frontend/PRD.md +18 -0
  149. package/examples/platform/docs/frontend/SDD.md +13 -0
  150. package/examples/platform/docs/pricing/PRD.md +9 -0
  151. package/examples/platform/docs/pricing/SDD.md +8 -0
  152. package/examples/platform/docs/products/PRD.md +9 -0
  153. package/examples/platform/docs/products/SDD.md +8 -0
  154. package/examples/platform/frontend/package.json +8 -0
  155. package/examples/platform/frontend/src/api-client.js +21 -0
  156. package/examples/platform/frontend/src/main.js +21 -0
  157. package/examples/platform/frontend/src/pages/products.js +12 -0
  158. package/examples/platform/frontend/src/pages/sign-in.js +14 -0
  159. package/examples/platform/frontend/src/session.js +11 -0
  160. package/examples/platform/pricing/package.json +9 -0
  161. package/examples/platform/pricing/src/cache.js +19 -0
  162. package/examples/platform/pricing/src/product-events.js +17 -0
  163. package/examples/platform/pricing/src/rules.js +19 -0
  164. package/examples/platform/pricing/src/server.js +32 -0
  165. package/examples/platform/products/package.json +9 -0
  166. package/examples/platform/products/src/catalog.js +20 -0
  167. package/examples/platform/products/src/events.js +11 -0
  168. package/examples/platform/products/src/search.js +9 -0
  169. package/examples/platform/products/src/server.js +31 -0
  170. package/migrations/postgres/001_init.sql +55 -0
  171. package/migrations/postgres/002_view_versions.sql +18 -0
  172. package/package.json +18 -2
  173. package/schema/approval.schema.json +173 -0
  174. package/schema/gap.schema.json +3 -0
  175. package/schema/project.schema.json +93 -0
  176. package/schema/settings.schema.json +86 -0
  177. package/schema/toolbox.schema.json +206 -0
  178. package/schema/type.schema.json +121 -0
  179. package/schema/view.schema.json +106 -0
  180. package/skills/claude/build-gap/SKILL.md +7 -0
  181. package/skills/claude/check-ui/SKILL.md +40 -0
  182. package/skills/claude/draw-system/SKILL.md +24 -9
  183. package/skills/claude/gap-from-view/SKILL.md +7 -0
  184. package/skills/claude/post-audit/SKILL.md +58 -0
  185. package/skills/claude/pre-audit/SKILL.md +82 -0
  186. package/skills/claude/update-state/SKILL.md +56 -0
  187. package/skills/cursor/check-ui.mdc +40 -0
  188. package/skills/cursor/draw-system.mdc +24 -9
  189. package/skills/cursor/post-audit.mdc +44 -0
  190. package/skills/cursor/pre-audit.mdc +49 -0
  191. package/skills/cursor/update-state.mdc +45 -0
  192. package/skills/windsurf/spatial-views.md +182 -36
  193. package/toolboxes/aws.yaml +43 -0
  194. package/toolboxes/azure.yaml +41 -0
  195. package/toolboxes/cloud.yaml +95 -0
  196. package/toolboxes/docs.yaml +111 -0
  197. package/toolboxes/software.yaml +114 -0
  198. package/toolboxes/types/docs/gap.yaml +15 -0
  199. package/toolboxes/types/docs/mdd.yaml +19 -0
  200. package/toolboxes/types/docs/plain.yaml +7 -0
  201. package/toolboxes/types/docs/prd.yaml +17 -0
  202. package/dist/app/assets/architectureDiagram-YGSQEFNW-BrBCHqUH.js +0 -36
  203. package/dist/app/assets/chunk-X3CZISLH-FMl4PpWt.js +0 -1
  204. package/dist/app/assets/cose-bilkent-JH36ORCC-BJmLLpaN.js +0 -1
  205. package/dist/app/assets/cynefin-EF2NZ3EQ-DrzwMKdm.js +0 -1
  206. package/dist/app/assets/dist-1Q8ng3tu.js +0 -1
  207. package/dist/app/assets/flowDiagram-MALGAFMO-BCwwiLzb.js +0 -1
  208. package/dist/app/assets/ganttDiagram-23REXITY-xMRHaU3y.js +0 -292
  209. package/dist/app/assets/gitGraph-VSP46ZUC-DyGq5mdd.js +0 -1
  210. package/dist/app/assets/index-BY66fc8Q.js +0 -95
  211. package/dist/app/assets/index-ByetEVbs.css +0 -1
  212. package/dist/app/assets/info-OHQRW6UA-DOBf-fQH.js +0 -1
  213. package/dist/app/assets/mermaid.core-BoRvk1Q-.js +0 -44
  214. package/dist/app/assets/packet-JDAUHWVQ-CgHq03Zj.js +0 -1
  215. package/dist/app/assets/pie-XZMESJXO-DtNh3cDE.js +0 -1
  216. package/dist/app/assets/radar-ABXABTNO-BS0FcsIX.js +0 -1
  217. package/dist/app/assets/railroad-I3PHUGI6-lO8vfGdI.js +0 -1
  218. package/dist/app/assets/swimlanesDiagram-OMPLPG4O-DhCl-Cjg.js +0 -8
  219. package/dist/app/assets/treeView-D4JQ5SDB-Dd1no4eE.js +0 -1
  220. package/dist/app/assets/treemap-SAJKECNS-t6wtsaki.js +0 -1
  221. package/dist/app/assets/wardley-7MLQ67FV-Bx60QTuu.js +0 -1
  222. package/skills/cursor/build-gap.mdc +0 -21
  223. package/skills/cursor/gap-from-view.mdc +0 -22
@@ -0,0 +1,95 @@
1
+ # yaml-language-server: $schema=../schema/toolbox.schema.json
2
+ # The Cloud toolbox: infrastructure, vendor-neutral. For one vendor's names, use the AWS or Azure toolbox.
3
+ name: Cloud
4
+ order: 20
5
+ icon: lucide:cloud
6
+ description: Vendor-neutral infrastructure - compute, storage, networking and operations.
7
+ types:
8
+ - id: compute
9
+ name: Compute
10
+ description: A virtual machine or server.
11
+ icon: lucide:cpu
12
+ color: orange
13
+ properties:
14
+ - { name: size, type: string, label: Instance size }
15
+ - { name: os, type: enum, label: OS, options: [Linux, Windows], default: Linux }
16
+ - { name: count, type: number, default: 1 }
17
+ - id: container
18
+ name: Container
19
+ description: A containerised workload on a cluster or a container service.
20
+ icon: lucide:container
21
+ color: blue
22
+ properties:
23
+ - { name: image, type: string }
24
+ - { name: replicas, type: number, default: 2 }
25
+ - id: function
26
+ name: Function
27
+ description: Serverless code run on an event.
28
+ icon: lucide:square-function
29
+ color: orange
30
+ properties:
31
+ - { name: runtime, type: string }
32
+ - { name: trigger, type: string }
33
+ - { name: timeout, type: number, label: Timeout (s), default: 30 }
34
+ - id: object-storage
35
+ name: Object storage
36
+ description: Buckets of files and blobs.
37
+ icon: lucide:archive
38
+ color: green
39
+ properties:
40
+ - { name: bucket, type: string }
41
+ - { name: public, type: boolean, default: false }
42
+ - id: block-storage
43
+ name: Block storage
44
+ description: Disks attached to compute.
45
+ icon: lucide:hard-drive
46
+ color: green
47
+ properties:
48
+ - { name: size_gb, type: number, label: Size (GB), default: 100 }
49
+ - { name: encrypted, type: boolean, default: true }
50
+ - id: load-balancer
51
+ name: Load balancer
52
+ description: Spreads traffic across instances.
53
+ icon: lucide:scale
54
+ color: violet
55
+ properties:
56
+ - { name: layer, type: enum, options: [L4, L7], default: L7 }
57
+ - { name: public, type: boolean, default: true }
58
+ - id: cdn
59
+ name: CDN
60
+ description: Caches content close to people.
61
+ icon: lucide:earth
62
+ color: violet
63
+ properties:
64
+ - { name: origin, type: string }
65
+ - id: dns
66
+ name: DNS
67
+ description: Names to addresses.
68
+ icon: lucide:signpost
69
+ color: violet
70
+ properties:
71
+ - { name: zone, type: string }
72
+ - id: network
73
+ name: VPC/Network
74
+ description: A private network, its subnets and its rules.
75
+ icon: lucide:network
76
+ color: slate
77
+ size: { w: 180, h: 48 }
78
+ properties:
79
+ - { name: cidr, type: string, label: CIDR, default: 10.0.0.0/16 }
80
+ - { name: region, type: string }
81
+ - id: secrets
82
+ name: Secrets
83
+ description: Keys, passwords and certificates, kept safe.
84
+ icon: lucide:key-round
85
+ color: red
86
+ properties:
87
+ - { name: rotation, type: string, label: Rotation }
88
+ - id: monitoring
89
+ name: Monitoring
90
+ description: Logs, metrics, traces and alerts.
91
+ icon: lucide:activity
92
+ color: pink
93
+ properties:
94
+ - { name: tool, type: string }
95
+ - { name: alerts, type: text }
@@ -0,0 +1,111 @@
1
+ # yaml-language-server: $schema=../schema/toolbox.schema.json
2
+ # The Docs toolbox: doc types. Each template may use {{title}}, {{module}}, {{view}} and {{date}}.
3
+ name: Docs
4
+ order: 90
5
+ icon: lucide:file-text
6
+ description: "Doc types: drop one on a module to make the doc from its template and pin it there."
7
+ docs:
8
+ - id: prd
9
+ name: PRD
10
+ description: Product requirements - what we build and why.
11
+ icon: lucide:clipboard-list
12
+ template: |
13
+ # {{title}}
14
+
15
+ ## Problem
16
+
17
+ ## Who it is for
18
+
19
+ ## What we build
20
+
21
+ ## Out of scope
22
+
23
+ ## Done when
24
+ - id: sdd
25
+ name: SDD
26
+ description: Software design - how the system is put together.
27
+ icon: lucide:file-code
28
+ template: |
29
+ # {{title}}
30
+
31
+ ## Context
32
+
33
+ ## Design
34
+
35
+ ## Interfaces
36
+
37
+ ## Data
38
+
39
+ ## Risks and open questions
40
+ - id: mdd
41
+ name: MDD
42
+ description: Module design - one module's components, stores, APIs and rules.
43
+ icon: lucide:layers
44
+ template: |
45
+ # {{title}}
46
+
47
+ Module: {{module}}
48
+
49
+ ## Responsibilities
50
+
51
+ ## Components
52
+
53
+ ## Stores
54
+
55
+ ## APIs
56
+
57
+ ## Rules
58
+
59
+ ## Required state
60
+ - id: feature
61
+ name: Feature doc
62
+ description: One feature - the user story, the flow and the done-when.
63
+ icon: lucide:puzzle
64
+ template: |
65
+ # {{title}}
66
+
67
+ ## Story
68
+ As a ..., I want ..., so that ...
69
+
70
+ ## Flow
71
+
72
+ ## Done when
73
+ - id: adr
74
+ name: ADR
75
+ description: An architecture decision record.
76
+ icon: lucide:scale
77
+ folder: docs/adr
78
+ template: |
79
+ # {{title}}
80
+
81
+ Date: {{date}}
82
+ Status: proposed
83
+
84
+ ## Context
85
+
86
+ ## Decision
87
+
88
+ ## Consequences
89
+ - id: runbook
90
+ name: Runbook
91
+ description: How to run, check and recover it.
92
+ icon: lucide:book-open
93
+ template: |
94
+ # {{title}}
95
+
96
+ ## What it is
97
+
98
+ ## How to check it is healthy
99
+
100
+ ## Alerts and what to do
101
+
102
+ ## Recover
103
+
104
+ ## Contacts
105
+ - id: plain
106
+ name: Plain doc
107
+ description: A blank doc.
108
+ title: "{{module}} notes"
109
+ icon: lucide:file-text
110
+ template: |
111
+ # {{title}}
@@ -0,0 +1,114 @@
1
+ # yaml-language-server: $schema=../schema/toolbox.schema.json
2
+ # The Software toolbox: the parts of an application, whatever it runs on.
3
+ name: Software
4
+ order: 10
5
+ icon: lucide:boxes
6
+ description: The parts of an application - services, data, messaging and the people and systems around it.
7
+ types:
8
+ - id: service
9
+ name: Service
10
+ description: A backend service you run.
11
+ icon: lucide:server
12
+ color: blue
13
+ tier: 4
14
+ properties:
15
+ - { name: language, type: enum, options: [TypeScript, Python, Go, Java, C#, Rust, Other] }
16
+ - { name: runtime, type: string, label: Runtime or host }
17
+ - { name: repo, type: url, label: Repository }
18
+ - id: frontend
19
+ name: Frontend
20
+ description: What people use - a web app, a mobile app or a desktop app.
21
+ icon: lucide:monitor-smartphone
22
+ color: violet
23
+ tier: 1
24
+ properties:
25
+ - { name: framework, type: string, default: React }
26
+ - { name: platform, type: enum, options: [Web, iOS, Android, Desktop], default: Web }
27
+ - { name: url, type: url, label: URL }
28
+ - id: api
29
+ name: API
30
+ description: An API - the contract other parts call.
31
+ icon: lucide:plug
32
+ color: indigo
33
+ tier: 3
34
+ properties:
35
+ - { name: style, type: enum, options: [REST, GraphQL, gRPC, WebSocket], default: REST }
36
+ - { name: base_path, type: string, label: Base path, default: /api }
37
+ - { name: spec, type: url, label: OpenAPI or schema }
38
+ - id: database
39
+ name: Database
40
+ description: Where data is kept.
41
+ icon: lucide:database
42
+ color: amber
43
+ tier: 6
44
+ properties:
45
+ - { name: engine, type: enum, options: [PostgreSQL, MySQL, SQL Server, SQLite, MongoDB, DynamoDB, Redis, Other], default: PostgreSQL }
46
+ - { name: managed, type: boolean, default: true }
47
+ - { name: schema, type: text, label: Main tables }
48
+ - id: cache
49
+ name: Cache
50
+ description: Fast, short-lived copies of data.
51
+ icon: lucide:zap
52
+ color: red
53
+ tier: 6
54
+ properties:
55
+ - { name: engine, type: enum, options: [Redis, Valkey, Memcached, In-process, Other], default: Redis }
56
+ - { name: ttl, type: number, label: TTL (s), default: 300 }
57
+ - id: queue
58
+ name: Queue
59
+ description: A queue, topic or event bus between parts.
60
+ icon: lucide:list-ordered
61
+ color: orange
62
+ tier: 5
63
+ properties:
64
+ - { name: kind, type: enum, options: [Queue, Topic, Stream], default: Queue }
65
+ - { name: broker, type: string, label: Broker }
66
+ - { name: messages, type: text, label: Messages }
67
+ - id: worker
68
+ name: Worker
69
+ description: Background jobs - consumers, schedulers and batch runs.
70
+ icon: lucide:cog
71
+ color: blue
72
+ tier: 5
73
+ properties:
74
+ - { name: trigger, type: enum, options: [Queue, Schedule, Event, Manual], default: Queue }
75
+ - { name: schedule, type: string, label: Schedule (cron) }
76
+ - { name: concurrency, type: number, default: 1 }
77
+ - id: auth
78
+ name: Auth
79
+ description: Sign-in, tokens and permissions.
80
+ icon: lucide:shield-check
81
+ color: green
82
+ tier: 4
83
+ properties:
84
+ - { name: provider, type: enum, options: [Own, Auth0, Cognito, Entra ID, Firebase, Keycloak, Other], default: Own }
85
+ - { name: protocol, type: enum, options: [OAuth 2.0, OIDC, SAML, Session], default: OIDC }
86
+ - { name: mfa, type: boolean, label: MFA, default: false }
87
+ - id: gateway
88
+ name: Gateway
89
+ description: The front door - routing, rate limits and TLS in front of the services.
90
+ icon: lucide:door-open
91
+ color: indigo
92
+ tier: 2
93
+ properties:
94
+ - { name: product, type: string, label: Product, default: nginx }
95
+ - { name: rate_limit, type: string, label: Rate limit }
96
+ - id: external
97
+ name: External system
98
+ description: A system run by someone else - payments, email, maps.
99
+ icon: lucide:globe
100
+ color: slate
101
+ side: right
102
+ properties:
103
+ - { name: provider, type: string }
104
+ - { name: docs, type: url, label: Docs }
105
+ - { name: sla, type: string, label: SLA }
106
+ - id: actor
107
+ name: User/Actor
108
+ description: A person or role who uses the system.
109
+ icon: lucide:user
110
+ color: gray
111
+ size: { w: 150, h: 48 }
112
+ tier: 0
113
+ properties:
114
+ - { name: role, type: string }
@@ -0,0 +1,15 @@
1
+ name: Gap
2
+ description: One outcome to build - its intent, the modules it touches and when it is done.
3
+ icon: flag
4
+ folder: specs/gaps
5
+ title: "New Gap"
6
+ template: |
7
+ # {{title}}
8
+
9
+ ## Intent
10
+
11
+ ## Modules
12
+
13
+ ## Acceptance
14
+
15
+ - [ ]
@@ -0,0 +1,19 @@
1
+ name: MDD
2
+ description: Module design - how it is built (components, stores, APIs, rules).
3
+ icon: layers
4
+ folder: specs/mdd
5
+ title: "New MDD"
6
+ template: |
7
+ # {{title}}
8
+
9
+ ## Responsibilities
10
+
11
+ ## Components
12
+
13
+ ## Stores
14
+
15
+ ## APIs
16
+
17
+ ## Rules
18
+
19
+ ## Required state
@@ -0,0 +1,7 @@
1
+ name: Plain doc
2
+ description: A plain doc.
3
+ icon: file-text
4
+ folder: docs
5
+ title: "New doc"
6
+ template: |
7
+ # {{title}}
@@ -0,0 +1,17 @@
1
+ name: PRD
2
+ description: Product requirements - what we build and why.
3
+ icon: clipboard-list
4
+ folder: specs/prd
5
+ title: "New PRD"
6
+ template: |
7
+ # {{title}}
8
+
9
+ ## Problem
10
+
11
+ ## Who it is for
12
+
13
+ ## What we build
14
+
15
+ ## Out of scope
16
+
17
+ ## Done when