@documentation-robotics/cli 0.1.0 → 0.1.5

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 +206 -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 +155 -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 +37 -13
  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,1091 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://example.com/schemas/12-testing-layer.schema.json",
4
- "title": "Testing Layer Schema",
5
- "description": "Models test coverage requirements, input space partitioning, and coverage criteria to ensure comprehensive testing with traceability to requirements.",
6
- "layerMetadata": {
7
- "layerId": "12-testing",
8
- "layerName": "Testing 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": ["CoverageRequirement", "TestCoverageModel", "TestCoverageTarget"],
19
- "targetTypes": ["InputPartitionSelection", "OutcomeCategory", "TestCoverageTarget"],
20
- "examples": [
21
- {
22
- "source": "TestCoverageModel",
23
- "target": "TestCoverageTarget",
24
- "description": "Coverage model composes targets defining what needs testing"
25
- },
26
- {
27
- "source": "TestCoverageTarget",
28
- "target": "OutcomeCategory",
29
- "description": "Coverage target composes expected outcome categories"
30
- },
31
- {
32
- "source": "CoverageRequirement",
33
- "target": "InputPartitionSelection",
34
- "description": "Coverage requirement composes partition value selections"
35
- }
36
- ]
37
- },
38
- {
39
- "relationshipTypeId": "aggregation",
40
- "sourceTypes": ["CoverageRequirement", "InputPartitionSelection"],
41
- "targetTypes": ["ContextVariation", "PartitionValue"],
42
- "examples": [
43
- {
44
- "source": "InputPartitionSelection",
45
- "target": "PartitionValue",
46
- "description": "Partition selection aggregates multiple partition values to cover"
47
- },
48
- {
49
- "source": "CoverageRequirement",
50
- "target": "ContextVariation",
51
- "description": "Requirement aggregates selected contexts for testing"
52
- }
53
- ]
54
- },
55
- {
56
- "relationshipTypeId": "triggering",
57
- "sourceTypes": ["CoverageGap", "PartitionDependency"],
58
- "targetTypes": ["CoverageRequirement", "PartitionValue"],
59
- "examples": [
60
- {
61
- "source": "PartitionDependency",
62
- "target": "PartitionValue",
63
- "description": "Dependency condition triggers inclusion/exclusion of partition values"
64
- },
65
- {
66
- "source": "CoverageGap",
67
- "target": "CoverageRequirement",
68
- "description": "Identified gap triggers need for additional coverage"
69
- }
70
- ]
71
- },
72
- {
73
- "relationshipTypeId": "flow",
74
- "sourceTypes": ["CoverageRequirement", "TestCoverageTarget"],
75
- "targetTypes": ["CoverageRequirement", "TestCaseSketch"],
76
- "examples": [
77
- {
78
- "source": "TestCoverageTarget",
79
- "target": "CoverageRequirement",
80
- "description": "Target flows to requirements that specify its coverage"
81
- },
82
- {
83
- "source": "CoverageRequirement",
84
- "target": "TestCaseSketch",
85
- "description": "Requirement flows to sketches that implement it"
86
- }
87
- ]
88
- },
89
- {
90
- "relationshipTypeId": "serving",
91
- "sourceTypes": ["ContextVariation", "InputSpacePartition"],
92
- "targetTypes": ["TestCoverageTarget"],
93
- "examples": [
94
- {
95
- "source": "InputSpacePartition",
96
- "target": "TestCoverageTarget",
97
- "description": "Partition serves target by defining testable input space"
98
- },
99
- {
100
- "source": "ContextVariation",
101
- "target": "TestCoverageTarget",
102
- "description": "Context serves target by defining execution environments"
103
- }
104
- ]
105
- },
106
- {
107
- "relationshipTypeId": "access",
108
- "sourceTypes": ["CoverageRequirement", "TestCaseSketch"],
109
- "targetTypes": ["InputPartitionSelection", "InputSelection"],
110
- "examples": [
111
- {
112
- "source": "TestCaseSketch",
113
- "target": "InputSelection",
114
- "description": "Test sketch accesses input selections for test execution"
115
- },
116
- {
117
- "source": "CoverageRequirement",
118
- "target": "InputPartitionSelection",
119
- "description": "Requirement accesses partition selections for coverage"
120
- }
121
- ]
122
- },
123
- {
124
- "relationshipTypeId": "reference",
125
- "sourceTypes": ["CoverageRequirement", "InputSelection", "TestCaseSketch"],
126
- "targetTypes": ["CoverageRequirement", "PartitionValue", "TestCoverageTarget"],
127
- "examples": [
128
- {
129
- "source": "TestCaseSketch",
130
- "target": "CoverageRequirement",
131
- "description": "Test case sketch references coverage requirement it satisfies"
132
- },
133
- {
134
- "source": "CoverageRequirement",
135
- "target": "TestCoverageTarget",
136
- "description": "Coverage requirement references target it covers"
137
- },
138
- {
139
- "source": "InputSelection",
140
- "target": "PartitionValue",
141
- "description": "Input selection references selected partition value"
142
- }
143
- ]
144
- },
145
- {
146
- "relationshipTypeId": "depends-on",
147
- "sourceTypes": ["CoverageRequirement", "TestCaseSketch"],
148
- "targetTypes": ["ContextVariation", "InputSpacePartition", "OutcomeCategory"],
149
- "examples": [
150
- {
151
- "source": "TestCaseSketch",
152
- "target": "ContextVariation",
153
- "description": "Test sketch depends on context for execution environment"
154
- },
155
- {
156
- "source": "TestCaseSketch",
157
- "target": "OutcomeCategory",
158
- "description": "Test sketch depends on expected outcome category"
159
- },
160
- {
161
- "source": "CoverageRequirement",
162
- "target": "InputSpacePartition",
163
- "description": "Requirement depends on partitions for coverage criteria"
164
- }
165
- ]
166
- },
167
- {
168
- "relationshipTypeId": "validates",
169
- "sourceTypes": ["TargetCoverageSummary", "TestCaseSketch"],
170
- "targetTypes": ["CoverageRequirement", "TestCoverageTarget"],
171
- "examples": [
172
- {
173
- "source": "TestCaseSketch",
174
- "target": "CoverageRequirement",
175
- "description": "Test sketch validates requirement is satisfied"
176
- },
177
- {
178
- "source": "TargetCoverageSummary",
179
- "target": "TestCoverageTarget",
180
- "description": "Summary validates coverage completeness of target"
181
- }
182
- ]
183
- }
184
- ]
185
- },
186
- "crossLayerRelationships": {
187
- "$comment": "Relationships to/from entities in other layers",
188
- "outgoing": [
189
- {
190
- "id": "testing-supports-goals",
191
- "predicate": "supports-goals",
192
- "inversePredicate": "supported-by",
193
- "targetLayer": "01-motivation",
194
- "targetTypes": ["Goal"],
195
- "sourceTypes": ["TestCoverageModel", "TestCaseSketch"],
196
- "fieldPath": "motivation.supports-goals",
197
- "cardinality": "array",
198
- "format": "uuid",
199
- "strength": "high",
200
- "required": false,
201
- "description": "Testing elements support strategic goals"
202
- },
203
- {
204
- "id": "testing-fulfills-requirements",
205
- "predicate": "fulfills-requirements",
206
- "inversePredicate": "fulfilled-by",
207
- "targetLayer": "01-motivation",
208
- "targetTypes": ["Requirement"],
209
- "sourceTypes": ["TestCoverageModel", "TestCaseSketch", "CoverageRequirement"],
210
- "fieldPath": "motivation.fulfills-requirements",
211
- "cardinality": "array",
212
- "format": "uuid",
213
- "strength": "high",
214
- "required": false,
215
- "description": "Testing elements fulfill requirements"
216
- },
217
- {
218
- "id": "testing-governed-by-principles",
219
- "predicate": "governed-by-principles",
220
- "inversePredicate": "governs",
221
- "targetLayer": "01-motivation",
222
- "targetTypes": ["Principle"],
223
- "sourceTypes": ["TestCoverageModel"],
224
- "fieldPath": "motivation.governed-by-principles",
225
- "cardinality": "array",
226
- "format": "uuid",
227
- "strength": "high",
228
- "required": false,
229
- "description": "Testing models governed by testing principles"
230
- },
231
- {
232
- "id": "testing-constrained-by",
233
- "predicate": "constrained-by",
234
- "inversePredicate": "constrains",
235
- "targetLayer": "01-motivation",
236
- "targetTypes": ["Constraint"],
237
- "sourceTypes": ["TestCoverageModel", "CoverageRequirement"],
238
- "fieldPath": "motivation.constrained-by",
239
- "cardinality": "array",
240
- "format": "uuid",
241
- "strength": "medium",
242
- "required": false,
243
- "description": "Testing elements constrained by limitations"
244
- }
245
- ],
246
- "incoming": []
247
- },
248
- "type": "object",
249
- "properties": {
250
- "test-coverage-models": {
251
- "type": "array",
252
- "description": "Collection of TestCoverageModel entities",
253
- "items": {
254
- "$ref": "#/definitions/TestCoverageModel"
255
- }
256
- },
257
- "test-coverage-targets": {
258
- "type": "array",
259
- "description": "Collection of TestCoverageTarget entities",
260
- "items": {
261
- "$ref": "#/definitions/TestCoverageTarget"
262
- }
263
- },
264
- "target-input-fields": {
265
- "type": "array",
266
- "description": "Collection of TargetInputField entities",
267
- "items": {
268
- "$ref": "#/definitions/TargetInputField"
269
- }
270
- },
271
- "input-space-partitions": {
272
- "type": "array",
273
- "description": "Collection of InputSpacePartition entities",
274
- "items": {
275
- "$ref": "#/definitions/InputSpacePartition"
276
- }
277
- },
278
- "partition-values": {
279
- "type": "array",
280
- "description": "Collection of PartitionValue entities",
281
- "items": {
282
- "$ref": "#/definitions/PartitionValue"
283
- }
284
- },
285
- "partition-dependencies": {
286
- "type": "array",
287
- "description": "Collection of PartitionDependency entities",
288
- "items": {
289
- "$ref": "#/definitions/PartitionDependency"
290
- }
291
- },
292
- "context-variations": {
293
- "type": "array",
294
- "description": "Collection of ContextVariation entities",
295
- "items": {
296
- "$ref": "#/definitions/ContextVariation"
297
- }
298
- },
299
- "environment-factors": {
300
- "type": "array",
301
- "description": "Collection of EnvironmentFactor entities",
302
- "items": {
303
- "$ref": "#/definitions/EnvironmentFactor"
304
- }
305
- },
306
- "outcome-categories": {
307
- "type": "array",
308
- "description": "Collection of OutcomeCategory entities",
309
- "items": {
310
- "$ref": "#/definitions/OutcomeCategory"
311
- }
312
- },
313
- "coverage-requirements": {
314
- "type": "array",
315
- "description": "Collection of CoverageRequirement entities",
316
- "items": {
317
- "$ref": "#/definitions/CoverageRequirement"
318
- }
319
- },
320
- "input-partition-selections": {
321
- "type": "array",
322
- "description": "Collection of InputPartitionSelection entities",
323
- "items": {
324
- "$ref": "#/definitions/InputPartitionSelection"
325
- }
326
- },
327
- "coverage-exclusions": {
328
- "type": "array",
329
- "description": "Collection of CoverageExclusion entities",
330
- "items": {
331
- "$ref": "#/definitions/CoverageExclusion"
332
- }
333
- },
334
- "test-case-sketches": {
335
- "type": "array",
336
- "description": "Collection of TestCaseSketch entities",
337
- "items": {
338
- "$ref": "#/definitions/TestCaseSketch"
339
- }
340
- },
341
- "input-selections": {
342
- "type": "array",
343
- "description": "Collection of InputSelection entities",
344
- "items": {
345
- "$ref": "#/definitions/InputSelection"
346
- }
347
- },
348
- "coverage-summaries": {
349
- "type": "array",
350
- "description": "Collection of CoverageSummary entities",
351
- "items": {
352
- "$ref": "#/definitions/CoverageSummary"
353
- }
354
- },
355
- "target-coverage-summaries": {
356
- "type": "array",
357
- "description": "Collection of TargetCoverageSummary entities",
358
- "items": {
359
- "$ref": "#/definitions/TargetCoverageSummary"
360
- }
361
- },
362
- "coverage-gaps": {
363
- "type": "array",
364
- "description": "Collection of CoverageGap entities",
365
- "items": {
366
- "$ref": "#/definitions/CoverageGap"
367
- }
368
- }
369
- },
370
- "definitions": {
371
- "TargetType": {
372
- "type": "string",
373
- "enum": [
374
- "workflow",
375
- "workflow-step",
376
- "form",
377
- "api-operation",
378
- "data-transform",
379
- "navigation-path",
380
- "integration",
381
- "composite"
382
- ]
383
- },
384
- "Priority": {
385
- "type": "string",
386
- "enum": ["critical", "high", "medium", "low"]
387
- },
388
- "FieldRelevance": {
389
- "type": "string",
390
- "enum": ["primary", "secondary", "contextual"]
391
- },
392
- "PresenceRule": {
393
- "type": "string",
394
- "enum": ["required", "optional", "conditional"]
395
- },
396
- "PartitionCategory": {
397
- "type": "string",
398
- "enum": ["typical", "boundary", "invalid", "None", "special"]
399
- },
400
- "DependencyEffect": {
401
- "type": "string",
402
- "enum": ["requires", "excludes", "enables", "modifies"]
403
- },
404
- "ContextType": {
405
- "type": "string",
406
- "enum": ["ui-entry", "api-entry", "event-triggered", "scheduled", "integration"]
407
- },
408
- "OutcomeType": {
409
- "type": "string",
410
- "enum": [
411
- "success",
412
- "validation-error",
413
- "authorization-denied",
414
- "not-found",
415
- "conflict",
416
- "precondition-failed",
417
- "idempotent-noop",
418
- "partial-success",
419
- "error"
420
- ]
421
- },
422
- "CoverageCriteria": {
423
- "type": "string",
424
- "enum": [
425
- "exhaustive",
426
- "pairwise",
427
- "each-choice",
428
- "boundary",
429
- "risk-based",
430
- "happy-path",
431
- "error-path"
432
- ]
433
- },
434
- "SketchStatus": {
435
- "type": "string",
436
- "enum": ["planned", "implemented", "automated", "manual", "blocked", "deprecated"]
437
- },
438
- "ImplementationFormat": {
439
- "type": "string",
440
- "enum": [
441
- "gherkin",
442
- "postman",
443
- "jest",
444
- "pytest",
445
- "playwright",
446
- "cypress",
447
- "robot",
448
- "manual",
449
- "other"
450
- ]
451
- },
452
- "GapSeverity": {
453
- "type": "string",
454
- "enum": ["critical", "high", "medium", "low"]
455
- },
456
- "TestCoverageModel": {
457
- "type": "object",
458
- "description": "Complete test coverage model for application",
459
- "required": ["id", "name", "version", "application"],
460
- "properties": {
461
- "id": {
462
- "type": "string",
463
- "format": "uuid",
464
- "minLength": 1
465
- },
466
- "name": {
467
- "type": "string",
468
- "minLength": 1
469
- },
470
- "version": {
471
- "type": "string",
472
- "minLength": 1
473
- },
474
- "application": {
475
- "type": "string",
476
- "minLength": 1
477
- },
478
- "description": {
479
- "type": "string",
480
- "minLength": 1
481
- },
482
- "coverageTargets": {
483
- "type": "array",
484
- "description": "Contains relationship",
485
- "items": {
486
- "type": "string"
487
- }
488
- },
489
- "inputSpacePartitions": {
490
- "type": "array",
491
- "description": "Contains relationship",
492
- "items": {
493
- "type": "string"
494
- }
495
- },
496
- "contextVariations": {
497
- "type": "array",
498
- "description": "Contains relationship",
499
- "items": {
500
- "type": "string"
501
- }
502
- },
503
- "coverageRequirements": {
504
- "type": "array",
505
- "description": "Contains relationship",
506
- "items": {
507
- "type": "string"
508
- }
509
- },
510
- "testCaseSketches": {
511
- "type": "array",
512
- "description": "Contains relationship",
513
- "items": {
514
- "type": "string"
515
- }
516
- }
517
- }
518
- },
519
- "TestCoverageTarget": {
520
- "type": "object",
521
- "description": "An artifact or functionality that requires test coverage",
522
- "required": ["id", "name", "targetType"],
523
- "properties": {
524
- "id": {
525
- "type": "string",
526
- "format": "uuid",
527
- "minLength": 1
528
- },
529
- "name": {
530
- "type": "string",
531
- "minLength": 1
532
- },
533
- "description": {
534
- "type": "string",
535
- "minLength": 1
536
- },
537
- "targetType": {
538
- "$ref": "#/definitions/TargetType"
539
- },
540
- "priority": {
541
- "$ref": "#/definitions/Priority"
542
- },
543
- "applicableContexts": {
544
- "type": "array",
545
- "description": "Contains relationship",
546
- "items": {
547
- "type": "string"
548
- }
549
- },
550
- "inputFields": {
551
- "type": "array",
552
- "description": "Contains relationship",
553
- "items": {
554
- "type": "string"
555
- }
556
- },
557
- "outcomeCategories": {
558
- "type": "array",
559
- "description": "Contains relationship",
560
- "items": {
561
- "type": "string"
562
- }
563
- },
564
- "source": {
565
- "type": "object",
566
- "description": "Source code reference for the artifact requiring test coverage",
567
- "properties": {
568
- "reference": {
569
- "$ref": "common/source-references.schema.json#/definitions/SourceReference"
570
- }
571
- }
572
- }
573
- }
574
- },
575
- "TargetInputField": {
576
- "type": "object",
577
- "description": "Input field associated with a coverage target",
578
- "required": ["id", "name", "fieldRef", "partitionRef"],
579
- "properties": {
580
- "id": {
581
- "type": "string",
582
- "format": "uuid",
583
- "minLength": 1
584
- },
585
- "name": {
586
- "type": "string",
587
- "minLength": 1
588
- },
589
- "fieldRef": {
590
- "type": "string",
591
- "minLength": 1
592
- },
593
- "partitionRef": {
594
- "type": "string",
595
- "minLength": 1
596
- },
597
- "description": {
598
- "type": "string",
599
- "minLength": 1
600
- },
601
- "relevance": {
602
- "$ref": "#/definitions/FieldRelevance"
603
- }
604
- }
605
- },
606
- "InputSpacePartition": {
607
- "type": "object",
608
- "description": "Partitioning of an input dimension into testable categories",
609
- "required": ["id", "name", "fieldRef", "presenceRule"],
610
- "properties": {
611
- "id": {
612
- "type": "string",
613
- "format": "uuid",
614
- "minLength": 1
615
- },
616
- "name": {
617
- "type": "string",
618
- "minLength": 1
619
- },
620
- "description": {
621
- "type": "string",
622
- "minLength": 1
623
- },
624
- "fieldRef": {
625
- "type": "string",
626
- "minLength": 1
627
- },
628
- "presenceRule": {
629
- "$ref": "#/definitions/PresenceRule"
630
- },
631
- "partitions": {
632
- "type": "array",
633
- "description": "Contains relationship",
634
- "items": {
635
- "type": "string"
636
- }
637
- },
638
- "dependencies": {
639
- "type": "array",
640
- "description": "Contains relationship",
641
- "items": {
642
- "type": "string"
643
- }
644
- }
645
- }
646
- },
647
- "PartitionValue": {
648
- "type": "object",
649
- "description": "A specific partition within the input space",
650
- "required": [
651
- "name",
652
- "id",
653
- "label",
654
- "constraint",
655
- "constraintExpression",
656
- "category",
657
- "representativeValue"
658
- ],
659
- "properties": {
660
- "name": {
661
- "type": "string",
662
- "minLength": 1
663
- },
664
- "id": {
665
- "type": "string",
666
- "format": "uuid",
667
- "minLength": 1
668
- },
669
- "label": {
670
- "type": "string",
671
- "minLength": 1
672
- },
673
- "description": {
674
- "type": "string",
675
- "minLength": 1
676
- },
677
- "constraint": {
678
- "type": "string",
679
- "minLength": 1
680
- },
681
- "constraintExpression": {
682
- "type": "string",
683
- "minLength": 1
684
- },
685
- "category": {
686
- "$ref": "#/definitions/PartitionCategory"
687
- },
688
- "representativeValue": {
689
- "type": "string",
690
- "minLength": 1
691
- }
692
- }
693
- },
694
- "PartitionDependency": {
695
- "type": "object",
696
- "description": "Constraint between partition values across fields",
697
- "required": [
698
- "id",
699
- "name",
700
- "dependsOnPartition",
701
- "dependsOnValue",
702
- "effect",
703
- "affectedValues"
704
- ],
705
- "properties": {
706
- "id": {
707
- "type": "string",
708
- "format": "uuid",
709
- "minLength": 1
710
- },
711
- "name": {
712
- "type": "string",
713
- "minLength": 1
714
- },
715
- "dependsOnPartition": {
716
- "type": "string",
717
- "minLength": 1
718
- },
719
- "dependsOnValue": {
720
- "type": "string",
721
- "minLength": 1
722
- },
723
- "effect": {
724
- "$ref": "#/definitions/DependencyEffect"
725
- },
726
- "affectedValues": {
727
- "type": "string",
728
- "minLength": 1
729
- },
730
- "description": {
731
- "type": "string",
732
- "minLength": 1
733
- }
734
- }
735
- },
736
- "ContextVariation": {
737
- "type": "object",
738
- "description": "Different context in which functionality can be invoked",
739
- "required": ["id", "name", "contextType"],
740
- "properties": {
741
- "id": {
742
- "type": "string",
743
- "format": "uuid",
744
- "minLength": 1
745
- },
746
- "name": {
747
- "type": "string",
748
- "minLength": 1
749
- },
750
- "description": {
751
- "type": "string",
752
- "minLength": 1
753
- },
754
- "contextType": {
755
- "$ref": "#/definitions/ContextType"
756
- },
757
- "environmentFactors": {
758
- "type": "array",
759
- "description": "Contains relationship",
760
- "items": {
761
- "type": "string"
762
- }
763
- }
764
- }
765
- },
766
- "EnvironmentFactor": {
767
- "type": "object",
768
- "description": "Environmental condition that may affect behavior",
769
- "required": ["id", "name", "factor", "value"],
770
- "properties": {
771
- "id": {
772
- "type": "string",
773
- "format": "uuid",
774
- "minLength": 1
775
- },
776
- "name": {
777
- "type": "string",
778
- "minLength": 1
779
- },
780
- "factor": {
781
- "type": "string",
782
- "minLength": 1
783
- },
784
- "value": {
785
- "type": "string",
786
- "minLength": 1
787
- },
788
- "description": {
789
- "type": "string",
790
- "minLength": 1
791
- }
792
- }
793
- },
794
- "OutcomeCategory": {
795
- "type": "object",
796
- "description": "Category of expected outcomes (not specific assertions)",
797
- "required": ["id", "name", "outcomeType", "httpStatusRange"],
798
- "properties": {
799
- "id": {
800
- "type": "string",
801
- "format": "uuid",
802
- "minLength": 1
803
- },
804
- "name": {
805
- "type": "string",
806
- "minLength": 1
807
- },
808
- "description": {
809
- "type": "string",
810
- "minLength": 1
811
- },
812
- "outcomeType": {
813
- "$ref": "#/definitions/OutcomeType"
814
- },
815
- "httpStatusRange": {
816
- "type": "string",
817
- "minLength": 1
818
- }
819
- }
820
- },
821
- "CoverageRequirement": {
822
- "type": "object",
823
- "description": "Requirement for test coverage of a target",
824
- "required": ["id", "name", "coverageCriteria"],
825
- "properties": {
826
- "id": {
827
- "type": "string",
828
- "format": "uuid",
829
- "minLength": 1
830
- },
831
- "name": {
832
- "type": "string",
833
- "minLength": 1
834
- },
835
- "description": {
836
- "type": "string",
837
- "minLength": 1
838
- },
839
- "coverageCriteria": {
840
- "$ref": "#/definitions/CoverageCriteria"
841
- },
842
- "priority": {
843
- "$ref": "#/definitions/Priority"
844
- },
845
- "inputPartitionSelections": {
846
- "type": "array",
847
- "description": "Contains relationship",
848
- "items": {
849
- "type": "string"
850
- }
851
- },
852
- "contextSelections": {
853
- "type": "array",
854
- "description": "Contains relationship",
855
- "items": {
856
- "type": "string"
857
- }
858
- },
859
- "outcomeSelections": {
860
- "type": "array",
861
- "description": "Contains relationship",
862
- "items": {
863
- "type": "string"
864
- }
865
- },
866
- "exclusions": {
867
- "type": "array",
868
- "description": "Contains relationship",
869
- "items": {
870
- "type": "string"
871
- }
872
- }
873
- }
874
- },
875
- "InputPartitionSelection": {
876
- "type": "object",
877
- "description": "Selection of partition values to include in coverage",
878
- "required": [
879
- "id",
880
- "name",
881
- "partitionRef",
882
- "coverValues",
883
- "coverAllCategories",
884
- "excludeValues"
885
- ],
886
- "properties": {
887
- "id": {
888
- "type": "string",
889
- "format": "uuid",
890
- "minLength": 1
891
- },
892
- "name": {
893
- "type": "string",
894
- "minLength": 1
895
- },
896
- "partitionRef": {
897
- "type": "string",
898
- "minLength": 1
899
- },
900
- "coverValues": {
901
- "type": "string",
902
- "minLength": 1
903
- },
904
- "coverAllCategories": {
905
- "type": "boolean"
906
- },
907
- "excludeValues": {
908
- "type": "string",
909
- "minLength": 1
910
- }
911
- }
912
- },
913
- "CoverageExclusion": {
914
- "type": "object",
915
- "description": "Explicit exclusion from coverage with justification",
916
- "required": ["id", "name", "description", "reason", "riskAccepted", "approvedBy"],
917
- "properties": {
918
- "id": {
919
- "type": "string",
920
- "format": "uuid",
921
- "minLength": 1
922
- },
923
- "name": {
924
- "type": "string",
925
- "minLength": 1
926
- },
927
- "description": {
928
- "type": "string",
929
- "minLength": 1
930
- },
931
- "reason": {
932
- "type": "string",
933
- "minLength": 1
934
- },
935
- "riskAccepted": {
936
- "type": "boolean"
937
- },
938
- "approvedBy": {
939
- "type": "string",
940
- "minLength": 1
941
- }
942
- }
943
- },
944
- "TestCaseSketch": {
945
- "type": "object",
946
- "description": "Abstract test case selecting specific partition values",
947
- "required": ["id", "name", "status"],
948
- "properties": {
949
- "id": {
950
- "type": "string",
951
- "format": "uuid",
952
- "minLength": 1
953
- },
954
- "name": {
955
- "type": "string",
956
- "minLength": 1
957
- },
958
- "description": {
959
- "type": "string",
960
- "minLength": 1
961
- },
962
- "status": {
963
- "$ref": "#/definitions/SketchStatus"
964
- },
965
- "inputSelections": {
966
- "type": "array",
967
- "description": "Contains relationship",
968
- "items": {
969
- "type": "string"
970
- }
971
- },
972
- "source": {
973
- "type": "object",
974
- "description": "Source code reference to the test case implementation",
975
- "properties": {
976
- "reference": {
977
- "$ref": "common/source-references.schema.json#/definitions/SourceReference"
978
- }
979
- }
980
- }
981
- }
982
- },
983
- "InputSelection": {
984
- "type": "object",
985
- "description": "Specific partition value selected for a test case",
986
- "required": ["id", "name", "partitionRef", "selectedValue", "concreteValue", "valueSource"],
987
- "properties": {
988
- "id": {
989
- "type": "string",
990
- "format": "uuid",
991
- "minLength": 1
992
- },
993
- "name": {
994
- "type": "string",
995
- "minLength": 1
996
- },
997
- "partitionRef": {
998
- "type": "string",
999
- "minLength": 1
1000
- },
1001
- "selectedValue": {
1002
- "type": "string",
1003
- "minLength": 1
1004
- },
1005
- "concreteValue": {
1006
- "type": "string",
1007
- "minLength": 1
1008
- },
1009
- "valueSource": {
1010
- "type": "string",
1011
- "minLength": 1
1012
- }
1013
- }
1014
- },
1015
- "CoverageSummary": {
1016
- "type": "object",
1017
- "description": "Summary of coverage status (can be computed or declared)",
1018
- "required": ["totalTargets", "totalRequirements", "totalSketches"],
1019
- "properties": {
1020
- "generatedAt": {
1021
- "type": "string",
1022
- "minLength": 1
1023
- },
1024
- "totalTargets": {
1025
- "type": "integer"
1026
- },
1027
- "totalRequirements": {
1028
- "type": "integer"
1029
- },
1030
- "totalSketches": {
1031
- "type": "integer"
1032
- },
1033
- "targetSummaries": {
1034
- "type": "array",
1035
- "description": "Contains relationship",
1036
- "items": {
1037
- "type": "string"
1038
- }
1039
- },
1040
- "gaps": {
1041
- "type": "array",
1042
- "description": "Contains relationship",
1043
- "items": {
1044
- "type": "string"
1045
- }
1046
- }
1047
- }
1048
- },
1049
- "TargetCoverageSummary": {
1050
- "type": "object",
1051
- "description": "Coverage metrics summary for a single test coverage target",
1052
- "required": ["targetRef", "sketchCount", "implementedCount", "automatedCount"],
1053
- "properties": {
1054
- "targetRef": {
1055
- "type": "string",
1056
- "minLength": 1
1057
- },
1058
- "sketchCount": {
1059
- "type": "integer"
1060
- },
1061
- "implementedCount": {
1062
- "type": "integer"
1063
- },
1064
- "automatedCount": {
1065
- "type": "integer"
1066
- },
1067
- "coveragePercentage": {
1068
- "type": "number"
1069
- }
1070
- }
1071
- },
1072
- "CoverageGap": {
1073
- "type": "object",
1074
- "description": "Identified gap in test coverage requiring attention",
1075
- "required": ["description", "severity", "affectedRequirements"],
1076
- "properties": {
1077
- "description": {
1078
- "type": "string",
1079
- "minLength": 1
1080
- },
1081
- "severity": {
1082
- "$ref": "#/definitions/GapSeverity"
1083
- },
1084
- "affectedRequirements": {
1085
- "type": "string",
1086
- "minLength": 1
1087
- }
1088
- }
1089
- }
1090
- }
1091
- }