@ai-ecoverse/slicc-bios 1.74.15 → 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
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.
|
|
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.
|
|
66
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-devices/-/slicc-devices-1.
|
|
67
|
-
"integrity": "sha512-
|
|
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.
|
|
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.
|
|
22
|
-
version: 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.
|
|
65
|
-
resolution: {integrity: sha512-
|
|
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.
|
|
271
|
+
'@ai-ecoverse/slicc-devices@1.4.0':
|
|
272
272
|
dependencies:
|
|
273
273
|
esptool-js: 0.7.1
|
|
274
274
|
|