post-engineer-mcp 1.33.0 → 1.35.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/README.md +8 -6
- package/dist/client-posts.d.ts +7 -0
- package/dist/client-posts.js +12 -0
- package/dist/client-posts.js.map +1 -1
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/prompt-base.d.ts +4 -0
- package/dist/prompt-base.js +124 -0
- package/dist/prompt-base.js.map +1 -0
- package/dist/prompts.js +10 -86
- package/dist/prompts.js.map +1 -1
- package/dist/single-video-shape.d.ts +12 -12
- package/dist/tools-single-video.d.ts +24 -0
- package/dist/tools-single-video.js +60 -0
- package/dist/tools-single-video.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ The `Authorization: Bearer` API key header is sent to the configured base URL, s
|
|
|
111
111
|
- `update_persona`: update an existing persona (only the provided fields change).
|
|
112
112
|
- `get_token_balance`: get the prepaid token wallet balance. Check before generating videos, which cost tokens.
|
|
113
113
|
- `validate_script`: validate a segments script mechanically, without spending tokens — hook first, CTA last, exactly one of each, word limits (total 60-200, body at least 30, CTA 5-20, hook 15-40 words before TTS). 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.
|
|
114
|
+
- `score_draft`: 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): it fails only on an empty draft or the network's own ceiling where this repo has evidence for it (LinkedIn 3000 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, CTA last): hashtags are not scored and publishCheck is null.
|
|
114
115
|
- `upload_media`: upload a local image for a video segment and get a `mediaId` to use in a segment's `media` field. JPG/JPEG, PNG, or WebP, max 8MB (the engine photo limit, not the 10MB library limit); the real content type is validated, not the extension. The file is stored as a temporary engine asset (1 hour TTL): upload shortly before generating, since a scheduled slot far in the future may outlive the asset and the segment then renders without it. Returns only the `mediaId`.
|
|
115
116
|
- `check_media`: 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`, `not_image`, `too_small`, `too_large`, `timeout`, or `face_detected`. No fake User-Agent or Referer is sent to bypass hotlink blocks, and private addresses are never fetched.
|
|
116
117
|
- `generate_persona_video`: generate and schedule ONE persona video from a complete script — generation is always tied to publishing (one call = generate + schedule + auto-publish; no orphan videos, no separate schedule step). Send the full script as `segments` (first `hook`, then body segments, last `cta`; 60-200 words total, body at least 30, CTA 5-20, hook 15-40 words ending with terminal punctuation) — no LLM expands it. `title` is the slot label for this video. `personaId` is optional: omit it for a faceless post with no persona, in which case set `options.faceless` and `options.voiceId` (or `options.audioUrl`), plus `videoAspect` / `language` / `niche` as needed. Pass `providers` plus per-provider account IDs (see the account ID table below), `startAt` + `times` in `timezone` (or `mode: 'asap'` with no `startAt`/`times`). The slot must be 3h–30d ahead. `idempotencyKey` is generated automatically; reuse it to retry without generating twice (`replayed: true`). Poll the slot's `taskId` with `get_video_task_progress`.
|
|
@@ -161,18 +162,19 @@ Passing a `recordId` fails fast with an error naming the right field.
|
|
|
161
162
|
The server serves the prompts hub from the Post Engineer web platform over
|
|
162
163
|
the MCP [prompts capability](https://modelcontextprotocol.io/docs/concepts/prompts),
|
|
163
164
|
so MCP clients (Cursor, Claude) list them as slash commands. Each prompt is
|
|
164
|
-
zero-arg
|
|
165
|
-
|
|
165
|
+
zero-arg: the agent asks you for the persona, accounts, and timing when you
|
|
166
|
+
run it. The copy is kept in sync with the web
|
|
166
167
|
hub by a sync test (`prompts-sync.test.ts`).
|
|
167
168
|
|
|
168
169
|
- `/daily-news`: Daily news becomes a video — turn one top GNews story of the day into one persona video, validated before any token is spent.
|
|
169
170
|
- `/github-prs`: GitHub PRs become videos — turn a GitHub pull request into one persona video.
|
|
170
171
|
- `/full-setup`: Full setup becomes videos — connect accounts, create a persona, validate the script, and publish your first video without skipping a step.
|
|
171
172
|
|
|
172
|
-
Add a new prompt to
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
Add a new prompt's text to `shared/prompt-base/prompt-base.ts` and run
|
|
174
|
+
`node scripts/sync-prompt-base.mjs`. Then add its entry to the web hub
|
|
175
|
+
(`apps/web/app/recipes/prompts.ts` + its i18n title/description) and the same
|
|
176
|
+
slug, title, description, and text export to `src/prompts.ts`; `pnpm test`
|
|
177
|
+
fails if they drift.
|
|
176
178
|
|
|
177
179
|
## Links
|
|
178
180
|
|
package/dist/client-posts.d.ts
CHANGED
|
@@ -8,3 +8,10 @@ export interface PostMetricsQuery {
|
|
|
8
8
|
}
|
|
9
9
|
export declare function getPost(client: PostEngineerClient, id: string): Promise<unknown>;
|
|
10
10
|
export declare function getPostMetrics(client: PostEngineerClient, query: PostMetricsQuery): Promise<unknown>;
|
|
11
|
+
export interface ScoreDraftInput {
|
|
12
|
+
draft: string;
|
|
13
|
+
network?: string;
|
|
14
|
+
personaId?: string;
|
|
15
|
+
kind?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function scoreDraft(client: PostEngineerClient, input: ScoreDraftInput): Promise<unknown>;
|
package/dist/client-posts.js
CHANGED
|
@@ -12,4 +12,16 @@ export async function getPostMetrics(client, query) {
|
|
|
12
12
|
}
|
|
13
13
|
return client.request(`/api/metrics?${params.toString()}`, { method: 'GET', headers: client.getHeaders() }, 'get post metrics');
|
|
14
14
|
}
|
|
15
|
+
export async function scoreDraft(client, input) {
|
|
16
|
+
// Same parameter names as the route's body; omitted optionals are not
|
|
17
|
+
// sent (the route rejects empty parameters).
|
|
18
|
+
const body = { draft: input.draft };
|
|
19
|
+
if (input.network !== undefined)
|
|
20
|
+
body.network = input.network;
|
|
21
|
+
if (input.personaId !== undefined)
|
|
22
|
+
body.personaId = input.personaId;
|
|
23
|
+
if (input.kind !== undefined)
|
|
24
|
+
body.kind = input.kind;
|
|
25
|
+
return client.request('/api/videos/score-draft', { method: 'POST', headers: client.getHeaders(), body: JSON.stringify(body) }, 'score draft');
|
|
26
|
+
}
|
|
15
27
|
//# sourceMappingURL=client-posts.js.map
|
package/dist/client-posts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-posts.js","sourceRoot":"","sources":["../src/client-posts.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAA0B,EAAE,EAAU;IAClE,OAAO,MAAM,CAAC,OAAO,CACnB,cAAc,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACtC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,EAC/C,UAAU,CACX,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAA0B,EAC1B,KAAuB;IAEvB,yEAAyE;IACzE,qDAAqD;IACrD,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7D,KAAK,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAU,EAAE,CAAC;QACvE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,KAAK,KAAK,SAAS;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CACnB,gBAAgB,MAAM,CAAC,QAAQ,EAAE,EAAE,EACnC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,EAC/C,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"client-posts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AAK,SAAS;QAAE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IACpE,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS;QAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACrD,OAAO,MAAM,CAAC,OAAO,CACnB,yBAAyB,EACzB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAC5E,aAAa,CACd,CAAC;AACJ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { GetPersonaPublishingAccountsShape, SetPersonaPublishingAccountsShape, h
|
|
|
10
10
|
import { GetClonedVoiceShape, handleGetClonedVoice } from './cloned-voice-tools.js';
|
|
11
11
|
import { GetPostShape, GetPostMetricsShape, handleGetPost, handleGetPostMetrics, } from './tools-posts.js';
|
|
12
12
|
import { CancelVideoTaskShape, handleCancelVideoTask, } from './video-task-tools.js';
|
|
13
|
-
import { GeneratePersonaVideoShape, ValidateScriptShape, ValidateScriptDescription, handleGeneratePersonaVideo, handleValidateScript } from './tools-single-video.js';
|
|
13
|
+
import { GeneratePersonaVideoShape, ValidateScriptShape, ValidateScriptDescription, ScoreDraftShape, ScoreDraftDescription, handleGeneratePersonaVideo, handleValidateScript, handleScoreDraft } from './tools-single-video.js';
|
|
14
14
|
import { CheckMediaDescription, CheckMediaShape, UploadMediaDescription, UploadMediaShape, handleCheckMedia, handleUploadMedia } from './tools-user-media.js';
|
|
15
15
|
import { withTracking } from './analytics.js';
|
|
16
16
|
import { parseHttpTransportOptions, serveHttpTransport } from './http-transport.js';
|
|
@@ -124,11 +124,10 @@ export function createPostEngineerMcpServer(client) {
|
|
|
124
124
|
}));
|
|
125
125
|
server.tool('generate_persona_video', 'Generate and schedule ONE persona video from a complete script. Product rule: generation is always tied to publishing — one call generates the video AND schedules its automatic publish; there is no orphan generation. Send the full script as segments (first hook, then body, last CTA; 60-200 words total, body at least 30, CTA 5-20, hook 15-40 words ending with terminal punctuation) — no LLM expands it. title is the slot label for this video. Pass providers plus per-provider account IDs (see list_social_accounts), startAt (ISO datetime, wall-clock in timezone when naive), times (HH:MM, 24h), and timezone. Set mode to \'asap\' to publish the video the moment its generation finishes instead of scheduling it — startAt and times must NOT be set then. The slot must be 3h-30d ahead. idempotencyKey is generated automatically; reuse it to retry without generating twice (replayed: true). Poll the slot\'s taskId with get_video_task_progress.', GeneratePersonaVideoShape, withTracking('generate_persona_video', async (args) => handleGeneratePersonaVideo(apiClient, args)));
|
|
126
126
|
server.tool('validate_script', ValidateScriptDescription, ValidateScriptShape, withTracking('validate_script', async (args) => handleValidateScript(apiClient, args)));
|
|
127
|
+
server.tool('score_draft', ScoreDraftDescription, ScoreDraftShape, withTracking('score_draft', async (args) => handleScoreDraft(apiClient, args)));
|
|
127
128
|
server.tool('upload_media', UploadMediaDescription, UploadMediaShape, withTracking('upload_media', async (args) => handleUploadMedia(apiClient, args)));
|
|
128
129
|
server.tool('check_media', CheckMediaDescription, CheckMediaShape, withTracking('check_media', async (args) => handleCheckMedia(apiClient, args)));
|
|
129
|
-
server.tool('get_video_status', 'Check the generation status and fetch final video URLs for a taskId.', GetVideoStatusShape, withTracking('get_video_status', async (args) =>
|
|
130
|
-
return handleGetVideoStatus(apiClient, args);
|
|
131
|
-
}));
|
|
130
|
+
server.tool('get_video_status', 'Check the generation status and fetch final video URLs for a taskId.', GetVideoStatusShape, withTracking('get_video_status', async (args) => handleGetVideoStatus(apiClient, args)));
|
|
132
131
|
server.tool('get_video_task_progress', 'Poll one video task for its machine-readable progress: returns {task_id, state, progress, stage, error}. error is the engine failure reason when state is -1 (failed), null otherwise. Use for the video after generate_persona_video; prefer this over get_video_status when only progress matters.', GetVideoTaskProgressShape, withTracking('get_video_task_progress', async (args) => {
|
|
133
132
|
return handleGetVideoTaskProgress(apiClient, args);
|
|
134
133
|
}));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,E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,YAAY,EAAE,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,CAAC,CAAC;QAC9C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Shared prompt base: single source of truth for the web prompts hub and
|
|
2
|
+
// the MCP prompts hub. Every served prompt is composed as
|
|
3
|
+
// [...SHARED_PROMPT_BASE, '', ...specificLines].join('\n'), so the
|
|
4
|
+
// delivered text is complete and standalone: the agent receives the
|
|
5
|
+
// whole prompt in one paste, never a bare "see the base prompt"
|
|
6
|
+
// reference.
|
|
7
|
+
// DO NOT EDIT this copy directly in apps/web or apps/mcp: the files at
|
|
8
|
+
// apps/web/lib/generation/prompt-base.ts and apps/mcp/src/prompt-base.ts
|
|
9
|
+
// are generated copies of this file. Edit here, then run
|
|
10
|
+
// `node scripts/sync-prompt-base.mjs` from the repo root. The per-app
|
|
11
|
+
// prompt-base-shared tests fail loudly if a generated copy ever drifts,
|
|
12
|
+
// so a stale copy can never pass CI silently. The sync script is
|
|
13
|
+
// deliberately NOT wired into prebuild/pretest: both apps' package.json
|
|
14
|
+
// files are guard-protected paths, and auto-regeneration is a
|
|
15
|
+
// convenience, not a correctness requirement.
|
|
16
|
+
// Rules that apply to every prompt go in SHARED_PROMPT_BASE. Topic-specific
|
|
17
|
+
// steps go in the prompt that owns them, below, so the base stays short and
|
|
18
|
+
// every prompt stays cheap. Web and MCP serve these exports unchanged.
|
|
19
|
+
// This file has no imports, so the same bytes compile under the web
|
|
20
|
+
// bundler resolution and the MCP NodeNext resolution.
|
|
21
|
+
export const SHARED_PROMPT_BASE = [
|
|
22
|
+
'Ask me, do not make me fill anything in:',
|
|
23
|
+
'Before any step that costs tokens, call list_personas, list_social_accounts, and get_token_balance, then ask only what you still need. Offer my real personas and accounts as choices. Ask one short question at a time, in the language I write in.',
|
|
24
|
+
'Ask which persona, which accounts, one video or a routine (daily or weekly), and publish now or at what date, time, and timezone.',
|
|
25
|
+
'Routines: Post Engineer has no recurring schedule; one generate_persona_video call makes and publishes one video. For a routine, rerun this prompt from your own scheduler if you have one, or schedule several videos ahead, at most 30 days out, each spending tokens. Tell me which you can do; never promise automatic posting you did not set up.',
|
|
26
|
+
'Before generating, show me the persona, accounts, title, and time, and wait for my yes: the post is real and spends tokens. Once I approve a routine, its runs reuse those answers and need no new yes.',
|
|
27
|
+
'',
|
|
28
|
+
'Write like a human, never like generic AI:',
|
|
29
|
+
'Facts: use concrete detail from the source: names, places, numbers. Only facts the source supports; if a detail is missing, ask me or leave it out, never invent it. Name who said it, never "experts say".',
|
|
30
|
+
'Voice: if I share a sample of my writing, match its words and rhythm. If the persona niche does not say who this video is for, ask me.',
|
|
31
|
+
'Hook: its only job is to make me want the next sentence. Open a question I need answered, break what I expect, drop me into a specific moment, name a payoff, or lead with a named fact. Draft three on different angles and keep the strongest. Never promise more than the video delivers. No "have you ever wondered" or "did you know".',
|
|
32
|
+
'Body: one idea, in plain spoken sentences of mixed length. Say who did what: no "mistakes were made", no "the data tells us". Most lines stay plain; allow one or two punchy moments.',
|
|
33
|
+
'CTA: one specific action tied to this video, never a generic "follow for more".',
|
|
34
|
+
"Cut: unlock, elevate, seamless, game-changer, next-level, delve, \"the future of\", \"a new era\", \"it's not just X, it's Y\", forced groups of three, runs of fragments, \"let's dive in\", \"here's the thing\", \"honestly?\", upbeat closers, all-caps emphasis, stacked hedges, filler.",
|
|
35
|
+
'No em dashes. Do not sand off real voice: one short line or one "however" is fine; clusters of these habits are the problem.',
|
|
36
|
+
'Test each line: could I picture it, could it be proven true or false, and could another creator say it about another topic? If yes to the last, rewrite it.',
|
|
37
|
+
'Before validate_script, read it aloud and ask what still sounds like AI and which fact is not in the source. Fix both.',
|
|
38
|
+
'',
|
|
39
|
+
'Script contract, every video script follows it:',
|
|
40
|
+
'Segments: first hook, last CTA, exactly one of each, at least one body, at most 12 segments.',
|
|
41
|
+
'Length: 60–200 words total; hook 15–40 words, aim for 20–30 (8–12 seconds), ending with terminal punctuation; body at least 30 words; CTA 5–20 words.',
|
|
42
|
+
'Spoken English only, language "en": no links, hashtags, markdown, emoji, or stage directions in any segment.',
|
|
43
|
+
'Propose a title; it is mandatory with every generate_persona_video call.',
|
|
44
|
+
'Call validate_script with the segments and fix any named error until it passes. Validate before any token is spent; never generate from an unvalidated script.',
|
|
45
|
+
'Then call score_draft with kind "script", the segments joined by newlines, the persona, and the network; it spends no tokens. Show me the score and every reason, fix what it names, re-validate, and score again. The score is advice checked by rules, not proof the script is good: never bend facts to gain points, and ask me to decide if it stays low.',
|
|
46
|
+
'',
|
|
47
|
+
'Generation is always tied to publishing:',
|
|
48
|
+
'One generate_persona_video call generates and publishes the video; there is no orphan video and no separate schedule step.',
|
|
49
|
+
'mode "scheduled" needs startAt (ISO datetime, 3h-30d ahead), times (HH:MM), and timezone; mode "asap" needs no startAt or times.',
|
|
50
|
+
];
|
|
51
|
+
export const FULL_SETUP_PROMPT = [
|
|
52
|
+
...SHARED_PROMPT_BASE,
|
|
53
|
+
'',
|
|
54
|
+
'Set up Post Engineer end to end and publish your first video. Follow the',
|
|
55
|
+
'steps in order; do not skip ahead of validation or the publish confirmation.',
|
|
56
|
+
'',
|
|
57
|
+
'1. Call list_social_accounts. Ask which of youtube, instagram, linkedin',
|
|
58
|
+
' the user wants; for each one that is missing, call connect_account with',
|
|
59
|
+
' that provider and hand the returned https OAuth link to the user to',
|
|
60
|
+
' finish in the browser, then re-check with list_social_accounts.',
|
|
61
|
+
'2. Bluesky is optional. If the user wants it, ask for the handle and the',
|
|
62
|
+
' app password (never the main password); use the app password only in',
|
|
63
|
+
' connect_account and never repeat, print, or log it.',
|
|
64
|
+
'3. Ask what the channel is about and what to call the persona. Call',
|
|
65
|
+
' list_faces and list_voices, let the user pick a face and a voice,',
|
|
66
|
+
' then call create_persona with name, avatarUrl, voiceId,',
|
|
67
|
+
' language "en-US" (English only for now) and niche. Remember the personaId.',
|
|
68
|
+
'4. Call get_token_balance first, ask what the first video is about, then',
|
|
69
|
+
' write the script as segments following the contract above and call',
|
|
70
|
+
' validate_script until it passes.',
|
|
71
|
+
'5. Before generating, tell the user the video IS published as a',
|
|
72
|
+
' real post, and confirm the providers/accounts and the mode (scheduled|asap)',
|
|
73
|
+
' with the user. Also ask if they want a routine after this first video.',
|
|
74
|
+
' Warning: Bluesky video publishing is',
|
|
75
|
+
' currently being fixed (issue #327); Bluesky is optional and can be',
|
|
76
|
+
' skipped.',
|
|
77
|
+
'6. Call generate_persona_video once with that personaId, the validated',
|
|
78
|
+
' segments unchanged, the confirmed title, language "en", the confirmed',
|
|
79
|
+
' providers with their account IDs from list_social_accounts, and the',
|
|
80
|
+
' confirmed mode. Then call get_video_task_progress until done and share the',
|
|
81
|
+
' get_video_status URL.',
|
|
82
|
+
].join('\n');
|
|
83
|
+
export const DAILY_NEWS_PROMPT = [
|
|
84
|
+
...SHARED_PROMPT_BASE,
|
|
85
|
+
'',
|
|
86
|
+
"Turn one top story from today's GNews headlines (lang=en, country=us) into",
|
|
87
|
+
'one Post Engineer video. My GNews key is in your own environment as',
|
|
88
|
+
'YOUR_GNEWS_KEY: never print it, never paste it anywhere else. If it is',
|
|
89
|
+
'missing, tell me to set it; never ask me to paste it in chat.',
|
|
90
|
+
'',
|
|
91
|
+
'1. Pick one clear single event with a named place. Skip round-ups, opinion',
|
|
92
|
+
' pieces, and stories sourced only from a social post. Attribute',
|
|
93
|
+
' single-sourced claims.',
|
|
94
|
+
'2. Write the script as segments following the contract above and call',
|
|
95
|
+
' validate_script until it passes.',
|
|
96
|
+
'3. For media, prefer a photo of the actual place in the story. Check a',
|
|
97
|
+
' public URL with check_media first and attach it only on ok; or upload',
|
|
98
|
+
' a local file with upload_media shortly before generating and use the',
|
|
99
|
+
' mediaId. At most 6 medias. Skip a failed photo, never force it.',
|
|
100
|
+
'4. Call generate_persona_video with the confirmed personaId, the validated',
|
|
101
|
+
' segments unchanged, the confirmed title, language "en", the confirmed',
|
|
102
|
+
' providers with account IDs from list_social_accounts, and the confirmed',
|
|
103
|
+
' mode.',
|
|
104
|
+
'5. Poll get_video_task_progress on the taskId until done, then share the',
|
|
105
|
+
' final video URL from get_video_status.',
|
|
106
|
+
].join('\n');
|
|
107
|
+
export const GITHUB_PRS_PROMPT = [
|
|
108
|
+
...SHARED_PROMPT_BASE,
|
|
109
|
+
'',
|
|
110
|
+
'Turn one GitHub pull request into one persona video.',
|
|
111
|
+
'',
|
|
112
|
+
'1. Ask me which PR. If you can read the repo, fetch its title, description,',
|
|
113
|
+
' and changes yourself; otherwise ask me for them.',
|
|
114
|
+
'2. Write the script as segments following the contract above and call',
|
|
115
|
+
' validate_script until it passes.',
|
|
116
|
+
'3. Media: at most 6, only if they match the PR (screenshots, diagrams, or',
|
|
117
|
+
' repo visuals); otherwise generate without media.',
|
|
118
|
+
'4. Call generate_persona_video, the singular video tool, once with the',
|
|
119
|
+
' confirmed personaId, the validated segments unchanged, the confirmed',
|
|
120
|
+
' title, language "en", the confirmed accounts, and the confirmed mode.',
|
|
121
|
+
'5. Never invent PR details: if the title, description, or change summary is',
|
|
122
|
+
' missing, ask for it instead of guessing.',
|
|
123
|
+
].join('\n');
|
|
124
|
+
//# sourceMappingURL=prompt-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-base.js","sourceRoot":"","sources":["../src/prompt-base.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,0DAA0D;AAC1D,mEAAmE;AACnE,oEAAoE;AACpE,gEAAgE;AAChE,aAAa;AACb,uEAAuE;AACvE,yEAAyE;AACzE,yDAAyD;AACzD,sEAAsE;AACtE,wEAAwE;AACxE,iEAAiE;AACjE,wEAAwE;AACxE,8DAA8D;AAC9D,8CAA8C;AAC9C,4EAA4E;AAC5E,4EAA4E;AAC5E,uEAAuE;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;IACrC,wEAAwE;IACxE,0EAA0E;IAC1E,yEAAyE;IACzE,oEAAoE;IACpE,4EAA4E;IAC5E,0EAA0E;IAC1E,4EAA4E;IAC5E,UAAU;IACV,0EAA0E;IAC1E,2CAA2C;CAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,kBAAkB;IACrB,EAAE;IACF,sDAAsD;IACtD,EAAE;IACF,6EAA6E;IAC7E,qDAAqD;IACrD,uEAAuE;IACvE,qCAAqC;IACrC,2EAA2E;IAC3E,qDAAqD;IACrD,wEAAwE;IACxE,yEAAyE;IACzE,0EAA0E;IAC1E,6EAA6E;IAC7E,6CAA6C;CAC9C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/prompts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//---------------
|
|
2
|
-
// MCP prompts hub
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// the two drift. Prompts are zero-arg: placeholders stay in the text.
|
|
2
|
+
// MCP prompts hub: slash commands for the recipes prompts. Prompt texts
|
|
3
|
+
// come from ./prompt-base.ts, a generated copy of
|
|
4
|
+
// shared/prompt-base/prompt-base.ts, because the published tarball cannot
|
|
5
|
+
// import outside src. Slugs, titles and descriptions mirror the web hub;
|
|
6
|
+
// prompts-sync.test.ts fails when they drift. Prompts are zero-arg: the
|
|
7
|
+
// agent asks the user for values.
|
|
9
8
|
//---------------
|
|
9
|
+
import { DAILY_NEWS_PROMPT, FULL_SETUP_PROMPT, GITHUB_PRS_PROMPT } from './prompt-base.js';
|
|
10
10
|
export const HUB_PROMPTS = [
|
|
11
11
|
{
|
|
12
12
|
slug: "daily-news",
|
|
@@ -14,33 +14,7 @@ export const HUB_PROMPTS = [
|
|
|
14
14
|
description: [
|
|
15
15
|
"Turn one news story of the day into one persona video, validated before any token is spent.",
|
|
16
16
|
].join("\n"),
|
|
17
|
-
prompt:
|
|
18
|
-
"Turn one top story from today's GNews headlines (lang=en, country=us) into",
|
|
19
|
-
"one Post Engineer video. My GNews key is in your own environment as",
|
|
20
|
-
"YOUR_GNEWS_KEY — never print it, never paste it anywhere else.",
|
|
21
|
-
"",
|
|
22
|
-
"Rules:",
|
|
23
|
-
"1. Pick one clear single event with a named place. Skip round-ups, opinion",
|
|
24
|
-
" pieces, and stories sourced only from a social post.",
|
|
25
|
-
"2. Write the script as segments: first hook (aim 20-30 words, end with",
|
|
26
|
-
" terminal punctuation), then body segments (at least 30 words total),",
|
|
27
|
-
" last CTA (5-20 words). Total 60–200 words, spoken English only, no",
|
|
28
|
-
" links, hashtags, markdown, emoji, or stage directions. Only facts the",
|
|
29
|
-
" source supports; attribute single-sourced claims.",
|
|
30
|
-
"3. Call validate_script with those segments. Fix any named error and",
|
|
31
|
-
" re-validate until it passes. Do not generate before it passes.",
|
|
32
|
-
"4. For media, prefer a photo of the actual place in the story. Check a",
|
|
33
|
-
" public URL with check_media first and attach it only on ok; or upload",
|
|
34
|
-
" a local file with upload_media shortly before generating and use the",
|
|
35
|
-
" mediaId. At most 6 medias. Skip a failed photo, never force it.",
|
|
36
|
-
"5. Call generate_persona_video with personaId [PERSONA_ID], the validated",
|
|
37
|
-
" segments unchanged, title [STORY_TITLE], language \"en\", providers",
|
|
38
|
-
" [PROVIDERS] with account IDs from list_social_accounts, mode",
|
|
39
|
-
" [scheduled|asap] (scheduled needs startAt [ISO_DATETIME] + times",
|
|
40
|
-
" [HH:MM] in timezone [TIMEZONE]; asap needs no startAt/times).",
|
|
41
|
-
"6. Poll get_video_task_progress on the taskId until done, then share the",
|
|
42
|
-
" final video URL from get_video_status.",
|
|
43
|
-
].join("\n"),
|
|
17
|
+
prompt: DAILY_NEWS_PROMPT,
|
|
44
18
|
},
|
|
45
19
|
{
|
|
46
20
|
slug: "github-prs",
|
|
@@ -48,26 +22,7 @@ export const HUB_PROMPTS = [
|
|
|
48
22
|
description: [
|
|
49
23
|
"Turn your GitHub pull requests into persona videos.",
|
|
50
24
|
].join("\n"),
|
|
51
|
-
prompt:
|
|
52
|
-
"Turn this GitHub pull request into one persona video.",
|
|
53
|
-
"",
|
|
54
|
-
"PR to use (paste the PR title, description, and a short change summary, plus any linked issues):",
|
|
55
|
-
"- Title: ...",
|
|
56
|
-
"- Description: ...",
|
|
57
|
-
"- What changed: ...",
|
|
58
|
-
"- Linked issues: ...",
|
|
59
|
-
"",
|
|
60
|
-
"Rules:",
|
|
61
|
-
"- Use the Post Engineer MCP server and the singular video tool, generate_persona_video.",
|
|
62
|
-
"- First, call validate_script with your script and only proceed when it is valid — validate before any token is debited.",
|
|
63
|
-
"- Script: spoken text only, no links, hashtags, markdown, emojis, or stage directions.",
|
|
64
|
-
"- Structure: first segment is the hook, last segment is the CTA, exactly one of each.",
|
|
65
|
-
"- Length: 60–200 words total, hook 20–30 words (8–12 seconds), body at least 30 words, CTA 5–20 words, at most 12 segments.",
|
|
66
|
-
"- Language: en only.",
|
|
67
|
-
"- Media: at most 6, only if they match the PR (screenshots, diagrams, or repo visuals); otherwise generate without media.",
|
|
68
|
-
"- Then generate one video for this PR and publish it where the user asked, scheduled or asap.",
|
|
69
|
-
"- Never invent PR details: if the title, description, or change summary is missing, ask for it instead of guessing.",
|
|
70
|
-
].join("\n"),
|
|
25
|
+
prompt: GITHUB_PRS_PROMPT,
|
|
71
26
|
},
|
|
72
27
|
{
|
|
73
28
|
slug: "full-setup",
|
|
@@ -75,38 +30,7 @@ export const HUB_PROMPTS = [
|
|
|
75
30
|
description: [
|
|
76
31
|
"Connect accounts, create a persona, validate the script, and publish your first video without skipping a step.",
|
|
77
32
|
].join("\n"),
|
|
78
|
-
prompt:
|
|
79
|
-
"Set up Post Engineer end to end and publish your first video. Follow the",
|
|
80
|
-
"steps in order; do not skip ahead of validation or the publish confirmation.",
|
|
81
|
-
"",
|
|
82
|
-
"1. Call list_social_accounts. Ask which of youtube, instagram, linkedin",
|
|
83
|
-
" the user wants; for each one that is missing, call connect_account with",
|
|
84
|
-
" that provider and hand the returned https OAuth link to the user to",
|
|
85
|
-
" finish in the browser, then re-check with list_social_accounts.",
|
|
86
|
-
"2. Bluesky is optional. If the user wants it, ask for the handle and the",
|
|
87
|
-
" app password (never the main password); use the app password only in",
|
|
88
|
-
" connect_account and never repeat, print, or log it.",
|
|
89
|
-
"3. Call list_faces and list_voices, let the user pick a face and a voice,",
|
|
90
|
-
" then call create_persona with name, avatarUrl, voiceId,",
|
|
91
|
-
" language \"en-US\" (English only for now) and niche. Remember the personaId.",
|
|
92
|
-
"4. Call get_token_balance first. Then write the script as segments: hook",
|
|
93
|
-
" first, CTA last, 60–200 words total, spoken English only, no links,",
|
|
94
|
-
" hashtags, markdown, emoji, or stage directions. Call validate_script",
|
|
95
|
-
" and fix any named error until it passes — validate before any token is",
|
|
96
|
-
" spent.",
|
|
97
|
-
"5. Before generating, tell the user the video IS published as a",
|
|
98
|
-
" real post, and confirm the providers/accounts and the mode (scheduled|asap)",
|
|
99
|
-
" with the user. Warning: Bluesky video publishing is",
|
|
100
|
-
" currently being fixed (issue #327); Bluesky is optional and can be",
|
|
101
|
-
" skipped.",
|
|
102
|
-
"6. Call generate_persona_video once with that personaId, the validated",
|
|
103
|
-
" segments unchanged, title [VIDEO_TITLE], language \"en\", the confirmed",
|
|
104
|
-
" providers with their account IDs from list_social_accounts, and the",
|
|
105
|
-
" confirmed mode (scheduled needs startAt [ISO_DATETIME, 3h-30d ahead] +",
|
|
106
|
-
" times [HH:MM] in timezone [TIMEZONE]; asap needs no startAt/times).",
|
|
107
|
-
" Then call get_video_task_progress until done and share the",
|
|
108
|
-
" get_video_status URL.",
|
|
109
|
-
].join("\n"),
|
|
33
|
+
prompt: FULL_SETUP_PROMPT,
|
|
110
34
|
},
|
|
111
35
|
];
|
|
112
36
|
export function registerPrompts(server) {
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,wEAAwE;AACxE,kDAAkD;AAClD,0EAA0E;AAC1E,yEAAyE;AACzE,wEAAwE;AACxE,kCAAkC;AAClC,iBAAiB;AAGjB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAS3F,MAAM,CAAC,MAAM,WAAW,GAAgB;IACtC;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE;YACX,6FAA6F;SAC9F,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,MAAM,EAAE,iBAAiB;KAC1B;IACD;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,0BAA0B;QACjC,WAAW,EAAE;YACX,qDAAqD;SACtD,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,MAAM,EAAE,iBAAiB;KAC1B;IACD;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,2BAA2B;QAClC,WAAW,EAAE;YACX,gHAAgH;SACjH,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,MAAM,EAAE,iBAAiB;KAC1B;CACF,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE;YACjC,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YACd,QAAQ,EAAE,CAAC;oBACT,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;iBAC/C,CAAC;SACH,CAAC,CAAC,CAAC;IACN,CAAC;AACH,CAAC"}
|
|
@@ -31,16 +31,16 @@ export declare const GeneratePersonaVideoShape: {
|
|
|
31
31
|
}>>;
|
|
32
32
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
33
33
|
}, "strict", z.ZodTypeAny, {
|
|
34
|
-
text: string;
|
|
35
34
|
kind: "hook" | "body" | "cta";
|
|
35
|
+
text: string;
|
|
36
36
|
media?: {
|
|
37
37
|
mediaId?: string | undefined;
|
|
38
38
|
url?: string | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
terms?: string[] | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
text: string;
|
|
43
42
|
kind: "hook" | "body" | "cta";
|
|
43
|
+
text: string;
|
|
44
44
|
media?: {
|
|
45
45
|
mediaId?: string | undefined;
|
|
46
46
|
url?: string | undefined;
|
|
@@ -114,16 +114,16 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
114
114
|
}>>;
|
|
115
115
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
116
116
|
}, "strict", z.ZodTypeAny, {
|
|
117
|
-
text: string;
|
|
118
117
|
kind: "hook" | "body" | "cta";
|
|
118
|
+
text: string;
|
|
119
119
|
media?: {
|
|
120
120
|
mediaId?: string | undefined;
|
|
121
121
|
url?: string | undefined;
|
|
122
122
|
} | undefined;
|
|
123
123
|
terms?: string[] | undefined;
|
|
124
124
|
}, {
|
|
125
|
-
text: string;
|
|
126
125
|
kind: "hook" | "body" | "cta";
|
|
126
|
+
text: string;
|
|
127
127
|
media?: {
|
|
128
128
|
mediaId?: string | undefined;
|
|
129
129
|
url?: string | undefined;
|
|
@@ -184,8 +184,8 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
184
184
|
title: string;
|
|
185
185
|
providers: ("youtube" | "instagram" | "bluesky" | "linkedin")[];
|
|
186
186
|
segments: {
|
|
187
|
-
text: string;
|
|
188
187
|
kind: "hook" | "body" | "cta";
|
|
188
|
+
text: string;
|
|
189
189
|
media?: {
|
|
190
190
|
mediaId?: string | undefined;
|
|
191
191
|
url?: string | undefined;
|
|
@@ -219,8 +219,8 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
219
219
|
title: string;
|
|
220
220
|
providers: ("youtube" | "instagram" | "bluesky" | "linkedin")[];
|
|
221
221
|
segments: {
|
|
222
|
-
text: string;
|
|
223
222
|
kind: "hook" | "body" | "cta";
|
|
223
|
+
text: string;
|
|
224
224
|
media?: {
|
|
225
225
|
mediaId?: string | undefined;
|
|
226
226
|
url?: string | undefined;
|
|
@@ -268,16 +268,16 @@ export declare const ValidateScriptShape: {
|
|
|
268
268
|
}>>;
|
|
269
269
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
270
270
|
}, "strict", z.ZodTypeAny, {
|
|
271
|
-
text: string;
|
|
272
271
|
kind: "hook" | "body" | "cta";
|
|
272
|
+
text: string;
|
|
273
273
|
media?: {
|
|
274
274
|
mediaId?: string | undefined;
|
|
275
275
|
url?: string | undefined;
|
|
276
276
|
} | undefined;
|
|
277
277
|
terms?: string[] | undefined;
|
|
278
278
|
}, {
|
|
279
|
-
text: string;
|
|
280
279
|
kind: "hook" | "body" | "cta";
|
|
280
|
+
text: string;
|
|
281
281
|
media?: {
|
|
282
282
|
mediaId?: string | undefined;
|
|
283
283
|
url?: string | undefined;
|
|
@@ -301,16 +301,16 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
301
301
|
}>>;
|
|
302
302
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
303
303
|
}, "strict", z.ZodTypeAny, {
|
|
304
|
-
text: string;
|
|
305
304
|
kind: "hook" | "body" | "cta";
|
|
305
|
+
text: string;
|
|
306
306
|
media?: {
|
|
307
307
|
mediaId?: string | undefined;
|
|
308
308
|
url?: string | undefined;
|
|
309
309
|
} | undefined;
|
|
310
310
|
terms?: string[] | undefined;
|
|
311
311
|
}, {
|
|
312
|
-
text: string;
|
|
313
312
|
kind: "hook" | "body" | "cta";
|
|
313
|
+
text: string;
|
|
314
314
|
media?: {
|
|
315
315
|
mediaId?: string | undefined;
|
|
316
316
|
url?: string | undefined;
|
|
@@ -319,8 +319,8 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
319
319
|
}>, "many">;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
segments: {
|
|
322
|
-
text: string;
|
|
323
322
|
kind: "hook" | "body" | "cta";
|
|
323
|
+
text: string;
|
|
324
324
|
media?: {
|
|
325
325
|
mediaId?: string | undefined;
|
|
326
326
|
url?: string | undefined;
|
|
@@ -329,8 +329,8 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
329
329
|
}[];
|
|
330
330
|
}, {
|
|
331
331
|
segments: {
|
|
332
|
-
text: string;
|
|
333
332
|
kind: "hook" | "body" | "cta";
|
|
333
|
+
text: string;
|
|
334
334
|
media?: {
|
|
335
335
|
mediaId?: string | undefined;
|
|
336
336
|
url?: string | undefined;
|
|
@@ -8,3 +8,27 @@ type ValidateScriptArgs = z.infer<typeof ValidateScriptSchema>;
|
|
|
8
8
|
export declare function handleValidateScript(client: PostEngineerClient, args: ValidateScriptArgs): Promise<McpToolResponse>;
|
|
9
9
|
export declare function handleGeneratePersonaVideo(client: PostEngineerClient, args: GeneratePersonaVideoArgs): Promise<McpToolResponse>;
|
|
10
10
|
export declare const ValidateScriptDescription = "Validate a segments script mechanically, without spending tokens: hook first, CTA last, exactly one of each, no placeholders/links/markdown/emoji/stage directions, hook terminal punctuation, word limits (total 60-200, body at least 30, CTA 5-20, hook 15-40 words before TTS). 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.";
|
|
11
|
+
export declare const ScoreDraftShape: {
|
|
12
|
+
draft: z.ZodString;
|
|
13
|
+
network: z.ZodOptional<z.ZodEnum<["linkedin", "youtube", "instagram", "bluesky"]>>;
|
|
14
|
+
personaId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
15
|
+
kind: z.ZodOptional<z.ZodEnum<["post", "script"]>>;
|
|
16
|
+
};
|
|
17
|
+
export declare const ScoreDraftSchema: z.ZodObject<{
|
|
18
|
+
draft: z.ZodString;
|
|
19
|
+
network: z.ZodOptional<z.ZodEnum<["linkedin", "youtube", "instagram", "bluesky"]>>;
|
|
20
|
+
personaId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
21
|
+
kind: z.ZodOptional<z.ZodEnum<["post", "script"]>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
draft: string;
|
|
24
|
+
personaId?: string | undefined;
|
|
25
|
+
network?: "youtube" | "instagram" | "bluesky" | "linkedin" | undefined;
|
|
26
|
+
kind?: "post" | "script" | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
draft: string;
|
|
29
|
+
personaId?: string | undefined;
|
|
30
|
+
network?: "youtube" | "instagram" | "bluesky" | "linkedin" | undefined;
|
|
31
|
+
kind?: "post" | "script" | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
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): it fails only on an empty draft or the network's own ceiling where this repo has evidence for it (LinkedIn 3000 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, CTA last): hashtags are not scored and publishCheck is null.";
|
|
34
|
+
export declare function handleScoreDraft(client: PostEngineerClient, args: z.infer<typeof ScoreDraftSchema>): Promise<McpToolResponse>;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
// Singular MCP-first tools: generate_persona_video and validate_script.
|
|
2
|
+
// The batch tool was removed in Phase 4: one call
|
|
3
|
+
// is one video, with a title and a complete segments script.
|
|
4
|
+
// Validation runs mechanically before the client call, so a rejected script
|
|
5
|
+
// never reaches the web route and never debits tokens. validate_script
|
|
6
|
+
// then calls POST /api/videos/validate-script, which re-runs the same
|
|
7
|
+
// mechanical validation server-side without debiting tokens, scheduling,
|
|
8
|
+
// or calling the engine or Modal. Measured hook duration is a documented
|
|
9
|
+
// Phase 1 gap: no hook-only TTS endpoint exists yet, so validate_script
|
|
10
|
+
// reports the 8-12s window and the hook word count and states that the
|
|
11
|
+
// measured duration is pending that endpoint — it does not invent a
|
|
12
|
+
// duration and does not call Modal.
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
import { scoreDraft } from './client-posts.js';
|
|
1
15
|
import { getErrorMessage } from './errors.js';
|
|
2
16
|
import { sanitizeEngineError } from './tools.js';
|
|
3
17
|
import { HOOK_MAX_SECONDS, HOOK_MIN_SECONDS, countWords, joinSegments, validateSegments, } from './script-segments.js';
|
|
@@ -140,4 +154,50 @@ function narrowScheduledVideos(result) {
|
|
|
140
154
|
// registered the same way and maps to POST
|
|
141
155
|
// /api/videos/generate-and-schedule.
|
|
142
156
|
export const ValidateScriptDescription = 'Validate a segments script mechanically, without spending tokens: hook first, CTA last, exactly one of each, no placeholders/links/markdown/emoji/stage directions, hook terminal punctuation, word limits (total 60-200, body at least 30, CTA 5-20, hook 15-40 words before TTS). 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.';
|
|
157
|
+
//---------------
|
|
158
|
+
// score_draft — mechanical draft scoring, no tokens spent.
|
|
159
|
+
//
|
|
160
|
+
// The shape mirrors the web route's body (same names, same caps); the
|
|
161
|
+
// handler does no local pre-check beyond the schema because every signal
|
|
162
|
+
// needs the server-side baseline (the caller's own stored post metrics).
|
|
163
|
+
// The route really is called through the client, so the parity graph
|
|
164
|
+
// maps score_draft to POST /api/videos/score-draft.
|
|
165
|
+
//---------------
|
|
166
|
+
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;
|
|
167
|
+
export const ScoreDraftShape = {
|
|
168
|
+
draft: z
|
|
169
|
+
.string()
|
|
170
|
+
.min(1, 'draft is required')
|
|
171
|
+
.max(10000, 'draft must be at most 10000 characters')
|
|
172
|
+
.describe('The text to score: a post body, or with kind "script" the video segments joined by newlines, hook first, CTA last.'),
|
|
173
|
+
network: z
|
|
174
|
+
.enum(['linkedin', 'youtube', 'instagram', 'bluesky'])
|
|
175
|
+
.optional()
|
|
176
|
+
.describe('Network the draft is for; the publish check uses that network\'s rules. Defaults to linkedin.'),
|
|
177
|
+
personaId: z
|
|
178
|
+
.string()
|
|
179
|
+
.refine((value) => SCORE_DRAFT_UUID.test(value), { message: 'personaId must be a uuid' })
|
|
180
|
+
.optional()
|
|
181
|
+
.describe('Optional persona id: score against that persona\'s measured posts only.'),
|
|
182
|
+
kind: z.enum(['post', 'script']).optional().describe('What the text is. Defaults to post.'),
|
|
183
|
+
};
|
|
184
|
+
export const ScoreDraftSchema = z.object(ScoreDraftShape);
|
|
185
|
+
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): it fails only on an empty draft or the network\'s own ceiling where this repo has evidence for it (LinkedIn 3000 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, CTA last): hashtags are not scored and publishCheck is null.';
|
|
186
|
+
export async function handleScoreDraft(client, args) {
|
|
187
|
+
try {
|
|
188
|
+
const result = await scoreDraft(client, {
|
|
189
|
+
draft: args.draft,
|
|
190
|
+
network: args.network,
|
|
191
|
+
personaId: args.personaId,
|
|
192
|
+
kind: args.kind,
|
|
193
|
+
});
|
|
194
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
// Same sanitizing error path as handleValidateScript: a thrown
|
|
198
|
+
// endpoint error must never carry credential-shaped material to the
|
|
199
|
+
// agent.
|
|
200
|
+
return errorResponse(`Error scoring draft: ${sanitizeEngineError(getErrorMessage(error))}`);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
143
203
|
//# sourceMappingURL=tools-single-video.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-single-video.js","sourceRoot":"","sources":["../src/tools-single-video.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools-single-video.js","sourceRoot":"","sources":["../src/tools-single-video.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,kDAAkD;AAClD,6DAA6D;AAC7D,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,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAKzF,SAAS,aAAa,CAAC,OAAe;IACpC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,OA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