@ai-ecoverse/slicc-bios 1.74.5 → 1.74.7
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 +2 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -124,6 +124,7 @@ A SLICC 6 tab registers `/llm-proxy-sw.js` at scope `/`, over seven's `sw.js` wh
|
|
|
124
124
|
A kernel process can still write to `/os/` and `/node_modules/` (any process while the kernel's users are off, root after that). So the service worker checks what it serves from there against the hashes the BIOS recorded, never against bytes on disk:
|
|
125
125
|
|
|
126
126
|
- **The trusted hashes** are in IndexedDB `slicc-bios-integrity`. For `/node_modules/` they come from the npm tarballs the installer checked against `package-lock.json`. For `/os/` they come from the seed files it copied from the deployment. The in-place update (see [Updates](#updates)) runs pnpm, then has the installer fetch, check and hash the changed packages' tarballs again, all under the Web Lock `slicc-packages`.
|
|
127
|
+
- **A closed connection:** Safari on iOS closes IndexedDB connections on its own. When the WebKit process that holds them restarts, it fires `close`; at other times it fires nothing, and the next transaction throws *Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing*. The seed step used to fail with that error on an iPhone. The installer and the service worker each keep one connection to `slicc-bios-integrity`. When a call finds that connection closed (a `close` or `versionchange` event, or an `InvalidStateError` or `UnknownError`), they open the database again and run the call once more. A connection that never opened isn't kept either, so the next call tries again. The installer also takes a fresh OPFS root at every call: when WebKit's networking process restarts, OPFS handles taken before then fail with *UnknownError: Connection is lost*, while a new `navigator.storage.getDirectory()` works, and the installer, a shared worker, can outlive the tab that started it. `ledger-closed.test.mjs` closes the installer's connection just before the seed step, and the BIOS still boots.
|
|
127
128
|
- **Checking:** for a file under `/os/` or `/node_modules/`, the service worker computes its SHA-256 and compares it with the recorded one. It caches a match by path, size and modification time for its lifetime, and serves the bytes it checked. Package manifests it reads to resolve bare imports are checked the same way.
|
|
128
129
|
- **Failing closed:**
|
|
129
130
|
- **A changed file, or one with no recorded hash,** gets a 500 (`sw: <path> was changed after seven installed it`). The service worker notes the path in IndexedDB and sends every open `/os/` tab back through the BIOS, once per path a minute.
|
|
@@ -531,6 +532,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
531
532
|
- **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
533
|
- **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
534
|
- **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.
|
|
535
|
+
- **Another extension's frame in the tab:** while another browser extension has a frame in a tab, such as iCloud Passwords' autofill list after a username field is focused, Chrome refuses slicc-extension's debugger there (`Cannot access a chrome-extension:// URL of different extension`), and it may detach the debugger the moment the frame appears. When the guard's own attach to that tab fails this way, the program's `Target.attachToTarget` gets slicc-extension's refusal (*another browser extension has a frame in this tab…*), not *the guard couldn't keep seven's pages…*. The guard's watch on a tab that failed, or that Chrome detached, is started again at the program's next `Target.attachToTarget`, with the same `Fetch` arm, placement and checks as a new tab, so the tab works again as soon as the frame is gone (focusing an ordinary field removes iCloud's), without a reload. A watch that failed because the tab is protected, or one that saw a protected document, isn't started again.
|
|
534
536
|
- **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
537
|
|
|
536
538
|
- **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.
|
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.7",
|
|
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,9 +49,9 @@
|
|
|
49
49
|
"format": "biome check --write ."
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@ai-ecoverse/slicc": "1.67.
|
|
52
|
+
"@ai-ecoverse/slicc": "1.67.14",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.24.0",
|
|
54
|
-
"@ai-ecoverse/slicc-cdp": "1.
|
|
54
|
+
"@ai-ecoverse/slicc-cdp": "1.51.0",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.189.1",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.14.4",
|
|
57
57
|
"@ai-ecoverse/slicc-spectrum": "2.16.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"modern-tar": "0.8.6",
|
|
65
65
|
"monocart-coverage-reports": "3.2.1",
|
|
66
66
|
"playwright-core": "1.65.0",
|
|
67
|
-
"puppeteer-core": "25.
|
|
67
|
+
"puppeteer-core": "25.17.0",
|
|
68
68
|
"semantic-release": "25.0.9",
|
|
69
69
|
"ws": "8.22.2"
|
|
70
70
|
}
|