@cueframe/kernel 0.1.1 → 0.1.2

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 (501) hide show
  1. package/dist/_members/account-model/testing/conversationStoreContract.d.ts +0 -59
  2. package/dist/_members/account-model/testing/index.d.ts +0 -5
  3. package/dist/_members/account-model/testing/restorePointStoreContract.d.ts +0 -24
  4. package/dist/_members/account-model/validators/contextFile.d.ts +0 -6
  5. package/dist/_members/account-model/validators/conversation.d.ts +0 -96
  6. package/dist/_members/account-model/validators/dashboardInsight.d.ts +0 -6
  7. package/dist/_members/account-model/validators/sessionToken.d.ts +0 -29
  8. package/dist/_members/account-model/validators/uploadToken.d.ts +0 -4
  9. package/dist/_members/account-model/validators/userSettings.d.ts +0 -4
  10. package/dist/_members/account-model/validators/workingComposition.d.ts +0 -7
  11. package/dist/_members/animate/animations/Create.d.ts +0 -19
  12. package/dist/_members/animate/animations/FadeIn.d.ts +0 -17
  13. package/dist/_members/animate/animations/GrowArrow.d.ts +0 -19
  14. package/dist/_members/animate/animations/GrowFromCenter.d.ts +0 -12
  15. package/dist/_members/animate/animations/Indicate.d.ts +0 -17
  16. package/dist/_members/animate/animations/MoveAlongPath.d.ts +0 -18
  17. package/dist/_members/animate/animations/Transform.d.ts +0 -28
  18. package/dist/_members/animate/animations/Wiggle.d.ts +0 -18
  19. package/dist/_members/animate/animations/Write.d.ts +0 -20
  20. package/dist/_members/animate/composition/AnimationGroup.d.ts +0 -21
  21. package/dist/_members/animate/composition/LaggedStart.d.ts +0 -22
  22. package/dist/_members/animate/composition/Succession.d.ts +0 -17
  23. package/dist/_members/animate/easing/rush.d.ts +0 -14
  24. package/dist/_members/animate/easing/smooth.d.ts +0 -7
  25. package/dist/_members/animate/easing/smootherstep.d.ts +0 -6
  26. package/dist/_members/animate/index.d.ts +0 -2
  27. package/dist/_members/animate/mobjects/Arrow.d.ts +0 -25
  28. package/dist/_members/animate/mobjects/BrandBox.d.ts +0 -25
  29. package/dist/_members/animate/mobjects/DiGraph.d.ts +0 -18
  30. package/dist/_members/animate/mobjects/Graph.d.ts +0 -38
  31. package/dist/_members/animate/three/ThreeCanvas.d.ts +0 -23
  32. package/dist/_members/animate/three/drei.d.ts +0 -7
  33. package/dist/_members/authoring/agent/buildTools.d.ts +0 -37
  34. package/dist/_members/authoring/agent/contextManagement.d.ts +0 -65
  35. package/dist/_members/authoring/agent/errors.d.ts +0 -9
  36. package/dist/_members/authoring/agent/memoryTool.d.ts +0 -2
  37. package/dist/_members/authoring/agent/promptCache.d.ts +0 -31
  38. package/dist/_members/authoring/agent.d.ts +0 -34
  39. package/dist/_members/authoring/capabilities.d.ts +0 -145
  40. package/dist/_members/authoring/composer/scopes.d.ts +0 -19
  41. package/dist/_members/authoring/context/brand.d.ts +0 -4
  42. package/dist/_members/authoring/context/brandTokens.d.ts +0 -4
  43. package/dist/_members/authoring/context/index.d.ts +0 -1
  44. package/dist/_members/authoring/context/timeline.d.ts +0 -15
  45. package/dist/_members/authoring/context/transcript.d.ts +0 -11
  46. package/dist/_members/authoring/context/types.d.ts +0 -4
  47. package/dist/_members/authoring/decomposer.d.ts +0 -12
  48. package/dist/_members/authoring/evaluate.d.ts +0 -26
  49. package/dist/_members/authoring/evaluator.d.ts +0 -16
  50. package/dist/_members/authoring/models/modelFactory.d.ts +0 -77
  51. package/dist/_members/authoring/motion/applyMotionPreset.d.ts +0 -12
  52. package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +0 -7
  53. package/dist/_members/authoring/motion/shell.d.ts +0 -20
  54. package/dist/_members/authoring/pipelineTrace.d.ts +0 -19
  55. package/dist/_members/authoring/prompts/decomposerPrompt.d.ts +0 -4
  56. package/dist/_members/authoring/prompts/designReviewerPrompt.d.ts +0 -16
  57. package/dist/_members/authoring/prompts/evaluatorPrompt.d.ts +0 -4
  58. package/dist/_members/authoring/prompts/graphics.d.ts +0 -5
  59. package/dist/_members/authoring/prompts/plannerPrompt.d.ts +0 -30
  60. package/dist/_members/authoring/providers/resourceApi.d.ts +1 -20
  61. package/dist/_members/authoring/resource-routing.d.ts +0 -121
  62. package/dist/_members/authoring/resources.d.ts +0 -34
  63. package/dist/_members/authoring/scope.d.ts +0 -24
  64. package/dist/_members/authoring/tools/brandTokens.d.ts +0 -22
  65. package/dist/_members/authoring/tools/composeRoleTools.d.ts +0 -79
  66. package/dist/_members/authoring/tools/index.d.ts +0 -1
  67. package/dist/_members/authoring/tools/toolSets.d.ts +0 -50
  68. package/dist/_members/authoring/transpileComponent.d.ts +0 -34
  69. package/dist/_members/authoring/transpileHelper.d.ts +0 -18
  70. package/dist/_members/authoring/types.d.ts +0 -149
  71. package/dist/_members/brand-derivation/constants.d.ts +0 -17
  72. package/dist/_members/brand-derivation/contrastSafe.d.ts +0 -23
  73. package/dist/_members/cloud-import/CloudImportService.d.ts +0 -15
  74. package/dist/_members/cloud-import/ImportProvider.d.ts +0 -45
  75. package/dist/_members/cloud-import/MediaItemPreprocessor.d.ts +0 -9
  76. package/dist/_members/cloud-import/cloudConfig.d.ts +0 -15
  77. package/dist/_members/compose/CompositionRenderer.d.ts +0 -6
  78. package/dist/_members/compose/primitiveRegistry.d.ts +0 -64
  79. package/dist/_members/compose/sceneToRenderInput.d.ts +0 -26
  80. package/dist/_members/compose/schema.d.ts +0 -15
  81. package/dist/_members/compose/tokenResolver.d.ts +0 -11
  82. package/dist/_members/composition/audio/audioMix.d.ts +0 -34
  83. package/dist/_members/composition/audio/mixStaging.d.ts +0 -81
  84. package/dist/_members/composition/audio/musicPack.d.ts +0 -35
  85. package/dist/_members/composition/audio/musicPack.generated.d.ts +0 -6
  86. package/dist/_members/composition/audio/pack.d.ts +0 -43
  87. package/dist/_members/composition/audio/pack.generated.d.ts +0 -6
  88. package/dist/_members/composition/audio/palette.d.ts +0 -36
  89. package/dist/_members/composition/autozoom/index.d.ts +0 -32
  90. package/dist/_members/composition/brand-kit.d.ts +0 -8
  91. package/dist/_members/composition/brief/contract.d.ts +0 -90
  92. package/dist/_members/composition/color-grade.d.ts +0 -11
  93. package/dist/_members/composition/depth.d.ts +0 -19
  94. package/dist/_members/composition/fixtures/agentErrored.d.ts +0 -23
  95. package/dist/_members/composition/fonts.d.ts +0 -62
  96. package/dist/_members/composition/graphics-plan/compile.d.ts +0 -29
  97. package/dist/_members/composition/graphics-plan/index.d.ts +0 -5
  98. package/dist/_members/composition/graphics-plan/instantiateMotif.d.ts +0 -17
  99. package/dist/_members/composition/graphics-plan/motion.d.ts +0 -17
  100. package/dist/_members/composition/graphics-plan/schemas.d.ts +0 -171
  101. package/dist/_members/composition/graphics-plan/solve.d.ts +0 -19
  102. package/dist/_members/composition/invariants/clipPlacement.d.ts +0 -59
  103. package/dist/_members/composition/invariants/composition.d.ts +0 -5
  104. package/dist/_members/composition/invariants/etag.d.ts +0 -7
  105. package/dist/_members/composition/invariants/ids.d.ts +0 -6
  106. package/dist/_members/composition/invariants/keyframes.d.ts +0 -19
  107. package/dist/_members/composition/invariants/markers.d.ts +0 -6
  108. package/dist/_members/composition/invariants/time.d.ts +0 -8
  109. package/dist/_members/composition/invariants/tracks.d.ts +0 -48
  110. package/dist/_members/composition/ops/compositionOps.d.ts +4 -71
  111. package/dist/_members/composition/ops/compositionOps.shared.d.ts +30 -0
  112. package/dist/_members/composition/ops/headlessStore.d.ts +0 -24
  113. package/dist/_members/composition/ops/selectors.d.ts +0 -66
  114. package/dist/_members/composition/ops/timeline-word.d.ts +0 -5
  115. package/dist/_members/composition/ops/transcript.d.ts +0 -27
  116. package/dist/_members/composition/ops/types.d.ts +0 -51
  117. package/dist/_members/composition/primitive-catalog/catalogQuery.d.ts +0 -32
  118. package/dist/_members/composition/primitive-catalog/disabled.d.ts +0 -1
  119. package/dist/_members/composition/primitive-catalog/index.d.ts +0 -11
  120. package/dist/_members/composition/primitive-catalog/paramValidation.d.ts +0 -50
  121. package/dist/_members/composition/primitive-catalog/projection.d.ts +0 -39
  122. package/dist/_members/composition/primitive-catalog/types.d.ts +0 -78
  123. package/dist/_members/composition/projection/behind-placement.d.ts +0 -40
  124. package/dist/_members/composition/projection/behind-readiness.d.ts +14 -89
  125. package/dist/_members/composition/projection/brandKit.d.ts +0 -142
  126. package/dist/_members/composition/projection/cardTokens.d.ts +0 -65
  127. package/dist/_members/composition/projection/composition-floor.d.ts +0 -179
  128. package/dist/_members/composition/projection/cropProjection.d.ts +0 -75
  129. package/dist/_members/composition/projection/occlusion-budget.d.ts +0 -37
  130. package/dist/_members/composition/projection/reframe-readiness.d.ts +4 -111
  131. package/dist/_members/composition/projection/safe-zones.d.ts +0 -29
  132. package/dist/_members/composition/reframe/aspectLoss.d.ts +12 -35
  133. package/dist/_members/composition/reframe/coverage.d.ts +0 -40
  134. package/dist/_members/composition/reframe/derive.d.ts +0 -21
  135. package/dist/_members/composition/reframe/index.d.ts +0 -60
  136. package/dist/_members/composition/reframe/kenBurns.d.ts +0 -37
  137. package/dist/_members/composition/reframe/shotScale.d.ts +0 -75
  138. package/dist/_members/composition/reframe/trajectory.d.ts +0 -65
  139. package/dist/_members/composition/timeline/compound.d.ts +0 -31
  140. package/dist/_members/composition/timeline/intent.d.ts +0 -29
  141. package/dist/_members/composition/timeline/keyframes.d.ts +0 -43
  142. package/dist/_members/composition/timeline/link.d.ts +0 -27
  143. package/dist/_members/composition/timeline/occupancy.d.ts +1 -42
  144. package/dist/_members/composition/timeline/placement.d.ts +5 -52
  145. package/dist/_members/composition/timeline/plan.d.ts +5 -53
  146. package/dist/_members/composition/timeline/resolve.d.ts +0 -36
  147. package/dist/_members/composition/timeline/trims.d.ts +0 -49
  148. package/dist/_members/composition/validators/brandKit.d.ts +0 -29
  149. package/dist/_members/composition/validators/composePlan.d.ts +0 -39
  150. package/dist/_members/composition/validators/composition.d.ts +30 -513
  151. package/dist/_members/composition/validators/graphicKinds.d.ts +0 -28
  152. package/dist/_members/composition/validators/render.d.ts +23 -23
  153. package/dist/_members/composition-ops/alphaLayers.d.ts +0 -56
  154. package/dist/_members/composition-ops/index.d.ts +27 -148
  155. package/dist/_members/composition-ops/materializeGrid.d.ts +0 -28
  156. package/dist/_members/composition-ops/opRecorder.d.ts +0 -34
  157. package/dist/_members/composition-ops/recordingStore.d.ts +0 -16
  158. package/dist/_members/composition-ops/replaceRegion.d.ts +0 -48
  159. package/dist/_members/composition-ops/testFixtures.d.ts +0 -14
  160. package/dist/_members/convex-api/api.d.ts +0 -3
  161. package/dist/_members/convex-api/dataModel.d.ts +0 -2
  162. package/dist/_members/core/index.d.ts +1 -1
  163. package/dist/_members/core/render/bookends.d.ts +0 -44
  164. package/dist/_members/core/render/captions.d.ts +0 -42
  165. package/dist/_members/core/render/compositionRender.d.ts +1 -180
  166. package/dist/_members/core/render/deriveTrajectory.d.ts +0 -140
  167. package/dist/_members/core/render/emphasis.d.ts +0 -6
  168. package/dist/_members/core/render/eval/cropBox.d.ts +0 -69
  169. package/dist/_members/core/render/eval/inclusion.d.ts +0 -39
  170. package/dist/_members/core/render/eval/index.d.ts +0 -58
  171. package/dist/_members/core/render/eval/metrics.d.ts +0 -36
  172. package/dist/_members/core/render/exportSettings.d.ts +4 -12
  173. package/dist/_members/core/render/index.d.ts +1 -1
  174. package/dist/_members/core/render/mapFaceToPerson.d.ts +0 -27
  175. package/dist/_members/core/render/types.d.ts +1 -184
  176. package/dist/_members/core/render/variantKeys.d.ts +1 -0
  177. package/dist/_members/core/render/vcam/cameraPath.d.ts +0 -44
  178. package/dist/_members/core/render/vcam/constants.d.ts +0 -93
  179. package/dist/_members/core/render/vcam/errorCodes.d.ts +0 -28
  180. package/dist/_members/core/render/vcam/framing.d.ts +0 -76
  181. package/dist/_members/core/render/vcam/requiredRegion.d.ts +0 -71
  182. package/dist/_members/core/render/vcam/shots.d.ts +0 -40
  183. package/dist/_members/core/render/vcam/subjectSet.d.ts +0 -85
  184. package/dist/_members/core/select/errorCodes.d.ts +0 -25
  185. package/dist/_members/core/select/index.d.ts +0 -20
  186. package/dist/_members/core/select/model.d.ts +0 -79
  187. package/dist/_members/core/select/select.d.ts +0 -49
  188. package/dist/_members/core/select/stabilize.d.ts +0 -102
  189. package/dist/_members/core/types.d.ts +0 -1
  190. package/dist/_members/director/ai-sdk/chunks.d.ts +14 -0
  191. package/dist/_members/director/ai-sdk/context.d.ts +6 -0
  192. package/dist/_members/director/ai-sdk/generationTool.d.ts +8 -0
  193. package/dist/_members/director/ai-sdk/index.d.ts +4 -0
  194. package/dist/_members/director/ai-sdk/messages.d.ts +292 -0
  195. package/dist/_members/director/domain/chat.d.ts +357 -0
  196. package/dist/_members/director/domain/generation.d.ts +1 -0
  197. package/dist/_members/director/domain/index.d.ts +3 -0
  198. package/dist/_members/director/domain/ports.d.ts +32 -0
  199. package/dist/_members/director/index.d.ts +2 -0
  200. package/dist/_members/director/testing/contract.d.ts +52 -0
  201. package/dist/_members/director/testing/index.d.ts +1 -0
  202. package/dist/_members/errors/registry.d.ts +0 -32
  203. package/dist/_members/foundation/codes/index.d.ts +0 -21
  204. package/dist/_members/mcp/adapter.d.ts +1 -84
  205. package/dist/_members/mcp/burnedNames.d.ts +0 -16
  206. package/dist/_members/mcp/core.d.ts +1 -81
  207. package/dist/_members/mcp/curation.d.ts +0 -112
  208. package/dist/_members/mcp/executor.d.ts +0 -49
  209. package/dist/_members/mcp/format.d.ts +0 -6
  210. package/dist/_members/mcp/generated/catalogPreviews.d.ts +0 -1
  211. package/dist/_members/mcp/generated/operations.d.ts +0 -23
  212. package/dist/_members/mcp/internalLoopTools.d.ts +0 -23
  213. package/dist/_members/mcp/prompts.d.ts +0 -16
  214. package/dist/_members/mcp/resources.d.ts +0 -13
  215. package/dist/_members/mcp/server.d.ts +0 -61
  216. package/dist/_members/mcp/wait.d.ts +0 -22
  217. package/dist/_members/mcp/x402Meta.d.ts +0 -44
  218. package/dist/_members/media-model/generation.d.ts +314 -0
  219. package/dist/_members/media-model/index.d.ts +1 -0
  220. package/dist/_members/media-model/media-kind.d.ts +0 -27
  221. package/dist/_members/media-model/transcriptSearch.d.ts +0 -42
  222. package/dist/_members/nle-export/fcpxml.d.ts +0 -13
  223. package/dist/_members/nle-export/index.d.ts +0 -6
  224. package/dist/_members/nle-export/types.d.ts +0 -26
  225. package/dist/_members/nle-export/xml/index.d.ts +0 -8
  226. package/dist/_members/nle-export/xml-utils.d.ts +0 -12
  227. package/dist/_members/perception/activeSpeaker.d.ts +0 -94
  228. package/dist/_members/perception/audioQuality.d.ts +0 -64
  229. package/dist/_members/perception/energyBeat.d.ts +0 -81
  230. package/dist/_members/perception/identityMatch.d.ts +0 -66
  231. package/dist/_members/perception/index.d.ts +0 -52
  232. package/dist/_members/perception/visualQuality.d.ts +0 -73
  233. package/dist/_members/plane/conformance.d.ts +0 -59
  234. package/dist/_members/plane/contract.d.ts +0 -29
  235. package/dist/_members/plane/index.d.ts +0 -15
  236. package/dist/_members/primitives/backgrounds/animated-bar-chart/index.d.ts +0 -13
  237. package/dist/_members/primitives/backgrounds/animated-line-chart/index.d.ts +0 -14
  238. package/dist/_members/primitives/backgrounds/dither-gradient-bg/index.d.ts +0 -14
  239. package/dist/_members/primitives/backgrounds/dynamic-grid/index.d.ts +0 -8
  240. package/dist/_members/primitives/backgrounds/ecosystem-constellation/index.d.ts +0 -8
  241. package/dist/_members/primitives/backgrounds/infinite-marquee/index.d.ts +0 -8
  242. package/dist/_members/primitives/backgrounds/mesh-gradient-bg/index.d.ts +0 -8
  243. package/dist/_members/primitives/backgrounds/perspective-marquee/index.d.ts +0 -8
  244. package/dist/_members/primitives/backgrounds/silk-flow-bg/index.d.ts +0 -17
  245. package/dist/_members/primitives/backgrounds/vector-field/index.d.ts +0 -14
  246. package/dist/_members/primitives/backgrounds/volumetric-rays/index.d.ts +0 -18
  247. package/dist/_members/primitives/captions/Captions.d.ts +0 -24
  248. package/dist/_members/primitives/captions/index.d.ts +0 -15
  249. package/dist/_members/primitives/captions/paginate.d.ts +0 -21
  250. package/dist/_members/primitives/captions/placement.d.ts +0 -30
  251. package/dist/_members/primitives/effects/blur/index.d.ts +0 -16
  252. package/dist/_members/primitives/effects/color-grade/index.d.ts +0 -20
  253. package/dist/_members/primitives/effects/grain/index.d.ts +0 -12
  254. package/dist/_members/primitives/effects/parallax/index.d.ts +0 -13
  255. package/dist/_members/primitives/effects/particles/index.d.ts +0 -16
  256. package/dist/_members/primitives/effects/pulsing-indicator/index.d.ts +0 -10
  257. package/dist/_members/primitives/effects/spotlight-card/index.d.ts +0 -8
  258. package/dist/_members/primitives/effects/spring-pop-in/index.d.ts +0 -10
  259. package/dist/_members/primitives/effects/success-confetti/index.d.ts +0 -8
  260. package/dist/_members/primitives/effects/vignette/index.d.ts +0 -12
  261. package/dist/_members/primitives/hero-text/HeroText.d.ts +0 -17
  262. package/dist/_members/primitives/hero-text/config.d.ts +0 -10
  263. package/dist/_members/primitives/hero-text/index.d.ts +0 -14
  264. package/dist/_members/primitives/index.d.ts +0 -8
  265. package/dist/_members/primitives/layouts/chat-to-preview-layout/index.d.ts +0 -8
  266. package/dist/_members/primitives/layouts/infinite-bento-pan/index.d.ts +0 -8
  267. package/dist/_members/primitives/layouts/letterbox/index.d.ts +0 -15
  268. package/dist/_members/primitives/layouts/photo-grid/index.d.ts +0 -17
  269. package/dist/_members/primitives/layouts/picture-in-picture/index.d.ts +0 -21
  270. package/dist/_members/primitives/layouts/split-screen/index.d.ts +0 -15
  271. package/dist/_members/primitives/layouts/staggered-bento-grid/index.d.ts +0 -8
  272. package/dist/_members/primitives/lib/easings.d.ts +0 -27
  273. package/dist/_members/primitives/lib/palette.d.ts +0 -22
  274. package/dist/_members/primitives/lib/preview.d.ts +0 -22
  275. package/dist/_members/primitives/lib/schema.d.ts +0 -36
  276. package/dist/_members/primitives/lib/seeded-random.d.ts +0 -23
  277. package/dist/_members/primitives/lib/text/contrast.d.ts +0 -17
  278. package/dist/_members/primitives/lib/text/fill.d.ts +0 -5
  279. package/dist/_members/primitives/lib/text/fitText.d.ts +0 -37
  280. package/dist/_members/primitives/lib/text/marker.d.ts +0 -10
  281. package/dist/_members/primitives/lib/text/motion.d.ts +0 -46
  282. package/dist/_members/primitives/lib/text/recolor.d.ts +0 -11
  283. package/dist/_members/primitives/lib/text/spec.d.ts +0 -39
  284. package/dist/_members/primitives/lib/text/stage.d.ts +0 -17
  285. package/dist/_members/primitives/lib/text/typeface.d.ts +0 -11
  286. package/dist/_members/primitives/lib/tokens.d.ts +0 -87
  287. package/dist/_members/primitives/lib/types.d.ts +0 -141
  288. package/dist/_members/primitives/scenes/changelog-bite/index.d.ts +0 -12
  289. package/dist/_members/primitives/scenes/hero-device-assemble/index.d.ts +0 -8
  290. package/dist/_members/primitives/scenes/landing-code-showcase/index.d.ts +0 -8
  291. package/dist/_members/primitives/scenes/live-code-compilation/index.d.ts +0 -8
  292. package/dist/_members/primitives/scenes/pricing-tier-focus/index.d.ts +0 -8
  293. package/dist/_members/primitives/scenes/product-launch-trailer/index.d.ts +0 -8
  294. package/dist/_members/primitives/scenes/terminal-to-browser-deploy/index.d.ts +0 -8
  295. package/dist/_members/primitives/subject-foreground/SubjectForeground.d.ts +0 -38
  296. package/dist/_members/primitives/subject-foreground/index.d.ts +0 -21
  297. package/dist/_members/primitives/text/blur-reveal/index.d.ts +0 -9
  298. package/dist/_members/primitives/text/cinematic-title/index.d.ts +0 -14
  299. package/dist/_members/primitives/text/inline-highlight/index.d.ts +0 -11
  300. package/dist/_members/primitives/text/karaoke/index.d.ts +0 -13
  301. package/dist/_members/primitives/text/kinetic-type/index.d.ts +0 -15
  302. package/dist/_members/primitives/text/lower-third/index.d.ts +0 -14
  303. package/dist/_members/primitives/text/marker-highlight/index.d.ts +0 -10
  304. package/dist/_members/primitives/text/masked-slide-reveal/index.d.ts +0 -8
  305. package/dist/_members/primitives/text/matrix-decode/index.d.ts +0 -9
  306. package/dist/_members/primitives/text/quote-card/index.d.ts +0 -9
  307. package/dist/_members/primitives/text/rgb-glitch-text/index.d.ts +0 -13
  308. package/dist/_members/primitives/text/shimmer-sweep/index.d.ts +0 -10
  309. package/dist/_members/primitives/text/slot-machine-roll/index.d.ts +0 -8
  310. package/dist/_members/primitives/text/staggered-fade-up/index.d.ts +0 -12
  311. package/dist/_members/primitives/text/stat-counter/index.d.ts +0 -13
  312. package/dist/_members/primitives/text/strikethrough-replace/index.d.ts +0 -9
  313. package/dist/_members/primitives/text/text-effect/index.d.ts +0 -17
  314. package/dist/_members/primitives/text/text-fade-replace/index.d.ts +0 -8
  315. package/dist/_members/primitives/text/token-stream/index.d.ts +0 -11
  316. package/dist/_members/primitives/text/tracking-in/index.d.ts +0 -8
  317. package/dist/_members/primitives/text/typewriter/index.d.ts +0 -12
  318. package/dist/_members/primitives/transitions/chromatic-aberration-wipe/index.d.ts +0 -11
  319. package/dist/_members/primitives/transitions/code-diff-wipe/index.d.ts +0 -8
  320. package/dist/_members/primitives/transitions/directional-wipe/index.d.ts +0 -10
  321. package/dist/_members/primitives/transitions/frosted-glass-wipe/index.d.ts +0 -10
  322. package/dist/_members/primitives/transitions/glitch-cut/index.d.ts +0 -3
  323. package/dist/_members/primitives/transitions/grid-pixelate-wipe/index.d.ts +0 -14
  324. package/dist/_members/primitives/transitions/ink-wipe/index.d.ts +0 -3
  325. package/dist/_members/primitives/transitions/kinetic-type-mask/index.d.ts +0 -12
  326. package/dist/_members/primitives/transitions/light-leak/index.d.ts +0 -3
  327. package/dist/_members/primitives/transitions/luma-matte/index.d.ts +0 -2
  328. package/dist/_members/primitives/transitions/morph/index.d.ts +0 -2
  329. package/dist/_members/primitives/transitions/spatial-push/index.d.ts +0 -10
  330. package/dist/_members/primitives/transitions/swipe-transition-wipe/index.d.ts +0 -13
  331. package/dist/_members/primitives/transitions/zoom-through/index.d.ts +0 -2
  332. package/dist/_members/primitives/transitions/zoom-through-transition/index.d.ts +0 -9
  333. package/dist/_members/primitives/ui-blocks/ai-generate-overlay/index.d.ts +0 -8
  334. package/dist/_members/primitives/ui-blocks/ai-generation-canvas/index.d.ts +0 -8
  335. package/dist/_members/primitives/ui-blocks/badge-pop/index.d.ts +0 -11
  336. package/dist/_members/primitives/ui-blocks/before-after-slider/index.d.ts +0 -11
  337. package/dist/_members/primitives/ui-blocks/benchmark-bars/index.d.ts +0 -11
  338. package/dist/_members/primitives/ui-blocks/bounding-box-selector/index.d.ts +0 -8
  339. package/dist/_members/primitives/ui-blocks/browser-flow/index.d.ts +0 -8
  340. package/dist/_members/primitives/ui-blocks/brush-stroke-simulator/index.d.ts +0 -18
  341. package/dist/_members/primitives/ui-blocks/chat-exchange/index.d.ts +0 -10
  342. package/dist/_members/primitives/ui-blocks/code-accordion/index.d.ts +0 -8
  343. package/dist/_members/primitives/ui-blocks/context-meter/index.d.ts +0 -11
  344. package/dist/_members/primitives/ui-blocks/cursor-flow/index.d.ts +0 -11
  345. package/dist/_members/primitives/ui-blocks/dashboard-populate/index.d.ts +0 -8
  346. package/dist/_members/primitives/ui-blocks/data-flow-pipes/index.d.ts +0 -9
  347. package/dist/_members/primitives/ui-blocks/device-mockup-zoom/index.d.ts +0 -8
  348. package/dist/_members/primitives/ui-blocks/drag-and-drop-flow/index.d.ts +0 -8
  349. package/dist/_members/primitives/ui-blocks/eval-scorecard/index.d.ts +0 -11
  350. package/dist/_members/primitives/ui-blocks/glass-code-block/index.d.ts +0 -8
  351. package/dist/_members/primitives/ui-blocks/image-expand-to-fullscreen/index.d.ts +0 -8
  352. package/dist/_members/primitives/ui-blocks/metric-gauge/index.d.ts +0 -12
  353. package/dist/_members/primitives/ui-blocks/morphing-modal/index.d.ts +0 -8
  354. package/dist/_members/primitives/ui-blocks/pipeline-journey/index.d.ts +0 -8
  355. package/dist/_members/primitives/ui-blocks/progress-steps/index.d.ts +0 -8
  356. package/dist/_members/primitives/ui-blocks/reasoning-trace/index.d.ts +0 -10
  357. package/dist/_members/primitives/ui-blocks/simulated-cursor/index.d.ts +0 -8
  358. package/dist/_members/primitives/ui-blocks/terminal-simulator/index.d.ts +0 -19
  359. package/dist/_members/primitives/ui-blocks/toast-notification/index.d.ts +0 -8
  360. package/dist/_members/primitives/ui-blocks/tool-call-stack/index.d.ts +0 -8
  361. package/dist/_members/primitives/ui-blocks/tool-menu-slide-in/index.d.ts +0 -8
  362. package/dist/_members/primitives/ui-blocks/visual-docs-snippet/index.d.ts +0 -8
  363. package/dist/_members/primitives/ui-blocks/voice-waveform/index.d.ts +0 -11
  364. package/dist/_members/primitives/workspace.d.ts +0 -29
  365. package/dist/_members/render-harness/browserOptions.d.ts +11 -0
  366. package/dist/_members/render-harness/browserOptions.d.ts.map +1 -0
  367. package/dist/_members/render-harness/cardRender.d.ts +0 -40
  368. package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
  369. package/dist/_members/render-harness/contractRender.d.ts +0 -16
  370. package/dist/_members/render-harness/contractRender.d.ts.map +1 -1
  371. package/dist/_members/render-harness/extractSegments.d.ts +0 -37
  372. package/dist/_members/render-harness/extractSegments.d.ts.map +1 -1
  373. package/dist/_members/render-harness/index.d.ts +0 -12
  374. package/dist/_members/render-harness/index.d.ts.map +1 -1
  375. package/dist/_members/render-harness/localRender.d.ts +1 -110
  376. package/dist/_members/render-harness/localRender.d.ts.map +1 -1
  377. package/dist/_members/render-harness/materializeSources.d.ts +0 -22
  378. package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
  379. package/dist/_members/render-harness/mediaServer.d.ts +0 -16
  380. package/dist/_members/render-harness/mediaServer.d.ts.map +1 -1
  381. package/dist/_members/render-harness/renderInputAssets.d.ts +0 -45
  382. package/dist/_members/render-harness/renderInputAssets.d.ts.map +1 -1
  383. package/dist/_members/render-harness/resolveAssets.d.ts +0 -24
  384. package/dist/_members/render-harness/resolveAssets.d.ts.map +1 -1
  385. package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts +0 -14
  386. package/dist/_members/render-harness/sandboxGlobalSpecs.d.ts.map +1 -1
  387. package/dist/account-model/validators.js +1 -1
  388. package/dist/account-model.js +1 -1
  389. package/dist/animate.js +0 -15
  390. package/dist/authoring/build-tools.js +8 -8
  391. package/dist/authoring/composer.js +0 -20
  392. package/dist/authoring/context.js +6 -6
  393. package/dist/authoring/pipelineTrace.js +1 -1
  394. package/dist/authoring/prompts.js +1 -1
  395. package/dist/authoring/resource-routing.js +1 -1
  396. package/dist/authoring/resources.js +1 -1
  397. package/dist/authoring/tools.js +7 -7
  398. package/dist/authoring.js +14 -80
  399. package/dist/{chunk-TWQOKKAF.js → chunk-23HFEKV7.js} +0 -6
  400. package/dist/{chunk-EA6MYCYW.js → chunk-2B5VJZHL.js} +14 -25
  401. package/dist/chunk-73DQTUWY.js +131 -0
  402. package/dist/{chunk-HI4UTTPS.js → chunk-AO744WIK.js} +1 -43
  403. package/dist/chunk-BADZHXLR.js +0 -0
  404. package/dist/{chunk-GA23TRNR.js → chunk-BKHGL4MB.js} +5 -13
  405. package/dist/{chunk-PDYO3DOJ.js → chunk-BZZTVOGG.js} +6 -55
  406. package/dist/{chunk-AP6ZIVAV.js → chunk-CAJQ7H5A.js} +17 -17
  407. package/dist/{chunk-7FO3ZJ43.js → chunk-DCVJWGIA.js} +1 -9
  408. package/dist/{chunk-AQBREB5O.js → chunk-DWLNPNC4.js} +1 -4
  409. package/dist/{chunk-SW336CJP.js → chunk-DYZE7JZA.js} +3 -26
  410. package/dist/{chunk-HCCBDJLW.js → chunk-EP2Y6M2J.js} +0 -4
  411. package/dist/{chunk-ZE76SSRT.js → chunk-FMODQD5P.js} +0 -6
  412. package/dist/chunk-FTVZF4GO.js +0 -0
  413. package/dist/{chunk-PMY24FUD.js → chunk-G5BFI32U.js} +1 -1
  414. package/dist/{chunk-LD5ZOUFT.js → chunk-GF52TW4I.js} +0 -4
  415. package/dist/{chunk-ABL557OT.js → chunk-GMD33ZD7.js} +1 -8
  416. package/dist/{chunk-ZWMV6DD2.js → chunk-ICSZF37W.js} +10 -162
  417. package/dist/chunk-IEXAKOEX.js +113 -0
  418. package/dist/{chunk-UY4SWJVE.js → chunk-K2IUBCND.js} +0 -12
  419. package/dist/chunk-LJ5W4ZBU.js +146 -0
  420. package/dist/chunk-LLUW26BS.js +255 -0
  421. package/dist/{chunk-JJ6XD7NG.js → chunk-PIURX6IZ.js} +70 -2
  422. package/dist/{chunk-MMEJ3Y7E.js → chunk-QETYXKQQ.js} +1 -10
  423. package/dist/{chunk-YX2GSJK7.js → chunk-RP4SXXLJ.js} +1 -1
  424. package/dist/{chunk-P727GZVO.js → chunk-SAMQUUO5.js} +3 -5
  425. package/dist/{chunk-RF7U3SCL.js → chunk-TD347SSX.js} +3 -11
  426. package/dist/{chunk-TOJEXFXL.js → chunk-TFGKUWHY.js} +1 -88
  427. package/dist/{chunk-UHGSZZDI.js → chunk-TPA6PYN2.js} +1 -11
  428. package/dist/{chunk-OLFOPQCA.js → chunk-UQSOS726.js} +4 -18
  429. package/dist/{chunk-GBRNYH7W.js → chunk-V24L35GM.js} +0 -11
  430. package/dist/{chunk-MBCXCJOE.js → chunk-VFMW3JUY.js} +1 -1
  431. package/dist/{chunk-DK2ODBNT.js → chunk-VHF66LCQ.js} +16 -98
  432. package/dist/{chunk-JMURQODM.js → chunk-VZ7TYX6Z.js} +0 -1
  433. package/dist/{chunk-SIGGQRY2.js → chunk-W3SIWT7J.js} +5030 -4412
  434. package/dist/{chunk-W35ZMOXB.js → chunk-WPZKOVYF.js} +0 -5
  435. package/dist/chunk-WZH57M53.js +494 -0
  436. package/dist/{chunk-AYVJXDLB.js → chunk-XHGZ2E77.js} +0 -2
  437. package/dist/{chunk-HY3RIEZW.js → chunk-XQ72DZKJ.js} +1 -1
  438. package/dist/{chunk-7DHP4ESU.js → chunk-YLDMAZZE.js} +0 -10
  439. package/dist/{chunk-FYZVH3MC.js → chunk-YQ7FFW3G.js} +0 -11
  440. package/dist/chunk-ZPLJ24OV.js +93 -0
  441. package/dist/cloud-import/multipart.js +1 -1
  442. package/dist/cloud-import.js +9 -16
  443. package/dist/compose/renderer.js +18 -18
  444. package/dist/compose.js +21 -21
  445. package/dist/composition/audio.js +1 -1
  446. package/dist/composition/brand-kit.js +0 -5
  447. package/dist/composition/graphics-plan.js +4 -4
  448. package/dist/composition/ops.js +5 -5
  449. package/dist/composition/primitive-catalog.js +1 -1
  450. package/dist/composition/projection.js +11 -3
  451. package/dist/composition/reframe/kenBurns.js +0 -4
  452. package/dist/composition/reframe.js +4 -2
  453. package/dist/composition/timeline.js +1 -1
  454. package/dist/composition/validators/graphic-kinds.js +1 -1
  455. package/dist/composition/validators.js +4 -4
  456. package/dist/composition-ops.js +16 -135
  457. package/dist/composition.js +15 -7
  458. package/dist/context-JLLU3MYD.js +14 -0
  459. package/dist/core/render.js +9 -7
  460. package/dist/core/select.js +2 -6
  461. package/dist/core.js +5 -7
  462. package/dist/director/ai-sdk.d.ts +1 -0
  463. package/dist/director/ai-sdk.js +33 -0
  464. package/dist/director/domain.d.ts +1 -0
  465. package/dist/director/domain.js +62 -0
  466. package/dist/director/testing.d.ts +1 -0
  467. package/dist/director/testing.js +22 -0
  468. package/dist/director.d.ts +1 -0
  469. package/dist/director.js +86 -0
  470. package/dist/errors.js +1 -1
  471. package/dist/foundation.js +1 -0
  472. package/dist/mcp/adapter.js +4 -64
  473. package/dist/mcp/core.js +1 -1
  474. package/dist/mcp/curation.js +1 -1
  475. package/dist/mcp/server.js +4 -4
  476. package/dist/mcp.js +4 -4
  477. package/dist/media-model/generation.d.ts +1 -0
  478. package/dist/media-model/generation.js +40 -0
  479. package/dist/media-model.js +38 -6
  480. package/dist/nle-export.js +21 -21
  481. package/dist/plane/contract.js +0 -3
  482. package/dist/primitives/backgrounds.js +2 -2
  483. package/dist/primitives/captions.js +0 -5
  484. package/dist/primitives/effects.js +2 -2
  485. package/dist/primitives/hero-text.js +2 -2
  486. package/dist/primitives/layouts.js +2 -2
  487. package/dist/primitives/lib/index.js +17 -17
  488. package/dist/primitives/lib/text/fitText.js +1 -1
  489. package/dist/primitives/lib/tokens.js +1 -1
  490. package/dist/primitives/lib.js +17 -17
  491. package/dist/primitives/scenes.js +2 -2
  492. package/dist/primitives/text.js +2 -2
  493. package/dist/primitives/ui-blocks.js +4 -4
  494. package/dist/primitives.js +21 -21
  495. package/dist/render-harness/sandboxGlobalSpecs.js +1 -1
  496. package/dist/render-harness.js +24 -41
  497. package/package.json +37 -21
  498. package/dist/chunk-6EQXLEP6.js +0 -194
  499. package/dist/chunk-OCFDUCF4.js +0 -504
  500. package/dist/chunk-PODIYN2K.js +0 -742
  501. package/dist/context-YWUZDG5X.js +0 -14
