@cueframe/kernel 0.2.21 → 0.2.23
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/schema.d.ts +76 -1
- package/dist/_members/mcp/core.d.ts +16 -1
- 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-DFAESPHN.js → chunk-3OOMVQ6I.js} +11 -5
- package/dist/{chunk-IRVRWQWD.js → chunk-7YL7NJJF.js} +9 -4
- package/dist/{chunk-TWI22U3C.js → chunk-AMKPFIF4.js} +4 -4
- package/dist/{chunk-PSMIDGQA.js → chunk-CDZBSLVA.js} +2 -2
- package/dist/{chunk-XUU5PK6J.js → chunk-DEDZKZ6G.js} +2 -2
- package/dist/{chunk-EGR6QWLX.js → chunk-E54DK225.js} +1 -1
- package/dist/{chunk-OTZDVUAM.js → chunk-EDR75OU7.js} +1 -1
- package/dist/{chunk-7UVN36UK.js → chunk-LPFVUT3S.js} +11 -9
- package/dist/{chunk-WDJGMAZK.js → chunk-PQDALM2G.js} +5 -5
- package/dist/{chunk-VHCP4OLA.js → chunk-PRSRV7AT.js} +6 -6
- package/dist/{chunk-STTZC7NN.js → chunk-RGKDDR7H.js} +2475 -2298
- package/dist/{chunk-OAVJUZIC.js → chunk-TZ7DKL2G.js} +1 -1
- package/dist/{chunk-BWLYZQ7I.js → chunk-VDSO2KZY.js} +1 -1
- package/dist/{chunk-IHMKU4PM.js → chunk-WLU5XPDG.js} +2 -2
- package/dist/{chunk-HPWJQNBU.js → chunk-YV5AYMNK.js} +1 -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 +23 -23
- package/dist/composition/scene/schema.json +2 -1
- package/dist/composition/scene.js +3 -1
- package/dist/composition-ops.js +94 -33
- package/dist/core/render.js +3 -3
- package/dist/core.js +3 -3
- package/dist/mcp/adapter.js +5 -5
- 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 +8 -8
- package/dist/primitives/effects.js +5 -5
- package/dist/primitives/hero-text.js +2 -2
- package/dist/primitives/layouts.js +4 -4
- package/dist/primitives/scenes.js +5 -5
- package/dist/primitives/text.js +2 -2
- package/dist/primitives/ui-blocks.js +2 -2
- package/dist/primitives.js +23 -23
- package/dist/render-harness.js +7 -7
- package/package.json +10 -10
- package/dist/{chunk-VLJOIUHL.js → chunk-A76GTLSA.js} +3 -3
- package/dist/{chunk-7SQOXIWR.js → chunk-RL5SO653.js} +3 -3
- package/dist/{chunk-ZDL7XEXW.js → chunk-ZS3A3QUM.js} +4 -4
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertSceneShotParamsAdmitted,
|
|
4
4
|
materializeComponentSource,
|
|
5
5
|
renderComponentAlpha
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CDZBSLVA.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-VDSO2KZY.js";
|
|
20
20
|
import {
|
|
21
21
|
ComponentBakeJobV2,
|
|
22
22
|
ComponentBakeRequestV2,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-W2245F6G.js";
|
|
25
25
|
import {
|
|
26
26
|
FlexLayout
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DEDZKZ6G.js";
|
|
28
28
|
|
|
29
29
|
// ../execution/primitives/src/layouts/chat-to-preview-layout/index.tsx
|
|
30
30
|
import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
componentBrowserOptions,
|
|
5
5
|
resolvedComponentRenderer,
|
|
6
6
|
webglBackend
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-VDSO2KZY.js";
|
|
8
8
|
import "../chunk-ZVG446DJ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-7YL7NJJF.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-CDZBSLVA.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-VDSO2KZY.js";
|
|
35
35
|
import "../chunk-ZVG446DJ.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-7YL7NJJF.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-WLU5XPDG.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-CDZBSLVA.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-VDSO2KZY.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-7YL7NJJF.js";
|
|
131
131
|
import "./chunk-2L7PYYJK.js";
|
|
132
132
|
import "./chunk-AVTEPAWI.js";
|
|
133
133
|
import "./chunk-2ESYSVXG.js";
|
package/dist/compose.js
CHANGED
|
@@ -5,43 +5,43 @@ import {
|
|
|
5
5
|
import "./chunk-JQMPHKLU.js";
|
|
6
6
|
import "./chunk-ZZRBKGDA.js";
|
|
7
7
|
import "./chunk-GULDS3VE.js";
|
|
8
|
-
import {
|
|
9
|
-
catalog as catalog6
|
|
10
|
-
} from "./chunk-VLJOIUHL.js";
|
|
11
|
-
import {
|
|
12
|
-
catalog as catalog2
|
|
13
|
-
} from "./chunk-TWI22U3C.js";
|
|
14
|
-
import {
|
|
15
|
-
catalog as catalog8
|
|
16
|
-
} from "./chunk-7SQOXIWR.js";
|
|
17
|
-
import {
|
|
18
|
-
catalog as catalog4
|
|
19
|
-
} from "./chunk-HPWJQNBU.js";
|
|
20
8
|
import {
|
|
21
9
|
catalog as catalog7
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-S5H6GH6M.js";
|
|
24
|
-
import "./chunk-QAGGJHAF.js";
|
|
25
|
-
import "./chunk-MFHXCHRI.js";
|
|
10
|
+
} from "./chunk-PRSRV7AT.js";
|
|
26
11
|
import {
|
|
27
12
|
catalog
|
|
28
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZS3A3QUM.js";
|
|
29
14
|
import "./chunk-U4V4FZGE.js";
|
|
30
15
|
import "./chunk-DLF4WVSE.js";
|
|
31
|
-
import "./chunk-LT4PWSR2.js";
|
|
32
|
-
import "./chunk-FWSJLHSV.js";
|
|
33
16
|
import {
|
|
34
17
|
catalog as catalog3
|
|
35
18
|
} from "./chunk-FVDFPJHT.js";
|
|
36
19
|
import "./chunk-QGAWDLYX.js";
|
|
20
|
+
import {
|
|
21
|
+
catalog as catalog6
|
|
22
|
+
} from "./chunk-A76GTLSA.js";
|
|
23
|
+
import "./chunk-S5H6GH6M.js";
|
|
37
24
|
import {
|
|
38
25
|
catalog as catalog5
|
|
39
26
|
} from "./chunk-RAXHCRVV.js";
|
|
40
|
-
import
|
|
27
|
+
import {
|
|
28
|
+
catalog as catalog2
|
|
29
|
+
} from "./chunk-AMKPFIF4.js";
|
|
30
|
+
import {
|
|
31
|
+
catalog as catalog8
|
|
32
|
+
} from "./chunk-RL5SO653.js";
|
|
33
|
+
import "./chunk-LT4PWSR2.js";
|
|
34
|
+
import "./chunk-FWSJLHSV.js";
|
|
41
35
|
import "./chunk-ZFEXATWN.js";
|
|
36
|
+
import {
|
|
37
|
+
catalog as catalog4
|
|
38
|
+
} from "./chunk-YV5AYMNK.js";
|
|
39
|
+
import "./chunk-XHGZ2E77.js";
|
|
40
|
+
import "./chunk-QAGGJHAF.js";
|
|
41
|
+
import "./chunk-MFHXCHRI.js";
|
|
42
42
|
import "./chunk-W2245F6G.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-DEDZKZ6G.js";
|
|
44
|
+
import "./chunk-TZ7DKL2G.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-7YL7NJJF.js";
|
|
60
60
|
import "./chunk-2L7PYYJK.js";
|
|
61
61
|
import "./chunk-AVTEPAWI.js";
|
|
62
62
|
import "./chunk-2ESYSVXG.js";
|
|
@@ -2770,5 +2770,6 @@
|
|
|
2770
2770
|
}
|
|
2771
2771
|
]
|
|
2772
2772
|
}
|
|
2773
|
-
}
|
|
2773
|
+
},
|
|
2774
|
+
"description": "A version-2 scene shot: a self-contained 3D world-object shot that scene.add / scene.update materializes into an ordinary component clip. The shot owns its layers, camera, lighting, backdrop and normalized local animation; the composition owns start, duration, ordering, cuts and transitions. Coordinates are REFERENCE PIXELS: origin at frame centre, +X right, +Y down, +Z toward the viewer. referenceSize must have the SAME aspect ratio as the composition format; mismatch fails instead of cropping. At equal aspect ratio the shot scales uniformly by outputWidth/referenceWidth. A segment's easing belongs to the keyframe it ARRIVES at; the first keyframe has no easing. Authoring limits: 32 layers, 4 devices, 16 distinct image slots, 256 keyframes per channel, 2048 keyframes per shot. Version 2 supports nested groups, procedural slab/page/phone/laptop objects, screen- and world-space text, admitted image/component/video surfaces, fixed photographic and generated studio environments, transparent/solid/linear/radial backdrops, constraints, focus, grain and vignette. Raw HTML, custom shader props, imported GLB models, arbitrary external HDR environments, skeletal animation and physics are refused with an exact field path."
|
|
2774
2775
|
}
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
SCENE_PRESET_TRIANGLES,
|
|
37
37
|
SCENE_SCREEN_TEXT_PROPERTIES,
|
|
38
38
|
SCENE_SHOT_EXAMPLES,
|
|
39
|
+
SCENE_SHOT_SPEC_V2_DESCRIPTION,
|
|
39
40
|
SCENE_SHOT_SPEC_VERSION,
|
|
40
41
|
SCENE_SLAB_BODY_TRIANGLES,
|
|
41
42
|
SCENE_SLAB_CONTENT_FACE_TRIANGLES,
|
|
@@ -128,7 +129,7 @@ import {
|
|
|
128
129
|
selectSceneBakeScale,
|
|
129
130
|
verifySceneVideoPresentationIndexV1,
|
|
130
131
|
verifySealedSceneShotPlanV1
|
|
131
|
-
} from "../chunk-
|
|
132
|
+
} from "../chunk-7YL7NJJF.js";
|
|
132
133
|
import {
|
|
133
134
|
MIB,
|
|
134
135
|
SCENE_CONTEXT_GL_BUDGET_BYTES,
|
|
@@ -179,6 +180,7 @@ export {
|
|
|
179
180
|
SCENE_RENDER_JOB_BUDGET_BYTES,
|
|
180
181
|
SCENE_SCREEN_TEXT_PROPERTIES,
|
|
181
182
|
SCENE_SHOT_EXAMPLES,
|
|
183
|
+
SCENE_SHOT_SPEC_V2_DESCRIPTION,
|
|
182
184
|
SCENE_SHOT_SPEC_VERSION,
|
|
183
185
|
SCENE_SLAB_BODY_TRIANGLES,
|
|
184
186
|
SCENE_SLAB_CONTENT_FACE_TRIANGLES,
|
package/dist/composition-ops.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
playableSpans
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PQDALM2G.js";
|
|
4
4
|
import "./chunk-QH3YI3ND.js";
|
|
5
5
|
import "./chunk-QISFYLBB.js";
|
|
6
|
-
import "./chunk-VZ7TYX6Z.js";
|
|
7
6
|
import "./chunk-K4VE64CR.js";
|
|
7
|
+
import "./chunk-VZ7TYX6Z.js";
|
|
8
8
|
import "./chunk-DENF4TPI.js";
|
|
9
9
|
import {
|
|
10
10
|
createHeadlessStore,
|
|
@@ -34,7 +34,7 @@ import "./chunk-QWXUYVHX.js";
|
|
|
34
34
|
import "./chunk-7PA7FGLD.js";
|
|
35
35
|
import {
|
|
36
36
|
SceneShotSpecV2
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7YL7NJJF.js";
|
|
38
38
|
import "./chunk-2L7PYYJK.js";
|
|
39
39
|
import {
|
|
40
40
|
introducedCaptionFaceIssues
|
|
@@ -490,20 +490,48 @@ function resolveClipKind(clip, track) {
|
|
|
490
490
|
return resolved;
|
|
491
491
|
}
|
|
492
492
|
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
|
-
|
|
493
|
+
z.object({ type: z.literal("clip.add"), clip: TimelineClip, trackId: z.string().optional(), newTrack: z.boolean().optional(), newTrackId: z.string().optional() }).strict().describe(
|
|
494
|
+
"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."
|
|
495
|
+
),
|
|
496
|
+
z.object({ type: z.literal("clip.remove"), clipId: z.string() }).strict().describe(
|
|
497
|
+
"Remove a clip by id (located across every track)."
|
|
498
|
+
),
|
|
499
|
+
z.object({ type: z.literal("clip.update"), clipId: z.string(), patch: TimelineClip.partial() }).strict().describe(
|
|
500
|
+
"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.)"
|
|
501
|
+
),
|
|
502
|
+
z.object({ type: z.literal("removeClipsByMediaId"), mediaId: z.string() }).strict().describe(
|
|
503
|
+
"Remove EVERY clip sourced from a given mediaId (e.g. after deleting that media)."
|
|
504
|
+
),
|
|
505
|
+
z.object({ type: z.literal("loadOverlays"), clips: z.array(TimelineClip) }).strict().describe(
|
|
506
|
+
"Replace the overlay channel wholesale with the given clips (bulk set, not a merge)."
|
|
507
|
+
),
|
|
508
|
+
z.object({ type: z.literal("addMarker"), marker: Marker }).strict().describe(
|
|
509
|
+
"Add a timeline marker (a named time point/range; carry extensions in `metadata`)."
|
|
510
|
+
),
|
|
511
|
+
z.object({ type: z.literal("removeMarker"), markerId: z.string() }).strict().describe(
|
|
512
|
+
"Remove a marker by id."
|
|
513
|
+
),
|
|
514
|
+
z.object({ type: z.literal("updateMarker"), markerId: z.string(), updates: Marker.partial() }).strict().describe(
|
|
515
|
+
"Patch a marker's fields by id (partial merge)."
|
|
516
|
+
),
|
|
517
|
+
z.object({ type: z.literal("setCropIntents"), clipId: z.string(), segments: z.array(ReframeSegment).nullable() }).strict().describe(
|
|
518
|
+
"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."
|
|
519
|
+
),
|
|
520
|
+
z.object({ type: z.literal("setEffects"), clipId: z.string(), effects: z.array(PerClipEffect) }).strict().describe(
|
|
521
|
+
"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."
|
|
522
|
+
),
|
|
523
|
+
z.object({ type: z.literal("setCaptionStyle"), style: CaptionStyle.partial() }).strict().describe(
|
|
524
|
+
"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."
|
|
525
|
+
),
|
|
526
|
+
z.object({ type: z.literal("setCaptionDepth"), zPlane: z.enum(["front", "behind-subject"]) }).strict().describe(
|
|
527
|
+
"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."
|
|
528
|
+
),
|
|
529
|
+
z.object({ type: z.literal("setCaptions"), segments: z.array(CaptionSegment), style: CaptionStyle.partial().optional() }).strict().describe(
|
|
530
|
+
"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."
|
|
531
|
+
),
|
|
532
|
+
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(
|
|
533
|
+
"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."
|
|
534
|
+
),
|
|
507
535
|
// Scene shots (spec §"Authoring, persistence, and discovery"). Route-materialized: the host
|
|
508
536
|
// registers the generated wrapper source through its component store and rewrites these to
|
|
509
537
|
// addTrack / clip.add / clip.update carrying `props.componentRef`; the agent edits a scene
|
|
@@ -520,7 +548,12 @@ var CompositionOp = z.discriminatedUnion("type", [
|
|
|
520
548
|
transitionIn: Transition.optional(),
|
|
521
549
|
scene: SceneShotSpecV2,
|
|
522
550
|
assets: SceneAssetBindings
|
|
523
|
-
}).strict()
|
|
551
|
+
}).strict().describe(
|
|
552
|
+
// Lives here, not in the published api/openapi.json. It used to exist ONLY
|
|
553
|
+
// in that document, which made the contract hand-maintained and put it out
|
|
554
|
+
// of reach of a scripted sync from this SSOT.
|
|
555
|
+
'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.'
|
|
556
|
+
),
|
|
524
557
|
z.object({
|
|
525
558
|
type: z.literal("scene.update"),
|
|
526
559
|
clipId: z.string().min(1),
|
|
@@ -529,25 +562,53 @@ var CompositionOp = z.discriminatedUnion("type", [
|
|
|
529
562
|
transitionIn: Transition.optional(),
|
|
530
563
|
scene: SceneShotSpecV2.optional(),
|
|
531
564
|
assets: SceneAssetBindings.optional()
|
|
532
|
-
}).strict(),
|
|
533
|
-
z.object({ type: z.literal("materializeGrid"), clipId: z.string(), grid: z.enum(["beat", "word", "shot"]), maxMarkers: z.number().int().positive().max(2e3).optional() }).strict()
|
|
565
|
+
}).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`."),
|
|
566
|
+
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(
|
|
567
|
+
'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).'
|
|
568
|
+
),
|
|
534
569
|
z.object({
|
|
535
570
|
type: z.literal("captions.fromTranscript"),
|
|
536
571
|
mediaId: z.string().min(1),
|
|
537
572
|
window: z.object({ startSec: z.number().min(0), endSec: z.number().positive() }).strict().optional()
|
|
538
|
-
}).strict()
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
z.object({ type: z.literal("
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
z.object({ type: z.literal("
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
z.object({ type: z.literal("
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
573
|
+
}).strict().describe(
|
|
574
|
+
"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."
|
|
575
|
+
),
|
|
576
|
+
z.object({ type: z.literal("setFormat"), format: Format.pick({ aspectRatio: true, fps: true, resolution: true }) }).strict().describe(
|
|
577
|
+
"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."
|
|
578
|
+
),
|
|
579
|
+
z.object({ type: z.literal("addTrack"), kind: Track.shape.kind, name: z.string().optional(), id: z.string().optional() }).strict().describe(
|
|
580
|
+
"Add an EMPTY track of a given family (video|audio|image|overlay|effect). Optional pinned `id`."
|
|
581
|
+
),
|
|
582
|
+
z.object({ type: z.literal("removeTrack"), trackId: z.string() }).strict().describe(
|
|
583
|
+
"Remove a track AND all its clips by id."
|
|
584
|
+
),
|
|
585
|
+
z.object({ type: z.literal("updateTrack"), trackId: z.string(), updates: Track.pick({ name: true, enabled: true, volume: true }).partial() }).strict().describe(
|
|
586
|
+
"Patch a track's `name` / `enabled` by id."
|
|
587
|
+
),
|
|
588
|
+
z.object({ type: z.literal("reorderTracks"), fromIndex: z.number(), toIndex: z.number() }).strict().describe(
|
|
589
|
+
"Move a track from one index to another (changes layer/compositing order)."
|
|
590
|
+
),
|
|
591
|
+
z.object({ type: z.literal("moveClipToTrack"), clipId: z.string(), targetTrackId: z.string(), newStartTime: z.number().optional() }).strict().describe(
|
|
592
|
+
"Move a clip to another SAME-family track, optionally at a new `newStartTime`."
|
|
593
|
+
),
|
|
594
|
+
z.object({ type: z.literal("duplicateClip"), clipId: z.string(), newClipId: z.string().optional() }).strict().describe(
|
|
595
|
+
"Duplicate a clip by id. Pin `newClipId` to make the copy's id deterministic (required for a clean undo/inverse)."
|
|
596
|
+
),
|
|
597
|
+
z.object({ type: z.literal("cutAndRipple"), start: z.number(), end: z.number() }).strict().describe(
|
|
598
|
+
"Server-authoritative: delete the [start,end] time window (seconds) and ripple every downstream clip/marker/caption earlier to close the gap."
|
|
599
|
+
),
|
|
600
|
+
z.object({ type: z.literal("ripple"), time: z.number(), amount: z.number() }).strict().describe(
|
|
601
|
+
"Server-authoritative: shift everything at/after `time` (seconds) by `amount` seconds (+ opens a gap, \u2212 closes one)."
|
|
602
|
+
),
|
|
603
|
+
z.object({ type: z.literal("addExcludedRange"), clipId: z.string(), sourceStart: z.number(), sourceEnd: z.number(), reason: z.string().optional() }).strict().describe(
|
|
604
|
+
"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."
|
|
605
|
+
),
|
|
606
|
+
z.object({ type: z.literal("removeExcludedRange"), clipId: z.string(), rangeIdx: z.number() }).strict().describe(
|
|
607
|
+
"Server-authoritative: remove a clip's previously-added excluded range by index (re-includes that span, ripples downstream)."
|
|
608
|
+
)
|
|
609
|
+
]).describe(
|
|
610
|
+
"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."
|
|
611
|
+
);
|
|
551
612
|
function mergedCaptionStyle(composition, patch) {
|
|
552
613
|
const existing = composition.captions?.style ?? {};
|
|
553
614
|
if (!patch) return existing;
|
package/dist/core/render.js
CHANGED
|
@@ -66,21 +66,21 @@ import {
|
|
|
66
66
|
sliceTranscriptWords,
|
|
67
67
|
splitIntoSentences,
|
|
68
68
|
validateComposition
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-PQDALM2G.js";
|
|
70
70
|
import {
|
|
71
71
|
buildEasedZooms,
|
|
72
72
|
buildPannedCenters,
|
|
73
73
|
easeOutCubic
|
|
74
74
|
} from "../chunk-QH3YI3ND.js";
|
|
75
75
|
import "../chunk-QISFYLBB.js";
|
|
76
|
-
import "../chunk-VZ7TYX6Z.js";
|
|
77
76
|
import "../chunk-K4VE64CR.js";
|
|
77
|
+
import "../chunk-VZ7TYX6Z.js";
|
|
78
78
|
import "../chunk-DENF4TPI.js";
|
|
79
79
|
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-7YL7NJJF.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,17 +10,17 @@ import {
|
|
|
10
10
|
ensureEven,
|
|
11
11
|
extractCaptionWordsFromDoc,
|
|
12
12
|
isEmphasized
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PQDALM2G.js";
|
|
14
14
|
import "./chunk-QH3YI3ND.js";
|
|
15
15
|
import "./chunk-QISFYLBB.js";
|
|
16
|
-
import "./chunk-VZ7TYX6Z.js";
|
|
17
16
|
import "./chunk-K4VE64CR.js";
|
|
17
|
+
import "./chunk-VZ7TYX6Z.js";
|
|
18
18
|
import "./chunk-DENF4TPI.js";
|
|
19
19
|
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-7YL7NJJF.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,7 +2,10 @@ import {
|
|
|
2
2
|
querySchemaShape,
|
|
3
3
|
serializeQuery,
|
|
4
4
|
waitForJob
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-EDR75OU7.js";
|
|
6
|
+
import {
|
|
7
|
+
CURATED_TOOLS
|
|
8
|
+
} from "../chunk-3OOMVQ6I.js";
|
|
6
9
|
import {
|
|
7
10
|
apiErrorFrom,
|
|
8
11
|
bodySchemaFor,
|
|
@@ -13,10 +16,7 @@ import {
|
|
|
13
16
|
opById,
|
|
14
17
|
safeParse,
|
|
15
18
|
sniffImageMediaType
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import {
|
|
18
|
-
CURATED_TOOLS
|
|
19
|
-
} from "../chunk-DFAESPHN.js";
|
|
19
|
+
} from "../chunk-RGKDDR7H.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-RGKDDR7H.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-LPFVUT3S.js";
|
|
11
|
+
import "../chunk-EDR75OU7.js";
|
|
12
|
+
import "../chunk-3OOMVQ6I.js";
|
|
13
|
+
import "../chunk-RGKDDR7H.js";
|
|
14
14
|
import "../chunk-2ESYSVXG.js";
|
|
15
15
|
export {
|
|
16
16
|
RAW_EXCLUDED_OPERATION_IDS,
|
package/dist/mcp.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildServer,
|
|
3
|
-
registerCuratedTools,
|
|
4
|
-
registerRawTools
|
|
5
|
-
} from "./chunk-7UVN36UK.js";
|
|
6
|
-
import "./chunk-OTZDVUAM.js";
|
|
7
|
-
import "./chunk-STTZC7NN.js";
|
|
8
|
-
import "./chunk-DFAESPHN.js";
|
|
9
1
|
import {
|
|
10
2
|
API_URLS,
|
|
11
3
|
makeNetworkExecutor,
|
|
12
4
|
makePlatformExecutor
|
|
13
5
|
} from "./chunk-VCBLGZQQ.js";
|
|
6
|
+
import {
|
|
7
|
+
buildServer,
|
|
8
|
+
registerCuratedTools,
|
|
9
|
+
registerRawTools
|
|
10
|
+
} from "./chunk-LPFVUT3S.js";
|
|
11
|
+
import "./chunk-EDR75OU7.js";
|
|
12
|
+
import "./chunk-3OOMVQ6I.js";
|
|
13
|
+
import "./chunk-RGKDDR7H.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-
|
|
16
|
-
import "../chunk-MFHXCHRI.js";
|
|
15
|
+
} from "../chunk-AMKPFIF4.js";
|
|
17
16
|
import "../chunk-XHGZ2E77.js";
|
|
17
|
+
import "../chunk-MFHXCHRI.js";
|
|
18
18
|
import "../chunk-W2245F6G.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-DEDZKZ6G.js";
|
|
20
|
+
import "../chunk-TZ7DKL2G.js";
|
|
21
|
+
import "../chunk-7YL7NJJF.js";
|
|
22
22
|
import "../chunk-2L7PYYJK.js";
|
|
23
23
|
import "../chunk-AVTEPAWI.js";
|
|
24
24
|
import "../chunk-2ESYSVXG.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HeroText,
|
|
3
3
|
catalog
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RL5SO653.js";
|
|
5
5
|
import "../chunk-LT4PWSR2.js";
|
|
6
6
|
import "../chunk-FWSJLHSV.js";
|
|
7
|
-
import "../chunk-XHGZ2E77.js";
|
|
8
7
|
import "../chunk-ZFEXATWN.js";
|
|
8
|
+
import "../chunk-XHGZ2E77.js";
|
|
9
9
|
import "../chunk-W2245F6G.js";
|
|
10
10
|
import "../chunk-2ESYSVXG.js";
|
|
11
11
|
export {
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
SplitScreen,
|
|
9
9
|
StaggeredBentoGrid,
|
|
10
10
|
catalog
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-YV5AYMNK.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-DEDZKZ6G.js";
|
|
15
|
+
import "../chunk-TZ7DKL2G.js";
|
|
16
|
+
import "../chunk-7YL7NJJF.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-PRSRV7AT.js";
|
|
12
|
+
import "../chunk-QGAWDLYX.js";
|
|
12
13
|
import "../chunk-S5H6GH6M.js";
|
|
13
14
|
import "../chunk-QAGGJHAF.js";
|
|
14
15
|
import "../chunk-MFHXCHRI.js";
|
|
15
|
-
import "../chunk-QGAWDLYX.js";
|
|
16
16
|
import "../chunk-W2245F6G.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-DEDZKZ6G.js";
|
|
18
|
+
import "../chunk-TZ7DKL2G.js";
|
|
19
|
+
import "../chunk-7YL7NJJF.js";
|
|
20
20
|
import "../chunk-2L7PYYJK.js";
|
|
21
21
|
import "../chunk-AVTEPAWI.js";
|
|
22
22
|
import "../chunk-2ESYSVXG.js";
|