recordful-mcp 1.0.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +14 -7
  3. package/dist/args.js +1 -1
  4. package/dist/args.js.map +1 -1
  5. package/dist/bridge/BridgeServer.js +1 -1
  6. package/dist/bridge/BridgeServer.js.map +1 -1
  7. package/dist/cli.js +167 -10
  8. package/dist/cli.js.map +1 -1
  9. package/dist/core/createRecordfulServer.js +14 -0
  10. package/dist/core/createRecordfulServer.js.map +1 -1
  11. package/dist/core/libraryTools.js +47 -4
  12. package/dist/core/libraryTools.js.map +1 -1
  13. package/dist/core/transport.d.ts +2 -0
  14. package/dist/core/videoTools.js +8 -1
  15. package/dist/core/videoTools.js.map +1 -1
  16. package/dist/guide.d.ts +3 -3
  17. package/dist/guide.js +20 -6
  18. package/dist/guide.js.map +1 -1
  19. package/dist/install.js +17 -13
  20. package/dist/install.js.map +1 -1
  21. package/dist/mcp/createMcpServer.d.ts +5 -0
  22. package/dist/mcp/createMcpServer.js +62 -47
  23. package/dist/mcp/createMcpServer.js.map +1 -1
  24. package/dist/mcp/localTransport.js +1 -1
  25. package/dist/mcp/localTransport.js.map +1 -1
  26. package/dist/nativeHost.d.ts +16 -0
  27. package/dist/nativeHost.js +191 -0
  28. package/dist/nativeHost.js.map +1 -0
  29. package/dist/protocol/errors.d.ts +1 -0
  30. package/dist/protocol/errors.js +1 -0
  31. package/dist/protocol/errors.js.map +1 -1
  32. package/dist/protocol/methods.d.ts +7 -0
  33. package/dist/protocol/methods.js +7 -0
  34. package/dist/protocol/methods.js.map +1 -1
  35. package/dist/protocol/video.d.ts +24 -0
  36. package/dist/protocol/video.js +39 -2
  37. package/dist/protocol/video.js.map +1 -1
  38. package/dist/setupPrompt.d.ts +1 -1
  39. package/dist/setupPrompt.js +28 -28
  40. package/dist/skill.d.ts +3 -1
  41. package/dist/skill.js +15 -3
  42. package/dist/skill.js.map +1 -1
  43. package/dist/workflows.d.ts +9 -0
  44. package/dist/workflows.js +27 -1
  45. package/dist/workflows.js.map +1 -1
  46. package/package.json +1 -1
@@ -35,16 +35,53 @@ export const videoParams = {
35
35
  videoId: VideoId.optional(),
36
36
  start: z.boolean().optional().describe("Start transcribing if there's no transcript yet (default true)."),
37
37
  },
38
+ summary: {
39
+ videoId: VideoId.optional(),
40
+ generate: z.boolean().optional().describe("Write one if there is none yet. It spends the workspace's AI credits: only after the user said yes."),
41
+ regenerate: z.boolean().optional().describe("Write a new one even if one exists (spends credits; only after the user said yes)."),
42
+ },
38
43
  update: {
39
44
  videoId: VideoId.optional(),
40
45
  title: z.string().trim().min(1).max(200).optional().describe("New title."),
41
46
  visibility: z.enum(VISIBILITIES).optional().describe('Who may watch: "private", "workspace" (their team) or "public" (anyone with the link).'),
47
+ password: z
48
+ .string()
49
+ .min(1)
50
+ .max(200)
51
+ .nullable()
52
+ .optional()
53
+ .describe("A password people outside the workspace must type to watch, exactly as the user gave it; null removes it. It is never shown back."),
54
+ expiresAt: z.iso
55
+ .datetime({ offset: true })
56
+ .refine((at) => Date.parse(at) > Date.now(), "expiresAt must be in the future")
57
+ .nullable()
58
+ .optional()
59
+ .describe("When the share link stops working for people outside the workspace (ISO 8601, in the future); null means never."),
42
60
  },
43
61
  remove: {
44
62
  videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video to delete. Required: there is no default for a delete."),
45
- confirm: z.literal(true).describe("Must be true, and only after the user has confirmed deleting this exact video."),
63
+ confirm: z.literal(true).optional().describe("Must be true, and only after the user has confirmed deleting this exact video."),
64
+ dryRun: z.literal(true).optional().describe("true: delete nothing, and return what would be deleted (title, date, views, links) to show the user first."),
65
+ },
66
+ restore: {
67
+ videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video in trash to bring back (from list_trash)."),
68
+ },
69
+ deleteComment: {
70
+ videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video the comment is on. Required."),
71
+ commentId: z.string().regex(/^[0-9a-f-]{36}$/i, "commentId must come from get_video_activity").describe("The comment to delete (from get_video_activity)."),
72
+ confirm: z.literal(true).describe("Must be true, and only after the user has confirmed deleting this exact comment."),
73
+ },
74
+ activity: {
75
+ videoId: VideoId.optional(),
76
+ days: z.number().int().min(1).max(365).optional().describe("Views per day over this many days, up to today (1 to 365, default 30)."),
77
+ },
78
+ invite: {
79
+ email: z.email().max(254).describe("The address to invite, exactly as the user gave it."),
80
+ confirm: z.literal(true).describe("Must be true, and only after the user has confirmed inviting this exact address."),
81
+ },
82
+ analytics: {
83
+ days: z.number().int().min(1).max(365).optional().describe("Views per day over this many days, up to today (1 to 365, default 30)."),
46
84
  },
