mcp-adr-analysis-server 2.1.9 → 2.1.19
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/README.md +55 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/src/index.d.ts +78 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1793 -577
- package/dist/src/index.js.map +1 -1
- package/dist/src/prompts/index.d.ts.map +1 -1
- package/dist/src/prompts/index.js +23 -6
- package/dist/src/prompts/index.js.map +1 -1
- package/dist/src/prompts/validated-pattern-prompts.d.ts +33 -0
- package/dist/src/prompts/validated-pattern-prompts.d.ts.map +1 -0
- package/dist/src/prompts/validated-pattern-prompts.js +337 -0
- package/dist/src/prompts/validated-pattern-prompts.js.map +1 -0
- package/dist/src/resources/adr-by-id-resource.d.ts +116 -0
- package/dist/src/resources/adr-by-id-resource.d.ts.map +1 -0
- package/dist/src/resources/adr-by-id-resource.js +213 -0
- package/dist/src/resources/adr-by-id-resource.js.map +1 -0
- package/dist/src/resources/code-quality-resource.d.ts +105 -0
- package/dist/src/resources/code-quality-resource.d.ts.map +1 -0
- package/dist/src/resources/code-quality-resource.js +282 -0
- package/dist/src/resources/code-quality-resource.js.map +1 -0
- package/dist/src/resources/deployment-history-resource.d.ts +214 -0
- package/dist/src/resources/deployment-history-resource.d.ts.map +1 -0
- package/dist/src/resources/deployment-history-resource.js +308 -0
- package/dist/src/resources/deployment-history-resource.js.map +1 -0
- package/dist/src/resources/deployment-status-resource.d.ts +256 -0
- package/dist/src/resources/deployment-status-resource.d.ts.map +1 -0
- package/dist/src/resources/deployment-status-resource.js +665 -0
- package/dist/src/resources/deployment-status-resource.js.map +1 -0
- package/dist/src/resources/environment-analysis-resource.d.ts +237 -0
- package/dist/src/resources/environment-analysis-resource.d.ts.map +1 -0
- package/dist/src/resources/environment-analysis-resource.js +646 -0
- package/dist/src/resources/environment-analysis-resource.js.map +1 -0
- package/dist/src/resources/index.d.ts +6 -2
- package/dist/src/resources/index.d.ts.map +1 -1
- package/dist/src/resources/index.js +247 -492
- package/dist/src/resources/index.js.map +1 -1
- package/dist/src/resources/memory-snapshots-resource.d.ts +180 -0
- package/dist/src/resources/memory-snapshots-resource.d.ts.map +1 -0
- package/dist/src/resources/memory-snapshots-resource.js +847 -0
- package/dist/src/resources/memory-snapshots-resource.js.map +1 -0
- package/dist/src/resources/pattern-base-code-by-platform-resource.d.ts +35 -0
- package/dist/src/resources/pattern-base-code-by-platform-resource.d.ts.map +1 -0
- package/dist/src/resources/pattern-base-code-by-platform-resource.js +72 -0
- package/dist/src/resources/pattern-base-code-by-platform-resource.js.map +1 -0
- package/dist/src/resources/pattern-by-name-resource.d.ts +53 -0
- package/dist/src/resources/pattern-by-name-resource.d.ts.map +1 -0
- package/dist/src/resources/pattern-by-name-resource.js +200 -0
- package/dist/src/resources/pattern-by-name-resource.js.map +1 -0
- package/dist/src/resources/pattern-sources-by-platform-resource.d.ts +26 -0
- package/dist/src/resources/pattern-sources-by-platform-resource.d.ts.map +1 -0
- package/dist/src/resources/pattern-sources-by-platform-resource.js +59 -0
- package/dist/src/resources/pattern-sources-by-platform-resource.js.map +1 -0
- package/dist/src/resources/project-metrics-resource.d.ts +180 -0
- package/dist/src/resources/project-metrics-resource.d.ts.map +1 -0
- package/dist/src/resources/project-metrics-resource.js +487 -0
- package/dist/src/resources/project-metrics-resource.js.map +1 -0
- package/dist/src/resources/project-status-resource.d.ts +75 -0
- package/dist/src/resources/project-status-resource.d.ts.map +1 -0
- package/dist/src/resources/project-status-resource.js +189 -0
- package/dist/src/resources/project-status-resource.js.map +1 -0
- package/dist/src/resources/research-by-topic-resource.d.ts +21 -0
- package/dist/src/resources/research-by-topic-resource.d.ts.map +1 -0
- package/dist/src/resources/research-by-topic-resource.js +125 -0
- package/dist/src/resources/research-by-topic-resource.js.map +1 -0
- package/dist/src/resources/research-index-resource.d.ts +100 -0
- package/dist/src/resources/research-index-resource.d.ts.map +1 -0
- package/dist/src/resources/research-index-resource.js +200 -0
- package/dist/src/resources/research-index-resource.js.map +1 -0
- package/dist/src/resources/resource-cache.d.ts +144 -0
- package/dist/src/resources/resource-cache.d.ts.map +1 -0
- package/dist/src/resources/resource-cache.js +316 -0
- package/dist/src/resources/resource-cache.js.map +1 -0
- package/dist/src/resources/resource-router.d.ts +45 -0
- package/dist/src/resources/resource-router.d.ts.map +1 -0
- package/dist/src/resources/resource-router.js +96 -0
- package/dist/src/resources/resource-router.js.map +1 -0
- package/dist/src/resources/rule-by-id-resource.d.ts +38 -0
- package/dist/src/resources/rule-by-id-resource.d.ts.map +1 -0
- package/dist/src/resources/rule-by-id-resource.js +104 -0
- package/dist/src/resources/rule-by-id-resource.js.map +1 -0
- package/dist/src/resources/rule-catalog-resource.d.ts +126 -0
- package/dist/src/resources/rule-catalog-resource.d.ts.map +1 -0
- package/dist/src/resources/rule-catalog-resource.js +224 -0
- package/dist/src/resources/rule-catalog-resource.js.map +1 -0
- package/dist/src/resources/rule-generation-resource.d.ts +80 -0
- package/dist/src/resources/rule-generation-resource.d.ts.map +1 -0
- package/dist/src/resources/rule-generation-resource.js +282 -0
- package/dist/src/resources/rule-generation-resource.js.map +1 -0
- package/dist/src/resources/technology-by-name-resource.d.ts +43 -0
- package/dist/src/resources/technology-by-name-resource.d.ts.map +1 -0
- package/dist/src/resources/technology-by-name-resource.js +176 -0
- package/dist/src/resources/technology-by-name-resource.js.map +1 -0
- package/dist/src/resources/todo-by-id-resource.d.ts +46 -0
- package/dist/src/resources/todo-by-id-resource.d.ts.map +1 -0
- package/dist/src/resources/todo-by-id-resource.js +192 -0
- package/dist/src/resources/todo-by-id-resource.js.map +1 -0
- package/dist/src/resources/todo-list-resource.d.ts +96 -0
- package/dist/src/resources/todo-list-resource.d.ts.map +1 -0
- package/dist/src/resources/todo-list-resource.js +209 -0
- package/dist/src/resources/todo-list-resource.js.map +1 -0
- package/dist/src/resources/validated-pattern-by-platform-resource.d.ts +14 -0
- package/dist/src/resources/validated-pattern-by-platform-resource.d.ts.map +1 -0
- package/dist/src/resources/validated-pattern-by-platform-resource.js +45 -0
- package/dist/src/resources/validated-pattern-by-platform-resource.js.map +1 -0
- package/dist/src/resources/validated-patterns-catalog-resource.d.ts +36 -0
- package/dist/src/resources/validated-patterns-catalog-resource.d.ts.map +1 -0
- package/dist/src/resources/validated-patterns-catalog-resource.js +57 -0
- package/dist/src/resources/validated-patterns-catalog-resource.js.map +1 -0
- package/dist/src/templates/domain-knowledge-templates.d.ts.map +1 -1
- package/dist/src/templates/domain-knowledge-templates.js +49 -49
- package/dist/src/templates/domain-knowledge-templates.js.map +1 -1
- package/dist/src/tools/adr-bootstrap-validation-tool.d.ts.map +1 -1
- package/dist/src/tools/adr-bootstrap-validation-tool.js +214 -4
- package/dist/src/tools/adr-bootstrap-validation-tool.js.map +1 -1
- package/dist/src/tools/adr-suggestion-tool.d.ts +2 -2
- package/dist/src/tools/adr-suggestion-tool.d.ts.map +1 -1
- package/dist/src/tools/adr-suggestion-tool.js +129 -12
- package/dist/src/tools/adr-suggestion-tool.js.map +1 -1
- package/dist/src/tools/adr-validation-tool.d.ts +98 -0
- package/dist/src/tools/adr-validation-tool.d.ts.map +1 -0
- package/dist/src/tools/adr-validation-tool.js +372 -0
- package/dist/src/tools/adr-validation-tool.js.map +1 -0
- package/dist/src/tools/bootstrap-validation-loop-tool.d.ts +262 -0
- package/dist/src/tools/bootstrap-validation-loop-tool.d.ts.map +1 -0
- package/dist/src/tools/bootstrap-validation-loop-tool.js +1934 -0
- package/dist/src/tools/bootstrap-validation-loop-tool.js.map +1 -0
- package/dist/src/tools/conversation-memory-tool.d.ts +48 -0
- package/dist/src/tools/conversation-memory-tool.d.ts.map +1 -0
- package/dist/src/tools/conversation-memory-tool.js +254 -0
- package/dist/src/tools/conversation-memory-tool.js.map +1 -0
- package/dist/src/tools/deployment-analysis-tool.d.ts.map +1 -1
- package/dist/src/tools/deployment-analysis-tool.js +82 -6
- package/dist/src/tools/deployment-analysis-tool.js.map +1 -1
- package/dist/src/tools/deployment-guidance-tool.d.ts.map +1 -1
- package/dist/src/tools/deployment-guidance-tool.js +126 -25
- package/dist/src/tools/deployment-guidance-tool.js.map +1 -1
- package/dist/src/tools/deployment-readiness-tool.d.ts.map +1 -1
- package/dist/src/tools/deployment-readiness-tool.js +166 -5
- package/dist/src/tools/deployment-readiness-tool.js.map +1 -1
- package/dist/src/tools/environment-analysis-tool.d.ts.map +1 -1
- package/dist/src/tools/environment-analysis-tool.js +36 -1
- package/dist/src/tools/environment-analysis-tool.js.map +1 -1
- package/dist/src/tools/expand-analysis-tool.d.ts +23 -0
- package/dist/src/tools/expand-analysis-tool.d.ts.map +1 -0
- package/dist/src/tools/expand-analysis-tool.js +107 -0
- package/dist/src/tools/expand-analysis-tool.js.map +1 -0
- package/dist/src/tools/get-server-context-tool.d.ts +67 -0
- package/dist/src/tools/get-server-context-tool.d.ts.map +1 -0
- package/dist/src/tools/get-server-context-tool.js +75 -0
- package/dist/src/tools/get-server-context-tool.js.map +1 -0
- package/dist/src/tools/interactive-adr-planning-tool.d.ts.map +1 -1
- package/dist/src/tools/interactive-adr-planning-tool.js +82 -9
- package/dist/src/tools/interactive-adr-planning-tool.js.map +1 -1
- package/dist/src/tools/llm-cloud-management-tool.d.ts +62 -0
- package/dist/src/tools/llm-cloud-management-tool.d.ts.map +1 -0
- package/dist/src/tools/llm-cloud-management-tool.js +202 -0
- package/dist/src/tools/llm-cloud-management-tool.js.map +1 -0
- package/dist/src/tools/llm-database-management-tool.d.ts +62 -0
- package/dist/src/tools/llm-database-management-tool.d.ts.map +1 -0
- package/dist/src/tools/llm-database-management-tool.js +203 -0
- package/dist/src/tools/llm-database-management-tool.js.map +1 -0
- package/dist/src/tools/llm-web-search-tool.d.ts +59 -0
- package/dist/src/tools/llm-web-search-tool.d.ts.map +1 -0
- package/dist/src/tools/llm-web-search-tool.js +165 -0
- package/dist/src/tools/llm-web-search-tool.js.map +1 -0
- package/dist/src/tools/mcp-planning-tool.d.ts.map +1 -1
- package/dist/src/tools/mcp-planning-tool.js +10 -3
- package/dist/src/tools/mcp-planning-tool.js.map +1 -1
- package/dist/src/tools/memory-loading-tool.d.ts.map +1 -1
- package/dist/src/tools/memory-loading-tool.js +4 -2
- package/dist/src/tools/memory-loading-tool.js.map +1 -1
- package/dist/src/tools/perform-research-tool.d.ts +61 -0
- package/dist/src/tools/perform-research-tool.d.ts.map +1 -0
- package/dist/src/tools/perform-research-tool.js +324 -0
- package/dist/src/tools/perform-research-tool.js.map +1 -0
- package/dist/src/tools/research-question-tool.d.ts.map +1 -1
- package/dist/src/tools/research-question-tool.js +11 -9
- package/dist/src/tools/research-question-tool.js.map +1 -1
- package/dist/src/tools/review-existing-adrs-tool.d.ts.map +1 -1
- package/dist/src/tools/review-existing-adrs-tool.js +42 -3
- package/dist/src/tools/review-existing-adrs-tool.js.map +1 -1
- package/dist/src/tools/tool-chain-orchestrator.d.ts +15 -94
- package/dist/src/tools/tool-chain-orchestrator.d.ts.map +1 -1
- package/dist/src/tools/tool-chain-orchestrator.js +2 -2
- package/dist/src/tools/tool-chain-orchestrator.js.map +1 -1
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts +25 -120
- package/dist/src/tools/troubleshoot-guided-workflow-tool.d.ts.map +1 -1
- package/dist/src/tools/troubleshoot-guided-workflow-tool.js +91 -2
- package/dist/src/tools/troubleshoot-guided-workflow-tool.js.map +1 -1
- package/dist/src/types/ape-framework.d.ts +50 -283
- package/dist/src/types/ape-framework.d.ts.map +1 -1
- package/dist/src/types/conversation-context.d.ts.map +1 -1
- package/dist/src/types/conversation-context.js +12 -12
- package/dist/src/types/conversation-context.js.map +1 -1
- package/dist/src/types/conversation-memory.d.ts +184 -0
- package/dist/src/types/conversation-memory.d.ts.map +1 -0
- package/dist/src/types/conversation-memory.js +8 -0
- package/dist/src/types/conversation-memory.js.map +1 -0
- package/dist/src/types/index.d.ts +112 -339
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/knowledge-generation.d.ts +96 -401
- package/dist/src/types/knowledge-generation.d.ts.map +1 -1
- package/dist/src/types/knowledge-graph-schemas.d.ts +77 -715
- package/dist/src/types/knowledge-graph-schemas.d.ts.map +1 -1
- package/dist/src/types/knowledge-graph-schemas.js +8 -8
- package/dist/src/types/knowledge-graph-schemas.js.map +1 -1
- package/dist/src/types/memory-entities.d.ts +1230 -6164
- package/dist/src/types/memory-entities.d.ts.map +1 -1
- package/dist/src/types/memory-entities.js +8 -8
- package/dist/src/types/memory-entities.js.map +1 -1
- package/dist/src/types/reflexion-framework.d.ts +35 -264
- package/dist/src/types/reflexion-framework.d.ts.map +1 -1
- package/dist/src/types/reflexion-framework.js +1 -1
- package/dist/src/types/reflexion-framework.js.map +1 -1
- package/dist/src/types/state-reinforcement.d.ts +87 -0
- package/dist/src/types/state-reinforcement.d.ts.map +1 -0
- package/dist/src/types/state-reinforcement.js +5 -0
- package/dist/src/types/state-reinforcement.js.map +1 -0
- package/dist/src/types/tiered-response.d.ts +61 -0
- package/dist/src/types/tiered-response.d.ts.map +1 -0
- package/dist/src/types/tiered-response.js +8 -0
- package/dist/src/types/tiered-response.js.map +1 -0
- package/dist/src/types/tool-context.d.ts +50 -0
- package/dist/src/types/tool-context.d.ts.map +1 -0
- package/dist/src/types/tool-context.js +20 -0
- package/dist/src/types/tool-context.js.map +1 -0
- package/dist/src/utils/adr-action-analyzer.d.ts +23 -0
- package/dist/src/utils/adr-action-analyzer.d.ts.map +1 -0
- package/dist/src/utils/adr-action-analyzer.js +323 -0
- package/dist/src/utils/adr-action-analyzer.js.map +1 -0
- package/dist/src/utils/adr-context-detector.d.ts +33 -0
- package/dist/src/utils/adr-context-detector.d.ts.map +1 -0
- package/dist/src/utils/adr-context-detector.js +279 -0
- package/dist/src/utils/adr-context-detector.js.map +1 -0
- package/dist/src/utils/adr-discovery.d.ts +28 -2
- package/dist/src/utils/adr-discovery.d.ts.map +1 -1
- package/dist/src/utils/adr-discovery.js +91 -7
- package/dist/src/utils/adr-discovery.js.map +1 -1
- package/dist/src/utils/adr-knowledge-initializer.d.ts +54 -0
- package/dist/src/utils/adr-knowledge-initializer.d.ts.map +1 -0
- package/dist/src/utils/adr-knowledge-initializer.js +240 -0
- package/dist/src/utils/adr-knowledge-initializer.js.map +1 -0
- package/dist/src/utils/adr-timeline-extractor.d.ts +21 -0
- package/dist/src/utils/adr-timeline-extractor.d.ts.map +1 -0
- package/dist/src/utils/adr-timeline-extractor.js +294 -0
- package/dist/src/utils/adr-timeline-extractor.js.map +1 -0
- package/dist/src/utils/adr-timeline-types.d.ts +234 -0
- package/dist/src/utils/adr-timeline-types.d.ts.map +1 -0
- package/dist/src/utils/adr-timeline-types.js +7 -0
- package/dist/src/utils/adr-timeline-types.js.map +1 -0
- package/dist/src/utils/ai-executor.d.ts +36 -0
- package/dist/src/utils/ai-executor.d.ts.map +1 -1
- package/dist/src/utils/ai-executor.js +39 -3
- package/dist/src/utils/ai-executor.js.map +1 -1
- package/dist/src/utils/apply-cot-enhancement.d.ts.map +1 -1
- package/dist/src/utils/apply-cot-enhancement.js +15 -15
- package/dist/src/utils/apply-cot-enhancement.js.map +1 -1
- package/dist/src/utils/automatic-prompt-engineering.d.ts.map +1 -1
- package/dist/src/utils/automatic-prompt-engineering.js +68 -58
- package/dist/src/utils/automatic-prompt-engineering.js.map +1 -1
- package/dist/src/utils/conditional-request.d.ts +105 -0
- package/dist/src/utils/conditional-request.d.ts.map +1 -0
- package/dist/src/utils/conditional-request.js +186 -0
- package/dist/src/utils/conditional-request.js.map +1 -0
- package/dist/src/utils/config.d.ts +72 -18
- package/dist/src/utils/config.d.ts.map +1 -1
- package/dist/src/utils/config.js +75 -0
- package/dist/src/utils/config.js.map +1 -1
- package/dist/src/utils/context-document-manager.d.ts +112 -0
- package/dist/src/utils/context-document-manager.d.ts.map +1 -0
- package/dist/src/utils/context-document-manager.js +351 -0
- package/dist/src/utils/context-document-manager.js.map +1 -0
- package/dist/src/utils/conversation-memory-manager.d.ts +86 -0
- package/dist/src/utils/conversation-memory-manager.d.ts.map +1 -0
- package/dist/src/utils/conversation-memory-manager.js +443 -0
- package/dist/src/utils/conversation-memory-manager.js.map +1 -0
- package/dist/src/utils/dag-executor.d.ts +106 -0
- package/dist/src/utils/dag-executor.d.ts.map +1 -0
- package/dist/src/utils/dag-executor.js +420 -0
- package/dist/src/utils/dag-executor.js.map +1 -0
- package/dist/src/utils/deployment-analysis.d.ts.map +1 -1
- package/dist/src/utils/deployment-analysis.js +17 -9
- package/dist/src/utils/deployment-analysis.js.map +1 -1
- package/dist/src/utils/deployment-type-registry.d.ts +52 -0
- package/dist/src/utils/deployment-type-registry.d.ts.map +1 -0
- package/dist/src/utils/deployment-type-registry.js +543 -0
- package/dist/src/utils/deployment-type-registry.js.map +1 -0
- package/dist/src/utils/dynamic-deployment-intelligence.d.ts +117 -0
- package/dist/src/utils/dynamic-deployment-intelligence.d.ts.map +1 -0
- package/dist/src/utils/dynamic-deployment-intelligence.js +445 -0
- package/dist/src/utils/dynamic-deployment-intelligence.js.map +1 -0
- package/dist/src/utils/environment-analysis.d.ts.map +1 -1
- package/dist/src/utils/environment-analysis.js +63 -44
- package/dist/src/utils/environment-analysis.js.map +1 -1
- package/dist/src/utils/environment-capability-registry.d.ts +101 -0
- package/dist/src/utils/environment-capability-registry.d.ts.map +1 -0
- package/dist/src/utils/environment-capability-registry.js +489 -0
- package/dist/src/utils/environment-capability-registry.js.map +1 -0
- package/dist/src/utils/index.d.ts +3 -3
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.js.map +1 -1
- package/dist/src/utils/knowledge-generation.d.ts.map +1 -1
- package/dist/src/utils/knowledge-generation.js +61 -35
- package/dist/src/utils/knowledge-generation.js.map +1 -1
- package/dist/src/utils/knowledge-graph-manager.d.ts +19 -0
- package/dist/src/utils/knowledge-graph-manager.d.ts.map +1 -1
- package/dist/src/utils/knowledge-graph-manager.js +165 -1
- package/dist/src/utils/knowledge-graph-manager.js.map +1 -1
- package/dist/src/utils/llm-artifact-detector.d.ts.map +1 -1
- package/dist/src/utils/llm-artifact-detector.js +28 -24
- package/dist/src/utils/llm-artifact-detector.js.map +1 -1
- package/dist/src/utils/mermaid-diagrams.d.ts +101 -0
- package/dist/src/utils/mermaid-diagrams.d.ts.map +1 -0
- package/dist/src/utils/mermaid-diagrams.js +445 -0
- package/dist/src/utils/mermaid-diagrams.js.map +1 -0
- package/dist/src/utils/monitoring.d.ts +249 -0
- package/dist/src/utils/monitoring.d.ts.map +1 -0
- package/dist/src/utils/monitoring.js +513 -0
- package/dist/src/utils/monitoring.js.map +1 -0
- package/dist/src/utils/pattern-contribution-helper.d.ts +60 -0
- package/dist/src/utils/pattern-contribution-helper.d.ts.map +1 -0
- package/dist/src/utils/pattern-contribution-helper.js +308 -0
- package/dist/src/utils/pattern-contribution-helper.js.map +1 -0
- package/dist/src/utils/pattern-loader.d.ts +183 -0
- package/dist/src/utils/pattern-loader.d.ts.map +1 -0
- package/dist/src/utils/pattern-loader.js +200 -0
- package/dist/src/utils/pattern-loader.js.map +1 -0
- package/dist/src/utils/pattern-research-utility.d.ts +107 -0
- package/dist/src/utils/pattern-research-utility.d.ts.map +1 -0
- package/dist/src/utils/pattern-research-utility.js +360 -0
- package/dist/src/utils/pattern-research-utility.js.map +1 -0
- package/dist/src/utils/pattern-to-dag-converter.d.ts +62 -0
- package/dist/src/utils/pattern-to-dag-converter.d.ts.map +1 -0
- package/dist/src/utils/pattern-to-dag-converter.js +265 -0
- package/dist/src/utils/pattern-to-dag-converter.js.map +1 -0
- package/dist/src/utils/platform-detector.d.ts +86 -0
- package/dist/src/utils/platform-detector.d.ts.map +1 -0
- package/dist/src/utils/platform-detector.js +509 -0
- package/dist/src/utils/platform-detector.js.map +1 -0
- package/dist/src/utils/prompt-composition.d.ts.map +1 -1
- package/dist/src/utils/prompt-composition.js +1 -4
- package/dist/src/utils/prompt-composition.js.map +1 -1
- package/dist/src/utils/reflexion.d.ts.map +1 -1
- package/dist/src/utils/reflexion.js +51 -42
- package/dist/src/utils/reflexion.js.map +1 -1
- package/dist/src/utils/research-integration.d.ts.map +1 -1
- package/dist/src/utils/research-integration.js +8 -2
- package/dist/src/utils/research-integration.js.map +1 -1
- package/dist/src/utils/research-orchestrator.d.ts +209 -0
- package/dist/src/utils/research-orchestrator.d.ts.map +1 -0
- package/dist/src/utils/research-orchestrator.js +863 -0
- package/dist/src/utils/research-orchestrator.js.map +1 -0
- package/dist/src/utils/research-questions.d.ts.map +1 -1
- package/dist/src/utils/research-questions.js +4 -1
- package/dist/src/utils/research-questions.js.map +1 -1
- package/dist/src/utils/resource-extractor.d.ts +57 -0
- package/dist/src/utils/resource-extractor.d.ts.map +1 -0
- package/dist/src/utils/resource-extractor.js +323 -0
- package/dist/src/utils/resource-extractor.js.map +1 -0
- package/dist/src/utils/resource-versioning.d.ts +124 -0
- package/dist/src/utils/resource-versioning.d.ts.map +1 -0
- package/dist/src/utils/resource-versioning.js +272 -0
- package/dist/src/utils/resource-versioning.js.map +1 -0
- package/dist/src/utils/root-manager.d.ts +118 -0
- package/dist/src/utils/root-manager.d.ts.map +1 -0
- package/dist/src/utils/root-manager.js +154 -0
- package/dist/src/utils/root-manager.js.map +1 -0
- package/dist/src/utils/rule-generation.d.ts.map +1 -1
- package/dist/src/utils/rule-generation.js +4 -1
- package/dist/src/utils/rule-generation.js.map +1 -1
- package/dist/src/utils/server-context-generator.d.ts +47 -0
- package/dist/src/utils/server-context-generator.d.ts.map +1 -0
- package/dist/src/utils/server-context-generator.js +666 -0
- package/dist/src/utils/server-context-generator.js.map +1 -0
- package/dist/src/utils/state-reinforcement-manager.d.ts +60 -0
- package/dist/src/utils/state-reinforcement-manager.d.ts.map +1 -0
- package/dist/src/utils/state-reinforcement-manager.js +200 -0
- package/dist/src/utils/state-reinforcement-manager.js.map +1 -0
- package/dist/src/utils/system-card-manager.d.ts +194 -0
- package/dist/src/utils/system-card-manager.d.ts.map +1 -0
- package/dist/src/utils/system-card-manager.js +336 -0
- package/dist/src/utils/system-card-manager.js.map +1 -0
- package/dist/src/utils/tiered-response-manager.d.ts +40 -0
- package/dist/src/utils/tiered-response-manager.d.ts.map +1 -0
- package/dist/src/utils/tiered-response-manager.js +243 -0
- package/dist/src/utils/tiered-response-manager.js.map +1 -0
- package/dist/src/utils/tree-sitter-analyzer.d.ts.map +1 -1
- package/dist/src/utils/tree-sitter-analyzer.js +83 -11
- package/dist/src/utils/tree-sitter-analyzer.js.map +1 -1
- package/dist/src/utils/validated-pattern-definitions.d.ts +219 -0
- package/dist/src/utils/validated-pattern-definitions.d.ts.map +1 -0
- package/dist/src/utils/validated-pattern-definitions.js +1511 -0
- package/dist/src/utils/validated-pattern-definitions.js.map +1 -0
- package/package.json +21 -12
- package/dist/src/prompts/todo-prompts.d.ts +0 -49
- package/dist/src/prompts/todo-prompts.d.ts.map +0 -1
- package/dist/src/prompts/todo-prompts.js +0 -824
- package/dist/src/prompts/todo-prompts.js.map +0 -1
- package/dist/src/types/todo-json-schemas.d.ts +0 -17
- package/dist/src/types/todo-json-schemas.d.ts.map +0 -1
- package/dist/src/types/todo-json-schemas.js +0 -9
- package/dist/src/types/todo-json-schemas.js.map +0 -1
- package/dist/src/utils/todo-file-watcher.d.ts +0 -14
- package/dist/src/utils/todo-file-watcher.d.ts.map +0 -1
- package/dist/src/utils/todo-file-watcher.js +0 -25
- package/dist/src/utils/todo-file-watcher.js.map +0 -1
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deployment Type Registry
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive registry of deployment platforms with their specific
|
|
5
|
+
* file requirements, validation rules, and deployment patterns.
|
|
6
|
+
*
|
|
7
|
+
* Supports: OpenShift, Kubernetes, Firebase, Docker, MCP Servers,
|
|
8
|
+
* FastMCP, bare metal, and hybrid deployments.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Registry of all supported deployment types
|
|
12
|
+
*/
|
|
13
|
+
export const DEPLOYMENT_TYPES = [
|
|
14
|
+
// ===== MCP Server Deployments =====
|
|
15
|
+
{
|
|
16
|
+
id: 'mcp-nodejs',
|
|
17
|
+
name: 'Node.js MCP Server',
|
|
18
|
+
category: 'mcp',
|
|
19
|
+
detectionPatterns: {
|
|
20
|
+
files: ['package.json'],
|
|
21
|
+
dependencies: ['@modelcontextprotocol/sdk'],
|
|
22
|
+
},
|
|
23
|
+
requiredFiles: [
|
|
24
|
+
{
|
|
25
|
+
path: 'package.json',
|
|
26
|
+
required: true,
|
|
27
|
+
canAutoGenerate: false,
|
|
28
|
+
isSecret: false,
|
|
29
|
+
description: 'Node.js package configuration with MCP server entry point',
|
|
30
|
+
validationRules: [
|
|
31
|
+
'Must have "bin" field for CLI',
|
|
32
|
+
'Must include @modelcontextprotocol/sdk',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: 'src/index.ts',
|
|
37
|
+
required: true,
|
|
38
|
+
canAutoGenerate: true,
|
|
39
|
+
isSecret: false,
|
|
40
|
+
description: 'MCP server implementation',
|
|
41
|
+
templateContent: `import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
42
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
43
|
+
|
|
44
|
+
const server = new Server({
|
|
45
|
+
name: 'your-mcp-server',
|
|
46
|
+
version: '1.0.0',
|
|
47
|
+
}, {
|
|
48
|
+
capabilities: {
|
|
49
|
+
tools: {},
|
|
50
|
+
resources: {},
|
|
51
|
+
prompts: {}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Add your tools, resources, and prompts here
|
|
56
|
+
|
|
57
|
+
const transport = new StdioServerTransport();
|
|
58
|
+
await server.connect(transport);`,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: 'tsconfig.json',
|
|
62
|
+
required: true,
|
|
63
|
+
canAutoGenerate: true,
|
|
64
|
+
isSecret: false,
|
|
65
|
+
description: 'TypeScript configuration for ES modules',
|
|
66
|
+
templateContent: `{
|
|
67
|
+
"compilerOptions": {
|
|
68
|
+
"target": "ES2022",
|
|
69
|
+
"module": "Node16",
|
|
70
|
+
"moduleResolution": "Node16",
|
|
71
|
+
"outDir": "dist",
|
|
72
|
+
"rootDir": "src",
|
|
73
|
+
"strict": true,
|
|
74
|
+
"esModuleInterop": true,
|
|
75
|
+
"skipLibCheck": true,
|
|
76
|
+
"declaration": true
|
|
77
|
+
},
|
|
78
|
+
"include": ["src/**/*"],
|
|
79
|
+
"exclude": ["node_modules", "dist"]
|
|
80
|
+
}`,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
optionalFiles: [
|
|
84
|
+
{
|
|
85
|
+
path: '.env',
|
|
86
|
+
required: false,
|
|
87
|
+
canAutoGenerate: true,
|
|
88
|
+
isSecret: true,
|
|
89
|
+
description: 'Environment variables (API keys, secrets)',
|
|
90
|
+
templateContent: `# API Keys (DO NOT COMMIT)
|
|
91
|
+
OPENROUTER_API_KEY=your_key_here
|
|
92
|
+
# Add other environment variables below`,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
path: 'examples/claude_desktop_config.json',
|
|
96
|
+
required: false,
|
|
97
|
+
canAutoGenerate: true,
|
|
98
|
+
isSecret: false,
|
|
99
|
+
description: 'Example Claude Desktop configuration',
|
|
100
|
+
templateContent: `{
|
|
101
|
+
"mcpServers": {
|
|
102
|
+
"your-server-name": {
|
|
103
|
+
"command": "node",
|
|
104
|
+
"args": ["dist/index.js"],
|
|
105
|
+
"env": {
|
|
106
|
+
"API_KEY": "your_key_here"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}`,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
path: 'README.md',
|
|
114
|
+
required: false,
|
|
115
|
+
canAutoGenerate: true,
|
|
116
|
+
isSecret: false,
|
|
117
|
+
description: 'Installation and usage documentation',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
environmentVariables: [
|
|
121
|
+
{
|
|
122
|
+
name: 'NODE_ENV',
|
|
123
|
+
required: false,
|
|
124
|
+
description: 'Node environment (development/production)',
|
|
125
|
+
isSecret: false,
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
validationCommands: ['npm run build', 'npx @modelcontextprotocol/inspector dist/index.js'],
|
|
129
|
+
deploymentCommands: ['npm publish'],
|
|
130
|
+
documentation: 'https://modelcontextprotocol.io/docs',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'fastmcp',
|
|
134
|
+
name: 'FastMCP Server (Python)',
|
|
135
|
+
category: 'mcp',
|
|
136
|
+
detectionPatterns: {
|
|
137
|
+
files: ['pyproject.toml', 'requirements.txt'],
|
|
138
|
+
dependencies: ['fastmcp'],
|
|
139
|
+
},
|
|
140
|
+
requiredFiles: [
|
|
141
|
+
{
|
|
142
|
+
path: 'server.py',
|
|
143
|
+
required: true,
|
|
144
|
+
canAutoGenerate: true,
|
|
145
|
+
isSecret: false,
|
|
146
|
+
description: 'FastMCP server implementation',
|
|
147
|
+
templateContent: `from fastmcp import FastMCP
|
|
148
|
+
|
|
149
|
+
mcp = FastMCP("Your Server Name")
|
|
150
|
+
|
|
151
|
+
@mcp.tool()
|
|
152
|
+
def example_tool(arg: str) -> str:
|
|
153
|
+
"""Example tool description"""
|
|
154
|
+
return f"Result: {arg}"
|
|
155
|
+
|
|
156
|
+
if __name__ == "__main__":
|
|
157
|
+
mcp.run()`,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
path: 'requirements.txt',
|
|
161
|
+
required: true,
|
|
162
|
+
canAutoGenerate: true,
|
|
163
|
+
isSecret: false,
|
|
164
|
+
description: 'Python dependencies',
|
|
165
|
+
templateContent: `fastmcp>=0.1.0
|
|
166
|
+
python-dotenv>=1.0.0`,
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
optionalFiles: [
|
|
170
|
+
{
|
|
171
|
+
path: '.env',
|
|
172
|
+
required: false,
|
|
173
|
+
canAutoGenerate: true,
|
|
174
|
+
isSecret: true,
|
|
175
|
+
description: 'Environment variables',
|
|
176
|
+
templateContent: `# API Keys (DO NOT COMMIT)
|
|
177
|
+
API_KEY=your_key_here`,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: 'pyproject.toml',
|
|
181
|
+
required: false,
|
|
182
|
+
canAutoGenerate: true,
|
|
183
|
+
isSecret: false,
|
|
184
|
+
description: 'Python project configuration',
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
environmentVariables: [],
|
|
188
|
+
validationCommands: ['python -m pytest', 'python server.py --help'],
|
|
189
|
+
deploymentCommands: ['pip install -e .', 'python server.py'],
|
|
190
|
+
documentation: 'https://github.com/jlowin/fastmcp',
|
|
191
|
+
},
|
|
192
|
+
// ===== Container Orchestration =====
|
|
193
|
+
{
|
|
194
|
+
id: 'openshift',
|
|
195
|
+
name: 'OpenShift',
|
|
196
|
+
category: 'container',
|
|
197
|
+
detectionPatterns: {
|
|
198
|
+
files: ['openshift/', '.s2i/'],
|
|
199
|
+
commands: ['oc'],
|
|
200
|
+
},
|
|
201
|
+
requiredFiles: [
|
|
202
|
+
{
|
|
203
|
+
path: 'openshift/deployment.yml',
|
|
204
|
+
required: true,
|
|
205
|
+
canAutoGenerate: true,
|
|
206
|
+
isSecret: false,
|
|
207
|
+
description: 'OpenShift DeploymentConfig',
|
|
208
|
+
templateContent: `apiVersion: apps.openshift.io/v1
|
|
209
|
+
kind: DeploymentConfig
|
|
210
|
+
metadata:
|
|
211
|
+
name: your-app
|
|
212
|
+
spec:
|
|
213
|
+
replicas: 1
|
|
214
|
+
selector:
|
|
215
|
+
app: your-app
|
|
216
|
+
template:
|
|
217
|
+
metadata:
|
|
218
|
+
labels:
|
|
219
|
+
app: your-app
|
|
220
|
+
spec:
|
|
221
|
+
containers:
|
|
222
|
+
- name: your-app
|
|
223
|
+
image: your-image:latest
|
|
224
|
+
ports:
|
|
225
|
+
- containerPort: 8080`,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
path: 'openshift/service.yml',
|
|
229
|
+
required: true,
|
|
230
|
+
canAutoGenerate: true,
|
|
231
|
+
isSecret: false,
|
|
232
|
+
description: 'OpenShift Service',
|
|
233
|
+
templateContent: `apiVersion: v1
|
|
234
|
+
kind: Service
|
|
235
|
+
metadata:
|
|
236
|
+
name: your-app
|
|
237
|
+
spec:
|
|
238
|
+
selector:
|
|
239
|
+
app: your-app
|
|
240
|
+
ports:
|
|
241
|
+
- port: 8080
|
|
242
|
+
targetPort: 8080`,
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
path: 'openshift/route.yml',
|
|
246
|
+
required: true,
|
|
247
|
+
canAutoGenerate: true,
|
|
248
|
+
isSecret: false,
|
|
249
|
+
description: 'OpenShift Route',
|
|
250
|
+
templateContent: `apiVersion: route.openshift.io/v1
|
|
251
|
+
kind: Route
|
|
252
|
+
metadata:
|
|
253
|
+
name: your-app
|
|
254
|
+
spec:
|
|
255
|
+
to:
|
|
256
|
+
kind: Service
|
|
257
|
+
name: your-app`,
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
optionalFiles: [
|
|
261
|
+
{
|
|
262
|
+
path: '.s2i/environment',
|
|
263
|
+
required: false,
|
|
264
|
+
canAutoGenerate: true,
|
|
265
|
+
isSecret: false,
|
|
266
|
+
description: 'Source-to-Image environment variables',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
path: 'openshift/configmap.yml',
|
|
270
|
+
required: false,
|
|
271
|
+
canAutoGenerate: true,
|
|
272
|
+
isSecret: false,
|
|
273
|
+
description: 'Configuration data',
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
environmentVariables: [],
|
|
277
|
+
validationCommands: ['oc version', 'oc apply --dry-run=client -f openshift/'],
|
|
278
|
+
deploymentCommands: ['oc apply -f openshift/', 'oc rollout status dc/your-app'],
|
|
279
|
+
documentation: 'https://docs.openshift.com/',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
id: 'kubernetes',
|
|
283
|
+
name: 'Kubernetes',
|
|
284
|
+
category: 'container',
|
|
285
|
+
detectionPatterns: {
|
|
286
|
+
files: ['k8s/', 'kubernetes/', 'deployment.yaml'],
|
|
287
|
+
commands: ['kubectl'],
|
|
288
|
+
},
|
|
289
|
+
requiredFiles: [
|
|
290
|
+
{
|
|
291
|
+
path: 'k8s/deployment.yaml',
|
|
292
|
+
required: true,
|
|
293
|
+
canAutoGenerate: true,
|
|
294
|
+
isSecret: false,
|
|
295
|
+
description: 'Kubernetes Deployment',
|
|
296
|
+
templateContent: `apiVersion: apps/v1
|
|
297
|
+
kind: Deployment
|
|
298
|
+
metadata:
|
|
299
|
+
name: your-app
|
|
300
|
+
spec:
|
|
301
|
+
replicas: 3
|
|
302
|
+
selector:
|
|
303
|
+
matchLabels:
|
|
304
|
+
app: your-app
|
|
305
|
+
template:
|
|
306
|
+
metadata:
|
|
307
|
+
labels:
|
|
308
|
+
app: your-app
|
|
309
|
+
spec:
|
|
310
|
+
containers:
|
|
311
|
+
- name: your-app
|
|
312
|
+
image: your-image:latest
|
|
313
|
+
ports:
|
|
314
|
+
- containerPort: 8080`,
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
path: 'k8s/service.yaml',
|
|
318
|
+
required: true,
|
|
319
|
+
canAutoGenerate: true,
|
|
320
|
+
isSecret: false,
|
|
321
|
+
description: 'Kubernetes Service',
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
optionalFiles: [
|
|
325
|
+
{
|
|
326
|
+
path: 'k8s/ingress.yaml',
|
|
327
|
+
required: false,
|
|
328
|
+
canAutoGenerate: true,
|
|
329
|
+
isSecret: false,
|
|
330
|
+
description: 'Ingress configuration',
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
environmentVariables: [],
|
|
334
|
+
validationCommands: ['kubectl apply --dry-run=client -f k8s/'],
|
|
335
|
+
deploymentCommands: ['kubectl apply -f k8s/'],
|
|
336
|
+
documentation: 'https://kubernetes.io/docs/',
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: 'docker',
|
|
340
|
+
name: 'Docker',
|
|
341
|
+
category: 'container',
|
|
342
|
+
detectionPatterns: {
|
|
343
|
+
files: ['Dockerfile', 'docker-compose.yml'],
|
|
344
|
+
},
|
|
345
|
+
requiredFiles: [
|
|
346
|
+
{
|
|
347
|
+
path: 'Dockerfile',
|
|
348
|
+
required: true,
|
|
349
|
+
canAutoGenerate: true,
|
|
350
|
+
isSecret: false,
|
|
351
|
+
description: 'Docker image definition',
|
|
352
|
+
templateContent: `FROM node:20-alpine
|
|
353
|
+
WORKDIR /app
|
|
354
|
+
COPY package*.json ./
|
|
355
|
+
RUN npm ci --only=production
|
|
356
|
+
COPY . .
|
|
357
|
+
EXPOSE 8080
|
|
358
|
+
CMD ["npm", "start"]`,
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
optionalFiles: [
|
|
362
|
+
{
|
|
363
|
+
path: 'docker-compose.yml',
|
|
364
|
+
required: false,
|
|
365
|
+
canAutoGenerate: true,
|
|
366
|
+
isSecret: false,
|
|
367
|
+
description: 'Multi-container orchestration',
|
|
368
|
+
templateContent: `version: '3.8'
|
|
369
|
+
services:
|
|
370
|
+
app:
|
|
371
|
+
build: .
|
|
372
|
+
ports:
|
|
373
|
+
- "8080:8080"
|
|
374
|
+
environment:
|
|
375
|
+
NODE_ENV: production`,
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
path: '.dockerignore',
|
|
379
|
+
required: false,
|
|
380
|
+
canAutoGenerate: true,
|
|
381
|
+
isSecret: false,
|
|
382
|
+
description: 'Files to exclude from Docker context',
|
|
383
|
+
templateContent: `node_modules
|
|
384
|
+
.git
|
|
385
|
+
.env
|
|
386
|
+
*.log`,
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
environmentVariables: [],
|
|
390
|
+
validationCommands: ['docker build -t test .'],
|
|
391
|
+
deploymentCommands: ['docker build -t your-app .', 'docker run -p 8080:8080 your-app'],
|
|
392
|
+
documentation: 'https://docs.docker.com/',
|
|
393
|
+
},
|
|
394
|
+
// ===== Serverless =====
|
|
395
|
+
{
|
|
396
|
+
id: 'firebase',
|
|
397
|
+
name: 'Firebase',
|
|
398
|
+
category: 'serverless',
|
|
399
|
+
detectionPatterns: {
|
|
400
|
+
files: ['firebase.json', 'functions/'],
|
|
401
|
+
dependencies: ['firebase-admin', 'firebase-functions'],
|
|
402
|
+
},
|
|
403
|
+
requiredFiles: [
|
|
404
|
+
{
|
|
405
|
+
path: 'firebase.json',
|
|
406
|
+
required: true,
|
|
407
|
+
canAutoGenerate: true,
|
|
408
|
+
isSecret: false,
|
|
409
|
+
description: 'Firebase configuration',
|
|
410
|
+
templateContent: `{
|
|
411
|
+
"hosting": {
|
|
412
|
+
"public": "public",
|
|
413
|
+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
|
|
414
|
+
},
|
|
415
|
+
"functions": {
|
|
416
|
+
"source": "functions"
|
|
417
|
+
}
|
|
418
|
+
}`,
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
path: 'functions/index.js',
|
|
422
|
+
required: true,
|
|
423
|
+
canAutoGenerate: true,
|
|
424
|
+
isSecret: false,
|
|
425
|
+
description: 'Cloud Functions entry point',
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
optionalFiles: [
|
|
429
|
+
{
|
|
430
|
+
path: 'functions/.env',
|
|
431
|
+
required: false,
|
|
432
|
+
canAutoGenerate: true,
|
|
433
|
+
isSecret: true,
|
|
434
|
+
description: 'Function environment variables',
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
environmentVariables: [],
|
|
438
|
+
validationCommands: ['firebase deploy --only functions --dry-run'],
|
|
439
|
+
deploymentCommands: ['firebase deploy'],
|
|
440
|
+
documentation: 'https://firebase.google.com/docs',
|
|
441
|
+
},
|
|
442
|
+
// ===== Traditional Deployments =====
|
|
443
|
+
{
|
|
444
|
+
id: 'bare-metal',
|
|
445
|
+
name: 'Bare Metal / VM',
|
|
446
|
+
category: 'traditional',
|
|
447
|
+
detectionPatterns: {
|
|
448
|
+
files: ['systemd/', 'nginx.conf'],
|
|
449
|
+
},
|
|
450
|
+
requiredFiles: [],
|
|
451
|
+
optionalFiles: [
|
|
452
|
+
{
|
|
453
|
+
path: 'systemd/your-app.service',
|
|
454
|
+
required: false,
|
|
455
|
+
canAutoGenerate: true,
|
|
456
|
+
isSecret: false,
|
|
457
|
+
description: 'Systemd service file',
|
|
458
|
+
templateContent: `[Unit]
|
|
459
|
+
Description=Your Application
|
|
460
|
+
After=network.target
|
|
461
|
+
|
|
462
|
+
[Service]
|
|
463
|
+
Type=simple
|
|
464
|
+
User=youruser
|
|
465
|
+
WorkingDirectory=/opt/your-app
|
|
466
|
+
ExecStart=/usr/bin/node /opt/your-app/dist/index.js
|
|
467
|
+
Restart=always
|
|
468
|
+
|
|
469
|
+
[Install]
|
|
470
|
+
WantedBy=multi-user.target`,
|
|
471
|
+
},
|
|
472
|
+
],
|
|
473
|
+
environmentVariables: [],
|
|
474
|
+
validationCommands: [],
|
|
475
|
+
deploymentCommands: ['systemctl enable your-app', 'systemctl start your-app'],
|
|
476
|
+
documentation: '',
|
|
477
|
+
},
|
|
478
|
+
];
|
|
479
|
+
/**
|
|
480
|
+
* Detect deployment types based on project structure
|
|
481
|
+
*/
|
|
482
|
+
export async function detectDeploymentTypes(projectPath) {
|
|
483
|
+
const fs = await import('fs/promises');
|
|
484
|
+
const path = await import('path');
|
|
485
|
+
const detectedTypes = [];
|
|
486
|
+
for (const deploymentType of DEPLOYMENT_TYPES) {
|
|
487
|
+
let matches = 0;
|
|
488
|
+
let totalChecks = 0;
|
|
489
|
+
// Check file patterns
|
|
490
|
+
if (deploymentType.detectionPatterns.files) {
|
|
491
|
+
for (const filePattern of deploymentType.detectionPatterns.files) {
|
|
492
|
+
totalChecks++;
|
|
493
|
+
try {
|
|
494
|
+
const filePath = path.join(projectPath, filePattern);
|
|
495
|
+
await fs.access(filePath);
|
|
496
|
+
matches++;
|
|
497
|
+
}
|
|
498
|
+
catch {
|
|
499
|
+
// File doesn't exist
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
// Check dependencies in package.json
|
|
504
|
+
if (deploymentType.detectionPatterns.dependencies) {
|
|
505
|
+
totalChecks++;
|
|
506
|
+
try {
|
|
507
|
+
const packageJsonPath = path.join(projectPath, 'package.json');
|
|
508
|
+
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8'));
|
|
509
|
+
const allDeps = {
|
|
510
|
+
...packageJson.dependencies,
|
|
511
|
+
...packageJson.devDependencies,
|
|
512
|
+
};
|
|
513
|
+
const hasAllDeps = deploymentType.detectionPatterns.dependencies.every(dep => dep in allDeps);
|
|
514
|
+
if (hasAllDeps) {
|
|
515
|
+
matches++;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
catch {
|
|
519
|
+
// package.json doesn't exist or can't be parsed
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
// If we have matches, consider this deployment type detected
|
|
523
|
+
if (matches > 0 && totalChecks > 0) {
|
|
524
|
+
detectedTypes.push(deploymentType);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return detectedTypes;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Get all required files for detected deployment types
|
|
531
|
+
*/
|
|
532
|
+
export function getRequiredFilesForDeployments(deploymentTypes) {
|
|
533
|
+
const allFiles = new Map();
|
|
534
|
+
for (const deployment of deploymentTypes) {
|
|
535
|
+
for (const file of [...deployment.requiredFiles, ...deployment.optionalFiles]) {
|
|
536
|
+
if (!allFiles.has(file.path)) {
|
|
537
|
+
allFiles.set(file.path, file);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return Array.from(allFiles.values());
|
|
542
|
+
}
|
|
543
|
+
//# sourceMappingURL=deployment-type-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-type-registry.js","sourceRoot":"","sources":["../../../src/utils/deployment-type-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkCH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqB;IAChD,qCAAqC;IACrC;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,KAAK;QACf,iBAAiB,EAAE;YACjB,KAAK,EAAE,CAAC,cAAc,CAAC;YACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;SAC5C;QACD,aAAa,EAAE;YACb;gBACE,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,IAAI;gBACd,eAAe,EAAE,KAAK;gBACtB,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,2DAA2D;gBACxE,eAAe,EAAE;oBACf,+BAA+B;oBAC/B,wCAAwC;iBACzC;aACF;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,IAAI;gBACd,eAAe,EAAE,IAAI;gBACrB,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,2BAA2B;gBACxC,eAAe,EAAE;;;;;;;;;;;;;;;;;iCAiBQ;aAC1B;YACD;gBACE,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,IAAI;gBACd,eAAe,EAAE,IAAI;gBACrB,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,yCAAyC;gBACtD,eAAe,EAAE;;;;;;;;;;;;;;EAcvB;aACK;SACF;QACD,aAAa,EAAE;YACb;gBACE,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,KAAK;gBACf,eAAe,EAAE,IAAI;gBACrB,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,2CAA2C;gBACxD,eAAe,EAAE;;wCAEe;aACjC;YACD;gBACE,IAAI,EAAE,qCAAqC;gBAC3C,QA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P,gDAAgD;YAClD,CAAC;QACH,CAAC;QAED,6DAA6D;QAC7D,IAAI,OAAO,GAAG,CAAC,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;YACnC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC5C,eAAiC;IAEjC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAEnD,KAAK,MAAM,UAAU,IAAI,eAAe,EAAE,CAAC;QACzC,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,aAAa,EAAE,GAAG,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC9E,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7B,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamic Deployment Intelligence System
|
|
3
|
+
*
|
|
4
|
+
* Instead of static registry, this uses:
|
|
5
|
+
* 1. AI + ResearchOrchestrator to query LIVE documentation
|
|
6
|
+
* 2. Environment detection to see what's actually available
|
|
7
|
+
* 3. Memory system to learn from successful deployments
|
|
8
|
+
* 4. Fallback to basic templates when needed
|
|
9
|
+
*
|
|
10
|
+
* This stays current as software updates daily and best practices evolve.
|
|
11
|
+
*/
|
|
12
|
+
export interface DynamicDeploymentPlan {
|
|
13
|
+
detectedPlatforms: string[];
|
|
14
|
+
recommendedPlatform: string;
|
|
15
|
+
confidence: number;
|
|
16
|
+
requiredFiles: DeploymentFileRequirement[];
|
|
17
|
+
environmentVariables: EnvironmentVariable[];
|
|
18
|
+
deploymentSteps: DeploymentStep[];
|
|
19
|
+
validationChecks: ValidationCheck[];
|
|
20
|
+
architectureDiagram: string;
|
|
21
|
+
risks: DeploymentRisk[];
|
|
22
|
+
estimatedDuration: string;
|
|
23
|
+
prerequisites: string[];
|
|
24
|
+
source: 'ai-research' | 'memory-pattern' | 'fallback-template';
|
|
25
|
+
researchSources: string[];
|
|
26
|
+
timestamp: string;
|
|
27
|
+
}
|
|
28
|
+
export interface DeploymentFileRequirement {
|
|
29
|
+
path: string;
|
|
30
|
+
purpose: string;
|
|
31
|
+
required: boolean;
|
|
32
|
+
isSecret: boolean;
|
|
33
|
+
canAutoGenerate: boolean;
|
|
34
|
+
templateContent?: string;
|
|
35
|
+
validationCommand?: string;
|
|
36
|
+
currentBestPractice: string;
|
|
37
|
+
lastUpdated: string;
|
|
38
|
+
}
|
|
39
|
+
export interface EnvironmentVariable {
|
|
40
|
+
name: string;
|
|
41
|
+
purpose: string;
|
|
42
|
+
required: boolean;
|
|
43
|
+
isSecret: boolean;
|
|
44
|
+
defaultValue?: string;
|
|
45
|
+
validationPattern?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface DeploymentStep {
|
|
48
|
+
order: number;
|
|
49
|
+
title: string;
|
|
50
|
+
command: string;
|
|
51
|
+
description: string;
|
|
52
|
+
expectedOutput: string;
|
|
53
|
+
troubleshooting: string[];
|
|
54
|
+
estimatedTime: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ValidationCheck {
|
|
57
|
+
name: string;
|
|
58
|
+
command: string;
|
|
59
|
+
expectedResult: string;
|
|
60
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
61
|
+
}
|
|
62
|
+
export interface DeploymentRisk {
|
|
63
|
+
risk: string;
|
|
64
|
+
severity: 'high' | 'medium' | 'low';
|
|
65
|
+
mitigation: string;
|
|
66
|
+
likelihood: string;
|
|
67
|
+
}
|
|
68
|
+
export declare class DynamicDeploymentIntelligence {
|
|
69
|
+
private research;
|
|
70
|
+
private memory;
|
|
71
|
+
private logger;
|
|
72
|
+
private projectPath;
|
|
73
|
+
private adrDirectory;
|
|
74
|
+
constructor(projectPath: string, adrDirectory: string);
|
|
75
|
+
/**
|
|
76
|
+
* Generate a comprehensive, AI-powered deployment plan
|
|
77
|
+
* Uses live research + learned patterns + environment detection
|
|
78
|
+
*/
|
|
79
|
+
generateDeploymentPlan(): Promise<DynamicDeploymentPlan>;
|
|
80
|
+
/**
|
|
81
|
+
* Detect which deployment platforms are available in the current environment
|
|
82
|
+
*/
|
|
83
|
+
private detectAvailableDeploymentPlatforms;
|
|
84
|
+
/**
|
|
85
|
+
* Analyze ADRs to understand deployment context and requirements
|
|
86
|
+
*/
|
|
87
|
+
private analyzeAdrDeploymentContext;
|
|
88
|
+
/**
|
|
89
|
+
* Query memory system for learned deployment patterns
|
|
90
|
+
*/
|
|
91
|
+
private queryLearnedDeploymentPatterns;
|
|
92
|
+
/**
|
|
93
|
+
* Research current best practices from live documentation
|
|
94
|
+
*/
|
|
95
|
+
private researchCurrentDeploymentBestPractices;
|
|
96
|
+
/**
|
|
97
|
+
* Generate AI-powered deployment plan by synthesizing all inputs
|
|
98
|
+
*/
|
|
99
|
+
private generateAIPoweredDeploymentPlan;
|
|
100
|
+
/**
|
|
101
|
+
* Store successful deployment pattern in memory for learning
|
|
102
|
+
*/
|
|
103
|
+
private storeDeploymentPattern;
|
|
104
|
+
/**
|
|
105
|
+
* Enhance learned pattern with latest information
|
|
106
|
+
*/
|
|
107
|
+
private enhanceLearnedPattern;
|
|
108
|
+
/**
|
|
109
|
+
* Generate fallback plan using static templates when AI fails
|
|
110
|
+
*/
|
|
111
|
+
private generateFallbackPlan;
|
|
112
|
+
/**
|
|
113
|
+
* Update a deployment plan with post-execution learnings
|
|
114
|
+
*/
|
|
115
|
+
updatePlanWithLearnings(plan: DynamicDeploymentPlan, executionResult: any, _learnings: any[]): Promise<DynamicDeploymentPlan>;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=dynamic-deployment-intelligence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-deployment-intelligence.d.ts","sourceRoot":"","sources":["../../../src/utils/dynamic-deployment-intelligence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,yBAAyB,EAAE,CAAC;IAC3C,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAC5C,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,aAAa,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;IAC/D,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,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