@specverse/engine-realize 3.5.3

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 (420) hide show
  1. package/assets/examples/09-api/ai-spec.yaml +194 -0
  2. package/assets/examples/09-api/converted.yaml +95 -0
  3. package/assets/examples/09-api/diagram-architecture.mmd +10 -0
  4. package/assets/examples/09-api/diagram-er.mmd +10 -0
  5. package/assets/examples/09-api/documentation.html +104 -0
  6. package/assets/examples/09-api/documentation.md +95 -0
  7. package/assets/examples/09-api/inferred-spec.yaml +420 -0
  8. package/assets/examples/09-api/openapi.json +61 -0
  9. package/assets/examples/10-api/README.md +216 -0
  10. package/assets/examples/10-api/ai-spec.yaml +194 -0
  11. package/assets/examples/10-api/converted.yaml +96 -0
  12. package/assets/examples/10-api/diagram-architecture.mmd +10 -0
  13. package/assets/examples/10-api/diagram-er.mmd +10 -0
  14. package/assets/examples/10-api/documentation.html +104 -0
  15. package/assets/examples/10-api/documentation.md +95 -0
  16. package/assets/examples/10-api/inferred-spec.yaml +7 -0
  17. package/assets/examples/10-api/metadata.yaml +89 -0
  18. package/assets/examples/10-api/openapi.json +61 -0
  19. package/assets/examples/10-api/package-integration-test.js +177 -0
  20. package/assets/examples/10-api/usage-example.js +323 -0
  21. package/assets/examples/10-api/usage-example.ts +363 -0
  22. package/assets/examples/10-api/workflow-test.js +113 -0
  23. package/assets/examples/manifests/01-simple-default-mappings.yaml +36 -0
  24. package/assets/examples/manifests/02-capability-mappings.yaml +55 -0
  25. package/assets/examples/manifests/03-hybrid-mappings.yaml +109 -0
  26. package/assets/examples/manifests/README.md +245 -0
  27. package/assets/examples/manifests/backend-only.yaml +43 -0
  28. package/assets/examples/manifests/blog-api.md +78 -0
  29. package/assets/examples/manifests/blog-api.specly +79 -0
  30. package/assets/examples/manifests/frontend-only.yaml +27 -0
  31. package/assets/examples/manifests/fullstack-app.yaml +44 -0
  32. package/assets/examples/manifests/fullstack-monorepo.yaml +62 -0
  33. package/assets/examples/validate-examples-with-expected-failures.cjs +328 -0
  34. package/assets/examples/validate-examples.cjs +225 -0
  35. package/assets/examples-decomposed/cloud-native-manifest.example.yaml +8 -0
  36. package/assets/examples-decomposed/cloud-native-manifest.md +379 -0
  37. package/assets/examples-decomposed/cloud-native-manifest.specly +60 -0
  38. package/assets/examples-decomposed/docker-compose-manifest.example.yaml +8 -0
  39. package/assets/examples-decomposed/docker-compose-manifest.md +326 -0
  40. package/assets/examples-decomposed/docker-compose-manifest.specly +40 -0
  41. package/assets/examples-decomposed/kubernetes-deployment-manifest.example.yaml +8 -0
  42. package/assets/examples-decomposed/kubernetes-deployment-manifest.md +237 -0
  43. package/assets/examples-decomposed/kubernetes-deployment-manifest.specly +41 -0
  44. package/assets/templates/README.md +559 -0
  45. package/assets/templates/TEMPLATE-ENHANCEMENTS-V33.md +462 -0
  46. package/assets/templates/backend-only/CLAUDE.md +73 -0
  47. package/assets/templates/backend-only/README.md +197 -0
  48. package/assets/templates/backend-only/deployments/README.md +149 -0
  49. package/assets/templates/backend-only/deployments/development.specly +53 -0
  50. package/assets/templates/backend-only/deployments/production.specly +87 -0
  51. package/assets/templates/backend-only/docs/README.md +50 -0
  52. package/assets/templates/backend-only/docs/api/README.md +7 -0
  53. package/assets/templates/backend-only/docs/diagrams/README.md +85 -0
  54. package/assets/templates/backend-only/docs/example-documentation-template.md +269 -0
  55. package/assets/templates/backend-only/docs/guides/README.md +15 -0
  56. package/assets/templates/backend-only/dot.env.example +18 -0
  57. package/assets/templates/backend-only/generated/README.md +56 -0
  58. package/assets/templates/backend-only/generated/code/integration-test.template.js +320 -0
  59. package/assets/templates/backend-only/generated/code/package.json.template +34 -0
  60. package/assets/templates/backend-only/generated/docs/README.md +49 -0
  61. package/assets/templates/backend-only/gitignore +54 -0
  62. package/assets/templates/backend-only/manifests/README.md +72 -0
  63. package/assets/templates/backend-only/manifests/docker-compose.specly +91 -0
  64. package/assets/templates/backend-only/manifests/implementation.yaml +100 -0
  65. package/assets/templates/backend-only/manifests/kubernetes.specly +140 -0
  66. package/assets/templates/backend-only/package.json +59 -0
  67. package/assets/templates/backend-only/scripts/test-all.sh +160 -0
  68. package/assets/templates/backend-only/scripts/test-generated-code.sh +165 -0
  69. package/assets/templates/backend-only/specs/main.specly +67 -0
  70. package/assets/templates/default/CLAUDE.md +141 -0
  71. package/assets/templates/default/README.md +404 -0
  72. package/assets/templates/default/deployments/README.md +149 -0
  73. package/assets/templates/default/deployments/development.specly +53 -0
  74. package/assets/templates/default/deployments/production.specly +87 -0
  75. package/assets/templates/default/docs/README.md +50 -0
  76. package/assets/templates/default/docs/api/README.md +7 -0
  77. package/assets/templates/default/docs/diagrams/README.md +85 -0
  78. package/assets/templates/default/docs/example-documentation-template.md +269 -0
  79. package/assets/templates/default/docs/guides/README.md +15 -0
  80. package/assets/templates/default/dot.env.example +18 -0
  81. package/assets/templates/default/generated/README.md +56 -0
  82. package/assets/templates/default/generated/code/integration-test.template.js +320 -0
  83. package/assets/templates/default/generated/code/package.json.template +34 -0
  84. package/assets/templates/default/generated/docs/README.md +49 -0
  85. package/assets/templates/default/gitignore +54 -0
  86. package/assets/templates/default/manifests/README.md +72 -0
  87. package/assets/templates/default/manifests/docker-compose.specly +91 -0
  88. package/assets/templates/default/manifests/implementation.yaml +176 -0
  89. package/assets/templates/default/manifests/kubernetes.specly +140 -0
  90. package/assets/templates/default/package.json +61 -0
  91. package/assets/templates/default/scripts/test-all.sh +160 -0
  92. package/assets/templates/default/scripts/test-generated-code.sh +165 -0
  93. package/assets/templates/default/specs/main.specly +67 -0
  94. package/assets/templates/frontend-only/CLAUDE.md +75 -0
  95. package/assets/templates/frontend-only/README.md +231 -0
  96. package/assets/templates/frontend-only/deployments/README.md +149 -0
  97. package/assets/templates/frontend-only/deployments/development.specly +53 -0
  98. package/assets/templates/frontend-only/deployments/production.specly +87 -0
  99. package/assets/templates/frontend-only/docs/README.md +50 -0
  100. package/assets/templates/frontend-only/docs/api/README.md +7 -0
  101. package/assets/templates/frontend-only/docs/diagrams/README.md +85 -0
  102. package/assets/templates/frontend-only/docs/example-documentation-template.md +269 -0
  103. package/assets/templates/frontend-only/docs/guides/README.md +15 -0
  104. package/assets/templates/frontend-only/dot.env.example +18 -0
  105. package/assets/templates/frontend-only/generated/README.md +56 -0
  106. package/assets/templates/frontend-only/generated/code/integration-test.template.js +320 -0
  107. package/assets/templates/frontend-only/generated/code/package.json.template +34 -0
  108. package/assets/templates/frontend-only/generated/docs/README.md +49 -0
  109. package/assets/templates/frontend-only/gitignore +54 -0
  110. package/assets/templates/frontend-only/manifests/README.md +72 -0
  111. package/assets/templates/frontend-only/manifests/docker-compose.specly +91 -0
  112. package/assets/templates/frontend-only/manifests/implementation.yaml +58 -0
  113. package/assets/templates/frontend-only/manifests/kubernetes.specly +140 -0
  114. package/assets/templates/frontend-only/package.json +59 -0
  115. package/assets/templates/frontend-only/scripts/test-all.sh +160 -0
  116. package/assets/templates/frontend-only/scripts/test-generated-code.sh +165 -0
  117. package/assets/templates/frontend-only/specs/main.specly +57 -0
  118. package/assets/templates/full-stack/AI-GUIDE.md +60 -0
  119. package/assets/templates/full-stack/CLAUDE.md +141 -0
  120. package/assets/templates/full-stack/README.md +382 -0
  121. package/assets/templates/full-stack/archive/AI-GUIDE-legacy.md +392 -0
  122. package/assets/templates/full-stack/deployments/README.md +149 -0
  123. package/assets/templates/full-stack/deployments/development.specly +53 -0
  124. package/assets/templates/full-stack/deployments/production.specly +87 -0
  125. package/assets/templates/full-stack/docs/README.md +51 -0
  126. package/assets/templates/full-stack/docs/api/README.md +7 -0
  127. package/assets/templates/full-stack/docs/diagrams/README.md +85 -0
  128. package/assets/templates/full-stack/docs/example-documentation-template.md +269 -0
  129. package/assets/templates/full-stack/docs/guides/README.md +15 -0
  130. package/assets/templates/full-stack/generated/README.md +56 -0
  131. package/assets/templates/full-stack/generated/code/integration-test.template.js +320 -0
  132. package/assets/templates/full-stack/generated/code/package.json.template +34 -0
  133. package/assets/templates/full-stack/generated/docs/README.md +49 -0
  134. package/assets/templates/full-stack/gitignore +54 -0
  135. package/assets/templates/full-stack/manifests/README.md +72 -0
  136. package/assets/templates/full-stack/manifests/docker-compose.specly +91 -0
  137. package/assets/templates/full-stack/manifests/implementation.yaml +155 -0
  138. package/assets/templates/full-stack/manifests/kubernetes.specly +140 -0
  139. package/assets/templates/full-stack/package.json +45 -0
  140. package/assets/templates/full-stack/scripts/test-all.sh +160 -0
  141. package/assets/templates/full-stack/scripts/test-generated-code.sh +165 -0
  142. package/assets/templates/full-stack/specs/example-v33.specly +297 -0
  143. package/assets/templates/full-stack/specs/main-simple.specly +73 -0
  144. package/assets/templates/full-stack/specs/main.specly +408 -0
  145. package/dist/engines/code-generator.d.ts +86 -0
  146. package/dist/engines/code-generator.d.ts.map +1 -0
  147. package/dist/engines/code-generator.js +159 -0
  148. package/dist/engines/code-generator.js.map +1 -0
  149. package/dist/engines/engine-registry.d.ts +94 -0
  150. package/dist/engines/engine-registry.d.ts.map +1 -0
  151. package/dist/engines/engine-registry.js +163 -0
  152. package/dist/engines/engine-registry.js.map +1 -0
  153. package/dist/engines/index.d.ts +10 -0
  154. package/dist/engines/index.d.ts.map +1 -0
  155. package/dist/engines/index.js +12 -0
  156. package/dist/engines/index.js.map +1 -0
  157. package/dist/engines/typescript-engine.d.ts +74 -0
  158. package/dist/engines/typescript-engine.d.ts.map +1 -0
  159. package/dist/engines/typescript-engine.js +288 -0
  160. package/dist/engines/typescript-engine.js.map +1 -0
  161. package/dist/generators/index.d.ts +11 -0
  162. package/dist/generators/index.d.ts.map +1 -0
  163. package/dist/generators/index.js +11 -0
  164. package/dist/generators/index.js.map +1 -0
  165. package/dist/index.d.ts +48 -0
  166. package/dist/index.d.ts.map +1 -0
  167. package/dist/index.js +434 -0
  168. package/dist/index.js.map +1 -0
  169. package/dist/library/index.d.ts +12 -0
  170. package/dist/library/index.d.ts.map +1 -0
  171. package/dist/library/index.js +15 -0
  172. package/dist/library/index.js.map +1 -0
  173. package/dist/library/library.d.ts +132 -0
  174. package/dist/library/library.d.ts.map +1 -0
  175. package/dist/library/library.js +343 -0
  176. package/dist/library/library.js.map +1 -0
  177. package/dist/library/loader.d.ts +73 -0
  178. package/dist/library/loader.d.ts.map +1 -0
  179. package/dist/library/loader.js +150 -0
  180. package/dist/library/loader.js.map +1 -0
  181. package/dist/library/resolver.d.ts +104 -0
  182. package/dist/library/resolver.d.ts.map +1 -0
  183. package/dist/library/resolver.js +299 -0
  184. package/dist/library/resolver.js.map +1 -0
  185. package/dist/library/validator.d.ts +65 -0
  186. package/dist/library/validator.d.ts.map +1 -0
  187. package/dist/library/validator.js +203 -0
  188. package/dist/library/validator.js.map +1 -0
  189. package/dist/types/index.d.ts +7 -0
  190. package/dist/types/index.d.ts.map +1 -0
  191. package/dist/types/index.js +7 -0
  192. package/dist/types/index.js.map +1 -0
  193. package/dist/types/instance-factory.d.ts +289 -0
  194. package/dist/types/instance-factory.d.ts.map +1 -0
  195. package/dist/types/instance-factory.js +8 -0
  196. package/dist/types/instance-factory.js.map +1 -0
  197. package/dist/types/unified-mappings.d.ts +163 -0
  198. package/dist/types/unified-mappings.d.ts.map +1 -0
  199. package/dist/types/unified-mappings.js +110 -0
  200. package/dist/types/unified-mappings.js.map +1 -0
  201. package/dist/utils/ai-spec-loader.d.ts +77 -0
  202. package/dist/utils/ai-spec-loader.d.ts.map +1 -0
  203. package/dist/utils/ai-spec-loader.js +138 -0
  204. package/dist/utils/ai-spec-loader.js.map +1 -0
  205. package/dist/utils/index.d.ts +9 -0
  206. package/dist/utils/index.d.ts.map +1 -0
  207. package/dist/utils/index.js +9 -0
  208. package/dist/utils/index.js.map +1 -0
  209. package/dist/utils/manifest-loader.d.ts +107 -0
  210. package/dist/utils/manifest-loader.d.ts.map +1 -0
  211. package/dist/utils/manifest-loader.js +168 -0
  212. package/dist/utils/manifest-loader.js.map +1 -0
  213. package/dist/utils/mapping-migration.d.ts +53 -0
  214. package/dist/utils/mapping-migration.d.ts.map +1 -0
  215. package/dist/utils/mapping-migration.js +194 -0
  216. package/dist/utils/mapping-migration.js.map +1 -0
  217. package/libs/instance-factories/CURVED-INTERFACE.md +278 -0
  218. package/libs/instance-factories/README.md +433 -0
  219. package/libs/instance-factories/applications/generic-app.yaml +52 -0
  220. package/libs/instance-factories/applications/react-app.yaml +186 -0
  221. package/libs/instance-factories/applications/templates/generic/backend-env-generator.ts +31 -0
  222. package/libs/instance-factories/applications/templates/generic/backend-package-json-generator.ts +80 -0
  223. package/libs/instance-factories/applications/templates/generic/backend-tsconfig-generator.ts +69 -0
  224. package/libs/instance-factories/applications/templates/generic/main-generator.ts +308 -0
  225. package/libs/instance-factories/applications/templates/react/_view-components-source.ts +555 -0
  226. package/libs/instance-factories/applications/templates/react/api-client-generator.ts +436 -0
  227. package/libs/instance-factories/applications/templates/react/api-types-generator.ts +153 -0
  228. package/libs/instance-factories/applications/templates/react/app-tsx-generator.ts +94 -0
  229. package/libs/instance-factories/applications/templates/react/env-example-generator.ts +24 -0
  230. package/libs/instance-factories/applications/templates/react/field-helpers-generator.ts +106 -0
  231. package/libs/instance-factories/applications/templates/react/gitignore-generator.ts +38 -0
  232. package/libs/instance-factories/applications/templates/react/index-css-generator.ts +85 -0
  233. package/libs/instance-factories/applications/templates/react/index-html-generator.ts +30 -0
  234. package/libs/instance-factories/applications/templates/react/main-tsx-generator.ts +34 -0
  235. package/libs/instance-factories/applications/templates/react/package-json-generator.ts +54 -0
  236. package/libs/instance-factories/applications/templates/react/pattern-adapter-generator.ts +179 -0
  237. package/libs/instance-factories/applications/templates/react/react-pattern-adapter.tsx +1347 -0
  238. package/libs/instance-factories/applications/templates/react/relationship-field-generator.ts +150 -0
  239. package/libs/instance-factories/applications/templates/react/tailwind-adapter-generator.ts +704 -0
  240. package/libs/instance-factories/applications/templates/react/tailwind-adapter-wrapper-generator.ts +84 -0
  241. package/libs/instance-factories/applications/templates/react/tsconfig-generator.ts +35 -0
  242. package/libs/instance-factories/applications/templates/react/use-api-hooks-generator.ts +121 -0
  243. package/libs/instance-factories/applications/templates/react/view-dashboard-generator.ts +150 -0
  244. package/libs/instance-factories/applications/templates/react/view-detail-generator.ts +150 -0
  245. package/libs/instance-factories/applications/templates/react/view-form-generator.ts +362 -0
  246. package/libs/instance-factories/applications/templates/react/view-list-generator.ts +98 -0
  247. package/libs/instance-factories/applications/templates/react/view-router-generator.ts +89 -0
  248. package/libs/instance-factories/applications/templates/react/vite-config-generator.ts +49 -0
  249. package/libs/instance-factories/archived/fastify-prisma.yaml +104 -0
  250. package/libs/instance-factories/cli/commander-js.yaml +55 -0
  251. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts +12 -0
  252. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts.map +1 -0
  253. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js +115 -0
  254. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js.map +1 -0
  255. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.ts +145 -0
  256. package/libs/instance-factories/cli/templates/commander/command-generator.d.ts +14 -0
  257. package/libs/instance-factories/cli/templates/commander/command-generator.d.ts.map +1 -0
  258. package/libs/instance-factories/cli/templates/commander/command-generator.js +182 -0
  259. package/libs/instance-factories/cli/templates/commander/command-generator.js.map +1 -0
  260. package/libs/instance-factories/cli/templates/commander/command-generator.ts +992 -0
  261. package/libs/instance-factories/communication/event-emitter.yaml +56 -0
  262. package/libs/instance-factories/communication/rabbitmq-events.yaml +87 -0
  263. package/libs/instance-factories/communication/templates/eventemitter/bus-generator.ts +93 -0
  264. package/libs/instance-factories/communication/templates/eventemitter/publisher-generator.ts +117 -0
  265. package/libs/instance-factories/communication/templates/eventemitter/subscriber-generator.ts +101 -0
  266. package/libs/instance-factories/controllers/fastify.yaml +127 -0
  267. package/libs/instance-factories/controllers/templates/fastify/meta-routes-generator.ts +103 -0
  268. package/libs/instance-factories/controllers/templates/fastify/routes-generator.ts +389 -0
  269. package/libs/instance-factories/controllers/templates/fastify/server-generator.ts +76 -0
  270. package/libs/instance-factories/infrastructure/docker-k8s.yaml +61 -0
  271. package/libs/instance-factories/infrastructure/templates/docker-k8s/infrastructure-generator.ts +46 -0
  272. package/libs/instance-factories/orms/prisma.yaml +89 -0
  273. package/libs/instance-factories/orms/templates/prisma/schema-generator.ts +563 -0
  274. package/libs/instance-factories/orms/templates/prisma/services-generator.ts +408 -0
  275. package/libs/instance-factories/scaffolding/generic-scaffold.yaml +65 -0
  276. package/libs/instance-factories/scaffolding/templates/generic/env-example-generator.ts +73 -0
  277. package/libs/instance-factories/scaffolding/templates/generic/env-generator.ts +85 -0
  278. package/libs/instance-factories/scaffolding/templates/generic/gitignore-generator.ts +69 -0
  279. package/libs/instance-factories/scaffolding/templates/generic/package-json-generator.ts +176 -0
  280. package/libs/instance-factories/scaffolding/templates/generic/readme-generator.ts +207 -0
  281. package/libs/instance-factories/scaffolding/templates/generic/tsconfig-generator.ts +78 -0
  282. package/libs/instance-factories/scaffolding/templates/generic/tsconfig-react-generator.ts +41 -0
  283. package/libs/instance-factories/sdks/python-sdk.yaml +66 -0
  284. package/libs/instance-factories/sdks/templates/python/sdk-generator.ts +50 -0
  285. package/libs/instance-factories/sdks/templates/typescript/sdk-generator.ts +49 -0
  286. package/libs/instance-factories/sdks/typescript-sdk.yaml +59 -0
  287. package/libs/instance-factories/services/prisma-services.yaml +71 -0
  288. package/libs/instance-factories/services/templates/prisma/behavior-generator.ts +303 -0
  289. package/libs/instance-factories/services/templates/prisma/controller-generator.ts +532 -0
  290. package/libs/instance-factories/services/templates/prisma/service-generator.ts +315 -0
  291. package/libs/instance-factories/shared/path-resolver.ts +111 -0
  292. package/libs/instance-factories/storage/mongodb.yaml +79 -0
  293. package/libs/instance-factories/storage/postgresql.yaml +75 -0
  294. package/libs/instance-factories/storage/redis.yaml +79 -0
  295. package/libs/instance-factories/storage/templates/mongodb/config-generator.ts +15 -0
  296. package/libs/instance-factories/storage/templates/mongodb/docker-generator.ts +18 -0
  297. package/libs/instance-factories/storage/templates/postgresql/config-generator.ts +54 -0
  298. package/libs/instance-factories/storage/templates/postgresql/docker-generator.ts +55 -0
  299. package/libs/instance-factories/storage/templates/redis/config-generator.ts +16 -0
  300. package/libs/instance-factories/storage/templates/redis/docker-generator.ts +18 -0
  301. package/libs/instance-factories/test-generation.ts +192 -0
  302. package/libs/instance-factories/testing/templates/vitest/tests-generator.ts +51 -0
  303. package/libs/instance-factories/testing/vitest-tests.yaml +63 -0
  304. package/libs/instance-factories/tools/templates/mcp/mcp-server-generator.ts +136 -0
  305. package/libs/instance-factories/tools/templates/mcp/static/docs/DEPLOYMENT_GUIDE.md +630 -0
  306. package/libs/instance-factories/tools/templates/mcp/static/docs/HYBRID_RESOURCE_SYSTEM.md +330 -0
  307. package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/EXTENSION_DEPLOYMENT.md +552 -0
  308. package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/LOCAL_DEPLOYMENT.md +164 -0
  309. package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/WEB_DEPLOYMENT.md +247 -0
  310. package/libs/instance-factories/tools/templates/mcp/static/package.json +92 -0
  311. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-enterprise.js +284 -0
  312. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-extension.js +139 -0
  313. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-local.js +74 -0
  314. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-web.js +156 -0
  315. package/libs/instance-factories/tools/templates/mcp/static/scripts/copy-canonical-files.js +41 -0
  316. package/libs/instance-factories/tools/templates/mcp/static/scripts/test-deployments.js +259 -0
  317. package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-resources.js +231 -0
  318. package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-simple.js +196 -0
  319. package/libs/instance-factories/tools/templates/mcp/static/src/controllers/MCPServerController.ts +293 -0
  320. package/libs/instance-factories/tools/templates/mcp/static/src/events/EventEmitter.ts +90 -0
  321. package/libs/instance-factories/tools/templates/mcp/static/src/index.ts +24 -0
  322. package/libs/instance-factories/tools/templates/mcp/static/src/interfaces/ResourceProvider.ts +15 -0
  323. package/libs/instance-factories/tools/templates/mcp/static/src/models/LibrarySuggestion.ts +106 -0
  324. package/libs/instance-factories/tools/templates/mcp/static/src/models/SpecVerseResource.ts +75 -0
  325. package/libs/instance-factories/tools/templates/mcp/static/src/server/mcp-server.ts +239 -0
  326. package/libs/instance-factories/tools/templates/mcp/static/src/services/CLIProxyService.ts +1501 -0
  327. package/libs/instance-factories/tools/templates/mcp/static/src/services/EmbeddedResourcesAdapter.ts +211 -0
  328. package/libs/instance-factories/tools/templates/mcp/static/src/services/EntityModuleService.ts +308 -0
  329. package/libs/instance-factories/tools/templates/mcp/static/src/services/HybridResourcesProvider.ts +210 -0
  330. package/libs/instance-factories/tools/templates/mcp/static/src/services/LibraryToolsService.ts +356 -0
  331. package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorBridge.ts +524 -0
  332. package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorToolsService.ts +530 -0
  333. package/libs/instance-factories/tools/templates/mcp/static/src/services/PromptToolsService.ts +594 -0
  334. package/libs/instance-factories/tools/templates/mcp/static/src/services/ResourcesProviderService.ts +170 -0
  335. package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.init.test.ts +544 -0
  336. package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.test.ts +189 -0
  337. package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/ResourcesProviderService.test.ts +89 -0
  338. package/libs/instance-factories/tools/templates/mcp/static/src/types/index.ts +110 -0
  339. package/libs/instance-factories/tools/templates/mcp/static/tsconfig.json +28 -0
  340. package/libs/instance-factories/tools/templates/vscode/static/extension.ts +1195 -0
  341. package/libs/instance-factories/tools/templates/vscode/static/language-configuration.json +34 -0
  342. package/libs/instance-factories/tools/templates/vscode/static/schemas/specverse-v3-schema.json +4279 -0
  343. package/libs/instance-factories/tools/templates/vscode/static/syntaxes/specverse.tmLanguage.json +138 -0
  344. package/libs/instance-factories/tools/templates/vscode/static/themes/README.md +74 -0
  345. package/libs/instance-factories/tools/templates/vscode/static/themes/complete-specverse-colors.json +122 -0
  346. package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-basic-theme.json +65 -0
  347. package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-complete-theme.json +123 -0
  348. package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-theme-colors.json +64 -0
  349. package/libs/instance-factories/tools/templates/vscode/vscode-extension-generator.ts +214 -0
  350. package/libs/instance-factories/validation/templates/zod/validation-generator.ts +46 -0
  351. package/libs/instance-factories/validation/zod.yaml +56 -0
  352. package/libs/instance-factories/views/index.d.ts +13 -0
  353. package/libs/instance-factories/views/index.d.ts.map +1 -0
  354. package/libs/instance-factories/views/index.js +18 -0
  355. package/libs/instance-factories/views/index.js.map +1 -0
  356. package/libs/instance-factories/views/index.ts +45 -0
  357. package/libs/instance-factories/views/react-components.yaml +129 -0
  358. package/libs/instance-factories/views/templates/ARCHITECTURE.md +198 -0
  359. package/libs/instance-factories/views/templates/react/adapters/antd-adapter.ts +869 -0
  360. package/libs/instance-factories/views/templates/react/adapters/mui-adapter.ts +953 -0
  361. package/libs/instance-factories/views/templates/react/adapters/shadcn-adapter.ts +806 -0
  362. package/libs/instance-factories/views/templates/react/app-generator.ts +55 -0
  363. package/libs/instance-factories/views/templates/react/components-generator.ts +391 -0
  364. package/libs/instance-factories/views/templates/react/forms-generator.ts +343 -0
  365. package/libs/instance-factories/views/templates/react/frontend-package-json-generator.ts +54 -0
  366. package/libs/instance-factories/views/templates/react/hooks-generator.ts +122 -0
  367. package/libs/instance-factories/views/templates/react/index-css-generator.ts +209 -0
  368. package/libs/instance-factories/views/templates/react/index-html-generator.ts +34 -0
  369. package/libs/instance-factories/views/templates/react/main-tsx-generator.ts +29 -0
  370. package/libs/instance-factories/views/templates/react/react-component-generator.d.ts +152 -0
  371. package/libs/instance-factories/views/templates/react/react-component-generator.d.ts.map +1 -0
  372. package/libs/instance-factories/views/templates/react/react-component-generator.js +398 -0
  373. package/libs/instance-factories/views/templates/react/react-component-generator.js.map +1 -0
  374. package/libs/instance-factories/views/templates/react/react-component-generator.ts +533 -0
  375. package/libs/instance-factories/views/templates/react/router-generator.ts +197 -0
  376. package/libs/instance-factories/views/templates/react/router-generic-generator.ts +103 -0
  377. package/libs/instance-factories/views/templates/react/spec-json-generator.ts +17 -0
  378. package/libs/instance-factories/views/templates/react/types-generator.ts +76 -0
  379. package/libs/instance-factories/views/templates/react/views-metadata-generator.ts +42 -0
  380. package/libs/instance-factories/views/templates/react/vite-config-generator.ts +38 -0
  381. package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.d.ts.map +1 -0
  382. package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.js.map +1 -0
  383. package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.ts +474 -0
  384. package/libs/instance-factories/views/templates/shared/__tests__/composite-patterns.test.ts +242 -0
  385. package/libs/instance-factories/views/templates/shared/adapter-types.d.ts +77 -0
  386. package/libs/instance-factories/views/templates/shared/adapter-types.d.ts.map +1 -0
  387. package/libs/instance-factories/views/templates/shared/adapter-types.js +47 -0
  388. package/libs/instance-factories/views/templates/shared/adapter-types.js.map +1 -0
  389. package/libs/instance-factories/views/templates/shared/adapter-types.ts +142 -0
  390. package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts +63 -0
  391. package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts.map +1 -0
  392. package/libs/instance-factories/views/templates/shared/atomic-components-registry.js +822 -0
  393. package/libs/instance-factories/views/templates/shared/atomic-components-registry.js.map +1 -0
  394. package/libs/instance-factories/views/templates/shared/atomic-components-registry.ts +908 -0
  395. package/libs/instance-factories/views/templates/shared/base-generator.d.ts +247 -0
  396. package/libs/instance-factories/views/templates/shared/base-generator.d.ts.map +1 -0
  397. package/libs/instance-factories/views/templates/shared/base-generator.js +363 -0
  398. package/libs/instance-factories/views/templates/shared/base-generator.js.map +1 -0
  399. package/libs/instance-factories/views/templates/shared/base-generator.ts +608 -0
  400. package/libs/instance-factories/views/templates/shared/component-metadata.d.ts +254 -0
  401. package/libs/instance-factories/views/templates/shared/component-metadata.d.ts.map +1 -0
  402. package/libs/instance-factories/views/templates/shared/component-metadata.js +602 -0
  403. package/libs/instance-factories/views/templates/shared/component-metadata.js.map +1 -0
  404. package/libs/instance-factories/views/templates/shared/component-metadata.ts +803 -0
  405. package/libs/instance-factories/views/templates/shared/composite-pattern-types.ts +250 -0
  406. package/libs/instance-factories/views/templates/shared/composite-patterns.ts +535 -0
  407. package/libs/instance-factories/views/templates/shared/index.ts +68 -0
  408. package/libs/instance-factories/views/templates/shared/pattern-validator.ts +279 -0
  409. package/libs/instance-factories/views/templates/shared/property-mapper.d.ts +149 -0
  410. package/libs/instance-factories/views/templates/shared/property-mapper.d.ts.map +1 -0
  411. package/libs/instance-factories/views/templates/shared/property-mapper.js +580 -0
  412. package/libs/instance-factories/views/templates/shared/property-mapper.js.map +1 -0
  413. package/libs/instance-factories/views/templates/shared/property-mapper.ts +700 -0
  414. package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts +143 -0
  415. package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts.map +1 -0
  416. package/libs/instance-factories/views/templates/shared/syntax-mapper.js +420 -0
  417. package/libs/instance-factories/views/templates/shared/syntax-mapper.js.map +1 -0
  418. package/libs/instance-factories/views/templates/shared/syntax-mapper.ts +539 -0
  419. package/package.json +42 -0
  420. package/schema/SPECVERSE-SCHEMA.json +4274 -0
