@ai-ecoverse/slicc-bios 1.62.4 → 1.63.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 +8 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -420,6 +420,14 @@ Programs ask seven's page for what only a page can do through the kernel's `/dev
420
420
  - **The switch:** "Serial ports" sits beside Camera, Microphone and Screen, on by default and kept in the same `slicc-os.switches`. Off refuses every `serial.*` kind with `serial ports are off in seven's settings` (`EACCES`), before the chooser or the port is touched, and turning it off closes every open port, in every tab. A `serial open` or a chooser still in flight when it turns off is refused the same way (slicc-devices ≥ 1.0.2): the port is closed again, and a port the browser granted meanwhile is listed closed, with nothing buffered, once the switch is back on.
421
421
  - Kinds seven doesn't list (`open.file`, `open.download`, `open.reveal`, `clipboard.read`) are `ENOTSUP` before the page sees them.
422
422
 
423
+ ### Composer recording
424
+
425
+ 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.
426
+ - **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 the switch turning off, while the browser's microphone 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; a second `record` is refused with `InvalidStateError`. `kinds` is `['audio']`: Record video comes with the camera. **Take a screenshot** calls `capture.still()`, a `capture.screen` still (`image/png`, `screenshot-<time>.png`) with a "Taking a photo" chip while it runs.
427
+ - **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`), and turning it off ends a live recording, whose `finished` then rejects the same way. The browser's own microphone prompt and Chrome's picker still ask, and the picked surface gets the screen guards above (seven's own pages, the vault and tabs without a capture handle are refused).
428
+ - **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.
429
+ - **What doesn't:** no agent consent and no click item, because the person's click is the intent.
430
+
423
431
  ## Network
424
432
 
425
433
  Before the kernel starts, `os/transport.js` picks how programs reach the network. The first of these that applies wins:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.62.4",
3
+ "version": "1.63.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",