@cueframe/kernel 0.2.57 → 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/THIRD_PARTY_NOTICES.md +111 -0
- 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/bind.d.ts +22 -0
- package/dist/_members/component-runtime/template/bind.d.ts.map +1 -0
- 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 +35 -0
- package/dist/_members/component-runtime/template/extract.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/index.d.ts +6 -0
- package/dist/_members/component-runtime/template/index.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/schema.d.ts +1581 -0
- package/dist/_members/component-runtime/template/schema.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/testing/fixtures.d.ts +33 -0
- package/dist/_members/component-runtime/template/testing/fixtures.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/testing/index.d.ts +3 -0
- package/dist/_members/component-runtime/template/testing/index.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts +53 -0
- package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts.map +1 -0
- 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 +2 -3
- package/dist/_members/composition/primitive-catalog/types.d.ts +3 -1
- 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 +11 -4
- package/dist/_members/composition/validators/brandKitBody.d.ts +543 -0
- 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 +42 -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 -2
- 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/backgrounds/dynamic-grid/config.d.ts +1 -1
- package/dist/_members/primitives/effects/blur/config.d.ts +1 -1
- package/dist/_members/primitives/effects/color-grade/config.d.ts +2 -2
- package/dist/_members/primitives/effects/grain/config.d.ts +3 -3
- package/dist/_members/primitives/effects/particles/config.d.ts +2 -2
- package/dist/_members/primitives/effects/stage-camera/config.d.ts +6 -6
- package/dist/_members/primitives/effects/vignette/config.d.ts +1 -1
- package/dist/_members/primitives/index.d.ts +1 -11
- package/dist/_members/primitives/layouts/flex-layout/config.d.ts +3 -3
- package/dist/_members/primitives/layouts/picture-in-picture/config.d.ts +2 -2
- package/dist/_members/primitives/lib/index.d.ts +1 -1
- package/dist/_members/primitives/lib/tokens.d.ts +0 -16
- package/dist/_members/primitives/lib/types.d.ts +1 -1
- package/dist/_members/primitives/scenes/device-showcase/config.d.ts +7 -7
- package/dist/_members/primitives/text/cinematic-title/config.d.ts +3 -3
- package/dist/_members/primitives/text/karaoke/config.d.ts +1 -1
- package/dist/_members/primitives/text/kinetic-type/config.d.ts +3 -3
- package/dist/_members/primitives/text/stat-counter/config.d.ts +1 -1
- package/dist/_members/primitives/text/text-effect/config.d.ts +2 -2
- package/dist/_members/primitives/transitions/grid-pixelate-wipe/config.d.ts +1 -1
- package/dist/_members/primitives/ui-blocks/badge-pop/config.d.ts +3 -3
- package/dist/_members/primitives/ui-blocks/terminal-simulator/config.d.ts +2 -2
- package/dist/_members/primitives/ui-blocks/toast-notification/config.d.ts +2 -2
- 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 -6
- 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 -218
- 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-JPMVNMF3.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-6KZCXAYL.js +257 -0
- 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-CEO47DIE.js +199 -0
- package/dist/chunk-CIOUDOGN.js +12 -0
- package/dist/{chunk-BDFAA747.js → chunk-DCKADD5B.js} +1 -1
- package/dist/{chunk-7AZLFN26.js → chunk-EISHFHU5.js} +20 -20
- 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-VXGA7LQQ.js → chunk-IUJABAG2.js} +14 -10
- package/dist/{chunk-MZB4ZXYW.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-NECN7TT4.js +367 -0
- package/dist/{chunk-4ZE564YF.js → chunk-NM7NWXGF.js} +0 -146
- package/dist/{chunk-KSRFYFUZ.js → chunk-NY6EI5YW.js} +4 -4
- package/dist/{chunk-4PV3UYJF.js → chunk-ONSGT6UJ.js} +257 -226
- 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-N54EGUVM.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-Z4G3VM3H.js → chunk-X2RTLS6K.js} +2 -23
- package/dist/chunk-XHMKPTHV.js +20 -0
- package/dist/{chunk-R7G2PNEZ.js → chunk-XOT2VWCO.js} +13 -28
- package/dist/{chunk-E63UEO5C.js → chunk-XQGQ5EFS.js} +16 -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.d.ts +1 -0
- package/dist/component-runtime/template/testing.js +383 -0
- package/dist/component-runtime/template.d.ts +1 -0
- package/dist/component-runtime/template.js +251 -0
- package/dist/component-runtime.js +27 -28
- package/dist/compose.js +22 -39
- 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 -5
- package/dist/composition/primitive-catalog.js +4 -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.d.ts +1 -0
- package/dist/composition/validators/brand-kit-body.js +18 -0
- package/dist/composition/validators/graphic-kinds.js +1 -1
- package/dist/composition/validators.js +16 -69
- package/dist/composition-ops.js +17 -15
- package/dist/composition.js +21 -83
- 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 +8 -16
- 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 -30
- package/dist/mcp/wire-schema.js +13 -2
- package/dist/mcp.js +11 -33
- 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 +5 -5
- 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 +18 -32
- 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-XI5MULKD.js +71 -0
- package/package.json +51 -61
- 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 -27
- 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 -30
- package/dist/chunk-AXRSCHQX.js +0 -661
- package/dist/chunk-DV7ZFVL4.js +0 -116
- package/dist/chunk-GF52TW4I.js +0 -51
- package/dist/chunk-JOURGVOR.js +0 -27
- package/dist/chunk-LBN5KQC6.js +0 -384
- package/dist/chunk-OSMXQV5V.js +0 -18
- package/dist/chunk-QDBVYZSF.js +0 -128
- package/dist/chunk-RERR5JLM.js +0 -197
- 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-6HPUO36M.js +0 -15
- 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-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
|
-
};
|
package/dist/chunk-RERR5JLM.js
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPOSE_PLANNER_TOOLS,
|
|
3
|
-
COMPOSE_ROLE_TOOLS,
|
|
4
|
-
dispatchComposeRoleTool
|
|
5
|
-
} from "./chunk-LBN5KQC6.js";
|
|
6
|
-
|
|
7
|
-
// ../authoring/src/agent/buildTools.ts
|
|
8
|
-
import { tool } from "ai";
|
|
9
|
-
function formatToolResult(name, result) {
|
|
10
|
-
if (!COMPOSE_ROLE_TOOLS[name]?.metadata.imageResponse) {
|
|
11
|
-
return typeof result === "string" ? result : JSON.stringify(result);
|
|
12
|
-
}
|
|
13
|
-
if (Array.isArray(result)) {
|
|
14
|
-
const images = result;
|
|
15
|
-
return {
|
|
16
|
-
type: "content",
|
|
17
|
-
value: images.map((b64) => ({
|
|
18
|
-
type: "image-data",
|
|
19
|
-
mediaType: "image/jpeg",
|
|
20
|
-
data: b64
|
|
21
|
-
}))
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return typeof result === "string" ? result : JSON.stringify(result);
|
|
25
|
-
}
|
|
26
|
-
var DEDUP_MAX = 3;
|
|
27
|
-
function makeCallKey(name, args) {
|
|
28
|
-
return `${name}:${JSON.stringify(args, Object.keys(args).sort())}`;
|
|
29
|
-
}
|
|
30
|
-
var APPROVAL_TIMEOUT_MS = 2 * 60 * 1e3;
|
|
31
|
-
function buildToolsFromSchemas(params) {
|
|
32
|
-
const capabilities = params.capabilities;
|
|
33
|
-
const toolOpts = {
|
|
34
|
-
...params.toolOptions ?? {},
|
|
35
|
-
...params.cachedContext ? { cachedContext: params.cachedContext } : {},
|
|
36
|
-
onProgress: params.onProgress
|
|
37
|
-
};
|
|
38
|
-
const recentCalls = /* @__PURE__ */ new Map();
|
|
39
|
-
const tools = {};
|
|
40
|
-
for (const [name, schema] of Object.entries(COMPOSE_ROLE_TOOLS)) {
|
|
41
|
-
if (params.allowedTools && !params.allowedTools.includes(name)) continue;
|
|
42
|
-
const meta = schema.metadata;
|
|
43
|
-
const needsApproval = params.approvalRequired?.has(name) ?? false;
|
|
44
|
-
tools[name] = tool({
|
|
45
|
-
description: schema.description,
|
|
46
|
-
inputSchema: schema.schema,
|
|
47
|
-
execute: async (args) => {
|
|
48
|
-
const toolCallId = `tc_${crypto.randomUUID().slice(0, 8)}`;
|
|
49
|
-
if (!meta.dedupExempt) {
|
|
50
|
-
const callKey = makeCallKey(name, args);
|
|
51
|
-
const callCount = (recentCalls.get(callKey) ?? 0) + 1;
|
|
52
|
-
recentCalls.set(callKey, callCount);
|
|
53
|
-
if (callCount >= DEDUP_MAX) {
|
|
54
|
-
const msg = `Tool "${name}" called ${callCount} times with identical arguments. This looks like a loop \u2014 try a different approach or different arguments.`;
|
|
55
|
-
params.onProgress({
|
|
56
|
-
type: "tool-result",
|
|
57
|
-
agent: "router",
|
|
58
|
-
toolName: name,
|
|
59
|
-
success: false,
|
|
60
|
-
message: msg,
|
|
61
|
-
toolCallId,
|
|
62
|
-
timestamp: Date.now()
|
|
63
|
-
});
|
|
64
|
-
return JSON.stringify({ error: msg });
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
params.onProgress({
|
|
68
|
-
type: "tool-call",
|
|
69
|
-
agent: "router",
|
|
70
|
-
toolName: name,
|
|
71
|
-
args,
|
|
72
|
-
toolCallId,
|
|
73
|
-
timestamp: Date.now()
|
|
74
|
-
});
|
|
75
|
-
if (needsApproval && params.requestApproval) {
|
|
76
|
-
const approved = await Promise.race([
|
|
77
|
-
params.requestApproval(toolCallId, name, args),
|
|
78
|
-
new Promise(
|
|
79
|
-
(resolve) => setTimeout(() => resolve(false), APPROVAL_TIMEOUT_MS)
|
|
80
|
-
)
|
|
81
|
-
]);
|
|
82
|
-
if (!approved) {
|
|
83
|
-
const msg = "User denied this tool call (or approval timed out).";
|
|
84
|
-
params.onProgress({
|
|
85
|
-
type: "tool-result",
|
|
86
|
-
agent: "router",
|
|
87
|
-
toolName: name,
|
|
88
|
-
success: false,
|
|
89
|
-
message: msg,
|
|
90
|
-
toolCallId,
|
|
91
|
-
timestamp: Date.now()
|
|
92
|
-
});
|
|
93
|
-
return JSON.stringify({ error: msg });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
try {
|
|
97
|
-
const result = await dispatchComposeRoleTool(name, args, capabilities, toolOpts);
|
|
98
|
-
params.onProgress({
|
|
99
|
-
type: "tool-result",
|
|
100
|
-
agent: "router",
|
|
101
|
-
toolName: name,
|
|
102
|
-
success: true,
|
|
103
|
-
message: typeof result === "string" ? result.slice(0, 200) : JSON.stringify(result).slice(0, 200),
|
|
104
|
-
toolCallId,
|
|
105
|
-
timestamp: Date.now()
|
|
106
|
-
});
|
|
107
|
-
return result;
|
|
108
|
-
} catch (err) {
|
|
109
|
-
const errMsg = err instanceof Error ? err.message : String(err);
|
|
110
|
-
params.onProgress({
|
|
111
|
-
type: "tool-result",
|
|
112
|
-
agent: "router",
|
|
113
|
-
toolName: name,
|
|
114
|
-
success: false,
|
|
115
|
-
message: errMsg,
|
|
116
|
-
toolCallId,
|
|
117
|
-
timestamp: Date.now()
|
|
118
|
-
});
|
|
119
|
-
return JSON.stringify({ error: errMsg });
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
toModelOutput: ({ output }) => {
|
|
123
|
-
const formatted = formatToolResult(name, output);
|
|
124
|
-
return typeof formatted === "string" ? { type: "text", value: formatted } : formatted;
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
return tools;
|
|
129
|
-
}
|
|
130
|
-
var buildDirectorTools = buildToolsFromSchemas;
|
|
131
|
-
var buildPlannerTools = (p) => {
|
|
132
|
-
const { toolNames = COMPOSE_PLANNER_TOOLS, ...rest } = p;
|
|
133
|
-
return buildToolsFromSchemas({ ...rest, allowedTools: [...toolNames] });
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
// ../authoring/src/agent/errors.ts
|
|
137
|
-
import { APICallError, TypeValidationError } from "ai";
|
|
138
|
-
var BODY_EXCERPT = 200;
|
|
139
|
-
function providerMessage(responseBody) {
|
|
140
|
-
if (!responseBody) return void 0;
|
|
141
|
-
try {
|
|
142
|
-
const body = JSON.parse(responseBody);
|
|
143
|
-
const msg = body?.error?.message ?? body?.message;
|
|
144
|
-
return msg == null ? void 0 : String(msg);
|
|
145
|
-
} catch {
|
|
146
|
-
return void 0;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function bodyExcerpt(responseBody) {
|
|
150
|
-
const trimmed = responseBody?.trim();
|
|
151
|
-
if (!trimmed) return void 0;
|
|
152
|
-
return trimmed.replace(/\s+/g, " ").slice(0, BODY_EXCERPT);
|
|
153
|
-
}
|
|
154
|
-
function extractProviderError(err) {
|
|
155
|
-
if (APICallError.isInstance(err)) {
|
|
156
|
-
const status = err.statusCode;
|
|
157
|
-
if (status === 401 || status === 403) {
|
|
158
|
-
return "Authentication failed. Check your API key or gateway configuration in Settings.";
|
|
159
|
-
}
|
|
160
|
-
if (status === 429) {
|
|
161
|
-
return "API rate limit or quota exceeded. Try again later.";
|
|
162
|
-
}
|
|
163
|
-
const detail = providerMessage(err.responseBody);
|
|
164
|
-
if (status === 413 || status === 400) {
|
|
165
|
-
if (detail) return detail.slice(0, 200);
|
|
166
|
-
}
|
|
167
|
-
const where = status === void 0 ? "" : ` (HTTP ${status})`;
|
|
168
|
-
const evidence = detail ?? bodyExcerpt(err.responseBody);
|
|
169
|
-
return (evidence ? `${err.message}${where}: ${evidence}` : `${err.message}${where}`).slice(
|
|
170
|
-
0,
|
|
171
|
-
300
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
if (TypeValidationError.isInstance(err)) {
|
|
175
|
-
return "Invalid response from AI provider. The provider may be misconfigured or unavailable.";
|
|
176
|
-
}
|
|
177
|
-
const raw = err instanceof Error ? err.message : String(err);
|
|
178
|
-
if (raw.includes("API key not valid")) {
|
|
179
|
-
return "API key not valid. Check your gateway or provider configuration in Settings.";
|
|
180
|
-
}
|
|
181
|
-
return raw.slice(0, 300);
|
|
182
|
-
}
|
|
183
|
-
var ZERO_USAGE = {
|
|
184
|
-
inputTokens: 0,
|
|
185
|
-
outputTokens: 0,
|
|
186
|
-
totalTokens: 0,
|
|
187
|
-
inputTokenDetails: { noCacheTokens: void 0, cacheReadTokens: void 0, cacheWriteTokens: void 0 },
|
|
188
|
-
outputTokenDetails: { textTokens: void 0, reasoningTokens: void 0 }
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export {
|
|
192
|
-
buildToolsFromSchemas,
|
|
193
|
-
buildDirectorTools,
|
|
194
|
-
buildPlannerTools,
|
|
195
|
-
extractProviderError,
|
|
196
|
-
ZERO_USAGE
|
|
197
|
-
};
|
package/dist/chunk-U3JPILZS.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// ../data-models/foundation/src/codes/index.ts
|
|
2
|
-
var InvariantError = class extends Error {
|
|
3
|
-
code;
|
|
4
|
-
details;
|
|
5
|
-
constructor(violation) {
|
|
6
|
-
super(`${violation.code}: ${violation.message}`);
|
|
7
|
-
this.code = violation.code;
|
|
8
|
-
this.details = violation.details;
|
|
9
|
-
this.name = "InvariantError";
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
InvariantError
|
|
15
|
-
};
|