@@ -0,0 +1,602 @@
1
+ /**
2
+ * Component Metadata - Runtime Rendering Hints
3
+ *
4
+ * Provides metadata for runtime interpretation and dynamic rendering.
5
+ * Bridges the static atomic components registry with dynamic runtime engines.
6
+ *
7
+ * Used by:
8
+ * - app-demo runtime engine for dynamic component rendering
9
+ * - Documentation generation for component catalogs
10
+ * - AI-powered component suggestions
11
+ * - IDE tooling and autocomplete
12
+ *
13
+ * Architecture:
14
+ * - Enriches atomic component definitions with runtime hints
15
+ * - Provides property descriptions and validation rules
16
+ * - Includes rendering capabilities and constraints
17
+ * - Supports dynamic component discovery
18
+ */
19
+ import { ATOMIC_COMPONENTS_REGISTRY } from './atomic-components-registry.js';
20
+ // ============================================================================
21
+ // Common Property Metadata
22
+ // ============================================================================
23
+ /**
24
+ * Metadata for the 5 universal properties
25
+ */
26
+ export const COMMON_PROPERTY_METADATA = {
27
+ variant: {
28
+ name: 'variant',
29
+ type: 'enum',
30
+ required: false,
31
+ default: 'primary',
32
+ description: 'Visual style variant for the component',
33
+ enumValues: ['primary', 'secondary', 'destructive', 'ghost', 'outline'],
34
+ isCommon: true,
35
+ affectsLayout: false
36
+ },
37
+ size: {
38
+ name: 'size',
39
+ type: 'enum',
40
+ required: false,
41
+ default: 'medium',
42
+ description: 'Size of the component',
43
+ enumValues: ['small', 'medium', 'large'],
44
+ isCommon: true,
45
+ affectsLayout: true
46
+ },
47
+ color: {
48
+ name: 'color',
49
+ type: 'enum',
50
+ required: false,
51
+ default: 'primary',
52
+ description: 'Color scheme for the component',
53
+ enumValues: ['primary', 'success', 'warning', 'error', 'info'],
54
+ isCommon: true,
55
+ affectsLayout: false
56
+ },
57
+ position: {
58
+ name: 'position',
59
+ type: 'enum',
60
+ required: false,
61
+ default: 'top',
62
+ description: 'Position or alignment of the component',
63
+ enumValues: ['top', 'bottom', 'left', 'right'],
64
+ isCommon: true,
65
+ affectsLayout: true
66
+ },
67
+ orientation: {
68
+ name: 'orientation',
69
+ type: 'enum',
70
+ required: false,
71
+ default: 'horizontal',
72
+ description: 'Layout orientation of the component',
73
+ enumValues: ['horizontal', 'vertical'],
74
+ isCommon: true,
75
+ affectsLayout: true
76
+ }
77
+ };
78
+ // ============================================================================
79
+ // Component-Specific Metadata Registry
80
+ // ============================================================================
81
+ /**
82
+ * Enhanced metadata for all atomic components
83
+ */
84
+ export const COMPONENT_METADATA_REGISTRY = {
85
+ // Data Display Components
86
+ table: {
87
+ ...ATOMIC_COMPONENTS_REGISTRY.table,
88
+ propertyMetadata: [
89
+ {
90
+ name: 'columns',
91
+ type: 'array',
92
+ required: true,
93
+ description: 'Column definitions for the table',
94
+ validation: { min: 1 }
95
+ },
96
+ {
97
+ name: 'dataSource',
98
+ type: 'string',
99
+ required: true,
100
+ description: 'Model array name for table data'
101
+ },
102
+ {
103
+ name: 'sortable',
104
+ type: 'boolean',
105
+ required: false,
106
+ default: false,
107
+ description: 'Enable column sorting',
108
+ affectsLayout: false
109
+ },
110
+ {
111
+ name: 'filterable',
112
+ type: 'boolean',
113
+ required: false,
114
+ default: false,
115
+ description: 'Enable filtering',
116
+ affectsLayout: true
117
+ },
118
+ {
119
+ name: 'pagination',
120
+ type: 'boolean',
121
+ required: false,
122
+ default: true,
123
+ description: 'Enable pagination',
124
+ affectsLayout: true
125
+ },
126
+ COMMON_PROPERTY_METADATA.size
127
+ ],
128
+ eventMetadata: [
129
+ {
130
+ name: 'onRowClick',
131
+ description: 'Fired when a row is clicked',
132
+ parameters: [
133
+ { name: 'row', type: 'object', description: 'Clicked row data' },
134
+ { name: 'index', type: 'number', description: 'Row index' }
135
+ ]
136
+ },
137
+ {
138
+ name: 'onSort',
139
+ description: 'Fired when column sort changes',
140
+ parameters: [
141
+ { name: 'column', type: 'string', description: 'Column key' },
142
+ { name: 'direction', type: 'string', description: 'Sort direction (asc/desc)' }
143
+ ]
144
+ }
145
+ ],
146
+ capabilities: {
147
+ supportsChildren: false,
148
+ supportsConditional: true,
149
+ supportsList: true,
150
+ supportsSlots: false,
151
+ maxDepth: 1,
152
+ preferredPosition: 'leaf'
153
+ },
154
+ accessibility: {
155
+ role: 'table',
156
+ keyboardNavigable: true,
157
+ requiredAriaAttrs: ['aria-label'],
158
+ screenReaderDescription: 'Data table with {columns.length} columns'
159
+ },
160
+ state: {
161
+ hasInternalState: true,
162
+ stateProperties: [
163
+ { name: 'sortColumn', type: 'string', description: 'Currently sorted column' },
164
+ { name: 'sortDirection', type: 'string', description: 'Sort direction (asc/desc)' },
165
+ { name: 'currentPage', type: 'number', description: 'Current page number', defaultValue: 1 }
166
+ ]
167
+ },
168
+ related: {
169
+ alternatives: ['list', 'grid'],
170
+ compositions: ['pagination', 'search'],
171
+ containers: ['card', 'container']
172
+ }
173
+ },
174
+ button: {
175
+ ...ATOMIC_COMPONENTS_REGISTRY.button,
176
+ propertyMetadata: [
177
+ COMMON_PROPERTY_METADATA.variant,
178
+ COMMON_PROPERTY_METADATA.size,
179
+ {
180
+ name: 'disabled',
181
+ type: 'boolean',
182
+ required: false,
183
+ default: false,
184
+ description: 'Disable button interaction'
185
+ },
186
+ {
187
+ name: 'loading',
188
+ type: 'boolean',
189
+ required: false,
190
+ default: false,
191
+ description: 'Show loading state'
192
+ },
193
+ {
194
+ name: 'label',
195
+ type: 'string',
196
+ required: false,
197
+ description: 'Button text label'
198
+ }
199
+ ],
200
+ eventMetadata: [
201
+ {
202
+ name: 'onClick',
203
+ description: 'Fired when button is clicked',
204
+ parameters: [
205
+ { name: 'event', type: 'MouseEvent', description: 'Click event' }
206
+ ],
207
+ bubbles: true
208
+ }
209
+ ],
210
+ capabilities: {
211
+ supportsChildren: true,
212
+ supportsConditional: true,
213
+ supportsList: false,
214
+ supportsSlots: false,
215
+ maxDepth: 1,
216
+ preferredPosition: 'leaf'
217
+ },
218
+ accessibility: {
219
+ role: 'button',
220
+ keyboardNavigable: true,
221
+ requiredAriaAttrs: ['aria-label'],
222
+ screenReaderDescription: '{variant} button: {label}'
223
+ },
224
+ state: {
225
+ hasInternalState: false
226
+ },
227
+ related: {
228
+ alternatives: ['link', 'icon-button'],
229
+ compositions: ['icon', 'badge'],
230
+ containers: ['form', 'card', 'toolbar']
231
+ }
232
+ },
233
+ card: {
234
+ ...ATOMIC_COMPONENTS_REGISTRY.card,
235
+ propertyMetadata: [
236
+ {
237
+ name: 'title',
238
+ type: 'string',
239
+ required: false,
240
+ description: 'Card title'
241
+ },
242
+ {
243
+ name: 'elevation',
244
+ type: 'enum',
245
+ required: false,
246
+ default: 'medium',
247
+ description: 'Shadow depth',
248
+ enumValues: ['none', 'low', 'medium', 'high']
249
+ },
250
+ COMMON_PROPERTY_METADATA.size
251
+ ],
252
+ capabilities: {
253
+ supportsChildren: true,
254
+ supportsConditional: true,
255
+ supportsList: true,
256
+ supportsSlots: true,
257
+ maxDepth: 3,
258
+ preferredPosition: 'container'
259
+ },
260
+ accessibility: {
261
+ role: 'article',
262
+ keyboardNavigable: false,
263
+ screenReaderDescription: 'Card: {title}'
264
+ },
265
+ state: {
266
+ hasInternalState: false
267
+ },
268
+ related: {
269
+ alternatives: ['panel', 'container'],
270
+ compositions: ['button', 'image', 'text', 'list'],
271
+ containers: ['grid', 'container']
272
+ }
273
+ },
274
+ input: {
275
+ ...ATOMIC_COMPONENTS_REGISTRY.input,
276
+ propertyMetadata: [
277
+ {
278
+ name: 'type',
279
+ type: 'enum',
280
+ required: false,
281
+ default: 'text',
282
+ description: 'Input type',
283
+ enumValues: ['text', 'email', 'password', 'number', 'tel', 'url']
284
+ },
285
+ {
286
+ name: 'placeholder',
287
+ type: 'string',
288
+ required: false,
289
+ description: 'Placeholder text'
290
+ },
291
+ {
292
+ name: 'required',
293
+ type: 'boolean',
294
+ required: false,
295
+ default: false,
296
+ description: 'Field is required'
297
+ },
298
+ {
299
+ name: 'disabled',
300
+ type: 'boolean',
301
+ required: false,
302
+ default: false,
303
+ description: 'Disable input'
304
+ },
305
+ COMMON_PROPERTY_METADATA.size,
306
+ {
307
+ name: 'variant',
308
+ type: 'enum',
309
+ required: false,
310
+ default: 'outlined',
311
+ description: 'Visual style variant',
312
+ enumValues: ['filled', 'outlined', 'standard'],
313
+ isCommon: true
314
+ }
315
+ ],
316
+ eventMetadata: [
317
+ {
318
+ name: 'onChange',
319
+ description: 'Fired when input value changes',
320
+ parameters: [
321
+ { name: 'value', type: 'string', description: 'New value' },
322
+ { name: 'event', type: 'Event', description: 'Change event' }
323
+ ]
324
+ },
325
+ {
326
+ name: 'onBlur',
327
+ description: 'Fired when input loses focus',
328
+ parameters: [
329
+ { name: 'event', type: 'FocusEvent', description: 'Blur event' }
330
+ ]
331
+ }
332
+ ],
333
+ capabilities: {
334
+ supportsChildren: false,
335
+ supportsConditional: true,
336
+ supportsList: false,
337
+ supportsSlots: false,
338
+ maxDepth: 0,
339
+ preferredPosition: 'leaf'
340
+ },
341
+ accessibility: {
342
+ role: 'textbox',
343
+ keyboardNavigable: true,
344
+ requiredAriaAttrs: ['aria-label', 'aria-required'],
345
+ screenReaderDescription: '{type} input: {placeholder}'
346
+ },
347
+ state: {
348
+ hasInternalState: true,
349
+ stateProperties: [
350
+ { name: 'value', type: 'string', description: 'Current input value', defaultValue: '' },
351
+ { name: 'isFocused', type: 'boolean', description: 'Input has focus', defaultValue: false }
352
+ ]
353
+ },
354
+ related: {
355
+ alternatives: ['textarea', 'select'],
356
+ compositions: ['label', 'validation-message'],
357
+ containers: ['form', 'form-field']
358
+ }
359
+ },
360
+ modal: {
361
+ ...ATOMIC_COMPONENTS_REGISTRY.modal,
362
+ propertyMetadata: [
363
+ {
364
+ name: 'title',
365
+ type: 'string',
366
+ required: false,
367
+ description: 'Modal title'
368
+ },
369
+ {
370
+ name: 'open',
371
+ type: 'boolean',
372
+ required: true,
373
+ description: 'Modal visibility state'
374
+ },
375
+ {
376
+ name: 'closable',
377
+ type: 'boolean',
378
+ required: false,
379
+ default: true,
380
+ description: 'Show close button'
381
+ },
382
+ COMMON_PROPERTY_METADATA.size
383
+ ],
384
+ eventMetadata: [
385
+ {
386
+ name: 'onClose',
387
+ description: 'Fired when modal is closed',
388
+ parameters: []
389
+ }
390
+ ],
391
+ capabilities: {
392
+ supportsChildren: true,
393
+ supportsConditional: true,
394
+ supportsList: false,
395
+ supportsSlots: true,
396
+ maxDepth: 2,
397
+ preferredPosition: 'root'
398
+ },
399
+ accessibility: {
400
+ role: 'dialog',
401
+ keyboardNavigable: true,
402
+ requiredAriaAttrs: ['aria-modal', 'aria-labelledby'],
403
+ screenReaderDescription: 'Modal dialog: {title}'
404
+ },
405
+ state: {
406
+ hasInternalState: true,
407
+ stateProperties: [
408
+ { name: 'open', type: 'boolean', description: 'Modal open state', defaultValue: false }
409
+ ]
410
+ },
411
+ related: {
412
+ alternatives: ['drawer', 'popover'],
413
+ compositions: ['button', 'form', 'card'],
414
+ containers: ['root']
415
+ }
416
+ },
417
+ badge: {
418
+ ...ATOMIC_COMPONENTS_REGISTRY.badge,
419
+ propertyMetadata: [
420
+ {
421
+ name: 'content',
422
+ type: 'string',
423
+ required: false,
424
+ description: 'Badge content/label'
425
+ },
426
+ COMMON_PROPERTY_METADATA.variant,
427
+ COMMON_PROPERTY_METADATA.color,
428
+ {
429
+ name: 'variant',
430
+ type: 'enum',
431
+ required: false,
432
+ default: 'standard',
433
+ description: 'Badge style',
434
+ enumValues: ['dot', 'standard'],
435
+ isCommon: true
436
+ }
437
+ ],
438
+ capabilities: {
439
+ supportsChildren: false,
440
+ supportsConditional: true,
441
+ supportsList: false,
442
+ supportsSlots: false,
443
+ maxDepth: 0,
444
+ preferredPosition: 'leaf'
445
+ },
446
+ accessibility: {
447
+ role: 'status',
448
+ keyboardNavigable: false,
449
+ screenReaderDescription: 'Badge: {content}'
450
+ },
451
+ state: {
452
+ hasInternalState: false
453
+ },
454
+ related: {
455
+ alternatives: ['chip', 'tag'],
456
+ compositions: ['icon', 'avatar'],
457
+ containers: ['button', 'card']
458
+ }
459
+ }
460
+ };
461
+ // ============================================================================
462
+ // Helper Functions
463
+ // ============================================================================
464
+ /**
465
+ * Get metadata for a component type
466
+ *
467
+ * @param componentType - Component type from atomic registry
468
+ * @returns Component metadata or undefined
469
+ */
470
+ export function getComponentMetadata(componentType) {
471
+ return COMPONENT_METADATA_REGISTRY[componentType];
472
+ }
473
+ /**
474
+ * Get all available component types with metadata
475
+ *
476
+ * @returns Array of component type names
477
+ */
478
+ export function getAllComponentTypes() {
479
+ return Object.keys(COMPONENT_METADATA_REGISTRY);
480
+ }
481
+ /**
482
+ * Get components by category
483
+ *
484
+ * @param category - Component category
485
+ * @returns Array of component metadata
486
+ */
487
+ export function getComponentsByCategory(category) {
488
+ return Object.values(COMPONENT_METADATA_REGISTRY).filter(comp => comp.category === category);
489
+ }
490
+ /**
491
+ * Get components that can contain children
492
+ *
493
+ * @returns Array of container component metadata
494
+ */
495
+ export function getContainerComponents() {
496
+ return Object.values(COMPONENT_METADATA_REGISTRY).filter(comp => comp.capabilities.supportsChildren);
497
+ }
498
+ /**
499
+ * Get leaf components (cannot contain children)
500
+ *
501
+ * @returns Array of leaf component metadata
502
+ */
503
+ export function getLeafComponents() {
504
+ return Object.values(COMPONENT_METADATA_REGISTRY).filter(comp => !comp.capabilities.supportsChildren);
505
+ }
506
+ /**
507
+ * Check if a component supports a specific property
508
+ *
509
+ * @param componentType - Component type
510
+ * @param propertyName - Property name
511
+ * @returns True if property is supported
512
+ */
513
+ export function supportsProperty(componentType, propertyName) {
514
+ const metadata = getComponentMetadata(componentType);
515
+ if (!metadata)
516
+ return false;
517
+ return metadata.propertyMetadata.some(prop => prop.name === propertyName);
518
+ }
519
+ /**
520
+ * Get property metadata for a component
521
+ *
522
+ * @param componentType - Component type
523
+ * @param propertyName - Property name
524
+ * @returns Property metadata or undefined
525
+ */
526
+ export function getPropertyMetadata(componentType, propertyName) {
527
+ const metadata = getComponentMetadata(componentType);
528
+ if (!metadata)
529
+ return undefined;
530
+ return metadata.propertyMetadata.find(prop => prop.name === propertyName);
531
+ }
532
+ /**
533
+ * Validate property value against metadata
534
+ *
535
+ * @param componentType - Component type
536
+ * @param propertyName - Property name
537
+ * @param value - Property value
538
+ * @returns Validation result with errors
539
+ */
540
+ export function validatePropertyValue(componentType, propertyName, value) {
541
+ const propMeta = getPropertyMetadata(componentType, propertyName);
542
+ if (!propMeta) {
543
+ return { valid: false, errors: [`Unknown property: ${propertyName}`] };
544
+ }
545
+ const errors = [];
546
+ // Type validation
547
+ if (propMeta.type === 'enum' && propMeta.enumValues) {
548
+ if (!propMeta.enumValues.includes(value)) {
549
+ errors.push(`Invalid enum value. Expected one of: ${propMeta.enumValues.join(', ')}`);
550
+ }
551
+ }
552
+ // Validation rules
553
+ if (propMeta.validation) {
554
+ if (propMeta.validation.min !== undefined && value < propMeta.validation.min) {
555
+ errors.push(`Value must be >= ${propMeta.validation.min}`);
556
+ }
557
+ if (propMeta.validation.max !== undefined && value > propMeta.validation.max) {
558
+ errors.push(`Value must be <= ${propMeta.validation.max}`);
559
+ }
560
+ if (propMeta.validation.pattern && typeof value === 'string') {
561
+ const regex = new RegExp(propMeta.validation.pattern);
562
+ if (!regex.test(value)) {
563
+ errors.push(`Value must match pattern: ${propMeta.validation.pattern}`);
564
+ }
565
+ }
566
+ }
567
+ return {
568
+ valid: errors.length === 0,
569
+ errors
570
+ };
571
+ }
572
+ /**
573
+ * Get recommended components for composition
574
+ *
575
+ * @param componentType - Component type
576
+ * @returns Array of recommended component types
577
+ */
578
+ export function getRecommendedCompositions(componentType) {
579
+ const metadata = getComponentMetadata(componentType);
580
+ return metadata?.related?.compositions || [];
581
+ }
582
+ /**
583
+ * Check if two components can be nested
584
+ *
585
+ * @param parentType - Parent component type
586
+ * @param childType - Child component type
587
+ * @returns True if nesting is allowed
588
+ */
589
+ export function canNest(parentType, childType) {
590
+ const parentMeta = getComponentMetadata(parentType);
591
+ const childMeta = getComponentMetadata(childType);
592
+ if (!parentMeta || !childMeta)
593
+ return false;
594
+ // Parent must support children
595
+ if (!parentMeta.capabilities.supportsChildren)
596
+ return false;
597
+ // Check depth constraints
598
+ if (childMeta.capabilities.preferredPosition === 'root')
599
+ return false;
600
+ return true;
601
+ }
602
+ //# sourceMappingURL=component-metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-metadata.js","sourceRoot":"","sources":["component-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,0BAA0B,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