@jokerized/getresearchdone 0.4.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/.claude-plugin/plugin.json +103 -0
- package/README.md +211 -0
- package/agents/grd-baseline-assessor.md +684 -0
- package/agents/grd-code-reviewer.md +300 -0
- package/agents/grd-codebase-mapper.md +355 -0
- package/agents/grd-critique-agent.md +119 -0
- package/agents/grd-debugger.md +519 -0
- package/agents/grd-deep-diver.md +737 -0
- package/agents/grd-eval-planner.md +913 -0
- package/agents/grd-eval-reporter.md +717 -0
- package/agents/grd-executor.md +683 -0
- package/agents/grd-feasibility-analyst.md +624 -0
- package/agents/grd-integration-checker.md +367 -0
- package/agents/grd-knowledge-miner.md +81 -0
- package/agents/grd-migrator.md +88 -0
- package/agents/grd-phase-researcher.md +697 -0
- package/agents/grd-plan-checker.md +443 -0
- package/agents/grd-planner.md +1532 -0
- package/agents/grd-product-owner.md +562 -0
- package/agents/grd-project-researcher.md +513 -0
- package/agents/grd-research-synthesizer.md +273 -0
- package/agents/grd-roadmapper.md +798 -0
- package/agents/grd-surveyor.md +566 -0
- package/agents/grd-verifier.md +893 -0
- package/bin/gd.js +4 -0
- package/bin/gd.ts +227 -0
- package/bin/grd-manifest.js +4 -0
- package/bin/grd-manifest.ts +286 -0
- package/bin/grd-mcp-server.js +4 -0
- package/bin/grd-mcp-server.ts +124 -0
- package/bin/grd-tools.js +4 -0
- package/bin/grd-tools.ts +2471 -0
- package/bin/postinstall.js +4 -0
- package/bin/postinstall.ts +80 -0
- package/commands/add-phase.md +123 -0
- package/commands/add-todo.md +87 -0
- package/commands/assess-baseline.md +289 -0
- package/commands/autopilot.md +100 -0
- package/commands/autoplan.md +55 -0
- package/commands/check-todos.md +87 -0
- package/commands/compare-methods.md +262 -0
- package/commands/complete-milestone.md +225 -0
- package/commands/debug.md +372 -0
- package/commands/deep-dive.md +288 -0
- package/commands/discover.md +281 -0
- package/commands/discuss-phase.md +188 -0
- package/commands/discuss.md +55 -0
- package/commands/eval-report.md +310 -0
- package/commands/evolve.md +79 -0
- package/commands/execute-phase.md +1017 -0
- package/commands/feasibility.md +292 -0
- package/commands/help.md +407 -0
- package/commands/init.md +1508 -0
- package/commands/insert-phase.md +113 -0
- package/commands/iterate.md +327 -0
- package/commands/list-phase-assumptions.md +217 -0
- package/commands/long-term-roadmap.md +202 -0
- package/commands/map-codebase.md +111 -0
- package/commands/migrate.md +159 -0
- package/commands/new-milestone.md +169 -0
- package/commands/pause-work.md +83 -0
- package/commands/plan-milestone-gaps.md +373 -0
- package/commands/plan-phase.md +655 -0
- package/commands/principles.md +328 -0
- package/commands/product-plan.md +319 -0
- package/commands/progress.md +481 -0
- package/commands/quick.md +167 -0
- package/commands/reapply-patches.md +154 -0
- package/commands/remove-phase.md +97 -0
- package/commands/requirement.md +96 -0
- package/commands/resume-project.md +113 -0
- package/commands/settings.md +1144 -0
- package/commands/survey.md +242 -0
- package/commands/sync.md +246 -0
- package/commands/tracker-setup.md +322 -0
- package/commands/update.md +202 -0
- package/commands/verify-phase.md +335 -0
- package/commands/verify-work.md +701 -0
- package/commands/wireup.md +29 -0
- package/dist/bin/gd.d.ts +3 -0
- package/dist/bin/gd.d.ts.map +1 -0
- package/dist/bin/gd.js +178 -0
- package/dist/bin/gd.js.map +1 -0
- package/dist/bin/grd-manifest.d.ts +3 -0
- package/dist/bin/grd-manifest.d.ts.map +1 -0
- package/dist/bin/grd-manifest.js +202 -0
- package/dist/bin/grd-manifest.js.map +1 -0
- package/dist/bin/grd-mcp-server.d.ts +3 -0
- package/dist/bin/grd-mcp-server.d.ts.map +1 -0
- package/dist/bin/grd-mcp-server.js +71 -0
- package/dist/bin/grd-mcp-server.js.map +1 -0
- package/dist/bin/grd-tools.d.ts +3 -0
- package/dist/bin/grd-tools.d.ts.map +1 -0
- package/dist/bin/grd-tools.js +1680 -0
- package/dist/bin/grd-tools.js.map +1 -0
- package/dist/bin/postinstall.d.ts +3 -0
- package/dist/bin/postinstall.d.ts.map +1 -0
- package/dist/bin/postinstall.js +61 -0
- package/dist/bin/postinstall.js.map +1 -0
- package/dist/lib/autopilot-milestone.d.ts +2 -0
- package/dist/lib/autopilot-milestone.d.ts.map +1 -0
- package/dist/lib/autopilot-milestone.js +94 -0
- package/dist/lib/autopilot-milestone.js.map +1 -0
- package/dist/lib/autopilot-pipeline.d.ts +2 -0
- package/dist/lib/autopilot-pipeline.d.ts.map +1 -0
- package/dist/lib/autopilot-pipeline.js +830 -0
- package/dist/lib/autopilot-pipeline.js.map +1 -0
- package/dist/lib/autopilot-waves.d.ts +2 -0
- package/dist/lib/autopilot-waves.d.ts.map +1 -0
- package/dist/lib/autopilot-waves.js +266 -0
- package/dist/lib/autopilot-waves.js.map +1 -0
- package/dist/lib/autopilot.d.ts +2 -0
- package/dist/lib/autopilot.d.ts.map +1 -0
- package/dist/lib/autopilot.js +1314 -0
- package/dist/lib/autopilot.js.map +1 -0
- package/dist/lib/autoplan.d.ts +2 -0
- package/dist/lib/autoplan.d.ts.map +1 -0
- package/dist/lib/autoplan.js +198 -0
- package/dist/lib/autoplan.js.map +1 -0
- package/dist/lib/autoresearch.d.ts +2 -0
- package/dist/lib/autoresearch.d.ts.map +1 -0
- package/dist/lib/autoresearch.js +626 -0
- package/dist/lib/autoresearch.js.map +1 -0
- package/dist/lib/backend.d.ts +2 -0
- package/dist/lib/backend.d.ts.map +1 -0
- package/dist/lib/backend.js +1036 -0
- package/dist/lib/backend.js.map +1 -0
- package/dist/lib/benchmark.d.ts +99 -0
- package/dist/lib/benchmark.d.ts.map +1 -0
- package/dist/lib/benchmark.js +278 -0
- package/dist/lib/benchmark.js.map +1 -0
- package/dist/lib/citations.d.ts +2 -0
- package/dist/lib/citations.d.ts.map +1 -0
- package/dist/lib/citations.js +642 -0
- package/dist/lib/citations.js.map +1 -0
- package/dist/lib/cleanup.d.ts +2 -0
- package/dist/lib/cleanup.d.ts.map +1 -0
- package/dist/lib/cleanup.js +1222 -0
- package/dist/lib/cleanup.js.map +1 -0
- package/dist/lib/cli/adapters.d.ts +10 -0
- package/dist/lib/cli/adapters.d.ts.map +1 -0
- package/dist/lib/cli/adapters.js +27 -0
- package/dist/lib/cli/adapters.js.map +1 -0
- package/dist/lib/cli/agent.d.ts +17 -0
- package/dist/lib/cli/agent.d.ts.map +1 -0
- package/dist/lib/cli/agent.js +53 -0
- package/dist/lib/cli/agent.js.map +1 -0
- package/dist/lib/cli/index.d.ts +21 -0
- package/dist/lib/cli/index.d.ts.map +1 -0
- package/dist/lib/cli/index.js +264 -0
- package/dist/lib/cli/index.js.map +1 -0
- package/dist/lib/cli/output.d.ts +20 -0
- package/dist/lib/cli/output.d.ts.map +1 -0
- package/dist/lib/cli/output.js +22 -0
- package/dist/lib/cli/output.js.map +1 -0
- package/dist/lib/cli/scan-dispatch.d.ts +9 -0
- package/dist/lib/cli/scan-dispatch.d.ts.map +1 -0
- package/dist/lib/cli/scan-dispatch.js +107 -0
- package/dist/lib/cli/scan-dispatch.js.map +1 -0
- package/dist/lib/cli/tools.d.ts +16 -0
- package/dist/lib/cli/tools.d.ts.map +1 -0
- package/dist/lib/cli/tools.js +168 -0
- package/dist/lib/cli/tools.js.map +1 -0
- package/dist/lib/commands/_dashboard-parsers.d.ts +2 -0
- package/dist/lib/commands/_dashboard-parsers.d.ts.map +1 -0
- package/dist/lib/commands/_dashboard-parsers.js +192 -0
- package/dist/lib/commands/_dashboard-parsers.js.map +1 -0
- package/dist/lib/commands/analysis.d.ts +2 -0
- package/dist/lib/commands/analysis.d.ts.map +1 -0
- package/dist/lib/commands/analysis.js +1418 -0
- package/dist/lib/commands/analysis.js.map +1 -0
- package/dist/lib/commands/assumptions.d.ts +2 -0
- package/dist/lib/commands/assumptions.d.ts.map +1 -0
- package/dist/lib/commands/assumptions.js +166 -0
- package/dist/lib/commands/assumptions.js.map +1 -0
- package/dist/lib/commands/blame.d.ts +2 -0
- package/dist/lib/commands/blame.d.ts.map +1 -0
- package/dist/lib/commands/blame.js +133 -0
- package/dist/lib/commands/blame.js.map +1 -0
- package/dist/lib/commands/budget.d.ts +2 -0
- package/dist/lib/commands/budget.d.ts.map +1 -0
- package/dist/lib/commands/budget.js +100 -0
- package/dist/lib/commands/budget.js.map +1 -0
- package/dist/lib/commands/check-plans.d.ts +2 -0
- package/dist/lib/commands/check-plans.d.ts.map +1 -0
- package/dist/lib/commands/check-plans.js +190 -0
- package/dist/lib/commands/check-plans.js.map +1 -0
- package/dist/lib/commands/config.d.ts +2 -0
- package/dist/lib/commands/config.d.ts.map +1 -0
- package/dist/lib/commands/config.js +188 -0
- package/dist/lib/commands/config.js.map +1 -0
- package/dist/lib/commands/dashboard.d.ts +2 -0
- package/dist/lib/commands/dashboard.d.ts.map +1 -0
- package/dist/lib/commands/dashboard.js +466 -0
- package/dist/lib/commands/dashboard.js.map +1 -0
- package/dist/lib/commands/estimate.d.ts +2 -0
- package/dist/lib/commands/estimate.d.ts.map +1 -0
- package/dist/lib/commands/estimate.js +148 -0
- package/dist/lib/commands/estimate.js.map +1 -0
- package/dist/lib/commands/eval-diff.d.ts +2 -0
- package/dist/lib/commands/eval-diff.d.ts.map +1 -0
- package/dist/lib/commands/eval-diff.js +213 -0
- package/dist/lib/commands/eval-diff.js.map +1 -0
- package/dist/lib/commands/freshness.d.ts +2 -0
- package/dist/lib/commands/freshness.d.ts.map +1 -0
- package/dist/lib/commands/freshness.js +163 -0
- package/dist/lib/commands/freshness.js.map +1 -0
- package/dist/lib/commands/health.d.ts +2 -0
- package/dist/lib/commands/health.d.ts.map +1 -0
- package/dist/lib/commands/health.js +435 -0
- package/dist/lib/commands/health.js.map +1 -0
- package/dist/lib/commands/index.d.ts +2 -0
- package/dist/lib/commands/index.d.ts.map +1 -0
- package/dist/lib/commands/index.js +128 -0
- package/dist/lib/commands/index.js.map +1 -0
- package/dist/lib/commands/install.d.ts +56 -0
- package/dist/lib/commands/install.d.ts.map +1 -0
- package/dist/lib/commands/install.js +214 -0
- package/dist/lib/commands/install.js.map +1 -0
- package/dist/lib/commands/knowhow-aggregator.d.ts +2 -0
- package/dist/lib/commands/knowhow-aggregator.d.ts.map +1 -0
- package/dist/lib/commands/knowhow-aggregator.js +279 -0
- package/dist/lib/commands/knowhow-aggregator.js.map +1 -0
- package/dist/lib/commands/knowledge-search.d.ts +2 -0
- package/dist/lib/commands/knowledge-search.d.ts.map +1 -0
- package/dist/lib/commands/knowledge-search.js +113 -0
- package/dist/lib/commands/knowledge-search.js.map +1 -0
- package/dist/lib/commands/long-term-roadmap.d.ts +2 -0
- package/dist/lib/commands/long-term-roadmap.d.ts.map +1 -0
- package/dist/lib/commands/long-term-roadmap.js +272 -0
- package/dist/lib/commands/long-term-roadmap.js.map +1 -0
- package/dist/lib/commands/patterns.d.ts +91 -0
- package/dist/lib/commands/patterns.d.ts.map +1 -0
- package/dist/lib/commands/patterns.js +391 -0
- package/dist/lib/commands/patterns.js.map +1 -0
- package/dist/lib/commands/phase-info.d.ts +2 -0
- package/dist/lib/commands/phase-info.d.ts.map +1 -0
- package/dist/lib/commands/phase-info.js +509 -0
- package/dist/lib/commands/phase-info.js.map +1 -0
- package/dist/lib/commands/plan-lint.d.ts +56 -0
- package/dist/lib/commands/plan-lint.d.ts.map +1 -0
- package/dist/lib/commands/plan-lint.js +481 -0
- package/dist/lib/commands/plan-lint.js.map +1 -0
- package/dist/lib/commands/plan-phase.d.ts +53 -0
- package/dist/lib/commands/plan-phase.d.ts.map +1 -0
- package/dist/lib/commands/plan-phase.js +288 -0
- package/dist/lib/commands/plan-phase.js.map +1 -0
- package/dist/lib/commands/progress.d.ts +2 -0
- package/dist/lib/commands/progress.d.ts.map +1 -0
- package/dist/lib/commands/progress.js +266 -0
- package/dist/lib/commands/progress.js.map +1 -0
- package/dist/lib/commands/quality.d.ts +2 -0
- package/dist/lib/commands/quality.d.ts.map +1 -0
- package/dist/lib/commands/quality.js +80 -0
- package/dist/lib/commands/quality.js.map +1 -0
- package/dist/lib/commands/rollback.d.ts +2 -0
- package/dist/lib/commands/rollback.d.ts.map +1 -0
- package/dist/lib/commands/rollback.js +145 -0
- package/dist/lib/commands/rollback.js.map +1 -0
- package/dist/lib/commands/scan.d.ts +25 -0
- package/dist/lib/commands/scan.d.ts.map +1 -0
- package/dist/lib/commands/scan.js +28 -0
- package/dist/lib/commands/scan.js.map +1 -0
- package/dist/lib/commands/search.d.ts +2 -0
- package/dist/lib/commands/search.d.ts.map +1 -0
- package/dist/lib/commands/search.js +212 -0
- package/dist/lib/commands/search.js.map +1 -0
- package/dist/lib/commands/select-candidate.d.ts +128 -0
- package/dist/lib/commands/select-candidate.d.ts.map +1 -0
- package/dist/lib/commands/select-candidate.js +518 -0
- package/dist/lib/commands/select-candidate.js.map +1 -0
- package/dist/lib/commands/singularity.d.ts +2 -0
- package/dist/lib/commands/singularity.d.ts.map +1 -0
- package/dist/lib/commands/singularity.js +185 -0
- package/dist/lib/commands/singularity.js.map +1 -0
- package/dist/lib/commands/slug-timestamp.d.ts +2 -0
- package/dist/lib/commands/slug-timestamp.d.ts.map +1 -0
- package/dist/lib/commands/slug-timestamp.js +54 -0
- package/dist/lib/commands/slug-timestamp.js.map +1 -0
- package/dist/lib/commands/tail.d.ts +2 -0
- package/dist/lib/commands/tail.d.ts.map +1 -0
- package/dist/lib/commands/tail.js +100 -0
- package/dist/lib/commands/tail.js.map +1 -0
- package/dist/lib/commands/todo.d.ts +2 -0
- package/dist/lib/commands/todo.d.ts.map +1 -0
- package/dist/lib/commands/todo.js +200 -0
- package/dist/lib/commands/todo.js.map +1 -0
- package/dist/lib/commands/watch.d.ts +2 -0
- package/dist/lib/commands/watch.d.ts.map +1 -0
- package/dist/lib/commands/watch.js +72 -0
- package/dist/lib/commands/watch.js.map +1 -0
- package/dist/lib/complexity.d.ts +55 -0
- package/dist/lib/complexity.d.ts.map +1 -0
- package/dist/lib/complexity.js +80 -0
- package/dist/lib/complexity.js.map +1 -0
- package/dist/lib/context/agents.d.ts +2 -0
- package/dist/lib/context/agents.d.ts.map +1 -0
- package/dist/lib/context/agents.js +344 -0
- package/dist/lib/context/agents.js.map +1 -0
- package/dist/lib/context/base.d.ts +2 -0
- package/dist/lib/context/base.d.ts.map +1 -0
- package/dist/lib/context/base.js +81 -0
- package/dist/lib/context/base.js.map +1 -0
- package/dist/lib/context/execute.d.ts +2 -0
- package/dist/lib/context/execute.d.ts.map +1 -0
- package/dist/lib/context/execute.js +753 -0
- package/dist/lib/context/execute.js.map +1 -0
- package/dist/lib/context/index.d.ts +2 -0
- package/dist/lib/context/index.d.ts.map +1 -0
- package/dist/lib/context/index.js +88 -0
- package/dist/lib/context/index.js.map +1 -0
- package/dist/lib/context/progress.d.ts +2 -0
- package/dist/lib/context/progress.d.ts.map +1 -0
- package/dist/lib/context/progress.js +178 -0
- package/dist/lib/context/progress.js.map +1 -0
- package/dist/lib/context/project.d.ts +2 -0
- package/dist/lib/context/project.d.ts.map +1 -0
- package/dist/lib/context/project.js +413 -0
- package/dist/lib/context/project.js.map +1 -0
- package/dist/lib/context/research.d.ts +2 -0
- package/dist/lib/context/research.d.ts.map +1 -0
- package/dist/lib/context/research.js +466 -0
- package/dist/lib/context/research.js.map +1 -0
- package/dist/lib/dead-ends.d.ts +28 -0
- package/dist/lib/dead-ends.d.ts.map +1 -0
- package/dist/lib/dead-ends.js +451 -0
- package/dist/lib/dead-ends.js.map +1 -0
- package/dist/lib/deps.d.ts +2 -0
- package/dist/lib/deps.d.ts.map +1 -0
- package/dist/lib/deps.js +630 -0
- package/dist/lib/deps.js.map +1 -0
- package/dist/lib/discussion.d.ts +2 -0
- package/dist/lib/discussion.d.ts.map +1 -0
- package/dist/lib/discussion.js +1041 -0
- package/dist/lib/discussion.js.map +1 -0
- package/dist/lib/drift.d.ts +36 -0
- package/dist/lib/drift.d.ts.map +1 -0
- package/dist/lib/drift.js +481 -0
- package/dist/lib/drift.js.map +1 -0
- package/dist/lib/evolve/_dimensions-features.d.ts +2 -0
- package/dist/lib/evolve/_dimensions-features.d.ts.map +1 -0
- package/dist/lib/evolve/_dimensions-features.js +369 -0
- package/dist/lib/evolve/_dimensions-features.js.map +1 -0
- package/dist/lib/evolve/_dimensions.d.ts +2 -0
- package/dist/lib/evolve/_dimensions.d.ts.map +1 -0
- package/dist/lib/evolve/_dimensions.js +358 -0
- package/dist/lib/evolve/_dimensions.js.map +1 -0
- package/dist/lib/evolve/_product-ideation.d.ts +2 -0
- package/dist/lib/evolve/_product-ideation.d.ts.map +1 -0
- package/dist/lib/evolve/_product-ideation.js +281 -0
- package/dist/lib/evolve/_product-ideation.js.map +1 -0
- package/dist/lib/evolve/_prompts.d.ts +2 -0
- package/dist/lib/evolve/_prompts.d.ts.map +1 -0
- package/dist/lib/evolve/_prompts.js +153 -0
- package/dist/lib/evolve/_prompts.js.map +1 -0
- package/dist/lib/evolve/cli.d.ts +2 -0
- package/dist/lib/evolve/cli.d.ts.map +1 -0
- package/dist/lib/evolve/cli.js +224 -0
- package/dist/lib/evolve/cli.js.map +1 -0
- package/dist/lib/evolve/discovery.d.ts +2 -0
- package/dist/lib/evolve/discovery.d.ts.map +1 -0
- package/dist/lib/evolve/discovery.js +391 -0
- package/dist/lib/evolve/discovery.js.map +1 -0
- package/dist/lib/evolve/index.d.ts +2 -0
- package/dist/lib/evolve/index.d.ts.map +1 -0
- package/dist/lib/evolve/index.js +88 -0
- package/dist/lib/evolve/index.js.map +1 -0
- package/dist/lib/evolve/orchestrator.d.ts +2 -0
- package/dist/lib/evolve/orchestrator.d.ts.map +1 -0
- package/dist/lib/evolve/orchestrator.js +851 -0
- package/dist/lib/evolve/orchestrator.js.map +1 -0
- package/dist/lib/evolve/scoring.d.ts +2 -0
- package/dist/lib/evolve/scoring.d.ts.map +1 -0
- package/dist/lib/evolve/scoring.js +118 -0
- package/dist/lib/evolve/scoring.js.map +1 -0
- package/dist/lib/evolve/state.d.ts +2 -0
- package/dist/lib/evolve/state.d.ts.map +1 -0
- package/dist/lib/evolve/state.js +264 -0
- package/dist/lib/evolve/state.js.map +1 -0
- package/dist/lib/evolve/types.d.ts +249 -0
- package/dist/lib/evolve/types.d.ts.map +1 -0
- package/dist/lib/evolve/types.js +3 -0
- package/dist/lib/evolve/types.js.map +1 -0
- package/dist/lib/frontmatter.d.ts +2 -0
- package/dist/lib/frontmatter.d.ts.map +1 -0
- package/dist/lib/frontmatter.js +513 -0
- package/dist/lib/frontmatter.js.map +1 -0
- package/dist/lib/gates.d.ts +2 -0
- package/dist/lib/gates.d.ts.map +1 -0
- package/dist/lib/gates.js +578 -0
- package/dist/lib/gates.js.map +1 -0
- package/dist/lib/genome.d.ts +10 -0
- package/dist/lib/genome.d.ts.map +1 -0
- package/dist/lib/genome.js +368 -0
- package/dist/lib/genome.js.map +1 -0
- package/dist/lib/got.d.ts +2 -0
- package/dist/lib/got.d.ts.map +1 -0
- package/dist/lib/got.js +280 -0
- package/dist/lib/got.js.map +1 -0
- package/dist/lib/invariants.d.ts +2 -0
- package/dist/lib/invariants.d.ts.map +1 -0
- package/dist/lib/invariants.js +298 -0
- package/dist/lib/invariants.js.map +1 -0
- package/dist/lib/knowledge.d.ts +2 -0
- package/dist/lib/knowledge.d.ts.map +1 -0
- package/dist/lib/knowledge.js +658 -0
- package/dist/lib/knowledge.js.map +1 -0
- package/dist/lib/long-term-roadmap.d.ts +2 -0
- package/dist/lib/long-term-roadmap.d.ts.map +1 -0
- package/dist/lib/long-term-roadmap.js +602 -0
- package/dist/lib/long-term-roadmap.js.map +1 -0
- package/dist/lib/markdown-split.d.ts +2 -0
- package/dist/lib/markdown-split.d.ts.map +1 -0
- package/dist/lib/markdown-split.js +199 -0
- package/dist/lib/markdown-split.js.map +1 -0
- package/dist/lib/mcp-server.d.ts +2 -0
- package/dist/lib/mcp-server.d.ts.map +1 -0
- package/dist/lib/mcp-server.js +2424 -0
- package/dist/lib/mcp-server.js.map +1 -0
- package/dist/lib/metrics.d.ts +16 -0
- package/dist/lib/metrics.d.ts.map +1 -0
- package/dist/lib/metrics.js +48 -0
- package/dist/lib/metrics.js.map +1 -0
- package/dist/lib/overstory.d.ts +2 -0
- package/dist/lib/overstory.d.ts.map +1 -0
- package/dist/lib/overstory.js +211 -0
- package/dist/lib/overstory.js.map +1 -0
- package/dist/lib/parallel.d.ts +2 -0
- package/dist/lib/parallel.d.ts.map +1 -0
- package/dist/lib/parallel.js +349 -0
- package/dist/lib/parallel.js.map +1 -0
- package/dist/lib/paths.d.ts +2 -0
- package/dist/lib/paths.d.ts.map +1 -0
- package/dist/lib/paths.js +254 -0
- package/dist/lib/paths.js.map +1 -0
- package/dist/lib/phase-complete-llm.d.ts +22 -0
- package/dist/lib/phase-complete-llm.d.ts.map +1 -0
- package/dist/lib/phase-complete-llm.js +331 -0
- package/dist/lib/phase-complete-llm.js.map +1 -0
- package/dist/lib/phase-complete.d.ts +46 -0
- package/dist/lib/phase-complete.d.ts.map +1 -0
- package/dist/lib/phase-complete.js +278 -0
- package/dist/lib/phase-complete.js.map +1 -0
- package/dist/lib/phase-io.d.ts +2 -0
- package/dist/lib/phase-io.d.ts.map +1 -0
- package/dist/lib/phase-io.js +126 -0
- package/dist/lib/phase-io.js.map +1 -0
- package/dist/lib/phase.d.ts +2 -0
- package/dist/lib/phase.d.ts.map +1 -0
- package/dist/lib/phase.js +1344 -0
- package/dist/lib/phase.js.map +1 -0
- package/dist/lib/plan-tournament.d.ts +63 -0
- package/dist/lib/plan-tournament.d.ts.map +1 -0
- package/dist/lib/plan-tournament.js +353 -0
- package/dist/lib/plan-tournament.js.map +1 -0
- package/dist/lib/refinement.d.ts +74 -0
- package/dist/lib/refinement.d.ts.map +1 -0
- package/dist/lib/refinement.js +283 -0
- package/dist/lib/refinement.js.map +1 -0
- package/dist/lib/requirements.d.ts +2 -0
- package/dist/lib/requirements.d.ts.map +1 -0
- package/dist/lib/requirements.js +355 -0
- package/dist/lib/requirements.js.map +1 -0
- package/dist/lib/research-bundle.d.ts +2 -0
- package/dist/lib/research-bundle.d.ts.map +1 -0
- package/dist/lib/research-bundle.js +246 -0
- package/dist/lib/research-bundle.js.map +1 -0
- package/dist/lib/roadmap.d.ts +2 -0
- package/dist/lib/roadmap.d.ts.map +1 -0
- package/dist/lib/roadmap.js +541 -0
- package/dist/lib/roadmap.js.map +1 -0
- package/dist/lib/sample.d.ts +16 -0
- package/dist/lib/sample.d.ts.map +1 -0
- package/dist/lib/sample.js +20 -0
- package/dist/lib/sample.js.map +1 -0
- package/dist/lib/scaffold.d.ts +2 -0
- package/dist/lib/scaffold.d.ts.map +1 -0
- package/dist/lib/scaffold.js +355 -0
- package/dist/lib/scaffold.js.map +1 -0
- package/dist/lib/scan/_utils.d.ts +11 -0
- package/dist/lib/scan/_utils.d.ts.map +1 -0
- package/dist/lib/scan/_utils.js +36 -0
- package/dist/lib/scan/_utils.js.map +1 -0
- package/dist/lib/scan/base64.d.ts +15 -0
- package/dist/lib/scan/base64.d.ts.map +1 -0
- package/dist/lib/scan/base64.js +66 -0
- package/dist/lib/scan/base64.js.map +1 -0
- package/dist/lib/scan/ignorefile.d.ts +30 -0
- package/dist/lib/scan/ignorefile.d.ts.map +1 -0
- package/dist/lib/scan/ignorefile.js +101 -0
- package/dist/lib/scan/ignorefile.js.map +1 -0
- package/dist/lib/scan/injection.d.ts +14 -0
- package/dist/lib/scan/injection.d.ts.map +1 -0
- package/dist/lib/scan/injection.js +39 -0
- package/dist/lib/scan/injection.js.map +1 -0
- package/dist/lib/scan/patterns.d.ts +17 -0
- package/dist/lib/scan/patterns.d.ts.map +1 -0
- package/dist/lib/scan/patterns.js +123 -0
- package/dist/lib/scan/patterns.js.map +1 -0
- package/dist/lib/scan/strip-markdown.d.ts +7 -0
- package/dist/lib/scan/strip-markdown.d.ts.map +1 -0
- package/dist/lib/scan/strip-markdown.js +38 -0
- package/dist/lib/scan/strip-markdown.js.map +1 -0
- package/dist/lib/scan/types.d.ts +23 -0
- package/dist/lib/scan/types.d.ts.map +1 -0
- package/dist/lib/scan/types.js +3 -0
- package/dist/lib/scan/types.js.map +1 -0
- package/dist/lib/scheduler-wait.d.ts +2 -0
- package/dist/lib/scheduler-wait.d.ts.map +1 -0
- package/dist/lib/scheduler-wait.js +59 -0
- package/dist/lib/scheduler-wait.js.map +1 -0
- package/dist/lib/scheduler.d.ts +254 -0
- package/dist/lib/scheduler.d.ts.map +1 -0
- package/dist/lib/scheduler.js +1147 -0
- package/dist/lib/scheduler.js.map +1 -0
- package/dist/lib/state.d.ts +2 -0
- package/dist/lib/state.d.ts.map +1 -0
- package/dist/lib/state.js +744 -0
- package/dist/lib/state.js.map +1 -0
- package/dist/lib/think.d.ts +18 -0
- package/dist/lib/think.d.ts.map +1 -0
- package/dist/lib/think.js +317 -0
- package/dist/lib/think.js.map +1 -0
- package/dist/lib/tracker.d.ts +2 -0
- package/dist/lib/tracker.d.ts.map +1 -0
- package/dist/lib/tracker.js +1121 -0
- package/dist/lib/tracker.js.map +1 -0
- package/dist/lib/types.d.ts +1514 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +4 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +1363 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/verify.d.ts +2 -0
- package/dist/lib/verify.d.ts.map +1 -0
- package/dist/lib/verify.js +1153 -0
- package/dist/lib/verify.js.map +1 -0
- package/dist/lib/wireup/autofix.d.ts +2 -0
- package/dist/lib/wireup/autofix.d.ts.map +1 -0
- package/dist/lib/wireup/autofix.js +188 -0
- package/dist/lib/wireup/autofix.js.map +1 -0
- package/dist/lib/wireup/cli.d.ts +2 -0
- package/dist/lib/wireup/cli.d.ts.map +1 -0
- package/dist/lib/wireup/cli.js +194 -0
- package/dist/lib/wireup/cli.js.map +1 -0
- package/dist/lib/wireup/detection.d.ts +47 -0
- package/dist/lib/wireup/detection.d.ts.map +1 -0
- package/dist/lib/wireup/detection.js +410 -0
- package/dist/lib/wireup/detection.js.map +1 -0
- package/dist/lib/wireup/discovery.d.ts +2 -0
- package/dist/lib/wireup/discovery.d.ts.map +1 -0
- package/dist/lib/wireup/discovery.js +934 -0
- package/dist/lib/wireup/discovery.js.map +1 -0
- package/dist/lib/wireup/execution.d.ts +2 -0
- package/dist/lib/wireup/execution.d.ts.map +1 -0
- package/dist/lib/wireup/execution.js +573 -0
- package/dist/lib/wireup/execution.js.map +1 -0
- package/dist/lib/wireup/index.d.ts +2 -0
- package/dist/lib/wireup/index.d.ts.map +1 -0
- package/dist/lib/wireup/index.js +85 -0
- package/dist/lib/wireup/index.js.map +1 -0
- package/dist/lib/wireup/orchestrator.d.ts +2 -0
- package/dist/lib/wireup/orchestrator.d.ts.map +1 -0
- package/dist/lib/wireup/orchestrator.js +366 -0
- package/dist/lib/wireup/orchestrator.js.map +1 -0
- package/dist/lib/wireup/report.d.ts +47 -0
- package/dist/lib/wireup/report.d.ts.map +1 -0
- package/dist/lib/wireup/report.js +201 -0
- package/dist/lib/wireup/report.js.map +1 -0
- package/dist/lib/wireup/scenarios.d.ts +2 -0
- package/dist/lib/wireup/scenarios.d.ts.map +1 -0
- package/dist/lib/wireup/scenarios.js +516 -0
- package/dist/lib/wireup/scenarios.js.map +1 -0
- package/dist/lib/wireup/state.d.ts +2 -0
- package/dist/lib/wireup/state.d.ts.map +1 -0
- package/dist/lib/wireup/state.js +102 -0
- package/dist/lib/wireup/state.js.map +1 -0
- package/dist/lib/wireup/types.d.ts +376 -0
- package/dist/lib/wireup/types.d.ts.map +1 -0
- package/dist/lib/wireup/types.js +3 -0
- package/dist/lib/wireup/types.js.map +1 -0
- package/dist/lib/worktree.d.ts +2 -0
- package/dist/lib/worktree.d.ts.map +1 -0
- package/dist/lib/worktree.js +999 -0
- package/dist/lib/worktree.js.map +1 -0
- package/lib/autopilot-milestone.ts +136 -0
- package/lib/autopilot-pipeline.ts +1179 -0
- package/lib/autopilot-waves.ts +361 -0
- package/lib/autopilot.ts +1874 -0
- package/lib/autoplan.ts +280 -0
- package/lib/autoresearch.js +4 -0
- package/lib/autoresearch.ts +886 -0
- package/lib/backend.ts +1252 -0
- package/lib/benchmark.ts +341 -0
- package/lib/citations.ts +760 -0
- package/lib/cleanup.ts +1588 -0
- package/lib/cli/adapters.ts +41 -0
- package/lib/cli/agent.ts +83 -0
- package/lib/cli/index.ts +273 -0
- package/lib/cli/output.ts +33 -0
- package/lib/cli/scan-dispatch.ts +130 -0
- package/lib/cli/tools.ts +198 -0
- package/lib/commands/_dashboard-parsers.ts +275 -0
- package/lib/commands/analysis.ts +1851 -0
- package/lib/commands/assumptions.ts +232 -0
- package/lib/commands/blame.ts +174 -0
- package/lib/commands/budget.ts +148 -0
- package/lib/commands/check-plans.ts +233 -0
- package/lib/commands/config.ts +287 -0
- package/lib/commands/dashboard.ts +680 -0
- package/lib/commands/estimate.ts +204 -0
- package/lib/commands/eval-diff.ts +252 -0
- package/lib/commands/freshness.ts +213 -0
- package/lib/commands/health.ts +607 -0
- package/lib/commands/index.ts +266 -0
- package/lib/commands/install.ts +307 -0
- package/lib/commands/knowhow-aggregator.ts +345 -0
- package/lib/commands/knowledge-search.ts +153 -0
- package/lib/commands/long-term-roadmap.ts +390 -0
- package/lib/commands/patterns.ts +465 -0
- package/lib/commands/phase-info.ts +698 -0
- package/lib/commands/plan-lint.ts +546 -0
- package/lib/commands/plan-phase.ts +375 -0
- package/lib/commands/progress.ts +319 -0
- package/lib/commands/quality.ts +138 -0
- package/lib/commands/rollback.ts +195 -0
- package/lib/commands/scan.ts +72 -0
- package/lib/commands/search.ts +300 -0
- package/lib/commands/select-candidate.ts +687 -0
- package/lib/commands/singularity.ts +222 -0
- package/lib/commands/slug-timestamp.ts +74 -0
- package/lib/commands/tail.ts +129 -0
- package/lib/commands/todo.ts +273 -0
- package/lib/commands/watch.ts +80 -0
- package/lib/complexity.ts +117 -0
- package/lib/context/agents.ts +505 -0
- package/lib/context/base.ts +123 -0
- package/lib/context/execute.ts +977 -0
- package/lib/context/index.ts +110 -0
- package/lib/context/progress.ts +278 -0
- package/lib/context/project.ts +531 -0
- package/lib/context/research.ts +646 -0
- package/lib/dead-ends.ts +506 -0
- package/lib/deps.ts +773 -0
- package/lib/discussion.ts +1275 -0
- package/lib/drift.ts +519 -0
- package/lib/evolve/_dimensions-features.ts +525 -0
- package/lib/evolve/_dimensions.ts +511 -0
- package/lib/evolve/_product-ideation.ts +405 -0
- package/lib/evolve/_prompts.ts +178 -0
- package/lib/evolve/cli.ts +330 -0
- package/lib/evolve/discovery.ts +571 -0
- package/lib/evolve/index.ts +105 -0
- package/lib/evolve/orchestrator.ts +1139 -0
- package/lib/evolve/scoring.ts +167 -0
- package/lib/evolve/state.ts +330 -0
- package/lib/evolve/types.ts +290 -0
- package/lib/frontmatter.ts +615 -0
- package/lib/gates.ts +695 -0
- package/lib/genome.ts +402 -0
- package/lib/got.js +4 -0
- package/lib/got.ts +361 -0
- package/lib/invariants.ts +378 -0
- package/lib/knowledge.ts +768 -0
- package/lib/long-term-roadmap.ts +806 -0
- package/lib/markdown-split.ts +273 -0
- package/lib/mcp-server.ts +3292 -0
- package/lib/metrics.ts +49 -0
- package/lib/overstory.ts +270 -0
- package/lib/parallel.ts +570 -0
- package/lib/paths.ts +293 -0
- package/lib/phase-complete-llm.ts +376 -0
- package/lib/phase-complete.ts +366 -0
- package/lib/phase-io.ts +101 -0
- package/lib/phase.ts +1981 -0
- package/lib/plan-tournament.ts +426 -0
- package/lib/refinement.ts +349 -0
- package/lib/requirements.ts +469 -0
- package/lib/research-bundle.ts +300 -0
- package/lib/roadmap.ts +775 -0
- package/lib/scaffold.ts +480 -0
- package/lib/scan/_utils.ts +37 -0
- package/lib/scan/base64.ts +90 -0
- package/lib/scan/ignorefile.ts +109 -0
- package/lib/scan/injection.ts +67 -0
- package/lib/scan/patterns.ts +139 -0
- package/lib/scan/strip-markdown.ts +39 -0
- package/lib/scan/types.ts +28 -0
- package/lib/scheduler-wait.ts +58 -0
- package/lib/scheduler.ts +1370 -0
- package/lib/state.ts +1000 -0
- package/lib/think.ts +365 -0
- package/lib/tracker.ts +1591 -0
- package/lib/types.ts +1663 -0
- package/lib/utils.ts +1479 -0
- package/lib/verify.ts +1434 -0
- package/lib/wireup/autofix.ts +241 -0
- package/lib/wireup/cli.ts +278 -0
- package/lib/wireup/detection.ts +542 -0
- package/lib/wireup/discovery.ts +1063 -0
- package/lib/wireup/execution.ts +686 -0
- package/lib/wireup/index.ts +117 -0
- package/lib/wireup/orchestrator.ts +519 -0
- package/lib/wireup/report.ts +286 -0
- package/lib/wireup/scenarios.ts +616 -0
- package/lib/wireup/state.ts +139 -0
- package/lib/wireup/types.ts +436 -0
- package/lib/worktree.ts +1309 -0
- package/package.json +67 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* GRD Wireup -- Barrel re-export
|
|
5
|
+
*
|
|
6
|
+
* Re-exports all public symbols from the wireup sub-modules.
|
|
7
|
+
* This file is the single entry point for consumers of lib/wireup/.
|
|
8
|
+
*
|
|
9
|
+
* @see lib/wireup/types.ts -- Domain type definitions (pure types, no runtime)
|
|
10
|
+
* @see lib/wireup/state.ts -- State I/O, constants, iteration advancement
|
|
11
|
+
* @see lib/wireup/discovery.ts -- Feature discovery engine
|
|
12
|
+
* @see lib/wireup/scenarios.ts -- Scenario and test data generation
|
|
13
|
+
* @see lib/wireup/orchestrator.ts -- Wireup pipeline orchestrator (runWireup, cmdWireup)
|
|
14
|
+
* @see lib/wireup/cli.ts -- Context builder (cmdInitWireup)
|
|
15
|
+
* @see lib/wireup/execution.ts -- HTTP and CLI scenario execution engine (plan 79-02)
|
|
16
|
+
* @see lib/wireup/detection.ts -- Missing connection detection engine (plan 79-03)
|
|
17
|
+
* @see lib/wireup/report.ts -- WIREUP-REPORT.md generation with iteration history (plan 80-03)
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// ─── State ───────────────────────────────────────────────────────────────────
|
|
21
|
+
|
|
22
|
+
const stateModule = require('./state');
|
|
23
|
+
|
|
24
|
+
// ─── Discovery ───────────────────────────────────────────────────────────────
|
|
25
|
+
|
|
26
|
+
const discoveryModule = require('./discovery');
|
|
27
|
+
|
|
28
|
+
// ─── Scenarios ───────────────────────────────────────────────────────────────
|
|
29
|
+
|
|
30
|
+
const scenariosModule = require('./scenarios');
|
|
31
|
+
|
|
32
|
+
// ─── Orchestrator ─────────────────────────────────────────────────────────────
|
|
33
|
+
|
|
34
|
+
const orchestratorModule = require('./orchestrator');
|
|
35
|
+
|
|
36
|
+
// ─── CLI context builder ──────────────────────────────────────────────────────
|
|
37
|
+
|
|
38
|
+
const cliModule = require('./cli');
|
|
39
|
+
|
|
40
|
+
// ─── Execution ───────────────────────────────────────────────────────────────
|
|
41
|
+
|
|
42
|
+
const executionModule = require('./execution') as Record<string, unknown>;
|
|
43
|
+
|
|
44
|
+
// ─── Detection ───────────────────────────────────────────────────────────────
|
|
45
|
+
|
|
46
|
+
const detectionModule = require('./detection') as Record<string, unknown>;
|
|
47
|
+
|
|
48
|
+
// ─── Auto-Fix ────────────────────────────────────────────────────────────────
|
|
49
|
+
|
|
50
|
+
const autofixModule = require('./autofix') as Record<string, unknown>;
|
|
51
|
+
|
|
52
|
+
// ─── Report ──────────────────────────────────────────────────────────────────
|
|
53
|
+
|
|
54
|
+
const reportModule = require('./report') as Record<string, unknown>;
|
|
55
|
+
|
|
56
|
+
// ─── Barrel Export ────────────────────────────────────────────────────────────
|
|
57
|
+
|
|
58
|
+
module.exports = {
|
|
59
|
+
// ─── Constants (from state.ts) ──────────────────────────────────────────
|
|
60
|
+
SONNET_MODEL: stateModule.SONNET_MODEL,
|
|
61
|
+
WIREUP_STATE_FILENAME: stateModule.WIREUP_STATE_FILENAME,
|
|
62
|
+
|
|
63
|
+
// ─── State path (from state.ts) ─────────────────────────────────────────
|
|
64
|
+
wireupStatePath: stateModule.wireupStatePath,
|
|
65
|
+
|
|
66
|
+
// ─── State creation (from state.ts) ─────────────────────────────────────
|
|
67
|
+
createInitialWireupState: stateModule.createInitialWireupState,
|
|
68
|
+
|
|
69
|
+
// ─── State I/O (from state.ts) ──────────────────────────────────────────
|
|
70
|
+
readWireupState: stateModule.readWireupState,
|
|
71
|
+
writeWireupState: stateModule.writeWireupState,
|
|
72
|
+
|
|
73
|
+
// ─── Iteration advancement (from state.ts) ──────────────────────────────
|
|
74
|
+
advanceWireupIteration: stateModule.advanceWireupIteration,
|
|
75
|
+
|
|
76
|
+
// ─── Discovery engine (from discovery.ts) ───────────────────────────────
|
|
77
|
+
discoverUnwiredFeatures: discoveryModule.discoverUnwiredFeatures,
|
|
78
|
+
|
|
79
|
+
// ─── Scenario generation (from scenarios.ts) ─────────────────────────────
|
|
80
|
+
generateScenarios: scenariosModule.generateScenarios,
|
|
81
|
+
generateTestData: scenariosModule.generateTestData,
|
|
82
|
+
|
|
83
|
+
// ─── Execution engine (from execution.ts) ────────────────────────────────
|
|
84
|
+
executeScenarios: executionModule['executeScenarios'],
|
|
85
|
+
executeHttpStep: executionModule['executeHttpStep'],
|
|
86
|
+
executeCliStep: executionModule['executeCliStep'],
|
|
87
|
+
executeBrowserScenario: executionModule['executeBrowserScenario'],
|
|
88
|
+
generateManualSteps: executionModule['generateManualSteps'],
|
|
89
|
+
|
|
90
|
+
// ─── Detection engine (from detection.ts) ────────────────────────────────
|
|
91
|
+
detectMissingConnections: detectionModule['detectMissingConnections'],
|
|
92
|
+
classifyFailure: detectionModule['classifyFailure'],
|
|
93
|
+
|
|
94
|
+
// ─── Auto-fix engine (from autofix.ts) ───────────────────────────────────
|
|
95
|
+
autoFixIssue: autofixModule['autoFixIssue'],
|
|
96
|
+
classifyFixConfidence: autofixModule['classifyFixConfidence'],
|
|
97
|
+
updateFixOutcome: autofixModule['updateFixOutcome'],
|
|
98
|
+
partitionByConfidence: autofixModule['partitionByConfidence'],
|
|
99
|
+
|
|
100
|
+
// ─── Report generation (from report.ts) ──────────────────────────────────
|
|
101
|
+
generateWireupReport: reportModule['generateWireupReport'],
|
|
102
|
+
formatReportPath: reportModule['formatReportPath'],
|
|
103
|
+
|
|
104
|
+
// ─── Orchestrator (from orchestrator.ts) ─────────────────────────────────
|
|
105
|
+
runWireup: orchestratorModule.runWireup,
|
|
106
|
+
cmdWireup: orchestratorModule.cmdWireup,
|
|
107
|
+
|
|
108
|
+
// ─── CLI context builder (from cli.ts) ──────────────────────────────────
|
|
109
|
+
cmdInitWireup: cliModule.cmdInitWireup,
|
|
110
|
+
|
|
111
|
+
// ─── CLI sub-command wrappers (from cli.ts) ──────────────────────────────
|
|
112
|
+
cmdWireupDiscover: cliModule.cmdWireupDiscover,
|
|
113
|
+
cmdWireupRun: cliModule.cmdWireupRun,
|
|
114
|
+
cmdWireupState: cliModule.cmdWireupState,
|
|
115
|
+
cmdWireupScenarios: cliModule.cmdWireupScenarios,
|
|
116
|
+
cmdWireupReport: cliModule.cmdWireupReport,
|
|
117
|
+
};
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* GRD Wireup -- Orchestrator
|
|
5
|
+
*
|
|
6
|
+
* Main wireup pipeline: discover -> generate scenarios -> execute HTTP/CLI scenarios ->
|
|
7
|
+
* detect missing connections -> report pass/fail summary.
|
|
8
|
+
*
|
|
9
|
+
* All spawnClaudeAsync calls use SONNET_MODEL — sonnet-tier ceiling enforced.
|
|
10
|
+
*
|
|
11
|
+
* @dependencies ./types, ./state, ./discovery, ./scenarios, ./execution, ../utils
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type {
|
|
15
|
+
WireupOptions,
|
|
16
|
+
WireupResult,
|
|
17
|
+
WireupScenario,
|
|
18
|
+
ScenarioResult,
|
|
19
|
+
WireupState,
|
|
20
|
+
FailedScenarioSummary,
|
|
21
|
+
StepResult,
|
|
22
|
+
MissingConnection,
|
|
23
|
+
IssuesByConfidence,
|
|
24
|
+
IssuesByType,
|
|
25
|
+
WireupIterationHistory,
|
|
26
|
+
FixAttempt,
|
|
27
|
+
} from './types';
|
|
28
|
+
import type { WireupReportData } from './report';
|
|
29
|
+
const {
|
|
30
|
+
SONNET_MODEL,
|
|
31
|
+
readWireupState,
|
|
32
|
+
writeWireupState,
|
|
33
|
+
createInitialWireupState,
|
|
34
|
+
advanceWireupIteration,
|
|
35
|
+
}: {
|
|
36
|
+
SONNET_MODEL: string;
|
|
37
|
+
readWireupState: (cwd: string) => WireupState | null;
|
|
38
|
+
writeWireupState: (cwd: string, state: WireupState) => void;
|
|
39
|
+
createInitialWireupState: (milestone: string) => WireupState;
|
|
40
|
+
advanceWireupIteration: (
|
|
41
|
+
state: WireupState,
|
|
42
|
+
results: { scenarios_run: number; passed: number; failed: number; fixes_applied: number }
|
|
43
|
+
) => WireupState;
|
|
44
|
+
} = require('./state');
|
|
45
|
+
|
|
46
|
+
const {
|
|
47
|
+
discoverUnwiredFeatures,
|
|
48
|
+
}: {
|
|
49
|
+
discoverUnwiredFeatures: (cwd: string) => import('./types').UnwiredFeature[];
|
|
50
|
+
} = require('./discovery');
|
|
51
|
+
|
|
52
|
+
const {
|
|
53
|
+
generateScenarios,
|
|
54
|
+
generateTestData,
|
|
55
|
+
}: {
|
|
56
|
+
generateScenarios: (features: import('./types').UnwiredFeature[], cwd: string) => WireupScenario[];
|
|
57
|
+
generateTestData: (scenarios: WireupScenario[], cwd: string) => void;
|
|
58
|
+
} = require('./scenarios');
|
|
59
|
+
|
|
60
|
+
const {
|
|
61
|
+
detectMissingConnections,
|
|
62
|
+
}: {
|
|
63
|
+
detectMissingConnections: (cwd: string, failedResults: ScenarioResult[]) => MissingConnection[];
|
|
64
|
+
} = require('./detection');
|
|
65
|
+
|
|
66
|
+
const {
|
|
67
|
+
generateWireupReport,
|
|
68
|
+
}: {
|
|
69
|
+
generateWireupReport: (cwd: string, data: WireupReportData) => string;
|
|
70
|
+
} = require('./report');
|
|
71
|
+
|
|
72
|
+
const {
|
|
73
|
+
partitionByConfidence,
|
|
74
|
+
updateFixOutcome,
|
|
75
|
+
buildAutoFixPrompt,
|
|
76
|
+
}: {
|
|
77
|
+
partitionByConfidence: (issues: import('./types').MissingConnection[]) => import('./types').AutoFixResult & { high_confidence: import('./types').MissingConnection[] };
|
|
78
|
+
updateFixOutcome: (cwd: string, scenarioId: string, fixAttempt: import('./types').FixAttempt) => void;
|
|
79
|
+
buildAutoFixPrompt: (issue: import('./types').MissingConnection) => string;
|
|
80
|
+
} = require('./autofix');
|
|
81
|
+
|
|
82
|
+
const childProcess = require('child_process') as typeof import('child_process');
|
|
83
|
+
|
|
84
|
+
// ─── Execution Stub (implemented in plan 79-02) ──────────────────────────────
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Resolve executeScenarios at runtime to allow graceful fallback when
|
|
88
|
+
* lib/wireup/execution.ts has not yet been implemented (plan 79-02).
|
|
89
|
+
* All spawnClaudeAsync calls within the execution module MUST use SONNET_MODEL.
|
|
90
|
+
*/
|
|
91
|
+
function _resolveExecuteScenarios(): (
|
|
92
|
+
cwd: string,
|
|
93
|
+
scenarios: WireupScenario[],
|
|
94
|
+
options?: import('./types').ExecutionOptions
|
|
95
|
+
) => Promise<ScenarioResult[]> {
|
|
96
|
+
try {
|
|
97
|
+
const execModule = require('./execution') as {
|
|
98
|
+
executeScenarios: (
|
|
99
|
+
cwd: string,
|
|
100
|
+
scenarios: WireupScenario[],
|
|
101
|
+
options?: import('./types').ExecutionOptions
|
|
102
|
+
) => Promise<ScenarioResult[]>;
|
|
103
|
+
};
|
|
104
|
+
return execModule.executeScenarios;
|
|
105
|
+
} catch {
|
|
106
|
+
// execution.ts not yet implemented (plan 79-02) — return stub
|
|
107
|
+
return (_cwd: string, _scenarios: WireupScenario[]) => Promise.resolve([]);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const {
|
|
112
|
+
output,
|
|
113
|
+
getMilestoneInfo,
|
|
114
|
+
}: {
|
|
115
|
+
output: (result: unknown, raw: boolean, rawValue?: unknown) => never;
|
|
116
|
+
getMilestoneInfo: (cwd: string) => import('../types').MilestoneInfo;
|
|
117
|
+
} = require('../utils');
|
|
118
|
+
|
|
119
|
+
// ─── Fix Subprocess ───────────────────────────────────────────────────────────
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Spawn a claude -p subprocess to apply a fix, then return whether it succeeded.
|
|
123
|
+
*/
|
|
124
|
+
async function _spawnFixSubprocess(
|
|
125
|
+
cwd: string,
|
|
126
|
+
prompt: string,
|
|
127
|
+
timeoutMs?: number
|
|
128
|
+
): Promise<boolean> {
|
|
129
|
+
return new Promise<boolean>((resolve) => {
|
|
130
|
+
const args: string[] = ['-p', prompt, '--verbose', '--dangerously-skip-permissions', '--model', SONNET_MODEL];
|
|
131
|
+
const env: Record<string, string | undefined> = { ...process.env };
|
|
132
|
+
for (const key of Object.keys(env)) {
|
|
133
|
+
if (key === 'CLAUDECODE' || key.startsWith('CLAUDE_CODE_') || key.startsWith('CLAUDECODE_')) {
|
|
134
|
+
delete env[key];
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
const child = childProcess.spawn('claude', args, {
|
|
138
|
+
cwd,
|
|
139
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
140
|
+
env,
|
|
141
|
+
});
|
|
142
|
+
if (child.stdout) child.stdout.on('data', (chunk: Buffer) => process.stdout.write(chunk));
|
|
143
|
+
if (child.stderr) child.stderr.on('data', (chunk: Buffer) => process.stderr.write(chunk));
|
|
144
|
+
|
|
145
|
+
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
146
|
+
if (timeoutMs) {
|
|
147
|
+
timer = setTimeout(() => { child.kill('SIGTERM'); }, timeoutMs);
|
|
148
|
+
}
|
|
149
|
+
child.on('close', (code: number | null) => {
|
|
150
|
+
if (timer) clearTimeout(timer);
|
|
151
|
+
resolve(code === 0);
|
|
152
|
+
});
|
|
153
|
+
child.on('error', () => {
|
|
154
|
+
if (timer) clearTimeout(timer);
|
|
155
|
+
resolve(false);
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ─── Pass/Fail Summary ────────────────────────────────────────────────────────
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Build a human-readable pass/fail summary string from execution results.
|
|
164
|
+
* Includes issue detection summary when issues were found.
|
|
165
|
+
*/
|
|
166
|
+
function _buildPassFailSummary(
|
|
167
|
+
total: number,
|
|
168
|
+
passed: number,
|
|
169
|
+
failed: number,
|
|
170
|
+
failedScenarios: FailedScenarioSummary[],
|
|
171
|
+
issuesFound?: number,
|
|
172
|
+
issuesByConfidence?: IssuesByConfidence
|
|
173
|
+
): string {
|
|
174
|
+
if (total === 0) {
|
|
175
|
+
return 'No scenarios executed.';
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const pct = total > 0 ? Math.round((passed / total) * 100) : 0;
|
|
179
|
+
let summary = `${passed}/${total} scenarios passed (${pct}%)`;
|
|
180
|
+
|
|
181
|
+
if (failed > 0) {
|
|
182
|
+
summary += `\nFailed scenarios:`;
|
|
183
|
+
for (const fs of failedScenarios) {
|
|
184
|
+
summary += `\n - ${fs.scenario_id} (${fs.failed_steps.length} step(s) failed)`;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (issuesFound !== undefined && issuesFound > 0 && issuesByConfidence !== undefined) {
|
|
189
|
+
summary += `\n\nMissing connections detected: ${issuesFound}`;
|
|
190
|
+
summary += `\n High confidence: ${issuesByConfidence.high}`;
|
|
191
|
+
summary += `\n Medium confidence: ${issuesByConfidence.medium}`;
|
|
192
|
+
summary += `\n Low confidence: ${issuesByConfidence.low}`;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return summary;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// ─── Orchestrator ─────────────────────────────────────────────────────────────
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Run the wireup pipeline end-to-end:
|
|
202
|
+
* 1. Read current wireup state (or create fresh)
|
|
203
|
+
* 2. Discover unwired features in the project
|
|
204
|
+
* 3. Filter to target if --target provided
|
|
205
|
+
* 4. Generate test scenarios and fixture files
|
|
206
|
+
* 5. Execute HTTP/CLI scenarios (skipped if --dry-run)
|
|
207
|
+
* 6. Detect missing connections from failures (Phase 79-03)
|
|
208
|
+
* 7. Update wireup state with iteration results
|
|
209
|
+
* 8. Return WireupResult with full summary
|
|
210
|
+
*
|
|
211
|
+
* All spawnClaude calls use SONNET_MODEL from ./state.
|
|
212
|
+
*/
|
|
213
|
+
async function runWireup(cwd: string, options: WireupOptions = {}): Promise<WireupResult> {
|
|
214
|
+
// Step 1: Read or create wireup state
|
|
215
|
+
const milestoneInfo = getMilestoneInfo(cwd);
|
|
216
|
+
const milestone = milestoneInfo.version ?? 'unknown';
|
|
217
|
+
|
|
218
|
+
let wireupState = readWireupState(cwd);
|
|
219
|
+
if (!wireupState) {
|
|
220
|
+
wireupState = createInitialWireupState(milestone);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Step 2: Discover unwired features
|
|
224
|
+
const allFeatures = discoverUnwiredFeatures(cwd);
|
|
225
|
+
|
|
226
|
+
// Step 3: Filter to target if specified
|
|
227
|
+
const features =
|
|
228
|
+
options.target !== undefined
|
|
229
|
+
? allFeatures.filter(
|
|
230
|
+
(f) =>
|
|
231
|
+
f.functionName.includes(options.target as string) ||
|
|
232
|
+
f.filePath.includes(options.target as string)
|
|
233
|
+
)
|
|
234
|
+
: allFeatures;
|
|
235
|
+
|
|
236
|
+
// Step 4: Generate test scenarios and fixture data
|
|
237
|
+
const scenarios: WireupScenario[] = generateScenarios(features, cwd);
|
|
238
|
+
generateTestData(scenarios, cwd);
|
|
239
|
+
|
|
240
|
+
// Step 5: Early return for dry-run
|
|
241
|
+
if (options.dryRun) {
|
|
242
|
+
return {
|
|
243
|
+
features_discovered: features.length,
|
|
244
|
+
scenarios_generated: scenarios.length,
|
|
245
|
+
scenarios_run: 0,
|
|
246
|
+
scenarios_passed: 0,
|
|
247
|
+
scenarios_failed: 0,
|
|
248
|
+
issues_found: 0,
|
|
249
|
+
issues: [],
|
|
250
|
+
issues_by_confidence: { high: 0, medium: 0, low: 0 },
|
|
251
|
+
issues_by_type: {
|
|
252
|
+
'missing-route': 0,
|
|
253
|
+
'unconnected-handler': 0,
|
|
254
|
+
'missing-import': 0,
|
|
255
|
+
'missing-middleware': 0,
|
|
256
|
+
'broken-nav-link': 0,
|
|
257
|
+
'missing-env-var': 0,
|
|
258
|
+
'missing-export': 0,
|
|
259
|
+
},
|
|
260
|
+
pass_fail_summary: `Dry run: ${features.length} features discovered, ${scenarios.length} scenarios generated. Execution skipped.`,
|
|
261
|
+
failed_scenarios: [],
|
|
262
|
+
fixes_attempted: 0,
|
|
263
|
+
fixes_verified: 0,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// Step 6: Execute HTTP/CLI scenarios (plan 79-02)
|
|
268
|
+
// Execution options carry SONNET_MODEL so the executor enforces the model ceiling.
|
|
269
|
+
const executeScenarios = _resolveExecuteScenarios();
|
|
270
|
+
const executionResults: ScenarioResult[] = await executeScenarios(cwd, scenarios, {
|
|
271
|
+
timeout_ms: options.timeout,
|
|
272
|
+
base_url: options.baseUrl,
|
|
273
|
+
model: SONNET_MODEL,
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
// Compute pass/fail summary
|
|
277
|
+
const totalScenarios = executionResults.length;
|
|
278
|
+
const passedCount = executionResults.filter((r) => r.overall_passed).length;
|
|
279
|
+
const failedCount = executionResults.filter((r) => !r.overall_passed).length;
|
|
280
|
+
|
|
281
|
+
const failedScenarios: FailedScenarioSummary[] = executionResults
|
|
282
|
+
.filter((r) => !r.overall_passed)
|
|
283
|
+
.map((r) => ({
|
|
284
|
+
scenario_id: r.scenario_id,
|
|
285
|
+
failed_steps: r.step_results.filter((s: StepResult) => !s.passed),
|
|
286
|
+
}));
|
|
287
|
+
|
|
288
|
+
// Step 7: Detect missing connections from failed scenario results
|
|
289
|
+
const failedResults = executionResults.filter((r) => !r.overall_passed);
|
|
290
|
+
const missingConnections: MissingConnection[] = failedResults.length > 0
|
|
291
|
+
? detectMissingConnections(cwd, failedResults)
|
|
292
|
+
: [];
|
|
293
|
+
|
|
294
|
+
// Step 7b: Auto-fix high-confidence issues
|
|
295
|
+
const fixAttempts: FixAttempt[] = [];
|
|
296
|
+
let fixesVerified = 0;
|
|
297
|
+
|
|
298
|
+
if (missingConnections.length > 0 && !options.dryRun) {
|
|
299
|
+
const { high_confidence, requires_manual_review } = partitionByConfidence(missingConnections);
|
|
300
|
+
|
|
301
|
+
for (const issue of high_confidence) {
|
|
302
|
+
const fixPrompt: string = buildAutoFixPrompt(issue);
|
|
303
|
+
|
|
304
|
+
// Spawn claude -p to apply the fix
|
|
305
|
+
const fixApplied: boolean = await _spawnFixSubprocess(cwd, fixPrompt, options.timeout);
|
|
306
|
+
|
|
307
|
+
if (fixApplied) {
|
|
308
|
+
// Re-run the specific scenario to verify the fix
|
|
309
|
+
const scenarioToVerify = scenarios.find(
|
|
310
|
+
(s) => s.feature.functionName === issue.source_file || s.feature.filePath === issue.source_file
|
|
311
|
+
);
|
|
312
|
+
let rerunPassed = false;
|
|
313
|
+
|
|
314
|
+
if (scenarioToVerify) {
|
|
315
|
+
const executeScenariosFn = _resolveExecuteScenarios();
|
|
316
|
+
const rerunResults = await executeScenariosFn(cwd, [scenarioToVerify], {
|
|
317
|
+
timeout_ms: options.timeout,
|
|
318
|
+
base_url: options.baseUrl,
|
|
319
|
+
model: SONNET_MODEL,
|
|
320
|
+
});
|
|
321
|
+
rerunPassed = rerunResults.length > 0 && rerunResults[0].overall_passed;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const attempt: FixAttempt = {
|
|
325
|
+
issue,
|
|
326
|
+
fix_status: rerunPassed ? 'verified' : 'failed',
|
|
327
|
+
fix_description: `${issue.issue_type} in ${issue.target_file}`,
|
|
328
|
+
rerun_passed: rerunPassed,
|
|
329
|
+
fix_prompt: fixPrompt,
|
|
330
|
+
};
|
|
331
|
+
fixAttempts.push(attempt);
|
|
332
|
+
updateFixOutcome(cwd, issue.source_file, attempt);
|
|
333
|
+
|
|
334
|
+
if (rerunPassed) fixesVerified++;
|
|
335
|
+
} else {
|
|
336
|
+
fixAttempts.push({
|
|
337
|
+
issue,
|
|
338
|
+
fix_status: 'failed',
|
|
339
|
+
fix_description: `${issue.issue_type} in ${issue.target_file}`,
|
|
340
|
+
rerun_passed: false,
|
|
341
|
+
error: 'Fix subprocess failed',
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Add skipped attempts for non-high-confidence issues
|
|
347
|
+
for (const issue of requires_manual_review) {
|
|
348
|
+
fixAttempts.push({ issue, fix_status: 'skipped' });
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
const issuesFound = missingConnections.length;
|
|
353
|
+
|
|
354
|
+
// Group issues by confidence and by type for summary output
|
|
355
|
+
const issuesByConfidence: IssuesByConfidence = { high: 0, medium: 0, low: 0 };
|
|
356
|
+
const issuesByType: IssuesByType = {
|
|
357
|
+
'missing-route': 0,
|
|
358
|
+
'unconnected-handler': 0,
|
|
359
|
+
'missing-import': 0,
|
|
360
|
+
'missing-middleware': 0,
|
|
361
|
+
'broken-nav-link': 0,
|
|
362
|
+
'missing-env-var': 0,
|
|
363
|
+
'missing-export': 0,
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
for (const issue of missingConnections) {
|
|
367
|
+
issuesByConfidence[issue.confidence] += 1;
|
|
368
|
+
issuesByType[issue.issue_type] += 1;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// Step 8: Update wireup state
|
|
372
|
+
const updatedState = advanceWireupIteration(wireupState, {
|
|
373
|
+
scenarios_run: totalScenarios,
|
|
374
|
+
passed: passedCount,
|
|
375
|
+
failed: failedCount,
|
|
376
|
+
fixes_applied: fixesVerified,
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
// Update cumulative features_discovered, scenarios_generated, and issues counts
|
|
380
|
+
// Also patch the latest iteration_history entry with extended fields (issues_found, fixes_verified, features_tested)
|
|
381
|
+
const latestHistoryEntry: WireupIterationHistory = {
|
|
382
|
+
...updatedState.iteration_history[updatedState.iteration_history.length - 1],
|
|
383
|
+
features_tested: features.length,
|
|
384
|
+
issues_found: issuesFound,
|
|
385
|
+
fixes_verified: fixesVerified,
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
const patchedHistory: WireupIterationHistory[] = [
|
|
389
|
+
...updatedState.iteration_history.slice(0, -1),
|
|
390
|
+
latestHistoryEntry,
|
|
391
|
+
];
|
|
392
|
+
|
|
393
|
+
// Step 9: Generate WIREUP-REPORT.md for this iteration
|
|
394
|
+
const iterationNumber = patchedHistory.length;
|
|
395
|
+
const reportData: WireupReportData = {
|
|
396
|
+
milestone,
|
|
397
|
+
iteration: iterationNumber,
|
|
398
|
+
timestamp: new Date().toISOString(),
|
|
399
|
+
features_tested: features.length,
|
|
400
|
+
scenarios: {
|
|
401
|
+
total: totalScenarios,
|
|
402
|
+
passed: passedCount,
|
|
403
|
+
failed: failedCount,
|
|
404
|
+
skipped: 0,
|
|
405
|
+
},
|
|
406
|
+
issues_found: missingConnections,
|
|
407
|
+
fixes: {
|
|
408
|
+
applied: fixAttempts.filter((f) => f.fix_status === 'verified'),
|
|
409
|
+
verified: fixesVerified,
|
|
410
|
+
failed: fixAttempts.filter((f) => f.fix_status === 'failed').length,
|
|
411
|
+
skipped: fixAttempts.filter((f) => f.fix_status === 'skipped').length,
|
|
412
|
+
},
|
|
413
|
+
remaining_unwired: failedScenarios.map((fs) => fs.scenario_id),
|
|
414
|
+
manual_review: missingConnections.filter((c) => c.confidence !== 'high'),
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
const reportPath: string = generateWireupReport(cwd, reportData);
|
|
418
|
+
|
|
419
|
+
// Update state with report path and extended iteration history
|
|
420
|
+
const finalState: WireupState = {
|
|
421
|
+
...updatedState,
|
|
422
|
+
features_discovered: wireupState.features_discovered + features.length,
|
|
423
|
+
scenarios_generated: wireupState.scenarios_generated + scenarios.length,
|
|
424
|
+
iteration_history: patchedHistory,
|
|
425
|
+
last_report_path: reportPath,
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
writeWireupState(cwd, finalState);
|
|
429
|
+
|
|
430
|
+
// Step 10: Build summary and return WireupResult
|
|
431
|
+
const passFail = _buildPassFailSummary(
|
|
432
|
+
totalScenarios,
|
|
433
|
+
passedCount,
|
|
434
|
+
failedCount,
|
|
435
|
+
failedScenarios,
|
|
436
|
+
issuesFound,
|
|
437
|
+
issuesByConfidence
|
|
438
|
+
);
|
|
439
|
+
|
|
440
|
+
return {
|
|
441
|
+
features_discovered: features.length,
|
|
442
|
+
scenarios_generated: scenarios.length,
|
|
443
|
+
scenarios_run: totalScenarios,
|
|
444
|
+
scenarios_passed: passedCount,
|
|
445
|
+
scenarios_failed: failedCount,
|
|
446
|
+
issues_found: issuesFound,
|
|
447
|
+
issues: missingConnections,
|
|
448
|
+
issues_by_confidence: issuesByConfidence,
|
|
449
|
+
issues_by_type: issuesByType,
|
|
450
|
+
pass_fail_summary: passFail,
|
|
451
|
+
failed_scenarios: failedScenarios,
|
|
452
|
+
report_path: reportPath,
|
|
453
|
+
fixes_attempted: fixAttempts.length,
|
|
454
|
+
fixes_verified: fixesVerified,
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// ─── CLI Command ──────────────────────────────────────────────────────────────
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* CLI command entry point for `grd-tools.js wireup run`.
|
|
462
|
+
*
|
|
463
|
+
* Parses CLI args and delegates to runWireup().
|
|
464
|
+
* Supported flags: --target <feature>, --dry-run, --timeout <ms>, --max-turns <n>
|
|
465
|
+
*/
|
|
466
|
+
async function cmdWireup(cwd: string, args: string[], raw: boolean): Promise<void> {
|
|
467
|
+
const parsedOptions: WireupOptions = {};
|
|
468
|
+
|
|
469
|
+
for (let i = 0; i < args.length; i++) {
|
|
470
|
+
const arg = args[i];
|
|
471
|
+
if (arg === '--target' && args[i + 1]) {
|
|
472
|
+
parsedOptions.target = args[++i];
|
|
473
|
+
} else if (arg === '--dry-run') {
|
|
474
|
+
parsedOptions.dryRun = true;
|
|
475
|
+
} else if (arg === '--timeout' && args[i + 1]) {
|
|
476
|
+
const t = parseInt(args[++i], 10);
|
|
477
|
+
if (!isNaN(t)) parsedOptions.timeout = t;
|
|
478
|
+
} else if (arg === '--max-turns' && args[i + 1]) {
|
|
479
|
+
const mt = parseInt(args[++i], 10);
|
|
480
|
+
if (!isNaN(mt)) parsedOptions.maxTurns = mt;
|
|
481
|
+
} else if (arg === '--base-url' && args[i + 1]) {
|
|
482
|
+
parsedOptions.baseUrl = args[++i];
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
const result = await runWireup(cwd, parsedOptions);
|
|
487
|
+
|
|
488
|
+
// Print human-readable summary to stdout
|
|
489
|
+
if (!raw) {
|
|
490
|
+
process.stdout.write('\n');
|
|
491
|
+
process.stdout.write(`Wireup complete\n`);
|
|
492
|
+
process.stdout.write(` Features discovered: ${result.features_discovered}\n`);
|
|
493
|
+
process.stdout.write(` Scenarios generated: ${result.scenarios_generated}\n`);
|
|
494
|
+
process.stdout.write(` Scenarios run: ${result.scenarios_run}\n`);
|
|
495
|
+
process.stdout.write(` Passed: ${result.scenarios_passed}\n`);
|
|
496
|
+
process.stdout.write(` Failed: ${result.scenarios_failed}\n`);
|
|
497
|
+
process.stdout.write(` Issues found: ${result.issues_found}`);
|
|
498
|
+
if (result.issues_found > 0) {
|
|
499
|
+
process.stdout.write(
|
|
500
|
+
` (high: ${result.issues_by_confidence.high}, medium: ${result.issues_by_confidence.medium}, low: ${result.issues_by_confidence.low})`
|
|
501
|
+
);
|
|
502
|
+
}
|
|
503
|
+
process.stdout.write('\n');
|
|
504
|
+
process.stdout.write(`\n${result.pass_fail_summary}\n`);
|
|
505
|
+
if (result.report_path !== undefined) {
|
|
506
|
+
process.stdout.write(`\nReport written to: ${result.report_path}\n`);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
output(result, raw);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// ─── Exports ──────────────────────────────────────────────────────────────────
|
|
514
|
+
|
|
515
|
+
module.exports = {
|
|
516
|
+
runWireup,
|
|
517
|
+
cmdWireup,
|
|
518
|
+
_buildPassFailSummary,
|
|
519
|
+
};
|