recordful-mcp 0.4.0 → 0.5.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.
@@ -0,0 +1,179 @@
1
+ // `recordful-mcp install --target <app>`: writes the Recordful MCP entry (and,
2
+ // where the app has skills, the Recordful skill) into one AI app's own
3
+ // configuration. It merges, never replaces: other servers and settings stay as
4
+ // they are, and a file it can't parse is left alone with the entry to add by hand.
5
+ import { spawnSync } from "node:child_process";
6
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
7
+ import { homedir, platform } from "node:os";
8
+ import { dirname, join } from "node:path";
9
+ import { SKILL_TEXT } from "./skill.js";
10
+ export const TARGETS = ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini"];
11
+ export const COMPONENTS = ["all", "mcp", "skill"];
12
+ export const TARGET_NAMES = {
13
+ claude: "Claude Code",
14
+ cursor: "Cursor",
15
+ codex: "Codex",
16
+ opencode: "opencode",
17
+ vscode: "VS Code",
18
+ windsurf: "Windsurf",
19
+ gemini: "Gemini CLI",
20
+ };
21
+ const SERVER = "recordful";
22
+ const NPX_ARGS = ["-y", "recordful-mcp"];
23
+ // RECORDFUL_INSTALL_HOME exists for tests; nobody needs it otherwise.
24
+ const home = () => process.env.RECORDFUL_INSTALL_HOME || homedir();
25
+ const isWindows = () => platform() === "win32";
26
+ const readText = (path) => (existsSync(path) ? readFileSync(path, "utf8") : null);
27
+ const writeText = (path, text) => {
28
+ mkdirSync(dirname(path), { recursive: true });
29
+ writeFileSync(path, text);
30
+ };
31
+ const sameJson = (a, b) => JSON.stringify(a) === JSON.stringify(b);
32
+ // Merges `entry` under `section.recordful` in a JSON config file.
33
+ const mergeJson = (path, section, entry, apply) => {
34
+ const wanted = { [section]: { [SERVER]: entry } };
35
+ const manual = (why) => ({
36
+ component: "mcp",
37
+ action: "manual",
38
+ path,
39
+ detail: `${why} Add this to ${path} yourself:\n${JSON.stringify(wanted, null, 2)}`,
40
+ });
41
+ const text = readText(path);
42
+ let doc = {};
43
+ if (text !== null && text.trim() !== "") {
44
+ try {
45
+ const parsed = JSON.parse(text);
46
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
47
+ return manual("The file isn't a JSON object.");
48
+ doc = parsed;
49
+ }
50
+ catch {
51
+ return manual("Couldn't read the file as plain JSON (comments?), so it was left alone.");
52
+ }
53
+ }
54
+ const current = doc[section];
55
+ if (current !== undefined && (typeof current !== "object" || current === null || Array.isArray(current))) {
56
+ return manual(`"${section}" in the file isn't an object.`);
57
+ }
58
+ const servers = (current ?? {});
59
+ if (sameJson(servers[SERVER], entry))
60
+ return { component: "mcp", action: "unchanged", path };
61
+ const action = servers[SERVER] === undefined && text === null ? "create" : "update";
62
+ if (apply)
63
+ writeText(path, `${JSON.stringify({ ...doc, [section]: { ...servers, [SERVER]: entry } }, null, 2)}\n`);
64
+ return { component: "mcp", action, path };
65
+ };
66
+ const codexToml = () => {
67
+ const command = isWindows() ? "cmd" : "npx";
68
+ const args = isWindows() ? ["/c", "npx", ...NPX_ARGS] : NPX_ARGS;
69
+ return `[mcp_servers.${SERVER}]\ncommand = ${JSON.stringify(command)}\nargs = [${args.map((a) => JSON.stringify(a)).join(", ")}]\n`;
70
+ };
71
+ const mergeCodex = (apply) => {
72
+ const path = join(home(), ".codex", "config.toml");
73
+ const text = readText(path);
74
+ if (text !== null && new RegExp(`^\\s*\\[mcp_servers\\.${SERVER}\\]`, "m").test(text))
75
+ return { component: "mcp", action: "unchanged", path };
76
+ if (apply)
77
+ writeText(path, `${text === null || text.trim() === "" ? "" : `${text.replace(/\s*$/, "")}\n\n`}${codexToml()}`);
78
+ return { component: "mcp", action: text === null ? "create" : "update", path };
79
+ };
80
+ const claudeAddArgs = () => [
81
+ "mcp",
82
+ "add",
83
+ "--scope",
84
+ "user",
85
+ SERVER,
86
+ "--",
87
+ ...(isWindows() ? ["cmd", "/c", "npx"] : ["npx"]),
88
+ ...NPX_ARGS,
89
+ ];
90
+ // On Windows claude is a .cmd shim, which only runs through a shell; the arguments are fixed words, so one command line is safe.
91
+ const runClaude = (args) => isWindows()
92
+ ? spawnSync(["claude", ...args].join(" "), { encoding: "utf8", shell: true, timeout: 60_000 })
93
+ : spawnSync("claude", args, { encoding: "utf8", timeout: 60_000 });
94
+ const mergeClaude = (apply) => {
95
+ const args = claudeAddArgs();
96
+ const text = `claude ${args.join(" ")}`;
97
+ const have = runClaude(["mcp", "get", SERVER]);
98
+ // 127 / 9009 are "command not found" from the shell on Linux/macOS and cmd.exe.
99
+ if (have.error || have.status === null || have.status === 127 || have.status === 9009) {
100
+ return { component: "mcp", action: "manual", command: text, detail: `The claude command isn't on PATH. Run this yourself: ${text}` };
101
+ }
102
+ if (have.status === 0)
103
+ return { component: "mcp", action: "unchanged", command: `claude mcp get ${SERVER}` };
104
+ if (!apply)
105
+ return { component: "mcp", action: "run", command: text };
106
+ const added = runClaude(args);
107
+ if (added.status !== 0) {
108
+ const why = (added.stderr || added.stdout || "").trim().slice(0, 200);
109
+ return { component: "mcp", action: "manual", command: text, detail: `claude mcp add failed (${why}). Run it yourself: ${text}` };
110
+ }
111
+ return { component: "mcp", action: "run", command: text };
112
+ };
113
+ const vscodeUserDir = () => {
114
+ if (isWindows())
115
+ return join(process.env.APPDATA || join(home(), "AppData", "Roaming"), "Code", "User");
116
+ if (platform() === "darwin")
117
+ return join(home(), "Library", "Application Support", "Code", "User");
118
+ return join(home(), ".config", "Code", "User");
119
+ };
120
+ // Where each app reads global skills from (SKILL.md in a folder).
121
+ const SKILL_DIRS = {
122
+ claude: ".claude",
123
+ cursor: ".cursor",
124
+ codex: ".codex",
125
+ };
126
+ const installSkill = (target, apply) => {
127
+ const dir = SKILL_DIRS[target];
128
+ if (!dir)
129
+ return null;
130
+ const path = join(home(), dir, "skills", "record-demo", "SKILL.md");
131
+ const text = readText(path);
132
+ if (text !== null && text.replace(/\r\n/g, "\n") === SKILL_TEXT)
133
+ return { component: "skill", action: "unchanged", path };
134
+ if (apply)
135
+ writeText(path, SKILL_TEXT);
136
+ return { component: "skill", action: text === null ? "create" : "update", path };
137
+ };
138
+ const installMcp = (target, apply) => {
139
+ switch (target) {
140
+ case "claude":
141
+ return mergeClaude(apply);
142
+ case "cursor":
143
+ return mergeJson(join(home(), ".cursor", "mcp.json"), "mcpServers", { command: "npx", args: NPX_ARGS }, apply);
144
+ case "windsurf":
145
+ return mergeJson(join(home(), ".codeium", "windsurf", "mcp_config.json"), "mcpServers", { command: "npx", args: NPX_ARGS }, apply);
146
+ case "gemini":
147
+ return mergeJson(join(home(), ".gemini", "settings.json"), "mcpServers", { command: "npx", args: NPX_ARGS }, apply);
148
+ case "vscode":
149
+ return mergeJson(join(vscodeUserDir(), "mcp.json"), "servers", { type: "stdio", command: "npx", args: NPX_ARGS }, apply);
150
+ case "opencode":
151
+ return mergeJson(join(home(), ".config", "opencode", "opencode.json"), "mcp", { type: "local", command: ["npx", ...NPX_ARGS], enabled: true }, apply);
152
+ case "codex":
153
+ return mergeCodex(apply);
154
+ }
155
+ };
156
+ const RESTART = {
157
+ claude: "Restart Claude Code (or run /mcp) so it loads the server and the skill.",
158
+ cursor: "Restart Cursor (or toggle the server in Settings → MCP) so it loads the server and the skill.",
159
+ codex: "Restart Codex so it loads the server and the skill.",
160
+ opencode: "Restart opencode, then run `opencode mcp list` to check the server.",
161
+ vscode: 'In VS Code, run "MCP: List Servers" and start recordful (or reload the window).',
162
+ windsurf: "Restart Windsurf (or refresh MCP servers in Cascade).",
163
+ gemini: "Restart Gemini CLI, then run /mcp to check the server.",
164
+ };
165
+ export const install = (target, opts) => {
166
+ const component = opts.component ?? "all";
167
+ const changes = [];
168
+ if (component !== "skill")
169
+ changes.push(installMcp(target, opts.apply));
170
+ if (component !== "mcp") {
171
+ const skill = installSkill(target, opts.apply);
172
+ if (skill)
173
+ changes.push(skill);
174
+ }
175
+ return { target, name: TARGET_NAMES[target], applied: opts.apply, changes, restart: RESTART[target] };
176
+ };
177
+ export const isTarget = (value) => typeof value === "string" && TARGETS.includes(value);
178
+ export const isComponent = (value) => typeof value === "string" && COMPONENTS.includes(value);
179
+ //# sourceMappingURL=install.js.map
@@ -0,0 +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,CAAU,CAAC;AAE1G,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAU,CAAC;AAG3D,MAAM,CAAC,MAAM,YAAY,GAA2B;IAClD,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,YAAY;CACrB,CAAC;AAoBF,MAAM,MAAM,GAAG,WAAW,CAAC;AAC3B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;AAEzC,sEAAsE;AACtE,MAAM,IAAI,GAAG,GAAW,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,OAAO,EAAE,CAAC;AAC3E,MAAM,SAAS,GAAG,GAA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parsePageParams } from "../protocol/page.js";
9
9
  import { registerVideoTools } from "./videoTools.js";