@@ -1,5 +1 @@
1
- /**
2
- * System prompt for the decomposer agent.
3
- * Canonical source: decomposer.md (keep in sync).
4
- */
5
1
  export declare const DECOMPOSER_PROMPT = "You decompose video editing tasks into sequential phases.\n\nEach phase is one of:\n- timeline_edit: modifies the video composition (add overlays, trim clips, etc.)\n- artifact: produces text output (blog post, show notes, descriptions)\n- scene_composition: creates a new composition from scratch using scenes (documentary, slideshow, social content)\n\nRules:\n- Timeline edit and scene_composition phases run sequentially (each depends on previous state)\n- Artifact phases can reference the timeline but don't modify it\n- Each phase should be independently verifiable\n- Keep phases focused \u2014 one clear objective per phase\n- Include verification criteria for each phase\n\nOUTPUT FORMAT (JSON only, no markdown):\n{\n \"phases\": [\n {\n \"name\": \"short-name\",\n \"output\": \"timeline_edit\" | \"artifact\" | \"scene_composition\",\n \"description\": \"what this phase does\",\n \"verificationCriteria\": [\"criterion 1\", \"criterion 2\"],\n \"evaluationPasses\": 1 | 3\n }\n ]\n}\n\nSet evaluationPasses to 1 for timeline edits and scene compositions, 3 for artifacts (content gets more critique passes).";
