recordful-mcp 1.1.2 → 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.
@@ -59,12 +59,19 @@ export const registerVideoTools = (server, call, handle) => {
59
59
  inputSchema: videoParams.list,
60
60
  annotations: { readOnlyHint: true, openWorldHint: true },
61
61
  }, async (args) => handle(() => call(Method.VideoList, parseVideoParams(videoParams.list, args), 40_000)));
62
+ server.registerTool("get_summary", {
63
+ title: "Read the AI summary and chapters",
64
+ description: 'Recordful Pro only. A Recordful video\'s AI summary (2 to 4 sentences) and chapters ([{ startSeconds, title }], the first at 0), as shown on its page. Reading is free. If there is none (status "none"), writing one spends the workspace\'s AI credits (about 1 to 2 a summary): ask the user first, then call with generate: true. Needs a transcript (status "no_transcript": call get_transcript first). OUT_OF_CREDITS means none are left this month. Defaults to the last recording.',
65
+ inputSchema: videoParams.summary,
66
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
67
+ }, async (args) => handle(() => call(Method.VideoSummary, parseVideoParams(videoParams.summary, args), 100_000)));
62
68
  server.registerTool("get_transcript", {
63
69
  title: "Read a transcript",
64
- description: 'Recordful Pro only (check get_status recorder.account.plan first). Read back what was said in a Recordful video. Starts transcribing if it hasn\'t been yet, and by default waits until it\'s done, including for an upload still in progress. format: "text" (default), "vtt" (timed captions), or "both". Defaults to the last recording; a recording only on this computer must be uploaded first (upload_recording).',
70
+ description: 'Recordful Pro only (check get_status recorder.account.plan first). Read back what was said in a Recordful video. Starts transcribing if it hasn\'t been yet, and by default waits until it\'s done, including for an upload still in progress. format: "text" (default), "vtt" (timed captions), or "both". With query, returns only the moments that mention it (startMs, endMs, text; up to 30) instead of the whole transcript, so search with it first on long videos. Defaults to the last recording; a recording only on this computer must be uploaded first (upload_recording).',
65
71
  inputSchema: {
66
72
  ...videoParams.transcript,
67
73
  format: z.enum(["text", "vtt", "both"]).optional().describe('"text" (default), "vtt" (with timestamps), or "both".'),
74
+ query: z.string().trim().min(1).max(200).optional().describe("Find what was said about this: returns only the matching moments, with times."),
68
75
  wait: z.boolean().optional().describe("Wait until the transcript is ready (default true)."),
69
76
  timeoutMs: waitTimeout(300_000),
70
77
  },
@@ -1 +1 @@
1
- {"version":3,"file":"videoTools.js","sourceRoot":"","sources":["../../src/core/videoTools.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAA4B,MAAM,iBAAiB,CAAC;AAK9G,6EAA6E;AAC7E,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE,CACvC,CAAC;KACE,MAAM,EAAE;KACR,GAAG,EAAE;KACL,GAAG,CAAC,KAAK,CAAC;KACV,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC;KAChB,QAAQ,EAAE;KACV,QAAQ,CAAC,8CAA8C,QAAQ,gDAAgD,CAAC,CAAC;AAEtH,+DAA+D;AAC/D,MAAM,WAAW,GAAG,CAAC,KAAwB,EAAY,EAAE;IACzD,MAAM,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC;IAC1C,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;QACxC,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK;YAAE,OAAO;QAC1C,IAAI,IAAI,CAAC,CAAC;QACV,MAAM,KAAK;aACR,gBAAgB,CAAC;YAChB,MAAM,EAAE,wBAAwB;YAChC,MAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,IAAI,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC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-1,4 +1,4 @@
1
- export declare const MCP_TOOLS: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "list_videos", "get_transcript", "update_video", "delete_video", "get_video_activity", "comment_on_video", "like_video", "list_folders", "create_folder", "move_videos", "get_storage"];
1
+ export declare const MCP_TOOLS: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "list_videos", "get_transcript", "get_summary", "update_video", "delete_video", "list_trash", "restore_video", "get_video_activity", "comment_on_video", "delete_comment", "like_video", "list_folders", "create_folder", "move_videos", "get_analytics", "list_members", "invite_member", "get_storage"];
2
2
  interface CommandInfo {
3
3
  command: string;
4
4
  summary: string;
@@ -19,7 +19,7 @@ export declare const guide: (version: string) => {
19
19
  "1": string;
20
20
  "2": string;
21
21
  };
22
- mcpTools: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "list_videos", "get_transcript", "update_video", "delete_video", "get_video_activity", "comment_on_video", "like_video", "list_folders", "create_folder", "move_videos", "get_storage"];
22
+ mcpTools: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "add_marker", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "take_screenshot", "list_windows", "list_recordings", "upload_recording", "get_video", "list_videos", "get_transcript", "get_summary", "update_video", "delete_video", "list_trash", "restore_video", "get_video_activity", "comment_on_video", "delete_comment", "like_video", "list_folders", "create_folder", "move_videos", "get_analytics", "list_members", "invite_member", "get_storage"];
23
23
  commands: CommandInfo[];
24
24
  installTargets: readonly ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini", "antigravity"];
25
25
  humanSteps: string[];
@@ -28,6 +28,6 @@ export declare const guide: (version: string) => {
28
28
  pro: string;
29
29
  };
30
30
  safety: string[];
31
- errorCodes: ("ALREADY_RECORDING" | "BRIDGE_UNAVAILABLE" | "CLOUD_ERROR" | "CLOUD_UNAVAILABLE" | "CLOUD_UNREACHABLE" | "DISCONNECTED" | "ELEMENT_NOT_INTERACTABLE" | "ELEMENT_OBSCURED" | "FORBIDDEN" | "INTERNAL" | "INVALID_PARAMS" | "NAVIGATION_FAILED" | "NOT_ARMED" | "NOT_CONNECTED" | "NOT_RECORDING" | "NOT_SIGNED_IN" | "NOT_UPLOADED" | "NO_RECORDING" | "NO_TARGET_TAB" | "PAGE_NOT_SCRIPTABLE" | "PAIRING_DENIED" | "PAIRING_PENDING" | "PERMISSIONS_NEEDED" | "PRO_REQUIRED" | "RATE_LIMITED" | "STALE_REF" | "START_FAILED" | "STOP_FAILED" | "STORAGE_FULL" | "TAB_NOT_ACTIVE" | "TAB_NOT_RECORDABLE" | "TIMEOUT" | "TRANSCRIPTION_FAILED" | "TRANSCRIPTION_UNAVAILABLE" | "UNKNOWN_METHOD" | "UPLOAD_FAILED" | "UPLOAD_INTERRUPTED" | "VIDEO_NOT_FOUND" | "WAIT_TIMEOUT")[];
31
+ errorCodes: ("ALREADY_RECORDING" | "BRIDGE_UNAVAILABLE" | "CLOUD_ERROR" | "CLOUD_UNAVAILABLE" | "CLOUD_UNREACHABLE" | "DISCONNECTED" | "ELEMENT_NOT_INTERACTABLE" | "ELEMENT_OBSCURED" | "FORBIDDEN" | "INTERNAL" | "INVALID_PARAMS" | "NAVIGATION_FAILED" | "NOT_ARMED" | "NOT_CONNECTED" | "NOT_RECORDING" | "NOT_SIGNED_IN" | "NOT_UPLOADED" | "NO_RECORDING" | "NO_TARGET_TAB" | "OUT_OF_CREDITS" | "PAGE_NOT_SCRIPTABLE" | "PAIRING_DENIED" | "PAIRING_PENDING" | "PERMISSIONS_NEEDED" | "PRO_REQUIRED" | "RATE_LIMITED" | "STALE_REF" | "START_FAILED" | "STOP_FAILED" | "STORAGE_FULL" | "TAB_NOT_ACTIVE" | "TAB_NOT_RECORDABLE" | "TIMEOUT" | "TRANSCRIPTION_FAILED" | "TRANSCRIPTION_UNAVAILABLE" | "UNKNOWN_METHOD" | "UPLOAD_FAILED" | "UPLOAD_INTERRUPTED" | "VIDEO_NOT_FOUND" | "WAIT_TIMEOUT")[];
32
32
  };
