@ai-ecoverse/slicc-bios 1.57.9 → 1.58.1

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
@@ -24,7 +24,7 @@ The base set pins only what UI boot and the agent install need, as the code show
24
24
  - **the TLS engine:** the kernel loads it from `/node_modules` for every HTTPS connection a program makes (curl, git, the agent's tools); it has no other place to look.
25
25
  - **fnox:** the agent lists its secrets with `fnox env --describe` when it starts, and asks again only when the vault changes, so fnox must be there before the agent (slicc-agent#459).
26
26
 
27
- The other 20 tools are listed in [`src/packages/tools.json`](src/packages/tools.json), in order: grep, sed, curl, tar, gzip, jq and ripgrep first, then gawk, diffutils, patch, xz, bzip2, less, tree, which, procps, ncurses' utilities, mount, slicc-cdp (`playwright-cli`, `curlwright`) and slicc-clipboard. Each comes at the version npm offers, behind [the gate](#optional-packages) (`os/tools.js`):
27
+ The other 21 tools are listed in [`src/packages/tools.json`](src/packages/tools.json), in order: grep, sed, curl, tar, gzip, jq and ripgrep first, then gawk, diffutils, patch, xz, bzip2, less, tree, which, procps, ncurses' utilities, mount, slicc-cdp (`playwright-cli`, `curlwright`), slicc-clipboard and tzdata (data only, no commands; see [Time zones](#time-zones)). Each comes at the version npm offers, behind [the gate](#optional-packages) (`os/tools.js`):
28
28
  - **When:** right after the kernel starts, in parallel with the agent install, and at every update check. The UI and the terminal never wait. The agent's start waits until every tool is installed, refused or failed, for at most two minutes. The essentials go first, so a cap that's hit still leaves them.
29
29
  - **Where:** a pnpm project at `/opt/slicc/tools`, installed as bios's installer. The kernel scans its `node_modules` for commands after `/node_modules` and root's global packages, and before `/opt/user`.
30
30
  - **How:** seven writes the versions it chose into the project's `package.json`, lets pnpm resolve them with `pnpm install --lockfile-only`, and runs [the gate](#optional-packages) on every package in that lock, dependencies included. Only a lock that passes is installed, with `pnpm install --frozen-lockfile`. The project doesn't install peer dependencies on its own (`autoInstallPeers: false`): xz names sed as a peer, and pnpm would otherwise resolve a refused sed again, at npm's latest, as xz's peer, and refuse xz with it. A package the gate refuses is never downloaded, so none of its commands reach the kernel. A refusal puts the project's `package.json` and lock back and tries again without that tool. Both runs pass `--ignore-scripts --ignore-pnpmfile`, so no install, postinstall or prepare script runs. Each of these pnpm runs waits at most 15 minutes for the pnpm store, which the agent's install and other installs share, and is stopped when it writes nothing, download progress included, for 3 minutes, or after 15 minutes in all. A round that stops that way fails its rows, with the reason in their install log, and runs again at the next boot or update check.
@@ -38,6 +38,16 @@ The other 20 tools are listed in [`src/packages/tools.json`](src/packages/tools.
38
38
  - **Install / Update:** each tool has a row (`tools:<id>`, `preinstalled: true`), with the version it has, what npm offers, and why a newer one isn't offered. Retry or Update checks again. There's no Remove.
39
39
  - **Your packages:** a user's own add of one of these packages goes through the gate like a catalog package.
40
40
 
41
+ ## Time zones
42
+
43
+ The kernel puts the browser's zone in every environment as `TZ` (slicc-kernel 1.174.2 and later, for example `TZ=Europe/Berlin`), and coreutils reads it. WASIX programs (python, perl, ruby) use musl, which resolves a zone name only under `/usr/share/zoneinfo/`, `/share/zoneinfo/` or `/etc/zoneinfo/`, and reads `/etc/localtime` when `TZ` isn't set. Seven provides both:
44
+
45
+ - **The data:** [`@ai-ecoverse/tzdata`](https://www.npmjs.com/package/@ai-ecoverse/tzdata), homescoop's build of the IANA time zone database (compiled TZif files, built with `zic` from the upstream release). It's one of [seven's tools](#sevens-tools), so every root gets it in `/opt/slicc/tools/node_modules/@ai-ecoverse/tzdata`, at npm's latest, behind the gate (published from homescoop's main by `ladder-build.yml`, listed in `optional/sources.json`). Its files are under `share/zoneinfo/`.
46
+ - **`/usr/share/zoneinfo`** is a symlink to `/opt/slicc/tools/node_modules/@ai-ecoverse/tzdata/share/zoneinfo`. pnpm's copying layout keeps that path when the package is updated, so the link never names a version. Only root can change `/usr/share` and `/opt/slicc`, so no cone can swap the data.
47
+ - **`/etc/localtime`** is a symlink to `/usr/share/zoneinfo/<zone>`, with the zone from the kernel's `TZ`. When the zone has no file there (an unknown name, a kernel without `TZ`, or tzdata not installed yet), it points at `/usr/share/zoneinfo/UTC`.
48
+ - **When:** bios sets both links (`os/tools.js`) at every boot of the tab that owns the kernel, as seven's tools start right after the kernel, so a zone that changed since the last boot is picked up, and again after every tools round that installs or updates a tool, so the first install's data is too. A round that changes nothing (most update checks) runs nothing. A guest or a follower tab runs on the owner's kernel and links nothing.
49
+ - **What it leaves alone:** a real `/usr/share/zoneinfo` (a directory someone created), and a symlink there that resolves elsewhere. A dangling link elsewhere is replaced. `/etc/localtime` is updated only when it's missing, a link into `/usr/share/zoneinfo/`, or a dangling link. A regular file or a working link elsewhere is the user's and stays. A root from before this (an existing seven root, or one moved from SLICC 6) gets both links at its next boot and the data with its next tools round.
50
+
41
51
  ## What the service worker serves
42
52
 
43
53
  The kernel's root is the OPFS root, so any file a kernel process writes, such as `/home/x.html`, has a URL on seven's origin. The service worker serves only BIOS-managed code as live same-origin content:
@@ -495,7 +505,7 @@ seven can also join a tailnet, with a patched build of Tailscale's wasm client (
495
505
  - **Before HELLO:** each stream channel is its own SCTP stream, so a node's first OPEN can reach the page ahead of its HELLO on the control channel, the order a `slicc prompt`, `abort` or `watch` sometimes arrives in. The page holds up to 64 such frames, 256 KiB in all (one stream's credit window), and serves them in order once the HELLO arrives, as the CLI does for the page's; frames held on a channel that closed meanwhile are dropped. A frame on the control channel before HELLO, a 65th held frame or byte past 256 KiB, a held frame that turns out malformed, and no HELLO within 10 s still close the link: before its HELLO a peer is anonymous.
496
506
  - **Half-open links:** a link that hasn't said HELLO within 30 s of its offer (a follower that gave up on a bootstrap, say) is closed, and its peer connection with it. A device's row follows its link that said HELLO, never a newer half-open one; with only a half-open link left, a known device shows as away. Until a link says HELLO its row shows only that it's connecting, under its bootstrap id: no *Asks to follow*, no Allow and no switches, because its device isn't known yet. So Allow, which keeps the grant with the device's certificate, always finds the device it was clicked for. Unlinking a device drops every link it has and tells the ones that said HELLO.
497
507
  - **Names:** each link gets an address from `198.18.57.0/24` (the first is `.11`) and the name `<host>.slicc.internal`, from the CLI's hostname, made DNS-safe and unique (`lars-mbp-2`). A link keeps its name when it reconnects, also after a reload and in any order, while the name is free: the page remembers each CLI process's name (by device certificate and process id) in `localStorage` (`slicc-os.link-labels`). A CLI that restarts is a new process, so it may come back as `lars-mbp-2` while its old link is still closing; once that link is gone, the new one takes the name back (and its SSH host key is written under it). Port 22 there is the CLI's built-in SSH server, and any other port is the CLI machine's loopback, under the CLI's policy.
498
- - **Into the page (`kernel-in`):** the page's HELLO offers `kernel-in`, so a local CLI serves `http://<port>.kernel.localhost` on its own loopback, on the port its HELLO names as `kernel.port` (80 when it names none; see [Kernel servers](#kernel-servers)) and carries each connection into the page as `OPEN { kind: 'kernel', port }`. The page answers with `kernel.dial({ port })` and pipes both ways with half-close under the same credit window. It refuses port 9222, the CDP facade, with `EACCES`, and anything but a port 1–65535 with `EINVAL`. A port nothing listens on gets `ECONNREFUSED` (the CLI answers 502). Every other node-opened kind is `EOPNOTSUPP`, and an OPEN without a JSON `kind` is `EPROTO`.
508
+ - **Into the page (`kernel-in`):** the page offers `kernel-in` and serves `OPEN { kind: 'kernel' }` to local CLIs only; a remote link gets neither (`EACCES` on a stray OPEN). A local CLI serves `http://<port>.kernel.localhost` on its own loopback, on the port its HELLO names as `kernel.port` (80 when it names none; see [Kernel servers](#kernel-servers)) and carries each connection into the page as `OPEN { kind: 'kernel', port }`. The page answers with `kernel.dial({ port })` and pipes both ways with half-close under the same credit window. It refuses port 9222, the CDP facade, with `EACCES`, and anything but a port 1–65535 with `EINVAL`. A port nothing listens on gets `ECONNREFUSED` (the CLI answers 502). Every other node-opened kind is `EOPNOTSUPP`, and an OPEN without a JSON `kind` is `EPROTO`.
499
509
  - **Browsers (`cdp`):** a CLI with `cdp` lists its browsers in HELLO, and later in `OPEN { kind: 'browsers' }` updates (the page offers cap `browsers`, answers OPENED and END, and replaces the list). Each browser is a runtime of the 9222 facade named `<device>/<browser>`, so `playwright-cli --runtime lars-mbp/chrome …`, or `/json/list?runtime=lars-mbp/chrome`, drives it. Each facade connection opens its own `OPEN { kind: 'cdp', browser }` stream, framed as a `u32` length plus one JSON message (at most 64 MiB, otherwise the stream is reset with `EMSGSIZE`). Without a runtime, the facade still prefers slicc-extension, then a linked browser that hosts this seven (`seven: true`), then the first linked one. The Network panel lists each device's browsers with their runtimes (`devices[].browsers`), and browser automation reads `via: 'link'` when linked browsers are what it drives. Seven shares the browsers only of a slicc CLI at **1.47.3 or later** (it relies on slicc-cli #325, #331, #335, #376 and #388), read from its HELLO's `version`: `dev` passes, and otherwise only the numeric `major.minor.patch` counts, so a `-suffix` is ignored (a Go pseudo-version such as `1.47.4-0.2026…-abc123` passes). A HELLO without `version`, or with one that doesn't parse, counts as older. An older CLI that offers `cdp` lists no browsers, on its device row or on the facade, its `OPEN { kind: 'browsers' }` updates are ignored and a `cdp` open to it is refused with `EACCES`; its row says "Update slicc to 1.47.3 or later to share this computer's browsers." Everything else it offers (`net`, `http`, `ssh`, `ws`, `udp`, its folders and `kernel-in`) stays.
500
510
  - **Sync:** the Network panel's Sync section (spectrum's `model.tray`) shows this tray as `os/tray.js` sees it:
501
511
  - **Name and role:** seven's name, `leader` while it leads the tray (`none` when disconnected), and `hosted`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.57.9",
3
+ "version": "1.58.1",
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",
@@ -51,10 +51,10 @@
51
51
  "devDependencies": {
52
52
  "@ai-ecoverse/slicc": "1.62.1",
53
53
  "@ai-ecoverse/slicc-browsers": "1.20.3",
54
- "@ai-ecoverse/slicc-cdp": "1.46.5",
54
+ "@ai-ecoverse/slicc-cdp": "1.46.7",
55
55
  "@ai-ecoverse/slicc-kernel": "1.175.1",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.13.10",
57
- "@ai-ecoverse/slicc-spectrum": "2.4.1",
57
+ "@ai-ecoverse/slicc-spectrum": "2.5.0",
58
58
  "@ai-ecoverse/slicc-vault": "1.24.0",
59
59
  "@biomejs/biome": "2.6.4",
60
60
  "aws4fetch": "1.0.20",
@@ -6,5 +6,9 @@
6
6
  "@ai-ecoverse/slicc-clipboard": {
7
7
  "repo": "ai-ecoverse/slicc-clipboard",
8
8
  "workflow": [".github/workflows/release.yml", ".github/workflows/ci.yml"]
9
+ },
10
+ "@ai-ecoverse/tzdata": {
11
+ "repo": "ai-ecoverse/homescoop",
12
+ "workflow": [".github/workflows/ladder-build.yml"]
9
13
  }
10
14
  }
@@ -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.175.1",
13
- "@ai-ecoverse/slicc-spectrum": "2.4.1",
13
+ "@ai-ecoverse/slicc-spectrum": "2.5.0",
14
14
  "@ai-ecoverse/wasi-fnox": "1.45.0-2",
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.4.1",
150
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.4.1.tgz",
151
- "integrity": "sha512-osEDvNvPNFEQ4U2ZXRigP9Zd/tbEyiKYWPss8VOGRii+pFAJwAA3k4JEINdxFY6yhgWdVslCA88oLVOqr9Tm0A==",
149
+ "version": "2.5.0",
150
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.5.0.tgz",
151
+ "integrity": "sha512-8og/h50+30nPMJwGT04QWtzw4lbyZJqJiXn3B8/W6zz98MS7zI51kH2bXPfGBlYL8dpNIsHeJBcvlPMH7OBhnQ==",
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.175.1",
10
- "@ai-ecoverse/slicc-spectrum": "2.4.1",
10
+ "@ai-ecoverse/slicc-spectrum": "2.5.0",
11
11
  "@ai-ecoverse/wasi-fnox": "1.45.0-2",
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.175.1
22
22
  version: 1.175.1
23
23
  '@ai-ecoverse/slicc-spectrum':
24
- specifier: 2.4.1
25
- version: 2.4.1
24
+ specifier: 2.5.0
25
+ version: 2.5.0
26
26
  '@ai-ecoverse/wasi-fnox':
27
27
  specifier: 1.45.0-2
28
28
  version: 1.45.0-2
@@ -105,8 +105,8 @@ packages:
105
105
  webgpu:
106
106
  optional: true
107
107
 
108
- '@ai-ecoverse/slicc-spectrum@2.4.1':
109
- resolution: {integrity: sha512-osEDvNvPNFEQ4U2ZXRigP9Zd/tbEyiKYWPss8VOGRii+pFAJwAA3k4JEINdxFY6yhgWdVslCA88oLVOqr9Tm0A==}
108
+ '@ai-ecoverse/slicc-spectrum@2.5.0':
109
+ resolution: {integrity: sha512-8og/h50+30nPMJwGT04QWtzw4lbyZJqJiXn3B8/W6zz98MS7zI51kH2bXPfGBlYL8dpNIsHeJBcvlPMH7OBhnQ==}
110
110
  engines: {node: '>=24'}
111
111
 
112
112
  '@ai-ecoverse/wasi-fnox@1.45.0-2':
@@ -270,7 +270,7 @@ snapshots:
270
270
  - utf-8-validate
271
271
  optional: true
272
272
 
273
- '@ai-ecoverse/slicc-spectrum@2.4.1': {}
273
+ '@ai-ecoverse/slicc-spectrum@2.5.0': {}
274
274
 
275
275
  '@ai-ecoverse/wasi-fnox@1.45.0-2': {}
276
276
 
@@ -85,5 +85,9 @@
85
85
  "@ai-ecoverse/slicc-clipboard": {
86
86
  "id": "clipboard",
87
87
  "label": "slicc-clipboard (pbcopy, xclip)"
88
+ },
89
+ "@ai-ecoverse/tzdata": {
90
+ "id": "tzdata",
91
+ "label": "tzdata (time zones)"
88
92
  }
89
93
  }