@@ -1,18 +1,2 @@
1
- /**
2
- * System prompt for the design reviewer agent.
3
- * Used by both CLI provider (as sub-agent config) and TS agent (as second loop).
4
- */
5
1
  export declare const DESIGN_REVIEWER_PROMPT = "You are a design quality reviewer for motion graphics in CueFrame.\n\n## Workflow\n\n1. Call `get_context` to understand the current project state and brand kit.\n2. Call `get_composition` to read the graphics themselves \u2014 a card clip carries its\n `html` and `tokens` verbatim; an overlay or component clip carries its params.\n For a component's animation code, call `get_component_source` with its componentId.\n3. Call `preview_frame` with EVERY beat you need to see in ONE call \u2014 the rendered\n pixels, not your reading of the source.\n4. Assess quality against the checklist below. If improvements are needed, send the\n fixes as ONE `apply_composition` batch \u2014 a `clip.update` op per graphic carrying\n only the fields that change \u2014 then re-preview the beats you touched to verify.\n\n## Quality Checklist\n\n- **Visual hierarchy**: Title large/bold, subtext smaller/lighter, decorative elements subtle\n- **Animation choreography**: Elements arrive in sequence with staggered timing, not all at once\n- **Spring physics**: Use `spring()` for organic entrances instead of plain linear interpolation\n- **Color usage**: Read ALL colors from params (accentColor, textColor, backgroundColor) \u2014 never hardcode\n- **Entrance + exit**: Choreographed entrance sequence AND fade-out in final 15 frames\n- **Layered composition**: Multiple animated elements (text + accent line + shape + bg glow), not just a single element with opacity\n- **Typography**: Appropriate font from FONTS.*, proper letter-spacing, readable sizing\n- **Atmosphere**: Subtle glows, gradients, or accent color bleeds for depth\n\n## Component Contract\n\n- Signature: `export default function Name({ durationInFrames, params }) { ... }`\n- ONLY `useCurrentFrame()` and `useVideoConfig()` hooks. NO useEffect/useState/useMemo/useCallback/useRef.\n- Inline styles only. No imports, no CSS files, no `document` access. Max 10000 chars.\n- All animation driven by frame number.\n\n## Guidelines\n\n- Be specific in feedback: cite which element, which frame range, what to change.\n- Prefer refinement over complete rewrites \u2014 preserve the designer's intent.\n- A still cannot show motion. Judge timing and choreography from the source; judge\n layout, contrast and legibility from the frame.\n- After fixing, always re-preview to confirm the improvement visually.\n";
6
- /**
7
- * Tools available to the design reviewer (restricted set).
8
- *
9
- * THE SERVED NAMES, not a wish list. This array is what `cliProvider.ts` maps
10
- * into the Claude sub-agent's `tools` (prefixed `mcp__cueframe__`), so a name
11
- * that is not on the desktop surface (`INTERNAL_EDITOR_TOOLS` ∪ the nine client
12
- * actions) grants the sub-agent nothing and the prompt above teaches a tool it
13
- * cannot call. Three of the four entries here used to be exactly that
14
- * (`capture_frames`, `inspect_overlay`, `update_overlay` — deleted with the
15
- * hand-written registry), which is why the list and the prompt are now edited
16
- * together and gated by the prompt-vocabulary conformance suite.
17
- */
18
2
  export declare const DESIGN_REVIEWER_TOOLS: string[];
@@ -1,5 +1 @@
1
- /**
2
- * System prompt for the evaluator agent.
3
- * Canonical source: evaluator.md (keep in sync).
4
- */
5
1
  export declare const EVALUATOR_PROMPT = "You are a skeptical QA reviewer. Your job is to find problems, not praise work.\n\nSCORING RULES:\n- If something looks \"fine\" but not \"good\", that's a 5, not a 7.\n- Never say \"overall looks good\" then list issues. Issues mean score deductions.\n- If a verification criterion is not met, the phase FAILS regardless of other scores.\n- Compare against the original task: anything skipped is a deduction.\n- Score each dimension independently on a 0-10 scale.\n\nCALIBRATION:\n\n## Timeline Edit: design_quality\nSCORE 3/10 \u2014 FAIL:\n\"Centered white text on dark background. No animation. No accent elements.\"\n\nSCORE 8/10 \u2014 PASS:\n\"Staggered entrance with spring physics, accent bar + text with letter-spacing animation, exit choreography in final 15 frames. Multiple animated layers.\"\n\nTHE DIFFERENCE: Layered composition with choreographed timing vs. single static element.\n\n## Timeline Edit: craft\nSCORE 3/10 \u2014 FAIL:\n\"Linear fade in, linear fade out. No spring physics. No stagger. Static positioning.\"\n\nSCORE 8/10 \u2014 PASS:\n\"Spring entrance (damping: 12, stiffness: 180), 8-frame stagger between elements, translateY exit with opacity fade, accent bar slides independently.\"\n\nTHE DIFFERENCE: Physics-based motion with choreography vs. basic CSS transitions.\n\n## Artifact: quality\nSCORE 3/10 \u2014 FAIL:\n\"Generic summary that could be about any podcast. No specific quotes or moments referenced.\"\n\nSCORE 8/10 \u2014 PASS:\n\"Opens with a specific compelling quote from the episode. References 3 key moments by timestamp. Matches the host's voice and vocabulary.\"\n\nTHE DIFFERENCE: Specific, contextualized content vs. generic filler.\n\nOUTPUT FORMAT:\nRespond with ONLY a JSON object (no markdown, no explanation):\n{\n \"scores\": { \"dimension_name\": 0-10, ... },\n \"critique\": \"specific issues found\",\n \"evidence\": [\"what you observed\"]\n}";