33
33
  export {};
package/dist/guide.js CHANGED
@@ -26,14 +26,21 @@ export const MCP_TOOLS = [
26
26
  "get_video",
27
27
  "list_videos",
28
28
  "get_transcript",
29
+ "get_summary",
29
30
  "update_video",
30
31
  "delete_video",
32
+ "list_trash",
33
+ "restore_video",
31
34
  "get_video_activity",
32
35
  "comment_on_video",
36
+ "delete_comment",
33
37
  "like_video",
34
38
  "list_folders",
35
39
  "create_folder",
36
40
  "move_videos",
41
+ "get_analytics",
42
+ "list_members",
43
+ "invite_member",
37
44
  "get_storage",
38
45
  ];
39
46
  const COMMANDS = [
@@ -46,15 +53,22 @@ const COMMANDS = [
46
53
  { command: "upload [<takeId>] [--title t] [--visibility private|workspace|public] [--force] [--no-wait]", summary: "Upload a recording and return its links", pro: true, needsRecordful: true },
47
54
  { command: "videos [--limit n] [--query text]", summary: "List the user's videos on recordful.app", pro: true, needsRecordful: true },
48
55
  { command: "video [<videoId>] [--wait]", summary: "One video's links and upload stage", pro: true, needsRecordful: true },
49
- { command: "transcript [<videoId>] [--format text|vtt|json] [--no-wait]", summary: "Print what was said (starts transcription on first use)", pro: true, needsRecordful: true },
50
- { command: "update [<videoId>] [--title t] [--visibility private|workspace|public]", summary: "Rename a video or change who may watch (show the user first)", pro: true, needsRecordful: true },
51
- { command: "delete <videoId> --yes", summary: "Permanently delete a video (confirm the exact video with the user first)", pro: true, needsRecordful: true },
52
- { command: "activity [<videoId>]", summary: "Views, likes and comments on a video", pro: true, needsRecordful: true },
56
+ { command: "transcript [<videoId>] [--format text|vtt|json] [--query <words>] [--no-wait]", summary: "Print what was said (starts transcription on first use); --query prints only the matching moments with times", pro: true, needsRecordful: true },
57
+ { command: "summary [<videoId>] [--generate | --regenerate]", summary: "The AI summary and chapters; --generate writes one (spends AI credits, ask first)", pro: true, needsRecordful: true },
58
+ { command: "update [<videoId>] [--title t] [--visibility private|workspace|public] [--password-stdin|--no-password] [--expires <ISO>|--no-expiry]", summary: "Rename a video, change who may watch, or lock its link with a password (read from stdin) or an expiry (show the user first)", pro: true, needsRecordful: true },
59
+ { command: "delete <videoId> --dry-run | --yes", summary: "--dry-run shows what would go; --yes moves the video to trash; it's gone for good after 7 days (confirm the exact video with the user first)", pro: true, needsRecordful: true },
60
+ { command: "trash", summary: "Videos in trash and when each is gone for good", pro: true, needsRecordful: true },
61
+ { command: "restore <videoId>", summary: "Bring a video back out of trash", pro: true, needsRecordful: true },
62
+ { command: "activity [<videoId>] [--days n]", summary: "Views (where from, per day), likes and comments on a video", pro: true, needsRecordful: true },
63
+ { command: "analytics [--days n]", summary: "Views per day across all the user's videos, and the most viewed", pro: true, needsRecordful: true },
53
64
  { command: "comment [<videoId>] --body <text>", summary: "Post a comment as the user (show the text first; it is public to viewers)", pro: true, needsRecordful: true },
65
+ { command: "comment-delete <videoId> <commentId> --yes", summary: "Delete one comment for good (show it to the user first)", pro: true, needsRecordful: true },
54
66
  { command: "like [<videoId>] [--undo]", summary: "Like or unlike a video", pro: true, needsRecordful: true },
55
67
  { command: "folders", summary: "List the user's folders", pro: true, needsRecordful: true },
56
68
  { command: "folder-create <name> [--parent <folderId>]", summary: "Create a folder", pro: true, needsRecordful: true },
57
69
  { command: "move <videoId>... [--to <folderId>]", summary: "Move videos into a folder (no --to: the top level)", pro: true, needsRecordful: true },
70
+ { command: "members", summary: "Who is in the workspace, and who is invited", pro: true, needsRecordful: true },
71
+ { command: "invite <email> --yes", summary: "Invite someone to the workspace (owner only; confirm the address with the user first)", pro: true, needsRecordful: true },
58
72
  { command: "storage", summary: "Cloud storage used and whether uploads are allowed", pro: true, needsRecordful: true },
59
73
  { command: "call <method> [json]", summary: "Call one Recordful method directly (page actions such as page.click, debugging)", needsRecordful: true },
60
74
  { command: "install --target <app> [--component all|mcp|skill] [--yes]", summary: "Add Recordful to one AI app's configuration (a dry run unless --yes)", needsRecordful: false },
package/dist/guide.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"guide.js","sourceRoot":"","sources":["../src/guide.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4EAA4E;AAC5E,wEAAwE;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,YAAY;IACZ,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,YAAY;IACZ,eAAe;IACf,UAAU;IACV,UAAU;IACV,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,cAAc;IACd,iBAAiB;IACjB,kBAAkB;IAClB,WAAW;IACX,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,oBAAoB;IACpB,kBAAkB;IAClB,YAAY;IACZ,cAAc;IACd,eAAe;IACf,aAAa;IACb,aAAa;CACL,CAAC;AASX,MAAM,QAAQ,GAAkB;IAC9B,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iDAAiD,EAAE,cAAc,EAAE,KAAK,EAAE;IACxG,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,oDAAoD,EAAE,cAAc,EAAE,IAAI,EAAE;IACtH,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,+BAA+B,EAAE,cAAc,EAAE,IAAI,EAAE;IAC7F,EAAE,OAAO,EAAE,MAAM,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E,+DAA+D,EAAE;IACnJ,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,QAAQ;IAClB,cAAc,EAAE,OAAO;IACvB,UAAU,EAAE;QACV,8CAA8C;QAC9C,mGAAmG;QACnG,oIAAoI;QACpI,sEAAsE;KACvE;IACD,KAAK,EAAE;QACL,IAAI,EAAE,8NAA8N;QACpO,GAAG,EAAE,sCAAsC;KAC5C;IACD,MAAM,EAAE;QACN,qDAAqD;QACrD,0FAA0F;QAC1F,wHAAwH;QACxH,2IAA2I;QAC3I,uNAAuN;KACxN;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;CACrC,CAAC,CAAC"}
package/dist/install.js CHANGED
@@ -6,7 +6,7 @@ import { spawnSync } from "node:child_process";
6
6
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
7
7
  import { homedir, platform } from "node:os";
8
8
  import { dirname, join } from "node:path";
9
- import { SKILL_TEXT } from "./skill.js";
9
+ import { SKILLS } from "./skill.js";
10
10
  export const TARGETS = ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini", "antigravity"];
11
11
  export const COMPONENTS = ["all", "mcp", "skill"];
12
12
  export const TARGET_NAMES = {
@@ -124,17 +124,23 @@ const SKILL_DIRS = {
124
124
  cursor: ".cursor",
125
125
  codex: ".codex",
126
126
  };
127
- const installSkill = (target, apply) => {
127
+ /** Each Recordful skill, written file by file: one change per skill, named by its SKILL.md. */
128
+ const installSkills = (target, apply) => {
128
129
  const dir = SKILL_DIRS[target];
129
130
  if (!dir)
130
- return null;
131
- const path = join(home(), dir, "skills", "record-demo", "SKILL.md");
132
- const text = readText(path);
133
- if (text !== null && text.replace(/\r\n/g, "\n") === SKILL_TEXT)
134
- return { component: "skill", action: "unchanged", path };
135
- if (apply)
136
- writeText(path, SKILL_TEXT);
137
- return { component: "skill", action: text === null ? "create" : "update", path };
131
+ return [];
132
+ return Object.entries(SKILLS).map(([name, files]) => {
133
+ const folder = join(home(), dir, "skills", name);
134
+ const path = join(folder, "SKILL.md");
135
+ const fresh = readText(path) === null;
136
+ const stale = Object.entries(files).filter(([file, text]) => readText(join(folder, file))?.replace(/\r\n/g, "\n") !== text);
137
+ if (!stale.length)
138
+ return { component: "skill", action: "unchanged", path };
139
+ if (apply)
140
+ for (const [file, text] of stale)
141
+ writeText(join(folder, file), text);
142
+ return { component: "skill", action: fresh ? "create" : "update", path };
143
+ });
138
144
  };
139
145
  const installMcp = (target, apply) => {
140
146
  switch (target) {
@@ -172,9 +178,7 @@ export const install = (target, opts) => {
172
178
  if (component !== "skill")
173
179
  changes.push(installMcp(target, opts.apply));
174
180
  if (component !== "mcp") {
175
- const skill = installSkill(target, opts.apply);
176
- if (skill)
177
- changes.push(skill);
181
+ changes.push(...installSkills(target, opts.apply));
178
182
  }
179
183
  return { target, name: TARGET_NAMES[target], applied: opts.apply, changes, restart: RESTART[target] };
180
184
  };
@@ -1 +1 @@
1
- {"version":3,"file":"install.js","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uEAAuE;AACvE,+EAA+E;AAC/E,mFAAmF;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAU,CAAC;AAEzH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAA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without the
13
+ * frontmatter, then its references, so any MCP client has the whole guide.
14
+ */
15
+ export declare const motionGuide: (ask?: string) => string;
11
16
  export declare const recordFeaturePrompt: (feature: string, url?: string) => string;
12
17
  export declare const createMcpServer: (deps: McpServerDeps) => McpServer;
@@ -1,57 +1,72 @@
1
1
  import { desktopCall } from "../desktop.js";
2
2
  import { createRecordfulServer } from "../core/createRecordfulServer.js";
3
+ import { SKILLS } from "../skill.js";
3
4
  import { localTransport } from "./localTransport.js";
4
- const INSTRUCTIONS = `
5
- Recordful records the user's browser so you can produce product demo videos. It also drives the page it records, so you don't need a browser tool of your own.
6
-
7
- Typical flow for "record feature X" (the record_feature prompt has the full version):
8
- 1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
9
- 2. Call get_status. Recordful usually connects to you by itself; if it says NOT_CONNECTED, see below. It shows the tab you were handed (recorder.agent.armedTab), the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
10
- 3. Get to the starting page: navigate(url), then snapshot() to check it loaded. If no tab was handed to you, navigate opens a tab of your own (openedTab: true); page tools only ever act on that tab, a tab the user handed over, or the tab being recorded, never the user's other tabs.
11
- 4. To record in tab or tab-area mode, ask the user to click the Recordful toolbar icon in Chrome on that tab once. Chrome only lets an extension capture a tab after the user has invoked it there, and nothing can do this click for them. Screen and camera modes don't need it.
12
- 5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
13
- 6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
14
- 7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
15
- 8. Call stop_recording. Recordful opens its editor with the recording automatically.
16
- 9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
17
-
18
- Screenshots to keep or share: navigate to the page (no click needed), then take_screenshot (mode "page" for the whole page). Pass look only if the user asked for one ("3d" for a 3D tilt, or a preset name); otherwise their default look is used: a wallpaper picked to match the screenshot's colours. It opens in Recordful's screenshot editor and returns no image, so you don't need screenshot to check it.
19
-
20
- Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
21
-
22
- Free and Pro:
23
- - Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
24
- - Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
25
- - get_status shows recorder.account.plan: "pro", "free", "signed-out", or "unavailable". Check it before you promise a link or a transcript. If it isn't "pro", record as usual, tell the user the video is open in Recordful's editor, and mention once that links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't call upload_recording or get_transcript, and don't retry them after PRO_REQUIRED or NOT_SIGNED_IN.
26
-
27
- Managing what's on recordful.app (Recordful Pro): update_video (rename, who may watch), get_video_activity (views, likes, comments), comment_on_video, like_video, list_folders, create_folder, move_videos, delete_video, get_storage. These change or publish things for the user, so show them exactly what you'll do and wait for their yes before update_video, comment_on_video, move_videos, create_folder or delete_video; delete_video also needs the exact video named and confirm: true. Comments are public to everyone who can watch the video: post only the text the user approved.
28
-
29
- First connection on a computer:
30
- - NOT_CONNECTED: Recordful connects by itself once AI agents is on and it has paired with you. Otherwise ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
31
- - PAIRING_PENDING: Recordful opened a window asking the user to approve you. Tell them the 4-digit code from the error so they can check it matches, ask them to click Allow, then retry. This happens once per computer.
32
- - PAIRING_DENIED: the user declined. Don't retry unless they ask.
33
- - PERMISSIONS_NEEDED: Recordful's one-time browser permission to record hasn't been granted. Tell the user to turn AI agents off and on again in Recordful (popup → More → AI agents) and click Allow, then retry.
34
- - NOT_ARMED from a page tool: call navigate(url) first. From start_recording, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
35
- - NOT_SIGNED_IN or PRO_REQUIRED: uploads and transcripts need the user signed in to Recordful Pro. Relay the error's message (it says what still works); don't retry.
36
-
37
- If you have a browser tool of your own you can use it for the walkthrough instead, but Recordful's page tools make smoother videos.
38
- "screen" mode always shows Chrome's screen picker, which the user must answer.
5
+ const INSTRUCTIONS = `
6
+ Recordful records the user's browser so you can produce product demo videos. It also drives the page it records, so you don't need a browser tool of your own.
7
+
8
+ Typical flow for "record feature X" (the record_feature prompt has the full version):
9
+ 1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
10
+ 2. Call get_status. Recordful usually connects to you by itself; if it says NOT_CONNECTED, see below. It shows the tab you were handed (recorder.agent.armedTab), the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
11
+ 3. Get to the starting page: navigate(url), then snapshot() to check it loaded. If no tab was handed to you, navigate opens a tab of your own (openedTab: true); page tools only ever act on that tab, a tab the user handed over, or the tab being recorded, never the user's other tabs.
12
+ 4. To record in tab or tab-area mode, ask the user to click the Recordful toolbar icon in Chrome on that tab once. Chrome only lets an extension capture a tab after the user has invoked it there, and nothing can do this click for them. Screen and camera modes don't need it.
13
+ 5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
14
+ 6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
15
+ 7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
16
+ 8. Call stop_recording. Recordful opens its editor with the recording automatically.
17
+ 9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
18
+
19
+ Screenshots to keep or share: navigate to the page (no click needed), then take_screenshot (mode "page" for the whole page). Pass look only if the user asked for one ("3d" for a 3D tilt, or a preset name); otherwise their default look is used: a wallpaper picked to match the screenshot's colours. It opens in Recordful's screenshot editor and returns no image, so you don't need screenshot to check it.
20
+
21
+ Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
22
+
23
+ Free and Pro:
24
+ - Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
25
+ - Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
26
+ - get_status shows recorder.account.plan: "pro", "free", "signed-out", or "unavailable". Check it before you promise a link or a transcript. If it isn't "pro", record as usual, tell the user the video is open in Recordful's editor, and mention once that links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't call upload_recording or get_transcript, and don't retry them after PRO_REQUIRED or NOT_SIGNED_IN.
27
+
28
+ Managing what's on recordful.app (Recordful Pro): update_video (rename, who may watch), get_summary (AI summary and chapters; generating one spends AI credits, so ask first), get_video_activity (views, where from, per day, likes, comments), get_analytics (the whole library's views), list_members, invite_member (emails someone: confirm the exact address first), comment_on_video, delete_comment, like_video, list_folders, create_folder, move_videos, delete_video (to trash for 7 days), list_trash, restore_video, get_storage. These change or publish things for the user, so show them exactly what you'll do and wait for their yes before update_video, comment_on_video, delete_comment, move_videos, create_folder or delete_video; delete_video also needs the exact video named and confirm: true. Comments are public to everyone who can watch the video: post only the text the user approved.
29
+
30
+ First connection on a computer:
31
+ - NOT_CONNECTED: Recordful connects by itself once AI agents is on and it has paired with you. Otherwise ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
32
+ - PAIRING_PENDING: Recordful opened a window asking the user to approve you. Tell them the 4-digit code from the error so they can check it matches, ask them to click Allow, then retry. This happens once per computer.
33
+ - PAIRING_DENIED: the user declined. Don't retry unless they ask.
34
+ - PERMISSIONS_NEEDED: Recordful's one-time browser permission to record hasn't been granted. Tell the user to turn AI agents off and on again in Recordful (popup → More → AI agents) and click Allow, then retry.
35
+ - NOT_ARMED from a page tool: call navigate(url) first. From start_recording, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
36
+ - NOT_SIGNED_IN or PRO_REQUIRED: uploads and transcripts need the user signed in to Recordful Pro. Relay the error's message (it says what still works); don't retry.
37
+
38
+ If you have a browser tool of your own you can use it for the walkthrough instead, but Recordful's page tools make smoother videos.
39
+ "screen" mode always shows Chrome's screen picker, which the user must answer.
39
40
  `.trim();
40
- export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
41
-
42
- 1. Understand it as a user sees it. If you or the user just built it, read the changes (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 (for example a validation error). Leave out internals.
43
- 2. Get the app running. ${url ? `It should be at ${url}.` : "If 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 it answers.
44
- 3. Prepare test data. Use 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.
45
- 4. Write a short shot list, 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.
46
- 5. Call get_status, and note recorder.account.plan: links and transcripts need "pro". If it's NOT_CONNECTED, ask the user to click the Recordful icon in Chrome; the first time only, they also turn on AI agents (Recordful popup → More → AI agents) and approve the pairing code you'll get back.
47
- 6. navigate to the starting page (it opens a tab of your own if none was handed over) and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
48
- 7. If the recording mode is tab or tab area, ask the user to click the Recordful icon on that tab once (Chrome requires it before a tab can be recorded). Then start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
49
- 8. If something goes wrong while recording (an error, the wrong page), pause, fix it, and resume. Stop and start over only if the mistake would confuse viewers.
50
- 9. stop_recording. Recordful opens its editor with the video. Tell the user it's ready and summarise what the video shows in one or two sentences.
41
+ /**
42
+ * The recordful-motion skill as one message: its SKILL.md without the
43
+ * frontmatter, then its references, so any MCP client has the whole guide.
44
+ */
45
+ export const motionGuide = (ask) => {
46
+ const files = SKILLS["recordful-motion"] ?? {};
47
+ const body = (files["SKILL.md"] ?? "").replace(/^---\n[\s\S]*?\n---\n+/, "");
48
+ const references = Object.entries(files)
49
+ .filter(([name]) => name.startsWith("references/"))
50
+ .map(([name, text]) => `<!-- ${name} -->\n${text}`);
51
+ return [ask?.trim() ? `The person asked for: ${ask.trim()}\n` : "", body, ...references]
52
+ .filter(Boolean)
53
+ .join("\n\n");
54
+ };
55
+ export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
56
+
57
+ 1. Understand it as a user sees it. If you or the user just built it, read the changes (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 (for example a validation error). Leave out internals.
58
+ 2. Get the app running. ${url ? `It should be at ${url}.` : "If 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 it answers.
59
+ 3. Prepare test data. Use 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.
60
+ 4. Write a short shot list, 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.
61
+ 5. Call get_status, and note recorder.account.plan: links and transcripts need "pro". If it's NOT_CONNECTED, ask the user to click the Recordful icon in Chrome; the first time only, they also turn on AI agents (Recordful popup → More → AI agents) and approve the pairing code you'll get back.
62
+ 6. navigate to the starting page (it opens a tab of your own if none was handed over) and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
63
+ 7. If the recording mode is tab or tab area, ask the user to click the Recordful icon on that tab once (Chrome requires it before a tab can be recorded). Then start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
64
+ 8. If something goes wrong while recording (an error, the wrong page), pause, fix it, and resume. Stop and start over only if the mistake would confuse viewers.
65
+ 9. stop_recording. Recordful opens its editor with the video. Tell the user it's ready and summarise what the video shows in one or two sentences.
51
66
  10. If the plan is "pro" and the user wants to share it or check what was said: upload_recording (a cloud recording is already uploading), then get_transcript. On any other plan, don't attempt these; say once that shareable links and transcripts come with Recordful Pro.`;
52
67
  export const createMcpServer = (deps) => createRecordfulServer({
53
68
  transport: localTransport(deps.bridge),
54
- copy: { instructions: INSTRUCTIONS, recordFeaturePrompt },
69
+ copy: { instructions: INSTRUCTIONS, recordFeaturePrompt, motionGuide },
55
70
  timeouts: deps.config,
56
71
  logger: deps.logger,
57
72
  version: deps.version,
@@ -1 +1 @@
1
- {"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASrD,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCpB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,GAAY,EAAU,EAAE,CAAC,+DAA+D,OAAO;;;0BAG1H,GAAG,CAAC,CAAC,CAAC,mBAAmB,GAAG,GAAG,CAAC,CAAC,CAAA,6HAA6H;;;;;;;;+QAQuF,CAAC;AAEhR,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAmB,EAAa,EAAE,CAChE,qBAAqB,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE;IACzD,QAAQ,EAAE,IAAI,CAAC,MAAM;IACrB,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC"}
1
+ {"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASrD,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;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AW,EAAE;IACtE,QAAQ,EAAE,IAAI,CAAC,MAAM;IACrB,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC"}
@@ -38,6 +38,7 @@ export declare const ErrorCode: {
38
38
  readonly UploadFailed: "UPLOAD_FAILED";
39
39
  readonly UploadInterrupted: "UPLOAD_INTERRUPTED";
40
40
  readonly Forbidden: "FORBIDDEN";
41
+ readonly OutOfCredits: "OUT_OF_CREDITS";
41
42
  };
42
43
  export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
43
44
  export declare class BridgeError extends Error {
@@ -44,6 +44,7 @@ export const ErrorCode = {
44
44
  UploadFailed: "UPLOAD_FAILED",
45
45
  UploadInterrupted: "UPLOAD_INTERRUPTED",
46
46
  Forbidden: "FORBIDDEN",
47
+ OutOfCredits: "OUT_OF_CREDITS",
47
48
  };
48
49
  export class BridgeError extends Error {
49
50
  code;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/protocol/errors.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,cAAc;IACd,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,oBAAoB;IACvC,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,qDAAqD;IACrD,aAAa,EAAE,gBAAgB;IAC/B,gBAAgB,EAAE,mBAAmB;IACrC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,eAAe;IAC5B,gBAAgB,EAAE,oBAAoB;IACtC,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,UAAU;IACpB,8B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AAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
@@ -21,14 +21,21 @@ export declare const Method: {
21
21
  readonly VideoGet: "video.get";
22
22
  readonly VideoList: "video.list";
23
23
  readonly VideoTranscript: "video.transcript";
24
+ readonly VideoSummary: "video.summary";
24
25
  readonly VideoUpdate: "video.update";
25
26
  readonly VideoDelete: "video.delete";
27
+ readonly VideoRestore: "video.restore";
28
+ readonly TrashList: "trash.list";
26
29
  readonly VideoEngagement: "video.engagement";
27
30
  readonly VideoComment: "video.comment";
31
+ readonly VideoCommentDelete: "video.commentDelete";
28
32
  readonly VideoLike: "video.like";
29
33
  readonly VideoMove: "video.move";
30
34
  readonly FolderList: "folder.list";
31
35
  readonly FolderCreate: "folder.create";
36
+ readonly AnalyticsGet: "analytics.get";
37
+ readonly MembersList: "members.list";
38
+ readonly MembersInvite: "members.invite";
32
39
  readonly StorageGet: "storage.get";
33
40
  };
34
41
  export type Method = (typeof Method)[keyof typeof Method];
@@ -27,15 +27,22 @@ export const Method = {
27
27
  VideoGet: "video.get",
28
28
  VideoList: "video.list",
29
29
  VideoTranscript: "video.transcript",
30
+ VideoSummary: "video.summary",
30
31
  // Managing videos, folders and comments (Recordful Pro).
31
32
  VideoUpdate: "video.update",
32
33
  VideoDelete: "video.delete",
34
+ VideoRestore: "video.restore",
35
+ TrashList: "trash.list",
33
36
  VideoEngagement: "video.engagement",
34
37
  VideoComment: "video.comment",
38
+ VideoCommentDelete: "video.commentDelete",
35
39
  VideoLike: "video.like",
36
40
  VideoMove: "video.move",
37
41
  FolderList: "folder.list",
38
42
  FolderCreate: "folder.create",
43
+ AnalyticsGet: "analytics.get",
44
+ MembersList: "members.list",
45
+ MembersInvite: "members.invite",
39
46
  StorageGet: "storage.get",
40
47
  };
41
48
  export const METHODS = Object.values(Method);
@@ -1 +1 @@
1
- {"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/protocol/methods.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA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KAAK,CAAC,CAAC"}
@@ -25,6 +25,11 @@ export declare const videoParams: {
25
25
  readonly videoId: z.ZodOptional<z.ZodString>;
26
26
  readonly start: z.ZodOptional<z.ZodBoolean>;
27
27
  };
28
+ readonly summary: {
29
+ readonly videoId: z.ZodOptional<z.ZodString>;
30
+ readonly generate: z.ZodOptional<z.ZodBoolean>;
31
+ readonly regenerate: z.ZodOptional<z.ZodBoolean>;
32
+ };
28
33
  readonly update: {
29
34
  readonly videoId: z.ZodOptional<z.ZodString>;
30
35
  readonly title: z.ZodOptional<z.ZodString>;
@@ -33,13 +38,32 @@ export declare const videoParams: {
33
38
  public: "public";
34
39
  workspace: "workspace";
35
40
  }>>;
41
+ readonly password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ readonly expiresAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
36
43
  };
37
44
  readonly remove: {
38
45
  readonly videoId: z.ZodString;
46
+ readonly confirm: z.ZodOptional<z.ZodLiteral<true>>;
47
+ readonly dryRun: z.ZodOptional<z.ZodLiteral<true>>;
48
+ };
49
+ readonly restore: {
50
+ readonly videoId: z.ZodString;
51
+ };
52
+ readonly deleteComment: {
53
+ readonly videoId: z.ZodString;
54
+ readonly commentId: z.ZodString;
39
55
  readonly confirm: z.ZodLiteral<true>;
40
56
  };
41
57
  readonly activity: {
42
58
  readonly videoId: z.ZodOptional<z.ZodString>;
59
+ readonly days: z.ZodOptional<z.ZodNumber>;
60
+ };
61
+ readonly invite: {
62
+ readonly email: z.ZodEmail;
63
+ readonly confirm: z.ZodLiteral<true>;
64
+ };
65
+ readonly analytics: {
66
+ readonly days: z.ZodOptional<z.ZodNumber>;
43
67
  };
44
68
  readonly comment: {
45
69
  readonly videoId: z.ZodOptional<z.ZodString>;