@ai-ecoverse/slicc-bios 1.65.6 → 1.66.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 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`):
27
+ The other 22 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, tzdata (data only, no commands; see [Time zones](#time-zones)) and gh-upskill (`upskill`, `gh-upskill`; see [Updating global skills](#updating-global-skills)). 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.
@@ -48,6 +48,15 @@ The kernel puts the browser's zone in every environment as `TZ` (slicc-kernel 1.
48
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
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
50
 
51
+ ## Updating global skills
52
+
53
+ Skills in `/usr/share/skills` that SLICC 6's upskill installed (or `upskill` since) carry a `.upskill` marker with their GitHub source, path and commit, and they go stale. Seven ships [`@ai-ecoverse/gh-upskill`](https://github.com/ai-ecoverse/gh-upskill) as one of [seven's tools](#sevens-tools) (#1468), so every user has `upskill` and `gh-upskill` in `/usr/bin`, root-owned, at npm's latest, behind the gate (published from gh-upskill's main by its `ci.yml`, listed in `optional/sources.json`):
54
+
55
+ - **Checking:** `upskill outdated --dest /usr/share/skills` lists the skills whose path has newer commits upstream, as any user.
56
+ - **Updating:** `/usr/share/skills` is root's, so a cone runs `sudo upskill update <skill> --dest /usr/share/skills` (or `--all`), which asks for approval like any sudo. sudo runs the root-owned `/usr/bin/upskill`; a copy a user installed with gh-upskill's `install.sh` is the user's own, and sudo refuses it (slicc-kernel#1797). The update keeps the skill's state files (slack's `.last-post-*.json`, `emoji-cache.json`) and its folder's modes, so the cones can still read it although sudo keeps the cone's umask 077.
57
+ - **Bins:** the package's `slicc.commands` are a JS command that runs its bash `upskill`, so they also work from a user's own `pnpm add -g`, whose pnpm shim a script command can't answer. Seven installs it in `/opt/slicc/tools` and writes no shim.
58
+ - **Tests:** `upskill.test.mjs` boots seven with gh-upskill from npm (or `SLICC_UPSKILL_TGZ`, a packed tarball, served as a release from gh-upskill's `ci.yml`) and a fake GitHub API at the network level, and checks the cone's `upskill --version`, `upskill outdated`, that the cone can't update `/usr/share/skills` without sudo, and an approved `sudo upskill update`.
59
+
51
60
  ## What the service worker serves
52
61
 
53
62
  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:
@@ -292,7 +301,7 @@ Below the system rows, Install / Update offers **Optional packages** (spectrum
292
301
  - an `@ai-ecoverse/*` package whose locked integrity equals the registry's `dist.integrity` for that exact version, and that npm's stored SLSA v1 provenance (`dist.attestations`, which bios trusts as npm stores it) binds to that integrity (its subject's sha512) and to its publisher's repository and release workflow at `refs/heads/main`. The publisher is bios's own, never read from npm:
293
302
  - a catalog entry's `source`: slicc-jsh's, mcpcat's and slicc-cli's (for wasi-slicc) own `release.yml`, or their `ci.yml` since they moved onto slicc-shared-web's pipeline, and slicc-cdp's `publish-sliccy-browser.yml` or `ci.yml` for sliccy-browser;
294
303
  - otherwise homescoop's `ladder-build.yml` or `publish.yml` for the `wasm-*`, `wasi-*`, `wasix-*` and `py-*` packages;
295
- - and [`sources.json`](src/packages/optional/sources.json) for a dependency-only publisher: slicc-cdp, under sliccy-browser, by its own `release.yml` or `ci.yml`. No npm dist-tag is read: a `certified` tag neither admits nor refuses a release.
304
+ - and [`sources.json`](src/packages/optional/sources.json) for a publisher no catalog entry names: slicc-cdp (under sliccy-browser) and slicc-clipboard by their own `release.yml` or `ci.yml`, tzdata by homescoop's `ladder-build.yml`, and gh-upskill by its `ci.yml`. No npm dist-tag is read: a `certified` tag neither admits nor refuses a release.
296
305
 
297
306
  A release from another repository, another workflow or another ref (a maintenance branch, a tag) is refused, and so is a package with no publisher there.
298
307
  - A release npm marks deprecated is refused, with npm's message ("… is deprecated on npm: …"). An owner who wants a version refused deprecates it. That covers a `certs.json` exact match too, unless the base set's lockfile ships that version: bios asks npm for it, and refuses it when npm deprecates it or doesn't have it. wasi-slicc 1.44.4 and everything before 1.44.1 are refused this way.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.65.6",
3
+ "version": "1.66.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",
@@ -49,10 +49,10 @@
49
49
  "format": "biome check --write ."
50
50
  },
51
51
  "devDependencies": {
52
- "@ai-ecoverse/slicc": "1.64.3",
52
+ "@ai-ecoverse/slicc": "1.65.0",
53
53
  "@ai-ecoverse/slicc-browsers": "1.22.0",
54
54
  "@ai-ecoverse/slicc-cdp": "1.47.5",
55
- "@ai-ecoverse/slicc-kernel": "1.178.3",
55
+ "@ai-ecoverse/slicc-kernel": "1.178.4",
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",
@@ -4,6 +4,6 @@
4
4
  "description": "SLICC's agent, which the UI installs with pnpm in the background into /opt/agent in OPFS",
5
5
  "dependencies": {
6
6
  "@ai-ecoverse/slicc-agent": "7.28.5",
7
- "@ai-ecoverse/slicc-kernel": "1.178.3"
7
+ "@ai-ecoverse/slicc-kernel": "1.178.4"
8
8
  }
9
9
  }
@@ -15,10 +15,10 @@ importers:
15
15
  dependencies:
16
16
  '@ai-ecoverse/slicc-agent':
17
17
  specifier: 7.28.5
18
- version: 7.28.5(@ai-ecoverse/slicc-kernel@1.178.3)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
18
+ version: 7.28.5(@ai-ecoverse/slicc-kernel@1.178.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
19
19
  '@ai-ecoverse/slicc-kernel':
20
- specifier: 1.178.3
21
- version: 1.178.3
20
+ specifier: 1.178.4
21
+ version: 1.178.4
22
22
 
23
23
  packages:
24
24
 
@@ -35,8 +35,8 @@ packages:
35
35
  '@ai-ecoverse/slicc-spectrum':
36
36
  optional: true
37
37
 
38
- '@ai-ecoverse/slicc-kernel@1.178.3':
39
- resolution: {integrity: sha512-tlgDBbhhOD4kh0cZhnKJLo55i8jq+6IE4Ygk/nbFoKtc3WzkEu2FR/Uw2POQtnUB3nwnuwar3ly7JNVBZHswPw==}
38
+ '@ai-ecoverse/slicc-kernel@1.178.4':
39
+ resolution: {integrity: sha512-TysbVXuGkpy0rfxX2u76m2sdreolwEhbB5JnvoNcxgQqg+M6xqT3HIs+h4RTWZwTUNGLrgt9QVm31A0W6u0dBw==}
40
40
  engines: {node: '>=26'}
41
41
 
42
42
  '@ai-ecoverse/slicc-scrub@1.1.0':
@@ -351,9 +351,9 @@ snapshots:
351
351
 
352
352
  '@ai-ecoverse/jerk-oauth@1.8.1': {}
353
353
 
354
- '@ai-ecoverse/slicc-agent@7.28.5(@ai-ecoverse/slicc-kernel@1.178.3)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
354
+ '@ai-ecoverse/slicc-agent@7.28.5(@ai-ecoverse/slicc-kernel@1.178.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
355
355
  dependencies:
356
- '@ai-ecoverse/slicc-kernel': 1.178.3
356
+ '@ai-ecoverse/slicc-kernel': 1.178.4
357
357
  '@ai-ecoverse/slicc-vault': 1.25.0
358
358
  '@aws-sdk/middleware-websocket': 3.972.54
359
359
  '@earendil-works/chord': 1.5.0
@@ -377,7 +377,7 @@ snapshots:
377
377
  - ws
378
378
  - zod
379
379
 
380
- '@ai-ecoverse/slicc-kernel@1.178.3': {}
380
+ '@ai-ecoverse/slicc-kernel@1.178.4': {}
381
381
 
382
382
  '@ai-ecoverse/slicc-scrub@1.1.0': {}
383
383
 
@@ -10,5 +10,9 @@
10
10
  "@ai-ecoverse/tzdata": {
11
11
  "repo": "ai-ecoverse/homescoop",
12
12
  "workflow": [".github/workflows/ladder-build.yml"]
13
+ },
14
+ "@ai-ecoverse/gh-upskill": {
15
+ "repo": "ai-ecoverse/gh-upskill",
16
+ "workflow": [".github/workflows/ci.yml"]
13
17
  }
14
18
  }
@@ -10,7 +10,7 @@
10
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
- "@ai-ecoverse/slicc-kernel": "1.178.3",
13
+ "@ai-ecoverse/slicc-kernel": "1.178.4",
14
14
  "@ai-ecoverse/slicc-spectrum": "2.11.2",
15
15
  "@ai-ecoverse/wasi-fnox": "1.46.0-2",
16
16
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
@@ -72,9 +72,9 @@
72
72
  }
73
73
  },
74
74
  "node_modules/@ai-ecoverse/slicc-kernel": {
75
- "version": "1.178.3",
76
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.178.3.tgz",
77
- "integrity": "sha512-tlgDBbhhOD4kh0cZhnKJLo55i8jq+6IE4Ygk/nbFoKtc3WzkEu2FR/Uw2POQtnUB3nwnuwar3ly7JNVBZHswPw==",
75
+ "version": "1.178.4",
76
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.178.4.tgz",
77
+ "integrity": "sha512-TysbVXuGkpy0rfxX2u76m2sdreolwEhbB5JnvoNcxgQqg+M6xqT3HIs+h4RTWZwTUNGLrgt9QVm31A0W6u0dBw==",
78
78
  "license": "Apache-2.0",
79
79
  "engines": {
80
80
  "node": ">=26"
@@ -7,7 +7,7 @@
7
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
- "@ai-ecoverse/slicc-kernel": "1.178.3",
10
+ "@ai-ecoverse/slicc-kernel": "1.178.4",
11
11
  "@ai-ecoverse/slicc-spectrum": "2.11.2",
12
12
  "@ai-ecoverse/wasi-fnox": "1.46.0-2",
13
13
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
@@ -21,8 +21,8 @@ importers:
21
21
  specifier: 1.0.2
22
22
  version: 1.0.2
23
23
  '@ai-ecoverse/slicc-kernel':
24
- specifier: 1.178.3
25
- version: 1.178.3
24
+ specifier: 1.178.4
25
+ version: 1.178.4
26
26
  '@ai-ecoverse/slicc-spectrum':
27
27
  specifier: 2.11.2
28
28
  version: 2.11.2
@@ -65,8 +65,8 @@ packages:
65
65
  resolution: {integrity: sha512-HVF7NUEZLIopswppBGUOA20HE6cK+Gjyo+UdSXJXm1qqmo5d/2w9GHeTtco4LH25ROFG6zPerzVTrcgfub/aCQ==}
66
66
  engines: {node: '>=24', slicc-kernel: '>=1.176.0'}
67
67
 
68
- '@ai-ecoverse/slicc-kernel@1.178.3':
69
- resolution: {integrity: sha512-tlgDBbhhOD4kh0cZhnKJLo55i8jq+6IE4Ygk/nbFoKtc3WzkEu2FR/Uw2POQtnUB3nwnuwar3ly7JNVBZHswPw==}
68
+ '@ai-ecoverse/slicc-kernel@1.178.4':
69
+ resolution: {integrity: sha512-TysbVXuGkpy0rfxX2u76m2sdreolwEhbB5JnvoNcxgQqg+M6xqT3HIs+h4RTWZwTUNGLrgt9QVm31A0W6u0dBw==}
70
70
  engines: {node: '>=26'}
71
71
 
72
72
  '@ai-ecoverse/slicc-ortllama@1.28.0':
@@ -261,7 +261,7 @@ snapshots:
261
261
 
262
262
  '@ai-ecoverse/slicc-devices@1.0.2': {}
263
263
 
264
- '@ai-ecoverse/slicc-kernel@1.178.3': {}
264
+ '@ai-ecoverse/slicc-kernel@1.178.4': {}
265
265
 
266
266
  '@ai-ecoverse/slicc-ortllama@1.28.0':
267
267
  dependencies:
@@ -89,5 +89,9 @@
89
89
  "@ai-ecoverse/tzdata": {
90
90
  "id": "tzdata",
91
91
  "label": "tzdata (time zones)"
92
+ },
93
+ "@ai-ecoverse/gh-upskill": {
94
+ "id": "upskill",
95
+ "label": "upskill (upskill, gh-upskill)"
92
96
  }
93
97
  }