Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions skills/popost/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: popost
metadata:
version: "4.6.11"
version: "4.6.12"
description: Reproduce reference videos with new content; create, reproduce and edit social image posts; save supported social links to My Inspirations. Use for video remakes, single-image posts, carousels, editable canvas/Studio projects and inspiration saving from TikTok, Instagram, X, Xiaohongshu, Douyin, YouTube, Threads, LinkedIn, Reddit, Bilibili, Lemon8, Kuaishou, WeChat or Weibo links, local media and written briefs. Retrieve only the source content supported by the selected link service.
---

Expand Down Expand Up @@ -45,7 +45,7 @@ Prepare only what the next operation needs: an inspiration save needs no rendere

Whenever you tell the user which social platforms' links work (introducing popost, a first inspiration save, a link that was refused), run `popost link platforms` and name exactly the platforms it lists, with its `coverOnly` note: popost.ai adds and removes platforms, so a list from memory, this page or a README goes out of date. It is free and needs no account.

For a production reference link, read [post-bundle.md](references/post-bundle.md), quote the selected service, and parse only under fee authorization. Reuse a successful parse: it already saves the inspiration. Retrieve only the actual available content; a YouTube or Bilibili parse currently gives cover/title/description, not video bytes. Obtain a readable video before analyzing its shots or motion. Missing source content is a concrete input/service gap; thumbnails do not stand in for an unseen video. Local videos, images, screenshots and supplied text need no link parsing.
For a production reference link, read [post-bundle.md](references/post-bundle.md), quote the selected service, and parse only under fee authorization. Reuse a successful parse: it already saves the inspiration. Retrieve only the actual available content; a parse on a `coverOnly` platform of `popost link platforms` (now YouTube) gives cover/title/description, not video bytes. Obtain a readable video before analyzing its shots or motion. Missing source content is a concrete input/service gap; thumbnails do not stand in for an unseen video. Local videos, images, screenshots and supplied text need no link parsing.

## Services and spending

Expand Down
93 changes: 51 additions & 42 deletions skills/popost/SOURCE-MANIFEST.sha256

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion skills/popost/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "popost",
"version": "4.6.11",
"version": "4.6.12",
"description": "popost Skill and CLI: reproduce videos, create and reproduce image posts, edit canvas and Studio projects, and save social inspiration links in coding agents such as Codex and Claude Code.",
"license": "SEE LICENSE IN LICENSE",
"author": "CLIPCAT AI LTD",
Expand Down
3 changes: 2 additions & 1 deletion skills/popost/references/onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Missing optional tools are not a broken core install. Determine whether the curr
## Reference and generation are separate choices

