@ai-ecoverse/slicc-bios 1.65.4 → 1.65.6

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
@@ -450,14 +450,16 @@ Before the kernel starts, `os/transport.js` picks how programs reach the network
450
450
 
451
451
  Seven reads no local proxy: a `#proxy=` or `#key=` in the address is taken out before anything loads and never used or stored, and a proxy an older seven kept in IndexedDB (`slicc-os`, store `transport`) is deleted. A small script at the top of the page also takes `#tailscale=`, its `exit=` and `#slicc-pair=` out of the address before anything else loads. It keeps them in local storage under a fresh id and leaves only `#handoff=<id>` in the address, and the boot reads them from there. Once seven has read them, and also when the boot fails, the entry and the id are removed, together with any entry older than 10 minutes. If they can't be stored, the address is still tidied and the values are dropped.
452
452
 
453
- 1. **[slicc-extension](https://github.com/ai-ecoverse/slicc-extension):** when the extension defines `globalThis.sliccExtension`, the kernel uses `fetchTransport({ fetch: sliccExtension.fetch })`, with `traits.crossOrigin: 'any'`: the extension's fetch isn't bound by CORS, so the agent offers the providers that need a CORS-free transport (Kimi, Cerebras) there too.
454
- 2. **The page's own `fetch`:** `fetchTransport()`, bound by CORS. It drops `User-Agent` first: Chrome ignores that header on `fetch`, but WebKit preflights it, and npm's registry refuses the preflight, so `pnpm` could reach nothing there. A request CORS stops is answered `502` with a hint to run `npx sliccy@next` (the slicc CLI, until `sliccy`'s `latest` is the new CLI) or install slicc-extension, which `curl` prints.
453
+ 1. **[slicc-extension](https://github.com/ai-ecoverse/slicc-extension):** when the extension defines `globalThis.sliccExtension`, the kernel uses `fetchTransport({ fetch: sliccExtension.fetch })`, with `traits.crossOrigin: 'any'`: the extension's fetch isn't bound by CORS, so the agent offers the providers that need a CORS-free transport (Kimi, Cerebras) there too. It sends `Cookie`, `Origin`, `Referer` and `User-Agent` as given, to the request's own origin (it sets them with a `declarativeNetRequest` rule, measured with slicc-extension 7.12.2), and none of the other forbidden request headers, which its service worker's `fetch` drops. So a request with one of those (`DNT`, `Via`, `Date`, `Proxy-*`, `Sec-*` and the rest) is refused before it's sent, as the kernel refuses on the page's fetch (see below), with `slicc-extension can't send the request header dnt` and a hint to link a slicc CLI, which sends every header.
454
+ 2. **The page's own `fetch`:** `fetchTransport()`, bound by CORS. It drops `User-Agent` first: Chrome ignores that header on `fetch`, but WebKit preflights it, and npm's registry refuses the preflight, so `pnpm` could reach nothing there. It can't send the other forbidden request headers (`Cookie`, `Referer`, `Origin` and the rest of the fetch standard's list), which the browser drops without a word, so it passes the kernel's `forbiddenHeaders: 'refuse'` ([slicc-kernel#1799](https://github.com/ai-ecoverse/slicc-kernel/pull/1799)): a request with one is refused before it's sent, and never reaches the server with its credential missing ([#1485](https://github.com/ai-ecoverse/slicc-bios/issues/1485)). curl gets a `502` whose body names the headers, `fetch <url> refused: the page's fetch can't send the request header cookie, so it was not sent`, and a JS program's `fetch` rejects with `TypeError` `fetch failed` whose `cause.code` is `ENOTSUP` and `cause.detail` is `'forbidden-header'`. The headers the HTTP stack sets itself (`Accept-Encoding`, `Connection`, `Host` and the like) aren't refused, and `User-Agent` is dropped before the check. A request CORS stops is answered `502` with a hint to run `npx sliccy@next` (the slicc CLI, until `sliccy`'s `latest` is the new CLI) or install slicc-extension, which `curl` prints.
455
+
456
+ A linked slicc CLI that is the exit takes a request's headers as data and sends them all, `Cookie` included. A request goes there instead of the page's fetch or the extension only when it is the exit; sending just the requests with forbidden headers through a link that isn't is [#1486](https://github.com/ai-ecoverse/slicc-bios/issues/1486).
455
457
 
456
458
  A response body that sends nothing for 120 s on the extension or the page fetch fails with `ETIMEDOUT`, so a stalled download doesn't hang. ntfy (ntfy.sh and the tray's ntfy gateway) sends a keepalive every 45 s, so after one missed keepalive the next byte comes at 90 s plus the network's latency; 120 s leaves 30 s of slack beyond that, so a quiet long-lived stream (`ntfy sub`, server-sent events, a long poll) survives it. The bound isn't lifted, because a body that Chrome stops handing over under load must still end. The installer's own idle detector, which re-fetches a stalled tarball, stays at 30 s.
457
459
 
458
460
  The choice is in `document.documentElement.dataset.transport`: `extension` or `page`. `os/network.js` is spectrum's `NetworkPort` (`model.network`, spectrum ≥ 1.32.0), behind the header's **Network** indicator and panel:
459
461
 
460
- - **Route and health:** `extension` is green (`ok`) and turns red (`failing`) when its last request failed, until one gets through. `page` is yellow (`limited`).
462
+ - **Route and health:** `extension` is green (`ok`) and turns red (`failing`) when its last request failed, until one gets through. A request refused for a header the extension can't send is listed under failures but doesn't turn it red. `page` is yellow (`limited`).
461
463
  - **Detail:** one line, next to spectrum's own description of the route. When the route stops answering, it says so and what to do. It is empty while there is nothing to add.
462
464
  - **Failures:** the last 20 requests that failed in the transport, newest first, with URL, error and time.
463
465
  - **Check again** (`check()`) checks a Tailscale that failed again, and refreshes the panel.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.65.4",
3
+ "version": "1.65.6",
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",
@@ -50,13 +50,13 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@ai-ecoverse/slicc": "1.64.3",
53
- "@ai-ecoverse/slicc-browsers": "1.21.1",
53
+ "@ai-ecoverse/slicc-browsers": "1.22.0",
54
54
  "@ai-ecoverse/slicc-cdp": "1.47.5",
55
55
  "@ai-ecoverse/slicc-kernel": "1.178.3",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.14.2",
57
57
  "@ai-ecoverse/slicc-spectrum": "2.11.2",
58
58
  "@ai-ecoverse/slicc-vault": "1.25.2",
59
- "@biomejs/biome": "2.6.4",
59
+ "@biomejs/biome": "2.6.5",
60
60
  "aws4fetch": "1.0.20",
61
61
  "es-module-lexer": "3.0.4",
62
62
  "fake-indexeddb": "6.2.7",
@@ -7,7 +7,7 @@
7
7
  "name": "slicc-bios-packages",
8
8
  "dependencies": {
9
9
  "@ai-ecoverse/slicc-audio": "1.2.0",
10
- "@ai-ecoverse/slicc-browsers": "1.21.1",
10
+ "@ai-ecoverse/slicc-browsers": "1.22.0",
11
11
  "@ai-ecoverse/slicc-capture": "1.4.2",
12
12
  "@ai-ecoverse/slicc-devices": "1.0.2",
13
13
  "@ai-ecoverse/slicc-kernel": "1.178.3",
@@ -40,9 +40,9 @@
40
40
  }
41
41
  },
42
42
  "node_modules/@ai-ecoverse/slicc-browsers": {
43
- "version": "1.21.1",
44
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.21.1.tgz",
45
- "integrity": "sha512-hSDzu9DUZZeU2PIaAaMhhb7QfP0+Fr3qHkAKtzQBfCj3LwI+4uaUWE9Xv9zwlwZHl0evgfnEf0hoPfkVWSqUEg==",
43
+ "version": "1.22.0",
44
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.22.0.tgz",
45
+ "integrity": "sha512-O06bsrX6Zt2h0T4mgoqa6giFP7qnUvS+s1c0IxwZPRfE3rkhQA8eItWXinMV9D+WlTx3FbAqwCwGThf+dQQZaA==",
46
46
  "license": "Apache-2.0",
47
47
  "engines": {
48
48
  "node": ">=24"
@@ -4,7 +4,7 @@
4
4
  "description": "Packages the BIOS installs from npm into OPFS, pinned by package-lock.json and pnpm-lock.yaml",
5
5
  "dependencies": {
6
6
  "@ai-ecoverse/slicc-audio": "1.2.0",
7
- "@ai-ecoverse/slicc-browsers": "1.21.1",
7
+ "@ai-ecoverse/slicc-browsers": "1.22.0",
8
8
  "@ai-ecoverse/slicc-capture": "1.4.2",
9
9
  "@ai-ecoverse/slicc-devices": "1.0.2",
10
10
  "@ai-ecoverse/slicc-kernel": "1.178.3",
@@ -12,8 +12,8 @@ importers:
12
12
  specifier: 1.2.0
13
13
  version: 1.2.0
14
14
  '@ai-ecoverse/slicc-browsers':
15
- specifier: 1.21.1
16
- version: 1.21.1
15
+ specifier: 1.22.0
16
+ version: 1.22.0
17
17
  '@ai-ecoverse/slicc-capture':
18
18
  specifier: 1.4.2
19
19
  version: 1.4.2
@@ -52,8 +52,8 @@ packages:
52
52
  engines: {node: '>=24', slicc-kernel: '>=1.153.0'}
53
53
  hasBin: true
54
54
 
55
- '@ai-ecoverse/slicc-browsers@1.21.1':
56
- resolution: {integrity: sha512-hSDzu9DUZZeU2PIaAaMhhb7QfP0+Fr3qHkAKtzQBfCj3LwI+4uaUWE9Xv9zwlwZHl0evgfnEf0hoPfkVWSqUEg==}
55
+ '@ai-ecoverse/slicc-browsers@1.22.0':
56
+ resolution: {integrity: sha512-O06bsrX6Zt2h0T4mgoqa6giFP7qnUvS+s1c0IxwZPRfE3rkhQA8eItWXinMV9D+WlTx3FbAqwCwGThf+dQQZaA==}
57
57
  engines: {node: '>=24'}
58
58
 
59
59
  '@ai-ecoverse/slicc-capture@1.4.2':
@@ -255,7 +255,7 @@ snapshots:
255
255
  - utf-8-validate
256
256
  - webgpu
257
257
 
258
- '@ai-ecoverse/slicc-browsers@1.21.1': {}
258
+ '@ai-ecoverse/slicc-browsers@1.22.0': {}
259
259
 
260
260
  '@ai-ecoverse/slicc-capture@1.4.2': {}
261
261