Skip to content

fix(embedded): restore PilotEmbeddedStart (web4 PR #155 merged)#18

Merged
TeoSlayer merged 3 commits into
mainfrom
chore/repo-rename-teoslayer-to-pilot-protocol
Jun 23, 2026
Merged

fix(embedded): restore PilotEmbeddedStart (web4 PR #155 merged)#18
TeoSlayer merged 3 commits into
mainfrom
chore/repo-rename-teoslayer-to-pilot-protocol

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

Summary

  • web4 PR #155 ("satisfy daemonapi.Daemon via adapter") merged as commit 6c45b716, making d.DaemonAPI() available
  • Removes the stub errJSON(\"embedded daemon not implemented yet\") and wires the real boot path: daemon.NewDaemonAPI()runtime.New → register trustedagents/handshake/policy plugins → StartPluginsd.Start()
  • Success response returns address, node_id, public_key, socket as documented in the function comment
  • go mod tidy promotes handshake, policy, trustedagents to direct deps and picks up minor upstream bumps (common v0.5.5, websocket v1.8.15, sys v0.46.0)

Test plan

  • go build ./... passes (verified locally — zero compiler errors)
  • PilotEmbeddedStart no longer returns the stub error at runtime
  • PilotEmbeddedStop still tears down daemon + plugins correctly (code path unchanged)
  • Smoke-test on iOS simulator: call PilotEmbeddedStart with a valid config, verify node registers

🤖 Generated with Claude Code

teovl and others added 2 commits June 19, 2026 18:38
PR #155 (satisfy daemonapi.Daemon via adapter) landed on web4 main as
6c45b716, making d.DaemonAPI() available. This commit removes the stub
error and wires the real boot path: daemon.New → DaemonAPI() → runtime.New
→ register trustedagents/handshake/policy plugins → StartPlugins → Start.

go.mod promotes handshake, policy, trustedagents to direct dependencies
and picks up minor upstream bumps (common v0.5.5, coder/websocket v1.8.15,
golang.org/x/sys v0.46.0) from go mod tidy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@TeoSlayer

Copy link
Copy Markdown
Contributor Author

This currently has a merge conflict and can't be cleanly merged. A rebase on main should resolve it — the change itself (restore PilotEmbeddedStart after web4 #155) looks fine once rebased.

Resolve conflicts preserving the restored PilotEmbeddedStart embedded API
and the org rename, while taking main's newer dependency versions.

- go.mod: union of requires; keep common v0.5.5 (no downgrade to v0.4.8),
  keep handshake/policy as direct deps used by PilotEmbeddedStart; go
  directive bumped to 1.25.11 via go mod tidy (sibling drift).
- embedded.go: keep crypto/handshake/policy imports needed by the restored
  PilotEmbeddedStart; gofmt the daemon.Config struct alignment.
- .github/workflows/ci.yml: keep main's CI plus the pilot-protocol rename.
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@TeoSlayer TeoSlayer merged commit 040c48d into main Jun 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants