post-engineer-mcp 1.52.584 → 1.52.586

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/README.md +87 -98
  2. package/dist/account-shapes.js +2 -2
  3. package/dist/account-shapes.js.map +1 -1
  4. package/dist/action-tool.d.ts +32 -0
  5. package/dist/action-tool.js +90 -0
  6. package/dist/action-tool.js.map +1 -0
  7. package/dist/analytics.d.ts +2 -0
  8. package/dist/analytics.js +10 -0
  9. package/dist/analytics.js.map +1 -1
  10. package/dist/client-types.d.ts +3 -3
  11. package/dist/client.js +1 -1
  12. package/dist/client.js.map +1 -1
  13. package/dist/cloned-voice-tools.d.ts +1 -3
  14. package/dist/cloned-voice-tools.js +4 -33
  15. package/dist/cloned-voice-tools.js.map +1 -1
  16. package/dist/connect-account.js +3 -3
  17. package/dist/connect-account.js.map +1 -1
  18. package/dist/direct-publish-form.js +1 -1
  19. package/dist/direct-publish-form.js.map +1 -1
  20. package/dist/generate-video.d.ts +254 -0
  21. package/dist/generate-video.js +195 -0
  22. package/dist/generate-video.js.map +1 -0
  23. package/dist/http-transport.js +3 -4
  24. package/dist/http-transport.js.map +1 -1
  25. package/dist/index.js +27 -151
  26. package/dist/index.js.map +1 -1
  27. package/dist/intent-accounts.d.ts +5 -0
  28. package/dist/intent-accounts.js +66 -0
  29. package/dist/intent-accounts.js.map +1 -0
  30. package/dist/intent-content.d.ts +4 -0
  31. package/dist/intent-content.js +54 -0
  32. package/dist/intent-content.js.map +1 -0
  33. package/dist/intent-library.d.ts +4 -0
  34. package/dist/intent-library.js +41 -0
  35. package/dist/intent-library.js.map +1 -0
  36. package/dist/intent-personas.d.ts +6 -0
  37. package/dist/intent-personas.js +79 -0
  38. package/dist/intent-personas.js.map +1 -0
  39. package/dist/intent-video.d.ts +5 -0
  40. package/dist/intent-video.js +28 -0
  41. package/dist/intent-video.js.map +1 -0
  42. package/dist/{publish-uploaded-tools.d.ts → intent-voices.d.ts} +1 -1
  43. package/dist/intent-voices.js +33 -0
  44. package/dist/intent-voices.js.map +1 -0
  45. package/dist/limits.d.ts +2 -2
  46. package/dist/limits.js +2 -2
  47. package/dist/persona-avatar.d.ts +2 -2
  48. package/dist/persona-avatar.js +5 -5
  49. package/dist/persona-avatar.js.map +1 -1
  50. package/dist/persona-delete.d.ts +6 -0
  51. package/dist/persona-delete.js +41 -0
  52. package/dist/persona-delete.js.map +1 -0
  53. package/dist/persona-update.js +3 -3
  54. package/dist/persona-update.js.map +1 -1
  55. package/dist/publish-direct-shape.js +3 -3
  56. package/dist/publish-direct-shape.js.map +1 -1
  57. package/dist/publish-notices.js +1 -1
  58. package/dist/publish-notices.js.map +1 -1
  59. package/dist/publish-uploaded-shape.js +6 -6
  60. package/dist/publish-uploaded-shape.js.map +1 -1
  61. package/dist/recipe-session.d.ts +7 -10
  62. package/dist/recipe-session.js +17 -25
  63. package/dist/recipe-session.js.map +1 -1
  64. package/dist/refs.d.ts +54 -0
  65. package/dist/refs.js +158 -0
  66. package/dist/refs.js.map +1 -0
  67. package/dist/remote-shapes.d.ts +2 -2
  68. package/dist/remote-shapes.js +6 -6
  69. package/dist/remote-shapes.js.map +1 -1
  70. package/dist/require-publishing-accounts.js +1 -1
  71. package/dist/require-publishing-accounts.js.map +1 -1
  72. package/dist/schedule-shapes.js +7 -7
  73. package/dist/schedule-shapes.js.map +1 -1
  74. package/dist/script-segments.js +1 -1
  75. package/dist/script-segments.js.map +1 -1
  76. package/dist/single-video-shape.d.ts +5 -5
  77. package/dist/single-video-shape.js +20 -20
  78. package/dist/single-video-shape.js.map +1 -1
  79. package/dist/tool-annotations.js.map +1 -1
  80. package/dist/tools-batch.d.ts +63 -64
  81. package/dist/tools-batch.js +7 -8
  82. package/dist/tools-batch.js.map +1 -1
  83. package/dist/tools-experiments.d.ts +48 -66
  84. package/dist/tools-experiments.js +26 -13
  85. package/dist/tools-experiments.js.map +1 -1
  86. package/dist/tools-pinterest.d.ts +0 -1
  87. package/dist/tools-pinterest.js +5 -6
  88. package/dist/tools-pinterest.js.map +1 -1
  89. package/dist/tools-posts.js +7 -7
  90. package/dist/tools-posts.js.map +1 -1
  91. package/dist/tools-prompts.d.ts +2 -2
  92. package/dist/tools-prompts.js +31 -31
  93. package/dist/tools-prompts.js.map +1 -1
  94. package/dist/tools-publish-uploaded.d.ts +0 -3
  95. package/dist/tools-publish-uploaded.js +7 -10
  96. package/dist/tools-publish-uploaded.js.map +1 -1
  97. package/dist/tools-publishing-accounts.js +3 -3
  98. package/dist/tools-publishing-accounts.js.map +1 -1
  99. package/dist/tools-single-video.d.ts +0 -2
  100. package/dist/tools-single-video.js +11 -15
  101. package/dist/tools-single-video.js.map +1 -1
  102. package/dist/tools-user-media.d.ts +0 -2
  103. package/dist/tools-user-media.js +2 -5
  104. package/dist/tools-user-media.js.map +1 -1
  105. package/dist/tools.d.ts +25 -28
  106. package/dist/tools.js +10 -85
  107. package/dist/tools.js.map +1 -1
  108. package/dist/video-task-tools.d.ts +2 -2
  109. package/dist/video-task-tools.js +14 -12
  110. package/dist/video-task-tools.js.map +1 -1
  111. package/dist/voice-filters.d.ts +1 -1
  112. package/dist/voice-filters.js +4 -4
  113. package/dist/voice-filters.js.map +1 -1
  114. package/package.json +1 -1
  115. package/dist/local-file-tools.d.ts +0 -3
  116. package/dist/local-file-tools.js +0 -15
  117. package/dist/local-file-tools.js.map +0 -1
  118. package/dist/publish-uploaded-tools.js +0 -10
  119. package/dist/publish-uploaded-tools.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tools-publish-uploaded.js","sourceRoot":"","sources":["../src/tools-publish-uploaded.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,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AC,OAAO;4BACvB,KAAK,EAAE,MAAM,CAAC,KAAK;yBACpB,CAAC,EAAE;iBACP;aACF;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YACrD,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,oCAAoC,IAAI,CAAC,SAAS,CAAC;4BACvD,IAAI,EAAE,KAAK,CAAC,IAAI;4BAChB,OAAO,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;4BACpD,KAAK,EAAE,KAAK,CAAC,KAAK;yBACnB,CAAC,EAAE;qBACL;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oCAAoC,eAAe,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;YAC/F,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -6,8 +6,8 @@ import { handleLibraryCall } from './tools.js';
6
6
  // issue #572) — MCP tools.
7
7
  //
8
8
  // Since issue #212, omitting all four provider account-id fields in
9
- // generate_persona_video falls back to the persona's bound publishing
10
- // accounts (set via set_persona_publishing_accounts); explicit ids must
9
+ // generate_video falls back to the persona's bound publishing
10
+ // accounts (set via accounts (action: set_persona_publishing)); explicit ids must
11
11
  // be a subset of the binding. The binding as a whole must keep at least
12
12
  // one account: it can never be emptied.
13
13
  //---------------
@@ -27,7 +27,7 @@ export const SetPersonaPublishingAccountsShape = {
27
27
  .record(z.string(), z.array(z.string().min(1)))
28
28
  .describe('Publishing accounts the persona is bound to, per provider, e.g. { youtube: ["UC..."], bluesky: ["did:plc:..."], \'3speak\': ["alice"] }. ' +
29
29
  'Replaces the whole set: providers mapped to [] (or omitted) keep no binding for that provider, but the binding as a whole must keep at least one account (issue #572). ' +
30
- 'Account IDs come from list_social_accounts (channelId / igUserId / providerAccountId / did).'),
30
+ 'Account IDs come from accounts (action: list) (channelId / igUserId / providerAccountId / did).'),
31
31
  };
32
32
  export const SetPersonaPublishingAccountsSchema = z.object(SetPersonaPublishingAccountsShape);
