popost 4.6.11 → 4.6.13
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 +2 -0
- package/SKILL.md +6 -4
- package/dist/cli.js +12524 -10602
- package/dist/index.js +12518 -10598
- package/dist/types/commands/feedback.d.ts +2 -0
- package/dist/types/feedback/bundle.d.ts +33 -0
- package/dist/types/feedback/clean.d.ts +44 -0
- package/dist/types/feedback/project-files.d.ts +19 -0
- package/dist/types/feedback/transcript.d.ts +38 -0
- package/dist/types/feedback/upload.d.ts +13 -0
- package/dist/types/providers/link-resolve.d.ts +29 -0
- package/dist/types/runtime.d.ts +3 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types/video/commands/inputs.d.ts +2 -0
- package/dist/types/video/commands/materials.d.ts +6 -0
- package/dist/types/video/commands/product.d.ts +2 -6
- package/dist/types/video/commands/shared.d.ts +0 -5
- package/dist/types/video/generate/cloud-image.d.ts +3 -1
- package/dist/types/video/generate/cloud.d.ts +6 -0
- package/dist/types/video/generate/dialogue.d.ts +4 -10
- package/dist/types/video/generate/index.d.ts +18 -1
- package/dist/types/video/generate/provenance.d.ts +13 -0
- package/dist/types/video/inputs/collect.d.ts +104 -0
- package/dist/types/video/inputs/record.d.ts +106 -0
- package/dist/types/video/inputs/sheet.d.ts +8 -0
- package/dist/types/video/inputs/summary.d.ts +72 -0
- package/dist/types/video/product/sheet.d.ts +24 -1
- package/dist/types/video/prompt-lang.d.ts +16 -0
- package/dist/types/video/replication/books.d.ts +1 -1
- package/dist/types/video/replication/contract.d.ts +56 -0
- package/dist/types/video/replication/review.d.ts +17 -0
- package/dist/types/video/replication/voice-spans.d.ts +1 -1
- package/dist/types/video/sound/modes.d.ts +0 -8
- package/package.json +1 -1
- package/references/onboarding.md +2 -1
- package/references/post-bundle.md +5 -3
- package/references/video-continuity.md +40 -0
- package/references/video-performers.md +2 -0
- package/references/video-product.md +39 -17
- package/references/video-replication.md +3 -1
- package/references/video-step-0-machine.md +7 -0
- package/references/video-step-1-read.md +12 -7
- package/references/video-step-3-content.md +9 -1
- package/references/video-step-6-voice.md +10 -0
- package/references/video-tools.md +44 -1
- package/references/video.md +23 -0
|
@@ -80,7 +80,7 @@ the `box` of each element from `--outline` (`<skill>/references/video-scenes.md`
|
|
|
80
80
|
the middle and nothing covers it. Otherwise zoom closer or hide what covers it, and record again.
|
|
81
81
|
|
|
82
82
|
A shot of filmed material that no file of the user's shows can be generated when `generate` is set (step 0): write
|
|
83
|
-
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`
|
|
84
84
|
(`video-tools.md`, "Generated clips": the request, the price, what it prints). The clips are made on popost.ai while
|
|
85
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
|
|
86
86
|
on-camera beat is a clip with `"speech"`: the lines, who says each, their language and the beat each re-makes; the
|
|
@@ -116,6 +116,14 @@ its clips the agreed clips; any other paid clip later is "unplanned" (the money
|
|
|
116
116
|
the clip of each later part says `"continues"` with the file of the part before it, so it starts from that clip's
|
|
117
117
|
last frame. Reference pictures stay the default; frames are for that and for a clip
|
|
118
118
|
that must begin on an exact picture (`video-tools.md`, "Reference pictures or frames").
|
|
119
|
+
- Mark the reference's natural shot changes and the boundaries added for the generator's duration limit. At each
|
|
120
|
+
added boundary, lock the same location and lighting, camera axis, product variant, actor pose, hand/prop position
|
|
121
|
+
and direction of movement. Give the shots a common location reference when using separate reference-conditioned
|
|
122
|
+
calls. Start from the accepted previous tail only with verified exact-frame support and after reviewing that tail
|
|
123
|
+
for the real product, cast and action. Otherwise move the split to a motivated cut, such as the start of a detail
|
|
124
|
+
shot, and keep the same ambient bed and the speaker's continuous line where appropriate. Plan dialogue around
|
|
125
|
+
phrase breaks and check each generated clip's actual words before cutting. Keep the approved takes and repair the
|
|
126
|
+
affected clip or edit point.
|
|
119
127
|
|
|
120
128
|
Then write `project/materials.json`, one entry per file, saying what it shows:
|
|
121
129
|
`{ "assets/page-01.mp4": "the pricing page: zooms to the Pro plan, boxes its price, the pointer clicks Buy" }`.
|
|
@@ -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
|
|
@@ -302,6 +302,28 @@ by id is fetched at render. Nothing is paid. How to choose, place and level them
|
|
|
302
302
|
|
|
303
303
|
## Generated clips
|
|
304
304
|
|
|
305
|
+
### Bring a video provider
|
|
306
|
+
|
|
307
|
+
On any Agent host, keep a video provider or API key the user selected. Make its adapter a command behind
|
|
308
|
+
`POPOST_GEN_CMD`; keep the API key in the adapter's credential store or environment. Use
|
|
309
|
+
`popost video materials ... --check` first, then let `materials` invoke the adapter per clip. For a paid adapter, verify
|
|
310
|
+
its quote, billing unit, available budget and resumable task contract before submission. Popost owns the reference,
|
|
311
|
+
requests, product and cast constraints, timeline, render, final review and Studio. The adapter makes one requested
|
|
312
|
+
asset at the output path. Import previously made clips as existing footage with their real source; keep them
|
|
313
|
+
distinct from clips made by the CLI.
|
|
314
|
+
|
|
315
|
+
Set `POPOST_GEN_FRAMES=true` only if the external adapter sends `firstFrame` and `lastFrame` as exact frame constraints
|
|
316
|
+
and the selected model supports them. Set it to `false` for a references-only route. The CLI rejects exact-frame
|
|
317
|
+
requests when support is disabled and warns when undeclared. A picture added to an ordinary reference list does
|
|
318
|
+
not lock the first or last frame. Use a single generation for continuous action within the model's limit, or split
|
|
319
|
+
at a reference cut that motivates the new framing.
|
|
320
|
+
|
|
321
|
+
`materials` reports the selected route, returns a provider task when supplied, and writes
|
|
322
|
+
`<clip>.material.json` when it generates footage, binding the provider route and request to the produced media hash.
|
|
323
|
+
Keep these records with the project and match the clips actually used by `replication timeline` at delivery.
|
|
324
|
+
Preexisting footage without a receipt has unknown generation provenance. Popost usage records Popost charges;
|
|
325
|
+
verify external charges with the external provider's receipts.
|
|
326
|
+
|
|
305
327
|
`popost video materials requests.json --out project --template template --confirm --max-credits <left>` makes the clips and
|
|
306
328
|
pictures of a list through the generator (`POPOST_GEN_CMD`); `--check` only reads the list. The clips and pictures are
|
|
307
329
|
sent all at once and made on popost.ai at the same time (a clip that starts from another, or takes a frame of the anchor
|
|
@@ -320,6 +342,24 @@ that exists is never made again, so running it twice costs once, and what each f
|
|
|
320
342
|
`project/materials.json`. Paid generation follows the money rule ("Paying for popost.ai") and the agreed clips ("The
|
|
321
343
|
built-in generator").
|
|
322
344
|
|
|
345
|
+
**The user sees the inputs first.** A paid run starts only once the user confirmed what is sent (video.md, "Inputs
|
|
346
|
+
first"); until then `materials` (and `generate` for a file of a project, and the paid voice commands) print
|
|
347
|
+
`{ "ok": false, "confirm": { "reason": "inputs", "pending": [...], "sheets": [...], "summary": "..." }, "next": "..." }`
|
|
348
|
+
and exit with 3, nothing charged:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
popost video inputs voice project --speaker narrator --voice popost:default-female --fill fill.json # the voice plan, when the video has a voice
|
|
352
|
+
popost video inputs show project --requests requests.json [--template template] [--lang zh] # free: sheet, summary, voice sample
|
|
353
|
+
popost video inputs confirm project --quote "<the user's words>" # after they answered the one message
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
`show` takes the anchor options of `materials` (`--anchor-image`, `--character`, `--no-anchor`) and composes every
|
|
357
|
+
request with the code `materials` sends it with; it writes `production/inputs/input-sheet.jpg` (needs the local
|
|
358
|
+
browser; without one it names the pictures to show one by one), `summary.md` to paste and `summary.json`. Prices are
|
|
359
|
+
the platform's free quotes (the reference pictures of a clip are uploaded for its quote, as `materials` without
|
|
360
|
+
`--confirm` does); a generator of your own has no price here. Keys name the items: `clip:<file>`, `picture:<file>`,
|
|
361
|
+
`product:<id>`, `cast:<id>`, `voice:<speaker>`, `anchor`. A file that exists is not asked about.
|
|
362
|
+
|
|
323
363
|
```json
|
|
324
364
|
[{ "file": "assets/walk.mp4", "prompt": "a woman walks briskly through a market, handheld, the camera follows",
|
|
325
365
|
"seconds": 5, "aspect": "9:16", "images": ["assets/market.png"], "note": "the walk through the market" }]
|
|
@@ -348,6 +388,7 @@ built-in generator").
|
|
|
348
388
|
{ "speaker": "host", "text": "The exact words of beat 4.", "beat": 4 }] } }
|
|
349
389
|
```
|
|
350
390
|
|
|
391
|
+
- An off-camera participant in the conversation uses `"offscreen": true` on each of their lines. Keep that role out of the visible cast when the role never appears. The model hears the off-camera speaker and only lip-syncs the visible speaker on their own lines.
|
|
351
392
|
- `language`: a tag such as `en-US`, `zh-CN`, `ja`; the lines are written in it. `speaker`: a role of the clip's
|
|
352
393
|
`cast`; several speakers are several roles. `beat`: the template's beat the line re-makes (TEMPLATE.md marks them
|
|
353
394
|
"on camera").
|
|
@@ -383,6 +424,8 @@ picture does not change the price.
|
|
|
383
424
|
| `--no-anchor` | no anchor at all: unrelated clips, or a generator that takes no reference pictures |
|
|
384
425
|
| `--anchor` | the anchor also for a list of one clip, so that a later list finds `anchor.jpg` |
|
|
385
426
|
|
|
427
|
+
For shared-scene clips, follow [video-continuity.md](video-continuity.md) before selecting calls and references.
|
|
428
|
+
|
|
386
429
|
**How many calls.** A call's sound is continuous only inside it: shots generated one by one each bring a sound of
|
|
387
430
|
their own, and the film sounds cut up. So group by the continuity of the scene, not by shot:
|
|
388
431
|
|
|
@@ -415,7 +458,7 @@ one piece under those shots instead of being cut and re-timed with each (`video-
|
|
|
415
458
|
- Frames: `"firstFrame"` is the exact picture the clip starts from, `"lastFrame"` (only with it) the one it ends on.
|
|
416
459
|
Use them for an exact composition (the clip must begin on this still: the user's product picture or a still
|
|
417
460
|
composed from it, the last picture of the scene before it), and for a shot longer than one clip: `"continues": "assets/part-1.mp4"` makes a clip start from
|
|
418
|
-
the last frame of that clip (of the list, or already in the project), made after it. `template save --max-shot
|
|
461
|
+
the last frame of that clip (of the list, or already in the project), made after it. Optional `"continueAt": 347` selects a reviewed source frame instead. Select it after inspecting the actual clip and its surrounding motion. `template save --max-shot
|
|
419
462
|
<seconds>` cuts such a shot into parts, and each later part takes the clip that continues the part before it. A
|
|
420
463
|
clip with frames takes no `"images"`, `"videos"` or `"audios"` and no anchor: what it shows is
|
|
421
464
|
in its first frame.
|
package/references/video.md
CHANGED
|
@@ -23,6 +23,28 @@ keep their previous behavior; an approved repair uses a separate project and doe
|
|
|
23
23
|
[video-sound.md](video-sound.md); before placing effects, read [video-sfx.md](video-sfx.md). These production
|
|
24
24
|
checks remain required when onboarding or authorization has already been completed.
|
|
25
25
|
|
|
26
|
+
- Before planning multiple generated clips of one scene, read [video-continuity.md](video-continuity.md). Plan action and audio handoffs before generation and inspect every actual cut after rendering.
|
|
27
|
+
- Inputs first: before the first paid generation of a video, show the user everything that was prepared as the
|
|
28
|
+
input of a model and wait for their yes. `popost video inputs show project --requests requests.json --lang <the
|
|
29
|
+
language the user writes in>` builds it without paying: the input sheet (one picture: the product picture exactly
|
|
30
|
+
as it is sent, each person's picture with their name, every clip's reference pictures and frames, with captions)
|
|
31
|
+
and a summary (every prompt as it is sent, model, resolution, seconds, aspect ratio, credits; the voice, its script
|
|
32
|
+
and a sample to hear; the total). Send both in ONE message with the cost, and record the answer with `popost video
|
|
33
|
+
inputs confirm project --quote "<their words>"`. That one answer is the budget, the inputs and what was read from
|
|
34
|
+
the product picture: the user is asked once. `materials`, `generate` and the paid voice commands refuse with exit
|
|
35
|
+
code 3 and `confirm.reason: "inputs"` until then; a request, picture or voice line changed later is asked about
|
|
36
|
+
again, alone (run `inputs show` again). Only for a batch the user commissioned to run with nobody to ask:
|
|
37
|
+
`--unattended "<who authorised that, in their words>"`, and the delivery notes say the inputs were not confirmed.
|
|
38
|
+
- Language of prompts: write every clip and picture prompt, the facts of the product sheet and the voice script in
|
|
39
|
+
the language the user is writing in, and pass it once as `--lang <code>` (`product init` or `inputs show`; it is
|
|
40
|
+
stored in the project). The user then confirms exactly the text that is sent. The few sentences the program adds to
|
|
41
|
+
a prompt (product block, cast, anchor, speech and sound) are Chinese for `zh` and English for every other language.
|
|
42
|
+
Never translated: model ids, aspect ratios, file names, text printed on the product, brand names, quoted on-screen
|
|
43
|
+
text. A model whose entry in `popost video generate --models` says `"promptLanguage": "en"` is the exception: write
|
|
44
|
+
its prompts in English, and give the user a faithful version in their language first with the sent text underneath
|
|
45
|
+
(`popost video inputs translate project --item <key> --text "..."`; `inputs show` lists what is missing under
|
|
46
|
+
`displayMissing`, and a changed prompt asks for its version again). The same for a script in another language than
|
|
47
|
+
the user writes. Without `--lang` nothing changes: English sentences, one text.
|
|
26
48
|
- Money: apply one commission authorization, with a budget for this video or an allocation inside an authorized batch.
|
|
27
49
|
Popost voice-over, transcription, generated clips/pictures and music are paid when used; quotes are read-only.
|
|
28
50
|
Cover any necessary paid reference analysis before it runs, within existing authorization or a separately agreed
|
|
@@ -128,6 +150,7 @@ step needs; a catalogue is searched with its command, not read whole.
|
|
|
128
150
|
|
|
129
151
|
| Page | Holds | Open it |
|
|
130
152
|
|---|---|---|
|
|
153
|
+
| [video-continuity.md](video-continuity.md) | action and camera handoffs, selected source frames, sound continuity and independent cut review | before generating multiple clips of a shared scene and at final review |
|
|
131
154
|
| [video-replication.md](video-replication.md) | the strict replication contract: the event inventory, the target map, the audio and pair checks, the review bound to the artifact | every new replication of a reference, from step 1; again at review (step 7) |
|
|
132
155
|
| [video-elements.md](video-elements.md) | what a model reads in each shot (`elements.json`): roles, marks, and how each value is known | step 1, when writing or checking `ref/elements.json` |
|
|
133
156
|
| [video-templates.md](video-templates.md) | templates and fills: the slots and their limits, the forms of a fill, speaking a fill | steps 2, 4 and 6, when a fill is refused or a form is unclear |
|