@windagency/valora 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +505 -0
- package/bin/mcp.js +10 -0
- package/bin/valora.js +10 -0
- package/data/agents/.gitkeep +0 -0
- package/data/agents/_meta/.gitkeep +0 -0
- package/data/agents/_meta/schema.json +352 -0
- package/data/agents/_template.md +72 -0
- package/data/agents/asserter.md +821 -0
- package/data/agents/expertises/.gitkeep +0 -0
- package/data/agents/expertises/_template/.gitkeep +0 -0
- package/data/agents/expertises/_template/registry.json +14 -0
- package/data/agents/lead.md +566 -0
- package/data/agents/platform-engineer.md +486 -0
- package/data/agents/product-manager.md +557 -0
- package/data/agents/qa.md +593 -0
- package/data/agents/registry.json +766 -0
- package/data/agents/secops-engineer.md +693 -0
- package/data/agents/software-engineer-typescript-backend.md +698 -0
- package/data/agents/software-engineer-typescript-frontend-react.md +512 -0
- package/data/agents/software-engineer-typescript-frontend.md +460 -0
- package/data/agents/software-engineer-typescript.md +371 -0
- package/data/agents/ui-ux-designer.md +534 -0
- package/data/commands/.gitkeep +0 -0
- package/data/commands/_meta/.gitkeep +0 -0
- package/data/commands/_meta/schema.json +317 -0
- package/data/commands/_template.md +65 -0
- package/data/commands/assert.md +895 -0
- package/data/commands/commit.md +1078 -0
- package/data/commands/create-backlog.md +402 -0
- package/data/commands/create-pr.md +401 -0
- package/data/commands/create-prd.md +242 -0
- package/data/commands/feedback.md +600 -0
- package/data/commands/fetch-task.md +665 -0
- package/data/commands/gather-knowledge.md +856 -0
- package/data/commands/generate-all-documentation.md +550 -0
- package/data/commands/generate-docs.md +738 -0
- package/data/commands/implement.md +511 -0
- package/data/commands/plan-architecture.md +269 -0
- package/data/commands/plan-implementation.md +312 -0
- package/data/commands/plan.md +582 -0
- package/data/commands/pre-check.md +553 -0
- package/data/commands/refine-specs.md +271 -0
- package/data/commands/refine-task.md +957 -0
- package/data/commands/registry.json +283 -0
- package/data/commands/review-code.md +680 -0
- package/data/commands/review-functional.md +235 -0
- package/data/commands/review-plan.md +546 -0
- package/data/commands/test.md +263 -0
- package/data/commands/validate-coverage.md +424 -0
- package/data/commands/validate-parallel.md +281 -0
- package/data/commands/validate-plan.md +367 -0
- package/data/config.default.json +40 -0
- package/data/external-mcp.default.json +326 -0
- package/data/hooks/enforce-modern-cli.sh +123 -0
- package/data/hooks/tests/enforce-modern-cli.test.sh +135 -0
- package/data/hooks.default.json +17 -0
- package/data/prompts/.gitkeep +0 -0
- package/data/prompts/00_generator/.gitkeep +0 -0
- package/data/prompts/00_generator/_template.md +25 -0
- package/data/prompts/00_generator/create_agent.md +97 -0
- package/data/prompts/00_generator/create_command.md +53 -0
- package/data/prompts/01_onboard/.gitkeep +0 -0
- package/data/prompts/01_onboard/analyze-clarity.md +413 -0
- package/data/prompts/01_onboard/analyze-documentation-requirements.md +543 -0
- package/data/prompts/01_onboard/analyze-patterns.md +288 -0
- package/data/prompts/01_onboard/analyze-requirements.md +809 -0
- package/data/prompts/01_onboard/collect-clarifications.md +374 -0
- package/data/prompts/01_onboard/fetch-task.md +409 -0
- package/data/prompts/01_onboard/map-dependencies.md +326 -0
- package/data/prompts/01_onboard/refine-requirements.md +638 -0
- package/data/prompts/01_onboard/refine-specifications.md +456 -0
- package/data/prompts/02_context/.gitkeep +0 -0
- package/data/prompts/02_context/analyze-change-scope.md +306 -0
- package/data/prompts/02_context/analyze-changes-for-review.md +292 -0
- package/data/prompts/02_context/analyze-codebase-changes.md +265 -0
- package/data/prompts/02_context/analyze-command-execution.md +231 -0
- package/data/prompts/02_context/analyze-commits-for-pr.md +258 -0
- package/data/prompts/02_context/analyze-functional-scope.md +380 -0
- package/data/prompts/02_context/analyze-git-branch.md +137 -0
- package/data/prompts/02_context/analyze-git-status.md +184 -0
- package/data/prompts/02_context/analyze-task-context.md +397 -0
- package/data/prompts/02_context/check-dependencies.md +394 -0
- package/data/prompts/02_context/extract-ticket-info.md +201 -0
- package/data/prompts/02_context/extract-ticket-references.md +157 -0
- package/data/prompts/02_context/gather-git-metrics.md +237 -0
- package/data/prompts/02_context/gather-validation-context.md +281 -0
- package/data/prompts/02_context/identify-completed-workflow.md +203 -0
- package/data/prompts/02_context/load-and-analyze-parallel.md +441 -0
- package/data/prompts/02_context/load-backlog.md +395 -0
- package/data/prompts/02_context/load-commit-template.md +186 -0
- package/data/prompts/02_context/load-documentation-context.md +382 -0
- package/data/prompts/02_context/load-implementation-context.md +360 -0
- package/data/prompts/02_context/load-plan-context.md +371 -0
- package/data/prompts/02_context/load-pr-template.md +198 -0
- package/data/prompts/02_context/load-prd.md +385 -0
- package/data/prompts/02_context/load-specifications.md +354 -0
- package/data/prompts/02_context/load-task.md +311 -0
- package/data/prompts/02_context/scan-codebase.md +270 -0
- package/data/prompts/02_context/understand-intent.md +145 -0
- package/data/prompts/02_context/use-modern-cli-tools.md +403 -0
- package/data/prompts/03_plan/.gitkeep +0 -0
- package/data/prompts/03_plan/assess-complexity.md +508 -0
- package/data/prompts/03_plan/assess-risks.md +677 -0
- package/data/prompts/03_plan/breakdown-implementation.md +895 -0
- package/data/prompts/03_plan/decompose-tasks.md +584 -0
- package/data/prompts/03_plan/define-architecture.md +347 -0
- package/data/prompts/03_plan/identify-dependencies.md +703 -0
- package/data/prompts/04_code/.gitkeep +0 -0
- package/data/prompts/04_code/calculate-version-bump.md +260 -0
- package/data/prompts/04_code/create-version-tag.md +321 -0
- package/data/prompts/04_code/determine-commit-strategy.md +300 -0
- package/data/prompts/04_code/determine-labels.md +380 -0
- package/data/prompts/04_code/determine-reviewers.md +324 -0
- package/data/prompts/04_code/generate-commit-messages.md +355 -0
- package/data/prompts/04_code/generate-pr-description.md +507 -0
- package/data/prompts/04_code/generate-pr-title.md +310 -0
- package/data/prompts/04_code/implement-changes.md +861 -0
- package/data/prompts/04_code/implement-tests.md +672 -0
- package/data/prompts/04_code/interactive-review.md +330 -0
- package/data/prompts/04_code/push-and-create-pr.md +435 -0
- package/data/prompts/04_code/stage-and-commit.md +424 -0
- package/data/prompts/04_code/validate-prerequisites.md +345 -0
- package/data/prompts/04_code/verify-implementation.md +705 -0
- package/data/prompts/05_review/.gitkeep +0 -0
- package/data/prompts/05_review/assess-code-quality.md +473 -0
- package/data/prompts/05_review/assess-constraints.md +368 -0
- package/data/prompts/05_review/calculate-performance-metrics.md +213 -0
- package/data/prompts/05_review/collect-user-feedback.md +236 -0
- package/data/prompts/05_review/evaluate-quality-outcomes.md +239 -0
- package/data/prompts/05_review/generate-commit-insights.md +344 -0
- package/data/prompts/05_review/identify-improvement-areas.md +275 -0
- package/data/prompts/05_review/synthesize-plan-assessment.md +778 -0
- package/data/prompts/05_review/synthesize-validation-report.md +369 -0
- package/data/prompts/05_review/validate-accessibility.md +303 -0
- package/data/prompts/05_review/validate-architecture.md +274 -0
- package/data/prompts/05_review/validate-backlog.md +620 -0
- package/data/prompts/05_review/validate-completeness.md +819 -0
- package/data/prompts/05_review/validate-documentation.md +453 -0
- package/data/prompts/05_review/validate-functional-requirements.md +432 -0
- package/data/prompts/05_review/validate-implementation-completeness.md +281 -0
- package/data/prompts/05_review/validate-maintainability.md +515 -0
- package/data/prompts/05_review/validate-performance.md +351 -0
- package/data/prompts/05_review/validate-pr-creation.md +260 -0
- package/data/prompts/05_review/validate-pr-readiness.md +315 -0
- package/data/prompts/05_review/validate-readiness.md +429 -0
- package/data/prompts/05_review/validate-risk-coverage.md +484 -0
- package/data/prompts/05_review/validate-security.md +260 -0
- package/data/prompts/05_review/validate-standards-compliance.md +204 -0
- package/data/prompts/05_review/validate-step-quality.md +445 -0
- package/data/prompts/05_review/validate-technical-feasibility.md +469 -0
- package/data/prompts/05_review/validate-test-strategy.md +556 -0
- package/data/prompts/05_review/validate-testability.md +532 -0
- package/data/prompts/05_review/validate-type-safety.md +200 -0
- package/data/prompts/05_review/verify-commits.md +388 -0
- package/data/prompts/06_test/.gitkeep +0 -0
- package/data/prompts/06_test/analyze-results.md +581 -0
- package/data/prompts/06_test/analyze-test-infrastructure.md +360 -0
- package/data/prompts/06_test/execute-tests.md +534 -0
- package/data/prompts/07_documentation/.gitkeep +0 -0
- package/data/prompts/07_documentation/apply-specification-refinement.md +304 -0
- package/data/prompts/07_documentation/apply-task-refinement.md +389 -0
- package/data/prompts/07_documentation/export-metrics.md +271 -0
- package/data/prompts/07_documentation/generate-all-domains-parallel.md +469 -0
- package/data/prompts/07_documentation/generate-backend-docs.md +322 -0
- package/data/prompts/07_documentation/generate-backlog-artifacts.md +720 -0
- package/data/prompts/07_documentation/generate-code-review-report.md +385 -0
- package/data/prompts/07_documentation/generate-feedback-report.md +299 -0
- package/data/prompts/07_documentation/generate-feedback-summary.md +164 -0
- package/data/prompts/07_documentation/generate-frontend-docs.md +309 -0
- package/data/prompts/07_documentation/generate-functional-review-report.md +410 -0
- package/data/prompts/07_documentation/generate-infrastructure-docs.md +630 -0
- package/data/prompts/07_documentation/generate-prd.md +197 -0
- package/data/prompts/07_documentation/persist-documentation.md +245 -0
- package/data/prompts/07_documentation/review-and-persist-parallel.md +459 -0
- package/data/prompts/07_documentation/update-changelog.md +399 -0
- package/data/prompts/07_documentation/update-inline-docs.md +574 -0
- package/data/prompts/07_documentation/update-knowledge-base.md +352 -0
- package/data/prompts/08_deployment/.gitkeep +0 -0
- package/data/prompts/09_refactor/.gitkeep +0 -0
- package/data/prompts/10_maintenance/.gitkeep +0 -0
- package/data/prompts/_meta/.gitkeep +0 -0
- package/data/prompts/_meta/schema.json +411 -0
- package/data/prompts/_template.md +56 -0
- package/data/prompts/registry.json +2227 -0
- package/data/templates/.gitkeep +0 -0
- package/data/templates/ASSERT_COMPLETENESS.md +121 -0
- package/data/templates/ASSERT_SECURITY.md +186 -0
- package/data/templates/ASSERT_TYPESCRIPT.md +195 -0
- package/data/templates/BACKEND_DOC.md +241 -0
- package/data/templates/CHANGELOG.md +38 -0
- package/data/templates/DOC_API_QUICK.md +273 -0
- package/data/templates/DOC_COMPONENT_QUICK.md +180 -0
- package/data/templates/DOC_EXTRACTION_CHECKLIST.md +284 -0
- package/data/templates/FRONTEND_DOC.md +253 -0
- package/data/templates/GUIDED_COMPLETION.md +38 -0
- package/data/templates/INFRASTRUCTURE_DOC.md +138 -0
- package/data/templates/PLAN_ARCHITECTURE.md +190 -0
- package/data/templates/PLAN_IMPLEMENTATION.md +302 -0
- package/data/templates/PLAN_PATTERN_AUTH.md +366 -0
- package/data/templates/PLAN_PATTERN_BACKGROUND_JOB.md +403 -0
- package/data/templates/PLAN_PATTERN_DATABASE.md +287 -0
- package/data/templates/PLAN_PATTERN_REACT_FEATURE.md +303 -0
- package/data/templates/PLAN_PATTERN_REST_API.md +322 -0
- package/data/templates/PLAN_QUALITY_CHECKLIST.md +167 -0
- package/data/templates/PRD.md +110 -0
- package/data/templates/PULL_REQUEST.md +30 -0
- package/data/templates/REVIEW_CODE_CHECKLIST.md +227 -0
- package/data/templates/TEST_COVERAGE_GATE.md +265 -0
- package/data/templates/TEST_GENERATION_REQUIREMENTS.md +437 -0
- package/data/templates/TROUBLESHOOTING.md +170 -0
- package/data/templates/USER_STORY.md +43 -0
- package/data/templates/plans/PATTERN_DATABASE_MIGRATION.md +551 -0
- package/data/templates/plans/PATTERN_REACT_COMPONENT.md +483 -0
- package/data/templates/plans/PATTERN_REST_API.md +428 -0
- package/data/templates/plans/README.md +174 -0
- package/data/templates/standards/TECHNICAL_DEFAULTS.md +724 -0
- package/dist/cleanup/coordinator.d.ts +26 -0
- package/dist/cleanup/coordinator.d.ts.map +1 -0
- package/dist/cleanup/coordinator.js +167 -0
- package/dist/cleanup/coordinator.js.map +1 -0
- package/dist/cleanup/index.d.ts +5 -0
- package/dist/cleanup/index.d.ts.map +1 -0
- package/dist/cleanup/index.js +5 -0
- package/dist/cleanup/index.js.map +1 -0
- package/dist/cli/autocomplete.d.ts +65 -0
- package/dist/cli/autocomplete.d.ts.map +1 -0
- package/dist/cli/autocomplete.js +422 -0
- package/dist/cli/autocomplete.js.map +1 -0
- package/dist/cli/command-adapter.interface.d.ts +98 -0
- package/dist/cli/command-adapter.interface.d.ts.map +1 -0
- package/dist/cli/command-adapter.interface.js +13 -0
- package/dist/cli/command-adapter.interface.js.map +1 -0
- package/dist/cli/command-error-handler.d.ts +69 -0
- package/dist/cli/command-error-handler.d.ts.map +1 -0
- package/dist/cli/command-error-handler.js +239 -0
- package/dist/cli/command-error-handler.js.map +1 -0
- package/dist/cli/command-executor.d.ts +146 -0
- package/dist/cli/command-executor.d.ts.map +1 -0
- package/dist/cli/command-executor.js +479 -0
- package/dist/cli/command-executor.js.map +1 -0
- package/dist/cli/command-palette.d.ts +56 -0
- package/dist/cli/command-palette.d.ts.map +1 -0
- package/dist/cli/command-palette.js +246 -0
- package/dist/cli/command-palette.js.map +1 -0
- package/dist/cli/command-resolver.d.ts +42 -0
- package/dist/cli/command-resolver.d.ts.map +1 -0
- package/dist/cli/command-resolver.js +140 -0
- package/dist/cli/command-resolver.js.map +1 -0
- package/dist/cli/command-suggestions.d.ts +49 -0
- package/dist/cli/command-suggestions.d.ts.map +1 -0
- package/dist/cli/command-suggestions.js +209 -0
- package/dist/cli/command-suggestions.js.map +1 -0
- package/dist/cli/command-templates.d.ts +83 -0
- package/dist/cli/command-templates.d.ts.map +1 -0
- package/dist/cli/command-templates.js +457 -0
- package/dist/cli/command-templates.js.map +1 -0
- package/dist/cli/command-validator.d.ts +78 -0
- package/dist/cli/command-validator.d.ts.map +1 -0
- package/dist/cli/command-validator.js +197 -0
- package/dist/cli/command-validator.js.map +1 -0
- package/dist/cli/command-wizard.d.ts +42 -0
- package/dist/cli/command-wizard.d.ts.map +1 -0
- package/dist/cli/command-wizard.js +328 -0
- package/dist/cli/command-wizard.js.map +1 -0
- package/dist/cli/commander-adapter.d.ts +91 -0
- package/dist/cli/commander-adapter.d.ts.map +1 -0
- package/dist/cli/commander-adapter.js +142 -0
- package/dist/cli/commander-adapter.js.map +1 -0
- package/dist/cli/commands/config.d.ts +9 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +62 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/dashboard.d.ts +9 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/dashboard.js +31 -0
- package/dist/cli/commands/dashboard.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +9 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +103 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/dynamic.d.ts +21 -0
- package/dist/cli/commands/dynamic.d.ts.map +1 -0
- package/dist/cli/commands/dynamic.js +516 -0
- package/dist/cli/commands/dynamic.js.map +1 -0
- package/dist/cli/commands/explore.d.ts +11 -0
- package/dist/cli/commands/explore.d.ts.map +1 -0
- package/dist/cli/commands/explore.js +815 -0
- package/dist/cli/commands/explore.js.map +1 -0
- package/dist/cli/commands/help.d.ts +9 -0
- package/dist/cli/commands/help.d.ts.map +1 -0
- package/dist/cli/commands/help.js +52 -0
- package/dist/cli/commands/help.js.map +1 -0
- package/dist/cli/commands/init.d.ts +9 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +71 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/monitoring.d.ts +11 -0
- package/dist/cli/commands/monitoring.d.ts.map +1 -0
- package/dist/cli/commands/monitoring.js +358 -0
- package/dist/cli/commands/monitoring.js.map +1 -0
- package/dist/cli/commands/session.d.ts +9 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +521 -0
- package/dist/cli/commands/session.js.map +1 -0
- package/dist/cli/config-builder.d.ts +53 -0
- package/dist/cli/config-builder.d.ts.map +1 -0
- package/dist/cli/config-builder.js +150 -0
- package/dist/cli/config-builder.js.map +1 -0
- package/dist/cli/document-approval.d.ts +71 -0
- package/dist/cli/document-approval.d.ts.map +1 -0
- package/dist/cli/document-approval.js +328 -0
- package/dist/cli/document-approval.js.map +1 -0
- package/dist/cli/document-output-processor.d.ts +125 -0
- package/dist/cli/document-output-processor.d.ts.map +1 -0
- package/dist/cli/document-output-processor.js +496 -0
- package/dist/cli/document-output-processor.js.map +1 -0
- package/dist/cli/execution-coordinator.d.ts +97 -0
- package/dist/cli/execution-coordinator.d.ts.map +1 -0
- package/dist/cli/execution-coordinator.js +489 -0
- package/dist/cli/execution-coordinator.js.map +1 -0
- package/dist/cli/first-run-setup.d.ts +12 -0
- package/dist/cli/first-run-setup.d.ts.map +1 -0
- package/dist/cli/first-run-setup.js +63 -0
- package/dist/cli/first-run-setup.js.map +1 -0
- package/dist/cli/flags.d.ts +53 -0
- package/dist/cli/flags.d.ts.map +1 -0
- package/dist/cli/flags.js +60 -0
- package/dist/cli/flags.js.map +1 -0
- package/dist/cli/index.d.ts +11 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +182 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/presenters/assert-presenter.d.ts +29 -0
- package/dist/cli/presenters/assert-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/assert-presenter.js +224 -0
- package/dist/cli/presenters/assert-presenter.js.map +1 -0
- package/dist/cli/presenters/base-presenter.d.ts +80 -0
- package/dist/cli/presenters/base-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/base-presenter.js +124 -0
- package/dist/cli/presenters/base-presenter.js.map +1 -0
- package/dist/cli/presenters/feedback-presenter.d.ts +24 -0
- package/dist/cli/presenters/feedback-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/feedback-presenter.js +144 -0
- package/dist/cli/presenters/feedback-presenter.js.map +1 -0
- package/dist/cli/presenters/fetch-task-presenter.d.ts +26 -0
- package/dist/cli/presenters/fetch-task-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/fetch-task-presenter.js +122 -0
- package/dist/cli/presenters/fetch-task-presenter.js.map +1 -0
- package/dist/cli/presenters/implementation-presenter.d.ts +28 -0
- package/dist/cli/presenters/implementation-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/implementation-presenter.js +148 -0
- package/dist/cli/presenters/implementation-presenter.js.map +1 -0
- package/dist/cli/presenters/index.d.ts +14 -0
- package/dist/cli/presenters/index.d.ts.map +1 -0
- package/dist/cli/presenters/index.js +14 -0
- package/dist/cli/presenters/index.js.map +1 -0
- package/dist/cli/presenters/presenter-registry.d.ts +51 -0
- package/dist/cli/presenters/presenter-registry.d.ts.map +1 -0
- package/dist/cli/presenters/presenter-registry.js +89 -0
- package/dist/cli/presenters/presenter-registry.js.map +1 -0
- package/dist/cli/presenters/review-code-presenter.d.ts +34 -0
- package/dist/cli/presenters/review-code-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/review-code-presenter.js +197 -0
- package/dist/cli/presenters/review-code-presenter.js.map +1 -0
- package/dist/cli/presenters/review-plan-presenter.d.ts +26 -0
- package/dist/cli/presenters/review-plan-presenter.d.ts.map +1 -0
- package/dist/cli/presenters/review-plan-presenter.js +130 -0
- package/dist/cli/presenters/review-plan-presenter.js.map +1 -0
- package/dist/cli/provider-fallback-service.d.ts +52 -0
- package/dist/cli/provider-fallback-service.d.ts.map +1 -0
- package/dist/cli/provider-fallback-service.js +134 -0
- package/dist/cli/provider-fallback-service.js.map +1 -0
- package/dist/cli/provider-mismatch-handler.d.ts +35 -0
- package/dist/cli/provider-mismatch-handler.d.ts.map +1 -0
- package/dist/cli/provider-mismatch-handler.js +133 -0
- package/dist/cli/provider-mismatch-handler.js.map +1 -0
- package/dist/cli/provider-resolver.d.ts +84 -0
- package/dist/cli/provider-resolver.d.ts.map +1 -0
- package/dist/cli/provider-resolver.js +360 -0
- package/dist/cli/provider-resolver.js.map +1 -0
- package/dist/cli/result-presenter.d.ts +68 -0
- package/dist/cli/result-presenter.d.ts.map +1 -0
- package/dist/cli/result-presenter.js +186 -0
- package/dist/cli/result-presenter.js.map +1 -0
- package/dist/cli/session-browser.d.ts +46 -0
- package/dist/cli/session-browser.d.ts.map +1 -0
- package/dist/cli/session-browser.js +343 -0
- package/dist/cli/session-browser.js.map +1 -0
- package/dist/cli/session-cleanup-adapter.d.ts +25 -0
- package/dist/cli/session-cleanup-adapter.d.ts.map +1 -0
- package/dist/cli/session-cleanup-adapter.js +95 -0
- package/dist/cli/session-cleanup-adapter.js.map +1 -0
- package/dist/cli/session-formatter.d.ts +107 -0
- package/dist/cli/session-formatter.d.ts.map +1 -0
- package/dist/cli/session-formatter.js +411 -0
- package/dist/cli/session-formatter.js.map +1 -0
- package/dist/cli/session-manager.d.ts +68 -0
- package/dist/cli/session-manager.d.ts.map +1 -0
- package/dist/cli/session-manager.js +153 -0
- package/dist/cli/session-manager.js.map +1 -0
- package/dist/cli/session-resume.d.ts +70 -0
- package/dist/cli/session-resume.d.ts.map +1 -0
- package/dist/cli/session-resume.js +322 -0
- package/dist/cli/session-resume.js.map +1 -0
- package/dist/cli/types/cli-options.types.d.ts +54 -0
- package/dist/cli/types/cli-options.types.d.ts.map +1 -0
- package/dist/cli/types/cli-options.types.js +8 -0
- package/dist/cli/types/cli-options.types.js.map +1 -0
- package/dist/cli/types/wizard.types.d.ts +51 -0
- package/dist/cli/types/wizard.types.d.ts.map +1 -0
- package/dist/cli/types/wizard.types.js +8 -0
- package/dist/cli/types/wizard.types.js.map +1 -0
- package/dist/config/constants.d.ts +192 -0
- package/dist/config/constants.d.ts.map +1 -0
- package/dist/config/constants.js +196 -0
- package/dist/config/constants.js.map +1 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +8 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/interactive-wizard.d.ts +67 -0
- package/dist/config/interactive-wizard.d.ts.map +1 -0
- package/dist/config/interactive-wizard.js +325 -0
- package/dist/config/interactive-wizard.js.map +1 -0
- package/dist/config/loader.d.ts +113 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +433 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/providers.config.d.ts +90 -0
- package/dist/config/providers.config.d.ts.map +1 -0
- package/dist/config/providers.config.js +249 -0
- package/dist/config/providers.config.js.map +1 -0
- package/dist/config/schema.d.ts +1848 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +167 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/validation-helpers.d.ts +44 -0
- package/dist/config/validation-helpers.d.ts.map +1 -0
- package/dist/config/validation-helpers.js +239 -0
- package/dist/config/validation-helpers.js.map +1 -0
- package/dist/config/wizard.d.ts +10 -0
- package/dist/config/wizard.d.ts.map +1 -0
- package/dist/config/wizard.js +11 -0
- package/dist/config/wizard.js.map +1 -0
- package/dist/di/container.d.ts +92 -0
- package/dist/di/container.d.ts.map +1 -0
- package/dist/di/container.js +349 -0
- package/dist/di/container.js.map +1 -0
- package/dist/executor/agent-loader.d.ts +62 -0
- package/dist/executor/agent-loader.d.ts.map +1 -0
- package/dist/executor/agent-loader.js +172 -0
- package/dist/executor/agent-loader.js.map +1 -0
- package/dist/executor/command-discovery.d.ts +72 -0
- package/dist/executor/command-discovery.d.ts.map +1 -0
- package/dist/executor/command-discovery.js +248 -0
- package/dist/executor/command-discovery.js.map +1 -0
- package/dist/executor/command-isolation.executor.d.ts +53 -0
- package/dist/executor/command-isolation.executor.d.ts.map +1 -0
- package/dist/executor/command-isolation.executor.js +183 -0
- package/dist/executor/command-isolation.executor.js.map +1 -0
- package/dist/executor/command-loader.d.ts +34 -0
- package/dist/executor/command-loader.d.ts.map +1 -0
- package/dist/executor/command-loader.js +93 -0
- package/dist/executor/command-loader.js.map +1 -0
- package/dist/executor/command-validation.d.ts +21 -0
- package/dist/executor/command-validation.d.ts.map +1 -0
- package/dist/executor/command-validation.js +79 -0
- package/dist/executor/command-validation.js.map +1 -0
- package/dist/executor/dry-run-cache.d.ts +155 -0
- package/dist/executor/dry-run-cache.d.ts.map +1 -0
- package/dist/executor/dry-run-cache.js +191 -0
- package/dist/executor/dry-run-cache.js.map +1 -0
- package/dist/executor/dry-run-preview.service.d.ts +101 -0
- package/dist/executor/dry-run-preview.service.d.ts.map +1 -0
- package/dist/executor/dry-run-preview.service.js +250 -0
- package/dist/executor/dry-run-preview.service.js.map +1 -0
- package/dist/executor/dry-run-strategy.d.ts +137 -0
- package/dist/executor/dry-run-strategy.d.ts.map +1 -0
- package/dist/executor/dry-run-strategy.js +511 -0
- package/dist/executor/dry-run-strategy.js.map +1 -0
- package/dist/executor/escalation-detection.service.d.ts +48 -0
- package/dist/executor/escalation-detection.service.d.ts.map +1 -0
- package/dist/executor/escalation-detection.service.js +219 -0
- package/dist/executor/escalation-detection.service.js.map +1 -0
- package/dist/executor/escalation-handler.service.d.ts +57 -0
- package/dist/executor/escalation-handler.service.d.ts.map +1 -0
- package/dist/executor/escalation-handler.service.js +265 -0
- package/dist/executor/escalation-handler.service.js.map +1 -0
- package/dist/executor/execution-context.d.ts +107 -0
- package/dist/executor/execution-context.d.ts.map +1 -0
- package/dist/executor/execution-context.js +158 -0
- package/dist/executor/execution-context.js.map +1 -0
- package/dist/executor/execution-strategy.d.ts +104 -0
- package/dist/executor/execution-strategy.d.ts.map +1 -0
- package/dist/executor/execution-strategy.js +259 -0
- package/dist/executor/execution-strategy.js.map +1 -0
- package/dist/executor/hook-execution.service.d.ts +95 -0
- package/dist/executor/hook-execution.service.d.ts.map +1 -0
- package/dist/executor/hook-execution.service.js +371 -0
- package/dist/executor/hook-execution.service.js.map +1 -0
- package/dist/executor/index.d.ts +16 -0
- package/dist/executor/index.d.ts.map +1 -0
- package/dist/executor/index.js +16 -0
- package/dist/executor/index.js.map +1 -0
- package/dist/executor/input-pre-resolver.d.ts +61 -0
- package/dist/executor/input-pre-resolver.d.ts.map +1 -0
- package/dist/executor/input-pre-resolver.js +172 -0
- package/dist/executor/input-pre-resolver.js.map +1 -0
- package/dist/executor/interactive-question-handler.service.d.ts +79 -0
- package/dist/executor/interactive-question-handler.service.d.ts.map +1 -0
- package/dist/executor/interactive-question-handler.service.js +250 -0
- package/dist/executor/interactive-question-handler.service.js.map +1 -0
- package/dist/executor/message-builder.service.d.ts +83 -0
- package/dist/executor/message-builder.service.d.ts.map +1 -0
- package/dist/executor/message-builder.service.js +211 -0
- package/dist/executor/message-builder.service.js.map +1 -0
- package/dist/executor/output-parsing.service.d.ts +169 -0
- package/dist/executor/output-parsing.service.d.ts.map +1 -0
- package/dist/executor/output-parsing.service.js +566 -0
- package/dist/executor/output-parsing.service.js.map +1 -0
- package/dist/executor/pipeline-events.d.ts +15 -0
- package/dist/executor/pipeline-events.d.ts.map +1 -0
- package/dist/executor/pipeline-events.js +15 -0
- package/dist/executor/pipeline-events.js.map +1 -0
- package/dist/executor/pipeline-validator.d.ts +29 -0
- package/dist/executor/pipeline-validator.d.ts.map +1 -0
- package/dist/executor/pipeline-validator.js +105 -0
- package/dist/executor/pipeline-validator.js.map +1 -0
- package/dist/executor/pipeline.d.ts +55 -0
- package/dist/executor/pipeline.d.ts.map +1 -0
- package/dist/executor/pipeline.js +360 -0
- package/dist/executor/pipeline.js.map +1 -0
- package/dist/executor/project-guidance-loader.d.ts +69 -0
- package/dist/executor/project-guidance-loader.d.ts.map +1 -0
- package/dist/executor/project-guidance-loader.js +528 -0
- package/dist/executor/project-guidance-loader.js.map +1 -0
- package/dist/executor/prompt-loader.d.ts +39 -0
- package/dist/executor/prompt-loader.d.ts.map +1 -0
- package/dist/executor/prompt-loader.js +172 -0
- package/dist/executor/prompt-loader.js.map +1 -0
- package/dist/executor/stage-executor.d.ts +192 -0
- package/dist/executor/stage-executor.d.ts.map +1 -0
- package/dist/executor/stage-executor.js +790 -0
- package/dist/executor/stage-executor.js.map +1 -0
- package/dist/executor/stage-output-cache.d.ts +152 -0
- package/dist/executor/stage-output-cache.d.ts.map +1 -0
- package/dist/executor/stage-output-cache.js +426 -0
- package/dist/executor/stage-output-cache.js.map +1 -0
- package/dist/executor/stage-scheduler.d.ts +20 -0
- package/dist/executor/stage-scheduler.d.ts.map +1 -0
- package/dist/executor/stage-scheduler.js +59 -0
- package/dist/executor/stage-scheduler.js.map +1 -0
- package/dist/executor/stage-validation.service.d.ts +122 -0
- package/dist/executor/stage-validation.service.d.ts.map +1 -0
- package/dist/executor/stage-validation.service.js +377 -0
- package/dist/executor/stage-validation.service.js.map +1 -0
- package/dist/executor/tool-execution.service.d.ts +289 -0
- package/dist/executor/tool-execution.service.d.ts.map +1 -0
- package/dist/executor/tool-execution.service.js +1124 -0
- package/dist/executor/tool-execution.service.js.map +1 -0
- package/dist/executor/tools/dry-run-simulator.service.d.ts +107 -0
- package/dist/executor/tools/dry-run-simulator.service.d.ts.map +1 -0
- package/dist/executor/tools/dry-run-simulator.service.js +284 -0
- package/dist/executor/tools/dry-run-simulator.service.js.map +1 -0
- package/dist/executor/tools/pending-write-approver.service.d.ts +84 -0
- package/dist/executor/tools/pending-write-approver.service.d.ts.map +1 -0
- package/dist/executor/tools/pending-write-approver.service.js +197 -0
- package/dist/executor/tools/pending-write-approver.service.js.map +1 -0
- package/dist/executor/tools/search-tools.service.d.ts +44 -0
- package/dist/executor/tools/search-tools.service.d.ts.map +1 -0
- package/dist/executor/tools/search-tools.service.js +109 -0
- package/dist/executor/tools/search-tools.service.js.map +1 -0
- package/dist/executor/tools/session-tools.service.d.ts +74 -0
- package/dist/executor/tools/session-tools.service.d.ts.map +1 -0
- package/dist/executor/tools/session-tools.service.js +278 -0
- package/dist/executor/tools/session-tools.service.js.map +1 -0
- package/dist/executor/variable-resolution.service.d.ts +77 -0
- package/dist/executor/variable-resolution.service.d.ts.map +1 -0
- package/dist/executor/variable-resolution.service.js +115 -0
- package/dist/executor/variable-resolution.service.js.map +1 -0
- package/dist/executor/variables.d.ts +89 -0
- package/dist/executor/variables.d.ts.map +1 -0
- package/dist/executor/variables.js +306 -0
- package/dist/executor/variables.js.map +1 -0
- package/dist/exploration/collaboration-coordinator.d.ts +130 -0
- package/dist/exploration/collaboration-coordinator.d.ts.map +1 -0
- package/dist/exploration/collaboration-coordinator.js +332 -0
- package/dist/exploration/collaboration-coordinator.js.map +1 -0
- package/dist/exploration/container-manager.d.ts +121 -0
- package/dist/exploration/container-manager.d.ts.map +1 -0
- package/dist/exploration/container-manager.js +390 -0
- package/dist/exploration/container-manager.js.map +1 -0
- package/dist/exploration/dashboard-controls.d.ts +24 -0
- package/dist/exploration/dashboard-controls.d.ts.map +1 -0
- package/dist/exploration/dashboard-controls.js +221 -0
- package/dist/exploration/dashboard-controls.js.map +1 -0
- package/dist/exploration/dashboard-metrics.d.ts +62 -0
- package/dist/exploration/dashboard-metrics.d.ts.map +1 -0
- package/dist/exploration/dashboard-metrics.js +154 -0
- package/dist/exploration/dashboard-metrics.js.map +1 -0
- package/dist/exploration/dashboard-ui.d.ts +22 -0
- package/dist/exploration/dashboard-ui.d.ts.map +1 -0
- package/dist/exploration/dashboard-ui.js +206 -0
- package/dist/exploration/dashboard-ui.js.map +1 -0
- package/dist/exploration/execution-modes.d.ts +120 -0
- package/dist/exploration/execution-modes.d.ts.map +1 -0
- package/dist/exploration/execution-modes.js +388 -0
- package/dist/exploration/execution-modes.js.map +1 -0
- package/dist/exploration/exploration-events.d.ts +139 -0
- package/dist/exploration/exploration-events.d.ts.map +1 -0
- package/dist/exploration/exploration-events.js +261 -0
- package/dist/exploration/exploration-events.js.map +1 -0
- package/dist/exploration/exploration-state.d.ts +102 -0
- package/dist/exploration/exploration-state.d.ts.map +1 -0
- package/dist/exploration/exploration-state.js +307 -0
- package/dist/exploration/exploration-state.js.map +1 -0
- package/dist/exploration/merge-orchestrator.d.ts +175 -0
- package/dist/exploration/merge-orchestrator.d.ts.map +1 -0
- package/dist/exploration/merge-orchestrator.js +615 -0
- package/dist/exploration/merge-orchestrator.js.map +1 -0
- package/dist/exploration/orchestrator.d.ts +95 -0
- package/dist/exploration/orchestrator.d.ts.map +1 -0
- package/dist/exploration/orchestrator.js +404 -0
- package/dist/exploration/orchestrator.js.map +1 -0
- package/dist/exploration/resource-allocator.d.ts +108 -0
- package/dist/exploration/resource-allocator.d.ts.map +1 -0
- package/dist/exploration/resource-allocator.js +244 -0
- package/dist/exploration/resource-allocator.js.map +1 -0
- package/dist/exploration/result-comparator.d.ts +110 -0
- package/dist/exploration/result-comparator.d.ts.map +1 -0
- package/dist/exploration/result-comparator.js +363 -0
- package/dist/exploration/result-comparator.js.map +1 -0
- package/dist/exploration/safety-validator.d.ts +59 -0
- package/dist/exploration/safety-validator.d.ts.map +1 -0
- package/dist/exploration/safety-validator.js +339 -0
- package/dist/exploration/safety-validator.js.map +1 -0
- package/dist/exploration/shared-volume-manager.d.ts +72 -0
- package/dist/exploration/shared-volume-manager.d.ts.map +1 -0
- package/dist/exploration/shared-volume-manager.js +303 -0
- package/dist/exploration/shared-volume-manager.js.map +1 -0
- package/dist/exploration/worktree-manager-secure.d.ts +110 -0
- package/dist/exploration/worktree-manager-secure.d.ts.map +1 -0
- package/dist/exploration/worktree-manager-secure.js +347 -0
- package/dist/exploration/worktree-manager-secure.js.map +1 -0
- package/dist/exploration/worktree-manager.d.ts +97 -0
- package/dist/exploration/worktree-manager.d.ts.map +1 -0
- package/dist/exploration/worktree-manager.js +298 -0
- package/dist/exploration/worktree-manager.js.map +1 -0
- package/dist/llm/index.d.ts +10 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/index.js +10 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/model-mapping-registry.d.ts +73 -0
- package/dist/llm/model-mapping-registry.d.ts.map +1 -0
- package/dist/llm/model-mapping-registry.js +197 -0
- package/dist/llm/model-mapping-registry.js.map +1 -0
- package/dist/llm/provider.interface.d.ts +60 -0
- package/dist/llm/provider.interface.d.ts.map +1 -0
- package/dist/llm/provider.interface.js +79 -0
- package/dist/llm/provider.interface.js.map +1 -0
- package/dist/llm/providers/anthropic.provider.d.ts +78 -0
- package/dist/llm/providers/anthropic.provider.d.ts.map +1 -0
- package/dist/llm/providers/anthropic.provider.js +456 -0
- package/dist/llm/providers/anthropic.provider.js.map +1 -0
- package/dist/llm/providers/cursor.provider.d.ts +61 -0
- package/dist/llm/providers/cursor.provider.d.ts.map +1 -0
- package/dist/llm/providers/cursor.provider.js +273 -0
- package/dist/llm/providers/cursor.provider.js.map +1 -0
- package/dist/llm/providers/google.provider.d.ts +43 -0
- package/dist/llm/providers/google.provider.d.ts.map +1 -0
- package/dist/llm/providers/google.provider.js +179 -0
- package/dist/llm/providers/google.provider.js.map +1 -0
- package/dist/llm/providers/index.d.ts +25 -0
- package/dist/llm/providers/index.d.ts.map +1 -0
- package/dist/llm/providers/index.js +28 -0
- package/dist/llm/providers/index.js.map +1 -0
- package/dist/llm/providers/openai.provider.d.ts +23 -0
- package/dist/llm/providers/openai.provider.d.ts.map +1 -0
- package/dist/llm/providers/openai.provider.js +193 -0
- package/dist/llm/providers/openai.provider.js.map +1 -0
- package/dist/llm/registry.d.ts +41 -0
- package/dist/llm/registry.d.ts.map +1 -0
- package/dist/llm/registry.js +88 -0
- package/dist/llm/registry.js.map +1 -0
- package/dist/mcp/command-discovery.service.d.ts +26 -0
- package/dist/mcp/command-discovery.service.d.ts.map +1 -0
- package/dist/mcp/command-discovery.service.js +65 -0
- package/dist/mcp/command-discovery.service.js.map +1 -0
- package/dist/mcp/context.d.ts +28 -0
- package/dist/mcp/context.d.ts.map +1 -0
- package/dist/mcp/context.js +34 -0
- package/dist/mcp/context.js.map +1 -0
- package/dist/mcp/external-client/tool-proxy.d.ts +103 -0
- package/dist/mcp/external-client/tool-proxy.d.ts.map +1 -0
- package/dist/mcp/external-client/tool-proxy.js +291 -0
- package/dist/mcp/external-client/tool-proxy.js.map +1 -0
- package/dist/mcp/external-mcp-integrator.d.ts +70 -0
- package/dist/mcp/external-mcp-integrator.d.ts.map +1 -0
- package/dist/mcp/external-mcp-integrator.js +161 -0
- package/dist/mcp/external-mcp-integrator.js.map +1 -0
- package/dist/mcp/mcp-approval-cache.service.d.ts +88 -0
- package/dist/mcp/mcp-approval-cache.service.d.ts.map +1 -0
- package/dist/mcp/mcp-approval-cache.service.js +257 -0
- package/dist/mcp/mcp-approval-cache.service.js.map +1 -0
- package/dist/mcp/mcp-approval-workflow.d.ts +92 -0
- package/dist/mcp/mcp-approval-workflow.d.ts.map +1 -0
- package/dist/mcp/mcp-approval-workflow.js +346 -0
- package/dist/mcp/mcp-approval-workflow.js.map +1 -0
- package/dist/mcp/mcp-audit-logger.service.d.ts +90 -0
- package/dist/mcp/mcp-audit-logger.service.d.ts.map +1 -0
- package/dist/mcp/mcp-audit-logger.service.js +264 -0
- package/dist/mcp/mcp-audit-logger.service.js.map +1 -0
- package/dist/mcp/mcp-availability.service.d.ts +84 -0
- package/dist/mcp/mcp-availability.service.d.ts.map +1 -0
- package/dist/mcp/mcp-availability.service.js +177 -0
- package/dist/mcp/mcp-availability.service.js.map +1 -0
- package/dist/mcp/mcp-client-manager.service.d.ts +103 -0
- package/dist/mcp/mcp-client-manager.service.d.ts.map +1 -0
- package/dist/mcp/mcp-client-manager.service.js +380 -0
- package/dist/mcp/mcp-client-manager.service.js.map +1 -0
- package/dist/mcp/mcp-tool-handler.d.ts +88 -0
- package/dist/mcp/mcp-tool-handler.d.ts.map +1 -0
- package/dist/mcp/mcp-tool-handler.js +207 -0
- package/dist/mcp/mcp-tool-handler.js.map +1 -0
- package/dist/mcp/request-handler.d.ts +44 -0
- package/dist/mcp/request-handler.d.ts.map +1 -0
- package/dist/mcp/request-handler.js +282 -0
- package/dist/mcp/request-handler.js.map +1 -0
- package/dist/mcp/sampling-service.d.ts +36 -0
- package/dist/mcp/sampling-service.d.ts.map +1 -0
- package/dist/mcp/sampling-service.js +147 -0
- package/dist/mcp/sampling-service.js.map +1 -0
- package/dist/mcp/server-manager.d.ts +36 -0
- package/dist/mcp/server-manager.d.ts.map +1 -0
- package/dist/mcp/server-manager.js +113 -0
- package/dist/mcp/server-manager.js.map +1 -0
- package/dist/mcp/server.d.ts +45 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +269 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/shutdown-manager.d.ts +24 -0
- package/dist/mcp/shutdown-manager.d.ts.map +1 -0
- package/dist/mcp/shutdown-manager.js +59 -0
- package/dist/mcp/shutdown-manager.js.map +1 -0
- package/dist/mcp/system-monitor.d.ts +38 -0
- package/dist/mcp/system-monitor.d.ts.map +1 -0
- package/dist/mcp/system-monitor.js +80 -0
- package/dist/mcp/system-monitor.js.map +1 -0
- package/dist/mcp/tool-mapping.service.d.ts +35 -0
- package/dist/mcp/tool-mapping.service.d.ts.map +1 -0
- package/dist/mcp/tool-mapping.service.js +91 -0
- package/dist/mcp/tool-mapping.service.js.map +1 -0
- package/dist/mcp/tool-registry.d.ts +29 -0
- package/dist/mcp/tool-registry.d.ts.map +1 -0
- package/dist/mcp/tool-registry.js +52 -0
- package/dist/mcp/tool-registry.js.map +1 -0
- package/dist/mcp/types.d.ts +33 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +7 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/output/activity-feed.d.ts +62 -0
- package/dist/output/activity-feed.d.ts.map +1 -0
- package/dist/output/activity-feed.js +170 -0
- package/dist/output/activity-feed.js.map +1 -0
- package/dist/output/box-formatter.d.ts +149 -0
- package/dist/output/box-formatter.d.ts.map +1 -0
- package/dist/output/box-formatter.js +239 -0
- package/dist/output/box-formatter.js.map +1 -0
- package/dist/output/cleanup-scheduler.d.ts +26 -0
- package/dist/output/cleanup-scheduler.d.ts.map +1 -0
- package/dist/output/cleanup-scheduler.js +115 -0
- package/dist/output/cleanup-scheduler.js.map +1 -0
- package/dist/output/color-adapter.d.ts +56 -0
- package/dist/output/color-adapter.d.ts.map +1 -0
- package/dist/output/color-adapter.interface.d.ts +139 -0
- package/dist/output/color-adapter.interface.d.ts.map +1 -0
- package/dist/output/color-adapter.interface.js +49 -0
- package/dist/output/color-adapter.interface.js.map +1 -0
- package/dist/output/color-adapter.js +163 -0
- package/dist/output/color-adapter.js.map +1 -0
- package/dist/output/console-output.d.ts +156 -0
- package/dist/output/console-output.d.ts.map +1 -0
- package/dist/output/console-output.js +264 -0
- package/dist/output/console-output.js.map +1 -0
- package/dist/output/diagnostic-formatter.d.ts +62 -0
- package/dist/output/diagnostic-formatter.d.ts.map +1 -0
- package/dist/output/diagnostic-formatter.js +186 -0
- package/dist/output/diagnostic-formatter.js.map +1 -0
- package/dist/output/header-formatter.d.ts +147 -0
- package/dist/output/header-formatter.d.ts.map +1 -0
- package/dist/output/header-formatter.js +232 -0
- package/dist/output/header-formatter.js.map +1 -0
- package/dist/output/help-formatter.d.ts +79 -0
- package/dist/output/help-formatter.d.ts.map +1 -0
- package/dist/output/help-formatter.js +358 -0
- package/dist/output/help-formatter.js.map +1 -0
- package/dist/output/index.d.ts +12 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +12 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/logger.d.ts +113 -0
- package/dist/output/logger.d.ts.map +1 -0
- package/dist/output/logger.js +461 -0
- package/dist/output/logger.js.map +1 -0
- package/dist/output/markdown.d.ts +35 -0
- package/dist/output/markdown.d.ts.map +1 -0
- package/dist/output/markdown.js +188 -0
- package/dist/output/markdown.js.map +1 -0
- package/dist/output/multi-stage-progress.d.ts +77 -0
- package/dist/output/multi-stage-progress.d.ts.map +1 -0
- package/dist/output/multi-stage-progress.js +173 -0
- package/dist/output/multi-stage-progress.js.map +1 -0
- package/dist/output/pipeline-emitter.d.ts +85 -0
- package/dist/output/pipeline-emitter.d.ts.map +1 -0
- package/dist/output/pipeline-emitter.js +202 -0
- package/dist/output/pipeline-emitter.js.map +1 -0
- package/dist/output/processing-feedback.d.ts +299 -0
- package/dist/output/processing-feedback.d.ts.map +1 -0
- package/dist/output/processing-feedback.js +1032 -0
- package/dist/output/processing-feedback.js.map +1 -0
- package/dist/output/progress-formatter.d.ts +68 -0
- package/dist/output/progress-formatter.d.ts.map +1 -0
- package/dist/output/progress-formatter.js +210 -0
- package/dist/output/progress-formatter.js.map +1 -0
- package/dist/output/progress.d.ts +92 -0
- package/dist/output/progress.d.ts.map +1 -0
- package/dist/output/progress.js +256 -0
- package/dist/output/progress.js.map +1 -0
- package/dist/output/retention-manager.d.ts +62 -0
- package/dist/output/retention-manager.d.ts.map +1 -0
- package/dist/output/retention-manager.js +401 -0
- package/dist/output/retention-manager.js.map +1 -0
- package/dist/output/terminal-utils.d.ts +50 -0
- package/dist/output/terminal-utils.d.ts.map +1 -0
- package/dist/output/terminal-utils.js +103 -0
- package/dist/output/terminal-utils.js.map +1 -0
- package/dist/output/verbose-formatter.d.ts +91 -0
- package/dist/output/verbose-formatter.d.ts.map +1 -0
- package/dist/output/verbose-formatter.js +182 -0
- package/dist/output/verbose-formatter.js.map +1 -0
- package/dist/output/welcome-banner.d.ts +16 -0
- package/dist/output/welcome-banner.d.ts.map +1 -0
- package/dist/output/welcome-banner.js +80 -0
- package/dist/output/welcome-banner.js.map +1 -0
- package/dist/package.json +166 -0
- package/dist/services/agent-capability-matcher.service.d.ts +89 -0
- package/dist/services/agent-capability-matcher.service.d.ts.map +1 -0
- package/dist/services/agent-capability-matcher.service.js +310 -0
- package/dist/services/agent-capability-matcher.service.js.map +1 -0
- package/dist/services/agent-capability-registry.service.d.ts +93 -0
- package/dist/services/agent-capability-registry.service.d.ts.map +1 -0
- package/dist/services/agent-capability-registry.service.js +242 -0
- package/dist/services/agent-capability-registry.service.js.map +1 -0
- package/dist/services/agent-selection-analytics.service.d.ts +89 -0
- package/dist/services/agent-selection-analytics.service.d.ts.map +1 -0
- package/dist/services/agent-selection-analytics.service.js +180 -0
- package/dist/services/agent-selection-analytics.service.js.map +1 -0
- package/dist/services/context-analyzer.service.d.ts +56 -0
- package/dist/services/context-analyzer.service.d.ts.map +1 -0
- package/dist/services/context-analyzer.service.js +323 -0
- package/dist/services/context-analyzer.service.js.map +1 -0
- package/dist/services/diagnostics.service.d.ts +40 -0
- package/dist/services/diagnostics.service.d.ts.map +1 -0
- package/dist/services/diagnostics.service.js +245 -0
- package/dist/services/diagnostics.service.js.map +1 -0
- package/dist/services/document-detector.service.d.ts +89 -0
- package/dist/services/document-detector.service.d.ts.map +1 -0
- package/dist/services/document-detector.service.js +500 -0
- package/dist/services/document-detector.service.js.map +1 -0
- package/dist/services/document-path-resolver.service.d.ts +68 -0
- package/dist/services/document-path-resolver.service.d.ts.map +1 -0
- package/dist/services/document-path-resolver.service.js +155 -0
- package/dist/services/document-path-resolver.service.js.map +1 -0
- package/dist/services/document-template.service.d.ts +83 -0
- package/dist/services/document-template.service.d.ts.map +1 -0
- package/dist/services/document-template.service.js +317 -0
- package/dist/services/document-template.service.js.map +1 -0
- package/dist/services/document-writer.service.d.ts +42 -0
- package/dist/services/document-writer.service.d.ts.map +1 -0
- package/dist/services/document-writer.service.js +155 -0
- package/dist/services/document-writer.service.js.map +1 -0
- package/dist/services/dynamic-agent-resolver.service.d.ts +81 -0
- package/dist/services/dynamic-agent-resolver.service.d.ts.map +1 -0
- package/dist/services/dynamic-agent-resolver.service.js +267 -0
- package/dist/services/dynamic-agent-resolver.service.js.map +1 -0
- package/dist/services/git-stash-protection.service.d.ts +76 -0
- package/dist/services/git-stash-protection.service.d.ts.map +1 -0
- package/dist/services/git-stash-protection.service.js +190 -0
- package/dist/services/git-stash-protection.service.js.map +1 -0
- package/dist/services/idempotency-store.service.d.ts +101 -0
- package/dist/services/idempotency-store.service.d.ts.map +1 -0
- package/dist/services/idempotency-store.service.js +418 -0
- package/dist/services/idempotency-store.service.js.map +1 -0
- package/dist/services/index.d.ts +17 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +17 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/task-classifier.service.d.ts +42 -0
- package/dist/services/task-classifier.service.d.ts.map +1 -0
- package/dist/services/task-classifier.service.js +211 -0
- package/dist/services/task-classifier.service.js.map +1 -0
- package/dist/session/archive-adapter.d.ts +26 -0
- package/dist/session/archive-adapter.d.ts.map +1 -0
- package/dist/session/archive-adapter.interface.d.ts +59 -0
- package/dist/session/archive-adapter.interface.d.ts.map +1 -0
- package/dist/session/archive-adapter.interface.js +11 -0
- package/dist/session/archive-adapter.interface.js.map +1 -0
- package/dist/session/archive-adapter.js +72 -0
- package/dist/session/archive-adapter.js.map +1 -0
- package/dist/session/cleanup-scheduler.d.ts +22 -0
- package/dist/session/cleanup-scheduler.d.ts.map +1 -0
- package/dist/session/cleanup-scheduler.js +96 -0
- package/dist/session/cleanup-scheduler.js.map +1 -0
- package/dist/session/context.d.ts +109 -0
- package/dist/session/context.d.ts.map +1 -0
- package/dist/session/context.js +253 -0
- package/dist/session/context.js.map +1 -0
- package/dist/session/index.d.ts +9 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +9 -0
- package/dist/session/index.js.map +1 -0
- package/dist/session/lifecycle.d.ts +87 -0
- package/dist/session/lifecycle.d.ts.map +1 -0
- package/dist/session/lifecycle.js +301 -0
- package/dist/session/lifecycle.js.map +1 -0
- package/dist/session/retention-manager.d.ts +55 -0
- package/dist/session/retention-manager.d.ts.map +1 -0
- package/dist/session/retention-manager.js +299 -0
- package/dist/session/retention-manager.js.map +1 -0
- package/dist/session/retention-policy-runner.d.ts +19 -0
- package/dist/session/retention-policy-runner.d.ts.map +1 -0
- package/dist/session/retention-policy-runner.js +103 -0
- package/dist/session/retention-policy-runner.js.map +1 -0
- package/dist/session/session-cleanup-ui.d.ts +101 -0
- package/dist/session/session-cleanup-ui.d.ts.map +1 -0
- package/dist/session/session-cleanup-ui.js +339 -0
- package/dist/session/session-cleanup-ui.js.map +1 -0
- package/dist/session/session-exporter.d.ts +61 -0
- package/dist/session/session-exporter.d.ts.map +1 -0
- package/dist/session/session-exporter.js +274 -0
- package/dist/session/session-exporter.js.map +1 -0
- package/dist/session/store.d.ts +138 -0
- package/dist/session/store.d.ts.map +1 -0
- package/dist/session/store.js +430 -0
- package/dist/session/store.js.map +1 -0
- package/dist/session/types.d.ts +22 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/types.js +7 -0
- package/dist/session/types.js.map +1 -0
- package/dist/tsconfig.json +18 -0
- package/dist/types/agent.types.d.ts +110 -0
- package/dist/types/agent.types.d.ts.map +1 -0
- package/dist/types/agent.types.js +5 -0
- package/dist/types/agent.types.js.map +1 -0
- package/dist/types/cli.types.d.ts +86 -0
- package/dist/types/cli.types.d.ts.map +1 -0
- package/dist/types/cli.types.js +5 -0
- package/dist/types/cli.types.js.map +1 -0
- package/dist/types/command.types.d.ts +176 -0
- package/dist/types/command.types.d.ts.map +1 -0
- package/dist/types/command.types.js +19 -0
- package/dist/types/command.types.js.map +1 -0
- package/dist/types/common.types.d.ts +31 -0
- package/dist/types/common.types.d.ts.map +1 -0
- package/dist/types/common.types.js +8 -0
- package/dist/types/common.types.js.map +1 -0
- package/dist/types/config.types.d.ts +104 -0
- package/dist/types/config.types.d.ts.map +1 -0
- package/dist/types/config.types.js +5 -0
- package/dist/types/config.types.js.map +1 -0
- package/dist/types/diagnostics.types.d.ts +18 -0
- package/dist/types/diagnostics.types.d.ts.map +1 -0
- package/dist/types/diagnostics.types.js +8 -0
- package/dist/types/diagnostics.types.js.map +1 -0
- package/dist/types/document.types.d.ts +127 -0
- package/dist/types/document.types.d.ts.map +1 -0
- package/dist/types/document.types.js +73 -0
- package/dist/types/document.types.js.map +1 -0
- package/dist/types/error.types.d.ts +48 -0
- package/dist/types/error.types.d.ts.map +1 -0
- package/dist/types/error.types.js +16 -0
- package/dist/types/error.types.js.map +1 -0
- package/dist/types/escalation.types.d.ts +76 -0
- package/dist/types/escalation.types.d.ts.map +1 -0
- package/dist/types/escalation.types.js +15 -0
- package/dist/types/escalation.types.js.map +1 -0
- package/dist/types/exploration.types.d.ts +298 -0
- package/dist/types/exploration.types.d.ts.map +1 -0
- package/dist/types/exploration.types.js +5 -0
- package/dist/types/exploration.types.js.map +1 -0
- package/dist/types/hook.types.d.ts +47 -0
- package/dist/types/hook.types.d.ts.map +1 -0
- package/dist/types/hook.types.js +8 -0
- package/dist/types/hook.types.js.map +1 -0
- package/dist/types/idempotency.types.d.ts +80 -0
- package/dist/types/idempotency.types.d.ts.map +1 -0
- package/dist/types/idempotency.types.js +16 -0
- package/dist/types/idempotency.types.js.map +1 -0
- package/dist/types/index.d.ts +25 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +25 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/llm.types.d.ts +73 -0
- package/dist/types/llm.types.d.ts.map +1 -0
- package/dist/types/llm.types.js +5 -0
- package/dist/types/llm.types.js.map +1 -0
- package/dist/types/logger.types.d.ts +21 -0
- package/dist/types/logger.types.d.ts.map +1 -0
- package/dist/types/logger.types.js +9 -0
- package/dist/types/logger.types.js.map +1 -0
- package/dist/types/mcp-client.types.d.ts +232 -0
- package/dist/types/mcp-client.types.d.ts.map +1 -0
- package/dist/types/mcp-client.types.js +8 -0
- package/dist/types/mcp-client.types.js.map +1 -0
- package/dist/types/mcp-registry.types.d.ts +49 -0
- package/dist/types/mcp-registry.types.d.ts.map +1 -0
- package/dist/types/mcp-registry.types.js +70 -0
- package/dist/types/mcp-registry.types.js.map +1 -0
- package/dist/types/mcp.types.d.ts +127 -0
- package/dist/types/mcp.types.d.ts.map +1 -0
- package/dist/types/mcp.types.js +5 -0
- package/dist/types/mcp.types.js.map +1 -0
- package/dist/types/pipeline.types.d.ts +139 -0
- package/dist/types/pipeline.types.d.ts.map +1 -0
- package/dist/types/pipeline.types.js +26 -0
- package/dist/types/pipeline.types.js.map +1 -0
- package/dist/types/prompt.types.d.ts +66 -0
- package/dist/types/prompt.types.d.ts.map +1 -0
- package/dist/types/prompt.types.js +5 -0
- package/dist/types/prompt.types.js.map +1 -0
- package/dist/types/provider-names.types.d.ts +56 -0
- package/dist/types/provider-names.types.d.ts.map +1 -0
- package/dist/types/provider-names.types.js +63 -0
- package/dist/types/provider-names.types.js.map +1 -0
- package/dist/types/provider.types.d.ts +22 -0
- package/dist/types/provider.types.d.ts.map +1 -0
- package/dist/types/provider.types.js +21 -0
- package/dist/types/provider.types.js.map +1 -0
- package/dist/types/session.types.d.ts +121 -0
- package/dist/types/session.types.d.ts.map +1 -0
- package/dist/types/session.types.js +5 -0
- package/dist/types/session.types.js.map +1 -0
- package/dist/types/tracing.types.d.ts +176 -0
- package/dist/types/tracing.types.d.ts.map +1 -0
- package/dist/types/tracing.types.js +77 -0
- package/dist/types/tracing.types.js.map +1 -0
- package/dist/types/ui.types.d.ts +88 -0
- package/dist/types/ui.types.d.ts.map +1 -0
- package/dist/types/ui.types.js +8 -0
- package/dist/types/ui.types.js.map +1 -0
- package/dist/types/workflow.types.d.ts +63 -0
- package/dist/types/workflow.types.d.ts.map +1 -0
- package/dist/types/workflow.types.js +5 -0
- package/dist/types/workflow.types.js.map +1 -0
- package/dist/ui/dashboard-tui.d.ts +38 -0
- package/dist/ui/dashboard-tui.d.ts.map +1 -0
- package/dist/ui/dashboard-tui.js +422 -0
- package/dist/ui/dashboard-tui.js.map +1 -0
- package/dist/ui/prompt-adapter.d.ts +37 -0
- package/dist/ui/prompt-adapter.d.ts.map +1 -0
- package/dist/ui/prompt-adapter.interface.d.ts +175 -0
- package/dist/ui/prompt-adapter.interface.d.ts.map +1 -0
- package/dist/ui/prompt-adapter.interface.js +54 -0
- package/dist/ui/prompt-adapter.interface.js.map +1 -0
- package/dist/ui/prompt-adapter.js +45 -0
- package/dist/ui/prompt-adapter.js.map +1 -0
- package/dist/ui/spinner-adapter.d.ts +29 -0
- package/dist/ui/spinner-adapter.d.ts.map +1 -0
- package/dist/ui/spinner-adapter.interface.d.ts +200 -0
- package/dist/ui/spinner-adapter.interface.d.ts.map +1 -0
- package/dist/ui/spinner-adapter.interface.js +53 -0
- package/dist/ui/spinner-adapter.interface.js.map +1 -0
- package/dist/ui/spinner-adapter.js +40 -0
- package/dist/ui/spinner-adapter.js.map +1 -0
- package/dist/ui/tui-adapter.d.ts +52 -0
- package/dist/ui/tui-adapter.d.ts.map +1 -0
- package/dist/ui/tui-adapter.interface.d.ts +197 -0
- package/dist/ui/tui-adapter.interface.d.ts.map +1 -0
- package/dist/ui/tui-adapter.interface.js +62 -0
- package/dist/ui/tui-adapter.interface.js.map +1 -0
- package/dist/ui/tui-adapter.js +58 -0
- package/dist/ui/tui-adapter.js.map +1 -0
- package/dist/utils/base-cleanup-scheduler.d.ts +60 -0
- package/dist/utils/base-cleanup-scheduler.d.ts.map +1 -0
- package/dist/utils/base-cleanup-scheduler.js +110 -0
- package/dist/utils/base-cleanup-scheduler.js.map +1 -0
- package/dist/utils/base-retention-manager.d.ts +136 -0
- package/dist/utils/base-retention-manager.d.ts.map +1 -0
- package/dist/utils/base-retention-manager.js +234 -0
- package/dist/utils/base-retention-manager.js.map +1 -0
- package/dist/utils/console-interceptor.d.ts +52 -0
- package/dist/utils/console-interceptor.d.ts.map +1 -0
- package/dist/utils/console-interceptor.js +92 -0
- package/dist/utils/console-interceptor.js.map +1 -0
- package/dist/utils/data-sanitizer.d.ts +106 -0
- package/dist/utils/data-sanitizer.d.ts.map +1 -0
- package/dist/utils/data-sanitizer.js +295 -0
- package/dist/utils/data-sanitizer.js.map +1 -0
- package/dist/utils/diff-generator.d.ts +42 -0
- package/dist/utils/diff-generator.d.ts.map +1 -0
- package/dist/utils/diff-generator.js +286 -0
- package/dist/utils/diff-generator.js.map +1 -0
- package/dist/utils/docs-linter.d.ts +178 -0
- package/dist/utils/docs-linter.d.ts.map +1 -0
- package/dist/utils/docs-linter.js +623 -0
- package/dist/utils/docs-linter.js.map +1 -0
- package/dist/utils/domain-keyword-registry.d.ts +57 -0
- package/dist/utils/domain-keyword-registry.d.ts.map +1 -0
- package/dist/utils/domain-keyword-registry.js +253 -0
- package/dist/utils/domain-keyword-registry.js.map +1 -0
- package/dist/utils/encryption.d.ts +111 -0
- package/dist/utils/encryption.d.ts.map +1 -0
- package/dist/utils/encryption.js +304 -0
- package/dist/utils/encryption.js.map +1 -0
- package/dist/utils/environment.d.ts +37 -0
- package/dist/utils/environment.d.ts.map +1 -0
- package/dist/utils/environment.js +87 -0
- package/dist/utils/environment.js.map +1 -0
- package/dist/utils/error-handler.d.ts +130 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +319 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/error-messages.d.ts +23 -0
- package/dist/utils/error-messages.d.ts.map +1 -0
- package/dist/utils/error-messages.js +160 -0
- package/dist/utils/error-messages.js.map +1 -0
- package/dist/utils/error-utils.d.ts +26 -0
- package/dist/utils/error-utils.d.ts.map +1 -0
- package/dist/utils/error-utils.js +33 -0
- package/dist/utils/error-utils.js.map +1 -0
- package/dist/utils/file-lock.d.ts +77 -0
- package/dist/utils/file-lock.d.ts.map +1 -0
- package/dist/utils/file-lock.js +355 -0
- package/dist/utils/file-lock.js.map +1 -0
- package/dist/utils/file-utils.d.ts +71 -0
- package/dist/utils/file-utils.d.ts.map +1 -0
- package/dist/utils/file-utils.js +235 -0
- package/dist/utils/file-utils.js.map +1 -0
- package/dist/utils/heap-profiler.d.ts +20 -0
- package/dist/utils/heap-profiler.d.ts.map +1 -0
- package/dist/utils/heap-profiler.js +60 -0
- package/dist/utils/heap-profiler.js.map +1 -0
- package/dist/utils/help-content.d.ts +117 -0
- package/dist/utils/help-content.d.ts.map +1 -0
- package/dist/utils/help-content.js +1512 -0
- package/dist/utils/help-content.js.map +1 -0
- package/dist/utils/id-generator.d.ts +45 -0
- package/dist/utils/id-generator.d.ts.map +1 -0
- package/dist/utils/id-generator.js +62 -0
- package/dist/utils/id-generator.js.map +1 -0
- package/dist/utils/index.d.ts +17 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/input-validator.d.ts +152 -0
- package/dist/utils/input-validator.d.ts.map +1 -0
- package/dist/utils/input-validator.js +494 -0
- package/dist/utils/input-validator.js.map +1 -0
- package/dist/utils/markdown-parser.d.ts +32 -0
- package/dist/utils/markdown-parser.d.ts.map +1 -0
- package/dist/utils/markdown-parser.js +85 -0
- package/dist/utils/markdown-parser.js.map +1 -0
- package/dist/utils/metrics-collector.d.ts +165 -0
- package/dist/utils/metrics-collector.d.ts.map +1 -0
- package/dist/utils/metrics-collector.js +392 -0
- package/dist/utils/metrics-collector.js.map +1 -0
- package/dist/utils/number-format.d.ts +29 -0
- package/dist/utils/number-format.d.ts.map +1 -0
- package/dist/utils/number-format.js +72 -0
- package/dist/utils/number-format.js.map +1 -0
- package/dist/utils/paths.d.ts +37 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +91 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/performance-profiler.d.ts +155 -0
- package/dist/utils/performance-profiler.d.ts.map +1 -0
- package/dist/utils/performance-profiler.js +429 -0
- package/dist/utils/performance-profiler.js.map +1 -0
- package/dist/utils/prompt-handler.d.ts +18 -0
- package/dist/utils/prompt-handler.d.ts.map +1 -0
- package/dist/utils/prompt-handler.js +66 -0
- package/dist/utils/prompt-handler.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +99 -0
- package/dist/utils/rate-limiter.d.ts.map +1 -0
- package/dist/utils/rate-limiter.js +214 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/resource-monitor.d.ts +203 -0
- package/dist/utils/resource-monitor.d.ts.map +1 -0
- package/dist/utils/resource-monitor.js +521 -0
- package/dist/utils/resource-monitor.js.map +1 -0
- package/dist/utils/resource-resolver.d.ts +58 -0
- package/dist/utils/resource-resolver.d.ts.map +1 -0
- package/dist/utils/resource-resolver.js +150 -0
- package/dist/utils/resource-resolver.js.map +1 -0
- package/dist/utils/safe-exec.d.ts +90 -0
- package/dist/utils/safe-exec.d.ts.map +1 -0
- package/dist/utils/safe-exec.js +210 -0
- package/dist/utils/safe-exec.js.map +1 -0
- package/dist/utils/safe-regex.d.ts +49 -0
- package/dist/utils/safe-regex.d.ts.map +1 -0
- package/dist/utils/safe-regex.js +96 -0
- package/dist/utils/safe-regex.js.map +1 -0
- package/dist/utils/template-loader.d.ts +39 -0
- package/dist/utils/template-loader.d.ts.map +1 -0
- package/dist/utils/template-loader.js +75 -0
- package/dist/utils/template-loader.js.map +1 -0
- package/dist/utils/token-estimator.d.ts +60 -0
- package/dist/utils/token-estimator.d.ts.map +1 -0
- package/dist/utils/token-estimator.js +114 -0
- package/dist/utils/token-estimator.js.map +1 -0
- package/dist/utils/tracing.d.ts +166 -0
- package/dist/utils/tracing.d.ts.map +1 -0
- package/dist/utils/tracing.js +645 -0
- package/dist/utils/tracing.js.map +1 -0
- package/dist/utils/type-guards.d.ts +58 -0
- package/dist/utils/type-guards.d.ts.map +1 -0
- package/dist/utils/type-guards.js +103 -0
- package/dist/utils/type-guards.js.map +1 -0
- package/dist/utils/yaml-parser.d.ts +38 -0
- package/dist/utils/yaml-parser.d.ts.map +1 -0
- package/dist/utils/yaml-parser.js +71 -0
- package/dist/utils/yaml-parser.js.map +1 -0
- package/package.json +166 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# Test Coverage Validation Gate
|
|
2
|
+
|
|
3
|
+
## Quality Gate: Automated Test Coverage Validation
|
|
4
|
+
|
|
5
|
+
**Purpose**: Enforce minimum test coverage thresholds before code can proceed to review/merge.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Coverage Thresholds
|
|
10
|
+
|
|
11
|
+
### Tier 1: Critical Thresholds (MUST PASS)
|
|
12
|
+
|
|
13
|
+
| Metric | Threshold | Status |
|
|
14
|
+
| ----------------------------- | --------- | ------------------- |
|
|
15
|
+
| **Overall Line Coverage** | >= 80% | [ ] PASS / [ ] FAIL |
|
|
16
|
+
| **Overall Branch Coverage** | >= 70% | [ ] PASS / [ ] FAIL |
|
|
17
|
+
| **Overall Function Coverage** | >= 85% | [ ] PASS / [ ] FAIL |
|
|
18
|
+
| **New Code Coverage** | >= 90% | [ ] PASS / [ ] FAIL |
|
|
19
|
+
|
|
20
|
+
### Tier 2: File-Level Thresholds
|
|
21
|
+
|
|
22
|
+
| File Type | Line Coverage | Branch Coverage |
|
|
23
|
+
| -------------------------- | ------------- | --------------- |
|
|
24
|
+
| **Service/Business Logic** | >= 85% | >= 75% |
|
|
25
|
+
| **Controllers/Routes** | >= 80% | >= 70% |
|
|
26
|
+
| **Utilities/Helpers** | >= 90% | >= 80% |
|
|
27
|
+
| **Models/Types** | >= 70% | >= 60% |
|
|
28
|
+
| **Config/Setup** | >= 50% | >= 40% |
|
|
29
|
+
|
|
30
|
+
### Tier 3: Critical Path Coverage (MUST BE 100%)
|
|
31
|
+
|
|
32
|
+
These paths MUST have complete test coverage:
|
|
33
|
+
|
|
34
|
+
- [ ] Authentication flows (login, logout, token refresh)
|
|
35
|
+
- [ ] Authorization checks (permission validation)
|
|
36
|
+
- [ ] Payment processing (if applicable)
|
|
37
|
+
- [ ] Data validation (input sanitisation)
|
|
38
|
+
- [ ] Error handling (catch blocks, error responses)
|
|
39
|
+
- [ ] Security-sensitive operations
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Test Type Requirements
|
|
44
|
+
|
|
45
|
+
### Unit Tests
|
|
46
|
+
|
|
47
|
+
| Requirement | Target | Status |
|
|
48
|
+
| ----------------------- | --------------------------- | ------ |
|
|
49
|
+
| Test count per function | >= 3 tests | [ ] |
|
|
50
|
+
| Happy path tested | Required | [ ] |
|
|
51
|
+
| Error cases tested | >= 2 per function | [ ] |
|
|
52
|
+
| Edge cases tested | >= 1 per function | [ ] |
|
|
53
|
+
| Boundary conditions | Required for numeric inputs | [ ] |
|
|
54
|
+
|
|
55
|
+
### Integration Tests
|
|
56
|
+
|
|
57
|
+
| Requirement | Target | Status |
|
|
58
|
+
| ---------------------- | ----------------- | ------ |
|
|
59
|
+
| API endpoints | 100% covered | [ ] |
|
|
60
|
+
| Database operations | 100% covered | [ ] |
|
|
61
|
+
| External service calls | Mocked and tested | [ ] |
|
|
62
|
+
| Cross-service flows | >= 80% covered | [ ] |
|
|
63
|
+
|
|
64
|
+
### E2E Tests (When Applicable)
|
|
65
|
+
|
|
66
|
+
| Requirement | Target | Status |
|
|
67
|
+
| ---------------------- | -------------- | ------ |
|
|
68
|
+
| Critical user journeys | 100% covered | [ ] |
|
|
69
|
+
| Authentication flows | Required | [ ] |
|
|
70
|
+
| Happy path scenarios | Required | [ ] |
|
|
71
|
+
| Error recovery | >= 50% covered | [ ] |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Quality Metrics
|
|
76
|
+
|
|
77
|
+
### Test Quality Score Calculation
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Score = (
|
|
81
|
+
Line Coverage * 0.3 +
|
|
82
|
+
Branch Coverage * 0.25 +
|
|
83
|
+
Function Coverage * 0.2 +
|
|
84
|
+
New Code Coverage * 0.15 +
|
|
85
|
+
Test Type Diversity * 0.10
|
|
86
|
+
) * 100
|
|
87
|
+
|
|
88
|
+
Test Type Diversity = (
|
|
89
|
+
Has Unit Tests * 0.5 +
|
|
90
|
+
Has Integration Tests * 0.3 +
|
|
91
|
+
Has E2E Tests * 0.2
|
|
92
|
+
)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Score Thresholds
|
|
96
|
+
|
|
97
|
+
| Score | Grade | Action |
|
|
98
|
+
| ----- | ----- | ----------------------------------- |
|
|
99
|
+
| >= 80 | A | PASS - Proceed to review |
|
|
100
|
+
| 70-79 | B | WARN - Proceed with recommendations |
|
|
101
|
+
| 60-69 | C | WARN - Requires justification |
|
|
102
|
+
| 50-59 | D | FAIL - Must improve coverage |
|
|
103
|
+
| < 50 | F | FAIL - Insufficient testing |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Validation Commands
|
|
108
|
+
|
|
109
|
+
### Quick Validation (~2 min)
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Run coverage check
|
|
113
|
+
pnpm test:coverage
|
|
114
|
+
|
|
115
|
+
# Check thresholds
|
|
116
|
+
pnpm coverage:check --threshold=80
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Full Validation (~5 min)
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Run all tests with coverage
|
|
123
|
+
pnpm test --coverage --all
|
|
124
|
+
|
|
125
|
+
# Generate detailed report
|
|
126
|
+
pnpm coverage:report --format=json
|
|
127
|
+
|
|
128
|
+
# Validate against gates
|
|
129
|
+
pnpm coverage:gate --strict
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### CI/CD Integration
|
|
133
|
+
|
|
134
|
+
```yaml
|
|
135
|
+
# .github/workflows/test.yml
|
|
136
|
+
coverage:
|
|
137
|
+
runs-on: ubuntu-latest
|
|
138
|
+
steps:
|
|
139
|
+
- uses: actions/checkout@v4
|
|
140
|
+
- run: pnpm test:coverage
|
|
141
|
+
- run: pnpm coverage:gate --threshold=80
|
|
142
|
+
- uses: codecov/codecov-action@v4
|
|
143
|
+
with:
|
|
144
|
+
fail_ci_if_error: true
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Coverage Gap Analysis
|
|
150
|
+
|
|
151
|
+
### Common Coverage Gaps
|
|
152
|
+
|
|
153
|
+
| Gap Type | Cause | Fix |
|
|
154
|
+
| ---------------------------- | -------------------------- | ------------------------------ |
|
|
155
|
+
| **Uncovered branches** | Missing edge case tests | Add tests for else/catch paths |
|
|
156
|
+
| **Uncovered functions** | New code without tests | Write tests before/with code |
|
|
157
|
+
| **Low integration coverage** | Missing API tests | Add supertest/request tests |
|
|
158
|
+
| **No E2E coverage** | Missing user journey tests | Add Playwright/Cypress tests |
|
|
159
|
+
|
|
160
|
+
### Prioritised Coverage Actions
|
|
161
|
+
|
|
162
|
+
1. **CRITICAL**: Cover all security-related code (auth, validation)
|
|
163
|
+
2. **HIGH**: Cover all business logic (services, calculations)
|
|
164
|
+
3. **MEDIUM**: Cover all API endpoints (controllers, routes)
|
|
165
|
+
4. **LOW**: Cover utility functions and helpers
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Exemptions
|
|
170
|
+
|
|
171
|
+
### Allowed Low-Coverage Files
|
|
172
|
+
|
|
173
|
+
| Pattern | Reason | Max Threshold |
|
|
174
|
+
| ------------------------- | --------------------- | ------------- |
|
|
175
|
+
| `*.config.ts` | Configuration files | 50% |
|
|
176
|
+
| `*.types.ts` | Type definitions only | 20% |
|
|
177
|
+
| `*.d.ts` | Declaration files | 0% |
|
|
178
|
+
| `index.ts` (exports only) | Re-exports | 0% |
|
|
179
|
+
| `*.mock.ts` | Test mocks | 0% |
|
|
180
|
+
| `*.fixture.ts` | Test fixtures | 0% |
|
|
181
|
+
|
|
182
|
+
### Exemption Request
|
|
183
|
+
|
|
184
|
+
To request coverage exemption:
|
|
185
|
+
|
|
186
|
+
```typescript
|
|
187
|
+
/* istanbul ignore next: [REASON] */
|
|
188
|
+
function exemptedFunction() {
|
|
189
|
+
// Code that cannot be easily tested
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Valid reasons:
|
|
194
|
+
|
|
195
|
+
- Platform-specific code (Windows/Mac/Linux)
|
|
196
|
+
- Error recovery that requires external failure
|
|
197
|
+
- Third-party library integration quirks
|
|
198
|
+
- Hardware-dependent functionality
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Reporting
|
|
203
|
+
|
|
204
|
+
### Coverage Report Format
|
|
205
|
+
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"summary": {
|
|
209
|
+
"lines": { "total": 1000, "covered": 850, "pct": 85.0 },
|
|
210
|
+
"branches": { "total": 200, "covered": 150, "pct": 75.0 },
|
|
211
|
+
"functions": { "total": 100, "covered": 90, "pct": 90.0 },
|
|
212
|
+
"statements": { "total": 1100, "covered": 935, "pct": 85.0 }
|
|
213
|
+
},
|
|
214
|
+
"qualityScore": 82,
|
|
215
|
+
"grade": "A",
|
|
216
|
+
"status": "PASS",
|
|
217
|
+
"newCodeCoverage": 92.5,
|
|
218
|
+
"criticalPathsCovered": true,
|
|
219
|
+
"gapsIdentified": [
|
|
220
|
+
{
|
|
221
|
+
"file": "src/services/payment.ts",
|
|
222
|
+
"coverage": 75,
|
|
223
|
+
"required": 85,
|
|
224
|
+
"gap": 10,
|
|
225
|
+
"priority": "HIGH"
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Validation Checklist
|
|
234
|
+
|
|
235
|
+
### Pre-Submit Checklist
|
|
236
|
+
|
|
237
|
+
- [ ] All tests pass (`pnpm test`)
|
|
238
|
+
- [ ] Coverage meets threshold (`pnpm coverage:check`)
|
|
239
|
+
- [ ] No decrease in coverage from baseline
|
|
240
|
+
- [ ] New code has >= 90% coverage
|
|
241
|
+
- [ ] Critical paths are 100% covered
|
|
242
|
+
- [ ] No `istanbul ignore` without justification
|
|
243
|
+
- [ ] Integration tests for all API changes
|
|
244
|
+
- [ ] E2E tests for user-facing changes
|
|
245
|
+
|
|
246
|
+
### Quality Gate Decision
|
|
247
|
+
|
|
248
|
+
| All Tier 1 Pass | Score >= 60 | Decision |
|
|
249
|
+
| --------------- | ----------- | ------------------------------------------- |
|
|
250
|
+
| YES | YES | **PASS** |
|
|
251
|
+
| YES | NO | **WARN** - Improve test quality |
|
|
252
|
+
| NO | YES | **FAIL** - Must meet thresholds |
|
|
253
|
+
| NO | NO | **FAIL** - Comprehensive improvement needed |
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
## Expected Outcomes
|
|
258
|
+
|
|
259
|
+
With this validation gate:
|
|
260
|
+
|
|
261
|
+
- Test quality score increases from 40 to >= 70
|
|
262
|
+
- Coverage gaps identified before review
|
|
263
|
+
- Consistent coverage across codebase
|
|
264
|
+
- Critical paths always tested
|
|
265
|
+
- Faster feedback on test quality
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
# Test Generation Requirements
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
This template defines specific test generation requirements to ensure high-quality test coverage. Use this when generating tests during implementation to achieve quality score >= 70.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Minimum Test Requirements Per Function
|
|
10
|
+
|
|
11
|
+
### For Each Public Function/Method
|
|
12
|
+
|
|
13
|
+
| Requirement | Count | Description |
|
|
14
|
+
| -------------------- | ----- | --------------------------------- |
|
|
15
|
+
| **Happy Path Tests** | >= 1 | Normal, expected usage |
|
|
16
|
+
| **Error Case Tests** | >= 2 | Invalid inputs, failure scenarios |
|
|
17
|
+
| **Edge Case Tests** | >= 1 | Boundaries, null, empty, extremes |
|
|
18
|
+
| **Total Minimum** | >= 4 | Per public function |
|
|
19
|
+
|
|
20
|
+
### Test Naming Convention
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
describe('[ClassName/ModuleName]', () => {
|
|
24
|
+
describe('[methodName]', () => {
|
|
25
|
+
// Happy path
|
|
26
|
+
it('should [expected behavior] when [valid condition]', () => {});
|
|
27
|
+
|
|
28
|
+
// Error cases
|
|
29
|
+
it('should throw [ErrorType] when [invalid condition]', () => {});
|
|
30
|
+
it('should return [error result] when [failure condition]', () => {});
|
|
31
|
+
|
|
32
|
+
// Edge cases
|
|
33
|
+
it('should handle [edge case] correctly', () => {});
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Coverage Requirements by Code Type
|
|
41
|
+
|
|
42
|
+
### 1. Service/Business Logic (>= 85% coverage)
|
|
43
|
+
|
|
44
|
+
**Required tests**:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
// For a service method like: async createUser(data: CreateUserDto): Promise<User>
|
|
48
|
+
|
|
49
|
+
// Happy path (required)
|
|
50
|
+
it('should create user with valid data', async () => {
|
|
51
|
+
const result = await service.createUser(validData);
|
|
52
|
+
expect(result).toMatchObject({ email: validData.email });
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Validation errors (required)
|
|
56
|
+
it('should throw ValidationError when email is invalid', async () => {
|
|
57
|
+
await expect(service.createUser({ ...validData, email: 'invalid' })).rejects.toThrow(ValidationError);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// Database errors (required)
|
|
61
|
+
it('should throw ConflictError when email already exists', async () => {
|
|
62
|
+
await service.createUser(validData); // First create
|
|
63
|
+
await expect(service.createUser(validData)).rejects.toThrow(ConflictError);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// Edge cases (required)
|
|
67
|
+
it('should handle email with special characters', async () => {
|
|
68
|
+
const data = { ...validData, email: 'user+tag@example.com' };
|
|
69
|
+
const result = await service.createUser(data);
|
|
70
|
+
expect(result.email).toBe(data.email);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it('should handle maximum field lengths', async () => {
|
|
74
|
+
const data = { ...validData, name: 'A'.repeat(255) };
|
|
75
|
+
const result = await service.createUser(data);
|
|
76
|
+
expect(result.name).toHaveLength(255);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// Null/undefined handling (if applicable)
|
|
80
|
+
it('should use default values for optional fields', async () => {
|
|
81
|
+
const data = { email: 'test@example.com' }; // Minimal data
|
|
82
|
+
const result = await service.createUser(data);
|
|
83
|
+
expect(result.role).toBe('user'); // Default role
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 2. Controllers/Routes (>= 80% coverage)
|
|
88
|
+
|
|
89
|
+
**Required tests**:
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
// For an endpoint like: POST /users
|
|
93
|
+
|
|
94
|
+
// Success response (required)
|
|
95
|
+
it('should return 201 with created user', async () => {
|
|
96
|
+
const response = await request(app).post('/users').send(validData);
|
|
97
|
+
|
|
98
|
+
expect(response.status).toBe(201);
|
|
99
|
+
expect(response.body).toHaveProperty('id');
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Validation response (required)
|
|
103
|
+
it('should return 400 for invalid input', async () => {
|
|
104
|
+
const response = await request(app).post('/users').send({ email: 'invalid' });
|
|
105
|
+
|
|
106
|
+
expect(response.status).toBe(400);
|
|
107
|
+
expect(response.body.errors).toBeDefined();
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
// Authentication (if protected)
|
|
111
|
+
it('should return 401 without authentication', async () => {
|
|
112
|
+
const response = await request(app).post('/users').send(validData);
|
|
113
|
+
|
|
114
|
+
expect(response.status).toBe(401);
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// Authorization (if role-based)
|
|
118
|
+
it('should return 403 for non-admin user', async () => {
|
|
119
|
+
const response = await request(app).post('/users').set('Authorization', `Bearer ${userToken}`).send(validData);
|
|
120
|
+
|
|
121
|
+
expect(response.status).toBe(403);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
// Not found (for GET/PUT/DELETE by ID)
|
|
125
|
+
it('should return 404 for non-existent user', async () => {
|
|
126
|
+
const response = await request(app).get('/users/non-existent-id');
|
|
127
|
+
|
|
128
|
+
expect(response.status).toBe(404);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
// Conflict handling (for POST with unique constraints)
|
|
132
|
+
it('should return 409 for duplicate email', async () => {
|
|
133
|
+
await request(app).post('/users').send(validData);
|
|
134
|
+
const response = await request(app).post('/users').send(validData);
|
|
135
|
+
|
|
136
|
+
expect(response.status).toBe(409);
|
|
137
|
+
});
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### 3. Utilities/Helpers (>= 90% coverage)
|
|
141
|
+
|
|
142
|
+
**Required tests**:
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
// For a utility like: function formatDate(date: Date, format: string): string
|
|
146
|
+
|
|
147
|
+
// Valid inputs (multiple formats)
|
|
148
|
+
it.each([
|
|
149
|
+
[new Date('2024-01-15'), 'YYYY-MM-DD', '2024-01-15'],
|
|
150
|
+
[new Date('2024-01-15'), 'DD/MM/YYYY', '15/01/2024'],
|
|
151
|
+
[new Date('2024-01-15'), 'MMM D, YYYY', 'Jan 15, 2024']
|
|
152
|
+
])('should format %s as %s', (date, format, expected) => {
|
|
153
|
+
expect(formatDate(date, format)).toBe(expected);
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
// Invalid inputs
|
|
157
|
+
it('should throw for invalid date', () => {
|
|
158
|
+
expect(() => formatDate(new Date('invalid'), 'YYYY-MM-DD')).toThrow('Invalid date');
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it('should throw for unsupported format', () => {
|
|
162
|
+
expect(() => formatDate(new Date(), 'INVALID')).toThrow('Unsupported format');
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
// Edge cases
|
|
166
|
+
it('should handle leap year dates', () => {
|
|
167
|
+
expect(formatDate(new Date('2024-02-29'), 'YYYY-MM-DD')).toBe('2024-02-29');
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it('should handle timezone boundaries', () => {
|
|
171
|
+
const date = new Date('2024-01-01T00:00:00Z');
|
|
172
|
+
expect(formatDate(date, 'YYYY-MM-DD')).toBe('2024-01-01');
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it('should handle epoch date', () => {
|
|
176
|
+
expect(formatDate(new Date(0), 'YYYY-MM-DD')).toBe('1970-01-01');
|
|
177
|
+
});
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### 4. React Components (>= 80% coverage)
|
|
181
|
+
|
|
182
|
+
**Required tests**:
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
// For a component like: <UserForm onSubmit={fn} />
|
|
186
|
+
|
|
187
|
+
// Render tests
|
|
188
|
+
it('should render form fields', () => {
|
|
189
|
+
render(<UserForm onSubmit={jest.fn()} />);
|
|
190
|
+
|
|
191
|
+
expect(screen.getByLabelText('Email')).toBeInTheDocument();
|
|
192
|
+
expect(screen.getByLabelText('Name')).toBeInTheDocument();
|
|
193
|
+
expect(screen.getByRole('button', { name: /submit/i })).toBeInTheDocument();
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
// Interaction tests
|
|
197
|
+
it('should call onSubmit with form data', async () => {
|
|
198
|
+
const onSubmit = jest.fn();
|
|
199
|
+
render(<UserForm onSubmit={onSubmit} />);
|
|
200
|
+
|
|
201
|
+
await userEvent.type(screen.getByLabelText('Email'), 'test@example.com');
|
|
202
|
+
await userEvent.type(screen.getByLabelText('Name'), 'Test User');
|
|
203
|
+
await userEvent.click(screen.getByRole('button', { name: /submit/i }));
|
|
204
|
+
|
|
205
|
+
expect(onSubmit).toHaveBeenCalledWith({
|
|
206
|
+
email: 'test@example.com',
|
|
207
|
+
name: 'Test User',
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// Validation tests
|
|
212
|
+
it('should show error for invalid email', async () => {
|
|
213
|
+
render(<UserForm onSubmit={jest.fn()} />);
|
|
214
|
+
|
|
215
|
+
await userEvent.type(screen.getByLabelText('Email'), 'invalid');
|
|
216
|
+
await userEvent.click(screen.getByRole('button', { name: /submit/i }));
|
|
217
|
+
|
|
218
|
+
expect(screen.getByText(/invalid email/i)).toBeInTheDocument();
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
// Loading state
|
|
222
|
+
it('should disable submit while loading', () => {
|
|
223
|
+
render(<UserForm onSubmit={jest.fn()} isLoading />);
|
|
224
|
+
|
|
225
|
+
expect(screen.getByRole('button', { name: /submit/i })).toBeDisabled();
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
// Error state
|
|
229
|
+
it('should display error message', () => {
|
|
230
|
+
render(<UserForm onSubmit={jest.fn()} error="Something went wrong" />);
|
|
231
|
+
|
|
232
|
+
expect(screen.getByRole('alert')).toHaveTextContent('Something went wrong');
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
// Accessibility
|
|
236
|
+
it('should have no accessibility violations', async () => {
|
|
237
|
+
const { container } = render(<UserForm onSubmit={jest.fn()} />);
|
|
238
|
+
const results = await axe(container);
|
|
239
|
+
|
|
240
|
+
expect(results).toHaveNoViolations();
|
|
241
|
+
});
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Critical Path Test Requirements
|
|
247
|
+
|
|
248
|
+
### Authentication (MUST be 100% covered)
|
|
249
|
+
|
|
250
|
+
```typescript
|
|
251
|
+
describe('Authentication', () => {
|
|
252
|
+
// Login flow
|
|
253
|
+
it('should login with valid credentials', async () => {});
|
|
254
|
+
it('should reject invalid password', async () => {});
|
|
255
|
+
it('should reject non-existent user', async () => {});
|
|
256
|
+
it('should rate limit after failed attempts', async () => {});
|
|
257
|
+
|
|
258
|
+
// Token handling
|
|
259
|
+
it('should generate valid JWT', async () => {});
|
|
260
|
+
it('should reject expired token', async () => {});
|
|
261
|
+
it('should reject malformed token', async () => {});
|
|
262
|
+
it('should refresh token before expiry', async () => {});
|
|
263
|
+
|
|
264
|
+
// Logout
|
|
265
|
+
it('should invalidate token on logout', async () => {});
|
|
266
|
+
it('should clear refresh tokens', async () => {});
|
|
267
|
+
});
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Authorization (MUST be 100% covered)
|
|
271
|
+
|
|
272
|
+
```typescript
|
|
273
|
+
describe('Authorization', () => {
|
|
274
|
+
// Role checks
|
|
275
|
+
it('should allow admin access to admin routes', async () => {});
|
|
276
|
+
it('should deny user access to admin routes', async () => {});
|
|
277
|
+
|
|
278
|
+
// Resource ownership
|
|
279
|
+
it('should allow users to access own resources', async () => {});
|
|
280
|
+
it('should deny users access to other user resources', async () => {});
|
|
281
|
+
|
|
282
|
+
// Permission checks
|
|
283
|
+
it('should check required permissions', async () => {});
|
|
284
|
+
it('should handle missing permissions', async () => {});
|
|
285
|
+
});
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Input Validation (MUST be 100% covered)
|
|
289
|
+
|
|
290
|
+
```typescript
|
|
291
|
+
describe('Input Validation', () => {
|
|
292
|
+
// SQL injection prevention
|
|
293
|
+
it('should sanitize SQL injection attempts', async () => {});
|
|
294
|
+
|
|
295
|
+
// XSS prevention
|
|
296
|
+
it('should sanitize XSS attempts', async () => {});
|
|
297
|
+
|
|
298
|
+
// Type coercion
|
|
299
|
+
it('should reject invalid types', async () => {});
|
|
300
|
+
|
|
301
|
+
// Required fields
|
|
302
|
+
it('should require all mandatory fields', async () => {});
|
|
303
|
+
|
|
304
|
+
// Field length limits
|
|
305
|
+
it('should reject oversized input', async () => {});
|
|
306
|
+
});
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Test Structure Template
|
|
312
|
+
|
|
313
|
+
### Unit Test File Template
|
|
314
|
+
|
|
315
|
+
```typescript
|
|
316
|
+
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
|
|
317
|
+
import { [TargetClass] } from '../[target-file]';
|
|
318
|
+
|
|
319
|
+
// Mock dependencies
|
|
320
|
+
vi.mock('../dependencies', () => ({
|
|
321
|
+
dependency: vi.fn(),
|
|
322
|
+
}));
|
|
323
|
+
|
|
324
|
+
describe('[TargetClass]', () => {
|
|
325
|
+
let instance: [TargetClass];
|
|
326
|
+
|
|
327
|
+
beforeEach(() => {
|
|
328
|
+
// Reset mocks
|
|
329
|
+
vi.clearAllMocks();
|
|
330
|
+
|
|
331
|
+
// Create fresh instance
|
|
332
|
+
instance = new [TargetClass](mockDependency);
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
afterEach(() => {
|
|
336
|
+
// Cleanup
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
describe('[methodName]', () => {
|
|
340
|
+
describe('happy path', () => {
|
|
341
|
+
it('should [expected behavior] when [valid condition]', async () => {
|
|
342
|
+
// Arrange
|
|
343
|
+
const input = createTestInput();
|
|
344
|
+
|
|
345
|
+
// Act
|
|
346
|
+
const result = await instance.[methodName](input);
|
|
347
|
+
|
|
348
|
+
// Assert
|
|
349
|
+
expect(result).toMatchObject(expectedOutput);
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
describe('error cases', () => {
|
|
354
|
+
it('should throw [ErrorType] when [invalid condition]', async () => {
|
|
355
|
+
// Arrange
|
|
356
|
+
const invalidInput = createInvalidInput();
|
|
357
|
+
|
|
358
|
+
// Act & Assert
|
|
359
|
+
await expect(instance.[methodName](invalidInput))
|
|
360
|
+
.rejects.toThrow([ErrorType]);
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
describe('edge cases', () => {
|
|
365
|
+
it('should handle [edge case] correctly', async () => {
|
|
366
|
+
// Arrange
|
|
367
|
+
const edgeCaseInput = createEdgeCaseInput();
|
|
368
|
+
|
|
369
|
+
// Act
|
|
370
|
+
const result = await instance.[methodName](edgeCaseInput);
|
|
371
|
+
|
|
372
|
+
// Assert
|
|
373
|
+
expect(result).toBe(expectedEdgeCaseResult);
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Integration Test File Template
|
|
381
|
+
|
|
382
|
+
```typescript
|
|
383
|
+
import { describe, it, expect, beforeAll, afterAll, beforeEach } from 'vitest';
|
|
384
|
+
import request from 'supertest';
|
|
385
|
+
import { app } from '../app';
|
|
386
|
+
import { setupTestDatabase, cleanupTestDatabase } from './helpers/database';
|
|
387
|
+
|
|
388
|
+
describe('[Resource] API', () => {
|
|
389
|
+
beforeAll(async () => {
|
|
390
|
+
await setupTestDatabase();
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
afterAll(async () => {
|
|
394
|
+
await cleanupTestDatabase();
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
beforeEach(async () => {
|
|
398
|
+
await truncateTables();
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
describe('POST /api/[resource]', () => {
|
|
402
|
+
it('should create [resource] with valid data', async () => {
|
|
403
|
+
const response = await request(app).post('/api/[resource]').send(validData).expect(201);
|
|
404
|
+
|
|
405
|
+
expect(response.body).toMatchObject({
|
|
406
|
+
id: expect.any(String),
|
|
407
|
+
...validData
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
// ... more tests
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
## Quality Score Impact
|
|
419
|
+
|
|
420
|
+
Following these requirements will achieve:
|
|
421
|
+
|
|
422
|
+
| Metric | Expected Coverage | Score Contribution |
|
|
423
|
+
| ----------------- | ------------------------ | ------------------------ |
|
|
424
|
+
| Line Coverage | >= 85% | +25.5 points |
|
|
425
|
+
| Branch Coverage | >= 75% | +18.75 points |
|
|
426
|
+
| Function Coverage | >= 90% | +18 points |
|
|
427
|
+
| New Code Coverage | >= 95% | +14.25 points |
|
|
428
|
+
| Test Diversity | Unit + Integration + E2E | +10 points |
|
|
429
|
+
| **Total** | | **~86 points (Grade A)** |
|
|
430
|
+
|
|
431
|
+
This addresses the low test quality score (40) by providing:
|
|
432
|
+
|
|
433
|
+
- Specific test count requirements per function
|
|
434
|
+
- Coverage requirements by code type
|
|
435
|
+
- Critical path coverage mandates
|
|
436
|
+
- Test structure templates
|
|
437
|
+
- Quality score calculation transparency
|