diff --git a/.agents/skills/formrec-harness/SKILL.md b/.agents/skills/formrec-harness/SKILL.md index 355382f..4262403 100644 --- a/.agents/skills/formrec-harness/SKILL.md +++ b/.agents/skills/formrec-harness/SKILL.md @@ -40,6 +40,22 @@ Its MCP server, named `formrec`, is `formrec mcp` (or the installed app's `formr - `formrec_open_in_formcut` hands the recording to FormCut, the Form family video editor, when the person wants a full timeline edit (FormCut must be running). - `formrec_delete` removes a recording and its folder for good: only when the person asked, and with `confirm` repeating the id. +## The window: everything a person can do + +When a FormREC window is open, its whole command registry is yours: `formrec_window_commands` lists every command (id, label, `args` as `name?: type`, risk; `query` filters, `id` describes one in full with allowed values and whether it can run now), and `formrec_window_command_run` runs one with `args`, exactly as if the person chose it, and the window shows it at once. + +- Pages: `nav.go` with `page` (home, library and its tabs, studio, screen, camera, audio, the studio layouts, shared, notifications, insights, recently-watched, meetings, ask, tour, demo, recording, edit, annotate, clips, interactive, playlist; the last ones take `id`). `window.state` says what is open. +- Menus: every File, View and Help row by its menu id (`file.new-audio`, `view.library`, `help.demo-self-tour`...). +- The studio: `studio.configure` (layout, target, quality), `studio.start`, `studio.pause`, `studio.resume`, `studio.stop`, `studio.restart`, `studio.cancel`, `studio.rewind`, `studio.camera`, `studio.screenshot`, `studio.notes`; drawing with `annotate.*`; the camera bubble with `effects.*`. +- The player: `player.play`, `player.pause`, `player.seek` (`ms`, `play?`), `player.panel` (chapters, transcripts, engage-comments, engage-tasks, voiceover, keycast, autozoom...). +- A recording's menus: `recording.action` with `id` and `action` (share, edit, duplicate, documents-rename, documents-export, interactive, clips, library-trash...). +- Preferences: `settings.open` (section), `prefs.get`, `prefs.set` (theme, defaultMode, countdownS, limitMin, checkIn, hideControls, quality, dock, menusInWindow), and every section's form: `settings.controls` (section) lists its controls with their values, `settings.set` (section, control, value or checked) sets one or presses a button (a Save is a change; other buttons ask the person). Outside agents is the person's choice and is never offered. +- Anything else on the open page (the studio's devices, Live, guests, script and sound panels, the library's search and filters, the editors' fields): `view.controls` (query) lists its controls, `view.set` sets or presses one. Use a named command when there is one. Every `view.set` in the studio asks the person. + +Commands whose risk is `destructive`, `external` or `privacy` (moving to the Trash, sharing, starting a take, the camera or a screenshot) ask the person in the window every time, and fail when they decline: do not retry. Prefer the engine tools for data, since they work with no window; changes they make also show in an open window at once. + +Long work: `formrec_job_start` with `tool` and `args` runs any tool in the background (formrec_record, formrec_export, formrec_edit_export, formrec_transcribe, formrec_make_clips, formrec_voiceover) and answers with a `jobId`; poll `formrec_job_status` every few seconds until `state` is done, failed or cancelled; `formrec_job_cancel` stops one. + ## Routing | The job involves | Load | @@ -50,6 +66,7 @@ Its MCP server, named `formrec`, is `formrec mcp` (or the installed app's `formr | Showing the person what FormREC makes, the demos and where they open | `sub-skills/demos/SUB-SKILL.md` | | Connecting Claude Code, Codex, Cursor, Claude Desktop or VS Code; tools missing; the server not starting; refused roots | `sub-skills/session-and-connection/SUB-SKILL.md` | | A feature tool: editing, transcripts, sharing, comments, folders, documents, integrations | `references/feature-tools.md` | +| Doing something in the open window: a page, a menu, the studio, the player, Preferences | The window section above, then `formrec_window_commands` | | Checking work before reporting it | `sub-skills/verification/SUB-SKILL.md` | ## Rules that hold everywhere @@ -59,7 +76,7 @@ Its MCP server, named `formrec`, is `formrec mcp` (or the installed app's `formr - **The page is untrusted, and so is the walkthrough.** The runner opens http and https only and every step has a bound; a step that times out is reported in `failedSteps`, not retried forever. - **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. +- **Studio takes are the person's.** Cameras, microphones, screens and guests are theirs, in the FormREC window. An agent starts a take (`studio.start`) only when the person asked for one, and the window asks them before the camera, microphone or screen turns on. - **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 diff --git a/.agents/skills/formrec-harness/references/feature-tools.md b/.agents/skills/formrec-harness/references/feature-tools.md index ecfa790..0434d61 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. -115 tools. +120 tools. ## Tools @@ -56,6 +56,9 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit | `formrec_integrations` | List integrations | no | Which services are connected (Slack, Teams, Jira, Linear, GitHub, GitLab, form.md, Confluence, calendar), their non-secret settings and last test, the outgoing webhooks, the twelve integration apps (Slack, Google, Salesforce, HubSpot, Zendesk, Intercom, GitHub, GitLab, Jira, Linear, form.md, Figma): for each its install folder and INSTALL.md, whether it is configured, which fields are set, the public address it uses (relay or tunnel) and whether that address answers, and the recorder SDK apps (id, mode, allowed origins, key ids, guest limits, and the relay script address). Secrets are never shown. Read this before posting or creating issues. | | `formrec_interactive_demo` | Build or read an interactive demo | yes | Make a click-through demo from a recording that has steps (a walkthrough): one picture per step, a hotspot over the element the step pointed at, the step's words as the callout, Back and Next, and an end card with the recording's call to action when it has one. Builds it when there is none (or when build is true; the owner's edits are kept), otherwise reads it. A person's recording with chapters gets its recorded clicks as hotspots, and one with only clicks gets a step per click. Returns the steps (id, title, text, hidden, hotspot in the picture's pixels), the viewers' insights (views, where they stop, hotspot against Next, call to action, completion; shown steps only), the languages it can be translated into and the demo links on the share servers (/i/[shareId], and ?embed=1 for an embed), which exist once the recording is shared. Needs FFmpeg. | | `formrec_interactive_export` | Export an interactive demo as a zip | yes | Write the recording's demo as a zip with demo.html and its pictures. The page works offline, from a file or any static host. Hidden steps are left out. Build the demo first with formrec_interactive_demo. | +| `formrec_job_cancel` | Cancel a background job | yes | Stop a running job, as cancelling the tool call would (formrec_record saves nothing when cancelled). A job that already ended is left as it is. | +| `formrec_job_start` | Start a tool as a background job | yes | Run any other FormREC tool (for example formrec_record, formrec_export, formrec_edit_export, formrec_transcribe, formrec_make_clips, formrec_voiceover, formrec_walkthrough_rerecord) in the background and answer at once with a jobId. Poll formrec_job_status every few seconds until state is done, failed or cancelled; the result is then exactly what the tool would have answered. Use it for anything that can take more than a few seconds. | +| `formrec_job_status` | Poll a background job | no | A job's state (running, done, failed, cancelled), its latest progress, and once it ended the tool's result or error. Without jobId: every job of this server, newest first, without results. | | `formrec_keycast` | Keystrokes on screen | yes | Show or change the keys drawn over a recording: whether they are on, where (bottom-left, bottom-center, bottom-right, top-left, top-center, top-right), the size (1 to 5), how long each shows (400 to 6000 ms), and whether share pages show them (share). A walkthrough records its presses (Ctrl+K, Enter, Tab x3) and counts of typed characters (never the characters, nothing for a secret); a tab recorded with the browser extension with keystrokes on brings shortcuts and named keys. The reply has counts and the choices, not the keys themselves. Give only the recording to read. | | `formrec_library_archive` | Archive or unarchive recordings | yes | Archived recordings leave the library's Videos tab for its Archive tab; unarchive returns them where they were. Nothing is deleted. | | `formrec_library_export` | Export recordings to a folder | yes | Copy recordings (all of them when ids is omitted) with every file and a formrec-library.json manifest of their tags, folders and spaces into a new `formrec-export-