@ai-ecoverse/slicc-bios 2.2.0 → 2.2.2
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
|
@@ -517,6 +517,19 @@ Such a browser also leaves seven's own pages out of its listing and refuses navi
|
|
|
517
517
|
|
|
518
518
|
An older extension, or one that cannot report a supported release version, refuses browser automation with `slicc: refused: Update slicc-extension to use browser automation in seven. Reload this tab after updating.` Fetch and sign-in remain available.
|
|
519
519
|
|
|
520
|
+
**Where `window.sliccExtension` exists.** slicc-extension decides which documents get the page API; bios doesn't remove or shadow the global. From slicc-extension **7.14.4** it exists only in a document whose real origin (`window.origin`) equals the origin of its `https:` URL, and the extension's service worker requires the same of the sender, so a sandboxed document (an opaque origin) on a seven label never has it. Older extensions defined it in such a document too (a CSP-sandboxed file opened top-level, or a popup of a sandboxed frame), where it was inert in practice: its port handoff went to the URL's origin, so it never reached the service worker. A seven with an older extension relies on that inert global, not on the extension's scope. Sandboxed iframes, `srcdoc` frames, `blob:` and `data:` documents never had it, because the extension's content scripts run in the top frame only. That scope needs 7.14.4; browser automation still needs 7.10.0 (`MIN_EXTENSION_VERSION` in `os/extension.js`), and bios checks no version for the scope. `extension-page-api.test.mjs` covers it over the real extension.
|
|
521
|
+
|
|
522
|
+
**Seven's own calls to `extension.cdp`.** Seven's own page code drives the extension's `cdp` without the guard, as privileged page code. Where `extension.cdp` is read and handed on (`os/cdp.js`):
|
|
523
|
+
- `browserHosts` (`:391`) reads `extension?.cdp` (`:396`) and offers it as the `extension` host, wrapped in `extensionConnection` (`:399`, defined at `:232`). Every route below opens that host.
|
|
524
|
+
- `pickBrowserOpen` (`:430`) takes its hosts from `browserHosts` (`:435`) and also returns `extension.cdp` itself as `host` (`:458`). `browserHook` calls it (`:509`) for the guarded path and uses `host` only to listen for `Target.targetDestroyed` (`:491`), which keeps the guard's record of closed tabs; `browserOpener` calls it (`:469`) for the unguarded one.
|
|
525
|
+
|
|
526
|
+
The unguarded callers:
|
|
527
|
+
- **The Browser panel:** `pageClient` (`os/browser.js:180`), opened by `defaultOpener` (`os/browser.js:478`) through `browserOpener` (`os/cdp.js:468`).
|
|
528
|
+
- **The holds** (`os/held.js`): `watchSignIns` (`:211`), `sweep` (`:391`) and `watchOpened` (`:433`), each through the hosts `browserHosts` lists.
|
|
529
|
+
- **`os/os.js`:** the Browser panel (`createBrowser`, `:214`), the `sweep` before every guarded open (`:222`), and the hosts it gives `watchOpened` and `watchSignIns` (`:977`–`:979`). `hosted` (`:383`) and `browserVia` (`os/cdp.js:420`) only check that a host is there and send nothing.
|
|
530
|
+
|
|
531
|
+
Everything a kernel program, the agent or a linked CLI gets goes through `browserHook` (`os/cdp.js:477`), which wraps each connection in `guardProtected` (`os/cdp.js:497`). A new call site that hands `extension.cdp` to anything other than seven's own page code is a visible change to this list.
|
|
532
|
+
|
|
520
533
|
**Seven's own pages and the vault are out of reach.** Every connection, whether through the extension, a DevTools port or a linked browser, goes through a guard (`guardProtected` in `os/guard.js`), so no program in the kernel can drive, read or close a protected tab. A client `Browser.getVersion` result the guard forwards includes `slicc: { route: "extension" | "link" | "devtools" }` as a hint that a guard sits in the path (absence means no information); an inbound `slicc` key on that result is replaced, Chrome's other fields stay, and an error or non-object reply is left alone. What is protected comes from [slicc-browsers](https://github.com/ai-ecoverse/slicc-browsers#protected-origins)' `protectedOrigins` (in the base set): every `sliccy.ai` host, the vault (`vault.sliccy.ai`), `blob:`, `filesystem:` and `view-source:` URLs by the URL inside them, and `devtools:`, plus seven's own origin. A blank popup or frame (`about:blank`, `about:srcdoc`) is protected when its opener is protected or unknown, or when it was protected before. Seven's own pages can show files from OPFS that the user or the agent wrote, and the vault holds the user's secrets.
|
|
521
534
|
|
|
522
535
|
A browser extension's frame inside an ordinary page, such as a password manager's autofill list, does not lock the tab once the linked CLI marks the owner iframe with `sliccExtensionFrame` (version 1). Without that marker the guard behaves as on main. The frame itself stays unattachable and unread, and its URL never appears in discovery, page reads, snapshots, accessibility trees or evaluate results as plain text: redaction is text-based, so an encoded form such as `btoa(iframe.src)` can still pass. The tab's own page stays readable and snapshottable. Screenshots and input are admitted only while every such frame is hidden (no layout box or `visibility: hidden`) and none holds focus through nested documents or shadow roots; when the marker omits `hidden`/`focused`, the guard's own live check must say the same. A screenshot taken while one became shown is thrown away. Opacity and off-screen position do not count as hidden. Whole-page captures and starting a screencast are refused while any extension frame is present; a running screencast is stopped or its later frames are dropped until the frame is gone. A frame from seven's own extension, and any other protected frame, still locks the whole tab. Real-Chrome C9.frame rows stay capability-gated off until a follow-up pins a slicc-cli release that emits the marker (expected after 1.61.12). A race between the visibility or focus check and the CDP reply is an accepted limit.
|
|
@@ -526,7 +539,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
526
539
|
- **Refused commands** answer an error: any command whose `targetId` or `frameId` is a protected target (the guard asks for the target's current URL first) (`Target.attachToTarget`, `activateTarget`, `closeTarget`, `getTargetInfo`, `Browser.getWindowForTarget` and the rest, with or without a session); any command whose `url`, origin (`origin`, `securityOrigin`, `ownerOrigin`, `topLevelSite`, `scopeURL` and the like), `storageKey`, `cacheId` or cookie `domain` is protected, at any depth of its parameters, which covers navigation, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*`, `Storage.*`, `ServiceWorker.*` and cookie writes; `Network.clearBrowserCookies`, `Storage.clearCookies`, `ServiceWorker.stopAllWorkers`, `BackgroundService.clearEvents`, `Storage.getPrivateVerificationTokens` and `Tracing.start`, which reach every origin; `Network.loadNetworkResource`, which follows redirects the guard can't see; `IO.read` and `IO.close` on a stream the guard didn't hand out in an answer; a `ServiceWorker` command for a registration or version the guard hasn't shown; `Target.detachFromTarget` of a session the connection didn't attach; and every `Fetch.*` command without a tab session, so nothing can pause the whole browser. Free-form values such as `expression` or `headers` aren't searched.
|
|
527
540
|
- **Filtered answers and events:** cookie lists leave out cookies whose domain is protected and partitioned cookies under a protected site. `Storage`, `DOMStorage`, `IndexedDB`, `CacheStorage` and `BackgroundService` events that name a protected origin are dropped, and so are service worker registrations and versions on one.
|
|
528
541
|
- **Credential origins (the identity provider seven signs in with):** the Adobe IMS hosts seven signs in with (`https://ims-na1.adobelogin.com` and `https://ims-na1-stg1.adobelogin.com`, from `os/adobe.js`) keep their cookies and web storage out of export on every route, always, and the guard fails closed. The guard reads slicc-browsers' `catalog.credentialOrigins` list, which names the same two hosts, and keeps the IMS hosts from `os/adobe.js` as a floor: a later catalog can add hosts, but one that leaves an IMS host out doesn't reopen its export, and a change to the host seven signs in with is covered without waiting for a catalog release. A `credentialOrigins` field the guard can't read (not a list of origins) makes it withhold the cookies and storage of every origin. A URL or origin is a credential origin when its host is one of those hosts (`http` or `https`, any port); a cookie domain or a top-level site is one when it covers one of them (`adobelogin.com` does; `x.ims-na1.adobelogin.com`, `other.adobelogin.com` and `.adobe.com` don't). Cookie lists (`Network.getCookies`, with or without `urls`, `Network.getAllCookies`, `Storage.getCookies`, `Page.getCookies`) leave out those cookies, partitioned cookies under such a site and any cookie without a domain. Cookie writes and deletes naming one by `url`, `domain` or `partitionKey` (`Network.setCookie`, `setCookies`, `deleteCookies`, `Page.deleteCookie`, `Storage.setCookies`) are refused with the catalog's `credentialOrigins.refusal` text, and so is every `Storage.*`, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*` and `FileSystem.*` command whose origin, storage key (its top-level site too), cache id or site names one, or can't be parsed. `Network.clearBrowserCookies` and `Storage.clearCookies` keep the rule above. `Storage.getAffectedUrlsForThirdPartyCookieMetadata` leaves those URLs out, and storage events naming one are dropped. `Cookie` and `Set-Cookie` headers, `headersText` lines and `associatedCookies`, `blockedCookies` and `exemptedCookies` are stripped from the `Network` and `Fetch` events of a request whose URL, at any hop, is on such a host's site (a parent-domain cookie reaches every host there), and of a request the guard hasn't seen a URL for. On any other request those lists still leave out an entry whose cookie, or whose `Set-Cookie` line's `Domain` (quoted or not, any case), names a credential or protected origin, an entry whose `Domain` isn't a host name, and an entry with neither a cookie nor a line. An `Audits.issueAdded` cookie issue is dropped when its cookie URL, request, cookie domain or raw `Set-Cookie` line names a protected or credential origin, or when the raw line's origin can't be told. The pages stay drivable: they are listed and attachable, and navigation, `Runtime`, `DOM`, `Input`, `Page` and screenshots work as on any ordinary page, because stock clients sign in by filling and clicking the IdP's page through script. So in-page script (`Runtime.evaluate`, Playwright locators) can still read the non-HttpOnly cookies (`document.cookie`), `localStorage`, `sessionStorage` and IndexedDB of those origins, and response bodies, OAuth codes in URLs and `Authorization` headers on a drivable IdP page are not withheld. A sign-in URL that names seven's client or callback stays protected as a whole, as above. The catalog lists the two Adobe IMS hosts as credential origins: their cookies and storage cannot be exported. The Adobe login-UI hosts (`auth.services.adobe.com`, `adobeid-na1.services.adobe.com`) and federated corporate SSO, MFA and consent hosts are not covered: pages on them are drivable and their cookies and storage are exportable, `Domain=.adobe.com` cookies included, because listing a login-UI host would have made every `.adobe.com` cookie a credential cookie. A host added to the catalog's `credentialOrigins` reaches bios with the pinned slicc-browsers release.
|
|
529
|
-
- **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
|
|
542
|
+
- **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. One the guard couldn't prove when it attached (its first read named no URL because it was mid-navigation, or a read failed) is held the same way: the guard checks it again, from the start (URL, protected origins, opener, content proof), at its next navigation or target info change, and every 100 ms while its URL is unread; a protected commit cuts it at once, and if it isn't proved within 10 s it is cut, with its tab's `Target.detachedFromTarget` and `Target.targetDestroyed` and, unless the program holds another session on it, the target's `Target.targetDestroyed`. A session that detaches meanwhile isn't read again. A content read is proved through any session the guard holds on the target, the shown ones first. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
|
|
530
543
|
- **Cut sessions:** a session whose target becomes protected (`Target.targetInfoChanged`), whose page or any frame in it is about to navigate or navigates to a protected URL (`frameRequestedNavigation`, `frameScheduledNavigation`, `frameStartedNavigating`, `frameNavigated`, `navigatedWithinDocument`, or a `Document` request), or whose context runs on a protected origin is detached at once, without the event, and its target counts as protected from then on. Any other page event that names a protected URL or origin is dropped. Its later events and the answers to its pending commands are dropped, and its commands are refused. The guard watches each session's `Page` events itself, and passes them on only when the program asked for them.
|
|
531
544
|
- **Requests from protected documents:** a request whose URL, document, frame, initiator, `Referer` or `Origin` is protected never reaches the program. The guard continues its `Fetch` pause itself, drops its `Network` events, and refuses its bodies (`Network.getResponseBody`, `getRequestPostData`, `Fetch.getResponseBody` and the like). Bodies, `replayXHR` and `Fetch` replies for a request the guard hasn't seen are refused too. Extra-info events that come before their request wait up to 2 s for it, then are dropped.
|
|
532
545
|
- **Interception goes through `Fetch`:** the deprecated `Network` interception commands (`Network.setRequestInterception`, `continueInterceptedRequest`, `getResponseBodyForInterception`, `takeResponseBodyForInterceptionAsStream`) are refused before Chrome, with a text that says to use `Fetch` instead. A `Network.requestIntercepted` for a protected request never reaches the program; the guard continues it itself, the way it continues a protected `Fetch` pause.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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,13 +49,13 @@
|
|
|
49
49
|
"format": "biome check --write ."
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@ai-ecoverse/slicc": "1.
|
|
52
|
+
"@ai-ecoverse/slicc": "1.69.2",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.27.2",
|
|
54
|
-
"@ai-ecoverse/slicc-cdp": "1.54.
|
|
54
|
+
"@ai-ecoverse/slicc-cdp": "1.54.2",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
56
|
-
"@ai-ecoverse/slicc-shared-web": "2.
|
|
57
|
-
"@ai-ecoverse/slicc-spectrum": "2.19.
|
|
58
|
-
"@ai-ecoverse/slicc-vault": "1.29.
|
|
56
|
+
"@ai-ecoverse/slicc-shared-web": "2.16.0",
|
|
57
|
+
"@ai-ecoverse/slicc-spectrum": "2.19.4",
|
|
58
|
+
"@ai-ecoverse/slicc-vault": "1.29.1",
|
|
59
59
|
"@biomejs/biome": "2.6.7",
|
|
60
60
|
"aws4fetch": "1.0.20",
|
|
61
61
|
"es-module-lexer": "3.0.4",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
12
12
|
"@ai-ecoverse/slicc-devices": "1.4.0",
|
|
13
13
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
14
|
-
"@ai-ecoverse/slicc-spectrum": "2.19.
|
|
14
|
+
"@ai-ecoverse/slicc-spectrum": "2.19.4",
|
|
15
15
|
"@ai-ecoverse/wasi-fnox": "1.48.0-1",
|
|
16
16
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
17
17
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
@@ -160,9 +160,9 @@
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
"node_modules/@ai-ecoverse/slicc-spectrum": {
|
|
163
|
-
"version": "2.19.
|
|
164
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.19.
|
|
165
|
-
"integrity": "sha512-
|
|
163
|
+
"version": "2.19.4",
|
|
164
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.19.4.tgz",
|
|
165
|
+
"integrity": "sha512-cR0zJ7ydnnV5UVIDa1nN+NxJteWcps8Vld5iSNpmWk6sj79LIikDZuHy/9dVX/hXCQ8vj3n3pZCmQPqMhuHlCA==",
|
|
166
166
|
"license": "Apache-2.0",
|
|
167
167
|
"engines": {
|
|
168
168
|
"node": ">=24"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
9
9
|
"@ai-ecoverse/slicc-devices": "1.4.0",
|
|
10
10
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
11
|
-
"@ai-ecoverse/slicc-spectrum": "2.19.
|
|
11
|
+
"@ai-ecoverse/slicc-spectrum": "2.19.4",
|
|
12
12
|
"@ai-ecoverse/wasi-fnox": "1.48.0-1",
|
|
13
13
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
14
14
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
@@ -24,8 +24,8 @@ importers:
|
|
|
24
24
|
specifier: 1.191.2
|
|
25
25
|
version: 1.191.2
|
|
26
26
|
'@ai-ecoverse/slicc-spectrum':
|
|
27
|
-
specifier: 2.19.
|
|
28
|
-
version: 2.19.
|
|
27
|
+
specifier: 2.19.4
|
|
28
|
+
version: 2.19.4
|
|
29
29
|
'@ai-ecoverse/wasi-fnox':
|
|
30
30
|
specifier: 1.48.0-1
|
|
31
31
|
version: 1.48.0-1
|
|
@@ -112,8 +112,8 @@ packages:
|
|
|
112
112
|
webgpu:
|
|
113
113
|
optional: true
|
|
114
114
|
|
|
115
|
-
'@ai-ecoverse/slicc-spectrum@2.19.
|
|
116
|
-
resolution: {integrity: sha512-
|
|
115
|
+
'@ai-ecoverse/slicc-spectrum@2.19.4':
|
|
116
|
+
resolution: {integrity: sha512-cR0zJ7ydnnV5UVIDa1nN+NxJteWcps8Vld5iSNpmWk6sj79LIikDZuHy/9dVX/hXCQ8vj3n3pZCmQPqMhuHlCA==}
|
|
117
117
|
engines: {node: '>=24'}
|
|
118
118
|
|
|
119
119
|
'@ai-ecoverse/wasi-fnox@1.48.0-1':
|
|
@@ -290,7 +290,7 @@ snapshots:
|
|
|
290
290
|
- utf-8-validate
|
|
291
291
|
optional: true
|
|
292
292
|
|
|
293
|
-
'@ai-ecoverse/slicc-spectrum@2.19.
|
|
293
|
+
'@ai-ecoverse/slicc-spectrum@2.19.4': {}
|
|
294
294
|
|
|
295
295
|
'@ai-ecoverse/wasi-fnox@1.48.0-1': {}
|
|
296
296
|
|