@ai-ecoverse/slicc-bios 1.64.2 → 1.64.4
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
|
@@ -166,6 +166,12 @@ The kernel runs with users on (slicc-kernel ≥ 1.81.0): files have owners and m
|
|
|
166
166
|
- **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*.
|
|
167
167
|
- **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.
|
|
168
168
|
- **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.
|
|
169
|
+
- **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:
|
|
170
|
+
- **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.
|
|
171
|
+
- **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.
|
|
172
|
+
- **Who can answer bios's dialog:** only seven's own pages and workers can post to `BroadcastChannel('slicc-approvals')`. A page served from OPFS and a sprinkle's frame run in an opaque origin, so their channel reaches nothing of seven's (`k4.test.mjs` posts a decision from both and the request stays open), and the kernel removes `BroadcastChannel` from every process worker before a program runs.
|
|
173
|
+
- `sudo -k` ends the terminal's window, `sudo -K` removes all of the caller's, and `sudo -n` runs only inside one. A run a timestamp allowed shows nothing in the UI; the kernel logs it with `console.warn`.
|
|
174
|
+
- **Deny and stop** (slicc-agent ≥ 7.28.0, spectrum ≥ 2.10.0): a sudo request from a cone or a scoop carries `stoppable: true`, so the dialog shows *Deny and stop* next to *Deny*, with its buttons in two rows (*Deny*, *Deny and stop* | *Always allow*, *Allow once*). It sends `decide(id, 'stop')` to the agent, which denies the request (`stopped`), withdraws that agent's other waiting sudo and capture requests, and aborts its turn, so a shell loop of `sudo` ends; `sudo` prints `sudo: denied, and the owner stopped this turn`. A terminal's sudo, a follower shell's and every request in bios's own dialog have no turn to stop and never show it; bios's dialog reads a `stop` as a deny.
|
|
169
175
|
- **Denials:** denials under `'report'` and `'enforce'` go to `/var/log/slicc/denials.log`, one JSON line per distinct `(uid, tag, op, path, errno)` with its `count`, `first` and last `time`, plus `user`, `tag` (the process's tag, `null` for an untagged one) and `mode`. They're written within a quarter of a second, at every 100 distinct denials, and when the page is hidden (`visibilitychange`). When the page goes away (`pagehide`), the ones not yet written are kept in `localStorage` (`slicc.denials.spool.*`), and the next page writes them once its kernel is up. The log rotates to `denials.log.1` at 1 MiB. `slicc-denials` (in `/usr/local/bin`) sums up the log and its `.1`: the total and time span, then counts by tag kind (`agent`, `user`, `untagged`), op, errno and path prefix; `--json` prints the same as one object.
|
|
170
176
|
- **Schedules** (slicc-agent ≥ 5.9.0, slicc-kernel ≥ 1.110.0): each user's kernel crontab (`/var/spool/cron/crontabs/<user>`, `crontab -l`) holds them, and the kernel runs a due job as its user. A job that runs `agent send <target> '<message>'` comes back as a cron lick. The agent moves an older agent's `~/.slicc/crontab` lines into the file owner's crontab (as `# name: <name>` and `<schedule> agent send …`) and keeps the file as `~/.slicc/crontab.migrated`.
|
|
171
177
|
- **Not a boundary:** the kernel's loopback (`<port>.kernel.localhost`) isn't one between users (N2). A server any user starts is reachable by every process and by seven's pages.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.64.
|
|
3
|
+
"version": "1.64.4",
|
|
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,11 +51,11 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ai-ecoverse/slicc": "1.64.1",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.21.1",
|
|
54
|
-
"@ai-ecoverse/slicc-cdp": "1.47.
|
|
55
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
54
|
+
"@ai-ecoverse/slicc-cdp": "1.47.4",
|
|
55
|
+
"@ai-ecoverse/slicc-kernel": "1.177.0",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.13.10",
|
|
57
|
-
"@ai-ecoverse/slicc-spectrum": "2.
|
|
58
|
-
"@ai-ecoverse/slicc-vault": "1.24.
|
|
57
|
+
"@ai-ecoverse/slicc-spectrum": "2.10.0",
|
|
58
|
+
"@ai-ecoverse/slicc-vault": "1.24.2",
|
|
59
59
|
"@biomejs/biome": "2.6.4",
|
|
60
60
|
"aws4fetch": "1.0.20",
|
|
61
61
|
"es-module-lexer": "3.0.4",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"description": "SLICC's agent, which the UI installs with pnpm in the background into /opt/agent in OPFS",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@ai-ecoverse/slicc-agent": "7.
|
|
7
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
6
|
+
"@ai-ecoverse/slicc-agent": "7.28.0",
|
|
7
|
+
"@ai-ecoverse/slicc-kernel": "1.177.0"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -14,19 +14,19 @@ importers:
|
|
|
14
14
|
.:
|
|
15
15
|
dependencies:
|
|
16
16
|
'@ai-ecoverse/slicc-agent':
|
|
17
|
-
specifier: 7.
|
|
18
|
-
version: 7.
|
|
17
|
+
specifier: 7.28.0
|
|
18
|
+
version: 7.28.0(@ai-ecoverse/slicc-kernel@1.177.0)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
|
|
19
19
|
'@ai-ecoverse/slicc-kernel':
|
|
20
|
-
specifier: 1.
|
|
21
|
-
version: 1.
|
|
20
|
+
specifier: 1.177.0
|
|
21
|
+
version: 1.177.0
|
|
22
22
|
|
|
23
23
|
packages:
|
|
24
24
|
|
|
25
25
|
'@ai-ecoverse/jerk-oauth@1.4.2':
|
|
26
26
|
resolution: {integrity: sha512-XenbL8KPm7uAABy6eNl8COekMwHyWNaT7kGnaDN9VKjWCRvx2qoYgSSWbYy2fqRVqiYFZRbANDlXAEw6DGOuNA==}
|
|
27
27
|
|
|
28
|
-
'@ai-ecoverse/slicc-agent@7.
|
|
29
|
-
resolution: {integrity: sha512-
|
|
28
|
+
'@ai-ecoverse/slicc-agent@7.28.0':
|
|
29
|
+
resolution: {integrity: sha512-SrSMPg7xH6fgc0JhgnPSGL7pJJM5MMzcR3SN0dY++9ym4ljJ7y7lFrCub9UKkJFoi7fKxj+5SHF54QkaHm5IbA==}
|
|
30
30
|
engines: {node: '>=24'}
|
|
31
31
|
peerDependencies:
|
|
32
32
|
'@ai-ecoverse/slicc-kernel': '>=1.172.2 <2'
|
|
@@ -35,8 +35,8 @@ packages:
|
|
|
35
35
|
'@ai-ecoverse/slicc-spectrum':
|
|
36
36
|
optional: true
|
|
37
37
|
|
|
38
|
-
'@ai-ecoverse/slicc-kernel@1.
|
|
39
|
-
resolution: {integrity: sha512-
|
|
38
|
+
'@ai-ecoverse/slicc-kernel@1.177.0':
|
|
39
|
+
resolution: {integrity: sha512-tSUI1a9+0LsICjdp1Q6VbxvhYzVcBvebhhLN/4UxbGghKLaGPV2hPvoJuoyCaLsEnJ+6pJ8REXm1Qb0M2Iy/Gw==}
|
|
40
40
|
engines: {node: '>=26'}
|
|
41
41
|
|
|
42
42
|
'@ai-ecoverse/slicc-scrub@1.1.0':
|
|
@@ -351,9 +351,9 @@ snapshots:
|
|
|
351
351
|
|
|
352
352
|
'@ai-ecoverse/jerk-oauth@1.4.2': {}
|
|
353
353
|
|
|
354
|
-
'@ai-ecoverse/slicc-agent@7.
|
|
354
|
+
'@ai-ecoverse/slicc-agent@7.28.0(@ai-ecoverse/slicc-kernel@1.177.0)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
|
|
355
355
|
dependencies:
|
|
356
|
-
'@ai-ecoverse/slicc-kernel': 1.
|
|
356
|
+
'@ai-ecoverse/slicc-kernel': 1.177.0
|
|
357
357
|
'@ai-ecoverse/slicc-vault': 1.24.0
|
|
358
358
|
'@aws-sdk/middleware-websocket': 3.972.54
|
|
359
359
|
'@earendil-works/chord': 1.5.0
|
|
@@ -377,7 +377,7 @@ snapshots:
|
|
|
377
377
|
- ws
|
|
378
378
|
- zod
|
|
379
379
|
|
|
380
|
-
'@ai-ecoverse/slicc-kernel@1.
|
|
380
|
+
'@ai-ecoverse/slicc-kernel@1.177.0': {}
|
|
381
381
|
|
|
382
382
|
'@ai-ecoverse/slicc-scrub@1.1.0': {}
|
|
383
383
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"@ai-ecoverse/slicc-browsers": "1.21.1",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.4.2",
|
|
12
12
|
"@ai-ecoverse/slicc-devices": "1.0.2",
|
|
13
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
14
|
-
"@ai-ecoverse/slicc-spectrum": "2.
|
|
15
|
-
"@ai-ecoverse/wasi-fnox": "1.46.0-
|
|
13
|
+
"@ai-ecoverse/slicc-kernel": "1.177.0",
|
|
14
|
+
"@ai-ecoverse/slicc-spectrum": "2.10.0",
|
|
15
|
+
"@ai-ecoverse/wasi-fnox": "1.46.0-2",
|
|
16
16
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
17
17
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
18
18
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-15",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"node_modules/@ai-ecoverse/slicc-kernel": {
|
|
75
|
-
"version": "1.
|
|
76
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.
|
|
77
|
-
"integrity": "sha512-
|
|
75
|
+
"version": "1.177.0",
|
|
76
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.177.0.tgz",
|
|
77
|
+
"integrity": "sha512-tSUI1a9+0LsICjdp1Q6VbxvhYzVcBvebhhLN/4UxbGghKLaGPV2hPvoJuoyCaLsEnJ+6pJ8REXm1Qb0M2Iy/Gw==",
|
|
78
78
|
"license": "Apache-2.0",
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=26"
|
|
@@ -157,18 +157,18 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"node_modules/@ai-ecoverse/slicc-spectrum": {
|
|
160
|
-
"version": "2.
|
|
161
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.
|
|
162
|
-
"integrity": "sha512-
|
|
160
|
+
"version": "2.10.0",
|
|
161
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.10.0.tgz",
|
|
162
|
+
"integrity": "sha512-LpVqWzStnZSBJdr/1pnKXhhjRtLrXInLT7UxzHo3d38k6qJ7241ABESjSMUGErbfdpNwE3XPgyz3ysXzwXwuMQ==",
|
|
163
163
|
"license": "Apache-2.0",
|
|
164
164
|
"engines": {
|
|
165
165
|
"node": ">=24"
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
"node_modules/@ai-ecoverse/wasi-fnox": {
|
|
169
|
-
"version": "1.46.0-
|
|
170
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.46.0-
|
|
171
|
-
"integrity": "sha512-
|
|
169
|
+
"version": "1.46.0-2",
|
|
170
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.46.0-2.tgz",
|
|
171
|
+
"integrity": "sha512-qGcjaW6jbdmGhiq0dsOalo4r1bmROEUB3jG8z9BK9DH7Vei3fleQciJZVhVUiNdl0ZQHgvcHASlyuHansz9DaA==",
|
|
172
172
|
"license": "MIT",
|
|
173
173
|
"engines": {
|
|
174
174
|
"slicc-kernel": ">=1.175.0"
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"@ai-ecoverse/slicc-browsers": "1.21.1",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.4.2",
|
|
9
9
|
"@ai-ecoverse/slicc-devices": "1.0.2",
|
|
10
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
11
|
-
"@ai-ecoverse/slicc-spectrum": "2.
|
|
12
|
-
"@ai-ecoverse/wasi-fnox": "1.46.0-
|
|
10
|
+
"@ai-ecoverse/slicc-kernel": "1.177.0",
|
|
11
|
+
"@ai-ecoverse/slicc-spectrum": "2.10.0",
|
|
12
|
+
"@ai-ecoverse/wasi-fnox": "1.46.0-2",
|
|
13
13
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
14
14
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
15
15
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-15",
|
|
@@ -21,14 +21,14 @@ importers:
|
|
|
21
21
|
specifier: 1.0.2
|
|
22
22
|
version: 1.0.2
|
|
23
23
|
'@ai-ecoverse/slicc-kernel':
|
|
24
|
-
specifier: 1.
|
|
25
|
-
version: 1.
|
|
24
|
+
specifier: 1.177.0
|
|
25
|
+
version: 1.177.0
|
|
26
26
|
'@ai-ecoverse/slicc-spectrum':
|
|
27
|
-
specifier: 2.
|
|
28
|
-
version: 2.
|
|
27
|
+
specifier: 2.10.0
|
|
28
|
+
version: 2.10.0
|
|
29
29
|
'@ai-ecoverse/wasi-fnox':
|
|
30
|
-
specifier: 1.46.0-
|
|
31
|
-
version: 1.46.0-
|
|
30
|
+
specifier: 1.46.0-2
|
|
31
|
+
version: 1.46.0-2
|
|
32
32
|
'@ai-ecoverse/wasi-pnpm':
|
|
33
33
|
specifier: 12.9.1-21
|
|
34
34
|
version: 12.9.1-21
|
|
@@ -65,8 +65,8 @@ packages:
|
|
|
65
65
|
resolution: {integrity: sha512-HVF7NUEZLIopswppBGUOA20HE6cK+Gjyo+UdSXJXm1qqmo5d/2w9GHeTtco4LH25ROFG6zPerzVTrcgfub/aCQ==}
|
|
66
66
|
engines: {node: '>=24', slicc-kernel: '>=1.176.0'}
|
|
67
67
|
|
|
68
|
-
'@ai-ecoverse/slicc-kernel@1.
|
|
69
|
-
resolution: {integrity: sha512-
|
|
68
|
+
'@ai-ecoverse/slicc-kernel@1.177.0':
|
|
69
|
+
resolution: {integrity: sha512-tSUI1a9+0LsICjdp1Q6VbxvhYzVcBvebhhLN/4UxbGghKLaGPV2hPvoJuoyCaLsEnJ+6pJ8REXm1Qb0M2Iy/Gw==}
|
|
70
70
|
engines: {node: '>=26'}
|
|
71
71
|
|
|
72
72
|
'@ai-ecoverse/slicc-ortllama@1.28.0':
|
|
@@ -112,12 +112,12 @@ packages:
|
|
|
112
112
|
webgpu:
|
|
113
113
|
optional: true
|
|
114
114
|
|
|
115
|
-
'@ai-ecoverse/slicc-spectrum@2.
|
|
116
|
-
resolution: {integrity: sha512-
|
|
115
|
+
'@ai-ecoverse/slicc-spectrum@2.10.0':
|
|
116
|
+
resolution: {integrity: sha512-LpVqWzStnZSBJdr/1pnKXhhjRtLrXInLT7UxzHo3d38k6qJ7241ABESjSMUGErbfdpNwE3XPgyz3ysXzwXwuMQ==}
|
|
117
117
|
engines: {node: '>=24'}
|
|
118
118
|
|
|
119
|
-
'@ai-ecoverse/wasi-fnox@1.46.0-
|
|
120
|
-
resolution: {integrity: sha512-
|
|
119
|
+
'@ai-ecoverse/wasi-fnox@1.46.0-2':
|
|
120
|
+
resolution: {integrity: sha512-qGcjaW6jbdmGhiq0dsOalo4r1bmROEUB3jG8z9BK9DH7Vei3fleQciJZVhVUiNdl0ZQHgvcHASlyuHansz9DaA==}
|
|
121
121
|
engines: {slicc-kernel: '>=1.175.0'}
|
|
122
122
|
|
|
123
123
|
'@ai-ecoverse/wasi-pnpm@12.9.1-21':
|
|
@@ -261,7 +261,7 @@ snapshots:
|
|
|
261
261
|
|
|
262
262
|
'@ai-ecoverse/slicc-devices@1.0.2': {}
|
|
263
263
|
|
|
264
|
-
'@ai-ecoverse/slicc-kernel@1.
|
|
264
|
+
'@ai-ecoverse/slicc-kernel@1.177.0': {}
|
|
265
265
|
|
|
266
266
|
'@ai-ecoverse/slicc-ortllama@1.28.0':
|
|
267
267
|
dependencies:
|
|
@@ -279,9 +279,9 @@ snapshots:
|
|
|
279
279
|
- utf-8-validate
|
|
280
280
|
optional: true
|
|
281
281
|
|
|
282
|
-
'@ai-ecoverse/slicc-spectrum@2.
|
|
282
|
+
'@ai-ecoverse/slicc-spectrum@2.10.0': {}
|
|
283
283
|
|
|
284
|
-
'@ai-ecoverse/wasi-fnox@1.46.0-
|
|
284
|
+
'@ai-ecoverse/wasi-fnox@1.46.0-2': {}
|
|
285
285
|
|
|
286
286
|
'@ai-ecoverse/wasi-pnpm@12.9.1-21': {}
|
|
287
287
|
|