@ai-ecoverse/slicc-bios 1.77.0 → 1.77.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
|
@@ -547,7 +547,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
547
547
|
- **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.
|
|
548
548
|
- **Sign-in pages by their URL:** a page whose URL names seven's callback (`www.sliccy.ai/auth/callback`) or a client id seven signs in with is protected, also when the URL is percent-encoded up to five times or nested in another URL. On the link route, slicc-cli's link guard has already cut a protected URL inside another URL down to its origin, so `redirect_uri=https%3A%2F%2Fwww.sliccy.ai%2Fauth%2Fcallback` reaches bios as `redirect_uri=https://www.sliccy.ai`. On that route only, `https://www.sliccy.ai` or `www.sliccy.ai` on its own inside a URL (followed by `?`, `&`, `#`, `;`, a space or the end) counts as seven's callback too, so such a sign-in page stays hidden without the hold. A page there that only links to seven's home page is hidden too, and other `sliccy.ai` addresses aren't affected. On every route (a DevTools port, the link route and slicc-extension), a URL whose `redirect_uri` parameter names seven's bare origin `https://www.sliccy.ai`, with or without a trailing slash or a path, plain or percent-encoded up to five times, counts as seven's callback too (#1638), which also hides any other page whose URL carries such a `redirect_uri`, for example a link back to seven on another site. Such a URL only hides a page while the page is on it, also one that seven or the vault opened: once it leaves, it is listed again, unless a flight rule above held it.
|
|
549
549
|
- **Puppeteer and a held tab:** over the DevTools port and the link, Chrome attaches a held tab's `tab` target before the guard knows which page it holds. When the guard cuts that tab's session on the browser session (its page is held or protected, on the tab's first command or later, or the tab's own address is protected at its attach), it reports `Target.detachedFromTarget` if the client saw it attach and `Target.targetDestroyed` in every case, once, so Puppeteer's connect, which waits for every tab it saw attach to get a page or go away, finishes while a sign-in is held.
|
|
550
|
-
- **The guard decides by itself, too:** every child of a held opener stays held, whatever its origin, including the frames and workers of a held tab (`parentId`). The cross-origin exception applies only to an opener that is itself an unheld HTTP(S) page on seven's or the vault's protected origin, including seven's runtime origin. Outside a linked flight on the link route, a settled ordinary HTTP(S) child of that page can remain drivable when fresh, consistent child and opener metadata proves their origins differ and the opener has no held ancestry after applying the opener rules to each fresh ancestor in its opener and parent chains. Same-origin and inherited `about:blank` or `about:srcdoc` children stay held. An initial empty target explicitly reporting no opener access is not made permanently held merely by that empty metadata; its eventual document is checked before use. Empty targets with opener access remain held.
|
|
550
|
+
- **The guard decides by itself, too:** every child of a held opener stays held, whatever its origin, including the frames and workers of a held tab (`parentId`). The cross-origin exception applies only to an opener that is itself an unheld HTTP(S) page on seven's or the vault's protected origin, including seven's runtime origin. Outside a linked flight on the link route, a settled ordinary HTTP(S) child of that page can remain drivable when fresh, consistent child and opener metadata proves their origins differ and the opener has no held ancestry after applying the opener rules to each fresh ancestor in its opener and parent chains. Same-origin and inherited `about:blank` or `about:srcdoc` children stay held. A page whose frame is still an inheriting blank with opener access, whatever its target URL already says, gets no cross-origin exception: on each command its opener is read fresh (`Target.getTargetInfo`, within the 1 s answer window) and the page is refused unless that read shows the opener unprotected, a failed, unusable or disagreeing read keeps it refused, and an attach by id whose target URL has already moved on is still admitted while its first session command is refused. An initial empty target explicitly reporting no opener access is not made permanently held merely by that empty metadata; its eventual document is checked before use. Empty targets with opener access remain held.
|
|
551
551
|
- **Other sign-in tabs:** the owner watcher holds children of held tabs on every origin. For unheld protected-origin openers, outside sign-in flight it holds children with opener access and inherited about:blank or about:srcdoc children, while skipping other children without opener access; the guard still checks them at attach time. It retains earlier target observations to establish holds, including standalone blank-child events. Its cross-origin exception requires both targets in the same fresh batch; a retained opener URL cannot waive a hold. While sign-in is in flight, the sweep still holds cross-origin children of a protected opener. The watcher connects through slicc-extension and polls every 250 ms once a program or sign-in needs the browser. Only marked popups are held reliably there: an unmarked popup that leaves its initial inherited document before it is observed can be missed (a known gap). Seven's Adobe sign-in and the agent's MCP OAuth and device-code popups carry the hold marker before navigating; without a required holder's answer, sign-in fails.
|
|
552
552
|
- **Kept:** held tab ids are kept in `localStorage` (`slicc-os.held-targets`, the 32 most recently held or seen again), so a reload of the owner keeps them.
|
|
553
553
|
- **The watcher's connections:** it connects to slicc-extension only once a program or a sign-in needs the browser. Before any program gets a browser connection, the owner sweeps every host; if that listing fails, the program gets no connection, and no host connection is opened for it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.77.
|
|
3
|
+
"version": "1.77.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",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ai-ecoverse/slicc": "1.68.1",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.24.0",
|
|
54
|
-
"@ai-ecoverse/slicc-cdp": "1.
|
|
54
|
+
"@ai-ecoverse/slicc-cdp": "1.54.0",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.191.2",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.14.4",
|
|
57
|
-
"@ai-ecoverse/slicc-spectrum": "2.19.
|
|
57
|
+
"@ai-ecoverse/slicc-spectrum": "2.19.1",
|
|
58
58
|
"@ai-ecoverse/slicc-vault": "1.29.0",
|
|
59
59
|
"@biomejs/biome": "2.6.6",
|
|
60
60
|
"aws4fetch": "1.0.20",
|
|
@@ -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.1",
|
|
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.1",
|
|
164
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.19.1.tgz",
|
|
165
|
+
"integrity": "sha512-b3NF5tLVgzgRMKTvrIeZK6Ar9ekR6zhBy1Ypa+7i0s/DCFZoVLWCD2B+zPMN1RvLTZhYhhEckSqK9DwBaOmlyQ==",
|
|
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.1",
|
|
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.1
|
|
28
|
+
version: 2.19.1
|
|
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.1':
|
|
116
|
+
resolution: {integrity: sha512-b3NF5tLVgzgRMKTvrIeZK6Ar9ekR6zhBy1Ypa+7i0s/DCFZoVLWCD2B+zPMN1RvLTZhYhhEckSqK9DwBaOmlyQ==}
|
|
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.1': {}
|
|
294
294
|
|
|
295
295
|
'@ai-ecoverse/wasi-fnox@1.48.0-1': {}
|
|
296
296
|
|