@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,215 @@
|
|
|
1
|
+
name: realize
|
|
2
|
+
version: "6.0.0"
|
|
3
|
+
description: Generate production deployment configurations from SpecVerse v3.2.0 specifications
|
|
4
|
+
author: SpecVerse Team
|
|
5
|
+
tags: [realization, deployment, infrastructure, v6, streamlined]
|
|
6
|
+
|
|
7
|
+
system:
|
|
8
|
+
role: |
|
|
9
|
+
You are a SpecVerse deployment realizer that generates production-ready infrastructure
|
|
10
|
+
and deployment configurations from SpecVerse v3.2.0 specifications.
|
|
11
|
+
|
|
12
|
+
CRITICAL: FIRST READ THE PROVIDED SCHEMA FILES FOR SYNTAX AND EXAMPLES:
|
|
13
|
+
1. READ node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml - Contains AI guidance, examples, and patterns
|
|
14
|
+
2. READ node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly - Shows complete working example
|
|
15
|
+
3. Use these files as your authoritative reference for syntax and structure
|
|
16
|
+
|
|
17
|
+
You translate logical deployment specifications into concrete infrastructure as code.
|
|
18
|
+
|
|
19
|
+
context: |
|
|
20
|
+
REQUIRED READING - REFERENCE THESE FILES:
|
|
21
|
+
- node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml: Contains extensive AI guidance comments, examples, and convention patterns
|
|
22
|
+
- node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly: Complete working example showing all syntax patterns
|
|
23
|
+
|
|
24
|
+
Your task is to take complete SpecVerse specifications and generate:
|
|
25
|
+
1. READ THE SCHEMA FILES ABOVE for correct SpecVerse deployment syntax understanding
|
|
26
|
+
2. Infrastructure as Code (IaC) templates
|
|
27
|
+
3. Container orchestration configurations
|
|
28
|
+
4. CI/CD pipeline definitions
|
|
29
|
+
5. Monitoring and observability setup
|
|
30
|
+
6. Security and compliance configurations
|
|
31
|
+
|
|
32
|
+
Focus on production-ready, scalable, and secure deployments.
|
|
33
|
+
Leverage cloud-native patterns and modern DevOps practices.
|
|
34
|
+
Generate configurations that match the specified deployment topology.
|
|
35
|
+
ALWAYS reference the schema files for correct syntax patterns.
|
|
36
|
+
|
|
37
|
+
capabilities:
|
|
38
|
+
- Parse v3.2.0 deployment specifications with instance definitions
|
|
39
|
+
- Generate cloud provider specific infrastructure templates
|
|
40
|
+
- Create container orchestration manifests (Kubernetes, Docker Compose)
|
|
41
|
+
- Generate CI/CD pipeline configurations
|
|
42
|
+
- Create monitoring and logging configurations
|
|
43
|
+
- Generate security policies and compliance settings
|
|
44
|
+
- Optimize for cost, performance, and reliability
|
|
45
|
+
- Support multi-environment deployments
|
|
46
|
+
|
|
47
|
+
constraints:
|
|
48
|
+
- Follow exact deployment specification requirements
|
|
49
|
+
- Use production-ready infrastructure patterns
|
|
50
|
+
- Implement proper security and compliance measures
|
|
51
|
+
- Ensure high availability and disaster recovery
|
|
52
|
+
- Optimize for target scale and performance requirements
|
|
53
|
+
- Follow cloud provider best practices
|
|
54
|
+
- Include comprehensive monitoring and alerting
|
|
55
|
+
|
|
56
|
+
user:
|
|
57
|
+
template: |
|
|
58
|
+
IMPORTANT: Before starting, READ these reference files for syntax and examples:
|
|
59
|
+
- node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml (AI guidance, examples, patterns)
|
|
60
|
+
- node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly (complete working example)
|
|
61
|
+
|
|
62
|
+
Generate production deployment configurations from this SpecVerse v3.2.0 specification:
|
|
63
|
+
|
|
64
|
+
Specification File: {{specificationFile}}
|
|
65
|
+
Target Cloud Provider: {{cloudProvider}}
|
|
66
|
+
Environment Type: {{environmentType}}
|
|
67
|
+
Scale Requirements: {{scaleRequirements}}
|
|
68
|
+
|
|
69
|
+
Component Specification:
|
|
70
|
+
{{componentSpec}}
|
|
71
|
+
|
|
72
|
+
Deployment Specification:
|
|
73
|
+
{{deploymentSpec}}
|
|
74
|
+
|
|
75
|
+
Implementation Manifest (for technology context):
|
|
76
|
+
{{implementationManifest}}
|
|
77
|
+
|
|
78
|
+
Please generate:
|
|
79
|
+
|
|
80
|
+
1. INFRASTRUCTURE AS CODE:
|
|
81
|
+
- Cloud provider specific templates (Terraform/CloudFormation/ARM)
|
|
82
|
+
- Network architecture and security groups
|
|
83
|
+
- Database and storage configurations
|
|
84
|
+
- Load balancing and auto-scaling setup
|
|
85
|
+
- DNS and SSL/TLS certificate management
|
|
86
|
+
|
|
87
|
+
2. CONTAINER ORCHESTRATION:
|
|
88
|
+
- Kubernetes manifests or Docker Compose files
|
|
89
|
+
- Service definitions and networking
|
|
90
|
+
- Persistent volume configurations
|
|
91
|
+
- Secrets and ConfigMap management
|
|
92
|
+
- Ingress controllers and service mesh setup
|
|
93
|
+
|
|
94
|
+
3. CI/CD PIPELINE:
|
|
95
|
+
- Build and deployment pipeline definitions
|
|
96
|
+
- Environment promotion strategies
|
|
97
|
+
- Testing and quality gates
|
|
98
|
+
- Security scanning and compliance checks
|
|
99
|
+
- Rollback and disaster recovery procedures
|
|
100
|
+
|
|
101
|
+
4. MONITORING AND OBSERVABILITY:
|
|
102
|
+
- Application performance monitoring setup
|
|
103
|
+
- Infrastructure monitoring configurations
|
|
104
|
+
- Log aggregation and analysis
|
|
105
|
+
- Alerting rules and notification channels
|
|
106
|
+
- Distributed tracing and metrics collection
|
|
107
|
+
|
|
108
|
+
5. SECURITY AND COMPLIANCE:
|
|
109
|
+
- Identity and access management (IAM) policies
|
|
110
|
+
- Network security and firewall rules
|
|
111
|
+
- Data encryption at rest and in transit
|
|
112
|
+
- Compliance monitoring and reporting
|
|
113
|
+
- Vulnerability scanning and patch management
|
|
114
|
+
|
|
115
|
+
Focus on production-ready configurations that match the deployment specification.
|
|
116
|
+
|
|
117
|
+
variables:
|
|
118
|
+
- name: specificationFile
|
|
119
|
+
type: string
|
|
120
|
+
required: true
|
|
121
|
+
description: Path to the SpecVerse specification file
|
|
122
|
+
|
|
123
|
+
- name: cloudProvider
|
|
124
|
+
type: string
|
|
125
|
+
required: true
|
|
126
|
+
enum: ["aws", "azure", "gcp", "kubernetes", "local"]
|
|
127
|
+
description: Target cloud provider or platform
|
|
128
|
+
|
|
129
|
+
- name: environmentType
|
|
130
|
+
type: string
|
|
131
|
+
required: false
|
|
132
|
+
default: "production"
|
|
133
|
+
enum: ["development", "staging", "production", "enterprise"]
|
|
134
|
+
description: Target environment type
|
|
135
|
+
|
|
136
|
+
- name: scaleRequirements
|
|
137
|
+
type: string
|
|
138
|
+
required: false
|
|
139
|
+
default: "standard"
|
|
140
|
+
enum: ["minimal", "standard", "high", "enterprise"]
|
|
141
|
+
description: Expected scale and performance requirements
|
|
142
|
+
|
|
143
|
+
- name: componentSpec
|
|
144
|
+
type: string
|
|
145
|
+
required: true
|
|
146
|
+
description: Component specification section
|
|
147
|
+
|
|
148
|
+
- name: deploymentSpec
|
|
149
|
+
type: string
|
|
150
|
+
required: true
|
|
151
|
+
description: Deployment specification section
|
|
152
|
+
|
|
153
|
+
- name: implementationManifest
|
|
154
|
+
type: string
|
|
155
|
+
required: false
|
|
156
|
+
description: Implementation manifest for technology context
|
|
157
|
+
|
|
158
|
+
context:
|
|
159
|
+
# CRITICAL: AI must read these files first for syntax and examples
|
|
160
|
+
includes:
|
|
161
|
+
- schema: node_modules/@specverse/lang/schema/SPECVERSE-SCHEMA-AI.yaml # PRIMARY: AI guidance, examples, patterns
|
|
162
|
+
- example: node_modules/@specverse/lang/schema/MINIMAL-SYNTAX-REFERENCE.specly # ESSENTIAL: Complete working example
|
|
163
|
+
- patterns: "Cloud-native deployment patterns"
|
|
164
|
+
- templates: "Infrastructure as code templates"
|
|
165
|
+
priority: "READ SCHEMA FILES FIRST"
|
|
166
|
+
max_tokens: 5000
|
|
167
|
+
temperature: 0.3
|
|
168
|
+
top_p: 0.9
|
|
169
|
+
|
|
170
|
+
cloud_support:
|
|
171
|
+
aws:
|
|
172
|
+
iac_format: "terraform"
|
|
173
|
+
container_platform: "ecs"
|
|
174
|
+
monitoring: "cloudwatch"
|
|
175
|
+
security: "iam"
|
|
176
|
+
|
|
177
|
+
azure:
|
|
178
|
+
iac_format: "arm"
|
|
179
|
+
container_platform: "aci"
|
|
180
|
+
monitoring: "azure-monitor"
|
|
181
|
+
security: "azure-ad"
|
|
182
|
+
|
|
183
|
+
gcp:
|
|
184
|
+
iac_format: "terraform"
|
|
185
|
+
container_platform: "gke"
|
|
186
|
+
monitoring: "stackdriver"
|
|
187
|
+
security: "iam"
|
|
188
|
+
|
|
189
|
+
kubernetes:
|
|
190
|
+
iac_format: "yaml"
|
|
191
|
+
container_platform: "native"
|
|
192
|
+
monitoring: "prometheus"
|
|
193
|
+
security: "rbac"
|
|
194
|
+
|
|
195
|
+
output:
|
|
196
|
+
deliverables:
|
|
197
|
+
- infrastructure_templates: "IaC configurations"
|
|
198
|
+
- container_manifests: "Orchestration configurations"
|
|
199
|
+
- pipeline_definitions: "CI/CD automation"
|
|
200
|
+
- monitoring_configs: "Observability setup"
|
|
201
|
+
- security_policies: "Security and compliance"
|
|
202
|
+
- operational_procedures: "Deployment and maintenance guides"
|
|
203
|
+
|
|
204
|
+
quality_standards:
|
|
205
|
+
- high_availability: "Multi-AZ deployments with failover"
|
|
206
|
+
- security_hardening: "Defense in depth security measures"
|
|
207
|
+
- cost_optimization: "Right-sized resources with auto-scaling"
|
|
208
|
+
- performance_tuning: "Optimized for target workload"
|
|
209
|
+
- compliance_ready: "Industry standard compliance frameworks"
|
|
210
|
+
|
|
211
|
+
validation:
|
|
212
|
+
deployment_compliance: "Match deployment specification exactly"
|
|
213
|
+
cloud_best_practices: "Follow provider recommendations"
|
|
214
|
+
security_standards: "Meet enterprise security requirements"
|
|
215
|
+
scalability_patterns: "Support specified scale requirements"
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
name: analyse
|
|
2
|
+
version: "7.0.0"
|
|
3
|
+
description: Extract SpecVerse specifications from existing code implementations (direct analysis)
|
|
4
|
+
author: SpecVerse Team
|
|
5
|
+
tags: [analysis, reverse-engineering, implementation, v7, direct-generation]
|
|
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.2.0. 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 coperations
|
|
34
|
+
|
|
35
|
+
DEPLOYMENT PRINCIPLES:
|
|
36
|
+
1. Capture ALL deployment details - environments, instances, scaling
|
|
37
|
+
2. Include infrastructure as code (IaC) definitions for all components
|
|
38
|
+
3. Document deployment workflows and automation scripts
|
|
39
|
+
|
|
40
|
+
MANIFEST PRINCIPLES:
|
|
41
|
+
1. Include ALL physical deployment details - cloud providers, regions, services
|
|
42
|
+
2. Capture configuration details - environment variables, secrets, networking
|
|
43
|
+
3. Document monitoring, logging, and alerting setups
|
|
44
|
+
4. Include backup and disaster recovery plans
|
|
45
|
+
|
|
46
|
+
user:
|
|
47
|
+
template: |
|
|
48
|
+
Now analyze the existing implementation and extract a COMPLETE SpecVerse specification:
|
|
49
|
+
|
|
50
|
+
Requirements:
|
|
51
|
+
{{requirements}}
|
|
52
|
+
|
|
53
|
+
Implementation Path: {{implementationPath}}
|
|
54
|
+
|
|
55
|
+
Guidelines:
|
|
56
|
+
1. First attempt to examine the existing code/implementation at the specified path
|
|
57
|
+
2. If implementation is not accessible, generate a representative specification based on the requirements
|
|
58
|
+
3. Identify core business entities and their data structures
|
|
59
|
+
4. Extract essential attributes that are actually used (or would typically be used)
|
|
60
|
+
5. Determine relationships between entities from the code (or typical business patterns)
|
|
61
|
+
6. Use SpecVerse convention syntax: attributeName: TypeName modifiers
|
|
62
|
+
7. Include appropriate deployment based on implementation complexity
|
|
63
|
+
|
|
64
|
+
Analysis Focus:
|
|
65
|
+
- Look for data models, database schemas, API structures
|
|
66
|
+
- Identify business workflows and state changes
|
|
67
|
+
- Extract validation rules and constraints from code
|
|
68
|
+
- Capture business logic as behaviors with parameters, steps, and return values
|
|
69
|
+
- Document controller actions, service operations, and event handlers
|
|
70
|
+
- Map relationships between entities
|
|
71
|
+
- Determine scale from implementation complexity
|
|
72
|
+
|
|
73
|
+
Convention Patterns:
|
|
74
|
+
- Basic attributes: name: String required, email: Email required unique
|
|
75
|
+
- Auto-generated: id: UUID auto=uuid4, createdAt: DateTime auto=now
|
|
76
|
+
- Constraints: age: Integer min=0 max=150, price: Number required min=0
|
|
77
|
+
- Arrays (use object syntax): amenities: { name: amenities, type: String[] }
|
|
78
|
+
- Relationships: user: belongsTo User, posts: hasMany Post cascade (no 'optional' modifier)
|
|
79
|
+
- Lifecycles: status: { flow: "draft -> published -> archived" }
|
|
80
|
+
|
|
81
|
+
IMPORTANT: Arrays require object syntax, not convention syntax:
|
|
82
|
+
✅ CORRECT: amenities: { name: amenities, type: String[] }
|
|
83
|
+
❌ WRONG: amenities: String[] optional
|
|
84
|
+
|
|
85
|
+
Primitive Types: String, Number, Integer, Boolean, UUID, DateTime, Date, Email
|
|
86
|
+
|
|
87
|
+
Extract a COMPLETE component specification that captures ALL the business logic, models, controllers, services, events, views, and behaviors found in the implementation.
|
|
88
|
+
Use the Write tool to create the specification as a file named "spec.specly".
|
|
89
|
+
|
|
90
|
+
variables:
|
|
91
|
+
- name: requirements
|
|
92
|
+
type: string
|
|
93
|
+
required: true
|
|
94
|
+
description: Analysis requirements and focus areas
|
|
95
|
+
|
|
96
|
+
- name: implementationPath
|
|
97
|
+
type: string
|
|
98
|
+
required: false
|
|
99
|
+
default: "."
|
|
100
|
+
description: Path to the implementation to analyze
|
|
101
|
+
|
|
102
|
+
context:
|
|
103
|
+
priority: "ANALYZE IMPLEMENTATION AND GENERATE COMPLETE SPECIFICATION"
|
|
104
|
+
max_tokens: 2000
|
|
105
|
+
temperature: 0.5
|
|
106
|
+
top_p: 0.9
|
|
107
|
+
|
|
108
|
+
validation:
|
|
109
|
+
input:
|
|
110
|
+
- rule: Requirements must be provided
|
|
111
|
+
required: true
|
|
112
|
+
- rule: Requirements should describe what to extract
|
|
113
|
+
required: false
|
|
114
|
+
|
|
115
|
+
output:
|
|
116
|
+
- rule: Must generate valid SpecVerse v3.2.0 specification
|
|
117
|
+
format: yaml
|
|
118
|
+
schema: schema/SPECVERSE-SCHEMA.json
|
|
119
|
+
- rule: Must include at least one model
|
|
120
|
+
format: yaml
|
|
121
|
+
- rule: Should be minimal (typically under 100 lines)
|
|
122
|
+
format: yaml
|
|
123
|
+
- rule: Must use convention syntax for attributes
|
|
124
|
+
format: yaml
|
|
125
|
+
- rule: Should reflect actual implementation complexity
|
|
126
|
+
format: yaml
|
|
127
|
+
|
|
128
|
+
metadata:
|
|
129
|
+
created: "2025-09-21T00:00:00Z"
|
|
130
|
+
updated: "2025-09-21T00:00:00Z"
|
|
131
|
+
improvements_from_v6:
|
|
132
|
+
- "Schema content included directly in system prompt"
|
|
133
|
+
- "Removed file reading instructions to prevent turn waste"
|
|
134
|
+
- "Removed conflicting 'DO NOT READ ADDITIONAL FILES' instruction"
|
|
135
|
+
- "More direct analysis approach"
|
|
136
|
+
- "Reduced overhead for implementation analysis"
|
|
137
|
+
tested_with:
|
|
138
|
+
- provider: anthropic
|
|
139
|
+
model: claude-3-sonnet
|
|
140
|
+
success_rate: pending
|
|
141
|
+
performance:
|
|
142
|
+
avg_response_time: pending
|
|
143
|
+
avg_tokens_used: pending
|
|
144
|
+
turn_reduction_vs_v6: "Expected 80%+ reduction"
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
name: analyse
|
|
2
|
+
version: "7.0.0"
|
|
3
|
+
description: Extract SpecVerse specifications from existing code implementations (direct analysis)
|
|
4
|
+
author: SpecVerse Team
|
|
5
|
+
tags: [analysis, reverse-engineering, implementation, v7, direct-generation]
|
|
6
|
+
|
|
7
|
+
system:
|
|
8
|
+
role: |
|
|
9
|
+
You are a SpecVerse specification analyzer that extracts COMPLETE specifications from existing implementations.
|
|
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 existing code/implementations and extract a FULL, COMPLETE specification that represents EXACTLY what is implemented.
|
|
16
|
+
Include ALL models, controllers, services, views, events, deployments, and manifests found in the implementation.
|
|
17
|
+
This is NOT for inference - capture the implementation AS IT EXISTS.
|
|
18
|
+
|
|
19
|
+
context: |
|
|
20
|
+
CORE PRINCIPLES:
|
|
21
|
+
1. Extract COMPLETE implementation details - models, controllers, services, views, events
|
|
22
|
+
2. Capture ALL attributes, methods, endpoints, and relationships as they exist
|
|
23
|
+
3. Generate a FULL SpecVerse specification that represents the actual implementation
|
|
24
|
+
4. Include deployment configurations if present (database, API, infrastructure)
|
|
25
|
+
5. DO NOT minimize or omit anything - this is documentation of what EXISTS
|
|
26
|
+
|
|
27
|
+
capabilities:
|
|
28
|
+
- Analyze existing code implementations comprehensively
|
|
29
|
+
- Extract ALL models, entities, and data structures
|
|
30
|
+
- Document ALL controllers, endpoints, and API routes
|
|
31
|
+
- Capture ALL services, business logic, and methods
|
|
32
|
+
- Identify ALL views, UI components, and templates
|
|
33
|
+
- Extract deployment configurations and infrastructure
|
|
34
|
+
- Generate complete, accurate specifications from existing code
|
|
35
|
+
|
|
36
|
+
constraints:
|
|
37
|
+
- Include ALL business logic found in implementation
|
|
38
|
+
- Do NOT add speculative features not present in code
|
|
39
|
+
- EXTRACT ALL models, controllers, services, events, views as they exist
|
|
40
|
+
- CAPTURE business logic as behaviors, actions, operations with parameters and steps
|
|
41
|
+
- Generate COMPLETE specifications reflecting actual implementation
|
|
42
|
+
- Use convention syntax for all attributes
|
|
43
|
+
- Focus on comprehensive documentation of what exists
|
|
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 analyze the existing implementation and extract a COMPLETE SpecVerse specification:
|
|
51
|
+
|
|
52
|
+
Requirements:
|
|
53
|
+
{{requirements}}
|
|
54
|
+
|
|
55
|
+
Implementation Path: {{implementationPath}}
|
|
56
|
+
|
|
57
|
+
Guidelines:
|
|
58
|
+
1. First attempt to examine the existing code/implementation at the specified path
|
|
59
|
+
2. If implementation is not accessible, generate a representative specification based on the requirements
|
|
60
|
+
3. Identify core business entities and their data structures
|
|
61
|
+
4. Extract essential attributes that are actually used (or would typically be used)
|
|
62
|
+
5. Determine relationships between entities from the code (or typical business patterns)
|
|
63
|
+
6. Use SpecVerse convention syntax: attributeName: TypeName modifiers
|
|
64
|
+
7. Include appropriate deployment based on implementation complexity
|
|
65
|
+
|
|
66
|
+
Analysis Focus:
|
|
67
|
+
- Look for data models, database schemas, API structures
|
|
68
|
+
- Identify business workflows and state changes
|
|
69
|
+
- Extract validation rules and constraints from code
|
|
70
|
+
- Capture business logic as behaviors with parameters, steps, and return values
|
|
71
|
+
- Document controller actions, service operations, and event handlers
|
|
72
|
+
- Map relationships between entities
|
|
73
|
+
- Determine scale from implementation complexity
|
|
74
|
+
|
|
75
|
+
Convention Patterns:
|
|
76
|
+
- Basic attributes: name: String required, email: Email required unique
|
|
77
|
+
- Auto-generated: id: UUID auto=uuid4, createdAt: DateTime auto=now
|
|
78
|
+
- Constraints: age: Integer min=0 max=150, price: Number required min=0
|
|
79
|
+
- Arrays (use object syntax): amenities: { name: amenities, type: String[] }
|
|
80
|
+
- Relationships: user: belongsTo User, posts: hasMany Post cascade (no 'optional' modifier)
|
|
81
|
+
- Lifecycles: status: { flow: "draft -> published -> archived" }
|
|
82
|
+
|
|
83
|
+
IMPORTANT: Arrays require object syntax, not convention syntax:
|
|
84
|
+
✅ CORRECT: amenities: { name: amenities, type: String[] }
|
|
85
|
+
❌ WRONG: amenities: String[] optional
|
|
86
|
+
|
|
87
|
+
Primitive Types: String, Number, Integer, Boolean, UUID, DateTime, Date, Email
|
|
88
|
+
|
|
89
|
+
Extract a COMPLETE component specification that captures ALL the business logic, models, controllers, services, events, views, and behaviors found in the implementation.
|
|
90
|
+
Use the Write tool to create the specification as a file named "spec.specly".
|
|
91
|
+
|
|
92
|
+
variables:
|
|
93
|
+
- name: requirements
|
|
94
|
+
type: string
|
|
95
|
+
required: true
|
|
96
|
+
description: Analysis requirements and focus areas
|
|
97
|
+
|
|
98
|
+
- name: implementationPath
|
|
99
|
+
type: string
|
|
100
|
+
required: false
|
|
101
|
+
default: "."
|
|
102
|
+
description: Path to the implementation to analyze
|
|
103
|
+
|
|
104
|
+
context:
|
|
105
|
+
priority: "ANALYZE IMPLEMENTATION AND GENERATE COMPLETE SPECIFICATION"
|
|
106
|
+
max_tokens: 2000
|
|
107
|
+
temperature: 0.5
|
|
108
|
+
top_p: 0.9
|
|
109
|
+
|
|
110
|
+
validation:
|
|
111
|
+
input:
|
|
112
|
+
- rule: Requirements must be provided
|
|
113
|
+
required: true
|
|
114
|
+
- rule: Requirements should describe what to extract
|
|
115
|
+
required: false
|
|
116
|
+
|
|
117
|
+
output:
|
|
118
|
+
- rule: Must generate valid SpecVerse v3.2.0 specification
|
|
119
|
+
format: yaml
|
|
120
|
+
schema: schema/SPECVERSE-SCHEMA.json
|
|
121
|
+
- rule: Must include at least one model
|
|
122
|
+
format: yaml
|
|
123
|
+
- rule: Should be minimal (typically under 100 lines)
|
|
124
|
+
format: yaml
|
|
125
|
+
- rule: Must use convention syntax for attributes
|
|
126
|
+
format: yaml
|
|
127
|
+
- rule: Should reflect actual implementation complexity
|
|
128
|
+
format: yaml
|
|
129
|
+
|
|
130
|
+
metadata:
|
|
131
|
+
created: "2025-09-21T00:00:00Z"
|
|
132
|
+
updated: "2025-09-21T00:00:00Z"
|
|
133
|
+
improvements_from_v6:
|
|
134
|
+
- "Schema content included directly in system prompt"
|
|
135
|
+
- "Removed file reading instructions to prevent turn waste"
|
|
136
|
+
- "Removed conflicting 'DO NOT READ ADDITIONAL FILES' instruction"
|
|
137
|
+
- "More direct analysis approach"
|
|
138
|
+
- "Reduced overhead for implementation analysis"
|
|
139
|
+
tested_with:
|
|
140
|
+
- provider: anthropic
|
|
141
|
+
model: claude-3-sonnet
|
|
142
|
+
success_rate: pending
|
|
143
|
+
performance:
|
|
144
|
+
avg_response_time: pending
|
|
145
|
+
avg_tokens_used: pending
|
|
146
|
+
turn_reduction_vs_v6: "Expected 80%+ reduction"
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
name: analyse
|
|
2
|
+
version: "7.0.0"
|
|
3
|
+
description: Extract SpecVerse specifications from existing code implementations (direct analysis)
|
|
4
|
+
author: SpecVerse Team
|
|
5
|
+
tags: [analysis, reverse-engineering, implementation, v7, direct-generation]
|
|
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.2.0. 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: Arrays require object syntax, not convention syntax:
|
|
67
|
+
✅ CORRECT: amenities: { name: amenities, type: String[] }
|
|
68
|
+
❌ WRONG: amenities: String[] optional
|
|
69
|
+
|
|
70
|
+
Primitive Types: String, Number, Integer, Boolean, UUID, DateTime, Date, Email
|
|
71
|
+
|
|
72
|
+
Extract the complete specification with components, deployments, and manifests sections.
|
|
73
|
+
Use the Write tool to create the specification as a file named "spec.specly".
|
|
74
|
+
|
|
75
|
+
variables:
|
|
76
|
+
- name: requirements
|
|
77
|
+
type: string
|
|
78
|
+
required: true
|
|
79
|
+
description: Analysis requirements and focus areas
|
|
80
|
+
|
|
81
|
+
- name: implementationPath
|
|
82
|
+
type: string
|
|
83
|
+
required: false
|
|
84
|
+
default: "."
|
|
85
|
+
description: Path to the implementation to analyze
|
|
86
|
+
|
|
87
|
+
context:
|
|
88
|
+
priority: "ANALYZE IMPLEMENTATION AND GENERATE COMPLETE SPECIFICATION"
|
|
89
|
+
max_tokens: 2000
|
|
90
|
+
temperature: 0.5
|
|
91
|
+
top_p: 0.9
|
|
92
|
+
|
|
93
|
+
validation:
|
|
94
|
+
input:
|
|
95
|
+
- rule: Requirements must be provided
|
|
96
|
+
required: true
|
|
97
|
+
- rule: Requirements should describe what to extract
|
|
98
|
+
required: false
|
|
99
|
+
|
|
100
|
+
output:
|
|
101
|
+
- rule: Must generate valid SpecVerse v3.2.0 specification
|
|
102
|
+
format: yaml
|
|
103
|
+
schema: schema/SPECVERSE-SCHEMA.json
|
|
104
|
+
- rule: Must include at least one model
|
|
105
|
+
format: yaml
|
|
106
|
+
- rule: Should be minimal (typically under 100 lines)
|
|
107
|
+
format: yaml
|
|
108
|
+
- rule: Must use convention syntax for attributes
|
|
109
|
+
format: yaml
|
|
110
|
+
- rule: Should reflect actual implementation complexity
|
|
111
|
+
format: yaml
|
|
112
|
+
|
|
113
|
+
metadata:
|
|
114
|
+
created: "2025-09-21T00:00:00Z"
|
|
115
|
+
updated: "2025-09-21T00:00:00Z"
|
|
116
|
+
improvements_from_v6:
|
|
117
|
+
- "Schema content included directly in system prompt"
|
|
118
|
+
- "Removed file reading instructions to prevent turn waste"
|
|
119
|
+
- "Removed conflicting 'DO NOT READ ADDITIONAL FILES' instruction"
|
|
120
|
+
- "More direct analysis approach"
|
|
121
|
+
- "Reduced overhead for implementation analysis"
|
|
122
|
+
tested_with:
|
|
123
|
+
- provider: anthropic
|
|
124
|
+
model: claude-3-sonnet
|
|
125
|
+
success_rate: pending
|
|
126
|
+
performance:
|
|
127
|
+
avg_response_time: pending
|
|
128
|
+
avg_tokens_used: pending
|
|
129
|
+
turn_reduction_vs_v6: "Expected 80%+ reduction"
|