Skip to content

popost 4.6.12 - #27

Merged
a2888409 merged 12 commits into
mainfrom
develop
Dec 3, 2026
Merged

a2888409 merged 12 commits into
mainfrom
develop

Conversation

@a2888409

@a2888409 a2888409 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor
  • Link parsing: share links that popost.ai would otherwise follow on its servers (Reddit /s/, X t.co, Weibo t.cn, Bilibili b23.tv and mirrors, LinkedIn lnkd.in, Lemon8) are resolved on the user's machine first; the server follows them only when that fails.
  • Link parsing docs: only the coverOnly platforms of popost link platforms (now YouTube) come without the video file; a saved post's video now counts in the account's storage, so a full account is reported as videoMissing (STORAGE_FULL).
  • Video: before the first paid generation the user sees and confirms the inputs (popost video inputs show|voice|translate|confirm): cost, input sheet, voice and summary.
  • Video: the sentences the program adds to a prompt follow the project's language; a model may ask for English prompts (promptLanguage).
  • Video: a crop of the user's product picture may be the picture that is sent, and every picture is checked for a face.

Checks: npm run check locally: 2,609 passed; 1 failed: make-colour.test.ts (Chrome + ffmpeg colour levels). It fails the same way on this machine before this change and is skipped on CI.

🤖 Generated with Claude Code

Clipcat-ai and others added 12 commits December 3, 2026 00:24
…that is sent, and every picture is looked at for a face

popost video product crop records who looked at a product picture and found no
person's face in it (--no-face-confirmed agent|user), and with --box makes a crop
of the user's picture the picture that is sent; the original stays beside it with
its hash. A picture nobody looked at is an error of the sheet, so nothing that
shows the product is priced, uploaded or made before that. Replaces the rule
that only the user's unchanged file may be a product picture.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ubmitting

A share link (/r/<sub>/s/<code>, /u/<name>/s/<code>) carries no post id and only
redirects to the post; the platform's servers can be refused that redirect while
the user's machine gets it. link parse and inspiration add now follow it locally
(https, reddit.com hosts only, at most 5 hops of 10 s, no cookies) and submit the
/comments/<id> link, printed as resolvedUrl (also by --dry-run). When the walk
fails the original link is submitted unchanged and the platform's answer applies.
Nothing is charged for resolving, and nothing is requested before the fee is
authorized.

Behaviour change for the server side: the JSON of link parse / inspiration add
gains resolvedUrl; --dry-run of a share link makes the redirect request.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…he user's machine

Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…oject's language

A project stores the language its user writes in (production/language.json,
--lang at product init or inputs show). For a model that takes prompts in the
user's language (promptLanguage absent or "user" in the model list) the
product block, the cast, anchor, speech and sound sentences are Chinese in a
zh project and English for every other language; for a model that says
promptLanguage "en" they stay English. A project without a stored language
gets the same strings as before, byte for byte: prompts, receipts and request
keys do not change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
popost video inputs show gathers, without paying, what a paid run would send:
every prompt as materials composes it, the product picture as sent, the cast's
pictures, each clip's references, the voice with its lines, a free sample and
free price quotes; it writes the input sheet picture and a summary for one
message to the user. inputs confirm records the answer with a hash of each item
shown, and confirms the product's inferred facts with it. materials, generate
(for a file of a project) and the paid voice commands stop with exit code 3 and
confirm.reason "inputs" until then; a changed request, picture or voice line
is asked about again, alone. --unattended records a batch nobody watches.
For a model that is sent English, inputs translate stores the user's-language
version shown first, bound to the sent text.

Behaviour change for hosts: a paid materials run now needs the confirmation
(or --unattended). Open API calls are unchanged; clips are priced with the
existing free quote.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…t sheet and summary

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ine first

`link parse` / `inspiration add` already followed Reddit share links locally
and submitted the post link they lead to. The same now applies to every
short link the platform resolves by following redirects: X `t.co`, Weibo
`t.cn` (and mapp.api.weibo.cn/fx pages), Bilibili `b23.tv` and its mirrors,
LinkedIn `lnkd.in` and Lemon8 `v.lemon8-app.com`.

- Each platform has its own host allowlist and post-link pattern; the
  submitted link has no tracking query. https only, at most 5 hops of 10 s,
  manual redirects, a User-Agent, no cookies.
- A hop may also be an HTML page that stands for a redirect (meta refresh,
  `location.replace("…")` / `location = "…"`, a link in <noscript>); only the
  first 64 KB are read. t.co serves this form to browsers.
- Unchanged: nothing is requested before the fee is authorized, the result
  is printed as `resolvedUrl` (also by --dry-run), and any failure submits
  the original link so the platform follows it.
- PLATFORM_HOSTS: t.co is an X host, the b23.tv mirrors are Bilibili hosts.

Server side: popost.ai recognises t.co links and follows the same hop forms.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…at a paid generation is given

Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…owed on the user's machine first

Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…he video file

popost.ai now stores a Bilibili video (Bilibili's own 720p MP4 with sound) and a WeChat Channels
video with the post, so the Skill no longer names them as cover-only: every place points to the
coverOnly list of `popost link platforms` instead. A saved post's video now counts in the
account's storage, so a full account is one more reason for videoMissing (STORAGE_FULL).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
@a2888409
a2888409 merged commit d90e50a into main Dec 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants