Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
}
Expand Down
32 changes: 30 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
14 changes: 0 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Loading