33
33
  export async function handleGetPersonaPublishingAccounts(client, args) {
@@ -1 +1 @@
1
- {"version":3,"file":"tools-publishing-accounts.js","sourceRoot":"","sources":["../src/tools-publishing-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAwB,MAAM,YAAY,CAAC;AAErE,iBAAiB;AACjB,uEAAuE;AACvE,2BAA2B;AAC3B,EAAE;AACF,oEAAoE;AACpE,sEAAsE;AACtE,wEAAwE;AACxE,wEAAwE;AACxE,wCAAwC;AACxC,iBAAiB;AAEjB,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;SAC/B,QAAQ,CAAC,2DAA2D,CAAC;CACzE,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;SAC/B,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,C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C,iCAAiC,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;SAC/B,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9C,QAAQ,CACP,2IAA2I;QACzI,yKAAyK;QACzK,iGAAiG,CACpG;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAE9F,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACtD,MAA0B,EAC1B,IAAwD;IAExD,OAAO,iBAAiB,CACtB,GAAG,EAAE,CAAC,4BAA4B,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,EAC1D,qCAAqC,CACtC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACtD,MAA0B,EAC1B,IAAwD;IAExD,OAAO,iBAAiB,CACtB,GAAG,EAAE,CAAC,4BAA4B,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,EACzE,qCAAqC,EACrC,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -16,7 +16,6 @@ export declare function generatePersonaVideoOutcome(client: PostEngineerClient,
16
16
  failedSlotIds: string[];
17
17
  scheduleId: string | null;
18
18
  }>;
19
- export declare const ValidateScriptDescription = "Validate a segments script mechanically, without spending tokens: hook first, then content takes in order, exactly one hook, no placeholders/links/markdown/emoji/stage directions, hook terminal punctuation, word limits (total 60-200, content at least 30, hook 15-40 words before TTS). A CTA is just a content take, placed anywhere. Returns the word counts and the hook window (8-12 seconds spoken). Measured hook duration is pending a hook-only TTS endpoint and is reported as pending, never invented.";
20
19
  export declare const ScoreDraftShape: {
21
20
  draft: z.ZodString;
22
21
  network: z.ZodOptional<z.ZodEnum<{
@@ -57,5 +56,4 @@ export declare const ScoreDraftSchema: z.ZodObject<{
57
56
  script: "script";
58
57
  }>>;
59
58
  }, z.core.$strip>;
60
- export declare const ScoreDraftDescription = "Score a draft mechanically against the caller's own measured posts, without spending tokens. Returns a 0-100 score where every point is explained (hook, length, hashtags, slop markers, links, top-theme match, call to action), the baseline it was scored against (top angles by engagement), and the publish check for the requested network (linkedin, youtube, instagram, bluesky, threads, facebook, pinterest, 3speak, rumble): it fails only on an empty draft or the network's own ceiling where this repo has evidence for it (LinkedIn 3000 characters, Threads 500 characters, Facebook 63206 characters, Pinterest 800 characters, Bluesky 300 graphemes); the rest are warnings. A failing publish check means: fix the draft before scheduling it for that network. Pass kind 'script' for a video script (segments joined by newlines, hook first, then content takes): hashtags are not scored and publishCheck is null.";
61
59
  export declare function handleScoreDraft(client: PostEngineerClient, args: z.infer<typeof ScoreDraftSchema>): Promise<McpToolResponse>;
@@ -1,13 +1,13 @@
1
- // Singular MCP-first tools: generate_persona_video and validate_script.
1
+ // Singular MCP-first tools: generate_video and check_script (action: validate).
2
2
  // One call is one video, with a title and a complete segments script.
3
- // generate_persona_video_batch (tools-batch.ts) creates several videos by
3
+ // generate_video (tools-batch.ts) creates several videos by
4
4
  // running generatePersonaVideoOutcome once per video.
5
5
  // Validation runs mechanically before the client call, so a rejected script
6
- // never reaches the web route and never debits tokens. validate_script
6
+ // never reaches the web route and never debits tokens. check_script (action: validate)
7
7
  // then calls POST /api/videos/validate-script, which re-runs the same
8
8
  // mechanical validation server-side without debiting tokens, scheduling,
9
9
  // or calling the engine or Modal. Measured hook duration is a documented
10
- // Phase 1 gap: no hook-only TTS endpoint exists yet, so validate_script
10
+ // Phase 1 gap: no hook-only TTS endpoint exists yet, so check_script (action: validate)
11
11
  // reports the 8-12s window and the hook word count and states that the
12
12
  // measured duration is pending that endpoint — it does not invent a
13
13
  // duration and does not call Modal.
@@ -115,7 +115,7 @@ export async function generatePersonaVideoOutcome(client, args) {
115
115
  // Pinterest needs exactly one board for the batch (a pin cannot exist
116
116
  // without one); the web route 400s without it, so fail fast here.
117
117
  if (args.providers.includes('pinterest') && (args.pinterestBoardId === undefined || args.pinterestBoardId.trim() === '')) {
118
- throw new Error('pinterestBoardId is required when pinterest is selected (list the boards with list_pinterest_boards).');
118
+ throw new Error('pinterestBoardId is required when pinterest is selected (list the boards with accounts (action: list_boards)).');
119
119
  }
120
120
  // Voice resolution is an explicit pre-step after mechanical validation
121
121
  // and before the generating call: an unknown voice fails without
@@ -203,21 +203,18 @@ function narrowScheduledVideos(result) {
203
203
  replayed: typeof record.replayed === 'boolean' ? record.replayed : null,
204
204
  };
205
205
  }
206
- // NOTE: validate_script IS registered in index.ts (direct server.tool
207
- // call, which the parity graph discovers) and maps to POST
208
- // /api/videos/validate-script, which it really calls through the client
209
- // after the local mechanical pre-check. generate_persona_video IS
210
- // registered the same way and maps to POST
211
- // /api/videos/generate-and-schedule.
212
- export const ValidateScriptDescription = 'Validate a segments script mechanically, without spending tokens: hook first, then content takes in order, exactly one hook, no placeholders/links/markdown/emoji/stage directions, hook terminal punctuation, word limits (total 60-200, content at least 30, hook 15-40 words before TTS). A CTA is just a content take, placed anywhere. Returns the word counts and the hook window (8-12 seconds spoken). Measured hook duration is pending a hook-only TTS endpoint and is reported as pending, never invented.';
206
+ // NOTE: check_script (action: validate) is registered by intent-content.ts and
207
+ // maps to POST /api/videos/validate-script, which it really calls through the
208
+ // client after the local mechanical pre-check. generate_video is registered by
209
+ // intent-video.ts and maps to POST /api/videos/generate-and-schedule.
213
210
  //---------------
214
- // score_draft — mechanical draft scoring, no tokens spent.
211
+ // check_script (action: score) — mechanical draft scoring, no tokens spent.
215
212
  //
216
213
  // The shape mirrors the web route's body (same names, same caps); the
217
214
  // handler does no local pre-check beyond the schema because every signal
218
215
  // needs the server-side baseline (the caller's own stored post metrics).
219
216
  // The route really is called through the client, so the parity graph
220
- // maps score_draft to POST /api/videos/score-draft.
217
+ // maps check_script (action: score) to POST /api/videos/score-draft.
221
218
  //---------------
222
219
  const SCORE_DRAFT_UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
223
220
  export const ScoreDraftShape = {
@@ -238,7 +235,6 @@ export const ScoreDraftShape = {
238
235
  kind: z.enum(['post', 'script']).optional().describe('What the text is. Defaults to post.'),
239
236
  };
240
237
  export const ScoreDraftSchema = z.object(ScoreDraftShape);
241
- export const ScoreDraftDescription = 'Score a draft mechanically against the caller\'s own measured posts, without spending tokens. Returns a 0-100 score where every point is explained (hook, length, hashtags, slop markers, links, top-theme match, call to action), the baseline it was scored against (top angles by engagement), and the publish check for the requested network (linkedin, youtube, instagram, bluesky, threads, facebook, pinterest, 3speak, rumble): it fails only on an empty draft or the network\'s own ceiling where this repo has evidence for it (LinkedIn 3000 characters, Threads 500 characters, Facebook 63206 characters, Pinterest 800 characters, Bluesky 300 graphemes); the rest are warnings. A failing publish check means: fix the draft before scheduling it for that network. Pass kind \'script\' for a video script (segments joined by newlines, hook first, then content takes): hashtags are not scored and publishCheck is null.';
242
238
  export async function handleScoreDraft(client, args) {
243
239
  try {
244
240
  const result = await scoreDraft(client, {
@@ -1 +1 @@
1
- {"version":3,"file":"tools-single-video.js","sourceRoot":"","sources":["../src/tools-single-video.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,sEAAsE;AACtE,0EAA0E;AAC1E,sDAAsD;AACtD,4EAA4E;AAC5E,uEAAuE;AACvE,sEAAsE;AACtE,yEAAyE;AACzE,yEAAyE;AACzE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,oCAAoC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CA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CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CAC5F,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAE1D,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA0B,EAC1B,IAAsC;IAEtC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE;YACtC,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAChF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,+DAA+D;QAC/D,oEAAoE;QACpE,SAAS;QACT,OAAO,aAAa,CAAC,wBAAwB,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9F,CAAC;AACH,CAAC"}
@@ -23,7 +23,5 @@ export declare const CheckMediaSchema: z.ZodObject<{
23
23
  "1:1": "1:1";
24
24
  }>>;
25
25
  }, z.core.$strip>;
26
- export declare const UploadMediaDescription = "Upload a local image for a video segment and get a mediaId to use in a segment's media field (generate_persona_video). The file is stored as a temporary engine asset (1 hour TTL, same flow as debug uploads): upload shortly before generating, since a scheduled slot far in the future may outlive the asset \u2014 in the images modes an expired mediaId fails the task at render (images_do_not_cover_audio names the photo); full lip sync only warns. JPG/JPEG, PNG, or WebP only, max 8MB (the engine photo limit). The real content type is validated, not the extension. Returns only the mediaId \u2014 never a local path or asset URL.";
27
- export declare const CheckMediaDescription = "Mechanically check one public image URL for a segment, without an LLM and without judging relevance (the agent, who sees the image, decides relevance). Returns exactly one code: ok, blocked_403 (the host blocked the SSRF-safe download \u2014 retry with upload_media bytes fetched on your own machine), not_image, too_small, too_large, timeout, or wrong_aspect (with videoAspect given: the image cannot fill that frame \u2014 send one that matches the aspect; the reply carries its probed width and height). No fake User-Agent or Referer is sent to bypass hotlink blocks, and private addresses are never fetched. The URL never appears in the output.";
28
26
  export declare function handleUploadMedia(client: PostEngineerClient, args: z.infer<typeof UploadMediaSchema>): Promise<McpToolResponse>;
29
27
  export declare function handleCheckMedia(client: PostEngineerClient, args: z.infer<typeof CheckMediaSchema>): Promise<McpToolResponse>;
@@ -1,10 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { checkSegmentMedia, uploadSegmentMedia } from './client-user-media.js';
3
- import { MAX_SEGMENT_MEDIA_MB } from './limits.js';
4
3
  import { handleLibraryCall } from './tools-call.js';
5
4
  //---------------
6
- // Phase 2 user-media tools: upload_media (local file -> mediaId) and
7
- // check_media (mechanical URL check, one code, no LLM). Kept in a new
5
+ // Phase 2 user-media tools: media (action: upload) (local file -> mediaId) and
6
+ // media (action: check) (mechanical URL check, one code, no LLM). Kept in a new
8
7
  // module so tools.ts stays under the file-size ratchet.
9
8
  //---------------
10
9
  export const UploadMediaShape = {
@@ -25,8 +24,6 @@ export const CheckMediaShape = {
25
24
  .describe('Video aspect the image will fill (9:16 Shorts/Instagram, 16:9 long YouTube, 1:1 square). When given, an image that cannot fill the frame returns wrong_aspect instead of ok — send one that matches the aspect.'),
26
25
  };
27
26
  export const CheckMediaSchema = z.object(CheckMediaShape);
28
- export const UploadMediaDescription = `Upload a local image for a video segment and get a mediaId to use in a segment's media field (generate_persona_video). The file is stored as a temporary engine asset (1 hour TTL, same flow as debug uploads): upload shortly before generating, since a scheduled slot far in the future may outlive the asset — in the images modes an expired mediaId fails the task at render (images_do_not_cover_audio names the photo); full lip sync only warns. JPG/JPEG, PNG, or WebP only, max ${MAX_SEGMENT_MEDIA_MB}MB (the engine photo limit). The real content type is validated, not the extension. Returns only the mediaId — never a local path or asset URL.`;
29
- export const CheckMediaDescription = 'Mechanically check one public image URL for a segment, without an LLM and without judging relevance (the agent, who sees the image, decides relevance). Returns exactly one code: ok, blocked_403 (the host blocked the SSRF-safe download — retry with upload_media bytes fetched on your own machine), not_image, too_small, too_large, timeout, or wrong_aspect (with videoAspect given: the image cannot fill that frame — send one that matches the aspect; the reply carries its probed width and height). No fake User-Agent or Referer is sent to bypass hotlink blocks, and private addresses are never fetched. The URL never appears in the output.';
30
27
  export async function handleUploadMedia(client, args) {
31
28
  return handleLibraryCall(async () => {
32
29
  const parsed = UploadMediaSchema.parse(args);
@@ -1 +1 @@
1
- {"version":3,"file":"tools-user-media.js","sourceRoot":"","sources":["../src/tools-user-media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAwB,MAAM,iBAAiB,CAAC;AAE1E,iBAAiB;AACjB,qEAAqE;AACrE,sEAAsE;AACtE,wDAAwD;AACxD,iBAAiB;AAEjB,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;SAC1B,QAAQ,CAAC,+GAA+G,CAAC;CAC7H,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,i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,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IACnE,CAAC,EACD,wBAAwB,EACxB,8BAA8B,CAC/B,CAAC;AACJ,CAAC"}
package/dist/tools.d.ts CHANGED
@@ -71,16 +71,11 @@ export declare const CreatePersonaSchema: z.ZodObject<{
71
71
  avatarPath: z.ZodOptional<z.ZodString>;
72
72
  name: z.ZodString;
73
73
  }, z.core.$strip>;
74
- export declare const ListPersonasShape: {};
75
- export declare const ListPersonasSchema: z.ZodObject<{}, z.core.$strip>;
76
74
  export { ListVoicesShape, ListVoicesSchema } from './voice-filters.js';
77
75
  export { ListClonedVoicesShape, ListClonedVoicesSchema, CreateClonedVoiceShape, CreateClonedVoiceSchema, DeleteClonedVoiceShape, DeleteClonedVoiceSchema, PreviewClonedVoiceShape, PreviewClonedVoiceSchema, } from './cloned-voice-tools.js';
78
76
  export declare const ListFacesShape: {};
79
- export declare const ListFacesSchema: z.ZodObject<{}, z.core.$strip>;
80
77
  export { UpdatePersonaShape, UpdatePersonaSchema, handleUpdatePersona } from './persona-update.js';
81
78
  export { ConnectAccountShape, ConnectAccountSchema, handleConnectAccount } from './connect-account.js';
82
- export declare const ListSocialAccountsShape: {};
83
- export declare const ListSocialAccountsSchema: z.ZodObject<{}, z.core.$strip>;
84
79
  export declare const ListVideoGenerationsShape: {
85
80
  limit: z.ZodOptional<z.ZodNumber>;
86
81
  };
@@ -101,20 +96,12 @@ export declare const ListTokenTransactionsSchema: z.ZodObject<{
101
96
  limit: z.ZodOptional<z.ZodNumber>;
102
97
  offset: z.ZodOptional<z.ZodNumber>;
103
98
  }, z.core.$strip>;
104
- export declare const GetPersonaDeletePreviewShape: {
105
- personaId: z.ZodString;
106
- };
107
- export declare const GetPersonaDeletePreviewSchema: z.ZodObject<{
108
- personaId: z.ZodString;
109
- }, z.core.$strip>;
110
99
  export declare const DeletePersonaShape: {
111
100
  personaId: z.ZodString;
112
101
  };
113
102
  export declare const DeletePersonaSchema: z.ZodObject<{
114
103
  personaId: z.ZodString;
115
104
  }, z.core.$strip>;
116
- export declare const GetTokenBalanceShape: {};
117
- export declare const GetTokenBalanceSchema: z.ZodObject<{}, z.core.$strip>;
118
105
  export declare const ListPersonaImagesShape: {
119
106
  personaId: z.ZodString;
120
107
  };
@@ -153,18 +140,6 @@ export declare const RemovePersonaImageShape: {
153
140
  export declare const RemovePersonaImageSchema: z.ZodObject<{
154
141
  id: z.ZodString;
155
142
  }, z.core.$strip>;
156
- export declare const GetVideoStatusShape: {
157
- taskId: z.ZodString;
158
- };
159
- export declare const GetVideoStatusSchema: z.ZodObject<{
160
- taskId: z.ZodString;
161
- }, z.core.$strip>;
162
- export declare const GetVideoTaskProgressShape: {
163
- taskId: z.ZodString;
164
- };
165
- export declare const GetVideoTaskProgressSchema: z.ZodObject<{
166
- taskId: z.ZodString;
167
- }, z.core.$strip>;
168
143
  export declare function handleCreatePersona(client: PostEngineerClient, args: z.infer<typeof CreatePersonaSchema>): Promise<McpToolResponse>;
169
144
  export declare function handleListPersonas(client: PostEngineerClient): Promise<McpToolResponse>;
170
145
  export declare function handleListVoices(client: PostEngineerClient, args?: ListVoicesArgs): Promise<McpToolResponse>;
@@ -179,16 +154,39 @@ export declare function handleDeleteSlot(client: PostEngineerClient, args: z.inf
179
154
  export declare function handleListVideoGenerations(client: PostEngineerClient, args: z.infer<typeof ListVideoGenerationsSchema>): Promise<McpToolResponse>;
180
155
  export declare function handleGetVideoGeneration(client: PostEngineerClient, args: z.infer<typeof GetVideoGenerationSchema>): Promise<McpToolResponse>;
181
156
  export declare function handleListTokenTransactions(client: PostEngineerClient, args: z.infer<typeof ListTokenTransactionsSchema>): Promise<McpToolResponse>;
182
- export declare function handleGetPersonaDeletePreview(client: PostEngineerClient, args: z.infer<typeof GetPersonaDeletePreviewSchema>): Promise<McpToolResponse>;
183
157
  export declare function handleDeletePersona(client: PostEngineerClient, args: z.infer<typeof DeletePersonaSchema>): Promise<McpToolResponse>;
184
158
  export declare function handleDisconnectAccount(client: PostEngineerClient, args: z.infer<typeof DisconnectAccountSchema>): Promise<McpToolResponse>;
159
+ /** Narrows the GET /api/persona/delete-preview envelope: the persona, the
160
+ * removal counts, and the per-video download links. Anything the API adds
161
+ * later rides through unparsed. */
162
+ export declare function narrowDeletePreview(result: unknown): {
163
+ persona: {
164
+ id: string | null;
165
+ name: string | null;
166
+ };
167
+ counts: {
168
+ schedules: number | null;
169
+ upcomingSlots: number | null;
170
+ publishedSlots: number | null;
171
+ failedSlots: number | null;
172
+ generatedVideos: number | null;
173
+ personaImages: number | null;
174
+ };
175
+ videos: Array<{
176
+ taskId: string | null;
177
+ title: string | null;
178
+ status: string | null;
179
+ downloadUrl: string | null;
180
+ }>;
181
+ videosTruncated: boolean | null;
182
+ linksIncomplete: boolean | null;
183
+ };
185
184
  export declare function handleGetTokenBalance(client: PostEngineerClient): Promise<McpToolResponse>;
186
185
  export { handleLibraryCall } from './tools-call.js';
187
186
  export declare function handleListPersonaImages(client: PostEngineerClient, args: z.infer<typeof ListPersonaImagesSchema>): Promise<McpToolResponse>;
188
187
  export declare function handleAddPersonaImage(client: PostEngineerClient, args: z.infer<typeof AddPersonaImageSchema>): Promise<McpToolResponse>;
189
188
  export declare function handleUpdatePersonaImage(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaImageSchema>): Promise<McpToolResponse>;
190
189
  export declare function handleRemovePersonaImage(client: PostEngineerClient, args: z.infer<typeof RemovePersonaImageSchema>): Promise<McpToolResponse>;
191
- export declare function handleGetVideoStatus(client: PostEngineerClient, args: z.infer<typeof GetVideoStatusSchema>): Promise<McpToolResponse>;
192
190
  /** Redacts credential-shaped material from an engine failure reason before
193
191
  * it reaches the MCP client. The engine error is the user's own task failure
194
192
  * text (e.g. "persona hook must end between 3 and 6 seconds"), but provider
@@ -210,5 +208,4 @@ export declare function narrowTaskProgress(result: unknown): {
210
208
  error: string | null;
211
209
  postUrl: string | null;
212
210
  };
213
- export declare function handleGetVideoTaskProgress(client: PostEngineerClient, args: z.infer<typeof GetVideoTaskProgressSchema>): Promise<McpToolResponse>;
214
211
  export declare function handlePublishVideoDirect(client: PostEngineerClient, args: z.infer<typeof PublishVideoDirectSchema>): Promise<McpToolResponse>;
package/dist/tools.js CHANGED
@@ -11,20 +11,20 @@ import { MAX_LIBRARY_IMAGES, MAX_LIBRARY_IMAGE_MB, MAX_LIBRARY_TAG_LENGTH, MAX_L
11
11
  import { getErrorMessage, ApiError } from './errors.js';
12
12
  import { isEnglishLanguage, ONLY_ENGLISH_VIDEOS_MESSAGE } from './language.js';
13
13
  import { CreatePersonaAvatarFields, refinePersonaAvatar } from './persona-avatar.js';
14
- // Image path/tag/description limits are shared by create-persona and add_persona_image.
14
+ // Image path/tag/description limits are shared by create-persona and persona_media (action: add_image).
15
15
  const LibraryImageFields = {
16
16
  path: z.string().min(1).describe(`Local file path to the image (JPG/JPEG, PNG, or WebP, max ${MAX_LIBRARY_IMAGE_MB}MB)`),
17
17
  tag: z.string().max(MAX_LIBRARY_TAG_LENGTH).optional().describe('Short tag for deterministic per-video matching (e.g. casual, formal, gym)'),
18
18
  description: z.string().max(MAX_LIBRARY_DESCRIPTION_LENGTH).optional().describe('Description of the photo for tag/keyword matching (e.g. smiling at the beach at sunset)'),
19
19
  };
20
- // Single source of truth: index.ts registers these shapes directly with the
21
- // MCP server, so field definitions (and their descriptions) live here only.
20
+ // Single source of truth: the intent-*.ts modules build the advertised shapes from these
21
+ // ones, so field definitions (and their descriptions) live here only.
22
22
  const PersonaLibraryImageInputShape = z.object(LibraryImageFields);
23
23
  export const CreatePersonaShape = {
24
24
  name: z.string().min(1, 'Name is required').describe('Name of the persona'),
25
25
  // Every persona has a face (avatarUrl or avatarPath); faceless is a per-video mode (options.videoType).
26
26
  ...CreatePersonaAvatarFields,
27
- voiceId: personaVoiceField('voiceId is required').describe('id or label from list_voices. Never type a provider prefix.'),
27
+ voiceId: personaVoiceField('voiceId is required').describe('id or label from voices (action: list). Never type a provider prefix.'),
28
28
  language: z
29
29
  .string()
30
30
  .refine(isEnglishLanguage, { message: ONLY_ENGLISH_VIDEOS_MESSAGE })
@@ -44,18 +44,13 @@ export const CreatePersonaShape = {
44
44
  imagePrimaryIndex: z.number().int().min(0).max(MAX_LIBRARY_IMAGES - 1).optional().describe('Index into images[] marking the primary library image (no primary is set when omitted)'),
45
45
  };
46
46
  export const CreatePersonaSchema = z.object(CreatePersonaShape).superRefine(refinePersonaAvatar(true));
47
- export const ListPersonasShape = {};
48
- export const ListPersonasSchema = z.object(ListPersonasShape);
49
47
  export { ListVoicesShape, ListVoicesSchema } from './voice-filters.js';
50
48
  export { ListClonedVoicesShape, ListClonedVoicesSchema, CreateClonedVoiceShape, CreateClonedVoiceSchema, DeleteClonedVoiceShape, DeleteClonedVoiceSchema, PreviewClonedVoiceShape, PreviewClonedVoiceSchema, } from './cloned-voice-tools.js';
51
49
  export const ListFacesShape = {};
52
- export const ListFacesSchema = z.object(ListFacesShape);
53
- // update_persona lives in persona-update.ts (shape, schema and handler);
50
+ // personas (action: update) lives in persona-update.ts (shape, schema and handler);
54
51
  // re-exported here so existing import sites keep working.
55
52
  export { UpdatePersonaShape, UpdatePersonaSchema, handleUpdatePersona } from './persona-update.js';
56
53
  export { ConnectAccountShape, ConnectAccountSchema, handleConnectAccount } from './connect-account.js';
57
- export const ListSocialAccountsShape = {};
58
- export const ListSocialAccountsSchema = z.object(ListSocialAccountsShape);
59
54
  export const ListVideoGenerationsShape = {
60
55
  limit: z
61
56
  .number()
@@ -70,7 +65,7 @@ export const GetVideoGenerationShape = {
70
65
  generationId: z
71
66
  .string()
72
67
  .min(1, 'generationId is required')
73
- .describe('The generation ID (the generationId field from list_video_generations).'),
68
+ .describe('The generation ID (the generationId field from video_tasks (action: list_generations)).'),
74
69
  };
75
70
  export const GetVideoGenerationSchema = z.object(GetVideoGenerationShape);
76
71
  export const ListTokenTransactionsShape = {
@@ -89,22 +84,13 @@ export const ListTokenTransactionsShape = {
89
84
  .describe('How many newest transactions to skip for paging. Defaults to 0.'),
90
85
  };
91
86
  export const ListTokenTransactionsSchema = z.object(ListTokenTransactionsShape);
92
- export const GetPersonaDeletePreviewShape = {
93
- personaId: z
94
- .string()
95
- .min(1, 'personaId is required')
96
- .describe('The persona ID to preview deletion for. Read-only: shows what deleting the persona would remove (counts plus per-video download links).'),
97
- };
98
- export const GetPersonaDeletePreviewSchema = z.object(GetPersonaDeletePreviewShape);
99
87
  export const DeletePersonaShape = {
100
88
  personaId: z
101
89
  .string()
102
90
  .min(1, 'personaId is required')
103
- .describe('The persona ID to delete. DESTRUCTIVE and irreversible: deletes the persona, all its schedules and slots, all generated videos, and the image library. No token refunds — prepaid tokens for pending slots are forfeited. Call get_persona_delete_preview first to see exactly what will be removed.'),
91
+ .describe('The persona ID to delete. DESTRUCTIVE and irreversible: deletes the persona, all its schedules and slots, all generated videos, and the image library. No token refunds — prepaid tokens for pending slots are forfeited. Call personas (action: delete) first to see exactly what will be removed.'),
104
92
  };
105
93
  export const DeletePersonaSchema = z.object(DeletePersonaShape);
106
- export const GetTokenBalanceShape = {};
107
- export const GetTokenBalanceSchema = z.object(GetTokenBalanceShape);
108
94
  export const ListPersonaImagesShape = {
109
95
  personaId: z.string().min(1, 'personaId is required').describe('The ID of the persona whose image library to list'),
110
96
  };
@@ -112,7 +98,7 @@ export const ListPersonaImagesSchema = z.object(ListPersonaImagesShape);
112
98
  export const AddPersonaImageShape = {
113
99
  personaId: z.string().min(1, 'personaId is required').describe('The ID of the persona to add the image to'),
114
100
  ...LibraryImageFields,
115
- // Swap-only, symmetric with update_persona_image: isPrimary:false on a new
101
+ // Swap-only, symmetric with persona_media (action: update_image): isPrimary:false on a new
116
102
  // image is meaningless (never primary unless marked), so the schema accepts
117
103
  // only true and surfaces the constraint at parse time, not as a silent drop.
118
104
  isPrimary: z
@@ -143,17 +129,6 @@ export const RemovePersonaImageShape = {
143
129
  id: z.string().min(1, 'id is required').describe('The library image ID to remove'),
144
130
  };
145
131
  export const RemovePersonaImageSchema = z.object(RemovePersonaImageShape);
146
- export const GetVideoStatusShape = {
147
- taskId: z.string().min(1, 'taskId is required').describe('The video generation task ID'),
148
- };
149
- export const GetVideoStatusSchema = z.object(GetVideoStatusShape);
150
- // Machine-readable progress for a single video task. Unlike get_video_status
151
- // (raw status + URLs), this returns only the four progress fields so agents
152
- // can poll "video 1/6: 60%" style progress without parsing a full payload.
153
- export const GetVideoTaskProgressShape = {
154
- taskId: z.string().min(1, 'taskId is required').describe('The video generation task ID'),
155
- };
156
- export const GetVideoTaskProgressSchema = z.object(GetVideoTaskProgressShape);
157
132
  export async function handleCreatePersona(client, args) {
158
133
  // Re-parses with the full schema (the SDK parses tool args from the raw
159
134
  // shape only), then routes the voice BEFORE any POST: an unknown voice
@@ -414,50 +389,6 @@ export async function handleListTokenTransactions(client, args) {
414
389
  };
415
390
  }
416
391
  }
417
- export async function handleGetPersonaDeletePreview(client, args) {
418
- try {
419
- const narrowed = narrowDeletePreview(await client.getPersonaDeletePreview(args.personaId));
420
- const counts = narrowed.counts;
421
- const humanSummary = `Deleting persona "${narrowed.persona.name ?? args.personaId}" would remove ` +
422
- `${counts.schedules ?? '?'} schedule(s), ${counts.upcomingSlots ?? '?'} upcoming slot(s), ` +
423
- `${counts.publishedSlots ?? '?'} published slot(s), ${counts.generatedVideos ?? '?'} generated video(s), ` +
424
- `and ${counts.personaImages ?? '?'} library image(s). No token refunds.`;
425
- return {
426
- content: [
427
- {
428
- type: 'text',
429
- text: `${humanSummary}\n${JSON.stringify(narrowed, null, 2)}`,
430
- },
431
- ],
432
- };
433
- }
434
- catch (error) {
435
- if (error instanceof ApiError && error.code !== null) {
436
- return {
437
- content: [
438
- {
439
- type: 'text',
440
- text: `Error getting persona delete preview: ${JSON.stringify({
441
- code: error.code,
442
- message: sanitizeEngineError(getErrorMessage(error)),
443
- field: error.field,
444
- })}`,
445
- },
446
- ],
447
- isError: true,
448
- };
449
- }
450
- return {
451
- content: [
452
- {
453
- type: 'text',
454
- text: `Error getting persona delete preview: ${getErrorMessage(error)}`,
455
- },
456
- ],
457
- isError: true,
458
- };
459
- }
460
- }
461
392
  export async function handleDeletePersona(client, args) {
462
393
  try {
463
394
  await client.deletePersona(args.personaId);
@@ -540,7 +471,7 @@ export async function handleDisconnectAccount(client, args) {
540
471
  /** Narrows the GET /api/persona/delete-preview envelope: the persona, the
541
472
  * removal counts, and the per-video download links. Anything the API adds
542
473
  * later rides through unparsed. */
543
- function narrowDeletePreview(result) {
474
+ export function narrowDeletePreview(result) {
544
475
  const record = typeof result === 'object' && result !== null
545
476
  ? result
546
477
  : {};
@@ -607,7 +538,7 @@ function narrowTokenTransactions(result) {
607
538
  offset: num(record.offset),
608
539
  };
609
540
  }
610
- /** Slot, schedule, and persona fields get_slot returns. */
541
+ /** Slot, schedule, and persona fields schedules (action: get_slot) returns. */
611
542
  function narrowSlotDetail(result) {
612
543
  const record = typeof result === 'object' && result !== null
613
544
  ? result
@@ -688,9 +619,6 @@ export async function handleUpdatePersonaImage(client, args) {
688
619
  export async function handleRemovePersonaImage(client, args) {
689
620
  return handleLibraryCall(() => client.deletePersonaImage(args.id), 'removing persona image', 'Persona image removed successfully');
690
621
  }
691
- export async function handleGetVideoStatus(client, args) {
692
- return handleLibraryCall(() => client.getVideoStatus(args.taskId), 'fetching video status');
693
- }
694
622
  /** Redacts credential-shaped material from an engine failure reason before
695
623
  * it reaches the MCP client. The engine error is the user's own task failure
696
624
  * text (e.g. "persona hook must end between 3 and 6 seconds"), but provider
@@ -734,9 +662,6 @@ export function narrowTaskProgress(result) {
734
662
  postUrl: typeof get('postUrl') === 'string' ? get('postUrl') : null,
735
663
  };
736
664
  }
737
- export async function handleGetVideoTaskProgress(client, args) {
738
- return handleLibraryCall(async () => narrowTaskProgress(await client.getVideoStatus(args.taskId)), 'fetching video task progress');
739
- }
740
665
  export async function handlePublishVideoDirect(client, args) {
741
666
  try {
742
667
  const result = await client.publishVideoDirect({