@@ -6,9 +6,4 @@ export interface ManagedPrompt {
6
6
  content: string;
7
7
  version: string;
8
8
  }
9
- /**
10
- * Override code-gen constants from a managed prompt.
11
- * The prompt content is split by `## ` headers into named sections.
12
- * Accepts an optional fetchPrompt function — no-op if not provided or prompt unavailable.
13
- */
14
9
  export declare function initCodeGenPrompts(fetchPrompt?: (name: string) => Promise<ManagedPrompt | null>): Promise<void>;
@@ -1,15 +1,3 @@
1
- /**
2
- * plannerPrompt.ts — Phase 1 of the two-phase director.
3
- *
4
- * The planning turn runs in the same CLI session as execution (shared system
5
- * prompt, shared context). Planning instructions are embedded in the user
6
- * message, and the execution phase resumes the session via --resume.
7
- *
8
- * The model calls submit_plan tool to return structured output. Text-based
9
- * DIRECT:/PLAN: parsing was removed — structured tool output is now the
10
- * only path.
11
- */
12
- /** Step shape produced by the submit_plan tool. */
13
1
  export interface PlanStep {
14
2
  time: number;
15
3
  name: string;
@@ -18,21 +6,8 @@ export interface PlanStep {
18
6
  text: string;
19
7
  visual: string;
20
8
  }
21
- /**
22
- * Convert structured plan steps to the text format consumed by buildExecutionTask().
23
- */
24
9
  export declare function formatPlanSteps(steps: unknown): string;
25
- /**
26
- * Wrap a plan into the execution prompt for Phase 2.
27
- * The executor receives a locked-in plan and should not re-plan.
28
- */
29
10
  export declare function buildExecutionTask(plan: string, originalTask: string): string;
30
- /**
31
- * Build the user message for the planning turn.
32
- *
33
- * Context JSON is sent separately via --append-system-prompt (not duplicated here).
34
- * Planning instructions are inlined so the director system prompt stays as-is.
35
- */
36
11
  export declare function buildPlannerUserMessage(params: {
37
12
  task: string;
38
13
  messages: Array<{
@@ -40,9 +15,4 @@ export declare function buildPlannerUserMessage(params: {
40
15
  content: string;
41
16
  }>;
42
17
  }): string;
43
- /**
44
- * Planning instructions — used by the CLI path as inline user-message content.
45
- * Extension providers may also wrap these into a standalone system prompt.
46
- * Both paths provide the submit_plan tool for structured output.
47
- */
48
18
  export declare const PLANNING_INSTRUCTIONS = "Analyze the project state and transcript to decide if this request needs a multi-overlay plan or can be executed directly.\n\n## Workflow\n\n1. Call get_context to understand the current project state and transcript \u2014 it\n returns the lead transcript's word timings, so most plans need nothing else.\n2. Call get_media_context for a SPECIFIC media item when you need its own word\n timings or its detected faces; analyze_transcript when you want the editorial\n read (summary / chapters / highlights) rather than the words.\n3. Call submit_plan with your decision.\n\n## Decision Criteria\n\nCall submit_plan with type \"direct\" if:\n- The request is a single action (remove, delete, change, update one thing)\n- No transcript analysis is needed\n\nCall submit_plan with type \"plan\" if:\n- Multiple overlays or scenes are needed\n- The request involves analyzing the transcript for key moments\n\n## Overlay Types (for plan steps)\n- full-screen: Bold text/graphic covering most of the frame (3-5s)\n- lower-third: Subtitle-style bar in the lower third (3-6s)\n- intro: Title card with ripple insert (3-5s)\n- outro: End card with ripple insert (3-5s)\n- scene: Full-screen designed moment (5-30s) \u2014 a card or component that owns the\n frame: a stat, a comparison, a sequence, a diagram built from catalog pieces\n\n## Plan Guidelines (when type is \"plan\")\n- Pick 3-7 key moments, spaced at least 10s apart\n- Text MUST come from the actual transcript \u2014 do not invent quotes\n- Prefer moments where the speaker introduces a concept or transitions topics\n- At most 1 intro and 1 outro";
@@ -1,32 +1,13 @@
1
1
  import type { FontResult, LottieResult } from '../types.js';
2
- /**
3
- * Public-API resource clients — pure HTTP, no gateway auth.
4
- *
5
- * Lifted from `apps/studio/src/llm/resourceApi.ts` so both the desktop Tauri
6
- * app and the server-side Temporal director worker can call the same
7
- * Google Fonts + LottieFiles clients. Gateway-routed search (Pexels,
8
- * Pixabay, Freesound, Klipy) lives in `../resources.ts` — that module
9
- * needs a `Gateway` arg; these functions don't.
10
- */
11
2
  export interface LottieSearchResult {
12
3
  items: LottieResult[];
13
4
  hasMore: boolean;
14
5
  endCursor: string | null;
15
6
  }
16
7
  export declare function searchLottie(query: string, limit?: number, signal?: AbortSignal, after?: string | null): Promise<LottieSearchResult>;
17
- /** Test seam: the font list is cached module-level for 30 min. */
18
8
  export declare function __resetFontCache(): void;
19
- /**
20
- * Thrown when Google rejects our CREDENTIALS rather than the request — a
21
- * permanent misconfiguration, not a blip. Callers must NOT degrade this to an
22
- * empty result set: `search_fonts` returned `0 fonts` for the product's entire
23
- * lifetime precisely because an unkeyed 403 was indistinguishable from
24
- * "nothing matched".
25
- */
26
9
  export declare class FontProviderUnconfiguredError extends Error {
27
10
  readonly code: "provider_unconfigured";
28
11
  constructor(message: string);
29
12
  }
30
- export declare function searchFonts(query: string, perPage?: number, signal?: AbortSignal,
31
- /** Google Fonts Developer API key. Absent ⇒ the call is unkeyed and Google 403s. */
32
- apiKey?: string): Promise<FontResult[]>;
13
+ export declare function searchFonts(query: string, perPage?: number, signal?: AbortSignal, apiKey?: string): Promise<FontResult[]>;
@@ -1,30 +1,7 @@
1
- /**
2
- * Shared SSOT for stock-resource routing, rate-limit caps, query
3
- * normalisation, opaque candidate handles, and the API-facing candidate DTO.
4
- *
5
- * ONE source of truth consumed by BOTH:
6
- * - the Temporal b-roll enrichment worker
7
- * (`the processing worker`)
8
- * - the Convex MCP resource-search lane
9
- * (`the API layer`)
10
- *
11
- * Import via the subpath `@cueframe/authoring/resource-routing` — like
12
- * `@cueframe/authoring/resources`, this pulls in ONLY `./resources` +
13
- * `./types` (fetch/AbortSignal only, no `ai`/node transports), so it
14
- * bundles into the Convex V8 isolate. Never import the authoring ROOT
15
- * from Convex.
16
- */
17
1
  import { type Gateway, type SfxDurationFilter } from './resources.js';
18
2
  export type { Gateway, SfxDurationFilter } from './resources.js';
19
3
  export type ResourceKind = 'video' | 'photo' | 'sfx' | 'gif';
20
4
  export type ResourceProviderId = 'pexels' | 'pixabay' | 'freesound' | 'klipy';
21
- /**
22
- * Normalised candidate shape all provider searches map down to. Matches the
23
- * Convex `candidateShape` in `data-models/convex-schemas/src/enrichment.ts`
24
- * and the worker's `Candidate`. width/height/duration/licenseCode are
25
- * optional because not every kind populates every field (sfx has no
26
- * width/height, photo has no duration, only freesound carries licenseCode).
27
- */
28
5
  export type ResourceCandidate = {
29
6
  provider: ResourceProviderId;
30
7
  externalId: string;
@@ -40,139 +17,42 @@ export type ResourceCandidate = {
40
17
  assetUrl?: string;
41
18
  licenseCode?: string;
42
19
  };
43
- /**
44
- * Provider → (cap, windowMs). Per-provider so different providers can carry
45
- * different free-tier ceilings without cross-bleed. The bucket key
46
- * (`orgId : provider : floor(now/windowMs)`) is derived inside the Convex
47
- * `checkOrgRateLimit` mutation — callers forward `provider`, `cap`, `windowMs`.
48
- *
49
- * Caps sit below documented provider limits to leave headroom for burst
50
- * clients sharing the same gateway key (LiteLLM pools across all CueFrame
51
- * orgs). NOTE the windows differ: pixabay is per-MINUTE, the rest per-HOUR.
52
- */
53
20
  export declare const PROVIDER_CAPS: Record<ResourceProviderId, {
54
21
  cap: number;
55
22
  windowMs: number;
56
23
  }>;
57
- /**
58
- * The `mediaItems.kind` a stock resource lands as, mapped from the enrichment
59
- * kind. photo→image, sfx→audio; video/gif keep their name. The R2 key path
60
- * uses the enrichment kind; the mediaItem row uses this.
61
- */
62
24
  export type MediaItemKind = 'video' | 'image' | 'audio' | 'gif';
63
25
  export declare const ENRICHMENT_KIND_TO_MEDIA_KIND: Record<ResourceKind, MediaItemKind>;
64
- /** Providers that serve a given kind, primary first. */
65
26
  export declare function providersForKind(kind: ResourceKind): ResourceProviderId[];
66
- /** Whether an explicit provider pin is valid for the requested kind. */
67
27
  export declare function isProviderValidForKind(kind: ResourceKind, provider: ResourceProviderId): boolean;
68
- /** Primary provider for a kind (tried first). */
69
28
  export declare function primaryProviderForKind(kind: ResourceKind): ResourceProviderId;
70
- /** Fallback provider for a kind (tried on primary failure/rate-limit), or null. */
71
29
  export declare function fallbackProviderForKind(kind: ResourceKind): ResourceProviderId | null;
72
- /**
73
- * Canonical query normaliser. Lower-cases, strips punctuation to spaces,
74
- * collapses whitespace. Shared by the cache key, the rate-limit path, and
75
- * the candidateId codec so a search and a later import agree on the key.
76
- *
77
- * INVARIANT the candidateId codec relies on: the output contains only
78
- * letters, numbers, and single spaces — never the `|` field separator.
79
- */
80
30
  export declare function normalizeQuery(q: string): string;
81
- /**
82
- * Call the authoring search fn for a (kind, provider) pair. Return type
83
- * widens each specific candidate to `ResourceCandidate`. Throws if the
84
- * provider does not serve the kind (guard the explicit pin BEFORE calling).
85
- *
86
- * `durationSec` is an optional native duration bound honoured ONLY by the sfx
87
- * (Freesound) lane — it maps to Freesound's server-side Solr filter. Other
88
- * kinds ignore it.
89
- */
90
31
  export declare function searchByProvider(gw: Gateway, kind: ResourceKind, provider: ResourceProviderId, query: string, perPage: number, signal?: AbortSignal, durationSec?: SfxDurationFilter): Promise<ResourceCandidate[]>;
91
- /**
92
- * Pick the file extension + MIME for a stock candidate. Derive from the
93
- * downloadUrl when it carries a known extension (Klipy sometimes returns
94
- * `.gif` from its clips endpoint; a provider could ship `.webm`/`.png`),
95
- * else fall back to the kind default. Throws when the resolved extension has
96
- * no MIME mapping (fail loud rather than mirror an undecodable payload).
97
- */
98
32
  export declare function resolveFormat(kind: ResourceKind, downloadUrl: string): {
99
33
  ext: string;
100
34
  mime: string;
101
35
  };
102
- /**
103
- * R2 key for a stock asset. Cross-org shared BYTES (dedup): the same provider
104
- * asset lives at one key regardless of which org imported it. Layout mirrors
105
- * the clip-enrichment mirror: `stock/{provider}/{kind}/{externalId}.{ext}`.
106
- */
107
36
  export declare function resolveStockKey(provider: ResourceProviderId, kind: ResourceKind, externalId: string, ext: string): string;
108
37
  export type DecodedCandidateId = {
109
38
  provider: ResourceProviderId;
110
39
  kind: ResourceKind;
111
- /** Already normalised (== normalizeQuery of the original search query). */
112
40
  query: string;
113
41
  externalId: string;
114
42
  };
115
- /**
116
- * Mint an opaque, deterministic handle for a candidate. NOT backed by a
117
- * table — it encodes exactly what `import_resource` needs to re-resolve the
118
- * candidate from `resourceQueryCache`: (provider, kind, normalizeQuery(query),
119
- * externalId). Deterministic so the same search result always yields the same
120
- * id, and self-normalising so search and import agree on the cache key.
121
- */
122
43
  export declare function encodeCandidateId(input: {
123
44
  provider: ResourceProviderId;
124
45
  kind: ResourceKind;
125
46
  query: string;
126
47
  externalId: string;
127
48
  }): string;
128
- /**
129
- * Decode a candidateId. Throws on malformed input (bad base64, missing
130
- * fields, unknown provider/kind). Only `externalId` may itself contain the
131
- * separator, so it is reconstructed from the tail; provider/kind/normQuery
132
- * are separator-free by construction.
133
- */
134
49
  export declare function decodeCandidateId(id: string): DecodedCandidateId;
135
- /**
136
- * The candidate shape returned by `search_resources` over MCP. Renames the
137
- * internal `photographer*`/`licenseCode` to the public `author*`/`license`,
138
- * surfaces `assetUrl` (TOS-mandated provider backlink) and mints the opaque
139
- * `candidateId`.
140
- *
141
- * IT USED TO DROP `downloadUrl`, on the reasoning that it was "internal only —
142
- * `import_resource` re-resolves it from cache". True for the lane that reasoning
143
- * was written for: an agent importing over MCP never needs the URL, because the
144
- * server fetches the bytes. It is NOT true for a client that cannot use that
145
- * lane — `import_resource` lands assets in a CLOUD project, and the desktop
146
- * drawer inserts into a LOCAL timeline. Those callers fell back to `previewUrl`
147
- * and imported preview-grade bytes that looked correct in a grid and shipped
148
- * soft at export.
149
- *
150
- * So it is surfaced now. `import_resource` remains the server-side path and is
151
- * unchanged; this only stops the omission from silently degrading everyone else.
152
- *
153
- * `license` is per-asset only for freesound (CC0); for pexels/pixabay/klipy it
154
- * is provider-implied and therefore absent.
155
- */
156
50
  export interface ResourceCandidateDTO {
157
51
  candidateId: string;
158
52
  provider: ResourceProviderId;
159
53
  kind: ResourceKind;
160
54
  thumbnail: string;
161
55
  previewUrl: string;
162
- /**
163
- * FULL-RESOLUTION source, when the provider gives one.
164
- *
165
- * Omitted until 2026-08-17, which made every non-`import_resource` consumer
166
- * silently import PREVIEW-grade bytes — the SD file for a Pexels video,
167
- * `preview-hq-mp3` for a Freesound sound, `src.large` for a photo. The desktop
168
- * drawer inserts into a LOCAL timeline and so cannot use `import_resource`
169
- * (that lane lands assets in a CLOUD project), which meant footage looked
170
- * right in the grid and shipped soft at export.
171
- *
172
- * This is NOT a new exposure class: `previewUrl` and `thumbnail` are already
173
- * direct provider CDN links on this same DTO. It is the same link at the
174
- * resolution the caller actually wants.
175
- */
176
56
  downloadUrl?: string;
177
57
  duration?: number;
178
58
  width?: number;
@@ -182,5 +62,4 @@ export interface ResourceCandidateDTO {
182
62
  assetUrl?: string;
183
63
  license?: string;
184
64
  }
185
- /** Map an internal candidate to the public search DTO. */
186
65
  export declare function toResourceCandidateDTO(c: ResourceCandidate, kind: ResourceKind): ResourceCandidateDTO;
@@ -1,18 +1,5 @@
1
1
  import type { StockMediaResult, StockVideoCandidate, StockPhotoCandidate, StockSoundCandidate, StockGifCandidate, SoundEffectResult, GifClipResult } from './types.js';
2
2
  export type { StockMediaResult, StockVideoCandidate, StockPhotoCandidate, StockSoundCandidate, StockGifCandidate, SoundEffectResult, GifClipResult, } from './types.js';
3
- /**
4
- * Resource search functions that route through the LiteLLM gateway proxy.
5
- *
6
- * Single canonical implementation, consumed by:
7
- * - `@cueframe/pro/resourceApi` (desktop / web UI's stock resource panel)
8
- * - `@cueframe/processing-worker` (b-roll enrichment Temporal activity)
9
- *
10
- * The gateway pattern mirrors `models/modelFactory.ts`: a typed
11
- * `{ url, key }` is threaded in; both fields are required. LiteLLM's
12
- * pass-through endpoints (`/pexels/*`, `/pixabay/*`, `/freesound/*`,
13
- * `/klipy/*`) reject requests without `Authorization: Bearer <master_key>`
14
- * with a 401.
15
- */
16
3
  export interface Gateway {
17
4
  url: string;
18
5
  key: string;
@@ -25,12 +12,6 @@ export declare function searchStockPhotos(gw: Gateway, query: string, perPage?:
25
12
  export declare function popularStockPhotos(gw: Gateway, perPage?: number, signal?: AbortSignal): Promise<StockMediaResult[]>;
26
13
  export declare function searchPixabayPhotos(gw: Gateway, query: string, perPage?: number, signal?: AbortSignal): Promise<StockMediaResult[]>;
27
14
  export declare function popularPixabayPhotos(gw: Gateway, perPage?: number, signal?: AbortSignal): Promise<StockMediaResult[]>;
28
- /**
29
- * Optional duration bound for a Freesound search. Maps to Freesound's NATIVE
30
- * Solr range filter (`filter=duration:[<min> TO <max>]`) — the index does the
31
- * bounding server-side; NOTHING is dropped client-side. Both ends are optional:
32
- * `min` defaults to `0`, `max` to `*` (unbounded).
33
- */
34
15
  export interface SfxDurationFilter {
35
16
  min?: number;
36
17
  max?: number;
@@ -40,20 +21,5 @@ export declare function searchKlipy(gw: Gateway, query: string, limit?: number,
40
21
  export declare function trendingKlipy(gw: Gateway, limit?: number, signal?: AbortSignal, type?: 'gifs' | 'clips'): Promise<GifClipResult[]>;
41
22
  export declare function searchStockPhotoCandidates(gw: Gateway, query: string, perPage?: number, signal?: AbortSignal): Promise<StockPhotoCandidate[]>;
42
23
  export declare function searchPixabayPhotoCandidates(gw: Gateway, query: string, perPage?: number, signal?: AbortSignal): Promise<StockPhotoCandidate[]>;
43
- /**
44
- * Candidate-shape variant of `searchSoundEffects` used by the Temporal
45
- * enrichment activity. Filters to CC0 at the mapper — the v1 launch
46
- * scope drops attribution.json sidecars for CC-BY assets, so anything
47
- * non-CC0 would leak into shipped renders without attribution — the
48
- * enrichment design flagged CC-BY attribution plumbing as a launch
49
- * blocker, and it has not been built.
50
- */
51
24
  export declare function searchSoundEffectsCandidates(gw: Gateway, query: string, perPage?: number, signal?: AbortSignal, durationSec?: SfxDurationFilter): Promise<StockSoundCandidate[]>;
52
- /**
53
- * Candidate-shape variant of `searchKlipy`. Returns
54
- * `StockGifCandidate[]` with provider/externalId/duration fields so the
55
- * enrichment activity can persist + dedupe by `(provider, externalId)`.
56
- * The `clips` type returns MP4-backed reaction clips (preferred over
57
- * raw GIFs for overlay rendering); pass `'gifs'` for the GIF endpoint.
58
- */
59
25
  export declare function searchKlipyCandidates(gw: Gateway, query: string, limit?: number, signal?: AbortSignal, type?: 'gifs' | 'clips'): Promise<StockGifCandidate[]>;
@@ -1,31 +1,7 @@
1
- /**
2
- * AgentScope — the agent-neutral operating policy for one agent context: which
3
- * tools it may call, its system-prompt direction, the skills it can load on
4
- * demand, and how its context window is managed.
5
- *
6
- * Cloud-first by design. The primary consumer is the cloud compose author
7
- * (`the Director worker` builds a `composeAuthorScope` whose `prompt` is the
8
- * per-run suggestion craft prompt). The desktop `PageScope` simply EXTENDS this
9
- * type with its route/store/navigation fields — it adapts to the core, the core
10
- * does not bend to it. The scope is a plain data bundle the caller destructures
11
- * into the existing `AgentConfig`/`AgentRunOptions` seams (`activeTools` →
12
- * `opts.tools`, `prompt` → `systemPrompt`, `contextManagement` → `AgentConfig`),
13
- * so adopting it requires no new Agent API.
14
- */
15
1
  import type { ContextManagementPolicy } from './agent/contextManagement.js';
16
2
  export interface AgentScope {
17
- /** Tool names this scope may call — passed to the AI SDK as activeTools. */
18
3
  readonly activeTools: readonly string[];
19
- /**
20
- * System-prompt direction for this scope. The cloud author computes this
21
- * per-run (the suggestion craft prompt); desktop scopes are static strings.
22
- */
23
4
  readonly prompt: string;
24
- /** Context-window management policy for the tool loop (stale-content eviction). */
25
5
  readonly contextManagement?: ContextManagementPolicy;
26
6
  }
27
- /** Bake a craft skill's FULL content into the scope prompt. Structural craft:
28
- * the compose loop's `load_skill` was measured at a 0% load rate over a full
29
- * week — craft offered as a tool the loop may skip gets skipped (spec
30
- * 2026-07-13-phased-card-first §2.5). Static per phase → prompt-cache-friendly. */
31
7
  export declare function renderSkillContent(name: string, body: string): string;
@@ -1,16 +1,3 @@
1
- /**
2
- * Brand Token Resolver -- auto-fills overlay params from template defaults and
3
- * (for brand-driven fields) semantic brand-token refs resolved at render time.
4
- *
5
- * Pure function module. No class, no state, no store imports at runtime.
6
- *
7
- * Resolution strategy:
8
- * 1. Explicit LLM args → stored as literals (always wins)
9
- * 2. Template paramDefaults → stored as literals (non-content fields)
10
- * 3. Brand-driven slots unset by caller → stored as `"$brand:<path>"` refs
11
- * resolved by `@cueframe/compose` at render time, so brand-kit edits
12
- * propagate to existing overlays without rewriting persisted rows.
13
- */
14
1
  export interface TemplateMeta {
15
2
  id: string;
16
3
  name: string;
@@ -22,13 +9,4 @@ export interface TemplateMeta {
22
9
  export interface ResolveContext {
23
10
  templateMeta?: TemplateMeta;
24
11
  }
25
- /**
26
- * Fill gaps in overlay params using template defaults and brand-token refs.
27
- * Never mutates the input -- returns a new params object.
28
- *
29
- * Note: brand-driven slots store a `"$brand:<path>"` ref when unset. The
30
- * render-time inflater (`@cueframe/compose/inflatePrimitiveProps`) resolves
31
- * refs against the active brand kit. This keeps brand-kit edits live for
32
- * existing overlays instead of baking a snapshot.
33
- */
34
12
  export declare function resolveOverlayParams(params: Record<string, unknown>, ctx: ResolveContext): Record<string, unknown>;
@@ -1,51 +1,6 @@
1
- /**
2
- * The IN-PROCESS compose-role tools — what is left after the 81-tool registry.
3
- *
4
- * ── WHY ANYTHING SURVIVED ───────────────────────────────────────────────────
5
- * The one-vocabulary merge moved every AGENT-FACING surface onto the curated
6
- * `/v1` manifest (`buildCuratedToolSet`): the hosted MCP server, the Convex
7
- * editor agent, the desktop Director (over `LocalExecutor`) and the cloud
8
- * Director's author / assembler / designer roles all speak the same names now,
9
- * and `TOOL_SCHEMAS` / `TOOL_REGISTRY` / `handlers/` are deleted.
10
- *
11
- * TWO Director roles do not, BY DESIGN: `shouldUseMcpSurface`
12
- * (the Director worker) returns false for
13
- * `planner` and `motion`. Their verbs are not API calls and cannot be:
14
- *
15
- * submit_compose_plan / amend_compose_plan deliver a value to the RUNNING
16
- * ACTIVITY's `planSink` — a Temporal-local closure. There is no project
17
- * to POST to; the plan is validated and locked by the workflow.
18
- * capture_frames / score_composition drive the run's in-loop capture
19
- * and verify budgets (one Modal render instance per activity, cost-capped
20
- * per run). The /v1 twins (`preview_frame`, `score_composition`) bill per
21
- * call against a project the candidate does not have yet.
22
- * apply_motion_preset mutates the run's headless store
23
- * and mints a tenant component; the storyboard is APPROVED at that point
24
- * and must not round-trip through a scratch session.
25
- * get_context / get_word_timings / inspect_overlay / update_overlay /
26
- * search_library read and write THAT store and the
27
- * run's pre-curated candidate pool — neither exists server-side.
28
- *
29
- * So this module is not a surviving fragment of the old vocabulary; it is the
30
- * in-process compose lane's own tool set, ten names, all reachable only from
31
- * `COMPOSE_PLANNER_TOOLS`, `COMPOSE_PLANNER_REPAIR_TOOLS` and
32
- * `COMPOSE_MOTION_TOOLS`. Anything an EDITING agent can ask for lives in the
33
- * manifest. If a role ever moves onto the MCP surface, its entries leave here.
34
- *
35
- * ── NO `registerToolHandlers` ───────────────────────────────────────────────
36
- * The old registry was mutable at runtime, and three consumers reached in to
37
- * swap handlers (the pro extension, the Director's compose `search_library`
38
- * formatter, the Director's `add_overlay` validator). That global mutability is
39
- * gone with it: handlers are bound here, once. The compose-lane `search_library`
40
- * formatting is IN the handler below (it was the only real override left), and
41
- * a consumer that needs different behaviour supplies a different CAPABILITY,
42
- * which is the seam that was always meant to carry it.
43
- */
44
1
  import { z } from 'zod';
45
2
  import type { AgentCapabilities } from '../capabilities.js';
46
- /** Options bag passed to tool handlers. */
47
3
  export type ToolHandlerOptions = Record<string, unknown>;
48
- /** The shapes handlers actually produce. */
49
4
  export type ToolHandlerResult = {
50
5
  error: string;
51
6
  } | {
@@ -57,56 +12,22 @@ export type ToolHandler = (args: Record<string, unknown>, capabilities: AgentCap
57
12
  export interface ToolMeta {
58
13
  name: string;
59
14
  description: string;
60
- /**
61
- * Zod object schema for the tool's input parameters.
62
- *
63
- * Typed to its OUTPUT shape rather than `z.ZodType<any>`: AI SDK v7 infers a
64
- * tool's input from this schema, and `any` collapses that inference to
65
- * `never` — every `tool()` built from this registry then fails to typecheck.
66
- * These are all object schemas, so saying so is a truer declaration, not a
67
- * workaround.
68
- */
69
15
  schema: z.ZodType<Record<string, unknown>>;
70
16
  metadata: {
71
17
  label: string;
72
- /** True for tools that return image data (base64) — routed to vision blocks. */
73
18
  imageResponse?: boolean;
74
- /**
75
- * True for read/verification tools whose whole purpose is to be re-issued
76
- * with identical args after an edit. The dedup loop-guard skips these:
77
- * re-rendering the same beat to confirm a fix is progress, not a stuck
78
- * loop, and cost is bounded by the per-run capture budget instead.
79
- */
80
19
  dedupExempt?: boolean;
81
20
  };
82
- /** When true, the AI SDK enforces strict schema matching. */
83
21
  strict?: boolean;
84
- /** Example inputs for AI SDK tool hints. */
85
22
  inputExamples?: Array<{
86
23
  input: Record<string, unknown>;
87
24
  }>;
88
- /** Custom output formatter (truncate, summarize). */
89
25
  toModelOutput?: (result: unknown) => {
90
26
  type: 'text';
91
27
  value: string;
92
28
  };
93
29
  handler: ToolHandler;
94
30
  }
95
- /**
96
- * FROZEN. The registry this replaces was a mutable process-global that three
97
- * consumers reached into at module load (`registerToolHandlers`), so a worker's
98
- * tool behaviour depended on import order and one consumer's override silently
99
- * became everyone's. `Object.freeze` makes the successor's shape a compile-time
100
- * AND runtime fact: a re-introduced mutation throws in strict mode instead of
101
- * quietly re-creating the failure mode this deletion removed.
102
- */
103
31
  export declare const COMPOSE_ROLE_TOOLS: Readonly<Record<string, ToolMeta>>;
104
- /** Every name this module serves — the in-process lane's whole vocabulary. */
105
32
  export declare const COMPOSE_ROLE_TOOL_NAMES: readonly string[];
106
- /**
107
- * Dispatch one in-process tool call. Args are validated against the tool's own
108
- * schema first — LLM-generated args are routinely malformed, and a type error
109
- * inside a handler reads as an infrastructure failure rather than a fixable
110
- * one.
111
- */
112
33
  export declare function dispatchComposeRoleTool(toolName: string, args: Record<string, unknown>, capabilities: AgentCapabilities, opts?: ToolHandlerOptions): Promise<ToolHandlerResult>;
@@ -1,4 +1,3 @@
1
- /** Barrel re-export for the tool system. */
2
1
  export { COMPOSE_PLANNER_TOOLS, COMPOSE_PLANNER_REPAIR_TOOLS, COMPOSE_MOTION_TOOLS, COMPOSE_MOTION_VERIFY_TOOLS, } from './toolSets.js';
3
2
  export { COMPOSE_ROLE_TOOLS, COMPOSE_ROLE_TOOL_NAMES, dispatchComposeRoleTool, } from './composeRoleTools.js';
4
3
  export type { ToolMeta, ToolHandler, ToolHandlerOptions, ToolHandlerResult, } from './composeRoleTools.js';
@@ -1,54 +1,4 @@
1
- /**
2
- * The IN-PROCESS compose ROLE scopes — which tool names the planner and the
3
- * motion pass may use.
4
- *
5
- * Names only; no schemas, no handlers. They are read by the in-process factory
6
- * over `COMPOSE_ROLE_TOOLS` (composeRoleTools.ts), the ten verbs that
7
- * structurally cannot be `/v1` calls.
8
- *
9
- * ONLY those two roles. The MCP roles' scopes (author / assembler / designer)
10
- * are NOT here — they are `CURATED_AUTHOR_TOOLS` / `CURATED_DESIGNER_TOOLS` in
11
- * the director's `agent/composeToolScopes.ts` (moved out of @cueframe/mcp
12
- * 2026-08-22 — the scopes are director steering). Until
13
- * 2026-08-08 this file also carried `COMPOSE_AUTHOR_TOOLS` /
14
- * `COMPOSE_ASSEMBLER_TOOLS` / `COMPOSE_DESIGNER_TOOLS`, whose ~18 entries
15
- * (`add_clip`, `set_captions`, `add_overlay`, `view_asset`, `verify_graphic`, …)
16
- * had been deleted verbs since the registry went: `runAuthorOnMcpSurface`'s
17
- * factory ignores the Agent's `allowedTools` and builds the CURATED set, so the
18
- * lists scoped nothing while reading exactly like a live scope. They cannot be
19
- * restated here without first ADDING a `@cueframe/mcp` dependency to this
20
- * package — which nothing mechanically forbids (dependency-cruiser only flags
21
- * the UNDECLARED import; a declared edge would resolve and pass), so treat the
22
- * one-way vocabulary flow as convention held up by where the gates sit. That is
23
- * precisely why the MCP scopes belong on the MCP side. The director joins the
24
- * two (agent/composeAuthorScope.ts) and gates the join
25
- * (agent/__tests__/oneVocabularyPerSurface.test.ts).
26
- *
27
- * The per-skill sets that used to live beside these (ANALYSIS_TOOLS,
28
- * EDITING_TOOLS, GRAPHICS_TOOLS, CAPTIONS_TOOLS, RESOURCES_TOOLS,
29
- * EXPORT_TOOLS — 81 desktop-only verbs) are DELETED with the registry: the
30
- * desktop editor agent's scope is now `INTERNAL_EDITOR_TOOLS`
31
- * (packages/mcp/src/curation.ts) plus the nine client actions.
32
- */
33
- /** The compose PLANNER's tool subset — read-only context + VISION + the plan
34
- * tool. `capture_frames` lets the planner SEE the raw source (judge shot types:
35
- * wide establishing vs tight speaker) before deciding framing/trims — presence
36
- * data alone can't distinguish a framable tight shot from an un-framable wide
37
- * one. No mutation tools: the planner decides, the assembler builds. */
38
1
  export declare const COMPOSE_PLANNER_TOOLS: readonly ["get_context", "get_word_timings", "search_library", "capture_frames", "submit_compose_plan"];
39
- /** REPAIR-round planner scope (plan-ops, 2026-07-18): same recon set, but
40
- * amend_compose_plan REPLACES submit_compose_plan — a repair round cannot
41
- * re-emit the full plan, so un-amended sections cannot drift (run-3 root
42
- * cause: the bounce path regenerated the whole plan and deleted graphics). */
43
2
  export declare const COMPOSE_PLANNER_REPAIR_TOOLS: readonly ["get_context", "get_word_timings", "search_library", "capture_frames", "amend_compose_plan"];
44
- /** The P2 MOTION pass's tool subset (phased card-first §3): the storyboard is
45
- * APPROVED, so motion may tune and shell but never restructure — no add/remove,
46
- * no framing, no captions. update_overlay tunes library timing/params;
47
- * apply_motion_preset shells static cards; capture/score verify the motion. */
48
3
  export declare const COMPOSE_MOTION_TOOLS: readonly ["get_context", "get_word_timings", "inspect_overlay", "capture_frames", "update_overlay", "apply_motion_preset", "score_composition"];
49
- /** The motion pass's READ/VERIFY subset — COMPOSE_MOTION_TOOLS minus its two
50
- * mutations. The Agent's reserve-verify-step (finalStepTools, P0.2) restricts
51
- * the LAST budgeted step to these, so a mutation can never be the loop's
52
- * unread final act (staging v17b1hsx: the pass's only mutation errored on step
53
- * 12/12 and nobody read the error — the card shipped static). */
54
4
  export declare const COMPOSE_MOTION_VERIFY_TOOLS: ("capture_frames" | "score_composition" | "get_context" | "get_word_timings" | "inspect_overlay")[];
@@ -1,40 +1,6 @@
1
- /**
2
- * transpileComponent — TSX → sandbox-ready JS for the Bakeless Render Lane.
3
- *
4
- * A `live` component renders as a `custom` overlay inside the render-page sandbox
5
- * (`evaluateInSandbox`, packages/execution/render-entry/src/sandbox-scope.ts), whose wrapper is:
6
- *
7
- * (function(){ "use strict"; const exports = {}; <CODE> return exports.default; })()
8
- *
9
- * So the transpiled `<CODE>` must (a) contain NO `import`/`export` statements —
10
- * they are syntax errors inside a function body, and the sandbox INJECTS React /
11
- * remotion / animate as endowments — and (b) assign `exports.default = <Component>`.
12
- *
13
- * This is the Node/native-esbuild sibling of the desktop `transpileJsx`
14
- * (apps/studio/src/llm/transpile.ts, esbuild-wasm) and the director's
15
- * `serverTranspiler` (activities/director.ts). All three share ONE transpile
16
- * config — the SSOT `ESBUILD_JSX_OPTIONS` + `postProcessForSandbox` in
17
- * ./transpileHelper — so a live component transpiled here is byte-identical to
18
- * what those paths produce. Do NOT inline a second config here.
19
- *
20
- * Native (not wasm) esbuild `transformSync`: this runs in a Node runtime (a Convex
21
- * `"use node"` action or the director), never the Convex V8 isolate. Synchronous +
22
- * throwing so the save path can turn a compile failure into a 422
23
- * `component_does_not_compile` in one call.
24
- */
25
- /** A live component's TSX did not compile. Carries the esbuild message (the
26
- * author-fixable detail the save path surfaces as `component_does_not_compile`). */
27
1
  export declare class TranspileError extends Error {
28
2
  constructor(message: string);
29
3
  }
30
- /**
31
- * Transpile a component's authored `tsxSource` to sandbox-ready `jsSource`.
32
- * Throws `TranspileError` (with the esbuild message) on a compile failure.
33
- *
34
- * `componentId` is used only to name the virtual source file so esbuild's error
35
- * messages point at the component (`<componentId>.tsx`), never at an anonymous
36
- * `<stdin>`.
37
- */
38
4
  export declare function transpileComponent(tsxSource: string, componentId: string): {
39
5
  jsSource: string;
40
6
  };