refactor: flatten commands, extract php/ci to own repos #2

Merged
Snider merged 1 commit from flatten-commands into dev 2026-02-16 14:45:06 +00:00
Member

Summary

  • Extract PHP/Laravel commands to core/php repo (42 files, standalone module)
  • Extract CI/release + SDK commands to core/ci repo (10 files)
  • Remove internal/variants/ build tag system entirely
  • Move all 30 remaining command packages from internal/cmd/ to top-level cmd/
  • Rewrite main.go with direct imports — no more variant selection
  • PHP and CI are now optional via commented import lines in main.go
## Summary - Extract PHP/Laravel commands to `core/php` repo (42 files, standalone module) - Extract CI/release + SDK commands to `core/ci` repo (10 files) - Remove `internal/variants/` build tag system entirely - Move all 30 remaining command packages from `internal/cmd/` to top-level `cmd/` - Rewrite `main.go` with direct imports — no more variant selection - PHP and CI are now optional via commented import lines in main.go
Charon added 2 commits 2026-02-16 14:42:12 +00:00
- Change module from forge.lthn.ai/core/go to forge.lthn.ai/core/cli
- Remove pkg/ directory (now served from core/go)
- Add require + replace for forge.lthn.ai/core/go => ../go
- Update go.work to include ../go workspace module
- Fix all internal/cmd/* imports: pkg/ refs → forge.lthn.ai/core/go/pkg/
- Rename internal/cmd/sdk package to sdkcmd (avoids conflict with pkg/sdk)
- Remove SDK library files from internal/cmd/sdk/ (now in core/go/pkg/sdk/)
- Remove duplicate RAG helper functions from internal/cmd/rag/
- Remove stale cmd/core-ide/ (now in core/ide repo)
- Update IDE variant to remove core-ide import
- Fix test assertion for new module name
- Run go mod tidy to sync dependencies

core/cli is now a pure CLI application importing core/go for packages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove internal/cmd/php/ (now core/php repo)
- Remove internal/cmd/ci/ and internal/cmd/sdk/ (now core/ci repo)
- Remove internal/variants/ build tag system entirely
- Move all 30 remaining command packages from internal/cmd/ to cmd/
- Rewrite main.go with direct imports (no more variant selection)
- Update all cross-references from internal/cmd/ to cmd/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Charon force-pushed flatten-commands from 7bb3488f0e to 47e11e7861 2026-02-16 14:44:44 +00:00 Compare
Snider merged commit 7280168922 into dev 2026-02-16 14:45:06 +00:00
Snider deleted branch flatten-commands 2026-02-16 14:45:06 +00:00
Charon referenced this pull request from a commit 2026-02-16 15:01:30 +00:00
Charon referenced this pull request from a commit 2026-02-16 15:03:43 +00:00
Virgil referenced this pull request from a commit 2026-02-17 22:16:32 +00:00
Sign in to join this conversation.
No description provided.