@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.
- package/assets/examples/09-api/ai-spec.yaml +194 -0
- package/assets/examples/09-api/converted.yaml +95 -0
- package/assets/examples/09-api/diagram-architecture.mmd +10 -0
- package/assets/examples/09-api/diagram-er.mmd +10 -0
- package/assets/examples/09-api/documentation.html +104 -0
- package/assets/examples/09-api/documentation.md +95 -0
- package/assets/examples/09-api/inferred-spec.yaml +420 -0
- package/assets/examples/09-api/openapi.json +61 -0
- package/assets/examples/10-api/README.md +216 -0
- package/assets/examples/10-api/ai-spec.yaml +194 -0
- package/assets/examples/10-api/converted.yaml +96 -0
- package/assets/examples/10-api/diagram-architecture.mmd +10 -0
- package/assets/examples/10-api/diagram-er.mmd +10 -0
- package/assets/examples/10-api/documentation.html +104 -0
- package/assets/examples/10-api/documentation.md +95 -0
- package/assets/examples/10-api/inferred-spec.yaml +7 -0
- package/assets/examples/10-api/metadata.yaml +89 -0
- package/assets/examples/10-api/openapi.json +61 -0
- package/assets/examples/10-api/package-integration-test.js +177 -0
- package/assets/examples/10-api/usage-example.js +323 -0
- package/assets/examples/10-api/usage-example.ts +363 -0
- package/assets/examples/10-api/workflow-test.js +113 -0
- package/assets/examples/manifests/01-simple-default-mappings.yaml +36 -0
- package/assets/examples/manifests/02-capability-mappings.yaml +55 -0
- package/assets/examples/manifests/03-hybrid-mappings.yaml +109 -0
- package/assets/examples/manifests/README.md +245 -0
- package/assets/examples/manifests/backend-only.yaml +43 -0
- package/assets/examples/manifests/blog-api.md +78 -0
- package/assets/examples/manifests/blog-api.specly +79 -0
- package/assets/examples/manifests/frontend-only.yaml +27 -0
- package/assets/examples/manifests/fullstack-app.yaml +44 -0
- package/assets/examples/manifests/fullstack-monorepo.yaml +62 -0
- package/assets/examples/validate-examples-with-expected-failures.cjs +328 -0
- package/assets/examples/validate-examples.cjs +225 -0
- package/assets/examples-decomposed/cloud-native-manifest.example.yaml +8 -0
- package/assets/examples-decomposed/cloud-native-manifest.md +379 -0
- package/assets/examples-decomposed/cloud-native-manifest.specly +60 -0
- package/assets/examples-decomposed/docker-compose-manifest.example.yaml +8 -0
- package/assets/examples-decomposed/docker-compose-manifest.md +326 -0
- package/assets/examples-decomposed/docker-compose-manifest.specly +40 -0
- package/assets/examples-decomposed/kubernetes-deployment-manifest.example.yaml +8 -0
- package/assets/examples-decomposed/kubernetes-deployment-manifest.md +237 -0
- package/assets/examples-decomposed/kubernetes-deployment-manifest.specly +41 -0
- package/assets/examples-inference/inference-engine-demo.example.yaml +8 -0
- package/assets/examples-inference/inference-engine-demo.md +574 -0
- package/assets/examples-inference/inference-engine-demo.specly +216 -0
- package/assets/prompts/MOVED.md +35 -0
- package/assets/prompts/SUMMARY-v8-PROMOTION.md +445 -0
- package/assets/prompts/core/CHANGELOG.md +158 -0
- package/assets/prompts/core/MIGRATION-v6-to-v7.md +379 -0
- package/assets/prompts/core/README.md +319 -0
- package/assets/prompts/core/base-terminal-prompt.md +201 -0
- package/assets/prompts/core/examples/example-usage.ts +140 -0
- package/assets/prompts/core/schemas/prompt.schema.json +309 -0
- package/assets/prompts/core/schemas/prompt.schema.yaml +229 -0
- package/assets/prompts/core/standard/archive/v1/analyse.prompt.yaml +259 -0
- package/assets/prompts/core/standard/archive/v1/create.prompt.yaml +302 -0
- package/assets/prompts/core/standard/archive/v1/materialise.prompt.yaml +328 -0
- package/assets/prompts/core/standard/archive/v1/realize.prompt.yaml +606 -0
- package/assets/prompts/core/standard/archive/v2/README.md +110 -0
- package/assets/prompts/core/standard/archive/v2/analyse.prompt.yaml +151 -0
- package/assets/prompts/core/standard/archive/v2/create.prompt.yaml +151 -0
- package/assets/prompts/core/standard/archive/v2/materialise.prompt.yaml +132 -0
- package/assets/prompts/core/standard/archive/v2/realize.prompt.yaml +147 -0
- package/assets/prompts/core/standard/archive/v3/README.md +279 -0
- package/assets/prompts/core/standard/archive/v3/analyse.prompt.yaml +309 -0
- package/assets/prompts/core/standard/archive/v3/create.prompt.yaml +351 -0
- package/assets/prompts/core/standard/archive/v3/materialise.prompt.yaml +247 -0
- package/assets/prompts/core/standard/archive/v3/realize.prompt.yaml +344 -0
- package/assets/prompts/core/standard/archive/v4/README.md +79 -0
- package/assets/prompts/core/standard/archive/v4/analyse.prompt.yaml +204 -0
- package/assets/prompts/core/standard/archive/v4/create.prompt.yaml +185 -0
- package/assets/prompts/core/standard/archive/v5/README.md +224 -0
- package/assets/prompts/core/standard/archive/v5/analyse.prompt.yaml +209 -0
- package/assets/prompts/core/standard/archive/v5/create.prompt.yaml +225 -0
- package/assets/prompts/core/standard/archive/v5/materialise.prompt.yaml +242 -0
- package/assets/prompts/core/standard/archive/v5/realize.prompt.yaml +336 -0
- package/assets/prompts/core/standard/archive/v6/README.md +187 -0
- package/assets/prompts/core/standard/archive/v6/analyse.prompt.yaml +219 -0
- package/assets/prompts/core/standard/archive/v6/create.prompt.yaml +180 -0
- package/assets/prompts/core/standard/archive/v6/materialise.prompt.yaml +203 -0
- package/assets/prompts/core/standard/archive/v6/realize.prompt.yaml +215 -0
- package/assets/prompts/core/standard/archive/v7/analyse.prompt.nick.yaml +144 -0
- package/assets/prompts/core/standard/archive/v7/analyse.prompt.old.yaml +146 -0
- package/assets/prompts/core/standard/archive/v7/analyse.prompt.yaml +129 -0
- package/assets/prompts/core/standard/archive/v7/create.prompt.yaml +146 -0
- package/assets/prompts/core/standard/archive/v7/materialise.prompt.yaml +297 -0
- package/assets/prompts/core/standard/archive/v7/realize.prompt.yaml +294 -0
- package/assets/prompts/core/standard/archive/v8/README.md +400 -0
- package/assets/prompts/core/standard/archive/v8/analyse.prompt.yaml +185 -0
- package/assets/prompts/core/standard/archive/v8/create.prompt.yaml +203 -0
- package/assets/prompts/core/standard/archive/v8/materialise.prompt.yaml +297 -0
- package/assets/prompts/core/standard/archive/v8/realize.prompt.yaml +294 -0
- package/assets/prompts/core/standard/default/analyse.prompt.yaml +496 -0
- package/assets/prompts/core/standard/default/app-demo.prompt.yaml +213 -0
- package/assets/prompts/core/standard/default/create.prompt.yaml +418 -0
- package/assets/prompts/core/standard/default/materialise.prompt.yaml +814 -0
- package/assets/prompts/core/standard/default/realize.prompt.yaml +574 -0
- package/assets/prompts/core/standard/v9/analyse.prompt.yaml +496 -0
- package/assets/prompts/core/standard/v9/create.prompt.yaml +418 -0
- package/assets/prompts/core/standard/v9/materialise.prompt.yaml +814 -0
- package/assets/prompts/core/standard/v9/realize.prompt.yaml +574 -0
- package/assets/prompts/templates/api-orchestrator-template.yaml +188 -0
- package/assets/prompts/templates/claude-integration-template.md +121 -0
- package/assets/prompts/templates/terminal-prompt-template.md +97 -0
- package/dist/ai/commands/enhance.d.ts +8 -0
- package/dist/ai/commands/enhance.d.ts.map +1 -0
- package/dist/ai/commands/enhance.js +155 -0
- package/dist/ai/commands/enhance.js.map +1 -0
- package/dist/ai/commands/fill.d.ts +8 -0
- package/dist/ai/commands/fill.d.ts.map +1 -0
- package/dist/ai/commands/fill.js +179 -0
- package/dist/ai/commands/fill.js.map +1 -0
- package/dist/ai/commands/index.d.ts +11 -0
- package/dist/ai/commands/index.d.ts.map +1 -0
- package/dist/ai/commands/index.js +11 -0
- package/dist/ai/commands/index.js.map +1 -0
- package/dist/ai/commands/spec-analyser.d.ts +18 -0
- package/dist/ai/commands/spec-analyser.d.ts.map +1 -0
- package/dist/ai/commands/spec-analyser.js +175 -0
- package/dist/ai/commands/spec-analyser.js.map +1 -0
- package/dist/ai/commands/suggest.d.ts +8 -0
- package/dist/ai/commands/suggest.d.ts.map +1 -0
- package/dist/ai/commands/suggest.js +101 -0
- package/dist/ai/commands/suggest.js.map +1 -0
- package/dist/ai/commands/template.d.ts +8 -0
- package/dist/ai/commands/template.d.ts.map +1 -0
- package/dist/ai/commands/template.js +136 -0
- package/dist/ai/commands/template.js.map +1 -0
- package/dist/ai/config/index.d.ts +71 -0
- package/dist/ai/config/index.d.ts.map +1 -0
- package/dist/ai/config/index.js +193 -0
- package/dist/ai/config/index.js.map +1 -0
- package/dist/ai/config-loader.d.ts +31 -0
- package/dist/ai/config-loader.d.ts.map +1 -0
- package/dist/ai/config-loader.js +66 -0
- package/dist/ai/config-loader.js.map +1 -0
- package/dist/ai/core/ecosystem-prompt-manager.d.ts +107 -0
- package/dist/ai/core/ecosystem-prompt-manager.d.ts.map +1 -0
- package/dist/ai/core/ecosystem-prompt-manager.js +462 -0
- package/dist/ai/core/ecosystem-prompt-manager.js.map +1 -0
- package/dist/ai/examples/basic-usage.d.ts +9 -0
- package/dist/ai/examples/basic-usage.d.ts.map +1 -0
- package/dist/ai/examples/basic-usage.js +94 -0
- package/dist/ai/examples/basic-usage.js.map +1 -0
- package/dist/ai/index.d.ts +44 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +164 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/orchestrator/index.d.ts +3 -0
- package/dist/ai/orchestrator/index.d.ts.map +1 -0
- package/dist/ai/orchestrator/index.js +3 -0
- package/dist/ai/orchestrator/index.js.map +1 -0
- package/dist/ai/orchestrator/interactive-workflow.d.ts +66 -0
- package/dist/ai/orchestrator/interactive-workflow.d.ts.map +1 -0
- package/dist/ai/orchestrator/interactive-workflow.js +214 -0
- package/dist/ai/orchestrator/interactive-workflow.js.map +1 -0
- package/dist/ai/orchestrator/specverse-orchestrator.d.ts +217 -0
- package/dist/ai/orchestrator/specverse-orchestrator.d.ts.map +1 -0
- package/dist/ai/orchestrator/specverse-orchestrator.js +745 -0
- package/dist/ai/orchestrator/specverse-orchestrator.js.map +1 -0
- package/dist/ai/prompt-loader.d.ts +24 -0
- package/dist/ai/prompt-loader.d.ts.map +1 -0
- package/dist/ai/prompt-loader.js +159 -0
- package/dist/ai/prompt-loader.js.map +1 -0
- package/dist/ai/providers/anthropic-provider.d.ts +38 -0
- package/dist/ai/providers/anthropic-provider.d.ts.map +1 -0
- package/dist/ai/providers/anthropic-provider.js +235 -0
- package/dist/ai/providers/anthropic-provider.js.map +1 -0
- package/dist/ai/providers/index.d.ts +6 -0
- package/dist/ai/providers/index.d.ts.map +1 -0
- package/dist/ai/providers/index.js +6 -0
- package/dist/ai/providers/index.js.map +1 -0
- package/dist/ai/providers/interactive-provider.d.ts +67 -0
- package/dist/ai/providers/interactive-provider.d.ts.map +1 -0
- package/dist/ai/providers/interactive-provider.js +337 -0
- package/dist/ai/providers/interactive-provider.js.map +1 -0
- package/dist/ai/providers/llm-provider.d.ts +127 -0
- package/dist/ai/providers/llm-provider.d.ts.map +1 -0
- package/dist/ai/providers/llm-provider.js +141 -0
- package/dist/ai/providers/llm-provider.js.map +1 -0
- package/dist/ai/providers/openai-provider.d.ts +39 -0
- package/dist/ai/providers/openai-provider.d.ts.map +1 -0
- package/dist/ai/providers/openai-provider.js +193 -0
- package/dist/ai/providers/openai-provider.js.map +1 -0
- package/dist/ai/providers/provider-factory.d.ts +47 -0
- package/dist/ai/providers/provider-factory.d.ts.map +1 -0
- package/dist/ai/providers/provider-factory.js +159 -0
- package/dist/ai/providers/provider-factory.js.map +1 -0
- package/dist/ai/session/claude-executor.d.ts +39 -0
- package/dist/ai/session/claude-executor.d.ts.map +1 -0
- package/dist/ai/session/claude-executor.js +136 -0
- package/dist/ai/session/claude-executor.js.map +1 -0
- package/dist/ai/session/session-manager.d.ts +72 -0
- package/dist/ai/session/session-manager.d.ts.map +1 -0
- package/dist/ai/session/session-manager.js +294 -0
- package/dist/ai/session/session-manager.js.map +1 -0
- package/dist/ai/session/types.d.ts +152 -0
- package/dist/ai/session/types.d.ts.map +1 -0
- package/dist/ai/session/types.js +6 -0
- package/dist/ai/session/types.js.map +1 -0
- package/dist/ai/types/index.d.ts +83 -0
- package/dist/ai/types/index.d.ts.map +1 -0
- package/dist/ai/types/index.js +5 -0
- package/dist/ai/types/index.js.map +1 -0
- package/dist/generators/UML-generator.d.ts +64 -0
- package/dist/generators/UML-generator.d.ts.map +1 -0
- package/dist/generators/UML-generator.js +541 -0
- package/dist/generators/UML-generator.js.map +1 -0
- package/dist/generators/ai-view-generator.d.ts +391 -0
- package/dist/generators/ai-view-generator.d.ts.map +1 -0
- package/dist/generators/ai-view-generator.js +907 -0
- package/dist/generators/ai-view-generator.js.map +1 -0
- package/dist/generators/diagram-engine/core/BaseDiagramPlugin.d.ts +41 -0
- package/dist/generators/diagram-engine/core/BaseDiagramPlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/core/BaseDiagramPlugin.js +64 -0
- package/dist/generators/diagram-engine/core/BaseDiagramPlugin.js.map +1 -0
- package/dist/generators/diagram-engine/core/DiagramContext.d.ts +155 -0
- package/dist/generators/diagram-engine/core/DiagramContext.d.ts.map +1 -0
- package/dist/generators/diagram-engine/core/DiagramContext.js +481 -0
- package/dist/generators/diagram-engine/core/DiagramContext.js.map +1 -0
- package/dist/generators/diagram-engine/core/StyleManager.d.ts +51 -0
- package/dist/generators/diagram-engine/core/StyleManager.d.ts.map +1 -0
- package/dist/generators/diagram-engine/core/StyleManager.js +227 -0
- package/dist/generators/diagram-engine/core/StyleManager.js.map +1 -0
- package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.d.ts +83 -0
- package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.d.ts.map +1 -0
- package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.js +200 -0
- package/dist/generators/diagram-engine/core/UnifiedDiagramGenerator.js.map +1 -0
- package/dist/generators/diagram-engine/index.d.ts +41 -0
- package/dist/generators/diagram-engine/index.d.ts.map +1 -0
- package/dist/generators/diagram-engine/index.js +74 -0
- package/dist/generators/diagram-engine/index.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.d.ts +65 -0
- package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.js +490 -0
- package/dist/generators/diagram-engine/plugins/architecture/ArchitecturePlugin.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.d.ts +40 -0
- package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.js +323 -0
- package/dist/generators/diagram-engine/plugins/class-diagram/ClassDiagramPlugin.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.d.ts +46 -0
- package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.js +391 -0
- package/dist/generators/diagram-engine/plugins/deployment/DeploymentPlugin.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.d.ts +57 -0
- package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.js +300 -0
- package/dist/generators/diagram-engine/plugins/er-diagram/ERDiagramPlugin.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.d.ts +70 -0
- package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.js +955 -0
- package/dist/generators/diagram-engine/plugins/event-flow/EventFlowPlugin.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.d.ts +40 -0
- package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.js +183 -0
- package/dist/generators/diagram-engine/plugins/lifecycle/LifecyclePlugin.js.map +1 -0
- package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.d.ts +71 -0
- package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.d.ts.map +1 -0
- package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.js +396 -0
- package/dist/generators/diagram-engine/plugins/manifest/ManifestPlugin.js.map +1 -0
- package/dist/generators/diagram-engine/renderers/MermaidRenderer.d.ts +72 -0
- package/dist/generators/diagram-engine/renderers/MermaidRenderer.d.ts.map +1 -0
- package/dist/generators/diagram-engine/renderers/MermaidRenderer.js +441 -0
- package/dist/generators/diagram-engine/renderers/MermaidRenderer.js.map +1 -0
- package/dist/generators/diagram-engine/types/index.d.ts +261 -0
- package/dist/generators/diagram-engine/types/index.d.ts.map +1 -0
- package/dist/generators/diagram-engine/types/index.js +7 -0
- package/dist/generators/diagram-engine/types/index.js.map +1 -0
- package/dist/generators/documentation-generator.d.ts +54 -0
- package/dist/generators/documentation-generator.d.ts.map +1 -0
- package/dist/generators/documentation-generator.js +756 -0
- package/dist/generators/documentation-generator.js.map +1 -0
- package/dist/generators/index.d.ts +47 -0
- package/dist/generators/index.d.ts.map +1 -0
- package/dist/generators/index.js +51 -0
- package/dist/generators/index.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/inference/comprehensive-engine.d.ts +71 -0
- package/dist/inference/comprehensive-engine.d.ts.map +1 -0
- package/dist/inference/comprehensive-engine.js +271 -0
- package/dist/inference/comprehensive-engine.js.map +1 -0
- package/dist/inference/core/context.d.ts +60 -0
- package/dist/inference/core/context.d.ts.map +1 -0
- package/dist/inference/core/context.js +292 -0
- package/dist/inference/core/context.js.map +1 -0
- package/dist/inference/core/index.d.ts +14 -0
- package/dist/inference/core/index.d.ts.map +1 -0
- package/dist/inference/core/index.js +18 -0
- package/dist/inference/core/index.js.map +1 -0
- package/dist/inference/core/rule-engine.d.ts +52 -0
- package/dist/inference/core/rule-engine.d.ts.map +1 -0
- package/dist/inference/core/rule-engine.js +1329 -0
- package/dist/inference/core/rule-engine.js.map +1 -0
- package/dist/inference/core/rule-file-types.d.ts +225 -0
- package/dist/inference/core/rule-file-types.d.ts.map +1 -0
- package/dist/inference/core/rule-file-types.js +79 -0
- package/dist/inference/core/rule-file-types.js.map +1 -0
- package/dist/inference/core/rule-loader.d.ts +93 -0
- package/dist/inference/core/rule-loader.d.ts.map +1 -0
- package/dist/inference/core/rule-loader.js +645 -0
- package/dist/inference/core/rule-loader.js.map +1 -0
- package/dist/inference/core/specly-converter.d.ts +50 -0
- package/dist/inference/core/specly-converter.d.ts.map +1 -0
- package/dist/inference/core/specly-converter.js +885 -0
- package/dist/inference/core/specly-converter.js.map +1 -0
- package/dist/inference/core/types.d.ts +395 -0
- package/dist/inference/core/types.d.ts.map +1 -0
- package/dist/inference/core/types.js +31 -0
- package/dist/inference/core/types.js.map +1 -0
- package/dist/inference/deployment/deployment-generator.d.ts +48 -0
- package/dist/inference/deployment/deployment-generator.d.ts.map +1 -0
- package/dist/inference/deployment/deployment-generator.js +343 -0
- package/dist/inference/deployment/deployment-generator.js.map +1 -0
- package/dist/inference/deployment/index.d.ts +6 -0
- package/dist/inference/deployment/index.d.ts.map +1 -0
- package/dist/inference/deployment/index.js +5 -0
- package/dist/inference/deployment/index.js.map +1 -0
- package/dist/inference/dev-specly-generator.d.ts +19 -0
- package/dist/inference/dev-specly-generator.d.ts.map +1 -0
- package/dist/inference/dev-specly-generator.js +127 -0
- package/dist/inference/dev-specly-generator.js.map +1 -0
- package/dist/inference/index.d.ts +29 -0
- package/dist/inference/index.d.ts.map +1 -0
- package/dist/inference/index.js +170 -0
- package/dist/inference/index.js.map +1 -0
- package/dist/inference/logical/generators/component-type-resolver.d.ts +82 -0
- package/dist/inference/logical/generators/component-type-resolver.d.ts.map +1 -0
- package/dist/inference/logical/generators/component-type-resolver.js +151 -0
- package/dist/inference/logical/generators/component-type-resolver.js.map +1 -0
- package/dist/inference/logical/generators/controller-generator.d.ts +43 -0
- package/dist/inference/logical/generators/controller-generator.d.ts.map +1 -0
- package/dist/inference/logical/generators/controller-generator.js +303 -0
- package/dist/inference/logical/generators/controller-generator.js.map +1 -0
- package/dist/inference/logical/generators/event-generator.d.ts +67 -0
- package/dist/inference/logical/generators/event-generator.d.ts.map +1 -0
- package/dist/inference/logical/generators/event-generator.js +466 -0
- package/dist/inference/logical/generators/event-generator.js.map +1 -0
- package/dist/inference/logical/generators/promotion-generator.d.ts +32 -0
- package/dist/inference/logical/generators/promotion-generator.d.ts.map +1 -0
- package/dist/inference/logical/generators/promotion-generator.js +133 -0
- package/dist/inference/logical/generators/promotion-generator.js.map +1 -0
- package/dist/inference/logical/generators/service-generator.d.ts +51 -0
- package/dist/inference/logical/generators/service-generator.d.ts.map +1 -0
- package/dist/inference/logical/generators/service-generator.js +268 -0
- package/dist/inference/logical/generators/service-generator.js.map +1 -0
- package/dist/inference/logical/generators/specialist-view-expander.d.ts +75 -0
- package/dist/inference/logical/generators/specialist-view-expander.d.ts.map +1 -0
- package/dist/inference/logical/generators/specialist-view-expander.js +182 -0
- package/dist/inference/logical/generators/specialist-view-expander.js.map +1 -0
- package/dist/inference/logical/generators/view-generator.d.ts +131 -0
- package/dist/inference/logical/generators/view-generator.d.ts.map +1 -0
- package/dist/inference/logical/generators/view-generator.js +1115 -0
- package/dist/inference/logical/generators/view-generator.js.map +1 -0
- package/dist/inference/logical/index.d.ts +19 -0
- package/dist/inference/logical/index.d.ts.map +1 -0
- package/dist/inference/logical/index.js +15 -0
- package/dist/inference/logical/index.js.map +1 -0
- package/dist/inference/logical/logical-engine.d.ts +68 -0
- package/dist/inference/logical/logical-engine.d.ts.map +1 -0
- package/dist/inference/logical/logical-engine.js +484 -0
- package/dist/inference/logical/logical-engine.js.map +1 -0
- package/dist/inference/quint-transpiler.d.ts +64 -0
- package/dist/inference/quint-transpiler.d.ts.map +1 -0
- package/dist/inference/quint-transpiler.js +433 -0
- package/dist/inference/quint-transpiler.js.map +1 -0
- package/dist/inference/test-harness.d.ts +41 -0
- package/dist/inference/test-harness.d.ts.map +1 -0
- package/dist/inference/test-harness.js +357 -0
- package/dist/inference/test-harness.js.map +1 -0
- package/dist/parser/convention-processor.d.ts +66 -0
- package/dist/parser/convention-processor.d.ts.map +1 -0
- package/dist/parser/convention-processor.js +349 -0
- package/dist/parser/convention-processor.js.map +1 -0
- package/dist/parser/import-resolver/cache.d.ts +56 -0
- package/dist/parser/import-resolver/cache.d.ts.map +1 -0
- package/dist/parser/import-resolver/cache.js +191 -0
- package/dist/parser/import-resolver/cache.js.map +1 -0
- package/dist/parser/import-resolver/index.d.ts +10 -0
- package/dist/parser/import-resolver/index.d.ts.map +1 -0
- package/dist/parser/import-resolver/index.js +9 -0
- package/dist/parser/import-resolver/index.js.map +1 -0
- package/dist/parser/import-resolver/resolver.d.ts +102 -0
- package/dist/parser/import-resolver/resolver.d.ts.map +1 -0
- package/dist/parser/import-resolver/resolver.js +669 -0
- package/dist/parser/import-resolver/resolver.js.map +1 -0
- package/dist/parser/import-resolver/types.d.ts +55 -0
- package/dist/parser/import-resolver/types.d.ts.map +1 -0
- package/dist/parser/import-resolver/types.js +5 -0
- package/dist/parser/import-resolver/types.js.map +1 -0
- package/dist/parser/index.d.ts +38 -0
- package/dist/parser/index.d.ts.map +1 -0
- package/dist/parser/index.js +61 -0
- package/dist/parser/index.js.map +1 -0
- package/dist/parser/namespace-utils.d.ts +61 -0
- package/dist/parser/namespace-utils.d.ts.map +1 -0
- package/dist/parser/namespace-utils.js +191 -0
- package/dist/parser/namespace-utils.js.map +1 -0
- package/dist/parser/processors/AbstractProcessor.d.ts +10 -0
- package/dist/parser/processors/AbstractProcessor.d.ts.map +1 -0
- package/dist/parser/processors/AbstractProcessor.js +11 -0
- package/dist/parser/processors/AbstractProcessor.js.map +1 -0
- package/dist/parser/processors/AttributeProcessor.d.ts +19 -0
- package/dist/parser/processors/AttributeProcessor.d.ts.map +1 -0
- package/dist/parser/processors/AttributeProcessor.js +154 -0
- package/dist/parser/processors/AttributeProcessor.js.map +1 -0
- package/dist/parser/processors/ControllerProcessor.d.ts +9 -0
- package/dist/parser/processors/ControllerProcessor.d.ts.map +1 -0
- package/dist/parser/processors/ControllerProcessor.js +74 -0
- package/dist/parser/processors/ControllerProcessor.js.map +1 -0
- package/dist/parser/processors/DeploymentProcessor.d.ts +19 -0
- package/dist/parser/processors/DeploymentProcessor.d.ts.map +1 -0
- package/dist/parser/processors/DeploymentProcessor.js +244 -0
- package/dist/parser/processors/DeploymentProcessor.js.map +1 -0
- package/dist/parser/processors/EventProcessor.d.ts +8 -0
- package/dist/parser/processors/EventProcessor.d.ts.map +1 -0
- package/dist/parser/processors/EventProcessor.js +28 -0
- package/dist/parser/processors/EventProcessor.js.map +1 -0
- package/dist/parser/processors/ExecutableProcessor.d.ts +21 -0
- package/dist/parser/processors/ExecutableProcessor.d.ts.map +1 -0
- package/dist/parser/processors/ExecutableProcessor.js +135 -0
- package/dist/parser/processors/ExecutableProcessor.js.map +1 -0
- package/dist/parser/processors/LifecycleProcessor.d.ts +9 -0
- package/dist/parser/processors/LifecycleProcessor.d.ts.map +1 -0
- package/dist/parser/processors/LifecycleProcessor.js +41 -0
- package/dist/parser/processors/LifecycleProcessor.js.map +1 -0
- package/dist/parser/processors/ModelProcessor.d.ts +67 -0
- package/dist/parser/processors/ModelProcessor.d.ts.map +1 -0
- package/dist/parser/processors/ModelProcessor.js +495 -0
- package/dist/parser/processors/ModelProcessor.js.map +1 -0
- package/dist/parser/processors/RelationshipProcessor.d.ts +10 -0
- package/dist/parser/processors/RelationshipProcessor.d.ts.map +1 -0
- package/dist/parser/processors/RelationshipProcessor.js +55 -0
- package/dist/parser/processors/RelationshipProcessor.js.map +1 -0
- package/dist/parser/processors/ServiceProcessor.d.ts +9 -0
- package/dist/parser/processors/ServiceProcessor.d.ts.map +1 -0
- package/dist/parser/processors/ServiceProcessor.js +59 -0
- package/dist/parser/processors/ServiceProcessor.js.map +1 -0
- package/dist/parser/processors/ViewProcessor.d.ts +7 -0
- package/dist/parser/processors/ViewProcessor.d.ts.map +1 -0
- package/dist/parser/processors/ViewProcessor.js +66 -0
- package/dist/parser/processors/ViewProcessor.js.map +1 -0
- package/dist/parser/types/ast.d.ts +518 -0
- package/dist/parser/types/ast.d.ts.map +1 -0
- package/dist/parser/types/ast.js +8 -0
- package/dist/parser/types/ast.js.map +1 -0
- package/dist/parser/types/views.d.ts +186 -0
- package/dist/parser/types/views.d.ts.map +1 -0
- package/dist/parser/types/views.js +8 -0
- package/dist/parser/types/views.js.map +1 -0
- package/dist/parser/unified-parser.d.ts +195 -0
- package/dist/parser/unified-parser.d.ts.map +1 -0
- package/dist/parser/unified-parser.js +1180 -0
- package/dist/parser/unified-parser.js.map +1 -0
- package/dist/parser/vitest.config.d.ts +3 -0
- package/dist/parser/vitest.config.d.ts.map +1 -0
- package/dist/parser/vitest.config.js +27 -0
- package/dist/parser/vitest.config.js.map +1 -0
- package/dist/realize/engines/code-generator.d.ts +86 -0
- package/dist/realize/engines/code-generator.d.ts.map +1 -0
- package/dist/realize/engines/code-generator.js +159 -0
- package/dist/realize/engines/code-generator.js.map +1 -0
- package/dist/realize/engines/engine-registry.d.ts +94 -0
- package/dist/realize/engines/engine-registry.d.ts.map +1 -0
- package/dist/realize/engines/engine-registry.js +163 -0
- package/dist/realize/engines/engine-registry.js.map +1 -0
- package/dist/realize/engines/index.d.ts +10 -0
- package/dist/realize/engines/index.d.ts.map +1 -0
- package/dist/realize/engines/index.js +12 -0
- package/dist/realize/engines/index.js.map +1 -0
- package/dist/realize/engines/typescript-engine.d.ts +74 -0
- package/dist/realize/engines/typescript-engine.d.ts.map +1 -0
- package/dist/realize/engines/typescript-engine.js +289 -0
- package/dist/realize/engines/typescript-engine.js.map +1 -0
- package/dist/realize/generators/index.d.ts +11 -0
- package/dist/realize/generators/index.d.ts.map +1 -0
- package/dist/realize/generators/index.js +11 -0
- package/dist/realize/generators/index.js.map +1 -0
- package/dist/realize/index.d.ts +48 -0
- package/dist/realize/index.d.ts.map +1 -0
- package/dist/realize/index.js +529 -0
- package/dist/realize/index.js.map +1 -0
- package/dist/realize/library/index.d.ts +12 -0
- package/dist/realize/library/index.d.ts.map +1 -0
- package/dist/realize/library/index.js +15 -0
- package/dist/realize/library/index.js.map +1 -0
- package/dist/realize/library/library.d.ts +132 -0
- package/dist/realize/library/library.d.ts.map +1 -0
- package/dist/realize/library/library.js +343 -0
- package/dist/realize/library/library.js.map +1 -0
- package/dist/realize/library/loader.d.ts +73 -0
- package/dist/realize/library/loader.d.ts.map +1 -0
- package/dist/realize/library/loader.js +159 -0
- package/dist/realize/library/loader.js.map +1 -0
- package/dist/realize/library/resolver.d.ts +104 -0
- package/dist/realize/library/resolver.d.ts.map +1 -0
- package/dist/realize/library/resolver.js +299 -0
- package/dist/realize/library/resolver.js.map +1 -0
- package/dist/realize/library/validator.d.ts +65 -0
- package/dist/realize/library/validator.d.ts.map +1 -0
- package/dist/realize/library/validator.js +203 -0
- package/dist/realize/library/validator.js.map +1 -0
- package/dist/realize/types/index.d.ts +5 -0
- package/dist/realize/types/index.d.ts.map +1 -0
- package/dist/realize/types/index.js +5 -0
- package/dist/realize/types/index.js.map +1 -0
- package/dist/realize/types/instance-factory.d.ts +7 -0
- package/dist/realize/types/instance-factory.d.ts.map +1 -0
- package/dist/realize/types/instance-factory.js +2 -0
- package/dist/realize/types/instance-factory.js.map +1 -0
- package/dist/realize/types/unified-mappings.d.ts +163 -0
- package/dist/realize/types/unified-mappings.d.ts.map +1 -0
- package/dist/realize/types/unified-mappings.js +110 -0
- package/dist/realize/types/unified-mappings.js.map +1 -0
- package/dist/realize/utils/ai-spec-loader.d.ts +77 -0
- package/dist/realize/utils/ai-spec-loader.d.ts.map +1 -0
- package/dist/realize/utils/ai-spec-loader.js +142 -0
- package/dist/realize/utils/ai-spec-loader.js.map +1 -0
- package/dist/realize/utils/index.d.ts +9 -0
- package/dist/realize/utils/index.d.ts.map +1 -0
- package/dist/realize/utils/index.js +9 -0
- package/dist/realize/utils/index.js.map +1 -0
- package/dist/realize/utils/manifest-loader.d.ts +107 -0
- package/dist/realize/utils/manifest-loader.d.ts.map +1 -0
- package/dist/realize/utils/manifest-loader.js +168 -0
- package/dist/realize/utils/manifest-loader.js.map +1 -0
- package/dist/realize/utils/mapping-migration.d.ts +53 -0
- package/dist/realize/utils/mapping-migration.d.ts.map +1 -0
- package/dist/realize/utils/mapping-migration.js +194 -0
- package/dist/realize/utils/mapping-migration.js.map +1 -0
- package/dist/registry/cache/cache-manager.d.ts +132 -0
- package/dist/registry/cache/cache-manager.d.ts.map +1 -0
- package/dist/registry/cache/cache-manager.js +218 -0
- package/dist/registry/cache/cache-manager.js.map +1 -0
- package/dist/registry/client/registry-client.d.ts +129 -0
- package/dist/registry/client/registry-client.d.ts.map +1 -0
- package/dist/registry/client/registry-client.js +317 -0
- package/dist/registry/client/registry-client.js.map +1 -0
- package/dist/registry/formatters/error-formatter.d.ts +100 -0
- package/dist/registry/formatters/error-formatter.d.ts.map +1 -0
- package/dist/registry/formatters/error-formatter.js +290 -0
- package/dist/registry/formatters/error-formatter.js.map +1 -0
- package/dist/registry/formatters/index.d.ts +8 -0
- package/dist/registry/formatters/index.d.ts.map +1 -0
- package/dist/registry/formatters/index.js +7 -0
- package/dist/registry/formatters/index.js.map +1 -0
- package/dist/registry/index.d.ts +19 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +22 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/offline/offline-handler.d.ts +150 -0
- package/dist/registry/offline/offline-handler.d.ts.map +1 -0
- package/dist/registry/offline/offline-handler.js +290 -0
- package/dist/registry/offline/offline-handler.js.map +1 -0
- package/dist/registry/types/index.d.ts +13 -0
- package/dist/registry/types/index.d.ts.map +1 -0
- package/dist/registry/types/index.js +11 -0
- package/dist/registry/types/index.js.map +1 -0
- package/dist/registry/types/registry.d.ts +220 -0
- package/dist/registry/types/registry.d.ts.map +1 -0
- package/dist/registry/types/registry.js +55 -0
- package/dist/registry/types/registry.js.map +1 -0
- package/dist/registry/types/validation.d.ts +197 -0
- package/dist/registry/types/validation.d.ts.map +1 -0
- package/dist/registry/types/validation.js +140 -0
- package/dist/registry/types/validation.js.map +1 -0
- package/dist/registry/utils/manifest-adapter.d.ts +42 -0
- package/dist/registry/utils/manifest-adapter.d.ts.map +1 -0
- package/dist/registry/utils/manifest-adapter.js +182 -0
- package/dist/registry/utils/manifest-adapter.js.map +1 -0
- package/dist/registry/validators/index.d.ts +12 -0
- package/dist/registry/validators/index.d.ts.map +1 -0
- package/dist/registry/validators/index.js +9 -0
- package/dist/registry/validators/index.js.map +1 -0
- package/dist/registry/validators/installation-validator.d.ts +75 -0
- package/dist/registry/validators/installation-validator.d.ts.map +1 -0
- package/dist/registry/validators/installation-validator.js +142 -0
- package/dist/registry/validators/installation-validator.js.map +1 -0
- package/dist/registry/validators/manifest-validator.d.ts +82 -0
- package/dist/registry/validators/manifest-validator.d.ts.map +1 -0
- package/dist/registry/validators/manifest-validator.js +213 -0
- package/dist/registry/validators/manifest-validator.js.map +1 -0
- package/dist/registry/validators/validator.d.ts +113 -0
- package/dist/registry/validators/validator.d.ts.map +1 -0
- package/dist/registry/validators/validator.js +165 -0
- package/dist/registry/validators/validator.js.map +1 -0
- package/libs/instance-factories/CURVED-INTERFACE.md +278 -0
- package/libs/instance-factories/README.md +73 -0
- package/libs/instance-factories/applications/README.md +51 -0
- package/libs/instance-factories/applications/generic-app.yaml +52 -0
- package/libs/instance-factories/applications/react-app-runtime.yaml +139 -0
- package/libs/instance-factories/applications/react-app.yaml +186 -0
- package/libs/instance-factories/applications/templates/generic/backend-env-generator.ts +31 -0
- package/libs/instance-factories/applications/templates/generic/backend-package-json-generator.ts +84 -0
- package/libs/instance-factories/applications/templates/generic/backend-tsconfig-generator.ts +69 -0
- package/libs/instance-factories/applications/templates/generic/main-generator.ts +308 -0
- package/libs/instance-factories/applications/templates/react/_view-components-source.ts +555 -0
- package/libs/instance-factories/applications/templates/react/api-client-generator.ts +436 -0
- package/libs/instance-factories/applications/templates/react/api-types-generator.ts +153 -0
- package/libs/instance-factories/applications/templates/react/app-tsx-generator.ts +94 -0
- package/libs/instance-factories/applications/templates/react/env-example-generator.ts +24 -0
- package/libs/instance-factories/applications/templates/react/field-helpers-generator.ts +106 -0
- package/libs/instance-factories/applications/templates/react/gitignore-generator.ts +38 -0
- package/libs/instance-factories/applications/templates/react/index-css-generator.ts +14 -0
- package/libs/instance-factories/applications/templates/react/index-html-generator.ts +30 -0
- package/libs/instance-factories/applications/templates/react/main-tsx-generator.ts +34 -0
- package/libs/instance-factories/applications/templates/react/package-json-generator.ts +57 -0
- package/libs/instance-factories/applications/templates/react/pattern-adapter-generator.ts +179 -0
- package/libs/instance-factories/applications/templates/react/react-pattern-adapter.tsx +1347 -0
- package/libs/instance-factories/applications/templates/react/relationship-field-generator.ts +150 -0
- package/libs/instance-factories/applications/templates/react/runtime-app-tsx-generator.ts +90 -0
- package/libs/instance-factories/applications/templates/react/runtime-package-json-generator.ts +61 -0
- package/libs/instance-factories/applications/templates/react/tailwind-adapter-generator.ts +704 -0
- package/libs/instance-factories/applications/templates/react/tailwind-adapter-wrapper-generator.ts +84 -0
- package/libs/instance-factories/applications/templates/react/tsconfig-generator.ts +35 -0
- package/libs/instance-factories/applications/templates/react/use-api-hooks-generator.ts +121 -0
- package/libs/instance-factories/applications/templates/react/view-dashboard-generator.ts +150 -0
- package/libs/instance-factories/applications/templates/react/view-detail-generator.ts +150 -0
- package/libs/instance-factories/applications/templates/react/view-form-generator.ts +362 -0
- package/libs/instance-factories/applications/templates/react/view-list-generator.ts +98 -0
- package/libs/instance-factories/applications/templates/react/view-router-generator.ts +89 -0
- package/libs/instance-factories/applications/templates/react/vite-config-generator.ts +49 -0
- package/libs/instance-factories/archived/fastify-prisma.yaml +104 -0
- package/libs/instance-factories/cli/README.md +43 -0
- package/libs/instance-factories/cli/commander-js.yaml +55 -0
- package/libs/instance-factories/cli/templates/commander/cli-bin-wrapper-generator.ts +20 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts +12 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.d.ts.map +1 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js +115 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.js.map +1 -0
- package/libs/instance-factories/cli/templates/commander/cli-entry-generator.ts +168 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.d.ts +14 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.d.ts.map +1 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.js +182 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.js.map +1 -0
- package/libs/instance-factories/cli/templates/commander/command-generator.ts +1036 -0
- package/libs/instance-factories/communication/README.md +47 -0
- package/libs/instance-factories/communication/event-emitter.yaml +56 -0
- package/libs/instance-factories/communication/rabbitmq-events.yaml +87 -0
- package/libs/instance-factories/communication/templates/eventemitter/bus-generator.ts +93 -0
- package/libs/instance-factories/communication/templates/eventemitter/publisher-generator.ts +117 -0
- package/libs/instance-factories/communication/templates/eventemitter/subscriber-generator.ts +101 -0
- package/libs/instance-factories/controllers/README.md +42 -0
- package/libs/instance-factories/controllers/fastify.yaml +127 -0
- package/libs/instance-factories/controllers/templates/fastify/meta-routes-generator.ts +103 -0
- package/libs/instance-factories/controllers/templates/fastify/routes-generator.ts +389 -0
- package/libs/instance-factories/controllers/templates/fastify/server-generator.ts +76 -0
- package/libs/instance-factories/infrastructure/README.md +29 -0
- package/libs/instance-factories/infrastructure/docker-k8s.yaml +61 -0
- package/libs/instance-factories/infrastructure/templates/docker-k8s/infrastructure-generator.ts +46 -0
- package/libs/instance-factories/orms/README.md +54 -0
- package/libs/instance-factories/orms/prisma.yaml +89 -0
- package/libs/instance-factories/orms/templates/prisma/schema-generator.ts +576 -0
- package/libs/instance-factories/orms/templates/prisma/services-generator.ts +408 -0
- package/libs/instance-factories/scaffolding/README.md +49 -0
- package/libs/instance-factories/scaffolding/generic-scaffold.yaml +65 -0
- package/libs/instance-factories/scaffolding/templates/generic/env-example-generator.ts +73 -0
- package/libs/instance-factories/scaffolding/templates/generic/env-generator.ts +85 -0
- package/libs/instance-factories/scaffolding/templates/generic/gitignore-generator.ts +69 -0
- package/libs/instance-factories/scaffolding/templates/generic/package-json-generator.ts +176 -0
- package/libs/instance-factories/scaffolding/templates/generic/readme-generator.ts +207 -0
- package/libs/instance-factories/scaffolding/templates/generic/tsconfig-generator.ts +78 -0
- package/libs/instance-factories/scaffolding/templates/generic/tsconfig-react-generator.ts +41 -0
- package/libs/instance-factories/sdks/README.md +28 -0
- package/libs/instance-factories/sdks/python-sdk.yaml +66 -0
- package/libs/instance-factories/sdks/templates/python/sdk-generator.ts +50 -0
- package/libs/instance-factories/sdks/templates/typescript/sdk-generator.ts +49 -0
- package/libs/instance-factories/sdks/typescript-sdk.yaml +59 -0
- package/libs/instance-factories/services/README.md +55 -0
- package/libs/instance-factories/services/prisma-services.yaml +71 -0
- package/libs/instance-factories/services/templates/memory/generate-interpreter.ts +25 -0
- package/libs/instance-factories/services/templates/memory/step-conventions-memory.ts +465 -0
- package/libs/instance-factories/services/templates/prisma/behavior-generator.ts +304 -0
- package/libs/instance-factories/services/templates/prisma/controller-generator.ts +532 -0
- package/libs/instance-factories/services/templates/prisma/service-generator.ts +334 -0
- package/libs/instance-factories/services/templates/prisma/step-conventions.ts +309 -0
- package/libs/instance-factories/services/templates/shared-patterns.ts +38 -0
- package/libs/instance-factories/shared/path-resolver.ts +111 -0
- package/libs/instance-factories/storage/README.md +34 -0
- package/libs/instance-factories/storage/mongodb.yaml +79 -0
- package/libs/instance-factories/storage/postgresql.yaml +75 -0
- package/libs/instance-factories/storage/redis.yaml +79 -0
- package/libs/instance-factories/storage/templates/mongodb/config-generator.ts +15 -0
- package/libs/instance-factories/storage/templates/mongodb/docker-generator.ts +18 -0
- package/libs/instance-factories/storage/templates/postgresql/config-generator.ts +54 -0
- package/libs/instance-factories/storage/templates/postgresql/docker-generator.ts +55 -0
- package/libs/instance-factories/storage/templates/redis/config-generator.ts +16 -0
- package/libs/instance-factories/storage/templates/redis/docker-generator.ts +18 -0
- package/libs/instance-factories/test-generation.ts +192 -0
- package/libs/instance-factories/testing/README.md +40 -0
- package/libs/instance-factories/testing/templates/vitest/tests-generator.ts +51 -0
- package/libs/instance-factories/testing/vitest-tests.yaml +63 -0
- package/libs/instance-factories/tools/README.md +70 -0
- package/libs/instance-factories/tools/mcp.yaml +36 -0
- package/libs/instance-factories/tools/templates/mcp/mcp-server-generator.ts +190 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/DEPLOYMENT_GUIDE.md +630 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/HYBRID_RESOURCE_SYSTEM.md +330 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/EXTENSION_DEPLOYMENT.md +552 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/LOCAL_DEPLOYMENT.md +164 -0
- package/libs/instance-factories/tools/templates/mcp/static/docs/deployments/WEB_DEPLOYMENT.md +247 -0
- package/libs/instance-factories/tools/templates/mcp/static/package.json +94 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-enterprise.js +284 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-extension.js +139 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-local.js +74 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/build-web.js +156 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/copy-canonical-files.js +41 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/test-deployments.js +259 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-resources.js +231 -0
- package/libs/instance-factories/tools/templates/mcp/static/scripts/test-hybrid-simple.js +196 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/controllers/MCPServerController.ts +293 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/events/EventEmitter.ts +90 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/index.ts +24 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/interfaces/ResourceProvider.ts +15 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/models/LibrarySuggestion.ts +106 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/models/SpecVerseResource.ts +75 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/server/mcp-server.ts +239 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/CLIProxyService.ts +1501 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/EmbeddedResourcesAdapter.ts +211 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/EntityModuleService.ts +308 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/HybridResourcesProvider.ts +210 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/LibraryToolsService.ts +356 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorBridge.ts +522 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/OrchestratorToolsService.ts +530 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/PromptToolsService.ts +594 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/services/ResourcesProviderService.ts +170 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.init.test.ts +544 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/CLIProxyService.test.ts +189 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/tests/unit/ResourcesProviderService.test.ts +89 -0
- package/libs/instance-factories/tools/templates/mcp/static/src/types/index.ts +110 -0
- package/libs/instance-factories/tools/templates/mcp/static/tsconfig.json +28 -0
- package/libs/instance-factories/tools/templates/vscode/static/extension.ts +1195 -0
- package/libs/instance-factories/tools/templates/vscode/static/language-configuration.json +34 -0
- package/libs/instance-factories/tools/templates/vscode/static/schemas/specverse-v3-schema.json +4279 -0
- package/libs/instance-factories/tools/templates/vscode/static/syntaxes/specverse.tmLanguage.json +138 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/README.md +74 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/complete-specverse-colors.json +122 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-basic-theme.json +65 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-complete-theme.json +123 -0
- package/libs/instance-factories/tools/templates/vscode/static/themes/specverse-theme-colors.json +64 -0
- package/libs/instance-factories/tools/templates/vscode/vscode-extension-generator.ts +300 -0
- package/libs/instance-factories/tools/vscode.yaml +35 -0
- package/libs/instance-factories/validation/README.md +38 -0
- package/libs/instance-factories/validation/templates/zod/validation-generator.ts +46 -0
- package/libs/instance-factories/validation/zod.yaml +56 -0
- package/libs/instance-factories/views/README.md +62 -0
- package/libs/instance-factories/views/index.d.ts +13 -0
- package/libs/instance-factories/views/index.d.ts.map +1 -0
- package/libs/instance-factories/views/index.js +18 -0
- package/libs/instance-factories/views/index.js.map +1 -0
- package/libs/instance-factories/views/index.ts +45 -0
- package/libs/instance-factories/views/react-components.yaml +129 -0
- package/libs/instance-factories/views/templates/ARCHITECTURE.md +198 -0
- package/libs/instance-factories/views/templates/react/adapters/antd-adapter.ts +869 -0
- package/libs/instance-factories/views/templates/react/adapters/mui-adapter.ts +953 -0
- package/libs/instance-factories/views/templates/react/adapters/shadcn-adapter.ts +806 -0
- package/libs/instance-factories/views/templates/react/app-generator.ts +55 -0
- package/libs/instance-factories/views/templates/react/components-generator.ts +887 -0
- package/libs/instance-factories/views/templates/react/forms-generator.ts +343 -0
- package/libs/instance-factories/views/templates/react/frontend-package-json-generator.ts +57 -0
- package/libs/instance-factories/views/templates/react/hooks-generator.ts +122 -0
- package/libs/instance-factories/views/templates/react/index-css-generator.ts +14 -0
- package/libs/instance-factories/views/templates/react/index-html-generator.ts +34 -0
- package/libs/instance-factories/views/templates/react/main-tsx-generator.ts +29 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.d.ts +152 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.js +398 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.js.map +1 -0
- package/libs/instance-factories/views/templates/react/react-component-generator.ts +533 -0
- package/libs/instance-factories/views/templates/react/router-generator.ts +197 -0
- package/libs/instance-factories/views/templates/react/router-generic-generator.ts +132 -0
- package/libs/instance-factories/views/templates/react/shared-utils-generator.ts +188 -0
- package/libs/instance-factories/views/templates/react/spec-json-generator.ts +17 -0
- package/libs/instance-factories/views/templates/react/types-generator.ts +76 -0
- package/libs/instance-factories/views/templates/react/views-metadata-generator.ts +42 -0
- package/libs/instance-factories/views/templates/react/vite-config-generator.ts +38 -0
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.js.map +1 -0
- package/libs/instance-factories/views/templates/runtime/runtime-view-renderer.ts +474 -0
- package/libs/instance-factories/views/templates/shared/__tests__/composite-patterns.test.ts +242 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.d.ts +77 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.js +47 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/adapter-types.ts +142 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts +63 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.js +822 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/atomic-components-registry.ts +908 -0
- package/libs/instance-factories/views/templates/shared/base-generator.d.ts +247 -0
- package/libs/instance-factories/views/templates/shared/base-generator.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/base-generator.js +363 -0
- package/libs/instance-factories/views/templates/shared/base-generator.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/base-generator.ts +608 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.d.ts +254 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.js +602 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/component-metadata.ts +803 -0
- package/libs/instance-factories/views/templates/shared/composite-pattern-types.ts +250 -0
- package/libs/instance-factories/views/templates/shared/composite-patterns.ts +535 -0
- package/libs/instance-factories/views/templates/shared/index.ts +68 -0
- package/libs/instance-factories/views/templates/shared/pattern-validator.ts +279 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.d.ts +149 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.js +580 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/property-mapper.ts +700 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts +143 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.d.ts.map +1 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.js +420 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.js.map +1 -0
- package/libs/instance-factories/views/templates/shared/syntax-mapper.ts +539 -0
- 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"
|