specweave 0.21.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +429 -10
- package/README.md +33 -3
- package/dist/plugins/specweave-github/lib/CodeValidator.d.ts +101 -0
- package/dist/plugins/specweave-github/lib/CodeValidator.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/CodeValidator.js +219 -0
- package/dist/plugins/specweave-github/lib/CodeValidator.js.map +1 -0
- 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/ThreeLayerSyncManager.d.ts +182 -0
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.js +603 -0
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.js.map +1 -0
- package/dist/plugins/specweave-github/lib/types.d.ts +34 -0
- package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -1
- 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/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +60 -5
- package/dist/src/cli/commands/init.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 +206 -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 +60 -0
- package/dist/src/core/living-docs/SpecDistributor.d.ts.map +1 -0
- package/dist/src/core/living-docs/SpecDistributor.js +228 -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/project-detector.d.ts.map +1 -1
- package/dist/src/core/living-docs/project-detector.js +38 -0
- package/dist/src/core/living-docs/project-detector.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/config.d.ts +23 -0
- package/dist/src/core/types/config.d.ts.map +1 -1
- package/dist/src/core/types/config.js +10 -0
- package/dist/src/core/types/config.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/ArchitecturePresenter.d.ts +47 -0
- package/dist/src/init/ArchitecturePresenter.d.ts.map +1 -0
- package/dist/src/init/ArchitecturePresenter.js +180 -0
- package/dist/src/init/ArchitecturePresenter.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 +238 -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/CostEstimator.d.ts +52 -0
- package/dist/src/init/architecture/CostEstimator.d.ts.map +1 -0
- package/dist/src/init/architecture/CostEstimator.js +107 -0
- package/dist/src/init/architecture/CostEstimator.js.map +1 -0
- package/dist/src/init/architecture/InfrastructureMapper.d.ts +41 -0
- package/dist/src/init/architecture/InfrastructureMapper.d.ts.map +1 -0
- package/dist/src/init/architecture/InfrastructureMapper.js +140 -0
- package/dist/src/init/architecture/InfrastructureMapper.js.map +1 -0
- package/dist/src/init/architecture/ProjectGenerator.d.ts +44 -0
- package/dist/src/init/architecture/ProjectGenerator.d.ts.map +1 -0
- package/dist/src/init/architecture/ProjectGenerator.js +216 -0
- package/dist/src/init/architecture/ProjectGenerator.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 +17 -10
- 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-ado/lib/enhanced-ado-sync.js +170 -0
- package/plugins/specweave-github/lib/CodeValidator.js +195 -0
- package/plugins/specweave-github/lib/CodeValidator.ts +284 -0
- package/plugins/specweave-github/lib/IssueStateManager.js +117 -0
- package/plugins/specweave-github/lib/IssueStateManager.ts +231 -0
- package/plugins/specweave-github/lib/ThreeLayerSyncManager.js +545 -0
- package/plugins/specweave-github/lib/ThreeLayerSyncManager.ts +809 -0
- package/plugins/specweave-github/lib/types.ts +38 -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-release/hooks/.specweave/logs/dora-tracking.log +1200 -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/AGENTS.md.template +22 -1
- package/src/templates/tasks.md.template +51 -33
- 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/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
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# {{projectName}} - AWS Lambda Infrastructure
|
|
2
|
+
|
|
3
|
+
🚀 Generated by **SpecWeave Serverless Intelligence**
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This Terraform configuration deploys a serverless application on AWS Lambda with the following components:
|
|
8
|
+
|
|
9
|
+
- **Lambda Function**: `{{functionName}}` ({{runtime}}){{#if apiName}}
|
|
10
|
+
- **API Gateway**: HTTP API with CORS support{{/if}}{{#if databaseName}}
|
|
11
|
+
- **DynamoDB Table**: NoSQL database for data persistence{{/if}}
|
|
12
|
+
- **IAM Roles**: Least-privilege security policies
|
|
13
|
+
- **CloudWatch Logs**: Centralized logging and monitoring
|
|
14
|
+
|
|
15
|
+
## Architecture
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
{{#if apiName}}
|
|
19
|
+
Internet → API Gateway → Lambda Function{{#if databaseName}} → DynamoDB{{/if}}
|
|
20
|
+
{{else}}
|
|
21
|
+
Lambda Function{{#if databaseName}} → DynamoDB{{/if}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Prerequisites
|
|
26
|
+
|
|
27
|
+
1. **AWS Account** with appropriate permissions
|
|
28
|
+
2. **AWS CLI** configured with credentials
|
|
29
|
+
3. **Terraform** >= 1.0 installed
|
|
30
|
+
4. **Lambda deployment package**: `{{functionName}}.zip` with your function code
|
|
31
|
+
|
|
32
|
+
## Quick Start
|
|
33
|
+
|
|
34
|
+
### 1. Configure AWS Credentials
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
aws configure
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 2. Initialize Terraform
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
terraform init
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 3. Review Plan
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
terraform plan
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 4. Deploy
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
terraform apply
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 5. Test Deployment
|
|
59
|
+
|
|
60
|
+
{{#if apiName}}
|
|
61
|
+
```bash
|
|
62
|
+
# Get API endpoint
|
|
63
|
+
API_ENDPOINT=$(terraform output -raw api_endpoint)
|
|
64
|
+
|
|
65
|
+
# Test API
|
|
66
|
+
curl $API_ENDPOINT
|
|
67
|
+
```
|
|
68
|
+
{{else}}
|
|
69
|
+
```bash
|
|
70
|
+
# Invoke Lambda directly
|
|
71
|
+
aws lambda invoke \
|
|
72
|
+
--function-name {{functionName}}-{{environment}} \
|
|
73
|
+
--payload '{"test": "data"}' \
|
|
74
|
+
response.json
|
|
75
|
+
|
|
76
|
+
cat response.json
|
|
77
|
+
```
|
|
78
|
+
{{/if}}
|
|
79
|
+
|
|
80
|
+
## Configuration
|
|
81
|
+
|
|
82
|
+
### Variables
|
|
83
|
+
|
|
84
|
+
Edit `terraform.tfvars` to customize:
|
|
85
|
+
|
|
86
|
+
```hcl
|
|
87
|
+
project_name = "{{projectName}}"
|
|
88
|
+
environment = "{{environment}}"
|
|
89
|
+
function_name = "{{functionName}}"
|
|
90
|
+
runtime = "{{runtime}}"
|
|
91
|
+
memory_size = {{#if memorySize}}{{memorySize}}{{else}}256{{/if}}
|
|
92
|
+
timeout = {{#if timeout}}{{timeout}}{{else}}30{{/if}}
|
|
93
|
+
aws_region = "{{#if region}}{{region}}{{else}}us-east-1{{/if}}"
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Environment Variables
|
|
97
|
+
|
|
98
|
+
The Lambda function has these environment variables:
|
|
99
|
+
|
|
100
|
+
- `ENVIRONMENT`: `{{environment}}`{{#if databaseName}}
|
|
101
|
+
- `DYNAMODB_TABLE`: DynamoDB table name{{/if}}{{#if apiName}}
|
|
102
|
+
- `API_ENDPOINT`: API Gateway endpoint{{/if}}
|
|
103
|
+
|
|
104
|
+
## Outputs
|
|
105
|
+
|
|
106
|
+
After deployment, Terraform provides these outputs:
|
|
107
|
+
|
|
108
|
+
- `lambda_function_arn`: Lambda function ARN
|
|
109
|
+
- `lambda_function_name`: Lambda function name{{#if apiName}}
|
|
110
|
+
- `api_endpoint`: API Gateway URL{{/if}}{{#if databaseName}}
|
|
111
|
+
- `dynamodb_table_name`: DynamoDB table name{{/if}}
|
|
112
|
+
|
|
113
|
+
## Resource Details
|
|
114
|
+
|
|
115
|
+
### Lambda Function
|
|
116
|
+
|
|
117
|
+
- **Runtime**: {{runtime}}
|
|
118
|
+
- **Memory**: {{#if memorySize}}{{memorySize}}{{else}}256{{/if}} MB
|
|
119
|
+
- **Timeout**: {{#if timeout}}{{timeout}}{{else}}30{{/if}} seconds
|
|
120
|
+
- **Handler**: {{#if handler}}{{handler}}{{else}}index.handler{{/if}}
|
|
121
|
+
- **Execution Role**: Least-privilege IAM role with CloudWatch Logs{{#if databaseName}} and DynamoDB access{{/if}}
|
|
122
|
+
|
|
123
|
+
{{#if apiName}}
|
|
124
|
+
### API Gateway
|
|
125
|
+
|
|
126
|
+
- **Type**: HTTP API (lower cost than REST API)
|
|
127
|
+
- **CORS**: {{#if (eq environment "prod")}}Restricted to production domain{{else}}Allow all origins (dev/staging){{/if}}
|
|
128
|
+
- **Logging**: CloudWatch access logs enabled
|
|
129
|
+
- **Authentication**: None (add authentication in future iteration)
|
|
130
|
+
|
|
131
|
+
### API Routes
|
|
132
|
+
|
|
133
|
+
- `ANY /{proxy+}`: Proxies all requests to Lambda
|
|
134
|
+
{{/if}}
|
|
135
|
+
|
|
136
|
+
{{#if databaseName}}
|
|
137
|
+
### DynamoDB Table
|
|
138
|
+
|
|
139
|
+
- **Name**: `{{databaseName}}-{{environment}}`
|
|
140
|
+
- **Billing Mode**: PAY_PER_REQUEST (on-demand)
|
|
141
|
+
- **Primary Key**: `id` (String)
|
|
142
|
+
- **Point-in-Time Recovery**: {{#if (eq environment "prod")}}Enabled (production){{else}}Disabled (dev/staging){{/if}}
|
|
143
|
+
|
|
144
|
+
**Cost Optimization**: On-demand billing is cost-effective for variable workloads (no upfront capacity planning required).
|
|
145
|
+
{{/if}}
|
|
146
|
+
|
|
147
|
+
## Security Best Practices
|
|
148
|
+
|
|
149
|
+
✅ **Implemented**:
|
|
150
|
+
- Least-privilege IAM roles
|
|
151
|
+
- CloudWatch Logs encryption at rest
|
|
152
|
+
- Environment-specific configurations{{#if (eq environment "prod")}}
|
|
153
|
+
- Point-in-time recovery for DynamoDB (production){{/if}}
|
|
154
|
+
|
|
155
|
+
⚠️ **TODO**:
|
|
156
|
+
- Add API Gateway authentication (Cognito, IAM, or Lambda authorizer)
|
|
157
|
+
- Enable VPC integration for private subnets
|
|
158
|
+
- Add secrets management (AWS Secrets Manager)
|
|
159
|
+
- Implement WAF rules for API Gateway
|
|
160
|
+
- Enable X-Ray tracing for debugging
|
|
161
|
+
|
|
162
|
+
## Cost Estimation
|
|
163
|
+
|
|
164
|
+
### Free Tier (First 12 Months)
|
|
165
|
+
|
|
166
|
+
- **Lambda**: 1M requests/month, 400K GB-seconds/month
|
|
167
|
+
- **API Gateway**: 1M requests/month
|
|
168
|
+
- **DynamoDB**: 25 GB storage, 25 read/write capacity units{{#if databaseName}}
|
|
169
|
+
- **CloudWatch Logs**: 5 GB ingestion/month{{/if}}
|
|
170
|
+
|
|
171
|
+
### Estimated Monthly Cost (After Free Tier)
|
|
172
|
+
|
|
173
|
+
**Low Traffic** (10K requests/month):
|
|
174
|
+
- Lambda: ~$0.20
|
|
175
|
+
- API Gateway: ~$0.01{{#if databaseName}}
|
|
176
|
+
- DynamoDB: ~$0.25{{/if}}
|
|
177
|
+
- **Total**: ~$0.50/month
|
|
178
|
+
|
|
179
|
+
**Medium Traffic** (1M requests/month):
|
|
180
|
+
- Lambda: ~$1.50
|
|
181
|
+
- API Gateway: ~$1.00{{#if databaseName}}
|
|
182
|
+
- DynamoDB: ~$1.25{{/if}}
|
|
183
|
+
- **Total**: ~$4.00/month
|
|
184
|
+
|
|
185
|
+
**High Traffic** (10M requests/month):
|
|
186
|
+
- Lambda: ~$18.00
|
|
187
|
+
- API Gateway: ~$10.00{{#if databaseName}}
|
|
188
|
+
- DynamoDB: ~$12.50{{/if}}
|
|
189
|
+
- **Total**: ~$40.00/month
|
|
190
|
+
|
|
191
|
+
💡 **Tip**: Monitor costs in AWS Cost Explorer and set up billing alerts.
|
|
192
|
+
|
|
193
|
+
## Monitoring
|
|
194
|
+
|
|
195
|
+
### CloudWatch Metrics
|
|
196
|
+
|
|
197
|
+
- **Lambda Invocations**: Request count
|
|
198
|
+
- **Lambda Duration**: Execution time (p50, p95, p99)
|
|
199
|
+
- **Lambda Errors**: Error rate and types
|
|
200
|
+
- **Lambda Throttles**: Concurrent execution limit hits{{#if apiName}}
|
|
201
|
+
- **API Gateway 4XX/5XX**: Client and server errors{{/if}}{{#if databaseName}}
|
|
202
|
+
- **DynamoDB Consumed RCUs/WCUs**: Read/write capacity{{/if}}
|
|
203
|
+
|
|
204
|
+
### CloudWatch Logs
|
|
205
|
+
|
|
206
|
+
- Lambda logs: `/aws/lambda/{{functionName}}-{{environment}}`{{#if apiName}}
|
|
207
|
+
- API Gateway logs: `/aws/apigateway/{{apiName}}-{{environment}}`{{/if}}
|
|
208
|
+
|
|
209
|
+
### Alarms (Recommended)
|
|
210
|
+
|
|
211
|
+
```hcl
|
|
212
|
+
# Add to your Terraform:
|
|
213
|
+
resource "aws_cloudwatch_metric_alarm" "lambda_errors" {
|
|
214
|
+
alarm_name = "{{functionName}}-errors"
|
|
215
|
+
comparison_operator = "GreaterThanThreshold"
|
|
216
|
+
evaluation_periods = "2"
|
|
217
|
+
metric_name = "Errors"
|
|
218
|
+
namespace = "AWS/Lambda"
|
|
219
|
+
period = "60"
|
|
220
|
+
statistic = "Sum"
|
|
221
|
+
threshold = "5"
|
|
222
|
+
alarm_description = "Lambda function error rate too high"
|
|
223
|
+
alarm_actions = [aws_sns_topic.alerts.arn]
|
|
224
|
+
}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
## Deployment Workflow
|
|
228
|
+
|
|
229
|
+
### Development
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
terraform workspace new dev
|
|
233
|
+
terraform workspace select dev
|
|
234
|
+
terraform apply -var="environment=dev"
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Staging
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
terraform workspace new staging
|
|
241
|
+
terraform workspace select staging
|
|
242
|
+
terraform apply -var="environment=staging"
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Production
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
terraform workspace new prod
|
|
249
|
+
terraform workspace select prod
|
|
250
|
+
terraform apply -var="environment=prod"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
## Cleanup
|
|
254
|
+
|
|
255
|
+
To destroy all resources:
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
terraform destroy
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
⚠️ **Warning**: This will permanently delete all data in DynamoDB!
|
|
262
|
+
|
|
263
|
+
## Next Steps
|
|
264
|
+
|
|
265
|
+
1. **Add Authentication**: Implement Cognito or API Key authentication
|
|
266
|
+
2. **Enable Monitoring**: Set up CloudWatch alarms for errors and latency
|
|
267
|
+
3. **Implement CI/CD**: Automate deployments with GitHub Actions or AWS CodePipeline
|
|
268
|
+
4. **Add Testing**: Create integration tests for API endpoints
|
|
269
|
+
5. **Optimize Costs**: Review CloudWatch logs retention and DynamoDB capacity
|
|
270
|
+
|
|
271
|
+
## Resources
|
|
272
|
+
|
|
273
|
+
- [AWS Lambda Documentation](https://docs.aws.amazon.com/lambda/)
|
|
274
|
+
- [API Gateway Documentation](https://docs.aws.amazon.com/apigateway/){{#if databaseName}}
|
|
275
|
+
- [DynamoDB Documentation](https://docs.aws.amazon.com/dynamodb/){{/if}}
|
|
276
|
+
- [Terraform AWS Provider](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
**Generated by SpecWeave** | [Learn More](https://spec-weave.com)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "aws-lambda",
|
|
3
|
+
"region": "us-east-1",
|
|
4
|
+
"secondaryRegion": "us-west-2",
|
|
5
|
+
"runtime": "nodejs18.x",
|
|
6
|
+
"handler": "index.handler",
|
|
7
|
+
"lambda": {
|
|
8
|
+
"memorySize": {
|
|
9
|
+
"dev": 128,
|
|
10
|
+
"staging": 256,
|
|
11
|
+
"prod": 512
|
|
12
|
+
},
|
|
13
|
+
"timeout": {
|
|
14
|
+
"dev": 3,
|
|
15
|
+
"staging": 10,
|
|
16
|
+
"prod": 30
|
|
17
|
+
},
|
|
18
|
+
"reservedConcurrentExecutions": {
|
|
19
|
+
"dev": null,
|
|
20
|
+
"staging": 10,
|
|
21
|
+
"prod": 100
|
|
22
|
+
},
|
|
23
|
+
"provisionedConcurrency": {
|
|
24
|
+
"dev": 0,
|
|
25
|
+
"staging": 0,
|
|
26
|
+
"prod": 5
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"dynamodb": {
|
|
30
|
+
"billingMode": {
|
|
31
|
+
"dev": "PAY_PER_REQUEST",
|
|
32
|
+
"staging": "PAY_PER_REQUEST",
|
|
33
|
+
"prod": "PROVISIONED"
|
|
34
|
+
},
|
|
35
|
+
"readCapacity": {
|
|
36
|
+
"dev": null,
|
|
37
|
+
"staging": null,
|
|
38
|
+
"prod": 5
|
|
39
|
+
},
|
|
40
|
+
"writeCapacity": {
|
|
41
|
+
"dev": null,
|
|
42
|
+
"staging": null,
|
|
43
|
+
"prod": 5
|
|
44
|
+
},
|
|
45
|
+
"pointInTimeRecovery": {
|
|
46
|
+
"dev": false,
|
|
47
|
+
"staging": false,
|
|
48
|
+
"prod": true
|
|
49
|
+
},
|
|
50
|
+
"streamEnabled": {
|
|
51
|
+
"dev": false,
|
|
52
|
+
"staging": false,
|
|
53
|
+
"prod": true
|
|
54
|
+
},
|
|
55
|
+
"ttlEnabled": {
|
|
56
|
+
"dev": false,
|
|
57
|
+
"staging": false,
|
|
58
|
+
"prod": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"cloudwatch": {
|
|
62
|
+
"retentionDays": {
|
|
63
|
+
"dev": 7,
|
|
64
|
+
"staging": 14,
|
|
65
|
+
"prod": 30
|
|
66
|
+
},
|
|
67
|
+
"metricsEnabled": {
|
|
68
|
+
"dev": false,
|
|
69
|
+
"staging": true,
|
|
70
|
+
"prod": true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"apiGateway": {
|
|
74
|
+
"throttling": {
|
|
75
|
+
"dev": {
|
|
76
|
+
"rateLimit": 10,
|
|
77
|
+
"burstLimit": 20
|
|
78
|
+
},
|
|
79
|
+
"staging": {
|
|
80
|
+
"rateLimit": 100,
|
|
81
|
+
"burstLimit": 200
|
|
82
|
+
},
|
|
83
|
+
"prod": {
|
|
84
|
+
"rateLimit": 1000,
|
|
85
|
+
"burstLimit": 2000
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"cors": {
|
|
89
|
+
"dev": ["*"],
|
|
90
|
+
"staging": ["https://staging.example.com"],
|
|
91
|
+
"prod": ["https://example.com"]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"monitoring": {
|
|
95
|
+
"xrayEnabled": {
|
|
96
|
+
"dev": false,
|
|
97
|
+
"staging": true,
|
|
98
|
+
"prod": true
|
|
99
|
+
},
|
|
100
|
+
"alarms": {
|
|
101
|
+
"dev": false,
|
|
102
|
+
"staging": true,
|
|
103
|
+
"prod": true
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"security": {
|
|
107
|
+
"kmsEncryption": {
|
|
108
|
+
"dev": false,
|
|
109
|
+
"staging": false,
|
|
110
|
+
"prod": true
|
|
111
|
+
},
|
|
112
|
+
"vpcEnabled": {
|
|
113
|
+
"dev": false,
|
|
114
|
+
"staging": false,
|
|
115
|
+
"prod": true
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "dev",
|
|
3
|
+
"region": "us-east-1",
|
|
4
|
+
"lambda": {
|
|
5
|
+
"memorySize": 128,
|
|
6
|
+
"timeout": 3,
|
|
7
|
+
"reservedConcurrentExecutions": null,
|
|
8
|
+
"provisionedConcurrency": 0
|
|
9
|
+
},
|
|
10
|
+
"dynamodb": {
|
|
11
|
+
"billingMode": "PAY_PER_REQUEST",
|
|
12
|
+
"pointInTimeRecovery": false,
|
|
13
|
+
"streamEnabled": false,
|
|
14
|
+
"ttlEnabled": false
|
|
15
|
+
},
|
|
16
|
+
"cloudwatch": {
|
|
17
|
+
"retentionDays": 7,
|
|
18
|
+
"metricsEnabled": false
|
|
19
|
+
},
|
|
20
|
+
"apiGateway": {
|
|
21
|
+
"throttling": {
|
|
22
|
+
"rateLimit": 10,
|
|
23
|
+
"burstLimit": 20
|
|
24
|
+
},
|
|
25
|
+
"cors": ["*"]
|
|
26
|
+
},
|
|
27
|
+
"monitoring": {
|
|
28
|
+
"xrayEnabled": false,
|
|
29
|
+
"alarms": false
|
|
30
|
+
},
|
|
31
|
+
"security": {
|
|
32
|
+
"kmsEncryption": false,
|
|
33
|
+
"vpcEnabled": false
|
|
34
|
+
},
|
|
35
|
+
"costOptimization": {
|
|
36
|
+
"description": "Free tier optimized - On-demand billing, minimal resources",
|
|
37
|
+
"estimatedMonthlyCost": "$0-5",
|
|
38
|
+
"freeTierEligible": true,
|
|
39
|
+
"notes": [
|
|
40
|
+
"Uses AWS Lambda free tier (1M requests/month, 400K GB-seconds)",
|
|
41
|
+
"DynamoDB on-demand pricing (25GB storage, 25 RCU/WCU free)",
|
|
42
|
+
"CloudWatch Logs 5GB free per month",
|
|
43
|
+
"API Gateway 1M requests free per month (first 12 months)"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "prod",
|
|
3
|
+
"region": "us-east-1",
|
|
4
|
+
"secondaryRegion": "us-west-2",
|
|
5
|
+
"lambda": {
|
|
6
|
+
"memorySize": 512,
|
|
7
|
+
"timeout": 30,
|
|
8
|
+
"reservedConcurrentExecutions": 100,
|
|
9
|
+
"provisionedConcurrency": 5
|
|
10
|
+
},
|
|
11
|
+
"dynamodb": {
|
|
12
|
+
"billingMode": "PROVISIONED",
|
|
13
|
+
"readCapacity": 5,
|
|
14
|
+
"writeCapacity": 5,
|
|
15
|
+
"pointInTimeRecovery": true,
|
|
16
|
+
"streamEnabled": true,
|
|
17
|
+
"ttlEnabled": true,
|
|
18
|
+
"globalTables": true
|
|
19
|
+
},
|
|
20
|
+
"cloudwatch": {
|
|
21
|
+
"retentionDays": 30,
|
|
22
|
+
"metricsEnabled": true
|
|
23
|
+
},
|
|
24
|
+
"apiGateway": {
|
|
25
|
+
"throttling": {
|
|
26
|
+
"rateLimit": 1000,
|
|
27
|
+
"burstLimit": 2000
|
|
28
|
+
},
|
|
29
|
+
"cors": ["https://example.com"],
|
|
30
|
+
"caching": {
|
|
31
|
+
"enabled": true,
|
|
32
|
+
"ttlSeconds": 300
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"monitoring": {
|
|
36
|
+
"xrayEnabled": true,
|
|
37
|
+
"alarms": true,
|
|
38
|
+
"dashboards": true
|
|
39
|
+
},
|
|
40
|
+
"security": {
|
|
41
|
+
"kmsEncryption": true,
|
|
42
|
+
"vpcEnabled": true,
|
|
43
|
+
"waf": true,
|
|
44
|
+
"secretsManager": true
|
|
45
|
+
},
|
|
46
|
+
"backup": {
|
|
47
|
+
"enabled": true,
|
|
48
|
+
"retentionDays": 35,
|
|
49
|
+
"crossRegionCopy": true
|
|
50
|
+
},
|
|
51
|
+
"costOptimization": {
|
|
52
|
+
"description": "Production-ready - High availability, provisioned capacity, global tables",
|
|
53
|
+
"estimatedMonthlyCost": "$150-250",
|
|
54
|
+
"freeTierEligible": false,
|
|
55
|
+
"notes": [
|
|
56
|
+
"512MB memory for optimal performance",
|
|
57
|
+
"Provisioned concurrency (5 instances) eliminates cold starts",
|
|
58
|
+
"DynamoDB provisioned capacity for predictable performance",
|
|
59
|
+
"Point-in-time recovery and global tables for disaster recovery",
|
|
60
|
+
"KMS encryption at rest for compliance (SOC 2, HIPAA)",
|
|
61
|
+
"VPC integration for private resource access",
|
|
62
|
+
"WAF protection against common web exploits",
|
|
63
|
+
"30-day log retention for auditing",
|
|
64
|
+
"Cross-region backups for business continuity"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"environment": "staging",
|
|
3
|
+
"region": "us-east-1",
|
|
4
|
+
"lambda": {
|
|
5
|
+
"memorySize": 256,
|
|
6
|
+
"timeout": 10,
|
|
7
|
+
"reservedConcurrentExecutions": 10,
|
|
8
|
+
"provisionedConcurrency": 0
|
|
9
|
+
},
|
|
10
|
+
"dynamodb": {
|
|
11
|
+
"billingMode": "PAY_PER_REQUEST",
|
|
12
|
+
"pointInTimeRecovery": false,
|
|
13
|
+
"streamEnabled": false,
|
|
14
|
+
"ttlEnabled": false
|
|
15
|
+
},
|
|
16
|
+
"cloudwatch": {
|
|
17
|
+
"retentionDays": 14,
|
|
18
|
+
"metricsEnabled": true
|
|
19
|
+
},
|
|
20
|
+
"apiGateway": {
|
|
21
|
+
"throttling": {
|
|
22
|
+
"rateLimit": 100,
|
|
23
|
+
"burstLimit": 200
|
|
24
|
+
},
|
|
25
|
+
"cors": ["https://staging.example.com"]
|
|
26
|
+
},
|
|
27
|
+
"monitoring": {
|
|
28
|
+
"xrayEnabled": true,
|
|
29
|
+
"alarms": true
|
|
30
|
+
},
|
|
31
|
+
"security": {
|
|
32
|
+
"kmsEncryption": false,
|
|
33
|
+
"vpcEnabled": false
|
|
34
|
+
},
|
|
35
|
+
"costOptimization": {
|
|
36
|
+
"description": "Testing environment - Moderate resources, on-demand billing",
|
|
37
|
+
"estimatedMonthlyCost": "$20-40",
|
|
38
|
+
"freeTierEligible": false,
|
|
39
|
+
"notes": [
|
|
40
|
+
"256MB memory for realistic performance testing",
|
|
41
|
+
"10 concurrent executions limit to prevent runaway costs",
|
|
42
|
+
"X-Ray tracing enabled for debugging",
|
|
43
|
+
"CloudWatch alarms for error monitoring",
|
|
44
|
+
"14-day log retention for troubleshooting"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|