From ecc5ef8885de2b00bd65475a8cc70dda030b33cc Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 15:55:07 -0700 Subject: [PATCH 1/2] 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 | 6 +++++- server.go | 4 ++-- service.go | 4 ++-- service_disabled.go | 2 +- zz_client_test.go | 4 ++-- zz_coverage_test.go | 4 ++-- zz_more_test.go | 4 ++-- zz_service_errors_test.go | 4 ++-- zz_service_test.go | 4 ++-- 11 files changed, 24 insertions(+), 20 deletions(-) diff --git a/client.go b/client.go index 0def7f8..acddd60 100644 --- a/client.go +++ b/client.go @@ -5,8 +5,8 @@ package dataexchange import ( "time" - "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 data exchange service on port 1001. diff --git a/examples/main.go b/examples/main.go index 033f0db..dc49d67 100644 --- a/examples/main.go +++ b/examples/main.go @@ -9,8 +9,8 @@ import ( "net" internaldx "github.com/pilot-protocol/dataexchange" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/dataexchange" ) diff --git a/go.mod b/go.mod index a8e0d9a..e887f7c 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,12 @@ module github.com/pilot-protocol/dataexchange go 1.25.10 require ( - github.com/TeoSlayer/pilotprotocol v0.0.0 + github.com/pilot-protocol/common v0.1.0 github.com/pilot-protocol/eventstream v0.1.0 ) +require github.com/TeoSlayer/pilotprotocol v0.0.0 // indirect + replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/server.go b/server.go index ca85acf..c28d39b 100644 --- a/server.go +++ b/server.go @@ -6,8 +6,8 @@ import ( "log/slog" "net" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) // Handler is called for each incoming frame on a connection. diff --git a/service.go b/service.go index 9e31c9a..4b7d524 100644 --- a/service.go +++ b/service.go @@ -17,8 +17,8 @@ import ( "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" ) // ServiceConfig configures the daemon-side dataexchange handler. Both diff --git a/service_disabled.go b/service_disabled.go index e7607bb..e390636 100644 --- a/service_disabled.go +++ b/service_disabled.go @@ -13,7 +13,7 @@ package dataexchange import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // ServiceConfig mirrors the real ServiceConfig so cmd/daemon's diff --git a/zz_client_test.go b/zz_client_test.go index 6e55681..86111e1 100644 --- a/zz_client_test.go +++ b/zz_client_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) // ---- IPC wire constants (mirror unexported driver.cmd* by value) ----------- diff --git a/zz_coverage_test.go b/zz_coverage_test.go index be98f66..dd7e309 100644 --- a/zz_coverage_test.go +++ b/zz_coverage_test.go @@ -17,8 +17,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" ) // ----- helpers --------------------------------------------------------------- diff --git a/zz_more_test.go b/zz_more_test.go index 93a9dcc..cd86cd4 100644 --- a/zz_more_test.go +++ b/zz_more_test.go @@ -14,8 +14,8 @@ import ( "strings" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/coreapi" + "github.com/pilot-protocol/common/protocol" ) // TestTypeName covers every branch of the human-readable type mapping. diff --git a/zz_service_errors_test.go b/zz_service_errors_test.go index 6185285..718d2d0 100644 --- a/zz_service_errors_test.go +++ b/zz_service_errors_test.go @@ -18,8 +18,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" ) // ---- saveReceivedFile error branches --------------------------------------- diff --git a/zz_service_test.go b/zz_service_test.go index 98ea915..481c0b6 100644 --- a/zz_service_test.go +++ b/zz_service_test.go @@ -14,8 +14,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" ) // fakeStream is a coreapi.Stream backed by io.Pipe pairs. From bf47d3b095372911f5ac56a2ba28bdca68ae99b6 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 16:04:56 -0700 Subject: [PATCH 2/2] deps: pin common v0.2.0 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e887f7c..829c2f8 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/pilot-protocol/dataexchange go 1.25.10 require ( - github.com/pilot-protocol/common v0.1.0 + github.com/pilot-protocol/common v0.2.0 github.com/pilot-protocol/eventstream v0.1.0 )