gsd-trae 1.0.0 → 1.0.2
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/CHANGELOG.md +40 -0
- package/README.md +7 -76
- package/assets/screenshot.png +0 -0
- package/package.json +12 -3
- package/.claude/settings.local.json +0 -8
- package/.gitmodules +0 -6
- package/.trae/project_rules.md +0 -56
- package/.trae/rules/project_rules.md +0 -56
- package/.vscode/code-counter/code-counter.db +0 -0
- package/.vscode/settings.json +0 -5
- package/refs/gsd/.github/CODEOWNERS +0 -2
- package/refs/gsd/.github/FUNDING.yml +0 -1
- package/refs/gsd/.github/ISSUE_TEMPLATE/bug_report.yml +0 -59
- package/refs/gsd/.github/ISSUE_TEMPLATE/feature_request.yml +0 -37
- package/refs/gsd/.github/pull_request_template.md +0 -24
- package/refs/gsd/.github/workflows/auto-label-issues.yml +0 -21
- package/refs/gsd/CHANGELOG.md +0 -1520
- package/refs/gsd/LICENSE +0 -21
- package/refs/gsd/README.md +0 -704
- package/refs/gsd/SECURITY.md +0 -33
- package/refs/gsd/agents/gsd-codebase-mapper.md +0 -764
- package/refs/gsd/agents/gsd-debugger.md +0 -1246
- package/refs/gsd/agents/gsd-executor.md +0 -469
- package/refs/gsd/agents/gsd-integration-checker.md +0 -443
- package/refs/gsd/agents/gsd-phase-researcher.md +0 -546
- package/refs/gsd/agents/gsd-plan-checker.md +0 -690
- package/refs/gsd/agents/gsd-planner.md +0 -1275
- package/refs/gsd/agents/gsd-project-researcher.md +0 -621
- package/refs/gsd/agents/gsd-research-synthesizer.md +0 -239
- package/refs/gsd/agents/gsd-roadmapper.md +0 -642
- package/refs/gsd/agents/gsd-verifier.md +0 -573
- package/refs/gsd/assets/gsd-logo-2000-transparent.png +0 -0
- package/refs/gsd/assets/gsd-logo-2000-transparent.svg +0 -17
- package/refs/gsd/assets/gsd-logo-2000.png +0 -0
- package/refs/gsd/assets/gsd-logo-2000.svg +0 -21
- package/refs/gsd/assets/terminal.svg +0 -68
- package/refs/gsd/bin/install.js +0 -2090
- package/refs/gsd/commands/gsd/add-phase.md +0 -43
- package/refs/gsd/commands/gsd/add-tests.md +0 -41
- package/refs/gsd/commands/gsd/add-todo.md +0 -47
- package/refs/gsd/commands/gsd/audit-milestone.md +0 -36
- package/refs/gsd/commands/gsd/check-todos.md +0 -45
- package/refs/gsd/commands/gsd/cleanup.md +0 -18
- package/refs/gsd/commands/gsd/complete-milestone.md +0 -136
- package/refs/gsd/commands/gsd/debug.md +0 -167
- package/refs/gsd/commands/gsd/discuss-phase.md +0 -83
- package/refs/gsd/commands/gsd/execute-phase.md +0 -41
- package/refs/gsd/commands/gsd/health.md +0 -22
- package/refs/gsd/commands/gsd/help.md +0 -22
- package/refs/gsd/commands/gsd/insert-phase.md +0 -32
- package/refs/gsd/commands/gsd/join-discord.md +0 -18
- package/refs/gsd/commands/gsd/list-phase-assumptions.md +0 -46
- package/refs/gsd/commands/gsd/map-codebase.md +0 -71
- package/refs/gsd/commands/gsd/new-milestone.md +0 -44
- package/refs/gsd/commands/gsd/new-project.md +0 -42
- package/refs/gsd/commands/gsd/new-project.md.bak +0 -1041
- package/refs/gsd/commands/gsd/pause-work.md +0 -38
- package/refs/gsd/commands/gsd/plan-milestone-gaps.md +0 -34
- package/refs/gsd/commands/gsd/plan-phase.md +0 -45
- package/refs/gsd/commands/gsd/progress.md +0 -24
- package/refs/gsd/commands/gsd/quick.md +0 -41
- package/refs/gsd/commands/gsd/reapply-patches.md +0 -110
- package/refs/gsd/commands/gsd/remove-phase.md +0 -31
- package/refs/gsd/commands/gsd/research-phase.md +0 -189
- package/refs/gsd/commands/gsd/resume-work.md +0 -40
- package/refs/gsd/commands/gsd/set-profile.md +0 -34
- package/refs/gsd/commands/gsd/settings.md +0 -36
- package/refs/gsd/commands/gsd/update.md +0 -37
- package/refs/gsd/commands/gsd/verify-work.md +0 -38
- package/refs/gsd/docs/USER-GUIDE.md +0 -471
- package/refs/gsd/docs/context-monitor.md +0 -96
- package/refs/gsd/get-shit-done/bin/gsd-tools.cjs +0 -585
- package/refs/gsd/get-shit-done/bin/lib/commands.cjs +0 -553
- package/refs/gsd/get-shit-done/bin/lib/config.cjs +0 -162
- package/refs/gsd/get-shit-done/bin/lib/core.cjs +0 -411
- package/refs/gsd/get-shit-done/bin/lib/frontmatter.cjs +0 -299
- package/refs/gsd/get-shit-done/bin/lib/init.cjs +0 -710
- package/refs/gsd/get-shit-done/bin/lib/milestone.cjs +0 -215
- package/refs/gsd/get-shit-done/bin/lib/phase.cjs +0 -870
- package/refs/gsd/get-shit-done/bin/lib/roadmap.cjs +0 -298
- package/refs/gsd/get-shit-done/bin/lib/state.cjs +0 -521
- package/refs/gsd/get-shit-done/bin/lib/template.cjs +0 -222
- package/refs/gsd/get-shit-done/bin/lib/verify.cjs +0 -772
- package/refs/gsd/get-shit-done/references/checkpoints.md +0 -776
- package/refs/gsd/get-shit-done/references/continuation-format.md +0 -249
- package/refs/gsd/get-shit-done/references/decimal-phase-calculation.md +0 -65
- package/refs/gsd/get-shit-done/references/git-integration.md +0 -248
- package/refs/gsd/get-shit-done/references/git-planning-commit.md +0 -38
- package/refs/gsd/get-shit-done/references/model-profile-resolution.md +0 -34
- package/refs/gsd/get-shit-done/references/model-profiles.md +0 -92
- package/refs/gsd/get-shit-done/references/phase-argument-parsing.md +0 -61
- package/refs/gsd/get-shit-done/references/planning-config.md +0 -196
- package/refs/gsd/get-shit-done/references/questioning.md +0 -145
- package/refs/gsd/get-shit-done/references/tdd.md +0 -263
- package/refs/gsd/get-shit-done/references/ui-brand.md +0 -160
- package/refs/gsd/get-shit-done/references/verification-patterns.md +0 -612
- package/refs/gsd/get-shit-done/templates/DEBUG.md +0 -164
- package/refs/gsd/get-shit-done/templates/UAT.md +0 -247
- package/refs/gsd/get-shit-done/templates/VALIDATION.md +0 -76
- package/refs/gsd/get-shit-done/templates/codebase/architecture.md +0 -255
- package/refs/gsd/get-shit-done/templates/codebase/concerns.md +0 -310
- package/refs/gsd/get-shit-done/templates/codebase/conventions.md +0 -307
- package/refs/gsd/get-shit-done/templates/codebase/integrations.md +0 -280
- package/refs/gsd/get-shit-done/templates/codebase/stack.md +0 -186
- package/refs/gsd/get-shit-done/templates/codebase/structure.md +0 -285
- package/refs/gsd/get-shit-done/templates/codebase/testing.md +0 -480
- package/refs/gsd/get-shit-done/templates/config.json +0 -37
- package/refs/gsd/get-shit-done/templates/context.md +0 -283
- package/refs/gsd/get-shit-done/templates/continue-here.md +0 -78
- package/refs/gsd/get-shit-done/templates/debug-subagent-prompt.md +0 -91
- package/refs/gsd/get-shit-done/templates/discovery.md +0 -146
- package/refs/gsd/get-shit-done/templates/milestone-archive.md +0 -123
- package/refs/gsd/get-shit-done/templates/milestone.md +0 -115
- package/refs/gsd/get-shit-done/templates/phase-prompt.md +0 -569
- package/refs/gsd/get-shit-done/templates/planner-subagent-prompt.md +0 -117
- package/refs/gsd/get-shit-done/templates/project.md +0 -184
- package/refs/gsd/get-shit-done/templates/requirements.md +0 -231
- package/refs/gsd/get-shit-done/templates/research-project/ARCHITECTURE.md +0 -204
- package/refs/gsd/get-shit-done/templates/research-project/FEATURES.md +0 -147
- package/refs/gsd/get-shit-done/templates/research-project/PITFALLS.md +0 -200
- package/refs/gsd/get-shit-done/templates/research-project/STACK.md +0 -120
- package/refs/gsd/get-shit-done/templates/research-project/SUMMARY.md +0 -170
- package/refs/gsd/get-shit-done/templates/research.md +0 -552
- package/refs/gsd/get-shit-done/templates/retrospective.md +0 -54
- package/refs/gsd/get-shit-done/templates/roadmap.md +0 -202
- package/refs/gsd/get-shit-done/templates/state.md +0 -176
- package/refs/gsd/get-shit-done/templates/summary-complex.md +0 -59
- package/refs/gsd/get-shit-done/templates/summary-minimal.md +0 -41
- package/refs/gsd/get-shit-done/templates/summary-standard.md +0 -48
- package/refs/gsd/get-shit-done/templates/summary.md +0 -248
- package/refs/gsd/get-shit-done/templates/user-setup.md +0 -311
- package/refs/gsd/get-shit-done/templates/verification-report.md +0 -322
- package/refs/gsd/get-shit-done/workflows/add-phase.md +0 -111
- package/refs/gsd/get-shit-done/workflows/add-tests.md +0 -350
- package/refs/gsd/get-shit-done/workflows/add-todo.md +0 -157
- package/refs/gsd/get-shit-done/workflows/audit-milestone.md +0 -297
- package/refs/gsd/get-shit-done/workflows/check-todos.md +0 -176
- package/refs/gsd/get-shit-done/workflows/cleanup.md +0 -152
- package/refs/gsd/get-shit-done/workflows/complete-milestone.md +0 -763
- package/refs/gsd/get-shit-done/workflows/diagnose-issues.md +0 -219
- package/refs/gsd/get-shit-done/workflows/discovery-phase.md +0 -289
- package/refs/gsd/get-shit-done/workflows/discuss-phase.md +0 -542
- package/refs/gsd/get-shit-done/workflows/execute-phase.md +0 -449
- package/refs/gsd/get-shit-done/workflows/execute-plan.md +0 -448
- package/refs/gsd/get-shit-done/workflows/health.md +0 -156
- package/refs/gsd/get-shit-done/workflows/help.md +0 -489
- package/refs/gsd/get-shit-done/workflows/insert-phase.md +0 -129
- package/refs/gsd/get-shit-done/workflows/list-phase-assumptions.md +0 -178
- package/refs/gsd/get-shit-done/workflows/map-codebase.md +0 -315
- package/refs/gsd/get-shit-done/workflows/new-milestone.md +0 -382
- package/refs/gsd/get-shit-done/workflows/new-project.md +0 -1116
- package/refs/gsd/get-shit-done/workflows/pause-work.md +0 -122
- package/refs/gsd/get-shit-done/workflows/plan-milestone-gaps.md +0 -274
- package/refs/gsd/get-shit-done/workflows/plan-phase.md +0 -569
- package/refs/gsd/get-shit-done/workflows/progress.md +0 -381
- package/refs/gsd/get-shit-done/workflows/quick.md +0 -453
- package/refs/gsd/get-shit-done/workflows/remove-phase.md +0 -154
- package/refs/gsd/get-shit-done/workflows/research-phase.md +0 -73
- package/refs/gsd/get-shit-done/workflows/resume-project.md +0 -306
- package/refs/gsd/get-shit-done/workflows/set-profile.md +0 -80
- package/refs/gsd/get-shit-done/workflows/settings.md +0 -213
- package/refs/gsd/get-shit-done/workflows/transition.md +0 -544
- package/refs/gsd/get-shit-done/workflows/update.md +0 -219
- package/refs/gsd/get-shit-done/workflows/verify-phase.md +0 -242
- package/refs/gsd/get-shit-done/workflows/verify-work.md +0 -569
- package/refs/gsd/hooks/gsd-check-update.js +0 -62
- package/refs/gsd/hooks/gsd-context-monitor.js +0 -122
- package/refs/gsd/hooks/gsd-statusline.js +0 -108
- package/refs/gsd/package.json +0 -50
- package/refs/gsd/scripts/build-hooks.js +0 -43
- package/refs/gsd/tests/commands.test.cjs +0 -661
- package/refs/gsd/tests/helpers.cjs +0 -40
- package/refs/gsd/tests/init.test.cjs +0 -205
- package/refs/gsd/tests/milestone.test.cjs +0 -98
- package/refs/gsd/tests/phase.test.cjs +0 -1241
- package/refs/gsd/tests/roadmap.test.cjs +0 -265
- package/refs/gsd/tests/state.test.cjs +0 -302
- package/refs/gsd/tests/verify.test.cjs +0 -80
- package/refs/vbenchmark/.agent/agents/codebase-explorer.md +0 -224
- package/refs/vbenchmark/.agent/agents/debugger.md +0 -180
- package/refs/vbenchmark/.agent/agents/documenter.md +0 -166
- package/refs/vbenchmark/.agent/agents/implementer.md +0 -70
- package/refs/vbenchmark/.agent/agents/orchestrator.md +0 -212
- package/refs/vbenchmark/.agent/agents/researcher.md +0 -80
- package/refs/vbenchmark/.agent/agents/reviewer.md +0 -184
- package/refs/vbenchmark/.agent/agents/tester.md +0 -170
- package/refs/vbenchmark/.agent/commands/commit.md +0 -29
- package/refs/vbenchmark/.agent/commands/debug.md +0 -59
- package/refs/vbenchmark/.agent/commands/document.md +0 -52
- package/refs/vbenchmark/.agent/commands/gather-context.md +0 -58
- package/refs/vbenchmark/.agent/commands/init.md +0 -56
- package/refs/vbenchmark/.agent/commands/preset-help.md +0 -50
- package/refs/vbenchmark/.agent/commands/refactor.md +0 -71
- package/refs/vbenchmark/.agent/commands/research.md +0 -37
- package/refs/vbenchmark/.agent/commands/review.md +0 -38
- package/refs/vbenchmark/.agent/commands/test.md +0 -61
- package/refs/vbenchmark/.agent/rules/01-code-quality.md +0 -33
- package/refs/vbenchmark/.agent/rules/02-typescript-go.md +0 -46
- package/refs/vbenchmark/.agent/rules/03-security-git.md +0 -34
- package/refs/vbenchmark/.agent/rules/04-architecture.md +0 -40
- package/refs/vbenchmark/.agent/sync.js +0 -536
- package/refs/vbenchmark/.agent/workflows/commit.md +0 -29
- package/refs/vbenchmark/.agent/workflows/debug.md +0 -59
- package/refs/vbenchmark/.agent/workflows/document.md +0 -52
- package/refs/vbenchmark/.agent/workflows/gather-context.md +0 -58
- package/refs/vbenchmark/.agent/workflows/init.md +0 -56
- package/refs/vbenchmark/.agent/workflows/preset-help.md +0 -50
- package/refs/vbenchmark/.agent/workflows/refactor.md +0 -71
- package/refs/vbenchmark/.agent/workflows/research.md +0 -37
- package/refs/vbenchmark/.agent/workflows/review.md +0 -38
- package/refs/vbenchmark/.agent/workflows/test.md +0 -61
- package/refs/vbenchmark/.claude/commands/agentic-dev/apply.md +0 -222
- package/refs/vbenchmark/.claude/commands/agentic-dev/done.md +0 -166
- package/refs/vbenchmark/.claude/commands/agentic-dev/proposal.md +0 -220
- package/refs/vbenchmark/.claude/commands/openspec/apply.md +0 -23
- package/refs/vbenchmark/.claude/commands/openspec/archive.md +0 -27
- package/refs/vbenchmark/.claude/commands/openspec/proposal.md +0 -28
- package/refs/vbenchmark/.clinerules/01-rules.md +0 -73
- package/refs/vbenchmark/.clinerules/02-agents.md +0 -34
- package/refs/vbenchmark/.cursor/commands/commit.md +0 -29
- package/refs/vbenchmark/.cursor/commands/debug.md +0 -59
- package/refs/vbenchmark/.cursor/commands/document.md +0 -52
- package/refs/vbenchmark/.cursor/commands/gather-context.md +0 -58
- package/refs/vbenchmark/.cursor/commands/init.md +0 -56
- package/refs/vbenchmark/.cursor/commands/preset-help.md +0 -50
- package/refs/vbenchmark/.cursor/commands/refactor.md +0 -71
- package/refs/vbenchmark/.cursor/commands/research.md +0 -37
- package/refs/vbenchmark/.cursor/commands/review.md +0 -38
- package/refs/vbenchmark/.cursor/commands/test.md +0 -61
- package/refs/vbenchmark/.cursor/rules/agents.mdc +0 -1357
- package/refs/vbenchmark/.factory/droids/codebase-explorer.md +0 -224
- package/refs/vbenchmark/.factory/droids/debugger.md +0 -180
- package/refs/vbenchmark/.factory/droids/documenter.md +0 -166
- package/refs/vbenchmark/.factory/droids/implementer.md +0 -70
- package/refs/vbenchmark/.factory/droids/orchestrator.md +0 -212
- package/refs/vbenchmark/.factory/droids/researcher.md +0 -80
- package/refs/vbenchmark/.factory/droids/reviewer.md +0 -184
- package/refs/vbenchmark/.factory/droids/tester.md +0 -170
- package/refs/vbenchmark/.gemini/workflows/commit.md +0 -29
- package/refs/vbenchmark/.gemini/workflows/debug.md +0 -59
- package/refs/vbenchmark/.gemini/workflows/document.md +0 -52
- package/refs/vbenchmark/.gemini/workflows/gather-context.md +0 -58
- package/refs/vbenchmark/.gemini/workflows/init.md +0 -56
- package/refs/vbenchmark/.gemini/workflows/preset-help.md +0 -50
- package/refs/vbenchmark/.gemini/workflows/refactor.md +0 -71
- package/refs/vbenchmark/.gemini/workflows/research.md +0 -37
- package/refs/vbenchmark/.gemini/workflows/review.md +0 -38
- package/refs/vbenchmark/.gemini/workflows/test.md +0 -61
- package/refs/vbenchmark/.github/CODEOWNERS +0 -20
- package/refs/vbenchmark/.github/FUNDING.yml +0 -4
- package/refs/vbenchmark/.github/ISSUE_TEMPLATE/bug-report.yml +0 -76
- package/refs/vbenchmark/.github/ISSUE_TEMPLATE/new-task.yml +0 -106
- package/refs/vbenchmark/.github/PULL_REQUEST_TEMPLATE.md +0 -38
- package/refs/vbenchmark/.github/copilot-instructions.md +0 -73
- package/refs/vbenchmark/.github/workflows/ci.yaml +0 -33
- package/refs/vbenchmark/.github/workflows/vercel-auto-pr.yml +0 -478
- package/refs/vbenchmark/.github/workflows/vercel-deploy.yaml +0 -487
- package/refs/vbenchmark/.github/workflows/vercel-pr-command.yaml +0 -337
- package/refs/vbenchmark/.github/workflows/vercel-project-init.yaml +0 -208
- package/refs/vbenchmark/.opencode/agent/codebase-explorer.md +0 -224
- package/refs/vbenchmark/.opencode/agent/debugger.md +0 -180
- package/refs/vbenchmark/.opencode/agent/documenter.md +0 -166
- package/refs/vbenchmark/.opencode/agent/implementer.md +0 -70
- package/refs/vbenchmark/.opencode/agent/orchestrator.md +0 -212
- package/refs/vbenchmark/.opencode/agent/researcher.md +0 -80
- package/refs/vbenchmark/.opencode/agent/reviewer.md +0 -184
- package/refs/vbenchmark/.opencode/agent/tester.md +0 -170
- package/refs/vbenchmark/.opencode/command/commit.md +0 -29
- package/refs/vbenchmark/.opencode/command/debug.md +0 -59
- package/refs/vbenchmark/.opencode/command/document.md +0 -52
- package/refs/vbenchmark/.opencode/command/gather-context.md +0 -58
- package/refs/vbenchmark/.opencode/command/init.md +0 -56
- package/refs/vbenchmark/.opencode/command/preset-help.md +0 -50
- package/refs/vbenchmark/.opencode/command/refactor.md +0 -71
- package/refs/vbenchmark/.opencode/command/research.md +0 -37
- package/refs/vbenchmark/.opencode/command/review.md +0 -38
- package/refs/vbenchmark/.opencode/command/test.md +0 -61
- package/refs/vbenchmark/.trae/project_rules.md +0 -73
- package/refs/vbenchmark/.windsurf/rules/rules.md +0 -85
- package/refs/vbenchmark/AGENTS.md +0 -73
- package/refs/vbenchmark/CONTRIBUTING.md +0 -332
- package/refs/vbenchmark/Caddyfile +0 -3
- package/refs/vbenchmark/LICENSE +0 -47
- package/refs/vbenchmark/README.md +0 -354
- package/refs/vbenchmark/docker-compose.prod.yaml +0 -35
- package/refs/vbenchmark/docker-compose.yaml +0 -53
- package/refs/vbenchmark/docs/TASK_EXPANSION_PLAN.md +0 -211
- package/refs/vbenchmark/docs/THESIS.md +0 -441
- package/refs/vbenchmark/docs/categories/code-evolution.md +0 -138
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/design.md +0 -111
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/proposal.md +0 -15
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/specs/evaluation/spec.md +0 -105
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/specs/leaderboard/spec.md +0 -68
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/specs/task-definition/spec.md +0 -45
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/specs/task-runner/spec.md +0 -49
- package/refs/vbenchmark/openspec/changes/init-vibecodingbench/tasks.md +0 -413
- package/refs/vbenchmark/package.json +0 -51
- package/refs/vbenchmark/packages/cli/eslint.config.js +0 -16
- package/refs/vbenchmark/packages/cli/package.json +0 -35
- package/refs/vbenchmark/packages/cli/src/agents/index.ts +0 -655
- package/refs/vbenchmark/packages/cli/src/commands/eval.ts +0 -197
- package/refs/vbenchmark/packages/cli/src/commands/list.ts +0 -63
- package/refs/vbenchmark/packages/cli/src/commands/run.ts +0 -147
- package/refs/vbenchmark/packages/cli/src/evaluator.ts +0 -125
- package/refs/vbenchmark/packages/cli/src/index.ts +0 -21
- package/refs/vbenchmark/packages/cli/src/lib/task-variation.ts +0 -153
- package/refs/vbenchmark/packages/cli/src/loader.ts +0 -258
- package/refs/vbenchmark/packages/cli/src/reporter.ts +0 -222
- package/refs/vbenchmark/packages/cli/src/runtime/docker.ts +0 -385
- package/refs/vbenchmark/packages/cli/tsconfig.json +0 -8
- package/refs/vbenchmark/packages/dashboard/Dockerfile +0 -42
- package/refs/vbenchmark/packages/dashboard/index.html +0 -21
- package/refs/vbenchmark/packages/dashboard/package.json +0 -29
- package/refs/vbenchmark/packages/dashboard/postcss.config.js +0 -6
- package/refs/vbenchmark/packages/dashboard/public/favicon.svg +0 -24
- package/refs/vbenchmark/packages/dashboard/public/logo.png +0 -0
- package/refs/vbenchmark/packages/dashboard/public/logo.svg +0 -39
- package/refs/vbenchmark/packages/dashboard/src/App.tsx +0 -1468
- package/refs/vbenchmark/packages/dashboard/src/data/category-performance.json +0 -1
- package/refs/vbenchmark/packages/dashboard/src/data/leaderboard.json +0 -1
- package/refs/vbenchmark/packages/dashboard/src/data/task-results.json +0 -1
- package/refs/vbenchmark/packages/dashboard/src/data/tasks.json +0 -1
- package/refs/vbenchmark/packages/dashboard/src/index.css +0 -3
- package/refs/vbenchmark/packages/dashboard/src/main.tsx +0 -13
- package/refs/vbenchmark/packages/dashboard/src/vite-env.d.ts +0 -9
- package/refs/vbenchmark/packages/dashboard/tailwind.config.js +0 -11
- package/refs/vbenchmark/packages/dashboard/tsconfig.json +0 -21
- package/refs/vbenchmark/packages/dashboard/tsconfig.node.json +0 -11
- package/refs/vbenchmark/packages/dashboard/vercel.json +0 -6
- package/refs/vbenchmark/packages/dashboard/vite.config.ts +0 -28
- package/refs/vbenchmark/packages/evaluator/eslint.config.js +0 -16
- package/refs/vbenchmark/packages/evaluator/package.json +0 -24
- package/refs/vbenchmark/packages/evaluator/src/index.ts +0 -15
- package/refs/vbenchmark/packages/evaluator/src/runners/functional.ts +0 -88
- package/refs/vbenchmark/packages/evaluator/src/runners/quality.ts +0 -140
- package/refs/vbenchmark/packages/evaluator/src/runners/security.ts +0 -94
- package/refs/vbenchmark/packages/evaluator/src/runners/visual.ts +0 -108
- package/refs/vbenchmark/packages/evaluator/src/types.d.ts +0 -19
- package/refs/vbenchmark/packages/evaluator/tsconfig.json +0 -8
- package/refs/vbenchmark/packages/leaderboard/Dockerfile +0 -38
- package/refs/vbenchmark/packages/leaderboard/drizzle.config.ts +0 -10
- package/refs/vbenchmark/packages/leaderboard/eslint.config.js +0 -16
- package/refs/vbenchmark/packages/leaderboard/fly.toml +0 -29
- package/refs/vbenchmark/packages/leaderboard/package.json +0 -36
- package/refs/vbenchmark/packages/leaderboard/src/app.ts +0 -29
- package/refs/vbenchmark/packages/leaderboard/src/components/BrowserPreview.tsx +0 -190
- package/refs/vbenchmark/packages/leaderboard/src/components/ComparisonView.tsx +0 -205
- package/refs/vbenchmark/packages/leaderboard/src/components/LeaderboardTable.tsx +0 -150
- package/refs/vbenchmark/packages/leaderboard/src/components/LiveRunCard.tsx +0 -133
- package/refs/vbenchmark/packages/leaderboard/src/components/SubmissionForm.tsx +0 -406
- package/refs/vbenchmark/packages/leaderboard/src/components/SubmitForm.tsx +0 -293
- package/refs/vbenchmark/packages/leaderboard/src/components/TerminalStream.tsx +0 -111
- package/refs/vbenchmark/packages/leaderboard/src/config/pricing.ts +0 -206
- package/refs/vbenchmark/packages/leaderboard/src/db/index.ts +0 -31
- package/refs/vbenchmark/packages/leaderboard/src/db/schema.ts +0 -125
- package/refs/vbenchmark/packages/leaderboard/src/index.ts +0 -13
- package/refs/vbenchmark/packages/leaderboard/src/lib/websocket.ts +0 -124
- package/refs/vbenchmark/packages/leaderboard/src/routes/leaderboard.ts +0 -698
- package/refs/vbenchmark/packages/leaderboard/src/routes/live.ts +0 -175
- package/refs/vbenchmark/packages/leaderboard/src/routes/submissions.ts +0 -183
- package/refs/vbenchmark/packages/leaderboard/src/routes/tasks.ts +0 -215
- package/refs/vbenchmark/packages/leaderboard/tests/api.test.ts +0 -228
- package/refs/vbenchmark/packages/leaderboard/tsconfig.json +0 -9
- package/refs/vbenchmark/scripts/deploy.sh +0 -70
- package/refs/vbenchmark/tasks/ai-integration/advanced/context-management/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/context-management/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/evaluation-framework/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/evaluation-framework/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/guardrails-safety/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/guardrails-safety/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/memory-system/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/memory-system/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/model-routing/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/model-routing/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/multi-agent-system/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/multi-agent-system/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/prompt-optimization/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/prompt-optimization/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/reasoning-chain/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/reasoning-chain/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/streaming-pipeline/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/streaming-pipeline/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/advanced/tool-use-orchestration/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/ai-integration/advanced/tool-use-orchestration/task.yaml +0 -16
- package/refs/vbenchmark/tasks/ai-integration/agents/code-review-agent/PROMPT.md +0 -64
- package/refs/vbenchmark/tasks/ai-integration/agents/code-review-agent/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/agents/research-agent/PROMPT.md +0 -61
- package/refs/vbenchmark/tasks/ai-integration/agents/research-agent/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/agents/web-scraper-agent/PROMPT.md +0 -57
- package/refs/vbenchmark/tasks/ai-integration/agents/web-scraper-agent/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/embeddings/duplicate-detection/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/ai-integration/embeddings/duplicate-detection/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/embeddings/recommendation-engine/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/ai-integration/embeddings/recommendation-engine/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/embeddings/semantic-search/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/ai-integration/embeddings/semantic-search/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/fine-tuning/classification-model/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/ai-integration/fine-tuning/classification-model/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/function-calling/api-orchestrator/PROMPT.md +0 -60
- package/refs/vbenchmark/tasks/ai-integration/function-calling/api-orchestrator/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/function-calling/calendar-assistant/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/ai-integration/function-calling/calendar-assistant/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/function-calling/database-query/PROMPT.md +0 -62
- package/refs/vbenchmark/tasks/ai-integration/function-calling/database-query/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/multimodal/chart-interpreter/PROMPT.md +0 -60
- package/refs/vbenchmark/tasks/ai-integration/multimodal/chart-interpreter/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/multimodal/image-captioning/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/ai-integration/multimodal/image-captioning/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/code-assistant/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/code-assistant/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/doc-search/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/doc-search/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/pdf-qa/PROMPT.md +0 -76
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/pdf-qa/docker-compose.yaml +0 -30
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/pdf-qa/task.yaml +0 -30
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/pdf-qa/tests/functional/qa.test.py +0 -146
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/support-bot/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/ai-integration/rag-chatbot/support-bot/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/structured-output/contract-analyzer/PROMPT.md +0 -67
- package/refs/vbenchmark/tasks/ai-integration/structured-output/contract-analyzer/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/structured-output/invoice-parser/PROMPT.md +0 -61
- package/refs/vbenchmark/tasks/ai-integration/structured-output/invoice-parser/task.yaml +0 -27
- package/refs/vbenchmark/tasks/ai-integration/structured-output/receipt-scanner/PROMPT.md +0 -65
- package/refs/vbenchmark/tasks/ai-integration/structured-output/receipt-scanner/task.yaml +0 -24
- package/refs/vbenchmark/tasks/ai-integration/structured-output/resume-parser/PROMPT.md +0 -70
- package/refs/vbenchmark/tasks/ai-integration/structured-output/resume-parser/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/advanced/api-analytics/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/api-analytics/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/api-gateway/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/api-gateway/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/api-mocking/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/api-mocking/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/contract-testing/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/contract-testing/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/graphql-federation/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/graphql-federation/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/grpc-gateway/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/grpc-gateway/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/rate-limiter/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/rate-limiter/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/request-validator/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/request-validator/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/sdk-generator/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/sdk-generator/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/advanced/webhook-processor/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/api-integrations/advanced/webhook-processor/task.yaml +0 -16
- package/refs/vbenchmark/tasks/api-integrations/analytics/mixpanel-events/PROMPT.md +0 -42
- package/refs/vbenchmark/tasks/api-integrations/analytics/mixpanel-events/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/analytics/segment-tracking/PROMPT.md +0 -42
- package/refs/vbenchmark/tasks/api-integrations/analytics/segment-tracking/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/auth-provider/oauth2-github/PROMPT.md +0 -42
- package/refs/vbenchmark/tasks/api-integrations/auth-provider/oauth2-github/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/auth-provider/okta-integration/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/api-integrations/auth-provider/okta-integration/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/auth-provider/saml-sso/PROMPT.md +0 -42
- package/refs/vbenchmark/tasks/api-integrations/auth-provider/saml-sso/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/communication/discord-webhook/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/api-integrations/communication/discord-webhook/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/communication/slack-bot/PROMPT.md +0 -42
- package/refs/vbenchmark/tasks/api-integrations/communication/slack-bot/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/communication/twilio-sms/PROMPT.md +0 -42
- package/refs/vbenchmark/tasks/api-integrations/communication/twilio-sms/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/email/transactional/PROMPT.md +0 -82
- package/refs/vbenchmark/tasks/api-integrations/email/transactional/task.yaml +0 -27
- package/refs/vbenchmark/tasks/api-integrations/maps/google-maps-geocoding/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/maps/google-maps-geocoding/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/maps/mapbox-directions/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/maps/mapbox-directions/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/payment/crypto-payments/PROMPT.md +0 -43
- package/refs/vbenchmark/tasks/api-integrations/payment/crypto-payments/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/payment/paypal-integration/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/payment/paypal-integration/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/social/twitter-api/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/social/twitter-api/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/storage/cloudinary-upload/PROMPT.md +0 -43
- package/refs/vbenchmark/tasks/api-integrations/storage/cloudinary-upload/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/storage/gcs-streaming/PROMPT.md +0 -43
- package/refs/vbenchmark/tasks/api-integrations/storage/gcs-streaming/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/storage/s3-presigned-urls/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/storage/s3-presigned-urls/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/stripe/checkout-session/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/stripe/checkout-session/task.yaml +0 -24
- package/refs/vbenchmark/tasks/api-integrations/stripe/payment-webhook/PROMPT.md +0 -60
- package/refs/vbenchmark/tasks/api-integrations/stripe/payment-webhook/docker-compose.yaml +0 -38
- package/refs/vbenchmark/tasks/api-integrations/stripe/payment-webhook/task.yaml +0 -31
- package/refs/vbenchmark/tasks/api-integrations/stripe/payment-webhook/tests/webhook.test.ts +0 -193
- package/refs/vbenchmark/tasks/api-integrations/stripe/subscription-portal/PROMPT.md +0 -41
- package/refs/vbenchmark/tasks/api-integrations/stripe/subscription-portal/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/advanced/api-deprecation/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/api-deprecation/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/ast-refactoring/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/ast-refactoring/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/concurrency-fix/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/concurrency-fix/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/database-schema-migration/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/database-schema-migration/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/dead-code-elimination/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/dead-code-elimination/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/dependency-upgrade/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/dependency-upgrade/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/memory-optimization/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/memory-optimization/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/monorepo-extraction/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/monorepo-extraction/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/performance-profiling/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/performance-profiling/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/advanced/type-migration/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/code-evolution/advanced/type-migration/task.yaml +0 -16
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/callback-to-async/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/callback-to-async/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/express-to-fastify/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/express-to-fastify/base-code/src/app.ts +0 -22
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/express-to-fastify/task.yaml +0 -37
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/express-to-fastify/tests/api.test.ts +0 -70
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/flask-to-fastapi/PROMPT.md +0 -46
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/flask-to-fastapi/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/java-to-kotlin/PROMPT.md +0 -45
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/java-to-kotlin/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/jquery-to-react/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/jquery-to-react/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/rest-to-grpc/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/legacy-migration/rest-to-grpc/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/performance/async-refactor/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/performance/async-refactor/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/performance/memory-leak-fix/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/performance/memory-leak-fix/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/performance/query-optimization/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/code-evolution/performance/query-optimization/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/refactoring/class-to-hooks/PROMPT.md +0 -96
- package/refs/vbenchmark/tasks/code-evolution/refactoring/class-to-hooks/task.yaml +0 -27
- package/refs/vbenchmark/tasks/code-evolution/refactoring/dependency-injection/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/refactoring/dependency-injection/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/refactoring/error-handling/PROMPT.md +0 -48
- package/refs/vbenchmark/tasks/code-evolution/refactoring/error-handling/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/refactoring/monolith-to-modules/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/code-evolution/refactoring/monolith-to-modules/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/refactoring/orm-migration/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/refactoring/orm-migration/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/security/secrets-rotation/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/code-evolution/security/secrets-rotation/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/security/sql-injection-fix/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/code-evolution/security/sql-injection-fix/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/security/xss-prevention/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/security/xss-prevention/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/testing/add-unit-tests/PROMPT.md +0 -48
- package/refs/vbenchmark/tasks/code-evolution/testing/add-unit-tests/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/testing/e2e-playwright/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/code-evolution/testing/e2e-playwright/task.yaml +0 -24
- package/refs/vbenchmark/tasks/code-evolution/testing/pytest-fixtures/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/code-evolution/testing/pytest-fixtures/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/accessibility/keyboard-shortcuts/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/frontend/accessibility/keyboard-shortcuts/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/accessibility/screen-reader-nav/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/frontend/accessibility/screen-reader-nav/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/advanced/canvas-editor/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/canvas-editor/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/micro-frontend/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/micro-frontend/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/offline-first/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/offline-first/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/realtime-collab/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/realtime-collab/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/service-worker/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/service-worker/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/state-machine/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/state-machine/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/virtual-list/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/virtual-list/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/wasm-integration/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/wasm-integration/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/web-worker/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/web-worker/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/advanced/webgl-visualization/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/frontend/advanced/webgl-visualization/task.yaml +0 -16
- package/refs/vbenchmark/tasks/frontend/animation/page-transitions/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/frontend/animation/page-transitions/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/components/data-grid/PROMPT.md +0 -59
- package/refs/vbenchmark/tasks/frontend/components/data-grid/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/components/date-range-picker/PROMPT.md +0 -57
- package/refs/vbenchmark/tasks/frontend/components/date-range-picker/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/components/file-uploader/PROMPT.md +0 -55
- package/refs/vbenchmark/tasks/frontend/components/file-uploader/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/components/form-builder/PROMPT.md +0 -96
- package/refs/vbenchmark/tasks/frontend/components/form-builder/task.yaml +0 -28
- package/refs/vbenchmark/tasks/frontend/components/rich-text-editor/PROMPT.md +0 -45
- package/refs/vbenchmark/tasks/frontend/components/rich-text-editor/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/figma-to-code/dashboard-layout/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/frontend/figma-to-code/dashboard-layout/task.yaml +0 -25
- package/refs/vbenchmark/tasks/frontend/figma-to-code/landing-page/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/frontend/figma-to-code/landing-page/task.yaml +0 -25
- package/refs/vbenchmark/tasks/frontend/figma-to-code/mobile-app-screen/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/frontend/figma-to-code/mobile-app-screen/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/figma-to-code/pricing-card/PROMPT.md +0 -93
- package/refs/vbenchmark/tasks/frontend/figma-to-code/pricing-card/docker-compose.yaml +0 -23
- package/refs/vbenchmark/tasks/frontend/figma-to-code/pricing-card/task.yaml +0 -30
- package/refs/vbenchmark/tasks/frontend/figma-to-code/pricing-card/tests/visual/diff.test.ts +0 -107
- package/refs/vbenchmark/tasks/frontend/figma-to-code/pricing-card/tests/visual/interaction.test.ts +0 -88
- package/refs/vbenchmark/tasks/frontend/performance/image-lazy-load/PROMPT.md +0 -43
- package/refs/vbenchmark/tasks/frontend/performance/image-lazy-load/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/performance/infinite-scroll/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/frontend/performance/infinite-scroll/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/state-management/collaborative-editor/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/frontend/state-management/collaborative-editor/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/state-management/shopping-cart/PROMPT.md +0 -53
- package/refs/vbenchmark/tasks/frontend/state-management/shopping-cart/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/visualization/chart-dashboard/PROMPT.md +0 -83
- package/refs/vbenchmark/tasks/frontend/visualization/chart-dashboard/task.yaml +0 -28
- package/refs/vbenchmark/tasks/frontend/visualization/gantt-chart/PROMPT.md +0 -57
- package/refs/vbenchmark/tasks/frontend/visualization/gantt-chart/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/visualization/map-dashboard/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/frontend/visualization/map-dashboard/task.yaml +0 -24
- package/refs/vbenchmark/tasks/frontend/visualization/realtime-charts/PROMPT.md +0 -43
- package/refs/vbenchmark/tasks/frontend/visualization/realtime-charts/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/advanced/blue-green-deploy/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/blue-green-deploy/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/canary-release/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/canary-release/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/change-data-capture/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/change-data-capture/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/config-management/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/config-management/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/data-pipeline/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/data-pipeline/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/distributed-tracing/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/distributed-tracing/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/log-aggregation/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/log-aggregation/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/schema-registry/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/schema-registry/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/secret-rotation/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/secret-rotation/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/advanced/stream-processing/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/glue-code/advanced/stream-processing/task.yaml +0 -16
- package/refs/vbenchmark/tasks/glue-code/api-sync/rest-to-graphql/PROMPT.md +0 -66
- package/refs/vbenchmark/tasks/glue-code/api-sync/rest-to-graphql/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/caching/redis-cache/PROMPT.md +0 -82
- package/refs/vbenchmark/tasks/glue-code/caching/redis-cache/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/data-transform/avro-schema-evolution/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/glue-code/data-transform/avro-schema-evolution/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/data-transform/csv-normalizer/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/glue-code/data-transform/csv-normalizer/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/data-transform/excel-to-json/PROMPT.md +0 -67
- package/refs/vbenchmark/tasks/glue-code/data-transform/excel-to-json/task.yaml +0 -28
- package/refs/vbenchmark/tasks/glue-code/data-transform/excel-to-json/tests/transform.test.py +0 -137
- package/refs/vbenchmark/tasks/glue-code/data-transform/json-to-xml/PROMPT.md +0 -45
- package/refs/vbenchmark/tasks/glue-code/data-transform/json-to-xml/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/data-transform/protobuf-converter/PROMPT.md +0 -44
- package/refs/vbenchmark/tasks/glue-code/data-transform/protobuf-converter/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/etl/cdc-pipeline/PROMPT.md +0 -52
- package/refs/vbenchmark/tasks/glue-code/etl/cdc-pipeline/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/etl/database-sync/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/glue-code/etl/database-sync/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/etl/s3-to-warehouse/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/glue-code/etl/s3-to-warehouse/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/file-processing/image-resizer/PROMPT.md +0 -52
- package/refs/vbenchmark/tasks/glue-code/file-processing/image-resizer/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/file-processing/pdf-merger/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/glue-code/file-processing/pdf-merger/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/file-processing/video-transcoder/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/glue-code/file-processing/video-transcoder/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/migration/data-backfill/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/glue-code/migration/data-backfill/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/migration/database-versioning/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/glue-code/migration/database-versioning/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/queue/kafka-producer/PROMPT.md +0 -49
- package/refs/vbenchmark/tasks/glue-code/queue/kafka-producer/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/queue/rabbitmq-consumer/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/glue-code/queue/rabbitmq-consumer/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/queue/sqs-batch-processor/PROMPT.md +0 -47
- package/refs/vbenchmark/tasks/glue-code/queue/sqs-batch-processor/task.yaml +0 -24
- package/refs/vbenchmark/tasks/glue-code/scheduler/cron-job-manager/PROMPT.md +0 -52
- package/refs/vbenchmark/tasks/glue-code/scheduler/cron-job-manager/task.yaml +0 -27
- package/refs/vbenchmark/tasks/glue-code/scheduler/delayed-tasks/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/glue-code/scheduler/delayed-tasks/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/advanced/api-versioning/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/saas-core/advanced/api-versioning/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/circuit-breaker/PROMPT.md +0 -13
- package/refs/vbenchmark/tasks/saas-core/advanced/circuit-breaker/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/compliance-gdpr/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/saas-core/advanced/compliance-gdpr/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/cqrs-pattern/PROMPT.md +0 -13
- package/refs/vbenchmark/tasks/saas-core/advanced/cqrs-pattern/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/data-encryption/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/saas-core/advanced/data-encryption/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/distributed-locking/PROMPT.md +0 -46
- package/refs/vbenchmark/tasks/saas-core/advanced/distributed-locking/task.yaml +0 -24
- package/refs/vbenchmark/tasks/saas-core/advanced/event-sourcing/PROMPT.md +0 -23
- package/refs/vbenchmark/tasks/saas-core/advanced/event-sourcing/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/feature-flags-ab/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/saas-core/advanced/feature-flags-ab/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/saga-orchestration/PROMPT.md +0 -13
- package/refs/vbenchmark/tasks/saas-core/advanced/saga-orchestration/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/advanced/webhook-delivery/PROMPT.md +0 -15
- package/refs/vbenchmark/tasks/saas-core/advanced/webhook-delivery/task.yaml +0 -16
- package/refs/vbenchmark/tasks/saas-core/audit/activity-logging/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/saas-core/audit/activity-logging/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/auth/jwt-refresh-tokens/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/saas-core/auth/jwt-refresh-tokens/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/auth/magic-link-email/PROMPT.md +0 -53
- package/refs/vbenchmark/tasks/saas-core/auth/magic-link-email/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/auth/mfa-totp/PROMPT.md +0 -79
- package/refs/vbenchmark/tasks/saas-core/auth/mfa-totp/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/auth/rbac-permissions/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/saas-core/auth/rbac-permissions/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/auth/session-management/PROMPT.md +0 -52
- package/refs/vbenchmark/tasks/saas-core/auth/session-management/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/auth/supabase-oauth/PROMPT.md +0 -45
- package/refs/vbenchmark/tasks/saas-core/auth/supabase-oauth/docker-compose.yaml +0 -47
- package/refs/vbenchmark/tasks/saas-core/auth/supabase-oauth/task.yaml +0 -32
- package/refs/vbenchmark/tasks/saas-core/auth/supabase-oauth/tests/auth.test.ts +0 -59
- package/refs/vbenchmark/tasks/saas-core/billing/invoice-generation/PROMPT.md +0 -53
- package/refs/vbenchmark/tasks/saas-core/billing/invoice-generation/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/billing/stripe-subscriptions/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/saas-core/billing/stripe-subscriptions/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/billing/usage-metering/PROMPT.md +0 -52
- package/refs/vbenchmark/tasks/saas-core/billing/usage-metering/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/crud/dashboard-table/PROMPT.md +0 -48
- package/refs/vbenchmark/tasks/saas-core/crud/dashboard-table/task.yaml +0 -28
- package/refs/vbenchmark/tasks/saas-core/multi-tenant/org-isolation/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/saas-core/multi-tenant/org-isolation/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/multi-tenant/subdomain-routing/PROMPT.md +0 -50
- package/refs/vbenchmark/tasks/saas-core/multi-tenant/subdomain-routing/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/notifications/email-queue/PROMPT.md +0 -53
- package/refs/vbenchmark/tasks/saas-core/notifications/email-queue/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/notifications/in-app-alerts/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/saas-core/notifications/in-app-alerts/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/notifications/push-notifications/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/saas-core/notifications/push-notifications/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/realtime/websocket-chat/PROMPT.md +0 -80
- package/refs/vbenchmark/tasks/saas-core/realtime/websocket-chat/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/search/full-text-search/PROMPT.md +0 -51
- package/refs/vbenchmark/tasks/saas-core/search/full-text-search/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/security/rate-limiter/PROMPT.md +0 -99
- package/refs/vbenchmark/tasks/saas-core/security/rate-limiter/task.yaml +0 -27
- package/refs/vbenchmark/tasks/saas-core/settings/user-preferences/PROMPT.md +0 -78
- package/refs/vbenchmark/tasks/saas-core/settings/user-preferences/task.yaml +0 -27
- package/refs/vbenchmark/templates/fastapi-postgres/docker-compose.yaml +0 -36
- package/refs/vbenchmark/templates/fastapi-postgres/pyproject.toml +0 -34
- package/refs/vbenchmark/templates/fastapi-postgres/src/__init__.py +0 -0
- package/refs/vbenchmark/templates/fastapi-postgres/src/config.py +0 -12
- package/refs/vbenchmark/templates/fastapi-postgres/src/database.py +0 -15
- package/refs/vbenchmark/templates/fastapi-postgres/src/main.py +0 -51
- package/refs/vbenchmark/templates/fastapi-postgres/src/models.py +0 -12
- package/refs/vbenchmark/templates/fastapi-postgres/src/schemas.py +0 -20
- package/refs/vbenchmark/templates/go-fiber/docker-compose.yaml +0 -34
- package/refs/vbenchmark/templates/go-fiber/go.mod +0 -33
- package/refs/vbenchmark/templates/go-fiber/go.sum +0 -68
- package/refs/vbenchmark/templates/go-fiber/main.go +0 -98
- package/refs/vbenchmark/templates/nextjs-supabase/.env.example +0 -3
- package/refs/vbenchmark/templates/nextjs-supabase/docker-compose.yaml +0 -68
- package/refs/vbenchmark/templates/nextjs-supabase/src/app/globals.css +0 -13
- package/refs/vbenchmark/templates/nextjs-supabase/src/app/layout.tsx +0 -19
- package/refs/vbenchmark/templates/nextjs-supabase/src/app/page.tsx +0 -38
- package/refs/vbenchmark/templates/nextjs-supabase/src/lib/supabase/client.ts +0 -8
- package/refs/vbenchmark/templates/nextjs-supabase/src/lib/supabase/server.ts +0 -32
- package/refs/vbenchmark/templates/rust-axum/Cargo.lock +0 -2371
- package/refs/vbenchmark/templates/rust-axum/Cargo.toml +0 -16
- package/refs/vbenchmark/templates/rust-axum/docker-compose.yaml +0 -34
- package/refs/vbenchmark/templates/rust-axum/migrations/20240101000000_init.sql +0 -20
- package/refs/vbenchmark/templates/rust-axum/src/main.rs +0 -121
- package/refs/vbenchmark/tsconfig.base.json +0 -18
- package/refs/vbenchmark/turbo.json +0 -23
- package/refs/vbenchmark/vercel.json +0 -10
|
@@ -1,870 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Phase — Phase CRUD, query, and lifecycle operations
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
const fs = require('fs');
|
|
6
|
-
const path = require('path');
|
|
7
|
-
const { escapeRegex, normalizePhaseName, comparePhaseNum, findPhaseInternal, getArchivedPhaseDirs, generateSlugInternal, output, error } = require('./core.cjs');
|
|
8
|
-
const { extractFrontmatter } = require('./frontmatter.cjs');
|
|
9
|
-
|
|
10
|
-
function cmdPhasesList(cwd, options, raw) {
|
|
11
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
12
|
-
const { type, phase, includeArchived } = options;
|
|
13
|
-
|
|
14
|
-
// If no phases directory, return empty
|
|
15
|
-
if (!fs.existsSync(phasesDir)) {
|
|
16
|
-
if (type) {
|
|
17
|
-
output({ files: [], count: 0 }, raw, '');
|
|
18
|
-
} else {
|
|
19
|
-
output({ directories: [], count: 0 }, raw, '');
|
|
20
|
-
}
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
// Get all phase directories
|
|
26
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
27
|
-
let dirs = entries.filter(e => e.isDirectory()).map(e => e.name);
|
|
28
|
-
|
|
29
|
-
// Include archived phases if requested
|
|
30
|
-
if (includeArchived) {
|
|
31
|
-
const archived = getArchivedPhaseDirs(cwd);
|
|
32
|
-
for (const a of archived) {
|
|
33
|
-
dirs.push(`${a.name} [${a.milestone}]`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Sort numerically (handles integers, decimals, letter-suffix, hybrids)
|
|
38
|
-
dirs.sort((a, b) => comparePhaseNum(a, b));
|
|
39
|
-
|
|
40
|
-
// If filtering by phase number
|
|
41
|
-
if (phase) {
|
|
42
|
-
const normalized = normalizePhaseName(phase);
|
|
43
|
-
const match = dirs.find(d => d.startsWith(normalized));
|
|
44
|
-
if (!match) {
|
|
45
|
-
output({ files: [], count: 0, phase_dir: null, error: 'Phase not found' }, raw, '');
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
dirs = [match];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// If listing files of a specific type
|
|
52
|
-
if (type) {
|
|
53
|
-
const files = [];
|
|
54
|
-
for (const dir of dirs) {
|
|
55
|
-
const dirPath = path.join(phasesDir, dir);
|
|
56
|
-
const dirFiles = fs.readdirSync(dirPath);
|
|
57
|
-
|
|
58
|
-
let filtered;
|
|
59
|
-
if (type === 'plans') {
|
|
60
|
-
filtered = dirFiles.filter(f => f.endsWith('-PLAN.md') || f === 'PLAN.md');
|
|
61
|
-
} else if (type === 'summaries') {
|
|
62
|
-
filtered = dirFiles.filter(f => f.endsWith('-SUMMARY.md') || f === 'SUMMARY.md');
|
|
63
|
-
} else {
|
|
64
|
-
filtered = dirFiles;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
files.push(...filtered.sort());
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const result = {
|
|
71
|
-
files,
|
|
72
|
-
count: files.length,
|
|
73
|
-
phase_dir: phase ? dirs[0].replace(/^\d+(?:\.\d+)*-?/, '') : null,
|
|
74
|
-
};
|
|
75
|
-
output(result, raw, files.join('\n'));
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Default: list directories
|
|
80
|
-
output({ directories: dirs, count: dirs.length }, raw, dirs.join('\n'));
|
|
81
|
-
} catch (e) {
|
|
82
|
-
error('Failed to list phases: ' + e.message);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function cmdPhaseNextDecimal(cwd, basePhase, raw) {
|
|
87
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
88
|
-
const normalized = normalizePhaseName(basePhase);
|
|
89
|
-
|
|
90
|
-
// Check if phases directory exists
|
|
91
|
-
if (!fs.existsSync(phasesDir)) {
|
|
92
|
-
output(
|
|
93
|
-
{
|
|
94
|
-
found: false,
|
|
95
|
-
base_phase: normalized,
|
|
96
|
-
next: `${normalized}.1`,
|
|
97
|
-
existing: [],
|
|
98
|
-
},
|
|
99
|
-
raw,
|
|
100
|
-
`${normalized}.1`
|
|
101
|
-
);
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
try {
|
|
106
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
107
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name);
|
|
108
|
-
|
|
109
|
-
// Check if base phase exists
|
|
110
|
-
const baseExists = dirs.some(d => d.startsWith(normalized + '-') || d === normalized);
|
|
111
|
-
|
|
112
|
-
// Find existing decimal phases for this base
|
|
113
|
-
const decimalPattern = new RegExp(`^${normalized}\\.(\\d+)`);
|
|
114
|
-
const existingDecimals = [];
|
|
115
|
-
|
|
116
|
-
for (const dir of dirs) {
|
|
117
|
-
const match = dir.match(decimalPattern);
|
|
118
|
-
if (match) {
|
|
119
|
-
existingDecimals.push(`${normalized}.${match[1]}`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Sort numerically
|
|
124
|
-
existingDecimals.sort((a, b) => comparePhaseNum(a, b));
|
|
125
|
-
|
|
126
|
-
// Calculate next decimal
|
|
127
|
-
let nextDecimal;
|
|
128
|
-
if (existingDecimals.length === 0) {
|
|
129
|
-
nextDecimal = `${normalized}.1`;
|
|
130
|
-
} else {
|
|
131
|
-
const lastDecimal = existingDecimals[existingDecimals.length - 1];
|
|
132
|
-
const lastNum = parseInt(lastDecimal.split('.')[1], 10);
|
|
133
|
-
nextDecimal = `${normalized}.${lastNum + 1}`;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
output(
|
|
137
|
-
{
|
|
138
|
-
found: baseExists,
|
|
139
|
-
base_phase: normalized,
|
|
140
|
-
next: nextDecimal,
|
|
141
|
-
existing: existingDecimals,
|
|
142
|
-
},
|
|
143
|
-
raw,
|
|
144
|
-
nextDecimal
|
|
145
|
-
);
|
|
146
|
-
} catch (e) {
|
|
147
|
-
error('Failed to calculate next decimal phase: ' + e.message);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function cmdFindPhase(cwd, phase, raw) {
|
|
152
|
-
if (!phase) {
|
|
153
|
-
error('phase identifier required');
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
157
|
-
const normalized = normalizePhaseName(phase);
|
|
158
|
-
|
|
159
|
-
const notFound = { found: false, directory: null, phase_number: null, phase_name: null, plans: [], summaries: [] };
|
|
160
|
-
|
|
161
|
-
try {
|
|
162
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
163
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name).sort((a, b) => comparePhaseNum(a, b));
|
|
164
|
-
|
|
165
|
-
const match = dirs.find(d => d.startsWith(normalized));
|
|
166
|
-
if (!match) {
|
|
167
|
-
output(notFound, raw, '');
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
const dirMatch = match.match(/^(\d+[A-Z]?(?:\.\d+)*)-?(.*)/i);
|
|
172
|
-
const phaseNumber = dirMatch ? dirMatch[1] : normalized;
|
|
173
|
-
const phaseName = dirMatch && dirMatch[2] ? dirMatch[2] : null;
|
|
174
|
-
|
|
175
|
-
const phaseDir = path.join(phasesDir, match);
|
|
176
|
-
const phaseFiles = fs.readdirSync(phaseDir);
|
|
177
|
-
const plans = phaseFiles.filter(f => f.endsWith('-PLAN.md') || f === 'PLAN.md').sort();
|
|
178
|
-
const summaries = phaseFiles.filter(f => f.endsWith('-SUMMARY.md') || f === 'SUMMARY.md').sort();
|
|
179
|
-
|
|
180
|
-
const result = {
|
|
181
|
-
found: true,
|
|
182
|
-
directory: path.join('.planning', 'phases', match),
|
|
183
|
-
phase_number: phaseNumber,
|
|
184
|
-
phase_name: phaseName,
|
|
185
|
-
plans,
|
|
186
|
-
summaries,
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
output(result, raw, result.directory);
|
|
190
|
-
} catch {
|
|
191
|
-
output(notFound, raw, '');
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
function cmdPhasePlanIndex(cwd, phase, raw) {
|
|
196
|
-
if (!phase) {
|
|
197
|
-
error('phase required for phase-plan-index');
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
201
|
-
const normalized = normalizePhaseName(phase);
|
|
202
|
-
|
|
203
|
-
// Find phase directory
|
|
204
|
-
let phaseDir = null;
|
|
205
|
-
let phaseDirName = null;
|
|
206
|
-
try {
|
|
207
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
208
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name).sort((a, b) => comparePhaseNum(a, b));
|
|
209
|
-
const match = dirs.find(d => d.startsWith(normalized));
|
|
210
|
-
if (match) {
|
|
211
|
-
phaseDir = path.join(phasesDir, match);
|
|
212
|
-
phaseDirName = match;
|
|
213
|
-
}
|
|
214
|
-
} catch {
|
|
215
|
-
// phases dir doesn't exist
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
if (!phaseDir) {
|
|
219
|
-
output({ phase: normalized, error: 'Phase not found', plans: [], waves: {}, incomplete: [], has_checkpoints: false }, raw);
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// Get all files in phase directory
|
|
224
|
-
const phaseFiles = fs.readdirSync(phaseDir);
|
|
225
|
-
const planFiles = phaseFiles.filter(f => f.endsWith('-PLAN.md') || f === 'PLAN.md').sort();
|
|
226
|
-
const summaryFiles = phaseFiles.filter(f => f.endsWith('-SUMMARY.md') || f === 'SUMMARY.md');
|
|
227
|
-
|
|
228
|
-
// Build set of plan IDs with summaries
|
|
229
|
-
const completedPlanIds = new Set(
|
|
230
|
-
summaryFiles.map(s => s.replace('-SUMMARY.md', '').replace('SUMMARY.md', ''))
|
|
231
|
-
);
|
|
232
|
-
|
|
233
|
-
const plans = [];
|
|
234
|
-
const waves = {};
|
|
235
|
-
const incomplete = [];
|
|
236
|
-
let hasCheckpoints = false;
|
|
237
|
-
|
|
238
|
-
for (const planFile of planFiles) {
|
|
239
|
-
const planId = planFile.replace('-PLAN.md', '').replace('PLAN.md', '');
|
|
240
|
-
const planPath = path.join(phaseDir, planFile);
|
|
241
|
-
const content = fs.readFileSync(planPath, 'utf-8');
|
|
242
|
-
const fm = extractFrontmatter(content);
|
|
243
|
-
|
|
244
|
-
// Count tasks (## Task N patterns)
|
|
245
|
-
const taskMatches = content.match(/##\s*Task\s*\d+/gi) || [];
|
|
246
|
-
const taskCount = taskMatches.length;
|
|
247
|
-
|
|
248
|
-
// Parse wave as integer
|
|
249
|
-
const wave = parseInt(fm.wave, 10) || 1;
|
|
250
|
-
|
|
251
|
-
// Parse autonomous (default true if not specified)
|
|
252
|
-
let autonomous = true;
|
|
253
|
-
if (fm.autonomous !== undefined) {
|
|
254
|
-
autonomous = fm.autonomous === 'true' || fm.autonomous === true;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (!autonomous) {
|
|
258
|
-
hasCheckpoints = true;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
// Parse files-modified
|
|
262
|
-
let filesModified = [];
|
|
263
|
-
if (fm['files-modified']) {
|
|
264
|
-
filesModified = Array.isArray(fm['files-modified']) ? fm['files-modified'] : [fm['files-modified']];
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
const hasSummary = completedPlanIds.has(planId);
|
|
268
|
-
if (!hasSummary) {
|
|
269
|
-
incomplete.push(planId);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const plan = {
|
|
273
|
-
id: planId,
|
|
274
|
-
wave,
|
|
275
|
-
autonomous,
|
|
276
|
-
objective: fm.objective || null,
|
|
277
|
-
files_modified: filesModified,
|
|
278
|
-
task_count: taskCount,
|
|
279
|
-
has_summary: hasSummary,
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
plans.push(plan);
|
|
283
|
-
|
|
284
|
-
// Group by wave
|
|
285
|
-
const waveKey = String(wave);
|
|
286
|
-
if (!waves[waveKey]) {
|
|
287
|
-
waves[waveKey] = [];
|
|
288
|
-
}
|
|
289
|
-
waves[waveKey].push(planId);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
const result = {
|
|
293
|
-
phase: normalized,
|
|
294
|
-
plans,
|
|
295
|
-
waves,
|
|
296
|
-
incomplete,
|
|
297
|
-
has_checkpoints: hasCheckpoints,
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
output(result, raw);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
function cmdPhaseAdd(cwd, description, raw) {
|
|
304
|
-
if (!description) {
|
|
305
|
-
error('description required for phase add');
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
const roadmapPath = path.join(cwd, '.planning', 'ROADMAP.md');
|
|
309
|
-
if (!fs.existsSync(roadmapPath)) {
|
|
310
|
-
error('ROADMAP.md not found');
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
const content = fs.readFileSync(roadmapPath, 'utf-8');
|
|
314
|
-
const slug = generateSlugInternal(description);
|
|
315
|
-
|
|
316
|
-
// Find highest integer phase number
|
|
317
|
-
const phasePattern = /#{2,4}\s*Phase\s+(\d+)[A-Z]?(?:\.\d+)*:/gi;
|
|
318
|
-
let maxPhase = 0;
|
|
319
|
-
let m;
|
|
320
|
-
while ((m = phasePattern.exec(content)) !== null) {
|
|
321
|
-
const num = parseInt(m[1], 10);
|
|
322
|
-
if (num > maxPhase) maxPhase = num;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
const newPhaseNum = maxPhase + 1;
|
|
326
|
-
const paddedNum = String(newPhaseNum).padStart(2, '0');
|
|
327
|
-
const dirName = `${paddedNum}-${slug}`;
|
|
328
|
-
const dirPath = path.join(cwd, '.planning', 'phases', dirName);
|
|
329
|
-
|
|
330
|
-
// Create directory with .gitkeep so git tracks empty folders
|
|
331
|
-
fs.mkdirSync(dirPath, { recursive: true });
|
|
332
|
-
fs.writeFileSync(path.join(dirPath, '.gitkeep'), '');
|
|
333
|
-
|
|
334
|
-
// Build phase entry
|
|
335
|
-
const phaseEntry = `\n### Phase ${newPhaseNum}: ${description}\n\n**Goal:** [To be planned]\n**Requirements**: TBD\n**Depends on:** Phase ${maxPhase}\n**Plans:** 0 plans\n\nPlans:\n- [ ] TBD (run /gsd:plan-phase ${newPhaseNum} to break down)\n`;
|
|
336
|
-
|
|
337
|
-
// Find insertion point: before last "---" or at end
|
|
338
|
-
let updatedContent;
|
|
339
|
-
const lastSeparator = content.lastIndexOf('\n---');
|
|
340
|
-
if (lastSeparator > 0) {
|
|
341
|
-
updatedContent = content.slice(0, lastSeparator) + phaseEntry + content.slice(lastSeparator);
|
|
342
|
-
} else {
|
|
343
|
-
updatedContent = content + phaseEntry;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
fs.writeFileSync(roadmapPath, updatedContent, 'utf-8');
|
|
347
|
-
|
|
348
|
-
const result = {
|
|
349
|
-
phase_number: newPhaseNum,
|
|
350
|
-
padded: paddedNum,
|
|
351
|
-
name: description,
|
|
352
|
-
slug,
|
|
353
|
-
directory: `.planning/phases/${dirName}`,
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
output(result, raw, paddedNum);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
function cmdPhaseInsert(cwd, afterPhase, description, raw) {
|
|
360
|
-
if (!afterPhase || !description) {
|
|
361
|
-
error('after-phase and description required for phase insert');
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const roadmapPath = path.join(cwd, '.planning', 'ROADMAP.md');
|
|
365
|
-
if (!fs.existsSync(roadmapPath)) {
|
|
366
|
-
error('ROADMAP.md not found');
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
const content = fs.readFileSync(roadmapPath, 'utf-8');
|
|
370
|
-
const slug = generateSlugInternal(description);
|
|
371
|
-
|
|
372
|
-
// Normalize input then strip leading zeros for flexible matching
|
|
373
|
-
const normalizedAfter = normalizePhaseName(afterPhase);
|
|
374
|
-
const unpadded = normalizedAfter.replace(/^0+/, '');
|
|
375
|
-
const afterPhaseEscaped = unpadded.replace(/\./g, '\\.');
|
|
376
|
-
const targetPattern = new RegExp(`#{2,4}\\s*Phase\\s+0*${afterPhaseEscaped}:`, 'i');
|
|
377
|
-
if (!targetPattern.test(content)) {
|
|
378
|
-
error(`Phase ${afterPhase} not found in ROADMAP.md`);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
// Calculate next decimal using existing logic
|
|
382
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
383
|
-
const normalizedBase = normalizePhaseName(afterPhase);
|
|
384
|
-
let existingDecimals = [];
|
|
385
|
-
|
|
386
|
-
try {
|
|
387
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
388
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name);
|
|
389
|
-
const decimalPattern = new RegExp(`^${normalizedBase}\\.(\\d+)`);
|
|
390
|
-
for (const dir of dirs) {
|
|
391
|
-
const dm = dir.match(decimalPattern);
|
|
392
|
-
if (dm) existingDecimals.push(parseInt(dm[1], 10));
|
|
393
|
-
}
|
|
394
|
-
} catch {}
|
|
395
|
-
|
|
396
|
-
const nextDecimal = existingDecimals.length === 0 ? 1 : Math.max(...existingDecimals) + 1;
|
|
397
|
-
const decimalPhase = `${normalizedBase}.${nextDecimal}`;
|
|
398
|
-
const dirName = `${decimalPhase}-${slug}`;
|
|
399
|
-
const dirPath = path.join(cwd, '.planning', 'phases', dirName);
|
|
400
|
-
|
|
401
|
-
// Create directory with .gitkeep so git tracks empty folders
|
|
402
|
-
fs.mkdirSync(dirPath, { recursive: true });
|
|
403
|
-
fs.writeFileSync(path.join(dirPath, '.gitkeep'), '');
|
|
404
|
-
|
|
405
|
-
// Build phase entry
|
|
406
|
-
const phaseEntry = `\n### Phase ${decimalPhase}: ${description} (INSERTED)\n\n**Goal:** [Urgent work - to be planned]\n**Requirements**: TBD\n**Depends on:** Phase ${afterPhase}\n**Plans:** 0 plans\n\nPlans:\n- [ ] TBD (run /gsd:plan-phase ${decimalPhase} to break down)\n`;
|
|
407
|
-
|
|
408
|
-
// Insert after the target phase section
|
|
409
|
-
const headerPattern = new RegExp(`(#{2,4}\\s*Phase\\s+0*${afterPhaseEscaped}:[^\\n]*\\n)`, 'i');
|
|
410
|
-
const headerMatch = content.match(headerPattern);
|
|
411
|
-
if (!headerMatch) {
|
|
412
|
-
error(`Could not find Phase ${afterPhase} header`);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
const headerIdx = content.indexOf(headerMatch[0]);
|
|
416
|
-
const afterHeader = content.slice(headerIdx + headerMatch[0].length);
|
|
417
|
-
const nextPhaseMatch = afterHeader.match(/\n#{2,4}\s+Phase\s+\d/i);
|
|
418
|
-
|
|
419
|
-
let insertIdx;
|
|
420
|
-
if (nextPhaseMatch) {
|
|
421
|
-
insertIdx = headerIdx + headerMatch[0].length + nextPhaseMatch.index;
|
|
422
|
-
} else {
|
|
423
|
-
insertIdx = content.length;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
const updatedContent = content.slice(0, insertIdx) + phaseEntry + content.slice(insertIdx);
|
|
427
|
-
fs.writeFileSync(roadmapPath, updatedContent, 'utf-8');
|
|
428
|
-
|
|
429
|
-
const result = {
|
|
430
|
-
phase_number: decimalPhase,
|
|
431
|
-
after_phase: afterPhase,
|
|
432
|
-
name: description,
|
|
433
|
-
slug,
|
|
434
|
-
directory: `.planning/phases/${dirName}`,
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
output(result, raw, decimalPhase);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
function cmdPhaseRemove(cwd, targetPhase, options, raw) {
|
|
441
|
-
if (!targetPhase) {
|
|
442
|
-
error('phase number required for phase remove');
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
const roadmapPath = path.join(cwd, '.planning', 'ROADMAP.md');
|
|
446
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
447
|
-
const force = options.force || false;
|
|
448
|
-
|
|
449
|
-
if (!fs.existsSync(roadmapPath)) {
|
|
450
|
-
error('ROADMAP.md not found');
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// Normalize the target
|
|
454
|
-
const normalized = normalizePhaseName(targetPhase);
|
|
455
|
-
const isDecimal = targetPhase.includes('.');
|
|
456
|
-
|
|
457
|
-
// Find and validate target directory
|
|
458
|
-
let targetDir = null;
|
|
459
|
-
try {
|
|
460
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
461
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name).sort((a, b) => comparePhaseNum(a, b));
|
|
462
|
-
targetDir = dirs.find(d => d.startsWith(normalized + '-') || d === normalized);
|
|
463
|
-
} catch {}
|
|
464
|
-
|
|
465
|
-
// Check for executed work (SUMMARY.md files)
|
|
466
|
-
if (targetDir && !force) {
|
|
467
|
-
const targetPath = path.join(phasesDir, targetDir);
|
|
468
|
-
const files = fs.readdirSync(targetPath);
|
|
469
|
-
const summaries = files.filter(f => f.endsWith('-SUMMARY.md') || f === 'SUMMARY.md');
|
|
470
|
-
if (summaries.length > 0) {
|
|
471
|
-
error(`Phase ${targetPhase} has ${summaries.length} executed plan(s). Use --force to remove anyway.`);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
// Delete target directory
|
|
476
|
-
if (targetDir) {
|
|
477
|
-
fs.rmSync(path.join(phasesDir, targetDir), { recursive: true, force: true });
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
// Renumber subsequent phases
|
|
481
|
-
const renamedDirs = [];
|
|
482
|
-
const renamedFiles = [];
|
|
483
|
-
|
|
484
|
-
if (isDecimal) {
|
|
485
|
-
// Decimal removal: renumber sibling decimals (e.g., removing 06.2 → 06.3 becomes 06.2)
|
|
486
|
-
const baseParts = normalized.split('.');
|
|
487
|
-
const baseInt = baseParts[0];
|
|
488
|
-
const removedDecimal = parseInt(baseParts[1], 10);
|
|
489
|
-
|
|
490
|
-
try {
|
|
491
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
492
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name).sort((a, b) => comparePhaseNum(a, b));
|
|
493
|
-
|
|
494
|
-
// Find sibling decimals with higher numbers
|
|
495
|
-
const decPattern = new RegExp(`^${baseInt}\\.(\\d+)-(.+)$`);
|
|
496
|
-
const toRename = [];
|
|
497
|
-
for (const dir of dirs) {
|
|
498
|
-
const dm = dir.match(decPattern);
|
|
499
|
-
if (dm && parseInt(dm[1], 10) > removedDecimal) {
|
|
500
|
-
toRename.push({ dir, oldDecimal: parseInt(dm[1], 10), slug: dm[2] });
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
// Sort descending to avoid conflicts
|
|
505
|
-
toRename.sort((a, b) => b.oldDecimal - a.oldDecimal);
|
|
506
|
-
|
|
507
|
-
for (const item of toRename) {
|
|
508
|
-
const newDecimal = item.oldDecimal - 1;
|
|
509
|
-
const oldPhaseId = `${baseInt}.${item.oldDecimal}`;
|
|
510
|
-
const newPhaseId = `${baseInt}.${newDecimal}`;
|
|
511
|
-
const newDirName = `${baseInt}.${newDecimal}-${item.slug}`;
|
|
512
|
-
|
|
513
|
-
// Rename directory
|
|
514
|
-
fs.renameSync(path.join(phasesDir, item.dir), path.join(phasesDir, newDirName));
|
|
515
|
-
renamedDirs.push({ from: item.dir, to: newDirName });
|
|
516
|
-
|
|
517
|
-
// Rename files inside
|
|
518
|
-
const dirFiles = fs.readdirSync(path.join(phasesDir, newDirName));
|
|
519
|
-
for (const f of dirFiles) {
|
|
520
|
-
// Files may have phase prefix like "06.2-01-PLAN.md"
|
|
521
|
-
if (f.includes(oldPhaseId)) {
|
|
522
|
-
const newFileName = f.replace(oldPhaseId, newPhaseId);
|
|
523
|
-
fs.renameSync(
|
|
524
|
-
path.join(phasesDir, newDirName, f),
|
|
525
|
-
path.join(phasesDir, newDirName, newFileName)
|
|
526
|
-
);
|
|
527
|
-
renamedFiles.push({ from: f, to: newFileName });
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
} catch {}
|
|
532
|
-
|
|
533
|
-
} else {
|
|
534
|
-
// Integer removal: renumber all subsequent integer phases
|
|
535
|
-
const removedInt = parseInt(normalized, 10);
|
|
536
|
-
|
|
537
|
-
try {
|
|
538
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
539
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name).sort((a, b) => comparePhaseNum(a, b));
|
|
540
|
-
|
|
541
|
-
// Collect directories that need renumbering (integer phases > removed, and their decimals/letters)
|
|
542
|
-
const toRename = [];
|
|
543
|
-
for (const dir of dirs) {
|
|
544
|
-
const dm = dir.match(/^(\d+)([A-Z])?(?:\.(\d+))?-(.+)$/i);
|
|
545
|
-
if (!dm) continue;
|
|
546
|
-
const dirInt = parseInt(dm[1], 10);
|
|
547
|
-
if (dirInt > removedInt) {
|
|
548
|
-
toRename.push({
|
|
549
|
-
dir,
|
|
550
|
-
oldInt: dirInt,
|
|
551
|
-
letter: dm[2] ? dm[2].toUpperCase() : '',
|
|
552
|
-
decimal: dm[3] ? parseInt(dm[3], 10) : null,
|
|
553
|
-
slug: dm[4],
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
// Sort descending to avoid conflicts
|
|
559
|
-
toRename.sort((a, b) => {
|
|
560
|
-
if (a.oldInt !== b.oldInt) return b.oldInt - a.oldInt;
|
|
561
|
-
return (b.decimal || 0) - (a.decimal || 0);
|
|
562
|
-
});
|
|
563
|
-
|
|
564
|
-
for (const item of toRename) {
|
|
565
|
-
const newInt = item.oldInt - 1;
|
|
566
|
-
const newPadded = String(newInt).padStart(2, '0');
|
|
567
|
-
const oldPadded = String(item.oldInt).padStart(2, '0');
|
|
568
|
-
const letterSuffix = item.letter || '';
|
|
569
|
-
const decimalSuffix = item.decimal !== null ? `.${item.decimal}` : '';
|
|
570
|
-
const oldPrefix = `${oldPadded}${letterSuffix}${decimalSuffix}`;
|
|
571
|
-
const newPrefix = `${newPadded}${letterSuffix}${decimalSuffix}`;
|
|
572
|
-
const newDirName = `${newPrefix}-${item.slug}`;
|
|
573
|
-
|
|
574
|
-
// Rename directory
|
|
575
|
-
fs.renameSync(path.join(phasesDir, item.dir), path.join(phasesDir, newDirName));
|
|
576
|
-
renamedDirs.push({ from: item.dir, to: newDirName });
|
|
577
|
-
|
|
578
|
-
// Rename files inside
|
|
579
|
-
const dirFiles = fs.readdirSync(path.join(phasesDir, newDirName));
|
|
580
|
-
for (const f of dirFiles) {
|
|
581
|
-
if (f.startsWith(oldPrefix)) {
|
|
582
|
-
const newFileName = newPrefix + f.slice(oldPrefix.length);
|
|
583
|
-
fs.renameSync(
|
|
584
|
-
path.join(phasesDir, newDirName, f),
|
|
585
|
-
path.join(phasesDir, newDirName, newFileName)
|
|
586
|
-
);
|
|
587
|
-
renamedFiles.push({ from: f, to: newFileName });
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
} catch {}
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
// Update ROADMAP.md
|
|
595
|
-
let roadmapContent = fs.readFileSync(roadmapPath, 'utf-8');
|
|
596
|
-
|
|
597
|
-
// Remove the target phase section
|
|
598
|
-
const targetEscaped = escapeRegex(targetPhase);
|
|
599
|
-
const sectionPattern = new RegExp(
|
|
600
|
-
`\\n?#{2,4}\\s*Phase\\s+${targetEscaped}\\s*:[\\s\\S]*?(?=\\n#{2,4}\\s+Phase\\s+\\d|$)`,
|
|
601
|
-
'i'
|
|
602
|
-
);
|
|
603
|
-
roadmapContent = roadmapContent.replace(sectionPattern, '');
|
|
604
|
-
|
|
605
|
-
// Remove from phase list (checkbox)
|
|
606
|
-
const checkboxPattern = new RegExp(`\\n?-\\s*\\[[ x]\\]\\s*.*Phase\\s+${targetEscaped}[:\\s][^\\n]*`, 'gi');
|
|
607
|
-
roadmapContent = roadmapContent.replace(checkboxPattern, '');
|
|
608
|
-
|
|
609
|
-
// Remove from progress table
|
|
610
|
-
const tableRowPattern = new RegExp(`\\n?\\|\\s*${targetEscaped}\\.?\\s[^|]*\\|[^\\n]*`, 'gi');
|
|
611
|
-
roadmapContent = roadmapContent.replace(tableRowPattern, '');
|
|
612
|
-
|
|
613
|
-
// Renumber references in ROADMAP for subsequent phases
|
|
614
|
-
if (!isDecimal) {
|
|
615
|
-
const removedInt = parseInt(normalized, 10);
|
|
616
|
-
|
|
617
|
-
// Collect all integer phases > removedInt
|
|
618
|
-
const maxPhase = 99; // reasonable upper bound
|
|
619
|
-
for (let oldNum = maxPhase; oldNum > removedInt; oldNum--) {
|
|
620
|
-
const newNum = oldNum - 1;
|
|
621
|
-
const oldStr = String(oldNum);
|
|
622
|
-
const newStr = String(newNum);
|
|
623
|
-
const oldPad = oldStr.padStart(2, '0');
|
|
624
|
-
const newPad = newStr.padStart(2, '0');
|
|
625
|
-
|
|
626
|
-
// Phase headings: ## Phase 18: or ### Phase 18: → ## Phase 17: or ### Phase 17:
|
|
627
|
-
roadmapContent = roadmapContent.replace(
|
|
628
|
-
new RegExp(`(#{2,4}\\s*Phase\\s+)${oldStr}(\\s*:)`, 'gi'),
|
|
629
|
-
`$1${newStr}$2`
|
|
630
|
-
);
|
|
631
|
-
|
|
632
|
-
// Checkbox items: - [ ] **Phase 18:** → - [ ] **Phase 17:**
|
|
633
|
-
roadmapContent = roadmapContent.replace(
|
|
634
|
-
new RegExp(`(Phase\\s+)${oldStr}([:\\s])`, 'g'),
|
|
635
|
-
`$1${newStr}$2`
|
|
636
|
-
);
|
|
637
|
-
|
|
638
|
-
// Plan references: 18-01 → 17-01
|
|
639
|
-
roadmapContent = roadmapContent.replace(
|
|
640
|
-
new RegExp(`${oldPad}-(\\d{2})`, 'g'),
|
|
641
|
-
`${newPad}-$1`
|
|
642
|
-
);
|
|
643
|
-
|
|
644
|
-
// Table rows: | 18. → | 17.
|
|
645
|
-
roadmapContent = roadmapContent.replace(
|
|
646
|
-
new RegExp(`(\\|\\s*)${oldStr}\\.\\s`, 'g'),
|
|
647
|
-
`$1${newStr}. `
|
|
648
|
-
);
|
|
649
|
-
|
|
650
|
-
// Depends on references
|
|
651
|
-
roadmapContent = roadmapContent.replace(
|
|
652
|
-
new RegExp(`(Depends on:\\*\\*\\s*Phase\\s+)${oldStr}\\b`, 'gi'),
|
|
653
|
-
`$1${newStr}`
|
|
654
|
-
);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
fs.writeFileSync(roadmapPath, roadmapContent, 'utf-8');
|
|
659
|
-
|
|
660
|
-
// Update STATE.md phase count
|
|
661
|
-
const statePath = path.join(cwd, '.planning', 'STATE.md');
|
|
662
|
-
if (fs.existsSync(statePath)) {
|
|
663
|
-
let stateContent = fs.readFileSync(statePath, 'utf-8');
|
|
664
|
-
// Update "Total Phases" field
|
|
665
|
-
const totalPattern = /(\*\*Total Phases:\*\*\s*)(\d+)/;
|
|
666
|
-
const totalMatch = stateContent.match(totalPattern);
|
|
667
|
-
if (totalMatch) {
|
|
668
|
-
const oldTotal = parseInt(totalMatch[2], 10);
|
|
669
|
-
stateContent = stateContent.replace(totalPattern, `$1${oldTotal - 1}`);
|
|
670
|
-
}
|
|
671
|
-
// Update "Phase: X of Y" pattern
|
|
672
|
-
const ofPattern = /(\bof\s+)(\d+)(\s*(?:\(|phases?))/i;
|
|
673
|
-
const ofMatch = stateContent.match(ofPattern);
|
|
674
|
-
if (ofMatch) {
|
|
675
|
-
const oldTotal = parseInt(ofMatch[2], 10);
|
|
676
|
-
stateContent = stateContent.replace(ofPattern, `$1${oldTotal - 1}$3`);
|
|
677
|
-
}
|
|
678
|
-
fs.writeFileSync(statePath, stateContent, 'utf-8');
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
const result = {
|
|
682
|
-
removed: targetPhase,
|
|
683
|
-
directory_deleted: targetDir || null,
|
|
684
|
-
renamed_directories: renamedDirs,
|
|
685
|
-
renamed_files: renamedFiles,
|
|
686
|
-
roadmap_updated: true,
|
|
687
|
-
state_updated: fs.existsSync(statePath),
|
|
688
|
-
};
|
|
689
|
-
|
|
690
|
-
output(result, raw);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
function cmdPhaseComplete(cwd, phaseNum, raw) {
|
|
694
|
-
if (!phaseNum) {
|
|
695
|
-
error('phase number required for phase complete');
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
const roadmapPath = path.join(cwd, '.planning', 'ROADMAP.md');
|
|
699
|
-
const statePath = path.join(cwd, '.planning', 'STATE.md');
|
|
700
|
-
const phasesDir = path.join(cwd, '.planning', 'phases');
|
|
701
|
-
const normalized = normalizePhaseName(phaseNum);
|
|
702
|
-
const today = new Date().toISOString().split('T')[0];
|
|
703
|
-
|
|
704
|
-
// Verify phase info
|
|
705
|
-
const phaseInfo = findPhaseInternal(cwd, phaseNum);
|
|
706
|
-
if (!phaseInfo) {
|
|
707
|
-
error(`Phase ${phaseNum} not found`);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
const planCount = phaseInfo.plans.length;
|
|
711
|
-
const summaryCount = phaseInfo.summaries.length;
|
|
712
|
-
|
|
713
|
-
// Update ROADMAP.md: mark phase complete
|
|
714
|
-
if (fs.existsSync(roadmapPath)) {
|
|
715
|
-
let roadmapContent = fs.readFileSync(roadmapPath, 'utf-8');
|
|
716
|
-
|
|
717
|
-
// Checkbox: - [ ] Phase N: → - [x] Phase N: (...completed DATE)
|
|
718
|
-
const checkboxPattern = new RegExp(
|
|
719
|
-
`(-\\s*\\[)[ ](\\]\\s*.*Phase\\s+${escapeRegex(phaseNum)}[:\\s][^\\n]*)`,
|
|
720
|
-
'i'
|
|
721
|
-
);
|
|
722
|
-
roadmapContent = roadmapContent.replace(checkboxPattern, `$1x$2 (completed ${today})`);
|
|
723
|
-
|
|
724
|
-
// Progress table: update Status to Complete, add date
|
|
725
|
-
const phaseEscaped = escapeRegex(phaseNum);
|
|
726
|
-
const tablePattern = new RegExp(
|
|
727
|
-
`(\\|\\s*${phaseEscaped}\\.?\\s[^|]*\\|[^|]*\\|)\\s*[^|]*(\\|)\\s*[^|]*(\\|)`,
|
|
728
|
-
'i'
|
|
729
|
-
);
|
|
730
|
-
roadmapContent = roadmapContent.replace(
|
|
731
|
-
tablePattern,
|
|
732
|
-
`$1 Complete $2 ${today} $3`
|
|
733
|
-
);
|
|
734
|
-
|
|
735
|
-
// Update plan count in phase section
|
|
736
|
-
const planCountPattern = new RegExp(
|
|
737
|
-
`(#{2,4}\\s*Phase\\s+${phaseEscaped}[\\s\\S]*?\\*\\*Plans:\\*\\*\\s*)[^\\n]+`,
|
|
738
|
-
'i'
|
|
739
|
-
);
|
|
740
|
-
roadmapContent = roadmapContent.replace(
|
|
741
|
-
planCountPattern,
|
|
742
|
-
`$1${summaryCount}/${planCount} plans complete`
|
|
743
|
-
);
|
|
744
|
-
|
|
745
|
-
fs.writeFileSync(roadmapPath, roadmapContent, 'utf-8');
|
|
746
|
-
|
|
747
|
-
// Update REQUIREMENTS.md traceability for this phase's requirements
|
|
748
|
-
const reqPath = path.join(cwd, '.planning', 'REQUIREMENTS.md');
|
|
749
|
-
if (fs.existsSync(reqPath)) {
|
|
750
|
-
// Extract Requirements line from roadmap for this phase
|
|
751
|
-
const reqMatch = roadmapContent.match(
|
|
752
|
-
new RegExp(`Phase\\s+${escapeRegex(phaseNum)}[\\s\\S]*?\\*\\*Requirements:\\*\\*\\s*([^\\n]+)`, 'i')
|
|
753
|
-
);
|
|
754
|
-
|
|
755
|
-
if (reqMatch) {
|
|
756
|
-
const reqIds = reqMatch[1].replace(/[\[\]]/g, '').split(/[,\s]+/).map(r => r.trim()).filter(Boolean);
|
|
757
|
-
let reqContent = fs.readFileSync(reqPath, 'utf-8');
|
|
758
|
-
|
|
759
|
-
for (const reqId of reqIds) {
|
|
760
|
-
const reqEscaped = escapeRegex(reqId);
|
|
761
|
-
// Update checkbox: - [ ] **REQ-ID** → - [x] **REQ-ID**
|
|
762
|
-
reqContent = reqContent.replace(
|
|
763
|
-
new RegExp(`(-\\s*\\[)[ ](\\]\\s*\\*\\*${reqEscaped}\\*\\*)`, 'gi'),
|
|
764
|
-
'$1x$2'
|
|
765
|
-
);
|
|
766
|
-
// Update traceability table: | REQ-ID | Phase N | Pending | → | REQ-ID | Phase N | Complete |
|
|
767
|
-
reqContent = reqContent.replace(
|
|
768
|
-
new RegExp(`(\\|\\s*${reqEscaped}\\s*\\|[^|]+\\|)\\s*Pending\\s*(\\|)`, 'gi'),
|
|
769
|
-
'$1 Complete $2'
|
|
770
|
-
);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
fs.writeFileSync(reqPath, reqContent, 'utf-8');
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
// Find next phase
|
|
779
|
-
let nextPhaseNum = null;
|
|
780
|
-
let nextPhaseName = null;
|
|
781
|
-
let isLastPhase = true;
|
|
782
|
-
|
|
783
|
-
try {
|
|
784
|
-
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
|
|
785
|
-
const dirs = entries.filter(e => e.isDirectory()).map(e => e.name).sort((a, b) => comparePhaseNum(a, b));
|
|
786
|
-
|
|
787
|
-
// Find the next phase directory after current
|
|
788
|
-
for (const dir of dirs) {
|
|
789
|
-
const dm = dir.match(/^(\d+[A-Z]?(?:\.\d+)*)-?(.*)/i);
|
|
790
|
-
if (dm) {
|
|
791
|
-
if (comparePhaseNum(dm[1], phaseNum) > 0) {
|
|
792
|
-
nextPhaseNum = dm[1];
|
|
793
|
-
nextPhaseName = dm[2] || null;
|
|
794
|
-
isLastPhase = false;
|
|
795
|
-
break;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
} catch {}
|
|
800
|
-
|
|
801
|
-
// Update STATE.md
|
|
802
|
-
if (fs.existsSync(statePath)) {
|
|
803
|
-
let stateContent = fs.readFileSync(statePath, 'utf-8');
|
|
804
|
-
|
|
805
|
-
// Update Current Phase
|
|
806
|
-
stateContent = stateContent.replace(
|
|
807
|
-
/(\*\*Current Phase:\*\*\s*).*/,
|
|
808
|
-
`$1${nextPhaseNum || phaseNum}`
|
|
809
|
-
);
|
|
810
|
-
|
|
811
|
-
// Update Current Phase Name
|
|
812
|
-
if (nextPhaseName) {
|
|
813
|
-
stateContent = stateContent.replace(
|
|
814
|
-
/(\*\*Current Phase Name:\*\*\s*).*/,
|
|
815
|
-
`$1${nextPhaseName.replace(/-/g, ' ')}`
|
|
816
|
-
);
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
// Update Status
|
|
820
|
-
stateContent = stateContent.replace(
|
|
821
|
-
/(\*\*Status:\*\*\s*).*/,
|
|
822
|
-
`$1${isLastPhase ? 'Milestone complete' : 'Ready to plan'}`
|
|
823
|
-
);
|
|
824
|
-
|
|
825
|
-
// Update Current Plan
|
|
826
|
-
stateContent = stateContent.replace(
|
|
827
|
-
/(\*\*Current Plan:\*\*\s*).*/,
|
|
828
|
-
`$1Not started`
|
|
829
|
-
);
|
|
830
|
-
|
|
831
|
-
// Update Last Activity
|
|
832
|
-
stateContent = stateContent.replace(
|
|
833
|
-
/(\*\*Last Activity:\*\*\s*).*/,
|
|
834
|
-
`$1${today}`
|
|
835
|
-
);
|
|
836
|
-
|
|
837
|
-
// Update Last Activity Description
|
|
838
|
-
stateContent = stateContent.replace(
|
|
839
|
-
/(\*\*Last Activity Description:\*\*\s*).*/,
|
|
840
|
-
`$1Phase ${phaseNum} complete${nextPhaseNum ? `, transitioned to Phase ${nextPhaseNum}` : ''}`
|
|
841
|
-
);
|
|
842
|
-
|
|
843
|
-
fs.writeFileSync(statePath, stateContent, 'utf-8');
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
const result = {
|
|
847
|
-
completed_phase: phaseNum,
|
|
848
|
-
phase_name: phaseInfo.phase_name,
|
|
849
|
-
plans_executed: `${summaryCount}/${planCount}`,
|
|
850
|
-
next_phase: nextPhaseNum,
|
|
851
|
-
next_phase_name: nextPhaseName,
|
|
852
|
-
is_last_phase: isLastPhase,
|
|
853
|
-
date: today,
|
|
854
|
-
roadmap_updated: fs.existsSync(roadmapPath),
|
|
855
|
-
state_updated: fs.existsSync(statePath),
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
output(result, raw);
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
module.exports = {
|
|
862
|
-
cmdPhasesList,
|
|
863
|
-
cmdPhaseNextDecimal,
|
|
864
|
-
cmdFindPhase,
|
|
865
|
-
cmdPhasePlanIndex,
|
|
866
|
-
cmdPhaseAdd,
|
|
867
|
-
cmdPhaseInsert,
|
|
868
|
-
cmdPhaseRemove,
|
|
869
|
-
cmdPhaseComplete,
|
|
870
|
-
};
|