@robota-sdk/agent-transport-link 0.0.0-stage → 3.1.2
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/CHANGELOG.md +43 -0
- package/LICENSE +661 -0
- package/README.md +73 -2
- package/dist/node/index.cjs +1 -0
- package/dist/node/index.d.cts +195 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.ts +195 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +2 -0
- package/dist/node/index.js.map +1 -0
- package/package.json +77 -3
- package/src/__tests__/harness.ts +322 -0
- package/src/__tests__/link-stream.test.ts +52 -0
- package/src/__tests__/owner-vocabulary.test.ts +140 -0
- package/src/__tests__/runtime-link.test.ts +616 -0
- package/src/__tests__/squatter.test.ts +147 -0
- package/src/index.ts +35 -0
- package/src/link-bounds.ts +21 -0
- package/src/link-ports.ts +118 -0
- package/src/link-request.ts +20 -0
- package/src/link-stream.ts +136 -0
- package/src/open-runtime-link.ts +441 -0
- package/src/owner-vocabulary.ts +389 -0
- package/src/serve-runtime-link.ts +303 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @robota-sdk/agent-transport-link
|
|
2
|
+
|
|
3
|
+
## 3.1.2
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- @robota-sdk/agent-keyring@3.1.2
|
|
7
|
+
- @robota-sdk/agent-transport@3.1.2
|
|
8
|
+
|
|
9
|
+
## 3.1.1
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- @robota-sdk/agent-keyring@3.1.1
|
|
13
|
+
- @robota-sdk/agent-transport@3.1.1
|
|
14
|
+
|
|
15
|
+
## 3.1.0
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 246c814: **Breaking (`@robota-sdk/agent-keyring`):** `IUnlockedKeys` is removed. `unlockWithPassphrase`,
|
|
19
|
+
`unlockWithRecoveryKey` and `createKeyring` now return `IReadKeys`: the sealing keypair and the
|
|
20
|
+
authorship key, with no attach keypair. `checkSealingPublicKey` and `repairSealingPublicKey` take the
|
|
21
|
+
read keys. Code that read `unlocked.attach` has no replacement on the read keys: the attach key is
|
|
22
|
+
reachable only inside `openOwnerHandover(keyring, credential)`, which certifies a runtime
|
|
23
|
+
(`certify(instancePublicKey, binding)`) and proves the owner on an owner link, and never hands out a
|
|
24
|
+
key.
|
|
25
|
+
|
|
26
|
+
The keyring also gains the owner link: `startSpawnerExchange()` and `createRuntimeIdentity()` for the
|
|
27
|
+
key a runtime shares with the process that started it, `createLinkInitiator()` and
|
|
28
|
+
`createLinkResponder()` for the handshake in which the runtime proves itself first, sealed frames
|
|
29
|
+
per direction, and a read grant that gives a runtime the read keys and never the attach key or the
|
|
30
|
+
master key. Refusals are `LinkRefusedError`, whose `reason` names the failed check.
|
|
31
|
+
|
|
32
|
+
`@robota-sdk/agent-transport-link` is published for the first time. It carries the owner link over a
|
|
33
|
+
local byte stream (`serveRuntimeLink`, `openSpawnerLink`, `openOwnerLink`) with a strict owner
|
|
34
|
+
vocabulary. It is dormant: nothing in the CLI or the desktop app uses it yet.
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [bc8de21]
|
|
39
|
+
- Updated dependencies [246c814]
|
|
40
|
+
- Updated dependencies [437ca9e]
|
|
41
|
+
- Updated dependencies [b56b5a9]
|
|
42
|
+
- @robota-sdk/agent-keyring@3.1.0
|
|
43
|
+
- @robota-sdk/agent-transport@3.1.0
|