@cueframe/kernel 0.1.4 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/dist/_members/account-model/validators/contextFile.d.ts +3 -21
  2. package/dist/_members/account-model/validators/conversation.d.ts +12 -42
  3. package/dist/_members/account-model/validators/dashboardInsight.d.ts +3 -17
  4. package/dist/_members/account-model/validators/sessionToken.d.ts +10 -36
  5. package/dist/_members/account-model/validators/uploadToken.d.ts +11 -21
  6. package/dist/_members/account-model/validators/userSettings.d.ts +3 -13
  7. package/dist/_members/account-model/validators/workingComposition.d.ts +3 -19
  8. package/dist/_members/authoring/capabilities.d.ts +0 -9
  9. package/dist/_members/authoring/index.d.ts +1 -1
  10. package/dist/_members/authoring/models/defaultModels.d.ts +12 -0
  11. package/dist/_members/authoring/models/modelFactory.d.ts +1 -0
  12. package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +1 -7
  13. package/dist/_members/authoring/types.d.ts +0 -1
  14. package/dist/_members/component-runtime/assetServer.d.ts +18 -0
  15. package/dist/_members/component-runtime/assetServer.d.ts.map +1 -0
  16. package/dist/_members/component-runtime/bake.d.ts +12 -0
  17. package/dist/_members/component-runtime/bake.d.ts.map +1 -0
  18. package/dist/_members/component-runtime/browserFirewall.d.ts +21 -0
  19. package/dist/_members/component-runtime/browserFirewall.d.ts.map +1 -0
  20. package/dist/_members/component-runtime/browserIdentity.d.ts +14 -0
  21. package/dist/_members/component-runtime/browserIdentity.d.ts.map +1 -0
  22. package/dist/_members/component-runtime/browserOptions.d.ts +8 -0
  23. package/dist/_members/component-runtime/browserOptions.d.ts.map +1 -0
  24. package/dist/_members/component-runtime/canonicalIdentity.d.ts +14 -0
  25. package/dist/_members/component-runtime/canonicalIdentity.d.ts.map +1 -0
  26. package/dist/_members/component-runtime/contracts.d.ts +443 -0
  27. package/dist/_members/component-runtime/contracts.d.ts.map +1 -0
  28. package/dist/_members/component-runtime/determinism.d.ts +18 -0
  29. package/dist/_members/component-runtime/determinism.d.ts.map +1 -0
  30. package/dist/_members/component-runtime/fixtures/webgpuTiledRefraction.d.ts +9 -0
  31. package/dist/_members/component-runtime/fixtures/webgpuTiledRefraction.d.ts.map +1 -0
  32. package/dist/_members/component-runtime/identity.d.ts +16 -0
  33. package/dist/_members/component-runtime/identity.d.ts.map +1 -0
  34. package/dist/_members/component-runtime/importPolicy.d.ts +3 -0
  35. package/dist/_members/component-runtime/importPolicy.d.ts.map +1 -0
  36. package/dist/_members/component-runtime/index.d.ts +11 -0
  37. package/dist/_members/component-runtime/index.d.ts.map +1 -0
  38. package/dist/_members/component-runtime/outputVerifier.d.ts +29 -0
  39. package/dist/_members/component-runtime/outputVerifier.d.ts.map +1 -0
  40. package/dist/_members/{render-harness/localRender.d.ts → component-runtime/render.d.ts} +22 -15
  41. package/dist/_members/component-runtime/render.d.ts.map +1 -0
  42. package/dist/_members/component-runtime/sourceWorkspace.d.ts +10 -0
  43. package/dist/_members/component-runtime/sourceWorkspace.d.ts.map +1 -0
  44. package/dist/_members/compose/index.d.ts +0 -5
  45. package/dist/_members/composition/graphics-plan/schemas.d.ts +299 -1309
  46. package/dist/_members/composition/primitive-catalog/index.d.ts +2 -2
  47. package/dist/_members/composition/primitive-catalog/projection.d.ts +0 -14
  48. package/dist/_members/composition/reframe/index.d.ts +56 -528
  49. package/dist/_members/composition/validators/brandKit.d.ts +247 -1208
  50. package/dist/_members/composition/validators/composePlan.d.ts +106 -818
  51. package/dist/_members/composition/validators/composition.d.ts +1338 -5856
  52. package/dist/_members/composition/validators/font.d.ts +35 -91
  53. package/dist/_members/composition/validators/project.d.ts +15 -46
  54. package/dist/_members/composition/validators/registry.d.ts +53 -135
  55. package/dist/_members/composition/validators/render.d.ts +803 -7273
  56. package/dist/_members/composition/validators/session.d.ts +38 -76
  57. package/dist/_members/composition/validators/webhook.d.ts +23 -50
  58. package/dist/_members/composition-ops/alphaLayers.d.ts +3 -2
  59. package/dist/_members/composition-ops/index.d.ts +409 -4309
  60. package/dist/_members/core/render/compositionAudioAndDepth.d.ts +6 -0
  61. package/dist/_members/core/render/compositionRender.d.ts +3 -4
  62. package/dist/_members/core/render/compositionValidation.d.ts +4 -0
  63. package/dist/_members/core/render/index.d.ts +2 -2
  64. package/dist/_members/core/render/types.d.ts +16 -8
  65. package/dist/_members/director/ai-sdk/messages.d.ts +67 -217
  66. package/dist/_members/director/domain/chat.d.ts +70 -293
  67. package/dist/_members/director/testing/contract.d.ts +11 -11
  68. package/dist/_members/errors/registry.d.ts +189 -3
  69. package/dist/_members/foundation/primitives/index.d.ts +1 -1
  70. package/dist/_members/mcp/adapter.d.ts +3 -0
  71. package/dist/_members/mcp/burnedNames.d.ts +0 -1
  72. package/dist/_members/mcp/core.d.ts +6 -3
  73. package/dist/_members/mcp/curation.d.ts +3 -38
  74. package/dist/_members/mcp/curationTypes.d.ts +34 -0
  75. package/dist/_members/mcp/generated/harness.d.ts +1 -1
  76. package/dist/_members/mcp/generated/operations.d.ts +10 -0
  77. package/dist/_members/mcp/main.d.ts +1 -0
  78. package/dist/_members/mcp/mediaContextFormat.d.ts +4 -0
  79. package/dist/_members/mcp/prompts.d.ts +1 -1
  80. package/dist/_members/mcp/query.d.ts +4 -0
  81. package/dist/_members/mcp/resources.d.ts +1 -1
  82. package/dist/_members/mcp/server.d.ts +1 -2
  83. package/dist/_members/mcp/wireSchema.d.ts +13 -0
  84. package/dist/_members/media-model/api.d.ts +114 -662
  85. package/dist/_members/media-model/generation.d.ts +141 -228
  86. package/dist/_members/plane/contract.d.ts +16 -19
  87. package/dist/_members/primitives/backgrounds/animated-bar-chart/config.d.ts +3 -27
  88. package/dist/_members/primitives/backgrounds/animated-line-chart/config.d.ts +2 -26
  89. package/dist/_members/primitives/backgrounds/dither-gradient-bg/config.d.ts +1 -17
  90. package/dist/_members/primitives/backgrounds/dynamic-grid/config.d.ts +6 -14
  91. package/dist/_members/primitives/backgrounds/ecosystem-constellation/config.d.ts +1 -11
  92. package/dist/_members/primitives/backgrounds/infinite-marquee/config.d.ts +1 -21
  93. package/dist/_members/primitives/backgrounds/mesh-gradient-bg/config.d.ts +2 -12
  94. package/dist/_members/primitives/backgrounds/perspective-marquee/config.d.ts +2 -26
  95. package/dist/_members/primitives/backgrounds/silk-flow-bg/config.d.ts +2 -22
  96. package/dist/_members/primitives/backgrounds/vector-field/config.d.ts +1 -17
  97. package/dist/_members/primitives/backgrounds/volumetric-rays/config.d.ts +1 -19
  98. package/dist/_members/primitives/effects/blur/config.d.ts +5 -14
  99. package/dist/_members/primitives/effects/color-grade/config.d.ts +10 -18
  100. package/dist/_members/primitives/effects/grain/config.d.ts +9 -12
  101. package/dist/_members/primitives/effects/parallax/config.d.ts +8 -12
  102. package/dist/_members/primitives/effects/particles/config.d.ts +9 -20
  103. package/dist/_members/primitives/effects/pulsing-indicator/config.d.ts +1 -13
  104. package/dist/_members/primitives/effects/spotlight-card/config.d.ts +1 -25
  105. package/dist/_members/primitives/effects/spring-pop-in/config.d.ts +1 -15
  106. package/dist/_members/primitives/effects/success-confetti/config.d.ts +2 -26
  107. package/dist/_members/primitives/effects/vignette/config.d.ts +5 -12
  108. package/dist/_members/primitives/hero-text/config.d.ts +9 -24
  109. package/dist/_members/primitives/layouts/chat-to-preview-layout/config.d.ts +1 -11
  110. package/dist/_members/primitives/layouts/infinite-bento-pan/config.d.ts +1 -9
  111. package/dist/_members/primitives/layouts/letterbox/config.d.ts +1 -9
  112. package/dist/_members/primitives/layouts/photo-grid/config.d.ts +2 -12
  113. package/dist/_members/primitives/layouts/picture-in-picture/config.d.ts +7 -12
  114. package/dist/_members/primitives/layouts/split-screen/config.d.ts +1 -7
  115. package/dist/_members/primitives/layouts/staggered-bento-grid/config.d.ts +3 -51
  116. package/dist/_members/primitives/lib/schema.d.ts +1 -1
  117. package/dist/_members/primitives/scenes/changelog-bite/config.d.ts +7 -24
  118. package/dist/_members/primitives/scenes/hero-device-assemble/config.d.ts +5 -14
  119. package/dist/_members/primitives/scenes/landing-code-showcase/config.d.ts +1 -7
  120. package/dist/_members/primitives/scenes/live-code-compilation/config.d.ts +1 -7
  121. package/dist/_members/primitives/scenes/pricing-tier-focus/config.d.ts +2 -12
  122. package/dist/_members/primitives/scenes/product-launch-trailer/config.d.ts +1 -19
  123. package/dist/_members/primitives/scenes/terminal-to-browser-deploy/config.d.ts +1 -11
  124. package/dist/_members/primitives/text/blur-reveal/config.d.ts +1 -17
  125. package/dist/_members/primitives/text/cinematic-title/config.d.ts +13 -73
  126. package/dist/_members/primitives/text/inline-highlight/config.d.ts +1 -21
  127. package/dist/_members/primitives/text/karaoke/config.d.ts +10 -93
  128. package/dist/_members/primitives/text/kinetic-type/config.d.ts +14 -49
  129. package/dist/_members/primitives/text/lower-third/config.d.ts +8 -70
  130. package/dist/_members/primitives/text/marker-highlight/config.d.ts +1 -23
  131. package/dist/_members/primitives/text/masked-slide-reveal/config.d.ts +1 -17
  132. package/dist/_members/primitives/text/matrix-decode/config.d.ts +1 -19
  133. package/dist/_members/primitives/text/quote-card/config.d.ts +1 -11
  134. package/dist/_members/primitives/text/rgb-glitch-text/config.d.ts +1 -23
  135. package/dist/_members/primitives/text/shimmer-sweep/config.d.ts +1 -17
  136. package/dist/_members/primitives/text/slot-machine-roll/config.d.ts +1 -17
  137. package/dist/_members/primitives/text/staggered-fade-up/config.d.ts +2 -24
  138. package/dist/_members/primitives/text/stat-counter/config.d.ts +6 -20
  139. package/dist/_members/primitives/text/strikethrough-replace/config.d.ts +1 -19
  140. package/dist/_members/primitives/text/text-effect/config.d.ts +10 -15
  141. package/dist/_members/primitives/text/text-fade-replace/config.d.ts +1 -17
  142. package/dist/_members/primitives/text/token-stream/config.d.ts +1 -11
  143. package/dist/_members/primitives/text/tracking-in/config.d.ts +1 -19
  144. package/dist/_members/primitives/text/typewriter/config.d.ts +1 -21
  145. package/dist/_members/primitives/transitions/chromatic-aberration-wipe/config.d.ts +5 -8
  146. package/dist/_members/primitives/transitions/code-diff-wipe/config.d.ts +1 -21
  147. package/dist/_members/primitives/transitions/directional-wipe/config.d.ts +7 -6
  148. package/dist/_members/primitives/transitions/frosted-glass-wipe/config.d.ts +1 -5
  149. package/dist/_members/primitives/transitions/glitch-cut/config.d.ts +1 -7
  150. package/dist/_members/primitives/transitions/grid-pixelate-wipe/config.d.ts +6 -12
  151. package/dist/_members/primitives/transitions/ink-wipe/config.d.ts +7 -8
  152. package/dist/_members/primitives/transitions/kinetic-type-mask/config.d.ts +1 -7
  153. package/dist/_members/primitives/transitions/light-leak/config.d.ts +1 -7
  154. package/dist/_members/primitives/transitions/luma-matte/config.d.ts +6 -6
  155. package/dist/_members/primitives/transitions/morph/config.d.ts +5 -6
  156. package/dist/_members/primitives/transitions/spatial-push/config.d.ts +7 -6
  157. package/dist/_members/primitives/transitions/swipe-transition-wipe/config.d.ts +5 -10
  158. package/dist/_members/primitives/transitions/zoom-through/config.d.ts +2 -30
  159. package/dist/_members/primitives/transitions/zoom-through-transition/config.d.ts +1 -13
  160. package/dist/_members/primitives/ui-blocks/ai-generate-overlay/config.d.ts +1 -29
  161. package/dist/_members/primitives/ui-blocks/ai-generation-canvas/config.d.ts +1 -11
  162. package/dist/_members/primitives/ui-blocks/badge-pop/config.d.ts +8 -16
  163. package/dist/_members/primitives/ui-blocks/before-after-slider/config.d.ts +1 -11
  164. package/dist/_members/primitives/ui-blocks/benchmark-bars/config.d.ts +3 -73
  165. package/dist/_members/primitives/ui-blocks/bounding-box-selector/config.d.ts +1 -15
  166. package/dist/_members/primitives/ui-blocks/browser-flow/config.d.ts +1 -7
  167. package/dist/_members/primitives/ui-blocks/brush-stroke-simulator/config.d.ts +1 -21
  168. package/dist/_members/primitives/ui-blocks/chat-exchange/config.d.ts +1 -15
  169. package/dist/_members/primitives/ui-blocks/code-accordion/config.d.ts +2 -26
  170. package/dist/_members/primitives/ui-blocks/context-meter/config.d.ts +1 -13
  171. package/dist/_members/primitives/ui-blocks/cursor-flow/config.d.ts +2 -66
  172. package/dist/_members/primitives/ui-blocks/dashboard-populate/config.d.ts +1 -9
  173. package/dist/_members/primitives/ui-blocks/data-flow-pipes/config.d.ts +3 -97
  174. package/dist/_members/primitives/ui-blocks/device-mockup-zoom/config.d.ts +5 -14
  175. package/dist/_members/primitives/ui-blocks/drag-and-drop-flow/config.d.ts +1 -13
  176. package/dist/_members/primitives/ui-blocks/eval-scorecard/config.d.ts +2 -36
  177. package/dist/_members/primitives/ui-blocks/glass-code-block/config.d.ts +1 -23
  178. package/dist/_members/primitives/ui-blocks/image-expand-to-fullscreen/config.d.ts +3 -113
  179. package/dist/_members/primitives/ui-blocks/metric-gauge/config.d.ts +2 -34
  180. package/dist/_members/primitives/ui-blocks/morphing-modal/config.d.ts +3 -113
  181. package/dist/_members/primitives/ui-blocks/pipeline-journey/config.d.ts +1 -9
  182. package/dist/_members/primitives/ui-blocks/progress-steps/config.d.ts +6 -37
  183. package/dist/_members/primitives/ui-blocks/reasoning-trace/config.d.ts +2 -12
  184. package/dist/_members/primitives/ui-blocks/simulated-cursor/config.d.ts +2 -54
  185. package/dist/_members/primitives/ui-blocks/terminal-simulator/config.d.ts +9 -48
  186. package/dist/_members/primitives/ui-blocks/toast-notification/config.d.ts +7 -20
  187. package/dist/_members/primitives/ui-blocks/tool-call-stack/config.d.ts +2 -42
  188. package/dist/_members/primitives/ui-blocks/tool-menu-slide-in/config.d.ts +1 -19
  189. package/dist/_members/primitives/ui-blocks/visual-docs-snippet/config.d.ts +3 -71
  190. package/dist/_members/primitives/ui-blocks/voice-waveform/config.d.ts +5 -14
  191. package/dist/_members/primitives/workspace.d.ts +1 -5
  192. package/dist/_members/render-harness/cardAssetAdmission.d.ts +3 -0
  193. package/dist/_members/render-harness/cardAssetAdmission.d.ts.map +1 -0
  194. package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
  195. package/dist/_members/render-harness/index.d.ts +1 -5
  196. package/dist/_members/render-harness/index.d.ts.map +1 -1
  197. package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
  198. package/dist/_members/render-harness/remotion-runtime.d.ts +20 -0
  199. package/dist/_members/render-harness/renderInputAssets.d.ts +2 -1
  200. package/dist/_members/render-harness/renderInputAssets.d.ts.map +1 -1
  201. package/dist/_members/render-harness/resolveAssets.d.ts.map +1 -1
  202. package/dist/authoring/build-tools.js +8 -8
  203. package/dist/authoring/context.js +5 -5
  204. package/dist/authoring/models.js +3 -1
  205. package/dist/authoring/resource-routing.js +1 -1
  206. package/dist/authoring/resources.js +1 -1
  207. package/dist/authoring/tools.js +7 -7
  208. package/dist/authoring.js +15 -31
  209. package/dist/chunk-2PGLNTB7.js +132 -0
  210. package/dist/{chunk-R5BMJ2NX.js → chunk-4FOOBSEE.js} +33 -2
  211. package/dist/{chunk-YXEZ75MB.js → chunk-4JRUGT2Y.js} +43 -108
  212. package/dist/{chunk-FMODQD5P.js → chunk-4ZE564YF.js} +16 -9
  213. package/dist/chunk-5OTQ7M43.js +718 -0
  214. package/dist/{chunk-O7GNE4BQ.js → chunk-6ID2J64H.js} +4 -4
  215. package/dist/{chunk-RXCEPCAQ.js → chunk-6XI57FZZ.js} +280 -191
  216. package/dist/{chunk-2SNY75AR.js → chunk-7KEUL3FI.js} +4 -2
  217. package/dist/{chunk-WTT3GGCA.js → chunk-AD5HWBCE.js} +1 -1
  218. package/dist/{chunk-JY26PIRP.js → chunk-C5SEPOWD.js} +163 -171
  219. package/dist/chunk-CGHTMZNC.js +6 -0
  220. package/dist/chunk-DHKQ47Q6.js +57 -0
  221. package/dist/{chunk-3PM6VICZ.js → chunk-DQKSCHFC.js} +4 -4
  222. package/dist/{chunk-D6S3ZKIY.js → chunk-EEXCDFY5.js} +1 -1
  223. package/dist/{chunk-ZT7MHRQU.js → chunk-GCQ7Z7S7.js} +15 -5
  224. package/dist/{chunk-ZBRPF6GV.js → chunk-GEGRJKKO.js} +1 -1
  225. package/dist/{chunk-JRIPQ7DN.js → chunk-IBMJ33EL.js} +3 -3
  226. package/dist/{chunk-JTVFIN6H.js → chunk-IHFREGFA.js} +10 -4
  227. package/dist/chunk-IJ7PVJTK.js +114 -0
  228. package/dist/{chunk-6ABIXGLO.js → chunk-KKEY5MIW.js} +8 -8
  229. package/dist/chunk-KU376ELE.js +392 -0
  230. package/dist/{chunk-7TQCR7AB.js → chunk-LNBVTDFR.js} +1 -1
  231. package/dist/chunk-LQUWKBST.js +195 -0
  232. package/dist/chunk-M2TLRXEO.js +41 -0
  233. package/dist/{chunk-7V3F5HO4.js → chunk-NOEBAV2G.js} +58 -2
  234. package/dist/{chunk-RQ2G4DXI.js → chunk-QBKDEO7J.js} +1502 -1314
  235. package/dist/chunk-RFXR7ATW.js +244 -0
  236. package/dist/{chunk-MCBUX5XV.js → chunk-SLN5UKLT.js} +2 -2
  237. package/dist/{chunk-GH27OS5S.js → chunk-VCBLGZQQ.js} +19 -4
  238. package/dist/{chunk-TLVPDT4R.js → chunk-XHUYWVYK.js} +1 -1
  239. package/dist/{chunk-D2EGO543.js → chunk-XVBOSPZI.js} +15 -17
  240. package/dist/{chunk-YE3F4LNJ.js → chunk-Y3QGYASW.js} +18 -18
  241. package/dist/{chunk-LSP4HN5N.js → chunk-ZCAQHNPI.js} +1 -1
  242. package/dist/{chunk-PJ4R4N4Q.js → chunk-ZN6P3KOJ.js} +70 -93
  243. package/dist/chunk-ZZRBKGDA.js +109 -0
  244. package/dist/component-runtime/browserOptions.d.ts +1 -0
  245. package/dist/component-runtime/browserOptions.js +7 -0
  246. package/dist/component-runtime/contracts.d.ts +1 -0
  247. package/dist/component-runtime/contracts.js +49 -0
  248. package/dist/component-runtime/identity/browser.d.ts +1 -0
  249. package/dist/component-runtime/identity/browser.js +35 -0
  250. package/dist/component-runtime/identity.d.ts +1 -0
  251. package/dist/component-runtime/identity.js +21 -0
  252. package/dist/component-runtime/importPolicy.d.ts +1 -0
  253. package/dist/component-runtime/importPolicy.js +10 -0
  254. package/dist/component-runtime/render.d.ts +1 -0
  255. package/dist/component-runtime/render.js +34 -0
  256. package/dist/component-runtime.d.ts +1 -0
  257. package/dist/component-runtime.js +132 -0
  258. package/dist/compose.js +17 -31
  259. package/dist/composition/graphics-plan.js +1 -1
  260. package/dist/composition/ops.js +4 -4
  261. package/dist/composition/primitive-catalog.js +1 -3
  262. package/dist/composition/projection.js +2 -2
  263. package/dist/composition/timeline.js +2 -2
  264. package/dist/composition/validators.js +2 -2
  265. package/dist/composition-ops.js +23 -17
  266. package/dist/composition.js +15 -15
  267. package/dist/{context-XWNT6QZH.js → context-4GSDBFT3.js} +5 -5
  268. package/dist/core/render.js +8 -8
  269. package/dist/core/select.js +2 -2
  270. package/dist/core.js +6 -6
  271. package/dist/director/ai-sdk.js +3 -3
  272. package/dist/director/domain.js +2 -2
  273. package/dist/director.js +3 -3
  274. package/dist/errors.js +1 -1
  275. package/dist/mcp/adapter.js +22 -29
  276. package/dist/mcp/core.js +1 -1
  277. package/dist/mcp/curation.js +1 -1
  278. package/dist/mcp/executor.js +1 -1
  279. package/dist/mcp/server.js +4 -6
  280. package/dist/mcp/wire-schema.d.ts +1 -0
  281. package/dist/mcp/wire-schema.js +37 -0
  282. package/dist/mcp.js +6 -29
  283. package/dist/nle-export.js +16 -25
  284. package/dist/plane/conformance.js +1 -1
  285. package/dist/plane/contract.js +7 -0
  286. package/dist/plane.js +1 -1
  287. package/dist/primitives/backgrounds.js +2 -2
  288. package/dist/primitives/captions.js +3 -3
  289. package/dist/primitives/effects.js +2 -2
  290. package/dist/primitives/layouts.js +2 -2
  291. package/dist/primitives/lib/index.js +8 -8
  292. package/dist/primitives/lib/schema.js +1 -1
  293. package/dist/primitives/lib.js +8 -8
  294. package/dist/primitives/text.js +2 -2
  295. package/dist/primitives/ui-blocks.js +2 -2
  296. package/dist/primitives.js +18 -18
  297. package/dist/render-harness/cardAssetAdmission.d.ts +1 -0
  298. package/dist/render-harness/cardAssetAdmission.js +8 -0
  299. package/dist/render-harness/renderInputAssets.d.ts +1 -0
  300. package/dist/render-harness/renderInputAssets.js +17 -0
  301. package/dist/render-harness.js +44 -574
  302. package/package.json +71 -34
  303. package/dist/_members/authoring/transpileComponent.d.ts +0 -6
  304. package/dist/_members/authoring/transpileHelper.d.ts +0 -8
  305. package/dist/_members/compose/CompositionRenderer.d.ts +0 -6
  306. package/dist/_members/compose/sceneToRenderInput.d.ts +0 -25
  307. package/dist/_members/compose/schema.d.ts +0 -30
  308. package/dist/_members/compose/tokenResolver.d.ts +0 -17
  309. package/dist/_members/render-harness/browserOptions.d.ts +0 -11
  310. package/dist/_members/render-harness/browserOptions.d.ts.map +0 -1
  311. package/dist/_members/render-harness/contractRender.d.ts +0 -27
  312. package/dist/_members/render-harness/contractRender.d.ts.map +0 -1
  313. package/dist/_members/render-harness/localRender.d.ts.map +0 -1
  314. package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts +0 -9
  315. package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts.map +0 -1
  316. package/dist/authoring/transpileComponent.d.ts +0 -1
  317. package/dist/authoring/transpileComponent.js +0 -31
  318. package/dist/authoring/transpileHelper.d.ts +0 -1
  319. package/dist/authoring/transpileHelper.js +0 -9
  320. package/dist/chunk-MHOQTPOB.js +0 -124
  321. package/dist/chunk-QSDFTYKV.js +0 -85
  322. package/dist/chunk-RHVLQNYF.js +0 -20
  323. package/dist/chunk-V24L35GM.js +0 -61
  324. package/dist/compose/renderer.d.ts +0 -1
  325. package/dist/compose/renderer.js +0 -170
  326. package/dist/render-harness/sandboxGlobalSpecs.d.ts +0 -1
  327. package/dist/render-harness/sandboxGlobalSpecs.js +0 -13
  328. package/dist/{chunk-THJAY7QS.js → chunk-BKHGL4MB.js} +4 -4
  329. package/dist/{chunk-XATRRDVG.js → chunk-G5BFI32U.js} +3 -3
  330. package/dist/{chunk-23HFEKV7.js → chunk-QISFYLBB.js} +4 -4
@@ -3,6 +3,64 @@ function fmtClock(sec) {
3
3
  return `${Math.floor(sec / 60)}:${String(Math.floor(sec % 60)).padStart(2, "0")}`;
4
4
  }
5
5
 
6
+ // ../mcp/src/mediaContextFormat.ts
7
+ var CONTEXT_WINDOW_CAP = 6;
8
+ var CONTEXT_FACE_CAP = 3;
9
+ var CONTEXT_SAMPLE_WORDS = 24;
10
+ function formatMediaContext(json) {
11
+ const lines = [];
12
+ const dims = json?.width && json?.height ? `${json.width}\xD7${json.height}` : "unknown dimensions";
13
+ const duration = typeof json?.durationSec === "number" ? fmtClock(json.durationSec) : "unknown duration";
14
+ lines.push(`Media ${json?.mediaId ?? "?"} \u2014 ${dims}, ${duration}`);
15
+ if (json?.thumbnail?.url) lines.push(`thumbnail: ${json.thumbnail.url}`);
16
+ const windows = Array.isArray(json?.faces?.windows) ? json.faces.windows : [];
17
+ lines.push(`faces: ${json?.faces?.status ?? "unknown"} (${windows.length} source window(s))`);
18
+ for (const window of windows.slice(0, CONTEXT_WINDOW_CAP)) {
19
+ const faces = Array.isArray(window?.faces) ? window.faces : [];
20
+ const roster = faces.slice(0, CONTEXT_FACE_CAP).map((face) => {
21
+ const bbox = face?.bbox ?? {};
22
+ const box = [bbox.x, bbox.y, bbox.width, bbox.height].every((value) => typeof value === "number") ? ` bbox:${[bbox.x, bbox.y, bbox.width, bbox.height].map((n) => n.toFixed(3)).join(",")}` : "";
23
+ const speaking = typeof face?.speakingShare === "number" ? ` speaking:${Math.round(face.speakingShare * 100)}%` : "";
24
+ return `${face?.faceId ?? "?"}${box}${speaking}`;
25
+ });
26
+ lines.push(`- ${window?.window?.startSec ?? "?"}\u2192${window?.window?.endSec ?? "?"}s: ${roster.join(" | ") || "no usable subjects"}`);
27
+ }
28
+ if (windows.length > CONTEXT_WINDOW_CAP) lines.push(`- \u2026 ${windows.length - CONTEXT_WINDOW_CAP} more face windows elided`);
29
+ const transcript = json?.transcript;
30
+ const utterances = Array.isArray(transcript?.data?.utterances) ? transcript.data.utterances : Array.isArray(transcript?.data?.data) ? transcript.data.data : [];
31
+ const words = utterances.flatMap((utterance) => Array.isArray(utterance?.words) ? utterance.words : []);
32
+ const sample = words.slice(0, CONTEXT_SAMPLE_WORDS).map((word) => {
33
+ const start = typeof word?.start === "number" ? `@${word.start.toFixed(2)}s` : "";
34
+ return `${word?.word ?? word?.text ?? ""}${start}`;
35
+ }).filter(Boolean);
36
+ lines.push(`transcript: ${transcript?.status ?? "unknown"} (${utterances.length} utterance(s), ${words.length} word(s))`);
37
+ if (sample.length) lines.push(`sample: ${sample.join(" ")}`);
38
+ if (transcript?.status === "ready") {
39
+ lines.push("Use get_transcript(mediaItemId, limit, after/before) for exact paginated word timings.");
40
+ }
41
+ if (json?.beatGrid) {
42
+ const beats = Array.isArray(json.beatGrid.beatTimesMs) ? json.beatGrid.beatTimesMs : [];
43
+ lines.push(`beatGrid: ${json.beatGrid.bpm ?? "?"} bpm, ${beats.length} beats, ${json.beatGrid.method ?? "?"}${beats.length ? `; first ms: ${beats.slice(0, 12).join(",")}` : ""}`);
44
+ } else lines.push("beatGrid: none");
45
+ const wordTimes = Array.isArray(json?.wordGrid?.wordTimesMs) ? json.wordGrid.wordTimesMs : [];
46
+ lines.push(`wordGrid: ${wordTimes.length} onsets${wordTimes.length ? `; first ms: ${wordTimes.slice(0, 12).join(",")}` : ""}`);
47
+ lines.push(`audio: role=${json?.audioRole ?? "none"} envelope=${json?.envelope?.envelopeClass ?? "none"}`);
48
+ const facts = Array.isArray(json?.facts) ? json.facts : [];
49
+ const offers = Array.isArray(json?.offers) ? json.offers : [];
50
+ lines.push(`facts: ${facts.map((fact) => `${fact?.kind ?? "?"}:${fact?.status ?? "?"}`).join(", ") || "none"}`);
51
+ lines.push(`offers: ${offers.map((offer) => `${offer?.kind ?? "?"}${offer?.quotedUsd != null ? `($${offer.quotedUsd})` : ""}`).join(", ") || "none"}`);
52
+ return lines.join("\n");
53
+ }
54
+ function formatTranscriptPage(json) {
55
+ const utterances = Array.isArray(json?.data) ? json.data : Array.isArray(json?.utterances) ? json.utterances : [];
56
+ return JSON.stringify({
57
+ mediaItemId: json?.mediaItemId,
58
+ language: json?.language,
59
+ utterances,
60
+ ...json?.pagination ? { pagination: json.pagination } : {}
61
+ }, null, 2);
62
+ }
63
+
6
64
  // ../mcp/src/generated/catalogPreviews.ts
7
65
  var CATALOG_PREVIEWS = {
8
66
  "animated-bar-chart": "https://cdn.cueframe.ai/previews/animated-bar-chart@0.2.1.jpg",
@@ -112,7 +170,7 @@ ${lines.join("\n")}`;
112
170
  function formatComponentList(json) {
113
171
  const data = Array.isArray(json?.data) ? json.data : [];
114
172
  if (data.length === 0) {
115
- return "No components match. Drop a filter, or browse unfiltered (list_catalog with no args returns the whole built-in catalog).";
173
+ return "No components match. Drop a filter, or browse the default first page with list_catalog().";
116
174
  }
117
175
  const lines = data.map((e) => {
118
176
  const facets = [e.category, e.kind, e.tier].filter(Boolean).join(" \xB7 ");
@@ -121,7 +179,10 @@ function formatComponentList(json) {
121
179
  const baked = Array.isArray(e.fixedCopy) && e.fixedCopy.length ? ` [bakes fixed copy]` : "";
122
180
  return `- ${e.id} ${e.name} (${facets})${uc}${baked}${place}`;
123
181
  });
124
- const more = json?.pagination?.hasMore ? "\n\n(more \u2014 pass `after` to page)" : "";
182
+ const nextCursor = json?.pagination?.nextCursor;
183
+ const more = json?.pagination?.hasMore && typeof nextCursor === "string" ? `
184
+
185
+ (more \u2014 pass after=${JSON.stringify(nextCursor)})` : "";
125
186
  return `${data.length} component${data.length !== 1 ? "s" : ""} (recommended-tier first when filtered):
126
187
 
127
188
  ${lines.join("\n")}${more}`;
@@ -231,62 +292,6 @@ function formatWarnings(json) {
231
292
 
232
293
  \u26A0 ${warns.join("\n\u26A0 ")}` : "";
233
294
  }
