@cueframe/kernel 0.2.58 → 0.2.59-rc.0
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-TKFLSGAS.js → chunk-25JH5QZA.js} +2 -2
- 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-VLJOIUHL.js → chunk-7PSQUTL5.js} +3 -3
- 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-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-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 +28 -45
- 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 +4 -4
- 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 +5 -5
- package/dist/primitives/workspace.js +1 -1
- package/dist/primitives.js +24 -38
- 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 +100 -82
- 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/chunk-IG3YAOUZ.js
DELETED
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BrandKit
|
|
3
|
-
} from "./chunk-PWWZTY3G.js";
|
|
4
|
-
import {
|
|
5
|
-
Composition,
|
|
6
|
-
Copy,
|
|
7
|
-
Format,
|
|
8
|
-
GraphicRole,
|
|
9
|
-
OpaqueId
|
|
10
|
-
} from "./chunk-UFD4EZHM.js";
|
|
11
|
-
|
|
12
|
-
// ../composition/src/validators/composePlan.ts
|
|
13
|
-
import { z } from "zod";
|
|
14
|
-
var PlanSubject = z.discriminatedUnion("kind", [
|
|
15
|
-
z.object({ kind: z.literal("face"), faceId: z.string().min(1) }),
|
|
16
|
-
z.object({ kind: z.literal("all-faces") }),
|
|
17
|
-
z.object({ kind: z.literal("frame-center") }),
|
|
18
|
-
z.object({ kind: z.literal("active-speaker") }),
|
|
19
|
-
z.object({
|
|
20
|
-
kind: z.literal("point"),
|
|
21
|
-
x: z.number().min(0).max(1),
|
|
22
|
-
y: z.number().min(0).max(1)
|
|
23
|
-
})
|
|
24
|
-
]);
|
|
25
|
-
var PlanFramingSegment = z.object({
|
|
26
|
-
startSec: z.number().nonnegative(),
|
|
27
|
-
endSec: z.number().positive(),
|
|
28
|
-
action: z.enum(["frame", "keep", "trim"]).describe(
|
|
29
|
-
"'frame' = SHOW this span cropped/tracked per `subject`. 'keep' = SHOW this span as-is, no reframe (footage with nothing to track). 'trim' = DELETE this span from the output entirely \u2014 trimmed footage never appears."
|
|
30
|
-
),
|
|
31
|
-
subject: PlanSubject.optional(),
|
|
32
|
-
shotScale: z.enum(["close", "standard", "wide"]).optional(),
|
|
33
|
-
zoomScale: z.number().min(0.4).max(1).optional(),
|
|
34
|
-
verticalBias: z.number().min(-0.3).max(0.3).optional(),
|
|
35
|
-
lateralBias: z.number().min(-0.3).max(0.3).optional(),
|
|
36
|
-
intent: z.string().optional()
|
|
37
|
-
}).refine((s) => s.action !== "frame" || s.subject !== void 0, {
|
|
38
|
-
message: "frame segment requires a subject \u2014 for footage with no trackable subject use action:'keep' (shown as-is); do NOT trim spans you want shown"
|
|
39
|
-
}).refine((s) => s.action !== "keep" || s.subject === void 0, {
|
|
40
|
-
message: "keep segment shows footage as-is \u2014 it takes no subject (use action:'frame' to track one)"
|
|
41
|
-
}).refine((s) => s.shotScale === void 0 || s.zoomScale === void 0, {
|
|
42
|
-
message: "framing segment takes EITHER shotScale (editorial scale \u2014 the bake calibrates the zoom to the detected face) OR zoomScale (an explicit fraction of the frame), never both: shotScale wins and the zoomScale would be silently discarded",
|
|
43
|
-
path: ["zoomScale"]
|
|
44
|
-
});
|
|
45
|
-
var PlanCut = z.object({
|
|
46
|
-
startSec: z.number().nonnegative(),
|
|
47
|
-
endSec: z.number().positive(),
|
|
48
|
-
reason: z.string().min(1)
|
|
49
|
-
});
|
|
50
|
-
var PlanAssetRequest = z.object({
|
|
51
|
-
id: z.string().min(1),
|
|
52
|
-
atSec: z.number().nonnegative(),
|
|
53
|
-
durSec: z.number().positive(),
|
|
54
|
-
kind: z.enum(["broll", "audio", "sfx", "music", "ambience", "gif", "image"]),
|
|
55
|
-
source: z.enum(["find", "generate"]),
|
|
56
|
-
intent: z.string().min(1),
|
|
57
|
-
resolvedMediaId: z.string().optional()
|
|
58
|
-
});
|
|
59
|
-
var PlanGraphicRequest = z.object({
|
|
60
|
-
id: z.string().min(1),
|
|
61
|
-
atSec: z.number().nonnegative(),
|
|
62
|
-
durSec: z.number().positive(),
|
|
63
|
-
role: GraphicRole,
|
|
64
|
-
copy: Copy,
|
|
65
|
-
intent: z.string().min(1)
|
|
66
|
-
});
|
|
67
|
-
var PlanMarker = z.object({
|
|
68
|
-
startSec: z.number().nonnegative(),
|
|
69
|
-
endSec: z.number().nonnegative().optional(),
|
|
70
|
-
kind: z.string().min(1),
|
|
71
|
-
name: z.string().optional()
|
|
72
|
-
});
|
|
73
|
-
var ComposePlan = z.object({
|
|
74
|
-
framing: z.array(PlanFramingSegment).min(1),
|
|
75
|
-
cuts: z.array(PlanCut).optional(),
|
|
76
|
-
captions: z.object({ styleIntent: z.string().optional() }).optional(),
|
|
77
|
-
assets: z.array(PlanAssetRequest).optional(),
|
|
78
|
-
graphics: z.array(PlanGraphicRequest).optional(),
|
|
79
|
-
markers: z.array(PlanMarker).optional()
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
// ../composition/src/validators/font.ts
|
|
83
|
-
import { z as z2 } from "zod";
|
|
84
|
-
var FontStatus = z2.enum([
|
|
85
|
-
"pending",
|
|
86
|
-
"uploading",
|
|
87
|
-
"analyzing",
|
|
88
|
-
"subsetting",
|
|
89
|
-
"ready",
|
|
90
|
-
"partial",
|
|
91
|
-
// common-glyphs buffer present, custom glyphs still subsetting
|
|
92
|
-
"failed"
|
|
93
|
-
]);
|
|
94
|
-
var FontVariant = z2.object({
|
|
95
|
-
weight: z2.number().int().min(100).max(900),
|
|
96
|
-
style: z2.enum(["normal", "italic"]),
|
|
97
|
-
storageKey: z2.string().min(1),
|
|
98
|
-
byteSize: z2.number().int().nonnegative().optional(),
|
|
99
|
-
subsetComplete: z2.boolean().optional()
|
|
100
|
-
});
|
|
101
|
-
var Font = z2.object({
|
|
102
|
-
id: z2.string().min(1),
|
|
103
|
-
family: z2.string().min(1),
|
|
104
|
-
status: FontStatus,
|
|
105
|
-
variants: z2.array(FontVariant).nonempty(),
|
|
106
|
-
source: z2.enum(["uploaded", "system", "web"]).optional(),
|
|
107
|
-
license: z2.object({
|
|
108
|
-
type: z2.string().min(1),
|
|
109
|
-
source: z2.string().optional(),
|
|
110
|
-
notes: z2.string().optional()
|
|
111
|
-
}).optional(),
|
|
112
|
-
createdAt: z2.number().optional(),
|
|
113
|
-
// epoch ms
|
|
114
|
-
ownerOrgId: z2.string().optional()
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
// ../composition/src/validators/render.ts
|
|
118
|
-
import { z as z3 } from "zod";
|
|
119
|
-
var RenderPriority = z3.enum(["interactive", "standard", "background"]);
|
|
120
|
-
var RenderIntent = z3.enum(["preview", "final"]);
|
|
121
|
-
var RenderMode = z3.enum(["offline", "live"]);
|
|
122
|
-
var RenderCancelReason = z3.enum([
|
|
123
|
-
"user",
|
|
124
|
-
"agent",
|
|
125
|
-
"cost_limit",
|
|
126
|
-
"superseded",
|
|
127
|
-
"source_removed",
|
|
128
|
-
"timeout",
|
|
129
|
-
"error"
|
|
130
|
-
]);
|
|
131
|
-
var RenderStatus = z3.enum([
|
|
132
|
-
"pending",
|
|
133
|
-
"rendering",
|
|
134
|
-
"complete",
|
|
135
|
-
"error",
|
|
136
|
-
"cancelled"
|
|
137
|
-
]);
|
|
138
|
-
var RenderProgressPhase = z3.object({
|
|
139
|
-
phase: z3.string().min(1),
|
|
140
|
-
percent: z3.number().min(0).max(100),
|
|
141
|
-
scenesTotal: z3.number().int().positive().optional()
|
|
142
|
-
});
|
|
143
|
-
var RegistryPin = z3.object({
|
|
144
|
-
package: z3.string().min(1),
|
|
145
|
-
name: z3.string().min(1),
|
|
146
|
-
version: z3.string().min(1)
|
|
147
|
-
});
|
|
148
|
-
var MediaSourceSnapshot = z3.object({
|
|
149
|
-
mediaId: OpaqueId,
|
|
150
|
-
presignedUrl: z3.string().url(),
|
|
151
|
-
expiresAt: z3.number().optional()
|
|
152
|
-
});
|
|
153
|
-
var RenderSnapshot = z3.object({
|
|
154
|
-
composition: Composition,
|
|
155
|
-
brandKit: BrandKit.optional(),
|
|
156
|
-
mediaSources: z3.array(MediaSourceSnapshot),
|
|
157
|
-
registryPins: z3.array(RegistryPin),
|
|
158
|
-
capturedAt: z3.number()
|
|
159
|
-
});
|
|
160
|
-
var R2Destination = z3.object({
|
|
161
|
-
kind: z3.literal("r2"),
|
|
162
|
-
path: z3.string().optional()
|
|
163
|
-
});
|
|
164
|
-
var S3Destination = z3.object({
|
|
165
|
-
kind: z3.literal("s3"),
|
|
166
|
-
credentialId: z3.string().min(1),
|
|
167
|
-
bucket: z3.string().min(1),
|
|
168
|
-
key: z3.string().min(1),
|
|
169
|
-
region: z3.string().optional(),
|
|
170
|
-
acl: z3.string().optional()
|
|
171
|
-
});
|
|
172
|
-
var YoutubeDestination = z3.object({
|
|
173
|
-
kind: z3.literal("youtube"),
|
|
174
|
-
credentialId: z3.string().min(1),
|
|
175
|
-
title: z3.string().min(1),
|
|
176
|
-
description: z3.string().optional(),
|
|
177
|
-
privacy: z3.enum(["public", "unlisted", "private"]),
|
|
178
|
-
tags: z3.array(z3.string()).optional()
|
|
179
|
-
});
|
|
180
|
-
var MuxDestination = z3.object({
|
|
181
|
-
kind: z3.literal("mux"),
|
|
182
|
-
credentialId: z3.string().min(1),
|
|
183
|
-
passthrough: z3.string().optional()
|
|
184
|
-
});
|
|
185
|
-
var WebhookDestination = z3.object({
|
|
186
|
-
kind: z3.literal("webhook"),
|
|
187
|
-
url: z3.string().url(),
|
|
188
|
-
signingKeyId: z3.string().optional(),
|
|
189
|
-
headers: z3.record(z3.string(), z3.string()).optional()
|
|
190
|
-
});
|
|
191
|
-
var Destination = z3.discriminatedUnion("kind", [
|
|
192
|
-
R2Destination,
|
|
193
|
-
S3Destination,
|
|
194
|
-
YoutubeDestination,
|
|
195
|
-
MuxDestination,
|
|
196
|
-
WebhookDestination
|
|
197
|
-
]);
|
|
198
|
-
var DestinationDeliveryStatus = z3.enum([
|
|
199
|
-
"pending",
|
|
200
|
-
"uploading",
|
|
201
|
-
"delivered",
|
|
202
|
-
"failed"
|
|
203
|
-
]);
|
|
204
|
-
var DestinationResult = z3.object({
|
|
205
|
-
destinationIndex: z3.number().int().nonnegative(),
|
|
206
|
-
status: DestinationDeliveryStatus,
|
|
207
|
-
url: z3.string().url().optional(),
|
|
208
|
-
deliveredAt: z3.number().optional(),
|
|
209
|
-
error: z3.string().optional()
|
|
210
|
-
});
|
|
211
|
-
var RenderJob = z3.object({
|
|
212
|
-
id: OpaqueId,
|
|
213
|
-
projectId: OpaqueId.optional(),
|
|
214
|
-
compositionId: OpaqueId,
|
|
215
|
-
compositionVersionId: z3.string().min(1),
|
|
216
|
-
status: RenderStatus,
|
|
217
|
-
progress: RenderProgressPhase.optional(),
|
|
218
|
-
mode: RenderMode.optional(),
|
|
219
|
-
priority: RenderPriority,
|
|
220
|
-
// required per data-model.md § Render priority
|
|
221
|
-
intent: RenderIntent.optional(),
|
|
222
|
-
snapshot: RenderSnapshot.optional(),
|
|
223
|
-
snapshotRef: z3.string().optional(),
|
|
224
|
-
outputUrl: z3.string().url().optional(),
|
|
225
|
-
outputExpiresAt: z3.number().optional(),
|
|
226
|
-
// epoch ms
|
|
227
|
-
destinations: z3.array(Destination).optional(),
|
|
228
|
-
destinationResults: z3.array(DestinationResult).optional(),
|
|
229
|
-
cancelReason: RenderCancelReason.optional(),
|
|
230
|
-
error: z3.object({
|
|
231
|
-
code: z3.string(),
|
|
232
|
-
message: z3.string(),
|
|
233
|
-
details: z3.record(z3.string(), z3.unknown()).optional()
|
|
234
|
-
}).optional(),
|
|
235
|
-
createdAt: z3.number(),
|
|
236
|
-
updatedAt: z3.number()
|
|
237
|
-
});
|
|
238
|
-
var RenderProgress = z3.object({
|
|
239
|
-
jobId: OpaqueId,
|
|
240
|
-
status: RenderStatus,
|
|
241
|
-
percent: z3.number().min(0).max(100).optional(),
|
|
242
|
-
framesRendered: z3.number().int().nonnegative().optional(),
|
|
243
|
-
framesTotal: z3.number().int().positive().optional()
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
// ../composition/src/validators/registry.ts
|
|
247
|
-
import { z as z4 } from "zod";
|
|
248
|
-
var PrimitiveOriginClass = z4.enum([
|
|
249
|
-
"first-party",
|
|
250
|
-
"community-verified",
|
|
251
|
-
"community-unverified",
|
|
252
|
-
"user-private",
|
|
253
|
-
"sandbox",
|
|
254
|
-
"deprecated"
|
|
255
|
-
]);
|
|
256
|
-
var PrimitiveMode = z4.enum(["2d", "immersive", "interactive"]);
|
|
257
|
-
var PrimitiveToken = z4.object({
|
|
258
|
-
path: z4.string().min(1),
|
|
259
|
-
fallback: z4.unknown()
|
|
260
|
-
});
|
|
261
|
-
var PrimitiveOtioMapping = z4.object({
|
|
262
|
-
effectName: z4.string().min(1),
|
|
263
|
-
metadata: z4.record(z4.string(), z4.unknown()).optional()
|
|
264
|
-
});
|
|
265
|
-
var PrimitiveMeta = z4.object({
|
|
266
|
-
description: z4.string().optional(),
|
|
267
|
-
use_when: z4.array(z4.string()).optional(),
|
|
268
|
-
avoid_when: z4.array(z4.string()).optional(),
|
|
269
|
-
vibe: z4.array(z4.string()).optional(),
|
|
270
|
-
formats: z4.array(z4.string()).optional(),
|
|
271
|
-
pairs_well_with: z4.array(z4.string()).optional(),
|
|
272
|
-
exemplars: z4.array(z4.string()).optional()
|
|
273
|
-
});
|
|
274
|
-
var PrimitiveRegistryEntry = z4.object({
|
|
275
|
-
name: z4.string().min(1),
|
|
276
|
-
package: z4.string().min(1),
|
|
277
|
-
category: z4.enum(["overlay", "text", "effect", "transition", "layout"]),
|
|
278
|
-
version: z4.string().min(1),
|
|
279
|
-
origin: PrimitiveOriginClass,
|
|
280
|
-
modes: z4.array(PrimitiveMode).optional(),
|
|
281
|
-
paramsSchema: z4.unknown(),
|
|
282
|
-
varyingParams: z4.array(z4.string()).optional(),
|
|
283
|
-
extends: z4.string().optional(),
|
|
284
|
-
tokens: z4.array(PrimitiveToken).optional(),
|
|
285
|
-
otio: PrimitiveOtioMapping.optional(),
|
|
286
|
-
meta: PrimitiveMeta.optional()
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
// ../composition/src/validators/project.ts
|
|
290
|
-
import { z as z5 } from "zod";
|
|
291
|
-
var Project = z5.object({
|
|
292
|
-
id: OpaqueId,
|
|
293
|
-
name: z5.string().min(1),
|
|
294
|
-
defaultFormat: Format.optional(),
|
|
295
|
-
palConformDefault: z5.union([z5.literal(24), z5.literal(30)]).optional(),
|
|
296
|
-
activeCompositionId: OpaqueId.nullable().optional(),
|
|
297
|
-
brandKitId: z5.string().optional(),
|
|
298
|
-
ownerOrgId: z5.string().optional(),
|
|
299
|
-
createdAt: z5.number(),
|
|
300
|
-
updatedAt: z5.number()
|
|
301
|
-
});
|
|
302
|
-
|
|
303
|
-
// ../composition/src/validators/session.ts
|
|
304
|
-
import { z as z6 } from "zod";
|
|
305
|
-
var SessionMediaRole = z6.enum([
|
|
306
|
-
"main",
|
|
307
|
-
"wide",
|
|
308
|
-
"facecam",
|
|
309
|
-
"screen",
|
|
310
|
-
"audio"
|
|
311
|
-
]);
|
|
312
|
-
var SessionMember = z6.object({
|
|
313
|
-
mediaId: OpaqueId,
|
|
314
|
-
role: SessionMediaRole,
|
|
315
|
-
label: z6.string().optional()
|
|
316
|
-
// human-readable annotation, e.g., "host's camera"
|
|
317
|
-
});
|
|
318
|
-
var SessionMux = z6.object({
|
|
319
|
-
videoRole: z6.enum(["main", "wide", "facecam", "screen"]),
|
|
320
|
-
audioRole: z6.literal("audio")
|
|
321
|
-
});
|
|
322
|
-
var Session = z6.object({
|
|
323
|
-
id: OpaqueId,
|
|
324
|
-
name: z6.string().min(1),
|
|
325
|
-
members: z6.array(SessionMember).nonempty(),
|
|
326
|
-
mux: z6.array(SessionMux).optional(),
|
|
327
|
-
ownerOrgId: z6.string().optional(),
|
|
328
|
-
createdAt: z6.number(),
|
|
329
|
-
updatedAt: z6.number()
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
// ../composition/src/validators/webhook.ts
|
|
333
|
-
import { z as z7 } from "zod";
|
|
334
|
-
var SubstrateWebhookEvent = z7.enum([
|
|
335
|
-
"render.completed",
|
|
336
|
-
"media.transcribed",
|
|
337
|
-
"media.completed",
|
|
338
|
-
"composition.updated"
|
|
339
|
-
]);
|
|
340
|
-
var WebhookDeliveryStatus = z7.enum([
|
|
341
|
-
"pending",
|
|
342
|
-
"delivering",
|
|
343
|
-
"delivered",
|
|
344
|
-
"failed",
|
|
345
|
-
"exhausted"
|
|
346
|
-
// retry budget burned through
|
|
347
|
-
]);
|
|
348
|
-
var Webhook = z7.object({
|
|
349
|
-
id: OpaqueId,
|
|
350
|
-
url: z7.string().url(),
|
|
351
|
-
events: z7.array(z7.string().min(1)).nonempty(),
|
|
352
|
-
signingKeyId: z7.string().optional(),
|
|
353
|
-
headers: z7.record(z7.string(), z7.string()).optional(),
|
|
354
|
-
enabled: z7.boolean().optional(),
|
|
355
|
-
ownerOrgId: z7.string().optional(),
|
|
356
|
-
createdAt: z7.number(),
|
|
357
|
-
updatedAt: z7.number()
|
|
358
|
-
});
|
|
359
|
-
var WebhookDelivery = z7.object({
|
|
360
|
-
id: z7.string().min(1),
|
|
361
|
-
webhookId: OpaqueId,
|
|
362
|
-
event: z7.string().min(1),
|
|
363
|
-
payload: z7.record(z7.string(), z7.unknown()),
|
|
364
|
-
status: WebhookDeliveryStatus,
|
|
365
|
-
attemptCount: z7.number().int().nonnegative(),
|
|
366
|
-
responseStatus: z7.number().int().optional(),
|
|
367
|
-
responseBody: z7.string().optional(),
|
|
368
|
-
error: z7.string().optional(),
|
|
369
|
-
createdAt: z7.number(),
|
|
370
|
-
deliveredAt: z7.number().optional()
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
export {
|
|
374
|
-
PlanSubject,
|
|
375
|
-
PlanFramingSegment,
|
|
376
|
-
PlanCut,
|
|
377
|
-
PlanAssetRequest,
|
|
378
|
-
PlanGraphicRequest,
|
|
379
|
-
PlanMarker,
|
|
380
|
-
ComposePlan,
|
|
381
|
-
FontStatus,
|
|
382
|
-
FontVariant,
|
|
383
|
-
Font,
|
|
384
|
-
RenderPriority,
|
|
385
|
-
RenderIntent,
|
|
386
|
-
RenderMode,
|
|
387
|
-
RenderCancelReason,
|
|
388
|
-
RenderStatus,
|
|
389
|
-
RenderProgressPhase,
|
|
390
|
-
RegistryPin,
|
|
391
|
-
MediaSourceSnapshot,
|
|
392
|
-
RenderSnapshot,
|
|
393
|
-
R2Destination,
|
|
394
|
-
S3Destination,
|
|
395
|
-
YoutubeDestination,
|
|
396
|
-
MuxDestination,
|
|
397
|
-
WebhookDestination,
|
|
398
|
-
Destination,
|
|
399
|
-
DestinationDeliveryStatus,
|
|
400
|
-
DestinationResult,
|
|
401
|
-
RenderJob,
|
|
402
|
-
RenderProgress,
|
|
403
|
-
PrimitiveOriginClass,
|
|
404
|
-
PrimitiveMode,
|
|
405
|
-
PrimitiveToken,
|
|
406
|
-
PrimitiveOtioMapping,
|
|
407
|
-
PrimitiveMeta,
|
|
408
|
-
PrimitiveRegistryEntry,
|
|
409
|
-
Project,
|
|
410
|
-
SessionMediaRole,
|
|
411
|
-
SessionMember,
|
|
412
|
-
SessionMux,
|
|
413
|
-
Session,
|
|
414
|
-
SubstrateWebhookEvent,
|
|
415
|
-
WebhookDeliveryStatus,
|
|
416
|
-
Webhook,
|
|
417
|
-
WebhookDelivery
|
|
418
|
-
};
|
package/dist/chunk-JOURGVOR.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// ../authoring/src/capabilities.ts
|
|
2
|
-
var AgentFixableCaptureError = class extends Error {
|
|
3
|
-
agentFixable = true;
|
|
4
|
-
constructor(message) {
|
|
5
|
-
super(message);
|
|
6
|
-
this.name = "AgentFixableCaptureError";
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
var CAPABILITY_GATED_TOOLS = Object.freeze({
|
|
10
|
-
capture_frames: "capture",
|
|
11
|
-
score_composition: "verify",
|
|
12
|
-
apply_motion_preset: "motionPreset",
|
|
13
|
-
search_library: "resources"
|
|
14
|
-
});
|
|
15
|
-
function getExcludedTools(capabilities) {
|
|
16
|
-
const ex = /* @__PURE__ */ new Set();
|
|
17
|
-
for (const [tool, cap] of Object.entries(CAPABILITY_GATED_TOOLS)) {
|
|
18
|
-
if (!capabilities[cap]) ex.add(tool);
|
|
19
|
-
}
|
|
20
|
-
return ex;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
AgentFixableCaptureError,
|
|
25
|
-
CAPABILITY_GATED_TOOLS,
|
|
26
|
-
getExcludedTools
|
|
27
|
-
};
|
package/dist/chunk-MFMR3LHO.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cssUrlPayloads,
|
|
3
|
-
isFragmentReference
|
|
4
|
-
} from "./chunk-OSMXQV5V.js";
|
|
5
|
-
import {
|
|
6
|
-
CueframeError
|
|
7
|
-
} from "./chunk-AK5QBHOB.js";
|
|
8
|
-
|
|
9
|
-
// ../execution/render-harness/src/cardAssetAdmission.ts
|
|
10
|
-
import parseCss from "css-tree/parser";
|
|
11
|
-
import walkCss from "css-tree/walker";
|
|
12
|
-
import { parseFragment } from "parse5";
|
|
13
|
-
var RESOURCE_ELEMENTS = /* @__PURE__ */ new Set([
|
|
14
|
-
"audio",
|
|
15
|
-
"embed",
|
|
16
|
-
"iframe",
|
|
17
|
-
"image",
|
|
18
|
-
"img",
|
|
19
|
-
"link",
|
|
20
|
-
"object",
|
|
21
|
-
"script",
|
|
22
|
-
"source",
|
|
23
|
-
"track",
|
|
24
|
-
"video"
|
|
25
|
-
]);
|
|
26
|
-
var URL_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
27
|
-
"action",
|
|
28
|
-
"data",
|
|
29
|
-
"formaction",
|
|
30
|
-
"href",
|
|
31
|
-
"poster",
|
|
32
|
-
"src",
|
|
33
|
-
"srcset",
|
|
34
|
-
"xlink:href"
|
|
35
|
-
]);
|
|
36
|
-
var CSS_VALUE_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
37
|
-
"clip-path",
|
|
38
|
-
"cursor",
|
|
39
|
-
"fill",
|
|
40
|
-
"filter",
|
|
41
|
-
"marker",
|
|
42
|
-
"marker-end",
|
|
43
|
-
"marker-mid",
|
|
44
|
-
"marker-start",
|
|
45
|
-
"mask",
|
|
46
|
-
"stroke"
|
|
47
|
-
]);
|
|
48
|
-
function refuse(locator, reason) {
|
|
49
|
-
throw new CueframeError(
|
|
50
|
-
"card_external_asset_forbidden",
|
|
51
|
-
`Card ${locator} ${reason}`,
|
|
52
|
-
void 0,
|
|
53
|
-
{ card: locator }
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
function assertCssAssetFree(css, context, locator) {
|
|
57
|
-
let ast;
|
|
58
|
-
try {
|
|
59
|
-
ast = parseCss(css, { context });
|
|
60
|
-
} catch (cause) {
|
|
61
|
-
refuse(locator, `contains invalid CSS: ${String(cause)}`);
|
|
62
|
-
}
|
|
63
|
-
walkCss(ast, (node) => {
|
|
64
|
-
if (node.type === "Url" && !isFragmentReference(node.value)) {
|
|
65
|
-
refuse(locator, "contains a CSS url() asset reference");
|
|
66
|
-
}
|
|
67
|
-
if (node.type === "Atrule" && ["import", "font-face"].includes(node.name.toLowerCase())) {
|
|
68
|
-
refuse(locator, `contains a forbidden CSS @${node.name} rule`);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function assertNodeAssetFree(node, locator) {
|
|
73
|
-
if ("tagName" in node) {
|
|
74
|
-
const tagName = node.tagName.toLowerCase();
|
|
75
|
-
if (RESOURCE_ELEMENTS.has(tagName)) {
|
|
76
|
-
refuse(locator, `contains resource-bearing <${tagName}> markup`);
|
|
77
|
-
}
|
|
78
|
-
for (const attr of node.attrs) {
|
|
79
|
-
const name = attr.name.toLowerCase();
|
|
80
|
-
if (name.startsWith("on")) {
|
|
81
|
-
refuse(locator, `contains executable event handler '${name}'`);
|
|
82
|
-
}
|
|
83
|
-
if (URL_ATTRIBUTES.has(name) && !isFragmentReference(attr.value)) {
|
|
84
|
-
refuse(locator, `contains an unmanifested ${name} asset reference`);
|
|
85
|
-
}
|
|
86
|
-
if (name === "style") assertCssAssetFree(attr.value, "declarationList", locator);
|
|
87
|
-
if (CSS_VALUE_ATTRIBUTES.has(name)) {
|
|
88
|
-
for (const payload of cssUrlPayloads(attr.value)) {
|
|
89
|
-
if (!isFragmentReference(payload)) {
|
|
90
|
-
refuse(locator, `contains an unmanifested ${name} url() asset reference`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (tagName === "style" && "childNodes" in node) {
|
|
96
|
-
const css = node.childNodes.filter((child) => child.nodeName === "#text").map((child) => child.value).join("");
|
|
97
|
-
assertCssAssetFree(css, "stylesheet", locator);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if ("childNodes" in node) {
|
|
101
|
-
for (const child of node.childNodes) assertNodeAssetFree(child, locator);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function assertCardHtmlAssetFree(input) {
|
|
105
|
-
for (const overlay of input.overlays ?? []) {
|
|
106
|
-
if (overlay.template !== "card") continue;
|
|
107
|
-
const html = overlay.params?.html;
|
|
108
|
-
if (typeof html !== "string") continue;
|
|
109
|
-
const fragment = parseFragment(html);
|
|
110
|
-
for (const node of fragment.childNodes) assertNodeAssetFree(node, `overlay '${overlay.id}'`);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export {
|
|
115
|
-
assertCardHtmlAssetFree
|
|
116
|
-
};
|
package/dist/chunk-OSMXQV5V.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// ../execution/render-harness/src/assetRefs.ts
|
|
2
|
-
function isFragmentReference(value) {
|
|
3
|
-
return value.trim().startsWith("#");
|
|
4
|
-
}
|
|
5
|
-
function cssUrlPayloads(value) {
|
|
6
|
-
return [...value.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi)].map((m) => m[2] ?? "");
|
|
7
|
-
}
|
|
8
|
-
function hasNonFragmentCssUrl(value) {
|
|
9
|
-
const payloads = cssUrlPayloads(value);
|
|
10
|
-
if (payloads.length === 0) return false;
|
|
11
|
-
return payloads.some((payload) => !isFragmentReference(payload));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
isFragmentReference,
|
|
16
|
-
cssUrlPayloads,
|
|
17
|
-
hasNonFragmentCssUrl
|
|
18
|
-
};
|
package/dist/chunk-QDBVYZSF.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NEUTRAL_RAMP
|
|
3
|
-
} from "./chunk-VG2ND6PX.js";
|
|
4
|
-
|
|
5
|
-
// ../execution/primitives/src/lib/tokens.ts
|
|
6
|
-
var CONTRAST_CRITICAL_PATHS = /* @__PURE__ */ new Set([
|
|
7
|
-
"colors.text",
|
|
8
|
-
"colors.textMuted",
|
|
9
|
-
"colors.textOnMedia",
|
|
10
|
-
"colors.textOnAccent",
|
|
11
|
-
"colors.textOnSurface",
|
|
12
|
-
"caption.fg",
|
|
13
|
-
"caption.scrim"
|
|
14
|
-
]);
|
|
15
|
-
function isContrastCritical(brandKitPath) {
|
|
16
|
-
return CONTRAST_CRITICAL_PATHS.has(brandKitPath);
|
|
17
|
-
}
|
|
18
|
-
var FROZEN_CORE_PATHS = [
|
|
19
|
-
"colors.background",
|
|
20
|
-
"colors.surface",
|
|
21
|
-
"colors.card",
|
|
22
|
-
"colors.text",
|
|
23
|
-
"colors.textMuted",
|
|
24
|
-
"colors.textOnMedia",
|
|
25
|
-
"colors.border",
|
|
26
|
-
"colors.gridLine",
|
|
27
|
-
"colors.accent",
|
|
28
|
-
"colors.accentMuted",
|
|
29
|
-
"colors.textOnAccent",
|
|
30
|
-
"colors.textOnSurface",
|
|
31
|
-
"caption.fg",
|
|
32
|
-
"caption.scrim",
|
|
33
|
-
"fonts.heading",
|
|
34
|
-
"fonts.body",
|
|
35
|
-
"fonts.caption",
|
|
36
|
-
"motion.duration",
|
|
37
|
-
"motion.easing",
|
|
38
|
-
"motion.entrance",
|
|
39
|
-
"motion.staggerMs",
|
|
40
|
-
"motion.exitMs",
|
|
41
|
-
"spacing.base",
|
|
42
|
-
"spacing.lg",
|
|
43
|
-
"spacing.sm",
|
|
44
|
-
"sizing.fontSizeHeading",
|
|
45
|
-
"sizing.fontSizeBody",
|
|
46
|
-
"sizing.fontSizeLabel",
|
|
47
|
-
"sizing.borderRadius"
|
|
48
|
-
];
|
|
49
|
-
var TIER2B_EXTENSION_PATHS = [
|
|
50
|
-
"colors.terminal",
|
|
51
|
-
"colors.chrome",
|
|
52
|
-
"colors.overlay",
|
|
53
|
-
"colors.accentHue"
|
|
54
|
-
];
|
|
55
|
-
var ALLOWED_BRAND_PATHS = [
|
|
56
|
-
...FROZEN_CORE_PATHS,
|
|
57
|
-
...TIER2B_EXTENSION_PATHS
|
|
58
|
-
];
|
|
59
|
-
var BRAND_REF_PREFIX = "$brand:";
|
|
60
|
-
function lintBrandPath(p) {
|
|
61
|
-
const path = p.startsWith(BRAND_REF_PREFIX) ? p.slice(BRAND_REF_PREFIX.length) : p;
|
|
62
|
-
return ALLOWED_BRAND_PATHS.includes(path);
|
|
63
|
-
}
|
|
64
|
-
function getByPath(obj, path) {
|
|
65
|
-
if (!obj || typeof obj !== "object") return void 0;
|
|
66
|
-
const parts = path.split(".");
|
|
67
|
-
let current = obj;
|
|
68
|
-
for (const part of parts) {
|
|
69
|
-
if (current === null || current === void 0 || typeof current !== "object") {
|
|
70
|
-
return void 0;
|
|
71
|
-
}
|
|
72
|
-
current = current[part];
|
|
73
|
-
}
|
|
74
|
-
return current;
|
|
75
|
-
}
|
|
76
|
-
function setByPath(obj, path, value) {
|
|
77
|
-
const parts = path.split(".");
|
|
78
|
-
let current = obj;
|
|
79
|
-
for (let i = 0; i < parts.length - 1; i += 1) {
|
|
80
|
-
const part = parts[i];
|
|
81
|
-
const next = current[part];
|
|
82
|
-
if (next === null || next === void 0 || typeof next !== "object") {
|
|
83
|
-
current[part] = {};
|
|
84
|
-
}
|
|
85
|
-
current = current[part];
|
|
86
|
-
}
|
|
87
|
-
current[parts[parts.length - 1]] = value;
|
|
88
|
-
}
|
|
89
|
-
function resolveTokenValue(binding, brandKit, opts) {
|
|
90
|
-
if (binding.brandKitPath) {
|
|
91
|
-
const v = brandKit ? getByPath(brandKit, binding.brandKitPath) : void 0;
|
|
92
|
-
if (typeof v === "string") return v;
|
|
93
|
-
const path = binding.brandKitPath;
|
|
94
|
-
if (opts?.onUnresolved) {
|
|
95
|
-
opts.onUnresolved({ path });
|
|
96
|
-
} else {
|
|
97
|
-
console.warn(`[render] unresolved brand binding path=${path}`);
|
|
98
|
-
}
|
|
99
|
-
if (isContrastCritical(path)) return NEUTRAL_RAMP.onDark;
|
|
100
|
-
}
|
|
101
|
-
return binding.fallback;
|
|
102
|
-
}
|
|
103
|
-
function applyBrandCascade(params, tokens, brandKit, opts) {
|
|
104
|
-
const result = JSON.parse(JSON.stringify(params));
|
|
105
|
-
for (const binding of tokens) {
|
|
106
|
-
const userValue = getByPath(result, binding.propPath);
|
|
107
|
-
if (userValue === void 0) {
|
|
108
|
-
setByPath(result, binding.propPath, resolveTokenValue(binding, brandKit, opts));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return result;
|
|
112
|
-
}
|
|
113
|
-
function resolveParams(userParams, propDefaults, tokens, brandKit, opts) {
|
|
114
|
-
const withDefaults = { ...propDefaults, ...userParams };
|
|
115
|
-
return applyBrandCascade(withDefaults, tokens, brandKit, opts);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export {
|
|
119
|
-
CONTRAST_CRITICAL_PATHS,
|
|
120
|
-
isContrastCritical,
|
|
121
|
-
FROZEN_CORE_PATHS,
|
|
122
|
-
TIER2B_EXTENSION_PATHS,
|
|
123
|
-
ALLOWED_BRAND_PATHS,
|
|
124
|
-
lintBrandPath,
|
|
125
|
-
resolveTokenValue,
|
|
126
|
-
applyBrandCascade,
|
|
127
|
-
resolveParams
|
|
128
|
-
};
|