47
- activity: { videoId: VideoId.optional() },
48
85
  comment: {
49
86
  videoId: VideoId.optional(),
50
87
  body: z.string().trim().min(1).max(2000).describe("The comment text, exactly as the user approved it."),
@@ -1 +1 @@
1
- {"version":3,"file":"video.js","sourceRoot":"","sources":["../../src/protocol/video.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,wEAAwE;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC;KACrB,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,sCAAsC,CAAC;KACjE,QAAQ,CAAC,4GAA4G,CAAC,CAAC;AAE1H,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,KAAK,CAAC,uCAAuC,EAAE,uCAAuC,CAAC;KACvF,QAAQ,CAAC,yEAAyE,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,E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AAC,qBAAqB,CAAC;QAC5I,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wEAAwE,CAAC;KAC5H;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAA0B,KAAQ,EAAE,MAAe,EAA2B,EAAE;IAC9G,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAChE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,WAAW,CACnB,SAAS,CAAC,aAAa,EACvB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3F,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC,CAAC"}
@@ -1 +1 @@
1
- export declare const SETUP_PROMPT = "Set up Recordful as my screen-recording assistant, then use it for the task at the end.\n\nBy pasting this prompt I authorize these local setup steps for the AI app you are running in, and only this one: run the official recordful-mcp package with npx and add the Recordful MCP entry and skill to your own configuration. Do them yourself; don't ask me to run or copy commands, and don't ask me to confirm them again. This does not cover recording, uploading, or changing anything on recordful.app; ask me first for each of those.\n\nDon't rely on remembered commands. Read the installed contract: run `npx -y recordful-mcp guide --json` and `npx -y recordful-mcp --help`. JSON on stdout is the source of truth, stderr is progress, exit code 1 is a failure, exit code 2 means a transcript isn't ready yet.\n\nRecordful-first routing: for anything about recording my browser, uploading the recording or reading its transcript, use the Recordful MCP tools or the recordful-mcp command line, never your own browser, computer-use or screen-capture tools. The only browser steps are ones I do myself (install Recordful, click its icon, approve pairing). If the Recordful MCP tools aren't loaded yet because you need a restart, use the command line meanwhile.\n\nSet up:\n1. Work out which AI app you are: claude (Claude Code), cursor, codex, opencode, vscode, windsurf, gemini or antigravity. Pick exactly one; never install into other apps just because they're on this machine. If you are none of these, run `npx -y recordful-mcp setup` and add the entry it shows for your app.\n2. Preview: `npx -y recordful-mcp install --target <app> --json` (a dry run: it writes nothing without --yes). Read the paths and actions it returns.\n3. Apply: `npx -y recordful-mcp install --target <app> --yes --json`. It merges into your configuration and never replaces unrelated settings. If a change comes back as \"manual\", do exactly what its detail says.\n4. Run `npx -y recordful-mcp status --json`. Tell me what is installed (the exact file paths), whether you need to be restarted to load the MCP server and skill, and these steps only I can do in Chrome:\n - Install Recordful from the Chrome Web Store: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc\n - Once: open Recordful's popup \u2192 More \u2192 AI agents, and turn it on (Chrome asks to allow screen recording; click Allow).\n - Each time you want to record: click the Recordful icon on the tab. Chrome requires that click, and it connects Recordful to you.\n - Once per computer: Recordful shows a 4-digit code. Check it matches the one you tell me, then click Allow.\n5. From now on treat Recordful as the default way to record my browser. Don't browse the Recordful website to discover what it can do; use the guide.\n\nUsing Recordful:\n- Recording works on every plan. Uploading, share links and transcripts need Recordful Pro; the status shows my plan. On the free plan, say once that links and transcripts need Pro (recordful.app/upgrade) and carry on with the recording.\n- Plan a short walkthrough first and show it to me. Ask before you start recording and again before you upload anything.\n- Use test accounts and data only. Never type my real credentials or personal data into a page.\n- Never ask me to paste a password, token or key into chat. Recordful holds its own sign-in; you never see it.\n- Pause the recording while you think and resume right before you act, so the video has no dead air.\n- Report only what you verified: the stage, the links and the transcript text that came back.\n\nMy task: Complete the Recordful setup now, tell me exactly what is installed and what needs a restart, tell me what you can help me do with it, and ask what I want to record first.\n";
1
+ export declare const SETUP_PROMPT = "Set up Recordful as my screen-recording assistant, then use it for the task at the end.\n\nBy pasting this prompt I authorize these local setup steps for the AI app you are running in, and only this one: run the official recordful-mcp package with npx and add the Recordful MCP entry and skill to your own configuration. Do them yourself; don't ask me to run or copy commands, and don't ask me to confirm them again. This does not cover recording, uploading, or changing anything on recordful.app; ask me first for each of those.\n\nDon't rely on remembered commands. Read the installed contract: run `npx -y recordful-mcp guide --json` and `npx -y recordful-mcp --help`. JSON on stdout is the source of truth, stderr is progress, exit code 1 is a failure, exit code 2 means a transcript isn't ready yet.\n\nRecordful-first routing: for anything about recording my browser, uploading the recording or reading its transcript, use the Recordful MCP tools or the recordful-mcp command line, never your own browser, computer-use or screen-capture tools. The only browser steps are ones I do myself (install Recordful, click its icon, approve pairing). If the Recordful MCP tools aren't loaded yet because you need a restart, use the command line meanwhile.\n\nSet up:\n1. Work out which AI app you are: claude (Claude Code), cursor, codex, opencode, vscode, windsurf, gemini or antigravity. Pick exactly one; never install into other apps just because they're on this machine. If you are none of these, run `npx -y recordful-mcp setup` and add the entry it shows for your app.\n2. Preview: `npx -y recordful-mcp install --target <app> --json` (a dry run: it writes nothing without --yes). Read the paths and actions it returns.\n3. Apply: `npx -y recordful-mcp install --target <app> --yes --json`. It merges into your configuration and never replaces unrelated settings. If a change comes back as \"manual\", do exactly what its detail says.\n4. Run `npx -y recordful-mcp status --json`. Tell me what is installed (the exact file paths), whether you need to be restarted to load the MCP server and skill, and these steps only I can do in Chrome:\n - Install Recordful from the Chrome Web Store: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc\n - Once: open Recordful's popup \u2192 More \u2192 AI agents, and turn it on (Chrome asks to allow screen recording; click Allow).\n - When you want a tab recorded: click the Recordful icon on that tab once. Chrome requires that click. Everything else connects by itself.\n - Once per computer: Recordful shows a 4-digit code. Check it matches the one you tell me, then click Allow.\n5. From now on treat Recordful as the default way to record my browser. Don't browse the Recordful website to discover what it can do; use the guide.\n\nUsing Recordful:\n- Recording works on every plan. Uploading, share links and transcripts need Recordful Pro; the status shows my plan. On the free plan, say once that links and transcripts need Pro (recordful.app/upgrade) and carry on with the recording.\n- Plan a short walkthrough first and show it to me. Ask before you start recording and again before you upload anything.\n- Use test accounts and data only. Never type my real credentials or personal data into a page.\n- Never ask me to paste a password, token or key into chat. Recordful holds its own sign-in; you never see it.\n- Pause the recording while you think and resume right before you act, so the video has no dead air.\n- Report only what you verified: the stage, the links and the transcript text that came back.\n\nMy task: Complete the Recordful setup now, tell me exactly what is installed and what needs a restart, tell me what you can help me do with it, and ask what I want to record first.\n";
@@ -1,33 +1,33 @@
1
1
  // `recordful-mcp prompt`: one block of text a user pastes into any AI app so the
2
2
  // app sets Recordful up for itself. The same text is on the README and the help
3
3
  // center (help.recordful.app/docs/ai-agents/setup-prompt); keep them in step.
4
- export const SETUP_PROMPT = `Set up Recordful as my screen-recording assistant, then use it for the task at the end.
5
-
6
- By pasting this prompt I authorize these local setup steps for the AI app you are running in, and only this one: run the official recordful-mcp package with npx and add the Recordful MCP entry and skill to your own configuration. Do them yourself; don't ask me to run or copy commands, and don't ask me to confirm them again. This does not cover recording, uploading, or changing anything on recordful.app; ask me first for each of those.
7
-
8
- Don't rely on remembered commands. Read the installed contract: run \`npx -y recordful-mcp guide --json\` and \`npx -y recordful-mcp --help\`. JSON on stdout is the source of truth, stderr is progress, exit code 1 is a failure, exit code 2 means a transcript isn't ready yet.
9
-
10
- Recordful-first routing: for anything about recording my browser, uploading the recording or reading its transcript, use the Recordful MCP tools or the recordful-mcp command line, never your own browser, computer-use or screen-capture tools. The only browser steps are ones I do myself (install Recordful, click its icon, approve pairing). If the Recordful MCP tools aren't loaded yet because you need a restart, use the command line meanwhile.
11
-
12
- Set up:
13
- 1. Work out which AI app you are: claude (Claude Code), cursor, codex, opencode, vscode, windsurf, gemini or antigravity. Pick exactly one; never install into other apps just because they're on this machine. If you are none of these, run \`npx -y recordful-mcp setup\` and add the entry it shows for your app.
14
- 2. Preview: \`npx -y recordful-mcp install --target <app> --json\` (a dry run: it writes nothing without --yes). Read the paths and actions it returns.
15
- 3. Apply: \`npx -y recordful-mcp install --target <app> --yes --json\`. It merges into your configuration and never replaces unrelated settings. If a change comes back as "manual", do exactly what its detail says.
16
- 4. Run \`npx -y recordful-mcp status --json\`. Tell me what is installed (the exact file paths), whether you need to be restarted to load the MCP server and skill, and these steps only I can do in Chrome:
17
- - Install Recordful from the Chrome Web Store: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc
18
- - Once: open Recordful's popup → More → AI agents, and turn it on (Chrome asks to allow screen recording; click Allow).
19
- - Each time you want to record: click the Recordful icon on the tab. Chrome requires that click, and it connects Recordful to you.
20
- - Once per computer: Recordful shows a 4-digit code. Check it matches the one you tell me, then click Allow.
21
- 5. From now on treat Recordful as the default way to record my browser. Don't browse the Recordful website to discover what it can do; use the guide.
22
-
23
- Using Recordful:
24
- - Recording works on every plan. Uploading, share links and transcripts need Recordful Pro; the status shows my plan. On the free plan, say once that links and transcripts need Pro (recordful.app/upgrade) and carry on with the recording.
25
- - Plan a short walkthrough first and show it to me. Ask before you start recording and again before you upload anything.
26
- - Use test accounts and data only. Never type my real credentials or personal data into a page.
27
- - Never ask me to paste a password, token or key into chat. Recordful holds its own sign-in; you never see it.
28
- - Pause the recording while you think and resume right before you act, so the video has no dead air.
29
- - Report only what you verified: the stage, the links and the transcript text that came back.
30
-
31
- My task: Complete the Recordful setup now, tell me exactly what is installed and what needs a restart, tell me what you can help me do with it, and ask what I want to record first.
4
+ export const SETUP_PROMPT = `Set up Recordful as my screen-recording assistant, then use it for the task at the end.
5
+
6
+ By pasting this prompt I authorize these local setup steps for the AI app you are running in, and only this one: run the official recordful-mcp package with npx and add the Recordful MCP entry and skill to your own configuration. Do them yourself; don't ask me to run or copy commands, and don't ask me to confirm them again. This does not cover recording, uploading, or changing anything on recordful.app; ask me first for each of those.
7
+
8
+ Don't rely on remembered commands. Read the installed contract: run \`npx -y recordful-mcp guide --json\` and \`npx -y recordful-mcp --help\`. JSON on stdout is the source of truth, stderr is progress, exit code 1 is a failure, exit code 2 means a transcript isn't ready yet.
9
+
10
+ Recordful-first routing: for anything about recording my browser, uploading the recording or reading its transcript, use the Recordful MCP tools or the recordful-mcp command line, never your own browser, computer-use or screen-capture tools. The only browser steps are ones I do myself (install Recordful, click its icon, approve pairing). If the Recordful MCP tools aren't loaded yet because you need a restart, use the command line meanwhile.
11
+
12
+ Set up:
13
+ 1. Work out which AI app you are: claude (Claude Code), cursor, codex, opencode, vscode, windsurf, gemini or antigravity. Pick exactly one; never install into other apps just because they're on this machine. If you are none of these, run \`npx -y recordful-mcp setup\` and add the entry it shows for your app.
14
+ 2. Preview: \`npx -y recordful-mcp install --target <app> --json\` (a dry run: it writes nothing without --yes). Read the paths and actions it returns.
15
+ 3. Apply: \`npx -y recordful-mcp install --target <app> --yes --json\`. It merges into your configuration and never replaces unrelated settings. If a change comes back as "manual", do exactly what its detail says.
16
+ 4. Run \`npx -y recordful-mcp status --json\`. Tell me what is installed (the exact file paths), whether you need to be restarted to load the MCP server and skill, and these steps only I can do in Chrome:
17
+ - Install Recordful from the Chrome Web Store: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc
18
+ - Once: open Recordful's popup → More → AI agents, and turn it on (Chrome asks to allow screen recording; click Allow).
19
+ - When you want a tab recorded: click the Recordful icon on that tab once. Chrome requires that click. Everything else connects by itself.
20
+ - Once per computer: Recordful shows a 4-digit code. Check it matches the one you tell me, then click Allow.
21
+ 5. From now on treat Recordful as the default way to record my browser. Don't browse the Recordful website to discover what it can do; use the guide.
22
+
23
+ Using Recordful:
24
+ - Recording works on every plan. Uploading, share links and transcripts need Recordful Pro; the status shows my plan. On the free plan, say once that links and transcripts need Pro (recordful.app/upgrade) and carry on with the recording.
25
+ - Plan a short walkthrough first and show it to me. Ask before you start recording and again before you upload anything.
26
+ - Use test accounts and data only. Never type my real credentials or personal data into a page.
27
+ - Never ask me to paste a password, token or key into chat. Recordful holds its own sign-in; you never see it.
28
+ - Pause the recording while you think and resume right before you act, so the video has no dead air.
29
+ - Report only what you verified: the stage, the links and the transcript text that came back.
30
+
31
+ My task: Complete the Recordful setup now, tell me exactly what is installed and what needs a restart, tell me what you can help me do with it, and ask what I want to record first.
32
32
  `;
33
33
  //# sourceMappingURL=setupPrompt.js.map
package/dist/skill.d.ts CHANGED
@@ -1 +1,3 @@
1
- export declare const SKILL_TEXT = "---\nname: record-demo\ndescription: Record a product demo video of a feature with Recordful (Chrome). Use when the user asks to record, film or make a video or demo of a feature, flow or page (\"record how sign-in works\", \"make a demo of the new billing page\", \"record the feature you just built\"), including right after you built the feature. Also for a Recordful screenshot of a page (\"screenshot the pricing page\", \"take a 3D screenshot\").\n---\n\n# Record a product demo with Recordful\n\nRecordful is a Chrome extension that records the browser and opens the result in its editor. The `recordful` MCP server lets you control it: recorder tools (`get_status`, `start_recording`, `pause_recording`, `resume_recording`, `add_marker`, `stop_recording`) and page tools that act on the tab being recorded (`navigate`, `snapshot`, `click`, `type`, `press`, `scroll`, `wait_for`, `screenshot`). You don't need a browser tool of your own.\n\nIf the Recordful tools aren't loaded in this session (the app needs a restart to pick up a new MCP server), use the same steps through the shell: `npx -y recordful-mcp start | pause | resume | stop`, `recordful-mcp upload`, `recordful-mcp transcript` (add `--json` for machine-readable output; `recordful-mcp guide --json` lists everything). Page actions (navigate, click, type) are MCP tools, or `recordful-mcp call page.click '{\"ref\":\"e3\"}'`. Never fall back to your own browser tool to start or stop recording.\n\n## 1. Work out what to show\n\nUnderstand the feature the way a user sees it. If you or the user just built it, read the change (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (a validation error, an empty state). Leave out internals.\n\n## 2. Get the app running\n\nIf it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves. If it isn't running, start it in the background and wait until the URL answers.\n\n## 3. Prepare test data\n\nUse test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as `demo+<timestamp>@example.com` with a generated password). Never type the user's real credentials or personal data. If real credentials are unavoidable, ask the user to sign in themselves first.\n\n## 4. Write a short shot list\n\nPlan 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.\n\n## 5. Connect\n\nAsk the user to click the Recordful icon in Chrome on the tab with the app. Chrome requires that click before an extension can record a tab, and it also connects Recordful to you. Then call `get_status`.\n\nThe first time on a computer:\n- `NOT_CONNECTED`: the user also turns on AI agents in Recordful (popup \u2192 More \u2192 AI agents, or paste `chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html` into Chrome's address bar), then clicks the icon again.\n- `PAIRING_PENDING`: Recordful opened a window asking to approve you. Tell the user the 4-digit code from the error so they can check it matches, and ask them to click Allow. Then retry.\n- `PAIRING_DENIED`: stop and ask the user what they'd like to do.\n\nIf Recordful or the MCP server isn't installed, point the user to https://github.com/iKislay/recordful-mcp#install.\n\n## 6. Record\n\n1. `navigate` to the starting page and `snapshot` it. Make the starting state clean (signed out for a sign-in demo, no leftover data or open dialogs).\n2. `start_recording`. It uses the user's Recordful settings (mode, microphone, camera, countdown) and returns once capture is live. `NOT_ARMED` means the user needs to click the Recordful icon on that tab.\n3. Follow the shot list with the page tools. Take a fresh `snapshot` after anything that changes the page; refs from before a navigation stop working. Use `wait_for` so each result is on screen before you move on.\n4. Call `pause_recording` whenever you need to think or plan, and `resume_recording` right before the next action, so the video has no dead air. Call `add_marker` with a few words at each moment worth finding again (a result appearing, an error shown); `stop_recording` returns them with their times.\n5. If something goes wrong (an error, the wrong page), pause, fix it, and resume. Start over only if the mistake would confuse viewers.\n6. `stop_recording`. Recordful opens its editor with the video.\n\n## 7. Share it or read it back (Recordful Pro)\n\n`get_status` shows `recorder.account.plan`. Only on `\"pro\"`:\n- `upload_recording` puts a local recording on recordful.app and returns its link (a cloud recording is already uploading; `stop_recording` says which).\n- `get_transcript` returns what was said, to check the demo or write notes from it.\n\nOn `\"free\"` or `\"signed-out\"`, don't call these. Recording and the editor work on every plan; say once that shareable links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't retry after `PRO_REQUIRED` or `NOT_SIGNED_IN`.\n\n## Rules\n\n- Ask the user before you start recording, and again before you upload.\n- Test data only. Never type the user's real credentials or personal data into the page.\n- Never ask the user to paste a token, password or key into the chat; Recordful holds its own sign-in and you never see it.\n- Don't retry after `PRO_REQUIRED`, `NOT_SIGNED_IN` or `PAIRING_DENIED`.\n\n## 8. Wrap up\n\nTell the user the video is open in Recordful's editor (and its link, on Pro), and summarise what it shows in one or two sentences.\n\n## Screenshots\n\nFor \"take a screenshot of X\": ask for the icon click (step 5), `navigate` to the page if needed, then call `take_screenshot` once. Use `mode: \"page\"` for the whole page. Pass `look` only if the user asked for a look: `\"3d\"` for a 3D tilt, or a preset (Clean, Window, Glass, Spotlight, Midnight, Bold, None); otherwise leave it out and their default look is used. It opens in Recordful's screenshot editor and returns no image, so don't take another screenshot to check it. Tell the user it is open there.\n\nFor a screenshot of something outside the browser (\"my Figma window\", \"my whole screen\"): no icon click. Call `take_screenshot` with `source: \"window\"` and `window` set to part of its title or app name (call `list_windows` if unsure), `source: \"screen\"` (optionally `display: 2`), or `source: \"area\"` to let the user drag one. It needs the Recordful desktop app with Settings \u2192 AI agents \u2192 \"Let AI agents take screenshots\" on; if the tool says it isn't on, ask the user to turn it on and retry.\n";
1
+ export declare const SKILLS: Record<string, Record<string, string>>;
2
+ /** The record-demo skill's SKILL.md. */
3
+ export declare const SKILL_TEXT: string;
package/dist/skill.js CHANGED
@@ -1,4 +1,16 @@
1
- // The Recordful skill (SKILL.md) that `recordful-mcp install` writes for the AI app.
2
- // Generated from plugin/skills/record-demo/SKILL.md by scripts/sync-skill.mjs; a test keeps them equal.
3
- export const SKILL_TEXT = "---\nname: record-demo\ndescription: Record a product demo video of a feature with Recordful (Chrome). Use when the user asks to record, film or make a video or demo of a feature, flow or page (\"record how sign-in works\", \"make a demo of the new billing page\", \"record the feature you just built\"), including right after you built the feature. Also for a Recordful screenshot of a page (\"screenshot the pricing page\", \"take a 3D screenshot\").\n---\n\n# Record a product demo with Recordful\n\nRecordful is a Chrome extension that records the browser and opens the result in its editor. The `recordful` MCP server lets you control it: recorder tools (`get_status`, `start_recording`, `pause_recording`, `resume_recording`, `add_marker`, `stop_recording`) and page tools that act on the tab being recorded (`navigate`, `snapshot`, `click`, `type`, `press`, `scroll`, `wait_for`, `screenshot`). You don't need a browser tool of your own.\n\nIf the Recordful tools aren't loaded in this session (the app needs a restart to pick up a new MCP server), use the same steps through the shell: `npx -y recordful-mcp start | pause | resume | stop`, `recordful-mcp upload`, `recordful-mcp transcript` (add `--json` for machine-readable output; `recordful-mcp guide --json` lists everything). Page actions (navigate, click, type) are MCP tools, or `recordful-mcp call page.click '{\"ref\":\"e3\"}'`. Never fall back to your own browser tool to start or stop recording.\n\n## 1. Work out what to show\n\nUnderstand the feature the way a user sees it. If you or the user just built it, read the change (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (a validation error, an empty state). Leave out internals.\n\n## 2. Get the app running\n\nIf it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves. If it isn't running, start it in the background and wait until the URL answers.\n\n## 3. Prepare test data\n\nUse test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as `demo+<timestamp>@example.com` with a generated password). Never type the user's real credentials or personal data. If real credentials are unavoidable, ask the user to sign in themselves first.\n\n## 4. Write a short shot list\n\nPlan 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.\n\n## 5. Connect\n\nAsk the user to click the Recordful icon in Chrome on the tab with the app. Chrome requires that click before an extension can record a tab, and it also connects Recordful to you. Then call `get_status`.\n\nThe first time on a computer:\n- `NOT_CONNECTED`: the user also turns on AI agents in Recordful (popup → More → AI agents, or paste `chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html` into Chrome's address bar), then clicks the icon again.\n- `PAIRING_PENDING`: Recordful opened a window asking to approve you. Tell the user the 4-digit code from the error so they can check it matches, and ask them to click Allow. Then retry.\n- `PAIRING_DENIED`: stop and ask the user what they'd like to do.\n\nIf Recordful or the MCP server isn't installed, point the user to https://github.com/iKislay/recordful-mcp#install.\n\n## 6. Record\n\n1. `navigate` to the starting page and `snapshot` it. Make the starting state clean (signed out for a sign-in demo, no leftover data or open dialogs).\n2. `start_recording`. It uses the user's Recordful settings (mode, microphone, camera, countdown) and returns once capture is live. `NOT_ARMED` means the user needs to click the Recordful icon on that tab.\n3. Follow the shot list with the page tools. Take a fresh `snapshot` after anything that changes the page; refs from before a navigation stop working. Use `wait_for` so each result is on screen before you move on.\n4. Call `pause_recording` whenever you need to think or plan, and `resume_recording` right before the next action, so the video has no dead air. Call `add_marker` with a few words at each moment worth finding again (a result appearing, an error shown); `stop_recording` returns them with their times.\n5. If something goes wrong (an error, the wrong page), pause, fix it, and resume. Start over only if the mistake would confuse viewers.\n6. `stop_recording`. Recordful opens its editor with the video.\n\n## 7. Share it or read it back (Recordful Pro)\n\n`get_status` shows `recorder.account.plan`. Only on `\"pro\"`:\n- `upload_recording` puts a local recording on recordful.app and returns its link (a cloud recording is already uploading; `stop_recording` says which).\n- `get_transcript` returns what was said, to check the demo or write notes from it.\n\nOn `\"free\"` or `\"signed-out\"`, don't call these. Recording and the editor work on every plan; say once that shareable links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't retry after `PRO_REQUIRED` or `NOT_SIGNED_IN`.\n\n## Rules\n\n- Ask the user before you start recording, and again before you upload.\n- Test data only. Never type the user's real credentials or personal data into the page.\n- Never ask the user to paste a token, password or key into the chat; Recordful holds its own sign-in and you never see it.\n- Don't retry after `PRO_REQUIRED`, `NOT_SIGNED_IN` or `PAIRING_DENIED`.\n\n## 8. Wrap up\n\nTell the user the video is open in Recordful's editor (and its link, on Pro), and summarise what it shows in one or two sentences.\n\n## Screenshots\n\nFor \"take a screenshot of X\": ask for the icon click (step 5), `navigate` to the page if needed, then call `take_screenshot` once. Use `mode: \"page\"` for the whole page. Pass `look` only if the user asked for a look: `\"3d\"` for a 3D tilt, or a preset (Clean, Window, Glass, Spotlight, Midnight, Bold, None); otherwise leave it out and their default look is used. It opens in Recordful's screenshot editor and returns no image, so don't take another screenshot to check it. Tell the user it is open there.\n\nFor a screenshot of something outside the browser (\"my Figma window\", \"my whole screen\"): no icon click. Call `take_screenshot` with `source: \"window\"` and `window` set to part of its title or app name (call `list_windows` if unsure), `source: \"screen\"` (optionally `display: 2`), or `source: \"area\"` to let the user drag one. It needs the Recordful desktop app with Settings → AI agents → \"Let AI agents take screenshots\" on; if the tool says it isn't on, ask the user to turn it on and retry.\n";
1
+ // The Recordful skills that `recordful-mcp install` writes for the AI app,
2
+ // by skill and by file inside it. Generated from skills/ by
3
+ // scripts/sync-skill.mjs; a test keeps them equal.
4
+ export const SKILLS = {
5
+ "record-demo": {
6
+ "SKILL.md": "---\nname: record-demo\ndescription: Record a product demo video of a feature with Recordful (Chrome). Use when the user asks to record, film or make a video or demo of a feature, flow or page (\"record how sign-in works\", \"make a demo of the new billing page\", \"record the feature you just built\"), including right after you built the feature. Also for a Recordful screenshot of a page (\"screenshot the pricing page\", \"take a 3D screenshot\").\n---\n\n# Record a product demo with Recordful\n\nRecordful is a Chrome extension that records the browser and opens the result in its editor. The `recordful` MCP server lets you control it: recorder tools (`get_status`, `start_recording`, `pause_recording`, `resume_recording`, `add_marker`, `stop_recording`) and page tools that act on the tab being recorded (`navigate`, `snapshot`, `click`, `type`, `press`, `scroll`, `wait_for`, `screenshot`). You don't need a browser tool of your own.\n\nIf the Recordful tools aren't loaded in this session (the app needs a restart to pick up a new MCP server), use the same steps through the shell: `npx -y recordful-mcp start | pause | resume | stop`, `recordful-mcp upload`, `recordful-mcp transcript` (add `--json` for machine-readable output; `recordful-mcp guide --json` lists everything). Page actions (navigate, click, type) are MCP tools, or `recordful-mcp call page.click '{\"ref\":\"e3\"}'`. Never fall back to your own browser tool to start or stop recording.\n\n## 1. Work out what to show\n\nUnderstand the feature the way a user sees it. If you or the user just built it, read the change (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (a validation error, an empty state). Leave out internals.\n\n## 2. Get the app running\n\nIf it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves. If it isn't running, start it in the background and wait until the URL answers.\n\n## 3. Prepare test data\n\nUse test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as `demo+<timestamp>@example.com` with a generated password). Never type the user's real credentials or personal data. If real credentials are unavoidable, ask the user to sign in themselves first.\n\n## 4. Write a short shot list\n\nPlan 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.\n\n## 5. Connect\n\nCall `get_status`. Recordful connects to you by itself once AI agents is on and it has paired with you.\n\nThe first time on a computer:\n- `NOT_CONNECTED`: ask the user to click the Recordful icon in Chrome. If that doesn't connect, they turn on AI agents in Recordful (popup → More → AI agents, or paste `chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html` into Chrome's address bar), then clicks the icon again.\n- `PAIRING_PENDING`: Recordful opened a window asking to approve you. Tell the user the 4-digit code from the error so they can check it matches, and ask them to click Allow. Then retry.\n- `PAIRING_DENIED`: stop and ask the user what they'd like to do.\n\nIf Recordful or the MCP server isn't installed, point the user to https://github.com/iKislay/recordful-mcp#install.\n\n## 6. Record\n\n1. `navigate` to the starting page and `snapshot` it. If no tab was handed to you, `navigate` opens a tab of your own; page tools never touch the user's other tabs. Make the starting state clean (signed out for a sign-in demo, no leftover data or open dialogs).\n2. If the recording mode (`get_status`) is tab or tab area, ask the user to click the Recordful icon on that tab once: Chrome requires it before an extension can record a tab. Then `start_recording`. It uses the user's Recordful settings (mode, microphone, camera, countdown) and returns once capture is live. `NOT_ARMED` means that click hasn't happened yet.\n3. Follow the shot list with the page tools. Take a fresh `snapshot` after anything that changes the page; refs from before a navigation stop working. Use `wait_for` so each result is on screen before you move on.\n4. Call `pause_recording` whenever you need to think or plan, and `resume_recording` right before the next action, so the video has no dead air. Call `add_marker` with a few words at each moment worth finding again (a result appearing, an error shown); `stop_recording` returns them with their times.\n5. If something goes wrong (an error, the wrong page), pause, fix it, and resume. Start over only if the mistake would confuse viewers.\n6. `stop_recording`. Recordful opens its editor with the video.\n\n## 7. Share it or read it back (Recordful Pro)\n\n`get_status` shows `recorder.account.plan`. Only on `\"pro\"`:\n- `upload_recording` puts a local recording on recordful.app and returns its link (a cloud recording is already uploading; `stop_recording` says which).\n- `get_transcript` returns what was said, to check the demo or write notes from it.\n\nOn `\"free\"` or `\"signed-out\"`, don't call these. Recording and the editor work on every plan; say once that shareable links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't retry after `PRO_REQUIRED` or `NOT_SIGNED_IN`.\n\n## Rules\n\n- Ask the user before you start recording, and again before you upload.\n- Test data only. Never type the user's real credentials or personal data into the page.\n- Never ask the user to paste a token, password or key into the chat; Recordful holds its own sign-in and you never see it.\n- Don't retry after `PRO_REQUIRED`, `NOT_SIGNED_IN` or `PAIRING_DENIED`.\n\n## 8. Wrap up\n\nTell the user the video is open in Recordful's editor (and its link, on Pro), and summarise what it shows in one or two sentences.\n\n## Screenshots\n\nFor \"take a screenshot of X\": `navigate` to the page (no click needed), then call `take_screenshot` once. Use `mode: \"page\"` for the whole page. Pass `look` only if the user asked for a look: `\"3d\"` for a 3D tilt, or a preset (Clean, Window, Glass, Spotlight, Midnight, Bold, None); otherwise leave it out and their default look is used. It opens in Recordful's screenshot editor and returns no image, so don't take another screenshot to check it. Tell the user it is open there.\n\nFor a screenshot of something outside the browser (\"my Figma window\", \"my whole screen\"): no icon click. Call `take_screenshot` with `source: \"window\"` and `window` set to part of its title or app name (call `list_windows` if unsure), `source: \"screen\"` (optionally `display: 2`), or `source: \"area\"` to let the user drag one. It needs the Recordful desktop app with Settings → AI agents → \"Let AI agents take screenshots\" on; if the tool says it isn't on, ask the user to turn it on and retry.\n"
7
+ },
8
+ "recordful-motion": {
9
+ "SKILL.md": "---\nname: recordful-motion\ndescription: Make Recordful Motion layers - titles, lower thirds, callouts, number callouts, chapter cards and end cards that play over a screen recording - as HyperFrames compositions that look directed, not generated. Use when someone asks for motion graphics, a title, a lower third, a callout or text animation on a Recordful video.\n---\n\n# Recordful Motion\n\nA motion layer is a HyperFrames composition laid over the video in Recordful's editor (web and desktop). Recordful draws it frame by frame inside the editor, so it stays editable and needs no render step. Your job is the composition, and the bar is that it looks directed by a motion designer, not generated.\n\nGenerated motion all looks the same for three reasons: the brief was adjectives, the motion was improvised property tweens instead of planned shots, and nobody watched the render. This skill removes all three. Follow the steps in order.\n\n## 1. Turn the ask into numbers\n\nBefore any markup, write the layer's spec in your reply (keep it short):\n\n```text\nJOB: what the viewer must know or feel when it leaves, one line\nWHEN: the moment in the recording it serves (from the transcript or the person), and its length in seconds\nFRAME: the video's width x height (the composition's data-width/data-height match it); the safe area it sits in\nLOOK: the brand's own colours and type as hex and named faces, sizes in px at that frame; never \"modern\" or \"clean\"\nSHOTS: one line per shot from references/shots.md: its name, frames, the one hero move, what is read and for how long\nBANNED: references/review.md's defaults, plus anything this video must not look like\n```\n\nColours and type come from, in order: the person, the product being recorded (its site or app), the video itself. Never from your defaults.\n\n## 2. Build from a shot, not from scratch\n\n- Every shot in `references/shots.md` names a HyperFrames registry block to start from: `npx hyperframes add <name>`, then change it to the spec. A registry block was made by a designer; your first improvisation was not.\n- One hero move per shot. Secondary moves travel 50-70% as far, start 100-200 ms after it, and everything else holds still.\n- The root stays transparent (a layer over a video must not hide it), and it is the video's size.\n- Text that must be read is at least 2.6% of the frame's short side (28 px at 1080) and holds 0.5 s plus 0.3 s a word.\n\n## 3. Watch it, then fix it\n\n`npx hyperframes check --json`, then `npx hyperframes snapshot --at <times>` at each shot's start, its landing and its exit. Look at every still as a first-time viewer would, then go through `references/review.md` and fix every P0 before you hand it over. Never say it is done without having looked.\n\n## 4. Hand it over\n\nRecordful plays a layer without the network: everything it needs is inside the file. Use HyperFrames' bundled fonts or embed the brand's as `@font-face` data URLs, inline every image as a data URL, and keep the file under 400 KB. The person adds it in the editor's Motion panel (HyperFrames composition), where the words and numbers you put in `id`'d elements or a `CONFIG` object become fields they can edit.\n\n## Sources\n\nThe shot recipes and review rules are drawn from HyperFrames' motion, spec and review references (HeyGen, Apache-2.0), iart.ai's kinetic-typography reveal recipes (MIT) and bang-motion's anti-slide-deck rules (MIT), measured and restated for overlays on screen recordings.\n",
10
+ "references/review.md": "# Review\n\nWatch the layer as a first-time viewer, once, at full speed, probably on a phone. Snapshot each shot's start, landing and exit (`npx hyperframes snapshot --at …`) and look at every still.\n\n## Banned by default\n\nThese are where generated motion lands when nothing was decided. Each is banned unless the brand's own material or the person's reference uses it, and then only as they use it:\n\n- glow, bloom, neon, lens flares, glowing orbs, floating particles as decoration;\n- purple or blue gradients, mesh gradients, glass cards over everything;\n- everything centred; everything fading in at once; every element fading and sliding up;\n- the same `power2.out` 0.5 s on every move; linear moves that are not rotation or progress;\n- text that moves while it is read; titles that keep drifting, breathing or pulsing after they land;\n- ALL CAPS wide bold type on every line, the same letter stagger on every title, a full stop after every two-word phrase;\n- click rings and bouncing UI;\n- the same transition on every seam; a wipe of a flat coloured slab at every cut;\n- three cards in a row, a KPI grid, a title over a dimmed screenshot, bullet points;\n- corner labels, frame borders, HUD readouts as decoration; the logo docked in a corner.\n\nAfter the first look, name every default the frames show, from this list or not, add it to your BANNED line, and fix it.\n\n## Symptoms and fixes\n\n| You see | Change |\n| --- | --- |\n| It feels like slides | one statement of five words or fewer and one object per shot; enter the next shot through something on screen; cut a move mid-flight |\n| It feels generated | vary the eases by role; vary the title entrances; land titles and hold them still |\n| Too fast | slow every move to 0.7x of its speed, nothing else |\n| Too busy | remove a third of the motion; keep the moves that lead the eye |\n| The text is hard to read | cut words, never shrink type; add a dark pocket behind light text instead of a glow |\n| The eye has nowhere to go | one focal point per frame; the camera or the type leads, not both |\n| The ending fades out | hold the last frame at least 2 s; end on the line, not on motion |\n\n## Notes\n\nWrite each problem as one line, `t=1.2s · where · problem → exact change`, and rank it: **P0** breaks the read (unreadable, wrong, a banned default in the hero moment), **P1** weakens it (a dead stretch, a soft landing), **P2** polish. Fix every P0 and the P1s worth their time, then snapshot only what you changed. Never score the layer out of 10: a score finds nothing to fix.\n",
11
+ "references/shots.md": "# Shots\n\nEach shot: when to use it, how it is built (numbers are starting points measured from professional films, not laws), and the HyperFrames registry block to start from (`npx hyperframes add <name>`; `(c)` is a component you merge into a scene). Eases are GSAP names.\n\n## Timing that applies to every shot\n\n- **Ease by role**: an arrival lands on a long tail (`expo.out`, `power4.out`); a camera move or colour change eases both ways (`power2.inOut`); a zoom-through or an exit accelerates (`power3.in`). One `power2.out` at 0.5 s on everything is the single biggest tell of generated motion. Linear only for rotation, progress and constant speed.\n- **Arrive slow, leave clean**: exits are 40-50% shorter than entrances, one smooth move (never slide, stop, then leave).\n- **Overlap**: the next element starts when the previous is 30-50% done. Fully sequential looks robotic; all at once looks cheap.\n- **Stagger**: letters 20-40 ms apart, words 60-120 ms, lines 60-100 ms, list items 40-80 ms.\n- **Fast moves** take 0.3-0.6 s and carry motion blur at their fastest frame: 6-12 px on text, 15-20 px full-frame (`data-motion-blur=\"on\"` on the root).\n- **Springs** by damping: 1.0 never bounces, 0.7-0.85 reads premium, 0.4-0.6 playful. Position and scale may bounce; opacity and colour never do.\n\n## Text in\n\nVary the entrance within one video: never the same one for every line.\n\n| Shot | Use it for | Build | Start from |\n| --- | --- | --- | --- |\n| Word blur-in | a statement, a title | per word `blur(6px)`→0 and opacity 0→1 in 0.13 s, words 0.067 s apart, no movement | `blur-in` (c), `soft-blur-in` (c) |\n| Line blur-in | a short title | the whole line 8 px→0 blur in 0.13-0.2 s | `blur-in` (c) |\n| Ink-in | a calm sentence | per word from light grey to ink, 0.07-0.1 s apart, no movement | `per-word-crossfade` (c) |\n| Mask rise | a headline with weight | each line rises from behind a mask: `translateY(110%)`→0 in 0.6 s `expo.out`, lines 0.08 s apart | `per-word-rise` (c), `lt-mask-reveal` |\n| Name by letter | a person's or product's name | per letter opacity 0.3→1 with a slight blur, 0.1 s apart | `bottom-up-letters` (c) |\n| Slot roll | one word that changes (\"faster / safer / cheaper\") | that word rolls through options like a slot machine, about 0.1 s a roll, then lands | `slot-machine-roll` (c), `kinetic-type-swap` (c) |\n| Clip wipe | a label, a tag | `clip-path: inset(0 100% 0 0)`→`inset(0)` in 0.6 s `expo.out` | `lt-clean-bar` |\n\n**Holds**: a read line holds 0.5 s + 0.3 s a word; the video's last line at least 2 s. A landed title is dead still: the motion moves to the next element. **Out**: blur-out and fade in 0.13-0.25 s, word by word or with the scene's move.\n\n**Size**: titles at 4-9% of the frame height, one or two lines; one highlighted word in the accent colour, and only when the word carries the meaning.\n\n## Over the recording\n\n| Shot | Use it for | Build | Start from |\n| --- | --- | --- | --- |\n| Lower third | naming who speaks or what is shown | the bottom 30% of the frame, left-aligned in the safe area; in over 0.4 s `power2.out`, out over 0.35 s `power2.in`; holds while it is relevant, gone in 8 s | `lt-clean-bar`, `lt-dark-card`, `lt-soft-pill`, `lt-kicker-name` |\n| Callout | pointing at one control in the UI | an arrow or circle drawn on (stroke 0→full in 0.4 s), the label lands 0.1-0.2 s after; placed by the control, not centred | `hw-arrow` (c), `hw-callout-circle` (c), `hw-box-label` (c) |\n| Highlight a word | the word that matters in a sentence on screen | a marker sweeps under it in 0.3-0.5 s after the sentence lands | `marker-highlight` (c), `hw-underline` (c), `mk-callout-highlight` |\n| Number callout | a number said out loud (\"73% fail\") | the number counts up over 0.8-1.2 s `power2.out` and lands big (8-15% of the frame height), its label 0.15 s after; on screen within 2.5 s, then held | `count-up` (c), `number-pop-in` (c), `mk-progress-stat` |\n| Click accent | a click that changes the screen | none by default: the recording's own click effect does this. Click rings are a generated-motion tell | — |\n\n## Full frame\n\n| Shot | Use it for | Build | Start from |\n| --- | --- | --- | --- |\n| Chapter card | a new part of the video | one or two words at 4-9% height, in and held 0.4-1 s, out with the next shot's move; never a slide with a heading and bullets | `hw-title`, `yt-prism-title` |\n| Title card | the opening | the title arrives with a word or mask entrance, holds dead still, leaves into the recording | `canopy-part-title`, `yt-prism-title` |\n| End card | the close | the mark lands in the last 5-10%, centred, 15-30% of the frame's width, performed (a fill rises through it, a wipe brings the wordmark), then the call to action held 1.5-3 s | `logo-outro`, `logo-brand-close` (c) |\n\n## Transitions with a cause\n\nUse 3-5 kinds in one video, each caused by something on screen; at most a third of the seams are hard cuts, and two worlds never crossfade.\n\n| Transition | Build | Start from |\n| --- | --- | --- |\n| Zoom through a button | the camera tracks to the button with blur (0.6 s), then the button scales from about 8% to 250% of the frame in 0.35 s, strong ease-in; its fill becomes the next frame | `zoom-through-transition` (c) |\n| Object becomes the world | a card grows past the frame in 0.65 s ease-in-out, its radius shrinking; around it blurs about 15 px and fades in 0.3 s; the new content fades in while it still grows | `transitions-scale` |\n| Morph | one container widens into the next (110 to 880 px in 0.2 s `power3.out`) with a horizontal blur 12→0 | `transitions-scale` |\n| Whip | a horizontal or vertical smear of 0.13-0.3 s; the arriving element lands blurred and sharpens in about 0.13 s | `whip-pan`, `whip-pan-cut` (c) |\n| Iris from the click | `clip-path: circle()` opens from the clicked point onto the next view in 0.15 s | `iris-reveal` (c) |\n| Colour flood | the hero stays while the whole ground changes colour in about 0.4 s `power2.inOut` | `transitions-radial` |\n| Dip cut | the outgoing frame darkens about 40% for 3 frames before a hard cut, so the cut reads as meant | — |\n\n## Punch-ins on the recording\n\nRecordful's own zooms do this on the video itself (Zoom tool, or zooms from clicks). A motion layer never re-implements them; when a shot needs the camera to close in, say so to the person and leave it to the editor's zoom.\n"
12
+ }
13
+ };
14
+ /** The record-demo skill's SKILL.md. */
15
+ export const SKILL_TEXT = SKILLS["record-demo"]["SKILL.md"];
4
16
  //# sourceMappingURL=skill.js.map
package/dist/skill.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,wGAAwG;AACxG,MAAM,CAAC,MAAM,UAAU,GAAG,iqNAAiqN,CAAC"}
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,4DAA4D;AAC5D,mDAAmD;AACnD,MAAM,CAAC,MAAM,MAAM,GAA2C;IAC5D,aAAa,EAAE;QACb,UAAU,EAAE,g3NAAg3N;KAC73N;IACD,kBAAkB,EAAE;QAClB,UAAU,EAAE,67GAA67G;QACz8G,sBAAsB,EAAE,2gFAA2gF;QACniF,qBAAqB,EAAE,6xMAA6xM;KACrzM;CACF,CAAC;AAEF,wCAAwC;AACxC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,CAAE,CAAC,UAAU,CAAE,CAAC"}
@@ -31,4 +31,13 @@ export declare const followVideo: (call: Call, videoId: string, done: (state: Vi
31
31
  }>;
32
32
  export declare const uploadAndWait: (call: Call, args: Record<string, unknown>, progress: Progress) => Promise<Record<string, unknown>>;
33
33
  export declare const getVideoAndWait: (call: Call, args: Record<string, unknown>, progress: Progress) => Promise<Record<string, unknown>>;
34
+ export declare const findCues: (vtt: string, query: string) => {
35
+ matches: {
36
+ startMs: number;
37
+ endMs: number;
38
+ text: string;
39
+ }[];
40
+ totalMatches: number;
41
+ note?: string | undefined;
42
+ };
34
43
  export declare const transcriptAndWait: (call: Call, args: Record<string, unknown>, progress: Progress) => Promise<Record<string, unknown>>;
package/dist/workflows.js CHANGED
@@ -60,14 +60,40 @@ export const getVideoAndWait = async (call, args, progress) => {
60
60
  const { state, timedOut, waitedMs } = await followVideo(call, first.videoId, (s) => s.stage === "ready", timeoutMs, progress);
61
61
  return { ...state, waitedMs, ...(timedOut ? { note: "Not ready yet. Call again with wait: true to keep waiting." } : {}) };
62
62
  };
63
+ const MAX_MATCHES = 30;
64
+ const toMs = (stamp) => stamp.split(":").reduce((total, part) => total * 60 + Number(part), 0) * 1000;
65
+ // The cues of a WebVTT transcript that mention `query` (any case), with their
66
+ // times, so an agent can find a moment without reading the whole transcript.
67
+ export const findCues = (vtt, query) => {
68
+ const needle = query.trim().toLowerCase();
69
+ const matches = [];
70
+ let total = 0;
71
+ for (const block of vtt.split(/\r?\n\r?\n/)) {
72
+ const lines = block.split(/\r?\n/);
73
+ const at = lines.findIndex((line) => line.includes("-->"));
74
+ if (at < 0)
75
+ continue;
76
+ const text = lines.slice(at + 1).join(" ").trim();
77
+ if (!text.toLowerCase().includes(needle))
78
+ continue;
79
+ total++;
80
+ if (matches.length >= MAX_MATCHES)
81
+ continue;
82
+ const [start = "", end = ""] = (lines[at] ?? "").split("-->").map((side) => side.trim().split(/\s/)[0] ?? "");
83
+ matches.push({ startMs: Math.round(toMs(start)), endMs: Math.round(toMs(end)), text });
84
+ }
85
+ return { matches, totalMatches: total, ...(total > MAX_MATCHES ? { note: `Showing the first ${MAX_MATCHES} of ${total}; narrow the query.` } : {}) };
86
+ };
63
87
  export const transcriptAndWait = async (call, args, progress) => {
64
- const { wait = true, timeoutMs = 300_000, format = "text", ...rest } = args;
88
+ const { wait = true, timeoutMs = 300_000, format = "text", query, ...rest } = args;
65
89
  const params = parseVideoParams(videoParams.transcript, rest);
66
90
  const started = Date.now();
67
91
  for (;;) {
68
92
  const now = (await call(Method.VideoTranscript, params, 100_000));
69
93
  if (now.status === "done") {
70
94
  const { text = "", vtt = "", ...about } = now;
95
+ if (query?.trim())
96
+ return { ...about, query, ...findCues(vtt, query) };
71
97
  return {
72
98
  ...about,
73
99
  ...(format !== "vtt" ? { text } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.js","sourceRoot":"","sources":["../src/workflows.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,uEAAuE;AACvE,wEAAwE;AACxE,+BAA+B;AAC/B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,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E,CAAC;QACJ,CAAC;QACD,0EAA0E;QAC1E,6DAA6D;QAC7D,MAAM,QAAQ,CAAC,GAAG,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QACjG,MAAM,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recordful-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.3.0",
4
4
  "description": "Let any AI app record, upload and read back product demos with Recordful: an MCP server and CLI that drive the Recordful Chrome extension.",
5
5
  "license": "MIT",
6
6
  "author": "Kislay (https://recordful.app)",