@ai-ecoverse/slicc-bios 1.74.15 → 1.75.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
@@ -160,7 +160,7 @@ A kernel process can still write to `/os/` and `/node_modules/` (any process whi
160
160
 
161
161
  Setting `localStorage['slicc-os.sign-in'] = 'relay'` forces the first path on a dev origin; the chat test does that. Seven checks the nonce on every path. While it waits, the Adobe row in Settings › Accounts reads *Signing in…* with **Cancel** (slicc-agent ≥ 3.19.0, spectrum ≥ 1.34.0). The agent calls `login(providerId, options, { signal })`, and Cancel aborts the signal. Cancel, or the 10-minute timeout, stops the wait. The token goes to the agent worker's credential store, and the header shows the weekly budget as *Budget N%* (`#usage`), a plain status while seven offers no Monitor panel.
162
162
 
163
- Each screen class has its own layout, kept in `localStorage` (`slicc-os.layout.<screen>`). On desktop and tablet chat and the terminal share the middle, the agents and files are on the left, and file tabs open between them. On a phone it's chat and the terminal, with chat, the agents and files in the bottom rail. Every panel keeps its rail icon while it's open; while it's visible the icon shows selected (`.selected`, `data-visible`, labelled "{Title}, shown", spectrum ≥ 1.53.0), and a click brings it to the front. The header's tray connection (`#chip`) opens Network at its **Sync** section: the tray's state, the float's name, the join link with **Copy**, the followers, and **Disconnect** (after a confirm) or **Reconnect**. The agent's tray port is a placeholder today (offline, no join link), so the section reads offline; seven's own tray leader shows under Linked devices (see [Network](#network)). Memory opens from the View menu. Changes, the browser and the monitor come back as their backends land. Adobe Clean comes from `/fonts/`, which the sliccy-ai worker serves on every host.
163
+ Each screen class has its own layout, kept in `localStorage` (`slicc-os.layout.<screen>`). On desktop and tablet chat and the terminal share the middle, the agents and files are on the left, and file tabs open between them. On a phone it's chat and the terminal, with chat, the agents and files in the bottom rail. Every panel keeps its rail icon while it's open; while it's visible the icon shows selected (`.selected`, `data-visible`, labelled "{Title}, shown", spectrum ≥ 1.53.0), and a click brings it to the front. The Approvals panel (`approvals`, on the right, closed by default; spectrum ≥ 2.14.0) is offered while the approvals port has `history`. The header's tray connection (`#chip`) opens Network at its **Sync** section: the tray's state, the float's name, the join link with **Copy**, the followers, and **Disconnect** (after a confirm) or **Reconnect**. The agent's tray port is a placeholder today (offline, no join link), so the section reads offline; seven's own tray leader shows under Linked devices (see [Network](#network)). Memory opens from the View menu. Changes, the browser and the monitor come back as their backends land. Adobe Clean comes from `/fonts/`, which the sliccy-ai worker serves on every host.
164
164
 
165
165
  ### Kernel users
166
166
 
@@ -182,6 +182,9 @@ The kernel runs with users on (slicc-kernel ≥ 1.81.0): files have owners and m
182
182
  - **A remembered mount** (`slicc-os.mounts`) at, under or above a protected path is dropped at boot under `'enforce'`, with a notice, *A remembered folder wasn’t mounted*.
183
183
  - **Sudo approvals through the agent** (slicc-agent ≥ 7.17.0, slicc-kernel ≥ 1.174.0, spectrum ≥ 1.112.0): bios only routes. While the agent runs, the kernel's `approve` hook hands each request to the agent's `owner.approve(req, { signal, where })` unchanged, the kernel's facts included: `always` (`false` when the line can't be recorded as a rule), `stdin` (`tty`, `none`, `pipe` or `file`) and `rootOnly` (for the directory and each path on the line, whether only root can change it). bios returns the agent's answer as it is. It becomes a `sudo` item in the agent's approvals, which every owner device answers with the same powers: this tab, other tabs, and linked followers with or without Control. The judge is slicc-agent's: it gives each request a level and a reason, and offers *Always allow* only to a person, at level 1, when its model says a later run of the same line can do no more. Enforcement and rule recording are the kernel's: it writes an *Always* as the exact line with `Stdin none`, and runs an *Always* for a line it can't record once. bios checks no command text. A request from a follower's shell names that device (`where`, "on <device>"), and each linked device's agent port is opened with `owner.port({ device })`, so the item records which device answered. The tab hands its own approvals port to `createAgentModel(connection, { approvals })`, so `model.approvals` lists both sets. When the agent can't take a request (it rejects with `EAGAIN`: released, restarting or an older worker), isn't running, or was started from a release older than 7.17.0 (one without the judge, which can still run until it restarts after an update), bios's own dialog below asks instead.
184
184
  - **Sudo approvals in bios's dialog:** without the agent there is no judge, so the kernel's `approve` hook feeds `model.approvals`, spectrum's sudo dialog, with *Allow once* and *Deny* only and no verdict. It shows the resolved path and arguments, shell-quoted, the directory, the requester mapped from the tag and the target. Every tab shows the request (`BroadcastChannel('slicc-approvals')`), and the first decision wins; the other tabs see *Answered in another tab*. The item has `always: false`, and an `always` decision for it, from any tab, is refused with *Always isn't offered for this request.* and the request stays open, so no `NOPASSWD` line is written from bios's dialog.
185
+ - **Approvals panel and Run now** (spectrum ≥ 2.14.1, slicc-kernel ≥ 1.181.0, protocol 1.16; notices need slicc-agent ≥ 7.34.0): bios's ApprovalsPort keeps `history()` (pending and settled records, newest first) and emits `history` when any record changes, so spectrum offers the Approvals panel (`data-surface="approvals"`, right, closed by default). A timed-out sudo stays `unanswered` with `reason: 'timeout'`. **Run now** (`run(id)`) is only for those records: bios calls the kernel's `sudoRun` with the original request so the kernel re-checks policy, command hash and cwd at run time; bios never runs the command itself. `stopRun(id)` signals the run's process group while it is `running`. After a run actually starts, bios sends start and end facts through the owner-device control method `connectAgent().approvalRunNotice(notice)` (feature-detected; older agents log one warning and keep a debug buffer). The agent renders the `sudo-run` lick (`bios:<id>:start` / `:end`); a kernel refusal that runs nothing sends no notice.
186
+ - **Who records:** ownership follows who held the ask. While the agent is up and `owner.approve` resolves (no `EAGAIN`), the item lives in the agent's approvals (`apr-…`); bios's `history()` has no row and stores no replay. bios records only asks its own dialog answered or that timed out there (agent down, released, restarting, an `EAGAIN` fallback, or no judge). History ids are `bios:<kernel id>`, so they stay disjoint from the agent's `apr-…` when the spectrum adapter merges both ports and routes `run`/`stopRun` by id. The notice `id` is that same `bios:<kernel id>`; the agent appends `:start` / `:end` when it renders the `sudo-run` lick, never using an `apr-…` id for a bios-held run.
187
+ - **`runnable`:** `true` only for an unanswered (timed-out) agent sudo that has no run yet, on a kernel that supports `sudoRun` (protocol ≥ 1.16), and when the stored replay still has what `sudoRun` needs (`rootOnly`, absolute `path`/`cwd`, no `validate`, stdin not `pipe`/`file`, within the late-run age). Otherwise `{ reason }` (for example "Run it again in the terminal.", "Needs slicc-kernel protocol 1.16 or later.", "Its input is gone, so it must be asked again."). Spectrum trusts `runnable`: the panel enables Run now only for `true`.
185
188
  - **Sudo timestamps** (slicc-kernel ≥ 1.177.0): as in sudo(8), a person's approval lets the same place run `sudo` again without asking for a few minutes. Seven keeps the kernel's defaults, 5 minutes (`timestamp_timeout`) per terminal (`timestamp_type=tty`), so several `sudo` lines typed in one terminal share the window, and seeds no `Defaults` line; an admin can write one in `/etc/sudoers.d` as root. An agent's bash call has no terminal, so it falls back to `ppid` and each call asks again. Only a person's approval opens the window:
186
189
  - **Through the agent** (slicc-agent ≥ 7.27.0), a person's *Allow once* or *Always allow* answers `{ answer, timestamp: true }` and the judge's approval a plain `once`; bios passes the kernel's request, `timestamp` and `validate` included, and the agent's answer through unchanged.
187
190
  - **In bios's dialog**, which only a person answers, *Allow once* answers `{ answer: 'once', timestamp: true }` when the request carries `timestamp: true`, and plain `once` for a kernel that doesn't; anything else is `deny`. A `sudo -v` reads *start a sudo timestamp for <user> (no command)*, with *Allow once* and *Deny* only.
@@ -542,7 +545,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
542
545
 
543
546
  **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.
544
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.
545
- - **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. 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.
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.
546
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.
547
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.
548
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.74.15",
3
+ "version": "1.75.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",
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@ai-ecoverse/slicc": "1.67.16",
53
53
  "@ai-ecoverse/slicc-browsers": "1.24.0",
54
- "@ai-ecoverse/slicc-cdp": "1.52.1",
54
+ "@ai-ecoverse/slicc-cdp": "1.52.4",
55
55
  "@ai-ecoverse/slicc-kernel": "1.190.0",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.14.4",
57
57
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
@@ -9,7 +9,7 @@
9
9
  "@ai-ecoverse/slicc-audio": "1.2.0",
10
10
  "@ai-ecoverse/slicc-browsers": "1.24.0",
11
11
  "@ai-ecoverse/slicc-capture": "1.5.0",
12
- "@ai-ecoverse/slicc-devices": "1.2.1",
12
+ "@ai-ecoverse/slicc-devices": "1.4.0",
13
13
  "@ai-ecoverse/slicc-kernel": "1.190.0",
14
14
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
15
15
  "@ai-ecoverse/wasi-fnox": "1.48.0-1",
@@ -62,9 +62,9 @@
62
62
  }
63
63
  },
64
64
  "node_modules/@ai-ecoverse/slicc-devices": {
65
- "version": "1.2.1",
66
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-devices/-/slicc-devices-1.2.1.tgz",
67
- "integrity": "sha512-7Ihkpq8b5ruq0gtB6HUJJbwZKFVgqRZjSxd4nsYk2VyszdUCLf2lEvsmb9MIqHOEPEI94ZOZHEOj7ExLU7A1LA==",
65
+ "version": "1.4.0",
66
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-devices/-/slicc-devices-1.4.0.tgz",
67
+ "integrity": "sha512-mWv2dtKV7pHRTqcFpd1E52eEwI3xypp2WoEZTgIns3X/QREBp2/PMXKgM6yKBcgSAPzkwlksnkFWEL4iCG7MuA==",
68
68
  "license": "Apache-2.0",
69
69
  "dependencies": {
70
70
  "esptool-js": "0.7.1"
@@ -6,7 +6,7 @@
6
6
  "@ai-ecoverse/slicc-audio": "1.2.0",
7
7
  "@ai-ecoverse/slicc-browsers": "1.24.0",
8
8
  "@ai-ecoverse/slicc-capture": "1.5.0",
9
- "@ai-ecoverse/slicc-devices": "1.2.1",
9
+ "@ai-ecoverse/slicc-devices": "1.4.0",
10
10
  "@ai-ecoverse/slicc-kernel": "1.190.0",
11
11
  "@ai-ecoverse/slicc-spectrum": "2.16.1",
12
12
  "@ai-ecoverse/wasi-fnox": "1.48.0-1",
@@ -18,8 +18,8 @@ importers:
18
18
  specifier: 1.5.0
19
19
  version: 1.5.0
20
20
  '@ai-ecoverse/slicc-devices':
21
- specifier: 1.2.1
22
- version: 1.2.1
21
+ specifier: 1.4.0
22
+ version: 1.4.0
23
23
  '@ai-ecoverse/slicc-kernel':
24
24
  specifier: 1.190.0
25
25
  version: 1.190.0
@@ -61,8 +61,8 @@ packages:
61
61
  engines: {node: '>=24', slicc-kernel: '>=1.153.0'}
62
62
  hasBin: true
63
63
 
64
- '@ai-ecoverse/slicc-devices@1.2.1':
65
- resolution: {integrity: sha512-7Ihkpq8b5ruq0gtB6HUJJbwZKFVgqRZjSxd4nsYk2VyszdUCLf2lEvsmb9MIqHOEPEI94ZOZHEOj7ExLU7A1LA==}
64
+ '@ai-ecoverse/slicc-devices@1.4.0':
65
+ resolution: {integrity: sha512-mWv2dtKV7pHRTqcFpd1E52eEwI3xypp2WoEZTgIns3X/QREBp2/PMXKgM6yKBcgSAPzkwlksnkFWEL4iCG7MuA==}
66
66
  engines: {node: '>=24', slicc-kernel: '>=1.183.0'}
67
67
 
68
68
  '@ai-ecoverse/slicc-kernel@1.190.0':
@@ -268,7 +268,7 @@ snapshots:
268
268
 
269
269
  '@ai-ecoverse/slicc-capture@1.5.0': {}
270
270
 
271
- '@ai-ecoverse/slicc-devices@1.2.1':
271
+ '@ai-ecoverse/slicc-devices@1.4.0':
272
272
  dependencies:
273
273
  esptool-js: 0.7.1
274
274