@ai-ecoverse/slicc-bios 1.65.7 → 1.66.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 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.
@@ -421,7 +430,7 @@ Programs ask seven's page for what only a page can do through the kernel's `/dev
421
430
  4. **The indicator** (`src/seed/live.js`, `live.add({ kind, label, what, asker, since, action: { label, run } }) → remove()`): while the request runs (the wait for a click doesn't count), spectrum's `live` port shows a chip, "Recording screen", "Recording camera" (`with microphone` when it takes the microphone), "Taking a photo" (a screen or camera still) or "Recording microphone" (a listening transcribe too), with who asked (the cone, `a terminal` or `a program`) and **Stop**, in every tab of this seven. Stop ends the request: a screen or camera recording ends as if Chrome's Stop sharing were pressed and a microphone recording or a Web Speech listen stops, so the program gets the end of the file and finalizes it; a still or a request still starting fails with `stopped in seven`. The chip goes when the request ends, however it ends. Linked follower devices don't see it yet.
422
431
  5. **A listing of devices** (`audio.record` with `devices`, and `capture.devices` for cameras and microphones) gets none of the four: no switch, no consent, no click and no chip, and no prompt either. Listing opens no device and captures nothing (contract §1), and the labels stay empty until the site holds a grant, so a program learns no more than `enumerateDevices()` tells any page.
423
432
  - **`capture.screen`** (`screencapture`, `@ai-ecoverse/slicc-capture/page`): the same gesture check as `open.url`, with the prompt "Capture the screen?". The prompt's action is Choose, and Chrome's picker comes next. The module captures only through seven's `request.display(constraints)`, which calls `getDisplayMedia` with `audio: false` unless a video request has `system: true` (`-A`), when it asks for `audio: true` and the prompt names "your screen and its sound"; Chrome's picker still lets the user decide whether to share sound. `selfBrowserSurface: 'exclude'`, `surfaceSwitching: 'exclude'` and `preferCurrentTab: false` always apply. A video request with `microphone: true` (`-g`) or a device ID (`-G`) also names the microphone in the same prompt, with "for up to N seconds" when `duration` is positive. It follows the same rule as `audio.record`. Cancel opens neither device. Only after that check does seven supply a guarded `request.userMedia` for the default or exact named microphone, with no camera request. When the picked surface's capture handle is seven's or the vault's (`slicc-vault`; every seven page sets `setCaptureHandleConfig({ handle: 'slicc-seven', exposeOrigin: true })` for its own origin, first thing at boot), or its origin is protected, seven stops every track and refuses with `EACCES`, `seven doesn't capture its own pages or the vault`. For a tab, seven waits up to 1 s for a handle that arrives after the capture starts. A tab whose handle is still missing, or any surface Chrome doesn't name as a window or a screen, is refused too (`seven can't tell this tab isn't its own or the vault's (it sets no capture handle), so it doesn't capture it; share a window or the screen`): Chrome hides handles in off-the-record profiles, and an older vault sets none, so a missing handle can't prove the tab is safe. That costs every ordinary tab that sets no capture handle, which is most of them; share a window or the screen to capture one. A captured tab that navigates to a page without a handle is stopped the same way. Seven watches for handle changes from the moment the capture starts, so a change during that wait isn't lost. The same holds while the capture is live: when the captured tab's handle changes to seven's, a protected one or none (`capturehandlechange`), seven stops every track, ends the module's capture and refuses, even if a frame was already taken. A cross-origin navigation clears the handle first, so a tab that navigates to seven is usually refused with the missing-handle text. A window or a whole screen that shows seven, and a protected page that sets no capture handle, are the user's choice in the picker. The vault's top-level pages set `slicc-vault` for seven's production origins (slicc-vault ≥ 1.17.0), so they're refused too. A local seven gets no handle from vault-preview. A page that paints before it sets its capture handle can land in a frame taken in that moment, before seven sees the handle. The dismissed texts are `the request to capture the screen was dismissed` and `nobody answered the request to capture the screen within 60 s`.
424
- - **`capture.camera`** (`media -f avfoundation -i 0`, `@ai-ecoverse/slicc-capture/page`): a still (`type` `image/png`, `image/jpeg` or `image/webp`) or a recording (`video/webm`, `video/mp4`), optionally with the microphone (`microphone: true` or a device ID), through the capture steps above. The module opens the camera only through seven's `request.userMedia(constraints)`, which takes one call per request of exactly `{ video, audio? }`: `video` is `true` or holds only `deviceId` (`{ exact }`, the request's `device`, which must look like a device ID) and `width`, `height`, `frameRate` (a positive number, `{ ideal }` or `{ exact }`); `audio` is present only for a recording with the microphone, as `true` or `{ deviceId: { exact } }` for the request's `microphone`. Any other key, shape or device, or a second call, is refused with `EACCES`, `seven doesn't answer this camera request`, before `getUserMedia` runs. It runs only after the switches, the consent and the click, checks the Camera (and Microphone) switch once more, and stops every track and fails when the request was aborted while the camera opened. The dismissed texts are `the request to use the camera was dismissed` and `nobody answered the request to use the camera within 60 s`.
433
+ - **`capture.camera`** (`media -f avfoundation -i 0`, `@ai-ecoverse/slicc-capture/page`): a still (`type` `image/png`, `image/jpeg` or `image/webp`) or a recording (`video/webm`, `video/mp4`), optionally with the microphone (`microphone: true` or a device ID), through the capture steps above. The module opens the camera only through seven's `request.userMedia(constraints)`, which takes one call per request of exactly `{ video, audio? }`: `video` is `true` or holds only `deviceId` (`{ exact }`, the request's `device`, which must look like a device ID, at most 256 characters) and `width`, `height`, `frameRate` (a positive number, `{ ideal }` or `{ exact }`); `audio` is present only for a recording with the microphone, as `true` or `{ deviceId: { exact } }` for the request's `microphone`. Any other key, shape or device, or a second call, is refused with `EACCES`, `seven doesn't answer this camera request`, before `getUserMedia` runs. It runs only after the switches, the consent and the click, checks the Camera (and Microphone) switch once more, and stops every track and fails when the request was aborted while the camera opened. The dismissed texts are `the request to use the camera was dismissed` and `nobody answered the request to use the camera within 60 s`.
425
434
  - **`capture.devices`** (`media -f avfoundation -list_devices true -i ""`): the module lists cameras and microphones from `enumerateDevices()` (labels are empty until the site holds a grant). It opens nothing, so it gets no prompt, no switch and no chip.
426
435
  - **`clipboard.write`** (`{"kind":"clipboard.write","type":"image/png"}`, the bytes as the body, an empty reply; `screencapture -c`): `src/seed/clipboard.js` writes one `ClipboardItem` of `image/png`, `text/plain` or `text/html`, with `/dev/clipboard`'s focus rule and refusal text. Other types are `ENOTSUP`. The body is read up to 16 MB; beyond that seven cancels the rest and fails with `EIO`, `seven copies at most 16 MB to the clipboard`.
427
436
  - **Audio** (`afplay`, `chime`, `say`, `hear`, `@ai-ecoverse/slicc-audio/page`; kinds `audio.play`, `audio.say`, `audio.voices`, `audio.record`, `audio.transcribe`):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.65.7",
3
+ "version": "1.66.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",
@@ -49,7 +49,7 @@
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
55
  "@ai-ecoverse/slicc-kernel": "1.178.4",
@@ -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
  }
@@ -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
  }