10
- const INSTRUCTIONS = `
11
- 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.
12
-
13
- Typical flow for "record feature X" (the record_feature prompt has the full version):
14
- 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.
15
- 2. Ask the user to click the Recordful toolbar icon in Chrome on the tab to record. Chrome only lets an extension capture a tab after the user has invoked it there, and the same click connects Recordful to you. Nothing can do this click for them. Page tools only ever act on that tab.
16
- 3. Call get_status. It confirms the connection, shows the tab you were handed (recorder.agent.armedTab), and reports the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
17
- 4. Get to the starting page before recording: navigate(url), then snapshot() to check it loaded.
18
- 5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
19
- 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.
20
- 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.
21
- 8. Call stop_recording. Recordful opens its editor with the recording automatically.
22
- 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).
23
-
24
- Free and Pro:
25
- - Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
26
- - Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
27
- - 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.
28
-
29
- First connection on a computer:
30
- - NOT_CONNECTED: 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
- - NOT_ARMED, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
34
- - 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.
35
-
36
- 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.
37
- "screen" mode always shows Chrome's screen picker, which the user must answer.
10
+ const INSTRUCTIONS = `
11
+ 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.
12
+
13
+ Typical flow for "record feature X" (the record_feature prompt has the full version):
14
+ 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.
15
+ 2. Ask the user to click the Recordful toolbar icon in Chrome on the tab to record. Chrome only lets an extension capture a tab after the user has invoked it there, and the same click connects Recordful to you. Nothing can do this click for them. Page tools only ever act on that tab.
16
+ 3. Call get_status. It confirms the connection, shows the tab you were handed (recorder.agent.armedTab), and reports the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
17
+ 4. Get to the starting page before recording: navigate(url), then snapshot() to check it loaded.
18
+ 5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
19
+ 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.
20
+ 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.
21
+ 8. Call stop_recording. Recordful opens its editor with the recording automatically.
22
+ 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).
23
+
24
+ Free and Pro:
25
+ - Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
26
+ - Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
27
+ - 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.
28
+
29
+ First connection on a computer:
30
+ - NOT_CONNECTED: 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, 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.
38
39
  `.trim();
39
40
  const text = (value) => ({
40
41
  content: [{ type: "text", text: typeof value === "string" ? value : JSON.stringify(value, null, 2) }],
@@ -245,16 +246,16 @@ export const createMcpServer = (deps) => {
245
246
  }));
246
247
  return server;
247
248
  };
248
- export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
249
-
250
- 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.
251
- 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.
252
- 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.
253
- 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.
254
- 5. Ask the user to click the Recordful icon in Chrome on the tab with the app. The first time only, they also turn on AI agents (Recordful popup → More → AI agents), and approve the pairing code you'll get back. Then call get_status, and note recorder.account.plan: links and transcripts need "pro".
255
- 6. navigate to the starting page and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
256
- 7. 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.
257
- 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.
258
- 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.
249
+ export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
250
+
251
+ 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.
252
+ 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.
253
+ 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.
254
+ 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.
255
+ 5. Ask the user to click the Recordful icon in Chrome on the tab with the app. The first time only, they also turn on AI agents (Recordful popup → More → AI agents), and approve the pairing code you'll get back. Then call get_status, and note recorder.account.plan: links and transcripts need "pro".
256
+ 6. navigate to the starting page and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
257
+ 7. 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.
258
+ 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.
259
+ 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.
259
260
  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.`;
