@ai-ecoverse/slicc-bios 1.74.2 → 1.74.4
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
|
@@ -5,7 +5,7 @@ A slim loader for [SLICC](https://github.com/ai-ecoverse/slicc), from the boot-p
|
|
|
5
5
|
The page shows six boot steps as they run:
|
|
6
6
|
|
|
7
7
|
1. **Acquire OPFS** – open the origin private file system and ask for persistent storage.
|
|
8
|
-
2. **Create installer worker** – start `installer.js`, a shared worker that does all of the BIOS's OPFS writes and is shared by every tab. On a shared origin it first disarms SLICC 6's service worker, which would otherwise answer every npm download (see [SLICC 6's proxy worker](#slicc-6s-proxy-worker)). The installer has 30 s to answer. One that an earlier client started (connection #2 or later) can be stuck, so it also says how it reaches the network: it fetches modern-tar from jsDelivr (10 s at most) and checks who answered, and it lists the calls it is running, with how long each has been quiet. The BIOS replaces it when a service worker answered (`a service worker answered its downloads`), nothing answered (`its downloads got no answer in 10 s
|
|
8
|
+
2. **Create installer worker** – start `installer.js`, a shared worker that does all of the BIOS's OPFS writes and is shared by every tab. On a shared origin it first disarms SLICC 6's service worker, which would otherwise answer every npm download (see [SLICC 6's proxy worker](#slicc-6s-proxy-worker)). The installer has 30 s to answer. One that an earlier client started (connection #2 or later) can be stuck, so it also says how it reaches the network: it fetches modern-tar from jsDelivr (10 s at most) and checks who answered, and it lists the calls it is running, with how long each has been quiet. The BIOS replaces it when a service worker answered (`a service worker answered its downloads`), nothing answered (`its downloads got no answer in 10 s`, unless a packages run is going and the installer got data from npm in the last 30 s, so a probe slowed by another tab's downloads stops nothing that still makes progress), or a packages run has had no progress and no download data for 2 minutes (`its packages run made no progress for 121 s at node_modules/pako`, naming the packages it was writing). Replacing means the `reset` call: the old installer ends every other call it runs with `the installer stopped: seven's BIOS replaced it: <why>`, which releases their Web Locks, and closes itself; the BIOS then connects again until a new installer answers (10 tries). The step reads `connection #3: <why>, starting a new installer`, then `connection #1, replaced the installer (<why>)`. An installer that can't reach npm at all (offline) isn't replaced.
|
|
9
9
|
3. **Install packages from npm into OPFS** – the installer reads [`src/packages/package-lock.json`](src/packages/package-lock.json), the lockfile the BIOS ships with. It pins only what UI boot and the agent install need (Lars, 2026-10-21): slicc-kernel, slicc-spectrum, slicc-browsers (the guard's catalog), slicc-capture and slicc-audio (the page's capture and audio), slicc-devices (the page's serial ports, with esptool-js and the pako and atob-lite it depends on, for `esptool`), wasi-pnpm, bash, coreutils, findutils, the TLS engine (the kernel's HTTPS) and fnox (the agent's secrets). Every other tool comes after boot, at npm's `latest` (see [Seven's tools](#sevens-tools)). It skips packages that name an `os` or `cpu` (native binaries such as esbuild's, which can't run in a browser). For every other locked package it downloads the tarball from `registry.npmjs.org` and checks its `integrity`, then unpacks it with the built-in `DecompressionStream` and [`modern-tar`](https://github.com/ayuhito/modern-tar) into OPFS at its lockfile path (`node_modules/…`), dropping `.` segments from entry names and skipping any entry with `..`. A package that is already there is rewritten in place, never emptied first: every file is overwritten whole (an OPFS write commits on close), the entry points come last: a command's wasm (and its variants), then its glue or script with `bin`, `main` and `exports` targets, then `package.json`, and only then do the files the new version no longer has go, so a running kernel or another tab never finds the package missing. Each package's overwrite, sweep and hashes run inside the installed kernel's `replacing()` (`@ai-ecoverse/slicc-kernel/meta`, kernel 1.168.0 and later, loaded once per run like `writeMetadata` below). It holds the package directory's Web Lock `slicc-kernel-replacing:v1:slicc-kernel:/<path>` until the package is written and the running kernels have been told to drop what they cached of it, and every kernel loads a program's files under that lock. So an exec that starts meanwhile waits, then loads the new version whole, never the new wasm with the old glue ([#663](https://github.com/ai-ecoverse/slicc-bios/issues/663)). A kernel without `replacing()` gets its packages written as before. While it unpacks, it hashes every file (SHA-256) and records the hashes in IndexedDB (see [Integrity](#integrity)). It also keeps each file's mode from the tarball, owned by root: once a package's files are in, it hands their paths and modes to the kernel's `writeMetadata` (`@ai-ecoverse/slicc-kernel/meta`, read from the installed kernel), in one batch per run, so an executable outside `bin/`, such as pnpm's `shims/i`, stays executable when the kernel checks modes. The seed's files are recorded as root's `0644`. A kernel without `/meta` skips this. A package installed before the kernel had `/meta` gets its modes once, on the first run with it: the installer fetches its tarball again, checks its integrity, reads the modes from the headers without unpacking, and marks the receipt (`modes: true`). A package installed or replaced later is marked when it's stamped. It also records a receipt in `var/lib/bios/`. A package whose recorded integrity matches the lockfile's and whose files are still there isn't downloaded again, so pinning a new version replaces just that package. Replacing a package keeps its nested `node_modules`, and packages the lockfile no longer lists are deleted along with their receipts and hashes. A package without recorded hashes is downloaded again, even with a receipt, so the first boot after integrity checks arrived downloads the base set once. Last, the installer copies the deployment's `package.json` and `pnpm-lock.yaml` to the OPFS root for pnpm, and the lockfile once more to `var/lib/slicc/pnpm-lock.yaml`, which records what is installed (see [Updates](#updates)).
|
|
10
10
|
|
|
11
11
|
The step says what it waits for. The run takes the Web Lock `slicc-packages`; when another run holds it, the step reads `waiting 30 s for another install of the packages (held by another seven tab)`, or `(held by this installer's other run, 612 s in, at node_modules/pako)`, updated every 30 s, with how many more wait. Then it reads `reading the lockfile`, `downloading <path>` as each package starts, and `3/15 <path>` as each one is in. Its network waits are bounded: a download gets two 30 s windows without data, modern-tar's and the integrity ledger's imports 60 s each, and the `tools.json` fetch 30 s. Whatever else stalls a run (an OPFS write, a kernel's `replacing()` lock) is what the 2-minute check at **Create installer worker** catches. Every boot step that reports nothing for 15 s adds `, nothing new for 15 s` to its last line, once every 15 s, so a stalled boot names the step and the line it stalled at.
|
|
@@ -526,12 +526,12 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
526
526
|
- `Page.createIsolatedWorld` on a frame the guard places as ordinary, always forwarded without `grantUniveralAccess` and `contentSecurityPolicy`, whatever the client asks. A frame that shows Chrome's error page for a refused document, or the guard's own blank, gets the "out of reach" refusal and no context.
|
|
527
527
|
- Exactly `Emulation.setFocusEmulationEnabled`, `setEmulatedMedia`, `setDeviceMetricsOverride` and `setTouchEmulationEnabled`.
|
|
528
528
|
- `Runtime.addBinding` scoped to an isolated world: a non-empty `executionContextName` (not a browser extension's world), or the `executionContextId` of an isolated world on an ordinary origin. `Runtime.bindingCalled` reaches the client only from such a world.
|
|
529
|
-
- `Target.setAutoAttach` whose `filter` would admit tabs (Puppeteer's catch-all filters, `[{}]`) is forwarded with its filter narrowed to tab targets on the browser session (Chrome refuses a filter that allows both tabs and pages there) and to page targets on any other session, so a Puppeteer client gets its tab and
|
|
529
|
+
- `Target.setAutoAttach` whose `filter` would admit tabs (Puppeteer's catch-all filters, `[{}]`) is forwarded with its filter narrowed to tab targets on the browser session (Chrome refuses a filter that allows both tabs and pages there) and to page and iframe targets on any other session, iframe sessions included, so a Puppeteer client gets its tab, page and cross-site iframe (OOPIF) attachments and no workers under them. For a kernel program over the DevTools port and the link, a filter without tabs, slicc-cdp's dedicated-worker HAR capture (`[{type: "worker"}]`), shared and service worker filters and an omitted filter (Playwright's) are forwarded as sent, and each worker they attach is judged by its own URL and by its creator: it is cut (resumed, then detached) and never shown if its URL is protected, if the session it attaches under is cut, not yet shown or unknown, if that session's target, its `parentId` or opener (and each of their openers and parents, including a parent session that is itself a worker) is held or protected, or if its creator frame is protected, which also covers a `data:` worker of a protected creator. A `data:` worker an ordinary page created stays shown. Holds raise no event, so every delivery for a worker (events, command answers, its own target events, bindings) re-checks the creator synchronously, with a cached verdict and no CDP call per worker event; a pending or failed verdict fails closed. Cutting a session also cuts every worker it created, and a worker target once cut for a creator reason stays cut if attached again on any session, browser-level included. `Target.getTargets` and discovery name a worker only when the client holds a shown session for it whose verdict is safe. A remote device (a connection that comes in over the remote CDP stream, `caller.kind === 'device'`) gets no worker session on any route until #1515: over the DevTools port and the link, a filter that admits only worker types is refused (`NO_WORKERS`), an omitted filter goes out with the worker types excluded in front of Chrome's default, a filter that admits a worker type together with any other type is narrowed like a tab-admitting one, any worker attachment that reaches it anyway is cut (resumed, then detached) and never shown, `Target.attachToTarget` of a worker is refused, and workers are left out of its `Target.getTargets` and `Target.getTargetInfo` answers and its discovery events. So for a remote device Playwright's `page.workers()` is empty and Puppeteer gets no workers. On the extension route a worker-only filter reaches the extension unchanged and keeps its `NO_AUTO_ATTACH`, and so does a browser-wide call that admits neither tabs nor pages. Each iframe attachment is judged like a page attachment: it is held (a paused one is resumed once armed) and its session hidden until the guard has placed it. Then it is shown with its target info, or cut (resumed, then detached) and never shown when it is protected by its URL or its ancestry (see "Iframes are judged by their ancestry" above). A shown iframe that navigates into a protected origin is cut like a page. An iframe session takes the same calls and checks as a page session, group 1 included. So over the DevTools port, Puppeteer reads cross-site iframes; through slicc-extension it reads same-site iframes only (see below). A page the guard opens for `Target.createTarget` starts in the background unless the call asks otherwise, so seven stays in front, and the guard turns on focus emulation for it on its own session before the program sees it, so the page counts as focused and visible and renders; a program can still send its own `Emulation.setFocusEmulationEnabled`, one of the admitted display calls. Any other call, such as one asking for iframes only, is forwarded as it came. A `tab` target is judged by the page under it. It is cut if its own URL is protected, if that page is held (a sign-in), has a protected opener or a protected URL, and whenever that page's session is cut later. On the extension route the guard knows the page from the synthetic tab's id; over the DevTools port it learns it when the page attaches under the tab. Before every command on a tab session the guard reads the page under it again, and cuts the tab and refuses if that page is now held or protected, or the read doesn't answer. A tab's URL and title reach the program only in the answer to its own `Target.getTargetInfo` after such a fresh read showed an ordinary page; everywhere else (its attachment, `Target.getTargets`, discovery events) the tab's target info has no URL, title or opener. Until that page is placed as ordinary, a command that names the tab, such as `Target.closeTarget` or `Target.activateTarget`, is refused. A tab session takes only `Target.setAutoAttach`, `Runtime.runIfWaitingForDebugger` and `Target.getTargetInfo` about itself (another `targetId` is refused), and since it reads no page content it needs no content proof, so a new tab that has no URL yet still resumes. A tab with no URL yet doesn't count as protected for that alone; the pages under it are judged by their own URLs and are checked, held and cut like every other page.
|
|
530
530
|
- **Still refused, with the texts above:** init scripts with code (`addInitScript`, `evaluateOnNewDocument`), `Page.addScriptToEvaluateOnLoad`, `Page.setBypassCSP`, an unscoped or main-world `Runtime.addBinding` (`exposeFunction`), every other `Emulation.set*` (user agent, locale, time zone, geolocation and the rest) and the `Network` overrides, including the `Network.setCacheDisabled` that request interception (`route`, `setRequestInterception`) sends.
|
|
531
531
|
- **Attachments before answers:** while a program has browser-wide page auto-attach on, `Target.createTarget` answers only after the new page's attachment has been shown or cut (at most 10 s), the order Chrome keeps and Playwright relies on.
|
|
532
532
|
- **Admitted settings and the window before the arm:** the guard resumes a paused target only once its `Fetch` arm is in place, and from then on the target never commits a protected document (its `Document` request fails, and the session is cut first), so an admitted world or display override at most reaches Chrome's error page. A refused `Fetch.enable` cuts the target. Two windows are left. If the arm is still unanswered after 1 s, an ordinary target is resumed anyway, so it can't hang, and is unarmed until the arm lands. A program can also resume a paused tab itself before the page under it is armed. What covers both: the program's session stays hidden until the guard has placed the target, and a protected commit marks the target's proof uncertain, which refuses its pending reads, and cuts the session, so it is never shown. A vector row that times `Fetch.enable` against the resume comes before group 2.
|
|
533
|
-
- **Auto-attach through slicc-extension:** the extension refuses `Target.setAutoAttach` and has no tab targets, so the hook emulates browser-wide auto-attach on that route. It looks for new tabs by polling `Target.getTargets` every 200 ms, and at once after `Target.createTarget`, attaches each itself and hands the attachment to the guard like a native one. A page whose attach failed, and a synthetic tab the guard cut, are tried again only when the page's URL changes. A held sign-in page, a page its sign-in opened, and a page still on the sign-in marker URL are never attached through the extension at all, so the emulation never puts the extension's debugger on a sign-in in flight. A filter that asks for tabs gets a synthetic `tab` target whose session takes the same three methods and attaches the page under it; it also takes a `Target.detachFromTarget` of that page, which is how the guard's cut of the page reaches it. Every attachment says `waitingForDebugger: false`, because `chrome.debugger` can't pause a new tab; the guard holds the page until it has placed it, as for any page. The extension still refuses every page-session `Target.setAutoAttach`, and the hook passes that refusal on unchanged, so the guard's own placement and any other caller see it as before. On this route only, the guard answers `{}` to a program's page-session call that has no filter or a filter it narrowed (what Playwright and Puppeteer send), and that call attaches nothing. Every other shape, such as an iframes-only filter, keeps the refusal. So on this route cross-site iframes (OOPIFs) and workers aren't attached, and a flow that reads into a cross-site iframe can fail. The emulation doesn't use discovery: `Target.setDiscoverTargets` goes to the extension as the program sent it, and discovery events pass through as the extension sends them.
|
|
534
|
-
- **Linked browsers:** a linked computer's own `slicc` at **1.64.0 or later** admits the same stock-client setup calls on its link guard, so with that CLI the link route declares `stockSetup` (and `forwardAudit`) and stock Playwright and Puppeteer drive ordinary pages through bios's guard and the link guard in series, as a remote device. An older linked CLI keeps its own refusal texts and cannot open those pages; the stock-client link-route test skips when the pinned `@ai-ecoverse/slicc` is older than 1.64.0. The link route does not declare `syntheticAutoAttach` (the link guard delivers tab targets natively). Puppeteer
|
|
533
|
+
- **Auto-attach through slicc-extension:** the extension refuses `Target.setAutoAttach` and has no tab targets, so the hook emulates browser-wide auto-attach on that route. It looks for new tabs by polling `Target.getTargets` every 200 ms, and at once after `Target.createTarget`, attaches each itself and hands the attachment to the guard like a native one. A page whose attach failed, and a synthetic tab the guard cut, are tried again only when the page's URL changes. A held sign-in page, a page its sign-in opened, and a page still on the sign-in marker URL are never attached through the extension at all, so the emulation never puts the extension's debugger on a sign-in in flight. A filter that asks for tabs gets a synthetic `tab` target whose session takes the same three methods and attaches the page under it; it also takes a `Target.detachFromTarget` of that page, which is how the guard's cut of the page reaches it. Every attachment says `waitingForDebugger: false`, because `chrome.debugger` can't pause a new tab; the guard holds the page until it has placed it, as for any page. The extension still refuses every page-session `Target.setAutoAttach`, and the hook passes that refusal on unchanged, so the guard's own placement and any other caller see it as before. On this route only, the guard answers `{}` to a program's page-session call that has no filter or a filter it narrowed (what Playwright and Puppeteer send), and that call attaches nothing. Every other shape, such as an iframes-only filter, keeps the refusal. So on this route cross-site iframes (OOPIFs) and workers aren't attached, because `chrome.debugger` doesn't attach them, and a Playwright or Puppeteer flow that reads into a cross-site iframe can fail. The emulation doesn't use discovery: `Target.setDiscoverTargets` goes to the extension as the program sent it, and discovery events pass through as the extension sends them.
|
|
534
|
+
- **Linked browsers:** a linked computer's own `slicc` at **1.64.0 or later** admits the same stock-client setup calls on its link guard, so with that CLI the link route declares `stockSetup` (and `forwardAudit`) and stock Playwright and Puppeteer drive ordinary pages through bios's guard and the link guard in series, as a remote device. An older linked CLI keeps its own refusal texts and cannot open those pages; the stock-client link-route test skips when the pinned `@ai-ecoverse/slicc` is older than 1.64.0. The link route does not declare `syntheticAutoAttach` (the link guard delivers tab targets natively). Puppeteer reads cross-site iframes on this route too: each iframe target is judged like a page (see the stock clients' setup above). With slicc 1.67.4, `C3.tab-attach` and `C3.tab-iframe-leak` pass on the link route with no stated waiver. `C3.protected-service-worker` skips on every bios route (`not-supported:secureOrigin`).
|
|
535
535
|
|
|
536
536
|
- **Known limit:** extensions that refuse `Target.setAutoAttach` leave an ordinary page with a cross-site iframe locked for paint, DOM, CSS, accessibility and input. The guard fails closed when it cannot place the child.
|
|
537
537
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.4",
|
|
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,16 +50,16 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ai-ecoverse/slicc": "1.67.12",
|
|
53
|
-
"@ai-ecoverse/slicc-browsers": "1.
|
|
53
|
+
"@ai-ecoverse/slicc-browsers": "1.24.0",
|
|
54
54
|
"@ai-ecoverse/slicc-cdp": "1.50.1",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.187.0",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.14.4",
|
|
57
57
|
"@ai-ecoverse/slicc-spectrum": "2.16.1",
|
|
58
|
-
"@ai-ecoverse/slicc-vault": "1.26.
|
|
58
|
+
"@ai-ecoverse/slicc-vault": "1.26.2",
|
|
59
59
|
"@biomejs/biome": "2.6.6",
|
|
60
60
|
"aws4fetch": "1.0.20",
|
|
61
61
|
"es-module-lexer": "3.0.4",
|
|
62
|
-
"fake-indexeddb": "6.2.
|
|
62
|
+
"fake-indexeddb": "6.2.8",
|
|
63
63
|
"lefthook": "2.2.2",
|
|
64
64
|
"modern-tar": "0.8.6",
|
|
65
65
|
"monocart-coverage-reports": "3.2.1",
|
|
@@ -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.
|
|
10
|
+
"@ai-ecoverse/slicc-browsers": "1.24.0",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
12
12
|
"@ai-ecoverse/slicc-devices": "1.2.1",
|
|
13
13
|
"@ai-ecoverse/slicc-kernel": "1.187.0",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"node_modules/@ai-ecoverse/slicc-browsers": {
|
|
43
|
-
"version": "1.
|
|
44
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.
|
|
45
|
-
"integrity": "sha512-
|
|
43
|
+
"version": "1.24.0",
|
|
44
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.24.0.tgz",
|
|
45
|
+
"integrity": "sha512-F4X9HiMtOik8emb7BFSigamI0YYuF3+TY4HUN07t014veOIY0gvbpiNgB47l0RWmeOWvACpnj48prA6jxismUQ==",
|
|
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.
|
|
7
|
+
"@ai-ecoverse/slicc-browsers": "1.24.0",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
9
9
|
"@ai-ecoverse/slicc-devices": "1.2.1",
|
|
10
10
|
"@ai-ecoverse/slicc-kernel": "1.187.0",
|
|
@@ -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.
|
|
16
|
-
version: 1.
|
|
15
|
+
specifier: 1.24.0
|
|
16
|
+
version: 1.24.0
|
|
17
17
|
'@ai-ecoverse/slicc-capture':
|
|
18
18
|
specifier: 1.5.0
|
|
19
19
|
version: 1.5.0
|
|
@@ -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.
|
|
56
|
-
resolution: {integrity: sha512-
|
|
55
|
+
'@ai-ecoverse/slicc-browsers@1.24.0':
|
|
56
|
+
resolution: {integrity: sha512-F4X9HiMtOik8emb7BFSigamI0YYuF3+TY4HUN07t014veOIY0gvbpiNgB47l0RWmeOWvACpnj48prA6jxismUQ==}
|
|
57
57
|
engines: {node: '>=24'}
|
|
58
58
|
|
|
59
59
|
'@ai-ecoverse/slicc-capture@1.5.0':
|
|
@@ -264,7 +264,7 @@ snapshots:
|
|
|
264
264
|
- utf-8-validate
|
|
265
265
|
- webgpu
|
|
266
266
|
|
|
267
|
-
'@ai-ecoverse/slicc-browsers@1.
|
|
267
|
+
'@ai-ecoverse/slicc-browsers@1.24.0': {}
|
|
268
268
|
|
|
269
269
|
'@ai-ecoverse/slicc-capture@1.5.0': {}
|
|
270
270
|
|