recordful-mcp 1.0.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +14 -7
- package/dist/args.js +1 -1
- package/dist/args.js.map +1 -1
- package/dist/bridge/BridgeServer.js +1 -1
- package/dist/bridge/BridgeServer.js.map +1 -1
- package/dist/cli.js +167 -10
- package/dist/cli.js.map +1 -1
- package/dist/core/createRecordfulServer.js +14 -0
- package/dist/core/createRecordfulServer.js.map +1 -1
- package/dist/core/libraryTools.js +47 -4
- package/dist/core/libraryTools.js.map +1 -1
- package/dist/core/transport.d.ts +2 -0
- package/dist/core/videoTools.js +8 -1
- package/dist/core/videoTools.js.map +1 -1
- package/dist/guide.d.ts +3 -3
- package/dist/guide.js +20 -6
- package/dist/guide.js.map +1 -1
- package/dist/install.js +17 -13
- package/dist/install.js.map +1 -1
- package/dist/mcp/createMcpServer.d.ts +5 -0
- package/dist/mcp/createMcpServer.js +62 -47
- package/dist/mcp/createMcpServer.js.map +1 -1
- package/dist/mcp/localTransport.js +1 -1
- package/dist/mcp/localTransport.js.map +1 -1
- package/dist/nativeHost.d.ts +16 -0
- package/dist/nativeHost.js +191 -0
- package/dist/nativeHost.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 +7 -0
- package/dist/protocol/methods.js +7 -0
- package/dist/protocol/methods.js.map +1 -1
- package/dist/protocol/video.d.ts +24 -0
- package/dist/protocol/video.js +39 -2
- package/dist/protocol/video.js.map +1 -1
- package/dist/setupPrompt.d.ts +1 -1
- package/dist/setupPrompt.js +28 -28
- package/dist/skill.d.ts +3 -1
- package/dist/skill.js +15 -3
- package/dist/skill.js.map +1 -1
- package/dist/workflows.d.ts +9 -0
- package/dist/workflows.js +27 -1
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/install.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uEAAuE;AACvE,+EAA+E;AAC/E,mFAAmF;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,
|
|
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,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,CAAU,CAAC;AAEzH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAU,CAAC;AAG3D,MAAM,CAAC,MAAM,YAAY,GAA2B;IAClD,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IAC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E,+EAA+E;CAC7F,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,IAA+C,EAAiB,EAAE;IACxG,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IAC1C,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QACxB,OAAO,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;AACxG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAK,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzI,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAc,EAAsB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAK,UAAgC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -8,5 +8,10 @@ export interface McpServerDeps {
|
|
|
8
8
|
logger: Logger;
|
|
9
9
|
version: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The recordful-motion skill as one message: its SKILL.md without the
|
|
13
|
+
* frontmatter, then its references, so any MCP client has the whole guide.
|
|
14
|
+
*/
|
|
15
|
+
export declare const motionGuide: (ask?: string) => string;
|
|
11
16
|
export declare const recordFeaturePrompt: (feature: string, url?: string) => string;
|
|
12
17
|
export declare const createMcpServer: (deps: McpServerDeps) => McpServer;
|
|
@@ -1,57 +1,72 @@
|
|
|
1
1
|
import { desktopCall } from "../desktop.js";
|
|
2
2
|
import { createRecordfulServer } from "../core/createRecordfulServer.js";
|
|
3
|
+
import { SKILLS } from "../skill.js";
|
|
3
4
|
import { localTransport } from "./localTransport.js";
|
|
4
|
-
const INSTRUCTIONS = `
|
|
5
|
-
Recordful records the user's browser so you can produce product demo videos. It also drives the page it records, so you don't need a browser tool of your own.
|
|
6
|
-
|
|
7
|
-
Typical flow for "record feature X" (the record_feature prompt has the full version):
|
|
8
|
-
1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
|
|
9
|
-
2.
|
|
10
|
-
3.
|
|
11
|
-
4.
|
|
12
|
-
5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
|
|
13
|
-
6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
|
|
14
|
-
7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
|
|
15
|
-
8. Call stop_recording. Recordful opens its editor with the recording automatically.
|
|
16
|
-
9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
|
|
17
|
-
|
|
18
|
-
Screenshots to keep or share:
|
|
19
|
-
|
|
20
|
-
Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
|
|
21
|
-
|
|
22
|
-
Free and Pro:
|
|
23
|
-
- Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
|
|
24
|
-
- Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
|
|
25
|
-
- get_status shows recorder.account.plan: "pro", "free", "signed-out", or "unavailable". Check it before you promise a link or a transcript. If it isn't "pro", record as usual, tell the user the video is open in Recordful's editor, and mention once that links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't call upload_recording or get_transcript, and don't retry them after PRO_REQUIRED or NOT_SIGNED_IN.
|
|
26
|
-
|
|
27
|
-
Managing what's on recordful.app (Recordful Pro): update_video (rename, who may watch), get_video_activity (views, likes, comments), comment_on_video, like_video, list_folders, create_folder, move_videos, delete_video, get_storage. These change or publish things for the user, so show them exactly what you'll do and wait for their yes before update_video, comment_on_video, move_videos, create_folder or delete_video; delete_video also needs the exact video named and confirm: true. Comments are public to everyone who can watch the video: post only the text the user approved.
|
|
28
|
-
|
|
29
|
-
First connection on a computer:
|
|
30
|
-
- NOT_CONNECTED: 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.
|
|
5
|
+
const INSTRUCTIONS = `
|
|
6
|
+
Recordful records the user's browser so you can produce product demo videos. It also drives the page it records, so you don't need a browser tool of your own.
|
|
7
|
+
|
|
8
|
+
Typical flow for "record feature X" (the record_feature prompt has the full version):
|
|
9
|
+
1. Plan the walkthrough first: which page, which clicks, what to type, in what order. Use test data only, never the user's real credentials.
|
|
10
|
+
2. Call get_status. Recordful usually connects to you by itself; if it says NOT_CONNECTED, see below. It shows the tab you were handed (recorder.agent.armedTab), the recording mode the user picked in Recordful (tab area, screen, camera) and whether a recording is already running.
|
|
11
|
+
3. Get to the starting page: navigate(url), then snapshot() to check it loaded. If no tab was handed to you, navigate opens a tab of your own (openedTab: true); page tools only ever act on that tab, a tab the user handed over, or the tab being recorded, never the user's other tabs.
|
|
12
|
+
4. To record in tab or tab-area mode, ask the user to click the Recordful toolbar icon in Chrome on that tab once. Chrome only lets an extension capture a tab after the user has invoked it there, and nothing can do this click for them. Screen and camera modes don't need it.
|
|
13
|
+
5. Call start_recording. It uses the user's saved Recordful settings (mode, mic, camera, countdown) and returns once capture is live.
|
|
14
|
+
6. Walk through the feature with the page tools: snapshot() lists the interactive elements with refs ("e12"), then click(ref), type(ref, text), press(key), scroll(...), wait_for(...). Recordful moves a visible cursor to each target and types at a human pace, so the video looks like a person using the app. Take a fresh snapshot after anything that changes the page; refs from before a navigation stop working.
|
|
15
|
+
7. Call pause_recording before you stop to think or plan the next steps, and resume_recording right before acting again, so the video has no dead air. snapshot and screenshot work while paused. Call add_marker("…") at moments worth finding again (a result appearing, an error shown).
|
|
16
|
+
8. Call stop_recording. Recordful opens its editor with the recording automatically.
|
|
17
|
+
9. To share it or read it back (Recordful Pro): stop_recording says where the recording went. A cloud recording is already uploading; a local one uploads with upload_recording. get_video gives its links once it's ready, and get_transcript returns what was said (it transcribes on first use and waits).
|
|
18
|
+
|
|
19
|
+
Screenshots to keep or share: navigate to the page (no click needed), then take_screenshot (mode "page" for the whole page). Pass look only if the user asked for one ("3d" for a 3D tilt, or a preset name); otherwise their default look is used: a wallpaper picked to match the screenshot's colours. It opens in Recordful's screenshot editor and returns no image, so you don't need screenshot to check it.
|
|
20
|
+
|
|
21
|
+
Screenshots of the desktop, not a browser tab (another app, the whole screen, a window): take_screenshot with source "screen" (display 1, 2… or "main"), "window" (window: part of its title or app name; list_windows shows what's open) or "area" (the user drags it). This needs the Recordful desktop app with Settings → AI agents → "Let AI agents take screenshots" turned on; no icon click. If it isn't on, ask the user to turn it on. The screenshot opens in the app's editor and the user sees a notification naming you.
|
|
22
|
+
|
|
23
|
+
Free and Pro:
|
|
24
|
+
- Every plan: recording, page tools, and Recordful's editor (the video is saved on this computer and opens there).
|
|
25
|
+
- Recordful Pro only: uploads, cloud videos (list_videos, get_video) and transcripts (get_transcript).
|
|
26
|
+
- get_status shows recorder.account.plan: "pro", "free", "signed-out", or "unavailable". Check it before you promise a link or a transcript. If it isn't "pro", record as usual, tell the user the video is open in Recordful's editor, and mention once that links and transcripts come with Recordful Pro (recordful.app/upgrade). Don't call upload_recording or get_transcript, and don't retry them after PRO_REQUIRED or NOT_SIGNED_IN.
|
|
27
|
+
|
|
28
|
+
Managing what's on recordful.app (Recordful Pro): update_video (rename, who may watch), get_summary (AI summary and chapters; generating one spends AI credits, so ask first), get_video_activity (views, where from, per day, likes, comments), get_analytics (the whole library's views), list_members, invite_member (emails someone: confirm the exact address first), comment_on_video, delete_comment, like_video, list_folders, create_folder, move_videos, delete_video (to trash for 7 days), list_trash, restore_video, get_storage. These change or publish things for the user, so show them exactly what you'll do and wait for their yes before update_video, comment_on_video, delete_comment, move_videos, create_folder or delete_video; delete_video also needs the exact video named and confirm: true. Comments are public to everyone who can watch the video: post only the text the user approved.
|
|
29
|
+
|
|
30
|
+
First connection on a computer:
|
|
31
|
+
- NOT_CONNECTED: Recordful connects by itself once AI agents is on and it has paired with you. Otherwise ask the user to click the Recordful icon. If that doesn't connect, they need to turn on AI agents in Recordful once (Recordful popup → More → AI agents, or paste chrome-extension://hkcgjbkibidgbefehehenlmhjanjaopc/agents.html into Chrome's address bar).
|
|
32
|
+
- PAIRING_PENDING: Recordful opened a window asking the user to approve you. Tell them the 4-digit code from the error so they can check it matches, ask them to click Allow, then retry. This happens once per computer.
|
|
33
|
+
- PAIRING_DENIED: the user declined. Don't retry unless they ask.
|
|
34
|
+
- PERMISSIONS_NEEDED: Recordful's one-time browser permission to record hasn't been granted. Tell the user to turn AI agents off and on again in Recordful (popup → More → AI agents) and click Allow, then retry.
|
|
35
|
+
- NOT_ARMED from a page tool: call navigate(url) first. From start_recording, or start_recording returning outcome "pending": the user hasn't clicked the Recordful icon on that tab yet. Ask them to, then retry.
|
|
36
|
+
- NOT_SIGNED_IN or PRO_REQUIRED: uploads and transcripts need the user signed in to Recordful Pro. Relay the error's message (it says what still works); don't retry.
|
|
37
|
+
|
|
38
|
+
If you have a browser tool of your own you can use it for the walkthrough instead, but Recordful's page tools make smoother videos.
|
|
39
|
+
"screen" mode always shows Chrome's screen picker, which the user must answer.
|
|
39
40
|
`.trim();
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
/**
|
|
42
|
+
* The recordful-motion skill as one message: its SKILL.md without the
|
|
43
|
+
* frontmatter, then its references, so any MCP client has the whole guide.
|
|
44
|
+
*/
|
|
45
|
+
export const motionGuide = (ask) => {
|
|
46
|
+
const files = SKILLS["recordful-motion"] ?? {};
|
|
47
|
+
const body = (files["SKILL.md"] ?? "").replace(/^---\n[\s\S]*?\n---\n+/, "");
|
|
48
|
+
const references = Object.entries(files)
|
|
49
|
+
.filter(([name]) => name.startsWith("references/"))
|
|
50
|
+
.map(([name, text]) => `<!-- ${name} -->\n${text}`);
|
|
51
|
+
return [ask?.trim() ? `The person asked for: ${ask.trim()}\n` : "", body, ...references]
|
|
52
|
+
.filter(Boolean)
|
|
53
|
+
.join("\n\n");
|
|
54
|
+
};
|
|
55
|
+
export const recordFeaturePrompt = (feature, url) => `Record a product demo video of this feature with Recordful: ${feature}
|
|
56
|
+
|
|
57
|
+
1. Understand it as a user sees it. If you or the user just built it, read the changes (git diff, recent commits, routes, pages, components). List the screens and moments worth showing: the main path first, then at most one or two telling states (for example a validation error). Leave out internals.
|
|
58
|
+
2. Get the app running. ${url ? `It should be at ${url}.` : "If it's a local project, find how to run it (package.json scripts, README, Makefile, docker compose) and the URL it serves."} If it isn't running, start it in the background and wait until it answers.
|
|
59
|
+
3. Prepare test data. Use test accounts and data only: from seed, fixture or example-config files, or create a new one through the app itself (for example sign up as demo+<timestamp>@example.com with a generated password). Never type the user's real credentials or personal data; if real credentials are unavoidable, ask the user to sign in themselves first.
|
|
60
|
+
4. Write a short shot list, 5 to 10 steps for a 30 to 90 second video: the starting screen, the main action, the result, an optional second state, and a clear final screen. Share it with the user in a line or two, then go ahead unless something is unclear.
|
|
61
|
+
5. Call get_status, and note recorder.account.plan: links and transcripts need "pro". If it's NOT_CONNECTED, ask the user to click the Recordful icon in Chrome; the first time only, they also turn on AI agents (Recordful popup → More → AI agents) and approve the pairing code you'll get back.
|
|
62
|
+
6. navigate to the starting page (it opens a tab of your own if none was handed over) and snapshot it. Make sure the starting state is clean (signed out for a sign-in demo, no leftover data or open dialogs).
|
|
63
|
+
7. If the recording mode is tab or tab area, ask the user to click the Recordful icon on that tab once (Chrome requires it before a tab can be recorded). Then start_recording, then follow the shot list with the page tools at a calm pace. Use wait_for so each result is visible before you move on. Call pause_recording whenever you need to think, and resume_recording right before the next action, so the video has no dead air.
|
|
64
|
+
8. If something goes wrong while recording (an error, the wrong page), pause, fix it, and resume. Stop and start over only if the mistake would confuse viewers.
|
|
65
|
+
9. stop_recording. Recordful opens its editor with the video. Tell the user it's ready and summarise what the video shows in one or two sentences.
|
|
51
66
|
10. If the plan is "pro" and the user wants to share it or check what was said: upload_recording (a cloud recording is already uploading), then get_transcript. On any other plan, don't attempt these; say once that shareable links and transcripts come with Recordful Pro.`;
|
|
52
67
|
export const createMcpServer = (deps) => createRecordfulServer({
|
|
53
68
|
transport: localTransport(deps.bridge),
|
|
54
|
-
copy: { instructions: INSTRUCTIONS, recordFeaturePrompt },
|
|
69
|
+
copy: { instructions: INSTRUCTIONS, recordFeaturePrompt, motionGuide },
|
|
55
70
|
timeouts: deps.config,
|
|
56
71
|
logger: deps.logger,
|
|
57
72
|
version: deps.version,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMcpServer.js","sourceRoot":"","sources":["../../src/mcp/createMcpServer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASrD,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCpB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,GAAY,EAAU,EAAE,CAAC,+DAA+D,OAAO;;;0BAG1H,GAAG,CAAC,CAAC,CAAC,mBAAmB,GAAG,GAAG,CAAC,CAAC,CAAA,6HAA6H;;;;;;;;+QAQuF,CAAC;AAEhR,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAmB,EAAa,EAAE,CAChE,qBAAqB,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE;
|
|
1
|
+
{"version":3,"file":"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A+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,WAAW,EAAE;IACtE,QAAQ,EAAE,IAAI,CAAC,MAAM;IACrB,MAAM,EAAE,IAAI,CAAC,MAAM;IACnB,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC"}
|
|
@@ -19,7 +19,7 @@ export const localTransport = (bridge) => ({
|
|
|
19
19
|
},
|
|
20
20
|
hint: pairing
|
|
21
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
|
|
22
|
+
: "Ask the user to click the Recordful toolbar icon in Chrome (after that Recordful reconnects by itself). The first time only, they also turn on AI agents (Recordful popup → More → AI agents).",
|
|
23
23
|
};
|
|
24
24
|
},
|
|
25
25
|
});
|
|
@@ -1 +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;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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,gMAAgM;SACrM,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const NATIVE_HOST_NAME = "app.recordful.bridge";
|
|
2
|
+
export interface RegisterOptions {
|
|
3
|
+
extensionIds: string[];
|
|
4
|
+
cliPath: string;
|
|
5
|
+
nodePath?: string;
|
|
6
|
+
home?: string;
|
|
7
|
+
os?: NodeJS.Platform;
|
|
8
|
+
runReg?: (args: string[]) => {
|
|
9
|
+
status: number | null;
|
|
10
|
+
stdout: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const registerNativeHost: (opts: RegisterOptions) => string[];
|
|
14
|
+
export declare const encodeFrame: (msg: unknown) => Buffer;
|
|
15
|
+
export declare const createFrameReader: (onMessage: (msg: unknown) => void) => (chunk: Buffer) => void;
|
|
16
|
+
export declare const runNativeHost: (origin: string | undefined) => void;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
// The relay that lets Recordful connect with no click. Chrome starts it
|
|
2
|
+
// (`recordful-mcp native-host`) when the extension calls connectNative; it
|
|
3
|
+
// watches the bridge port without Chrome logging anything, tells the
|
|
4
|
+
// extension when the bridge is up, and then carries WebSocket frames between
|
|
5
|
+
// them. It never reads them: the pairing proof is still end to end.
|
|
6
|
+
//
|
|
7
|
+
// The MCP server registers it each time it starts (registerNativeHost), so
|
|
8
|
+
// the launcher always points at the recordful-mcp that is running.
|
|
9
|
+
import { spawnSync } from "node:child_process";
|
|
10
|
+
import { chmodSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
11
|
+
import { connect } from "node:net";
|
|
12
|
+
import { homedir, platform } from "node:os";
|
|
13
|
+
import { dirname, join } from "node:path";
|
|
14
|
+
import WebSocket from "ws";
|
|
15
|
+
export const NATIVE_HOST_NAME = "app.recordful.bridge";
|
|
16
|
+
const PROBE_MS = 2_000;
|
|
17
|
+
// Browsers read their own registry key (Windows) or folder (macOS, Linux).
|
|
18
|
+
const WINDOWS_KEYS = [
|
|
19
|
+
"Software\\Google\\Chrome",
|
|
20
|
+
"Software\\Microsoft\\Edge",
|
|
21
|
+
"Software\\BraveSoftware\\Brave-Browser",
|
|
22
|
+
"Software\\Chromium",
|
|
23
|
+
];
|
|
24
|
+
const browserDirs = (home, os) => os === "darwin"
|
|
25
|
+
? ["Google/Chrome", "Microsoft Edge", "BraveSoftware/Brave-Browser", "Chromium"].map((d) => join(home, "Library", "Application Support", d))
|
|
26
|
+
: ["google-chrome", "microsoft-edge", "BraveSoftware/Brave-Browser", "chromium"].map((d) => join(home, ".config", d));
|
|
27
|
+
const writeIfChanged = (path, text) => {
|
|
28
|
+
if (existsSync(path) && readFileSync(path, "utf8") === text)
|
|
29
|
+
return false;
|
|
30
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
31
|
+
writeFileSync(path, text);
|
|
32
|
+
return true;
|
|
33
|
+
};
|
|
34
|
+
// Returns where the manifest went. Only a built recordful-mcp registers: a
|
|
35
|
+
// launcher can't start the TypeScript sources.
|
|
36
|
+
export const registerNativeHost = (opts) => {
|
|
37
|
+
if (!opts.cliPath.endsWith(".js") || opts.extensionIds.length === 0)
|
|
38
|
+
return [];
|
|
39
|
+
const os = opts.os ?? platform();
|
|
40
|
+
const home = opts.home ?? homedir();
|
|
41
|
+
const node = opts.nodePath ?? process.execPath;
|
|
42
|
+
const dir = join(home, ".recordful", "native-host");
|
|
43
|
+
const windows = os === "win32";
|
|
44
|
+
const launcher = join(dir, windows ? "recordful-native-host.cmd" : "recordful-native-host.sh");
|
|
45
|
+
// Claude Desktop runs .mcpb servers on its own Electron; without this the
|
|
46
|
+
// launcher would start the Claude app instead of the relay. Plain Node ignores it.
|
|
47
|
+
const launcherText = windows
|
|
48
|
+
? `@echo off\r\nset ELECTRON_RUN_AS_NODE=1\r\n"${node}" "${opts.cliPath}" native-host %*\r\n`
|
|
49
|
+
: `#!/bin/sh\nELECTRON_RUN_AS_NODE=1 exec "${node}" "${opts.cliPath}" native-host "$@"\n`;
|
|
50
|
+
writeIfChanged(launcher, launcherText);
|
|
51
|
+
if (!windows)
|
|
52
|
+
chmodSync(launcher, 0o755);
|
|
53
|
+
const manifest = `${JSON.stringify({
|
|
54
|
+
name: NATIVE_HOST_NAME,
|
|
55
|
+
description: "Recordful agent relay (recordful-mcp)",
|
|
56
|
+
path: launcher,
|
|
57
|
+
type: "stdio",
|
|
58
|
+
allowed_origins: opts.extensionIds.map((id) => `chrome-extension://${id}/`),
|
|
59
|
+
}, null, 2)}\n`;
|
|
60
|
+
if (windows) {
|
|
61
|
+
const manifestPath = join(dir, `${NATIVE_HOST_NAME}.json`);
|
|
62
|
+
writeIfChanged(manifestPath, manifest);
|
|
63
|
+
const reg = opts.runReg ?? ((args) => {
|
|
64
|
+
const r = spawnSync("reg", args, { encoding: "utf8", windowsHide: true });
|
|
65
|
+
return { status: r.status, stdout: r.stdout ?? "" };
|
|
66
|
+
});
|
|
67
|
+
const done = [];
|
|
68
|
+
for (const browser of WINDOWS_KEYS) {
|
|
69
|
+
const key = `HKCU\\${browser}\\NativeMessagingHosts\\${NATIVE_HOST_NAME}`;
|
|
70
|
+
const current = reg(["query", key, "/ve"]);
|
|
71
|
+
if (current.status !== 0 || !current.stdout.includes(manifestPath)) {
|
|
72
|
+
if (reg(["add", key, "/ve", "/t", "REG_SZ", "/d", manifestPath, "/f"]).status !== 0)
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
done.push(key);
|
|
76
|
+
}
|
|
77
|
+
return done;
|
|
78
|
+
}
|
|
79
|
+
// Only browsers that are installed (their profile folder exists).
|
|
80
|
+
return browserDirs(home, os)
|
|
81
|
+
.filter((d) => existsSync(d))
|
|
82
|
+
.map((d) => {
|
|
83
|
+
const path = join(d, "NativeMessagingHosts", `${NATIVE_HOST_NAME}.json`);
|
|
84
|
+
writeIfChanged(path, manifest);
|
|
85
|
+
return path;
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
// ---- the relay -------------------------------------------------------------
|
|
89
|
+
// Chrome's framing: a 4-byte little-endian length, then UTF-8 JSON.
|
|
90
|
+
export const encodeFrame = (msg) => {
|
|
91
|
+
const body = Buffer.from(JSON.stringify(msg), "utf8");
|
|
92
|
+
const head = Buffer.alloc(4);
|
|
93
|
+
head.writeUInt32LE(body.length, 0);
|
|
94
|
+
return Buffer.concat([head, body]);
|
|
95
|
+
};
|
|
96
|
+
export const createFrameReader = (onMessage) => {
|
|
97
|
+
let buf = Buffer.alloc(0);
|
|
98
|
+
return (chunk) => {
|
|
99
|
+
buf = Buffer.concat([buf, chunk]);
|
|
100
|
+
while (buf.length >= 4) {
|
|
101
|
+
const len = buf.readUInt32LE(0);
|
|
102
|
+
if (buf.length < 4 + len)
|
|
103
|
+
return;
|
|
104
|
+
const body = buf.subarray(4, 4 + len).toString("utf8");
|
|
105
|
+
buf = buf.subarray(4 + len);
|
|
106
|
+
try {
|
|
107
|
+
onMessage(JSON.parse(body));
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
// A frame we can't read is dropped, not fatal.
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
const reachable = (port) => new Promise((resolve) => {
|
|
116
|
+
const s = connect({ host: "127.0.0.1", port });
|
|
117
|
+
const done = (ok) => {
|
|
118
|
+
s.destroy();
|
|
119
|
+
resolve(ok);
|
|
120
|
+
};
|
|
121
|
+
s.once("connect", () => done(true));
|
|
122
|
+
s.once("error", () => done(false));
|
|
123
|
+
s.setTimeout(1_000, () => done(false));
|
|
124
|
+
});
|
|
125
|
+
// `origin` is the first argument Chrome passes: chrome-extension://<id>/.
|
|
126
|
+
export const runNativeHost = (origin) => {
|
|
127
|
+
const send = (msg) => process.stdout.write(encodeFrame(msg));
|
|
128
|
+
let port = 0;
|
|
129
|
+
let path = "";
|
|
130
|
+
let ws = null;
|
|
131
|
+
let wasUp = false;
|
|
132
|
+
let probe = null;
|
|
133
|
+
const check = async () => {
|
|
134
|
+
// While a session is open the bridge is up by definition.
|
|
135
|
+
const up = ws !== null || (await reachable(port));
|
|
136
|
+
if (up && !wasUp && ws === null)
|
|
137
|
+
send({ t: "up" });
|
|
138
|
+
wasUp = up;
|
|
139
|
+
};
|
|
140
|
+
const open = () => {
|
|
141
|
+
ws?.terminate();
|
|
142
|
+
const socket = new WebSocket(`ws://127.0.0.1:${port}${path}`, {
|
|
143
|
+
// The bridge only takes Recordful's own origin, which Chrome vouched for.
|
|
144
|
+
origin: origin?.replace(/\/$/, ""),
|
|
145
|
+
handshakeTimeout: 5_000,
|
|
146
|
+
});
|
|
147
|
+
ws = socket;
|
|
148
|
+
socket.on("open", () => send({ t: "open" }));
|
|
149
|
+
socket.on("message", (data) => {
|
|
150
|
+
if (ws === socket)
|
|
151
|
+
send({ t: "msg", data: data.toString() });
|
|
152
|
+
});
|
|
153
|
+
socket.on("close", (code, reason) => {
|
|
154
|
+
// A socket the extension already replaced must not close the new one.
|
|
155
|
+
if (ws !== socket)
|
|
156
|
+
return;
|
|
157
|
+
ws = null;
|
|
158
|
+
send({ t: "close", code, reason: reason.toString() });
|
|
159
|
+
});
|
|
160
|
+
socket.on("error", () => { });
|
|
161
|
+
};
|
|
162
|
+
const handle = (raw) => {
|
|
163
|
+
const msg = raw;
|
|
164
|
+
if (msg?.t === "hello" && Number.isInteger(msg.port) && typeof msg.path === "string" && msg.path.startsWith("/")) {
|
|
165
|
+
port = msg.port;
|
|
166
|
+
path = msg.path;
|
|
167
|
+
if (!probe) {
|
|
168
|
+
void check();
|
|
169
|
+
probe = setInterval(() => void check(), PROBE_MS);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
else if (msg?.t === "open" && port) {
|
|
173
|
+
open();
|
|
174
|
+
}
|
|
175
|
+
else if (msg?.t === "msg" && typeof msg.data === "string") {
|
|
176
|
+
if (ws?.readyState === WebSocket.OPEN)
|
|
177
|
+
ws.send(msg.data);
|
|
178
|
+
}
|
|
179
|
+
else if (msg?.t === "close" && ws) {
|
|
180
|
+
const code = Number(msg.code);
|
|
181
|
+
if (ws.readyState === WebSocket.OPEN)
|
|
182
|
+
ws.close(code === 1000 || (code >= 3000 && code < 5000) ? code : 1000, String(msg.reason ?? "").slice(0, 120));
|
|
183
|
+
else
|
|
184
|
+
ws.terminate();
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
process.stdin.on("data", createFrameReader(handle));
|
|
188
|
+
// Chrome closes our stdin when the extension disconnects or quits.
|
|
189
|
+
process.stdin.on("end", () => process.exit(0));
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=nativeHost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeHost.js","sourceRoot":"","sources":["../src/nativeHost.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,2EAA2E;AAC3E,qEAAqE;AACrE,6EAA6E;AAC7E,oEAAoE;AACpE,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxF,OAAO,EAA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M,IAAI,GAAG,EAAE,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE,CAAC;YACpC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC9B,IAAI,EAAE,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI;gBAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;;gBAChJ,EAAE,CAAC,SAAS,EAAE,CAAC;QACtB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;IACpD,mEAAmE;IACnE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC"}
|
|
@@ -38,6 +38,7 @@ export declare const ErrorCode: {
|
|
|
38
38
|
readonly UploadFailed: "UPLOAD_FAILED";
|
|
39
39
|
readonly UploadInterrupted: "UPLOAD_INTERRUPTED";
|
|
40
40
|
readonly Forbidden: "FORBIDDEN";
|
|
41
|
+
readonly OutOfCredits: "OUT_OF_CREDITS";
|
|
41
42
|
};
|
|
42
43
|
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
43
44
|
export declare class BridgeError extends Error {
|
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;AAC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b,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"}
|
|
@@ -21,14 +21,21 @@ export declare const Method: {
|
|
|
21
21
|
readonly VideoGet: "video.get";
|
|
22
22
|
readonly VideoList: "video.list";
|
|
23
23
|
readonly VideoTranscript: "video.transcript";
|
|
24
|
+
readonly VideoSummary: "video.summary";
|
|
24
25
|
readonly VideoUpdate: "video.update";
|
|
25
26
|
readonly VideoDelete: "video.delete";
|
|
27
|
+
readonly VideoRestore: "video.restore";
|
|
28
|
+
readonly TrashList: "trash.list";
|
|
26
29
|
readonly VideoEngagement: "video.engagement";
|
|
27
30
|
readonly VideoComment: "video.comment";
|
|
31
|
+
readonly VideoCommentDelete: "video.commentDelete";
|
|
28
32
|
readonly VideoLike: "video.like";
|
|
29
33
|
readonly VideoMove: "video.move";
|
|
30
34
|
readonly FolderList: "folder.list";
|
|
31
35
|
readonly FolderCreate: "folder.create";
|
|
36
|
+
readonly AnalyticsGet: "analytics.get";
|
|
37
|
+
readonly MembersList: "members.list";
|
|
38
|
+
readonly MembersInvite: "members.invite";
|
|
32
39
|
readonly StorageGet: "storage.get";
|
|
33
40
|
};
|
|
34
41
|
export type Method = (typeof Method)[keyof typeof Method];
|
package/dist/protocol/methods.js
CHANGED
|
@@ -27,15 +27,22 @@ export const Method = {
|
|
|
27
27
|
VideoGet: "video.get",
|
|
28
28
|
VideoList: "video.list",
|
|
29
29
|
VideoTranscript: "video.transcript",
|
|
30
|
+
VideoSummary: "video.summary",
|
|
30
31
|
// Managing videos, folders and comments (Recordful Pro).
|
|
31
32
|
VideoUpdate: "video.update",
|
|
32
33
|
VideoDelete: "video.delete",
|
|
34
|
+
VideoRestore: "video.restore",
|
|
35
|
+
TrashList: "trash.list",
|
|
33
36
|
VideoEngagement: "video.engagement",
|
|
34
37
|
VideoComment: "video.comment",
|
|
38
|
+
VideoCommentDelete: "video.commentDelete",
|
|
35
39
|
VideoLike: "video.like",
|
|
36
40
|
VideoMove: "video.move",
|
|
37
41
|
FolderList: "folder.list",
|
|
38
42
|
FolderCreate: "folder.create",
|
|
43
|
+
AnalyticsGet: "analytics.get",
|
|
44
|
+
MembersList: "members.list",
|
|
45
|
+
MembersInvite: "members.invite",
|
|
39
46
|
StorageGet: "storage.get",
|
|
40
47
|
};
|
|
41
48
|
export const METHODS = Object.values(Method);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/protocol/methods.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,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,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,yEAAyE;IACzE,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,uEAAuE;IACvE,QAAQ,EAAE,WAAW;IACrB,iFAAiF;IACjF,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,kBAAkB;IACnC,yDAAyD;IACzD,WAAW,EAAE,cAAc;IAC3B,WAAW,EA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AE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,kBAAkB,EAAE,qBAAqB;IACzC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,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
|
@@ -25,6 +25,11 @@ export declare const videoParams: {
|
|
|
25
25
|
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
26
26
|
readonly start: z.ZodOptional<z.ZodBoolean>;
|
|
27
27
|
};
|
|
28
|
+
readonly summary: {
|
|
29
|
+
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
readonly generate: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
readonly regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
};
|
|
28
33
|
readonly update: {
|
|
29
34
|
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
30
35
|
readonly title: z.ZodOptional<z.ZodString>;
|
|
@@ -33,13 +38,32 @@ export declare const videoParams: {
|
|
|
33
38
|
public: "public";
|
|
34
39
|
workspace: "workspace";
|
|
35
40
|
}>>;
|
|
41
|
+
readonly password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
readonly expiresAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
36
43
|
};
|
|
37
44
|
readonly remove: {
|
|
38
45
|
readonly videoId: z.ZodString;
|
|
46
|
+
readonly confirm: z.ZodOptional<z.ZodLiteral<true>>;
|
|
47
|
+
readonly dryRun: z.ZodOptional<z.ZodLiteral<true>>;
|
|
48
|
+
};
|
|
49
|
+
readonly restore: {
|
|
50
|
+
readonly videoId: z.ZodString;
|
|
51
|
+
};
|
|
52
|
+
readonly deleteComment: {
|
|
53
|
+
readonly videoId: z.ZodString;
|
|
54
|
+
readonly commentId: z.ZodString;
|
|
39
55
|
readonly confirm: z.ZodLiteral<true>;
|
|
40
56
|
};
|
|
41
57
|
readonly activity: {
|
|
42
58
|
readonly videoId: z.ZodOptional<z.ZodString>;
|
|
59
|
+
readonly days: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
};
|
|
61
|
+
readonly invite: {
|
|
62
|
+
readonly email: z.ZodEmail;
|
|
63
|
+
readonly confirm: z.ZodLiteral<true>;
|
|
64
|
+
};
|
|
65
|
+
readonly analytics: {
|
|
66
|
+
readonly days: z.ZodOptional<z.ZodNumber>;
|
|
43
67
|
};
|
|
44
68
|
readonly comment: {
|
|
45
69
|
readonly videoId: z.ZodOptional<z.ZodString>;
|