@ai-ecoverse/slicc-bios 1.67.3 → 1.68.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
|
@@ -427,7 +427,8 @@ Programs ask seven's page for what only a page can do through the kernel's `/dev
|
|
|
427
427
|
1. **The off switch** (`src/seed/switches.js`, `switches.add({ key, label, off() }) → { on() }`): Settings lists Camera, Microphone and Screen (and Serial ports, see below) under "Capture and devices" (spectrum's `switches` port), all on by default. They are kept in the page's `localStorage` (`slicc-os.switches`), outside the kernel's file system, so no program can flip one, and every tab follows a change through the `storage` event. When the page can't write that storage, the switch still changes in this tab and still ends what is live. A request whose kind is switched off is refused at once with `<what> capture is off in seven's settings` (a screen or camera recording with the microphone needs both). Microphone covers every request that opens the microphone: `audio.record` and a listening `audio.transcribe` (Web Speech, or an engine that gets no audio in its body); probes, status, warm-up and listing microphones don't open it and still answer. Camera covers `capture.camera`; listing devices (`capture.devices`) opens none and still answers. Turning one off ends every live capture under it, in every tab (Microphone ends a camera recording with the microphone too), and a request still waiting for the agent, the prompt or its click is refused once the wait ends.
|
|
428
428
|
2. **Consent:** for `capture.screen`, `capture.camera` and `audio.record`, seven asks the agent with `approveCapture({ kind, options, stamp, label? }, { signal, where? })` (`label` is the camera's or the microphone's name when seven can read it from `enumerateDevices()`; `where` names a linked device as for sudo). `once` or `always` goes on; `deny`, or `{ answer: 'deny', message }`, refuses with the message (`the request to capture was denied` without one). The agent answers `once` for any run no guest started and asks the guest's seat for one a guest started (see slicc-agent's README). When it can't answer (`EAGAIN`: not running, restarting, too old to have the method, kernel users off, or a guest seat without tool review), seven shows its own prompt, as before: "Capture the screen?", "Take a photo?", "Record the camera?" (or "Record the camera and microphone?", with "for up to N seconds" when `duration` is positive) or "Use the microphone?", with Choose, Take photo or Record and Cancel. Any other failure refuses with `the agent couldn't answer the request to capture`. A listening `audio.transcribe` isn't a capture kind for the agent, so it keeps seven's own "Use the microphone?" prompt.
|
|
429
429
|
3. **The click** (`src/seed/clicks.js`, `clicks.ask({ kind, detail: { what, program }, asker, title, body, action, signal }) → Promise<void>`): after the agent's `once`, a command typed in an active tab goes straight on, and so does a camera or microphone recording when the browser's permission for every device it opens (`camera`, `microphone`) is `granted`. A state of `denied` refuses at once with `camera permission is blocked for this site` (or `microphone`). Otherwise a click in seven's tab can't be avoided (Chrome's picker always needs one, and so does the browser's own camera or microphone prompt), and seven shows a click request (`kind: 'click'`, spectrum's `ClickApproval`) in the approvals dialog: "Choose what to share?" with **Choose what to share**, "Allow the camera?" with **Allow camera** (one item, "Allow the camera and microphone?" with **Allow camera and microphone**, when a camera recording takes the microphone too), or "Allow the microphone?" with **Allow microphone**, and Cancel. The program gets `waiting for a click in seven's tab: choose what to share` (or `allow the camera`, `allow the camera and microphone`, `allow the microphone`) on standard error first. The click resolves inside its own user activation, so `getDisplayMedia` and `getUserMedia` run in it. Cancel refuses with the dismissed text, and 5 minutes without a click with `nobody clicked within 5 min`; the gesture rules hold (one at a time per session, 10 s of rest after a Cancel or a timeout). The tab that answers the request holds the click; seven's other tabs show it with `here: false` ("Click in seven's tab.") and can only cancel it. While the tab is hidden, its title starts with `● `, and seven raises a system notification when the site already may (it never asks for that permission). Linked follower devices aren't told yet.
|
|
430
|
-
4. **The indicator** (`src/seed/live.js`, `live.add({ kind, label, what, asker, since, action: { label, run } }) → remove()`): while the request runs (the wait for a click doesn't count), spectrum's `live` port shows a chip, "Recording screen", "Recording camera" (`with microphone` when it takes the microphone), "Taking a photo" (a screen or camera still) or "Recording microphone" (a listening transcribe too), with who asked (the cone, `a terminal` or `a program`) and **Stop**, in every tab of this seven. Stop ends the request: a screen or camera recording ends as if Chrome's Stop sharing were pressed and a microphone recording or a Web Speech listen stops, so the program gets the end of the file and finalizes it; a still or a request still starting fails with `stopped in seven`.
|
|
430
|
+
4. **The indicator** (`src/seed/live.js`, `live.add({ kind, label, what, asker, since, action: { label, run } }) → remove()`): while the request runs (the wait for a click doesn't count), spectrum's `live` port shows a chip, "Recording screen", "Recording camera" (`with microphone` when it takes the microphone), "Taking a photo" (a screen or camera still) or "Recording microphone" (a listening transcribe too), with who asked (the cone, `a terminal` or `a program`) and **Stop**, in every tab of this seven. Stop ends the request: a screen or camera recording ends as if Chrome's Stop sharing were pressed and a microphone recording or a Web Speech listen stops, so the program gets the end of the file and finalizes it; a still or a request still starting fails with `stopped in seven`. Linked follower devices don't see it yet.
|
|
431
|
+
- **The ended chip:** a capture that ends normally (a still delivered, a recording at its `duration`, by Stop or by Chrome's Stop sharing) keeps its chip for 3 s, ended (spectrum's `endedAt`: a neutral dot and "Ended" in place of the timer) and in the past tense: "Recorded screen", "Recorded camera", "Recorded microphone" or "Took a photo", with **Dismiss**, which takes it away at once (`live.add`'s `remove()` has `remove.end(label)` for this). A screen or camera capture ends once every track seven handed the module (the screen's microphone too) is `ended`, so a duration-limited recording whose reply the program hasn't read to the end yet shows as ended once the recording stops, not once the program has read it (#1476); a recording seven can't see the tracks of (the microphone) ends when its reply is read to the end. An ended chip is out of the switch's reach (turning a switch off leaves it), and a new capture adds its own chip next to it. A capture that fails, is cancelled, or whose request closes first loses its chip at once, and so does one a switch turns off or the screen guards stop mid-recording.
|
|
431
432
|
5. **A listing of devices** (`audio.record` with `devices`, and `capture.devices` for cameras and microphones) gets none of the four: no switch, no consent, no click and no chip, and no prompt either. Listing opens no device and captures nothing (contract §1), and the labels stay empty until the site holds a grant, so a program learns no more than `enumerateDevices()` tells any page.
|
|
432
433
|
- **`capture.screen`** (`screencapture`, `@ai-ecoverse/slicc-capture/page`): the same gesture check as `open.url`, with the prompt "Capture the screen?". The prompt's action is Choose, and Chrome's picker comes next. The module captures only through seven's `request.display(constraints)`, which calls `getDisplayMedia` with `audio: false` unless a video request has `system: true` (`-A`), when it asks for `audio: true` and the prompt names "your screen and its sound"; Chrome's picker still lets the user decide whether to share sound. `selfBrowserSurface: 'exclude'`, `surfaceSwitching: 'exclude'` and `preferCurrentTab: false` always apply. A video request with `microphone: true` (`-g`) or a device ID (`-G`) also names the microphone in the same prompt, with "for up to N seconds" when `duration` is positive. It follows the same rule as `audio.record`. Cancel opens neither device. Only after that check does seven supply a guarded `request.userMedia` for the default or exact named microphone, with no camera request. When the picked surface's capture handle is seven's or the vault's (`slicc-vault`; every seven page sets `setCaptureHandleConfig({ handle: 'slicc-seven', exposeOrigin: true })` for its own origin, first thing at boot), or its origin is protected, seven stops every track and refuses with `EACCES`, `seven doesn't capture its own pages or the vault`. For a tab, seven waits up to 1 s for a handle that arrives after the capture starts. A tab whose handle is still missing, or any surface Chrome doesn't name as a window or a screen, is refused too (`seven can't tell this tab isn't its own or the vault's (it sets no capture handle), so it doesn't capture it; share a window or the screen`): Chrome hides handles in off-the-record profiles, and an older vault sets none, so a missing handle can't prove the tab is safe. That costs every ordinary tab that sets no capture handle, which is most of them; share a window or the screen to capture one. A captured tab that navigates to a page without a handle is stopped the same way. Seven watches for handle changes from the moment the capture starts, so a change during that wait isn't lost. The same holds while the capture is live: when the captured tab's handle changes to seven's, a protected one or none (`capturehandlechange`), seven stops every track, ends the module's capture and refuses, even if a frame was already taken. A cross-origin navigation clears the handle first, so a tab that navigates to seven is usually refused with the missing-handle text. A window or a whole screen that shows seven, and a protected page that sets no capture handle, are the user's choice in the picker. The vault's top-level pages set `slicc-vault` for seven's production origins (slicc-vault ≥ 1.17.0), so they're refused too. A local seven gets no handle from vault-preview. A page that paints before it sets its capture handle can land in a frame taken in that moment, before seven sees the handle. The dismissed texts are `the request to capture the screen was dismissed` and `nobody answered the request to capture the screen within 60 s`.
|
|
433
434
|
- **`capture.camera`** (`media -f avfoundation -i 0`, `@ai-ecoverse/slicc-capture/page`): a still (`type` `image/png`, `image/jpeg` or `image/webp`) or a recording (`video/webm`, `video/mp4`), optionally with the microphone (`microphone: true` or a device ID), through the capture steps above. The module opens the camera only through seven's `request.userMedia(constraints)`, which takes one call per request of exactly `{ video, audio? }`: `video` is `true` or holds only `deviceId` (`{ exact }`, the request's `device`, which must look like a device ID, at most 256 characters) and `width`, `height`, `frameRate` (a positive number, `{ ideal }` or `{ exact }`); `audio` is present only for a recording with the microphone, as `true` or `{ deviceId: { exact } }` for the request's `microphone`. Any other key, shape or device, or a second call, is refused with `EACCES`, `seven doesn't answer this camera request`, before `getUserMedia` runs. It runs only after the switches, the consent and the click, checks the Camera (and Microphone) switch once more, and stops every track and fails when the request was aborted while the camera opened. The dismissed texts are `the request to use the camera was dismissed` and `nobody answered the request to use the camera within 60 s`.
|
|
@@ -449,8 +450,8 @@ Programs ask seven's page for what only a page can do through the kernel's `/dev
|
|
|
449
450
|
### Composer recording
|
|
450
451
|
|
|
451
452
|
The composer's + menu (spectrum ≥ 2.7.0) records through the model's `capture` port (`src/seed/recording.js`), which every tab has, since the page modules run in the tab the person clicked in.
|
|
452
|
-
- **What runs:** **Record audio** calls `capture.record('audio')`, which runs slicc-audio's `audio.record` with `gate: false` and no `seconds` in the page, not through `/dev/embedder`, until **Stop** on its live chip ("Recording microphone · you"). `finished` then resolves with the recording, `recording-<time>.webm` (`audio/webm`), and spectrum attaches it like an upload; nothing is written to a file. `cancel()` discards it (`AbortError`), and so does a take with no bytes (`nothing was recorded`). Stop, or
|
|
453
|
-
- **Which guards apply:** the same ones as a program's capture, from `personal()` in `src/seed/requests.js`, which shares `plugged`'s run: the Microphone or Screen switch refuses first (`NotAllowedError`, `<what> capture is off in seven's settings
|
|
453
|
+
- **What runs:** `kinds` is `['audio', 'video']`. **Record audio** calls `capture.record('audio')`, which runs slicc-audio's `audio.record` with `gate: false` and no `seconds` in the page, not through `/dev/embedder`, until **Stop** on its live chip ("Recording microphone · you"). **Record video** calls `capture.record('video')`, which runs slicc-capture's `capture.camera` with `type: 'video/webm'` and `microphone: true` the same way, through the camera's guarded `userMedia` (one `getUserMedia` of `{ video: true, audio: true }`), until Stop on its chip ("Recording camera · with microphone · you"). `stop()` is the chip's Stop. `finished` then resolves with the recording, `recording-<time>.webm` (`audio/webm`) or `video-<time>.webm` (`video/webm`), with its `durationMs`, and spectrum attaches it like an upload; nothing is written to a file. The chip stays 3 s as "Recorded microphone" or "Recorded camera" (see the ended chip above). `cancel()` discards it (`AbortError`), and so does a take with no bytes (`nothing was recorded`); neither leaves an ended chip. Stop, or a switch turning off, while the browser's microphone or camera prompt is still open ends the take at once: the chip goes, `record` rejects (`AbortError`, or the switch's `NotAllowedError`), and the stream the prompt grants later is stopped. One recording runs at a time, audio or video; a second `record` is refused with `InvalidStateError`. **Take a screenshot** calls `capture.still()`, a `capture.screen` still (`image/png`, `screenshot-<time>.png`) with a "Taking a photo" chip while it runs.
|
|
454
|
+
- **Which guards apply:** the same ones as a program's capture, from `personal()` in `src/seed/requests.js`, which shares `plugged`'s run: the Microphone, Camera or Screen switch refuses first (`NotAllowedError`, `<what> capture is off in seven's settings`; a video needs both Camera and Microphone), and turning one off ends a live recording under it, whose `finished` then rejects the same way. The browser's own camera and microphone prompt and Chrome's picker still ask, the camera gets the strict `userMedia` above, and the picked surface gets the screen guards above (seven's own pages, the vault and tabs without a capture handle are refused).
|
|
454
455
|
- **The click:** `record` and `still` refuse unless they're called inside a person's click (`navigator.userActivation.isActive`), with `NotAllowedError`, `the composer captures only inside a click`; spectrum calls them in the menu's click.
|
|
455
456
|
- **What doesn't:** no agent consent and no click item, because the person's click is the intent.
|
|
456
457
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.68.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",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"format": "biome check --write ."
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@ai-ecoverse/slicc": "1.67.
|
|
52
|
+
"@ai-ecoverse/slicc": "1.67.1",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.22.1",
|
|
54
|
-
"@ai-ecoverse/slicc-cdp": "1.48.
|
|
55
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
54
|
+
"@ai-ecoverse/slicc-cdp": "1.48.10",
|
|
55
|
+
"@ai-ecoverse/slicc-kernel": "1.179.0",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.14.2",
|
|
57
57
|
"@ai-ecoverse/slicc-spectrum": "2.11.2",
|
|
58
58
|
"@ai-ecoverse/slicc-vault": "1.25.2",
|
|
@@ -15,10 +15,10 @@ importers:
|
|
|
15
15
|
dependencies:
|
|
16
16
|
'@ai-ecoverse/slicc-agent':
|
|
17
17
|
specifier: 7.30.0
|
|
18
|
-
version: 7.30.0(@ai-ecoverse/slicc-kernel@1.
|
|
18
|
+
version: 7.30.0(@ai-ecoverse/slicc-kernel@1.179.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.179.0
|
|
21
|
+
version: 1.179.0
|
|
22
22
|
|
|
23
23
|
packages:
|
|
24
24
|
|
|
@@ -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.179.0':
|
|
39
|
+
resolution: {integrity: sha512-9pzXdY6bupz1pZxfDGRRU7nxBqxiX9wM3REt7cU7ARcbXouGTYwIcnO2Xk2ACcgAZVaz+Sd/oLmzL1bEtKAaRg==}
|
|
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.9.1': {}
|
|
353
353
|
|
|
354
|
-
'@ai-ecoverse/slicc-agent@7.30.0(@ai-ecoverse/slicc-kernel@1.
|
|
354
|
+
'@ai-ecoverse/slicc-agent@7.30.0(@ai-ecoverse/slicc-kernel@1.179.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.179.0
|
|
357
357
|
'@ai-ecoverse/slicc-vault': 1.25.2
|
|
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.179.0': {}
|
|
381
381
|
|
|
382
382
|
'@ai-ecoverse/slicc-scrub@1.1.0': {}
|
|
383
383
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@ai-ecoverse/slicc-browsers": "1.22.1",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
12
12
|
"@ai-ecoverse/slicc-devices": "1.1.0",
|
|
13
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
13
|
+
"@ai-ecoverse/slicc-kernel": "1.179.0",
|
|
14
14
|
"@ai-ecoverse/slicc-spectrum": "2.11.2",
|
|
15
15
|
"@ai-ecoverse/wasi-fnox": "1.47.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.
|
|
79
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.
|
|
80
|
-
"integrity": "sha512-
|
|
78
|
+
"version": "1.179.0",
|
|
79
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-kernel/-/slicc-kernel-1.179.0.tgz",
|
|
80
|
+
"integrity": "sha512-9pzXdY6bupz1pZxfDGRRU7nxBqxiX9wM3REt7cU7ARcbXouGTYwIcnO2Xk2ACcgAZVaz+Sd/oLmzL1bEtKAaRg==",
|
|
81
81
|
"license": "Apache-2.0",
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=26"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"@ai-ecoverse/slicc-browsers": "1.22.1",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.5.0",
|
|
9
9
|
"@ai-ecoverse/slicc-devices": "1.1.0",
|
|
10
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
10
|
+
"@ai-ecoverse/slicc-kernel": "1.179.0",
|
|
11
11
|
"@ai-ecoverse/slicc-spectrum": "2.11.2",
|
|
12
12
|
"@ai-ecoverse/wasi-fnox": "1.47.0-1",
|
|
13
13
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
@@ -21,8 +21,8 @@ importers:
|
|
|
21
21
|
specifier: 1.1.0
|
|
22
22
|
version: 1.1.0
|
|
23
23
|
'@ai-ecoverse/slicc-kernel':
|
|
24
|
-
specifier: 1.
|
|
25
|
-
version: 1.
|
|
24
|
+
specifier: 1.179.0
|
|
25
|
+
version: 1.179.0
|
|
26
26
|
'@ai-ecoverse/slicc-spectrum':
|
|
27
27
|
specifier: 2.11.2
|
|
28
28
|
version: 2.11.2
|
|
@@ -65,8 +65,8 @@ packages:
|
|
|
65
65
|
resolution: {integrity: sha512-wCSAiNGB2Q2pYE8GmYofIrVWFPSgQP4itQDzY990dlWASiPRrtJnagnLVbdouRSE1guLUuN3KD6eiuLauebMfQ==}
|
|
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.179.0':
|
|
69
|
+
resolution: {integrity: sha512-9pzXdY6bupz1pZxfDGRRU7nxBqxiX9wM3REt7cU7ARcbXouGTYwIcnO2Xk2ACcgAZVaz+Sd/oLmzL1bEtKAaRg==}
|
|
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.
|
|
275
|
+
'@ai-ecoverse/slicc-kernel@1.179.0': {}
|
|
276
276
|
|
|
277
277
|
'@ai-ecoverse/slicc-ortllama@1.28.0':
|
|
278
278
|
dependencies:
|