post-engineer-mcp 1.52.571 → 1.52.579
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 +51 -5
- package/dist/account-shapes.d.ts +1 -0
- package/dist/account-shapes.js +16 -0
- package/dist/account-shapes.js.map +1 -1
- package/dist/analytics.d.ts +3 -1
- package/dist/analytics.js +12 -5
- package/dist/analytics.js.map +1 -1
- package/dist/client-publish-uploaded.d.ts +8 -0
- package/dist/client-publish-uploaded.js +111 -0
- package/dist/client-publish-uploaded.js.map +1 -0
- package/dist/client-types.d.ts +60 -2
- package/dist/client.d.ts +1 -0
- package/dist/client.js +6 -24
- package/dist/client.js.map +1 -1
- package/dist/cloned-voice-tools.d.ts +18 -1
- package/dist/cloned-voice-tools.js +35 -8
- package/dist/cloned-voice-tools.js.map +1 -1
- package/dist/direct-publish-form.d.ts +3 -2
- package/dist/direct-publish-form.js +16 -0
- package/dist/direct-publish-form.js.map +1 -1
- package/dist/direct-publish-narrowing.d.ts +3 -0
- package/dist/direct-publish-narrowing.js +31 -0
- package/dist/direct-publish-narrowing.js.map +1 -0
- package/dist/http-rate-limit.d.ts +5 -0
- package/dist/http-rate-limit.js +47 -0
- package/dist/http-rate-limit.js.map +1 -1
- package/dist/http-transport.d.ts +7 -2
- package/dist/http-transport.js +36 -7
- package/dist/http-transport.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +76 -59
- package/dist/index.js.map +1 -1
- package/dist/local-file-tools.d.ts +3 -0
- package/dist/local-file-tools.js +15 -0
- package/dist/local-file-tools.js.map +1 -0
- package/dist/music-mood-field.d.ts +2 -0
- package/dist/music-mood-field.js +33 -0
- package/dist/music-mood-field.js.map +1 -0
- package/dist/publish-direct-shape.d.ts +2 -0
- package/dist/publish-direct-shape.js +5 -0
- package/dist/publish-direct-shape.js.map +1 -1
- package/dist/publish-uploaded-shape.d.ts +73 -0
- package/dist/publish-uploaded-shape.js +45 -0
- package/dist/publish-uploaded-shape.js.map +1 -0
- package/dist/publish-uploaded-tools.d.ts +3 -0
- package/dist/publish-uploaded-tools.js +10 -0
- package/dist/publish-uploaded-tools.js.map +1 -0
- package/dist/remote-shapes.d.ts +103 -0
- package/dist/remote-shapes.js +59 -0
- package/dist/remote-shapes.js.map +1 -0
- package/dist/require-publishing-accounts.d.ts +1 -0
- package/dist/require-publishing-accounts.js +15 -0
- package/dist/require-publishing-accounts.js.map +1 -0
- package/dist/schedule-shapes.js +2 -6
- package/dist/schedule-shapes.js.map +1 -1
- package/dist/script-segments.d.ts +4 -8
- package/dist/script-segments.js +17 -34
- package/dist/script-segments.js.map +1 -1
- package/dist/single-video-shape.d.ts +5 -10
- package/dist/single-video-shape.js +3 -3
- package/dist/single-video-shape.js.map +1 -1
- package/dist/tool-annotations.d.ts +4 -0
- package/dist/tool-annotations.js +19 -0
- package/dist/tool-annotations.js.map +1 -0
- package/dist/tools-batch.d.ts +3 -6
- package/dist/tools-experiments.d.ts +2 -4
- package/dist/tools-experiments.js +2 -2
- package/dist/tools-experiments.js.map +1 -1
- package/dist/tools-prompts.js +3 -2
- package/dist/tools-prompts.js.map +1 -1
- package/dist/tools-publish-uploaded.d.ts +10 -0
- package/dist/tools-publish-uploaded.js +73 -0
- package/dist/tools-publish-uploaded.js.map +1 -0
- package/dist/tools-publishing-accounts.js +9 -8
- package/dist/tools-publishing-accounts.js.map +1 -1
- package/dist/tools-single-video.d.ts +2 -2
- package/dist/tools-single-video.js +6 -7
- package/dist/tools-single-video.js.map +1 -1
- package/dist/tools.d.ts +2 -0
- package/dist/tools.js +3 -2
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,49 @@ credits is billed by Modal.
|
|
|
29
29
|
- Node.js 20.10+
|
|
30
30
|
- API key generated at https://post-engineer.com/recipes
|
|
31
31
|
|
|
32
|
+
## Remote (HTTP) surface
|
|
33
|
+
|
|
34
|
+
With `--http-transport` the same server speaks Streamable HTTP, but it
|
|
35
|
+
never reads files from the host it runs on: `upload_media`,
|
|
36
|
+
`add_persona_image` and `publish_video_direct` are not registered, and
|
|
37
|
+
`create_persona`, `update_persona` and `create_cloned_voice` accept only
|
|
38
|
+
public URLs (`avatarUrl` / `audioUrl`) — no `avatarPath`, `audioPath` or
|
|
39
|
+
library image files. Local paths stay available on the default stdio
|
|
40
|
+
server, where the disk is the agent's own machine. Signed upload
|
|
41
|
+
replaces them on the remote surface: `create_video_upload` mints a
|
|
42
|
+
short-lived signed URL, the caller PUTs the video bytes to it directly,
|
|
43
|
+
`complete_video_upload` verifies the stored bytes, and
|
|
44
|
+
`publish_uploaded_video` publishes by id (single-use).
|
|
45
|
+
|
|
46
|
+
### Hosted endpoint and ChatGPT
|
|
47
|
+
|
|
48
|
+
The hosted remote endpoint is `https://post-engineer.com/mcp`
|
|
49
|
+
(Streamable HTTP, OAuth Bearer with the `mcp:tools` scope; discovery at
|
|
50
|
+
`https://post-engineer.com/.well-known/oauth-protected-resource`). Point
|
|
51
|
+
a remote MCP client — including ChatGPT, which requires a public HTTPS
|
|
52
|
+
endpoint, OAuth, and tool annotations — at that URL and sign in; no
|
|
53
|
+
local install or API key is needed. Every tool carries MCP annotations
|
|
54
|
+
(`readOnlyHint` for `list_*`/`get_*`/`check_*`/`validate_script`/
|
|
55
|
+
`score_draft`, `destructiveHint` for `delete_*`/publish/disconnect/
|
|
56
|
+
cancel tools, `openWorldHint` throughout) so annotation-aware clients
|
|
57
|
+
can auto-approve reads and confirm writes. The stdio package above
|
|
58
|
+
remains fully supported for local agents.
|
|
59
|
+
|
|
60
|
+
### Deployment (remote HTTP service)
|
|
61
|
+
|
|
62
|
+
The repo ships the deploy unit but does not deploy it:
|
|
63
|
+
`apps/mcp/docker-compose.yml` (service `mcp`, container
|
|
64
|
+
`post-engineer-mcp`) publishes only `127.0.0.1:8081` on the host behind
|
|
65
|
+
the Caddy edge proxy, requires `MCP_OAUTH_ISSUER` and `MCP_RESOURCE`
|
|
66
|
+
at startup (compose refuses to start without them, and the server
|
|
67
|
+
refuses a non-loopback bind without OAuth), and health-checks
|
|
68
|
+
`GET /health`. `apps/mcp/Dockerfile` builds the image from the
|
|
69
|
+
monorepo root. The public route is `https://post-engineer.com/mcp`;
|
|
70
|
+
see the Caddy example in
|
|
71
|
+
[docs/SELF_HOSTING.md](../../docs/SELF_HOSTING.md). Run it with
|
|
72
|
+
`MCP_OAUTH_ISSUER=<issuer> MCP_RESOURCE=https://post-engineer.com/mcp docker compose up -d --build`
|
|
73
|
+
from `apps/mcp/`.
|
|
74
|
+
|
|
32
75
|
### Telemetry
|
|
33
76
|
|
|
34
77
|
Each request to the post-engineer API includes the calling tool's name and
|
|
@@ -133,12 +176,12 @@ The `Authorization: Bearer` API key header is sent to the configured base URL, s
|
|
|
133
176
|
- `get_token_balance`: get the prepaid token wallet balance. Check before generating videos, which cost tokens.
|
|
134
177
|
- `list_prompts`: list the recipe prompts this server can run — one entry per recipe with `slug`, `title`, and `description` (news, place spotlight, subject spotlight, GitHub PRs, full setup), no prompt text (cheap discovery). Call this first when the request is a topic instead of a ready script; then fetch the matching recipe with `get_prompt`.
|
|
135
178
|
- `get_prompt`: get one recipe prompt by its `slug` (from `list_prompts`) as ready-to-run instructions covering the full validated flow (script limits, media checks, the generation call), ending with a line asking the agent to pass the slug as `recipe` on `generate_persona_video`. Unknown slugs return an error naming the valid slugs.
|
|
136
|
-
- `validate_script`: validate a segments script mechanically, without spending tokens — hook first,
|
|
137
|
-
- `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, threads, facebook, 3speak): 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, 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,
|
|
138
|
-
- `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, threads, facebook, 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, 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,
|
|
179
|
+
- `validate_script`: validate a segments script mechanically, without spending tokens — hook first, then content takes in order, exactly one hook, word limits (total 60-200, content at least 30, 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. It also checks that every segment's `media` is a list with about one image per ~3s of speech (a 60s video needs about 20 images, at most 30); optional `fullLipsync` leaves media optional there (at most 6 images in total).
|
|
180
|
+
- `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, threads, facebook, 3speak): 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, 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.
|
|
181
|
+
- `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, threads, facebook, 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, 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.
|
|
139
182
|
- `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 — in the images modes an expired mediaId fails the task at render; full lip sync only warns. Returns only the `mediaId`. Each item in a segment's `media` list may also carry an `overlay` (`title`, optional `subtitle` and `badge`, at most 60, 80 and 30 characters): an info card with the real place name, address and price, painted at the top of the photo. The photo is shown over the video for the seconds its segment is spoken, with the subtitles on top: full frame on faceless videos (the whole photo over a blurred copy of itself, so it never leaves black bars), and as a framed panel (about 38% of the frame, 30 px from the bottom edge) where a persona's face is on screen, so the face still shows behind it. That means the hook of a hook-only lip-sync video and every segment of a full lip-sync video get the panel; once a hook-only video switches to the agent's images the photo goes full frame. In the react layout the persona fills the top half, so the panel sits at the bottom. A card that cannot be drawn is skipped with a task warning while the photo still ships.
|
|
140
183
|
- `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 `wrong_aspect`. No fake User-Agent or Referer is sent to bypass hotlink blocks, and private addresses are never fetched.
|
|
141
|
-
- `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
|
|
184
|
+
- `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 content takes in order; 60-200 words total, content at least 30, hook 15-40 words ending with terminal punctuation). A CTA is just a content take, placed anywhere — 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.videoType: 'faceless'` and `options.voiceId` (or `options.audioUrl`), plus `videoAspect` / `language` / `niche` as needed. `options.voiceId` takes a house name or label from `list_voices` (`phonon_zoey`, `Zoey`) or a clone id/key from `list_voices`; never type a provider prefix — an unknown voice is rejected before generation (no tokens spent). 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`). Optional `recipe`: the recipe slug the script was written with — sent only as the `X-MCP-Recipe` telemetry header, never in the request body. Wait for the slot's `taskId` with `wait_for_video_tasks` — it blocks until the video completes or fails and reports the outcome. The video shows only the images you send on the segments. A segment's `media` is a list of `{ mediaId }` or `{ url }` items. Every segment needs about one image per ~3s of speech (about 8 words; a 60s video needs about 20 images, split across the segments, at most 30), checked before any token is spent; each image is shown full frame with a slow zoom for its share of the segment. If an image fails at render time the task fails with `images_do_not_cover_audio` — naming the skipped photos and why each one died — and the tokens are refunded, so send only photos that will survive (right aspect, big enough, fresh mediaId). Full lip-sync videos are the exception: the face is on screen throughout, so a failed photo there is only a warning. The images are third-party content you supply: use only images you have the rights to.
|
|
142
185
|
- `generate_persona_video_batch`: generate and schedule a BATCH of 2-12 persona videos in one call, cheaper than one by one: for every 6 videos with the persona face, the cheapest one is free. Each video takes the same fields as `generate_persona_video` (no `idempotencyKey`, `experiment` or `recipe`). The videos are created one after the other through the same route (each charged its normal price and dispatched at once, so the batch renders back to back in one warm GPU container), then the server credits back the free ones (`POST /api/videos/batch-discount`). Faceless videos can be in the batch but pay full price, do not count toward the 6 and are never free. All videos must be created within 10 minutes of the first, and a video belongs to one batch only. `batchKey` names the batch: calling again with the same `batchKey` and the same videos in the same order replays the created videos (no second charge), creates the missing ones and retries the discount. Cancelling a video of a discounted batch (`cancel_schedule`) withholds, from that video's refund, the discount the batch no longer earns. After creation, wait for every `taskId` with `wait_for_video_tasks`.
|
|
143
186
|
- `get_video_status`: check generation status and get the final video URL. When the video belongs to a scheduled slot the body also carries `postUrl`, the link to its post detail page — send it in chat so the user can watch or download the video.
|
|
144
187
|
- `get_video_task_progress`: poll one video task for machine-readable progress: returns `{task_id, state, progress, stage, error, postUrl}`. `error` is the engine failure reason when `state` is `-1` (failed), `null` otherwise. `postUrl` is the link to the post detail page when the video belongs to a scheduled slot (`null` otherwise) — send it in chat so the user can watch or download the video. Use per-video after `generate_persona_video`; prefer this over `get_video_status` when only progress matters. Prefer `wait_for_video_tasks` when you need the final outcome instead of progress snapshots.
|
|
@@ -149,6 +192,9 @@ The `Authorization: Bearer` API key header is sent to the configured base URL, s
|
|
|
149
192
|
- `update_persona_image`: update a persona library image tag, description, or primary flag.
|
|
150
193
|
- `remove_persona_image`: remove an image from a persona image library.
|
|
151
194
|
- `publish_video_direct`: publish a ready-made video file directly to social accounts — no generation, no schedule (local .mp4/.mov, max 2GB; YouTube needs title, description, tags, privacyStatus; Rumble needs title and description; Pinterest needs a boardId from `list_pinterest_boards`; others need caption).
|
|
195
|
+
- `create_video_upload`: mint a short-lived signed upload for one video (MP4 or MOV, max 2GB) — returns an uploadId and a signedUrl to PUT the bytes to directly; bound to your account, expires in 15 minutes.
|
|
196
|
+
- `complete_video_upload`: verify a signed video upload after the PUT (the server checks the real bytes and size) and mark it ready to publish; safe to retry.
|
|
197
|
+
- `publish_uploaded_video`: publish a completed signed-upload video by uploadId — no generation, no schedule, no local path; single-use (same provider field rules as `publish_video_direct`).
|
|
152
198
|
- `list_social_accounts`: list connected social accounts with the account IDs needed for scheduling.
|
|
153
199
|
- `list_pinterest_boards`: list the boards of a connected Pinterest account (id + name) — the id is the boardId for Pinterest publishing.
|
|
154
200
|
- `get_persona_publishing_accounts`: list a persona's default publishing accounts per provider. `generate_persona_video` falls back to these when no account IDs are passed; explicit IDs always win.
|
|
@@ -167,7 +213,7 @@ The `Authorization: Bearer` API key header is sent to the configured base URL, s
|
|
|
167
213
|
- `get_youtube_retention_curve`: the audience retention curve of one of your own published YouTube videos (`account` + `video` from a youtube `get_post_metrics` row), read live from YouTube Analytics: `points` of `ratio` (0.01–1.0 of the video), `audienceWatchRatio`, `relativeRetentionPerformance`. Only your own channel is queried. Shorts have no per-second curve in YouTube Studio; long-form videos do.
|
|
168
214
|
- `create_experiment`: create a paired A/B test of ONE script variable (the hook): a name, an optional `personaId`, `targetPairs` (3–20, default 6) and exactly two variants, each with a slug `variantId` (e.g. `hook-aggressive`, never "A"/"B"), a `name` and a style `description` you follow when writing its hooks. Nothing is charged.
|
|
169
215
|
- `list_experiments`: your experiments with their two variants and target pairs.
|
|
170
|
-
- `add_experiment_pair`: create both videos of one pair: same `title
|
|
216
|
+
- `add_experiment_pair`: create both videos of one pair: same `title` and content (`segments` without the hook) and one hook per variant in `hooks`, plus the usual delivery fields of `generate_persona_video`. Each video is a normal charged video; the second starts `spacingHours` (default 24) after the first and the order alternates per pair. The server rejects the second video of a pair (before charging; a concurrent race is caught after the insert and refunded) unless it matches the first in: the same providers and accounts, the same title, voice (id and audio URL), faceless and faceless material, full lip-sync, video aspect and layout, paragraph number, face quality, language, niche and CTA text, and identical content segments, with a different hook. The pinned options.imageId is not stored, so it is not compared: pass the same imageId (or none) to both videos yourself; calling again with the same arguments replays what was already created; if a video's dispatch failed (its slot is `failed`, tokens refunded) the call reports an error and that pair number stays taken (a single-video schedule's only slot cannot be removed with `delete_slot`), so continue with the next free pair number.
|
|
171
217
|
- `get_experiment_results`: the experiment's videos by pair and, per provider, each pair's views/likes/comments/average view duration, wins per variant, a sign-test `pValue` and a `label`: `pending`, `indicative` (not proven yet) or `clear` (every target pair decided and p < 0.05). `window` is `24h`, `7d` (default) or `28d`.
|
|
172
218
|
- `list_token_transactions`: list the token ledger — every credit and debit (purchases, generation spends, refunds), newest first.
|
|
173
219
|
- `get_persona_delete_preview`: preview what deleting a persona would remove (counts + per-video download links). Read-only.
|
package/dist/account-shapes.d.ts
CHANGED
package/dist/account-shapes.js
CHANGED
|
@@ -12,4 +12,20 @@ export const DisconnectAccountShape = {
|
|
|
12
12
|
.describe('The account ID on that provider (the channelId / igUserId / providerAccountId / did field from list_social_accounts).'),
|
|
13
13
|
};
|
|
14
14
|
export const DisconnectAccountSchema = z.object(DisconnectAccountShape);
|
|
15
|
+
//---------------
|
|
16
|
+
// createPersonaAccountsField — the bound publishing accounts a new
|
|
17
|
+
// persona is born with (issue #572). Lives here (not in tools.ts) so
|
|
18
|
+
// tools.ts stays under the file-size ratchet: a persona is born bound
|
|
19
|
+
// to at least one publishing account — videos publish only to bound
|
|
20
|
+
// accounts, and a persona with no bound account cannot exist. The
|
|
21
|
+
// server enforces the same rule; the refine fails the call here first,
|
|
22
|
+
// before any file is read.
|
|
23
|
+
//---------------
|
|
24
|
+
export const createPersonaAccountsField = z
|
|
25
|
+
.record(z.string(), z.array(z.string().min(1)))
|
|
26
|
+
.refine((accounts) => Object.values(accounts).some((ids) => ids.length > 0), {
|
|
27
|
+
message: 'Select at least one publishing account for this persona.',
|
|
28
|
+
})
|
|
29
|
+
.describe('Publishing accounts this persona is bound to, per provider, e.g. { youtube: ["UC..."], bluesky: ["did:plc:..."], \'3speak\': ["alice"] }. ' +
|
|
30
|
+
'At least one account is required. Account IDs come from list_social_accounts (channelId / igUserId / providerAccountId / did).');
|
|
15
31
|
//# sourceMappingURL=account-shapes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-shapes.js","sourceRoot":"","sources":["../src/account-shapes.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,qCAAqC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,E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C,CAAC;KAC9C,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE;IAC3E,OAAO,EAAE,0DAA0D;CACpE,CAAC;KACD,QAAQ,CACP,4IAA4I;IAC1I,gIAAgI,CACnI,CAAC"}
|
package/dist/analytics.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ export declare const MCP_TOOL_HEADER = "X-MCP-Tool";
|
|
|
2
2
|
export declare const MCP_CALL_ID_HEADER = "X-MCP-Call-Id";
|
|
3
3
|
export declare const MCP_VERSION_HEADER = "X-MCP-Version";
|
|
4
4
|
export declare function withTelemetryHeaders<TResult>(headers: () => Record<string, string>, run: () => Promise<TResult>): Promise<TResult>;
|
|
5
|
-
export declare function mcpTelemetryHeaders(
|
|
5
|
+
export declare function mcpTelemetryHeaders(options?: {
|
|
6
|
+
includeVersion?: boolean;
|
|
7
|
+
}): Record<string, string>;
|
|
6
8
|
export declare function withTracking<TArgs extends Record<string, unknown>, TResult>(toolName: string, handler: (args: TArgs) => Promise<TResult>): (args: TArgs) => Promise<TResult>;
|
package/dist/analytics.js
CHANGED
|
@@ -32,12 +32,19 @@ export function withTelemetryHeaders(headers, run) {
|
|
|
32
32
|
return extraHeadersContext.run(headers, run);
|
|
33
33
|
}
|
|
34
34
|
//---------------
|
|
35
|
-
// Headers for the current API request: the server version
|
|
36
|
-
// tool name and call id when the request runs inside a tracked tool
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
// Headers for the current API request: the server version by default, plus
|
|
36
|
+
// the tool name and call id when the request runs inside a tracked tool
|
|
37
|
+
// call. The remote (HTTP) client suppresses the version: its package
|
|
38
|
+
// version is MAJOR.MINOR.PATCH (e.g. 1.52.0) while the web gate requires
|
|
39
|
+
// the generated MAJOR.MINOR.PR form, so sending it would 426 the remote's
|
|
40
|
+
// own calls — omitting the header makes the gate pass the request as a
|
|
41
|
+
// non-MCP caller (see client-types.ts suppressVersionHeader).
|
|
42
|
+
//---------------
|
|
43
|
+
export function mcpTelemetryHeaders(options) {
|
|
39
44
|
const extras = extraHeadersContext.getStore();
|
|
40
|
-
const headers = { ...(extras === undefined ? {} : extras())
|
|
45
|
+
const headers = { ...(extras === undefined ? {} : extras()) };
|
|
46
|
+
if (options?.includeVersion !== false)
|
|
47
|
+
headers[MCP_VERSION_HEADER] = pkg.version;
|
|
41
48
|
const context = toolCallContext.getStore();
|
|
42
49
|
if (context !== undefined) {
|
|
43
50
|
headers[MCP_TOOL_HEADER] = context.toolName;
|
package/dist/analytics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,iBAAiB;AACjB,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,2EAA2E;AAC3E,sEAAsE;AACtE,yEAAyE;AACzE,EAAE;AACF,uEAAuE;AACvE,yEAAyE;AACzE,yEAAyE;AACzE,yEAAyE;AACzE,qDAAqD;AACrD,iBAAiB;AAEjB,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,MAAM,MAAM,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;AAErF,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAOlD,MAAM,eAAe,GAAG,IAAI,iBAAiB,EAAmB,CAAC;AAEjE,iBAAiB;AACjB,yEAAyE;AACzE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
1
|
+
import type { PostEngineerClient } from './client.js';
|
|
2
|
+
import type { CompletedVideoUpload, DirectPublishResult, MintedVideoUpload, PublishUploadedVideoInput } from './client-types.js';
|
|
3
|
+
export declare function createVideoUpload(client: PostEngineerClient, input: {
|
|
4
|
+
contentType: string;
|
|
5
|
+
sizeBytes: number;
|
|
6
|
+
}): Promise<MintedVideoUpload>;
|
|
7
|
+
export declare function completeVideoUpload(client: PostEngineerClient, uploadId: string): Promise<CompletedVideoUpload>;
|
|
8
|
+
export declare function publishUploadedVideo(client: PostEngineerClient, input: PublishUploadedVideoInput): Promise<DirectPublishResult>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { requireDirectPublishFields } from './direct-publish-form.js';
|
|
2
|
+
import { isRecord, narrowDirectPublishAccountResult } from './direct-publish-narrowing.js';
|
|
3
|
+
import { MAX_UPLOAD_VIDEO_BYTES } from './limits.js';
|
|
4
|
+
//---------------
|
|
5
|
+
// Signed-upload publish client calls (issue #561). Standalone functions
|
|
6
|
+
// (not client methods) because client.ts is grandfathered over the
|
|
7
|
+
// 500-line cap and may not grow — the same pattern as
|
|
8
|
+
// client-user-media.ts. Flow: createVideoUpload mints a signed URL,
|
|
9
|
+
// the caller PUTs the video bytes to it directly (never through this
|
|
10
|
+
// server), completeVideoUpload asks the web app to verify the stored
|
|
11
|
+
// bytes, and publishUploadedVideo publishes by id. JSON only: no local
|
|
12
|
+
// path ever crosses this surface.
|
|
13
|
+
//---------------
|
|
14
|
+
const UPLOAD_TIMEOUT_MS = 120_000;
|
|
15
|
+
const VIDEO_CONTENT_TYPES = ['video/mp4', 'video/quicktime'];
|
|
16
|
+
export async function createVideoUpload(client, input) {
|
|
17
|
+
if (!VIDEO_CONTENT_TYPES.includes(input.contentType)) {
|
|
18
|
+
throw new Error('contentType must be video/mp4 or video/quicktime.');
|
|
19
|
+
}
|
|
20
|
+
if (!Number.isInteger(input.sizeBytes) || input.sizeBytes < 1 || input.sizeBytes > MAX_UPLOAD_VIDEO_BYTES) {
|
|
21
|
+
throw new Error('sizeBytes must be an integer between 1 and the 2GB video limit.');
|
|
22
|
+
}
|
|
23
|
+
const result = await client.request('/api/videos/upload-url', {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
headers: client.getHeaders(),
|
|
26
|
+
body: JSON.stringify({ contentType: input.contentType, sizeBytes: input.sizeBytes }),
|
|
27
|
+
}, 'create video upload');
|
|
28
|
+
if (!isRecord(result) ||
|
|
29
|
+
typeof result.uploadId !== 'string' ||
|
|
30
|
+
typeof result.signedUrl !== 'string' ||
|
|
31
|
+
typeof result.token !== 'string' ||
|
|
32
|
+
typeof result.expiresAt !== 'string' ||
|
|
33
|
+
typeof result.maxBytes !== 'number') {
|
|
34
|
+
throw new Error('Malformed signed-upload response from the API.');
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
uploadId: result.uploadId,
|
|
38
|
+
signedUrl: result.signedUrl,
|
|
39
|
+
token: result.token,
|
|
40
|
+
expiresAt: result.expiresAt,
|
|
41
|
+
maxBytes: result.maxBytes,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export async function completeVideoUpload(client, uploadId) {
|
|
45
|
+
if (uploadId.trim().length === 0) {
|
|
46
|
+
throw new Error('uploadId is required.');
|
|
47
|
+
}
|
|
48
|
+
const result = await client.request(`/api/videos/uploads/${encodeURIComponent(uploadId)}/complete`, { method: 'POST', headers: client.getHeaders(), body: JSON.stringify({}) }, 'complete video upload', UPLOAD_TIMEOUT_MS);
|
|
49
|
+
if (!isRecord(result) ||
|
|
50
|
+
typeof result.uploadId !== 'string' ||
|
|
51
|
+
result.status !== 'ready' ||
|
|
52
|
+
typeof result.contentType !== 'string' ||
|
|
53
|
+
typeof result.sizeBytes !== 'number') {
|
|
54
|
+
throw new Error('Malformed complete-upload response from the API.');
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
uploadId: result.uploadId,
|
|
58
|
+
status: 'ready',
|
|
59
|
+
contentType: result.contentType,
|
|
60
|
+
sizeBytes: result.sizeBytes,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
// A 200 with a malformed body is an error, never a silent success: the
|
|
64
|
+
// agent must not report "published" on a body it can't read.
|
|
65
|
+
function narrowDirectPublishResult(value) {
|
|
66
|
+
if (!isRecord(value) || !Array.isArray(value.results)) {
|
|
67
|
+
throw new Error('Malformed direct-publish response from the API.');
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
success: value.success === true,
|
|
71
|
+
provider: typeof value.provider === 'string' ? value.provider : 'unknown',
|
|
72
|
+
results: value.results.map(narrowDirectPublishAccountResult),
|
|
73
|
+
successCount: typeof value.successCount === 'number' ? value.successCount : 0,
|
|
74
|
+
logId: typeof value.logId === 'string' ? value.logId : '',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export async function publishUploadedVideo(client, input) {
|
|
78
|
+
// Mirrors the server-side 400s before any fetch: provider-specific
|
|
79
|
+
// required fields fail fast here, exactly like publishVideoDirect.
|
|
80
|
+
const validProviders = ['youtube', 'instagram', 'linkedin', 'bluesky', 'threads', 'facebook', 'pinterest', 'fanvue', '3speak', 'rumble'];
|
|
81
|
+
if (!validProviders.includes(input.provider)) {
|
|
82
|
+
throw new Error(`provider must be one of: ${validProviders.join(', ')}.`);
|
|
83
|
+
}
|
|
84
|
+
if (input.uploadId.trim().length === 0) {
|
|
85
|
+
throw new Error('uploadId is required.');
|
|
86
|
+
}
|
|
87
|
+
if (input.accountIds.length === 0) {
|
|
88
|
+
throw new Error('At least one account ID is required.');
|
|
89
|
+
}
|
|
90
|
+
const fields = requireDirectPublishFields(input);
|
|
91
|
+
const body = {
|
|
92
|
+
uploadId: input.uploadId,
|
|
93
|
+
provider: input.provider,
|
|
94
|
+
accountIds: input.accountIds,
|
|
95
|
+
};
|
|
96
|
+
if (fields.title !== '')
|
|
97
|
+
body.title = fields.title;
|
|
98
|
+
if (fields.description !== '')
|
|
99
|
+
body.description = fields.description;
|
|
100
|
+
if (fields.caption !== '')
|
|
101
|
+
body.caption = fields.caption;
|
|
102
|
+
if (fields.boardId !== '')
|
|
103
|
+
body.boardId = fields.boardId;
|
|
104
|
+
if (fields.tags.length > 0)
|
|
105
|
+
body.tags = fields.tags;
|
|
106
|
+
if (fields.privacyStatus !== '')
|
|
107
|
+
body.privacyStatus = fields.privacyStatus;
|
|
108
|
+
const result = await client.request('/api/videos/publish-by-id', { method: 'POST', headers: client.getHeaders(), body: JSON.stringify(body) }, 'publish uploaded video', UPLOAD_TIMEOUT_MS);
|
|
109
|
+
return narrowDirectPublishResult(result);
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=client-publish-uploaded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-publish-uploaded.js","sourceRoot":"","sources":["../src/client-publish-uploaded.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,iBAAiB;AACjB,wEAAwE;AACxE,mEAAmE;AACnE,sDAAsD;AACtD,oEAAoE;AACpE,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,kCAAkC;AAClC,iBAAiB;AAEjB,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAClC,MAAM,mBAAmB,GAAG,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AAE7D,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAA0B,EAC1B,KAAiD;IAEjD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,K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AM,CAAC,WAAW,KAAK,EAAE;QAAE,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACrE,IAAI,MAAM,CAAC,OAAO,KAAK,EAAE;QAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IACzD,IAAI,MAAM,CAAC,OAAO,KAAK,EAAE;QAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IACzD,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;QAAE,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IACpD,IAAI,MAAM,CAAC,aAAa,KAAK,EAAE;QAAE,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAE3E,MAAM,MAAM,GAAY,MAAM,MAAM,CAAC,OAAO,CAC1C,2BAA2B,EAC3B,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAC5E,wBAAwB,EACxB,iBAAiB,CAClB,CAAC;IACF,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC"}
|
package/dist/client-types.d.ts
CHANGED
|
@@ -6,6 +6,13 @@ export interface PostEngineerClientOptions {
|
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
/** Clock override used by schedule validation (tests); defaults to the real clock. */
|
|
8
8
|
now?: () => Date;
|
|
9
|
+
/**
|
|
10
|
+
* Suppress the X-MCP-Version header. Only the remote (HTTP) factory sets
|
|
11
|
+
* this: the package version (MAJOR.MINOR.PATCH) never equals the web
|
|
12
|
+
* gate's generated MAJOR.MINOR.PR requirement, so sending it would 426
|
|
13
|
+
* the remote's own calls. Stdio keeps sending it (the default).
|
|
14
|
+
*/
|
|
15
|
+
suppressVersionHeader?: boolean;
|
|
9
16
|
}
|
|
10
17
|
/** One image for a persona's image library, read from a local file. */
|
|
11
18
|
export interface PersonaLibraryImageInput {
|
|
@@ -36,6 +43,12 @@ export interface CreatePersonaInput {
|
|
|
36
43
|
paragraphNumber?: number;
|
|
37
44
|
niche?: string;
|
|
38
45
|
faceQuality?: 'ok' | 'very_good';
|
|
46
|
+
/**
|
|
47
|
+
* Bound publishing accounts per provider (issue #572, required): at
|
|
48
|
+
* least one account, e.g. { youtube: ['UC...'] }. The persona publishes
|
|
49
|
+
* only to bound accounts; a persona with no bound account cannot exist.
|
|
50
|
+
*/
|
|
51
|
+
accounts: Record<string, string[]>;
|
|
39
52
|
/** Up to 10 local images of the same person for the image library. */
|
|
40
53
|
images?: PersonaLibraryImageInput[];
|
|
41
54
|
/** Index into images[] marking the primary library image. */
|
|
@@ -98,9 +111,9 @@ export interface GeneratePersonaVideoInput {
|
|
|
98
111
|
paragraphNumber?: number;
|
|
99
112
|
language?: string;
|
|
100
113
|
niche?: string;
|
|
101
|
-
/** Segments script (MCP first, Phase 1): first hook,
|
|
114
|
+
/** Segments script (MCP first, Phase 1): first hook, then content takes in order. Validated by the web route before any token debit. */
|
|
102
115
|
segments?: Array<{
|
|
103
|
-
kind: 'hook' | '
|
|
116
|
+
kind: 'hook' | 'content';
|
|
104
117
|
text: string;
|
|
105
118
|
media?: Array<{
|
|
106
119
|
mediaId?: string;
|
|
@@ -149,6 +162,49 @@ export interface PublishVideoDirectInput {
|
|
|
149
162
|
caption?: string;
|
|
150
163
|
/** Pinterest only: required. The board the pin goes to (the id from list_pinterest_boards). */
|
|
151
164
|
boardId?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Omitted: a UUID is generated per call. Reuse the same key when retrying
|
|
167
|
+
* a timed-out call so the server replays the original result instead of
|
|
168
|
+
* publishing the video again. Exception: a result with errorCode
|
|
169
|
+
* publish_unknown means the post may already be live but its record was
|
|
170
|
+
* lost — do not retry it, check the provider account first.
|
|
171
|
+
*/
|
|
172
|
+
idempotencyKey?: string;
|
|
173
|
+
}
|
|
174
|
+
/** Input for publishing a signed-upload video by id, without generation. */
|
|
175
|
+
export interface PublishUploadedVideoInput {
|
|
176
|
+
provider: 'youtube' | 'instagram' | 'linkedin' | 'bluesky' | 'threads' | 'facebook' | 'pinterest' | 'fanvue' | '3speak' | 'rumble';
|
|
177
|
+
/** The uploadId of a completed signed upload (create + complete). Single-use. */
|
|
178
|
+
uploadId: string;
|
|
179
|
+
/** Target accounts (same IDs as PublishVideoDirectInput). */
|
|
180
|
+
accountIds: string[];
|
|
181
|
+
/** YouTube, Rumble and Fanvue: required. Pinterest: pin title (optional). */
|
|
182
|
+
title?: string;
|
|
183
|
+
/** YouTube, Rumble and Fanvue: required. Pinterest: pin description (optional; caption is used when omitted). */
|
|
184
|
+
description?: string;
|
|
185
|
+
/** YouTube only: required, at least one tag. */
|
|
186
|
+
tags?: string[];
|
|
187
|
+
/** YouTube only: required. */
|
|
188
|
+
privacyStatus?: 'public' | 'private' | 'unlisted';
|
|
189
|
+
/** Instagram/Bluesky/LinkedIn/Threads/Facebook/3Speak: required. Pinterest: pin description when description is omitted. */
|
|
190
|
+
caption?: string;
|
|
191
|
+
/** Pinterest only: required. The board the pin goes to (the id from list_pinterest_boards). */
|
|
192
|
+
boardId?: string;
|
|
193
|
+
}
|
|
194
|
+
/** A minted signed video upload: PUT the bytes to signedUrl, then complete. */
|
|
195
|
+
export interface MintedVideoUpload {
|
|
196
|
+
uploadId: string;
|
|
197
|
+
signedUrl: string;
|
|
198
|
+
token: string;
|
|
199
|
+
expiresAt: string;
|
|
200
|
+
maxBytes: number;
|
|
201
|
+
}
|
|
202
|
+
/** A completed (verified) signed video upload, ready to publish by id. */
|
|
203
|
+
export interface CompletedVideoUpload {
|
|
204
|
+
uploadId: string;
|
|
205
|
+
status: 'ready';
|
|
206
|
+
contentType: string;
|
|
207
|
+
sizeBytes: number;
|
|
152
208
|
}
|
|
153
209
|
/** One per-account outcome from a direct-publish upload. */
|
|
154
210
|
export interface DirectPublishAccountResult {
|
|
@@ -160,6 +216,8 @@ export interface DirectPublishAccountResult {
|
|
|
160
216
|
/** Ready-made post URL (Pinterest pin URL, Instagram/Threads/Facebook permalink). */
|
|
161
217
|
permalink?: string;
|
|
162
218
|
error?: string;
|
|
219
|
+
/** Stable failure code (e.g. publish_unknown: the post may already be live but its record was lost — do not retry). */
|
|
220
|
+
errorCode?: string;
|
|
163
221
|
}
|
|
164
222
|
/** Narrowed POST /api/upload-content response. */
|
|
165
223
|
export interface DirectPublishResult {
|
package/dist/client.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare class PostEngineerClient {
|
|
|
16
16
|
readonly baseUrl: string;
|
|
17
17
|
private readonly apiKey?;
|
|
18
18
|
private readonly now;
|
|
19
|
+
private readonly suppressVersionHeader;
|
|
19
20
|
constructor(options?: PostEngineerClientOptions);
|
|
20
21
|
getHeaders(includeContentType?: boolean): Record<string, string>;
|
|
21
22
|
request(path: string, init: RequestInit, action: string, timeoutMs?: number): Promise<unknown>;
|
package/dist/client.js
CHANGED
|
@@ -4,6 +4,8 @@ import { DIRECT_PUBLISH_TIMEOUT_MS, MAX_LIBRARY_IMAGE_BYTES, MAX_LIBRARY_IMAGE_M
|
|
|
4
4
|
// Re-exported so existing import sites (`../client.js`) keep working.
|
|
5
5
|
export { MAX_LIBRARY_IMAGE_BYTES, MAX_LIBRARY_IMAGE_MB, MAX_UPLOAD_VIDEO_BYTES, MAX_UPLOAD_VIDEO_GB, VIDEO_LAYOUTS, };
|
|
6
6
|
import { buildDirectPublishForm, requireDirectPublishFields } from './direct-publish-form.js';
|
|
7
|
+
import { isRecord, narrowDirectPublishAccountResult } from './direct-publish-narrowing.js';
|
|
8
|
+
import { requirePublishingAccounts } from './require-publishing-accounts.js';
|
|
7
9
|
import { readFile, stat } from 'node:fs/promises';
|
|
8
10
|
import { requireTitle } from './require-title.js';
|
|
9
11
|
import { basename, extname } from 'node:path';
|
|
@@ -132,29 +134,6 @@ function resolveBaseUrl(override) {
|
|
|
132
134
|
// `${baseUrl}${path}` never yields `//api/...`.
|
|
133
135
|
return url.origin + url.pathname.replace(/\/+$/, '');
|
|
134
136
|
}
|
|
135
|
-
function isRecord(value) {
|
|
136
|
-
return typeof value === 'object' && value !== null;
|
|
137
|
-
}
|
|
138
|
-
function narrowDirectPublishAccountResult(value) {
|
|
139
|
-
if (!isRecord(value) || typeof value.accountId !== 'string' || typeof value.success !== 'boolean') {
|
|
140
|
-
throw new Error('Malformed direct-publish account result from the API.');
|
|
141
|
-
}
|
|
142
|
-
const result = {
|
|
143
|
-
accountId: value.accountId,
|
|
144
|
-
success: value.success,
|
|
145
|
-
};
|
|
146
|
-
if (typeof value.videoId === 'string')
|
|
147
|
-
result.videoId = value.videoId;
|
|
148
|
-
if (typeof value.videoUrl === 'string')
|
|
149
|
-
result.videoUrl = value.videoUrl;
|
|
150
|
-
if (typeof value.postId === 'string')
|
|
151
|
-
result.postId = value.postId;
|
|
152
|
-
if (typeof value.permalink === 'string')
|
|
153
|
-
result.permalink = value.permalink;
|
|
154
|
-
if (typeof value.error === 'string')
|
|
155
|
-
result.error = value.error;
|
|
156
|
-
return result;
|
|
157
|
-
}
|
|
158
137
|
// A 200 with a malformed body is an error, never a silent success: the agent
|
|
159
138
|
// must not report "published" on a body it can't read.
|
|
160
139
|
function narrowDirectPublishResult(value) {
|
|
@@ -177,15 +156,17 @@ export class PostEngineerClient {
|
|
|
177
156
|
baseUrl;
|
|
178
157
|
apiKey;
|
|
179
158
|
now;
|
|
159
|
+
suppressVersionHeader;
|
|
180
160
|
constructor(options = {}) {
|
|
181
161
|
this.baseUrl = resolveBaseUrl(options.baseUrl ?? process.env.POST_ENGINEER_API_URL);
|
|
182
162
|
this.apiKey = options.apiKey;
|
|
163
|
+
this.suppressVersionHeader = options.suppressVersionHeader ?? false;
|
|
183
164
|
this.now = options.now ?? (() => new Date());
|
|
184
165
|
}
|
|
185
166
|
getHeaders(includeContentType = true) {
|
|
186
167
|
// Telemetry headers name the calling MCP tool; the web API records
|
|
187
168
|
// mcp_tool_called from them (see analytics.ts).
|
|
188
|
-
const headers = { ...mcpTelemetryHeaders(), Accept: 'application/json' };
|
|
169
|
+
const headers = { ...mcpTelemetryHeaders({ includeVersion: !this.suppressVersionHeader }), Accept: 'application/json' };
|
|
189
170
|
if (includeContentType)
|
|
190
171
|
headers['Content-Type'] = 'application/json';
|
|
191
172
|
if (this.apiKey) {
|
|
@@ -227,6 +208,7 @@ export class PostEngineerClient {
|
|
|
227
208
|
}
|
|
228
209
|
async createPersona(input) {
|
|
229
210
|
const formData = new FormData();
|
|
211
|
+
formData.set('publishingAccounts', JSON.stringify(requirePublishingAccounts(input.accounts)));
|
|
230
212
|
// Every persona has a face: exactly one of avatarUrl or avatarPath (the
|
|
231
213
|
// `photo` file), checked before any other file is read.
|
|
232
214
|
await appendPersonaAvatar(formData, input, true);
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,GACd,MAAM,aAAa,CAAC;AAErB,sEAAsE;AACtE,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,GACd,CAAC;AAYF,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAc9F,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C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