@specverse/engines 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (817) 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/examples-inference/inference-engine-demo.example.yaml +8 -0
  45. package/assets/examples-inference/inference-engine-demo.md +574 -0
  46. package/assets/examples-inference/inference-engine-demo.specly +216 -0
  47. package/assets/prompts/MOVED.md +35 -0
  48. package/assets/prompts/SUMMARY-v8-PROMOTION.md +445 -0
  49. package/assets/prompts/core/CHANGELOG.md +158 -0
  50. package/assets/prompts/core/MIGRATION-v6-to-v7.md +379 -0
  51. package/assets/prompts/core/README.md +319 -0
  52. package/assets/prompts/core/base-terminal-prompt.md +201 -0
  53. package/assets/prompts/core/examples/example-usage.ts +140 -0
  54. package/assets/prompts/core/schemas/prompt.schema.json +309 -0
  55. package/assets/prompts/core/schemas/prompt.schema.yaml +229 -0
  56. package/assets/prompts/core/standard/archive/v1/analyse.prompt.yaml +259 -0
  57. package/assets/prompts/core/standard/archive/v1/create.prompt.yaml +302 -0
  58. package/assets/prompts/core/standard/archive/v1/materialise.prompt.yaml +328 -0
  59. package/assets/prompts/core/standard/archive/v1/realize.prompt.yaml +606 -0
  60. package/assets/prompts/core/standard/archive/v2/README.md +110 -0
  61. package/assets/prompts/core/standard/archive/v2/analyse.prompt.yaml +151 -0
  62. package/assets/prompts/core/standard/archive/v2/create.prompt.yaml +151 -0
  63. package/assets/prompts/core/standard/archive/v2/materialise.prompt.yaml +132 -0
  64. package/assets/prompts/core/standard/archive/v2/realize.prompt.yaml +147 -0
  65. package/assets/prompts/core/standard/archive/v3/README.md +279 -0
  66. package/assets/prompts/core/standard/archive/v3/analyse.prompt.yaml +309 -0
  67. package/assets/prompts/core/standard/archive/v3/create.prompt.yaml +351 -0
  68. package/assets/prompts/core/standard/archive/v3/materialise.prompt.yaml +247 -0
  69. package/assets/prompts/core/standard/archive/v3/realize.prompt.yaml +344 -0
  70. package/assets/prompts/core/standard/archive/v4/README.md +79 -0
  71. package/assets/prompts/core/standard/archive/v4/analyse.prompt.yaml +204 -0
  72. package/assets/prompts/core/standard/archive/v4/create.prompt.yaml +185 -0
  73. package/assets/prompts/core/standard/archive/v5/README.md +224 -0
  74. package/assets/prompts/core/standard/archive/v5/analyse.prompt.yaml +209 -0
  75. package/assets/prompts/core/standard/archive/v5/create.prompt.yaml +225 -0
  76. package/assets/prompts/core/standard/archive/v5/materialise.prompt.yaml +242 -0
  77. package/assets/prompts/core/standard/archive/v5/realize.prompt.yaml +336 -0
  78. package/assets/prompts/core/standard/archive/v6/README.md +187 -0
  79. package/assets/prompts/core/standard/archive/v6/analyse.prompt.yaml +219 -0
  80. package/assets/prompts/core/standard/archive/v6/create.prompt.yaml +180 -0
  81. package/assets/prompts/core/standard/archive/v6/materialise.prompt.yaml +203 -0
  82. package/assets/prompts/core/standard/archive/v6/realize.prompt.yaml +215 -0
  83. package/assets/prompts/core/standard/archive/v7/analyse.prompt.nick.yaml +144 -0
  84. package/assets/prompts/core/standard/archive/v7/analyse.prompt.old.yaml +146 -0
  85. package/assets/prompts/core/standard/archive/v7/analyse.prompt.yaml +129 -0
  86. package/assets/prompts/core/standard/archive/v7/create.prompt.yaml +146 -0
  87. package/assets/prompts/core/standard/archive/v7/materialise.prompt.yaml +297 -0
  88. package/assets/prompts/core/standard/archive/v7/realize.prompt.yaml +294 -0
  89. package/assets/prompts/core/standard/archive/v8/README.md +400 -0
  90. package/assets/prompts/core/standard/archive/v8/analyse.prompt.yaml +185 -0
  91. package/assets/prompts/core/standard/archive/v8/create.prompt.yaml +203 -0
  92. package/assets/prompts/core/standard/archive/v8/materialise.prompt.yaml +297 -0
  93. package/assets/prompts/core/standard/archive/v8/realize.prompt.yaml +294 -0
  94. package/assets/prompts/core/standard/default/analyse.prompt.yaml +496 -0
  95. package/assets/prompts/core/standard/default/app-demo.prompt.yaml +213 -0
  96. package/assets/prompts/core/standard/default/create.prompt.yaml +418 -0
  97. package/assets/prompts/core/standard/default/materialise.prompt.yaml +814 -0
  98. package/assets/prompts/core/standard/default/realize.prompt.yaml +574 -0
  99. package/assets/prompts/core/standard/v9/analyse.prompt.yaml +496 -0
  100. package/assets/prompts/core/standard/v9/create.prompt.yaml +418 -0
  101. package/assets/prompts/core/standard/v9/materialise.prompt.yaml +814 -0
  102. package/assets/prompts/core/standard/v9/realize.prompt.yaml +574 -0
  103. package/assets/prompts/templates/api-orchestrator-template.yaml +188 -0
  104. package/assets/prompts/templates/claude-integration-template.md +121 -0
  105. package/assets/prompts/templates/terminal-prompt-template.md +97 -0
  106. package/dist/ai/commands/enhance.d.ts +8 -0
  107. package/dist/ai/commands/enhance.d.ts.map +1 -0
  108. package/dist/ai/commands/enhance.js +155 -0
  109. package/dist/ai/commands/enhance.js.map +1 -0
  110. package/dist/ai/commands/fill.d.ts +8 -0
  111. package/dist/ai/commands/fill.d.ts.map +1 -0
  112. package/dist/ai/commands/fill.js +179 -0
  113. package/dist/ai/commands/fill.js.map +1 -0
  114. package/dist/ai/commands/index.d.ts +11 -0
  115. package/dist/ai/commands/index.d.ts.map +1 -0
  116. package/dist/ai/commands/index.js +11 -0
  117. package/dist/ai/commands/index.js.map +1 -0
  118. package/dist/ai/commands/spec-analyser.d.ts +18 -0
  119. package/dist/ai/commands/spec-analyser.d.ts.map +1 -0
  120. package/dist/ai/commands/spec-analyser.js +175 -0
  121. package/dist/ai/commands/spec-analyser.js.map +1 -0
  122. package/dist/ai/commands/suggest.d.ts +8 -0
  123. package/dist/ai/commands/suggest.d.ts.map +1 -0
  124. package/dist/ai/commands/suggest.js +101 -0
  125. package/dist/ai/commands/suggest.js.map +1 -0
  126. package/dist/ai/commands/template.d.ts +8 -0
  127. package/dist/ai/commands/template.d.ts.map +1 -0
  128. package/dist/ai/commands/template.js +136 -0
  129. package/dist/ai/commands/template.js.map +1 -0
  130. package/dist/ai/config/index.d.ts +71 -0
  131. package/dist/ai/config/index.d.ts.map +1 -0
  132. package/dist/ai/config/index.js +193 -0
  133. package/dist/ai/config/index.js.map +1 -0
  134. package/dist/ai/config-loader.d.ts +31 -0
  135. package/dist/ai/config-loader.d.ts.map +1 -0
  136. package/dist/ai/config-loader.js +66 -0
  137. package/dist/ai/config-loader.js.map +1 -0
  138. package/dist/ai/core/ecosystem-prompt-manager.d.ts +107 -0
  139. package/dist/ai/core/ecosystem-prompt-manager.d.ts.map +1 -0
  140. package/dist/ai/core/ecosystem-prompt-manager.js +462 -0
  141. package/dist/ai/core/ecosystem-prompt-manager.js.map +1 -0
  142. package/dist/ai/examples/basic-usage.d.ts +9 -0
  143. package/dist/ai/examples/basic-usage.d.ts.map +1 -0
  144. package/dist/ai/examples/basic-usage.js +94 -0
  145. package/dist/ai/examples/basic-usage.js.map +1 -0
  146. package/dist/ai/index.d.ts +44 -0
  147. package/dist/ai/index.d.ts.map +1 -0
  148. package/dist/ai/index.js +164 -0
  149. package/dist/ai/index.js.map +1 -0
  150. package/dist/ai/orchestrator/index.d.ts +3 -0
  151. package/dist/ai/orchestrator/index.d.ts.map +1 -0
  152. package/dist/ai/orchestrator/index.js +3 -0
  153. package/dist/ai/orchestrator/index.js.map +1 -0
  154. package/dist/ai/orchestrator/interactive-workflow.d.ts +66 -0
  155. package/dist/ai/orchestrator/interactive-workflow.d.ts.map +1 -0
  156. package/dist/ai/orchestrator/interactive-workflow.js +214 -0
  157. package/dist/ai/orchestrator/interactive-workflow.js.map +1 -0
  158. package/dist/ai/orchestrator/specverse-orchestrator.d.ts +217 -0
  159. package/dist/ai/orchestrator/specverse-orchestrator.d.ts.map +1 -0
  160. package/dist/ai/orchestrator/specverse-orchestrator.js +745 -0
  161. package/dist/ai/orchestrator/specverse-orchestrator.js.map +1 -0
  162. package/dist/ai/prompt-loader.d.ts +24 -0
  163. package/dist/ai/prompt-loader.d.ts.map +1 -0
  164. package/dist/ai/prompt-loader.js +159 -0
  165. package/dist/ai/prompt-loader.js.map +1 -0
  166. package/dist/ai/providers/anthropic-provider.d.ts +38 -0
  167. package/dist/ai/providers/anthropic-provider.d.ts.map +1 -0
  168. package/dist/ai/providers/anthropic-provider.js +235 -0
  169. package/dist/ai/providers/anthropic-provider.js.map +1 -0
  170. package/dist/ai/providers/index.d.ts +6 -0
  171. package/dist/ai/providers/index.d.ts.map +1 -0
  172. package/dist/ai/providers/index.js +6 -0
  173. package/dist/ai/providers/index.js.map +1 -0
  174. package/dist/ai/providers/interactive-provider.d.ts +67 -0
  175. package/dist/ai/providers/interactive-provider.d.ts.map +1 -0
  176. package/dist/ai/providers/interactive-provider.js +337 -0
  177. package/dist/ai/providers/interactive-provider.js.map +1 -0
  178. package/dist/ai/providers/llm-provider.d.ts +127 -0
  179. package/dist/ai/providers/llm-provider.d.ts.map +1 -0
  180. package/dist/ai/providers/llm-provider.js +141 -0
  181. package/dist/ai/providers/llm-provider.js.map +1 -0
  182. package/dist/ai/providers/openai-provider.d.ts +39 -0
  183. package/dist/ai/providers/openai-provider.d.ts.map +1 -0
  184. package/dist/ai/providers/openai-provider.js +193 -0
  185. package/dist/ai/providers/openai-provider.js.map +1 -0
  186. package/dist/ai/providers/provider-factory.d.ts +47 -0
  187. package/dist/ai/providers/provider-factory.d.ts.map +1 -0
  188. package/dist/ai/providers/provider-factory.js +159 -0
  189. package/dist/ai/providers/provider-factory.js.map +1 -0
  190. package/dist/ai/session/claude-executor.d.ts +39 -0
  191. package/dist/ai/session/claude-executor.d.ts.map +1 -0
  192. package/dist/ai/session/claude-executor.js +136 -0
  193. package/dist/ai/session/claude-executor.js.map +1 -0
  194. package/dist/ai/session/session-manager.d.ts +72 -0
  195. package/dist/ai/session/session-manager.d.ts.map +1 -0
  196. package/dist/ai/session/session-manager.js +294 -0
  197. package/dist/ai/session/session-manager.js.map +1 -0
  198. package/dist/ai/session/types.d.ts +152 -0
  199. package/dist/ai/session/types.d.ts.map +1 -0
  200. package/dist/ai/session/types.js +6 -0
  201. package/dist/ai/session/types.js.map +1 -0
  202. package/dist/ai/types/index.d.ts +83 -0
  203. package/dist/ai/types/index.d.ts.map +1 -0
  204. package/dist/ai/types/index.js +5 -0
  205. package/dist/ai/types/index.js.map +1 -0
  206. package/dist/generators/UML-generator.d.ts +64 -0
  207. package/dist/generators/UML-generator.d.ts.map +1 -0
  208. package/dist/generators/UML-generator.js +541 -0
  209. package/dist/generators/UML-generator.js.map +1 -0
  210. package/dist/generators/ai-view-generator.d.ts +391 -0
  211. package/dist/generators/ai-view-generator.d.ts.map +1 -0
  212. package/dist/generators/ai-view-generator.js +907 -0
  213. package/dist/generators/ai-view-generator.js.map +1 -0
  214. package/dist/generators/diagram-engine/core/BaseDiagramPlugin.d.ts +41 -0
  215. package/dist/generators/diagram-engine/core/BaseDiagramPlugin.d.ts.map +1 -0
  216. package/dist/generators/diagram-engine/core/BaseDiagramPlugin.js +64 -0
  217. package/dist/generators/diagram-engine/core/BaseDiagramPlugin.js.map +1 -0
  218. package/dist/generators/diagram-engine/core/DiagramContext.d.ts +155 -0
  219. package/dist/generators/diagram-engine/core/DiagramContext.d.ts.map +1 -0
  220. package/dist/generators/diagram-engine/core/DiagramContext.js +481 -0
  221. package/dist/generators/diagram-engine/core/DiagramContext.js.map +1 -0
  222. package/dist/generators/diagram-engine/core/StyleManager.d.ts +51 -0
  223. package/dist/generators/diagram-engine/core/StyleManager.d.ts.map +1 -0
  224. package/dist/generators/diagram-engine/core/StyleManager.js +227 -0
  225. package/dist/generators/diagram-engine/core/StyleManager.js.map +1 -0
  226. package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.d.ts +83 -0
  227. package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.d.ts.map +1 -0
  228. package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.js +200 -0
  229. package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.js.map +1 -0
  230. package/dist/generators/diagram-engine/index.d.ts +41 -0
  231. package/dist/generators/diagram-engine/index.d.ts.map +1 -0
  232. package/dist/generators/diagram-engine/index.js +74 -0
  233. package/dist/generators/diagram-engine/index.js.map +1 -0
  234. package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.d.ts +65 -0
  235. package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.d.ts.map +1 -0
  236. package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.js +490 -0
  237. package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.js.map +1 -0
  238. package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.d.ts +40 -0
  239. package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.d.ts.map +1 -0
  240. package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.js +323 -0
  241. package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.js.map +1 -0
  242. package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.d.ts +46 -0
  243. package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.d.ts.map +1 -0
  244. package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.js +391 -0
  245. package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.js.map +1 -0
  246. package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.d.ts +57 -0
  247. package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.d.ts.map +1 -0
  248. package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.js +300 -0
  249. package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.js.map +1 -0
  250. package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.d.ts +70 -0
  251. package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.d.ts.map +1 -0
  252. package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.js +955 -0
  253. package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.js.map +1 -0
  254. package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.d.ts +40 -0
  255. package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.d.ts.map +1 -0
  256. package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.js +183 -0
  257. package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.js.map +1 -0
  258. package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.d.ts +71 -0
  259. package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.d.ts.map +1 -0
  260. package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.js +396 -0
  261. package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.js.map +1 -0
  262. package/dist/generators/diagram-engine/renderers/MermaidRenderer.d.ts +72 -0
  263. package/dist/generators/diagram-engine/renderers/MermaidRenderer.d.ts.map +1 -0
  264. package/dist/generators/diagram-engine/renderers/MermaidRenderer.js +441 -0
  265. package/dist/generators/diagram-engine/renderers/MermaidRenderer.js.map +1 -0
  266. package/dist/generators/diagram-engine/types/index.d.ts +261 -0
  267. package/dist/generators/diagram-engine/types/index.d.ts.map +1 -0
  268. package/dist/generators/diagram-engine/types/index.js +7 -0
  269. package/dist/generators/diagram-engine/types/index.js.map +1 -0
  270. package/dist/generators/documentation-generator.d.ts +54 -0
  271. package/dist/generators/documentation-generator.d.ts.map +1 -0
  272. package/dist/generators/documentation-generator.js +756 -0
  273. package/dist/generators/documentation-generator.js.map +1 -0
  274. package/dist/generators/index.d.ts +47 -0
  275. package/dist/generators/index.d.ts.map +1 -0
  276. package/dist/generators/index.js +51 -0
  277. package/dist/generators/index.js.map +1 -0
  278. package/dist/index.d.ts +13 -0
  279. package/dist/index.d.ts.map +1 -0
  280. package/dist/index.js +14 -0
  281. package/dist/index.js.map +1 -0
  282. package/dist/inference/comprehensive-engine.d.ts +71 -0
  283. package/dist/inference/comprehensive-engine.d.ts.map +1 -0
  284. package/dist/inference/comprehensive-engine.js +271 -0
  285. package/dist/inference/comprehensive-engine.js.map +1 -0
  286. package/dist/inference/core/context.d.ts +60 -0
  287. package/dist/inference/core/context.d.ts.map +1 -0
  288. package/dist/inference/core/context.js +292 -0
  289. package/dist/inference/core/context.js.map +1 -0
  290. package/dist/inference/core/index.d.ts +14 -0
  291. package/dist/inference/core/index.d.ts.map +1 -0
  292. package/dist/inference/core/index.js +18 -0
  293. package/dist/inference/core/index.js.map +1 -0
  294. package/dist/inference/core/rule-engine.d.ts +52 -0
  295. package/dist/inference/core/rule-engine.d.ts.map +1 -0
  296. package/dist/inference/core/rule-engine.js +1329 -0
  297. package/dist/inference/core/rule-engine.js.map +1 -0
  298. package/dist/inference/core/rule-file-types.d.ts +225 -0
  299. package/dist/inference/core/rule-file-types.d.ts.map +1 -0
  300. package/dist/inference/core/rule-file-types.js +79 -0
  301. package/dist/inference/core/rule-file-types.js.map +1 -0
  302. package/dist/inference/core/rule-loader.d.ts +93 -0
  303. package/dist/inference/core/rule-loader.d.ts.map +1 -0
  304. package/dist/inference/core/rule-loader.js +645 -0
  305. package/dist/inference/core/rule-loader.js.map +1 -0
  306. package/dist/inference/core/specly-converter.d.ts +50 -0
  307. package/dist/inference/core/specly-converter.d.ts.map +1 -0
  308. package/dist/inference/core/specly-converter.js +885 -0
  309. package/dist/inference/core/specly-converter.js.map +1 -0
  310. package/dist/inference/core/types.d.ts +395 -0
  311. package/dist/inference/core/types.d.ts.map +1 -0
  312. package/dist/inference/core/types.js +31 -0
  313. package/dist/inference/core/types.js.map +1 -0
  314. package/dist/inference/deployment/deployment-generator.d.ts +48 -0
  315. package/dist/inference/deployment/deployment-generator.d.ts.map +1 -0
  316. package/dist/inference/deployment/deployment-generator.js +343 -0
  317. package/dist/inference/deployment/deployment-generator.js.map +1 -0
  318. package/dist/inference/deployment/index.d.ts +6 -0
  319. package/dist/inference/deployment/index.d.ts.map +1 -0
  320. package/dist/inference/deployment/index.js +5 -0
  321. package/dist/inference/deployment/index.js.map +1 -0
  322. package/dist/inference/dev-specly-generator.d.ts +19 -0
  323. package/dist/inference/dev-specly-generator.d.ts.map +1 -0
  324. package/dist/inference/dev-specly-generator.js +127 -0
  325. package/dist/inference/dev-specly-generator.js.map +1 -0
  326. package/dist/inference/index.d.ts +29 -0
  327. package/dist/inference/index.d.ts.map +1 -0
  328. package/dist/inference/index.js +170 -0
  329. package/dist/inference/index.js.map +1 -0
  330. package/dist/inference/logical/generators/component-type-resolver.d.ts +82 -0
  331. package/dist/inference/logical/generators/component-type-resolver.d.ts.map +1 -0
  332. package/dist/inference/logical/generators/component-type-resolver.js +151 -0
  333. package/dist/inference/logical/generators/component-type-resolver.js.map +1 -0
  334. package/dist/inference/logical/generators/controller-generator.d.ts +43 -0
  335. package/dist/inference/logical/generators/controller-generator.d.ts.map +1 -0
  336. package/dist/inference/logical/generators/controller-generator.js +303 -0
  337. package/dist/inference/logical/generators/controller-generator.js.map +1 -0
  338. package/dist/inference/logical/generators/event-generator.d.ts +67 -0
  339. package/dist/inference/logical/generators/event-generator.d.ts.map +1 -0
  340. package/dist/inference/logical/generators/event-generator.js +466 -0
  341. package/dist/inference/logical/generators/event-generator.js.map +1 -0
  342. package/dist/inference/logical/generators/promotion-generator.d.ts +32 -0
  343. package/dist/inference/logical/generators/promotion-generator.d.ts.map +1 -0
  344. package/dist/inference/logical/generators/promotion-generator.js +133 -0
  345. package/dist/inference/logical/generators/promotion-generator.js.map +1 -0
  346. package/dist/inference/logical/generators/service-generator.d.ts +51 -0
  347. package/dist/inference/logical/generators/service-generator.d.ts.map +1 -0
  348. package/dist/inference/logical/generators/service-generator.js +268 -0
  349. package/dist/inference/logical/generators/service-generator.js.map +1 -0
  350. package/dist/inference/logical/generators/specialist-view-expander.d.ts +75 -0
  351. package/dist/inference/logical/generators/specialist-view-expander.d.ts.map +1 -0
  352. package/dist/inference/logical/generators/specialist-view-expander.js +182 -0
  353. package/dist/inference/logical/generators/specialist-view-expander.js.map +1 -0
  354. package/dist/inference/logical/generators/view-generator.d.ts +131 -0
  355. package/dist/inference/logical/generators/view-generator.d.ts.map +1 -0
  356. package/dist/inference/logical/generators/view-generator.js +1115 -0
  357. package/dist/inference/logical/generators/view-generator.js.map +1 -0
  358. package/dist/inference/logical/index.d.ts +19 -0
  359. package/dist/inference/logical/index.d.ts.map +1 -0
  360. package/dist/inference/logical/index.js +15 -0
  361. package/dist/inference/logical/index.js.map +1 -0
  362. package/dist/inference/logical/logical-engine.d.ts +68 -0
  363. package/dist/inference/logical/logical-engine.d.ts.map +1 -0
  364. package/dist/inference/logical/logical-engine.js +484 -0
  365. package/dist/inference/logical/logical-engine.js.map +1 -0
  366. package/dist/inference/quint-transpiler.d.ts +64 -0
  367. package/dist/inference/quint-transpiler.d.ts.map +1 -0
  368. package/dist/inference/quint-transpiler.js +433 -0
  369. package/dist/inference/quint-transpiler.js.map +1 -0
  370. package/dist/inference/test-harness.d.ts +41 -0
  371. package/dist/inference/test-harness.d.ts.map +1 -0
  372. package/dist/inference/test-harness.js +357 -0
  373. package/dist/inference/test-harness.js.map +1 -0
  374. package/dist/parser/convention-processor.d.ts +66 -0
  375. package/dist/parser/convention-processor.d.ts.map +1 -0
  376. package/dist/parser/convention-processor.js +349 -0
  377. package/dist/parser/convention-processor.js.map +1 -0
  378. package/dist/parser/import-resolver/cache.d.ts +56 -0
  379. package/dist/parser/import-resolver/cache.d.ts.map +1 -0
  380. package/dist/parser/import-resolver/cache.js +191 -0
  381. package/dist/parser/import-resolver/cache.js.map +1 -0
  382. package/dist/parser/import-resolver/index.d.ts +10 -0
  383. package/dist/parser/import-resolver/index.d.ts.map +1 -0
  384. package/dist/parser/import-resolver/index.js +9 -0
  385. package/dist/parser/import-resolver/index.js.map +1 -0
  386. package/dist/parser/import-resolver/resolver.d.ts +102 -0
  387. package/dist/parser/import-resolver/resolver.d.ts.map +1 -0
  388. package/dist/parser/import-resolver/resolver.js +669 -0
  389. package/dist/parser/import-resolver/resolver.js.map +1 -0
  390. package/dist/parser/import-resolver/types.d.ts +55 -0
  391. package/dist/parser/import-resolver/types.d.ts.map +1 -0
  392. package/dist/parser/import-resolver/types.js +5 -0
  393. package/dist/parser/import-resolver/types.js.map +1 -0
  394. package/dist/parser/index.d.ts +38 -0
  395. package/dist/parser/index.d.ts.map +1 -0
  396. package/dist/parser/index.js +61 -0
  397. package/dist/parser/index.js.map +1 -0
  398. package/dist/parser/namespace-utils.d.ts +61 -0
  399. package/dist/parser/namespace-utils.d.ts.map +1 -0
  400. package/dist/parser/namespace-utils.js +191 -0
  401. package/dist/parser/namespace-utils.js.map +1 -0
  402. package/dist/parser/processors/AbstractProcessor.d.ts +10 -0
  403. package/dist/parser/processors/AbstractProcessor.d.ts.map +1 -0
  404. package/dist/parser/processors/AbstractProcessor.js +11 -0
  405. package/dist/parser/processors/AbstractProcessor.js.map +1 -0
  406. package/dist/parser/processors/AttributeProcessor.d.ts +19 -0
  407. package/dist/parser/processors/AttributeProcessor.d.ts.map +1 -0
  408. package/dist/parser/processors/AttributeProcessor.js +154 -0
  409. package/dist/parser/processors/AttributeProcessor.js.map +1 -0
  410. package/dist/parser/processors/ControllerProcessor.d.ts +9 -0
  411. package/dist/parser/processors/ControllerProcessor.d.ts.map +1 -0
  412. package/dist/parser/processors/ControllerProcessor.js +74 -0
  413. package/dist/parser/processors/ControllerProcessor.js.map +1 -0
  414. package/dist/parser/processors/DeploymentProcessor.d.ts +19 -0
  415. package/dist/parser/processors/DeploymentProcessor.d.ts.map +1 -0
  416. package/dist/parser/processors/DeploymentProcessor.js +244 -0
  417. package/dist/parser/processors/DeploymentProcessor.js.map +1 -0
  418. package/dist/parser/processors/EventProcessor.d.ts +8 -0
  419. package/dist/parser/processors/EventProcessor.d.ts.map +1 -0
  420. package/dist/parser/processors/EventProcessor.js +28 -0
  421. package/dist/parser/processors/EventProcessor.js.map +1 -0
  422. package/dist/parser/processors/ExecutableProcessor.d.ts +21 -0
  423. package/dist/parser/processors/ExecutableProcessor.d.ts.map +1 -0
  424. package/dist/parser/processors/ExecutableProcessor.js +135 -0
  425. package/dist/parser/processors/ExecutableProcessor.js.map +1 -0
  426. package/dist/parser/processors/LifecycleProcessor.d.ts +9 -0
  427. package/dist/parser/processors/LifecycleProcessor.d.ts.map +1 -0
  428. package/dist/parser/processors/LifecycleProcessor.js +41 -0
  429. package/dist/parser/processors/LifecycleProcessor.js.map +1 -0
  430. package/dist/parser/processors/ModelProcessor.d.ts +67 -0
  431. package/dist/parser/processors/ModelProcessor.d.ts.map +1 -0
  432. package/dist/parser/processors/ModelProcessor.js +495 -0
  433. package/dist/parser/processors/ModelProcessor.js.map +1 -0
  434. package/dist/parser/processors/RelationshipProcessor.d.ts +10 -0
  435. package/dist/parser/processors/RelationshipProcessor.d.ts.map +1 -0
  436. package/dist/parser/processors/RelationshipProcessor.js +55 -0
  437. package/dist/parser/processors/RelationshipProcessor.js.map +1 -0
  438. package/dist/parser/processors/ServiceProcessor.d.ts +9 -0
  439. package/dist/parser/processors/ServiceProcessor.d.ts.map +1 -0
  440. package/dist/parser/processors/ServiceProcessor.js +59 -0
  441. package/dist/parser/processors/ServiceProcessor.js.map +1 -0
  442. package/dist/parser/processors/ViewProcessor.d.ts +7 -0
  443. package/dist/parser/processors/ViewProcessor.d.ts.map +1 -0
  444. package/dist/parser/processors/ViewProcessor.js +66 -0
  445. package/dist/parser/processors/ViewProcessor.js.map +1 -0
  446. package/dist/parser/types/ast.d.ts +518 -0
  447. package/dist/parser/types/ast.d.ts.map +1 -0
  448. package/dist/parser/types/ast.js +8 -0
  449. package/dist/parser/types/ast.js.map +1 -0
  450. package/dist/parser/types/views.d.ts +186 -0
  451. package/dist/parser/types/views.d.ts.map +1 -0
  452. package/dist/parser/types/views.js +8 -0
  453. package/dist/parser/types/views.js.map +1 -0
  454. package/dist/parser/unified-parser.d.ts +195 -0
  455. package/dist/parser/unified-parser.d.ts.map +1 -0
  456. package/dist/parser/unified-parser.js +1180 -0
  457. package/dist/parser/unified-parser.js.map +1 -0
  458. package/dist/parser/vitest.config.d.ts +3 -0
  459. package/dist/parser/vitest.config.d.ts.map +1 -0
  460. package/dist/parser/vitest.config.js +27 -0
  461. package/dist/parser/vitest.config.js.map +1 -0
  462. package/dist/realize/engines/code-generator.d.ts +86 -0
  463. package/dist/realize/engines/code-generator.d.ts.map +1 -0
  464. package/dist/realize/engines/code-generator.js +159 -0
  465. package/dist/realize/engines/code-generator.js.map +1 -0
  466. package/dist/realize/engines/engine-registry.d.ts +94 -0
  467. package/dist/realize/engines/engine-registry.d.ts.map +1 -0
  468. package/dist/realize/engines/engine-registry.js +163 -0
  469. package/dist/realize/engines/engine-registry.js.map +1 -0
  470. package/dist/realize/engines/index.d.ts +10 -0
  471. package/dist/realize/engines/index.d.ts.map +1 -0
  472. package/dist/realize/engines/index.js +12 -0
  473. package/dist/realize/engines/index.js.map +1 -0
  474. package/dist/realize/engines/typescript-engine.d.ts +74 -0
  475. package/dist/realize/engines/typescript-engine.d.ts.map +1 -0
  476. package/dist/realize/engines/typescript-engine.js +289 -0
  477. package/dist/realize/engines/typescript-engine.js.map +1 -0
  478. package/dist/realize/generators/index.d.ts +11 -0
  479. package/dist/realize/generators/index.d.ts.map +1 -0
  480. package/dist/realize/generators/index.js +11 -0
  481. package/dist/realize/generators/index.js.map +1 -0
  482. package/dist/realize/index.d.ts +48 -0
  483. package/dist/realize/index.d.ts.map +1 -0
  484. package/dist/realize/index.js +529 -0
  485. package/dist/realize/index.js.map +1 -0
  486. package/dist/realize/library/index.d.ts +12 -0
  487. package/dist/realize/library/index.d.ts.map +1 -0
  488. package/dist/realize/library/index.js +15 -0
  489. package/dist/realize/library/index.js.map +1 -0
  490. package/dist/realize/library/library.d.ts +132 -0
  491. package/dist/realize/library/library.d.ts.map +1 -0
  492. package/dist/realize/library/library.js +343 -0
  493. package/dist/realize/library/library.js.map +1 -0
  494. package/dist/realize/library/loader.d.ts +73 -0
  495. package/dist/realize/library/loader.d.ts.map +1 -0
  496. package/dist/realize/library/loader.js +159 -0
  497. package/dist/realize/library/loader.js.map +1 -0
  498. package/dist/realize/library/resolver.d.ts +104 -0
  499. package/dist/realize/library/resolver.d.ts.map +1 -0
  500. package/dist/realize/library/resolver.js +299 -0
  501. package/dist/realize/library/resolver.js.map +1 -0
  502. package/dist/realize/library/validator.d.ts +65 -0
  503. package/dist/realize/library/validator.d.ts.map +1 -0
  504. package/dist/realize/library/validator.js +203 -0
  505. package/dist/realize/library/validator.js.map +1 -0
  506. package/dist/realize/types/index.d.ts +5 -0
  507. package/dist/realize/types/index.d.ts.map +1 -0
  508. package/dist/realize/types/index.js +5 -0
  509. package/dist/realize/types/index.js.map +1 -0
  510. package/dist/realize/types/instance-factory.d.ts +7 -0
  511. package/dist/realize/types/instance-factory.d.ts.map +1 -0
  512. package/dist/realize/types/instance-factory.js +2 -0
  513. package/dist/realize/types/instance-factory.js.map +1 -0
  514. package/dist/realize/types/unified-mappings.d.ts +163 -0
  515. package/dist/realize/types/unified-mappings.d.ts.map +1 -0
  516. package/dist/realize/types/unified-mappings.js +110 -0
  517. package/dist/realize/types/unified-mappings.js.map +1 -0
  518. package/dist/realize/utils/ai-spec-loader.d.ts +77 -0
  519. package/dist/realize/utils/ai-spec-loader.d.ts.map +1 -0
  520. package/dist/realize/utils/ai-spec-loader.js +142 -0
  521. package/dist/realize/utils/ai-spec-loader.js.map +1 -0
  522. package/dist/realize/utils/index.d.ts +9 -0
  523. package/dist/realize/utils/index.d.ts.map +1 -0
  524. package/dist/realize/utils/index.js +9 -0
  525. package/dist/realize/utils/index.js.map +1 -0
  526. package/dist/realize/utils/manifest-loader.d.ts +107 -0
  527. package/dist/realize/utils/manifest-loader.d.ts.map +1 -0
  528. package/dist/realize/utils/manifest-loader.js +168 -0
  529. package/dist/realize/utils/manifest-loader.js.map +1 -0
  530. package/dist/realize/utils/mapping-migration.d.ts +53 -0
  531. package/dist/realize/utils/mapping-migration.d.ts.map +1 -0
  532. package/dist/realize/utils/mapping-migration.js +194 -0
  533. package/dist/realize/utils/mapping-migration.js.map +1 -0
  534. package/dist/registry/cache/cache-manager.d.ts +132 -0
  535. package/dist/registry/cache/cache-manager.d.ts.map +1 -0
  536. package/dist/registry/cache/cache-manager.js +218 -0
  537. package/dist/registry/cache/cache-manager.js.map +1 -0
  538. package/dist/registry/client/registry-client.d.ts +129 -0
  539. package/dist/registry/client/registry-client.d.ts.map +1 -0
  540. package/dist/registry/client/registry-client.js +317 -0
  541. package/dist/registry/client/registry-client.js.map +1 -0
  542. package/dist/registry/formatters/error-formatter.d.ts +100 -0
  543. package/dist/registry/formatters/error-formatter.d.ts.map +1 -0
  544. package/dist/registry/formatters/error-formatter.js +290 -0
  545. package/dist/registry/formatters/error-formatter.js.map +1 -0
  546. package/dist/registry/formatters/index.d.ts +8 -0
  547. package/dist/registry/formatters/index.d.ts.map +1 -0
  548. package/dist/registry/formatters/index.js +7 -0
  549. package/dist/registry/formatters/index.js.map +1 -0
  550. package/dist/registry/index.d.ts +19 -0
  551. package/dist/registry/index.d.ts.map +1 -0
  552. package/dist/registry/index.js +22 -0
  553. package/dist/registry/index.js.map +1 -0
  554. package/dist/registry/offline/offline-handler.d.ts +150 -0
  555. package/dist/registry/offline/offline-handler.d.ts.map +1 -0
  556. package/dist/registry/offline/offline-handler.js +290 -0
  557. package/dist/registry/offline/offline-handler.js.map +1 -0
  558. package/dist/registry/types/index.d.ts +13 -0
  559. package/dist/registry/types/index.d.ts.map +1 -0
  560. package/dist/registry/types/index.js +11 -0
  561. package/dist/registry/types/index.js.map +1 -0
  562. package/dist/registry/types/registry.d.ts +220 -0
  563. package/dist/registry/types/registry.d.ts.map +1 -0
  564. package/dist/registry/types/registry.js +55 -0
  565. package/dist/registry/types/registry.js.map +1 -0
  566. package/dist/registry/types/validation.d.ts +197 -0
  567. package/dist/registry/types/validation.d.ts.map +1 -0
  568. package/dist/registry/types/validation.js +140 -0
  569. package/dist/registry/types/validation.js.map +1 -0
  570. package/dist/registry/utils/manifest-adapter.d.ts +42 -0
  571. package/dist/registry/utils/manifest-adapter.d.ts.map +1 -0
  572. package/dist/registry/utils/manifest-adapter.js +182 -0
  573. package/dist/registry/utils/manifest-adapter.js.map +1 -0
  574. package/dist/registry/validators/index.d.ts +12 -0
  575. package/dist/registry/validators/index.d.ts.map +1 -0
  576. package/dist/registry/validators/index.js +9 -0
  577. package/dist/registry/validators/index.js.map +1 -0
  578. package/dist/registry/validators/installation-validator.d.ts +75 -0
  579. package/dist/registry/validators/installation-validator.d.ts.map +1 -0
  580. package/dist/registry/validators/installation-validator.js +142 -0
  581. package/dist/registry/validators/installation-validator.js.map +1 -0
  582. package/dist/registry/validators/manifest-validator.d.ts +82 -0
  583. package/dist/registry/validators/manifest-validator.d.ts.map +1 -0
  584. package/dist/registry/validators/manifest-validator.js +213 -0
  585. package/dist/registry/validators/manifest-validator.js.map +1 -0
  586. package/dist/registry/validators/validator.d.ts +113 -0
  587. package/dist/registry/validators/validator.d.ts.map +1 -0
  588. package/dist/registry/validators/validator.js +165 -0
  589. package/dist/registry/validators/validator.js.map +1 -0
  590. package/libs/instance-factories/CURVED-INTERFACE.md +278 -0
  591. package/libs/instance-factories/README.md +73 -0
  592. package/libs/instance-factories/applications/README.md +51 -0
  593. package/libs/instance-factories/applications/generic-app.yaml +52 -0
  594. package/libs/instance-factories/applications/react-app-runtime.yaml +139 -0
  595. package/libs/instance-factories/applications/react-app.yaml +186 -0
  596. package/libs/instance-factories/applications/templates/generic/backend-env-generator.ts +31 -0
  597. package/libs/instance-factories/applications/templates/generic/backend-package-json-generator.ts +84 -0
  598. package/libs/instance-factories/applications/templates/generic/backend-tsconfig-generator.ts +69 -0
  599. package/libs/instance-factories/applications/templates/generic/main-generator.ts +308 -0
  600. package/libs/instance-factories/applications/templates/react/_view-components-source.ts +555 -0
  601. package/libs/instance-factories/applications/templates/react/api-client-generator.ts +436 -0
  602. package/libs/instance-factories/applications/templates/react/api-types-generator.ts +153 -0
  603. package/libs/instance-factories/applications/templates/react/app-tsx-generator.ts +94 -0
  604. package/libs/instance-factories/applications/templates/react/env-example-generator.ts +24 -0
  605. package/libs/instance-factories/applications/templates/react/field-helpers-generator.ts +106 -0
  606. package/libs/instance-factories/applications/templates/react/gitignore-generator.ts +38 -0
  607. package/libs/instance-factories/applications/templates/react/index-css-generator.ts +14 -0
  608. package/libs/instance-factories/applications/templates/react/index-html-generator.ts +30 -0
  609. package/libs/instance-factories/applications/templates/react/main-tsx-generator.ts +34 -0
  610. package/libs/instance-factories/applications/templates/react/package-json-generator.ts +57 -0
  611. package/libs/instance-factories/applications/templates/react/pattern-adapter-generator.ts +179 -0
  612. package/libs/instance-factories/applications/templates/react/react-pattern-adapter.tsx +1347 -0
  613. package/libs/instance-factories/applications/templates/react/relationship-field-generator.ts +150 -0
  614. package/libs/instance-factories/applications/templates/react/runtime-app-tsx-generator.ts +90 -0
  615. package/libs/instance-factories/applications/templates/react/runtime-package-json-generator.ts +61 -0
  616. package/libs/instance-factories/applications/templates/react/tailwind-adapter-generator.ts +704 -0
  617. package/libs/instance-factories/applications/templates/react/tailwind-adapter-wrapper-generator.ts +84 -0
  618. package/libs/instance-factories/applications/templates/react/tsconfig-generator.ts +35 -0
  619. package/libs/instance-factories/applications/templates/react/use-api-hooks-generator.ts +121 -0
  620. package/libs/instance-factories/applications/templates/react/view-dashboard-generator.ts +150 -0
  621. package/libs/instance-factories/applications/templates/react/view-detail-generator.ts +150 -0
  622. package/libs/instance-factories/applications/templates/react/view-form-generator.ts +362 -0
  623. package/libs/instance-factories/applications/templates/react/view-list-generator.ts +98 -0
  624. package/libs/instance-factories/applications/templates/react/view-router-generator.ts +89 -0
  625. package/libs/instance-factories/applications/templates/react/vite-config-generator.ts +49 -0
  626. package/libs/instance-factories/archived/fastify-prisma.yaml +104 -0
  627. package/libs/instance-factories/cli/README.md +43 -0
  628. package/libs/instance-factories/cli/commander-js.yaml +55 -0
  629. package/libs/instance-factories/cli/templates/commander/cli-bin-wrapper-generator.ts +20 -0
  630. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts +12 -0
  631. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts.map +1 -0
  632. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js +115 -0
  633. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js.map +1 -0
  634. package/libs/instance-factories/cli/templates/commander/cli-entry-generator.ts +168 -0
  635. package/libs/instance-factories/cli/templates/commander/command-generator.d.ts +14 -0
  636. package/libs/instance-factories/cli/templates/commander/command-generator.d.ts.map +1 -0
  637. package/libs/instance-factories/cli/templates/commander/command-generator.js +182 -0
  638. package/libs/instance-factories/cli/templates/commander/command-generator.js.map +1 -0
  639. package/libs/instance-factories/cli/templates/commander/command-generator.ts +1036 -0
  640. package/libs/instance-factories/communication/README.md +47 -0
  641. package/libs/instance-factories/communication/event-emitter.yaml +56 -0
  642. package/libs/instance-factories/communication/rabbitmq-events.yaml +87 -0
  643. package/libs/instance-factories/communication/templates/eventemitter/bus-generator.ts +93 -0
  644. package/libs/instance-factories/communication/templates/eventemitter/publisher-generator.ts +117 -0
  645. package/libs/instance-factories/communication/templates/eventemitter/subscriber-generator.ts +101 -0
  646. package/libs/instance-factories/controllers/README.md +42 -0
  647. package/libs/instance-factories/controllers/fastify.yaml +127 -0
  648. package/libs/instance-factories/controllers/templates/fastify/meta-routes-generator.ts +103 -0
  649. package/libs/instance-factories/controllers/templates/fastify/routes-generator.ts +389 -0
  650. package/libs/instance-factories/controllers/templates/fastify/server-generator.ts +76 -0
  651. package/libs/instance-factories/infrastructure/README.md +29 -0
  652. package/libs/instance-factories/infrastructure/docker-k8s.yaml +61 -0
  653. package/libs/instance-factories/infrastructure/templates/docker-k8s/infrastructure-generator.ts +46 -0
  654. package/libs/instance-factories/orms/README.md +54 -0
  655. package/libs/instance-factories/orms/prisma.yaml +89 -0
  656. package/libs/instance-factories/orms/templates/prisma/schema-generator.ts +576 -0
  657. package/libs/instance-factories/orms/templates/prisma/services-generator.ts +408 -0
  658. package/libs/instance-factories/scaffolding/README.md +49 -0
  659. package/libs/instance-factories/scaffolding/generic-scaffold.yaml +65 -0
  660. package/libs/instance-factories/scaffolding/templates/generic/env-example-generator.ts +73 -0
  661. package/libs/instance-factories/scaffolding/templates/generic/env-generator.ts +85 -0
  662. package/libs/instance-factories/scaffolding/templates/generic/gitignore-generator.ts +69 -0
  663. package/libs/instance-factories/scaffolding/templates/generic/package-json-generator.ts +176 -0
  664. package/libs/instance-factories/scaffolding/templates/generic/readme-generator.ts +207 -0
  665. package/libs/instance-factories/scaffolding/templates/generic/tsconfig-generator.ts +78 -0
  666. package/libs/instance-factories/scaffolding/templates/generic/tsconfig-react-generator.ts +41 -0
  667. package/libs/instance-factories/sdks/README.md +28 -0
  668. package/libs/instance-factories/sdks/python-sdk.yaml +66 -0
  669. package/libs/instance-factories/sdks/templates/python/sdk-generator.ts +50 -0
  670. package/libs/instance-factories/sdks/templates/typescript/sdk-generator.ts +49 -0
  671. package/libs/instance-factories/sdks/typescript-sdk.yaml +59 -0
  672. package/libs/instance-factories/services/README.md +55 -0
  673. package/libs/instance-factories/services/prisma-services.yaml +71 -0
  674. package/libs/instance-factories/services/templates/memory/generate-interpreter.ts +25 -0
  675. package/libs/instance-factories/services/templates/memory/step-conventions-memory.ts +465 -0
  676. package/libs/instance-factories/services/templates/prisma/behavior-generator.ts +304 -0
  677. package/libs/instance-factories/services/templates/prisma/controller-generator.ts +532 -0
  678. package/libs/instance-factories/services/templates/prisma/service-generator.ts +334 -0
  679. package/libs/instance-factories/services/templates/prisma/step-conventions.ts +309 -0
  680. package/libs/instance-factories/services/templates/shared-patterns.ts +38 -0
  681. package/libs/instance-factories/shared/path-resolver.ts +111 -0
  682. package/libs/instance-factories/storage/README.md +34 -0
  683. package/libs/instance-factories/storage/mongodb.yaml +79 -0
  684. package/libs/instance-factories/storage/postgresql.yaml +75 -0
  685. package/libs/instance-factories/storage/redis.yaml +79 -0
  686. package/libs/instance-factories/storage/templates/mongodb/config-generator.ts +15 -0
  687. package/libs/instance-factories/storage/templates/mongodb/docker-generator.ts +18 -0
  688. package/libs/instance-factories/storage/templates/postgresql/config-generator.ts +54 -0
  689. package/libs/instance-factories/storage/templates/postgresql/docker-generator.ts +55 -0
  690. package/libs/instance-factories/storage/templates/redis/config-generator.ts +16 -0
  691. package/libs/instance-factories/storage/templates/redis/docker-generator.ts +18 -0
  692. package/libs/instance-factories/test-generation.ts +192 -0
  693. package/libs/instance-factories/testing/README.md +40 -0
  694. package/libs/instance-factories/testing/templates/vitest/tests-generator.ts +51 -0
  695. package/libs/instance-factories/testing/vitest-tests.yaml +63 -0
  696. package/libs/instance-factories/tools/README.md +70 -0
  697. package/libs/instance-factories/tools/mcp.yaml +36 -0
  698. package/libs/instance-factories/tools/templates/mcp/mcp-server-generator.ts +190 -0
  699. package/libs/instance-factories/tools/templates/mcp/static/docs/DEPLOYMENT_GUIDE.md +630 -0
  700. package/libs/instance-factories/tools/templates/mcp/static/docs/HYBRID_RESOURCE_SYSTEM.md +330 -0
  701. package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/EXTENSION_DEPLOYMENT.md +552 -0
  702. package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/LOCAL_DEPLOYMENT.md +164 -0
  703. package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/WEB_DEPLOYMENT.md +247 -0
  704. package/libs/instance-factories/tools/templates/mcp/static/package.json +94 -0
  705. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-enterprise.js +284 -0
  706. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-extension.js +139 -0
  707. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-local.js +74 -0
  708. package/libs/instance-factories/tools/templates/mcp/static/scripts/build-web.js +156 -0
  709. package/libs/instance-factories/tools/templates/mcp/static/scripts/copy-canonical-files.js +41 -0
  710. package/libs/instance-factories/tools/templates/mcp/static/scripts/test-deployments.js +259 -0
  711. package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-resources.js +231 -0
  712. package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-simple.js +196 -0
  713. package/libs/instance-factories/tools/templates/mcp/static/src/controllers/MCPServerController.ts +293 -0
  714. package/libs/instance-factories/tools/templates/mcp/static/src/events/EventEmitter.ts +90 -0
  715. package/libs/instance-factories/tools/templates/mcp/static/src/index.ts +24 -0
  716. package/libs/instance-factories/tools/templates/mcp/static/src/interfaces/ResourceProvider.ts +15 -0
  717. package/libs/instance-factories/tools/templates/mcp/static/src/models/LibrarySuggestion.ts +106 -0
  718. package/libs/instance-factories/tools/templates/mcp/static/src/models/SpecVerseResource.ts +75 -0
  719. package/libs/instance-factories/tools/templates/mcp/static/src/server/mcp-server.ts +239 -0
  720. package/libs/instance-factories/tools/templates/mcp/static/src/services/CLIProxyService.ts +1501 -0
  721. package/libs/instance-factories/tools/templates/mcp/static/src/services/EmbeddedResourcesAdapter.ts +211 -0
  722. package/libs/instance-factories/tools/templates/mcp/static/src/services/EntityModuleService.ts +308 -0
  723. package/libs/instance-factories/tools/templates/mcp/static/src/services/HybridResourcesProvider.ts +210 -0
  724. package/libs/instance-factories/tools/templates/mcp/static/src/services/LibraryToolsService.ts +356 -0
  725. package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorBridge.ts +522 -0
  726. package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorToolsService.ts +530 -0
  727. package/libs/instance-factories/tools/templates/mcp/static/src/services/PromptToolsService.ts +594 -0
  728. package/libs/instance-factories/tools/templates/mcp/static/src/services/ResourcesProviderService.ts +170 -0
  729. package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.init.test.ts +544 -0
  730. package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.test.ts +189 -0
  731. package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/ResourcesProviderService.test.ts +89 -0
  732. package/libs/instance-factories/tools/templates/mcp/static/src/types/index.ts +110 -0
  733. package/libs/instance-factories/tools/templates/mcp/static/tsconfig.json +28 -0
  734. package/libs/instance-factories/tools/templates/vscode/static/extension.ts +1195 -0
  735. package/libs/instance-factories/tools/templates/vscode/static/language-configuration.json +34 -0
  736. package/libs/instance-factories/tools/templates/vscode/static/schemas/specverse-v3-schema.json +4279 -0
  737. package/libs/instance-factories/tools/templates/vscode/static/syntaxes/specverse.tmLanguage.json +138 -0
  738. package/libs/instance-factories/tools/templates/vscode/static/themes/README.md +74 -0
  739. package/libs/instance-factories/tools/templates/vscode/static/themes/complete-specverse-colors.json +122 -0
  740. package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-basic-theme.json +65 -0
  741. package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-complete-theme.json +123 -0
  742. package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-theme-colors.json +64 -0
  743. package/libs/instance-factories/tools/templates/vscode/vscode-extension-generator.ts +300 -0
  744. package/libs/instance-factories/tools/vscode.yaml +35 -0
  745. package/libs/instance-factories/validation/README.md +38 -0
  746. package/libs/instance-factories/validation/templates/zod/validation-generator.ts +46 -0
  747. package/libs/instance-factories/validation/zod.yaml +56 -0
  748. package/libs/instance-factories/views/README.md +62 -0
  749. package/libs/instance-factories/views/index.d.ts +13 -0
  750. package/libs/instance-factories/views/index.d.ts.map +1 -0
  751. package/libs/instance-factories/views/index.js +18 -0
  752. package/libs/instance-factories/views/index.js.map +1 -0
  753. package/libs/instance-factories/views/index.ts +45 -0
  754. package/libs/instance-factories/views/react-components.yaml +129 -0
  755. package/libs/instance-factories/views/templates/ARCHITECTURE.md +198 -0
  756. package/libs/instance-factories/views/templates/react/adapters/antd-adapter.ts +869 -0
  757. package/libs/instance-factories/views/templates/react/adapters/mui-adapter.ts +953 -0
  758. package/libs/instance-factories/views/templates/react/adapters/shadcn-adapter.ts +806 -0
  759. package/libs/instance-factories/views/templates/react/app-generator.ts +55 -0
  760. package/libs/instance-factories/views/templates/react/components-generator.ts +887 -0
  761. package/libs/instance-factories/views/templates/react/forms-generator.ts +343 -0
  762. package/libs/instance-factories/views/templates/react/frontend-package-json-generator.ts +57 -0
  763. package/libs/instance-factories/views/templates/react/hooks-generator.ts +122 -0
  764. package/libs/instance-factories/views/templates/react/index-css-generator.ts +14 -0
  765. package/libs/instance-factories/views/templates/react/index-html-generator.ts +34 -0
  766. package/libs/instance-factories/views/templates/react/main-tsx-generator.ts +29 -0
  767. package/libs/instance-factories/views/templates/react/react-component-generator.d.ts +152 -0
  768. package/libs/instance-factories/views/templates/react/react-component-generator.d.ts.map +1 -0
  769. package/libs/instance-factories/views/templates/react/react-component-generator.js +398 -0
  770. package/libs/instance-factories/views/templates/react/react-component-generator.js.map +1 -0
  771. package/libs/instance-factories/views/templates/react/react-component-generator.ts +533 -0
  772. package/libs/instance-factories/views/templates/react/router-generator.ts +197 -0
  773. package/libs/instance-factories/views/templates/react/router-generic-generator.ts +132 -0
  774. package/libs/instance-factories/views/templates/react/shared-utils-generator.ts +188 -0
  775. package/libs/instance-factories/views/templates/react/spec-json-generator.ts +17 -0
  776. package/libs/instance-factories/views/templates/react/types-generator.ts +76 -0
  777. package/libs/instance-factories/views/templates/react/views-metadata-generator.ts +42 -0
  778. package/libs/instance-factories/views/templates/react/vite-config-generator.ts +38 -0
  779. package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.d.ts.map +1 -0
  780. package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.js.map +1 -0
  781. package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.ts +474 -0
  782. package/libs/instance-factories/views/templates/shared/__tests__/composite-patterns.test.ts +242 -0
  783. package/libs/instance-factories/views/templates/shared/adapter-types.d.ts +77 -0
  784. package/libs/instance-factories/views/templates/shared/adapter-types.d.ts.map +1 -0
  785. package/libs/instance-factories/views/templates/shared/adapter-types.js +47 -0
  786. package/libs/instance-factories/views/templates/shared/adapter-types.js.map +1 -0
  787. package/libs/instance-factories/views/templates/shared/adapter-types.ts +142 -0
  788. package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts +63 -0
  789. package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts.map +1 -0
  790. package/libs/instance-factories/views/templates/shared/atomic-components-registry.js +822 -0
  791. package/libs/instance-factories/views/templates/shared/atomic-components-registry.js.map +1 -0
  792. package/libs/instance-factories/views/templates/shared/atomic-components-registry.ts +908 -0
  793. package/libs/instance-factories/views/templates/shared/base-generator.d.ts +247 -0
  794. package/libs/instance-factories/views/templates/shared/base-generator.d.ts.map +1 -0
  795. package/libs/instance-factories/views/templates/shared/base-generator.js +363 -0
  796. package/libs/instance-factories/views/templates/shared/base-generator.js.map +1 -0
  797. package/libs/instance-factories/views/templates/shared/base-generator.ts +608 -0
  798. package/libs/instance-factories/views/templates/shared/component-metadata.d.ts +254 -0
  799. package/libs/instance-factories/views/templates/shared/component-metadata.d.ts.map +1 -0
  800. package/libs/instance-factories/views/templates/shared/component-metadata.js +602 -0
  801. package/libs/instance-factories/views/templates/shared/component-metadata.js.map +1 -0
  802. package/libs/instance-factories/views/templates/shared/component-metadata.ts +803 -0
  803. package/libs/instance-factories/views/templates/shared/composite-pattern-types.ts +250 -0
  804. package/libs/instance-factories/views/templates/shared/composite-patterns.ts +535 -0
  805. package/libs/instance-factories/views/templates/shared/index.ts +68 -0
  806. package/libs/instance-factories/views/templates/shared/pattern-validator.ts +279 -0
  807. package/libs/instance-factories/views/templates/shared/property-mapper.d.ts +149 -0
  808. package/libs/instance-factories/views/templates/shared/property-mapper.d.ts.map +1 -0
  809. package/libs/instance-factories/views/templates/shared/property-mapper.js +580 -0
  810. package/libs/instance-factories/views/templates/shared/property-mapper.js.map +1 -0
  811. package/libs/instance-factories/views/templates/shared/property-mapper.ts +700 -0
  812. package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts +143 -0
  813. package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts.map +1 -0
  814. package/libs/instance-factories/views/templates/shared/syntax-mapper.js +420 -0
  815. package/libs/instance-factories/views/templates/shared/syntax-mapper.js.map +1 -0
  816. package/libs/instance-factories/views/templates/shared/syntax-mapper.ts +539 -0
  817. package/package.json +63 -0
