refactor: flatten commands, extract php/ci to own repos (#2)
Some checks are pending
Security Scan / Go Vulnerability Check (push) Waiting to run
Security Scan / Secret Detection (push) Waiting to run
Security Scan / Dependency & Config Scan (push) Waiting to run

## 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

Co-authored-by: Claude <developers@lethean.io>
Reviewed-on: #2
Co-authored-by: Charon <charon@lthn.ai>
Co-committed-by: Charon <charon@lthn.ai>
This commit is contained in:
Charon 2026-02-16 14:45:06 +00:00 committed by Snider
parent 197ee400b1
commit 7280168922
294 changed files with 45 additions and 14365 deletions

View file

@ -13,7 +13,7 @@
package ai
import (
ragcmd "forge.lthn.ai/core/cli/internal/cmd/rag"
ragcmd "forge.lthn.ai/core/cli/cmd/rag"
"forge.lthn.ai/core/go/pkg/cli"
"forge.lthn.ai/core/go/pkg/i18n"
)

View file

@ -5,7 +5,7 @@ import (
"path/filepath"
"strings"
"forge.lthn.ai/core/cli/internal/cmd/workspace"
"forge.lthn.ai/core/cli/cmd/workspace"
"forge.lthn.ai/core/go/pkg/cli"
"forge.lthn.ai/core/go/pkg/i18n"
"forge.lthn.ai/core/go/pkg/io"

View file

@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"
"forge.lthn.ai/core/cli/internal/cmd/workspace"
"forge.lthn.ai/core/cli/cmd/workspace"
"forge.lthn.ai/core/go/pkg/cli"
"forge.lthn.ai/core/go/pkg/i18n"
"forge.lthn.ai/core/go/pkg/io"

View file

@ -13,7 +13,7 @@
package gitcmd
import (
"forge.lthn.ai/core/cli/internal/cmd/dev"
"forge.lthn.ai/core/cli/cmd/dev"
"forge.lthn.ai/core/go/pkg/cli"
"forge.lthn.ai/core/go/pkg/i18n"
)

View file

@ -10,7 +10,7 @@ import (
"strings"
"time"
"forge.lthn.ai/core/cli/internal/cmd/qa"
"forge.lthn.ai/core/cli/cmd/qa"
"forge.lthn.ai/core/go/pkg/cli"
"forge.lthn.ai/core/go/pkg/i18n"
)

Some files were not shown because too many files have changed in this diff Show more