@ai-ecoverse/slicc-bios 1.73.5 → 1.74.0

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 +9 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -551,10 +551,18 @@ A program picks a host by adding `runtime=extension`, `runtime=devtools`, or a l
551
551
 
552
552
  **No consent dialog.** A connection goes straight through once the hook has found a host; seven doesn't ask first. The once-per-session confirm from #138 was removed by Lars's decision W10. The Network panel shows the host in its browser automation line (`browser` on the network port, from `browserVia`): through the extension, through this browser's DevTools port (`devtools`), through a linked browser, or not available.
553
553
 
554
- **Linked devices drive it too (`slicc <join-url> cdp`).** A linked slicc CLI can serve seven's browser as a local CDP endpoint on its own computer (see [Linked devices](#tailscale-proof-of-concept), *Browser control*). Each of its connections reaches the same `cdp` hook as a kernel program's, so it goes through the same guard: seven's own pages and the vault stay out of reach, and the guard's `slicc.route` hint names the host it picked. The hook takes `caller: { kind: 'device', id, name }` and hands it to its `observe` callback; seven's observer doesn't use it today, and the chip takes the device's name from the link. The caller changes nothing in routing, but the device asks with `here: true`: the automatic order stops at the browser seven runs in (the extension, the DevTools port, or a `seven: true` browser from a CLI on this computer) and never falls back to another linked computer's browser. A kernel program's automatic runtime is unchanged.
554
+ **Linked devices drive it too (`slicc <join-url> cdp`).** A linked slicc CLI can serve seven's browser as a local CDP endpoint on its own computer (see [Linked devices](#tailscale-proof-of-concept), *Browser control*). Each of its connections reaches the same `cdp` hook as a kernel program's, so it goes through the same guard: seven's own pages and the vault stay out of reach, and the guard's `slicc.route` hint names the host it picked. The hook takes `caller: { kind: 'device', id, name }` and hands it to its `observe` callback; seven's observer uses it only to drop the stated intent of the device's actions (see [The Browser panel](#the-browser-panel)), and the chip takes the device's name from the link. The caller changes nothing in routing, but the device asks with `here: true`: the automatic order stops at the browser seven runs in (the extension, the DevTools port, or a `seven: true` browser from a CLI on this computer) and never falls back to another linked computer's browser. A kernel program's automatic runtime is unchanged.
555
555
 
556
556
  When no host can drive a browser, `/json/list` and the WebSocket handshake answer `502` with `CDP host: no browser to drive: install slicc-extension, or link a computer with npx sliccy@next`. A runtime that isn't `extension`, `devtools` or a linked browser gets `CDP host: unknown runtime "<name>" (extension, devtools, …)`, listing the linked browsers. `/json/version` answers either way, since a hook is always offered.
557
557
 
558
+ ### The Browser panel
559
+
560
+ The Browser panel (spectrum's `<slicc-browser>`, fed by `os/browser.js` as `model.browser`) lists the tabs programs drive and what they did there. A program reports each step with `Slicc.action`, a notification seven answers itself and never sends to a browser: `phase: 'start'` with `kind`, `tab`, `agent` and the step's own fields, then `phase: 'end'` with `ok` and `error`. `sanitize()` keeps only fields it knows: the kind from a fixed list, a one-line `target` label for clicks, fills and the like, an address without its query, fragment or credentials, a key name, a typed length (never the text), and a known error word. They become a `BrowserAction` in `actions()` and the `action` event.
561
+
562
+ **The stated intent.** playwright-cli and curlwright take `--intent` and `SLICC_INTENT` ([slicc-cdp#810](https://github.com/ai-ecoverse/slicc-cdp/pull/810)), and from slicc-cdp 1.50.0 send the cleaned text as `params.intent` on the start ([slicc-cdp#814](https://github.com/ai-ecoverse/slicc-cdp/pull/814)): what the call is for, in a few words, such as *Filling the order form*. It's text a model wrote, so it's shown only in the panel, as `BrowserAction.intent`, and never drawn on the page by seven. Spectrum 2.16.0 and later show it in the focused tab's driving row (*Watching harbor · Comparing the port forecasts*), on the tab's card and as the row of its recent actions. It's cleaned first: control and format characters (bidi overrides and isolates, zero-width characters, the byte order mark, soft hyphens, tag characters), variation selectors and lone surrogates are removed, only the first line with something visible is kept, whitespace collapses to single spaces, and it's cut to 120 characters. It stays on the action when it ends, like the other fields.
563
+
564
+ **It fails closed.** An intent from a tainted run (a guest's turn or a lick) must never be shown, and every process such a run starts carries a kernel tag `slicc-taint:<id>` (slicc-agent's README, *What a guest's bash leaves behind*), next to others such as `call:<id>`. So the intent is kept only when the kernel says who connected. From slicc-kernel's client protocol 1.17 ([slicc-kernel#1818](https://github.com/ai-ecoverse/slicc-kernel/pull/1818)), the `cdp` hook gets `{ runtime?, stamp? }`, where `stamp` is the connecting process's `ConnectorStamp` (`pid, ppid, uid, gid, user?, groups, users, tag?, tags?`), taken by the kernel at `connect()` and not forgeable by the program. `browserHook` (`os/cdp.js`) turns it into `caller: { kind: 'kernel', stamp }` for the guard and the observer; a device's own `caller` wins over any stamp. The intent is kept only when that stamp has `users` set to `report` or `enforce` (with users `off` nothing is tagged) and every one of `tags ?? [tag]` is a string that doesn't start with `slicc-taint:` (`tags`, when there, must start with `tag`). A process with no tags is trusted. Everything else gets the action without its intent: a request without a stamp (a kernel from before protocol 1.17, before 1.182.0), a linked device, a stamp with users `off`, and tags that aren't a list of strings. The step still shows, under its deterministic label.
565
+
558
566
  ### Tailscale (proof of concept)
559
567
 
560
568
  seven can also join a tailnet, with a patched build of Tailscale's wasm client ([`@tailscale/connect`](https://www.npmjs.com/package/@tailscale/connect)) that adds a full HTTP `fetch`, raw `dial` (TCP and UDP, available to the page as `sliccTailscale.dial`), WebSockets, exit-node selection and status. It runs in its own module worker, `os/tailscale-worker.js`. No CORS applies, because Go makes the requests itself over the tailnet, and its relays (DERP) carry the traffic over WebSocket.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.73.5",
3
+ "version": "1.74.0",
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",
@@ -55,7 +55,7 @@
55
55
  "@ai-ecoverse/slicc-kernel": "1.186.0",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.14.4",
57
57
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
58
- "@ai-ecoverse/slicc-vault": "1.26.0",
58
+ "@ai-ecoverse/slicc-vault": "1.26.1",
59
59
  "@biomejs/biome": "2.6.6",
60
60
  "aws4fetch": "1.0.20",
61
61
  "es-module-lexer": "3.0.4",