@ai-ecoverse/slicc-bios 1.55.23 → 1.55.25
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
CHANGED
|
@@ -470,6 +470,7 @@ seven can also join a tailnet, with a patched build of Tailscale's wasm client (
|
|
|
470
470
|
- **Linked devices:** `os/link.js` links a `slicc` CLI to the page over WebRTC, as one exit per link. It speaks the [slicc link protocol](https://github.com/ai-ecoverse/slicc-cli): tunnel frames over data channels, with one channel per stream and a 256 KiB credit window per stream and direction.
|
|
471
471
|
- **Setup:** a CLI that holds CDP to this browser calls `globalThis.sliccLinkReceive` with a `hello` and its nonce, and the page answers through the CLI's `sliccLinkSend` binding: the offer, then its ICE candidates. The CLI checks that the call came from seven's main frame. CDP carries only the setup; the data goes over WebRTC. Every `hello` names its CLI process (`node`): a new `hello` from the same process replaces its link (after a reload, say), and one from another process (`slicc prompt` next to `slicc`) adds a second link.
|
|
472
472
|
- **After a link fails:** slicc may send another `hello` in the same page after a link fails; seven replaces the old local link and offers again. That `hello` has a new nonce and the same `node`. Seven itself never retries: a local link whose connection fails (ICE `failed` after a Wi-Fi change, say), or whose channels close without a `bye`, is closed and stays closed until the CLI says `hello` again. slicc owns the retry, so two retriers never race. The `hello` needs no delay. It may arrive before seven has seen its own side fail: the stale link is then closed as `replaced`, and its exit removed, before the new offer, so a `node` never has two links. From then on, signalling under the old nonce (an `answer`, a candidate or a `bye`) is ignored, and seven sends nothing under it. The new link keeps the old address while that is free. It also keeps the name: while the stale link is being replaced, no other process takes the name. Once a failed link is gone, a process waiting for that name may take it back, as below.
|
|
473
|
+
- A replacement link keeps the old name only until its HELLO: a replacement that neither says HELLO nor closes is closed with "no link within 30 s", which releases the name.
|
|
473
474
|
- **Pairing without CDP (`slicc open`, `slicc pair`):** `os/pair.js` is seven's side of the link spec's §1.3, for a seven in an everyday browser that no CLI controls. It needs slicc ≥ 1.39.0; the tests run the pinned `@ai-ecoverse/slicc` devDependency. `slicc open` opens `<page>#slicc-pair=<port>.<token>.<node-fp>`, and `slicc pair` prints it for the **Link this computer** field under Linked devices (`pairComputer(url)`, spectrum's pairing block, spectrum ≥ 1.88.1). Seven strips the fragment at once, opens the Network panel, and asks *Link SLICC on this computer?* with the node's short fingerprint (`ab12…ef`), which slicc prints too. Only **Link** (`confirmPairing()`) sends a loopback request: one `POST http://127.0.0.1:<port>/slicc/v1/pair` with the token and a non-trickled offer (ICE gathering waits 10 s at most, then the offer goes with what it has), from a page certificate (ECDSA P-256) kept per origin in IndexedDB (`slicc-follow`, key `loopback`). Seven uses the answer only if its fingerprint is the URL's, then pins `{ port, name }` by that fingerprint in `localStorage` (`slicc-os.paired`). It never pairs over ports 9222–9229 or below 1024. Every loopback `POST` gets 15 s (2 minutes while Chrome's Local Network Access prompt is open, which shows as `links.permission`), and a missed deadline reads as nothing answering. A tab that isn't running SLICC keeps the link until it follows the tab that is, then hands the attempt over; under a version skew between the tabs it says so instead and never pairs on its own. A tab that takes over reads the pins again. Refusals read as a sentence in the block: a wrong, used or expired link (`403`), nothing answering (or an origin slicc refuses), a browser that blocks local network access, and an impostor's fingerprint.
|
|
474
475
|
- **Browsers:** Chrome, Edge and Firefox reach `http://127.0.0.1` from an https page. WebKit (Safari, and every browser on iOS) blocks it as mixed content, so there an attempt fails at once with "Safari doesn’t let an https page reach slicc on this computer…", which points to the join command (the tray path) or another browser.
|
|
475
476
|
- **The device:** keyed by the node's fingerprint, local (the automatic exit, folders, kernel services), but with no `agent` cap, so no remote control: `slicc prompt` never goes over a pairing. Its row stays while slicc isn't running. After a reload, a lost link or a restart of slicc, the tab running SLICC posts `{ offer }` to `/slicc/v1/signal` on the remembered port, then 17117–17126, with backoff from 1 s to 30 s (and at once on `online` or when the tab shows), and takes only an answer with the pinned fingerprint. A `403` on the pinned port means slicc forgot this seven (`slicc unpair`), and the offline row says so until it's paired again. **Unlink** opens `unlink` on the live link (cap `unlink-loopback`), then forgets the pin, even when slicc isn't running or the `unlink` fails: slicc's own pin is harmless then (seven never signals again) until `slicc unpair` removes it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.25",
|
|
4
4
|
"description": "Slim loader that boots SLICC into OPFS and serves the UI from there",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@ai-ecoverse/slicc-cdp": "1.46.2",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.174.0",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.13.10",
|
|
57
|
-
"@ai-ecoverse/slicc-spectrum": "2.0.
|
|
57
|
+
"@ai-ecoverse/slicc-spectrum": "2.0.2",
|
|
58
58
|
"@ai-ecoverse/slicc-vault": "1.22.1",
|
|
59
59
|
"@biomejs/biome": "2.6.4",
|
|
60
60
|
"aws4fetch": "1.0.20",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@ai-ecoverse/slicc-browsers": "1.20.3",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.4.1",
|
|
12
12
|
"@ai-ecoverse/slicc-kernel": "1.174.0",
|
|
13
|
-
"@ai-ecoverse/slicc-spectrum": "2.0.
|
|
13
|
+
"@ai-ecoverse/slicc-spectrum": "2.0.2",
|
|
14
14
|
"@ai-ecoverse/wasi-fnox": "1.43.0-1",
|
|
15
15
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
16
16
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
"node_modules/@ai-ecoverse/slicc-spectrum": {
|
|
149
|
-
"version": "2.0.
|
|
150
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.0.
|
|
151
|
-
"integrity": "sha512-
|
|
149
|
+
"version": "2.0.2",
|
|
150
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.0.2.tgz",
|
|
151
|
+
"integrity": "sha512-yfgr0wLwpT4DguBO9VW+mQkavCMYo5rZKC9DpqLQiIrRSwmJSu8/fq38Q1lBCWdOe5gR/KQqcc2UPwehwbky5g==",
|
|
152
152
|
"license": "Apache-2.0",
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=24"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"@ai-ecoverse/slicc-browsers": "1.20.3",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.4.1",
|
|
9
9
|
"@ai-ecoverse/slicc-kernel": "1.174.0",
|
|
10
|
-
"@ai-ecoverse/slicc-spectrum": "2.0.
|
|
10
|
+
"@ai-ecoverse/slicc-spectrum": "2.0.2",
|
|
11
11
|
"@ai-ecoverse/wasi-fnox": "1.43.0-1",
|
|
12
12
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
13
13
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
@@ -21,8 +21,8 @@ importers:
|
|
|
21
21
|
specifier: 1.174.0
|
|
22
22
|
version: 1.174.0
|
|
23
23
|
'@ai-ecoverse/slicc-spectrum':
|
|
24
|
-
specifier: 2.0.
|
|
25
|
-
version: 2.0.
|
|
24
|
+
specifier: 2.0.2
|
|
25
|
+
version: 2.0.2
|
|
26
26
|
'@ai-ecoverse/wasi-fnox':
|
|
27
27
|
specifier: 1.43.0-1
|
|
28
28
|
version: 1.43.0-1
|
|
@@ -105,8 +105,8 @@ packages:
|
|
|
105
105
|
webgpu:
|
|
106
106
|
optional: true
|
|
107
107
|
|
|
108
|
-
'@ai-ecoverse/slicc-spectrum@2.0.
|
|
109
|
-
resolution: {integrity: sha512-
|
|
108
|
+
'@ai-ecoverse/slicc-spectrum@2.0.2':
|
|
109
|
+
resolution: {integrity: sha512-yfgr0wLwpT4DguBO9VW+mQkavCMYo5rZKC9DpqLQiIrRSwmJSu8/fq38Q1lBCWdOe5gR/KQqcc2UPwehwbky5g==}
|
|
110
110
|
engines: {node: '>=24'}
|
|
111
111
|
|
|
112
112
|
'@ai-ecoverse/wasi-fnox@1.43.0-1':
|
|
@@ -270,7 +270,7 @@ snapshots:
|
|
|
270
270
|
- utf-8-validate
|
|
271
271
|
optional: true
|
|
272
272
|
|
|
273
|
-
'@ai-ecoverse/slicc-spectrum@2.0.
|
|
273
|
+
'@ai-ecoverse/slicc-spectrum@2.0.2': {}
|
|
274
274
|
|
|
275
275
|
'@ai-ecoverse/wasi-fnox@1.43.0-1': {}
|
|
276
276
|
|