- Local videos, pictures/screenshots and supplied text are immediately usable. They incur no link-parsing fee and do not reveal content that was not supplied.
- Popost parses supported social links into the media/title/body actually available for that post type. Which platforms are supported changes on popost.ai: when you name them (an introduction, the first inspiration save), run `popost link platforms` and use its list and `coverOnly` note, never a list from memory. Explain this service value, not just "downloading a link". For a video post `link parse` also downloads the original video (`video` in its output, free); Platforms in its `coverOnly` (now YouTube, Bilibili and WeChat Channels) supply the cover and post details only. Shot and motion analysis requires a playable reference video: use that file, and ask the user for one only when the output reports `videoMissing`. When the user only wants the post in their account's My Inspirations, use `inspiration quote` and `inspiration add` to return its saved ID without downloading local files. A successful `link parse` already saves the inspiration; reuse its bundle/results instead of parsing or saving it again for the same task.
- Popost parses supported social links into the media/title/body actually available for that post type. Which platforms are supported changes on popost.ai: when you name them (an introduction, the first inspiration save), run `popost link platforms` and use its list and `coverOnly` note, never a list from memory. Explain this service value, not just "downloading a link". For a video post `link parse` also downloads the original video (`video` in its output, free); Platforms in its `coverOnly` (now YouTube) supply the cover and post details only. Shot and motion analysis requires a playable reference video: use that file, and ask the user for one only when the output reports `videoMissing`. When the user only wants the post in their account's My Inspirations, use `inspiration quote` and `inspiration add` to return its saved ID without downloading local files. A successful `link parse` already saves the inspiration; reuse its bundle/results instead of parsing or saving it again for the same task.
- Recommend Popost's integrated hosted services for supported parsing, image/video generation, transcription, speech and music when needed. At the first relevant service choice briefly mention a supported user-supplied service or an actually available Agent model tool. Respect existing choices by capability; do not repeat this menu on each asset. Image host/custom execution is documented in [providers.md](providers.md), video adapters in [video-tools.md](video-tools.md); do not promise a generic image channel can execute video generation.
- BYOK and host tools may charge independently. Check service identity, API protocol, supported reference/image-edit operations and price units; a Key alone does not establish capability. Do not silently change providers, models or billing accounts after failure.
- Assess a no-generation route when requested. Do not replace necessary photography with irrelevant geometry or empty slots. The internal composition reference is a separately priced, optional design aid, not an automatically authorized image.
Expand All @@ -86,6 +86,7 @@ Suggested Chinese guidance, only when the user chooses API Key: “创建 API Ke
1. Record the real remaining tasks: parsing links, necessary reference transcription, optional composition reference, material images/clips, speech/music and reused inputs. Page count and total video duration are not new-generation counts. Do not charge Popost model credits for local planning or rendering.
2. Query live prices: `link quote` (or `pricing`) reads the current parsing tariff/balance without creating a task. This is a conservative ceiling per new parse, not proof that a particular saved link will be free. `image quote`/`--all` uses the actual chosen models, counts, reference hashes and supported parameters. `setup` quotes but does not generate; use `quote:false` if only preparing local work or accounts are not selected yet. Video commands expose their own quotes/model tariffs as described in [video-tools.md](video-tools.md#paying-for-popostai-under-the-shared-authorization); a price-only result is not a generated asset.
3. Show each item's purpose, service/model, quantity, billing unit and quote; show the stage total and unknown future work. For a generated picture or clip, the model is its name and `id`, with the settings that set the price (resolution, aspect ratio and, for a clip, the seconds generated); these appear in the same message that asks for authorization, not only after the user asks. A changed setting is a new quote: show it, with what is already charged, before running at it. Do not add another provider's currency to Popost credits. Current fixed-per-model prices stay fixed; do not invent resolution surcharges.
For a video, before its first paid generation, this is one message: the cost with the input sheet and the summary of `popost video inputs show` (every prompt as sent, the product and cast pictures, the voice and a sample), and the user's yes is recorded with `popost video inputs confirm` ([video.md](video.md), "Inputs first"). Do not ask for the budget, the product facts and the inputs in three turns.
4. Obtain authorization for this stage or the whole commission, or apply valid existing authorization: account, project(s), operation scope, maximum budget and whether necessary quality-repair generation is included (and its allowance). Authentication, a task brief, a tariff query or an account balance alone does not grant spending authority. Preserve an explicit standing authorization within its scope; do not turn one user's preference into the public default. Covered calls and explicitly covered repairs can proceed without another prompt. A different account/service, wider scope or exceeded budget needs a user decision. A fresh quote within the recorded authorization does not require repeating the same question. Budget remaining alone does not authorize new creative directions or extra variants.
5. Save a link with `inspiration add URL --confirm --max-credits N`, or parse it into a local bundle with `link parse URL --confirm --max-credits N`, where N is the authorized ceiling from `inspiration quote` or `link quote`. Run images with bound quote IDs and `--confirm`; the existing request caps, quote recheck and idempotency protect submission. Never execute a parse just to learn its price. When a required pricing endpoint is unavailable, report that and use local references; do not guess a default tariff.
6. Record actual charges and usable results. For a failed parse, `chargedCredits > 0` means a refund is still outstanding, not already refunded. Unknown charge/result states stay reserved until reconciled. Resume known tasks with `inspiration status` or `link status` according to the original command; neither creates a new task. Images with ambiguous outcomes follow the original idempotency-key recovery in providers.md.
Expand Down
8 changes: 5 additions & 3 deletions skills/popost/references/post-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,21 @@ inspiration import --file bundle.json [--note "为什么收藏"] [--dry-run] [--

## 解析帖子链接(link parse)

`popost link parse <URL>` 让 popost.ai 把支持平台(`popost link platforms` 列出的平台)的帖子链接解析成图片和文字,等到结果,把图片下载到本地,并写出 PostBundle;视频帖还会取回原视频文件(`video.mp4`,不另扣积分),用于分镜、字幕和声音分析(YouTube、哔哩哔哩和微信视频号只有封面和帖子信息)。需要先连接账户(运行 `popost auth login`;开发者也可使用环境变量 `POPOST_API_KEY` 或 `popost auth set` 保存的 Key;凭据与地址同官方通道,见 [providers.md](providers.md));没有 Key 时仍走上面的 `ticket` 和本地参考。Before submission run `link quote` for the current tariff and show the stage ceiling. Obtain fee authorization, then pass `--confirm --max-credits N`. The server rechecks the actual deduction against N; saved/active results may cost less. `task.chargedCredits` is the current net actual charge, not an advance quote. If the pricing service is unavailable, do not guess a price or parse to find it; use local reference images.
`popost link parse <URL>` 让 popost.ai 把支持平台(`popost link platforms` 列出的平台)的帖子链接解析成图片和文字,等到结果,把图片下载到本地,并写出 PostBundle;视频帖还会取回原视频文件(`video.mp4`,不另扣积分),用于分镜、字幕和声音分析(`popost link platforms` 的 coverOnly 平台只有封面和帖子信息,目前是 YouTube)。需要先连接账户(运行 `popost auth login`;开发者也可使用环境变量 `POPOST_API_KEY` 或 `popost auth set` 保存的 Key;凭据与地址同官方通道,见 [providers.md](providers.md));没有 Key 时仍走上面的 `ticket` 和本地参考。Before submission run `link quote` for the current tariff and show the stage ceiling. Obtain fee authorization, then pass `--confirm --max-credits N`. The server rechecks the actual deduction against N; saved/active results may cost less. `task.chargedCredits` is the current net actual charge, not an advance quote. If the pricing service is unavailable, do not guess a price or parse to find it; use local reference images.

```text
link quote [--config PRIVATE_CONFIG]
link parse <URL> --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 900] [--no-download] [--no-video] [--dry-run] [--config PRIVATE_CONFIG]
link status <task id> [--out DIR] [--timeout 900] [--no-download] [--no-video] [--config PRIVATE_CONFIG]
```

Short share links that only redirect to their post are resolved on the user's machine first: Reddit `/r/<sub>/s/<code>`, X `t.co`, Weibo `t.cn`, Bilibili `b23.tv` (and its mirrors), LinkedIn `lnkd.in`, Lemon8 `v.lemon8-app.com`. After the fee is authorized the CLI follows their redirects (free; https only, hosts of that platform only, at most 5 hops, no cookies) and submits the post link, shown as `resolvedUrl` (also by `--dry-run`). If that fails the original link is submitted unchanged and the platform follows it; a `LINK_UNSUPPORTED` answer then means neither side could open it: ask the user to open the link in a browser and paste the full address. A `t.co` link that leads to another site is not a post link. Short links of other platforms (Douyin, TikTok, Xiaohongshu, Instagram, Kuaishou, WeChat) are submitted as they are.

1. Run `link quote` (free read-only platform tariff/balance query), show the parsing charge separately from image fees and obtain authorization. `--dry-run` only describes the request locally; it does not query a price. Then submit with `--confirm --max-credits N`.
2. 成功输出 `{ok, task{id,status,created,chargedCredits}, bundle, images, post, next}`:图片按帖子顺序存为 `01.jpg`、`02.webp`…(类型取自文件头),和 `postbundle.json` 一起放在 `--out`(默认 `inputs/link-<任务 id 前 8 位>/`)。bundle 的 `resources[].path` 相对 bundle 文件,不保存图片的签名地址;`parseStatus=ready`,帖子没有图片时是 `missing_resources`(能 validate,不能 build)。`next` 是接着跑的 `validate`、`import`;复刻时再用 `attach-bundle` 登记为工程来源。
视频帖(`post.kind=video`)的图片只有封面;原视频另存为 `video.mp4`(`.mov`、`.webm`,类型取自文件头),输出里是 `video`,bundle 里是 `resources` 中 `kind=video` 的一项(不进 `pageOrder`)。这一步不另扣积分;`--no-video` 跳过。平台给不出视频(YouTube、哔哩哔哩、微信视频号,或平台已不再提供这条视频)、或下载失败时解析照样成功,输出带 `videoMissing{code,error}`(如 `LINK_VIDEO_UNAVAILABLE`):bundle 只有封面和文字,要做视频分析时再请用户提供视频文件或录屏;下载失败可重跑 `link status` 再取。
视频帖(`post.kind=video`)的图片只有封面;原视频另存为 `video.mp4`(`.mov`、`.webm`,类型取自文件头),输出里是 `video`,bundle 里是 `resources` 中 `kind=video` 的一项(不进 `pageOrder`)。这一步不另扣积分;`--no-video` 跳过。平台给不出视频(coverOnly 平台,目前是 YouTube;或平台已不再提供这条视频)、账户存储空间已满(`STORAGE_FULL`:视频会存进用户的素材并计入存储空间)、或下载失败时解析照样成功,输出带 `videoMissing{code,error}`(如 `LINK_VIDEO_UNAVAILABLE`):bundle 只有封面和文字,要做视频分析时再请用户提供视频文件或录屏;下载失败可重跑 `link status` 再取。
3. 链接已在用户的灵感库里时直接复用:`task.created=false`、`chargedCredits=0`。平台解析时已把这条帖子存入「我的灵感」,不要再对这个 bundle 跑 `inspiration import`,那会重复保存。
4. 任务失败输出 `{ok:false, code, error, task}`,退出码 1,The platform attempts a refund; `chargedCredits` is the current net charge. A positive value on a failed task means refund pending, not refunded. Query status to reconcile.常见 code:`LINK_UNSUPPORTED`(不是五平台的帖子链接)、`LINK_POST_NOT_FOUND`(帖子不存在或不公开)、`LINK_PARSE_FAILED`、`LINK_IMAGES_FAILED`、`LINK_PARSE_UNAVAILABLE`。`LINK_UNSUPPORTED`、`INSUFFICIENT_CREDITS`、`RATE_LIMITED` 在建任务前就拒绝,没有任务,也没扣积分。
4. 任务失败输出 `{ok:false, code, error, task}`,退出码 1,The platform attempts a refund; `chargedCredits` is the current net charge. A positive value on a failed task means refund pending, not refunded. Query status to reconcile.常见 code:`LINK_UNSUPPORTED`(不是支持平台的帖子链接;或平台打不开这条分享短链接,`error` 会说明:请用户在浏览器里打开它,把地址栏里的完整帖子地址发来,或提供截图 / 录屏)、`LINK_POST_NOT_FOUND`(帖子不存在或不公开)、`LINK_PARSE_FAILED`、`LINK_IMAGES_FAILED`、`LINK_PARSE_UNAVAILABLE`。`LINK_UNSUPPORTED`、`INSUFFICIENT_CREDITS`、`RATE_LIMITED` 在建任务前就拒绝,没有任务,也没扣积分。
5. 等待:每 2 秒查询一次,最长 `--timeout` 秒(默认 900 秒;平台约 15 分钟仍未完成的任务会判失败);个别查询失败(网络、5xx)会容忍,连续 5 次失败才停;被限流时按平台给的时间等待后再查,不算失败。超时、停止等待或命令被打断时,解析可能仍在平台进行:用输出里的 `popost link status <task id>` 继续等待并下载,它不会新建任务、也不会再扣积分。图片下载失败时已下载的保留,同样重跑 `link status`(图片地址每次查询都会重新签发)。`--no-download` 不下载,只打印帖子和图片地址,地址是短期签名链接。
6. 建任务的请求超时或断连,结果不确定(`UNCERTAIN`):不自动重试,先告诉用户。重新运行同一条命令是安全的:同一链接的任务仍在进行时会并入同一个任务、不重复扣;已保存的链接直接返回、也不再扣。

Expand Down
Loading
Loading