@ai-ecoverse/slicc-bios 2.7.1 → 2.7.3

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
@@ -185,7 +185,7 @@ The kernel runs with users on (slicc-kernel ≥ 1.81.0): files have owners and m
185
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`, and its survivors after that (below). 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
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
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`.
188
- - **Survivors** (spectrum ≥ 2.15.0): when a run's leader exits, is stopped or fails, bios looks up the processes still carrying its `sudo-run:<id>` tag as the target user, through a kernel client's `ps()`, leader excluded. If any are left, they're the run's `survivors` (pids), and the end notice carries them. The panel then shows *Still running: pid …* with **Stop**. bios checks the list once a second and drops `survivors` once those processes are gone. `stopRun` on a `done`, `stopped` or `failed` run with survivors sends `SIGTERM` to exactly the listed pids that still carry the tag, as the target user, never pid 1 or lower. The kernel has no kill by tag, so right before each kill bios reads the process list again. It skips a pid that no longer carries the tag as that user, or whose start time or process group changed, as when the process exited and another took its pid. A failed kill is reported only while one of them is still there.
188
+ - **Survivors** (spectrum ≥ 2.15.0): when a run's leader exits, is stopped or fails, bios looks up the processes still carrying its `sudo-run:<id>` tag as the target user, through a kernel client's `ps()`, leader excluded. If any are left, they're the run's `survivors` (pids), and the end notice carries them. bios waits at most a second for that lookup: if the kernel client hasn't connected and answered `ps()` by then, the row ends without `survivors` and sends its end notice anyway, and the once-a-second check below fills `survivors` in when the client answers. The panel then shows *Still running: pid …* with **Stop**. bios checks the list once a second and drops `survivors` once those processes are gone. `stopRun` on a `done`, `stopped` or `failed` run with survivors sends `SIGTERM` to exactly the listed pids that still carry the tag, as the target user, never pid 1 or lower. The kernel has no kill by tag, so right before each kill bios reads the process list again. It skips a pid that no longer carries the tag as that user, or whose start time or process group changed, as when the process exited and another took its pid; it also skips one when that read fails. A failed kill or read is reported (a read as *The kernel's process list isn't available, so it can't be stopped.*) unless a last read shows every listed pid gone.
189
189
  - **Another tab takes over:** the owner's `history` broadcast carries the replay it stored for each record, and every other tab keeps it, dropping a replay whose command, directory, target or user differs from its record's. So when the owner tab closes, a timed-out row stays runnable in the tab that takes over. The kernel runs in the owner tab, so that tab starts a new one. Each record the closed tab had `starting` or `running` is looked up by its `sudo-run:<id>` tag, through a kernel client's `ps()` on that kernel, among the target user's processes, once a second until the process list answers. A run that's found is re-attached: `stopRun` signals its process group, and the row ends (`done`, its exit status unknown) when its leader exits. One that's gone ends at once: `done` with its exit status unknown and an end notice, or `failed` (*The tab that started it closed before it ran.*) if it hadn't started. Until the new kernel's process list answers, `stopRun` refuses with *The kernel's process list isn't available, so it can't be stopped.*
190
190
  - **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:
191
191
  - **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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
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",
@@ -52,7 +52,7 @@
52
52
  "@ai-ecoverse/slicc": "1.69.4",
53
53
  "@ai-ecoverse/slicc-browsers": "1.27.3",
54
54
  "@ai-ecoverse/slicc-cdp": "2.1.6",
55
- "@ai-ecoverse/slicc-kernel": "1.191.2",
55
+ "@ai-ecoverse/slicc-kernel": "1.191.4",
56
56
  "@ai-ecoverse/slicc-shared-web": "2.16.1",
57
57
  "@ai-ecoverse/slicc-spectrum": "2.19.4",
58
58
  "@ai-ecoverse/slicc-vault": "1.30.1",
@@ -63,7 +63,7 @@
63
63
  "lefthook": "2.2.2",
64
64
  "modern-tar": "0.8.6",
65
65
  "monocart-coverage-reports": "3.2.1",
66
- "playwright-core": "1.65.0",
66
+ "playwright-core": "1.65.1",
67
67
  "puppeteer-core": "25.17.0",
68
68
  "semantic-release": "25.0.9",
69
69
  "ws": "8.23.0"
@@ -4,6 +4,6 @@
4
4
  "description": "SLICC's agent, which the UI installs with pnpm in the background into /opt/agent in OPFS",
5
5
  "dependencies": {
6
6
  "@ai-ecoverse/slicc-agent": "8.1.5",
7
- "@ai-ecoverse/slicc-kernel": "1.191.2"
7
+ "@ai-ecoverse/slicc-kernel": "1.191.4"
8
8
  }
9
9
  }
@@ -15,10 +15,10 @@ importers:
15
15
  dependencies:
16
16
  '@ai-ecoverse/slicc-agent':
17
17
  specifier: 8.1.5
