@ai-ecoverse/slicc-bios 1.55.22 → 1.55.24

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.
Files changed (2) hide show
  1. package/README.md +3 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -419,6 +419,8 @@ Such a browser also leaves seven's own pages out of its listing and refuses navi
419
419
  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.
420
420
 
421
421
  **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. 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.
422
+
423
+ 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.
422
424
  - **Hidden targets:** `Target.getTargets` and the target events leave protected targets out.
423
425
  - **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.
424
426
  - **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.
@@ -468,6 +470,7 @@ seven can also join a tailnet, with a patched build of Tailscale's wasm client (
468
470
  - **Linked devices:** `os/link.js` links a `slicc` CLI to the page over WebRTC, as one exit per link. It speaks the [slicc link protocol](https://github.com/ai-ecoverse/slicc-cli): tunnel frames over data channels, with one channel per stream and a 256 KiB credit window per stream and direction.
469
471
  - **Setup:** a CLI that holds CDP to this browser calls `globalThis.sliccLinkReceive` with a `hello` and its nonce, and the page answers through the CLI's `sliccLinkSend` binding: the offer, then its ICE candidates. The CLI checks that the call came from seven's main frame. CDP carries only the setup; the data goes over WebRTC. Every `hello` names its CLI process (`node`): a new `hello` from the same process replaces its link (after a reload, say), and one from another process (`slicc prompt` next to `slicc`) adds a second link.
470
472
  - **After a link fails:** slicc may send another `hello` in the same page after a link fails; seven replaces the old local link and offers again. That `hello` has a new nonce and the same `node`. Seven itself never retries: a local link whose connection fails (ICE `failed` after a Wi-Fi change, say), or whose channels close without a `bye`, is closed and stays closed until the CLI says `hello` again. slicc owns the retry, so two retriers never race. The `hello` needs no delay. It may arrive before seven has seen its own side fail: the stale link is then closed as `replaced`, and its exit removed, before the new offer, so a `node` never has two links. From then on, signalling under the old nonce (an `answer`, a candidate or a `bye`) is ignored, and seven sends nothing under it. The new link keeps the old address while that is free. It also keeps the name: while the stale link is being replaced, no other process takes the name. Once a failed link is gone, a process waiting for that name may take it back, as below.
473
+ - A replacement link keeps the old name only until its HELLO: a replacement that neither says HELLO nor closes is closed with "no link within 30 s", which releases the name.
471
474
  - **Pairing without CDP (`slicc open`, `slicc pair`):** `os/pair.js` is seven's side of the link spec's §1.3, for a seven in an everyday browser that no CLI controls. It needs slicc ≥ 1.39.0; the tests run the pinned `@ai-ecoverse/slicc` devDependency. `slicc open` opens `<page>#slicc-pair=<port>.<token>.<node-fp>`, and `slicc pair` prints it for the **Link this computer** field under Linked devices (`pairComputer(url)`, spectrum's pairing block, spectrum ≥ 1.88.1). Seven strips the fragment at once, opens the Network panel, and asks *Link SLICC on this computer?* with the node's short fingerprint (`ab12…ef`), which slicc prints too. Only **Link** (`confirmPairing()`) sends a loopback request: one `POST http://127.0.0.1:<port>/slicc/v1/pair` with the token and a non-trickled offer (ICE gathering waits 10 s at most, then the offer goes with what it has), from a page certificate (ECDSA P-256) kept per origin in IndexedDB (`slicc-follow`, key `loopback`). Seven uses the answer only if its fingerprint is the URL's, then pins `{ port, name }` by that fingerprint in `localStorage` (`slicc-os.paired`). It never pairs over ports 9222–9229 or below 1024. Every loopback `POST` gets 15 s (2 minutes while Chrome's Local Network Access prompt is open, which shows as `links.permission`), and a missed deadline reads as nothing answering. A tab that isn't running SLICC keeps the link until it follows the tab that is, then hands the attempt over; under a version skew between the tabs it says so instead and never pairs on its own. A tab that takes over reads the pins again. Refusals read as a sentence in the block: a wrong, used or expired link (`403`), nothing answering (or an origin slicc refuses), a browser that blocks local network access, and an impostor's fingerprint.
472
475
  - **Browsers:** Chrome, Edge and Firefox reach `http://127.0.0.1` from an https page. WebKit (Safari, and every browser on iOS) blocks it as mixed content, so there an attempt fails at once with "Safari doesn’t let an https page reach slicc on this computer…", which points to the join command (the tray path) or another browser.
473
476
  - **The device:** keyed by the node's fingerprint, local (the automatic exit, folders, kernel services), but with no `agent` cap, so no remote control: `slicc prompt` never goes over a pairing. Its row stays while slicc isn't running. After a reload, a lost link or a restart of slicc, the tab running SLICC posts `{ offer }` to `/slicc/v1/signal` on the remembered port, then 17117–17126, with backoff from 1 s to 30 s (and at once on `online` or when the tab shows), and takes only an answer with the pinned fingerprint. A `403` on the pinned port means slicc forgot this seven (`slicc unpair`), and the offline row says so until it's paired again. **Unlink** opens `unlink` on the live link (cap `unlink-loopback`), then forgets the pin, even when slicc isn't running or the `unlink` fails: slicc's own pin is harmless then (seven never signals again) until `slicc unpair` removes it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.55.22",
3
+ "version": "1.55.24",
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,7 +49,7 @@
49
49
  "format": "biome check --write ."
50
50
  },
51
51
  "devDependencies": {
52
- "@ai-ecoverse/slicc": "1.61.12",
52
+ "@ai-ecoverse/slicc": "1.61.14",
53
53
  "@ai-ecoverse/slicc-browsers": "1.20.3",
54
54
  "@ai-ecoverse/slicc-cdp": "1.46.2",
55
55
  "@ai-ecoverse/slicc-kernel": "1.174.0",