From 280f21dbc95e6f50e8679bfb0d5ac9f692556b73 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 15:55:07 -0700 Subject: [PATCH] deps: switch shared types from web4 hub to common MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mechanical sed sweep replacing every github.com/TeoSlayer/pilotprotocol/pkg/{coreapi,protocol,driver,registry/client,registry/wire,config,logging,urlvalidate,secure} and github.com/TeoSlayer/pilotprotocol/internal/ipcutil with the equivalent github.com/pilot-protocol/common/. Adds a local replace directive so dev still resolves against the local common checkout. The hub require for TeoSlayer/pilotprotocol remains for now (handshake/runtime/libpilot keep their pkg/daemon import; the rest will be cleaned up when web4 itself migrates in Phase 3 — see common/extract-shared-types-from-web4 branch). go build ./... passes. --- client.go | 4 ++-- examples/main.go | 4 ++-- go.mod | 4 +++- server.go | 4 ++-- service.go | 4 ++-- service_disabled.go | 2 +- zz_added_coverage_test.go | 2 +- zz_service_e2e_test.go | 4 ++-- 8 files changed, 15 insertions(+), 13 deletions(-) diff --git a/client.go b/client.go index 8bfdd16..0ef9670 100644 --- a/client.go +++ b/client.go @@ -3,8 +3,8 @@ package eventstream import ( - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) // Client connects to a remote event stream broker on port 1002. diff --git a/examples/main.go b/examples/main.go index e2fd3c4..ac3dd04 100644 --- a/examples/main.go +++ b/examples/main.go @@ -8,8 +8,8 @@ import ( "log" internales "github.com/pilot-protocol/eventstream" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) func main() { diff --git a/go.mod b/go.mod index 7613ac1..66d0d47 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/pilot-protocol/eventstream go 1.25.10 -require github.com/TeoSlayer/pilotprotocol v0.0.0 +require github.com/pilot-protocol/common v0.1.0 replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/server.go b/server.go index b306567..d0ba7f7 100644 --- a/server.go +++ b/server.go @@ -7,8 +7,8 @@ import ( "net" "sync" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) // Server is a pub/sub event broker on port 1002. diff --git a/service.go b/service.go index e9f6634..a346de8 100644 --- a/service.go +++ b/service.go @@ -12,8 +12,8 @@ import ( "sync" "sync/atomic" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/coreapi" + "github.com/pilot-protocol/common/protocol" ) // Publish rate-limit constants. Issue #196: previously any single publisher diff --git a/service_disabled.go b/service_disabled.go index 113d1d4..d28d427 100644 --- a/service_disabled.go +++ b/service_disabled.go @@ -13,7 +13,7 @@ package eventstream import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service is a no-op replacement for the real plugin Service. diff --git a/zz_added_coverage_test.go b/zz_added_coverage_test.go index af91e8e..3ab3a7f 100644 --- a/zz_added_coverage_test.go +++ b/zz_added_coverage_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // --- stub EventBus ----------------------------------------------------------- diff --git a/zz_service_e2e_test.go b/zz_service_e2e_test.go index e852de2..82aad0b 100644 --- a/zz_service_e2e_test.go +++ b/zz_service_e2e_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/coreapi" + "github.com/pilot-protocol/common/protocol" ) type esFakeStream struct {