Updates
This commit is contained in:
@@ -56,10 +56,10 @@ Re-exports from `./lib/channel.js`: `setupSeedChannel`.
|
||||
- Creates Protomux channel with `protocol: PROTOCOL_NAME`.
|
||||
- **Message 0**: `uint32` read index → if `localRAM.get(index)`, send on message 1.
|
||||
- **Message 1**: `msgDataEncoding` (inbound only on client).
|
||||
- **Message 2**: `c.buffer` — after `chan.open()`, sends 250-byte bitfield with bit 0 set (gossip stub).
|
||||
- **Message 3**: search request → responds on message 4 with empty `matches`.
|
||||
- **Message 2**: `c.buffer` — after `chan.open()`, sends 250-byte bitfield with bit 0 set (capability gossip stub; see **`kernel-feature-bits.js`**).
|
||||
- **Message 3**: search request (`msgSearchReqEncoding`) → **message 4** returns paths from the staged manifest whose lowercase path contains the query (trimmed); empty query returns a capped prefix of all manifest paths. **`setupSeedChannel(..., { manifestPaths, searchMaxMatches })`** supplies the list (seeder collects paths during **`stageKernelTree`**).
|
||||
- **Message 4**: search response encoding.
|
||||
- **Message 5**: RPC request → responds on message 6 with failure `"RPC not implemented on seeder"`.
|
||||
- **Message 5**: RPC request → **message 6** implements **`bare_os.version`**, **`bare_os.health`**, **`bare_os.kernel_info`**, **`bare_os.capabilities`** (feature bitfield JSON), **`bare_os.gossip`** (manifest count + timestamp); other modules/methods get **`success: false`** and error **`RPC not implemented on seeder`**.
|
||||
- **Message 6**: RPC response encoding.
|
||||
- Calls `replicateDrive(mux.stream)` (typically `drive.replicate(stream)`).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user