@ai-ecoverse/slicc-bios 1.66.0 → 1.66.1

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -430,7 +430,7 @@ Programs ask seven's page for what only a page can do through the kernel's `/dev
430
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`. The chip goes when the request ends, however it ends. Linked follower devices don't see it yet.
431
431
  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
432
  - **`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
- - **`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) 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`.
433
+ - **`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`.
434
434
  - **`capture.devices`** (`media -f avfoundation -list_devices true -i ""`): the module lists cameras and microphones from `enumerateDevices()` (labels are empty until the site holds a grant). It opens nothing, so it gets no prompt, no switch and no chip.
435
435
  - **`clipboard.write`** (`{"kind":"clipboard.write","type":"image/png"}`, the bytes as the body, an empty reply; `screencapture -c`): `src/seed/clipboard.js` writes one `ClipboardItem` of `image/png`, `text/plain` or `text/html`, with `/dev/clipboard`'s focus rule and refusal text. Other types are `ENOTSUP`. The body is read up to 16 MB; beyond that seven cancels the rest and fails with `EIO`, `seven copies at most 16 MB to the clipboard`.
436
436
  - **Audio** (`afplay`, `chime`, `say`, `hear`, `@ai-ecoverse/slicc-audio/page`; kinds `audio.play`, `audio.say`, `audio.voices`, `audio.record`, `audio.transcribe`):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.66.0",
3
+ "version": "1.66.1",
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",