refactor: swap pkg imports to standalone modules
Some checks failed
Deploy / build (push) Failing after 3s
Security Scan / security (push) Successful in 16s

- pkg/session → go-session (ParseTranscript now returns ParseStats)
- pkg/workspace → go-io/workspace
- pkg/manifest,marketplace,plugin,repos → go-scm (from prior session)

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-06 13:48:07 +00:00
parent 4f1d9a5c3b
commit f7d72c843b
16 changed files with 20 additions and 18 deletions

View file

@ -4,7 +4,7 @@ import (
"fmt"
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go/pkg/config"
"forge.lthn.ai/core/go-config"
)
func addGetCommand(parent *cli.Command) {

View file

@ -9,7 +9,7 @@ import (
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
"forge.lthn.ai/core/go-scm/repos"
)
// checkGitHubSSH checks if SSH keys exist for GitHub access

View file

@ -13,8 +13,8 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/marketplace"
"forge.lthn.ai/core/go/pkg/store"
"forge.lthn.ai/core/go-scm/marketplace"
"forge.lthn.ai/core/go-io/store"
)
// AddModuleCommands registers the 'module' command and all subcommands.

View file

@ -6,7 +6,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go/pkg/marketplace"
"forge.lthn.ai/core/go-scm/marketplace"
)
var (

View file

@ -10,7 +10,7 @@ import (
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
"forge.lthn.ai/core/go-scm/repos"
"github.com/spf13/cobra"
)

View file

@ -9,7 +9,7 @@ import (
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
"forge.lthn.ai/core/go-scm/repos"
"github.com/spf13/cobra"
)

View file

@ -16,7 +16,7 @@ import (
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
"forge.lthn.ai/core/go-scm/repos"
"github.com/spf13/cobra"
)

View file

@ -12,10 +12,10 @@ import (
"strings"
"time"
"forge.lthn.ai/core/go/pkg/cache"
"forge.lthn.ai/core/go-cache"
"forge.lthn.ai/core/go-i18n"
coreio "forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/repos"
"forge.lthn.ai/core/go-scm/repos"
"github.com/spf13/cobra"
)

View file

@ -7,7 +7,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/plugin"
"forge.lthn.ai/core/go-scm/plugin"
)
func addInfoCommand(parent *cli.Command) {

View file

@ -8,7 +8,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/plugin"
"forge.lthn.ai/core/go-scm/plugin"
)
func addInstallCommand(parent *cli.Command) {

View file

@ -6,7 +6,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/plugin"
"forge.lthn.ai/core/go-scm/plugin"
)
func addListCommand(parent *cli.Command) {

View file

@ -4,7 +4,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/plugin"
"forge.lthn.ai/core/go-scm/plugin"
)
func addRemoveCommand(parent *cli.Command) {

View file

@ -8,7 +8,7 @@ import (
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go-i18n"
"forge.lthn.ai/core/go-io"
"forge.lthn.ai/core/go/pkg/plugin"
"forge.lthn.ai/core/go-scm/plugin"
)
var updateAll bool

View file

@ -8,7 +8,7 @@ import (
"strings"
"forge.lthn.ai/core/cli/pkg/cli"
"forge.lthn.ai/core/go/pkg/session"
"forge.lthn.ai/core/go-session"
)
// AddSessionCommands registers the 'session' command group.
@ -104,7 +104,7 @@ func addReplayCommand(parent *cli.Command) {
cli.Print("Parsing %s...", cli.ValueStyle.Render(filepath.Base(path)))
sess, err := session.ParseTranscript(path)
sess, _, err := session.ParseTranscript(path)
if err != nil {
return fmt.Errorf("parse: %w", err)
}

2
go.mod
View file

@ -4,6 +4,8 @@ go 1.26.0
require (
forge.lthn.ai/core/go v0.1.0
forge.lthn.ai/core/go-cache v0.1.0
forge.lthn.ai/core/go-config v0.1.0
forge.lthn.ai/core/go-crypt v0.1.0
)

View file

@ -8,7 +8,7 @@ import (
"forge.lthn.ai/core/go-crypt/crypt/openpgp"
"forge.lthn.ai/core/go/pkg/framework"
"forge.lthn.ai/core/go-log"
"forge.lthn.ai/core/go/pkg/workspace"
"forge.lthn.ai/core/go-io/workspace"
"github.com/spf13/cobra"
)