You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(daemon): satisfy daemonapi.Daemon contract after common@v0.4.3 bump
The latest common (v0.4.3) added Sign to daemonapi.Daemon, Info to
daemonapi.Connection, and tightened PortAllocator.Bind to return
daemonapi.Listener instead of *Listener. PR #155's adapter (written
against earlier daemonapi) no longer satisfied the interface, breaking
`go build ./...` for cmd/daemon and tests/testenv.
Changes:
- Add *Daemon.Sign(msg) []byte — forwards to identity.Sign with nil
guard for pre-bootstrap and in-memory test cases.
- Add *Connection.Info() daemonapi.ConnectionInfo — endpoint snapshot
for plugin consumption (struct copy, holdable across goroutines).
- Add portAllocatorAdapter + listenerAdapter wrappers so Bind returns
the daemonapi.Listener interface and Accept/Port/Close go through
channel/field-shaped engine methods.
- Wire d.DaemonAPI() once in cmd/daemon/main.go and tests/testenv.go,
thread the shared value into runtime.New / NewPolicyRuntime /
NewHandshakeRuntime instead of passing engine-typed *Daemon.
- Bump go.mod to latest sibling pseudo-versions / betas.
Verified: go build ./... + go vet ./... clean; pilot-daemon binary
runs and prints --help.
0 commit comments