Implement hrpc with streaming and wire into setup

- Add spec/hyperschema and spec/hrpc codegen (scripts/build-hrpc.js)
  with unary, request/response-stream, duplex, and send-only commands
- Run build:hrpc and build:protomux from install.sh so setup is one-step
- Native host: add attachHrpc (Protomux channel + generated HRPC),
  handlers for ping, streamSum, fetchStream, duplex, notify
- Load HRPC lazily so missing spec does not crash host; use bare-stream
  for Duplex under Bare; add bare-stream, compact-encoding deps
This commit is contained in:
Raven Scott
2026-02-12 04:51:03 -05:00
parent a7f86f3af5
commit bb47954b9f
14 changed files with 1531 additions and 11 deletions
+2 -2
View File
@@ -4,9 +4,9 @@
"path": "ABSOLUTE_PATH_TO_NATIVE_HOST",
"type": "stdio",
"allowed_origins": [
"chrome-extension://blfnmjfncalojfpcdkddhklpjkjempof/"
"chrome-extension://ahihpjhaledlngogjiplpcjigebfigoo/"
],
"allowed_extensions": [
"bridgeswarm-7b9cba818d22b161@example.org"
"bridgeswarm-395cda49a8e4c8d8@example.org"
]
}