18
- version: 8.1.5(@ai-ecoverse/slicc-kernel@1.191.2)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
18
+ version: 8.1.5(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
19
19
  '@ai-ecoverse/slicc-kernel':
20
- specifier: 1.191.2
21
- version: 1.191.2
20
+ specifier: 1.191.4
21
+ version: 1.191.4
22
22
 
23
23
  packages:
24
24
 
@@ -32,8 +32,8 @@ packages:
32
32
  '@ai-ecoverse/slicc-spectrum':
33
33
  optional: true
34
34
 
35
- '@ai-ecoverse/slicc-kernel@1.191.2':
36
- resolution: {integrity: sha512-tfkiq2qjdcvXFEDtVUhmwseNCTsKU/mSwp9IAkHBVSIjT5fCTJ5/97RKiGzh2jlY0+I8GrTrxX4L+q/Z/OlTfA==}
35
+ '@ai-ecoverse/slicc-kernel@1.191.4':
36
+ resolution: {integrity: sha512-BpTXR98nh/Yyjp+MNU+PDAx39jItqmzx37NbBWoQgPevAlftDLPu37F6+IZLTKcVLUwkT1tCXpmueBaOhm2LXw==}
37
37
  engines: {node: '>=26'}
38
38
 
39
39
  '@anthropic-ai/sdk@0.129.0':
@@ -343,9 +343,9 @@ packages:
343
343
 
344
344
  snapshots:
345
345
 
346
- '@ai-ecoverse/slicc-agent@8.1.5(@ai-ecoverse/slicc-kernel@1.191.2)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
346
+ '@ai-ecoverse/slicc-agent@8.1.5(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
347
347
  dependencies:
348
- '@ai-ecoverse/slicc-kernel': 1.191.2
348
+ '@ai-ecoverse/slicc-kernel': 1.191.4
349
349
  '@aws-sdk/middleware-websocket': 3.972.54
350
350
  '@earendil-works/chord': 1.5.2
351
351
  '@earendil-works/pi-ai': 1.5.2(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
@@ -369,7 +369,7 @@ snapshots:
369
369
  - ws
370
370
  - zod
371
371
 
372
- '@ai-ecoverse/slicc-kernel@1.191.2': {}
372
+ '@ai-ecoverse/slicc-kernel@1.191.4': {}
373
373
 
374
374
  '@anthropic-ai/sdk@0.129.0':
375
375
  dependencies:
@@ -10,7 +10,7 @@
10
10
  "@ai-ecoverse/slicc-browsers": "1.27.3",
11
11
  "@ai-ecoverse/slicc-capture": "1.5.0",
12
12
  "@ai-ecoverse/slicc-devices": "1.7.1",
13
- "@ai-ecoverse/slicc-kernel": "1.191.2",
13
+ "@ai-ecoverse/slicc-kernel": "1.191.4",
14
14
  "@ai-ecoverse/slicc-spectrum": "2.19.4",
15
15
  "@ai-ecoverse/wasi-fnox": "1.48.0-1",
16
16
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
@@ -75,9 +75,9 @@
75
75
  }
76
76
  },
77
77
  "node_modules/@ai-ecoverse/slicc-kernel": {
78
- "version": "1.191.2",
79
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.191.2.tgz",
80
- "integrity": "sha512-tfkiq2qjdcvXFEDtVUhmwseNCTsKU/mSwp9IAkHBVSIjT5fCTJ5/97RKiGzh2jlY0+I8GrTrxX4L+q/Z/OlTfA==",
78
+ "version": "1.191.4",
79
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.191.4.tgz",
80
+ "integrity": "sha512-BpTXR98nh/Yyjp+MNU+PDAx39jItqmzx37NbBWoQgPevAlftDLPu37F6+IZLTKcVLUwkT1tCXpmueBaOhm2LXw==",
81
81
  "license": "Apache-2.0",
82
82
  "engines": {
83
83
  "node": ">=26"
@@ -7,7 +7,7 @@
7
7
  "@ai-ecoverse/slicc-browsers": "1.27.3",
8
8
  "@ai-ecoverse/slicc-capture": "1.5.0",
9
9
  "@ai-ecoverse/slicc-devices": "1.7.1",
10
- "@ai-ecoverse/slicc-kernel": "1.191.2",
10
+ "@ai-ecoverse/slicc-kernel": "1.191.4",
11
11
  "@ai-ecoverse/slicc-spectrum": "2.19.4",
12
12
  "@ai-ecoverse/wasi-fnox": "1.48.0-1",
13
13
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
@@ -21,8 +21,8 @@ importers:
21
21
  specifier: 1.7.1
22
22
  version: 1.7.1
23
23
  '@ai-ecoverse/slicc-kernel':
24
- specifier: 1.191.2
25
- version: 1.191.2
24
+ specifier: 1.191.4
25
+ version: 1.191.4
26
26
  '@ai-ecoverse/slicc-spectrum':
27
27
  specifier: 2.19.4
28
28
  version: 2.19.4
@@ -65,8 +65,8 @@ packages:
65
65
  resolution: {integrity: sha512-H1soLeO5aVkfnonntm7QX0fBaPJsjLIo68Io5w36AarEaZLSoZrkVlkWPWrSnFR8MsYdFaRYuyUUuSoC+FxP8g==}
66
66
  engines: {node: '>=24', slicc-kernel: '>=1.183.0'}
67
67
 
68
- '@ai-ecoverse/slicc-kernel@1.191.2':
69
- resolution: {integrity: sha512-tfkiq2qjdcvXFEDtVUhmwseNCTsKU/mSwp9IAkHBVSIjT5fCTJ5/97RKiGzh2jlY0+I8GrTrxX4L+q/Z/OlTfA==}
68
+ '@ai-ecoverse/slicc-kernel@1.191.4':
69
+ resolution: {integrity: sha512-BpTXR98nh/Yyjp+MNU+PDAx39jItqmzx37NbBWoQgPevAlftDLPu37F6+IZLTKcVLUwkT1tCXpmueBaOhm2LXw==}
70
70
  engines: {node: '>=26'}
71
71
 
72
72
  '@ai-ecoverse/slicc-ortllama@1.28.0':
@@ -272,7 +272,7 @@ snapshots:
272
272
  dependencies:
273
273
  esptool-js: 0.7.1
274
274
 
275
- '@ai-ecoverse/slicc-kernel@1.191.2': {}
275
+ '@ai-ecoverse/slicc-kernel@1.191.4': {}
276
276
 
277
277
  '@ai-ecoverse/slicc-ortllama@1.28.0':
278
278
  dependencies: