From a09ca4f4089e9bcdafa9f8c71ed2866d49b3b3b1 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Mar 2026 23:49:08 +0000 Subject: [PATCH] chore: migrate to dappco.re vanity import path Module path: forge.lthn.ai/core/go-process -> dappco.re/go/core/process Import path updates: - forge.lthn.ai/core/go-log -> dappco.re/go/core/log - forge.lthn.ai/core/go-io -> dappco.re/go/core/io - forge.lthn.ai/core/go-ws -> dappco.re/go/core/ws - forge.lthn.ai/core/go-process (self) -> dappco.re/go/core/process - forge.lthn.ai/core/api left as-is (not yet migrated) Local replace directives added until vanity URL server is configured. Co-Authored-By: Claude Opus 4.6 (1M context) --- CLAUDE.md | 8 ++++---- daemon.go | 2 +- exec/exec.go | 2 +- exec/exec_test.go | 2 +- go.mod | 19 ++++++++++++++----- go.sum | 8 ++------ health.go | 2 +- pidfile.go | 4 ++-- pkg/api/provider.go | 4 ++-- pkg/api/provider_test.go | 4 ++-- process.go | 2 +- process_global.go | 2 +- program.go | 2 +- program_test.go | 2 +- registry.go | 4 ++-- runner.go | 2 +- service.go | 2 +- 17 files changed, 38 insertions(+), 33 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 75db9f9..5be5192 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -`forge.lthn.ai/core/go-process` is the process management framework for CoreGO. It handles process execution (spawn, monitor, stream, kill), daemon lifecycle (PID files, health checks, graceful shutdown, registry), and pipeline orchestration (parallel, sequential, or DAG-ordered multi-process runs). All process events broadcast via Core IPC actions. +`dappco.re/go/core/process` is the process management framework for CoreGO. It handles process execution (spawn, monitor, stream, kill), daemon lifecycle (PID files, health checks, graceful shutdown, registry), and pipeline orchestration (parallel, sequential, or DAG-ordered multi-process runs). All process events broadcast via Core IPC actions. ## Commands @@ -56,9 +56,9 @@ Builder-pattern wrapper around `os/exec` with structured logging via a pluggable ## Dependencies -- `forge.lthn.ai/core/go/pkg/core` — Core DI framework, IPC actions, `ServiceRuntime` -- `forge.lthn.ai/core/go-log` — Structured error constructor (`coreerr.E()`) -- `forge.lthn.ai/core/go-io` — Filesystem abstraction (`coreio.Local`) used by PIDFile and Registry +- `dappco.re/go/core` — Core DI framework, IPC actions, `ServiceRuntime` +- `dappco.re/go/core/log` — Structured error constructor (`coreerr.E()`) +- `dappco.re/go/core/io` — Filesystem abstraction (`coreio.Local`) used by PIDFile and Registry - `github.com/stretchr/testify` — test assertions (require/assert) ## Testing diff --git a/daemon.go b/daemon.go index f0565ac..af3e044 100644 --- a/daemon.go +++ b/daemon.go @@ -7,7 +7,7 @@ import ( "sync" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // DaemonOptions configures daemon mode execution. diff --git a/exec/exec.go b/exec/exec.go index 9f2b36a..6a2c49e 100644 --- a/exec/exec.go +++ b/exec/exec.go @@ -9,7 +9,7 @@ import ( "os/exec" "strings" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Options configuration for command execution diff --git a/exec/exec_test.go b/exec/exec_test.go index a636c51..6e2544b 100644 --- a/exec/exec_test.go +++ b/exec/exec_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "forge.lthn.ai/core/go-process/exec" + "dappco.re/go/core/process/exec" ) // mockLogger captures log calls for testing diff --git a/go.mod b/go.mod index 86252e0..766e200 100644 --- a/go.mod +++ b/go.mod @@ -1,18 +1,20 @@ -module forge.lthn.ai/core/go-process +module dappco.re/go/core/process go 1.26.0 require ( - forge.lthn.ai/core/api v0.1.5 dappco.re/go/core v0.4.7 - forge.lthn.ai/core/go-io v0.1.7 - forge.lthn.ai/core/go-log v0.0.4 - forge.lthn.ai/core/go-ws v0.2.4 + dappco.re/go/core/io v0.1.7 + dappco.re/go/core/log v0.0.4 + dappco.re/go/core/ws v0.2.4 + forge.lthn.ai/core/api v0.1.5 github.com/gin-gonic/gin v1.12.0 github.com/stretchr/testify v1.11.1 ) require ( + forge.lthn.ai/core/go-io v0.1.5 // indirect + forge.lthn.ai/core/go-log v0.0.4 // indirect github.com/99designs/gqlgen v0.17.88 // indirect github.com/KyleBanks/depth v1.2.1 // indirect github.com/agnivade/levenshtein v1.2.1 // indirect @@ -106,3 +108,10 @@ require ( google.golang.org/protobuf v1.36.11 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) + +replace ( + dappco.re/go/core => ../go + dappco.re/go/core/io => ../go-io + dappco.re/go/core/log => ../go-log + dappco.re/go/core/ws => ../go-ws +) diff --git a/go.sum b/go.sum index c8c0af1..dab2b48 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,9 @@ forge.lthn.ai/core/api v0.1.5 h1:NwZrcOyBjaiz5/cn0n0tnlMUodi8Or6FHMx59C7Kv2o= forge.lthn.ai/core/api v0.1.5/go.mod h1:PBnaWyOVXSOGy+0x2XAPUFMYJxQ2CNhppia/D06ZPII= -forge.lthn.ai/core/go v0.3.3 h1:kYYZ2nRYy0/Be3cyuLJspRjLqTMxpckVyhb/7Sw2gd0= -forge.lthn.ai/core/go v0.3.3/go.mod h1:Cp4ac25pghvO2iqOu59t1GyngTKVOzKB5/VPdhRi9CQ= -forge.lthn.ai/core/go-io v0.1.7 h1:Tdb6sqh+zz1lsGJaNX9RFWM6MJ/RhSAyxfulLXrJsbk= -forge.lthn.ai/core/go-io v0.1.7/go.mod h1:8lRLFk4Dnp5cR/Cyzh9WclD5566TbpdRgwcH7UZLWn4= +forge.lthn.ai/core/go-io v0.1.5 h1:+XJ1YhaGGFLGtcNbPtVlndTjk+pO0Ydi2hRDj5/cHOM= +forge.lthn.ai/core/go-io v0.1.5/go.mod h1:FRtXSsi8W+U9vewCU+LBAqqbIj3wjXA4dBdSv3SAtWI= forge.lthn.ai/core/go-log v0.0.4 h1:KTuCEPgFmuM8KJfnyQ8vPOU1Jg654W74h8IJvfQMfv0= forge.lthn.ai/core/go-log v0.0.4/go.mod h1:r14MXKOD3LF/sI8XUJQhRk/SZHBE7jAFVuCfgkXoZPw= -forge.lthn.ai/core/go-ws v0.2.4 h1:7tzEHyTqIUEKpgvRtdf58OvYO/981lb/8tO/dQQOEd4= -forge.lthn.ai/core/go-ws v0.2.4/go.mod h1:C3riJyLLcV6QhLvYlq3P/XkGTsN598qQeGBoLdoHBU4= github.com/99designs/gqlgen v0.17.88 h1:neMQDgehMwT1vYIOx/w5ZYPUU/iMNAJzRO44I5Intoc= github.com/99designs/gqlgen v0.17.88/go.mod h1:qeqYFEgOeSKqWedOjogPizimp2iu4E23bdPvl4jTYic= github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc= diff --git a/health.go b/health.go index 98ecdd3..fd6adfe 100644 --- a/health.go +++ b/health.go @@ -8,7 +8,7 @@ import ( "sync" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // HealthCheck is a function that returns nil if healthy. diff --git a/pidfile.go b/pidfile.go index 8f62843..909490d 100644 --- a/pidfile.go +++ b/pidfile.go @@ -9,8 +9,8 @@ import ( "sync" "syscall" - coreio "forge.lthn.ai/core/go-io" - coreerr "forge.lthn.ai/core/go-log" + coreio "dappco.re/go/core/io" + coreerr "dappco.re/go/core/log" ) // PIDFile manages a process ID file for single-instance enforcement. diff --git a/pkg/api/provider.go b/pkg/api/provider.go index e7f35f2..622cfa3 100644 --- a/pkg/api/provider.go +++ b/pkg/api/provider.go @@ -12,8 +12,8 @@ import ( "forge.lthn.ai/core/api" "forge.lthn.ai/core/api/pkg/provider" - process "forge.lthn.ai/core/go-process" - "forge.lthn.ai/core/go-ws" + process "dappco.re/go/core/process" + "dappco.re/go/core/ws" "github.com/gin-gonic/gin" ) diff --git a/pkg/api/provider_test.go b/pkg/api/provider_test.go index d4c9fe0..a068943 100644 --- a/pkg/api/provider_test.go +++ b/pkg/api/provider_test.go @@ -9,8 +9,8 @@ import ( "testing" goapi "forge.lthn.ai/core/api" - process "forge.lthn.ai/core/go-process" - processapi "forge.lthn.ai/core/go-process/pkg/api" + process "dappco.re/go/core/process" + processapi "dappco.re/go/core/process/pkg/api" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/process.go b/process.go index 6f9e245..9a2ad0b 100644 --- a/process.go +++ b/process.go @@ -10,7 +10,7 @@ import ( "syscall" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Process represents a managed external process. diff --git a/process_global.go b/process_global.go index 392f35a..041fe4d 100644 --- a/process_global.go +++ b/process_global.go @@ -6,7 +6,7 @@ import ( "sync/atomic" "dappco.re/go/core" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Global default service (follows i18n pattern). diff --git a/program.go b/program.go index 1370b2f..5160392 100644 --- a/program.go +++ b/program.go @@ -7,7 +7,7 @@ import ( "os/exec" "strings" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // ErrProgramNotFound is returned when Find cannot locate the binary on PATH. diff --git a/program_test.go b/program_test.go index 0687906..970e2de 100644 --- a/program_test.go +++ b/program_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - process "forge.lthn.ai/core/go-process" + process "dappco.re/go/core/process" ) func testCtx(t *testing.T) context.Context { diff --git a/registry.go b/registry.go index 347035f..ed7c8eb 100644 --- a/registry.go +++ b/registry.go @@ -8,8 +8,8 @@ import ( "syscall" "time" - coreio "forge.lthn.ai/core/go-io" - coreerr "forge.lthn.ai/core/go-log" + coreio "dappco.re/go/core/io" + coreerr "dappco.re/go/core/log" ) // DaemonEntry records a running daemon in the registry. diff --git a/runner.go b/runner.go index f587dae..017ec38 100644 --- a/runner.go +++ b/runner.go @@ -5,7 +5,7 @@ import ( "sync" "time" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Runner orchestrates multiple processes with dependencies. diff --git a/service.go b/service.go index 180fd3a..5fd1339 100644 --- a/service.go +++ b/service.go @@ -13,7 +13,7 @@ import ( "time" "dappco.re/go/core" - coreerr "forge.lthn.ai/core/go-log" + coreerr "dappco.re/go/core/log" ) // Default buffer size for process output (1MB).