@documentation-robotics/cli 0.1.0 → 0.1.7

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 (510) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +466 -693
  3. package/dist/analysis/data-model-analyzer.js +189 -0
  4. package/dist/analysis/data-model-analyzer.js.map +7 -0
  5. package/dist/analysis/index.js +3 -0
  6. package/dist/analysis/index.js.map +7 -0
  7. package/dist/analysis/relationship-classifier.js +181 -0
  8. package/dist/analysis/relationship-classifier.js.map +7 -0
  9. package/dist/analyzers/base-analyzer.js +1 -0
  10. package/dist/analyzers/base-analyzer.js.map +7 -0
  11. package/dist/analyzers/call-graph-utils.js +39 -0
  12. package/dist/analyzers/call-graph-utils.js.map +7 -0
  13. package/dist/analyzers/cbm-analyzer.js +1205 -0
  14. package/dist/analyzers/cbm-analyzer.js.map +7 -0
  15. package/dist/analyzers/heuristic-utils.js +55 -0
  16. package/dist/analyzers/heuristic-utils.js.map +7 -0
  17. package/dist/analyzers/mapping-loader.js +146 -0
  18. package/dist/analyzers/mapping-loader.js.map +7 -0
  19. package/dist/analyzers/registry.js +124 -0
  20. package/dist/analyzers/registry.js.map +7 -0
  21. package/dist/analyzers/session-state.js +176 -0
  22. package/dist/analyzers/session-state.js.map +7 -0
  23. package/dist/analyzers/stdio-client.js +208 -0
  24. package/dist/analyzers/stdio-client.js.map +7 -0
  25. package/dist/analyzers/types.js +15 -0
  26. package/dist/analyzers/types.js.map +7 -0
  27. package/dist/analyzers/verify-engine.js +209 -0
  28. package/dist/analyzers/verify-engine.js.map +7 -0
  29. package/dist/analyzers/verify-ignore.js +130 -0
  30. package/dist/analyzers/verify-ignore.js.map +7 -0
  31. package/dist/analyzers/version.js +8 -0
  32. package/dist/analyzers/version.js.map +7 -0
  33. package/dist/audit/ai/runner.js +41 -0
  34. package/dist/audit/ai/runner.js.map +7 -0
  35. package/dist/audit/differential-analyzer.js +183 -0
  36. package/dist/audit/differential-analyzer.js.map +7 -0
  37. package/dist/audit/index.js +32 -0
  38. package/dist/audit/index.js.map +7 -0
  39. package/dist/audit/nodes/ai/evaluator.js +49 -0
  40. package/dist/audit/nodes/ai/evaluator.js.map +7 -0
  41. package/dist/audit/nodes/ai/parser.js +55 -0
  42. package/dist/audit/nodes/ai/parser.js.map +7 -0
  43. package/dist/audit/nodes/ai/prompts.js +103 -0
  44. package/dist/audit/nodes/ai/prompts.js.map +7 -0
  45. package/dist/audit/nodes/analysis/node-completeness-checker.js +32 -0
  46. package/dist/audit/nodes/analysis/node-completeness-checker.js.map +7 -0
  47. package/dist/audit/nodes/analysis/node-definition-analyzer.js +47 -0
  48. package/dist/audit/nodes/analysis/node-definition-analyzer.js.map +7 -0
  49. package/dist/audit/nodes/analysis/node-overlap-detector.js +79 -0
  50. package/dist/audit/nodes/analysis/node-overlap-detector.js.map +7 -0
  51. package/dist/audit/nodes/model/orchestrator.js +82 -0
  52. package/dist/audit/nodes/model/orchestrator.js.map +7 -0
  53. package/dist/audit/nodes/spec/loader.js +116 -0
  54. package/dist/audit/nodes/spec/loader.js.map +7 -0
  55. package/dist/audit/nodes/spec/orchestrator.js +68 -0
  56. package/dist/audit/nodes/spec/orchestrator.js.map +7 -0
  57. package/dist/audit/nodes/types.js +1 -0
  58. package/dist/audit/nodes/types.js.map +7 -0
  59. package/dist/audit/pipeline/index.js +5 -0
  60. package/dist/audit/pipeline/index.js.map +7 -0
  61. package/dist/audit/pipeline/pipeline-orchestrator.js +218 -0
  62. package/dist/audit/pipeline/pipeline-orchestrator.js.map +7 -0
  63. package/dist/audit/relationships/ai/evaluator.js +235 -0
  64. package/dist/audit/relationships/ai/evaluator.js.map +7 -0
  65. package/dist/audit/relationships/ai/parser.js +197 -0
  66. package/dist/audit/relationships/ai/parser.js.map +7 -0
  67. package/dist/audit/relationships/ai/prompts.js +274 -0
  68. package/dist/audit/relationships/ai/prompts.js.map +7 -0
  69. package/dist/audit/relationships/analysis/balance-assessor.js +115 -0
  70. package/dist/audit/relationships/analysis/balance-assessor.js.map +7 -0
  71. package/dist/audit/relationships/analysis/coverage-analyzer.js +99 -0
  72. package/dist/audit/relationships/analysis/coverage-analyzer.js.map +7 -0
  73. package/dist/audit/relationships/analysis/duplicate-detector.js +95 -0
  74. package/dist/audit/relationships/analysis/duplicate-detector.js.map +7 -0
  75. package/dist/audit/relationships/analysis/gap-analyzer.js +99 -0
  76. package/dist/audit/relationships/analysis/gap-analyzer.js.map +7 -0
  77. package/dist/audit/relationships/analysis/layer-templates.js +294 -0
  78. package/dist/audit/relationships/analysis/layer-templates.js.map +7 -0
  79. package/dist/audit/relationships/graph/connectivity.js +129 -0
  80. package/dist/audit/relationships/graph/connectivity.js.map +7 -0
  81. package/dist/audit/relationships/graph/relationship-graph.js +179 -0
  82. package/dist/audit/relationships/graph/relationship-graph.js.map +7 -0
  83. package/dist/audit/relationships/model/balance-assessor.js +49 -0
  84. package/dist/audit/relationships/model/balance-assessor.js.map +7 -0
  85. package/dist/audit/relationships/model/coverage-analyzer.js +34 -0
  86. package/dist/audit/relationships/model/coverage-analyzer.js.map +7 -0
  87. package/dist/audit/relationships/model/duplicate-detector.js +68 -0
  88. package/dist/audit/relationships/model/duplicate-detector.js.map +7 -0
  89. package/dist/audit/relationships/model/gap-analyzer.js +41 -0
  90. package/dist/audit/relationships/model/gap-analyzer.js.map +7 -0
  91. package/dist/audit/relationships/model/orchestrator.js +126 -0
  92. package/dist/audit/relationships/model/orchestrator.js.map +7 -0
  93. package/dist/audit/relationships/spec/orchestrator.js +157 -0
  94. package/dist/audit/relationships/spec/orchestrator.js.map +7 -0
  95. package/dist/audit/reports/index.js +5 -0
  96. package/dist/audit/reports/index.js.map +7 -0
  97. package/dist/audit/reports/report-generator.js +118 -0
  98. package/dist/audit/reports/report-generator.js.map +7 -0
  99. package/dist/audit/snapshot-storage.js +163 -0
  100. package/dist/audit/snapshot-storage.js.map +7 -0
  101. package/dist/audit/types.js +21 -0
  102. package/dist/audit/types.js.map +7 -0
  103. package/dist/cli.js +223 -92
  104. package/dist/cli.js.map +3 -3
  105. package/dist/coding-agents/agents/claude-code.js +147 -0
  106. package/dist/coding-agents/agents/claude-code.js.map +7 -0
  107. package/dist/coding-agents/agents/index.js +5 -0
  108. package/dist/coding-agents/agents/index.js.map +7 -0
  109. package/dist/coding-agents/agents/types.js +1 -0
  110. package/dist/coding-agents/agents/types.js.map +7 -0
  111. package/dist/coding-agents/base-chat-client.js +45 -0
  112. package/dist/coding-agents/base-chat-client.js.map +7 -0
  113. package/dist/coding-agents/chat-utils.js +23 -0
  114. package/dist/coding-agents/chat-utils.js.map +7 -0
  115. package/dist/coding-agents/claude-code-client.js +246 -0
  116. package/dist/coding-agents/claude-code-client.js.map +7 -0
  117. package/dist/coding-agents/copilot-client.js +209 -0
  118. package/dist/coding-agents/copilot-client.js.map +7 -0
  119. package/dist/commands/add.js +95 -33
  120. package/dist/commands/add.js.map +2 -2
  121. package/dist/commands/analyzer.js +511 -0
  122. package/dist/commands/analyzer.js.map +7 -0
  123. package/dist/commands/audit-diff.js +49 -0
  124. package/dist/commands/audit-diff.js.map +7 -0
  125. package/dist/commands/audit-snapshots.js +62 -0
  126. package/dist/commands/audit-snapshots.js.map +7 -0
  127. package/dist/commands/audit.js +81 -0
  128. package/dist/commands/audit.js.map +7 -0
  129. package/dist/commands/catalog.js +248 -0
  130. package/dist/commands/catalog.js.map +7 -0
  131. package/dist/commands/changeset.js +577 -66
  132. package/dist/commands/changeset.js.map +2 -2
  133. package/dist/commands/chat.js +106 -83
  134. package/dist/commands/chat.js.map +2 -2
  135. package/dist/commands/claude.js +74 -0
  136. package/dist/commands/claude.js.map +7 -0
  137. package/dist/commands/conformance.js +71 -68
  138. package/dist/commands/conformance.js.map +2 -2
  139. package/dist/commands/copilot.js +75 -0
  140. package/dist/commands/copilot.js.map +7 -0
  141. package/dist/commands/delete.js +125 -11
  142. package/dist/commands/delete.js.map +3 -3
  143. package/dist/commands/discover-logic.js +44 -0
  144. package/dist/commands/discover-logic.js.map +7 -0
  145. package/dist/commands/docs.js +87 -0
  146. package/dist/commands/docs.js.map +7 -0
  147. package/dist/commands/element.js +14 -20
  148. package/dist/commands/element.js.map +2 -2
  149. package/dist/commands/export.js +13 -3
  150. package/dist/commands/export.js.map +2 -2
  151. package/dist/commands/import.js +51 -0
  152. package/dist/commands/import.js.map +7 -0
  153. package/dist/commands/info.js +30 -24
  154. package/dist/commands/info.js.map +2 -2
  155. package/dist/commands/init.js +27 -11
  156. package/dist/commands/init.js.map +2 -2
  157. package/dist/commands/list.js +63 -13
  158. package/dist/commands/list.js.map +3 -3
  159. package/dist/commands/relationship.js +225 -37
  160. package/dist/commands/relationship.js.map +2 -2
  161. package/dist/commands/report.js +54 -0
  162. package/dist/commands/report.js.map +7 -0
  163. package/dist/commands/reports.js +45 -0
  164. package/dist/commands/reports.js.map +7 -0
  165. package/dist/commands/schema.js +135 -0
  166. package/dist/commands/schema.js.map +7 -0
  167. package/dist/commands/search.js +40 -12
  168. package/dist/commands/search.js.map +2 -2
  169. package/dist/commands/show.js +58 -27
  170. package/dist/commands/show.js.map +2 -2
  171. package/dist/commands/stats.js +35 -0
  172. package/dist/commands/stats.js.map +7 -0
  173. package/dist/commands/trace.js +39 -16
  174. package/dist/commands/trace.js.map +2 -2
  175. package/dist/commands/update.js +141 -14
  176. package/dist/commands/update.js.map +2 -2
  177. package/dist/commands/upgrade.js +210 -46
  178. package/dist/commands/upgrade.js.map +3 -3
  179. package/dist/commands/validate.js +142 -23
  180. package/dist/commands/validate.js.map +3 -3
  181. package/dist/commands/version.js +8 -12
  182. package/dist/commands/version.js.map +2 -2
  183. package/dist/commands/visualize.js +162 -25
  184. package/dist/commands/visualize.js.map +2 -2
  185. package/dist/core/base-snapshot-manager.js +84 -0
  186. package/dist/core/base-snapshot-manager.js.map +7 -0
  187. package/dist/core/changeset-exporter.js +305 -0
  188. package/dist/core/changeset-exporter.js.map +7 -0
  189. package/dist/core/changeset-validator.js +41 -0
  190. package/dist/core/changeset-validator.js.map +7 -0
  191. package/dist/core/changeset.js +88 -173
  192. package/dist/core/changeset.js.map +2 -2
  193. package/dist/core/dependency-tracker.js +4 -2
  194. package/dist/core/dependency-tracker.js.map +2 -2
  195. package/dist/core/element.js +98 -27
  196. package/dist/core/element.js.map +2 -2
  197. package/dist/core/golden-copy-cache.js +290 -0
  198. package/dist/core/golden-copy-cache.js.map +7 -0
  199. package/dist/core/graph-model.js +266 -0
  200. package/dist/core/graph-model.js.map +7 -0
  201. package/dist/core/layer.js +159 -16
  202. package/dist/core/layer.js.map +2 -2
  203. package/dist/core/layers.js +32 -0
  204. package/dist/core/layers.js.map +7 -0
  205. package/dist/core/manifest.js +32 -11
  206. package/dist/core/manifest.js.map +2 -2
  207. package/dist/core/migration-registry.js +56 -1
  208. package/dist/core/migration-registry.js.map +2 -2
  209. package/dist/core/model.js +424 -217
  210. package/dist/core/model.js.map +3 -3
  211. package/dist/core/mutation-handler.js +179 -0
  212. package/dist/core/mutation-handler.js.map +7 -0
  213. package/dist/core/reference-registry.js +29 -21
  214. package/dist/core/reference-registry.js.map +2 -2
  215. package/dist/core/relationship-catalog.js +189 -0
  216. package/dist/core/relationship-catalog.js.map +7 -0
  217. package/dist/core/relationship-registry.js.map +2 -2
  218. package/dist/core/relationships.js.map +1 -1
  219. package/dist/core/report-data-model.js +285 -0
  220. package/dist/core/report-data-model.js.map +7 -0
  221. package/dist/core/spec-data-service.js +185 -0
  222. package/dist/core/spec-data-service.js.map +7 -0
  223. package/dist/core/spec-loader-types.js +1 -0
  224. package/dist/core/spec-loader-types.js.map +7 -0
  225. package/dist/core/spec-loader.js +234 -0
  226. package/dist/core/spec-loader.js.map +7 -0
  227. package/dist/core/staged-changeset-storage.js +282 -0
  228. package/dist/core/staged-changeset-storage.js.map +7 -0
  229. package/dist/core/staging-area.js +1002 -0
  230. package/dist/core/staging-area.js.map +7 -0
  231. package/dist/core/stats-collector.js +169 -0
  232. package/dist/core/stats-collector.js.map +7 -0
  233. package/dist/core/virtual-projection.js +443 -0
  234. package/dist/core/virtual-projection.js.map +7 -0
  235. package/dist/export/archimate-exporter.js +99 -60
  236. package/dist/export/archimate-exporter.js.map +2 -2
  237. package/dist/export/audit-formatters.js +479 -0
  238. package/dist/export/audit-formatters.js.map +7 -0
  239. package/dist/export/diff-formatters.js +99 -0
  240. package/dist/export/diff-formatters.js.map +7 -0
  241. package/dist/export/export-manager.js.map +2 -2
  242. package/dist/export/graphml-exporter.js +44 -27
  243. package/dist/export/graphml-exporter.js.map +2 -2
  244. package/dist/export/index.js +4 -0
  245. package/dist/export/index.js.map +2 -2
  246. package/dist/export/json-schema-exporter.js +55 -42
  247. package/dist/export/json-schema-exporter.js.map +2 -2
  248. package/dist/export/markdown-exporter.js +92 -70
  249. package/dist/export/markdown-exporter.js.map +2 -2
  250. package/dist/export/markdown-generator.js +248 -0
  251. package/dist/export/markdown-generator.js.map +7 -0
  252. package/dist/export/markdown-utils.js +30 -0
  253. package/dist/export/markdown-utils.js.map +7 -0
  254. package/dist/export/mermaid-markdown-exporter.js +37 -0
  255. package/dist/export/mermaid-markdown-exporter.js.map +7 -0
  256. package/dist/export/openapi-exporter.js +119 -71
  257. package/dist/export/openapi-exporter.js.map +2 -2
  258. package/dist/export/plantuml-exporter.js +104 -39
  259. package/dist/export/plantuml-exporter.js.map +2 -2
  260. package/dist/export/report-formatters.js +111 -0
  261. package/dist/export/report-formatters.js.map +7 -0
  262. package/dist/export/stats-formatters.js +98 -0
  263. package/dist/export/stats-formatters.js.map +7 -0
  264. package/dist/export/types.js +2 -14
  265. package/dist/export/types.js.map +2 -2
  266. package/dist/export/verify-formatters.js +153 -0
  267. package/dist/export/verify-formatters.js.map +7 -0
  268. package/dist/generated/compiled-validators.js +17 -0
  269. package/dist/generated/compiled-validators.js.map +7 -0
  270. package/dist/generated/index.js +31 -0
  271. package/dist/generated/index.js.map +7 -0
  272. package/dist/generated/layer-registry.js +190 -0
  273. package/dist/generated/layer-registry.js.map +7 -0
  274. package/dist/generated/layer-types.js +7 -0
  275. package/dist/generated/layer-types.js.map +7 -0
  276. package/dist/generated/node-types.js +1719 -0
  277. package/dist/generated/node-types.js.map +7 -0
  278. package/dist/generated/relationship-index.js +14552 -0
  279. package/dist/generated/relationship-index.js.map +7 -0
  280. package/dist/import/archimate-importer.js +166 -0
  281. package/dist/import/archimate-importer.js.map +7 -0
  282. package/dist/import/index.js +47 -0
  283. package/dist/import/index.js.map +7 -0
  284. package/dist/import/openapi-importer.js +143 -0
  285. package/dist/import/openapi-importer.js.map +7 -0
  286. package/dist/import/types.js +1 -0
  287. package/dist/import/types.js.map +7 -0
  288. package/dist/integrations/base-manager.js +311 -0
  289. package/dist/integrations/base-manager.js.map +7 -0
  290. package/dist/integrations/claude-manager.js +360 -0
  291. package/dist/integrations/claude-manager.js.map +7 -0
  292. package/dist/integrations/claude_code/agents/dr-advisor.md +253 -0
  293. package/dist/integrations/claude_code/agents/dr-architect.md +278 -0
  294. package/dist/integrations/claude_code/agents/dr-extractor.md +286 -0
  295. package/dist/integrations/claude_code/commands/dr-changeset.md +657 -0
  296. package/dist/integrations/claude_code/commands/dr-design.md +373 -0
  297. package/dist/integrations/claude_code/commands/dr-info.md +132 -0
  298. package/dist/integrations/claude_code/commands/dr-init.md +251 -0
  299. package/dist/integrations/claude_code/commands/dr-map.md +936 -0
  300. package/dist/integrations/claude_code/commands/dr-model.md +493 -0
  301. package/dist/integrations/claude_code/commands/dr-relate.md +814 -0
  302. package/dist/integrations/claude_code/commands/dr-sync.md +279 -0
  303. package/dist/integrations/claude_code/commands/dr-validate.md +654 -0
  304. package/dist/integrations/claude_code/commands/dr-verify.md +559 -0
  305. package/dist/integrations/claude_code/docs/END_TO_END_WALKTHROUGH.md +903 -0
  306. package/dist/integrations/claude_code/docs/QUICK_START.md +271 -0
  307. package/dist/integrations/claude_code/docs/README.md +347 -0
  308. package/dist/integrations/claude_code/skills/dr_01_motivation_layer/SKILL.md +550 -0
  309. package/dist/integrations/claude_code/skills/dr_02_business_layer/SKILL.md +620 -0
  310. package/dist/integrations/claude_code/skills/dr_03_security_layer/SKILL.md +642 -0
  311. package/dist/integrations/claude_code/skills/dr_04_application_layer/SKILL.md +911 -0
  312. package/dist/integrations/claude_code/skills/dr_05_technology_layer/SKILL.md +836 -0
  313. package/dist/integrations/claude_code/skills/dr_06_api_layer/SKILL.md +933 -0
  314. package/dist/integrations/claude_code/skills/dr_07_data_model_layer/SKILL.md +210 -0
  315. package/dist/integrations/claude_code/skills/dr_08_dataset_layer/SKILL.md +319 -0
  316. package/dist/integrations/claude_code/skills/dr_09_ux_layer/SKILL.md +319 -0
  317. package/dist/integrations/claude_code/skills/dr_10_navigation_layer/SKILL.md +318 -0
  318. package/dist/integrations/claude_code/skills/dr_11_apm_layer/SKILL.md +273 -0
  319. package/dist/integrations/claude_code/skills/dr_12_testing_layer/SKILL.md +273 -0
  320. package/dist/integrations/claude_code/skills/dr_changeset_reviewer/SKILL.md +187 -0
  321. package/dist/integrations/claude_code/skills/dr_codebase_memory/SKILL.md +590 -0
  322. package/dist/integrations/claude_code/skills/dr_engineering_guide/SKILL.md +295 -0
  323. package/dist/integrations/copilot-manager.js +328 -0
  324. package/dist/integrations/copilot-manager.js.map +7 -0
  325. package/dist/integrations/github_copilot/agents/dr-advisor.md +243 -0
  326. package/dist/integrations/github_copilot/agents/dr-architect.md +1567 -0
  327. package/dist/integrations/github_copilot/skills/dr_01_motivation_layer/SKILL.md +491 -0
  328. package/dist/integrations/github_copilot/skills/dr_02_business_layer/SKILL.md +539 -0
  329. package/dist/integrations/github_copilot/skills/dr_03_security_layer/SKILL.md +667 -0
  330. package/dist/integrations/github_copilot/skills/dr_04_application_layer/SKILL.md +670 -0
  331. package/dist/integrations/github_copilot/skills/dr_05_technology_layer/SKILL.md +660 -0
  332. package/dist/integrations/github_copilot/skills/dr_06_api_layer/SKILL.md +855 -0
  333. package/dist/integrations/github_copilot/skills/dr_07_data_model_layer/SKILL.md +171 -0
  334. package/dist/integrations/github_copilot/skills/dr_08_dataset_layer/SKILL.md +216 -0
  335. package/dist/integrations/github_copilot/skills/dr_09_ux_layer/SKILL.md +230 -0
  336. package/dist/integrations/github_copilot/skills/dr_10_navigation_layer/SKILL.md +228 -0
  337. package/dist/integrations/github_copilot/skills/dr_11_apm_layer/SKILL.md +234 -0
  338. package/dist/integrations/github_copilot/skills/dr_12_testing_layer/SKILL.md +230 -0
  339. package/dist/integrations/github_copilot/skills/dr_changeset_reviewer/SKILL.md +187 -0
  340. package/dist/integrations/hash-utils.js +51 -0
  341. package/dist/integrations/hash-utils.js.map +7 -0
  342. package/dist/integrations/types.js +16 -0
  343. package/dist/integrations/types.js.map +7 -0
  344. package/dist/reports/model-layer-report-generator.js +278 -0
  345. package/dist/reports/model-layer-report-generator.js.map +7 -0
  346. package/dist/reports/model-report-data.js +57 -0
  347. package/dist/reports/model-report-data.js.map +7 -0
  348. package/dist/reports/model-report-orchestrator.js +103 -0
  349. package/dist/reports/model-report-orchestrator.js.map +7 -0
  350. package/dist/schemas/bundled/analyzers/cbm.json +595 -0
  351. package/dist/schemas/bundled/analyzers/manifest.json +9 -0
  352. package/dist/schemas/bundled/api.json +3411 -0
  353. package/dist/schemas/bundled/apm.json +2371 -0
  354. package/dist/schemas/bundled/application.json +1253 -0
  355. package/dist/schemas/bundled/base.json +1622 -0
  356. package/dist/schemas/bundled/business.json +1279 -0
  357. package/dist/schemas/bundled/data-model.json +1298 -0
  358. package/dist/schemas/bundled/data-store.json +2025 -0
  359. package/dist/schemas/bundled/manifest.json +93 -0
  360. package/dist/schemas/bundled/motivation.json +1360 -0
  361. package/dist/schemas/bundled/navigation.json +1874 -0
  362. package/dist/schemas/bundled/security.json +3488 -0
  363. package/dist/schemas/bundled/technology.json +2067 -0
  364. package/dist/schemas/bundled/testing.json +3120 -0
  365. package/dist/schemas/bundled/ux.json +3592 -0
  366. package/dist/server/schemas.js +202 -0
  367. package/dist/server/schemas.js.map +7 -0
  368. package/dist/server/server.js +1336 -252
  369. package/dist/server/server.js.map +3 -3
  370. package/dist/server/telemetry-middleware.js +22 -15
  371. package/dist/server/telemetry-middleware.js.map +2 -2
  372. package/dist/server-entry.js +65 -0
  373. package/dist/server-entry.js.map +7 -0
  374. package/dist/telemetry/config.js +89 -0
  375. package/dist/telemetry/config.js.map +7 -0
  376. package/dist/telemetry/console-interceptor.js.map +1 -1
  377. package/dist/telemetry/detect.js +24 -0
  378. package/dist/telemetry/detect.js.map +7 -0
  379. package/dist/telemetry/fetch-otlp-exporter.js +112 -0
  380. package/dist/telemetry/fetch-otlp-exporter.js.map +7 -0
  381. package/dist/telemetry/index.js +153 -3
  382. package/dist/telemetry/index.js.map +2 -2
  383. package/dist/telemetry/resilient-exporter.js +22 -8
  384. package/dist/telemetry/resilient-exporter.js.map +2 -2
  385. package/dist/telemetry/resilient-log-exporter.js +17 -8
  386. package/dist/telemetry/resilient-log-exporter.js.map +2 -2
  387. package/dist/telemetry/test-instrumentation.js.map +2 -2
  388. package/dist/types/index.js +84 -0
  389. package/dist/types/index.js.map +3 -3
  390. package/dist/types/source-reference.js +1 -0
  391. package/dist/types/source-reference.js.map +7 -0
  392. package/dist/utils/chat-logger.js +292 -0
  393. package/dist/utils/chat-logger.js.map +7 -0
  394. package/dist/utils/claude-stream.js +8 -0
  395. package/dist/utils/claude-stream.js.map +7 -0
  396. package/dist/utils/date-utils.js +7 -0
  397. package/dist/utils/date-utils.js.map +7 -0
  398. package/dist/utils/element-utils.js.map +1 -1
  399. package/dist/utils/errors.js +88 -15
  400. package/dist/utils/errors.js.map +3 -3
  401. package/dist/utils/export-python-annotations.js +82 -0
  402. package/dist/utils/export-python-annotations.js.map +7 -0
  403. package/dist/utils/file-io.js +7 -2
  404. package/dist/utils/file-io.js.map +2 -2
  405. package/dist/utils/file-lock.js +156 -0
  406. package/dist/utils/file-lock.js.map +7 -0
  407. package/dist/utils/id-generator.js +18 -0
  408. package/dist/utils/id-generator.js.map +7 -0
  409. package/dist/utils/layer-name-formatter.js +16 -0
  410. package/dist/utils/layer-name-formatter.js.map +7 -0
  411. package/dist/utils/markdown-anchor.js +7 -0
  412. package/dist/utils/markdown-anchor.js.map +7 -0
  413. package/dist/utils/markdown-link.js +12 -0
  414. package/dist/utils/markdown-link.js.map +7 -0
  415. package/dist/utils/markdown-table.js +17 -0
  416. package/dist/utils/markdown-table.js.map +7 -0
  417. package/dist/utils/mermaid-utils.js +11 -0
  418. package/dist/utils/mermaid-utils.js.map +7 -0
  419. package/dist/utils/project-paths.js.map +2 -2
  420. package/dist/utils/source-reference.js +52 -0
  421. package/dist/utils/source-reference.js.map +7 -0
  422. package/dist/utils/spec-installer.js +40 -53
  423. package/dist/utils/spec-installer.js.map +2 -2
  424. package/dist/utils/spec-version.js +5 -1
  425. package/dist/utils/spec-version.js.map +2 -2
  426. package/dist/utils/string-utils.js +12 -0
  427. package/dist/utils/string-utils.js.map +7 -0
  428. package/dist/utils/table-formatting.js +19 -0
  429. package/dist/utils/table-formatting.js.map +7 -0
  430. package/dist/validators/index.js +4 -0
  431. package/dist/validators/index.js.map +2 -2
  432. package/dist/validators/naming-validator.js +20 -23
  433. package/dist/validators/naming-validator.js.map +2 -2
  434. package/dist/validators/reference-validator.js +23 -38
  435. package/dist/validators/reference-validator.js.map +2 -2
  436. package/dist/validators/relationship-schema-validator.js +243 -0
  437. package/dist/validators/relationship-schema-validator.js.map +7 -0
  438. package/dist/validators/schema-validator.js +168 -68
  439. package/dist/validators/schema-validator.js.map +2 -2
  440. package/dist/validators/semantic-validator.js +36 -60
  441. package/dist/validators/semantic-validator.js.map +2 -2
  442. package/dist/validators/types.js.map +2 -2
  443. package/dist/validators/validation-formatter.js +159 -0
  444. package/dist/validators/validation-formatter.js.map +7 -0
  445. package/dist/validators/validator.js +24 -38
  446. package/dist/validators/validator.js.map +2 -2
  447. package/dist/viewer/README.md +139 -0
  448. package/dist/viewer/assets/main-CY0Xufuj.css +1 -0
  449. package/dist/viewer/assets/main-DtgErnwF.js +81 -0
  450. package/dist/viewer/assets/vendor-CxKvDp2x.js +17 -0
  451. package/dist/viewer/favicon.svg +11 -0
  452. package/dist/viewer/fonts/inter/Inter-Black.woff2 +0 -0
  453. package/dist/viewer/fonts/inter/Inter-Bold.woff2 +0 -0
  454. package/dist/viewer/fonts/inter/Inter-ExtraBold.woff2 +0 -0
  455. package/dist/viewer/fonts/inter/Inter-Light.woff2 +0 -0
  456. package/dist/viewer/fonts/inter/Inter-Medium.woff2 +0 -0
  457. package/dist/viewer/fonts/inter/Inter-Regular.woff2 +0 -0
  458. package/dist/viewer/fonts/inter/Inter-SemiBold.woff2 +0 -0
  459. package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
  460. package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
  461. package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
  462. package/dist/viewer/index.html +15 -0
  463. package/dist/viewer/manifest.json +99 -0
  464. package/dist/viewer/version.json +1 -0
  465. package/package.json +42 -16
  466. package/PYTHON_CLI_PARITY.md +0 -265
  467. package/PYTHON_CLI_STRUCTURE_UPDATE.md +0 -246
  468. package/biome.json +0 -42
  469. package/bunfig.toml +0 -3
  470. package/dist/ai/claude-client.js +0 -71
  471. package/dist/ai/claude-client.js.map +0 -7
  472. package/dist/ai/context-provider.js +0 -129
  473. package/dist/ai/context-provider.js.map +0 -7
  474. package/dist/ai/tools.js +0 -231
  475. package/dist/ai/tools.js.map +0 -7
  476. package/dist/commands/migrate.js +0 -36
  477. package/dist/commands/migrate.js.map +0 -7
  478. package/dist/commands/project.js +0 -74
  479. package/dist/commands/project.js.map +0 -7
  480. package/dist/core/active-changeset.js +0 -52
  481. package/dist/core/active-changeset.js.map +0 -7
  482. package/dist/core/projection-engine.js +0 -288
  483. package/dist/core/projection-engine.js.map +0 -7
  484. package/dist/schemas/bundled/01-motivation-layer.schema.json +0 -942
  485. package/dist/schemas/bundled/02-business-layer.schema.json +0 -1293
  486. package/dist/schemas/bundled/03-security-layer.schema.json +0 -2177
  487. package/dist/schemas/bundled/04-application-layer.schema.json +0 -1328
  488. package/dist/schemas/bundled/05-technology-layer.schema.json +0 -1465
  489. package/dist/schemas/bundled/06-api-layer.schema.json +0 -1743
  490. package/dist/schemas/bundled/07-data-model-layer.schema.json +0 -1253
  491. package/dist/schemas/bundled/08-datastore-layer.schema.json +0 -892
  492. package/dist/schemas/bundled/09-ux-layer.schema.json +0 -1506
  493. package/dist/schemas/bundled/10-navigation-layer.schema.json +0 -843
  494. package/dist/schemas/bundled/11-apm-observability-layer.schema.json +0 -1430
  495. package/dist/schemas/bundled/12-testing-layer.schema.json +0 -1091
  496. package/dist/schemas/bundled/common/layer-extensions.schema.json +0 -266
  497. package/dist/schemas/bundled/common/predicates.schema.json +0 -493
  498. package/dist/schemas/bundled/common/relationships.schema.json +0 -791
  499. package/dist/schemas/bundled/common/source-references.schema.json +0 -71
  500. package/dist/schemas/bundled/link-registry.json +0 -1839
  501. package/dist/schemas/bundled/link-registry.schema.json +0 -339
  502. package/dist/schemas/bundled/relationship-catalog.json +0 -1302
  503. package/dist/schemas/bundled/relationship-type.schema.json +0 -221
  504. package/dist/utils/model-path.js +0 -22
  505. package/dist/utils/model-path.js.map +0 -7
  506. package/docs/TEST-INSTRUMENTATION.md +0 -405
  507. package/docs/telemetry.md +0 -427
  508. package/test-debug.js +0 -33
  509. package/test-special.mjs +0 -46
  510. package/test_runner.ts +0 -7
