@adminide-stack/yantra-mobile 12.0.187 → 12.0.188-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1491) hide show
  1. package/lib/assets/canvas/apps/holiday-clip/christmas_photo_shoot.webp +0 -0
  2. package/lib/assets/canvas/apps/holiday-clip/instant_christmas.webp +0 -0
  3. package/lib/assets/canvas/apps/holiday-clip/jumping_ginger_joy.webp +0 -0
  4. package/lib/assets/canvas/apps/holiday-clip/my_santa_pic.webp +0 -0
  5. package/lib/assets/canvas/apps/holiday-clip/ornament_crash.webp +0 -0
  6. package/lib/assets/canvas/apps/holiday-clip/santa_express.webp +0 -0
  7. package/lib/assets/canvas/apps/holiday-clip/santa_gift.webp +0 -0
  8. package/lib/assets/canvas/apps/micro-beasts/alpacas.webp +0 -0
  9. package/lib/assets/canvas/apps/micro-beasts/bunnies.webp +0 -0
  10. package/lib/assets/canvas/apps/micro-beasts/ducklings.webp +0 -0
  11. package/lib/assets/canvas/apps/micro-beasts/fawns.webp +0 -0
  12. package/lib/assets/canvas/apps/micro-beasts/fox-cubs.webp +0 -0
  13. package/lib/assets/canvas/apps/micro-beasts/hedgehogs.webp +0 -0
  14. package/lib/assets/canvas/apps/micro-beasts/kittens.webp +0 -0
  15. package/lib/assets/canvas/apps/micro-beasts/lambs.webp +0 -0
  16. package/lib/assets/canvas/apps/micro-beasts/mix.webp +0 -0
  17. package/lib/assets/canvas/apps/micro-beasts/otters.webp +0 -0
  18. package/lib/assets/canvas/apps/micro-beasts/owlets.webp +0 -0
  19. package/lib/assets/canvas/apps/micro-beasts/penguins.webp +0 -0
  20. package/lib/assets/canvas/apps/micro-beasts/piglets.webp +0 -0
  21. package/lib/assets/canvas/apps/micro-beasts/puppies.webp +0 -0
  22. package/lib/assets/canvas/apps/micro-beasts/red-pandas.webp +0 -0
  23. package/lib/assets/canvas/apps/monster-makeover/cute_pumpkin_transform.webp +0 -0
  24. package/lib/assets/canvas/apps/monster-makeover/demon_transform.webp +0 -0
  25. package/lib/assets/canvas/apps/monster-makeover/mummy_transform.webp +0 -0
  26. package/lib/assets/canvas/apps/monster-makeover/pumpkin_head_transform.webp +0 -0
  27. package/lib/assets/canvas/apps/monster-makeover/vampire_transform.webp +0 -0
  28. package/lib/assets/canvas/apps/monster-makeover/witch_transform.webp +0 -0
  29. package/lib/assets/canvas/apps/monster-makeover/zombie_transform.webp +0 -0
  30. package/lib/assets/canvas/apps/party-clip/birthday_star.webp +0 -0
  31. package/lib/assets/canvas/apps/party-clip/bouquet_drop.webp +0 -0
  32. package/lib/assets/canvas/apps/party-clip/box_of_joy.webp +0 -0
  33. package/lib/assets/canvas/apps/party-clip/happy_birthday.webp +0 -0
  34. package/lib/assets/canvas/apps/party-clip/surprise_bouquet.webp +0 -0
  35. package/lib/assets/canvas/apps/pet-tricks/drunk_dance_pet.webp +0 -0
  36. package/lib/assets/canvas/apps/pet-tricks/pet_bee_pro.webp +0 -0
  37. package/lib/assets/canvas/apps/pet-tricks/pet_lion_pro.webp +0 -0
  38. package/lib/assets/canvas/cinematic/era/contemporary.webp +0 -0
  39. package/lib/assets/canvas/cinematic/era/digital-2000s.webp +0 -0
  40. package/lib/assets/canvas/cinematic/era/dye-transfer-50s.webp +0 -0
  41. package/lib/assets/canvas/cinematic/era/far-future.webp +0 -0
  42. package/lib/assets/canvas/cinematic/era/golden-age.webp +0 -0
  43. package/lib/assets/canvas/cinematic/era/gritty-70s.webp +0 -0
  44. package/lib/assets/canvas/cinematic/era/indie-90s.webp +0 -0
  45. package/lib/assets/canvas/cinematic/era/near-future.webp +0 -0
  46. package/lib/assets/canvas/cinematic/era/neon-80s.webp +0 -0
  47. package/lib/assets/canvas/cinematic/era/new-wave.webp +0 -0
  48. package/lib/assets/canvas/cinematic/era/silent-era.webp +0 -0
  49. package/lib/assets/canvas/cinematic/era/victorian.webp +0 -0
  50. package/lib/assets/canvas/cinematic/genre/action.webp +0 -0
  51. package/lib/assets/canvas/cinematic/genre/adventure.webp +0 -0
  52. package/lib/assets/canvas/cinematic/genre/comedy.webp +0 -0
  53. package/lib/assets/canvas/cinematic/genre/coming-of-age.webp +0 -0
  54. package/lib/assets/canvas/cinematic/genre/documentary.webp +0 -0
  55. package/lib/assets/canvas/cinematic/genre/drama.webp +0 -0
  56. package/lib/assets/canvas/cinematic/genre/epic.webp +0 -0
  57. package/lib/assets/canvas/cinematic/genre/fantasy.webp +0 -0
  58. package/lib/assets/canvas/cinematic/genre/horror.webp +0 -0
  59. package/lib/assets/canvas/cinematic/genre/musical.webp +0 -0
  60. package/lib/assets/canvas/cinematic/genre/mystery.webp +0 -0
  61. package/lib/assets/canvas/cinematic/genre/noir.webp +0 -0
  62. package/lib/assets/canvas/cinematic/genre/romance.webp +0 -0
  63. package/lib/assets/canvas/cinematic/genre/sci-fi.webp +0 -0
  64. package/lib/assets/canvas/cinematic/genre/thriller.webp +0 -0
  65. package/lib/assets/canvas/cinematic/genre/western.webp +0 -0
  66. package/lib/assets/canvas/cinematic/lighting/backlit.webp +0 -0
  67. package/lib/assets/canvas/cinematic/lighting/blue-hour.webp +0 -0
  68. package/lib/assets/canvas/cinematic/lighting/candlelight.webp +0 -0
  69. package/lib/assets/canvas/cinematic/lighting/daylight.webp +0 -0
  70. package/lib/assets/canvas/cinematic/lighting/golden-hour.webp +0 -0
  71. package/lib/assets/canvas/cinematic/lighting/hard-sun.webp +0 -0
  72. package/lib/assets/canvas/cinematic/lighting/high-key.webp +0 -0
  73. package/lib/assets/canvas/cinematic/lighting/low-key.webp +0 -0
  74. package/lib/assets/canvas/cinematic/lighting/moonlight.webp +0 -0
  75. package/lib/assets/canvas/cinematic/lighting/neon-practicals.webp +0 -0
  76. package/lib/assets/canvas/cinematic/lighting/overcast.webp +0 -0
  77. package/lib/assets/canvas/cinematic/lighting/overhead.webp +0 -0
  78. package/lib/assets/canvas/cinematic/lighting/practicals.webp +0 -0
  79. package/lib/assets/canvas/cinematic/lighting/silhouette.webp +0 -0
  80. package/lib/assets/canvas/cinematic/lighting/soft-cross.webp +0 -0
  81. package/lib/assets/canvas/cinematic/lighting/three-point.webp +0 -0
  82. package/lib/assets/canvas/cinematic/lighting/window-light.webp +0 -0
  83. package/lib/assets/canvas/cinematic/stock/16mm.webp +0 -0
  84. package/lib/assets/canvas/cinematic/stock/35mm-film.webp +0 -0
  85. package/lib/assets/canvas/cinematic/stock/70mm-large-format.webp +0 -0
  86. package/lib/assets/canvas/cinematic/stock/70s-zoom.webp +0 -0
  87. package/lib/assets/canvas/cinematic/stock/anamorphic.webp +0 -0
  88. package/lib/assets/canvas/cinematic/stock/black-and-white-film.webp +0 -0
  89. package/lib/assets/canvas/cinematic/stock/clean-sharp-prime.webp +0 -0
  90. package/lib/assets/canvas/cinematic/stock/disposable-camera.webp +0 -0
  91. package/lib/assets/canvas/cinematic/stock/dv-camcorder.webp +0 -0
  92. package/lib/assets/canvas/cinematic/stock/fisheye.webp +0 -0
  93. package/lib/assets/canvas/cinematic/stock/halation.webp +0 -0
  94. package/lib/assets/canvas/cinematic/stock/instant-film.webp +0 -0
  95. package/lib/assets/canvas/cinematic/stock/large-format-digital.webp +0 -0
  96. package/lib/assets/canvas/cinematic/stock/macro.webp +0 -0
  97. package/lib/assets/canvas/cinematic/stock/medium-format.webp +0 -0
  98. package/lib/assets/canvas/cinematic/stock/modern-digital.webp +0 -0
  99. package/lib/assets/canvas/cinematic/stock/pinhole.webp +0 -0
  100. package/lib/assets/canvas/cinematic/stock/soft-focus.webp +0 -0
  101. package/lib/assets/canvas/cinematic/stock/super-35.webp +0 -0
  102. package/lib/assets/canvas/cinematic/stock/super-8.webp +0 -0
  103. package/lib/assets/canvas/cinematic/stock/swirl-bokeh.webp +0 -0
  104. package/lib/assets/canvas/cinematic/stock/tilt-shift.webp +0 -0
  105. package/lib/assets/canvas/cinematic/stock/vintage-anamorphic.webp +0 -0
  106. package/lib/assets/canvas/cinematic/stock/vintage-prime.webp +0 -0
  107. package/lib/assets/canvas/cinematic/stock/warm-cinema-prime.webp +0 -0
  108. package/lib/assets/canvas/stylize/animated_series.webp +0 -0
  109. package/lib/assets/canvas/stylize/anime.webp +0 -0
  110. package/lib/assets/canvas/stylize/anime_character.webp +0 -0
  111. package/lib/assets/canvas/stylize/anime_game_style.webp +0 -0
  112. package/lib/assets/canvas/stylize/art_nouveau.webp +0 -0
  113. package/lib/assets/canvas/stylize/baroque.webp +0 -0
  114. package/lib/assets/canvas/stylize/black_and_white_film.webp +0 -0
  115. package/lib/assets/canvas/stylize/blueprint.webp +0 -0
  116. package/lib/assets/canvas/stylize/brick_toy.webp +0 -0
  117. package/lib/assets/canvas/stylize/cartoon_3d.webp +0 -0
  118. package/lib/assets/canvas/stylize/cartoon_animation.webp +0 -0
  119. package/lib/assets/canvas/stylize/cartoon_portrait.webp +0 -0
  120. package/lib/assets/canvas/stylize/celestial.webp +0 -0
  121. package/lib/assets/canvas/stylize/chalk_pastel.webp +0 -0
  122. package/lib/assets/canvas/stylize/charcoal.webp +0 -0
  123. package/lib/assets/canvas/stylize/chibi.webp +0 -0
  124. package/lib/assets/canvas/stylize/cinematic_still.webp +0 -0
  125. package/lib/assets/canvas/stylize/claymation.webp +0 -0
  126. package/lib/assets/canvas/stylize/colored_pencil.webp +0 -0
  127. package/lib/assets/canvas/stylize/comic_book_animation.webp +0 -0
  128. package/lib/assets/canvas/stylize/cottagecore.webp +0 -0
  129. package/lib/assets/canvas/stylize/crayon.webp +0 -0
  130. package/lib/assets/canvas/stylize/cubism.webp +0 -0
  131. package/lib/assets/canvas/stylize/dark_academia.webp +0 -0
  132. package/lib/assets/canvas/stylize/dark_fantasy.webp +0 -0
  133. package/lib/assets/canvas/stylize/disposable_camera.webp +0 -0
  134. package/lib/assets/canvas/stylize/double_exposure.webp +0 -0
  135. package/lib/assets/canvas/stylize/dreamcore.webp +0 -0
  136. package/lib/assets/canvas/stylize/etching.webp +0 -0
  137. package/lib/assets/canvas/stylize/expired_film.webp +0 -0
  138. package/lib/assets/canvas/stylize/expressionism.webp +0 -0
  139. package/lib/assets/canvas/stylize/fairy_tale.webp +0 -0
  140. package/lib/assets/canvas/stylize/fashion_editorial.webp +0 -0
  141. package/lib/assets/canvas/stylize/fauvism.webp +0 -0
  142. package/lib/assets/canvas/stylize/film_noir.webp +0 -0
  143. package/lib/assets/canvas/stylize/flat_vector.webp +0 -0
  144. package/lib/assets/canvas/stylize/folk_art.webp +0 -0
  145. package/lib/assets/canvas/stylize/fresco.webp +0 -0
  146. package/lib/assets/canvas/stylize/glass_sculpture.webp +0 -0
  147. package/lib/assets/canvas/stylize/gothic.webp +0 -0
  148. package/lib/assets/canvas/stylize/gouache.webp +0 -0
  149. package/lib/assets/canvas/stylize/grunge_zine.webp +0 -0
  150. package/lib/assets/canvas/stylize/hand_drawn_animation.webp +0 -0
  151. package/lib/assets/canvas/stylize/hyperrealistic.webp +0 -0
  152. package/lib/assets/canvas/stylize/impressionist.webp +0 -0
  153. package/lib/assets/canvas/stylize/ink_wash.webp +0 -0
  154. package/lib/assets/canvas/stylize/instant_photo.webp +0 -0
  155. package/lib/assets/canvas/stylize/isometric.webp +0 -0
  156. package/lib/assets/canvas/stylize/kawaii.webp +0 -0
  157. package/lib/assets/canvas/stylize/liminal_space.webp +0 -0
  158. package/lib/assets/canvas/stylize/line_art.webp +0 -0
  159. package/lib/assets/canvas/stylize/linocut.webp +0 -0
  160. package/lib/assets/canvas/stylize/liquid_chrome.webp +0 -0
  161. package/lib/assets/canvas/stylize/lofi_aesthetic.webp +0 -0
  162. package/lib/assets/canvas/stylize/low_poly.webp +0 -0
  163. package/lib/assets/canvas/stylize/manga_ink.webp +0 -0
  164. package/lib/assets/canvas/stylize/miniature.webp +0 -0
  165. package/lib/assets/canvas/stylize/oil_painting.webp +0 -0
  166. package/lib/assets/canvas/stylize/pen_and_ink.webp +0 -0
  167. package/lib/assets/canvas/stylize/pencil_sketch.webp +0 -0
  168. package/lib/assets/canvas/stylize/photorealistic.webp +0 -0
  169. package/lib/assets/canvas/stylize/pointillism.webp +0 -0
  170. package/lib/assets/canvas/stylize/pop_art.webp +0 -0
  171. package/lib/assets/canvas/stylize/post_impressionist.webp +0 -0
  172. package/lib/assets/canvas/stylize/renaissance.webp +0 -0
  173. package/lib/assets/canvas/stylize/risograph.webp +0 -0
  174. package/lib/assets/canvas/stylize/romantic_landscape.webp +0 -0
  175. package/lib/assets/canvas/stylize/screen_print.webp +0 -0
  176. package/lib/assets/canvas/stylize/sepia_photo.webp +0 -0
  177. package/lib/assets/canvas/stylize/shoujo_manga.webp +0 -0
  178. package/lib/assets/canvas/stylize/storybook.webp +0 -0
  179. package/lib/assets/canvas/stylize/surrealism.webp +0 -0
  180. package/lib/assets/canvas/stylize/tarot_card.webp +0 -0
  181. package/lib/assets/canvas/stylize/tintype.webp +0 -0
  182. package/lib/assets/canvas/stylize/video_tape.webp +0 -0
  183. package/lib/assets/canvas/stylize/vintage_cartoon.webp +0 -0
  184. package/lib/assets/canvas/stylize/vintage_horror.webp +0 -0
  185. package/lib/assets/canvas/stylize/vinyl_toy.webp +0 -0
  186. package/lib/assets/canvas/stylize/voxel_art.webp +0 -0
  187. package/lib/assets/canvas/stylize/watercolor.webp +0 -0
  188. package/lib/assets/canvas/stylize/webtoon.webp +0 -0
  189. package/lib/assets/canvas/stylize/weirdcore.webp +0 -0
  190. package/lib/assets/canvas/stylize/woodblock_print.webp +0 -0
  191. package/lib/components/KeyboardComposerDock.js +95 -4
  192. package/lib/components/KeyboardComposerDock.js.map +1 -1
  193. package/lib/config/env-config.js +10 -0
  194. package/lib/config/env-config.js.map +1 -1
  195. package/lib/contexts/cdecliConnection.js +4 -1
  196. package/lib/contexts/cdecliConnection.js.map +1 -1
  197. package/lib/features/agent-chat/NativeAgentChat.js +3 -2
  198. package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
  199. package/lib/features/canvas/CanvasAgentChatPane.js +364 -22
  200. package/lib/features/canvas/CanvasAgentChatPane.js.map +1 -1
  201. package/lib/features/canvas/CanvasAppsPanel.js +619 -54
  202. package/lib/features/canvas/CanvasAppsPanel.js.map +1 -1
  203. package/lib/features/canvas/CanvasBoardsGrid.js +138 -19
  204. package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
  205. package/lib/features/canvas/CanvasEditToolsPanel.js +189 -14
  206. package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
  207. package/lib/features/canvas/CanvasExperience.js +847 -165
  208. package/lib/features/canvas/CanvasExperience.js.map +1 -1
  209. package/lib/features/canvas/CanvasGeneratePanel.js +464 -93
  210. package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
  211. package/lib/features/canvas/CanvasLibrarySheet.js +506 -18
  212. package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
  213. package/lib/features/canvas/CanvasToolDock.js +430 -19
  214. package/lib/features/canvas/CanvasToolDock.js.map +1 -1
  215. package/lib/features/canvas/ImageEditorExperience.js +212 -20
  216. package/lib/features/canvas/ImageEditorExperience.js.map +1 -1
  217. package/lib/features/canvas/InfluencerStudioExperience.js +409 -105
  218. package/lib/features/canvas/InfluencerStudioExperience.js.map +1 -1
  219. package/lib/features/canvas/NativeCanvasViewer.js +637 -32
  220. package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
  221. package/lib/features/canvas/PromoContextFields.js +103 -5
  222. package/lib/features/canvas/PromoContextFields.js.map +1 -1
  223. package/lib/features/canvas/SetStudioExperience.js +419 -790
  224. package/lib/features/canvas/SetStudioExperience.js.map +1 -1
  225. package/lib/features/canvas/VideoClipsExperience.js +20 -186
  226. package/lib/features/canvas/VideoClipsExperience.js.map +1 -1
  227. package/lib/features/canvas/VideoEditorExperience.js +308 -55
  228. package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
  229. package/lib/features/canvas/VideoGeneratorExperience.js +59 -8
  230. package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
  231. package/lib/features/canvas/agent/HostChatPane.js +327 -0
  232. package/lib/features/canvas/agent/HostChatPane.js.map +1 -0
  233. package/lib/features/canvas/agent/agentBlocks.js +42 -0
  234. package/lib/features/canvas/agent/agentBlocks.js.map +1 -0
  235. package/lib/features/canvas/agent/agentPlan.js +120 -0
  236. package/lib/features/canvas/agent/agentPlan.js.map +1 -0
  237. package/lib/features/canvas/agent/agentProtocol.js +62 -0
  238. package/lib/features/canvas/agent/agentProtocol.js.map +1 -0
  239. package/lib/features/canvas/agent/agentSettings.js +26 -0
  240. package/lib/features/canvas/agent/agentSettings.js.map +1 -0
  241. package/lib/features/canvas/agent/boardActions.js +295 -0
  242. package/lib/features/canvas/agent/boardActions.js.map +1 -0
  243. package/lib/features/canvas/agent/boardNoteActions.js +139 -0
  244. package/lib/features/canvas/agent/boardNoteActions.js.map +1 -0
  245. package/lib/features/canvas/agent/durableSessionGuard.js +145 -0
  246. package/lib/features/canvas/agent/durableSessionGuard.js.map +1 -0
  247. package/lib/features/canvas/agent/hostChat.js +19 -0
  248. package/lib/features/canvas/agent/hostChat.js.map +1 -0
  249. package/lib/features/canvas/agent/useHostAgent.js +248 -0
  250. package/lib/features/canvas/agent/useHostAgent.js.map +1 -0
  251. package/lib/features/canvas/analysis/AnalysisControls.js +487 -0
  252. package/lib/features/canvas/analysis/AnalysisControls.js.map +1 -0
  253. package/lib/features/canvas/analysis/ViralityControls.js +349 -0
  254. package/lib/features/canvas/analysis/ViralityControls.js.map +1 -0
  255. package/lib/features/canvas/analysis/breakdownActions.js +286 -0
  256. package/lib/features/canvas/analysis/breakdownActions.js.map +1 -0
  257. package/lib/features/canvas/analysis/editTextActions.js +131 -0
  258. package/lib/features/canvas/analysis/editTextActions.js.map +1 -0
  259. package/lib/features/canvas/analysis/imageReadRpc.js +173 -0
  260. package/lib/features/canvas/analysis/imageReadRpc.js.map +1 -0
  261. package/lib/features/canvas/analysis/layerActions.js +265 -0
  262. package/lib/features/canvas/analysis/layerActions.js.map +1 -0
  263. package/lib/features/canvas/analysis/panelStore.js +43 -0
  264. package/lib/features/canvas/analysis/panelStore.js.map +1 -0
  265. package/lib/features/canvas/analysis/saveFile.js +60 -0
  266. package/lib/features/canvas/analysis/saveFile.js.map +1 -0
  267. package/lib/features/canvas/analysis/viralityClips.js +94 -0
  268. package/lib/features/canvas/analysis/viralityClips.js.map +1 -0
  269. package/lib/features/canvas/analysis/viralityScore.js +141 -0
  270. package/lib/features/canvas/analysis/viralityScore.js.map +1 -0
  271. package/lib/features/canvas/analysis/viralityVision.js +98 -0
  272. package/lib/features/canvas/analysis/viralityVision.js.map +1 -0
  273. package/lib/features/canvas/apps/AppHistoryView.js +125 -0
  274. package/lib/features/canvas/apps/AppHistoryView.js.map +1 -0
  275. package/lib/features/canvas/apps/AppSheet.js +122 -0
  276. package/lib/features/canvas/apps/AppSheet.js.map +1 -0
  277. package/lib/features/canvas/apps/analysisApps.js +44 -0
  278. package/lib/features/canvas/apps/analysisApps.js.map +1 -0
  279. package/lib/features/canvas/apps/appClips.js +247 -0
  280. package/lib/features/canvas/apps/appClips.js.map +1 -0
  281. package/lib/features/canvas/apps/appHistory.js +116 -0
  282. package/lib/features/canvas/apps/appHistory.js.map +1 -0
  283. package/lib/features/canvas/apps/appLink.js +22 -0
  284. package/lib/features/canvas/apps/appLink.js.map +1 -0
  285. package/lib/features/canvas/apps/appPreviews.js +50 -0
  286. package/lib/features/canvas/apps/appPreviews.js.map +1 -0
  287. package/lib/features/canvas/apps/appWords.js +2 -0
  288. package/lib/features/canvas/apps/appWords.js.map +1 -0
  289. package/lib/features/canvas/apps/clipApps.js +285 -0
  290. package/lib/features/canvas/apps/clipApps.js.map +1 -0
  291. package/lib/features/canvas/apps/consentApps.js +43 -0
  292. package/lib/features/canvas/apps/consentApps.js.map +1 -0
  293. package/lib/features/canvas/apps/lookSets.js +25 -0
  294. package/lib/features/canvas/apps/lookSets.js.map +1 -0
  295. package/lib/features/canvas/apps/makerApps.js +34 -0
  296. package/lib/features/canvas/apps/makerApps.js.map +1 -0
  297. package/lib/features/canvas/apps/makers/MakerFooter.js +150 -0
  298. package/lib/features/canvas/apps/makers/MakerFooter.js.map +1 -0
  299. package/lib/features/canvas/apps/makers/makerStore.js +149 -0
  300. package/lib/features/canvas/apps/makers/makerStore.js.map +1 -0
  301. package/lib/features/canvas/apps/meme/MemeMaker.js +285 -0
  302. package/lib/features/canvas/apps/meme/MemeMaker.js.map +1 -0
  303. package/lib/features/canvas/apps/meme/memeCaptions.js +46 -0
  304. package/lib/features/canvas/apps/meme/memeCaptions.js.map +1 -0
  305. package/lib/features/canvas/apps/meme/memeCharacters.js +64 -0
  306. package/lib/features/canvas/apps/meme/memeCharacters.js.map +1 -0
  307. package/lib/features/canvas/apps/meme/memeRun.js +276 -0
  308. package/lib/features/canvas/apps/meme/memeRun.js.map +1 -0
  309. package/lib/features/canvas/apps/meme/memeText.js +188 -0
  310. package/lib/features/canvas/apps/meme/memeText.js.map +1 -0
  311. package/lib/features/canvas/apps/reels/BeatReel.js +193 -0
  312. package/lib/features/canvas/apps/reels/BeatReel.js.map +1 -0
  313. package/lib/features/canvas/apps/reels/audioDecode.js +146 -0
  314. package/lib/features/canvas/apps/reels/audioDecode.js.map +1 -0
  315. package/lib/features/canvas/apps/reels/beatCuts.js +185 -0
  316. package/lib/features/canvas/apps/reels/beatCuts.js.map +1 -0
  317. package/lib/features/canvas/apps/reels/beats.js +128 -0
  318. package/lib/features/canvas/apps/reels/beats.js.map +1 -0
  319. package/lib/features/canvas/apps/reels/reelActions.js +153 -0
  320. package/lib/features/canvas/apps/reels/reelActions.js.map +1 -0
  321. package/lib/features/canvas/apps/reels/reelRun.js +235 -0
  322. package/lib/features/canvas/apps/reels/reelRun.js.map +1 -0
  323. package/lib/features/canvas/appsCatalog.js +1767 -67
  324. package/lib/features/canvas/appsCatalog.js.map +1 -1
  325. package/lib/features/canvas/board/BoardNodesLayer.js +117 -0
  326. package/lib/features/canvas/board/BoardNodesLayer.js.map +1 -0
  327. package/lib/features/canvas/board/ItemSheets.js +240 -0
  328. package/lib/features/canvas/board/ItemSheets.js.map +1 -0
  329. package/lib/features/canvas/board/MultiSelect.js +163 -0
  330. package/lib/features/canvas/board/MultiSelect.js.map +1 -0
  331. package/lib/features/canvas/board/NodeTools.js +525 -0
  332. package/lib/features/canvas/board/NodeTools.js.map +1 -0
  333. package/lib/features/canvas/board/boardClipboard.js +266 -0
  334. package/lib/features/canvas/board/boardClipboard.js.map +1 -0
  335. package/lib/features/canvas/board/boardPages.js +79 -0
  336. package/lib/features/canvas/board/boardPages.js.map +1 -0
  337. package/lib/features/canvas/board/boardSearch.js +152 -0
  338. package/lib/features/canvas/board/boardSearch.js.map +1 -0
  339. package/lib/features/canvas/board/folderStore.js +165 -0
  340. package/lib/features/canvas/board/folderStore.js.map +1 -0
  341. package/lib/features/canvas/board/geometry.js +45 -0
  342. package/lib/features/canvas/board/geometry.js.map +1 -0
  343. package/lib/features/canvas/board/nodes.js +311 -0
  344. package/lib/features/canvas/board/nodes.js.map +1 -0
  345. package/lib/features/canvas/board/selection.js +169 -0
  346. package/lib/features/canvas/board/selection.js.map +1 -0
  347. package/lib/features/canvas/board/svgSource.js +54 -0
  348. package/lib/features/canvas/board/svgSource.js.map +1 -0
  349. package/lib/features/canvas/boardActions.js +99 -9
  350. package/lib/features/canvas/boardActions.js.map +1 -1
  351. package/lib/features/canvas/canvasAgentChat.js +16 -8
  352. package/lib/features/canvas/canvasAgentChat.js.map +1 -1
  353. package/lib/features/canvas/canvasArtifacts.js +45 -3
  354. package/lib/features/canvas/canvasArtifacts.js.map +1 -1
  355. package/lib/features/canvas/canvasCore.js +67 -11
  356. package/lib/features/canvas/canvasCore.js.map +1 -1
  357. package/lib/features/canvas/canvasEditOps.js +52 -6
  358. package/lib/features/canvas/canvasEditOps.js.map +1 -1
  359. package/lib/features/canvas/canvasTasks.js +4 -4
  360. package/lib/features/canvas/canvasTasks.js.map +1 -1
  361. package/lib/features/canvas/characters/CharacterBuilder.js +211 -35
  362. package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -1
  363. package/lib/features/canvas/characters/CharacterStudio.js +12 -6
  364. package/lib/features/canvas/characters/CharacterStudio.js.map +1 -1
  365. package/lib/features/canvas/characters/DramaTool.js +142 -0
  366. package/lib/features/canvas/characters/DramaTool.js.map +1 -0
  367. package/lib/features/canvas/characters/ExploreTool.js +347 -0
  368. package/lib/features/canvas/characters/ExploreTool.js.map +1 -0
  369. package/lib/features/canvas/characters/FashionTool.js +212 -0
  370. package/lib/features/canvas/characters/FashionTool.js.map +1 -0
  371. package/lib/features/canvas/characters/HostTool.js +303 -0
  372. package/lib/features/canvas/characters/HostTool.js.map +1 -0
  373. package/lib/features/canvas/characters/MotionTool.js +198 -0
  374. package/lib/features/canvas/characters/MotionTool.js.map +1 -0
  375. package/lib/features/canvas/characters/PhotoDumpTool.js +9 -4
  376. package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -1
  377. package/lib/features/canvas/characters/RunFooter.js.map +1 -1
  378. package/lib/features/canvas/characters/SpokespersonTool.js +112 -0
  379. package/lib/features/canvas/characters/SpokespersonTool.js.map +1 -0
  380. package/lib/features/canvas/characters/StoryFramesTool.js +34 -6
  381. package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -1
  382. package/lib/features/canvas/characters/StudioCheck.js +61 -0
  383. package/lib/features/canvas/characters/StudioCheck.js.map +1 -0
  384. package/lib/features/canvas/characters/SubjectPicker.js +23 -4
  385. package/lib/features/canvas/characters/SubjectPicker.js.map +1 -1
  386. package/lib/features/canvas/characters/VoiceField.js +70 -0
  387. package/lib/features/canvas/characters/VoiceField.js.map +1 -0
  388. package/lib/features/canvas/characters/castingSheet.js +91 -0
  389. package/lib/features/canvas/characters/castingSheet.js.map +1 -0
  390. package/lib/features/canvas/characters/characterActions.js +238 -26
  391. package/lib/features/canvas/characters/characterActions.js.map +1 -1
  392. package/lib/features/canvas/characters/characterLibrary.js +196 -0
  393. package/lib/features/canvas/characters/characterLibrary.js.map +1 -0
  394. package/lib/features/canvas/characters/characterRuns.js +85 -10
  395. package/lib/features/canvas/characters/characterRuns.js.map +1 -1
  396. package/lib/features/canvas/characters/characterStore.js +149 -6
  397. package/lib/features/canvas/characters/characterStore.js.map +1 -1
  398. package/lib/features/canvas/characters/characterTools.js +50 -2
  399. package/lib/features/canvas/characters/characterTools.js.map +1 -1
  400. package/lib/features/canvas/characters/characterVocabulary.js +100 -8
  401. package/lib/features/canvas/characters/characterVocabulary.js.map +1 -1
  402. package/lib/features/canvas/characters/charactersRpc.js +3 -2
  403. package/lib/features/canvas/characters/charactersRpc.js.map +1 -1
  404. package/lib/features/canvas/characters/dramaActions.js +218 -0
  405. package/lib/features/canvas/characters/dramaActions.js.map +1 -0
  406. package/lib/features/canvas/characters/dramaScript.js +185 -0
  407. package/lib/features/canvas/characters/dramaScript.js.map +1 -0
  408. package/lib/features/canvas/characters/fashionActions.js +182 -0
  409. package/lib/features/canvas/characters/fashionActions.js.map +1 -0
  410. package/lib/features/canvas/characters/fashionShoot.js +147 -0
  411. package/lib/features/canvas/characters/fashionShoot.js.map +1 -0
  412. package/lib/features/canvas/characters/hostActions.js +391 -0
  413. package/lib/features/canvas/characters/hostActions.js.map +1 -0
  414. package/lib/features/canvas/characters/hostBlocks.js +59 -0
  415. package/lib/features/canvas/characters/hostBlocks.js.map +1 -0
  416. package/lib/features/canvas/characters/hostStudio.js +114 -0
  417. package/lib/features/canvas/characters/hostStudio.js.map +1 -0
  418. package/lib/features/canvas/characters/motionActions.js +156 -0
  419. package/lib/features/canvas/characters/motionActions.js.map +1 -0
  420. package/lib/features/canvas/characters/motionMoves.js +81 -0
  421. package/lib/features/canvas/characters/motionMoves.js.map +1 -0
  422. package/lib/features/canvas/characters/placement.js +83 -8
  423. package/lib/features/canvas/characters/placement.js.map +1 -1
  424. package/lib/features/canvas/characters/spokesperson.js +101 -0
  425. package/lib/features/canvas/characters/spokesperson.js.map +1 -0
  426. package/lib/features/canvas/characters/spokespersonActions.js +191 -0
  427. package/lib/features/canvas/characters/spokespersonActions.js.map +1 -0
  428. package/lib/features/canvas/characters/storyFilm.js +64 -0
  429. package/lib/features/canvas/characters/storyFilm.js.map +1 -0
  430. package/lib/features/canvas/characters/storyFilmActions.js +129 -0
  431. package/lib/features/canvas/characters/storyFilmActions.js.map +1 -0
  432. package/lib/features/canvas/characters/studioSets.js +91 -0
  433. package/lib/features/canvas/characters/studioSets.js.map +1 -0
  434. package/lib/features/canvas/characters/studioUi.js +137 -0
  435. package/lib/features/canvas/characters/studioUi.js.map +1 -0
  436. package/lib/features/canvas/characters/talkingTake.js +87 -0
  437. package/lib/features/canvas/characters/talkingTake.js.map +1 -0
  438. package/lib/features/canvas/characters/training/TrainTool.js +476 -0
  439. package/lib/features/canvas/characters/training/TrainTool.js.map +1 -0
  440. package/lib/features/canvas/characters/training/TrainedSwitch.js +11 -0
  441. package/lib/features/canvas/characters/training/TrainedSwitch.js.map +1 -0
  442. package/lib/features/canvas/characters/training/imageTrainingRpc.js +231 -0
  443. package/lib/features/canvas/characters/training/imageTrainingRpc.js.map +1 -0
  444. package/lib/features/canvas/characters/training/soulIdRpc.js +111 -0
  445. package/lib/features/canvas/characters/training/soulIdRpc.js.map +1 -0
  446. package/lib/features/canvas/characters/training/soulIdRuns.js +204 -0
  447. package/lib/features/canvas/characters/training/soulIdRuns.js.map +1 -0
  448. package/lib/features/canvas/characters/training/trainedMentions.js +24 -0
  449. package/lib/features/canvas/characters/training/trainedMentions.js.map +1 -0
  450. package/lib/features/canvas/characters/training/trainedRuns.js +103 -0
  451. package/lib/features/canvas/characters/training/trainedRuns.js.map +1 -0
  452. package/lib/features/canvas/characters/training/trainingActions.js +252 -0
  453. package/lib/features/canvas/characters/training/trainingActions.js.map +1 -0
  454. package/lib/features/canvas/characters/training/trainingCopy.js +34 -0
  455. package/lib/features/canvas/characters/training/trainingCopy.js.map +1 -0
  456. package/lib/features/canvas/characters/training/trainingRuns.js +245 -0
  457. package/lib/features/canvas/characters/training/trainingRuns.js.map +1 -0
  458. package/lib/features/canvas/characters/training/useResumeTrainings.js +9 -0
  459. package/lib/features/canvas/characters/training/useResumeTrainings.js.map +1 -0
  460. package/lib/features/canvas/characters/training/useSoulModels.js +21 -0
  461. package/lib/features/canvas/characters/training/useSoulModels.js.map +1 -0
  462. package/lib/features/canvas/characters/youtubeRpc.js +65 -0
  463. package/lib/features/canvas/characters/youtubeRpc.js.map +1 -0
  464. package/lib/features/canvas/chat/CanvasDesignChatCard.js +180 -0
  465. package/lib/features/canvas/chat/CanvasDesignChatCard.js.map +1 -0
  466. package/lib/features/canvas/chat/ChatSendsBar.js +120 -0
  467. package/lib/features/canvas/chat/ChatSendsBar.js.map +1 -0
  468. package/lib/features/canvas/chat/MediaAskCard.js +128 -0
  469. package/lib/features/canvas/chat/MediaAskCard.js.map +1 -0
  470. package/lib/features/canvas/chat/SkillMenu.js +83 -0
  471. package/lib/features/canvas/chat/SkillMenu.js.map +1 -0
  472. package/lib/features/canvas/chat/canvasDesignWidget.js +48 -0
  473. package/lib/features/canvas/chat/canvasDesignWidget.js.map +1 -0
  474. package/lib/features/canvas/chat/chatMentions.js +108 -0
  475. package/lib/features/canvas/chat/chatMentions.js.map +1 -0
  476. package/lib/features/canvas/chat/chatSends.js +91 -0
  477. package/lib/features/canvas/chat/chatSends.js.map +1 -0
  478. package/lib/features/canvas/chat/chatSkills.js +170 -0
  479. package/lib/features/canvas/chat/chatSkills.js.map +1 -0
  480. package/lib/features/canvas/chat/mediaActions.js +343 -0
  481. package/lib/features/canvas/chat/mediaActions.js.map +1 -0
  482. package/lib/features/canvas/chat/mediaPort.js +427 -0
  483. package/lib/features/canvas/chat/mediaPort.js.map +1 -0
  484. package/lib/features/canvas/chat/mediaRunners.js +84 -0
  485. package/lib/features/canvas/chat/mediaRunners.js.map +1 -0
  486. package/lib/features/canvas/chat/models3d.js +17 -0
  487. package/lib/features/canvas/chat/models3d.js.map +1 -0
  488. package/lib/features/canvas/chat/useComposerAssist.js +88 -0
  489. package/lib/features/canvas/chat/useComposerAssist.js.map +1 -0
  490. package/lib/features/canvas/chat/wholeVideo.js +8 -0
  491. package/lib/features/canvas/chat/wholeVideo.js.map +1 -0
  492. package/lib/features/canvas/clips/ClipLaneOptions.js +54 -0
  493. package/lib/features/canvas/clips/ClipLaneOptions.js.map +1 -0
  494. package/lib/features/canvas/clips/ClipsStudio.js +728 -0
  495. package/lib/features/canvas/clips/ClipsStudio.js.map +1 -0
  496. package/lib/features/canvas/clips/clipCaptions.js +319 -0
  497. package/lib/features/canvas/clips/clipCaptions.js.map +1 -0
  498. package/lib/features/canvas/clips/clipsCut.js +177 -0
  499. package/lib/features/canvas/clips/clipsCut.js.map +1 -0
  500. package/lib/features/canvas/clips/clipsPlan.js +264 -0
  501. package/lib/features/canvas/clips/clipsPlan.js.map +1 -0
  502. package/lib/features/canvas/clips/clipsRpc.js +393 -0
  503. package/lib/features/canvas/clips/clipsRpc.js.map +1 -0
  504. package/lib/features/canvas/clips/clipsStore.js +54 -0
  505. package/lib/features/canvas/clips/clipsStore.js.map +1 -0
  506. package/lib/features/canvas/clips/useClipsPlan.js +534 -0
  507. package/lib/features/canvas/clips/useClipsPlan.js.map +1 -0
  508. package/lib/features/canvas/community/CommunitySheets.js +504 -0
  509. package/lib/features/canvas/community/CommunitySheets.js.map +1 -0
  510. package/lib/features/canvas/community/communityRpc.js +348 -0
  511. package/lib/features/canvas/community/communityRpc.js.map +1 -0
  512. package/lib/features/canvas/community/editToolIds.js +3 -0
  513. package/lib/features/canvas/community/editToolIds.js.map +1 -0
  514. package/lib/features/canvas/community/provenance.js +63 -0
  515. package/lib/features/canvas/community/provenance.js.map +1 -0
  516. package/lib/features/canvas/community/publish.js +164 -0
  517. package/lib/features/canvas/community/publish.js.map +1 -0
  518. package/lib/features/canvas/community/recipe.js +255 -0
  519. package/lib/features/canvas/community/recipe.js.map +1 -0
  520. package/lib/features/canvas/community/recreate.js +159 -0
  521. package/lib/features/canvas/community/recreate.js.map +1 -0
  522. package/lib/features/canvas/community/swapPrompt.js +11 -0
  523. package/lib/features/canvas/community/swapPrompt.js.map +1 -0
  524. package/lib/features/canvas/connect/connectApp.js +15 -0
  525. package/lib/features/canvas/connect/connectApp.js.map +1 -0
  526. package/lib/features/canvas/createTiles.js +1 -25
  527. package/lib/features/canvas/createTiles.js.map +1 -1
  528. package/lib/features/canvas/deepLinks.js +78 -1
  529. package/lib/features/canvas/deepLinks.js.map +1 -1
  530. package/lib/features/canvas/editTools.js +138 -15
  531. package/lib/features/canvas/editTools.js.map +1 -1
  532. package/lib/features/canvas/effects/EffectsControls.js +377 -0
  533. package/lib/features/canvas/effects/EffectsControls.js.map +1 -0
  534. package/lib/features/canvas/effects/EffectsHub.js +289 -0
  535. package/lib/features/canvas/effects/EffectsHub.js.map +1 -0
  536. package/lib/features/canvas/effects/effectChains.js +95 -0
  537. package/lib/features/canvas/effects/effectChains.js.map +1 -0
  538. package/lib/features/canvas/effects/effectFamilies.js +137 -0
  539. package/lib/features/canvas/effects/effectFamilies.js.map +1 -0
  540. package/lib/features/canvas/effects/effectLibrary.js +143 -0
  541. package/lib/features/canvas/effects/effectLibrary.js.map +1 -0
  542. package/lib/features/canvas/effects/hubChains.js +454 -0
  543. package/lib/features/canvas/effects/hubChains.js.map +1 -0
  544. package/lib/features/canvas/effects/motionFamilies.js +226 -0
  545. package/lib/features/canvas/effects/motionFamilies.js.map +1 -0
  546. package/lib/features/canvas/effects/videoSeed.js +40 -0
  547. package/lib/features/canvas/effects/videoSeed.js.map +1 -0
  548. package/lib/features/canvas/elements/ElementForm.js +109 -16
  549. package/lib/features/canvas/elements/ElementForm.js.map +1 -1
  550. package/lib/features/canvas/elements/ElementImport.js +206 -0
  551. package/lib/features/canvas/elements/ElementImport.js.map +1 -0
  552. package/lib/features/canvas/elements/ElementMediaFields.js +365 -0
  553. package/lib/features/canvas/elements/ElementMediaFields.js.map +1 -0
  554. package/lib/features/canvas/elements/ElementMentionMenu.js +31 -7
  555. package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -1
  556. package/lib/features/canvas/elements/ElementThumb.js +32 -1
  557. package/lib/features/canvas/elements/ElementThumb.js.map +1 -1
  558. package/lib/features/canvas/elements/ElementsSheet.js +394 -31
  559. package/lib/features/canvas/elements/ElementsSheet.js.map +1 -1
  560. package/lib/features/canvas/elements/MentionedElements.js +3 -3
  561. package/lib/features/canvas/elements/MentionedElements.js.map +1 -1
  562. package/lib/features/canvas/elements/elementCopy.js +34 -13
  563. package/lib/features/canvas/elements/elementCopy.js.map +1 -1
  564. package/lib/features/canvas/elements/elementShare.js +264 -0
  565. package/lib/features/canvas/elements/elementShare.js.map +1 -0
  566. package/lib/features/canvas/elements/elementsStore.js +609 -41
  567. package/lib/features/canvas/elements/elementsStore.js.map +1 -1
  568. package/lib/features/canvas/elements/elementsSwitchState.js +30 -0
  569. package/lib/features/canvas/elements/elementsSwitchState.js.map +1 -0
  570. package/lib/features/canvas/elements/importElements.js +512 -0
  571. package/lib/features/canvas/elements/importElements.js.map +1 -0
  572. package/lib/features/canvas/elements/importWithModel.js +54 -0
  573. package/lib/features/canvas/elements/importWithModel.js.map +1 -0
  574. package/lib/features/canvas/elements/officeText.js +97 -0
  575. package/lib/features/canvas/elements/officeText.js.map +1 -0
  576. package/lib/features/canvas/elements/turnaround.js +104 -0
  577. package/lib/features/canvas/elements/turnaround.js.map +1 -0
  578. package/lib/features/canvas/elements/useGeneratorElements.js +47 -8
  579. package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -1
  580. package/lib/features/canvas/elements/useSavedElements.js +164 -14
  581. package/lib/features/canvas/elements/useSavedElements.js.map +1 -1
  582. package/lib/features/canvas/elements/zipRead.js +222 -0
  583. package/lib/features/canvas/elements/zipRead.js.map +1 -0
  584. package/lib/features/canvas/enhance/AnimateControls.js +296 -90
  585. package/lib/features/canvas/enhance/AnimateControls.js.map +1 -1
  586. package/lib/features/canvas/enhance/ClipAudioControls.js +219 -7
  587. package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -1
  588. package/lib/features/canvas/enhance/GarmentCatalogPicker.js +45 -0
  589. package/lib/features/canvas/enhance/GarmentCatalogPicker.js.map +1 -0
  590. package/lib/features/canvas/enhance/ImageAiControls.js +181 -25
  591. package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -1
  592. package/lib/features/canvas/enhance/PixelToolControls.js +122 -11
  593. package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -1
  594. package/lib/features/canvas/enhance/RemixControls.js +406 -62
  595. package/lib/features/canvas/enhance/RemixControls.js.map +1 -1
  596. package/lib/features/canvas/enhance/StylistControls.js +329 -0
  597. package/lib/features/canvas/enhance/StylistControls.js.map +1 -0
  598. package/lib/features/canvas/enhance/enhanceUi.js +1 -1
  599. package/lib/features/canvas/enhance/garmentCatalog.js +248 -0
  600. package/lib/features/canvas/enhance/garmentCatalog.js.map +1 -0
  601. package/lib/features/canvas/enhance/imageEnhanceListing.js +113 -0
  602. package/lib/features/canvas/enhance/imageEnhanceListing.js.map +1 -0
  603. package/lib/features/canvas/enhance/motionOptions.js +165 -0
  604. package/lib/features/canvas/enhance/motionOptions.js.map +1 -0
  605. package/lib/features/canvas/enhance/myStyles.js +81 -0
  606. package/lib/features/canvas/enhance/myStyles.js.map +1 -0
  607. package/lib/features/canvas/enhance/postRemix.js +129 -0
  608. package/lib/features/canvas/enhance/postRemix.js.map +1 -0
  609. package/lib/features/canvas/enhance/relightWords.js +135 -0
  610. package/lib/features/canvas/enhance/relightWords.js.map +1 -0
  611. package/lib/features/canvas/enhance/remixCatalog.js +171 -0
  612. package/lib/features/canvas/enhance/remixCatalog.js.map +1 -0
  613. package/lib/features/canvas/enhance/stylist.js +119 -0
  614. package/lib/features/canvas/enhance/stylist.js.map +1 -0
  615. package/lib/features/canvas/enhance/upscaleWords.js +65 -0
  616. package/lib/features/canvas/enhance/upscaleWords.js.map +1 -0
  617. package/lib/features/canvas/enhance/useEnhanceRunner.js +57 -18
  618. package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -1
  619. package/lib/features/canvas/enhanceCatalog.js +256 -9
  620. package/lib/features/canvas/enhanceCatalog.js.map +1 -1
  621. package/lib/features/canvas/enhanceOps.js +485 -121
  622. package/lib/features/canvas/enhanceOps.js.map +1 -1
  623. package/lib/features/canvas/enhancePending.js +151 -0
  624. package/lib/features/canvas/enhancePending.js.map +1 -0
  625. package/lib/features/canvas/enhanceRpc.js +202 -45
  626. package/lib/features/canvas/enhanceRpc.js.map +1 -1
  627. package/lib/features/canvas/extendVideo.js +6 -1
  628. package/lib/features/canvas/extendVideo.js.map +1 -1
  629. package/lib/features/canvas/featured/FeaturedPanel.js +134 -0
  630. package/lib/features/canvas/featured/FeaturedPanel.js.map +1 -0
  631. package/lib/features/canvas/frameExtract.js +3 -1
  632. package/lib/features/canvas/frameExtract.js.map +1 -1
  633. package/lib/features/canvas/generationModels.js +118 -18
  634. package/lib/features/canvas/generationModels.js.map +1 -1
  635. package/lib/features/canvas/generator/BottomSheet.js +55 -4
  636. package/lib/features/canvas/generator/BottomSheet.js.map +1 -1
  637. package/lib/features/canvas/generator/DirectorSheet.js +97 -11
  638. package/lib/features/canvas/generator/DirectorSheet.js.map +1 -1
  639. package/lib/features/canvas/generator/EditStyleFields.js +38 -0
  640. package/lib/features/canvas/generator/EditStyleFields.js.map +1 -0
  641. package/lib/features/canvas/generator/GeneratorModelMenu.js +70 -23
  642. package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -1
  643. package/lib/features/canvas/generator/appClip.js +109 -0
  644. package/lib/features/canvas/generator/appClip.js.map +1 -0
  645. package/lib/features/canvas/generator/audio/AudioHistory.js +126 -0
  646. package/lib/features/canvas/generator/audio/AudioHistory.js.map +1 -0
  647. package/lib/features/canvas/generator/audio/AudioLaneSettings.js +72 -6
  648. package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -1
  649. package/lib/features/canvas/generator/audio/SpeechControls.js +465 -0
  650. package/lib/features/canvas/generator/audio/SpeechControls.js.map +1 -0
  651. package/lib/features/canvas/generator/audio/audioHistoryRows.js +65 -0
  652. package/lib/features/canvas/generator/audio/audioHistoryRows.js.map +1 -0
  653. package/lib/features/canvas/generator/audio/audioLane.js +139 -19
  654. package/lib/features/canvas/generator/audio/audioLane.js.map +1 -1
  655. package/lib/features/canvas/generator/audio/audioModelCaps.js +176 -0
  656. package/lib/features/canvas/generator/audio/audioModelCaps.js.map +1 -0
  657. package/lib/features/canvas/generator/audio/audioRunParams.js +72 -0
  658. package/lib/features/canvas/generator/audio/audioRunParams.js.map +1 -0
  659. package/lib/features/canvas/generator/audio/clipAudio.js +122 -13
  660. package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -1
  661. package/lib/features/canvas/generator/audio/dialogue.js +101 -0
  662. package/lib/features/canvas/generator/audio/dialogue.js.map +1 -0
  663. package/lib/features/canvas/generator/audio/lineVoice.js +67 -0
  664. package/lib/features/canvas/generator/audio/lineVoice.js.map +1 -0
  665. package/lib/features/canvas/generator/audio/lipSyncSpeakers.js +50 -0
  666. package/lib/features/canvas/generator/audio/lipSyncSpeakers.js.map +1 -0
  667. package/lib/features/canvas/generator/audio/micLine.js +14 -0
  668. package/lib/features/canvas/generator/audio/micLine.js.map +1 -0
  669. package/lib/features/canvas/generator/audio/namedReferences.js +54 -0
  670. package/lib/features/canvas/generator/audio/namedReferences.js.map +1 -0
  671. package/lib/features/canvas/generator/audio/scene.js +137 -0
  672. package/lib/features/canvas/generator/audio/scene.js.map +1 -0
  673. package/lib/features/canvas/generator/audio/talkingAvatars.js +42 -0
  674. package/lib/features/canvas/generator/audio/talkingAvatars.js.map +1 -0
  675. package/lib/features/canvas/generator/audio/useVoiceLibrary.js +34 -0
  676. package/lib/features/canvas/generator/audio/useVoiceLibrary.js.map +1 -0
  677. package/lib/features/canvas/generator/audio/voiceLibrary.js +360 -0
  678. package/lib/features/canvas/generator/audio/voiceLibrary.js.map +1 -0
  679. package/lib/features/canvas/generator/audio/voiceMentions.js +103 -0
  680. package/lib/features/canvas/generator/audio/voiceMentions.js.map +1 -0
  681. package/lib/features/canvas/generator/batchImages.js +81 -28
  682. package/lib/features/canvas/generator/batchImages.js.map +1 -1
  683. package/lib/features/canvas/generator/batchLayout.js +22 -9
  684. package/lib/features/canvas/generator/batchLayout.js.map +1 -1
  685. package/lib/features/canvas/generator/brandKitGeneration.js +4 -1
  686. package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -1
  687. package/lib/features/canvas/generator/cameraVocabulary.js +177 -2
  688. package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
  689. package/lib/features/canvas/generator/cinema/composerHandoff.js +18 -0
  690. package/lib/features/canvas/generator/cinema/composerHandoff.js.map +1 -0
  691. package/lib/features/canvas/generator/cinema/filmLook.js +30 -0
  692. package/lib/features/canvas/generator/cinema/filmLook.js.map +1 -0
  693. package/lib/features/canvas/generator/cinema/nativeCamera.js +14 -0
  694. package/lib/features/canvas/generator/cinema/nativeCamera.js.map +1 -0
  695. package/lib/features/canvas/generator/cinema/nativeCinema.js +101 -0
  696. package/lib/features/canvas/generator/cinema/nativeCinema.js.map +1 -0
  697. package/lib/features/canvas/generator/cinema/presetPictures.js +80 -0
  698. package/lib/features/canvas/generator/cinema/presetPictures.js.map +1 -0
  699. package/lib/features/canvas/generator/cinema/shotPlan.js +58 -0
  700. package/lib/features/canvas/generator/cinema/shotPlan.js.map +1 -0
  701. package/lib/features/canvas/generator/cinema/useFilmLook.js +4 -0
  702. package/lib/features/canvas/generator/cinema/useFilmLook.js.map +1 -0
  703. package/lib/features/canvas/generator/cinematicVocabulary.js +296 -3
  704. package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
  705. package/lib/features/canvas/generator/direction.js +3 -3
  706. package/lib/features/canvas/generator/direction.js.map +1 -1
  707. package/lib/features/canvas/generator/editStyles.js +95 -0
  708. package/lib/features/canvas/generator/editStyles.js.map +1 -0
  709. package/lib/features/canvas/generator/elementMentions.js +389 -29
  710. package/lib/features/canvas/generator/elementMentions.js.map +1 -1
  711. package/lib/features/canvas/generator/image/ImageOptionPills.js +382 -0
  712. package/lib/features/canvas/generator/image/ImageOptionPills.js.map +1 -0
  713. package/lib/features/canvas/generator/image/colorSignatures.js +128 -0
  714. package/lib/features/canvas/generator/image/colorSignatures.js.map +1 -0
  715. package/lib/features/canvas/generator/image/generateCost.js +5 -0
  716. package/lib/features/canvas/generator/image/generateCost.js.map +1 -0
  717. package/lib/features/canvas/generator/image/imageFraming.js +39 -0
  718. package/lib/features/canvas/generator/image/imageFraming.js.map +1 -0
  719. package/lib/features/canvas/generator/image/imageModelCaps.js +178 -0
  720. package/lib/features/canvas/generator/image/imageModelCaps.js.map +1 -0
  721. package/lib/features/canvas/generator/image/imageModelRouting.js +34 -0
  722. package/lib/features/canvas/generator/image/imageModelRouting.js.map +1 -0
  723. package/lib/features/canvas/generator/image/imageOutput.js +97 -0
  724. package/lib/features/canvas/generator/image/imageOutput.js.map +1 -0
  725. package/lib/features/canvas/generator/image/imageResolutions.js +10 -0
  726. package/lib/features/canvas/generator/image/imageResolutions.js.map +1 -0
  727. package/lib/features/canvas/generator/image/imageRun.js +55 -0
  728. package/lib/features/canvas/generator/image/imageRun.js.map +1 -0
  729. package/lib/features/canvas/generator/image/imageStyle.js +20 -0
  730. package/lib/features/canvas/generator/image/imageStyle.js.map +1 -0
  731. package/lib/features/canvas/generator/image/palette.js +99 -0
  732. package/lib/features/canvas/generator/image/palette.js.map +1 -0
  733. package/lib/features/canvas/generator/image/pictureColors.js +19 -0
  734. package/lib/features/canvas/generator/image/pictureColors.js.map +1 -0
  735. package/lib/features/canvas/generator/image/referenceCap.js +11 -0
  736. package/lib/features/canvas/generator/image/referenceCap.js.map +1 -0
  737. package/lib/features/canvas/generator/image/referenceLimit.js +6 -0
  738. package/lib/features/canvas/generator/image/referenceLimit.js.map +1 -0
  739. package/lib/features/canvas/generator/image/soulIdPick.js +52 -0
  740. package/lib/features/canvas/generator/image/soulIdPick.js.map +1 -0
  741. package/lib/features/canvas/generator/image/stylePictures.js +89 -0
  742. package/lib/features/canvas/generator/image/stylePictures.js.map +1 -0
  743. package/lib/features/canvas/generator/image/trainedImageRun.js +79 -0
  744. package/lib/features/canvas/generator/image/trainedImageRun.js.map +1 -0
  745. package/lib/features/canvas/generator/image/useImageComposer.js +66 -0
  746. package/lib/features/canvas/generator/image/useImageComposer.js.map +1 -0
  747. package/lib/features/canvas/generator/promoScript.js +17 -0
  748. package/lib/features/canvas/generator/promoScript.js.map +1 -0
  749. package/lib/features/canvas/generator/providerWords.js +18 -0
  750. package/lib/features/canvas/generator/providerWords.js.map +1 -0
  751. package/lib/features/canvas/generator/reuse/BatchCountPill.js +74 -13
  752. package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -1
  753. package/lib/features/canvas/generator/reuse/BatchStop.js +94 -0
  754. package/lib/features/canvas/generator/reuse/BatchStop.js.map +1 -0
  755. package/lib/features/canvas/generator/reuse/generationRecord.js +6 -2
  756. package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -1
  757. package/lib/features/canvas/generator/reuse/runBoard.js +21 -6
  758. package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -1
  759. package/lib/features/canvas/generator/video/VideoContractControls.js +342 -0
  760. package/lib/features/canvas/generator/video/VideoContractControls.js.map +1 -0
  761. package/lib/features/canvas/generator/video/VideoExtrasControls.js +23 -6
  762. package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -1
  763. package/lib/features/canvas/generator/video/VoiceSoundtrack.js +152 -0
  764. package/lib/features/canvas/generator/video/VoiceSoundtrack.js.map +1 -0
  765. package/lib/features/canvas/generator/video/drivingAudio.js +33 -0
  766. package/lib/features/canvas/generator/video/drivingAudio.js.map +1 -0
  767. package/lib/features/canvas/generator/video/referenceMedia.js +9 -6
  768. package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -1
  769. package/lib/features/canvas/generator/video/referenceTrim.js +54 -0
  770. package/lib/features/canvas/generator/video/referenceTrim.js.map +1 -0
  771. package/lib/features/canvas/generator/video/useVideoGenExtras.js +1 -1
  772. package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -1
  773. package/lib/features/canvas/generator/video/useVideoShotPlan.js +148 -0
  774. package/lib/features/canvas/generator/video/useVideoShotPlan.js.map +1 -0
  775. package/lib/features/canvas/generator/video/videoAdvanced.js +93 -0
  776. package/lib/features/canvas/generator/video/videoAdvanced.js.map +1 -0
  777. package/lib/features/canvas/generator/video/videoBatch.js +197 -0
  778. package/lib/features/canvas/generator/video/videoBatch.js.map +1 -0
  779. package/lib/features/canvas/generator/video/videoBatchSummary.js +51 -0
  780. package/lib/features/canvas/generator/video/videoBatchSummary.js.map +1 -0
  781. package/lib/features/canvas/generator/video/videoBitrate.js +27 -0
  782. package/lib/features/canvas/generator/video/videoBitrate.js.map +1 -0
  783. package/lib/features/canvas/generator/video/videoExtras.js +8 -4
  784. package/lib/features/canvas/generator/video/videoExtras.js.map +1 -1
  785. package/lib/features/canvas/generator/video/videoGenContract.js +155 -0
  786. package/lib/features/canvas/generator/video/videoGenContract.js.map +1 -0
  787. package/lib/features/canvas/generator/video/videoModelCaps.js +21 -11
  788. package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -1
  789. package/lib/features/canvas/generator/video/videoModelTiers.js +61 -0
  790. package/lib/features/canvas/generator/video/videoModelTiers.js.map +1 -0
  791. package/lib/features/canvas/generator/video/voiceClips.js +145 -0
  792. package/lib/features/canvas/generator/video/voiceClips.js.map +1 -0
  793. package/lib/features/canvas/generatorReferences.js +12 -11
  794. package/lib/features/canvas/generatorReferences.js.map +1 -1
  795. package/lib/features/canvas/history/HistoryPanel.js +283 -0
  796. package/lib/features/canvas/history/HistoryPanel.js.map +1 -0
  797. package/lib/features/canvas/history/historyIndex.js +199 -0
  798. package/lib/features/canvas/history/historyIndex.js.map +1 -0
  799. package/lib/features/canvas/history/toolRuns.js +64 -0
  800. package/lib/features/canvas/history/toolRuns.js.map +1 -0
  801. package/lib/features/canvas/home/BoardMenuSheet.js +14 -4
  802. package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -1
  803. package/lib/features/canvas/home/BoardTile.js +1 -1
  804. package/lib/features/canvas/home/FolderSheets.js +196 -0
  805. package/lib/features/canvas/home/FolderSheets.js.map +1 -0
  806. package/lib/features/canvas/home/HeroComposer.js +7 -3
  807. package/lib/features/canvas/home/HeroComposer.js.map +1 -1
  808. package/lib/features/canvas/home/heroShots.js.map +1 -1
  809. package/lib/features/canvas/home/useYourWork.js +183 -4
  810. package/lib/features/canvas/home/useYourWork.js.map +1 -1
  811. package/lib/features/canvas/homeWork.js +14 -2
  812. package/lib/features/canvas/homeWork.js.map +1 -1
  813. package/lib/features/canvas/imageEditor/CropFrame.js +146 -0
  814. package/lib/features/canvas/imageEditor/CropFrame.js.map +1 -0
  815. package/lib/features/canvas/imageEditor/GradeSection.js +351 -0
  816. package/lib/features/canvas/imageEditor/GradeSection.js.map +1 -0
  817. package/lib/features/canvas/imageEditor/cropExpand.js +86 -0
  818. package/lib/features/canvas/imageEditor/cropExpand.js.map +1 -0
  819. package/lib/features/canvas/imageEditor/grade.js +376 -0
  820. package/lib/features/canvas/imageEditor/grade.js.map +1 -0
  821. package/lib/features/canvas/imageEditor/gradeHistory.js +33 -0
  822. package/lib/features/canvas/imageEditor/gradeHistory.js.map +1 -0
  823. package/lib/features/canvas/imageEditor/skiaPixels.js +117 -0
  824. package/lib/features/canvas/imageEditor/skiaPixels.js.map +1 -0
  825. package/lib/features/canvas/influencer/OnCameraFields.js +357 -0
  826. package/lib/features/canvas/influencer/OnCameraFields.js.map +1 -0
  827. package/lib/features/canvas/influencer/adDirection.js +282 -0
  828. package/lib/features/canvas/influencer/adDirection.js.map +1 -0
  829. package/lib/features/canvas/influencer/heldProduct.js +33 -0
  830. package/lib/features/canvas/influencer/heldProduct.js.map +1 -0
  831. package/lib/features/canvas/influencer/influencerPipeline.js +159 -74
  832. package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
  833. package/lib/features/canvas/influencer/presenters.js +94 -0
  834. package/lib/features/canvas/influencer/presenters.js.map +1 -0
  835. package/lib/features/canvas/influencer/productInShot.js +39 -0
  836. package/lib/features/canvas/influencer/productInShot.js.map +1 -0
  837. package/lib/features/canvas/influencer/reelCast.js +107 -0
  838. package/lib/features/canvas/influencer/reelCast.js.map +1 -0
  839. package/lib/features/canvas/influencer/reelCost.js +29 -0
  840. package/lib/features/canvas/influencer/reelCost.js.map +1 -0
  841. package/lib/features/canvas/influencer/reelPlan.js +6 -2
  842. package/lib/features/canvas/influencer/reelPlan.js.map +1 -1
  843. package/lib/features/canvas/influencer/reelRun.js +229 -0
  844. package/lib/features/canvas/influencer/reelRun.js.map +1 -0
  845. package/lib/features/canvas/lazyEditors.js +3 -1
  846. package/lib/features/canvas/lazyEditors.js.map +1 -1
  847. package/lib/features/canvas/library/libraryDownload.js +221 -0
  848. package/lib/features/canvas/library/libraryDownload.js.map +1 -0
  849. package/lib/features/canvas/library/libraryStore.js +149 -0
  850. package/lib/features/canvas/library/libraryStore.js.map +1 -0
  851. package/lib/features/canvas/libraryIndex.js +714 -0
  852. package/lib/features/canvas/libraryIndex.js.map +1 -0
  853. package/lib/features/canvas/longform/NewSeriesForm.js +290 -0
  854. package/lib/features/canvas/longform/NewSeriesForm.js.map +1 -0
  855. package/lib/features/canvas/longform/SeriesStudio.js +528 -0
  856. package/lib/features/canvas/longform/SeriesStudio.js.map +1 -0
  857. package/lib/features/canvas/longform/episodes.js +137 -0
  858. package/lib/features/canvas/longform/episodes.js.map +1 -0
  859. package/lib/features/canvas/longform/manga.js +43 -0
  860. package/lib/features/canvas/longform/manga.js.map +1 -0
  861. package/lib/features/canvas/longform/narratorVoices.js +67 -0
  862. package/lib/features/canvas/longform/narratorVoices.js.map +1 -0
  863. package/lib/features/canvas/longform/planner.js +84 -0
  864. package/lib/features/canvas/longform/planner.js.map +1 -0
  865. package/lib/features/canvas/longform/productionCatalog.js +382 -0
  866. package/lib/features/canvas/longform/productionCatalog.js.map +1 -0
  867. package/lib/features/canvas/longform/productionResolution.js +11 -0
  868. package/lib/features/canvas/longform/productionResolution.js.map +1 -0
  869. package/lib/features/canvas/longform/seriesHost.js +77 -0
  870. package/lib/features/canvas/longform/seriesHost.js.map +1 -0
  871. package/lib/features/canvas/longform/seriesList.js +125 -0
  872. package/lib/features/canvas/longform/seriesList.js.map +1 -0
  873. package/lib/features/canvas/longform/seriesStore.js +287 -0
  874. package/lib/features/canvas/longform/seriesStore.js.map +1 -0
  875. package/lib/features/canvas/longform/styleOrder.js +9 -0
  876. package/lib/features/canvas/longform/styleOrder.js.map +1 -0
  877. package/lib/features/canvas/marketing/AdReferenceTool.js +171 -0
  878. package/lib/features/canvas/marketing/AdReferenceTool.js.map +1 -0
  879. package/lib/features/canvas/marketing/CatalogPanel.js +163 -0
  880. package/lib/features/canvas/marketing/CatalogPanel.js.map +1 -0
  881. package/lib/features/canvas/marketing/DraftLines.js +34 -0
  882. package/lib/features/canvas/marketing/DraftLines.js.map +1 -0
  883. package/lib/features/canvas/marketing/LibrarySection.js +130 -0
  884. package/lib/features/canvas/marketing/LibrarySection.js.map +1 -0
  885. package/lib/features/canvas/marketing/PersonPicker.js +131 -0
  886. package/lib/features/canvas/marketing/PersonPicker.js.map +1 -0
  887. package/lib/features/canvas/marketing/ProductPanel.js +603 -0
  888. package/lib/features/canvas/marketing/ProductPanel.js.map +1 -0
  889. package/lib/features/canvas/marketing/ProductTools.js +648 -0
  890. package/lib/features/canvas/marketing/ProductTools.js.map +1 -0
  891. package/lib/features/canvas/marketing/UgcPresetCards.js +139 -0
  892. package/lib/features/canvas/marketing/UgcPresetCards.js.map +1 -0
  893. package/lib/features/canvas/marketing/adReference.js +97 -0
  894. package/lib/features/canvas/marketing/adReference.js.map +1 -0
  895. package/lib/features/canvas/marketing/adReferenceActions.js +151 -0
  896. package/lib/features/canvas/marketing/adReferenceActions.js.map +1 -0
  897. package/lib/features/canvas/marketing/adSet.js +215 -0
  898. package/lib/features/canvas/marketing/adSet.js.map +1 -0
  899. package/lib/features/canvas/marketing/brandIdentity.js +330 -0
  900. package/lib/features/canvas/marketing/brandIdentity.js.map +1 -0
  901. package/lib/features/canvas/marketing/captionTranslate.js +25 -0
  902. package/lib/features/canvas/marketing/captionTranslate.js.map +1 -0
  903. package/lib/features/canvas/marketing/catalogImport.js +272 -0
  904. package/lib/features/canvas/marketing/catalogImport.js.map +1 -0
  905. package/lib/features/canvas/marketing/cells.js +70 -0
  906. package/lib/features/canvas/marketing/cells.js.map +1 -0
  907. package/lib/features/canvas/marketing/cleanOffer.js +41 -0
  908. package/lib/features/canvas/marketing/cleanOffer.js.map +1 -0
  909. package/lib/features/canvas/marketing/handoffs.js +184 -0
  910. package/lib/features/canvas/marketing/handoffs.js.map +1 -0
  911. package/lib/features/canvas/marketing/marketplaceSet.js +76 -0
  912. package/lib/features/canvas/marketing/marketplaceSet.js.map +1 -0
  913. package/lib/features/canvas/marketing/multiplier.js +256 -0
  914. package/lib/features/canvas/marketing/multiplier.js.map +1 -0
  915. package/lib/features/canvas/marketing/pastedDetails.js +53 -0
  916. package/lib/features/canvas/marketing/pastedDetails.js.map +1 -0
  917. package/lib/features/canvas/marketing/product.js +151 -0
  918. package/lib/features/canvas/marketing/product.js.map +1 -0
  919. package/lib/features/canvas/marketing/productActions.js +708 -0
  920. package/lib/features/canvas/marketing/productActions.js.map +1 -0
  921. package/lib/features/canvas/marketing/productDraft.js +68 -0
  922. package/lib/features/canvas/marketing/productDraft.js.map +1 -0
  923. package/lib/features/canvas/marketing/productLibrary.js +116 -0
  924. package/lib/features/canvas/marketing/productLibrary.js.map +1 -0
  925. package/lib/features/canvas/marketing/productPage.js +340 -0
  926. package/lib/features/canvas/marketing/productPage.js.map +1 -0
  927. package/lib/features/canvas/marketing/productStore.js +162 -0
  928. package/lib/features/canvas/marketing/productStore.js.map +1 -0
  929. package/lib/features/canvas/marketing/research.js +233 -0
  930. package/lib/features/canvas/marketing/research.js.map +1 -0
  931. package/lib/features/canvas/marketing/shotStyles.js +96 -0
  932. package/lib/features/canvas/marketing/shotStyles.js.map +1 -0
  933. package/lib/features/canvas/marketing/templates.js +152 -0
  934. package/lib/features/canvas/marketing/templates.js.map +1 -0
  935. package/lib/features/canvas/marketing/ugcPresetArt.js +175 -0
  936. package/lib/features/canvas/marketing/ugcPresetArt.js.map +1 -0
  937. package/lib/features/canvas/marketing/videoAd.js +6 -0
  938. package/lib/features/canvas/marketing/videoAd.js.map +1 -0
  939. package/lib/features/canvas/marketing/videoMultiplier.js +373 -0
  940. package/lib/features/canvas/marketing/videoMultiplier.js.map +1 -0
  941. package/lib/features/canvas/mask/MaskPainter.js +125 -0
  942. package/lib/features/canvas/mask/MaskPainter.js.map +1 -0
  943. package/lib/features/canvas/mask/maskRaster.js +222 -0
  944. package/lib/features/canvas/mask/maskRaster.js.map +1 -0
  945. package/lib/features/canvas/native/nativeCaps.js +82 -0
  946. package/lib/features/canvas/native/nativeCaps.js.map +1 -0
  947. package/lib/features/canvas/nativeViewerRegistry.js.map +1 -1
  948. package/lib/features/canvas/nav/CanvasTopNav.js +220 -0
  949. package/lib/features/canvas/nav/CanvasTopNav.js.map +1 -0
  950. package/lib/features/canvas/nav/FeaturePage.js +207 -0
  951. package/lib/features/canvas/nav/FeaturePage.js.map +1 -0
  952. package/lib/features/canvas/nav/canvasView.js +40 -0
  953. package/lib/features/canvas/nav/canvasView.js.map +1 -0
  954. package/lib/features/canvas/nav/features.js +334 -0
  955. package/lib/features/canvas/nav/features.js.map +1 -0
  956. package/lib/features/canvas/promoVideo.js +154 -21
  957. package/lib/features/canvas/promoVideo.js.map +1 -1
  958. package/lib/features/canvas/recorder/recorderOps.js +12 -1
  959. package/lib/features/canvas/recorder/recorderOps.js.map +1 -1
  960. package/lib/features/canvas/set/SetViewport.js +817 -0
  961. package/lib/features/canvas/set/SetViewport.js.map +1 -0
  962. package/lib/features/canvas/set/agent/agentTurn.js +178 -0
  963. package/lib/features/canvas/set/agent/agentTurn.js.map +1 -0
  964. package/lib/features/canvas/set/agent/brain.js +104 -0
  965. package/lib/features/canvas/set/agent/brain.js.map +1 -0
  966. package/lib/features/canvas/set/agent/prompt.js +90 -5
  967. package/lib/features/canvas/set/agent/prompt.js.map +1 -1
  968. package/lib/features/canvas/set/agent/reference.js +131 -0
  969. package/lib/features/canvas/set/agent/reference.js.map +1 -0
  970. package/lib/features/canvas/set/agent/review.js +141 -0
  971. package/lib/features/canvas/set/agent/review.js.map +1 -0
  972. package/lib/features/canvas/set/agent/setOps.js +322 -18
  973. package/lib/features/canvas/set/agent/setOps.js.map +1 -1
  974. package/lib/features/canvas/set/agent/setTurn.js +39 -94
  975. package/lib/features/canvas/set/agent/setTurn.js.map +1 -1
  976. package/lib/features/canvas/set/agent/snapshot.js +71 -6
  977. package/lib/features/canvas/set/agent/snapshot.js.map +1 -1
  978. package/lib/features/canvas/set/agent/surveyPlan.js +223 -0
  979. package/lib/features/canvas/set/agent/surveyPlan.js.map +1 -0
  980. package/lib/features/canvas/set/agent/tools.js +1735 -176
  981. package/lib/features/canvas/set/agent/tools.js.map +1 -1
  982. package/lib/features/canvas/set/agent/useSetAgent.js +399 -0
  983. package/lib/features/canvas/set/agent/useSetAgent.js.map +1 -0
  984. package/lib/features/canvas/set/animation.js +637 -0
  985. package/lib/features/canvas/set/animation.js.map +1 -0
  986. package/lib/features/canvas/set/backup.js +107 -0
  987. package/lib/features/canvas/set/backup.js.map +1 -0
  988. package/lib/features/canvas/set/cameraPath.js.map +1 -1
  989. package/lib/features/canvas/set/cleanMeshRuns.js +82 -0
  990. package/lib/features/canvas/set/cleanMeshRuns.js.map +1 -0
  991. package/lib/features/canvas/set/continuity.js +162 -0
  992. package/lib/features/canvas/set/continuity.js.map +1 -0
  993. package/lib/features/canvas/set/drawPreview.js +74 -0
  994. package/lib/features/canvas/set/drawPreview.js.map +1 -0
  995. package/lib/features/canvas/set/drawnPath.js +175 -0
  996. package/lib/features/canvas/set/drawnPath.js.map +1 -0
  997. package/lib/features/canvas/set/endCard.js +68 -0
  998. package/lib/features/canvas/set/endCard.js.map +1 -0
  999. package/lib/features/canvas/set/figure.js +448 -0
  1000. package/lib/features/canvas/set/figure.js.map +1 -0
  1001. package/lib/features/canvas/set/filmParts.js +81 -0
  1002. package/lib/features/canvas/set/filmParts.js.map +1 -0
  1003. package/lib/features/canvas/set/filmShot.js +142 -0
  1004. package/lib/features/canvas/set/filmShot.js.map +1 -0
  1005. package/lib/features/canvas/set/formations.js +207 -0
  1006. package/lib/features/canvas/set/formations.js.map +1 -0
  1007. package/lib/features/canvas/set/glAssets.js +113 -0
  1008. package/lib/features/canvas/set/glAssets.js.map +1 -0
  1009. package/lib/features/canvas/set/inspectorValues.js +3 -0
  1010. package/lib/features/canvas/set/inspectorValues.js.map +1 -0
  1011. package/lib/features/canvas/set/links.js +110 -0
  1012. package/lib/features/canvas/set/links.js.map +1 -0
  1013. package/lib/features/canvas/set/notes.js +72 -0
  1014. package/lib/features/canvas/set/notes.js.map +1 -0
  1015. package/lib/features/canvas/set/orbit.js +118 -0
  1016. package/lib/features/canvas/set/orbit.js.map +1 -0
  1017. package/lib/features/canvas/set/paidAsk.js +101 -0
  1018. package/lib/features/canvas/set/paidAsk.js.map +1 -0
  1019. package/lib/features/canvas/set/paidCost.js +94 -0
  1020. package/lib/features/canvas/set/paidCost.js.map +1 -0
  1021. package/lib/features/canvas/set/panels/BuildPanel.js +499 -0
  1022. package/lib/features/canvas/set/panels/BuildPanel.js.map +1 -0
  1023. package/lib/features/canvas/set/panels/InspectorPanel.js +773 -0
  1024. package/lib/features/canvas/set/panels/InspectorPanel.js.map +1 -0
  1025. package/lib/features/canvas/set/panels/ObjectsPanel.js +337 -0
  1026. package/lib/features/canvas/set/panels/ObjectsPanel.js.map +1 -0
  1027. package/lib/features/canvas/set/panels/RenderPanel.js +1111 -0
  1028. package/lib/features/canvas/set/panels/RenderPanel.js.map +1 -0
  1029. package/lib/features/canvas/set/panels/TimelinePanel.js +883 -0
  1030. package/lib/features/canvas/set/panels/TimelinePanel.js.map +1 -0
  1031. package/lib/features/canvas/set/panels/WorldPanel.js +284 -0
  1032. package/lib/features/canvas/set/panels/WorldPanel.js.map +1 -0
  1033. package/lib/features/canvas/set/pickFile.js +22 -0
  1034. package/lib/features/canvas/set/pickFile.js.map +1 -0
  1035. package/lib/features/canvas/set/recording.js +155 -0
  1036. package/lib/features/canvas/set/recording.js.map +1 -0
  1037. package/lib/features/canvas/set/renderMove.js +92 -0
  1038. package/lib/features/canvas/set/renderMove.js.map +1 -0
  1039. package/lib/features/canvas/set/renderPrompt.js +12 -0
  1040. package/lib/features/canvas/set/renderPrompt.js.map +1 -0
  1041. package/lib/features/canvas/set/renderSize.js +44 -0
  1042. package/lib/features/canvas/set/renderSize.js.map +1 -0
  1043. package/lib/features/canvas/set/retime.js +96 -0
  1044. package/lib/features/canvas/set/retime.js.map +1 -0
  1045. package/lib/features/canvas/set/rigRuns.js +93 -0
  1046. package/lib/features/canvas/set/rigRuns.js.map +1 -0
  1047. package/lib/features/canvas/set/rotation.js +89 -0
  1048. package/lib/features/canvas/set/rotation.js.map +1 -0
  1049. package/lib/features/canvas/set/script.js +192 -0
  1050. package/lib/features/canvas/set/script.js.map +1 -0
  1051. package/lib/features/canvas/set/setFile.js +17 -0
  1052. package/lib/features/canvas/set/setFile.js.map +1 -0
  1053. package/lib/features/canvas/set/setRpc.js +263 -0
  1054. package/lib/features/canvas/set/setRpc.js.map +1 -0
  1055. package/lib/features/canvas/set/shotCamera.js +545 -0
  1056. package/lib/features/canvas/set/shotCamera.js.map +1 -0
  1057. package/lib/features/canvas/set/splatWorldJob.js +167 -0
  1058. package/lib/features/canvas/set/splatWorldJob.js.map +1 -0
  1059. package/lib/features/canvas/set/state.js +880 -0
  1060. package/lib/features/canvas/set/state.js.map +1 -0
  1061. package/lib/features/canvas/set/storyboard.js +168 -0
  1062. package/lib/features/canvas/set/storyboard.js.map +1 -0
  1063. package/lib/features/canvas/set/supplyLibrary.js +246 -89
  1064. package/lib/features/canvas/set/supplyLibrary.js.map +1 -1
  1065. package/lib/features/canvas/set/three/framing.js +30 -0
  1066. package/lib/features/canvas/set/three/framing.js.map +1 -0
  1067. package/lib/features/canvas/set/three/objects.js +296 -0
  1068. package/lib/features/canvas/set/three/objects.js.map +1 -0
  1069. package/lib/features/canvas/set/three/skeletonRig.js +108 -0
  1070. package/lib/features/canvas/set/three/skeletonRig.js.map +1 -0
  1071. package/lib/features/canvas/set/three/splatWorld.js +1 -0
  1072. package/lib/features/canvas/set/three/splatWorld.js.map +1 -0
  1073. package/lib/features/canvas/set/three/stage.js +1387 -0
  1074. package/lib/features/canvas/set/three/stage.js.map +1 -0
  1075. package/lib/features/canvas/set/three/threeLib.js +3 -0
  1076. package/lib/features/canvas/set/three/threeLib.js.map +1 -0
  1077. package/lib/features/canvas/set/transformClipboard.js +53 -0
  1078. package/lib/features/canvas/set/transformClipboard.js.map +1 -0
  1079. package/lib/features/canvas/set/types.js +609 -0
  1080. package/lib/features/canvas/set/types.js.map +1 -0
  1081. package/lib/features/canvas/set/ui/setUi.js +224 -0
  1082. package/lib/features/canvas/set/ui/setUi.js.map +1 -0
  1083. package/lib/features/canvas/shorts/ShortsControls.js +533 -0
  1084. package/lib/features/canvas/shorts/ShortsControls.js.map +1 -0
  1085. package/lib/features/canvas/shorts/shortsPlan.js +188 -0
  1086. package/lib/features/canvas/shorts/shortsPlan.js.map +1 -0
  1087. package/lib/features/canvas/shorts/shortsRun.js +609 -0
  1088. package/lib/features/canvas/shorts/shortsRun.js.map +1 -0
  1089. package/lib/features/canvas/shorts/shortsStore.js +240 -0
  1090. package/lib/features/canvas/shorts/shortsStore.js.map +1 -0
  1091. package/lib/features/canvas/shorts/shortsStyle.js +26 -0
  1092. package/lib/features/canvas/shorts/shortsStyle.js.map +1 -0
  1093. package/lib/features/canvas/skills/SkillsShowcase.js +153 -0
  1094. package/lib/features/canvas/skills/SkillsShowcase.js.map +1 -0
  1095. package/lib/features/canvas/skills/skillsCatalog.js +543 -0
  1096. package/lib/features/canvas/skills/skillsCatalog.js.map +1 -0
  1097. package/lib/features/canvas/storageLibrary.js +5 -1
  1098. package/lib/features/canvas/storageLibrary.js.map +1 -1
  1099. package/lib/features/canvas/surfaceIndex.js +3 -3
  1100. package/lib/features/canvas/surfaceIndex.js.map +1 -1
  1101. package/lib/features/canvas/useBoardDocument.js +126 -0
  1102. package/lib/features/canvas/useBoardDocument.js.map +1 -0
  1103. package/lib/features/canvas/video3d.js +167 -19
  1104. package/lib/features/canvas/video3d.js.map +1 -1
  1105. package/lib/features/canvas/videoClips.js +3 -42
  1106. package/lib/features/canvas/videoClips.js.map +1 -1
  1107. package/lib/features/canvas/videoEditor/EditorPanels.js +55 -4
  1108. package/lib/features/canvas/videoEditor/EditorPanels.js.map +1 -1
  1109. package/lib/features/canvas/videoEditor/OverlayStage.js +77 -0
  1110. package/lib/features/canvas/videoEditor/OverlayStage.js.map +1 -0
  1111. package/lib/features/canvas/videoEditor/agent/AgentCutPane.js +41 -8
  1112. package/lib/features/canvas/videoEditor/agent/AgentCutPane.js.map +1 -1
  1113. package/lib/features/canvas/videoEditor/agent/MakeVideoAsk.js +113 -0
  1114. package/lib/features/canvas/videoEditor/agent/MakeVideoAsk.js.map +1 -0
  1115. package/lib/features/canvas/videoEditor/agent/agentLoop.js +70 -22
  1116. package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
  1117. package/lib/features/canvas/videoEditor/agent/cutTools.js +624 -63
  1118. package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
  1119. package/lib/features/canvas/videoEditor/agent/finishingOps.js +269 -0
  1120. package/lib/features/canvas/videoEditor/agent/finishingOps.js.map +1 -0
  1121. package/lib/features/canvas/videoEditor/agent/makeRequest.js +147 -0
  1122. package/lib/features/canvas/videoEditor/agent/makeRequest.js.map +1 -0
  1123. package/lib/features/canvas/videoEditor/agent/overlayTools.js +570 -0
  1124. package/lib/features/canvas/videoEditor/agent/overlayTools.js.map +1 -0
  1125. package/lib/features/canvas/videoEditor/agent/reference.js +163 -0
  1126. package/lib/features/canvas/videoEditor/agent/reference.js.map +1 -0
  1127. package/lib/features/canvas/videoEditor/agent/voiceLines.js +152 -0
  1128. package/lib/features/canvas/videoEditor/agent/voiceLines.js.map +1 -0
  1129. package/lib/features/canvas/videoEditor/backdrop.js +145 -0
  1130. package/lib/features/canvas/videoEditor/backdrop.js.map +1 -0
  1131. package/lib/features/canvas/videoEditor/captionLooks.js +334 -0
  1132. package/lib/features/canvas/videoEditor/captionLooks.js.map +1 -0
  1133. package/lib/features/canvas/videoEditor/captions.js +33 -1
  1134. package/lib/features/canvas/videoEditor/captions.js.map +1 -1
  1135. package/lib/features/canvas/videoEditor/compileTimeline.js +156 -11
  1136. package/lib/features/canvas/videoEditor/compileTimeline.js.map +1 -1
  1137. package/lib/features/canvas/videoEditor/editorModel.js +12 -4
  1138. package/lib/features/canvas/videoEditor/editorModel.js.map +1 -1
  1139. package/lib/features/canvas/videoEditor/exportPipeline.js +135 -6
  1140. package/lib/features/canvas/videoEditor/exportPipeline.js.map +1 -1
  1141. package/lib/features/canvas/videoEditor/exportTask.js +5 -3
  1142. package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
  1143. package/lib/features/canvas/videoEditor/layers.js +26 -4
  1144. package/lib/features/canvas/videoEditor/layers.js.map +1 -1
  1145. package/lib/features/canvas/videoEditor/mediaActions.js +7 -3
  1146. package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
  1147. package/lib/features/canvas/videoEditor/motion/apng.js +7 -0
  1148. package/lib/features/canvas/videoEditor/motion/apng.js.map +1 -0
  1149. package/lib/features/canvas/videoEditor/motion/bake.js +4 -0
  1150. package/lib/features/canvas/videoEditor/motion/bake.js.map +1 -0
  1151. package/lib/features/canvas/videoEditor/motion/fonts.js +185 -0
  1152. package/lib/features/canvas/videoEditor/motion/fonts.js.map +1 -0
  1153. package/lib/features/canvas/videoEditor/motion/presets.js +722 -0
  1154. package/lib/features/canvas/videoEditor/motion/presets.js.map +1 -0
  1155. package/lib/features/canvas/videoEditor/motion/skiaContext.js +437 -0
  1156. package/lib/features/canvas/videoEditor/motion/skiaContext.js.map +1 -0
  1157. package/lib/features/canvas/videoEditor/motion/spec.js +414 -0
  1158. package/lib/features/canvas/videoEditor/motion/spec.js.map +1 -0
  1159. package/lib/features/canvas/videoEditor/overlays.js +200 -0
  1160. package/lib/features/canvas/videoEditor/overlays.js.map +1 -0
  1161. package/lib/features/canvas/videoEditor/produce/produceScenes.js +96 -20
  1162. package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
  1163. package/lib/features/canvas/videoEditor/produce/speechPad.js +66 -0
  1164. package/lib/features/canvas/videoEditor/produce/speechPad.js.map +1 -0
  1165. package/lib/features/canvas/videoEditor/recreate/RecreateSection.js +318 -0
  1166. package/lib/features/canvas/videoEditor/recreate/RecreateSection.js.map +1 -0
  1167. package/lib/features/canvas/videoEditor/recreate/motionRecreate.js +294 -0
  1168. package/lib/features/canvas/videoEditor/recreate/motionRecreate.js.map +1 -0
  1169. package/lib/features/canvas/videoEditor/renewLinks.js +14 -4
  1170. package/lib/features/canvas/videoEditor/renewLinks.js.map +1 -1
  1171. package/lib/features/canvas/videoEditor/sceneLayers.js +5 -2
  1172. package/lib/features/canvas/videoEditor/sceneLayers.js.map +1 -1
  1173. package/lib/features/canvas/videoEditor/transitions.js +5 -1
  1174. package/lib/features/canvas/videoEditor/transitions.js.map +1 -1
  1175. package/lib/features/canvas/videoEditor/videoProjectsStore.js +6 -4
  1176. package/lib/features/canvas/videoEditor/videoProjectsStore.js.map +1 -1
  1177. package/lib/features/canvas/videoTools/VideoAiControls.js +432 -0
  1178. package/lib/features/canvas/videoTools/VideoAiControls.js.map +1 -0
  1179. package/lib/features/canvas/videoTools/capabilityPanels.js +349 -0
  1180. package/lib/features/canvas/videoTools/capabilityPanels.js.map +1 -0
  1181. package/lib/features/canvas/videoTools/frameMarks.js +73 -0
  1182. package/lib/features/canvas/videoTools/frameMarks.js.map +1 -0
  1183. package/lib/features/canvas/videoTools/videoDrafts.js +106 -0
  1184. package/lib/features/canvas/videoTools/videoDrafts.js.map +1 -0
  1185. package/lib/features/canvas/videoTools/videoEnhanceRpc.js +179 -0
  1186. package/lib/features/canvas/videoTools/videoEnhanceRpc.js.map +1 -0
  1187. package/lib/features/canvas/videoTools/videoToolCatalog.js +266 -0
  1188. package/lib/features/canvas/videoTools/videoToolCatalog.js.map +1 -0
  1189. package/lib/features/canvas/videoTools/videoToolOps.js +314 -0
  1190. package/lib/features/canvas/videoTools/videoToolOps.js.map +1 -0
  1191. package/lib/features/canvas/workflow/StepSheet.js +581 -0
  1192. package/lib/features/canvas/workflow/StepSheet.js.map +1 -0
  1193. package/lib/features/canvas/workflow/WorkflowExperience.js +702 -0
  1194. package/lib/features/canvas/workflow/WorkflowExperience.js.map +1 -0
  1195. package/lib/features/canvas/workflow/WorkflowPlane.js +319 -0
  1196. package/lib/features/canvas/workflow/WorkflowPlane.js.map +1 -0
  1197. package/lib/features/canvas/workflow/WorkflowSheets.js +346 -0
  1198. package/lib/features/canvas/workflow/WorkflowSheets.js.map +1 -0
  1199. package/lib/features/canvas/workflow/characterCards.js +23 -0
  1200. package/lib/features/canvas/workflow/characterCards.js.map +1 -0
  1201. package/lib/features/canvas/workflow/draftLane.js +73 -0
  1202. package/lib/features/canvas/workflow/draftLane.js.map +1 -0
  1203. package/lib/features/canvas/workflow/errors.js +8 -0
  1204. package/lib/features/canvas/workflow/errors.js.map +1 -0
  1205. package/lib/features/canvas/workflow/graphView.js +166 -0
  1206. package/lib/features/canvas/workflow/graphView.js.map +1 -0
  1207. package/lib/features/canvas/workflow/lookWords.js +11 -0
  1208. package/lib/features/canvas/workflow/lookWords.js.map +1 -0
  1209. package/lib/features/canvas/workflow/runLanding.js +140 -0
  1210. package/lib/features/canvas/workflow/runLanding.js.map +1 -0
  1211. package/lib/features/canvas/workflow/spend.js +41 -0
  1212. package/lib/features/canvas/workflow/spend.js.map +1 -0
  1213. package/lib/features/canvas/workflow/starters.js +339 -0
  1214. package/lib/features/canvas/workflow/starters.js.map +1 -0
  1215. package/lib/features/canvas/workflow/stepSignature.js +117 -0
  1216. package/lib/features/canvas/workflow/stepSignature.js.map +1 -0
  1217. package/lib/features/canvas/workflow/templateStore.js +227 -0
  1218. package/lib/features/canvas/workflow/templateStore.js.map +1 -0
  1219. package/lib/features/canvas/workflow/useWorkflow.js +1415 -0
  1220. package/lib/features/canvas/workflow/useWorkflow.js.map +1 -0
  1221. package/lib/features/canvas/workflow/workflowGraph.js +803 -0
  1222. package/lib/features/canvas/workflow/workflowGraph.js.map +1 -0
  1223. package/lib/features/canvas/workflow/workflowRunner.js +96 -0
  1224. package/lib/features/canvas/workflow/workflowRunner.js.map +1 -0
  1225. package/lib/features/canvas/workflow/workflowSteps.js +444 -0
  1226. package/lib/features/canvas/workflow/workflowSteps.js.map +1 -0
  1227. package/lib/features/canvas/workflow/workflowUi.js +212 -0
  1228. package/lib/features/canvas/workflow/workflowUi.js.map +1 -0
  1229. package/lib/features/chat/ComposerModeSwitch.js +37 -7
  1230. package/lib/features/chat/ComposerModeSwitch.js.map +1 -1
  1231. package/lib/features/chat/ShoppingResultsWidgetCard.js +152 -0
  1232. package/lib/features/chat/ShoppingResultsWidgetCard.js.map +1 -0
  1233. package/lib/features/chat/hostTranscriptProtocol.js +12 -2
  1234. package/lib/features/chat/hostTranscriptProtocol.js.map +1 -1
  1235. package/lib/features/design/surface/useBrandKitInUse.js +22 -10
  1236. package/lib/features/design/surface/useBrandKitInUse.js.map +1 -1
  1237. package/lib/features/shopping/BetterPricePanel.js +277 -0
  1238. package/lib/features/shopping/BetterPricePanel.js.map +1 -0
  1239. package/lib/features/shopping/CardOpeningNotice.js +67 -0
  1240. package/lib/features/shopping/CardOpeningNotice.js.map +1 -0
  1241. package/lib/features/shopping/CompareProducts.js +398 -0
  1242. package/lib/features/shopping/CompareProducts.js.map +1 -0
  1243. package/lib/features/shopping/CompareToggle.js +30 -0
  1244. package/lib/features/shopping/CompareToggle.js.map +1 -0
  1245. package/lib/features/shopping/DealCard.js +289 -0
  1246. package/lib/features/shopping/DealCard.js.map +1 -0
  1247. package/lib/features/shopping/DealRails.js +361 -0
  1248. package/lib/features/shopping/DealRails.js.map +1 -0
  1249. package/lib/features/shopping/DealsPanel.js +460 -171
  1250. package/lib/features/shopping/DealsPanel.js.map +1 -1
  1251. package/lib/features/shopping/DeliverToControl.js +189 -0
  1252. package/lib/features/shopping/DeliverToControl.js.map +1 -0
  1253. package/lib/features/shopping/HorizontalScroller.js +192 -0
  1254. package/lib/features/shopping/HorizontalScroller.js.map +1 -0
  1255. package/lib/features/shopping/ProductCard.js +440 -45
  1256. package/lib/features/shopping/ProductCard.js.map +1 -1
  1257. package/lib/features/shopping/ProductCardDetails.js +133 -0
  1258. package/lib/features/shopping/ProductCardDetails.js.map +1 -0
  1259. package/lib/features/shopping/ProductDetailSheet.js +279 -120
  1260. package/lib/features/shopping/ProductDetailSheet.js.map +1 -1
  1261. package/lib/features/shopping/ProductFilterBar.js +207 -77
  1262. package/lib/features/shopping/ProductFilterBar.js.map +1 -1
  1263. package/lib/features/shopping/ProductMediaCarousel.js +229 -0
  1264. package/lib/features/shopping/ProductMediaCarousel.js.map +1 -0
  1265. package/lib/features/shopping/ProductPageSections.js +448 -0
  1266. package/lib/features/shopping/ProductPageSections.js.map +1 -0
  1267. package/lib/features/shopping/ProductSwatches.js +136 -0
  1268. package/lib/features/shopping/ProductSwatches.js.map +1 -0
  1269. package/lib/features/shopping/ProductVideoSlide.js +117 -0
  1270. package/lib/features/shopping/ProductVideoSlide.js.map +1 -0
  1271. package/lib/features/shopping/RequirementChips.js +90 -0
  1272. package/lib/features/shopping/RequirementChips.js.map +1 -0
  1273. package/lib/features/shopping/SearchResults.js +608 -0
  1274. package/lib/features/shopping/SearchResults.js.map +1 -0
  1275. package/lib/features/shopping/ShoppingAgentChatPane.js +205 -87
  1276. package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -1
  1277. package/lib/features/shopping/ShoppingComputerMonitor.js +51 -0
  1278. package/lib/features/shopping/ShoppingComputerMonitor.js.map +1 -0
  1279. package/lib/features/shopping/ShoppingExperience.js +236 -296
  1280. package/lib/features/shopping/ShoppingExperience.js.map +1 -1
  1281. package/lib/features/shopping/ShoppingHero.js +321 -0
  1282. package/lib/features/shopping/ShoppingHero.js.map +1 -0
  1283. package/lib/features/shopping/TrendingSections.js +29 -23
  1284. package/lib/features/shopping/TrendingSections.js.map +1 -1
  1285. package/lib/features/shopping/WatchlistPanel.js +287 -63
  1286. package/lib/features/shopping/WatchlistPanel.js.map +1 -1
  1287. package/lib/features/shopping/cartCloudSync.js +17 -17
  1288. package/lib/features/shopping/cartCloudSync.js.map +1 -1
  1289. package/lib/features/shopping/catalog.js +46 -86
  1290. package/lib/features/shopping/catalog.js.map +1 -1
  1291. package/lib/features/shopping/chat/brainRouter.js +165 -0
  1292. package/lib/features/shopping/chat/brainRouter.js.map +1 -0
  1293. package/lib/features/shopping/chat/brainRouterKit.js +95 -0
  1294. package/lib/features/shopping/chat/brainRouterKit.js.map +1 -0
  1295. package/lib/features/shopping/chat/chatKit.js +93 -0
  1296. package/lib/features/shopping/chat/chatKit.js.map +1 -0
  1297. package/lib/features/shopping/chat/computerHandoff.js +13 -0
  1298. package/lib/features/shopping/chat/computerHandoff.js.map +1 -0
  1299. package/lib/features/shopping/chat/openShopNative.js +18 -2
  1300. package/lib/features/shopping/chat/openShopNative.js.map +1 -1
  1301. package/lib/features/shopping/chat/pickReplies.js +20 -0
  1302. package/lib/features/shopping/chat/pickReplies.js.map +1 -0
  1303. package/lib/features/shopping/chat/shoppingTurn.js +106 -0
  1304. package/lib/features/shopping/chat/shoppingTurn.js.map +1 -0
  1305. package/lib/features/shopping/chat/widgetContent.js +49 -162
  1306. package/lib/features/shopping/chat/widgetContent.js.map +1 -1
  1307. package/lib/features/shopping/deals/aggregate.js +191 -0
  1308. package/lib/features/shopping/deals/aggregate.js.map +1 -0
  1309. package/lib/features/shopping/deals/registry.js +101 -0
  1310. package/lib/features/shopping/deals/registry.js.map +1 -0
  1311. package/lib/features/shopping/deliveryText.js +33 -0
  1312. package/lib/features/shopping/deliveryText.js.map +1 -0
  1313. package/lib/features/shopping/heroBackground.js +64 -0
  1314. package/lib/features/shopping/heroBackground.js.map +1 -0
  1315. package/lib/features/shopping/hooks/useNearViewport.js +37 -0
  1316. package/lib/features/shopping/hooks/useNearViewport.js.map +1 -0
  1317. package/lib/features/shopping/hooks/useProductMedia.js +24 -0
  1318. package/lib/features/shopping/hooks/useProductMedia.js.map +1 -0
  1319. package/lib/features/shopping/hooks/useProductPage.js +42 -0
  1320. package/lib/features/shopping/hooks/useProductPage.js.map +1 -0
  1321. package/lib/features/shopping/hooks/useShoppingHistorySync.js +134 -0
  1322. package/lib/features/shopping/hooks/useShoppingHistorySync.js.map +1 -0
  1323. package/lib/features/shopping/hooks/useTrendingProducts.js +194 -83
  1324. package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -1
  1325. package/lib/features/shopping/imageSizing.js +69 -0
  1326. package/lib/features/shopping/imageSizing.js.map +1 -0
  1327. package/lib/features/shopping/mediaSlides.js +39 -0
  1328. package/lib/features/shopping/mediaSlides.js.map +1 -0
  1329. package/lib/features/shopping/mobile/PosterCard.js +408 -0
  1330. package/lib/features/shopping/mobile/PosterCard.js.map +1 -0
  1331. package/lib/features/shopping/mobile/PosterDeck.js +310 -0
  1332. package/lib/features/shopping/mobile/PosterDeck.js.map +1 -0
  1333. package/lib/features/shopping/mobile/PosterResults.js +133 -0
  1334. package/lib/features/shopping/mobile/PosterResults.js.map +1 -0
  1335. package/lib/features/shopping/mobile/deckGesture.js +18 -0
  1336. package/lib/features/shopping/mobile/deckGesture.js.map +1 -0
  1337. package/lib/features/shopping/mobile/posterLayout.js +78 -0
  1338. package/lib/features/shopping/mobile/posterLayout.js.map +1 -0
  1339. package/lib/features/shopping/mobile/vetting.js +49 -0
  1340. package/lib/features/shopping/mobile/vetting.js.map +1 -0
  1341. package/lib/features/shopping/productHighlight.js +39 -0
  1342. package/lib/features/shopping/productHighlight.js.map +1 -0
  1343. package/lib/features/shopping/productImage.js +7 -28
  1344. package/lib/features/shopping/productImage.js.map +1 -1
  1345. package/lib/features/shopping/resolveProductImage.js +56 -0
  1346. package/lib/features/shopping/resolveProductImage.js.map +1 -0
  1347. package/lib/features/shopping/savedProducts.js +33 -18
  1348. package/lib/features/shopping/savedProducts.js.map +1 -1
  1349. package/lib/features/shopping/services/amazonProductSearch.js +170 -0
  1350. package/lib/features/shopping/services/amazonProductSearch.js.map +1 -0
  1351. package/lib/features/shopping/services/betterPrice.js +306 -0
  1352. package/lib/features/shopping/services/betterPrice.js.map +1 -0
  1353. package/lib/features/shopping/services/buildShoppingAttachment.js +95 -0
  1354. package/lib/features/shopping/services/buildShoppingAttachment.js.map +1 -0
  1355. package/lib/features/shopping/services/buildShoppingWidgetMessage.js +125 -0
  1356. package/lib/features/shopping/services/buildShoppingWidgetMessage.js.map +1 -0
  1357. package/lib/features/shopping/services/cartCloud.js +18 -12
  1358. package/lib/features/shopping/services/cartCloud.js.map +1 -1
  1359. package/lib/features/shopping/services/catalogProductSearch.js +411 -0
  1360. package/lib/features/shopping/services/catalogProductSearch.js.map +1 -0
  1361. package/lib/features/shopping/services/compareTable.js +120 -0
  1362. package/lib/features/shopping/services/compareTable.js.map +1 -0
  1363. package/lib/features/shopping/services/countText.js +18 -0
  1364. package/lib/features/shopping/services/countText.js.map +1 -0
  1365. package/lib/features/shopping/services/couponDeals.js +125 -0
  1366. package/lib/features/shopping/services/couponDeals.js.map +1 -0
  1367. package/lib/features/shopping/services/dealProviders.js +158 -0
  1368. package/lib/features/shopping/services/dealProviders.js.map +1 -0
  1369. package/lib/features/shopping/services/dealsSearch.js +127 -0
  1370. package/lib/features/shopping/services/dealsSearch.js.map +1 -0
  1371. package/lib/features/shopping/services/liveDealLanes.js +111 -0
  1372. package/lib/features/shopping/services/liveDealLanes.js.map +1 -0
  1373. package/lib/features/shopping/services/livePriceCheckClient.js +112 -0
  1374. package/lib/features/shopping/services/livePriceCheckClient.js.map +1 -0
  1375. package/lib/features/shopping/services/livePriceCheckReport.js +71 -0
  1376. package/lib/features/shopping/services/livePriceCheckReport.js.map +1 -0
  1377. package/lib/features/shopping/services/parsePriceCheckIntent.js +17 -4
  1378. package/lib/features/shopping/services/parsePriceCheckIntent.js.map +1 -1
  1379. package/lib/features/shopping/services/parseShoppingIntent.js +25 -2
  1380. package/lib/features/shopping/services/parseShoppingIntent.js.map +1 -1
  1381. package/lib/features/shopping/services/parseShoppingIntentViaBrain.js +134 -0
  1382. package/lib/features/shopping/services/parseShoppingIntentViaBrain.js.map +1 -0
  1383. package/lib/features/shopping/services/pricing.js +93 -0
  1384. package/lib/features/shopping/services/pricing.js.map +1 -0
  1385. package/lib/features/shopping/services/productAvailability.js.map +1 -1
  1386. package/lib/features/shopping/services/productFilters.js +240 -4
  1387. package/lib/features/shopping/services/productFilters.js.map +1 -1
  1388. package/lib/features/shopping/services/productMedia.js +169 -0
  1389. package/lib/features/shopping/services/productMedia.js.map +1 -0
  1390. package/lib/features/shopping/services/productOffers.js +133 -0
  1391. package/lib/features/shopping/services/productOffers.js.map +1 -0
  1392. package/lib/features/shopping/services/productPage.js +229 -0
  1393. package/lib/features/shopping/services/productPage.js.map +1 -0
  1394. package/lib/features/shopping/services/productPageEvidence.js +66 -0
  1395. package/lib/features/shopping/services/productPageEvidence.js.map +1 -0
  1396. package/lib/features/shopping/services/productTitleQuality.js +30 -0
  1397. package/lib/features/shopping/services/productTitleQuality.js.map +1 -0
  1398. package/lib/features/shopping/services/readShoppingAttachment.js +173 -0
  1399. package/lib/features/shopping/services/readShoppingAttachment.js.map +1 -0
  1400. package/lib/features/shopping/services/resolveShoppingRelevance.js +23 -0
  1401. package/lib/features/shopping/services/resolveShoppingRelevance.js.map +1 -0
  1402. package/lib/features/shopping/services/retailerProductSearch.js +240 -0
  1403. package/lib/features/shopping/services/retailerProductSearch.js.map +1 -0
  1404. package/lib/features/shopping/services/retailerUrl.js +103 -9
  1405. package/lib/features/shopping/services/retailerUrl.js.map +1 -1
  1406. package/lib/features/shopping/services/salesDealsStore.js +336 -0
  1407. package/lib/features/shopping/services/salesDealsStore.js.map +1 -0
  1408. package/lib/features/shopping/services/searchCardFields.js +155 -0
  1409. package/lib/features/shopping/services/searchCardFields.js.map +1 -0
  1410. package/lib/features/shopping/services/searchRelevance.js +143 -0
  1411. package/lib/features/shopping/services/searchRelevance.js.map +1 -0
  1412. package/lib/features/shopping/services/searchRequirements.js +226 -0
  1413. package/lib/features/shopping/services/searchRequirements.js.map +1 -0
  1414. package/lib/features/shopping/services/shoppingChatReply.js +1 -46
  1415. package/lib/features/shopping/services/shoppingChatReply.js.map +1 -1
  1416. package/lib/features/shopping/services/shoppingComputer.js +80 -0
  1417. package/lib/features/shopping/services/shoppingComputer.js.map +1 -0
  1418. package/lib/features/shopping/services/shoppingDepartments.js +1 -0
  1419. package/lib/features/shopping/services/shoppingDepartments.js.map +1 -0
  1420. package/lib/features/shopping/services/shoppingProductSearch.js +261 -146
  1421. package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -1
  1422. package/lib/features/shopping/services/shoppingSearchConnectorClient.js +208 -9
  1423. package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -1
  1424. package/lib/features/shopping/services/shoppingSubgraph.js +76 -0
  1425. package/lib/features/shopping/services/shoppingSubgraph.js.map +1 -0
  1426. package/lib/features/shopping/services/surfaceChannel.js +35 -0
  1427. package/lib/features/shopping/services/surfaceChannel.js.map +1 -0
  1428. package/lib/features/shopping/services/variantCards.js +221 -0
  1429. package/lib/features/shopping/services/variantCards.js.map +1 -0
  1430. package/lib/features/shopping/services/verifyProducts.js +188 -0
  1431. package/lib/features/shopping/services/verifyProducts.js.map +1 -0
  1432. package/lib/features/shopping/services/webPriceSearch.js +107 -0
  1433. package/lib/features/shopping/services/webPriceSearch.js.map +1 -0
  1434. package/lib/features/shopping/shoppingCart.js.map +1 -1
  1435. package/lib/features/shopping/shoppingHistoryStore.js +55 -3
  1436. package/lib/features/shopping/shoppingHistoryStore.js.map +1 -1
  1437. package/lib/features/shopping/shoppingRuntime.js +10 -1
  1438. package/lib/features/shopping/shoppingRuntime.js.map +1 -1
  1439. package/lib/features/shopping/state/compareSelection.js +70 -0
  1440. package/lib/features/shopping/state/compareSelection.js.map +1 -0
  1441. package/lib/features/shopping/state/deliveryLocation.js +118 -0
  1442. package/lib/features/shopping/state/deliveryLocation.js.map +1 -0
  1443. package/lib/features/shopping/tutorials/ShoppingTutorialDock.js +216 -0
  1444. package/lib/features/shopping/tutorials/ShoppingTutorialDock.js.map +1 -0
  1445. package/lib/features/shopping/tutorials/shoppingTutorials.js +52 -0
  1446. package/lib/features/shopping/tutorials/shoppingTutorials.js.map +1 -0
  1447. package/lib/features/shopping/tutorials/tutorials.js +88 -0
  1448. package/lib/features/shopping/tutorials/tutorials.js.map +1 -0
  1449. package/lib/features/shopping/useShoppingSearch.js +752 -115
  1450. package/lib/features/shopping/useShoppingSearch.js.map +1 -1
  1451. package/lib/features/webbuilder/WebBuilderExperience.js +15 -1
  1452. package/lib/features/webbuilder/WebBuilderExperience.js.map +1 -1
  1453. package/lib/features/webbuilder/components/SiteUploadSheet.js +88 -12
  1454. package/lib/features/webbuilder/components/SiteUploadSheet.js.map +1 -1
  1455. package/lib/features/webbuilder/components/TemplatePreviewSheet.js +132 -0
  1456. package/lib/features/webbuilder/components/TemplatePreviewSheet.js.map +1 -0
  1457. package/lib/features/webbuilder/components/TemplatesSheet.js +42 -5
  1458. package/lib/features/webbuilder/components/TemplatesSheet.js.map +1 -1
  1459. package/lib/features/webbuilder/connectorTemplates.js +7 -2
  1460. package/lib/features/webbuilder/connectorTemplates.js.map +1 -1
  1461. package/lib/features/webbuilder/templateCatalog.js +20 -2
  1462. package/lib/features/webbuilder/templateCatalog.js.map +1 -1
  1463. package/lib/features/webbuilder/templateClip.js +5 -0
  1464. package/lib/features/webbuilder/templateClip.js.map +1 -0
  1465. package/lib/features/webbuilder/web/upload/sitePhotos.js +51 -6
  1466. package/lib/features/webbuilder/web/upload/sitePhotos.js.map +1 -1
  1467. package/lib/features/webbuilder/workflow.js +7 -3
  1468. package/lib/features/webbuilder/workflow.js.map +1 -1
  1469. package/lib/hooks/useKeyboardBottomOffset.js +17 -1
  1470. package/lib/hooks/useKeyboardBottomOffset.js.map +1 -1
  1471. package/lib/screens/CanvasBoard/index.js +17 -0
  1472. package/lib/screens/CanvasBoard/index.js.map +1 -1
  1473. package/lib/screens/CanvasBoard/useCanvasHostChat.js +50 -0
  1474. package/lib/screens/CanvasBoard/useCanvasHostChat.js.map +1 -0
  1475. package/lib/screens/Home/HomeScreen.js +68 -15
  1476. package/lib/screens/Home/HomeScreen.js.map +1 -1
  1477. package/lib/screens/ShoppingNative/index.js +9 -3
  1478. package/lib/screens/ShoppingNative/index.js.map +1 -1
  1479. package/lib/services/brainQuickReply.js +16 -1
  1480. package/lib/services/brainQuickReply.js.map +1 -1
  1481. package/package.json +8 -5
  1482. package/lib/features/canvas/set/SetViewportWebView.js +0 -345
  1483. package/lib/features/canvas/set/SetViewportWebView.js.map +0 -1
  1484. package/lib/features/canvas/set/setPresets.js +0 -85
  1485. package/lib/features/canvas/set/setPresets.js.map +0 -1
  1486. package/lib/features/canvas/set/setProject.js +0 -66
  1487. package/lib/features/canvas/set/setProject.js.map +0 -1
  1488. package/lib/features/shopping/services/catalogActions.js +0 -166
  1489. package/lib/features/shopping/services/catalogActions.js.map +0 -1
  1490. package/lib/features/shopping/useCartCloudSync.js +0 -33
  1491. package/lib/features/shopping/useCartCloudSync.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import {KIT_CATEGORIES,KIT_ENTRIES,KIT_CATEGORY_LABEL}from'../supplyLibrary.js';import {SET_ASPECTS}from'../setProject.js';import {describeSet}from'./snapshot.js';function describeSupply() {
1
+ import {describeNotes}from'../notes.js';import {PERSON_COLORS,KIT_CATEGORIES,KIT_ENTRIES,KIT_CATEGORY_LABEL}from'../supplyLibrary.js';import {SET_ASPECTS}from'../types.js';import {describeSet}from'./snapshot.js';function describeSupply() {
2
2
  return KIT_CATEGORIES.map((category) => {
3
3
  const rows = KIT_ENTRIES.filter((entry) => entry.category === category).map((entry) => ` ${entry.id} (${entry.heightM > 0 ? `${entry.heightM}m` : "flat"}) - ${entry.hint}`);
4
4
  return [`${KIT_CATEGORY_LABEL[category]}:`, ...rows].join("\n");
@@ -6,8 +6,10 @@ import {KIT_CATEGORIES,KIT_ENTRIES,KIT_CATEGORY_LABEL}from'../supplyLibrary.js';
6
6
  }
7
7
  function buildSetSystemPrompt(project, opts = {}) {
8
8
  const {
9
- stills = []
9
+ stills = [],
10
+ notes = []
10
11
  } = opts;
12
+ const pinned = describeNotes(notes, project);
11
13
  return `You are the set agent inside a 3D set studio. You build and edit the user's set by calling tools; every change shows on the stage beside them at once, and each call is one undo step. Work like a director blocking a shot: act first, then say what you built in two or three plain sentences. Ask a question only when the request cannot be carried out without an answer.
12
14
 
13
15
  WHY A SET AND NOT A PROMPT
@@ -32,34 +34,117 @@ THE ORDER THAT WORKS
32
34
  STANDING THINGS ON THINGS
33
35
  Set y to the surface's height, never nudge until it looks right. Floor 0 \xB7 plank top 0.08 \xB7 steps top 0.72 \xB7 desk top 0.75 \xB7 table top 0.77 \xB7 counter top 0.95 \xB7 cube top 1. A figure is 1.75m, so its eye is ~1.6m and a table comes to its hip. Every object line in the snapshot ends with its own top for exactly this. A figure-seated goes at the SAME x and z as its chair with y 0: its feet stay on the floor and its hips land on the seat. Most furniture faces +Z, so a desk's worker sits on its +Z side and looks toward -Z: turn the chair and figure 180\xB0 to face the desk, and put a monitor on the desk turned 0\xB0 on the -Z half, facing them.
34
36
 
37
+ ANIMATING
38
+ The shot has a timeline. animate_object lays a whole movement on one object; key_camera moves the shot camera; set_timeline sets the length and frame rate. Anything that does not move needs no keys: most of a set stands still.
39
+ - An object with keys is wherever its keys say, so change where it goes with animate_object, never update_objects.
40
+ - Work the timing out from the distance. A person walks 1.4 m/s, jogs 3, sprints 7; a car in a street does 8-14. Crossing a 5m room at a walk is about 3.5 seconds.
41
+ - A person or vehicle travelling gets face_travel true so it looks where it is going. Use figure-walking for someone walking.
42
+ - Easing belongs to the key a stretch leaves: smooth flows through the key, ease settles on it, linear holds one speed, hold waits then jumps. To stand still for a while, give two keys in the same place.
43
+ - A camera move is two or more keys. A slow push-in travels about 0.2-0.5 m/s with the target fixed; to follow someone, key the camera at the same times as they move, with subject_id so each key aims at them.
44
+ - A macro is key_camera with subject_id on the small thing itself (the keyboard, never the desk) and size macro, and nothing else on that key: it works out the distance, the height and a clear side. Pulling back means each later key is farther and higher, ending on the person: subject_id on them with distance, height and azimuth_deg stated, 1.2-2.5m out at 1.4-1.8m high. Stated values win over the named shot, so a number you mean goes on the key.
45
+ - Around a person rebuilt from a survey, who faces -Z, azimuth_deg 0 is straight behind them, 45 behind their right shoulder, 90 at their right side, 180 facing them, 270 at their left side, 315 behind their left shoulder.
46
+ - key_camera refuses a key whose lens is inside something, or cannot see what it aims at, because that frame would be black. Move that key and call it again.
47
+ - When the user asks for a length, up to a minute, it is one continuous take: call set_timeline with that length first, then one key_camera with a key at every beat they describe, 5-10 seconds apart, the last key at the very end. Keep it slow, 0.1-0.4 m/s, so the eye can follow it, and leave it at 24fps unless asked: every frame is rendered. If they give no beats for a long take, travel the room: close on the subject, round them, along the walls, a wide of the whole place, and back in.
48
+ - Moving the camera and the subject at once is what makes a shot; moving everything at once is what ruins one.
49
+
50
+ PEOPLE AND GROUPS
51
+ - Every person on the set really moves, and you never tell the user one cannot. A stand-in figure has hips, knees, shoulders and a neck: give it a gait (update_objects gait walk) and move it with animate_object or walk_route, and its legs step in time with the ground it covers - and a walker who speeds past about 2 m/s breaks into a run by itself, so "walks, then runs off" is one walk gait with faster keys at the end. gait run is someone who runs the whole way. idle breathes for someone standing.
52
+ - pose_over_time is everything else a body does, at a moment: look-left and look-right turn the head, crouch drops them low behind cover, wave, point, reach, arms-up; stand brings them back. "He looks around, crouches behind the car, then runs" is a walk, pose_over_time look-left then look-right then crouch then stand, and keys that speed up at the end.
53
+ - A generated character (generate_object) moves the same way once it has a skeleton: rig_character, one paid run of a minute or two, humanoids only. Offer it when the user wants their own character to move; never say a skeleton cannot be had.
54
+ - The stand-in is the blocking. The real video acts the script on the real person - the crouch, the glance, the run - from where the blocking puts them, so write every action in write_script as well.
55
+ - walk_route is the quick way to send someone along a path: give the points on the floor in order and it times them by distance at a walk or a run, sets the gait and turns them to face where they go.
56
+ - pose gives a stand-in's arms something to do: wave, point, reach, arms-up, arms-out. A generated character the snapshot calls rigged walks and poses on its own skeleton the same way; an unrigged one only bobs, so say so if the user expects it to walk.
57
+ - arrange_group stands several people at once - line, column, arc, circle, v, wedge, grid, cluster - facing the camera unless told otherwise, and move_by walks the whole group together keeping its shape.
58
+ - carry_object puts one thing on another so it moves and turns with it: a cup in a hand, a box on a cart, a rider.
59
+ - linked_copies makes a crowd or a row of the same thing; a colour or model change on one goes to all.
60
+ - walk_route with ids walks a whole group along one route, keeping their places.
61
+ - hip_height_m on update_objects sizes a standing stand-in (hips 0.83 is 1.75m tall) or seats a seated one at that height (a chair 0.45, a bar stool 0.75).
62
+ - retime_range makes one stretch slower or faster - "slow the walk", "shorten the pause" - and moves everything after it.
63
+
64
+ SCRIPT, SOUND AND THE END
65
+ - The blocking says where people are; write_script says what they do and say there, beat by beat. Any scene with people in it gets a script: the moments the stand-ins cannot show (an embrace, hands held, a slow dance, a kiss on the forehead) and every line, word for word. Lines are short, spoken the way people talk, a few seconds apart, with the person's id.
66
+ - Block the moments the script needs: two people embracing or dancing stand close, facing each other (0.3-0.5m apart); someone joining another walks there with a route before their beat.
67
+ - With photographs of more than one person, cast_photo each person to their own photograph so their faces never swap.
68
+ - end_card ends the real video on a title over black ("Still us."), for a story, an ad or a short.
69
+ - A long single take with a script is the strongest shape for a scene: one continuous move round the people, slow, handheld or steadicam, with the beats spread through it.
70
+ - Make the quick calls the user named - set_timeline, write_script, cast_photo, end_card, camera_carry - straight after blocking, before you refine the camera: refining can take many calls, and what was asked for must not be left undone.
71
+
72
+ CAMERAS AND CUTS
73
+ - A shot can have several cameras. add_camera puts in another angle - a wide, a close-up, a reverse - and works on it; set_cuts says which camera the shot is seen through from when. Without cuts the shot is one continuous take on one camera, which is right for most shots: only cut when the user asks for coverage, angles or an edit.
74
+ - Cut on action or a beat, at least 1.5s apart. Keep every camera on the same side of the line between the two people talking (the 180-degree rule), and change the angle by at least 30 degrees or the shot size between cuts, or it jumps.
75
+ - camera_carry gives a camera the motion of how it is carried: steadicam floats, handheld drifts, shoulder sways, shaky is documentary. A tripod is still. It plays and renders; it is held still while framing.
76
+ - camera_follow ties a camera to someone: aim keeps them in frame from where it stands, follow travels with them, mount rides on a vehicle and turns with it. The camera's own keys still move it; the tie is on top.
77
+ - set_camera roll_deg tilts the picture: a Dutch angle for unease. Most shots are level.
78
+ - When a tool result or CURRENT SET lists CONTINUITY, fix what your own calls caused before you answer, and tell the user in one clause about anything you leave.
79
+
80
+ REBUILDING A PHOTOGRAPH
81
+ When CURRENT SET carries a REFERENCE SURVEY, that survey IS the brief, and "keep the same" means exactly that:
82
+ - Call rebuild_from_survey, once. It places every element and person the survey lists exactly as written and puts on its camera, light and backdrop, so never retype the survey into block_set. Add nothing it does not list; leave something out only when the user asked, through leave_out.
83
+ - Only if it reports the survey cannot be built, block it yourself: one block_set with mode "replace" holding every line, then set_camera, set_light and set_world from its CAMERA, LIGHT and ROOM.
84
+ - A person the survey put inside furniture is a misreading: move them out with update_objects. The frame's aspect has already been measured from the photograph; leave it unless the user asks.
85
+ - If the message also describes a camera move or someone moving, do it in this same turn: build the set, then key_camera from where the message says the shot starts, or from the survey's CAMERA when it does not say.
86
+ - The HERO must end up in frame. If the survey's camera would lose it, use frame_shot on the hero instead.
87
+ - Name people for who they are in the shot ("Woman at the desk"), never with their description; say what they look like in your reply. A stand-in holds the place and the pose; the likeness comes from the photograph, which Render uses alongside the layout - tell the user that in one clause so a grey mannequin does not read as a failure.
88
+ - Build the room you were told about, even where a stock piece is only close. Say which pieces are stand-ins for something the library does not have. Only generate_object when the user asks for a real mesh.
89
+
90
+
91
+ SEEING YOUR SHOT
92
+ look_at_shot renders the shot camera and has a vision model judge the frames as a director of photography would. It is the only way you can see the stage: a shot nobody looked at is a guess.
93
+ - After you block a scene or key a camera move, look once before you answer.
94
+ - If the verdict is needs work, make its FIX changes with set_camera, frame_shot or key_camera (key_camera replaces every key, so send the whole move with the changed keys), then look again. Stop at good, or when you run out of looks, and say plainly what is still not right.
95
+ - When the user asks to perfect, polish, fix, review or improve the shot or its composition, this loop is the job: look first, fix, look again. When they only ask what you think, or what to do next, look and tell them, and change nothing.
96
+ - On a long move, look at the moments the reviewer found a problem with at_s, not only at the ends.
97
+ - Keep to what the user allowed. "Only the camera" means the camera and its keys change, and nothing else does.
98
+ - The reviewer's IDEA lines are shown to the user under your reply, as what they could do next. Never act on one yourself and do not repeat them.
99
+
100
+ PREVIEW FRAMES
101
+ preview_frames draws the finished look of the shot at a few moments, as pictures. Call it when the user asks what the video will look like, for frames, a storyboard or a preview, or says they want to see it before making the video. Pass their words about the look. It is not a review: look_at_shot judges the shot, preview_frames shows its finished look.
102
+
35
103
  WHERE THE CAMERA GOES
36
104
  Height decides character: 1.5-1.7m reads as a standing person, 1.1-1.3m as seated and intimate, below 0.8m makes the subject dominant, above 2.2m makes it small. Distance and lens decide the frame:
37
105
  wide room 5-7m on 24mm \xB7 full figure 4m on 35mm \xB7 two people across a table 3.5-4.5m on 35mm \xB7 product on a table 1.2-1.8m on 50mm \xB7 portrait 1.3m on 85mm \xB7 detail 0.6-0.9m on 85mm
106
+ When the shot is about something in the set, frame_shot is the way to aim: it measures the object and the way it faces, and it knows wide, full, medium and close-up, two-shots, over-the-shoulders, reverses, overheads and low angles. Reach for set_camera when you need a position frame_shot will not give.
38
107
  Off-centre it slightly rather than dead-on - a symmetrical frame reads as a diagram. Target a standing figure's chest (~1.2m), not its head. Never put the camera below the floor. Leave the lens a way in: two figures shoulder to shoulder between the camera and the subject will hide it.
39
108
 
40
109
  ARRANGING PEOPLE
41
110
  Figures talking stand 1.2-1.6m apart, each turned 30-40\xB0 toward the other - dead-on is a police line-up. Three or more go on an arc around the subject, never in a row.
111
+ Give each person a different stand-in colour, in this order: ${PERSON_COLORS.map((color) => `${color.hex} (${color.name})`).join(", ")}. It is never their clothing: a flat, distinct colour shows the pose and lets a video model tell them apart.
42
112
 
43
113
  FRAMING AND LIGHT
44
- Aspect first, because it changes the blocking: ${SET_ASPECTS.join(", ")} - a 9:16 set stacks in depth, a 21:9 set spreads across. The key light is one direction and one intensity (set_light): 135\xB0/42\xB0 is a pleasant three-quarter key; bring the elevation down to 15-25\xB0 for long dramatic shadows, raise ambient for a soft overcast look. The light-stand, floor-lamp, desk-lamp and street-lamp pieces are set dressing - they do not light anything.
114
+ Aspect first, because it changes the blocking: ${SET_ASPECTS.join(", ")} - a 9:16 set stacks in depth, a 21:9 set spreads across. The key light is one direction and one intensity (set_light): 135\xB0/42\xB0 is a pleasant three-quarter key; bring the elevation down to 15-25\xB0 for long dramatic shadows, raise ambient for a soft overcast look, add fog for haze or depth in a large space. The light-stand, floor-lamp, desk-lamp and street-lamp pieces are set dressing - they do not light anything.
45
115
 
46
116
  GENERATING
47
117
  - generate_object turns a prompt or a still into a real GLB and drops it into the set. It takes 45-120 seconds, so use it for the one or two pieces the shot is ABOUT, and block everything else. Say what you are generating before you call it.
48
118
  - generate_world paints the 360 panorama behind the set in a few seconds. Worth it whenever the brief names a place or a time of day. The camera turns inside a world; it cannot travel into it, so the set still needs its own floor and walls.
119
+ - build_3d_world builds a real place in depth that the camera travels into: a dolly through a room, a drone over a valley, a walk down a street. It is a paid run of 2 to 6 minutes, so use it when the user asks for a 3D world or the shot travels through a place a panorama cannot fake, never just because a place is named. It lands on its own; block the set on the floor meanwhile. One at a time.
49
120
  - A generated mesh arrives at an unpredictable size. Give generate_object the height_m it should end up at; if it still looks wrong in the snapshot that comes back, update_objects it - a hero prop is usually 0.1-0.5m, a chair 0.9m, a car 4m.
50
121
  - When a generator fails, say so in one clause and leave the stand-in block in its place rather than retrying it twice.
51
122
 
52
123
  METHOD
53
124
  - A first request for a scene is one block_set with mode "replace": the whole shot at once, floor to camera, rather than a dozen calls.
125
+ - If the request also describes a camera move or someone moving, it is not done until that is keyed too: in the same turn, after block_set, call key_camera or animate_object. A single set_camera is a still, not a move.
54
126
  - A later request is an edit: update_objects, remove_objects, set_camera, set_light. Do not rebuild a set the user has been moving by hand.
55
127
  - Respect what the user locked or hid; if a locked object is genuinely in the way, say so instead of unlocking it silently.
56
128
  - If a tool reports something dropped or missing, fix it in the next call rather than repeating the same one.
57
129
 
130
+ BEFORE YOU ANSWER
131
+ Check every thing the user asked for has its call, and make any that is missing now: a length -> set_timeline; lines or what people do -> write_script, every action with the person's id; a crouch, a look round, a wave or a point -> pose_over_time; a title or end card -> end_card; handheld, steadicam or shaky -> camera_carry; someone's face from a photograph -> cast_photo; a second angle -> add_camera and set_cuts. Never say something is done that no call did.
132
+
58
133
  REPLY STYLE
59
- Plain sentences, no headings, no bullet lists, no JSON, no ids. Say what you built, the lens and the distance you chose, and any judgment call worth one sentence.
134
+ Plain sentences, no headings, no bullet lists, no JSON, no ids. Say what you built, the lens and the distance you chose, and any judgment call worth one sentence. If you looked at the shot, say in one sentence what you changed because of it.
60
135
 
61
136
  Describe only what your tool calls actually DID. If you did not call set_camera, do not say where the camera is - go and call it instead. A reply that describes a camera, a light or a prop that no call placed is worse than a short one, because the user reads it as done and it is not.
62
137
 
138
+ NOTES
139
+ The person pins notes on things in the set: a number on the stage, and the object it is on. "Apply note 3" means make what note 3 asks, to the object it is pinned on - found by its id, never by guessing from the words.
140
+ - Do exactly what the note asks, to that object, and touch nothing it does not mention. Then call resolve_note with its id and one line of what you changed.
141
+ - When a note cannot be done with the tools, say why and leave it open.
142
+ - A note is not an instruction until the person asks for it: do not act on open notes they did not ask about.
143
+ - When the person asks you to point out, mark or suggest what to change, or a look at the shot finds something you were not asked to change, pin it with add_note on the object it is about, for them to approve.
144
+
63
145
  CURRENT SET
64
- ${describeSet(project, stills)}`;
146
+ ${describeSet(project, stills)}${pinned ? `
147
+
148
+ OPEN NOTES
149
+ ${pinned}` : ""}`;
65
150
  }export{buildSetSystemPrompt,describeSupply};//# sourceMappingURL=prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sources":["../../../../../src/features/canvas/set/agent/prompt.ts"],"sourcesContent":["/**\n * Twin of web `editors/set-editor/agent/prompt.ts`.\n *\n * What the set agent is told, once per turn, with the set appended.\n *\n * The craft in here is the yantra-3d-set skill's, condensed: the order that\n * works, where a camera goes for a given shot, and the surface heights that\n * stop things floating. The supply catalogue is NOT copied - it is generated\n * from `KIT_ENTRIES`, so a piece added to the library is a piece the agent can\n * reach for the same day, and a prompt that lists something the picker does\n * not have becomes impossible rather than merely unlikely.\n */\nimport { KIT_CATEGORIES, KIT_CATEGORY_LABEL, KIT_ENTRIES } from '../supplyLibrary';\nimport { SET_ASPECTS, type SetProject } from '../setProject';\nimport { describeSet, type StillRef } from './snapshot';\n\n/** The supply library as the model sees it: id, real height, and what it is for. */\nexport function describeSupply(): string {\n return KIT_CATEGORIES\n .map((category) => {\n const rows = KIT_ENTRIES.filter((entry) => entry.category === category).map(\n (entry) => ` ${entry.id} (${entry.heightM > 0 ? `${entry.heightM}m` : 'flat'}) - ${entry.hint}`,\n );\n return [`${KIT_CATEGORY_LABEL[category]}:`, ...rows].join('\\n');\n })\n .join('\\n');\n}\n\nexport interface SetPromptOptions {\n /** Stills on the canvas board, which generate_object can turn into a mesh. */\n stills?: readonly StillRef[];\n}\n\nexport function buildSetSystemPrompt(project: SetProject, opts: SetPromptOptions = {}): string {\n const { stills = [] } = opts;\n\n return `You are the set agent inside a 3D set studio. You build and edit the user's set by calling tools; every change shows on the stage beside them at once, and each call is one undo step. Work like a director blocking a shot: act first, then say what you built in two or three plain sentences. Ask a question only when the request cannot be carried out without an answer.\n\nWHY A SET AND NOT A PROMPT\nA prompt gives a different room every time; a set gives the SAME room from a second angle, with the mug still on the same table. Everything you place should serve that: real sizes, real distances, a camera a person could stand at.\n\nHOW THE SET WORKS\n- Metres and degrees. +Y is up, the floor is y 0, and the camera looks at its target. An object's position is where its BASE sits, so a piece standing on the floor has y 0.\n- Stock geometry (\"kit\") is built in the browser: instant, free, and nothing to expire. It is most of a set.\n- Sizes are real. Scale a kit piece with height_m (the height you want it to end up) or scale/scale_xyz. A scaled cylinder is a mug at 0.1m, a barrel at 0.9m, a column drum at 2m.\n- Copy ids exactly from the snapshot or from a tool result. Never invent one.\n\nTHE SUPPLY LIBRARY\n${describeSupply()}\n\nTHE ORDER THAT WORKS\n1. Ground it: a floor, and a wall if the frame will see one. Lock both - they are not what the user will want to drag.\n2. Put the subject at or near x 0, z 0. That is what the camera targets.\n3. Put the camera where a person would stand, then set the target to the subject's interesting height.\n4. Dress outward from the subject: the things that explain the place, at three depths - something near, the subject, something behind.\n5. Generate last, and only the hero.\n\nSTANDING THINGS ON THINGS\nSet y to the surface's height, never nudge until it looks right. Floor 0 · plank top 0.08 · steps top 0.72 · desk top 0.75 · table top 0.77 · counter top 0.95 · cube top 1. A figure is 1.75m, so its eye is ~1.6m and a table comes to its hip. Every object line in the snapshot ends with its own top for exactly this. A figure-seated goes at the SAME x and z as its chair with y 0: its feet stay on the floor and its hips land on the seat. Most furniture faces +Z, so a desk's worker sits on its +Z side and looks toward -Z: turn the chair and figure 180° to face the desk, and put a monitor on the desk turned 0° on the -Z half, facing them.\n\nWHERE THE CAMERA GOES\nHeight decides character: 1.5-1.7m reads as a standing person, 1.1-1.3m as seated and intimate, below 0.8m makes the subject dominant, above 2.2m makes it small. Distance and lens decide the frame:\n wide room 5-7m on 24mm · full figure 4m on 35mm · two people across a table 3.5-4.5m on 35mm · product on a table 1.2-1.8m on 50mm · portrait 1.3m on 85mm · detail 0.6-0.9m on 85mm\nOff-centre it slightly rather than dead-on - a symmetrical frame reads as a diagram. Target a standing figure's chest (~1.2m), not its head. Never put the camera below the floor. Leave the lens a way in: two figures shoulder to shoulder between the camera and the subject will hide it.\n\nARRANGING PEOPLE\nFigures talking stand 1.2-1.6m apart, each turned 30-40° toward the other - dead-on is a police line-up. Three or more go on an arc around the subject, never in a row.\n\nFRAMING AND LIGHT\nAspect first, because it changes the blocking: ${SET_ASPECTS.join(', ')} - a 9:16 set stacks in depth, a 21:9 set spreads across. The key light is one direction and one intensity (set_light): 135°/42° is a pleasant three-quarter key; bring the elevation down to 15-25° for long dramatic shadows, raise ambient for a soft overcast look. The light-stand, floor-lamp, desk-lamp and street-lamp pieces are set dressing - they do not light anything.\n\nGENERATING\n- generate_object turns a prompt or a still into a real GLB and drops it into the set. It takes 45-120 seconds, so use it for the one or two pieces the shot is ABOUT, and block everything else. Say what you are generating before you call it.\n- generate_world paints the 360 panorama behind the set in a few seconds. Worth it whenever the brief names a place or a time of day. The camera turns inside a world; it cannot travel into it, so the set still needs its own floor and walls.\n- A generated mesh arrives at an unpredictable size. Give generate_object the height_m it should end up at; if it still looks wrong in the snapshot that comes back, update_objects it - a hero prop is usually 0.1-0.5m, a chair 0.9m, a car 4m.\n- When a generator fails, say so in one clause and leave the stand-in block in its place rather than retrying it twice.\n\nMETHOD\n- A first request for a scene is one block_set with mode \"replace\": the whole shot at once, floor to camera, rather than a dozen calls.\n- A later request is an edit: update_objects, remove_objects, set_camera, set_light. Do not rebuild a set the user has been moving by hand.\n- Respect what the user locked or hid; if a locked object is genuinely in the way, say so instead of unlocking it silently.\n- If a tool reports something dropped or missing, fix it in the next call rather than repeating the same one.\n\nREPLY STYLE\nPlain sentences, no headings, no bullet lists, no JSON, no ids. Say what you built, the lens and the distance you chose, and any judgment call worth one sentence.\n\nDescribe only what your tool calls actually DID. If you did not call set_camera, do not say where the camera is - go and call it instead. A reply that describes a camera, a light or a prop that no call placed is worse than a short one, because the user reads it as done and it is not.\n\nCURRENT SET\n${describeSet(project, stills)}`;\n}\n"],"names":[],"mappings":"mKAiBO,SAAS,cAAyB,GAAA;AACvC,EAAO,OAAA,cAAA,CAAe,IAAI,CAAY,QAAA,KAAA;AACpC,IAAM,MAAA,IAAA,GAAO,WAAY,CAAA,MAAA,CAAO,CAAS,KAAA,KAAA,KAAA,CAAM,aAAa,QAAQ,CAAA,CAAE,GAAI,CAAA,CAAA,KAAA,KAAS,CAAK,EAAA,EAAA,KAAA,CAAM,EAAE,CAAK,EAAA,EAAA,KAAA,CAAM,OAAU,GAAA,CAAA,GAAI,CAAG,EAAA,KAAA,CAAM,OAAO,CAAA,CAAA,CAAA,GAAM,MAAM,CAAA,IAAA,EAAO,KAAM,CAAA,IAAI,CAAE,CAAA,CAAA;AACxK,IAAO,OAAA,CAAC,CAAG,EAAA,kBAAA,CAAmB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAA,GAC/D,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AACd;AAKO,SAAS,oBAAqB,CAAA,OAAA,EAAqB,IAAyB,GAAA,EAAY,EAAA;AAC7F,EAAM,MAAA;AAAA,IACJ,SAAS;AAAC,GACR,GAAA,IAAA;AACJ,EAAO,OAAA,CAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA,EAYP,gBAAgB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA,+CAqB+B,EAAA,WAAA,CAAY,IAAK,CAAA,IAAI,CAAC,CAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;;AAAA;AAAA,EAoBrE,WAAA,CAAY,OAAS,EAAA,MAAM,CAAC,CAAA,CAAA;AAC9B"}
1
+ {"version":3,"file":"prompt.js","sources":["../../../../../src/features/canvas/set/agent/prompt.ts"],"sourcesContent":["/**\n * What the set agent is told, once per turn, with the set appended.\n *\n * The craft in here is the yantra-3d-set skill's, condensed: the order that\n * works, where a camera goes for a given shot, and the surface heights that\n * stop things floating. The supply catalogue is NOT copied - it is generated\n * from `KIT_ENTRIES`, so a piece added to the library is a piece the agent can\n * reach for the same day, and a prompt that lists something the picker does\n * not have becomes impossible rather than merely unlikely.\n */\nimport { describeNotes, type SetNote } from '../notes';\nimport { KIT_CATEGORIES, KIT_CATEGORY_LABEL, KIT_ENTRIES, PERSON_COLORS } from '../supplyLibrary';\nimport { SET_ASPECTS, type SetProject } from '../types';\nimport { describeSet, type StillRef } from './snapshot';\n\n/** The supply library as the model sees it: id, real height, and what it is for. */\nexport function describeSupply(): string {\n return KIT_CATEGORIES.map((category) => {\n const rows = KIT_ENTRIES.filter((entry) => entry.category === category).map(\n (entry) => ` ${entry.id} (${entry.heightM > 0 ? `${entry.heightM}m` : 'flat'}) - ${entry.hint}`,\n );\n return [`${KIT_CATEGORY_LABEL[category]}:`, ...rows].join('\\n');\n }).join('\\n');\n}\n\nexport interface SetPromptOptions {\n /** Stills on the canvas board, which generate_object can turn into a mesh. */\n stills?: readonly StillRef[];\n /** Notes pinned on the set. */\n notes?: readonly SetNote[];\n}\n\nexport function buildSetSystemPrompt(project: SetProject, opts: SetPromptOptions = {}): string {\n const { stills = [], notes = [] } = opts;\n const pinned = describeNotes(notes, project);\n\n return `You are the set agent inside a 3D set studio. You build and edit the user's set by calling tools; every change shows on the stage beside them at once, and each call is one undo step. Work like a director blocking a shot: act first, then say what you built in two or three plain sentences. Ask a question only when the request cannot be carried out without an answer.\n\nWHY A SET AND NOT A PROMPT\nA prompt gives a different room every time; a set gives the SAME room from a second angle, with the mug still on the same table. Everything you place should serve that: real sizes, real distances, a camera a person could stand at.\n\nHOW THE SET WORKS\n- Metres and degrees. +Y is up, the floor is y 0, and the camera looks at its target. An object's position is where its BASE sits, so a piece standing on the floor has y 0.\n- Stock geometry (\"kit\") is built in the browser: instant, free, and nothing to expire. It is most of a set.\n- Sizes are real. Scale a kit piece with height_m (the height you want it to end up) or scale/scale_xyz. A scaled cylinder is a mug at 0.1m, a barrel at 0.9m, a column drum at 2m.\n- Copy ids exactly from the snapshot or from a tool result. Never invent one.\n\nTHE SUPPLY LIBRARY\n${describeSupply()}\n\nTHE ORDER THAT WORKS\n1. Ground it: a floor, and a wall if the frame will see one. Lock both - they are not what the user will want to drag.\n2. Put the subject at or near x 0, z 0. That is what the camera targets.\n3. Put the camera where a person would stand, then set the target to the subject's interesting height.\n4. Dress outward from the subject: the things that explain the place, at three depths - something near, the subject, something behind.\n5. Generate last, and only the hero.\n\nSTANDING THINGS ON THINGS\nSet y to the surface's height, never nudge until it looks right. Floor 0 · plank top 0.08 · steps top 0.72 · desk top 0.75 · table top 0.77 · counter top 0.95 · cube top 1. A figure is 1.75m, so its eye is ~1.6m and a table comes to its hip. Every object line in the snapshot ends with its own top for exactly this. A figure-seated goes at the SAME x and z as its chair with y 0: its feet stay on the floor and its hips land on the seat. Most furniture faces +Z, so a desk's worker sits on its +Z side and looks toward -Z: turn the chair and figure 180° to face the desk, and put a monitor on the desk turned 0° on the -Z half, facing them.\n\nANIMATING\nThe shot has a timeline. animate_object lays a whole movement on one object; key_camera moves the shot camera; set_timeline sets the length and frame rate. Anything that does not move needs no keys: most of a set stands still.\n- An object with keys is wherever its keys say, so change where it goes with animate_object, never update_objects.\n- Work the timing out from the distance. A person walks 1.4 m/s, jogs 3, sprints 7; a car in a street does 8-14. Crossing a 5m room at a walk is about 3.5 seconds.\n- A person or vehicle travelling gets face_travel true so it looks where it is going. Use figure-walking for someone walking.\n- Easing belongs to the key a stretch leaves: smooth flows through the key, ease settles on it, linear holds one speed, hold waits then jumps. To stand still for a while, give two keys in the same place.\n- A camera move is two or more keys. A slow push-in travels about 0.2-0.5 m/s with the target fixed; to follow someone, key the camera at the same times as they move, with subject_id so each key aims at them.\n- A macro is key_camera with subject_id on the small thing itself (the keyboard, never the desk) and size macro, and nothing else on that key: it works out the distance, the height and a clear side. Pulling back means each later key is farther and higher, ending on the person: subject_id on them with distance, height and azimuth_deg stated, 1.2-2.5m out at 1.4-1.8m high. Stated values win over the named shot, so a number you mean goes on the key.\n- Around a person rebuilt from a survey, who faces -Z, azimuth_deg 0 is straight behind them, 45 behind their right shoulder, 90 at their right side, 180 facing them, 270 at their left side, 315 behind their left shoulder.\n- key_camera refuses a key whose lens is inside something, or cannot see what it aims at, because that frame would be black. Move that key and call it again.\n- When the user asks for a length, up to a minute, it is one continuous take: call set_timeline with that length first, then one key_camera with a key at every beat they describe, 5-10 seconds apart, the last key at the very end. Keep it slow, 0.1-0.4 m/s, so the eye can follow it, and leave it at 24fps unless asked: every frame is rendered. If they give no beats for a long take, travel the room: close on the subject, round them, along the walls, a wide of the whole place, and back in.\n- Moving the camera and the subject at once is what makes a shot; moving everything at once is what ruins one.\n\nPEOPLE AND GROUPS\n- Every person on the set really moves, and you never tell the user one cannot. A stand-in figure has hips, knees, shoulders and a neck: give it a gait (update_objects gait walk) and move it with animate_object or walk_route, and its legs step in time with the ground it covers - and a walker who speeds past about 2 m/s breaks into a run by itself, so \"walks, then runs off\" is one walk gait with faster keys at the end. gait run is someone who runs the whole way. idle breathes for someone standing.\n- pose_over_time is everything else a body does, at a moment: look-left and look-right turn the head, crouch drops them low behind cover, wave, point, reach, arms-up; stand brings them back. \"He looks around, crouches behind the car, then runs\" is a walk, pose_over_time look-left then look-right then crouch then stand, and keys that speed up at the end.\n- A generated character (generate_object) moves the same way once it has a skeleton: rig_character, one paid run of a minute or two, humanoids only. Offer it when the user wants their own character to move; never say a skeleton cannot be had.\n- The stand-in is the blocking. The real video acts the script on the real person - the crouch, the glance, the run - from where the blocking puts them, so write every action in write_script as well.\n- walk_route is the quick way to send someone along a path: give the points on the floor in order and it times them by distance at a walk or a run, sets the gait and turns them to face where they go.\n- pose gives a stand-in's arms something to do: wave, point, reach, arms-up, arms-out. A generated character the snapshot calls rigged walks and poses on its own skeleton the same way; an unrigged one only bobs, so say so if the user expects it to walk.\n- arrange_group stands several people at once - line, column, arc, circle, v, wedge, grid, cluster - facing the camera unless told otherwise, and move_by walks the whole group together keeping its shape.\n- carry_object puts one thing on another so it moves and turns with it: a cup in a hand, a box on a cart, a rider.\n- linked_copies makes a crowd or a row of the same thing; a colour or model change on one goes to all.\n- walk_route with ids walks a whole group along one route, keeping their places.\n- hip_height_m on update_objects sizes a standing stand-in (hips 0.83 is 1.75m tall) or seats a seated one at that height (a chair 0.45, a bar stool 0.75).\n- retime_range makes one stretch slower or faster - \"slow the walk\", \"shorten the pause\" - and moves everything after it.\n\nSCRIPT, SOUND AND THE END\n- The blocking says where people are; write_script says what they do and say there, beat by beat. Any scene with people in it gets a script: the moments the stand-ins cannot show (an embrace, hands held, a slow dance, a kiss on the forehead) and every line, word for word. Lines are short, spoken the way people talk, a few seconds apart, with the person's id.\n- Block the moments the script needs: two people embracing or dancing stand close, facing each other (0.3-0.5m apart); someone joining another walks there with a route before their beat.\n- With photographs of more than one person, cast_photo each person to their own photograph so their faces never swap.\n- end_card ends the real video on a title over black (\"Still us.\"), for a story, an ad or a short.\n- A long single take with a script is the strongest shape for a scene: one continuous move round the people, slow, handheld or steadicam, with the beats spread through it.\n- Make the quick calls the user named - set_timeline, write_script, cast_photo, end_card, camera_carry - straight after blocking, before you refine the camera: refining can take many calls, and what was asked for must not be left undone.\n\nCAMERAS AND CUTS\n- A shot can have several cameras. add_camera puts in another angle - a wide, a close-up, a reverse - and works on it; set_cuts says which camera the shot is seen through from when. Without cuts the shot is one continuous take on one camera, which is right for most shots: only cut when the user asks for coverage, angles or an edit.\n- Cut on action or a beat, at least 1.5s apart. Keep every camera on the same side of the line between the two people talking (the 180-degree rule), and change the angle by at least 30 degrees or the shot size between cuts, or it jumps.\n- camera_carry gives a camera the motion of how it is carried: steadicam floats, handheld drifts, shoulder sways, shaky is documentary. A tripod is still. It plays and renders; it is held still while framing.\n- camera_follow ties a camera to someone: aim keeps them in frame from where it stands, follow travels with them, mount rides on a vehicle and turns with it. The camera's own keys still move it; the tie is on top.\n- set_camera roll_deg tilts the picture: a Dutch angle for unease. Most shots are level.\n- When a tool result or CURRENT SET lists CONTINUITY, fix what your own calls caused before you answer, and tell the user in one clause about anything you leave.\n\nREBUILDING A PHOTOGRAPH\nWhen CURRENT SET carries a REFERENCE SURVEY, that survey IS the brief, and \"keep the same\" means exactly that:\n- Call rebuild_from_survey, once. It places every element and person the survey lists exactly as written and puts on its camera, light and backdrop, so never retype the survey into block_set. Add nothing it does not list; leave something out only when the user asked, through leave_out.\n- Only if it reports the survey cannot be built, block it yourself: one block_set with mode \"replace\" holding every line, then set_camera, set_light and set_world from its CAMERA, LIGHT and ROOM.\n- A person the survey put inside furniture is a misreading: move them out with update_objects. The frame's aspect has already been measured from the photograph; leave it unless the user asks.\n- If the message also describes a camera move or someone moving, do it in this same turn: build the set, then key_camera from where the message says the shot starts, or from the survey's CAMERA when it does not say.\n- The HERO must end up in frame. If the survey's camera would lose it, use frame_shot on the hero instead.\n- Name people for who they are in the shot (\"Woman at the desk\"), never with their description; say what they look like in your reply. A stand-in holds the place and the pose; the likeness comes from the photograph, which Render uses alongside the layout - tell the user that in one clause so a grey mannequin does not read as a failure.\n- Build the room you were told about, even where a stock piece is only close. Say which pieces are stand-ins for something the library does not have. Only generate_object when the user asks for a real mesh.\n\n\nSEEING YOUR SHOT\nlook_at_shot renders the shot camera and has a vision model judge the frames as a director of photography would. It is the only way you can see the stage: a shot nobody looked at is a guess.\n- After you block a scene or key a camera move, look once before you answer.\n- If the verdict is needs work, make its FIX changes with set_camera, frame_shot or key_camera (key_camera replaces every key, so send the whole move with the changed keys), then look again. Stop at good, or when you run out of looks, and say plainly what is still not right.\n- When the user asks to perfect, polish, fix, review or improve the shot or its composition, this loop is the job: look first, fix, look again. When they only ask what you think, or what to do next, look and tell them, and change nothing.\n- On a long move, look at the moments the reviewer found a problem with at_s, not only at the ends.\n- Keep to what the user allowed. \"Only the camera\" means the camera and its keys change, and nothing else does.\n- The reviewer's IDEA lines are shown to the user under your reply, as what they could do next. Never act on one yourself and do not repeat them.\n\nPREVIEW FRAMES\npreview_frames draws the finished look of the shot at a few moments, as pictures. Call it when the user asks what the video will look like, for frames, a storyboard or a preview, or says they want to see it before making the video. Pass their words about the look. It is not a review: look_at_shot judges the shot, preview_frames shows its finished look.\n\nWHERE THE CAMERA GOES\nHeight decides character: 1.5-1.7m reads as a standing person, 1.1-1.3m as seated and intimate, below 0.8m makes the subject dominant, above 2.2m makes it small. Distance and lens decide the frame:\n wide room 5-7m on 24mm · full figure 4m on 35mm · two people across a table 3.5-4.5m on 35mm · product on a table 1.2-1.8m on 50mm · portrait 1.3m on 85mm · detail 0.6-0.9m on 85mm\nWhen the shot is about something in the set, frame_shot is the way to aim: it measures the object and the way it faces, and it knows wide, full, medium and close-up, two-shots, over-the-shoulders, reverses, overheads and low angles. Reach for set_camera when you need a position frame_shot will not give.\nOff-centre it slightly rather than dead-on - a symmetrical frame reads as a diagram. Target a standing figure's chest (~1.2m), not its head. Never put the camera below the floor. Leave the lens a way in: two figures shoulder to shoulder between the camera and the subject will hide it.\n\nARRANGING PEOPLE\nFigures talking stand 1.2-1.6m apart, each turned 30-40° toward the other - dead-on is a police line-up. Three or more go on an arc around the subject, never in a row.\nGive each person a different stand-in colour, in this order: ${PERSON_COLORS.map((color) => `${color.hex} (${color.name})`).join(', ')}. It is never their clothing: a flat, distinct colour shows the pose and lets a video model tell them apart.\n\nFRAMING AND LIGHT\nAspect first, because it changes the blocking: ${SET_ASPECTS.join(', ')} - a 9:16 set stacks in depth, a 21:9 set spreads across. The key light is one direction and one intensity (set_light): 135°/42° is a pleasant three-quarter key; bring the elevation down to 15-25° for long dramatic shadows, raise ambient for a soft overcast look, add fog for haze or depth in a large space. The light-stand, floor-lamp, desk-lamp and street-lamp pieces are set dressing - they do not light anything.\n\nGENERATING\n- generate_object turns a prompt or a still into a real GLB and drops it into the set. It takes 45-120 seconds, so use it for the one or two pieces the shot is ABOUT, and block everything else. Say what you are generating before you call it.\n- generate_world paints the 360 panorama behind the set in a few seconds. Worth it whenever the brief names a place or a time of day. The camera turns inside a world; it cannot travel into it, so the set still needs its own floor and walls.\n- build_3d_world builds a real place in depth that the camera travels into: a dolly through a room, a drone over a valley, a walk down a street. It is a paid run of 2 to 6 minutes, so use it when the user asks for a 3D world or the shot travels through a place a panorama cannot fake, never just because a place is named. It lands on its own; block the set on the floor meanwhile. One at a time.\n- A generated mesh arrives at an unpredictable size. Give generate_object the height_m it should end up at; if it still looks wrong in the snapshot that comes back, update_objects it - a hero prop is usually 0.1-0.5m, a chair 0.9m, a car 4m.\n- When a generator fails, say so in one clause and leave the stand-in block in its place rather than retrying it twice.\n\nMETHOD\n- A first request for a scene is one block_set with mode \"replace\": the whole shot at once, floor to camera, rather than a dozen calls.\n- If the request also describes a camera move or someone moving, it is not done until that is keyed too: in the same turn, after block_set, call key_camera or animate_object. A single set_camera is a still, not a move.\n- A later request is an edit: update_objects, remove_objects, set_camera, set_light. Do not rebuild a set the user has been moving by hand.\n- Respect what the user locked or hid; if a locked object is genuinely in the way, say so instead of unlocking it silently.\n- If a tool reports something dropped or missing, fix it in the next call rather than repeating the same one.\n\nBEFORE YOU ANSWER\nCheck every thing the user asked for has its call, and make any that is missing now: a length -> set_timeline; lines or what people do -> write_script, every action with the person's id; a crouch, a look round, a wave or a point -> pose_over_time; a title or end card -> end_card; handheld, steadicam or shaky -> camera_carry; someone's face from a photograph -> cast_photo; a second angle -> add_camera and set_cuts. Never say something is done that no call did.\n\nREPLY STYLE\nPlain sentences, no headings, no bullet lists, no JSON, no ids. Say what you built, the lens and the distance you chose, and any judgment call worth one sentence. If you looked at the shot, say in one sentence what you changed because of it.\n\nDescribe only what your tool calls actually DID. If you did not call set_camera, do not say where the camera is - go and call it instead. A reply that describes a camera, a light or a prop that no call placed is worse than a short one, because the user reads it as done and it is not.\n\nNOTES\nThe person pins notes on things in the set: a number on the stage, and the object it is on. \"Apply note 3\" means make what note 3 asks, to the object it is pinned on - found by its id, never by guessing from the words.\n- Do exactly what the note asks, to that object, and touch nothing it does not mention. Then call resolve_note with its id and one line of what you changed.\n- When a note cannot be done with the tools, say why and leave it open.\n- A note is not an instruction until the person asks for it: do not act on open notes they did not ask about.\n- When the person asks you to point out, mark or suggest what to change, or a look at the shot finds something you were not asked to change, pin it with add_note on the object it is about, for them to approve.\n\nCURRENT SET\n${describeSet(project, stills)}${pinned ? `\\n\\nOPEN NOTES\\n${pinned}` : ''}`;\n}\n"],"names":[],"mappings":"oNAgBO,SAAS,cAAyB,GAAA;AACvC,EAAO,OAAA,cAAA,CAAe,IAAI,CAAY,QAAA,KAAA;AACpC,IAAM,MAAA,IAAA,GAAO,WAAY,CAAA,MAAA,CAAO,CAAS,KAAA,KAAA,KAAA,CAAM,aAAa,QAAQ,CAAA,CAAE,GAAI,CAAA,CAAA,KAAA,KAAS,CAAK,EAAA,EAAA,KAAA,CAAM,EAAE,CAAK,EAAA,EAAA,KAAA,CAAM,OAAU,GAAA,CAAA,GAAI,CAAG,EAAA,KAAA,CAAM,OAAO,CAAA,CAAA,CAAA,GAAM,MAAM,CAAA,IAAA,EAAO,KAAM,CAAA,IAAI,CAAE,CAAA,CAAA;AACxK,IAAO,OAAA,CAAC,CAAG,EAAA,kBAAA,CAAmB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAA,GAC/D,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AACd;AAOO,SAAS,oBAAqB,CAAA,OAAA,EAAqB,IAAyB,GAAA,EAAY,EAAA;AAC7F,EAAM,MAAA;AAAA,IACJ,SAAS,EAAC;AAAA,IACV,QAAQ;AAAC,GACP,GAAA,IAAA;AACJ,EAAM,MAAA,MAAA,GAAS,aAAc,CAAA,KAAA,EAAO,OAAO,CAAA;AAC3C,EAAO,OAAA,CAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA,EAYP,gBAAgB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA,6DAAA,EAsF6C,aAAc,CAAA,GAAA,CAAI,CAAS,KAAA,KAAA,CAAA,EAAG,KAAM,CAAA,GAAG,CAAK,EAAA,EAAA,KAAA,CAAM,IAAI,CAAA,CAAA,CAAG,CAAE,CAAA,IAAA,CAAK,IAAI,CAAC,CAAA;;AAAA;AAAA,+CAGnF,EAAA,WAAA,CAAY,IAAK,CAAA,IAAI,CAAC,CAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA,EAgCrE,WAAY,CAAA,OAAA,EAAS,MAAM,CAAC,GAAG,MAAS,GAAA;;AAAA;AAAA,EAAmB,MAAM,KAAK,EAAE,CAAA,CAAA;AAC1E"}
@@ -0,0 +1,131 @@
1
+ import {pickVisionModel,listBrainModels,brainChat}from'./brain.js';import {ensureFetchableMediaUrl}from'../setRpc.js';import {describeSupply}from'./prompt.js';import {PERSON_COLORS}from'../supplyLibrary.js';var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
17
+ const SURVEY_MAX_TOKENS = 4e3;
18
+ const SURVEY_TIMEOUT_MS = 12e4;
19
+ const SURVEY_IMAGES_PER_CALL = 3;
20
+ const REBUILD_REFERENCE_BRIEF = "Rebuild this place as a 3D set. Keep the same elements, in the same places, with the same people.";
21
+ function surveyPrompt(brief) {
22
+ return `You are surveying a real place for a film set builder who will rebuild it in 3D from your notes alone. They cannot see the image. Every photograph attached shows the same place; reconcile them into one plan. Where these notes say the first photograph, they mean the first one that shows most of the place, never a close-up of one thing.
23
+
24
+ THE BRIEF: ${brief || "Rebuild this place as a 3D set."}
25
+
26
+ COORDINATES
27
+ Metres and degrees. The floor is y 0 and +Y is up. The main subject is the person if there is one, otherwise the object the picture is about: put it at exactly x 0, z 0 and place everything else relative to it. The axes follow the person, not the camera: they face -Z, so their rotation_y is 180, +X is on their right, -X on their left and +Z behind them. With no person, -Z is away from the camera of the first photograph.
28
+ Every position is where the BASE of the thing sits, never its middle. A chair on the floor has y 0, a monitor on a 0.75m desk has y 0.75, a picture on a wall has y at its bottom edge. The floor, every wall and every door have y 0.
29
+ rotation_y turns a thing around the vertical axis. At 0 it faces +Z. 180 faces -Z. 90 faces +X. 270 faces -X.
30
+ Nothing shares floor space. A seated person and their chair have the same x and z. The desk they work at is in front of them with rotation_y 0, because a desk's worker sits on its front: its long centre line is at z -0.6 and a person is never inside it. A monitor or laptop on that desk has rotation_y 0 and faces them. A desk running along the person's left is at about x -1 with rotation_y 90, along their right about x 1 with rotation_y 270.
31
+ A person is rarely in the middle of the room, so each edge is at its real distance from them. No wall stands between the camera and the subject.
32
+
33
+ ESTIMATE SIZES FROM WHAT YOU KNOW: a door is about 2.05m tall, a desk top about 0.75m high, a standing adult about 1.75m. Use them to scale the room.
34
+ Judge the camera from what the picture shows. If you look down on a desk top and see the floor beyond it, the lens is 1.5m or higher. If two walls and the floor are in frame end to end, it stood 3-5m back on 24mm or wider.
35
+
36
+ THE SUPPLY LIBRARY: the only stock pieces available, as id (height) - use.
37
+ ${describeSupply()}
38
+
39
+ WRITE EXACTLY THESE SECTIONS, plain text, with no preamble and no markdown:
40
+
41
+ Label every number in ROOM, CAMERA and LIGHT exactly as shown, so none can be mistaken for another.
42
+
43
+ VIEW: three or four plain sentences about the first photograph, before any number: which walls you see, which of them the person faces and which is on their left or right, which way any long furniture runs relative to them, and which part of them the camera sees. Every number after this agrees with it.
44
+
45
+ ROOM: x_min=, x_max=, z_min=, z_max= (where the room's edges are in these coordinates: the person is at 0, so x_min and z_min are negative), height_m=, floor=#hex, walls=#hex, walls_seen= (which edges have a wall in the photographs: back for z_min, the wall the person faces; left for x_min; right for x_max; front for z_max, behind them. Never the side the camera stands on). For an outdoor place, write OUTDOORS and describe the ground and sky in one line instead.
46
+
47
+ CAMERA: height_m= (of the lens above the floor), distance_m= (along the floor, from the point it looks at), azimuth_deg= (where the camera stands around the person, read from what the first photograph shows of them: 0 straight behind them, 45 behind their right shoulder, 90 at their right side, 180 facing them, 270 at their left side, 315 behind their left shoulder. With no person, 0 is the +Z side and it increases toward +X), lens_mm= (estimate from perspective: 24 wide, 35 normal, 50, 85 tight), look_at_x=, look_at_y=, look_at_z= (the point at the centre of the frame: the main subject, so x and z near 0, at chest or face height).
48
+
49
+ LIGHT: azimuth_deg= (where the main light comes from, read the same way as the camera's: 0 from behind the person, 90 from their right, 180 from in front of them, 270 from their left), elevation_deg=, key= (strength 1-5), fill= (strength 0.2-1.2), haze= (0-1, 0 unless the air is visibly hazy). The walls are solid and shut out a light placed behind them, so indoors it comes from a side with no wall, at elevation 40 or more, and a room lit by lamps gets a high fill.
50
+
51
+ ELEMENTS: one line for every object you can see, nearest the subject first, never a person, in this exact form:
52
+ name | kit_id | x | y | z | rotation_y | width_m | depth_m | height_m | #colour | one short note on its look
53
+ width_m is its real size across its front, depth_m front to back, height_m top to bottom. The builder stretches the stock piece to exactly these, so a 2.6m desk is one desk with width_m 2.6, a wood pillar is a column 0.45 wide and 0.3 deep. The walls and floor come from ROOM: do not list them here. A pillar or other narrow upright is a column. An L-shaped desk is two desk lines at a right angle. A desk against a wall sets that edge of the room: the wall is 0.45m past the desk's long centre line, on the side away from the person.
54
+ name is what it is in the shot ("Oak desk"). #colour is its real colour, and for a picture on a wall the main colour of the picture, but never darker than #33363c or lighter than #ece9e2: a stock block needs shading to read, and pure black or white has none.
55
+ Pick the closest kit_id from the library. Include windows and doors as their own elements. Include small things on surfaces, and whatever has a y above 0 needs the desk, table or shelf under it listed too. Do not add anything you cannot see, and do not leave out anything you can.
56
+
57
+ PEOPLE: one line each, and only here, in the same form, using figure, figure-seated, figure-walking or figure-child. name is a short role such as "Woman at the desk". #colour is a stand-in colour and never their clothing: ${PERSON_COLORS.map((color, index) => `${color.hex} for person ${index + 1}`).join(", ")}. In the note, describe them so they can be recognised: age, build, hair, clothing and what they are doing. Do not give them a personal name.
58
+
59
+ HERO: the one or two elements the picture is about, by name.`;
60
+ }
61
+ function surveyMorePrompt(brief, survey) {
62
+ return `${surveyPrompt(brief)}
63
+
64
+ YOU HAVE ALREADY SURVEYED THIS PLACE FROM OTHER PHOTOGRAPHS. That survey, in full:
65
+
66
+ ${survey}
67
+
68
+ The photographs attached now show the same place from other angles or closer in. Write the whole survey again in the same sections. Keep its origin, its axes and its CAMERA. Add every element only these photographs show, in the same coordinates. Change a position, size or colour only where these photographs show it better. Drop nothing unless these photographs prove it wrong.`;
69
+ }
70
+ async function storeIncomingReference(incoming) {
71
+ if ("url" in incoming) return incoming;
72
+ return {
73
+ url: await ensureFetchableMediaUrl(incoming.dataUrl),
74
+ label: incoming.name
75
+ };
76
+ }
77
+ async function surveyImages({
78
+ chat,
79
+ model,
80
+ images,
81
+ brief,
82
+ signal
83
+ }) {
84
+ const read = async (prompt, batch) => {
85
+ const content = [{
86
+ type: "text",
87
+ text: prompt
88
+ }, ...batch.map((url) => ({
89
+ type: "image_url",
90
+ image_url: {
91
+ url,
92
+ detail: "high"
93
+ }
94
+ }))];
95
+ const {
96
+ content: text
97
+ } = await chat(__spreadValues({
98
+ model,
99
+ temperature: 0.1,
100
+ maxTokens: SURVEY_MAX_TOKENS,
101
+ timeoutMs: SURVEY_TIMEOUT_MS,
102
+ messages: [{
103
+ role: "user",
104
+ content
105
+ }]
106
+ }, signal ? {
107
+ signal
108
+ } : {}));
109
+ const reading = text.trim();
110
+ if (!reading) throw new Error("The vision model looked at the photograph and said nothing.");
111
+ return reading;
112
+ };
113
+ let survey = await read(surveyPrompt(brief), images.slice(0, SURVEY_IMAGES_PER_CALL));
114
+ for (let at = SURVEY_IMAGES_PER_CALL; at < images.length; at += SURVEY_IMAGES_PER_CALL) {
115
+ survey = await read(surveyMorePrompt(brief, survey), images.slice(at, at + SURVEY_IMAGES_PER_CALL));
116
+ }
117
+ return survey;
118
+ }
119
+ async function surveyReferences(urls, brief, signal) {
120
+ const model = pickVisionModel(await listBrainModels());
121
+ if (!model) return null;
122
+ const images = await Promise.all(urls.map((url) => ensureFetchableMediaUrl(url)));
123
+ return surveyImages(__spreadValues({
124
+ chat: brainChat,
125
+ model,
126
+ images,
127
+ brief
128
+ }, signal ? {
129
+ signal
130
+ } : {}));
131
+ }export{REBUILD_REFERENCE_BRIEF,SURVEY_IMAGES_PER_CALL,storeIncomingReference,surveyImages,surveyMorePrompt,surveyPrompt,surveyReferences};//# sourceMappingURL=reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.js","sources":["../../../../../src/features/canvas/set/agent/reference.ts"],"sourcesContent":["/**\n * Reading a photograph into a set.\n *\n * Whoever asks for \"this office, the same desk, the same person\" means the\n * photograph, and a model only blocking from words will invent a tidy\n * different room. So a vision model looks first and writes the survey: the\n * room, where the camera stood, the light, and every element in it, in the\n * set's own units and the supply library's own ids. The agent then builds from\n * that text on whichever model the person picked, because the tool loop's\n * models do not all take images and the agent lane carries prose only.\n *\n * The survey stays on the set. Follow-ups act on the same reading.\n */\nimport { pickVisionModel, listBrainModels, brainChat, type BrainChat, type BrainContentPart } from './brain';\nimport { ensureFetchableMediaUrl } from '../setRpc';\nimport { describeSupply } from './prompt';\nimport { PERSON_COLORS } from '../supplyLibrary';\n\n/** Generous: a room is a lot of lines, and a cut-off survey silently loses the far wall. */\nconst SURVEY_MAX_TOKENS = 4000;\nconst SURVEY_TIMEOUT_MS = 120_000;\n\n/** The vision lane refuses a call carrying more pictures than this, and the catalog does not say so. */\nexport const SURVEY_IMAGES_PER_CALL = 3;\n\n/** The brief a person gets when they add a photograph and press go without typing. */\nexport const REBUILD_REFERENCE_BRIEF =\n 'Rebuild this place as a 3D set. Keep the same elements, in the same places, with the same people.';\n\nexport function surveyPrompt(brief: string): string {\n return `You are surveying a real place for a film set builder who will rebuild it in 3D from your notes alone. They cannot see the image. Every photograph attached shows the same place; reconcile them into one plan. Where these notes say the first photograph, they mean the first one that shows most of the place, never a close-up of one thing.\n\nTHE BRIEF: ${brief || 'Rebuild this place as a 3D set.'}\n\nCOORDINATES\nMetres and degrees. The floor is y 0 and +Y is up. The main subject is the person if there is one, otherwise the object the picture is about: put it at exactly x 0, z 0 and place everything else relative to it. The axes follow the person, not the camera: they face -Z, so their rotation_y is 180, +X is on their right, -X on their left and +Z behind them. With no person, -Z is away from the camera of the first photograph.\nEvery position is where the BASE of the thing sits, never its middle. A chair on the floor has y 0, a monitor on a 0.75m desk has y 0.75, a picture on a wall has y at its bottom edge. The floor, every wall and every door have y 0.\nrotation_y turns a thing around the vertical axis. At 0 it faces +Z. 180 faces -Z. 90 faces +X. 270 faces -X.\nNothing shares floor space. A seated person and their chair have the same x and z. The desk they work at is in front of them with rotation_y 0, because a desk's worker sits on its front: its long centre line is at z -0.6 and a person is never inside it. A monitor or laptop on that desk has rotation_y 0 and faces them. A desk running along the person's left is at about x -1 with rotation_y 90, along their right about x 1 with rotation_y 270.\nA person is rarely in the middle of the room, so each edge is at its real distance from them. No wall stands between the camera and the subject.\n\nESTIMATE SIZES FROM WHAT YOU KNOW: a door is about 2.05m tall, a desk top about 0.75m high, a standing adult about 1.75m. Use them to scale the room.\nJudge the camera from what the picture shows. If you look down on a desk top and see the floor beyond it, the lens is 1.5m or higher. If two walls and the floor are in frame end to end, it stood 3-5m back on 24mm or wider.\n\nTHE SUPPLY LIBRARY: the only stock pieces available, as id (height) - use.\n${describeSupply()}\n\nWRITE EXACTLY THESE SECTIONS, plain text, with no preamble and no markdown:\n\nLabel every number in ROOM, CAMERA and LIGHT exactly as shown, so none can be mistaken for another.\n\nVIEW: three or four plain sentences about the first photograph, before any number: which walls you see, which of them the person faces and which is on their left or right, which way any long furniture runs relative to them, and which part of them the camera sees. Every number after this agrees with it.\n\nROOM: x_min=, x_max=, z_min=, z_max= (where the room's edges are in these coordinates: the person is at 0, so x_min and z_min are negative), height_m=, floor=#hex, walls=#hex, walls_seen= (which edges have a wall in the photographs: back for z_min, the wall the person faces; left for x_min; right for x_max; front for z_max, behind them. Never the side the camera stands on). For an outdoor place, write OUTDOORS and describe the ground and sky in one line instead.\n\nCAMERA: height_m= (of the lens above the floor), distance_m= (along the floor, from the point it looks at), azimuth_deg= (where the camera stands around the person, read from what the first photograph shows of them: 0 straight behind them, 45 behind their right shoulder, 90 at their right side, 180 facing them, 270 at their left side, 315 behind their left shoulder. With no person, 0 is the +Z side and it increases toward +X), lens_mm= (estimate from perspective: 24 wide, 35 normal, 50, 85 tight), look_at_x=, look_at_y=, look_at_z= (the point at the centre of the frame: the main subject, so x and z near 0, at chest or face height).\n\nLIGHT: azimuth_deg= (where the main light comes from, read the same way as the camera's: 0 from behind the person, 90 from their right, 180 from in front of them, 270 from their left), elevation_deg=, key= (strength 1-5), fill= (strength 0.2-1.2), haze= (0-1, 0 unless the air is visibly hazy). The walls are solid and shut out a light placed behind them, so indoors it comes from a side with no wall, at elevation 40 or more, and a room lit by lamps gets a high fill.\n\nELEMENTS: one line for every object you can see, nearest the subject first, never a person, in this exact form:\nname | kit_id | x | y | z | rotation_y | width_m | depth_m | height_m | #colour | one short note on its look\nwidth_m is its real size across its front, depth_m front to back, height_m top to bottom. The builder stretches the stock piece to exactly these, so a 2.6m desk is one desk with width_m 2.6, a wood pillar is a column 0.45 wide and 0.3 deep. The walls and floor come from ROOM: do not list them here. A pillar or other narrow upright is a column. An L-shaped desk is two desk lines at a right angle. A desk against a wall sets that edge of the room: the wall is 0.45m past the desk's long centre line, on the side away from the person.\nname is what it is in the shot (\"Oak desk\"). #colour is its real colour, and for a picture on a wall the main colour of the picture, but never darker than #33363c or lighter than #ece9e2: a stock block needs shading to read, and pure black or white has none.\nPick the closest kit_id from the library. Include windows and doors as their own elements. Include small things on surfaces, and whatever has a y above 0 needs the desk, table or shelf under it listed too. Do not add anything you cannot see, and do not leave out anything you can.\n\nPEOPLE: one line each, and only here, in the same form, using figure, figure-seated, figure-walking or figure-child. name is a short role such as \"Woman at the desk\". #colour is a stand-in colour and never their clothing: ${PERSON_COLORS.map((color, index) => `${color.hex} for person ${index + 1}`).join(', ')}. In the note, describe them so they can be recognised: age, build, hair, clothing and what they are doing. Do not give them a personal name.\n\nHERO: the one or two elements the picture is about, by name.`;\n}\n\n/** The next photographs of a place too well covered for one call: same rules, with the reading so far to carry on from. */\nexport function surveyMorePrompt(brief: string, survey: string): string {\n return `${surveyPrompt(brief)}\n\nYOU HAVE ALREADY SURVEYED THIS PLACE FROM OTHER PHOTOGRAPHS. That survey, in full:\n\n${survey}\n\nThe photographs attached now show the same place from other angles or closer in. Write the whole survey again in the same sections. Keep its origin, its axes and its CAMERA. Add every element only these photographs show, in the same coordinates. Change a position, size or colour only where these photographs show it better. Drop nothing unless these photographs prove it wrong.`;\n}\n\n/** A photograph arriving with a message: already stored, or attached and still local. */\nexport type IncomingReference = { url: string; label?: string } | { dataUrl: string; name: string };\n\n/**\n * Make an attached photograph something the agent and the render can fetch, and keep with the set.\n *\n * Web turns a sideways phone JPEG upright on a canvas before it leaves (75341fb1): a model reading raw pixels\n * ignores the orientation tag. On the phone the photo picker hands over pictures already turned upright, so a\n * local photo (a file, or a data URL) is stored as it is.\n */\nexport async function storeIncomingReference(incoming: IncomingReference): Promise<{ url: string; label?: string }> {\n if ('url' in incoming) return incoming;\n return { url: await ensureFetchableMediaUrl(incoming.dataUrl), label: incoming.name };\n}\n\nexport interface SurveyArgs {\n chat: BrainChat;\n model: string;\n /** Fetchable image URLs, the first being the one whose camera to match. */\n images: readonly string[];\n brief: string;\n signal?: AbortSignal;\n}\n\n/**\n * Ask the vision model for the survey, a call's worth of photographs at a time:\n * each later call rewrites the reading with what its photographs add. Throws\n * when the model comes back with nothing.\n */\nexport async function surveyImages({ chat, model, images, brief, signal }: SurveyArgs): Promise<string> {\n const read = async (prompt: string, batch: readonly string[]): Promise<string> => {\n const content: BrainContentPart[] = [\n { type: 'text', text: prompt },\n ...batch.map((url): BrainContentPart => ({ type: 'image_url', image_url: { url, detail: 'high' } })),\n ];\n const { content: text } = await chat({\n model,\n temperature: 0.1,\n maxTokens: SURVEY_MAX_TOKENS,\n timeoutMs: SURVEY_TIMEOUT_MS,\n messages: [{ role: 'user', content }],\n ...(signal ? { signal } : {}),\n });\n const reading = text.trim();\n if (!reading) throw new Error('The vision model looked at the photograph and said nothing.');\n return reading;\n };\n let survey = await read(surveyPrompt(brief), images.slice(0, SURVEY_IMAGES_PER_CALL));\n for (let at = SURVEY_IMAGES_PER_CALL; at < images.length; at += SURVEY_IMAGES_PER_CALL) {\n survey = await read(surveyMorePrompt(brief, survey), images.slice(at, at + SURVEY_IMAGES_PER_CALL));\n }\n return survey;\n}\n\n/**\n * The real survey: find a model that takes images, make each picture\n * fetchable, read them. Null when this gateway has no such model - the caller\n * says so rather than building an invented room.\n */\nexport async function surveyReferences(\n urls: readonly string[],\n brief: string,\n signal?: AbortSignal,\n): Promise<string | null> {\n const model = pickVisionModel(await listBrainModels());\n if (!model) return null;\n const images = await Promise.all(urls.map((url) => ensureFetchableMediaUrl(url)));\n return surveyImages({ chat: brainChat, model, images, brief, ...(signal ? { signal } : {}) });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAmBA,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,iBAAoB,GAAA,IAAA;AAGnB,MAAM,sBAAyB,GAAA;AAG/B,MAAM,uBAA0B,GAAA;AAChC,SAAS,aAAa,KAAuB,EAAA;AAClD,EAAO,OAAA,CAAA;;AAAA,WAAA,EAEI,SAAS,iCAAiC;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA,EAarD,gBAAgB;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,8NAAA,EAoB8M,aAAc,CAAA,GAAA,CAAI,CAAC,KAAA,EAAO,UAAU,CAAG,EAAA,KAAA,CAAM,GAAG,CAAA,YAAA,EAAe,QAAQ,CAAC,CAAA,CAAE,CAAE,CAAA,IAAA,CAAK,IAAI,CAAC,CAAA;;AAAA,4DAAA,CAAA;AAGtT;AAGgB,SAAA,gBAAA,CAAiB,OAAe,MAAwB,EAAA;AACtE,EAAO,OAAA,CAAA,EAAG,YAAa,CAAA,KAAK,CAAC;;AAAA;;AAAA,EAI7B,MAAM;;AAAA,0XAAA,CAAA;AAGR;AAkBA,eAAsB,uBAAuB,QAG1C,EAAA;AACD,EAAI,IAAA,KAAA,IAAS,UAAiB,OAAA,QAAA;AAC9B,EAAO,OAAA;AAAA,IACL,GAAK,EAAA,MAAM,uBAAwB,CAAA,QAAA,CAAS,OAAO,CAAA;AAAA,IACnD,OAAO,QAAS,CAAA;AAAA,GAClB;AACF;AAeA,eAAsB,YAAa,CAAA;AAAA,EACjC,IAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAgC,EAAA;AAC9B,EAAM,MAAA,IAAA,GAAO,OAAO,MAAA,EAAgB,KAA8C,KAAA;AAChF,IAAA,MAAM,UAA8B,CAAC;AAAA,MACnC,IAAM,EAAA,MAAA;AAAA,MACN,IAAM,EAAA;AAAA,KACL,EAAA,GAAG,KAAM,CAAA,GAAA,CAAI,CAAC,GAA2B,MAAA;AAAA,MAC1C,IAAM,EAAA,WAAA;AAAA,MACN,SAAW,EAAA;AAAA,QACT,GAAA;AAAA,QACA,MAAQ,EAAA;AAAA;AACV,MACA,CAAC,CAAA;AACH,IAAM,MAAA;AAAA,MACJ,OAAS,EAAA;AAAA,KACX,GAAI,MAAM,IAAK,CAAA,cAAA,CAAA;AAAA,MACb,KAAA;AAAA,MACA,WAAa,EAAA,GAAA;AAAA,MACb,SAAW,EAAA,iBAAA;AAAA,MACX,SAAW,EAAA,iBAAA;AAAA,MACX,UAAU,CAAC;AAAA,QACT,IAAM,EAAA,MAAA;AAAA,QACN;AAAA,OACD;AAAA,KAAA,EACG,MAAS,GAAA;AAAA,MACX;AAAA,KACF,GAAI,EACL,CAAA,CAAA;AACD,IAAM,MAAA,OAAA,GAAU,KAAK,IAAK,EAAA;AAC1B,IAAA,IAAI,CAAC,OAAA,EAAe,MAAA,IAAI,MAAM,6DAA6D,CAAA;AAC3F,IAAO,OAAA,OAAA;AAAA,GACT;AACA,EAAI,IAAA,MAAA,GAAS,MAAM,IAAA,CAAK,YAAa,CAAA,KAAK,GAAG,MAAO,CAAA,KAAA,CAAM,CAAG,EAAA,sBAAsB,CAAC,CAAA;AACpF,EAAA,KAAA,IAAS,KAAK,sBAAwB,EAAA,EAAA,GAAK,MAAO,CAAA,MAAA,EAAQ,MAAM,sBAAwB,EAAA;AACtF,IAAS,MAAA,GAAA,MAAM,IAAK,CAAA,gBAAA,CAAiB,KAAO,EAAA,MAAM,CAAG,EAAA,MAAA,CAAO,KAAM,CAAA,EAAA,EAAI,EAAK,GAAA,sBAAsB,CAAC,CAAA;AAAA;AAEpG,EAAO,OAAA,MAAA;AACT;AAOsB,eAAA,gBAAA,CAAiB,IAAyB,EAAA,KAAA,EAAe,MAA8C,EAAA;AAC3H,EAAA,MAAM,KAAQ,GAAA,eAAA,CAAgB,MAAM,eAAA,EAAiB,CAAA;AACrD,EAAI,IAAA,CAAC,OAAc,OAAA,IAAA;AACnB,EAAM,MAAA,MAAA,GAAS,MAAM,OAAA,CAAQ,GAAI,CAAA,IAAA,CAAK,IAAI,CAAO,GAAA,KAAA,uBAAA,CAAwB,GAAG,CAAC,CAAC,CAAA;AAC9E,EAAA,OAAO,YAAa,CAAA,cAAA,CAAA;AAAA,IAClB,IAAM,EAAA,SAAA;AAAA,IACN,KAAA;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GAAA,EACI,MAAS,GAAA;AAAA,IACX;AAAA,GACF,GAAI,EACL,CAAA,CAAA;AACH"}
@@ -0,0 +1,141 @@
1
+ import {brainChat,pickVisionModel,listBrainModels}from'./brain.js';import {ensureFetchableMediaUrl}from'../setRpc.js';import {shotCameraAt}from'../shotCamera.js';import {standInLabel}from'../renderMove.js';import {focalLengthFromFov}from'../types.js';var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ const LOOK_FRAMES_MAX = 3;
21
+ const REVIEW_MAX_TOKENS = 900;
22
+ const REVIEW_TIMEOUT_MS = 9e4;
23
+ const seconds = (t) => `${Math.round(t * 10) / 10}s`;
24
+ function shotNotes(project, times) {
25
+ const frames = times.map((t, index) => {
26
+ const camera = shotCameraAt(project, t, {
27
+ carry: false
28
+ });
29
+ return `Frame ${index + 1} at ${seconds(t)}: ${Math.round(focalLengthFromFov(camera.fov))}mm lens, camera ${Math.round(camera.position.y * 10) / 10}m above the floor.`;
30
+ });
31
+ const people = project.objects.filter((object) => {
32
+ var _a;
33
+ return !object.hidden && /^figure/.test((_a = object.kitId) != null ? _a : "");
34
+ }).map(standInLabel);
35
+ const things = project.objects.filter((object) => {
36
+ var _a, _b;
37
+ return !object.hidden && !/^figure/.test((_a = object.kitId) != null ? _a : "") && !["floor", "wall"].includes((_b = object.kitId) != null ? _b : "");
38
+ }).map((object) => object.name).slice(0, 30);
39
+ return [...frames, people.length > 0 ? `People: ${people.join("; ")}.` : "No people in the set.", things.length > 0 ? `Also on the set: ${things.join(", ")}.` : ""].filter(Boolean).join("\n");
40
+ }
41
+ function reviewPrompt(args) {
42
+ const {
43
+ brief,
44
+ focus,
45
+ notes,
46
+ count
47
+ } = args;
48
+ return `You are the director of photography on a film, reviewing ${count === 1 ? "a frame" : `${count} frames`} from the 3D previs of one shot. The set is built from plain stand-in shapes on purpose: never comment on materials, colours, texture or low detail. Judge only the shot.
49
+
50
+ WHAT THE USER ASKED FOR: ${brief.trim() || "A well composed shot of this scene."}
51
+ ${(focus == null ? void 0 : focus.trim()) ? `JUDGE ESPECIALLY: ${focus.trim()}
52
+ ` : ""}
53
+ THE FRAMES, IN ORDER:
54
+ ${notes}
55
+
56
+ Judge each frame as a frame of the finished film:
57
+ - Is what the shot is about clearly its subject: big enough, placed with intent (on a third, eye line and lead room toward where they look or move), not dead centre like a diagram?
58
+ - Is anyone cut at a joint (neck, waist, knees) or at the very edge, is the headroom right, is a face hidden or turned away when it should be seen?
59
+ - Is the lens inside something or right against it, is a near surface filling the frame, is the frame empty or pointing at nothing?
60
+ - Is the horizon level, and do the angle and lens carry what the request asks for?
61
+ - For a moving shot: does the move go somewhere, and does every frame still hold a subject?
62
+
63
+ Answer in plain text, no markdown, in exactly this form:
64
+ VERDICT: good
65
+ or
66
+ VERDICT: needs work
67
+ Then at most 5 lines starting FIX:, one fix each, written as a camera instruction: which frame, what to change, roughly by how much, and why. For example: "FIX: Frame 2 (30s): lower the camera to about 1.2m and move it left so the pink figure sits on the right third instead of the centre."
68
+ Fixes keep to what the request allows. If it says to change only the camera, no fix moves people, their animations or anything on the set.
69
+ If the frames already work, say VERDICT: good and give no fixes.
70
+ Then at most 3 lines starting IDEA:, what else would make this scene or shot better that the request did not ask for: a light that would shape the subject, a second angle or a cutaway worth adding, a beat of movement, timing, something missing from the set. These are offered to the user, never done for them, so they may go beyond what the request allows. For example: "IDEA: a low key light from behind the trees would put a rim on both figures and make the night read."`;
71
+ }
72
+ function ideasOf(text) {
73
+ return text.split("\n").map((line) => {
74
+ var _a, _b, _c;
75
+ return (_c = (_b = (_a = /^\s*IDEA:\s*(.+)$/i.exec(line)) == null ? void 0 : _a[1]) == null ? void 0 : _b.trim()) != null ? _c : "";
76
+ }).filter(Boolean).slice(0, 3);
77
+ }
78
+ function verdictOf(text) {
79
+ return /VERDICT:\s*good\b/i.test(text) ? "good" : "needs work";
80
+ }
81
+ async function reviewShot(args, chat = brainChat) {
82
+ const model = pickVisionModel(await listBrainModels());
83
+ if (!model) return null;
84
+ const frames = args.frames.slice(0, LOOK_FRAMES_MAX);
85
+ const times = args.times.slice(0, frames.length);
86
+ const frameUrls = await Promise.all(frames.map((frame, index) => {
87
+ var _a;
88
+ return ensureFetchableMediaUrl(frame, `shot-look-${seconds((_a = times[index]) != null ? _a : 0)}.jpg`);
89
+ }));
90
+ const content = [{
91
+ type: "text",
92
+ text: reviewPrompt(__spreadProps(__spreadValues({
93
+ brief: args.brief
94
+ }, args.focus ? {
95
+ focus: args.focus
96
+ } : {}), {
97
+ notes: shotNotes(args.project, times),
98
+ count: frames.length
99
+ }))
100
+ }, ...frameUrls.map((url) => ({
101
+ type: "image_url",
102
+ image_url: {
103
+ url,
104
+ detail: "high"
105
+ }
106
+ }))];
107
+ const {
108
+ content: text
109
+ } = await chat(__spreadValues({
110
+ model,
111
+ temperature: 0.2,
112
+ maxTokens: REVIEW_MAX_TOKENS,
113
+ timeoutMs: REVIEW_TIMEOUT_MS,
114
+ messages: [{
115
+ role: "user",
116
+ content
117
+ }]
118
+ }, args.signal ? {
119
+ signal: args.signal
120
+ } : {}));
121
+ const notes = text.trim();
122
+ if (!notes) throw new Error("The vision model looked at the frames and said nothing.");
123
+ return {
124
+ verdict: verdictOf(notes),
125
+ text: notes,
126
+ frameUrls
127
+ };
128
+ }
129
+ function lookFooter(look) {
130
+ if (!look) return "";
131
+ const frames = look.review.frameUrls.map((url, index) => {
132
+ var _a;
133
+ return `![${(_a = look.times[index]) != null ? _a : 0}s](${url})`;
134
+ });
135
+ const ideas = ideasOf(look.review.text);
136
+ return [...frames, ...ideas.length > 0 ? ["", "Next you could:", ...ideas.map((idea) => `- ${idea}`)] : []].join("\n");
137
+ }
138
+ function previewFooter(previews) {
139
+ if (!previews || previews.frames.length === 0) return "";
140
+ return ["Preview frames:", ...previews.frames.map((frame) => `![${frame.t}s](${frame.url})`), "", "Film it from these in Render, or keep them as pictures."].join("\n");
141
+ }export{LOOK_FRAMES_MAX,ideasOf,lookFooter,previewFooter,reviewPrompt,reviewShot,shotNotes,verdictOf};//# sourceMappingURL=review.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.js","sources":["../../../../../src/features/canvas/set/agent/review.ts"],"sourcesContent":["/**\n * The agent looking at its own shot.\n *\n * The models that run the tool loop do not all take images, so a model that\n * does looks at the frames and writes what it sees, the way the survey reads a\n * photograph. The agent acts on those words. Without this, judging a shot\n * meant screenshotting the studio into another chat and pasting its advice\n * back, round after round.\n */\nimport { brainChat, listBrainModels, pickVisionModel, type BrainChat, type BrainContentPart } from './brain';\nimport { ensureFetchableMediaUrl } from '../setRpc';\nimport { shotCameraAt } from '../shotCamera';\nimport { standInLabel } from '../renderMove';\nimport { focalLengthFromFov, type SetProject } from '../types';\n\n/** The vision lane refuses a call carrying more pictures than this. */\nexport const LOOK_FRAMES_MAX = 3;\n\nconst REVIEW_MAX_TOKENS = 900;\nconst REVIEW_TIMEOUT_MS = 90_000;\n\nexport type ShotVerdict = 'good' | 'needs work';\n\nexport interface ShotReview {\n verdict: ShotVerdict;\n /** The reviewer's notes, as written. */\n text: string;\n /** The frames as stored, fetchable: the transcript shows the person what was judged. */\n frameUrls: string[];\n}\n\nexport interface ReviewShotArgs {\n /** JPEG data URLs, one per moment. */\n frames: readonly string[];\n times: readonly number[];\n project: SetProject;\n /** What the person asked for this turn. */\n brief: string;\n /** Anything the agent wants judged in particular. */\n focus?: string;\n signal?: AbortSignal;\n}\n\nconst seconds = (t: number): string => `${Math.round(t * 10) / 10}s`;\n\n/** The facts a reviewer cannot read off a picture: when each frame is, the lens, and who the stand-ins are. */\nexport function shotNotes(project: SetProject, times: readonly number[]): string {\n const frames = times.map((t, index) => {\n const camera = shotCameraAt(project, t, { carry: false });\n return `Frame ${index + 1} at ${seconds(t)}: ${Math.round(focalLengthFromFov(camera.fov))}mm lens, camera ${Math.round(camera.position.y * 10) / 10}m above the floor.`;\n });\n const people = project.objects\n .filter((object) => !object.hidden && /^figure/.test(object.kitId ?? ''))\n .map(standInLabel);\n const things = project.objects\n .filter(\n (object) =>\n !object.hidden &&\n !/^figure/.test(object.kitId ?? '') &&\n !['floor', 'wall'].includes(object.kitId ?? ''),\n )\n .map((object) => object.name)\n .slice(0, 30);\n return [\n ...frames,\n people.length > 0 ? `People: ${people.join('; ')}.` : 'No people in the set.',\n things.length > 0 ? `Also on the set: ${things.join(', ')}.` : '',\n ]\n .filter(Boolean)\n .join('\\n');\n}\n\nexport function reviewPrompt(args: { brief: string; focus?: string; notes: string; count: number }): string {\n const { brief, focus, notes, count } = args;\n return `You are the director of photography on a film, reviewing ${count === 1 ? 'a frame' : `${count} frames`} from the 3D previs of one shot. The set is built from plain stand-in shapes on purpose: never comment on materials, colours, texture or low detail. Judge only the shot.\n\nWHAT THE USER ASKED FOR: ${brief.trim() || 'A well composed shot of this scene.'}\n${focus?.trim() ? `JUDGE ESPECIALLY: ${focus.trim()}\\n` : ''}\nTHE FRAMES, IN ORDER:\n${notes}\n\nJudge each frame as a frame of the finished film:\n- Is what the shot is about clearly its subject: big enough, placed with intent (on a third, eye line and lead room toward where they look or move), not dead centre like a diagram?\n- Is anyone cut at a joint (neck, waist, knees) or at the very edge, is the headroom right, is a face hidden or turned away when it should be seen?\n- Is the lens inside something or right against it, is a near surface filling the frame, is the frame empty or pointing at nothing?\n- Is the horizon level, and do the angle and lens carry what the request asks for?\n- For a moving shot: does the move go somewhere, and does every frame still hold a subject?\n\nAnswer in plain text, no markdown, in exactly this form:\nVERDICT: good\nor\nVERDICT: needs work\nThen at most 5 lines starting FIX:, one fix each, written as a camera instruction: which frame, what to change, roughly by how much, and why. For example: \"FIX: Frame 2 (30s): lower the camera to about 1.2m and move it left so the pink figure sits on the right third instead of the centre.\"\nFixes keep to what the request allows. If it says to change only the camera, no fix moves people, their animations or anything on the set.\nIf the frames already work, say VERDICT: good and give no fixes.\nThen at most 3 lines starting IDEA:, what else would make this scene or shot better that the request did not ask for: a light that would shape the subject, a second angle or a cutaway worth adding, a beat of movement, timing, something missing from the set. These are offered to the user, never done for them, so they may go beyond what the request allows. For example: \"IDEA: a low key light from behind the trees would put a rim on both figures and make the night read.\"`;\n}\n\n/** The reviewer's IDEA lines: what the person might do next. */\nexport function ideasOf(text: string): string[] {\n return text\n .split('\\n')\n .map((line) => /^\\s*IDEA:\\s*(.+)$/i.exec(line)?.[1]?.trim() ?? '')\n .filter(Boolean)\n .slice(0, 3);\n}\n\nexport function verdictOf(text: string): ShotVerdict {\n return /VERDICT:\\s*good\\b/i.test(text) ? 'good' : 'needs work';\n}\n\n/**\n * Store the frames and have a vision model judge them. Null when no model on\n * this gateway takes images: the agent says so rather than pretending it looked.\n */\nexport async function reviewShot(args: ReviewShotArgs, chat: BrainChat = brainChat): Promise<ShotReview | null> {\n const model = pickVisionModel(await listBrainModels());\n if (!model) return null;\n const frames = args.frames.slice(0, LOOK_FRAMES_MAX);\n const times = args.times.slice(0, frames.length);\n const frameUrls = await Promise.all(\n frames.map((frame, index) => ensureFetchableMediaUrl(frame, `shot-look-${seconds(times[index] ?? 0)}.jpg`)),\n );\n const content: BrainContentPart[] = [\n {\n type: 'text',\n text: reviewPrompt({\n brief: args.brief,\n ...(args.focus ? { focus: args.focus } : {}),\n notes: shotNotes(args.project, times),\n count: frames.length,\n }),\n },\n ...frameUrls.map((url): BrainContentPart => ({ type: 'image_url', image_url: { url, detail: 'high' } })),\n ];\n const { content: text } = await chat({\n model,\n temperature: 0.2,\n maxTokens: REVIEW_MAX_TOKENS,\n timeoutMs: REVIEW_TIMEOUT_MS,\n messages: [{ role: 'user', content }],\n ...(args.signal ? { signal: args.signal } : {}),\n });\n const notes = text.trim();\n if (!notes) throw new Error('The vision model looked at the frames and said nothing.');\n return { verdict: verdictOf(notes), text: notes, frameUrls };\n}\n\n/**\n * What the last look showed, under the reply: the frames that were judged and\n * the reviewer's ideas for what to do next. The pictures are what the person\n * would otherwise have screenshotted into another chat to ask about.\n */\nexport function lookFooter(look: { times: readonly number[]; review: ShotReview } | null): string {\n if (!look) return '';\n const frames = look.review.frameUrls.map((url, index) => `![${look.times[index] ?? 0}s](${url})`);\n const ideas = ideasOf(look.review.text);\n return [...frames, ...(ideas.length > 0 ? ['', 'Next you could:', ...ideas.map((idea) => `- ${idea}`)] : [])].join(\n '\\n',\n );\n}\n\n/** New preview frames under the reply, where the person decides what to do with them. */\nexport function previewFooter(previews: { frames: readonly { t: number; url: string }[] } | null): string {\n if (!previews || previews.frames.length === 0) return '';\n return [\n 'Preview frames:',\n ...previews.frames.map((frame) => `![${frame.t}s](${frame.url})`),\n '',\n 'Film it from these in Render, or keep them as pictures.',\n ].join('\\n');\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAgBO,MAAM,eAAkB,GAAA;AAC/B,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,iBAAoB,GAAA,GAAA;AAoB1B,MAAM,OAAA,GAAU,CAAC,CAAsB,KAAA,CAAA,EAAG,KAAK,KAAM,CAAA,CAAA,GAAI,EAAE,CAAA,GAAI,EAAE,CAAA,CAAA,CAAA;AAGjD,SAAA,SAAA,CAAU,SAAqB,KAAkC,EAAA;AAC/E,EAAA,MAAM,MAAS,GAAA,KAAA,CAAM,GAAI,CAAA,CAAC,GAAG,KAAU,KAAA;AACrC,IAAM,MAAA,MAAA,GAAS,YAAa,CAAA,OAAA,EAAS,CAAG,EAAA;AAAA,MACtC,KAAO,EAAA;AAAA,KACR,CAAA;AACD,IAAO,OAAA,CAAA,MAAA,EAAS,QAAQ,CAAC,CAAA,IAAA,EAAO,QAAQ,CAAC,CAAC,CAAK,EAAA,EAAA,IAAA,CAAK,KAAM,CAAA,kBAAA,CAAmB,OAAO,GAAG,CAAC,CAAC,CAAA,gBAAA,EAAmB,IAAK,CAAA,KAAA,CAAM,OAAO,QAAS,CAAA,CAAA,GAAI,EAAE,CAAA,GAAI,EAAE,CAAA,kBAAA,CAAA;AAAA,GACpJ,CAAA;AACD,EAAA,MAAM,MAAS,GAAA,OAAA,CAAQ,OAAQ,CAAA,MAAA,CAAO,CAAO,MAAA,KAAA;AAhD/C,IAAA,IAAA,EAAA;AAgDkD,IAAA,OAAA,CAAC,OAAO,MAAU,IAAA,SAAA,CAAU,MAAK,EAAO,GAAA,MAAA,CAAA,KAAA,KAAP,YAAgB,EAAE,CAAA;AAAA,GAAC,CAAA,CAAE,IAAI,YAAY,CAAA;AACtH,EAAA,MAAM,MAAS,GAAA,OAAA,CAAQ,OAAQ,CAAA,MAAA,CAAO,CAAO,MAAA,KAAA;AAjD/C,IAAA,IAAA,EAAA,EAAA,EAAA;AAiDkD,IAAA,OAAA,CAAC,OAAO,MAAU,IAAA,CAAC,UAAU,IAAK,CAAA,CAAA,EAAA,GAAA,MAAA,CAAO,UAAP,IAAgB,GAAA,EAAA,GAAA,EAAE,KAAK,CAAC,CAAC,SAAS,MAAM,CAAA,CAAE,UAAS,EAAO,GAAA,MAAA,CAAA,KAAA,KAAP,YAAgB,EAAE,CAAA;AAAA,GAAC,CAAA,CAAE,IAAI,CAAU,MAAA,KAAA,MAAA,CAAO,IAAI,CAAE,CAAA,KAAA,CAAM,GAAG,EAAE,CAAA;AAChM,EAAA,OAAO,CAAC,GAAG,MAAQ,EAAA,MAAA,CAAO,MAAS,GAAA,CAAA,GAAI,CAAW,QAAA,EAAA,MAAA,CAAO,IAAK,CAAA,IAAI,CAAC,CAAA,CAAA,CAAA,GAAM,uBAAyB,EAAA,MAAA,CAAO,MAAS,GAAA,CAAA,GAAI,CAAoB,iBAAA,EAAA,MAAA,CAAO,IAAK,CAAA,IAAI,CAAC,CAAA,CAAA,CAAA,GAAM,EAAE,CAAA,CAAE,MAAO,CAAA,OAAO,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAChM;AACO,SAAS,aAAa,IAKlB,EAAA;AACT,EAAM,MAAA;AAAA,IACJ,KAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACE,GAAA,IAAA;AACJ,EAAA,OAAO,4DAA4D,KAAU,KAAA,CAAA,GAAI,SAAY,GAAA,CAAA,EAAG,KAAK,CAAS,OAAA,CAAA,CAAA;;AAAA,yBAErF,EAAA,KAAA,CAAM,IAAK,EAAA,IAAK,qCAAqC;AAAA,EAAA,CAC9E,KAAO,IAAA,IAAA,GAAA,MAAA,GAAA,KAAA,CAAA,IAAA,EAAA,IAAS,CAAqB,kBAAA,EAAA,KAAA,CAAM,MAAM;AAAA,CAAA,GAAO,EAAE;AAAA;AAAA,EAE1D,KAAK;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wdAAA,CAAA;AAiBP;AAGO,SAAS,QAAQ,IAAwB,EAAA;AAC9C,EAAA,OAAO,IAAK,CAAA,KAAA,CAAM,IAAI,CAAA,CAAE,IAAI,CAAK,IAAA,KAAA;AA1FnC,IAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA;AA0FsC,IAAA,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,oBAAA,CAAqB,KAAK,IAAI,CAAA,KAA9B,mBAAkC,CAAlC,CAAA,KAAA,IAAA,GAAA,MAAA,GAAA,EAAA,CAAsC,WAAtC,IAAgD,GAAA,EAAA,GAAA,EAAA;AAAA,GAAE,EAAE,MAAO,CAAA,OAAO,CAAE,CAAA,KAAA,CAAM,GAAG,CAAC,CAAA;AACpH;AACO,SAAS,UAAU,IAA2B,EAAA;AACnD,EAAA,OAAO,oBAAqB,CAAA,IAAA,CAAK,IAAI,CAAA,GAAI,MAAS,GAAA,YAAA;AACpD;AAMsB,eAAA,UAAA,CAAW,IAAsB,EAAA,IAAA,GAAkB,SAAuC,EAAA;AAC9G,EAAA,MAAM,KAAQ,GAAA,eAAA,CAAgB,MAAM,eAAA,EAAiB,CAAA;AACrD,EAAI,IAAA,CAAC,OAAc,OAAA,IAAA;AACnB,EAAA,MAAM,MAAS,GAAA,IAAA,CAAK,MAAO,CAAA,KAAA,CAAM,GAAG,eAAe,CAAA;AACnD,EAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAM,KAAM,CAAA,CAAA,EAAG,OAAO,MAAM,CAAA;AAC/C,EAAM,MAAA,SAAA,GAAY,MAAM,OAAQ,CAAA,GAAA,CAAI,OAAO,GAAI,CAAA,CAAC,OAAO,KAAO,KAAA;AAzGhE,IAAA,IAAA,EAAA;AAyGmE,IAAwB,OAAA,uBAAA,CAAA,KAAA,EAAO,aAAa,OAAQ,CAAA,CAAA,EAAA,GAAA,KAAA,CAAM,KAAK,CAAX,KAAA,IAAA,GAAA,EAAA,GAAgB,CAAC,CAAC,CAAM,IAAA,CAAA,CAAA;AAAA,GAAC,CAAC,CAAA;AAC/I,EAAA,MAAM,UAA8B,CAAC;AAAA,IACnC,IAAM,EAAA,MAAA;AAAA,IACN,MAAM,YAAa,CAAA,aAAA,CAAA,cAAA,CAAA;AAAA,MACjB,OAAO,IAAK,CAAA;AAAA,KAAA,EACR,KAAK,KAAQ,GAAA;AAAA,MACf,OAAO,IAAK,CAAA;AAAA,KACd,GAAI,EAJa,CAAA,EAAA;AAAA,MAKjB,KAAO,EAAA,SAAA,CAAU,IAAK,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,MACpC,OAAO,MAAO,CAAA;AAAA,KACf,CAAA;AAAA,GACA,EAAA,GAAG,SAAU,CAAA,GAAA,CAAI,CAAC,GAA2B,MAAA;AAAA,IAC9C,IAAM,EAAA,WAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,GAAA;AAAA,MACA,MAAQ,EAAA;AAAA;AACV,IACA,CAAC,CAAA;AACH,EAAM,MAAA;AAAA,IACJ,OAAS,EAAA;AAAA,GACX,GAAI,MAAM,IAAK,CAAA,cAAA,CAAA;AAAA,IACb,KAAA;AAAA,IACA,WAAa,EAAA,GAAA;AAAA,IACb,SAAW,EAAA,iBAAA;AAAA,IACX,SAAW,EAAA,iBAAA;AAAA,IACX,UAAU,CAAC;AAAA,MACT,IAAM,EAAA,MAAA;AAAA,MACN;AAAA,KACD;AAAA,GAAA,EACG,KAAK,MAAS,GAAA;AAAA,IAChB,QAAQ,IAAK,CAAA;AAAA,GACf,GAAI,EACL,CAAA,CAAA;AACD,EAAM,MAAA,KAAA,GAAQ,KAAK,IAAK,EAAA;AACxB,EAAA,IAAI,CAAC,KAAA,EAAa,MAAA,IAAI,MAAM,yDAAyD,CAAA;AACrF,EAAO,OAAA;AAAA,IACL,OAAA,EAAS,UAAU,KAAK,CAAA;AAAA,IACxB,IAAM,EAAA,KAAA;AAAA,IACN;AAAA,GACF;AACF;AAOO,SAAS,WAAW,IAGT,EAAA;AAChB,EAAI,IAAA,CAAC,MAAa,OAAA,EAAA;AAClB,EAAA,MAAM,SAAS,IAAK,CAAA,MAAA,CAAO,UAAU,GAAI,CAAA,CAAC,KAAK,KAAO,KAAA;AA7JxD,IAAA,IAAA,EAAA;AA6J2D,IAAA,OAAA,CAAA,EAAA,EAAA,CAAK,UAAK,KAAM,CAAA,KAAK,MAAhB,IAAqB,GAAA,EAAA,GAAA,CAAC,MAAM,GAAG,CAAA,CAAA,CAAA;AAAA,GAAG,CAAA;AAChG,EAAA,MAAM,KAAQ,GAAA,OAAA,CAAQ,IAAK,CAAA,MAAA,CAAO,IAAI,CAAA;AACtC,EAAO,OAAA,CAAC,GAAG,MAAQ,EAAA,GAAI,MAAM,MAAS,GAAA,CAAA,GAAI,CAAC,EAAA,EAAI,iBAAmB,EAAA,GAAG,MAAM,GAAI,CAAA,CAAA,IAAA,KAAQ,CAAK,EAAA,EAAA,IAAI,CAAE,CAAA,CAAC,IAAI,EAAG,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AACvH;AAGO,SAAS,cAAc,QAKZ,EAAA;AAChB,EAAA,IAAI,CAAC,QAAY,IAAA,QAAA,CAAS,MAAO,CAAA,MAAA,KAAW,GAAU,OAAA,EAAA;AACtD,EAAA,OAAO,CAAC,iBAAmB,EAAA,GAAG,SAAS,MAAO,CAAA,GAAA,CAAI,WAAS,CAAK,EAAA,EAAA,KAAA,CAAM,CAAC,CAAM,GAAA,EAAA,KAAA,CAAM,GAAG,CAAG,CAAA,CAAA,CAAA,EAAG,IAAI,yDAAyD,CAAA,CAAE,KAAK,IAAI,CAAA;AACtK"}