@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,861 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: code.implement-changes
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: code
|
|
5
|
+
experimental: true
|
|
6
|
+
name: Implement Code Changes
|
|
7
|
+
description: Execute code changes following implementation plan with quality standards
|
|
8
|
+
tags:
|
|
9
|
+
- implementation
|
|
10
|
+
- code-generation
|
|
11
|
+
- refactoring
|
|
12
|
+
model_requirements:
|
|
13
|
+
min_context: 200000
|
|
14
|
+
recommended:
|
|
15
|
+
- claude-sonnet-4.5
|
|
16
|
+
agents:
|
|
17
|
+
- software-engineer-typescript-backend
|
|
18
|
+
- software-engineer-typescript-frontend
|
|
19
|
+
- platform-engineer
|
|
20
|
+
- secops-engineer
|
|
21
|
+
dependencies:
|
|
22
|
+
requires:
|
|
23
|
+
- context.load-implementation-context
|
|
24
|
+
- code.validate-prerequisites
|
|
25
|
+
- context.use-modern-cli-tools
|
|
26
|
+
inputs:
|
|
27
|
+
- name: implementation_scope
|
|
28
|
+
description: Scope from load-implementation-context
|
|
29
|
+
type: object
|
|
30
|
+
required: true
|
|
31
|
+
- name: target_files
|
|
32
|
+
description: Files to modify/create from context
|
|
33
|
+
type: array
|
|
34
|
+
required: true
|
|
35
|
+
- name: mode
|
|
36
|
+
description: Implementation mode
|
|
37
|
+
type: string
|
|
38
|
+
required: false
|
|
39
|
+
default: 'standard'
|
|
40
|
+
validation:
|
|
41
|
+
enum: ['standard', 'step-by-step', 'dry-run']
|
|
42
|
+
- name: step
|
|
43
|
+
description: Current step number for step-by-step mode
|
|
44
|
+
type: number
|
|
45
|
+
required: false
|
|
46
|
+
outputs:
|
|
47
|
+
- code_changes
|
|
48
|
+
- files_modified
|
|
49
|
+
- implementation_notes
|
|
50
|
+
- breaking_changes
|
|
51
|
+
tokens:
|
|
52
|
+
avg: 8000
|
|
53
|
+
max: 20000
|
|
54
|
+
min: 3000
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
# Implement Code Changes
|
|
58
|
+
|
|
59
|
+
## Objective
|
|
60
|
+
|
|
61
|
+
Write production-quality code following the implementation plan, applying language-specific best practices and maintaining code quality standards.
|
|
62
|
+
|
|
63
|
+
## Execution Mode
|
|
64
|
+
|
|
65
|
+
**You have access to file manipulation tools. Use them to execute the implementation.**
|
|
66
|
+
|
|
67
|
+
- **Standard mode** (default): Use `read_file`, `write`, `search_replace`, `delete_file`, and `run_terminal_cmd` to actually create, modify, and delete files. Execute the implementation plan by making real changes to the codebase.
|
|
68
|
+
- **Dry-run mode** (`--dry-run`): Do NOT modify any files. Instead, describe what changes would be made and output the planned changes as JSON.
|
|
69
|
+
|
|
70
|
+
**Check the `mode` input**: If `mode` equals `"dry-run"`, only describe changes. Otherwise, execute them.
|
|
71
|
+
|
|
72
|
+
## Tool Usage
|
|
73
|
+
|
|
74
|
+
When executing (not dry-run), use these tools:
|
|
75
|
+
|
|
76
|
+
| Tool | Purpose |
|
|
77
|
+
| ------------------ | ------------------------------------------------------------------- |
|
|
78
|
+
| `read_file` | Read existing file contents before modifying |
|
|
79
|
+
| `write` | Create new files or completely rewrite existing files |
|
|
80
|
+
| `search_replace` | Make targeted edits to existing files (preferred for modifications) |
|
|
81
|
+
| `delete_file` | Remove files that are no longer needed |
|
|
82
|
+
| `run_terminal_cmd` | Run commands (npm install, etc.) |
|
|
83
|
+
| `glob_file_search` | Find files by pattern |
|
|
84
|
+
| `grep` | Search file contents |
|
|
85
|
+
|
|
86
|
+
**Important**: Always read a file before modifying it with `search_replace` to understand context.
|
|
87
|
+
|
|
88
|
+
**Protected Files**: The following files are protected from accidental overwrite when they already exist:
|
|
89
|
+
|
|
90
|
+
- `.gitignore`, `.gitattributes`, `.editorconfig`
|
|
91
|
+
- `.env`, `.env.local`, `.env.production`, `.env.development`
|
|
92
|
+
- `.npmrc`, `.nvmrc`
|
|
93
|
+
|
|
94
|
+
If you need to modify a protected file that already exists, use `search_replace` instead of `write`. The `write` tool will reject attempts to overwrite these files.
|
|
95
|
+
|
|
96
|
+
## Core Principles
|
|
97
|
+
|
|
98
|
+
Apply these principles consistently:
|
|
99
|
+
|
|
100
|
+
1. **SOLID** - Single responsibility, Open/Closed, Liskov substitution, Interface segregation, Dependency inversion
|
|
101
|
+
2. **DRY** - Don't Repeat Yourself, extract common logic
|
|
102
|
+
3. **KISS** - Keep It Simple, prefer simple over clever
|
|
103
|
+
4. **YAGNI** - You Aren't Gonna Need It, implement only what's needed
|
|
104
|
+
5. **Clean Code** - Meaningful names, small functions, proper error handling
|
|
105
|
+
|
|
106
|
+
## Instructions
|
|
107
|
+
|
|
108
|
+
### Step 1: Plan Implementation Order
|
|
109
|
+
|
|
110
|
+
Determine optimal order for changes:
|
|
111
|
+
|
|
112
|
+
**Recommended order**:
|
|
113
|
+
|
|
114
|
+
1. Schema/data model changes (if any)
|
|
115
|
+
2. Backend/API changes (if backend)
|
|
116
|
+
3. Frontend/UI changes (if frontend)
|
|
117
|
+
4. Infrastructure changes (if platform)
|
|
118
|
+
5. Configuration updates
|
|
119
|
+
6. Integration points
|
|
120
|
+
|
|
121
|
+
**For step-by-step mode**: Implement only current step's files
|
|
122
|
+
|
|
123
|
+
**Output**:
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"implementation_order": [
|
|
128
|
+
{ "file": "src/models/user.ts", "reason": "Schema change first" },
|
|
129
|
+
{ "file": "src/services/email.ts", "reason": "New service" },
|
|
130
|
+
{ "file": "src/routes/auth.ts", "reason": "Integrate service into API" }
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Step 2: Implement File Changes
|
|
136
|
+
|
|
137
|
+
For each file in implementation order, **execute these actions using tools**:
|
|
138
|
+
|
|
139
|
+
#### A. Read Existing File (if modifying)
|
|
140
|
+
|
|
141
|
+
**Execute with `read_file` tool**:
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
read_file: path/to/file.ts
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Then analyze:
|
|
148
|
+
|
|
149
|
+
1. Understand structure and patterns
|
|
150
|
+
2. Identify integration points
|
|
151
|
+
3. Note existing error handling patterns
|
|
152
|
+
4. Check for related utilities/helpers
|
|
153
|
+
|
|
154
|
+
#### B. Plan Modifications
|
|
155
|
+
|
|
156
|
+
**Consider**:
|
|
157
|
+
|
|
158
|
+
- Where to add new code (logical placement)
|
|
159
|
+
- What existing code to modify
|
|
160
|
+
- What imports/dependencies to add
|
|
161
|
+
- How to maintain backwards compatibility
|
|
162
|
+
- Error handling strategy
|
|
163
|
+
- Input validation approach
|
|
164
|
+
|
|
165
|
+
#### C. Write/Modify Code
|
|
166
|
+
|
|
167
|
+
**For new files, use `write` tool**:
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
write: path/to/new-file.ts
|
|
171
|
+
content: <full file content>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**For existing files, use `search_replace` tool**:
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
search_replace: path/to/existing-file.ts
|
|
178
|
+
old_str: <exact text to replace>
|
|
179
|
+
new_str: <replacement text>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Prefer `search_replace` over `write`** for modifications - it's safer and preserves unchanged code.
|
|
183
|
+
|
|
184
|
+
Apply these quality standards:
|
|
185
|
+
|
|
186
|
+
**Function Design**:
|
|
187
|
+
|
|
188
|
+
- Functions should do one thing
|
|
189
|
+
- Maximum 50 lines per function (guideline)
|
|
190
|
+
- Maximum 4 parameters (consider options object if more)
|
|
191
|
+
- Clear, descriptive names (verb + noun for functions)
|
|
192
|
+
- Return early for error cases
|
|
193
|
+
|
|
194
|
+
**Error Handling**:
|
|
195
|
+
|
|
196
|
+
- Always handle errors explicitly
|
|
197
|
+
- Use try-catch for async operations
|
|
198
|
+
- Provide meaningful error messages
|
|
199
|
+
- Include error context (what operation failed)
|
|
200
|
+
- Log errors appropriately
|
|
201
|
+
|
|
202
|
+
**Input Validation**:
|
|
203
|
+
|
|
204
|
+
- Validate all external inputs
|
|
205
|
+
- Use type checking/validation libraries
|
|
206
|
+
- Provide clear validation error messages
|
|
207
|
+
- Handle edge cases (null, undefined, empty)
|
|
208
|
+
|
|
209
|
+
**Code Organization**:
|
|
210
|
+
|
|
211
|
+
- Group related functions
|
|
212
|
+
- Order: constants → types → helpers → main functions
|
|
213
|
+
- Consistent formatting (use project style)
|
|
214
|
+
- Meaningful variable names (no single letters except loops)
|
|
215
|
+
|
|
216
|
+
**Comments**:
|
|
217
|
+
|
|
218
|
+
- Explain WHY, not WHAT
|
|
219
|
+
- Document complex logic
|
|
220
|
+
- Note assumptions and constraints
|
|
221
|
+
- Flag TODOs with context: `// TODO: <description> - <reason>`
|
|
222
|
+
|
|
223
|
+
**Examples**:
|
|
224
|
+
|
|
225
|
+
```typescript
|
|
226
|
+
// ❌ BAD
|
|
227
|
+
function p(d) {
|
|
228
|
+
return d.map((x) => x * 2);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// ✅ GOOD
|
|
232
|
+
function doubleValues(data: number[]): number[] {
|
|
233
|
+
return data.map((value) => value * 2);
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```typescript
|
|
238
|
+
// ❌ BAD - No error handling
|
|
239
|
+
async function sendEmail(to: string, subject: string, body: string) {
|
|
240
|
+
await emailService.send(to, subject, body);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// ✅ GOOD - Proper error handling
|
|
244
|
+
async function sendEmail(to: string, subject: string, body: string): Promise<{ success: boolean; error?: string }> {
|
|
245
|
+
try {
|
|
246
|
+
validateEmail(to);
|
|
247
|
+
await emailService.send(to, subject, body);
|
|
248
|
+
return { success: true };
|
|
249
|
+
} catch (error) {
|
|
250
|
+
logger.error('Failed to send email', { to, subject, error });
|
|
251
|
+
return {
|
|
252
|
+
success: false,
|
|
253
|
+
error: error instanceof Error ? error.message : 'Unknown error'
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
```typescript
|
|
260
|
+
// ❌ BAD - Magic numbers
|
|
261
|
+
if (retries > 3) { ... }
|
|
262
|
+
|
|
263
|
+
// ✅ GOOD - Named constants
|
|
264
|
+
const MAX_RETRY_ATTEMPTS = 3;
|
|
265
|
+
if (retries > MAX_RETRY_ATTEMPTS) { ... }
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
#### D. Add Integration Code
|
|
269
|
+
|
|
270
|
+
**For new functions/modules**:
|
|
271
|
+
|
|
272
|
+
- Export public API
|
|
273
|
+
- Update barrel exports (index files)
|
|
274
|
+
- Register with dependency injection (if used)
|
|
275
|
+
- Add to relevant registries/configs
|
|
276
|
+
|
|
277
|
+
**For API changes**:
|
|
278
|
+
|
|
279
|
+
- Update route registrations
|
|
280
|
+
- Add middleware (validation, auth, etc.)
|
|
281
|
+
- Update API documentation comments
|
|
282
|
+
- Consider versioning for breaking changes
|
|
283
|
+
|
|
284
|
+
**For UI changes**:
|
|
285
|
+
|
|
286
|
+
- Export components properly
|
|
287
|
+
- Update component indexes
|
|
288
|
+
- Register with routers/navigation
|
|
289
|
+
- Add to style systems
|
|
290
|
+
|
|
291
|
+
### Step 3: Validate Code Quality (Real-Time)
|
|
292
|
+
|
|
293
|
+
**Purpose**: Catch and fix linter violations immediately during code generation, preventing rework in assert phase.
|
|
294
|
+
|
|
295
|
+
After writing/modifying each file, run quality checks:
|
|
296
|
+
|
|
297
|
+
#### A. Run ESLint Validation
|
|
298
|
+
|
|
299
|
+
**Execute with `run_terminal_cmd` tool**:
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
pnpm exec eslint <file-path> --format json
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Parse results**:
|
|
306
|
+
|
|
307
|
+
```json
|
|
308
|
+
{
|
|
309
|
+
"eslint_validation": {
|
|
310
|
+
"file": "src/services/email.ts",
|
|
311
|
+
"errors": [],
|
|
312
|
+
"warnings": [
|
|
313
|
+
{
|
|
314
|
+
"line": 15,
|
|
315
|
+
"column": 7,
|
|
316
|
+
"rule": "no-unused-vars",
|
|
317
|
+
"message": "Variable 'emailTemplate' is defined but never used"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"fixable_count": 1
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### B. Auto-Fix Common Issues
|
|
326
|
+
|
|
327
|
+
If fixable violations exist, run auto-fix:
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
pnpm exec eslint <file-path> --fix
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
**Common auto-fixable issues**:
|
|
334
|
+
|
|
335
|
+
- Missing semicolons
|
|
336
|
+
- Inconsistent spacing
|
|
337
|
+
- Trailing whitespace
|
|
338
|
+
- Import order
|
|
339
|
+
- Quotes (single vs double)
|
|
340
|
+
|
|
341
|
+
#### C. Manual Fix for Non-Auto-Fixable Issues
|
|
342
|
+
|
|
343
|
+
For issues that can't be auto-fixed, modify the code:
|
|
344
|
+
|
|
345
|
+
**Example: Unused variable**:
|
|
346
|
+
|
|
347
|
+
```typescript
|
|
348
|
+
// ❌ ESLint error: 'emailTemplate' is defined but never used
|
|
349
|
+
const emailTemplate = getTemplate();
|
|
350
|
+
await sendEmail(to, subject, body);
|
|
351
|
+
|
|
352
|
+
// ✅ Fixed: Remove unused variable or use it
|
|
353
|
+
await sendEmail(to, subject, body, getTemplate());
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
**Example: Missing return type**:
|
|
357
|
+
|
|
358
|
+
```typescript
|
|
359
|
+
// ❌ ESLint error: Missing return type on function
|
|
360
|
+
async function sendEmail(to: string) {
|
|
361
|
+
return emailService.send(to);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// ✅ Fixed: Add explicit return type
|
|
365
|
+
async function sendEmail(to: string): Promise<EmailResult> {
|
|
366
|
+
return emailService.send(to);
|
|
367
|
+
}
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
#### D. Run TypeScript Type Check
|
|
371
|
+
|
|
372
|
+
**Execute**:
|
|
373
|
+
|
|
374
|
+
```bash
|
|
375
|
+
pnpm exec tsc --noEmit
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
**Parse errors**:
|
|
379
|
+
|
|
380
|
+
```json
|
|
381
|
+
{
|
|
382
|
+
"typescript_check": {
|
|
383
|
+
"success": false,
|
|
384
|
+
"errors": [
|
|
385
|
+
{
|
|
386
|
+
"file": "src/services/email.ts",
|
|
387
|
+
"line": 23,
|
|
388
|
+
"code": "TS2345",
|
|
389
|
+
"message": "Argument of type 'string' is not assignable to parameter of type 'EmailOptions'"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
**Fix type errors immediately**:
|
|
397
|
+
|
|
398
|
+
- Add missing type annotations
|
|
399
|
+
- Fix incorrect type usage
|
|
400
|
+
- Add type assertions where safe
|
|
401
|
+
- Update function signatures
|
|
402
|
+
|
|
403
|
+
#### E. Validation Decision Logic
|
|
404
|
+
|
|
405
|
+
```plaintext
|
|
406
|
+
IF eslint errors > 0 OR typescript errors > 0:
|
|
407
|
+
→ FIX immediately before proceeding
|
|
408
|
+
→ Re-run validation after fixes
|
|
409
|
+
→ DO NOT continue to next file until clean
|
|
410
|
+
|
|
411
|
+
ELSE IF eslint warnings > 0:
|
|
412
|
+
→ FIX high-priority warnings (unused vars, missing types)
|
|
413
|
+
→ DOCUMENT remaining warnings in implementation_notes
|
|
414
|
+
→ OK to proceed
|
|
415
|
+
|
|
416
|
+
ELSE:
|
|
417
|
+
→ ✅ File passes quality checks
|
|
418
|
+
→ Continue to next file
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
#### F. Track Validation Results
|
|
422
|
+
|
|
423
|
+
```json
|
|
424
|
+
{
|
|
425
|
+
"file": "src/services/email.ts",
|
|
426
|
+
"validation": {
|
|
427
|
+
"eslint": {
|
|
428
|
+
"passed": true,
|
|
429
|
+
"errors": 0,
|
|
430
|
+
"warnings": 0,
|
|
431
|
+
"auto_fixed": 2
|
|
432
|
+
},
|
|
433
|
+
"typescript": {
|
|
434
|
+
"passed": true,
|
|
435
|
+
"errors": 0
|
|
436
|
+
},
|
|
437
|
+
"fixes_applied": ["Auto-fixed missing semicolons (2 instances)", "Added return type to sendEmail function"]
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
**Time Savings**:
|
|
443
|
+
|
|
444
|
+
- **Without real-time validation**: Discover all linter errors in assert phase → 3-5 min rework
|
|
445
|
+
- **With real-time validation**: Fix errors as you code → 0-1 min incremental fixes
|
|
446
|
+
- **Savings**: 3-5 min per workflow + reduced context switching
|
|
447
|
+
|
|
448
|
+
**Quality Benefits**:
|
|
449
|
+
|
|
450
|
+
- Cleaner code from the start
|
|
451
|
+
- No batch of errors to fix at end
|
|
452
|
+
- Better understanding of quality standards
|
|
453
|
+
- Immediate feedback loop
|
|
454
|
+
|
|
455
|
+
### Step 4: Handle Agent-Specific Concerns
|
|
456
|
+
|
|
457
|
+
#### Backend Engineer Focus
|
|
458
|
+
|
|
459
|
+
**API Implementation**:
|
|
460
|
+
|
|
461
|
+
- RESTful conventions (GET, POST, PUT, DELETE)
|
|
462
|
+
- Proper HTTP status codes (200, 201, 400, 404, 500)
|
|
463
|
+
- Request validation (body, params, query)
|
|
464
|
+
- Response formatting (consistent structure)
|
|
465
|
+
- Error responses (standard format)
|
|
466
|
+
|
|
467
|
+
**Database Operations**:
|
|
468
|
+
|
|
469
|
+
- Use prepared statements/parameterized queries
|
|
470
|
+
- Handle transactions for multi-step operations
|
|
471
|
+
- Add indexes for queried fields
|
|
472
|
+
- Consider migration rollback
|
|
473
|
+
- Validate data before insertion
|
|
474
|
+
|
|
475
|
+
**Business Logic**:
|
|
476
|
+
|
|
477
|
+
- Separate concerns (controller → service → repository)
|
|
478
|
+
- Keep controllers thin
|
|
479
|
+
- Put business rules in services
|
|
480
|
+
- Use repositories for data access
|
|
481
|
+
|
|
482
|
+
#### Frontend Engineer Focus
|
|
483
|
+
|
|
484
|
+
**Component Implementation**:
|
|
485
|
+
|
|
486
|
+
- Single responsibility per component
|
|
487
|
+
- Props validation (TypeScript/PropTypes)
|
|
488
|
+
- Proper state management
|
|
489
|
+
- Event handler naming (handleClick, onSubmit)
|
|
490
|
+
- Accessibility attributes (aria-\*, role)
|
|
491
|
+
|
|
492
|
+
**State Management**:
|
|
493
|
+
|
|
494
|
+
- Minimize state
|
|
495
|
+
- Lift state appropriately
|
|
496
|
+
- Use context for global state
|
|
497
|
+
- Consider memoization (useMemo, useCallback)
|
|
498
|
+
- Avoid prop drilling
|
|
499
|
+
|
|
500
|
+
**Accessibility**:
|
|
501
|
+
|
|
502
|
+
- Semantic HTML
|
|
503
|
+
- Keyboard navigation support
|
|
504
|
+
- Screen reader compatibility
|
|
505
|
+
- Focus management
|
|
506
|
+
- Color contrast compliance
|
|
507
|
+
|
|
508
|
+
**Performance**:
|
|
509
|
+
|
|
510
|
+
- Lazy load components/routes
|
|
511
|
+
- Optimize re-renders
|
|
512
|
+
- Use keys in lists
|
|
513
|
+
- Debounce expensive operations
|
|
514
|
+
- Code splitting
|
|
515
|
+
|
|
516
|
+
#### Platform Engineer Focus
|
|
517
|
+
|
|
518
|
+
**Infrastructure as Code**:
|
|
519
|
+
|
|
520
|
+
- Declarative configurations
|
|
521
|
+
- Parameterized/reusable modules
|
|
522
|
+
- Version pinning
|
|
523
|
+
- Documentation comments
|
|
524
|
+
- State management (Terraform)
|
|
525
|
+
|
|
526
|
+
**Container/Deployment**:
|
|
527
|
+
|
|
528
|
+
- Multi-stage builds
|
|
529
|
+
- Minimal base images
|
|
530
|
+
- Security scanning
|
|
531
|
+
- Health checks
|
|
532
|
+
- Resource limits
|
|
533
|
+
|
|
534
|
+
**CI/CD**:
|
|
535
|
+
|
|
536
|
+
- Pipeline as code
|
|
537
|
+
- Fail fast on errors
|
|
538
|
+
- Parallel execution
|
|
539
|
+
- Caching strategies
|
|
540
|
+
- Rollback mechanisms
|
|
541
|
+
|
|
542
|
+
#### SecOps Engineer Focus
|
|
543
|
+
|
|
544
|
+
**Authentication/Authorization**:
|
|
545
|
+
|
|
546
|
+
- Secure token generation
|
|
547
|
+
- Token expiration handling
|
|
548
|
+
- Password hashing (bcrypt, argon2)
|
|
549
|
+
- Rate limiting
|
|
550
|
+
- Session management
|
|
551
|
+
|
|
552
|
+
**Input Sanitization**:
|
|
553
|
+
|
|
554
|
+
- SQL injection prevention
|
|
555
|
+
- XSS prevention
|
|
556
|
+
- CSRF protection
|
|
557
|
+
- Input validation
|
|
558
|
+
- Output encoding
|
|
559
|
+
|
|
560
|
+
**Data Protection**:
|
|
561
|
+
|
|
562
|
+
- Encrypt sensitive data at rest
|
|
563
|
+
- Use HTTPS for data in transit
|
|
564
|
+
- Secure key management
|
|
565
|
+
- Audit logging
|
|
566
|
+
- PII handling compliance
|
|
567
|
+
|
|
568
|
+
### Step 5: Maintain Backwards Compatibility
|
|
569
|
+
|
|
570
|
+
**Strategies**:
|
|
571
|
+
|
|
572
|
+
- Add new functions, don't modify existing (if possible)
|
|
573
|
+
- Use feature flags for gradual rollout
|
|
574
|
+
- Add deprecation notices for old APIs
|
|
575
|
+
- Provide migration guides
|
|
576
|
+
- Version APIs if breaking changes necessary
|
|
577
|
+
|
|
578
|
+
**Deprecation notice example**:
|
|
579
|
+
|
|
580
|
+
```typescript
|
|
581
|
+
/**
|
|
582
|
+
* @deprecated Use `sendVerificationEmail()` instead. Will be removed in v2.0.0
|
|
583
|
+
*/
|
|
584
|
+
export function sendEmail(to: string) {
|
|
585
|
+
// Old implementation
|
|
586
|
+
}
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
### Step 6: Add Logging and Observability
|
|
590
|
+
|
|
591
|
+
**Where to log**:
|
|
592
|
+
|
|
593
|
+
- Service boundaries (entry/exit)
|
|
594
|
+
- External service calls
|
|
595
|
+
- Error conditions
|
|
596
|
+
- Important state changes
|
|
597
|
+
- Performance-sensitive operations
|
|
598
|
+
|
|
599
|
+
**What to log**:
|
|
600
|
+
|
|
601
|
+
```typescript
|
|
602
|
+
// ✅ GOOD
|
|
603
|
+
logger.info('Email verification sent', {
|
|
604
|
+
userId: user.id,
|
|
605
|
+
email: user.email,
|
|
606
|
+
timestamp: new Date().toISOString()
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
// ❌ BAD - Too verbose or sensitive
|
|
610
|
+
logger.debug('User object:', JSON.stringify(user)); // May contain PII
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
**Log levels**:
|
|
614
|
+
|
|
615
|
+
- ERROR: Operation failures
|
|
616
|
+
- WARN: Recoverable issues
|
|
617
|
+
- INFO: Key business events
|
|
618
|
+
- DEBUG: Detailed debugging info (dev only)
|
|
619
|
+
|
|
620
|
+
### Step 7: Track Changes
|
|
621
|
+
|
|
622
|
+
For each file modified/created:
|
|
623
|
+
|
|
624
|
+
```json
|
|
625
|
+
{
|
|
626
|
+
"file": "src/services/email.ts",
|
|
627
|
+
"operation": "create",
|
|
628
|
+
"changes": {
|
|
629
|
+
"functions_added": ["sendVerificationEmail", "validateEmail"],
|
|
630
|
+
"dependencies_added": ["nodemailer"],
|
|
631
|
+
"exports_added": ["EmailService"],
|
|
632
|
+
"lines_added": 85
|
|
633
|
+
},
|
|
634
|
+
"purpose": "Email verification service implementation",
|
|
635
|
+
"integration_points": ["src/routes/auth.ts"],
|
|
636
|
+
"breaking_changes": false
|
|
637
|
+
}
|
|
638
|
+
```
|
|
639
|
+
|
|
640
|
+
### Step 8: Identify Breaking Changes
|
|
641
|
+
|
|
642
|
+
**Breaking change indicators**:
|
|
643
|
+
|
|
644
|
+
- Function signature changes
|
|
645
|
+
- Removed functions/exports
|
|
646
|
+
- Changed return types
|
|
647
|
+
- Modified API contracts
|
|
648
|
+
- Database schema changes (non-additive)
|
|
649
|
+
- Changed configuration requirements
|
|
650
|
+
|
|
651
|
+
**For each breaking change**:
|
|
652
|
+
|
|
653
|
+
```json
|
|
654
|
+
{
|
|
655
|
+
"type": "function_signature_change",
|
|
656
|
+
"location": "src/services/user.ts:createUser()",
|
|
657
|
+
"old": "createUser(email: string): Promise<User>",
|
|
658
|
+
"new": "createUser(data: CreateUserDTO): Promise<User>",
|
|
659
|
+
"reason": "Support additional fields",
|
|
660
|
+
"migration_path": "Pass {email} object instead of string",
|
|
661
|
+
"affects": ["src/routes/auth.ts", "src/tests/user.test.ts"]
|
|
662
|
+
}
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
### Step 9: Add TODOs for Follow-up
|
|
666
|
+
|
|
667
|
+
Mark items needing future attention:
|
|
668
|
+
|
|
669
|
+
```typescript
|
|
670
|
+
// TODO: [PERFORMANCE] Add caching for email templates - reduces DB queries
|
|
671
|
+
// TODO: [SECURITY] Implement rate limiting - prevents abuse
|
|
672
|
+
// TODO: [FEATURE] Support HTML email templates - user request #123
|
|
673
|
+
// TODO: [REFACTOR] Extract validation logic - reduce duplication
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
**Format**: `// TODO: [CATEGORY] Description - Reason/Context`
|
|
677
|
+
|
|
678
|
+
## Output Format
|
|
679
|
+
|
|
680
|
+
### Standard Mode (executed changes)
|
|
681
|
+
|
|
682
|
+
After using the tools to make changes, report what was done:
|
|
683
|
+
|
|
684
|
+
```json
|
|
685
|
+
{
|
|
686
|
+
"execution_mode": "standard",
|
|
687
|
+
"executed": true,
|
|
688
|
+
"code_changes": {
|
|
689
|
+
"files_created": [
|
|
690
|
+
{
|
|
691
|
+
"path": "src/services/email.ts",
|
|
692
|
+
"purpose": "Email verification service",
|
|
693
|
+
"functions": ["sendVerificationEmail", "validateEmail"],
|
|
694
|
+
"exports": ["EmailService"],
|
|
695
|
+
"dependencies": ["nodemailer"],
|
|
696
|
+
"lines": 85
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"files_modified": [
|
|
700
|
+
{
|
|
701
|
+
"path": "src/routes/auth.ts",
|
|
702
|
+
"purpose": "Add verification endpoint",
|
|
703
|
+
"changes_made": ["Added verifyEmail endpoint", "Updated register to send verification"],
|
|
704
|
+
"lines_added": 35,
|
|
705
|
+
"lines_removed": 5
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"files_deleted": [],
|
|
709
|
+
"commands_executed": ["npm install nodemailer"]
|
|
710
|
+
},
|
|
711
|
+
"files_modified": ["src/services/email.ts", "src/routes/auth.ts", "package.json"],
|
|
712
|
+
"implementation_notes": {
|
|
713
|
+
"approach": "Created new EmailService, integrated with auth routes",
|
|
714
|
+
"decisions": [
|
|
715
|
+
"Used nodemailer for email sending (well-tested, popular)",
|
|
716
|
+
"Added token expiration (24 hours) for security"
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
"quality_validation": {
|
|
720
|
+
"eslint": {
|
|
721
|
+
"total_files_checked": 2,
|
|
722
|
+
"files_passed": 2,
|
|
723
|
+
"total_errors": 0,
|
|
724
|
+
"total_warnings": 0,
|
|
725
|
+
"auto_fixes_applied": 3
|
|
726
|
+
},
|
|
727
|
+
"typescript": {
|
|
728
|
+
"passed": true,
|
|
729
|
+
"errors": 0
|
|
730
|
+
},
|
|
731
|
+
"validation_time_ms": 1247,
|
|
732
|
+
"notes": ["Auto-fixed semicolons in email.ts", "Added return type to sendEmail()"]
|
|
733
|
+
},
|
|
734
|
+
"breaking_changes": [],
|
|
735
|
+
"migration_steps": []
|
|
736
|
+
}
|
|
737
|
+
```
|
|
738
|
+
|
|
739
|
+
### Dry-Run Mode (proposed changes only)
|
|
740
|
+
|
|
741
|
+
When `mode` is `"dry-run"`, do NOT execute tools. Instead describe what would be done:
|
|
742
|
+
|
|
743
|
+
```json
|
|
744
|
+
{
|
|
745
|
+
"execution_mode": "dry-run",
|
|
746
|
+
"executed": false,
|
|
747
|
+
"proposed_changes": {
|
|
748
|
+
"files_to_create": [
|
|
749
|
+
{
|
|
750
|
+
"path": "src/services/email.ts",
|
|
751
|
+
"purpose": "Email verification service",
|
|
752
|
+
"proposed_content_summary": "EmailService class with sendVerificationEmail() and validateEmail() methods",
|
|
753
|
+
"estimated_lines": 85
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"files_to_modify": [
|
|
757
|
+
{
|
|
758
|
+
"path": "src/routes/auth.ts",
|
|
759
|
+
"purpose": "Add verification endpoint",
|
|
760
|
+
"changes_planned": [
|
|
761
|
+
"Add import for EmailService",
|
|
762
|
+
"Add POST /verify-email endpoint",
|
|
763
|
+
"Modify register() to call sendVerificationEmail()"
|
|
764
|
+
]
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"files_to_delete": [],
|
|
768
|
+
"commands_to_run": ["npm install nodemailer"]
|
|
769
|
+
},
|
|
770
|
+
"implementation_notes": {
|
|
771
|
+
"approach": "Will create new EmailService, integrate with auth routes",
|
|
772
|
+
"decisions": [
|
|
773
|
+
"Will use nodemailer for email sending (well-tested, popular)",
|
|
774
|
+
"Will add token expiration (24 hours) for security"
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
"breaking_changes": [],
|
|
778
|
+
"migration_steps": []
|
|
779
|
+
}
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
## Success Criteria
|
|
783
|
+
|
|
784
|
+
### Standard Mode
|
|
785
|
+
|
|
786
|
+
- ✅ All target files actually created/modified using tools
|
|
787
|
+
- ✅ `write` or `search_replace` executed for each planned change
|
|
788
|
+
- ✅ **Real-time validation**: ESLint and TypeScript checks run after each file
|
|
789
|
+
- ✅ **Zero linter errors**: All files pass ESLint validation
|
|
790
|
+
- ✅ **Zero type errors**: All files pass TypeScript type check
|
|
791
|
+
- ✅ Code follows language best practices
|
|
792
|
+
- ✅ Proper error handling in place
|
|
793
|
+
- ✅ Input validation implemented
|
|
794
|
+
- ✅ Meaningful variable/function names
|
|
795
|
+
- ✅ Integration points updated
|
|
796
|
+
- ✅ Breaking changes documented
|
|
797
|
+
- ✅ No placeholder/stub code
|
|
798
|
+
- ✅ No commented-out code
|
|
799
|
+
- ✅ No debug statements left in
|
|
800
|
+
|
|
801
|
+
### Dry-Run Mode
|
|
802
|
+
|
|
803
|
+
- ✅ No files modified (tools not called)
|
|
804
|
+
- ✅ All planned changes clearly described
|
|
805
|
+
- ✅ Proposed code snippets included where helpful
|
|
806
|
+
- ✅ Breaking changes identified
|
|
807
|
+
|
|
808
|
+
## Anti-Patterns to Avoid
|
|
809
|
+
|
|
810
|
+
❌ **Magic Numbers**: Use named constants
|
|
811
|
+
❌ **God Objects**: Single responsibility principle
|
|
812
|
+
❌ **Deep Nesting**: Max 3 levels, use early returns
|
|
813
|
+
❌ **Tight Coupling**: Depend on abstractions
|
|
814
|
+
❌ **Missing Error Handling**: Always handle errors
|
|
815
|
+
❌ **Inconsistent Naming**: Follow project conventions
|
|
816
|
+
❌ **Commented Code**: Delete, don't comment out
|
|
817
|
+
❌ **Global State**: Use dependency injection
|
|
818
|
+
❌ **Premature Optimization**: Make it work, then optimize
|
|
819
|
+
❌ **Hardcoded Values**: Use configuration
|
|
820
|
+
|
|
821
|
+
## Rules
|
|
822
|
+
|
|
823
|
+
**EXECUTION (Standard Mode)**:
|
|
824
|
+
|
|
825
|
+
- ✅ **USE THE TOOLS** - Call `write`, `search_replace`, `read_file` to make actual changes
|
|
826
|
+
- ✅ Always `read_file` before `search_replace` to understand context
|
|
827
|
+
- ✅ Use `search_replace` for modifications (safer than full `write`)
|
|
828
|
+
- ✅ Use `write` for new files
|
|
829
|
+
- ✅ **VALIDATE IMMEDIATELY** - Run ESLint and TypeScript checks after each file
|
|
830
|
+
- ✅ **FIX BEFORE PROCEEDING** - Fix all errors/warnings before moving to next file
|
|
831
|
+
- ✅ Run `run_terminal_cmd` for package installation, builds, etc.
|
|
832
|
+
- ❌ Don't just describe changes - execute them
|
|
833
|
+
- ❌ Don't skip validation - catch errors early
|
|
834
|
+
|
|
835
|
+
**DRY-RUN Mode**:
|
|
836
|
+
|
|
837
|
+
- ✅ Describe all planned changes in detail
|
|
838
|
+
- ✅ Include proposed code snippets
|
|
839
|
+
- ❌ Don't call any file modification tools
|
|
840
|
+
|
|
841
|
+
**CODE QUALITY**:
|
|
842
|
+
|
|
843
|
+
- ✅ Follow existing project patterns
|
|
844
|
+
- ✅ Write self-documenting code
|
|
845
|
+
- ✅ Handle all error cases
|
|
846
|
+
- ✅ Validate all inputs
|
|
847
|
+
- ✅ Use meaningful names
|
|
848
|
+
- ✅ Keep functions small and focused
|
|
849
|
+
- ✅ Add comments for complex logic
|
|
850
|
+
- ✅ Consider edge cases
|
|
851
|
+
|
|
852
|
+
**DON'T**:
|
|
853
|
+
|
|
854
|
+
- ❌ Don't leave TODOs without context
|
|
855
|
+
- ❌ Don't use placeholder comments like "implement later"
|
|
856
|
+
- ❌ Don't copy-paste code (extract to function)
|
|
857
|
+
- ❌ Don't ignore linter warnings
|
|
858
|
+
- ❌ Don't use any/unknown types without justification
|
|
859
|
+
- ❌ Don't hardcode configuration values
|
|
860
|
+
- ❌ Don't skip input validation
|
|
861
|
+
- ❌ Don't implement features not in plan
|