@ai-ecoverse/slicc-bios 1.74.14 → 1.75.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.
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.
@@ -521,6 +524,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
521
524
  - **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
522
525
  - **Cut sessions:** a session whose target becomes protected (`Target.targetInfoChanged`), whose page or any frame in it is about to navigate or navigates to a protected URL (`frameRequestedNavigation`, `frameScheduledNavigation`, `frameStartedNavigating`, `frameNavigated`, `navigatedWithinDocument`, or a `Document` request), or whose context runs on a protected origin is detached at once, without the event, and its target counts as protected from then on. Any other page event that names a protected URL or origin is dropped. Its later events and the answers to its pending commands are dropped, and its commands are refused. The guard watches each session's `Page` events itself, and passes them on only when the program asked for them.
523
526
  - **Requests from protected documents:** a request whose URL, document, frame, initiator, `Referer` or `Origin` is protected never reaches the program. The guard continues its `Fetch` pause itself, drops its `Network` events, and refuses its bodies (`Network.getResponseBody`, `getRequestPostData`, `Fetch.getResponseBody` and the like). Bodies, `replayXHR` and `Fetch` replies for a request the guard hasn't seen are refused too. Extra-info events that come before their request wait up to 2 s for it, then are dropped.
527
+ - **Interception goes through `Fetch`:** the deprecated `Network` interception commands (`Network.setRequestInterception`, `continueInterceptedRequest`, `getResponseBodyForInterception`, `takeResponseBodyForInterceptionAsStream`) are refused before Chrome, with a text that says to use `Fetch` instead. A `Network.requestIntercepted` for a protected request never reaches the program; the guard continues it itself, the way it continues a protected `Fetch` pause.
524
528
  - **Cookies a `Fetch` reply sets:** `Fetch.fulfillRequest` and `Fetch.continueResponse` are refused when a `Set-Cookie` or `Set-Cookie2` line (any case, in `responseHeaders` as a list or a map, in base64 `binaryResponseHeaders`, with values split at line breaks) has a `Domain`, quoted or not, that covers a protected host, and when the guard can't read those headers: another shape, a value that isn't a string, a header name that isn't a token, a line break in another header, base64 it can't decode or a `Domain` that isn't a host name. A `responsePhrase` with a CR, LF or NUL, or one that isn't a string, and a `responseCode` that isn't an integer are refused too, and a phrase with a colon has its `Domain` attributes checked the same way. The whole command is refused, never a stripped copy, and the pause can still be answered. A cookie without `Domain` is host-only, so it reaches a protected host only on a protected request, whose replies are already refused. Not covered yet: a `Domain` that covers one of the credential hosts seven signs in with, until [#1606](https://github.com/ai-ecoverse/slicc-bios/pull/1606) adds them to the same check ([#1632](https://github.com/ai-ecoverse/slicc-bios/issues/1632)).
525
529
  - **Shared checks:** commands on one session are checked in order, and a command can use the opener and surface check another command started after it arrived, provided no browser event arrived and no command other than a plain read (`DOM.describeNode`, `Runtime.getProperties`, `Page.getFrameTree`, `Target.getTargetInfo` and the like) was forwarded since that check started, and the check started at most 100 ms ago. A program that sends its reads together, such as a snapshot describing its refs, pays for about one check, not one per command. A failed check is never shared.
526
530
  - **Flat sessions only:** `Target.attachToTarget` and `Target.setAutoAttach` need `flatten: true`. `Target.sendMessageToTarget`, `Target.attachToBrowserTarget` and `Target.exposeDevToolsProtocol` are refused, so no command can be tunnelled past the guard.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.74.14",
3
+ "version": "1.75.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",
@@ -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.3",
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