Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
da6c530
fix: keep synced file names and folders inside the shared recording f…
gbarnai Nov 29, 2026
85e453c
fix: keep local-only and link entries out of the team folder sync
gbarnai Nov 29, 2026
b5ce726
fix: refuse short file names and confirm exact names in the team fold…
gbarnai Nov 29, 2026
58bc5a2
fix: start Windows agent commands without cmd.exe where possible
gbarnai Nov 29, 2026
25dc715
feat: phone sources, adb helpers and a scrcpy client
gbarnai Nov 29, 2026
39cb32c
feat: a phone as the take's picture
gbarnai Nov 29, 2026
510dd14
feat: record an iPhone or iPad over USB in the desktop app
gbarnai Nov 29, 2026
8ab3f2c
feat: the studio's Phone panel and sending a video from the phone
gbarnai Nov 29, 2026
af58c29
docs: notices and decision log for phone capture
gbarnai Nov 29, 2026
86a257d
feat: lossless microphone master and capture metadata on the server
gbarnai Nov 29, 2026
e4ebbe5
feat: Voice master preset and always-visible dBFS levels in the studio
gbarnai Nov 29, 2026
c629b26
feat: script mode in the studio
gbarnai Nov 29, 2026
21cf2a2
feat: Export with sound and labelled track files in the player
gbarnai Nov 29, 2026
6cdac46
test: Voice master, levels, script chapters and Export with sound in …
gbarnai Nov 29, 2026
b6456ae
docs: Voice master, levels and script mode in the README and HASHOUT …
gbarnai Nov 29, 2026
b361c5b
Merge remote-tracking branch 'phone/feat/phone-capture' into feat/voi…
gbarnai Nov 29, 2026
8109aed
fix: place team folder files under their exact name and never over an…
gbarnai Nov 29, 2026
17c78eb
fix: replace synced files in one rename and stage them under a fresh …
gbarnai Nov 29, 2026
1dccaa7
fix: stage synced files in a private folder before placing them
gbarnai Nov 29, 2026
b0eb670
Merge the Voice master, levels and phone capture features
gbarnai Nov 29, 2026
b937a17
feat: player links open one recording's player with a rotatable key
gbarnai Nov 29, 2026
60e4008
docs: player links in the README, the API list, the skills and the HA…
gbarnai Nov 29, 2026
d77e126
fix: keep player links working with a damaged secret file or no hard …
gbarnai Nov 29, 2026
3679618
ci: give the test job 35 minutes for the larger suite
gbarnai Nov 29, 2026
cfebbfa
ci: install FFmpeg and the tools the test job's media tests need
gbarnai Nov 30, 2026
952bd95
fix: keep the studio's microphone and camera lists true to the hardware
gbarnai Nov 30, 2026
b0d6d13
ci: split the test job into four shards and merge their coverage
gbarnai Nov 30, 2026
304bae7
fix: verify a staged sync file by its bytes, and fit the tests to Lin…
gbarnai Nov 30, 2026
d49ee5d
test: say what the share page's video was doing when a key's play sta…
gbarnai Nov 30, 2026
6c59b62
fix: keep a play or pause pressed while a quality loads
gbarnai Nov 30, 2026
19a4069
test: keep background renditions and posters out of the avatar share …
gbarnai Nov 30, 2026
40e70ee
fix: keep clipped screenshot frames out of the high-quality capture
gbarnai Nov 30, 2026
62e665f
fix: hold the capture while the runner takes a step's baseline picture
gbarnai Nov 30, 2026
12fdff2
test: let the restarted RTMP destination's server take a retried conn…
gbarnai Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/formrec-harness/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Its MCP server, named `formrec`, is `formrec mcp` (or the installed app's `formr
- **Recordings are the person's.** They are private (folders 0700, files 0600). Never delete one without being asked; `formrec_delete` is the only core tool that removes anything, and it wants the id twice.
- **Trust the annotations.** A tool marked read only changes nothing; one marked destructive or open world (it reaches FormCut, the network or a website) needs the person's go-ahead when they did not ask for exactly that.
- **Studio takes need a person.** Cameras, microphones and guests are the person's, in the FormRec window; an agent can explain, list and read them back but does not start one.
- **Give links, not guesses.** Player links come from the tools (`player` in `formrec_record`, `formrec_get`, `formrec_demos`); they carry the run's token and open while `formrec serve` or the desktop app runs.
- **Give links, not guesses.** Player links come from the tools (`player` in `formrec_record`, `formrec_get`, `formrec_demos`); a recording's link carries that recording's player key (never the run's token), opens its player only, and works while `formrec serve` or the desktop app runs and until the person rotates player links in Settings.

## References

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/formrec-harness/references/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ A target is `{ "role": "button", "name": "New Project" }` (best: survives restyl
- `video.webm` for walkthroughs, `track-<id>.webm` per source for studio takes.
- `captions.vtt`, `chapters.vtt`; `walkthrough.json` for agent-made recordings.

The player opens a recording at `<player base>#/f/<id>` and a demo at `<player base>#/demo/<id>`. `formrec url` prints the player base with the run's token.
The player opens a recording at `<player base>#/f/<id>` and a demo at `<player base>#/demo/<id>`. A link a tool returns for a recording is `<origin>/?player=<key>#/f/<id>`: the key opens that recording's player and nothing else, and Settings, Agents, Player links, Rotate (or `formrec url --rotate-player-links`) stops every link given so far. `formrec url` prints the app's own address with the run's token, for the person at the computer.

## Variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

112 tools.
113 tools.

## Tools

Expand Down Expand Up @@ -108,6 +108,7 @@ The tools FormRec's feature modules add next to the core tools in tools.md: edit
| `formrec_share_stop` | Stop sharing a recording | yes, removes or overwrites | Stop sharing: the link stops working for everyone at once and cannot be brought back (a new share gets a new link). The recording itself is kept. |
| `formrec_shares` | List shared recordings | no | Every shared recording with its privacy, links, expiry, views and available qualities (`qualities`). Give query to filter by title. |
| `formrec_signed_in_states` | Signed-in states | no | The signed-in states the person saved with `formrec login URL --name NAME` (names and when they were saved, never their contents), and whether the recorder browsers and FFmpeg are installed. Use a name as "auth": {"state": NAME}. If the site you need is missing, ask the person to run formrec login for it. |
| `formrec_studio_refresh_devices` | Refresh the studio devices | yes | Rebuild the open studio's microphone and camera lists (after a device is plugged in, or when they show generic names such as "Microphone 1") and return what it found: the names, which one is chosen, and whether the browser still needs permission. The studio must be open on this computer. askPermission: true lets the studio briefly ask the person for microphone (and camera, when the layout uses it) permission so real names appear; nothing is recorded and the devices are released at once. Without it, a list that needs permission is reported as permission: needed. |
| `formrec_studio_state` | Studio state | no | What the FormRec studio is doing now: idle, ready, countdown, recording, paused, rewind, stopped or saved; the layout (screen-camera, screen, camera, audio, meeting, presentation, canvas), capture target, quality, the open take id and its elapsed time. Read it before telling a person to record, or to check a take is running. |
| `formrec_task_add` | Add a task to a recording | yes | Add a task (an action item viewers can check off), optionally at a moment of the recording. |
| `formrec_task_done` | Check a task off | yes | Mark a recording's task done, or not done with done: false. |
Expand Down Expand Up @@ -743,6 +744,10 @@ Returns structured content: `removed`.

No parameters.

### formrec_studio_refresh_devices

- `askPermission` (optional): boolean. briefly ask the person for permission when the names are hidden (default false)

### formrec_studio_state

No parameters.
Expand Down
6 changes: 3 additions & 3 deletions .agents/skills/formrec-harness/references/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Returns structured content: `note`, `demos`.

- `id`: string. recording id from formrec_list or formrec_record

Returns structured content: `formrec`, `id`, `title`, `summary`, `source`, `owner`, `createdAt`, `updatedAt`, `version`, `mode`, `video`, `tracks`, `pauses`, `durationMs`, `viewport`, `codebase`, `chapters`, `keys`, `clipOf`, `variantOf`, `files`, `player`.
Returns structured content: `formrec`, `id`, `title`, `summary`, `source`, `owner`, `createdAt`, `updatedAt`, `version`, `mode`, `video`, `tracks`, `pauses`, `durationMs`, `viewport`, `codebase`, `chapters`, `keys`, `clipOf`, `variantOf`, `capture`, `files`, `player`.

### formrec_guide

Expand Down Expand Up @@ -90,7 +90,7 @@ Returns structured content: `valid`, `title`, `steps`, `commit`, `problems`, `de

## Demos

Open one at `<player base>#/demo/<id>` while FormRec runs (`formrec_demos` returns the full link with the run's token).
Open one at `<player base>#/demo/<id>` while FormRec runs (`formrec_demos` returns the full link; demos need no token).

| Id | Title | Kind | Chapters | Point a person at it for |
| --- | --- | --- | --- | --- |
Expand All @@ -99,4 +99,4 @@ Open one at `<player base>#/demo/<id>` while FormRec runs (`formrec_demos` retur

## Command line equivalents

`formrec validate FILE`, `record FILE [--base-url URL] [--headed]`, `list`, `url` (the player base with the token), `serve [--codebase DIR] [--repo-url URL] [--open]`, `agents install|status|sync`. Output is the same JSON the tools return. The guide, the demos and the feature tools are MCP only.
`formrec validate FILE`, `record FILE [--base-url URL] [--headed]`, `list`, `url` (the app's address with the run's token; `--rotate-player-links` stops every player link given so far), `serve [--codebase DIR] [--repo-url URL] [--open]`, `agents install|status|sync`. Output is the same JSON the tools return. The guide, the demos and the feature tools are MCP only.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Points a person at the demos that ship with FormRec. Use when the p

## Find them

`formrec_demos` lists every demo that ships with FormRec: `id`, `title`, `kind` (`walkthrough` or `studio`), `shows` (what is in it), `pointAt` (who it is for), `chapters` (id, title, start), `durationMs`, `tracks`, the `route` (`#/demo/<id>`) and `player`, the full link with the run's token. `references/tools.md` has the same list as a table.
`formrec_demos` lists every demo that ships with FormRec: `id`, `title`, `kind` (`walkthrough` or `studio`), `shows` (what is in it), `pointAt` (who it is for), `chapters` (id, title, start), `durationMs`, `tracks`, the `route` (`#/demo/<id>`) and `player`, the full link (demos need no token). `references/tools.md` has the same list as a table.

Never invent a demo id: take it from `formrec_demos`.

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/formrec-harness/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Its MCP server, named `formrec`, is `formrec mcp` (or the installed app's `formr
- **Recordings are the person's.** They are private (folders 0700, files 0600). Never delete one without being asked; `formrec_delete` is the only core tool that removes anything, and it wants the id twice.
- **Trust the annotations.** A tool marked read only changes nothing; one marked destructive or open world (it reaches FormCut, the network or a website) needs the person's go-ahead when they did not ask for exactly that.
- **Studio takes need a person.** Cameras, microphones and guests are the person's, in the FormRec window; an agent can explain, list and read them back but does not start one.
- **Give links, not guesses.** Player links come from the tools (`player` in `formrec_record`, `formrec_get`, `formrec_demos`); they carry the run's token and open while `formrec serve` or the desktop app runs.
- **Give links, not guesses.** Player links come from the tools (`player` in `formrec_record`, `formrec_get`, `formrec_demos`); a recording's link carries that recording's player key (never the run's token), opens its player only, and works while `formrec serve` or the desktop app runs and until the person rotates player links in Settings.

## References

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/formrec-harness/references/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ A target is `{ "role": "button", "name": "New Project" }` (best: survives restyl
- `video.webm` for walkthroughs, `track-<id>.webm` per source for studio takes.
- `captions.vtt`, `chapters.vtt`; `walkthrough.json` for agent-made recordings.

The player opens a recording at `<player base>#/f/<id>` and a demo at `<player base>#/demo/<id>`. `formrec url` prints the player base with the run's token.
The player opens a recording at `<player base>#/f/<id>` and a demo at `<player base>#/demo/<id>`. A link a tool returns for a recording is `<origin>/?player=<key>#/f/<id>`: the key opens that recording's player and nothing else, and Settings, Agents, Player links, Rotate (or `formrec url --rotate-player-links`) stops every link given so far. `formrec url` prints the app's own address with the run's token, for the person at the computer.

## Variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

112 tools.
113 tools.

## Tools

Expand Down Expand Up @@ -108,6 +108,7 @@ The tools FormRec's feature modules add next to the core tools in tools.md: edit
| `formrec_share_stop` | Stop sharing a recording | yes, removes or overwrites | Stop sharing: the link stops working for everyone at once and cannot be brought back (a new share gets a new link). The recording itself is kept. |
| `formrec_shares` | List shared recordings | no | Every shared recording with its privacy, links, expiry, views and available qualities (`qualities`). Give query to filter by title. |
| `formrec_signed_in_states` | Signed-in states | no | The signed-in states the person saved with `formrec login URL --name NAME` (names and when they were saved, never their contents), and whether the recorder browsers and FFmpeg are installed. Use a name as "auth": {"state": NAME}. If the site you need is missing, ask the person to run formrec login for it. |
| `formrec_studio_refresh_devices` | Refresh the studio devices | yes | Rebuild the open studio's microphone and camera lists (after a device is plugged in, or when they show generic names such as "Microphone 1") and return what it found: the names, which one is chosen, and whether the browser still needs permission. The studio must be open on this computer. askPermission: true lets the studio briefly ask the person for microphone (and camera, when the layout uses it) permission so real names appear; nothing is recorded and the devices are released at once. Without it, a list that needs permission is reported as permission: needed. |
| `formrec_studio_state` | Studio state | no | What the FormRec studio is doing now: idle, ready, countdown, recording, paused, rewind, stopped or saved; the layout (screen-camera, screen, camera, audio, meeting, presentation, canvas), capture target, quality, the open take id and its elapsed time. Read it before telling a person to record, or to check a take is running. |
| `formrec_task_add` | Add a task to a recording | yes | Add a task (an action item viewers can check off), optionally at a moment of the recording. |
| `formrec_task_done` | Check a task off | yes | Mark a recording's task done, or not done with done: false. |
Expand Down Expand Up @@ -743,6 +744,10 @@ Returns structured content: `removed`.

No parameters.

### formrec_studio_refresh_devices

- `askPermission` (optional): boolean. briefly ask the person for permission when the names are hidden (default false)

### formrec_studio_state

No parameters.
Expand Down
6 changes: 3 additions & 3 deletions .claude/skills/formrec-harness/references/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Returns structured content: `note`, `demos`.

- `id`: string. recording id from formrec_list or formrec_record

Returns structured content: `formrec`, `id`, `title`, `summary`, `source`, `owner`, `createdAt`, `updatedAt`, `version`, `mode`, `video`, `tracks`, `pauses`, `durationMs`, `viewport`, `codebase`, `chapters`, `keys`, `clipOf`, `variantOf`, `files`, `player`.
Returns structured content: `formrec`, `id`, `title`, `summary`, `source`, `owner`, `createdAt`, `updatedAt`, `version`, `mode`, `video`, `tracks`, `pauses`, `durationMs`, `viewport`, `codebase`, `chapters`, `keys`, `clipOf`, `variantOf`, `capture`, `files`, `player`.

### formrec_guide

Expand Down Expand Up @@ -90,7 +90,7 @@ Returns structured content: `valid`, `title`, `steps`, `commit`, `problems`, `de

## Demos

Open one at `<player base>#/demo/<id>` while FormRec runs (`formrec_demos` returns the full link with the run's token).
Open one at `<player base>#/demo/<id>` while FormRec runs (`formrec_demos` returns the full link; demos need no token).

| Id | Title | Kind | Chapters | Point a person at it for |
| --- | --- | --- | --- | --- |
Expand All @@ -99,4 +99,4 @@ Open one at `<player base>#/demo/<id>` while FormRec runs (`formrec_demos` retur

## Command line equivalents

`formrec validate FILE`, `record FILE [--base-url URL] [--headed]`, `list`, `url` (the player base with the token), `serve [--codebase DIR] [--repo-url URL] [--open]`, `agents install|status|sync`. Output is the same JSON the tools return. The guide, the demos and the feature tools are MCP only.
`formrec validate FILE`, `record FILE [--base-url URL] [--headed]`, `list`, `url` (the app's address with the run's token; `--rotate-player-links` stops every player link given so far), `serve [--codebase DIR] [--repo-url URL] [--open]`, `agents install|status|sync`. Output is the same JSON the tools return. The guide, the demos and the feature tools are MCP only.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Points a person at the demos that ship with FormRec. Use when the p

## Find them

`formrec_demos` lists every demo that ships with FormRec: `id`, `title`, `kind` (`walkthrough` or `studio`), `shows` (what is in it), `pointAt` (who it is for), `chapters` (id, title, start), `durationMs`, `tracks`, the `route` (`#/demo/<id>`) and `player`, the full link with the run's token. `references/tools.md` has the same list as a table.
`formrec_demos` lists every demo that ships with FormRec: `id`, `title`, `kind` (`walkthrough` or `studio`), `shows` (what is in it), `pointAt` (who it is for), `chapters` (id, title, start), `durationMs`, `tracks`, the `route` (`#/demo/<id>`) and `player`, the full link (demos need no token). `references/tools.md` has the same list as a table.

Never invent a demo id: take it from `formrec_demos`.

Expand Down
58 changes: 55 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ permissions:
contents: read

jobs:
test:
# The suite (real recordings, the studio in Chromium, FFmpeg media and live tests) takes about an hour as one
# run: a hosted Linux runner for a private repository has two cores, so vitest runs one test file at a time.
# Four runners each take a quarter of the files and write a blob report with their coverage; `test` merges them.
test-shard:
name: test shard ${{ matrix.shard }}/4
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- name: Apt mirror fallback
if: runner.os == 'Linux'
Expand All @@ -36,9 +44,53 @@ jobs:
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
# The media tests make and read their files with FFmpeg and FFprobe; the picture guide's PDF test reads the
# PDF with pdftotext and pdfimages (poppler-utils). Tesseract, Xvfb and the phone tools skip when absent.
- name: FFmpeg and poppler for the media tests
run: sudo apt-get update && sudo apt-get install -y ffmpeg poppler-utils
- run: npm run build
- name: Tests and coverage for this shard
run: >-
npx vitest run --coverage --shard=${{ matrix.shard }}/4
--reporter=default --reporter=blob --outputFile.blob=.vitest-reports/blob-${{ matrix.shard }}.json
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: vitest-blob-${{ matrix.shard }}
path: .vitest-reports/
include-hidden-files: true
retention-days: 1
if-no-files-found: error

# Type checks, then every shard's results and coverage as one report (what `npm run coverage` prints).
test:
needs: test-shard
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check
- run: npm run build
- run: npm run coverage
- uses: actions/download-artifact@v4
with:
pattern: vitest-blob-*
path: .vitest-reports
merge-multiple: true
- name: Merged results and coverage
run: npx vitest run --mergeReports=.vitest-reports --coverage
- name: Every shard finished
if: ${{ needs.test-shard.result != 'success' }}
run: |
echo "A test shard did not pass: ${{ needs.test-shard.result }}"
exit 1

# The desktop shell compiles (as formcut's checks.yml does): FormCompiler builds the real app from
# setup/build_release; this only proves src-tauri still compiles, is formatted and passes its unit test.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
dist/
coverage/
.vitest-reports/
.formrec-test/
*.log
.DS_Store
Expand Down
Loading
Loading