@ai-ecoverse/slicc-bios 1.74.6 → 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 +1 -0
- package/package.json +2 -2
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.
|
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",
|
|
@@ -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
|
}
|