diff --git a/api_test.go b/api_test.go index 96f1337..f4bd8b5 100644 --- a/api_test.go +++ b/api_test.go @@ -13,7 +13,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Test helpers ──────────────────────────────────────────────────────── diff --git a/authentik_integration_test.go b/authentik_integration_test.go index a5e3631..1aae05a 100644 --- a/authentik_integration_test.go +++ b/authentik_integration_test.go @@ -13,7 +13,7 @@ import ( "strings" "testing" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" "github.com/gin-gonic/gin" ) diff --git a/authentik_test.go b/authentik_test.go index cae46c9..ab6c4d8 100644 --- a/authentik_test.go +++ b/authentik_test.go @@ -10,7 +10,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── AuthentikUser ────────────────────────────────────────────────────── diff --git a/authz_test.go b/authz_test.go index b823cab..4fa0c89 100644 --- a/authz_test.go +++ b/authz_test.go @@ -11,7 +11,7 @@ import ( "github.com/casbin/casbin/v2/model" "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // casbinModel is a minimal RESTful ACL model for testing authorisation. diff --git a/bridge_test.go b/bridge_test.go index 433b55d..3c5c6c4 100644 --- a/bridge_test.go +++ b/bridge_test.go @@ -10,7 +10,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── ToolBridge ───────────────────────────────────────────────────────── diff --git a/brotli_test.go b/brotli_test.go index de170d1..309d4a1 100644 --- a/brotli_test.go +++ b/brotli_test.go @@ -9,7 +9,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── WithBrotli ──────────────────────────────────────────────────────── diff --git a/cache_test.go b/cache_test.go index fdc3605..58820c3 100644 --- a/cache_test.go +++ b/cache_test.go @@ -14,7 +14,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // cacheCounterGroup registers routes that increment a counter on each call, diff --git a/cmd/api/cmd_sdk.go b/cmd/api/cmd_sdk.go index 6a5f8b9..be5c9ee 100644 --- a/cmd/api/cmd_sdk.go +++ b/cmd/api/cmd_sdk.go @@ -10,10 +10,10 @@ import ( "forge.lthn.ai/core/cli/pkg/cli" - 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" - goapi "forge.lthn.ai/core/api" + goapi "dappco.re/go/core/api" ) func addSDKCommand(parent *cli.Command) { diff --git a/cmd/api/cmd_spec.go b/cmd/api/cmd_spec.go index 99639d0..7ad145e 100644 --- a/cmd/api/cmd_spec.go +++ b/cmd/api/cmd_spec.go @@ -8,7 +8,7 @@ import ( "forge.lthn.ai/core/cli/pkg/cli" - goapi "forge.lthn.ai/core/api" + goapi "dappco.re/go/core/api" ) func addSpecCommand(parent *cli.Command) { diff --git a/codegen.go b/codegen.go index 39b203b..b8cb12e 100644 --- a/codegen.go +++ b/codegen.go @@ -12,8 +12,8 @@ import ( "path/filepath" "slices" - 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" ) // Supported SDK target languages. diff --git a/codegen_test.go b/codegen_test.go index a9b7764..dcb058d 100644 --- a/codegen_test.go +++ b/codegen_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── SDKGenerator tests ───────────────────────────────────────────────────── diff --git a/export.go b/export.go index d4e3614..f514ed9 100644 --- a/export.go +++ b/export.go @@ -10,8 +10,8 @@ import ( "gopkg.in/yaml.v3" - 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" ) // ExportSpec generates the OpenAPI spec and writes it to w. diff --git a/export_test.go b/export_test.go index 952145e..1a26e33 100644 --- a/export_test.go +++ b/export_test.go @@ -14,7 +14,7 @@ import ( "github.com/gin-gonic/gin" "gopkg.in/yaml.v3" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── ExportSpec tests ───────────────────────────────────────────────────── diff --git a/expvar_test.go b/expvar_test.go index 54338db..89c8793 100644 --- a/expvar_test.go +++ b/expvar_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Expvar runtime metrics endpoint ───────────────────────────────── diff --git a/go.mod b/go.mod index f44d91c..50f8b1d 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ -module forge.lthn.ai/core/api +module dappco.re/go/core/api go 1.26.0 require ( + dappco.re/go/core/io v0.1.7 + dappco.re/go/core/log v0.0.4 forge.lthn.ai/core/cli v0.3.7 - forge.lthn.ai/core/go-io v0.1.7 - forge.lthn.ai/core/go-log v0.0.4 github.com/99designs/gqlgen v0.17.88 github.com/andybalholm/brotli v1.2.0 github.com/casbin/casbin/v2 v2.135.0 @@ -38,9 +38,10 @@ require ( ) require ( - forge.lthn.ai/core/go v0.3.3 // indirect + forge.lthn.ai/core/go v0.3.2 // indirect forge.lthn.ai/core/go-i18n v0.1.7 // indirect forge.lthn.ai/core/go-inference v0.1.7 // indirect + forge.lthn.ai/core/go-log v0.0.4 // indirect github.com/KyleBanks/depth v1.2.1 // indirect github.com/agnivade/levenshtein v1.2.1 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect @@ -127,3 +128,10 @@ require ( golang.org/x/tools v0.43.0 // indirect google.golang.org/protobuf v1.36.11 // indirect ) + +replace ( + dappco.re/go/core => ../go + dappco.re/go/core/i18n => ../go-i18n + dappco.re/go/core/io => ../go-io + dappco.re/go/core/log => ../go-log +) diff --git a/go.sum b/go.sum index 00d022a..1adac8d 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,11 @@ forge.lthn.ai/core/cli v0.3.7 h1:1GrbaGg0wDGHr6+klSbbGyN/9sSbHvFbdySJznymhwg= forge.lthn.ai/core/cli v0.3.7/go.mod h1:DBUppJkA9P45ZFGgI2B8VXw1rAZxamHoI/KG7fRvTNs= -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 v0.3.2 h1:VB9pW6ggqBhe438cjfE2iSI5Lg+62MmRbaOFglZM+nQ= +forge.lthn.ai/core/go v0.3.2/go.mod h1:f7/zb3Labn4ARfwTq5Bi2AFHY+uxyPHozO+hLb54eFo= forge.lthn.ai/core/go-i18n v0.1.7 h1:aHkAoc3W8fw3RPNvw/UszQbjyFWXHszzbZgty3SwyAA= forge.lthn.ai/core/go-i18n v0.1.7/go.mod h1:0VDjwtY99NSj2iqwrI09h5GUsJeM9s48MLkr+/Dn4G8= forge.lthn.ai/core/go-inference v0.1.7 h1:9Dy6v03jX5ZRH3n5iTzlYyGtucuBIgSe+S7GWvBzx9Q= forge.lthn.ai/core/go-inference v0.1.7/go.mod h1:jfWz+IJX55wAH98+ic6FEqqGB6/P31CHlg7VY7pxREw= -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-log v0.0.4 h1:KTuCEPgFmuM8KJfnyQ8vPOU1Jg654W74h8IJvfQMfv0= forge.lthn.ai/core/go-log v0.0.4/go.mod h1:r14MXKOD3LF/sI8XUJQhRk/SZHBE7jAFVuCfgkXoZPw= github.com/99designs/gqlgen v0.17.88 h1:neMQDgehMwT1vYIOx/w5ZYPUU/iMNAJzRO44I5Intoc= diff --git a/graphql_test.go b/graphql_test.go index 0b18f4c..e201858 100644 --- a/graphql_test.go +++ b/graphql_test.go @@ -15,7 +15,7 @@ import ( "github.com/vektah/gqlparser/v2" "github.com/vektah/gqlparser/v2/ast" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // newTestSchema creates a minimal ExecutableSchema that responds to { name } diff --git a/group_test.go b/group_test.go index c751070..1034d47 100644 --- a/group_test.go +++ b/group_test.go @@ -9,7 +9,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Stub implementations ──────────────────────────────────────────────── diff --git a/gzip_test.go b/gzip_test.go index 3cae670..386617f 100644 --- a/gzip_test.go +++ b/gzip_test.go @@ -10,7 +10,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── WithGzip ────────────────────────────────────────────────────────── diff --git a/httpsign_test.go b/httpsign_test.go index 7ca24b2..2606dda 100644 --- a/httpsign_test.go +++ b/httpsign_test.go @@ -17,7 +17,7 @@ import ( "github.com/gin-contrib/httpsign/crypto" "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) const testSecretKey = "test-secret-key-for-hmac-sha256" diff --git a/i18n_test.go b/i18n_test.go index d2b6db0..66189e7 100644 --- a/i18n_test.go +++ b/i18n_test.go @@ -10,7 +10,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Helpers ───────────────────────────────────────────────────────────── diff --git a/location_test.go b/location_test.go index 2364d38..db292d7 100644 --- a/location_test.go +++ b/location_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-contrib/location/v2" "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Helpers ───────────────────────────────────────────────────────────── diff --git a/middleware_test.go b/middleware_test.go index bcd1561..a44da53 100644 --- a/middleware_test.go +++ b/middleware_test.go @@ -10,7 +10,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Helpers ───────────────────────────────────────────────────────────── diff --git a/modernization_test.go b/modernization_test.go index fae39b6..21d08a2 100644 --- a/modernization_test.go +++ b/modernization_test.go @@ -6,7 +6,7 @@ import ( "slices" "testing" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) func TestEngine_GroupsIter(t *testing.T) { diff --git a/openapi_test.go b/openapi_test.go index 89413ff..ed4a9b6 100644 --- a/openapi_test.go +++ b/openapi_test.go @@ -9,7 +9,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Test helpers ────────────────────────────────────────────────────────── diff --git a/pkg/provider/provider.go b/pkg/provider/provider.go index ff8710e..1399c79 100644 --- a/pkg/provider/provider.go +++ b/pkg/provider/provider.go @@ -12,7 +12,7 @@ package provider import ( - "forge.lthn.ai/core/api" + "dappco.re/go/core/api" ) // Provider extends RouteGroup with a provider identity. diff --git a/pkg/provider/proxy_test.go b/pkg/provider/proxy_test.go index f98ad72..c1bc536 100644 --- a/pkg/provider/proxy_test.go +++ b/pkg/provider/proxy_test.go @@ -8,8 +8,8 @@ import ( "net/http/httptest" "testing" - "forge.lthn.ai/core/api" - "forge.lthn.ai/core/api/pkg/provider" + "dappco.re/go/core/api" + "dappco.re/go/core/api/pkg/provider" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/provider/registry.go b/pkg/provider/registry.go index 4af76c0..89ce596 100644 --- a/pkg/provider/registry.go +++ b/pkg/provider/registry.go @@ -7,7 +7,7 @@ import ( "slices" "sync" - "forge.lthn.ai/core/api" + "dappco.re/go/core/api" ) // Registry collects providers and mounts them on an api.Engine. diff --git a/pkg/provider/registry_test.go b/pkg/provider/registry_test.go index 24ea464..3ff09f8 100644 --- a/pkg/provider/registry_test.go +++ b/pkg/provider/registry_test.go @@ -5,8 +5,8 @@ package provider_test import ( "testing" - "forge.lthn.ai/core/api" - "forge.lthn.ai/core/api/pkg/provider" + "dappco.re/go/core/api" + "dappco.re/go/core/api/pkg/provider" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pprof_test.go b/pprof_test.go index 307b246..a3983dc 100644 --- a/pprof_test.go +++ b/pprof_test.go @@ -9,7 +9,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Pprof profiling endpoints ───────────────────────────────────────── diff --git a/response_test.go b/response_test.go index f2f5819..4828b29 100644 --- a/response_test.go +++ b/response_test.go @@ -6,7 +6,7 @@ import ( "encoding/json" "testing" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── OK ────────────────────────────────────────────────────────────────── diff --git a/secure_test.go b/secure_test.go index 409452b..5433bde 100644 --- a/secure_test.go +++ b/secure_test.go @@ -10,7 +10,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── WithSecure ────────────────────────────────────────────────────────── diff --git a/sessions_test.go b/sessions_test.go index 16e8218..2e2dd3c 100644 --- a/sessions_test.go +++ b/sessions_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Helpers ───────────────────────────────────────────────────────────── diff --git a/slog_test.go b/slog_test.go index 742b0bb..598a2fe 100644 --- a/slog_test.go +++ b/slog_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── WithSlog ────────────────────────────────────────────────────────── diff --git a/sse_test.go b/sse_test.go index e4829bf..7467b38 100644 --- a/sse_test.go +++ b/sse_test.go @@ -13,7 +13,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── SSE endpoint ──────────────────────────────────────────────────────── diff --git a/static_test.go b/static_test.go index e66f2ce..284f4a6 100644 --- a/static_test.go +++ b/static_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── WithStatic ────────────────────────────────────────────────────────── diff --git a/swagger_test.go b/swagger_test.go index 987b9a0..636f89f 100644 --- a/swagger_test.go +++ b/swagger_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Swagger endpoint ──────────────────────────────────────────────────── diff --git a/timeout_test.go b/timeout_test.go index 06e010c..c0e99a8 100644 --- a/timeout_test.go +++ b/timeout_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // skipIfRaceDetector skips the test when the race detector is enabled. diff --git a/tracing_test.go b/tracing_test.go index a72b062..4e719e1 100644 --- a/tracing_test.go +++ b/tracing_test.go @@ -16,7 +16,7 @@ import ( "go.opentelemetry.io/otel/sdk/trace/tracetest" "go.opentelemetry.io/otel/trace" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // setupTracing creates an in-memory span exporter, wires it into a diff --git a/websocket_test.go b/websocket_test.go index c8a2623..cbad161 100644 --- a/websocket_test.go +++ b/websocket_test.go @@ -11,7 +11,7 @@ import ( "github.com/gin-gonic/gin" "github.com/gorilla/websocket" - api "forge.lthn.ai/core/api" + api "dappco.re/go/core/api" ) // ── Stub groups ─────────────────────────────────────────────────────────