diff --git a/.agents/skills/formrec-harness/references/feature-tools.md b/.agents/skills/formrec-harness/references/feature-tools.md
index b76920d..ecfa790 100644
--- a/.agents/skills/formrec-harness/references/feature-tools.md
+++ b/.agents/skills/formrec-harness/references/feature-tools.md
@@ -4,7 +4,7 @@ Generated from the FormREC MCP server by `formrec agents sync` (`npm run agents:
The tools FormREC's feature modules add next to the core tools in tools.md: editing, transcripts, sharing, comments, the library, documents, integrations and the rest. Each carries a title and annotations; trust "Changes anything" and ask the person before a tool that removes or reaches outside FormREC. They take a recording id from `formrec_list` or `formrec_record` unless they say otherwise.
-113 tools.
+115 tools.
## Tools
@@ -67,6 +67,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit
| `formrec_library_tag` | Tag recordings | yes | Add and remove tags (lower case words; a leading # is dropped). Returns each recording's tags. |
| `formrec_library_trash` | Move recordings to the Trash, restore or delete them | yes, removes or overwrites | action "trash" moves recordings to the Trash (restorable); "restore" brings them back where they were; "purge" deletes recordings in the Trash for good (all of the Trash when ids is omitted). The Trash empties itself after the number of days set in Settings. |
| `formrec_list_clips` | List the clips of a recording | no | The clips made from a recording: id, title, the span of the source (ms), shape (9:16, 1:1, 16:9), length and player link. With highlights true, also the highlights that would be picked now, without making anything. |
+| `formrec_list_voices` | Voice-over voices | no | Reads the built-in voice (Kokoro, offline on this computer): whether it is ready, why not when it is not, the default voice and speed from Settings, Voice, and its voices with id, name, language and group when it is ready. |
| `formrec_live_destinations` | Live streaming destinations | yes, removes or overwrites | Where a studio take can stream while it records (YouTube, Twitch, LinkedIn, Facebook or a custom RTMP or RTMPS server). action "list": the destinations, with the stream key masked. "add": name, url (the ingest address, such as rtmps://a.rtmps.youtube.com:443/live2) and key. "update": id, and any of name, url, key, enabled (a missing key keeps the saved one). "remove": id. Stream keys are secrets: they are saved on this computer only, in a private file, and are never returned. A take streams to every enabled destination when it starts, and the record bar shows the state. |
| `formrec_live_status` | Live streaming status | no | How the studio takes that streamed live are doing: per take (sessionId) the state (starting, live, reconnecting, failed, stopped), and per destination its state, the reason it is not live (an FFmpeg message, never a key), the seconds sent and the failed tries in a row. Read from the running app's status file, so updatedAt says how recent it is. Recording never depends on the stream. |
| `formrec_mail_test` | Send a test email | yes, reaches outside FormREC | Send a short test email to an address through the email account the person set up in Settings, Email (their own SMTP server, Gmail or Outlook; no other service is involved). Use it to check that email works before relying on invitations, one-time codes and notifications. Fails with the reason (not set up, refused by the server) when it cannot send. Sends exactly one message. |
@@ -116,6 +117,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit
| `formrec_tunnel` | Public link through a tunnel | yes, reaches outside FormREC | Turn the public-link tunnel on or off, or ask where it stands. While it runs, shared recordings also have a public link (https://[tunnel host]/v/[shareId], listed first by formrec_share) that works from anywhere without a server; the recordings stay on this computer and the link works only while FormREC and the tunnel run. The provider (Cloudflare quick or named tunnel, Tailscale Funnel, ngrok, a custom command) is the person's choice in Settings, Public link. start waits for the address. A quick tunnel's address changes on every start. |
| `formrec_unsaved_takes` | Unsaved takes | no | Studio takes that never became recordings (the app or tab closed before Save, a crash, a lost upload). Each has an id, title, tracks with their bytes, an estimated length, and live: true when it may still be recording. Nothing is deleted on its own; recover one with formrec_recover_take or discard it with formrec_discard_take. |
| `formrec_variants` | Record variants of a walkthrough | yes, reaches outside FormREC | Record one walkthrough many times with different values: the walkthrough declares "variables": [{"name": "customer", "default": "Ada"}] and uses {{customer}} in titles, words, typed values, goto addresses and target text; pass the value sets (an array of {name: value}, or JSON or CSV text, or a valuesFile) and each becomes a recording of its own, linked to its source and recorded one after another (at most 50 a call). Give the walkthrough as an object or file, or the id of a recording made from it. Every set is checked before the first recording starts. Values are plain text: a variable cannot stand in a secret field, a value cannot hold a line break in a title or address, and a relative address cannot leave the walkthrough's site. Sends a progress notification per step, stops when cancelled. Check each result's failedSteps and error before reporting. |
+| `formrec_voiceover` | Voice-over for a recording | yes | Reads or makes the spoken voice-over of a recording with the built-in voice (Kokoro). Each line starts at its chapter (its say text, or text given here) and is mixed into the player, exports and share renditions, with the recording's own sound ducked under it (Settings, Voice). Give only the recording to read its lines. text with stepId changes that line; text with atMs adds a line; notes turns speaker notes or a script into lines (a row starting m:ss lands at that time, other paragraphs go one per chapter in order); generate speaks every missing or changed line (all: true for every line, or stepId for one); voice and speed (0.5 to 2) set this recording's voice, or with stepId only that line's (null goes back to the recording's); on turns the voice-over on or off; remove clears one line; captions: true adds the spoken lines as WebVTT on the recording's timeline. |
| `formrec_walkthrough_check` | Check a walkthrough is still current | yes, reaches outside FormREC | Replay a walkthrough headless without recording video and compare each step with what its last recording stored (the target's role, name, text and structure, and a picture hash): each step is same, changed (text, layout, appearance or page) or broken (target missing, action failed). It ignores anti-aliasing and clocks. Pass the walkthrough, or the id of a recording to use the walkthrough saved with it. The verdict is kept with the recording, which the library then marks out of date. Use formrec_walkthrough_rerecord to fix changed and broken steps. |
| `formrec_walkthrough_format` | Walkthrough format | no | The full walkthrough format for recording ANY website (public sites without a codebase, signed-in sites, mobile emulation): every action, target, page setting, sign-in option, pacing and capture setting, the limits, and how to go from a plain-language goal to a recording. |
| `formrec_walkthrough_freshness` | Which recordings are out of date | no | The recordings whose last freshness check found changed or broken steps, with the verdict. |
@@ -479,6 +481,10 @@ No parameters.
- `id`: string. recording id from formrec_list
- `highlights` (optional): boolean. also show the picks (heuristic or AI) without making clips
+### formrec_list_voices
+
+No parameters.
+
### formrec_live_destinations
- `action`: list|add|update|remove.
@@ -789,6 +795,21 @@ No parameters.
- `valuesFile` (optional): string. or a JSON or CSV file inside the allowed folders
- `headed` (optional): boolean.
+### formrec_voiceover
+
+- `recording`: string. the recording (from formrec_list)
+- `stepId` (optional): string. a line, as this tool lists it (a chapter step id)
+- `text` (optional): string. the words to speak
+- `atMs` (optional): integer. where a new line starts, in ms on the recording
+- `voice` (optional): any. a voice id from formrec_list_voices; with stepId, that line only
+- `speed` (optional): any. 0.5 to 2; with stepId, that line only
+- `notes` (optional): string. speaker notes or a script to make lines from
+- `on` (optional): boolean.
+- `generate` (optional): boolean. speak the lines now
+- `all` (optional): boolean. with generate, speak every line again
+- `remove` (optional): string. a line to clear
+- `captions` (optional): boolean. add the spoken lines as WebVTT
+
### formrec_walkthrough_check
- `walkthrough` (optional): object. the walkthrough object
diff --git a/.agents/skills/formrec-harness/references/tools.md b/.agents/skills/formrec-harness/references/tools.md
index 1e84ff1..b9ebc07 100644
--- a/.agents/skills/formrec-harness/references/tools.md
+++ b/.agents/skills/formrec-harness/references/tools.md
@@ -94,7 +94,7 @@ Open one at `#/demo/` while FormREC runs (`formrec_demos` retur
| Id | Title | Kind | Chapters | Point a person at it for |
| --- | --- | --- | --- | --- |
-| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors |
+| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, The Takes tab, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors |
| `studio-guest` | A studio take with a guest | studio | Mara opens the show, Ada answers | someone who wants to record a podcast or interview, or to see what guests and a track per source give them |
| `podcast-episode` | A podcast episode with two speakers | studio | Welcome to Small Tracks, Why a track per voice, Levels before the take, Goodbye | someone planning a podcast or a two-person interview who wants to see the finished shape: tracks to edit apart and chapters to jump between |
diff --git a/.claude/skills/formrec-harness/references/feature-tools.md b/.claude/skills/formrec-harness/references/feature-tools.md
index b76920d..ecfa790 100644
--- a/.claude/skills/formrec-harness/references/feature-tools.md
+++ b/.claude/skills/formrec-harness/references/feature-tools.md
@@ -4,7 +4,7 @@ Generated from the FormREC MCP server by `formrec agents sync` (`npm run agents:
The tools FormREC's feature modules add next to the core tools in tools.md: editing, transcripts, sharing, comments, the library, documents, integrations and the rest. Each carries a title and annotations; trust "Changes anything" and ask the person before a tool that removes or reaches outside FormREC. They take a recording id from `formrec_list` or `formrec_record` unless they say otherwise.
-113 tools.
+115 tools.
## Tools
@@ -67,6 +67,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit
| `formrec_library_tag` | Tag recordings | yes | Add and remove tags (lower case words; a leading # is dropped). Returns each recording's tags. |
| `formrec_library_trash` | Move recordings to the Trash, restore or delete them | yes, removes or overwrites | action "trash" moves recordings to the Trash (restorable); "restore" brings them back where they were; "purge" deletes recordings in the Trash for good (all of the Trash when ids is omitted). The Trash empties itself after the number of days set in Settings. |
| `formrec_list_clips` | List the clips of a recording | no | The clips made from a recording: id, title, the span of the source (ms), shape (9:16, 1:1, 16:9), length and player link. With highlights true, also the highlights that would be picked now, without making anything. |
+| `formrec_list_voices` | Voice-over voices | no | Reads the built-in voice (Kokoro, offline on this computer): whether it is ready, why not when it is not, the default voice and speed from Settings, Voice, and its voices with id, name, language and group when it is ready. |
| `formrec_live_destinations` | Live streaming destinations | yes, removes or overwrites | Where a studio take can stream while it records (YouTube, Twitch, LinkedIn, Facebook or a custom RTMP or RTMPS server). action "list": the destinations, with the stream key masked. "add": name, url (the ingest address, such as rtmps://a.rtmps.youtube.com:443/live2) and key. "update": id, and any of name, url, key, enabled (a missing key keeps the saved one). "remove": id. Stream keys are secrets: they are saved on this computer only, in a private file, and are never returned. A take streams to every enabled destination when it starts, and the record bar shows the state. |
| `formrec_live_status` | Live streaming status | no | How the studio takes that streamed live are doing: per take (sessionId) the state (starting, live, reconnecting, failed, stopped), and per destination its state, the reason it is not live (an FFmpeg message, never a key), the seconds sent and the failed tries in a row. Read from the running app's status file, so updatedAt says how recent it is. Recording never depends on the stream. |
| `formrec_mail_test` | Send a test email | yes, reaches outside FormREC | Send a short test email to an address through the email account the person set up in Settings, Email (their own SMTP server, Gmail or Outlook; no other service is involved). Use it to check that email works before relying on invitations, one-time codes and notifications. Fails with the reason (not set up, refused by the server) when it cannot send. Sends exactly one message. |
@@ -116,6 +117,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit
| `formrec_tunnel` | Public link through a tunnel | yes, reaches outside FormREC | Turn the public-link tunnel on or off, or ask where it stands. While it runs, shared recordings also have a public link (https://[tunnel host]/v/[shareId], listed first by formrec_share) that works from anywhere without a server; the recordings stay on this computer and the link works only while FormREC and the tunnel run. The provider (Cloudflare quick or named tunnel, Tailscale Funnel, ngrok, a custom command) is the person's choice in Settings, Public link. start waits for the address. A quick tunnel's address changes on every start. |
| `formrec_unsaved_takes` | Unsaved takes | no | Studio takes that never became recordings (the app or tab closed before Save, a crash, a lost upload). Each has an id, title, tracks with their bytes, an estimated length, and live: true when it may still be recording. Nothing is deleted on its own; recover one with formrec_recover_take or discard it with formrec_discard_take. |
| `formrec_variants` | Record variants of a walkthrough | yes, reaches outside FormREC | Record one walkthrough many times with different values: the walkthrough declares "variables": [{"name": "customer", "default": "Ada"}] and uses {{customer}} in titles, words, typed values, goto addresses and target text; pass the value sets (an array of {name: value}, or JSON or CSV text, or a valuesFile) and each becomes a recording of its own, linked to its source and recorded one after another (at most 50 a call). Give the walkthrough as an object or file, or the id of a recording made from it. Every set is checked before the first recording starts. Values are plain text: a variable cannot stand in a secret field, a value cannot hold a line break in a title or address, and a relative address cannot leave the walkthrough's site. Sends a progress notification per step, stops when cancelled. Check each result's failedSteps and error before reporting. |
+| `formrec_voiceover` | Voice-over for a recording | yes | Reads or makes the spoken voice-over of a recording with the built-in voice (Kokoro). Each line starts at its chapter (its say text, or text given here) and is mixed into the player, exports and share renditions, with the recording's own sound ducked under it (Settings, Voice). Give only the recording to read its lines. text with stepId changes that line; text with atMs adds a line; notes turns speaker notes or a script into lines (a row starting m:ss lands at that time, other paragraphs go one per chapter in order); generate speaks every missing or changed line (all: true for every line, or stepId for one); voice and speed (0.5 to 2) set this recording's voice, or with stepId only that line's (null goes back to the recording's); on turns the voice-over on or off; remove clears one line; captions: true adds the spoken lines as WebVTT on the recording's timeline. |
| `formrec_walkthrough_check` | Check a walkthrough is still current | yes, reaches outside FormREC | Replay a walkthrough headless without recording video and compare each step with what its last recording stored (the target's role, name, text and structure, and a picture hash): each step is same, changed (text, layout, appearance or page) or broken (target missing, action failed). It ignores anti-aliasing and clocks. Pass the walkthrough, or the id of a recording to use the walkthrough saved with it. The verdict is kept with the recording, which the library then marks out of date. Use formrec_walkthrough_rerecord to fix changed and broken steps. |
| `formrec_walkthrough_format` | Walkthrough format | no | The full walkthrough format for recording ANY website (public sites without a codebase, signed-in sites, mobile emulation): every action, target, page setting, sign-in option, pacing and capture setting, the limits, and how to go from a plain-language goal to a recording. |
| `formrec_walkthrough_freshness` | Which recordings are out of date | no | The recordings whose last freshness check found changed or broken steps, with the verdict. |
@@ -479,6 +481,10 @@ No parameters.
- `id`: string. recording id from formrec_list
- `highlights` (optional): boolean. also show the picks (heuristic or AI) without making clips
+### formrec_list_voices
+
+No parameters.
+
### formrec_live_destinations
- `action`: list|add|update|remove.
@@ -789,6 +795,21 @@ No parameters.
- `valuesFile` (optional): string. or a JSON or CSV file inside the allowed folders
- `headed` (optional): boolean.
+### formrec_voiceover
+
+- `recording`: string. the recording (from formrec_list)
+- `stepId` (optional): string. a line, as this tool lists it (a chapter step id)
+- `text` (optional): string. the words to speak
+- `atMs` (optional): integer. where a new line starts, in ms on the recording
+- `voice` (optional): any. a voice id from formrec_list_voices; with stepId, that line only
+- `speed` (optional): any. 0.5 to 2; with stepId, that line only
+- `notes` (optional): string. speaker notes or a script to make lines from
+- `on` (optional): boolean.
+- `generate` (optional): boolean. speak the lines now
+- `all` (optional): boolean. with generate, speak every line again
+- `remove` (optional): string. a line to clear
+- `captions` (optional): boolean. add the spoken lines as WebVTT
+
### formrec_walkthrough_check
- `walkthrough` (optional): object. the walkthrough object
diff --git a/.claude/skills/formrec-harness/references/tools.md b/.claude/skills/formrec-harness/references/tools.md
index 1e84ff1..b9ebc07 100644
--- a/.claude/skills/formrec-harness/references/tools.md
+++ b/.claude/skills/formrec-harness/references/tools.md
@@ -94,7 +94,7 @@ Open one at `#/demo/` while FormREC runs (`formrec_demos` retur
| Id | Title | Kind | Chapters | Point a person at it for |
| --- | --- | --- | --- | --- |
-| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors |
+| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, The Takes tab, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors |
| `studio-guest` | A studio take with a guest | studio | Mara opens the show, Ada answers | someone who wants to record a podcast or interview, or to see what guests and a track per source give them |
| `podcast-episode` | A podcast episode with two speakers | studio | Welcome to Small Tracks, Why a track per voice, Levels before the take, Goodbye | someone planning a podcast or a two-person interview who wants to see the finished shape: tracks to edit apart and chapters to jump between |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66d5b73..bbedca7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,37 @@
FormREC's releases, newest first. Versions are X.YY.Z; the release commit is last in its pull request and moves every version site together (`tests/version-sites.test.ts`).
+## v0.11.0 · 2026-12-02
+
+- A natural voice, built in: Kokoro, the same voice FormCut and FormMorpheus speak with, in place of the robotic Flite and eSpeak voices.
+ - Settings, Voice sets it up once: FormREC makes a Python environment of its own in the data folder (`voice/runtime`, from Python 3.10 to 3.13 on this computer) and downloads the Kokoro-82M model, about 340 MB, from the kokoro-onnx release on GitHub into `voice/models`, keeping it only when both files match their pinned SHA-256. A stopped download resumes. After that it works offline. Cancel and Remove are there too, and a computer the voice cannot run on (32-bit, Windows on Arm) is told so in the section.
+ - 54 voices, American and British English first; the default is Heart (`af_heart`), as in FormCut and FormMorpheus, with a speed from 0.5 to 2.
+ - Nothing GPL ships with FormREC: the runtime's phonemizer and eSpeak NG are installed by your own Python into that folder and run as a separate program, as in the other two apps. NOTICE.md lists the model and the runtime.
+- Voice-over for any recording: the player's Voice-over tab makes one line per chapter from its text (a walkthrough's `say`, the Script mode's paragraphs), lines from your notes, and lines you add at a time. Each line starts at its chapter, can be listened to, edited and made again on its own, and says when it is not made yet, has changed or runs past its chapter. A recording can have its own voice and speed, and a line its own.
+ - The lines play in step in the player and the editor, and are mixed into every export and the share renditions, with the recording's own sound lowered under each line (Settings, Voice: Duck, the ducked level, and Even loudness at -16 LUFS). Captions from the lines are at `/api/voiceover//captions.vtt`.
+ - The Studio has a Voice tab with the voice, the speed and a preview.
+ - MCP: `formrec_list_voices` and `formrec_voiceover` (124 tools).
+ - Replace with speech in the editor and the AI avatar's voice-over speak with the built-in voice. `FORMREC_TTS` still names a program of your own.
+- The demos speak with Kokoro: the podcast episode (Juno with Heart, Theo with Michael) and the studio take (Mara with Heart, Ada with Bella), at -16 LUFS.
+- The Studio, and Screen, Camera and Audio only, without the long scroll: the tools are in an inspector with an icon rail (Source, Display, Phone, Camera, Sound, Scene, Prompter, Voice, Guests and captions, Live stream, Distractions, Takes), one group at a time, and each page remembers its last tab. Source, camera, microphone and Record are on screen at 1440 by 900 and 1280 by 800. The stage shows the preview, or what to do first with a Record now button; Screen shows the preview's size and frame rate, Camera has framing guides, and Audio only is a large scrolling waveform with the peak level.
+- The Form shell, finished:
+ - The top bar ends with the agent button and FormPortal's gear, as in every Form app. The agent button opens and closes the agent dock and shows when it is open.
+ - Preferences floats over the window with its sections in a rail at its left and the wire to the open section, one section at a time; Esc or a click outside closes it.
+ - The agent dock shows: Preferences, Agents, Show the agent dock, View, Agent Dock and Cmd+J (Ctrl+J elsewhere). An outside agent's call that changes something waits for your Allow once, Always or Deny in the window, and Preferences, Agents lists what you allowed. Ask is the default: with no FormREC window open, an outside agent's changes (through `formrec mcp` or `formrec mcp --http`) are refused with what to do, until you open FormREC or set Outside agents to Allowed; reading still works.
+ - On macOS the window's content starts right of the traffic lights.
+- FormREC is the name a person reads everywhere: the tour's narration and captions, the browser extension, the Android and iOS apps, the Figma plugin, the form.md connection, the integrations' names and labels (their API names, ids and headers are kept), the launchers, the notices and the guides.
+- The tour (A tour of FormREC) is recorded again on the new Studio, now 87.4 s with nine chapters, and speaks its captions with Kokoro's Heart voice at -16 LUFS.
+- Checks, run on Linux only:
+ - the type check of the server and the window, `npm run build`, `npm run notices:check` and `npm run agents:check` (124 tools) pass;
+ - the test files for what changed pass one at a time, among them demos, edit-api, ai-voice, agents, mcp-tools, mcp-new-tools-audit, notices, version-sites, renditions-edit, share-export, avatar-export, edit-web, edit-e2e, studio-e2e, studio-proof-e2e, voice-master-e2e, e2e-studio, studio-slides-e2e, live-e2e, desktop-native-panels, player-controls-e2e and the shell's browser tests; the full suite was not run;
+ - the window was checked in Chrome with the CPU slowed four times, at 1440 by 900 and 1280 by 800, dark and light: no layout shift on load, on opening Preferences and switching its sections, on switching the Studio's tabs, when the preview starts and when the dock opens and closes;
+ - the voice was checked by measurement, not by ear: the demos' and the tour's lines start at their caption times, at -16 LUFS without clipping, and an export carries the lines at the chapter times with the recording 12 dB lower under them.
+- Known issues:
+ - macOS was not run: the traffic-light inset, the native menu bar and its Cmd+J and Cmd+, were checked with a stand-in for the desktop bridge only.
+ - The built-in voice was run on Linux only; its Windows and macOS Python paths follow FormMorpheus's and were not run.
+ - The macOS Shortcuts FormREC runs for Do not disturb keep their names "FormRec Focus On" and "FormRec Focus Off", because people made them under those names.
+ - The voice-over's cues are offered as captions at their own address; burnt-in captions on export still come from the transcript or captions.vtt.
+
## v0.10.0 · 2026-12-01
- The Form shell, so FormREC looks and works like the rest of the family:
diff --git a/NOTICE.md b/NOTICE.md
index cb90476..246d0f3 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -37,12 +37,15 @@ Development only: typescript (Apache-2.0), vitest and @vitest/coverage-v8 (MIT),
| File | Source | Licence |
|---|---|---|
-| `demos/self-tour/*` | recorded by FormREC from this repository (`scripts/make-demos.mjs`) | Apache-2.0 |
-| `demos/studio-guest/*` | pictures generated with FFmpeg, voices synthesised with FFmpeg's flite filter (CMU Flite, BSD-style), recorded by FormREC; see its CREDITS.md | Apache-2.0 |
+| `demos/self-tour/*` | recorded by FormREC from this repository (`scripts/make-demos.mjs`); since 0.11.0 the video carries a narration of its captions spoken with Kokoro-82M (Apache-2.0) through FormREC's built-in voice (`af_heart`); only the spoken audio ships, not the model or its runtime; see its CREDITS.md | Apache-2.0 |
+| `demos/studio-guest/*` | pictures generated with FFmpeg, recorded by FormREC; the two microphone tracks spoken again in 0.11.0 with Kokoro-82M (Apache-2.0) through FormREC's built-in voice (`af_heart`, `af_bella`); only the spoken audio ships; see its CREDITS.md | Apache-2.0 |
+| `demos/podcast-episode/*` | made by `scripts/make-podcast-demo.mjs`: pictures generated with FFmpeg, voices spoken with Kokoro-82M (Apache-2.0) through FormREC's built-in voice (`af_heart`, `am_michael`); only the spoken audio ships, not the model or its runtime; see its CREDITS.md | Apache-2.0 |
| `assets/app-icon/*`, `src-tauri/icons/*` | FormREC's official app icons (tile, dark and light) from nodemode.ai, resized | all rights reserved by nodemode.ai; not covered by Apache-2.0 |
| `web/brand/*` (including `phone-*.png`, the phone page's home screen icons), `extension/icons/*` | FormREC's official in-app mark (with drop shadow, dark and light) and app icon from nodemode.ai, cropped and resized | all rights reserved by nodemode.ai; not covered by Apache-2.0 |
| `src/features/**`, `src/relay/**`, `src/apps/**`, `src/mail/**`, `src/wtdiff/**`, `shared/**`, `web/src/features/**`, `web/src/*-*.ts`, `web/styles/*`, `web/*.html`, `web/formrec-record-sdk.d.ts`, `extension/*` (but its icons), `web/src/formrec-sdk.ts`, `web/src/formrec-embed.ts`, `web/src/formrec-record-sdk.ts`, `relay/*.md` | written for FormREC; the zip reader and writer, the QR encoder, the person segmenter, the SMTP client, the PostgreSQL wire protocol, the JWT, OIDC, OAuth 2.1 and SCIM code are FormREC's own; icons are drawn inline as SVG | Apache-2.0 |
| whisper.cpp and its models (not shipped) | MIT | transcription, used when the person installs whisper.cpp; a model (tiny to large-v3-turbo, from huggingface.co/ggerganov/whisper.cpp, or small.en-tdrz from huggingface.co/akashmjn/tinydiarize-whisper.cpp) is downloaded only on the person's click and checked against whisper.cpp's SHA-1 and its SHA-256 and size |
+| Kokoro-82M voice model v1.0 (hexgrad, huggingface.co/hexgrad/Kokoro-82M), as the ONNX files `kokoro-v1.0.onnx` (SHA-256 beb0d1848dee9a49da392cc3df26958d46cfa35d321edf434f52949153f0df3a, 325505369 bytes) and `voices-v1.0.bin` (SHA-256 bca610b8308e8d99f32e6fe4197e7ec01679264efed0cac9140fe9c29f1fbf7d, 28214398 bytes) from the kokoro-onnx release `model-files-v1.1` on github.com (not shipped) | the built-in voice for voice-over lines and Replace with speech: downloaded into `/voice/models` only when the person chooses Set up in Settings, Voice, resumed after an interruption, and kept only when its size and SHA-256 match the values pinned in `src/features/voiceover/kokoro.ts` | Apache-2.0 |
+| kokoro-onnx 0.6.1 (github.com/thewh1teagle/kokoro-onnx) with what pip installs for it: onnxruntime, numpy, phonemizer, espeakng-loader (which carries eSpeak NG) and their own dependencies (not shipped) | installed by the person's own Python 3.10 to 3.13 into a runtime of its own in `/voice/runtime` during that same setup, and run only as a separate program that is handed text and gives back a WAV; FormREC never imports, links or bundles any of it | MIT (kokoro-onnx, onnxruntime), BSD-3-Clause and others (numpy), GPL-3.0-or-later (phonemizer, eSpeak NG); because of the GPL parts none of this ships in or links with FormREC, which stays Apache-2.0 |
| `web/vendor/rnnoise/rnnoise.wasm` | RNNoise (BSD-3-Clause; Jean-Marc Valin, Mozilla, Xiph.Org Foundation, Mark Borgerding) as built in @jitsi/rnnoise-wasm 0.2.1 (Apache-2.0), file `dist/rnnoise.wasm`, SHA-256 677147b9248aedc0a00de79dc090d1ecead37c08c8bb773a790da16109d2c487, with RNNoise's default model weights | BSD-3-Clause and Apache-2.0; both licence texts ship beside it (`COPYING-rnnoise.txt`, `LICENSE-rnnoise-wasm.txt`, `SOURCE.txt`); none of the package's JavaScript ships |
| `tests/fixtures/saml/onelogin-2014-05-28.*`, `tests/fixtures/saml/verizon-idp-hub-2014-06-05.*` (tests only, not shipped) | signed SAML responses and their certificates from node-saml's test suite, github.com/node-saml/node-saml `test/tests.spec.ts` and `test/types.ts` | MIT (Copyright (c) 2012 Henri Bergius, (c) 2011 Michael Bosworth) |
| `apps/android/gradlew`, `apps/android/gradlew.bat`, `apps/android/gradle/wrapper/*` (gradle-wrapper.jar SHA-256 7d3a4ac4de1c32b59bc6a4eb8ecb8e612ccd0cf1ae1e99f66902da64df296172) | the Gradle Wrapper 8.10.2 from gradle.org | Apache-2.0 |
@@ -52,7 +55,7 @@ Development only: typescript (Apache-2.0), vitest and @vitest/coverage-v8 (MIT),
| cloudflared (not shipped) | Apache-2.0 | the public-link tunnel, when the person installs it or clicks Download cloudflared (fetched from github.com/cloudflare/cloudflared releases into `/bin`); Tailscale and ngrok are used only when the person has them |
| `apps/*` (the other products' halves of the integration apps) | written for FormREC | Apache-2.0. They name packages installed in the vendor's own tooling when the owner deploys them, not shipped by FormREC: `@hubspot/ui-extensions` (HubSpot's) and react (MIT) for the HubSpot card; `@forge/api`, `@forge/resolver`, `@forge/bridge` (Atlassian's Forge terms) and esbuild (MIT) for the Jira app; AndroidX, Jetpack Compose, WorkManager and kotlinx-coroutines (Apache-2.0) and Google Play services' code scanner (Google's terms) for the Android app; the iOS app uses system frameworks only; Zendesk's app SDK loads from Zendesk's CDN at run time |
| `relay/Dockerfile` | written for FormREC, built on the official `node:22-slim` image (Node.js MIT; the image's Debian packages under their own licences) | Apache-2.0 |
-| FFmpeg, flite, espeak-ng (not shipped) | LGPL/GPL (FFmpeg), BSD-style (flite), GPL (espeak-ng) | used when present on the computer for exports, posters, noise reduction and synthesised voice; FormREC runs them as separate programs |
+| FFmpeg, flite, espeak-ng (not shipped) | LGPL/GPL (FFmpeg), BSD-style (flite), GPL (espeak-ng) | FFmpeg when present on the computer for exports, posters and noise reduction; flite or espeak-ng only when the person names one in `FORMREC_TTS` for Replace with speech (the built-in voice is Kokoro, above); FormREC runs them as separate programs |
| `THIRD-PARTY-NOTICES.txt`, `setup/notices.mjs`, `setup/notices-crates.mjs`, `src/notices.ts` | generated from the npm, Rust and vendored components above (their own licence texts, unchanged); the generator and the route are written for FormREC | each text under its own licence; the generator Apache-2.0 |
| `web/views.css`, `web/src/view-kit.ts`, `web/src/meter.ts` | written for FormREC; the icons are drawn inline as SVG | Apache-2.0 |
| `web/src/dock/*`, `web/styles/dock.css` | the agent dock module 2.2.1 from FormVis and FormDeck (the same family), written into FormREC by hand with its imports adapted; the icons are drawn inline as SVG | Apache-2.0 |
diff --git a/README.md b/README.md
index 3bb5804..b2a1f7a 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@
-
+
@@ -128,7 +128,8 @@ What FormREC does that Loom's own pages do not offer, each checked against Loom'
- **Short clips.** Highlights picked from the transcript, chapters and viewers become 9:16, 1:1 or 16:9 clips of 15 to 60 seconds with word-timed captions, the screen above the camera for vertical ones. Each clip is a recording of its own.
- **Keystrokes on screen.** Shortcuts and named keys over the picture, from walkthroughs and from tab recordings in the extension when you turn it on; never the characters typed, never a secret.
- **Scene chapters.** For recordings with little speech, chapters from where the screen changes, named from the page or the words at the top of the frame.
-- **Agents.** 122 MCP tools, among them object tools that read up to 20 recordings and meetings in one call, and a prompt for an agent sent to Jira as a work item assigned to an agent. Since 0.9.0 you choose what a remote agent reaching this computer through the bridge is offered: everything, no destructive tools or read only, plus tool names to withhold; the bridge never hands out the app's own token.
+- **Voice-over.** A natural built-in voice, Kokoro (54 voices, Heart by default), set up once from Settings, Voice and offline after that, as in FormCut and FormMorpheus. Each chapter's text becomes a line at the chapter's time, made, heard and made again one line at a time in the player's Voice-over tab, and mixed into exports and share links with the recording lowered under it.
+- **Agents.** 124 MCP tools, among them object tools that read up to 20 recordings and meetings in one call, and a prompt for an agent sent to Jira as a work item assigned to an agent. Since 0.9.0 you choose what a remote agent reaching this computer through the bridge is offered: everything, no destructive tools or read only, plus tool names to withhold; the bridge never hands out the app's own token.
- **Variants.** A walkthrough that declares `{{variables}}` is recorded once for each row of a JSON or CSV file (`formrec variants`, the Variants panel, an MCP tool): one recording per set of values, each linked to its source, with the same redaction and no variable allowed to carry a secret. It is not Loom's personalised video, whose spoken variables Loom is deprecating; nothing here is spoken.
- **Linux.** On X11 the desktop app records the display you pick directly, with no system picker. 0.9.0 built the Linux app and ran that feed inside it; the same run found that the Linux app's window cannot yet use a microphone or camera, which is open.
diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt
index e907d94..0332047 100644
--- a/THIRD-PARTY-NOTICES.txt
+++ b/THIRD-PARTY-NOTICES.txt
@@ -1,6 +1,6 @@
-FormRec third-party notices
+FormREC third-party notices
-FormRec is Apache-2.0 (see LICENSE and NOTICE.md). This file holds the licence
+FormREC is Apache-2.0 (see LICENSE and NOTICE.md). This file holds the licence
texts of the third-party software that ships with it: the Node.js runtime of the
desktop app, the npm packages its server runs, the vendored RNNoise module in the
window, the Rust crates compiled into the desktop shell, and what the app
diff --git a/apps/android/README.md b/apps/android/README.md
index 4dc2e03..ade5683 100644
--- a/apps/android/README.md
+++ b/apps/android/README.md
@@ -1,7 +1,7 @@
-# FormRec for Android
+# FormREC for Android
A Kotlin app that records the phone's screen with MediaProjection (a foreground service of type `mediaProjection`,
-`MediaRecorder` to MP4, a three-second countdown, pause and stop in the notification) and sends it to the paired FormRec
+`MediaRecorder` to MP4, a three-second countdown, pause and stop in the notification) and sends it to the paired FormREC
over the local network with WorkManager. The wire contract is `../mobile-api.md`; the server is
`src/features/phone/` (`native.ts`).
@@ -33,7 +33,7 @@ artifact" from Robolectric; run it again, the downloads are cached.
`enqueue` asks WorkManager for a unique job that needs the network.
* `SettingsTest`, `ScreenSizeAndManifestTest`: stored pairing and result; the screen size on Android 10; the service
types and permissions in the merged manifest.
-* `FormRecServerE2ETest`: the Kotlin client and `UploadWorker` against a real FormRec server: pairing by code with the
+* `FormRecServerE2ETest`: the Kotlin client and `UploadWorker` against a real FormREC server: pairing by code with the
certificate pinned (and a wrong fingerprint failing closed), the chunk answers (accepted, already held, ahead, not an
MP4, unknown upload), a worker upload of a real two-slice MP4 into the library, a retry then success, resuming where
the computer stopped, restarting when the computer forgot the upload, and an unrecoverable refusal being dropped. It is
diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt
index 8ae273b..cb69ab4 100644
--- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt
+++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt
@@ -55,7 +55,7 @@ class FormRecClient(private val host: String, private val port: Int, private val
override fun checkServerTrusted(chain: Array, authType: String) {
val seen = fingerprintOf(chain[0])
observed = seen
- if (pinned != null && !seen.equals(pinned, ignoreCase = true)) throw CertificateException("This is not the computer FormRec was paired with: its certificate changed.")
+ if (pinned != null && !seen.equals(pinned, ignoreCase = true)) throw CertificateException("This is not the computer FormREC was paired with: its certificate changed.")
}
override fun getAcceptedIssuers(): Array = emptyArray()
@@ -106,7 +106,7 @@ class FormRecClient(private val host: String, private val port: Int, private val
/** Connect once and read the certificate's fingerprint, to show the person before they trust it. */
fun observeFingerprint(): String {
runCatching { call("/phone/api/me") }
- return observed ?: throw IOException("Could not reach the computer at $host. Is FormRec's phone switch on, on the same network?")
+ return observed ?: throw IOException("Could not reach the computer at $host. Is FormREC's phone switch on, on the same network?")
}
/** Exchange the six-digit code for the device's cookie: the `name=value` pair. */
diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt
index f3abaec..4fd33ae 100644
--- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt
+++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt
@@ -54,7 +54,7 @@ private fun AppScreen() {
val context = androidx.compose.ui.platform.LocalContext.current
var pairing by remember { mutableStateOf(Settings.pairing(context)) }
Column(Modifier.fillMaxSize().padding(20.dp), verticalArrangement = Arrangement.spacedBy(12.dp)) {
- Text("FormRec", style = MaterialTheme.typography.headlineMedium)
+ Text("FormREC", style = MaterialTheme.typography.headlineMedium)
val current = pairing
if (current == null) PairingScreen { pairing = it; Settings.savePairing(context, it) }
else RecordScreen(current) { pairing = null; Settings.savePairing(context, null) }
@@ -75,7 +75,7 @@ private fun PairingScreen(onPaired: (Pairing) -> Unit) {
val target = confirm
if (target == null) {
- Text("On your computer open FormRec, Home, Record from your phone, and turn it on. Scan the QR code, or paste the link.")
+ Text("On your computer open FormREC, Home, Record from your phone, and turn it on. Scan the QR code, or paste the link.")
OutlinedTextField(link, { link = it }, Modifier.fillMaxWidth(), label = { Text("Link") }, singleLine = true, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Uri))
OutlinedTextField(code, { code = it }, Modifier.fillMaxWidth(), label = { Text("Six-digit code (if the link has none)") }, singleLine = true, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number))
OutlinedTextField(name, { name = it }, Modifier.fillMaxWidth(), label = { Text("Name for this phone") }, singleLine = true)
@@ -98,7 +98,7 @@ private fun PairingScreen(onPaired: (Pairing) -> Unit) {
val (parsed, fingerprint) = target
Text("Is this your computer?", style = MaterialTheme.typography.titleMedium)
Text("${parsed.host}:${parsed.port}")
- Text("Its certificate's fingerprint must match the one FormRec shows on your computer (Settings, Phone; the Studio's guest panel shows the start of it).")
+ Text("Its certificate's fingerprint must match the one FormREC shows on your computer (Settings, Phone; the Studio's guest panel shows the start of it).")
Text(fingerprint, fontFamily = FontFamily.Monospace, style = MaterialTheme.typography.bodySmall)
Button(
onClick = {
diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt
index ee2ad9a..e2e9e22 100644
--- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt
+++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt
@@ -44,13 +44,13 @@ object Notifications {
when (state) {
is CaptureState.Countdown -> builder.setContentTitle("Recording starts in ${state.seconds}")
.addAction(action(context, R.string.action_stop, CaptureService.ACTION_STOP, 3))
- CaptureState.Recording -> builder.setContentTitle("FormRec is recording your screen").setUsesChronometer(true)
+ CaptureState.Recording -> builder.setContentTitle("FormREC is recording your screen").setUsesChronometer(true)
.addAction(action(context, R.string.action_pause, CaptureService.ACTION_PAUSE, 1))
.addAction(action(context, R.string.action_stop, CaptureService.ACTION_STOP, 3))
CaptureState.Paused -> builder.setContentTitle("Recording paused")
.addAction(action(context, R.string.action_resume, CaptureService.ACTION_RESUME, 2))
.addAction(action(context, R.string.action_stop, CaptureService.ACTION_STOP, 3))
- CaptureState.Idle -> builder.setContentTitle("FormRec")
+ CaptureState.Idle -> builder.setContentTitle("FormREC")
}
return builder.build()
}
@@ -58,7 +58,7 @@ object Notifications {
fun upload(context: Context, text: String): Notification =
Notification.Builder(context, UPLOAD_CHANNEL)
.setSmallIcon(R.drawable.ic_stat_record)
- .setContentTitle("FormRec")
+ .setContentTitle("FormREC")
.setContentText(text)
.setContentIntent(open(context))
.setOngoing(true)
diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt
index 558d432..45c879f 100644
--- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt
+++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt
@@ -62,7 +62,7 @@ class ScreenRecorder(
// Android 14: a callback must be registered before createVirtualDisplay, and a token makes one display only.
projection.registerCallback(callback, Handler(Looper.getMainLooper()))
display = projection.createVirtualDisplay(
- "FormRec", width, height, density,
+ "FormREC", width, height, density,
DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, media.surface, null, null,
)
media.start()
diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt
index c58dabd..e1a7974 100644
--- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt
+++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt
@@ -23,7 +23,7 @@ class UploadWorker(context: Context, params: WorkerParameters) : CoroutineWorker
val pairing = Settings.pairing(applicationContext)
for (entry in UploadQueue.pending(applicationContext)) {
if (pairing == null) {
- fail(entry, "FormRec is not paired with a computer. Pair it, then record again.")
+ fail(entry, "FormREC is not paired with a computer. Pair it, then record again.")
continue
}
try {
diff --git a/apps/android/app/src/main/res/values/strings.xml b/apps/android/app/src/main/res/values/strings.xml
index 60abc3b..55c7919 100644
--- a/apps/android/app/src/main/res/values/strings.xml
+++ b/apps/android/app/src/main/res/values/strings.xml
@@ -1,6 +1,6 @@
- FormRec
+ FormREC
Recording
Sending
Pause
diff --git a/apps/figma/README.md b/apps/figma/README.md
index b49e3d7..e4cb823 100644
--- a/apps/figma/README.md
+++ b/apps/figma/README.md
@@ -1,4 +1,4 @@
-# FormRec for Figma and FigJam
+# FormREC for Figma and FigJam
A plugin that lists your shared recordings and puts a recording on the canvas: one frame per step, in a row with auto
layout, each with the step's picture, its title and its timestamped link (`?t=1m20s`). "Insert player link" adds the
diff --git a/apps/figma/code.js b/apps/figma/code.js
index af3efc9..789d8c4 100644
--- a/apps/figma/code.js
+++ b/apps/figma/code.js
@@ -19,7 +19,7 @@ const GAP = 24;
const REGULAR = { family: 'Inter', style: 'Regular' };
const BOLD = { family: 'Inter', style: 'Bold' };
const STORAGE = 'formrec';
-figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormRec' });
+figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormREC' });
void figma.clientStorage.getAsync(STORAGE).then((saved) => {
var _a, _b;
const s = (saved !== null && saved !== void 0 ? saved : {});
diff --git a/apps/figma/code.ts b/apps/figma/code.ts
index cf4a33b..47eb6be 100644
--- a/apps/figma/code.ts
+++ b/apps/figma/code.ts
@@ -26,7 +26,7 @@ type FromUi =
| { type: 'place'; title: string; url: string; steps: PlaceStep[] }
| { type: 'link'; title: string; url: string }
-figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormRec' })
+figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormREC' })
void figma.clientStorage.getAsync(STORAGE).then((saved) => {
const s = (saved ?? {}) as { base?: string; token?: string }
diff --git a/apps/figma/manifest.json b/apps/figma/manifest.json
index 73f2075..564944b 100644
--- a/apps/figma/manifest.json
+++ b/apps/figma/manifest.json
@@ -1,5 +1,5 @@
{
- "name": "FormRec",
+ "name": "FormREC",
"id": "0000000000000000000",
"api": "1.0.0",
"main": "code.js",
@@ -8,7 +8,7 @@
"documentAccess": "dynamic-page",
"networkAccess": {
"allowedDomains": ["https://relay.example.com"],
- "reasoning": "Lists your FormRec recordings and loads each step's picture from your own FormRec relay or tunnel address.",
+ "reasoning": "Lists your FormREC recordings and loads each step's picture from your own FormREC relay or tunnel address.",
"devAllowedDomains": ["http://localhost:8780"]
}
}
diff --git a/apps/figma/ui.html b/apps/figma/ui.html
index f1a16e3..ca8aeb1 100644
--- a/apps/figma/ui.html
+++ b/apps/figma/ui.html
@@ -2,7 +2,7 @@
-FormRec
+FormREC
-FormRec
-FormRec address
+FormREC
+FormREC address
Plugin token
@@ -58,9 +58,9 @@ FormRec
}
function json(path) {
return api(path).then(function (r) {
- if (r.status === 401) throw new Error('The token is not right. Copy it again from FormRec Settings, Apps, Figma.');
+ if (r.status === 401) throw new Error('The token is not right. Copy it again from FormREC Settings, Apps, Figma.');
if (r.status === 403) throw new Error('That recording is protected, so its pictures stay hidden.');
- if (!r.ok) throw new Error('FormRec answered ' + r.status + '.');
+ if (!r.ok) throw new Error('FormREC answered ' + r.status + '.');
return r.json();
});
}
@@ -86,7 +86,7 @@ FormRec
function render(recordings) {
list.textContent = '';
- if (recordings.length === 0) { var none = document.createElement('li'); none.textContent = 'No shared recordings yet. Share one in FormRec first.'; list.appendChild(none); return; }
+ if (recordings.length === 0) { var none = document.createElement('li'); none.textContent = 'No shared recordings yet. Share one in FormREC first.'; list.appendChild(none); return; }
recordings.forEach(function (item) {
var li = document.createElement('li');
var b = document.createElement('button');
@@ -102,7 +102,7 @@ FormRec
}
loadBtn.addEventListener('click', function () {
- if (!root() || !token.value.trim()) { say('Enter the FormRec address and the plugin token.', true); return; }
+ if (!root() || !token.value.trim()) { say('Enter the FormREC address and the plugin token.', true); return; }
save(); busy(true); say('Loading');
json('recent').then(function (r) { render(r.recordings); say(''); }, function (e) { say(e.message, true); }).then(function () { busy(false); });
});
diff --git a/apps/formmd/README.md b/apps/formmd/README.md
index 0258240..cdaab66 100644
--- a/apps/formmd/README.md
+++ b/apps/formmd/README.md
@@ -1,26 +1,26 @@
-# FormRec for form.md
+# FormREC for form.md
form.md is the Form family's workspace: pages, databases and realtime editing for people and agents, one Go binary
-with its web client embedded (default address `http://127.0.0.1:8750`). FormRec publishes a recording to it as a page.
+with its web client embedded (default address `http://127.0.0.1:8750`). FormREC publishes a recording to it as a page.
Nothing is installed inside form.md; this folder is the guide, and `integration.json` describes the connection.
## 1. Publish to form.md (Settings, Integrations, form.md)
1. In form.md, open Account settings, API tokens, and make a personal API token that can write (`fmd_...`).
-2. In FormRec, Settings, Integrations, form.md: enter form.md's address, paste the token (it is kept in your data
+2. In FormREC, Settings, Integrations, form.md: enter form.md's address, paste the token (it is kept in your data
folder, `integrations/connections.json`, readable only by you, and never shown again in full), press **Load
workspaces**, choose the workspace, optionally paste a page link to put recordings under, and Save. **Test** checks
that the token signs in, may write, and sees the workspace and the parent page.
3. A recording's **Send to** menu, `POST /api/integrations/send/` `{ "to": "formmd" }` and the MCP tool
`formrec_export_page` with `publish: "formmd"` make the page and return its link. Publishing the same recording
- again replaces the body of the same page (FormRec keeps the page id in the recording's folder, `formmd.json`); if
+ again replaces the body of the same page (FormREC keeps the page id in the recording's folder, `formmd.json`); if
the page was deleted in form.md a new one is made.
The address may be `https` anywhere, or `http` on this computer or the local network (loopback, private and
link-local addresses, `.local` names). A token sent over plain http crosses the network unencrypted: use https
beyond your own computer.
-What FormRec calls (form.md serves the reference at `/api/docs`):
+What FormREC calls (form.md serves the reference at `/api/docs`):
| Call | Why |
|---|---|
@@ -38,14 +38,14 @@ and, if you chose it, **Transcript** (each segment a timestamped link).
form.md turns a link on its own line into a **bookmark card** (a Markdown line `` becomes a `bookmark` block), and
its editor fills the card with the page's title, description, picture and site name from the link's Open Graph tags
(`og:title`, `og:description`, `og:image`, `og:site_name`, falling back to `twitter:*` and ``) through its own
-unfurler. Two limits come from form.md, not from FormRec:
+unfurler. Two limits come from form.md, not from FormREC:
- The unfurler refuses loopback and private addresses unless form.md runs with `FORMMD_FETCH_PRIVATE=1`. A share link
that only opens on this computer or the local network stays a plain card with the address; a share through the
relay or the tunnel (Settings, Sharing) gets the full card.
- A card is a link, not a player. form.md embeds only the providers it knows (YouTube, Vimeo, Loom and others), or a
page that allows framing when the person chooses Embed for a pasted `https` link in the editor; Markdown cannot
- ask for that. FormRec's player page (`/e/`) allows framing, so Embed in the editor can play it inline.
+ ask for that. FormREC's player page (`/e/`) allows framing, so Embed in the editor can play it inline.
## 3. This server's half (`/apps/formmd/...`)
diff --git a/apps/formmd/integration.json b/apps/formmd/integration.json
index 5e6eced..5ddbc71 100644
--- a/apps/formmd/integration.json
+++ b/apps/formmd/integration.json
@@ -1,5 +1,5 @@
{
- "name": "FormRec",
+ "name": "FormREC",
"kind": "api-token-connection",
"target": "form.md",
"defaultAddress": "http://127.0.0.1:8750",
diff --git a/apps/github/INSTALL.md b/apps/github/INSTALL.md
index ec31f74..8937edd 100644
--- a/apps/github/INSTALL.md
+++ b/apps/github/INSTALL.md
@@ -1,8 +1,8 @@
-# FormRec for GitHub
+# FormREC for GitHub
-A FormRec link in an issue, a pull request or a comment gets one comment from the app: the animated preview linked to the recording, its title and length, the summary and the chapters as links that open the recording at that moment. GitHub cannot play a video inside a comment, so the animated preview and the chapter links are the inline play. A recording whose share hides previews gets only its link.
+A FormREC link in an issue, a pull request or a comment gets one comment from the app: the animated preview linked to the recording, its title and length, the summary and the chapters as links that open the recording at that moment. GitHub cannot play a video inside a comment, so the animated preview and the chapter links are the inline play. A recording whose share hides previews gets only its link.
-You need FormRec reachable from the internet (the relay, or the share listener while it is public) at an https address, called `PUBLIC_HOST` below.
+You need FormREC reachable from the internet (the relay, or the share listener while it is public) at an https address, called `PUBLIC_HOST` below.
## 1. Register the app (manifest flow)
@@ -15,14 +15,14 @@ You need FormRec reachable from the internet (the relay, or the share listener w
(You can also create the app by hand in Settings, Developer settings, GitHub Apps, with the same permissions, events and webhook address.)
-## 2. Give FormRec the app's details
+## 2. Give FormREC the app's details
-In FormRec, Settings, Apps, GitHub: set App ID (`id`), Private key (`pem`) and Webhook secret (`webhook_secret`). For GitHub Enterprise Server, set API address to `https:///api/v3`.
+In FormREC, Settings, Apps, GitHub: set App ID (`id`), Private key (`pem`) and Webhook secret (`webhook_secret`). For GitHub Enterprise Server, set API address to `https:///api/v3`.
## 3. Install the app
-On the app's page choose Install App and pick the repositories. Paste a FormRec share link into an issue; the comment appears in a few seconds. Editing the issue or adding another link updates the same comment.
+On the app's page choose Install App and pick the repositories. Paste a FormREC share link into an issue; the comment appears in a few seconds. Editing the issue or adding another link updates the same comment.
-How it authenticates: FormRec signs an RS256 JWT with the private key (`iss` the App ID, `iat` a minute in the past, `exp` under ten minutes), exchanges it at `POST /app/installations/{id}/access_tokens` for an installation token that lasts an hour, and calls the REST API with it. Every delivery's `X-Hub-Signature-256` is checked against the webhook secret before anything is read.
+How it authenticates: FormREC signs an RS256 JWT with the private key (`iss` the App ID, `iat` a minute in the past, `exp` under ten minutes), exchanges it at `POST /app/installations/{id}/access_tokens` for an installation token that lasts an hour, and calls the REST API with it. Every delivery's `X-Hub-Signature-256` is checked against the webhook secret before anything is read.
Sources: GitHub docs, "Registering a GitHub App from a manifest", "Generating a JSON Web Token (JWT) for a GitHub App", "Validating webhook deliveries", REST "Create an installation access token for an app".
diff --git a/apps/github/app-manifest.json b/apps/github/app-manifest.json
index 0cdbf9a..c37b6c3 100644
--- a/apps/github/app-manifest.json
+++ b/apps/github/app-manifest.json
@@ -1,7 +1,7 @@
{
- "name": "FormRec",
+ "name": "FormREC",
"url": "https://PUBLIC_HOST",
- "description": "Plays FormRec recordings inline in issues and pull requests: an animated preview, chapters and the summary.",
+ "description": "Plays FormREC recordings inline in issues and pull requests: an animated preview, chapters and the summary.",
"hook_attributes": {
"url": "https://PUBLIC_HOST/apps/github/webhook",
"active": true
diff --git a/apps/github/register.html b/apps/github/register.html
index 4f6ee07..e1824f7 100644
--- a/apps/github/register.html
+++ b/apps/github/register.html
@@ -2,12 +2,12 @@
-Register the FormRec GitHub App
+Register the FormREC GitHub App
-Register the FormRec GitHub App
+Register the FormREC GitHub App
Open this file from your computer. It posts the manifest in app-manifest.json to GitHub, which asks you to confirm.
Your public host (no https://)
diff --git a/apps/gitlab/INSTALL.md b/apps/gitlab/INSTALL.md
index fac8915..54fb990 100644
--- a/apps/gitlab/INSTALL.md
+++ b/apps/gitlab/INSTALL.md
@@ -1,8 +1,8 @@
-# FormRec for GitLab
+# FormREC for GitLab
-GitLab shows a link to a video file as a player inside Markdown. When an issue, a merge request or a comment contains a FormRec link, the app posts one note: the recording playing inline when the share plays without a gate, otherwise the animated preview, then the chapters as links. A share that hides previews gets only its link.
+GitLab shows a link to a video file as a player inside Markdown. When an issue, a merge request or a comment contains a FormREC link, the app posts one note: the recording playing inline when the share plays without a gate, otherwise the animated preview, then the chapters as links. A share that hides previews gets only its link.
-You need FormRec reachable from the internet at an https address, `PUBLIC_HOST` below.
+You need FormREC reachable from the internet at an https address, `PUBLIC_HOST` below.
1. Choose a secret token (a long random string).
2. In the project, Settings, Webhooks, Add new webhook:
@@ -10,7 +10,7 @@ You need FormRec reachable from the internet at an https address, `PUBLIC_HOST`
- Secret token: the string from step 1 (GitLab sends it in `X-Gitlab-Token`).
- Triggers: Comments, Issues events, Merge request events.
3. Create a project access token (or a personal access token) with the `api` scope and the Developer role or higher, so the app can create and update notes.
-4. In FormRec, Settings, Apps, GitLab: set Webhook secret token and Access token. For a self-managed GitLab set API address to `https:///api/v4`.
-5. Paste a FormRec link in an issue. The note appears in a few seconds; later links in the same issue update the same note.
+4. In FormREC, Settings, Apps, GitLab: set Webhook secret token and Access token. For a self-managed GitLab set API address to `https:///api/v4`.
+5. Paste a FormREC link in an issue. The note appears in a few seconds; later links in the same issue update the same note.
Sources: GitLab docs, "Webhooks" and "Webhook events" (X-Gitlab-Token, X-Gitlab-Event: Note Hook, Issue Hook, Merge Request Hook), "Notes API" (POST and PUT on issues and merge requests, PRIVATE-TOKEN).
diff --git a/apps/google/Code.gs b/apps/google/Code.gs
index 8faceda..3a3e04a 100644
--- a/apps/google/Code.gs
+++ b/apps/google/Code.gs
@@ -12,7 +12,7 @@ var ORANGE = '#f97316';
function relayBase_() {
var url = PropertiesService.getScriptProperties().getProperty('RELAY_URL');
- if (!url) throw new Error('Set the RELAY_URL script property to your FormRec relay address.');
+ if (!url) throw new Error('Set the RELAY_URL script property to your FormREC relay address.');
return url.replace(/\/+$/, '');
}
@@ -27,13 +27,13 @@ function call_(route, params) {
muteHttpExceptions: true
});
var body = JSON.parse(response.getContentText() || '{}');
- if (response.getResponseCode() !== 200) throw new Error(body.error || ('FormRec answered ' + response.getResponseCode()));
+ if (response.getResponseCode() !== 200) throw new Error(body.error || ('FormREC answered ' + response.getResponseCode()));
return body;
}
function errorCard_(error) {
return CardService.newCardBuilder()
- .setHeader(CardService.newCardHeader().setTitle('FormRec'))
+ .setHeader(CardService.newCardHeader().setTitle('FormREC'))
.addSection(CardService.newCardSection().addWidget(CardService.newTextParagraph().setText(String(error.message || error))))
.build();
}
@@ -44,9 +44,9 @@ function openLinkButton_(text, url) {
function onHomepage() {
return CardService.newCardBuilder()
- .setHeader(CardService.newCardHeader().setTitle('FormRec'))
+ .setHeader(CardService.newCardHeader().setTitle('FormREC'))
.addSection(CardService.newCardSection().addWidget(CardService.newTextParagraph().setText(
- 'Insert recordings in Gmail, record for a Calendar event, and paste FormRec links into Docs, Sheets and Slides.')))
+ 'Insert recordings in Gmail, record for a Calendar event, and paste FormREC links into Docs, Sheets and Slides.')))
.build();
}
@@ -65,7 +65,7 @@ function onGmailCompose() {
if (data.recordings.length === 0) section.addWidget(CardService.newTextParagraph().setText('No shared recordings yet.'));
var record = CardService.newCardSection().addWidget(openLinkButton_('Record new',
relayBase_() + '/apps/google/open?link=' + encodeURIComponent(data.recorder)));
- return [CardService.newCardBuilder().setHeader(CardService.newCardHeader().setTitle('FormRec recordings')).addSection(section).addSection(record).build()];
+ return [CardService.newCardBuilder().setHeader(CardService.newCardHeader().setTitle('FormREC recordings')).addSection(section).addSection(record).build()];
} catch (e) {
return [errorCard_(e)];
}
@@ -95,7 +95,7 @@ function onCalendarEventOpen(e) {
}
var data = call_('event', { eventId: eventId, start: start, title: title });
return CardService.newCardBuilder()
- .setHeader(CardService.newCardHeader().setTitle('FormRec'))
+ .setHeader(CardService.newCardHeader().setTitle('FormREC'))
.addSection(CardService.newCardSection()
.addWidget(CardService.newTextParagraph().setText(data.title))
.addWidget(openLinkButton_('Record for this meeting', data.openUrl)))
@@ -112,7 +112,7 @@ function onLinkPreview(e) {
try {
info = call_('preview', { url: url });
} catch (err) {
- info = { title: 'FormRec recording', summary: '', durationMs: 0 };
+ info = { title: 'FormREC recording', summary: '', durationMs: 0 };
}
var section = CardService.newCardSection();
if (info.posterUrl) section.addWidget(CardService.newImage().setImageUrl(info.posterUrl).setAltText(info.title));
diff --git a/apps/google/INSTALL.md b/apps/google/INSTALL.md
index a486810..7cd50a3 100644
--- a/apps/google/INSTALL.md
+++ b/apps/google/INSTALL.md
@@ -1,10 +1,10 @@
-# FormRec for Google Workspace: install
+# FormREC for Google Workspace: install
-The add-on is an Apps Script project (this folder) that calls your FormRec relay at `https:///apps/google/...`
+The add-on is an Apps Script project (this folder) that calls your FormREC relay at `https:///apps/google/...`
with the Google-signed ID token of the person using it. The relay verifies the token (signature, issuer, audience,
expiry, verified email, optional domain) before it answers.
-## 1. Settings in FormRec
+## 1. Settings in FormREC
Settings, Apps, Google Workspace:
@@ -34,8 +34,8 @@ Google Cloud console, Google Workspace Marketplace SDK, App Configuration: visib
## Notes
-- Deep links (`formrec://...`) cannot be opened directly from an add-on card, which allows https links only, so the buttons open `https:///apps/google/open?link=...`, a small page that hands the link to the FormRec app on that person's computer.
-- A share that hides previews shows as "FormRec recording" with no picture in chips, the picker and emails.
+- Deep links (`formrec://...`) cannot be opened directly from an add-on card, which allows https links only, so the buttons open `https:///apps/google/open?link=...`, a small page that hands the link to the FormREC app on that person's computer.
+- A share that hides previews shows as "FormREC recording" with no picture in chips, the picker and emails.
- Not verified without a Google account: the OAuth consent screen and the Marketplace review.
## Google documentation for each manifest field
diff --git a/apps/google/appsscript.json b/apps/google/appsscript.json
index 02042e6..1c6d527 100644
--- a/apps/google/appsscript.json
+++ b/apps/google/appsscript.json
@@ -15,7 +15,7 @@
"urlFetchWhitelist": ["https://RELAY_HOST/apps/google/"],
"addOns": {
"common": {
- "name": "FormRec",
+ "name": "FormREC",
"logoUrl": "https://LOGO_HOST/formrec-mark.png",
"layoutProperties": { "primaryColor": "#f97316" },
"useLocaleFromApp": true,
@@ -24,7 +24,7 @@
},
"gmail": {
"composeTrigger": {
- "selectActions": [{ "text": "Insert a FormRec recording", "runFunction": "onGmailCompose" }],
+ "selectActions": [{ "text": "Insert a FormREC recording", "runFunction": "onGmailCompose" }],
"draftAccess": "NONE"
}
},
@@ -37,7 +37,7 @@
{
"runFunction": "onLinkPreview",
"patterns": [{ "hostPattern": "RELAY_HOST", "pathPrefix": "v" }],
- "labelText": "FormRec recording",
+ "labelText": "FormREC recording",
"logoUrl": "https://LOGO_HOST/formrec-mark.png"
}
]
@@ -47,7 +47,7 @@
{
"runFunction": "onLinkPreview",
"patterns": [{ "hostPattern": "RELAY_HOST", "pathPrefix": "v" }],
- "labelText": "FormRec recording",
+ "labelText": "FormREC recording",
"logoUrl": "https://LOGO_HOST/formrec-mark.png"
}
]
@@ -57,7 +57,7 @@
{
"runFunction": "onLinkPreview",
"patterns": [{ "hostPattern": "RELAY_HOST", "pathPrefix": "v" }],
- "labelText": "FormRec recording",
+ "labelText": "FormREC recording",
"logoUrl": "https://LOGO_HOST/formrec-mark.png"
}
]
diff --git a/apps/hubspot/INSTALL.md b/apps/hubspot/INSTALL.md
index fb34fa2..625e5c4 100644
--- a/apps/hubspot/INSTALL.md
+++ b/apps/hubspot/INSTALL.md
@@ -1,8 +1,8 @@
-# FormRec for HubSpot
+# FormREC for HubSpot
-A card on Contact and Deal records (the recordings the contact watched, with links to play them, and "Send a recording"), and a "Watched a FormRec" entry on the contact timeline whenever a known person watches.
+A card on Contact and Deal records (the recordings the contact watched, with links to play them, and "Send a recording"), and a "Watched a FormREC" entry on the contact timeline whenever a known person watches.
-You need the HubSpot CLI 8.4.0 or later (`hs`), a FormRec relay reachable over HTTPS, and a HubSpot developer account.
+You need the HubSpot CLI 8.4.0 or later (`hs`), a FormREC relay reachable over HTTPS, and a HubSpot developer account.
## 1. Point the project at your relay
@@ -28,12 +28,12 @@ curl -X POST -H "Content-Type: application/json" -d @timeline/watched-a-formrec.
"https://api.hubapi.com/crm/v3/timeline//event-templates?hapikey="
```
-The response has the template `id`.
+The response has the template `id`. FormREC finds the template by that `id` only, so a template made before 0.11.0 under the name "Watched a FormRec" keeps working: keep its `id`, and rename it in HubSpot if you like.
-## 4. Configure FormRec
+## 4. Configure FormREC
-In FormRec, Settings, HubSpot: enter the Client ID, the Client secret and the template `id`. Then open `https:///apps/hubspot/connect` and approve the install. The client secret also verifies the signature of every card request (X-HubSpot-Signature-v3).
+In FormREC, Settings, HubSpot: enter the Client ID, the Client secret and the template `id`. Then open `https:///apps/hubspot/connect` and approve the install. The client secret also verifies the signature of every card request (X-HubSpot-Signature-v3).
## 5. Add the card
-Open a Contact or Deal, then Customize record, and add the FormRec card to a tab.
+Open a Contact or Deal, then Customize record, and add the FormREC card to a tab.
diff --git a/apps/hubspot/src/app/app-hsmeta.json b/apps/hubspot/src/app/app-hsmeta.json
index 49d9cbb..d352465 100644
--- a/apps/hubspot/src/app/app-hsmeta.json
+++ b/apps/hubspot/src/app/app-hsmeta.json
@@ -2,8 +2,8 @@
"uid": "formrec_hubspot_app",
"type": "app",
"config": {
- "description": "Shows which FormRec recordings a contact watched, lets you send one, and puts a Watched a FormRec entry on the contact timeline.",
- "name": "FormRec",
+ "description": "Shows which FormREC recordings a contact watched, lets you send one, and puts a Watched a FormREC entry on the contact timeline.",
+ "name": "FormREC",
"distribution": "private",
"auth": {
"type": "oauth",
diff --git a/apps/hubspot/src/app/cards/FormRecCard.jsx b/apps/hubspot/src/app/cards/FormRecCard.jsx
index 142e406..8bce383 100644
--- a/apps/hubspot/src/app/cards/FormRecCard.jsx
+++ b/apps/hubspot/src/app/cards/FormRecCard.jsx
@@ -47,13 +47,13 @@ const FormRecCard = ({ context, actions }) => {
}
}
- if (failed) return The FormRec relay did not answer. Check the app's connection in FormRec Settings.
+ if (failed) return The FormREC relay did not answer. Check the app's connection in FormREC Settings.
if (!data) return
return (
Watched
- {data.watched.length === 0 ? Nobody on this record has watched a FormRec recording yet. : null}
+ {data.watched.length === 0 ? Nobody on this record has watched a FormREC recording yet. : null}
{data.watched.map((r) => (
{r.title}
@@ -65,7 +65,7 @@ const FormRecCard = ({ context, actions }) => {
Send a recording
{data.recent.length === 0 ? (
- No shared recordings yet. Share one in FormRec first.
+ No shared recordings yet. Share one in FormREC first.
) : (
/apps/intercom/initialize`
- Submit URL: `https:///apps/intercom/submit`
- Leave the Configure URL empty. The Inbox picker runs inside the conversation details panel, so no separate configure flow is needed.
4. Turn on the locations: the Inbox conversation details (so teammates can pick a recording) and the Messenger (so the inserted card can play).
-5. Add the app to the Inbox: in a conversation, open the conversation details panel, add the FormRec app. Pick a recording, check the preview, choose Insert into reply.
+5. Add the app to the Inbox: in a conversation, open the conversation details panel, add the FormREC app. Pick a recording, check the preview, choose Insert into reply.
## How a request is checked
diff --git a/apps/ios/FormRec/ContentView.swift b/apps/ios/FormRec/ContentView.swift
index cb471f3..3e3272c 100644
--- a/apps/ios/FormRec/ContentView.swift
+++ b/apps/ios/FormRec/ContentView.swift
@@ -31,7 +31,7 @@ struct ContentView: View {
.tint(.red)
.overlay { picker.hostView.frame(width: 0, height: 0) }
} footer: {
- Text("Choose FormRec in the list that opens, turn the microphone on if you want your voice, and tap Start Broadcast. Stop from the red bar or Control Centre. The recording goes straight to your computer.")
+ Text("Choose FormREC in the list that opens, turn the microphone on if you want your voice, and tap Start Broadcast. Stop from the red bar or Control Centre. The recording goes straight to your computer.")
}
if let last = model.last {
@@ -54,7 +54,7 @@ struct ContentView: View {
Button("Pair with another computer", role: .destructive) { model.pairingChanged(nil) }
}
}
- .navigationTitle("FormRec")
+ .navigationTitle("FormREC")
}
}
diff --git a/apps/ios/FormRec/PairingView.swift b/apps/ios/FormRec/PairingView.swift
index 3ba15f1..b9dbc38 100644
--- a/apps/ios/FormRec/PairingView.swift
+++ b/apps/ios/FormRec/PairingView.swift
@@ -23,7 +23,7 @@ struct PairingView: View {
}
if !message.isEmpty { Section { Text(message).foregroundStyle(.orange) } }
}
- .navigationTitle("Pair with FormRec")
+ .navigationTitle("Pair with FormREC")
.sheet(isPresented: $scanning) {
QRScannerView { value in
link = value
@@ -34,7 +34,7 @@ struct PairingView: View {
@ViewBuilder private var enter: some View {
Section {
- Text("On your computer open FormRec, Home, Record from your phone, and turn it on. Scan the QR code, or paste the link.")
+ Text("On your computer open FormREC, Home, Record from your phone, and turn it on. Scan the QR code, or paste the link.")
}
Section("Link and code") {
TextField("https://192.168.1.20:8771/phone/#pair=123456", text: $link)
@@ -56,7 +56,7 @@ struct PairingView: View {
@ViewBuilder private func confirm(_ target: PairingLink, _ fingerprint: String) -> some View {
Section("Is this your computer?") {
Text("\(target.host):\(target.port)").font(.headline)
- Text("Its certificate's fingerprint is below. It must match the one FormRec shows on your computer (Settings, Phone, or the Studio's guest panel, which shows the start of it).")
+ Text("Its certificate's fingerprint is below. It must match the one FormREC shows on your computer (Settings, Phone, or the Studio's guest panel, which shows the start of it).")
.font(.footnote)
Text(fingerprint).font(.caption.monospaced()).textSelection(.enabled)
}
diff --git a/apps/ios/FormRecBroadcast/SampleHandler.swift b/apps/ios/FormRecBroadcast/SampleHandler.swift
index 84c5734..8bbc3eb 100644
--- a/apps/ios/FormRecBroadcast/SampleHandler.swift
+++ b/apps/ios/FormRecBroadcast/SampleHandler.swift
@@ -11,7 +11,7 @@ final class SampleHandler: RPBroadcastSampleHandler {
override func broadcastStarted(withSetupInfo setupInfo: [String: NSObject]?) {
guard let pairing = SharedSettings.loadPairing() else {
- finishBroadcastWithError(NSError(domain: "FormRec", code: 1, userInfo: [NSLocalizedDescriptionKey: "Open FormRec and pair it with your computer first."]))
+ finishBroadcastWithError(NSError(domain: "FormRec", code: 1, userInfo: [NSLocalizedDescriptionKey: "Open FormREC and pair it with your computer first."]))
return
}
do {
diff --git a/apps/ios/README.md b/apps/ios/README.md
index 392c93f..e129f3b 100644
--- a/apps/ios/README.md
+++ b/apps/ios/README.md
@@ -1,6 +1,6 @@
-# FormRec for iOS
+# FormREC for iOS
-A SwiftUI app and a ReplayKit Broadcast Upload Extension that record the iPhone's screen into the FormRec on your
+A SwiftUI app and a ReplayKit Broadcast Upload Extension that record the iPhone's screen into the FormREC on your
computer, over your own network. The wire contract is `apps/mobile-api.md`; the server half is
`src/features/phone/native.ts`.
@@ -34,7 +34,7 @@ https://www.swift.org/install/linux/ describes), for example Swift 6.4.2 for Ubu
cd apps/ios
swift build
swift test --skip RealServerTests # unit tests: link, client shapes, uploader, pending queue, pin rule
- npx vitest run tests/phone-ios-e2e.test.ts # starts a real FormRec and runs RealServerTests against it
+ npx vitest run tests/phone-ios-e2e.test.ts # starts a real FormREC and runs RealServerTests against it
`tests/phone-ios-e2e.test.ts` finds Swift through `FORMREC_SWIFT`, `/opt/swift/usr/bin/swift` or the PATH, and is
skipped with a message when there is none (or no ffmpeg, or no `unshare` with user and mount namespaces). It builds into
diff --git a/apps/ios/Shared/FormRecClient.swift b/apps/ios/Shared/FormRecClient.swift
index 0f48caf..6b5c958 100644
--- a/apps/ios/Shared/FormRecClient.swift
+++ b/apps/ios/Shared/FormRecClient.swift
@@ -183,7 +183,7 @@ final class FormRecClient: NSObject, URLSessionDelegate, @unchecked Sendable {
} catch let error as FormRecError {
throw error
} catch let error as URLError where error.code == .cancelled || error.code == .serverCertificateUntrusted || error.code == .secureConnectionFailed {
- throw FormRecError.untrusted("This is not the computer FormRec was paired with (its certificate changed). Pair again.")
+ throw FormRecError.untrusted("This is not the computer FormREC was paired with (its certificate changed). Pair again.")
} catch {
throw FormRecError.network(error.localizedDescription)
}
@@ -199,7 +199,7 @@ final class FormRecClient: NSObject, URLSessionDelegate, @unchecked Sendable {
/// Connect once and read the certificate's fingerprint, to show the person before they trust it.
func observeFingerprint() async throws -> String {
_ = try? await send(try request("/phone/api/me"))
- guard let observed else { throw FormRecError.network("Could not reach the computer at \(base.host ?? "that address"). Is FormRec's phone switch on, on the same network?") }
+ guard let observed else { throw FormRecError.network("Could not reach the computer at \(base.host ?? "that address"). Is FormREC's phone switch on, on the same network?") }
return observed
}
diff --git a/apps/ios/project.yml b/apps/ios/project.yml
index f6de0ea..1a67cad 100644
--- a/apps/ios/project.yml
+++ b/apps/ios/project.yml
@@ -39,7 +39,7 @@ targets:
info:
path: FormRec/Info.plist
properties:
- CFBundleDisplayName: FormRec
+ CFBundleDisplayName: FormREC
UILaunchScreen: {}
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
@@ -48,8 +48,8 @@ targets:
# The App Group both targets share (settings and the upload spool), and the extension the picker offers.
FormRecAppGroup: group.ai.nodemode.formrec
FormRecBroadcastBundleID: ai.nodemode.formrec.broadcast
- NSCameraUsageDescription: FormRec uses the camera only to scan the QR code your computer shows.
- NSLocalNetworkUsageDescription: FormRec sends your recordings to your own computer on this network.
+ NSCameraUsageDescription: FormREC uses the camera only to scan the QR code your computer shows.
+ NSLocalNetworkUsageDescription: FormREC sends your recordings to your own computer on this network.
NSAppTransportSecurity:
NSAllowsLocalNetworking: true
entitlements:
@@ -74,9 +74,9 @@ targets:
info:
path: FormRecBroadcast/Info.plist
properties:
- CFBundleDisplayName: FormRec
+ CFBundleDisplayName: FormREC
FormRecAppGroup: group.ai.nodemode.formrec
- NSLocalNetworkUsageDescription: FormRec sends your recordings to your own computer on this network.
+ NSLocalNetworkUsageDescription: FormREC sends your recordings to your own computer on this network.
NSExtension:
NSExtensionPointIdentifier: com.apple.broadcast-services-upload
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).SampleHandler
diff --git a/apps/jira/INSTALL.md b/apps/jira/INSTALL.md
index ba76494..417b135 100644
--- a/apps/jira/INSTALL.md
+++ b/apps/jira/INSTALL.md
@@ -1,16 +1,16 @@
-# FormRec for Jira
+# FormREC for Jira
-A FormRec panel on Jira issues finds the FormRec links in the description and the comments and plays each recording inline, in an iframe of its share page. The panel is an Atlassian Forge app (Custom UI). Recordings with a password or a people list ask for access inside the player, as on the share page; a share that hides previews shows only the player, no title.
+A FormREC panel on Jira issues finds the FormREC links in the description and the comments and plays each recording inline, in an iframe of its share page. The panel is an Atlassian Forge app (Custom UI). Recordings with a password or a people list ask for access inside the player, as on the share page; a share that hides previews shows only the player, no title.
-You need FormRec reachable from the internet at an https address, `PUBLIC_HOST` below, and the Forge CLI (`npm install -g @forge/cli`, then `forge login`).
+You need FormREC reachable from the internet at an https address, `PUBLIC_HOST` below, and the Forge CLI (`npm install -g @forge/cli`, then `forge login`).
1. In `manifest.yml`, replace `https://formrec.example.com` (twice: `permissions.external.frames` for the player iframe and `permissions.external.fetch.backend` for the title lookup) with `https://PUBLIC_HOST`.
2. `forge register` (fills `app.id`), then in this folder `npm install`, and `npm run build` (installs and builds the panel in `static/panel`).
-3. Choose a secret and set it in both places: FormRec, Settings, Apps, Jira, Shared secret; and the Forge variables:
+3. Choose a secret and set it in both places: FormREC, Settings, Apps, Jira, Shared secret; and the Forge variables:
- `forge variables set --encrypt FORMREC_SECRET `
- `forge variables set FORMREC_RELAY https://PUBLIC_HOST`
4. `forge deploy`, then `forge install` and choose Jira and your site.
-5. Open an issue whose description or a comment holds a FormRec share link: the FormRec panel plays it. The panel needs the new issue view.
+5. Open an issue whose description or a comment holds a FormREC share link: the FormREC panel plays it. The panel needs the new issue view.
The panel reads the issue with `requestJira` as the person viewing it (scope `read:jira-work`), so it shows only what that person may already see. The backend function reaches `https://PUBLIC_HOST/apps/jira/lookup` with the secret as a Bearer token; the secret stays in Forge and never reaches the browser.
diff --git a/apps/jira/manifest.yml b/apps/jira/manifest.yml
index 68eb9d4..dd5eaed 100644
--- a/apps/jira/manifest.yml
+++ b/apps/jira/manifest.yml
@@ -3,7 +3,7 @@
modules:
jira:issuePanel:
- key: formrec-issue-panel
- title: FormRec
+ title: FormREC
icon: resource:panel;icon.svg
resource: panel
resolver:
diff --git a/apps/jira/package.json b/apps/jira/package.json
index 56f9550..1c4bf91 100644
--- a/apps/jira/package.json
+++ b/apps/jira/package.json
@@ -3,7 +3,7 @@
"version": "0.5.0",
"private": true,
"type": "module",
- "description": "The FormRec issue panel for Jira (Atlassian Forge, Custom UI).",
+ "description": "The FormREC issue panel for Jira (Atlassian Forge, Custom UI).",
"license": "MIT",
"scripts": {
"build": "npm --prefix static/panel run build"
diff --git a/apps/jira/static/panel/index.html b/apps/jira/static/panel/index.html
index 379ac7b..df9c193 100644
--- a/apps/jira/static/panel/index.html
+++ b/apps/jira/static/panel/index.html
@@ -2,7 +2,7 @@
-FormRec
+FormREC
-Looking for FormRec links in this issue.
+Looking for FormREC links in this issue.
diff --git a/apps/jira/static/panel/panel.js b/apps/jira/static/panel/panel.js
index 5124e15..22e2c33 100644
--- a/apps/jira/static/panel/panel.js
+++ b/apps/jira/static/panel/panel.js
@@ -26,7 +26,7 @@ function item(link, info) {
const frame = document.createElement('iframe')
frame.dataset.formrecFrame = ''
frame.src = link.embed
- frame.title = info?.preview && info.title ? info.title : 'FormRec recording'
+ frame.title = info?.preview && info.title ? info.title : 'FormREC recording'
frame.allow = 'fullscreen; picture-in-picture'
frame.allowFullscreen = true
box.append(frame)
@@ -67,7 +67,7 @@ async function main() {
if (next.length === 0) {
const p = document.createElement('p')
p.dataset.formrecEmpty = ''
- p.textContent = 'No FormRec links in this issue.'
+ p.textContent = 'No FormREC links in this issue.'
next.push(p)
}
root.replaceChildren(...next)
@@ -76,6 +76,6 @@ async function main() {
main().catch(() => {
const p = document.createElement('p')
p.dataset.formrecEmpty = ''
- p.textContent = 'FormRec could not read this issue.'
+ p.textContent = 'FormREC could not read this issue.'
root.replaceChildren(p)
})
diff --git a/apps/linear/INSTALL.md b/apps/linear/INSTALL.md
index d31887d..1f1e2fc 100644
--- a/apps/linear/INSTALL.md
+++ b/apps/linear/INSTALL.md
@@ -1,14 +1,14 @@
-# FormRec for Linear
+# FormREC for Linear
-When an issue or a comment contains a FormRec link, the issue gets a FormRec card (an attachment with the recording's title, its length and the FormRec icon) that opens the recording. A share that hides previews gets a card called "FormRec recording" with no title.
+When an issue or a comment contains a FormREC link, the issue gets a FormREC card (an attachment with the recording's title, its length and the FormREC icon) that opens the recording. A share that hides previews gets a card called "FormREC recording" with no title.
-You need FormRec reachable from the internet at an https address, `PUBLIC_HOST` below.
+You need FormREC reachable from the internet at an https address, `PUBLIC_HOST` below.
1. In Linear, Settings, API, OAuth applications, create an application. Callback URL: `https://PUBLIC_HOST/apps/linear/oauth/callback`. Note the client id and client secret.
2. In Settings, API, Webhooks, create a webhook: URL `https://PUBLIC_HOST/apps/linear/webhook`, data change events Issues and Issue comments. Note its signing secret.
-3. In FormRec, Settings, Apps, Linear: set Client id, Client secret and Webhook signing secret.
+3. In FormREC, Settings, Apps, Linear: set Client id, Client secret and Webhook signing secret.
4. Open `https://PUBLIC_HOST/apps/linear/oauth/start` in a browser and approve. The app is installed as itself (`actor=app`) with the scopes read, issues:create and comments:create.
-5. Write an issue or comment containing a FormRec link: the card appears on the issue. Linear uses the link plus the issue as the card's identity, so repeating a link updates the card.
+5. Write an issue or comment containing a FormREC link: the card appears on the issue. Linear uses the link plus the issue as the card's identity, so repeating a link updates the card.
Every delivery's `Linear-Signature` (HMAC-SHA256 of the raw body) is checked, and deliveries whose `webhookTimestamp` is more than a minute old are refused.
diff --git a/apps/mobile-api.md b/apps/mobile-api.md
index 52841cb..ecc1984 100644
--- a/apps/mobile-api.md
+++ b/apps/mobile-api.md
@@ -1,6 +1,6 @@
-# The API the FormRec phone apps speak
+# The API the FormREC phone apps speak
-Two native apps record the phone's screen into the FormRec on a person's computer, over their own network:
+Two native apps record the phone's screen into the FormREC on a person's computer, over their own network:
`apps/ios` (a ReplayKit Broadcast Upload Extension) and `apps/android` (MediaProjection). A browser can record a
phone's camera and microphone (and, on Android Chrome, the screen) without an app, through the phone page at
`/phone/`; the apps exist where the operating system requires one: iOS has no `getDisplayMedia`, and a web page cannot
@@ -8,12 +8,12 @@ record other apps or keep recording with the screen off. This file is the contra
(`src/features/phone/native.ts`, routed by `src/features/phone/handler.ts`) answers. The tests are
`tests/phone-pwa-server.test.ts`.
-Everything is on the guest listener: HTTPS on this computer's addresses, default port 8771, on only while FormRec's
+Everything is on the guest listener: HTTPS on this computer's addresses, default port 8771, on only while FormREC's
guests or phone switch is on (Home or Settings, Phone). Nothing leaves the network.
## 1. Finding the computer and trusting it
-FormRec's Home and Settings, Phone, show a QR code. It encodes the phone page's link with a pairing code in the
+FormREC's Home and Settings, Phone, show a QR code. It encodes the phone page's link with a pairing code in the
fragment:
https://192.168.1.20:8771/phone/#pair=123456
@@ -25,7 +25,7 @@ The listener's certificate is self-signed (made for this computer's addresses, k
therefore pins it instead of trusting the system store:
1. On pairing the app connects accepting any certificate once, computes the SHA-256 of the leaf certificate's DER
- bytes and shows it as colon-separated upper-case hex, the form FormRec shows next to "Certificate" in the Studio
+ bytes and shows it as colon-separated upper-case hex, the form FormREC shows next to "Certificate" in the Studio
guest panel (its first 23 characters) and gives in full in `GET /api/phone` (`fingerprint`, behind the run's token).
2. The person confirms the two match. The app stores the fingerprint with the address.
3. Every later request, including the broadcast extension's and the service's, accepts only a certificate with that
diff --git a/apps/oembed/INSTALL.md b/apps/oembed/INSTALL.md
index e03d718..3d0b0bf 100644
--- a/apps/oembed/INSTALL.md
+++ b/apps/oembed/INSTALL.md
@@ -1,6 +1,6 @@
-# oEmbed for FormRec links
+# oEmbed for FormREC links
-FormRec share links (`/v/`) and player links (`/e/`) answer oEmbed 1.0 (https://oembed.com/): the
+FormREC share links (`/v/`) and player links (`/e/`) answer oEmbed 1.0 (https://oembed.com/): the
share server answers `GET /oembed?url= &format=json|xml&maxwidth=&maxheight=` with a `video` response whose
`html` is an iframe of the player, and every share page advertises the endpoint with
` ` and `type="text/xml+oembed"`, and carries Open Graph video tags
@@ -33,7 +33,7 @@ they prefer a known provider) read the registry at https://oembed.com/providers.
```yaml
---
- - provider_name: FormRec
+ - provider_name: FormREC
provider_url: https://share.example.com
endpoints:
- schemes:
diff --git a/apps/oembed/providers.json b/apps/oembed/providers.json
index 8fc2a72..da50460 100644
--- a/apps/oembed/providers.json
+++ b/apps/oembed/providers.json
@@ -1,6 +1,6 @@
[
{
- "provider_name": "FormRec",
+ "provider_name": "FormREC",
"provider_url": "https://share.example.com",
"endpoints": [
{
diff --git a/apps/salesforce/INSTALL.md b/apps/salesforce/INSTALL.md
index d879ee1..8550df3 100644
--- a/apps/salesforce/INSTALL.md
+++ b/apps/salesforce/INSTALL.md
@@ -1,8 +1,8 @@
-# FormRec for Salesforce
+# FormREC for Salesforce
-Shows what the people on a Lead, Contact, Opportunity or Account watched in FormRec (views, completion, last viewed, and a player), and logs a completed Task ("Watched (NN%)") on the matching Lead or Contact when a viewer identified by email watches.
+Shows what the people on a Lead, Contact, Opportunity or Account watched in FormREC (views, completion, last viewed, and a player), and logs a completed Task ("Watched (NN%)") on the matching Lead or Contact when a viewer identified by email watches.
-You need the Salesforce CLI (`sf`), a FormRec relay reachable over HTTPS, and a Salesforce org on an edition with API access (Enterprise, Unlimited, Developer).
+You need the Salesforce CLI (`sf`), a FormREC relay reachable over HTTPS, and a Salesforce org on an edition with API access (Enterprise, Unlimited, Developer).
## 1. Point the metadata at your relay
@@ -21,18 +21,20 @@ sf project deploy start --source-dir force-app --target-org formrec-org
## 3. Finish the credential in Setup
-1. Setup, Named Credentials, External Credentials, "FormRec Relay": on the principal "FormRecPrincipal" add an authentication parameter named `Secret` and enter a long random value (this is the shared secret).
-2. Assign the permission set "FormRec Player" to the users who see the component.
-3. Enter the same value in FormRec, Settings, Salesforce, "Shared secret for the Lightning component".
+1. Setup, Named Credentials, External Credentials, "FormREC Relay" (API name `FormRec_Relay`): on the principal "FormRecPrincipal" add an authentication parameter named `Secret` and enter a long random value (this is the shared secret).
+2. Assign the permission set "FormREC Player" (API name `FormRec_Player`) to the users who see the component.
+3. Enter the same value in FormREC, Settings, Salesforce, "Shared secret for the Lightning component".
## 4. Add the component
-Open a Lead, Contact, Opportunity or Account record, Edit Page, drag "FormRec Player" onto the page, save and activate.
+Open a Lead, Contact, Opportunity or Account record, Edit Page, drag "FormREC Player" onto the page, save and activate.
## 5. Connect the Task logging
1. Setup, App Manager, New External Client App (or Connected App): enable OAuth, callback URL `https:///apps/salesforce/callback`, scopes "Manage user data via APIs (api)" and "Perform requests at any time (refresh_token, offline_access)", enable PKCE (Require Proof Key for Code Exchange), keep "Require Secret for Web Server Flow".
-2. In FormRec, Settings, Salesforce: enter the consumer key and secret (and the login URL if you use a sandbox or My Domain).
+2. In FormREC, Settings, Salesforce: enter the consumer key and secret (and the login URL if you use a sandbox or My Domain).
3. Open `https:///apps/salesforce/connect` and approve.
The connected user needs Create on Task and Read on Contact and Lead.
+
+Upgrading from before 0.11.0: only the labels changed (FormRec to FormREC). The API names (`FormRec_Relay`, `FormRec_Player`, `FormRecPrincipal`, `FormRecEngagement`, `formrecPlayer`) are the same, so a deploy updates the labels in place and keeps the secret, the assignments and the page placements.
diff --git a/apps/salesforce/force-app/main/default/classes/FormRecEngagement.cls b/apps/salesforce/force-app/main/default/classes/FormRecEngagement.cls
index c2dfce2..17be9a4 100644
--- a/apps/salesforce/force-app/main/default/classes/FormRecEngagement.cls
+++ b/apps/salesforce/force-app/main/default/classes/FormRecEngagement.cls
@@ -18,7 +18,7 @@ public with sharing class FormRecEngagement {
if (res.getStatusCode() == 200) {
people.add(JSON.deserializeUntyped(res.getBody()));
} else if (res.getStatusCode() == 401 || res.getStatusCode() == 503) {
- throw new AuraHandledException('FormRec rejected the shared secret or is not configured.');
+ throw new AuraHandledException('FormREC rejected the shared secret or is not configured.');
}
}
return JSON.serialize(new Map{ 'people' => people });
diff --git a/apps/salesforce/force-app/main/default/cspTrustedSites/FormRec_Relay.cspTrustedSite-meta.xml b/apps/salesforce/force-app/main/default/cspTrustedSites/FormRec_Relay.cspTrustedSite-meta.xml
index 0c1af3d..4900f93 100644
--- a/apps/salesforce/force-app/main/default/cspTrustedSites/FormRec_Relay.cspTrustedSite-meta.xml
+++ b/apps/salesforce/force-app/main/default/cspTrustedSites/FormRec_Relay.cspTrustedSite-meta.xml
@@ -1,7 +1,7 @@
LEX
- The FormRec relay: the formrecPlayer component shows recordings from it in an iframe.
+ The FormREC relay: the formrecPlayer component shows recordings from it in an iframe.
https://relay.example.com
true
false
diff --git a/apps/salesforce/force-app/main/default/externalCredentials/FormRec_Relay.externalCredential-meta.xml b/apps/salesforce/force-app/main/default/externalCredentials/FormRec_Relay.externalCredential-meta.xml
index 0bdcc0c..95741dc 100644
--- a/apps/salesforce/force-app/main/default/externalCredentials/FormRec_Relay.externalCredential-meta.xml
+++ b/apps/salesforce/force-app/main/default/externalCredentials/FormRec_Relay.externalCredential-meta.xml
@@ -1,6 +1,6 @@
- FormRec Relay
+ FormREC Relay
Custom
FormRecPrincipal
diff --git a/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.html b/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.html
index 020657a..00204d3 100644
--- a/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.html
+++ b/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.html
@@ -1,11 +1,11 @@
-
+
- FormRec engagement could not be loaded. Check the FormRec Relay named credential.
+ FormREC engagement could not be loaded. Check the FormREC Relay named credential.
- Nobody on this record has watched a FormRec recording yet.
+ Nobody on this record has watched a FormREC recording yet.
diff --git a/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.js-meta.xml b/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.js-meta.xml
index 1d344f2..2c6d91b 100644
--- a/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.js-meta.xml
+++ b/apps/salesforce/force-app/main/default/lwc/formrecPlayer/formrecPlayer.js-meta.xml
@@ -2,8 +2,8 @@
62.0
true
- FormRec Player
- Plays the FormRec recordings a Lead, Contact, Opportunity or Account has watched, and shows views, completion and last viewed.
+ FormREC Player
+ Plays the FormREC recordings a Lead, Contact, Opportunity or Account has watched, and shows views, completion and last viewed.
lightning__RecordPage
diff --git a/apps/salesforce/force-app/main/default/namedCredentials/FormRec_Relay.namedCredential-meta.xml b/apps/salesforce/force-app/main/default/namedCredentials/FormRec_Relay.namedCredential-meta.xml
index c35879b..e670ee3 100644
--- a/apps/salesforce/force-app/main/default/namedCredentials/FormRec_Relay.namedCredential-meta.xml
+++ b/apps/salesforce/force-app/main/default/namedCredentials/FormRec_Relay.namedCredential-meta.xml
@@ -1,6 +1,6 @@
- FormRec Relay
+ FormREC Relay
SecuredEndpoint
Url
diff --git a/apps/salesforce/force-app/main/default/permissionsets/FormRec_Player.permissionset-meta.xml b/apps/salesforce/force-app/main/default/permissionsets/FormRec_Player.permissionset-meta.xml
index 3015efa..338bc7e 100644
--- a/apps/salesforce/force-app/main/default/permissionsets/FormRec_Player.permissionset-meta.xml
+++ b/apps/salesforce/force-app/main/default/permissionsets/FormRec_Player.permissionset-meta.xml
@@ -1,7 +1,7 @@
- FormRec Player
- Lets users load the formrecPlayer component's engagement from the FormRec relay.
+ FormREC Player
+ Lets users load the formrecPlayer component's engagement from the FormREC relay.
false
FormRecEngagement
diff --git a/apps/slack/INSTALL.md b/apps/slack/INSTALL.md
index ba5f368..9be6cbb 100644
--- a/apps/slack/INSTALL.md
+++ b/apps/slack/INSTALL.md
@@ -1,12 +1,12 @@
-# Install FormRec for Slack
+# Install FormREC for Slack
-This is the half of the Slack app that lives in Slack. The other half runs inside FormRec and answers Slack at
+This is the half of the Slack app that lives in Slack. The other half runs inside FormREC and answers Slack at
`https:///apps/slack/...`. Nothing here sends a recording to Slack: Slack asks your relay for the player
and the poster when somebody pastes a link.
## You need
-- FormRec with a public address: the relay set up in Settings, Sharing, or the share listener while it is
+- FormREC with a public address: the relay set up in Settings, Sharing, or the share listener while it is
reachable from the internet. Its host name is called `` below.
- Permission to add apps in your Slack workspace.
@@ -16,11 +16,11 @@ and the poster when somebody pastes a link.
used for the five request URLs, the OAuth redirect and `unfurl_domains`. The unfurl domain must be the host the
share links and `/e/` players are served from: Slack plays a video block only from a domain in that list.
2. Go to https://api.slack.com/apps, Create New App, From a manifest, pick the workspace, paste the file, Create.
-3. Slack asks to verify the events URL. FormRec must already be running with the Slack fields filled (next step),
+3. Slack asks to verify the events URL. FormREC must already be running with the Slack fields filled (next step),
so do step 4 first if the check fails, then Save again under Event Subscriptions.
4. In the app's Basic Information, App Credentials, copy the Client ID, Client secret and Signing secret into
- FormRec, Settings, Integrations, Slack. The Notification channel is optional (below).
-5. Install: open `https:///apps/slack/install` in your browser and approve. FormRec keeps the bot token for
+ FormREC, Settings, Integrations, Slack. The Notification channel is optional (below).
+5. Install: open `https:///apps/slack/install` in your browser and approve. FormREC keeps the bot token for
your workspace on your computer, in the app's own state file, and the person who approves gets the direct messages.
6. Try it: paste a share link into a channel (the recording plays in Slack), type `/formrec` to pick a recent
share, `/formrec ` to post one, `/formrec record` for the recorder link, and open the app's Home tab.
@@ -30,7 +30,8 @@ and the poster when somebody pastes a link.
When somebody watches, comments on, reacts to or replies to a shared recording, the installing person gets a
Slack direct message from the app with the comment and a link at that moment in the recording. To send them to a
channel instead, put its channel ID (Slack: channel details, bottom of the About tab, looks like `C0123456789`)
-in Notification channel, and invite the app to the channel (`/invite @FormRec`).
+in Notification channel, and invite the app to the channel (`/invite @FormREC`; a workspace that installed the app
+before 0.11.0 shows the bot as `@FormRec` until the manifest is applied again, and either name invites the same bot).
## What each scope is for
diff --git a/apps/slack/manifest.yaml b/apps/slack/manifest.yaml
index 7423306..12f918c 100644
--- a/apps/slack/manifest.yaml
+++ b/apps/slack/manifest.yaml
@@ -9,10 +9,10 @@ _metadata:
minor_version: 1
display_information:
- name: FormRec
+ name: FormREC
description: Recordings that play in Slack, from your own computer.
long_description: >-
- FormRec shows a recording right in the conversation where its link is pasted, with the player, the poster
+ FormREC shows a recording right in the conversation where its link is pasted, with the player, the poster
and the title. Type /formrec to pick one of your recent shares and post it, or /formrec record to open
the recorder. App Home lists your recent recordings, and you can be messaged when somebody watches,
comments on or reacts to a recording, with a link to that moment.
@@ -24,7 +24,7 @@ features:
messages_tab_enabled: true
messages_tab_read_only_enabled: true
bot_user:
- display_name: FormRec
+ display_name: FormREC
always_online: false
slash_commands:
- command: /formrec
diff --git a/apps/zendesk/INSTALL.md b/apps/zendesk/INSTALL.md
index 128a9a2..f25daeb 100644
--- a/apps/zendesk/INSTALL.md
+++ b/apps/zendesk/INSTALL.md
@@ -1,16 +1,16 @@
-# FormRec for Zendesk
+# FormREC for Zendesk
-A ticket sidebar app (Zendesk Apps Framework v2). An agent sees their recent FormRec recordings, inserts one into the reply with a linked animated preview, starts a new recording, and plays recordings already linked in the ticket without leaving Zendesk.
+A ticket sidebar app (Zendesk Apps Framework v2). An agent sees their recent FormREC recordings, inserts one into the reply with a linked animated preview, starts a new recording, and plays recordings already linked in the ticket without leaving Zendesk.
## What you need
-- A FormRec relay reachable over HTTPS (FormRec Settings, Sharing). Zendesk's servers call it, so a link only on your local network does not work.
+- A FormREC relay reachable over HTTPS (FormREC Settings, Sharing). Zendesk's servers call it, so a link only on your local network does not work.
- The Zendesk Command Line Interface: `npm install @zendesk/zcli -g`, then `zcli login -i` (an admin or a user allowed to upload private apps).
- A shared secret: any long random string, for example `openssl rand -hex 32`.
## Steps
-1. In FormRec open Settings, Apps, Zendesk and save the shared secret.
+1. In FormREC open Settings, Apps, Zendesk and save the shared secret.
2. From this repository run:
```
@@ -23,21 +23,21 @@ A ticket sidebar app (Zendesk Apps Framework v2). An agent sees their recent For
4. When asked, enter:
- Relay address: the relay's host name, for example `formrec.example.com`, with no `https://`.
- Shared secret: the value from step 1. It is a secure setting: Zendesk keeps it out of the agent's browser and adds it as the `X-FormRec-Secret` header when it forwards the request.
-5. Open a ticket. The FormRec app appears in the ticket sidebar.
+5. Open a ticket. The FormREC app appears in the ticket sidebar.
`zcli apps:create apps/zendesk` validates, packages and uploads in one step instead of steps 2 and 3, and `zcli apps:update` pushes a later change.
## What each button does
- Insert: asks the relay for the comment HTML and appends it to the reply with `ticket.comment` `comment.appendHtml`. A shared recording appears as its animated preview linked to the share page, with the title and length. A share that hides previews (a protected share while the workspace hides previews) is inserted as a plain link.
-- Record: opens `formrec://record?mode=screen`, FormRec's deep link, in the FormRec app on the agent's computer.
+- Record: opens `formrec://record?mode=screen`, FormREC's deep link, in the FormREC app on the agent's computer.
- Play: shows the share's player (`/e/` on the relay) inside the sidebar.
## Notes
- The sidebar is 320 px wide; Zendesk fixes that width for the ticket sidebar.
- The app is private (`"private": true`). Zendesk requires `false` only to submit to the Marketplace.
-- Rotating the secret: save the new value in FormRec Settings, then update the app's settings in Zendesk.
+- Rotating the secret: save the new value in FormREC Settings, then update the app's settings in Zendesk.
## Documentation relied on
diff --git a/apps/zendesk/assets/iframe.html b/apps/zendesk/assets/iframe.html
index ff6a1cc..8a90cbf 100644
--- a/apps/zendesk/assets/iframe.html
+++ b/apps/zendesk/assets/iframe.html
@@ -3,7 +3,7 @@
-FormRec
+FormREC
diff --git a/apps/zendesk/assets/main.js b/apps/zendesk/assets/main.js
index 8333b71..2ad0edb 100644
--- a/apps/zendesk/assets/main.js
+++ b/apps/zendesk/assets/main.js
@@ -130,7 +130,7 @@
function togglePlayer(li, rec) {
var existing = li.querySelector('[data-fr="player"]')
if (existing) { existing.remove(); fit(); return }
- var frame = el('iframe', { 'data-fr': 'player', src: rec.embedUrl, allow: 'fullscreen', title: rec.title || 'FormRec' })
+ var frame = el('iframe', { 'data-fr': 'player', src: rec.embedUrl, allow: 'fullscreen', title: rec.title || 'FormREC' })
li.appendChild(frame)
fit()
}
@@ -138,7 +138,7 @@
function insert(rec) {
client.request(requestOptions(base, 'insert', { shareId: rec.shareId })).then(function (reply) {
return client.invoke('comment.appendHtml', reply.html)
- }).then(function () { say(t('inserted', 'Inserted in your reply.')) }, function () { say(t('failed', 'Could not reach FormRec.')) })
+ }).then(function () { say(t('inserted', 'Inserted in your reply.')) }, function () { say(t('failed', 'Could not reach FormREC.')) })
}
function fill(list, recs, withInsert) {
@@ -167,12 +167,12 @@
function refresh() {
say('')
- return Promise.all([showRecent(), showLinked()]).then(fit, function () { say(t('failed', 'Could not reach FormRec.')); fit() })
+ return Promise.all([showRecent(), showLinked()]).then(fit, function () { say(t('failed', 'Could not reach FormREC.')); fit() })
}
client.metadata().then(function (meta) {
base = relayBase(meta.settings && meta.settings.relayHost)
- if (!base) { say(t('failed', 'Could not reach FormRec.')); return }
+ if (!base) { say(t('failed', 'Could not reach FormREC.')); return }
return refresh()
})
client.on('app.activated', refresh)
diff --git a/apps/zendesk/manifest.json b/apps/zendesk/manifest.json
index 7b314d8..da9904d 100644
--- a/apps/zendesk/manifest.json
+++ b/apps/zendesk/manifest.json
@@ -1,7 +1,7 @@
{
- "name": "FormRec",
+ "name": "FormREC",
"author": {
- "name": "FormRec",
+ "name": "FormREC",
"email": "support@example.com",
"url": "https://github.com/nodemode-dev/formrec"
},
diff --git a/apps/zendesk/translations/en.json b/apps/zendesk/translations/en.json
index 63285ca..86e3762 100644
--- a/apps/zendesk/translations/en.json
+++ b/apps/zendesk/translations/en.json
@@ -1,17 +1,17 @@
{
"app": {
- "name": "FormRec",
- "short_description": "Record, and insert FormRec recordings into a ticket reply.",
- "long_description": "Record a screen walkthrough with FormRec, then insert it in your reply as a linked animated preview. Recordings already linked in the ticket play right in the sidebar. Recordings stay on your own computer or your own server; the sidebar talks only to your FormRec relay.",
- "installation_instructions": "Enter the address of your FormRec relay (a host name such as formrec.example.com, without https://) and the same shared secret you saved in FormRec Settings, Apps, Zendesk.",
+ "name": "FormREC",
+ "short_description": "Record, and insert FormREC recordings into a ticket reply.",
+ "long_description": "Record a screen walkthrough with FormREC, then insert it in your reply as a linked animated preview. Recordings already linked in the ticket play right in the sidebar. Recordings stay on your own computer or your own server; the sidebar talks only to your FormREC relay.",
+ "installation_instructions": "Enter the address of your FormREC relay (a host name such as formrec.example.com, without https://) and the same shared secret you saved in FormREC Settings, Apps, Zendesk.",
"parameters": {
"relayHost": {
"label": "Relay address",
- "helpText": "The host name of your FormRec relay, without https://."
+ "helpText": "The host name of your FormREC relay, without https://."
},
"sharedSecret": {
"label": "Shared secret",
- "helpText": "The same value saved in FormRec Settings, Apps, Zendesk. Zendesk keeps it out of the browser."
+ "helpText": "The same value saved in FormREC Settings, Apps, Zendesk. Zendesk keeps it out of the browser."
}
}
}
diff --git a/demos/podcast-episode/CREDITS.md b/demos/podcast-episode/CREDITS.md
index 5e4fe87..76c2e09 100644
--- a/demos/podcast-episode/CREDITS.md
+++ b/demos/podcast-episode/CREDITS.md
@@ -3,7 +3,7 @@
Made by `scripts/make-podcast-demo.mjs` for this repository; no third-party media and no real people.
- The camera pictures are generated with FFmpeg (`color`, `drawbox`, `drawtext` with the DejaVu Sans Bold font that renders the text, and `showwaves` drawn from each speaker's own voice; the font is not shipped). "Juno", "Theo" and "Small Tracks" are invented.
-- The voices are synthesised with FFmpeg's `flite` filter (CMU Flite voices `slt` and `kal`, BSD-style licence); only the spoken audio is shipped, not Flite.
+- The voices are synthesised with Kokoro-82M (Apache-2.0, model files v1.0 from the kokoro-onnx release `model-files-v1.1`) through FormREC's built-in voice: Juno is `af_heart`, Theo is `am_michael`, speed 1. Each microphone track is evened by a gentle compressor and set to -16 LUFS integrated with peaks under -1.5 dBTP. Only the spoken audio is shipped; not the model, kokoro-onnx (MIT) or the eSpeak NG it phonemises with (GPL), which ran as a separate program.
- The tracks, captions, chapters and `recording.json` are written in the shape FormREC writes a studio take with a guest.
Apache-2.0, as the rest of the repository.
diff --git a/demos/podcast-episode/README.md b/demos/podcast-episode/README.md
index 62dfc34..fbf5762 100644
--- a/demos/podcast-episode/README.md
+++ b/demos/podcast-episode/README.md
@@ -6,4 +6,4 @@ Open it in FormREC from Home (Demos), the sidebar (Learn) or Help > Demo: A Podc
Files: `recording.json`, one `track-*.webm` per camera and microphone, `captions.vtt`, `chapters.vtt`, `poster.png` (a frame of the host camera).
-Remake it with `node scripts/make-podcast-demo.mjs` (ffmpeg with drawtext, showwaves and flite; no browser).
+Remake it with `npm run build && node scripts/make-podcast-demo.mjs` (ffmpeg with drawtext and showwaves, and the built-in Kokoro voice, set up in Settings, Voice or by the script on first run; no browser).
diff --git a/demos/podcast-episode/captions.vtt b/demos/podcast-episode/captions.vtt
index b035c61..bafb7df 100644
--- a/demos/podcast-episode/captions.vtt
+++ b/demos/podcast-episode/captions.vtt
@@ -1,33 +1,33 @@
WEBVTT
1
-00:00:00.600 --> 00:00:05.180
+00:00:00.600 --> 00:00:05.497
Welcome to Small Tracks, the show about recording things well. I am Juno.
2
-00:00:05.630 --> 00:00:10.192
+00:00:05.947 --> 00:00:11.357
And I am Theo. Today we talk about why every voice gets its own track.
3
-00:00:10.642 --> 00:00:13.972
+00:00:11.807 --> 00:00:15.082
So Theo, why not record the whole room as one file?
4
-00:00:14.422 --> 00:00:20.662
+00:00:15.532 --> 00:00:22.166
Because when one of us coughs, you can cut the cough and keep the other voice. One file cannot do that.
5
-00:00:21.112 --> 00:00:22.282
+00:00:22.616 --> 00:00:23.754
And the levels?
6
-00:00:22.732 --> 00:00:27.997
+00:00:24.204 --> 00:00:29.960
Speak at your normal volume before you press record, and keep the meter in the green band.
7
-00:00:28.447 --> 00:00:30.767
+00:00:30.410 --> 00:00:32.997
That is the show. Thanks, Theo.
8
-00:00:31.217 --> 00:00:34.027
+00:00:33.447 --> 00:00:36.425
Thanks for having me. Bye for now.
diff --git a/demos/podcast-episode/chapters.vtt b/demos/podcast-episode/chapters.vtt
index d5385ee..424d790 100644
--- a/demos/podcast-episode/chapters.vtt
+++ b/demos/podcast-episode/chapters.vtt
@@ -1,17 +1,17 @@
WEBVTT
welcome
-00:00:00.600 --> 00:00:10.642
+00:00:00.600 --> 00:00:11.807
Welcome to Small Tracks
why-tracks
-00:00:10.642 --> 00:00:21.112
+00:00:11.807 --> 00:00:22.616
Why a track per voice
levels
-00:00:21.112 --> 00:00:28.447
+00:00:22.616 --> 00:00:30.410
Levels before the take
goodbye
-00:00:28.447 --> 00:00:34.900
+00:00:30.410 --> 00:00:37.300
Goodbye
diff --git a/demos/podcast-episode/poster.png b/demos/podcast-episode/poster.png
index 0ff0674..a2ed617 100644
Binary files a/demos/podcast-episode/poster.png and b/demos/podcast-episode/poster.png differ
diff --git a/demos/podcast-episode/recording.json b/demos/podcast-episode/recording.json
index 7cd8f8a..f46ad69 100644
--- a/demos/podcast-episode/recording.json
+++ b/demos/podcast-episode/recording.json
@@ -15,8 +15,8 @@
"host": true,
"file": "track-host-mic.webm",
"offsetMs": 0,
- "durationMs": 34908,
- "bytes": 136323,
+ "durationMs": 37308,
+ "bytes": 129729,
"complete": true
},
{
@@ -26,8 +26,8 @@
"host": false,
"file": "track-guest-mic.webm",
"offsetMs": 0,
- "durationMs": 34908,
- "bytes": 228501,
+ "durationMs": 37308,
+ "bytes": 210382,
"complete": true
},
{
@@ -37,8 +37,8 @@
"host": true,
"file": "track-host-camera.webm",
"offsetMs": 0,
- "durationMs": 34934,
- "bytes": 617365,
+ "durationMs": 37334,
+ "bytes": 695448,
"complete": true
},
{
@@ -48,44 +48,44 @@
"host": false,
"file": "track-guest-camera.webm",
"offsetMs": 0,
- "durationMs": 34934,
- "bytes": 1042347,
+ "durationMs": 37334,
+ "bytes": 1303480,
"complete": true
}
],
"pauses": [],
- "durationMs": 34900,
+ "durationMs": 37300,
"chapters": [
{
"stepId": "welcome",
"title": "Welcome to Small Tracks",
"say": "Juno: Welcome to Small Tracks, the show about recording things well. I am Juno. Theo: And I am Theo. Today we talk about why every voice gets its own track.",
"startMs": 0,
- "endMs": 10642,
+ "endMs": 11807,
"code": []
},
{
"stepId": "why-tracks",
"title": "Why a track per voice",
"say": "Juno: So Theo, why not record the whole room as one file? Theo: Because when one of us coughs, you can cut the cough and keep the other voice. One file cannot do that.",
- "startMs": 10642,
- "endMs": 21112,
+ "startMs": 11807,
+ "endMs": 22616,
"code": []
},
{
"stepId": "levels",
"title": "Levels before the take",
"say": "Juno: And the levels? Theo: Speak at your normal volume before you press record, and keep the meter in the green band.",
- "startMs": 21112,
- "endMs": 28447,
+ "startMs": 22616,
+ "endMs": 30410,
"code": []
},
{
"stepId": "goodbye",
"title": "Goodbye",
"say": "Juno: That is the show. Thanks, Theo. Theo: Thanks for having me. Bye for now.",
- "startMs": 28447,
- "endMs": 34900,
+ "startMs": 30410,
+ "endMs": 37300,
"code": []
}
]
diff --git a/demos/podcast-episode/track-guest-camera.webm b/demos/podcast-episode/track-guest-camera.webm
index 1289be1..26ecee0 100644
Binary files a/demos/podcast-episode/track-guest-camera.webm and b/demos/podcast-episode/track-guest-camera.webm differ
diff --git a/demos/podcast-episode/track-guest-mic.webm b/demos/podcast-episode/track-guest-mic.webm
index 32bd61b..2e1c226 100644
Binary files a/demos/podcast-episode/track-guest-mic.webm and b/demos/podcast-episode/track-guest-mic.webm differ
diff --git a/demos/podcast-episode/track-host-camera.webm b/demos/podcast-episode/track-host-camera.webm
index 6bc4a0a..cf5b6f0 100644
Binary files a/demos/podcast-episode/track-host-camera.webm and b/demos/podcast-episode/track-host-camera.webm differ
diff --git a/demos/podcast-episode/track-host-mic.webm b/demos/podcast-episode/track-host-mic.webm
index 75be241..a86935f 100644
Binary files a/demos/podcast-episode/track-host-mic.webm and b/demos/podcast-episode/track-host-mic.webm differ
diff --git a/demos/self-tour/CREDITS.md b/demos/self-tour/CREDITS.md
index ce9df9f..afa82f8 100644
--- a/demos/self-tour/CREDITS.md
+++ b/demos/self-tour/CREDITS.md
@@ -1,5 +1,7 @@
# Credits
-Everything here was made by FormRec from this repository: the video is FormRec's own interface recorded in headless Chromium, and the captions and chapters come from `examples/formrec-self-tour.json`. No third-party media.
+Everything here was made by FormREC from this repository: the video is FormREC's own interface recorded in headless Chromium, and the captions and chapters come from `examples/formrec-self-tour.json`. No third-party media.
+
+The narration is each step's `say` spoken with Kokoro-82M (Apache-2.0, model files v1.0 from the kokoro-onnx release `model-files-v1.1`) through FormREC's built-in voice, `af_heart` at speed 1. Each line is placed at its caption's start, and the track is set to -16 LUFS with peaks under -1.5 dBTP. Only the spoken audio is shipped, not the model, kokoro-onnx (MIT) or the eSpeak NG it phonemises with (GPL), which ran as a separate program.
Apache-2.0, as the rest of the repository.
diff --git a/demos/self-tour/README.md b/demos/self-tour/README.md
index 1024b23..9b3677f 100644
--- a/demos/self-tour/README.md
+++ b/demos/self-tour/README.md
@@ -4,6 +4,8 @@ A walkthrough an agent made with no person behind it. FormREC played `examples/f
Open it in FormREC from Home (Demos) or Help > Demo: A Tour of FormREC. It opens in the player under a Demo bar and is never added to your library.
-Files: `recording.json` (chapters, captions, resolved code anchors), `video.webm`, `captions.vtt`, `chapters.vtt`, `poster.png` (a frame of the video).
+Each step's words are spoken by FormREC's built-in voice (Kokoro, `af_heart`), starting at the step's caption.
+
+Files: `recording.json` (chapters, captions, resolved code anchors), `video.webm` (the picture, with the narration as its Opus sound track), `captions.vtt`, `chapters.vtt`, `poster.png` (a frame of the video).
Remake it with `npm run build && node scripts/make-demos.mjs`.
diff --git a/demos/self-tour/captions.vtt b/demos/self-tour/captions.vtt
index 5498dbd..8c5b832 100644
--- a/demos/self-tour/captions.vtt
+++ b/demos/self-tour/captions.vtt
@@ -1,33 +1,37 @@
WEBVTT
home
-00:00:00.000 --> 00:00:09.997
-Home starts a screen, camera or audio recording, opens the demos that ship with FormRec, and lists the latest recordings.
+00:00:00.000 --> 00:00:10.575
+Home starts a screen, camera or audio recording, opens the demos that ship with FormREC, and lists the latest recordings.
library
-00:00:09.997 --> 00:00:18.722
+00:00:10.575 --> 00:00:19.216
Every recording lands in the library, newest first, whether a person recorded it or an agent made it.
record
-00:00:18.722 --> 00:00:27.543
+00:00:19.217 --> 00:00:28.069
The studio records the screen, the camera and every microphone to their own tracks, uploading as it goes.
+takes
+00:00:28.069 --> 00:00:38.618
+The tabs at the right hold the studio's tools, one group at a time. Takes keeps the tracks, the screenshots and the marks.
+
code-field
-00:00:27.543 --> 00:00:38.535
+00:00:38.619 --> 00:00:49.248
Each mark can point at code: a path, a line range or a symbol. formrec checks them against the codebase when you save.
code-anchor
-00:00:38.535 --> 00:00:48.520
+00:00:49.248 --> 00:00:59.366
Type a path, a line range or a symbol; the chapter links to it when you save.
guests
-00:00:48.520 --> 00:00:57.066
+00:00:59.366 --> 00:01:08.471
Guests on the same Wi-Fi join over HTTPS with a one-time code and record themselves at full quality.
agents
-00:00:57.066 --> 00:01:06.442
+00:01:08.471 --> 00:01:17.857
This video had no person behind it. An agent wrote a walkthrough and formrec played it in a headless browser.
player
-00:01:06.443 --> 00:01:16.207
+00:01:17.857 --> 00:01:27.145
Open a recording: chapters on the right, captions on the video, and the code for each chapter one click away.
diff --git a/demos/self-tour/chapters.vtt b/demos/self-tour/chapters.vtt
index 11e9a5e..ebaa43f 100644
--- a/demos/self-tour/chapters.vtt
+++ b/demos/self-tour/chapters.vtt
@@ -1,33 +1,37 @@
WEBVTT
home
-00:00:00.000 --> 00:00:09.997
+00:00:00.000 --> 00:00:10.575
Home
library
-00:00:09.997 --> 00:00:18.722
+00:00:10.575 --> 00:00:19.216
The library
record
-00:00:18.722 --> 00:00:27.543
+00:00:19.217 --> 00:00:28.069
The studio
+takes
+00:00:28.069 --> 00:00:38.618
+The Takes tab
+
code-field
-00:00:27.543 --> 00:00:38.535
+00:00:38.619 --> 00:00:49.248
Marks carry code
code-anchor
-00:00:38.535 --> 00:00:48.520
+00:00:49.248 --> 00:00:59.366
A mark with code
guests
-00:00:48.520 --> 00:00:57.066
+00:00:59.366 --> 00:01:08.471
Guests on this network
agents
-00:00:57.066 --> 00:01:06.442
+00:01:08.471 --> 00:01:17.857
Made by an agent
player
-00:01:06.443 --> 00:01:16.207
+00:01:17.857 --> 00:01:27.145
The player
diff --git a/demos/self-tour/poster.png b/demos/self-tour/poster.png
index 4515457..d1dd6d2 100644
Binary files a/demos/self-tour/poster.png and b/demos/self-tour/poster.png differ
diff --git a/demos/self-tour/recording.json b/demos/self-tour/recording.json
index c15b395..36e1625 100644
--- a/demos/self-tour/recording.json
+++ b/demos/self-tour/recording.json
@@ -1,15 +1,15 @@
{
"formrec": 1,
"id": "self-tour",
- "title": "A tour of FormRec, made by FormRec",
+ "title": "A tour of FormREC, made by FormREC",
"summary": "Home, the library, the studio and the player, each linked to the code that draws it. Record from the repo root with: formrec record examples/formrec-self-tour.json --base-url \"$(formrec url)\"",
"source": "agent",
- "createdAt": "2026-11-11T09:35:55.576Z",
+ "createdAt": "2026-12-02T03:06:36.329Z",
"mode": "walkthrough",
"video": "video.webm",
"tracks": [],
"pauses": [],
- "durationMs": 76411,
+ "durationMs": 87388,
"viewport": {
"width": 1280,
"height": 800
@@ -21,23 +21,23 @@
{
"stepId": "home",
"title": "Home",
- "say": "Home starts a screen, camera or audio recording, opens the demos that ship with FormRec, and lists the latest recordings.",
+ "say": "Home starts a screen, camera or audio recording, opens the demos that ship with FormREC, and lists the latest recordings.",
"startMs": 0,
- "endMs": 9997,
+ "endMs": 10575,
"ui": {
"route": "#/",
"label": "Home"
},
- "pageUrl": "http://127.0.0.1:34275/",
+ "pageUrl": "http://127.0.0.1:39037/",
"code": [
{
"path": "web/src/home.ts",
- "line": 91,
- "endLine": 91,
+ "line": 102,
+ "endLine": 102,
"symbol": "homeView",
"status": "ok",
- "snippet": "89 }\n90 \n91 export function homeView(): HTMLElement {\n92 const recent = h('div', { class: 'recent', 'data-home-recent': '' })\n93 void Promise.all([api.list(), getJson<{ items: { id: string; exists?: boolean }[] }>('/api/documents/recent', { items: [] })]).then(async ([all, opened]) => {",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "snippet": "100 }\n101 \n102 export function homeView(): HTMLElement {\n103 const recent = h('div', { class: 'recent', 'data-home-recent': '' })\n104 void Promise.all([api.list(), getJson<{ items: { id: string; exists?: boolean }[] }>('/api/documents/recent', { items: [] })]).then(async ([all, opened]) => {",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
},
{
"path": "web/src/demos.ts",
@@ -45,24 +45,24 @@
"endLine": 8,
"symbol": "DEMOS",
"status": "ok",
- "snippet": " 6 }\n 7 \n 8 export const DEMOS: Demo[] = [\n 9 { id: 'self-tour', title: 'A tour of FormRec', line: 'A walkthrough an agent made with no person: chapters linked to the UI and the code.' },\n10 { id: 'studio-guest', title: 'A studio take with a guest', line: 'The host and a guest on this network, every camera and microphone on its own track.' },",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "snippet": " 6 }\n 7 \n 8 export const DEMOS: Demo[] = [\n 9 { id: 'self-tour', title: 'A tour of FormREC', line: 'A walkthrough an agent made with no person: chapters linked to the UI and the code.' },\n10 { id: 'studio-guest', title: 'A studio take with a guest', line: 'The host and a guest on this network, every camera and microphone on its own track.' },",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
"action": "goto",
- "actionMs": 175
+ "actionMs": 84
},
{
"stepId": "library",
"title": "The library",
"say": "Every recording lands in the library, newest first, whether a person recorded it or an agent made it.",
- "startMs": 9997,
- "endMs": 18722,
+ "startMs": 10575,
+ "endMs": 19216,
"ui": {
"route": "#/library",
"label": "Library"
},
- "pageUrl": "http://127.0.0.1:34275/#/library",
+ "pageUrl": "http://127.0.0.1:39037/#/library",
"code": [
{
"path": "web/src/library.ts",
@@ -71,7 +71,7 @@
"symbol": "libraryView",
"status": "ok",
"snippet": "141 }\n142 \n143 export async function libraryView(initial: Partial = {}): Promise {\n144 const [list, first, zoomIds] = await Promise.all([api.list(), libraryApi.overview().catch(() => emptyOverview()), libraryApi.zoomIds()])\n145 let ov = first",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
},
{
"path": "src/store/library.ts",
@@ -81,11 +81,11 @@
"note": "unreadable folders are skipped",
"status": "ok",
"snippet": "116 \n117 /** Every readable rec, newest first. Unreadable folders are skipped. */\n118 async list(): Promise {\n119 const names = await readdir(this.root).catch((error: unknown) => {\n120 if (isMissing(error)) return [] as string[]",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
"action": "click",
- "actionMs": 17931,
+ "actionMs": 18566,
"box": {
"x": 12,
"y": 147,
@@ -97,22 +97,22 @@
"stepId": "record",
"title": "The studio",
"say": "The studio records the screen, the camera and every microphone to their own tracks, uploading as it goes.",
- "startMs": 18722,
- "endMs": 27543,
+ "startMs": 19217,
+ "endMs": 28069,
"ui": {
"route": "#/record",
"label": "Studio"
},
- "pageUrl": "http://127.0.0.1:34275/#/record",
+ "pageUrl": "http://127.0.0.1:39037/#/record",
"code": [
{
"path": "web/src/studio.ts",
- "line": 73,
- "endLine": 73,
+ "line": 77,
+ "endLine": 77,
"symbol": "studioView",
"status": "ok",
- "snippet": "71 }\n72 \n73 export function studioView(preset?: Mode | Layout): HTMLElement {\n74 const life = new AbortController()\n75 let sources: Sources = {}",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "snippet": "75 }\n76 \n77 export function studioView(preset?: Mode | Layout): HTMLElement {\n78 const life = new AbortController()\n79 let sources: Sources = {}",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
},
{
"path": "src/store/sessions.ts",
@@ -122,11 +122,11 @@
"note": "chunks land in order",
"status": "ok",
"snippet": "189 * is refused with the number expected.\n190 */\n191 appendChunk(id: string, trackId: string, owner: string, seq: number, body: Readable): Promise {\n192 const key = writeKey(id, trackId, owner)\n193 const waiting = this.waiting.get(key) ?? 0",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
"action": "click",
- "actionMs": 26624,
+ "actionMs": 27124,
"box": {
"x": 12,
"y": 185,
@@ -134,13 +134,40 @@
"height": 36
}
},
+ {
+ "stepId": "takes",
+ "title": "The Takes tab",
+ "say": "The tabs at the right hold the studio's tools, one group at a time. Takes keeps the tracks, the screenshots and the marks.",
+ "startMs": 28069,
+ "endMs": 38618,
+ "pageUrl": "http://127.0.0.1:39037/#/record",
+ "code": [
+ {
+ "path": "web/src/inspector.ts",
+ "line": 34,
+ "endLine": 34,
+ "symbol": "createInspector",
+ "status": "ok",
+ "snippet": "32 }\n33 \n34 export function createInspector(opts: { key: string; label: string; tabs: InspectorTab[]; initial?: string }): Inspector {\n35 const slots = new Map()\n36 const order: string[] = []",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
+ }
+ ],
+ "action": "click",
+ "actionMs": 38035,
+ "box": {
+ "x": 907,
+ "y": 487,
+ "width": 32,
+ "height": 32
+ }
+ },
{
"stepId": "code-field",
"title": "Marks carry code",
"say": "Each mark can point at code: a path, a line range or a symbol. formrec checks them against the codebase when you save.",
- "startMs": 27543,
- "endMs": 38535,
- "pageUrl": "http://127.0.0.1:34275/#/record",
+ "startMs": 38619,
+ "endMs": 49248,
+ "pageUrl": "http://127.0.0.1:39037/#/record",
"code": [
{
"path": "src/model/anchor-text.ts",
@@ -149,23 +176,21 @@
"symbol": "parseAnchorText",
"status": "ok",
"snippet": "5 * \"path#symbol\", optionally followed by \" -- note\".\n6 */\n7 export function parseAnchorText(text: string): CodeAnchor | undefined {\n8 const [ref = '', ...noteParts] = text.trim().split(/\\s+--\\s+/)\n9 const note = noteParts.join(' -- ').trim() || undefined",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
},
{
"path": "src/server/http.ts",
- "line": 191,
- "endLine": 191,
+ "line": 199,
+ "endLine": 199,
"symbol": "finishRecording",
"status": "ok",
- "snippet": "189 }\n190 \n191 async function finishRecording(req: IncomingMessage, res: ServerResponse, opts: ServerOptions, id: string): Promise {\n192 let dir: string\n193 try {",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "snippet": "197 }\n198 \n199 async function finishRecording(req: IncomingMessage, res: ServerResponse, opts: ServerOptions, id: string): Promise {\n200 let dir: string\n201 try {",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
- "action": "click",
- "actionMs": 37927,
"box": {
- "x": 287,
- "y": 734,
+ "x": 979,
+ "y": 195,
"width": 139,
"height": 17
}
@@ -174,9 +199,9 @@
"stepId": "code-anchor",
"title": "A mark with code",
"say": "Type a path, a line range or a symbol; the chapter links to it when you save.",
- "startMs": 38535,
- "endMs": 48520,
- "pageUrl": "http://127.0.0.1:34275/#/record",
+ "startMs": 49248,
+ "endMs": 59366,
+ "pageUrl": "http://127.0.0.1:39037/#/record",
"code": [
{
"path": "web/src/marks.ts",
@@ -185,15 +210,15 @@
"symbol": "marksPanel",
"status": "ok",
"snippet": "14 }\n15 \n16 export function marksPanel(now: () => number | undefined, signal: AbortSignal): MarksPanel {\n17 let marks: MarkInput[] = []\n18 const title = h('input', { placeholder: 'Step or topic' }) as HTMLInputElement",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
"action": "fill",
- "actionMs": 46192,
+ "actionMs": 56800,
"box": {
- "x": 265,
- "y": 969,
- "width": 611,
+ "x": 957,
+ "y": 433,
+ "width": 290,
"height": 72
}
},
@@ -201,9 +226,9 @@
"stepId": "guests",
"title": "Guests on this network",
"say": "Guests on the same Wi-Fi join over HTTPS with a one-time code and record themselves at full quality.",
- "startMs": 48520,
- "endMs": 57066,
- "pageUrl": "http://127.0.0.1:34275/#/record",
+ "startMs": 59366,
+ "endMs": 68471,
+ "pageUrl": "http://127.0.0.1:39037/#/record",
"code": [
{
"path": "src/guests/server.ts",
@@ -212,7 +237,7 @@
"symbol": "GuestListener",
"status": "ok",
"snippet": "51 }\n52 \n53 export class GuestListener {\n54 private server: https.Server | undefined\n55 private info: GuestStatus = { enabled: false, addresses: [], links: [] }",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
},
{
"path": "web/src/rtc.ts",
@@ -222,23 +247,25 @@
"note": "mix-minus",
"status": "ok",
"snippet": "90 }\n91 \n92 export class HostCall {\n93 private peers = new Map()\n94 private readonly ctx = new AudioContext()",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
+ "action": "click",
+ "actionMs": 67886,
"box": {
- "x": 918,
- "y": 240,
- "width": 192,
- "height": 20
+ "x": 907,
+ "y": 374,
+ "width": 32,
+ "height": 32
}
},
{
"stepId": "agents",
"title": "Made by an agent",
"say": "This video had no person behind it. An agent wrote a walkthrough and formrec played it in a headless browser.",
- "startMs": 57066,
- "endMs": 66442,
- "pageUrl": "http://127.0.0.1:34275/#/library",
+ "startMs": 68471,
+ "endMs": 77857,
+ "pageUrl": "http://127.0.0.1:39037/#/library",
"code": [
{
"path": "src/runner/headless.ts",
@@ -247,20 +274,20 @@
"symbol": "recordWalkthrough",
"status": "ok",
"snippet": "87 }\n88 \n89 export async function recordWalkthrough(walk: Walkthrough, opts: RecordOptions): Promise {\n90 const createdAt = (opts.now ?? (() => new Date()))()\n91 const id = opts.reuse?.id ?? newId(walk.title, createdAt)",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
},
{
"path": "src/mcp/server.ts",
- "line": 68,
- "endLine": 68,
+ "line": 70,
+ "endLine": 70,
"symbol": "buildServer",
"status": "ok",
- "snippet": "66 \n67 /** The one place an MCP server is built, for every transport: stdio, Streamable HTTP, and the relay's remote agents. */\n68 export function buildServer(deps: ToolDeps, version: string, tools: ToolSet = {}): McpServer {\n69 const server = new McpServer({ name: 'formrec', version })\n70 const registered = new Map()",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "snippet": "68 \n69 /** The one place an MCP server is built, for every transport: stdio, Streamable HTTP, and the relay's remote agents. */\n70 export function buildServer(deps: ToolDeps, version: string, tools: ToolSet = {}, consent?: ConsentGate): McpServer {\n71 const server = new McpServer({ name: 'formrec', version })\n72 const registered = new Map()",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
"action": "click",
- "actionMs": 65782,
+ "actionMs": 77202,
"box": {
"x": 12,
"y": 147,
@@ -272,37 +299,37 @@
"stepId": "player",
"title": "The player",
"say": "Open a recording: chapters on the right, captions on the video, and the code for each chapter one click away.",
- "startMs": 66443,
- "endMs": 76207,
+ "startMs": 77857,
+ "endMs": 87145,
"ui": {
"route": "#/f/:id",
"label": "Player"
},
- "pageUrl": "http://127.0.0.1:34275/#/f/[redacted-key]",
+ "pageUrl": "http://127.0.0.1:39037/#/f/recording-2026-12-02-2608b0",
"code": [
{
"path": "web/src/player.ts",
- "line": 12,
- "endLine": 12,
+ "line": 13,
+ "endLine": 13,
"symbol": "playerView",
"status": "ok",
- "snippet": "10 type Src = (file: string) => string\n11 \n12 export async function playerView(id: string): Promise {\n13 const rec = await api.get(id)\n14 const remove = button('Delete', 'trash', {",
- "commit": "5a677ae0260695371bbe54696105e9c6d6627311"
+ "snippet": "11 type Src = (file: string) => string\n12 \n13 export async function playerView(id: string): Promise {\n14 const rec = await api.get(id)\n15 const remove = button('Delete', 'trash', {",
+ "commit": "b31201fcac488e74f4fc9623d749f3506dced854"
}
],
"action": "click",
- "actionMs": 75187,
+ "actionMs": 86565,
"box": {
"x": 488,
"y": 325,
- "width": 371,
- "height": 329
+ "width": 378,
+ "height": 333
}
}
],
"keys": [
{
- "atMs": 46275,
+ "atMs": 56862,
"label": "typed 34 characters"
}
]
diff --git a/demos/self-tour/video.webm b/demos/self-tour/video.webm
index 7d09239..cef8a95 100644
Binary files a/demos/self-tour/video.webm and b/demos/self-tour/video.webm differ
diff --git a/demos/studio-guest/CREDITS.md b/demos/studio-guest/CREDITS.md
index 6655deb..9f9b38e 100644
--- a/demos/studio-guest/CREDITS.md
+++ b/demos/studio-guest/CREDITS.md
@@ -3,7 +3,7 @@
Made by `scripts/make-demos.mjs` for this repository; no third-party media.
- The camera pictures are generated with FFmpeg (`color`, `drawbox` and `drawtext` with the DejaVu Sans Bold font that renders the text; the font is not shipped). "Mara" and "Ada" are invented names.
-- The voices are synthesised with FFmpeg's `flite` filter (CMU Flite voices `slt` and `kal`, BSD-style licence); only the spoken audio is shipped, not Flite.
-- FormRec recorded the take: each browser used the files above as its camera and microphone.
+- The voices are synthesised with Kokoro-82M (Apache-2.0, model files v1.0 from the kokoro-onnx release `model-files-v1.1`) through FormREC's built-in voice: Mara is `af_heart`, Ada is `af_bella`, speed 1, each set to -16 LUFS with peaks under -1.5 dBTP. Only the spoken audio is shipped; not the model, kokoro-onnx (MIT) or the eSpeak NG it phonemises with (GPL), which ran as a separate program.
+- FormREC recorded the take: each browser used the files above as its camera and microphone. In 0.11.0 the two microphone tracks were spoken again with Kokoro in place of the old Flite voices, at the take's offsets and lengths: Mara's whole line in "Mara opens the show" (0.46 to 9.10 s) and Ada's in "Ada answers" (9.50 to 17.30 s, the mark moved from 8.83 to 9.30 s). The cameras are the recorded ones.
Apache-2.0, as the rest of the repository.
diff --git a/demos/studio-guest/README.md b/demos/studio-guest/README.md
index ba271f6..1b6b3b6 100644
--- a/demos/studio-guest/README.md
+++ b/demos/studio-guest/README.md
@@ -6,4 +6,4 @@ Open it in FormREC from Home (Demos) or Help > Demo: A Studio Take with a Guest.
Files: `recording.json`, one `track-*.webm` per camera and microphone, `captions.vtt`, `chapters.vtt`, `poster.png` (a frame of the host camera).
-Remake it with `npm run build && node scripts/make-demos.mjs`: it records a real take in two Chromium browsers, one for the host and one for the guest.
+Remake it with `npm run build && node scripts/make-demos.mjs`: it records a real take in two Chromium browsers, one for the host and one for the guest, with voices spoken by the built-in Kokoro voice (set up in Settings, Voice or by the script on first run).
diff --git a/demos/studio-guest/chapters.vtt b/demos/studio-guest/chapters.vtt
index 1c66280..188825e 100644
--- a/demos/studio-guest/chapters.vtt
+++ b/demos/studio-guest/chapters.vtt
@@ -1,5 +1,5 @@
WEBVTT
mark-1
-00:00:08.828 --> 00:00:21.366
+00:00:09.300 --> 00:00:21.366
Mark 1
diff --git a/demos/studio-guest/recording.json b/demos/studio-guest/recording.json
index 44a2791..13a413f 100644
--- a/demos/studio-guest/recording.json
+++ b/demos/studio-guest/recording.json
@@ -16,7 +16,7 @@
"file": "track-host-mic.webm",
"offsetMs": 64,
"durationMs": 20970,
- "bytes": 133613,
+ "bytes": 87257,
"complete": true
},
{
@@ -27,7 +27,7 @@
"file": "track-gb9c4de962ae10acc-mic.webm",
"offsetMs": 95,
"durationMs": 21271,
- "bytes": 211499,
+ "bytes": 86264,
"complete": true
},
{
@@ -61,14 +61,14 @@
"title": "Mara opens the show",
"say": "",
"startMs": 0,
- "endMs": 8828,
+ "endMs": 9300,
"code": []
},
{
"stepId": "mark-1",
"title": "Ada answers",
"say": "",
- "startMs": 8828,
+ "startMs": 9300,
"endMs": 21366,
"code": []
}
diff --git a/demos/studio-guest/track-gb9c4de962ae10acc-mic.webm b/demos/studio-guest/track-gb9c4de962ae10acc-mic.webm
index 89f06bc..7255d61 100644
Binary files a/demos/studio-guest/track-gb9c4de962ae10acc-mic.webm and b/demos/studio-guest/track-gb9c4de962ae10acc-mic.webm differ
diff --git a/demos/studio-guest/track-host-mic.webm b/demos/studio-guest/track-host-mic.webm
index b2c0974..5ca9563 100644
Binary files a/demos/studio-guest/track-host-mic.webm and b/demos/studio-guest/track-host-mic.webm differ
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index da2e0e1..e8155e3 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -1,8 +1,8 @@
-# FormRec design
+# FormREC design
## What it is
-FormRec (formerly froom) records walkthroughs, podcasts, corporate messages and live feeds. The first slice, below, is walkthroughs.
+FormREC (formerly froom) records walkthroughs, podcasts, corporate messages and live feeds. The first slice, below, is walkthroughs.
A walkthrough is a sequence of steps through a UI. formrec records one as a video and keeps the structure: each chapter has a time range, what was said, the UI it shows (route, selector, page URL) and the code it is about, resolved at a commit. The structure is what makes a recording more than a screen recording: it can be searched, checked for staleness when the code moves, regenerated, and read by an agent.
@@ -30,9 +30,9 @@ The agent path records a web page only, not the desktop: it is reproducible, nee
## Wider scope: podcasts, corporate comms, feeds and lines
-On 2026-11-09 the scope widened from UI walkthroughs to recording in general: corporate comms, podcasts, and simple live video and audio feeds and contributor lines. What the tools people already use do, and what FormRec takes from each:
+On 2026-11-09 the scope widened from UI walkthroughs to recording in general: corporate comms, podcasts, and simple live video and audio feeds and contributor lines. What the tools people already use do, and what FormREC takes from each:
-| Tool | What it is known for | Take for FormRec |
+| Tool | What it is known for | Take for FormREC |
|---|---|---|
| Riverside, Zencastr, SquadCast (now in Descript) | Remote podcast studio in the browser; each guest recorded locally at full quality and uploaded progressively; one track per person; transcripts; AI clips | Local-first double-ender recording, progressive upload, track per participant, clips |
| Descript | Edit audio and video by editing the transcript; filler-word removal; Studio Sound | Text-based editing and speech clean-up, through formcut and formwav |
@@ -44,11 +44,11 @@ What the family already has:
- formwav: remote recording over the local network with a track per guest (`backend/app/routers/room.py`, paired devices from `remote.py`), shared editing (`share.py`) and voices.
- formcut: transcription, speech checks, scene finding, cut-down plans and rendering over MCP.
- formencoder: encoding.
-FormRec should orchestrate these, not rebuild them.
+FormREC should orchestrate these, not rebuild them.
### Phases
-Phases 1 and 2 were built on 2026-11-09 (local network only). The direction then was to leave editing, transcripts and clean-up to FormCut and FormWav. 0.4.0 changes that: FormRec is a general recorder for any app, website or desktop with every Loom feature built in as feature modules (`src/features/`), and FormCut and FormWav stay one hand-off away for a full edit.
+Phases 1 and 2 were built on 2026-11-09 (local network only). The direction then was to leave editing, transcripts and clean-up to FormCut and FormWav. 0.4.0 changes that: FormREC is a general recorder for any app, website or desktop with every Loom feature built in as feature modules (`src/features/`), and FormCut and FormWav stay one hand-off away for a full edit.
1. **Studio: local tracks (built).** Record the screen, the camera and every microphone as separate tracks (not one mixed WebM), plus a camera bubble in the composed view. Pause and resume. Seekable output. Audio-only mode for podcasts.
diff --git a/docs/LOOM_PARITY.md b/docs/LOOM_PARITY.md
index 9c572a9..3cb3c69 100644
--- a/docs/LOOM_PARITY.md
+++ b/docs/LOOM_PARITY.md
@@ -1,12 +1,12 @@
-# FormRec 0.7.0 and Loom: feature parity audit
+# FormREC 0.7.0 and Loom: feature parity audit
-Loom (an Atlassian product since 2023) is a cloud screen and camera recorder: a Chrome extension, desktop and mobile apps and an in-browser SDK record to Loom's servers, where videos are edited, transcribed, summarised by AI, shared by link, commented on and organised in workspaces. FormRec is a local recorder: everything stays on this computer by default, and since 0.5.0 a self-hosted relay or a tunnel the person runs gives public links, viewer accounts, the integration apps and remote agents, with the computer as the source of truth.
+Loom (an Atlassian product since 2023) is a cloud screen and camera recorder: a Chrome extension, desktop and mobile apps and an in-browser SDK record to Loom's servers, where videos are edited, transcribed, summarised by AI, shared by link, commented on and organised in workspaces. FormREC is a local recorder: everything stays on this computer by default, and since 0.5.0 a self-hosted relay or a tunnel the person runs gives public links, viewer accounts, the integration apps and remote agents, with the computer as the source of truth.
The Loom side comes from five research files made for this release from Loom's own pages only: the Loom Help Center (support.atlassian.com/loom, where support.loom.com now redirects), loom.com (product and pricing pages) and atlassian.com (the Loom blog and product pages). They hold 289 rows: R1 recording 57, R2 editing and AI 48, R3 sharing and viewing 69, R4 library, admin and integrations 90, and P1 the 25 Form family gaps (P-01 to P-25). The research was checked again against the same sources on 2026-11-10 for 0.5.0 (LOOM_FEATURE_RESEARCH.md); no new Loom feature needed a row.
Method: every row a branch moved names its code and the test that proves it, and each branch ran its tests. For 0.5.0 an independent audit, by six agents that did not build the features, read all 289 rows against the code, ran every test the evidence column names, corrected the rows that overstated or named the wrong file or test, fixed the small defects it found with a test each, and wrote the missing `docs/parity/*.md`. For 0.6.0 two more agents that did not build it audited every row 0.6.0 moved the same way, for 0.7.0 one more audited SAML from the identity provider, single logout and the gate of the browser extension, for 0.8.0 four more audited every row and feature 0.8.0 moved or added while two reviewed its views by eye in Chromium and Firefox, and for 0.9.0 three more audited what 0.9.0 added and two reviewed its views the same way. The merged branch ran the whole suite (results in the last section). A row is Done only with code and a passing test; what was not run against a real vendor service or device is said in the row.
-Classes: **Done** (code plus a passing test or screenshot), **Partial** (what is missing is said), **Local equivalent** (Loom's outcome reached another way, or built but not run where only real hardware or a vendor's approval can prove it; each row says which), **Not applicable** (cloud-only or a legal property; what FormRec states instead), **Missing** (no code).
+Classes: **Done** (code plus a passing test or screenshot), **Partial** (what is missing is said), **Local equivalent** (Loom's outcome reached another way, or built but not run where only real hardware or a vendor's approval can prove it; each row says which), **Not applicable** (cloud-only or a legal property; what FormREC states instead), **Missing** (no code).
## Summary
@@ -23,7 +23,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
## R1-recording.md: recording and capture (R1-01 to R1-57)
-| id | Loom feature | status | what FormRec does | where (feature: main file) | evidence |
+| id | Loom feature | status | what FormREC does | where (feature: main file) | evidence |
| --- | --- | --- | --- | --- | --- |
| R1-01 | Recording platforms | Done | Records from the web studio, the desktop app, the MV3 extension (Chrome, Edge; Linux and ChromeOS work), the phone page and MCP; the extension's real tab capture is proven in headed Chromium (its keyboard command records a tab into the library) | extension: extension/manifest.json, extension/background.js, src/features/extension/ (claimed by extension) | extension-e2e "loads as a Manifest V3 extension", "pairs from the popup"; extension-pair; extension-capture-e2e (headed Chromium on Xvfb) |
| R1-02 | All-new native Loom for Mac (desktop 2.0) | Local equivalent | Tauri 2 shell with floating bubble, controls, overlay, tray and global shortcuts; no "80 percent smaller" claim. The Linux app is staged, built (AppImage) and run on a virtual desktop (Xvfb, Openbox, a session bus, an xfce4-panel tray host): no white flash in its first frames, the bubble, controls and overlay windows above other windows, off the taskbar and on every desktop, the controls window 420 by 56, six global shortcuts registered and delivered, the tray menu registered and clicked over D-Bus. The shell's Windows and macOS branches compile and are clippy clean with -D warnings for all four FormCompiler targets (setup/check_targets; nothing linked or run). L because the macOS and Windows windows were not run here. 0.9.0: the shell is checked and clippy clean for all four targets again, the AppImage is built by setup/build_release (a patchelf and file preflight), and in the built app the webview has a microphone and camera for its own page (media.rs), so the studio gets ready; its MediaRecorder writes only MP4, which tracks now accept | desktop: src-tauri/src/desktop.rs, setup/stage_desktop, setup/build_release, setup/check_targets, setup/linux_desktop_run.mjs; desktop: src-tauri/src/media.rs (claimed by desktop) | cargo test (35); desktop-targets (cargo check and cargo clippy --all-targets -D warnings for x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc, aarch64-apple-darwin, x86_64-apple-darwin); desktop-linux-run (the built app on Xvfb, controls 420x56); desktop-feature "floating pages"; macOS and Windows windows not run; desktop-targets; desktop-linux-run (native scenario: audio input, getUserMedia, studio Ready, the native feed in the built app); cargo test (36); mp4-ingest |
@@ -34,10 +34,10 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R1-07 | Capture target: window | Done | A window (displaySurface window) | studio: studio-logic.ts (claimed by studio) | studio-logic "capture options" |
| R1-08 | Capture target: current browser tab | Done | Studio "This tab"; extension Tab mode with tabCapture and tab audio in an offscreen document, proven for real: the extension's own keyboard command, pressed with xdotool in headed Chromium on Xvfb, records the tab through the offscreen document and uploads every chunk into the library (a dropped chunk number that kept only the first second of a tab take was found and fixed) | studio, extension: extension/background.js startTab, extension/offscreen.js, extension/lib/record.js, src/features/extension/gate.ts chunkPath (claimed by extension, studio) | studio-logic; extension-capture-e2e (the decoded screen track matches the take's length and shows the captured page); extension-pair "keeps the order of a track"; extension-e2e "records a take into FormRec" |
| R1-09 | Capture target: custom size / region | Done | Part of the screen, at least 251 px a side, live pixel size, movable while recording | studio: web/src/studio-compose.ts Compositor (claimed by studio) | studio-logic "crops a region" |
-| R1-10 | Multiple displays | Local equivalent | FormRec's own Display panel lists every display (name, size, position, scale; thumbnails on Preview) and the pick is stored by id; capture is asked for monitors only and the captured size and aspect are checked against the pick, with a clear note when another display was shared. On Linux X11 the panel also offers "Record this display directly": FormRec records the chosen RandR monitor itself with FFmpeg x11grab as the take's screen track, through the studio's own track routes (pause freezes FFmpeg and the timestamp hole is closed in place, Live Rewind works), so the system picker never opens. Wayland, macOS and Windows keep the system picker and the panel says so. L because macOS and Windows have no native feed and no physical second display was run. 0.9.0: the native feed also runs inside the built Linux app (setup/linux_desktop_run.mjs, scenario native) | desktop: web/src/desktop-display.ts, desktop-panels.ts, desktop-native.ts, src/features/desktop/x11.ts, native-feed.ts, webm-holes.ts, src-tauri/src/desktop.rs (claimed by desktop) | desktop-native-display, desktop-native-panels (CLS 0 at 4x and 8x), desktop-x11-feed (Xvfb with two X screens of 800x600 and 1024x768: the track is the chosen screen's size and colour), desktop-x11-studio (Chromium: getDisplayMedia never called, Live Rewind, CLS 0), desktop-webm-holes, cargo test; not run on Wayland, macOS, Windows or a physical second display; desktop-linux-run (native scenario) |
+| R1-10 | Multiple displays | Local equivalent | FormREC's own Display panel lists every display (name, size, position, scale; thumbnails on Preview) and the pick is stored by id; capture is asked for monitors only and the captured size and aspect are checked against the pick, with a clear note when another display was shared. On Linux X11 the panel also offers "Record this display directly": FormREC records the chosen RandR monitor itself with FFmpeg x11grab as the take's screen track, through the studio's own track routes (pause freezes FFmpeg and the timestamp hole is closed in place, Live Rewind works), so the system picker never opens. Wayland, macOS and Windows keep the system picker and the panel says so. L because macOS and Windows have no native feed and no physical second display was run. 0.9.0: the native feed also runs inside the built Linux app (setup/linux_desktop_run.mjs, scenario native) | desktop: web/src/desktop-display.ts, desktop-panels.ts, desktop-native.ts, src/features/desktop/x11.ts, native-feed.ts, webm-holes.ts, src-tauri/src/desktop.rs (claimed by desktop) | desktop-native-display, desktop-native-panels (CLS 0 at 4x and 8x), desktop-x11-feed (Xvfb with two X screens of 800x600 and 1024x768: the track is the chosen screen's size and colour), desktop-x11-studio (Chromium: getDisplayMedia never called, Live Rewind, CLS 0), desktop-webm-holes, cargo test; not run on Wayland, macOS, Windows or a physical second display; desktop-linux-run (native scenario) |
| R1-11 | Audio-only recording (mobile) | Done | Audio only on the phone page, now also as an installed web app with an offline chunk queue, wake lock and system media controls | phone: web/src/phone.ts, phone-queue.ts, phone-sw.ts (claimed by phone) | phone-server, phone-e2e, phone-pwa-offline |
-| R1-12 | iOS recording | Local equivalent | Browser: camera (front or back), audio only, installable PWA with a service worker, an IndexedDB upload queue replayed in order, Add to Home Screen steps, wake lock, orientation. Native: apps/ios, a SwiftUI app with a ReplayKit Broadcast Upload Extension sending H.264 and AAC over the pairing, and the server's native MP4 upload into the library importer. The platform-independent shared code (pairing link, client, chunk uploader, pending uploads, settings) builds with Swift on Linux as a Swift package and is tested against a real FormRec, again for 0.8.0 with Swift 6.4.2 (signature checked) and clean under strict concurrency checking; its Apple-only branches (CryptoKit, Security, upload(for:from:)) are read, not compiled, here. L because the app, the broadcast extension, the AVFoundation segment writer and the Xcode project need Xcode and a device | phone: web/src/phone*.ts, src/features/phone/native.ts, apps/ios/ (Package.swift, Shared/, Tests/), apps/mobile-api.md (claimed by phone) | phone-pwa-server, phone-pwa-offline; phone-ios-e2e (swift test with Swift 6.4.2: 27 unit tests and 5 against a real FormRec: pairing with the certificate fingerprint, chunk rules, an FFmpeg MP4 uploaded in slices, a left-behind spool finished) |
-| R1-13 | Android recording | Local equivalent | Android Chrome page (camera, audio, screen with mic, 3 s countdown, pause, flip, install button, queue) and apps/android, a Kotlin MediaProjection foreground service with notification controls kept out of the recording, MediaRecorder to MP4 and WorkManager uploads over the same API. The app builds (Gradle wrapper, assembleDebug, lint with no errors) and its client and upload worker are tested against a real FormRec, again for 0.8.0 (Android SDK platform 35, build-tools 35.0.0 and 34.0.0, JDK 21, after Maven Central's 429 answers cleared); L because the capture itself needs a device or an emulator with KVM, which this machine lacks | phone: web/src/phone*.ts, apps/android/, apps/mobile-api.md, src/features/phone/native.ts (claimed by phone) | phone-pwa-server, phone-pwa-offline; phone-android-e2e (the Kotlin client and UploadWorker pair with the pinned certificate and upload a two-slice FFmpeg MP4 into the library against a real FormRec, through Gradle); apps/android/app/src/test (notification intents, upload queue, settings, manifest, screen size); assembleDebug and lintDebug with 0 errors |
+| R1-12 | iOS recording | Local equivalent | Browser: camera (front or back), audio only, installable PWA with a service worker, an IndexedDB upload queue replayed in order, Add to Home Screen steps, wake lock, orientation. Native: apps/ios, a SwiftUI app with a ReplayKit Broadcast Upload Extension sending H.264 and AAC over the pairing, and the server's native MP4 upload into the library importer. The platform-independent shared code (pairing link, client, chunk uploader, pending uploads, settings) builds with Swift on Linux as a Swift package and is tested against a real FormREC, again for 0.8.0 with Swift 6.4.2 (signature checked) and clean under strict concurrency checking; its Apple-only branches (CryptoKit, Security, upload(for:from:)) are read, not compiled, here. L because the app, the broadcast extension, the AVFoundation segment writer and the Xcode project need Xcode and a device | phone: web/src/phone*.ts, src/features/phone/native.ts, apps/ios/ (Package.swift, Shared/, Tests/), apps/mobile-api.md (claimed by phone) | phone-pwa-server, phone-pwa-offline; phone-ios-e2e (swift test with Swift 6.4.2: 27 unit tests and 5 against a real FormREC: pairing with the certificate fingerprint, chunk rules, an FFmpeg MP4 uploaded in slices, a left-behind spool finished) |
+| R1-13 | Android recording | Local equivalent | Android Chrome page (camera, audio, screen with mic, 3 s countdown, pause, flip, install button, queue) and apps/android, a Kotlin MediaProjection foreground service with notification controls kept out of the recording, MediaRecorder to MP4 and WorkManager uploads over the same API. The app builds (Gradle wrapper, assembleDebug, lint with no errors) and its client and upload worker are tested against a real FormREC, again for 0.8.0 (Android SDK platform 35, build-tools 35.0.0 and 34.0.0, JDK 21, after Maven Central's 429 answers cleared); L because the capture itself needs a device or an emulator with KVM, which this machine lacks | phone: web/src/phone*.ts, apps/android/, apps/mobile-api.md, src/features/phone/native.ts (claimed by phone) | phone-pwa-server, phone-pwa-offline; phone-android-e2e (the Kotlin client and UploadWorker pair with the pinned certificate and upload a two-slice FFmpeg MP4 into the library against a real FormREC, through Gradle); apps/android/app/src/test (notification intents, upload queue, settings, manifest, screen size); assembleDebug and lintDebug with 0 errors |
| R1-14 | Camera bubble across apps (desktop) vs Chrome only (extension) | Done | The camera bubble floats over every app in the desktop app and over the page in the extension, both drawn from the viewer's own bubble choices (shape, size, corner, mirror, border), which effects keeps in <data>/effects/prefs.json (GET and PUT /api/effects/-/prefs) and the extension's gate answers; in a real tab take the extension's bubble is in the page, in the recorded picture, and gone after the take | desktop: web/src/desktop-bubble.ts; extension: src/features/extension/gate.ts bubbleFromPrefs, extension/content/bubble.js; effects: shared/effects-layout.ts, src/features/effects/index.ts readPrefs changePrefs (claimed by desktop, extension, effects) | desktop-feature "the bubble shows the camera"; extension-pair "serves the camera bubble layout"; extension-capture-e2e (bubble in the page, in the recorded picture, gone after) |
| R1-15 | Camera bubble shapes (Mac) | Done | Circle, rounded, square, portrait (3:4) and landscape (16:9, its own size steps of 16 to 42 percent of the width, a 6 percent radius), chosen in the studio and laid out by one geometry in the studio, player and export; the desktop bubble draws it 16:9 and the extension bubble as a 16:9 box; the schema, prefs route and MCP tool accept it | effects: shared/effects-layout.ts LANDSCAPE_SIZE_STEPS sizeStep bubbleRect, src/features/effects/schema.ts SHAPES bubbleRadius, web/styles/effects.css; desktop: web/src/desktop-bubble.ts; extension: src/features/extension/gate.ts, extension/content/bubble.js (claimed by effects, desktop, extension) | exportparity-schema; exportparity-browser (check view and player, CLS 0 at 4x, desktop page 16:9, extension size); exportparity-frame (exported landscape is 16:9 at its size) |
| R1-16 | Camera bubble sizes | Done | Five size steps, changeable during a take | effects: SIZE_STEPS (claimed by effects) | effects-schema "puts a corner bubble a margin from the edges" |
@@ -70,7 +70,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R1-43 | Speaker notes / teleprompter | Done | Speaker notes panel kept on this computer, and an optional teleprompter band that shows the notes and scrolls at the chosen speed while recording, holds on pause and stop, and is never in the recorded picture; the AI writes speaker notes on request | studio: web/src/studio-panels.ts notesPanel, [data-studio-prompter]; ai: speaker-notes (claimed by studio, ai) | studio-proof-e2e "R1-43 teleprompter" (scroll at speeds 2 and 10, held while paused, not in the composed stage); ai-engine "writes every kind" |
| R1-44 | Recording Canvas | Done | Canvas layout composed into the screen track | studio: Compositor (claimed by studio) | studio-e2e canvas test; studio-canvas.png |
| R1-45 | Upload existing videos | Done | One importer: the library's importVideoFile serves the picker, File > Open and drop, formrec://open, the formrec_import tool and the Zoom import; WMV and AVI are converted to a playable file when FFmpeg is installed, and refused with a 422 telling the person to install FFmpeg when it is not | library: src/features/library/index.ts importVideoFile, media.ts; documents: open.ts; zoom: import.ts (claimed by library, documents, zoom) | leftovers-routes "formrec_import uses the library importer", "File > Open by path takes .wmv and .avi"; zoom-import |
-| R1-46 | Meeting recording (Loom Notetaker bot) | Done | FormRec Notetaker joins a meeting link as the named guest "FormRec Notetaker (recording)" in a browser on this computer, waits to be admitted, posts the consent message, records picture and sound and leaves when the meeting ends or it is alone; four auto-record rules; an admin can turn it off. Never automates a sign-in. Built against the public guest flows; not run against live Meet, Teams or Zoom | meetings: src/features/meetings/notetaker.ts, joiners.ts, audio.ts, rules.ts (claimed by meetings) | meetings-notetaker (fake meeting page, real audio checked with volumedetect), meetings-units |
+| R1-46 | Meeting recording (Loom Notetaker bot) | Done | FormREC Notetaker joins a meeting link as the named guest "FormREC Notetaker (recording)" in a browser on this computer, waits to be admitted, posts the consent message, records picture and sound and leaves when the meeting ends or it is alone; four auto-record rules; an admin can turn it off. Never automates a sign-in. Built against the public guest flows; not run against live Meet, Teams or Zoom | meetings: src/features/meetings/notetaker.ts, joiners.ts, audio.ts, rules.ts (claimed by meetings) | meetings-notetaker (fake meeting page, real audio checked with volumedetect), meetings-units |
| R1-47 | Desktop Meetings tab | Done | #/meetings lists today, coming up and the last 30 days from every connected calendar with a record switch per meeting, Join, Notetaker, Record and paste-a-link; a consent step and an always-visible Recording indicator for calls recorded on this computer | meetings: web/src/meetings-view.ts, meetings-offer.ts (claimed by meetings) | meetings-e2e (CLS 0) |
| R1-48 | Record for agent (video prompts) | Done | Any recording becomes an agent prompt (goal, numbered steps, speech, page, code anchors, frames); the runner turns a goal into a recording. Console and network lines are included when the extension's Bug report mode captured them on a tab recording (section "Console and network"). The prompt can be sent to Jira as a work item assigned to an agent account or a person (Jira Cloud REST v3 create issue plus Find users, through the saved Jira connection) from the player's Prompt for agent dialog and formrec_agent_prompt_to_jira | ai: src/features/ai/heuristic.ts agentPrompt, prompt-text.ts; runner: src/runner/inspect.ts; integrations: src/features/integrations/agent-work-item.ts, web/src/ai-jira.ts (claimed by ai, runner, integrations) | ai-e2e "turns the recording into a prompt"; runner-site "lists controls with targets"; missing-bugreport; agent-work-item (a fake Jira that checks the documented request shape), agent-work-item-browser (CLS 0 at 4x) |
| R1-49 | Blur sensitive information (screen content) | Done | Fixed in 0.4.0: src/features/edit/adapters.ts annotateFilter calls annotate's readTrack and prepareExport at the size the main picture has in the export; src/features/edit/media.ts chainAnnotate relabels filterScript's graph and chains it on the self source's picture (scaled to its fitted size, placed on the recording's timeline) befo... | annotate: src/features/annotate/render.ts filterScript (claimed by annotate) | annotate-track "writes an FFmpeg graph with timed blur", "exports a video FFmpeg accepts" (renderer only); 0.4.0 fix exportwire item 4: 'edit-exportwire.test.ts' "draws a box and a text callout written by annotate at the edited time of their source time, and not an item that was cut" (red box border and fill, text plate and white glyph pixels at edited 1 |
@@ -85,7 +85,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
## R2-editing-ai.md: editing and AI (R2-01 to R2-48)
-| id | Loom feature | status | what FormRec does | where (feature: main file) | evidence |
+| id | Loom feature | status | what FormREC does | where (feature: main file) | evidence |
| --- | --- | --- | --- | --- | --- |
| R2-01 | Trim (waveform editor) | Done | Trim handles on a filmstrip and waveform, zoom to 50x | edit: web/src/edit-editor.ts, src/features/edit/ops.ts trim (claimed by edit) | edit-ops "trims, splits, deletes"; edit-api |
| R2-02 | Split / cut middle section | Done | Split, delete or keep a range | edit: ops.ts splitAt, deleteRange (claimed by edit) | edit-ops; edit-e2e "cuts a selection and transcript words" |
@@ -125,9 +125,9 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R2-36 | Video to Confluence page (beta) | Done | Confluence-style page as Markdown and HTML | ai: doc-confluence, web/src/ai-client.ts markdownToHtml (claimed by ai) | ai-engine "writes every kind" |
| R2-37 | Bug Report mode (dev context capture) | Done | Bug Report mode captures device, console and network, proven on a real page through the extension's own injection (a console error with an object, a warning, an uncaught exception, a fetch answered 500 and a refused fetch, at times inside the take, with the device and page), and maps stack frames and the failing step to file, line and snippet inside the operator's codebase root (symlink-safe, no secret-looking files), in the report and in the Jira or GitHub issue | ai: src/features/ai/bugcode.ts, bugreport.ts; extension: extension/lib/bugreport.js, src/features/extension/bugreport.ts; integrations: issues.ts (claimed by ai, extension, integrations) | extension-capture-e2e (Bug report checks); wtdiff-bugcode; missing-bugreport |
| R2-38 | Record for agent / video prompts (2026) | Done | Agent prompt from any recording; runner records from a goal; the prompt opens as a Jira work item assigned to an agent or a person (the player's dialog and formrec_agent_prompt_to_jira) | ai: agentPrompt, formrec_agent_prompt; integrations: agent-work-item.ts; runner: formrec_inspect_page (claimed by ai, integrations, runner) | ai-e2e "turns the recording into a prompt"; runner-site; agent-work-item; agent-work-item-browser |
-| R2-39 | Rovo in Loom (search and chat) | Done | #/ask searches by words and by meaning (BM25 plus cosine vectors merged by reciprocal rank fusion, k 60) over transcript windows, titles, summaries, chapters, comments and documents, filtered by recording, space, tag, date and person; the answer cites "Title, m:ss" chips that open the player there. Embeddings: built-in hashed vectors (no model), Ollama (the URL must be on this computer), or an OpenAI-compatible embeddings server at the URL the person sets in Settings, AI (meant for a server they run; FormRec does not force it onto this computer, so a remote URL receives the transcript text) | ai: src/features/ai/semantic.ts, chunks.ts, embed.ts, provider.ts, engine.ts; web/src/ai-ask.ts (claimed by ai) | ai-semantic-index, ai-semantic-cross, ai-semantic-e2e (chip seeks, CLS 0) |
+| R2-39 | Rovo in Loom (search and chat) | Done | #/ask searches by words and by meaning (BM25 plus cosine vectors merged by reciprocal rank fusion, k 60) over transcript windows, titles, summaries, chapters, comments and documents, filtered by recording, space, tag, date and person; the answer cites "Title, m:ss" chips that open the player there. Embeddings: built-in hashed vectors (no model), Ollama (the URL must be on this computer), or an OpenAI-compatible embeddings server at the URL the person sets in Settings, AI (meant for a server they run; FormREC does not force it onto this computer, so a remote URL receives the transcript text) | ai: src/features/ai/semantic.ts, chunks.ts, embed.ts, provider.ts, engine.ts; web/src/ai-ask.ts (claimed by ai) | ai-semantic-index, ai-semantic-cross, ai-semantic-e2e (chip seeks, CLS 0) |
| R2-40 | Loom tools in Atlassian MCP | Done | MCP everywhere: stdio, Streamable HTTP on loopback (bearer token, Origin and Host checks) inside the app and 'formrec mcp --http', and on the relay at /mcp behind OAuth 2.1 (PKCE, protected resource and authorization server metadata, dynamic registration, rotating hashed tokens) with tools over published recordings within share privacy; the owner's /mcp/bridge reaches the full local tool set through an outbound signed long poll. One object tool set for videos and meeting recordings, as Loom's MCP V2 has: list objects, the content of up to 20 recordings in one call with a status per recording and per part, share with people, comment or react, and folders created, changed and deleted | agents: src/mcp/http.ts, token.ts, server.ts buildServer; relay: src/relay/oauth.ts, remote.ts, mcp-tools.ts, bridge.ts; src/features/relay/bridge.ts; objects: src/features/objects/index.ts, handlers.ts (claimed by agents, relay, objects) | mcp-http-server, mcp-http-app, mcp-http-agents, remotemcp-oauth, remotemcp-tools, remotemcp-bridge, objects-mcp |
-| R2-41 | Variables / personalized video (audio variables) | Not applicable | Not built as Loom built it: Loom's personalised videos swapped a spoken name into the audio, and Loom's own page says those audio variables are deprecated from 2026-09-30 for all plans, so it is no longer a Loom feature to match. FormRec has its own answer for walkthroughs: variables in a walkthrough and variants recorded from a list of values (JSON or CSV, up to 50), each a recording of its own linked to its source ('docs/parity/variants.md') | variants: src/variants/, src/features/variants/, web/src/variants-panel.ts (claimed by variants) | variants-unit, variants-record (real Chromium variants of a local page), variants-panel-e2e (CLS 0 at 4x), audit2-variants |
+| R2-41 | Variables / personalized video (audio variables) | Not applicable | Not built as Loom built it: Loom's personalised videos swapped a spoken name into the audio, and Loom's own page says those audio variables are deprecated from 2026-09-30 for all plans, so it is no longer a Loom feature to match. FormREC has its own answer for walkthroughs: variables in a walkthrough and variants recorded from a list of values (JSON or CSV, up to 50), each a recording of its own linked to its source ('docs/parity/variants.md') | variants: src/variants/, src/features/variants/, web/src/variants-panel.ts (claimed by variants) | variants-unit, variants-record (real Chromium variants of a local page), variants-panel-e2e (CLS 0 at 4x), audit2-variants |
| R2-42 | Call-to-action button | Done | CTA buttons with style and timing in the owner player | engage: src/features/engage/handlers.ts addCta (claimed by engage) | engage-handlers "keeps CTAs http(s) only"; engage-e2e |
| R2-43 | Auto CTAs (AI) | Done | Suggested CTAs from visited pages (engage) and links (ai), off until accepted | engage: suggestCtas; ai: material.ts findLinks (claimed by ai, engage) | engage-handlers; ai-engine |
| R2-44 | AI meeting notes and recaps | Done | After a meeting: the AI's summary, tasks and notes become meeting-recap.md beside the recording (makeRecap). When the person turned recap email on, or presses Email recap, and mail is set up, the recap is emailed to the attendee addresses the calendar listed; nothing is sent otherwise and the reason is shown | meetings: src/features/meetings/recap.ts, runs.ts; mail: src/mail (claimed by meetings, mail) | meetings-notetaker (recap email through src/mail to a local SMTP server), meetings-units "writes the recap document...", meetings-e2e (meeting-recap.md served), mail-seams |
@@ -138,7 +138,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
## R3-sharing-viewing.md: sharing and viewing (R3-01 to R3-69)
-| id | Loom feature | status | what FormRec does | where (feature: main file) | evidence |
+| id | Loom feature | status | what FormREC does | where (feature: main file) | evidence |
| --- | --- | --- | --- | --- | --- |
| R3-01 | Auto copy link after recording | Done | Setting "Copy link after saving": when the studio saves a take, the recording is shared with the defaults and its link copied to the clipboard (the browser may ask for clipboard permission); with it off nothing is shared or copied | share: web/src/features/share.ts studioPlugins onState('saved'), setting autoCopy (claimed by share) | studio-proof-e2e "R3-01" (a real studio save: share with the defaults, the clipboard holds links[0]; off: no share, clipboard unchanged); owner-settings-sharing.png |
| R3-02 | Share modal: Copy link with link settings | Done | Share modal with every link setting | share: [data-share-modal] (claimed by share) | share-e2e "the owner side"; owner-share-modal.png |
@@ -160,11 +160,11 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R3-18 | AI message composer (Auto Composer) | Done | As R2-33 | ai (claimed by ai) | as R2-33 |
| R3-19 | Embed: iframe, responsive or fixed size | Done | Responsive or fixed iframe, /e/<id> | share: embedHtml (claimed by share) | share-listener oEmbed test; share-e2e |
| R3-20 | Embed URL parameters | Done | autoplay, t, muted, hide_title, speed, hide_speed | share: page.ts (claimed by share) | share-e2e "the embed honours autoplay, muted and hide_title" |
-| R3-21 | Embed SDK and oEmbed method | Done | Embed SDK, oEmbed in JSON and XML with maxwidth and maxheight, discovery tags on every share page, and Open Graph video tags plus twitter:player so Slack, Discord, Notion, Iframely and Embedly play a FormRec link | share: oembed.ts, page.ts, listener.ts; apps/oembed/ (claimed by share) | apps-embeds-oembed |
+| R3-21 | Embed SDK and oEmbed method | Done | Embed SDK, oEmbed in JSON and XML with maxwidth and maxheight, discovery tags on every share page, and Open Graph video tags plus twitter:player so Slack, Discord, Notion, Iframely and Embedly play a FormREC link | share: oembed.ts, page.ts, listener.ts; apps/oembed/ (claimed by share) | apps-embeds-oembed |
| R3-22 | Link unfurl / inline play in third-party apps | Done | OG and Twitter tags, oEmbed discovery; extension inline player | share: page.ts headHtml; extension: content/sites.js (claimed by extension, integrations, share) | share-listener; extension-e2e GitHub card |
| R3-23 | Slack unfurl and in-Slack playback | Done | A real Slack app (apps/slack manifest plus the relay's /apps/slack): a pasted link unfurls as a Block Kit video block that plays the share's /e/ player inside Slack, /formrec lists, posts or opens the recorder, App Home lists recordings, OAuth v2 install, every request signature checked. Not installed in a real workspace here | apps: src/apps/slack.ts, apps/slack/ (claimed by apps) | apps-slack-flow, apps-slack-signature, apps-slack-engage, apps-host-relay |
| R3-24 | Private video previews (Video Privacy Preview) | Done | Protected shares, or any share while the workspace hides previews, unfurl as the bare link in Slack, Google chips, CRM cards and developer tools | apps: AppShareInfo.preview, context.ts lookup (claimed by apps) | apps-slack-flow, apps-google-endpoints, apps-dev-cross |
-| R3-25 | Google Workspace smart chips and Chat previews | Done | Google Workspace add-on (apps/google): Gmail compose picker that inserts the linked GIF, Calendar "Record for this meeting", smart chips for FormRec links in Docs, Sheets and Slides; the relay verifies the add-on's Google ID token. Not deployed to Google here | apps: src/apps/google.ts, apps/google/ (claimed by apps) | apps-google-token, apps-google-endpoints, apps-google-manifest |
+| R3-25 | Google Workspace smart chips and Chat previews | Done | Google Workspace add-on (apps/google): Gmail compose picker that inserts the linked GIF, Calendar "Record for this meeting", smart chips for FormREC links in Docs, Sheets and Slides; the relay verifies the add-on's Google ID token. Not deployed to Google here | apps: src/apps/google.ts, apps/google/ (claimed by apps) | apps-google-token, apps-google-endpoints, apps-google-manifest |
| R3-26 | GIF thumbnail for email | Done | The GIF thumbnail for email: Share > Embed, the people-share invitation email (inline, linked) and the Gmail add-on insert | share; mail: send.ts; apps: google.ts (claimed by mail, apps) | mail-cross, apps-google-endpoints |
| R3-27 | Custom thumbnail | Done | Posters by their real names: edit-thumb.png, then documents-poster.png, then share's FFmpeg share-poster.jpg (made only when neither exists). The old quality switch and proxy media kind are gone; quality is the renditions (R3-33) | share: src/features/share/content.ts THUMB (claimed by share) | share-wire "items 16 and 17" |
| R3-28 | Download MP4 (creator) | Done | One export control in the player and on library cards: Download MP4 through edit's one exporter, with the export dialog's options and the package attached | documents: web/src/export-control.ts; edit: web/src/edit-download.ts (claimed by documents, edit) | leftovers-e2e "one export control" (CLS 0) |
@@ -200,7 +200,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R3-58 | Comment and reaction notifications | Done | Comment, mention, reaction and reply notices by email directly and in Slack with a link at the moment | mail: send.ts; apps: slack.ts (claimed by mail, apps) | mail-cross, apps-slack-engage, apps-host-relay |
| R3-59 | Email digests of views | Done | Fixed in 0.4.0: src/features/integrations/notices.ts, subscribed in start: share's shareNews (hook commit) shared (new shares) and view lines (viewed), share's Access.events code, engage's notification (commented for comment, reply and mention; notification for all but the digest) and digest. notification, digest and code are email-st... | engage: maybeDigest; integrations: src/features/integrations/index.ts (claimed by engage) | engage-handlers (digest counts, event); 0.4.0 fix desktopwire item 15: 'tests/integrations-notices.test.ts': every event made by its owner ('saveShare', 'appendEvent', 'Access.startCode', engage 'addComment', 'maybeDigest'), deliveries checked at a fake receiver. |
| R3-60 | Custom branding: logo and player colors | Done | Logo, name and accent per share from the workspace's branding (workspace/branding.json, the one owner), which share pages read and apply | share: /api/share/logo, /s-api/brand/logo, GET /s-api/:shareId/brand.css; workspace: policy.ts branding() (claimed by share, workspace) | share-listener "branding"; workspace-share-policy "branding saved in Settings, Branding is what share pages show" |
-| R3-61 | Remove Loom branding | Done | Hide FormRec branding | share: hideBranding (claimed by share) | share-listener "branding" |
+| R3-61 | Remove Loom branding | Done | Hide FormREC branding | share: hideBranding (claimed by share) | share-listener "branding" |
| R3-62 | Custom domains for video links | Done | Live share pages on the person's own domain, which Loom does not offer: a self-hosted relay (Docker, Cloud Run with a Cloud Storage volume, or a VPS behind Caddy) or a Cloudflare named tunnel on their host name; static exports keep hostedAt and a CNAME | relay: src/relay/, relay/Dockerfile, relay/cloudrun.md, relay/vps.md; tunnel: src/features/tunnel/; share: export.ts (claimed by relay, tunnel, share) | relay-publish, relay-e2e (plays, CLS 0), tunnel-origin, tunnel-supervisor |
| R3-63 | Video requests (ask someone to record) | Done | Fixed in 0.4.0: GET /r/<secret> (a request page that records the camera or screen with the microphone, or sends a WebM file; JSON when asked) and POST /r/<secret>?durationMs=¬e=&name= on the share listener, through engage's requestInfo and fulfilRequest. | engage: createRequest, fulfilRequest; share: listener.ts (claimed by engage) | engage-handlers "answers a video request with a new recording" (handler only); 0.4.0 fix sharewire item 3: 'tests/share-wire.test.ts' item 3 |
| R3-64 | Watch Later | Done | Watch later with .ics reminder | share: [data-sv-later] (claimed by share) | share-e2e (save, list, reminder) |
@@ -208,11 +208,11 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R3-66 | Global Admin Video View | Done | #/shared list with privacy change in place | share: [data-shared-row] (claimed by share) | share-e2e owner-shared-list.png; share-listener "lists shares" |
| R3-67 | Atlassian search visibility | Done | Search in the Shared list; noindex everywhere | share: GET /api/share/shares?q= (claimed by share) | share-listener (filter, noindex) |
| R3-68 | Record for agent (2025 to 2026, open beta) | Done | Unclaimed id; as R2-38 (agent prompt with frames, URLs, transcript; no console logs) | ai: formrec_agent_prompt (unclaimed) | ai-e2e "turns the recording into a prompt" |
-| R3-69 | Loom in Rovo MCP v2 (2026) | Done | FormRec's own MCP stands in for Rovo MCP and reaches further: stdio, local Streamable HTTP and the relay's OAuth 2.1 MCP; Settings, Agents gives a Connect snippet per client and lists connected remote agents with Revoke. Its 119 tools also cover Loom V2's object tools (list, batch content, share, comment or react, folders) and the Jira hand-off of Record for agent | agents: src/mcp/http.ts, src/agents/relay-clients.ts; relay: remote.ts; objects: src/features/objects (claimed by agents, relay, objects) | mcp-http-agents, remotemcp-tools, remotemcp-bridge, objects-mcp, agent-work-item |
+| R3-69 | Loom in Rovo MCP v2 (2026) | Done | FormREC's own MCP stands in for Rovo MCP and reaches further: stdio, local Streamable HTTP and the relay's OAuth 2.1 MCP; Settings, Agents gives a Connect snippet per client and lists connected remote agents with Revoke. Its 119 tools also cover Loom V2's object tools (list, batch content, share, comment or react, folders) and the Jira hand-off of Record for agent | agents: src/mcp/http.ts, src/agents/relay-clients.ts; relay: remote.ts; objects: src/features/objects (claimed by agents, relay, objects) | mcp-http-agents, remotemcp-tools, remotemcp-bridge, objects-mcp, agent-work-item |
## R4-library-admin-integrations.md: library, admin and integrations (R4-01 to R4-90)
-| id | Loom feature | status | what FormRec does | where (feature: main file) | evidence |
+| id | Loom feature | status | what FormREC does | where (feature: main file) | evidence |
| --- | --- | --- | --- | --- | --- |
| R4-01 | My Library tabs | Done | One library view with a rail: Videos, History, Archive, Trash, Folders, Spaces, Playlists, Tags, and two links: Team (the team library on a relay, #/library/team) and Shared with me (Shared and Notifications are in the app's sidebar, so the rail does not repeat them). #/library/<tab> opens a tab directly. Screenshots belong to the capture feature; imported meetings show under the Imported filter, and the toolbar's Zoom meetings filter lists the recordings the Zoom import brought in | library: web/src/library.ts rail [data-library-scope] and [data-library-link], web/src/library-model.ts Filters.zoom; route library-tab in web/src/features/library.ts; teamsync: web/src/features/teamsync.ts; zoom: GET /api/zoom/imported (claimed by library, teamsync, zoom) | library-e2e "draws hundreds of recordings once and filters them in place without moving anything"; library-e2e "empty states for an empty Trash and a search with no match"; zoom-e2e "the Library filters to Zoom meetings without shifting"; zoom-import "lists the recording under Zoom meetings"; library-folders.png |
| R4-02 | Library folders | Done | Folders, Move dialog, drag to folder | library: POST /api/library/folders, place (claimed by library) | library-store "nests folders"; library-routes "organises with folders" |
@@ -275,7 +275,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R4-59 | Microsoft Teams | Done | Teams Adaptive Card through a webhook | integrations: messages.ts teamsMessage (claimed by integrations) | integrations-routes "posts an Adaptive Card to Teams" |
| R4-60 | Gmail record button | Done | Email from the person's own account: SMTP (implicit TLS or STARTTLS, PLAIN, LOGIN, XOAUTH2), the Gmail API or Microsoft Graph with OAuth (PKCE, loopback, the person's own client); HTML and text, inline GIFs; Settings, Email and formrec_mail_test; the Gmail add-on inserts recordings in drafts | mail: src/mail/*, src/features/mail/*; apps: google.ts (claimed by mail, apps) | mail-smtp, mail-api, mail-cross, mail-e2e (CLS 0) |
| R4-61 | Quick Record button (Chrome ext) | Done | Record button on compose boxes in seven web apps, link inserted | extension: content/sites.js (claimed by extension, integrations) | extension-e2e "adds a record button to a GitHub compose box"; extension-github.png |
-| R4-62 | Link expanding / inline play (Chrome ext) | Done | Inline player cards for FormRec links | extension: content/sites.js scanLinks (claimed by extension) | extension-e2e; extension-manifest "finds links in text" |
+| R4-62 | Link expanding / inline play (Chrome ext) | Done | Inline player cards for FormREC links | extension: content/sites.js scanLinks (claimed by extension) | extension-e2e; extension-manifest "finds links in text" |
| R4-63 | Google Workspace and Chat | Done | As R3-25: the Google Workspace add-on's smart chips (title, poster, summary, duration) and Gmail insert, honouring preview privacy | apps: google.ts (claimed by apps) | apps-google-endpoints |
| R4-64 | Jira Cloud | Done | Jira REST v3 work item with ADF, or prefilled page | integrations: issues.ts (claimed by integrations) | integrations-routes "creates a Jira work item" |
| R4-65 | Bug reporting mode to Jira | Done | Issues carry the AI's issue text per service (ai.json outputs["issue-jira"/"issue-linear"/"issue-github"].text; a service with none takes the first issue output, else the summary) and the extension's Bug report sections (environment, console errors, failed requests) | integrations: src/features/integrations/subject.ts, links.ts issueBody, issues.ts; ai: heuristic.ts agentPrompt (claimed by integrations, ai) | integrations-routes (Jira gets the Jira text and not GitHub's, Linear falls back to Jira's, the GitHub prefilled link carries GitHub's); missing-bugreport "captures the tab, saves through the extension route, and reaches ai and integrations" |
@@ -285,7 +285,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R4-69 | Linear | Done | Linear GraphQL issueCreate or prefilled page | integrations: issues.ts (claimed by ai, integrations) | integrations-routes "creates a Linear issue through GraphQL" |
| R4-70 | GitHub and Figma AI outputs | Done | A real Figma and FigJam plugin (apps/figma) that lists recordings and places one frame per step with its picture, title and timestamped link, served through the relay or the tunnel behind a per-person token; the PNG zip stays. Not loaded into Figma here | apps: src/apps/figma.ts, apps/figma/; ai: figma.ts framePng (claimed by apps, ai) | apps-embeds-figma, apps-host-relay, apps-host-tunnel |
| R4-71 | Salesforce | Done | Salesforce: a Lightning web component that plays a share and shows views, completion and last viewed on Lead, Contact, Opportunity and Account pages, and a completed Task logged on the matching Contact or Lead when an identified viewer watches. Not deployed to an org here | apps: src/apps/salesforce.ts, apps/salesforce/ (claimed by apps) | apps-crm-salesforce, apps-crm-cross, apps-host-relay |
-| R4-72 | HubSpot | Done | HubSpot: a CRM card on Contact and Deal records (recordings watched, play links, Send a recording) and "Watched a FormRec" timeline events, beyond Loom's Quick Record button. Not uploaded to HubSpot here | apps: src/apps/hubspot.ts, apps/hubspot/ (claimed by apps) | apps-crm-hubspot, apps-crm-cross, apps-host-relay |
+| R4-72 | HubSpot | Done | HubSpot: a CRM card on Contact and Deal records (recordings watched, play links, Send a recording) and "Watched a FormREC" timeline events, beyond Loom's Quick Record button. Not uploaded to HubSpot here | apps: src/apps/hubspot.ts, apps/hubspot/ (claimed by apps) | apps-crm-hubspot, apps-crm-cross, apps-host-relay |
| R4-73 | Zendesk, GitLab, Intercom | Done | GitHub comments with the GIF, chapters and summary, GitLab notes with the MP4 inline, Linear attachment cards, a Jira Forge issue panel that plays the share, Zendesk and Intercom sidebars; protected shares post only the link | apps: github.ts, gitlab.ts, linear.ts, jira.ts, zendesk.ts, intercom.ts (claimed by apps) | apps-dev-*, apps-support-*, apps-host-relay |
| R4-74 | Calendly CTA | Done | Fixed in 0.4.0: The engage CTA editor (web/src/features/engage.ts) has a preset select [data-eg-cta-preset]: it fills the button text and the link's start, and Add checks the link against the preset (presetProblem). | integrations: cta-presets.ts; engage: web/src/features/engage.ts (CTA editor) (claimed by integrations) | integrations-units "checks scheduling links against their service"; 0.4.0 fix desktopwire item 23: 'tests/engage-e2e.test.ts' "comments at a moment ...": Calendly fills the fields, the home page is refused, a booking link is saved. |
| R4-75 | Calendar meeting notetaker (Google, Outlook) | Done | Calendars from an iCalendar link, Google Calendar or Microsoft Graph (OAuth PKCE, the person's own client); marked meetings are joined by the notetaker; the Calendar add-on opens the Meeting layout for an event | meetings: oauth.ts, calendars.ts; apps: google.ts (claimed by meetings, apps) | meetings-calendars, apps-google-endpoints |
@@ -293,7 +293,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| R4-77 | Embed options | Done | iframe embed, oEmbed (JSON and XML with size bounds), the GIF for email, the embed script, and automatic embeds through discovery and Open Graph video tags | share; integrations (claimed by integrations, share) | apps-embeds-oembed |
| R4-78 | Chameleon | Local equivalent | The hosted recorder SDK script (from any origin the app id allows) and the embed script work in any tool that can run a script or show an iframe, so a Chameleon step can launch the recorder or show the embed. L because nothing is specific to Chameleon and no test drove Chameleon | relay: src/relay/recsdk/; web/src/formrec-embed.ts; docs/recorder-sdk.md (claimed by relay) | recsdk-e2e (a page on another origin records through the SDK); not run inside Chameleon |
| R4-79 | Zapier | Done | Fixed in 0.4.0: src/features/integrations/notices.ts, subscribed in start: share's shareNews (hook commit) shared (new shares) and view lines (viewed), share's Access.events code, engage's notification (commented for comment, reply and mention; notification for all but the digest) and digest. notification, digest and code are email-st... | integrations: webhooks.ts, index.ts (claimed by integrations) | integrations-routes "signs deliveries, retries a 5xx"; integrations-units; 0.4.0 fix desktopwire item 15: 'tests/integrations-notices.test.ts': every event made by its owner ('saveShare', 'appendEvent', 'Access.startCode', engage 'addComment', 'maybeDigest'), deliveries checked at a fake receiver. |
-| R4-80 | Coda, Miro, Outlook mail add-in, Atlassian Home | Done | Loom documents none of Coda, Miro, an Outlook mail add-in or Atlassian Home; FormRec sends from Outlook through Microsoft Graph, has Zendesk and Intercom sidebar apps, and rich links, webhooks and ICS for the rest | mail: Graph transport; apps: zendesk.ts, intercom.ts (claimed by mail, apps) | mail-api, apps-support-* |
+| R4-80 | Coda, Miro, Outlook mail add-in, Atlassian Home | Done | Loom documents none of Coda, Miro, an Outlook mail add-in or Atlassian Home; FormREC sends from Outlook through Microsoft Graph, has Zendesk and Intercom sidebar apps, and rich links, webhooks and ICS for the rest | mail: Graph transport; apps: zendesk.ts, intercom.ts (claimed by mail, apps) | mail-api, apps-support-* |
| R4-81 | recordSDK | Done | As R1-55: the hosted recorder SDK with Standard and Custom UI, public app ids and origin checks, optional signed tokens and guest limits, TypeScript types; the LAN pairing SDK stays | integrations: recsdk.ts; relay: recsdk/ (claimed by integrations, relay) | recsdk-apps, recsdk-jwt, recsdk-types, recsdk-e2e |
| R4-82 | embedSDK | Done | formrec-embed.js; the oEmbed iframe and the Open Graph player point at the same /e/ page | share; integrations (claimed by integrations) | apps-embeds-oembed, share-listener |
| R4-83 | No public REST API | Done | docs/api.md is generated from the route lists, with a drift test | integrations: api-doc.ts (claimed by integrations) | integrations-sdk "is generated from the code and up to date" |
@@ -307,9 +307,9 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
## P1-family-parity.md: Form family gaps (P-01 to P-25)
-| id | Loom feature | status | what FormRec does | where (feature: main file) | evidence |
+| id | Loom feature | status | what FormREC does | where (feature: main file) | evidence |
| --- | --- | --- | --- | --- | --- |
-| P-01 | A recording as one portable file: the FormRec package | Done | .frec zip package with manifest, hardened import | documents: src/features/documents/zip.ts, package.ts (claimed by documents) | documents-zip, documents-package (round trip, refusals) |
+| P-01 | A recording as one portable file: the FormREC package | Done | .frec zip package with manifest, hardened import | documents: src/features/documents/zip.ts, package.ts (claimed by documents) | documents-zip, documents-package (round trip, refusals) |
| P-02 | Open from disk and the file association | Done | Fixed in 0.4.0: web/src/features/documents.ts listens for formrec:open-file and opens it as formrec://open?file= (documents' own openLink: POST /api/documents/open, then #/f/<id>). | documents: web/src/features/documents.ts; desktop: web/src/features/desktop.ts openLink (claimed by desktop, documents) | documents-e2e File > Open; cargo test files_become_open_links; 0.4.0 fix dedupe item 27: 'tests/dedupe-routes.test.ts' "item 27" (WMV through documents converted, MP4 by path copied, WebM, the library's Imported note, the recent list, a '.frec' still documents'); 'tests/documents-routes.test.ts'; 'tests/docu; 0.4.0 fix desktopwire item 10: 'tests/desktop-feature.test.ts' "a file the shell hands over is opened by documents and ends on the player": a real webm, the link built as links.rs builds it, handed over through 'desktop_ready', ends on '[data-view="pl |
| P-03 | Recent list of opened files, and the library as the family's Recent | Done | Fixed in 0.4.0: Home's Recent shows documents' recent list (GET /api/documents/recent) first, then the newest, six cards of one fixed size with posters (recentOrder). | documents: /api/documents/recent (claimed by documents) | documents-routes; documents-file-menu.png; 0.4.0 fix dedupe item 40: 'tests/dedupe-routes.test.ts' "item 40"; 'tests/dedupe-e2e.test.ts' "Home draws edit's posters in documents' recent order without moving anything" |
| P-04 | Unsaved takes are swept after 24 hours and cannot be recovered | Done | Unsaved takes never swept; recover or discard | studio: src/store/library.ts sweepOrphans (claimed by studio) | sessions-recovery "never removes a folder that holds a take" |
@@ -318,11 +318,11 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| P-07 | Reveal in Finder / Explorer | Done | Reveal in Finder, Explorer, Files | documents: service.ts revealCommand (claimed by documents, edit) | documents-routes (command per platform) |
| P-08 | Export a playable MP4 (and audio), through FormEncoder or FFmpeg | Done | Fixed in 0.4.0: Edit's is the one: ExportSchema takes layout (bubble, screen, camera, side) and startExport an abort signal; outputs are edit-v<n>-<h>p[-<layout>].<ext>. Documents is a thin front end: media.ts renderExport hands the dialog's format, layout and captions to edit (burn = edit's burnt captions, sidecar = edit's captionsSr... | documents: media.ts exportPlan; edit: media.ts buildGraph, handoff.ts (claimed by documents, edit) | documents-routes (ffprobe 1280x720); edit-api (h264 640x360); 0.4.0 fix exportwire item 13: 'edit-exportwire.test.ts' (a top-left size-5 square bubble found at 'bubbleRect(…, 640, 360)' by pixel, bottom right grey); 'edit-ops.test.ts' "reads effects.json in effects' own shape and places the bubble with bubbleRe; 0.4.0 fix exportwire item 24: 'edit-exportwire.test.ts' "documents' export is rendered by edit with its layout and sidecar captions" (side layout read back by pixel: screen left, camera right), "share's MP4 is edit's render under share's name"; 'docu |
| P-09 | Open in FormWav (audio), and the hand-off set beyond FormCut | Done | Edit's hand-off sends an export to FormEncoder over its MCP server (the encode tool) and to FormWav (formwav_import_audio, found from FORMWAV_MCP_URL or FORMWAV_ENGINE), loopback only, with each refusal and a target that is not running reported; FormCut kept. Run against fake MCP servers, not the real FormWav or FormEncoder | edit: src/features/edit/handoff.ts (claimed by edit) | edit-api "sends an export to FormEncoder over its MCP server, and reports a FormWav that is not running", "sends an export to FormWav over its MCP server, found from FORMWAV_ENGINE, and reports what FormWav refuses" |
-| P-10 | Deep links into FormRec | Done | Fixed in 0.4.0: The desktop calls GET /api/documents/deeplink?url= only (web/src/features/desktop.ts openLink, desktop-logic.ts readResolved reads the DeepLink shape); resolveLink and POST /api/desktop/link are removed; deeplink.ts accepts open?file= and open?path=; src-tauri/src/links.rs file_link emits open?file=. | desktop: src-tauri/src/links.rs, src/features/desktop/schema.ts resolveLink; documents: deeplink.ts (claimed by desktop, documents) | documents-deeplink; cargo test only_formrec_links_are_accepted; 0.4.0 fix desktopwire item 11: 'tests/documents-deeplink.test.ts' (the shell's file_link form and '?path='); 'tests/desktop-feature.test.ts' 'readResolved' with DeepLink values, "has no link reader of its own" (404); 'cargo test' of links.rs: 4 passed |
+| P-10 | Deep links into FormREC | Done | Fixed in 0.4.0: The desktop calls GET /api/documents/deeplink?url= only (web/src/features/desktop.ts openLink, desktop-logic.ts readResolved reads the DeepLink shape); resolveLink and POST /api/desktop/link are removed; deeplink.ts accepts open?file= and open?path=; src-tauri/src/links.rs file_link emits open?file=. | desktop: src-tauri/src/links.rs, src/features/desktop/schema.ts resolveLink; documents: deeplink.ts (claimed by desktop, documents) | documents-deeplink; cargo test only_formrec_links_are_accepted; 0.4.0 fix desktopwire item 11: 'tests/documents-deeplink.test.ts' (the shell's file_link form and '?path='); 'tests/desktop-feature.test.ts' 'readResolved' with DeepLink values, "has no link reader of its own" (404); 'cargo test' of links.rs: 4 passed |
| P-11 | Thumbnails, posters and the library card | Done | Fixed in 0.4.0: Documents makes no picture on save; its POSTER is edit-thumb.png; makePoster(library, rec) asks edit's thumbnail when there is none; the poster route answers { made, file: "edit-thumb.png" }; packages carry edit-thumb.png (an edit file). Share's link-preview JPEG is made from edit-thumb.png when present. Cards are anot... | documents: media.ts makePoster; edit: index.ts posters (claimed by documents, edit) | documents-routes (poster served); 0.4.0 fix dedupe item 28 (cards): 'tests/dedupe-routes.test.ts' "item 28" (edit's poster after a save, reported and served); 'tests/dedupe-e2e.test.ts' (posters on Home and library cards, layout shift 0); 0.4.0 fix exportwire item 28 (poster half): 'documents-routes.test.ts' (edit-thumb.png made from the saved event after an import, served as image/png, no documents-poster.png); 'edit-exportwire.test.ts' "the poster is edit's auto thumbnail" |
| P-12 | Import plain media and a "Files" contract in the docs | Done | Fixed in 0.4.0: The library's is the one importer. importVideoFile (src/features/library/index.ts) is called by documents' POST /api/documents/import and POST /api/documents/open for every video (packages stay with documents; kinds still come from the first bytes). The client's File > Open and window drop send videos to POST /api/libr... | documents: service.ts importVideo; library: media.ts (claimed by documents) | documents-routes; documents-e2e (dropped clip); 0.4.0 fix dedupe item 27: 'tests/dedupe-routes.test.ts' "item 27" (WMV through documents converted, MP4 by path copied, WebM, the library's Imported note, the recent list, a '.frec' still documents'); 'tests/documents-routes.test.ts'; 'tests/docu |
| P-13 | The installed app cannot be used as an MCP server | Done | formrec-desktop mcp and cli run the bundled node; Install the formrec command | desktop: src-tauri/src/packaged.rs (claimed by desktop) | cargo test mcp_runs_the_bundled_node_on_cli_js_with_the_args; no staged bundle run |
-| P-14 | FormPortal and FormCompiler cannot connect FormRec's MCP after install | Local equivalent | The agents kit registers the installed app binary (formrec-desktop mcp) as the launcher when it is on this computer, so a connected client works after install. FormCompiler's apps/formrec.json (formcompiler 0.13.0, branch feat/formrec) has agents.mcp true and states the launcher, with no mcp_launch: the family's open point Q9, the same for formMCP and FormRanker. L until the family decides Q9 | agents: src/agents/clients.ts (claimed by agents) | agents-kit "registers the installed app binary when it is there"; formcompiler_0130 apps/formrec.json read for this audit |
+| P-14 | FormPortal and FormCompiler cannot connect FormREC's MCP after install | Local equivalent | The agents kit registers the installed app binary (formrec-desktop mcp) as the launcher when it is on this computer, so a connected client works after install. FormCompiler's apps/formrec.json (formcompiler 0.13.0, branch feat/formrec) has agents.mcp true and states the launcher, with no mcp_launch: the family's open point Q9, the same for formMCP and FormRanker. L until the family decides Q9 | agents: src/agents/clients.ts (claimed by agents) | agents-kit "registers the installed app binary when it is there"; formcompiler_0130 apps/formrec.json read for this audit |
| P-15 | Connect agents from inside the app (Settings > Agents) | Done | Settings, Agents with Connect per client | agents: src/features/agents/index.ts (claimed by agents) | agents-kit "/api/agents"; settings-agents-*.png |
| P-16 | MCP tool surface: document verbs and hand-offs are web-only | Done | formrec_rename, formrec_delete, formrec_open_in_formcut, list filters; feature tools for the rest | agents: src/mcp/tools.ts (claimed by agents) | mcp-tools "rename, delete and Open in FormCut" |
| P-17 | Tool annotations and titles | Done | Titles and annotations on every core tool | agents: src/mcp/server.ts (claimed by agents) | mcp-tools "gives every core tool a title, full annotations" |
@@ -332,7 +332,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
| P-21 | Claude Code plugin | Done | .claude-plugin manifest and marketplace | agents: .claude-plugin/ (claimed by agents) | agents-kit plugin manifest test |
| P-22 | Skill quality gates, evals and repo-level agent files | Done | Skill gates, EVALS.json, Cursor rules | agents: src/agents/sync.ts (claimed by agents) | agents-kit "skill and plugin gates" |
| P-23 | The player link from a separately started MCP server | Done | playerBase read per call | agents: src/cli.ts (claimed by agents) | server-file.test; mcp-tools |
-| P-24 | Wording that ties FormRec to the Form family or to its own codebases | Done | General-recorder wording across docs, skills, guide | agents: files named (claimed by agents) | mcp-tools "leads the guide with any website" |
+| P-24 | Wording that ties FormREC to the Form family or to its own codebases | Done | General-recorder wording across docs, skills, guide | agents: files named (claimed by agents) | mcp-tools "leads the guide with any website" |
| P-25 | Walkthrough runner limits that block ordinary websites | Done | Fixed in 0.4.0: src/mcp/guide.ts includes WALKTHROUGH_FORMAT whole | runner: src/runner/ (claimed by runner) | runner-site "uses every new action", "formrec login saves a state"; runner-unit; 0.4.0 fix missing item 42 Guide format: 'tests/missing-apply.test.ts' "formrec_guide carries WALKTHROUGH_FORMAT whole"; 'tests/mcp-tools.test.ts', 'tests/mcp.test.ts' |
## After 0.9.0: what moved, the audit, and what is left
@@ -342,7 +342,7 @@ Three ids are claimed by no feature (R3-68, R4-87, R4-90); they are classified f
- All four desktop targets pass check and clippy again.
- The bridge's tool set is the owner's to narrow (R4-84).
- Picture guides put every step's picture, with its hotspot, into HTML, a Markdown zip, a PDF, a form.md page or a Confluence page (R2-48).
-- R2-41 now says what Loom's page says: its audio variables are deprecated from 2026-09-30. FormRec's walkthrough variants are its own answer.
+- R2-41 now says what Loom's page says: its audio variables are deprecated from 2026-09-30. FormREC's walkthrough variants are its own answer.
Beyond Loom, new in 0.9.0 (`docs/beyond-loom.md`):
- a live link viewers watch while the take records;
@@ -373,7 +373,7 @@ What stays open from 0.9.0:
- On Linux X11 the desktop app records the display a person picks directly with FFmpeg, with no system picker (R1-10).
- The Android app's tests and the iOS shared code's tests pass again on this machine, with Swift 6.4.2 and the Android SDK (R1-12, R1-13).
- The share page runs the app's own control bar and keys, one module, checked in Chromium and Firefox at 1190 by 628 and 1440 by 900 (R3-31, R3-32, R3-34, R3-35).
-- Loom's MCP moved to one object tool set on 2026-10-23, and Record for agent can open a Jira work item assigned to an agent: FormRec has both (R1-48, R2-38, R2-40, R3-69).
+- Loom's MCP moved to one object tool set on 2026-10-23, and Record for agent can open a Jira work item assigned to an agent: FormREC has both (R1-48, R2-38, R2-40, R3-69).
- Automatic zoom suggestions from clicks and typing; Loom lists auto-zoom as coming soon (R2-46).
- Beyond Loom: interactive demos, automatic redaction, live streaming, short clips, keystrokes on screen and scene chapters (`docs/beyond-loom.md`).
@@ -399,20 +399,20 @@ What stays open:
Each local equivalent, and why it is not Done:
1. R1-02 and R4-90, the native desktop app: built on Tauri 2 (floating bubble, controls, overlay, tray, global shortcuts), built as an AppImage and run on Linux with its microphone, its studio and the native display feed. Its Windows and macOS code compiles and is clippy clean, but its windows were not run on macOS or Windows here.
-2. R1-10, multiple displays: FormRec's Display panel picks a display and checks the capture against it. On Linux X11 FormRec records the picked display itself, with no picker (proven on Xvfb with two screens). On Wayland, macOS and Windows no web engine lets a page preselect a display and no native feed is built there, so the system picker still answers.
+2. R1-10, multiple displays: FormREC's Display panel picks a display and checks the capture against it. On Linux X11 FormREC records the picked display itself, with no picker (proven on Xvfb with two screens). On Wayland, macOS and Windows no web engine lets a page preselect a display and no native feed is built there, so the system picker still answers.
3. R1-12 and R1-13, iOS and Android: the phone page records and queues uploads.
- - Android: the app builds and its upload client is tested against a real FormRec (again in 0.8.0), but the capture itself needs a device or an emulator with KVM.
+ - Android: the app builds and its upload client is tested against a real FormREC (again in 0.8.0), but the capture itself needs a device or an emulator with KVM.
- iOS: the shared code builds and is tested on Linux (again in 0.8.0, Swift 6.4.2), but the app and its broadcast extension need Xcode.
4. R1-50 and R1-51, hiding desktop icons and Do Not Disturb: the plans run for real on Linux (XFCE, GNOME settings, dunst), recover after a crash and compile for macOS and Windows. They were not run on macOS, Windows or a GNOME Shell session here.
-5. R1-37 and R4-52, plan limits: FormRec has none; a person can set their own limit, which stops the take (proven in Chromium) or warns.
+5. R1-37 and R4-52, plan limits: FormREC has none; a person can set their own limit, which stops the take (proven in Chromium) or warns.
6. R4-76, embeds in Notion, Trello and Medium:
- form.md takes Notion's place and gets a real page. With "Video in the page: the video itself" the page carries the recording's MP4 as a video block and plays it; by default it shows the link as a card, since form.md plays an embed only for its built-in providers.
- Trello and Medium were not run here.
7. R4-78, Chameleon: the recorder SDK and the embed work in any tool that runs a script or shows an iframe; nothing is specific to Chameleon.
-8. P-14, connecting MCP after install: FormRec registers the installed app as its own launcher; FormCompiler's `mcp_launch` is the Form family's open point Q9.
+8. P-14, connecting MCP after install: FormREC registers the installed app as its own launcher; FormCompiler's `mcp_launch` is the Form family's open point Q9.
9. Not applicable:
- - R2-41, personalized video: Loom's page says its audio variables are deprecated from 2026-09-30 for all plans. FormRec's walkthrough variants are its own answer.
- - R4-46 to R4-49, R4-51, R4-53 and R4-87: Loom's cloud certifications, uptime, plans and account migration. FormRec states what it does instead.
+ - R2-41, personalized video: Loom's page says its audio variables are deprecated from 2026-09-30 for all plans. FormREC's walkthrough variants are its own answer.
+ - R4-46 to R4-49, R4-51, R4-53 and R4-87: Loom's cloud certifications, uptime, plans and account migration. FormREC states what it does instead.
Not verified here (Linux, headless Chromium and Firefox, no real accounts):
- the desktop app's windows on macOS and Windows;
@@ -452,7 +452,7 @@ Each item is checked against Loom's own pages in `docs/beyond-loom.md`.
On the release tree, `npm test` ran 339 files and 2,496 tests: 2,495 passed, 1 was skipped and none failed. The skip is the WebKit take in `mp4-ingest-browser`, because Playwright's WebKit has no MediaRecorder.
Every tool the suite needs was installed for this run. These ran for real:
-- the Android app and the iOS shared code against a real FormRec;
+- the Android app and the iOS shared code against a real FormREC;
- the real form.md server;
- the extension's real tab capture with real clicks and keys;
- the desktop shell for all four targets (`desktop-targets`);
diff --git a/docs/analytics.md b/docs/analytics.md
index 244bf1f..a1f7b5f 100644
--- a/docs/analytics.md
+++ b/docs/analytics.md
@@ -1,6 +1,6 @@
# Analytics export
-FormRec writes one stable, versioned analytics schema (version 1) to files, to your own PostgreSQL, BigQuery or
+FormREC writes one stable, versioned analytics schema (version 1) to files, to your own PostgreSQL, BigQuery or
Snowflake, or to a webhook. A query written once works against every destination. No new dependency is used: the
PostgreSQL wire protocol runs over `node:net` and `node:tls`, and the BigQuery and Snowflake JWTs are signed with
`node:crypto`.
diff --git a/docs/beyond-loom.md b/docs/beyond-loom.md
index 627e789..147e4d8 100644
--- a/docs/beyond-loom.md
+++ b/docs/beyond-loom.md
@@ -1,12 +1,12 @@
# Beyond Loom
-What FormRec does that Loom's own pages do not describe. Each section says what it does for a person, how to use it (the place in the app, the route, the MCP tool), what it needs, what was not verified, and what Loom offers.
+What FormREC does that Loom's own pages do not describe. Each section says what it does for a person, how to use it (the place in the app, the route, the MCP tool), what it needs, what was not verified, and what Loom offers.
How the Loom lines are worded. "Loom does not" appears only where a Loom page says so and the page is named. Where nothing was found, the line says "not found in Loom's documentation": that is a statement about what was read on 10 November 2026, not about the product. The pages were read by the 0.8.0 research pass; the three that carry a "does not" or "coming soon" claim (the live screen recorder page, the blur page and the editing page) were opened again while writing this file. The other URLs below are built from the research notes and were not opened again. The 0.9.0 sections below were checked by a second research pass on 11 November 2026, from Loom's and Atlassian's own pages, each section naming the pages. Loom changes; check before quoting.
Loom sources: support.atlassian.com/loom/docs/ (called SA here), atlassian.com/blog/loom/ (AB), atlassian.com/software/loom (AS), loom.com, developer.atlassian.com.
-System tools FormRec calls and never ships: FFmpeg (needed by most of what follows), Tesseract (only for reading text in pictures, optional), an X11 session (only for the native display feed, see `docs/parity/desktop.md`). Each is found at run time and the feature says what is missing.
+System tools FormREC calls and never ships: FFmpeg (needed by most of what follows), Tesseract (only for reading text in pictures, optional), an X11 session (only for the native display feed, see `docs/parity/desktop.md`). Each is found at run time and the feature says what is missing.
## New in 0.9.0
@@ -18,7 +18,7 @@ For a person: while a take records, viewers watch it at a link. The owner turns
How: Live panel in the studio's side column, "Turn link on". Viewers get `/l/` on the share listener and the tunnel. Routes: owner `POST`, `GET` and `DELETE /api/live/:sessionId/link`; viewers `GET /l/:liveId`, `GET /s-api/:liveId/live/state`, `GET /s-api/:liveId/live/` (these names only), `POST /s-api/:liveId/unlock`. No MCP tool was added for the link; the destinations keep `formrec_live_destinations` and `formrec_live_status`. The picture is HLS with fragmented MP4 segments of 2 seconds in a window of 6, from one more FFmpeg that copies the composed feed the destinations get, so it is not encoded twice. The page plays it through Media Source with a loader of our own (no library) and uses the browser's own HLS where Media Source is missing. The segments live in a folder of the take, deleted as the window moves and removed when the take ends; nothing of them is kept in the recording.
-The key: the destination's FFmpeg publishes to `rtmp://127.0.0.1:/f/`, a loopback listener opened for that one start (a random port, one connection, a one-time name). FormRec connects to the real server itself, does the TLS for rtmps, and passes the stream through with the application, address and stream name in the RTMP commands replaced by the real ones. `ps` and `/proc//environ` of every process were read every 30 ms during the tests and never held the key. A local user who connects to the loopback port before FFmpeg does, with the token read from `ps`, can publish to the destination; they still cannot read the key.
+The key: the destination's FFmpeg publishes to `rtmp://127.0.0.1:/f/`, a loopback listener opened for that one start (a random port, one connection, a one-time name). FormREC connects to the real server itself, does the TLS for rtmps, and passes the stream through with the application, address and stream name in the RTMP commands replaced by the real ones. `ps` and `/proc//environ` of every process were read every 30 ms during the tests and never held the key. A local user who connects to the loopback port before FFmpeg does, with the token read from `ps`, can publish to the destination; they still cannot read the key.
The pause: a paused take records nothing, so the feed used to stop and destinations saw a dead connection. Now a slate (the last picture, dimmed, with a pause mark and silence) is encoded the same way and the timestamps keep growing across the hand-over, so destinations and the link carry on.
@@ -46,7 +46,7 @@ For a person or an agent: a walkthrough that declares variables (`{{name}}` in i
How: `formrec variants WALKTHROUGH.json --values FILE` (or `--recording ID` to use the walkthrough kept with a recording), the MCP tool `formrec_variants`, and the Variants panel on a walkthrough recording in the player, which takes pasted CSV or JSON, shows progress and has a Cancel. Routes: `GET /api/variants/recordings/:id`, `POST /api/variants/recordings/:id/run`, `GET /api/variants/jobs/:job`, `POST /api/variants/jobs/:job/cancel`. At most 50 sets a call, one run at a time.
-How this relates to Loom: it is not Loom's personalised video. Loom's "Personalize videos at scale" makes a spoken name a variable and fills values by hand or from a CSV of up to 100 rows, making copies with text to speech. Loom's own page now carries a banner that audio variables are deprecated from all plans on 30 September 2026, with earlier videos staying; no notice that the whole feature is retired was found (https://support.atlassian.com/loom/docs/personalize-videos-at-scale/, https://www.atlassian.com/software/loom/ai). FormRec has no spoken variables and makes no audio: its variables change what a walkthrough shows and its caption words, in a headless browser run by an agent or a script. So it covers the case of one script for many accounts, products or customers, for walkthroughs, and nothing of a person's own recording with a voice.
+How this relates to Loom: it is not Loom's personalised video. Loom's "Personalize videos at scale" makes a spoken name a variable and fills values by hand or from a CSV of up to 100 rows, making copies with text to speech. Loom's own page now carries a banner that audio variables are deprecated from all plans on 30 September 2026, with earlier videos staying; no notice that the whole feature is retired was found (https://support.atlassian.com/loom/docs/personalize-videos-at-scale/, https://www.atlassian.com/software/loom/ai). FormREC has no spoken variables and makes no audio: its variables change what a walkthrough shows and its caption words, in a headless browser run by an agent or a script. So it covers the case of one script for many accounts, products or customers, for walkthroughs, and nothing of a person's own recording with a voice.
Needs: Playwright's Chromium, as any walkthrough. A value is only ever pasted into a string and may not change the site of an absolute address.
@@ -60,7 +60,7 @@ The audit of this release also found, and fixed, that the bridge's player links
Needs: the relay bridge on. Not verified: against a real hosted agent; the check is a real MCP server and client in the tests and Chromium for the Settings controls.
-Loom: administrators grant read, write or search access per app by toolset, and Loom's tools sit in the `read_loom` and `write_loom` groups; switching off one named tool was not found (the Atlassian Rovo MCP server pages on supported tools and on security and access policies). FormRec's choice is the one owner's, not an administrator's policy for an organization, and it adds the per-tool deny list.
+Loom: administrators grant read, write or search access per app by toolset, and Loom's tools sit in the `read_loom` and `write_loom` groups; switching off one named tool was not found (the Atlassian Rovo MCP server pages on supported tools and on security and access policies). FormREC's choice is the one owner's, not an administrator's policy for an organization, and it adds the per-tool deny list.
### Redaction, wider
@@ -72,7 +72,7 @@ Loom: manual blur only, as in the 0.8.0 section.
### Picture guides
-This is parity with Loom's document workflow, which goes further in some ways; it is not something Loom lacks. Loom's "Write a text document" AI workflow (SOP, step-by-step guide and other templates) adds screenshots from the recording into the relevant steps, and gives none for trimmed or stitched videos; "Auto-add visuals to step-by-step guides" (clips, GIFs or screenshots) is listed as coming soon (https://support.atlassian.com/loom/docs/use-ai-workflows/, https://www.atlassian.com/blog/loom/loom-ai-workflows, https://www.atlassian.com/software/loom/ai). FormRec's ai documents already put a frame at each step (R2-34, R2-36, R2-48).
+This is parity with Loom's document workflow, which goes further in some ways; it is not something Loom lacks. Loom's "Write a text document" AI workflow (SOP, step-by-step guide and other templates) adds screenshots from the recording into the relevant steps, and gives none for trimmed or stitched videos; "Auto-add visuals to step-by-step guides" (clips, GIFs or screenshots) is listed as coming soon (https://support.atlassian.com/loom/docs/use-ai-workflows/, https://www.atlassian.com/blog/loom/loom-ai-workflows, https://www.atlassian.com/software/loom/ai). FormREC's ai documents already put a frame at each step (R2-34, R2-36, R2-48).
What 0.9.0 adds to that: every shown step of a recording with steps gets a numbered entry with its picture (the demo's step picture, with the hotspot drawn in), title and words, as one self-contained HTML page, Markdown with an images folder (a zip), a PDF, a page in form.md with the pictures uploaded through its files API, or a page in Confluence with them attached. A step hidden in the interactive demo is left out of the guide.
@@ -126,7 +126,7 @@ Needs: FFmpeg and Tesseract for layer 3 (Tesseract is optional; without it the s
Not verified: non-English OCR, frames sampled closer than one second, a composed studio layout. What the page script cannot cover: text drawn in a canvas or an image (the frame scan is the layer for those), the first characters of a key typed into a field before it looks like one (an unprefixed random key), and one frame when an insertion takes longer than 80 ms to scan. Keys and card numbers in a step's words, title, the summary, the goal and a goto address are masked; an email in a step's words is left, since it is often meant to be read. Baselines recorded before 0.8.0 still hold the page text until re-recorded.
-Loom: the person picks page elements to blur in the Chrome extension, DOM-based sites only, on Business, Business + AI and Enterprise plans; Google Docs, Notion and Figma are not supported (https://support.atlassian.com/loom/docs/blur-sensitive-information/, opened again for this file). Automatic detection and transcript redaction were not found in Loom's documentation (also https://support.atlassian.com/loom/docs/choose-your-recording-mode/, https://support.atlassian.com/loom/docs/loom-ai-features/). FormRec's manual blur (annotate, R1-49) is the counterpart of Loom's; layers 1 to 3 are the additions.
+Loom: the person picks page elements to blur in the Chrome extension, DOM-based sites only, on Business, Business + AI and Enterprise plans; Google Docs, Notion and Figma are not supported (https://support.atlassian.com/loom/docs/blur-sensitive-information/, opened again for this file). Automatic detection and transcript redaction were not found in Loom's documentation (also https://support.atlassian.com/loom/docs/choose-your-recording-mode/, https://support.atlassian.com/loom/docs/loom-ai-features/). FormREC's manual blur (annotate, R1-49) is the counterpart of Loom's; layers 1 to 3 are the additions.
### Live streaming while recording
@@ -180,7 +180,7 @@ Loom: auto chapters are based on the transcript, need one, and are skipped for r
### Jira work items and Loom MCP V2 objects
-Added in 0.8.0 to match Loom's October 2026 changes, not beyond them. `formrec_agent_prompt_to_jira` (route `POST /api/integrations/agent-work-item/:recording`, a row in the player's Prompt for agent dialog) sends a recording's agent prompt to Jira as a work item, assigned to an agent account or a person found with Jira's Find users. The `objects` tools (`formrec_objects_list`, `formrec_objects_content` up to 20 per call, `formrec_object_share`, `formrec_object_interact`, `formrec_folder_create`, `formrec_folder_update`, `formrec_folder_delete`) follow the shape of Loom MCP V2. Not verified against a real Jira; the batch limit of 20 is FormRec's. Loom: https://developer.atlassian.com/cloud/rovo-mcp/changelog/ (2026-10-16 and 2026-10-23), https://www.atlassian.com/blog/loom/record-for-agents (2026-10-22).
+Added in 0.8.0 to match Loom's October 2026 changes, not beyond them. `formrec_agent_prompt_to_jira` (route `POST /api/integrations/agent-work-item/:recording`, a row in the player's Prompt for agent dialog) sends a recording's agent prompt to Jira as a work item, assigned to an agent account or a person found with Jira's Find users. The `objects` tools (`formrec_objects_list`, `formrec_objects_content` up to 20 per call, `formrec_object_share`, `formrec_object_interact`, `formrec_folder_create`, `formrec_folder_update`, `formrec_folder_delete`) follow the shape of Loom MCP V2. Not verified against a real Jira; the batch limit of 20 is FormREC's. Loom: https://developer.atlassian.com/cloud/rovo-mcp/changelog/ (2026-10-16 and 2026-10-23), https://www.atlassian.com/blog/loom/record-for-agents (2026-10-22).
## Beyond Loom since earlier releases
diff --git a/docs/integrations.md b/docs/integrations.md
index 6c576b2..a3c925b 100644
--- a/docs/integrations.md
+++ b/docs/integrations.md
@@ -1,6 +1,6 @@
# Integrations
-FormRec reaches the tools people work in two ways. It sends a recording out through each tool's own public door: an
+FormREC reaches the tools people work in two ways. It sends a recording out through each tool's own public door: an
incoming webhook, a REST API with a token you create, or a link that opens the tool with the recording filled in. And
twelve apps run inside the other products (below), so a link pasted there previews, a comment becomes a notification,
a view reaches the CRM. Everything is set up in Settings, Integrations, and used from the player's Send to menu or by
@@ -15,7 +15,7 @@ web component, a Figma plugin...) lives in `apps//` of the repository with a
address, because the other product has to call an HTTPS address:
- your relay, when one is connected (Settings, Relay), or
-- the public link (the tunnel) while FormRec and the tunnel run. Nothing needs a relay for that: the apps work from this
+- the public link (the tunnel) while FormREC and the tunnel run. Nothing needs a relay for that: the apps work from this
computer's own data while the tunnel is on, and stop when it stops.
Settings, Integrations, Apps lists the twelve in that order. Each has its description, install folder and guide, its
@@ -48,7 +48,7 @@ saved value when you save other fields.
| GitLab | a prefilled `-/issues/new` page (the GitLab app previews links inside GitLab) | the same page |
| form.md | the Form family workspace, with your personal API token: `POST /api/pages` makes a page titled by the recording and `PUT /api/pages/{id}/markdown` writes the share link on its own line (a bookmark card), the summary, the chapters as links into the share page, the tasks and, if you choose, the transcript; sending again replaces the body of the same page. With "Video in the page" set to the video itself, the share's MP4 goes up through `POST /api/files` and the page opens with it as a video block that plays in form.md (uploaded again only when the recording changed; over form.md's upload limit the page keeps the card and the status says why) | Download Markdown, paste the link on its own line |
| Confluence Cloud | `POST /wiki/rest/api/content` in a space (storage format) | Download HTML or Markdown |
-| Email | your mail app (`mailto:`) or Gmail's compose page, with the link, the summary, the chapters and the poster or GIF link; Copy as rich link pastes the poster linked to the recording into a rich mail editor | FormRec does not send mail itself (no SMTP) |
+| Email | your mail app (`mailto:`) or Gmail's compose page, with the link, the summary, the chapters and the poster or GIF link; Copy as rich link pastes the poster linked to the recording into a rich mail editor | FormREC does not send mail itself (no SMTP) |
| LinkedIn, X, Facebook | their share intents with the link | |
| Salesforce, HubSpot, Zendesk, Intercom | their apps (above); Copy as rich link (HTML with the poster, or Markdown) and outgoing webhooks also work for records, tickets and conversations | |
| Google Docs, Slides, Chat | the Google Workspace app (above); the share page's Open Graph tags give link previews everywhere else | |
@@ -99,16 +99,16 @@ A delivery that cannot connect, times out, or gets a 5xx or 429 is retried after
Add your calendar's iCalendar address (Google Calendar: Settings, your calendar, Secret address in iCal format;
Outlook: Publish a calendar, ICS link; any `webcal://` link) or an `.ics` file. `#/meetings` lists the next week's
meetings with their join link and a Record button that opens the studio's Meeting mode,
-`#/record?mode=audio&meeting=`. With reminders turned on (a browser notification permission), FormRec reminds you
+`#/record?mode=audio&meeting=`. With reminders turned on (a browser notification permission), FormREC reminds you
the number of minutes you chose before each meeting; the notification opens the Meeting mode. Loom sends a bot into the
-call; FormRec records on your computer and joins nothing for you.
+call; FormREC records on your computer and joins nothing for you.
Recurring meetings: DAILY and WEEKLY rules (INTERVAL, COUNT, UNTIL, BYDAY) are expanded, with EXDATE; other rules show
their first date. Times with a TZID are read in this computer's time zone.
-## Recorder SDK: a web page records itself into FormRec
+## Recorder SDK: a web page records itself into FormREC
-Turn on Settings, Integrations, Recorder SDK. FormRec then listens on `http://127.0.0.1:8774` (this computer only)
+Turn on Settings, Integrations, Recorder SDK. FormREC then listens on `http://127.0.0.1:8774` (this computer only)
for pages you pair. In your page:
```html
@@ -116,7 +116,7 @@ for pages you pair. In your page:
```
-`formrec-embed.js` is served by the recorder SDK listener and by FormRec itself (`/formrec-embed.js`); copy it next to
+`formrec-embed.js` is served by the recorder SDK listener and by FormREC itself (`/formrec-embed.js`); copy it next to
your share pages to host it. Messages between the page and the player: the player posts
`{ source: 'formrec-player', event, ms, durationMs }` to its parent (`ready`, `play`, `pause`, `timeupdate`,
`seeked`, `ended`); the SDK posts `{ source: 'formrec-embed', command: 'play' | 'pause' | 'seek', ms }` to the player.
@@ -166,7 +166,7 @@ The SDK reads only messages from its own iframe's window and origin.
## The local API
-FormRec's whole API is documented in docs/api.md, generated from the code. Loom has no open API; FormRec's is the one
+FormREC's whole API is documented in docs/api.md, generated from the code. Loom has no open API; FormREC's is the one
its own client uses, on this computer, behind the run's token.
## MCP tools
diff --git a/docs/parity/agents.md b/docs/parity/agents.md
index 65a5e0b..deac490 100644
--- a/docs/parity/agents.md
+++ b/docs/parity/agents.md
@@ -2,9 +2,9 @@
Owner: the `agents` build agent, branch `feat040/agents`. Rows from `P1-family-parity.md` (P-14 to P-24) and the Loom rows R2-40 and R4-84 (Loom's MCP tools).
-| Row | Loom or family feature | What FormRec does | Where | Verified |
+| Row | Loom or family feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
-| P-14 | FormPortal and FormCompiler connect an app's MCP after install | FormRec's side is ready: `formrec agents` registers the installed app's `formrec-desktop mcp` when found (P-20), and the harness skill names the FormPortal path. The FormCompiler change is cross-repo; the exact JSON is below for the step that applies it. Checked for 0.5.0 against formcompiler 0.13.0 (branch `feat/formrec`): its `apps/formrec.json` has `"agents": {"skills": ".claude/skills", "mcp": true}` and its notes name `formrec-desktop mcp` as the launcher, with no `mcp_launch`, the family's open point Q9 (the same for formMCP and FormRanker). Local equivalent until the family decides Q9. | `src/agents/clients.ts` (`desktopCandidates`, `serverEntry`), `.claude/skills/formrec-harness/sub-skills/session-and-connection/SUB-SKILL.md`, this file | tests/agents-kit.test.ts "registers the installed app binary when it is there"; formcompiler 0.13.0 `apps/formrec.json` read |
+| P-14 | FormPortal and FormCompiler connect an app's MCP after install | FormREC's side is ready: `formrec agents` registers the installed app's `formrec-desktop mcp` when found (P-20), and the harness skill names the FormPortal path. The FormCompiler change is cross-repo; the exact JSON is below for the step that applies it. Checked for 0.5.0 against formcompiler 0.13.0 (branch `feat/formrec`): its `apps/formrec.json` has `"agents": {"skills": ".claude/skills", "mcp": true}` and its notes name `formrec-desktop mcp` as the launcher, with no `mcp_launch`, the family's open point Q9 (the same for formMCP and FormRanker). Local equivalent until the family decides Q9. | `src/agents/clients.ts` (`desktopCandidates`, `serverEntry`), `.claude/skills/formrec-harness/sub-skills/session-and-connection/SUB-SKILL.md`, this file | tests/agents-kit.test.ts "registers the installed app binary when it is there"; formcompiler 0.13.0 `apps/formrec.json` read |
| P-15 | FormCut Settings > Connections, `/api/agents/install` | Settings > Agents: one block per client (Claude Code, Codex, Cursor, Claude Desktop, VS Code) with the exact text, Copy, Connect (writes it with a backup) and a state badge; the server that runs; the tool list from the live server. `GET /api/agents`, `POST /api/agents/install {client}` behind the token. | `src/features/agents/index.ts`, `web/index.html` (`[data-settings-page="agents"]`, `[data-agents-client]`, `[data-agents-state]`, `[data-agents-connect]`, `[data-agents-result]`, `[data-settings-value="agents-*"]`), `web/src/features/agents.ts`, `web/src/settings.ts`, `web/styles/agents.css` | tests/agents-kit.test.ts "/api/agents" (token, listing, connect); screenshots `settings-agents-dark.png`, `-light.png`, `-connected.png`; layout shift 0 |
| P-16 | FormCut and form.md tool surface | Core tools added: `formrec_rename`, `formrec_delete` (destructive, `confirm`), `formrec_open_in_formcut`; `formrec_list` gains `query`, `source`, `limit`. Export, duplicate, package/import, FormWav, studio status are the library, documents, edit and studio feature agents' tools (their modules), listed in `feature-tools.md` from the live server. | `src/mcp/server.ts`, `src/mcp/tools.ts` | tests/mcp-tools.test.ts "rename, delete and Open in FormCut" |
| P-17 | Titles and annotations on every tool | Every core tool has a `title` and all four hints; `toolsMarkdown` derives "Changes anything" from the annotations only; presets `READ_ONLY`, `WRITES`, `UPDATES`, `DESTRUCTIVE`, `OPEN_WORLD` for features. | `src/mcp/server.ts`, `src/mcp/reply.ts`, `src/agents/sync.ts` (`changes`) | tests/mcp-tools.test.ts "gives every core tool a title, full annotations..." |
@@ -14,8 +14,8 @@ Owner: the `agents` build agent, branch `feat040/agents`. Rows from `P1-family-p
| P-21 | Claude Code plugin | `.claude-plugin/plugin.json` (both skills, `mcpServers.formrec`: `node ${CLAUDE_PLUGIN_ROOT}/dist/src/cli.js mcp`) and `marketplace.json`; checked by `agents sync --check`. The plugin needs the checkout built. | `.claude-plugin/`, `src/agents/sync.ts` (`pluginProblems`) | tests/agents-kit.test.ts "the plugin manifest..." and the gate tests |
| P-22 | Skill gates, EVALS.json, Cursor rules | Gates in `sync`: name 64, description 1024, lower-case name, no XML tags, unquoted colons, emoji, em dashes, tags outside code, 200 files, 30 MB, SKILL.md 500 lines, no archives; `EVALS.json` for both skills (website prompts included); `.cursor/rules/formrec.mdc`. | `src/agents/sync.ts` (`skillProblems`, `frontMatterProblems`), `.claude/skills/*/EVALS.json`, `.cursor/rules/formrec.mdc` | tests/agents-kit.test.ts "skill and plugin gates"; `npm run agents:check` exit 0 |
| P-23 | Player link from a separately started MCP server | Already fixed on this branch (commit aa70bfe): `playerBase` in `src/cli.ts` reads `linkPort` from `src/store/server-file.ts` on every call and the MCP server gets the function. Feature tools get the same through `FeatureMcpDeps.playerBase`. Nothing further needed. | `src/cli.ts`, `src/mcp/tools.ts` (`resolvePlayerBase`) | existing tests/server-file.test.ts; tests/mcp-tools.test.ts checks `player` per call |
-| P-24 | "Only for Form apps / code" wording | Rewritten so FormRec reads as a general recorder for any app, website or desktop, like Loom: README (top, wording, MCP), CLAUDE.md, AGENTS.md, docs/DESIGN.md (lines 19 and 51), `src/mcp/guide.ts` (website example first, code anchors optional), tool descriptions, `src/cli.ts` help, `web/src/home.ts` hero, Settings > Agents text, both skills (descriptions, harness loop, walkthroughs, concepts with a no-code example and `no-codebase` as normal, studio-and-guests, skillset intro). The player's primary action (P-24 item 12) belongs to the player and share/edit feature agents. | files named | tests/mcp-tools.test.ts "leads the guide with any website"; tests/agents-kit.test.ts help text; harness EVALS.json website prompts |
-| R2-40 | Loom tools in Atlassian MCP | Local equivalent: FormRec's own MCP server for Claude Code, Codex, Cursor, Claude Desktop and VS Code; read a recording's metadata and chapters (`formrec_get`), list and search (`formrec_list`), organize (`formrec_rename`, `formrec_delete`); transcripts, comments and folders come from those features' tools in the same server. Transport: stdio; Streamable HTTP on loopback (bearer token, Host and Origin checks) inside the app and with `formrec mcp --http`; and on a relay at `/mcp` behind OAuth 2.1 (PKCE, protected resource and authorization server metadata, dynamic client registration, rotating tokens) with read and write tools over published recordings within each share's privacy and the person's role (`formrec_relay_*`); the owner's `/mcp/bridge` reaches the full local tool set through an outbound signed long poll. | `src/mcp/` (`http.ts`, `token.ts`, `server.ts`), `src/agents/`; `src/relay/oauth.ts`, `remote.ts`, `mcp-tools.ts`, `bridge.ts` | tests/mcp-tools.test.ts, tests/agents-kit.test.ts, mcp-http-server, mcp-http-agents, mcp-http-app, remotemcp-oauth, remotemcp-tools, remotemcp-bridge (audit run: passed). Not run against a real Claude, ChatGPT or Cursor client over OAuth. |
+| P-24 | "Only for Form apps / code" wording | Rewritten so FormREC reads as a general recorder for any app, website or desktop, like Loom: README (top, wording, MCP), CLAUDE.md, AGENTS.md, docs/DESIGN.md (lines 19 and 51), `src/mcp/guide.ts` (website example first, code anchors optional), tool descriptions, `src/cli.ts` help, `web/src/home.ts` hero, Settings > Agents text, both skills (descriptions, harness loop, walkthroughs, concepts with a no-code example and `no-codebase` as normal, studio-and-guests, skillset intro). The player's primary action (P-24 item 12) belongs to the player and share/edit feature agents. | files named | tests/mcp-tools.test.ts "leads the guide with any website"; tests/agents-kit.test.ts help text; harness EVALS.json website prompts |
+| R2-40 | Loom tools in Atlassian MCP | Local equivalent: FormREC's own MCP server for Claude Code, Codex, Cursor, Claude Desktop and VS Code; read a recording's metadata and chapters (`formrec_get`), list and search (`formrec_list`), organize (`formrec_rename`, `formrec_delete`); transcripts, comments and folders come from those features' tools in the same server. Transport: stdio; Streamable HTTP on loopback (bearer token, Host and Origin checks) inside the app and with `formrec mcp --http`; and on a relay at `/mcp` behind OAuth 2.1 (PKCE, protected resource and authorization server metadata, dynamic client registration, rotating tokens) with read and write tools over published recordings within each share's privacy and the person's role (`formrec_relay_*`); the owner's `/mcp/bridge` reaches the full local tool set through an outbound signed long poll. | `src/mcp/` (`http.ts`, `token.ts`, `server.ts`), `src/agents/`; `src/relay/oauth.ts`, `remote.ts`, `mcp-tools.ts`, `bridge.ts` | tests/mcp-tools.test.ts, tests/agents-kit.test.ts, mcp-http-server, mcp-http-agents, mcp-http-app, remotemcp-oauth, remotemcp-tools, remotemcp-bridge (audit run: passed). Not run against a real Claude, ChatGPT or Cursor client over OAuth. |
| R4-84 | Loom MCP tools read_loom / write_loom | Same as R2-40: read (list, get, demos, validate) and write (record, rename, delete, hand off) as core tools, with titles, annotations and structured output; features add comments, reactions, share, folders, upload and publish through `reply.ts`; the harness reference lists them from the live server (`feature-tools.md`). On a relay the read tools list, search, get, transcript, comments and insights, and the write tools comment and react, each needing the grant's `formrec.read` or `formrec.write` scope. | `src/mcp/reply.ts`, `.claude/skills/formrec-harness/references/feature-tools.md`; `src/relay/mcp-tools.ts` | tests/mcp-tools.test.ts "the reply helper features share"; `npm run agents:check`; remotemcp-tools, remotemcp-bridge, mcp-http-server |
| R4-85 | Record for agents | A recording becomes a structured prompt for an agent (steps, clicks, URLs, transcript, target-aware); `formrec_agent_prompt` and the player's agent prompt output; the runner records from a goal (`formrec_inspect_page`). Same as R2-38 (ai feature). | `src/features/ai/heuristic.ts` `agentPrompt`, `src/features/ai/index.ts` `formrec_agent_prompt`; runner | ai-e2e "turns the recording into a prompt for an agent", runner-site |
diff --git a/docs/parity/ai.md b/docs/parity/ai.md
index 6beecbb..80a7a83 100644
--- a/docs/parity/ai.md
+++ b/docs/parity/ai.md
@@ -1,6 +1,6 @@
# Parity: the ai feature
-FormRec's AI is local first and needs no account. One provider interface (`src/features/ai/provider.ts`: `complete(messages, opts)` and `translate(texts, to)`) has three providers, chosen in Settings, AI:
+FormREC's AI is local first and needs no account. One provider interface (`src/features/ai/provider.ts`: `complete(messages, opts)` and `translate(texts, to)`) has three providers, chosen in Settings, AI:
- **Local templates** (default, no network, always works): `src/features/ai/heuristic.ts`.
- **Anthropic API** with a key the person enters in Settings: `POST https://api.anthropic.com/v1/messages` with `x-api-key`, `anthropic-version: 2023-06-01` and `content-type`. The key is kept in `/ai/key.json` (0600, folder 0700) and never returned to the client (`hasKey` only).
@@ -12,7 +12,7 @@ Tests: `tests/ai-engine.test.ts` (17 tests: heuristics, the Anthropic provider a
Screenshots (deviceScaleFactor 1, from `FORMREC_SHOTS= npx vitest run tests/ai-e2e.test.ts`): `ai-panel-summary.png`, `ai-panel-tasks.png`, `ai-panel-documents.png`, `ai-panel-messages.png`, `ai-prompt-dialog.png`, `ai-ask.png`, `ai-settings.png`.
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R2-29 | Auto titles | A title from the named chapters or the first sentence said; "Use" saves it as the recording's title (a new recording.json value). Made automatically after a save when Settings asks (default on). | `heuristic.ts` `title`; `POST /api/ai/recordings/:id/apply`; `[data-ai-out="title"]`, `[data-ai-apply="title"]` | `ai-engine` "reads transcripts.json...", "generates, edits, checks off tasks and applies a title"; e2e "makes, edits and shows outputs"; `ai-panel-summary.png` |
| R2-30 | Auto summaries | A summary from chapter titles, the first sentence and the action items found; editable; "Use" sets the recording's summary. | `heuristic.ts` `summary`; `[data-ai-out="summary"]` | e2e "makes, edits and shows outputs"; `ai-panel-summary.png` |
diff --git a/docs/parity/analytics.md b/docs/parity/analytics.md
index e3e3757..002419f 100644
--- a/docs/parity/analytics.md
+++ b/docs/parity/analytics.md
@@ -1,11 +1,11 @@
# Analytics export: Loom parity
-Loom's analytics leave the product as CSV only (the engagement and activity exports, R4-43 and R4-45). FormRec keeps that CSV (the engage feature's library CSV and the workspace activity export) and adds one stable, versioned analytics schema (version 1) that leaves the computer in four ways: files in a folder (CSV or NDJSON), straight into the person's own PostgreSQL, BigQuery or Snowflake, or as signed `analytics` events through the Integrations webhooks. A query written once works against every destination. There is no go-between and no new dependency: the PostgreSQL wire protocol (SCRAM-SHA-256, TLS, `COPY`) runs over `node:net` and `node:tls`, and the BigQuery and Snowflake JWTs are signed with `node:crypto`. The schema is 6 fact tables (`fact_views`, `fact_cta_clicks`, `fact_downloads`, `fact_comments`, `fact_reactions`, `fact_activity`) and 7 dimension tables (`dim_recordings`, `dim_people`, `dim_spaces`, `dim_tags`, `dim_recording_tags`, `dim_recording_spaces`, `dim_shares`). Facts carry `updated_at` and are exported again when a row changes (a warehouse upserts on the key); dimensions are written whole and an unchanged snapshot is skipped. Cursors are kept per table per destination and advance only after the loader finished that table, so a failed run repeats. A view is qualified by the same rule as Insights (5 seconds watched, 75 percent, finished, or a CTA click). Credentials are write-only (`secrets.json`, 0600 in a 0700 folder; no endpoint returns them). Schedules are `manual`, `stream` (every minute and about 3 seconds after a share event or an engage notification), `hourly` and `daily`. The guide is `docs/analytics.md`.
+Loom's analytics leave the product as CSV only (the engagement and activity exports, R4-43 and R4-45). FormREC keeps that CSV (the engage feature's library CSV and the workspace activity export) and adds one stable, versioned analytics schema (version 1) that leaves the computer in four ways: files in a folder (CSV or NDJSON), straight into the person's own PostgreSQL, BigQuery or Snowflake, or as signed `analytics` events through the Integrations webhooks. A query written once works against every destination. There is no go-between and no new dependency: the PostgreSQL wire protocol (SCRAM-SHA-256, TLS, `COPY`) runs over `node:net` and `node:tls`, and the BigQuery and Snowflake JWTs are signed with `node:crypto`. The schema is 6 fact tables (`fact_views`, `fact_cta_clicks`, `fact_downloads`, `fact_comments`, `fact_reactions`, `fact_activity`) and 7 dimension tables (`dim_recordings`, `dim_people`, `dim_spaces`, `dim_tags`, `dim_recording_tags`, `dim_recording_spaces`, `dim_shares`). Facts carry `updated_at` and are exported again when a row changes (a warehouse upserts on the key); dimensions are written whole and an unchanged snapshot is skipped. Cursors are kept per table per destination and advance only after the loader finished that table, so a failed run repeats. A view is qualified by the same rule as Insights (5 seconds watched, 75 percent, finished, or a CTA click). Credentials are write-only (`secrets.json`, 0600 in a 0700 folder; no endpoint returns them). Schedules are `manual`, `stream` (every minute and about 3 seconds after a share event or an engage notification), `hourly` and `daily`. The guide is `docs/analytics.md`.
Code: `src/features/analytics/` (`schema.ts` the tables and columns, `facts.ts` the rows from share, engage and the workspace log, `encode.ts` CSV and NDJSON, `cursor.ts`, `run.ts` the runner and schedules, `store.ts` destinations and secrets, `pg.ts` and `load-pg.ts`, `load-bigquery.ts`, `load-snowflake.ts`, `jwt.ts`, `load.ts`, `routes.ts` under `/api/analytics`, `mcp.ts` the tool `formrec_analytics_export`, `index.ts` the timer and the stream kick), `web/src/features/analytics.ts` (Settings, Analytics export).
Tests (every network peer is a local fake that checks the documented request shapes; none reaches a real warehouse): `tests/analytics-facts.test.ts`, `analytics-formats.test.ts`, `analytics-postgres.test.ts` (a PostgreSQL protocol fake with TLS and SCRAM, `analytics-pg-fake.ts`), `analytics-bigquery.test.ts`, `analytics-snowflake.test.ts` (`analytics-warehouse-fakes.ts`), `analytics-folder.test.ts`, `analytics-mcp.test.ts`, `analytics-webhook.test.ts`, `analytics-e2e.test.ts` (Chromium, layout shift 0). They passed in the 0.5.0 audit run.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R4-45 | Engagement CSV export (admin) | The engage library CSV stays; on top, the documented schema above is exported on demand (`GET /api/analytics/export?table=&format=csv\|ndjson&since=`) and on a schedule to a folder, PostgreSQL, BigQuery, Snowflake or a webhook. CSV comes in a `sheet` flavour (text starting with `=`, `+`, `-` or `@` is defused) and a `load` flavour (null and empty string stay apart). | `src/features/analytics/`, `web/src/features/analytics.ts`, MCP `formrec_analytics_export` (schema, status, run, export) | facts (every row has exactly its table's columns; qualified views, completions and CTA clicks agree with Insights; comments, reactions, activity, dimensions), formats (formula defusing, null versus empty, cursor semantics, SCRAM vectors), postgres (TLS, SCRAM, transaction per table, rollback and resume, certificate refusal, 0600 secrets), bigquery (documented JWT assertion, multipart NDJSON load, MERGE), snowflake (key-pair JWT, bindings, MERGE), folder, mcp, webhook (signed deliveries, cursor kept when the receiver refuses, stream within seconds), e2e (layout shift 0). Not run against a real PostgreSQL, BigQuery or Snowflake. |
diff --git a/docs/parity/annotate.md b/docs/parity/annotate.md
index 448f5d9..88eb281 100644
--- a/docs/parity/annotate.md
+++ b/docs/parity/annotate.md
@@ -1,15 +1,15 @@
# Parity: annotate
-Drawing while recording, click highlights, confetti, blur, overlays added afterwards and zoom keyframes. In FormRec they are one timed vector track per recording, `annotate.json` beside `recording.json`, never burnt into the recorded tracks: the player draws it over the picture, the editor changes it, an export draws it on its own copy, and an agent reads and adds to it over MCP.
+Drawing while recording, click highlights, confetti, blur, overlays added afterwards and zoom keyframes. In FormREC they are one timed vector track per recording, `annotate.json` beside `recording.json`, never burnt into the recorded tracks: the player draws it over the picture, the editor changes it, an export draws it on its own copy, and an agent reads and adds to it over MCP.
## Rows
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R1-40 | Drawing tool while recording (desktop; fades after 5 s; Ctrl+Shift+D) | A toolbar and canvas over the studio's stage during a take: pen, highlighter, arrow, box, text, blur, eraser, six colours, Clear, Fade (on by default: a drawing fades out over 1 s, 5 s after it is finished, like Loom's), Escape puts the tool down. Strokes keep each point's time, on the take's own clock (pauses left out), and are saved as the recording's track when the take is saved. Shortcuts are registry commands: mod+shift+D pen, mod+shift+H highlighter, mod+shift+X clear (arrow, box, blur, fade and stop are commands without keys, for menus). | `web/src/annotate-studio.ts` (`studioOverlay`, `TakeDrawing`), `web/src/features/annotate.ts` (`studioPlugins`, `commands`); `[data-annotate-studio]`, `[data-annotate-tool]`, `[data-annotate-color]`, `[data-annotate-fade]`, `[data-annotate-clear]`, `[data-annotate-count]` | `tests/annotate-e2e.test.ts` "draws over the studio stage while recording and saves the drawings with the recording"; `tests/annotate-track.test.ts` "keeps the take's clock without the paused time", "times studio drawings"; screenshot `annotate-studio-drawing.png` |
-| R1-41 | Highlight mouse clicks (desktop; yellow ring) | Click items drawn as a yellow ripple (a dot and a growing ring over 700 ms). Three sources: (1) in the browser studio, the Clicks toggle records the clicks FormRec can see, the ones on its own page, mapped to the picture when the take records this tab (the screen track's `displaySurface` is read through the plugin's `screen` hook); (2) the desktop agent's system-wide click hook writes a click log (`ClickLogSchema`: screen size, origin, `t` in ms since the take, pixel `x`/`y`, button), imported with `POST /api/annotate/:id/clicks` (clicks on another display are dropped); (3) the editor's Click tool and agents. | `src/features/annotate/schema.ts` (`ClickSchema`, `ClickLogSchema`), `shared/annotate-math.ts` (`ripple`, `clicksFromLog`), `src/features/annotate/track.ts` (`importClicks`); `[data-annotate-clicks]` | `tests/annotate-track.test.ts` "reads the desktop agent's click log", "makes ripples that grow and fade"; `tests/annotate-routes.test.ts` "imports the desktop agent's click log with zooms on the click areas"; `tests/desktop-feature.test.ts` "keeps a recording's click log" (the desktop route saves the log and the annotate track holds the click; all pass). The system-wide hook itself (`src-tauri/src/clicks.rs`) needs a desktop session. |
+| R1-41 | Highlight mouse clicks (desktop; yellow ring) | Click items drawn as a yellow ripple (a dot and a growing ring over 700 ms). Three sources: (1) in the browser studio, the Clicks toggle records the clicks FormREC can see, the ones on its own page, mapped to the picture when the take records this tab (the screen track's `displaySurface` is read through the plugin's `screen` hook); (2) the desktop agent's system-wide click hook writes a click log (`ClickLogSchema`: screen size, origin, `t` in ms since the take, pixel `x`/`y`, button), imported with `POST /api/annotate/:id/clicks` (clicks on another display are dropped); (3) the editor's Click tool and agents. | `src/features/annotate/schema.ts` (`ClickSchema`, `ClickLogSchema`), `shared/annotate-math.ts` (`ripple`, `clicksFromLog`), `src/features/annotate/track.ts` (`importClicks`); `[data-annotate-clicks]` | `tests/annotate-track.test.ts` "reads the desktop agent's click log", "makes ripples that grow and fade"; `tests/annotate-routes.test.ts` "imports the desktop agent's click log with zooms on the click areas"; `tests/desktop-feature.test.ts` "keeps a recording's click log" (the desktop route saves the log and the annotate track holds the click; all pass). The system-wide hook itself (`src-tauri/src/clicks.rs`) needs a desktop session. |
| R1-42 | Confetti (Windows Ctrl+Alt+C) | A confetti burst item (90 pieces, thrown up and falling, the same every play from its seed), from the studio button or mod+shift+E while recording, the editor's Confetti tool, or `formrec_annotate` kind `confetti`. Drawn in the player and rendered into exports. | `shared/annotate-math.ts` (`confetti`, `random`), `[data-annotate-confetti]`, command `annotate.confetti` | `tests/annotate-track.test.ts` "confetti that is the same every time"; e2e runs the `annotate.confetti` command (the `formrec:command` event the desktop menu sends; its shortcut is mod+shift+E) during the take and the saved track holds a `confetti` item; `tests/edit-exportwire.test.ts` (confetti read back by pixel in an edit export) |
-| R1-49 | Blur sensitive information (before or during recording; never captured) | Blur areas: drawn with the Blur tool while recording (they last to the end of the take) or afterwards in the editor, or added by an agent. The player covers them with a backdrop blur that follows zoom; an export blurs them in the pixels (`crop` + `boxblur` + `overlay`, timed with `enable`). Honest difference: Loom's extension hides DOM elements so they are never captured; FormRec captures any app or the whole screen, so the recorded track keeps the pixels and the blur is applied on playback and on every export. Share a blurred export, not the raw track. Since 0.8.0 `redact.md` adds automatic layers: a walkthrough never captures what looks secret, and a frame scan suggests blurs that are applied as blur items on this track. | `BlurSchema`, `web/src/annotate-draw.ts` (`blurBoxes`), `src/features/annotate/render.ts` (`filterScript`); `[data-annotate-blur]` | e2e: one blur drawn in the studio is shown during the take and in the player (`[data-annotate-blur]:not([hidden])`), a second added in the editor is saved; `tests/annotate-track.test.ts` "writes an FFmpeg graph with timed blur", "exports a video FFmpeg accepts"; `tests/edit-exportwire.test.ts` (a blur in the track renders through edit's export) |
+| R1-49 | Blur sensitive information (before or during recording; never captured) | Blur areas: drawn with the Blur tool while recording (they last to the end of the take) or afterwards in the editor, or added by an agent. The player covers them with a backdrop blur that follows zoom; an export blurs them in the pixels (`crop` + `boxblur` + `overlay`, timed with `enable`). Honest difference: Loom's extension hides DOM elements so they are never captured; FormREC captures any app or the whole screen, so the recorded track keeps the pixels and the blur is applied on playback and on every export. Share a blurred export, not the raw track. Since 0.8.0 `redact.md` adds automatic layers: a walkthrough never captures what looks secret, and a frame scan suggests blurs that are applied as blur items on this track. | `BlurSchema`, `web/src/annotate-draw.ts` (`blurBoxes`), `src/features/annotate/render.ts` (`filterScript`); `[data-annotate-blur]` | e2e: one blur drawn in the studio is shown during the take and in the player (`[data-annotate-blur]:not([hidden])`), a second added in the editor is saved; `tests/annotate-track.test.ts` "writes an FFmpeg graph with timed blur", "exports a video FFmpeg accepts"; `tests/edit-exportwire.test.ts` (a blur in the track renders through edit's export) |
| R2-13 | Overlays: text, arrows, boxes after recording, carried into downloads | The editor at `#/annotate/` (player action Annotate): tools for text, box, arrow, highlight, blur, zoom, click and confetti at the playhead; select and drag to move; Delete; inspector for start, end and text; a timeline with one bar per item (drag to move in time, drag an end to change its length); colour; Save writes the track. Text is plain text on a plate, any script the system font has (Loom's text overlays do not take character-based languages). Exports carry the overlays: edit's exporter (behind documents' Export, `formrec_export`, share's MP4 and Download MP4) chains `render.ts`'s graph, mapped onto the edit's kept segments. A text callout with a fade (`fadeMs`) rises from nothing over the fade after its start and falls over the fade before its end, in the player and in exports alike (`alpha` in `shared/annotate-math.ts`; the export's `drawtext` takes the same two ramps as its `alpha` expression, which covers the plate too); other items fade out only. | `web/src/annotate-editor.ts`, `viewRoutes` `annotate`, `playerActions` `annotate` (`[data-player-annotate]`), `PUT /api/annotate/:id`; `[data-annotate-tool]`, `[data-annotate-span]`, `[data-annotate-save]`, `[data-annotate-status]` | e2e "edits afterwards: adds a text overlay and a blur box, moves and deletes, and saves"; `tests/annotate-routes.test.ts` "replaces the whole track"; `tests/edit-exportwire.test.ts` "draws a box and a text callout written by annotate at the edited time of their source time, and not an item that was cut"; `tests/exportparity-fade.test.ts` (a real export: the plate's pixel is untouched before the start, rises over the fade, holds, falls and is untouched after the end, equal at twelve times to the player's `alpha`); `tests/exportparity-schema.test.ts` (the opacity function); screenshot `annotate-editor.png` |
| R2-46 | Auto-zoom (Loom: coming soon) | Zoom keyframes (`x`, `y`, `scale`, `easeMs`): the view eases in, holds and eases out (smoothstep) and is clamped to the picture. Auto-zoom groups clicks close in time and place into one zoom each (editor button, `POST /api/annotate/:id/auto-zoom`, `?zoom=1` on the click import, `formrec_annotate_auto_zoom`); a chosen region is drawn with the editor's Zoom tool. The player zooms the picture with `object-view-box` (a transform where a browser lacks it) and draws the annotations through the same view; an export uses `zoompan` with the same easing. Since 0.8.0 `autozoom.md` finds the places from a walkthrough's recorded clicks and typing boxes and from a person's recorded clicks, and applies them as zoom items on this track. | `shared/annotate-math.ts` (`viewAt`, `autoZoom`), `web/src/annotate-draw.ts` (`applyZoom`), `render.ts` (`zoomExpressions`) | `tests/annotate-track.test.ts` "zooms in smoothly, holds, zooms out", "makes zoom keyframes on click areas"; e2e player test reads the zoomed `object-view-box`; `tests/edit-exportwire.test.ts` (a zoom in the track renders through edit's export, the confetti under it zoomed); screenshot `annotate-player-zoom.png` |
@@ -53,6 +53,6 @@ How exports use it (wired in 0.4.0's fixes): edit's exporter, which documents' E
## Not done
-- A blur written into the recorded pixels while recording (Loom's "never captured"): the plugin contract allows it (`screen` returns a stream), but FormRec keeps the source untouched; the blur is applied in the player and in exports.
+- A blur written into the recorded pixels while recording (Loom's "never captured"): the plugin contract allows it (`screen` returns a stream), but FormREC keeps the source untouched; the blur is applied in the player and in exports.
- A system-wide click hook in the desktop app itself: the click log format and its import exist; the Tauri side that writes it belongs to the desktop agent.
- Arbitrary rotation or resizing handles in the editor (move, times and text are editable; areas are redrawn).
diff --git a/docs/parity/apps.md b/docs/parity/apps.md
index b75b0ea..3f1f518 100644
--- a/docs/parity/apps.md
+++ b/docs/parity/apps.md
@@ -1,25 +1,25 @@
# Apps: Loom parity
-FormRec has twelve integration apps. Each has two halves. The half that runs inside the other product lives in `apps//` (a Slack app manifest, an Apps Script add-on, a Lightning web component, a HubSpot project, a Zendesk sidebar app, a Canvas Kit app, a GitHub App manifest, a Forge app, a Figma plugin, a form.md connection guide) and is installed by the owner from that folder with its `INSTALL.md`. The half that answers it is `src/apps/.ts`, an `IntegrationApp` listed in `src/apps/index.ts`. The other product needs an https address to call, so the apps are mounted at `/apps//...` on the public server: the relay, or the share listener through the tunnel (`src/apps/host.ts`). An app sees recordings only through `AppContext` (`src/apps/context.ts`): the share links it may describe, never the library, and only what the share's privacy allows (`preview: false` means a plain link, no title, picture, summary or chapters). Every request from the internet is verified before its body is trusted: Slack's signing secret, a Google ID token (RS256 against Google's certificates), HubSpot's v3 signature, Intercom's body signature, GitHub's `X-Hub-Signature-256`, GitLab's token, Linear's signature with a one minute replay window, and a shared secret in constant time for Salesforce, Zendesk and Jira (the Figma plugin uses a list of bearer tokens). The owner's secrets are write-only in Settings.
+FormREC has twelve integration apps. Each has two halves. The half that runs inside the other product lives in `apps//` (a Slack app manifest, an Apps Script add-on, a Lightning web component, a HubSpot project, a Zendesk sidebar app, a Canvas Kit app, a GitHub App manifest, a Forge app, a Figma plugin, a form.md connection guide) and is installed by the owner from that folder with its `INSTALL.md`. The half that answers it is `src/apps/.ts`, an `IntegrationApp` listed in `src/apps/index.ts`. The other product needs an https address to call, so the apps are mounted at `/apps//...` on the public server: the relay, or the share listener through the tunnel (`src/apps/host.ts`). An app sees recordings only through `AppContext` (`src/apps/context.ts`): the share links it may describe, never the library, and only what the share's privacy allows (`preview: false` means a plain link, no title, picture, summary or chapters). Every request from the internet is verified before its body is trusted: Slack's signing secret, a Google ID token (RS256 against Google's certificates), HubSpot's v3 signature, Intercom's body signature, GitHub's `X-Hub-Signature-256`, GitLab's token, Linear's signature with a one minute replay window, and a shared secret in constant time for Salesforce, Zendesk and Jira (the Figma plugin uses a list of bearer tokens). The owner's secrets are write-only in Settings.
-Loom documents Slack, Google Workspace and Salesforce; for HubSpot, Zendesk, GitLab, Intercom and Figma it has only a Quick Record button, a link expander or an AI output, so for those FormRec does more than Loom documents. None of the twelve was run against the real product here (no Slack workspace, Google account, Salesforce org, HubSpot, Zendesk, Intercom, GitHub, GitLab, Jira, Linear or Figma account): they are tested against fakes that check the request shapes the vendor documents. form.md is the exception: `tests/apps-formmd-real.test.ts` runs a real form.md binary (v0.52.2 built from its source) and publishes a real recording to it.
+Loom documents Slack, Google Workspace and Salesforce; for HubSpot, Zendesk, GitLab, Intercom and Figma it has only a Quick Record button, a link expander or an AI output, so for those FormREC does more than Loom documents. None of the twelve was run against the real product here (no Slack workspace, Google account, Salesforce org, HubSpot, Zendesk, Intercom, GitHub, GitLab, Jira, Linear or Figma account): they are tested against fakes that check the request shapes the vendor documents. form.md is the exception: `tests/apps-formmd-real.test.ts` runs a real form.md binary (v0.52.2 built from its source) and publishes a real recording to it.
Code: `src/apps/` (`index.ts` the list, `types.ts` the contract, `context.ts` and `host.ts` the shared context and the tunnel host, `token-check.ts`, `crm-common.ts`, `dev-common.ts` and `support-http.ts` shared helpers, one file per app), `apps//` (the other half), `src/features/integrations/apps.ts` and `web/src/features/integrations-apps*.ts` (the fields in Settings, Integrations).
Tests: `tests/apps-slack-flow`, `apps-slack-engage`, `apps-slack-signature`; `apps-google-endpoints`, `apps-google-manifest`, `apps-google-token`; `apps-crm-salesforce`, `apps-crm-hubspot`, `apps-crm-cross`; `apps-support-zendesk`, `apps-support-intercom`, `apps-support-share`; `apps-dev-github`, `apps-dev-gitlab`, `apps-dev-jira`, `apps-dev-linear`, `apps-dev-cross`; `apps-formmd-share`, `apps-formmd-real`, `apps-embeds-figma`, `apps-embeds-oembed`; `apps-host-relay` (the apps on a real relay), `apps-host-tunnel`, `apps-host-settings`, `apps-host-e2e` (Chromium, Settings). All of them passed in the 0.5.0 audit run.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R4-58, R3-23 | Slack: unfurl with in-Slack playback, /loom, App Home, notifications | Events API `link_shared` becomes `chat.unfurl` with a video block that plays the `/e/` page (a titled link for a protected share, the bare link when previews are off); `/formrec` lists recent shares, `/formrec ` posts one, `/formrec record` replies with a link that opens the recorder (Slack cannot start a recording itself); `app_home_opened` publishes the Home tab with recent recordings; OAuth install with a signed state; views, comments, reactions and replies arrive as a message with a link at the moment, in the channel set or else a direct message to the installer. A view sends a message at its start and at 25, 50, 75 and 100 percent, so one long watch can send up to five. | `src/apps/slack.ts`, `apps/slack/manifest.yaml`, `apps/slack/INSTALL.md` | slack-flow (unfurl, composer unfurl, protected share, command forms, response_url check, Home tab, OAuth state), slack-engage (comment to DM, channel, framing headers), slack-signature, host-relay. Not run against Slack. |
-| R4-60, R4-63, R4-75, R3-25 | Gmail record button, Google Workspace smart chips, Calendar | Apps Script add-on: Gmail compose picker that inserts the linked GIF in the draft, Calendar "Record for this meeting" (a deep link page that opens the Meeting layout), smart chip data for FormRec links in Docs, Sheets and Slides. Every call carries the person's Google ID token, verified here (signature, issuer, audience, expiry, verified email, allowed domain); a protected share previews as "FormRec recording" with no picture. | `src/apps/google.ts`, `apps/google/Code.gs`, `appsscript.json` | google-endpoints (token refusal, open and protected preview, snippet, calendar deep link), google-manifest, google-token. Not deployed to Google. |
+| R4-60, R4-63, R4-75, R3-25 | Gmail record button, Google Workspace smart chips, Calendar | Apps Script add-on: Gmail compose picker that inserts the linked GIF in the draft, Calendar "Record for this meeting" (a deep link page that opens the Meeting layout), smart chip data for FormREC links in Docs, Sheets and Slides. Every call carries the person's Google ID token, verified here (signature, issuer, audience, expiry, verified email, allowed domain); a protected share previews as "FormREC recording" with no picture. | `src/apps/google.ts`, `apps/google/Code.gs`, `appsscript.json` | google-endpoints (token refusal, open and protected preview, snippet, calendar deep link), google-manifest, google-token. Not deployed to Google. |
| R4-71 | Salesforce engagement on Lead, Contact, Opportunity | `formrecPlayer` Lightning web component on Lead, Contact, Opportunity and Account pages plays a share in an iframe and shows views, completion and last viewed (an Opportunity through its contact roles, an Account through its contacts); the server logs a completed Task on the matching Contact (else Lead) when an identified viewer watches and updates it during the visit. OAuth web server flow with PKCE, token refresh on 401, shared secret in constant time. | `src/apps/salesforce.ts`, `crm-common.ts`, `apps/salesforce/force-app/` | crm-salesforce (PKCE, refresh, SOQL escaping, Task update, metadata targets, Named Credential), crm-cross. Not deployed to an org. |
-| R4-72 | HubSpot (Quick Record button only) | CRM card on Contact and Deal records (recordings the contact or the deal's contacts watched, play links, Send a recording which logs a note) and "Watched a FormRec" timeline events when an identified viewer watches (once per visit and again at the end); OAuth with refresh; the card's calls accepted only with a valid v3 signature inside five minutes. | `src/apps/hubspot.ts`, `apps/hubspot/` | crm-hubspot (signature, timeline event, card, project files), crm-cross. Not uploaded to HubSpot. |
+| R4-72 | HubSpot (Quick Record button only) | CRM card on Contact and Deal records (recordings the contact or the deal's contacts watched, play links, Send a recording which logs a note) and "Watched a FormREC" timeline events when an identified viewer watches (once per visit and again at the end); OAuth with refresh; the card's calls accepted only with a valid v3 signature inside five minutes. | `src/apps/hubspot.ts`, `apps/hubspot/` | crm-hubspot (signature, timeline event, card, project files), crm-cross. Not uploaded to HubSpot. |
| R4-73 | Zendesk (inline play only) | Ticket sidebar app: recent recordings, insert into the reply as a linked picture, play the links found in the ticket; the secret is a secure setting sent as a header and never reaches the browser. | `src/apps/zendesk.ts`, `support-http.ts`, `apps/zendesk/` | support-zendesk (manifest, secret handling, routes, privacy), support-share. Not run in Zendesk. |
| R4-73 | Intercom (inline play only) | Canvas Kit app for the Inbox and Messenger: picker, preview, Insert into reply (a card), Play here sheet; `X-Body-Signature` checked before the body is read. | `src/apps/intercom.ts`, `apps/intercom/` | support-intercom (signature, canvases, card, privacy). Not run in Intercom. |
-| R4-73 | GitHub (inline play only) | A GitHub App: a FormRec link in an issue, pull request or comment gets one comment of the app's, created once and then updated, with the GIF linked to the share, title, duration, summary and chapters as timestamped links; App JWT exchanged for an installation token; webhook signature checked. | `src/apps/github.ts`, `dev-common.ts`, `apps/github/` | dev-github (signature vector, JWT claims, create then update, bots ignored, PR bodies). Not installed on GitHub. |
+| R4-73 | GitHub (inline play only) | A GitHub App: a FormREC link in an issue, pull request or comment gets one comment of the app's, created once and then updated, with the GIF linked to the share, title, duration, summary and chapters as timestamped links; App JWT exchanged for an installation token; webhook signature checked. | `src/apps/github.ts`, `dev-common.ts`, `apps/github/` | dev-github (signature vector, JWT claims, create then update, bots ignored, PR bodies). Not installed on GitHub. |
| R4-73 | GitLab (inline play only) | Project webhook: the note holds the MP4 inline when the share plays without a gate, else the GIF, then chapters as timestamped links; updated in place; secret token checked. | `src/apps/gitlab.ts`, `apps/gitlab/INSTALL.md` | dev-gitlab. Not run on GitLab. |
-| R4-73 | Jira Cloud (Forge panel) | A Forge issue panel finds FormRec links in the description and comments and plays each share's `/e/` page; one route answers its function a lookup (title, duration, chapters, privacy) behind a shared secret. Creating Jira work items is the integrations feature (R4-64). | `src/apps/jira.ts`, `apps/jira/` (manifest.yml, src, static) | dev-jira (manifest permissions, links in ADF text, marks and smart cards, lookup). Not deployed with Forge. |
-| R4-73, R4-69 | Linear | OAuth install (app actor), webhook for Issue and Comment with signature and replay window; a FormRec link in an issue or comment becomes an attachment card (`attachmentCreate`), repeated links update it; token refresh. Creating issues is the integrations feature (R4-69). | `src/apps/linear.ts`, `apps/linear/INSTALL.md` | dev-linear, dev-cross. Not run against Linear. |
+| R4-73 | Jira Cloud (Forge panel) | A Forge issue panel finds FormREC links in the description and comments and plays each share's `/e/` page; one route answers its function a lookup (title, duration, chapters, privacy) behind a shared secret. Creating Jira work items is the integrations feature (R4-64). | `src/apps/jira.ts`, `apps/jira/` (manifest.yml, src, static) | dev-jira (manifest permissions, links in ADF text, marks and smart cards, lookup). Not deployed with Forge. |
+| R4-73, R4-69 | Linear | OAuth install (app actor), webhook for Issue and Comment with signature and replay window; a FormREC link in an issue or comment becomes an attachment card (`attachmentCreate`), repeated links update it; token refresh. Creating issues is the integrations feature (R4-69). | `src/apps/linear.ts`, `apps/linear/INSTALL.md` | dev-linear, dev-cross. Not run against Linear. |
| R4-70 | Figma and FigJam | A Figma plugin lists recordings and places one frame per step (the share's chapters, or one step) with its picture, title and timestamped link; the server serves recent shares, the steps and a PNG per step (cut from the share's video) behind per-person bearer tokens, with CORS for the plugin's null origin; a protected share is refused. The PNG zip of the ai feature stays. | `src/apps/figma.ts`, `apps/figma/` (code.ts and its built code.js, ui.html, manifest.json), `src/features/ai/figma.ts` | embeds-figma (manifest, token checks, CORS, steps, PNG per step, refusals), host-relay, host-tunnel. Not loaded into Figma. |
| R4-76 | form.md pages and link cards (where Loom has Notion) | The server half of the form.md connection: `GET /apps/formmd/card?url=` (the card form.md draws for a share link: title, summary, picture, site) and `GET /apps/formmd/markdown?url=` (the page body Publish to form.md writes), both showing only what the share's privacy allows. form.md needs no approval or OAuth: the owner's personal API token publishes (integrations feature, `formmd.ts`). form.md shows a link on its own line as a bookmark card filled from the share page's Open Graph tags, not as a player. A page that plays the recording is the integrations feature's "Video in the page" choice (the MP4 uploaded to form.md as its own file, `integrations.md` R4-76), not this link card. | `src/apps/formmd.ts`, `apps/formmd/` | apps-formmd-share (tags form.md, Trello and Medium read; card and markdown routes; protected share), apps-formmd-real (a real form.md binary: publish, replace, trash and delete, the unfurler). |
| R4-77, R4-82 | oEmbed discovery | `apps/oembed/providers.json` and INSTALL.md for services that want a provider registered; the endpoint and the Open Graph tags are the share feature's. | `apps/oembed/` | embeds-oembed. |
diff --git a/docs/parity/autozoom.md b/docs/parity/autozoom.md
index 04a97a8..96de4b7 100644
--- a/docs/parity/autozoom.md
+++ b/docs/parity/autozoom.md
@@ -1,6 +1,6 @@
# Automatic zoom: Loom parity
-Loom lists "Auto-zoom" under "New features coming soon" on its editing page (https://www.atlassian.com/software/loom/editing: "Automatically highlights key moments with smart, dynamic zooms that focus your viewer's attention"); it is not described as shipped in the pages read for 0.8.0. FormRec already had zoom keyframes and a click-grouping auto-zoom in the annotate editor (`annotate.md`, R2-46). The autozoom feature adds the source of the places: where the action actually is.
+Loom lists "Auto-zoom" under "New features coming soon" on its editing page (https://www.atlassian.com/software/loom/editing: "Automatically highlights key moments with smart, dynamic zooms that focus your viewer's attention"); it is not described as shipped in the pages read for 0.8.0. FormREC already had zoom keyframes and a click-grouping auto-zoom in the annotate editor (`annotate.md`, R2-46). The autozoom feature adds the source of the places: where the action actually is.
Targets come from a walkthrough's clicks and typing (each chapter's `action`, `actionMs` and `box` against the recording's viewport; hover, scroll, goto and waits are not targets), or for a person's recording from `clicks.jsonl` (kept beside `recording.json`, 0600, never served; written by the studio from clicks made in its own tab and by the browser extension from a recorded tab), else the desktop app's click log, else the click ripples on the annotate track. Targets close in time and place merge into one zoom. The scale makes the merged box fill `fill` (0.5) of the frame between `minScale` (1.3) and `maxScale`, never above 2.5; the centre is clamped so the whole box stays in view; the zoom eases in so it is full when the first action happens, holds at least `minHoldMs` (1200, never under 1000) and eases out. Suggestions are computed from the recording on every call, never trusted from a client. Applying one adds a zoom item to the annotate track through edit's service (`EditService.applyZooms`); the player and edit's one exporter draw it. Edit has no separate zoom operation, and the recorded files are not changed. Zooms the person made are never overlapped.
@@ -10,7 +10,7 @@ Routes (behind the token): `GET /api/autozoom/:id` (options as query), `POST /ap
Tests: `tests/autozoom-plan.test.ts` (pure), `tests/autozoom-clicks.test.ts` (routes, extension, MCP), `tests/autozoom-e2e.test.ts` (real walkthrough, real export, frames compared), `tests/autozoom-web.test.ts` (Chromium, layout shift at 4x CPU throttling).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R2-46 | Auto-zoom (Loom: coming soon) | The places a zoom goes to are found from the action, then suggested, previewed and applied. See above. Strengthens the row in `annotate.md`; the status of R2-46 is unchanged. | `plan.ts`, `sources.ts`, `service.ts` | rows below |
| BL-autozoom-1 | Auto-zoom | The box fills the set share of the frame, a smaller target is never zoomed past 2.5 whatever is asked, a target that already fills most of the frame gets no zoom, and the centre is moved in from every edge and corner so the box stays in view. | `plan.ts` | `autozoom-plan` "makes the box fill the set share of the frame", "never goes above 2.5 however small the target is, and ignores a higher request", "suggests nothing for a target that already fills most of the frame", "moves the centre in from every edge and corner, and the whole box is still in view", "centres on the box when there is room" |
diff --git a/docs/parity/clips.md b/docs/parity/clips.md
index 037922b..f5d5165 100644
--- a/docs/parity/clips.md
+++ b/docs/parity/clips.md
@@ -2,7 +2,7 @@
Loom's editing is trim, stitch and insert section; its AI Overlays (early access, October 2026) add titles and key-point highlights, not reels (https://www.atlassian.com/software/loom/editing, https://support.atlassian.com/loom/docs/loom-ai-features/). Highlight reels and vertical clips were not found in Loom's documentation.
-FormRec picks the best highlights of a recording and makes each as a 9:16, 1:1 or 16:9 clip. Every clip starts at the start of a sentence, ends at the end of one and lasts 15 to 60 seconds. Picking uses the AI provider chosen in Settings, AI (the model chooses among numbered sentences; what it answers is checked, snapped to sentence ends, and dropped for the heuristic's picks when unusable, with the reason returned), else a stated heuristic (`HEURISTIC_RULE`, returned with the picks): sentences end at `.`, `!`, `?` or a 0.9 second pause, and each run of whole sentences is scored 35% on how much viewers watched it (the engage heatmap, left out when nobody has), 25% on starting at a chapter start, 20% on speech density, 10% on closeness to 30 seconds, 10% on ending with a sentence mark. Clips do not overlap. With no words, chapters stand in as sentences.
+FormREC picks the best highlights of a recording and makes each as a 9:16, 1:1 or 16:9 clip. Every clip starts at the start of a sentence, ends at the end of one and lasts 15 to 60 seconds. Picking uses the AI provider chosen in Settings, AI (the model chooses among numbered sentences; what it answers is checked, snapped to sentence ends, and dropped for the heuristic's picks when unusable, with the reason returned), else a stated heuristic (`HEURISTIC_RULE`, returned with the picks): sentences end at `.`, `!`, `?` or a 0.9 second pause, and each run of whole sentences is scored 35% on how much viewers watched it (the engage heatmap, left out when nobody has), 25% on starting at a chapter start, 20% on speech density, 10% on closeness to 30 seconds, 10% on ending with a sentence mark. Clips do not overlap. With no words, chapters stand in as sentences.
Making. The exporter is edit's: `ExportSchema` gained a span, heights 1280 and 1920, a `stack` layout (screen above camera) and a `cover` crop (centred, screen only), and caption cues with a style. 9:16 stacks screen and camera when the take has both, else a centred crop of the screen; 1:1 is a centred crop; 16:9 keeps the picture. Quality `sd` has a short side of 720, `hd` of 1080. Captions are burnt in, from word timings, at most four words and 28 characters a line, low in the picture. The finished file enters the library through the library's one importer as a recording of its own whose `recording.json` has `clipOf` (the source id, the span, the shape), with a transcript of its own. The source is only read. Cover clips skip the annotate track.
@@ -14,7 +14,7 @@ Routes (behind the token): `GET /api/clips/:id`, `GET /api/clips/:id/highlights`
Tests: `tests/clips-picker.test.ts` (pure), `tests/clips-make.test.ts` (real FFmpeg, a flite-spoken take; sizes, sentence edges, captions in pixels, source untouched; the Anthropic provider against a fake that checks the documented request), `tests/clips-mcp.test.ts`, `tests/clips-web.test.ts` (Chromium, layout shift at 4x CPU throttling). Do not run `clips-make` and `clips-mcp` at the same time.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-clips-1 | Not found in Loom's documentation | The heuristic: sentences end at marks or pauses; runs of whole sentences inside the limits; viewers' heatmap, chapter starts and speech density raise a run; no overlap, in time order; too little speech says it cannot make a clip. | `picker.ts` `pickHeuristic`, `sentencesOf`, `sentencesFromChapters` | `clips-picker` "ends a sentence at . ! ? or after a pause, and keeps the words", "gives only runs of whole sentences inside the limits", "uses chapters as the sentences when there are no words", "keeps clips of 15 to 60 seconds that start and end at sentence edges and never overlap, in time order", "goes where viewers watched", "likes a run that starts where a chapter starts, and titles it with the chapter", "prefers dense speech over sparse speech", "says it cannot make a clip when there is not enough speech", "refuses a recording with too little speech" |
| BL-clips-2 | Not found in Loom's documentation | The AI picker sends numbered sentences and the limits, accepts valid picks, drops overlaps and bad numbers, widens a single sentence to 15 seconds, and a pick you give is moved outward to sentence edges and into the limits; nonsense or a failed provider falls back to the heuristic and says why. | `picker.ts` `aiPrompt`, `parseAiPicks`, `snapPick`; `make.ts` | `clips-picker` "moves outward to sentence edges and into the limits", "sends numbered sentences and the limits", "uses valid picks, drops overlaps and bad numbers, and widens a single sentence to 15 seconds"; `clips-make` "asks the Anthropic provider in the documented request shape and uses its picks, moved to sentence edges", "falls back to the heuristic, and says why, when the provider answers nonsense or fails" |
diff --git a/docs/parity/documents.md b/docs/parity/documents.md
index d3b423f..50169f2 100644
--- a/docs/parity/documents.md
+++ b/docs/parity/documents.md
@@ -5,12 +5,12 @@ Feature module `documents`: `src/features/documents/` (server, MCP), `web/src/fe
`tests/documents-zip.test.ts`, `tests/documents-package.test.ts`, `tests/documents-deeplink.test.ts`,
`tests/documents-routes.test.ts`, `tests/documents-e2e.test.ts` (Chromium, layout shift at 4x CPU throttling).
-| Row | Family feature | What FormRec does | Where | Verified by |
+| Row | Family feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
-| P-01 | A recording as one portable file (FormCut `.fc`) | `.frec` package: a zip, `manifest.json` first (`format: "formrec-recording"`, `version: 1`, `app`, `id`, `title`, `createdAt`, `exportedAt`, `files` with every file's name and size), then `recording.json`, then every file of the folder a fixed rule allows (core media and captions, `.json` sidecars, the files features declare for the media route). Media stored, text deflated. Import: names checked against the same rule and a flat-name rule, entry count, entry size and total size capped, zip-slip, absolute and backslash paths, symlinks, folders, encryption, zip64 and duplicate names refused, inflated bytes counted (a lying size cannot inflate past it), CRC checked, files written O_EXCL into a staging folder that becomes the recording with one rename under a fresh id; the manifest must list exactly the files present; `recording.json` parsed with `RecordingSchema`; the codebase root dropped, commit and repo link kept. Exports (`documents-export-*`) and `session.json` are left out. Zip reader and writer in-tree, `node:zlib` only. | `src/features/documents/zip.ts`, `package.ts`; `GET /api/documents/package/:id`, `POST /api/documents/import`; MCP `formrec_package_export`, `formrec_import`; File > Export as FormRec Package... `[data-documents-cmd="documents-export-package"]`, More > Export as FormRec Package `[data-recording-action="documents-package"]`, Export dialog `[data-documents-package]` | `documents-zip.test.ts` (writer read back by the reader and by `unzip -t`; zip-slip, absolute, backslash, symlink, folder, huge, too many, duplicate, encrypted, deflate bomb, bad CRC, not a zip); `documents-package.test.ts` (round trip into new ids twice, original untouched, 0600/0700, staging cleaned; every refusal; bomb leaves nothing; adopt never lands on an existing recording); `documents-routes.test.ts` (download, re-open by path); `documents-e2e.test.ts` (File > Open with a `.frec`) |
-| P-08 | Export a playable MP4 and audio | Export dialog (player Export button, More > Export..., Ctrl/Cmd E): MP4 (H.264, AAC), WebM, M4A, WAV; for studio takes a layout (camera in a corner, screen, camera, side by side); captions none, as an `.srt` beside it, or burnt in. Documents is a thin front end over edit's exporter, FormRec's one exporter: the job hands the format, layout and captions to `EditService.startExport`, which renders the current edit at 720p (cuts, clips, Live Rewind trims left out, the annotate track, effects' bubble, frame and music) as `edit-v-720p[-].`; sidecar captions are edit's captions for the edited timeline, written as `documents-export-<8 hex>.srt`. The job keeps edit's progress; the file downloads through the media route. Without FFmpeg the dialog says what to install and the package still works. | `src/features/documents/media.ts` (`renderExport`), `service.ts` (`startExport`, `exportsOf`); `src/features/edit/service.ts` (`startExport`, `captionsSrt`); `POST /api/documents/export/:id`, `GET /api/documents/jobs/:job`, `GET /api/documents/exports/:id`; MCP `formrec_export`; `[data-documents-export]`, `[data-documents-dialog="export"]` | `documents-routes.test.ts` (MP4 with sidecar captions through the job route, rendered by edit; a studio take with screen, camera bubble, two microphones and burnt captions checked by ffprobe as 1280x720 with audio); `edit-exportwire.test.ts` "documents' export is rendered by edit with its layout and sidecar captions" (side layout read back by pixel, rewound words absent from the .srt); `documents-e2e.test.ts` (export from the dialog, screenshot `documents-export-done.png`) |
+| P-01 | A recording as one portable file (FormCut `.fc`) | `.frec` package: a zip, `manifest.json` first (`format: "formrec-recording"`, `version: 1`, `app`, `id`, `title`, `createdAt`, `exportedAt`, `files` with every file's name and size), then `recording.json`, then every file of the folder a fixed rule allows (core media and captions, `.json` sidecars, the files features declare for the media route). Media stored, text deflated. Import: names checked against the same rule and a flat-name rule, entry count, entry size and total size capped, zip-slip, absolute and backslash paths, symlinks, folders, encryption, zip64 and duplicate names refused, inflated bytes counted (a lying size cannot inflate past it), CRC checked, files written O_EXCL into a staging folder that becomes the recording with one rename under a fresh id; the manifest must list exactly the files present; `recording.json` parsed with `RecordingSchema`; the codebase root dropped, commit and repo link kept. Exports (`documents-export-*`) and `session.json` are left out. Zip reader and writer in-tree, `node:zlib` only. | `src/features/documents/zip.ts`, `package.ts`; `GET /api/documents/package/:id`, `POST /api/documents/import`; MCP `formrec_package_export`, `formrec_import`; File > Export as FormREC Package... `[data-documents-cmd="documents-export-package"]`, More > Export as FormREC Package `[data-recording-action="documents-package"]`, Export dialog `[data-documents-package]` | `documents-zip.test.ts` (writer read back by the reader and by `unzip -t`; zip-slip, absolute, backslash, symlink, folder, huge, too many, duplicate, encrypted, deflate bomb, bad CRC, not a zip); `documents-package.test.ts` (round trip into new ids twice, original untouched, 0600/0700, staging cleaned; every refusal; bomb leaves nothing; adopt never lands on an existing recording); `documents-routes.test.ts` (download, re-open by path); `documents-e2e.test.ts` (File > Open with a `.frec`) |
+| P-08 | Export a playable MP4 and audio | Export dialog (player Export button, More > Export..., Ctrl/Cmd E): MP4 (H.264, AAC), WebM, M4A, WAV; for studio takes a layout (camera in a corner, screen, camera, side by side); captions none, as an `.srt` beside it, or burnt in. Documents is a thin front end over edit's exporter, FormREC's one exporter: the job hands the format, layout and captions to `EditService.startExport`, which renders the current edit at 720p (cuts, clips, Live Rewind trims left out, the annotate track, effects' bubble, frame and music) as `edit-v-720p[-].`; sidecar captions are edit's captions for the edited timeline, written as `documents-export-<8 hex>.srt`. The job keeps edit's progress; the file downloads through the media route. Without FFmpeg the dialog says what to install and the package still works. | `src/features/documents/media.ts` (`renderExport`), `service.ts` (`startExport`, `exportsOf`); `src/features/edit/service.ts` (`startExport`, `captionsSrt`); `POST /api/documents/export/:id`, `GET /api/documents/jobs/:job`, `GET /api/documents/exports/:id`; MCP `formrec_export`; `[data-documents-export]`, `[data-documents-dialog="export"]` | `documents-routes.test.ts` (MP4 with sidecar captions through the job route, rendered by edit; a studio take with screen, camera bubble, two microphones and burnt captions checked by ffprobe as 1280x720 with audio); `edit-exportwire.test.ts` "documents' export is rendered by edit with its layout and sidecar captions" (side layout read back by pixel, rewound words absent from the .srt); `documents-e2e.test.ts` (export from the dialog, screenshot `documents-export-done.png`) |
| P-11 | Posters for library cards | One poster: edit's auto thumbnail `edit-thumb.png` (1280x720, the sharp and typical frame of the edit), made by edit when a recording is saved. Documents runs no FFmpeg of its own on save; `POST /api/documents/poster/:id` asks edit for it when there is none (`{ made, file: "edit-thumb.png" }`); served by the media route; carried in packages. Older recordings' `documents-poster.png` is still served. Drawing it on cards is the library's. | `src/features/documents/media.ts` `makePoster` (calls `serviceFor(library).thumbnail`), `index.ts` poster route | `documents-routes.test.ts` (made after an import from the saved event, served as image/png, the poster route answers `edit-thumb.png`, no `documents-poster.png`); `edit-exportwire.test.ts` "the poster is edit's auto thumbnail" |
-| P-10 | Deep links | One pure parser, `parseDeepLink`, the only one in FormRec (the desktop app's own is gone), for `formrec://open?file=` (also `?path=`), `formrec://record?mode=screen|camera|audio`, `formrec://f/[?t=]`, `formrec://share/`, `formrec://library`, `formrec://home`, `formrec://demo/`; anything else is `{ action: "none", error }`. The server answers it at `GET /api/documents/deeplink?url=`, which the desktop app calls for every link and file the operating system hands it (`src-tauri/src/links.rs` `file_link` emits `open?file=`); the page routes a link given to it as `window.dispatchEvent(new CustomEvent('formrec:open-link', { detail: link }))`, and opens a file given as `formrec:open-file` `{ detail: { path } }` (the desktop's file association), ending on the player. MCP results carry `formrec://f/`. | `src/features/documents/deeplink.ts`; `web/src/features/documents.ts` `openLink` and the `formrec:open-file` listener; `web/src/features/desktop.ts` `openLink` | `documents-deeplink.test.ts` (every form, the shell's file_link form, `?path=`, Windows and POSIX paths, and malformed or hostile links); `documents-routes.test.ts` (the route); `desktop-feature.test.ts` "a file the shell hands over is opened by documents and ends on the player" |
+| P-10 | Deep links | One pure parser, `parseDeepLink`, the only one in FormREC (the desktop app's own is gone), for `formrec://open?file=` (also `?path=`), `formrec://record?mode=screen|camera|audio`, `formrec://f/[?t=]`, `formrec://share/`, `formrec://library`, `formrec://home`, `formrec://demo/`; anything else is `{ action: "none", error }`. The server answers it at `GET /api/documents/deeplink?url=`, which the desktop app calls for every link and file the operating system hands it (`src-tauri/src/links.rs` `file_link` emits `open?file=`); the page routes a link given to it as `window.dispatchEvent(new CustomEvent('formrec:open-link', { detail: link }))`, and opens a file given as `formrec:open-file` `{ detail: { path } }` (the desktop's file association), ending on the player. MCP results carry `formrec://f/`. | `src/features/documents/deeplink.ts`; `web/src/features/documents.ts` `openLink` and the `formrec:open-file` listener; `web/src/features/desktop.ts` `openLink` | `documents-deeplink.test.ts` (every form, the shell's file_link form, `?path=`, Windows and POSIX paths, and malformed or hostile links); `documents-routes.test.ts` (the route); `desktop-feature.test.ts` "a file the shell hands over is opened by documents and ends on the player" |
| P-02 | Open from disk and the file association | File > Open... (Ctrl/Cmd O) picks a `.frec` (posted to `POST /api/documents/import`) or a video (MP4, MOV, WebM, M4V, WMV, AVI: posted to the library's `POST /api/library/import`, the one importer, then put first in the recent list); dropping one anywhere on the window does the same (a fixed drop sheet, hidden until a drag; a drop the library view already took is not opened twice); `POST /api/documents/open {path}` opens a file on this computer by path for the desktop shell's file association and `formrec://open?file=`. Files are recognised by their first bytes, never their names. The association data for the shell is below. | `web/src/features/documents.ts` (`openUpload`, picker `[data-documents-picker]`, sheet `[data-documents-sheet]`); `src/features/documents/service.ts` (`sniff`, `openFile`, `checkOpenPath`) | `documents-e2e.test.ts` (File > Open with the file chooser, drag and drop, screenshot `documents-drop-sheet.png`); `documents-routes.test.ts` (open by path; relative, `/etc/passwd`, missing and non-media refused) |
| P-03 | Recent list | `/documents/recent.json` (20 entries: id, openedAt, the file it came from). Opening a recording in the player, importing, File > Open and `formrec_open` put it first. File > Open Recent lists the last ten that still exist (filled while the menu is closed, so an open menu never changes), with Clear Recent. The recent list also answers whether the source file is still there. Home's Recent section shows this list first, then the newest recordings, six cards with posters (0.4.0 fix, item 40). | `GET/POST/DELETE /api/documents/recent`; `[data-documents-recent]`, `[data-documents-recent-item]`; MCP `formrec_recent`, `formrec_open`; Home `[data-home-recent]`, `recentOrder` in `web/src/library-model.ts` | `documents-routes.test.ts` (order, path and fileExists, touch, 404 for unknown ids, drop one); `documents-e2e.test.ts` (screenshots `documents-file-menu.png`, `documents-home-file-menu.png`); `dedupe-routes.test.ts` "item 40"; `dedupe-e2e.test.ts` "Home draws edit's posters in documents' recent order" |
| P-12 | Import plain media | One importer for videos (0.4.0 fix, item 27): File > Open, drag and drop, `POST /api/documents/import` and `POST /api/documents/open` hand every video to the library's importer (`importVideoFile` in `src/features/library/index.ts`): a `source: "person"` recording, WebM kept as `video.webm` with a seek index, MP4, MOV and M4V remuxed and WMV and AVI converted to `library-import.mp4`, the length from ffprobe, the title from the file name, noted as imported in the library. What a file is still comes from its first bytes; `.frec` packages stay with documents. `formrec_import` (documents' MCP tool) still uses documents' own `importVideo` (not this fix's file). | `src/features/documents/index.ts` `openAny` | `dedupe-routes.test.ts` "item 27" (a WMV through documents' import converted, an MP4 by path copied, a WebM, the library's Imported note, a package back through documents); `documents-routes.test.ts`, `documents-e2e.test.ts` (dropped clip opens in the player) |
@@ -27,7 +27,7 @@ Routes (behind the token): `GET /api/documents/guide/:id` (what a guide would ho
Code: `src/features/documents/guide.ts`, `guide-publish.ts`, `guide-run.ts`, `index.ts`, `tools.ts`; `src/features/interactive/build.ts` (`drawHotspot`); `src/runner/browsers.ts`. Tests: `tests/documents-guide.test.ts`, `tests/documents-guide-e2e.test.ts`, `tests/audit2-guide.test.ts`.
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R2-34, R2-48 (further) | Document workflow that adds screenshots to steps | A guide of every shown step with its picture, title and words, as one HTML page, with the hotspot drawn in by pixel and the demo's own pictures unchanged; says what it would hold before anything is made and refuses a recording with no steps. | `guide.ts` | `documents-guide` "says what it would hold before anything is made, and refuses a recording with no steps", "makes the HTML: three numbered steps, each picture inline with its hotspot, the words escaped, nothing fetched", "loads in Chromium with every picture decoded, in order", "draws the hotspot into the guide's copy, by pixel, and leaves the demo's own pictures as they were" |
| R2-34, R2-48 (further) | Same | Markdown with an `images/` folder in a valid zip, the text escaped; a PDF printed by Chromium with the titles and all pictures, which loads nothing from the network. | `guide.ts`, `runner/browsers.ts` | `documents-guide` "writes Markdown with an images folder, in a valid zip, with the text escaped", "prints the PDF with Chromium: one page per step or fewer, the titles and all three pictures in it"; `audit2-guide` "the recorder browser check can read the installed Playwright (it said no on every machine)", "loads nothing from the network" |
@@ -53,7 +53,7 @@ one file, as described in P-01. The id is the handle links and agents use; a ren
## For the desktop agent (src-tauri)
- File association in `tauri.conf.json` `bundle.fileAssociations`:
- `{ "ext": ["frec"], "name": "FormRec Recording", "description": "A FormRec recording package", "role": "Editor", "mimeType": "application/x-formrec", "rank": "Owner" }`;
+ `{ "ext": ["frec"], "name": "FormREC Recording", "description": "A FormREC recording package", "role": "Editor", "mimeType": "application/x-formrec", "rank": "Owner" }`;
optionally a second entry for `["webm", "mp4", "mov"]` with `role: "Viewer"`, `rank: "Alternate"`. Icon: the
document icon can reuse `src-tauri/icons/icon.icns` / `icon.ico` (no separate document icon was made). On macOS
`exportedType` UTI `ai.nodemode.formrec.recording` conforming to `public.zip-archive`, `public.data`.
diff --git a/docs/parity/edit.md b/docs/parity/edit.md
index 3aa2a6d..bf79f22 100644
--- a/docs/parity/edit.md
+++ b/docs/parity/edit.md
@@ -1,14 +1,14 @@
# Parity: edit
-Editing in FormRec is non-destructive. Each recording gets `edit.json` beside `recording.json`: an edit decision list (the spans of the recording kept, in order, plus clips stitched in from other recordings or uploaded files), the export look and sound (frame, music, noise reduction, burnt-in captions, replaced speech), and every version. Exports are new files in the recording's folder (`edit-v-p.mp4`, `.webm`, `.gif`, `.m4a`, `.wav`), served by the media route through the feature's `files` pattern `/^edit-[a-z0-9-]{1,40}\.(mp4|webm|gif|m4a|wav|png|jpg|mp3|ogg|mov)$/`. FFmpeg comes from `FORMREC_FFMPEG` or the PATH; when it is missing the editor, Settings > Editing and every API answer say so.
+Editing in FormREC is non-destructive. Each recording gets `edit.json` beside `recording.json`: an edit decision list (the spans of the recording kept, in order, plus clips stitched in from other recordings or uploaded files), the export look and sound (frame, music, noise reduction, burnt-in captions, replaced speech), and every version. Exports are new files in the recording's folder (`edit-v-p.mp4`, `.webm`, `.gif`, `.m4a`, `.wav`), served by the media route through the feature's `files` pattern `/^edit-[a-z0-9-]{1,40}\.(mp4|webm|gif|m4a|wav|png|jpg|mp3|ogg|mov)$/`. FFmpeg comes from `FORMREC_FFMPEG` or the PATH; when it is missing the editor, Settings > Editing and every API answer say so.
Server: `src/features/edit/` (`schema.ts`, `ops.ts`, `media.ts`, `frames.ts`, `service.ts`, `adapters.ts`, `tts.ts`, `handoff.ts`, `index.ts`). Client: `web/src/features/edit.ts` (registrations), `web/src/edit-editor.ts` (the view), `web/src/edit-api.ts`, `web/src/edit-logic.ts`, `web/styles/edit.css`. Routes are listed at the top of `src/features/edit/index.ts`, all under `/api/edit/`.
The P ids are those of `P1-family-parity.md`: P-08 (export MP4 and audio), P-09 (the hand-off set) and P-11 (posters). (The build prompt numbered them P-05, P-06/P-07 and P-09.)
-Edit's exporter is FormRec's one exporter: documents' Export dialog and `formrec_export` (with the dialog's layout and captions), share's Make MP4 and edit's own Download MP4 and `formrec_edit_export` all render through `EditService.startExport`. Every render starts from the recording's kept ranges (`src/studio/meta.ts` `keptRanges`: Live Rewind trims are not in it), draws the annotate track, and places effects' bubble.
+Edit's exporter is FormREC's one exporter: documents' Export dialog and `formrec_export` (with the dialog's layout and captions), share's Make MP4 and edit's own Download MP4 and `formrec_edit_export` all render through `EditService.startExport`. Every render starts from the recording's kept ranges (`src/studio/meta.ts` `keptRanges`: Live Rewind trims are not in it), draws the annotate track, and places effects' bubble.
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R2-01 | Trim with waveform, zoom | Timeline of the kept spans with the filmstrip and the waveform; drag the start and end handles to trim; zoom 1x to 50x. | `edit-editor.ts` `[data-edit-handle]`, `[data-edit-zoom]`, `[data-edit-wave]`; `ops.ts` `trim`; `POST /api/edit/:id/ops {op:'trim'}`; MCP `formrec_edit_trim` | `edit-ops.test.ts` "trims, splits, deletes"; `edit-api.test.ts` "trims, cuts by transcript words..."; screenshot `edit-editor.png` |
| R2-02 | Split, delete a middle range | Split at the playhead; drag a range and Delete it, or Keep only it. Many edits in one session, each kept. | `[data-edit-split]`, `[data-edit-delete]`, `[data-edit-keep]`; `ops.ts` `splitAt`, `deleteRange`; MCP `formrec_edit_cut` | `edit-ops.test.ts`; `edit-e2e.test.ts` "cuts a selection and transcript words" |
@@ -17,11 +17,11 @@ Edit's exporter is FormRec's one exporter: documents' Export dialog and `formrec
| R2-06 | Filler word removal | Fillers flagged in the transcript or common English hesitations, plus repeated words ("the the"); listed as suggestions to cut, or cut at once. Can be undone (versions). | `ops.ts` `fillerSuggestions`; `GET :id/suggestions?kind=fillers|repeats`; `[data-edit-find="fillers"]`; MCP `formrec_edit_remove_fillers` | `edit-ops.test.ts` "finds filler words and repeats"; `edit-api.test.ts` "suggests fillers" |
| R2-07 | Silence removal | FFmpeg `silencedetect` on the composed sound; pauses over 1.2 s (adjustable) are cut leaving 0.25 s either side. | `ops.ts` `parseSilences`, `silenceSuggestions`; `service.ts` `silences`; `[data-edit-find="silences"]`; MCP `formrec_edit_remove_silences` | `edit-api.test.ts` (the 2 s gap in a real tone is found); screenshot `edit-cleanup.png` |
| R2-08 | Revert to original | Revert to original, saved as a new version so the edit left behind stays restorable. | `[data-edit-revert]`; `POST :id/revert {}`; MCP `formrec_edit_revert` | `edit-api.test.ts` "...versions every edit and reverts" |
-| R2-09 | Version history | Every edit is a version (number, time, label, edited length); Restore any; Undo goes back one. Loom has none; FormRec keeps up to 1000. | `edit.json` `versions`; `[data-edit-versions]`, `[data-edit-restore]`, `[data-edit-undo]` | `edit-api.test.ts`; `edit-e2e.test.ts` (four versions, restore v2); screenshot `edit-versions.png` |
+| R2-09 | Version history | Every edit is a version (number, time, label, edited length); Restore any; Undo goes back one. Loom has none; FormREC keeps up to 1000. | `edit.json` `versions`; `[data-edit-versions]`, `[data-edit-restore]`, `[data-edit-undo]` | `edit-api.test.ts`; `edit-e2e.test.ts` (four versions, restore v2); screenshot `edit-versions.png` |
| R2-10 | Fix mistakes with text to speech | Select words or a range, type the right words; flite, espeak-ng or espeak (or `FORMREC_TTS`) speaks them, the span is muted and the voice placed there, sped up to 2x or padded to fit. Labelled as a synthetic voice, not the speaker's. At most 10 per recording. Says what to install when no engine is present. | `tts.ts`; `POST :id/tts`; `[data-edit-tts]`, `[data-edit-tts-engine]`; `media.ts` tts mix | `edit-api.test.ts` "replaces a span with synthesised speech" (a stand-in program with flite's arguments; flite itself is not installed here) |
| R2-11 | Editing uploaded videos | Any recording in the library is editable, including uploads; files (MP4, MOV, WebM, audio) can be added as clips, normalised by FFmpeg. | `POST :id/clip`; `service.ts` `importMedia` | `edit-api.test.ts` (a MOV clip stitched and exported) |
| R2-12 | Editor in desktop app vs web | One editor, the `#/edit/` route, in the browser and in the desktop window (same client). | `viewRoutes` `edit` in `web/src/features/edit.ts` | `edit-e2e.test.ts` opens the route |
-| R2-14 | Backgrounds | A colour or gradient frame around the picture with a margin, rendered into exports (Loom leaves it out of downloads; FormRec includes it). | `state.background`; `media.ts` `pad` / `gradients`; `[data-edit-bg]` | `edit-ops.test.ts` "render graph"; `edit-api.test.ts` export with gradient; frame checked by eye |
+| R2-14 | Backgrounds | A colour or gradient frame around the picture with a margin, rendered into exports (Loom leaves it out of downloads; FormREC includes it). | `state.background`; `media.ts` `pad` / `gradients`; `[data-edit-bg]` | `edit-ops.test.ts` "render graph"; `edit-api.test.ts` export with gradient; frame checked by eye |
| R2-15 | Noise suppression in post | Two parts. The edit's own `noise` setting (off, light, strong or voice) is FFmpeg `afftdn`, or `arnndn` with a model at `FORMREC_RNNOISE_MODEL` (falls back to strong `afftdn`, with a note), applied by the edit's exports. The effects feature's per-recording Noise filter plays through Web Audio in the player and on share pages and leaves the original audio untouched; an export's "Apply noise filter" (`noiseFilter`) writes a separate `-clean` file that a share or a download never hands out. The workspace owns the default (see effects.md). | `state.noise`, `[data-edit-noise]`; `service.ts` `noiseFilter`, `-clean` name; `media.ts` denoise | `edit-ops.test.ts` (afftdn in graph); `edit-api.test.ts` cleanup export; `effects-noise-export.test.ts` (floor lowered, filtered file kept out of shares) |
| R2-05 | Trim from Live Rewind | A studio take's Live Rewind trims are not in `keptRanges` (`src/studio/meta.ts`); `baseState` starts an unedited recording, and a revert to the original, from the kept ranges, and `effective` cuts the trims from every export, GIF and thumbnail, so an edit saved before a trim never brings the footage back. Camera-off ranges hide the bubble. | `src/studio/meta.ts` `keptRanges`; `service.ts` `baseState`, `effective` | `edit-exportwire.test.ts` "keptRanges ..." and the kept-ranges export (5 s export of a 6 s take) |
| R2-13 | Annotations in the edit | The annotate track is drawn into every export through annotate's `readTrack` and `prepareExport`, at the edited time of each item's source time; items in cut spans are not drawn. | `adapters.ts` `annotateFilter`; `media.ts` `chainAnnotate` | `edit-exportwire.test.ts` "draws a box and a text callout written by annotate at the edited time of their source time, and not an item that was cut" |
@@ -35,7 +35,7 @@ Edit's exporter is FormRec's one exporter: documents' Export dialog and `formrec
| R4-16 | Duplicate | "Copy of ", a new id and today's date; media, transcript, effects, annotations and edit are copied; comments, views and share data are not. | `POST :id/duplicate`; `recordingActions` `duplicate`; MCP `formrec_edit_duplicate` | `edit-api.test.ts` "duplicates a recording"; `edit-e2e.test.ts` (menu item) |
| P-08 | Export MP4 and audio, studio takes as one file | MP4 (H.264/AAC), WebM, GIF, M4A, WAV at 360p to 1080p. A studio take's screen, the host camera as a bubble and every microphone at their offsets become one file. The bubble is effects' own layout: `effects.json` read with effects' `EffectsSchema` and placed with `bubbleRect` and `bubbleRadius` (circle, rounded, square, portrait; a corner or a dragged spot; sizes 1 to 5), hidden during effects' hidden spans and the studio's camera-off ranges (and not drawn for a composed camera), and filling the picture during fill spans. Layouts for documents' dialog: bubble, screen, camera, side by side (`edit-v-p-.`). The annotate track (boxes, arrows, strokes, highlights, text, blur, zoom, clicks, confetti) is drawn through annotate's `readTrack` and `prepareExport` on the main picture before the cuts, so each item shows at the edited time of its source time and items in cut spans are not drawn. Live Rewind trims are cut from every render. Progress over `GET /api/edit/-/jobs/:job` and MCP progress notifications. Since 0.8.0 the exporter also takes a span of the timeline, heights 1280 and 1920 (the long side of a 9:16 clip), a `stack` layout (screen above camera), a centred `cover` crop, and caption cues with a style; the clips feature (`clips.md`) is its caller. Keystrokes (`keycast.md`) are drawn after the annotate graph, and automatic zooms (`autozoom.md`) and automatic blurs (`redact.md`) are annotate items, so they come through the same graph. | `media.ts` `recordingSource`, `buildGraph`, `chainAnnotate`; `adapters.ts` `readBubble`, `bubbleBox`, `annotateFilter`; `service.ts` `baseState`, `effective`; `POST :id/export {format,height,captions,layout}`; MCP `formrec_edit_export` | `edit-api.test.ts` (h264 640x360 with sound, duration equals the edit's); `edit-exportwire.test.ts` (real FFmpeg renders read back by pixel: annotate's box, text and confetti at the mapped time, the cut item absent; effects' top-left square bubble at `bubbleRect`, gone while the camera was off; the side layout; the kept ranges); `edit-ops.test.ts` "reads effects.json in effects' own shape"; screenshot `edit-export.png` |
| P-09 | Send to FormEncoder, Open in FormWav, keep Open in FormCut | Send to FormEncoder calls its `encode` tool over its MCP server (`FORMENCODER_MCP_URL`, default 127.0.0.1:8270/mcp) with the MP4; Open in FormWav calls `formwav_import_audio` (`FORMWAV_MCP_URL`, or `FORMWAV_ENGINE`/mcp) with a WAV; Open in FormCut is unchanged and also offered in the editor. Loopback addresses only; an app that does not answer gives a 502 that says to open it. | `handoff.ts`; `POST :id/send`; `[data-edit-send]` | `edit-api.test.ts` "sends an export to FormEncoder over its MCP server" (a real MCP server stands in), FormWav not running gives 502; "sends an export to FormWav over its MCP server, found from FORMWAV_ENGINE, and reports what FormWav refuses" (a fake FormWav MCP server; the real FormWav and FormEncoder were not run here) |
-| P-11 | Posters for own recordings | When a recording is saved and FFmpeg is present, the auto thumbnail is written as `edit-thumb.png` in the background (turn off with `FORMREC_EDIT_POSTERS=0`). It is FormRec's one poster: documents makes none of its own (its poster route asks edit, its package carries `edit-thumb.png`), and share's link-preview JPEG is made from it. Drawing it on library and Home cards belongs to the library feature. | `index.ts` `posters`; `edit-thumb.png`; `src/features/documents/media.ts` `makePoster` | `edit-api.test.ts` (auto thumbnail); `documents-routes.test.ts` (made from the saved event after an import, served as image/png, no `documents-poster.png`); `edit-exportwire.test.ts` "the poster is edit's auto thumbnail" |
+| P-11 | Posters for own recordings | When a recording is saved and FFmpeg is present, the auto thumbnail is written as `edit-thumb.png` in the background (turn off with `FORMREC_EDIT_POSTERS=0`). It is FormREC's one poster: documents makes none of its own (its poster route asks edit, its package carries `edit-thumb.png`), and share's link-preview JPEG is made from it. Drawing it on library and Home cards belongs to the library feature. | `index.ts` `posters`; `edit-thumb.png`; `src/features/documents/media.ts` `makePoster` | `edit-api.test.ts` (auto thumbnail); `documents-routes.test.ts` (made from the saved event after an import, served as image/png, no `documents-poster.png`); `edit-exportwire.test.ts` "the poster is edit's auto thumbnail" |
Player: the layer `edit-playback` puts an Edited/Original switch over the picture (hidden, space-free, until the recording has an edit) and, while Edited, skips cut spans every animation frame. Spans from other recordings or files are skipped in the player and appear in the export; the editor says so. Edit is also in the player header (`[data-player-edit]`), and Edit and Duplicate on library cards and the More menu.
diff --git a/docs/parity/effects.md b/docs/parity/effects.md
index 29bd6cf..6c8e533 100644
--- a/docs/parity/effects.md
+++ b/docs/parity/effects.md
@@ -1,10 +1,10 @@
-# Effects: the camera, the bubble and the microphone (FormRec 0.4.0)
+# Effects: the camera, the bubble and the microphone (FormREC 0.4.0)
Feature id `effects`. Server: `src/features/effects/` (`index.ts` routes and MCP tools, `schema.ts` the zod schema and the geometry). Client: `web/src/features/effects.ts` (registrations), `shared/effects-layout.ts` (layout, geometry, size steps, drop snapping, span clock; the web client and the server share it), `web/src/effects-pipeline.ts` (pure image maths, the `Pipeline`, the avatar stream), `web/src/effects-render.ts` (WebGL2 drawing and the frame loop), `web/src/effects-worker.ts` (the worker that draws), `web/src/effects-audio.ts` and `web/src/effects-gate.ts` (microphone), `web/src/effects-noise-dsp.ts` (resampler, frame assembler, RNNoise loader, mix, CPU guard), `web/src/effects-noise.ts` (the worklet), `web/src/effects-noise-node.ts` (loading and guarding it), `web/src/effects-noise-player.ts` (the playback filter), `src/features/effects/noise.ts` (defaults and routes), `web/vendor/rnnoise/` (the vendored module and its licences). Styles: `web/styles/effects.css`. Tests: `tests/effects-schema.test.ts`, `tests/effects-pipeline.test.ts`, `tests/effects-routes.test.ts`, `tests/effects-browser.test.ts`, `tests/effects-noise-dsp.test.ts`, `tests/effects-noise-browser.test.ts`, `tests/effects-noise-playback.test.ts`, `tests/effects-noise-export.test.ts`, `tests/effects-noise-routes.test.ts`, and for the landscape shape and the export's frame `tests/exportparity-schema.test.ts`, `tests/exportparity-browser.test.ts`, `tests/exportparity-frame.test.ts`. The export's frame: `src/features/edit/bubble-frame.ts`.
## Rows
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R1-05 | Avatar instead of camera | The panel's "Bubble picture" switch: Camera or Avatar. Avatar records a still picture (the viewer's own, cropped to 256 px) or initials on a colour as the camera track, so the player and any export show it like a camera. When a recording has no camera track, `effects.json` `avatar` (initials, or `effects-avatar.png` uploaded beside the recording) is drawn as the bubble by the player layer. | `avatarStream` in effects-pipeline.ts; `[data-effects-source]`, `[data-effects-avatar-*]`; `PUT /api/effects/:id/avatar`; `effects.json` `avatar`; MCP `formrec_set_bubble_layout` `avatar` | effects-browser "processes a 720p camera..." (avatar stream colour); effects-routes "takes an avatar picture as a PNG only..."; effects-schema (avatar validation). The player's avatar-without-camera drawing has no browser test. Audited 0.5.0: the AI avatar that takes the camera bubble's place when the camera is off is a separate studio plugin (`web/src/avatar-studio.ts`, drawn by `shared/avatar-draw.ts`: three looks, classic, minimal and robot, plus a photo puppet; always labelled "AI avatar"; saved as the avatar track); it is documented in ai.md and tested by `avatar-share-e2e`, `avatar-photo` and `avatar-motion` (all pass). |
| R1-14 | Bubble across apps (desktop) vs one tab | The layout is recording data: `effects.json` per recording and the viewer's choices in `localStorage` `formrec.effects` (`Prefs` in shared/effects-layout.ts), which the panel also saves to `/effects/prefs.json` through `GET` and `PUT /api/effects/-/prefs` (debounced, and once when the panel is built). The floating window over other apps (desktop `desktop-bubble.ts`) and the extension's tab bubble (`src/features/extension/gate.ts`) read those prefs, so shape, size, corner and mirror follow the studio's choices; with nothing stored they use defaults. In the browser the bubble is laid out on the studio stage and the player. | shared/effects-layout.ts `Prefs`, `bubbleRect`; schema.ts; `src/features/effects/index.ts` `readPrefs`, `changePrefs` | effects-schema "is the same geometry on the client"; effects-pipeline "reads remembered choices defensively"; desktop-feature "the bubble shows the camera"; extension-pair "serves the camera bubble layout" (all pass) |
@@ -13,7 +13,7 @@ Feature id `effects`. Server: `src/features/effects/` (`index.ts` routes and MCP
| R1-17 | Bubble position | The four corners (buttons) or anywhere by dragging the bubble on the studio stage (or the #/effects check view); a drop near a corner snaps to it; remembered. | `dropPosition`; `[data-effects-corner]`, `[data-effects-handle]` | effects-pipeline "snaps a dragged bubble..."; effects-browser check-view test (drag to the centre, stored position 0.5) |
| R1-18 | Bubble fills the screen | Double-click the bubble on the stage, the "Fill the screen" button or the `effects.fill-bubble` command: while recording this becomes a `fill` span on the take's clock, and the player gives the camera the whole picture during it. | `SpanClock`; `[data-effects-fill]`; `data-effects-span="fill"` | effects-pipeline "records hide and fill spans..."; effects-browser check view (double-click sets fill) and player (fill span covers the stage); screenshots effects-check-fill.png, effects-player-fill.png |
| R1-20 | Camera frames | Ring, thick ring, glow, double, or none, in any colour; drawn with box-shadow so the bubble's box never changes. Exports draw the same frame: `src/features/edit/bubble-frame.ts` makes one transparent layer around the bubble with FFmpeg's `geq` from the distance to the bubble's rounded box (ring 3 px, thick 6 px, double two 3 px rings with a 3 px gap of black at 0.45, glow a 3 px spread with an 18 px blur, all at 1080p and scaled with the export's height), media.ts pads the masked camera to the layer's size and lays the layer over it, so the frame lasts as long as the camera, follows its corner radius and goes with it in hidden and fill spans. No mask file; the same input gives the same pixels. | `[data-effects-frame]`; `bubble.frame`; `frameLayer`, `frameUnit` (bubble-frame.ts); media.ts `buildGraph` | effects-browser player test (thick frame colour in the computed box-shadow); exportparity-frame (real 1080p exports of ring, thick, glow, double and none, each against the same layout drawn in Chromium with the real effects.css: the camera inside, the frame colour at the ring, the outer edge on eight rays within 2 px, the glow's fade within 0.14 of the blue share, none leaves the grey) |
-| R1-21 | Virtual backgrounds and blur | Blur, a solid colour, four preset gradients (Dusk, Studio, Forest, Ocean) or the viewer's picture. Blur uses the camera's own `backgroundBlur` constraint when the platform offers it; everything else (and blur elsewhere) uses FormRec's own segmentation, see Segmentation below. | `Renderer` in effects-render.ts; `browserBlur`; `[data-effects-background]` | effects-browser "processes a 720p camera..." (blur and preset run with `builtin` segmentation); effects-pipeline "separates a person-coloured figure..." |
+| R1-21 | Virtual backgrounds and blur | Blur, a solid colour, four preset gradients (Dusk, Studio, Forest, Ocean) or the viewer's picture. Blur uses the camera's own `backgroundBlur` constraint when the platform offers it; everything else (and blur elsewhere) uses FormREC's own segmentation, see Segmentation below. | `Renderer` in effects-render.ts; `browserBlur`; `[data-effects-background]` | effects-browser "processes a 720p camera..." (blur and preset run with `builtin` segmentation); effects-pipeline "separates a person-coloured figure..." |
| R1-22 | Camera filters | None, Vivid, Mono, Chrome, Warm, Vibey, Rainbow (a moving hue wash), as colour matrices in the shader. | `filterMatrix`; `[data-effects-filter]` | effects-pipeline "colour filters"; effects-browser (Mono output pixels are grey) |
| R1-23 | Touch up my appearance | A slider: an edge-preserving smoothing weighted by a skin-tone test, so skin is smoothed and edges, eyes and hair are kept; remembered. | shader `uTouch`, `skinLikelihood`; `[data-effects-touchup]` | effects-pipeline "knows skin tones..."; effects-browser touch-up run |
| R1-24 | Auto lighting | Levels from each frame's histogram (2nd and 98th percentiles, mean pulled toward 0.47), bounded so a dark room's noise is not blown up, and eased over frames so it never flickers. | `frameStats`, `autoLevels`; `[data-effects-autolight]` | effects-pipeline "auto lighting" |
@@ -66,7 +66,7 @@ The studio calls the studio plugins (`camera`, `screen`, `mic`, `panel`, `stage`
## Segmentation: what quality it reaches
-The browser's `backgroundBlur` constraint is used when the camera offers it (Chrome on some platforms); it does blur only. Everywhere else FormRec segments a 160 x 90 copy of each frame: a head-and-shoulders prior, a colour model learned as it runs (background colours from the frame's edges, person colours from its centre, then its own confident answers), and motion near the body, smoothed in space and over frames, upsampled and feathered in the shader. On a synthetic person-coloured figure against a distinct background it separates cleanly within 12 frames (unit test). It has not been measured on real people: the test machine's fake camera shows a synthetic pattern. Expected weak spots: hair or clothes close to the wall's colour, hands far from the body, a person sitting far off centre, and edges that lag a fast move by a few frames. It is good enough for a blurred background behind a centred speaker; for a replaced background it is noticeably rougher than a learned model. No model was vendored.
+The browser's `backgroundBlur` constraint is used when the camera offers it (Chrome on some platforms); it does blur only. Everywhere else FormREC segments a 160 x 90 copy of each frame: a head-and-shoulders prior, a colour model learned as it runs (background colours from the frame's edges, person colours from its centre, then its own confident answers), and motion near the body, smoothed in space and over frames, upsampled and feathered in the shader. On a synthetic person-coloured figure against a distinct background it separates cleanly within 12 frames (unit test). It has not been measured on real people: the test machine's fake camera shows a synthetic pattern. Expected weak spots: hair or clothes close to the wall's colour, hands far from the body, a person sitting far off centre, and edges that lag a fast move by a few frames. It is good enough for a blurred background behind a centred speaker; for a replaced background it is noticeably rougher than a learned model. No model was vendored.
## Measurements
diff --git a/docs/parity/engage.md b/docs/parity/engage.md
index 591a8fe..be66ebb 100644
--- a/docs/parity/engage.md
+++ b/docs/parity/engage.md
@@ -4,7 +4,7 @@ The engage feature (`src/features/engage/`, `web/src/features/engage.ts`, `web/s
## Rows
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R2-42 | Call-to-action button (editing) | The owner adds, edits, turns off and deletes buttons with a label, an http(s) URL, a style (filled, quiet, outline) and when to show them: the whole recording, at the end, or between two times. Up to 20 per recording. Not in downloads (they are drawn by the player, not burned in). | `handlers.ts` addCta, editCta, deleteCta; `PATCH/POST/DELETE /api/engage/rec/:id/ctas`; Buttons panel `[data-engage-panel="ctas"]`; MCP `formrec_cta_add` | `engage-handlers.test.ts` "keeps CTAs http(s) only, owner only, and suggests the pages visited"; e2e "comments at a moment ... and shows a CTA"; screenshot `engage-player-comments.png` |
| R2-43 | Auto CTAs (AI) | Suggested buttons from the pages the recording visited (each walkthrough chapter's `pageUrl`) and links in the summary and narration; local and deterministic, no model. Suggestions arrive turned off until the owner accepts them. | `handlers.ts` suggestCtas, addSuggestedCtas; `POST .../ctas/suggest`; `[data-eg-cta-suggest]`, `[data-eg-cta-accept]`; MCP `formrec_cta_suggest` | `engage-handlers.test.ts` (suggested URLs, window, accept) |
@@ -13,7 +13,7 @@ The engage feature (`src/features/engage/`, `web/src/features/engage.ts`, `web/s
| R3-45 | Timestamped comments with threads | Comments at the playhead (or on the whole recording), one-level threads (an answer to an answer joins the root), edit by the author, delete by the author or the owner, links rendered only when http(s), text never parsed as HTML. The owner can turn comments off per recording. Markers on the strip under the picture seek to the moment. | `handlers.ts` addComment, editComment, deleteComment; `web/src/engage-widgets.ts` mountComments, mountTimeline; Comments panel `[data-engage-panel="comments"]`; MCP `formrec_engagement`, `formrec_comment_add` | `engage-handlers.test.ts` (threads, permissions, switches); e2e (comment at 0:12, answer, marker on the strip); on share pages through the listener's forward: `share-wire.test.ts` item 2, `share-wire-e2e.test.ts` (a viewer's comment reaches the owner's Comments panel) |
| R3-46 | @mentions | Typing @ suggests people known in this library (the owner and every viewer the share page identified); picked ids and any @Name in the text become mentions, and each mentioned person gets a notification. | `findMentions`, `listPeople`; `GET .../people`; `[data-eg-suggest]` | `engage-handlers.test.ts` "threads comments, finds mentions ..." and "finds mentions by whole names" |
| R3-47 | Follow a recording | Follow and unfollow per person; followers get a notification for every new comment or reply. | `setFollow`; `PUT/DELETE .../follow`; `[data-eg-follow]` | `engage-handlers.test.ts` (follower notified); a share page viewer follows: `share-wire.test.ts` item 2 |
-| R3-48 | Resolving comments | Loom does not document it; FormRec resolves and reopens threads (the owner or the thread starter), keeps who and when, and the Comments panel shows Open or All. | `editComment` `{ resolved }`; `[data-eg-resolve]`, `[data-eg-filter]`; MCP `formrec_comment_resolve` | `engage-handlers.test.ts` "resolves threads only for the owner or the thread starter"; e2e (resolve, then All shows it) |
+| R3-48 | Resolving comments | Loom does not document it; FormREC resolves and reopens threads (the owner or the thread starter), keeps who and when, and the Comments panel shows Open or All. | `editComment` `{ resolved }`; `[data-eg-resolve]`, `[data-eg-filter]`; MCP `formrec_comment_resolve` | `engage-handlers.test.ts` "resolves threads only for the owner or the thread starter"; e2e (resolve, then All shows it) |
| R3-49 | Reactions on the timeline | Six reaction kinds (like, love, laugh, wow, clap, idea) drawn as inline SVG glyphs, never emoji, pinned to the playhead; the strip shows the 50 most recent; counts per kind; the owner can turn them off. Skin tones do not apply to glyphs. | `addReaction`, `removeReaction`; `mountReactions`, `mountTimeline`; layer `engage-strip` `[data-engage-layer="strip"]`; MCP `formrec_reaction_add` | `engage-handlers.test.ts` (validation, switch, clamp); e2e (idea reaction counted and on the strip); on a share page: `share-wire-e2e.test.ts` (clap counted, seen by the owner) |
| R3-50 | Record a reply | A viewer or the owner records a camera or screen reply (with microphone) in the browser with MediaRecorder, up to five minutes; it uploads as WebM (EBML header checked, 200 MB cap, 0600 file named by the server `engage-reply-.webm`) and becomes a comment or a thread answer with a player. The owner can turn replies off. | `addRecordedReply`, `replyFile`; `POST .../replies?kind=&durationMs=&atMs=&parentId=`, `GET .../replies/:commentId`; feature `files` pattern; `[data-eg-record]` | `engage-handlers.test.ts` "stores a recorded reply ..."; `engage-insights.test.ts` "takes a recorded reply and serves it ..." |
| R3-51 | Tasks (manual) | The owner adds tasks, optionally at a moment (a square marker on the strip); anyone who can see the recording checks them off; the owner is notified. Auto Tasks by AI belong to the ai feature. | `addTask`, `editTask`, `deleteTask`; Tasks panel `[data-engage-panel="tasks"]`; MCP `formrec_task_add`, `formrec_task_done` | `engage-handlers.test.ts` "lets viewers check tasks off but only the owner write them" |
@@ -24,7 +24,7 @@ The engage feature (`src/features/engage/`, `web/src/features/engage.ts`, `web/s
| R3-56 | Insights hub | `#/insights`: totals, views per day over 30, 90 or 365 days, a spotlight (most viewed), top viewers, every recording in a table. Filler-word breakdowns come from the transcripts feature. | `hub.ts` hub, `insights.ts` hubInsights; `web/src/engage-views.ts` hubView `[data-view="insights"]`; command `engage.insights`; MCP `formrec_insights` | `engage-insights.test.ts` "builds the hub"; e2e "draws the hub ..."; screenshot `engage-hub.png` |
| R3-57 | View notifications | Each minute (and whenever Notifications is opened) the share events appended since the last look are read; the first view of a recording notifies the owner, once, naming the viewer when the share page knew them. The notification then reaches the owner by email (mail feature), Slack and the CRM apps, with webhooks as an option; on a relay the views come home with the sync. | `scanShareEvents`; `GET /api/engage/notifications`; `src/features/integrations/notices.ts` | `engage-handlers.test.ts` "notifies the first view once ..."; routes test; `mail-cross` "emails the owner the first time a viewer watches, once"; `apps-slack-engage` "a view becomes a Slack message naming the viewer"; `apps-host-relay` and `apps-host-tunnel` (CRM Task and timeline event); the library-wide scan of share's own lines (recording from the share index or the file's folder): `engage-share-events.test.ts` |
| R3-58 | Comment and reaction notifications | Comments, answers, recorded replies, mentions, reactions, tasks checked off and CTA clicks notify the owner (a per-recording switch for comments); notifications carry the caption spoken at that moment. New ones fire `formrec:notify` `{ title, body, id, route }` for the desktop shell's native notifications. Email goes directly from the owner's account (mail feature) and Slack as a DM or channel message with a link at the moment, through integrations' `notices.ts` and the Slack app. | `afterComment`, `store.notify`, `snippetAt`; `pollNotifications` in `web/src/features/engage.ts` | `engage-handlers.test.ts` (kinds, snippet); e2e notifications view; `mail-cross` "emails the owner when a viewer comments"; `apps-slack-engage` (comment DM with a timestamped link); `integrations-notices` |
-| R3-59 | Daily digest | Loom has none; FormRec makes one a day at the hour set (views, comments, reactions, CTA clicks, recorded replies, the most active recording) as an in-app notification, shown on top of Notifications; with "send" on, the store emits `digest` for the integrations feature (email, webhook). | `digest`, `maybeDigest`, `engageStore(ctx).events.on('digest')`; `GET /api/engage/digest?hours=24`; `[data-eg-digest]` | `engage-handlers.test.ts` (digest counts, once a day, event) |
+| R3-59 | Daily digest | Loom has none; FormREC makes one a day at the hour set (views, comments, reactions, CTA clicks, recorded replies, the most active recording) as an in-app notification, shown on top of Notifications; with "send" on, the store emits `digest` for the integrations feature (email, webhook). | `digest`, `maybeDigest`, `engageStore(ctx).events.on('digest')`; `GET /api/engage/digest?hours=24`; `[data-eg-digest]` | `engage-handlers.test.ts` (digest counts, once a day, event) |
| R3-63 | Video requests | Loom has none; the owner creates a request (what to record, for whom, a note) and gets a secret link `/r/` for the share listener; the person records in their browser and the upload becomes a new recording in this library (never overwriting one); the owner is notified and it shows under Received. | `createRequest`, `closeRequest`, `requestInfo`, `fulfilRequest`; `GET/POST /api/engage/requests`, `DELETE /api/engage/requests/:id`; Requests tab `[data-eg-req-form]`; command `engage.request` | `engage-handlers.test.ts` "answers a video request with a new recording"; routes test; served by the share listener at `/r/` (page, JSON, upload): `share-wire.test.ts` item 3 |
| R4-19 | Notifications centre | `#/notifications`: All, Comments, Views, Received (videos recorded for you) and Requests tabs, unread count, mark all read, the transcript snippet, and an inline reply that answers the thread. "Shared with me" becomes Received, since a local library has no other users. | `notificationsView` `[data-view="notifications"]`; `POST /api/engage/notifications/read`; command `engage.notifications` | e2e "draws the hub and notifications ..." (inline reply lands as a thread answer); screenshot `engage-notifications.png` |
| R4-20 | Video history | `#/history`: recordings played in the app, newest first with how far; it starts over after a week without watching, like Loom's. Following people and tags is not built (one local user). | `store.watched`, `recentlyWatched`; `GET /api/engage/history`; `historyView` `[data-view="history"]`; command `engage.history` | `engage-handlers.test.ts` (history and the one-week reset); routes test |
diff --git a/docs/parity/extension.md b/docs/parity/extension.md
index 59e7927..4258ef7 100644
--- a/docs/parity/extension.md
+++ b/docs/parity/extension.md
@@ -1,21 +1,21 @@
-# Parity: extension (the FormRec browser extension)
+# Parity: extension (the FormREC browser extension)
-FormRec 0.4.0 ships a Manifest V3 browser extension in `extension/` (Chrome and Edge; loads in Firefox 128+ for the
+FormREC 0.4.0 ships a Manifest V3 browser extension in `extension/` (Chrome and Edge; loads in Firefox 128+ for the
popup, pairing, the recorder window, compose buttons and inline play, while tab capture, which needs `chrome.tabCapture`
-and offscreen documents, is Chromium only and its button is disabled where missing). It talks only to FormRec on
+and offscreen documents, is Chromium only and its button is disabled where missing). It talks only to FormREC on
127.0.0.1, with a token of its own issued at pairing.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
-| R1-01 | Recording platforms (Chrome extension, desktop, mobile, SDK) | FormRec records in its web studio, the desktop app (desktop.md), the phone page and apps (phone.md), over MCP, and, since 0.5.0, from any website through the recorder SDK on the relay (recsdk.md); the browser extension is the platform for Chrome and Edge (Firefox-compatible manifest: `background.scripts`, gecko id). Unlike Loom, Linux and ChromeOS work, since the extension only needs Chromium. Pairing: Settings makes a one-time code `-ABCD-EFGH` (ten minutes, five wrong guesses drop it); the popup spends it at `POST /api/extension/pair` and keeps a `fre_` token (only its SHA-256 is stored, `/extension/browsers.json`, 0600); Settings lists paired browsers and revokes them. | `extension/manifest.json`, `extension/popup.*`, `extension/lib/client.js`, `src/features/extension/{browsers,gate,scope,index}.ts`, routes `/api/extension/{code,browsers,pair,x/*}`, `web/src/features/extension.ts` (`[data-extension-settings]`), `scripts/extension-pack.mjs` | `tests/extension-pair.test.ts` (pairing, revoke, scope), `tests/extension-manifest.test.ts` (manifest valid, permissions justified, pack), `tests/extension-e2e.test.ts` "loads as a Manifest V3 extension", "pairs from the popup"; screenshots `extension-popup-pair.png`, `extension-settings.png`; `tests/extension-capture-e2e.test.ts` (0.7.0: the paired extension in headed Chromium on Xvfb records a real tab with its keyboard command, see "Real capture" below) |
+| R1-01 | Recording platforms (Chrome extension, desktop, mobile, SDK) | FormREC records in its web studio, the desktop app (desktop.md), the phone page and apps (phone.md), over MCP, and, since 0.5.0, from any website through the recorder SDK on the relay (recsdk.md); the browser extension is the platform for Chrome and Edge (Firefox-compatible manifest: `background.scripts`, gecko id). Unlike Loom, Linux and ChromeOS work, since the extension only needs Chromium. Pairing: Settings makes a one-time code `-ABCD-EFGH` (ten minutes, five wrong guesses drop it); the popup spends it at `POST /api/extension/pair` and keeps a `fre_` token (only its SHA-256 is stored, `/extension/browsers.json`, 0600); Settings lists paired browsers and revokes them. | `extension/manifest.json`, `extension/popup.*`, `extension/lib/client.js`, `src/features/extension/{browsers,gate,scope,index}.ts`, routes `/api/extension/{code,browsers,pair,x/*}`, `web/src/features/extension.ts` (`[data-extension-settings]`), `scripts/extension-pack.mjs` | `tests/extension-pair.test.ts` (pairing, revoke, scope), `tests/extension-manifest.test.ts` (manifest valid, permissions justified, pack), `tests/extension-e2e.test.ts` "loads as a Manifest V3 extension", "pairs from the popup"; screenshots `extension-popup-pair.png`, `extension-settings.png`; `tests/extension-capture-e2e.test.ts` (0.7.0: the paired extension in headed Chromium on Xvfb records a real tab with its keyboard command, see "Real capture" below) |
| R1-08 | Record the current browser tab (with its audio) | The popup's Tab mode and Quick Record capture the active tab with `chrome.tabCapture.getMediaStreamId` and record it in an offscreen document (tab picture and tab audio as the screen track, the microphone as its own track), keeping the tab audible; chunks go to the studio upload API through the extension routes as they record. Screen, Camera and Audio modes use the recorder window (`getDisplayMedia` picks a screen, a window or a tab). | `extension/background.js` `startTab`, `extension/offscreen.js`, `extension/lib/record.js` (`Take`), `extension/recorder.*` | `tests/extension-e2e.test.ts` "records a take into FormRec with the extension token" (lib/record.js from an extension page: screen and mic tracks with bytes, saved and listed). Since 0.7.0 `tests/extension-capture-e2e.test.ts` (through `setup/extension_capture_run.mjs`) records a real tab: Alt+Shift+Q pressed with xdotool in headed Chromium on Xvfb, the offscreen document records, the take is in the library with a decodable screen track of the recorded length (6.4 s of 6.6 s) and the page's picture. Not run: the microphone track and an audible tab (see "Not done"). |
-| R1-14 | Camera bubble (extension bubble tied to its tab) | With Camera bubble on, a closed-shadow-root bubble is injected into the recorded tab (`content/bubble.js`), framing an extension page that shows the camera, so the bubble is part of the tab's picture, like Loom's. Draggable, `position: fixed`, takes no space in the page. Layout (shape, size, corner, mirror, border) comes from `GET /api/extension/x/bubble`: the viewer's bubble choices from the effects panel (`/effects/prefs.json`, read by the gate through effects' `readPrefs`, a portrait bubble shown rounded) when saved, else a 200 px mirrored circle at the bottom left. Screen mode records the camera as its own track (FormRec's player shows it as a bubble). | `extension/content/bubble.js`, `extension/bubble.*`, `src/features/extension/gate.ts` `BubbleSchema`, `bubbleFromPrefs` | `tests/extension-pair.test.ts` "serves the camera bubble layout" (defaults, then a PUT through effects' route, then the gate answers the saved layout; passes in the audit); since 0.7.0 `tests/extension-capture-e2e.test.ts` shows the bubble in the recorded page (`formrec-bubble`, fixed) while the take runs, in the recorded picture (the circle at the bottom left of decoded frames), and gone after the take. The camera itself is not shown: the camera prompt is never answered in that run (see "Not done") |
+| R1-14 | Camera bubble (extension bubble tied to its tab) | With Camera bubble on, a closed-shadow-root bubble is injected into the recorded tab (`content/bubble.js`), framing an extension page that shows the camera, so the bubble is part of the tab's picture, like Loom's. Draggable, `position: fixed`, takes no space in the page. Layout (shape, size, corner, mirror, border) comes from `GET /api/extension/x/bubble`: the viewer's bubble choices from the effects panel (`/effects/prefs.json`, read by the gate through effects' `readPrefs`, a portrait bubble shown rounded) when saved, else a 200 px mirrored circle at the bottom left. Screen mode records the camera as its own track (FormREC's player shows it as a bubble). | `extension/content/bubble.js`, `extension/bubble.*`, `src/features/extension/gate.ts` `BubbleSchema`, `bubbleFromPrefs` | `tests/extension-pair.test.ts` "serves the camera bubble layout" (defaults, then a PUT through effects' route, then the gate answers the saved layout; passes in the audit); since 0.7.0 `tests/extension-capture-e2e.test.ts` shows the bubble in the recorded page (`formrec-bubble`, fixed) while the take runs, in the recorded picture (the circle at the bottom left of decoded frames), and gone after the take. The camera itself is not shown: the camera prompt is never answered in that run (see "Not done") |
| R1-54 | Quick Record | Toolbar popup: one Quick Record button with the last chosen mode and toggles; keyboard command `quick-record` (Alt+Shift+Q since the 0.4.0 fixes; Alt+Shift+R was the studio's Restart) starts or stops a tab recording of the active tab; `_execute_action` (Alt+Shift+F) opens the popup. In supported web apps, the compose box record button (R4-61) starts a recording from where you write. | `extension/manifest.json` `commands`, `extension/background.js` `quickRecord`, `extension/popup.js` | `tests/extension-manifest.test.ts` (command and key; "binds its commands to keys no studio or desktop shortcut uses"), e2e popup screenshot `extension-popup-record.png` |
| BL-extension-1 | Clicks and keystrokes of a recorded tab (not found in Loom's documentation) | Since 0.8.0 the service worker can attach to a recording this browser recorded the tab's click positions (`lib/clicks.js`, for automatic zoom, `autozoom.md`) and, when "Keystrokes (shortcuts and named keys)" is ticked in the popup (tab recordings only), the tab's shortcuts and named keys (`lib/keycast.js`, `keycast.md`). Each is one scoped POST route (`clicks`, `keys`) in `scope.ts` and `gate.ts`; plain characters and password fields are never kept. | `extension/lib/clicks.js`, `extension/lib/keycast.js`, `extension/popup.html`, `src/features/extension/scope.ts`, `gate.ts` | `autozoom-clicks` "takes the clicks of a recording its browser recorded, marked as the extension's, and refuses another browser"; `keycast-extension` (see `keycast.md`). The real extension service worker sending them in a real tab was not run. |
| R2-37 | Bug Report mode (console, network, device) | Popup toggle Bug report (tab recordings; off by default). While the tab records, the service worker injects `lib/bugreport.js`'s `pageHook` into the page's own world and a `relay` into the isolated world with `chrome.scripting` (held already; activeTab comes from starting the take) and hooks same-site navigations again: console.* (every level), uncaught errors, unhandled rejections, failed fetch and XHR (status 0 or 400+), failed images and scripts, and the browser and device (brands, platform, language, time zone, screen, viewport, cores, memory, online). Kept in storage.session, capped (1000 console, 1000 requests, 200 page loads) and fitted under 1 MB, then posted after the save to `POST /api/extension/x/recordings/:id/bugreport`, which only the browser that recorded that take may call; the server bounds and redacts again (credentials and secret-looking query values) and keeps it as the `extension.json` sidecar. `GET`/`DELETE /api/extension/recordings/:id/bugreport` (main token) serve the owner. The player's **Bug report** panel: device line, counts, a timeline strip with a mark per error and failed request (click to seek), rows that seek, a switch for every line. The ai feature's issue drafts and agent prompt carry it (ai.md R2-37). Why not `chrome.debugger`: it needs the `debugger` permission (Chrome's strongest install warning) and shows a debugging bar on every window for the whole take; the hook needs no new permission and reads only the recorded tab. Limits (stated in the panel): nothing before the take, no workers or cross-origin frames, no request bodies, no report for a page on another site after a navigation (activeTab ends there); not for Screen, Camera or Audio takes. | `extension/lib/bugreport.js`, `extension/background.js` (`startBugReport`, `endBugReport`), `extension/popup.*` (`[data-pref="bugReport"]`), `src/features/extension/{bugreport,scope,gate,index}.ts`, `web/src/bugreport-{logic,panel}.ts` (`[data-bugreport-panel]`, `[data-bugreport-mark]`, `[data-bugreport-row]`) | `tests/missing-bugreport.test.ts` (the hook in real Chromium: console, exception, rejection, fetch 500, blocked fetch, XHR 404, failed image; report built by the extension's helpers, saved through the scoped route, ownership and redaction, then ai drafts and a Jira work item through integrations); `tests/missing-e2e.test.ts` (panel, seek from a mark, layout shift 0.000013 at 4x CPU); `tests/missing-web.test.ts`; screenshot `missing-bugreport-avatar.png`. Since 0.7.0 the service worker's own injection runs for real: `tests/extension-capture-e2e.test.ts` starts a tab take with Bug report on by the keyboard command, the page logs `console.error` (with an object), `console.warn`, throws an uncaught exception and makes a fetch answered 500 and a fetch to a refused port, and the saved recording's bug report (read through `GET /api/extension/recordings/:id/bugreport`) holds all five at times inside the take, with the device and page title. |
-| R4-61 | Record button injected into web apps | On Gmail, GitHub, GitLab, Jira (atlassian.net), Linear, HubSpot and Zendesk, a FormRec button sits on the corner of each compose box (a fixed overlay, so the page never moves). It opens the recorder window; when the take is saved, the service worker makes its link and inserts it into that compose box (Markdown on GitHub, GitLab and Linear; `title: url` elsewhere). Chrome only lets a tab be captured after the person invokes the extension on it, so this path records through the screen picker (this tab is one of the choices). | `extension/content/sites.js`, `extension/lib/links.js` `siteOf`, `composeSelectors`, `insertionFor`, `[data-formrec-record]` | `tests/extension-manifest.test.ts` "knows the sites and what to insert"; `tests/extension-e2e.test.ts` "adds a record button to a GitHub compose box, inserts the link" (clicks the button, the recorder window opens for that tab, the saved link lands in the textarea); screenshot `extension-github.png` |
-| R4-62 | Link expanding and inline play | FormRec links in what you read on those sites get an inline player card after the link (a fixed 16:9 frame, never inside an editable area). A local player link `http://127.0.0.1:/#/f/` plays through the extension's scoped media route; a share link on an origin FormRec has handed the extension (learned when the share feature makes one) shows its share page. | `extension/content/sites.js` `scanLinks`, `extension/player.*`, `extension/lib/links.js` `formrecLink`, `findFormrecLinks`, `[data-formrec-card]` | `tests/extension-manifest.test.ts` "knows a FormRec link", "finds links in text"; `tests/extension-e2e.test.ts` (card appears, title and video load); screenshot `extension-github.png` |
-| R3-22 | Unfurl and inline play in third-party apps | Same as R4-62: the extension is FormRec's unfurler. Per-app toggles are the manifest's site list; FormRec has no cloud unfurl service (Embedly, iFramely), so pages without the extension show the plain link or the share feature's own page. | as R4-62 | as R4-62 |
+| R4-61 | Record button injected into web apps | On Gmail, GitHub, GitLab, Jira (atlassian.net), Linear, HubSpot and Zendesk, a FormREC button sits on the corner of each compose box (a fixed overlay, so the page never moves). It opens the recorder window; when the take is saved, the service worker makes its link and inserts it into that compose box (Markdown on GitHub, GitLab and Linear; `title: url` elsewhere). Chrome only lets a tab be captured after the person invokes the extension on it, so this path records through the screen picker (this tab is one of the choices). | `extension/content/sites.js`, `extension/lib/links.js` `siteOf`, `composeSelectors`, `insertionFor`, `[data-formrec-record]` | `tests/extension-manifest.test.ts` "knows the sites and what to insert"; `tests/extension-e2e.test.ts` "adds a record button to a GitHub compose box, inserts the link" (clicks the button, the recorder window opens for that tab, the saved link lands in the textarea); screenshot `extension-github.png` |
+| R4-62 | Link expanding and inline play | FormREC links in what you read on those sites get an inline player card after the link (a fixed 16:9 frame, never inside an editable area). A local player link `http://127.0.0.1:/#/f/` plays through the extension's scoped media route; a share link on an origin FormREC has handed the extension (learned when the share feature makes one) shows its share page. | `extension/content/sites.js` `scanLinks`, `extension/player.*`, `extension/lib/links.js` `formrecLink`, `findFormrecLinks`, `[data-formrec-card]` | `tests/extension-manifest.test.ts` "knows a FormRec link", "finds links in text"; `tests/extension-e2e.test.ts` (card appears, title and video load); screenshot `extension-github.png` |
+| R3-22 | Unfurl and inline play in third-party apps | Same as R4-62: the extension is FormREC's unfurler. Per-app toggles are the manifest's site list; FormREC has no cloud unfurl service (Embedly, iFramely), so pages without the extension show the plain link or the share feature's own page. | as R4-62 | as R4-62 |
## The extension token's scope
@@ -34,7 +34,7 @@ main token check), and a refused x route is a 403. Requests carrying a web page'
without it the extension uses the local player link.
- Bubble layout: the effects feature's `/effects/prefs.json` (`GET /api/effects/-/prefs`), turned into `shape`,
`size`, `corner`, `mirror`, `border` by `bubbleFromPrefs` in `gate.ts`; with nothing stored the defaults answer.
-- NOTICE.md: the extension icons in `extension/icons/` are the FormRec app icon (formrec_icon_dark.png) resized.
+- NOTICE.md: the extension icons in `extension/icons/` are the FormREC app icon (formrec_icon_dark.png) resized.
## Real capture (0.7.0)
@@ -42,7 +42,7 @@ main token check), and a refused x route is a 403. Requests carrying a web page'
`.formrec-test/extension-capture/`; `tests/extension-capture-e2e.test.ts` runs it and skips with its reason when Xvfb,
openbox, xdotool, ffmpeg, Playwright's Chromium or `dist/` is missing). Playwright's own Chromium (Chrome for Testing
158) runs headed under a private Xvfb and openbox with the unpacked extension (`--load-extension`), paired through the
-popup with a FormRec created in the same process. The take is started the way a person starts it: the extension's own
+popup with a FormREC created in the same process. The take is started the way a person starts it: the extension's own
command `quick-record` (Alt+Shift+Q) is pressed with `xdotool key`, so Chromium counts the user gesture
`chrome.tabCapture` needs and `activeTab` is granted for the page. The run then shows the offscreen document alive, the
bubble in the page, the Bug report lines from the page, stops with the same key, and reads the saved recording back:
diff --git a/docs/parity/fixes-desktopwire.md b/docs/parity/fixes-desktopwire.md
index 4c92b46..0081b37 100644
--- a/docs/parity/fixes-desktopwire.md
+++ b/docs/parity/fixes-desktopwire.md
@@ -1,4 +1,4 @@
-# Fixes: desktopwire (FormRec 0.4.0 wiring)
+# Fixes: desktopwire (FormREC 0.4.0 wiring)
The items from `docs/LOOM_PARITY.md`, "Gaps and wiring issues to fix", fixed on branch `fix040/desktopwire`.
@@ -10,7 +10,7 @@ The items from `docs/LOOM_PARITY.md`, "Gaps and wiring issues to fix", fixed on
| 11 | Two parsers: desktop POSTed `/api/documents/deeplink` (documents answers GET only) and always fell back to its own `resolveLink` (`open?path=`, no `share/`). | The desktop calls `GET /api/documents/deeplink?url=` only (`web/src/features/desktop.ts` `openLink`, `desktop-logic.ts` `readResolved` reads the DeepLink shape); `resolveLink` and `POST /api/desktop/link` are removed; `deeplink.ts` accepts `open?file=` and `open?path=`; `src-tauri/src/links.rs` `file_link` emits `open?file=`. | P-10 Done | `tests/documents-deeplink.test.ts` (the shell's file_link form and `?path=`); `tests/desktop-feature.test.ts` `readResolved` with DeepLink values, "has no link reader of its own" (404); `cargo test` of links.rs: 4 passed (see Rust below). |
| 12 | The desktop bubble asked `GET /api/effects/layout` (read as a recording id); the extension gate read `/effects/bubble.json`, which effects never writes. | `src/features/effects/index.ts`: `GET` and `PUT /api/effects/-/prefs` (`/effects/prefs.json`: bubble, mirror), `readPrefs`, `changePrefs`; `web/src/features/effects.ts` saves the viewer's bubble choices there (debounced, and once when the panel is built); `web/src/desktop-bubble.ts` and `src/features/extension/gate.ts` (`bubbleFromPrefs`) read it. | R1-14 Done for the desktop and extension bubbles (shape, mirror; the extension also size, corner, border) | `tests/extension-pair.test.ts` "serves the camera bubble layout": defaults, then a PUT through effects' route, then the gate answers `{ shape: 'rounded', size: 340, corner: 'top-right', mirror: false, border: false, from: 'effects' }`. |
| 14 | Desktop click logs were saved and never imported by annotate. | `PUT /api/desktop/recordings/:id/clicks` calls annotate's `importClicks` after the save (the log is kept even if the import fails; the reply carries `annotate: { clicks, zooms }`); new setting Zoom to clicks (`zoomOnClicks`, Settings, Desktop app) adds zoom keyframes. | R1-41 Done (the hook itself needs macOS or Windows) | `tests/desktop-feature.test.ts` "keeps a recording's click log ...": the annotate track read through `GET /api/annotate/:id` has the click at 1520 ms; with Zoom to clicks a second save adds zooms and does not double the click. |
-| 15 | Webhooks fired on saved only; digests and one-time codes were never sent. | `src/features/integrations/notices.ts`, subscribed in `start`: share's `shareNews` (hook commit) `shared` (new shares) and view lines (`viewed`), share's `Access.events` `code`, engage's `notification` (`commented` for comment, reply and mention; `notification` for all but the digest) and `digest`. `notification`, `digest` and `code` are email-style notices `{ to, subject, text }` for a mail step (FormRec sends no mail). Settings offers the new events. | R4-79 Done; R3-59 Done (delivered by webhook to a mail step); R3-04 Done for code delivery (by webhook; the Share modal still shows codes) | `tests/integrations-notices.test.ts`: every event made by its owner (`saveShare`, `appendEvent`, `Access.startCode`, engage `addComment`, `maybeDigest`), deliveries checked at a fake receiver. |
+| 15 | Webhooks fired on saved only; digests and one-time codes were never sent. | `src/features/integrations/notices.ts`, subscribed in `start`: share's `shareNews` (hook commit) `shared` (new shares) and view lines (`viewed`), share's `Access.events` `code`, engage's `notification` (`commented` for comment, reply and mention; `notification` for all but the digest) and `digest`. `notification`, `digest` and `code` are email-style notices `{ to, subject, text }` for a mail step (FormREC sends no mail). Settings offers the new events. | R4-79 Done; R3-59 Done (delivered by webhook to a mail step); R3-04 Done for code delivery (by webhook; the Share modal still shows codes) | `tests/integrations-notices.test.ts`: every event made by its owner (`saveShare`, `appendEvent`, `Access.startCode`, engage `addComment`, `maybeDigest`), deliveries checked at a fake receiver. |
| 21 (desktop half) | Desktop global Confetti Alt+Shift+C shadowed the studio's Cancel. | `DEFAULT_SHORTCUTS.confetti` is Alt+Shift+E (free in the studio; annotate's mod+shift+E is Ctrl/Cmd, not Alt); the Rust `default_shortcuts_parse` list follows. The extension's Alt+Shift+R is another agent's. | R1-42, R1-52 Done | `tests/desktop-feature.test.ts` settings test compares with `DEFAULT_SHORTCUTS`; the Rust test was edited but not run (see Rust below). |
| 23 | `GET /api/integrations/cta-presets` was used by nothing. | The engage CTA editor (`web/src/features/engage.ts`) has a preset select `[data-eg-cta-preset]`: it fills the button text and the link's start, and Add checks the link against the preset (`presetProblem`). | R4-74 Done | `tests/engage-e2e.test.ts` "comments at a moment ...": Calendly fills the fields, the home page is refused, a booking link is saved. |
diff --git a/docs/parity/fixes-policy.md b/docs/parity/fixes-policy.md
index 3a4c43c..2e45058 100644
--- a/docs/parity/fixes-policy.md
+++ b/docs/parity/fixes-policy.md
@@ -4,7 +4,7 @@ Items from `docs/LOOM_PARITY.md`, "Gaps and wiring issues to fix". Each fix keep
| Item | What was wrong | What now | Rows changed, new status | Test that proves it |
| --- | --- | --- | --- | --- |
-| 8 | Workspace policy, branding, people, groups and recording defaults were enforced nowhere; share kept its own policy, branding and logo with its own Settings rows. | The workspace's `policy.ts` is the one owner. `share/settings.json` stores only share's defaults, listener, `hostedAt`, `autoCopy`; `readSettings` builds `policy` and `branding` as views of `policy()`, `branding()` and the workspace people. `saveShare` uses `mayCreateLink`, `passcodeAllowed`, `clampExpiry`, the workspace's default privacy and view-count default, and accepts workspace groups; `access.ts` uses `gatedEmailAllowed` for allowed domains, refuses deactivated people, and closes open links when network links are off or a passcode is required, and links past the longest expiry. Branded player off shows FormRec's own look. Settings, Sharing drops its Branding and Policy rows (and the expiry and view-count defaults) and points to Policies and Branding (`[data-share-goto]`). `PUT /api/share/settings` and `/api/share/logo` still answer: a changed view is written to the workspace. | R4-24, R4-26, R4-35, R4-38, R4-41: Done. R4-40: Partial (comments, reactions and transcript defaults not read by engage and transcripts, files not owned here). Share R3-07, R3-08, R3-09, R3-11, R3-15, R3-30: Done. R4-25 unchanged. | `tests/workspace-share-policy.test.ts`: network links off closes open links on the listener (410) and refuses new ones, agent refused under owner-only; downloads, passcodes and longest expiry; branding from Settings, Branding on the share page and no copy in `share/settings.json`; people shares through workspace groups, allowed domains, deactivation. Also `share-listener`, `share-export` (old share API writes through). |
+| 8 | Workspace policy, branding, people, groups and recording defaults were enforced nowhere; share kept its own policy, branding and logo with its own Settings rows. | The workspace's `policy.ts` is the one owner. `share/settings.json` stores only share's defaults, listener, `hostedAt`, `autoCopy`; `readSettings` builds `policy` and `branding` as views of `policy()`, `branding()` and the workspace people. `saveShare` uses `mayCreateLink`, `passcodeAllowed`, `clampExpiry`, the workspace's default privacy and view-count default, and accepts workspace groups; `access.ts` uses `gatedEmailAllowed` for allowed domains, refuses deactivated people, and closes open links when network links are off or a passcode is required, and links past the longest expiry. Branded player off shows FormREC's own look. Settings, Sharing drops its Branding and Policy rows (and the expiry and view-count defaults) and points to Policies and Branding (`[data-share-goto]`). `PUT /api/share/settings` and `/api/share/logo` still answer: a changed view is written to the workspace. | R4-24, R4-26, R4-35, R4-38, R4-41: Done. R4-40: Partial (comments, reactions and transcript defaults not read by engage and transcripts, files not owned here). Share R3-07, R3-08, R3-09, R3-11, R3-15, R3-30: Done. R4-25 unchanged. | `tests/workspace-share-policy.test.ts`: network links off closes open links on the listener (410) and refuses new ones, agent refused under owner-only; downloads, passcodes and longest expiry; branding from Settings, Branding on the share page and no copy in `share/settings.json`; people shares through workspace groups, allowed domains, deactivation. Also `share-listener`, `share-export` (old share API writes through). |
| 18 | Retention read `folderId` from a `library.json` sidecar nobody writes, and archived into a `workspace.json` the library's Archive tab never reads. | `src/features/library/store.ts` exports `folderOf`, `archivedAt`, `archive`, `trash`, `restore`, `trashList`; all `LibraryStore` instances share one change chain per data folder. Retention calls them and keeps no sidecar. | R4-37, R4-13: Done. | `tests/workspace-server.test.ts` `retention sweep > archives or trashes...`: the folder is placed with `LibraryStore.place`, the archive mark is read from the library's organisation, the Trash from `LibraryStore.trashList`. |
| 33 | Two Trash indexes (`workspace/trash.json` and the library's `trashedAt`). | One: the library's. `GET /api/workspace/trash` and its restore read and change it; restoring from the library's Trash leaves nothing behind in the workspace's view. | R4-37 (Trash part): Done. | Same test: restore through `LibraryStore.restore`, then sweep again and restore through `restoreRecording`; both leave the library Trash empty. |
| 29 | Two activity logs; no feature called `logActivity`. | One: the workspace's `activity.jsonl`. Engage's `store.log` calls `logActivity` and `activity()` reads it back in engage's shape (its Activity route, CSV and insights views stay); share logs shared, share-changed, unshared; the library archived, unarchived, trashed, restored, deleted, renamed, duplicated (retention's moves once, as system); documents imported, exported, renamed (`hook:` commit). | R4-43: Done. | `tests/workspace-one-owner.test.ts` `engage, the library and the workspace write one activity log`; `tests/workspace-share-policy.test.ts` `shares and documents' renames are logged...`; `engage-handlers` (cta-click still in engage's activity). |
diff --git a/docs/parity/integrations.md b/docs/parity/integrations.md
index aa17e65..d919832 100644
--- a/docs/parity/integrations.md
+++ b/docs/parity/integrations.md
@@ -1,18 +1,18 @@
# Parity: integrations
-Loom's integrations, apps and developer surfaces, and what FormRec does instead (audited for 0.5.0). The twelve apps that run inside other products are in apps.md; this file keeps the sending, publishing, webhook and SDK side. Code is in
+Loom's integrations, apps and developer surfaces, and what FormREC does instead (audited for 0.5.0). The twelve apps that run inside other products are in apps.md; this file keeps the sending, publishing, webhook and SDK side. Code is in
`src/features/integrations/` (server), `web/src/features/integrations*.ts` (client), `web/src/formrec-sdk.ts` and
`web/src/formrec-embed.ts` (the two SDK scripts), `web/styles/integrations.css`; the guide is docs/integrations.md and
the API reference docs/api.md. Tests: `tests/integrations-routes.test.ts` (routes), `tests/integrations-units.test.ts`
(units), `tests/integrations-sdk.test.ts` (SDK listener, MCP, api.md), `tests/integrations-e2e.test.ts` (Chromium).
Every outgoing call in the tests goes to a local fake (`tests/integrations-fake.ts`); none reaches the network.
-| row | Loom feature | what FormRec does | where | verified by |
+| row | Loom feature | what FormREC does | where | verified by |
|---|---|---|---|---|
| R4-58 | Slack app: unfurl, /loom, notifications | Two ways. The Slack app (apps.md R4-58, `src/apps/slack.ts`) unfurls links so they play in Slack, answers /formrec, publishes App Home and sends views, comments, reactions and replies. This feature adds the simple path with no app: post a recording to a channel through the person's incoming webhook, Block Kit with the title as a link, poster, summary (the ai feature's when present), chapters, a Watch button; channel override; a test message. | `messages.ts` `slackMessage`, `index.ts` `sendTo`, `POST /api/integrations/send/:id`, MCP `formrec_post_message`, player `[data-ig-send="slack"]`; `src/apps/slack.ts` | routes: "posts the link, poster, title (escaped) and the ai summary to Slack"; e2e: "sends a recording to Slack from the player Send to menu"; units: "escapes Slack control characters"; apps-slack-flow, apps-slack-engage |
| R4-59 | Microsoft Teams app | Posts an Adaptive Card (title, poster, summary, chapters, Watch) through a Teams incoming webhook or Workflow; failures reported with the status. No bot commands. | `messages.ts` `teamsMessage`, same routes and tool, `[data-ig-send="teams"]` | routes: "posts an Adaptive Card to Teams, and reports a failing webhook" |
| R4-60 | Gmail record button | Email from the Send to menu: `mailto:` and Gmail compose links carrying the link, summary, chapters and the poster/GIF link; Copy as rich link puts the poster linked to the recording on the clipboard as HTML for Gmail's editor. The in-Gmail button is the extension's (R4-61) and the Google add-on's compose picker (apps.md R4-60). Sending from the person's own account is the mail feature (SMTP with implicit TLS or STARTTLS, Gmail API, Microsoft Graph). | `links.ts` `mailto`, `gmail`, `richLinkHtml`; `[data-ig-send="email"]`, `"gmail"`, `"copy-rich"`; `src/mail/`, `src/features/mail/` | routes: "gives mailto, Gmail, social intents and a rich link"; units: "keeps mailto short"; mail-smtp, mail-api, mail-cross, mail-e2e |
-| R4-63 | Google Workspace smart chips, Chat previews | The Google Workspace add-on (apps.md R4-63) gives smart chip data (title, poster, summary, duration) for FormRec links and a Gmail insert, honouring preview privacy. Without the add-on, link previews come from the share page's Open Graph tags (share feature) and the rich link and Markdown paste cleanly into Docs. | `src/apps/google.ts`, `apps/google/`; `links.ts` `richLinkHtml` | apps-google-endpoints; routes: rich link test. The add-on was not deployed to Google. |
+| R4-63 | Google Workspace smart chips, Chat previews | The Google Workspace add-on (apps.md R4-63) gives smart chip data (title, poster, summary, duration) for FormREC links and a Gmail insert, honouring preview privacy. Without the add-on, link previews come from the share page's Open Graph tags (share feature) and the rich link and Markdown paste cleanly into Docs. | `src/apps/google.ts`, `apps/google/`; `links.ts` `richLinkHtml` | apps-google-endpoints; routes: rich link test. The add-on was not deployed to Google. |
| R4-64 | Jira Cloud | Creates a work item through REST v3 with email + API token: summary, ADF description with the bug report (ai) or summary, the link as a link mark, chapters. Without a token: a prefilled Create Issue page. | `issues.ts` `createIssue('jira')`, `adf`; `links.ts` `newIssueLinks`; MCP `formrec_create_issue` | routes: "creates a Jira work item with the bug report in ADF and basic auth"; "gives mailto ... newIssue.jira" |
| R4-65 | Bug reporting mode to Jira | The ai feature's issue text for each target (`ai.json` `outputs["issue-jira" | "issue-linear" | "issue-github"].text`, as `src/features/ai/schema.ts` stores it) becomes that service's issue body (GitLab uses GitHub's); a target with none takes the first issue output there is, else the summary. Capturing console and network logs is the ai and extension agents' side. | `subject.ts` (reads ai.json `outputs`), `links.ts` `issueBody(s, target)`, `issues.ts` | routes: ai.json written by `AiEngine.set`; Jira gets the Jira text and not GitHub's, Linear falls back to Jira's, the GitHub prefilled link carries GitHub's |
| R4-66 | AI Jira updates from meetings (coming soon) | A meeting recording can be sent to Jira like any other, with the ai feature's text. The ai feature's suggested Jira updates are applied through this feature's `sendTo` (one work item per update, after the person confirms; ai.md R4-66). No automatic board suggestions. | same as R4-64; `src/features/ai/apply.ts` | as R4-64; `missing-bugreport` (a work item from an applied update reaches the local Jira fake) |
@@ -21,7 +21,7 @@ Every outgoing call in the tests goes to a local fake (`tests/integrations-fake.
| R4-69 | Linear | Creates a Linear issue through GraphQL `issueCreate` with a personal API key; without one, a prefilled `linear.app/team//new` page. | `issues.ts`, `links.ts` | routes: "creates a Linear issue through GraphQL"; "newIssue.linear" |
| R4-70 | GitHub and Figma AI outputs | GitHub issue through REST with a token (labels optional, GitHub Enterprise through apiBase), or a prefilled `issues/new` page. Figma: a real Figma and FigJam plugin that places one frame per step (apps.md R4-70), Copy as rich link, and the ai feature's Frames for Figma (a zip of a PNG per step). The plugin was not loaded into Figma here. | `issues.ts`, `links.ts`; `src/features/ai/figma.ts`; `src/apps/figma.ts`, `apps/figma/` | apps-embeds-figma; routes: "creates a GitHub issue with the token, and without one offers the prefilled page"; MCP test (prefilled) |
| R4-71 | Salesforce | The Salesforce app (apps.md R4-71): a Lightning web component with views, completion and last viewed on Lead, Contact, Opportunity and Account, and a completed Task when an identified viewer watches. Here: Copy as rich link (poster + link) into a record, and webhooks to Salesforce Flow. | `src/apps/salesforce.ts`, `apps/salesforce/`; `links.ts` `richLinkHtml` | apps-crm-salesforce; routes: rich link test; units: "escapes Markdown in a rich link". Not deployed to an org. |
-| R4-72 | HubSpot | The HubSpot app (apps.md R4-72): a CRM card on Contact and Deal records and "Watched a FormRec" timeline events. Here: rich link, HubSpot meetings CTA preset, webhooks to workflows. | `src/apps/hubspot.ts`, `apps/hubspot/`; `cta-presets.ts` `hubspot-meetings` | apps-crm-hubspot; units: "checks scheduling links against their service". Not uploaded to HubSpot. |
+| R4-72 | HubSpot | The HubSpot app (apps.md R4-72): a CRM card on Contact and Deal records and "Watched a FormREC" timeline events. Here: rich link, HubSpot meetings CTA preset, webhooks to workflows. | `src/apps/hubspot.ts`, `apps/hubspot/`; `cta-presets.ts` `hubspot-meetings` | apps-crm-hubspot; units: "checks scheduling links against their service". Not uploaded to HubSpot. |
| R4-73 | Zendesk, GitLab, Intercom | The Zendesk and Intercom sidebar apps, GitHub, GitLab and Linear comments or cards, and the Jira Forge panel (apps.md R4-73). Here: rich link for Zendesk and Intercom; GitLab also gets a prefilled new issue page for the project named in Settings. | `src/apps/`; `links.ts` (gitlab) | apps-support-*, apps-dev-*; routes and units; e2e menu shows `[data-ig-send="gitlab"]` |
| R4-74 | Calendly CTA | CTA presets (Calendly, Cal.com, Google Calendar booking, Microsoft Bookings, HubSpot meetings, SavvyCal, zcal, TidyCal) with link checks and default button text. The engage CTA editor (player, Buttons) offers them in a preset select: picking one fills the button text and the start of the link, and Add checks the link against the preset (https, its hosts, not the home page) before saving. | `src/features/integrations/cta-presets.ts` (`CTA_PRESETS`, `checkCtaLink`, `ctaFromPreset`), `GET /api/integrations/cta-presets`; `web/src/features/engage.ts` `[data-eg-cta-preset]`, `presetProblem` | units: "checks scheduling links against their service"; routes: "serves the CTA presets"; engage e2e "comments at a moment ... and shows a CTA" (Calendly preset fills the fields, the home page is refused, a booking link is saved) |
| R4-75 | Calendar meeting notetaker | Calendars from an iCalendar link or .ics file (this feature), and from Google Calendar or Microsoft Graph with OAuth (PKCE, loopback, the person's own client: `src/features/meetings/oauth.ts`, `calendars.ts`); marked meetings are joined by the notetaker (meetings.md); the Google Calendar add-on opens the Meeting layout for an event (apps.md R4-60). `#/meetings` lists the week with join links and Record (`#/record/meeting?meeting=`, the studio's Meeting layout); reminders by notification. | `calendar.ts`, `GET /api/integrations/meetings`, MCP `formrec_meetings`, `integrations-meetings.ts`, `[data-view="meetings"]`; the studio's `studio-layout` route takes `?meeting=`; `src/features/meetings/` | meetings-calendars; units: calendar tests; routes: "lists meetings from a calendar link"; e2e: "lists meetings from the calendar" (clicks Record: the studio opens with `[data-mode="meeting"]` pressed); screenshot integrations-meetings.png |
@@ -29,16 +29,16 @@ Every outgoing call in the tests goes to a local fake (`tests/integrations-fake.
| R4-77 | Embed options (iframe, GIF thumbnail for email) | iframe snippet, oEmbed (JSON and XML with size bounds), the embed script, automatic embeds through discovery and Open Graph tags (share feature), rich link with the poster (or the GIF when the share feature makes one) for email. | `formrec-embed.js`, `links.ts`, docs/integrations.md; share's oEmbed endpoint | routes: rich link; e2e build serves the script; apps-embeds-oembed |
| R4-78 | Chameleon | The hosted recorder SDK script (from any origin the app id allows) and the embed script work in any page or tool that can run a script or show an iframe, so a Chameleon step can launch the recorder or show the embed. L: nothing here is specific to Chameleon, no document names it, and no test drove Chameleon; the recorder SDK test records from a page on another origin. | `src/relay/recsdk/`, `web/src/formrec-embed.ts`, docs/recorder-sdk.md | recsdk-e2e (another origin records through the SDK); never run inside Chameleon |
| R4-79 | Zapier (none at Loom) | Outgoing webhooks on saved (the library), shared (share's new shares), viewed (each view line share writes), commented (engage's comment, reply and mention notifications), and three email-style notices `{ to, subject, text }` for a mail step: notification (any engage notification, to the person it is for), digest (engage's daily digest when "send" is on, to the owner's email) and code (share's one-time codes, to the viewer); all heard in `notices.ts` from share's `shareNews`, share's `Access.events` and engage's `engageStore(ctx).events`, only while the app runs. Signed (HMAC-SHA256 of timestamp.body), retried on 5xx/429/unreachable (1 s, 5 s, 30 s), delivery log, test button; works with Zapier, Make and n8n catch hooks. | `webhooks.ts`, `/api/integrations/webhooks`, `/events`, MCP `formrec_webhook_test`, Settings `[data-ig-webhooks]` | routes: "signs deliveries, retries a 5xx, and fires on saved and announced events"; `integrations-notices.test.ts` (each event made by its owner: `saveShare`, `appendEvent`, `Access.startCode`, engage `addComment`, `maybeDigest`); units: "retries 5xx and unreachable receivers", "signs ... rejects old or altered"; e2e: SDK test checks the saved webhook |
-| R4-80 | Coda, Miro, Outlook mail (not found) | Loom documents none of them. FormRec sends from Outlook through Microsoft Graph (mail feature), has Zendesk and Intercom sidebar apps (apps.md), and covers the rest with rich links, Markdown, webhooks and ICS. | `links.ts`, `webhooks.ts`, `calendar.ts`; `src/mail/`; `src/apps/zendesk.ts`, `intercom.ts` | mail-api, apps-support-*; as those rows |
+| R4-80 | Coda, Miro, Outlook mail (not found) | Loom documents none of them. FormREC sends from Outlook through Microsoft Graph (mail feature), has Zendesk and Intercom sidebar apps (apps.md), and covers the rest with rich links, Markdown, webhooks and ICS. | `links.ts`, `webhooks.ts`, `calendar.ts`; `src/mail/`; `src/apps/zendesk.ts`, `intercom.ts` | mail-api, apps-support-*; as those rows |
| R4-81 | recordSDK | The hosted recorder SDK on a relay (`src/relay/recsdk/`, docs/recorder-sdk.md) is the main path: Standard and Custom UI, public app ids with origin checks, optional signed tokens and guest limits, TypeScript types. This feature's LAN pairing SDK stays: `formrec-sdk.js`: a page pairs with a code the person approves, then records its tab, a window or the screen (mic optional), pause, resume, cancel, and uploads into the library through the SDK listener (own loopback port, origin-bound key, CORS only for that origin). | `sdk.ts`, `web/src/formrec-sdk.ts`, Settings `[data-ig-sdk]`, `[data-ig-pairings]`; `src/relay/recsdk/`, `src/features/integrations/recsdk.ts` | recsdk-apps, recsdk-jwt, recsdk-types, recsdk-e2e; sdk: "pairs a page after the person approves its code, then takes its recording", "denies ...", "serves only its two scripts", "answers loopback host names only"; e2e: "records a web page through formrec-sdk.js" |
| R4-82 | embedSDK | `formrec-embed.js`: `FormRec.embed(el, { url })` with `on(event)`, `play`, `pause`, `seek`, and `autoEmbed({ base })`; postMessage protocol documented (the share page must post the player events, see below). | `web/src/formrec-embed.ts`, docs/integrations.md | type-checked and built; protocol documented; run against a real `/e/` share page in another site's page: `share-wire-e2e.test.ts` "an /e/ player on another site answers formrec-embed.js" (the share page answers in `web/src/share-view.ts` `wireEmbed`; the share listener serves this script at `/s/formrec-embed.js` and honours `/v/?embed=1`) |
-| R4-83 | No public REST API | FormRec's local API is documented: docs/api.md generated from the route lists in the code, with how to authenticate; a test fails when it drifts. At the 0.5.0 audit base the test fails because docs/api.md was not regenerated after the SSO and teamsync routes landed; the orchestrator regenerates it after merging (`FORMREC_WRITE_API_DOC=1`). | `api-doc.ts`, docs/api.md | sdk: "is generated from the code and up to date" (fails until docs/api.md is regenerated) |
+| R4-83 | No public REST API | FormREC's local API is documented: docs/api.md generated from the route lists in the code, with how to authenticate; a test fails when it drifts. At the 0.5.0 audit base the test fails because docs/api.md was not regenerated after the SSO and teamsync routes landed; the orchestrator regenerates it after merging (`FORMREC_WRITE_API_DOC=1`). | `api-doc.ts`, docs/api.md | sdk: "is generated from the code and up to date" (fails until docs/api.md is regenerated) |
| R1-46 | Meeting recording (notetaker bot) | Calendar side: meetings listed with their join link and a Record button for the studio's Meeting layout (`#/record/meeting?meeting=`). No bot. | `calendar.ts`, `integrations-meetings.ts` | as R4-75 |
| R1-47 | Desktop Meetings tab | `#/meetings`: the next week's meetings, how soon each starts (updated in place), Join, Record, reminders. Pause/notes during the meeting are the studio's Meeting mode. | `integrations-meetings.ts` `meetingsView`, `startReminders`, command `integrations.meetings` | e2e meetings test (layout shift 0); units: "says how soon a meeting is and which reminders are due" |
| R1-55 | In-browser recorder (Loom SDK) | As R4-81; documented in docs/integrations.md. | `formrec-sdk.js`, `sdk.ts` | as R4-81 |
| R3-17 | Share to social and Gmail | Send to: Email, Gmail, LinkedIn, X, Facebook (share intents), copy link, rich link, Markdown. | `links.ts` `social`, `integrations-send.ts` | routes: "gives mailto, Gmail, social intents"; units: "plans each Send to item"; e2e copy link |
-| R3-22 | Link unfurl / inline play in other apps | Messages FormRec posts carry their own preview (poster, title, summary); pasted links rely on the share page's oEmbed/Open Graph (share feature); rich link for apps that show neither. | `messages.ts`, `links.ts` | routes Slack/Teams tests |
-| R3-23 | Slack unfurl and in-Slack playback | The Slack message has the poster image and a Watch button; unfurl_links off so Slack shows FormRec's card, not a second preview. In-Slack playback is the Slack app's (apps.md R4-58). | `messages.ts` `slackMessage` | routes Slack test |
+| R3-22 | Link unfurl / inline play in other apps | Messages FormREC posts carry their own preview (poster, title, summary); pasted links rely on the share page's oEmbed/Open Graph (share feature); rich link for apps that show neither. | `messages.ts`, `links.ts` | routes Slack/Teams tests |
+| R3-23 | Slack unfurl and in-Slack playback | The Slack message has the poster image and a Watch button; unfurl_links off so Slack shows FormREC's card, not a second preview. In-Slack playback is the Slack app's (apps.md R4-58). | `messages.ts` `slackMessage` | routes Slack test |
| R3-24 | Private video previews | "Show poster and summary" switch (on by default): off sends title and link only to Slack, Teams and unfurls. | `connections.ts` `previews`, `PUT /api/integrations/options`, `[data-ig-previews]` | routes: "leaves out the poster and summary with previews off" |
| R3-25 | Google Workspace smart chips | As R4-63. | | as R4-63 |
diff --git a/docs/parity/interactive.md b/docs/parity/interactive.md
index 2f773d8..861c4be 100644
--- a/docs/parity/interactive.md
+++ b/docs/parity/interactive.md
@@ -1,12 +1,12 @@
# Interactive demos: beyond Loom
-Loom's pages describe video with call-to-action buttons, questions, reactions and comments; a demo a viewer clicks through from captured screens was not found in Loom's documentation (see `docs/beyond-loom.md`). FormRec makes one from any recording with steps: one picture per step taken from the main picture at the moment of the step's action, a box over the step's target, the step's words as a callout, Back and Next, keys, a progress line and an end card with the recording's call to action. The demo is stored per recording in `interactive.json` with its pictures `interactive-.webp|png`, so it travels in the recording's package. Edits (step text, box position, hidden steps) are kept across a rebuild. A hidden step's words and picture never leave the computer: not on a share server, not in the relay, not in the zip.
+Loom's pages describe video with call-to-action buttons, questions, reactions and comments; a demo a viewer clicks through from captured screens was not found in Loom's documentation (see `docs/beyond-loom.md`). FormREC makes one from any recording with steps: one picture per step taken from the main picture at the moment of the step's action, a box over the step's target, the step's words as a callout, Back and Next, keys, a progress line and an end card with the recording's call to action. The demo is stored per recording in `interactive.json` with its pictures `interactive-.webp|png`, so it travels in the recording's package. Edits (step text, box position, hidden steps) are kept across a rebuild. A hidden step's words and picture never leave the computer: not on a share server, not in the relay, not in the zip.
Code: `src/features/interactive/` (`model.ts` the format, `build.ts` planning the moments, FFmpeg frames, hotspots, merging a rebuild with edits, `routes.ts` the owner API, `public.ts` what a viewer gets and the page markup, `export.ts` the zip, `mcp.ts` the tools, `store.ts`); the viewer routes `/i/:shareId` and `/s-api/:shareId/interactive/.webp|png` in `src/features/share/listener.ts`; the relay's allowlist `src/relay/allow.ts` and `src/features/relay/publish.ts` (only shown steps travel); client `web/src/interactive-view.ts` (one import-free player used by the app, the share page and the zip), `web/src/interactive-editor.ts`, `web/src/interactive-api.ts`, `web/src/features/interactive.ts`, `web/styles/interactive.css`.
Tests: `tests/interactive-build.test.ts` (pure: planning, hotspots, image headers, edits, the public view, escaping), `tests/interactive-e2e.test.ts` (real FFmpeg, real share listener and a real relay, Chromium; layout shift at 4x CPU throttling). Chromium only; Firefox was not run.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-interactive-1 | Not found in Loom's documentation | Build a demo from a recording's steps: the picture at the step's `actionMs` when the runner kept it (a goto and a step without one use the middle of the chapter), WebP or PNG when FFmpeg has no WebP encoder, all one size of at most 1280 wide, recorded in the demo so a page reserves the space; a failed step is left out, at most 99 steps. Pictures are made under temporary names and renamed together, so a failed build leaves the last good demo. | `build.ts` `planSteps`, `buildDemo`, `takeFrame`; `POST /api/interactive/:id/build` | `interactive-build` "pictures the action when the runner kept its time, else the middle of the chapter", "pictures a goto in the middle of its chapter...", "leaves out a failed step, keeps ids unique, stays inside the recording and takes at most 99", "reads PNG and the three WebP kinds from their headers"; `interactive-e2e` "takes one picture per step and puts each hotspot over the element the step used" |
| BL-interactive-2 | Not found in Loom's documentation | The hotspot is the chapter's box (the viewport's CSS pixels) scaled to the picture and clipped to it; nothing is drawn when the box is outside or the recording has no viewport. | `build.ts` `hotspotFor` | `interactive-build` "scales the box from the viewport to the picture", "clips to the picture and drops a box that is outside it or has no viewport" |
@@ -19,7 +19,7 @@ Tests: `tests/interactive-build.test.ts` (pure: planning, hotspots, image header
## 0.9.0: demos from a person's recording, demo insights, translated demos
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-interactive-9 | Not found in Loom's documentation | A person's recording becomes a demo: a chapter that holds a recorded click (`clicks.jsonl` through autozoom's reader, else the desktop click log, else the click ripples) gets a hotspot of 10% of the picture around it, normalised to the picture, and its picture is taken at the click when the runner kept no action time; a chapter with a recorded box keeps the box. A recording with no chapters that ran gets one step per click (presses closer than 700 ms are one), titled `Click n`. | `build.ts` `clickMoments`, `planWithClicks`, `hotspotFromBox`; `routes.ts` `buildability` | `demoplus-unit` "planWithClicks", "hotspotFromBox", "clickMoments"; `demoplus-e2e` "puts a recorded click over each chapter that holds one, and takes the picture at the click", "makes a step of each click when the recording has no chapters, and keeps the owner's edits across a rebuild", "says why a recording with neither chapters nor clicks has no demo" |
| BL-interactive-10 | Not found in Loom's documentation | Demo insights: the player on a share page, the embed and the relay reports a visit, each step arrived at and how (Next, hotspot, keys, Back, jump), the end card and the button as share events (`demo-view`, `demo-step`, `demo-cta`, `demo-done` in `share-events.jsonl`) through the share listener's `/s-api/:shareId/events`: the same gates as the page and the same per-visit limit as a video's events. An event that names a hidden or unknown step is refused. The owner sees views, completion, button clicks, hotspot against Next and keys, and per shown step how many reached it and stopped there, in the demo editor, the player's Demo insights tab, `GET /api/interactive/:id/insights` and `formrec_interactive_demo`. Counts only, no names; the owner's preview and the exported zip report nothing. | `insights.ts`; `share/listener.ts` `events`; `web/src/interactive-view.ts` `reporter`; `web/src/interactive-insights.ts` | `demoplus-unit` "demo events", "demoInsights", "the player file"; `demoplus-e2e` "records a walk through the page, and the insights tell where the viewer stopped and what moved them", "keeps the keys and the Back button apart, and does not count the owner's preview in the app", "refuses events that name a hidden or unknown step, and ones behind a closed gate", "rate limits a visit as it limits a video's events", "has the same insights in the player's Demo insights tab" |
diff --git a/docs/parity/keycast.md b/docs/parity/keycast.md
index 11b46b1..4ddbf12 100644
--- a/docs/parity/keycast.md
+++ b/docs/parity/keycast.md
@@ -1,6 +1,6 @@
# Keystrokes on screen: beyond Loom
-Loom shows a click highlight (desktop app, paid plans); keystrokes on screen were not found in Loom's documentation (https://support.atlassian.com/loom/docs/highlight-your-mouse-clicks/, https://support.atlassian.com/loom/docs/use-looms-keyboard-shortcuts/). FormRec shows shortcuts and named keys as a keycap over the picture.
+Loom shows a click highlight (desktop app, paid plans); keystrokes on screen were not found in Loom's documentation (https://support.atlassian.com/loom/docs/highlight-your-mouse-clicks/, https://support.atlassian.com/loom/docs/use-looms-keyboard-shortcuts/). FormREC shows shortcuts and named keys as a keycap over the picture.
What a key is. A key event is `{ atMs, label }` on the recording's timeline. A label is a shortcut (`Ctrl+K`), a named key (`Enter`, `Tab x3`, the same key again within a short gap becomes `x N`) or, for typing in a walkthrough, a count (`typed 12 characters`). It is never a typed character: a plain character, a Shift-plus-character, a space and anything else that could carry text is dropped, and a secret fill leaves nothing. The same check runs where the runner writes, where the extension's keys arrive and where they are stored, so a browser that sent more than it should leaves nothing.
@@ -14,7 +14,7 @@ Routes (behind the token): `GET /api/keycast/:id` (keys, source runner, extensio
Tests: `tests/keycast-math.test.ts`, `tests/keycast-walkthrough.test.ts` (real headless runs, routes, tool), `tests/keycast-extension.test.ts`, `tests/keycast-export.test.ts` (real FFmpeg), `tests/keycast-player.test.ts` (Chromium, layout shift at 4x CPU throttling, the share page).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-keycast-1 | Not found in Loom's documentation | Labels: a Playwright key name becomes a shortcut or named key, a plain character becomes a count; repeats collapse to `x N`; each keycap shows for the set time or until the next key; labels are checked again on storage. | `shared/keycast-math.ts` `pressLabel`, `typedLabel`, `collapseKeys`, `keyWindows`, `isShortcutLabel`, `cleanPrefs` | `keycast-math` (the `it.each` of key names to labels), "the plain character %j is a count, never a label", "repeats a named key as x N", "counts typed characters in code points and says it in words", "merges the same key pressed again soon, and only that", "never merges counts of typing and does not change its input", "each key shows for the time, or until the next key", "finds the key showing at a time", "accepts %s", "refuses %j", "fall back to the defaults and are bounded" |
| BL-keycast-2 | Not found in Loom's documentation | A walkthrough records its presses as labels and its typing as counts, in order on the timeline; typed text is in no label, and a secret fill leaves nothing in any file of the recording folder. | `src/runner/headless.ts`, `recording.json` `keys` | `keycast-walkthrough` "keeps presses as labels and typing as counts, in order, on the timeline", "never keeps typed text in a label, and records nothing at all for the secret fill", "leaves the secret in no file of the recording folder" |
diff --git a/docs/parity/library.md b/docs/parity/library.md
index 72de658..114b8c0 100644
--- a/docs/parity/library.md
+++ b/docs/parity/library.md
@@ -1,6 +1,6 @@
# Library parity (feature `library`)
-Rows owned by the library build agent for FormRec 0.4.0: R4-01 to R4-21, R4-28, R4-54, R4-55, R4-57 and R3-06. Loom is a cloud product; FormRec keeps everything on this computer, so a workspace is a local library (a data folder), a space is a shelf on this computer or a team folder synced by whatever the team already uses, and nothing leaves the machine unless the person exports or syncs it.
+Rows owned by the library build agent for FormREC 0.4.0: R4-01 to R4-21, R4-28, R4-54, R4-55, R4-57 and R3-06. Loom is a cloud product; FormREC keeps everything on this computer, so a workspace is a local library (a data folder), a space is a shelf on this computer or a team folder synced by whatever the team already uses, and nothing leaves the machine unless the person exports or syncs it.
Code: server `src/features/library/` (`model.ts` schemas, `store.ts` organisation and Trash, `media.ts` uploads and probing, `transfer.ts` export, folder import, sync and transfer, `zip.ts` streaming ZIP64, `search.ts`, `routes.ts`, `mcp.ts`, `index.ts`); client `web/src/library.ts` (the view), `web/src/library-model.ts` (state logic and API), `web/src/library-dialog.ts`, `web/src/library-keyed.ts`, `web/src/library-icons.ts`, `web/src/library-playlist.ts`, `web/src/features/library.ts` (registrations), `web/styles/library.css`. State lives in `/library/` (`organisation.json`, `playlists.json`, `history.json`, `settings.json`) and the Trash in `/trash/`; recording.json is only written as a new version (rename, duplicate, import, a recording pulled from a synced space).
@@ -8,13 +8,13 @@ Audit (0.5.0, base e00d9d8): R4-01 to R4-21 checked against the code and their t
Tests: `tests/library-store.test.ts` (store), `tests/library-routes.test.ts` (routes on the real app, FFmpeg-made files), `tests/library-model.test.ts` (client logic), `tests/library-e2e.test.ts` (Chromium, 240 recordings, 4x CPU throttling, layout-shift observer, screenshots).
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R4-01 | My Library tabs (Videos, Folders, Archive, Screenshots, Zoom Meetings) | One library view with a rail: Videos, History, Archive, Trash, Folders, Spaces, Playlists, Tags, and two links: Team (the team library on a relay, `#/library/team`, added in 0.5.0 by teamsync) and Shared with me (Shared and Notifications are in the app's sidebar, so the rail does not repeat them). `#/library/` opens a tab directly. Screenshots belong to the capture feature; imported meetings show under the Imported filter, and the toolbar's Zoom meetings filter (`data-library-filter="zoom"`) lists the recordings the Zoom import brought in (an id set from `GET /api/zoom/imported`, fetched with the overview). | `web/src/library.ts` rail `[data-library-scope]`, `web/src/library-model.ts` `Filters.zoom`, route `library-tab` in `web/src/features/library.ts` | e2e "draws hundreds of recordings once..." (tab counts and switching), "empty states" (opens `#/library/trash`); zoom-e2e "the Library filters to Zoom meetings without shifting"; screenshot library-folders.png |
| R4-02 | Library folders, Move action | New folder from the rail (+) or from Move; Move dialog picks a folder or makes a new one; drag cards onto a folder. Folders are private to this computer. | `POST/PATCH/DELETE /api/library/folders`, `POST /api/library/place`; card menu `[data-library-action="move"]` | store "nests folders...", routes "organises with folders...", e2e folder scope (20 cards) |
| R4-03 | Nested folders (Loom: only inside Spaces) | Subfolders at any depth in the library and in spaces (better than Loom, which has none in the personal library); a folder's view includes its subfolders; folders move under other folders in the same place; cycles are refused. | `store.ts` `createFolder`, `moveFolder`; `folderTree` and `folderAndBelow` in `library-model.ts`; scope actions New subfolder and Move | store "nests folders, refuses cycles...", model "shows each tab, folder (with subfolders)..." |
| R4-04 | Folder placement rules | A folder lives in the library or one space and stays there (Loom's rule, 409 otherwise); a recording sits in one folder; to change place, move the recordings (bulk Move). | `store.ts` `moveFolder`, `place` | store "nests folders..." (refuses a move into a space folder) |
-| R4-05 | Spaces open and closed | Spaces are open (anyone using FormRec here) or closed (members only, by email), with members and admins and any number of spaces. Three places a space can live. On this computer: the library's spaces. On a relay: team spaces creators publish into with their own key (docs/parity/teamsync.md); a closed one is visible only to its members, its admins, admin keys and the owner, and the share pages on the LAN, the tunnel and the relay enforce the same rule for recordings shared to the workspace (docs/parity/workspace.md). Through a folder the person chooses (Dropbox, iCloud Drive, OneDrive, Syncthing, a share): each computer writes only its own state file with a version vector per recording, a pass fast-forwards to newer versions and brings a concurrent edit in as a conflicted copy to pick from, so no version is lost; files are verified by hash, recordings validated with the recording schema, symlinks never followed. | `POST /api/library/spaces`, `POST /api/library/spaces/:id/sync`, `transfer.ts` `syncSpace`, `sync-folder.ts`; workspace `visibility.ts`; teamsync `src/features/teamsync/`, relay `src/relay/team.ts` | `library-routes` "syncs a team space through a folder in both directions"; `teamsync-folder` (7 tests: byte-for-byte copy, fast-forward, both versions kept as conflicted copies, pick resolves and the other computer follows); `teamsync-relay`; `workspace-roles-spaces`; `teamsync-e2e` (layout shift 0). Audited at e00d9d8: passing. |
+| R4-05 | Spaces open and closed | Spaces are open (anyone using FormREC here) or closed (members only, by email), with members and admins and any number of spaces. Three places a space can live. On this computer: the library's spaces. On a relay: team spaces creators publish into with their own key (docs/parity/teamsync.md); a closed one is visible only to its members, its admins, admin keys and the owner, and the share pages on the LAN, the tunnel and the relay enforce the same rule for recordings shared to the workspace (docs/parity/workspace.md). Through a folder the person chooses (Dropbox, iCloud Drive, OneDrive, Syncthing, a share): each computer writes only its own state file with a version vector per recording, a pass fast-forwards to newer versions and brings a concurrent edit in as a conflicted copy to pick from, so no version is lost; files are verified by hash, recordings validated with the recording schema, symlinks never followed. | `POST /api/library/spaces`, `POST /api/library/spaces/:id/sync`, `transfer.ts` `syncSpace`, `sync-folder.ts`; workspace `visibility.ts`; teamsync `src/features/teamsync/`, relay `src/relay/team.ts` | `library-routes` "syncs a team space through a folder in both directions"; `teamsync-folder` (7 tests: byte-for-byte copy, fast-forward, both versions kept as conflicted copies, pick resolves and the other computer follows); `teamsync-relay`; `workspace-roles-spaces`; `teamsync-e2e` (layout shift 0). Audited at e00d9d8: passing. |
| R4-06 | All-company space | The fixed space `all` ("All of this computer"): every recording can be shared to it; it cannot be renamed, closed or deleted. | `ALL_SPACE` in `model.ts`, guards in `store.ts` | store "moves to one space or adds to several..." |
| R4-07 | Space admin controls | Space settings (admins only): rename, archive (no new recordings), open to closed but never back, members and admins (at least one admin), delete (folders go, recordings stay). | `PATCH/DELETE /api/library/spaces/:id`, scope actions `space-admin`, `space-delete` | store "moves to one space or adds to several, and keeps space admin rules" |
| R4-08 | Move vs share to a space | Move puts recordings in one folder or space and takes them out of other spaces; Add to a space shares to one more; Remove from this space unshares. A moved recording stays in Videos. The same two verbs on a relay's team spaces: add keeps the other spaces, move makes the named space the one home. | `place` mode `move` or `add`, `POST /api/library/unshare`; card actions `move`, `space`, `unshare`; teamsync `service.ts publishToSpace`, relay `team.ts` | store "moves to one space or adds to several, and keeps space admin rules"; `teamsync-relay` "adds the same recording to a second space, then moves it to be in one place only" |
diff --git a/docs/parity/live.md b/docs/parity/live.md
index be664a7..1410a8d 100644
--- a/docs/parity/live.md
+++ b/docs/parity/live.md
@@ -1,6 +1,6 @@
# Live streaming: beyond Loom
-Loom's live screen recorder page says: "While Loom does not offer live streaming, you can record your screen in real-time and share it instantly" (https://www.loom.com/products/live-screen-recorder; also https://www.loom.com/products/youtube-screen-recorder). FormRec streams a studio take to RTMP or RTMPS destinations while it records.
+Loom's live screen recorder page says: "While Loom does not offer live streaming, you can record your screen in real-time and share it instantly" (https://www.loom.com/products/live-screen-recorder; also https://www.loom.com/products/youtube-screen-recorder). FormREC streams a studio take to RTMP or RTMPS destinations while it records.
What is sent is what the player would show: edit's own graph (`buildGraph`, the one exports use), the screen with the camera bubble placed by the effects layout (its shape, size, corner and frame) or the camera alone, with every microphone mixed; H.264 and AAC in MPEG-TS from one composing FFmpeg, handed to one FFmpeg per destination that copies it to the RTMP(S) address, so the picture is composed and encoded once however many destinations there are. Heights 360, 480, 720 (default) and 1080 at 800, 1200, 2500 and 4500 kbps. The take's tracks are read from their files as chunks arrive; the recording only appends and never waits for the stream, and the stream never writes to the take. A destination that refuses or drops is started again with a growing wait (up to 30 seconds, failed after repeated tries but still tried) without touching the others, the feed or the recording. A take that starts while a destination is enabled streams on its own.
@@ -16,7 +16,7 @@ Routes (behind the token): `GET`, `PUT` and `DELETE /api/live/destinations` (als
Tests: `tests/live-keyargv-rtmp.test.ts` (the rewriter against an encoder and decoder written from the specification), `tests/live-keyargv.test.ts` (a real take to FFmpeg as RTMP server and to RTMPS through TLS, `/proc/*/cmdline` and `environ` of every child read every 30 ms), `tests/live-logic.test.ts` (pure and routes), `tests/live-stream.test.ts` (real FFmpeg listening as an RTMP server on 127.0.0.1), `tests/live-e2e.test.ts` (Chromium, layout shift at 4x CPU throttling).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-live-1 | Loom does not offer live streaming (its live screen recorder page) | Stream a take to an RTMP server: video and audio of the expected size, the recording whole. | `stream.ts`, `compose.ts` | `live-stream` "sends what the player shows to an RTMP server, with video and audio of the expected size, and the recording is whole"; `live-logic` "reads the tracks as pipes, with edit's graph, the bubble where effects puts it, and no file or network input", "shows the camera alone when there is no screen, and no bubble when the camera is part of the picture", "has sizes for every height and refuses a take with nothing in it" |
| BL-live-2 | Same | Starts with the take for enabled destinations and stops with it; refuses a take that is not recording and a start with no destination. | `index.ts` `autoStart`, `start` | `live-stream` "starts with the take for enabled destinations and stops with it", "refuses a take that is not recording, and a start with no destination" |
@@ -35,7 +35,7 @@ Code: `src/features/live/` `hls.ts` (writer), `link.ts` (store, `/live/lin
Latency: the stages add up to about 8 to 12 seconds on an idle machine (recorder chunk 2 s, HLS segment 2 s, the viewer joins 2 segments back, a 500 ms playlist poll, encode and mux). Measured glass to glass (a clock on the host's screen read by OCR in the viewer's video) at 11.5 seconds before the machine was loaded. On the shared 2-core box used for the final runs the load average was 16 to 21, and the same test read 26 to 58 seconds, so that figure measures the load, not the design. The test prints it and checks a bound only when the load per core is below 3.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-live-6 | Loom does not offer live streaming | A link to watch the take live, with no destination needed, HLS from the composed feed, old segments deleted, nothing kept in the recording. | `hls.ts`, `index.ts` | `live-link-logic` "writes fMP4 segments with the fixed names in a short window, deletes old ones as it moves, and removes everything on stop"; `live-link-e2e` "shows a real take to a second browser with no destination, keeps going through a pause, and ends with the take" |
| BL-live-7 | Same | The feed goes on through a pause (slate, one growing clock) and picks the composed picture up again. | `slate.ts`, `feedclock.ts`, `stream.ts` | `live-link-logic` "makes a slate from the last picture of a feed: same size, H.264 and AAC, the timestamps starting where it is told", "joins producers into one clock: after the first, a producer's timestamps start just after the last one sent, audio and video keeping their distance", "carries the feed to its tap, goes on through a pause with the slate and the timestamps growing, and sends the composed picture again after"; the e2e above (segments keep coming during a pause) |
diff --git a/docs/parity/mail.md b/docs/parity/mail.md
index 59f60ac..6afd920 100644
--- a/docs/parity/mail.md
+++ b/docs/parity/mail.md
@@ -1,12 +1,12 @@
# Mail: Loom parity
-Loom emails invitations, sign-in links and activity notices from its own servers. FormRec sends real email from the person's own account, with no FormRec server in between: Settings, Email picks SMTP (implicit TLS, STARTTLS, AUTH PLAIN, LOGIN or XOAUTH2), Gmail (OAuth 2.0 with PKCE and a loopback redirect, `users.messages.send`) or Outlook (Microsoft Graph `POST /me/sendMail`). FormRec ships no OAuth client; the person registers their own with Google or Microsoft. Secrets are write-only through the API and the settings file is 0600 in a 0700 folder. Without mail set up nothing is sent and the viewer is told the person who shared has the code (the owner still reads codes in the share dialog).
+Loom emails invitations, sign-in links and activity notices from its own servers. FormREC sends real email from the person's own account, with no FormREC server in between: Settings, Email picks SMTP (implicit TLS, STARTTLS, AUTH PLAIN, LOGIN or XOAUTH2), Gmail (OAuth 2.0 with PKCE and a loopback redirect, `users.messages.send`) or Outlook (Microsoft Graph `POST /me/sendMail`). FormREC ships no OAuth client; the person registers their own with Google or Microsoft. Secrets are write-only through the API and the settings file is 0600 in a 0700 folder. Without mail set up nothing is sent and the viewer is told the person who shared has the code (the owner still reads codes in the share dialog).
Code: `src/mail/` (`index.ts` `mailStatus` and `sendMail`, `settings.ts`, `smtp.ts` a small client on `node:net` and `node:tls`, `mime.ts` RFC 5322 / RFC 2047 messages, `oauth.ts`, `http.ts` the Google and Microsoft calls, `templates.ts` the table layout with a bulletproof button and an inline linked picture), `src/features/mail/` (`index.ts` the `/api/mail` routes and the `formrec_mail_test` tool, `send.ts` the invitation sender, notice cards and the last 30 sends in `/mail/log.json`), `web/src/features/mail.ts` (Settings, Email). Callers: share's `shared` news, `src/features/integrations/notices.ts` (code, notification, digest), `src/features/share/viewer-auth.ts` (sign-in links, through the same `sendMail`), `src/features/workspace/invitations.ts`.
Tests: `tests/mail-smtp.test.ts` (a fake SMTP server on `node:net`: TLS, STARTTLS, AUTH, MIME, dot-stuffing, header injection refused), `mail-api.test.ts` (routes, write-only secrets, Gmail and Outlook flows with fake vendor servers checking the documented request shapes, token refresh, 3 MB attachment limit), `mail-templates.test.ts`, `mail-seams.test.ts`, `mail-cross.test.ts` (a real app, real FFmpeg GIF, real SMTP), `mail-e2e.test.ts` (Chromium, layout shift 0). All ran on the audit base and pass. Gmail and Outlook were exercised against fakes of the vendor APIs, not against Google or Microsoft.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R4-60 | Email from the person's own account | SMTP, Gmail and Outlook transports as above, one `sendMail(dataDir, message)` for every feature; every attempt logged (when, to, subject, ok or the error, never a secret). | `src/mail/`, `src/features/mail/index.ts` | `mail-smtp`, `mail-api`, `mail-e2e` (saves an SMTP server, sends a test email, shifts nothing) |
| R3-04 | Share with specific people | A `people` share emails each new person an invitation with the owner's note, a button and the share's animated GIF inline by Content-ID (picture linked to the page, width and height set; falls back to the poster, then to no picture). A person is invited once; people added later get theirs. The one-time code reaches the viewer by email, and only to an address on the share. The sign-in link (15 minutes, single use) is mailed only to an address that could open something. | `send.ts inviteShare`, `noticeCard`, `emailNotice`; `viewer-auth.ts` | `mail-cross` ("emails the invitation ... GIF inline", "invites a person once", "emails the one-time code ... a stranger gets nothing"), `viewer-auth-magic` (link text, 15 minutes, 403 for a foreign Origin) with a stand-in sender; `mail-seams` sends one through the real SMTP client |
diff --git a/docs/parity/meetings.md b/docs/parity/meetings.md
index 35dbd71..934cfac 100644
--- a/docs/parity/meetings.md
+++ b/docs/parity/meetings.md
@@ -1,6 +1,6 @@
# Parity: meetings
-Loom AI for Meetings sends a bot into Zoom, Meet and Teams calls and writes a recap. FormRec does it on the person's own
+Loom AI for Meetings sends a bot into Zoom, Meet and Teams calls and writes a recap. FormREC does it on the person's own
computer: a Meetings view over their calendars, a notetaker built on the headless runner, native capture with a consent
step, and the recap as a document. Code is in `src/features/meetings/` (server), `web/src/features/meetings.ts`,
`web/src/meetings-*.ts` (client) and `web/styles/meetings.css`. Tests: `tests/meetings-units.test.ts`,
@@ -8,14 +8,14 @@ step, and the recap as a document. Code is in `src/features/meetings/` (server),
`tests/meetings-notetaker.test.ts` (a local fake meeting page, real Chromium and FFmpeg), `tests/meetings-web.test.ts`,
`tests/meetings-e2e.test.ts` (Chromium, layout shift 0).
-| row | Loom feature | what FormRec does | where | verified by |
+| row | Loom feature | what FormREC does | where | verified by |
|---|---|---|---|---|
-| R1-46 | Meeting recording (Notetaker bot), auto-record all / internal / internal without 1:1s / manual, admins can disable | "Send FormRec Notetaker" joins a link as the guest "FormRec Notetaker (recording)" in a Playwright browser on this computer (headless or headed), waits to be admitted, posts the consent message in the chat, records picture (the runner's screencast) and sound, and leaves when the meeting ends, when alone, at its longest stay, or when stopped. The four rules are in Settings, Meetings and on the view; a switch on a meeting beats the rule. The workspace policy `notetaker` lets an admin turn it off. Failures are plain ("the host must admit the notetaker"). | `notetaker.ts`, `joiners.ts`, `audio.ts`, `rules.ts`, `runs.ts`, `POST /api/meetings/notetaker`, policy in `workspace/policy.ts` | notetaker test against a local fake meeting page with real Chromium and FFmpeg (join, lobby, chat, sound checked with volumedetect, leave, alone, stop, policy); units (rules over sample events); both pass in the audit. The join flows are built from the products' public guest pages and were not run against live Meet, Teams or Zoom; a sign-in wall is reported, never automated (`joiners.ts`) |
+| R1-46 | Meeting recording (Notetaker bot), auto-record all / internal / internal without 1:1s / manual, admins can disable | "Send FormREC Notetaker" joins a link as the guest "FormREC Notetaker (recording)" in a Playwright browser on this computer (headless or headed), waits to be admitted, posts the consent message in the chat, records picture (the runner's screencast) and sound, and leaves when the meeting ends, when alone, at its longest stay, or when stopped. The four rules are in Settings, Meetings and on the view; a switch on a meeting beats the rule. The workspace policy `notetaker` lets an admin turn it off. Failures are plain ("the host must admit the notetaker"). | `notetaker.ts`, `joiners.ts`, `audio.ts`, `rules.ts`, `runs.ts`, `POST /api/meetings/notetaker`, policy in `workspace/policy.ts` | notetaker test against a local fake meeting page with real Chromium and FFmpeg (join, lobby, chat, sound checked with volumedetect, leave, alone, stop, policy); units (rules over sample events); both pass in the audit. The join flows are built from the products' public guest pages and were not run against live Meet, Teams or Zoom; a sign-in wall is reported, never automated (`joiners.ts`) |
| R1-47 | Desktop Meetings tab: today and 30 days, per-meeting toggle, paste a link | `#/meetings`: Today, Coming up and Last 30 days from every connected calendar, a record switch per meeting, Join, Notetaker, Record on this computer, and a paste-a-link box. | `web/src/meetings-view.ts`, `GET /api/meetings`, `PUT /api/meetings/meeting/:id` | `meetings-e2e` "lists today and the last 30 days ..." (CLS 0; passes in the audit); the consent step and the always-visible Recording indicator (`web/src/meetings-offer.ts`) are `meetings-e2e` "asks for consent before a Meeting take, shows the Recording indicator while it records, and stops from it" |
| R4-75 | Calendar notetaker (Google, Outlook) | The iCalendar link (integrations), Google Calendar API and Microsoft Graph with OAuth 2.0 PKCE through a loopback redirect and the owner's own OAuth client. Marked meetings can be joined by the notetaker by itself when Settings turns that on. | `calendars.ts`, `oauth.ts`, `index.ts` `autoTick` | calendars test (authorization request, token exchange, refresh, events.list and calendarView shapes, paging) |
| R2-44 | AI meeting notes and recaps | After a meeting the ai feature makes the summary, the action items and the meeting notes; they are written as `meeting-recap.md` next to the recording (attendees, recap, highlights with times, action items) and can be emailed to the attendees through `src/mail` when it is set up. | `recap.ts`, `POST /api/meetings/recordings/:id/recap` and `/email`, MCP `formrec_meeting_recap` | notetaker test (recap file, email through the seam); units (document, mail seam) |
-| R4-55 | Zoom cloud recording import | Unchanged here: the library's folder import. A meeting FormRec records itself arrives in the library already, with its recap. | `library/transfer.ts` | library-routes "imports a folder once" |
+| R4-55 | Zoom cloud recording import | Unchanged here: the library's folder import. A meeting FormREC records itself arrives in the library already, with its recap. | `library/transfer.ts` | library-routes "imports a folder once" |
Not like Loom: there is no cloud bot, so the notetaker only joins what a guest can join (a meeting that needs a sign-in
or a verification code is reported, never automated). Consent is the person's: a notice before recording, a message for
-the chat, and a Recording indicator that stays on screen while FormRec records.
+the chat, and a Recording indicator that stays on screen while FormREC records.
diff --git a/docs/parity/objects.md b/docs/parity/objects.md
index 0075a7f..6500ac2 100644
--- a/docs/parity/objects.md
+++ b/docs/parity/objects.md
@@ -1,13 +1,13 @@
# Objects and the Jira work item: Loom parity
-Loom's MCP tools moved to a V2 object-based set in the Atlassian Rovo MCP server (changelog 2026-10-16 and 2026-10-23: `listLoomObjects`, `getLoomObjectsContent`, `shareLoomObject`, `addLoomInteraction`, folder operations; https://developer.atlassian.com/cloud/rovo-mcp/changelog/), and a Record for agent prompt can be opened as a Jira work item assigned to an agent (2026-10-22, https://www.atlassian.com/blog/loom/record-for-agents). This page maps those to FormRec's counterparts. This is parity, not beyond Loom.
+Loom's MCP tools moved to a V2 object-based set in the Atlassian Rovo MCP server (changelog 2026-10-16 and 2026-10-23: `listLoomObjects`, `getLoomObjectsContent`, `shareLoomObject`, `addLoomInteraction`, folder operations; https://developer.atlassian.com/cloud/rovo-mcp/changelog/), and a Record for agent prompt can be opened as a Jira work item assigned to an agent (2026-10-22, https://www.atlassian.com/blog/loom/record-for-agents). This page maps those to FormREC's counterparts. This is parity, not beyond Loom.
The objects feature has no routes and no storage of its own: its tools read and write through the library, share, engage, transcripts and ai features. One set covers recordings of every kind (videos, meetings, walkthroughs, clips). Putting a recording in a folder stays `formrec_library_move`, listing folders `formrec_library_folders`, renaming `formrec_rename`, visibility `formrec_share_settings`.
| Tool | Loom V2 counterpart | What it does |
| --- | --- | --- |
| `formrec_objects_list` | `listLoomObjects` | Browse recordings newest first, filter by kind, date and words, page with a cursor. |
-| `formrec_objects_content` | `getLoomObjectsContent` | Up to 20 recordings in one call (the limit is FormRec's), in the order asked, each with its own status and a status per component: title, summary, chapters, transcript text (cut at a limit, and says so), comments, tasks, links, meeting details, share link, dev log, agent prompt. |
+| `formrec_objects_content` | `getLoomObjectsContent` | Up to 20 recordings in one call (the limit is FormREC's), in the order asked, each with its own status and a status per component: title, summary, chapters, transcript text (cut at a limit, and says so), comments, tasks, links, meeting details, share link, dev log, agent prompt. |
| `formrec_object_share` | `shareLoomObject` | Share with specific people with a note; keeps the people already on the share; answers without a link while sharing is off. |
| `formrec_object_interact` | `addLoomInteraction` | A comment or a reaction at a moment. |
| `formrec_folder_create`, `formrec_folder_update`, `formrec_folder_delete` | folder operations | Create (optionally nested, in a space, filling it), rename or move, delete with `confirm` (its recordings go back to the top of the library). |
@@ -18,7 +18,7 @@ Code: `src/features/objects/` (`index.ts`, `handlers.ts`), `src/features/ai/prom
Tests: `tests/objects-mcp.test.ts`, `tests/agent-work-item.test.ts` (a fake Jira that checks the documented request shapes), `tests/agent-work-item-browser.test.ts` (Chromium, layout shift at 4x CPU throttling).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R1-48 | Record for agent (video prompts) | The prompt can be sent to Jira as a work item for an agent or a person. Row status unchanged. | `agent-work-item.ts` | rows below |
| R2-38, R2-40, R3-69 | Loom MCP tools | The seven object tools above, with titles, honest annotations and output schemas, alongside every existing tool. Row statuses unchanged. | `src/features/objects/` | `objects-mcp` "adds the seven tools with titles, honest annotations and output schemas, and keeps every existing tool" |
@@ -32,4 +32,4 @@ Tests: `tests/objects-mcp.test.ts`, `tests/agent-work-item.test.ts` (a fake Jira
## Not verified
-A real Jira site; whether an assignee of `accountType: app` is accepted for agents; the batch limit of 20 is FormRec's, not Loom's.
+A real Jira site; whether an assignee of `accountType: app` is accepted for agents; the batch limit of 20 is FormREC's, not Loom's.
diff --git a/docs/parity/phone.md b/docs/parity/phone.md
index b0b7fcc..b9c29dd 100644
--- a/docs/parity/phone.md
+++ b/docs/parity/phone.md
@@ -1,17 +1,17 @@
# Parity: phone (R1-11, R1-12, R1-13)
-Loom records on phones through native iOS and Android apps. FormRec's local equivalent is "Record from your phone": the phone's own browser opens a page served by this computer's guest listener over HTTPS on the same network, pairs once with a six-digit code, records on its own (not as a guest in a host's take) and saves into this computer's library as a normal recording with one track per source. Nothing is installed; the page is an installable web app (manifest and icons) so it can be added to the home screen. Nothing goes to a cloud.
+Loom records on phones through native iOS and Android apps. FormREC's local equivalent is "Record from your phone": the phone's own browser opens a page served by this computer's guest listener over HTTPS on the same network, pairs once with a six-digit code, records on its own (not as a guest in a host's take) and saves into this computer's library as a normal recording with one track per source. Nothing is installed; the page is an installable web app (manifest and icons) so it can be added to the home screen. Nothing goes to a cloud.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R1-11 | Audio-only recording (mobile) | The phone page's "Audio only" mode records the microphone to its own track (`phone-mic`) and saves an audio recording (mode `audio`, no picture). | `web/src/phone.ts` (`[data-phone-mode-pick="audio"]`), `POST /phone/api/takes {mode:"audio"}` in `src/features/phone/handler.ts` | `tests/phone-server.test.ts` "records audio only, and keeps phones to their own takes"; `tests/phone-e2e.test.ts` second test (audio take saved, tracks `['phone-mic']`); screenshot `phone-audio.png` |
-| R1-12 | iOS recording (screen, camera or audio; front/rear switch) | Camera with the microphone (front or back, flip at any time; a flip while recording ends the camera's track and starts the other camera in a new one, `phone-camera-2`, placed on the take's timeline where it starts, because a browser recorder cannot change its source), or audio only. Screen is not offered on iPhone and iPad because Safari has no `getDisplayMedia`; the page says so in `[data-phone-mode-note]` and disables the Screen choice. Honest limit: FormRec stores WebM; Safari records WebM from iOS 18.4, and on older iOS the page says it cannot record here (`phoneAbilities().webm`). | `web/src/phone.ts`, `web/src/phone-upload.ts` (`phoneAbilities`), `web/styles/phone.css` | `tests/phone-e2e.test.ts` "says so when the browser cannot record the screen (iPhone Safari)..." (Chromium at the iPhone 13 viewport with `getDisplayMedia` removed); flip asserted via `[data-phone-stage][data-facing="environment"]` and the saved tracks `phone-camera`, `phone-camera-2` (offset after the flip), `phone-mic`; screenshots `phone-ios-light.png`, `phone-recording.png`. Not run on a real iPhone. |
+| R1-12 | iOS recording (screen, camera or audio; front/rear switch) | Camera with the microphone (front or back, flip at any time; a flip while recording ends the camera's track and starts the other camera in a new one, `phone-camera-2`, placed on the take's timeline where it starts, because a browser recorder cannot change its source), or audio only. Screen is not offered on iPhone and iPad because Safari has no `getDisplayMedia`; the page says so in `[data-phone-mode-note]` and disables the Screen choice. Honest limit: FormREC stores WebM; Safari records WebM from iOS 18.4, and on older iOS the page says it cannot record here (`phoneAbilities().webm`). | `web/src/phone.ts`, `web/src/phone-upload.ts` (`phoneAbilities`), `web/styles/phone.css` | `tests/phone-e2e.test.ts` "says so when the browser cannot record the screen (iPhone Safari)..." (Chromium at the iPhone 13 viewport with `getDisplayMedia` removed); flip asserted via `[data-phone-stage][data-facing="environment"]` and the saved tracks `phone-camera`, `phone-camera-2` (offset after the flip), `phone-mic`; screenshots `phone-ios-light.png`, `phone-recording.png`. Not run on a real iPhone. |
| R1-13 | Android recording (screen + cam, screen, cam, audio; 3-second countdown; control bar) | Camera, audio only, and Screen (with the microphone) where the browser has `getDisplayMedia` (Android Chrome). A 3-second countdown before every take (tap again to cancel), pause, resume, a timer, flip, stop. Screen and camera together are not combined into one picture (two pickers on a phone); a screen take records screen and microphone tracks. The controls are on the page, not a floating bar over other apps (a web page cannot draw over other apps). | `web/src/phone.ts` (`onRecord` countdown, `togglePause`, `flip`, `[data-phone-clock]`), `KINDS` in `handler.ts` | `tests/phone-e2e.test.ts` second test (countdown step, recording, flip, pause freezes the clock, resume, stop, save); `phone-server.test.ts` (screen take created; kinds per mode enforced); screenshots `phone-countdown.png`, `phone-ready.png`. Android Chrome screen capture not run on a device. |
| R1-11..13 | Pairing, upload that survives a dropped connection, save | Pairs with the guest listener's code and device cookie (`/api/pair`, `src/guests/devices.ts`); the code can ride in the QR link's fragment (`#pair=123456`, never sent over the network). Every chunk stays on the phone until the computer confirms it; sending retries without a limit, and after any failure the phone asks how many chunks the computer holds (`GET /phone/api/takes/:id`) and resumes there. A take left by a closed page is offered for saving on the next visit. Saved through `finishSession` like a studio take, plus `/phone.json` naming the phone. | `src/features/phone/handler.ts`, `src/features/phone/takes.ts`, `web/src/phone-upload.ts` (`ResumableUpload`) | `phone-server.test.ts` "records a camera take in chunks, resumes after a lost reply..." and "needs the paired device cookie..."; `phone-client.test.ts` "the resumable upload" (drop, lost replies, fatal refusal, wake); e2e goes offline mid-take (`context.setOffline`) and checks every chunk arrives; screenshot `phone-offline.png` |
-| R1-11..13 | No app install (Loom's native apps) | Web app manifest (`/phone/manifest.webmanifest`, standalone, scope `/phone/`), icons 192, 512 and maskable 512, and an apple-touch-icon, made from the official FormRec icons with PIL. Honest limit: Chrome may only offer a home screen shortcut (not a full install) while the certificate is this computer's self-signed one. | `MANIFEST` in `handler.ts`, `web/phone.html`, `web/brand/phone-*.png` | `phone-server.test.ts` "serves only its fixed files..."; e2e checks each icon's real size matches the manifest |
-| R1-11..13 | Installable web app: service worker, offline queue, Add to Home Screen | `/phone/sw.js` (scope `/phone/`, `Service-Worker-Allowed`, no-store) caches the shell (page, scripts, styles, icons) and answers it first so the installed app starts at once, offline too; `/phone/api/` is never cached. Every recorded chunk is also kept in IndexedDB (`phone-queue.ts`) until the computer confirms it; a page closed or killed mid-take is replayed in order when it opens again (`replayPending`: ask how many chunks the computer holds, send the rest in sequence, end the track), and on Chrome for Android a Background Sync wakes the worker to replay with the page closed. With the computer out of reach the app opens from the cache and says so, then carries on when the network returns. Add to Home Screen words for iPhone Safari (Share, Add to Home Screen) and Android (Install button from `beforeinstallprompt`, or the menu) in a closed disclosure of fixed height (`phone-install.ts`). Wake lock while recording, taken back when the page returns; orientation kept where the browser allows it (`screen.orientation.lock`), landscape layout; pause, resume and stop from the system media controls (Media Session), which are not part of a recorded screen; controls sticky at the bottom of the page. Honest limits: Chrome and Safari refuse a service worker behind a certificate they do not trust, so on a phone that has not been taught to trust FormRec's certificate the page works without the worker (the IndexedDB queue and the in-page replay still work; the instant offline start and background sync need the worker); a web page cannot draw controls over other apps (the Media Session controls stand in for them). | `web/src/phone-sw.ts`, `web/src/phone-queue.ts`, `web/src/phone-install.ts`, `web/src/phone.ts`, `web/styles/phone.css`, `src/features/phone/handler.ts` | `tests/phone-pwa-offline.test.ts` (Chromium, fake camera: the shell is in the worker's cache; the connection drops mid-take and chunks wait in IndexedDB; the page is reloaded offline and starts from the cache; on return the queue goes up in order with no gap or repeat, tracks are ended and saved; CLS 0 on the page with the new controls, install guidance and a rotation); `tests/phone-pwa-server.test.ts` (manifest type, scope and icons; worker headers; install words per platform). Not run on a real phone. |
-| R1-12, R1-13 | Native screen recording where the OS needs an app | `apps/ios` (SwiftUI app and a ReplayKit Broadcast Upload Extension that writes H.264 and AAC as a fragmented MP4 with `AVAssetWriter` and sends each segment as a chunk; App Group shared settings and spool; `RPSystemBroadcastPickerView`; XcodeGen `project.yml`) and `apps/android` (Kotlin, MediaProjection in a foreground service of type `mediaProjection` with the Android 14 consent rules, `MediaRecorder` to MP4, a notification with pause and stop, WorkManager upload; Gradle Kotlin DSL). Both pair like the web page (code, certificate pinned by fingerprint the person confirms) and upload over `/phone/api/native/uploads` (`apps/mobile-api.md`). The server accepts the chunks as one MP4 and hands the file to the library's importer, mixing an iOS broadcast's two audio tracks into one. | `apps/ios/`, `apps/android/`, `apps/mobile-api.md`, `src/features/phone/native.ts` | `tests/phone-pwa-server.test.ts` "the native apps upload an MP4 over the pairing" (ffmpeg-made fragmented and whole MP4s in uneven chunks, lost reply, gap, ownership, limits, library recording, audio mix). The iOS app's shared Swift code is compiled and tested with Swift 6.4.2 on Linux: `apps/ios/Package.swift` builds `Shared/` (pairing link, client, chunk uploader, pending uploads, settings) as the library `FormRecShared` with Foundation and FoundationNetworking, 32 XCTests (`apps/ios/Tests/FormRecSharedTests`, `apps/ios/FormRecTests/PairingLinkTests.swift`) cover the link, the client's request shapes against `handler.ts` and `native.ts` (Origin, cookie, body, `seq`), the uploader's order and retry, the pending queue and the pin rule, and `tests/phone-ios-e2e.test.ts` runs `swift test --filter RealServerTests` against a real FormRec (pairs by code with the computer's certificate fingerprint checked against the server's, chunk answers, a three-slice ffmpeg MP4 sent by `ChunkUploader`, a left-behind spool finished by `PendingUploads`, both landing in the library as native phone recordings). On Linux URLSession gives a delegate no server trust, so the certificate pin is not enforced on the wire there (the run trusts exactly the computer's certificate through a private mount namespace) and the pin rule is tested directly; on iOS the delegate is unchanged. The app (`FormRec/`), the broadcast extension, `SegmentWriter.swift` (AVFoundation) and the Xcode project were not compiled or run (no Xcode, no device), so R1-12 stays L. The Kotlin app was built (`assembleDebug`, an APK), linted (0 errors) and unit-tested on the JVM: `apps/android/app/src/test/` (notification intents, upload queue, settings, manifest, screen size) and `FormRecServerE2ETest`, which `tests/phone-android-e2e.test.ts` runs through Gradle against a real FormRec server (pairing with the pinned certificate, the chunk answers, `UploadWorker` sending a two-slice ffmpeg MP4 that lands in the library, retry, resume, restart). The MediaProjection capture itself was not run (no device; no KVM for an emulator), so R1-13 stays L. |
-| R1-11..13 | Finding the phone page | Home and Settings > Phone show a QR code (encoded and drawn as SVG by FormRec's own encoder, `web/src/phone-qr.ts`, byte mode, level M, versions 1 to 10), the link, a "Show a pairing code" button with its expiry, and Turn on/off for the network listener. Agents get `formrec_phone` (link, code status, optional enable and new code). | `web/src/features/phone.ts` (`[data-phone-card]`), `web/src/home.ts` (hook), `GET /api/phone` and `formrec_phone` in `src/features/phone/index.ts` | `phone-client.test.ts` "the QR encoder" (Reed-Solomon and format/version vectors, OpenCV decodes three links); e2e decodes the Home QR screenshot with OpenCV and compares it with the link; `phone-server.test.ts` "formrec_phone" (not running; link, new code, enable, code spent after pairing); screenshots `home-phone-card.png`, `settings-phone.png` |
+| R1-11..13 | No app install (Loom's native apps) | Web app manifest (`/phone/manifest.webmanifest`, standalone, scope `/phone/`), icons 192, 512 and maskable 512, and an apple-touch-icon, made from the official FormREC icons with PIL. Honest limit: Chrome may only offer a home screen shortcut (not a full install) while the certificate is this computer's self-signed one. | `MANIFEST` in `handler.ts`, `web/phone.html`, `web/brand/phone-*.png` | `phone-server.test.ts` "serves only its fixed files..."; e2e checks each icon's real size matches the manifest |
+| R1-11..13 | Installable web app: service worker, offline queue, Add to Home Screen | `/phone/sw.js` (scope `/phone/`, `Service-Worker-Allowed`, no-store) caches the shell (page, scripts, styles, icons) and answers it first so the installed app starts at once, offline too; `/phone/api/` is never cached. Every recorded chunk is also kept in IndexedDB (`phone-queue.ts`) until the computer confirms it; a page closed or killed mid-take is replayed in order when it opens again (`replayPending`: ask how many chunks the computer holds, send the rest in sequence, end the track), and on Chrome for Android a Background Sync wakes the worker to replay with the page closed. With the computer out of reach the app opens from the cache and says so, then carries on when the network returns. Add to Home Screen words for iPhone Safari (Share, Add to Home Screen) and Android (Install button from `beforeinstallprompt`, or the menu) in a closed disclosure of fixed height (`phone-install.ts`). Wake lock while recording, taken back when the page returns; orientation kept where the browser allows it (`screen.orientation.lock`), landscape layout; pause, resume and stop from the system media controls (Media Session), which are not part of a recorded screen; controls sticky at the bottom of the page. Honest limits: Chrome and Safari refuse a service worker behind a certificate they do not trust, so on a phone that has not been taught to trust FormREC's certificate the page works without the worker (the IndexedDB queue and the in-page replay still work; the instant offline start and background sync need the worker); a web page cannot draw controls over other apps (the Media Session controls stand in for them). | `web/src/phone-sw.ts`, `web/src/phone-queue.ts`, `web/src/phone-install.ts`, `web/src/phone.ts`, `web/styles/phone.css`, `src/features/phone/handler.ts` | `tests/phone-pwa-offline.test.ts` (Chromium, fake camera: the shell is in the worker's cache; the connection drops mid-take and chunks wait in IndexedDB; the page is reloaded offline and starts from the cache; on return the queue goes up in order with no gap or repeat, tracks are ended and saved; CLS 0 on the page with the new controls, install guidance and a rotation); `tests/phone-pwa-server.test.ts` (manifest type, scope and icons; worker headers; install words per platform). Not run on a real phone. |
+| R1-12, R1-13 | Native screen recording where the OS needs an app | `apps/ios` (SwiftUI app and a ReplayKit Broadcast Upload Extension that writes H.264 and AAC as a fragmented MP4 with `AVAssetWriter` and sends each segment as a chunk; App Group shared settings and spool; `RPSystemBroadcastPickerView`; XcodeGen `project.yml`) and `apps/android` (Kotlin, MediaProjection in a foreground service of type `mediaProjection` with the Android 14 consent rules, `MediaRecorder` to MP4, a notification with pause and stop, WorkManager upload; Gradle Kotlin DSL). Both pair like the web page (code, certificate pinned by fingerprint the person confirms) and upload over `/phone/api/native/uploads` (`apps/mobile-api.md`). The server accepts the chunks as one MP4 and hands the file to the library's importer, mixing an iOS broadcast's two audio tracks into one. | `apps/ios/`, `apps/android/`, `apps/mobile-api.md`, `src/features/phone/native.ts` | `tests/phone-pwa-server.test.ts` "the native apps upload an MP4 over the pairing" (ffmpeg-made fragmented and whole MP4s in uneven chunks, lost reply, gap, ownership, limits, library recording, audio mix). The iOS app's shared Swift code is compiled and tested with Swift 6.4.2 on Linux: `apps/ios/Package.swift` builds `Shared/` (pairing link, client, chunk uploader, pending uploads, settings) as the library `FormRecShared` with Foundation and FoundationNetworking, 32 XCTests (`apps/ios/Tests/FormRecSharedTests`, `apps/ios/FormRecTests/PairingLinkTests.swift`) cover the link, the client's request shapes against `handler.ts` and `native.ts` (Origin, cookie, body, `seq`), the uploader's order and retry, the pending queue and the pin rule, and `tests/phone-ios-e2e.test.ts` runs `swift test --filter RealServerTests` against a real FormREC (pairs by code with the computer's certificate fingerprint checked against the server's, chunk answers, a three-slice ffmpeg MP4 sent by `ChunkUploader`, a left-behind spool finished by `PendingUploads`, both landing in the library as native phone recordings). On Linux URLSession gives a delegate no server trust, so the certificate pin is not enforced on the wire there (the run trusts exactly the computer's certificate through a private mount namespace) and the pin rule is tested directly; on iOS the delegate is unchanged. The app (`FormRec/`), the broadcast extension, `SegmentWriter.swift` (AVFoundation) and the Xcode project were not compiled or run (no Xcode, no device), so R1-12 stays L. The Kotlin app was built (`assembleDebug`, an APK), linted (0 errors) and unit-tested on the JVM: `apps/android/app/src/test/` (notification intents, upload queue, settings, manifest, screen size) and `FormRecServerE2ETest`, which `tests/phone-android-e2e.test.ts` runs through Gradle against a real FormREC server (pairing with the pinned certificate, the chunk answers, `UploadWorker` sending a two-slice ffmpeg MP4 that lands in the library, retry, resume, restart). The MediaProjection capture itself was not run (no device; no KVM for an emulator), so R1-13 stays L. |
+| R1-11..13 | Finding the phone page | Home and Settings > Phone show a QR code (encoded and drawn as SVG by FormREC's own encoder, `web/src/phone-qr.ts`, byte mode, level M, versions 1 to 10), the link, a "Show a pairing code" button with its expiry, and Turn on/off for the network listener. Agents get `formrec_phone` (link, code status, optional enable and new code). | `web/src/features/phone.ts` (`[data-phone-card]`), `web/src/home.ts` (hook), `GET /api/phone` and `formrec_phone` in `src/features/phone/index.ts` | `phone-client.test.ts` "the QR encoder" (Reed-Solomon and format/version vectors, OpenCV decodes three links); e2e decodes the Home QR screenshot with OpenCV and compares it with the link; `phone-server.test.ts` "formrec_phone" (not running; link, new code, enable, code spent after pairing); screenshots `home-phone-card.png`, `settings-phone.png` |
## Security
diff --git a/docs/parity/recsdk.md b/docs/parity/recsdk.md
index 773731b..3b42a4a 100644
--- a/docs/parity/recsdk.md
+++ b/docs/parity/recsdk.md
@@ -1,11 +1,11 @@
# Parity: recorder SDK
-Loom's `@loomhq/record-sdk` lets a website add a record button (Standard) or draw its own controls (Custom UI) and gets back a shared video. FormRec does the same with the person's own relay in place of a vendor cloud: a drop-in script and a hosted recorder page are served by the relay (`docs/relay.md`), a site registered as an app in Settings, Integrations, Recorder SDK apps records the visitor's screen and camera in the visitor's browser, the recording goes up in chunks, is shared at once with a `/v/` link and an `/e/` embed on the relay, and reaches the owner's library on the next relay sync (the computer stays the source of truth). The app id is public; the gate is the app's origin list, an optional RS256 or ES256 signed token, and optional guest limits that are off by default (FormRec has no plan limits). The LAN pairing SDK (`formrec-sdk.js`, a six-digit code per origin) stays as it was and is documented in integrations.md. The full guide is `docs/recorder-sdk.md`.
+Loom's `@loomhq/record-sdk` lets a website add a record button (Standard) or draw its own controls (Custom UI) and gets back a shared video. FormREC does the same with the person's own relay in place of a vendor cloud: a drop-in script and a hosted recorder page are served by the relay (`docs/relay.md`), a site registered as an app in Settings, Integrations, Recorder SDK apps records the visitor's screen and camera in the visitor's browser, the recording goes up in chunks, is shared at once with a `/v/` link and an `/e/` embed on the relay, and reaches the owner's library on the next relay sync (the computer stays the source of truth). The app id is public; the gate is the app's origin list, an optional RS256 or ES256 signed token, and optional guest limits that are off by default (FormREC has no plan limits). The LAN pairing SDK (`formrec-sdk.js`, a six-digit code per origin) stays as it was and is documented in integrations.md. The full guide is `docs/recorder-sdk.md`.
Code: `src/relay/recsdk/server.ts` (public routes under `/sdk/`, sessions, ordered chunks, completion, owner route `PUT /relay-api/sdk/apps`), `src/relay/recsdk/jwt.ts` (RS256 and ES256 verification, key checks), `src/relay/recsdk/model.ts` (apps, origins, limits), `src/features/integrations/recsdk.ts` (the owner's app list, `/api/integrations/recsdk`, pushed to the relay, `formrec_integrations` `recorderSdk`), `web/src/formrec-record-sdk.ts` (the drop-in script: `FormRec.setup`, `isSupported`, `configureButton`, `createRecorder`, events, types), `web/src/sdk-record.ts` (the hosted recorder page).
Tests: `tests/recsdk-e2e.test.ts` (Chromium with fake media, a customer page on another origin and the relay on its own), `tests/recsdk-apps.test.ts`, `tests/recsdk-jwt.test.ts`, `tests/recsdk-types.test.ts` (helper `tests/recsdk-kit.ts`).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R1-55 | Record SDK: `setup`, `isSupported`, `configureButton` with `onStart`, `onCancel`, `onComplete`, `onInsertClicked`, lifecycle updates; Custom UI; key-pair auth | `FormRec.setup({ appId, jwt?, guest? })` opens a session for the page's origin (`bad-origin` when it is not registered). `isSupported()` needs a secure context, `MediaRecorder` and screen capture. `configureButton` opens the hosted recorder in an iframe over the page or a popup: screen and camera, screen, camera, microphone and tab audio switches, pause, resume, restart and stop; hooks `onStart`, `onCancel`, `onComplete(video)`, `onInsertClicked(video)`, `onLifecycleUpdate`, `onError`. A Custom UI app uses `createRecorder({ kind, microphone, tabAudio })` with `start`, `pause`, `resume`, `restart`, `stop` and a `tick` event; each mode refuses the other's call with `wrong-mode`, on the relay too. Chunks go up in order (a repeat is ignored, a wrong one or a bad hash is refused, 2 GiB at most), the recording is shared as a link share and listed in the relay journal as `sdk-recording`, and the next sync saves it in the library under the same id and share id. Origin is checked on every call; the hosted page is framed only by the app's origins (`frame-ancestors`); signed tokens must be RS256 or ES256 with `iss`, `aud`, `exp` (24 hours at most), `none` and HMAC refused; guest limits (count and length) apply only when set. The owner's list reaches agents through `formrec_integrations` without any private part. Safari records MP4, which the relay accepts. | `src/relay/recsdk/server.ts`, `jwt.ts`, `model.ts`; `src/features/integrations/recsdk.ts`; `web/src/formrec-record-sdk.ts`, `web/src/sdk-record.ts`; `docs/recorder-sdk.md` | `recsdk-e2e` "records in the hosted recorder, reports its events in order, and the recording reaches the library on sync", "reports cancel and closed when the person closes the recorder, and refuses an unregistered page", "cannot be framed by a page the owner did not register", "starts, pauses, resumes, restarts and stops from the page, and the recording reaches the library", "creates an app, shows its snippets and keys, and nothing moves"; `recsdk-apps` (origins, Standard and Custom UI split, chunks, guest limits, sync, agents); `recsdk-jwt` (ES256 and RS256, skew, key checks, key-pair apps); `recsdk-types` (all pass in the audit). Tested in Chromium with fake media; not run against Safari or Firefox, and the tab audio switch depends on the browser and the surface picked. |
diff --git a/docs/parity/redact.md b/docs/parity/redact.md
index 528b14f..30573f0 100644
--- a/docs/parity/redact.md
+++ b/docs/parity/redact.md
@@ -1,6 +1,6 @@
# Automatic redaction: Loom parity
-Loom's blur is manual: the person picks page elements to blur in the Chrome extension, on DOM-based sites only, on Business, Business + AI and Enterprise plans (https://support.atlassian.com/loom/docs/blur-sensitive-information/). Automatic detection of what is secret, and redaction of the transcript, were not found in Loom's documentation. FormRec's manual blur is `annotate.md` R1-49. The redact feature adds three automatic layers. Nothing found is ever logged, returned or sent anywhere: replies and files hold kinds, places, times and boxes, never the matched text.
+Loom's blur is manual: the person picks page elements to blur in the Chrome extension, on DOM-based sites only, on Business, Business + AI and Enterprise plans (https://support.atlassian.com/loom/docs/blur-sensitive-information/). Automatic detection of what is secret, and redaction of the transcript, were not found in Loom's documentation. FormREC's manual blur is `annotate.md` R1-49. The redact feature adds three automatic layers. Nothing found is ever logged, returned or sent anywhere: replies and files hold kinds, places, times and boxes, never the matched text.
Layers.
@@ -8,7 +8,7 @@ Layers.
2. Words. The finder looks for emails, card numbers, phone numbers and keys or tokens (known prefixes, JSON web tokens, long random-looking strings by entropy) in the transcript, its captions and translations, and the AI outputs that quote it. Applying replaces each match with a fixed word such as "[redacted card]" through the transcripts feature's own writer (the VTT, SRT and TXT are made again) and records only a kind and a place in `redact.json`.
3. Pictures. FFmpeg samples the main picture (at most 90 frames, at least one second apart), Tesseract reads each sample, the finder looks at what was read, and each find becomes a suggested blur with a kind, a time span and a box (0 to 1); consecutive samples in the same place become one. Applying adds a blur item to the annotate track, which the player and every export draw; the source video is never changed.
-Needs: layers 1 and 2 need nothing beyond the runner and the transcript. Layer 3 needs FFmpeg and Tesseract, a system tool FormRec calls and never ships, found through `FORMREC_TESSERACT` or `tesseract` on the PATH; without it the scan says so with an install hint.
+Needs: layers 1 and 2 need nothing beyond the runner and the transcript. Layer 3 needs FFmpeg and Tesseract, a system tool FormREC calls and never ships, found through `FORMREC_TESSERACT` or `tesseract` on the PATH; without it the scan says so with an install hint.
Code: `src/runner/redact.ts` (the page script), `src/features/redact/` (`finder.ts` one source for the server and the page, `transcript.ts` layer 2, `ocr.ts`, `scan.ts` layer 3, `service.ts`, `schema.ts`, `index.ts` routes and tools), `src/model/walkthrough.ts` (`redact`), `src/runner/headless.ts` (`autoRedact`); client `web/src/redact-panel.ts` (the player's Privacy panel), `web/src/redact-logic.ts`, `web/src/features/redact.ts`, `web/styles/redact.css`.
@@ -16,7 +16,7 @@ Routes (behind the token): `GET /api/redact/:id`, `POST /api/redact/:id` (`ids`,
Tests: `tests/redact-runner.test.ts` (real walkthroughs in Chromium), `tests/redact-transcript.test.ts`, `tests/redact-scan.test.ts` (real FFmpeg and Tesseract), `tests/redact-e2e.test.ts` (Chromium, layout shift at 4x CPU throttling).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R1-49 | Blur sensitive information (Loom: manual, extension, paid plans) | Adds automatic layers 1 to 3 to the manual blur. The status of R1-49 is unchanged. | as below | rows below |
| BL-redact-1 | Not found in Loom's documentation | Layer 1: a walkthrough with a secret shows the values with redaction off and none of them with it on; no value is in the recording, its files or the notes. | `src/runner/redact.ts`, `headless.ts` | `redact-runner` "shows the values with redaction off and none of them with it on", "keeps no value in the recording, its files or the notes" (negative control: the text shows with redaction off, read by Tesseract) |
diff --git a/docs/parity/relay.md b/docs/parity/relay.md
index 1683fc4..e06911e 100644
--- a/docs/parity/relay.md
+++ b/docs/parity/relay.md
@@ -1,6 +1,6 @@
# Relay: Loom parity
-Loom serves every share page from Loom's own servers, so a link works whether or not the owner's computer is on. FormRec keeps recordings on the person's computer, so the same outcome comes from a relay: a small server the person runs on their own domain (`formrec relay`: Docker, Cloud Run with a Cloud Storage volume, or a VPS behind Caddy). The computer stays the source of truth. It pushes exactly what a share page reads, and the relay hands back what viewers did (views, comments, reactions, replies, follows, CTA clicks, identified emails, video request answers). The relay runs the same `PublicShareServer` code as the LAN listener over a data folder with the same layout, so privacy, branding, previews and the viewer pages are one implementation, not a copy. The relay is optional; without it a share works on the LAN, through the tunnel (`docs/parity/tunnel.md`) or as a static export.
+Loom serves every share page from Loom's own servers, so a link works whether or not the owner's computer is on. FormREC keeps recordings on the person's computer, so the same outcome comes from a relay: a small server the person runs on their own domain (`formrec relay`: Docker, Cloud Run with a Cloud Storage volume, or a VPS behind Caddy). The computer stays the source of truth. It pushes exactly what a share page reads, and the relay hands back what viewers did (views, comments, reactions, replies, follows, CTA clicks, identified emails, video request answers). The relay runs the same `PublicShareServer` code as the LAN listener over a data folder with the same layout, so privacy, branding, previews and the viewer pages are one implementation, not a copy. The relay is optional; without it a share works on the LAN, through the tunnel (`docs/parity/tunnel.md`) or as a static export.
Code, server side (`src/relay/`): `cli.ts` (`formrec relay`, `enroll`, `grants`, `revoke-grant`), `server.ts` (one `PublicShareServer` plus `/relay-api`, `/apps/`, `/sdk`, `/scim/v2`, `/mcp`), `api.ts` (signed install API), `auth.ts` and `sign.ts` (enrollment codes, Ed25519 request signatures, replay cache), `store.ts` (staging, atomic commit, manifest), `allow.ts` (the allowlist of names and size caps), `seal.ts` (optional AES-256-GCM sealing of media at rest), `changes.ts` (journal of what viewers did), `merge.ts` (union by id, latest `updatedAt`, tombstones), `team.ts` (team spaces), `bridge.ts`, `oauth.ts`, `oauth-store.ts`, `remote.ts`, `mcp-tools.ts` (the agent door), `sso-api.ts`, `scim/`, `recsdk/`. Deployment files: `relay/Dockerfile`, `relay/cloudrun.md`, `relay/vps.md`; operator guide `docs/relay.md`.
@@ -8,7 +8,7 @@ Code, computer side (`src/features/relay/`): `service.ts` and `routes.ts` (`/api
Tests: `tests/relay-auth.test.ts`, `relay-publish.test.ts`, `relay-gates.test.ts`, `relay-sign-in.test.ts`, `relay-share-parity.test.ts`, `relay-sync.test.ts`, `relay-seal.test.ts`, `relay-origin.test.ts`, `relay-apps.test.ts`, `relay-e2e.test.ts` (Chromium, layout shift at 4x CPU throttling), `workspace-roles-relay.test.ts`, `apps-host-relay.test.ts`, `remotemcp-*.test.ts`. All of them ran on the audit base and pass. Nothing was run against a real Cloud Run service, VPS or Caddy here: the Dockerfile and the two deployment guides were read, not deployed.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R3-62 | Live share pages that work with the computer off | A self-hosted relay serves the share page, media (ranged, with renditions, poster, GIF, captions, avatar) and the viewer's engagement on the person's own domain. Enrolled with a single-use 24 hour code; every call is signed with the install's Ed25519 key, within five minutes, once. Only allowlisted file names go up. Loom offers no custom domain, so this goes further. | `src/relay/server.ts`, `api.ts`, `allow.ts`, `store.ts`; `src/features/relay/publish.ts`; `relay/` | `relay-auth`, `relay-publish` (hash check, chunk order, caps, atomic commit, second key cannot touch the first key's recordings), `relay-share-parity` (same page on relay and LAN), `relay-e2e` plays the relay page with layout shift 0. Not deployed to a real host. |
| R3-03 | Privacy levels on the relay | Password, people, workspace and link gates are share's own `access.ts` / `listener.ts` code, fed with the workspace policy, branding and people the owner pushed. Passwords are hashed on the relay; one-time codes are held there and the owner reads them through the app. Email-link and OpenID Connect sign-in work on the relay with the secrets and mail the owner pushed (0600). | `src/relay/server.ts` over `src/features/share/`; `src/features/relay/sync.ts` | `relay-gates`, `relay-sign-in` (OIDC sign-in, mailed link signs in, removing mail or a provider stops offering it) |
@@ -19,9 +19,9 @@ Tests: `tests/relay-auth.test.ts`, `relay-publish.test.ts`, `relay-gates.test.ts
## The owner's bridge: what it offers (0.9.0)
-Loom side (the Atlassian Rovo MCP server pages on supported tools and on security and access policies, read on 11 November 2026): administrators grant read, write or search access per app by toolset, and Loom's tools sit in the `read_loom` and `write_loom` groups; switching off one named tool was not found. FormRec's choice is the owner's for the bridge to this computer, not an organisation's policy, and it adds a per-tool deny list. Design and wording: `docs/relay.md`, "The owner's bridge". Code: `src/mcp/scope.ts` (`refusalFor`, from each tool's annotations; no annotations means destructive), `src/mcp/server.ts` (`ToolSet` takes `scope` and `deny` and disables what it refuses), `src/features/relay/bridge.ts` and `remote.ts` (settings read on every call; the session rebuilt under a new choice), `src/features/relay/index.ts` (`bridgeFor`); client `web/src/features/agents.ts` (Settings, Agents), `web/styles/agents.css`.
+Loom side (the Atlassian Rovo MCP server pages on supported tools and on security and access policies, read on 11 November 2026): administrators grant read, write or search access per app by toolset, and Loom's tools sit in the `read_loom` and `write_loom` groups; switching off one named tool was not found. FormREC's choice is the owner's for the bridge to this computer, not an organisation's policy, and it adds a per-tool deny list. Design and wording: `docs/relay.md`, "The owner's bridge". Code: `src/mcp/scope.ts` (`refusalFor`, from each tool's annotations; no annotations means destructive), `src/mcp/server.ts` (`ToolSet` takes `scope` and `deny` and disables what it refuses), `src/features/relay/bridge.ts` and `remote.ts` (settings read on every call; the session rebuilt under a new choice), `src/features/relay/index.ts` (`bridgeFor`); client `web/src/features/agents.ts` (Settings, Agents), `web/styles/agents.css`.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R3-69 (further) | Admin limits which MCP tools an agent may call (partly) | Everything (default), no destructive tools or read only; a refused tool is not listed and a call answers with a tool error that says why, also in a session already open. | `scope.ts`, `server.ts`, `bridge.ts` | `bridgescope-bridge` "reads annotations the way the MCP specification does: no annotations is destructive and not read only", "refuses at the server: a built server lists only what the choice allows and says why for the rest", "offers everything by default", "no destructive tools: the destructive ones are not listed and a call answers with the reason, in a session already open", "read only: only tools that say readOnlyHint are listed, and a write is refused and changes nothing", "a tool that is not there at all still answers like any unknown tool" |
| R3-69 (further) | Switching off one named tool: not found | A deny list of tool names under any choice; a name that is no tool is shown, and a malformed one is refused; a change that leaves scope or deny out keeps them, and everything with an empty list restores the full set. | `scope.ts`, `remote.ts` | `bridgescope-bridge` "the deny list removes a tool under any choice, names an unknown one, and refuses a malformed one", "a change that leaves scope or deny out keeps them; choosing everything and an empty list restores the full set" |
diff --git a/docs/parity/runner.md b/docs/parity/runner.md
index 43465df..e928dd6 100644
--- a/docs/parity/runner.md
+++ b/docs/parity/runner.md
@@ -6,7 +6,7 @@ The walkthrough format stays `"formrec": 1`: every new field is optional, so eve
## Rows
-| Row | Loom feature or gap | What FormRec does | Where | Verified by |
+| Row | Loom feature or gap | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| P-25.1 | Signed-in state | `formrec login URL --name NAME` opens a visible Chromium, the person signs in and closes the window (or presses Enter); cookies and local storage are saved as `/runner/states/NAME.json` (0600, folder 0700). A walkthrough names it: `"auth": {"state": "NAME"}`. Also headers, HTTP basic auth and cookies, each value a secret name, sent to baseUrl's origin only (headers through a route that matches that origin, basic auth with Playwright's `origin`). | `src/runner/login.ts`, `src/runner/states.ts`, `src/runner/context.ts`, `src/cli.ts` (`login`, hook commit), MCP `formrec_signed_in_states` | `runner-site.test.ts` "formrec login saves a state the person made, and a walkthrough records signed in with it" (state file mode 0600, the session cookie value absent from every recording file); "sends basic auth, headers and cookies from secrets to the site origin"; `runner-unit.test.ts` "state names are confined...", "headers and basic auth need baseUrl..." |
| P-25.1 | Secrets never written | `fill` takes `secret: NAME` instead of `value`; values come from `FORMREC_SECRET_NAME` or `/runner/secrets.json` (refused unless a private regular file). Missing names fail before anything is written, naming the variable, never a value. The overlay covers the field with a box of dots that follows it and counts the typed characters, whatever the field type; `Masker` replaces every value (also percent-encoded) in captions, chapter text, page addresses, errors, the saved walkthrough.json and recording.json. | `src/runner/secrets.ts`, `src/runner/overlay.ts` (`mask`), `src/runner/headless.ts` | `runner-site.test.ts` "uses every new action..." (the secret reached the site; no file in the recording folder contains it), "refuses a missing secret before it writes anything", "covers a plain text field with dots that follow what is typed"; frame of the real practice-site recording (screenshot below) |
diff --git a/docs/parity/share.md b/docs/parity/share.md
index a2f4200..da5b9f8 100644
--- a/docs/parity/share.md
+++ b/docs/parity/share.md
@@ -1,6 +1,6 @@
# Share: Loom parity
-FormRec is local, so "a public link" becomes two things. **On this network**: the share listener, HTTPS on its own port (8773 by default, Settings, Sharing), with the same self-signed certificate approach as the guest listener (`src/guests/tls.ts`), its own fixed routes and no access to the run's token, serving only shared recordings at unguessable links `/v/` (22 random base64url characters). **Anywhere**: a self-contained static page the person hosts on any static host or their own domain, encrypted when a password is given.
+FormREC is local, so "a public link" becomes two things. **On this network**: the share listener, HTTPS on its own port (8773 by default, Settings, Sharing), with the same self-signed certificate approach as the guest listener (`src/guests/tls.ts`), its own fixed routes and no access to the run's token, serving only shared recordings at unguessable links `/v/` (22 random base64url characters). **Anywhere**: a self-contained static page the person hosts on any static host or their own domain, encrypted when a password is given.
Code: `src/features/share/` (`model.ts` formats, `store.ts` disk, `access.ts` who may watch, `listener.ts` the network listener, `page.ts` the page HTML, `content.ts` what a page shows, `export.ts` the static page and zip, `media.ts` FFmpeg posters, GIFs and MP4, `routes.ts` the owner API, `mcp.ts` the tools), `web/share.html`, `web/src/share-view.ts` (the viewer; its control bar is `web/src/player-controls.ts` and `player-keys.ts`, styled by `web/styles/player-bar.css`), `web/src/share-embed.ts` (embed helper), `web/src/features/share.ts` (owner side), `web/styles/share.css`.
@@ -8,7 +8,7 @@ Tests: `tests/share-listener.test.ts` (L), `tests/share-export.test.ts` (X), `te
The sharing policy and branding are the workspace's (`src/features/workspace/policy.ts`, Settings, Policies, People and Branding). `share/settings.json` keeps only share's defaults, listener, `hostedAt` and `autoCopy`; `readSettings` gives `policy` and `branding` as views of the workspace's, and a changed view sent to `PUT /api/share/settings` (or `/api/share/logo`) is written to the workspace. Settings, Sharing points to Policies and Branding (`[data-share-goto]`).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R3-01 | Auto copy link after recording | Setting "Copy link after saving": when the studio saves a take, the recording is shared with the defaults and its link copied to the clipboard (the browser may ask for the clipboard permission, as with Loom). | `web/src/features/share.ts` studioPlugins `share` onState('saved'); setting `autoCopy` | Settings field rendered in E `owner-settings-sharing.png`; the save path is the same `PUT /api/share/recordings/:id` tested in L. `studio-proof-e2e.test.ts` "R3-01": with the setting on, a real studio save shares the recording with the defaults and the clipboard holds its link; with it off, nothing is shared or copied. (The Make poster, GIF and MP4 fix has its own test: X "makes a poster, a looping GIF and an MP4 the owner can download".) |
| R3-02 | Share modal, Copy link, link settings | The player's Share action opens a modal: copy link, who can watch, password, people, domains, expiry, email gate, speed, accent, message, downloads, view counts, listing, branding, Save, Stop sharing. | `[data-share-open]`, `[data-share-modal]`, `[data-share-field]`, `[data-share-save]`, `[data-share-stop]` | E "the owner side" (`owner-share-modal.png`) |
@@ -24,14 +24,14 @@ The sharing policy and branding are the workspace's (`src/features/workspace/pol
| R3-12 | Request or require email | Per share Off, Ask (skippable) or Require; the email goes into each view event. | `requireEmail`, `/s-api/:id/identify` | L "the email gate asks or requires..." |
| R3-13 | anon_email parameter | `/v/?anon_email=` names the viewer and skips the gate. | listener `sharePage` | L same test |
| R3-14 | Sign-in requirements | Real viewer accounts on every share server: email sign-in links (single use, 15 minutes, only the hash stored) and OpenID Connect providers the owner sets (discovery, PKCE, state and nonce, RS256 and ES256 against the JWKS); sessions last 30 days sliding, the owner sees and ends them. Commenting and reacting need sign-in by default, like Loom; the viewer's email goes into the comment context. | `oidc.ts`, `auth-store.ts`, `viewer-auth.ts`, `listener.ts commentSignIn`, `web/src/features/share-auth.ts` | `viewer-auth-magic`, `-oidc`, `-sessions`, `-engage`, `-e2e`; `relay-sign-in` |
-| R3-15, R3-61 | Branded player, remove branding | The workspace's branding (Settings, Branding: logo, name, accent, hide Made with FormRec) on share pages, or FormRec's own when the workspace's "Branded player" default is off; per share accent and hide too. Share keeps no branding copy. | `store.ts brandingView`, `[data-sv-made]` | W "branding saved in Settings, Branding is what share pages show...", L "branding..." |
+| R3-15, R3-61 | Branded player, remove branding | The workspace's branding (Settings, Branding: logo, name, accent, hide Made with FormREC) on share pages, or FormREC's own when the workspace's "Branded player" default is off; per share accent and hide too. Share keeps no branding copy. | `store.ts brandingView`, `[data-sv-made]` | W "branding saved in Settings, Branding is what share pages show...", L "branding..." |
| R3-16 | Share at a timestamp | "Start at the current time" in the modal adds `t=1m20s`; `t=` accepts `80`, `80s`, `1m20s`, `1:20`. | `linkAt`, `parseTime` | X helpers, E (`?t=4s` starts at 4 s) |
| R3-17 | Share to social and Gmail | LinkedIn, X, Facebook, Gmail and email links come from one owner, integrations' `links.ts` `outgoingLinks`; the Share dialog draws the buttons from the first frame, disabled until there is a link, and asks the integrations targets route for their hrefs. | `src/features/integrations/links.ts`, `[data-share-social-link]` | `leftovers-routes` "one owner for the share buttons' links", E |
| R3-19 | Embed: iframe, responsive or fixed | Responsive or fixed 640 x 360 iframe code; `/e/` allows framing (`frame-ancestors *`), privacy still enforced. | `embedHtml`, `[data-share-embed]`, `/e/:id` | X, L oEmbed test (embed headers), E embed |
| R3-20 | Embed URL parameters | `autoplay=1`, `t=`, `muted=1`, `hide_title=1`, `speed=`, `hide_speed=1`. | listener `sharePage` boot, `page.ts` | E "the embed honours autoplay, muted and hide_title", L |
| R3-21 | Embed SDK and oEmbed | `GET /oembed?url=&format=json&maxwidth=` (the iframe always points at this listener, never at a host from the request); ` ` on pages. One helper script, integrations' `formrec-embed.js`, also served at `/s/formrec-embed.js`; the `/e/` player (and `/v/?embed=1`, what the helper asks for by default) answers its messages: commands `play`, `pause`, `seek` only from the parent window and its origin, events `ready`, `play`, `pause`, `seeked`, `ended`, `timeupdate` posted only to that origin (never `*`). share's own `share-embed.js` is gone. | listener `oembed`, `web/src/share-view.ts` `wireEmbed`, `embedCommand` | L "oEmbed answers..."; `share-wire.test.ts` item 20; `share-wire-e2e.test.ts` "an /e/ player on another site answers formrec-embed.js"; screenshot `share-embed-sdk.png` |
| R3-22, R3-23, R3-25 | Link unfurls (Slack, Google, apps) | Open Graph (including video tags and `twitter:player`) and oEmbed discovery on every share page and export. Apps unfurl a link only if they can reach it: a relay, tunnel or hosted export unfurls anywhere. The Slack app (`src/apps/slack.ts`, served by the relay or the tunnel) unfurls a pasted link as a Block Kit video block that plays `/e/`; the Google add-on (`src/apps/google.ts`) gives smart chips. Neither is installed in a real Slack workspace or deployed to Google here. | `page.ts headHtml`, `src/apps/` | L (og:title, oembed link), X (og:url on export), `apps-slack-flow`, `apps-slack-signature`, `apps-google-endpoints`, `apps-google-token`, `apps-host-relay`, `apps-host-tunnel` |
-| R3-24, R4-36 | Private video previews | One switch, the workspace's "Link previews" (`previews`): open links preview by default, protected ones show "A FormRec recording" with no title, picture or oEmbed (401); 'all' previews every share, 'off' none. Integrations' messages read the same switch. | `mayPreview`, `integrations/connections.ts readConnections` | W "one previews switch...", L password test |
+| R3-24, R4-36 | Private video previews | One switch, the workspace's "Link previews" (`previews`): open links preview by default, protected ones show "A FormREC recording" with no title, picture or oEmbed (401); 'all' previews every share, 'off' none. Integrations' messages read the same switch. | `mayPreview`, `integrations/connections.ts readConnections` | W "one previews switch...", L password test |
| R3-26 | GIF thumbnail for email | "Make GIF thumbnail" (FFmpeg: 4 s, 10 fps, 480 wide, own palette, looping) as `share-preview.gif`, served at `/s-api/:id/media/gif`; "Copy for email" gives the GIF linking to the page. | `media.ts makeGif`, `emailHtml`, `[data-share-make="gif"]` | X helpers (snippet); X "makes a poster, a looping GIF and an MP4" (a 2 s FFmpeg clip: GIF89a with the NETSCAPE loop block). |
| R3-27 | Custom thumbnail (edit's) | The share page and previews use, first found: edit's thumbnail `edit-thumb.png`, documents' `documents-poster.png`, then `share-poster.jpg` made by FFmpeg at share time (only when neither exists). | `content.ts POSTERS`, `mediaFiles` | `share-wire.test.ts` "items 16 and 17" (documents' poster served, then edit's thumbnail wins) |
| R3-28, R4-56 | Download MP4 (creator) | "Make MP4" (FFmpeg H.264 and AAC) then Download MP4; without FFmpeg the original WebM downloads. | `media.ts makeMp4`, `/api/share/recordings/:id/file/mp4` | X "makes a poster, a looping GIF and an MP4" (ffprobe: h264 and aac, no temporary file left); since the export fix the MP4 is edit's render (`edit-exportwire.test.ts`) |
@@ -45,7 +45,7 @@ The sharing policy and branding are the workspace's (`src/features/workspace/pol
| R3-40 | Chapters navigation | Chapters panel, the current one marked, click to seek. | `[data-sv-chapter]` | E (click chapter seeks) |
| R3-41 | Summary below video | The recording's summary under the player (and in previews). | `[data-sv-summary]` | L, E screenshots |
| R3-60 | Logo and player colours | PNG logo (512 KB, checked) top left, a name, an accent colour (play button, progress, links) as a per-share stylesheet (no inline styles, CSP holds). | `/api/share/logo`, `/s-api/brand/logo`, `/s-api/:id/brand.css` | L "branding..." |
-| R3-62 | Custom domains | Not offered by Loom. FormRec: live pages on the person's own domain through the relay (`relay.md`) or a Cloudflare named tunnel (`tunnel.md`); static exports keep "Where you host exported pages", which gives exports their link, `og:url`, `og:image` and a `CNAME` file. | `Settings.hostedAt`, `export.ts`; `src/relay/`; `src/features/tunnel/` | X "exports a page..."; `relay-publish`, `relay-e2e`, `tunnel-origin`, `tunnel-supervisor` |
+| R3-62 | Custom domains | Not offered by Loom. FormREC: live pages on the person's own domain through the relay (`relay.md`) or a Cloudflare named tunnel (`tunnel.md`); static exports keep "Where you host exported pages", which gives exports their link, `og:url`, `og:image` and a `CNAME` file. | `Settings.hostedAt`, `export.ts`; `src/relay/`; `src/features/tunnel/` | X "exports a page..."; `relay-publish`, `relay-e2e`, `tunnel-origin`, `tunnel-supervisor` |
| R3-64 | Watch later (viewer side) | "Watch later" on the page keeps the link in this browser; the listener's `/` lists them, each with a calendar reminder for 9 AM the next day (`.ics`, Loom sends one reminder then). | `[data-sv-later]`, `[data-sv-later-list]`, `reminderIcs` | E (save, list, reminder), X |
| R3-65 | Picture in picture | Button and P key (`requestPictureInPicture`). | `[data-pc-pip]` (the bar's own button, shown where the browser offers picture in picture) | E (enabled in Chromium) |
| R3-66 | Global admin video view | The Shared list (`#/shared`, command `share.shared`): every share with who can watch (changeable in place), views, expiry, copy link, stop. | `[data-shared-row]`, `[data-shared-privacy]` | E `owner-shared-list.png`, L "lists shares..." |
diff --git a/docs/parity/sso.md b/docs/parity/sso.md
index f06bc4b..d473098 100644
--- a/docs/parity/sso.md
+++ b/docs/parity/sso.md
@@ -1,14 +1,14 @@
# SSO and SCIM: Loom parity
-Loom's Enterprise sign-in is SAML through WorkOS, with domain verification, Enforce SSO, Domain Capture and SCIM. FormRec has no service of its own, so this exists only for a team that runs a relay (docs/relay.md): the relay is the server people sign in to and an identity provider provisions into. A person with no relay has no sign-in to a service and nothing here applies to them.
+Loom's Enterprise sign-in is SAML through WorkOS, with domain verification, Enforce SSO, Domain Capture and SCIM. FormREC has no service of its own, so this exists only for a team that runs a relay (docs/relay.md): the relay is the server people sign in to and an identity provider provisions into. A person with no relay has no sign-in to a service and nothing here applies to them.
-The owner claims a domain on the relay and proves it, either with a DNS TXT record at `_formrec-challenge.` equal to `formrec-domain-verification=` or by opening a one-time link (24 hours) mailed to `admin@`, `administrator@`, `hostmaster@`, `postmaster@` or `webmaster@` the domain; public mail providers (gmail.com and the like) cannot be claimed. A verified domain gets one connection, OpenID Connect (Okta, Microsoft Entra, Google Workspace or any issuer with discovery; the issuer must be https and its discovery document is read when the connection is saved; the client secret is write-only) or SAML 2.0 (started at FormRec, or at the identity provider's app tile when the owner turns that on for the connection, off by default; with single logout; the provider's metadata by address or pasted XML, or typed fields, with up to 6 signing certificates; the assertion must be signed, so Entra's "sign SAML assertion" must be chosen; audience, Destination, Recipient, InResponseTo, replay, time window, comments in NameID, XML signature wrapping and an email outside the domain are all refused; routes `/s-api/auth/saml/sso-/metadata|login|acs|slo`; sign-in started at the provider takes a response with no InResponseTo only through the same checks, the same replay cache, within five minutes of its IssueInstant and with a RelayState that may name only a path on the same server, and gives up the login-CSRF cookie, which is why Settings says so beside the switch; signing out of a SAML session ends it here first and then sends a signed LogoutRequest to the provider's SingleLogoutService when its metadata has one, with the NameID and SessionIndex kept from the sign-in; a LogoutRequest from the provider must be signed by the connection's certificate, come from its issuer, be addressed to the endpoint, be recent, new and name a NameID and SessionIndex this relay knows, ends those sessions and is answered with a signed LogoutResponse; the relay signs with a key pair it made for the connection, kept sealed, whose certificate is in the SP metadata). At sign-in on any share server (`/s-api/auth/oidc/sso-/...`) the ID token (or the SAML assertion) is verified (signature, nonce, `email_verified`, or Entra's `xms_edov`), and `completeSso` provisions the person just in time when Domain Capture is on, with the role named by an ID token claim (default, creator, viewer, admin; the highest of a list) or the domain's default role. A deactivated person stays out; without Domain Capture only people the workspace already knows get in; people the owner added keep the role the owner gave. Enforce SSO can be turned on only after one successful sign-in through the connection (so a wrong client id cannot lock a team out), then refuses the email-link and every other provider for that domain's addresses and ends the domain's other sessions. SCIM 2.0 (RFC 7643, 7644) is served at `/scim/v2` behind a bearer token the owner makes (shown once, kept as a SHA-256 hash, rotatable): Users and Groups with filters, paging and PATCH. Deactivating or deleting a user ends their relay sessions and revokes their enrolled relay keys before the answer is sent, and the computer applies the change on its next sync (`scimRev` and `scimAck`), where the identity provider is the authority for the people it provisions (role, active, groups). SCIM groups map to workspace groups and, through the owner's group-to-role table, to roles. SAML is tested with an identity provider built in the test that signs with xml-crypto, with real signed responses from node-saml's own test fixtures (clock set to their time), and with every attack above, replayed for the unsolicited path and for logout messages (`saml-idp-initiated`, `saml-logout`, `saml-plus-sealed` across a restart, `saml-plus-e2e` in Chromium), by an independent audit (`saml-audit070`: two connections on one provider key, encoded RelayState, cross-site posts) and for sign-in records that cannot be read, which pause SAML with a 503 and no session (`saml-state-age`). Nothing here was run against a live identity provider; the tests use a local OpenID Connect provider, an injected DNS resolver, an injected fetch and a fake mail sender, and check the RFC 7644 shapes.
+The owner claims a domain on the relay and proves it, either with a DNS TXT record at `_formrec-challenge.` equal to `formrec-domain-verification=` or by opening a one-time link (24 hours) mailed to `admin@`, `administrator@`, `hostmaster@`, `postmaster@` or `webmaster@` the domain; public mail providers (gmail.com and the like) cannot be claimed. A verified domain gets one connection, OpenID Connect (Okta, Microsoft Entra, Google Workspace or any issuer with discovery; the issuer must be https and its discovery document is read when the connection is saved; the client secret is write-only) or SAML 2.0 (started at FormREC, or at the identity provider's app tile when the owner turns that on for the connection, off by default; with single logout; the provider's metadata by address or pasted XML, or typed fields, with up to 6 signing certificates; the assertion must be signed, so Entra's "sign SAML assertion" must be chosen; audience, Destination, Recipient, InResponseTo, replay, time window, comments in NameID, XML signature wrapping and an email outside the domain are all refused; routes `/s-api/auth/saml/sso-/metadata|login|acs|slo`; sign-in started at the provider takes a response with no InResponseTo only through the same checks, the same replay cache, within five minutes of its IssueInstant and with a RelayState that may name only a path on the same server, and gives up the login-CSRF cookie, which is why Settings says so beside the switch; signing out of a SAML session ends it here first and then sends a signed LogoutRequest to the provider's SingleLogoutService when its metadata has one, with the NameID and SessionIndex kept from the sign-in; a LogoutRequest from the provider must be signed by the connection's certificate, come from its issuer, be addressed to the endpoint, be recent, new and name a NameID and SessionIndex this relay knows, ends those sessions and is answered with a signed LogoutResponse; the relay signs with a key pair it made for the connection, kept sealed, whose certificate is in the SP metadata). At sign-in on any share server (`/s-api/auth/oidc/sso-/...`) the ID token (or the SAML assertion) is verified (signature, nonce, `email_verified`, or Entra's `xms_edov`), and `completeSso` provisions the person just in time when Domain Capture is on, with the role named by an ID token claim (default, creator, viewer, admin; the highest of a list) or the domain's default role. A deactivated person stays out; without Domain Capture only people the workspace already knows get in; people the owner added keep the role the owner gave. Enforce SSO can be turned on only after one successful sign-in through the connection (so a wrong client id cannot lock a team out), then refuses the email-link and every other provider for that domain's addresses and ends the domain's other sessions. SCIM 2.0 (RFC 7643, 7644) is served at `/scim/v2` behind a bearer token the owner makes (shown once, kept as a SHA-256 hash, rotatable): Users and Groups with filters, paging and PATCH. Deactivating or deleting a user ends their relay sessions and revokes their enrolled relay keys before the answer is sent, and the computer applies the change on its next sync (`scimRev` and `scimAck`), where the identity provider is the authority for the people it provisions (role, active, groups). SCIM groups map to workspace groups and, through the owner's group-to-role table, to roles. SAML is tested with an identity provider built in the test that signs with xml-crypto, with real signed responses from node-saml's own test fixtures (clock set to their time), and with every attack above, replayed for the unsolicited path and for logout messages (`saml-idp-initiated`, `saml-logout`, `saml-plus-sealed` across a restart, `saml-plus-e2e` in Chromium), by an independent audit (`saml-audit070`: two connections on one provider key, encoded RelayState, cross-site posts) and for sign-in records that cannot be read, which pause SAML with a 503 and no session (`saml-state-age`). Nothing here was run against a live identity provider; the tests use a local OpenID Connect provider, an injected DNS resolver, an injected fetch and a fake mail sender, and check the RFC 7644 shapes.
Code: `src/features/sso/` (`model.ts` config and schemas, `verify.ts` domain proof, `login.ts` sign-in, Enforce SSO and provisioning, `lock.ts` one writer at a time), `src/relay/sso-api.ts` (the owner's signed routes under `/relay-api/sso`), `src/relay/scim/` (`server.ts`, `store.ts`, `filter.ts`, `discovery.ts`), `src/features/share/viewer-auth.ts` (calls `ssoProviderFor`, `ssoForEmail`, `enforcedFor`, `completeSso`), `src/features/relay/scim-pull.ts` (the computer applies SCIM changes), `web/src/features/sso.ts` and `web/styles/sso.css` (Settings, SSO and provisioning).
Tests: `tests/ssoscim-flow.test.ts` (relay, SSO and SCIM over real HTTP on loopback, 21 tests), `tests/ssoscim-e2e.test.ts` (Chromium, layout shift 0 at 4x CPU throttling). Audited at e00d9d8: both pass.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R4-42 | SSO (SAML) and SCIM: verify domains, WorkOS setup, Enforce SSO, JIT provisioning, SCIM provisioning and deprovisioning | OpenID Connect or SAML 2.0, per verified domain; domain proof by DNS TXT or a role mailbox; connection saved only after issuer discovery works; Enforce SSO after one successful sign-in, ending the domain's other sessions; just-in-time provisioning with the role from a claim; SCIM 2.0 Users and Groups with filters and PATCH; deprovisioning ends sessions and relay keys at once and reaches the computer on the next sync. Status D; not run against a live IdP. | `src/features/sso/`, `src/relay/sso-api.ts`, `src/features/sso/saml.ts`, `src/features/sso/saml-logout.ts`, `src/features/sso/saml-keys.ts`, `src/relay/scim/`, `web/src/features/sso.ts` | `ssoscim-flow` (all), `ssoscim-e2e` "claims, verifies, connects and creates a SCIM token without shifting anything" (CLS 0), `saml-fixtures`, `saml-flow`, `saml-attacks`, `saml-e2e` (CLS 0), `saml-idp-initiated`, `saml-logout`, `saml-plus-sealed`, `saml-plus-e2e` (CLS 0) |
| R4-42a | Verify domains (email or DNS TXT) | DNS TXT read with an injected `resolveTxt` (a missing record is "not yet"), or a one-time emailed link to a role address; public mail providers refused; method and date listed. | `verify.ts`, `sso-api.ts` | `ssoscim-flow` "refuses a public mail provider and a non-domain", "verifies by a DNS TXT record the relay reads with its resolver, and lists method and date", "verifies by an email link to a role address, once" |
diff --git a/docs/parity/studio.md b/docs/parity/studio.md
index 8e59225..40ed1e5 100644
--- a/docs/parity/studio.md
+++ b/docs/parity/studio.md
@@ -4,7 +4,7 @@ The studio feature (branch `feat040/studio`). Server: `src/features/studio/index
Tests: `tests/sessions-recovery.test.ts` (recovery), `tests/studio-feature.test.ts` (routes, MCP), `tests/studio-logic.test.ts` (client logic), `tests/studio-e2e.test.ts` (Chromium, fake devices).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R1-03 | Modes: screen + camera, screen only, camera only | Seven layouts in the studio's picker: Screen+cam, Screen, Camera, Audio, Meeting, Slides, Canvas. Each records every source to its own track; the layout is kept in `studio.json`. | `studio-logic.ts` `LAYOUTS`, `studio.ts` `modePicker` (`[data-mode]`), `PUT /api/studio/takes/:id` | `studio-logic.test.ts` "layouts"; e2e "records screen only with no camera" (tracks mic and screen only) |
| R1-04 | Camera only (fullscreen) | The Camera layout fills the stage with the camera; quality presets apply to the camera too. | `[data-mode="camera"]`, `cameraConstraints` | e2e layout-shift test records Camera; `tests/e2e-studio.test.ts` solo camera |
@@ -22,7 +22,7 @@ Tests: `tests/sessions-recovery.test.ts` (recovery), `tests/studio-feature.test.
| R1-34, R2-05 | Live Rewind | Rewind pauses, shows the take's lead track as uploaded so far (served by the server, no second encoder), trims the last N seconds, then resumes through the countdown. Trimmed footage is kept: `studio.json` lists the ranges, the player skips them, "Restore trimmed footage" brings them back. Marks after the cut are dropped. | `rewindTake`, `rewindSheet`, `POST/DELETE /api/studio/takes/:id/trims`, `GET .../preview`, `skipTo`, recording action `studio-restore-trims` | `studio-feature.test.ts`; `studio-logic.test.ts` "Live Rewind"; e2e canvas test (one trim over 0.9 s) |
| R1-35 | Controls show/hide | Setting "Hide the controls while recording": the buttons keep their space (visibility only), a hint names the shortcuts. Studio controls are page DOM and are never in a captured screen unless the person records this tab. | `[data-recbar][data-hide]`, Settings | `studio-logic.test.ts` settings cleaning keeps `hideControls`; `studio-proof-e2e.test.ts` "R1-35 hide controls": `data-hide` and hidden buttons while counting down and recording, shown when paused or stopped, nothing moves (CLS 0 at 4x throttling), the shortcuts still work. The desktop controls window is `desktop-feature.test.ts` "the controls send each control" |
| R1-36 | Recording timer | Counts up; counts down to the limit when one is set. | `timerText`, `[data-studio-timer]` | `studio-logic.test.ts` "the clock" |
-| R1-37 | Time limit | Not a plan limit (FormRec is local): an optional limit (5, 15, 30, 60 min) that stops the take. | `timeCheck`, Settings `[data-studio-setting-limit]` | `studio-logic.test.ts` "the clock" (`timeCheck` answers `limit` at 5 min); `studio-proof-e2e.test.ts` "R1-37 self-set limit": the timer counts down and the take stops by itself at the limit and saves |
+| R1-37 | Time limit | Not a plan limit (FormREC is local): an optional limit (5, 15, 30, 60 min) that stops the take. | `timeCheck`, Settings `[data-studio-setting-limit]` | `studio-logic.test.ts` "the clock" (`timeCheck` answers `limit` at 5 min); `studio-proof-e2e.test.ts` "R1-37 self-set limit": the timer counts down and the take stops by itself at the limit and saves |
| R1-38 | Two-hour check-in | On by default: every two hours the take pauses and asks Keep recording or Stop here. | `checkIn()`, `timeCheck` | `studio-logic.test.ts` |
| R1-39 | Quality / 4K | 720p, 1080p, 1440p, 4K: constraints for screen and camera and the video bitrate (2.5 to 24 Mb/s). | `QUALITY`, `[data-studio-quality]`, `TrackRecorder` `videoBits` | `studio-logic.test.ts`; e2e canvas screenshot is 1920 x 1080 |
| R1-43 | Speaker notes / teleprompter | Speaker notes panel, kept on this computer; an optional teleprompter band on the stage that scrolls at a chosen speed while recording. Never recorded. The AI notes are not this agent's (ai feature). | `notesPanel`, `[data-studio-prompter]`, Alt+Shift+N | first-frame presence of `[data-studio-notes-panel]` and `[data-studio-prompter]` in the studio e2e; `studio-proof-e2e.test.ts` "R1-43 teleprompter": the band shows the notes, scrolls at the speed setting while recording (it did not move at the default speed before 0.5.0's fix), holds on pause and stop, and is not in the composed picture; the AI speaker-notes output is `ai-engine` "writes every kind" |
diff --git a/docs/parity/teamsync.md b/docs/parity/teamsync.md
index 1089e36..3f99c87 100644
--- a/docs/parity/teamsync.md
+++ b/docs/parity/teamsync.md
@@ -1,8 +1,8 @@
# Team spaces: Loom parity
-Loom's spaces are a shared shelf in the cloud workspace. FormRec's team spaces work two ways, and the person's own library stays the source of truth for their own recordings.
+Loom's spaces are a shared shelf in the cloud workspace. FormREC's team spaces work two ways, and the person's own library stays the source of truth for their own recordings.
-On a relay: the owner's computer pushes the space directory (id, name, open or closed, members, admins) to the relay. A creator's FormRec publishes a recording to the relay as itself, with its own enrolled key, and places it in a team space (`add` keeps the other spaces it sits in, `move` makes the named space its one home, `remove` takes it out; a recording that is not shared yet gets a workspace share first). Members' FormRecs list the spaces their key may see (an open space is seen by every enrolled key; a closed one only by its members, its admins, admin keys and the owner key), show the recordings in them in the library's Team view, play them through the relay's share page and Save a copy into their own library (full files, hash checked, a new id, no owner, a link back to the origin). The same closed-space rule keeps the relay's share pages closed to non-members. When a person is deleted, their relay recordings change hands and their key is revoked; if the relay cannot be reached the hand-over is remembered and retried at every sync.
+On a relay: the owner's computer pushes the space directory (id, name, open or closed, members, admins) to the relay. A creator's FormREC publishes a recording to the relay as itself, with its own enrolled key, and places it in a team space (`add` keeps the other spaces it sits in, `move` makes the named space its one home, `remove` takes it out; a recording that is not shared yet gets a workspace share first). Members' FormRecs list the spaces their key may see (an open space is seen by every enrolled key; a closed one only by its members, its admins, admin keys and the owner key), show the recordings in them in the library's Team view, play them through the relay's share page and Save a copy into their own library (full files, hash checked, a new id, no owner, a link back to the origin). The same closed-space rule keeps the relay's share pages closed to non-members. When a person is deleted, their relay recordings change hands and their key is revoked; if the relay cannot be reached the hand-over is remembered and retried at every sync.
Through a shared folder (Dropbox, iCloud Drive, OneDrive, Syncthing, a network share): no two computers ever write the same file. Each writes its own state file under `.formrec-sync/` with a version vector and content hashes per recording; a pass publishes this computer's change, fast-forwards to a version that is ahead, ignores one that is behind, and brings a concurrent edit in as a conflicted copy (a second recording in the same space, outside the sync) for the person to pick from; the pick becomes a new version ahead of both, so the other computers follow. Files are verified by hash, so a file the sync client is still writing is picked up next time.
@@ -12,7 +12,7 @@ Code: `src/features/teamsync/` (`service.ts` publish, Team index, Save a copy, h
Tests: `tests/teamsync-relay.test.ts` (13 tests, a relay and two computers over loopback), `tests/teamsync-folder.test.ts` (7), `tests/teamsync-e2e.test.ts` (4, Chromium, layout shift 0), with `tests/workspace-roles-spaces.test.ts` and `tests/workspace-roles-relay.test.ts` for the closed-space rule on the LAN listener and the relay. Audited at e00d9d8: all pass.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R4-05 | Spaces: open and closed | Open and closed spaces with members and admins; on a relay creators publish into them with their own key, a closed one is seen only by members, admins and the owner, and the share pages enforce it; through a shared folder with per-computer state files, version vectors and conflicted copies to pick from. | `src/relay/team.ts` `maySeeSpace`, `workspace/visibility.ts`, `teamsync/service.ts`, `library/sync-folder.ts` | `teamsync-relay` "lets the creator publish into a closed space as itself", "refuses a viewer key and a creator who is not in the space", "shows a member the recording with its title, owner, duration and update time", "shows a non-member nothing of the closed space", "keeps the closed space closed on the relay's share page too", "shows an open space to every enrolled key"; `teamsync-folder` (all 7); `workspace-roles-spaces`; `teamsync-e2e` "lists the recording once, with its picture, and does not move anything" (CLS 0) |
| R4-05b | Join and follow a space | A computer follows the team spaces the person chooses; Settings, Team library shows the followed spaces, the last sync and the conflicts waiting. | `teamsync/routes.ts` `PUT /api/teamsync/follow`, `web/src/teamsync.ts` | `teamsync-relay` "follows the spaces the person chooses"; `teamsync-e2e` "shows the followed space in Settings" |
diff --git a/docs/parity/transcripts.md b/docs/parity/transcripts.md
index d58b023..7419686 100644
--- a/docs/parity/transcripts.md
+++ b/docs/parity/transcripts.md
@@ -2,9 +2,9 @@
Feature module `transcripts`: server in `src/features/transcripts/`, client in `web/src/features/transcripts.ts` and `web/src/features/transcripts-logic.ts`, styles in `web/styles/transcripts.css`. Data per recording in `/recordings//transcripts.json` (schema `src/features/transcripts/schema.ts`), files `transcript.vtt`, `transcript.srt`, `transcript.txt` and `transcript-.vtt/.srt` beside it (media route pattern `FILES` in `store.ts`), settings and models in `/transcripts/`.
-Loom is a cloud service that transcribes on its servers. FormRec transcribes on this computer with whisper.cpp when it is installed, and otherwise takes a transcript the person imports or pastes; nothing leaves the computer except the opt-in model download and, when the person asks for a translation, the text sent to the AI provider they set up.
+Loom is a cloud service that transcribes on its servers. FormREC transcribes on this computer with whisper.cpp when it is installed, and otherwise takes a transcript the person imports or pastes; nothing leaves the computer except the opt-in model download and, when the person asks for a translation, the text sent to the AI provider they set up.
-| Row | Loom feature | What FormRec does | Where | Verified by |
+| Row | Loom feature | What FormREC does | Where | Verified by |
| --- | --- | --- | --- | --- |
| R2-21 | Transcripts, automatic, 50+ languages, language detected or chosen, regenerate | whisper.cpp (`FORMREC_WHISPER`, or `whisper-cli`, `whisper-cpp`, `main` in a whisper folder on PATH) through FFmpeg, one of eleven pinned models (tiny, base, small, medium, large-v3, large-v3-turbo, the English-only variants and small.en-tdrz; `models.ts`) downloaded on request into `/transcripts/models`, resumable with a Range request, checked against the pinned size and SHA-256 (a mismatch deletes the file); the run choices in Settings (`capabilities.ts`: Auto, CPU or GPU from what the installed build reports, threads, language, translate to English); each microphone and guest track transcribed on its own and labelled by name, tinydiarize speaker turns for one mixed track (`small.en-tdrz`); live captions while recording in the studio (`live.ts`, whisper-stream when installed, otherwise about 3 s chunks of the studio's microphone) kept as a draft (`web/src/transcripts-live.ts`); language `auto` (whisper detects it from the first 30 seconds) or one of 80 codes; a background queue with progress; automatic after save when turned on (`ctx.events` `saved`); studio recordings are transcribed per microphone track with the person as speaker; agent walkthroughs get theirs from their captions (word timings spread over each caption); without whisper.cpp, import a VTT, SRT or TXT file or paste text; Transcribe again regenerates (asks before replacing a corrected one) | `engine.ts`, `queue.ts`, `index.ts` routes `POST /api/transcripts/:id/transcribe`, `GET /api/transcripts/:id/job`, `POST /api/transcripts/:id/import`, `POST /api/transcripts/models/:name`; MCP `formrec_transcribe`; UI `[data-transcripts-transcribe]`, `[data-transcripts-again]`, `[data-transcripts-import]`, `[data-transcripts-paste]` | `transcripts-routes.test.ts` "transcribes in the background...", "imports VTT, SRT and plain text...", "keeps settings, transcribes new recordings when auto is on...", "makes a walkthrough's transcript from its captions...", "the whisper.cpp runner" (a fake `whisper-cli` script, real FFmpeg), "the model download"; `transcripts-whisper-engine`, `-tracks`, `-models`, `-live` and `-e2e` (a fake `whisper-cli` printing whisper.cpp's JSON); see the whisper.cpp note below; `transcripts-e2e.test.ts` paste |
| R2-22 | Edit or correct the transcript: delete, correct, correct all; captions follow | Edit mode in the panel: pick a word, Correct, All (every same word), Delete; saved with `edited: true`, segments, captions and the VTT/SRT/TXT files made again; an edited transcript is kept from a new transcription unless replaced | `PUT /api/transcripts/:id`, MCP `formrec_set_transcript`; UI `[data-transcripts-edit]`, `[data-transcripts-fix]`, `[data-transcripts-correct]`, `[data-transcripts-correct-all]`, `[data-transcripts-delete-word]` | `transcripts-routes.test.ts` "takes corrections...", `transcripts-web.test.ts` "corrections", `transcripts-e2e.test.ts` (corrects a word in the browser), screenshot `transcripts-edit.png` |
diff --git a/docs/parity/tunnel.md b/docs/parity/tunnel.md
index 40ca0f5..8913cb8 100644
--- a/docs/parity/tunnel.md
+++ b/docs/parity/tunnel.md
@@ -2,7 +2,7 @@
Code: `src/features/tunnel/` (model, store, binary, supervisor, runtime, routes, mcp), `web/src/features/tunnel.ts`, `web/styles/tunnel.css`. Tests: `tests/tunnel-*.test.ts`.
-| Part | How FormRec does it | Test |
+| Part | How FormREC does it | Test |
| --- | --- | --- |
| Quick tunnel | `cloudflared tunnel --no-autoupdate --url http://127.0.0.1:`; the https://.trycloudflare.com URL is read from the log | tunnel-providers, tunnel-supervisor |
| Named tunnel | `cloudflared tunnel --no-autoupdate run` with the token in `TUNNEL_TOKEN`; host name is the person's; token 0600, write-only | tunnel-supervisor, tunnel-e2e |
@@ -14,7 +14,7 @@ Code: `src/features/tunnel/` (model, store, binary, supervisor, runtime, routes,
Loom rows this feature serves (all tests ran on the audit base; `tunnel-supervisor` "custom: runs the person's command" failed once under load because it read the log before the second line arrived, and its assertion now waits for it). No test ran a real cloudflared, Tailscale or ngrok: the supervisor is tested against a fake command, and the download against a fake release server.
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R3-62 | Live share pages for people off the network | A quick tunnel (random `trycloudflare.com` name), a named tunnel on the person's own host name, or their own command (Tailscale Funnel, ngrok) puts the share server on the internet while the app runs; the tunnel link comes before the LAN links in the share dialog, the Shared list and the MCP tools. For links that work with the computer off, use the relay (`relay.md`). | `src/features/tunnel/` | `tunnel-supervisor`, `tunnel-providers`, `tunnel-origin`, `tunnel-e2e` (layout shift 0), `tunnel-mcp` |
| R3-03, R3-05, R3-06 | Privacy, spaces and "Shared with me" away from the LAN | The tunnel origin is share's `PublicShareServer`, so password, people, workspace, closed-space and sign-in gates run unchanged; its front page lists nothing to a stranger, shows a signed-in viewer only their own shares, and disallows robots; cookies are Secure and HttpOnly; limits are stricter than the LAN's and key on `CF-Connecting-IP`. It answers only the share routes: no owner API, no token. | `src/features/share/` over the tunnel origin | `tunnel-origin` (front page, own shares only, share routes only, cookies, limits, forwarded-for) |
diff --git a/docs/parity/variants.md b/docs/parity/variants.md
index 78c129e..3578f68 100644
--- a/docs/parity/variants.md
+++ b/docs/parity/variants.md
@@ -1,8 +1,8 @@
# Variants of a walkthrough: beyond Loom
-Loom's "Personalize videos at scale" makes a spoken name a variable, takes values by hand or from a CSV of up to 100 rows and makes copies with text to speech. Its page now carries a banner that audio variables are deprecated from all plans on 30 September 2026, earlier videos staying; no notice that the whole feature is retired was found (https://support.atlassian.com/loom/docs/personalize-videos-at-scale/, https://www.atlassian.com/software/loom/ai, read on 11 November 2026). FormRec's variants are not that: they make no audio and do not touch a person's recording. A walkthrough an agent wrote may declare `variables`, and FormRec records it once for each set of values.
+Loom's "Personalize videos at scale" makes a spoken name a variable, takes values by hand or from a CSV of up to 100 rows and makes copies with text to speech. Its page now carries a banner that audio variables are deprecated from all plans on 30 September 2026, earlier videos staying; no notice that the whole feature is retired was found (https://support.atlassian.com/loom/docs/personalize-videos-at-scale/, https://www.atlassian.com/software/loom/ai, read on 11 November 2026). FormREC's variants are not that: they make no audio and do not touch a person's recording. A walkthrough an agent wrote may declare `variables`, and FormREC records it once for each set of values.
-R2-41 in `docs/LOOM_PARITY.md` (Variables / personalized video) says Loom retired personalized video on 2026-09-30. What Loom's page says is narrower, as above: audio variables are deprecated from that date. The row is unchanged by this feature, because FormRec does not make spoken variables; the variants here are the walkthrough form of the same idea (one script, many values).
+R2-41 in `docs/LOOM_PARITY.md` (Variables / personalized video) says Loom retired personalized video on 2026-09-30. What Loom's page says is narrower, as above: audio variables are deprecated from that date. The row is unchanged by this feature, because FormREC does not make spoken variables; the variants here are the walkthrough form of the same idea (one script, many values).
A walkthrough declares `variables: [{ name, default?, description?, private? }]` (letters, digits and underscores, at most 50) and uses `{{name}}` in its title, summary, goal, step titles and words, goto addresses, typed values, select choices, waitFor text and addresses, dialog answers and target text. Substitution is on a copy and the source is never changed. A value is only ever pasted into a string (never evaluated, never expanded again), is capped at 500 characters, may not hold a control character, and may not hold a line break where the string is a title, an address or a target. The copy is parsed again, so every limit of the format holds with the values in. A variable in a secret or sign-in field is refused, and every address the copy opens must still resolve to http or https; a variable in the scheme or host of an absolute address may not send the run to another site. Each variant is recorded one after another through the same recorder as any walkthrough, so redaction (`autoRedact`) and secret handling are the recorder's. Every set is checked before the first recording starts; a variant that fails is reported and the next is recorded; a cancel drops the recording in progress and skips the rest.
@@ -16,7 +16,7 @@ Routes (behind the token): `GET /api/variants/recordings/:id` (the variables, th
Tests: `tests/variants-unit.test.ts` (substitution, value sets, the run's order and failures), `tests/variants-record.test.ts` (real Chromium), `tests/variants-panel-e2e.test.ts` (the panel in Chromium, layout shift at 4x CPU throttling), `tests/audit2-variants.test.ts` (the audit's cases).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| BL-variants-1 | Personalize videos at scale (spoken variables; audio variables deprecated 2026-09-30) | Variables in a walkthrough replaced on a copy: titles, words, typed values, addresses and target text; defaults; spaces inside the braces; a value never expanded again. | `substitute.ts` | `variants-unit` "puts the values in titles, words, typed values, addresses and target text, on a copy", "uses defaults and tolerates spaces inside the braces", "never expands a value again" |
| BL-variants-2 | Same | A value is refused when it is not declared, has no value, is too long, holds a control character or a line break where the string is one line; the format's limits hold after substitution; a variable in a secret or sign-in field is refused; addresses stay on http and https. | `substitute.ts` | `variants-unit` "refuses what is not declared, has no value, is too long or holds a control character", "refuses a line break where the string is one line, but not in words or typed text", "keeps the format limits after the values are in", "refuses a variable in a secret or sign-in field", "keeps addresses on http and https and a templated relative address on the base site" |
@@ -29,4 +29,4 @@ Tests: `tests/variants-unit.test.ts` (substitution, value sets, the run's order
## Not verified
-The command `formrec variants` as typed on a command line and the registration of `formrec_variants` in the MCP server are not called by a test; the tests call the handler they share (`variantsTool`) and the panel's routes. Only Chromium was used. A private variable's value is kept out of the lists and the link to the source, but it was typed into the page, so it is in that variant's own `walkthrough.json` and in its captions. Nothing is spoken: there is no audio variable, no text to speech and no personalised voice. The 50-set limit is FormRec's own.
+The command `formrec variants` as typed on a command line and the registration of `formrec_variants` in the MCP server are not called by a test; the tests call the handler they share (`variantsTool`) and the panel's routes. Only Chromium was used. A private variable's value is kept out of the lists and the link to the source, but it was typed into the page, so it is in that variant's own `walkthrough.json` and in its captions. Nothing is spoken: there is no audio variable, no text to speech and no personalised voice. The 50-set limit is FormREC's own.
diff --git a/docs/parity/workspace.md b/docs/parity/workspace.md
index e2d1424..7fd128d 100644
--- a/docs/parity/workspace.md
+++ b/docs/parity/workspace.md
@@ -24,7 +24,7 @@ The person at this computer is the owner: not a row in `people.json`, above ever
## Rows
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| R4-22 | Multiple workspaces, switcher, default | Library profiles: several data folders, each its own library with its own people, policy, spaces and relay connection (all kept in that folder); a title-bar switcher (fixed-width button, names and checked marks written in place) lists them; add (new or existing folder), rename, remove from the list (folder kept), switch. Since 0.6.0 switching is live under `formrec serve` and the desktop app: the running app is closed completely and the other profile opens on the same port with its own token, and the page follows in the same window (`src/serve.ts`, `web/src/workspace-live.ts`); a take in progress blocks it. The active one is remembered in the home profile and `formrec serve` and the desktop app open it at start when FORMREC_DATA is not set. CLI and MCP keep FORMREC_DATA; Settings and `formrec_profiles` show the folder read now and the `claude mcp add ... --env FORMREC_DATA=...` line for each profile. | `profiles.ts`; `/api/workspace/profiles`, `/profiles/:id/switch`; `formrec_profiles`, `formrec_profile_switch`; `[data-ws="profiles"]`, `[data-ws-profile]`; hook in `src/cli.ts` `serve`; `web/src/features/roles.ts` `[data-ws-switcher]` | `profiles > lists, adds, switches, remembers the active one...`; `routes and MCP`; `workspace-roles-switcher` "lists the workspaces and switches without moving anything" (layout shift 0 at 4x throttling); `workspace-live-switch` (same port, new token, the old one refused, listeners, timers and the tunnel's child gone, the server file moved, back again, a no-op for the open one, a take blocks); `workspace-live-switch-browser` (the same page, CLS 0 at 4x); screenshot `workspace-profiles.png`. |
| R4-23 | Roles (Admin, Creator, Viewer) and seats | Four roles: the owner (the person at this computer, above everyone, the only one who may delete the workspace) and, for the people the owner adds, admin, creator and viewer. One permission table (`roles.ts` `PERMISSIONS`, asked through `can()`) says what each may do: a viewer watches and comments, a creator also uploads and shares, an admin also manages people, policy, branding, spaces, every recording and the activity log. Seats are the owner, admins and creators (viewers are free); an optional seat limit warns at 90 percent, at the limit and over it, and never removes anyone. The table is enforced on the share servers (LAN, tunnel and relay: `/s-api/admin/...` for a signed-in person) and on the relay's enrolled keys (a viewer key cannot publish, a creator key cannot change the workspace). IdP role values default, creator, viewer and admin map to roles (`default` is a viewer). A people file written before roles existed reads as all viewers. | `roles.ts`, `people.ts` (`role`, `seatLimit`), `policy.ts` `mayCreateLink`; `PUT /api/workspace/seats`; `src/features/share/admin.ts`; relay `auth.ts` `keyRole`; Settings, Roles and seats in `web/src/features/roles.ts` | `workspace-roles-permissions` (table, IdP attribute map, seats against a limit, role change logged, old file read as viewers, signed-in admin and creator on the share server); `workspace-roles-relay` "a viewer key cannot publish and a creator key can", "a creator key cannot change the workspace; an admin key can"; `workspace-roles-switcher` "draws the roles and seats section in Settings in place". Audited at e00d9d8: passing. |
@@ -33,19 +33,19 @@ The person at this computer is the owner: not a row in `people.json`, above ever
| R4-26 | Deactivate and delete members | Deactivate (kept, no longer let through gated shares), then delete for good by typing the person's email, choosing what happens to what they made: hand their recordings and shares to another active person or to the owner (the `owner` field changes, every link keeps working) or send them to the library's Trash (restorable). The person leaves every space. An admin cannot deactivate themselves. | `people.ts` `updatePerson`, `deletePerson`; `leaving.ts` `removePerson`; `DELETE /api/workspace/people/:id?confirm=[&content=delete \| &to=]`; share `mayWatch`, engage `people()` | `workspace-roles-leaving` "needs the person deactivated first and their email typed...", "can instead delete them: the recordings go to the Trash, restorable"; `workspace-roles-permissions` "does not let an admin deactivate themselves..."; `people > ... deletes only after deactivation with the email typed`; `workspace-share-policy > people shares ... deactivated people are let through by none`; `workspace-one-owner > mentions find the workspace's people...` |
| R4-27 | Content transfer on offboarding | Everything transfers, as Loom Enterprise does: the `owner` field of the person's recordings and of their shares moves to the receiver (an active person, or the owner, which clears the field); share ids, links, views and comments are untouched, and recording.json is rewritten without announcing a save. Their place in spaces is removed. Recordings they published to a relay change hands there too (the team library's `handOver`) and the leaver's relay key is revoked; if the relay cannot be reached the hand-over is remembered and retried on every sync, so the key never stays alive. Moving content to another library is R4-28. | `ownership.ts` (`setRecordingOwner`, `recordingsOwnedBy`), `leaving.ts` `removePerson` and `onPersonLeaving`; `src/features/teamsync/service.ts` `handOver`, `retryHandOvers`; relay `src/relay/team.ts` transfer | `workspace-roles-leaving` "transfers their recordings and shares to another person, and the share link keeps working", "can hand them to the owner of the computer..."; `teamsync-relay` "moves the leaver's relay recordings to the receiver, links unchanged, and revokes the key", "revokes the key of a member deleted along with their recordings", "keeps asking when the relay cannot be reached...". Audited at e00d9d8: passing. |
| R4-28 | Transfer content between workspaces | Move (not copy) recordings to another profile; a recording whose id exists there is skipped, never overwritten; logged as moved in the source and imported in the target. Across disks it copies then removes. The documents feature's package can carry recordings between computers. | `profiles.ts` `moveRecordings`; `POST /api/workspace/transfer`; `[data-ws-form="move"]` | `profiles > moves recordings to another profile without ever overwriting` |
-| R4-29 | Workspace deletion | Two things. Delete a workspace (`POST /api/workspace/delete`, Settings, Roles and seats): the person types the workspace's name (its profile name, else "Personal"); its people, invitations, spaces and memberships, policy, branding and visibility copy are cleared, the recordings stay unless the person asks, and then they go to the Trash; the activity log is kept as the record. Remove a profile from the list (`DELETE /api/workspace/profiles/:id`; never the home or the active one, nor the one open now): its folder is left for the person to delete, since FormRec never deletes a folder of recordings on its own. | `leaving.ts` `deleteWorkspace`, `workspaceName`; `profiles.ts` `forgetProfile` | `workspace-roles-leaving` "asks for the workspace's name, clears people, invitations, spaces and policies, and keeps the recordings", "moves the recordings to the Trash only when asked"; `profiles > lists, adds, switches...`. Audited at e00d9d8: passing. |
+| R4-29 | Workspace deletion | Two things. Delete a workspace (`POST /api/workspace/delete`, Settings, Roles and seats): the person types the workspace's name (its profile name, else "Personal"); its people, invitations, spaces and memberships, policy, branding and visibility copy are cleared, the recordings stay unless the person asks, and then they go to the Trash; the activity log is kept as the record. Remove a profile from the list (`DELETE /api/workspace/profiles/:id`; never the home or the active one, nor the one open now): its folder is left for the person to delete, since FormREC never deletes a folder of recordings on its own. | `leaving.ts` `deleteWorkspace`, `workspaceName`; `profiles.ts` `forgetProfile` | `workspace-roles-leaving` "asks for the workspace's name, clears people, invitations, spaces and policies, and keeps the recordings", "moves the recordings to the Trash only when asked"; `profiles > lists, adds, switches...`. Audited at e00d9d8: passing. |
| R4-31 | Default privacy (creator and workspace) | The policy's `defaultPrivacy` (private, people, network, workspace) is the privacy a new share starts with: share's `readSettings` takes it when it is not private, and share's own default writes back to it. Each share may change its own within the rules. (An earlier version of this row said the setting was stored but unused; it is read.) | `policy.ts`; Policies `[data-ws-policy="defaultPrivacy"]`; share `store.ts readSettings` | `viewer-auth-privacy` "is a default the workspace can set, and an agent may choose it" (a new share takes `workspace`); `routes and MCP`; screenshot `workspace-policies.png`. Audited at e00d9d8: passing. |
| R4-35 | Groups | Groups of people, made by hand here or pushed by a relay's SCIM server (docs/parity/sso.md; a SCIM group maps to a workspace group and optionally to a role, and reaches the computer on the next sync), used by the network-link rule and by people shares (a share's `groups`: their active members may watch); add, remove (removed from everyone), assign a person. | `people.ts` `addGroup`, `removeGroup`; `/api/workspace/groups`; `[data-ws-group]`; share `mayWatch`; relay `src/relay/scim/store.ts`; `src/features/relay/scim-pull.ts` | `routes and MCP`; `ssoscim-flow` "groups: members added and removed, mapped to a role and to a workspace group on the computer"; `workspace-share-policy > people shares open for workspace groups...`; e2e asserts `[data-ws-group="sales"]`; screenshot `workspace-people.png` |
| R4-37 | Data retention rules | Library rule and per-folder rules (the library's folder ids, read with `folderOf` from `src/features/library/store.ts`) that override it: keep, archive (the library's Archive tab, `archive`) or move to the library's one Trash (`trash`) after N days from creation; at most 2000 per sweep; once at start and daily in `start`; preview and Sweep now; trash is restorable from either view; each change logged once, as system, by the library store. No sidecar or Trash index of its own. | `retention.ts`; library `store.ts` `folderOf`, `archivedAt`, `archive`, `trash`, `restore`, `trashList`; `/api/workspace/retention`, `/retention/sweep`, `/trash`, `/trash/:id/restore`, `/archive/:id` | `retention sweep > archives or trashes by age on a fake clock...` (folder placed and archive and Trash read through `LibraryStore`); `> schedules a first sweep and a daily one` |
| R4-38 | Disable downloads (workspace) | `downloads: false` in the policy; the share listener refuses every download (403) and hides the button. The same page holds the rest of sharing's rules, all enforced by share: network links (`mayCreateLink`, and open links close when off), passcodes (`passcodeAllowed`), expiry (`clampExpiry`, and the longest closes older links), allowed domains, and the one "Link previews" switch (`previews`) that share pages and integrations' messages read. | `policy.ts`; `[data-ws-policy="downloads"]`, `[data-ws-policy="previews"]`; share `store.ts saveShare`, `access.ts` | e2e unchecks it and reads the policy back; `routes and MCP`; `workspace-share-policy` (6 listener tests) |
| R4-39 | Global admin video view | Every recording of the workspace with its owner and its access level (private, link, password, people, workspace), filtered by either, and the two changes an admin makes: a new owner (an active person or the owner) and a new access level. A change to private stops the share; any other goes through share's `saveShare`, so the policy (no open links, passcode rules, expiry) still applies to what an admin sets; each change is logged under the admin's email. The owner uses `/api/workspace/admin/recordings`; a signed-in admin uses `/s-api/admin/recordings` on a share server (needs `see-all-recordings`; a creator is refused). On a relay the same list is read-only: a change answers 409 and is made on the owner's computer. Unlike Loom's it also lists private recordings, since the owner owns them all. | `admin.ts` (workspace and share), Settings, Roles and seats | `workspace-roles-activity` "lists every recording with its owner and access level, filtered by either", "changes the owner and the access level; the share link keeps working; each change is logged", "lets a signed-in admin do the same on a share server, logged under their email; a creator cannot". `workspace-roles-relay` "lists every recording with its owner and access for a signed-in admin, refuses a viewer, and is read-only" (added by the audit: a relay answers the list and a change is 409). Audited at e00d9d8: passing. |
| R4-40 | Per-video settings defaults | The workspace owns every per-video setting and its default (`recordingDefaults`: comments, reactions, replies, comment notifications, transcript made and shown, view counts, branded player, speed, downloads, GIF thumbnail, stitching, noise filter). A new recording takes the defaults when the library first saves it (or when an older recording is first read), the values are written to `/workspace.json`, and changing a default later never changes an existing recording; a person or an agent overrides one recording (`GET\|PATCH /api/workspace/recordings/:id/settings`). Engage (comments, reactions, replies, notifications, view counts), transcripts (made, shown), share (speed, download, view counts, branded player, GIF thumbnail), edit (stitch) and effects (noise filter) read them through `video-settings.ts` and keep no copy; a relay is given the resolved values when a recording is published. (The earlier "Partial" text is out of date.) | `policy.ts` `RecordingDefaultsSchema`; `video-settings.ts`; Policies `[data-ws-default]`; readers in `engage/handlers.ts`, `transcripts/store.ts`, `share/store.ts`, `edit/service.ts`, `effects/noise.ts`, `relay/publish.ts`, `relay/allow.ts` | `defaults-settings`, `defaults-e2e`, `relay-share-parity`; `workspace-share-policy > branding saved in Settings...`; screenshot `workspace-policies.png`. Audited at e00d9d8: passing. |
-| R4-41 | Custom branding | Accent colour, logo (PNG or JPEG up to 2 MB, checked by its bytes), a name, hide Made with FormRec; a live preview. The one branding: share pages show it (share keeps no copy; Settings, Sharing points here). | `policy.ts` `BrandingSchema`; `/api/workspace/branding`, `/branding/logo`; `[data-ws="branding"]`; share `store.ts brandingView`, `logoFile` | `routes and MCP` (bad colour 400, SVG refused 415, PNG saved and served); `workspace-share-policy > branding saved in Settings, Branding is what share pages show`; screenshot `workspace-branding.png` |
+| R4-41 | Custom branding | Accent colour, logo (PNG or JPEG up to 2 MB, checked by its bytes), a name, hide Made with FormREC; a live preview. The one branding: share pages show it (share keeps no copy; Settings, Sharing points here). | `policy.ts` `BrandingSchema`; `/api/workspace/branding`, `/branding/logo`; `[data-ws="branding"]`; share `store.ts brandingView`, `logoFile` | `routes and MCP` (bad colour 400, SVG refused 415, PNG saved and served); `workspace-share-policy > branding saved in Settings, Branding is what share pages show`; screenshot `workspace-branding.png` |
| R4-42 | SSO (SAML) and SCIM | Built for teams that run a relay: SSO per verified domain with SAML 2.0 (since 0.6.0) or OpenID Connect, and a SCIM 2.0 server. See docs/parity/sso.md. For a single person with no relay there is no sign-in to a service, which the Privacy and security page still says; people also come from contacts import and invitations. | `src/features/sso/`, `src/relay/sso-api.ts`, `src/relay/scim/`; `[data-ws-claims="does-not"]` | `ssoscim-flow`, `ssoscim-e2e`, `saml-fixtures`, `saml-flow`, `saml-attacks`, `saml-e2e`; screenshot `workspace-privacy-security.png` |
| R4-43 | Activity logs with CSV export | Append-only JSONL (O_APPEND, one write per line) of who did what: saved, removed, policy-changed, branding-changed, profile-*, person-*, moved, archived, retention-*, exported. It is the one activity log: share logs shared, share-changed and unshared; the library archived, trashed, restored, deleted, renamed and duplicated; documents imported, exported and renamed; engage its comments, reactions, views, CTAs, tasks and follows (and reads them back for its own Activity route). Every line names its actor: `owner` for what is done on this computer, `agent` over MCP, `system` for the retention sweep, the signed-in person's email on a share server, `relay:` for an enrolled relay key. Viewer with a filter by action, by one person (`actor` or `person`, case ignored) and by date range (`since`, `until`; a bare day keeps the whole day); CSV export with the same filters, formula-looking cells defused; the export is itself logged. A signed-in admin gets the same CSV from `/s-api/admin/activity`; a creator is refused. | `activity.ts`; `/api/workspace/activity`, `/activity.csv`; `formrec_activity`; `[data-ws-list="activity"]`, `[data-ws-act="export-activity"]` | `activity log > appends lines...`; `workspace-roles-activity` (actor per surface, one person, date range, combined filters, same export for a signed-in admin); `workspace-roles-relay` "the relay's activity names the key behind each action"; `routes and MCP`; `workspace-one-owner > engage, the library and the workspace write one activity log`; `workspace-share-policy > shares and documents' renames are logged...`; screenshot `workspace-activity.png` |
| R4-44 | Admin insights | Recordings, total length, by person or agent, per month (12 bars), the five largest, storage and count per profile, activity counts for 90 days. | `insights.ts`; `/api/workspace/insights`; `formrec_library_insights`; `[data-ws-stat]`, `[data-ws-bars]` | `insights and usage > counts recordings per month...`; screenshot `workspace-activity.png` |
| R4-46 | Data residency | Data stays on this computer; a share reaches only the networks it is on. Stated plainly. | `[data-ws="privacy"]` | screenshot `workspace-privacy-security.png` |
-| R4-47 | SOC 2 Type 2 | No certification is claimed; FormRec is software you run, not a service. Stated plainly. | `[data-ws-claims="does-not"]` | screenshot |
+| R4-47 | SOC 2 Type 2 | No certification is claimed; FormREC is software you run, not a service. Stated plainly. | `[data-ws-claims="does-not"]` | screenshot |
| R4-48 | GDPR, CCPA, EBA | No compliance claim; nothing is processed outside the computer. Stated plainly. | same | screenshot |
| R4-49 | Not HIPAA | No HIPAA claim. Stated plainly. | same | screenshot |
| R4-50 | Encryption | On a relay with FORMREC_RELAY_SEAL_KEY set, every file the relay keeps is sealed at rest with AES-256-GCM (since 0.6.0: settings, people, sign-in, OAuth, SSO and SAML state, SCIM, team spaces, apps, mail, the journal and staged uploads as well as media), through one seam (`src/store/sealed.ts`), and plain files from before the key are sealed in place at start; a wrong key is refused at boot. On the computer, files are 0600 in 0700 folders, checked live (folder mode and any file others could read), and encryption at rest is the disk's (FileVault, BitLocker, LUKS); network listeners use TLS. | `src/store/sealed.ts`, `src/relay/seal.ts`, `src/relay/server.ts`; `insights.ts` `privacyCheck`; `/api/workspace/privacy`; `[data-ws-value="folder-mode"]` | `relay-vault` (a whole relay session, then no plaintext anywhere in the data folder, every file sealed and 0600, every route answers after a restart, plain files migrated, a wrong key refused); `relay-vault-seam` (no relay module reads or writes around the seam); `relay-journal`; `routes and MCP` (0700, no loose files); e2e asserts `0700` |
@@ -57,7 +57,7 @@ The person at this computer is the owner: not a row in `people.json`, above ever
| R3-08 | Creator and workspace default privacy | `defaultPrivacy` (R4-31); applies to new shares only. | `policy.ts` | as R4-31 |
| R3-09 | Public link restrictions by group | `networkLinks`: anyone, owner, owner and groups, nobody; `networkLinkGroups`. | `policy.ts` `mayCreateLink` | `policy reader > decides links...` |
| R3-14 | Sign-in requirements for viewers | No accounts: `commentsNeedEmail` makes viewers give an email before commenting or reacting; email-gated shares ask an address the policy allows; `requirePasscode` and `passcodeMinLength` for links. | `policy.ts` `passcodeAllowed`, `gatedEmailAllowed` | `policy reader > decides links...` |
-| R3-15 | Branded player and sign-up prompt toggle | `promptViewers` (a small "Record your own with FormRec" link, off by default), `hideFormrec`, and the per-recording `brandedPlayer` default. | `policy.ts` `BrandingSchema` | `routes and MCP`; screenshot `workspace-branding.png` |
+| R3-15 | Branded player and sign-up prompt toggle | `promptViewers` (a small "Record your own with FormREC" link, off by default), `hideFormrec`, and the per-recording `brandedPlayer` default. | `policy.ts` `BrandingSchema` | `routes and MCP`; screenshot `workspace-branding.png` |
## MCP tools
diff --git a/docs/parity/wtdiff.md b/docs/parity/wtdiff.md
index f8f6179..82cbe11 100644
--- a/docs/parity/wtdiff.md
+++ b/docs/parity/wtdiff.md
@@ -1,6 +1,6 @@
# Parity: wtdiff (walkthrough freshness)
-Loom has no equivalent: a Loom video is a picture of a product on one day, and when the product changes the video is wrong with nothing to say so. FormRec's agent walkthroughs (a JSON list of steps an agent plays in a headless browser) can be checked again. This feature has no row of its own in the parity table; it is part of what makes FormRec surpass Loom, and R2-37 (Bug Report mode mapped to the code) uses its code-anchor helpers.
+Loom has no equivalent: a Loom video is a picture of a product on one day, and when the product changes the video is wrong with nothing to say so. FormREC's agent walkthroughs (a JSON list of steps an agent plays in a headless browser) can be checked again. This feature has no row of its own in the parity table; it is part of what makes FormREC surpass Loom, and R2-37 (Bug Report mode mapped to the code) uses its code-anchor helpers.
How it works. When the headless recorder makes a recording it also keeps a baseline for each step: a fingerprint of the element and its region (role, name, text, structure, box), the step's picture hashed (64-bit difference hash plus a 4x4 colour grid) and the picture itself (`wtdiff-b-.png`). Places the recorder's own overlay covers are painted grey before hashing, at record time and at check time. A check replays the walkthrough headless without video, takes the same snapshot per step and compares: a step is `same`, `changed` (reasons: text, layout, appearance, page, new step) or `broken` (target missing, action failed); the walkthrough is `fresh`, `stale` or `broken` (broken beats stale beats fresh). Text that changes by itself (clock times, dates, "5 minutes ago", counters, long numbers) is normalised away; a few hash bits, a box that moved under 12 px or grew under 12 percent are not changes. The verdict and the pictures that differ (`wtdiff-c-.png`) are kept in `wtdiff.json` beside the recording. A re-record plays the walkthrough fast, records only the changed or broken steps (or the named ones, or all) as short segments, splices them between ranges cut from the old video, re-times the chapters, resolves the code anchors again, and keeps the old version under `versions/v/`. The id, the share link and the library place stay; the share page then says "Updated on ". The schedule per recording is off, daily, or when the codebase's git HEAD changes; a timer looks every 5 minutes and runs due checks one at a time. A recording made before 0.5.0 (or with baseline off) has no baseline: it is never marked out of date and the check says to record it again.
@@ -8,7 +8,7 @@ Code: `src/wtdiff/` (`fingerprint.ts`, `snapshot.ts`, `compare.ts`, `check.ts`,
Tests: `tests/wtdiff-compare.test.ts` (pure comparison, thresholds, splice plan), `tests/wtdiff-check.test.ts` (real browser against a local page), `tests/wtdiff-rerecord.test.ts` (real FFmpeg), `tests/wtdiff-bugcode.test.ts` (stack frames to code), `tests/wtdiff-e2e.test.ts` (the whole path in the app).
-| Row | Loom feature | What FormRec does | Where | Verified |
+| Row | Loom feature | What FormREC does | Where | Verified |
| --- | --- | --- | --- | --- |
| (none) | Nothing: Loom videos go stale silently | Baseline per step at record time; `formrec check`, the Freshness panel and the MCP tool replay and compare; same, changed or broken per step with the reason; library badge "Out of date" or "Broken" | `src/wtdiff/baseline.ts`, `check.ts`, `compare.ts`; `web/src/wtdiff-panel.ts`; `web/src/library.ts` | `wtdiff-check.test.ts` "records a baseline, ignores a clock that ticks, and finds changed and broken steps with the right reasons" and "sees a change of look the text does not show, and a moved element"; `wtdiff-compare.test.ts`; run 2026-11-10 |
| (none) | Nothing: a changed product means a new recording | Record the changed and broken steps again, or all, as a new version spliced into the old video; the old version is kept; chapters and anchors updated; same id and share link | `src/wtdiff/rerecord.ts`, `splice.ts`, `versions.ts`; `POST /api/wtdiff/recordings/:id/rerecord`; `formrec rerecord` | `wtdiff-rerecord.test.ts` (both tests, real FFmpeg); `wtdiff-e2e.test.ts` (share page says Updated) |
diff --git a/docs/recorder-sdk.md b/docs/recorder-sdk.md
index c23324d..f5b22a1 100644
--- a/docs/recorder-sdk.md
+++ b/docs/recorder-sdk.md
@@ -2,7 +2,7 @@
The recorder SDK lets a website you run record the visitor's screen, camera, or both, in the visitor's browser, with a
record button or controls the site draws itself. The recording is uploaded in chunks to your relay, is shared at once
-(a `/v/` link and an `/e/` embed on the relay), and reaches your FormRec library on the next relay sync. Your computer
+(a `/v/` link and an `/e/` embed on the relay), and reaches your FormREC library on the next relay sync. Your computer
stays the source of truth: edit, unshare or delete the recording there and the next sync follows.
It is the same idea as Loom's `@loomhq/record-sdk` (setup, `isSupported`, a record button with `onStart`, `onCancel`,
@@ -14,8 +14,8 @@ hosted by you instead of by a vendor, with no sign-in for guests and no plan lim
| | Hosted recorder SDK (this page) | LAN pairing SDK (`formrec-sdk.js`) |
|---|---|---|
| Script | `/sdk/formrec-record-sdk.js` | `http://127.0.0.1:8774/formrec-sdk.js` |
-| Pages | any site on the internet | pages in a browser on the same computer as FormRec |
-| Needs | a relay (`docs/relay.md`) and an app in Settings | FormRec running, the listener turned on |
+| Pages | any site on the internet | pages in a browser on the same computer as FormREC |
+| Needs | a relay (`docs/relay.md`) and an app in Settings | FormREC running, the listener turned on |
| Gate | app id, allowed origins, optional signed token | a six-digit code you approve once per origin |
| Lands | on the relay, then in your library on sync | in your library at once |
@@ -110,7 +110,7 @@ enforces the same split.
By default the app id plus the origin check is the gate. For a site that signs its users in, switch the app to Signed
token: the site's server signs a short JWT with a private key and the relay verifies it with the public key you
registered. Add a key in the app's Keys list: paste an RSA (2048 bits or more) or P-256 public key in PEM form, or
-Generate a key pair (the private key is shown once and never stored by FormRec).
+Generate a key pair (the private key is shown once and never stored by FormREC).
The token is RS256 or ES256 (the key decides) with these claims:
@@ -127,7 +127,7 @@ dependency-free Node example.
## Guest limits
-Off by default: FormRec has no plan limits. Set "Guest recordings" (how many recordings one guest may start) and "Guest
+Off by default: FormREC has no plan limits. Set "Guest recordings" (how many recordings one guest may start) and "Guest
length" (seconds) on an app to turn them on. A guest is a visitor without a valid token, identified by the `guest` id the
page passes or one the SDK keeps in `localStorage`. The relay refuses the next recording with `guest-limit`, tells the
recorder the maximum length when a recording starts (it stops itself there), and refuses a longer one at the end with
diff --git a/docs/relay.md b/docs/relay.md
index b657e50..e311a26 100644
--- a/docs/relay.md
+++ b/docs/relay.md
@@ -1,6 +1,6 @@
# The relay
-A FormRec share link normally works while your computer is on and reachable. A relay is a small server you run (Cloud Run, a
+A FormREC share link normally works while your computer is on and reachable. A relay is a small server you run (Cloud Run, a
VPS, Docker) that makes share links work for anyone on the internet, all the time. Your computer stays the source of truth:
it pushes what a share page needs, and the relay hands back what viewers did.
@@ -10,7 +10,7 @@ formrec relay enroll [--data DIR] a new single-use enrollment code
```
Set up: [Cloud Run](../relay/cloudrun.md), [a VPS with systemd and Caddy](../relay/vps.md), or the
-[Dockerfile](../relay/Dockerfile). Then in FormRec open Settings, Relay, paste the relay's address and its enrollment code,
+[Dockerfile](../relay/Dockerfile). Then in FormREC open Settings, Relay, paste the relay's address and its enrollment code,
and press Connect. Share a recording and choose "Publish to the relay" in the share dialog; the public link shows first.
## Settings the relay reads
@@ -18,7 +18,7 @@ and press Connect. Share a recording and choose "Publish to the relay" in the sh
| Variable | Meaning |
| --- | --- |
| `FORMREC_RELAY_URL` | The public https address, used in links and Open Graph tags. `--public-url` overrides it. |
-| `FORMREC_RELAY_DATA` | The data folder. Default `~/formrec-relay`. `--data` overrides it. It uses FormRec's data-folder layout. |
+| `FORMREC_RELAY_DATA` | The data folder. Default `~/formrec-relay`. `--data` overrides it. It uses FormREC's data-folder layout. |
| `PORT` | The port. Default 8780. `--port` overrides it. The relay listens on 0.0.0.0. |
| `FORMREC_RELAY_SEAL_KEY` | Optional, 32 bytes base64 (`openssl rand -base64 32`). Seals every file the relay keeps at rest, see "Sealing at rest" below. |
| `FORMREC_RELAY_TRUST_PROXY` | `1` when a proxy you run is the only way in: the last `X-Forwarded-For` hop becomes the viewer's address for rate limits. Leave it unset otherwise, or a viewer could pick their own address. |
@@ -30,7 +30,7 @@ Only what a share page reads, by name, with a size cap on each (`src/relay/allow
- The recording record (`recording.json`: title, summary, chapters, steps) and the share record (`share.json`: privacy,
the people and domains allowed, and for a password share the password's scrypt hash and salt, never the password).
- The video (`video.webm`, or the recording's tracks and MP4), the poster, the preview GIF, the picture, and the MP4 and
- renditions FormRec made for sharing. The download MP4 goes only when the share allows downloads and the policy does too.
+ renditions FormREC made for sharing. The download MP4 goes only when the share allows downloads and the policy does too.
- Captions, chapters and the transcript, unless you hid the transcript from viewers.
- Calls to action, switches and tasks (`engage.json` without any comments).
- The workspace: the sharing policy, branding with the logo, and the people list. The relay needs these to apply the same gates
@@ -48,7 +48,7 @@ the Trash, your AI key and other settings, API tokens, and the signing private k
## What comes back
Views, comments, reactions, replies, follows, call-to-action clicks, identify emails and video request answers are kept by the
-relay in its own files and listed in order at `GET /relay-api/changes?since=`. FormRec asks every 30 seconds (with
+relay in its own files and listed in order at `GET /relay-api/changes?since=`. FormREC asks every 30 seconds (with
backoff when the relay is unreachable, up to 10 minutes) and has a "Sync now" button. The cursor it sends is also its
acknowledgement of everything before it (see "The journal" below). It merges them by id, so a repeat
changes nothing: the latest `updatedAt` wins for an edit, a deletion beats an edit, and a follow newer than its deletion
@@ -72,7 +72,7 @@ stays. Insights, notifications and webhooks then fire on your computer as if the
rest with AES-256-GCM (see "Sealing at rest"), so a copy of the data folder or the bucket alone shows nothing: no video,
no title, no email address, no comment. The key must be available to the running relay, so someone who controls the
running relay can still read it. Keep a copy of the seal key; sealed files cannot be recovered without it.
-- **Transport.** Run the relay behind https (Cloud Run does; Caddy does on a VPS). FormRec refuses a plain http relay address
+- **Transport.** Run the relay behind https (Cloud Run does; Caddy does on a VPS). FormREC refuses a plain http relay address
except for localhost.
- **Journal.** Compacted instead of filling up, see "The journal" below. Do not delete `relay/changes.jsonl` or
`relay/changes-state.json` by hand.
@@ -166,8 +166,8 @@ Optional, owner-only, and only on a relay. Everything is configured from the own
- **Encryption at rest.** With `FORMREC_RELAY_SEAL_KEY` every file the relay writes is AES-256-GCM sealed: media, records,
people, SSO settings, client secrets, the SCIM data and the journal alike (next section). Without the key nothing is
sealed and the files are as described above; the host's disk encryption is then the protection.
-- **Region and residency (R4-46).** The data lives where the operator runs the relay; FormRec has no regions of its own.
-- **No certification (R4-47, R4-48, R4-49).** FormRec claims no SOC 2, ISO 27001, GDPR or HIPAA compliance or attestation.
+- **Region and residency (R4-46).** The data lives where the operator runs the relay; FormREC has no regions of its own.
+- **No certification (R4-47, R4-48, R4-49).** FormREC claims no SOC 2, ISO 27001, GDPR or HIPAA compliance or attestation.
The relay is software you run; any such claim belongs to you and your host.
- **Availability (R4-51).** No uptime promise. The operator's host decides the uptime.
- **Isolation (R4-50).** Files 0600 in 0700 folders, https required for the relay address, signed owner requests, hashed
@@ -208,7 +208,7 @@ The journal (`relay/changes.jsonl`) lists what viewers did in order, each entry
64 MiB ("the changes journal is full"); it is now compacted.
- **Acknowledgement.** An install asking `GET /relay-api/changes?since=cN` says it has applied everything up to `N`
- (FormRec moves its cursor only past changes it applied). The relay keeps each enrolled install's highest `N` in
+ (FormREC moves its cursor only past changes it applied). The relay keeps each enrolled install's highest `N` in
`relay/changes-state.json`. An install acknowledges on the pass after the one that applied the changes.
- **Compaction.** When the file passes 64 MiB at an append, entries every enrolled install has acknowledged are dropped. A
revoked key is not enrolled and holds nothing; an install that never asked holds everything from the start. If the slowest
@@ -219,10 +219,10 @@ The journal (`relay/changes.jsonl`) lists what viewers did in order, each entry
dropped) gets `resync: true` and the relay's own records as changes, a recording at a time, instead of the journal: every
comment, reaction and follow (`engage.json`), every deletion (the tombstones), every view event and who identified, every
answered video request and every recorder SDK recording. The cursor of a page is `r.`; the last page hands
- over `c`, the journal's head when the pull began, so what happened meanwhile is read from the journal. FormRec applies
+ over `c`, the journal's head when the pull began, so what happened meanwhile is read from the journal. FormREC applies
changes by id, so what it already has changes nothing and nothing is lost. A key that is not the owner's gets the
recordings it published. Call-to-action clicks come back from the relay's activity log (the newest 50 per recording, as
- `cta-click` changes with their own cursor `x` and `clickedAt`); FormRec skips the ones it already heard of (older
+ `cta-click` changes with their own cursor `x` and `clickedAt`); FormREC skips the ones it already heard of (older
than five minutes before its last sync began, or already notified between the click and ten minutes after that).
- **Sealing.** The journal and its state file are sealed like everything else, and stay sealed through compaction.
@@ -268,7 +268,7 @@ cannot drive the app with it") checks it.
Team library sync is not part of this release. The places it plugs in are
`addRelayRoute` in `src/relay/api.ts` (add a route behind the same signed-request check) and the `/apps//...` mount, which
-hands an integration app an `AppContext` (`src/apps/context.ts`), the same one FormRec's own tunnel uses.
+hands an integration app an `AppContext` (`src/apps/context.ts`), the same one FormREC's own tunnel uses.
## Known limits
diff --git a/examples/formrec-self-tour.json b/examples/formrec-self-tour.json
index e296583..271d257 100644
--- a/examples/formrec-self-tour.json
+++ b/examples/formrec-self-tour.json
@@ -1,6 +1,6 @@
{
"formrec": 1,
- "title": "A tour of FormRec, made by FormRec",
+ "title": "A tour of FormREC, made by FormREC",
"summary": "Home, the library, the studio and the player, each linked to the code that draws it. Record from the repo root with: formrec record examples/formrec-self-tour.json --base-url \"$(formrec url)\"",
"viewport": {
"width": 1280,
@@ -14,7 +14,7 @@
{
"id": "home",
"title": "Home",
- "say": "Home starts a screen, camera or audio recording, opens the demos that ship with FormRec, and lists the latest recordings.",
+ "say": "Home starts a screen, camera or audio recording, opens the demos that ship with FormREC, and lists the latest recordings.",
"action": {
"kind": "goto",
"url": ""
@@ -87,15 +87,29 @@
]
},
{
- "id": "code-field",
- "title": "Marks carry code",
- "say": "Each mark can point at code: a path, a line range or a symbol. formrec checks them against the codebase when you save.",
+ "id": "takes",
+ "title": "The Takes tab",
+ "say": "The tabs at the right hold the studio's tools, one group at a time. Takes keeps the tracks, the screenshots and the marks.",
"action": {
"kind": "click",
"target": {
- "text": "Marks and chapters"
+ "selector": "[data-inspector-tab=\"takes\"]"
}
},
+ "code": [
+ {
+ "path": "web/src/inspector.ts",
+ "symbol": "createInspector"
+ }
+ ]
+ },
+ {
+ "id": "code-field",
+ "title": "Marks carry code",
+ "say": "Each mark can point at code: a path, a line range or a symbol. formrec checks them against the codebase when you save.",
+ "highlight": {
+ "text": "Marks and chapters"
+ },
"code": [
{
"path": "src/model/anchor-text.ts",
@@ -114,7 +128,7 @@
"action": {
"kind": "fill",
"target": {
- "selector": "textarea"
+ "selector": "[data-marks-panel] textarea"
},
"value": "src/server/http.ts#finishRecording"
},
@@ -129,8 +143,11 @@
"id": "guests",
"title": "Guests on this network",
"say": "Guests on the same Wi-Fi join over HTTPS with a one-time code and record themselves at full quality.",
- "highlight": {
- "text": "Let guests join on this network"
+ "action": {
+ "kind": "click",
+ "target": {
+ "selector": "[data-inspector-tab=\"guests\"]"
+ }
},
"code": [
{
diff --git a/extension/background.js b/extension/background.js
index 5155de0..ba20d85 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -165,7 +165,7 @@ async function ensureOffscreen() {
if (!chrome.offscreen) throw new Error('This browser cannot record a tab from an extension; choose Screen instead.')
const has = chrome.runtime.getContexts ? (await chrome.runtime.getContexts({ contextTypes: ['OFFSCREEN_DOCUMENT'] })).length > 0 : false
if (!has) {
- await chrome.offscreen.createDocument({ url: 'offscreen.html', reasons: ['USER_MEDIA'], justification: 'Record the tab the person chose and upload it to FormRec on this computer.' })
+ await chrome.offscreen.createDocument({ url: 'offscreen.html', reasons: ['USER_MEDIA'], justification: 'Record the tab the person chose and upload it to FormREC on this computer.' })
}
}
@@ -183,7 +183,7 @@ async function hideBubble(tabId) {
/** Record a tab: the popup and the Quick Record command count as the person invoking the extension on it. */
async function startTab(tabId, options) {
const p = await pairing()
- if (!p) throw new Error('Pair this browser with FormRec first.')
+ if (!p) throw new Error('Pair this browser with FormREC first.')
if (await getState()) throw new Error('Already recording.')
const tab = await chrome.tabs.get(tabId)
const streamId = await chrome.tabCapture.getMediaStreamId({ targetTabId: tabId })
@@ -209,7 +209,7 @@ async function startTab(tabId, options) {
/** Screen, camera or audio: the recorder window picks the source and records. */
async function openRecorder(mode, options) {
const p = await pairing()
- if (!p) throw new Error('Pair this browser with FormRec first.')
+ if (!p) throw new Error('Pair this browser with FormREC first.')
const params = new URLSearchParams({ mode })
if (options.composeTab) params.set('compose', String(options.composeTab))
if (options.title) params.set('title', options.title)
@@ -332,7 +332,7 @@ async function failed(error) {
console.error('FormRec:', error?.message ?? error)
await chrome.action.setBadgeText({ text: 'ERR' })
await chrome.action.setBadgeBackgroundColor({ color: '#d93a3a' })
- await chrome.action.setTitle({ title: `FormRec: ${error?.message ?? 'the take did not start'}` })
+ await chrome.action.setTitle({ title: `FormREC: ${error?.message ?? 'the take did not start'}` })
}
// A navigation in the recorded tab loads a new page without the hook: hook it again (the same site only; activeTab
diff --git a/extension/bubble.html b/extension/bubble.html
index 66674e1..be91506 100644
--- a/extension/bubble.html
+++ b/extension/bubble.html
@@ -1,5 +1,5 @@
-FormRec camera
+FormREC camera
diff --git a/extension/bubble.js b/extension/bubble.js
index 6bbce7e..f188cda 100644
--- a/extension/bubble.js
+++ b/extension/bubble.js
@@ -5,7 +5,7 @@ document.body.dataset.mirror = new URLSearchParams(location.search).get('mirror'
navigator.mediaDevices.getUserMedia({ video: { width: 480, height: 480, facingMode: 'user' }, audio: false }).then(
(stream) => { video.srcObject = stream },
() => {
- note.textContent = 'Allow the camera in the FormRec popup'
+ note.textContent = 'Allow the camera in the FormREC popup'
note.hidden = false
},
)
diff --git a/extension/content/bubble.js b/extension/content/bubble.js
index 6983f70..a72d536 100644
--- a/extension/content/bubble.js
+++ b/extension/content/bubble.js
@@ -41,7 +41,7 @@
var frame = document.createElement('iframe')
frame.className = 'frame'
frame.setAttribute('allow', 'camera')
- frame.setAttribute('title', 'FormRec camera')
+ frame.setAttribute('title', 'FormREC camera')
frame.src = chrome.runtime.getURL('bubble.html') + '?mirror=' + (l.mirror ? '1' : '0')
var grip = document.createElement('div')
grip.className = 'grip'
diff --git a/extension/content/sites.js b/extension/content/sites.js
index 794cb69..19c81f7 100644
--- a/extension/content/sites.js
+++ b/extension/content/sites.js
@@ -53,8 +53,8 @@
style.textContent = STYLE
var button = document.createElement('button')
button.setAttribute('type', 'button')
- button.setAttribute('aria-label', 'Record with FormRec and insert the link')
- button.setAttribute('title', 'Record with FormRec')
+ button.setAttribute('aria-label', 'Record with FormREC and insert the link')
+ button.setAttribute('title', 'Record with FormREC')
button.setAttribute('data-formrec-record-button', '')
button.append(recordIcon())
button.addEventListener('click', function (e) {
@@ -129,7 +129,7 @@
var style = document.createElement('style')
style.textContent = ':host{--fr-radius:10px;--fr-line:rgba(127,127,127,.35)}iframe{display:block;width:100%;height:100%;border:1px solid var(--fr-line);border-radius:var(--fr-radius);box-sizing:border-box}'
var frame = document.createElement('iframe')
- frame.setAttribute('title', 'FormRec recording')
+ frame.setAttribute('title', 'FormREC recording')
frame.setAttribute('allow', 'fullscreen')
frame.setAttribute('loading', 'lazy')
frame.src = chrome.runtime.getURL('player.html') + '?' + params
diff --git a/extension/lib/client.js b/extension/lib/client.js
index 777028e..e28f7dd 100644
--- a/extension/lib/client.js
+++ b/extension/lib/client.js
@@ -30,7 +30,7 @@ export function browserName() {
/** Spend a pairing code ("-ABCD-EFGH") and keep the token FormRec returns. */
export async function pair(input, parsePairing) {
const parsed = parsePairing(input)
- if (!parsed) throw new Error('That does not look like a FormRec pairing code (for example 51234-ABCD-EFGH).')
+ if (!parsed) throw new Error('That does not look like a FormREC pairing code (for example 51234-ABCD-EFGH).')
const browser = browserName()
const name = `${browser === 'edge' ? 'Edge' : browser === 'firefox' ? 'Firefox' : 'Chrome'} on this computer`
const res = await fetch(`http://127.0.0.1:${parsed.port}/api/extension/pair`, {
@@ -39,7 +39,7 @@ export async function pair(input, parsePairing) {
body: JSON.stringify({ code: parsed.code, name, browser }),
})
const body = await res.json().catch(() => ({}))
- if (!res.ok) throw new Error(typeof body.error === 'string' ? body.error : `FormRec answered ${res.status}`)
+ if (!res.ok) throw new Error(typeof body.error === 'string' ? body.error : `FormREC answered ${res.status}`)
const value = { port: parsed.port, token: body.token, browserId: body.browser?.id, name }
await chrome.storage.local.set({ [KEY]: value })
return value
@@ -52,7 +52,7 @@ export async function x(p, path, init = {}) {
const res = await fetch(`${baseOf(p)}/api/extension/x/${path}`, { ...init, headers })
const body = await res.json().catch(() => ({}))
if (!res.ok) {
- const error = new Error(typeof body.error === 'string' ? body.error : `FormRec answered ${res.status}`)
+ const error = new Error(typeof body.error === 'string' ? body.error : `FormREC answered ${res.status}`)
error.status = res.status
error.body = body
throw error
diff --git a/extension/lib/links.js b/extension/lib/links.js
index fe7240e..18f1d1d 100644
--- a/extension/lib/links.js
+++ b/extension/lib/links.js
@@ -98,7 +98,7 @@
/** What goes into the compose box: Markdown where the site renders it, else the title and the link on one line. */
function insertionFor(site, title, url) {
if (!/^https?:\/\//.test(String(url))) return ''
- var clean = String(title || 'FormRec recording').replace(/[\[\]\r\n]+/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 120) || 'FormRec recording'
+ var clean = String(title || 'FormREC recording').replace(/[\[\]\r\n]+/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 120) || 'FormREC recording'
return SITES[site] && SITES[site].markdown ? '[' + clean + '](' + url + ')' : clean + ': ' + url
}
diff --git a/extension/lib/record.js b/extension/lib/record.js
index bcdc6d2..49ef54e 100644
--- a/extension/lib/record.js
+++ b/extension/lib/record.js
@@ -165,7 +165,7 @@ export class Take {
await x(this.p, `sessions/${encodeURIComponent(this.session)}/control`, { method: 'POST', body: JSON.stringify({ action: 'stop' }) })
const durationMs = Math.max(0, ...durations)
const recording = await x(this.p, `sessions/${encodeURIComponent(this.session)}/save`, {
- method: 'POST', body: JSON.stringify({ title: this.title, summary: 'Recorded with the FormRec browser extension.', durationMs: Math.round(durationMs) }),
+ method: 'POST', body: JSON.stringify({ title: this.title, summary: 'Recorded with the FormREC browser extension.', durationMs: Math.round(durationMs) }),
})
const lost = this.tracks.filter((t) => t.lost).map((t) => `the ${t.kind} track did not upload: ${t.lost}`)
return lost.length > 0 ? { ...recording, warning: lost.join('; ') } : recording
diff --git a/extension/manifest.json b/extension/manifest.json
index 081a97d..750ac3e 100644
--- a/extension/manifest.json
+++ b/extension/manifest.json
@@ -1,13 +1,13 @@
{
"manifest_version": 3,
- "name": "FormRec",
- "short_name": "FormRec",
- "version": "0.10.0",
- "description": "Record this tab, your screen, your camera or your voice into FormRec on this computer, and play FormRec links where you work.",
+ "name": "FormREC",
+ "short_name": "FormREC",
+ "version": "0.11.0",
+ "description": "Record this tab, your screen, your camera or your voice into FormREC on this computer, and play FormREC links where you work.",
"minimum_chrome_version": "116",
"icons": { "16": "icons/icon-16.png", "32": "icons/icon-32.png", "48": "icons/icon-48.png", "128": "icons/icon-128.png" },
"action": {
- "default_title": "FormRec",
+ "default_title": "FormREC",
"default_popup": "popup.html",
"default_icon": { "16": "icons/icon-16.png", "32": "icons/icon-32.png", "48": "icons/icon-48.png" }
},
@@ -15,7 +15,7 @@
"permissions": ["storage", "activeTab", "tabCapture", "offscreen", "scripting"],
"host_permissions": ["http://127.0.0.1/*", "http://localhost/*"],
"commands": {
- "_execute_action": { "suggested_key": { "default": "Alt+Shift+F" }, "description": "Open FormRec" },
+ "_execute_action": { "suggested_key": { "default": "Alt+Shift+F" }, "description": "Open FormREC" },
"quick-record": { "suggested_key": { "default": "Alt+Shift+Q" }, "description": "Quick Record: start or stop recording this tab" }
},
"content_scripts": [
diff --git a/extension/offscreen.html b/extension/offscreen.html
index 5d495c6..5f9b622 100644
--- a/extension/offscreen.html
+++ b/extension/offscreen.html
@@ -1,5 +1,5 @@
-FormRec recorder
+FormREC recorder
diff --git a/extension/player.html b/extension/player.html
index 26054c7..a5106e0 100644
--- a/extension/player.html
+++ b/extension/player.html
@@ -1,9 +1,9 @@
-FormRec player
+FormREC player
-
-
+
+
diff --git a/extension/player.js b/extension/player.js
index 20d53b2..7debefe 100644
--- a/extension/player.js
+++ b/extension/player.js
@@ -34,8 +34,8 @@ async function local() {
const port = Number(params.get('port'))
openLink(`http://127.0.0.1:${port}/#/f/${encodeURIComponent(id)}`)
const p = await pairing()
- if (!p) return message('Pair the FormRec extension to play this here.')
- if (p.port !== port) return message('This recording is on another FormRec.')
+ if (!p) return message('Pair the FormREC extension to play this here.')
+ if (p.port !== port) return message('This recording is on another FormREC.')
try {
const rec = await x(p, `recordings/${encodeURIComponent(id)}`)
$('[data-player-title]').textContent = rec.title
@@ -43,15 +43,15 @@ async function local() {
if (!file) return message('This recording has no picture to play.')
$('[data-player-video]').src = mediaUrl(p, id, file)
} catch (error) {
- message(error.status === 404 ? 'This recording is not in your FormRec library.' : error.message)
+ message(error.status === 404 ? 'This recording is not in your FormREC library.' : error.message)
}
}
function share() {
const url = params.get('url') ?? ''
- if (!/^https?:\/\//.test(url)) return message('Not a FormRec link.')
+ if (!/^https?:\/\//.test(url)) return message('Not a FormREC link.')
openLink(url)
- $('[data-player-title]').textContent = 'FormRec recording'
+ $('[data-player-title]').textContent = 'FormREC recording'
$('[data-player-video]').hidden = true
const frame = $('[data-player-frame]')
frame.src = url
diff --git a/extension/popup.html b/extension/popup.html
index f794af7..e07786d 100644
--- a/extension/popup.html
+++ b/extension/popup.html
@@ -2,23 +2,23 @@
- FormRec
+ FormREC
- FormRec
+ FormREC
- Pair this browser with FormRec on this computer. In FormRec, open Settings, Browser extension, and copy the pairing code.
+ Pair this browser with FormREC on this computer. In FormREC, open Settings, Browser extension, and copy the pairing code.
Pairing code
Pair
- The extension gets its own token that can only start recordings, upload them, list them and make links. You can revoke it in FormRec at any time.
+ The extension gets its own token that can only start recordings, upload them, list them and make links. You can revoke it in FormREC at any time.
Bug report (console, failed requests, device)
- Keystrokes (shortcuts and named keys)
+ Keystrokes (shortcuts and named keys)
Quick Record
Pause
diff --git a/extension/popup.js b/extension/popup.js
index 357a2d3..a372a75 100644
--- a/extension/popup.js
+++ b/extension/popup.js
@@ -99,10 +99,10 @@ async function init() {
} catch (error) {
if (error.status === 401) {
await forget()
- say('[data-pair-status]', 'This browser was unpaired in FormRec. Pair it again.', 'error')
+ say('[data-pair-status]', 'This browser was unpaired in FormREC. Pair it again.', 'error')
return view('pair')
}
- $('[data-popup-server]').textContent = 'FormRec is not running'
+ $('[data-popup-server]').textContent = 'FormREC is not running'
}
await showPaired(p)
}
@@ -145,7 +145,7 @@ $('[data-action="stop"]').addEventListener('click', async () => {
const reply = await chrome.runtime.sendMessage({ type: 'stop' })
if (!reply?.ok) return say('[data-record-status]', reply?.error ?? 'Could not stop.', 'error')
if (reply.last?.warning) say('[data-record-status]', `Saved, but ${reply.last.warning}`, 'error')
- else say('[data-record-status]', 'Saved in FormRec.', 'ok')
+ else say('[data-record-status]', 'Saved in FormREC.', 'ok')
await refresh()
const p = await pairing()
if (p) await recent(p)
@@ -162,7 +162,7 @@ $('[data-action="allow"]').addEventListener('click', () => void chrome.tabs.crea
$('[data-action="unpair"]').addEventListener('click', async () => {
await forget()
- say('[data-pair-status]', 'Unpaired. Revoke it in FormRec too if you will not pair again.')
+ say('[data-pair-status]', 'Unpaired. Revoke it in FormREC too if you will not pair again.')
view('pair')
})
diff --git a/extension/recorder.html b/extension/recorder.html
index 04bde6b..8e34a36 100644
--- a/extension/recorder.html
+++ b/extension/recorder.html
@@ -2,7 +2,7 @@
-
FormRec recorder
+ FormREC recorder
@@ -19,7 +19,7 @@
Stop and save
- Each source is uploaded to FormRec on this computer while it records.
+ Each source is uploaded to FormREC on this computer while it records.
diff --git a/extension/recorder.js b/extension/recorder.js
index 5485d83..8509428 100644
--- a/extension/recorder.js
+++ b/extension/recorder.js
@@ -62,7 +62,7 @@ $('[data-recorder="start"]').addEventListener('click', async () => {
return
}
const p = await pairing()
- if (!p) return say('Pair this browser with FormRec first (the toolbar button).', 'error')
+ if (!p) return say('Pair this browser with FormREC first (the toolbar button).', 'error')
try {
const streams = await sources()
$('[data-recorder-preview]').srcObject = streams.screen ?? streams.camera ?? null
diff --git a/formrec b/formrec
index 5d6beca..2eab068 100755
--- a/formrec
+++ b/formrec
@@ -3,7 +3,7 @@ set -e
cd "$(dirname "$0")"
usage() {
- printf 'FormRec %s · recording for walkthroughs, podcasts and messages, by a person or an agent\n' "$(node -p 'require("./package.json").version' 2>/dev/null)"
+ printf 'FormREC %s · recording for walkthroughs, podcasts and messages, by a person or an agent\n' "$(node -p 'require("./package.json").version' 2>/dev/null)"
cat << 'EOF'
usage: ./formrec [command] [options]
diff --git a/formrec.bat b/formrec.bat
index 2b2d091..0eaf36c 100644
--- a/formrec.bat
+++ b/formrec.bat
@@ -45,10 +45,10 @@ if /i not "%CMD%"=="boot" if /i not "%CMD%"=="dev" (
goto usage_fail
)
-start "FormRec client" /min cmd /c "web\boot_frontend.bat"
+start "FormREC client" /min cmd /c "web\boot_frontend.bat"
echo [formrec] dev: the server prints its address with its token; the client recompiles as you edit (reload to see it)
call tools\boot_backend.bat --open
-taskkill /fi "WINDOWTITLE eq FormRec client*" /t /f >nul 2>nul
+taskkill /fi "WINDOWTITLE eq FormREC client*" /t /f >nul 2>nul
exit /b 0
:usage
diff --git a/formrec_oc_install b/formrec_oc_install
index ff337ce..d7cdf76 100755
--- a/formrec_oc_install
+++ b/formrec_oc_install
@@ -17,6 +17,6 @@ fi
command -v ffmpeg >/dev/null || echo "Optional: FFmpeg gives tracks a seek index and makes exports, GIFs and share renditions (https://ffmpeg.org)."
echo
-echo "FormRec is ready to run from source. Start it with: ./formrec"
+echo "FormREC is ready to run from source. Start it with: ./formrec"
echo "Agents (Claude Code, Codex, Cursor) reach it through ./formrec mcp, or connect them with ./formrec agents install."
echo "The desktop app: ./build_app (needs Rust from https://rustup.rs)."
diff --git a/formrec_oc_install.bat b/formrec_oc_install.bat
index 4984c78..551076f 100644
--- a/formrec_oc_install.bat
+++ b/formrec_oc_install.bat
@@ -17,6 +17,6 @@ call web\oc_install.bat || exit /b 1
where ffmpeg >nul 2>nul || echo Optional: FFmpeg gives tracks a seek index and makes exports, GIFs and share renditions (https://ffmpeg.org).
echo.
-echo FormRec is ready to run from source. Start it with: formrec.bat
+echo FormREC is ready to run from source. Start it with: formrec.bat
echo Agents (Claude Code, Codex, Cursor) reach it through formrec.bat mcp, or connect them with formrec.bat agents install.
echo The desktop app: build_app.bat (needs Rust from https://rustup.rs and Git Bash).
diff --git a/package-lock.json b/package-lock.json
index 7320cba..cf4166c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "formrec",
- "version": "0.10.0",
+ "version": "0.11.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "formrec",
- "version": "0.10.0",
+ "version": "0.11.0",
"license": "Apache-2.0",
"dependencies": {
"@lydell/node-pty": "1.2.0-beta.18",
diff --git a/package.json b/package.json
index 505d891..c480ca9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "formrec",
- "version": "0.10.0",
+ "version": "0.11.0",
"description": "Recording for walkthroughs, podcasts, corporate messages and live feeds, by a person or by an agent over MCP; walkthrough steps link to the UI and the code behind them.",
"license": "Apache-2.0",
"type": "module",
diff --git a/relay/cloudrun.md b/relay/cloudrun.md
index 9e3496f..d1d9dd6 100644
--- a/relay/cloudrun.md
+++ b/relay/cloudrun.md
@@ -1,6 +1,6 @@
# Run a relay on Cloud Run
-This puts a FormRec relay behind a Google-managed https address, with the relay's data on a Cloud Storage bucket. See
+This puts a FormREC relay behind a Google-managed https address, with the relay's data on a Cloud Storage bucket. See
[docs/relay.md](../docs/relay.md) for what a relay is and what it holds.
Every flag below was checked against Google's documentation on 2026-11-10:
@@ -68,7 +68,7 @@ Notes on the flags:
`--add-volume mount-path=/data,type=cloud-storage,bucket=...` also works for a single container. Volume mounts need the
second-generation execution environment, which Cloud Run picks automatically.
- `--allow-unauthenticated` is right: share links are public by design. Everything that changes data needs a signed
- request from an enrolled FormRec, and the relay checks that itself. If your organization blocks
+ request from an enrolled FormREC, and the relay checks that itself. If your organization blocks
`--allow-unauthenticated` by policy, the relay cannot serve viewers.
- `--update-secrets` is the flag Google's page shows for `gcloud run deploy`. It pins secret version `1`, as Google recommends
over `latest`, because environment variables are read once when an instance starts.
@@ -85,7 +85,7 @@ URL=$(gcloud run services describe formrec-relay --region=$REGION --project=$PRO
gcloud run services update formrec-relay --region=$REGION --project=$PROJECT --update-env-vars=FORMREC_RELAY_URL=$URL
```
-## 4. Enroll FormRec
+## 4. Enroll FormREC
The first start prints a single-use enrollment code, good for 24 hours, in the service logs:
@@ -93,14 +93,14 @@ The first start prints a single-use enrollment code, good for 24 hours, in the s
gcloud run services logs read formrec-relay --region=$REGION --project=$PROJECT --limit=50 | grep "enrollment code"
```
-Paste the address and the code into FormRec, Settings, Relay. If the code has expired, run `formrec relay enroll`
+Paste the address and the code into FormREC, Settings, Relay. If the code has expired, run `formrec relay enroll`
against the same data folder (for example from a Cloud Run job that mounts the same bucket at `/data`).
## Things to know
- **The 32 MiB request limit.** Cloud Run limits a request to 32 MiB when the container speaks HTTP/1
(https://docs.cloud.google.com/run/quotas: "Limit applies if using HTTP/1 server"). The relay's server speaks HTTP/1, so
- FormRec uploads every file in 16 MiB chunks (`PUT ...?offset=N`), each checked against its own hash, and the whole file is
+ FormREC uploads every file in 16 MiB chunks (`PUT ...?offset=N`), each checked against its own hash, and the whole file is
checked again at publish. A recording of any size gets through.
- **Cloud Storage is not a disk.** A bucket mounted through Cloud Storage FUSE writes an object when a file is closed and
is slower than local disk for many small files. The relay stages chunks in `/data/relay/staging` and moves them with
@@ -109,4 +109,4 @@ against the same data folder (for example from a Cloud Run job that mounts the s
- **Cold starts.** With the default of zero minimum instances, the first request after a quiet period waits for the container.
`--min-instances=1` avoids that for a small cost.
- **Backups.** Turn on object versioning on the bucket. The computer is the source of truth for recordings, so the thing worth
- protecting on the relay is what viewers did since FormRec last synced, plus the keys in `/data/relay/auth.json`.
+ protecting on the relay is what viewers did since FormREC last synced, plus the keys in `/data/relay/auth.json`.
diff --git a/relay/vps.md b/relay/vps.md
index e171aac..ce723c4 100644
--- a/relay/vps.md
+++ b/relay/vps.md
@@ -7,7 +7,7 @@ Any small Linux server with a public address works: Node 22, a domain pointing a
```sh
sudo useradd --system --create-home --home-dir /var/lib/formrec-relay --shell /usr/sbin/nologin formrec
-sudo git clone /opt/formrec # or copy a release
+sudo git clone /opt/formrec # or copy a release
cd /opt/formrec && sudo npm ci && sudo npm run build && sudo npm prune --omit=dev
```
@@ -28,7 +28,7 @@ PORT=8780
```ini
[Unit]
-Description=FormRec relay
+Description=FormREC relay
After=network-online.target
Wants=network-online.target
@@ -82,12 +82,12 @@ relay.example.com {
sudo systemctl reload caddy
```
-Caddy gets and renews the certificate on its own. `max_size` only needs to be above FormRec's 16 MiB upload chunk.
+Caddy gets and renews the certificate on its own. `max_size` only needs to be above FormREC's 16 MiB upload chunk.
`flush_interval -1` sends video bytes through as they arrive, which keeps scrubbing smooth.
-## 4. Enroll FormRec
+## 4. Enroll FormREC
-Read the code from the journal, then paste the address and the code into FormRec, Settings, Relay. For another code later:
+Read the code from the journal, then paste the address and the code into FormREC, Settings, Relay. For another code later:
```sh
sudo -u formrec env FORMREC_RELAY_DATA=/var/lib/formrec-relay node /opt/formrec/dist/src/cli.js relay enroll
@@ -96,4 +96,4 @@ sudo -u formrec env FORMREC_RELAY_DATA=/var/lib/formrec-relay node /opt/formrec/
## Updates and backups
Pull, build, `sudo systemctl restart formrec-relay`. Back up `/var/lib/formrec-relay` (for example with `restic` or a
-nightly `rsync`): it holds the keys in `relay/auth.json`, the published recordings and what viewers did since FormRec last synced.
+nightly `rsync`): it holds the keys in `relay/auth.json`, the published recordings and what viewers did since FormREC last synced.
diff --git a/scripts/HASHOUT_LOG.md b/scripts/HASHOUT_LOG.md
new file mode 100644
index 0000000..723be24
--- /dev/null
+++ b/scripts/HASHOUT_LOG.md
@@ -0,0 +1,49 @@
+# scripts/ HASHOUT log
+
+## 0.11.0 Demo voices with Kokoro (2026-12-01 EST)
+
+The owner called the demo voices robotic. Both demo scripts spoke through FFmpeg's `flite` filter (CMU Flite voices `slt` and `kal`). They now speak through FormREC's built-in voice, Kokoro-82M by way of `src/features/voiceover/kokoro.ts` (the voice-engine role's module), with the default voice of FormCut and FormMorpheus, `af_heart`, for both hosts. The guests have a second natural voice of their own: Theo `am_michael`, Ada `af_bella`.
+
+`demo-voice.mjs` is shared by both scripts. It uses `kokoro(defaultDataDir())`, the same data folder as the app (`FORMREC_DATA` or `~/formrec`). If the voice is not set up yet, it runs the engine's own setup (runtime and pinned model) and waits for it, so a fresh Mac only needs `npm run build` first. `speakTo` writes each line as 48 kHz mono PCM. `normalise` sets a speaking track to -16 LUFS integrated, the speech level the task asked for and FormCut's streaming preset. First a 70 Hz high-pass, as FormCut's shipped speech has: Kokoro's male voice carried a lot below 60 Hz. Then a gentle compressor (threshold -28 dB, ratio 3), because Kokoro's peaks sit about 17 dB over its loudness. Then gain and a limiter at -4 dBFS. With a limiter at -2.5 dBFS and no compressor, the Opus encode overshot to -0.7 dBTP. With this chain every track measures -16.0 to -16.4 LUFS and -2.9 to -3.5 dBTP after Opus.
+
+make-podcast-demo.mjs removed:
+
+ import { mkdir, mkdtemp, rm, stat, writeFile } from 'node:fs/promises'
+ host: { name: 'Juno', voice: 'slt', base: '0x1b1724', tint: '0xf97316', role: 'the host' },
+ guest: { name: 'Theo', voice: 'kal', base: '0x12221c', tint: '0x22c55e', role: 'the guest' },
+ ff('-f', 'lavfi', '-i', `flite=text='${text.replace(/'/g, '')}':voice=${PEOPLE[who].voice}`, '-ar', '48000', '-ac', '1', file)
+ await rm(OUT, { recursive: true, force: true })
+ ff(...inputs, '-filter_complex', `${delays};${mix}`, '-map', '[a]', '-t', String(total), '-ar', '48000', '-ac', '1', mic)
+
+The old `rm(OUT)` deleted the tracked README.md and CREDITS.md on every run. Now only the generated files go, as exportDemo in make-demos.mjs already did. The mix is written as a bed and normalised into the mic file. The lines keep their order, their 0.6 s lead and their 0.45 s gaps. The captions and chapters follow the new line lengths, so the episode is 37.3 s instead of 34.9 s.
+
+make-demos.mjs removed:
+
+ ff('-f', 'lavfi', '-i', "flite=text='Welcome to the show. ...':voice=slt",
+ '-filter_complex', '[0]aresample=48000,apad=whole_dur=24[a]', '-map', '[a]', '-t', '24', '-ac', '1', path.join(media, 'host.wav'))
+ ff('-f', 'lavfi', '-i', 'anullsrc=r=48000:cl=mono:d=9', '-f', 'lavfi', '-i', "flite=text='Thanks for having me. ...':voice=kal",
+ '-filter_complex', '[0][1]concat=n=2:v=0:a=1,aresample=48000,apad=whole_dur=24[a]', '-map', '[a]', '-t', '24', '-ac', '1', path.join(media, 'guest.wav'))
+
+The fake microphones keep their shape: 24 s files that Chromium loops, with the guest's line after 9 s of silence. Only the voice and the level changed. The comment lines that named flite now name Kokoro.
+
+The full make-demos.mjs take was not run for 0.11.0. It drives the Studio and Record pages, which the studio and record-pages roles are redesigning on this branch. It also records the self tour again, and that tour's video.webm is a fixture for about 20 tests. The studio-guest demo's two mic tracks were spoken again in place instead. Each is the same line, voice and level, laid into a track of the take's length: Mara at 0.40 s of her track and Ada at 9.40 s of hers. The cameras, offsets and lengths are the take's. The "Ada answers" mark moved from 8.828 s to 9.300 s, after Mara's line ends at 9.10 s, and recording.json and chapters.vtt say so. The self tour has no voice audio (its narration is captions), so nothing in it was robotic. A spoken tour is the voice-over feature's job.
+
+## 0.11.0 The self tour on the new Studio, spoken with Kokoro (2026-12-01 EST)
+
+Once the Studio redesign was committed, make-demos.mjs ran in full. The Studio's tools now sit in an inspector with one tab shown at a time. The script clicks the Guests and captions tab before "Let guests join on this network", and the Source tab before the title field.
+
+`examples/formrec-self-tour.json` changed in four places:
+- A ninth step, "The Takes tab", clicks `[data-inspector-tab="takes"]`.
+- "Marks carry code" highlights "Marks and chapters" instead of clicking it. The Studio opens that panel itself (studio.ts sets `marks.el.open = true`), so the old click closed it and the next fill timed out.
+- "A mark with code" fills `[data-marks-panel] textarea`, not the first textarea on the page.
+- "Guests on this network" clicks the Guests tab instead of highlighting a toggle that is hidden behind it.
+
+The tour is spoken. Each step's `say` is spoken with `af_heart` before the recording. The step's `holdMs` is raised to at least the line's length plus 0.3 s, so a line always ends inside its own chapter; the script stops if one would not. The recorder plays a copy of the walkthrough with those holds, written to `dist/formrec-self-tour.narrated.json` because the recorder only reads a walkthrough from inside the codebase it was given. Its root is the absolute repository path. The lines are laid at each chapter's `startMs`, which is its caption's start, normalised to -16 LUFS, and muxed into `video.webm` as an Opus mono 48 kHz 64 kb/s track. The picture is copied, not encoded again. The narration is inside `video.webm` and not a `track-*-mic.webm` beside it, because about 20 tests copy `video.webm` with `recording.json` (which lists no tracks) into a library. A separate track would have left their recordings pointing at a file they never copied. The player's walkthrough stage plays the video's own sound.
+
+Removed:
+
+ const child = spawn('node', [cli, 'record', 'examples/formrec-self-tour.json', '--base-url', `${base}/?token=${TOKEN}`, '--codebase', REPO], { cwd: REPO, env, stdio: ['ignore', 'ignore', 'inherit'] })
+
+demo-voice.mjs: the limiter's ceiling went from -4 to -5 dBFS. The 87-second tour narration reached -1.0 dBTP after Opus at -4 dBFS; at -5 dBFS it measures -2.7 dBTP and -16.4 LUFS.
+
+The same run recorded the studio take again with the Kokoro fake microphones. Chromium loops each 24 s microphone file from the moment the device opens, and the take begins mid-loop, so Mara's line was cut to its last three seconds again. That take was not kept: the committed studio-guest, with whole lines laid in place, stays. Making the take reliably whole needs the fake microphone to start when Record is pressed, which a file-backed fake device cannot do.
diff --git a/scripts/demo-voice.mjs b/scripts/demo-voice.mjs
new file mode 100644
index 0000000..6445180
--- /dev/null
+++ b/scripts/demo-voice.mjs
@@ -0,0 +1,52 @@
+import { execFileSync, spawnSync } from 'node:child_process'
+import { mkdtemp, rm, writeFile } from 'node:fs/promises'
+import { tmpdir } from 'node:os'
+import path from 'node:path'
+import { DEFAULT_VOICE, defaultDataDir, kokoro } from '../dist/src/features/voiceover/kokoro.js'
+
+export const HOST_VOICE = DEFAULT_VOICE
+export const LOUDNESS = -16
+export const TRUE_PEAK = -1.5
+
+const engine = kokoro(defaultDataDir())
+let ready
+
+async function whenReady() {
+ let status = await engine.status()
+ if (status.ready) return
+ if (!status.platform.supported) throw new Error(`The built-in voice does not run here: ${status.platform.note}`)
+ console.log(`Setting up the built-in voice (Kokoro) in ${status.folder}`)
+ if (status.job?.state !== 'running') engine.startSetup()
+ for (;;) {
+ await new Promise((r) => setTimeout(r, 1000))
+ status = await engine.status()
+ if (status.ready) return
+ if (status.job && status.job.state !== 'running') throw new Error(`The built-in voice could not be set up: ${status.job.error || status.job.state}`)
+ }
+}
+
+export async function speakTo(file, text, voice = HOST_VOICE) {
+ ready ??= whenReady()
+ await ready
+ const speech = await engine.speak(text, { voice })
+ const work = await mkdtemp(path.join(tmpdir(), 'formrec-voice-'))
+ try {
+ const raw = path.join(work, 'line.wav')
+ await writeFile(raw, speech.audio)
+ execFileSync('ffmpeg', ['-v', 'error', '-y', '-i', raw, '-af', 'aresample=48000', '-ar', '48000', '-ac', '1', '-c:a', 'pcm_s16le', file], { stdio: 'inherit' })
+ } finally {
+ await rm(work, { recursive: true, force: true })
+ }
+ return speech.seconds
+}
+
+const EVEN = 'highpass=f=70,acompressor=threshold=-28dB:ratio=3:attack=3:release=60'
+const CEILING = 10 ** ((TRUE_PEAK - 3.5) / 20)
+
+export function normalise(input, output) {
+ const report = spawnSync('ffmpeg', ['-hide_banner', '-nostats', '-i', input, '-af', `${EVEN},loudnorm=I=${LOUDNESS}:TP=${TRUE_PEAK}:LRA=11:print_format=json`, '-f', 'null', '-'], { encoding: 'utf8' }).stderr
+ const m = JSON.parse(report.slice(report.lastIndexOf('{'), report.lastIndexOf('}') + 1))
+ const gain = LOUDNESS - Number(m.input_i)
+ const filter = `${EVEN},volume=${gain.toFixed(2)}dB,alimiter=limit=${CEILING.toFixed(3)}:level=false:attack=5:release=50`
+ execFileSync('ffmpeg', ['-v', 'error', '-y', '-i', input, '-af', filter, '-ar', '48000', '-ac', '1', '-c:a', 'pcm_s16le', output], { stdio: 'inherit' })
+}
diff --git a/scripts/fetch-kokoro.mjs b/scripts/fetch-kokoro.mjs
new file mode 100644
index 0000000..cd9cc0a
--- /dev/null
+++ b/scripts/fetch-kokoro.mjs
@@ -0,0 +1,37 @@
+#!/usr/bin/env node
+import path from 'node:path'
+import { pathToFileURL } from 'node:url'
+
+const REPO = path.resolve(import.meta.dirname, '..')
+const engineUrl = pathToFileURL(path.join(REPO, 'dist/src/features/voiceover/kokoro.js')).href
+const { kokoro, defaultDataDir } = await import(engineUrl).catch(() => {
+ console.error('Build FormREC first (npm run build): dist/src/features/voiceover/kokoro.js is missing.')
+ process.exit(1)
+})
+
+const dataDir = path.resolve(process.argv[2] ?? defaultDataDir())
+const engine = kokoro(dataDir)
+const before = await engine.status()
+if (before.ready) {
+ console.log(`The built-in voice is already set up in ${before.folder}.`)
+ process.exit(0)
+}
+if (!before.platform.supported) {
+ console.error(before.platform.note)
+ process.exit(1)
+}
+
+process.on('SIGINT', () => { engine.cancelSetup() })
+engine.startSetup()
+const mb = (n) => (n / 1048576).toFixed(1)
+let last = ''
+for (;;) {
+ await new Promise((r) => setTimeout(r, 500))
+ const { job } = await engine.status()
+ if (!job) break
+ const line = job.step === 'model' && job.total > 0 ? `model ${mb(job.done)} of ${mb(job.total)} MB` : job.step
+ if (line !== last && job.state === 'running') { console.log(line); last = line }
+ if (job.state === 'done') { console.log(`The built-in voice is set up in ${engine.folder()}.`); process.exit(0) }
+ if (job.state === 'cancelled') { console.error('Cancelled. Run this again to go on from where it stopped.'); process.exit(130) }
+ if (job.state === 'failed') { console.error(job.error); process.exit(1) }
+}
diff --git a/scripts/make-demos.mjs b/scripts/make-demos.mjs
index 410cd31..479dffb 100644
--- a/scripts/make-demos.mjs
+++ b/scripts/make-demos.mjs
@@ -1,6 +1,6 @@
// Makes FormRec's demos with FormRec itself and writes them to demos//: run `npm run build`, then
-// `node scripts/make-demos.mjs`. Needs ffmpeg with drawtext and flite, and Playwright's Chromium.
-// 1. The camera pictures and voices are made here (ffmpeg colour, drawtext and flite), so nothing outside needs credit.
+// `node scripts/make-demos.mjs`. Needs ffmpeg with drawtext, the built-in Kokoro voice, and Playwright's Chromium.
+// 1. The camera pictures and voices are made here (ffmpeg colour and drawtext, Kokoro), so nothing outside needs credit.
// 2. A host and a guest on this network record a studio take, each in their own browser with those files as fake devices.
// 3. The self tour (examples/formrec-self-tour.json) is recorded headless against the same library.
// 4. Each recording is copied to demos// with a poster, without this computer's paths or forge links.
@@ -10,6 +10,7 @@ import { tmpdir } from 'node:os'
import path from 'node:path'
import { chromium } from 'playwright'
import { createApp } from '../dist/src/app.js'
+import { HOST_VOICE, normalise, speakTo } from './demo-voice.mjs'
const REPO = path.resolve(import.meta.dirname, '..')
const work = await mkdtemp(path.join(tmpdir(), 'formrec-demos-'))
@@ -29,10 +30,13 @@ function camera(name, base, tint, who, line) {
}
camera('host', '0x1b1724', '0xf97316', 'Host camera', 'Mara . the host')
camera('guest', '0x14202a', '0x2f7bf5', 'Guest camera', 'Ada . on the same Wi-Fi')
-ff('-f', 'lavfi', '-i', "flite=text='Welcome to the show. Today Ada joins us from across the room, on the same network, and each of us records our own track at full quality.':voice=slt",
- '-filter_complex', '[0]aresample=48000,apad=whole_dur=24[a]', '-map', '[a]', '-t', '24', '-ac', '1', path.join(media, 'host.wav'))
-ff('-f', 'lavfi', '-i', 'anullsrc=r=48000:cl=mono:d=9', '-f', 'lavfi', '-i', "flite=text='Thanks for having me. My camera and microphone go straight to your computer while we talk, so nothing is lost if the call drops.':voice=kal",
- '-filter_complex', '[0][1]concat=n=2:v=0:a=1,aresample=48000,apad=whole_dur=24[a]', '-map', '[a]', '-t', '24', '-ac', '1', path.join(media, 'guest.wav'))
+await speakTo(path.join(media, 'host-line.wav'), 'Welcome to the show. Today Ada joins us from across the room, on the same network, and each of us records our own track at full quality.', HOST_VOICE)
+ff('-i', path.join(media, 'host-line.wav'), '-filter_complex', '[0]aresample=48000,apad=whole_dur=24[a]', '-map', '[a]', '-t', '24', '-ac', '1', path.join(media, 'host-bed.wav'))
+normalise(path.join(media, 'host-bed.wav'), path.join(media, 'host.wav'))
+await speakTo(path.join(media, 'guest-line.wav'), 'Thanks for having me. My camera and microphone go straight to your computer while we talk, so nothing is lost if the call drops.', 'af_bella')
+ff('-f', 'lavfi', '-i', 'anullsrc=r=48000:cl=mono:d=9', '-i', path.join(media, 'guest-line.wav'),
+ '-filter_complex', '[0][1]concat=n=2:v=0:a=1,aresample=48000,apad=whole_dur=24[a]', '-map', '[a]', '-t', '24', '-ac', '1', path.join(media, 'guest-bed.wav'))
+normalise(path.join(media, 'guest-bed.wav'), path.join(media, 'guest.wav'))
const TOKEN = 'd'.repeat(40)
const app = createApp({ dataDir: data, token: TOKEN, webDir: path.join(REPO, 'dist/web'), guestPort: 0, guestHost: '127.0.0.1', addresses: () => ['127.0.0.1'] })
@@ -47,6 +51,7 @@ try {
await host.goto(`${base}/?token=${TOKEN}#/record?mode=camera`)
await host.getByRole('button', { name: 'Get ready' }).click()
await host.getByText('Ready. Guests can join now.').waitFor()
+ await host.locator('[data-inspector-tab="guests"]').click()
await host.getByText('Let guests join on this network').click()
const link = (await host.locator('.link').first().textContent()).trim()
await host.waitForFunction(() => (document.querySelector('.code')?.textContent ?? '').replace(/\D/g, '').length === 6)
@@ -59,6 +64,7 @@ try {
await guest.getByRole('button', { name: 'Join with my camera and microphone' }).click()
await guest.getByText('Waiting for the host to record').waitFor({ timeout: 20_000 })
await host.locator('.tiles video').first().waitFor({ timeout: 20_000 })
+ await host.locator('[data-inspector-tab="source"]').click()
await host.getByPlaceholder('What this recording is').fill('A studio take with a guest')
await host.getByRole('button', { name: 'Record', exact: true }).click()
await guest.locator('.state', { hasText: /^Recording$/ }).waitFor({ timeout: 15_000 })
@@ -103,11 +109,22 @@ await exportDemo(studioId, 'studio-guest', (r) => ({
// The tour shows Home with the demos' posters: serve the ones made so far (the tour's own poster is the last run's).
await cp(path.join(REPO, 'demos'), path.join(REPO, 'dist/web/demos'), { recursive: true, filter: (from) => !/\.md$/.test(from) })
+const walk = JSON.parse(await readFile(path.join(REPO, 'examples/formrec-self-tour.json'), 'utf8'))
+walk.codebase = { ...walk.codebase, root: REPO }
+const lines = new Map()
+for (const step of walk.steps) {
+ const file = path.join(media, `tour-${step.id}.wav`)
+ const secs = await speakTo(file, step.say, HOST_VOICE)
+ lines.set(step.id, { file, ms: Math.ceil(secs * 1000) })
+ step.holdMs = Math.max(step.holdMs ?? 0, Math.ceil(secs * 1000) + 300)
+}
+const walkFile = path.join(REPO, 'dist', 'formrec-self-tour.narrated.json')
+await writeFile(walkFile, `${JSON.stringify(walk, null, 2)}\n`)
const cli = path.join(REPO, 'dist/src/cli.js')
const env = { ...process.env, FORMREC_DATA: data, FORMREC_TOKEN: TOKEN }
// The recorder runs as its own process while this one keeps serving the pages it tours.
await new Promise((resolve, reject) => {
- const child = spawn('node', [cli, 'record', 'examples/formrec-self-tour.json', '--base-url', `${base}/?token=${TOKEN}`, '--codebase', REPO], { cwd: REPO, env, stdio: ['ignore', 'ignore', 'inherit'] })
+ const child = spawn('node', [cli, 'record', walkFile, '--base-url', `${base}/?token=${TOKEN}`, '--codebase', REPO], { cwd: REPO, env, stdio: ['ignore', 'ignore', 'inherit'] })
child.on('error', reject)
child.on('exit', (code) => (code === 0 ? resolve() : reject(new Error(`the self tour recording failed (${code})`))))
})
@@ -118,5 +135,20 @@ const tour = JSON.parse(await readFile(path.join(recordings, tourId, 'recording.
const failed = tour.chapters.filter((c) => c.error)
if (failed.length > 0) throw new Error(`the self tour has failed steps: ${failed.map((c) => `${c.title}: ${c.error}`).join('; ')}`)
await exportDemo(tourId, 'self-tour', (r) => r, 'video.webm', '4', 'scale=640:-2,crop=640:360:0:0')
+const tourVideo = path.join(REPO, 'demos', 'self-tour', 'video.webm')
+const tourSeconds = Number(execFileSync('ffprobe', ['-v', 'error', '-show_entries', 'format=duration', '-of', 'csv=p=0', tourVideo]).toString().trim())
+const spoken = tour.chapters.map((c, i) => {
+ const line = lines.get(c.stepId)
+ const until = tour.chapters[i + 1]?.startMs ?? Math.round(tourSeconds * 1000)
+ if (c.startMs + line.ms > until) throw new Error(`the tour's line for ${c.stepId} runs past its chapter`)
+ return { ...line, at: c.startMs }
+})
+ff(...spoken.flatMap((l) => ['-i', l.file]), '-filter_complex',
+ `${spoken.map((l, i) => `[${i}]adelay=${l.at}[d${i}]`).join(';')};${spoken.map((_, i) => `[d${i}]`).join('')}amix=inputs=${spoken.length}:normalize=0,apad=whole_dur=${tourSeconds}[a]`,
+ '-map', '[a]', '-t', String(tourSeconds), '-ar', '48000', '-ac', '1', path.join(media, 'tour-bed.wav'))
+normalise(path.join(media, 'tour-bed.wav'), path.join(media, 'tour-narration.wav'))
+ff('-i', tourVideo, '-i', path.join(media, 'tour-narration.wav'), '-map', '0:v', '-map', '1:a', '-c:v', 'copy', '-c:a', 'libopus', '-b:a', '64k', '-ac', '1', '-t', String(tourSeconds), path.join(media, 'tour.webm'))
+await copyFile(path.join(media, 'tour.webm'), tourVideo)
+await rm(walkFile, { force: true })
await rm(work, { recursive: true, force: true })
console.log('demos written: demos/self-tour, demos/studio-guest')
diff --git a/scripts/make-podcast-demo.mjs b/scripts/make-podcast-demo.mjs
index dc4fedb..a11f8b0 100644
--- a/scripts/make-podcast-demo.mjs
+++ b/scripts/make-podcast-demo.mjs
@@ -1,10 +1,11 @@
-// Makes the podcast demo in demos/podcast-episode/ with ffmpeg alone (drawtext, showwaves and flite), no browser:
-// `node scripts/make-podcast-demo.mjs`. Two invented speakers, each with a camera and a microphone track, written in
+// Makes the podcast demo in demos/podcast-episode/ with ffmpeg (drawtext and showwaves) and the built-in Kokoro voice, no
+// browser: `npm run build && node scripts/make-podcast-demo.mjs`. Two invented speakers, each with a camera and a microphone track, written in
// the shape FormREC writes a studio take with a guest, with a chapter per part of the episode.
import { execFileSync } from 'node:child_process'
-import { mkdir, mkdtemp, rm, stat, writeFile } from 'node:fs/promises'
+import { mkdir, mkdtemp, readdir, rm, stat, writeFile } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import path from 'node:path'
+import { HOST_VOICE, normalise, speakTo } from './demo-voice.mjs'
const REPO = path.resolve(import.meta.dirname, '..')
const OUT = path.join(REPO, 'demos', 'podcast-episode')
@@ -14,8 +15,8 @@ const seconds = (file) => Number(execFileSync('ffprobe', ['-v', 'error', '-show_
const font = execFileSync('fc-match', ['-f', '%{file}', 'DejaVu Sans:bold']).toString().trim()
const PEOPLE = {
- host: { name: 'Juno', voice: 'slt', base: '0x1b1724', tint: '0xf97316', role: 'the host' },
- guest: { name: 'Theo', voice: 'kal', base: '0x12221c', tint: '0x22c55e', role: 'the guest' },
+ host: { name: 'Juno', voice: HOST_VOICE, base: '0x1b1724', tint: '0xf97316', role: 'the host' },
+ guest: { name: 'Theo', voice: 'am_michael', base: '0x12221c', tint: '0x22c55e', role: 'the guest' },
}
const PARTS = [
@@ -47,7 +48,7 @@ for (const part of PARTS) {
const start = at
for (const [who, text] of part.lines) {
const file = path.join(work, `line-${n++}.wav`)
- ff('-f', 'lavfi', '-i', `flite=text='${text.replace(/'/g, '')}':voice=${PEOPLE[who].voice}`, '-ar', '48000', '-ac', '1', file)
+ await speakTo(file, text, PEOPLE[who].voice)
const d = seconds(file)
cues.push({ who, text, file, start: at, end: at + d })
at += d + GAP
@@ -57,8 +58,8 @@ for (const part of PARTS) {
const total = Math.ceil((at + 0.4) * 10) / 10
chapters[chapters.length - 1].end = total
-await rm(OUT, { recursive: true, force: true })
await mkdir(OUT, { recursive: true })
+for (const name of await readdir(OUT)) if (!name.endsWith('.md')) await rm(path.join(OUT, name), { recursive: true, force: true })
const tracks = []
for (const who of ['host', 'guest']) {
@@ -67,7 +68,9 @@ for (const who of ['host', 'guest']) {
const inputs = mine.flatMap((c) => ['-i', c.file])
const delays = mine.map((c, i) => `[${i}]adelay=${Math.round(c.start * 1000)}[d${i}]`).join(';')
const mix = `${mine.map((_, i) => `[d${i}]`).join('')}amix=inputs=${mine.length}:normalize=0,apad=whole_dur=${total}[a]`
- ff(...inputs, '-filter_complex', `${delays};${mix}`, '-map', '[a]', '-t', String(total), '-ar', '48000', '-ac', '1', mic)
+ const bed = path.join(work, `${who}-bed.wav`)
+ ff(...inputs, '-filter_complex', `${delays};${mix}`, '-map', '[a]', '-t', String(total), '-ar', '48000', '-ac', '1', bed)
+ normalise(bed, mic)
const p = PEOPLE[who]
const micFile = `track-${who}-mic.webm`
ff('-i', mic, '-c:a', 'libopus', '-b:a', '64k', path.join(OUT, micFile))
diff --git a/setup/notices.mjs b/setup/notices.mjs
index fb8cad2..705e7e1 100644
--- a/setup/notices.mjs
+++ b/setup/notices.mjs
@@ -23,9 +23,9 @@ const BEGIN = /^\[\[ begin file (.+) \]\]$/
const SHARED_REF = /^\[\[ file (.+): shared text (T\d+) \]\]$/
const SHARED_BEGIN = /^\[\[ begin shared text (T\d+) \]\]$/
const APACHE_URL = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
-const INTRO = `FormRec third-party notices
+const INTRO = `FormREC third-party notices
-FormRec is Apache-2.0 (see LICENSE and NOTICE.md). This file holds the licence
+FormREC is Apache-2.0 (see LICENSE and NOTICE.md). This file holds the licence
texts of the third-party software that ships with it: the Node.js runtime of the
desktop app, the npm packages its server runs, the vendored RNNoise module in the
window, the Rust crates compiled into the desktop shell, and what the app
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index ec1931f..78d5adb 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1071,7 +1071,7 @@ dependencies = [
[[package]]
name = "formrec-desktop"
-version = "0.10.0"
+version = "0.11.0"
dependencies = [
"block2",
"objc2",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 3c68c9f..a1bbaa6 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "formrec-desktop"
-version = "0.10.0"
+version = "0.11.0"
description = "FormREC desktop app: a window around formrec serve"
authors = ["NodeAgentc, Inc."]
license = "Apache-2.0"
@@ -29,7 +29,7 @@ serde_json = "1"
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
-objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSWindow", "NSView", "NSResponder", "objc2-core-foundation", "NSColor"] }
+objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSWindow", "NSView", "NSButton", "NSControl", "NSResponder", "objc2-core-foundation", "NSColor"] }
# An iPhone or iPad over USB (src/phone.rs): AVFoundation through objc2, the same versions tauri and wry already
# use, so the lock gains no package.
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSString", "NSURL", "NSArray"] }
diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md
index 9eae2b4..f1293cd 100644
--- a/src-tauri/HASHOUT_LOG.md
+++ b/src-tauri/HASHOUT_LOG.md
@@ -45,3 +45,14 @@ Removed lines, quoted: `.title("FormRec")` (main.rs twice, desktop.rs once), `"O
The window's in-window bar and the system menu were two lists that had drifted (the window had Open, Open Recent, Export as FormREC Package, the theme and the agents rows; the system menu had none of them). The system menu is now built from the window's list: `native-menu.ts` sends it with `menu_set` (a sync command, so it runs on the main thread, where AppKit wants menus built), and the shell makes the window's first menu the application menu (its rows, then Services, Hide, Hide Others, Show All, Quit), puts the standard Edit after File and Window (now with Enter Full Screen and Close Window, which were in the old View and File) before Help, and ends Help with the disabled version row. Item ids are `cmd:`; a chosen item goes back to the window as `window.dispatchEvent(new CustomEvent('formrec:menu', { detail: "" }))`, except `help.browser`, which the shell runs itself (`install_browser`) as before. `menu_state` sets enabled and tick states the window sends after they change. An accelerator Tauri cannot read is left off its item instead of failing the menu.
`menu_set` does nothing on Linux and Windows, and `setup` still sets a menu only on macOS: they keep the in-window bar and get no native bar. Until the window sends its list, and when the person keeps the menus in the window, the bar is `build`'s application, Edit and Window menus.
+
+## v0.11.0 · the traffic lights sit in the page's title row {#traffic-lights}
+
+- refers-to: src/traffic_lights.rs (new), src/main.rs `open_main` (`title_bar_style`, `hidden_title`, `on_page_load`) and `main` (`on_window_event`), capabilities/main.json; ../web/src/prepaint.ts, ../web/styles/menu.css
+- logged: v0.11.0 · 2026-12-01 20:00 EST (dock-menus)
+
+Standard line 5: on macOS the top-left content starts right of the traffic lights (78 px), set before the first paint and removed in full screen. In 0.10.0 the main window had the system's title bar ("FormREC" beside the lights) above the page's own 40 px title row. The window is now `TitleBarStyle::Overlay` with `hidden_title(true)` on macOS only, as FormVis does. The page's row is the title bar.
+
+`traffic_lights.rs` ports FormVis's `traffic_lights.rs` with the row at 40 px (web/app.css `--titlebar-h`) in place of FormVis's 38. Tao's `traffic_light_position` is not used, for FormVis's reason: it sizes the container to the button height plus y and moves the buttons sideways only. Here the container is the whole row, and each button's origin is set on both axes, 14 px from the left. This runs after the window is built, on page load, and on resize, focus, theme and scale changes, and again 120 ms later, because AppKit lays the title bar out again at those moments. `follow` also tells the page whether the window is in full screen (`html.is-fullscreen`), which drops the page's 78 px inset. The page sets `html.has-overlay-titlebar` itself in prepaint before the first paint, so the inset is never applied late. Removed from main.rs: `let window = WebviewWindowBuilder::new(handle, "main", WebviewUrl::External(url))`, which became the `builder` with the macOS title bar options.
+
+`standardWindowButton` needs objc2-app-kit's `NSButton` and `NSControl` features. Cargo.toml (the lead's file) lists only `NSWindow`, `NSView`, `NSResponder`, `objc2-core-foundation` and `NSColor`. tao enables both features on the same crate, and Cargo unifies features, so the shell builds today. Adding the two names to Cargo.toml is asked of the lead in rec011-requests.md. `capabilities/main.json` adds `core:window:allow-start-dragging` and `core:window:allow-internal-toggle-maximize` for Tauri's drag-region script, because the page's title row now moves the window.
diff --git a/src-tauri/capabilities/main.json b/src-tauri/capabilities/main.json
index 1e062ef..525552e 100644
--- a/src-tauri/capabilities/main.json
+++ b/src-tauri/capabilities/main.json
@@ -21,6 +21,8 @@
"allow-phone-ios-resume",
"allow-phone-ios-stop",
"allow-menu-set",
- "allow-menu-state"
+ "allow-menu-state",
+ "core:window:allow-start-dragging",
+ "core:window:allow-internal-toggle-maximize"
]
}
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index cb49806..1d671a4 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -15,6 +15,7 @@ mod packaged;
mod phone;
mod reveal;
mod system;
+mod traffic_lights;
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, Ordering};
@@ -127,7 +128,17 @@ fn open_main(handle: &AppHandle, url: Url, port: u16) -> tauri::Result<()> {
.or_else(|_| handle.path().home_dir())
.unwrap_or_else(|_| PathBuf::from("."));
let finished = handle.clone();
- let window = WebviewWindowBuilder::new(handle, "main", WebviewUrl::External(url))
+ let builder = WebviewWindowBuilder::new(handle, "main", WebviewUrl::External(url));
+ #[cfg(target_os = "macos")]
+ let builder = builder
+ .title_bar_style(tauri::TitleBarStyle::Overlay)
+ .hidden_title(true);
+ let window = builder
+ .on_page_load(|page, payload| {
+ if matches!(payload.event(), tauri::webview::PageLoadEvent::Finished) {
+ traffic_lights::follow(&page.as_ref().window());
+ }
+ })
.title("FormREC")
.inner_size(width, height)
.min_inner_size(MIN_LOGICAL.0, MIN_LOGICAL.1)
@@ -171,6 +182,7 @@ fn open_main(handle: &AppHandle, url: Url, port: u16) -> tauri::Result<()> {
.build()?;
media::allow(&window, port);
reveal::conceal(&window);
+ traffic_lights::place(&window.as_ref().window());
Ok(())
}
@@ -408,6 +420,17 @@ fn main() {
.manage(phone::Phone::default())
.manage(menu::Rows::default())
.on_menu_event(menu::handle)
+ .on_window_event(|window, event| {
+ if matches!(
+ event,
+ tauri::WindowEvent::Resized(_)
+ | tauri::WindowEvent::Focused(_)
+ | tauri::WindowEvent::ThemeChanged(_)
+ | tauri::WindowEvent::ScaleFactorChanged { .. }
+ ) {
+ traffic_lights::follow(window);
+ }
+ })
.invoke_handler(tauri::generate_handler![
reveal::app_ready,
desktop::desktop_ready,
diff --git a/src-tauri/src/traffic_lights.rs b/src-tauri/src/traffic_lights.rs
new file mode 100644
index 0000000..216298c
--- /dev/null
+++ b/src-tauri/src/traffic_lights.rs
@@ -0,0 +1,64 @@
+use tauri::{Manager, Runtime, Window};
+
+#[cfg(target_os = "macos")]
+const LEFT: f64 = 14.0;
+#[cfg(target_os = "macos")]
+const ROW: f64 = 40.0;
+
+pub fn follow(window: &Window) {
+ if !cfg!(target_os = "macos") || window.label() != "main" {
+ return;
+ }
+ place(window);
+ let full = window.is_fullscreen().unwrap_or(false);
+ if let Some(page) = window.app_handle().get_webview_window("main") {
+ let _ = page.eval(format!(
+ "document.documentElement.classList.toggle('is-fullscreen', {full})"
+ ));
+ }
+}
+
+#[cfg(target_os = "macos")]
+pub fn place(window: &Window) {
+ let Ok(ns_window) = window.ns_window() else { return };
+ let address = ns_window as usize;
+ let _ = window.run_on_main_thread(move || unsafe { inset(address as *const objc2_app_kit::NSWindow) });
+ let later = window.clone();
+ std::thread::spawn(move || {
+ std::thread::sleep(std::time::Duration::from_millis(120));
+ let _ = later.run_on_main_thread(move || unsafe { inset(address as *const objc2_app_kit::NSWindow) });
+ });
+}
+
+#[cfg(not(target_os = "macos"))]
+pub fn place(_window: &Window) {}
+
+#[cfg(target_os = "macos")]
+unsafe fn inset(ns_window: *const objc2_app_kit::NSWindow) {
+ use objc2_app_kit::NSWindowButton;
+
+ let Some(window) = ns_window.as_ref() else { return };
+ let (Some(close), Some(minimize), Some(zoom)) = (
+ window.standardWindowButton(NSWindowButton::CloseButton),
+ window.standardWindowButton(NSWindowButton::MiniaturizeButton),
+ window.standardWindowButton(NSWindowButton::ZoomButton),
+ ) else {
+ return;
+ };
+ let Some(bar) = close.superview().and_then(|view| view.superview()) else {
+ return;
+ };
+ let close_frame = close.frame();
+ let margin = ((ROW - close_frame.size.height) / 2.0).max(0.0);
+ let mut bar_frame = bar.frame();
+ bar_frame.size.height = ROW;
+ bar_frame.origin.y = window.frame().size.height - ROW;
+ bar.setFrame(bar_frame);
+ let step = minimize.frame().origin.x - close_frame.origin.x;
+ for (i, button) in [close, minimize, zoom].iter().enumerate() {
+ let mut origin = button.frame().origin;
+ origin.x = LEFT + i as f64 * step;
+ origin.y = margin;
+ button.setFrameOrigin(origin);
+ }
+}
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index ae25b44..24c4b5f 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"productName": "FormREC",
"mainBinaryName": "formrec-desktop",
- "version": "0.10.0",
+ "version": "0.11.0",
"identifier": "ai.nodemode.formrec",
"build": { "frontendDist": "splash" },
"app": {
diff --git a/src/HASHOUT_LOG.md b/src/HASHOUT_LOG.md
index 2c12665..397e58c 100644
--- a/src/HASHOUT_LOG.md
+++ b/src/HASHOUT_LOG.md
@@ -2,8 +2,8 @@
The server's decisions and why, newest last. Read before changing `src/`.
-Current build version: v0.10.0
-Last updated: 2026-12-01 · v0.10.0 the agent dock's terminals and routes
+Current build version: v0.11.0
+Last updated: 2026-12-01 · v0.11.0 the built-in voice (Kokoro), the voice-over and the MCP consent bridge
## v0.2.0 · demo files and /api/info {#demo-files}
@@ -479,3 +479,121 @@ now has `style-src-elem 'self' 'unsafe-inline'` after `style-src 'self'`. Style
and the dock is created after `origin`, added last to `routes`, given the server's `upgrade` event (any other upgrade is destroyed, as Node did with no listener) and closed with the app, which kills its programs; a workspace switch therefore ends the terminals of the folder it leaves.
THIRD-PARTY-NOTICES.txt gained the ten new npm sections and nothing else. Running `node setup/notices.mjs` here rewrote 5,500 lines, because this machine's cargo registry holds 447 crates and the generator drops the texts of the ones it cannot read; and the Edit tool turned the file's CRLF licence texts (json-schema-typed, tslib, several crates) into LF. So the sections were rendered by the generator's own `generate` for just these packages and placed at their sorted positions, every other byte kept; `node setup/notices.mjs --check` passes and `git diff` shows 217 added lines only. The five platform packages not installed on Linux carry the generator's note instead of a text; their LICENSE is node-pty's, the same as `@lydell/node-pty-linux-x64`'s.
+
+## v0.11.0 · the built-in voice (Kokoro) and the voice-over feature {#voiceover}
+
+- refers-to: features/voiceover/kokoro.ts `KokoroVoice`, `MODELS`, `platformSupport`; features/voiceover/store.ts; features/voiceover/index.ts; features/edit/tts.ts `findTts`, `synthesize`; features/edit/service.ts `speak`; features/edit/index.ts `editStatus`
+- logged: v0.11.0 · 2026-12-02
+
+The owner called the voices robotic: they were CMU Flite (`slt`, `kal`) in the demos and flite or espeak-ng in the editor's Replace with speech. FormCut (backend/app/local_speech.py, model_manager.py `local-speech`) and FormMorpheus (backend/app/services/voice_runtime.py) both speak with Kokoro-82M through kokoro-onnx 0.6.1, so FormREC does the same, ported by hand from FormMorpheus's runtime because it is the one that sets itself up from the window.
+
+Why a separate Python and not kokoro-js in Node: kokoro-onnx phonemizes through phonemizer and espeakng-loader, which carry eSpeak NG under GPL-3.0-or-later, and kokoro-js does the same through a WASM eSpeak NG. FormREC is Apache-2.0 (LICENSE), so nothing GPL may ship in or link with it. As in both reference apps, the runtime is made on the person's computer, on request, as a venv in `/voice/runtime` from their own Python 3.10 to 3.13, and runs as a separate program handed JSON on stdin; FormREC never imports or bundles it. The model is the two files of the kokoro-onnx GitHub release `model-files-v1.1` (`kokoro-v1.0.onnx` 325,505,369 bytes, `voices-v1.0.bin` 28,214,398 bytes), downloaded into `/voice/models` with the same pinned SHA-256 and exact sizes as FormMorpheus, kept only when both match, over HTTPS only. Status checks sizes, never hashes 340 MB per call.
+
+Defaults are the references': voice `af_heart`, speed 1 (0.5 to 2), language from the voice's first letter, American then British English first in the list of 54 voices, sentences joined with a 0.12 s pause and their times returned as cues. `FORMREC_VOICE_PYTHON` names a Python to make the runtime from; with `FORMREC_VOICE_PYTHON_READY=1` it is used as the runtime itself (a Python that already has kokoro-onnx, as `scripts/make-demos.mjs` uses). `platformSupport` says in the window what cannot work: 32-bit computers and Windows on Arm (no onnxruntime wheel).
+
+Per recording, `voiceover.json` holds the lines: one per chapter whose `say` has text (or text the person typed), at the chapter's start, plus lines added at a time. A line remembers the text, voice and speed it was spoken with, so a changed line shows as stale and Generate speaks only what is missing or changed. Each line's sound is `voiceover-.wav` beside the recording (the feature's `files`), so the player and the share page fetch it like any track.
+
+Replace with speech in the editor now speaks with the built-in voice and the Settings voice. `FORMREC_TTS` still names a program of the flite shape (the edit API test uses a stand-in). Removed from features/edit/tts.ts, as comments are not kept in code:
+
+ /**
+ * Text to speech on this computer (R2-10): flite, espeak-ng or espeak when one is installed, or the program in
+ * FORMREC_TTS (called like flite: -t -o , or like espeak when its name contains "espeak"). The voice is
+ * the engine's own synthetic voice, not the speaker's, and the editor says so. Nothing is downloaded.
+ */
+ /** Speaks text into a WAV file. The text is one argument, never a shell string. */
+
+and the search for flite, espeak-ng and espeak:
+
+ for (const [bin, style] of [['flite', 'flite'], ['espeak-ng', 'espeak'], ['espeak', 'espeak']] as const) {
+ if (await runs(bin, ['--version'])) return { name: bin, bin, style }
+ }
+
+The edit API's message for no voice changed from "Install flite or espeak-ng (or set FORMREC_TTS)" to "Set up the built-in voice (Kokoro) in Settings, Voice, or set FORMREC_TTS to a program", and tests/edit-api.test.ts matches the new words.
+
+The AI panel's voice-over (features/ai/media.ts `synthesise`, used by the avatar) went the same way: it searched PATH for flite, espeak-ng, espeak and macOS `say`; it now takes the person's own service from Settings, AI when one is named (unchanged), else the built-in voice through `findTts`, and `FORMREC_TTS` is the only way to a program of the flite shape. tests/ai-voice.test.ts names its stand-in through `FORMREC_TTS` instead of PATH. Removed from features/ai/media.ts:
+
+ /**
+ * The external tools the ai feature uses when they are present: ffmpeg for a frame at each step and for scene changes,
+ * and a local text-to-speech engine (flite, espeak-ng, espeak, or macOS say) for a synthesised voice-over. Each is found
+ * at run time; when one is missing the caller gets a clear message, never a crash. Nothing is downloaded.
+ */
+ export const TTS_ENGINES = ['flite', 'espeak-ng', 'espeak', 'say'] as const
+ /** Speak the script into a WAV file with the first local engine found. Returns the engine's name. */
+ // The temporary folder may be on another disk: copy, then swap in atomically beside the target.
+
+## v0.11.0 · Kokoro download resume and scripts/fetch-kokoro.mjs {#kokoro-resume}
+
+- refers-to: features/voiceover/kokoro.ts `KokoroVoice.download`; scripts/fetch-kokoro.mjs
+- logged: v0.11.0 · 2026-12-02
+
+The model is 354 MB, and FormMorpheus throws its `.part` away on any failure, so a dropped connection at 300 MB started over. FormREC keeps `.part` when the transfer stops (cancel, network, timeout) and the next Set up asks for `Range: bytes=-`. It appends only when the answer is 206 with a `Content-Range` that starts at that byte; anything else (200, or another range) rewrites the file from the start. The SHA-256 is fed the kept bytes first, so the pinned checksum and exact size still decide whether the file is kept. The `.part` is deleted when the server refuses (not 2xx), when the body runs past the pinned size, and when the checksum fails, so a bad partial is never resumed. Checked on 2026-12-01 against the GitHub release: a 20,000,000-byte partial of `voices-v1.0.bin` got 206 `bytes 20000000-28214397/28214398` (through release-assets.githubusercontent.com) and finished with the pinned SHA-256. Removed from `download`:
+
+ } finally {
+ await rm(part, { force: true })
+ }
+
+`scripts/fetch-kokoro.mjs [dataDir]` runs the same `startSetup` from `dist/src`, printing the step and the model's megabytes, Ctrl+C cancels (and keeps the partial), so a developer or a demo build sets the voice up without the window, through the one download path that checks the pins.
+
+## v0.11.0 · voice-over timeline: lines from notes, per-line voice, the duck envelope, renditions {#voiceover-timeline}
+
+- refers-to: features/voiceover/store.ts `notesToLines`, `change`, `generate`, `exportVoiceover`, `voiceoverCues`, `voiceoverVtt`; features/voiceover/index.ts routes and `formrec_voiceover`; features/edit/media.ts `recordingSource`, `duckEnvelope`, `buildGraph`; features/edit/renditions.ts `fingerprint`, `makeRenditions`
+- logged: v0.11.0 · 2026-12-01 EST
+
+What the references do, and where FormREC lands. FormCut makes one Kokoro clip per Generate and places it on the timeline; its ducking (backend/app/rhythm.py `ducking`) is an envelope, not a compressor: the music goes to `depth` 0.25 with a 0.15 s attack before speech and a 0.4 s release after it. FormMorpheus speaks text with a voice and a speed (0.5 to 2) at the playhead, returns cues for subtitles, and has the MCP tools `list_voices` and `add_voice`. FormREC's recordings already carry the script: chapters with `say` text at `startMs`, and speaker notes in the Studio (the teleprompter) or the AI's `speaker-notes`. So a line is a chapter's say (or its edited text) at the chapter's start, or an added line at a time, each with its own file, and each can carry its own voice and speed (`lineVoice`, `lineSpeed`) over the recording's (`voice`, `speed`) over Settings, Voice. A line is stale when the words, the voice or the speed it would be spoken with differ from what was spoken.
+
+Lines from notes (`fromNotes`, the panel's From notes, the tool's `notes`): a row that starts with a time (`1:05`, `0:04.5`, `1:02:03`, after an optional `-`, `*` or `1.` bullet) lands at that time, or on the chapter whose start is within 1 s of it (the AI's speaker notes are `- m:ss Title: say`, so a leading `Title:` that names a chapter is dropped); other paragraphs (blank-line separated) go to the chapters not already taken, in order, and any left over are spread evenly between the last of those chapters and the end. Headings (`#`) end a paragraph and are not spoken.
+
+The mix. `recordingSource` now asks `exportVoiceover` for every recording it composes, so every caller gets the voice-over: the editor's export, the documents export, a stitched recording, and the share renditions' main export (which passes `avatar` false and is otherwise the same). The lines are on the recording's own timeline, so `buildGraph` mixes them into the source's sound before the cuts: a cut removes the voice with the picture, as it removes the recording's sound. The bed (the microphones, after replaced speech and noise reduction) goes through `volume` with FormCut's envelope as an expression, `1-(1-level)*min(1, sum of clip(min((t-start+0.15)/0.15, (end+0.4-t)/0.4), 0, 1))`, evaluated per frame, then each line (through `loudnorm=I=-16:TP=-1.5:LRA=11` when Even loudness is on, FormCut's `normalize` preset) is `adelay`ed to its start and mixed with `normalize=0`. Not `sidechaincompress` as the music uses: a compressor only lowers what is above its threshold, so a quiet room would not duck and a loud one would pump; the envelope lowers the bed by exactly the level asked, only where a line speaks. `bare` graphs (silence detection and other analysis) leave the voice out. The music's own duck runs after the cuts on the whole mix, so music ducks under the voice-over too. Removed from `buildGraph`:
+
+ f.push(`${mixed}${denoise},apad=whole_dur=${sec(D)},atrim=duration=${sec(D)},asetpts=PTS-STARTPTS${n > 1 ? `,asplit=${n}` : ''}${Array.from({ length: n }, (_, j) => `[${id}x${j}]`).join('')}`)
+
+Renditions: the fingerprint hashes the voice-over as exported (line file names, starts, lengths, duck, level, loudness) and each line file's size and time, so a new line, a regenerated line, or a Settings change makes the ladder again; a recording with a voice-over is never `plain` (its picture file alone would have no voice). A change through the API or the tool queues the renditions of a shared recording (`changed: true`), and a change of duck, level or loudness queues every shared recording, the way share/index.ts does for edits. Before the renditions exist the share page serves the original file, as it does for any edit.
+
+Captions: `voiceoverCues` places each line's sentence cues (from the engine) at the line's start; GET `/api/voiceover/:id/captions.vtt` and the tool's `captions: true` give them as WebVTT. They are not yet the export's burnt-in captions (service.ts `cues`, the lead's file): offered there in rec011-requests.md.
+
+Checked on 2026-12-01 EST with a 12 s 640x360 recording, two chapters at 1 s and 7 s, a notes line at 4 s, and a steady 14 kHz tone as its sound (Kokoro speaks at 24 kHz, so nothing it says is above 12 kHz and the tone measures the bed alone): in the WAV export the tone is -42.2 dB before, between (6.7 s) and after the lines, -45.5 dB inside the attack and the release, and -53.8 to -54.3 dB inside the lines with Even loudness off (the asked -12.0 dB); with Duck off it stays at -42 dB throughout. Speech (200 Hz to 9 kHz) is -21 to -26 dB inside the lines and -72 dB outside. The MP4 export and share-360.mp4 measure the same, and a second renditions run with nothing changed is skipped. With Even loudness on, the loudest line reads 3 dB less duck above 13 kHz: loudnorm's true-peak limiter adds a little energy there, which the measurement counts as bed.
+
+Removed from store.ts (the stale check now uses the line's own voice and speed, and the export carries the length for the envelope):
+
+ const stale = made && (l.spokenText !== l.text || l.voice !== voice || l.speed !== speed)
+ const speech = await engine.speak(want.text, { voice: before.voice, speed: before.speed })
+ export interface ExportVoiceover { lines: { file: string; offsetMs: number }[]; duck: boolean }
+ return { lines, duck: (await readVoiceSettings(library.dataDir)).duck }
+
+Removed from index.ts (each change now also queues the renditions, and the tool's voice and speed go to one line when a stepId is given):
+
+ await writeVoiceSettings(ctx.dataDir, SettingsPatchSchema.parse(await readJsonBody(req, 4096)))
+ if (parts.length === 3 && method === 'PUT') return send(res, 200, await change(ctx.library, id, ChangeSchema.parse(await readJsonBody(req, 512 * 1024))))
+ if (parts.length === 3 && method === 'DELETE') return send(res, 200, await removeAll(ctx.library, id))
+ if (sub === 'generate' && parts.length === 4 && method === 'POST') return send(res, 200, await generate(ctx.library, id, GenerateSchema.parse(await readJsonBody(req, 4096).catch(() => ({})))))
+ ...(voice !== undefined ? { voice } : {}),
+ ...(speed !== undefined ? { speed } : {}),
+ ...(text !== undefined && stepId ? { lines: [{ stepId, text }] } : {}),
+
+## v0.11.0 · MCP consent: the window asks before an outside agent changes anything {#mcp-consent}
+
+- refers-to: mcp/consent.ts (new: `ConsentBroker`, `remoteGate`, `readConsent`, `writeConsent`, `summarise`, `refusal`), mcp/server.ts `buildServer` (fourth argument `consent`) and `serveMcp`, mcp/http.ts `route` (`req.auth`) and `serveMcpHttp`, mcp/guide.ts (the Consent paragraph), dock/index.ts (`/api/mcp/consent`, `consent` on `DockServer`), app.ts (the /mcp `build`); ../web/src/dock-adapter.ts `outsideAgents`, ../web/index.html (Outside agents and Always allowed rows); ../tests/mcp-http-server.test.ts
+- logged: v0.11.0 · 2026-12-01 21:40 EST (dock-menus, assigned by the coordinator)
+
+FormVis and FormDeck ask the person before an outside agent's MCP call changes anything, and the owner compares the apps side by side. FormREC had only a standing gate: the MCP token, and for the relay a scope and a deny list (mcp/scope.ts). Both stay as they were. The question sits on top of them.
+
+Which calls are asked about. A tool is asked about when its `readOnlyHint` is not true, the same reading of the hints scope.ts uses, so a tool with no annotations is asked about. Read-only tools never are. `buildServer` wraps each handler where it already wraps answers for player links. With no `consent` argument nothing changes, which keeps every test and the relay that builds servers directly as they were. The caller decides who is outside:
+- the app's /mcp asks only for a caller holding the MCP token. The run's token (the window, the extension) and the dock's per-tab tokens (agents the person started in the dock) are the person's own, as FormVis exempts its in-app agent. http.ts puts the bearer on `req.auth`, which the SDK hands to handlers as `extra.authInfo`.
+- `formrec mcp` (stdio) and `formrec mcp --http` are outside by definition. Their `remoteGate` asks the running FormREC that published itself for this data folder (store/server-file.ts `liveServers`, the desktop app first) with `POST /api/mcp/consent/ask` and the run's token, and waits.
+
+The question. The window keeps `GET /api/mcp/consent/stream` open (server-sent events read with fetch, since an EventSource cannot send the token). The dock's existing `Consent` dialog shows each question: "Allow an agent calling itself to make changes in FormREC?", what it asked for (the tool's title and name) and its arguments summarised as FormVis does (strings over 60 characters cut, the whole at most 140). The answers are Deny, Allow once and Always allow any agent named . Esc denies. A question nobody answers is refused after 120 seconds (FormVis's `APPROVAL_SECONDS`). The dialog is a modal `` in the top layer, so it moves nothing.
+
+Remembered choices are in `/mcp/consent.json` (0600 in the 0700 mcp folder): `policy` (ask, allowed, blocked; Preferences, Agents, Outside agents) and `agents`, the names chosen Always. Always for an unnamed agent sets the policy to Allowed, as in FormVis. A policy change settles waiting questions at once: Blocked denies them and Allowed allows them. The name is the MCP client's own `clientInfo.name`, which an agent chooses itself; the dialog says "calling itself" for that reason.
+
+With no window to ask (no FormREC running, or `formrec serve` with no page open), Ask refuses with what to do: open FormREC, or set Outside agents to Allowed. This follows FormVis. It changes 0.10.0's behaviour for `formrec mcp` used with no app open: writes such as formrec_record and formrec_rename now need the app open or Allowed. Reads are unchanged. `tests/mcp-http-server.test.ts` "calls a core tool and a feature tool" now first expects that refusal, then sets Allowed with `writeConsent` and adds the comment as before. Removed from it: `const added = (await client.callTool({ name: 'formrec_comment_add', ... })) as Text` as the first call.
+
+Checked under 4x CPU throttling in Chrome against a build served on port 5642, with one client over HTTP with the MCP token and one over stdio:
+- the dialog's title, what and arguments appeared;
+- Allow once ran the tool, and Deny and Esc refused it;
+- Always wrote the name and the next call was not asked;
+- the stdio call was asked in the same window;
+- a read ran without asking;
+- Blocked refused without asking;
+- the Preferences row followed a change made outside the window.
+
+Layout shift was 0 throughout. Evidence: /home/claude/work/captures/formREC/0.11.0/consent-4x.json.
diff --git a/src/app.ts b/src/app.ts
index 5bfd7a7..a8dea77 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -90,6 +90,8 @@ export function createApp(opts: AppOptions): App {
allowedRoots: opts.codebase ? [opts.codebase.root] : undefined,
},
version(),
+ {},
+ dock.consent.gate(async (bearer) => bearer !== undefined && bearer === (await mcpToken(opts.dataDir))),
),
tokens: async () => [await mcpToken(opts.dataDir), opts.token, ...dock.tabTokens()],
allowedOrigins: origin,
diff --git a/src/dock/index.ts b/src/dock/index.ts
index 6ea7d0e..e582fe2 100644
--- a/src/dock/index.ts
+++ b/src/dock/index.ts
@@ -4,6 +4,7 @@ import path from 'node:path'
import type { Duplex } from 'node:stream'
import { z } from 'zod'
import { readJsonBody } from '../server/files.js'
+import { CONSENT_CHOICES, ConsentBroker, OUTSIDE_POLICIES, type ConsentEvent } from '../mcp/consent.js'
import { ptyMissing } from './pty.js'
import { AGENT_TABS, childEnv, claudeConfig, locate, programLaunch, programStatus, PROGRAMS, removeFile, removeTabEntry, shellLaunch, tabToken, writeTabEntry, type AgentTab } from './programs.js'
import { originAllowed, TerminalSockets, Tickets } from './socket.js'
@@ -22,6 +23,7 @@ export interface DockServer {
owns(req: IncomingMessage): boolean
upgrade(req: IncomingMessage, socket: Duplex, head: Buffer): void
tabTokens(): string[]
+ consent: ConsentBroker
close(): void
}
@@ -37,6 +39,10 @@ const ClaudeBody = z.object({ ...Size, prompt: z.string().max(100_000).optional(
const AgentBody = z.object({ ...Size, kind: z.enum(AGENT_TABS) }).passthrough()
const SizeBody = z.object({ cols: z.number().int(), rows: z.number().int() }).passthrough()
const ResultBody = z.object({ id: z.unknown().optional(), result: z.unknown().optional() }).passthrough()
+const AskBody = z.object({ agent: z.string().max(200), tool: z.string().min(1).max(120), title: z.string().max(200).optional(), args: z.string().max(400).optional() })
+const AnswerBody = z.object({ id: z.string().min(1).max(80), choice: z.enum(CONSENT_CHOICES) })
+const PolicyBody = z.object({ policy: z.enum(OUTSIDE_POLICIES) })
+const ForgetBody = z.object({ agent: z.string().max(200).optional() })
function sendJson(res: ServerResponse, status: number, body: unknown): void {
res.writeHead(status, { 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'no-store' }).end(JSON.stringify(body))
@@ -66,6 +72,41 @@ export function createDock(o: DockServerOptions): DockServer {
const home = (): string => o.codebase?.root ?? os.homedir()
const tabsDir = (): string => path.join(o.dataDir, 'agent-tabs')
const mcpUrl = (): string => `http://127.0.0.1:${o.port() ?? 8770}/mcp`
+ const consent = new ConsentBroker(o.dataDir)
+ const streams = new Set()
+
+ const consentStream = async (req: IncomingMessage, res: ServerResponse): Promise => {
+ res.writeHead(200, { 'Content-Type': 'text/event-stream; charset=utf-8', 'Cache-Control': 'no-store', 'X-Accel-Buffering': 'no' })
+ const send = (event: ConsentEvent): void => { if (!res.writableEnded) res.write(`data: ${JSON.stringify(event)}\n\n`) }
+ send({ type: 'state', state: await consent.state() })
+ for (const question of consent.questions()) send({ type: 'add', question })
+ const off = consent.watch(send)
+ const beat = setInterval(() => { if (!res.writableEnded) res.write(': keep\n\n') }, 25_000)
+ beat.unref()
+ streams.add(res)
+ req.on('close', () => { off(); clearInterval(beat); streams.delete(res) })
+ }
+
+ const consentRoutes = async (req: IncomingMessage, res: ServerResponse, b: string | undefined, method: string): Promise => {
+ if (b === undefined && method === 'GET') { sendJson(res, 200, { ...(await consent.state()), questions: consent.questions(), watching: consent.watching() }); return true }
+ if (b === 'stream' && method === 'GET') { await consentStream(req, res); return true }
+ if (method !== 'POST') return false
+ if (b === 'ask') {
+ const a = await body(req, AskBody)
+ const verdict = await consent.ask({ agent: a.agent, tool: a.tool, title: a.title, args: a.args })
+ sendJson(res, 200, { verdict })
+ return true
+ }
+ if (b === 'answer') {
+ const a = await body(req, AnswerBody)
+ if (!(await consent.answer(a.id, a.choice))) throw new Refusal(404, 'no-question', 'That question was already answered or has expired.')
+ sendJson(res, 200, { ok: true })
+ return true
+ }
+ if (b === 'policy') { sendJson(res, 200, await consent.setPolicy((await body(req, PolicyBody)).policy)); return true }
+ if (b === 'forget') { sendJson(res, 200, await consent.forget((await body(req, ForgetBody)).agent)); return true }
+ return false
+ }
const open = (start: () => Session): Session => {
const missing = ptyMissing()
@@ -129,6 +170,7 @@ export function createDock(o: DockServerOptions): DockServer {
sendJson(res, 200, await status())
return true
}
+ if (area === 'mcp' && a === 'consent' && parts.length <= 4) return consentRoutes(req, res, b, method)
if (area === 'mcp' && a === 'bridge' && parts.length === 4) {
if (b === 'questions' && method === 'GET') { sendJson(res, 200, { questions: [] }); return true }
if (b === 'result' && method === 'POST') { await body(req, ResultBody); sendJson(res, 200, { ok: true }); return true }
@@ -174,7 +216,7 @@ export function createDock(o: DockServerOptions): DockServer {
return {
async routes(req, res, parts) {
const area = parts[1]
- if (area !== 'terminal' && area !== 'claude-code' && !(area === 'mcp' && parts[2] === 'bridge')) return false
+ if (area !== 'terminal' && area !== 'claude-code' && !(area === 'mcp' && (parts[2] === 'bridge' || parts[2] === 'consent'))) return false
if (!originAllowed(req.headers.origin)) {
refuse(res, 403, 'refused', 'Only the FormREC window may use the terminals.')
return true
@@ -190,7 +232,10 @@ export function createDock(o: DockServerOptions): DockServer {
owns: (req) => sockets.owns(req),
upgrade: (req, socket, head) => sockets.upgrade(req, socket, head),
tabTokens: () => [...tokens],
+ consent,
close() {
+ for (const res of streams) res.end()
+ streams.clear()
terminals.closeAll()
sockets.close()
},
diff --git a/src/features/ai/engine.ts b/src/features/ai/engine.ts
index 53ff78b..290d767 100644
--- a/src/features/ai/engine.ts
+++ b/src/features/ai/engine.ts
@@ -294,7 +294,7 @@ export class AiEngine {
await atomicWrite(wavFile, await speak(cfg, text, this.deps.fetcher))
engine = cfg.engine
} else {
- engine = await synthesise(text, wavFile)
+ engine = await synthesise(text, wavFile, this.deps.dataDir)
}
// Also an audio track of the recording (when it has tracks and FFmpeg can make it), so every player and export has it.
const rec = await this.recording(id)
diff --git a/src/features/ai/media.ts b/src/features/ai/media.ts
index 934b333..27f27aa 100644
--- a/src/features/ai/media.ts
+++ b/src/features/ai/media.ts
@@ -1,12 +1,8 @@
-/**
- * The external tools the ai feature uses when they are present: ffmpeg for a frame at each step and for scene changes,
- * and a local text-to-speech engine (flite, espeak-ng, espeak, or macOS say) for a synthesised voice-over. Each is found
- * at run time; when one is missing the caller gets a clear message, never a crash. Nothing is downloaded.
- */
import { execFile } from 'node:child_process'
-import { chmod, copyFile, mkdtemp, rm, rename, writeFile } from 'node:fs/promises'
+import { chmod, copyFile, mkdtemp, rm, rename } from 'node:fs/promises'
import os from 'node:os'
import path from 'node:path'
+import { findTts, synthesize } from '../edit/tts.js'
export class ToolMissing extends Error {
readonly status = 424
@@ -27,7 +23,7 @@ const found = new Map>()
export function has(cmd: string): Promise {
let p = found.get(cmd)
if (!p) {
- const probe = cmd === 'say' ? ['-v', '?'] : cmd === 'ffmpeg' ? ['-version'] : ['--version']
+ const probe = cmd === 'ffmpeg' ? ['-version'] : ['--version']
p = run(cmd, probe, 5000).then(() => true, (e: NodeJS.ErrnoException) => e.code !== 'ENOENT')
found.set(cmd, p)
}
@@ -65,31 +61,18 @@ export async function sceneChanges(video: string, threshold = 0.35): Promise {
- for (const engine of TTS_ENGINES) if (await has(engine)) return engine
- return undefined
-}
-
-/** Speak the script into a WAV file with the first local engine found. Returns the engine's name. */
-export async function synthesise(script: string, file: string): Promise {
- const engine = await ttsEngine()
- if (!engine) throw new ToolMissing('A voice-over needs a local text-to-speech engine (flite, espeak-ng, espeak, or say on a Mac). None is installed.')
+export async function synthesise(script: string, file: string, dataDir: string): Promise {
+ const engine = await findTts(process.env, dataDir)
+ if (!engine) throw new ToolMissing('A voice-over needs the built-in voice. Set it up once in Settings, Voice (Kokoro, offline after setup), or name your own voice service in Settings, AI.')
const dir = await mkdtemp(path.join(os.tmpdir(), 'formrec-tts-'))
try {
- const text = path.join(dir, 'script.txt')
- await writeFile(text, script, { mode: 0o600 })
const wav = path.join(dir, 'voice.wav')
- if (engine === 'flite') await run('flite', ['-f', text, '-o', wav], 300_000)
- else if (engine === 'say') await run('say', ['-f', text, '-o', wav, '--data-format=LEI16@22050'], 300_000)
- else await run(engine, ['-f', text, '-w', wav], 300_000)
- // The temporary folder may be on another disk: copy, then swap in atomically beside the target.
+ await synthesize(engine, script, wav)
const near = `${file}.tmp`
await copyFile(wav, near)
await chmod(near, 0o600)
await rename(near, file)
- return engine
+ return engine.name
} finally {
await rm(dir, { recursive: true, force: true })
}
diff --git a/src/features/edit/index.ts b/src/features/edit/index.ts
index 19d238c..1908fdc 100644
--- a/src/features/edit/index.ts
+++ b/src/features/edit/index.ts
@@ -84,9 +84,9 @@ const CleanupSchema = z.object({
})
const SendSchema = z.object({ to: z.enum(['formencoder', 'formwav']) })
-export async function editStatus() {
+export async function editStatus(dataDir?: string) {
const info = await ffmpegInfo()
- const tts = await findTts()
+ const tts = await findTts(process.env, dataDir)
return { ffmpeg: info, tts: tts ? { name: tts.name } : null }
}
@@ -97,7 +97,7 @@ function routes(ctx: FeatureContext) {
const method = req.method ?? 'GET'
const [, , id, sub, extra] = parts
try {
- if (id === '-' && sub === 'status' && method === 'GET') { sendJson(res, 200, await editStatus()); return true }
+ if (id === '-' && sub === 'status' && method === 'GET') { sendJson(res, 200, await editStatus(ctx.library.dataDir)); return true }
if (id === '-' && sub === 'jobs' && extra && method === 'GET') {
const job = svc.job(extra)
sendJson(res, job ? 200 : 404, job ?? { error: `no export ${extra}` })
diff --git a/src/features/edit/media.ts b/src/features/edit/media.ts
index de1a12a..65384c1 100644
--- a/src/features/edit/media.ts
+++ b/src/features/edit/media.ts
@@ -14,6 +14,7 @@ import { avatarForExport, bubbleBox, DEFAULT_BUBBLE, type AnnotateRender, type B
import type { Span } from '../../studio/meta.js'
import { frameLayer } from './bubble-frame.js'
import type { EditState, Segment } from './schema.js'
+import { exportVoiceover, LOUDNESS, type ExportVoiceover } from '../voiceover/store.js'
export class FfmpegMissing extends Error {
constructor(bin: string) {
@@ -116,6 +117,7 @@ export interface SourceSpec {
/** The camera goes under the main picture, full width (the stacked layout of a vertical clip). */
stack?: boolean
audios: { file: string; offsetMs: number }[]
+ voice?: ExportVoiceover
}
/**
@@ -136,6 +138,8 @@ async function picture(file: string, offsetMs: number): Promise {
*/
export async function recordingSource(library: Library, rec: Recording, bubble: Bubble = DEFAULT_BUBBLE, key = rec.id, layout: Layout = 'bubble', withAvatar = true): Promise {
const spec = await baseSource(library, rec, bubble, key, layout)
+ const voice = await exportVoiceover(library, rec).catch(() => undefined)
+ if (voice) spec.voice = voice
if (!withAvatar || layout !== 'bubble' || spec.bubble || bubble.hidden || !spec.video) return spec
const avatar = await avatarForExport(library, rec)
if (!avatar) return spec
@@ -243,6 +247,18 @@ export function anyOf(spans: readonly Span[]): string {
return spans.map((s) => `between(t,${sec(s.startMs)},${sec(s.endMs)})`).join('+')
}
+export const DUCK_ATTACK_MS = 150
+export const DUCK_RELEASE_MS = 400
+
+export function duckEnvelope(voice: Pick): string {
+ const spans = voice.lines.filter((l) => l.durationMs > 0)
+ if (spans.length === 0 || voice.duckLevel >= 1) return ''
+ const a = DUCK_ATTACK_MS / 1000
+ const r = DUCK_RELEASE_MS / 1000
+ const k = spans.map((l) => `clip(min((t-${sec(l.offsetMs)}+${a})/${a},(${sec(l.offsetMs + l.durationMs)}+${r}-t)/${r}),0,1)`)
+ return `1-${(1 - Math.max(0, voice.duckLevel)).toFixed(3)}*min(1,${k.join('+')})`
+}
+
/**
* annotate's filter graph (render.ts filterScript, which reads [0:v] and its overlay [1:v] and writes [annotated]) as
* steps of a larger graph: the picture comes from `from`, the overlay from input `overlayInput`, the result goes to
@@ -420,7 +436,21 @@ export function buildGraph(g: Graph): { args: string[]; notes: string[]; totalMs
if (g.rnnoiseModel && !/['\\,;[\]]/.test(g.rnnoiseModel)) denoise += `,arnndn=m='${g.rnnoiseModel}'`
else { denoise += ',afftdn=nr=97:nf=-25:tn=1:nt=w'; notes.push('Apply noise filter used FFT noise reduction; set FORMREC_RNNOISE_MODEL to an RNNoise model file for the voice model.') }
}
- f.push(`${mixed}${denoise},apad=whole_dur=${sec(D)},atrim=duration=${sec(D)},asetpts=PTS-STARTPTS${n > 1 ? `,asplit=${n}` : ''}${Array.from({ length: n }, (_, j) => `[${id}x${j}]`).join('')}`)
+ let bed = `${mixed}${denoise}`
+ const voice = g.bare ? undefined : src.voice
+ if (voice && voice.lines.length > 0) {
+ f.push(`${bed}[${id}bed]`)
+ const said: string[] = []
+ for (const [j, l] of voice.lines.entries()) {
+ const i = input(l.file)
+ f.push(`[${i}:a]${voice.loudness ? `${LOUDNESS},` : ''}${norm},adelay=${Math.round(Math.max(0, l.offsetMs))}:all=1[${id}vo${j}]`)
+ said.push(`[${id}vo${j}]`)
+ }
+ const envelope = voice.duck ? duckEnvelope(voice) : ''
+ f.push(`[${id}bed]${envelope ? `volume='${envelope}':eval=frame` : 'anull'}[${id}bd]`)
+ bed = `[${id}bd]${said.join('')}amix=inputs=${said.length + 1}:normalize=0:duration=longest`
+ }
+ f.push(`${bed},apad=whole_dur=${sec(D)},atrim=duration=${sec(D)},asetpts=PTS-STARTPTS${n > 1 ? `,asplit=${n}` : ''}${Array.from({ length: n }, (_, j) => `[${id}x${j}]`).join('')}`)
for (let j = 0; j < n; j++) a.push(`${id}x${j}`)
}
labels.set(key, { v, a })
diff --git a/src/features/edit/renditions.ts b/src/features/edit/renditions.ts
index bc30678..ea51daf 100644
--- a/src/features/edit/renditions.ts
+++ b/src/features/edit/renditions.ts
@@ -19,6 +19,7 @@ import { z } from 'zod'
import { EditError, isOriginal } from './ops.js'
import { FfmpegMissing, ffmpegInfo, ladderFor, masterHeight, probe, rungArgs, rungFile, runFfmpeg, RenderError, LADDER } from './media.js'
import { currentState, type EditService } from './service.js'
+import { exportVoiceover } from '../voiceover/store.js'
export const RENDITIONS_FILE = 'share-renditions.json'
const PROGRESS_FILE = '.share-renditions-progress.json'
@@ -122,6 +123,9 @@ async function fingerprint(svc: EditService, id: string, best: boolean): Promise
if (state.music) files.add(state.music.file)
for (const t of state.tts) files.add(t.file)
for (const s of state.segments) if (s.source === 'file') files.add(s.file)
+ const voice = await exportVoiceover(svc.library, rec).catch(() => undefined)
+ hash.update(`|voiceover:${JSON.stringify(voice ? { ...voice, lines: voice.lines.map((l) => ({ ...l, file: path.basename(l.file) })) } : null)}`)
+ for (const l of voice?.lines ?? []) files.add(path.basename(l.file))
for (const name of [...files].sort()) {
const s = await stat(path.join(folder, name)).catch(() => undefined)
hash.update(`|${name}:${s?.size ?? 0}:${Math.round(s?.mtimeMs ?? 0)}`)
@@ -157,6 +161,7 @@ export async function makeRenditions(svc: EditService, id: string, opts: Renditi
&& isOriginal(state.segments, rec.durationMs)
&& state.background.kind === 'none' && !state.music && state.noise === 'off' && state.tts.length === 0
&& !(await exists(path.join(folder, 'annotate.json')))
+ && !(await exportVoiceover(svc.library, rec).catch(() => undefined))
let master: string
if (plain) master = picture.file
else {
diff --git a/src/features/edit/service.ts b/src/features/edit/service.ts
index f73b7b3..7b04fa0 100644
--- a/src/features/edit/service.ts
+++ b/src/features/edit/service.ts
@@ -577,8 +577,8 @@ export class EditService {
/** Replace a span's speech with a synthesised voice (R2-10). Times are on the recording's own timeline. */
async speak(id: string, input: { startMs: number; endMs: number; text: string }): Promise {
const rec = await this.recording(id)
- const engine = await findTts()
- if (!engine) throw new EditError('No text-to-speech program was found on this computer. Install flite or espeak-ng (or set FORMREC_TTS), then try again.')
+ const engine = await findTts(process.env, this.library.dataDir)
+ if (!engine) throw new EditError('No voice is ready. Set up the built-in voice (Kokoro) in Settings, Voice, or set FORMREC_TTS to a program, then try again.')
const startMs = Math.max(0, Math.min(input.startMs, input.endMs))
const endMs = Math.min(rec.durationMs, Math.max(input.startMs, input.endMs))
if (endMs - startMs < 200) throw new EditError('select at least a fifth of a second to replace')
diff --git a/src/features/edit/tts.ts b/src/features/edit/tts.ts
index 54e58ac..529261b 100644
--- a/src/features/edit/tts.ts
+++ b/src/features/edit/tts.ts
@@ -1,12 +1,10 @@
-/**
- * Text to speech on this computer (R2-10): flite, espeak-ng or espeak when one is installed, or the program in
- * FORMREC_TTS (called like flite: -t -o , or like espeak when its name contains "espeak"). The voice is
- * the engine's own synthetic voice, not the speaker's, and the editor says so. Nothing is downloaded.
- */
import { spawn } from 'node:child_process'
+import { writeFile } from 'node:fs/promises'
import path from 'node:path'
+import { kokoro } from '../voiceover/kokoro.js'
+import { readVoiceSettings } from '../voiceover/store.js'
-export interface TtsEngine { name: string; bin: string; style: 'flite' | 'espeak' }
+export interface TtsEngine { name: string; bin: string; style: 'flite' | 'espeak' | 'kokoro'; dataDir?: string; voice?: string; speed?: number }
function runs(bin: string, args: string[]): Promise {
return new Promise((resolve) => {
@@ -17,21 +15,26 @@ function runs(bin: string, args: string[]): Promise {
})
}
-export async function findTts(env: NodeJS.ProcessEnv = process.env): Promise {
+export async function findTts(env: NodeJS.ProcessEnv = process.env, dataDir?: string): Promise {
const custom = env.FORMREC_TTS?.trim()
if (custom) {
const style = /espeak/i.test(path.basename(custom)) ? 'espeak' : 'flite'
return (await runs(custom, ['--version'])) ? { name: path.basename(custom), bin: custom, style } : undefined
}
- for (const [bin, style] of [['flite', 'flite'], ['espeak-ng', 'espeak'], ['espeak', 'espeak']] as const) {
- if (await runs(bin, ['--version'])) return { name: bin, bin, style }
- }
- return undefined
+ if (!dataDir) return undefined
+ const engine = kokoro(dataDir)
+ if (!(await engine.status()).ready) return undefined
+ const settings = await readVoiceSettings(dataDir)
+ return { name: `kokoro ${settings.voice}`, bin: '', style: 'kokoro', dataDir, voice: settings.voice, speed: settings.speed }
}
-/** Speaks text into a WAV file. The text is one argument, never a shell string. */
-export function synthesize(engine: TtsEngine, text: string, out: string): Promise {
+export async function synthesize(engine: TtsEngine, text: string, out: string): Promise {
const clean = text.replace(/[\u0000-\u001f]+/g, ' ').trim()
+ if (engine.style === 'kokoro') {
+ const speech = await kokoro(engine.dataDir!).speak(clean, { voice: engine.voice, speed: engine.speed })
+ await writeFile(out, speech.audio, { mode: 0o600 })
+ return
+ }
const args = engine.style === 'flite' ? ['-t', clean, '-o', out] : ['-w', out, '--', clean]
return new Promise((resolve, reject) => {
const child = spawn(engine.bin, args, { stdio: ['ignore', 'ignore', 'pipe'] })
diff --git a/src/features/index.ts b/src/features/index.ts
index 916cfd6..e58ab64 100644
--- a/src/features/index.ts
+++ b/src/features/index.ts
@@ -36,6 +36,7 @@ import { feature as keycast } from './keycast/index.js'
import { feature as redact } from './redact/index.js'
import { feature as clips } from './clips/index.js'
import { feature as variants } from './variants/index.js'
+import { feature as voiceover } from './voiceover/index.js'
export const FEATURES: readonly Feature[] = [
studio,
@@ -71,6 +72,7 @@ export const FEATURES: readonly Feature[] = [
redact,
clips,
variants,
+ voiceover,
]
/** The per-recording files features add to the media route, as one test. */
diff --git a/src/features/voiceover/index.ts b/src/features/voiceover/index.ts
new file mode 100644
index 0000000..7b457c4
--- /dev/null
+++ b/src/features/voiceover/index.ts
@@ -0,0 +1,157 @@
+import type { IncomingMessage, ServerResponse } from 'node:http'
+import { z } from 'zod'
+import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
+import { reply, READ_ONLY, WRITES } from '../../mcp/reply.js'
+import { readJsonBody } from '../../server/files.js'
+import { BadId, type Library } from '../../store/library.js'
+import type { Feature, FeatureContext, FeatureMcpDeps } from '../types.js'
+import { queueFor } from '../share/renditions.js'
+import { getShare, listShares } from '../share/store.js'
+import { DEFAULT_VOICE, kokoro, MAX_SPEED, MIN_SPEED, VoiceError } from './kokoro.js'
+import { change, ChangeSchema, generate, LINE_FILE, MAX_NOTES, MAX_TEXT, readVoiceSettings, removeAll, SettingsPatchSchema, stateOf, voiceoverVtt, writeVoiceSettings, type VoiceoverState } from './store.js'
+
+const REC = /^[a-z0-9][a-z0-9-]{0,80}$/
+const STEP = /^[A-Za-z0-9][A-Za-z0-9._-]{0,80}$/
+const GenerateSchema = z.object({ stepId: z.string().regex(STEP).optional(), all: z.boolean().optional() })
+const PreviewSchema = z.object({ text: z.string().min(1).max(400), voice: z.string().max(40).optional(), speed: z.number().min(MIN_SPEED).max(MAX_SPEED).optional() })
+
+function send(res: ServerResponse, status: number, body: unknown): true {
+ res.writeHead(status, { 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'no-store' }).end(JSON.stringify(body))
+ return true
+}
+
+export async function engineState(dataDir: string) {
+ return { engine: await kokoro(dataDir).status(), settings: await readVoiceSettings(dataDir) }
+}
+
+async function shared(library: Library, id: string, state: VoiceoverState): Promise {
+ void getShare(library, id).then((share) => { if (share) queueFor(library).enqueue(id, { changed: true }) }, () => undefined)
+ return state
+}
+
+function reshareAll(library: Library): void {
+ void listShares(library).then((all) => { for (const { recordingId } of all) queueFor(library).enqueue(recordingId, { delayMs: 3000 }) }, () => undefined)
+}
+
+function vtt(res: ServerResponse, body: string): true {
+ res.writeHead(200, { 'Content-Type': 'text/vtt; charset=utf-8', 'Cache-Control': 'no-store' }).end(body)
+ return true
+}
+
+function routes(ctx: FeatureContext) {
+ const engine = kokoro(ctx.dataDir)
+ return async (req: IncomingMessage, res: ServerResponse, parts: string[]): Promise => {
+ if (parts[1] !== 'voiceover') return false
+ const id = parts[2]
+ const sub = parts[3]
+ const method = req.method ?? 'GET'
+ try {
+ if (id === '-') {
+ if (sub === 'status' && method === 'GET' && parts.length === 4) return send(res, 200, await engineState(ctx.dataDir))
+ if (sub === 'settings' && method === 'PUT' && parts.length === 4) {
+ const patch = SettingsPatchSchema.parse(await readJsonBody(req, 4096))
+ await writeVoiceSettings(ctx.dataDir, patch)
+ if (patch.duck !== undefined || patch.duckLevel !== undefined || patch.loudness !== undefined) reshareAll(ctx.library)
+ return send(res, 200, await engineState(ctx.dataDir))
+ }
+ if (sub === 'setup' && method === 'POST' && parts.length === 4) { engine.startSetup(); return send(res, 202, await engineState(ctx.dataDir)) }
+ if (sub === 'setup' && method === 'DELETE' && parts.length === 4) { await engine.remove(); return send(res, 200, await engineState(ctx.dataDir)) }
+ if (sub === 'cancel' && method === 'POST' && parts.length === 4) { engine.cancelSetup(); return send(res, 200, await engineState(ctx.dataDir)) }
+ if (sub === 'voices' && method === 'GET' && parts.length === 4) return send(res, 200, { voices: await engine.voices(), default: DEFAULT_VOICE })
+ if (sub === 'preview' && method === 'POST' && parts.length === 4) {
+ const body = PreviewSchema.parse(await readJsonBody(req, 4096))
+ const settings = await readVoiceSettings(ctx.dataDir)
+ const speech = await engine.speak(body.text, { voice: body.voice ?? settings.voice, speed: body.speed ?? settings.speed })
+ res.writeHead(200, { 'Content-Type': 'audio/wav', 'Content-Length': String(speech.audio.length), 'Cache-Control': 'no-store' }).end(speech.audio)
+ return true
+ }
+ return false
+ }
+ if (!id || !REC.test(id)) return false
+ if (!(await ctx.library.exists(id))) return send(res, 404, { error: 'no such recording' })
+ if (parts.length === 3 && method === 'GET') return send(res, 200, await stateOf(ctx.library, id))
+ if (parts.length === 3 && method === 'PUT') return send(res, 200, await shared(ctx.library, id, await change(ctx.library, id, ChangeSchema.parse(await readJsonBody(req, 512 * 1024)))))
+ if (parts.length === 3 && method === 'DELETE') return send(res, 200, await shared(ctx.library, id, await removeAll(ctx.library, id)))
+ if (sub === 'generate' && parts.length === 4 && method === 'POST') return send(res, 200, await shared(ctx.library, id, await generate(ctx.library, id, GenerateSchema.parse(await readJsonBody(req, 4096).catch(() => ({}))))))
+ if (sub === 'captions.vtt' && parts.length === 4 && method === 'GET') return vtt(res, voiceoverVtt(await stateOf(ctx.library, id)))
+ return false
+ } catch (error) {
+ if (error instanceof z.ZodError) return send(res, 400, { error: error.issues.map((i) => `${i.path.join('.') || 'value'}: ${i.message}`).join('; ') })
+ if (error instanceof BadId) return send(res, 400, { error: error.message })
+ if (error instanceof VoiceError) return send(res, error.status, { error: error.message })
+ throw error
+ }
+ }
+}
+
+async function voicesReply(dataDir: string) {
+ const status = await kokoro(dataDir).status()
+ const settings = await readVoiceSettings(dataDir)
+ if (!status.ready) {
+ const reason = !status.platform.supported ? status.platform.note
+ : status.job?.state === 'running' ? 'The built-in voice is being set up in FormREC right now. Retry when the setup has finished.'
+ : 'The built-in voice is not set up yet. The person sets it up once in FormREC, in Settings, Voice.'
+ return { engine: 'builtin', ready: false, reason, settings }
+ }
+ const voices = await kokoro(dataDir).voices()
+ return { engine: 'builtin', ready: true, settings, voices: voices.map((v) => ({ id: v.id, name: v.name, language: v.language, group: v.group })) }
+}
+
+function voiceTools(server: McpServer, deps: FeatureMcpDeps): void {
+ server.registerTool('formrec_list_voices', {
+ title: 'Voice-over voices',
+ description: 'Reads the built-in voice (Kokoro, offline on this computer): whether it is ready, why not when it is not, the default voice and speed from Settings, Voice, and its voices with id, name, language and group when it is ready.',
+ inputSchema: {},
+ annotations: READ_ONLY,
+ }, () => reply(() => voicesReply(deps.dataDir)))
+
+ server.registerTool('formrec_voiceover', {
+ title: 'Voice-over for a recording',
+ description: 'Reads or makes the spoken voice-over of a recording with the built-in voice (Kokoro). Each line starts at its chapter (its say text, or text given here) and is mixed into the player, exports and share renditions, with the recording\'s own sound ducked under it (Settings, Voice). Give only the recording to read its lines. text with stepId changes that line; text with atMs adds a line; notes turns speaker notes or a script into lines (a row starting m:ss lands at that time, other paragraphs go one per chapter in order); generate speaks every missing or changed line (all: true for every line, or stepId for one); voice and speed (0.5 to 2) set this recording\'s voice, or with stepId only that line\'s (null goes back to the recording\'s); on turns the voice-over on or off; remove clears one line; captions: true adds the spoken lines as WebVTT on the recording\'s timeline.',
+ inputSchema: {
+ recording: z.string().regex(REC).describe('the recording (from formrec_list)'),
+ stepId: z.string().regex(STEP).optional().describe('a line, as this tool lists it (a chapter step id)'),
+ text: z.string().min(1).max(MAX_TEXT).optional().describe('the words to speak'),
+ atMs: z.number().int().min(0).optional().describe('where a new line starts, in ms on the recording'),
+ voice: z.string().max(40).nullable().optional().describe('a voice id from formrec_list_voices; with stepId, that line only'),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).nullable().optional().describe('0.5 to 2; with stepId, that line only'),
+ notes: z.string().min(1).max(MAX_NOTES).optional().describe('speaker notes or a script to make lines from'),
+ on: z.boolean().optional(),
+ generate: z.boolean().optional().describe('speak the lines now'),
+ all: z.boolean().optional().describe('with generate, speak every line again'),
+ remove: z.string().regex(STEP).optional().describe('a line to clear'),
+ captions: z.boolean().optional().describe('add the spoken lines as WebVTT'),
+ },
+ annotations: WRITES,
+ }, (input) => reply(async () => {
+ const { recording, stepId, text, atMs, voice, speed, notes, on, all, remove } = input
+ if (typeof voice === 'string' && !/^[a-z]{2}_[a-z0-9]{1,30}$/.test(voice)) throw new VoiceError(`There is no built-in voice named ${voice}.`, 422)
+ const line = stepId && (text !== undefined || voice !== undefined || speed !== undefined)
+ ? { stepId, ...(text !== undefined ? { text } : {}), ...(voice !== undefined ? { voice } : {}), ...(speed !== undefined ? { speed } : {}) }
+ : undefined
+ const edits = {
+ ...(on !== undefined ? { on } : {}),
+ ...(!stepId && voice !== undefined ? { voice } : {}),
+ ...(!stepId && speed !== undefined ? { speed } : {}),
+ ...(line ? { lines: [line] } : {}),
+ ...(text !== undefined && !stepId && atMs !== undefined ? { add: { text, atMs } } : {}),
+ ...(notes !== undefined ? { fromNotes: notes } : {}),
+ ...(remove ? { remove } : {}),
+ }
+ let state = Object.keys(edits).length > 0 ? await change(deps.library, recording, edits) : await stateOf(deps.library, recording)
+ if (input.generate) state = await generate(deps.library, recording, { ...(stepId ? { stepId } : {}), ...(all ? { all } : {}) })
+ if (Object.keys(edits).length > 0 || input.generate) await shared(deps.library, recording, state)
+ return {
+ ...state,
+ lines: state.lines.map(({ cues, file, ...l }) => ({ ...l, made: Boolean(file), sentences: cues.length })),
+ ...(input.captions ? { captions: voiceoverVtt(state) } : {}),
+ }
+ }))
+}
+
+export const feature: Feature = {
+ id: 'voiceover',
+ routes,
+ files: LINE_FILE,
+ mcp: voiceTools,
+}
diff --git a/src/features/voiceover/kokoro.ts b/src/features/voiceover/kokoro.ts
new file mode 100644
index 0000000..00ba8ce
--- /dev/null
+++ b/src/features/voiceover/kokoro.ts
@@ -0,0 +1,502 @@
+import { spawn } from 'node:child_process'
+import { createHash } from 'node:crypto'
+import { createReadStream, createWriteStream, existsSync } from 'node:fs'
+import { mkdir, readdir, readFile, rename, rm, stat, lstat } from 'node:fs/promises'
+import os from 'node:os'
+import path from 'node:path'
+import { readWav } from '../ai/avatar.js'
+
+export const PACKAGE = 'kokoro-onnx==0.6.1'
+export const RELEASE = 'https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.1/'
+export const MODELS: Readonly> = {
+ 'kokoro-v1.0.onnx': { sha256: 'beb0d1848dee9a49da392cc3df26958d46cfa35d321edf434f52949153f0df3a', size: 325505369 },
+ 'voices-v1.0.bin': { sha256: 'bca610b8308e8d99f32e6fe4197e7ec01679264efed0cac9140fe9c29f1fbf7d', size: 28214398 },
+}
+export const DEFAULT_VOICE = 'af_heart'
+export const DEFAULT_SPEED = 1
+export const MIN_SPEED = 0.5
+export const MAX_SPEED = 2
+export const PAUSE = 0.12
+const PYTHON_RANGE: [[number, number], [number, number]] = [[3, 10], [3, 13]]
+const SPEAK_TIMEOUT = 600_000
+const PIP_TIMEOUT = 1_800_000
+const VENV_TIMEOUT = 300_000
+
+export const LANGUAGES: Readonly> = {
+ a: { code: 'en-us', group: 'American English' },
+ b: { code: 'en-gb', group: 'British English' },
+ e: { code: 'es', group: 'Spanish' },
+ f: { code: 'fr-fr', group: 'French' },
+ h: { code: 'hi', group: 'Hindi' },
+ i: { code: 'it', group: 'Italian' },
+ j: { code: 'ja', group: 'Japanese' },
+ p: { code: 'pt-br', group: 'Brazilian Portuguese' },
+ z: { code: 'cmn', group: 'Mandarin Chinese' },
+}
+const ACCEPTED = new Set(Object.values(LANGUAGES).map((l) => l.code))
+const FIRST_GROUPS = ['American English', 'British English']
+
+const PROBE = "import sys;print('%d %d %s'%(sys.version_info[0],sys.version_info[1],sys.executable))"
+
+const LIST_VOICES = `
+import json,sys
+import numpy as np
+with np.load(sys.argv[1],allow_pickle=False) as data:
+ print(json.dumps(sorted(data.files)))
+`
+
+const WORKER = `
+import json,sys,wave
+import numpy as np
+from kokoro_onnx import Kokoro
+args=json.load(sys.stdin)
+engine=Kokoro(args["model"],args["voices"])
+parts=[];cues=[];at=0;rate=24000
+for text in args["sentences"]:
+ audio,rate=engine.create(text,voice=args["voice"],speed=args["speed"],lang=args["language"])
+ audio=np.asarray(audio,dtype=np.float32).reshape(-1)
+ if parts:
+ gap=np.zeros(int(round(args["pause"]*rate)),dtype=np.float32)
+ parts.append(gap);at+=len(gap)
+ cues.append({"start":round(at/rate,3),"end":round((at+len(audio))/rate,3),"text":text})
+ parts.append(audio);at+=len(audio)
+sound=np.concatenate(parts) if parts else np.zeros(0,dtype=np.float32)
+with wave.open(args["output"],"wb") as out:
+ out.setnchannels(1)
+ out.setsampwidth(2)
+ out.setframerate(int(rate))
+ out.writeframes(np.round(np.clip(sound,-1,1)*32767).astype(" (text ?? '').trim().split(/\r?\n/).map((l) => l.trim()).filter(Boolean).at(-1)?.slice(0, 160) ?? ''
+
+function workerEnv(): NodeJS.ProcessEnv {
+ const env = { ...process.env }
+ for (const name of ['PYTHONPATH', 'PYTHONHOME', 'PYTHONSTARTUP', 'PYTHONEXECUTABLE', 'VIRTUAL_ENV', '__PYVENV_LAUNCHER__']) delete env[name]
+ env.PYTHONNOUSERSITE = '1'
+ env.PYTHONIOENCODING = 'utf-8'
+ return env
+}
+
+interface Ran { code: number | null; stdout: string; stderr: string }
+
+function run(command: string, args: string[], opts: { input?: string; timeoutMs: number; signal?: AbortSignal }): Promise {
+ return new Promise((resolve, reject) => {
+ let child
+ try {
+ child = spawn(command, args, { env: workerEnv(), stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true })
+ } catch (error) {
+ reject(error)
+ return
+ }
+ let stdout = ''
+ let stderr = ''
+ child.stdout.on('data', (b: Buffer) => { stdout = (stdout + b.toString('utf8')).slice(-200_000) })
+ child.stderr.on('data', (b: Buffer) => { stderr = (stderr + b.toString('utf8')).slice(-20_000) })
+ const timer = setTimeout(() => child.kill('SIGKILL'), opts.timeoutMs)
+ const abort = (): void => { child.kill('SIGKILL') }
+ opts.signal?.addEventListener('abort', abort, { once: true })
+ child.on('error', (error) => { clearTimeout(timer); opts.signal?.removeEventListener('abort', abort); reject(error) })
+ child.on('close', (code) => { clearTimeout(timer); opts.signal?.removeEventListener('abort', abort); resolve({ code, stdout, stderr }) })
+ child.stdin.on('error', () => undefined)
+ child.stdin.end(opts.input ?? '')
+ })
+}
+
+function pythonCandidates(): string[][] {
+ const found: string[][] = []
+ const override = process.env.FORMREC_VOICE_PYTHON?.trim()
+ if (override) return [[override]]
+ if (process.platform === 'darwin') {
+ for (const minor of [12, 13, 11, 10]) found.push([`/Library/Frameworks/Python.framework/Versions/3.${minor}/bin/python3`])
+ found.push(['/opt/homebrew/bin/python3'], ['/usr/local/bin/python3'])
+ }
+ found.push(['python3'], ['python'])
+ if (process.platform === 'win32') found.push(['py', '-3'])
+ return found
+}
+
+export function platformSupport(platform = process.platform, arch = process.arch): { supported: boolean; note: string } {
+ if (platform === 'linux' && !['x64', 'arm64'].includes(arch)) return { supported: false, note: `The built-in voice runs on 64-bit computers; this one is ${arch}. Use your own voice service in Settings, AI instead.` }
+ if (platform === 'win32' && arch !== 'x64') return { supported: false, note: 'On Windows the built-in voice needs a 64-bit Intel or AMD computer (the ONNX Runtime it uses has no Windows on Arm build). Use your own voice service in Settings, AI instead.' }
+ if (!['darwin', 'linux', 'win32'].includes(platform)) return { supported: false, note: `The built-in voice runs on macOS, Windows and Linux, not ${platform}.` }
+ return { supported: true, note: 'Needs Python 3.10 to 3.13 on this computer for its one-time setup. Runs offline after that.' }
+}
+
+export class KokoroVoice {
+ private job: SetupJob | null = null
+ private cancel: AbortController | null = null
+ private python: string | null | undefined
+ private runtimeProbe = new Map()
+ private voiceCache: { stamp: string; list: Voice[] } | null = null
+
+ constructor(readonly dataDir: string) {}
+
+ folder(): string { return path.join(this.dataDir, 'voice') }
+ runtimeDir(): string { return path.join(this.folder(), 'runtime') }
+ modelsDir(): string { return path.join(this.folder(), 'models') }
+
+ runtimePython(): string {
+ const override = process.env.FORMREC_VOICE_PYTHON?.trim()
+ if (override && process.env.FORMREC_VOICE_PYTHON_READY === '1') return override
+ return path.join(this.runtimeDir(), process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python')
+ }
+
+ private running(): boolean { return this.job?.state === 'running' }
+
+ private async versionOf(command: string[]): Promise {
+ try {
+ const done = await run(command[0]!, [...command.slice(1), '-c', PROBE], { timeoutMs: 20_000 })
+ if (done.code !== 0) return null
+ const [major, minor, ...rest] = lastLine(done.stdout).split(' ')
+ const v: [number, number] = [Number(major), Number(minor)]
+ const lo = PYTHON_RANGE[0]
+ const hi = PYTHON_RANGE[1]
+ const inRange = (v[0] > lo[0] || (v[0] === lo[0] && v[1] >= lo[1])) && (v[0] < hi[0] || (v[0] === hi[0] && v[1] <= hi[1]))
+ return inRange ? rest.join(' ') || null : null
+ } catch {
+ return null
+ }
+ }
+
+ async findPython(fresh = false): Promise {
+ if (!fresh && this.python !== undefined) return this.python
+ let found: string | null = null
+ for (const candidate of pythonCandidates()) {
+ found = await this.versionOf(candidate)
+ if (found) break
+ }
+ this.python = found
+ return found
+ }
+
+ private async runtimeWorks(setup = false): Promise {
+ const python = this.runtimePython()
+ if (!existsSync(python)) return false
+ const known = this.runtimeProbe.get(python)
+ if (known !== undefined) return known
+ if (this.running() && !setup) return false
+ let works = false
+ try {
+ works = (await run(python, ['-c', 'import kokoro_onnx'], { timeoutMs: 120_000 })).code === 0
+ } catch {
+ works = false
+ }
+ this.runtimeProbe.set(python, works)
+ return works
+ }
+
+ async modelReady(): Promise {
+ for (const [name, { size }] of Object.entries(MODELS)) {
+ const s = await stat(path.join(this.modelsDir(), name)).catch(() => undefined)
+ if (!s?.isFile() || s.size !== size) return false
+ }
+ return true
+ }
+
+ private forget(): void {
+ this.runtimeProbe.clear()
+ this.voiceCache = null
+ }
+
+ private async size(dir: string): Promise {
+ let total = 0
+ const entries = await readdir(dir, { withFileTypes: true }).catch(() => [])
+ for (const e of entries) {
+ const full = path.join(dir, e.name)
+ if (e.isDirectory()) total += await this.size(full)
+ else total += (await lstat(full).catch(() => undefined))?.size ?? 0
+ }
+ return total
+ }
+
+ async status(): Promise {
+ const runtime = await this.runtimeWorks()
+ const model = await this.modelReady()
+ return {
+ ready: runtime && model,
+ runtime,
+ model,
+ python: await this.findPython(),
+ folder: this.folder(),
+ bytes: existsSync(this.folder()) ? await this.size(this.folder()) : 0,
+ platform: platformSupport(),
+ job: this.job ? { ...this.job } : null,
+ source: { package: PACKAGE, release: RELEASE, licence: 'Kokoro-82M weights Apache-2.0; kokoro-onnx MIT' },
+ }
+ }
+
+ private set(changes: Partial): void {
+ if (this.job) this.job = { ...this.job, ...changes }
+ }
+
+ private check(): void {
+ if (this.cancel?.signal.aborted) throw new Cancelled()
+ }
+
+ private async step(command: string, args: string[], timeoutMs: number, failure: string): Promise {
+ this.check()
+ let done: Ran
+ try {
+ done = await run(command, args, { timeoutMs, signal: this.cancel?.signal })
+ } catch (error) {
+ throw new VoiceError(`${failure} ${lastLine((error as Error).message)}`.trim())
+ }
+ this.check()
+ if (done.code !== 0) throw new VoiceError(`${failure} ${lastLine(done.stderr || done.stdout)}`.trim())
+ }
+
+ private async download(name: string, before: number): Promise {
+ const { sha256, size } = MODELS[name]!
+ const target = path.join(this.modelsDir(), name)
+ const part = `${target}.part`
+ const hash = createHash('sha256')
+ const have = (await stat(part).catch(() => undefined))?.size ?? 0
+ const partial = have > 0 && have < size
+ let received = 0
+ let keep = true
+ try {
+ const headers: Record = { 'User-Agent': 'FormREC' }
+ if (partial) headers.Range = `bytes=${have}-`
+ const res = await fetch(RELEASE + name, { headers, redirect: 'follow', signal: this.cancel?.signal })
+ if (!res.url.startsWith('https://')) throw new VoiceError('a redirect left HTTPS', 502)
+ if (!res.ok || !res.body) { keep = false; throw new VoiceError(`the server answered ${res.status}`, 502) }
+ const resumed = partial && res.status === 206 && (res.headers.get('content-range') ?? '').startsWith(`bytes ${have}-`)
+ if (resumed) {
+ for await (const chunk of createReadStream(part)) hash.update(chunk as Buffer)
+ received = have
+ this.set({ done: before + received })
+ }
+ const out = createWriteStream(part, { flags: resumed ? 'a' : 'w', mode: 0o600 })
+ try {
+ for await (const chunk of res.body as unknown as AsyncIterable) {
+ this.check()
+ received += chunk.length
+ if (received > size) { keep = false; throw new VoiceError(`The download of ${name} is larger than it should be, so it was not kept.`, 502) }
+ hash.update(chunk)
+ if (!out.write(chunk)) await new Promise((r) => out.once('drain', () => r()))
+ this.set({ done: before + received })
+ }
+ } finally {
+ await new Promise((r) => out.end(() => r()))
+ }
+ if (received !== size || hash.digest('hex') !== sha256) { keep = false; throw new VoiceError(`The download of ${name} did not match its checksum, so it was not kept. Try again.`, 502) }
+ await rename(part, target)
+ keep = false
+ } catch (error) {
+ if (error instanceof VoiceError || error instanceof Cancelled) throw error
+ if (this.cancel?.signal.aborted) throw new Cancelled()
+ throw new VoiceError(`Could not download the voice model (${name}). Check the internet connection and try again; it goes on from where it stopped. ${lastLine((error as Error).message)}`.trim(), 502)
+ } finally {
+ if (!keep) await rm(part, { force: true })
+ }
+ return received
+ }
+
+ private async setup(): Promise {
+ try {
+ this.set({ step: 'python' })
+ const python = await this.findPython(true)
+ if (!python) throw new VoiceError('The built-in voice needs Python 3.10 to 3.13 on this computer, and none was found. Install Python 3.12 from python.org, then try again.')
+ this.check()
+ this.set({ step: 'runtime' })
+ this.forget()
+ if (!(await this.runtimeWorks(true))) {
+ try {
+ if (!existsSync(this.runtimePython())) {
+ await rm(this.runtimeDir(), { recursive: true, force: true })
+ await mkdir(this.folder(), { recursive: true, mode: 0o700 })
+ await this.step(python, ['-m', 'venv', this.runtimeDir()], VENV_TIMEOUT, "Could not make the voice's own Python environment. On Debian or Ubuntu, install the python3-venv package and try again.")
+ }
+ await this.step(this.runtimePython(), ['-m', 'pip', 'install', '--disable-pip-version-check', '--no-input', PACKAGE], PIP_TIMEOUT, "Could not install the voice's runtime. Check the internet connection and try again.")
+ } catch (error) {
+ await rm(this.runtimeDir(), { recursive: true, force: true })
+ throw error
+ }
+ this.forget()
+ if (!(await this.runtimeWorks(true))) throw new VoiceError("The voice's runtime was installed but does not start. Remove the built-in voice and set it up again.")
+ }
+ this.set({ step: 'model' })
+ await mkdir(this.modelsDir(), { recursive: true, mode: 0o700 })
+ const total = Object.values(MODELS).reduce((s, m) => s + m.size, 0)
+ let done = 0
+ this.set({ done: 0, total })
+ for (const [name, { size }] of Object.entries(MODELS)) {
+ const file = path.join(this.modelsDir(), name)
+ const s = await stat(file).catch(() => undefined)
+ if (s?.isFile() && s.size === size) { done += size; this.set({ done }); continue }
+ await rm(file, { force: true })
+ done += await this.download(name, done)
+ this.set({ done })
+ }
+ this.forget()
+ this.set({ state: 'done', error: '' })
+ } catch (error) {
+ this.forget()
+ if (error instanceof Cancelled) this.set({ state: 'cancelled', error: '' })
+ else if (error instanceof VoiceError) this.set({ state: 'failed', error: error.message })
+ else this.set({ state: 'failed', error: `Setting up the built-in voice failed. ${lastLine((error as Error).message)}`.trim() })
+ }
+ }
+
+ startSetup(): SetupJob {
+ if (this.running()) throw new VoiceError('The built-in voice is already being set up.')
+ const support = platformSupport()
+ if (!support.supported) throw new VoiceError(support.note)
+ this.cancel = new AbortController()
+ this.job = { state: 'running', step: 'python', done: 0, total: 0, error: '' }
+ void this.setup()
+ return { ...this.job }
+ }
+
+ cancelSetup(): boolean {
+ if (!this.running()) return false
+ this.cancel?.abort()
+ return true
+ }
+
+ async remove(): Promise {
+ if (this.running()) throw new VoiceError('Wait for the setup to finish or cancel it, then remove the built-in voice.')
+ this.job = null
+ let removed = false
+ for (const dir of [this.runtimeDir(), this.modelsDir()]) {
+ if (existsSync(dir)) { await rm(dir, { recursive: true, force: true }); removed = true }
+ }
+ this.forget()
+ if (existsSync(this.runtimeDir()) || existsSync(this.modelsDir())) throw new VoiceError("Some of the built-in voice's files could not be removed. Close anything using them and try again.")
+ return removed
+ }
+
+ private async requireReady(): Promise {
+ if (this.running()) throw new VoiceError('The built-in voice is still being set up.')
+ if (!(await this.modelReady()) || !(await this.runtimeWorks())) throw new VoiceError('Set up the built-in voice first: Settings, Voice, Set up.')
+ return this.runtimePython()
+ }
+
+ async voices(): Promise {
+ const python = await this.requireReady()
+ const file = path.join(this.modelsDir(), 'voices-v1.0.bin')
+ const stamp = `${file}:${(await stat(file)).mtimeMs}`
+ if (this.voiceCache?.stamp === stamp) return this.voiceCache.list.map((v) => ({ ...v }))
+ const done = await run(python, ['-c', LIST_VOICES, file], { timeoutMs: 120_000 }).catch((e: Error) => { throw new VoiceError(`The built-in voice could not list its voices. ${lastLine(e.message)}`.trim(), 502) })
+ let ids: unknown
+ try {
+ ids = done.code === 0 ? JSON.parse(done.stdout.trim().split(/\r?\n/).at(-1) ?? '') : undefined
+ } catch {
+ ids = undefined
+ }
+ if (!Array.isArray(ids)) throw new VoiceError(`The built-in voice could not list its voices. ${lastLine(done.stderr)}`.trim(), 502)
+ const list = ids.map((id) => describeVoice(String(id))).sort(orderVoices)
+ this.voiceCache = { stamp, list }
+ return list.map((v) => ({ ...v }))
+ }
+
+ async speak(text: string, opts: { voice?: string; speed?: number; language?: string } = {}): Promise {
+ const python = await this.requireReady()
+ const voice = (opts.voice ?? '').trim() || DEFAULT_VOICE
+ const known = new Map((await this.voices()).map((v) => [v.id, v]))
+ if (!known.has(voice)) throw new VoiceError(`There is no built-in voice named ${voice}.`, 422)
+ const parts = sentences(text)
+ if (parts.length === 0) throw new VoiceError('There is no text to speak.', 422)
+ const code = (opts.language ?? '').trim().toLowerCase()
+ const language = ACCEPTED.has(code) ? code : known.get(voice)!.language
+ const speed = clampSpeed(opts.speed)
+ await mkdir(this.folder(), { recursive: true, mode: 0o700 })
+ const output = path.join(this.folder(), `.speak-${process.pid}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}.wav`)
+ const args = {
+ model: path.join(this.modelsDir(), 'kokoro-v1.0.onnx'),
+ voices: path.join(this.modelsDir(), 'voices-v1.0.bin'),
+ voice, language, speed, sentences: parts, pause: PAUSE, output,
+ }
+ try {
+ let done: Ran
+ try {
+ done = await run(python, ['-c', WORKER], { input: JSON.stringify(args), timeoutMs: SPEAK_TIMEOUT })
+ } catch (error) {
+ throw new VoiceError(`The built-in voice could not start. ${lastLine((error as Error).message)}`.trim(), 502)
+ }
+ if (done.code === null) throw new VoiceError('The built-in voice took too long. Try a shorter text.', 502)
+ if (done.code !== 0) throw new VoiceError(`The built-in voice could not speak this text. ${lastLine(done.stderr)}`.trim(), 502)
+ let report: { cues?: Cue[] }
+ let audio: Buffer
+ let seconds: number
+ try {
+ report = JSON.parse(done.stdout.split(/\r?\n/).reverse().find((l) => l.startsWith('{')) ?? '') as { cues?: Cue[] }
+ audio = await readFile(output)
+ const pcm = readWav(audio)
+ seconds = pcm.data.length / ((pcm.bits / 8) * pcm.channels) / pcm.rate
+ } catch {
+ throw new VoiceError(`The built-in voice did not give back a sound. ${lastLine(done.stderr)}`.trim(), 502)
+ }
+ const cues = (report.cues ?? []).map((c) => ({ start: Number(c.start), end: Number(c.end), text: String(c.text) }))
+ return { audio, seconds: Math.round(seconds * 1000) / 1000, voice, speed, cues }
+ } finally {
+ await rm(output, { force: true })
+ }
+ }
+}
+
+export function clampSpeed(speed: unknown): number {
+ const n = Number(speed)
+ return Number.isFinite(n) ? Math.min(MAX_SPEED, Math.max(MIN_SPEED, n)) : DEFAULT_SPEED
+}
+
+export function describeVoice(id: string): Voice {
+ const lang = LANGUAGES[id.slice(0, 1)] ?? { code: 'en-us', group: 'Other' }
+ const tail = id.includes('_') ? id.split('_').slice(1).join('_') : id
+ return { id, name: tail.slice(0, 1).toUpperCase() + tail.slice(1), language: lang.code, group: lang.group }
+}
+
+function orderVoices(a: Voice, b: Voice): number {
+ const rank = (v: Voice): number => (FIRST_GROUPS.includes(v.group) ? FIRST_GROUPS.indexOf(v.group) : FIRST_GROUPS.length)
+ return rank(a) - rank(b) || a.group.localeCompare(b.group) || a.name.toLowerCase().localeCompare(b.name.toLowerCase()) || a.id.localeCompare(b.id)
+}
+
+export function sentences(text: string): string[] {
+ const pieces = (text ?? '').split(/(?<=[.!?])\s+|\s*\n\s*/).map((p) => p.trim()).filter(Boolean)
+ const merged: string[] = []
+ for (const piece of pieces) {
+ if (merged.length > 0 && (piece.length < 3 || merged[merged.length - 1]!.length < 3)) merged[merged.length - 1] = `${merged[merged.length - 1]} ${piece}`
+ else merged.push(piece)
+ }
+ return merged
+}
+
+const engines = new Map()
+
+export function kokoro(dataDir: string): KokoroVoice {
+ const key = path.resolve(dataDir)
+ let engine = engines.get(key)
+ if (!engine) { engine = new KokoroVoice(key); engines.set(key, engine) }
+ return engine
+}
+
+export function defaultDataDir(): string {
+ return path.resolve(process.env.FORMREC_DATA?.trim() || path.join(os.homedir(), 'formrec'))
+}
diff --git a/src/features/voiceover/store.ts b/src/features/voiceover/store.ts
new file mode 100644
index 0000000..83e1c29
--- /dev/null
+++ b/src/features/voiceover/store.ts
@@ -0,0 +1,350 @@
+import { randomBytes } from 'node:crypto'
+import { chmod, rm, writeFile } from 'node:fs/promises'
+import path from 'node:path'
+import { z } from 'zod'
+import type { Library } from '../../store/library.js'
+import { BadId } from '../../store/library.js'
+import type { Recording } from '../../model/recording.js'
+import { readFeatureJson, readSidecar, writeFeatureJson, writeSidecar } from '../store.js'
+import { clampSpeed, DEFAULT_SPEED, DEFAULT_VOICE, kokoro, MAX_SPEED, MIN_SPEED, VoiceError, type Cue } from './kokoro.js'
+
+export const FEATURE = 'voiceover'
+export const LINE_FILE = /^voiceover-[a-z0-9]{6,20}\.wav$/
+export const MAX_LINES = 200
+export const MAX_TEXT = 2000
+const STEP = /^[A-Za-z0-9][A-Za-z0-9._-]{0,80}$/
+const VOICE = /^[a-z]{2}_[a-z0-9]{1,30}$/
+export const DUCK_LEVEL = 0.25
+export const LOUDNESS = 'loudnorm=I=-16:TP=-1.5:LRA=11'
+export const MAX_NOTES = 40_000
+
+export const SettingsSchema = z.object({
+ voice: z.string().regex(VOICE).default(DEFAULT_VOICE),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).default(DEFAULT_SPEED),
+ duck: z.boolean().default(true),
+ duckLevel: z.number().min(0).max(1).default(DUCK_LEVEL),
+ loudness: z.boolean().default(true),
+})
+export type VoiceSettings = z.infer
+export const SettingsPatchSchema = z.object({
+ voice: z.string().regex(VOICE).optional(),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).optional(),
+ duck: z.boolean().optional(),
+ duckLevel: z.number().min(0).max(1).optional(),
+ loudness: z.boolean().optional(),
+})
+
+const CueSchema = z.object({ start: z.number(), end: z.number(), text: z.string().max(MAX_TEXT) })
+const LineSchema = z.object({
+ stepId: z.string().regex(STEP),
+ text: z.string().max(MAX_TEXT),
+ atMs: z.number().int().min(0),
+ custom: z.boolean().default(false),
+ lineVoice: z.string().regex(VOICE).optional(),
+ lineSpeed: z.number().min(MIN_SPEED).max(MAX_SPEED).optional(),
+ file: z.string().regex(LINE_FILE).optional(),
+ durationMs: z.number().int().min(0).optional(),
+ voice: z.string().regex(VOICE).optional(),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).optional(),
+ spokenText: z.string().max(MAX_TEXT).optional(),
+ cues: z.array(CueSchema).max(400).optional(),
+ madeAt: z.string().optional(),
+})
+type StoredLine = z.infer
+const StoredSchema = z.object({
+ voiceover: z.literal(1).default(1),
+ on: z.boolean().default(true),
+ voice: z.string().regex(VOICE).optional(),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).optional(),
+ lines: z.array(LineSchema).max(MAX_LINES).default([]),
+})
+type Stored = z.infer
+
+export const ChangeSchema = z.object({
+ on: z.boolean().optional(),
+ voice: z.string().regex(VOICE).nullable().optional(),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).nullable().optional(),
+ lines: z.array(z.object({
+ stepId: z.string().regex(STEP),
+ text: z.string().max(MAX_TEXT).optional(),
+ atMs: z.number().int().min(0).optional(),
+ voice: z.string().regex(VOICE).nullable().optional(),
+ speed: z.number().min(MIN_SPEED).max(MAX_SPEED).nullable().optional(),
+ })).max(MAX_LINES).optional(),
+ add: z.object({ text: z.string().min(1).max(MAX_TEXT), atMs: z.number().int().min(0) }).optional(),
+ remove: z.string().regex(STEP).optional(),
+ fromNotes: z.string().max(MAX_NOTES).optional(),
+})
+export type Change = z.infer
+
+export interface LineState {
+ stepId: string
+ title: string
+ text: string
+ atMs: number
+ endMs: number
+ custom: boolean
+ file: string | null
+ durationMs: number | null
+ voice: string | null
+ speed: number | null
+ lineVoice: string | null
+ lineSpeed: number | null
+ stale: boolean
+ overrunMs: number
+ cues: Cue[]
+}
+
+export interface VoiceoverState {
+ id: string
+ on: boolean
+ voice: string
+ speed: number
+ duck: boolean
+ duckLevel: number
+ loudness: boolean
+ recordingVoice: string | null
+ recordingSpeed: number | null
+ lines: LineState[]
+ made: number
+}
+
+export async function readVoiceSettings(dataDir: string): Promise {
+ const stored = await readFeatureJson(dataDir, FEATURE, 'settings', SettingsSchema).catch(() => undefined)
+ return stored ?? SettingsSchema.parse({})
+}
+
+export async function writeVoiceSettings(dataDir: string, patch: z.infer): Promise {
+ const next = SettingsSchema.parse({ ...(await readVoiceSettings(dataDir)), ...SettingsPatchSchema.parse(patch) })
+ return writeFeatureJson(dataDir, FEATURE, 'settings', SettingsSchema, next)
+}
+
+async function stored(library: Library, id: string): Promise {
+ return (await readSidecar(library, id, FEATURE, StoredSchema).catch(() => undefined)) ?? StoredSchema.parse({})
+}
+
+async function save(library: Library, id: string, value: Stored): Promise {
+ await writeSidecar(library, id, FEATURE, StoredSchema, value)
+}
+
+async function recording(library: Library, id: string): Promise {
+ const rec = await library.get(id)
+ if (!rec) throw new BadId(`no recording ${id}`)
+ return rec
+}
+
+function baseLines(rec: Recording, own: Stored): StoredLine[] {
+ const byStep = new Map(own.lines.map((l) => [l.stepId, l]))
+ const out: StoredLine[] = []
+ for (const c of rec.chapters) {
+ const mine = byStep.get(c.stepId)
+ const text = mine && !mine.custom ? mine.text : (c.say ?? '').trim()
+ if (!text && !mine) continue
+ out.push({ ...(mine ?? {}), stepId: c.stepId, text, atMs: mine?.atMs ?? Math.round(c.startMs), custom: false })
+ }
+ for (const l of own.lines) if (l.custom) out.push(l)
+ return out.sort((a, b) => a.atMs - b.atMs)
+}
+
+const NOTE_TIME = /^(?:(\d{1,2}):)?(\d{1,2}):(\d{2})(?:\.(\d{1,3}))?(?:\s+|$)/
+const NOTE_BULLET = /^\s*(?:[-*+]|\d{1,3}[.)])\s+/
+
+export interface NoteLine { stepId?: string; atMs: number; text: string }
+
+export function notesToLines(notes: string, chapters: readonly Pick[], durationMs: number): NoteLine[] {
+ const timed: NoteLine[] = []
+ const paragraphs: string[] = []
+ let open: string[] = []
+ const close = (): void => {
+ if (open.length > 0) paragraphs.push(open.join(' '))
+ open = []
+ }
+ for (const raw of notes.split(/\r?\n/)) {
+ const row = raw.replace(NOTE_BULLET, '').trim()
+ if (!row || row.startsWith('#')) { close(); continue }
+ const m = NOTE_TIME.exec(row)
+ if (!m) { open.push(row); continue }
+ close()
+ const atMs = ((Number(m[1] ?? 0) * 60 + Number(m[2])) * 60 + Number(m[3])) * 1000 + Number((m[4] ?? '0').padEnd(3, '0'))
+ let text = row.slice(m[0].length).trim()
+ const titled = chapters.find((c) => c.title && text.startsWith(`${c.title}:`))
+ if (titled) text = text.slice(titled.title.length + 1).trim()
+ if (text) timed.push({ atMs: Math.min(atMs, durationMs), text: text.slice(0, MAX_TEXT) })
+ }
+ close()
+ const taken = new Set()
+ for (const t of timed) {
+ const near = chapters.find((c) => !taken.has(c.stepId) && Math.abs(c.startMs - t.atMs) <= 1000)
+ if (near) { t.stepId = near.stepId; t.atMs = Math.round(near.startMs); taken.add(near.stepId) }
+ }
+ const free = chapters.filter((c) => !taken.has(c.stepId))
+ const out = [...timed]
+ for (const [i, text] of paragraphs.entries()) {
+ const c = free[i]
+ if (c) { out.push({ stepId: c.stepId, atMs: Math.round(c.startMs), text: text.slice(0, MAX_TEXT) }); continue }
+ const rest = paragraphs.length - free.length
+ const from = free.length > 0 ? Math.round(free[free.length - 1]!.startMs) : 0
+ const k = i - free.length + (free.length > 0 ? 1 : 0)
+ const parts = rest + (free.length > 0 ? 1 : 0)
+ out.push({ atMs: Math.round(from + ((durationMs - from) * k) / Math.max(1, parts)), text: text.slice(0, MAX_TEXT) })
+ }
+ return out.sort((a, b) => a.atMs - b.atMs)
+}
+
+export async function stateOf(library: Library, id: string): Promise {
+ const rec = await recording(library, id)
+ const own = await stored(library, id)
+ const settings = await readVoiceSettings(library.dataDir)
+ const voice = own.voice ?? settings.voice
+ const speed = own.speed ?? settings.speed
+ const titles = new Map(rec.chapters.map((c) => [c.stepId, c]))
+ const lines = baseLines(rec, own)
+ const states: LineState[] = lines.map((l, i) => {
+ const chapter = titles.get(l.stepId)
+ const next = lines[i + 1]?.atMs ?? rec.durationMs
+ const endMs = Math.max(l.atMs, Math.min(chapter?.endMs ?? next, next))
+ const made = Boolean(l.file)
+ const stale = made && (l.spokenText !== l.text || l.voice !== (l.lineVoice ?? voice) || l.speed !== (l.lineSpeed ?? speed))
+ return {
+ stepId: l.stepId,
+ title: chapter?.title ?? 'Added line',
+ text: l.text,
+ atMs: l.atMs,
+ endMs,
+ custom: l.custom,
+ file: l.file ?? null,
+ durationMs: l.durationMs ?? null,
+ voice: l.voice ?? null,
+ speed: l.speed ?? null,
+ lineVoice: l.lineVoice ?? null,
+ lineSpeed: l.lineSpeed ?? null,
+ stale,
+ overrunMs: made ? Math.max(0, l.atMs + (l.durationMs ?? 0) - Math.max(endMs, next)) : 0,
+ cues: l.cues ?? [],
+ }
+ })
+ return {
+ id, on: own.on, voice, speed, duck: settings.duck, duckLevel: settings.duckLevel, loudness: settings.loudness,
+ recordingVoice: own.voice ?? null, recordingSpeed: own.speed ?? null,
+ lines: states, made: states.filter((l) => l.file).length,
+ }
+}
+
+export async function change(library: Library, id: string, input: Change): Promise {
+ const c = ChangeSchema.parse(input)
+ const rec = await recording(library, id)
+ const own = await stored(library, id)
+ let lines = baseLines(rec, own)
+ if (c.lines) {
+ const edits = new Map(c.lines.map((l) => [l.stepId, l]))
+ lines = lines.map((l) => {
+ const e = edits.get(l.stepId)
+ if (!e) return l
+ const next: StoredLine = { ...l, ...(e.text !== undefined ? { text: e.text.trim() } : {}), ...(e.atMs !== undefined ? { atMs: Math.min(e.atMs, rec.durationMs) } : {}) }
+ if (e.voice !== undefined) next.lineVoice = e.voice ?? undefined
+ if (e.speed !== undefined) next.lineSpeed = e.speed ?? undefined
+ return next
+ })
+ }
+ if (c.fromNotes !== undefined) {
+ for (const n of notesToLines(c.fromNotes, rec.chapters, rec.durationMs)) {
+ const at = n.stepId ? lines.findIndex((l) => l.stepId === n.stepId) : -1
+ if (at >= 0) lines[at] = { ...lines[at]!, text: n.text }
+ else if (n.stepId) lines.push({ stepId: n.stepId, text: n.text, atMs: n.atMs, custom: false })
+ else if (lines.length < MAX_LINES) lines.push({ stepId: `line-${randomBytes(5).toString('hex')}`, text: n.text, atMs: n.atMs, custom: true })
+ }
+ }
+ if (c.add) {
+ if (lines.length >= MAX_LINES) throw new VoiceError(`a recording can have at most ${MAX_LINES} voice-over lines`, 400)
+ lines.push({ stepId: `line-${randomBytes(5).toString('hex')}`, text: c.add.text.trim(), atMs: Math.min(c.add.atMs, rec.durationMs), custom: true })
+ }
+ if (c.remove) {
+ const gone = lines.find((l) => l.stepId === c.remove)
+ if (gone?.file) await rm(path.join(library.folder(id), gone.file), { force: true })
+ lines = gone?.custom ? lines.filter((l) => l !== gone) : lines.map((l) => (l === gone ? { stepId: l.stepId, text: '', atMs: l.atMs, custom: false } : l))
+ }
+ const next: Stored = {
+ ...own,
+ ...(c.on !== undefined ? { on: c.on } : {}),
+ voice: c.voice === null ? undefined : c.voice ?? own.voice,
+ speed: c.speed === null ? undefined : c.speed ?? own.speed,
+ lines,
+ }
+ await save(library, id, next)
+ return stateOf(library, id)
+}
+
+export async function generate(library: Library, id: string, opts: { stepId?: string; all?: boolean } = {}): Promise {
+ const rec = await recording(library, id)
+ const before = await stateOf(library, id)
+ const own = await stored(library, id)
+ const lines = baseLines(rec, own)
+ const wanted = before.lines.filter((l) => l.text.trim() && (opts.stepId ? l.stepId === opts.stepId : opts.all || !l.file || l.stale))
+ if (opts.stepId && wanted.length === 0) throw new VoiceError(`there is no voice-over line ${opts.stepId} with text to speak`, 404)
+ const engine = kokoro(library.dataDir)
+ const folder = library.folder(id)
+ for (const want of wanted) {
+ const speech = await engine.speak(want.text, { voice: want.lineVoice ?? before.voice, speed: want.lineSpeed ?? before.speed })
+ const file = `voiceover-${randomBytes(6).toString('hex')}.wav`
+ await writeFile(path.join(folder, file), speech.audio, { mode: 0o600 })
+ await chmod(path.join(folder, file), 0o600).catch(() => undefined)
+ const at = lines.findIndex((l) => l.stepId === want.stepId)
+ const old = lines[at]
+ if (!old) continue
+ if (old.file) await rm(path.join(folder, old.file), { force: true })
+ lines[at] = {
+ ...old, file, durationMs: Math.round(speech.seconds * 1000), voice: speech.voice, speed: speech.speed,
+ spokenText: want.text, cues: speech.cues.slice(0, 400), madeAt: new Date().toISOString(),
+ }
+ await save(library, id, { ...own, lines })
+ }
+ return stateOf(library, id)
+}
+
+export async function removeAll(library: Library, id: string): Promise {
+ const own = await stored(library, id)
+ for (const l of own.lines) if (l.file) await rm(path.join(library.folder(id), l.file), { force: true })
+ await save(library, id, { ...own, lines: own.lines.map(({ stepId, text, atMs, custom, lineVoice, lineSpeed }) => ({ stepId, text, atMs, custom, lineVoice, lineSpeed })) })
+ return stateOf(library, id)
+}
+
+export interface ExportVoiceover {
+ lines: { file: string; offsetMs: number; durationMs: number }[]
+ duck: boolean
+ duckLevel: number
+ loudness: boolean
+}
+
+export async function exportVoiceover(library: Library, rec: Pick): Promise {
+ const own = await readSidecar(library, rec.id, FEATURE, StoredSchema).catch(() => undefined)
+ if (!own || !own.on) return undefined
+ const lines = own.lines.filter((l) => l.file && l.text.trim()).map((l) => ({ file: path.join(library.folder(rec.id), l.file!), offsetMs: l.atMs, durationMs: l.durationMs ?? 0 }))
+ if (lines.length === 0) return undefined
+ const settings = await readVoiceSettings(library.dataDir)
+ return { lines, duck: settings.duck, duckLevel: settings.duckLevel, loudness: settings.loudness }
+}
+
+const vttTime = (ms: number): string => {
+ const t = Math.max(0, Math.round(ms))
+ const hh = String(Math.floor(t / 3_600_000)).padStart(2, '0')
+ const mm = String(Math.floor((t % 3_600_000) / 60_000)).padStart(2, '0')
+ const ss = String(Math.floor((t % 60_000) / 1000)).padStart(2, '0')
+ return `${hh}:${mm}:${ss}.${String(t % 1000).padStart(3, '0')}`
+}
+
+export function voiceoverCues(state: Pick): { startMs: number; endMs: number; text: string }[] {
+ const out: { startMs: number; endMs: number; text: string }[] = []
+ for (const l of state.lines) {
+ if (!l.file) continue
+ if (l.cues.length === 0) { out.push({ startMs: l.atMs, endMs: l.atMs + (l.durationMs ?? 0), text: l.text }); continue }
+ for (const c of l.cues) out.push({ startMs: l.atMs + Math.round(c.start * 1000), endMs: l.atMs + Math.round(c.end * 1000), text: c.text })
+ }
+ return out.sort((a, b) => a.startMs - b.startMs)
+}
+
+export function voiceoverVtt(state: Pick): string {
+ const cues = voiceoverCues(state)
+ return `WEBVTT\n\n${cues.map((c, i) => `${i + 1}\n${vttTime(c.startMs)} --> ${vttTime(Math.max(c.endMs, c.startMs + 1))}\n${c.text.replace(/-->/g, '->').replace(/\s*\n\s*/g, ' ')}\n`).join('\n')}`
+}
+
+export { clampSpeed }
diff --git a/src/mcp/consent.ts b/src/mcp/consent.ts
new file mode 100644
index 0000000..8c8e4bc
--- /dev/null
+++ b/src/mcp/consent.ts
@@ -0,0 +1,262 @@
+import { randomUUID } from 'node:crypto'
+import http from 'node:http'
+import { access, chmod, mkdir, readFile } from 'node:fs/promises'
+import path from 'node:path'
+import { atomicWrite } from '../store/library.js'
+import { liveServers, serversDir } from '../store/server-file.js'
+import { loadToken } from '../server/token.js'
+
+export const OUTSIDE_POLICIES = ['ask', 'allowed', 'blocked'] as const
+export type OutsidePolicy = (typeof OUTSIDE_POLICIES)[number]
+export const CONSENT_CHOICES = ['deny', 'once', 'always'] as const
+export type ConsentChoice = (typeof CONSENT_CHOICES)[number]
+export type ConsentVerdict = 'allow' | 'deny' | 'timeout' | 'no-window'
+export const CONSENT_SECONDS = 120
+const MAX_AGENTS = 64
+const MAX_PENDING = 32
+
+export interface ConsentState {
+ policy: OutsidePolicy
+ agents: string[]
+}
+
+export interface ConsentCall {
+ agent: string
+ tool: string
+ title?: string
+ args?: unknown
+ token?: string
+}
+
+export type ConsentGate = (call: ConsentCall) => Promise
+
+export interface ConsentQuestion {
+ id: string
+ agent: string
+ tool: string
+ what: string
+ notes: string[]
+ expires: number
+}
+
+export type ConsentEvent =
+ | { type: 'add'; question: ConsentQuestion }
+ | { type: 'withdraw'; id: string }
+ | { type: 'state'; state: ConsentState }
+
+export function consentFile(dataDir: string): string {
+ return path.join(dataDir, 'mcp', 'consent.json')
+}
+
+const cleanAgent = (name: unknown): string => (typeof name === 'string' ? name.replace(/[\u0000-\u001f\u007f]/g, '').trim().slice(0, 80) : '')
+
+export async function readConsent(dataDir: string): Promise {
+ try {
+ const raw = JSON.parse(await readFile(consentFile(dataDir), 'utf8')) as { policy?: unknown; agents?: unknown }
+ const policy = OUTSIDE_POLICIES.find((p) => p === raw.policy) ?? 'ask'
+ const agents = Array.isArray(raw.agents) ? [...new Set(raw.agents.map(cleanAgent).filter(Boolean))].slice(0, MAX_AGENTS) : []
+ return { policy, agents }
+ } catch {
+ return { policy: 'ask', agents: [] }
+ }
+}
+
+export async function writeConsent(dataDir: string, state: ConsentState): Promise {
+ const dir = path.dirname(consentFile(dataDir))
+ await mkdir(dir, { recursive: true, mode: 0o700 })
+ await chmod(dir, 0o700)
+ const kept: ConsentState = { policy: state.policy, agents: [...new Set(state.agents.map(cleanAgent).filter(Boolean))].slice(0, MAX_AGENTS) }
+ await atomicWrite(consentFile(dataDir), `${JSON.stringify(kept, null, 2)}\n`)
+ await chmod(consentFile(dataDir), 0o600)
+ return kept
+}
+
+export function summarise(args: unknown): string {
+ if (typeof args === 'string') return args.length <= 140 ? args : `${args.slice(0, 137)}...`
+ if (!args || typeof args !== 'object') return ''
+ const short: Record = {}
+ for (const [k, v] of Object.entries(args as Record)) {
+ if (v === undefined) continue
+ short[k] = typeof v === 'string' && v.length > 60 ? `${v.slice(0, 57)}...` : v
+ }
+ let text = ''
+ try { text = JSON.stringify(short) } catch { return '' }
+ if (!text || text === '{}') return ''
+ return text.length <= 140 ? text : `${text.slice(0, 137)}...`
+}
+
+function what(call: ConsentCall): string {
+ const title = call.title?.trim()
+ if (title) return `${title.charAt(0).toLowerCase()}${title.slice(1)} (${call.tool})`
+ return `use ${call.tool}`
+}
+
+export function refusal(verdict: Exclude | 'blocked', tool: string): string {
+ switch (verdict) {
+ case 'blocked':
+ return `Outside agents are blocked in FormREC (Preferences, Agents, Outside agents is Blocked), so ${tool} did not run. Do not retry; ask the person to change that setting if you should continue.`
+ case 'deny':
+ return `The person declined ${tool} in FormREC, so it did not run. Do not retry it; ask them what they want instead.`
+ case 'timeout':
+ return `The person did not answer in FormREC within ${CONSENT_SECONDS} seconds, so ${tool} did not run. Tell them the question waits in the FormREC window, and retry when they are there.`
+ default:
+ return `FormREC asks the person before an outside agent changes anything, and no FormREC window is open to ask, so ${tool} did not run. Ask the person to open FormREC and retry, or to set Preferences, Agents, Outside agents to Allowed.`
+ }
+}
+
+function standing(state: ConsentState, agent: string): 'run' | 'ask' | 'blocked' {
+ if (state.policy === 'blocked') return 'blocked'
+ if (state.policy === 'allowed' || (agent !== '' && state.agents.includes(agent))) return 'run'
+ return 'ask'
+}
+
+interface Pending {
+ question: ConsentQuestion
+ done(verdict: ConsentVerdict): void
+ timer: NodeJS.Timeout
+}
+
+export class ConsentBroker {
+ private readonly pending = new Map()
+ private readonly watchers = new Set<(event: ConsentEvent) => void>()
+
+ constructor(private readonly dataDir: string) {}
+
+ watching(): boolean {
+ return this.watchers.size > 0
+ }
+
+ watch(fn: (event: ConsentEvent) => void): () => void {
+ this.watchers.add(fn)
+ return () => { this.watchers.delete(fn) }
+ }
+
+ questions(): ConsentQuestion[] {
+ return [...this.pending.values()].map((p) => p.question)
+ }
+
+ state(): Promise {
+ return readConsent(this.dataDir)
+ }
+
+ private emit(event: ConsentEvent): void {
+ for (const fn of [...this.watchers]) {
+ try { fn(event) } catch { this.watchers.delete(fn) }
+ }
+ }
+
+ ask(call: ConsentCall): Promise {
+ if (!this.watching()) return Promise.resolve('no-window')
+ if (this.pending.size >= MAX_PENDING) return Promise.resolve('timeout')
+ const args = summarise(call.args)
+ const question: ConsentQuestion = {
+ id: randomUUID(),
+ agent: cleanAgent(call.agent),
+ tool: call.tool,
+ what: what(call),
+ notes: args ? [args] : [],
+ expires: Date.now() + CONSENT_SECONDS * 1000,
+ }
+ return new Promise((resolve) => {
+ const timer = setTimeout(() => this.settle(question.id, 'timeout'), CONSENT_SECONDS * 1000)
+ timer.unref()
+ this.pending.set(question.id, { question, done: resolve, timer })
+ this.emit({ type: 'add', question })
+ })
+ }
+
+ private settle(id: string, verdict: ConsentVerdict): boolean {
+ const p = this.pending.get(id)
+ if (!p) return false
+ this.pending.delete(id)
+ clearTimeout(p.timer)
+ p.done(verdict)
+ this.emit({ type: 'withdraw', id })
+ return true
+ }
+
+ async answer(id: string, choice: ConsentChoice): Promise {
+ const p = this.pending.get(id)
+ if (!p) return false
+ if (choice === 'deny') return this.settle(id, 'deny')
+ if (choice === 'once') return this.settle(id, 'allow')
+ const now = await this.state()
+ const agent = p.question.agent
+ const next = agent ? { ...now, agents: [...now.agents.filter((a) => a !== agent), agent] } : { ...now, policy: 'allowed' as const }
+ await this.publish(next)
+ return true
+ }
+
+ async setPolicy(policy: OutsidePolicy): Promise {
+ return this.publish({ ...(await this.state()), policy })
+ }
+
+ async forget(agent?: string): Promise {
+ const now = await this.state()
+ return this.publish({ ...now, agents: agent ? now.agents.filter((a) => a !== agent) : [] })
+ }
+
+ private async publish(state: ConsentState): Promise {
+ const kept = await writeConsent(this.dataDir, state)
+ for (const p of [...this.pending.values()]) {
+ const s = standing(kept, p.question.agent)
+ if (s === 'blocked') this.settle(p.question.id, 'deny')
+ else if (s === 'run') this.settle(p.question.id, 'allow')
+ }
+ this.emit({ type: 'state', state: kept })
+ return kept
+ }
+
+ gate(outside: (token: string | undefined) => Promise): ConsentGate {
+ return async (call) => {
+ if (!(await outside(call.token))) return undefined
+ const s = standing(await this.state(), cleanAgent(call.agent))
+ if (s === 'run') return undefined
+ if (s === 'blocked') return refusal('blocked', call.tool)
+ const verdict = await this.ask(call)
+ return verdict === 'allow' ? undefined : refusal(verdict, call.tool)
+ }
+ }
+}
+
+function askServer(port: number, token: string, call: ConsentCall): Promise {
+ const body = JSON.stringify({ agent: call.agent, tool: call.tool, title: call.title ?? '', args: summarise(call.args) })
+ return new Promise((resolve) => {
+ const req = http.request(
+ { host: '127.0.0.1', port, path: '/api/mcp/consent/ask', method: 'POST', headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(body) } },
+ (res) => {
+ const chunks: Buffer[] = []
+ res.on('data', (c: Buffer) => chunks.push(c))
+ res.on('end', () => {
+ try {
+ const v = (JSON.parse(Buffer.concat(chunks).toString('utf8')) as { verdict?: unknown }).verdict
+ resolve(v === 'allow' || v === 'deny' || v === 'timeout' ? v : 'no-window')
+ } catch {
+ resolve('no-window')
+ }
+ })
+ res.on('error', () => resolve('no-window'))
+ },
+ )
+ req.setTimeout((CONSENT_SECONDS + 15) * 1000, () => req.destroy())
+ req.on('error', () => resolve('no-window'))
+ req.end(body)
+ })
+}
+
+export function remoteGate(dataDir: string): ConsentGate {
+ return async (call) => {
+ const s = standing(await readConsent(dataDir), cleanAgent(call.agent))
+ if (s === 'run') return undefined
+ if (s === 'blocked') return refusal('blocked', call.tool)
+ const published = await access(serversDir(dataDir)).then(() => true, () => false)
+ const token = published ? await loadToken(dataDir).catch(() => '') : ''
+ const servers = token ? await liveServers(dataDir, token).catch(() => []) : []
+ for (const server of servers) {
+ const verdict = await askServer(server.port, token, call)
+ if (verdict === 'no-window') continue
+ return verdict === 'allow' ? undefined : refusal(verdict, call.tool)
+ }
+ return refusal('no-window', call.tool)
+ }
+}
diff --git a/src/mcp/guide.ts b/src/mcp/guide.ts
index 4eddbff..6a5878c 100644
--- a/src/mcp/guide.ts
+++ b/src/mcp/guide.ts
@@ -16,6 +16,11 @@ formrec_rename sets the title and summary, formrec_open_in_formcut hands it to t
editor, formrec_delete removes it (ask the person first). The feature tools (editing, transcripts,
sharing, comments, folders and more) take the same recording id.
+Consent: a tool that changes something waits while FormREC asks the person in its window (Allow
+once, Always, Deny; up to 120 seconds), unless they set Preferences, Agents, Outside agents to
+Allowed or chose Always for your name. Tools that only read are never asked about. A refusal
+says why and what to do next: do not retry a declined call.
+
A website, no code:
{
"formrec": 1,
diff --git a/src/mcp/http.ts b/src/mcp/http.ts
index 7d35e51..47e5f80 100644
--- a/src/mcp/http.ts
+++ b/src/mcp/http.ts
@@ -21,6 +21,8 @@ import { randomUUID } from 'node:crypto'
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js'
import { isInitializeRequest } from '@modelcontextprotocol/sdk/types.js'
+import type { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js'
+import { remoteGate } from './consent.js'
import { hostAllowed } from '../server/http.js'
import { tokenMatches } from '../server/token.js'
import { buildServer } from './server.js'
@@ -187,6 +189,8 @@ export function createMcpHttp(opts: McpHttpOptions): McpHttp {
session = await open()
}
session.seen = Date.now()
+ const bearer = /^Bearer (.+)$/.exec(req.headers.authorization ?? '')?.[1] ?? ''
+ ;(req as IncomingMessage & { auth?: AuthInfo }).auth = { token: bearer, clientId: 'formrec', scopes: [] }
await session.transport.handleRequest(req, res, body)
}
@@ -234,7 +238,7 @@ export async function serveMcpHttp(o: McpHttpServerOptions): Promise buildServer(o.deps, o.version),
+ build: () => buildServer(o.deps, o.version, {}, remoteGate(o.dataDir)),
tokens: async () => [await mcpToken(o.dataDir), ...(o.extraTokens ?? [])],
allowedOrigins: () => [],
allowedHosts: () => [wildcard ? '*' : host],
diff --git a/src/mcp/server.ts b/src/mcp/server.ts
index f641191..9aa48e0 100644
--- a/src/mcp/server.ts
+++ b/src/mcp/server.ts
@@ -2,6 +2,7 @@ import { McpServer, type RegisteredTool } from '@modelcontextprotocol/sdk/server
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
import { z } from 'zod'
import { refusalFor, TOOL_SCOPES, type ToolScope } from './scope.js'
+import { remoteGate, type ConsentGate } from './consent.js'
import { GUIDE } from './guide.js'
import { demosTool } from './demos.js'
import {
@@ -66,7 +67,7 @@ export function toolReport(server: McpServer): { names: readonly string[]; refus
}
/** The one place an MCP server is built, for every transport: stdio, Streamable HTTP, and the relay's remote agents. */
-export function buildServer(deps: ToolDeps, version: string, tools: ToolSet = {}): McpServer {
+export function buildServer(deps: ToolDeps, version: string, tools: ToolSet = {}, consent?: ConsentGate): McpServer {
const server = new McpServer({ name: 'formrec', version })
const registered = new Map()
const register = server.registerTool.bind(server)
@@ -74,7 +75,16 @@ export function buildServer(deps: ToolDeps, version: string, tools: ToolSet = {}
server.registerTool = ((name: string, ...rest: unknown[]) => {
// Every answer's player links get their form in one place (player-links.ts): no run token, a player key per recording.
const handler = rest[rest.length - 1] as (...args: unknown[]) => unknown
- const keyed = async (...args: unknown[]): Promise => keyReply((await handler(...args)) as ToolReply, base, deps.library.dataDir)
+ const config = rest[0] as { title?: string; annotations?: { readOnlyHint?: boolean } } | undefined
+ const asks = consent !== undefined && config?.annotations?.readOnlyHint !== true
+ const keyed = async (...args: unknown[]): Promise => {
+ if (asks) {
+ const extra = args[args.length - 1] as { authInfo?: { token?: string } } | undefined
+ const why = await consent({ agent: server.server.getClientVersion()?.name ?? '', tool: name, title: config?.title, args: args.length > 1 ? args[0] : undefined, token: extra?.authInfo?.token })
+ if (why) return { content: [{ type: 'text', text: why }], isError: true }
+ }
+ return keyReply((await handler(...args)) as ToolReply, base, deps.library.dataDir)
+ }
const tool = (register as (n: string, ...r: unknown[]) => RegisteredTool)(name, ...rest.slice(0, -1), keyed)
registered.set(name, tool)
return tool
@@ -236,5 +246,5 @@ export function buildServer(deps: ToolDeps, version: string, tools: ToolSet = {}
}
export async function serveMcp(deps: ToolDeps, version: string): Promise {
- await buildServer(deps, version).connect(new StdioServerTransport())
+ await buildServer(deps, version, {}, remoteGate(deps.library.dataDir)).connect(new StdioServerTransport())
}
diff --git a/tests/ai-engine.test.ts b/tests/ai-engine.test.ts
index 565a79d..6a4b872 100644
--- a/tests/ai-engine.test.ts
+++ b/tests/ai-engine.test.ts
@@ -244,7 +244,7 @@ describe('ai routes', () => {
expect(res.json.error).toContain('no picture')
const voice = await call('POST', '/api/ai/recordings/billing/voice', {})
expect([200, 424]).toContain(voice.status)
- if (voice.status === 424) expect(voice.json.error).toContain('text-to-speech')
+ if (voice.status === 424) expect(voice.json.error).toContain('built-in voice')
const tr = await call('POST', '/api/ai/recordings/billing/translate', { kind: 'title', to: 'es' })
expect(tr.status).toBe(400)
expect(tr.json.error).toContain('Translation needs')
diff --git a/tests/ai-voice.test.ts b/tests/ai-voice.test.ts
index 9d21de2..2a49bbc 100644
--- a/tests/ai-voice.test.ts
+++ b/tests/ai-voice.test.ts
@@ -14,7 +14,7 @@ describe('ai voice-over', () => {
const bin = await tempDir('formrec-ai-bin-')
await writeFile(path.join(bin, 'flite'), '#!/bin/sh\nif [ "$1" = "--version" ]; then echo flite-fake; exit 0; fi\nout=""\nwhile [ $# -gt 0 ]; do if [ "$1" = "-o" ]; then out="$2"; fi; shift; done\nprintf "RIFF0000WAVEfmt " > "$out"\n')
await chmod(path.join(bin, 'flite'), 0o755)
- process.env['PATH'] = `${bin}${path.delimiter}${process.env['PATH'] ?? ''}`
+ process.env['FORMREC_TTS'] = path.join(bin, 'flite')
const lib = new Library(await tempDir('formrec-ai-voice-'))
await lib.save({ formrec: 1, id: 'v', title: 'V', summary: '', source: 'person', createdAt: '2026-11-10T00:00:00.000Z', durationMs: 5000, chapters: [{ stepId: 'a', title: 'A', say: 'Hello from the script.', startMs: 0, endMs: 5000, code: [] }] })
const engine = new AiEngine({ library: lib, dataDir: lib.dataDir })
diff --git a/tests/apps-crm-hubspot.test.ts b/tests/apps-crm-hubspot.test.ts
index 83e70e0..7264f13 100644
--- a/tests/apps-crm-hubspot.test.ts
+++ b/tests/apps-crm-hubspot.test.ts
@@ -235,7 +235,7 @@ describe('the HubSpot project', () => {
it('ships the Watched a FormRec timeline event template, and its tokens are the ones the server sends', async () => {
const tpl = await json('timeline/watched-a-formrec.template.json')
- expect(tpl).toMatchObject({ name: 'Watched a FormRec', objectType: 'contacts' })
+ expect(tpl).toMatchObject({ name: 'Watched a FormREC', objectType: 'contacts' })
const names = tpl.tokens.map((t: { name: string }) => t.name).sort()
expect(names).toEqual(Object.keys(timelineBody('t', 'a@b.co', { title: '', url: '', shareId: '' }, 0, new Date()).tokens as object).sort())
for (const n of ['title', 'url', 'percent']) expect(tpl.headerTemplate).toContain(`{{${n}}}`)
diff --git a/tests/apps-dev-jira.test.ts b/tests/apps-dev-jira.test.ts
index 05901bc..969e901 100644
--- a/tests/apps-dev-jira.test.ts
+++ b/tests/apps-dev-jira.test.ts
@@ -16,7 +16,7 @@ describe('jira forge app', () => {
const m = parseYaml(await readFile('apps/jira/manifest.yml', 'utf8')) as unknown as M
const panel = m.modules['jira:issuePanel'][0]!
expect(panel.resource).toBe('panel')
- expect(panel.title).toBe('FormRec')
+ expect(panel.title).toBe('FormREC')
expect(panel).not.toHaveProperty('render')
const fn = m.modules.function.find((f) => f.key === panel.resolver.function)
expect(fn?.handler).toBe('index.handler')
diff --git a/tests/apps-embeds-oembed.test.ts b/tests/apps-embeds-oembed.test.ts
index 81866d8..ff8950f 100644
--- a/tests/apps-embeds-oembed.test.ts
+++ b/tests/apps-embeds-oembed.test.ts
@@ -170,7 +170,7 @@ describe('the providers fragment', () => {
const providers = JSON.parse(await readFile('apps/oembed/providers.json', 'utf8')) as any[]
expect(providers).toHaveLength(1)
const p = providers[0]
- expect(p).toMatchObject({ provider_name: 'FormRec' })
+ expect(p).toMatchObject({ provider_name: 'FormREC' })
expect(new URL(p.provider_url).protocol).toBe('https:')
const e = p.endpoints[0]
const host = new URL(p.provider_url).host
diff --git a/tests/desktop-native-panels.test.ts b/tests/desktop-native-panels.test.ts
index bd963e0..c246080 100644
--- a/tests/desktop-native-panels.test.ts
+++ b/tests/desktop-native-panels.test.ts
@@ -77,7 +77,7 @@ async function studio(inShell: boolean, before?: (page: Page) => Promise,
}, inShell)
await before?.(page)
await page.goto(`${base}/?token=${TOKEN}#/record`)
- await page.locator('[data-desktop-panel="display"]').waitFor()
+ await page.locator('[data-desktop-panel="display"]').waitFor({ state: 'attached' })
return { page, close: () => context.close() }
}
@@ -85,6 +85,7 @@ describe('the Display and Distractions panels in the desktop app', () => {
it('list the shell\'s displays, pick one, and move nothing', async () => {
await call('/api/desktop/settings', 'PUT', { formrec: 1 })
const { page, close } = await studio(true)
+ await page.locator('[data-inspector-tab="display"]').click()
await page.locator('[data-desktop-display="1920,-400,2560x1440"]').waitFor()
const rows = await page.locator('[data-desktop-panel="display"] [data-desktop-display]').count()
expect(rows).toBe(3)
@@ -107,9 +108,10 @@ describe('the Display and Distractions panels in the desktop app', () => {
it('show what would change, save the switches, and open the one-time set up', async () => {
const { page, close } = await studio(true)
- await page.locator('[data-desktop-distraction-hint="hideSystemUi"]').waitFor()
+ await page.locator('[data-desktop-distraction-hint="hideSystemUi"]').waitFor({ state: 'attached' })
await expect.poll(() => page.locator('[data-desktop-distraction-hint="hideSystemUi"]').textContent()).toContain('desktop icons, menu bar, Dock')
expect(await page.locator('[data-desktop-distraction-hint="quiet"]').textContent()).toContain('Focus')
+ await page.locator('[data-inspector-tab="distractions"]').click()
await page.locator('[data-desktop-distraction="quiet"]').check({ force: true })
await page.locator('[data-desktop-distraction="hideSystemUi"]').check({ force: true })
await expect.poll(async () => (await call('/api/desktop/settings')).quiet).toBe(true)
@@ -133,6 +135,7 @@ describe('the panels in a browser tab', () => {
const { page, close } = await studio(false, (p) => p.addInitScript(() => { delete (window as any).getScreenDetails }))
await expect.poll(() => page.locator('[data-desktop-display-status]').textContent()).toContain('Pick the screen in the browser')
await expect.poll(() => page.locator('[data-desktop-distraction-hint="quiet"]').textContent()).not.toBe('')
+ await page.locator('[data-inspector-tab="display"]').click()
expect(await page.locator('[data-desktop-display-refresh]').isVisible()).toBe(true)
expect(await page.locator('[data-desktop-display-preview]').isVisible()).toBe(true)
await page.screenshot({ path: path.join(SHOTS, 'studio-panels-browser.png') })
@@ -149,6 +152,7 @@ describe('the panels in a browser tab', () => {
] })
}))
await expect.poll(() => page.locator('[data-desktop-display-status]').textContent()).toContain('Allow FormREC to see your displays')
+ await page.locator('[data-inspector-tab="display"]').click()
await page.locator('[data-desktop-display-refresh]').click()
await page.locator('[data-desktop-display="1440,0,2560x1440"]').waitFor()
expect(await page.locator('[data-desktop-display="0,0,2880x1800"] [data-desktop-display-name]').textContent()).toBe('Laptop, 1440 x 900 (main)')
@@ -166,10 +170,10 @@ describe.each([4, 8])('the first paint of the studio at %ix CPU throttling', (ra
it.each([true, false])('moves nothing (in the desktop shell: %s)', async (inShell) => {
await call('/api/desktop/settings', 'PUT', { formrec: 1 })
const { page, close } = await studio(inShell, inShell ? undefined : (p) => p.addInitScript(() => { delete (window as any).getScreenDetails }), rate)
- await page.locator('[data-desktop-distraction-hint="quiet"]').waitFor()
+ await page.locator('[data-desktop-distraction-hint="quiet"]').waitFor({ state: 'attached' })
await expect.poll(() => page.locator('[data-desktop-distraction-hint="quiet"]').textContent()).not.toBe('')
await page.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r))))
- expect(await page.locator('.titlebar-tools [data-tool]').count()).toBe(3)
+ expect(await page.locator('.titlebar-tools [data-tool]').count()).toBe(4)
expect(await moved(page)).toBe('none')
await close()
})
diff --git a/tests/desktop-x11-studio.test.ts b/tests/desktop-x11-studio.test.ts
index 5bb0d68..c0a0e10 100644
--- a/tests/desktop-x11-studio.test.ts
+++ b/tests/desktop-x11-studio.test.ts
@@ -80,6 +80,7 @@ describe.skipIf(Boolean(reason))('the native display feed in the studio', () =>
await cdp.send('Emulation.setCPUThrottlingRate', { rate: 4 })
await page.goto(`${base}/?token=${TOKEN}#/record`)
await page.locator('[data-view="studio"]').waitFor()
+ await page.locator('[data-inspector-tab="display"]').click()
const section = page.locator('[data-desktop-native]')
// In the first frame, before the server has answered.
expect(await section.count()).toBe(1)
diff --git a/tests/e2e-studio.test.ts b/tests/e2e-studio.test.ts
index fca29c9..6665d81 100644
--- a/tests/e2e-studio.test.ts
+++ b/tests/e2e-studio.test.ts
@@ -51,6 +51,7 @@ async function api(path: string, method = 'GET', body?: unknown): Promise {
}
async function takeUntilSaved(page: Page, title: string, recordMs: number, guestCheck?: () => Promise): Promise {
+ await page.locator('[data-inspector-tab="source"]').click()
await page.getByPlaceholder('What this recording is').fill(title)
await page.getByRole('button', { name: 'Record', exact: true }).click()
await page.waitForTimeout(recordMs / 2)
@@ -92,6 +93,7 @@ describe('studio in a browser', () => {
await host.locator('[data-mode="audio"]').click()
await host.getByRole('button', { name: 'Get ready' }).click()
await host.getByText('Ready. Guests can join now.').waitFor()
+ await host.locator('[data-inspector-tab="guests"]').click()
await host.getByText('Let guests join on this network').click()
const link = (await host.locator('.link').first().textContent())!.trim()
await expect.poll(async () => (await host.locator('.code').textContent())?.replace(/\D/g, '').length).toBe(6)
diff --git a/tests/edit-api.test.ts b/tests/edit-api.test.ts
index e20b534..367be06 100644
--- a/tests/edit-api.test.ts
+++ b/tests/edit-api.test.ts
@@ -173,7 +173,7 @@ describe('edit API', () => {
process.env.FORMREC_TTS = path.join(ids.dir, 'no-such-tts')
const none = await call<{ error: string }>(`${ids.walk}/tts`, { startMs: 500, endMs: 1500, text: 'Hello' })
expect(none.status).toBe(400)
- expect(none.body.error).toMatch(/flite or espeak-ng/)
+ expect(none.body.error).toMatch(/built-in voice \(Kokoro\) in Settings, Voice/)
// A stand-in for flite with the same arguments (-t text -o file): FFmpeg writes a tone.
const fake = path.join(ids.dir, 'fake-flite')
await writeFile(fake, `#!/bin/sh\nif [ "$1" = "--version" ]; then exit 0; fi\nexec ${process.env.FORMREC_FFMPEG || 'ffmpeg'} -loglevel error -y -f lavfi -i sine=f=300:d=1.5 "$4"\n`)
diff --git a/tests/extension-manifest.test.ts b/tests/extension-manifest.test.ts
index 08d3311..1fab334 100644
--- a/tests/extension-manifest.test.ts
+++ b/tests/extension-manifest.test.ts
@@ -26,7 +26,7 @@ const JUSTIFIED: Record = {
describe('extension manifest', () => {
it('is Manifest V3 with the fields Chrome, Edge and Firefox need', () => {
expect(manifest.manifest_version).toBe(3)
- expect(manifest.name).toBe('FormRec')
+ expect(manifest.name).toBe('FormREC')
expect(manifest.version).toMatch(/^\d+\.\d+\.\d+$/)
expect(manifest.background.service_worker).toBe('background.js')
expect(manifest.background.type).toBe('module')
@@ -169,6 +169,6 @@ describe('extension packing', () => {
expect(names).toContain('background.js')
expect(names).toContain('icons/icon-128.png')
expect(names.every((n) => !n.startsWith('.') && !n.includes('..'))).toBe(true)
- expect(manifestBack.name).toBe('FormRec')
+ expect(manifestBack.name).toBe('FormREC')
})
})
diff --git a/tests/live-e2e.test.ts b/tests/live-e2e.test.ts
index 9446d2c..7996fee 100644
--- a/tests/live-e2e.test.ts
+++ b/tests/live-e2e.test.ts
@@ -100,7 +100,7 @@ maybe('live streaming from the studio', () => {
const page = await openStudio()
try {
// The key is typed in the panel once; after saving it is nowhere in the page.
- await page.locator('[data-live-panel] summary').click()
+ await page.locator('[data-inspector-tab="stream"]').click()
await page.locator('[data-live-name]').fill('Local server')
await page.locator('[data-live-url]').fill(`rtmp://127.0.0.1:${port}/live`)
await page.locator('[data-live-key]').fill(KEY)
diff --git a/tests/live-link-e2e.test.ts b/tests/live-link-e2e.test.ts
index 0cf33ad..f01e86e 100644
--- a/tests/live-link-e2e.test.ts
+++ b/tests/live-link-e2e.test.ts
@@ -306,7 +306,7 @@ maybe('the live link in Chromium', () => {
}).observe({ type: 'layout-shift', buffered: true })
})
await ready(studio.page)
- await studio.page.locator('[data-live-panel] summary').click()
+ await studio.page.locator('[data-inspector-tab="stream"]').click()
const panel = studio.page.locator('[data-live-link]')
await panel.waitFor()
await studio.page.waitForTimeout(1500)
diff --git a/tests/mcp-http-server.test.ts b/tests/mcp-http-server.test.ts
index 2e0fe4f..c664036 100644
--- a/tests/mcp-http-server.test.ts
+++ b/tests/mcp-http-server.test.ts
@@ -15,6 +15,7 @@ import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/
import { buildServer, CORE_TOOLS } from '../src/mcp/server.js'
import { createMcpHttp, serveMcpHttp, type McpHttpServer } from '../src/mcp/http.js'
import { mcpToken, rotateMcpToken, mcpTokenFile } from '../src/mcp/token.js'
+import { writeConsent } from '../src/mcp/consent.js'
import { Library } from '../src/store/library.js'
import type { Recording } from '../src/model/recording.js'
import { tempDir } from './helpers.js'
@@ -93,6 +94,10 @@ describe('formrec mcp --http', () => {
const list = (await client.callTool({ name: 'formrec_list', arguments: {} })) as Text & { structuredContent?: { total: number; recordings: { id: string }[] } }
expect(list.isError).toBeFalsy()
expect(list.structuredContent).toMatchObject({ total: 1, recordings: [{ id: 'tour-1' }] })
+ const asked = (await client.callTool({ name: 'formrec_comment_add', arguments: { recordingId: 'tour-1', text: 'Hello over HTTP', atMs: 500 } })) as Text
+ expect(asked.isError).toBe(true)
+ expect(asked.content[0]!.text).toContain('no FormREC window is open to ask')
+ await writeConsent(dataDir, { policy: 'allowed', agents: [] })
const added = (await client.callTool({ name: 'formrec_comment_add', arguments: { recordingId: 'tour-1', text: 'Hello over HTTP', atMs: 500 } })) as Text
expect(added.isError).toBeFalsy()
const seen = (await client.callTool({ name: 'formrec_engagement', arguments: { recordingId: 'tour-1' } })) as Text
diff --git a/tests/missing-apply.test.ts b/tests/missing-apply.test.ts
index 3161c83..1a46459 100644
--- a/tests/missing-apply.test.ts
+++ b/tests/missing-apply.test.ts
@@ -121,7 +121,9 @@ describe('item 35: the synthetic avatar', () => {
await writeFile(path.join(bin, 'flite'), `#!/bin/sh\nif [ "$1" = "--version" ]; then echo flite-fake; exit 0; fi\nout=""\nwhile [ $# -gt 0 ]; do if [ "$1" = "-o" ]; then out="$2"; fi; shift; done\ncp "${sample}" "$out"\n`)
await chmod(path.join(bin, 'flite'), 0o755)
const prev = process.env['PATH']
+ const prevTts = process.env['FORMREC_TTS']
process.env['PATH'] = `${bin}${path.delimiter}${prev ?? ''}`
+ process.env['FORMREC_TTS'] = path.join(bin, 'flite')
try {
const { has: probe } = await import('../src/features/ai/media.js')
expect(await probe('flite')).toBe(true) // nothing in this file asked for an engine before
@@ -138,6 +140,8 @@ describe('item 35: the synthetic avatar', () => {
expect(off.json.avatar.on).toBe(false)
} finally {
process.env['PATH'] = prev
+ if (prevTts === undefined) delete process.env['FORMREC_TTS']
+ else process.env['FORMREC_TTS'] = prevTts
}
})
diff --git a/tests/notices.test.ts b/tests/notices.test.ts
index 39e227a..8128437 100644
--- a/tests/notices.test.ts
+++ b/tests/notices.test.ts
@@ -151,7 +151,7 @@ describe('third-party notices generator', () => {
describe('the notices in the app', () => {
it('readNotices finds the file beside package.json, and refuses a missing one', async () => {
- expect((await readNotices())?.startsWith('FormRec third-party notices\n')).toBe(true)
+ expect((await readNotices())?.startsWith('FormREC third-party notices\n')).toBe(true)
expect(await readNotices(path.join(await tempDir(), NOTICES_NAME))).toBeUndefined()
})
diff --git a/tests/player-controls-e2e.test.ts b/tests/player-controls-e2e.test.ts
index 31cf1bc..4f5d977 100644
--- a/tests/player-controls-e2e.test.ts
+++ b/tests/player-controls-e2e.test.ts
@@ -168,7 +168,7 @@ describe.each(ENGINES)('the player in %s', { timeout: 240_000 }, (engine) => {
// Hovering names the time and the chapter there.
await page.mouse.move(seek.x + seek.width * 0.6, seek.y + seek.height / 2)
await expect.poll(() => page.locator('[data-pc-tip]').isVisible()).toBe(true)
- expect(await page.locator('.rv-pc-tip-time').textContent()).toMatch(/^0:4\d$/)
+ expect(await page.locator('.rv-pc-tip-time').textContent()).toMatch(/^0:5\d$/)
expect((await page.locator('.rv-pc-tip-title').textContent())!.length).toBeGreaterThan(0)
await shot(page, `player-${engine}-scrub`)
// The scrubber is a slider: arrows step five seconds and say where it is.
diff --git a/tests/studio-e2e.test.ts b/tests/studio-e2e.test.ts
index a5060e8..7af2d98 100644
--- a/tests/studio-e2e.test.ts
+++ b/tests/studio-e2e.test.ts
@@ -147,7 +147,7 @@ describe('the 0.4.0 studio', () => {
it('records a canvas: a composed picture with the camera kept as its own track and hidden from the player bubble', async () => {
await withStudio({}, async (page) => {
- await page.locator('[data-studio-scene] summary').click()
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-mode="canvas"]').click()
await page.locator('[data-studio-heading]').fill('Quarterly update')
await page.locator('[data-studio-words]').fill('Three things changed this quarter.')
@@ -221,7 +221,7 @@ describe('the 0.4.0 studio', () => {
await withStudio({}, async (page) => {
const panel = page.locator('[data-studio-recover-panel]')
await attr(panel, 'data-unsaved').toMatch(/^[1-9]/)
- await panel.locator('summary').click()
+ await page.locator('[data-inspector-tab="takes"]').click()
await shot(page, 'studio-recover')
await page.locator(`[data-studio-recover="${s.id}"]`).click()
await page.waitForURL(new RegExp(`#/f/${s.id}`), { timeout: 20_000 })
diff --git a/tests/studio-proof-e2e.test.ts b/tests/studio-proof-e2e.test.ts
index a4de1f8..28edc31 100644
--- a/tests/studio-proof-e2e.test.ts
+++ b/tests/studio-proof-e2e.test.ts
@@ -235,13 +235,13 @@ describe('R1-43 teleprompter', () => {
it('shows the notes in the prompter band, scrolls it while recording at the speed setting, stops on pause and keeps it out of the picture', async () => {
await withStudio({ notes: NOTES, promptSpeed: 10 }, async (page) => {
- await page.locator('[data-studio-scene] summary').click()
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-mode="canvas"]').click()
await page.locator('[data-studio-backdrop]').selectOption('plain')
await page.locator('[data-studio-camera-place]').selectOption('none')
await page.locator('[data-studio-heading]').fill('Quarterly update')
await page.locator('[data-studio-words]').fill('Three things changed.')
- await page.locator('[data-studio-notes-panel] summary').click()
+ await page.locator('[data-inspector-tab="prompter"]').click()
expect(await page.locator('[data-studio-notes]').inputValue()).toBe(NOTES)
const band = page.locator('[data-studio-prompter]')
const text = page.locator('[data-studio-prompter-text]')
@@ -298,7 +298,7 @@ describe('R1-43 teleprompter', () => {
it('scrolls slower at a lower speed setting', async () => {
await withStudio({ notes: NOTES, promptSpeed: 2 }, async (page) => {
await ready(page, 'audio')
- await page.locator('[data-studio-notes-panel] summary').click()
+ await page.locator('[data-inspector-tab="prompter"]').click()
await teleprompter(page)
const band = page.locator('[data-studio-prompter]')
await attr(band, 'data-shown').toBe('true')
@@ -331,7 +331,7 @@ describe('R1-57 Slides layout', () => {
it('draws the current slide with the camera beside it, steps with next and previous, and records what it drew', async () => {
await withStudio({}, async (page) => {
- await page.locator('[data-studio-scene] summary').click()
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-mode="presentation"]').click()
await page.locator('[data-studio-slides-file]').setInputFiles(COLOURS.map((c, i) => ({ name: `slide-${i + 1}.png`, mimeType: 'image/png', buffer: solidPng(c) })))
const count = page.locator('[data-studio-slide-count]')
diff --git a/tests/studio-slides-e2e.test.ts b/tests/studio-slides-e2e.test.ts
index a48d4cb..c879f84 100644
--- a/tests/studio-slides-e2e.test.ts
+++ b/tests/studio-slides-e2e.test.ts
@@ -106,7 +106,7 @@ describe('R1-57 slide chapters and keys', () => {
const keyTo = async (key: string, want: string) => { await page.keyboard.press(key); await expect.poll(() => count.textContent()).toBe(want) }
// Outside the Slides layout the keys do nothing (the layout starts as another).
- await page.locator('[data-studio-scene] summary').click()
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-studio-slides-file]').setInputFiles(SLIDES.map((s) => ({ name: s.name, mimeType: 'image/png', buffer: solidPng(s.rgb) })))
await page.locator('[data-mode="audio"]').click()
await page.locator('body').click({ position: { x: 5, y: 5 } })
@@ -125,6 +125,8 @@ describe('R1-57 slide chapters and keys', () => {
await keyTo('Space', 'Slide 2 of 3')
await keyTo('PageUp', 'Slide 1 of 3')
// Typed into the title field, the keys belong to the field.
+ await page.locator('[data-inspector-tab="source"]').click()
+ await page.locator('body').click({ position: { x: 5, y: 5 } })
await page.locator('[data-studio-title]').fill('Deck')
await page.keyboard.press('ArrowLeft')
await page.keyboard.type(' x')
@@ -150,11 +152,13 @@ describe('R1-57 slide chapters and keys', () => {
await keyTo('ArrowRight', 'Slide 3 of 3')
stamps.push(Date.now() - t0)
await page.waitForTimeout(2500)
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-studio-slide="prev"]').click()
await expect.poll(() => count.textContent()).toBe('Slide 2 of 3')
stamps.push(Date.now() - t0)
await page.waitForTimeout(2500)
// Keys typed in the title field during the take change no slide and add no mark.
+ await page.locator('[data-inspector-tab="source"]').click()
await page.locator('[data-studio-title]').focus()
for (const key of ['ArrowLeft', 'ArrowRight', 'PageUp', 'PageDown']) await page.keyboard.press(key)
await page.keyboard.type(' ')
@@ -200,7 +204,7 @@ describe('R1-57 slide chapters and keys', () => {
await page.goto(`${base}/?token=${TOKEN}#/record`)
await page.locator('[data-view="studio"]').waitFor()
const count = page.locator('[data-studio-slide-count]')
- await page.locator('[data-studio-scene] summary').click()
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-studio-slides-file]').setInputFiles(SLIDES.map((s) => ({ name: s.name, mimeType: 'image/png', buffer: solidPng(s.rgb) })))
await page.locator('[data-mode="presentation"]').click()
await expect.poll(() => count.textContent()).toBe('Slide 1 of 3')
@@ -258,7 +262,7 @@ describe('R1-57 slide chapters and keys', () => {
await page.goto(`${base}/?token=${TOKEN}#/record`)
await page.locator('[data-view="studio"]').waitFor()
const count = page.locator('[data-studio-slide-count]')
- await page.locator('[data-studio-scene] summary').click()
+ await page.locator('[data-inspector-tab="scene"]').click()
await page.locator('[data-studio-slides-file]').setInputFiles(SLIDES.map((s) => ({ name: s.name, mimeType: 'image/png', buffer: solidPng(s.rgb) })))
await page.locator('[data-mode="presentation"]').click()
await expect.poll(() => count.textContent()).toBe('Slide 1 of 3')
diff --git a/tests/transcripts-whisper-e2e.test.ts b/tests/transcripts-whisper-e2e.test.ts
index dc8af66..e2ca572 100644
--- a/tests/transcripts-whisper-e2e.test.ts
+++ b/tests/transcripts-whisper-e2e.test.ts
@@ -97,6 +97,7 @@ describe('live captions in the studio', () => {
expect(await strip(page).evaluate((el) => getComputedStyle(el).visibility)).toBe('hidden')
expect(await page.locator('[data-transcripts-live-note]').textContent()).toBe('Off')
+ await page.locator('[data-inspector-tab="guests"]').click()
await page.locator('[data-transcripts-live-toggle]').setChecked(true, { force: true })
await expect.poll(() => page.locator('[data-transcripts-live-note]').textContent(), { timeout: 15_000 }).toContain('never in the recording')
expect(await strip(page).getAttribute('data-state')).toBe('ready')
diff --git a/tests/voice-master-e2e.test.ts b/tests/voice-master-e2e.test.ts
index 7b99090..c8a1cb5 100644
--- a/tests/voice-master-e2e.test.ts
+++ b/tests/voice-master-e2e.test.ts
@@ -86,13 +86,15 @@ describe('Voice master in a browser', () => {
it('records a lossless master with no processing, counts the clips and drops script chapters', async () => {
const page = await studio()
await page.locator('[data-mode="audio"]').click()
+ await page.locator('[data-inspector-tab="sound"]').click()
await page.locator('[data-sound-preset]').selectOption('voice-master')
await page.locator('[data-sound-roomtone-field]').click()
expect(await page.locator('[data-sound-roomtone]').isChecked()).toBe(false)
- await page.locator('[data-studio-script-panel] summary').click()
+ await page.locator('[data-inspector-tab="prompter"]').click()
await page.locator('[data-script-text]').fill('First paragraph to read.\n\nSecond paragraph to read.')
await page.getByRole('button', { name: 'Get ready' }).click()
await page.getByText(/^Ready\. Guests can join now\./).waitFor({ timeout: 15_000 })
+ await page.locator('[data-inspector-tab="sound"]').click()
// The pre-roll check hears -30 dBFS peaks (and a clap), so it asks for a change.
await page.locator('[data-sound-check]').click()
@@ -105,6 +107,7 @@ describe('Voice master in a browser', () => {
await expect.poll(async () => page.locator('[data-levels="large"]').getAttribute('data-hint'), { timeout: 10_000 }).toBe('quiet')
expect(await page.locator('[data-levels-hint]').textContent()).toMatch(/you are quiet: move closer or turn the input up/i)
+ await page.locator('[data-inspector-tab="source"]').click()
await page.getByPlaceholder('What this recording is').fill('Voice master')
await page.getByRole('button', { name: 'Record', exact: true }).click()
await page.locator('[data-view="studio"][data-state="recording"]').waitFor({ timeout: 15_000 })
diff --git a/web/HASHOUT_LOG.md b/web/HASHOUT_LOG.md
index b5f5626..88d4b07 100644
--- a/web/HASHOUT_LOG.md
+++ b/web/HASHOUT_LOG.md
@@ -2,8 +2,8 @@
The client's decisions and why, newest last. Read before changing `web/`.
-Current build version: v0.10.0
-Last updated: 2026-12-01 · v0.10.0 the Form shell: menu bar, Home, Preferences and the agent dock
+Current build version: v0.11.0
+Last updated: 2026-12-01 · v0.11.0 the voice-over, the Studio inspector, the Preferences dialog and the agent dock
## v0.2.0 · the family shell, Home and the in-app demos {#shell-home-demos}
@@ -225,3 +225,128 @@ The templates are FormREC's own starting points, of the two kinds of file the ap
- `product-demo.md` loaded through the studio's Script file field shows "6 paragraphs".
Recording the walkthroughs headless was not run, because the recorder browser is not installed on this machine.
+
+## v0.11.0 · Dock and macOS menus {#dock-menus-0110}
+
+- refers-to: src/menus.ts `MENUS` (View, Agent Dock) `dockShown` `mountMenus`, src/dock-adapter.ts `formrecDock` `openSettings`, src/prepaint.ts, styles/menu.css; ../src-tauri/src/traffic_lights.rs, ../src-tauri/src/main.rs `open_main`, ../src-tauri/capabilities/main.json
+- logged: v0.11.0 · 2026-12-01 20:00 EST (dock-menus)
+
+Why the owner saw no dock on macOS in 0.10.0. The dock was there: `mountDock(.shell)` mounts FormVis's dock (web/src/dock/, the shell, Claude Code, Codex, Cursor and Antigravity tabs, Ask), the backend serves `/api/terminal` through `@lydell/node-pty`, which the desktop build stages and checks, and `dock-prepaint.js` applies the stored open state and size before the first paint. But it starts closed (`formrec.dock` has no `open: true` until someone opens it), and nothing on screen opened it: the title bar had no agent button, View, Agent Dock showed no shortcut (Cmd+J worked only from the dock's own key handler) and no tick, and the Show and Hide row sat in Preferences. Nothing in the window pointed at the dock. The macOS menu bar in the owner's screenshot (FormREC, File, Edit, View, Window, Help) is the window's own `MENUS` list sent by `menu_set`, so line 4 already held. Only the menu's rows lacked the shortcut and the state.
+
+Changed:
+- View, Agent Dock now has `keys: 'Mod+J'` and `checked: dockShown`. It shows Cmd J or Ctrl J in the window's bar and is the Cmd+J accelerator and a check item in the macOS bar. The tick follows `data-ft-dock`, which the dock writes. In the window the page still takes Cmd/Ctrl+J first (the dock's `isDockChord` prevents the default), so the dock toggles once. Removed: `{ id: 'view.dock', label: 'Agent Dock' },`.
+- The dock's "Outside agents" link in its More menu now opens Preferences at Agents (`openSettings: () => openSettings('agents')`). It was hidden because the adapter gave no `openSettings`.
+- The agent button and the "Show the agent dock" row are the shell role's markup. They run `view.dock` through `formrec:command` and read `data-ft-dock` (rec011-requests.md).
+
+The MCP consent bridge (FormVis's and FormDeck's) was ported later the same evening, when the coordinator assigned src/mcp to this role. The reasoning is in ../src/HASHOUT_LOG.md {#mcp-consent}. In the window, `outsideAgents` in dock-adapter.ts reads `GET /api/mcp/consent/stream` with fetch and the token, and feeds the dock's `Consent` dialog (`dock/consent.ts`, unused until now). It answers with `POST /api/mcp/consent/answer`, and gives the adapter `consent` and `storedChoice`. The Preferences Agents section gained two static rows under Show the agent dock:
+- Outside agents (`data-outside-set` ask, allowed, blocked; Ask pressed in the markup, the default);
+- Always allowed (`data-outside-agents`, a one-line `settings-value`, and Forget, `data-outside-forget`).
+
+`outsideAgents` marks both from the stream's `state` events, which change only `aria-pressed`, text and `disabled`. Clicks are delegated on the document, so the rows work without any change to preferences.ts.
+
+macOS title bar (standard line 5). The main window is now an overlay title bar with the native title hidden (src-tauri/src/main.rs), so the page's 40 px title row is the title bar. Before this, the window had the system's own title bar with "FormREC" in it above the page's row. `prepaint.js` adds `html.has-overlay-titlebar` on the macOS desktop app before the first paint. `menu.css` then pads the title bar's left by `--traffic-w: 78px`, unless `html.is-fullscreen` is set, which the shell sets and clears on every resize (macOS hides the lights in full screen). `mountMenus` marks the title bar `data-tauri-drag-region="deep"` on the macOS desktop app, so its empty parts move the window and a double click zooms it, while buttons and links inside it keep their clicks (Tauri's drag script skips clickable elements). `capabilities/main.json` allows the two window commands that script calls. Linux and Windows keep the system frame and get none of this.
+
+## v0.11.0 · Preferences dialog and top bar {#prefs-topbar-0110}
+
+- refers-to: index.html (`.titlebar-tools`, `[data-dock-toggle]`, `[data-prefs-open]`, `.side-brand-text`, `dialog.cv-prefs-dlg[data-settings]`), app.css (`.titlebar-tools`, `.icon-btn`), styles/prefs.css (new), src/settings.ts `RAIL_GROUP` `mark` `go` `drawWire` `wireRail` `pressOpeners` `openSettings`, src/preferences.ts `markDock` `wirePreferences`
+- logged: v0.11.0 · 2026-12-01 19:40 EST (shell)
+
+The owner said FormREC's gear was not FormPortal's and its Settings had no wire. In 0.10.0 the title bar's right side had home, theme and a stroked gear, all `.icon-button`. Settings was a dialog whose sections were one long scroll beside a rail, and it had no wire.
+
+Top bar (standard line 1). The far right is now FormPortal's `.icon-btn` row (30 px square, 1 px soft border, 7 px radius, 6 px gap, 16 px icons) in FormPortal's order. Home and theme come first, then the agent (robot) button, then FormPortal's exact gear path from fp75 index.html line 59 with `data-prefs-open`, `aria-haspopup="dialog"` and `aria-expanded`. The workspace picker keeps its name and gets the same border, radius and height (`.icon-btn-text`). `.titlebar-tools` reserves `4 * 30 + 3 * 6` px, so the row is final in the first frame. The agent button dispatches `formrec:command` with `view.dock`, the dock-menus role's toggle. Its pressed look comes from `:root[data-ft-dock="open"]` from the first frame, and `aria-pressed` follows the same attribute through the existing MutationObserver. The sidebar head shows the icon, the name and the version (`[data-side-version]`, filled from `/api/info` into a line that already holds its height). Removed: `by nodemode.ai `, `.titlebar-tools { ... width: calc(var(--ctl-md) * 3 + var(--space-1) * 2); ... }`, and the gear `` with its stroked cog.
+
+Preferences (standard line 2). It is FormVis's and FormPortal's `cv-prefs` frame, written for FormREC on the native ``:
+- `showModal` gives the dimmed window (`::backdrop`, `--bg-scrim`), the focus trap and Esc. A click on the backdrop and the Close and Done buttons close it.
+- The rail floats at the frame's left. With 36 sections, its tabs are 34 px and grouped under General, Recording, Sharing, Workspace, Agents and connections, and More (`RAIL_GROUP`; an unknown id goes to More, before About). It folds to icons, and the choice is kept in `formrec.prefsRailCollapsed`.
+- The wire `svg.cv-prefs-wire` (shade and line paths) runs from the active tab to the port at the header divider. `drawWire` runs on rAF when a section is chosen, on open, on resize and on rail scroll. It changes only the two `d` attributes and the port's transform, as in FormVis's `drawWire`.
+- One section is shown at a time: `.settings-page.is-current` is displayed and the rest are `display: none`, so choosing a tab replaces one card inside a frame whose size never changes. FormVis and FormPortal scroll one long column with a scroll spy, but standard line 2 asks for one section at a time, and 36 cards would be the long page the owner objected to.
+- There is no open or close animation, as in FormVis (its `Dialog.open` only unhides the scrim).
+
+Every feature section (`settingsSections`, Voice included) is still built once at start into the closed dialog, with the same `data-settings-tab` and `data-settings-page` hooks, so the existing tests and openers (gear, sidebar Settings, Cmd/Ctrl+, in menus.ts, the app menu's Preferences command, Home's settings menu) work unchanged. Removed from app.css: the `.settings`, `.settings[open]`, `.settings::backdrop`, `.settings-rail`, `.settings-nav`, `.settings-tab*`, `.settings-frame`, `.settings-head`, `.settings-title`, `.settings-pages` and `.settings-page` rules, and their five lines in the 760 px media query, for example `.settings[open] { display: grid; grid-template-columns: var(--settings-rail-w) minmax(0, 1fr); gap: var(--space-4); }` and `.settings-page:last-child { min-height: 100%; }`. Removed from settings.ts: `spy()` and its scroll listener, the `spyMuted` flag, and the header comment that described "one scrolling page".
+
+Checked at 4x CPU throttling in Chrome at 1440 by 900 and 1280 by 800, on a scratch build served on port 5655. Load, opening by gear, sidebar, Ctrl+, and the app menu, choosing each of the 36 tabs, closing, and toggling the dock with the agent button all gave zero layout-shift entries. Folding the rail to icons and back moves the rail's tabs. That is the fold's purpose, and Chrome reports it with `hadRecentInput: true`, so it is left out of the layout-shift score.
+
+## v0.11.0 · Record pages: the stage for Screen, Camera and Audio only {#record-pages-0110}
+
+- refers-to: src/record-stage.ts `recordStage` `guidesArt` `showSource` `draw` `onBlock` `setMic` `follow` `release` `ZONE_WORDS`, src/features/record-pages.ts (the `record-pages` studio plugin, order 2000), styles/record-pages.css, the `import './record-pages.js'` line in src/features/index.ts
+- logged: v0.11.0 · 2026-12-01 20:10 EST (record-pages)
+
+The owner said Screen, Camera and Audio only had the Studio's long right column, and that making things in FormREC needed far better UI than that, in the manner of FormCut, FormVFX and FormCraft. The sidebar's Record items open `#/record?mode=screen|camera|audio`, which app.ts draws as `studioView(preset)`. The three pages are the Studio with a preset layout, so the studio role owns their grid, the shared inspector (src/inspector.ts), the transport and the Record button. Before this release the side column was 5044 px tall in a viewport of 836 px (1440 by 900) or 736 px (1280 by 800).
+
+This role adds what the references put on their stage and the Studio did not have, through the studio plugin slot `stage()`, with no change to studio.ts:
+- Screen and Screen with camera: a chip at the stage's top right with the preview's size and frame rate (`1920 x 1080 · 30 fps`), the way FormCut's preview head shows them. It is read from `video.main` in `[data-stage-screen]` on its `loadedmetadata` and `resize` events (caught on the stage) and when the stage box changes children.
+- Camera: framing guides over the preview (thirds, the centre mark, an eye line at 12 percent and a 5 percent safe frame) in one SVG stretched with `preserveAspectRatio="none"` and `vector-effect: non-scaling-stroke`, with a toggle at the stage's top right. The choice is kept in `formrec.record.guides`. The guides dim while a take records.
+- Audio only: the stage becomes a scrolling waveform of the microphone (10 ms columns from the capture tap's 50 ms blocks, newest on the right), drawn on a canvas on dB height against the meter's -60 dBFS floor. The target band (-18 to -12 dBFS) is shaded, the red line is at -3 dBFS, and the bars take the meter's zone colours. A large peak readout, the zone in words, a clip flag and the device's name sit on the stage. It reads its own level engine (level-engine.ts `openEngine`) on the take's microphone from `studioMic()` (studio-control.ts), checked when the root's `data-state` or `data-layout` changes, and only when `data-layout` is `audio`; back on `idle` the engine is closed. The studio's level strip, clip count and level check are untouched.
+
+No layout shift. Every layer is built in the view's first frame, absolutely positioned in the stage at `--z-local-2` (under the prompter and the countdown), and shown by CSS from the studio root's `data-layout` and `data-state`, through `visibility` only. The chip has a fixed width (`--rp-chip-w`), and the readout's number and zone words have fixed widths, because the first runs showed the chip's row and the dBFS unit moving as the text changed. The layer starts `hidden` and is shown on the next frame only once its stylesheet is applied, so without the stylesheet nothing lands in the stage's flow. On the Audio layout the studio's state chip (`.rv-stage-top`) is lifted to `--z-local-4` so the opaque waveform stage does not cover it.
+
+The scale's labels are placed with `data-db` rules, not a custom property in a `style` attribute: the page's content security policy drops inline style attributes, so the first version stacked every label at the top.
+
+The first version took the stream from the plugins' `mic()` hook, removed as `mic(stream) { current?.setMic(stream); return stream }`. The studio skips that hook under Voice master (nothing touches the microphone), so the waveform went blank there. `studioMic()` gives the raw stream under Voice master and the processed one otherwise.
+
+## v0.11.0 · Studio inspector: an icon tab rail, one group at a time, and a stage with its main actions {#studio-inspector-0110}
+
+- refers-to: src/inspector.ts `createInspector` (new), styles/inspector.css (new, `@import` at the top of styles/studio.css), src/studio.ts `studioView` `placeholder` `openThen` `PLUGIN_TAB` `splitEffects`, src/studio-panels.ts `disclose`, src/studio-script.ts, src/studio-sound.ts `describe`, src/studio-control.ts `setStudioMic` `studioMic`, src/studio-icons.ts, styles/studio.css
+- logged: v0.11.0 · 2026-12-01 20:40 EST (studio)
+
+The owner, on a MacBook Air at 1440 by 900, said the Studio made you "scroll down a MILE" for the tools on the right, and asked for FormCut, FormVFX and FormCraft's way of making things. In 0.10.0 the side column stacked sixteen panels, 5044 px tall in an 836 px view, so the view scrolled 4311 px, and the centre was a black box saying "Choose what to record, then Get ready."
+
+The inspector (src/inspector.ts) is FormVFX's and FormCut's pattern: a 44 px rail of 32 px icon tabs (`role=tablist`, vertical, roving tabindex, arrows, Home and End, the label as tooltip and name) beside one panel at a time (`role=tabpanel`, a 36 px head with the group's name, one scrolling body). The last tab is kept in `localStorage['formrec.inspector.']` and read while the inspector is built, so the first frame shows it. Every panel sits in one grid cell; a switch flips `hidden` on two panels and `aria-selected` on two tabs, and changes nothing else. The body keeps `scrollbar-gutter: stable`, so a panel that scrolls does not narrow its fields. Badges are absolutely positioned and shown with `visibility`. Panels inside are drawn flat (no card border), and a panel whose title repeats the tab's name hides its head unless the head holds a control.
+
+The Studio's tabs, grouped by separators: Source, Display, Phone; Camera, Sound, Scene; Prompter, Voice; Guests and captions, Live stream, Distractions; Takes; More. Source holds title, capture, quality, camera, microphone and Refresh devices first. Plugin panels go to a tab by `data-inspector-tab` on the panel, else by plugin id (`PLUGIN_TAB`), else More; an empty tab is dropped. The effects panel (1481 px) is split by its two `.fx-subhead` headings: the camera part stays in its own element in Camera, the Bubble part moves to Scene and the Microphone part to Sound, as the same nodes with their listeners; with any other number of headings it stays whole. `marks.el` and the live panel are `details`, opened when placed, since the tab is now the disclosure. Measured at 1440 by 900: Source, Display, Sound, Prompter, Guests, Distractions and Takes need no scroll, Phone and Scene 13 px, Live stream 130 px, Camera 151 px; at 1280 by 800 the most is Camera at 251 px.
+
+The mode picker left the inspector for a toolbar above the stage, one row of seven. The stage is a 16:9 box fitted into the space left (`.studio-viewer`, `container-type: size`, width `min(100cqw, 100cqh * 16 / 9)`), so the bubble and the overlays keep their geometry. With nothing open it shows the layout's mark, its name, a short line and three actions: Choose source (selects the Source tab), Record now (Get ready then Record, as `studio.start`) and Preview (Get ready), with `Alt+Shift+L` under them, on a lighter surface instead of black. The empty state is built once; a layout change replaces only the mark and the title text. The stage buttons have their own names so the transport's "Get ready" and "Record" stay unique. The transport keeps every button and data attribute; Record is a pill, the secondary tools are icon buttons with visually hidden labels in one row with the compact meter, and the guests' strip is 63 px.
+
+`studioMic()` gives plugins the take's microphone, raw under Voice master, for record-pages' waveform (its ask).
+
+Removed: the side column (`h('aside', { class: 'rv-studio-side' }, panel('Source', 'film', [...]), sound.panel, h('details', { class: 'rv-panel rv-disclose', 'data-studio-scene': '' }, ...), notes.el, script.panel, recover.el, guests.el, ...pluginPanels, shots.el, panel('Tracks', ...))`), the visible view head (the title bar already says Studio; the `h1` stays for screen readers, visually hidden, and the line "Every source records to its own track and uploads as it goes." is gone), `field('Record', mode.el)`, `marks.el` under the stage, the placeholder's `screenBox.replaceChildren(h('div', { class: 'rv-stage-empty' }, ...))`, the `details` and `summary` of the notes, unsaved takes, screenshots, script and scene panels (now sections), and longer help texts, for example "Notes stay on this page and are never part of the recording. Show them on the stage as a teleprompter that scrolls while you record." and "The microphone as Effects sets it, recorded as Opus. For voice training or a later mix, choose Voice master."
+
+Checked at 4x CPU throttling in Chrome at 1440 by 900 and 1280 by 800 on a scratch build (port 5684): load, choosing every tab by mouse and by keyboard, and Get ready with the live preview starting gave a layout-shift score of 0 with no entries.
+
+Rows that do not apply are hidden, not dimmed (verify's advisory, 2026-12-01 22:50 EST). `devicesFor` sets `hidden` on Capture and Computer sound when the layout captures no screen, on Camera without a camera, on Quality in Audio only, and on Region unless the capture is Part of the screen; the `is-off` classes stay. A field pair with one hidden field takes the full width, and an empty pair is not drawn. `devicesFor` runs while the view is built, so a page's first frame is final. A layout change in the toolbar is the person's own input, and shows or hides those rows in the same frame. Audio only (`#/record?mode=audio`) opens on Sound, and its Sound tab starts with an Input section that holds the Microphone picker and Refresh devices. On that page Source keeps Title and the rows for other layouts. Choose source on the stage reveals the Microphone picker in Audio only. Camera (`?mode=camera`) keeps Source first, with Title, Quality, Camera and Microphone. Each page still remembers its own last tab. Checked at 4x CPU throttling on Audio, Camera and Screen, at 1440 by 900 and 1280 by 800, dark and light: layout-shift score 0, no entries.
+
+The empty stage's line and its first button follow the layout (`EMPTY_COPY`, the coordinator's review, 2026-12-01 23:55 EST). Audio only reads "Choose a microphone, then Preview to see its level here." with Choose microphone. Camera reads "Choose a camera and microphone, then Preview to see yourself here." with Choose camera. Screen layouts say what to share, Meeting asks for the call's window, Slides has Add slides and Canvas has Edit canvas. The last two open the Scene tab. Removed: the one line for every layout, "Choose a source, then Preview to see it here.", and the button always labelled Choose source. The Sound tab now runs, top to bottom: Microphone and Refresh devices (in Audio only, in place of the earlier Input section with its own head), Microphone preset, Noise suppression (effects' Off, Light gate and ML control, moved there from the effects part), Check level, room tone, then the effects part's meter, Browser noise filter, Echo cancellation and Automatic gain, with that part's "Microphone" sub-head hidden. The browser's switch was also called "Noise suppression", so in features/effects.ts it is "Browser noise filter", "The browser's built-in filter, applied while recording" (was `switchRow('Noise suppression', ..., 'The browser\'s own filter, applied while recording')`). The Sound tab of Audio only overflows 69 px at 1440 by 900, where it was 135, and 169 px at 1280 by 800. Layout shift is 0 at 4x on all three pages at both sizes.
+
+Tests that opened a Studio panel by its `summary` or filled a field now in another tab select the tab first (`[data-inspector-tab="..."]`), and waits on panels inside a hidden tab use `state: 'attached'`; no assertion changed.
+
+## v0.11.0 · Voice-over in the player, the editor and Settings, Voice {#voiceover-timeline-0110}
+
+- refers-to: src/voiceover-panel.ts `voiceoverPanel`, `voiceoverLayer`, `voiceoverLanes`; src/voiceover-settings.ts `voiceSettings`; src/features/voiceover.ts; src/edit-editor.ts (the lanes); styles/voiceover.css
+- logged: v0.11.0 · 2026-12-01 EST
+
+The player's Voice-over tab (not in demos, which are read only) lists the lines in time order: the time (plays from there), the chapter's title or "Added line", the state (Not made, Changed, Runs 0.7 s over, or the length), the words, the line's own voice and speed (empty means the recording's), Listen, Make this line and Clear. Listen plays the made file, or for a line not made or changed a preview from POST /api/voiceover/-/preview that is not saved. Make speaks the lines not made or changed one request at a time, so the status says "Speaking line 2 of 5"; All again speaks every line; From notes opens a modal dialog with the Studio's teleprompter notes or the AI speaker notes to turn into lines; Captions downloads the WebVTT; Add places a line at the playhead. The recording's voice, speed and On sit above.
+
+Playback: a stage layer (hidden, it draws nothing) holds one audio element per made line and follows the player as sync.ts's Timeline follows a late track: silent before its start and after its end, corrected past 0.15 s of drift, the player's rate copied, checked on play, pause, seek and every 100 ms while playing. While a line speaks and Duck is on, every other media element of the player is set to its volume times the ducked level, and put back after, only if nobody changed it meanwhile (the volume control wins). The panel and the layer share each new state through a window event, so a regenerated line plays at once without a reload. The editor gets the lines as Timeline lanes beside the microphones, so the edit's preview speaks them in step; it does not duck (the export does).
+
+Settings, Voice: the engine's state and setup progress in bytes, Set up, Cancel, Remove, the platform note, the default voice (grouped as the engine groups them), speed, Duck the recording, Ducked level (shown in dB), Even loudness and a Preview. The shell's Preferences dialog places the `voice` section in its Recording group.
+
+Zero layout shift: every row is 104 px (three fixed lines), the list's height comes from the window (`clamp(row, 100vh - 590px, 314px)`), never from the lines, the action row reserves two button rows, and every text is a fixed-height slot filled in place; rows are added, moved and removed by step id, never rebuilt. Checked at 4x CPU throttling in Chrome at 1440 by 900 and 1280 by 800 on a scratch build (port 5657): opening the tab and the lines arriving, and opening Settings, Voice gave no layout-shift entries; the list, the Add row and the status line kept the same boxes before and after the data; playback had each line's audio playing only inside its span and the picture's volume at 0.25 while a line spoke and 1 between lines; the editor played the first line at 1.9 s with the later ones waiting. Removed from edit-editor.ts: nothing; one line and one import were added after `if (lanes.length === 0) throw ...`.
+
+The Studio's Voice tab (studio plugin `voiceover`, `data-inspector-tab="voice"`, `voiceStudioPanel`): one fixed-height line with the built-in voice's state, the Settings voice and speed (saved to Settings, Voice), a Preview of a typed line or else the prompter's first 400 characters, and a note that after Save the take's chapters become lines in the player's Voice-over tab. Checked the same way at both sizes: the panel's box is the same before and after the status arrives, no layout-shift entries, 54 voices listed, the preview plays.
+
+The editor's Replace with speech no longer names flite or espeak-ng (the lead's ask). Removed from edit-editor.ts:
+
+ : 'No text-to-speech program was found. Install flite or espeak-ng (or set FORMREC_TTS) to replace speech.'),
+
+Verify's FAIL (ae73b8b): the setup bar sat beside the state, 140 px past a 260 px state, so it ran 15 px out of the section card and showed as a stray line while nothing was set up. It now sits under the state, in the same 260 px column (`.vo-set-engine` is a column), its 6 px box always there and `visibility: hidden` unless `data-running="true"`, which `showEngine` sets from the setup job. The row's height comes from its two-line hint, so the column fits in it. Removed from voiceover.css:
+
+ .vo-settings .vo-set-engine { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
+ .vo-settings .vo-progress { flex: none; width: 140px; height: 6px; }
+
+The Studio panel now sets `data-studio-tab="voice"` (studio's rule since 2bdebf6) in place of `data-inspector-tab="voice"`, which studio.ts used to rename.
+
+Ducking in the previews (d9e3ab4, the lead's and coordinator's ask): the player stepped the picture's volume to the ducked level the moment a line started, and the editor did not duck at all. Both now follow the export's envelope (`duckGain`, the same formula as media.ts `duckEnvelope`): the level from Settings, Voice (0.25 by default) inside each line, a 150 ms ramp down before it and a 400 ms ramp up after it, recomputed every 40 ms while playing. `Ducker` remembers each element's own volume, takes a change made meanwhile (the volume control) as the new one, and puts it back on pause, at the end and when the view leaves. In the editor, `voiceoverLanes` gets the recording's own lanes (the picture and the microphones, copied before the voice lanes join) and the view's leave signal, and reads the time from the lead lane as the Timeline does. Removed from voiceover-panel.ts:
+
+ const ducked = new Map()
+ const set = el.volume * state.duckLevel
+ duck(speaking && Boolean(state?.duck))
+ const start = (): void => { clearInterval(timer); timer = setInterval(follow, 100); follow() }
+
+Removed from edit-editor.ts:
+
+ for (const lane of await voiceoverLanes(id, media)) { lanes.push(lane); stageParts.push(lane.el) }
+
+Checked at 4x CPU throttling in Chrome on a scratch build (port 5657), with lines at 1.0 to 4.71 s, 4.0 to 6.21 s and 7.0 to 9.58 s:
+- Settings, Voice, idle, at 1440 by 900 and 1280 by 800, dark and light: the bar is hidden, ends at x 1226 inside a card that ends at 1243 (1146 against 1163), sits inside its row, keeps its first-frame box, and there are no layout-shift entries. With `data-running="true"` it is visible in the same box.
+- Player and editor, the picture's volume sampled every 70 ms while playing: 1 until 0.85 s, then 0.78 to 0.83 at 0.93 s, 0.25 from 1.1 s through 6.2 s, back up through 0.34, 0.48, 0.63 and 0.78 to 1 by 6.67 s, down again into 7.0 s, 0.25 until 9.6 s, then up to 1 by 10.0 s. On pause it is 1 again.
+- The Studio panel is in the Voice tab, with one rail match for `[data-inspector-tab="voice"]`.
diff --git a/web/app.css b/web/app.css
index 1f1fc2c..080f247 100644
--- a/web/app.css
+++ b/web/app.css
@@ -107,8 +107,14 @@ a { color: var(--accent); text-decoration: none; }
.shell { display: grid; grid-template-rows: var(--titlebar-h) minmax(0, 1fr) var(--statusbar-h); height: 100vh; }
.titlebar { position: relative; z-index: var(--z-chrome); display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2); background: var(--bg-primary); border-bottom: 1px solid var(--line); user-select: none; }
.titlebar-title { position: absolute; left: 50%; translate: -50% 0; font-size: var(--fs-13); font-weight: 600; color: var(--text-secondary); pointer-events: none; white-space: nowrap; }
-/* Three tools (home, theme, settings): the width is reserved, because the browser may paint the title bar before the parser reaches the last button. */
-.titlebar-tools { display: flex; justify-content: flex-start; gap: var(--space-1); flex: none; width: calc(var(--ctl-md) * 3 + var(--space-1) * 2); margin-left: auto; }
+.titlebar-tools { --icon-btn: 30px; display: flex; justify-content: flex-start; gap: 6px; flex: none; width: calc(var(--icon-btn) * 4 + 6px * 3); margin-left: auto; }
+.icon-btn { position: relative; display: inline-grid; place-items: center; flex: none; inline-size: var(--icon-btn, 30px); block-size: var(--icon-btn, 30px); padding: 0; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer; }
+.icon-btn .ic { inline-size: 16px; block-size: 16px; }
+.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--bg-tertiary); color: var(--text); }
+.icon-btn[aria-pressed="true"], :root[data-ft-dock="open"] .icon-btn[data-dock-toggle] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
+.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
+.titlebar .menu-button.icon-btn-text { display: inline-flex; gap: 6px; inline-size: auto; block-size: 30px; padding: 0 var(--space-2); border: 1px solid var(--border-soft); border-radius: 7px; background: var(--bg-secondary); color: var(--text-secondary); }
+.titlebar .menu-button.icon-btn-text:hover, .titlebar .menu-button.icon-btn-text[aria-expanded="true"] { background: var(--bg-tertiary); color: var(--text); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: var(--ctl-md); height: var(--ctl-md); padding: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--bg-tertiary); }
.icon-button:focus-visible, .menu-button:focus-visible, .side-item:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@@ -280,27 +286,6 @@ main:has(> .home) { padding: var(--space-8) var(--space-10); }
@media (max-width: 1100px) { .home-hero { grid-template-columns: auto minmax(0, 1fr); } .hero-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
@media (max-width: 640px) { main:has(> .home) { padding: var(--space-4); } .home-hero { grid-template-columns: 1fr; } }
.push { margin-left: auto; }
-/* Settings (FormVis's and FormPortal's Preferences): a rail of sections floating beside one scrolling page. */
-.settings { width: min(880px, calc(100vw - 2 * var(--space-6))); height: min(86vh, 720px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
-.settings[open] { display: grid; grid-template-columns: var(--settings-rail-w) minmax(0, 1fr); gap: var(--space-4); }
-.settings::backdrop { background: var(--bg-scrim); }
-/* With every feature's section the rail is taller than the dialog: it keeps the dialog's height and scrolls. */
-.settings-rail { align-self: start; max-height: 100%; overflow-y: auto; padding: var(--space-2); background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-window); }
-.settings-nav { display: flex; flex-direction: column; gap: var(--space-1); padding: 6px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
-.settings-tab { display: flex; align-items: center; gap: 10px; width: 100%; height: var(--ctl-xl); padding: 0 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--bg-tertiary); box-shadow: var(--shadow-sm); color: var(--text-secondary); font-size: var(--fs-13); font-weight: 500; text-align: left; white-space: nowrap; }
-.settings-tab .ic { color: var(--accent); }
-/* Feature sections bring their own icons at their own sizes and colours: every tab's icon is one size, in the accent. */
-.settings-tab > svg { --settings-icon: 18px; flex: none; width: var(--settings-icon); height: var(--settings-icon); color: var(--accent); }
-.settings-tab.is-active > svg { color: currentColor; }
-.settings-tab:hover { color: var(--text); background: var(--bg-hover); }
-.settings-tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
-.settings-tab.is-active .ic { color: currentColor; }
-.settings-frame { display: grid; grid-template-rows: 44px minmax(0, 1fr); min-height: 0; background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-window); overflow: hidden; }
-.settings-head { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
-.settings-title { flex: 1; margin: 0; font-size: var(--fs-14); font-weight: 600; color: var(--text); }
-.settings-pages { position: relative; display: flex; flex-direction: column; gap: var(--space-6); min-height: 0; padding: var(--space-4) var(--space-5) var(--space-5); overflow-y: auto; scrollbar-gutter: stable; background: var(--bg-primary); }
-.settings-page { display: flex; flex-direction: column; gap: var(--space-3); }
-.settings-page:last-child { min-height: 100%; }
.settings-sechead { margin: 0; font-size: var(--fs-16); font-weight: 600; }
.settings-group { display: flex; flex-direction: column; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.settings-row { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: var(--space-2) var(--space-4); }
@@ -329,11 +314,6 @@ main:has(> .home) { padding: var(--space-8) var(--space-10); }
.settings-notices summary { cursor: pointer; font-weight: 600; }
.settings-notices-text { height: 360px; margin: var(--space-2) 0 0; padding: var(--space-3); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-tertiary); border-radius: var(--radius); font: var(--fs-12)/1.45 var(--mono); }
@media (max-width: 760px) {
- .settings[open] { grid-template-columns: var(--ctl-xl) minmax(0, 1fr); gap: var(--space-2); }
- .settings-rail { padding: 2px; }
- .settings-nav { padding: 2px; }
- .settings-tab { justify-content: center; padding: 0; }
- .settings-tab span { display: none; }
.settings-row { flex-wrap: wrap; }
.settings-value { max-width: 100%; }
}
diff --git a/web/index.html b/web/index.html
index 2ca6413..7c3b579 100644
--- a/web/index.html
+++ b/web/index.html
@@ -11,6 +11,7 @@
+
@@ -49,11 +50,13 @@
+
+
@@ -68,7 +71,7 @@