260
261
  //# sourceMappingURL=createMcpServer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,yEAAyE;AACzE,8EAA8E;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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EAAE,EAAE,EAAE;QAC5C,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,6EAA6E;IAC7E,yEAAyE;IACzE,8DAA8D;IAC9D,oCAAoC;IAEpC,MAAM,CAAC,cAAc,CACnB,gBAAgB,EAChB;QACE,KAAK,EAAE,uBAAuB;QAC9B,WAAW,EACT,6LAA6L;QAC/L,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gFAAgF,CAAC;YAC9G,GAAG,EAAE,CAAC;iBACH,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,8FAA8F,CAAC;SAC5G;KACF,EACD,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;QACrB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC;KACjG,CAAC,CACH,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,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"}
@@ -12,6 +12,7 @@ export declare const ErrorCode: {
12
12
  readonly NoTargetTab: "NO_TARGET_TAB";
13
13
  readonly TabNotRecordable: "TAB_NOT_RECORDABLE";
14
14
  readonly StartFailed: "START_FAILED";
15
+ readonly PermissionsNeeded: "PERMISSIONS_NEEDED";
15
16
  readonly StopFailed: "STOP_FAILED";
16
17
  readonly Internal: "INTERNAL";
17
18
  readonly NotArmed: "NOT_ARMED";
@@ -16,6 +16,7 @@ export const ErrorCode = {
16
16
  NoTargetTab: "NO_TARGET_TAB",
17
17
  TabNotRecordable: "TAB_NOT_RECORDABLE",
18
18
  StartFailed: "START_FAILED",
19
+ PermissionsNeeded: "PERMISSIONS_NEEDED",
19
20
  StopFailed: "STOP_FAILED",
20
21
  Internal: "INTERNAL",
21
22
  // page tools (extension-side)
@@ -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,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,UAAU;IACpB,8BAA8B;IAC9B,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,gBAAgB;IAC9B,iBAAiB,EAAE,qBAAqB;IACxC,QAAQ,EAAE,WAAW;IACrB,sBAAsB,EAAE,0BAA0B;IAClD,eAAe,EAAE,kBAAkB;IACnC,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,gDAAgD;IAChD,WAAW,EAAE,cAAc;IAC3B,gBAAgB,EAAE,mBAAmB;IACrC,gBAAgB,EAAE,mBAA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;IACrB,YAAY,EAAE,gBAAgB;IAC9B,iBAAiB,EAAE,qBAAqB;IACxC,QAAQ,EAAE,WAAW;IACrB,sBAAsB,EAAE,0BAA0B;IAClD,eAAe,EAAE,kBAAkB;IACnC,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,gDAAgD;IAChD,WAAW,EAAE,cAAc;IAC3B,gBAAgB,EAAE,mBAAmB;IACrC,gBAAgB,EAAE,mBAAmB;IACrC,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,wBAAwB,EAAE,2BAA2B;IACrD,mBAAmB,EAAE,sBAAsB;IAC3C,YAAY,EAAE,eAAe;IAC7B,iBAAiB,EAAE,oBAAoB;CAC/B,CAAC;AAGX,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC3B,IAAI,CAAS;IACb,IAAI,CAAU;IAEvB,YAAY,IAAY,EAAE,OAAe,EAAE,IAAc;QACvD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
@@ -1,48 +1,48 @@
1
1
  // `recordful-mcp setup`: copy-paste configuration for the common AI apps.
2
2
  // Kept in step with the README's install section.
3
- export const setupGuide = () => `Add Recordful to your AI app
4
-
5
- The server runs locally with npx: no hosting, no account, no API key.
6
-
7
- Claude Code
8
- Plugin (server + record-demo skill + /record-demo):
9
- /plugin marketplace add iKislay/recordful-mcp
10
- /plugin install recordful@recordful
11
- Or just the server, for all projects:
12
- claude mcp add --scope user recordful -- npx -y recordful-mcp
13
- (native Windows: use "cmd /c npx -y recordful-mcp")
14
-
15
- Claude Desktop
16
- Settings → Extensions → install recordful.mcpb (from the GitHub release), or add this to
17
- claude_desktop_config.json (Settings → Developer → Edit Config):
18
- { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
19
-
20
- Cursor (~/.cursor/mcp.json)
21
- { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
22
-
23
- VS Code (.vscode/mcp.json, or "MCP: Add Server" in the Command Palette)
24
- { "servers": { "recordful": { "type": "stdio", "command": "npx", "args": ["-y", "recordful-mcp"] } } }
25
-
26
- Windsurf (~/.codeium/windsurf/mcp_config.json)
27
- { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
28
-
29
- opencode (opencode.json)
30
- { "mcp": { "recordful": { "type": "local", "command": ["npx", "-y", "recordful-mcp"], "enabled": true } } }
31
-
32
- Codex CLI (~/.codex/config.toml)
33
- [mcp_servers.recordful]
34
- command = "npx"
35
- args = ["-y", "recordful-mcp"]
36
-
37
- Gemini CLI (~/.gemini/settings.json)
38
- { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
39
-
40
- Any other app that runs local (stdio) MCP servers: command "npx", arguments "-y recordful-mcp".
41
-
42
- Then, in Chrome:
43
- 1. Install Recordful: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc
44
- 2. First time only: open Recordful's popup → More → AI agents, and turn it on.
45
- 3. Ask your AI to record something, e.g. "Record a demo of the sign-up flow on localhost:3000".
46
- When it asks, click the Recordful icon on that tab, and approve the pairing code (first time only).
3
+ export const setupGuide = () => `Add Recordful to your AI app
4
+
5
+ The server runs locally with npx: no hosting, no account, no API key.
6
+
7
+ Claude Code
8
+ Plugin (server + record-demo skill + /record-demo):
9
+ /plugin marketplace add iKislay/recordful-mcp
10
+ /plugin install recordful@recordful
11
+ Or just the server, for all projects:
12
+ claude mcp add --scope user recordful -- npx -y recordful-mcp
13
+ (native Windows: use "cmd /c npx -y recordful-mcp")
14
+
15
+ Claude Desktop
16
+ Settings → Extensions → install recordful.mcpb (from the GitHub release), or add this to
17
+ claude_desktop_config.json (Settings → Developer → Edit Config):
18
+ { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
19
+
20
+ Cursor (~/.cursor/mcp.json)
21
+ { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
22
+
23
+ VS Code (.vscode/mcp.json, or "MCP: Add Server" in the Command Palette)
24
+ { "servers": { "recordful": { "type": "stdio", "command": "npx", "args": ["-y", "recordful-mcp"] } } }
25
+
26
+ Windsurf (~/.codeium/windsurf/mcp_config.json)
27
+ { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
28
+
29
+ opencode (opencode.json)
30
+ { "mcp": { "recordful": { "type": "local", "command": ["npx", "-y", "recordful-mcp"], "enabled": true } } }
31
+
32
+ Codex CLI (~/.codex/config.toml)
33
+ [mcp_servers.recordful]
34
+ command = "npx"
35
+ args = ["-y", "recordful-mcp"]
36
+
37
+ Gemini CLI (~/.gemini/settings.json)
38
+ { "mcpServers": { "recordful": { "command": "npx", "args": ["-y", "recordful-mcp"] } } }
39
+
40
+ Any other app that runs local (stdio) MCP servers: command "npx", arguments "-y recordful-mcp".
41
+
42
+ Then, in Chrome:
43
+ 1. Install Recordful: https://chromewebstore.google.com/detail/hkcgjbkibidgbefehehenlmhjanjaopc
44
+ 2. First time only: open Recordful's popup → More → AI agents, and turn it on.
45
+ 3. Ask your AI to record something, e.g. "Record a demo of the sign-up flow on localhost:3000".
46
+ When it asks, click the Recordful icon on that tab, and approve the pairing code (first time only).
47
47
  `;
48
48
  //# sourceMappingURL=setupGuide.js.map
@@ -0,0 +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 or gemini. 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";
@@ -0,0 +1,33 @@
1
+ // `recordful-mcp prompt`: one block of text a user pastes into any AI app so the
2
+ // app sets Recordful up for itself. The same text is on the README and the help
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 or gemini. 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.
32
+ `;
33
+ //# sourceMappingURL=setupPrompt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupPrompt.js","sourceRoot":"","sources":["../src/setupPrompt.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,gFAAgF;AAChF,8EAA8E;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B3B,CAAC"}
@@ -0,0 +1 @@
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.\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`, `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.\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";
package/dist/skill.js ADDED
@@ -0,0 +1,4 @@
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.\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`, `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.\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";
4
+ //# sourceMappingURL=skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,wGAAwG;AACxG,MAAM,CAAC,MAAM,UAAU,GAAG,83KAA83K,CAAC"}