@cueframe/kernel 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_members/account-model/testing/conversationStoreContract.d.ts +0 -59
- package/dist/_members/account-model/testing/index.d.ts +0 -5
- package/dist/_members/account-model/testing/restorePointStoreContract.d.ts +0 -24
- package/dist/_members/account-model/validators/contextFile.d.ts +0 -6
- package/dist/_members/account-model/validators/conversation.d.ts +0 -96
- package/dist/_members/account-model/validators/dashboardInsight.d.ts +0 -6
- package/dist/_members/account-model/validators/sessionToken.d.ts +0 -29
- package/dist/_members/account-model/validators/uploadToken.d.ts +0 -4
- package/dist/_members/account-model/validators/userSettings.d.ts +0 -4
- package/dist/_members/account-model/validators/workingComposition.d.ts +0 -7
- package/dist/_members/animate/animations/Create.d.ts +0 -19
- package/dist/_members/animate/animations/FadeIn.d.ts +0 -17
- package/dist/_members/animate/animations/GrowArrow.d.ts +0 -19
- package/dist/_members/animate/animations/GrowFromCenter.d.ts +0 -12
- package/dist/_members/animate/animations/Indicate.d.ts +0 -17
- package/dist/_members/animate/animations/MoveAlongPath.d.ts +0 -18
- package/dist/_members/animate/animations/Transform.d.ts +0 -28
- package/dist/_members/animate/animations/Wiggle.d.ts +0 -18
- package/dist/_members/animate/animations/Write.d.ts +0 -20
- package/dist/_members/animate/composition/AnimationGroup.d.ts +0 -21
- package/dist/_members/animate/composition/LaggedStart.d.ts +0 -22
- package/dist/_members/animate/composition/Succession.d.ts +0 -17
- package/dist/_members/animate/easing/rush.d.ts +0 -14
- package/dist/_members/animate/easing/smooth.d.ts +0 -7
- package/dist/_members/animate/easing/smootherstep.d.ts +0 -6
- package/dist/_members/animate/index.d.ts +0 -2
- package/dist/_members/animate/mobjects/Arrow.d.ts +0 -25
- package/dist/_members/animate/mobjects/BrandBox.d.ts +0 -25
- package/dist/_members/animate/mobjects/DiGraph.d.ts +0 -18
- package/dist/_members/animate/mobjects/Graph.d.ts +0 -38
- package/dist/_members/animate/three/ThreeCanvas.d.ts +0 -23
- package/dist/_members/animate/three/drei.d.ts +0 -7
- package/dist/_members/authoring/agent/buildTools.d.ts +0 -37
- package/dist/_members/authoring/agent/contextManagement.d.ts +0 -65
- package/dist/_members/authoring/agent/errors.d.ts +0 -9
- package/dist/_members/authoring/agent/memoryTool.d.ts +0 -2
- package/dist/_members/authoring/agent/promptCache.d.ts +0 -31
- package/dist/_members/authoring/agent.d.ts +0 -34
- package/dist/_members/authoring/capabilities.d.ts +0 -145
- package/dist/_members/authoring/composer/scopes.d.ts +0 -19
- package/dist/_members/authoring/context/brand.d.ts +0 -4
- package/dist/_members/authoring/context/brandTokens.d.ts +0 -4
- package/dist/_members/authoring/context/index.d.ts +0 -1
- package/dist/_members/authoring/context/timeline.d.ts +0 -15
- package/dist/_members/authoring/context/transcript.d.ts +0 -11
- package/dist/_members/authoring/context/types.d.ts +0 -4
- package/dist/_members/authoring/decomposer.d.ts +0 -12
- package/dist/_members/authoring/evaluate.d.ts +0 -26
- package/dist/_members/authoring/evaluator.d.ts +0 -16
- package/dist/_members/authoring/models/modelFactory.d.ts +0 -77
- package/dist/_members/authoring/motion/applyMotionPreset.d.ts +0 -12
- package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +0 -7
- package/dist/_members/authoring/motion/shell.d.ts +0 -20
- package/dist/_members/authoring/pipelineTrace.d.ts +0 -19
- package/dist/_members/authoring/prompts/decomposerPrompt.d.ts +0 -4
- package/dist/_members/authoring/prompts/designReviewerPrompt.d.ts +0 -16
- package/dist/_members/authoring/prompts/evaluatorPrompt.d.ts +0 -4
- package/dist/_members/authoring/prompts/graphics.d.ts +0 -5
- package/dist/_members/authoring/prompts/plannerPrompt.d.ts +0 -30
- package/dist/_members/authoring/providers/resourceApi.d.ts +1 -20
- package/dist/_members/authoring/resource-routing.d.ts +0 -121
- package/dist/_members/authoring/resources.d.ts +0 -34
- package/dist/_members/authoring/scope.d.ts +0 -24
- package/dist/_members/authoring/tools/brandTokens.d.ts +0 -22
- package/dist/_members/authoring/tools/composeRoleTools.d.ts +0 -79
- package/dist/_members/authoring/tools/index.d.ts +0 -1
- package/dist/_members/authoring/tools/toolSets.d.ts +0 -50
- package/dist/_members/authoring/transpileComponent.d.ts +0 -34
- package/dist/_members/authoring/transpileHelper.d.ts +0 -18
- package/dist/_members/authoring/types.d.ts +0 -149
- package/dist/_members/brand-derivation/constants.d.ts +0 -17
- package/dist/_members/brand-derivation/contrastSafe.d.ts +0 -23
- package/dist/_members/cloud-import/CloudImportService.d.ts +0 -15
- package/dist/_members/cloud-import/ImportProvider.d.ts +0 -45
- package/dist/_members/cloud-import/MediaItemPreprocessor.d.ts +0 -9
- package/dist/_members/cloud-import/cloudConfig.d.ts +0 -15
- package/dist/_members/compose/CompositionRenderer.d.ts +0 -6
- package/dist/_members/compose/primitiveRegistry.d.ts +0 -64
- package/dist/_members/compose/sceneToRenderInput.d.ts +0 -26
- package/dist/_members/compose/schema.d.ts +0 -15
- package/dist/_members/compose/tokenResolver.d.ts +0 -11
- package/dist/_members/composition/audio/audioMix.d.ts +0 -34
- package/dist/_members/composition/audio/mixStaging.d.ts +0 -81
- package/dist/_members/composition/audio/musicPack.d.ts +0 -35
- package/dist/_members/composition/audio/musicPack.generated.d.ts +0 -6
- package/dist/_members/composition/audio/pack.d.ts +0 -43
- package/dist/_members/composition/audio/pack.generated.d.ts +0 -6
- package/dist/_members/composition/audio/palette.d.ts +0 -36
- package/dist/_members/composition/autozoom/index.d.ts +0 -32
- package/dist/_members/composition/brand-kit.d.ts +0 -8
- package/dist/_members/composition/brief/contract.d.ts +0 -90
- package/dist/_members/composition/color-grade.d.ts +0 -11
- package/dist/_members/composition/depth.d.ts +0 -19
- package/dist/_members/composition/fixtures/agentErrored.d.ts +0 -23
- package/dist/_members/composition/fonts.d.ts +0 -62
- package/dist/_members/composition/graphics-plan/compile.d.ts +0 -29
- package/dist/_members/composition/graphics-plan/index.d.ts +0 -5
- package/dist/_members/composition/graphics-plan/instantiateMotif.d.ts +0 -17
- package/dist/_members/composition/graphics-plan/motion.d.ts +0 -17
- package/dist/_members/composition/graphics-plan/schemas.d.ts +0 -171
- package/dist/_members/composition/graphics-plan/solve.d.ts +0 -19
- package/dist/_members/composition/invariants/clipPlacement.d.ts +0 -59
- package/dist/_members/composition/invariants/composition.d.ts +0 -5
- package/dist/_members/composition/invariants/etag.d.ts +0 -7
- package/dist/_members/composition/invariants/ids.d.ts +0 -6
- package/dist/_members/composition/invariants/keyframes.d.ts +0 -19
- package/dist/_members/composition/invariants/markers.d.ts +0 -6
- package/dist/_members/composition/invariants/time.d.ts +0 -8
- package/dist/_members/composition/invariants/tracks.d.ts +0 -48
- package/dist/_members/composition/ops/compositionOps.d.ts +4 -71
- package/dist/_members/composition/ops/compositionOps.shared.d.ts +30 -0
- package/dist/_members/composition/ops/headlessStore.d.ts +0 -24
- package/dist/_members/composition/ops/selectors.d.ts +0 -66
- package/dist/_members/composition/ops/timeline-word.d.ts +0 -5
- package/dist/_members/composition/ops/transcript.d.ts +0 -27
- package/dist/_members/composition/ops/types.d.ts +0 -51
- package/dist/_members/composition/primitive-catalog/catalogQuery.d.ts +0 -32
- package/dist/_members/composition/primitive-catalog/disabled.d.ts +0 -1
- package/dist/_members/composition/primitive-catalog/index.d.ts +0 -11
- package/dist/_members/composition/primitive-catalog/paramValidation.d.ts +0 -50
- package/dist/_members/composition/primitive-catalog/projection.d.ts +0 -39
- package/dist/_members/composition/primitive-catalog/types.d.ts +0 -78
- package/dist/_members/composition/projection/behind-placement.d.ts +0 -40
- package/dist/_members/composition/projection/behind-readiness.d.ts +14 -89
- package/dist/_members/composition/projection/brandKit.d.ts +0 -142
- package/dist/_members/composition/projection/cardTokens.d.ts +0 -65
- package/dist/_members/composition/projection/composition-floor.d.ts +0 -179
- package/dist/_members/composition/projection/cropProjection.d.ts +0 -75
- package/dist/_members/composition/projection/occlusion-budget.d.ts +0 -37
- package/dist/_members/composition/projection/reframe-readiness.d.ts +4 -111
- package/dist/_members/composition/projection/safe-zones.d.ts +0 -29
- package/dist/_members/composition/reframe/aspectLoss.d.ts +12 -35
- package/dist/_members/composition/reframe/coverage.d.ts +0 -40
- package/dist/_members/composition/reframe/derive.d.ts +0 -21
- package/dist/_members/composition/reframe/index.d.ts +0 -60
- package/dist/_members/composition/reframe/kenBurns.d.ts +0 -37
- package/dist/_members/composition/reframe/shotScale.d.ts +0 -75
- package/dist/_members/composition/reframe/trajectory.d.ts +0 -65
- package/dist/_members/composition/timeline/compound.d.ts +0 -31
- package/dist/_members/composition/timeline/intent.d.ts +0 -29
- package/dist/_members/composition/timeline/keyframes.d.ts +0 -43
- package/dist/_members/composition/timeline/link.d.ts +0 -27
- package/dist/_members/composition/timeline/occupancy.d.ts +1 -42
- package/dist/_members/composition/timeline/placement.d.ts +5 -52
- package/dist/_members/composition/timeline/plan.d.ts +5 -53
- package/dist/_members/composition/timeline/resolve.d.ts +0 -36
- package/dist/_members/composition/timeline/trims.d.ts +0 -49
- package/dist/_members/composition/validators/brandKit.d.ts +0 -29
- package/dist/_members/composition/validators/composePlan.d.ts +0 -39
- package/dist/_members/composition/validators/composition.d.ts +30 -513
- package/dist/_members/composition/validators/graphicKinds.d.ts +0 -28
- package/dist/_members/composition/validators/render.d.ts +23 -23
- package/dist/_members/composition-ops/alphaLayers.d.ts +0 -56
- package/dist/_members/composition-ops/index.d.ts +27 -148
- package/dist/_members/composition-ops/materializeGrid.d.ts +0 -28
- package/dist/_members/composition-ops/opRecorder.d.ts +0 -34
- package/dist/_members/composition-ops/recordingStore.d.ts +0 -16
- package/dist/_members/composition-ops/replaceRegion.d.ts +0 -48
- package/dist/_members/composition-ops/testFixtures.d.ts +0 -14
- package/dist/_members/convex-api/api.d.ts +0 -3
- package/dist/_members/convex-api/dataModel.d.ts +0 -2
- package/dist/_members/core/index.d.ts +1 -1
- package/dist/_members/core/render/bookends.d.ts +0 -44
- package/dist/_members/core/render/captions.d.ts +0 -42
- package/dist/_members/core/render/compositionRender.d.ts +1 -180
- package/dist/_members/core/render/deriveTrajectory.d.ts +0 -140
- package/dist/_members/core/render/emphasis.d.ts +0 -6
- package/dist/_members/core/render/eval/cropBox.d.ts +0 -69
- package/dist/_members/core/render/eval/inclusion.d.ts +0 -39
- package/dist/_members/core/render/eval/index.d.ts +0 -58
- package/dist/_members/core/render/eval/metrics.d.ts +0 -36
- package/dist/_members/core/render/exportSettings.d.ts +4 -12
- package/dist/_members/core/render/index.d.ts +1 -1
- package/dist/_members/core/render/mapFaceToPerson.d.ts +0 -27
- package/dist/_members/core/render/types.d.ts +1 -184
- package/dist/_members/core/render/variantKeys.d.ts +1 -0
- package/dist/_members/core/render/vcam/cameraPath.d.ts +0 -44
- package/dist/_members/core/render/vcam/constants.d.ts +0 -93
- package/dist/_members/core/render/vcam/errorCodes.d.ts +0 -28
- package/dist/_members/core/render/vcam/framing.d.ts +0 -76
- package/dist/_members/core/render/vcam/requiredRegion.d.ts +0 -71
- package/dist/_members/core/render/vcam/shots.d.ts +0 -40
- package/dist/_members/core/render/vcam/subjectSet.d.ts +0 -85
- package/dist/_members/core/select/errorCodes.d.ts +0 -25
- package/dist/_members/core/select/index.d.ts +0 -20
- package/dist/_members/core/select/model.d.ts +0 -79
- package/dist/_members/core/select/select.d.ts +0 -49
- package/dist/_members/core/select/stabilize.d.ts +0 -102
- package/dist/_members/core/types.d.ts +0 -1
- package/dist/_members/director/ai-sdk/chunks.d.ts +14 -0
- package/dist/_members/director/ai-sdk/context.d.ts +6 -0
- package/dist/_members/director/ai-sdk/generationTool.d.ts +8 -0
- package/dist/_members/director/ai-sdk/index.d.ts +4 -0
- package/dist/_members/director/ai-sdk/messages.d.ts +292 -0
- package/dist/_members/director/domain/chat.d.ts +357 -0
- package/dist/_members/director/domain/generation.d.ts +1 -0
- package/dist/_members/director/domain/index.d.ts +3 -0
- package/dist/_members/director/domain/ports.d.ts +32 -0
- package/dist/_members/director/index.d.ts +2 -0
- package/dist/_members/director/testing/contract.d.ts +52 -0
- package/dist/_members/director/testing/index.d.ts +1 -0
- package/dist/_members/errors/registry.d.ts +0 -32
- package/dist/_members/foundation/codes/index.d.ts +0 -21
- package/dist/_members/mcp/adapter.d.ts +1 -84
- package/dist/_members/mcp/burnedNames.d.ts +0 -16
- package/dist/_members/mcp/core.d.ts +1 -81
- package/dist/_members/mcp/curation.d.ts +0 -112
- package/dist/_members/mcp/executor.d.ts +0 -49
- package/dist/_members/mcp/format.d.ts +0 -6
- package/dist/_members/mcp/generated/catalogPreviews.d.ts +0 -1
- package/dist/_members/mcp/generated/operations.d.ts +0 -23
- package/dist/_members/mcp/internalLoopTools.d.ts +0 -23
- package/dist/_members/mcp/prompts.d.ts +0 -16
- package/dist/_members/mcp/resources.d.ts +0 -13
- package/dist/_members/mcp/server.d.ts +0 -61
- package/dist/_members/mcp/wait.d.ts +0 -22
- package/dist/_members/mcp/x402Meta.d.ts +0 -44
- package/dist/_members/media-model/generation.d.ts +314 -0
- package/dist/_members/media-model/index.d.ts +1 -0
- package/dist/_members/media-model/media-kind.d.ts +0 -27
- package/dist/_members/media-model/transcriptSearch.d.ts +0 -42
- package/dist/_members/nle-export/fcpxml.d.ts +0 -13
- package/dist/_members/nle-export/index.d.ts +0 -6
- package/dist/_members/nle-export/types.d.ts +0 -26
- package/dist/_members/nle-export/xml/index.d.ts +0 -8
- package/dist/_members/nle-export/xml-utils.d.ts +0 -12
- package/dist/_members/perception/activeSpeaker.d.ts +0 -94
- package/dist/_members/perception/audioQuality.d.ts +0 -64
- package/dist/_members/perception/energyBeat.d.ts +0 -81
- package/dist/_members/perception/identityMatch.d.ts +0 -66
- package/dist/_members/perception/index.d.ts +0 -52
- package/dist/_members/perception/visualQuality.d.ts +0 -73
- package/dist/_members/plane/conformance.d.ts +0 -59
- package/dist/_members/plane/contract.d.ts +0 -29
- package/dist/_members/plane/index.d.ts +0 -15
- package/dist/_members/primitives/backgrounds/animated-bar-chart/index.d.ts +0 -13
- package/dist/_members/primitives/backgrounds/animated-line-chart/index.d.ts +0 -14
- package/dist/_members/primitives/backgrounds/dither-gradient-bg/index.d.ts +0 -14
- package/dist/_members/primitives/backgrounds/dynamic-grid/index.d.ts +0 -8
- package/dist/_members/primitives/backgrounds/ecosystem-constellation/index.d.ts +0 -8
- package/dist/_members/primitives/backgrounds/infinite-marquee/index.d.ts +0 -8
- package/dist/_members/primitives/backgrounds/mesh-gradient-bg/index.d.ts +0 -8
- package/dist/_members/primitives/backgrounds/perspective-marquee/index.d.ts +0 -8
- package/dist/_members/primitives/backgrounds/silk-flow-bg/index.d.ts +0 -17
- package/dist/_members/primitives/backgrounds/vector-field/index.d.ts +0 -14
- package/dist/_members/primitives/backgrounds/volumetric-rays/index.d.ts +0 -18
- package/dist/_members/primitives/captions/Captions.d.ts +0 -24
- package/dist/_members/primitives/captions/index.d.ts +0 -15
- package/dist/_members/primitives/captions/paginate.d.ts +0 -21
- package/dist/_members/primitives/captions/placement.d.ts +0 -30
- package/dist/_members/primitives/effects/blur/index.d.ts +0 -16
- package/dist/_members/primitives/effects/color-grade/index.d.ts +0 -20
- package/dist/_members/primitives/effects/grain/index.d.ts +0 -12
- package/dist/_members/primitives/effects/parallax/index.d.ts +0 -13
- package/dist/_members/primitives/effects/particles/index.d.ts +0 -16
- package/dist/_members/primitives/effects/pulsing-indicator/index.d.ts +0 -10
- package/dist/_members/primitives/effects/spotlight-card/index.d.ts +0 -8
- package/dist/_members/primitives/effects/spring-pop-in/index.d.ts +0 -10
- package/dist/_members/primitives/effects/success-confetti/index.d.ts +0 -8
- package/dist/_members/primitives/effects/vignette/index.d.ts +0 -12
- package/dist/_members/primitives/hero-text/HeroText.d.ts +0 -17
- package/dist/_members/primitives/hero-text/config.d.ts +0 -10
- package/dist/_members/primitives/hero-text/index.d.ts +0 -14
- package/dist/_members/primitives/index.d.ts +0 -8
- package/dist/_members/primitives/layouts/chat-to-preview-layout/index.d.ts +0 -8
- package/dist/_members/primitives/layouts/infinite-bento-pan/index.d.ts +0 -8
- package/dist/_members/primitives/layouts/letterbox/index.d.ts +0 -15
- package/dist/_members/primitives/layouts/photo-grid/index.d.ts +0 -17
- package/dist/_members/primitives/layouts/picture-in-picture/index.d.ts +0 -21
- package/dist/_members/primitives/layouts/split-screen/index.d.ts +0 -15
- package/dist/_members/primitives/layouts/staggered-bento-grid/index.d.ts +0 -8
- package/dist/_members/primitives/lib/easings.d.ts +0 -27
- package/dist/_members/primitives/lib/palette.d.ts +0 -22
- package/dist/_members/primitives/lib/preview.d.ts +0 -22
- package/dist/_members/primitives/lib/schema.d.ts +0 -36
- package/dist/_members/primitives/lib/seeded-random.d.ts +0 -23
- package/dist/_members/primitives/lib/text/contrast.d.ts +0 -17
- package/dist/_members/primitives/lib/text/fill.d.ts +0 -5
- package/dist/_members/primitives/lib/text/fitText.d.ts +0 -37
- package/dist/_members/primitives/lib/text/marker.d.ts +0 -10
- package/dist/_members/primitives/lib/text/motion.d.ts +0 -46
- package/dist/_members/primitives/lib/text/recolor.d.ts +0 -11
- package/dist/_members/primitives/lib/text/spec.d.ts +0 -39
- package/dist/_members/primitives/lib/text/stage.d.ts +0 -17
- package/dist/_members/primitives/lib/text/typeface.d.ts +0 -11
- package/dist/_members/primitives/lib/tokens.d.ts +0 -87
- package/dist/_members/primitives/lib/types.d.ts +0 -141
- package/dist/_members/primitives/scenes/changelog-bite/index.d.ts +0 -12
- package/dist/_members/primitives/scenes/hero-device-assemble/index.d.ts +0 -8
- package/dist/_members/primitives/scenes/landing-code-showcase/index.d.ts +0 -8
- package/dist/_members/primitives/scenes/live-code-compilation/index.d.ts +0 -8
- package/dist/_members/primitives/scenes/pricing-tier-focus/index.d.ts +0 -8
- package/dist/_members/primitives/scenes/product-launch-trailer/index.d.ts +0 -8
- package/dist/_members/primitives/scenes/terminal-to-browser-deploy/index.d.ts +0 -8
- package/dist/_members/primitives/subject-foreground/SubjectForeground.d.ts +0 -38
- package/dist/_members/primitives/subject-foreground/index.d.ts +0 -21
- package/dist/_members/primitives/text/blur-reveal/index.d.ts +0 -9
- package/dist/_members/primitives/text/cinematic-title/index.d.ts +0 -14
- package/dist/_members/primitives/text/inline-highlight/index.d.ts +0 -11
- package/dist/_members/primitives/text/karaoke/index.d.ts +0 -13
- package/dist/_members/primitives/text/kinetic-type/index.d.ts +0 -15
- package/dist/_members/primitives/text/lower-third/index.d.ts +0 -14
- package/dist/_members/primitives/text/marker-highlight/index.d.ts +0 -10
- package/dist/_members/primitives/text/masked-slide-reveal/index.d.ts +0 -8
- package/dist/_members/primitives/text/matrix-decode/index.d.ts +0 -9
- package/dist/_members/primitives/text/quote-card/index.d.ts +0 -9
- package/dist/_members/primitives/text/rgb-glitch-text/index.d.ts +0 -13
- package/dist/_members/primitives/text/shimmer-sweep/index.d.ts +0 -10
- package/dist/_members/primitives/text/slot-machine-roll/index.d.ts +0 -8
- package/dist/_members/primitives/text/staggered-fade-up/index.d.ts +0 -12
- package/dist/_members/primitives/text/stat-counter/index.d.ts +0 -13
- package/dist/_members/primitives/text/strikethrough-replace/index.d.ts +0 -9
- package/dist/_members/primitives/text/text-effect/index.d.ts +0 -17
- package/dist/_members/primitives/text/text-fade-replace/index.d.ts +0 -8
- package/dist/_members/primitives/text/token-stream/index.d.ts +0 -11
- package/dist/_members/primitives/text/tracking-in/index.d.ts +0 -8
- package/dist/_members/primitives/text/typewriter/index.d.ts +0 -12
- package/dist/_members/primitives/transitions/chromatic-aberration-wipe/index.d.ts +0 -11
- package/dist/_members/primitives/transitions/code-diff-wipe/index.d.ts +0 -8
- package/dist/_members/primitives/transitions/directional-wipe/index.d.ts +0 -10
- package/dist/_members/primitives/transitions/frosted-glass-wipe/index.d.ts +0 -10
- package/dist/_members/primitives/transitions/glitch-cut/index.d.ts +0 -3
- package/dist/_members/primitives/transitions/grid-pixelate-wipe/index.d.ts +0 -14
- package/dist/_members/primitives/transitions/ink-wipe/index.d.ts +0 -3
- package/dist/_members/primitives/transitions/kinetic-type-mask/index.d.ts +0 -12
- package/dist/_members/primitives/transitions/light-leak/index.d.ts +0 -3
- package/dist/_members/primitives/transitions/luma-matte/index.d.ts +0 -2
- package/dist/_members/primitives/transitions/morph/index.d.ts +0 -2
- package/dist/_members/primitives/transitions/spatial-push/index.d.ts +0 -10
- package/dist/_members/primitives/transitions/swipe-transition-wipe/index.d.ts +0 -13
- package/dist/_members/primitives/transitions/zoom-through/index.d.ts +0 -2
- package/dist/_members/primitives/transitions/zoom-through-transition/index.d.ts +0 -9
- package/dist/_members/primitives/ui-blocks/ai-generate-overlay/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/ai-generation-canvas/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/badge-pop/index.d.ts +0 -11
- package/dist/_members/primitives/ui-blocks/before-after-slider/index.d.ts +0 -11
- package/dist/_members/primitives/ui-blocks/benchmark-bars/index.d.ts +0 -11
- package/dist/_members/primitives/ui-blocks/bounding-box-selector/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/browser-flow/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/brush-stroke-simulator/index.d.ts +0 -18
- package/dist/_members/primitives/ui-blocks/chat-exchange/index.d.ts +0 -10
- package/dist/_members/primitives/ui-blocks/code-accordion/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/context-meter/index.d.ts +0 -11
- package/dist/_members/primitives/ui-blocks/cursor-flow/index.d.ts +0 -11
- package/dist/_members/primitives/ui-blocks/dashboard-populate/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/data-flow-pipes/index.d.ts +0 -9
- package/dist/_members/primitives/ui-blocks/device-mockup-zoom/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/drag-and-drop-flow/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/eval-scorecard/index.d.ts +0 -11
- package/dist/_members/primitives/ui-blocks/glass-code-block/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/image-expand-to-fullscreen/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/metric-gauge/index.d.ts +0 -12
- package/dist/_members/primitives/ui-blocks/morphing-modal/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/pipeline-journey/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/progress-steps/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/reasoning-trace/index.d.ts +0 -10
- package/dist/_members/primitives/ui-blocks/simulated-cursor/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/terminal-simulator/index.d.ts +0 -19
- package/dist/_members/primitives/ui-blocks/toast-notification/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/tool-call-stack/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/tool-menu-slide-in/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/visual-docs-snippet/index.d.ts +0 -8
- package/dist/_members/primitives/ui-blocks/voice-waveform/index.d.ts +0 -11
- package/dist/_members/primitives/workspace.d.ts +0 -29
- package/dist/_members/render-harness/browserOptions.d.ts +11 -0
- package/dist/_members/render-harness/browserOptions.d.ts.map +1 -0
- package/dist/_members/render-harness/cardRender.d.ts +0 -40
- package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
- package/dist/_members/render-harness/contractRender.d.ts +0 -16
- package/dist/_members/render-harness/contractRender.d.ts.map +1 -1
- package/dist/_members/render-harness/extractSegments.d.ts +0 -37
- package/dist/_members/render-harness/extractSegments.d.ts.map +1 -1
- package/dist/_members/render-harness/index.d.ts +0 -12
- package/dist/_members/render-harness/index.d.ts.map +1 -1
- package/dist/_members/render-harness/localRender.d.ts +1 -110
- package/dist/_members/render-harness/localRender.d.ts.map +1 -1
- package/dist/_members/render-harness/materializeSources.d.ts +0 -22
- package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
- package/dist/_members/render-harness/mediaServer.d.ts +0 -16
- package/dist/_members/render-harness/mediaServer.d.ts.map +1 -1
- package/dist/_members/render-harness/renderInputAssets.d.ts +0 -45
- package/dist/_members/render-harness/renderInputAssets.d.ts.map +1 -1
- package/dist/_members/render-harness/resolveAssets.d.ts +0 -24
- package/dist/_members/render-harness/resolveAssets.d.ts.map +1 -1
- package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts +0 -14
- package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts.map +1 -1
- package/dist/account-model/validators.js +1 -1
- package/dist/account-model.js +1 -1
- package/dist/animate.js +0 -15
- package/dist/authoring/build-tools.js +8 -8
- package/dist/authoring/composer.js +0 -20
- package/dist/authoring/context.js +6 -6
- package/dist/authoring/pipelineTrace.js +1 -1
- package/dist/authoring/prompts.js +1 -1
- package/dist/authoring/resource-routing.js +1 -1
- package/dist/authoring/resources.js +1 -1
- package/dist/authoring/tools.js +7 -7
- package/dist/authoring.js +14 -80
- package/dist/{chunk-TWQOKKAF.js → chunk-23HFEKV7.js} +0 -6
- package/dist/{chunk-EA6MYCYW.js → chunk-2B5VJZHL.js} +14 -25
- package/dist/chunk-73DQTUWY.js +131 -0
- package/dist/{chunk-HI4UTTPS.js → chunk-AO744WIK.js} +1 -43
- package/dist/chunk-BADZHXLR.js +0 -0
- package/dist/{chunk-GA23TRNR.js → chunk-BKHGL4MB.js} +5 -13
- package/dist/{chunk-PDYO3DOJ.js → chunk-BZZTVOGG.js} +6 -55
- package/dist/{chunk-AP6ZIVAV.js → chunk-CAJQ7H5A.js} +17 -17
- package/dist/{chunk-7FO3ZJ43.js → chunk-DCVJWGIA.js} +1 -9
- package/dist/{chunk-AQBREB5O.js → chunk-DWLNPNC4.js} +1 -4
- package/dist/{chunk-SW336CJP.js → chunk-DYZE7JZA.js} +3 -26
- package/dist/{chunk-HCCBDJLW.js → chunk-EP2Y6M2J.js} +0 -4
- package/dist/{chunk-ZE76SSRT.js → chunk-FMODQD5P.js} +0 -6
- package/dist/chunk-FTVZF4GO.js +0 -0
- package/dist/{chunk-PMY24FUD.js → chunk-G5BFI32U.js} +1 -1
- package/dist/{chunk-LD5ZOUFT.js → chunk-GF52TW4I.js} +0 -4
- package/dist/{chunk-ABL557OT.js → chunk-GMD33ZD7.js} +1 -8
- package/dist/{chunk-ZWMV6DD2.js → chunk-ICSZF37W.js} +10 -162
- package/dist/chunk-IEXAKOEX.js +113 -0
- package/dist/{chunk-UY4SWJVE.js → chunk-K2IUBCND.js} +0 -12
- package/dist/chunk-LJ5W4ZBU.js +146 -0
- package/dist/chunk-LLUW26BS.js +255 -0
- package/dist/{chunk-JJ6XD7NG.js → chunk-PIURX6IZ.js} +70 -2
- package/dist/{chunk-MMEJ3Y7E.js → chunk-QETYXKQQ.js} +1 -10
- package/dist/{chunk-YX2GSJK7.js → chunk-RP4SXXLJ.js} +1 -1
- package/dist/{chunk-P727GZVO.js → chunk-SAMQUUO5.js} +3 -5
- package/dist/{chunk-RF7U3SCL.js → chunk-TD347SSX.js} +3 -11
- package/dist/{chunk-TOJEXFXL.js → chunk-TFGKUWHY.js} +1 -88
- package/dist/{chunk-UHGSZZDI.js → chunk-TPA6PYN2.js} +1 -11
- package/dist/{chunk-OLFOPQCA.js → chunk-UQSOS726.js} +4 -18
- package/dist/{chunk-GBRNYH7W.js → chunk-V24L35GM.js} +0 -11
- package/dist/{chunk-MBCXCJOE.js → chunk-VFMW3JUY.js} +1 -1
- package/dist/{chunk-DK2ODBNT.js → chunk-VHF66LCQ.js} +16 -98
- package/dist/{chunk-JMURQODM.js → chunk-VZ7TYX6Z.js} +0 -1
- package/dist/{chunk-SIGGQRY2.js → chunk-W3SIWT7J.js} +5030 -4412
- package/dist/{chunk-W35ZMOXB.js → chunk-WPZKOVYF.js} +0 -5
- package/dist/chunk-WZH57M53.js +494 -0
- package/dist/{chunk-AYVJXDLB.js → chunk-XHGZ2E77.js} +0 -2
- package/dist/{chunk-HY3RIEZW.js → chunk-XQ72DZKJ.js} +1 -1
- package/dist/{chunk-7DHP4ESU.js → chunk-YLDMAZZE.js} +0 -10
- package/dist/{chunk-FYZVH3MC.js → chunk-YQ7FFW3G.js} +0 -11
- package/dist/chunk-ZPLJ24OV.js +93 -0
- package/dist/cloud-import/multipart.js +1 -1
- package/dist/cloud-import.js +9 -16
- package/dist/compose/renderer.js +18 -18
- package/dist/compose.js +21 -21
- package/dist/composition/audio.js +1 -1
- package/dist/composition/brand-kit.js +0 -5
- package/dist/composition/graphics-plan.js +4 -4
- package/dist/composition/ops.js +5 -5
- package/dist/composition/primitive-catalog.js +1 -1
- package/dist/composition/projection.js +11 -3
- package/dist/composition/reframe/kenBurns.js +0 -4
- package/dist/composition/reframe.js +4 -2
- package/dist/composition/timeline.js +1 -1
- package/dist/composition/validators/graphic-kinds.js +1 -1
- package/dist/composition/validators.js +4 -4
- package/dist/composition-ops.js +16 -135
- package/dist/composition.js +15 -7
- package/dist/context-JLLU3MYD.js +14 -0
- package/dist/core/render.js +9 -7
- package/dist/core/select.js +2 -6
- package/dist/core.js +5 -7
- package/dist/director/ai-sdk.d.ts +1 -0
- package/dist/director/ai-sdk.js +33 -0
- package/dist/director/domain.d.ts +1 -0
- package/dist/director/domain.js +62 -0
- package/dist/director/testing.d.ts +1 -0
- package/dist/director/testing.js +22 -0
- package/dist/director.d.ts +1 -0
- package/dist/director.js +86 -0
- package/dist/errors.js +1 -1
- package/dist/foundation.js +1 -0
- package/dist/mcp/adapter.js +4 -64
- package/dist/mcp/core.js +1 -1
- package/dist/mcp/curation.js +1 -1
- package/dist/mcp/server.js +4 -4
- package/dist/mcp.js +4 -4
- package/dist/media-model/generation.d.ts +1 -0
- package/dist/media-model/generation.js +40 -0
- package/dist/media-model.js +38 -6
- package/dist/nle-export.js +21 -21
- package/dist/plane/contract.js +0 -3
- package/dist/primitives/backgrounds.js +2 -2
- package/dist/primitives/captions.js +0 -5
- package/dist/primitives/effects.js +2 -2
- package/dist/primitives/hero-text.js +2 -2
- package/dist/primitives/layouts.js +2 -2
- package/dist/primitives/lib/index.js +17 -17
- package/dist/primitives/lib/text/fitText.js +1 -1
- package/dist/primitives/lib/tokens.js +1 -1
- package/dist/primitives/lib.js +17 -17
- package/dist/primitives/scenes.js +2 -2
- package/dist/primitives/text.js +2 -2
- package/dist/primitives/ui-blocks.js +4 -4
- package/dist/primitives.js +21 -21
- package/dist/render-harness/sandboxGlobalSpecs.js +1 -1
- package/dist/render-harness.js +24 -41
- package/package.json +37 -21
- package/dist/chunk-6EQXLEP6.js +0 -194
- package/dist/chunk-OCFDUCF4.js +0 -504
- package/dist/chunk-PODIYN2K.js +0 -742
- package/dist/context-YWUZDG5X.js +0 -14
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared post-processing for AI-generated JSX → sandbox-compatible JS.
|
|
3
|
-
*
|
|
4
|
-
* Both desktop (esbuild-wasm) and server (esbuild native) use this after
|
|
5
|
-
* esbuild.transform(). The sandbox (DynamicOverlay) uses new Function()
|
|
6
|
-
* which can't handle import/export statements — this strips them.
|
|
7
|
-
*
|
|
8
|
-
* The esbuild transform uses the classic JSX transform (React.createElement)
|
|
9
|
-
* so that React is provided by the sandbox scope, not imported.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* esbuild transform options for AI-generated JSX.
|
|
13
|
-
* Use these with esbuild.transform(jsxSource, ESBUILD_JSX_OPTIONS).
|
|
14
|
-
*/
|
|
15
1
|
export declare const ESBUILD_JSX_OPTIONS: {
|
|
16
2
|
loader: "tsx";
|
|
17
3
|
jsx: "transform";
|
|
@@ -19,8 +5,4 @@ export declare const ESBUILD_JSX_OPTIONS: {
|
|
|
19
5
|
jsxFragment: string;
|
|
20
6
|
target: "es2020";
|
|
21
7
|
};
|
|
22
|
-
/**
|
|
23
|
-
* Post-process esbuild output for the DynamicOverlay sandbox.
|
|
24
|
-
* Strips imports (sandbox injects them), converts export default → exports.default.
|
|
25
|
-
*/
|
|
26
8
|
export declare function postProcessForSandbox(code: string): string;
|
|
@@ -20,9 +20,7 @@ export interface Phase {
|
|
|
20
20
|
output: 'timeline_edit' | 'artifact' | 'scene_composition';
|
|
21
21
|
description: string;
|
|
22
22
|
verificationCriteria: string[];
|
|
23
|
-
/** Number of evaluation passes. 0 = skip evaluation, 1 for timeline, 3 for content. */
|
|
24
23
|
evaluationPasses: number;
|
|
25
|
-
/** Tool names to include for this phase. Empty = all tools available. */
|
|
26
24
|
tools: string[];
|
|
27
25
|
status: 'pending' | 'executing' | 'passed' | 'failed' | 'skipped';
|
|
28
26
|
}
|
|
@@ -61,9 +59,7 @@ export interface OverlayData {
|
|
|
61
59
|
export interface PoolItemData {
|
|
62
60
|
id: string;
|
|
63
61
|
name: string;
|
|
64
|
-
/** Pool kind (video|audio|image). Optional: headless lanes may omit it. */
|
|
65
62
|
kind?: string;
|
|
66
|
-
/** Local/presigned URL for the bytes — what view_asset fetches for a still. */
|
|
67
63
|
assetUrl?: string;
|
|
68
64
|
duration: number;
|
|
69
65
|
width: number;
|
|
@@ -89,16 +85,13 @@ export interface DirectorContext {
|
|
|
89
85
|
currentTime: number;
|
|
90
86
|
timelineDuration: number;
|
|
91
87
|
fps: number;
|
|
92
|
-
/** Canvas format: aspect ratio, optional fps + resolution. Mirrors the wire-shape `Composition.format`. */
|
|
93
88
|
format?: {
|
|
94
89
|
aspectRatio: '16:9' | '9:16' | '1:1' | '4:5';
|
|
95
90
|
fps?: 24 | 30 | 60;
|
|
96
91
|
resolution?: 'hd' | 'fhd' | '4k';
|
|
97
92
|
};
|
|
98
93
|
transcript?: string;
|
|
99
|
-
/** True when word-level timings were stripped to fit context budget */
|
|
100
94
|
transcriptTruncated?: boolean;
|
|
101
|
-
/** True when word-level timings are included in the transcript, false when stripped for budget */
|
|
102
95
|
transcriptHasTimings?: boolean;
|
|
103
96
|
clips: ClipData[];
|
|
104
97
|
sceneLabels?: Array<{
|
|
@@ -146,21 +139,11 @@ export interface DirectorContext {
|
|
|
146
139
|
voiceGuidelines: string;
|
|
147
140
|
heroImageUrl?: string;
|
|
148
141
|
};
|
|
149
|
-
/**
|
|
150
|
-
* Detected faces in the source clip(s) — the `face-0..N` roster from
|
|
151
|
-
* source-level subject detection (faces + active-speaker). Lets the agent
|
|
152
|
-
* author `{ kind: "face", faceId }` crop intents against REAL detected faces
|
|
153
|
-
* instead of guessing. Empty when detection hasn't run for this clip.
|
|
154
|
-
*/
|
|
155
142
|
faces?: SubjectFaceInfo[];
|
|
156
143
|
}
|
|
157
|
-
/** One detected face surfaced to the agent via get_context. */
|
|
158
144
|
export interface SubjectFaceInfo {
|
|
159
|
-
/** Stable id within the clip's source window; `face-0` = largest/primary. */
|
|
160
145
|
faceId: string;
|
|
161
|
-
/** Fraction of the clip this face is the active speaker (0..1), if known. */
|
|
162
146
|
speakingShare?: number;
|
|
163
|
-
/** Median normalized bbox over the window (0..1) — a placement hint. */
|
|
164
147
|
bbox?: {
|
|
165
148
|
x: number;
|
|
166
149
|
y: number;
|
|
@@ -180,24 +163,6 @@ export interface StockMediaResult {
|
|
|
180
163
|
photographer: string;
|
|
181
164
|
mediaType: 'video' | 'photo';
|
|
182
165
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Stock video candidate returned by `searchStockVideos` / `searchPixabayVideos`.
|
|
185
|
-
*
|
|
186
|
-
* Stricter than `StockMediaResult`:
|
|
187
|
-
* - `provider` is required (so consumers can render attribution + key by it)
|
|
188
|
-
* - `externalId` is always a string (Pexels uses numeric IDs, Pixabay
|
|
189
|
-
* too — normalise here so downstream cache keys / dedupe sets don't
|
|
190
|
-
* have to coerce)
|
|
191
|
-
* - `query` echoes the search term that surfaced the candidate (used by
|
|
192
|
-
* the b-roll enrichment pipeline to attribute hits to suggestions)
|
|
193
|
-
* - `duration`, `previewUrl` are required (b-roll filter relies on
|
|
194
|
-
* duration; UI always shows a hover preview)
|
|
195
|
-
* - `photographerUrl` + `assetUrl` enable Pexels / Pixabay TOS-mandated
|
|
196
|
-
* backlinks
|
|
197
|
-
*
|
|
198
|
-
* `StockMediaResult` is retained for the photo path where these fields
|
|
199
|
-
* don't apply (no duration, no provider page per asset on the photo APIs we use).
|
|
200
|
-
*/
|
|
201
166
|
export interface StockVideoCandidate {
|
|
202
167
|
provider: 'pexels' | 'pixabay';
|
|
203
168
|
externalId: string;
|
|
@@ -210,8 +175,6 @@ export interface StockVideoCandidate {
|
|
|
210
175
|
height: number;
|
|
211
176
|
photographer: string;
|
|
212
177
|
photographerUrl?: string;
|
|
213
|
-
/** Provider-specific page for this asset (Pexels `url`, Pixabay `pageURL`).
|
|
214
|
-
* Used by the UI to satisfy Pexels TOS ("link to the photo page on Pexels"). */
|
|
215
178
|
assetUrl?: string;
|
|
216
179
|
}
|
|
217
180
|
export interface SoundEffectResult {
|
|
@@ -223,13 +186,6 @@ export interface SoundEffectResult {
|
|
|
223
186
|
tags: string[];
|
|
224
187
|
license: string;
|
|
225
188
|
}
|
|
226
|
-
/**
|
|
227
|
-
* Photo candidate returned by the activity-shape variant of
|
|
228
|
-
* `searchStockPhotos` / `searchPixabayPhotos`. Mirrors
|
|
229
|
-
* `StockVideoCandidate` minus `duration` (photos have no duration).
|
|
230
|
-
* Used by the Temporal clip-enrichment activity which persists rows
|
|
231
|
-
* matching `data-models/convex-schemas/src/enrichment.ts` candidateShape.
|
|
232
|
-
*/
|
|
233
189
|
export interface StockPhotoCandidate {
|
|
234
190
|
provider: 'pexels' | 'pixabay';
|
|
235
191
|
externalId: string;
|
|
@@ -243,13 +199,6 @@ export interface StockPhotoCandidate {
|
|
|
243
199
|
photographerUrl?: string;
|
|
244
200
|
assetUrl?: string;
|
|
245
201
|
}
|
|
246
|
-
/**
|
|
247
|
-
* Sound-effect candidate returned by `searchSoundEffectsCandidates`.
|
|
248
|
-
* Shaped like `StockVideoCandidate` minus width/height (sfx has no
|
|
249
|
-
* spatial dimensions) and with required `licenseCode` so the call site
|
|
250
|
-
* can filter to CC0 before persistence. `assetUrl` points to the
|
|
251
|
-
* Freesound sound page (TOS-mandated attribution link).
|
|
252
|
-
*/
|
|
253
202
|
export interface StockSoundCandidate {
|
|
254
203
|
provider: 'freesound';
|
|
255
204
|
externalId: string;
|
|
@@ -263,13 +212,6 @@ export interface StockSoundCandidate {
|
|
|
263
212
|
assetUrl: string;
|
|
264
213
|
licenseCode: string;
|
|
265
214
|
}
|
|
266
|
-
/**
|
|
267
|
-
* GIF/clip candidate returned by `searchKlipyCandidates` (clips API
|
|
268
|
-
* variant — MP4-backed reaction clips, better suited for overlay than
|
|
269
|
-
* raw GIFs). `duration` is optional because Klipy doesn't always
|
|
270
|
-
* surface it; the enrichment activity's duration filter treats
|
|
271
|
-
* `undefined` as permissive (GIFs loop on playback).
|
|
272
|
-
*/
|
|
273
215
|
export interface StockGifCandidate {
|
|
274
216
|
provider: 'klipy';
|
|
275
217
|
externalId: string;
|
|
@@ -330,31 +272,18 @@ export interface ToolResult {
|
|
|
330
272
|
message: string;
|
|
331
273
|
overlayId?: string;
|
|
332
274
|
clipId?: string;
|
|
333
|
-
/** Tool execution wall-clock, measured around execute() by the hook wrapper
|
|
334
|
-
* (instrumentation 2026-07-17 — tool time was invisible in every trace;
|
|
335
|
-
* the audit had to reconstruct it from inter-generation gaps). */
|
|
336
275
|
durationMs?: number;
|
|
337
|
-
/** Serialized argument / result sizes (bytes) — the context-growth ledger
|
|
338
|
-
* (fat tool results were +10k-token jumps nobody could attribute). */
|
|
339
276
|
argsBytes?: number;
|
|
340
277
|
resultBytes?: number;
|
|
341
278
|
}
|
|
342
|
-
/** Per-step loop metrics — emitted by the Agent's onStepFinish so hidden
|
|
343
|
-
* (thinking) output, cache efficiency, and step latency are first-class
|
|
344
|
-
* telemetry instead of a trace-archaeology exercise (2026-07-17 audit:
|
|
345
|
-
* 94% of output tokens were invisible thinking; nobody had measured). */
|
|
346
279
|
export interface StepMetrics {
|
|
347
280
|
stepIndex: number;
|
|
348
281
|
toolNames: string[];
|
|
349
|
-
/** Model-visible output: text chars + serialized tool-call arg chars. */
|
|
350
282
|
visibleChars: number;
|
|
351
283
|
outputTokens?: number;
|
|
352
|
-
/** Uncached prompt tokens this step (the re-billed conversation tail). */
|
|
353
284
|
inputTokens?: number;
|
|
354
285
|
cacheReadTokens?: number;
|
|
355
286
|
cacheWriteTokens?: number;
|
|
356
|
-
/** reasoning tokens when the provider reports them; else derive
|
|
357
|
-
* hidden ≈ outputTokens - visibleChars/4 downstream. */
|
|
358
287
|
reasoningTokens?: number;
|
|
359
288
|
finishReason?: string;
|
|
360
289
|
}
|
|
@@ -363,9 +292,7 @@ export interface DirectorResult {
|
|
|
363
292
|
results: ToolResult[];
|
|
364
293
|
textResponse?: string;
|
|
365
294
|
error?: string;
|
|
366
|
-
/** CLI session ID — enables session resumption on the next invocation. */
|
|
367
295
|
cliSessionId?: string;
|
|
368
|
-
/** Token usage from the LLM provider. */
|
|
369
296
|
usage?: {
|
|
370
297
|
inputTokens: number;
|
|
371
298
|
outputTokens: number;
|
|
@@ -444,7 +371,6 @@ export type ProgressEvent = {
|
|
|
444
371
|
};
|
|
445
372
|
export type OnProgressCallback = (event: ProgressEvent) => void;
|
|
446
373
|
export type ApprovalFn = (toolCallId: string, toolName: string, args?: Record<string, unknown>) => Promise<boolean>;
|
|
447
|
-
/** Per-criterion pass/fail with structured feedback. */
|
|
448
374
|
export interface CriteriaResult {
|
|
449
375
|
passed: boolean;
|
|
450
376
|
criteria: Array<{
|
|
@@ -454,118 +380,43 @@ export interface CriteriaResult {
|
|
|
454
380
|
}>;
|
|
455
381
|
bestAttempt: number;
|
|
456
382
|
}
|
|
457
|
-
/** Configuration for the Agent class. */
|
|
458
383
|
export interface AgentConfig {
|
|
459
|
-
/** Language model to use for generation. */
|
|
460
384
|
model: import('ai').LanguageModel;
|
|
461
|
-
/** System prompt for the agent. */
|
|
462
385
|
systemPrompt: string;
|
|
463
|
-
/** Capabilities — without these, the agent has no tools. */
|
|
464
386
|
capabilities?: import('./capabilities.js').AgentCapabilities;
|
|
465
|
-
/** Lifecycle hooks. */
|
|
466
387
|
hooks?: {
|
|
467
388
|
beforeToolCall?: (name: string, args: Record<string, unknown>) => boolean | Promise<boolean>;
|
|
468
389
|
afterToolCall?: (name: string, result: ToolResult) => void;
|
|
469
|
-
/** Per-step metrics sink (usage split, visible vs hidden output, cache
|
|
470
|
-
* efficiency). Called after each loop step with StepMetrics. */
|
|
471
390
|
onStepMetrics?: (metrics: StepMetrics) => void;
|
|
472
391
|
afterEvaluate?: (criteria: Record<string, string>, result: CriteriaResult) => void;
|
|
473
392
|
};
|
|
474
|
-
/** Model to use for evaluation. Defaults to model. */
|
|
475
393
|
evaluationModel?: import('ai').LanguageModel;
|
|
476
|
-
/** Max tool-loop steps per run. Default: 20. */
|
|
477
394
|
maxSteps?: number;
|
|
478
|
-
/**
|
|
479
|
-
* Max output tokens per LLM turn. Default: 16000. UNSET before 2026-07-12,
|
|
480
|
-
* which silently inherited the AI SDK Anthropic default of 4096 — a planner
|
|
481
|
-
* writing a full ComposePlan tool call (or an author writing a large
|
|
482
|
-
* apply_composition) got truncated at exactly 4096 tokens and the tool call
|
|
483
|
-
* was LOST (the verify-rerun planner stall: output stopped mid-answer,
|
|
484
|
-
* tool_calls=[]).
|
|
485
|
-
*/
|
|
486
395
|
maxOutputTokens?: number;
|
|
487
|
-
/**
|
|
488
|
-
* Provider-scoped request options forwarded to every LLM turn (the AI SDK
|
|
489
|
-
* `providerOptions` passthrough — e.g. `{ anthropic: { thinking: { type:
|
|
490
|
-
* 'disabled' } } }`). The caller owns the policy; the agent just forwards.
|
|
491
|
-
* Typed structurally (per-provider JSON object) — the nominal ProviderOptions
|
|
492
|
-
* export moved across ai@6 minor versions.
|
|
493
|
-
*/
|
|
494
396
|
providerOptions?: Record<string, Record<string, unknown>>;
|
|
495
|
-
/** Logger. */
|
|
496
397
|
logger?: import('./capabilities.js').Logger;
|
|
497
|
-
/**
|
|
498
|
-
* Context-management policy for the tool loop. When set, a `prepareStep`
|
|
499
|
-
* evicts stale tool-call/result content (accumulating tool-result text +
|
|
500
|
-
* base64 capture images) between steps so a long, tool-heavy run stays under
|
|
501
|
-
* the model's context window. Off by default (no pruning).
|
|
502
|
-
*/
|
|
503
398
|
contextManagement?: import('./agent/contextManagement.js').ContextManagementPolicy;
|
|
504
|
-
/**
|
|
505
|
-
* Optional tool-set factory (the Subsystem-3 swap seam). When present, the
|
|
506
|
-
* tool-based run builds its `ToolSet` from this factory instead of the
|
|
507
|
-
* in-process `buildDirectorTools` — the Director's author LLM then drives the
|
|
508
|
-
* curated `/v1` MCP tools over the network. Absent (default) → unchanged
|
|
509
|
-
* in-process path. `packages/authoring` stays free of any `@cueframe/mcp`
|
|
510
|
-
* dependency: it only knows the structural `ToolSet` (from `ai`).
|
|
511
|
-
*/
|
|
512
399
|
buildToolSet?: (opts: {
|
|
513
400
|
allowedTools: string[];
|
|
514
401
|
onProgress: OnProgressCallback;
|
|
515
402
|
}) => import('ai').ToolSet;
|
|
516
|
-
/**
|
|
517
|
-
* The tool names this agent may use — the config-level default `run()` falls
|
|
518
|
-
* back to.
|
|
519
|
-
*
|
|
520
|
-
* REQUIRED alongside `buildToolSet` (unless every `run()` names its own
|
|
521
|
-
* `tools`): the injected factory speaks a DIFFERENT vocabulary from the
|
|
522
|
-
* in-process compose-role tool set (tools/composeRoleTools.ts), and
|
|
523
|
-
* `buildCuratedToolSet` silently skips names it does not recognise — so
|
|
524
|
-
* inheriting that key list would quietly build whatever happened to overlap.
|
|
525
|
-
* Absent + no factory ⇒ every in-process compose-role tool.
|
|
526
|
-
*/
|
|
527
403
|
allowedTools?: readonly string[];
|
|
528
|
-
/**
|
|
529
|
-
* Tools merged into the built ToolSet VERBATIM — after buildToolSet /
|
|
530
|
-
* buildDirectorTools and after hook wrapping, so provider-defined tools
|
|
531
|
-
* (e.g. the Anthropic memory tool, whose serialization the provider owns)
|
|
532
|
-
* pass through untouched. Keys collide last-wins; callers own uniqueness.
|
|
533
|
-
*/
|
|
534
404
|
extraTools?: import('ai').ToolSet;
|
|
535
|
-
/**
|
|
536
|
-
* RESERVE-VERIFY-STEP (P0.2, ledger 2026-07-17): tool names allowed on the
|
|
537
|
-
* LAST budgeted step. When set, `prepareStep` restricts `activeTools` to this
|
|
538
|
-
* list on step maxSteps-1, so a MUTATION can never be the loop's unread final
|
|
539
|
-
* act — the last possible mutation lands at maxSteps-2 and its result (or
|
|
540
|
-
* error) is read on the reserved step. Motivation: the motion pass's only
|
|
541
|
-
* mutation errored on step 12/12 and the activity still "succeeded" with zero
|
|
542
|
-
* motion landed (staging v17b1hsx). Unset (default) → no restriction.
|
|
543
|
-
*/
|
|
544
405
|
finalStepTools?: readonly string[];
|
|
545
406
|
}
|
|
546
|
-
/** Options for Agent.run(). */
|
|
547
407
|
export interface AgentRunOptions {
|
|
548
|
-
/** Restrict available tools for this run. */
|
|
549
408
|
tools?: string[];
|
|
550
|
-
/** Plain-language quality criteria. Keys are criterion names, values are descriptions. */
|
|
551
409
|
criteria?: Record<string, string>;
|
|
552
|
-
/** Weighted rubric with numeric scoring per dimension. */
|
|
553
410
|
rubric?: EvaluatorRubric;
|
|
554
|
-
/** Verification criteria — each must be met independently. */
|
|
555
411
|
verificationCriteria?: string[];
|
|
556
|
-
/** Max evaluation attempts. Default 1 (no retry). >1 enables quality loop. */
|
|
557
412
|
maxAttempts?: number;
|
|
558
|
-
/** Headless mode (generateText, no streaming). */
|
|
559
413
|
headless?: boolean;
|
|
560
|
-
/** Abort signal for cancellation. */
|
|
561
414
|
abortSignal?: AbortSignal;
|
|
562
415
|
}
|
|
563
|
-
/** Result from Agent.run(). */
|
|
564
416
|
export interface AgentRunResult {
|
|
565
417
|
success: boolean;
|
|
566
418
|
text?: string;
|
|
567
419
|
evaluation?: CriteriaResult;
|
|
568
|
-
/** Rubric evaluation result (when rubric mode is used). */
|
|
569
420
|
rubricEvaluation?: EvaluationResult;
|
|
570
421
|
attempts: number;
|
|
571
422
|
usage: import('ai').LanguageModelUsage;
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Derivation constants — pure data, ZERO side effects, ZERO heavy imports.
|
|
3
|
-
*
|
|
4
|
-
* This module deliberately imports NOTHING (no apca-w3, no culori). Render-side
|
|
5
|
-
* consumers (e.g. @cueframe/primitives) need only the ramp poles / floors and
|
|
6
|
-
* must not drag the contrast MATH (apca-w3 + culori) into their bundle just for
|
|
7
|
-
* two string constants. `contrastSafe.ts` re-exports these so the package root
|
|
8
|
-
* stays the single source of truth; leaf consumers import from
|
|
9
|
-
* `@cueframe/brand-derivation/constants`.
|
|
10
|
-
*/
|
|
11
|
-
/** Version of the derivation RULES. Bump when the math changes; downstream stamps
|
|
12
|
-
* this so re-derivation is explicit, never a silent fleet-wide shift.
|
|
13
|
-
* v2: Tier-2 derivation expansion — adds surface/card/gridLine/accentMuted fills
|
|
14
|
-
* and textOnAccent/textOnSurface paired foregrounds. Re-derives the fleet. */
|
|
15
1
|
export declare const DERIVATION_VERSION = 2;
|
|
16
|
-
/** Forward-only APCA floors. The clamp only ever INCREASES legibility. */
|
|
17
2
|
export declare const FLOORS: {
|
|
18
3
|
readonly body: 75;
|
|
19
4
|
readonly nonBody: 60;
|
|
20
5
|
readonly headline: 45;
|
|
21
6
|
};
|
|
22
|
-
/** The two neutral poles. `onDark` (white) is the safe default text color when the
|
|
23
|
-
* background is unknown; `onLight` (near-black) is the safe plate / dark pole. */
|
|
24
7
|
export declare const NEUTRAL_RAMP: {
|
|
25
8
|
readonly onDark: "#FFFFFF";
|
|
26
9
|
readonly onLight: "#0A0A0A";
|
|
@@ -13,33 +13,10 @@ export interface ContrastSafeColors {
|
|
|
13
13
|
textOnAccent: string;
|
|
14
14
|
textOnSurface: string;
|
|
15
15
|
}
|
|
16
|
-
/** sRGB relative luminance Y∈[0,1] of a hex color, via apca-w3's `sRGBtoY`.
|
|
17
|
-
* Exported so composition-side legibility (which compares text against a
|
|
18
|
-
* SAMPLED backdrop luminance, not a second hex) can put text + backdrop on the
|
|
19
|
-
* same Y scale without re-deriving the transfer curve. */
|
|
20
16
|
export declare function relativeLuminance(hex: string): number;
|
|
21
|
-
/** APCA Lc magnitude between two relative-luminance values (text fg over bg).
|
|
22
|
-
* This is the primitive the composition FLOOR's worst-tile legibility check
|
|
23
|
-
* consumes: it samples per-tile backdrop luminance from the rendered frame and
|
|
24
|
-
* asks "does the caption text clear the floor over the WORST tile?". Polarity-
|
|
25
|
-
* signed APCA is reduced to a magnitude (the floor wants legibility, not which
|
|
26
|
-
* way the polarity runs). Keep the APCA math in THIS package — the floor must
|
|
27
|
-
* not re-implement it (single source of truth, no proxy). */
|
|
28
17
|
export declare function apcaLcFromLuminance(fgY: number, bgY: number): number;
|
|
29
|
-
/** APCA Lc magnitude between two hex colors (fg over bg). Hex-input sibling of
|
|
30
|
-
* `apcaLcFromLuminance`; the brand cascade and tests use it directly. */
|
|
31
18
|
export declare function apcaLc(fg: string, bg: string): number;
|
|
32
|
-
/** Return `fg` if it clears `floor` over `bg`; else the most legible of {fg, ramp poles} over `bg`
|
|
33
|
-
* (never lower contrast than the input — forward-only by construction). Exported so the brand
|
|
34
|
-
* cascade (composition-model) can re-clamp its own derived de-emphasis tokens (e.g. the muted
|
|
35
|
-
* text mix) back up to a floor without re-implementing the APCA math at the package boundary. */
|
|
36
19
|
export declare function clampToFloor(fg: string, bg: string, floor: number): string;
|
|
37
|
-
/** Derive a contrast-safe palette from a brand seed.
|
|
38
|
-
* Captions are an UNCONDITIONAL floor: a plate-backed neutral fallback guarantees
|
|
39
|
-
* `Lc(captionFg, captionScrim) >= FLOORS.body` for any brand background.
|
|
40
|
-
* `text` / `textMuted` directly on a hostile brand background are best-achievable / forward-only
|
|
41
|
-
* (the monotone clamp never lowers a brand's own contrast); a tuned solid-background plate for
|
|
42
|
-
* body text on hostile backgrounds is Phase 1. */
|
|
43
20
|
export declare function deriveContrastSafe(seed: {
|
|
44
21
|
background: string;
|
|
45
22
|
text: string;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Singleton Uppy service for imports (local + cloud).
|
|
3
|
-
*
|
|
4
|
-
* Uses @uppy/aws-s3 for multipart uploads directly to R2 via the
|
|
5
|
-
* upload-signing CF Worker. Replaces the old TUS-based upload path.
|
|
6
|
-
*
|
|
7
|
-
* Owns the Uppy instance lifecycle (headless — no Dashboard plugin).
|
|
8
|
-
* React integration is handled by ImportProvider (single mount at app root).
|
|
9
|
-
* MediaItem pre-creation is handled by MediaItemPreprocessor (Uppy plugin).
|
|
10
|
-
*/
|
|
11
1
|
import Uppy from '@uppy/core';
|
|
12
2
|
import { MediaItemPreprocessor } from './MediaItemPreprocessor.js';
|
|
13
3
|
interface CloudImportConfig {
|
|
@@ -21,15 +11,10 @@ export interface CloudUploadResult {
|
|
|
21
11
|
declare class CloudImportService {
|
|
22
12
|
private uppy;
|
|
23
13
|
private config;
|
|
24
|
-
/** Lazy-init: create Uppy + plugins on first use. */
|
|
25
14
|
init(config: CloudImportConfig): Uppy;
|
|
26
|
-
/** Get the Uppy instance (must call init() first). */
|
|
27
15
|
getUppy(): Uppy;
|
|
28
|
-
/** Get the MediaItemPreprocessor plugin. */
|
|
29
16
|
getPreprocessor(): MediaItemPreprocessor;
|
|
30
|
-
/** Update upload metadata (uploadToken, userId, projectId). */
|
|
31
17
|
setMeta(meta: Record<string, string>): void;
|
|
32
18
|
}
|
|
33
|
-
/** Module-level singleton. */
|
|
34
19
|
export declare const cloudImportService: CloudImportService;
|
|
35
20
|
export {};
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ImportProvider — single mount at app root.
|
|
3
|
-
*
|
|
4
|
-
* Initializes the CloudImportService, wires auth callbacks, and provides
|
|
5
|
-
* the useImport() hook to child components. Wraps children in Uppy's
|
|
6
|
-
* UppyContextProvider so headless hooks (useDropzone, useUppyState, etc.)
|
|
7
|
-
* work anywhere in the tree.
|
|
8
|
-
*
|
|
9
|
-
* The import dialog UI is injected via `dialogSlot` to avoid circular
|
|
10
|
-
* dependency between @cueframe/cloud-import and @cueframe/pro.
|
|
11
|
-
*/
|
|
12
1
|
import { type ReactNode } from 'react';
|
|
13
2
|
import type Uppy from '@uppy/core';
|
|
14
3
|
import type { CloudUploadResult } from './CloudImportService.js';
|
|
@@ -17,30 +6,14 @@ interface ImportContextValue {
|
|
|
17
6
|
closeModal: () => void;
|
|
18
7
|
isOpen: boolean;
|
|
19
8
|
uppy: Uppy;
|
|
20
|
-
/**
|
|
21
|
-
* Can this lane actually take an upload right now?
|
|
22
|
-
*
|
|
23
|
-
* A cloud import needs an identity: `getUploadMeta` mints an org-scoped
|
|
24
|
-
* upload token, so with none the modal opens onto a request that can only
|
|
25
|
-
* fail. This is DATA because the provider is now a fixture of the tree — it
|
|
26
|
-
* mounts for the life of the desktop process, signed in or not, so its
|
|
27
|
-
* PRESENCE stopped being the answer to this question (it was, back when the
|
|
28
|
-
* whole cloud stack mounted only inside a confirmed auth handshake).
|
|
29
|
-
*/
|
|
30
9
|
available: boolean;
|
|
31
10
|
}
|
|
32
11
|
export interface ImportProviderProps {
|
|
33
12
|
children: ReactNode;
|
|
34
|
-
/** Whether this lane can take an upload — see `ImportContextValue.available`.
|
|
35
|
-
* Required, with no default: the one thing a caller must not forget is the
|
|
36
|
-
* fact that decides whether a control is offered at all. */
|
|
37
13
|
available: boolean;
|
|
38
|
-
/** React element to render the import dialog (e.g. <ImportDialog />) */
|
|
39
14
|
dialogSlot?: ReactNode;
|
|
40
15
|
uploadSigningUrl: string;
|
|
41
|
-
/** Called before opening the modal — returns upload metadata (token, userId, etc). */
|
|
42
16
|
getUploadMeta?: () => Promise<Record<string, string>>;
|
|
43
|
-
/** Pre-create a mediaItem — called by the preprocessor plugin before upload starts. */
|
|
44
17
|
createMediaItem?: (file: {
|
|
45
18
|
name: string;
|
|
46
19
|
size: number;
|
|
@@ -50,24 +23,6 @@ export interface ImportProviderProps {
|
|
|
50
23
|
onError?: (error: Error) => void;
|
|
51
24
|
}
|
|
52
25
|
export declare function ImportProvider({ children, available, dialogSlot, uploadSigningUrl, getUploadMeta, createMediaItem, onUploadComplete, onError, }: ImportProviderProps): import("react").JSX.Element;
|
|
53
|
-
/** Hook to access the import modal and Uppy instance. Must be used inside <ImportProvider>. */
|
|
54
26
|
export declare function useImport(): ImportContextValue;
|
|
55
|
-
/**
|
|
56
|
-
* The context WHEN THE LANE CAN BE USED, and `null` otherwise — for surfaces
|
|
57
|
-
* that offer the cloud modal only where it works and fall back where it does
|
|
58
|
-
* not (the pro ImportButton, which drops to the local file picker).
|
|
59
|
-
*
|
|
60
|
-
* It used to answer presence alone, and presence used to be the same fact:
|
|
61
|
-
* the provider mounted only inside a confirmed auth handshake. It mounts for
|
|
62
|
-
* the life of the desktop process now (Task 11 — a provider that appears and
|
|
63
|
-
* disappears re-parents the app), so presence would offer a cloud modal to a
|
|
64
|
-
* signed-out user whose upload-token request can only fail: a control that
|
|
65
|
-
* looks alive and silently does nothing.
|
|
66
|
-
*
|
|
67
|
-
* Still ONE fact, read from the tree rather than mirrored: the alternative —
|
|
68
|
-
* a caller re-deriving `isDesktop && cloudEnabled && signedIn` — is the drift
|
|
69
|
-
* class that crashed the desktop ("useImport must be used within
|
|
70
|
-
* <ImportProvider>") whenever the two copies disagreed.
|
|
71
|
-
*/
|
|
72
27
|
export declare function useImportIfAvailable(): ImportContextValue | null;
|
|
73
28
|
export {};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Uppy preprocessor plugin that pre-creates a mediaItem in the backend
|
|
3
|
-
* before the upload starts. This guarantees convexMediaItemId is in the
|
|
4
|
-
* upload metadata before the first byte goes out — no race condition.
|
|
5
|
-
*
|
|
6
|
-
* The actual creation function is injected via setCreateFn() so the plugin
|
|
7
|
-
* stays decoupled from Convex/auth concerns.
|
|
8
|
-
*/
|
|
9
1
|
import { BasePlugin } from '@uppy/core';
|
|
10
2
|
import type { Uppy, Meta } from '@uppy/core';
|
|
11
3
|
type CreateMediaItemFn = (file: {
|
|
@@ -18,7 +10,6 @@ export declare class MediaItemPreprocessor extends BasePlugin<Record<string, nev
|
|
|
18
10
|
private createFn;
|
|
19
11
|
private preprocessBound;
|
|
20
12
|
constructor(uppy: Uppy, opts?: Record<string, never>);
|
|
21
|
-
/** Inject the creation function (called from ImportProvider). */
|
|
22
13
|
setCreateFn(fn: CreateMediaItemFn | null): void;
|
|
23
14
|
install(): void;
|
|
24
15
|
uninstall(): void;
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single source of truth for cloud endpoint resolution.
|
|
3
|
-
*
|
|
4
|
-
* One input (convexUrl) → deterministic output (all cloud endpoints).
|
|
5
|
-
* No fallback chains, no env var reading, no defaults.
|
|
6
|
-
*/
|
|
7
1
|
export type CloudEnvironment = 'dev' | 'staging' | 'production';
|
|
8
2
|
export interface CloudEndpoints {
|
|
9
3
|
convexUrl: string;
|
|
10
4
|
uploadSigningUrl: string;
|
|
11
5
|
}
|
|
12
6
|
export declare const ENVIRONMENTS: Record<CloudEnvironment, CloudEndpoints>;
|
|
13
|
-
/** Detect environment from a Convex deployment URL.
|
|
14
|
-
*
|
|
15
|
-
* Convex exposes two domains per deployment: queries (`data*`) and HTTP
|
|
16
|
-
* actions (`api*`). Callers pass either form depending on which client
|
|
17
|
-
* they own, so detection has to recognize both:
|
|
18
|
-
* prod → api.cueframe.ai | data.cueframe.ai
|
|
19
|
-
* staging → api-dev.cueframe.ai | data-dev.cueframe.ai
|
|
20
|
-
*/
|
|
21
7
|
export declare function detectEnvironment(convexUrl?: string): CloudEnvironment;
|
|
22
|
-
/** Resolve all cloud endpoints from a Convex URL. */
|
|
23
8
|
export declare function getEndpoints(convexUrl: string): CloudEndpoints;
|
|
@@ -3,10 +3,4 @@ import type { SceneRenderInput } from './sceneToRenderInput.js';
|
|
|
3
3
|
export interface CompositionRendererProps {
|
|
4
4
|
input: SceneRenderInput;
|
|
5
5
|
}
|
|
6
|
-
/**
|
|
7
|
-
* Renders a complete scene composition.
|
|
8
|
-
*
|
|
9
|
-
* Lays out scenes as Sequences with proper frame offsets (accounting for
|
|
10
|
-
* transition overlaps), applies effects, text, layout, global effects, and audio.
|
|
11
|
-
*/
|
|
12
6
|
export declare const CompositionRenderer: React.FC<CompositionRendererProps>;
|
|
@@ -2,86 +2,22 @@ import type { ResolvedBrandKit } from '../composition/projection/index.js';
|
|
|
2
2
|
import type { PrimitiveMeta as NewPrimitiveMeta } from '../primitives/lib/types.js';
|
|
3
3
|
import { listPrimitivesByCategory, getPrimitiveTextParam, getPrimitiveSubtextParam } from '../composition/primitive-catalog/index.js';
|
|
4
4
|
export { listPrimitivesByCategory, getPrimitiveTextParam, getPrimitiveSubtextParam };
|
|
5
|
-
/** Re-export for consumers that want the canonical PrimitiveMeta shape. */
|
|
6
5
|
export type PrimitiveMeta = NewPrimitiveMeta;
|
|
7
|
-
/**
|
|
8
|
-
* All primitive catalogs merged into a single array.
|
|
9
|
-
*
|
|
10
|
-
* Transitions declare `kind: 'transition'` + `createPresentation(params)`.
|
|
11
|
-
* The render path resolves via `resolveTransitionPresentation(id, params)`
|
|
12
|
-
* and passes the returned presentation to `<TransitionSeries.Transition>`.
|
|
13
|
-
* Agent discovery (list_effect_styles filtered by category) surfaces them
|
|
14
|
-
* as addressable primitives.
|
|
15
|
-
*/
|
|
16
6
|
export declare const allCatalogs: PrimitiveMeta[];
|
|
17
7
|
export declare function registerPrimitiveOverride(meta: PrimitiveMeta, owner: string): void;
|
|
18
|
-
/**
|
|
19
|
-
* Clear all registered overrides + release the owner. A shared/pooled process MUST
|
|
20
|
-
* call this between tenants; a per-render process calls it once at bundle init so a
|
|
21
|
-
* reused render context starts clean (idempotent re-render).
|
|
22
|
-
*/
|
|
23
8
|
export declare function resetPrimitiveOverrides(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Resolve a primitive by its kebab-case ID.
|
|
26
|
-
* Returns the PrimitiveMeta (component + metadata) or undefined if not found.
|
|
27
|
-
*/
|
|
28
9
|
export declare function resolvePrimitive(id: string): PrimitiveMeta | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* List all registered primitive IDs.
|
|
31
|
-
*/
|
|
32
10
|
export declare function listPrimitives(): string[];
|
|
33
|
-
/**
|
|
34
|
-
* Resolve a transition presentation factory by id. Returns a concrete
|
|
35
|
-
* Remotion `TransitionPresentation` (typed loosely as `unknown` to avoid
|
|
36
|
-
* pulling `@remotion/transitions` types into every consumer) built from
|
|
37
|
-
* the supplied params.
|
|
38
|
-
*
|
|
39
|
-
* Returns `undefined` if the id is unknown OR if the registered entry is
|
|
40
|
-
* not a transition (defensive — lets callers fall back cleanly).
|
|
41
|
-
*/
|
|
42
11
|
export declare function resolveTransitionPresentation(id: string, params?: Record<string, unknown>): unknown | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Returns true if an id names a registered transition. Used by ingress
|
|
45
|
-
* validators (e.g. public schema) to widen the old enum to any registered
|
|
46
|
-
* transition without losing validation.
|
|
47
|
-
*/
|
|
48
12
|
export declare function isRegisteredTransition(id: string): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Read accessor: returns the primary text string from an overlay, respecting
|
|
51
|
-
* both the canonical location (overlay.params.text) and the legacy
|
|
52
|
-
* primitive-native location (overlay.params[meta.textParam]). Canonical
|
|
53
|
-
* wins when present.
|
|
54
|
-
*
|
|
55
|
-
* Use this in every consumer that needs "the text of an overlay" —
|
|
56
|
-
* Inspector, Timeline, transcript, FCPXML, NLE exports.
|
|
57
|
-
*/
|
|
58
13
|
export declare function getPrimitiveText(overlay: {
|
|
59
14
|
template: string;
|
|
60
15
|
params: Record<string, unknown>;
|
|
61
16
|
}): string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Read accessor for secondary text. Same fallback pattern as getPrimitiveText.
|
|
64
|
-
*/
|
|
65
17
|
export declare function getPrimitiveSubtext(overlay: {
|
|
66
18
|
template: string;
|
|
67
19
|
params: Record<string, unknown>;
|
|
68
20
|
}): string | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Render-time translator from overlay-canonical params to primitive-native
|
|
71
|
-
* props. Used by OverlayLayer and anything else that spreads overlay.params
|
|
72
|
-
* into the primitive component.
|
|
73
|
-
*
|
|
74
|
-
* params.text → props[meta.textParam] (if primitive has textParam)
|
|
75
|
-
* params.subtext → props[meta.subtextParam] (if primitive has subtextParam)
|
|
76
|
-
* "$brand:<path>" refs → resolved against brandKit (if provided)
|
|
77
|
-
* everything else → passed through
|
|
78
|
-
*
|
|
79
|
-
* Producers MUST write canonical `text` / `subtext`. Writing under the
|
|
80
|
-
* primitive's native prop name (e.g. `content`) is no longer auto-mapped —
|
|
81
|
-
* such payloads fail paramsSchema validation at inflate time with a clear
|
|
82
|
-
* `<primitive-id>: invalid params — text: Required` error so the producer
|
|
83
|
-
* can be corrected.
|
|
84
|
-
*/
|
|
85
21
|
export declare function inflatePrimitiveProps(overlay: {
|
|
86
22
|
template: string;
|
|
87
23
|
params: Record<string, unknown>;
|