@ai-ecoverse/slicc-bios 2.4.0 → 2.4.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
|
@@ -567,7 +567,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
567
567
|
- **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.
|
|
568
568
|
- **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`).
|
|
569
569
|
|
|
570
|
-
- **Known limit:**
|
|
570
|
+
- **Known limit:** slicc-extension 7.12.0 and later expose `sliccExtension.frames(tabId)`, and seven hands it to the guard, so an ordinary page with a cross-site iframe is placed and stays drivable. An older extension (7.10.0 and 7.11.x, which seven still supports) has no `frames()`, so the guard can't place the cross-site child and fails closed: the page stays locked for paint, DOM, CSS, accessibility and input, while Runtime reads still work. Once the cross-site frame is gone, the page is drivable again. `guard-paint-extension-frameless.test.mjs` asserts that limit. A page with an error iframe stays locked the same way on the extension route, whatever the extension's version: the extension reports the failed frame only as `kind: 'error'`, without the URL that failed, and an error page for a protected URL must not be drivable. So while the error frame exists, DOM, paint and input are refused and Runtime reads still work, and once it is gone the page is drivable again. `guard-extension-error-frame.test.mjs` asserts that limit. Lifting it needs the extension to report the URL an error frame failed on, such as the `url` of `chrome.webNavigation.onErrorOccurred`, so that only an error frame for a protected URL locks its page. The shared vectors gate `C8.iframe-error` on that capability (`errorFrameClass`, slicc-browsers 1.27.3): the DevTools and link paths declare it and run the row, and the extension path declares it false and skips it as `not-supported:errorFrameClass`.
|
|
571
571
|
|
|
572
572
|
**Sign-in tabs are held for life (#754).** A sign-in popup shows its token or code in its URL and on the IdP's pages, and the guard cannot scrub a page's own content. The owner holds it before sign-in starts. A held tab and its descendants are not listed, attached, auto-attached or reported to a program on any origin until they close. bios's own tests and real-Chrome rows check the hold; the shared `C7.sign-in-hold` vectors of slicc-browsers can't measure it until the sign-in hooks (slicc-browsers#318) ship, so the guard-set harness declares `signInHold` false until then, and #1641 sets it true with the hooks.
|
|
573
573
|
- **Seven's own sign-in:** the popup opens on `about:blank#slicc-sign-in-<nonce>`. bios asks the owner over the `slicc-held` BroadcastChannel to hold it. The owner finds that target by its marker URL on each browser host (slicc-extension, a DevTools port, and a `seven: true` browser from a CLI linked on this computer), holds it, and only then is the popup sent to the IdP. slicc-cli's link guard shows seven's own popup to bios as plain `about:blank`, without the marker, so on a linked browser the owner goes by a baseline instead. Before it opens the popup, the sign-in asks the owner for a baseline (`{ type: 'base', marker }`). The owner lists every linked browser and keeps the ids it saw for that marker. Only then does it answer `based`, and only then does the sign-in open the popup. Its hold ask then says `based: true` and `expect: 1`, the number of popups the sign-in opened. On each linked browser, the owner holds, as soon as it sees them, every page on `about:blank` that one of seven's or the vault's pages opened and that wasn't in the baseline. Every listing it takes starts after `window.open` has returned. It answers `held` only when two listings in a row show the same new pages, the number of new pages it has seen in all equals `expect`, and all of them are held. If it sees more new pages than that, such as a blank another seven page opened at the same moment, it can't tell which one is the sign-in. It keeps them all held and answers `unheld`, so the sign-in stops before the IdP, and trying again works. If it sees fewer by the end of the hold's 5 s, it answers `unheld` too. `held` means the owner holds as many new pages as the sign-in opened, not that the popup is one of them: a blank another seven page opened, listed alone in two listings in a row while the popup isn't listed yet, gets `held` too. So when a linked browser took part in the ask, a `held` answer also puts the sign-in in flight, as a linked flight. The flight rule for it applies only on linked browsers: while a linked flight is on, the watcher and the sweep on a linked browser, and a program's guard on the link route, hold for life every page that one of seven's or the vault's pages opened, cross-origin pages included, as soon as they see it. A program's guard on slicc-extension and a DevTools port honours a `none` flight, as the watcher and sweep there do, but a linked flight changes nothing on those hosts, so a tab seven opens there, noopener included, stays listed and drivable as before, and their sign-in tabs are held by the marker. So the popup is held on whatever page it is first seen on: the authorize URL, a landing page IMS redirected to before anything listed it, or the login page. That doesn't depend on its URL naming seven's client id or callback, and its later pages (login, MFA, consent) stay held. The other page's blank that got the answer stays held as well: a hold is never released (#754), and the opener rules hold a protected `about:blank` anyway. A protected `about:blank` page that was already open, such as a leftover vault, MCP or sprinkle popup, is no longer taken for the sign-in, and the sign-in's hold doesn't take it. The owner takes one baseline at a time: the next sign-in's baseline waits until the previous sign-in's hold is answered, or 5 s after its baseline when no hold came, so an overlapping sign-in's baseline already lists the earlier popup. The sign-in fails closed in each of these cases: no `based` answer within 6 s while bios sees a host; a linked browser the owner couldn't list at the baseline, or one that wasn't there then; a baseline that was lost or expired; no new protected `about:blank` within the 5 s. Each says it couldn't keep the window out of reach. The marker hosts (slicc-extension, a DevTools port) still go by the marker, as before, and ignore the baseline. A hold ask without `based`, such as the agent's MCP OAuth and device-code popups, still holds every protected `about:blank` page on a linked browser, as before. The sweep, the watcher and the guard then treat a held tab on a linked browser as on the other hosts: it isn't listed, attached or read on any later page until it closes. The owner answers `held` once it has held the tab on every listed host, `none` when no host is listed, and `unheld` otherwise, including when a listed host can't be opened. On `unheld`, on `none` while bios sees a host, or on no answer within 6 s while a host is connected, the sign-in stops before the IdP and says so; it never goes on unheld. On `none`, the sign-in goes on in flight too, as before: that flight counts on every host, for the watcher and the sweep. A flight is kept per marker in `localStorage` (`slicc-os.sign-in-flight`, so a reload keeps it) for at most 11 minutes, with whether it is linked. An older bios's plain number still counts on every host; an entry that doesn't say whether it is linked counts as linked. The reverse doesn't hold: an older bios still running in another seven tab can't read the new entries and sees no flight, which only matters while tabs of both versions are open during an update. Seven's sign-in ends its own flight when it ends (its token, an error, Cancel or the timeout), so one sign-in ending doesn't end another's, in this tab or another. Before any program gets a browser connection, the owner sweeps every host: it holds sign-in tabs still on `about:blank`, and while a sign-in is in flight, every page a protected page opened. So a host that connects in the middle of a sign-in never sees its tab.
|
|
@@ -860,7 +860,7 @@ No test calls a real model. Every test serves an empty `packages/agent/` project
|
|
|
860
860
|
[`.github/workflows/ci.yml`](.github/workflows/ci.yml) is one caller of [slicc-shared-web's pipeline](https://github.com/ai-ecoverse/slicc-shared-web#pipeline), pinned to the release `@ai-ecoverse/slicc-shared-web` has in `devDependencies` (Renovate moves both in one PR). It runs on pull requests, the merge queue and pushes to `main`:
|
|
861
861
|
|
|
862
862
|
- **Pull requests:** after lint, the pipeline's `deploy` job publishes a `bb/**` branch's preview (see [Hosting](#hosting)); the tests and reviewers get its URL as `STAGING_URL`.
|
|
863
|
-
- **Pull requests and the merge queue:** lint, then every `test/integration/*.test.mjs` split by the last runs' JUnit timings over 12 pool shards (`ci / integration`), then on a pull request the Claude and Codex reviews (`ci / review`) with this repository's `review-prompt`. The shared guard vectors run as one file per path (devtools, extension, link), target group (`seven`, `vault`, `vault-x`, `apex` and the rest, `test/integration/guard-groups.mjs`) and detach variant (`lagging` or the others), 30 files of 2 to about 12 minutes, so the split can balance them. The slicc CLI tests use `node_modules/.bin/slicc` (or `SLICC_CLI`).
|
|
863
|
+
- **Pull requests and the merge queue:** lint, then every `test/integration/*.test.mjs` split by the last runs' JUnit timings over 12 pool shards (`ci / integration`), then on a pull request the Claude and Codex reviews (`ci / review`) with this repository's `review-prompt`. The shared guard vectors run as one file per path (devtools, extension, link), target group (`seven`, `vault`, `vault-x`, `apex` and the rest, `test/integration/guard-groups.mjs`) and detach variant (`lagging` or the others), 30 files of 2 to about 12 minutes, so the split can balance them. Each path's guard gets the route bios's browser hook gives it: none (`devtools`) over the DevTools port, the linked browser's own route for the link, and `{ kind: 'extension', version }` with the per-browser tab records and the extension's `frames()` for the extension. The run fails before any row if `Browser.getVersion` through the guard doesn't answer `slicc.route` equal to the path, and prints that answer as `GUARD-ROUTE`, and next to it `GUARD-FRAMES hook <path> {route, frames, version}`: the route, whether the guard got a `frames()` hook, and the extension version the page states. The fake extension states the version the real-extension tests run (`CURRENT_EXTENSION` in `test/integration/real-extension.mjs`, 7.12.2), which also puts the Debugger route (7.12.0 and later) under test, and answers `frames()` with the contract of ai-ecoverse/slicc-extension's `extension/cdp.js` (`frames()` and `frameReply()`, unchanged from v7.12.0 to v7.14.3): a version 2 reply with each frame's `kind`, and, only when every frame is ordinary, `rootFrameId`, the frame ids, the local frames and the cross-process owners (`frameId`, `backendNodeId`); an unsettled or failed list, an error frame included, is refused with `slicc: refused: unsettled frame list`. `test/integration/fake-extension-frames.mjs` builds it from a separate browser-level connection, the way the extension's service worker reads outside the page's CDP stream. One difference: the real extension is called with a numeric tab id (`extension.frames(Number(targetId))` in `cdp.js`), while the fake's targets are Chrome target ids, so the harness passes the target id as it is. The frames-less limit row runs a fake at `MIN_EXTENSION_VERSION` (7.10.0) without `frames()`. The slicc CLI tests use `node_modules/.bin/slicc` (or `SLICC_CLI`).
|
|
864
864
|
- **`main`:** semantic-release publishes the npm package (see [The npm package](#the-npm-package)). When it releases, the pipeline's `after-release` publishes that version to seven, in the `production` environment (see [Hosting](#hosting)).
|
|
865
865
|
|
|
866
866
|
Require `ci / integration` and `ci / review`. There is no retry: a flaky test fails the run. The separate `vault drift` workflow is not required.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.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",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ai-ecoverse/slicc": "1.69.4",
|
|
53
|
-
"@ai-ecoverse/slicc-browsers": "1.27.
|
|
53
|
+
"@ai-ecoverse/slicc-browsers": "1.27.3",
|
|
54
54
|
"@ai-ecoverse/slicc-cdp": "2.1.0",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.16.0",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"playwright-core": "1.65.0",
|
|
67
67
|
"puppeteer-core": "25.17.0",
|
|
68
68
|
"semantic-release": "25.0.9",
|
|
69
|
-
"ws": "8.
|
|
69
|
+
"ws": "8.23.0"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -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.27.
|
|
10
|
+
"@ai-ecoverse/slicc-browsers": "1.27.3",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
12
12
|
"@ai-ecoverse/slicc-devices": "1.6.0",
|
|
13
13
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"node_modules/@ai-ecoverse/slicc-browsers": {
|
|
43
|
-
"version": "1.27.
|
|
44
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.27.
|
|
45
|
-
"integrity": "sha512-
|
|
43
|
+
"version": "1.27.3",
|
|
44
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-browsers/-/slicc-browsers-1.27.3.tgz",
|
|
45
|
+
"integrity": "sha512-6TgVO0a8onzw9dx0CDe0tyz3EskASiu8AgoOdg7eafmZhw6y/BRZ2f2M5FTjK1XLK+LZO4wr3QrgwXS71Kze3Q==",
|
|
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.27.
|
|
7
|
+
"@ai-ecoverse/slicc-browsers": "1.27.3",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
9
9
|
"@ai-ecoverse/slicc-devices": "1.6.0",
|
|
10
10
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
@@ -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.27.
|
|
16
|
-
version: 1.27.
|
|
15
|
+
specifier: 1.27.3
|
|
16
|
+
version: 1.27.3
|
|
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.27.
|
|
56
|
-
resolution: {integrity: sha512-
|
|
55
|
+
'@ai-ecoverse/slicc-browsers@1.27.3':
|
|
56
|
+
resolution: {integrity: sha512-6TgVO0a8onzw9dx0CDe0tyz3EskASiu8AgoOdg7eafmZhw6y/BRZ2f2M5FTjK1XLK+LZO4wr3QrgwXS71Kze3Q==}
|
|
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.27.
|
|
267
|
+
'@ai-ecoverse/slicc-browsers@1.27.3': {}
|
|
268
268
|
|
|
269
269
|
'@ai-ecoverse/slicc-capture@1.5.0': {}
|
|
270
270
|
|