@cueframe/kernel 0.2.58 → 0.2.59-rc.1
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/account-model/testing/conversationStoreContract.d.ts +3 -4
- package/dist/_members/account-model/testing/restorePointStoreContract.d.ts +3 -4
- package/dist/_members/account-model/validators/index.d.ts +0 -1
- package/dist/_members/animate/index.d.ts +0 -2
- package/dist/_members/authoring/index.d.ts +1 -1
- package/dist/_members/authoring/prompts/index.d.ts +0 -1
- package/dist/_members/authoring/resources.d.ts +2 -11
- package/dist/_members/cloud-import/CloudImportService.d.ts +0 -1
- package/dist/_members/cloud-import/index.d.ts +0 -2
- package/dist/_members/component-runtime/allowedImports.d.ts +6 -0
- package/dist/_members/component-runtime/allowedImports.d.ts.map +1 -1
- package/dist/_members/component-runtime/browserIdentity.d.ts +2 -12
- package/dist/_members/component-runtime/browserIdentity.d.ts.map +1 -1
- package/dist/_members/component-runtime/canonicalIdentity.d.ts +8 -1
- package/dist/_members/component-runtime/canonicalIdentity.d.ts.map +1 -1
- package/dist/_members/component-runtime/contracts.d.ts +2 -1
- package/dist/_members/component-runtime/contracts.d.ts.map +1 -1
- package/dist/_members/component-runtime/identity.d.ts +2 -3
- package/dist/_members/component-runtime/identity.d.ts.map +1 -1
- package/dist/_members/component-runtime/importPolicy.d.ts +5 -0
- package/dist/_members/component-runtime/importPolicy.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/checks.d.ts +71 -0
- package/dist/_members/component-runtime/template/checks.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/extract.d.ts +4 -0
- package/dist/_members/component-runtime/template/extract.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/index.d.ts +1 -0
- package/dist/_members/component-runtime/template/index.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/schema.d.ts +14 -13
- package/dist/_members/component-runtime/template/schema.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts +3 -4
- package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts.map +1 -1
- package/dist/_members/component-runtime/testing/sourcePolicyCases.d.ts +15 -0
- package/dist/_members/component-runtime/testing/sourcePolicyCases.d.ts.map +1 -0
- package/dist/_members/component-runtime/webglProbe.d.ts.map +1 -1
- package/dist/_members/compose/index.d.ts +1 -1
- package/dist/_members/compose/primitiveRegistry.d.ts +0 -2
- package/dist/_members/composition/audio/audioMix.d.ts +0 -1
- package/dist/_members/composition/audio/mixStaging.d.ts +0 -5
- package/dist/_members/composition/fixtures/index.d.ts +0 -1
- package/dist/_members/composition/graphics-plan/index.d.ts +0 -2
- package/dist/_members/composition/graphics-plan/schemas.d.ts +4 -4
- package/dist/_members/composition/invariants/etag.d.ts +0 -1
- package/dist/_members/composition/invariants/index.d.ts +0 -1
- package/dist/_members/composition/ops/compositionOps.d.ts +0 -1
- package/dist/_members/composition/ops/compositionOps.shared.d.ts +6 -0
- package/dist/_members/composition/ops/index.d.ts +2 -1
- package/dist/_members/composition/primitive-catalog/index.d.ts +0 -2
- package/dist/_members/composition/projection/behind-readiness.d.ts +0 -6
- package/dist/_members/composition/timeline/link.d.ts +0 -4
- package/dist/_members/composition/timeline/plan.d.ts +0 -1
- package/dist/_members/composition/validators/brandKit.d.ts +4 -4
- package/dist/_members/composition/validators/brandKitBody.d.ts +8 -8
- package/dist/_members/composition/validators/cardHtml.d.ts +11 -0
- package/dist/_members/composition/validators/composition.d.ts +2 -5
- package/dist/_members/composition/validators/css-tree-subpaths.d.ts +16 -0
- package/dist/_members/composition/validators/index.d.ts +0 -3
- package/dist/_members/composition/validators/session.d.ts +3 -3
- package/dist/_members/composition/validators/webhook.d.ts +4 -4
- package/dist/_members/composition-ops/alphaLayers.d.ts +0 -5
- package/dist/_members/composition-ops/index.d.ts +2 -2
- package/dist/_members/composition-ops/opRecorder.d.ts +23 -3
- package/dist/_members/core/render/exportSettings.d.ts +4 -2
- package/dist/_members/core/render/index.d.ts +1 -1
- package/dist/_members/core/render/vcam/requiredRegion.d.ts +0 -1
- package/dist/_members/director/ai-sdk/index.d.ts +0 -1
- package/dist/_members/director/ai-sdk/messages.d.ts +0 -1
- package/dist/_members/director/domain/chat.d.ts +0 -78
- package/dist/_members/director/domain/index.d.ts +0 -1
- package/dist/_members/errors/registry.d.ts +6 -0
- package/dist/_members/foundation/canonical/index.d.ts +14 -0
- package/dist/_members/foundation/index.d.ts +1 -1
- package/dist/_members/foundation/primitives/index.d.ts +0 -2
- package/dist/_members/foundation/testing/index.d.ts +1 -0
- package/dist/_members/foundation/testing/knownRed.d.ts +13 -0
- package/dist/_members/mcp/adapter.d.ts +21 -0
- package/dist/_members/mcp/compositionOps.d.ts +10 -0
- package/dist/_members/mcp/server.d.ts +0 -5
- package/dist/_members/mcp/wait.d.ts +3 -1
- package/dist/_members/media-model/generation.d.ts +0 -25
- package/dist/_members/nle-export/xml-utils.d.ts +0 -8
- package/dist/_members/plane/conformance.d.ts +20 -0
- package/dist/_members/primitives/index.d.ts +1 -11
- package/dist/_members/primitives/lib/index.d.ts +1 -1
- package/dist/_members/primitives/lib/tokens.d.ts +0 -16
- package/dist/_members/render-harness/cardAssetAdmission.d.ts +1 -0
- package/dist/_members/render-harness/cardAssetAdmission.d.ts.map +1 -1
- package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
- package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
- package/dist/_members/render-harness/mediaServer.d.ts +6 -1
- package/dist/_members/render-harness/mediaServer.d.ts.map +1 -1
- package/dist/account-model/testing.js +15 -5
- package/dist/account-model/validators.js +5 -7
- package/dist/account-model.js +5 -7
- package/dist/animate/preparation-facts.js +1 -1
- package/dist/animate.js +2 -6
- package/dist/authoring/composer.js +1 -1
- package/dist/authoring/context.js +8 -7
- package/dist/authoring/models/defaults.d.ts +1 -0
- package/dist/authoring/models/defaults.js +7 -0
- package/dist/authoring/models.js +5 -3
- package/dist/authoring/motion.d.ts +1 -0
- package/dist/authoring/motion.js +25 -0
- package/dist/authoring/prompts.js +4 -14
- package/dist/authoring/providers.js +1 -1
- package/dist/authoring/resource-routing.js +2 -2
- package/dist/authoring/resources.js +4 -22
- package/dist/authoring/scene.js +3 -2
- package/dist/authoring.js +662 -219
- package/dist/brand-derivation/constants.js +1 -1
- package/dist/brand-derivation.js +1 -1
- package/dist/{chunk-LBJ5LI5V.js → chunk-2K2GBFLU.js} +17 -8
- package/dist/{chunk-RAXHCRVV.js → chunk-2PAP5LO5.js} +1 -1
- package/dist/{chunk-MNO6AO2J.js → chunk-3HLDIIWA.js} +1 -1
- package/dist/{chunk-PTVTWQ4T.js → chunk-3JEUNKDK.js} +2 -2
- package/dist/chunk-3VWJ3H4X.js +68 -0
- package/dist/{chunk-S5H6GH6M.js → chunk-3Z7CN54H.js} +1 -1
- package/dist/{chunk-FVDFPJHT.js → chunk-46WBCUPE.js} +1 -1
- package/dist/chunk-4VBLQIM5.js +30 -0
- package/dist/{chunk-N2OZDD44.js → chunk-6HA55CRU.js} +4 -5
- package/dist/{chunk-WL2MLKWU.js → chunk-6HPEMDQW.js} +1 -1
- package/dist/{chunk-PWWZTY3G.js → chunk-6KZCXAYL.js} +5 -2
- package/dist/{chunk-IEXAKOEX.js → chunk-6QGARSV6.js} +2 -15
- package/dist/{chunk-3YVIAWET.js → chunk-7II5OM7R.js} +13 -1
- package/dist/{chunk-UFD4EZHM.js → chunk-AFUITAH6.js} +4 -5
- package/dist/{chunk-HGCYZMII.js → chunk-AK6QPX7A.js} +9 -9
- package/dist/{chunk-EC6VFQE6.js → chunk-BZVOCVQV.js} +1 -0
- package/dist/{chunk-RBWS5XHE.js → chunk-CAF7BRNE.js} +2 -2
- package/dist/{chunk-TR53N6HB.js → chunk-CEO47DIE.js} +6 -3
- package/dist/chunk-CIOUDOGN.js +12 -0
- package/dist/{chunk-GQ6XGAFB.js → chunk-DCKADD5B.js} +1 -1
- package/dist/{chunk-4NIJWK45.js → chunk-EISHFHU5.js} +0 -8
- package/dist/chunk-EQH37KNZ.js +224 -0
- package/dist/{chunk-EXY4JJPH.js → chunk-F6PLDBAK.js} +2 -11
- package/dist/{chunk-DAARYRNT.js → chunk-FKSXKS35.js} +6 -6
- package/dist/{chunk-KBDUEU4W.js → chunk-FZB7UX44.js} +1 -1
- package/dist/chunk-H2ZZXISB.js +24 -0
- package/dist/{chunk-WSMCZRJ2.js → chunk-I2HNC4PQ.js} +1 -1
- package/dist/{chunk-NVXSKKRN.js → chunk-IUJABAG2.js} +14 -10
- package/dist/{chunk-7NIOFHMH.js → chunk-IVFMOHAC.js} +1 -9
- package/dist/{chunk-UKDBU7HM.js → chunk-JNBNDHEF.js} +3 -3
- package/dist/{chunk-JWMWVP64.js → chunk-KC4LNZL5.js} +4 -9
- package/dist/{chunk-GCQ7Z7S7.js → chunk-KKATUGRU.js} +3 -9
- package/dist/{chunk-Q5P5UFOP.js → chunk-KLQ53NX3.js} +13 -1
- package/dist/{chunk-UMXES6ED.js → chunk-LVMWPFV4.js} +1 -1
- package/dist/{chunk-TKFLSGAS.js → chunk-MMJYII7Y.js} +5 -5
- package/dist/{chunk-REST55RC.js → chunk-NECN7TT4.js} +5 -4
- package/dist/{chunk-4ZE564YF.js → chunk-NM7NWXGF.js} +0 -146
- package/dist/{chunk-5T655LYZ.js → chunk-NY6EI5YW.js} +4 -4
- package/dist/{chunk-UXRSEMJJ.js → chunk-ONSGT6UJ.js} +66 -35
- package/dist/{chunk-VZ7TYX6Z.js → chunk-P3EFZDM5.js} +0 -17
- package/dist/{chunk-BEFSJMFF.js → chunk-P6RVYHLT.js} +9 -9
- package/dist/{chunk-TBHSOEYK.js → chunk-PLWDYWK6.js} +4 -34
- package/dist/{chunk-KYRDKK2D.js → chunk-Q6CJ6HCU.js} +1 -6
- package/dist/{chunk-FWSJLHSV.js → chunk-R642352J.js} +1 -1
- package/dist/{chunk-XELS2BGA.js → chunk-R6HTIP3N.js} +1 -3
- package/dist/{chunk-RL5SO653.js → chunk-RQRPSSRT.js} +1 -1
- package/dist/chunk-RR7UBEBV.js +172 -0
- package/dist/{chunk-FHMTAZD4.js → chunk-RWJHZCOR.js} +1 -71
- package/dist/{chunk-73DQTUWY.js → chunk-TIAJMEQ4.js} +2 -22
- package/dist/{chunk-2ESYSVXG.js → chunk-U67V476Y.js} +2 -15
- package/dist/{chunk-3VLDQE26.js → chunk-U7KSOA2L.js} +4 -21
- package/dist/{chunk-VLJOIUHL.js → chunk-UGEUB763.js} +6 -6
- package/dist/{chunk-K66NLMGX.js → chunk-UGWJC4GA.js} +62 -18
- package/dist/chunk-VBYINB74.js +136 -0
- package/dist/{chunk-W2245F6G.js → chunk-WTQRLFR2.js} +1 -1
- package/dist/{chunk-JN3GF36B.js → chunk-X2RTLS6K.js} +2 -23
- package/dist/chunk-XHMKPTHV.js +20 -0
- package/dist/{chunk-2L33CKIY.js → chunk-XOT2VWCO.js} +18 -31
- package/dist/{chunk-AK5QBHOB.js → chunk-XQGQ5EFS.js} +10 -1
- package/dist/chunk-XR76OZKC.js +21 -0
- package/dist/chunk-ZCEYEIRB.js +179 -0
- package/dist/{chunk-IMIUHG2E.js → chunk-ZPJQ3TQL.js} +1 -3
- package/dist/cloud-import.js +1 -16
- package/dist/component-runtime/browserOptions.js +4 -3
- package/dist/component-runtime/contracts.js +2 -2
- package/dist/component-runtime/identity/browser.js +2 -17
- package/dist/component-runtime/identity.js +5 -7
- package/dist/component-runtime/importPolicy.js +3 -3
- package/dist/component-runtime/mediaResolution.js +1 -1
- package/dist/component-runtime/render.js +8 -7
- package/dist/component-runtime/sourceAdmission.js +3 -3
- package/dist/component-runtime/template/testing.js +15 -12
- package/dist/component-runtime/template.js +165 -13
- package/dist/component-runtime.js +27 -28
- package/dist/compose.js +30 -47
- package/dist/composition/audio.js +4 -8
- package/dist/composition/brand-kit.js +1 -1
- package/dist/composition/brief.js +1 -1
- package/dist/composition/card-html.d.ts +1 -0
- package/dist/composition/card-html.js +15 -0
- package/dist/composition/depth.js +1 -1
- package/dist/composition/floors.js +2 -2
- package/dist/composition/fonts.js +1 -1
- package/dist/composition/graphics-plan.js +4 -44
- package/dist/composition/invariants.js +5 -12
- package/dist/composition/ops.js +7 -6
- package/dist/composition/primitive-catalog.js +2 -6
- package/dist/composition/projection.js +3 -5
- package/dist/composition/reframe/coverage.js +1 -1
- package/dist/composition/reframe/kenBurns.js +1 -1
- package/dist/composition/reframe/shotScale.js +1 -1
- package/dist/composition/reframe/trajectory.js +1 -1
- package/dist/composition/reframe.js +1 -1
- package/dist/composition/scene/budget-policy.js +1 -1
- package/dist/composition/scene.js +1 -1
- package/dist/composition/timeline.js +4 -8
- package/dist/composition/validators/brand-kit-body.js +5 -4
- package/dist/composition/validators/graphic-kinds.js +1 -1
- package/dist/composition/validators.js +8 -65
- package/dist/composition-ops.js +17 -16
- package/dist/composition.js +13 -79
- package/dist/context-7SWSVJ6Z.js +17 -0
- package/dist/core/render.js +13 -9
- package/dist/core/select.js +3 -3
- package/dist/core.js +9 -9
- package/dist/director/ai-sdk.js +7 -11
- package/dist/director/domain.js +9 -17
- package/dist/director.js +9 -21
- package/dist/{dist-LAJ2363K.js → dist-6FO67KVA.js} +1 -1
- package/dist/errors.js +2 -2
- package/dist/foundation/canonical.d.ts +1 -0
- package/dist/foundation/canonical.js +7 -0
- package/dist/foundation/primitives.js +4 -6
- package/dist/foundation/testing.d.ts +1 -0
- package/dist/foundation/testing.js +7 -0
- package/dist/foundation.js +7 -9
- package/dist/{magic-string.es-SDTMJBWP.js → magic-string.es-KVSW34UD.js} +1 -1
- package/dist/mcp/adapter.js +11 -19
- package/dist/mcp/composition-ops.d.ts +1 -0
- package/dist/mcp/composition-ops.js +11 -0
- package/dist/mcp/core.js +2 -2
- package/dist/mcp/curation.js +1 -1
- package/dist/mcp/executor.js +1 -1
- package/dist/mcp/scene-shot.js +3 -3
- package/dist/mcp/server.js +6 -7
- package/dist/mcp/wire-schema.js +13 -2
- package/dist/mcp.js +11 -10
- package/dist/media-model/generation.js +6 -8
- package/dist/media-model/media-kind.js +1 -1
- package/dist/media-model/testing.js +2 -2
- package/dist/media-model/transcriptSearch.js +1 -1
- package/dist/media-model.js +6 -8
- package/dist/nle-export/xml.js +1 -1
- package/dist/nle-export.js +2 -2
- package/dist/perception.js +1 -1
- package/dist/plane/conformance.js +8 -4
- package/dist/plane/contract.js +1 -1
- package/dist/plane.js +8 -4
- package/dist/primitives/backgrounds.js +3 -3
- package/dist/primitives/captions.js +2 -2
- package/dist/primitives/effects.js +5 -5
- package/dist/primitives/hero-text.js +4 -4
- package/dist/primitives/layouts.js +4 -4
- package/dist/primitives/lib/easings.js +1 -1
- package/dist/primitives/lib/frameScale.js +1 -1
- package/dist/primitives/lib/index.js +7 -13
- package/dist/primitives/lib/palette.js +2 -2
- package/dist/primitives/lib/preview.js +1 -1
- package/dist/primitives/lib/schema.js +1 -1
- package/dist/primitives/lib/seeded-random.js +1 -1
- package/dist/primitives/lib/text/contrast.js +3 -3
- package/dist/primitives/lib/text/fill.js +1 -1
- package/dist/primitives/lib/text/fitText.js +1 -1
- package/dist/primitives/lib/text/marker.js +1 -1
- package/dist/primitives/lib/text/motion.js +1 -1
- package/dist/primitives/lib/text/recolor.js +1 -1
- package/dist/primitives/lib/text/stage.js +1 -1
- package/dist/primitives/lib/text/typeface.js +1 -1
- package/dist/primitives/lib/tokens.js +4 -11
- package/dist/primitives/lib.js +7 -13
- package/dist/primitives/scenes.js +5 -5
- package/dist/primitives/subject-foreground.js +1 -1
- package/dist/primitives/text.js +4 -4
- package/dist/primitives/transitions.js +3 -3
- package/dist/primitives/ui-blocks.js +6 -6
- package/dist/primitives/workspace.js +1 -1
- package/dist/primitives.js +26 -40
- package/dist/render-harness/cardAssetAdmission.js +4 -4
- package/dist/render-harness/cardFonts.js +3 -3
- package/dist/render-harness/renderInputAssets.js +4 -4
- package/dist/render-harness.js +104 -86
- package/dist/{src-ZP6727AA.js → src-XI5MULKD.js} +17 -16
- package/package.json +38 -60
- package/dist/_members/account-model/validators/workingComposition.d.ts +0 -11
- package/dist/_members/animate/animations/index.d.ts +0 -9
- package/dist/_members/animate/easing/index.d.ts +0 -3
- package/dist/_members/animate/mobjects/index.d.ts +0 -4
- package/dist/_members/animate/scene/internal.d.ts +0 -29
- package/dist/_members/authoring/prompts/graphics.d.ts +0 -9
- package/dist/_members/cloud-import/cloudConfig.d.ts +0 -2
- package/dist/_members/composition/autozoom/index.d.ts +0 -25
- package/dist/_members/composition/graphics-plan/instantiateMotif.d.ts +0 -34
- package/dist/_members/composition/invariants/time.d.ts +0 -14
- package/dist/_members/composition/types/index.d.ts +0 -8
- package/dist/_members/composition/validators/font.d.ts +0 -58
- package/dist/_members/composition/validators/registry.d.ts +0 -79
- package/dist/_members/composition/validators/render.d.ts +0 -2068
- package/dist/_members/director/ai-sdk/chunks.d.ts +0 -14
- package/dist/_members/director/domain/ports.d.ts +0 -32
- package/dist/_members/director/testing/contract.d.ts +0 -52
- package/dist/_members/director/testing/index.d.ts +0 -1
- package/dist/_members/foundation/codes/index.d.ts +0 -10
- package/dist/_members/nle-export/server/index.d.ts +0 -1
- package/dist/_members/nle-export/server/pack-zip.d.ts +0 -6
- package/dist/_members/render-harness/assetRefs.d.ts +0 -26
- package/dist/_members/render-harness/assetRefs.d.ts.map +0 -1
- package/dist/_members/render-harness/remotion-runtime.d.ts +0 -87
- package/dist/authoring/build-tools.d.ts +0 -1
- package/dist/authoring/build-tools.js +0 -28
- package/dist/authoring/capabilities.d.ts +0 -1
- package/dist/authoring/capabilities.js +0 -11
- package/dist/authoring/pipelineTrace.d.ts +0 -1
- package/dist/authoring/pipelineTrace.js +0 -7
- package/dist/authoring/tools.d.ts +0 -1
- package/dist/authoring/tools.js +0 -31
- package/dist/chunk-6UZYUWBX.js +0 -197
- package/dist/chunk-7EDLPIUN.js +0 -384
- package/dist/chunk-GF52TW4I.js +0 -51
- package/dist/chunk-IG3YAOUZ.js +0 -418
- package/dist/chunk-JOURGVOR.js +0 -27
- package/dist/chunk-MFMR3LHO.js +0 -116
- package/dist/chunk-OSMXQV5V.js +0 -18
- package/dist/chunk-QDBVYZSF.js +0 -128
- package/dist/chunk-U3JPILZS.js +0 -15
- package/dist/chunk-Y4HPN4BC.js +0 -364
- package/dist/composition/autozoom.d.ts +0 -1
- package/dist/composition/autozoom.js +0 -76
- package/dist/composition/fixtures.d.ts +0 -1
- package/dist/composition/fixtures.js +0 -154
- package/dist/composition/types.d.ts +0 -1
- package/dist/composition/types.js +0 -0
- package/dist/context-4WSFPRLX.js +0 -16
- package/dist/director/testing.d.ts +0 -1
- package/dist/director/testing.js +0 -22
- package/dist/foundation/codes.d.ts +0 -1
- package/dist/foundation/codes.js +0 -7
- package/dist/nle-export/server.d.ts +0 -1
- package/dist/nle-export/server.js +0 -25856
- /package/dist/{chunk-FTVZF4GO.js → chunk-S432RE6G.js} +0 -0
package/dist/brand-derivation.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Composition
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AFUITAH6.js";
|
|
4
4
|
import {
|
|
5
5
|
expandToLinkGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q6CJ6HCU.js";
|
|
7
7
|
|
|
8
8
|
// ../composition/src/ops/compositionOps.shared.ts
|
|
9
9
|
var TIMELINE_BOUNDARY_EPSILON_SECONDS = 1e-9;
|
|
10
|
+
function nextTrackId(composition, kind) {
|
|
11
|
+
const used = new Set(composition.tracks.map((t) => t.id));
|
|
12
|
+
for (let n = 1; ; n += 1) {
|
|
13
|
+
const id = `track-${kind}-${n}`;
|
|
14
|
+
if (!used.has(id)) return id;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
10
17
|
function findOrCreateTrackByKind(composition, kind) {
|
|
11
18
|
const existing = composition.tracks.find((t) => t.kind === kind);
|
|
12
19
|
if (existing) return existing;
|
|
13
20
|
const track = {
|
|
14
|
-
id:
|
|
21
|
+
id: nextTrackId(composition, kind),
|
|
15
22
|
kind,
|
|
16
23
|
contents: []
|
|
17
24
|
};
|
|
@@ -190,7 +197,7 @@ function createCompositionOps(get, set) {
|
|
|
190
197
|
set((draft) => {
|
|
191
198
|
if (options?.newTrack) {
|
|
192
199
|
const track = {
|
|
193
|
-
id: options.newTrackId ??
|
|
200
|
+
id: options.newTrackId ?? nextTrackId(draft.composition, "video"),
|
|
194
201
|
kind: "video",
|
|
195
202
|
contents: [clip]
|
|
196
203
|
};
|
|
@@ -213,7 +220,7 @@ function createCompositionOps(get, set) {
|
|
|
213
220
|
}
|
|
214
221
|
if (target.newTrack) {
|
|
215
222
|
draft.composition.tracks.push({
|
|
216
|
-
id: target.newTrackId ??
|
|
223
|
+
id: target.newTrackId ?? nextTrackId(draft.composition, target.kind),
|
|
217
224
|
kind: target.kind,
|
|
218
225
|
contents: [clip]
|
|
219
226
|
});
|
|
@@ -435,7 +442,7 @@ function createCompositionOps(get, set) {
|
|
|
435
442
|
draft.composition.tracks = draft.composition.tracks.filter((t) => t.kind !== "overlay");
|
|
436
443
|
if (clips.length > 0) {
|
|
437
444
|
draft.composition.tracks.push({
|
|
438
|
-
id:
|
|
445
|
+
id: nextTrackId(draft.composition, "overlay"),
|
|
439
446
|
kind: "overlay",
|
|
440
447
|
contents: clips
|
|
441
448
|
});
|
|
@@ -770,7 +777,7 @@ function createCompositionOps(get, set) {
|
|
|
770
777
|
addTrack: (kind, name, id) => {
|
|
771
778
|
set((draft) => {
|
|
772
779
|
const track = {
|
|
773
|
-
id: id ??
|
|
780
|
+
id: id ?? nextTrackId(draft.composition, kind),
|
|
774
781
|
kind,
|
|
775
782
|
name,
|
|
776
783
|
contents: []
|
|
@@ -851,7 +858,9 @@ function createCompositionOps(get, set) {
|
|
|
851
858
|
if (next.startTime >= placementStart + original.duration) break;
|
|
852
859
|
placementStart = next.startTime + next.duration;
|
|
853
860
|
}
|
|
854
|
-
|
|
861
|
+
let n = 1;
|
|
862
|
+
while (findClipById(draft.composition, `${original.id}-dup-${n}`)) n += 1;
|
|
863
|
+
newId = `${original.id}-dup-${n}`;
|
|
855
864
|
const copy = { ...original, id: newId, startTime: placementStart };
|
|
856
865
|
delete copy.linkGroupId;
|
|
857
866
|
track.contents.splice(idx + 1, 0, copy);
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
TEXT_HI,
|
|
22
22
|
TEXT_MUTED,
|
|
23
23
|
VIOLET
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WTQRLFR2.js";
|
|
25
25
|
import {
|
|
26
26
|
FlexLayout
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RWJHZCOR.js";
|
|
28
28
|
|
|
29
29
|
// ../execution/primitives/src/layouts/chat-to-preview-layout/index.tsx
|
|
30
30
|
import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// ../execution/primitives/src/lib/tokens.ts
|
|
2
|
+
var CONTRAST_CRITICAL_PATHS = /* @__PURE__ */ new Set([
|
|
3
|
+
"colors.text",
|
|
4
|
+
"colors.textMuted",
|
|
5
|
+
"colors.textOnMedia",
|
|
6
|
+
"colors.textOnAccent",
|
|
7
|
+
"colors.textOnSurface",
|
|
8
|
+
"caption.fg",
|
|
9
|
+
"caption.scrim"
|
|
10
|
+
]);
|
|
11
|
+
function isContrastCritical(brandKitPath) {
|
|
12
|
+
return CONTRAST_CRITICAL_PATHS.has(brandKitPath);
|
|
13
|
+
}
|
|
14
|
+
var FROZEN_CORE_PATHS = [
|
|
15
|
+
"colors.background",
|
|
16
|
+
"colors.surface",
|
|
17
|
+
"colors.card",
|
|
18
|
+
"colors.text",
|
|
19
|
+
"colors.textMuted",
|
|
20
|
+
"colors.textOnMedia",
|
|
21
|
+
"colors.border",
|
|
22
|
+
"colors.gridLine",
|
|
23
|
+
"colors.accent",
|
|
24
|
+
"colors.accentMuted",
|
|
25
|
+
"colors.textOnAccent",
|
|
26
|
+
"colors.textOnSurface",
|
|
27
|
+
"caption.fg",
|
|
28
|
+
"caption.scrim",
|
|
29
|
+
"fonts.heading",
|
|
30
|
+
"fonts.body",
|
|
31
|
+
"fonts.caption",
|
|
32
|
+
"motion.duration",
|
|
33
|
+
"motion.easing",
|
|
34
|
+
"motion.entrance",
|
|
35
|
+
"motion.staggerMs",
|
|
36
|
+
"motion.exitMs",
|
|
37
|
+
"spacing.base",
|
|
38
|
+
"spacing.lg",
|
|
39
|
+
"spacing.sm",
|
|
40
|
+
"sizing.fontSizeHeading",
|
|
41
|
+
"sizing.fontSizeBody",
|
|
42
|
+
"sizing.fontSizeLabel",
|
|
43
|
+
"sizing.borderRadius"
|
|
44
|
+
];
|
|
45
|
+
var TIER2B_EXTENSION_PATHS = [
|
|
46
|
+
"colors.terminal",
|
|
47
|
+
"colors.chrome",
|
|
48
|
+
"colors.overlay",
|
|
49
|
+
"colors.accentHue"
|
|
50
|
+
];
|
|
51
|
+
var ALLOWED_BRAND_PATHS = [
|
|
52
|
+
...FROZEN_CORE_PATHS,
|
|
53
|
+
...TIER2B_EXTENSION_PATHS
|
|
54
|
+
];
|
|
55
|
+
var BRAND_REF_PREFIX = "$brand:";
|
|
56
|
+
function lintBrandPath(p) {
|
|
57
|
+
const path = p.startsWith(BRAND_REF_PREFIX) ? p.slice(BRAND_REF_PREFIX.length) : p;
|
|
58
|
+
return ALLOWED_BRAND_PATHS.includes(path);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
CONTRAST_CRITICAL_PATHS,
|
|
63
|
+
isContrastCritical,
|
|
64
|
+
FROZEN_CORE_PATHS,
|
|
65
|
+
TIER2B_EXTENSION_PATHS,
|
|
66
|
+
ALLOWED_BRAND_PATHS,
|
|
67
|
+
lintBrandPath
|
|
68
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// ../mcp/src/compositionOps.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var DESCRIBE_COMPOSITION_OPS_DESCRIPTION = "Discover the exact CompositionOp vocabulary accepted by apply_composition. Omit type for a compact list of operation names and descriptions; pass type for only that operation's JSON Schema. Read this before authoring edits or captions.";
|
|
4
|
+
var DescribeCompositionOpsInput = z.object({
|
|
5
|
+
type: z.string().optional().describe("Exact CompositionOp type, such as captions.fromComposition. Omit for the operation list.")
|
|
6
|
+
});
|
|
7
|
+
async function describeCompositionOps(type) {
|
|
8
|
+
const { CompositionOp } = await import("./src-XI5MULKD.js");
|
|
9
|
+
const variants = CompositionOp.options;
|
|
10
|
+
const knownTypes = variants.map((variant2) => variant2.shape.type.value);
|
|
11
|
+
if (type === void 0) {
|
|
12
|
+
return {
|
|
13
|
+
operations: variants.map((variant2) => ({
|
|
14
|
+
type: variant2.shape.type.value,
|
|
15
|
+
description: variant2.description ?? ""
|
|
16
|
+
}))
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const variant = variants.find((candidate) => candidate.shape.type.value === type);
|
|
20
|
+
if (!variant) {
|
|
21
|
+
throw new Error(`Unknown CompositionOp type ${JSON.stringify(type)}. Known types: ${knownTypes.join(", ")}`);
|
|
22
|
+
}
|
|
23
|
+
return { type, schema: z.toJSONSchema(variant, { io: "input" }) };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
DESCRIBE_COMPOSITION_OPS_DESCRIPTION,
|
|
28
|
+
DescribeCompositionOpsInput,
|
|
29
|
+
describeCompositionOps
|
|
30
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
canonicalJson
|
|
3
|
+
} from "./chunk-XHMKPTHV.js";
|
|
1
4
|
import {
|
|
2
5
|
isSceneShotClip,
|
|
3
6
|
isTimelineClip,
|
|
@@ -211,12 +214,8 @@ function sceneDurationInFrames(seconds, fps, opIndex, clipId) {
|
|
|
211
214
|
return frames;
|
|
212
215
|
}
|
|
213
216
|
var SCENE_TRACK_NAME = "Scene shots";
|
|
214
|
-
function canonical(value) {
|
|
215
|
-
const sort = (item) => Array.isArray(item) ? item.map(sort) : item !== null && typeof item === "object" ? Object.fromEntries(Object.keys(item).sort().map((key) => [key, sort(item[key])])) : item;
|
|
216
|
-
return JSON.stringify(sort(value));
|
|
217
|
-
}
|
|
218
217
|
function sameManifest(a, b) {
|
|
219
|
-
return
|
|
218
|
+
return canonicalJson(a) === canonicalJson(b);
|
|
220
219
|
}
|
|
221
220
|
function describeThrown(error) {
|
|
222
221
|
const issues = error?.issues;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GraphicRole,
|
|
3
3
|
OpaqueId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AFUITAH6.js";
|
|
5
|
+
import {
|
|
6
|
+
CardHtml
|
|
7
|
+
} from "./chunk-EQH37KNZ.js";
|
|
5
8
|
import {
|
|
6
9
|
brandKitCaptionFaceIssues
|
|
7
10
|
} from "./chunk-OOL7ZUG7.js";
|
|
@@ -101,7 +104,7 @@ var Watermark = z.object({
|
|
|
101
104
|
var MotifBody = z.discriminatedUnion("kind", [
|
|
102
105
|
z.object({
|
|
103
106
|
kind: z.literal("card"),
|
|
104
|
-
html:
|
|
107
|
+
html: CardHtml,
|
|
105
108
|
tokens: z.record(z.string(), z.string()).optional()
|
|
106
109
|
}),
|
|
107
110
|
z.object({
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
EntityId,
|
|
3
3
|
ISODateTime,
|
|
4
4
|
NonEmptyString
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R6HTIP3N.js";
|
|
6
6
|
|
|
7
7
|
// ../data-models/account-model/src/validators/userSettings.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -87,18 +87,6 @@ var SessionToken = z6.object({
|
|
|
87
87
|
leaseExpiresAt: z6.number().optional()
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
// ../data-models/account-model/src/validators/workingComposition.ts
|
|
91
|
-
import { z as z7 } from "zod";
|
|
92
|
-
var WorkingComposition = z7.object({
|
|
93
|
-
id: EntityId("workingCompositions"),
|
|
94
|
-
sessionId: NonEmptyString,
|
|
95
|
-
projectId: EntityId("projects"),
|
|
96
|
-
orgId: NonEmptyString,
|
|
97
|
-
composition: z7.unknown(),
|
|
98
|
-
version: z7.number(),
|
|
99
|
-
updatedAt: z7.number()
|
|
100
|
-
});
|
|
101
|
-
|
|
102
90
|
export {
|
|
103
91
|
UserSettings,
|
|
104
92
|
ConversationProject,
|
|
@@ -108,6 +96,5 @@ export {
|
|
|
108
96
|
ContextFile,
|
|
109
97
|
DashboardInsight,
|
|
110
98
|
SessionTokenScope,
|
|
111
|
-
SessionToken
|
|
112
|
-
WorkingComposition
|
|
99
|
+
SessionToken
|
|
113
100
|
};
|
|
@@ -5,9 +5,20 @@ import {
|
|
|
5
5
|
isOk,
|
|
6
6
|
opById,
|
|
7
7
|
safeParse
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FZB7UX44.js";
|
|
9
9
|
|
|
10
10
|
// ../mcp/src/wait.ts
|
|
11
|
+
var WAIT_KINDS = [
|
|
12
|
+
"media",
|
|
13
|
+
"render",
|
|
14
|
+
"compose",
|
|
15
|
+
"suggestions",
|
|
16
|
+
"verify",
|
|
17
|
+
"preview_frame",
|
|
18
|
+
"preview",
|
|
19
|
+
"brand_kit_extract",
|
|
20
|
+
"consult"
|
|
21
|
+
];
|
|
11
22
|
var defaultSleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
12
23
|
var defaultNow = () => Date.now();
|
|
13
24
|
var DEFAULT_POLL_MS = 3e3;
|
|
@@ -451,6 +462,7 @@ function serializeQuery(parameters, args) {
|
|
|
451
462
|
}
|
|
452
463
|
|
|
453
464
|
export {
|
|
465
|
+
WAIT_KINDS,
|
|
454
466
|
waitForJob,
|
|
455
467
|
querySchemaShape,
|
|
456
468
|
serializeQuery
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Reframe
|
|
3
3
|
} from "./chunk-B7J5UUUV.js";
|
|
4
|
+
import {
|
|
5
|
+
CardHtml
|
|
6
|
+
} from "./chunk-EQH37KNZ.js";
|
|
4
7
|
import {
|
|
5
8
|
captionFaceIssues
|
|
6
9
|
} from "./chunk-OOL7ZUG7.js";
|
|
@@ -86,7 +89,7 @@ var AlphaLayerClipSource = z2.object({
|
|
|
86
89
|
});
|
|
87
90
|
var CardClipSource = z2.object({
|
|
88
91
|
kind: z2.literal("card"),
|
|
89
|
-
html:
|
|
92
|
+
html: CardHtml,
|
|
90
93
|
tokens: z2.record(z2.string(), z2.string()).optional(),
|
|
91
94
|
zPlane: z2.literal("front").optional()
|
|
92
95
|
});
|
|
@@ -432,9 +435,6 @@ var CompositionCaptions = z2.discriminatedUnion("source", [
|
|
|
432
435
|
}
|
|
433
436
|
}
|
|
434
437
|
});
|
|
435
|
-
function captionsAreBehindSubject(captions) {
|
|
436
|
-
return captions?.zPlane === "behind-subject";
|
|
437
|
-
}
|
|
438
438
|
function captionWords(c) {
|
|
439
439
|
return c.segments.flatMap((s) => s.words);
|
|
440
440
|
}
|
|
@@ -667,7 +667,6 @@ export {
|
|
|
667
667
|
captionLayoutIssues,
|
|
668
668
|
CaptionSegment,
|
|
669
669
|
CompositionCaptions,
|
|
670
|
-
captionsAreBehindSubject,
|
|
671
670
|
captionWords,
|
|
672
671
|
captionVisibilityIssues,
|
|
673
672
|
Composition,
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
componentDir,
|
|
4
4
|
findWorkspace
|
|
5
5
|
} from "./chunk-WB2VFDQZ.js";
|
|
6
|
-
import {
|
|
7
|
-
sha256Hex,
|
|
8
|
-
sourceVersionId
|
|
9
|
-
} from "./chunk-EXY4JJPH.js";
|
|
10
|
-
import {
|
|
11
|
-
assertComponentImportsAllowed
|
|
12
|
-
} from "./chunk-K66NLMGX.js";
|
|
13
6
|
import {
|
|
14
7
|
assertComponentBrowserHardware,
|
|
15
8
|
componentBrowserBackend,
|
|
16
9
|
componentBrowserOptions,
|
|
17
10
|
readGpuAttestation
|
|
18
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KC4LNZL5.js";
|
|
12
|
+
import {
|
|
13
|
+
sha256Hex,
|
|
14
|
+
sourceVersionId
|
|
15
|
+
} from "./chunk-F6PLDBAK.js";
|
|
16
|
+
import {
|
|
17
|
+
assertComponentImportsAllowed
|
|
18
|
+
} from "./chunk-UGWJC4GA.js";
|
|
19
19
|
import {
|
|
20
20
|
ComponentCapturePageRasterAttestationV1,
|
|
21
21
|
ComponentGraphicsApiV2,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
ComponentStillPngContainerFactsV1,
|
|
26
26
|
ComponentStillSessionAttestationV1,
|
|
27
27
|
ComponentStillSessionHostAttestationV1
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BZVOCVQV.js";
|
|
29
29
|
import {
|
|
30
30
|
parseSceneShotSpecV2
|
|
31
31
|
} from "./chunk-CL5Y6V6K.js";
|
|
@@ -240,6 +240,7 @@ var COMPONENT_RUNTIME_ERROR_CODES = [
|
|
|
240
240
|
"component_asset_integrity_failed",
|
|
241
241
|
"component_network_denied",
|
|
242
242
|
"component_import_denied",
|
|
243
|
+
"component_api_mismatch",
|
|
243
244
|
"component_graphics_unavailable",
|
|
244
245
|
"component_graphics_mismatch",
|
|
245
246
|
"component_device_lost",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
FLOOR_SHADOW,
|
|
12
12
|
FLOOR_TEXT,
|
|
13
13
|
resolveContrast
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R642352J.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveEasing,
|
|
17
17
|
staggerRise,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
TEXT_MUTED,
|
|
35
35
|
VIOLET,
|
|
36
36
|
WARNING
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WTQRLFR2.js";
|
|
38
38
|
|
|
39
39
|
// ../execution/primitives/src/text/blur-reveal/index.tsx
|
|
40
40
|
import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MotifMotionPreset
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6KZCXAYL.js";
|
|
4
4
|
import {
|
|
5
5
|
GraphicRole
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AFUITAH6.js";
|
|
7
|
+
import {
|
|
8
|
+
CardHtml
|
|
9
|
+
} from "./chunk-EQH37KNZ.js";
|
|
7
10
|
|
|
8
11
|
// ../composition/src/validators/brandKitBody.ts
|
|
9
12
|
import { z } from "zod";
|
|
@@ -14,7 +17,7 @@ var BrandFontField = z.object({
|
|
|
14
17
|
var BrandMotifBody = z.discriminatedUnion("kind", [
|
|
15
18
|
z.object({
|
|
16
19
|
kind: z.literal("card"),
|
|
17
|
-
html:
|
|
20
|
+
html: CardHtml,
|
|
18
21
|
tokens: z.record(z.string(), z.string()).optional()
|
|
19
22
|
}),
|
|
20
23
|
z.object({
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// ../authoring/src/models/defaultModels.ts
|
|
2
|
+
var DEFAULT_MODEL_IDS = {
|
|
3
|
+
anthropic: "claude-opus-5",
|
|
4
|
+
openai: "gpt-4.1",
|
|
5
|
+
ollama: "llama3.1",
|
|
6
|
+
/** Cheaper model used for fast-mode / low-effort turns. */
|
|
7
|
+
fast: "claude-haiku-4-5"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
DEFAULT_MODEL_IDS
|
|
12
|
+
};
|
|
@@ -16689,12 +16689,6 @@ function getPrimitiveSubtextParam(id) {
|
|
|
16689
16689
|
function getPrimitiveCatalogMeta(id) {
|
|
16690
16690
|
return byId2.get(id);
|
|
16691
16691
|
}
|
|
16692
|
-
function listPrimitiveIds() {
|
|
16693
|
-
return [...byId2.keys()];
|
|
16694
|
-
}
|
|
16695
|
-
function getPrimitivePropSchema(id) {
|
|
16696
|
-
return byId2.get(id)?.propSchema;
|
|
16697
|
-
}
|
|
16698
16692
|
function getPrimitiveText(overlay) {
|
|
16699
16693
|
const canonical = overlay.params.text;
|
|
16700
16694
|
if (typeof canonical === "string" && canonical.length > 0) return canonical;
|
|
@@ -16732,7 +16726,5 @@ export {
|
|
|
16732
16726
|
getPrimitiveTextParam,
|
|
16733
16727
|
getPrimitiveSubtextParam,
|
|
16734
16728
|
getPrimitiveCatalogMeta,
|
|
16735
|
-
listPrimitiveIds,
|
|
16736
|
-
getPrimitivePropSchema,
|
|
16737
16729
|
getPrimitiveText
|
|
16738
16730
|
};
|