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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion skills/popost/SOURCE-MANIFEST.sha256
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ c979cdc2b342fe1fe8057ce26f6288f0b8d34c9792419efc171d6323ea4fdfab src/video/comm
095c56a85bc5743658317fe5009193c18f551a5506d2031eb225fb4d561fb1d5 src/video/commands/loop-shared.ts
f38e00096d820bb3eb60d894a2e2c92e2292fef678654cebc753adca7885feb4 src/video/commands/loop.ts
e0df23efe8d9eb0caaac956bfcb3264030b5d6c698fbce90afbdde056a95f773 src/video/commands/make.ts
9267b874ae6a6a80cfd617fa1f56a37e88f82950743246067897114a116f1163 src/video/commands/materials.ts
33d634bebaa0b56970be26c191b65d50b49dc561a0bcfcefd4fbd95888571eff src/video/commands/materials.ts
2ceba4aec37bb222fb626b600fd74df0f502c61bdc1d02b6bde1d81a4e017735 src/video/commands/measure.ts
3206fe5ec809867d231d8265fe0cc2058ee384633141d7cd008df9d7df0f0a11 src/video/commands/media.ts
ac39d164e831a1fec8bdf8fb7dbb68c90cf3a8d2ab2edead5c8948e59b0ede13 src/video/commands/music-plan.ts
Expand Down
9 changes: 6 additions & 3 deletions skills/popost/src/video/commands/materials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ const LOOK_AGAIN_MS = 15_000;
/** How long materials waits for clips without --no-wait (POPOST_GEN_WAIT_MIN, as the generator). */
const waitLimitMs = (rt: Runtime): number => (Number(rt.env.POPOST_GEN_WAIT_MIN) > 0 ? Number(rt.env.POPOST_GEN_WAIT_MIN) : 30) * 60_000;

const PENDING_NEXT =
'The files in "pending" are being made by the selected generator and have already been submitted. Go on with the steps that do not need them (scenes, captions, the voice-over, the music, the timeline with the clips\' places), then run this same command again to pick them up before they are placed or rendered: nothing is paid twice. Clips queued after another are sent once that one is there.';
const pendingNext = (internal: boolean): string =>
'The files in "pending" are being made ' +
(internal ? 'on popost.ai, all at once (a picture takes about a minute, a clip a few minutes) and are paid for. ' :
'by the selected generator and have already been submitted. ') +
"Go on with the steps that do not need them (scenes, captions, the voice-over, the music, the timeline with the clips' places), then run this same command again to pick them up before they are placed or rendered: nothing is paid twice. Clips queued after another are sent once that one is there.";

/** "2 clips and 1 picture": what is being made, by kind. */
const beingMade = (pending: readonly MadeMaterial[]): string => {
Expand Down Expand Up @@ -247,7 +250,7 @@ export const materials = command(
...(r.materials.some((m) => m.pending || m.queued) ? {
pending: r.materials.filter((m) => m.pending).map((m) => ({ file: m.file, ...(m.task ? { task: m.task } : {}) })),
...(r.materials.some((m) => m.queued) ? { queued: r.materials.filter((m) => m.queued).map((m) => ({ file: m.file, after: m.waitsFor })) } : {}),
...(agree ? {} : { next: PENDING_NEXT }),
...(agree ? {} : { next: pendingNext(internal) }),
} : {}),
credits: r.credits, chargedCredits: r.chargedCredits, ...(r.anchor ? { anchor: r.anchor } : {}), ...(r.toConfirm ? { toConfirm: r.toConfirm } : {}), ...(agree ?? {}),
generation, materials: r.materials, ...(r.notes?.length ? { notes: r.notes } : {}), ...(r.clipMusic?.length ? { clipMusic: r.clipMusic } : {}), problems: [...r.problems, ...frameAdvice, ...groupingAdvice(requests)],
Expand Down
Loading