popost 4.6.10 → 4.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +2 -0
  2. package/SKILL.md +5 -3
  3. package/assets/canvas/assets/{dist-C40jmU-w.js → dist-DAI3U0Jz.js} +1 -1
  4. package/assets/canvas/assets/{es-aF1SvUMY.js → es-3zEBH4X5.js} +1 -1
  5. package/assets/canvas/assets/index-Ce4sDSi9.css +1 -0
  6. package/assets/canvas/assets/{index-CxUXSxcb.js → index-Dc4qgNYJ.js} +4 -4
  7. package/assets/canvas/assets/{jszip.min-Bf2BQwaC.js → jszip.min-BwYI3Gs3.js} +1 -1
  8. package/assets/canvas/build-info.json +6 -6
  9. package/assets/canvas/index.html +2 -2
  10. package/dist/cli.js +18401 -14673
  11. package/dist/index.js +19448 -15784
  12. package/dist/types/cloud/account.d.ts +14 -0
  13. package/dist/types/cloud/deliver.d.ts +29 -0
  14. package/dist/types/cloud/entitlement.d.ts +55 -0
  15. package/dist/types/cloud/paid-gate.d.ts +159 -0
  16. package/dist/types/cloud/service.d.ts +68 -23
  17. package/dist/types/commands/update.d.ts +2 -0
  18. package/dist/types/device-login.d.ts +35 -0
  19. package/dist/types/editor/canvas-state.d.ts +1 -1
  20. package/dist/types/editor/handoff.d.ts +10 -3
  21. package/dist/types/editor/http-types.d.ts +4 -1
  22. package/dist/types/editor/routes-cloud.d.ts +4 -3
  23. package/dist/types/install/record.d.ts +15 -0
  24. package/dist/types/providers/api-errors.d.ts +2 -0
  25. package/dist/types/providers/api.d.ts +1 -1
  26. package/dist/types/providers/link-resolve.d.ts +29 -0
  27. package/dist/types/providers/link.d.ts +2 -0
  28. package/dist/types/runtime.d.ts +38 -0
  29. package/dist/types/update/auto.d.ts +14 -0
  30. package/dist/types/update/check.d.ts +47 -0
  31. package/dist/types/update/install-kind.d.ts +27 -0
  32. package/dist/types/update/npm.d.ts +8 -0
  33. package/dist/types/update/perform.d.ts +64 -0
  34. package/dist/types/update/report.d.ts +7 -0
  35. package/dist/types/update/semver.d.ts +17 -0
  36. package/dist/types/update/session.d.ts +19 -0
  37. package/dist/types/update/state.d.ts +91 -0
  38. package/dist/types/update/verify.d.ts +33 -0
  39. package/dist/types/version.d.ts +1 -1
  40. package/dist/types/video/cache/frames.d.ts +85 -0
  41. package/dist/types/video/cache/holds.d.ts +35 -0
  42. package/dist/types/video/cache/project.d.ts +57 -0
  43. package/dist/types/video/commands/clean.d.ts +9 -0
  44. package/dist/types/video/commands/inputs.d.ts +2 -0
  45. package/dist/types/video/commands/materials.d.ts +6 -0
  46. package/dist/types/video/commands/product.d.ts +15 -0
  47. package/dist/types/video/commands/shared.d.ts +0 -5
  48. package/dist/types/video/compile/footage.d.ts +24 -7
  49. package/dist/types/video/compile/index.d.ts +3 -0
  50. package/dist/types/video/generate/cloud-image.d.ts +3 -1
  51. package/dist/types/video/generate/cloud.d.ts +5 -0
  52. package/dist/types/video/generate/dialogue.d.ts +2 -10
  53. package/dist/types/video/generate/index.d.ts +23 -2
  54. package/dist/types/video/inputs/collect.d.ts +104 -0
  55. package/dist/types/video/inputs/record.d.ts +106 -0
  56. package/dist/types/video/inputs/sheet.d.ts +8 -0
  57. package/dist/types/video/inputs/summary.d.ts +72 -0
  58. package/dist/types/video/preview/cloud.d.ts +20 -1
  59. package/dist/types/video/preview/edit/routes.d.ts +17 -11
  60. package/dist/types/video/preview/export-settings.d.ts +1 -2
  61. package/dist/types/video/preview/project.d.ts +3 -0
  62. package/dist/types/video/preview/shell/dom.d.ts +2 -0
  63. package/dist/types/video/preview/shell/studio/cloud.d.ts +6 -1
  64. package/dist/types/video/preview/shell/studio/compare.d.ts +16 -0
  65. package/dist/types/video/preview/shell/studio/copy.d.ts +24 -3
  66. package/dist/types/video/preview/shell/studio/paid.d.ts +23 -0
  67. package/dist/types/video/preview/shell/studio/style.d.ts +2 -2
  68. package/dist/types/video/preview/shell/studio/workspace.d.ts +2 -0
  69. package/dist/types/video/preview/shell-bundle.d.ts +1 -1
  70. package/dist/types/video/product/requests.d.ts +74 -0
  71. package/dist/types/video/product/review.d.ts +74 -0
  72. package/dist/types/video/product/sheet.d.ts +122 -0
  73. package/dist/types/video/project/schema.d.ts +21 -21
  74. package/dist/types/video/prompt-lang.d.ts +16 -0
  75. package/dist/types/video/render/index.d.ts +2 -0
  76. package/dist/types/video/render/session.d.ts +4 -0
  77. package/dist/types/video/replication/contract.d.ts +29 -29
  78. package/dist/types/video/replication/production.d.ts +5 -5
  79. package/dist/types/video/replication/schema.d.ts +2 -2
  80. package/dist/types/video/replication/speech-observed.d.ts +6 -6
  81. package/dist/types/video/sound/modes.d.ts +0 -8
  82. package/package.json +1 -1
  83. package/references/host-editor.md +21 -6
  84. package/references/image-workflow.md +5 -5
  85. package/references/onboarding.md +22 -1
  86. package/references/post-bundle.md +10 -8
  87. package/references/video-editing.md +19 -7
  88. package/references/video-performers.md +4 -2
  89. package/references/video-product.md +196 -0
  90. package/references/video-replication.md +1 -1
  91. package/references/video-step-1-read.md +16 -6
  92. package/references/video-step-3-content.md +15 -7
  93. package/references/video-step-6-voice.md +10 -0
  94. package/references/video-step-7-deliver.md +36 -1
  95. package/references/video-tools.md +61 -7
  96. package/references/video.md +26 -0
  97. package/assets/canvas/assets/index-C5rz5H21.css +0 -1
  98. package/dist/types/cloud/auth-flow.d.ts +0 -30
@@ -14,8 +14,8 @@
14
14
 
15
15
  ```text
16
16
  inspiration quote [--config PRIVATE_CONFIG]
17
- inspiration add <URL> --confirm --max-credits N [--note "为什么收藏"] [--timeout 600] [--dry-run] [--config PRIVATE_CONFIG]
18
- inspiration status <task id> [--timeout 600] [--config PRIVATE_CONFIG]
17
+ inspiration add <URL> --confirm --max-credits N [--note "为什么收藏"] [--timeout 900] [--dry-run] [--config PRIVATE_CONFIG]
18
+ inspiration status <task id> [--timeout 900] [--config PRIVATE_CONFIG]
19
19
  ```
20
20
 
21
21
  `--dry-run` 不联网、不查询价格、不扣费。正式提交需要当前账号的 API Key;服务端按 `maxCredits` 再次检查费用。成功输出 `inspiration{id,platform,title,sourceUrl,imageCount}` 和 `task{created,chargedCredits}`;到 Key 所属账号的「我的灵感」查看。已保存或正在解析的同一链接会复用,实际扣费以 `task.chargedCredits` 为准。若等待超时,用输出中的 `inspiration status <task id>` 查询;它不会新建任务或再次扣费。解析失败时平台尝试退款,失败任务上的正数扣费可能尚在退款中。不要把 `--dry-run` 或本地模拟测试当作真实保存成功。
@@ -36,20 +36,22 @@ inspiration import --file bundle.json [--note "为什么收藏"] [--dry-run] [--
36
36
 
37
37
  ## 解析帖子链接(link parse)
38
38
 
39
- `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.
39
+ `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.
40
40
 
41
41
  ```text
42
42
  link quote [--config PRIVATE_CONFIG]
43
- link parse <URL> --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 600] [--no-download] [--no-video] [--dry-run] [--config PRIVATE_CONFIG]
44
- link status <task id> [--out DIR] [--timeout 600] [--no-download] [--no-video] [--config PRIVATE_CONFIG]
43
+ link parse <URL> --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 900] [--no-download] [--no-video] [--dry-run] [--config PRIVATE_CONFIG]
44
+ link status <task id> [--out DIR] [--timeout 900] [--no-download] [--no-video] [--config PRIVATE_CONFIG]
45
45
  ```
46
46
 
47
+ 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.
48
+
47
49
  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`.
48
50
  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` 登记为工程来源。
49
- 视频帖(`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` 再取。
51
+ 视频帖(`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` 再取。
50
52
  3. 链接已在用户的灵感库里时直接复用:`task.created=false`、`chargedCredits=0`。平台解析时已把这条帖子存入「我的灵感」,不要再对这个 bundle 跑 `inspiration import`,那会重复保存。
51
- 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` 在建任务前就拒绝,没有任务,也没扣积分。
52
- 5. 等待:每 2 秒查询一次,最长 `--timeout` 秒(平台约 10 分钟仍未完成的任务会判失败);个别查询失败(网络、5xx)会容忍,连续 5 次失败才停;被限流时按平台给的时间等待后再查,不算失败。超时、停止等待或命令被打断时,解析可能仍在平台进行:用输出里的 `popost link status <task id>` 继续等待并下载,它不会新建任务、也不会再扣积分。图片下载失败时已下载的保留,同样重跑 `link status`(图片地址每次查询都会重新签发)。`--no-download` 不下载,只打印帖子和图片地址,地址是短期签名链接。
53
+ 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` 在建任务前就拒绝,没有任务,也没扣积分。
54
+ 5. 等待:每 2 秒查询一次,最长 `--timeout` 秒(默认 900 秒;平台约 15 分钟仍未完成的任务会判失败);个别查询失败(网络、5xx)会容忍,连续 5 次失败才停;被限流时按平台给的时间等待后再查,不算失败。超时、停止等待或命令被打断时,解析可能仍在平台进行:用输出里的 `popost link status <task id>` 继续等待并下载,它不会新建任务、也不会再扣积分。图片下载失败时已下载的保留,同样重跑 `link status`(图片地址每次查询都会重新签发)。`--no-download` 不下载,只打印帖子和图片地址,地址是短期签名链接。
53
55
  6. 建任务的请求超时或断连,结果不确定(`UNCERTAIN`):不自动重试,先告诉用户。重新运行同一条命令是安全的:同一链接的任务仍在进行时会并入同一个任务、不重复扣;已保存的链接直接返回、也不再扣。
54
56
 
55
57
  退出码:0 成功;1 平台拒绝、任务失败、结果不确定或等待未完成;2 本地参数或环境问题(缺 Key、链接格式、`--out` 是文件)。
@@ -27,10 +27,14 @@ span. Incoming transitions and ordered caption cues are adjusted when shots chan
27
27
  cross-shot spans retain their intent. Splitting a scene preserves its animation clock through `base.offset` (seconds).
28
28
  Ordinary audio uses `in` in project frames; video-backed audio beds use source frames.
29
29
 
30
- Cloud saving uses the same authorization service as image projects: a configured key syncs at startup and after a three
31
- second quiet period; without a key, Save to cloud opens the project-scoped browser authorization flow. A browser ticket
32
- permits one successful sync. Later anonymous edits stay local until another authorization. Conflicts never overwrite a
33
- newer cloud revision automatically. The controls mirror the image editor: waiting and uploading states, a copyable login link when popups are blocked, retained-credential retries, keyed conflict overwrite and an Open link after saving. Cloud actions first flush focused fields and pending JSON edits; an invalid local draft prevents upload. The editor's `.studio/cloud.json` stores the stable project id, file upload receipts
30
+ Cloud saving works as in image projects: with a connected account (API Key or device connection) the project syncs at
31
+ startup and after a three second quiet period, and `popost video render` syncs it too. Without an account, Save to Cloud
32
+ starts the full account connection (the device authorization of `popost auth login`): the control shows the device code
33
+ and a copyable link while it waits for the approval on popost.ai, then the account is connected, syncing starts and the
34
+ control reads "Cloud sync is on" (hover: to turn it off, go to Connections & API Key on the platform). The account's
35
+ cloud-sync switch lives on that page of popost.ai; while it is off nothing is synced and the control reads "Cloud sync
36
+ is off", a link to the page. Conflicts never overwrite a newer cloud revision automatically. The controls mirror the
37
+ image editor: waiting and uploading states, retries, conflict overwrite and an Open link after saving. Cloud actions first flush focused fields and pending JSON edits; an invalid local draft prevents upload. The editor's `.studio/cloud.json` stores the stable project id, file upload receipts
34
38
  and sync revision; it never stores credentials.
35
39
 
36
40
  Video sync preserves the source document, scene HTML/CSS/scripts and referenced media. Files upload directly to signed
@@ -38,10 +42,18 @@ storage URLs and are reused by content hash. The web asset retains the complete
38
42
  a ZIP; extract it and reopen its folder with the local Studio. This is source-project preservation; it does not regenerate
39
43
  a flattened MP4 for every local text edit.
40
44
 
41
- Export is a compact settings dialog for MP4 or an editable desktop draft. Selecting 4K shows the paid-resolution guidance
42
- and pricing link when the account has no entitlement; the server verifies the entitlement before rendering. Completed
45
+ Export is a compact settings dialog for MP4 or an editable desktop draft. Selecting 4K while it is locked keeps the current resolution and shows a prompt in place (connect the account, or see the plans; both pages are opened by the local service in the system browser, never in the Agent's side panel; see `host-editor.md`, 「付费导出项」), and 4K selects itself once the account is paid. The local service verifies the entitlement again before rendering. Completed
43
46
  exports remain in the project folder.
44
47
 
48
+ ## Narrow windows (an agent's side panel)
49
+
50
+ Below 820 px of width the Studio has no column for the side panel: a rail button (Media, Elements, Subtitles, Code)
51
+ opens its panel as a drawer over the stage, and the close button, Escape, a click outside or the same rail button
52
+ closes it. Below 640 px the properties are a drawer too, opened with the Properties button above the stage once
53
+ something is selected, so a selection never takes the stage away. The top bar, the stage, the transport and the
54
+ timeline stay inside the window from 360 px up; the timeline's tools scroll sideways. At 820 px and wider the layout
55
+ is the three-column one.
56
+
45
57
  ## Reference comparison and account synchronization
46
58
 
47
- Open a remake with `popost video preview P --edit --reference <original-video>`. The Studio preserves this reference inside the project and includes it in cloud synchronization, so reopening locally or in hosted Studio retains the side-by-side comparison. The reference appears on the left and the current editable video on the right, driven by the same timeline. A project without reference footage shows a clear message when Compare is clicked; a cover image is not reference footage. Keep default cloud synchronization enabled. Authorized accounts sync automatically at startup and after edits, including when authorization completes after Studio opened. Without an account, Save to Cloud opens the same browser authorization flow as the image canvas.
59
+ Open a remake with `popost video preview P --edit --reference <original-video>`. The Studio preserves this reference inside the project and includes it in cloud synchronization, so reopening locally or in hosted Studio retains the side-by-side comparison. The reference appears on the left and the current editable video on the right, driven by the same timeline. A project that has a reference is a replication of it, so the Studio opens with the comparison on; a project without one opens with it off. The Compare button switches it, and the Studio keeps that choice for the project (in the browser) and opens it that way the next time. Where the two pictures are larger above each other than side by side (a landscape video in a narrow, tall panel), they are stacked, the reference on top. A project without reference footage shows a clear message when Compare is clicked; a cover image is not reference footage. Keep default cloud synchronization enabled. Authorized accounts sync automatically at startup and after edits, including when authorization completes after Studio opened. Without an account, Save to Cloud opens the same browser authorization flow as the image canvas.
@@ -22,9 +22,9 @@ Write `project/cast.json`:
22
22
 
23
23
  `popost video cast prepare project --requests materials.json` counts independent generation requests and prints the necessary host image jobs. Without a request list, `shots` is a conservative estimate of recurrence. For recurring roles, actually use the host image generator without the original person's portrait, inspect its output and import it with `popost video cast complete project --role host --file generated.png --tool image_gen`. User/library identities require their actual selected picture. A new role in one generated clip can leave `image` absent. The materials command also counts role uses across its request list.
24
24
 
25
- Each video material lists `"cast":["host"]`; `[]` explicitly means no visible person. Send the generated identity pictures, product assets and measured motion descriptions to the video model. Do not send the raw original creator's video as a generation reference: a model may copy its face despite a text instruction. The engine refuses this combination. Keep role ids stable; a different identity or voice uses a new output filename rather than silently reusing a previous clip.
25
+ Each video material lists `"cast":["host"]`; `[]` explicitly means no visible person. Send the generated identity pictures and measured motion descriptions to the video model. A product the person holds, opens, wears or applies is never left to the prompt's words or to the identity picture: the request also lists `"products":["<id>"]`, and the user's own pictures of it and the product block of the sheet go with it ([video-product.md](video-product.md)). The product's pictures come before the cast's when a model takes few reference pictures; when both do not fit, show the person and the product in separate clips, or carry the product with its real picture. Write into the prompt how the hand holds it and what it does with it, as the sheet's `use` says; ask for one product action per clip, and keep label and packshot moments for the real picture. A user's product picture may show a person: only the product is taken from it, never that person's face. Do not send the raw original creator's video as a generation reference: a model may copy its face despite a text instruction. The engine refuses this combination. Keep role ids stable; a different identity or voice uses a new output filename rather than silently reusing a previous clip.
26
26
 
27
- Before delivery, inspect the opening, later appearances and each new clip boundary. Check both requirements separately: the person is visibly different from the reference and is consistent with the new cast image throughout the result. Record any drift honestly; a valid manifest or image hash does not prove visual identity quality.
27
+ Before delivery, inspect the opening, later appearances and each new clip boundary. Check both requirements separately: the person is visibly different from the reference and is consistent with the new cast image throughout the result. A person who stayed the same proves nothing about what they hold: the product has its own check against the user's picture (`popost video product sheet`). Record any drift honestly; a valid manifest or image hash does not prove visual identity quality.
28
28
 
29
29
  ## Photographic people should feel alive
30
30
 
@@ -71,6 +71,8 @@ popost video voice speak project --speaker host --text "Final words" --out proje
71
71
 
72
72
  `voice speak` also writes `project/assets/line.wav.words.json` when the platform returns word times (it prints `words`): the time of each Chinese character or Latin word, in seconds from the start of the WAV. `template fill --speak` and `retarget --speak` with a `popost:` voice time the captions word by word with these times, so they need no transcriber for it.
73
73
 
74
+ Before any paid generation the user sees who is in the video and hears who speaks: `popost video inputs show` puts every cast role's picture with its name on the input sheet (a role without a picture is shown by its description), and the voice with its script and a sample in the summary (video.md, "Inputs first"). A cast picture or a voice line changed afterwards is shown again.
75
+
74
76
  `use` downloads the real preview and binds the platform voice id to the project profile. Official voices are already cloned; personal uploads are cloned on first actual speech use and the platform reuses that mapping afterwards. Listing, selection and quoting do not clone or charge. Speech is paid as images are, within the one budget of the video (`video.md`, money rule): the voice-over is in the cost overview (a `voice quote` of the script), and `voice speak` runs with `--confirm --max-credits <left>` and prints `chargedCredits`. Without `--confirm`, or above `--max-credits`, it speaks nothing and ends with exit code 3 and the price; ask the user only when the price is more than what is left. Each command enforces its own ceiling; there is no server-side or project-file budget. The resulting WAV and receipt are real synthesis results. Use this exact audio for voice-over, and for visible lip-sync shots where a lip-sync tool is configured. A hand-assembled narration (lines of `voice speak` mixed with other tools) is never a video's `"sound"` or an audio track: narration is the fill's `"voice"`, spoken by `template fill --speak`, and only for a reference with narration or a user who asked for one.
75
77
 
76
78
  For template narration and `plan --voice`, pass `popost:default-male`, `popost:default-female` or `popost:VOICE_ID`, and add `--confirm --max-credits <left>` to `plan --voice`, `template fill --speak` and `retarget --speak`: each prices all its lines first (a narration is spoken in takes of consecutive lines, one price a take; and the pace-calibration sentence, once per voice) and counts its ceiling down take by take. Pace calibration synthesizes audio even with `--dry`; it is not a free preview. A custom `POPOST_TTS_CMD` stays selected unless the voice explicitly starts with `popost:`. Repeating the same text, speed and output path uses the same operation key; an unknown result must be reconciled before making a new paid attempt.
@@ -0,0 +1,196 @@
1
+ # The user's product
2
+
3
+ Use these rules for every video that shows a product the user supplied: a selling video, a demonstration, an
4
+ unboxing, one clip or many. The product in the video is the product in the user's picture: the same shape,
5
+ proportions, size against the hand, printed text, colours, parts and count, in every frame of every shot. Words in a
6
+ prompt do not hold that: "the serum tube" gives another tube in every clip, and a clip that was not shown the
7
+ picture draws a product of its own. A viewer who is sold one thing and shown another has been misled.
8
+
9
+ Product first. Before any clip or picture is generated:
10
+
11
+ 1. Write the product sheet from the user's pictures and words, and look at every picture for a person's face.
12
+ 2. Show the user what you inferred and the picture that will be sent, with the plan and its cost, in one message.
13
+ 3. Plan each shot by how the product's identity is carried in it.
14
+ 4. Mark every request that shows the product; the pictures and the product block go with it by themselves.
15
+ 5. After generation, check the product in every clip and in the finished video, by eye.
16
+
17
+ ## 1. The product sheet
18
+
19
+ ```bash
20
+ popost video product init project --picture <file the user gave> [--picture <another>] [--id flask]
21
+ ```
22
+
23
+ It copies every picture into `project/assets/product/` byte for byte and writes the skeleton of
24
+ `project/production/product.json`. One product per `--id`; a video with two products runs `init` twice. Give `--lang
25
+ <code>` with the language the user writes in, and write the facts in it.
26
+
27
+ **The picture that is sent.** A user's picture is often a screenshot: someone else holding the product, a video
28
+ player's controls, other products beside it. What goes to a model is the user's picture whole, or a crop of it:
29
+
30
+ ```bash
31
+ popost video product crop project --picture assets/product/flask-01.png --no-face-confirmed agent # sent whole
32
+ popost video product crop project --picture assets/product/flask-01.png --box 120,340,600,900 --no-face-confirmed agent # a crop is sent
33
+ ```
34
+
35
+ - Open every picture. A person's face in it: crop it out. A picture with a face is never sent to a model; when the
36
+ product cannot be separated from the face, do not use that picture and ask the user for another.
37
+ - The crop shows the **whole** product, nothing of it cut off, with a little room around it. `--box` is
38
+ `x,y,width,height` in pixels of the user's picture. It is a plain rectangle of their pixels: never a cut-out, a
39
+ redraw, a retouch or a re-compressed copy. The original stays in the project with its hash (`"original"`).
40
+ - `--no-face-confirmed agent` says that you looked at the picture that is sent and saw no face. No program here can
41
+ tell a face, so this is your statement; the sheet has an error for every picture without it, and nothing that shows
42
+ the product is priced, uploaded or made before. When you cannot look at pictures, ask the user and record their
43
+ answer: `--no-face-confirmed user --note "<their words>"`.
44
+ - All the pictures the user gave go with every clip, each whole or cropped; do not choose among them. The user sees
45
+ the picture exactly as it is sent, on the input sheet, before anything is generated.
46
+
47
+ Open each picture, then fill in every fact. Each fact says where it comes from:
48
+
49
+ | `from` | Meaning | Needs |
50
+ |---|---|---|
51
+ | `user` | the user said it (their message, their product page) | `quote`: their words. These always win |
52
+ | `picture` | you read it from the product picture | nothing; it is inferred |
53
+ | `usage` | you derived it from how such a product is normally used | nothing; it is inferred |
54
+
55
+ ```json
56
+ { "version": 1, "products": [{
57
+ "id": "flask",
58
+ "names": ["Northwind", "flask", "bottle"],
59
+ "pictures": [{ "file": "assets/product/flask-01.png", "sha256": "..." }],
60
+ "constant": ["the screw cap with its steel loop stays on unless it is being opened", "the wordmark runs down the front"],
61
+ "what": { "value": "a Northwind 500 ml insulated steel flask", "from": "user", "quote": "my Northwind 500 ml flask" },
62
+ "label": { "value": "NORTHWIND 500", "from": "picture" },
63
+ "shape": { "value": "a straight cylinder with a short shoulder and a flat screw cap, about 3.5 times as tall as wide", "from": "picture" },
64
+ "size": { "value": "about 24 cm tall and 7 cm wide", "from": "picture" },
65
+ "sizeAnchor": { "value": "a little longer than an adult hand, held in one hand with the fingers closing round it", "from": "picture" },
66
+ "colour": { "value": "matte dark blue body, brushed steel cap and base ring", "from": "picture" },
67
+ "material": { "value": "powder-coated steel, matte", "from": "picture" },
68
+ "parts": { "value": "the cap unscrews anticlockwise and comes off whole", "from": "picture" },
69
+ "use": { "value": "unscrew the cap, drink from the open neck, screw the cap back on", "from": "usage" },
70
+ "quantity": { "value": "1 flask", "from": "picture" }
71
+ }] }
72
+ ```
73
+
74
+ - `what`: what it is, with brand and name as the user or the label gives them. `label`: the printed text exactly,
75
+ letter for letter, in reading order (`"none"` when nothing is printed). Never complete or translate a label you
76
+ cannot read: write what is legible and say so to the user.
77
+ - `shape`: outline and proportions (body, shoulder, neck, tip or cap, base; height to width). `size`: the real size
78
+ with a number and a unit; the user's or the label's number, else an estimate against the hand in the picture.
79
+ `sizeAnchor`: how large it looks against a hand, a face, a body or a common object.
80
+ - `colour`, `material`: which colour is where; matte, glossy, metallic, transparent. `parts`: each part and how it
81
+ moves or opens (cap, lid, pump, tip, zipper, strap). Leave `material` or `parts` out when there is none.
82
+ - `use`: how it is held, opened, worn or applied, step by step. `quantity`: how many are in a shot, number first.
83
+ - `names`: the words a prompt calls it by (its name and its kind). `constant`: what must be the same in every
84
+ frame, each line said as what is there ("the tip is a long bare cone"), not as what to avoid ("no pump"): a model
85
+ draws what a prompt names.
86
+ - Invent nothing: no variant, flavour, size, accessory, packaging or label text the user's pictures and words do not
87
+ show. When a fact cannot be read and the user did not say it, ask.
88
+
89
+ `popost video product check project` validates the sheet (every picture is the recorded file and was looked at, every fact filled,
90
+ nothing shared between two products) and prints each product's `block`: the text every request that shows it is sent
91
+ with. It is built from the sheet alone, so it is the same in every clip. Whether two free-text facts contradict each
92
+ other the program cannot tell: read the block once as a whole before showing it.
93
+
94
+ ## 2. The user confirms what was inferred
95
+
96
+ `product check` prints `confirm`: one line with every fact that is not the user's. It is part of the one message
97
+ that shows the user the inputs and the cost (video.md, "Inputs first"): `popost video inputs show` puts the line into
98
+ the summary and the picture as it is sent on the input sheet, so the user corrects or agrees in the same answer. A
99
+ correction goes into the sheet as `"from": "user"` with their words. Then:
100
+
101
+ ```bash
102
+ popost video inputs confirm project --quote "<the user's answer>"
103
+ ```
104
+
105
+ It records the answer for the inputs and for these facts at once. Paid generation of anything that shows the product
106
+ waits for it. The answer is bound to what was shown: a fact, a picture or a crop changed later is asked about again.
107
+ When nobody can be asked (a batch the user commissioned to run without questions), `--unattended "<who authorised
108
+ that, in their words>"` records it, and the delivery notes list the inferred facts as unconfirmed. Never write an
109
+ answer the user did not give. (`popost video product confirm` still records the facts alone.)
110
+
111
+ ## 3. Plan the shots: real picture first
112
+
113
+ | The shot | How the product is carried |
114
+ |---|---|
115
+ | packshot, close-up, label or detail shot, the product alone on a ground, a price or offer card | the user's real picture in a scene (an `"image"` item or `<img>`), moved with the scene's own motion: push-in, drift, a light sweep, a reveal. Not generated: no model redraws the label |
116
+ | the product must be seen from the exact picture and then move | a clip whose `"firstFrame"` is the user's picture, or a still composed from it (the picture on a ground or in a scene, product pixels unchanged) and listed under `"stills"` of the product with its `sha256` and how it was `made` |
117
+ | a person holds, opens, wears or applies it; it is used in a place | a generated clip with the product's pictures as references and the product block (section 4) |
118
+
119
+ - One clip per product action when a long clip would let the product drift: holding it up, opening or dispensing,
120
+ turning it, applying it are separate requests with the same block. `materials --check` warns about a clip of 10 s
121
+ or more that handles the product in several actions. A speaking clip that needs its lines in one piece may stay
122
+ long; check the product at every action then.
123
+ - A clip that `"continues"` another starts from a generated frame, which the pictures cannot go with: continue only
124
+ a clip whose product check passed, else make the part as its own clip.
125
+ - Text on the product is the hardest thing for a model to keep. A shot whose point is the label is a real-picture shot.
126
+
127
+ ## 4. Requests that show the product
128
+
129
+ In a project with a product sheet every material request says `"products"`: the ids it shows, or `[]` for none.
130
+
131
+ ```json
132
+ [{ "file": "assets/hold.mp4", "prompt": "a hand lifts the flask from a desk and turns it to the camera", "seconds": 5,
133
+ "aspect": "9:16", "cast": [], "products": ["flask"] },
134
+ { "file": "assets/street.mp4", "prompt": "a wet street at dusk", "seconds": 5, "aspect": "9:16", "cast": [], "products": [] }]
135
+ ```
136
+
137
+ Write the action and the framing into `prompt` and leave the product to the sheet: do not describe it again in your
138
+ own words, and do not list its pictures in `"images"`. For each product of the request `materials` adds every picture
139
+ of it to the reference pictures (after the request's own `"images"`, whose `@image` numbers stay) and the product block
140
+ to the prompt, and keeps what was sent in `<clip>.product.json`. A clip from a frame gets the block alone.
141
+
142
+ `materials --check` (and every run) refuses, before anything is paid:
143
+
144
+ - a request without `"products"`; when its prompt says one of the product's `names`, the message says so;
145
+ - a product request whose model takes no reference pictures, or fewer than the product has: choose a model that
146
+ takes them (`popost video generate --models`, `maxReferenceImages`), or make the shot from the real picture
147
+ (section 3). A picture is never left out to make a request fit;
148
+ - a product clip whose `"firstFrame"` is not one of the user's pictures or a listed still;
149
+ - a sheet with errors (a picture nobody looked at for a face is one); and, once the list is to be paid for, inputs
150
+ or inferred facts the user has not confirmed.
151
+
152
+ Reference pictures have an order when a model takes few: the product's pictures, then the cast's identity pictures,
153
+ then the request's own `"images"`, then the shared anchor frame. The anchor is left out with a note when there is no
154
+ room. A list whose product, cast and own pictures do not fit is refused with what to remove: its own pictures first,
155
+ then fewer people with identity pictures in that clip, or two clips. The product's pictures always go, and the
156
+ anchor never speaks for the product: its sentence says the product follows its own pictures. With a product sheet,
157
+ do not pass the product's picture as `--anchor-image`.
158
+
159
+ An existing file made before the sheet, or before the sheet changed, is reported and not reused under the same
160
+ name: give the request a new file name (a new clip is an unplanned clip under the money rule).
161
+
162
+ ## 5. The product check
163
+
164
+ Attaching the pictures is necessary and not enough: a model may still redraw the product. A valid list, a receipt,
165
+ a passed `replication check` or a `compare` score says nothing about it. Only looking does. For every clip that
166
+ shows a product, right after it is made, and for the finished video:
167
+
168
+ ```bash
169
+ popost video product sheet project --file assets/hold.mp4 # opening, middle and end of the clip
170
+ popost video product sheet project --file final.mp4 --product flask --at 3.2,4.5,5.8,21,22.4,23.6
171
+ popost video product review project --file assets/hold.mp4 --passed --note "<what was compared>"
172
+ popost video product check project --deliver --final final.mp4 # before delivery: exit code 0
173
+ ```
174
+
175
+ `sheet` writes `review/product/*.jpg`: the user's picture(s) in an orange frame on the left, frames of the file to
176
+ the right (four a sheet; `seconds` in the output says which). For the finished video give `--at` the opening, middle
177
+ and end of every shot that shows the product. Open every sheet and compare each frame with the picture on every
178
+ point of `compare`: shape and outline; proportions; size against the hand, face or body; printed text letter by
179
+ letter; colours and where each is; parts and how they move; count; how it is held and used. Look also where a clip
180
+ changes action and at each clip boundary: drift shows there first.
181
+
182
+ - All agree: `--passed`, with what you compared.
183
+ - Anything differs (another cap, a shorter body, a wrong or blurred wordmark, another colour, two where one was,
184
+ another size in the hand): `--failed --note "<what differs, at which second>"`. A failed clip is made again within
185
+ the agreed repair allowance, as a changed request under a new file name (one product action, a simpler move or a
186
+ closer framing; the identical request would return the same clip; it is an unplanned clip, `--approve-unplanned`
187
+ once covered), and after a second failure its shot is replaced by one composed from the real picture (section 3). It is
188
+ **never delivered with a note**: `product check --deliver` refuses a project that still uses it.
189
+ - You cannot look at pictures: you cannot pass this check. Record `--unseen --note "<why>"`, tell the user in plain
190
+ words that the product was not checked by eye, give them the sheets and ask; their answer is recorded with
191
+ `--passed|--failed --by user --note "<their words>"`. Never present such a video as checked.
192
+
193
+ A verdict belongs to the bytes that were looked at: a clip made again, or a new render, is unchecked until its own
194
+ sheet is built and judged. The delivery notes say, for the product: how many pictures the user gave, which were
195
+ cropped, and that all went with every product clip, which shots use the real picture and which are generated, the verdict of each check,
196
+ what was regenerated or replaced, and any inferred fact the user did not confirm.
@@ -1,6 +1,6 @@
1
1
  # Strict video replication
2
2
 
3
- Use this workflow when a reference supplies the video's format and the user replaces its subject, product, characters, or text. The user's brief can remain short. The agent must do the reference reading, event inventory, production mapping, and evidence review internally before spending on new media. A request to preserve the reference is not satisfied by matching its duration and broad layout alone.
3
+ Use this workflow when a reference supplies the video's format and the user replaces its subject, product, characters, or text. A replaced product follows [the user's product](video-product.md): the contract's events say what happens to a product, the product sheet says which product it is, and neither a passed inventory nor a review of events is a product check. The user's brief can remain short. The agent must do the reference reading, event inventory, production mapping, and evidence review internally before spending on new media. A request to preserve the reference is not satisfied by matching its duration and broad layout alone.
4
4
 
5
5
  This workflow extends [video.md](video.md), [video-elements.md](video-elements.md), [video-templates.md](video-templates.md), and [video-scenes.md](video-scenes.md). It does not replace their editable-project, generation, audio, budget, or delivery rules.
6
6
 
@@ -3,8 +3,8 @@
3
3
  Step 1 of [making a video](video.md), whose rules for every step hold here; before it: [step 0, What the machine has](video-step-0-machine.md); after it: [step 2, Keep its structure](video-step-2-structure.md).
4
4
 
5
5
  Put the reference at `reference.mp4` (`cp` a local file, `curl -L -o reference.mp4 <url to the file>`, or, for a post link,
6
- the `video` file `popost link parse` printed: it fetches a video post's original file, except on YouTube, Bilibili and
7
- WeChat Channels; only when it reports `videoMissing` ask the user for the file or a screen recording), then:
6
+ the `video` file `popost link parse` printed: it fetches a video post's original file, except on the `coverOnly`
7
+ platforms of `popost link platforms` (now YouTube); only when it reports `videoMissing` ask the user for the file or a screen recording), then:
8
8
 
9
9
  ```bash
10
10
  popost video describe reference.mp4 --out ref --project project --confirm --max-credits <left>
@@ -131,7 +131,11 @@ can be part narration, part on camera. It writes `timeline.md` again: read its b
131
131
  beat a person says; sung words and fragments are no beats). `template save` refuses a reference whose kind is
132
132
  unconfirmed.
133
133
 
134
- The cost overview and the one budget, now that the reference is read (leave out what this video does not use):
134
+ The cost overview, now that the reference is read (leave out what this video does not use). It is not a question
135
+ of its own: it goes to the user in the one message that also shows the inputs (`popost video inputs show`; video.md,
136
+ "Inputs first"), once the product sheet, the cast, the voice plan and the request list are written. None of that
137
+ costs anything, so prepare it first; the user answers once, for the budget and for what is sent. Ask for a budget
138
+ alone only when paid work must run before the list can exist, and then only for that work.
135
139
 
136
140
  - Voice-over, only when the kinds include `narration`: `popost video voice quote --voice default-male --text "<a
137
141
  script as long as the reference's narration>"` (an estimate until the lines are written), and a little for pace
@@ -139,6 +143,11 @@ The cost overview and the one budget, now that the reference is read (leave out
139
143
  unless the user asks for one in their own words.
140
144
  - Generated clips and pictures: their price per second or per picture (`popost video generate --models`) times what
141
145
  you plan. Every on-camera stretch is a clip in which a person speaks, as long as the stretch (`video-performers.md`).
146
+ - The user's product, when they supplied one: write the product sheet now (`popost video product init`, then its
147
+ facts; [video-product.md](video-product.md)) and put the `confirm` line of `popost video product check project`
148
+ into this overview: what you read from their picture and from how such a product is used, for them to correct or
149
+ agree to in the same answer. Say which shots use their real picture and which are generated with it as reference.
150
+ `inputs show` puts that line into the summary, and `popost video inputs confirm` records the answer for it too.
142
151
  - The transcription already paid (`chargedCredits` of `describe`).
143
152
  - The music plan: `popost video music plan --project project --reading ref` proposes it from the reading of the
144
153
  reference's sound (one bed: the user's file first; else the reference's own music, kept as it is, when nobody speaks
@@ -148,8 +157,8 @@ The cost overview and the one budget, now that the reference is read (leave out
148
157
  its music, ask for their own file first. When it says generated music is not available, say that one line and plan
149
158
  without a generated bed.
150
159
 
151
- Show the remaining items, estimated total and balance, including any proposed quality-repair allowance, in the one
152
- message that asks for the budget. The user must not have to ask which model or settings the money buys: for every
160
+ Show the remaining items, estimated total and balance, including any proposed quality-repair allowance, in that one
161
+ message, above the input sheet and the summary (which carries the prompts, the pictures and the voice). The user must not have to ask which model or settings the money buys: for every
153
162
  generated clip or picture that message names the model (its name and its `id` from `popost video generate --models`),
154
163
  the resolution, the length of each generated clip (the seconds the model makes, which can differ from the finished
155
164
  cut: say "an 8 s clip for a 7.5 s video" when they differ), the aspect ratio, how many, how it is billed (per second
@@ -165,7 +174,8 @@ the user decides what to do: never turn a speaking person into silent footage wi
165
174
 
166
175
  Done when: you have opened every picture of `ref/`, `popost video elements check ref` prints `"ok": true` (every
167
176
  shot has an entry that says its layout, how it begins and ends as its frames show it, and which layers are the
168
- platform's or the author's), the speech kind is confirmed, and the user agreed a budget (or no paid work is planned).
177
+ platform's or the author's), the speech kind is confirmed, and the cost overview is drafted for the one message
178
+ that shows the inputs (or no paid work is planned).
169
179
 
170
180
  Before saving a new replication template, run `popost video replication init ref --reference reference.mp4`,
171
181
  complete `replication.json` from the actual source video/audio, and run
@@ -2,7 +2,10 @@
2
2
 
3
3
  Step 3 of [making a video](video.md), whose rules for every step hold here; before it: [step 2, Keep its structure](video-step-2-structure.md); after it: [step 4, Write the lines and the fill](video-step-4-lines.md).
4
4
 
5
- The user's topic decides what the video shows. Before designing any scene, collect every source the request names (a
5
+ The user's topic decides what the video shows. A product the user supplied comes first: its sheet is written and its
6
+ inferred facts confirmed before any clip or picture is generated, and every shot is planned by how the product is
7
+ carried in it ([video-product.md](video-product.md): the real picture in a scene for packshots, close-ups and label
8
+ shots; generated clips only where it is held or used). Before designing any scene, collect every source the request names (a
6
9
  page, a README, a file), each with:
7
10
 
8
11
  ```bash
@@ -77,7 +80,7 @@ the `box` of each element from `--outline` (`<skill>/references/video-scenes.md`
77
80
  the middle and nothing covers it. Otherwise zoom closer or hide what covers it, and record again.
78
81
 
79
82
  A shot of filmed material that no file of the user's shows can be generated when `generate` is set (step 0): write
80
- the requests and run `popost video materials requests.json --out project --template template --confirm --max-credits <left> --no-wait`
83
+ the requests, show the user what will be sent (`popost video inputs voice project --speaker narrator --voice <voice> --fill fill.json` when the video has a voice, then `popost video inputs show project --requests requests.json --template template --lang <code>`; ONE message with the cost, the sheet and the summary; `popost video inputs confirm project --quote "<their words>"`; video.md, "Inputs first") and run `popost video materials requests.json --out project --template template --confirm --max-credits <left> --no-wait`
81
84
  (`video-tools.md`, "Generated clips": the request, the price, what it prints). The clips are made on popost.ai while
82
85
  you build the rest; run the same command again to pick them up before they are placed (nothing is paid twice). A shot in which a person says an
83
86
  on-camera beat is a clip with `"speech"`: the lines, who says each, their language and the beat each re-makes; the
@@ -101,10 +104,14 @@ its clips the agreed clips; any other paid clip later is "unplanned" (the money
101
104
  - A clip is never slowed down to fill a shot (the checks warn about a `"speed"` under 0.9): ask for a clip as long as
102
105
  the shot needs (`footage.seconds` in `template show`), make a second clip, or start earlier. A clip that moves less
103
106
  than its shot may be sped up with a `"speed"` above 1 when it is long enough.
104
- - The clips of one video keep the same person, product and place through one anchor picture, which `materials`
107
+ - The user's product is not carried by the anchor or by words: in a project with a product sheet every request says
108
+ `"products": ["<id>"]` (or `[]`), and `materials` sends each product request with all the user's pictures of it and
109
+ the same product block, or refuses the list (`video-product.md`). One request per product action; look at each
110
+ product clip beside the user's picture as soon as it is made (`popost video product sheet`, then `product review`).
111
+ - The clips of one video keep the same person and place through one anchor picture, which `materials`
105
112
  takes care of by itself. When the request names a character of the user's popost.ai library, pass it with
106
- `--character <id>`; when it gives a photo of the person or the product, with `--anchor-image <file>`. A clip that
107
- shares nothing with the others says `"anchor": false` (`video-tools.md`).
113
+ `--character <id>`; when it gives a photo of the person, with `--anchor-image <file>` (the product's picture goes
114
+ through the product sheet, not here). A clip that shares nothing with the others says `"anchor": false` (`video-tools.md`).
108
115
  - A shot longer than the longest clip the model makes: `template save --max-shot <seconds>` cuts it into parts, and
109
116
  the clip of each later part says `"continues"` with the file of the part before it, so it starts from that clip's
110
117
  last frame. Reference pictures stay the default; frames are for that and for a clip
@@ -113,5 +120,6 @@ its clips the agreed clips; any other paid clip later is "unplanned" (the money
113
120
  Then write `project/materials.json`, one entry per file, saying what it shows:
114
121
  `{ "assets/page-01.mp4": "the pricing page: zooms to the Pro plan, boxes its price, the pointer clicks Buy" }`.
115
122
 
116
- Done when: every footage or picture shot you plan has its file in `project/assets/`, listed in `materials.json`, and
117
- you have looked at two frames of every recording.
123
+ Done when: every footage or picture shot you plan has its file in `project/assets/`, listed in `materials.json`,
124
+ you have looked at two frames of every recording, and every generated file that shows the user's product has a
125
+ passed product check (`popost video product check project` lists them under `review`).
@@ -9,6 +9,16 @@ popost video preflight project
9
9
  popost video template check template --fill fill.json --assets project --pace <budgets.pace> --fit-tempo 1.12
10
10
  ```
11
11
 
12
+ The voice was shown to the user with the other inputs before anything was paid (video.md, "Inputs first"): `popost
13
+ video inputs voice project --speaker narrator --voice <voice> --fill fill.json` writes the voice plan (voice, speed,
14
+ lines), `inputs show` adds the voice's name, its script, its price and a sample the user can hear. The sample is the
15
+ platform's own preview of the voice (free; `production/inputs/voice-<speaker>-sample.wav`) or the recording
16
+ registered for the speaker; a voice without one gets no sample, and the summary names what a one-sentence sample
17
+ would cost so that the user can ask for it. Nothing is spoken to build the confirmation. `template fill --speak`,
18
+ `retarget --speak` and `voice speak` with `--confirm` speak only the voice and the lines of the confirmed plan: when
19
+ a line changed (shortened to fit, corrected), write the plan again, run `inputs show` and show the user the voice
20
+ alone.
21
+
12
22
  `preflight` is `check --layout` and `scene check` in one call and, for a strict replication, what `replication check
13
23
  --artifact` finds before there is a video (the contract, `replication.plan.json` against the compiled timeline,
14
24
  `replication.audio.json`): it prints every problem at once, so correct them all and run it once more. Run it again
@@ -21,6 +21,24 @@ popost video render project --out final.mp4
21
21
  popost video compare reference.mp4 final.mp4
22
22
  ```
23
23
 
24
+ **The product check comes before any other review** when the user supplied a product
25
+ ([video-product.md](video-product.md), "The product check"). None of `compare`, `replication check` or a valid
26
+ materials list looks at it. Build the sheet of the finished video at the opening, middle and end of every shot that
27
+ shows the product, open each sheet, and compare every frame with the user's picture (orange frame): shape,
28
+ proportions, size against the hand or body, printed text, colours, parts, count, use.
29
+
30
+ ```bash
31
+ popost video product sheet project --file final.mp4 --product <id> --at <seconds>
32
+ popost video product review project --file final.mp4 --passed|--failed --note "<what was compared and found>"
33
+ popost video product check project --deliver --final final.mp4
34
+ ```
35
+
36
+ `product check --deliver` must exit with 0: every clip the video uses that shows the product, and the video itself,
37
+ passed for the bytes as they are. A mismatch is a failed clip: make it again within the agreed repair allowance or
38
+ replace the shot with one composed from the real picture, render again and check again; it is never delivered with a
39
+ note. An agent that cannot look at pictures cannot pass this check: it records `--unseen`, tells the user so and
40
+ gives them the sheets; only the user's own verdict passes it then.
41
+
24
42
  `compare` scores the whole video per dimension from 0 to 1 (1 is the same), then prints `shots` (each shot of the
25
43
  reference against the matching part of yours), `motionAmount` (how much the picture moves in both videos; `less` and
26
44
  `more` list the shots that move less than half or more than twice as much as the reference's, and its `note` says what
@@ -70,6 +88,14 @@ With effects, run the `look` command `sfx place` printed, on the render, and ope
70
88
  effect meets its picture something moves or lands, or the effect goes (a sound ahead of its picture is worse than one a
71
89
  frame late). Effects are not in `compare`'s scores.
72
90
 
91
+ With a connected account (API Key or device connection) whose cloud-sync switch is on, `render` also syncs the
92
+ project (video.json and the files it names) to the user's popost.ai projects once the MP4 is written, whether or not
93
+ the Studio is open: `cloud` in its output is `{"state":"saved","webUrl":…}`, `{"state":"failed","error":…}` (the MP4
94
+ stands; deliver it and say what failed) or `{"state":"paused","manageUrl":…}` (the user turned cloud sync off on
95
+ popost.ai, Connections & API Key: nothing was sent; say so once, with the address). Without an account there is no
96
+ `cloud` field and nothing is sent. `--cloud off` renders without syncing; use it only when the user asked for no cloud
97
+ saving.
98
+
73
99
  Open the editable Studio with the existing preview editor (selection, timeline operations and cloud saving: [video-editing.md](video-editing.md)):
74
100
 
75
101
  ```bash
@@ -82,9 +108,18 @@ output and use its `url`; do not guess a port. Fetch `api/state` under that URL
82
108
  text edit saves, undo restores it, a reload keeps the saved state, and the editor can render. Use the same project
83
109
  that produced the delivered video. The URL is a local editor on this computer while that service runs.
84
110
 
111
+ The project's caches clean themselves: `render` removes the video frames it extracted once the MP4 is written
112
+ (`framesFreedBytes`), and a later render or Studio extracts them again. Never copy, archive or hand over `.cache/`
113
+ with a project, and when the user is short of disk space run `popost video clean project` (or
114
+ `popost video clean --all <dir> --dry-run` to size every project below a directory; video-tools.md, "What a project
115
+ keeps on disk").
116
+
85
117
  When a template deliberately drops trailing platform shots, `compare` reports the retained reference interval and `omittedShots` after checking its sampled visual fingerprint. An unrelated reference or an older project without that provenance is compared in full; do not read the omitted endcard as a failure of the new closing.
86
118
 
87
- Deliver `final.mp4`, its editable Studio URL, the `project/` directory and the delivery notes (`NOTES.md`): what is as in
119
+ Deliver `final.mp4`, its editable Studio URL, the `project/` directory and the delivery notes (`NOTES.md`): for the
120
+ user's product, how many pictures they gave and that all went with every product clip, which shots use the real
121
+ picture and which are generated, each product check's verdict, what was made again or replaced, and any inferred
122
+ fact they did not confirm; what is as in
88
123
  the reference, what differs and why (no voice, a missing tool, a source that did not have something), each shot of
89
124
  the last `worst` that was not fixed, with its reason, and under "Not recovered" every entry of `compare`'s
90
125
  `notRecovered` (the reading's list and what you added to `elements.json`): what was not recovered and what the video