@nodetool-ai/storyboard 0.8.1 → 0.8.2
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/dist/.nodetool-build-stamp +1 -1
- package/dist/io/render-shots.d.ts +10 -3
- package/dist/io/render-shots.d.ts.map +1 -1
- package/dist/io/render-shots.js +112 -78
- package/dist/io/render-shots.js.map +1 -1
- package/dist/render-plan.d.ts +10 -0
- package/dist/render-plan.d.ts.map +1 -1
- package/dist/render-plan.js +125 -35
- package/dist/render-plan.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-
|
|
1
|
+
2026-10-12T08:37:12.191Z
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* supplies the four operations below and keeps its own ownership checks,
|
|
11
11
|
* generation origin and conflict handling.
|
|
12
12
|
*/
|
|
13
|
-
import type { ImageRef, KeyframeVersion } from "@nodetool-ai/protocol";
|
|
13
|
+
import type { ImageRef, KeyframeVersion, StoryboardRenderProvenance } from "@nodetool-ai/protocol";
|
|
14
14
|
import type { StoryboardDocument } from "../document.js";
|
|
15
15
|
import type { ShotRenderPlan } from "../render-plan.js";
|
|
16
16
|
/** The provider call a plan turns into. */
|
|
@@ -18,7 +18,7 @@ export interface RenderGenerationRequest {
|
|
|
18
18
|
/** Minted by the caller of `runGeneration`, so a background caller has it early. */
|
|
19
19
|
id: string;
|
|
20
20
|
provider: string;
|
|
21
|
-
capability: "text_to_image" | "image_to_video" | "reference_to_video" | "text_to_video";
|
|
21
|
+
capability: "text_to_image" | "image_to_image" | "image_to_video" | "reference_to_video" | "text_to_video";
|
|
22
22
|
model: string;
|
|
23
23
|
params: Record<string, unknown>;
|
|
24
24
|
/** Save the result as an asset: the board can only reference persisted media. */
|
|
@@ -32,6 +32,7 @@ export interface RenderGenerationRequest {
|
|
|
32
32
|
target_type: "storyboard_keyframe" | "storyboard_clip";
|
|
33
33
|
target_id: string;
|
|
34
34
|
selected: boolean;
|
|
35
|
+
provenance: StoryboardRenderProvenance;
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export interface RenderGenerationResult {
|
|
@@ -74,10 +75,16 @@ export interface StoryboardRenderHost {
|
|
|
74
75
|
export interface RenderShotsOptions {
|
|
75
76
|
/** Renders in flight at once. Defaults to 1. */
|
|
76
77
|
concurrency?: number;
|
|
77
|
-
/** Named resolution tier
|
|
78
|
+
/** Named resolution tier, overriding the shared still or clip default. */
|
|
78
79
|
resolution?: string;
|
|
79
80
|
/** Ids for the generation rows. Defaults to `crypto.randomUUID`. */
|
|
80
81
|
newId?: () => string;
|
|
82
|
+
/**
|
|
83
|
+
* The still model supports `image_to_image`. A still whose entities carry
|
|
84
|
+
* reference images then renders through it, and the provider layer passes
|
|
85
|
+
* those images as inputs. Otherwise stills render from text alone.
|
|
86
|
+
*/
|
|
87
|
+
stillModelTakesImages?: boolean;
|
|
81
88
|
}
|
|
82
89
|
/** One shot's outcome, in plan order. */
|
|
83
90
|
export interface ShotRenderOutcome {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-shots.d.ts","sourceRoot":"","sources":["../../src/io/render-shots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"render-shots.d.ts","sourceRoot":"","sources":["../../src/io/render-shots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,OAAO,KAAK,EAEV,QAAQ,EACR,eAAe,EAEf,0BAA0B,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,2CAA2C;AAC3C,MAAM,WAAW,uBAAuB;IACtC,oFAAoF;IACpF,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EACN,eAAe,GACf,gBAAgB,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own ownership checks,
|
|
11
11
|
* generation origin and conflict handling.
|
|
12
12
|
*/
|
|
13
|
-
import { stampRenderInputs } from "@nodetool-ai/protocol";
|
|
13
|
+
import { assertProductionGenerationAllowed, CLIP_RESOLUTION, STILL_RESOLUTION, storyboardRenderVersion, stampRenderInputs } from "@nodetool-ai/protocol";
|
|
14
|
+
import { productionCandidateIdentityForDestination } from "@nodetool-ai/timeline";
|
|
14
15
|
/** Attempts to land a document write: the first try plus one re-read-and-reapply (ADR 0001). */
|
|
15
16
|
const CAS_ATTEMPTS = 2;
|
|
16
17
|
const errorMessage = (e) => e instanceof Error ? e.message : String(e);
|
|
@@ -66,9 +67,12 @@ async function patchShot(host, storyboardId, shotId, patch) {
|
|
|
66
67
|
const isError = (value) => !!value &&
|
|
67
68
|
typeof value === "object" &&
|
|
68
69
|
typeof value.error === "string";
|
|
70
|
+
const hasReferenceImages = (plan) => plan.entities.some((entity) => entity.reference_images.length > 0);
|
|
69
71
|
/** The provider capability a plan calls. */
|
|
70
|
-
const capabilityFor = (plan) => plan.kind === "keyframe"
|
|
71
|
-
?
|
|
72
|
+
const capabilityFor = (plan, stillModelTakesImages) => plan.kind === "keyframe"
|
|
73
|
+
? stillModelTakesImages && hasReferenceImages(plan)
|
|
74
|
+
? "image_to_image"
|
|
75
|
+
: "text_to_image"
|
|
72
76
|
: plan.mode === "reference"
|
|
73
77
|
? "reference_to_video"
|
|
74
78
|
: plan.mode === "direct"
|
|
@@ -92,7 +96,10 @@ export async function renderShots(host, ref, plans, options = {}) {
|
|
|
92
96
|
};
|
|
93
97
|
if (plan.slug !== undefined)
|
|
94
98
|
base.slug = plan.slug;
|
|
95
|
-
|
|
99
|
+
if (plan.preflightError !== undefined) {
|
|
100
|
+
return { ...base, error: plan.preflightError };
|
|
101
|
+
}
|
|
102
|
+
const capability = capabilityFor(plan, plan.stillModelTakesImages ?? options.stillModelTakesImages === true);
|
|
96
103
|
if (capability === "image_to_video" && !plan.sourceKeyframe) {
|
|
97
104
|
return {
|
|
98
105
|
...base,
|
|
@@ -103,10 +110,11 @@ export async function renderShots(host, ref, plans, options = {}) {
|
|
|
103
110
|
const params = {
|
|
104
111
|
prompt: plan.prompt,
|
|
105
112
|
entities: plan.entities,
|
|
106
|
-
aspect_ratio: plan.aspectRatio
|
|
113
|
+
aspect_ratio: plan.aspectRatio,
|
|
114
|
+
resolution: options.resolution ??
|
|
115
|
+
(plan.kind === "keyframe" ? STILL_RESOLUTION : CLIP_RESOLUTION)
|
|
107
116
|
};
|
|
108
|
-
if (plan.kind === "clip") {
|
|
109
|
-
params["resolution"] = options.resolution;
|
|
117
|
+
if (plan.kind === "clip" && plan.durationSeconds !== undefined) {
|
|
110
118
|
params["duration_seconds"] = plan.durationSeconds;
|
|
111
119
|
}
|
|
112
120
|
if (capability === "image_to_video" && plan.sourceKeyframe) {
|
|
@@ -140,83 +148,109 @@ export async function renderShots(host, ref, plans, options = {}) {
|
|
|
140
148
|
}
|
|
141
149
|
params["reference_images"] = references;
|
|
142
150
|
}
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (!asset?.asset_id) {
|
|
165
|
-
return {
|
|
166
|
-
...base,
|
|
167
|
-
error: "The render succeeded but could not be saved as an asset, so it cannot be attached to the shot. This host has no asset storage wired."
|
|
151
|
+
const candidates = plan.productionCandidates ?? [undefined];
|
|
152
|
+
const batchId = plan.productionCandidates !== undefined ? newId() : undefined;
|
|
153
|
+
let outcome = base;
|
|
154
|
+
for (const candidate of candidates) {
|
|
155
|
+
const generationId = newId();
|
|
156
|
+
const identity = candidate !== undefined && batchId !== undefined
|
|
157
|
+
? productionCandidateIdentityForDestination(batchId, "storyboard_shot", plan.shotId, candidate.identity.variationIndex)
|
|
158
|
+
: undefined;
|
|
159
|
+
const productionSnapshot = candidate !== undefined && identity !== undefined
|
|
160
|
+
? { ...candidate.snapshot, ...identity }
|
|
161
|
+
: undefined;
|
|
162
|
+
const provenance = {
|
|
163
|
+
render_inputs: stampRenderInputs(plan.renderInputs),
|
|
164
|
+
...(identity !== undefined && {
|
|
165
|
+
candidateId: identity.candidateId,
|
|
166
|
+
batchId: identity.batchId,
|
|
167
|
+
requestId: identity.requestId,
|
|
168
|
+
variationId: identity.variationId,
|
|
169
|
+
variationIndex: identity.variationIndex,
|
|
170
|
+
productionSnapshot
|
|
171
|
+
})
|
|
168
172
|
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
const persist = plan.kind === "keyframe"
|
|
174
|
+
? { name: `shot-${plan.index + 1}-still` }
|
|
175
|
+
: { name: `shot-${plan.index + 1}-clip`, mime: "video/mp4" };
|
|
176
|
+
const current = await host.getStoryboard(ref.id);
|
|
177
|
+
const currentShot = current?.document.shots.find((shot) => shot.id === plan.shotId);
|
|
178
|
+
if (!currentShot)
|
|
179
|
+
throw new Error(`Shot ${plan.shotId} no longer exists.`);
|
|
180
|
+
assertProductionGenerationAllowed(currentShot.production, capability);
|
|
181
|
+
const result = await host.runGeneration({
|
|
182
|
+
id: generationId,
|
|
183
|
+
provider: plan.model.provider,
|
|
184
|
+
capability,
|
|
185
|
+
model: plan.model.model,
|
|
186
|
+
params,
|
|
187
|
+
persist,
|
|
188
|
+
destination: {
|
|
189
|
+
document_id: ref.id,
|
|
190
|
+
target_type: plan.kind === "keyframe"
|
|
191
|
+
? "storyboard_keyframe"
|
|
192
|
+
: "storyboard_clip",
|
|
193
|
+
target_id: plan.shotId,
|
|
194
|
+
selected: true,
|
|
195
|
+
provenance
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
const asset = result.assets[0];
|
|
199
|
+
if (!asset?.asset_id) {
|
|
200
|
+
return {
|
|
201
|
+
...base,
|
|
202
|
+
error: "The render succeeded but could not be saved as an asset, so it cannot be attached to the shot. This host has no asset storage wired."
|
|
180
203
|
};
|
|
181
|
-
|
|
182
|
-
|
|
204
|
+
}
|
|
205
|
+
const assetId = asset.asset_id;
|
|
206
|
+
const assetUri = asset.uri ?? "";
|
|
207
|
+
const updated = await patchShot(host, ref.id, plan.shotId, (current) => {
|
|
208
|
+
if (plan.kind === "keyframe") {
|
|
209
|
+
const keyframe = storyboardRenderVersion({
|
|
210
|
+
type: "image",
|
|
211
|
+
asset_id: assetId,
|
|
212
|
+
uri: assetUri
|
|
213
|
+
}, provenance);
|
|
214
|
+
const versions = current.keyframe_versions ??
|
|
215
|
+
(current.keyframe ? [current.keyframe] : []);
|
|
216
|
+
return {
|
|
217
|
+
...current,
|
|
218
|
+
keyframe,
|
|
219
|
+
keyframe_versions: [...versions, keyframe],
|
|
220
|
+
status: "keyframe_ready"
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
const clip = storyboardRenderVersion({
|
|
224
|
+
type: "video",
|
|
225
|
+
asset_id: assetId,
|
|
226
|
+
uri: assetUri
|
|
227
|
+
}, provenance);
|
|
228
|
+
const bytes = result.output;
|
|
229
|
+
if (bytes instanceof Uint8Array && host.videoDurationSeconds) {
|
|
230
|
+
const seconds = host.videoDurationSeconds(bytes);
|
|
231
|
+
if (seconds !== null)
|
|
232
|
+
clip.duration = seconds;
|
|
233
|
+
}
|
|
234
|
+
const versions = current.clip_versions ?? (current.clip ? [current.clip] : []);
|
|
183
235
|
return {
|
|
184
236
|
...current,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
status: "
|
|
237
|
+
clip,
|
|
238
|
+
clip_versions: [...versions, clip],
|
|
239
|
+
status: "rendered"
|
|
188
240
|
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (seconds !== null)
|
|
200
|
-
clip.duration = seconds;
|
|
201
|
-
}
|
|
202
|
-
const versions = current.clip_versions ?? (current.clip ? [current.clip] : []);
|
|
203
|
-
return {
|
|
204
|
-
...current,
|
|
205
|
-
clip,
|
|
206
|
-
clip_versions: [...versions, clip],
|
|
207
|
-
status: "rendered"
|
|
241
|
+
});
|
|
242
|
+
if (isError(updated))
|
|
243
|
+
return { ...base, error: updated.error };
|
|
244
|
+
outcome = {
|
|
245
|
+
...base,
|
|
246
|
+
ok: true,
|
|
247
|
+
assetId,
|
|
248
|
+
assetUri,
|
|
249
|
+
generationId,
|
|
250
|
+
status: updated.status
|
|
208
251
|
};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return { ...base, error: updated.error };
|
|
212
|
-
return {
|
|
213
|
-
...base,
|
|
214
|
-
ok: true,
|
|
215
|
-
assetId,
|
|
216
|
-
assetUri,
|
|
217
|
-
generationId,
|
|
218
|
-
status: updated.status
|
|
219
|
-
};
|
|
252
|
+
}
|
|
253
|
+
return outcome;
|
|
220
254
|
}
|
|
221
255
|
catch (e) {
|
|
222
256
|
await patchShot(host, ref.id, plan.shotId, (current) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-shots.js","sourceRoot":"","sources":["../../src/io/render-shots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"render-shots.js","sourceRoot":"","sources":["../../src/io/render-shots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,iCAAiC,EACjC,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yCAAyC,EAAE,MAAM,u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AC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACvD,GAAG,OAAO;gBACV,MAAM,EAAE,QAAQ;aACjB,CAAC,CAAC,CAAC;YACJ,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,UAAU,YAAY,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACxE,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/render-plan.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Pure: no provider, no database, no clock.
|
|
11
11
|
*/
|
|
12
12
|
import type { BoardRenderContext, Entity, ImageRef, KeyframeVersion, RenderInputsDraft } from "@nodetool-ai/protocol";
|
|
13
|
+
import type { CompiledProductionCandidate } from "@nodetool-ai/timeline";
|
|
13
14
|
import type { ScriptLine } from "@nodetool-ai/protocol/api-schemas/scripts.js";
|
|
14
15
|
import type { StoryboardDocument } from "./document.js";
|
|
15
16
|
/** The wire shape the provider layer expands: descriptor text and one image. */
|
|
@@ -32,7 +33,13 @@ export interface ShotRenderPlan {
|
|
|
32
33
|
model: {
|
|
33
34
|
provider: string;
|
|
34
35
|
model: string;
|
|
36
|
+
supportedTasks?: string[];
|
|
35
37
|
};
|
|
38
|
+
/** Capability support resolved by the host for this effective still model. */
|
|
39
|
+
stillModelTakesImages?: boolean;
|
|
40
|
+
/** Production requests compiled before spending, one for each requested take. */
|
|
41
|
+
productionCandidates?: CompiledProductionCandidate[];
|
|
42
|
+
preflightError?: string;
|
|
36
43
|
aspectRatio: string;
|
|
37
44
|
/** How a clip is produced. Always `"keyframe"` on a stills plan. */
|
|
38
45
|
mode: "keyframe" | "direct" | "reference";
|
|
@@ -52,6 +59,9 @@ export interface ShotRenderPlan {
|
|
|
52
59
|
export interface ShotRenderPlanOptions {
|
|
53
60
|
provider?: string;
|
|
54
61
|
model?: string;
|
|
62
|
+
supportedTasks?: string[];
|
|
63
|
+
/** Planning identity. The renderer assigns a fresh batch before dispatch. */
|
|
64
|
+
batchId?: string;
|
|
55
65
|
style?: string;
|
|
56
66
|
aspectRatio?: string;
|
|
57
67
|
/** Forces every shot's clip mode for this call only. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-plan.d.ts","sourceRoot":"","sources":["../src/render-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"render-plan.d.ts","sourceRoot":"","sources":["../src/render-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAaH,OAAO,KAAK,EACV,kBAAkB,EAElB,MAAM,EACN,QAAQ,EACR,eAAe,EACf,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,gFAAgF;AAChF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,iBAAi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CAwBpB;AAyCD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,kBAAkB,EACvB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,EAAE,UAAU,GAAG,MAAM,EACzB,OAAO,CAAC,EAAE,MAAM,EAAE,EAClB,OAAO,GAAE,qBAA0B,GAClC,cAAc,EAAE,CA6KlB"}
|
package/dist/render-plan.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Pure: no provider, no database, no clock.
|
|
11
11
|
*/
|
|
12
|
-
import { currentRenderInputs, entitiesForShot, isVersionStale, keyframePrompt, clipPromptFor, sceneForShot, shotRenderMode } from "@nodetool-ai/protocol";
|
|
13
|
-
import { effectiveShotDuration } from "@nodetool-ai/timeline";
|
|
12
|
+
import { assertProductionGenerationAllowed, currentRenderInputs, entitiesForShot, entityConditioningHash, isVersionStale, keyframePrompt, clipPromptFor, sceneForShot, shotRenderMode } from "@nodetool-ai/protocol";
|
|
13
|
+
import { compileProductionCandidates, effectiveShotDuration } from "@nodetool-ai/timeline";
|
|
14
14
|
function imageAssetId(image) {
|
|
15
15
|
if (typeof image.asset_id === "string" && image.asset_id.length > 0) {
|
|
16
16
|
return image.asset_id;
|
|
@@ -39,6 +39,8 @@ export function boardRenderContext(doc, entities) {
|
|
|
39
39
|
null,
|
|
40
40
|
style: doc.style,
|
|
41
41
|
scenes: doc.screenplay?.scenes ?? null,
|
|
42
|
+
production_reference_asset_ids: doc.creative_context?.reference_bindings?.map((binding) => binding.asset_id) ?? [],
|
|
43
|
+
entity_conditioning_hash: entityConditioningHash(entities.filter((entity) => (doc.entityIds ?? []).includes(entity.id))),
|
|
42
44
|
reference_asset_ids: entities
|
|
43
45
|
.filter((entity) => (doc.entityIds ?? []).includes(entity.id))
|
|
44
46
|
.flatMap((entity) => (entity.reference_images ?? []).map(imageAssetId))
|
|
@@ -50,7 +52,10 @@ const wireEntity = (entity) => ({
|
|
|
50
52
|
descriptor: entity.descriptor,
|
|
51
53
|
reference_images: entity.reference_images?.slice(0, 1) ?? []
|
|
52
54
|
});
|
|
53
|
-
const stringField = (selection, key) =>
|
|
55
|
+
const stringField = (selection, key) => {
|
|
56
|
+
const value = selection?.[key];
|
|
57
|
+
return typeof value === "string" ? value : "";
|
|
58
|
+
};
|
|
54
59
|
/** Resolve a target: shot id, 0-based index, or slug. */
|
|
55
60
|
function findShot(shots, target) {
|
|
56
61
|
const byId = shots.find((s) => s.id === target);
|
|
@@ -91,36 +96,117 @@ export function planShotRenders(doc, entities, kind, targets, options = {}) {
|
|
|
91
96
|
const board = boardRenderContext(doc, entities);
|
|
92
97
|
const style = options.style ?? doc.style;
|
|
93
98
|
const aspectRatio = options.aspectRatio ?? (doc.aspectRatio || "16:9");
|
|
94
|
-
const selection = kind === "keyframe" ? doc.imageModel : doc.videoModel;
|
|
95
|
-
const model = {
|
|
96
|
-
provider: options.provider || stringField(selection, "provider"),
|
|
97
|
-
model: options.model || stringField(selection, "id")
|
|
98
|
-
};
|
|
99
|
-
// What this call renders with, which is not always what the board says.
|
|
100
|
-
const rendered = {
|
|
101
|
-
...board,
|
|
102
|
-
...(kind === "keyframe"
|
|
103
|
-
? { image_model: model.model }
|
|
104
|
-
: { video_model: model.model }),
|
|
105
|
-
aspect_ratio: aspectRatio,
|
|
106
|
-
style
|
|
107
|
-
};
|
|
108
99
|
const lines = options.scriptLines ?? new Map();
|
|
109
100
|
return selectShots(doc, targets).map((shot) => {
|
|
110
|
-
|
|
101
|
+
assertProductionGenerationAllowed(shot.production, kind === "keyframe" ? "text_to_image" : "text_to_video");
|
|
102
|
+
const requestedMode = options.mode ?? shotRenderMode(shot);
|
|
103
|
+
let mode = requestedMode;
|
|
104
|
+
const selection = kind === "keyframe"
|
|
105
|
+
? (shot.still_model ?? doc.imageModel)
|
|
106
|
+
: (shot.clip_model ?? doc.videoModel);
|
|
107
|
+
const model = {
|
|
108
|
+
provider: options.provider || stringField(selection, "provider"),
|
|
109
|
+
model: options.model || stringField(selection, "id")
|
|
110
|
+
};
|
|
111
|
+
const declaredTasks = selection !== null && "supported_tasks" in selection
|
|
112
|
+
? selection.supported_tasks
|
|
113
|
+
: undefined;
|
|
114
|
+
const usesStoredSelection = model.provider === stringField(selection, "provider") &&
|
|
115
|
+
model.model === stringField(selection, "id");
|
|
116
|
+
const supportedTasks = options.supportedTasks ??
|
|
117
|
+
(usesStoredSelection && Array.isArray(declaredTasks)
|
|
118
|
+
? declaredTasks.filter((task) => typeof task === "string")
|
|
119
|
+
: undefined);
|
|
120
|
+
if (supportedTasks !== undefined) {
|
|
121
|
+
model.supportedTasks = supportedTasks;
|
|
122
|
+
}
|
|
123
|
+
const rendered = {
|
|
124
|
+
...board,
|
|
125
|
+
...(kind === "keyframe"
|
|
126
|
+
? { image_model: model.model }
|
|
127
|
+
: { video_model: model.model }),
|
|
128
|
+
aspect_ratio: aspectRatio,
|
|
129
|
+
style
|
|
130
|
+
};
|
|
111
131
|
const context = {
|
|
112
132
|
scene: sceneForShot(shot, doc.screenplay?.scenes),
|
|
113
133
|
style
|
|
114
134
|
};
|
|
115
|
-
|
|
135
|
+
let prompt = kind === "keyframe"
|
|
116
136
|
? keyframePrompt(shot, context)
|
|
117
137
|
: clipPromptFor(shot, context, mode);
|
|
118
138
|
const applied = entitiesForShot(shot, [...entities]);
|
|
119
|
-
|
|
139
|
+
let shotReferenceAssetIds = applied.flatMap((entity) => (kind === "keyframe"
|
|
140
|
+
? (entity.reference_images?.slice(0, 1) ?? [])
|
|
141
|
+
: (entity.reference_images ?? []))
|
|
120
142
|
.map(imageAssetId)
|
|
121
143
|
.filter((id) => typeof id === "string" && id.length > 0));
|
|
122
|
-
const
|
|
123
|
-
|
|
144
|
+
const originalReferenceAssetIds = shotReferenceAssetIds;
|
|
145
|
+
let referenceImages = mode === "reference"
|
|
146
|
+
? applied.flatMap((entity) => entity.reference_images ?? [])
|
|
147
|
+
: [];
|
|
148
|
+
let productionCandidates;
|
|
149
|
+
let preflightError;
|
|
150
|
+
let durationSeconds = kind === "clip" ? effectiveShotDuration(shot, lines).seconds : undefined;
|
|
151
|
+
if (kind === "clip") {
|
|
152
|
+
try {
|
|
153
|
+
productionCandidates = compileProductionCandidates({
|
|
154
|
+
batchId: options.batchId ?? "storyboard-render-plan",
|
|
155
|
+
destinationId: shot.id,
|
|
156
|
+
destinationKind: "storyboard_shot",
|
|
157
|
+
operation: "initial_generation",
|
|
158
|
+
prompt,
|
|
159
|
+
...(shot.production !== undefined && { requirement: shot.production }),
|
|
160
|
+
entityIds: applied.map((entity) => entity.id),
|
|
161
|
+
referenceAssetIds: mode === "reference" ? shotReferenceAssetIds : [],
|
|
162
|
+
...(doc.creative_context?.reference_bindings !== undefined && { referenceBindings: doc.creative_context.reference_bindings }),
|
|
163
|
+
provider: model.provider,
|
|
164
|
+
model: model.model,
|
|
165
|
+
...(durationSeconds !== undefined && {
|
|
166
|
+
requestedDurationMs: Math.round(durationSeconds * 1000)
|
|
167
|
+
}),
|
|
168
|
+
routeSupport: {
|
|
169
|
+
referenceToVideo: true,
|
|
170
|
+
audioDrivenPerformance: false
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
const first = productionCandidates[0];
|
|
174
|
+
if (first !== undefined) {
|
|
175
|
+
prompt = first.snapshot.prompt ?? prompt;
|
|
176
|
+
if (first.snapshot.requestedDurationMs !== undefined) {
|
|
177
|
+
durationSeconds = first.snapshot.requestedDurationMs / 1000;
|
|
178
|
+
}
|
|
179
|
+
if (first.executionRoute === "reference_to_video") {
|
|
180
|
+
mode = "reference";
|
|
181
|
+
const existingIds = new Set(referenceImages.map(imageAssetId));
|
|
182
|
+
const boundIds = first.referenceAssetIds.filter((id) => !existingIds.has(id));
|
|
183
|
+
referenceImages = [
|
|
184
|
+
...referenceImages,
|
|
185
|
+
...boundIds.map((asset_id) => ({ type: "image", asset_id }))
|
|
186
|
+
];
|
|
187
|
+
shotReferenceAssetIds = [...first.referenceAssetIds];
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (mode === "reference" && referenceImages.length === 0) {
|
|
191
|
+
preflightError =
|
|
192
|
+
"Reference mode requires at least one resolved reference image.";
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
catch (error) {
|
|
196
|
+
preflightError = error instanceof Error ? error.message : String(error);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
const conditioningHash = entityConditioningHash(applied);
|
|
200
|
+
const shotBoard = {
|
|
201
|
+
...board,
|
|
202
|
+
reference_asset_ids: originalReferenceAssetIds,
|
|
203
|
+
entity_conditioning_hash: conditioningHash
|
|
204
|
+
};
|
|
205
|
+
const shotRendered = {
|
|
206
|
+
...rendered,
|
|
207
|
+
reference_asset_ids: shotReferenceAssetIds,
|
|
208
|
+
entity_conditioning_hash: conditioningHash
|
|
209
|
+
};
|
|
124
210
|
const version = kind === "keyframe" ? shot.keyframe : shot.clip;
|
|
125
211
|
const plan = {
|
|
126
212
|
shotId: shot.id,
|
|
@@ -128,28 +214,32 @@ export function planShotRenders(doc, entities, kind, targets, options = {}) {
|
|
|
128
214
|
kind,
|
|
129
215
|
prompt,
|
|
130
216
|
entities: applied.map(wireEntity),
|
|
131
|
-
referenceAssetIds:
|
|
132
|
-
.map(imageAssetId)
|
|
133
|
-
.filter((id) => typeof id === "string" && id.length > 0)),
|
|
217
|
+
referenceAssetIds: shotReferenceAssetIds,
|
|
134
218
|
model,
|
|
135
219
|
aspectRatio,
|
|
136
220
|
mode: kind === "keyframe" ? "keyframe" : mode,
|
|
137
|
-
referenceImages
|
|
138
|
-
? applied.flatMap((entity) => entity.reference_images ?? [])
|
|
139
|
-
: [],
|
|
221
|
+
referenceImages,
|
|
140
222
|
sourceKeyframe: shot.keyframe ?? null,
|
|
141
223
|
renderInputs: kind === "clip"
|
|
142
|
-
? currentRenderInputs({
|
|
143
|
-
|
|
224
|
+
? currentRenderInputs({
|
|
225
|
+
...shot,
|
|
226
|
+
render_mode: requestedMode,
|
|
227
|
+
clip_model: { id: model.model, provider: model.provider }
|
|
228
|
+
}, shotRendered, kind)
|
|
229
|
+
: currentRenderInputs({
|
|
230
|
+
...shot,
|
|
231
|
+
still_model: { id: model.model, provider: model.provider }
|
|
232
|
+
}, shotRendered, kind),
|
|
144
233
|
fresh: !isVersionStale(version, shot, shotBoard)
|
|
145
234
|
};
|
|
146
235
|
if (shot.slug !== undefined)
|
|
147
236
|
plan.slug = shot.slug;
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
237
|
+
if (durationSeconds !== undefined)
|
|
238
|
+
plan.durationSeconds = durationSeconds;
|
|
239
|
+
if (productionCandidates !== undefined)
|
|
240
|
+
plan.productionCandidates = productionCandidates;
|
|
241
|
+
if (preflightError !== undefined)
|
|
242
|
+
plan.preflightError = preflightError;
|
|
153
243
|
return plan;
|
|
154
244
|
});
|
|
155
245
|
}
|
package/dist/render-plan.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-plan.js","sourceRoot":"","sources":["../src/render-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,YAAY,EACZ,cAAc,EACf,MAAM,uBAAuB,CAAC;AAU/B,OAAO,
|
|
1
|
+
{"version":3,"file":"render-plan.js","sourceRoot":"","sources":["../src/render-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,aAAa,EACb,YAAY,EACZ,cAAc,EACf,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AA4C/B,SAAS,YAAY,CAAC,KAAe;IACnC,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,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e,GAAG,eAAe,CAAC;QAC1E,IAAI,oBAAoB,KAAK,SAAS;YACpC,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACnD,IAAI,cAAc,KAAK,SAAS;YAAE,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACvE,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodetool-ai/storyboard",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Storyboard derivations: recast a board onto a new cast, and plan/run its shot renders",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"lint": "node ../../scripts/run-tsc.mjs --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@nodetool-ai/protocol": "^0.8.
|
|
19
|
-
"@nodetool-ai/timeline": "^0.8.
|
|
18
|
+
"@nodetool-ai/protocol": "^0.8.2",
|
|
19
|
+
"@nodetool-ai/timeline": "^0.8.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^22.0.0",
|