From 0dc72c2b1cf07c39e3d44b006b304c185ed9e579 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 15:57:04 -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 Same migration as the other siblings: replace github.com/TeoSlayer/pilotprotocol/pkg/{coreapi,protocol,driver,registry/{client,wire},config,logging,urlvalidate,secure} and the ipcutil import path with the canonical common module. Unlike the leaf siblings, this repo keeps its github.com/TeoSlayer/pilotprotocol/pkg/daemon import because the sibling implements daemon plugin code that is tightly coupled to the daemon engine. That cycle is intentional for now — handshake, runtime, and libpilot are co-built with web4, not independent releases. go build ./... passes. --- events.go | 2 +- go.mod | 2 ++ handshake.go | 6 +++--- identity.go | 2 +- policy_manager.go | 2 +- runtime.go | 2 +- streams.go | 2 +- zz_deps_test.go | 2 +- zz_listener_test.go | 2 +- zz_policy_manager_test.go | 2 +- zz_streams_ceiling_test.go | 4 ++-- 11 files changed, 15 insertions(+), 13 deletions(-) diff --git a/events.go b/events.go index 85eaafc..1a9a6f9 100644 --- a/events.go +++ b/events.go @@ -3,7 +3,7 @@ package runtime import ( - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" ) diff --git a/go.mod b/go.mod index 069e04f..c00d9f1 100644 --- a/go.mod +++ b/go.mod @@ -16,3 +16,5 @@ require ( ) replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/handshake.go b/handshake.go index 17dbb7c..d986ddb 100644 --- a/handshake.go +++ b/handshake.go @@ -7,10 +7,10 @@ import ( "fmt" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" - registryclient "github.com/TeoSlayer/pilotprotocol/pkg/registry/client" + "github.com/pilot-protocol/common/protocol" + registryclient "github.com/pilot-protocol/common/registry/client" "github.com/pilot-protocol/handshake" ) diff --git a/identity.go b/identity.go index fef506c..a64e9a5 100644 --- a/identity.go +++ b/identity.go @@ -6,7 +6,7 @@ import ( "crypto/ed25519" "errors" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" ) diff --git a/policy_manager.go b/policy_manager.go index 4df3938..815ab5d 100644 --- a/policy_manager.go +++ b/policy_manager.go @@ -3,7 +3,7 @@ package runtime import ( - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" ) diff --git a/runtime.go b/runtime.go index 9e2fe57..3fcdce0 100644 --- a/runtime.go +++ b/runtime.go @@ -13,7 +13,7 @@ package runtime import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" ) diff --git a/streams.go b/streams.go index dc0e00f..b9c55b4 100644 --- a/streams.go +++ b/streams.go @@ -6,7 +6,7 @@ import ( "context" "errors" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" ) diff --git a/zz_deps_test.go b/zz_deps_test.go index 9abd2d4..ead1e93 100644 --- a/zz_deps_test.go +++ b/zz_deps_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" "github.com/pilot-protocol/runtime" ) diff --git a/zz_listener_test.go b/zz_listener_test.go index a424dd1..fd32545 100644 --- a/zz_listener_test.go +++ b/zz_listener_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" "github.com/pilot-protocol/runtime" ) diff --git a/zz_policy_manager_test.go b/zz_policy_manager_test.go index e994344..ca0aec6 100644 --- a/zz_policy_manager_test.go +++ b/zz_policy_manager_test.go @@ -6,7 +6,7 @@ import ( "errors" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/pilot-protocol/runtime" ) diff --git a/zz_streams_ceiling_test.go b/zz_streams_ceiling_test.go index 6ab6e58..9b39620 100644 --- a/zz_streams_ceiling_test.go +++ b/zz_streams_ceiling_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" "github.com/TeoSlayer/pilotprotocol/pkg/daemon" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/handshake" "github.com/pilot-protocol/runtime" ) From dc0fcaa644c13c016839909e82b5be3464d47c82 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 16:05:10 -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 c00d9f1..6507982 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( require ( github.com/coder/websocket v1.8.14 // indirect github.com/expr-lang/expr v1.17.8 // indirect - github.com/pilot-protocol/common v0.1.0 // indirect + github.com/pilot-protocol/common v0.2.0 // indirect github.com/pilot-protocol/trustedagents v0.1.0 // indirect )