@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
@@ -1,14 +0,0 @@
1
- import type { UIMessageChunk } from "ai";
2
- import type { CueFrameUIMessage } from "./messages.js";
3
- import type { DirectorEvent } from "../domain/chat.js";
4
- type CueFrameChunk = UIMessageChunk<CueFrameUIMessage>;
5
- export declare function dataChunk<K extends "phase" | "generation" | "error">(name: K, data: K extends "generation" ? Extract<DirectorEvent, {
6
- type: "generation";
7
- }>["artifact"] : K extends "error" ? Extract<DirectorEvent, {
8
- type: "error";
9
- }>["error"] : {
10
- phase: string;
11
- detail?: string;
12
- }, id?: string): CueFrameChunk;
13
- export declare function chunksForDirectorEvent(event: DirectorEvent): CueFrameChunk[];
14
- export {};
@@ -1,32 +0,0 @@
1
- import type { GenerationArtifact, GenerateMediaCommand, GenerationCapabilities, GenerationId, GenerationReceipt, MediaId } from "./generation.js";
2
- import type { DirectorEvent, DirectorTurnContext } from "./chat.js";
3
- export interface DirectorRuntimeRequest {
4
- conversationId: string;
5
- context: DirectorTurnContext;
6
- messages: Array<{
7
- role: "user" | "assistant" | "system";
8
- content: string;
9
- }>;
10
- }
11
- export interface DirectorRuntime {
12
- run(request: DirectorRuntimeRequest, signal?: AbortSignal): AsyncIterable<DirectorEvent>;
13
- }
14
- export interface GenerationGateway {
15
- capabilities(context: DirectorTurnContext): Promise<GenerationCapabilities>;
16
- enqueue(command: GenerateMediaCommand, context: DirectorTurnContext): Promise<GenerationReceipt>;
17
- resolveByClientRequestId(clientRequestId: string, context: DirectorTurnContext): Promise<GenerationReceipt | null>;
18
- cancel(generationId: GenerationId, context: DirectorTurnContext): Promise<void>;
19
- retryMaterialisation(mediaId: MediaId, context: DirectorTurnContext): Promise<void>;
20
- subscribe(generationId: GenerationId, listener: (artifact: GenerationArtifact) => void): () => void;
21
- }
22
- export interface ConversationRecord<MESSAGE> {
23
- id: string;
24
- messages: MESSAGE[];
25
- context: DirectorTurnContext;
26
- updatedAt: number;
27
- }
28
- export interface ConversationRepository<MESSAGE> {
29
- load(id: string, context: DirectorTurnContext): Promise<ConversationRecord<MESSAGE> | null>;
30
- save(record: ConversationRecord<MESSAGE>): Promise<void>;
31
- remove(id: string): Promise<void>;
32
- }
@@ -1,52 +0,0 @@
1
- import type { DirectorRuntime } from "../domain/ports.js";
2
- export declare function collectRuntime(runtime: DirectorRuntime, prompt?: string): Promise<({
3
- type: "text-delta";
4
- text: string;
5
- } | {
6
- type: "reasoning-delta";
7
- text: string;
8
- } | {
9
- type: "phase";
10
- phase: string;
11
- detail?: string | undefined;
12
- } | {
13
- type: "generation";
14
- artifact: {
15
- artifactVersion: 1;
16
- clientRequestId: string & import("zod").$brand<"Id<generationRequest>">;
17
- generationId: string & import("zod").$brand<"Id<generation>">;
18
- mediaId: string & import("zod").$brand<"Id<media>">;
19
- generationGroupId: string & import("zod").$brand<"Id<generationGroup>">;
20
- version: number;
21
- kind: "video" | "audio" | "image";
22
- requestSummary: string;
23
- status: "generating" | "processing" | "cancelled" | "ready" | "failed" | "draft" | "submitting" | "queued" | "provider_complete" | "materialising" | "cancelling";
24
- placementReady: boolean;
25
- createdAt: number;
26
- updatedAt: number;
27
- progress?: number | undefined;
28
- parentMediaId?: (string & import("zod").$brand<"Id<media>">) | undefined;
29
- estimateUsd?: number | undefined;
30
- failure?: {
31
- code: string;
32
- title: string;
33
- retryable: boolean;
34
- recovery?: string | undefined;
35
- correlationId?: string | undefined;
36
- } | undefined;
37
- };
38
- } | {
39
- type: "error";
40
- error: {
41
- code: string;
42
- title: string;
43
- retryable: boolean;
44
- recovery?: string | undefined;
45
- source?: "provider" | "generation" | "materialisation" | "agent" | "transport" | undefined;
46
- correlationId?: string | undefined;
47
- details?: string | undefined;
48
- };
49
- } | {
50
- type: "finish";
51
- })[]>;
52
- export declare function assertDirectorRuntimeContract(runtime: DirectorRuntime): Promise<void>;
@@ -1 +0,0 @@
1
- export * from "./contract.js";
@@ -1,10 +0,0 @@
1
- export interface InvariantViolation<TCode extends string = string> {
2
- code: TCode;
3
- message: string;
4
- details?: Record<string, unknown>;
5
- }
6
- export declare class InvariantError<TCode extends string = string> extends Error {
7
- readonly code: TCode;
8
- readonly details?: Record<string, unknown>;
9
- constructor(violation: InvariantViolation<TCode>);
10
- }
@@ -1 +0,0 @@
1
- export { packExportZip } from "./pack-zip.js";
@@ -1,6 +0,0 @@
1
- type Format = "fcpxml" | "premiere";
2
- export declare function packExportZip({ workdir, format, }: {
3
- workdir: string;
4
- format: Format;
5
- }): Promise<string>;
6
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * What counts as a reference to something OUTSIDE this document.
3
- *
4
- * Two guards ask that question about card HTML — `cardAssetAdmission`'s CSS/HTML
5
- * walk and `renderInputAssets`'s `suspiciousUnannotatedAsset` sweep — and they
6
- * disagreed. The walk knew that `url(#local-id)` is a same-document fragment;
7
- * the sweep matched a bare `url(` and refused it.
8
- *
9
- * The visible cost: an inline `<svg>` using `clip-path="url(#mark-clip)"` passed
10
- * the guard that understands SVG and was refused by the one that does not, so the
11
- * org's own logo could not be inlined without rewriting it (CUE-31 sibling,
12
- * reported 2026-09-17). A fragment reference is the OPPOSITE of remote — it
13
- * cannot leave the document — and every guard has to agree on that.
14
- *
15
- * One definition, imported by both.
16
- */
17
- /** `url(#id)`, `href="#id"` — resolves inside this document, never over a network. */
18
- export declare function isFragmentReference(value: string): boolean;
19
- /** Every `url(...)` payload in a CSS value, unquoted. */
20
- export declare function cssUrlPayloads(value: string): string[];
21
- /**
22
- * Does this CSS value reach outside the document? True only when it carries a
23
- * `url()` whose payload is not a same-document fragment.
24
- */
25
- export declare function hasNonFragmentCssUrl(value: string): boolean;
26
- //# sourceMappingURL=assetRefs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assetRefs.d.ts","sourceRoot":"","sources":["../src/assetRefs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,sFAAsF;AACtF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAEtD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI3D"}
@@ -1,87 +0,0 @@
1
-
2
- declare module '@remotion/bundler' {
3
- export function bundle(opts: {
4
- entryPoint: string;
5
- webpackOverride?: (config: any) => any;
6
- outDir?: string;
7
- /** Webpack's resolution root; `null` keeps the bundler's default. */
8
- rootDir?: string | null;
9
- /** Static assets copied by the installed bundler into the served bundle. */
10
- publicDir?: string | null;
11
- }): Promise<string>;
12
- }
13
-
14
- declare module '@remotion/renderer' {
15
- export type FfmpegOverrideFn = (info: { type: 'pre-stitcher' | 'stitcher'; args: string[] }) => string[];
16
- export const RenderInternals: { perf: { getPerf(): string[] } };
17
- export interface HeadlessBrowser {
18
- connection: {
19
- on(event: string, listener: (payload: any) => void): void;
20
- send(method: string, params?: unknown): Promise<unknown>;
21
- };
22
- close(options: { silent: boolean }): Promise<void>;
23
- }
24
-
25
- export function openBrowser(browser: 'chrome', opts?: {
26
- browserExecutable?: string;
27
- chromeMode?: 'headless-shell' | 'chrome-for-testing';
28
- chromiumOptions?: { gl?: string; headless?: boolean; enableMultiProcessOnLinux?: boolean };
29
- }): Promise<HeadlessBrowser>;
30
-
31
- export interface SelectedComposition {
32
- id: string;
33
- width: number;
34
- height: number;
35
- fps: number;
36
- durationInFrames: number;
37
- }
38
-
39
- export function selectComposition(opts: {
40
- serveUrl: string;
41
- id: string;
42
- inputProps?: Record<string, unknown>;
43
- browserExecutable?: string;
44
- chromiumOptions?: { gl?: string };
45
- puppeteerInstance?: HeadlessBrowser;
46
- onBrowserLog?: (log: { text: string }) => void;
47
- timeoutInMilliseconds?: number;
48
- }): Promise<SelectedComposition>;
49
-
50
- export function renderStill(opts: {
51
- composition: SelectedComposition;
52
- serveUrl: string;
53
- output: string;
54
- frame?: number;
55
- inputProps?: Record<string, unknown>;
56
- browserExecutable?: string;
57
- chromiumOptions?: { gl?: string };
58
- timeoutInMilliseconds?: number;
59
- puppeteerInstance?: HeadlessBrowser;
60
- onBrowserLog?: (log: { text: string }) => void;
61
- }): Promise<unknown>;
62
-
63
- export function renderMedia(opts: {
64
- composition: SelectedComposition;
65
- serveUrl: string;
66
- outputLocation: string;
67
- codec: 'prores' | 'vp9' | 'h264';
68
- proResProfile?: '4444';
69
- pixelFormat?: 'yuva444p10le' | 'yuva420p' | 'yuv420p';
70
- imageFormat?: 'png' | 'jpeg';
71
- inputProps?: Record<string, unknown>;
72
- browserExecutable?: string;
73
- chromiumOptions?: { gl?: string };
74
- muted?: boolean;
75
- concurrency?: number;
76
- crf?: number;
77
- ffmpegOverride?: FfmpegOverrideFn;
78
- offthreadVideoThreads?: number;
79
- mediaCacheSizeInBytes?: number;
80
- offthreadVideoCacheSizeInBytes?: number;
81
- timeoutInMilliseconds?: number;
82
- frameRange?: [number, number];
83
- onProgress?: (progress: { renderedFrames: number; encodedFrames: number; renderedDoneIn: number | null; encodedDoneIn: number | null }) => void;
84
- puppeteerInstance?: HeadlessBrowser;
85
- onBrowserLog?: (log: { text: string }) => void;
86
- }): Promise<{ slowestFrames: Array<{ frame: number; time: number }> }>;
87
- }
@@ -1 +0,0 @@
1
- export * from "../_members/authoring/agent/index.js";
@@ -1,28 +0,0 @@
1
- import {
2
- ZERO_USAGE,
3
- buildDirectorTools,
4
- buildPlannerTools,
5
- buildToolsFromSchemas,
6
- extractProviderError
7
- } from "../chunk-6UZYUWBX.js";
8
- import "../chunk-7EDLPIUN.js";
9
- import "../chunk-JOURGVOR.js";
10
- import "../chunk-4NIJWK45.js";
11
- import "../chunk-LBJ5LI5V.js";
12
- import "../chunk-IG3YAOUZ.js";
13
- import "../chunk-PWWZTY3G.js";
14
- import "../chunk-UFD4EZHM.js";
15
- import "../chunk-WPZKOVYF.js";
16
- import "../chunk-B7J5UUUV.js";
17
- import "../chunk-KYRDKK2D.js";
18
- import "../chunk-WREYUH2E.js";
19
- import "../chunk-7PA7FGLD.js";
20
- import "../chunk-OOL7ZUG7.js";
21
- import "../chunk-2ESYSVXG.js";
22
- export {
23
- ZERO_USAGE,
24
- buildDirectorTools,
25
- buildPlannerTools,
26
- buildToolsFromSchemas,
27
- extractProviderError
28
- };
@@ -1 +0,0 @@
1
- export * from "../_members/authoring/capabilities.js";
@@ -1,11 +0,0 @@
1
- import {
2
- AgentFixableCaptureError,
3
- CAPABILITY_GATED_TOOLS,
4
- getExcludedTools
5
- } from "../chunk-JOURGVOR.js";
6
- import "../chunk-2ESYSVXG.js";
7
- export {
8
- AgentFixableCaptureError,
9
- CAPABILITY_GATED_TOOLS,
10
- getExcludedTools
11
- };
@@ -1 +0,0 @@
1
- export * from "../_members/authoring/pipelineTrace.js";
@@ -1,7 +0,0 @@
1
- import {
2
- PipelineTrace
3
- } from "../chunk-GF52TW4I.js";
4
- import "../chunk-2ESYSVXG.js";
5
- export {
6
- PipelineTrace
7
- };
@@ -1 +0,0 @@
1
- export * from "../_members/authoring/tools/index.js";
@@ -1,31 +0,0 @@
1
- import {
2
- COMPOSE_MOTION_TOOLS,
3
- COMPOSE_MOTION_VERIFY_TOOLS,
4
- COMPOSE_PLANNER_REPAIR_TOOLS,
5
- COMPOSE_PLANNER_TOOLS,
6
- COMPOSE_ROLE_TOOLS,
7
- COMPOSE_ROLE_TOOL_NAMES,
8
- dispatchComposeRoleTool
9
- } from "../chunk-7EDLPIUN.js";
10
- import "../chunk-JOURGVOR.js";
11
- import "../chunk-4NIJWK45.js";
12
- import "../chunk-LBJ5LI5V.js";
13
- import "../chunk-IG3YAOUZ.js";
14
- import "../chunk-PWWZTY3G.js";
15
- import "../chunk-UFD4EZHM.js";
16
- import "../chunk-WPZKOVYF.js";
17
- import "../chunk-B7J5UUUV.js";
18
- import "../chunk-KYRDKK2D.js";
19
- import "../chunk-WREYUH2E.js";
20
- import "../chunk-7PA7FGLD.js";
21
- import "../chunk-OOL7ZUG7.js";
22
- import "../chunk-2ESYSVXG.js";
23
- export {
24
- COMPOSE_MOTION_TOOLS,
25
- COMPOSE_MOTION_VERIFY_TOOLS,
26
- COMPOSE_PLANNER_REPAIR_TOOLS,
27
- COMPOSE_PLANNER_TOOLS,
28
- COMPOSE_ROLE_TOOLS,
29
- COMPOSE_ROLE_TOOL_NAMES,
30
- dispatchComposeRoleTool
31
- };
@@ -1,197 +0,0 @@
1
- import {
2
- COMPOSE_PLANNER_TOOLS,
3
- COMPOSE_ROLE_TOOLS,
4
- dispatchComposeRoleTool
5
- } from "./chunk-7EDLPIUN.js";
6
-
7
- // ../authoring/src/agent/buildTools.ts
8
- import { tool } from "ai";
9
- function formatToolResult(name, result) {
10
- if (!COMPOSE_ROLE_TOOLS[name]?.metadata.imageResponse) {
11
- return typeof result === "string" ? result : JSON.stringify(result);
12
- }
13
- if (Array.isArray(result)) {
14
- const images = result;
15
- return {
16
- type: "content",
17
- value: images.map((b64) => ({
18
- type: "image-data",
19
- mediaType: "image/jpeg",
20
- data: b64
21
- }))
22
- };
23
- }
24
- return typeof result === "string" ? result : JSON.stringify(result);
25
- }
26
- var DEDUP_MAX = 3;
27
- function makeCallKey(name, args) {
28
- return `${name}:${JSON.stringify(args, Object.keys(args).sort())}`;
29
- }
30
- var APPROVAL_TIMEOUT_MS = 2 * 60 * 1e3;
31
- function buildToolsFromSchemas(params) {
32
- const capabilities = params.capabilities;
33
- const toolOpts = {
34
- ...params.toolOptions ?? {},
35
- ...params.cachedContext ? { cachedContext: params.cachedContext } : {},
36
- onProgress: params.onProgress
37
- };
38
- const recentCalls = /* @__PURE__ */ new Map();
39
- const tools = {};
40
- for (const [name, schema] of Object.entries(COMPOSE_ROLE_TOOLS)) {
41
- if (params.allowedTools && !params.allowedTools.includes(name)) continue;
42
- const meta = schema.metadata;
43
- const needsApproval = params.approvalRequired?.has(name) ?? false;
44
- tools[name] = tool({
45
- description: schema.description,
46
- inputSchema: schema.schema,
47
- execute: async (args) => {
48
- const toolCallId = `tc_${crypto.randomUUID().slice(0, 8)}`;
49
- if (!meta.dedupExempt) {
50
- const callKey = makeCallKey(name, args);
51
- const callCount = (recentCalls.get(callKey) ?? 0) + 1;
52
- recentCalls.set(callKey, callCount);
53
- if (callCount >= DEDUP_MAX) {
54
- const msg = `Tool "${name}" called ${callCount} times with identical arguments. This looks like a loop \u2014 try a different approach or different arguments.`;
55
- params.onProgress({
56
- type: "tool-result",
57
- agent: "router",
58
- toolName: name,
59
- success: false,
60
- message: msg,
61
- toolCallId,
62
- timestamp: Date.now()
63
- });
64
- return JSON.stringify({ error: msg });
65
- }
66
- }
67
- params.onProgress({
68
- type: "tool-call",
69
- agent: "router",
70
- toolName: name,
71
- args,
72
- toolCallId,
73
- timestamp: Date.now()
74
- });
75
- if (needsApproval && params.requestApproval) {
76
- const approved = await Promise.race([
77
- params.requestApproval(toolCallId, name, args),
78
- new Promise(
79
- (resolve) => setTimeout(() => resolve(false), APPROVAL_TIMEOUT_MS)
80
- )
81
- ]);
82
- if (!approved) {
83
- const msg = "User denied this tool call (or approval timed out).";
84
- params.onProgress({
85
- type: "tool-result",
86
- agent: "router",
87
- toolName: name,
88
- success: false,
89
- message: msg,
90
- toolCallId,
91
- timestamp: Date.now()
92
- });
93
- return JSON.stringify({ error: msg });
94
- }
95
- }
96
- try {
97
- const result = await dispatchComposeRoleTool(name, args, capabilities, toolOpts);
98
- params.onProgress({
99
- type: "tool-result",
100
- agent: "router",
101
- toolName: name,
102
- success: true,
103
- message: typeof result === "string" ? result.slice(0, 200) : JSON.stringify(result).slice(0, 200),
104
- toolCallId,
105
- timestamp: Date.now()
106
- });
107
- return result;
108
- } catch (err) {
109
- const errMsg = err instanceof Error ? err.message : String(err);
110
- params.onProgress({
111
- type: "tool-result",
112
- agent: "router",
113
- toolName: name,
114
- success: false,
115
- message: errMsg,
116
- toolCallId,
117
- timestamp: Date.now()
118
- });
119
- return JSON.stringify({ error: errMsg });
120
- }
121
- },
122
- toModelOutput: ({ output }) => {
123
- const formatted = formatToolResult(name, output);
124
- return typeof formatted === "string" ? { type: "text", value: formatted } : formatted;
125
- }
126
- });
127
- }
128
- return tools;
129
- }
130
- var buildDirectorTools = buildToolsFromSchemas;
131
- var buildPlannerTools = (p) => {
132
- const { toolNames = COMPOSE_PLANNER_TOOLS, ...rest } = p;
133
- return buildToolsFromSchemas({ ...rest, allowedTools: [...toolNames] });
134
- };
135
-
136
- // ../authoring/src/agent/errors.ts
137
- import { APICallError, TypeValidationError } from "ai";
138
- var BODY_EXCERPT = 200;
139
- function providerMessage(responseBody) {
140
- if (!responseBody) return void 0;
141
- try {
142
- const body = JSON.parse(responseBody);
143
- const msg = body?.error?.message ?? body?.message;
144
- return msg == null ? void 0 : String(msg);
145
- } catch {
146
- return void 0;
147
- }
148
- }
149
- function bodyExcerpt(responseBody) {
150
- const trimmed = responseBody?.trim();
151
- if (!trimmed) return void 0;
152
- return trimmed.replace(/\s+/g, " ").slice(0, BODY_EXCERPT);
153
- }
154
- function extractProviderError(err) {
155
- if (APICallError.isInstance(err)) {
156
- const status = err.statusCode;
157
- if (status === 401 || status === 403) {
158
- return "Authentication failed. Check your API key or gateway configuration in Settings.";
159
- }
160
- if (status === 429) {
161
- return "API rate limit or quota exceeded. Try again later.";
162
- }
163
- const detail = providerMessage(err.responseBody);
164
- if (status === 413 || status === 400) {
165
- if (detail) return detail.slice(0, 200);
166
- }
167
- const where = status === void 0 ? "" : ` (HTTP ${status})`;
168
- const evidence = detail ?? bodyExcerpt(err.responseBody);
169
- return (evidence ? `${err.message}${where}: ${evidence}` : `${err.message}${where}`).slice(
170
- 0,
171
- 300
172
- );
173
- }
174
- if (TypeValidationError.isInstance(err)) {
175
- return "Invalid response from AI provider. The provider may be misconfigured or unavailable.";
176
- }
177
- const raw = err instanceof Error ? err.message : String(err);
178
- if (raw.includes("API key not valid")) {
179
- return "API key not valid. Check your gateway or provider configuration in Settings.";
180
- }
181
- return raw.slice(0, 300);
182
- }
183
- var ZERO_USAGE = {
184
- inputTokens: 0,
185
- outputTokens: 0,
186
- totalTokens: 0,
187
- inputTokenDetails: { noCacheTokens: void 0, cacheReadTokens: void 0, cacheWriteTokens: void 0 },
188
- outputTokenDetails: { textTokens: void 0, reasoningTokens: void 0 }
189
- };
190
-
191
- export {
192
- buildToolsFromSchemas,
193
- buildDirectorTools,
194
- buildPlannerTools,
195
- extractProviderError,
196
- ZERO_USAGE
197
- };