@@ -1,1293 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://example.com/schemas/02-business-layer.schema.json",
4
- "title": "Business Layer Layer Schema",
5
- "description": "Represents business services, processes, actors, and objects that define the organization's operational structure and capabilities.",
6
- "layerMetadata": {
7
- "layerId": "02-business-layer",
8
- "layerName": "Business Layer",
9
- "intraLayerRelationshipSupport": true,
10
- "crossLayerRelationshipSupport": true,
11
- "relationshipCatalogVersion": "2.1.0"
12
- },
13
- "intraLayerRelationships": {
14
- "$comment": "Relationships between entities within this layer. References relationship-catalog.json by ID.",
15
- "allowed": [
16
- {
17
- "relationshipTypeId": "composition",
18
- "sourceTypes": ["BusinessCollaboration", "TestCoverageModel", "TestCoverageTarget"],
19
- "targetTypes": ["BusinessRole", "OutcomeCategory", "TestCoverageTarget"],
20
- "examples": [
21
- {
22
- "source": "BusinessCollaboration",
23
- "target": "BusinessRole",
24
- "description": "Business collaboration composes business roles that participate in it"
25
- },
26
- {
27
- "source": "TestCoverageModel",
28
- "target": "TestCoverageTarget",
29
- "description": "Coverage model composes targets defining what needs testing",
30
- "layer": "12-testing"
31
- },
32
- {
33
- "source": "TestCoverageTarget",
34
- "target": "OutcomeCategory",
35
- "description": "Coverage target composes expected outcome categories",
36
- "layer": "12-testing"
37
- }
38
- ]
39
- },
40
- {
41
- "relationshipTypeId": "aggregation",
42
- "sourceTypes": ["CoverageRequirement", "Goal", "InputPartitionSelection"],
43
- "targetTypes": ["ContextVariation", "Goal", "PartitionValue"],
44
- "examples": [
45
- {
46
- "source": "Goal",
47
- "target": "Goal",
48
- "description": "High-level goal aggregates sub-goals",
49
- "layer": "01-motivation"
50
- },
51
- {
52
- "source": "InputPartitionSelection",
53
- "target": "PartitionValue",
54
- "description": "Partition selection aggregates multiple partition values to cover",
55
- "layer": "12-testing"
56
- },
57
- {
58
- "source": "CoverageRequirement",
59
- "target": "ContextVariation",
60
- "description": "Requirement aggregates selected contexts for testing",
61
- "layer": "12-testing"
62
- }
63
- ]
64
- },
65
- {
66
- "relationshipTypeId": "specialization",
67
- "sourceTypes": ["PremiumAccount", "Schema"],
68
- "targetTypes": ["Account", "Schema"],
69
- "examples": [
70
- {
71
- "source": "PremiumAccount",
72
- "target": "Account",
73
- "description": "Premium account specializes the general account concept"
74
- },
75
- {
76
- "source": "Schema",
77
- "target": "Schema",
78
- "description": "API schema specializes another via allOf/oneOf/anyOf composition",
79
- "layer": "06-api"
80
- }
81
- ]
82
- },
83
- {
84
- "relationshipTypeId": "realization",
85
- "sourceTypes": ["ApplicationService", "Goal", "Outcome"],
86
- "targetTypes": ["BusinessService", "Goal", "Value"],
87
- "examples": [
88
- {
89
- "source": "Goal",
90
- "target": "Value",
91
- "description": "Goal realizes value for stakeholders",
92
- "layer": "01-motivation"
93
- },
94
- {
95
- "source": "Outcome",
96
- "target": "Goal",
97
- "description": "Outcome realizes achievement of goal",
98
- "layer": "01-motivation"
99
- },
100
- {
101
- "source": "ApplicationService",
102
- "target": "BusinessService",
103
- "description": "Application service realizes business service capability"
104
- }
105
- ]
106
- },
107
- {
108
- "relationshipTypeId": "assignment",
109
- "sourceTypes": ["BusinessActor"],
110
- "targetTypes": ["BusinessRole"],
111
- "examples": [
112
- {
113
- "source": "BusinessActor",
114
- "target": "BusinessRole",
115
- "description": "Business actor assigned to business role"
116
- }
117
- ]
118
- },
119
- {
120
- "relationshipTypeId": "association",
121
- "sourceTypes": ["Requirement", "Stakeholder"],
122
- "targetTypes": ["Constraint", "Driver", "Goal"],
123
- "examples": [
124
- {
125
- "source": "Stakeholder",
126
- "target": "Driver",
127
- "description": "Stakeholder has concern represented by driver",
128
- "layer": "01-motivation"
129
- },
130
- {
131
- "source": "Stakeholder",
132
- "target": "Goal",
133
- "description": "Stakeholder has interest in goal",
134
- "layer": "01-motivation"
135
- },
136
- {
137
- "source": "Requirement",
138
- "target": "Constraint",
139
- "description": "Requirement is limited by constraint",
140
- "layer": "01-motivation"
141
- }
142
- ]
143
- },
144
- {
145
- "relationshipTypeId": "influence",
146
- "sourceTypes": ["Assessment", "Driver"],
147
- "targetTypes": ["Assessment", "Goal"],
148
- "examples": [
149
- {
150
- "source": "Driver",
151
- "target": "Assessment",
152
- "description": "Driver creates need for assessment",
153
- "layer": "01-motivation"
154
- },
155
- {
156
- "source": "Driver",
157
- "target": "Goal",
158
- "description": "Driver motivates goal definition",
159
- "layer": "01-motivation"
160
- },
161
- {
162
- "source": "Assessment",
163
- "target": "Goal",
164
- "description": "Assessment informs goal setting",
165
- "layer": "01-motivation"
166
- }
167
- ]
168
- },
169
- {
170
- "relationshipTypeId": "triggering",
171
- "sourceTypes": ["BusinessEvent", "CoverageGap", "PartitionDependency"],
172
- "targetTypes": ["BusinessProcess", "CoverageRequirement", "PartitionValue"],
173
- "examples": [
174
- {
175
- "source": "BusinessEvent",
176
- "target": "BusinessProcess",
177
- "description": "Business event triggers business process execution"
178
- },
179
- {
180
- "source": "PartitionDependency",
181
- "target": "PartitionValue",
182
- "description": "Dependency condition triggers inclusion/exclusion of partition values",
183
- "layer": "12-testing"
184
- },
185
- {
186
- "source": "CoverageGap",
187
- "target": "CoverageRequirement",
188
- "description": "Identified gap triggers need for additional coverage",
189
- "layer": "12-testing"
190
- }
191
- ]
192
- },
193
- {
194
- "relationshipTypeId": "flow",
195
- "sourceTypes": ["BusinessProcess", "CoverageRequirement", "TestCoverageTarget"],
196
- "targetTypes": ["BusinessProcess", "CoverageRequirement", "TestCaseSketch"],
197
- "examples": [
198
- {
199
- "source": "BusinessProcess",
200
- "target": "BusinessProcess",
201
- "description": "One business process flows to the next in sequence"
202
- },
203
- {
204
- "source": "TestCoverageTarget",
205
- "target": "CoverageRequirement",
206
- "description": "Target flows to requirements that specify its coverage",
207
- "layer": "12-testing"
208
- },
209
- {
210
- "source": "CoverageRequirement",
211
- "target": "TestCaseSketch",
212
- "description": "Requirement flows to sketches that implement it",
213
- "layer": "12-testing"
214
- }
215
- ]
216
- },
217
- {
218
- "relationshipTypeId": "serving",
219
- "sourceTypes": ["BusinessService", "ContextVariation", "InputSpacePartition"],
220
- "targetTypes": ["BusinessActor", "TestCoverageTarget"],
221
- "examples": [
222
- {
223
- "source": "BusinessService",
224
- "target": "BusinessActor",
225
- "description": "Business service serves business actor"
226
- },
227
- {
228
- "source": "InputSpacePartition",
229
- "target": "TestCoverageTarget",
230
- "description": "Partition serves target by defining testable input space",
231
- "layer": "12-testing"
232
- },
233
- {
234
- "source": "ContextVariation",
235
- "target": "TestCoverageTarget",
236
- "description": "Context serves target by defining execution environments",
237
- "layer": "12-testing"
238
- }
239
- ]
240
- },
241
- {
242
- "relationshipTypeId": "access",
243
- "sourceTypes": ["BusinessProcess", "CoverageRequirement", "TestCaseSketch"],
244
- "targetTypes": ["BusinessObject", "InputPartitionSelection", "InputSelection"],
245
- "examples": [
246
- {
247
- "source": "BusinessProcess",
248
- "target": "BusinessObject",
249
- "description": "Business process accesses business object data"
250
- },
251
- {
252
- "source": "TestCaseSketch",
253
- "target": "InputSelection",
254
- "description": "Test sketch accesses input selections for test execution",
255
- "layer": "12-testing"
256
- },
257
- {
258
- "source": "CoverageRequirement",
259
- "target": "InputPartitionSelection",
260
- "description": "Requirement accesses partition selections for coverage",
261
- "layer": "12-testing"
262
- }
263
- ]
264
- },
265
- {
266
- "relationshipTypeId": "uses",
267
- "sourceTypes": ["ApplicationComponent"],
268
- "targetTypes": ["TechnologyService"],
269
- "examples": [
270
- {
271
- "source": "ApplicationComponent",
272
- "target": "TechnologyService",
273
- "description": "Application component uses technology service"
274
- }
275
- ]
276
- },
277
- {
278
- "relationshipTypeId": "supports-goals",
279
- "sourceTypes": ["BusinessService", "Operation"],
280
- "targetTypes": ["Goal"],
281
- "examples": [
282
- {
283
- "source": "BusinessService",
284
- "sourceLayer": "02-business",
285
- "target": "Goal",
286
- "targetLayer": "01-motivation",
287
- "value": "goal-revenue-growth",
288
- "description": "Payment service supports revenue growth goal"
289
- },
290
- {
291
- "source": "Operation",
292
- "sourceLayer": "06-api",
293
- "target": "Goal",
294
- "targetLayer": "01-motivation",
295
- "value": "goal-customer-satisfaction",
296
- "description": "GET /products operation supports customer satisfaction goal"
297
- }
298
- ]
299
- },
300
- {
301
- "relationshipTypeId": "fulfills-requirements",
302
- "sourceTypes": ["ApplicationService", "Operation"],
303
- "targetTypes": ["Requirement"],
304
- "examples": [
305
- {
306
- "source": "ApplicationService",
307
- "target": "Requirement",
308
- "description": "OAuth service fulfills authentication requirement"
309
- },
310
- {
311
- "source": "Operation",
312
- "sourceLayer": "06-api",
313
- "target": "Requirement",
314
- "targetLayer": "01-motivation",
315
- "value": "req-product-creation-capability",
316
- "description": "POST /products operation fulfills product creation requirement"
317
- }
318
- ]
319
- },
320
- {
321
- "relationshipTypeId": "delivers-value",
322
- "sourceTypes": ["BusinessService"],
323
- "targetTypes": ["Value"],
324
- "examples": [
325
- {
326
- "source": "BusinessService",
327
- "target": "Value",
328
- "description": "Loyalty program delivers customer retention value"
329
- }
330
- ]
331
- },
332
- {
333
- "relationshipTypeId": "governed-by-principles",
334
- "sourceTypes": ["APIOperation"],
335
- "targetTypes": ["Principle"],
336
- "examples": [
337
- {
338
- "source": "APIOperation",
339
- "target": "Principle",
340
- "description": "REST API governed by RESTful design principles"
341
- }
342
- ]
343
- }
344
- ]
345
- },
346
- "crossLayerRelationships": {
347
- "$comment": "Relationships to/from entities in other layers",
348
- "outgoing": [
349
- {
350
- "id": "archimate-application-master-data-source",
351
- "predicate": "master-data-source",
352
- "inversePredicate": "referenced-by",
353
- "targetLayer": "04-application",
354
- "targetTypes": ["MasterDataSource"],
355
- "sourceTypes": ["BusinessObject"],
356
- "fieldPath": "application.master-data-source",
357
- "cardinality": "single",
358
- "format": "string",
359
- "strength": "medium",
360
- "required": false,
361
- "description": "BusinessObject master data source from DataObject",
362
- "examples": []
363
- },
364
- {
365
- "id": "archimate-application-process-steps",
366
- "predicate": "process-steps",
367
- "inversePredicate": "referenced-by",
368
- "targetLayer": "04-application",
369
- "targetTypes": ["ProcessStep"],
370
- "sourceTypes": ["BusinessProcess"],
371
- "fieldPath": "application.process-steps",
372
- "cardinality": "array",
373
- "format": "reference",
374
- "strength": "medium",
375
- "required": false,
376
- "description": "which specific ApplicationProcess steps realize this business process",
377
- "examples": []
378
- },
379
- {
380
- "id": "archimate-application-realized-by-process",
381
- "predicate": "realized-by-process",
382
- "inversePredicate": "referenced-by",
383
- "targetLayer": "04-application",
384
- "targetTypes": ["RealizedByProces"],
385
- "sourceTypes": ["BusinessProcess"],
386
- "fieldPath": "application.realized-by-process",
387
- "cardinality": "single",
388
- "format": "reference",
389
- "strength": "medium",
390
- "required": false,
391
- "description": "ApplicationService - **BusinessProcess** automated by ApplicationProcess",
392
- "examples": []
393
- },
394
- {
395
- "id": "archimate-application-represented-by-dataobject",
396
- "predicate": "represented-by-dataobject",
397
- "inversePredicate": "referenced-by",
398
- "targetLayer": "04-application",
399
- "targetTypes": ["RepresentedByDataobject"],
400
- "sourceTypes": ["BusinessObject"],
401
- "fieldPath": "application.represented-by-dataobject",
402
- "cardinality": "single",
403
- "format": "string",
404
- "strength": "medium",
405
- "required": false,
406
- "description": "BusinessObject represented in DataObject",
407
- "examples": []
408
- },
409
- {
410
- "id": "business-apm-business-metrics",
411
- "predicate": "business-metrics",
412
- "inversePredicate": "referenced-by",
413
- "targetLayer": "02-business",
414
- "targetTypes": ["BusinessMetric"],
415
- "sourceTypes": ["BusinessProcess"],
416
- "fieldPath": "apm.business-metrics",
417
- "cardinality": "array",
418
- "format": "reference",
419
- "strength": "medium",
420
- "required": false,
421
- "description": "comma-separated business metric IDs this service tracks",
422
- "examples": [
423
- {
424
- "elementType": "BusinessProcess",
425
- "elementId": "order-process",
426
- "elementName": "Order Fulfillment Process",
427
- "fieldPath": "apm.business-metrics",
428
- "value": "metric-order-fulfillment-time,metric-order-success-rate",
429
- "layer": "02-business"
430
- }
431
- ]
432
- },
433
- {
434
- "id": "data-governance-owner",
435
- "predicate": "governance-owner",
436
- "inversePredicate": "referenced-by",
437
- "targetLayer": "07-data-model",
438
- "targetTypes": ["GovernanceOwner"],
439
- "sourceTypes": ["BusinessObject"],
440
- "fieldPath": "data.governance-owner",
441
- "cardinality": "single",
442
- "format": "reference",
443
- "strength": "medium",
444
- "required": false,
445
- "description": "BusinessObject ownership by BusinessActor",
446
- "examples": [
447
- {
448
- "elementType": "BusinessObject",
449
- "elementId": "order-object",
450
- "elementName": "Order",
451
- "fieldPath": "data.governance-owner",
452
- "value": "sales-rep",
453
- "layer": "02-business"
454
- }
455
- ]
456
- },
457
- {
458
- "id": "motivation-delivers-value",
459
- "predicate": "delivers-value",
460
- "inversePredicate": "delivered-by",
461
- "targetLayer": "01-motivation",
462
- "targetTypes": ["DeliversValue"],
463
- "sourceTypes": ["BusinessService"],
464
- "fieldPath": "motivation.delivers-value",
465
- "cardinality": "array",
466
- "format": "reference",
467
- "strength": "medium",
468
- "required": false,
469
- "description": "BusinessService delivers Value",
470
- "examples": [
471
- {
472
- "elementType": "BusinessService",
473
- "elementId": "order-service",
474
- "elementName": "Order Processing Service",
475
- "fieldPath": "motivation.delivers-value",
476
- "value": "value-customer-convenience,value-operational-efficiency",
477
- "layer": "02-business"
478
- },
479
- {
480
- "elementType": "ApplicationService",
481
- "elementId": "product-service",
482
- "elementName": "product-service",
483
- "fieldPath": "motivation.delivers-value",
484
- "value": "value-customer-convenience",
485
- "layer": "04-application"
486
- }
487
- ]
488
- },
489
- {
490
- "id": "motivation-governed-by-principles",
491
- "predicate": "governed-by-principles",
492
- "inversePredicate": "governs",
493
- "targetLayer": "01-motivation",
494
- "targetTypes": ["GovernedByPrinciple"],
495
- "sourceTypes": ["BusinessService"],
496
- "fieldPath": "motivation.governed-by-principles",
497
- "cardinality": "array",
498
- "format": "reference",
499
- "strength": "high",
500
- "required": false,
501
- "description": "BusinessService governed by Principles",
502
- "examples": [
503
- {
504
- "elementType": "BusinessService",
505
- "elementId": "order-service",
506
- "elementName": "Order Processing Service",
507
- "fieldPath": "motivation.governed-by-principles",
508
- "value": "principle-customer-first,principle-automation",
509
- "layer": "02-business"
510
- },
511
- {
512
- "elementType": "ApplicationService",
513
- "elementId": "product-service",
514
- "elementName": "product-service",
515
- "fieldPath": "motivation.governed-by-principles",
516
- "value": "principle-api-first,principle-cloud-native",
517
- "layer": "04-application"
518
- }
519
- ]
520
- },
521
- {
522
- "id": "motivation-supports-goals",
523
- "predicate": "supports-goals",
524
- "inversePredicate": "supported-by",
525
- "targetLayer": "01-motivation",
526
- "targetTypes": ["SupportsGoal"],
527
- "sourceTypes": ["BusinessService"],
528
- "fieldPath": "motivation.supports-goals",
529
- "cardinality": "array",
530
- "format": "reference",
531
- "strength": "high",
532
- "required": false,
533
- "description": "BusinessService supports Goals",
534
- "examples": [
535
- {
536
- "elementType": "BusinessService",
537
- "elementId": "order-service",
538
- "elementName": "Order Processing Service",
539
- "fieldPath": "motivation.supports-goals",
540
- "value": "goal-customer-satisfaction,goal-revenue-growth",
541
- "layer": "02-business"
542
- },
543
- {
544
- "elementType": "ApplicationService",
545
- "elementId": "product-service",
546
- "elementName": "product-service",
547
- "fieldPath": "motivation.supports-goals",
548
- "value": "goal-product-catalog-accuracy,goal-customer-satisfaction",
549
- "layer": "04-application"
550
- }
551
- ]
552
- },
553
- {
554
- "id": "security-classification",
555
- "predicate": "classification",
556
- "inversePredicate": "referenced-by",
557
- "targetLayer": "03-security",
558
- "targetTypes": ["Classification"],
559
- "sourceTypes": ["Artifact"],
560
- "fieldPath": "security.classification",
561
- "cardinality": "single",
562
- "format": "string",
563
- "strength": "low",
564
- "required": false,
565
- "description": "Links to Classification in target layer",
566
- "examples": [
567
- {
568
- "elementType": "Artifact",
569
- "elementId": "product-db",
570
- "elementName": "product-db",
571
- "fieldPath": "security.classification",
572
- "value": "internal",
573
- "layer": "05-technology"
574
- },
575
- {
576
- "elementType": "Artifact",
577
- "elementId": "customer-db",
578
- "elementName": "customer-db",
579
- "fieldPath": "security.classification",
580
- "value": "restricted",
581
- "layer": "05-technology"
582
- }
583
- ]
584
- },
585
- {
586
- "id": "security-process-security-controls",
587
- "predicate": "security-controls",
588
- "inversePredicate": "referenced-by",
589
- "targetLayer": "03-security",
590
- "targetTypes": ["SecurityControl"],
591
- "sourceTypes": ["BusinessProcess"],
592
- "fieldPath": "process.security-controls",
593
- "cardinality": "array",
594
- "format": "string",
595
- "strength": "high",
596
- "required": false,
597
- "description": "security control references",
598
- "examples": [
599
- {
600
- "elementType": "BusinessProcess",
601
- "elementId": "order-process",
602
- "elementName": "Order Fulfillment Process",
603
- "fieldPath": "process.security-controls",
604
- "value": "control-order-approval,control-payment-verification",
605
- "layer": "02-business"
606
- }
607
- ]
608
- },
609
- {
610
- "id": "security-process-separation-of-duty",
611
- "predicate": "separation-of-duty",
612
- "inversePredicate": "referenced-by",
613
- "targetLayer": "03-security",
614
- "targetTypes": ["SeparationOfDuty"],
615
- "sourceTypes": ["BusinessProcess"],
616
- "fieldPath": "process.separation-of-duty",
617
- "cardinality": "single",
618
- "format": "boolean",
619
- "strength": "medium",
620
- "required": false,
621
- "description": "Links to SeparationOfDuty in target layer",
622
- "examples": [
623
- {
624
- "elementType": "BusinessProcess",
625
- "elementId": "order-process",
626
- "elementName": "Order Fulfillment Process",
627
- "fieldPath": "process.separation-of-duty",
628
- "value": "true",
629
- "layer": "02-business"
630
- }
631
- ]
632
- }
633
- ],
634
- "incoming": [
635
- {
636
- "id": "business-apm-business-metrics",
637
- "predicate": "referenced-by",
638
- "inversePredicate": "business-metrics",
639
- "sourceLayer": "02-business",
640
- "sourceTypes": ["BusinessProcess"],
641
- "targetTypes": ["BusinessMetric"],
642
- "fieldPath": "apm.business-metrics",
643
- "cardinality": "array",
644
- "description": "Inverse of: comma-separated business metric IDs this service tracks"
645
- },
646
- {
647
- "id": "business-apm-business-metrics",
648
- "predicate": "referenced-by",
649
- "inversePredicate": "business-metrics",
650
- "sourceLayer": "04-application",
651
- "sourceTypes": ["ApplicationService"],
652
- "targetTypes": ["BusinessMetric"],
653
- "fieldPath": "apm.business-metrics",
654
- "cardinality": "array",
655
- "description": "Inverse of: comma-separated business metric IDs this service tracks"
656
- },
657
- {
658
- "id": "business-apm-business-metrics",
659
- "predicate": "referenced-by",
660
- "inversePredicate": "business-metrics",
661
- "sourceLayer": "06-api",
662
- "sourceTypes": ["Operation", "SecurityScheme"],
663
- "targetTypes": ["BusinessMetric"],
664
- "fieldPath": "apm.business-metrics",
665
- "cardinality": "array",
666
- "description": "Inverse of: comma-separated business metric IDs this service tracks"
667
- },
668
- {
669
- "id": "business-interface-ref",
670
- "predicate": "referenced-by",
671
- "inversePredicate": "business-interface-ref",
672
- "sourceLayer": "06-api",
673
- "sourceTypes": ["Operation", "SecurityScheme"],
674
- "targetTypes": ["BusinessInterface"],
675
- "fieldPath": "x-business-interface-ref",
676
- "cardinality": "single",
677
- "description": "Inverse of: string (BusinessInterface.id, optional)"
678
- },
679
- {
680
- "id": "business-object-ref",
681
- "predicate": "referenced-by",
682
- "inversePredicate": "business-object-ref",
683
- "sourceLayer": "07-data-model",
684
- "sourceTypes": ["JSONSchema", "x-business-object-ref Extension", "x-security Extension"],
685
- "targetTypes": ["BusinessObject"],
686
- "fieldPath": "x-business-object-ref",
687
- "cardinality": "single",
688
- "description": "Inverse of: string (BusinessObject.id reference, optional)"
689
- },
690
- {
691
- "id": "business-service-ref",
692
- "predicate": "referenced-by",
693
- "inversePredicate": "business-service-ref",
694
- "sourceLayer": "06-api",
695
- "sourceTypes": ["Operation", "SecurityScheme"],
696
- "targetTypes": ["BusinessService"],
697
- "fieldPath": "x-business-service-ref",
698
- "cardinality": "single",
699
- "description": "Inverse of: string (BusinessService.id, optional)"
700
- }
701
- ]
702
- },
703
- "type": "object",
704
- "properties": {
705
- "business-actors": {
706
- "type": "array",
707
- "description": "Collection of BusinessActor entities",
708
- "items": {
709
- "$ref": "#/definitions/BusinessActor"
710
- }
711
- },
712
- "business-roles": {
713
- "type": "array",
714
- "description": "Collection of BusinessRole entities",
715
- "items": {
716
- "$ref": "#/definitions/BusinessRole"
717
- }
718
- },
719
- "business-collaborations": {
720
- "type": "array",
721
- "description": "Collection of BusinessCollaboration entities",
722
- "items": {
723
- "$ref": "#/definitions/BusinessCollaboration"
724
- }
725
- },
726
- "business-interfaces": {
727
- "type": "array",
728
- "description": "Collection of BusinessInterface entities",
729
- "items": {
730
- "$ref": "#/definitions/BusinessInterface"
731
- }
732
- },
733
- "business-processes": {
734
- "type": "array",
735
- "description": "Collection of BusinessProcess entities",
736
- "items": {
737
- "$ref": "#/definitions/BusinessProcess"
738
- }
739
- },
740
- "business-functions": {
741
- "type": "array",
742
- "description": "Collection of BusinessFunction entities",
743
- "items": {
744
- "$ref": "#/definitions/BusinessFunction"
745
- }
746
- },
747
- "business-interactions": {
748
- "type": "array",
749
- "description": "Collection of BusinessInteraction entities",
750
- "items": {
751
- "$ref": "#/definitions/BusinessInteraction"
752
- }
753
- },
754
- "business-events": {
755
- "type": "array",
756
- "description": "Collection of BusinessEvent entities",
757
- "items": {
758
- "$ref": "#/definitions/BusinessEvent"
759
- }
760
- },
761
- "business-services": {
762
- "type": "array",
763
- "description": "Collection of BusinessService entities",
764
- "items": {
765
- "$ref": "#/definitions/BusinessService"
766
- }
767
- },
768
- "business-objects": {
769
- "type": "array",
770
- "description": "Collection of BusinessObject entities",
771
- "items": {
772
- "$ref": "#/definitions/BusinessObject"
773
- }
774
- },
775
- "contracts": {
776
- "type": "array",
777
- "description": "Collection of Contract entities",
778
- "items": {
779
- "$ref": "#/definitions/Contract"
780
- }
781
- },
782
- "representations": {
783
- "type": "array",
784
- "description": "Collection of Representation entities",
785
- "items": {
786
- "$ref": "#/definitions/Representation"
787
- }
788
- },
789
- "products": {
790
- "type": "array",
791
- "description": "Collection of Product entities",
792
- "items": {
793
- "$ref": "#/definitions/Product"
794
- }
795
- }
796
- },
797
- "definitions": {
798
- "EventType": {
799
- "type": "string",
800
- "enum": ["time-driven", "state-change", "external"]
801
- },
802
- "RepresentationFormat": {
803
- "type": "string",
804
- "enum": ["document", "report", "form", "message"]
805
- },
806
- "BusinessActor": {
807
- "type": "object",
808
- "description": "An organizational entity capable of performing behavior",
809
- "required": ["id", "name"],
810
- "properties": {
811
- "id": {
812
- "type": "string",
813
- "format": "uuid",
814
- "minLength": 1
815
- },
816
- "name": {
817
- "type": "string",
818
- "minLength": 1
819
- },
820
- "documentation": {
821
- "type": "string",
822
- "minLength": 1
823
- }
824
- }
825
- },
826
- "BusinessRole": {
827
- "type": "object",
828
- "description": "The responsibility for performing specific behavior",
829
- "required": ["id", "name"],
830
- "properties": {
831
- "id": {
832
- "type": "string",
833
- "format": "uuid",
834
- "minLength": 1
835
- },
836
- "name": {
837
- "type": "string",
838
- "minLength": 1
839
- },
840
- "documentation": {
841
- "type": "string",
842
- "minLength": 1
843
- }
844
- }
845
- },
846
- "BusinessCollaboration": {
847
- "type": "object",
848
- "description": "Aggregate of business roles working together",
849
- "required": ["id", "name"],
850
- "properties": {
851
- "id": {
852
- "type": "string",
853
- "format": "uuid",
854
- "minLength": 1
855
- },
856
- "name": {
857
- "type": "string",
858
- "minLength": 1
859
- },
860
- "documentation": {
861
- "type": "string",
862
- "minLength": 1
863
- },
864
- "properties": {
865
- "type": "object",
866
- "description": "Cross-layer properties",
867
- "properties": {
868
- "collaboration": {
869
- "type": "object",
870
- "properties": {
871
- "security-actors": {
872
- "type": "string",
873
- "description": "optional, Security Actor IDs"
874
- },
875
- "shared-permissions": {
876
- "type": "string",
877
- "description": "optional"
878
- }
879
- }
880
- }
881
- }
882
- }
883
- }
884
- },
885
- "BusinessInterface": {
886
- "type": "object",
887
- "description": "Point of access where business service is available",
888
- "required": ["id", "name"],
889
- "properties": {
890
- "id": {
891
- "type": "string",
892
- "format": "uuid",
893
- "minLength": 1
894
- },
895
- "name": {
896
- "type": "string",
897
- "minLength": 1
898
- },
899
- "documentation": {
900
- "type": "string",
901
- "minLength": 1
902
- },
903
- "properties": {
904
- "type": "object",
905
- "description": "Cross-layer properties",
906
- "properties": {
907
- "interface": {
908
- "type": "object",
909
- "properties": {
910
- "api-operations": {
911
- "type": "string",
912
- "description": "optional, comma-separated OpenAPI operation IDs"
913
- },
914
- "digital-channel": {
915
- "type": "string",
916
- "description": "optional"
917
- }
918
- }
919
- }
920
- }
921
- }
922
- }
923
- },
924
- "BusinessProcess": {
925
- "type": "object",
926
- "description": "Sequence of business behaviors achieving a result",
927
- "required": ["id", "name"],
928
- "properties": {
929
- "id": {
930
- "type": "string",
931
- "format": "uuid",
932
- "minLength": 1
933
- },
934
- "name": {
935
- "type": "string",
936
- "minLength": 1
937
- },
938
- "documentation": {
939
- "type": "string",
940
- "minLength": 1
941
- },
942
- "properties": {
943
- "type": "object",
944
- "description": "Cross-layer properties",
945
- "properties": {
946
- "process": {
947
- "type": "object",
948
- "properties": {
949
- "bpmn": {
950
- "type": "string",
951
- "description": "optional"
952
- },
953
- "security-controls": {
954
- "type": "string",
955
- "description": "optional, security control references"
956
- },
957
- "audit-required": {
958
- "type": "string",
959
- "description": "optional"
960
- },
961
- "separation-of-duty": {
962
- "type": "string",
963
- "description": "optional"
964
- },
965
- "kpi-target": {
966
- "type": "string",
967
- "description": "optional"
968
- }
969
- }
970
- },
971
- "apm": {
972
- "type": "object",
973
- "properties": {
974
- "business-metrics": {
975
- "type": "string",
976
- "description": "optional, business metric IDs"
977
- }
978
- }
979
- },
980
- "application": {
981
- "type": "object",
982
- "properties": {
983
- "realized-by-process": {
984
- "type": "string",
985
- "description": "optional, ApplicationProcess ID that automates this business process"
986
- },
987
- "process-steps": {
988
- "type": "string",
989
- "description": "optional, which specific ApplicationProcess steps realize this business process"
990
- }
991
- }
992
- }
993
- }
994
- }
995
- }
996
- },
997
- "BusinessFunction": {
998
- "type": "object",
999
- "description": "Collection of business behavior based on criteria",
1000
- "required": ["id", "name"],
1001
- "properties": {
1002
- "id": {
1003
- "type": "string",
1004
- "format": "uuid",
1005
- "minLength": 1
1006
- },
1007
- "name": {
1008
- "type": "string",
1009
- "minLength": 1
1010
- },
1011
- "documentation": {
1012
- "type": "string",
1013
- "minLength": 1
1014
- }
1015
- }
1016
- },
1017
- "BusinessInteraction": {
1018
- "type": "object",
1019
- "description": "Unit of collective behavior by collaboration",
1020
- "required": ["id", "name"],
1021
- "properties": {
1022
- "id": {
1023
- "type": "string",
1024
- "format": "uuid",
1025
- "minLength": 1
1026
- },
1027
- "name": {
1028
- "type": "string",
1029
- "minLength": 1
1030
- },
1031
- "documentation": {
1032
- "type": "string",
1033
- "minLength": 1
1034
- }
1035
- }
1036
- },
1037
- "BusinessEvent": {
1038
- "type": "object",
1039
- "description": "Something that happens and influences behavior",
1040
- "required": ["id", "name", "type"],
1041
- "properties": {
1042
- "id": {
1043
- "type": "string",
1044
- "format": "uuid",
1045
- "minLength": 1
1046
- },
1047
- "name": {
1048
- "type": "string",
1049
- "minLength": 1
1050
- },
1051
- "documentation": {
1052
- "type": "string",
1053
- "minLength": 1
1054
- },
1055
- "type": {
1056
- "$ref": "#/definitions/EventType"
1057
- },
1058
- "properties": {
1059
- "type": "object",
1060
- "description": "Cross-layer properties",
1061
- "properties": {
1062
- "event": {
1063
- "type": "object",
1064
- "properties": {
1065
- "application-ref": {
1066
- "type": "string",
1067
- "description": "optional, reference to ApplicationEvent"
1068
- },
1069
- "topic": {
1070
- "type": "string",
1071
- "description": "optional, event bus topic"
1072
- }
1073
- }
1074
- }
1075
- }
1076
- }
1077
- }
1078
- },
1079
- "BusinessService": {
1080
- "type": "object",
1081
- "description": "Service that fulfills a business need",
1082
- "required": ["id", "name"],
1083
- "properties": {
1084
- "id": {
1085
- "type": "string",
1086
- "format": "uuid",
1087
- "minLength": 1
1088
- },
1089
- "name": {
1090
- "type": "string",
1091
- "minLength": 1
1092
- },
1093
- "documentation": {
1094
- "type": "string",
1095
- "minLength": 1
1096
- },
1097
- "properties": {
1098
- "type": "object",
1099
- "description": "Cross-layer properties",
1100
- "properties": {
1101
- "sla": {
1102
- "type": "object",
1103
- "properties": {
1104
- "availability": {
1105
- "type": "string",
1106
- "description": "optional"
1107
- },
1108
- "response-time": {
1109
- "type": "string",
1110
- "description": "optional"
1111
- }
1112
- }
1113
- },
1114
- "motivation": {
1115
- "type": "object",
1116
- "properties": {
1117
- "delivers-value": {
1118
- "type": "string",
1119
- "description": "optional, comma-separated Value IDs"
1120
- },
1121
- "supports-goals": {
1122
- "type": "string",
1123
- "description": "optional, comma-separated Goal IDs"
1124
- },
1125
- "governed-by-principles": {
1126
- "type": "string",
1127
- "description": "optional, comma-separated Principle IDs"
1128
- }
1129
- }
1130
- }
1131
- }
1132
- }
1133
- }
1134
- },
1135
- "BusinessObject": {
1136
- "type": "object",
1137
- "description": "Concept used within business domain",
1138
- "required": ["id", "name"],
1139
- "properties": {
1140
- "id": {
1141
- "type": "string",
1142
- "format": "uuid",
1143
- "minLength": 1
1144
- },
1145
- "name": {
1146
- "type": "string",
1147
- "minLength": 1
1148
- },
1149
- "documentation": {
1150
- "type": "string",
1151
- "minLength": 1
1152
- },
1153
- "properties": {
1154
- "type": "object",
1155
- "description": "Cross-layer properties",
1156
- "properties": {
1157
- "spec": {
1158
- "type": "object",
1159
- "properties": {
1160
- "schema": {
1161
- "type": "string",
1162
- "description": "optional"
1163
- },
1164
- "schema-id": {
1165
- "type": "string",
1166
- "description": "optional, formal reference to Data Model Layer"
1167
- }
1168
- }
1169
- },
1170
- "data": {
1171
- "type": "object",
1172
- "properties": {
1173
- "governance-owner": {
1174
- "type": "string",
1175
- "description": "optional, data owner reference"
1176
- }
1177
- }
1178
- },
1179
- "application": {
1180
- "type": "object",
1181
- "properties": {
1182
- "represented-by-dataobject": {
1183
- "type": "string",
1184
- "description": "optional, DataObject ID that represents this business concept in applications"
1185
- },
1186
- "master-data-source": {
1187
- "type": "string",
1188
- "description": "optional, authoritative DataObject for this business object"
1189
- }
1190
- }
1191
- }
1192
- }
1193
- }
1194
- }
1195
- },
1196
- "Contract": {
1197
- "type": "object",
1198
- "description": "Formal specification of agreement",
1199
- "required": ["id", "name"],
1200
- "properties": {
1201
- "id": {
1202
- "type": "string",
1203
- "format": "uuid",
1204
- "minLength": 1
1205
- },
1206
- "name": {
1207
- "type": "string",
1208
- "minLength": 1
1209
- },
1210
- "documentation": {
1211
- "type": "string",
1212
- "minLength": 1
1213
- },
1214
- "properties": {
1215
- "type": "object",
1216
- "description": "Cross-layer properties",
1217
- "properties": {
1218
- "contract": {
1219
- "type": "object",
1220
- "properties": {
1221
- "constraint-refs": {
1222
- "type": "string",
1223
- "description": "optional, comma-separated Constraint IDs"
1224
- },
1225
- "sla-metrics": {
1226
- "type": "string",
1227
- "description": "optional, measurable SLA commitments"
1228
- }
1229
- }
1230
- }
1231
- }
1232
- }
1233
- }
1234
- },
1235
- "Representation": {
1236
- "type": "object",
1237
- "description": "Perceptible form of business object",
1238
- "required": ["id", "name", "format"],
1239
- "properties": {
1240
- "id": {
1241
- "type": "string",
1242
- "format": "uuid",
1243
- "minLength": 1
1244
- },
1245
- "name": {
1246
- "type": "string",
1247
- "minLength": 1
1248
- },
1249
- "documentation": {
1250
- "type": "string",
1251
- "minLength": 1
1252
- },
1253
- "format": {
1254
- "$ref": "#/definitions/RepresentationFormat"
1255
- }
1256
- }
1257
- },
1258
- "Product": {
1259
- "type": "object",
1260
- "description": "Coherent collection of services with a value",
1261
- "required": ["id", "name"],
1262
- "properties": {
1263
- "id": {
1264
- "type": "string",
1265
- "format": "uuid",
1266
- "minLength": 1
1267
- },
1268
- "name": {
1269
- "type": "string",
1270
- "minLength": 1
1271
- },
1272
- "documentation": {
1273
- "type": "string",
1274
- "minLength": 1
1275
- },
1276
- "services": {
1277
- "type": "array",
1278
- "description": "Contains relationship",
1279
- "items": {
1280
- "type": "string"
1281
- }
1282
- },
1283
- "contracts": {
1284
- "type": "array",
1285
- "description": "Contains relationship",
1286
- "items": {
1287
- "type": "string"
1288
- }
1289
- }
1290
- }
1291
- }
1292
- }
1293
- }