@@ -0,0 +1,185 @@
1
+ name: analyse
2
+ version: "8.0.0"
3
+ description: Extract SpecVerse specifications from existing code implementations with validate-fix loop
4
+ author: SpecVerse Team
5
+ tags: [analysis, reverse-engineering, implementation, v8, validate-fix-loop]
6
+
7
+ system:
8
+ role: |
9
+ You are a SpecVerse specification analyzer that extracts COMPLETE specverse specifications from existing implementations.
10
+
11
+ BEFORE STARTING: Read these schema files for syntax and examples:
12
+ - {{aiSchemaPath}} (AI guidance, examples, patterns)
13
+ - {{referenceExamplePath}} (complete working example)
14
+
15
+ Your task: Analyze existing code/implementations and extract a FULL, COMPLETE specification that represents EXACTLY what is implemented.
16
+ Include ALL models, controllers, services, views, events found in the implementation.
17
+ This is NOT for inference - capture the implementation AS IT EXISTS.
18
+ The specification must be valid according to SpecVerse schema v3.4.9 and should contain:
19
+ - a components section with the logical models, controllers, services, views, events
20
+ - a deployments section showing the logical instances of these components deployed as a solution
21
+ - a manifest section with the physical details about the deployment
22
+
23
+ context: |
24
+ Generate a FULL SpecVerse specification that represents the actual implementation
25
+ - this specification will be validated so must be syntactically correct
26
+ - Do NOT add speculative features not present in code
27
+
28
+ COMPONENT PRINCIPLES:
29
+ 1. Extract COMPLETE implementation details - models, controllers, services, views, events
30
+ 2. Capture ALL lifecycles, attributes, methods, behaviours and relationships as they exist
31
+ 3. Use convention syntax for all attributes
32
+ 4. Business and validation logic must be captured as steps meeting the requires and ensures clauses
33
+ 5. Actions that are implementing CURED operations must be captured as controller cured operations
34
+ 6. AVOID LOGIC DUPLICATION: Place validation/business logic in model behaviors, not in controllers or services
35
+ 7. Controllers should focus on CURED operations, models on business behaviors, services on orchestration
36
+ 8. Do NOT include implementation details like HTTP paths or routes in controllers
37
+
38
+ DEPLOYMENT PRINCIPLES:
39
+ 1. Capture ALL deployment details - environments, instances, scaling
40
+ 2. Include infrastructure as code (IaC) definitions for all components
41
+ 3. Document deployment workflows and automation scripts
42
+
43
+ MANIFEST PRINCIPLES:
44
+ 1. Include ALL physical deployment details - cloud providers, regions, services
45
+ 2. Capture configuration details - environment variables, secrets, networking
46
+ 3. Document monitoring, logging, and alerting setups
47
+ 4. Include backup and disaster recovery plans
48
+
49
+ user:
50
+ template: |
51
+ Now analyze the existing implementation and extract a COMPLETE SpecVerse specification:
52
+
53
+ Requirements:
54
+ {{requirements}}
55
+
56
+ Implementation Path: {{implementationPath}}
57
+
58
+ Convention Patterns (for reference):
59
+ - Basic attributes: name: String required, email: Email required unique
60
+ - Auto-generated: id: UUID auto=uuid4, createdAt: DateTime auto=now
61
+ - Constraints: age: Integer min=0 max=150, price: Number required min=0
62
+ - Arrays (use object syntax): amenities: { name: amenities, type: String[] }
63
+ - Relationships: user: belongsTo User, posts: hasMany Post cascade (no 'optional' modifier)
64
+ - Lifecycles: status: { flow: "draft -> published -> archived" }
65
+
66
+ IMPORTANT CONVENTIONS:
67
+ - Arrays require object syntax, not convention syntax:
68
+ ✅ CORRECT: amenities: { name: amenities, type: String[] }
69
+ ❌ WRONG: amenities: String[] optional
70
+
71
+ - Lifecycle states must use snake_case (word characters only, no hyphens):
72
+ ✅ CORRECT: pending, confirmed, checked_in, checked_out, cancelled
73
+ ❌ WRONG: in-progress, checked-out, on-hold (kebab-case with hyphens)
74
+ Pattern: ^\w+(?:\s*->\s*\w+)*$ (word characters only)
75
+
76
+ - Use components: (plural) not component: (singular)
77
+ ✅ CORRECT: components:
78
+ ❌ WRONG: component:
79
+
80
+ Primitive Types: String, Number, Integer, Boolean, UUID, DateTime, Date, Email
81
+
82
+ WORKFLOW (iterate until validation passes):
83
+
84
+ Step 1: ANALYZE & GENERATE
85
+ - Read schema files for current v3.4.9 syntax:
86
+ * {{aiSchemaPath}} (AI guidance, examples, patterns)
87
+ * {{referenceExamplePath}} (complete working example)
88
+ - Analyze implementation at {{implementationPath}}
89
+ - Extract complete specification representing AS-IS implementation
90
+ - Use components: (plural) at top level
91
+ - Use snake_case for lifecycle states (NOT kebab-case)
92
+ - Include components, deployments, and manifest sections
93
+ - Write to: spec.specly
94
+
95
+ Step 2: VALIDATE
96
+ - Run: spv validate spec.specly --json
97
+ - If spv command unavailable, perform manual validation:
98
+ * Check YAML syntax
99
+ * Verify components: (plural) format
100
+ * Validate all model attributes use convention syntax
101
+ * Check lifecycle flows use snake_case states
102
+ * Verify relationships are properly defined
103
+ * Ensure deployments and manifest sections are valid
104
+ * Create validation report documenting all checks
105
+ - Check validation results
106
+
107
+ Step 3: FIX IF NEEDED
108
+ - If validation PASSES: Done! Report success with validation details
109
+ - If validation FAILS:
110
+ * Read the error messages carefully
111
+ * Identify what's wrong (common issues):
112
+ - kebab-case in lifecycle flows (e.g., "in-progress" should be "in_progress")
113
+ - component: instead of components:
114
+ - wrong attribute format (e.g., "id: required UUID" should be "id: UUID required")
115
+ - missing required fields (version, description)
116
+ - invalid relationship syntax
117
+ - deployment or manifest section errors
118
+ * Fix the spec using Edit tool
119
+ * Go back to Step 2
120
+
121
+ Continue the validate-fix loop until validation passes.
122
+
123
+ Your goal: Deliver a VALID complete specification that accurately represents the implementation and passes validation.
124
+
125
+ variables:
126
+ - name: requirements
127
+ type: string
128
+ required: true
129
+ description: Analysis requirements and focus areas
130
+
131
+ - name: implementationPath
132
+ type: string
133
+ required: false
134
+ default: "."
135
+ description: Path to the implementation to analyze
136
+
137
+ context:
138
+ priority: "ANALYZE IMPLEMENTATION AND GENERATE VALIDATED SPECIFICATION"
139
+ max_tokens: 2000
140
+ temperature: 0.5
141
+ top_p: 0.9
142
+
143
+ validation:
144
+ input:
145
+ - rule: Requirements must be provided
146
+ required: true
147
+ - rule: Requirements should describe what to extract
148
+ required: false
149
+
150
+ output:
151
+ - rule: Must generate valid SpecVerse v3.4.9 specification
152
+ format: yaml
153
+ schema: schema/SPECVERSE-SCHEMA.json
154
+ - rule: Must include at least one model
155
+ format: yaml
156
+ - rule: Should reflect actual implementation complexity
157
+ format: yaml
158
+ - rule: Must use convention syntax for attributes
159
+ format: yaml
160
+ - rule: Must pass validation (spv validate or manual validation)
161
+ format: yaml
162
+ required: true
163
+
164
+ metadata:
165
+ created: "2025-09-21T00:00:00Z"
166
+ updated: "2025-11-22T00:00:00Z"
167
+ improvements_from_v7:
168
+ - "Added validate-fix loop workflow for guaranteed valid output"
169
+ - "Updated schema version from v3.2.0 to v3.4.9"
170
+ - "Added explicit lifecycle state convention warnings (snake_case vs kebab-case)"
171
+ - "Added manual validation fallback when spv command unavailable"
172
+ - "Added components: (plural) vs component: (singular) warning"
173
+ - "Included common validation error patterns and fixes"
174
+ - "Validation now required in output criteria"
175
+ - "More direct analysis approach with validation integration"
176
+ tested_with:
177
+ - provider: anthropic
178
+ model: claude-sonnet-4-5
179
+ success_rate: "100%"
180
+ avg_iterations: 1.2
181
+ performance:
182
+ avg_response_time: "230s (with validation)"
183
+ avg_tokens_used: pending
184
+ validation_success_rate: "100%"
185
+ turn_increase_vs_v7: "4x longer for guaranteed validity"
@@ -0,0 +1,203 @@
1
+ name: create
2
+ version: "8.0.0"
3
+ description: Generate minimal SpecVerse specifications from natural language requirements with validate-fix loop
4
+ author: SpecVerse Team
5
+ tags: [creation, requirements, minimal-spec, v8, validate-fix-loop]
6
+
7
+ system:
8
+ role: |
9
+ You are a SpecVerse specification creator that generates MINIMAL specifications from requirements.
10
+
11
+ BEFORE STARTING: Read these schema files for syntax and examples:
12
+ - {{aiSchemaPath}} (AI guidance, examples, patterns)
13
+ - {{referenceSchemaPath}} (complete working example)
14
+
15
+ Your task: Analyze requirements and generate the smallest possible valid specification that captures core business logic.
16
+ The SpecVerse inference engine will later expand these minimal specs into complete architectures.
17
+
18
+ context: |
19
+ CORE PRINCIPLES:
20
+ 1. Extract core business entities and their relationships
21
+ 2. Generate a minimal SpecVerse specification with only essential attributes
22
+ 3. Let the inference engine handle controllers, services, events, and views later
23
+ 4. Focus on business logic, not technical implementation details
24
+ 5. Start with the absolute minimum needed to represent the domain
25
+ 6. Validate and fix errors iteratively until specification passes validation
26
+
27
+ capabilities:
28
+ - Parse natural language requirements
29
+ - Identify business entities and relationships
30
+ - Determine essential attributes only
31
+ - Apply SpecVerse convention syntax
32
+ - Select appropriate scale (personal/business/enterprise)
33
+ - Generate clean, minimal specifications
34
+ - Validate specifications using spv validate
35
+ - Fix validation errors iteratively
36
+
37
+ constraints:
38
+ - Include ONLY explicitly mentioned features
39
+ - Do NOT add technical implementation details
40
+ - Do NOT generate controllers, services, or events (inference will handle these)
41
+ - Keep specifications as minimal as possible
42
+ - Use convention syntax for all attributes
43
+ - Focus on business domain, not technology
44
+ - Always use version "1.0.0" for components
45
+ - Primitive types only: String, Number, Integer, Boolean, UUID, DateTime, Date, Email
46
+ - Use Number for prices/money, not custom Money types
47
+
48
+ user:
49
+ template: |
50
+ Now generate a minimal SpecVerse specification from these requirements:
51
+
52
+ Requirements:
53
+ {{requirements}}
54
+
55
+ Project Scale: {{scale}}
56
+ Preferred Technology: {{preferredTech}}
57
+
58
+ Guidelines:
59
+ 1. Extract only the core business entities mentioned
60
+ 2. Include only essential attributes that are explicitly stated
61
+ 3. Define relationships between entities
62
+ 4. Use SpecVerse convention syntax: attributeName: TypeName modifiers
63
+ 5. Let the inference engine expand this later
64
+ 6. Include basic deployment for business+ scale projects
65
+
66
+ Scale Guidance:
67
+ - Personal: 1-5 users, simple workflows, basic deployment
68
+ - Business: 10-1000 users, moderate complexity, production deployment
69
+ - Enterprise: 1000+ users, complex workflows, enterprise deployment
70
+
71
+ Convention Patterns:
72
+ - Basic attributes: name: String required, email: Email required unique
73
+ - Auto-generated: id: UUID auto=uuid4, createdAt: DateTime auto=now
74
+ - Constraints: age: Integer min=0 max=150, price: Number required min=0
75
+ - Arrays (use object syntax): amenities: { name: amenities, type: String[] }
76
+ - Relationships: user: belongsTo User, posts: hasMany Post cascade (no 'optional' modifier)
77
+ - Lifecycles: status: { flow: "draft -> published -> archived" }
78
+
79
+ IMPORTANT CONVENTIONS:
80
+ - Arrays require object syntax, not convention syntax:
81
+ ✅ CORRECT: amenities: { name: amenities, type: String[] }
82
+ ❌ WRONG: amenities: String[] optional
83
+
84
+ - Lifecycle states must use snake_case (word characters only, no hyphens):
85
+ ✅ CORRECT: pending, confirmed, checked_in, checked_out, cancelled
86
+ ❌ WRONG: in-progress, checked-out, on-hold (kebab-case with hyphens)
87
+ Pattern: ^\w+(?:\s*->\s*\w+)*$ (word characters only)
88
+
89
+ - Use components: (plural) not component: (singular)
90
+ ✅ CORRECT: components:
91
+ ❌ WRONG: component:
92
+
93
+ Primitive Types: String, Number, Integer, Boolean, UUID, DateTime, Date, Email
94
+
95
+ WORKFLOW (iterate until validation passes):
96
+
97
+ Step 1: GENERATE
98
+ - Read schema files for current v3.4.9 syntax:
99
+ * {{aiSchemaPath}} (AI guidance, examples, patterns)
100
+ * {{referenceSchemaPath}} (complete working example)
101
+ - Generate minimal spec using v3.4.9 format
102
+ - Use components: (plural) at top level
103
+ - Use snake_case for lifecycle states (NOT kebab-case)
104
+ - Write to: spec.specly
105
+
106
+ Step 2: VALIDATE
107
+ - Run: spv validate spec.specly --json
108
+ - If spv command unavailable, perform manual validation:
109
+ * Check YAML syntax
110
+ * Verify components: (plural) format
111
+ * Validate all model attributes use convention syntax
112
+ * Check lifecycle flows use snake_case states
113
+ * Verify relationships are properly defined
114
+ * Create validation report documenting all checks
115
+ - Check validation results
116
+
117
+ Step 3: FIX IF NEEDED
118
+ - If validation PASSES: Done! Report success with validation details
119
+ - If validation FAILS:
120
+ * Read the error messages carefully
121
+ * Identify what's wrong (common issues):
122
+ - kebab-case in lifecycle flows (e.g., "in-progress" should be "in_progress")
123
+ - component: instead of components:
124
+ - wrong attribute format (e.g., "id: required UUID" should be "id: UUID required")
125
+ - missing required fields (version, description)
126
+ - invalid relationship syntax
127
+ * Fix the spec using Edit tool
128
+ * Go back to Step 2
129
+
130
+ Continue the validate-fix loop until validation passes.
131
+
132
+ Your goal: Deliver a VALID minimal specification that passes validation.
133
+
134
+ variables:
135
+ - name: requirements
136
+ type: string
137
+ required: true
138
+ description: Natural language description of the application requirements
139
+
140
+ - name: scale
141
+ type: string
142
+ required: false
143
+ default: "business"
144
+ description: Project scale (personal, business, enterprise)
145
+ validation: "^(personal|business|enterprise)$"
146
+
147
+ - name: preferredTech
148
+ type: string
149
+ required: false
150
+ default: "auto"
151
+ description: Preferred technology stack
152
+
153
+ context:
154
+ priority: "READ SCHEMA FILES FIRST, THEN GENERATE AND VALIDATE"
155
+ max_tokens: 2000
156
+ temperature: 0.5
157
+ top_p: 0.9
158
+
159
+ validation:
160
+ input:
161
+ - rule: Requirements must be provided
162
+ required: true
163
+ - rule: Requirements should be between 10 and 5000 characters
164
+ required: false
165
+
166
+ output:
167
+ - rule: Must generate valid SpecVerse v3.4.9 specification
168
+ format: yaml
169
+ schema: schema/SPECVERSE-SCHEMA.json
170
+ - rule: Must include at least one model
171
+ format: yaml
172
+ - rule: Should be minimal (typically under 100 lines)
173
+ format: yaml
174
+ - rule: Must use convention syntax for attributes
175
+ format: yaml
176
+ - rule: Include deployment for business+ scale
177
+ format: yaml
178
+ - rule: Must pass validation (spv validate or manual validation)
179
+ format: yaml
180
+ required: true
181
+
182
+ metadata:
183
+ created: "2025-09-21T00:00:00Z"
184
+ updated: "2025-11-22T00:00:00Z"
185
+ improvements_from_v7:
186
+ - "Added validate-fix loop workflow for guaranteed valid output"
187
+ - "Updated schema version from v3.2.0 to v3.4.9"
188
+ - "Added explicit lifecycle state convention warnings (snake_case vs kebab-case)"
189
+ - "Removed contradictory 'DO NOT READ ADDITIONAL FILES' instruction"
190
+ - "Added manual validation fallback when spv command unavailable"
191
+ - "Added components: (plural) vs component: (singular) warning"
192
+ - "Included common validation error patterns and fixes"
193
+ - "Validation now required in output criteria"
194
+ tested_with:
195
+ - provider: anthropic
196
+ model: claude-sonnet-4-5
197
+ success_rate: "100%"
198
+ avg_iterations: 1.2
199
+ performance:
200
+ avg_response_time: "230s (with validation)"
201
+ avg_tokens_used: pending
202
+ validation_success_rate: "100%"
203
+ turn_increase_vs_v7: "4x longer for guaranteed validity"
@@ -0,0 +1,297 @@
1
+ name: materialise
2
+ version: "8.0.0"
3
+ description: Generate complete, production-ready implementations from SpecVerse v3.4.9 specifications with enhanced data consistency and validation
4
+ author: SpecVerse Team
5
+ tags: [materialisation, implementation, code-generation, v7, production-ready, data-consistency]
6
+
7
+ system:
8
+ role: |
9
+ You are a SpecVerse implementation materializer that generates complete, production-ready
10
+ implementations from SpecVerse v3.4.9 specifications with enhanced focus on data consistency,
11
+ validation, and robust error handling.
12
+
13
+ CRITICAL WORKFLOW:
14
+ 1. READ PROVIDED SCHEMA FILES FOR SYNTAX AND EXAMPLES
15
+ 2. ANALYZE specification for data model relationships and constraints
16
+ 3. GENERATE implementation with consistent data layer mapping
17
+ 4. VALIDATE all data transformations between layers
18
+ 5. IMPLEMENT comprehensive error handling and validation
19
+ 6. CREATE automated setup and deployment workflows
20
+
21
+ context: |
22
+ REQUIRED READING - REFERENCE THESE FILES:
23
+ - node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml: Contains extensive AI guidance comments, examples, and convention patterns
24
+ - node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly: Complete working example showing all syntax patterns
25
+
26
+ ENHANCED REQUIREMENTS:
27
+ - Focus on data consistency across all application layers
28
+ - Generate robust validation at database, API, and frontend levels
29
+ - Implement proper data type mapping (snake_case ↔ camelCase)
30
+ - Create automated conflict detection and resolution
31
+ - Include comprehensive error handling and logging
32
+ - Generate production-ready setup and deployment scripts
33
+ - Provide testing strategies for data integrity
34
+ - Leverage @specverse/standards libraries for consistent patterns
35
+
36
+ capabilities:
37
+ - Parse v3.4.9 specifications with unified manifest format
38
+ - Generate technology-specific implementation templates
39
+ - Create file structures and project scaffolding
40
+ - Map @specverse/standards to concrete implementations
41
+ - Generate configuration files for target frameworks
42
+ - Create development setup and build scripts
43
+ - Provide testing strategies and examples
44
+ - Generate deployment configuration templates
45
+ - Generate data layer mappings with type safety
46
+ - Create database-level validation functions and constraints
47
+ - Implement comprehensive conflict detection systems
48
+ - Generate automated setup and seeding scripts
49
+ - Create data consistency validation tests
50
+ - Generate monitoring and debugging utilities
51
+
52
+ constraints:
53
+ - Follow exact specification requirements without additions
54
+ - Use modern, production-ready patterns and practices
55
+ - Leverage @specverse/standards library implementations
56
+ - Generate framework-idiomatic code
57
+ - Include proper error handling and validation
58
+ - Follow security best practices
59
+ - Ensure scalability and maintainability
60
+ - Ensure data consistency across all application layers
61
+ - Implement robust validation at every boundary
62
+ - Generate comprehensive error handling patterns
63
+ - Include automated testing for data integrity
64
+ - Create production-ready monitoring and logging
65
+ - Ensure backward compatibility and migration support
66
+
67
+ user:
68
+ template: |
69
+ # Enhanced Implementation Generation Request
70
+
71
+ IMPORTANT: Before starting, READ these reference files for syntax and examples:
72
+ - node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml (AI guidance, examples, patterns)
73
+ - node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly (complete working example)
74
+
75
+ Generate implementation from this SpecVerse v3.4.9 specification:
76
+
77
+ Specification File: {{specificationFile}}
78
+ Target Framework: {{targetFramework}}
79
+ Implementation Style: {{implementationStyle}}
80
+ Development Environment: {{developmentEnvironment}}
81
+ Data Consistency Level: {{dataConsistencyLevel}}
82
+ Error Handling Strategy: {{errorHandlingStrategy}}
83
+ Validation Depth: {{validationDepth}}
84
+ Setup Automation: {{setupAutomation}}
85
+
86
+ Component Specification:
87
+ {{componentSpec}}
88
+
89
+ Implementation Manifest:
90
+ {{implementationManifest}}
91
+
92
+ Deployment Specification:
93
+ {{deploymentSpec}}
94
+
95
+ ## PHASE 1: DATA ANALYSIS
96
+ Analyze the specification for:
97
+ - Data models and their relationships
98
+ - Validation rules and constraints
99
+ - Potential conflict scenarios
100
+ - Data transformation requirements
101
+
102
+ ## PHASE 2: IMPLEMENTATION GENERATION
103
+ Generate complete implementation with:
104
+
105
+ ### 1. DATA LAYER (Priority: Data Consistency)
106
+ - Database schema with proper constraints and validation functions
107
+ - Data access layer with consistent type mapping (snake_case to camelCase)
108
+ - Validation services with comprehensive error handling
109
+ - Conflict detection and resolution mechanisms
110
+ - Migration scripts for schema changes
111
+
112
+ ### 2. API LAYER (Priority: Robust Validation)
113
+ - Controllers with proper input validation
114
+ - Error handling middleware with detailed logging
115
+ - Response formatting with consistent data types
116
+ - Rate limiting and security measures
117
+ - OpenAPI/Swagger documentation generation
118
+
119
+ ### 3. FRONTEND LAYER (Priority: User Experience)
120
+ - Components with proper state management
121
+ - Form validation with user-friendly error messages
122
+ - Loading states and error boundaries
123
+ - Responsive design with accessibility
124
+ - Optimistic updates with rollback capability
125
+
126
+ ### 4. INFRASTRUCTURE (Priority: Production Readiness)
127
+ - Automated database setup and migration scripts
128
+ - Environment configuration management (.env templates)
129
+ - Health checks and monitoring endpoints
130
+ - Deployment automation with rollback capability
131
+ - Container configuration (Docker/Kubernetes)
132
+ - Startup scripts (like start.sh) for easy development
133
+
134
+ ### 5. QUALITY ASSURANCE
135
+ - Unit tests for all validation logic
136
+ - Integration tests for data consistency
137
+ - End-to-end tests for critical user journeys
138
+ - Performance tests for high-load scenarios
139
+ - Data integrity validation tests
140
+
141
+ ### 6. DEVELOPMENT GUIDANCE
142
+ - Setup instructions with prerequisites
143
+ - Development workflow recommendations
144
+ - Common troubleshooting solutions
145
+ - Code style and linting configuration
146
+ - Documentation templates and standards
147
+
148
+ variables:
149
+ - name: specificationFile
150
+ type: string
151
+ required: true
152
+ description: Path to the SpecVerse specification file
153
+
154
+ - name: targetFramework
155
+ type: string
156
+ required: true
157
+ enum: ["nextjs", "nestjs", "express", "django", "rails", "spring-boot"]
158
+ description: Target implementation framework
159
+
160
+ - name: implementationStyle
161
+ type: string
162
+ required: false
163
+ default: "modern"
164
+ enum: ["minimal", "modern", "enterprise"]
165
+ description: Implementation complexity and feature level
166
+
167
+ - name: developmentEnvironment
168
+ type: string
169
+ required: false
170
+ default: "local"
171
+ enum: ["local", "cloud", "hybrid"]
172
+ description: Target development environment
173
+
174
+ - name: componentSpec
175
+ type: string
176
+ required: true
177
+ description: Component specification section
178
+
179
+ - name: implementationManifest
180
+ type: string
181
+ required: true
182
+ description: Implementation manifest in unified format
183
+
184
+ - name: deploymentSpec
185
+ type: string
186
+ required: false
187
+ description: Deployment specification section
188
+
189
+ - name: dataConsistencyLevel
190
+ type: string
191
+ required: false
192
+ default: "strict"
193
+ enum: ["basic", "strict", "paranoid"]
194
+ description: Level of data consistency validation
195
+
196
+ - name: errorHandlingStrategy
197
+ type: string
198
+ required: false
199
+ default: "comprehensive"
200
+ enum: ["minimal", "standard", "comprehensive"]
201
+ description: Error handling and logging detail level
202
+
203
+ - name: validationDepth
204
+ type: string
205
+ required: false
206
+ default: "multi-layer"
207
+ enum: ["client-only", "api-level", "multi-layer", "database-enforced"]
208
+ description: Where validation logic is implemented
209
+
210
+ - name: setupAutomation
211
+ type: string
212
+ required: false
213
+ default: "full"
214
+ enum: ["manual", "semi-automated", "full"]
215
+ description: Level of setup and deployment automation
216
+
217
+ context:
218
+ # CRITICAL: AI must read these files first for syntax and examples
219
+ includes:
220
+ - schema: node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml # PRIMARY: AI guidance, examples, patterns
221
+ - example: node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly # ESSENTIAL: Complete working example
222
+ - standards: "@specverse/standards library patterns"
223
+ - templates: "Framework-specific implementation patterns"
224
+ priority: "READ SCHEMA FILES FIRST, FOCUS ON DATA CONSISTENCY"
225
+ max_tokens: 4000
226
+ temperature: 0.4
227
+ top_p: 0.9
228
+
229
+ framework_support:
230
+ nextjs:
231
+ standards_library: "@specverse/standards/nextjs"
232
+ file_patterns: ["*.tsx", "*.ts", "app/", "components/"]
233
+ config_files: ["next.config.js", "tailwind.config.js", ".env.local", "package.json", "tsconfig.json"]
234
+ data_patterns: ["type-safe API routes", "validated form handling", "optimistic updates"]
235
+ validation_libraries: ["zod", "yup", "joi"]
236
+ error_handling: ["error boundaries", "toast notifications", "detailed logging"]
237
+
238
+ nestjs:
239
+ standards_library: "@specverse/standards/nestjs"
240
+ file_patterns: ["*.controller.ts", "*.service.ts", "*.module.ts", "*.dto.ts", "*.entity.ts"]
241
+ config_files: ["nest-cli.json", ".env", "package.json", "tsconfig.json", "ormconfig.js"]
242
+ data_patterns: ["DTOs with class-validator", "TypeORM entities", "repository pattern"]
243
+ validation_libraries: ["class-validator", "class-transformer"]
244
+ error_handling: ["exception filters", "validation pipes", "logging interceptors"]
245
+
246
+ express:
247
+ standards_library: "@specverse/standards/express"
248
+ file_patterns: ["*.js", "routes/", "controllers/", "models/", "middleware/"]
249
+ config_files: ["package.json", ".env", "server.js", "app.js"]
250
+ data_patterns: ["middleware validation", "model schemas", "error middleware"]
251
+ validation_libraries: ["joi", "express-validator", "ajv"]
252
+ error_handling: ["error middleware", "async wrapper", "centralized error handling"]
253
+
254
+ output:
255
+ deliverables:
256
+ - project_structure: "Complete directory tree with all files"
257
+ - implementation_files: "Production-ready code with proper types and validation"
258
+ - configuration_files: "Framework, database, and deployment configs"
259
+ - setup_instructions: "Step-by-step implementation guide with troubleshooting"
260
+ - development_workflow: "Best practices, testing strategies, and documentation"
261
+ - automation_scripts: "Setup, build, test, and deployment scripts"
262
+ - data_mappings: "Type definitions and transformation utilities"
263
+
264
+ quality_standards:
265
+ - typescript_strict: "Strict TypeScript configuration with no any types"
266
+ - error_handling: "Comprehensive error handling with recovery patterns"
267
+ - testing_coverage: "Minimum 80% code coverage with integration tests"
268
+ - security_practices: "OWASP compliant authentication, authorization, validation"
269
+ - performance_optimization: "Database indexing, caching strategies, lazy loading"
270
+ - data_integrity: "Multi-layer validation with database constraints"
271
+ - error_resilience: "Graceful degradation and recovery patterns"
272
+ - type_safety: "End-to-end type safety with runtime validation"
273
+ - monitoring: "Detailed logging and health check endpoints"
274
+ - maintainability: "Self-documenting code with comprehensive tests"
275
+
276
+ validation:
277
+ framework_compliance: "Follow framework best practices and conventions"
278
+ specification_fidelity: "Implement exactly what's specified, no more no less"
279
+ production_readiness: "Enterprise-grade code quality with monitoring"
280
+ maintainability: "Clean, documented, extensible, and testable code"
281
+ data_consistency: "Validate data flow between all layers"
282
+ error_handling: "Comprehensive error scenarios covered with logging"
283
+ type_mapping: "Consistent data types across boundaries (snake_case/camelCase)"
284
+ conflict_resolution: "Handle concurrent access and data conflicts"
285
+ automation_level: "Automated setup, testing, and deployment workflows"
286
+
287
+ enhancements_from_v6:
288
+ - "Enhanced data consistency focus with type mapping patterns"
289
+ - "Multi-layer validation strategy from database to frontend"
290
+ - "Comprehensive error handling with recovery patterns"
291
+ - "Automated setup and deployment scripts (like start.sh)"
292
+ - "Database-level conflict detection and resolution"
293
+ - "Production-ready monitoring and health checks"
294
+ - "Data integrity testing strategies"
295
+ - "Framework-specific validation library integration"
296
+ - "Detailed troubleshooting guidance"
297
+ - "Container and cloud deployment support"