From 3d0c16a3ef36b779f3891368c1f3d8bca24e5bdf 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. --- go.mod | 4 +++- service.go | 2 +- service_disabled.go | 2 +- zz_fetch_test.go | 2 +- zz_service_test.go | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index cbfd654..02d7571 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/pilot-protocol/trustedagents 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/service.go b/service.go index 95e6b08..0045609 100644 --- a/service.go +++ b/service.go @@ -8,7 +8,7 @@ package trustedagents import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service is the L11 plugin adapter. Implements both coreapi.Service diff --git a/service_disabled.go b/service_disabled.go index 24c2caa..e76eb7b 100644 --- a/service_disabled.go +++ b/service_disabled.go @@ -13,7 +13,7 @@ package trustedagents import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service satisfies coreapi.Service and coreapi.TrustChecker with diff --git a/zz_fetch_test.go b/zz_fetch_test.go index a0df600..ccf6b12 100644 --- a/zz_fetch_test.go +++ b/zz_fetch_test.go @@ -33,7 +33,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // rewriteTransport routes any request to host raw.githubusercontent.com diff --git a/zz_service_test.go b/zz_service_test.go index 8e0cd35..7c5bdc8 100644 --- a/zz_service_test.go +++ b/zz_service_test.go @@ -14,7 +14,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // TestEmbeddedJSON_ReturnsACopy verifies the defensive copy behavior —