refactor: update import path from go-config to core/config
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
1cc8eab3c8
commit
7d1d5ce2df
10 changed files with 15 additions and 17 deletions
|
|
@ -90,7 +90,7 @@ This module uses a Go workspace (`~/Code/go.work`) with `replace` directives for
|
|||
- `../go` → `forge.lthn.ai/core/go`
|
||||
- `../gui` → `forge.lthn.ai/core/gui`
|
||||
- `../mcp` → `forge.lthn.ai/core/mcp`
|
||||
- `../go-config` → `forge.lthn.ai/core/go-config`
|
||||
- `../config` → `forge.lthn.ai/core/config`
|
||||
- `../go-ws` → `forge.lthn.ai/core/go-ws`
|
||||
|
||||
## Conventions
|
||||
|
|
|
|||
1
dist/CHECKSUMS.txt
vendored
Normal file
1
dist/CHECKSUMS.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
0947c16e5620c4cbf193c5047bc0dce699a83cc050290c8ec2a788e5eeef6c07 core-ide_darwin_arm64.tar.gz
|
||||
BIN
dist/core-ide_darwin_arm64.tar.gz
vendored
Normal file
BIN
dist/core-ide_darwin_arm64.tar.gz
vendored
Normal file
Binary file not shown.
BIN
dist/darwin_arm64/core-ide
vendored
Executable file
BIN
dist/darwin_arm64/core-ide
vendored
Executable file
Binary file not shown.
|
|
@ -17,7 +17,7 @@ rm webview_svc.go # Replaced by core/gui/pkg/display + webview
|
|||
rm brain_mcp.go # Replaced by core/mcp/pkg/mcp/brain
|
||||
rm claude_bridge.go # Replaced by core/mcp/pkg/mcp/ide Bridge
|
||||
rm headless_mcp.go # Not needed — core/mcp runs in-process
|
||||
rm headless.go # go-config gui.enabled flag; jobrunner belongs in core/agent
|
||||
rm headless.go # config gui.enabled flag; jobrunner belongs in core/agent
|
||||
rm greetservice.go # Scaffold placeholder
|
||||
```
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ import (
|
|||
"runtime"
|
||||
"syscall"
|
||||
|
||||
"forge.lthn.ai/core/go-config"
|
||||
"forge.lthn.ai/core/config"
|
||||
"forge.lthn.ai/core/go-ws"
|
||||
"forge.lthn.ai/core/go/pkg/core"
|
||||
guiMCP "forge.lthn.ai/core/gui/pkg/mcp"
|
||||
|
|
@ -271,7 +271,7 @@ go 1.26.0
|
|||
|
||||
require (
|
||||
forge.lthn.ai/core/go v0.2.2
|
||||
forge.lthn.ai/core/go-config v0.1.2
|
||||
forge.lthn.ai/core/config v0.1.2
|
||||
forge.lthn.ai/core/go-ws v0.1.3
|
||||
forge.lthn.ai/core/gui v0.1.0
|
||||
forge.lthn.ai/core/mcp v0.1.0
|
||||
|
|
@ -400,7 +400,7 @@ This module uses a Go workspace (`~/Code/go.work`) with `replace` directives for
|
|||
- `../go` → `forge.lthn.ai/core/go`
|
||||
- `../gui` → `forge.lthn.ai/core/gui`
|
||||
- `../mcp` → `forge.lthn.ai/core/mcp`
|
||||
- `../go-config` → `forge.lthn.ai/core/go-config`
|
||||
- `../config` → `forge.lthn.ai/core/config`
|
||||
- `../go-ws` → `forge.lthn.ai/core/go-ws`
|
||||
|
||||
## Conventions
|
||||
|
|
|
|||
|
|
@ -954,7 +954,7 @@ import (
|
|||
|
||||
"forge.lthn.ai/core/go-api"
|
||||
"forge.lthn.ai/core/go-api/pkg/provider"
|
||||
"forge.lthn.ai/core/go-config"
|
||||
"forge.lthn.ai/core/config"
|
||||
process "forge.lthn.ai/core/go-process"
|
||||
processapi "forge.lthn.ai/core/go-process/pkg/api"
|
||||
"forge.lthn.ai/core/go-ws"
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ Replace all hand-rolled services with imports from the existing ecosystem. The I
|
|||
│ │ └─ transports: stdio, TCP, Unix │ │
|
||||
│ └──────────────────────────────────────┘ │
|
||||
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
||||
│ │go-config │ │go-process│ │ go-log │ │
|
||||
│ │ config │ │go-process│ │ go-log │ │
|
||||
│ └──────────┘ └──────────┘ └──────────┘ │
|
||||
└─────────────────────────────────────────────┘
|
||||
│
|
||||
|
|
@ -56,7 +56,7 @@ Replace all hand-rolled services with imports from the existing ecosystem. The I
|
|||
- **Tray panel** is a 380x480 frameless Angular window attached to the tray icon. Renders a control pane (MCP status, connected agents, brain stats).
|
||||
- **Windows** are disposable views — closing a window does not terminate the app.
|
||||
- **macOS**: Accessory app (no Dock icon). Template tray icon.
|
||||
- **go-config** reads `.core/config.yaml`. If `gui.enabled: false` (or no display), Wails is skipped entirely. Core still runs all services — MCP server, brain, etc.
|
||||
- **config** reads `.core/config.yaml`. If `gui.enabled: false` (or no display), Wails is skipped entirely. Core still runs all services — MCP server, brain, etc.
|
||||
|
||||
## Service Wiring
|
||||
|
||||
|
|
@ -170,14 +170,14 @@ The `core/gui/pkg/display.Service` bridges Core IPC to the Wails platform — wi
|
|||
| `brain_mcp.go` | `core/mcp/pkg/mcp/brain` |
|
||||
| `claude_bridge.go` | `core/mcp/pkg/mcp/ide` Bridge |
|
||||
| `headless_mcp.go` | Not needed — core/mcp runs in-process |
|
||||
| `headless.go` | go-config `gui.enabled` flag. Jobrunner/poller extracted to core/agent (not in scope). |
|
||||
| `headless.go` | config `gui.enabled` flag. Jobrunner/poller extracted to core/agent (not in scope). |
|
||||
| `greetservice.go` | Scaffold placeholder, not needed |
|
||||
|
||||
### Rewrite (1 file)
|
||||
|
||||
| File | Changes |
|
||||
|------|---------|
|
||||
| `main.go` | Thin shell: go-config, core.New with services, Wails systray, `--mcp` flag for stdio |
|
||||
| `main.go` | Thin shell: config, core.New with services, Wails systray, `--mcp` flag for stdio |
|
||||
|
||||
### Keep (unchanged)
|
||||
|
||||
|
|
@ -198,7 +198,7 @@ The `core/gui/pkg/display.Service` bridges Core IPC to the Wails platform — wi
|
|||
- `forge.lthn.ai/core/gui` — display service, 74 MCP tools
|
||||
- `forge.lthn.ai/core/go-io` — sandboxed filesystem
|
||||
- `forge.lthn.ai/core/go-log` — structured logging + errors
|
||||
- `forge.lthn.ai/core/go-config` — configuration
|
||||
- `forge.lthn.ai/core/config` — configuration
|
||||
|
||||
### Remove (indirect cleanup)
|
||||
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -5,7 +5,7 @@ go 1.26.0
|
|||
require (
|
||||
forge.lthn.ai/core/go v0.2.2
|
||||
forge.lthn.ai/core/api v0.1.0
|
||||
forge.lthn.ai/core/go-config v0.1.2
|
||||
forge.lthn.ai/core/config v0.1.2
|
||||
forge.lthn.ai/core/go-process v0.1.0
|
||||
forge.lthn.ai/core/go-ws v0.1.3
|
||||
forge.lthn.ai/core/gui v0.0.0
|
||||
|
|
|
|||
5
go.sum
5
go.sum
|
|
@ -4,10 +4,7 @@ forge.lthn.ai/core/go v0.2.2 h1:JCWaFfiG+agb0f7b5DO1g+h40x6nb4UydxJ7D+oZk5k=
|
|||
forge.lthn.ai/core/go v0.2.2/go.mod h1:gE6c8h+PJ2287qNhVUJ5SOe1kopEwHEquvinstpuyJc=
|
||||
forge.lthn.ai/core/go-ai v0.1.5 h1:iOKW5Wv4Pquc5beDw0QqaKspq3pUvqXxT8IEdCT13Go=
|
||||
forge.lthn.ai/core/go-ai v0.1.5/go.mod h1:h1gcfi7l0m+Z9lSOwzcqzSeqRIR/6Qc2vqezBo74Rl0=
|
||||
forge.lthn.ai/core/go-api v0.1.0 h1:j4cn/cpDkSecN2TNcksmqtFKlA9R61VSkbIIwSiujaU=
|
||||
forge.lthn.ai/core/go-api v0.1.0/go.mod h1:ECZtO2R6ZYF80tBBedhmkEUw6Oqjs5jM34+XpdeZUEw=
|
||||
forge.lthn.ai/core/go-config v0.1.2 h1:W2Rf7PhVeugTjHZ9XbEr1yMCYY6r1r5fyUmQcM2C9xY=
|
||||
forge.lthn.ai/core/go-config v0.1.2/go.mod h1:6jZZ0XQaSSiWiZjiNfibMEfSPehsBGwfToh//QGhN7E=
|
||||
forge.lthn.ai/core/go-api v0.1.2 h1:zGmU2CqCQ0n0cntNvprdc7HoucD4E631wBdZw+taK1w=
|
||||
forge.lthn.ai/core/go-inference v0.1.0 h1:pO7etYgqV8LMKFdpW8/2RWncuECZJCIcf8nnezeZ5R4=
|
||||
forge.lthn.ai/core/go-inference v0.1.0/go.mod h1:jfWz+IJX55wAH98+ic6FEqqGB6/P31CHlg7VY7pxREw=
|
||||
forge.lthn.ai/core/go-io v0.0.5 h1:oSyngKTkB1gR5fEWYKXftTg9FxwnpddSiCq2dlwfImE=
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -13,7 +13,7 @@ import (
|
|||
|
||||
"forge.lthn.ai/core/api"
|
||||
"forge.lthn.ai/core/api/pkg/provider"
|
||||
"forge.lthn.ai/core/go-config"
|
||||
"forge.lthn.ai/core/config"
|
||||
process "forge.lthn.ai/core/go-process"
|
||||
processapi "forge.lthn.ai/core/go-process/pkg/api"
|
||||
"forge.lthn.ai/core/go-ws"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue