diff --git a/embedded.go b/embedded.go index 7e8463f..88c374c 100644 --- a/embedded.go +++ b/embedded.go @@ -125,7 +125,7 @@ func PilotEmbeddedStart(configJSON *C.char) *C.char { Version: cfg.Version, }) - rt := runtime.New(d) + rt := runtime.New(d.DaemonAPI()) // Minimum plugin set for handshake + datagram I/O. No // trustedagents (it gates trust to a curated GitHub list and @@ -136,13 +136,13 @@ func PilotEmbeddedStart(configJSON *C.char) *C.char { return errJSON(fmt.Errorf("register skillinject: %w", err)) } - policySvc := policy.NewService(runtime.NewPolicyRuntime(d)) + policySvc := policy.NewService(runtime.NewPolicyRuntime(d.DaemonAPI())) if err := rt.Register(policySvc); err != nil { return errJSON(fmt.Errorf("register policy: %w", err)) } d.RegisterPolicyManager(runtime.AsDaemonPolicyManager(policySvc.Manager())) - hsSvc := handshake.NewService(runtime.NewHandshakeRuntime(d)) + hsSvc := handshake.NewService(runtime.NewHandshakeRuntime(d.DaemonAPI())) if err := rt.Register(hsSvc); err != nil { return errJSON(fmt.Errorf("register handshake: %w", err)) } diff --git a/go.mod b/go.mod index 4b4988e..060ad30 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,8 @@ module github.com/pilot-protocol/libpilot go 1.25.10 require ( - github.com/TeoSlayer/pilotprotocol v0.0.0 + github.com/TeoSlayer/pilotprotocol v1.10.5 + github.com/pilot-protocol/common v0.4.0 github.com/pilot-protocol/handshake v0.1.0 github.com/pilot-protocol/policy v0.1.0 github.com/pilot-protocol/runtime v0.1.0 @@ -13,10 +14,37 @@ 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.2.0 // indirect github.com/pilot-protocol/trustedagents v0.1.0 // indirect ) replace github.com/TeoSlayer/pilotprotocol => ../web4 replace github.com/pilot-protocol/common => ../common + +replace github.com/pilot-protocol/handshake => ../handshake + +replace github.com/pilot-protocol/policy => ../policy + +replace github.com/pilot-protocol/runtime => ../runtime + +replace github.com/pilot-protocol/skillinject => ../skillinject + +replace github.com/pilot-protocol/trustedagents => ../trustedagents + +replace github.com/pilot-protocol/rendezvous => ../rendezvous + +replace github.com/pilot-protocol/beacon => ../beacon + +replace github.com/pilot-protocol/dataexchange => ../dataexchange + +replace github.com/pilot-protocol/eventstream => ../eventstream + +replace github.com/pilot-protocol/gateway => ../gateway + +replace github.com/pilot-protocol/nameserver => ../nameserver + +replace github.com/pilot-protocol/webhook => ../webhook + +replace github.com/pilot-protocol/updater => ../updater + +replace github.com/pilot-protocol/app-store => ../app-store diff --git a/go.sum b/go.sum index 626b2e9..54b0f43 100644 --- a/go.sum +++ b/go.sum @@ -2,17 +2,3 @@ github.com/coder/websocket v1.8.14 h1:9L0p0iKiNOibykf283eHkKUHHrpG7f65OE3BhhO7v9 github.com/coder/websocket v1.8.14/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg= 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= -github.com/pilot-protocol/handshake v0.1.0 h1:TmqIglsimTynKtE5hLpCt/SZmmBYs8OCn4qn755fmew= -github.com/pilot-protocol/handshake v0.1.0/go.mod h1:FIIMTgRcMIMEim/1d7F5f6YenJC+3xl53QMEmnnJY+0= -github.com/pilot-protocol/policy v0.1.0 h1:Eh0CfCZDEX8UCkMPi2MrNrhCe8c15a/Bqf4eaKUhyis= -github.com/pilot-protocol/policy v0.1.0/go.mod h1:IMVm7IQhgLtH/iXow2AWFuLl+sKrxJ4mGs4EKLoHop8= -github.com/pilot-protocol/rendezvous v0.1.0 h1:vOBD7CnRY8uU8vma0Vfcr0aPSQ54qNuxppNUiljzk9Y= -github.com/pilot-protocol/rendezvous v0.1.0/go.mod h1:g3/IYBykbU5m9jeprSCrmuoDpaqROO4Lu/+ecKVIF3A= -github.com/pilot-protocol/runtime v0.1.0 h1:TyerRWKVN38WM2RAPR5bhCdY5cR7d3UYg5neUK0pdZk= -github.com/pilot-protocol/runtime v0.1.0/go.mod h1:X1sImTG8xu6HkvKimu8Eq91HmDKQt6GHEWju7HxofEQ= -github.com/pilot-protocol/skillinject v0.1.0 h1:gs912gqmxl0ifIvswefjx8BzPCmoBWS77mSp/RC1YEY= -github.com/pilot-protocol/skillinject v0.1.0/go.mod h1:303GIB6j95ZhnoYeTlYzlBDhUbO01PB/6KGohm4DcJs= -github.com/pilot-protocol/trustedagents v0.1.0 h1:rCX0IQxfZ84Q4dSgw01WJgjHUODRnI3iAon1t+NuFGE= -github.com/pilot-protocol/trustedagents v0.1.0/go.mod h1:uVySmuMPb6N7AOCnvLHN2I9C9ggqEpfBmAZwVuP5Xaw=