@nexus-code/remote-protocol 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/rpc.d.ts +4275 -216
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js +657 -11
- package/dist/rpc.js.map +1 -1
- package/dist/sealed.d.ts +37 -5
- package/dist/sealed.d.ts.map +1 -1
- package/dist/sealed.js +34 -5
- package/dist/sealed.js.map +1 -1
- package/dist/view.d.ts +440 -0
- package/dist/view.d.ts.map +1 -1
- package/dist/view.js +73 -0
- package/dist/view.js.map +1 -1
- package/package.json +1 -1
- package/src/rpc.ts +695 -10
- package/src/sealed.ts +35 -5
- package/src/view.ts +83 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ There are two layers:
|
|
|
7
7
|
- **Relay frames** (`relay.ts`): what a device and its account's room on the relay send each other. The relay reads these: who a message is for, its sequence number, and the account key version it was sealed with. It cannot read the message itself.
|
|
8
8
|
- **Sealed messages** (`sealed.ts`, `rpc.ts`, `view.ts`): what a sealed frame carries between two devices of the account.
|
|
9
9
|
- A `hello` that says which protocol version and capabilities a device serves.
|
|
10
|
-
- JSON-RPC 2.0 requests, answers and notifications: list and watch sessions, read and drive chats, read terminals.
|
|
10
|
+
- JSON-RPC 2.0 requests, answers and notifications: list and watch sessions and their changes, read and drive chats, read, watch and drive terminals, wait on either, and read a workspace's files and git. What a device serves is per capability (`CAPABILITIES`); a hello's `schema` names the package version it speaks (`SCHEMA_VERSION`).
|
|
11
11
|
- The chat view: the conversation as the serving device's app already built it, trimmed for drawing.
|
|
12
12
|
|
|
13
13
|
Beside them:
|
|
@@ -26,3 +26,7 @@ declarations in `dist`, and `zod` 3.25 or later as a peer. The desktop app
|
|
|
26
26
|
imports `src` directly; `npm run build` (run by `prepublishOnly`) makes
|
|
27
27
|
`dist`. Relative imports in `src` end in `.js`, as Node's ES modules need
|
|
28
28
|
them.
|
|
29
|
+
|
|
30
|
+
A version is published by GitHub Actions (`.github/workflows/publish-remote-protocol.yml`)
|
|
31
|
+
when a tag `remote-protocol-vX.Y.Z` naming the version in `package.json` is pushed:
|
|
32
|
+
trusted publishing, with no token or one-time password, and with provenance.
|