Skip to content

refactor: flatten v1/ to root, deduplicate docs#26

Merged
robotlearning123 merged 2 commits intomainfrom
refactor/flatten-v1
Feb 28, 2026
Merged

refactor: flatten v1/ to root, deduplicate docs#26
robotlearning123 merged 2 commits intomainfrom
refactor/flatten-v1

Conversation

@robotlearning123
Copy link
Member

Summary

  • Flatten v1/ nesting: Move v1/src/src/, v1/package.json → root (no v2 exists, just path noise)
  • Deduplicate documentation: Replace duplicate API table and project structure in README/CONTRIBUTING with links to authoritative sources (docs/API.md, ARCHITECTURE.md)
  • Separate site assets: Move GitHub Pages files (index.html, site.css) to docs/site/, keeping markdown guides in docs/
  • Fix stale references: Update all v1/ paths in CI, pre-commit hook, CLAUDE.md, docs, source code (types.ts, worktree-pool.ts), and launch config
  • Harden build: Add HTML copy step to npm run build (was manual-only)

Test plan

  • npx tsc --noEmit — zero errors
  • 216/216 tests pass (node --import tsx --test src/__tests__/*.test.ts)
  • Pre-commit hook passes (runs tsc + tests)
  • grep -r "v1/" CLAUDE.md README.md CONTRIBUTING.md .githooks/ .github/ docs/ src/ — empty
  • ls v1/ — no such directory
  • ls docs/site/index.html — exists
  • CI green on Node 20 + 22

🤖 Generated with Claude Code

Test and others added 2 commits February 28, 2026 15:29
- Move v1/src/ → src/, v1/package.json → root (no v2 exists)
- Fix prepare script: remove `cd ..` (now at root)
- Move docs/index.html + site.css → docs/site/
- Update pages.yml artifact path to docs/site
- Remove all v1/ references from CI, hooks, and documentation
- Replace duplicate API table and project structure in README
  with links to docs/API.md and ARCHITECTURE.md
- Replace duplicate project structure in CONTRIBUTING.md
  with link to ARCHITECTURE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Found by post-restructure code review:
- types.ts: update defaultAutoFlywheelConfig targetFiles to actual filenames
- worktree-pool.ts: remove obsolete v1/node_modules exclusion from git clean
- launch.json: update runtime path from v1/dist/ to dist/
- package.json: add HTML copy to build script (was manual-only)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@robotlearning123 robotlearning123 merged commit 1f4beae into main Feb 28, 2026
2 checks passed
@robotlearning123 robotlearning123 deleted the refactor/flatten-v1 branch February 28, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant