popost 4.6.12 → 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.
@@ -0,0 +1,2 @@
1
+ import type { CommandMain } from '../runtime';
2
+ export declare const main: CommandMain;
@@ -0,0 +1,33 @@
1
+ import { type ProjectTask } from '../providers/task';
2
+ import type { Runtime } from '../runtime';
3
+ import { type CleanStats } from './clean';
4
+ import { type ProjectFiles } from './project-files';
5
+ import { type AgentInfo, type TranscriptPart } from './transcript';
6
+ export declare const FORMAT = "popost-feedback/1";
7
+ export declare const MESSAGE_MAX_CHARS = 4000;
8
+ /** The most the platform takes, compressed. */
9
+ export declare const MAX_BUNDLE_BYTES: number;
10
+ export interface FeedbackOptions {
11
+ readonly message: string;
12
+ readonly dir?: string;
13
+ readonly transcript?: string;
14
+ readonly noTranscript?: boolean;
15
+ readonly session?: string;
16
+ }
17
+ export interface BuiltFeedback {
18
+ readonly message: string;
19
+ readonly agent: AgentInfo;
20
+ readonly transcript: TranscriptPart & {
21
+ readonly omittedImages: number;
22
+ };
23
+ readonly projectDir?: string;
24
+ readonly task?: ProjectTask;
25
+ readonly project?: ProjectFiles;
26
+ readonly stats: CleanStats;
27
+ readonly gzip: Uint8Array;
28
+ readonly sha256: string;
29
+ }
30
+ /** A path under the home folder as `~/…`. */
31
+ export declare const tildify: (rt: Runtime, path: string) => string;
32
+ /** Everything that would be sent, cleaned and compressed. Reads only local files; sends nothing. */
33
+ export declare const buildFeedback: (rt: Runtime, options: FeedbackOptions) => Promise<BuiltFeedback>;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * What a problem report (`popost feedback`) removes before anything leaves the machine, the same in the dry run and the
3
+ * upload, so the counts the dry run shows are the counts of what is sent:
4
+ *
5
+ * - pictures and other binary data: a `data:` URL, or a string of only base64 characters longer than 1 KB, becomes
6
+ * `[omitted: <mime or 'binary'> <N> KB]` (counted in `omittedImages`);
7
+ * - secrets: known token shapes (popost keys and device tokens, `sk-…`, AWS, GitHub, Slack, `Bearer …`, JWTs, PEM private
8
+ * keys), the signature and token parameters of signed URLs, values under a secret's name (isSecretName: a word of the
9
+ * name is secret, token, password, passwd, pwd, credential(s) or apikey, or `key` after api, access, secret, private,
10
+ * client, auth, signing, encryption, master, service or account) when the value is quoted (`"name": "value"`) or the
11
+ * name is a variable's (`NAME=value`), and the exact values of such variables of this process's environment (counted in
12
+ * `redactions`). A bare `key` (a map key, a storage key) and code (`token: params.token`) are left alone, so the
13
+ * source an agent read stays readable;
14
+ * - the user's home directory, written as `~`.
15
+ *
16
+ * It is a best effort over text the user agreed to send, not a guarantee: the dry run shows the user what goes.
17
+ */
18
+ import type { Runtime } from '../runtime';
19
+ export declare const REDACTED = "[redacted]";
20
+ /** A string longer than this that is only base64 characters is binary data, not text. */
21
+ export declare const BINARY_MIN_CHARS = 1024;
22
+ export interface CleanStats {
23
+ redactions: number;
24
+ omittedImages: number;
25
+ }
26
+ export interface Cleaner {
27
+ readonly stats: CleanStats;
28
+ /** One string: pictures out, secrets out, home as `~`. */
29
+ readonly text: (value: string) => string;
30
+ /** A parsed JSON value, every string and every value under a secret's name cleaned. */
31
+ readonly json: (value: unknown) => unknown;
32
+ }
33
+ export declare const isSecretName: (name: string) => boolean;
34
+ /** The values of this process's variables named like secrets, longest first (a key inside a longer value goes with it). */
35
+ export declare const environmentSecrets: (env: Runtime["env"]) => string[];
36
+ export declare const createCleaner: (options?: {
37
+ readonly homeDir?: string;
38
+ readonly secrets?: readonly string[];
39
+ }) => Cleaner;
40
+ /** A JSONL text cleaned line by line: a line that parses is cleaned as JSON and written back compact; any other stays text. */
41
+ export declare const cleanJsonl: (cleaner: Cleaner, raw: string) => {
42
+ text: string;
43
+ lines: number;
44
+ };
@@ -0,0 +1,19 @@
1
+ import type { Runtime } from '../runtime';
2
+ import type { Cleaner } from './clean';
3
+ export declare const MAX_DEPTH = 6;
4
+ export declare const MAX_LISTED = 2000;
5
+ export declare const DOCUMENT_MAX_BYTES: number;
6
+ export declare const DOCUMENTS_MAX_BYTES: number;
7
+ export interface ListedFile {
8
+ readonly path: string;
9
+ readonly bytes: number;
10
+ }
11
+ export interface ProjectFiles {
12
+ /** Every file found, POSIX paths relative to the project. */
13
+ readonly files: readonly ListedFile[];
14
+ /** The text that goes, by relative path. */
15
+ readonly documents: Readonly<Record<string, string>>;
16
+ /** More files than MAX_LISTED: the list stops there. */
17
+ readonly listTruncated: boolean;
18
+ }
19
+ export declare const collectProjectFiles: (rt: Runtime, root: string, cleaner: Cleaner) => Promise<ProjectFiles>;
@@ -0,0 +1,38 @@
1
+ import type { Runtime } from '../runtime';
2
+ import { type Cleaner } from './clean';
3
+ export declare const TRANSCRIPT_MAX_BYTES: number;
4
+ /** More than this is not read at all: only its end, so a huge file cannot exhaust memory. */
5
+ export declare const TRANSCRIPT_READ_MAX_BYTES: number;
6
+ export type TranscriptStatus = 'found' | 'missing' | 'skipped';
7
+ export type TranscriptFormat = 'claude-code-jsonl' | 'codex-jsonl' | 'jsonl' | 'text';
8
+ export interface AgentInfo {
9
+ readonly id: string;
10
+ readonly label: string;
11
+ readonly sessionId?: string;
12
+ }
13
+ export interface TranscriptPart {
14
+ readonly status: TranscriptStatus;
15
+ readonly path?: string;
16
+ readonly format?: TranscriptFormat;
17
+ readonly text?: string;
18
+ readonly lines: number;
19
+ readonly bytes: number;
20
+ readonly truncated: boolean;
21
+ /** Why there is none, for the user. */
22
+ readonly reason?: string;
23
+ }
24
+ export declare class FeedbackError extends Error {
25
+ readonly code: string;
26
+ name: string;
27
+ constructor(code: string, message: string);
28
+ }
29
+ /** The agent this command runs in, and its session: --session first, then what the agent sets. */
30
+ export declare const detectAgent: (rt: Runtime, session?: string) => AgentInfo;
31
+ /**
32
+ * The cleaned transcript. `file`: --transcript (resolved from the working folder); `skip`: --no-transcript. A named file
33
+ * that cannot be read is an error; an agent's transcript that is not found is `missing` with the reason.
34
+ */
35
+ export declare const readTranscript: (rt: Runtime, agent: AgentInfo, cleaner: Cleaner, options: {
36
+ file?: string;
37
+ skip?: boolean;
38
+ }) => Promise<TranscriptPart>;
@@ -0,0 +1,13 @@
1
+ import type { PopostClient } from '../providers/api';
2
+ import { type JsonRecord } from '../providers/base';
3
+ import type { Runtime } from '../runtime';
4
+ import type { BuiltFeedback } from './bundle';
5
+ export interface SentFeedback {
6
+ readonly id: string;
7
+ readonly reference: string;
8
+ readonly receivedAt: string;
9
+ }
10
+ /** The body of `POST /feedback`: what the report is, for the team's list; the report itself goes to the upload address. */
11
+ export declare const reservation: (rt: Runtime, built: BuiltFeedback, operationKey: string) => JsonRecord;
12
+ /** Reserve, upload, complete; once more with the same operation key when the bytes did not arrive. */
13
+ export declare const sendFeedback: (rt: Runtime, client: PopostClient, built: BuiltFeedback) => Promise<SentFeedback>;
@@ -157,6 +157,9 @@ export interface EditorHost {
157
157
  export interface Runtime {
158
158
  /** Desktop operating system. Virtual hosts may omit this capability. */
159
159
  readonly platform?: string;
160
+ /** Desktop-only: the processor architecture and the Node version, told in a problem report (`popost feedback`). */
161
+ readonly arch?: string;
162
+ readonly nodeVersion?: string;
160
163
  readonly fs: FileSystem;
161
164
  /** `node:path` of the platform for the real disk, `node:path/posix` for a virtual one. */
162
165
  readonly path: PlatformPath;
@@ -1,2 +1,2 @@
1
1
  /** The CLI version; equals `metadata.version` in SKILL.md and is sent to popost.ai as `x-popost-client-version`. */
2
- export declare const VERSION = "4.6.12";
2
+ export declare const VERSION = "4.6.13";
@@ -1,13 +1,9 @@
1
1
  import type { Runtime } from '../../runtime';
2
2
  import { type ReferenceLimits } from '../product/requests';
3
3
  import { type Commands } from './shared';
4
- /**
5
- * What the model of the clips takes, from the built-in generator's own list (POPOST_VIDEO_MODEL, else the platform's
6
- * default). A generator of the user's own, or a list that cannot be read, gives no limits and says why: the list of
7
- * requests is then not held to them, and says so.
8
- */
9
- /** POPOST_GEN_CMD names the built-in generator (popost video generate, whatever comes before and after it). */
4
+ /** Recognize either Popost executable form, including profile flags. Adapter arguments may also contain these words. */
10
5
  export declare const builtInGenerator: (rt: Runtime) => boolean;
6
+ /** Read the Popost model limits, or the exact-frame capability declared for an external adapter. */
11
7
  export declare const referenceLimits: (rt: Runtime) => Promise<{
12
8
  limits?: ReferenceLimits;
13
9
  unread?: string;
@@ -60,6 +60,7 @@ export interface MadeClip {
60
60
  credits?: number;
61
61
  chargedCredits: number;
62
62
  key: string;
63
+ task: string;
63
64
  }
64
65
  /** Makes the clip a request asks for at out, on popost.ai; resolves with the credits it cost and was charged now. */
65
66
  export declare const makeClip: (rt: Runtime, client: PopostClient, s: CloudSettings, request: GenerateRequest, out: string) => Promise<MadeClip>;
@@ -7,6 +7,7 @@ export interface SpeechLine {
7
7
  beat?: number;
8
8
  at?: number;
9
9
  to?: number;
10
+ offscreen?: boolean;
10
11
  }
11
12
  /** Native speech with timed lines: the model speaks them, lips and voice made together. */
12
13
  export interface DialogueSpeech {
@@ -22,6 +23,7 @@ export interface TimedLine {
22
23
  at: number;
23
24
  to: number;
24
25
  beat?: number;
26
+ offscreen?: true;
25
27
  }
26
28
  export interface TimedDialogue {
27
29
  mode: 'native';
@@ -31,6 +31,7 @@ import { type UnplannedClip } from './approved';
31
31
  import { type VisibleSpeech } from './speech';
32
32
  import { type BeatTimes } from './dialogue';
33
33
  import { type PromptPolicy } from '../prompt-lang';
34
+ import { type MaterialProvider } from './provenance';
34
35
  import { type ClipMusicBasis, type ModeContext, type RecordedException, type SoundMode } from '../sound/modes';
35
36
  import { type ClipMusicUse } from './clip-sound';
36
37
  import { type ReferenceLimits } from '../product/requests';
@@ -102,6 +103,7 @@ export interface Made {
102
103
  credits?: number;
103
104
  chargedCredits?: number;
104
105
  key?: string;
106
+ task?: string;
105
107
  }
106
108
  export interface Generator {
107
109
  /** Makes one file at out, with `env` added to its environment. Resolves with what it cost, when the command says. */
@@ -136,6 +138,8 @@ export interface MaterialRequest extends GenerateRequest {
136
138
  anchor?: boolean;
137
139
  /** The file of another clip (of this list, or of the project): this clip starts from its last frame, as its firstFrame. */
138
140
  continues?: string;
141
+ /** A reviewed source frame to continue from; omitted means the last frame. */
142
+ continueAt?: number;
139
143
  }
140
144
  /** motionAmount: how much a clip's picture moves (measure/amount.ts), to hold against the reference shot it is for. */
141
145
  /**
@@ -143,6 +147,7 @@ export interface MaterialRequest extends GenerateRequest {
143
147
  * because what it starts from (waitsFor) is still being made; a later run sends it.
144
148
  */
145
149
  export interface MadeMaterial {
150
+ receipt?: string;
146
151
  file: string;
147
152
  kind: GenerateKind;
148
153
  made: boolean;
@@ -187,6 +192,7 @@ export interface MaterialsReport {
187
192
  * of the list, or by a clip the project already has (covered).
188
193
  */
189
194
  export interface RequestPolicy {
195
+ frames?: boolean;
190
196
  selectedIdentity?: boolean;
191
197
  times?: BeatTimes;
192
198
  covered?: ReadonlySet<number>; /** The exceptions the project records for music inside clips. */
@@ -280,6 +286,8 @@ declare const makeMaterialsIn: (rt: Runtime, o: {
280
286
  times?: BeatTimes;
281
287
  music?: boolean;
282
288
  modes?: ModeContext;
289
+ frames?: boolean;
290
+ provider?: MaterialProvider;
283
291
  submitOnly?: boolean;
284
292
  onStep?: (file: string, done: number, total: number) => void;
285
293
  }) => Promise<MaterialsReport>;
@@ -1,3 +1,16 @@
1
+ import type { Runtime } from '../../runtime';
2
+ export type MaterialProvider = 'popost.ai' | 'external';
3
+ export interface MaterialReceipt {
4
+ version: 1;
5
+ pipeline: 'popost video materials';
6
+ provider: MaterialProvider;
7
+ sha256: string;
8
+ requestHash: string;
9
+ continues?: string;
10
+ continueAt?: number;
11
+ }
12
+ export declare const materialReceiptFile: (clip: string) => string;
13
+ export declare const readMaterialReceipt: (rt: Runtime, full: string) => Promise<MaterialReceipt | undefined>;
1
14
  export interface MaterialProvenance {
2
15
  request: object;
3
16
  voiceHash?: string;
@@ -29,7 +29,7 @@ export declare const bindEvidence: (rt: Runtime, dir: string, file: string, o: {
29
29
  */
30
30
  export declare const withEvidence: (list: readonly ReplicationEvidence[], e: ReplicationEvidence) => ReplicationEvidence[];
31
31
  /** The places --add knows, for messages. */
32
- export declare const PLACES = "audio, visual, inventory, music, scope, event:<id> (replication.json); plan:visual, plan:event:<id> (replication.plan.json); review:audio, review:visual, review:event:<id> (replication.review.json)";
32
+ export declare const PLACES = "audio, visual, inventory, music, scope, event:<id> (replication.json); plan:visual, plan:event:<id> (replication.plan.json); review:audio, review:visual, review:join-<frame>, review:event:<id> (replication.review.json)";
33
33
  export interface BoundReference {
34
34
  file: string;
35
35
  sha256: string;
@@ -206,6 +206,34 @@ export declare const reviewSchema: z.ZodObject<{
206
206
  }, z.core.$strict>>;
207
207
  id: z.ZodString;
208
208
  }, z.core.$strict>>>;
209
+ joins: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
+ status: z.ZodEnum<{
211
+ pending: "pending";
212
+ unknown: "unknown";
213
+ failed: "failed";
214
+ passed: "passed";
215
+ }>;
216
+ evidence: z.ZodArray<z.ZodObject<{
217
+ kind: z.ZodEnum<{
218
+ unknown: "unknown";
219
+ measured: "measured";
220
+ user: "user";
221
+ observed: "observed";
222
+ }>;
223
+ detail: z.ZodString;
224
+ file: z.ZodOptional<z.ZodString>;
225
+ sha256: z.ZodOptional<z.ZodString>;
226
+ media: z.ZodOptional<z.ZodEnum<{
227
+ video: "video";
228
+ frame: "frame";
229
+ data: "data";
230
+ audio: "audio";
231
+ }>>;
232
+ frame: z.ZodOptional<z.ZodNumber>;
233
+ at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
234
+ }, z.core.$strict>>;
235
+ at: z.ZodNumber;
236
+ }, z.core.$strict>>>;
209
237
  audioUses: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
238
  kind: z.ZodEnum<{
211
239
  sound: "sound";
@@ -620,6 +648,34 @@ export declare const contractSchema: z.ZodObject<{
620
648
  }, z.core.$strict>>;
621
649
  id: z.ZodString;
622
650
  }, z.core.$strict>>>;
651
+ joins: z.ZodOptional<z.ZodArray<z.ZodObject<{
652
+ status: z.ZodEnum<{
653
+ pending: "pending";
654
+ unknown: "unknown";
655
+ failed: "failed";
656
+ passed: "passed";
657
+ }>;
658
+ evidence: z.ZodArray<z.ZodObject<{
659
+ kind: z.ZodEnum<{
660
+ unknown: "unknown";
661
+ measured: "measured";
662
+ user: "user";
663
+ observed: "observed";
664
+ }>;
665
+ detail: z.ZodString;
666
+ file: z.ZodOptional<z.ZodString>;
667
+ sha256: z.ZodOptional<z.ZodString>;
668
+ media: z.ZodOptional<z.ZodEnum<{
669
+ video: "video";
670
+ frame: "frame";
671
+ data: "data";
672
+ audio: "audio";
673
+ }>>;
674
+ frame: z.ZodOptional<z.ZodNumber>;
675
+ at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
676
+ }, z.core.$strict>>;
677
+ at: z.ZodNumber;
678
+ }, z.core.$strict>>>;
623
679
  audioUses: z.ZodOptional<z.ZodArray<z.ZodObject<{
624
680
  kind: z.ZodEnum<{
625
681
  sound: "sound";
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import type { ReplicationAudioUse, ReplicationContract, ReplicationReview } from './contract';
8
8
  import type { ReplicationPlan } from './production';
9
+ import type { Resolved, ResolvedSegment } from '../types';
9
10
  /** The final video as the review binds it: its path in the project, SHA-256 and clock. */
10
11
  export interface ReviewedVideo {
11
12
  file: string;
@@ -25,6 +26,21 @@ export interface BuiltReview {
25
26
  /** Required events with no frames: not in the plan and not given. */
26
27
  missing: string[];
27
28
  }
29
+ /** Sample both sides of each cut and the middle of any transition between them. */
30
+ export declare const joinFrames: (segments: readonly Pick<ResolvedSegment, "start" | "end" | "transition">[], fps: number) => {
31
+ at: number;
32
+ frames: number[];
33
+ }[];
34
+ /** Equal frame counts plus less than a quarter-frame accumulated clock drift preserve frame identity. */
35
+ export declare const matchingReviewClock: (clock: {
36
+ frames: number;
37
+ fps: number;
38
+ }, video: Pick<ReviewedVideo, "frames" | "fps">) => boolean;
39
+ /** Layer visibility can introduce a cut inside a segment, including a static picture used over a generated clip. */
40
+ export declare const timelineJoins: (r: Pick<Resolved, "segments" | "items" | "frames" | "canvas">, extra?: readonly number[]) => {
41
+ at: number;
42
+ frames: number[];
43
+ }[];
28
44
  /** n frames spread over total, one in the middle of each nth. */
29
45
  export declare const spreadFrames: (total: number, n: number) => number[];
30
46
  /** The lead-in, middle and resolved frame of a target span [a, b), inside the video; two at least where it has two. */
@@ -40,6 +56,7 @@ export declare const buildReview: (o: {
40
56
  plan?: ReplicationPlan;
41
57
  video: ReviewedVideo;
42
58
  visual: number[];
59
+ joins?: ReturnType<typeof joinFrames>;
43
60
  events: Readonly<Record<string, number[]>>;
44
61
  audioUses?: ReplicationAudioUse[];
45
62
  }) => BuiltReview;
@@ -1,3 +1,3 @@
1
1
  /** Strict speech metadata uses the audio track's local clock, independently of its timeline placement. */
2
2
  import type { Problem, Project, Resolved } from '../types';
3
- export declare const voiceSpanProblems: (project: Pick<Project, "tracks">, resolved: Pick<Resolved, "audio" | "frames">) => Problem[];
3
+ export declare const voiceSpanProblems: (project: Partial<Pick<Project, "tracks">>, resolved: Pick<Resolved, "audio" | "frames">) => Problem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "popost",
3
- "version": "4.6.12",
3
+ "version": "4.6.13",
4
4
  "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.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "CLIPCAT AI LTD",
@@ -0,0 +1,40 @@
1
+ # Continuity across generated clips
2
+
3
+ Read this before planning more than one generated clip in a shared scene, and again when repairing a visible seam. It applies to built-in models and user-provided API adapters on every Agent host.
4
+
5
+ ## Plan the handoff before generation
6
+
7
+ Group continuous action into the fewest generations the selected model supports. Its maximum duration is a production limit. Select the editorial cut from the reference action and dialogue, reserving short handles within the requested duration for trimming. Do not add time or compress speech to fit a rigid split.
8
+
9
+ For each join, keep the handoff in the project’s production notes with the preceding and following material, intended cut type (continuous shot, motivated shot change, or reference scene change), source cut-out and cut-in positions once known, speaker turn and sound continuity. Record the actor's position, gaze, hand pose and action phase, prop ownership, product details, framing, camera axis, motion direction and lighting. Inspect the actual previous clip before selecting these values.
10
+
11
+ - Continuous shot. Use a verified video continuation capability when available. For a frame-constrained model, `continues` takes the previous generated clip as the source. Optional `continueAt` selects its reviewed source frame instead of its last frame. This uses the source clip's frame index, independently of the project FPS. Existing requests without it still continue from the last frame. Select a frame with the correct product and cast. Inspect several preceding frames to understand motion, then describe how that motion proceeds. A still alone cannot preserve velocity.
12
+ - Motivated shot change. Cut on an actual movement, glance, reveal or conversational turn. Match the action phase and screen direction, preserve camera axis and space, and select the new framing before generation. Use reference video or consecutive frames only when the selected provider supports them. Retain product and cast references within its limits.
13
+ - Reference scene change. Preserve the reference's motivated transition and the user's subject changes. Shared actors and products still retain their identity.
14
+
15
+ A reference image constrains appearance. It does not enforce the first frame. Verify the selected API's actual frame/video/audio request fields and mode combinations. `POPOST_GEN_FRAMES=true` applies only to a verified exact-frame adapter. Frame mode currently excludes image, video and audio references. When the needed visual and voice constraints cannot coexist in that mode, use a supported multimodal route with an editorial action match, or report the capability gap. Do not silently discard voice references or change the provider/model.
16
+
17
+ `continues` dependencies run sequentially and use actual predecessor bytes. Preserve receipts, request keys and accepted clips. Reconcile a pending submission before any replacement request.
18
+
19
+ ## Select the actual cut
20
+
21
+ Inspect the preceding tail and following opening at normal speed, then frame by frame. Find a pair with compatible action and sound. Trim start-up pauses and repeated motion with source `in` positions and project spans. Preserve complete requested words and native lip sync. For off-camera dialogue, a J-cut or L-cut can bridge a motivated shot change when the timeline supports the required audio placement. Keep ambience continuous, and compare speaker timbre, pace, room sound and loudness. Crossfade ambience only where it helps; overlapping different spoken syllables is a failure.
22
+
23
+ Small exposure or colour differences can be matched. A different pose, camera axis, location, product structure or repeated action needs a repaired generation or a different valid cut. Regenerate the affected material within repair authorization and retain the earlier accepted files.
24
+
25
+ A static product photograph is permitted when the brief or reference calls for a product insert. It requires its own entry and exit review. Do not insert one as the default way to cover a failed generated join. A dissolve, zoom or optical interpolation also needs a motivated use and review for ghosts or invented product detail.
26
+
27
+ ## Review every actual boundary
28
+
29
+ Run `replication review` on the rendered artifact. It samples segment joins and image/video layer entry and exit boundaries, writes their `join-<frame>.jpg` sheets and audible `join-<frame>.mp4` previews, and creates a separate pending `join-<frame>` finding for each. Review the whole render for internal generated-shot cuts, and register each internal cut with `--join <output-frame>` before recording verdicts. A repeated `--join` accepts more boundaries.
30
+
31
+ ```bash
32
+ popost video replication review project --artifact project/renders/final.mp4 --join 243
33
+ # Watch each audible join preview and the complete video, then record actual findings.
34
+ popost video replication review project --artifact project/renders/final.mp4 --passed join-243,join-450
35
+ popost video replication check project --artifact project/renders/final.mp4
36
+ ```
37
+
38
+ At normal playback speed, check action progression, pose, gaze, camera direction, framing, spatial anchors, identity, garment structure, speech, lip sync and ambience. Different framing can be appropriate when the action motivates it. Similar-looking stills alone cannot establish continuity. Automated measurements identify candidates for inspection and never replace this verdict.
39
+
40
+ A mismatched clock must produce an actionable failure. Equal frame counts and less than a quarter-frame accumulated timing drift allow frame-index mapping despite small container-rate differences. Larger drift requires a current render or an explicit retiming implementation. A general visual pass cannot pass an independent join. Changed artifact bytes reset verdicts. Missing, failed or pending joins remain visible in acceptance status. Deliver an unfinished version as a draft with its actual gaps when a capability or authorized budget prevents repair.
@@ -284,7 +284,9 @@ popost video replication check project --reference inputs/reference.mp4 --artifa
284
284
  `replication review` writes `replication.review.json`: the source fingerprint and revision, the artifact's SHA-256 and
285
285
  clock, the audio inventory from `replication.audio.json`, and for the sound, the look and every required event
286
286
  evidence bound to this file (the whole sound; the middle of each shot; each event's lead-in, middle and resolved frame
287
- from its span in the plan, or `--event <id>=F,F,F`), each finding pending, with sheets of those frames in
287
+ from its span in the plan, or `--event <id>=F,F,F`). For an editable project, it maps the compiled frame clock to the artifact and fails explicitly when the mapping is unsafe. It samples every timeline join and image/video layer entry and exit before and after the cut and within any transition. Each has an independent `join-<frame>` finding and an audible MP4 preview. Register internal generated-shot cuts with `--join <output-frame>`. Watch those join windows against
288
+ the reference and listen through dialogue and ambience breaks. The `join-*.jpg` sheets are part of the visual
289
+ verdict. Independently watch and judge each join using [video-continuity.md](video-continuity.md); a general visual verdict cannot pass it. Each finding starts pending, with sheets of those frames in
288
290
  `review/replication/`. Verdicts are given in a call of their own on the same file, after looking. A new render bound
289
291
  again sets every finding back to pending. Add other evidence with `replication evidence project --file … --add review:<name>`.
290
292
 
@@ -3,9 +3,16 @@
3
3
  Step 0 of [making a video](video.md), whose rules for every step hold here; after it: [step 1, Read the reference](video-step-1-read.md).
4
4
 
5
5
  ```bash
6
+ popost --version
6
7
  popost video doctor
7
8
  ```
8
9
 
10
+ Loading the Skill, finding its matching CLI, and running each required production capability are separate checks on
11
+ every host. If `popost` is outside the host PATH, use the executable or `node <package>/dist/cli.js` at its actual
12
+ installed path. Keep the same project if rendering needs a compatible Chromium executable (`POPOST_CHROME`) or
13
+ another authorized runtime. The generator replaces only production of requested assets. Keep all other steps in the
14
+ Popost project, including with a user-selected provider.
15
+
9
16
  - `"ok": false`: inspect `missing`. Within the existing preparation authorization, install the missing FFmpeg or
10
17
  compatible browser, or select its existing executable, then rerun `doctor` and verify the needed operation.
11
18
  Follow [video-tools.md](video-tools.md#check-the-installation-before-testing-a-reference). If preparation cannot
@@ -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" }`.
@@ -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
@@ -366,6 +388,7 @@ the platform's free quotes (the reference pictures of a clip are uploaded for it
366
388
  { "speaker": "host", "text": "The exact words of beat 4.", "beat": 4 }] } }
367
389
  ```
368
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.
369
392
  - `language`: a tag such as `en-US`, `zh-CN`, `ja`; the lines are written in it. `speaker`: a role of the clip's
370
393
  `cast`; several speakers are several roles. `beat`: the template's beat the line re-makes (TEMPLATE.md marks them
371
394
  "on camera").
@@ -401,6 +424,8 @@ picture does not change the price.
401
424
  | `--no-anchor` | no anchor at all: unrelated clips, or a generator that takes no reference pictures |
402
425
  | `--anchor` | the anchor also for a list of one clip, so that a later list finds `anchor.jpg` |
403
426
 
427
+ For shared-scene clips, follow [video-continuity.md](video-continuity.md) before selecting calls and references.
428
+
404
429
  **How many calls.** A call's sound is continuous only inside it: shots generated one by one each bring a sound of
405
430
  their own, and the film sounds cut up. So group by the continuity of the scene, not by shot:
406
431
 
@@ -433,7 +458,7 @@ one piece under those shots instead of being cut and re-timed with each (`video-
433
458
  - Frames: `"firstFrame"` is the exact picture the clip starts from, `"lastFrame"` (only with it) the one it ends on.
434
459
  Use them for an exact composition (the clip must begin on this still: the user's product picture or a still
435
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
436
- 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
437
462
  <seconds>` cuts such a shot into parts, and each later part takes the clip that continues the part before it. A
438
463
  clip with frames takes no `"images"`, `"videos"` or `"audios"` and no anchor: what it shows is
439
464
  in its first frame.
@@ -23,6 +23,7 @@ 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.
26
27
  - Inputs first: before the first paid generation of a video, show the user everything that was prepared as the
27
28
  input of a model and wait for their yes. `popost video inputs show project --requests requests.json --lang <the
28
29
  language the user writes in>` builds it without paying: the input sheet (one picture: the product picture exactly
@@ -149,6 +150,7 @@ step needs; a catalogue is searched with its command, not read whole.
149
150
 
150
151
  | Page | Holds | Open it |
151
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 |
152
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) |
153
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` |
154
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 |