@cueframe/kernel 0.2.22 → 0.2.24
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/_members/composition/scene/clipRules.d.ts +10 -0
- package/dist/_members/mcp/core.d.ts +16 -1
- package/dist/_members/mcp/generated/operations.d.ts +2 -0
- package/dist/animate/preparation-facts.js +2 -2
- package/dist/animate.js +3 -3
- package/dist/authoring/scene.js +2 -2
- package/dist/authoring.js +2 -2
- package/dist/{chunk-DJWCD3RF.js → chunk-3OOMVQ6I.js} +4 -4
- package/dist/{chunk-VDSO2KZY.js → chunk-5BAWOULP.js} +1 -1
- package/dist/{chunk-CDZBSLVA.js → chunk-H5CPILOK.js} +2 -2
- package/dist/{chunk-DEDZKZ6G.js → chunk-JBWSK2YD.js} +2 -2
- package/dist/{chunk-E54DK225.js → chunk-JCQTSVZQ.js} +1 -1
- package/dist/{chunk-PQDALM2G.js → chunk-JNQKX4OI.js} +1 -1
- package/dist/{chunk-YV5AYMNK.js → chunk-JRJQECCF.js} +1 -1
- package/dist/{chunk-NG7DP46H.js → chunk-MMZMS3S4.js} +1 -1
- package/dist/{chunk-BAVEHXVC.js → chunk-NXEJASGI.js} +9 -7
- package/dist/{chunk-TZ7DKL2G.js → chunk-OBA6NW4S.js} +1 -1
- package/dist/{chunk-URQQTAHZ.js → chunk-PNJ7DACK.js} +122 -111
- package/dist/{chunk-PRSRV7AT.js → chunk-TE3PNQG6.js} +2 -2
- package/dist/{chunk-WLU5XPDG.js → chunk-TXI53LIT.js} +2 -2
- package/dist/{chunk-LD4XQQRL.js → chunk-WAUVKF2F.js} +1 -1
- package/dist/{chunk-7YL7NJJF.js → chunk-XACXNDFL.js} +6 -1
- package/dist/component-runtime/browserOptions.js +2 -2
- package/dist/component-runtime/render.js +3 -3
- package/dist/component-runtime.js +4 -4
- package/dist/compose.js +6 -6
- package/dist/composition/scene.js +3 -1
- package/dist/composition-ops.js +89 -32
- package/dist/core/render.js +2 -2
- package/dist/core.js +2 -2
- package/dist/mcp/adapter.js +3 -3
- package/dist/mcp/core.js +3 -1
- package/dist/mcp/curation.js +1 -1
- package/dist/mcp/server.js +4 -4
- package/dist/mcp.js +4 -4
- package/dist/primitives/effects.js +4 -4
- package/dist/primitives/layouts.js +4 -4
- package/dist/primitives/scenes.js +4 -4
- package/dist/primitives.js +6 -6
- package/dist/render-harness.js +6 -6
- package/package.json +11 -11
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
makeDefaultScreenTexture,
|
|
44
44
|
resolveCamera,
|
|
45
45
|
useImageTexture
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JBWSK2YD.js";
|
|
47
47
|
import {
|
|
48
48
|
DEVICE_GLASS_OPACITY_ENCODED,
|
|
49
49
|
DeviceMesh,
|
|
50
50
|
StudioRig,
|
|
51
51
|
deviceDimensions,
|
|
52
52
|
laptopLayout
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-OBA6NW4S.js";
|
|
54
54
|
|
|
55
55
|
// ../execution/primitives/src/scenes/changelog-bite/index.tsx
|
|
56
56
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertSceneShotParamsAdmitted,
|
|
4
4
|
materializeComponentSource,
|
|
5
5
|
renderComponentAlpha
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-H5CPILOK.js";
|
|
7
7
|
import {
|
|
8
8
|
componentArtifactId,
|
|
9
9
|
componentBundleId,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-WXHD6OUT.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvedComponentRenderer
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5BAWOULP.js";
|
|
20
20
|
import {
|
|
21
21
|
ComponentBakeJobV2,
|
|
22
22
|
ComponentBakeRequestV2,
|
|
@@ -1302,6 +1302,10 @@ function evaluateScene(spec2, requestedFrame, durationInFrames) {
|
|
|
1302
1302
|
|
|
1303
1303
|
// ../composition/src/scene/clipRules.ts
|
|
1304
1304
|
import { ZodError } from "zod";
|
|
1305
|
+
var SCENE_SLOT_MEDIA_FORMATS = {
|
|
1306
|
+
image: "PNG, JPEG or WebP",
|
|
1307
|
+
video: "MP4 or WebM"
|
|
1308
|
+
};
|
|
1305
1309
|
function slotOwner(spec2, slot) {
|
|
1306
1310
|
const find = (layers) => {
|
|
1307
1311
|
for (const layer of layers) {
|
|
@@ -1429,7 +1433,7 @@ function bindingIssues(spec2, assets, path, mediaKindById) {
|
|
|
1429
1433
|
} else if (kind !== slots.get(name)) {
|
|
1430
1434
|
issues.push({
|
|
1431
1435
|
path: `${path}.${name}`,
|
|
1432
|
-
detail: `slot '${name}' needs ${slots.get(name)} media (${slots.get(name) === "image" ?
|
|
1436
|
+
detail: `slot '${name}' needs ${slots.get(name)} media (${slots.get(name) === "image" ? SCENE_SLOT_MEDIA_FORMATS.image : SCENE_SLOT_MEDIA_FORMATS.video}); '${mediaId}' is ${kind}.`,
|
|
1433
1437
|
code: "validation_error"
|
|
1434
1438
|
});
|
|
1435
1439
|
}
|
|
@@ -3450,6 +3454,7 @@ export {
|
|
|
3450
3454
|
evaluateChannel,
|
|
3451
3455
|
sceneTransformMatrix,
|
|
3452
3456
|
evaluateScene,
|
|
3457
|
+
SCENE_SLOT_MEDIA_FORMATS,
|
|
3453
3458
|
isSceneShotSource,
|
|
3454
3459
|
readSceneSourceRef,
|
|
3455
3460
|
isTimelineClip,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
componentBrowserOptions,
|
|
5
5
|
resolvedComponentRenderer,
|
|
6
6
|
webglBackend
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-5BAWOULP.js";
|
|
8
8
|
import "../chunk-ZVG446DJ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-XACXNDFL.js";
|
|
10
10
|
import "../chunk-2L7PYYJK.js";
|
|
11
11
|
import "../chunk-2ESYSVXG.js";
|
|
12
12
|
export {
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
stagedBrowserLocator,
|
|
27
27
|
verifyLocalStagedBrowser,
|
|
28
28
|
vp9AlphaFfmpegOverride
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-H5CPILOK.js";
|
|
30
30
|
import "../chunk-WB2VFDQZ.js";
|
|
31
31
|
import "../chunk-EXY4JJPH.js";
|
|
32
32
|
import "../chunk-DAARYRNT.js";
|
|
33
33
|
import "../chunk-5NGYBI5Z.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-5BAWOULP.js";
|
|
35
35
|
import "../chunk-ZVG446DJ.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-XACXNDFL.js";
|
|
37
37
|
import "../chunk-2L7PYYJK.js";
|
|
38
38
|
import "../chunk-AVTEPAWI.js";
|
|
39
39
|
import "../chunk-2ESYSVXG.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sourceIdentityForBake,
|
|
8
8
|
startComponentAssetServer,
|
|
9
9
|
verifyComponentOutput
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TXI53LIT.js";
|
|
11
11
|
import {
|
|
12
12
|
COMPONENT_MEDIA_HEADROOM,
|
|
13
13
|
COMPONENT_MEDIA_TIERS,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
stagedBrowserLocator,
|
|
53
53
|
verifyLocalStagedBrowser,
|
|
54
54
|
vp9AlphaFfmpegOverride
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-H5CPILOK.js";
|
|
56
56
|
import "./chunk-WB2VFDQZ.js";
|
|
57
57
|
import {
|
|
58
58
|
bundleIdentityFields,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
resolvedComponentRenderer,
|
|
87
87
|
webGlRefusal,
|
|
88
88
|
webglBackend
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-5BAWOULP.js";
|
|
90
90
|
import {
|
|
91
91
|
CANVAS2D_COMPONENT_MANIFEST_V2,
|
|
92
92
|
COMPONENT_BUNDLE_VERSION,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
authoredComponentProps,
|
|
128
128
|
readComponentSourceRef
|
|
129
129
|
} from "./chunk-ZVG446DJ.js";
|
|
130
|
-
import "./chunk-
|
|
130
|
+
import "./chunk-XACXNDFL.js";
|
|
131
131
|
import "./chunk-2L7PYYJK.js";
|
|
132
132
|
import "./chunk-AVTEPAWI.js";
|
|
133
133
|
import "./chunk-2ESYSVXG.js";
|
package/dist/compose.js
CHANGED
|
@@ -7,10 +7,10 @@ import "./chunk-ZZRBKGDA.js";
|
|
|
7
7
|
import "./chunk-GULDS3VE.js";
|
|
8
8
|
import {
|
|
9
9
|
catalog as catalog4
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JRJQECCF.js";
|
|
11
11
|
import {
|
|
12
12
|
catalog as catalog7
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TE3PNQG6.js";
|
|
14
14
|
import {
|
|
15
15
|
catalog
|
|
16
16
|
} from "./chunk-ZS3A3QUM.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-RAXHCRVV.js";
|
|
31
31
|
import {
|
|
32
32
|
catalog as catalog2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WAUVKF2F.js";
|
|
34
34
|
import "./chunk-MFHXCHRI.js";
|
|
35
35
|
import {
|
|
36
36
|
catalog as catalog8
|
|
@@ -40,8 +40,8 @@ import "./chunk-FWSJLHSV.js";
|
|
|
40
40
|
import "./chunk-ZFEXATWN.js";
|
|
41
41
|
import "./chunk-XHGZ2E77.js";
|
|
42
42
|
import "./chunk-W2245F6G.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-JBWSK2YD.js";
|
|
44
|
+
import "./chunk-OBA6NW4S.js";
|
|
45
45
|
import {
|
|
46
46
|
getPrimitiveSubtextParam,
|
|
47
47
|
getPrimitiveText,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
encodeError
|
|
57
57
|
} from "./chunk-QWXUYVHX.js";
|
|
58
58
|
import "./chunk-7PA7FGLD.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-XACXNDFL.js";
|
|
60
60
|
import "./chunk-2L7PYYJK.js";
|
|
61
61
|
import "./chunk-AVTEPAWI.js";
|
|
62
62
|
import "./chunk-2ESYSVXG.js";
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
SCENE_SLAB_BODY_TRIANGLES,
|
|
42
42
|
SCENE_SLAB_CONTENT_FACE_TRIANGLES,
|
|
43
43
|
SCENE_SLAB_CONTENT_OFFSET,
|
|
44
|
+
SCENE_SLOT_MEDIA_FORMATS,
|
|
44
45
|
SCENE_TESSELLATION_VERSION,
|
|
45
46
|
SCENE_TRANSITION_KINDS,
|
|
46
47
|
SCENE_WORLD_OBJECT_PROPERTIES,
|
|
@@ -129,7 +130,7 @@ import {
|
|
|
129
130
|
selectSceneBakeScale,
|
|
130
131
|
verifySceneVideoPresentationIndexV1,
|
|
131
132
|
verifySealedSceneShotPlanV1
|
|
132
|
-
} from "../chunk-
|
|
133
|
+
} from "../chunk-XACXNDFL.js";
|
|
133
134
|
import {
|
|
134
135
|
MIB,
|
|
135
136
|
SCENE_CONTEXT_GL_BUDGET_BYTES,
|
|
@@ -185,6 +186,7 @@ export {
|
|
|
185
186
|
SCENE_SLAB_BODY_TRIANGLES,
|
|
186
187
|
SCENE_SLAB_CONTENT_FACE_TRIANGLES,
|
|
187
188
|
SCENE_SLAB_CONTENT_OFFSET,
|
|
189
|
+
SCENE_SLOT_MEDIA_FORMATS,
|
|
188
190
|
SCENE_SURFACE_TEXTURE_BUDGET_BYTES,
|
|
189
191
|
SCENE_TESSELLATION_VERSION,
|
|
190
192
|
SCENE_TRANSITION_KINDS,
|
package/dist/composition-ops.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
playableSpans
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JNQKX4OI.js";
|
|
4
4
|
import "./chunk-QH3YI3ND.js";
|
|
5
5
|
import "./chunk-QISFYLBB.js";
|
|
6
6
|
import "./chunk-K4VE64CR.js";
|
|
@@ -33,8 +33,9 @@ import "./chunk-WREYUH2E.js";
|
|
|
33
33
|
import "./chunk-QWXUYVHX.js";
|
|
34
34
|
import "./chunk-7PA7FGLD.js";
|
|
35
35
|
import {
|
|
36
|
+
SCENE_SLOT_MEDIA_FORMATS,
|
|
36
37
|
SceneShotSpecV2
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XACXNDFL.js";
|
|
38
39
|
import "./chunk-2L7PYYJK.js";
|
|
39
40
|
import {
|
|
40
41
|
introducedCaptionFaceIssues
|
|
@@ -490,20 +491,48 @@ function resolveClipKind(clip, track) {
|
|
|
490
491
|
return resolved;
|
|
491
492
|
}
|
|
492
493
|
var CompositionOp = z.discriminatedUnion("type", [
|
|
493
|
-
z.object({ type: z.literal("clip.add"), clip: TimelineClip, trackId: z.string().optional(), newTrack: z.boolean().optional(), newTrackId: z.string().optional() }).strict()
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
z.object({ type: z.literal("
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
z.object({ type: z.literal("
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
z.object({ type: z.literal("
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
z.object({ type: z.literal("
|
|
506
|
-
|
|
494
|
+
z.object({ type: z.literal("clip.add"), clip: TimelineClip, trackId: z.string().optional(), newTrack: z.boolean().optional(), newTrackId: z.string().optional() }).strict().describe(
|
|
495
|
+
"Add a clip to the timeline. The clip self-routes to a track by FAMILY (`clip.kind`, else derived from `source.kind`, else the target track) \u2014 a `media` clip MUST carry `kind` (video|audio|image) or a `trackId`, else it is rejected as ambiguous. `trackId` targets an existing SAME-family track; `newTrack:true` (with optional pinned `newTrackId`) creates a fresh track of that family."
|
|
496
|
+
),
|
|
497
|
+
z.object({ type: z.literal("clip.remove"), clipId: z.string() }).strict().describe(
|
|
498
|
+
"Remove a clip by id (located across every track)."
|
|
499
|
+
),
|
|
500
|
+
z.object({ type: z.literal("clip.update"), clipId: z.string(), patch: TimelineClip.partial() }).strict().describe(
|
|
501
|
+
"Patch an existing clip by id (cross-family). The patch is a partial TimelineClip. NOTE: `source` is REPLACED wholesale \u2014 the patch merges at the top level only, so a partial `source` WIPES the source fields you omit. Patch the whole source object when changing it. (To change reframe/excluded ranges, prefer setCropIntents / addExcludedRange, not a source patch.)"
|
|
502
|
+
),
|
|
503
|
+
z.object({ type: z.literal("removeClipsByMediaId"), mediaId: z.string() }).strict().describe(
|
|
504
|
+
"Remove EVERY clip sourced from a given mediaId (e.g. after deleting that media)."
|
|
505
|
+
),
|
|
506
|
+
z.object({ type: z.literal("loadOverlays"), clips: z.array(TimelineClip) }).strict().describe(
|
|
507
|
+
"Replace the overlay channel wholesale with the given clips (bulk set, not a merge)."
|
|
508
|
+
),
|
|
509
|
+
z.object({ type: z.literal("addMarker"), marker: Marker }).strict().describe(
|
|
510
|
+
"Add a timeline marker (a named time point/range; carry extensions in `metadata`)."
|
|
511
|
+
),
|
|
512
|
+
z.object({ type: z.literal("removeMarker"), markerId: z.string() }).strict().describe(
|
|
513
|
+
"Remove a marker by id."
|
|
514
|
+
),
|
|
515
|
+
z.object({ type: z.literal("updateMarker"), markerId: z.string(), updates: Marker.partial() }).strict().describe(
|
|
516
|
+
"Patch a marker's fields by id (partial merge)."
|
|
517
|
+
),
|
|
518
|
+
z.object({ type: z.literal("setCropIntents"), clipId: z.string(), segments: z.array(ReframeSegment).nullable() }).strict().describe(
|
|
519
|
+
"Set (or CLEAR, with `segments: null`) the camera/reframe channel on a MEDIA clip \u2014 the time-aligned source\u2192output viewport (focus, zoom, ease, bias). This is the PREFERRED way to author reframing; do NOT reframe via a whole-source `clip.update` patch. Segments tile the clip's duration."
|
|
520
|
+
),
|
|
521
|
+
z.object({ type: z.literal("setEffects"), clipId: z.string(), effects: z.array(PerClipEffect) }).strict().describe(
|
|
522
|
+
"Set (or CLEAR, with `effects: []`) a clip's EFFECT channel \u2014 the registered effect primitives stacked onto that clip, each `{ primitiveId, params? }`. WHOLESALE: the array REPLACES the clip's current effects, so send the full stack (read the clip first to add one). This is the ONLY way to change effects on an existing clip \u2014 do NOT reach for a `clip.update` patch, whose top-level merge is the source-clobbering footgun documented above."
|
|
523
|
+
),
|
|
524
|
+
z.object({ type: z.literal("setCaptionStyle"), style: CaptionStyle.partial() }).strict().describe(
|
|
525
|
+
"Merge style overrides (font/color/position/emphasis) onto the composition's caption layer. Partial \u2014 omitted fields keep their current value; creates the caption container if absent."
|
|
526
|
+
),
|
|
527
|
+
z.object({ type: z.literal("setCaptionDepth"), zPlane: z.enum(["front", "behind-subject"]) }).strict().describe(
|
|
528
|
+
"Set the caption compositing plane. Use `behind-subject` to place captions behind the segmented foreground subject; use `front` for conventional captions above all video layers."
|
|
529
|
+
),
|
|
530
|
+
z.object({ type: z.literal("setCaptions"), segments: z.array(CaptionSegment), style: CaptionStyle.partial().optional() }).strict().describe(
|
|
531
|
+
"Replace the caption SEGMENTS wholesale \u2014 author the word-timed caption layer directly (each segment = one sentence/page of `words` with timeline-ms `startMs`/`endMs`, optional `emphasis`). This is how a client with its OWN word timings (e.g. a generated VO take) gets word-synced captions without a source transcript; the compose lane's transcript slice writes the same layer. `style`, when given, merges with setCaptionStyle semantics; an omitted style keeps the existing one. Renderer paginates within a segment and never pools words across two \u2014 keep segments sentence-bounded."
|
|
532
|
+
),
|
|
533
|
+
z.object({ type: z.literal("applyMotionPreset"), clipId: z.string(), preset: z.string(), params: z.object({ enterMs: z.number().optional(), exitMs: z.number().optional(), staggerMs: z.number().optional() }).strict().optional() }).strict().describe(
|
|
534
|
+
"Shell a STATIC `card` clip with a frame-driven MOTION preset \u2014 the public card-shelling op (the layout renders VERBATIM; only the container animates in/out). The server wraps the card in the chosen `preset` (fade-up / slide-in-left / slide-in-right / scale-pop / stagger-reveal), transpiles it, mints it as a LIVE component, and swaps the clip source to that component (the bakeless live lane \u2014 no box). `params` tunes timing (`enterMs`/`exitMs`, `staggerMs` for stagger-reveal). The target must be a static card (components already carry motion; library overlays already move); re-run overwrites idempotently ONLY while the target is still a card (an uncompilable shell); once shelled, the clip is a COMPONENT \u2014 to change its motion, remove and re-add the card, then re-shell. Honored under `dry_run` (validates preset + target without transpiling or persisting). ORDERING: the preset resolves its target against the PERSISTED composition \u2014 a card added in the SAME batch is not yet visible to it. Persist the clip.add batch first, then shell in a following call."
|
|
535
|
+
),
|
|
507
536
|
// Scene shots (spec §"Authoring, persistence, and discovery"). Route-materialized: the host
|
|
508
537
|
// registers the generated wrapper source through its component store and rewrites these to
|
|
509
538
|
// addTrack / clip.add / clip.update carrying `props.componentRef`; the agent edits a scene
|
|
@@ -524,7 +553,7 @@ var CompositionOp = z.discriminatedUnion("type", [
|
|
|
524
553
|
// Lives here, not in the published api/openapi.json. It used to exist ONLY
|
|
525
554
|
// in that document, which made the contract hand-maintained and put it out
|
|
526
555
|
// of reach of a scripted sync from this SSOT.
|
|
527
|
-
|
|
556
|
+
`Author a scene shot and place it on a dedicated overlay track. The host validates the scene, generates and registers an immutable wrapper component source, and emits the ordinary track/clip operations carrying \`props.componentRef\` \u2014 you edit a scene SPEC, never wrapper TSX or a source hash. Registration and the composition update are ONE undoable edit; a failure publishes nothing and leaves no clip pointing at an unresolved source. Pass EXACTLY ONE of \`trackId\` (an existing dedicated scene track) or \`newTrack: true\` (mint one). That track holds scene-shot clips and gaps only \u2014 no generic component/primitive/media clips in v1 \u2014 and existing generic overlay tracks are unaffected. Scene clips use front zPlane and full-frame placement: outer per-clip \`region\`, \`position\`, \`scale\`, \`rotation\`, \`fit\`, \`effects\`, \`animate\`, \`params.transition\`, \`params.sequenceGroup\` and internal fadeIn/fadeOut are REFUSED with a path, because the shot's own layer transforms are the single transform owner. TEXT: \`space: "screen"\` text is composed above the world result, stays fixed in the frame and stays sharp through focus; \`space: "world"\` text is rasterized into the 3D scene, moves with the camera and is occluded by geometry. Screenshots and world text are UNLIT and colour-managed so product UI colours are not tinted by the studio lighting, while device bodies are lit and cast shadows; an unlit surface still occludes. SCOPE GAP (pre-existing, neither closed nor changed by scene shots): global wrap effects \u2014 composition-level grades and camera effects \u2014 do not reach front-overlay clips, so they do not affect a scene shot. Author the look INSIDE the shot (\`post.grain\`, \`post.vignette\`, \`post.focus\`, \`backdrop\`, \`environment\`) instead. DISCOVERY: there is no built-in scene primitive to look up in list_catalog; the wrapper this operation registers appears afterwards as an ordinary INSTALLED component under the existing catalog rules. ASSETS: \`assets\` binds each slot name a layer references to a media id in the same project, and the slot's declared KIND decides what it admits \u2014 an image slot takes ${SCENE_SLOT_MEDIA_FORMATS.image}, a video slot ${SCENE_SLOT_MEDIA_FORMATS.video}. Binding the wrong kind is refused with the slot's path.`
|
|
528
557
|
),
|
|
529
558
|
z.object({
|
|
530
559
|
type: z.literal("scene.update"),
|
|
@@ -534,25 +563,53 @@ var CompositionOp = z.discriminatedUnion("type", [
|
|
|
534
563
|
transitionIn: Transition.optional(),
|
|
535
564
|
scene: SceneShotSpecV2.optional(),
|
|
536
565
|
assets: SceneAssetBindings.optional()
|
|
537
|
-
}).strict().describe(
|
|
538
|
-
z.object({ type: z.literal("materializeGrid"), clipId: z.string(), grid: z.enum(["beat", "word", "shot"]), maxMarkers: z.number().int().positive().max(2e3).optional() }).strict()
|
|
566
|
+
}).strict().describe(`Revise a scene shot in place by clip id. Send a replacement \`scene\` and/or \`assets\`; timing changes use the ordinary clip timing fields (\`startTime\`, \`duration\`, \`transitionIn\`). Omitted fields keep their persisted values and the MERGED result is re-validated as a whole, so a partial edit cannot leave the shot invalid. Changing only values or asset IDs updates props and bindings and REUSES the pinned source; changing the referenced SLOT SET regenerates the wrapper manifest and registers a new immutable source version atomically. Undo restores the source reference, spec, bindings and timing together. Topology, asset bindings, text content, font properties, device kind and colours are STATIC within a shot's animation \u2014 change them here (a revised spec) rather than trying to animate them. This is not a source trim or slip: a shortened or extended clip resamples the SAME normalized animation over its new duration, and trim/slip requests on generated animation are rejected rather than reinterpreted as media trims. In one batch, \`scene.update\` may target a shot added by an earlier \`scene.add\`. ASSETS: \`assets\` binds each slot name a layer references to a media id in the same project, and the slot's declared KIND decides what it admits \u2014 an image slot takes ${SCENE_SLOT_MEDIA_FORMATS.image}, a video slot ${SCENE_SLOT_MEDIA_FORMATS.video}. Binding the wrong kind is refused with the slot's path.`),
|
|
567
|
+
z.object({ type: z.literal("materializeGrid"), clipId: z.string(), grid: z.enum(["beat", "word", "shot"]), maxMarkers: z.number().int().positive().max(2e3).optional() }).strict().describe(
|
|
568
|
+
'Materialize a clip\'s SOURCE-media temporal GRID as timeline markers \u2014 the rhythm authority you cut to. `grid:"beat"` reads a MUSIC bed\'s beat map (get_media_context.beatGrid), `grid:"word"` the VO word onsets (wordGrid); each grid point is projected from media time to TIMELINE time through the clip\'s placement (startTime, trim, playbackRate, excludedRanges) and written as a `kind:"beat"|"word"` marker (`metadata.sourceClipId` set). Points outside the clip\'s visible window are skipped. Re-running REPLACES the prior markers from the same clip+grid (idempotent). Land cuts and transition MIDPOINTS on the markers (a 0.5s transition starts 0.25s before its marker). `maxMarkers` (default 500, ceiling 2000) \u2014 exceeding it fails loud with the count. `grid:"shot"` is not yet exposed (shot_grid_unavailable). The target must be a media clip; absent evidence fails loud (grid_unavailable) naming how to get it (declare audioRole:"music" at ingest / transcribe).'
|
|
569
|
+
),
|
|
539
570
|
z.object({
|
|
540
571
|
type: z.literal("captions.fromTranscript"),
|
|
541
572
|
mediaId: z.string().min(1),
|
|
542
573
|
window: z.object({ startSec: z.number().min(0), endSec: z.number().positive() }).strict().optional()
|
|
543
|
-
}).strict()
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
z.object({ type: z.literal("
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
z.object({ type: z.literal("
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
z.object({ type: z.literal("
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
574
|
+
}).strict().describe(
|
|
575
|
+
"Attach caption CONTENT from the media's cached transcript \u2014 no pasting words. ROUTE-MATERIALIZED like applyMotionPreset/materializeGrid: the server slices the word-timed transcript to `window` (source seconds; absent = the whole media), rebases times, sentence-splits into segments, and applies it as `setCaptions`. 422 media_no_transcript when the media has no transcript or no words in the window. For your OWN word timings use setCaptions directly."
|
|
576
|
+
),
|
|
577
|
+
z.object({ type: z.literal("setFormat"), format: Format.pick({ aspectRatio: true, fps: true, resolution: true }) }).strict().describe(
|
|
578
|
+
"Set the output format \u2014 `aspectRatio` (16:9|9:16|1:1|4:5) plus optional `fps` and `resolution`. Merges: an omitted field keeps the current value."
|
|
579
|
+
),
|
|
580
|
+
z.object({ type: z.literal("addTrack"), kind: Track.shape.kind, name: z.string().optional(), id: z.string().optional() }).strict().describe(
|
|
581
|
+
"Add an EMPTY track of a given family (video|audio|image|overlay|effect). Optional pinned `id`."
|
|
582
|
+
),
|
|
583
|
+
z.object({ type: z.literal("removeTrack"), trackId: z.string() }).strict().describe(
|
|
584
|
+
"Remove a track AND all its clips by id."
|
|
585
|
+
),
|
|
586
|
+
z.object({ type: z.literal("updateTrack"), trackId: z.string(), updates: Track.pick({ name: true, enabled: true, volume: true }).partial() }).strict().describe(
|
|
587
|
+
"Patch a track's `name` / `enabled` by id."
|
|
588
|
+
),
|
|
589
|
+
z.object({ type: z.literal("reorderTracks"), fromIndex: z.number(), toIndex: z.number() }).strict().describe(
|
|
590
|
+
"Move a track from one index to another (changes layer/compositing order)."
|
|
591
|
+
),
|
|
592
|
+
z.object({ type: z.literal("moveClipToTrack"), clipId: z.string(), targetTrackId: z.string(), newStartTime: z.number().optional() }).strict().describe(
|
|
593
|
+
"Move a clip to another SAME-family track, optionally at a new `newStartTime`."
|
|
594
|
+
),
|
|
595
|
+
z.object({ type: z.literal("duplicateClip"), clipId: z.string(), newClipId: z.string().optional() }).strict().describe(
|
|
596
|
+
"Duplicate a clip by id. Pin `newClipId` to make the copy's id deterministic (required for a clean undo/inverse)."
|
|
597
|
+
),
|
|
598
|
+
z.object({ type: z.literal("cutAndRipple"), start: z.number(), end: z.number() }).strict().describe(
|
|
599
|
+
"Server-authoritative: delete the [start,end] time window (seconds) and ripple every downstream clip/marker/caption earlier to close the gap."
|
|
600
|
+
),
|
|
601
|
+
z.object({ type: z.literal("ripple"), time: z.number(), amount: z.number() }).strict().describe(
|
|
602
|
+
"Server-authoritative: shift everything at/after `time` (seconds) by `amount` seconds (+ opens a gap, \u2212 closes one)."
|
|
603
|
+
),
|
|
604
|
+
z.object({ type: z.literal("addExcludedRange"), clipId: z.string(), sourceStart: z.number(), sourceEnd: z.number(), reason: z.string().optional() }).strict().describe(
|
|
605
|
+
"Server-authoritative: exclude a [sourceStart,sourceEnd] span (seconds) of a clip's SOURCE (an internal trim) and ripple downstream \u2014 the preferred way to drop a sub-range vs a source patch."
|
|
606
|
+
),
|
|
607
|
+
z.object({ type: z.literal("removeExcludedRange"), clipId: z.string(), rangeIdx: z.number() }).strict().describe(
|
|
608
|
+
"Server-authoritative: remove a clip's previously-added excluded range by index (re-includes that span, ripples downstream)."
|
|
609
|
+
)
|
|
610
|
+
]).describe(
|
|
611
|
+
"One scoped composition operation. Discriminated by `type` \u2014 `clip.add` / `clip.remove` / `clip.update` patch clips across any family; the rest cover markers, reframe, effects, captions, format, tracks, and the server-authoritative ripple recomputes. Every variant is `.strict()`: an unknown field is refused, not ignored."
|
|
612
|
+
);
|
|
556
613
|
function mergedCaptionStyle(composition, patch) {
|
|
557
614
|
const existing = composition.captions?.style ?? {};
|
|
558
615
|
if (!patch) return existing;
|
package/dist/core/render.js
CHANGED
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
sliceTranscriptWords,
|
|
67
67
|
splitIntoSentences,
|
|
68
68
|
validateComposition
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-JNQKX4OI.js";
|
|
70
70
|
import {
|
|
71
71
|
buildEasedZooms,
|
|
72
72
|
buildPannedCenters,
|
|
@@ -80,7 +80,7 @@ import "../chunk-KYRDKK2D.js";
|
|
|
80
80
|
import "../chunk-WREYUH2E.js";
|
|
81
81
|
import "../chunk-QWXUYVHX.js";
|
|
82
82
|
import "../chunk-7PA7FGLD.js";
|
|
83
|
-
import "../chunk-
|
|
83
|
+
import "../chunk-XACXNDFL.js";
|
|
84
84
|
import "../chunk-2L7PYYJK.js";
|
|
85
85
|
import "../chunk-AVTEPAWI.js";
|
|
86
86
|
import "../chunk-2ESYSVXG.js";
|
package/dist/core.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ensureEven,
|
|
11
11
|
extractCaptionWordsFromDoc,
|
|
12
12
|
isEmphasized
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JNQKX4OI.js";
|
|
14
14
|
import "./chunk-QH3YI3ND.js";
|
|
15
15
|
import "./chunk-QISFYLBB.js";
|
|
16
16
|
import "./chunk-K4VE64CR.js";
|
|
@@ -20,7 +20,7 @@ import "./chunk-KYRDKK2D.js";
|
|
|
20
20
|
import "./chunk-WREYUH2E.js";
|
|
21
21
|
import "./chunk-QWXUYVHX.js";
|
|
22
22
|
import "./chunk-7PA7FGLD.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XACXNDFL.js";
|
|
24
24
|
import "./chunk-2L7PYYJK.js";
|
|
25
25
|
import "./chunk-AVTEPAWI.js";
|
|
26
26
|
import "./chunk-2ESYSVXG.js";
|
package/dist/mcp/adapter.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
querySchemaShape,
|
|
3
3
|
serializeQuery,
|
|
4
4
|
waitForJob
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-MMZMS3S4.js";
|
|
6
6
|
import {
|
|
7
7
|
CURATED_TOOLS
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-3OOMVQ6I.js";
|
|
9
9
|
import {
|
|
10
10
|
apiErrorFrom,
|
|
11
11
|
bodySchemaFor,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
opById,
|
|
17
17
|
safeParse,
|
|
18
18
|
sniffImageMediaType
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-PNJ7DACK.js";
|
|
20
20
|
import "../chunk-2ESYSVXG.js";
|
|
21
21
|
|
|
22
22
|
// ../mcp/src/adapter.ts
|
package/dist/mcp/core.js
CHANGED
|
@@ -16,8 +16,9 @@ import {
|
|
|
16
16
|
sniffAudioMediaType,
|
|
17
17
|
sniffImageMediaType,
|
|
18
18
|
text,
|
|
19
|
+
textWithData,
|
|
19
20
|
withMedia
|
|
20
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-PNJ7DACK.js";
|
|
21
22
|
import "../chunk-2ESYSVXG.js";
|
|
22
23
|
export {
|
|
23
24
|
__resetPreviewCache,
|
|
@@ -37,5 +38,6 @@ export {
|
|
|
37
38
|
sniffAudioMediaType,
|
|
38
39
|
sniffImageMediaType,
|
|
39
40
|
text,
|
|
41
|
+
textWithData,
|
|
40
42
|
withMedia
|
|
41
43
|
};
|
package/dist/mcp/curation.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
registerRawTools,
|
|
8
8
|
registerSkillPrompts,
|
|
9
9
|
titleCase
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-NXEJASGI.js";
|
|
11
|
+
import "../chunk-MMZMS3S4.js";
|
|
12
|
+
import "../chunk-3OOMVQ6I.js";
|
|
13
|
+
import "../chunk-PNJ7DACK.js";
|
|
14
14
|
import "../chunk-2ESYSVXG.js";
|
|
15
15
|
export {
|
|
16
16
|
RAW_EXCLUDED_OPERATION_IDS,
|
package/dist/mcp.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
buildServer,
|
|
8
8
|
registerCuratedTools,
|
|
9
9
|
registerRawTools
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-NXEJASGI.js";
|
|
11
|
+
import "./chunk-MMZMS3S4.js";
|
|
12
|
+
import "./chunk-3OOMVQ6I.js";
|
|
13
|
+
import "./chunk-PNJ7DACK.js";
|
|
14
14
|
import "./chunk-2ESYSVXG.js";
|
|
15
15
|
export {
|
|
16
16
|
API_URLS,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
Vignette,
|
|
13
13
|
catalog,
|
|
14
14
|
laneDepths
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-WAUVKF2F.js";
|
|
16
16
|
import "../chunk-MFHXCHRI.js";
|
|
17
17
|
import "../chunk-XHGZ2E77.js";
|
|
18
18
|
import "../chunk-W2245F6G.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-JBWSK2YD.js";
|
|
20
|
+
import "../chunk-OBA6NW4S.js";
|
|
21
|
+
import "../chunk-XACXNDFL.js";
|
|
22
22
|
import "../chunk-2L7PYYJK.js";
|
|
23
23
|
import "../chunk-AVTEPAWI.js";
|
|
24
24
|
import "../chunk-2ESYSVXG.js";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
SplitScreen,
|
|
9
9
|
StaggeredBentoGrid,
|
|
10
10
|
catalog
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-JRJQECCF.js";
|
|
12
12
|
import "../chunk-XHGZ2E77.js";
|
|
13
13
|
import "../chunk-W2245F6G.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-JBWSK2YD.js";
|
|
15
|
+
import "../chunk-OBA6NW4S.js";
|
|
16
|
+
import "../chunk-XACXNDFL.js";
|
|
17
17
|
import "../chunk-2L7PYYJK.js";
|
|
18
18
|
import "../chunk-AVTEPAWI.js";
|
|
19
19
|
import "../chunk-2ESYSVXG.js";
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
ProductLaunchTrailer,
|
|
9
9
|
TerminalToBrowserDeploy,
|
|
10
10
|
catalog
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-TE3PNQG6.js";
|
|
12
12
|
import "../chunk-QGAWDLYX.js";
|
|
13
13
|
import "../chunk-S5H6GH6M.js";
|
|
14
14
|
import "../chunk-QAGGJHAF.js";
|
|
15
15
|
import "../chunk-MFHXCHRI.js";
|
|
16
16
|
import "../chunk-W2245F6G.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-JBWSK2YD.js";
|
|
18
|
+
import "../chunk-OBA6NW4S.js";
|
|
19
|
+
import "../chunk-XACXNDFL.js";
|
|
20
20
|
import "../chunk-2L7PYYJK.js";
|
|
21
21
|
import "../chunk-AVTEPAWI.js";
|
|
22
22
|
import "../chunk-2ESYSVXG.js";
|
package/dist/primitives.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catalog as catalog4
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JRJQECCF.js";
|
|
4
4
|
import {
|
|
5
5
|
catalog as catalog7
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TE3PNQG6.js";
|
|
7
7
|
import {
|
|
8
8
|
catalog
|
|
9
9
|
} from "./chunk-ZS3A3QUM.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-RAXHCRVV.js";
|
|
24
24
|
import {
|
|
25
25
|
catalog as catalog2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WAUVKF2F.js";
|
|
27
27
|
import "./chunk-MFHXCHRI.js";
|
|
28
28
|
import {
|
|
29
29
|
catalog as catalog8
|
|
@@ -33,9 +33,9 @@ import "./chunk-FWSJLHSV.js";
|
|
|
33
33
|
import "./chunk-ZFEXATWN.js";
|
|
34
34
|
import "./chunk-XHGZ2E77.js";
|
|
35
35
|
import "./chunk-W2245F6G.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-JBWSK2YD.js";
|
|
37
|
+
import "./chunk-OBA6NW4S.js";
|
|
38
|
+
import "./chunk-XACXNDFL.js";
|
|
39
39
|
import "./chunk-2L7PYYJK.js";
|
|
40
40
|
import "./chunk-AVTEPAWI.js";
|
|
41
41
|
import "./chunk-2ESYSVXG.js";
|