@cueframe/kernel 0.1.3 → 0.2.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/validators/contextFile.d.ts +3 -21
- package/dist/_members/account-model/validators/conversation.d.ts +12 -42
- package/dist/_members/account-model/validators/dashboardInsight.d.ts +3 -17
- package/dist/_members/account-model/validators/sessionToken.d.ts +10 -36
- package/dist/_members/account-model/validators/uploadToken.d.ts +11 -21
- package/dist/_members/account-model/validators/userSettings.d.ts +3 -13
- package/dist/_members/account-model/validators/workingComposition.d.ts +3 -19
- package/dist/_members/authoring/agent/errors.d.ts +8 -0
- package/dist/_members/authoring/capabilities.d.ts +0 -9
- package/dist/_members/authoring/index.d.ts +1 -1
- package/dist/_members/authoring/models/defaultModels.d.ts +12 -0
- package/dist/_members/authoring/models/modelFactory.d.ts +1 -0
- package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +5 -7
- package/dist/_members/authoring/types.d.ts +1 -2
- package/dist/_members/cloud-import/CloudImportService.d.ts +3 -4
- package/dist/_members/cloud-import/ImportProvider.d.ts +3 -7
- package/dist/_members/cloud-import/cloudConfig.d.ts +0 -6
- package/dist/_members/cloud-import/index.d.ts +2 -4
- package/dist/_members/component-runtime/assetServer.d.ts +18 -0
- package/dist/_members/component-runtime/assetServer.d.ts.map +1 -0
- package/dist/_members/component-runtime/bake.d.ts +12 -0
- package/dist/_members/component-runtime/bake.d.ts.map +1 -0
- package/dist/_members/component-runtime/browserFirewall.d.ts +21 -0
- package/dist/_members/component-runtime/browserFirewall.d.ts.map +1 -0
- package/dist/_members/component-runtime/browserIdentity.d.ts +14 -0
- package/dist/_members/component-runtime/browserIdentity.d.ts.map +1 -0
- package/dist/_members/component-runtime/browserOptions.d.ts +8 -0
- package/dist/_members/component-runtime/browserOptions.d.ts.map +1 -0
- package/dist/_members/component-runtime/canonicalIdentity.d.ts +14 -0
- package/dist/_members/component-runtime/canonicalIdentity.d.ts.map +1 -0
- package/dist/_members/component-runtime/contracts.d.ts +443 -0
- package/dist/_members/component-runtime/contracts.d.ts.map +1 -0
- package/dist/_members/component-runtime/determinism.d.ts +18 -0
- package/dist/_members/component-runtime/determinism.d.ts.map +1 -0
- package/dist/_members/component-runtime/fixtures/webgpuTiledRefraction.d.ts +9 -0
- package/dist/_members/component-runtime/fixtures/webgpuTiledRefraction.d.ts.map +1 -0
- package/dist/_members/component-runtime/identity.d.ts +16 -0
- package/dist/_members/component-runtime/identity.d.ts.map +1 -0
- package/dist/_members/component-runtime/importPolicy.d.ts +3 -0
- package/dist/_members/component-runtime/importPolicy.d.ts.map +1 -0
- package/dist/_members/component-runtime/index.d.ts +11 -0
- package/dist/_members/component-runtime/index.d.ts.map +1 -0
- package/dist/_members/component-runtime/outputVerifier.d.ts +29 -0
- package/dist/_members/component-runtime/outputVerifier.d.ts.map +1 -0
- package/dist/_members/{render-harness/localRender.d.ts → component-runtime/render.d.ts} +25 -15
- package/dist/_members/component-runtime/render.d.ts.map +1 -0
- package/dist/_members/component-runtime/sourceWorkspace.d.ts +10 -0
- package/dist/_members/component-runtime/sourceWorkspace.d.ts.map +1 -0
- package/dist/_members/compose/index.d.ts +0 -5
- package/dist/_members/composition/graphics-plan/schemas.d.ts +299 -1309
- package/dist/_members/composition/primitive-catalog/index.d.ts +2 -2
- package/dist/_members/composition/primitive-catalog/projection.d.ts +2 -15
- package/dist/_members/composition/projection/behind-readiness.d.ts +4 -2
- package/dist/_members/composition/reframe/index.d.ts +56 -528
- package/dist/_members/composition/validators/brandKit.d.ts +251 -1252
- package/dist/_members/composition/validators/composePlan.d.ts +106 -818
- package/dist/_members/composition/validators/composition.d.ts +1328 -5886
- package/dist/_members/composition/validators/font.d.ts +35 -91
- package/dist/_members/composition/validators/index.d.ts +1 -0
- package/dist/_members/composition/validators/opaqueId.d.ts +13 -0
- package/dist/_members/composition/validators/project.d.ts +17 -52
- package/dist/_members/composition/validators/registry.d.ts +53 -135
- package/dist/_members/composition/validators/render.d.ts +811 -7443
- package/dist/_members/composition/validators/session.d.ts +41 -99
- package/dist/_members/composition/validators/webhook.d.ts +25 -60
- package/dist/_members/composition-ops/alphaLayers.d.ts +3 -2
- package/dist/_members/composition-ops/index.d.ts +412 -4348
- package/dist/_members/core/render/compositionAudioAndDepth.d.ts +6 -0
- package/dist/_members/core/render/compositionRender.d.ts +3 -4
- package/dist/_members/core/render/compositionValidation.d.ts +4 -0
- package/dist/_members/core/render/index.d.ts +2 -2
- package/dist/_members/core/render/types.d.ts +16 -8
- package/dist/_members/director/ai-sdk/messages.d.ts +67 -217
- package/dist/_members/director/domain/chat.d.ts +70 -293
- package/dist/_members/director/testing/contract.d.ts +10 -10
- package/dist/_members/errors/registry.d.ts +201 -3
- package/dist/_members/foundation/primitives/index.d.ts +1 -1
- package/dist/_members/mcp/adapter.d.ts +22 -0
- package/dist/_members/mcp/burnedNames.d.ts +0 -1
- package/dist/_members/mcp/core.d.ts +6 -3
- package/dist/_members/mcp/curation.d.ts +3 -34
- package/dist/_members/mcp/curationTypes.d.ts +34 -0
- package/dist/_members/mcp/generated/harness.d.ts +1 -1
- package/dist/_members/mcp/generated/operations.d.ts +12 -2
- package/dist/_members/mcp/main.d.ts +1 -0
- package/dist/_members/mcp/mediaContextFormat.d.ts +4 -0
- package/dist/_members/mcp/prompts.d.ts +1 -1
- package/dist/_members/mcp/query.d.ts +4 -0
- package/dist/_members/mcp/resources.d.ts +1 -1
- package/dist/_members/mcp/server.d.ts +1 -2
- package/dist/_members/mcp/wireSchema.d.ts +13 -0
- package/dist/_members/media-model/api.d.ts +123 -727
- package/dist/_members/media-model/generation.d.ts +141 -228
- package/dist/_members/media-model/index.d.ts +1 -0
- package/dist/_members/media-model/opaqueId.d.ts +10 -0
- package/dist/_members/plane/contract.d.ts +16 -19
- package/dist/_members/primitives/backgrounds/animated-bar-chart/config.d.ts +3 -27
- package/dist/_members/primitives/backgrounds/animated-line-chart/config.d.ts +2 -26
- package/dist/_members/primitives/backgrounds/dither-gradient-bg/config.d.ts +1 -17
- package/dist/_members/primitives/backgrounds/dynamic-grid/config.d.ts +6 -14
- package/dist/_members/primitives/backgrounds/ecosystem-constellation/config.d.ts +1 -11
- package/dist/_members/primitives/backgrounds/infinite-marquee/config.d.ts +1 -21
- package/dist/_members/primitives/backgrounds/mesh-gradient-bg/config.d.ts +2 -12
- package/dist/_members/primitives/backgrounds/perspective-marquee/config.d.ts +2 -26
- package/dist/_members/primitives/backgrounds/silk-flow-bg/config.d.ts +2 -22
- package/dist/_members/primitives/backgrounds/vector-field/config.d.ts +1 -17
- package/dist/_members/primitives/backgrounds/volumetric-rays/config.d.ts +1 -19
- package/dist/_members/primitives/effects/blur/config.d.ts +5 -14
- package/dist/_members/primitives/effects/color-grade/config.d.ts +10 -18
- package/dist/_members/primitives/effects/grain/config.d.ts +9 -12
- package/dist/_members/primitives/effects/parallax/config.d.ts +8 -12
- package/dist/_members/primitives/effects/particles/config.d.ts +9 -20
- package/dist/_members/primitives/effects/pulsing-indicator/config.d.ts +1 -13
- package/dist/_members/primitives/effects/spotlight-card/config.d.ts +1 -25
- package/dist/_members/primitives/effects/spring-pop-in/config.d.ts +1 -15
- package/dist/_members/primitives/effects/success-confetti/config.d.ts +2 -26
- package/dist/_members/primitives/effects/vignette/config.d.ts +5 -12
- package/dist/_members/primitives/hero-text/config.d.ts +9 -24
- package/dist/_members/primitives/layouts/chat-to-preview-layout/config.d.ts +1 -11
- package/dist/_members/primitives/layouts/infinite-bento-pan/config.d.ts +1 -9
- package/dist/_members/primitives/layouts/letterbox/config.d.ts +1 -9
- package/dist/_members/primitives/layouts/photo-grid/config.d.ts +2 -12
- package/dist/_members/primitives/layouts/picture-in-picture/config.d.ts +7 -12
- package/dist/_members/primitives/layouts/split-screen/config.d.ts +1 -7
- package/dist/_members/primitives/layouts/staggered-bento-grid/config.d.ts +3 -51
- package/dist/_members/primitives/lib/schema.d.ts +1 -1
- package/dist/_members/primitives/scenes/changelog-bite/config.d.ts +7 -24
- package/dist/_members/primitives/scenes/hero-device-assemble/config.d.ts +5 -14
- package/dist/_members/primitives/scenes/landing-code-showcase/config.d.ts +1 -7
- package/dist/_members/primitives/scenes/live-code-compilation/config.d.ts +1 -7
- package/dist/_members/primitives/scenes/pricing-tier-focus/config.d.ts +2 -12
- package/dist/_members/primitives/scenes/product-launch-trailer/config.d.ts +1 -19
- package/dist/_members/primitives/scenes/terminal-to-browser-deploy/config.d.ts +1 -11
- package/dist/_members/primitives/text/blur-reveal/config.d.ts +1 -17
- package/dist/_members/primitives/text/cinematic-title/config.d.ts +13 -73
- package/dist/_members/primitives/text/inline-highlight/config.d.ts +1 -21
- package/dist/_members/primitives/text/karaoke/config.d.ts +10 -93
- package/dist/_members/primitives/text/kinetic-type/config.d.ts +14 -49
- package/dist/_members/primitives/text/lower-third/config.d.ts +8 -70
- package/dist/_members/primitives/text/marker-highlight/config.d.ts +1 -23
- package/dist/_members/primitives/text/masked-slide-reveal/config.d.ts +1 -17
- package/dist/_members/primitives/text/matrix-decode/config.d.ts +1 -19
- package/dist/_members/primitives/text/quote-card/config.d.ts +1 -11
- package/dist/_members/primitives/text/rgb-glitch-text/config.d.ts +1 -23
- package/dist/_members/primitives/text/shimmer-sweep/config.d.ts +1 -17
- package/dist/_members/primitives/text/slot-machine-roll/config.d.ts +1 -17
- package/dist/_members/primitives/text/staggered-fade-up/config.d.ts +2 -24
- package/dist/_members/primitives/text/stat-counter/config.d.ts +6 -20
- package/dist/_members/primitives/text/strikethrough-replace/config.d.ts +1 -19
- package/dist/_members/primitives/text/text-effect/config.d.ts +10 -15
- package/dist/_members/primitives/text/text-fade-replace/config.d.ts +1 -17
- package/dist/_members/primitives/text/token-stream/config.d.ts +1 -11
- package/dist/_members/primitives/text/tracking-in/config.d.ts +1 -19
- package/dist/_members/primitives/text/typewriter/config.d.ts +1 -21
- package/dist/_members/primitives/transitions/chromatic-aberration-wipe/config.d.ts +5 -8
- package/dist/_members/primitives/transitions/code-diff-wipe/config.d.ts +1 -21
- package/dist/_members/primitives/transitions/directional-wipe/config.d.ts +7 -6
- package/dist/_members/primitives/transitions/frosted-glass-wipe/config.d.ts +1 -5
- package/dist/_members/primitives/transitions/glitch-cut/config.d.ts +1 -7
- package/dist/_members/primitives/transitions/grid-pixelate-wipe/config.d.ts +6 -12
- package/dist/_members/primitives/transitions/ink-wipe/config.d.ts +7 -8
- package/dist/_members/primitives/transitions/kinetic-type-mask/config.d.ts +1 -7
- package/dist/_members/primitives/transitions/light-leak/config.d.ts +1 -7
- package/dist/_members/primitives/transitions/luma-matte/config.d.ts +6 -6
- package/dist/_members/primitives/transitions/morph/config.d.ts +5 -6
- package/dist/_members/primitives/transitions/spatial-push/config.d.ts +7 -6
- package/dist/_members/primitives/transitions/swipe-transition-wipe/config.d.ts +5 -10
- package/dist/_members/primitives/transitions/zoom-through/config.d.ts +2 -30
- package/dist/_members/primitives/transitions/zoom-through-transition/config.d.ts +1 -13
- package/dist/_members/primitives/ui-blocks/ai-generate-overlay/config.d.ts +1 -29
- package/dist/_members/primitives/ui-blocks/ai-generation-canvas/config.d.ts +1 -11
- package/dist/_members/primitives/ui-blocks/badge-pop/config.d.ts +8 -16
- package/dist/_members/primitives/ui-blocks/before-after-slider/config.d.ts +1 -11
- package/dist/_members/primitives/ui-blocks/benchmark-bars/config.d.ts +3 -73
- package/dist/_members/primitives/ui-blocks/bounding-box-selector/config.d.ts +1 -15
- package/dist/_members/primitives/ui-blocks/browser-flow/config.d.ts +1 -7
- package/dist/_members/primitives/ui-blocks/brush-stroke-simulator/config.d.ts +1 -21
- package/dist/_members/primitives/ui-blocks/chat-exchange/config.d.ts +1 -15
- package/dist/_members/primitives/ui-blocks/code-accordion/config.d.ts +2 -26
- package/dist/_members/primitives/ui-blocks/context-meter/config.d.ts +1 -13
- package/dist/_members/primitives/ui-blocks/cursor-flow/config.d.ts +2 -66
- package/dist/_members/primitives/ui-blocks/dashboard-populate/config.d.ts +1 -9
- package/dist/_members/primitives/ui-blocks/data-flow-pipes/config.d.ts +3 -97
- package/dist/_members/primitives/ui-blocks/device-mockup-zoom/config.d.ts +5 -14
- package/dist/_members/primitives/ui-blocks/drag-and-drop-flow/config.d.ts +1 -13
- package/dist/_members/primitives/ui-blocks/eval-scorecard/config.d.ts +2 -36
- package/dist/_members/primitives/ui-blocks/glass-code-block/config.d.ts +1 -23
- package/dist/_members/primitives/ui-blocks/image-expand-to-fullscreen/config.d.ts +3 -113
- package/dist/_members/primitives/ui-blocks/metric-gauge/config.d.ts +2 -34
- package/dist/_members/primitives/ui-blocks/morphing-modal/config.d.ts +3 -113
- package/dist/_members/primitives/ui-blocks/pipeline-journey/config.d.ts +1 -9
- package/dist/_members/primitives/ui-blocks/progress-steps/config.d.ts +6 -37
- package/dist/_members/primitives/ui-blocks/reasoning-trace/config.d.ts +2 -12
- package/dist/_members/primitives/ui-blocks/simulated-cursor/config.d.ts +2 -54
- package/dist/_members/primitives/ui-blocks/terminal-simulator/config.d.ts +9 -48
- package/dist/_members/primitives/ui-blocks/toast-notification/config.d.ts +7 -20
- package/dist/_members/primitives/ui-blocks/tool-call-stack/config.d.ts +2 -42
- package/dist/_members/primitives/ui-blocks/tool-menu-slide-in/config.d.ts +1 -19
- package/dist/_members/primitives/ui-blocks/visual-docs-snippet/config.d.ts +3 -71
- package/dist/_members/primitives/ui-blocks/voice-waveform/config.d.ts +5 -14
- package/dist/_members/primitives/workspace.d.ts +1 -5
- package/dist/_members/render-harness/cardAssetAdmission.d.ts +3 -0
- package/dist/_members/render-harness/cardAssetAdmission.d.ts.map +1 -0
- package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
- package/dist/_members/render-harness/index.d.ts +1 -5
- package/dist/_members/render-harness/index.d.ts.map +1 -1
- package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
- package/dist/_members/render-harness/remotion-runtime.d.ts +20 -0
- package/dist/_members/render-harness/renderInputAssets.d.ts +2 -1
- package/dist/_members/render-harness/renderInputAssets.d.ts.map +1 -1
- package/dist/_members/render-harness/resolveAssets.d.ts.map +1 -1
- package/dist/authoring/build-tools.js +8 -8
- package/dist/authoring/context.js +5 -5
- package/dist/authoring/models.js +3 -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 +28 -27
- package/dist/{chunk-AW57IWNW.js → chunk-4FOOBSEE.js} +53 -3
- package/dist/{chunk-KFECIHED.js → chunk-4JRUGT2Y.js} +41 -106
- package/dist/{chunk-FMODQD5P.js → chunk-4ZE564YF.js} +16 -9
- package/dist/chunk-5OTQ7M43.js +718 -0
- package/dist/{chunk-GMD33ZD7.js → chunk-6ID2J64H.js} +1 -1
- package/dist/{chunk-NQSMEUJ6.js → chunk-6XI57FZZ.js} +362 -212
- package/dist/chunk-7KEUL3FI.js +500 -0
- package/dist/{chunk-GIA2SVVB.js → chunk-AD5HWBCE.js} +9 -4
- package/dist/{chunk-DCVJWGIA.js → chunk-C5SEPOWD.js} +165 -173
- package/dist/chunk-CGHTMZNC.js +6 -0
- package/dist/chunk-DHKQ47Q6.js +57 -0
- package/dist/{chunk-RP4SXXLJ.js → chunk-DQKSCHFC.js} +1 -1
- package/dist/{chunk-TO4BFNLJ.js → chunk-EEXCDFY5.js} +1 -1
- package/dist/{chunk-ZT7MHRQU.js → chunk-GCQ7Z7S7.js} +15 -5
- package/dist/{chunk-TPA6PYN2.js → chunk-GEGRJKKO.js} +25 -10
- package/dist/chunk-HHFDHJ3I.js +392 -0
- package/dist/{chunk-ICSZF37W.js → chunk-IBMJ33EL.js} +3 -3
- package/dist/{chunk-TFGKUWHY.js → chunk-IHFREGFA.js} +24 -22
- package/dist/chunk-IJ7PVJTK.js +114 -0
- package/dist/{chunk-UQSOS726.js → chunk-KKEY5MIW.js} +8 -8
- package/dist/{chunk-ZPRBGW4Y.js → chunk-LNBVTDFR.js} +1 -1
- package/dist/chunk-LQUWKBST.js +195 -0
- package/dist/chunk-M2TLRXEO.js +41 -0
- package/dist/{chunk-SDCEJAO2.js → chunk-NOEBAV2G.js} +58 -2
- package/dist/{chunk-DL7WYISQ.js → chunk-QBKDEO7J.js} +1601 -1435
- package/dist/chunk-RFXR7ATW.js +244 -0
- package/dist/chunk-SIAXP3ZO.js +131 -0
- package/dist/{chunk-MCBUX5XV.js → chunk-SLN5UKLT.js} +2 -2
- package/dist/{chunk-GH27OS5S.js → chunk-VCBLGZQQ.js} +19 -4
- package/dist/{chunk-TMB5AY6Q.js → chunk-XHUYWVYK.js} +1 -1
- package/dist/{chunk-BZZTVOGG.js → chunk-XVBOSPZI.js} +15 -17
- package/dist/{chunk-HBVAZXYO.js → chunk-Y3QGYASW.js} +14 -14
- package/dist/{chunk-DWLNPNC4.js → chunk-ZCAQHNPI.js} +1 -1
- package/dist/{chunk-DJW3UGBH.js → chunk-ZN6P3KOJ.js} +90 -39
- package/dist/chunk-ZZRBKGDA.js +109 -0
- package/dist/cloud-import.js +20 -116
- package/dist/component-runtime/browserOptions.d.ts +1 -0
- package/dist/component-runtime/browserOptions.js +7 -0
- package/dist/component-runtime/contracts.d.ts +1 -0
- package/dist/component-runtime/contracts.js +49 -0
- package/dist/component-runtime/identity/browser.d.ts +1 -0
- package/dist/component-runtime/identity/browser.js +35 -0
- package/dist/component-runtime/identity.d.ts +1 -0
- package/dist/component-runtime/identity.js +21 -0
- package/dist/component-runtime/importPolicy.d.ts +1 -0
- package/dist/component-runtime/importPolicy.js +10 -0
- package/dist/component-runtime/render.d.ts +1 -0
- package/dist/component-runtime/render.js +34 -0
- package/dist/component-runtime.d.ts +1 -0
- package/dist/component-runtime.js +132 -0
- package/dist/compose.js +16 -30
- package/dist/composition/graphics-plan.js +1 -1
- package/dist/composition/ops.js +4 -4
- package/dist/composition/primitive-catalog.js +1 -3
- package/dist/composition/projection.js +2 -2
- package/dist/composition/timeline.js +2 -2
- package/dist/composition/validators.js +4 -2
- package/dist/composition-ops.js +23 -17
- package/dist/composition.js +17 -15
- package/dist/{context-JLLU3MYD.js → context-4GSDBFT3.js} +5 -5
- package/dist/core/render.js +8 -8
- package/dist/core/select.js +2 -2
- package/dist/core.js +6 -6
- package/dist/director/ai-sdk.js +3 -3
- package/dist/director/domain.js +2 -2
- package/dist/director.js +3 -3
- package/dist/errors.js +1 -1
- package/dist/mcp/adapter.js +33 -33
- package/dist/mcp/core.js +1 -1
- package/dist/mcp/curation.js +5 -1
- package/dist/mcp/executor.js +1 -1
- package/dist/mcp/server.js +4 -6
- package/dist/mcp/wire-schema.d.ts +1 -0
- package/dist/mcp/wire-schema.js +37 -0
- package/dist/mcp.js +6 -29
- package/dist/media-model/media-kind.js +98 -9
- package/dist/media-model.js +83 -77
- package/dist/nle-export.js +15 -24
- package/dist/plane/conformance.js +1 -1
- package/dist/plane/contract.js +7 -0
- package/dist/plane.js +1 -1
- package/dist/primitives/effects.js +1 -1
- package/dist/primitives/hero-text.js +2 -2
- package/dist/primitives/layouts.js +1 -1
- package/dist/primitives/lib/index.js +18 -18
- package/dist/primitives/lib/schema.js +1 -1
- package/dist/primitives/lib.js +18 -18
- package/dist/primitives/scenes.js +2 -2
- package/dist/primitives/text.js +2 -2
- package/dist/primitives.js +10 -10
- package/dist/render-harness/cardAssetAdmission.d.ts +1 -0
- package/dist/render-harness/cardAssetAdmission.js +8 -0
- package/dist/render-harness/renderInputAssets.d.ts +1 -0
- package/dist/render-harness/renderInputAssets.js +17 -0
- package/dist/render-harness.js +44 -572
- package/package.json +69 -61
- package/dist/_members/authoring/prompts/designReviewerPrompt.d.ts +0 -2
- package/dist/_members/authoring/transpileComponent.d.ts +0 -6
- package/dist/_members/authoring/transpileHelper.d.ts +0 -8
- package/dist/_members/cloud-import/MediaItemPreprocessor.d.ts +0 -18
- package/dist/_members/cloud-import/multipartUpload.d.ts +0 -12
- package/dist/_members/compose/CompositionRenderer.d.ts +0 -6
- package/dist/_members/compose/sceneToRenderInput.d.ts +0 -25
- package/dist/_members/compose/schema.d.ts +0 -30
- package/dist/_members/compose/tokenResolver.d.ts +0 -17
- package/dist/_members/convex-api/api.d.ts +0 -5
- package/dist/_members/convex-api/api.generated.d.ts +0 -1444
- package/dist/_members/convex-api/dataModel.d.ts +0 -6
- package/dist/_members/render-harness/browserOptions.d.ts +0 -11
- package/dist/_members/render-harness/browserOptions.d.ts.map +0 -1
- package/dist/_members/render-harness/contractRender.d.ts +0 -27
- package/dist/_members/render-harness/contractRender.d.ts.map +0 -1
- package/dist/_members/render-harness/localRender.d.ts.map +0 -1
- package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts +0 -9
- package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts.map +0 -1
- package/dist/authoring/transpileComponent.d.ts +0 -1
- package/dist/authoring/transpileComponent.js +0 -31
- package/dist/authoring/transpileHelper.d.ts +0 -1
- package/dist/authoring/transpileHelper.js +0 -9
- package/dist/chunk-6IU2UQI5.js +0 -107
- package/dist/chunk-EP2Y6M2J.js +0 -64
- package/dist/chunk-MHOQTPOB.js +0 -124
- package/dist/chunk-RHVLQNYF.js +0 -20
- package/dist/chunk-TXSFYUZH.js +0 -85
- package/dist/chunk-V24L35GM.js +0 -61
- package/dist/chunk-WZH57M53.js +0 -494
- package/dist/cloud-import/multipart.d.ts +0 -1
- package/dist/cloud-import/multipart.js +0 -8
- package/dist/compose/renderer.d.ts +0 -1
- package/dist/compose/renderer.js +0 -170
- package/dist/convex-api/dataModel.d.ts +0 -1
- package/dist/convex-api/dataModel.js +0 -0
- package/dist/convex-api.d.ts +0 -1
- package/dist/convex-api.js +0 -8
- package/dist/render-harness/sandboxGlobalSpecs.d.ts +0 -1
- package/dist/render-harness/sandboxGlobalSpecs.js +0 -13
- package/dist/{chunk-SAMQUUO5.js → chunk-BIBYZJL3.js} +3 -3
- package/dist/{chunk-23HFEKV7.js → chunk-QISFYLBB.js} +4 -4
- package/dist/{chunk-DYZE7JZA.js → chunk-TMIBBD5E.js} +3 -3
package/dist/core/select.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
stabilizeIncumbentChallenger,
|
|
8
8
|
stabilizePresenceGate,
|
|
9
9
|
stabilizeSelectionHysteresis
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-LNBVTDFR.js";
|
|
11
|
+
import "../chunk-4FOOBSEE.js";
|
|
12
12
|
import "../chunk-2ESYSVXG.js";
|
|
13
13
|
|
|
14
14
|
// ../execution/core/src/select/errorCodes.ts
|
package/dist/core.js
CHANGED
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
ensureEven,
|
|
11
11
|
extractCaptionWordsFromDoc,
|
|
12
12
|
isEmphasized
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6XI57FZZ.js";
|
|
14
14
|
import "./chunk-QH3YI3ND.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-LNBVTDFR.js";
|
|
16
|
+
import "./chunk-QISFYLBB.js";
|
|
17
17
|
import "./chunk-VZ7TYX6Z.js";
|
|
18
|
-
import "./chunk-7PA7FGLD.js";
|
|
19
|
-
import "./chunk-KYRDKK2D.js";
|
|
20
18
|
import "./chunk-DENF4TPI.js";
|
|
19
|
+
import "./chunk-KYRDKK2D.js";
|
|
21
20
|
import "./chunk-WREYUH2E.js";
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7PA7FGLD.js";
|
|
22
|
+
import "./chunk-4FOOBSEE.js";
|
|
23
23
|
import "./chunk-2ESYSVXG.js";
|
|
24
24
|
export {
|
|
25
25
|
DEFAULT_FPS,
|
package/dist/director/ai-sdk.js
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
dataChunk,
|
|
11
11
|
generationArtifactFromToolResult,
|
|
12
12
|
projectDirectorHistory
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-XHUYWVYK.js";
|
|
14
|
+
import "../chunk-EEXCDFY5.js";
|
|
15
15
|
import "../chunk-73DQTUWY.js";
|
|
16
16
|
import "../chunk-BADZHXLR.js";
|
|
17
17
|
import "../chunk-U3JPILZS.js";
|
|
18
18
|
import "../chunk-XELS2BGA.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-4FOOBSEE.js";
|
|
20
20
|
import "../chunk-2ESYSVXG.js";
|
|
21
21
|
export {
|
|
22
22
|
CueFrameIteration,
|
package/dist/director/domain.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ProjectRef,
|
|
10
10
|
chatErrorViewFromEnvelope,
|
|
11
11
|
chatErrorViewFromUnknown
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-EEXCDFY5.js";
|
|
13
13
|
import {
|
|
14
14
|
ClientRequestId,
|
|
15
15
|
GenerateMediaCommand,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import "../chunk-BADZHXLR.js";
|
|
32
32
|
import "../chunk-U3JPILZS.js";
|
|
33
33
|
import "../chunk-XELS2BGA.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-4FOOBSEE.js";
|
|
35
35
|
import "../chunk-2ESYSVXG.js";
|
|
36
36
|
export {
|
|
37
37
|
ChatErrorView,
|
package/dist/director.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
dataChunk,
|
|
11
11
|
generationArtifactFromToolResult,
|
|
12
12
|
projectDirectorHistory
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XHUYWVYK.js";
|
|
14
14
|
import "./chunk-FTVZF4GO.js";
|
|
15
15
|
import {
|
|
16
16
|
ChatErrorView,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ProjectRef,
|
|
23
23
|
chatErrorViewFromEnvelope,
|
|
24
24
|
chatErrorViewFromUnknown
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EEXCDFY5.js";
|
|
26
26
|
import {
|
|
27
27
|
ClientRequestId,
|
|
28
28
|
GenerateMediaCommand,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import "./chunk-BADZHXLR.js";
|
|
45
45
|
import "./chunk-U3JPILZS.js";
|
|
46
46
|
import "./chunk-XELS2BGA.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-4FOOBSEE.js";
|
|
48
48
|
import "./chunk-2ESYSVXG.js";
|
|
49
49
|
export {
|
|
50
50
|
ChatErrorView,
|
package/dist/errors.js
CHANGED
package/dist/mcp/adapter.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
querySchemaShape,
|
|
3
|
+
serializeQuery,
|
|
2
4
|
waitForJob
|
|
3
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-NOEBAV2G.js";
|
|
4
6
|
import {
|
|
5
7
|
apiErrorFrom,
|
|
6
8
|
bodySchemaFor,
|
|
@@ -11,10 +13,10 @@ import {
|
|
|
11
13
|
opById,
|
|
12
14
|
safeParse,
|
|
13
15
|
sniffImageMediaType
|
|
14
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-QBKDEO7J.js";
|
|
15
17
|
import {
|
|
16
18
|
CURATED_TOOLS
|
|
17
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-ZN6P3KOJ.js";
|
|
18
20
|
import "../chunk-2ESYSVXG.js";
|
|
19
21
|
|
|
20
22
|
// ../mcp/src/adapter.ts
|
|
@@ -41,7 +43,7 @@ var INTERNAL_LOOP_TOOLS = [
|
|
|
41
43
|
name: "preview_component",
|
|
42
44
|
operationId: "previewComponent",
|
|
43
45
|
pathArgs: { projectId: "id" },
|
|
44
|
-
description: "Queue a preview of ONE org-installed component \u2014 ASYNC; the in-loop wrapper blocks until terminal.
|
|
46
|
+
description: "Queue a preview of ONE org-installed component \u2014 ASYNC; the in-loop wrapper blocks until terminal. It returns a verified artifact from the same immutable component bundle used by production. Failures carry typed compiler, runtime, asset, and graphics-capability codes with a sanitized author-fixable message \u2014 read it, update the tsxSource or manifest, and re-preview. Idempotent per component version, params, assets, dimensions, and runtime digest.",
|
|
45
47
|
annotations: { idempotentHint: true }
|
|
46
48
|
},
|
|
47
49
|
{
|
|
@@ -65,10 +67,6 @@ var INTERNAL_LOOP_TOOLS = [
|
|
|
65
67
|
{
|
|
66
68
|
name: "search_library",
|
|
67
69
|
operationId: "searchLibrary",
|
|
68
|
-
queryArgs: {
|
|
69
|
-
q: 'REQUIRED. What the moment should LOOK like, in plain language \u2014 describe the IMAGE, not the words spoken ("wide shot of a speaker at a whiteboard", "hands on a keyboard"). Omitting it is a 400.',
|
|
70
|
-
limit: "Maximum moments to return. Default 10, maximum 25."
|
|
71
|
-
},
|
|
72
70
|
description: "FIND MOMENTS IN YOUR OWN FOOTAGE by describing what they look like. The query is embedded with the same CLIP model that embedded every indexed frame, so it matches on VISUAL content \u2014 including shots nobody talks about, which is exactly where transcript search fails. Returns time-ranged moments best-first: feed `mediaId` + `startSec`/`endSec` straight into apply_composition as a clip. To SEE a hit rather than trust its score, place it and call preview_frame at its `startSec` \u2014 a result row carries the media item's poster, never a frame of the matched moment. `indexing` is COVERAGE, not emptiness \u2014 true whenever some of the org's footage is not in the visual index yet (media that predates it, or still processing), and it can be true ALONGSIDE results; read those as \"the best moments among what we have looked at so far\". Empty `results` with `indexing: true` is a state, not a failure. TIMING: the text encoder scales to zero, so the first search after an idle period can take up to ~90s while it cold-starts \u2014 a documented wait, not a hang. Reach for search_resources instead when you need STOCK rather than the org's own footage.",
|
|
73
71
|
annotations: { readOnlyHint: true }
|
|
74
72
|
},
|
|
@@ -190,14 +188,14 @@ async function inlineStillsOrNote(urls, fetchImage, emptyNote) {
|
|
|
190
188
|
if (out.length === 0) return JSON.stringify({ note: emptyNote });
|
|
191
189
|
return out;
|
|
192
190
|
}
|
|
191
|
+
function imageModelBlocks(data) {
|
|
192
|
+
const mediaType = sniffImageMediaType(data);
|
|
193
|
+
return mediaType ? [{ type: "image-data", mediaType, data }] : [{ type: "text", text: "Rejected image preview: unsupported media signature." }];
|
|
194
|
+
}
|
|
193
195
|
function imageVisionModelOutput({ output }) {
|
|
194
196
|
return Array.isArray(output) ? {
|
|
195
197
|
type: "content",
|
|
196
|
-
value: output.
|
|
197
|
-
type: "image-data",
|
|
198
|
-
mediaType: sniffImageMediaType(data),
|
|
199
|
-
data
|
|
200
|
-
}))
|
|
198
|
+
value: output.flatMap(imageModelBlocks)
|
|
201
199
|
} : {
|
|
202
200
|
type: "text",
|
|
203
201
|
value: typeof output === "string" ? output : JSON.stringify(output)
|
|
@@ -212,11 +210,7 @@ function previewVisionModelOutput({ output }) {
|
|
|
212
210
|
type: "content",
|
|
213
211
|
value: [
|
|
214
212
|
{ type: "text", text: output.text },
|
|
215
|
-
...output.images.
|
|
216
|
-
type: "image-data",
|
|
217
|
-
mediaType: sniffImageMediaType(data),
|
|
218
|
-
data
|
|
219
|
-
}))
|
|
213
|
+
...output.images.flatMap(imageModelBlocks)
|
|
220
214
|
]
|
|
221
215
|
};
|
|
222
216
|
}
|
|
@@ -226,7 +220,9 @@ function previewVisionModelOutput({ output }) {
|
|
|
226
220
|
};
|
|
227
221
|
}
|
|
228
222
|
function buildRenderFrameTool(spec, ex, budget, opts) {
|
|
229
|
-
const
|
|
223
|
+
const canonicalOp = opById(spec.operationId);
|
|
224
|
+
const transport = opts?.transportOverrides?.[spec.name];
|
|
225
|
+
const op = transport ? { ...canonicalOp, ...transport } : canonicalOp;
|
|
230
226
|
const fetchImage = opts?.fetchImage ?? defaultFetchImage;
|
|
231
227
|
const reverse = {};
|
|
232
228
|
for (const [friendly, opParam] of Object.entries(spec.pathArgs ?? {})) {
|
|
@@ -278,7 +274,9 @@ function buildRenderFrameTool(spec, ex, budget, opts) {
|
|
|
278
274
|
});
|
|
279
275
|
}
|
|
280
276
|
function buildPreviewComponentTool(spec, ex, opts) {
|
|
281
|
-
const
|
|
277
|
+
const canonicalOp = opById(spec.operationId);
|
|
278
|
+
const transport = opts?.transportOverrides?.[spec.name];
|
|
279
|
+
const op = transport ? { ...canonicalOp, ...transport } : canonicalOp;
|
|
282
280
|
const fetchImage = opts?.fetchImage ?? defaultFetchImage;
|
|
283
281
|
const reverse = {};
|
|
284
282
|
for (const [friendly, opParam] of Object.entries(spec.pathArgs ?? {})) {
|
|
@@ -289,7 +287,7 @@ function buildPreviewComponentTool(spec, ex, opts) {
|
|
|
289
287
|
if (opts?.session && SESSION_PATH_ARGS.has(friendly)) continue;
|
|
290
288
|
shape[friendly] = z.string().describe(`${friendly} (path).`);
|
|
291
289
|
}
|
|
292
|
-
const bodySchema = bodySchemaFor(op);
|
|
290
|
+
const bodySchema = opts?.bodySchemaOverrides?.[spec.name] ?? bodySchemaFor(op);
|
|
293
291
|
if (bodySchema) shape.body = bodySchema;
|
|
294
292
|
return tool({
|
|
295
293
|
description: spec.description,
|
|
@@ -356,7 +354,7 @@ function buildVerifyCompositionTool(spec, ex, budget, opts) {
|
|
|
356
354
|
if (opts?.session && SESSION_PATH_ARGS.has(friendly)) continue;
|
|
357
355
|
shape[friendly] = z.string().describe(`${friendly} (path).`);
|
|
358
356
|
}
|
|
359
|
-
const bodySchema = bodySchemaFor(op);
|
|
357
|
+
const bodySchema = opts?.bodySchemaOverrides?.[spec.name] ?? bodySchemaFor(op);
|
|
360
358
|
if (bodySchema) shape.body = bodySchema;
|
|
361
359
|
return tool({
|
|
362
360
|
description: "Score the current composition on the judge's own rubric \u2014 BLOCKS until the scores are ready (1-3 min) and returns per-criterion scores 0-10 (editorial / spatial / brand / caption), the weighted composite, and a worst-first critique. Fix the lowest criterion via apply_composition, then re-verify. Do NOT apply/render while it runs.",
|
|
@@ -539,7 +537,9 @@ function buildOneTool(spec, ex, budget, opts) {
|
|
|
539
537
|
if (spec.name === "preview_component") return buildPreviewComponentTool(spec, ex, opts);
|
|
540
538
|
if (spec.name === "verify_composition") return buildVerifyCompositionTool(spec, ex, budget, opts);
|
|
541
539
|
if (spec.name === "view_style_reference") return buildViewStyleReferenceTool(spec, ex, budget, opts);
|
|
542
|
-
const
|
|
540
|
+
const canonicalOp = opById(spec.operationId);
|
|
541
|
+
const transport = opts?.transportOverrides?.[spec.name];
|
|
542
|
+
const op = transport ? { ...canonicalOp, ...transport } : canonicalOp;
|
|
543
543
|
const onProgress = opts?.onProgress;
|
|
544
544
|
const reverse = {};
|
|
545
545
|
for (const [friendly, opParam] of Object.entries(spec.pathArgs ?? {})) {
|
|
@@ -550,10 +550,8 @@ function buildOneTool(spec, ex, budget, opts) {
|
|
|
550
550
|
if (opts?.session && SESSION_PATH_ARGS.has(friendly)) continue;
|
|
551
551
|
shape[friendly] = z.string().describe(`${friendly} (path).`);
|
|
552
552
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
const bodySchema = bodySchemaFor(op);
|
|
553
|
+
Object.assign(shape, querySchemaShape(op.queryParams, spec.defaults));
|
|
554
|
+
const bodySchema = opts?.bodySchemaOverrides?.[spec.name] ?? bodySchemaFor(op);
|
|
557
555
|
if (bodySchema) shape.body = bodySchema;
|
|
558
556
|
const exposedPathArgs = Object.keys(spec.pathArgs ?? {}).filter(
|
|
559
557
|
(friendly) => !(opts?.session && SESSION_PATH_ARGS.has(friendly))
|
|
@@ -565,7 +563,8 @@ function buildOneTool(spec, ex, budget, opts) {
|
|
|
565
563
|
description: spec.description,
|
|
566
564
|
inputSchema: z.object(shape),
|
|
567
565
|
...schemaSafeExamples?.length ? { inputExamples: schemaSafeExamples } : {},
|
|
568
|
-
execute: async (
|
|
566
|
+
execute: async (providedArgs, toolOptions) => {
|
|
567
|
+
const args = { ...spec.defaults ?? {}, ...providedArgs };
|
|
569
568
|
const toolCallId = `tc_${crypto.randomUUID().slice(0, 8)}`;
|
|
570
569
|
onProgress?.({
|
|
571
570
|
type: "tool-call",
|
|
@@ -575,14 +574,14 @@ function buildOneTool(spec, ex, budget, opts) {
|
|
|
575
574
|
toolCallId,
|
|
576
575
|
timestamp: Date.now()
|
|
577
576
|
});
|
|
578
|
-
const queryPairs = Object.keys(spec.queryArgs ?? {}).filter((qArg) => args[qArg] !== void 0 && args[qArg] !== null && args[qArg] !== "").map((qArg) => `${encodeURIComponent(qArg)}=${encodeURIComponent(String(args[qArg]))}`);
|
|
579
577
|
const res = await invokeOp(
|
|
580
578
|
ex,
|
|
581
579
|
op,
|
|
582
580
|
(p) => sessionPathValue(reverse[p], opts) ?? args[reverse[p]],
|
|
583
581
|
injectSession(spec, args, opts),
|
|
584
582
|
void 0,
|
|
585
|
-
|
|
583
|
+
serializeQuery(op.queryParams, args),
|
|
584
|
+
toolOptions.abortSignal
|
|
586
585
|
);
|
|
587
586
|
const ok = isOk(res.status);
|
|
588
587
|
const json = ok && res.text ? safeParse(res.text) : void 0;
|
|
@@ -620,9 +619,10 @@ function buildCuratedToolSet(ex, opts) {
|
|
|
620
619
|
used: { captures: 0, verifies: 0, styleViews: 0 }
|
|
621
620
|
};
|
|
622
621
|
const tools = {};
|
|
623
|
-
for (const
|
|
624
|
-
if (!allowed.has(
|
|
625
|
-
if (tools[
|
|
622
|
+
for (const canonicalSpec of [...INTERNAL_LOOP_TOOLS, ...CURATED_TOOLS]) {
|
|
623
|
+
if (!allowed.has(canonicalSpec.name)) continue;
|
|
624
|
+
if (tools[canonicalSpec.name]) continue;
|
|
625
|
+
const spec = opts.specOverrides?.[canonicalSpec.name] ? { ...canonicalSpec, ...opts.specOverrides[canonicalSpec.name], name: canonicalSpec.name } : canonicalSpec;
|
|
626
626
|
tools[spec.name] = buildOneTool(spec, ex, budget, opts);
|
|
627
627
|
}
|
|
628
628
|
return tools;
|
package/dist/mcp/core.js
CHANGED
package/dist/mcp/curation.js
CHANGED
|
@@ -5,10 +5,12 @@ import {
|
|
|
5
5
|
KNOWN_BACKEND_GAPS,
|
|
6
6
|
formatComponentList,
|
|
7
7
|
formatComposition,
|
|
8
|
+
formatMediaContext,
|
|
8
9
|
formatMediaList,
|
|
9
10
|
formatResourceCandidates,
|
|
11
|
+
formatTranscriptPage,
|
|
10
12
|
formatWarnings
|
|
11
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-ZN6P3KOJ.js";
|
|
12
14
|
import "../chunk-2ESYSVXG.js";
|
|
13
15
|
export {
|
|
14
16
|
CRUD_COVERAGE,
|
|
@@ -17,7 +19,9 @@ export {
|
|
|
17
19
|
KNOWN_BACKEND_GAPS,
|
|
18
20
|
formatComponentList,
|
|
19
21
|
formatComposition,
|
|
22
|
+
formatMediaContext,
|
|
20
23
|
formatMediaList,
|
|
21
24
|
formatResourceCandidates,
|
|
25
|
+
formatTranscriptPage,
|
|
22
26
|
formatWarnings
|
|
23
27
|
};
|
package/dist/mcp/executor.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -3,22 +3,20 @@ import {
|
|
|
3
3
|
SERVER_INSTRUCTIONS,
|
|
4
4
|
__resetSkillCache,
|
|
5
5
|
buildServer,
|
|
6
|
-
registerBurnedTombstones,
|
|
7
6
|
registerCuratedTools,
|
|
8
7
|
registerRawTools,
|
|
9
8
|
registerSkillPrompts,
|
|
10
9
|
titleCase
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-4JRUGT2Y.js";
|
|
11
|
+
import "../chunk-NOEBAV2G.js";
|
|
12
|
+
import "../chunk-QBKDEO7J.js";
|
|
13
|
+
import "../chunk-ZN6P3KOJ.js";
|
|
15
14
|
import "../chunk-2ESYSVXG.js";
|
|
16
15
|
export {
|
|
17
16
|
RAW_EXCLUDED_OPERATION_IDS,
|
|
18
17
|
SERVER_INSTRUCTIONS,
|
|
19
18
|
__resetSkillCache,
|
|
20
19
|
buildServer,
|
|
21
|
-
registerBurnedTombstones,
|
|
22
20
|
registerCuratedTools,
|
|
23
21
|
registerRawTools,
|
|
24
22
|
registerSkillPrompts,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../_members/mcp/wireSchema.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "../chunk-2ESYSVXG.js";
|
|
2
|
+
|
|
3
|
+
// ../mcp/src/wireSchema.ts
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
var MCP_JSON_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
6
|
+
function toMcpInputJsonSchema(schema) {
|
|
7
|
+
if (!schema || typeof schema !== "object" && typeof schema !== "function") {
|
|
8
|
+
throw new Error("MCP input schema is missing.");
|
|
9
|
+
}
|
|
10
|
+
const standard = schema["~standard"];
|
|
11
|
+
const converted = standard?.jsonSchema?.input ? standard.jsonSchema.input({ target: "draft-2020-12" }) : z.toJSONSchema(schema, { target: "draft-2020-12", io: "input" });
|
|
12
|
+
if (!converted || typeof converted !== "object" || Array.isArray(converted)) {
|
|
13
|
+
throw new Error("MCP input schema conversion did not return an object schema.");
|
|
14
|
+
}
|
|
15
|
+
const result = converted;
|
|
16
|
+
if (result.type !== "object") {
|
|
17
|
+
throw new Error(`MCP tool input schema must have type "object" (got ${String(result.type)}).`);
|
|
18
|
+
}
|
|
19
|
+
return { ...result, $schema: MCP_JSON_SCHEMA_DIALECT };
|
|
20
|
+
}
|
|
21
|
+
async function parseToolInput(schema, input) {
|
|
22
|
+
const validate = schema?.["~standard"]?.validate;
|
|
23
|
+
if (typeof validate !== "function") throw new Error("Tool input schema does not implement Standard Schema validation.");
|
|
24
|
+
const result = await validate(input);
|
|
25
|
+
if (result.issues) {
|
|
26
|
+
return {
|
|
27
|
+
success: false,
|
|
28
|
+
error: result.issues.map((issue) => issue.message ?? "Invalid input").join("; ")
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return { success: true, data: result.value };
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
MCP_JSON_SCHEMA_DIALECT,
|
|
35
|
+
parseToolInput,
|
|
36
|
+
toMcpInputJsonSchema
|
|
37
|
+
};
|
package/dist/mcp.js
CHANGED
|
@@ -2,39 +2,16 @@ import {
|
|
|
2
2
|
API_URLS,
|
|
3
3
|
makeNetworkExecutor,
|
|
4
4
|
makePlatformExecutor
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VCBLGZQQ.js";
|
|
6
6
|
import {
|
|
7
|
-
SERVER_INSTRUCTIONS,
|
|
8
7
|
buildServer,
|
|
9
8
|
registerCuratedTools,
|
|
10
|
-
registerRawTools
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-DJW3UGBH.js";
|
|
9
|
+
registerRawTools
|
|
10
|
+
} from "./chunk-4JRUGT2Y.js";
|
|
11
|
+
import "./chunk-NOEBAV2G.js";
|
|
12
|
+
import "./chunk-QBKDEO7J.js";
|
|
13
|
+
import "./chunk-ZN6P3KOJ.js";
|
|
16
14
|
import "./chunk-2ESYSVXG.js";
|
|
17
|
-
|
|
18
|
-
// ../mcp/src/index.ts
|
|
19
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
20
|
-
async function main() {
|
|
21
|
-
const apiKey = process.env.CUEFRAME_API_KEY;
|
|
22
|
-
if (!apiKey) throw new Error("CUEFRAME_API_KEY environment variable is required");
|
|
23
|
-
const target = process.env.CUEFRAME_TARGET ?? "prod";
|
|
24
|
-
const baseUrl = process.env.CUEFRAME_API_URL ?? API_URLS[target] ?? API_URLS.prod;
|
|
25
|
-
const executor = makeNetworkExecutor(baseUrl, apiKey);
|
|
26
|
-
const server = buildServer({
|
|
27
|
-
executor,
|
|
28
|
-
expert: Boolean(process.env.CUEFRAME_MCP_EXPERT),
|
|
29
|
-
instructions: SERVER_INSTRUCTIONS
|
|
30
|
-
});
|
|
31
|
-
await registerSkillPrompts(server, executor, { failLoud: true });
|
|
32
|
-
const transport = new StdioServerTransport();
|
|
33
|
-
await server.connect(transport);
|
|
34
|
-
}
|
|
35
|
-
if (!process.env.VITEST) {
|
|
36
|
-
await main();
|
|
37
|
-
}
|
|
38
15
|
export {
|
|
39
16
|
API_URLS,
|
|
40
17
|
buildServer,
|
|
@@ -1,13 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ALLOWED_CONTENT_TYPES,
|
|
3
|
-
IMAGE_CONTENT_TYPES,
|
|
4
|
-
POOL_EXTENSIONS,
|
|
5
|
-
contentTypeForUpload,
|
|
6
|
-
extensionForContentType,
|
|
7
|
-
mediaKind,
|
|
8
|
-
mediaKindForFilename
|
|
9
|
-
} from "../chunk-6IU2UQI5.js";
|
|
10
1
|
import "../chunk-2ESYSVXG.js";
|
|
2
|
+
|
|
3
|
+
// ../data-models/media-model/src/media-kind.ts
|
|
4
|
+
var IMAGE_CONTENT_TYPES = ["image/png", "image/jpeg", "image/webp"];
|
|
5
|
+
var ALLOWED_CONTENT_TYPES = [
|
|
6
|
+
"video/mp4",
|
|
7
|
+
"video/quicktime",
|
|
8
|
+
"video/x-matroska",
|
|
9
|
+
"video/webm",
|
|
10
|
+
"audio/mpeg",
|
|
11
|
+
"audio/wav",
|
|
12
|
+
"audio/x-wav",
|
|
13
|
+
"audio/mp4",
|
|
14
|
+
"audio/aac",
|
|
15
|
+
"image/png",
|
|
16
|
+
"image/jpeg",
|
|
17
|
+
"image/webp",
|
|
18
|
+
"image/gif",
|
|
19
|
+
"image/svg+xml",
|
|
20
|
+
"application/json",
|
|
21
|
+
"font/ttf",
|
|
22
|
+
"font/otf",
|
|
23
|
+
"font/woff",
|
|
24
|
+
"font/woff2"
|
|
25
|
+
];
|
|
26
|
+
function mediaKind(contentType) {
|
|
27
|
+
const ct = (contentType || "").toLowerCase();
|
|
28
|
+
if (ct.startsWith("video/")) return "video";
|
|
29
|
+
if (ct.startsWith("audio/")) return "audio";
|
|
30
|
+
if (IMAGE_CONTENT_TYPES.includes(ct)) return "image";
|
|
31
|
+
return "opaque";
|
|
32
|
+
}
|
|
33
|
+
var EXT = {
|
|
34
|
+
"video/mp4": "mp4",
|
|
35
|
+
"audio/mp4": "mp4",
|
|
36
|
+
"video/quicktime": "mov",
|
|
37
|
+
"video/x-matroska": "mkv",
|
|
38
|
+
"video/webm": "webm",
|
|
39
|
+
"video/x-msvideo": "avi",
|
|
40
|
+
"audio/mpeg": "mp3",
|
|
41
|
+
"audio/wav": "wav",
|
|
42
|
+
"audio/x-wav": "wav",
|
|
43
|
+
"audio/aac": "aac",
|
|
44
|
+
"audio/ogg": "ogg",
|
|
45
|
+
"audio/flac": "flac",
|
|
46
|
+
"image/png": "png",
|
|
47
|
+
"image/jpeg": "jpg",
|
|
48
|
+
"image/webp": "webp",
|
|
49
|
+
"font/ttf": "ttf",
|
|
50
|
+
"font/otf": "otf",
|
|
51
|
+
"font/woff": "woff",
|
|
52
|
+
"font/woff2": "woff2",
|
|
53
|
+
"application/json": "json",
|
|
54
|
+
"image/svg+xml": "svg",
|
|
55
|
+
"image/gif": "gif"
|
|
56
|
+
};
|
|
57
|
+
function extensionForContentType(contentType) {
|
|
58
|
+
return EXT[(contentType || "").toLowerCase()] ?? "bin";
|
|
59
|
+
}
|
|
60
|
+
var CONTENT_TYPE_ALIASES = {
|
|
61
|
+
"audio/mp3": "audio/mpeg",
|
|
62
|
+
"audio/x-mp3": "audio/mpeg",
|
|
63
|
+
"audio/x-mpeg": "audio/mpeg",
|
|
64
|
+
"audio/mpeg3": "audio/mpeg",
|
|
65
|
+
"audio/x-mpeg-3": "audio/mpeg",
|
|
66
|
+
"audio/x-m4a": "audio/mp4",
|
|
67
|
+
"audio/m4a": "audio/mp4",
|
|
68
|
+
"audio/wave": "audio/wav",
|
|
69
|
+
"audio/vnd.wave": "audio/wav",
|
|
70
|
+
"audio/x-aac": "audio/aac",
|
|
71
|
+
"image/jpg": "image/jpeg",
|
|
72
|
+
"video/x-quicktime": "video/quicktime",
|
|
73
|
+
"video/mov": "video/quicktime",
|
|
74
|
+
"video/x-m4v": "video/mp4",
|
|
75
|
+
"video/mkv": "video/x-matroska"
|
|
76
|
+
};
|
|
77
|
+
var TYPE_BY_EXTENSION = Object.entries(EXT).reduce(
|
|
78
|
+
(acc, [contentType, ext]) => {
|
|
79
|
+
if (!(ext in acc)) acc[ext] = contentType;
|
|
80
|
+
return acc;
|
|
81
|
+
},
|
|
82
|
+
{}
|
|
83
|
+
);
|
|
84
|
+
TYPE_BY_EXTENSION["jpeg"] = "image/jpeg";
|
|
85
|
+
TYPE_BY_EXTENSION["m4a"] = "audio/mp4";
|
|
86
|
+
function mediaKindForFilename(filename) {
|
|
87
|
+
return mediaKind(contentTypeForUpload(filename, null));
|
|
88
|
+
}
|
|
89
|
+
var POOL_EXTENSIONS = Object.entries(TYPE_BY_EXTENSION).filter(([, contentType]) => mediaKind(contentType) !== "opaque").map(([ext]) => ext);
|
|
90
|
+
function contentTypeForUpload(filename, claimed) {
|
|
91
|
+
const ct = (claimed ?? "").trim().toLowerCase();
|
|
92
|
+
const allowed = ALLOWED_CONTENT_TYPES;
|
|
93
|
+
if (ct && allowed.includes(ct)) return ct;
|
|
94
|
+
if (ct && CONTENT_TYPE_ALIASES[ct]) return CONTENT_TYPE_ALIASES[ct];
|
|
95
|
+
const ext = filename.toLowerCase().split(".").pop() ?? "";
|
|
96
|
+
const byExt = TYPE_BY_EXTENSION[ext];
|
|
97
|
+
if (byExt) return byExt;
|
|
98
|
+
return ct;
|
|
99
|
+
}
|
|
11
100
|
export {
|
|
12
101
|
ALLOWED_CONTENT_TYPES,
|
|
13
102
|
IMAGE_CONTENT_TYPES,
|