From f25e38d3fd7188a3f27e157164bf9b47e91f271f 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. --- go.mod | 3 ++- go.sum | 2 -- policylang/policy.go | 2 +- service.go | 2 +- service_disabled.go | 2 +- zz_coverage_holes_test.go | 2 +- zz_service_busreact_test.go | 2 +- zz_service_more_test.go | 2 +- 8 files changed, 8 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 25af1c4..f223a7d 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,10 @@ module github.com/pilot-protocol/policy go 1.25.10 require ( - github.com/TeoSlayer/pilotprotocol v0.0.0 github.com/expr-lang/expr v1.17.8 github.com/pilot-protocol/common v0.1.0 ) replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/go.sum b/go.sum index 9a3f2d6..5c0c3bd 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM= github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4= -github.com/pilot-protocol/common v0.1.0 h1:m8mZZATgeBiFoqhWXPnskw2u0lNkWxHp0IagZK35V1g= -github.com/pilot-protocol/common v0.1.0/go.mod h1:4YZWHK5nhM+4RLmYTspLxxAFbyBII7yzQDAHq3Ul2ck= diff --git a/policylang/policy.go b/policylang/policy.go index c756ca5..41d8cde 100644 --- a/policylang/policy.go +++ b/policylang/policy.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Version is the current policy document schema version. diff --git a/service.go b/service.go index c2c5ab0..c1c328a 100644 --- a/service.go +++ b/service.go @@ -16,7 +16,7 @@ import ( "strings" "sync" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service is the L11 plugin adapter for the policy runtime. It owns diff --git a/service_disabled.go b/service_disabled.go index af93f6d..a9bf0d1 100644 --- a/service_disabled.go +++ b/service_disabled.go @@ -16,7 +16,7 @@ import ( "context" "errors" - "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_coverage_holes_test.go b/zz_coverage_holes_test.go index e5e3c85..dc987fc 100644 --- a/zz_coverage_holes_test.go +++ b/zz_coverage_holes_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // ----------------------------------------------------------------------------- diff --git a/zz_service_busreact_test.go b/zz_service_busreact_test.go index ae7bd48..ed17a60 100644 --- a/zz_service_busreact_test.go +++ b/zz_service_busreact_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // stubBus is the minimal coreapi.EventBus used by the bus-reaction diff --git a/zz_service_more_test.go b/zz_service_more_test.go index 115e3b1..a61219b 100644 --- a/zz_service_more_test.go +++ b/zz_service_more_test.go @@ -10,7 +10,7 @@ import ( "os" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) const minimalPolicyJSON = `{ From 7b72772dca59c2d01d6837f338029ce7a8209a00 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 16:05:00 -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 f223a7d..9559a69 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.25.10 require ( github.com/expr-lang/expr v1.17.8 - github.com/pilot-protocol/common v0.1.0 + github.com/pilot-protocol/common v0.2.0 ) replace github.com/TeoSlayer/pilotprotocol => ../web4