specweave 0.21.1 → 0.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +232 -5
- package/dist/plugins/specweave-github/lib/IssueStateManager.d.ts +98 -0
- package/dist/plugins/specweave-github/lib/IssueStateManager.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/IssueStateManager.js +146 -0
- package/dist/plugins/specweave-github/lib/IssueStateManager.js.map +1 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js +6 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js.map +1 -1
- package/dist/src/cli/commands/check-hooks.d.ts +11 -0
- package/dist/src/cli/commands/check-hooks.d.ts.map +1 -0
- package/dist/src/cli/commands/check-hooks.js +144 -0
- package/dist/src/cli/commands/check-hooks.js.map +1 -0
- package/dist/src/cli/commands/cicd-monitor.js +3 -3
- package/dist/src/cli/commands/cicd-monitor.js.map +1 -1
- package/dist/src/cli/commands/import-docs.js +2 -2
- package/dist/src/cli/commands/import-docs.js.map +1 -1
- package/dist/src/cli/commands/init-multiproject.js +4 -4
- package/dist/src/cli/commands/init-multiproject.js.map +1 -1
- package/dist/src/cli/commands/migrate-to-multiproject.js +3 -3
- package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -1
- package/dist/src/cli/commands/plan/agent-invoker.d.ts +79 -0
- package/dist/src/cli/commands/plan/agent-invoker.d.ts.map +1 -0
- package/dist/src/cli/commands/plan/agent-invoker.js +383 -0
- package/dist/src/cli/commands/plan/agent-invoker.js.map +1 -0
- package/dist/src/cli/commands/plan/increment-detector.d.ts +27 -0
- package/dist/src/cli/commands/plan/increment-detector.d.ts.map +1 -0
- package/dist/src/cli/commands/plan/increment-detector.js +159 -0
- package/dist/src/cli/commands/plan/increment-detector.js.map +1 -0
- package/dist/src/cli/commands/plan/plan-orchestrator.d.ts +45 -0
- package/dist/src/cli/commands/plan/plan-orchestrator.d.ts.map +1 -0
- package/dist/src/cli/commands/plan/plan-orchestrator.js +229 -0
- package/dist/src/cli/commands/plan/plan-orchestrator.js.map +1 -0
- package/dist/src/cli/commands/plan/plan-validator.d.ts +36 -0
- package/dist/src/cli/commands/plan/plan-validator.d.ts.map +1 -0
- package/dist/src/cli/commands/plan/plan-validator.js +174 -0
- package/dist/src/cli/commands/plan/plan-validator.js.map +1 -0
- package/dist/src/cli/commands/plan/types.d.ts +170 -0
- package/dist/src/cli/commands/plan/types.d.ts.map +1 -0
- package/dist/src/cli/commands/plan/types.js +42 -0
- package/dist/src/cli/commands/plan/types.js.map +1 -0
- package/dist/src/cli/commands/plan-command.d.ts +16 -0
- package/dist/src/cli/commands/plan-command.d.ts.map +1 -0
- package/dist/src/cli/commands/plan-command.js +127 -0
- package/dist/src/cli/commands/plan-command.js.map +1 -0
- package/dist/src/cli/commands/switch-project.js +3 -3
- package/dist/src/cli/commands/switch-project.js.map +1 -1
- package/dist/src/cli/commands/validate-parent-repo.js +1 -1
- package/dist/src/cli/commands/validate-parent-repo.js.map +1 -1
- package/dist/src/config/ConfigManager.d.ts +69 -0
- package/dist/src/config/ConfigManager.d.ts.map +1 -0
- package/dist/src/config/ConfigManager.js +130 -0
- package/dist/src/config/ConfigManager.js.map +1 -0
- package/dist/src/config/types.d.ts +1357 -0
- package/dist/src/config/types.d.ts.map +1 -0
- package/dist/src/config/types.js +67 -0
- package/dist/src/config/types.js.map +1 -0
- package/dist/src/core/brownfield/importer.d.ts +1 -1
- package/dist/src/core/brownfield/importer.d.ts.map +1 -1
- package/dist/src/core/brownfield/importer.js +3 -3
- package/dist/src/core/brownfield/importer.js.map +1 -1
- package/dist/src/core/cicd/config-loader.d.ts +1 -1
- package/dist/src/core/cicd/config-loader.d.ts.map +1 -1
- package/dist/src/core/cicd/index.d.ts +6 -6
- package/dist/src/core/cicd/index.d.ts.map +1 -1
- package/dist/src/core/cicd/index.js +6 -6
- package/dist/src/core/cicd/index.js.map +1 -1
- package/dist/src/core/cicd/monitor-service.d.ts +3 -3
- package/dist/src/core/cicd/monitor-service.d.ts.map +1 -1
- package/dist/src/core/cicd/monitor-service.js +3 -3
- package/dist/src/core/cicd/monitor-service.js.map +1 -1
- package/dist/src/core/cicd/notifier.d.ts +1 -1
- package/dist/src/core/cicd/notifier.d.ts.map +1 -1
- package/dist/src/core/cicd/state-manager.d.ts +1 -1
- package/dist/src/core/cicd/state-manager.d.ts.map +1 -1
- package/dist/src/core/cicd/state-manager.js +1 -1
- package/dist/src/core/cicd/state-manager.js.map +1 -1
- package/dist/src/core/cicd/workflow-monitor.d.ts +1 -1
- package/dist/src/core/cicd/workflow-monitor.d.ts.map +1 -1
- package/dist/src/core/cicd/workflow-monitor.js +1 -1
- package/dist/src/core/cicd/workflow-monitor.js.map +1 -1
- package/dist/src/core/cost-tracker.d.ts +2 -2
- package/dist/src/core/cost-tracker.d.ts.map +1 -1
- package/dist/src/core/cost-tracker.js +1 -1
- package/dist/src/core/cost-tracker.js.map +1 -1
- package/dist/src/core/hooks/HealthReporter.d.ts +55 -0
- package/dist/src/core/hooks/HealthReporter.d.ts.map +1 -0
- package/dist/src/core/hooks/HealthReporter.js +268 -0
- package/dist/src/core/hooks/HealthReporter.js.map +1 -0
- package/dist/src/core/hooks/HookAutoFixer.d.ts +41 -0
- package/dist/src/core/hooks/HookAutoFixer.d.ts.map +1 -0
- package/dist/src/core/hooks/HookAutoFixer.js +222 -0
- package/dist/src/core/hooks/HookAutoFixer.js.map +1 -0
- package/dist/src/core/hooks/HookExecutor.d.ts +57 -0
- package/dist/src/core/hooks/HookExecutor.d.ts.map +1 -0
- package/dist/src/core/hooks/HookExecutor.js +287 -0
- package/dist/src/core/hooks/HookExecutor.js.map +1 -0
- package/dist/src/core/hooks/HookHealthChecker.d.ts +51 -0
- package/dist/src/core/hooks/HookHealthChecker.d.ts.map +1 -0
- package/dist/src/core/hooks/HookHealthChecker.js +212 -0
- package/dist/src/core/hooks/HookHealthChecker.js.map +1 -0
- package/dist/src/core/hooks/HookScanner.d.ts +65 -0
- package/dist/src/core/hooks/HookScanner.d.ts.map +1 -0
- package/dist/src/core/hooks/HookScanner.js +214 -0
- package/dist/src/core/hooks/HookScanner.js.map +1 -0
- package/dist/src/core/hooks/types.d.ts +281 -0
- package/dist/src/core/hooks/types.d.ts.map +1 -0
- package/dist/src/core/hooks/types.js +10 -0
- package/dist/src/core/hooks/types.js.map +1 -0
- package/dist/src/core/iac/index.d.ts +10 -0
- package/dist/src/core/iac/index.d.ts.map +1 -0
- package/dist/src/core/iac/index.js +11 -0
- package/dist/src/core/iac/index.js.map +1 -0
- package/dist/src/core/iac/template-engine.d.ts +77 -0
- package/dist/src/core/iac/template-engine.d.ts.map +1 -0
- package/dist/src/core/iac/template-engine.js +182 -0
- package/dist/src/core/iac/template-engine.js.map +1 -0
- package/dist/src/core/increment/ac-status-manager.d.ts +115 -0
- package/dist/src/core/increment/ac-status-manager.d.ts.map +1 -0
- package/dist/src/core/increment/ac-status-manager.js +343 -0
- package/dist/src/core/increment/ac-status-manager.js.map +1 -0
- package/dist/src/core/increment/auto-transition-manager.d.ts +60 -0
- package/dist/src/core/increment/auto-transition-manager.d.ts.map +1 -0
- package/dist/src/core/increment/auto-transition-manager.js +192 -0
- package/dist/src/core/increment/auto-transition-manager.js.map +1 -0
- package/dist/src/core/increment/limits.d.ts +1 -1
- package/dist/src/core/increment/limits.d.ts.map +1 -1
- package/dist/src/core/increment/limits.js +2 -2
- package/dist/src/core/increment/limits.js.map +1 -1
- package/dist/src/core/increment/spec-sync-manager.d.ts +177 -0
- package/dist/src/core/increment/spec-sync-manager.d.ts.map +1 -0
- package/dist/src/core/increment/spec-sync-manager.js +496 -0
- package/dist/src/core/increment/spec-sync-manager.js.map +1 -0
- package/dist/src/core/increment/status-auto-transition.d.ts +46 -0
- package/dist/src/core/increment/status-auto-transition.d.ts.map +1 -0
- package/dist/src/core/increment/status-auto-transition.js +178 -0
- package/dist/src/core/increment/status-auto-transition.js.map +1 -0
- package/dist/src/core/increment/task-state-manager.d.ts +75 -0
- package/dist/src/core/increment/task-state-manager.d.ts.map +1 -0
- package/dist/src/core/increment/task-state-manager.js +117 -0
- package/dist/src/core/increment/task-state-manager.js.map +1 -0
- package/dist/src/core/living-docs/CodeValidator.d.ts +68 -0
- package/dist/src/core/living-docs/CodeValidator.d.ts.map +1 -0
- package/dist/src/core/living-docs/CodeValidator.js +160 -0
- package/dist/src/core/living-docs/CodeValidator.js.map +1 -0
- package/dist/src/core/living-docs/CompletionPropagator.d.ts +84 -0
- package/dist/src/core/living-docs/CompletionPropagator.d.ts.map +1 -0
- package/dist/src/core/living-docs/CompletionPropagator.js +205 -0
- package/dist/src/core/living-docs/CompletionPropagator.js.map +1 -0
- package/dist/src/core/living-docs/ProjectDetector.d.ts +29 -0
- package/dist/src/core/living-docs/ProjectDetector.d.ts.map +1 -0
- package/dist/src/core/living-docs/ProjectDetector.js +94 -0
- package/dist/src/core/living-docs/ProjectDetector.js.map +1 -0
- package/dist/src/core/living-docs/SpecDistributor.d.ts +55 -0
- package/dist/src/core/living-docs/SpecDistributor.d.ts.map +1 -0
- package/dist/src/core/living-docs/SpecDistributor.js +216 -0
- package/dist/src/core/living-docs/SpecDistributor.js.map +1 -0
- package/dist/src/core/living-docs/ThreeLayerSyncManager.d.ts +116 -0
- package/dist/src/core/living-docs/ThreeLayerSyncManager.d.ts.map +1 -0
- package/dist/src/core/living-docs/ThreeLayerSyncManager.js +356 -0
- package/dist/src/core/living-docs/ThreeLayerSyncManager.js.map +1 -0
- package/dist/src/core/living-docs/hierarchy-mapper.d.ts.map +1 -1
- package/dist/src/core/living-docs/hierarchy-mapper.js +2 -1
- package/dist/src/core/living-docs/hierarchy-mapper.js.map +1 -1
- package/dist/src/core/living-docs/index.d.ts +1 -1
- package/dist/src/core/living-docs/index.d.ts.map +1 -1
- package/dist/src/core/living-docs/index.js +5 -1
- package/dist/src/core/living-docs/index.js.map +1 -1
- package/dist/src/core/living-docs/types.d.ts +70 -300
- package/dist/src/core/living-docs/types.d.ts.map +1 -1
- package/dist/src/core/living-docs/types.js +2 -10
- package/dist/src/core/living-docs/types.js.map +1 -1
- package/dist/src/core/project-manager.d.ts +1 -1
- package/dist/src/core/project-manager.d.ts.map +1 -1
- package/dist/src/core/project-manager.js +2 -2
- package/dist/src/core/project-manager.js.map +1 -1
- package/dist/src/core/qa/quality-gate-decider.d.ts +1 -1
- package/dist/src/core/qa/quality-gate-decider.d.ts.map +1 -1
- package/dist/src/core/qa/risk-calculator.d.ts +1 -1
- package/dist/src/core/qa/risk-calculator.d.ts.map +1 -1
- package/dist/src/core/repo-structure/setup-summary.d.ts +1 -1
- package/dist/src/core/repo-structure/setup-summary.d.ts.map +1 -1
- package/dist/src/core/rfc-generator-v2.d.ts +1 -1
- package/dist/src/core/rfc-generator-v2.d.ts.map +1 -1
- package/dist/src/core/rfc-generator-v2.js +1 -1
- package/dist/src/core/rfc-generator-v2.js.map +1 -1
- package/dist/src/core/serverless/context-detector.d.ts +12 -0
- package/dist/src/core/serverless/context-detector.d.ts.map +1 -0
- package/dist/src/core/serverless/context-detector.js +213 -0
- package/dist/src/core/serverless/context-detector.js.map +1 -0
- package/dist/src/core/serverless/cost-comparison.d.ts +73 -0
- package/dist/src/core/serverless/cost-comparison.d.ts.map +1 -0
- package/dist/src/core/serverless/cost-comparison.js +198 -0
- package/dist/src/core/serverless/cost-comparison.js.map +1 -0
- package/dist/src/core/serverless/cost-estimator.d.ts +69 -0
- package/dist/src/core/serverless/cost-estimator.d.ts.map +1 -0
- package/dist/src/core/serverless/cost-estimator.js +127 -0
- package/dist/src/core/serverless/cost-estimator.js.map +1 -0
- package/dist/src/core/serverless/cost-optimizer.d.ts +57 -0
- package/dist/src/core/serverless/cost-optimizer.d.ts.map +1 -0
- package/dist/src/core/serverless/cost-optimizer.js +221 -0
- package/dist/src/core/serverless/cost-optimizer.js.map +1 -0
- package/dist/src/core/serverless/index.d.ts +20 -0
- package/dist/src/core/serverless/index.d.ts.map +1 -0
- package/dist/src/core/serverless/index.js +26 -0
- package/dist/src/core/serverless/index.js.map +1 -0
- package/dist/src/core/serverless/learning-path-recommender.d.ts +152 -0
- package/dist/src/core/serverless/learning-path-recommender.d.ts.map +1 -0
- package/dist/src/core/serverless/learning-path-recommender.js +389 -0
- package/dist/src/core/serverless/learning-path-recommender.js.map +1 -0
- package/dist/src/core/serverless/platform-data-loader.d.ts +22 -0
- package/dist/src/core/serverless/platform-data-loader.d.ts.map +1 -0
- package/dist/src/core/serverless/platform-data-loader.js +49 -0
- package/dist/src/core/serverless/platform-data-loader.js.map +1 -0
- package/dist/src/core/serverless/platform-selector.d.ts +20 -0
- package/dist/src/core/serverless/platform-selector.d.ts.map +1 -0
- package/dist/src/core/serverless/platform-selector.js +279 -0
- package/dist/src/core/serverless/platform-selector.js.map +1 -0
- package/dist/src/core/serverless/recommendation-formatter.d.ts +24 -0
- package/dist/src/core/serverless/recommendation-formatter.d.ts.map +1 -0
- package/dist/src/core/serverless/recommendation-formatter.js +70 -0
- package/dist/src/core/serverless/recommendation-formatter.js.map +1 -0
- package/dist/src/core/serverless/suitability-analyzer.d.ts +22 -0
- package/dist/src/core/serverless/suitability-analyzer.d.ts.map +1 -0
- package/dist/src/core/serverless/suitability-analyzer.js +262 -0
- package/dist/src/core/serverless/suitability-analyzer.js.map +1 -0
- package/dist/src/core/serverless/types.d.ts +96 -0
- package/dist/src/core/serverless/types.d.ts.map +1 -0
- package/dist/src/core/serverless/types.js +5 -0
- package/dist/src/core/serverless/types.js.map +1 -0
- package/dist/src/core/sync/bidirectional-engine.d.ts +1 -1
- package/dist/src/core/sync/bidirectional-engine.d.ts.map +1 -1
- package/dist/src/core/sync/enhanced-content-builder.d.ts +1 -1
- package/dist/src/core/sync/enhanced-content-builder.d.ts.map +1 -1
- package/dist/src/core/sync/profile-manager.d.ts +1 -1
- package/dist/src/core/sync/profile-manager.d.ts.map +1 -1
- package/dist/src/core/sync/profile-selector.d.ts +1 -1
- package/dist/src/core/sync/profile-selector.d.ts.map +1 -1
- package/dist/src/core/sync/profile-selector.js +1 -1
- package/dist/src/core/sync/profile-selector.js.map +1 -1
- package/dist/src/core/sync/project-context.d.ts +1 -1
- package/dist/src/core/sync/project-context.d.ts.map +1 -1
- package/dist/src/core/sync/rate-limiter.d.ts +1 -1
- package/dist/src/core/sync/rate-limiter.d.ts.map +1 -1
- package/dist/src/core/sync/status-sync-engine.d.ts +2 -2
- package/dist/src/core/sync/status-sync-engine.d.ts.map +1 -1
- package/dist/src/core/sync/status-sync-engine.js +2 -2
- package/dist/src/core/sync/status-sync-engine.js.map +1 -1
- package/dist/src/core/sync/time-range-selector.d.ts +1 -1
- package/dist/src/core/sync/time-range-selector.d.ts.map +1 -1
- package/dist/src/core/sync/time-range-selector.js +1 -1
- package/dist/src/core/sync/time-range-selector.js.map +1 -1
- package/dist/src/core/types/increment-metadata.d.ts +27 -0
- package/dist/src/core/types/increment-metadata.d.ts.map +1 -1
- package/dist/src/core/types/increment-metadata.js +45 -1
- package/dist/src/core/types/increment-metadata.js.map +1 -1
- package/dist/src/core/types/sync-profile.d.ts +2 -0
- package/dist/src/core/types/sync-profile.d.ts.map +1 -1
- package/dist/src/core/types/sync-profile.js.map +1 -1
- package/dist/src/core/validation/increment-structure-validator.d.ts +47 -0
- package/dist/src/core/validation/increment-structure-validator.d.ts.map +1 -0
- package/dist/src/core/validation/increment-structure-validator.js +187 -0
- package/dist/src/core/validation/increment-structure-validator.js.map +1 -0
- package/dist/src/core/validation/three-file-validator.d.ts +82 -0
- package/dist/src/core/validation/three-file-validator.d.ts.map +1 -0
- package/dist/src/core/validation/three-file-validator.js +320 -0
- package/dist/src/core/validation/three-file-validator.js.map +1 -0
- package/dist/src/core/workflow/phase-detector.d.ts +103 -0
- package/dist/src/core/workflow/phase-detector.d.ts.map +1 -0
- package/dist/src/core/workflow/phase-detector.js +704 -0
- package/dist/src/core/workflow/phase-detector.js.map +1 -0
- package/dist/src/core/workflow/types.d.ts +153 -0
- package/dist/src/core/workflow/types.d.ts.map +1 -0
- package/dist/src/core/workflow/types.js +47 -0
- package/dist/src/core/workflow/types.js.map +1 -0
- package/dist/src/init/InitFlow.d.ts +37 -0
- package/dist/src/init/InitFlow.d.ts.map +1 -0
- package/dist/src/init/InitFlow.js +209 -0
- package/dist/src/init/InitFlow.js.map +1 -0
- package/dist/src/init/architecture/ArchitectureDecisionEngine.d.ts +107 -0
- package/dist/src/init/architecture/ArchitectureDecisionEngine.d.ts.map +1 -0
- package/dist/src/init/architecture/ArchitectureDecisionEngine.js +405 -0
- package/dist/src/init/architecture/ArchitectureDecisionEngine.js.map +1 -0
- package/dist/src/init/architecture/CloudCreditsDatabase.d.ts +11 -0
- package/dist/src/init/architecture/CloudCreditsDatabase.d.ts.map +1 -0
- package/dist/src/init/architecture/CloudCreditsDatabase.js +92 -0
- package/dist/src/init/architecture/CloudCreditsDatabase.js.map +1 -0
- package/dist/src/init/architecture/types.d.ts +251 -0
- package/dist/src/init/architecture/types.d.ts.map +1 -0
- package/dist/src/init/architecture/types.js +54 -0
- package/dist/src/init/architecture/types.js.map +1 -0
- package/dist/src/init/compliance/ComplianceDetector.d.ts +17 -0
- package/dist/src/init/compliance/ComplianceDetector.d.ts.map +1 -0
- package/dist/src/init/compliance/ComplianceDetector.js +64 -0
- package/dist/src/init/compliance/ComplianceDetector.js.map +1 -0
- package/dist/src/init/compliance/standards-database.d.ts +48 -0
- package/dist/src/init/compliance/standards-database.d.ts.map +1 -0
- package/dist/src/init/compliance/standards-database.js +506 -0
- package/dist/src/init/compliance/standards-database.js.map +1 -0
- package/dist/src/init/compliance/types.d.ts +91 -0
- package/dist/src/init/compliance/types.d.ts.map +1 -0
- package/dist/src/init/compliance/types.js +43 -0
- package/dist/src/init/compliance/types.js.map +1 -0
- package/dist/src/init/repo/GitHubAPIClient.d.ts +51 -0
- package/dist/src/init/repo/GitHubAPIClient.d.ts.map +1 -0
- package/dist/src/init/repo/GitHubAPIClient.js +144 -0
- package/dist/src/init/repo/GitHubAPIClient.js.map +1 -0
- package/dist/src/init/repo/RepositorySelector.d.ts +45 -0
- package/dist/src/init/repo/RepositorySelector.d.ts.map +1 -0
- package/dist/src/init/repo/RepositorySelector.js +106 -0
- package/dist/src/init/repo/RepositorySelector.js.map +1 -0
- package/dist/src/init/repo/types.d.ts +95 -0
- package/dist/src/init/repo/types.d.ts.map +1 -0
- package/dist/src/init/repo/types.js +25 -0
- package/dist/src/init/repo/types.js.map +1 -0
- package/dist/src/init/research/CompetitorAnalyzer.d.ts +79 -0
- package/dist/src/init/research/CompetitorAnalyzer.d.ts.map +1 -0
- package/dist/src/init/research/CompetitorAnalyzer.js +265 -0
- package/dist/src/init/research/CompetitorAnalyzer.js.map +1 -0
- package/dist/src/init/research/MarketDetector.d.ts +62 -0
- package/dist/src/init/research/MarketDetector.d.ts.map +1 -0
- package/dist/src/init/research/MarketDetector.js +247 -0
- package/dist/src/init/research/MarketDetector.js.map +1 -0
- package/dist/src/init/research/OpportunityScorer.d.ts +58 -0
- package/dist/src/init/research/OpportunityScorer.d.ts.map +1 -0
- package/dist/src/init/research/OpportunityScorer.js +194 -0
- package/dist/src/init/research/OpportunityScorer.js.map +1 -0
- package/dist/src/init/research/QuestionGenerator.d.ts +68 -0
- package/dist/src/init/research/QuestionGenerator.d.ts.map +1 -0
- package/dist/src/init/research/QuestionGenerator.js +244 -0
- package/dist/src/init/research/QuestionGenerator.js.map +1 -0
- package/dist/src/init/research/ReportGenerator.d.ts +36 -0
- package/dist/src/init/research/ReportGenerator.d.ts.map +1 -0
- package/dist/src/init/research/ReportGenerator.js +125 -0
- package/dist/src/init/research/ReportGenerator.js.map +1 -0
- package/dist/src/init/research/VisionAnalyzer.d.ts +129 -0
- package/dist/src/init/research/VisionAnalyzer.d.ts.map +1 -0
- package/dist/src/init/research/VisionAnalyzer.js +212 -0
- package/dist/src/init/research/VisionAnalyzer.js.map +1 -0
- package/dist/src/init/research/keyword-extractor.d.ts +78 -0
- package/dist/src/init/research/keyword-extractor.d.ts.map +1 -0
- package/dist/src/init/research/keyword-extractor.js +230 -0
- package/dist/src/init/research/keyword-extractor.js.map +1 -0
- package/dist/src/init/research/src/config/ConfigManager.d.ts +14 -0
- package/dist/src/init/research/src/config/ConfigManager.d.ts.map +1 -0
- package/dist/src/init/research/src/config/ConfigManager.js +45 -0
- package/dist/src/init/research/src/config/ConfigManager.js.map +1 -0
- package/dist/src/init/research/src/config/types.d.ts +102 -0
- package/dist/src/init/research/src/config/types.d.ts.map +1 -0
- package/dist/src/init/research/src/config/types.js +24 -0
- package/dist/src/init/research/src/config/types.js.map +1 -0
- package/dist/src/init/research/types.d.ts +183 -0
- package/dist/src/init/research/types.d.ts.map +1 -0
- package/dist/src/init/research/types.js +65 -0
- package/dist/src/init/research/types.js.map +1 -0
- package/dist/src/init/team/ServerlessSavingsCalculator.d.ts +136 -0
- package/dist/src/init/team/ServerlessSavingsCalculator.d.ts.map +1 -0
- package/dist/src/init/team/ServerlessSavingsCalculator.js +360 -0
- package/dist/src/init/team/ServerlessSavingsCalculator.js.map +1 -0
- package/dist/src/init/team/TeamRecommender.d.ts +122 -0
- package/dist/src/init/team/TeamRecommender.d.ts.map +1 -0
- package/dist/src/init/team/TeamRecommender.js +405 -0
- package/dist/src/init/team/TeamRecommender.js.map +1 -0
- package/dist/src/init/team/types.d.ts +95 -0
- package/dist/src/init/team/types.d.ts.map +1 -0
- package/dist/src/init/team/types.js +23 -0
- package/dist/src/init/team/types.js.map +1 -0
- package/dist/src/integrations/jira/jira-mapper.d.ts +1 -1
- package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -1
- package/dist/src/types/cost-tracking.d.ts +1 -1
- package/dist/src/types/cost-tracking.d.ts.map +1 -1
- package/dist/src/utils/cost-reporter.d.ts +2 -2
- package/dist/src/utils/cost-reporter.d.ts.map +1 -1
- package/dist/src/utils/docs-preview/config-generator.d.ts +1 -1
- package/dist/src/utils/docs-preview/config-generator.d.ts.map +1 -1
- package/dist/src/utils/docs-preview/config-generator.js +1 -1
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts +1 -1
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts.map +1 -1
- package/dist/src/utils/docs-preview/docusaurus-setup.js +4 -4
- package/dist/src/utils/docs-preview/docusaurus-setup.js.map +1 -1
- package/dist/src/utils/docs-preview/index.d.ts +6 -6
- package/dist/src/utils/docs-preview/index.d.ts.map +1 -1
- package/dist/src/utils/docs-preview/index.js +6 -6
- package/dist/src/utils/docs-preview/index.js.map +1 -1
- package/dist/src/utils/docs-preview/package-installer.d.ts +1 -1
- package/dist/src/utils/docs-preview/package-installer.d.ts.map +1 -1
- package/dist/src/utils/docs-preview/package-installer.js +1 -1
- package/dist/src/utils/docs-preview/package-installer.js.map +1 -1
- package/dist/src/utils/docs-preview/server-manager.d.ts +1 -1
- package/dist/src/utils/docs-preview/server-manager.d.ts.map +1 -1
- package/dist/src/utils/docs-preview/server-manager.js +1 -1
- package/dist/src/utils/docs-preview/server-manager.js.map +1 -1
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts +1 -1
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts.map +1 -1
- package/dist/src/utils/generate-skills-index.d.ts +1 -1
- package/dist/src/utils/generate-skills-index.js +1 -1
- package/dist/src/utils/project-detection.js +1 -1
- package/dist/src/utils/project-detection.js.map +1 -1
- package/package.json +9 -3
- package/plugins/specweave/agents/architect/AGENT.md +605 -0
- package/plugins/specweave/agents/infrastructure/AGENT.md +760 -0
- package/plugins/specweave/agents/pm/AGENT.md +14 -13
- package/plugins/specweave/commands/specweave-check-hooks.md +186 -0
- package/plugins/specweave/commands/specweave-plan.md +151 -0
- package/plugins/specweave/commands/specweave-sync-acs.md +342 -0
- package/plugins/specweave/commands/specweave-validate.md +60 -11
- package/plugins/specweave/hooks/lib/update-status-line.sh +8 -4
- package/plugins/specweave/hooks/post-increment-change.sh +4 -0
- package/plugins/specweave/hooks/post-increment-completion.sh +7 -1
- package/plugins/specweave/hooks/post-increment-planning.sh +4 -0
- package/plugins/specweave/hooks/post-increment-status-change.sh +4 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh +78 -0
- package/plugins/specweave/iac-templates/aws-lambda/README.md.hbs +280 -0
- package/plugins/specweave/iac-templates/aws-lambda/defaults.json +118 -0
- package/plugins/specweave/iac-templates/aws-lambda/environments/dev.defaults.json +46 -0
- package/plugins/specweave/iac-templates/aws-lambda/environments/prod.defaults.json +67 -0
- package/plugins/specweave/iac-templates/aws-lambda/environments/staging.defaults.json +47 -0
- package/plugins/specweave/iac-templates/aws-lambda/main.tf.hbs +241 -0
- package/plugins/specweave/iac-templates/aws-lambda/outputs.tf.hbs +61 -0
- package/plugins/specweave/iac-templates/aws-lambda/provider.tf.hbs +15 -0
- package/plugins/specweave/iac-templates/aws-lambda/variables.tf.hbs +88 -0
- package/plugins/specweave/iac-templates/azure-functions/README.md.hbs +315 -0
- package/plugins/specweave/iac-templates/azure-functions/defaults.json +65 -0
- package/plugins/specweave/iac-templates/azure-functions/environments/dev.defaults.json +30 -0
- package/plugins/specweave/iac-templates/azure-functions/environments/prod.defaults.json +34 -0
- package/plugins/specweave/iac-templates/azure-functions/environments/staging.defaults.json +31 -0
- package/plugins/specweave/iac-templates/azure-functions/iam.tf.hbs +34 -0
- package/plugins/specweave/iac-templates/azure-functions/main.tf.hbs +247 -0
- package/plugins/specweave/iac-templates/azure-functions/outputs.tf.hbs +72 -0
- package/plugins/specweave/iac-templates/azure-functions/provider.tf.hbs +14 -0
- package/plugins/specweave/iac-templates/azure-functions/variables.tf.hbs +64 -0
- package/plugins/specweave/iac-templates/firebase/README.md.hbs +487 -0
- package/plugins/specweave/iac-templates/firebase/defaults.json +55 -0
- package/plugins/specweave/iac-templates/firebase/environments/dev.defaults.json +44 -0
- package/plugins/specweave/iac-templates/firebase/environments/prod.defaults.json +52 -0
- package/plugins/specweave/iac-templates/firebase/environments/staging.defaults.json +43 -0
- package/plugins/specweave/iac-templates/firebase/iam.tf.hbs +75 -0
- package/plugins/specweave/iac-templates/firebase/main.tf.hbs +297 -0
- package/plugins/specweave/iac-templates/firebase/outputs.tf.hbs +67 -0
- package/plugins/specweave/iac-templates/firebase/provider.tf.hbs +26 -0
- package/plugins/specweave/iac-templates/firebase/variables.tf.hbs +68 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/README.md.hbs +330 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/defaults.json +69 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/environments/dev.defaults.json +33 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/environments/prod.defaults.json +40 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/environments/staging.defaults.json +33 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/iam.tf.hbs +54 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/main.tf.hbs +211 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/outputs.tf.hbs +44 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/provider.tf.hbs +14 -0
- package/plugins/specweave/iac-templates/gcp-cloud-functions/variables.tf.hbs +82 -0
- package/plugins/specweave/iac-templates/supabase/README.md.hbs +534 -0
- package/plugins/specweave/iac-templates/supabase/defaults.json +69 -0
- package/plugins/specweave/iac-templates/supabase/environments/dev.defaults.json +55 -0
- package/plugins/specweave/iac-templates/supabase/environments/prod.defaults.json +75 -0
- package/plugins/specweave/iac-templates/supabase/environments/staging.defaults.json +54 -0
- package/plugins/specweave/iac-templates/supabase/iam.tf.hbs +146 -0
- package/plugins/specweave/iac-templates/supabase/main.tf.hbs +310 -0
- package/plugins/specweave/iac-templates/supabase/outputs.tf.hbs +74 -0
- package/plugins/specweave/iac-templates/supabase/provider.tf.hbs +19 -0
- package/plugins/specweave/iac-templates/supabase/variables.tf.hbs +78 -0
- package/plugins/specweave/knowledge-base/serverless/FRESHNESS.md +69 -0
- package/plugins/specweave/knowledge-base/serverless/learning-paths.json +865 -0
- package/plugins/specweave/knowledge-base/serverless/platforms/aws-lambda.json +41 -0
- package/plugins/specweave/knowledge-base/serverless/platforms/azure-functions.json +41 -0
- package/plugins/specweave/knowledge-base/serverless/platforms/firebase.json +46 -0
- package/plugins/specweave/knowledge-base/serverless/platforms/gcp-cloud-functions.json +41 -0
- package/plugins/specweave/knowledge-base/serverless/platforms/supabase.json +41 -0
- package/plugins/specweave/knowledge-base/serverless/schema.json +155 -0
- package/plugins/specweave/lib/hooks/auto-transition.js +50 -0
- package/plugins/specweave/lib/hooks/auto-transition.ts +84 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js +1 -1
- package/plugins/specweave/lib/hooks/invoke-translator-skill.ts +1 -1
- package/plugins/specweave/lib/hooks/sync-living-docs.js +4 -31
- package/plugins/specweave/lib/hooks/{sync-living-docs.ts → sync-living-docs.ts.DISABLED} +9 -48
- package/plugins/specweave/lib/hooks/translate-file.js +1 -1
- package/plugins/specweave/lib/hooks/translate-file.ts +1 -1
- package/plugins/specweave/lib/hooks/update-ac-status.js +24 -75
- package/plugins/specweave/lib/hooks/update-ac-status.ts +46 -135
- package/plugins/specweave/lib/hooks/update-tasks-md.js +115 -3
- package/plugins/specweave/lib/hooks/update-tasks-md.ts +182 -10
- package/plugins/specweave/lib/utils/validate-dev-setup.sh +133 -0
- package/plugins/specweave/skills/increment-planner/SKILL.md +25 -15
- package/plugins/specweave/skills/serverless-recommender/SKILL.md +368 -0
- package/plugins/specweave/templates/iac/aws-lambda/templates/iam.tf.hbs +137 -0
- package/plugins/specweave/templates/iac/aws-lambda/templates/main.tf.hbs +216 -0
- package/plugins/specweave-github/lib/IssueStateManager.js +117 -0
- package/plugins/specweave-github/lib/IssueStateManager.ts +231 -0
- package/plugins/specweave-github/lib/user-story-issue-builder.js +7 -0
- package/plugins/specweave-github/lib/user-story-issue-builder.ts +11 -0
- package/plugins/specweave-ui/.mcp.json +0 -10
- package/plugins/specweave-ui/README.md +26 -26
- package/plugins/specweave-ui/skills/browser-automation/SKILL.md +31 -18
- package/src/templates/tasks.md.template +51 -33
- package/dist/locales/de/.gitkeep +0 -0
- package/dist/locales/de/cli.json +0 -108
- package/dist/locales/en/cli.json +0 -287
- package/dist/locales/en/errors.json +0 -7
- package/dist/locales/en/templates.json +0 -6
- package/dist/locales/es/.gitkeep +0 -0
- package/dist/locales/es/cli.json +0 -41
- package/dist/locales/fr/.gitkeep +0 -0
- package/dist/locales/fr/cli.json +0 -108
- package/dist/locales/ja/.gitkeep +0 -0
- package/dist/locales/ja/cli.json +0 -108
- package/dist/locales/ko/.gitkeep +0 -0
- package/dist/locales/ko/cli.json +0 -108
- package/dist/locales/pt/.gitkeep +0 -0
- package/dist/locales/pt/cli.json +0 -108
- package/dist/locales/ru/.gitkeep +0 -0
- package/dist/locales/ru/cli.json +0 -269
- package/dist/locales/zh/.gitkeep +0 -0
- package/dist/locales/zh/cli.json +0 -108
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +0 -89
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js +0 -226
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +0 -60
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js +0 -201
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +0 -42
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js +0 -123
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +0 -45
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js +0 -132
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts +0 -33
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js +0 -419
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +0 -56
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js +0 -239
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts +0 -64
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js +0 -305
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts +0 -43
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js +0 -203
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts +0 -32
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +0 -405
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts +0 -59
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-file.js +0 -350
- package/dist/plugins/specweave/lib/hooks/translate-file.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts +0 -13
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js +0 -175
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts +0 -164
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js +0 -73
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/update-ac-status.d.ts +0 -21
- package/dist/plugins/specweave/lib/hooks/update-ac-status.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/update-ac-status.js +0 -162
- package/dist/plugins/specweave/lib/hooks/update-ac-status.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts +0 -29
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js +0 -203
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.d.ts +0 -25
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.js +0 -191
- package/dist/plugins/specweave-ado/lib/enhanced-ado-sync.js.map +0 -1
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.d.ts +0 -57
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.d.ts.map +0 -1
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.js +0 -248
- package/dist/plugins/specweave-kafka/lib/cli/kcat-wrapper.js.map +0 -1
- package/dist/plugins/specweave-kafka/lib/cli/types.d.ts +0 -82
- package/dist/plugins/specweave-kafka/lib/cli/types.d.ts.map +0 -1
- package/dist/plugins/specweave-kafka/lib/cli/types.js +0 -13
- package/dist/plugins/specweave-kafka/lib/cli/types.js.map +0 -1
- package/dist/plugins/specweave-kafka/lib/mcp/detector.d.ts +0 -49
- package/dist/plugins/specweave-kafka/lib/mcp/detector.d.ts.map +0 -1
- package/dist/plugins/specweave-kafka/lib/mcp/detector.js +0 -316
- package/dist/plugins/specweave-kafka/lib/mcp/detector.js.map +0 -1
- package/dist/plugins/specweave-kafka/lib/mcp/types.d.ts +0 -70
- package/dist/plugins/specweave-kafka/lib/mcp/types.d.ts.map +0 -1
- package/dist/plugins/specweave-kafka/lib/mcp/types.js +0 -23
- package/dist/plugins/specweave-kafka/lib/mcp/types.js.map +0 -1
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.d.ts +0 -85
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.d.ts.map +0 -1
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.js +0 -281
- package/dist/plugins/specweave-kafka/lib/utils/partitioning.js.map +0 -1
- package/dist/plugins/specweave-kafka/lib/utils/sizing.d.ts +0 -75
- package/dist/plugins/specweave-kafka/lib/utils/sizing.d.ts.map +0 -1
- package/dist/plugins/specweave-kafka/lib/utils/sizing.js +0 -238
- package/dist/plugins/specweave-kafka/lib/utils/sizing.js.map +0 -1
- package/dist/spec-parser.js +0 -629
- package/dist/src/core/living-docs/spec-distributor.d.ts +0 -180
- package/dist/src/core/living-docs/spec-distributor.d.ts.map +0 -1
- package/dist/src/core/living-docs/spec-distributor.js +0 -1840
- package/dist/src/core/living-docs/spec-distributor.js.map +0 -1
- package/dist/src/core/sync/spec-content-sync.d.ts +0 -88
- package/dist/src/core/sync/spec-content-sync.d.ts.map +0 -1
- package/dist/src/core/sync/spec-content-sync.js +0 -5
- package/dist/src/core/sync/spec-content-sync.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/plugins/specweave-ado/lib/enhanced-ado-sync.js +0 -170
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
# {{projectName}} - Azure Functions Infrastructure
|
|
2
|
+
|
|
3
|
+
🚀 Generated by **SpecWeave Serverless Intelligence**
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This Terraform configuration deploys a serverless application on Azure Functions with the following components:
|
|
8
|
+
|
|
9
|
+
- **Function App**: `{{functionName}}` ({{#if runtime}}{{runtime}}{{else}}Node.js{{/if}})
|
|
10
|
+
- **Managed Identity**: No hardcoded credentials{{#if databaseName}}
|
|
11
|
+
- **Cosmos DB**: NoSQL database with geo-replication{{/if}}
|
|
12
|
+
- **Storage Account**: HTTPS-only with blob versioning
|
|
13
|
+
- **Application Insights**: Real-time monitoring and analytics
|
|
14
|
+
- **Service Plan**: {{#if (eq environment "prod")}}Premium (EP1){{else if (eq environment "staging")}}Basic (B1){{else}}Consumption (Y1){{/if}}
|
|
15
|
+
|
|
16
|
+
## Architecture
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
{{#if databaseName}}
|
|
20
|
+
Internet → Function App (HTTPS) → Cosmos DB
|
|
21
|
+
↓
|
|
22
|
+
Application Insights
|
|
23
|
+
{{else}}
|
|
24
|
+
Internet → Function App (HTTPS)
|
|
25
|
+
↓
|
|
26
|
+
Application Insights
|
|
27
|
+
{{/if}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Prerequisites
|
|
31
|
+
|
|
32
|
+
1. **Azure Account** with active subscription
|
|
33
|
+
2. **Azure CLI** installed and logged in
|
|
34
|
+
3. **Terraform** >= 1.0 installed
|
|
35
|
+
4. **Function deployment package** ready
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
### 1. Login to Azure
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
az login
|
|
43
|
+
az account set --subscription "YOUR_SUBSCRIPTION_ID"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 2. Initialize Terraform
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
terraform init
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 3. Review Plan
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
terraform plan
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 4. Deploy
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
terraform apply
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 5. Deploy Function Code
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Get Function App name
|
|
68
|
+
FUNCTION_APP=$(terraform output -raw function_app_name)
|
|
69
|
+
|
|
70
|
+
# Deploy using Azure CLI
|
|
71
|
+
az functionapp deployment source config-zip \
|
|
72
|
+
-g $(terraform output -raw resource_group_name) \
|
|
73
|
+
-n $FUNCTION_APP \
|
|
74
|
+
--src {{functionName}}.zip
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 6. Test Deployment
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Get Function URL
|
|
81
|
+
FUNCTION_URL=$(terraform output -raw function_app_url)
|
|
82
|
+
|
|
83
|
+
# Test function
|
|
84
|
+
curl $FUNCTION_URL/api/your-function-name
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Configuration
|
|
88
|
+
|
|
89
|
+
### Variables
|
|
90
|
+
|
|
91
|
+
Edit `terraform.tfvars` to customize:
|
|
92
|
+
|
|
93
|
+
```hcl
|
|
94
|
+
project_name = "{{projectName}}"
|
|
95
|
+
environment = "{{environment}}"
|
|
96
|
+
function_name = "{{functionName}}"
|
|
97
|
+
location = "{{#if location}}{{location}}{{else}}eastus{{/if}}"
|
|
98
|
+
runtime = "{{#if runtime}}{{runtime}}{{else}}node{{/if}}"
|
|
99
|
+
{{#if databaseName}}
|
|
100
|
+
database_name = "{{databaseName}}"
|
|
101
|
+
{{/if}}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Environment Variables
|
|
105
|
+
|
|
106
|
+
The Function App has these environment variables:
|
|
107
|
+
|
|
108
|
+
- `ENVIRONMENT`: `{{environment}}`{{#if databaseName}}
|
|
109
|
+
- `COSMOSDB_ENDPOINT`: Cosmos DB endpoint
|
|
110
|
+
- `COSMOSDB_DATABASE`: Database name{{/if}}
|
|
111
|
+
- `FUNCTIONS_WORKER_RUNTIME`: `{{#if runtime}}{{runtime}}{{else}}node{{/if}}`
|
|
112
|
+
|
|
113
|
+
## Outputs
|
|
114
|
+
|
|
115
|
+
After deployment, Terraform provides these outputs:
|
|
116
|
+
|
|
117
|
+
- `function_app_name`: Function App name
|
|
118
|
+
- `function_app_url`: HTTPS endpoint
|
|
119
|
+
- `function_identity_principal_id`: Managed identity for IAM{{#if databaseName}}
|
|
120
|
+
- `cosmosdb_endpoint`: Cosmos DB endpoint{{/if}}
|
|
121
|
+
|
|
122
|
+
## Resource Details
|
|
123
|
+
|
|
124
|
+
### Function App
|
|
125
|
+
|
|
126
|
+
- **Runtime**: {{#if runtime}}{{runtime}}{{else}}Node.js{{/if}}
|
|
127
|
+
- **Plan**: {{#if (eq environment "prod")}}Premium EP1 (always-on, VNet integration){{else if (eq environment "staging")}}Basic B1 (cost-effective){{else}}Consumption Y1 (pay-per-execution){{/if}}
|
|
128
|
+
- **HTTPS Only**: Enforced
|
|
129
|
+
- **Managed Identity**: System-assigned (no credentials in code)
|
|
130
|
+
- **CORS**: {{#if (eq environment "prod")}}Restricted to production domain{{else}}Allow all origins (dev/staging){{/if}}
|
|
131
|
+
|
|
132
|
+
{{#if databaseName}}
|
|
133
|
+
### Cosmos DB
|
|
134
|
+
|
|
135
|
+
- **Name**: `{{databaseName}}-{{environment}}`
|
|
136
|
+
- **API**: SQL (Core)
|
|
137
|
+
- **Consistency**: {{#if (eq environment "prod")}}Session{{else}}Eventual{{/if}}
|
|
138
|
+
- **Geo-Replication**: {{#if (eq environment "prod")}}Multi-region (primary + secondary){{else}}Single region{{/if}}
|
|
139
|
+
- **Backup**: {{#if (eq environment "prod")}}Continuous (point-in-time restore){{else}}Periodic (every 4 hours){{/if}}
|
|
140
|
+
- **Throughput**: {{#if (eq environment "prod")}}Provisioned (400 RU/s){{else}}Serverless (pay-per-request){{/if}}
|
|
141
|
+
|
|
142
|
+
**Cost Optimization**: Serverless mode is ideal for dev/staging with variable workloads.
|
|
143
|
+
{{/if}}
|
|
144
|
+
|
|
145
|
+
### Storage Account
|
|
146
|
+
|
|
147
|
+
- **Replication**: {{#if (eq environment "prod")}}GRS (geo-redundant){{else}}LRS (locally redundant){{/if}}
|
|
148
|
+
- **HTTPS Only**: Enforced
|
|
149
|
+
- **Blob Versioning**: {{#if (eq environment "prod")}}Enabled{{else}}Disabled{{/if}}
|
|
150
|
+
- **Soft Delete**: {{#if (eq environment "prod")}}30 days{{else}}7 days{{/if}}
|
|
151
|
+
|
|
152
|
+
## Security Best Practices
|
|
153
|
+
|
|
154
|
+
✅ **Implemented**:
|
|
155
|
+
- Managed Identity (no hardcoded credentials)
|
|
156
|
+
- HTTPS-only enforcement
|
|
157
|
+
- TLS 1.2 minimum
|
|
158
|
+
- Blob versioning and soft delete{{#if (eq environment "prod")}}
|
|
159
|
+
- Geo-redundant storage
|
|
160
|
+
- Continuous backup for Cosmos DB{{/if}}
|
|
161
|
+
|
|
162
|
+
⚠️ **TODO**:
|
|
163
|
+
- Add Azure Key Vault for secrets management
|
|
164
|
+
- Enable VNet integration for private networking
|
|
165
|
+
- Implement Azure Front Door for global load balancing
|
|
166
|
+
- Add Azure AD authentication
|
|
167
|
+
- Enable Defender for Cloud security monitoring
|
|
168
|
+
|
|
169
|
+
## Cost Estimation
|
|
170
|
+
|
|
171
|
+
### Free Tier (First 12 Months)
|
|
172
|
+
|
|
173
|
+
Azure offers a generous free tier:
|
|
174
|
+
- **Functions**: 1M executions/month (Consumption plan)
|
|
175
|
+
- **Cosmos DB**: 1000 RU/s + 25 GB storage (first 30 days)
|
|
176
|
+
- **Storage**: 5 GB LRS blob storage
|
|
177
|
+
- **Application Insights**: 5 GB data ingestion/month
|
|
178
|
+
|
|
179
|
+
### Estimated Monthly Cost (After Free Tier)
|
|
180
|
+
|
|
181
|
+
**Development (Consumption Plan)**:
|
|
182
|
+
- Function App (Y1): $0.00 + $0.20/million executions
|
|
183
|
+
- Storage (LRS): ~$0.10{{#if databaseName}}
|
|
184
|
+
- Cosmos DB (Serverless): ~$0.25/million requests{{/if}}
|
|
185
|
+
- Application Insights: ~$2.00
|
|
186
|
+
- **Total**: ~$2.50/month (10K requests)
|
|
187
|
+
|
|
188
|
+
**Staging (Basic Plan)**:
|
|
189
|
+
- Function App (B1): ~$13.00/month
|
|
190
|
+
- Storage (LRS): ~$0.10{{#if databaseName}}
|
|
191
|
+
- Cosmos DB (400 RU/s): ~$24.00/month{{/if}}
|
|
192
|
+
- Application Insights: ~$5.00
|
|
193
|
+
- **Total**: ~{{#if databaseName}}$42{{else}}$18{{/if}}/month
|
|
194
|
+
|
|
195
|
+
**Production (Premium Plan)**:
|
|
196
|
+
- Function App (EP1): ~$150/month
|
|
197
|
+
- Storage (GRS): ~$0.50{{#if databaseName}}
|
|
198
|
+
- Cosmos DB (400 RU/s + geo-replication): ~$48.00/month{{/if}}
|
|
199
|
+
- Application Insights: ~$10.00
|
|
200
|
+
- **Total**: ~{{#if databaseName}}$208{{else}}$160{{/if}}/month
|
|
201
|
+
|
|
202
|
+
💡 **Tip**: Use Azure Cost Management and set up budget alerts.
|
|
203
|
+
|
|
204
|
+
## Monitoring
|
|
205
|
+
|
|
206
|
+
### Application Insights Metrics
|
|
207
|
+
|
|
208
|
+
- **Request Rate**: Incoming requests per second
|
|
209
|
+
- **Response Time**: P50, P95, P99 latency
|
|
210
|
+
- **Failure Rate**: HTTP 4xx/5xx errors
|
|
211
|
+
- **Dependency Calls**: {{#if databaseName}}Cosmos DB{{/if}} calls and performance
|
|
212
|
+
- **Exceptions**: Unhandled exceptions with stack traces
|
|
213
|
+
|
|
214
|
+
### Log Analytics
|
|
215
|
+
|
|
216
|
+
- Function logs: Available in Application Insights
|
|
217
|
+
- Live Metrics Stream: Real-time performance monitoring
|
|
218
|
+
- Transaction Search: Detailed request tracing
|
|
219
|
+
|
|
220
|
+
### Recommended Alerts
|
|
221
|
+
|
|
222
|
+
```hcl
|
|
223
|
+
# Add to your Terraform:
|
|
224
|
+
resource "azurerm_monitor_metric_alert" "function_errors" {
|
|
225
|
+
name = "{{functionName}}-errors"
|
|
226
|
+
resource_group_name = azurerm_resource_group.{{snakeCase projectName}}.name
|
|
227
|
+
scopes = [azurerm_linux_function_app.{{snakeCase functionName}}.id]
|
|
228
|
+
description = "Alert when function error rate exceeds threshold"
|
|
229
|
+
severity = 2
|
|
230
|
+
|
|
231
|
+
criteria {
|
|
232
|
+
metric_namespace = "Microsoft.Web/sites"
|
|
233
|
+
metric_name = "Http5xx"
|
|
234
|
+
aggregation = "Total"
|
|
235
|
+
operator = "GreaterThan"
|
|
236
|
+
threshold = 5
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
action {
|
|
240
|
+
action_group_id = azurerm_monitor_action_group.alerts.id
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Deployment Workflow
|
|
246
|
+
|
|
247
|
+
### Development
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
terraform workspace new dev
|
|
251
|
+
terraform workspace select dev
|
|
252
|
+
terraform apply -var="environment=dev"
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Staging
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
terraform workspace new staging
|
|
259
|
+
terraform workspace select staging
|
|
260
|
+
terraform apply -var="environment=staging"
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Production
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
terraform workspace new prod
|
|
267
|
+
terraform workspace select prod
|
|
268
|
+
terraform apply -var="environment=prod"
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## Cleanup
|
|
272
|
+
|
|
273
|
+
To destroy all resources:
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
terraform destroy
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
⚠️ **Warning**: This will permanently delete all data in Cosmos DB!
|
|
280
|
+
|
|
281
|
+
## Troubleshooting
|
|
282
|
+
|
|
283
|
+
**Function not starting?**
|
|
284
|
+
1. Check Application Insights for errors
|
|
285
|
+
2. Verify storage account connection
|
|
286
|
+
3. Review function app settings
|
|
287
|
+
|
|
288
|
+
**Cosmos DB connection issues?**
|
|
289
|
+
1. Verify managed identity role assignment
|
|
290
|
+
2. Check firewall rules
|
|
291
|
+
3. Review connection strings
|
|
292
|
+
|
|
293
|
+
**Deployment failures?**
|
|
294
|
+
1. Ensure Azure CLI is authenticated
|
|
295
|
+
2. Verify subscription permissions
|
|
296
|
+
3. Check resource name uniqueness
|
|
297
|
+
|
|
298
|
+
## Next Steps
|
|
299
|
+
|
|
300
|
+
1. **Add Authentication**: Implement Azure AD or Easy Auth
|
|
301
|
+
2. **Enable VNet**: Secure networking with Virtual Network integration
|
|
302
|
+
3. **Add Key Vault**: Manage secrets securely
|
|
303
|
+
4. **Implement CI/CD**: Use Azure DevOps or GitHub Actions
|
|
304
|
+
5. **Add Custom Domain**: Configure custom domain with SSL
|
|
305
|
+
|
|
306
|
+
## Resources
|
|
307
|
+
|
|
308
|
+
- [Azure Functions Documentation](https://docs.microsoft.com/azure/azure-functions/)
|
|
309
|
+
- [Cosmos DB Documentation](https://docs.microsoft.com/azure/cosmos-db/)
|
|
310
|
+
- [Application Insights Documentation](https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview)
|
|
311
|
+
- [Terraform AzureRM Provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs)
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
**Generated by SpecWeave** | [Learn More](https://spec-weave.com)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "azure-functions",
|
|
3
|
+
"location": "eastus",
|
|
4
|
+
"secondaryLocation": "westus",
|
|
5
|
+
"runtime": "node",
|
|
6
|
+
"nodeVersion": "18",
|
|
7
|
+
"pythonVersion": "3.11",
|
|
8
|
+
"dotnetVersion": "7.0",
|
|
9
|
+
"planSku": {
|
|
10
|
+
"dev": "Y1",
|
|
11
|
+
"staging": "B1",
|
|
12
|
+
"prod": "EP1"
|
|
13
|
+
},
|
|
14
|
+
"storage": {
|
|
15
|
+
"replication": {
|
|
16
|
+
"dev": "LRS",
|
|
17
|
+
"staging": "LRS",
|
|
18
|
+
"prod": "GRS"
|
|
19
|
+
},
|
|
20
|
+
"versioning": {
|
|
21
|
+
"dev": false,
|
|
22
|
+
"staging": false,
|
|
23
|
+
"prod": true
|
|
24
|
+
},
|
|
25
|
+
"softDeleteDays": {
|
|
26
|
+
"dev": 7,
|
|
27
|
+
"staging": 7,
|
|
28
|
+
"prod": 30
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"cosmosDb": {
|
|
32
|
+
"consistencyLevel": {
|
|
33
|
+
"dev": "Eventual",
|
|
34
|
+
"staging": "Session",
|
|
35
|
+
"prod": "Session"
|
|
36
|
+
},
|
|
37
|
+
"backupType": {
|
|
38
|
+
"dev": "Periodic",
|
|
39
|
+
"staging": "Periodic",
|
|
40
|
+
"prod": "Continuous"
|
|
41
|
+
},
|
|
42
|
+
"throughput": {
|
|
43
|
+
"dev": "serverless",
|
|
44
|
+
"staging": 400,
|
|
45
|
+
"prod": 400
|
|
46
|
+
},
|
|
47
|
+
"geoReplication": {
|
|
48
|
+
"dev": false,
|
|
49
|
+
"staging": false,
|
|
50
|
+
"prod": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"monitoring": {
|
|
54
|
+
"retentionDays": {
|
|
55
|
+
"dev": 30,
|
|
56
|
+
"staging": 60,
|
|
57
|
+
"prod": 90
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"security": {
|
|
61
|
+
"httpsOnly": true,
|
|
62
|
+
"minTlsVersion": "TLS1_2",
|
|
63
|
+
"managedIdentity": true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "dev",
|
|
3
|
+
"location": "eastus",
|
|
4
|
+
"planSku": "Y1",
|
|
5
|
+
"alwaysOn": false,
|
|
6
|
+
"storage": {
|
|
7
|
+
"replication": "LRS",
|
|
8
|
+
"versioning": false,
|
|
9
|
+
"softDeleteDays": 7
|
|
10
|
+
},
|
|
11
|
+
"cosmosDb": {
|
|
12
|
+
"mode": "serverless",
|
|
13
|
+
"consistencyLevel": "Eventual",
|
|
14
|
+
"backupType": "Periodic",
|
|
15
|
+
"backupIntervalMinutes": 240,
|
|
16
|
+
"backupRetentionHours": 8,
|
|
17
|
+
"geoReplication": false
|
|
18
|
+
},
|
|
19
|
+
"monitoring": {
|
|
20
|
+
"retentionDays": 30
|
|
21
|
+
},
|
|
22
|
+
"cors": {
|
|
23
|
+
"allowedOrigins": ["*"]
|
|
24
|
+
},
|
|
25
|
+
"costOptimization": {
|
|
26
|
+
"description": "Free tier optimized - Consumption plan + Serverless Cosmos DB",
|
|
27
|
+
"estimatedMonthlyCost": "$2-5",
|
|
28
|
+
"freeTierEligible": true
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "prod",
|
|
3
|
+
"location": "eastus",
|
|
4
|
+
"secondaryLocation": "westus",
|
|
5
|
+
"planSku": "EP1",
|
|
6
|
+
"alwaysOn": true,
|
|
7
|
+
"storage": {
|
|
8
|
+
"replication": "GRS",
|
|
9
|
+
"versioning": true,
|
|
10
|
+
"softDeleteDays": 30
|
|
11
|
+
},
|
|
12
|
+
"cosmosDb": {
|
|
13
|
+
"mode": "provisioned",
|
|
14
|
+
"throughput": 400,
|
|
15
|
+
"consistencyLevel": "Session",
|
|
16
|
+
"backupType": "Continuous",
|
|
17
|
+
"geoReplication": true
|
|
18
|
+
},
|
|
19
|
+
"monitoring": {
|
|
20
|
+
"retentionDays": 90
|
|
21
|
+
},
|
|
22
|
+
"cors": {
|
|
23
|
+
"allowedOrigins": ["https://*.example.com"]
|
|
24
|
+
},
|
|
25
|
+
"security": {
|
|
26
|
+
"preventResourceGroupDeletion": true,
|
|
27
|
+
"enableAdvancedThreatProtection": true
|
|
28
|
+
},
|
|
29
|
+
"costOptimization": {
|
|
30
|
+
"description": "Production-ready - Premium plan + Geo-replicated Cosmos DB",
|
|
31
|
+
"estimatedMonthlyCost": "$200-250",
|
|
32
|
+
"freeTierEligible": false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "staging",
|
|
3
|
+
"location": "eastus",
|
|
4
|
+
"planSku": "B1",
|
|
5
|
+
"alwaysOn": false,
|
|
6
|
+
"storage": {
|
|
7
|
+
"replication": "LRS",
|
|
8
|
+
"versioning": false,
|
|
9
|
+
"softDeleteDays": 7
|
|
10
|
+
},
|
|
11
|
+
"cosmosDb": {
|
|
12
|
+
"mode": "provisioned",
|
|
13
|
+
"throughput": 400,
|
|
14
|
+
"consistencyLevel": "Session",
|
|
15
|
+
"backupType": "Periodic",
|
|
16
|
+
"backupIntervalMinutes": 240,
|
|
17
|
+
"backupRetentionHours": 8,
|
|
18
|
+
"geoReplication": false
|
|
19
|
+
},
|
|
20
|
+
"monitoring": {
|
|
21
|
+
"retentionDays": 60
|
|
22
|
+
},
|
|
23
|
+
"cors": {
|
|
24
|
+
"allowedOrigins": ["*"]
|
|
25
|
+
},
|
|
26
|
+
"costOptimization": {
|
|
27
|
+
"description": "Cost-effective for testing - Basic plan + Provisioned Cosmos DB",
|
|
28
|
+
"estimatedMonthlyCost": "$40-50",
|
|
29
|
+
"freeTierEligible": false
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# IAM Roles and Permissions for Azure Functions
|
|
2
|
+
# Project: {{projectName}}
|
|
3
|
+
|
|
4
|
+
{{#if databaseName}}
|
|
5
|
+
###############################
|
|
6
|
+
# Cosmos DB Access for Function App
|
|
7
|
+
###############################
|
|
8
|
+
|
|
9
|
+
# Grant Function App managed identity access to Cosmos DB
|
|
10
|
+
resource "azurerm_cosmosdb_sql_role_assignment" "{{snakeCase functionName}}" {
|
|
11
|
+
resource_group_name = azurerm_resource_group.{{snakeCase projectName}}.name
|
|
12
|
+
account_name = azurerm_cosmosdb_account.{{snakeCase databaseName}}.name
|
|
13
|
+
role_definition_id = "${azurerm_cosmosdb_account.{{snakeCase databaseName}}.id}/sqlRoleDefinitions/00000000-0000-0000-0000-000000000002"
|
|
14
|
+
principal_id = azurerm_linux_function_app.{{snakeCase functionName}}.identity[0].principal_id
|
|
15
|
+
scope = azurerm_cosmosdb_account.{{snakeCase databaseName}}.id
|
|
16
|
+
}
|
|
17
|
+
{{/if}}
|
|
18
|
+
|
|
19
|
+
###############################
|
|
20
|
+
# Storage Account Access
|
|
21
|
+
###############################
|
|
22
|
+
|
|
23
|
+
# Function App already has built-in access via storage account key
|
|
24
|
+
# For Key Vault secrets (future enhancement):
|
|
25
|
+
# resource "azurerm_key_vault_access_policy" "function_app" {
|
|
26
|
+
# key_vault_id = azurerm_key_vault.main.id
|
|
27
|
+
# tenant_id = data.azurerm_client_config.current.tenant_id
|
|
28
|
+
# object_id = azurerm_linux_function_app.{{snakeCase functionName}}.identity[0].principal_id
|
|
29
|
+
#
|
|
30
|
+
# secret_permissions = [
|
|
31
|
+
# "Get",
|
|
32
|
+
# "List"
|
|
33
|
+
# ]
|
|
34
|
+
# }
|