@cueframe/kernel 0.2.58 → 0.2.59-rc.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 (339) hide show
  1. package/dist/_members/account-model/testing/conversationStoreContract.d.ts +3 -4
  2. package/dist/_members/account-model/testing/restorePointStoreContract.d.ts +3 -4
  3. package/dist/_members/account-model/validators/index.d.ts +0 -1
  4. package/dist/_members/animate/index.d.ts +0 -2
  5. package/dist/_members/authoring/index.d.ts +1 -1
  6. package/dist/_members/authoring/prompts/index.d.ts +0 -1
  7. package/dist/_members/authoring/resources.d.ts +2 -11
  8. package/dist/_members/cloud-import/CloudImportService.d.ts +0 -1
  9. package/dist/_members/cloud-import/index.d.ts +0 -2
  10. package/dist/_members/component-runtime/allowedImports.d.ts +6 -0
  11. package/dist/_members/component-runtime/allowedImports.d.ts.map +1 -1
  12. package/dist/_members/component-runtime/browserIdentity.d.ts +2 -12
  13. package/dist/_members/component-runtime/browserIdentity.d.ts.map +1 -1
  14. package/dist/_members/component-runtime/canonicalIdentity.d.ts +8 -1
  15. package/dist/_members/component-runtime/canonicalIdentity.d.ts.map +1 -1
  16. package/dist/_members/component-runtime/contracts.d.ts +2 -1
  17. package/dist/_members/component-runtime/contracts.d.ts.map +1 -1
  18. package/dist/_members/component-runtime/identity.d.ts +2 -3
  19. package/dist/_members/component-runtime/identity.d.ts.map +1 -1
  20. package/dist/_members/component-runtime/importPolicy.d.ts +5 -0
  21. package/dist/_members/component-runtime/importPolicy.d.ts.map +1 -1
  22. package/dist/_members/component-runtime/template/checks.d.ts +71 -0
  23. package/dist/_members/component-runtime/template/checks.d.ts.map +1 -0
  24. package/dist/_members/component-runtime/template/extract.d.ts +4 -0
  25. package/dist/_members/component-runtime/template/extract.d.ts.map +1 -1
  26. package/dist/_members/component-runtime/template/index.d.ts +1 -0
  27. package/dist/_members/component-runtime/template/index.d.ts.map +1 -1
  28. package/dist/_members/component-runtime/template/schema.d.ts +14 -13
  29. package/dist/_members/component-runtime/template/schema.d.ts.map +1 -1
  30. package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts +3 -4
  31. package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts.map +1 -1
  32. package/dist/_members/component-runtime/testing/sourcePolicyCases.d.ts +15 -0
  33. package/dist/_members/component-runtime/testing/sourcePolicyCases.d.ts.map +1 -0
  34. package/dist/_members/component-runtime/webglProbe.d.ts.map +1 -1
  35. package/dist/_members/compose/index.d.ts +1 -1
  36. package/dist/_members/compose/primitiveRegistry.d.ts +0 -2
  37. package/dist/_members/composition/audio/audioMix.d.ts +0 -1
  38. package/dist/_members/composition/audio/mixStaging.d.ts +0 -5
  39. package/dist/_members/composition/fixtures/index.d.ts +0 -1
  40. package/dist/_members/composition/graphics-plan/index.d.ts +0 -2
  41. package/dist/_members/composition/graphics-plan/schemas.d.ts +4 -4
  42. package/dist/_members/composition/invariants/etag.d.ts +0 -1
  43. package/dist/_members/composition/invariants/index.d.ts +0 -1
  44. package/dist/_members/composition/ops/compositionOps.d.ts +0 -1
  45. package/dist/_members/composition/ops/compositionOps.shared.d.ts +6 -0
  46. package/dist/_members/composition/ops/index.d.ts +2 -1
  47. package/dist/_members/composition/primitive-catalog/index.d.ts +0 -2
  48. package/dist/_members/composition/projection/behind-readiness.d.ts +0 -6
  49. package/dist/_members/composition/timeline/link.d.ts +0 -4
  50. package/dist/_members/composition/timeline/plan.d.ts +0 -1
  51. package/dist/_members/composition/validators/brandKit.d.ts +4 -4
  52. package/dist/_members/composition/validators/brandKitBody.d.ts +8 -8
  53. package/dist/_members/composition/validators/cardHtml.d.ts +11 -0
  54. package/dist/_members/composition/validators/composition.d.ts +2 -5
  55. package/dist/_members/composition/validators/css-tree-subpaths.d.ts +16 -0
  56. package/dist/_members/composition/validators/index.d.ts +0 -3
  57. package/dist/_members/composition/validators/session.d.ts +3 -3
  58. package/dist/_members/composition/validators/webhook.d.ts +4 -4
  59. package/dist/_members/composition-ops/alphaLayers.d.ts +0 -5
  60. package/dist/_members/composition-ops/index.d.ts +2 -2
  61. package/dist/_members/composition-ops/opRecorder.d.ts +23 -3
  62. package/dist/_members/core/render/exportSettings.d.ts +4 -2
  63. package/dist/_members/core/render/index.d.ts +1 -1
  64. package/dist/_members/core/render/vcam/requiredRegion.d.ts +0 -1
  65. package/dist/_members/director/ai-sdk/index.d.ts +0 -1
  66. package/dist/_members/director/ai-sdk/messages.d.ts +0 -1
  67. package/dist/_members/director/domain/chat.d.ts +0 -78
  68. package/dist/_members/director/domain/index.d.ts +0 -1
  69. package/dist/_members/errors/registry.d.ts +6 -0
  70. package/dist/_members/foundation/canonical/index.d.ts +14 -0
  71. package/dist/_members/foundation/index.d.ts +1 -1
  72. package/dist/_members/foundation/primitives/index.d.ts +0 -2
  73. package/dist/_members/foundation/testing/index.d.ts +1 -0
  74. package/dist/_members/foundation/testing/knownRed.d.ts +13 -0
  75. package/dist/_members/mcp/adapter.d.ts +21 -0
  76. package/dist/_members/mcp/compositionOps.d.ts +10 -0
  77. package/dist/_members/mcp/server.d.ts +0 -5
  78. package/dist/_members/mcp/wait.d.ts +3 -1
  79. package/dist/_members/media-model/generation.d.ts +0 -25
  80. package/dist/_members/nle-export/xml-utils.d.ts +0 -8
  81. package/dist/_members/plane/conformance.d.ts +20 -0
  82. package/dist/_members/primitives/index.d.ts +1 -11
  83. package/dist/_members/primitives/lib/index.d.ts +1 -1
  84. package/dist/_members/primitives/lib/tokens.d.ts +0 -16
  85. package/dist/_members/render-harness/cardAssetAdmission.d.ts +1 -0
  86. package/dist/_members/render-harness/cardAssetAdmission.d.ts.map +1 -1
  87. package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
  88. package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
  89. package/dist/_members/render-harness/mediaServer.d.ts +6 -1
  90. package/dist/_members/render-harness/mediaServer.d.ts.map +1 -1
  91. package/dist/account-model/testing.js +15 -5
  92. package/dist/account-model/validators.js +5 -7
  93. package/dist/account-model.js +5 -7
  94. package/dist/animate/preparation-facts.js +1 -1
  95. package/dist/animate.js +2 -6
  96. package/dist/authoring/composer.js +1 -1
  97. package/dist/authoring/context.js +8 -7
  98. package/dist/authoring/models/defaults.d.ts +1 -0
  99. package/dist/authoring/models/defaults.js +7 -0
  100. package/dist/authoring/models.js +5 -3
  101. package/dist/authoring/motion.d.ts +1 -0
  102. package/dist/authoring/motion.js +25 -0
  103. package/dist/authoring/prompts.js +4 -14
  104. package/dist/authoring/providers.js +1 -1
  105. package/dist/authoring/resource-routing.js +2 -2
  106. package/dist/authoring/resources.js +4 -22
  107. package/dist/authoring/scene.js +3 -2
  108. package/dist/authoring.js +662 -219
  109. package/dist/brand-derivation/constants.js +1 -1
  110. package/dist/brand-derivation.js +1 -1
  111. package/dist/{chunk-LBJ5LI5V.js → chunk-2K2GBFLU.js} +17 -8
  112. package/dist/{chunk-RAXHCRVV.js → chunk-2PAP5LO5.js} +1 -1
  113. package/dist/{chunk-MNO6AO2J.js → chunk-3HLDIIWA.js} +1 -1
  114. package/dist/{chunk-PTVTWQ4T.js → chunk-3JEUNKDK.js} +2 -2
  115. package/dist/chunk-3VWJ3H4X.js +68 -0
  116. package/dist/{chunk-S5H6GH6M.js → chunk-3Z7CN54H.js} +1 -1
  117. package/dist/{chunk-FVDFPJHT.js → chunk-46WBCUPE.js} +1 -1
  118. package/dist/chunk-4VBLQIM5.js +30 -0
  119. package/dist/{chunk-N2OZDD44.js → chunk-6HA55CRU.js} +4 -5
  120. package/dist/{chunk-WL2MLKWU.js → chunk-6HPEMDQW.js} +1 -1
  121. package/dist/{chunk-PWWZTY3G.js → chunk-6KZCXAYL.js} +5 -2
  122. package/dist/{chunk-IEXAKOEX.js → chunk-6QGARSV6.js} +2 -15
  123. package/dist/{chunk-3YVIAWET.js → chunk-7II5OM7R.js} +13 -1
  124. package/dist/{chunk-UFD4EZHM.js → chunk-AFUITAH6.js} +4 -5
  125. package/dist/{chunk-HGCYZMII.js → chunk-AK6QPX7A.js} +9 -9
  126. package/dist/{chunk-EC6VFQE6.js → chunk-BZVOCVQV.js} +1 -0
  127. package/dist/{chunk-RBWS5XHE.js → chunk-CAF7BRNE.js} +2 -2
  128. package/dist/{chunk-TR53N6HB.js → chunk-CEO47DIE.js} +6 -3
  129. package/dist/chunk-CIOUDOGN.js +12 -0
  130. package/dist/{chunk-GQ6XGAFB.js → chunk-DCKADD5B.js} +1 -1
  131. package/dist/{chunk-4NIJWK45.js → chunk-EISHFHU5.js} +0 -8
  132. package/dist/chunk-EQH37KNZ.js +224 -0
  133. package/dist/{chunk-EXY4JJPH.js → chunk-F6PLDBAK.js} +2 -11
  134. package/dist/{chunk-DAARYRNT.js → chunk-FKSXKS35.js} +6 -6
  135. package/dist/{chunk-KBDUEU4W.js → chunk-FZB7UX44.js} +1 -1
  136. package/dist/chunk-H2ZZXISB.js +24 -0
  137. package/dist/{chunk-WSMCZRJ2.js → chunk-I2HNC4PQ.js} +1 -1
  138. package/dist/{chunk-NVXSKKRN.js → chunk-IUJABAG2.js} +14 -10
  139. package/dist/{chunk-7NIOFHMH.js → chunk-IVFMOHAC.js} +1 -9
  140. package/dist/{chunk-UKDBU7HM.js → chunk-JNBNDHEF.js} +3 -3
  141. package/dist/{chunk-JWMWVP64.js → chunk-KC4LNZL5.js} +4 -9
  142. package/dist/{chunk-GCQ7Z7S7.js → chunk-KKATUGRU.js} +3 -9
  143. package/dist/{chunk-Q5P5UFOP.js → chunk-KLQ53NX3.js} +13 -1
  144. package/dist/{chunk-UMXES6ED.js → chunk-LVMWPFV4.js} +1 -1
  145. package/dist/{chunk-TKFLSGAS.js → chunk-MMJYII7Y.js} +5 -5
  146. package/dist/{chunk-REST55RC.js → chunk-NECN7TT4.js} +5 -4
  147. package/dist/{chunk-4ZE564YF.js → chunk-NM7NWXGF.js} +0 -146
  148. package/dist/{chunk-5T655LYZ.js → chunk-NY6EI5YW.js} +4 -4
  149. package/dist/{chunk-UXRSEMJJ.js → chunk-ONSGT6UJ.js} +66 -35
  150. package/dist/{chunk-VZ7TYX6Z.js → chunk-P3EFZDM5.js} +0 -17
  151. package/dist/{chunk-BEFSJMFF.js → chunk-P6RVYHLT.js} +9 -9
  152. package/dist/{chunk-TBHSOEYK.js → chunk-PLWDYWK6.js} +4 -34
  153. package/dist/{chunk-KYRDKK2D.js → chunk-Q6CJ6HCU.js} +1 -6
  154. package/dist/{chunk-FWSJLHSV.js → chunk-R642352J.js} +1 -1
  155. package/dist/{chunk-XELS2BGA.js → chunk-R6HTIP3N.js} +1 -3
  156. package/dist/{chunk-RL5SO653.js → chunk-RQRPSSRT.js} +1 -1
  157. package/dist/chunk-RR7UBEBV.js +172 -0
  158. package/dist/{chunk-FHMTAZD4.js → chunk-RWJHZCOR.js} +1 -71
  159. package/dist/{chunk-73DQTUWY.js → chunk-TIAJMEQ4.js} +2 -22
  160. package/dist/{chunk-2ESYSVXG.js → chunk-U67V476Y.js} +2 -15
  161. package/dist/{chunk-3VLDQE26.js → chunk-U7KSOA2L.js} +4 -21
  162. package/dist/{chunk-VLJOIUHL.js → chunk-UGEUB763.js} +6 -6
  163. package/dist/{chunk-K66NLMGX.js → chunk-UGWJC4GA.js} +62 -18
  164. package/dist/chunk-VBYINB74.js +136 -0
  165. package/dist/{chunk-W2245F6G.js → chunk-WTQRLFR2.js} +1 -1
  166. package/dist/{chunk-JN3GF36B.js → chunk-X2RTLS6K.js} +2 -23
  167. package/dist/chunk-XHMKPTHV.js +20 -0
  168. package/dist/{chunk-2L33CKIY.js → chunk-XOT2VWCO.js} +18 -31
  169. package/dist/{chunk-AK5QBHOB.js → chunk-XQGQ5EFS.js} +10 -1
  170. package/dist/chunk-XR76OZKC.js +21 -0
  171. package/dist/chunk-ZCEYEIRB.js +179 -0
  172. package/dist/{chunk-IMIUHG2E.js → chunk-ZPJQ3TQL.js} +1 -3
  173. package/dist/cloud-import.js +1 -16
  174. package/dist/component-runtime/browserOptions.js +4 -3
  175. package/dist/component-runtime/contracts.js +2 -2
  176. package/dist/component-runtime/identity/browser.js +2 -17
  177. package/dist/component-runtime/identity.js +5 -7
  178. package/dist/component-runtime/importPolicy.js +3 -3
  179. package/dist/component-runtime/mediaResolution.js +1 -1
  180. package/dist/component-runtime/render.js +8 -7
  181. package/dist/component-runtime/sourceAdmission.js +3 -3
  182. package/dist/component-runtime/template/testing.js +15 -12
  183. package/dist/component-runtime/template.js +165 -13
  184. package/dist/component-runtime.js +27 -28
  185. package/dist/compose.js +30 -47
  186. package/dist/composition/audio.js +4 -8
  187. package/dist/composition/brand-kit.js +1 -1
  188. package/dist/composition/brief.js +1 -1
  189. package/dist/composition/card-html.d.ts +1 -0
  190. package/dist/composition/card-html.js +15 -0
  191. package/dist/composition/depth.js +1 -1
  192. package/dist/composition/floors.js +2 -2
  193. package/dist/composition/fonts.js +1 -1
  194. package/dist/composition/graphics-plan.js +4 -44
  195. package/dist/composition/invariants.js +5 -12
  196. package/dist/composition/ops.js +7 -6
  197. package/dist/composition/primitive-catalog.js +2 -6
  198. package/dist/composition/projection.js +3 -5
  199. package/dist/composition/reframe/coverage.js +1 -1
  200. package/dist/composition/reframe/kenBurns.js +1 -1
  201. package/dist/composition/reframe/shotScale.js +1 -1
  202. package/dist/composition/reframe/trajectory.js +1 -1
  203. package/dist/composition/reframe.js +1 -1
  204. package/dist/composition/scene/budget-policy.js +1 -1
  205. package/dist/composition/scene.js +1 -1
  206. package/dist/composition/timeline.js +4 -8
  207. package/dist/composition/validators/brand-kit-body.js +5 -4
  208. package/dist/composition/validators/graphic-kinds.js +1 -1
  209. package/dist/composition/validators.js +8 -65
  210. package/dist/composition-ops.js +17 -16
  211. package/dist/composition.js +13 -79
  212. package/dist/context-7SWSVJ6Z.js +17 -0
  213. package/dist/core/render.js +13 -9
  214. package/dist/core/select.js +3 -3
  215. package/dist/core.js +9 -9
  216. package/dist/director/ai-sdk.js +7 -11
  217. package/dist/director/domain.js +9 -17
  218. package/dist/director.js +9 -21
  219. package/dist/{dist-LAJ2363K.js → dist-6FO67KVA.js} +1 -1
  220. package/dist/errors.js +2 -2
  221. package/dist/foundation/canonical.d.ts +1 -0
  222. package/dist/foundation/canonical.js +7 -0
  223. package/dist/foundation/primitives.js +4 -6
  224. package/dist/foundation/testing.d.ts +1 -0
  225. package/dist/foundation/testing.js +7 -0
  226. package/dist/foundation.js +7 -9
  227. package/dist/{magic-string.es-SDTMJBWP.js → magic-string.es-KVSW34UD.js} +1 -1
  228. package/dist/mcp/adapter.js +11 -19
  229. package/dist/mcp/composition-ops.d.ts +1 -0
  230. package/dist/mcp/composition-ops.js +11 -0
  231. package/dist/mcp/core.js +2 -2
  232. package/dist/mcp/curation.js +1 -1
  233. package/dist/mcp/executor.js +1 -1
  234. package/dist/mcp/scene-shot.js +3 -3
  235. package/dist/mcp/server.js +6 -7
  236. package/dist/mcp/wire-schema.js +13 -2
  237. package/dist/mcp.js +11 -10
  238. package/dist/media-model/generation.js +6 -8
  239. package/dist/media-model/media-kind.js +1 -1
  240. package/dist/media-model/testing.js +2 -2
  241. package/dist/media-model/transcriptSearch.js +1 -1
  242. package/dist/media-model.js +6 -8
  243. package/dist/nle-export/xml.js +1 -1
  244. package/dist/nle-export.js +2 -2
  245. package/dist/perception.js +1 -1
  246. package/dist/plane/conformance.js +8 -4
  247. package/dist/plane/contract.js +1 -1
  248. package/dist/plane.js +8 -4
  249. package/dist/primitives/backgrounds.js +3 -3
  250. package/dist/primitives/captions.js +2 -2
  251. package/dist/primitives/effects.js +5 -5
  252. package/dist/primitives/hero-text.js +4 -4
  253. package/dist/primitives/layouts.js +4 -4
  254. package/dist/primitives/lib/easings.js +1 -1
  255. package/dist/primitives/lib/frameScale.js +1 -1
  256. package/dist/primitives/lib/index.js +7 -13
  257. package/dist/primitives/lib/palette.js +2 -2
  258. package/dist/primitives/lib/preview.js +1 -1
  259. package/dist/primitives/lib/schema.js +1 -1
  260. package/dist/primitives/lib/seeded-random.js +1 -1
  261. package/dist/primitives/lib/text/contrast.js +3 -3
  262. package/dist/primitives/lib/text/fill.js +1 -1
  263. package/dist/primitives/lib/text/fitText.js +1 -1
  264. package/dist/primitives/lib/text/marker.js +1 -1
  265. package/dist/primitives/lib/text/motion.js +1 -1
  266. package/dist/primitives/lib/text/recolor.js +1 -1
  267. package/dist/primitives/lib/text/stage.js +1 -1
  268. package/dist/primitives/lib/text/typeface.js +1 -1
  269. package/dist/primitives/lib/tokens.js +4 -11
  270. package/dist/primitives/lib.js +7 -13
  271. package/dist/primitives/scenes.js +5 -5
  272. package/dist/primitives/subject-foreground.js +1 -1
  273. package/dist/primitives/text.js +4 -4
  274. package/dist/primitives/transitions.js +3 -3
  275. package/dist/primitives/ui-blocks.js +6 -6
  276. package/dist/primitives/workspace.js +1 -1
  277. package/dist/primitives.js +26 -40
  278. package/dist/render-harness/cardAssetAdmission.js +4 -4
  279. package/dist/render-harness/cardFonts.js +3 -3
  280. package/dist/render-harness/renderInputAssets.js +4 -4
  281. package/dist/render-harness.js +104 -86
  282. package/dist/{src-ZP6727AA.js → src-XI5MULKD.js} +17 -16
  283. package/package.json +38 -60
  284. package/dist/_members/account-model/validators/workingComposition.d.ts +0 -11
  285. package/dist/_members/animate/animations/index.d.ts +0 -9
  286. package/dist/_members/animate/easing/index.d.ts +0 -3
  287. package/dist/_members/animate/mobjects/index.d.ts +0 -4
  288. package/dist/_members/animate/scene/internal.d.ts +0 -29
  289. package/dist/_members/authoring/prompts/graphics.d.ts +0 -9
  290. package/dist/_members/cloud-import/cloudConfig.d.ts +0 -2
  291. package/dist/_members/composition/autozoom/index.d.ts +0 -25
  292. package/dist/_members/composition/graphics-plan/instantiateMotif.d.ts +0 -34
  293. package/dist/_members/composition/invariants/time.d.ts +0 -14
  294. package/dist/_members/composition/types/index.d.ts +0 -8
  295. package/dist/_members/composition/validators/font.d.ts +0 -58
  296. package/dist/_members/composition/validators/registry.d.ts +0 -79
  297. package/dist/_members/composition/validators/render.d.ts +0 -2068
  298. package/dist/_members/director/ai-sdk/chunks.d.ts +0 -14
  299. package/dist/_members/director/domain/ports.d.ts +0 -32
  300. package/dist/_members/director/testing/contract.d.ts +0 -52
  301. package/dist/_members/director/testing/index.d.ts +0 -1
  302. package/dist/_members/foundation/codes/index.d.ts +0 -10
  303. package/dist/_members/nle-export/server/index.d.ts +0 -1
  304. package/dist/_members/nle-export/server/pack-zip.d.ts +0 -6
  305. package/dist/_members/render-harness/assetRefs.d.ts +0 -26
  306. package/dist/_members/render-harness/assetRefs.d.ts.map +0 -1
  307. package/dist/_members/render-harness/remotion-runtime.d.ts +0 -87
  308. package/dist/authoring/build-tools.d.ts +0 -1
  309. package/dist/authoring/build-tools.js +0 -28
  310. package/dist/authoring/capabilities.d.ts +0 -1
  311. package/dist/authoring/capabilities.js +0 -11
  312. package/dist/authoring/pipelineTrace.d.ts +0 -1
  313. package/dist/authoring/pipelineTrace.js +0 -7
  314. package/dist/authoring/tools.d.ts +0 -1
  315. package/dist/authoring/tools.js +0 -31
  316. package/dist/chunk-6UZYUWBX.js +0 -197
  317. package/dist/chunk-7EDLPIUN.js +0 -384
  318. package/dist/chunk-GF52TW4I.js +0 -51
  319. package/dist/chunk-IG3YAOUZ.js +0 -418
  320. package/dist/chunk-JOURGVOR.js +0 -27
  321. package/dist/chunk-MFMR3LHO.js +0 -116
  322. package/dist/chunk-OSMXQV5V.js +0 -18
  323. package/dist/chunk-QDBVYZSF.js +0 -128
  324. package/dist/chunk-U3JPILZS.js +0 -15
  325. package/dist/chunk-Y4HPN4BC.js +0 -364
  326. package/dist/composition/autozoom.d.ts +0 -1
  327. package/dist/composition/autozoom.js +0 -76
  328. package/dist/composition/fixtures.d.ts +0 -1
  329. package/dist/composition/fixtures.js +0 -154
  330. package/dist/composition/types.d.ts +0 -1
  331. package/dist/composition/types.js +0 -0
  332. package/dist/context-4WSFPRLX.js +0 -16
  333. package/dist/director/testing.d.ts +0 -1
  334. package/dist/director/testing.js +0 -22
  335. package/dist/foundation/codes.d.ts +0 -1
  336. package/dist/foundation/codes.js +0 -7
  337. package/dist/nle-export/server.d.ts +0 -1
  338. package/dist/nle-export/server.js +0 -25856
  339. /package/dist/{chunk-FTVZF4GO.js → chunk-S432RE6G.js} +0 -0
@@ -0,0 +1,224 @@
1
+ // ../composition/src/validators/cardHtml.ts
2
+ import parseCss from "css-tree/parser";
3
+ import walkCss from "css-tree/walker";
4
+ import { parseFragment } from "parse5";
5
+ import { z } from "zod";
6
+ function isFragmentReference(value) {
7
+ return value.trim().startsWith("#");
8
+ }
9
+ function cssUrlPayloads(value) {
10
+ return [...value.matchAll(/url\(\s*(['"]?)(.*?)\1\s*\)/gi)].map((m) => m[2] ?? "");
11
+ }
12
+ function hasNonFragmentCssUrl(value) {
13
+ return cssUrlPayloads(value).some((payload) => !isFragmentReference(payload));
14
+ }
15
+ var HTML_ELEMENTS = [
16
+ "abbr",
17
+ "address",
18
+ "article",
19
+ "aside",
20
+ "b",
21
+ "bdi",
22
+ "bdo",
23
+ "blockquote",
24
+ "br",
25
+ "button",
26
+ "caption",
27
+ "cite",
28
+ "code",
29
+ "col",
30
+ "colgroup",
31
+ "data",
32
+ "dd",
33
+ "del",
34
+ "dfn",
35
+ "div",
36
+ "dl",
37
+ "dt",
38
+ "em",
39
+ "figcaption",
40
+ "figure",
41
+ "footer",
42
+ "h1",
43
+ "h2",
44
+ "h3",
45
+ "h4",
46
+ "h5",
47
+ "h6",
48
+ "header",
49
+ "hgroup",
50
+ "hr",
51
+ "i",
52
+ "ins",
53
+ "kbd",
54
+ "label",
55
+ "li",
56
+ "main",
57
+ "mark",
58
+ "meter",
59
+ "nav",
60
+ "ol",
61
+ "p",
62
+ "pre",
63
+ "progress",
64
+ "q",
65
+ "rp",
66
+ "rt",
67
+ "ruby",
68
+ "s",
69
+ "samp",
70
+ "section",
71
+ "small",
72
+ "span",
73
+ "strong",
74
+ "style",
75
+ "sub",
76
+ "sup",
77
+ "table",
78
+ "tbody",
79
+ "td",
80
+ "tfoot",
81
+ "th",
82
+ "thead",
83
+ "time",
84
+ "tr",
85
+ "u",
86
+ "ul",
87
+ "var",
88
+ "wbr"
89
+ ];
90
+ var SVG_ELEMENTS = [
91
+ "svg",
92
+ "g",
93
+ "defs",
94
+ "symbol",
95
+ "use",
96
+ "title",
97
+ "desc",
98
+ "path",
99
+ "rect",
100
+ "circle",
101
+ "ellipse",
102
+ "line",
103
+ "polyline",
104
+ "polygon",
105
+ "text",
106
+ "tspan",
107
+ "textpath",
108
+ "lineargradient",
109
+ "radialgradient",
110
+ "stop",
111
+ "clippath",
112
+ "mask",
113
+ "pattern",
114
+ "marker",
115
+ "filter",
116
+ "feblend",
117
+ "fecolormatrix",
118
+ "fecomponenttransfer",
119
+ "fecomposite",
120
+ "feconvolvematrix",
121
+ "fediffuselighting",
122
+ "fedisplacementmap",
123
+ "fedistantlight",
124
+ "fedropshadow",
125
+ "feflood",
126
+ "fefunca",
127
+ "fefuncb",
128
+ "fefuncg",
129
+ "fefuncr",
130
+ "fegaussianblur",
131
+ "femerge",
132
+ "femergenode",
133
+ "femorphology",
134
+ "feoffset",
135
+ "fepointlight",
136
+ "fespecularlighting",
137
+ "fespotlight",
138
+ "fetile",
139
+ "feturbulence"
140
+ ];
141
+ var ALLOWED_ELEMENTS = /* @__PURE__ */ new Set([...HTML_ELEMENTS, ...SVG_ELEMENTS]);
142
+ var URL_ATTRIBUTES = /* @__PURE__ */ new Set(["action", "data", "formaction", "href", "poster", "src", "srcset"]);
143
+ var CSS_VALUE_ATTRIBUTES = /* @__PURE__ */ new Set([
144
+ "clip-path",
145
+ "cursor",
146
+ "fill",
147
+ "filter",
148
+ "marker",
149
+ "marker-end",
150
+ "marker-mid",
151
+ "marker-start",
152
+ "mask",
153
+ "stroke"
154
+ ]);
155
+ function cssProblem(css, context) {
156
+ let ast;
157
+ try {
158
+ ast = parseCss(css, { context });
159
+ } catch (cause) {
160
+ return `contains invalid CSS: ${String(cause)}`;
161
+ }
162
+ let problem = null;
163
+ walkCss(ast, (node) => {
164
+ if (problem) return;
165
+ if (node.type === "Url" && !isFragmentReference(node.value)) {
166
+ problem = "contains a CSS url() asset reference";
167
+ } else if (node.type === "Atrule" && ["import", "font-face"].includes(node.name.toLowerCase())) {
168
+ problem = `contains a forbidden CSS @${node.name} rule`;
169
+ }
170
+ });
171
+ return problem;
172
+ }
173
+ function nodeProblem(node) {
174
+ if (node.nodeName === "#comment" || node.nodeName === "#text") return null;
175
+ if ("tagName" in node) {
176
+ const tag = node.tagName.toLowerCase();
177
+ if (!ALLOWED_ELEMENTS.has(tag)) return `contains <${node.tagName}>, which a card may not use`;
178
+ for (const attr of node.attrs) {
179
+ const name = attr.name.toLowerCase();
180
+ if (name.startsWith("on")) return `contains the event handler '${attr.name}'`;
181
+ if (URL_ATTRIBUTES.has(name) && !isFragmentReference(attr.value)) {
182
+ return `contains a ${attr.name} reference outside the card`;
183
+ }
184
+ if (name === "style") {
185
+ const problem = cssProblem(attr.value, "declarationList");
186
+ if (problem) return problem;
187
+ }
188
+ if (CSS_VALUE_ATTRIBUTES.has(name) && hasNonFragmentCssUrl(attr.value)) {
189
+ return `contains a ${attr.name} url() reference outside the card`;
190
+ }
191
+ }
192
+ if (tag === "style") {
193
+ const css = node.childNodes.filter((child) => child.nodeName === "#text").map((child) => child.value).join("");
194
+ const problem = cssProblem(css, "stylesheet");
195
+ if (problem) return problem;
196
+ }
197
+ }
198
+ if ("childNodes" in node) {
199
+ for (const child of node.childNodes) {
200
+ const problem = nodeProblem(child);
201
+ if (problem) return problem;
202
+ }
203
+ }
204
+ return null;
205
+ }
206
+ function cardHtmlProblem(html) {
207
+ for (const node of parseFragment(html).childNodes) {
208
+ const problem = nodeProblem(node);
209
+ if (problem) return problem;
210
+ }
211
+ return null;
212
+ }
213
+ var CardHtml = z.string().min(1).superRefine((html, ctx) => {
214
+ const problem = cardHtmlProblem(html);
215
+ if (problem) ctx.addIssue({ code: "custom", message: `Card HTML ${problem}.` });
216
+ });
217
+
218
+ export {
219
+ isFragmentReference,
220
+ cssUrlPayloads,
221
+ hasNonFragmentCssUrl,
222
+ cardHtmlProblem,
223
+ CardHtml
224
+ };
@@ -3,7 +3,7 @@ import {
3
3
  componentBundleIdentity,
4
4
  componentRenderIdentity,
5
5
  sourceVersionIdentity
6
- } from "./chunk-DAARYRNT.js";
6
+ } from "./chunk-FKSXKS35.js";
7
7
 
8
8
  // ../execution/component-runtime/src/identity.ts
9
9
  import { createHash } from "crypto";
@@ -22,20 +22,11 @@ function componentRenderKey(request) {
22
22
  function componentArtifactId(input) {
23
23
  return sha256Hex(componentArtifactIdentity(input));
24
24
  }
25
- function bundleIdentityFields(bundle) {
26
- return {
27
- bundleId: bundle.bundleId,
28
- sourceVersionId: bundle.sourceVersionId,
29
- runtimeDigest: bundle.runtimeDigest,
30
- dependencyLockDigest: bundle.dependencyLockDigest
31
- };
32
- }
33
25
 
34
26
  export {
35
27
  sha256Hex,
36
28
  sourceVersionId,
37
29
  componentBundleId,
38
30
  componentRenderKey,
39
- componentArtifactId,
40
- bundleIdentityFields
31
+ componentArtifactId
41
32
  };
@@ -32,21 +32,21 @@ function canonicalValue(value, seen) {
32
32
  seen.delete(value);
33
33
  }
34
34
  }
35
- function canonicalJson(value) {
35
+ function canonicalIdentityJson(value) {
36
36
  return JSON.stringify(canonicalValue(value, /* @__PURE__ */ new Set()));
37
37
  }
38
38
  function sourceVersionIdentity(source) {
39
- return canonicalJson(source);
39
+ return canonicalIdentityJson(source);
40
40
  }
41
41
  function componentBundleIdentity(input) {
42
- return canonicalJson({ domain: "cueframe.component.bundle.v2", ...input });
42
+ return canonicalIdentityJson({ domain: "cueframe.component.bundle.v2", ...input });
43
43
  }
44
44
  function componentRenderIdentity(request) {
45
- return canonicalJson({ domain: "cueframe.component.render.v2", request });
45
+ return canonicalIdentityJson({ domain: "cueframe.component.render.v2", request });
46
46
  }
47
47
  function componentArtifactIdentity(input) {
48
48
  const { host: _host, ...identity } = input.receipt;
49
- return canonicalJson({
49
+ return canonicalIdentityJson({
50
50
  domain: "cueframe.component.artifact.v2",
51
51
  outputSha256: input.outputSha256,
52
52
  receipt: identity
@@ -54,7 +54,7 @@ function componentArtifactIdentity(input) {
54
54
  }
55
55
 
56
56
  export {
57
- canonicalJson,
57
+ canonicalIdentityJson,
58
58
  sourceVersionIdentity,
59
59
  componentBundleIdentity,
60
60
  componentRenderIdentity,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-2ESYSVXG.js";
3
+ } from "./chunk-U67V476Y.js";
4
4
 
5
5
  // ../sdk/src/client.ts
6
6
  var ApiError = class extends Error {
@@ -0,0 +1,24 @@
1
+ import {
2
+ cardHtmlProblem
3
+ } from "./chunk-EQH37KNZ.js";
4
+ import {
5
+ CueframeError
6
+ } from "./chunk-XQGQ5EFS.js";
7
+
8
+ // ../execution/render-harness/src/cardAssetAdmission.ts
9
+ function assertCardHtmlAssetFree(input) {
10
+ for (const overlay of input.overlays ?? []) {
11
+ if (overlay.template !== "card") continue;
12
+ const html = overlay.params?.html;
13
+ if (typeof html !== "string") continue;
14
+ const problem = cardHtmlProblem(html);
15
+ if (problem) {
16
+ const locator = `overlay '${overlay.id}'`;
17
+ throw new CueframeError("card_external_asset_forbidden", `Card ${locator} ${problem}`, void 0, { card: locator });
18
+ }
19
+ }
20
+ }
21
+
22
+ export {
23
+ assertCardHtmlAssetFree
24
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  bodySchemaFor,
3
3
  opById
4
- } from "./chunk-KBDUEU4W.js";
4
+ } from "./chunk-FZB7UX44.js";
5
5
 
6
6
  // ../mcp/src/generated/sceneContract.ts
7
7
  function deepFreeze(value) {
@@ -3,6 +3,10 @@ import {
3
3
  buildEasedZooms,
4
4
  buildPannedCenters
5
5
  } from "./chunk-QH3YI3ND.js";
6
+ import {
7
+ flattenCompoundClips,
8
+ hasCompoundClips
9
+ } from "./chunk-ZPJQ3TQL.js";
6
10
  import {
7
11
  DOMINANCE_WEIGHTS,
8
12
  ENTER_SEC,
@@ -20,26 +24,22 @@ import {
20
24
  scoreAndRank,
21
25
  segmentShots,
22
26
  stabilizeSelectionHysteresis
23
- } from "./chunk-MNO6AO2J.js";
24
- import {
25
- flattenCompoundClips,
26
- hasCompoundClips
27
- } from "./chunk-IMIUHG2E.js";
27
+ } from "./chunk-3HLDIIWA.js";
28
28
  import {
29
29
  compositionHasVo,
30
30
  roleDefaultGainDb
31
- } from "./chunk-VZ7TYX6Z.js";
32
- import {
33
- resolveBrandRef
34
- } from "./chunk-DKBFAQCW.js";
31
+ } from "./chunk-P3EFZDM5.js";
35
32
  import {
36
33
  SHOT_SCALE_TARGET,
37
34
  shotScaleZoom
38
35
  } from "./chunk-WREYUH2E.js";
36
+ import {
37
+ resolveBrandRef
38
+ } from "./chunk-DKBFAQCW.js";
39
39
  import {
40
40
  CueframeError,
41
41
  encodeError
42
- } from "./chunk-AK5QBHOB.js";
42
+ } from "./chunk-XQGQ5EFS.js";
43
43
  import {
44
44
  SCENE_CAPTURE_IDENTITY_FIELDS_V1,
45
45
  SCENE_PRESET_TRIANGLES,
@@ -2212,6 +2212,8 @@ async function assemblePreparedRenderInput(composition, resolved, dependencies)
2212
2212
  }
2213
2213
 
2214
2214
  // ../execution/core/src/render/exportSettings.ts
2215
+ var EXPORT_QUALITIES = ["maximum", "social", "web", "potato", "source"];
2216
+ var EXPORT_RESOLUTIONS = ["source", "1080p", "1440p", "4k"];
2215
2217
  var DEFAULT_FPS = 30;
2216
2218
  var DEFAULT_WIDTH = 1920;
2217
2219
  var DEFAULT_HEIGHT = 1080;
@@ -3222,6 +3224,8 @@ export {
3222
3224
  compositionToRenderInput,
3223
3225
  assembleRenderInput,
3224
3226
  assemblePreparedRenderInput,
3227
+ EXPORT_QUALITIES,
3228
+ EXPORT_RESOLUTIONS,
3225
3229
  DEFAULT_FPS,
3226
3230
  DEFAULT_WIDTH,
3227
3231
  DEFAULT_HEIGHT,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  CueframeError,
8
8
  encodeError
9
- } from "./chunk-AK5QBHOB.js";
9
+ } from "./chunk-XQGQ5EFS.js";
10
10
 
11
11
  // ../composition/src/projection/cardTokens.ts
12
12
  var CARD_MOTION_VAR_NAMES = [
@@ -206,13 +206,6 @@ function primaryClipForOverlay(composition, overlayId) {
206
206
  }
207
207
  return null;
208
208
  }
209
- async function behindReadinessForOverlay(input) {
210
- const target = primaryClipForOverlay(input.composition, input.overlayId);
211
- return behindReadinessForTarget(
212
- target,
213
- target ? input.mattesByMediaId[target.mediaId] : void 0
214
- );
215
- }
216
209
  async function behindReadinessForTarget(target, mattes) {
217
210
  if (!target) return { state: "no-clip" };
218
211
  const key = await matteIntentKey({ ...target.window, subjectClass: "person" });
@@ -605,7 +598,6 @@ export {
605
598
  isCurrentMatteBakeVersion,
606
599
  matteIntentKey,
607
600
  primaryClipForOverlay,
608
- behindReadinessForOverlay,
609
601
  behindReadinessForTarget,
610
602
  clipOverlapsBehind,
611
603
  matteWindowsByMediaId,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-QGAWDLYX.js";
5
5
  import {
6
6
  DashboardPopulate
7
- } from "./chunk-S5H6GH6M.js";
7
+ } from "./chunk-3Z7CN54H.js";
8
8
  import {
9
9
  useFrameScale
10
10
  } from "./chunk-QAGGJHAF.js";
@@ -35,7 +35,7 @@ import {
35
35
  TEXT_MUTED,
36
36
  VIOLET,
37
37
  WARNING
38
- } from "./chunk-W2245F6G.js";
38
+ } from "./chunk-WTQRLFR2.js";
39
39
  import {
40
40
  CAMERA_PRESETS,
41
41
  DEFAULT_CAMERA,
@@ -43,7 +43,7 @@ import {
43
43
  makeDefaultScreenTexture,
44
44
  resolveCamera,
45
45
  useImageTexture
46
- } from "./chunk-FHMTAZD4.js";
46
+ } from "./chunk-RWJHZCOR.js";
47
47
  import {
48
48
  DEVICE_GLASS_OPACITY_ENCODED,
49
49
  DeviceMesh,
@@ -1,7 +1,10 @@
1
1
  import {
2
2
  ComponentHostAttestationV2,
3
3
  ComponentRuntimeError
4
- } from "./chunk-EC6VFQE6.js";
4
+ } from "./chunk-BZVOCVQV.js";
5
+ import {
6
+ canonicalJson
7
+ } from "./chunk-XHMKPTHV.js";
5
8
  import {
6
9
  STUDIO_SHADOW_MAP_BUDGET
7
10
  } from "./chunk-CL5Y6V6K.js";
@@ -46,14 +49,6 @@ async function readGpuAttestation(browser) {
46
49
  }).filter(([, value]) => value !== void 0 && value !== null && value !== "")
47
50
  );
48
51
  const hasDeviceOrDriverIdentity = Array.isArray(gpu?.devices) && gpu.devices.length > 0 || typeof aux.driverVendor === "string" && aux.driverVendor.length > 0 || typeof aux.driverVersion === "string" && aux.driverVersion.length > 0;
49
- const canonicalJson = (value) => {
50
- if (Array.isArray(value)) return `[${value.map(canonicalJson).join(",")}]`;
51
- if (value !== null && typeof value === "object") {
52
- const object = value;
53
- return `{${Object.keys(object).sort().map((key) => `${JSON.stringify(key)}:${canonicalJson(object[key])}`).join(",")}}`;
54
- }
55
- return JSON.stringify(value);
56
- };
57
52
  return {
58
53
  renderer: typeof aux.glRenderer === "string" ? aux.glRenderer : "",
59
54
  featureStatus: gpu?.featureStatus ?? {},
@@ -1,11 +1,6 @@
1
- // ../authoring/src/models/defaultModels.ts
2
- var DEFAULT_MODEL_IDS = {
3
- anthropic: "claude-opus-5",
4
- openai: "gpt-4.1",
5
- ollama: "llama3.1",
6
- /** Cheaper model used for fast-mode / low-effort turns. */
7
- fast: "claude-haiku-4-5"
8
- };
1
+ import {
2
+ DEFAULT_MODEL_IDS
3
+ } from "./chunk-CIOUDOGN.js";
9
4
 
10
5
  // ../authoring/src/models/modelFactory.ts
11
6
  import { createAnthropic } from "@ai-sdk/anthropic";
@@ -106,7 +101,6 @@ function buildFastModel(settings, langfuse) {
106
101
  }
107
102
 
108
103
  export {
109
- DEFAULT_MODEL_IDS,
110
104
  withRequestTimeout,
111
105
  makeLangfuseFetch,
112
106
  buildModel,
@@ -60,10 +60,22 @@ var PREVIEW_FRAME_CASES = [
60
60
  function isKnownRed(c, lane) {
61
61
  return c.knownRed?.includes(lane) ?? false;
62
62
  }
63
+ function meetsExpectation(c, answer) {
64
+ return answer.status === c.expect.status && (c.expect.code === void 0 || answer.code === c.expect.code);
65
+ }
66
+ function conformanceVerdict(c, lane, answer) {
67
+ const meets = meetsExpectation(c, answer);
68
+ if (isKnownRed(c, lane)) {
69
+ return meets ? { ok: false, reason: `"${c.name}" conforms on ${lane} now: remove "${lane}" from its knownRed.` } : { ok: true };
70
+ }
71
+ return meets ? { ok: true } : { ok: false, reason: `${c.name}: ${lane} answered ${answer.status} ${answer.code ?? ""}, expected ${c.expect.status} ${c.expect.code ?? ""}. ${c.why}` };
72
+ }
63
73
 
64
74
  export {
65
75
  CONFORMANCE_COMPOSITION,
66
76
  CONFORMANCE_DURATION_SEC,
67
77
  PREVIEW_FRAME_CASES,
68
- isKnownRed
78
+ isKnownRed,
79
+ meetsExpectation,
80
+ conformanceVerdict
69
81
  };
@@ -2,7 +2,7 @@ import {
2
2
  selectAllClips,
3
3
  selectAllOverlays,
4
4
  selectSceneMarkers
5
- } from "./chunk-LBJ5LI5V.js";
5
+ } from "./chunk-2K2GBFLU.js";
6
6
 
7
7
  // ../authoring/src/context/transcript.ts
8
8
  var MAX_TRANSCRIPT_CHARS = 6e4;
@@ -1,9 +1,9 @@
1
- import {
2
- EASING_BY_INTENT
3
- } from "./chunk-MFHXCHRI.js";
4
1
  import {
5
2
  FitText
6
3
  } from "./chunk-XHGZ2E77.js";
4
+ import {
5
+ EASING_BY_INTENT
6
+ } from "./chunk-MFHXCHRI.js";
7
7
  import {
8
8
  ACCENT,
9
9
  ACCENT_STRONG,
@@ -17,7 +17,7 @@ import {
17
17
  TEXT_MUTED,
18
18
  VIOLET,
19
19
  WARNING
20
- } from "./chunk-W2245F6G.js";
20
+ } from "./chunk-WTQRLFR2.js";
21
21
  import {
22
22
  CAMERA_PRESETS,
23
23
  DEFAULT_CAMERA,
@@ -26,7 +26,7 @@ import {
26
26
  perspectiveFor,
27
27
  resolveCamera,
28
28
  useStage
29
- } from "./chunk-FHMTAZD4.js";
29
+ } from "./chunk-RWJHZCOR.js";
30
30
 
31
31
  // ../execution/primitives/src/effects/blur/index.tsx
32
32
  import React2 from "react";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BrandKitBodySchema
3
- } from "./chunk-TR53N6HB.js";
3
+ } from "./chunk-CEO47DIE.js";
4
4
  import {
5
5
  ComponentSourceV2
6
- } from "./chunk-EC6VFQE6.js";
6
+ } from "./chunk-BZVOCVQV.js";
7
7
  import {
8
8
  Composition
9
- } from "./chunk-UFD4EZHM.js";
9
+ } from "./chunk-AFUITAH6.js";
10
10
  import {
11
11
  SceneShotSpecV2,
12
12
  sceneShotImageSlots,
@@ -142,7 +142,8 @@ var TemplateDocumentSchema = z.object({
142
142
  poster: z.string().url().optional(),
143
143
  prompt: z.string().optional(),
144
144
  details: z.array(z.string()).optional(),
145
- transcriptExcerpt: z.string().nullable().optional()
145
+ transcriptExcerpt: z.string().nullable().optional(),
146
+ loop: z.boolean().optional()
146
147
  }).strict().optional(),
147
148
  presets: z.record(z.string().regex(PRESET_NAME, "preset names are kebab-case"), TemplatePresetSchema).optional()
148
149
  }).strict().superRefine((doc, ctx) => {