234
- var CONTEXT_WINDOW_CAP = 6;
235
- var CONTEXT_FACE_CAP = 3;
236
- var CONTEXT_SAMPLE_WORDS = 24;
237
- function formatMediaContext(json) {
238
- const lines = [];
239
- const dims = json?.width && json?.height ? `${json.width}\xD7${json.height}` : "unknown dimensions";
240
- const duration = typeof json?.durationSec === "number" ? fmtClock(json.durationSec) : "unknown duration";
241
- lines.push(`Media ${json?.mediaId ?? "?"} \u2014 ${dims}, ${duration}`);
242
- if (json?.thumbnail?.url) lines.push(`thumbnail: ${json.thumbnail.url}`);
243
- const windows = Array.isArray(json?.faces?.windows) ? json.faces.windows : [];
244
- lines.push(`faces: ${json?.faces?.status ?? "unknown"} (${windows.length} source window(s))`);
245
- for (const window of windows.slice(0, CONTEXT_WINDOW_CAP)) {
246
- const faces = Array.isArray(window?.faces) ? window.faces : [];
247
- const roster = faces.slice(0, CONTEXT_FACE_CAP).map((face) => {
248
- const bbox = face?.bbox ?? {};
249
- const box = [bbox.x, bbox.y, bbox.width, bbox.height].every((value) => typeof value === "number") ? ` bbox:${[bbox.x, bbox.y, bbox.width, bbox.height].map((n) => n.toFixed(3)).join(",")}` : "";
250
- const speaking = typeof face?.speakingShare === "number" ? ` speaking:${Math.round(face.speakingShare * 100)}%` : "";
251
- return `${face?.faceId ?? "?"}${box}${speaking}`;
252
- });
253
- lines.push(`- ${window?.window?.startSec ?? "?"}\u2192${window?.window?.endSec ?? "?"}s: ${roster.join(" | ") || "no usable subjects"}`);
254
- }
255
- if (windows.length > CONTEXT_WINDOW_CAP) lines.push(`- \u2026 ${windows.length - CONTEXT_WINDOW_CAP} more face windows elided`);
256
- const transcript = json?.transcript;
257
- const utterances = Array.isArray(transcript?.data?.utterances) ? transcript.data.utterances : Array.isArray(transcript?.data?.data) ? transcript.data.data : [];
258
- const words = utterances.flatMap((utterance) => Array.isArray(utterance?.words) ? utterance.words : []);
259
- const sample = words.slice(0, CONTEXT_SAMPLE_WORDS).map((word) => {
260
- const start = typeof word?.start === "number" ? `@${word.start.toFixed(2)}s` : "";
261
- return `${word?.word ?? word?.text ?? ""}${start}`;
262
- }).filter(Boolean);
263
- lines.push(`transcript: ${transcript?.status ?? "unknown"} (${utterances.length} utterance(s), ${words.length} word(s))`);
264
- if (sample.length) lines.push(`sample: ${sample.join(" ")}`);
265
- if (transcript?.status === "ready") {
266
- lines.push("Use get_transcript(mediaItemId, limit, after/before) for exact paginated word timings.");
267
- }
268
- if (json?.beatGrid) {
269
- const beats = Array.isArray(json.beatGrid.beatTimesMs) ? json.beatGrid.beatTimesMs : [];
270
- lines.push(`beatGrid: ${json.beatGrid.bpm ?? "?"} bpm, ${beats.length} beats, ${json.beatGrid.method ?? "?"}${beats.length ? `; first ms: ${beats.slice(0, 12).join(",")}` : ""}`);
271
- } else lines.push("beatGrid: none");
272
- const wordTimes = Array.isArray(json?.wordGrid?.wordTimesMs) ? json.wordGrid.wordTimesMs : [];
273
- lines.push(`wordGrid: ${wordTimes.length} onsets${wordTimes.length ? `; first ms: ${wordTimes.slice(0, 12).join(",")}` : ""}`);
274
- lines.push(`audio: role=${json?.audioRole ?? "none"} envelope=${json?.envelope?.envelopeClass ?? "none"}`);
275
- const facts = Array.isArray(json?.facts) ? json.facts : [];
276
- const offers = Array.isArray(json?.offers) ? json.offers : [];
277
- lines.push(`facts: ${facts.map((fact) => `${fact?.kind ?? "?"}:${fact?.status ?? "?"}`).join(", ") || "none"}`);
278
- lines.push(`offers: ${offers.map((offer) => `${offer?.kind ?? "?"}${offer?.quotedUsd != null ? `($${offer.quotedUsd})` : ""}`).join(", ") || "none"}`);
279
- return lines.join("\n");
280
- }
281
- function formatTranscriptPage(json) {
282
- const utterances = Array.isArray(json?.data) ? json.data : Array.isArray(json?.utterances) ? json.utterances : [];
283
- return JSON.stringify({
284
- mediaItemId: json?.mediaItemId,
285
- language: json?.language,
286
- utterances,
287
- ...json?.pagination ? { pagination: json.pagination } : {}
288
- }, null, 2);
289
- }
290
295
  var CURATED_TOOLS = [
291
296
  {
292
297
  name: "compose",
@@ -367,13 +372,13 @@ Call wait_job(kind="preview_frame", id="${j.jobId}") for the rendered images.`,
367
372
  name: "preview_component",
368
373
  operationId: "previewComponent",
369
374
  pathArgs: { projectId: "id" },
370
- description: 'Queue a typed preview artifact for ONE org-installed component \u2014 ASYNC: returns a jobId immediately; then wait_job(kind="preview", id=jobId). Live components return artifactKind="image" with image/png or image/jpeg still evidence; baked components return artifactKind="motion" with the SAME content-addressed video/webm VP9-alpha object the production render composites. `body.componentId` selects the component; pass `body.params` to render it with props. Compile/runtime failures land on the job terminal with sanitized author-fixable messages. Idempotent per (componentId, params, dims).',
375
+ description: 'Queue a typed preview artifact for ONE org-installed component \u2014 ASYNC: returns a jobId immediately; then wait_job(kind="preview", id=jobId). The preview and production compositor consume the same content-addressed component bundle and verified artifact contract. `body.componentId` selects the component; pass `body.params` to render it with props. Compile/runtime/capability failures land on the job terminal with sanitized author-fixable messages. Idempotent per immutable render key.',
371
376
  okFormat: (j) => `Preview job queued.
372
377
 
373
378
  jobId: ${j.jobId}
374
379
  status: ${j.status}
375
380
 
376
- Call wait_job(kind="preview", id="${j.jobId}") for the typed preview artifact (live=image, baked=motion; re-call it if it returns still-running).`,
381
+ Call wait_job(kind="preview", id="${j.jobId}") for the verified preview artifact; re-call it if it returns still-running.`,
377
382
  annotations: { idempotentHint: true }
378
383
  },
379
384
  {
@@ -431,10 +436,6 @@ Call wait_job(kind="verify", id="${j.jobId}") to block until the scores + checkp
431
436
  name: "list_briefs",
432
437
  operationId: "listBriefs",
433
438
  description: 'List briefs. DEFAULT shows human-authored briefs only; kind:"clip" shows the machine-minted clip briefs (suggest_briefs output), kind:"all" shows everything. Each carries its quote.',
434
- queryArgs: {
435
- projectId: "Scope to one project.",
436
- kind: "'authored' (default) | 'clip' | 'all'."
437
- },
438
439
  annotations: { readOnlyHint: true }
439
440
  },
440
441
  {
@@ -452,10 +453,6 @@ Call wait_job(kind="verify", id="${j.jobId}") to block until the scores + checkp
452
453
  name: "list_checkpoints",
453
454
  operationId: "listCheckpoints",
454
455
  description: "List checkpoint packets newest-first (filter with composeJobId for one run's v1\u2192vN gate history, or projectId). The version stack with per-version status + decisions IS the review history \u2014 nothing is deleted.",
455
- queryArgs: {
456
- composeJobId: "One compose run's gate history (v1\u2192vN).",
457
- projectId: "Scope to one project."
458
- },
459
456
  annotations: { readOnlyHint: true }
460
457
  },
461
458
  {
@@ -485,7 +482,8 @@ Call wait_job(kind="verify", id="${j.jobId}") to block until the scores + checkp
485
482
  {
486
483
  name: "list_catalog",
487
484
  operationId: "listCatalog",
488
- description: "DISCOVER WHAT TO BUILD WITH \u2014 list the component catalog: the FULL built-in primitive catalog (text, effects, transitions, layouts, backgrounds, and scenes: lower-third, cinematic-title, color-grade, product-launch-trailer, \u2026) PLUS your org-installed components. Use it for UTILITY furniture (captions, grades, transitions, backgrounds, scenes) and as REFERENCE CODE (get_component_source) \u2014 for BRAND or text graphics, default to authoring your OWN `kind:'card'` clip (your HTML + tokens, poster-grade typography) shelled with `applyMotionPreset`; a catalog text primitive is the quick generic fallback, not the identity path. Narrow with filters: `category` (text|effects|transitions|layouts|backgrounds|ui-blocks|scenes), `kind` (component|transition|scene), `tier` (recommended|standard|niche), `useCase` (intro|outro|full-scene|title-over-footage|transition|background|grade|emphasis|explainer|social-cut), `mood`, or free-text `q`/`intent` (e.g. intent='intro'). When any filter is set, results are recommended-tier-first. With NO `limit` the whole filtered catalog returns in one page. Each entry carries a `placement` hint = exactly how to author it via apply_composition ({kind:'overlay'|'effect', primitiveId} for built-ins; {kind:'component', componentId} for installed), `tier`/`useCase` to pick by, and `fixedCopy` (on-screen strings it BAKES that no param changes \u2014 fork via get_component_source to edit). Read cueframe://component/{id} for the full prop schema.",
485
+ defaults: { limit: 20 },
486
+ description: "DISCOVER WHAT TO BUILD WITH \u2014 list the component catalog: the built-in primitive catalog plus your org-installed components. The agent-safe default page is 20 entries; use pagination.nextCursor as `after`, or narrow with category, kind, tier, useCase, mood, q, or intent. Results are recommended-tier-first when filtered. Each entry carries the exact placement hint for apply_composition and fixedCopy warnings; use get_component_source to fork a primitive when baked copy must change. Read cueframe://component/{id} for the full prop schema.",
489
487
  okFormat: (j) => formatComponentList(j),
490
488
  annotations: { readOnlyHint: true },
491
489
  preview: {
@@ -517,11 +515,6 @@ ${j.tsxSource}`,
517
515
  name: "get_transcript",
518
516
  operationId: "getMediaTranscript",
519
517
  pathArgs: { mediaItemId: "id" },
520
- queryArgs: {
521
- after: "Zero-based utterance cursor returned as pagination.nextCursor.",
522
- before: "Zero-based utterance cursor for a backward page; do not combine with after.",
523
- limit: "Utterances per page (1\u2013100). Use 20 by default."
524
- },
525
518
  description: "Read exact source-time transcript words in bounded utterance pages. Word start/end values are seconds from the source media start. Pass limit (20 recommended), then pagination.nextCursor as after; the formatter omits the unbounded fullText duplicate.",
526
519
  okFormat: (j) => formatTranscriptPage(j),
527
520
  annotations: { readOnlyHint: true }
@@ -544,11 +537,6 @@ Poll get_media_facts(mediaItemId="${a.mediaItemId}", kind="${a.body?.kind}", sta
544
537
  name: "get_media_facts",
545
538
  operationId: "listMediaFacts",
546
539
  pathArgs: { mediaItemId: "id" },
547
- queryArgs: {
548
- kind: "Optional exact fact kind: subjectTrack | matte. Requires startSec and endSec.",
549
- startSec: "Source-window start in seconds. Send together with kind and endSec.",
550
- endSec: "Source-window end in seconds. Send together with kind and startSec."
551
- },
552
540
  description: "Read prepared subject tracks and behind-subject mattes for one media item. For an exact readiness check, pass kind + startSec + endSec together using the same SOURCE window sent to prepare_media; exact.state is pending | ready | failed | available | unavailable. Use this after prepare_media and do not call preview_frame / score_composition until the required exact fact is ready.",
553
541
  annotations: { readOnlyHint: true, idempotentHint: true }
554
542
  },
@@ -556,11 +544,6 @@ Poll get_media_facts(mediaItemId="${a.mediaItemId}", kind="${a.body?.kind}", sta
556
544
  name: "list_media",
557
545
  operationId: "listMedia",
558
546
  description: "List the media in your CueFrame library. Filter a real library with kind (video|audio|image|gif|asset|source|stock), source (upload|generated|import-url|stock), or tag \u2014 so you find YOUR footage, not e2e debris. Returns media item IDs and metadata; use an ID with get_media_context, suggest_briefs, or as a composition source.",
559
- queryArgs: {
560
- kind: "video | audio | image | gif | asset | source | stock.",
561
- source: "upload | generated | import-url | stock.",
562
- tag: "Exact tag match."
563
- },
564
547
  okFormat: (j) => formatMediaList(j),
565
548
  annotations: { readOnlyHint: true }
566
549
  },
@@ -647,7 +630,7 @@ Render it with create_render(projectId="${a.projectId}", body={ compositionId: "
647
630
  description: "Search licensed stock media to compose with across video, photo, sound effects, and GIFs. Pass query for ONE search, or queries[] (\u226410) to run them all in a SINGLE call \u2014 strongly prefer the batch when you know several things you need. A batch returns results[], one per query in order, each with its own candidates; a query that fails carries an error and never discards the others. Optional kind [default video], provider pin, and limit \u226450 apply to every query in the batch. Returns ranked candidates, each with an opaque candidateId + attribution (author, assetUrl) + license, and a preview URL in the text. FREE + rate-limited + cached \u2014 reach for this before generate_media when real footage beats synthesis. TO SEE the candidates rather than read about them, pass limit \u22652: thumbnails/audio are attached only when you asked for options to compare. Import a chosen candidate into a project with import_resource. Candidate handles expire; re-search to refresh one.",
648
631
  okFormat: (j) => formatResourceCandidates(j),
649
632
  preview: {
650
- urls: (j) => (Array.isArray(j?.results) ? j.results.flatMap((r) => Array.isArray(r?.candidates) ? r.candidates : []) : Array.isArray(j?.candidates) ? j.candidates : []).map((c) => c?.previewUrl),
633
+ urls: (j) => (Array.isArray(j?.results) ? j.results.flatMap((r) => Array.isArray(r?.candidates) ? r.candidates : []) : Array.isArray(j?.candidates) ? j.candidates : []).map((c) => (j?.kind ?? j?.results?.[0]?.kind) === "sfx" ? c?.previewUrl : c?.thumbnail),
651
634
  kind: (j) => (j?.kind ?? j?.results?.[0]?.kind) === "sfx" ? "audio" : "image",
652
635
  cap: 12,
653
636
  attach: (j) => Array.isArray(j?.results) ? true : (Array.isArray(j?.candidates) ? j.candidates.length : 0) > 1
@@ -805,12 +788,6 @@ Render it with create_render(projectId="${a.projectId}", body={ compositionId: "
805
788
  name: "get_usage",
806
789
  operationId: "getUsage",
807
790
  description: `The A2 usage ledger: every metered billing event newest-first with attribution \u2014 featureId, amount, the project/job that produced it, and the event's LIST price in USD (a plan allowance may zero it on the invoice). Answer "what did project X cost this period?" with a query instead of summing your own quotes. Filter by projectId, jobId, and/or a [from, to) epoch-ms window. Requires the billing:read scope.`,
808
- queryArgs: {
809
- projectId: "Scope to one project.",
810
- jobId: "One job/render/compose/media id.",
811
- from: "Period start, epoch-ms (inclusive).",
812
- to: "Period end, epoch-ms (exclusive)."
813
- },
814
791
  annotations: { readOnlyHint: true }
815
792
  },
816
793
  {
@@ -983,13 +960,13 @@ var CRUD_COVERAGE = [
983
960
  ];
984
961
 
985
962
  export {
963
+ formatMediaContext,
964
+ formatTranscriptPage,
986
965
  formatMediaList,
987
966
  formatComponentList,
988
967
  formatResourceCandidates,
989
968
  formatComposition,
990
969
  formatWarnings,
991
- formatMediaContext,
992
- formatTranscriptPage,
993
970
  CURATED_TOOLS,
994
971
  INTERNAL_EDITOR_TOOLS,
995
972
  KNOWN_BACKEND_GAPS,
@@ -0,0 +1,109 @@
1
+ // ../execution/primitives/src/lib/schema.ts
2
+ import { z } from "zod";
3
+ function zodToJsonSchemaFor(schema, _name) {
4
+ return z.toJSONSchema(schema, {
5
+ target: "draft-7",
6
+ io: "input",
7
+ reused: "inline"
8
+ });
9
+ }
10
+ function zodToDefaults(schema) {
11
+ if (!(schema instanceof z.ZodObject)) {
12
+ return {};
13
+ }
14
+ const out = {};
15
+ for (const [key, field] of Object.entries(schema.shape)) {
16
+ const parsed = field.safeParse(void 0);
17
+ if (parsed.success && parsed.data !== void 0) {
18
+ out[key] = parsed.data;
19
+ continue;
20
+ }
21
+ if (field instanceof z.ZodObject) {
22
+ const nested = zodToDefaults(field);
23
+ if (Object.keys(nested).length > 0) {
24
+ out[key] = nested;
25
+ }
26
+ }
27
+ }
28
+ return out;
29
+ }
30
+ function zodToControls(schema) {
31
+ if (!(schema instanceof z.ZodObject)) return [];
32
+ const controls = [];
33
+ for (const [name, field] of Object.entries(schema.shape)) {
34
+ const control = fieldToControl(name, field);
35
+ if (control) controls.push(control);
36
+ }
37
+ return controls;
38
+ }
39
+ function fieldToControl(name, field) {
40
+ let current = field;
41
+ let required = true;
42
+ let defaultValue;
43
+ while (true) {
44
+ if (current instanceof z.ZodOptional) {
45
+ required = false;
46
+ current = current.unwrap();
47
+ continue;
48
+ }
49
+ if (current instanceof z.ZodDefault) {
50
+ required = false;
51
+ const parsed = current.safeParse(void 0);
52
+ if (parsed.success) defaultValue = parsed.data;
53
+ current = current.unwrap();
54
+ continue;
55
+ }
56
+ break;
57
+ }
58
+ const description = current.description;
59
+ const label = humanize(name);
60
+ if (current instanceof z.ZodString) {
61
+ const looksLikeColor = /color|colour|hex/i.test(name);
62
+ return {
63
+ name,
64
+ label,
65
+ description,
66
+ type: looksLikeColor ? "color" : "string",
67
+ defaultValue,
68
+ required
69
+ };
70
+ }
71
+ if (current instanceof z.ZodNumber) {
72
+ const min = current.minValue ?? void 0;
73
+ const max = current.maxValue ?? void 0;
74
+ const step = inferStep(min, max);
75
+ return { name, label, description, type: "number", defaultValue, min, max, step, required };
76
+ }
77
+ if (current instanceof z.ZodBoolean) {
78
+ return { name, label, description, type: "boolean", defaultValue, required };
79
+ }
80
+ if (current instanceof z.ZodEnum) {
81
+ return {
82
+ name,
83
+ label,
84
+ description,
85
+ type: "select",
86
+ defaultValue,
87
+ options: current.options.filter((value) => typeof value === "string"),
88
+ required
89
+ };
90
+ }
91
+ return null;
92
+ }
93
+ function humanize(name) {
94
+ return name.replace(/([A-Z])/g, " $1").replace(/[-_]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (c) => c.toUpperCase());
95
+ }
96
+ function inferStep(min, max) {
97
+ if (min === void 0 || max === void 0) return 1;
98
+ const range = max - min;
99
+ if (range <= 1) return 0.01;
100
+ if (range <= 10) return 0.1;
101
+ if (range <= 100) return 1;
102
+ return Math.max(1, Math.round(range / 100));
103
+ }
104
+
105
+ export {
106
+ zodToJsonSchemaFor,
107
+ zodToDefaults,
108
+ zodToControls
109
+ };
@@ -0,0 +1 @@
1
+ export * from "../_members/component-runtime/browserOptions.js";
@@ -0,0 +1,7 @@
1
+ import {
2
+ COMPONENT_CHROMIUM_OPTIONS
3
+ } from "../chunk-CGHTMZNC.js";
4
+ import "../chunk-2ESYSVXG.js";
5
+ export {
6
+ COMPONENT_CHROMIUM_OPTIONS
7
+ };
@@ -0,0 +1 @@
1
+ export * from "../_members/component-runtime/contracts.js";
@@ -0,0 +1,49 @@
1
+ import {
2
+ CANVAS2D_COMPONENT_MANIFEST_V2,
3
+ COMPONENT_BUNDLE_VERSION,
4
+ COMPONENT_RECEIPT_VERSION,
5
+ COMPONENT_RUNTIME_ERROR_CODES,
6
+ COMPONENT_SOURCE_VERSION,
7
+ ComponentAssetBindingV2,
8
+ ComponentAssetDeclarationV2,
9
+ ComponentAssetFileV2,
10
+ ComponentAssetInputV2,
11
+ ComponentAssetKind,
12
+ ComponentBakeJobV2,
13
+ ComponentBakeRequestV2,
14
+ ComponentBundleV2,
15
+ ComponentGraphicsActualV2,
16
+ ComponentGraphicsRequirementV2,
17
+ ComponentManifestV2,
18
+ ComponentRenderReceiptV2,
19
+ ComponentRenderRequestV2,
20
+ ComponentRuntimeError,
21
+ ComponentRuntimeErrorCode,
22
+ ComponentSourceV2,
23
+ assertGraphicsReceiptMatches
24
+ } from "../chunk-LQUWKBST.js";
25
+ import "../chunk-2ESYSVXG.js";
26
+ export {
27
+ CANVAS2D_COMPONENT_MANIFEST_V2,
28
+ COMPONENT_BUNDLE_VERSION,
29
+ COMPONENT_RECEIPT_VERSION,
30
+ COMPONENT_RUNTIME_ERROR_CODES,
31
+ COMPONENT_SOURCE_VERSION,
32
+ ComponentAssetBindingV2,
33
+ ComponentAssetDeclarationV2,
34
+ ComponentAssetFileV2,
35
+ ComponentAssetInputV2,
36
+ ComponentAssetKind,
37
+ ComponentBakeJobV2,
38
+ ComponentBakeRequestV2,
39
+ ComponentBundleV2,
40
+ ComponentGraphicsActualV2,
41
+ ComponentGraphicsRequirementV2,
42
+ ComponentManifestV2,
43
+ ComponentRenderReceiptV2,
44
+ ComponentRenderRequestV2,
45
+ ComponentRuntimeError,
46
+ ComponentRuntimeErrorCode,
47
+ ComponentSourceV2,
48
+ assertGraphicsReceiptMatches
49
+ };
@@ -0,0 +1 @@
1
+ export * from "../../_members/component-runtime/browserIdentity.js";
@@ -0,0 +1,35 @@
1
+ import {
2
+ componentArtifactIdentity,
3
+ componentBundleIdentity,
4
+ componentRenderIdentity,
5
+ sourceVersionIdentity
6
+ } from "../../chunk-DHKQ47Q6.js";
7
+ import "../../chunk-2ESYSVXG.js";
8
+
9
+ // ../execution/component-runtime/src/browserIdentity.ts
10
+ function hex(bytes) {
11
+ return [...new Uint8Array(bytes)].map((byte) => byte.toString(16).padStart(2, "0")).join("");
12
+ }
13
+ async function sha256HexBrowser(value) {
14
+ const bytes = typeof value === "string" ? new TextEncoder().encode(value) : value;
15
+ return hex(await crypto.subtle.digest("SHA-256", bytes));
16
+ }
17
+ async function sourceVersionIdBrowser(source) {
18
+ return sha256HexBrowser(sourceVersionIdentity(source));
19
+ }
20
+ async function componentBundleIdBrowser(input) {
21
+ return sha256HexBrowser(componentBundleIdentity(input));
22
+ }
23
+ async function componentRenderKeyBrowser(request) {
24
+ return sha256HexBrowser(componentRenderIdentity(request));
25
+ }
26
+ async function componentArtifactIdBrowser(input) {
27
+ return sha256HexBrowser(componentArtifactIdentity(input));
28
+ }
29
+ export {
30
+ componentArtifactIdBrowser,
31
+ componentBundleIdBrowser,
32
+ componentRenderKeyBrowser,
33
+ sha256HexBrowser,
34
+ sourceVersionIdBrowser
35
+ };
@@ -0,0 +1 @@
1
+ export * from "../_members/component-runtime/identity.js";
@@ -0,0 +1,21 @@
1
+ import {
2
+ bundleIdentityFields,
3
+ componentArtifactId,
4
+ componentBundleId,
5
+ componentRenderKey,
6
+ sha256Hex,
7
+ sourceVersionId
8
+ } from "../chunk-M2TLRXEO.js";
9
+ import {
10
+ canonicalJson
11
+ } from "../chunk-DHKQ47Q6.js";
12
+ import "../chunk-2ESYSVXG.js";
13
+ export {
14
+ bundleIdentityFields,
15
+ canonicalJson,
16
+ componentArtifactId,
17
+ componentBundleId,
18
+ componentRenderKey,
19
+ sha256Hex,
20
+ sourceVersionId
21
+ };
@@ -0,0 +1 @@
1
+ export * from "../_members/component-runtime/importPolicy.js";
@@ -0,0 +1,10 @@
1
+ import {
2
+ COMPONENT_IMPORT_ALLOWLIST,
3
+ assertComponentImportsAllowed
4
+ } from "../chunk-2PGLNTB7.js";
5
+ import "../chunk-LQUWKBST.js";
6
+ import "../chunk-2ESYSVXG.js";
7
+ export {
8
+ COMPONENT_IMPORT_ALLOWLIST,
9
+ assertComponentImportsAllowed
10
+ };
@@ -0,0 +1 @@
1
+ export * from "../_members/component-runtime/render.js";
@@ -0,0 +1,34 @@
1
+ import {
2
+ GRAPHICS_ATTESTATION_PREFIX,
3
+ LOCAL_COMPOSITION_ID,
4
+ LOCAL_ENTRY_FILENAME,
5
+ LOCAL_ROOT_FILENAME,
6
+ alphaExt,
7
+ alphaRenderConfig,
8
+ buildLocalWebpackOverride,
9
+ generateLocalRoot,
10
+ importFromRenderEntry,
11
+ parseGraphicsAttestationLog,
12
+ renderComponentAlpha,
13
+ renderComponentStill,
14
+ resolveRenderEntryRoot
15
+ } from "../chunk-5OTQ7M43.js";
16
+ import "../chunk-WB2VFDQZ.js";
17
+ import "../chunk-CGHTMZNC.js";
18
+ import "../chunk-LQUWKBST.js";
19
+ import "../chunk-2ESYSVXG.js";
20
+ export {
21
+ GRAPHICS_ATTESTATION_PREFIX,
22
+ LOCAL_COMPOSITION_ID,
23
+ LOCAL_ENTRY_FILENAME,
24
+ LOCAL_ROOT_FILENAME,
25
+ alphaExt,
26
+ alphaRenderConfig,
27
+ buildLocalWebpackOverride,
28
+ generateLocalRoot,
29
+ importFromRenderEntry,
30
+ parseGraphicsAttestationLog,
31
+ renderComponentAlpha,
32
+ renderComponentStill,
33
+ resolveRenderEntryRoot
34
+ };
@@ -0,0 +1 @@
1
+ export * from "./_members/component-runtime/index.js";