@ai-ecoverse/slicc-bios 1.57.8 → 1.58.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
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
|
|
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:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0",
|
|
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.5",
|
|
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.
|
|
57
|
+
"@ai-ecoverse/slicc-spectrum": "2.4.1",
|
|
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.
|
|
13
|
+
"@ai-ecoverse/slicc-spectrum": "2.4.1",
|
|
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.
|
|
150
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.
|
|
151
|
-
"integrity": "sha512-
|
|
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==",
|
|
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.
|
|
10
|
+
"@ai-ecoverse/slicc-spectrum": "2.4.1",
|
|
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.
|
|
25
|
-
version: 2.
|
|
24
|
+
specifier: 2.4.1
|
|
25
|
+
version: 2.4.1
|
|
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.
|
|
109
|
-
resolution: {integrity: sha512-
|
|
108
|
+
'@ai-ecoverse/slicc-spectrum@2.4.1':
|
|
109
|
+
resolution: {integrity: sha512-osEDvNvPNFEQ4U2ZXRigP9Zd/tbEyiKYWPss8VOGRii+pFAJwAA3k4JEINdxFY6yhgWdVslCA88oLVOqr9Tm0A==}
|
|
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.
|
|
273
|
+
'@ai-ecoverse/slicc-spectrum@2.4.1': {}
|
|
274
274
|
|
|
275
275
|
'@ai-ecoverse/wasi-fnox@1.45.0-2': {}
|
|
276
276
|
|