recordful-mcp 0.5.0 → 0.6.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.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -0
- package/dist/args.js +1 -1
- package/dist/args.js.map +1 -1
- package/dist/cli.js +88 -0
- package/dist/cli.js.map +1 -1
- package/dist/core/createRecordfulServer.d.ts +11 -0
- package/dist/core/createRecordfulServer.js +207 -0
- package/dist/core/createRecordfulServer.js.map +1 -0
- package/dist/core/libraryTools.d.ts +6 -0
- package/dist/core/libraryTools.js +61 -0
- package/dist/core/libraryTools.js.map +1 -0
- package/dist/core/transport.d.ts +18 -0
- package/dist/core/transport.js +10 -0
- package/dist/core/transport.js.map +1 -0
- package/dist/core/videoTools.js.map +1 -0
- package/dist/guide.d.ts +3 -3
- package/dist/guide.js +19 -0
- package/dist/guide.js.map +1 -1
- package/dist/mcp/createMcpServer.d.ts +2 -2
- package/dist/mcp/createMcpServer.js +11 -218
- package/dist/mcp/createMcpServer.js.map +1 -1
- package/dist/mcp/localTransport.d.ts +3 -0
- package/dist/mcp/localTransport.js +26 -0
- package/dist/mcp/localTransport.js.map +1 -0
- package/dist/protocol/errors.d.ts +1 -0
- package/dist/protocol/errors.js +1 -0
- package/dist/protocol/errors.js.map +1 -1
- package/dist/protocol/methods.d.ts +9 -0
- package/dist/protocol/methods.js +10 -0
- package/dist/protocol/methods.js.map +1 -1
- package/dist/protocol/video.d.ts +33 -0
- package/dist/protocol/video.js +30 -0
- package/dist/protocol/video.js.map +1 -1
- package/package.json +1 -1
- package/dist/mcp/videoTools.js.map +0 -1
- /package/dist/{mcp → core}/videoTools.d.ts +0 -0
- /package/dist/{mcp → core}/videoTools.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// What the MCP core needs from whatever carries requests to the extension.
|
|
2
|
+
// Locally that's the loopback bridge (src/mcp/localTransport.ts); hosted at
|
|
3
|
+
// mcp.recordful.app it's the per-user relay. The core never sees which, so
|
|
4
|
+
// the tools, the prompt and the result shapes are the same everywhere.
|
|
5
|
+
//
|
|
6
|
+
// Everything under src/core (and the protocol/ and workflows modules it uses)
|
|
7
|
+
// must run outside Node too: no node:* imports and no Node globals.
|
|
8
|
+
// test/core.test.ts enforces it.
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/core/transport.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,4EAA4E;AAC5E,2EAA2E;AAC3E,uEAAuE;AACvE,EAAE;AACF,8EAA8E;AAC9E,oEAAoE;AACpE,iCAAiC"}
|
|
@@ -0,0 +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,EA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AE,mBAAmB;QAC1B,WAAW,EACT,0ZAA0Z;QAC5Z,WAAW,EAAE;YACX,GAAG,WAAW,CAAC,UAAU;YACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;YACpH,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;YAC3F,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC;SAChC;QACD,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;KACxG,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CACvF,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/guide.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const MCP_TOOLS: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "list_recordings", "upload_recording", "get_video", "list_videos", "get_transcript"];
|
|
1
|
+
export declare const MCP_TOOLS: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "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"];
|
|
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", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "list_recordings", "upload_recording", "get_video", "list_videos", "get_transcript"];
|
|
22
|
+
mcpTools: readonly ["get_status", "start_recording", "stop_recording", "pause_recording", "resume_recording", "probe_capture", "navigate", "snapshot", "click", "type", "press", "scroll", "wait_for", "screenshot", "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"];
|
|
23
23
|
commands: CommandInfo[];
|
|
24
24
|
installTargets: readonly ["claude", "cursor", "codex", "opencode", "vscode", "windsurf", "gemini"];
|
|
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" | "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" | "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
|
@@ -23,6 +23,15 @@ export const MCP_TOOLS = [
|
|
|
23
23
|
"get_video",
|
|
24
24
|
"list_videos",
|
|
25
25
|
"get_transcript",
|
|
26
|
+
"update_video",
|
|
27
|
+
"delete_video",
|
|
28
|
+
"get_video_activity",
|
|
29
|
+
"comment_on_video",
|
|
30
|
+
"like_video",
|
|
31
|
+
"list_folders",
|
|
32
|
+
"create_folder",
|
|
33
|
+
"move_videos",
|
|
34
|
+
"get_storage",
|
|
26
35
|
];
|
|
27
36
|
const COMMANDS = [
|
|
28
37
|
{ command: "status", summary: "Connection, recorder, account and pairing state", needsRecordful: false },
|
|
@@ -34,6 +43,15 @@ const COMMANDS = [
|
|
|
34
43
|
{ command: "videos [--limit n] [--query text]", summary: "List the user's videos on recordful.app", pro: true, needsRecordful: true },
|
|
35
44
|
{ command: "video [<videoId>] [--wait]", summary: "One video's links and upload stage", pro: true, needsRecordful: true },
|
|
36
45
|
{ command: "transcript [<videoId>] [--format text|vtt|json] [--no-wait]", summary: "Print what was said (starts transcription on first use)", pro: true, needsRecordful: true },
|
|
46
|
+
{ 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 },
|
|
47
|
+
{ command: "delete <videoId> --yes", summary: "Permanently delete a video (confirm the exact video with the user first)", pro: true, needsRecordful: true },
|
|
48
|
+
{ command: "activity [<videoId>]", summary: "Views, likes and comments on a video", pro: true, needsRecordful: true },
|
|
49
|
+
{ 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 },
|
|
50
|
+
{ command: "like [<videoId>] [--undo]", summary: "Like or unlike a video", pro: true, needsRecordful: true },
|
|
51
|
+
{ command: "folders", summary: "List the user's folders", pro: true, needsRecordful: true },
|
|
52
|
+
{ command: "folder-create <name> [--parent <folderId>]", summary: "Create a folder", pro: true, needsRecordful: true },
|
|
53
|
+
{ command: "move <videoId>... [--to <folderId>]", summary: "Move videos into a folder (no --to: the top level)", pro: true, needsRecordful: true },
|
|
54
|
+
{ command: "storage", summary: "Cloud storage used and whether uploads are allowed", pro: true, needsRecordful: true },
|
|
37
55
|
{ command: "call <method> [json]", summary: "Call one Recordful method directly (page actions such as page.click, debugging)", needsRecordful: true },
|
|
38
56
|
{ 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 },
|
|
39
57
|
{ command: "unpair [<id>|--all]", summary: "Forget a paired Recordful", needsRecordful: false },
|
|
@@ -69,6 +87,7 @@ export const guide = (version) => ({
|
|
|
69
87
|
"Use test data only; never type the user's real credentials or personal data into a page.",
|
|
70
88
|
"Never ask the user to paste a token, password or key into the chat. Recordful holds its own sign-in; you never see it.",
|
|
71
89
|
"Pages are only acted on in the tab the user handed over with the icon click.",
|
|
90
|
+
"Before you rename, change who can watch, comment, move, create a folder or delete, show the user exactly what you will do and wait for their yes. Comments are public to everyone who can watch; delete is permanent.",
|
|
72
91
|
],
|
|
73
92
|
errorCodes: Object.values(ErrorCode),
|
|
74
93
|
});
|
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,eAAe;IACf,UAAU;IACV,UAAU;IACV,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,kBAAkB;IAClB,WAAW;IACX,aAAa;IACb,gBAAgB;
|
|
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,eAAe;IACf,UAAU;IACV,UAAU;IACV,OAAO;IACP,MAAM;IACN,OAAO;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OAAO,EAAE,sCAAsC,EAAE,cAAc,EAAE,KAAK,EAAE;IAC5F,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iEAAiE,EAAE,cAAc,EAAE,KAAK,EAAE;IACxH,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,KAAK,EAAE;CAC7E,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,CAAC;IACzC,IAAI,EAAE,eAAe;IACrB,OAAO;IACP,OAAO,EAAE,6HAA6H;IACtI,UAAU,EAAE;QACV,GAAG,EAAE,4FAA4F;QACjG,GAAG,EAAE,qHAAqH;KAC3H;IACD,OAAO,EACL,2PAA2P;IAC7P,SAAS,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,8CAA8C,EAAE,GAAG,EAAE,+DAA+D,EAAE;IACnJ,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,QAAQ;IAClB,cAAc,EAAE,OAAO;IACvB,UAAU,EAAE;QACV,8CAA8C;QAC9C,mGAAmG;QACnG,6FAA6F;QAC7F,sEAAsE;KACvE;IACD,KAAK,EAAE;QACL,IAAI,EAAE,8NAA8N;QACpO,GAAG,EAAE,sCAAsC;KAC5C;IACD,MAAM,EAAE;QACN,qDAAqD;QACrD,0FAA0F;QAC1F,wHAAwH;QACxH,8EAA8E;QAC9E,uNAAuN;KACxN;IACD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import type { Bridge } from "../bridge/BridgeServer.js";
|
|
3
3
|
import type { BridgeConfig } from "../config.js";
|
|
4
4
|
import type { Logger } from "../logger.js";
|
|
@@ -8,5 +8,5 @@ export interface McpServerDeps {
|
|
|
8
8
|
logger: Logger;
|
|
9
9
|
version: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createMcpServer: (deps: McpServerDeps) => McpServer;
|
|
12
11
|
export declare const recordFeaturePrompt: (feature: string, url?: string) => string;
|
|
12
|
+
export declare const createMcpServer: (deps: McpServerDeps) => McpServer;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// validates input, waits for the extension, and shapes results for the agent.
|
|
4
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { BridgeError, ErrorCode } from "../protocol/errors.js";
|
|
7
|
-
import { Method } from "../protocol/methods.js";
|
|
8
|
-
import { pageExtraWaitMs, pageParams, parsePageParams } from "../protocol/page.js";
|
|
9
|
-
import { registerVideoTools } from "./videoTools.js";
|
|
1
|
+
import { createRecordfulServer } from "../core/createRecordfulServer.js";
|
|
2
|
+
import { localTransport } from "./localTransport.js";
|
|
10
3
|
const INSTRUCTIONS = `
|
|
11
4
|
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
5
|
|
|
@@ -26,6 +19,8 @@ Free and Pro:
|
|
|
26
19
|
- Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
|
|
27
20
|
- 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
21
|
|
|
22
|
+
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.
|
|
23
|
+
|
|
29
24
|
First connection on a computer:
|
|
30
25
|
- 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
26
|
- 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.
|
|
@@ -37,215 +32,6 @@ First connection on a computer:
|
|
|
37
32
|
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
33
|
"screen" mode always shows Chrome's screen picker, which the user must answer.
|
|
39
34
|
`.trim();
|
|
40
|
-
const text = (value) => ({
|
|
41
|
-
content: [{ type: "text", text: typeof value === "string" ? value : JSON.stringify(value, null, 2) }],
|
|
42
|
-
});
|
|
43
|
-
const failure = (err) => {
|
|
44
|
-
const e = err instanceof BridgeError
|
|
45
|
-
? err
|
|
46
|
-
: new BridgeError(ErrorCode.Internal, err instanceof Error ? err.message : String(err));
|
|
47
|
-
return {
|
|
48
|
-
isError: true,
|
|
49
|
-
content: [
|
|
50
|
-
{
|
|
51
|
-
type: "text",
|
|
52
|
-
text: JSON.stringify({ error: { code: e.code, message: e.message, data: e.data } }, null, 2),
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
// Upper bound on how long the extension may spend inside a recording call.
|
|
58
|
-
const waitMs = z
|
|
59
|
-
.number()
|
|
60
|
-
.int()
|
|
61
|
-
.min(1_000)
|
|
62
|
-
.max(120_000)
|
|
63
|
-
.optional()
|
|
64
|
-
.describe("Maximum time to wait for the recorder to reach the new state, in milliseconds.");
|
|
65
|
-
const tabId = z
|
|
66
|
-
.number()
|
|
67
|
-
.int()
|
|
68
|
-
.nonnegative()
|
|
69
|
-
.optional()
|
|
70
|
-
.describe("Chrome tab ID to target. Defaults to the active tab of the last focused window.");
|
|
71
|
-
export const createMcpServer = (deps) => {
|
|
72
|
-
const { bridge, config, logger } = deps;
|
|
73
|
-
const log = logger.child({ component: "mcp" });
|
|
74
|
-
const server = new McpServer({ name: "recordful", title: "Recordful", version: deps.version }, { instructions: INSTRUCTIONS });
|
|
75
|
-
// Every call waits briefly for the extension: Chrome idles service workers,
|
|
76
|
-
// and a cold one needs a moment to wake and dial back in.
|
|
77
|
-
const call = async (method, params, extraWaitMs = 0) => {
|
|
78
|
-
await bridge.waitForSession(config.connectWaitMs);
|
|
79
|
-
const started = Date.now();
|
|
80
|
-
try {
|
|
81
|
-
return await bridge.request(method, params, config.requestTimeoutMs + extraWaitMs);
|
|
82
|
-
}
|
|
83
|
-
finally {
|
|
84
|
-
log.info("tool call", { method, ms: Date.now() - started });
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const handle = (fn) => async (args) => {
|
|
88
|
-
try {
|
|
89
|
-
return text(await fn(args));
|
|
90
|
-
}
|
|
91
|
-
catch (err) {
|
|
92
|
-
return failure(err);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
server.registerTool("get_status", {
|
|
96
|
-
title: "Get recorder status",
|
|
97
|
-
description: "Report whether the Recordful extension is connected and what the recorder is doing (idle, starting, recording, paused), the selected recording mode, the active tab, and which capture permissions are granted. Safe to call any time.",
|
|
98
|
-
inputSchema: {},
|
|
99
|
-
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
100
|
-
}, async () => {
|
|
101
|
-
const { session, pairing } = await bridge.state();
|
|
102
|
-
const { mode, error } = bridge.connection;
|
|
103
|
-
const base = {
|
|
104
|
-
bridge: {
|
|
105
|
-
// owner: this process holds Recordful's connection; peer: it shares
|
|
106
|
-
// another recordful-mcp's (another AI app or the CLI started first).
|
|
107
|
-
mode,
|
|
108
|
-
error,
|
|
109
|
-
extensionConnected: session !== null,
|
|
110
|
-
session,
|
|
111
|
-
pairing: pairing ? { code: pairing.code, app: pairing.app, startedAt: pairing.startedAt } : null,
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
if (!session) {
|
|
115
|
-
return text({
|
|
116
|
-
...base,
|
|
117
|
-
recorder: null,
|
|
118
|
-
hint: pairing
|
|
119
|
-
? `Recordful is waiting for the user to approve this app. Ask them to check the code ${pairing.code} and click Allow.`
|
|
120
|
-
: "Ask the user to click the Recordful toolbar icon in Chrome on the tab to record. The first time only, they also turn on AI agents (Recordful popup → More → AI agents).",
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
try {
|
|
124
|
-
return text({ ...base, recorder: await call(Method.StatusGet, {}) });
|
|
125
|
-
}
|
|
126
|
-
catch (err) {
|
|
127
|
-
return failure(err);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
server.registerTool("start_recording", {
|
|
131
|
-
title: "Start recording",
|
|
132
|
-
description: "Start a Recordful recording on the target tab using the user's saved Recordful settings (mode, microphone, camera, countdown). Resolves once capture is live, or reports why it could not start. Navigate to the page you want to show before calling this.",
|
|
133
|
-
inputSchema: { tabId, timeoutMs: waitMs },
|
|
134
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
135
|
-
}, handle(async ({ tabId, timeoutMs }) => {
|
|
136
|
-
const wait = timeoutMs ?? 30_000;
|
|
137
|
-
return call(Method.RecordingStart, { tabId, timeoutMs: wait }, wait);
|
|
138
|
-
}));
|
|
139
|
-
server.registerTool("stop_recording", {
|
|
140
|
-
title: "Stop recording",
|
|
141
|
-
description: 'Stop the current Recordful recording. Recordful then opens its editor with the recording, exactly as when the user clicks Stop. Returns where it went: recording.kind "cloud" (Recordful Pro: already uploading, with its videoId and links) or "local" (saved on this computer as takeId; upload_recording uploads it).',
|
|
142
|
-
inputSchema: { timeoutMs: waitMs },
|
|
143
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
144
|
-
}, handle(async ({ timeoutMs }) => {
|
|
145
|
-
const wait = timeoutMs ?? 30_000;
|
|
146
|
-
// After stopping, a local recording is written out (up to 20 s) and the
|
|
147
|
-
// editor opens (up to 15 s) before the extension answers.
|
|
148
|
-
return call(Method.RecordingStop, { timeoutMs: wait }, wait + 40_000);
|
|
149
|
-
}));
|
|
150
|
-
server.registerTool("pause_recording", {
|
|
151
|
-
title: "Pause recording",
|
|
152
|
-
description: "Pause the current recording. Use it while you plan the next step so the video has no dead air. No-op if already paused.",
|
|
153
|
-
inputSchema: {},
|
|
154
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
155
|
-
}, handle(async () => call(Method.RecordingPause, {}, 10_000)));
|
|
156
|
-
server.registerTool("resume_recording", {
|
|
157
|
-
title: "Resume recording",
|
|
158
|
-
description: "Resume a paused recording. No-op if not paused.",
|
|
159
|
-
inputSchema: {},
|
|
160
|
-
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
161
|
-
}, handle(async () => call(Method.RecordingResume, {}, 10_000)));
|
|
162
|
-
server.registerTool("probe_capture", {
|
|
163
|
-
title: "Probe capture permissions",
|
|
164
|
-
description: "Diagnostic: check, without recording, whether the extension can capture the target tab right now with no user click, and which optional Chrome permissions are granted. Refuses while a recording is running.",
|
|
165
|
-
inputSchema: { tabId },
|
|
166
|
-
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
167
|
-
}, handle(async ({ tabId }) => call(Method.CaptureProbe, { tabId })));
|
|
168
|
-
// ---- page tools ----------------------------------------------------------
|
|
169
|
-
// The extension performs these in the tab the user handed it, so agents
|
|
170
|
-
// without a browser tool can do the walkthrough themselves.
|
|
171
|
-
const pageCall = async (method, args) => {
|
|
172
|
-
const params = parsePageParams(method, args);
|
|
173
|
-
try {
|
|
174
|
-
return await call(method, params, pageExtraWaitMs(method, params));
|
|
175
|
-
}
|
|
176
|
-
catch (err) {
|
|
177
|
-
if (err instanceof BridgeError && err.code === ErrorCode.UnknownMethod) {
|
|
178
|
-
throw new BridgeError(err.code, err.message, {
|
|
179
|
-
hint: "This version of Recordful predates page tools. Ask the user to update Recordful (chrome://extensions → Update) and try again.",
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
throw err;
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
const pageTool = (name, method, title, description, annotations) => server.registerTool(name, {
|
|
186
|
-
title,
|
|
187
|
-
description,
|
|
188
|
-
inputSchema: pageParams[method],
|
|
189
|
-
annotations: { destructiveHint: false, idempotentHint: false, openWorldHint: true, ...annotations },
|
|
190
|
-
}, handle(async (args) => pageCall(method, args)));
|
|
191
|
-
pageTool("navigate", Method.PageNavigate, "Open a URL", "Open an http(s) URL in the tab the user handed to Recordful and wait for it to load. Returns the final URL and title. Refs from earlier snapshots stop working.", { readOnlyHint: false });
|
|
192
|
-
pageTool("snapshot", Method.PageSnapshot, "List page elements", "List the interactive elements (links, buttons, fields, checkboxes, tabs, menu items) and headings in the recorded tab, each with a ref to pass to click/type/scroll/wait_for, its role, accessible name, current value or state, and bounding box in CSS pixels. Refs stay the same for an element while it stays on the page.", { readOnlyHint: true });
|
|
193
|
-
pageTool("click", Method.PageClick, "Click an element", "Move Recordful's visible cursor to the element, scrolling it into view if needed, and click it, with a click highlight in the video. Reports a navigation the click started. Fails with ELEMENT_OBSCURED (naming what is on top, with its ref) if something covers it.", { readOnlyHint: false });
|
|
194
|
-
pageTool("type", Method.PageType, "Type into a field", "Click the field, then type the text at a human pace (text inputs, text areas, content-editable areas). Set clear to replace what is already there. Use press for Enter, Tab and other keys.", { readOnlyHint: false });
|
|
195
|
-
pageTool("press", Method.PagePress, "Press a key", "Press a key in the focused element, e.g. Enter to submit a form, Tab to move focus, Escape to close a dialog, ArrowDown in a menu, Shift+Tab, Control+a. Recordful also performs the key's usual effect (submitting, moving focus, deleting), since pages ignore synthetic keys otherwise.", { readOnlyHint: false });
|
|
196
|
-
pageTool("scroll", Method.PageScroll, "Scroll", "Scroll smoothly: either bring an element (ref) into view, or scroll the page in a direction, by amount pixels or most of a screen.", { readOnlyHint: false });
|
|
197
|
-
pageTool("wait_for", Method.PageWaitFor, "Wait for the page", 'Wait until text appears on the page or an element (ref) becomes visible, or with state "hidden" until it goes away. Keeps waiting across navigations. Fails with WAIT_TIMEOUT if it doesn\'t happen in time.', { readOnlyHint: true });
|
|
198
|
-
server.registerTool("screenshot", {
|
|
199
|
-
title: "Screenshot the page",
|
|
200
|
-
description: "Capture what the recorded tab shows right now, as an image, to check the page looks right. The tab must be the active tab of its window.",
|
|
201
|
-
inputSchema: pageParams[Method.PageScreenshot],
|
|
202
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
203
|
-
}, async (args) => {
|
|
204
|
-
try {
|
|
205
|
-
const shot = (await pageCall(Method.PageScreenshot, args));
|
|
206
|
-
const { data, mimeType, ...meta } = shot ?? {};
|
|
207
|
-
if (typeof data !== "string" || typeof mimeType !== "string") {
|
|
208
|
-
throw new BridgeError(ErrorCode.Internal, "The extension returned no image.");
|
|
209
|
-
}
|
|
210
|
-
return {
|
|
211
|
-
content: [
|
|
212
|
-
{ type: "image", data, mimeType },
|
|
213
|
-
{ type: "text", text: JSON.stringify(meta, null, 2) },
|
|
214
|
-
],
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
catch (err) {
|
|
218
|
-
return failure(err);
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
// ---- recordings: upload, videos, transcripts ------------------------------
|
|
222
|
-
registerVideoTools(server, call, async (fn) => {
|
|
223
|
-
try {
|
|
224
|
-
return text(await fn());
|
|
225
|
-
}
|
|
226
|
-
catch (err) {
|
|
227
|
-
return failure(err);
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
// ---- prompts -------------------------------------------------------------
|
|
231
|
-
// The whole "record the feature I just built" workflow, shipped with the
|
|
232
|
-
// server so every MCP client gets it (Claude Code lists it as
|
|
233
|
-
// /mcp__recordful__record_feature).
|
|
234
|
-
server.registerPrompt("record_feature", {
|
|
235
|
-
title: "Record a feature demo",
|
|
236
|
-
description: "Plan and record a short product demo of a feature with Recordful: work out the user-facing flow, get the app running with test data, record a clean walkthrough, and open it in the editor.",
|
|
237
|
-
argsSchema: {
|
|
238
|
-
feature: z.string().describe("The feature to show, e.g. \"sign up and sign in\" or \"the new billing page\"."),
|
|
239
|
-
url: z
|
|
240
|
-
.string()
|
|
241
|
-
.optional()
|
|
242
|
-
.describe("Where the app runs, e.g. http://localhost:3000. Leave empty to work it out from the project."),
|
|
243
|
-
},
|
|
244
|
-
}, ({ feature, url }) => ({
|
|
245
|
-
messages: [{ role: "user", content: { type: "text", text: recordFeaturePrompt(feature, url) } }],
|
|
246
|
-
}));
|
|
247
|
-
return server;
|
|
248
|
-
};
|
|
249
35
|
export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
|
|
250
36
|
|
|
251
37
|
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.
|
|
@@ -258,4 +44,11 @@ export const recordFeaturePrompt = (feature, url) => `Record a product demo vide
|
|
|
258
44
|
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
45
|
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.
|
|
260
46
|
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.`;
|
|
47
|
+
export const createMcpServer = (deps) => createRecordfulServer({
|
|
48
|
+
transport: localTransport(deps.bridge),
|
|
49
|
+
copy: { instructions: INSTRUCTIONS, recordFeaturePrompt },
|
|
50
|
+
timeouts: deps.config,
|
|
51
|
+
logger: deps.logger,
|
|
52
|
+
version: deps.version,
|
|
53
|
+
});
|
|
261
54
|
//# sourceMappingURL=createMcpServer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASrD,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BpB,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;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const localTransport = (bridge) => ({
|
|
2
|
+
ready: async (timeoutMs) => {
|
|
3
|
+
await bridge.waitForSession(timeoutMs);
|
|
4
|
+
},
|
|
5
|
+
request: (method, params, timeoutMs) => bridge.request(method, params, timeoutMs),
|
|
6
|
+
status: async () => {
|
|
7
|
+
const { session, pairing } = await bridge.state();
|
|
8
|
+
const { mode, error } = bridge.connection;
|
|
9
|
+
return {
|
|
10
|
+
connected: session !== null,
|
|
11
|
+
detail: {
|
|
12
|
+
// owner: this process holds Recordful's connection; peer: it shares
|
|
13
|
+
// another recordful-mcp's (another AI app or the CLI started first).
|
|
14
|
+
mode,
|
|
15
|
+
error,
|
|
16
|
+
extensionConnected: session !== null,
|
|
17
|
+
session,
|
|
18
|
+
pairing: pairing ? { code: pairing.code, app: pairing.app, startedAt: pairing.startedAt } : null,
|
|
19
|
+
},
|
|
20
|
+
hint: pairing
|
|
21
|
+
? `Recordful is waiting for the user to approve this app. Ask them to check the code ${pairing.code} and click Allow.`
|
|
22
|
+
: "Ask the user to click the Recordful toolbar icon in Chrome on the tab to record. The first time only, they also turn on AI agents (Recordful popup → More → AI agents).",
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=localTransport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localTransport.js","sourceRoot":"","sources":["../../src/mcp/localTransport.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAc,EAAqB,EAAE,CAAC,CAAC;IACpE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;QACzB,MAAM,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC;IACjF,MAAM,EAAE,KAAK,IAAI,EAAE;QACjB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QAClD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;QAC1C,OAAO;YACL,SAAS,EAAE,OAAO,KAAK,IAAI;YAC3B,MAAM,EAAE;gBACN,oEAAoE;gBACpE,qEAAqE;gBACrE,IAAI;gBACJ,KAAK;gBACL,kBAAkB,EAAE,OAAO,KAAK,IAAI;gBACpC,OAAO;gBACP,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI;aACjG;YACD,IAAI,EAAE,OAAO;gBACX,CAAC,CAAC,qFAAqF,OAAO,CAAC,IAAI,mBAAmB;gBACtH,CAAC,CAAC,yKAAyK;SAC9K,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -37,6 +37,7 @@ export declare const ErrorCode: {
|
|
|
37
37
|
readonly TranscriptionFailed: "TRANSCRIPTION_FAILED";
|
|
38
38
|
readonly UploadFailed: "UPLOAD_FAILED";
|
|
39
39
|
readonly UploadInterrupted: "UPLOAD_INTERRUPTED";
|
|
40
|
+
readonly Forbidden: "FORBIDDEN";
|
|
40
41
|
};
|
|
41
42
|
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
42
43
|
export declare class BridgeError extends Error {
|
package/dist/protocol/errors.js
CHANGED
|
@@ -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,EA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WAAW,EAAE,eAAe;IAC5B,gBAAgB,EAAE,oBAAoB;IACtC,WAAW,EAAE,cAAc;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,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,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;IACvC,SAAS,EAAE,WAAW;CACd,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"}
|
|
@@ -19,6 +19,15 @@ export declare const Method: {
|
|
|
19
19
|
readonly VideoGet: "video.get";
|
|
20
20
|
readonly VideoList: "video.list";
|
|
21
21
|
readonly VideoTranscript: "video.transcript";
|
|
22
|
+
readonly VideoUpdate: "video.update";
|
|
23
|
+
readonly VideoDelete: "video.delete";
|
|
24
|
+
readonly VideoEngagement: "video.engagement";
|
|
25
|
+
readonly VideoComment: "video.comment";
|
|
26
|
+
readonly VideoLike: "video.like";
|
|
27
|
+
readonly VideoMove: "video.move";
|
|
28
|
+
readonly FolderList: "folder.list";
|
|
29
|
+
readonly FolderCreate: "folder.create";
|
|
30
|
+
readonly StorageGet: "storage.get";
|
|
22
31
|
};
|
|
23
32
|
export type Method = (typeof Method)[keyof typeof Method];
|
|
24
33
|
export declare const METHODS: readonly Method[];
|
package/dist/protocol/methods.js
CHANGED
|
@@ -24,6 +24,16 @@ export const Method = {
|
|
|
24
24
|
VideoGet: "video.get",
|
|
25
25
|
VideoList: "video.list",
|
|
26
26
|
VideoTranscript: "video.transcript",
|
|
27
|
+
// Managing videos, folders and comments (Recordful Pro).
|
|
28
|
+
VideoUpdate: "video.update",
|
|
29
|
+
VideoDelete: "video.delete",
|
|
30
|
+
VideoEngagement: "video.engagement",
|
|
31
|
+
VideoComment: "video.comment",
|
|
32
|
+
VideoLike: "video.like",
|
|
33
|
+
VideoMove: "video.move",
|
|
34
|
+
FolderList: "folder.list",
|
|
35
|
+
FolderCreate: "folder.create",
|
|
36
|
+
StorageGet: "storage.get",
|
|
27
37
|
};
|
|
28
38
|
export const METHODS = Object.values(Method);
|
|
29
39
|
export const isMethod = (value) => METHODS.includes(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/protocol/methods.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,gFAAgF;AAEhF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IA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AAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,aAAa;CACjB,CAAC;AAGX,MAAM,CAAC,MAAM,OAAO,GAAsB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAmB,EAAE,CACxD,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
package/dist/protocol/video.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const VideoId: z.ZodString;
|
|
3
3
|
export declare const TakeId: z.ZodString;
|
|
4
|
+
export declare const FolderId: z.ZodString;
|
|
4
5
|
export declare const VISIBILITIES: readonly ["private", "workspace", "public"];
|
|
5
6
|
export declare const videoParams: {
|
|
6
7
|
readonly upload: {
|
|
@@ -24,5 +25,37 @@ export declare const videoParams: {
|
|
|
24
25
|
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
25
26
|
readonly start: z.ZodOptional<z.ZodBoolean>;
|
|
26
27
|
};
|
|
28
|
+
readonly update: {
|
|
29
|
+
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
readonly title: z.ZodOptional<z.ZodString>;
|
|
31
|
+
readonly visibility: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
private: "private";
|
|
33
|
+
public: "public";
|
|
34
|
+
workspace: "workspace";
|
|
35
|
+
}>>;
|
|
36
|
+
};
|
|
37
|
+
readonly remove: {
|
|
38
|
+
readonly videoId: z.ZodString;
|
|
39
|
+
readonly confirm: z.ZodLiteral<true>;
|
|
40
|
+
};
|
|
41
|
+
readonly activity: {
|
|
42
|
+
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
43
|
+
};
|
|
44
|
+
readonly comment: {
|
|
45
|
+
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
readonly body: z.ZodString;
|
|
47
|
+
};
|
|
48
|
+
readonly like: {
|
|
49
|
+
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
50
|
+
readonly liked: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
};
|
|
52
|
+
readonly createFolder: {
|
|
53
|
+
readonly name: z.ZodString;
|
|
54
|
+
readonly parentId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
};
|
|
56
|
+
readonly move: {
|
|
57
|
+
readonly videoIds: z.ZodArray<z.ZodString>;
|
|
58
|
+
readonly folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
};
|
|
27
60
|
};
|
|
28
61
|
export declare const parseVideoParams: <S extends z.ZodRawShape>(shape: S, params: unknown) => z.infer<z.ZodObject<S>>;
|
package/dist/protocol/video.js
CHANGED
|
@@ -11,6 +11,10 @@ export const TakeId = z
|
|
|
11
11
|
.string()
|
|
12
12
|
.regex(/^recording-[\w.-]{1,200}\.(webm|mp4)$/, "takeId must come from list_recordings")
|
|
13
13
|
.describe("A local recording from list_recordings. Defaults to the last recording.");
|
|
14
|
+
export const FolderId = z
|
|
15
|
+
.string()
|
|
16
|
+
.regex(/^[0-9a-f-]{36}$/i, "must be a folder ID from list_folders")
|
|
17
|
+
.describe("A folder ID from list_folders.");
|
|
14
18
|
export const VISIBILITIES = ["private", "workspace", "public"];
|
|
15
19
|
export const videoParams = {
|
|
16
20
|
upload: {
|
|
@@ -31,6 +35,32 @@ export const videoParams = {
|
|
|
31
35
|
videoId: VideoId.optional(),
|
|
32
36
|
start: z.boolean().optional().describe("Start transcribing if there's no transcript yet (default true)."),
|
|
33
37
|
},
|
|
38
|
+
update: {
|
|
39
|
+
videoId: VideoId.optional(),
|
|
40
|
+
title: z.string().trim().min(1).max(200).optional().describe("New title."),
|
|
41
|
+
visibility: z.enum(VISIBILITIES).optional().describe('Who may watch: "private", "workspace" (their team) or "public" (anyone with the link).'),
|
|
42
|
+
},
|
|
43
|
+
remove: {
|
|
44
|
+
videoId: z.string().regex(/^[0-9a-f-]{36}$/i, "videoId must be a Recordful video ID").describe("The video to delete. Required: there is no default for a delete."),
|
|
45
|
+
confirm: z.literal(true).describe("Must be true, and only after the user has confirmed deleting this exact video."),
|
|
46
|
+
},
|
|
47
|
+
activity: { videoId: VideoId.optional() },
|
|
48
|
+
comment: {
|
|
49
|
+
videoId: VideoId.optional(),
|
|
50
|
+
body: z.string().trim().min(1).max(2000).describe("The comment text, exactly as the user approved it."),
|
|
51
|
+
},
|
|
52
|
+
like: {
|
|
53
|
+
videoId: VideoId.optional(),
|
|
54
|
+
liked: z.boolean().optional().describe("true to like (default), false to remove the like."),
|
|
55
|
+
},
|
|
56
|
+
createFolder: {
|
|
57
|
+
name: z.string().trim().min(1).max(120).describe("The folder's name."),
|
|
58
|
+
parentId: FolderId.optional().describe("The folder to create it in (from list_folders). Default: the top level."),
|
|
59
|
+
},
|
|
60
|
+
move: {
|
|
61
|
+
videoIds: z.array(z.string().regex(/^[0-9a-f-]{36}$/i, "each must be a Recordful video ID")).min(1).max(200).describe("The videos to move."),
|
|
62
|
+
folderId: FolderId.nullable().optional().describe("The destination folder (from list_folders), or null for the top level."),
|
|
63
|
+
},
|
|
34
64
|
};
|
|
35
65
|
export const parseVideoParams = (shape, params) => {
|
|
36
66
|
const result = z.object(shape).strict().safeParse(params ?? {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.js","sourceRoot":"","sources":["../../src/protocol/video.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,wEAAwE;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC;KACrB,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,sCAAsC,CAAC;KACjE,QAAQ,CAAC,4GAA4G,CAAC,CAAC;AAE1H,MAAM,CAAC,MAAM,MAAM,GAAG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