@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.
- package/lib/assets/canvas/apps/holiday-clip/christmas_photo_shoot.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/instant_christmas.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/jumping_ginger_joy.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/my_santa_pic.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/ornament_crash.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/santa_express.webp +0 -0
- package/lib/assets/canvas/apps/holiday-clip/santa_gift.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/alpacas.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/bunnies.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/ducklings.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/fawns.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/fox-cubs.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/hedgehogs.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/kittens.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/lambs.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/mix.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/otters.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/owlets.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/penguins.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/piglets.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/puppies.webp +0 -0
- package/lib/assets/canvas/apps/micro-beasts/red-pandas.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/cute_pumpkin_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/demon_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/mummy_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/pumpkin_head_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/vampire_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/witch_transform.webp +0 -0
- package/lib/assets/canvas/apps/monster-makeover/zombie_transform.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/birthday_star.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/bouquet_drop.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/box_of_joy.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/happy_birthday.webp +0 -0
- package/lib/assets/canvas/apps/party-clip/surprise_bouquet.webp +0 -0
- package/lib/assets/canvas/apps/pet-tricks/drunk_dance_pet.webp +0 -0
- package/lib/assets/canvas/apps/pet-tricks/pet_bee_pro.webp +0 -0
- package/lib/assets/canvas/apps/pet-tricks/pet_lion_pro.webp +0 -0
- package/lib/assets/canvas/cinematic/era/contemporary.webp +0 -0
- package/lib/assets/canvas/cinematic/era/digital-2000s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/dye-transfer-50s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/far-future.webp +0 -0
- package/lib/assets/canvas/cinematic/era/golden-age.webp +0 -0
- package/lib/assets/canvas/cinematic/era/gritty-70s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/indie-90s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/near-future.webp +0 -0
- package/lib/assets/canvas/cinematic/era/neon-80s.webp +0 -0
- package/lib/assets/canvas/cinematic/era/new-wave.webp +0 -0
- package/lib/assets/canvas/cinematic/era/silent-era.webp +0 -0
- package/lib/assets/canvas/cinematic/era/victorian.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/action.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/adventure.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/comedy.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/coming-of-age.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/documentary.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/drama.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/epic.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/fantasy.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/horror.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/musical.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/mystery.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/noir.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/romance.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/sci-fi.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/thriller.webp +0 -0
- package/lib/assets/canvas/cinematic/genre/western.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/backlit.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/blue-hour.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/candlelight.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/daylight.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/golden-hour.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/hard-sun.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/high-key.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/low-key.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/moonlight.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/neon-practicals.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/overcast.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/overhead.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/practicals.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/silhouette.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/soft-cross.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/three-point.webp +0 -0
- package/lib/assets/canvas/cinematic/lighting/window-light.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/16mm.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/35mm-film.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/70mm-large-format.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/70s-zoom.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/anamorphic.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/black-and-white-film.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/clean-sharp-prime.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/disposable-camera.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/dv-camcorder.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/fisheye.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/halation.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/instant-film.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/large-format-digital.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/macro.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/medium-format.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/modern-digital.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/pinhole.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/soft-focus.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/super-35.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/super-8.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/swirl-bokeh.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/tilt-shift.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/vintage-anamorphic.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/vintage-prime.webp +0 -0
- package/lib/assets/canvas/cinematic/stock/warm-cinema-prime.webp +0 -0
- package/lib/assets/canvas/stylize/animated_series.webp +0 -0
- package/lib/assets/canvas/stylize/anime.webp +0 -0
- package/lib/assets/canvas/stylize/anime_character.webp +0 -0
- package/lib/assets/canvas/stylize/anime_game_style.webp +0 -0
- package/lib/assets/canvas/stylize/art_nouveau.webp +0 -0
- package/lib/assets/canvas/stylize/baroque.webp +0 -0
- package/lib/assets/canvas/stylize/black_and_white_film.webp +0 -0
- package/lib/assets/canvas/stylize/blueprint.webp +0 -0
- package/lib/assets/canvas/stylize/brick_toy.webp +0 -0
- package/lib/assets/canvas/stylize/cartoon_3d.webp +0 -0
- package/lib/assets/canvas/stylize/cartoon_animation.webp +0 -0
- package/lib/assets/canvas/stylize/cartoon_portrait.webp +0 -0
- package/lib/assets/canvas/stylize/celestial.webp +0 -0
- package/lib/assets/canvas/stylize/chalk_pastel.webp +0 -0
- package/lib/assets/canvas/stylize/charcoal.webp +0 -0
- package/lib/assets/canvas/stylize/chibi.webp +0 -0
- package/lib/assets/canvas/stylize/cinematic_still.webp +0 -0
- package/lib/assets/canvas/stylize/claymation.webp +0 -0
- package/lib/assets/canvas/stylize/colored_pencil.webp +0 -0
- package/lib/assets/canvas/stylize/comic_book_animation.webp +0 -0
- package/lib/assets/canvas/stylize/cottagecore.webp +0 -0
- package/lib/assets/canvas/stylize/crayon.webp +0 -0
- package/lib/assets/canvas/stylize/cubism.webp +0 -0
- package/lib/assets/canvas/stylize/dark_academia.webp +0 -0
- package/lib/assets/canvas/stylize/dark_fantasy.webp +0 -0
- package/lib/assets/canvas/stylize/disposable_camera.webp +0 -0
- package/lib/assets/canvas/stylize/double_exposure.webp +0 -0
- package/lib/assets/canvas/stylize/dreamcore.webp +0 -0
- package/lib/assets/canvas/stylize/etching.webp +0 -0
- package/lib/assets/canvas/stylize/expired_film.webp +0 -0
- package/lib/assets/canvas/stylize/expressionism.webp +0 -0
- package/lib/assets/canvas/stylize/fairy_tale.webp +0 -0
- package/lib/assets/canvas/stylize/fashion_editorial.webp +0 -0
- package/lib/assets/canvas/stylize/fauvism.webp +0 -0
- package/lib/assets/canvas/stylize/film_noir.webp +0 -0
- package/lib/assets/canvas/stylize/flat_vector.webp +0 -0
- package/lib/assets/canvas/stylize/folk_art.webp +0 -0
- package/lib/assets/canvas/stylize/fresco.webp +0 -0
- package/lib/assets/canvas/stylize/glass_sculpture.webp +0 -0
- package/lib/assets/canvas/stylize/gothic.webp +0 -0
- package/lib/assets/canvas/stylize/gouache.webp +0 -0
- package/lib/assets/canvas/stylize/grunge_zine.webp +0 -0
- package/lib/assets/canvas/stylize/hand_drawn_animation.webp +0 -0
- package/lib/assets/canvas/stylize/hyperrealistic.webp +0 -0
- package/lib/assets/canvas/stylize/impressionist.webp +0 -0
- package/lib/assets/canvas/stylize/ink_wash.webp +0 -0
- package/lib/assets/canvas/stylize/instant_photo.webp +0 -0
- package/lib/assets/canvas/stylize/isometric.webp +0 -0
- package/lib/assets/canvas/stylize/kawaii.webp +0 -0
- package/lib/assets/canvas/stylize/liminal_space.webp +0 -0
- package/lib/assets/canvas/stylize/line_art.webp +0 -0
- package/lib/assets/canvas/stylize/linocut.webp +0 -0
- package/lib/assets/canvas/stylize/liquid_chrome.webp +0 -0
- package/lib/assets/canvas/stylize/lofi_aesthetic.webp +0 -0
- package/lib/assets/canvas/stylize/low_poly.webp +0 -0
- package/lib/assets/canvas/stylize/manga_ink.webp +0 -0
- package/lib/assets/canvas/stylize/miniature.webp +0 -0
- package/lib/assets/canvas/stylize/oil_painting.webp +0 -0
- package/lib/assets/canvas/stylize/pen_and_ink.webp +0 -0
- package/lib/assets/canvas/stylize/pencil_sketch.webp +0 -0
- package/lib/assets/canvas/stylize/photorealistic.webp +0 -0
- package/lib/assets/canvas/stylize/pointillism.webp +0 -0
- package/lib/assets/canvas/stylize/pop_art.webp +0 -0
- package/lib/assets/canvas/stylize/post_impressionist.webp +0 -0
- package/lib/assets/canvas/stylize/renaissance.webp +0 -0
- package/lib/assets/canvas/stylize/risograph.webp +0 -0
- package/lib/assets/canvas/stylize/romantic_landscape.webp +0 -0
- package/lib/assets/canvas/stylize/screen_print.webp +0 -0
- package/lib/assets/canvas/stylize/sepia_photo.webp +0 -0
- package/lib/assets/canvas/stylize/shoujo_manga.webp +0 -0
- package/lib/assets/canvas/stylize/storybook.webp +0 -0
- package/lib/assets/canvas/stylize/surrealism.webp +0 -0
- package/lib/assets/canvas/stylize/tarot_card.webp +0 -0
- package/lib/assets/canvas/stylize/tintype.webp +0 -0
- package/lib/assets/canvas/stylize/video_tape.webp +0 -0
- package/lib/assets/canvas/stylize/vintage_cartoon.webp +0 -0
- package/lib/assets/canvas/stylize/vintage_horror.webp +0 -0
- package/lib/assets/canvas/stylize/vinyl_toy.webp +0 -0
- package/lib/assets/canvas/stylize/voxel_art.webp +0 -0
- package/lib/assets/canvas/stylize/watercolor.webp +0 -0
- package/lib/assets/canvas/stylize/webtoon.webp +0 -0
- package/lib/assets/canvas/stylize/weirdcore.webp +0 -0
- package/lib/assets/canvas/stylize/woodblock_print.webp +0 -0
- package/lib/components/KeyboardComposerDock.js +95 -4
- package/lib/components/KeyboardComposerDock.js.map +1 -1
- package/lib/config/env-config.js +10 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/contexts/cdecliConnection.js +4 -1
- package/lib/contexts/cdecliConnection.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +3 -2
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/canvas/CanvasAgentChatPane.js +364 -22
- package/lib/features/canvas/CanvasAgentChatPane.js.map +1 -1
- package/lib/features/canvas/CanvasAppsPanel.js +619 -54
- package/lib/features/canvas/CanvasAppsPanel.js.map +1 -1
- package/lib/features/canvas/CanvasBoardsGrid.js +138 -19
- package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -1
- package/lib/features/canvas/CanvasEditToolsPanel.js +189 -14
- package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -1
- package/lib/features/canvas/CanvasExperience.js +847 -165
- package/lib/features/canvas/CanvasExperience.js.map +1 -1
- package/lib/features/canvas/CanvasGeneratePanel.js +464 -93
- package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -1
- package/lib/features/canvas/CanvasLibrarySheet.js +506 -18
- package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -1
- package/lib/features/canvas/CanvasToolDock.js +430 -19
- package/lib/features/canvas/CanvasToolDock.js.map +1 -1
- package/lib/features/canvas/ImageEditorExperience.js +212 -20
- package/lib/features/canvas/ImageEditorExperience.js.map +1 -1
- package/lib/features/canvas/InfluencerStudioExperience.js +409 -105
- package/lib/features/canvas/InfluencerStudioExperience.js.map +1 -1
- package/lib/features/canvas/NativeCanvasViewer.js +637 -32
- package/lib/features/canvas/NativeCanvasViewer.js.map +1 -1
- package/lib/features/canvas/PromoContextFields.js +103 -5
- package/lib/features/canvas/PromoContextFields.js.map +1 -1
- package/lib/features/canvas/SetStudioExperience.js +419 -790
- package/lib/features/canvas/SetStudioExperience.js.map +1 -1
- package/lib/features/canvas/VideoClipsExperience.js +20 -186
- package/lib/features/canvas/VideoClipsExperience.js.map +1 -1
- package/lib/features/canvas/VideoEditorExperience.js +308 -55
- package/lib/features/canvas/VideoEditorExperience.js.map +1 -1
- package/lib/features/canvas/VideoGeneratorExperience.js +59 -8
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -1
- package/lib/features/canvas/agent/HostChatPane.js +327 -0
- package/lib/features/canvas/agent/HostChatPane.js.map +1 -0
- package/lib/features/canvas/agent/agentBlocks.js +42 -0
- package/lib/features/canvas/agent/agentBlocks.js.map +1 -0
- package/lib/features/canvas/agent/agentPlan.js +120 -0
- package/lib/features/canvas/agent/agentPlan.js.map +1 -0
- package/lib/features/canvas/agent/agentProtocol.js +62 -0
- package/lib/features/canvas/agent/agentProtocol.js.map +1 -0
- package/lib/features/canvas/agent/agentSettings.js +26 -0
- package/lib/features/canvas/agent/agentSettings.js.map +1 -0
- package/lib/features/canvas/agent/boardActions.js +295 -0
- package/lib/features/canvas/agent/boardActions.js.map +1 -0
- package/lib/features/canvas/agent/boardNoteActions.js +139 -0
- package/lib/features/canvas/agent/boardNoteActions.js.map +1 -0
- package/lib/features/canvas/agent/durableSessionGuard.js +145 -0
- package/lib/features/canvas/agent/durableSessionGuard.js.map +1 -0
- package/lib/features/canvas/agent/hostChat.js +19 -0
- package/lib/features/canvas/agent/hostChat.js.map +1 -0
- package/lib/features/canvas/agent/useHostAgent.js +248 -0
- package/lib/features/canvas/agent/useHostAgent.js.map +1 -0
- package/lib/features/canvas/analysis/AnalysisControls.js +487 -0
- package/lib/features/canvas/analysis/AnalysisControls.js.map +1 -0
- package/lib/features/canvas/analysis/ViralityControls.js +349 -0
- package/lib/features/canvas/analysis/ViralityControls.js.map +1 -0
- package/lib/features/canvas/analysis/breakdownActions.js +286 -0
- package/lib/features/canvas/analysis/breakdownActions.js.map +1 -0
- package/lib/features/canvas/analysis/editTextActions.js +131 -0
- package/lib/features/canvas/analysis/editTextActions.js.map +1 -0
- package/lib/features/canvas/analysis/imageReadRpc.js +173 -0
- package/lib/features/canvas/analysis/imageReadRpc.js.map +1 -0
- package/lib/features/canvas/analysis/layerActions.js +265 -0
- package/lib/features/canvas/analysis/layerActions.js.map +1 -0
- package/lib/features/canvas/analysis/panelStore.js +43 -0
- package/lib/features/canvas/analysis/panelStore.js.map +1 -0
- package/lib/features/canvas/analysis/saveFile.js +60 -0
- package/lib/features/canvas/analysis/saveFile.js.map +1 -0
- package/lib/features/canvas/analysis/viralityClips.js +94 -0
- package/lib/features/canvas/analysis/viralityClips.js.map +1 -0
- package/lib/features/canvas/analysis/viralityScore.js +141 -0
- package/lib/features/canvas/analysis/viralityScore.js.map +1 -0
- package/lib/features/canvas/analysis/viralityVision.js +98 -0
- package/lib/features/canvas/analysis/viralityVision.js.map +1 -0
- package/lib/features/canvas/apps/AppHistoryView.js +125 -0
- package/lib/features/canvas/apps/AppHistoryView.js.map +1 -0
- package/lib/features/canvas/apps/AppSheet.js +122 -0
- package/lib/features/canvas/apps/AppSheet.js.map +1 -0
- package/lib/features/canvas/apps/analysisApps.js +44 -0
- package/lib/features/canvas/apps/analysisApps.js.map +1 -0
- package/lib/features/canvas/apps/appClips.js +247 -0
- package/lib/features/canvas/apps/appClips.js.map +1 -0
- package/lib/features/canvas/apps/appHistory.js +116 -0
- package/lib/features/canvas/apps/appHistory.js.map +1 -0
- package/lib/features/canvas/apps/appLink.js +22 -0
- package/lib/features/canvas/apps/appLink.js.map +1 -0
- package/lib/features/canvas/apps/appPreviews.js +50 -0
- package/lib/features/canvas/apps/appPreviews.js.map +1 -0
- package/lib/features/canvas/apps/appWords.js +2 -0
- package/lib/features/canvas/apps/appWords.js.map +1 -0
- package/lib/features/canvas/apps/clipApps.js +285 -0
- package/lib/features/canvas/apps/clipApps.js.map +1 -0
- package/lib/features/canvas/apps/consentApps.js +43 -0
- package/lib/features/canvas/apps/consentApps.js.map +1 -0
- package/lib/features/canvas/apps/lookSets.js +25 -0
- package/lib/features/canvas/apps/lookSets.js.map +1 -0
- package/lib/features/canvas/apps/makerApps.js +34 -0
- package/lib/features/canvas/apps/makerApps.js.map +1 -0
- package/lib/features/canvas/apps/makers/MakerFooter.js +150 -0
- package/lib/features/canvas/apps/makers/MakerFooter.js.map +1 -0
- package/lib/features/canvas/apps/makers/makerStore.js +149 -0
- package/lib/features/canvas/apps/makers/makerStore.js.map +1 -0
- package/lib/features/canvas/apps/meme/MemeMaker.js +285 -0
- package/lib/features/canvas/apps/meme/MemeMaker.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeCaptions.js +46 -0
- package/lib/features/canvas/apps/meme/memeCaptions.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeCharacters.js +64 -0
- package/lib/features/canvas/apps/meme/memeCharacters.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeRun.js +276 -0
- package/lib/features/canvas/apps/meme/memeRun.js.map +1 -0
- package/lib/features/canvas/apps/meme/memeText.js +188 -0
- package/lib/features/canvas/apps/meme/memeText.js.map +1 -0
- package/lib/features/canvas/apps/reels/BeatReel.js +193 -0
- package/lib/features/canvas/apps/reels/BeatReel.js.map +1 -0
- package/lib/features/canvas/apps/reels/audioDecode.js +146 -0
- package/lib/features/canvas/apps/reels/audioDecode.js.map +1 -0
- package/lib/features/canvas/apps/reels/beatCuts.js +185 -0
- package/lib/features/canvas/apps/reels/beatCuts.js.map +1 -0
- package/lib/features/canvas/apps/reels/beats.js +128 -0
- package/lib/features/canvas/apps/reels/beats.js.map +1 -0
- package/lib/features/canvas/apps/reels/reelActions.js +153 -0
- package/lib/features/canvas/apps/reels/reelActions.js.map +1 -0
- package/lib/features/canvas/apps/reels/reelRun.js +235 -0
- package/lib/features/canvas/apps/reels/reelRun.js.map +1 -0
- package/lib/features/canvas/appsCatalog.js +1767 -67
- package/lib/features/canvas/appsCatalog.js.map +1 -1
- package/lib/features/canvas/board/BoardNodesLayer.js +117 -0
- package/lib/features/canvas/board/BoardNodesLayer.js.map +1 -0
- package/lib/features/canvas/board/ItemSheets.js +240 -0
- package/lib/features/canvas/board/ItemSheets.js.map +1 -0
- package/lib/features/canvas/board/MultiSelect.js +163 -0
- package/lib/features/canvas/board/MultiSelect.js.map +1 -0
- package/lib/features/canvas/board/NodeTools.js +525 -0
- package/lib/features/canvas/board/NodeTools.js.map +1 -0
- package/lib/features/canvas/board/boardClipboard.js +266 -0
- package/lib/features/canvas/board/boardClipboard.js.map +1 -0
- package/lib/features/canvas/board/boardPages.js +79 -0
- package/lib/features/canvas/board/boardPages.js.map +1 -0
- package/lib/features/canvas/board/boardSearch.js +152 -0
- package/lib/features/canvas/board/boardSearch.js.map +1 -0
- package/lib/features/canvas/board/folderStore.js +165 -0
- package/lib/features/canvas/board/folderStore.js.map +1 -0
- package/lib/features/canvas/board/geometry.js +45 -0
- package/lib/features/canvas/board/geometry.js.map +1 -0
- package/lib/features/canvas/board/nodes.js +311 -0
- package/lib/features/canvas/board/nodes.js.map +1 -0
- package/lib/features/canvas/board/selection.js +169 -0
- package/lib/features/canvas/board/selection.js.map +1 -0
- package/lib/features/canvas/board/svgSource.js +54 -0
- package/lib/features/canvas/board/svgSource.js.map +1 -0
- package/lib/features/canvas/boardActions.js +99 -9
- package/lib/features/canvas/boardActions.js.map +1 -1
- package/lib/features/canvas/canvasAgentChat.js +16 -8
- package/lib/features/canvas/canvasAgentChat.js.map +1 -1
- package/lib/features/canvas/canvasArtifacts.js +45 -3
- package/lib/features/canvas/canvasArtifacts.js.map +1 -1
- package/lib/features/canvas/canvasCore.js +67 -11
- package/lib/features/canvas/canvasCore.js.map +1 -1
- package/lib/features/canvas/canvasEditOps.js +52 -6
- package/lib/features/canvas/canvasEditOps.js.map +1 -1
- package/lib/features/canvas/canvasTasks.js +4 -4
- package/lib/features/canvas/canvasTasks.js.map +1 -1
- package/lib/features/canvas/characters/CharacterBuilder.js +211 -35
- package/lib/features/canvas/characters/CharacterBuilder.js.map +1 -1
- package/lib/features/canvas/characters/CharacterStudio.js +12 -6
- package/lib/features/canvas/characters/CharacterStudio.js.map +1 -1
- package/lib/features/canvas/characters/DramaTool.js +142 -0
- package/lib/features/canvas/characters/DramaTool.js.map +1 -0
- package/lib/features/canvas/characters/ExploreTool.js +347 -0
- package/lib/features/canvas/characters/ExploreTool.js.map +1 -0
- package/lib/features/canvas/characters/FashionTool.js +212 -0
- package/lib/features/canvas/characters/FashionTool.js.map +1 -0
- package/lib/features/canvas/characters/HostTool.js +303 -0
- package/lib/features/canvas/characters/HostTool.js.map +1 -0
- package/lib/features/canvas/characters/MotionTool.js +198 -0
- package/lib/features/canvas/characters/MotionTool.js.map +1 -0
- package/lib/features/canvas/characters/PhotoDumpTool.js +9 -4
- package/lib/features/canvas/characters/PhotoDumpTool.js.map +1 -1
- package/lib/features/canvas/characters/RunFooter.js.map +1 -1
- package/lib/features/canvas/characters/SpokespersonTool.js +112 -0
- package/lib/features/canvas/characters/SpokespersonTool.js.map +1 -0
- package/lib/features/canvas/characters/StoryFramesTool.js +34 -6
- package/lib/features/canvas/characters/StoryFramesTool.js.map +1 -1
- package/lib/features/canvas/characters/StudioCheck.js +61 -0
- package/lib/features/canvas/characters/StudioCheck.js.map +1 -0
- package/lib/features/canvas/characters/SubjectPicker.js +23 -4
- package/lib/features/canvas/characters/SubjectPicker.js.map +1 -1
- package/lib/features/canvas/characters/VoiceField.js +70 -0
- package/lib/features/canvas/characters/VoiceField.js.map +1 -0
- package/lib/features/canvas/characters/castingSheet.js +91 -0
- package/lib/features/canvas/characters/castingSheet.js.map +1 -0
- package/lib/features/canvas/characters/characterActions.js +238 -26
- package/lib/features/canvas/characters/characterActions.js.map +1 -1
- package/lib/features/canvas/characters/characterLibrary.js +196 -0
- package/lib/features/canvas/characters/characterLibrary.js.map +1 -0
- package/lib/features/canvas/characters/characterRuns.js +85 -10
- package/lib/features/canvas/characters/characterRuns.js.map +1 -1
- package/lib/features/canvas/characters/characterStore.js +149 -6
- package/lib/features/canvas/characters/characterStore.js.map +1 -1
- package/lib/features/canvas/characters/characterTools.js +50 -2
- package/lib/features/canvas/characters/characterTools.js.map +1 -1
- package/lib/features/canvas/characters/characterVocabulary.js +100 -8
- package/lib/features/canvas/characters/characterVocabulary.js.map +1 -1
- package/lib/features/canvas/characters/charactersRpc.js +3 -2
- package/lib/features/canvas/characters/charactersRpc.js.map +1 -1
- package/lib/features/canvas/characters/dramaActions.js +218 -0
- package/lib/features/canvas/characters/dramaActions.js.map +1 -0
- package/lib/features/canvas/characters/dramaScript.js +185 -0
- package/lib/features/canvas/characters/dramaScript.js.map +1 -0
- package/lib/features/canvas/characters/fashionActions.js +182 -0
- package/lib/features/canvas/characters/fashionActions.js.map +1 -0
- package/lib/features/canvas/characters/fashionShoot.js +147 -0
- package/lib/features/canvas/characters/fashionShoot.js.map +1 -0
- package/lib/features/canvas/characters/hostActions.js +391 -0
- package/lib/features/canvas/characters/hostActions.js.map +1 -0
- package/lib/features/canvas/characters/hostBlocks.js +59 -0
- package/lib/features/canvas/characters/hostBlocks.js.map +1 -0
- package/lib/features/canvas/characters/hostStudio.js +114 -0
- package/lib/features/canvas/characters/hostStudio.js.map +1 -0
- package/lib/features/canvas/characters/motionActions.js +156 -0
- package/lib/features/canvas/characters/motionActions.js.map +1 -0
- package/lib/features/canvas/characters/motionMoves.js +81 -0
- package/lib/features/canvas/characters/motionMoves.js.map +1 -0
- package/lib/features/canvas/characters/placement.js +83 -8
- package/lib/features/canvas/characters/placement.js.map +1 -1
- package/lib/features/canvas/characters/spokesperson.js +101 -0
- package/lib/features/canvas/characters/spokesperson.js.map +1 -0
- package/lib/features/canvas/characters/spokespersonActions.js +191 -0
- package/lib/features/canvas/characters/spokespersonActions.js.map +1 -0
- package/lib/features/canvas/characters/storyFilm.js +64 -0
- package/lib/features/canvas/characters/storyFilm.js.map +1 -0
- package/lib/features/canvas/characters/storyFilmActions.js +129 -0
- package/lib/features/canvas/characters/storyFilmActions.js.map +1 -0
- package/lib/features/canvas/characters/studioSets.js +91 -0
- package/lib/features/canvas/characters/studioSets.js.map +1 -0
- package/lib/features/canvas/characters/studioUi.js +137 -0
- package/lib/features/canvas/characters/studioUi.js.map +1 -0
- package/lib/features/canvas/characters/talkingTake.js +87 -0
- package/lib/features/canvas/characters/talkingTake.js.map +1 -0
- package/lib/features/canvas/characters/training/TrainTool.js +476 -0
- package/lib/features/canvas/characters/training/TrainTool.js.map +1 -0
- package/lib/features/canvas/characters/training/TrainedSwitch.js +11 -0
- package/lib/features/canvas/characters/training/TrainedSwitch.js.map +1 -0
- package/lib/features/canvas/characters/training/imageTrainingRpc.js +231 -0
- package/lib/features/canvas/characters/training/imageTrainingRpc.js.map +1 -0
- package/lib/features/canvas/characters/training/soulIdRpc.js +111 -0
- package/lib/features/canvas/characters/training/soulIdRpc.js.map +1 -0
- package/lib/features/canvas/characters/training/soulIdRuns.js +204 -0
- package/lib/features/canvas/characters/training/soulIdRuns.js.map +1 -0
- package/lib/features/canvas/characters/training/trainedMentions.js +24 -0
- package/lib/features/canvas/characters/training/trainedMentions.js.map +1 -0
- package/lib/features/canvas/characters/training/trainedRuns.js +103 -0
- package/lib/features/canvas/characters/training/trainedRuns.js.map +1 -0
- package/lib/features/canvas/characters/training/trainingActions.js +252 -0
- package/lib/features/canvas/characters/training/trainingActions.js.map +1 -0
- package/lib/features/canvas/characters/training/trainingCopy.js +34 -0
- package/lib/features/canvas/characters/training/trainingCopy.js.map +1 -0
- package/lib/features/canvas/characters/training/trainingRuns.js +245 -0
- package/lib/features/canvas/characters/training/trainingRuns.js.map +1 -0
- package/lib/features/canvas/characters/training/useResumeTrainings.js +9 -0
- package/lib/features/canvas/characters/training/useResumeTrainings.js.map +1 -0
- package/lib/features/canvas/characters/training/useSoulModels.js +21 -0
- package/lib/features/canvas/characters/training/useSoulModels.js.map +1 -0
- package/lib/features/canvas/characters/youtubeRpc.js +65 -0
- package/lib/features/canvas/characters/youtubeRpc.js.map +1 -0
- package/lib/features/canvas/chat/CanvasDesignChatCard.js +180 -0
- package/lib/features/canvas/chat/CanvasDesignChatCard.js.map +1 -0
- package/lib/features/canvas/chat/ChatSendsBar.js +120 -0
- package/lib/features/canvas/chat/ChatSendsBar.js.map +1 -0
- package/lib/features/canvas/chat/MediaAskCard.js +128 -0
- package/lib/features/canvas/chat/MediaAskCard.js.map +1 -0
- package/lib/features/canvas/chat/SkillMenu.js +83 -0
- package/lib/features/canvas/chat/SkillMenu.js.map +1 -0
- package/lib/features/canvas/chat/canvasDesignWidget.js +48 -0
- package/lib/features/canvas/chat/canvasDesignWidget.js.map +1 -0
- package/lib/features/canvas/chat/chatMentions.js +108 -0
- package/lib/features/canvas/chat/chatMentions.js.map +1 -0
- package/lib/features/canvas/chat/chatSends.js +91 -0
- package/lib/features/canvas/chat/chatSends.js.map +1 -0
- package/lib/features/canvas/chat/chatSkills.js +170 -0
- package/lib/features/canvas/chat/chatSkills.js.map +1 -0
- package/lib/features/canvas/chat/mediaActions.js +343 -0
- package/lib/features/canvas/chat/mediaActions.js.map +1 -0
- package/lib/features/canvas/chat/mediaPort.js +427 -0
- package/lib/features/canvas/chat/mediaPort.js.map +1 -0
- package/lib/features/canvas/chat/mediaRunners.js +84 -0
- package/lib/features/canvas/chat/mediaRunners.js.map +1 -0
- package/lib/features/canvas/chat/models3d.js +17 -0
- package/lib/features/canvas/chat/models3d.js.map +1 -0
- package/lib/features/canvas/chat/useComposerAssist.js +88 -0
- package/lib/features/canvas/chat/useComposerAssist.js.map +1 -0
- package/lib/features/canvas/chat/wholeVideo.js +8 -0
- package/lib/features/canvas/chat/wholeVideo.js.map +1 -0
- package/lib/features/canvas/clips/ClipLaneOptions.js +54 -0
- package/lib/features/canvas/clips/ClipLaneOptions.js.map +1 -0
- package/lib/features/canvas/clips/ClipsStudio.js +728 -0
- package/lib/features/canvas/clips/ClipsStudio.js.map +1 -0
- package/lib/features/canvas/clips/clipCaptions.js +319 -0
- package/lib/features/canvas/clips/clipCaptions.js.map +1 -0
- package/lib/features/canvas/clips/clipsCut.js +177 -0
- package/lib/features/canvas/clips/clipsCut.js.map +1 -0
- package/lib/features/canvas/clips/clipsPlan.js +264 -0
- package/lib/features/canvas/clips/clipsPlan.js.map +1 -0
- package/lib/features/canvas/clips/clipsRpc.js +393 -0
- package/lib/features/canvas/clips/clipsRpc.js.map +1 -0
- package/lib/features/canvas/clips/clipsStore.js +54 -0
- package/lib/features/canvas/clips/clipsStore.js.map +1 -0
- package/lib/features/canvas/clips/useClipsPlan.js +534 -0
- package/lib/features/canvas/clips/useClipsPlan.js.map +1 -0
- package/lib/features/canvas/community/CommunitySheets.js +504 -0
- package/lib/features/canvas/community/CommunitySheets.js.map +1 -0
- package/lib/features/canvas/community/communityRpc.js +348 -0
- package/lib/features/canvas/community/communityRpc.js.map +1 -0
- package/lib/features/canvas/community/editToolIds.js +3 -0
- package/lib/features/canvas/community/editToolIds.js.map +1 -0
- package/lib/features/canvas/community/provenance.js +63 -0
- package/lib/features/canvas/community/provenance.js.map +1 -0
- package/lib/features/canvas/community/publish.js +164 -0
- package/lib/features/canvas/community/publish.js.map +1 -0
- package/lib/features/canvas/community/recipe.js +255 -0
- package/lib/features/canvas/community/recipe.js.map +1 -0
- package/lib/features/canvas/community/recreate.js +159 -0
- package/lib/features/canvas/community/recreate.js.map +1 -0
- package/lib/features/canvas/community/swapPrompt.js +11 -0
- package/lib/features/canvas/community/swapPrompt.js.map +1 -0
- package/lib/features/canvas/connect/connectApp.js +15 -0
- package/lib/features/canvas/connect/connectApp.js.map +1 -0
- package/lib/features/canvas/createTiles.js +1 -25
- package/lib/features/canvas/createTiles.js.map +1 -1
- package/lib/features/canvas/deepLinks.js +78 -1
- package/lib/features/canvas/deepLinks.js.map +1 -1
- package/lib/features/canvas/editTools.js +138 -15
- package/lib/features/canvas/editTools.js.map +1 -1
- package/lib/features/canvas/effects/EffectsControls.js +377 -0
- package/lib/features/canvas/effects/EffectsControls.js.map +1 -0
- package/lib/features/canvas/effects/EffectsHub.js +289 -0
- package/lib/features/canvas/effects/EffectsHub.js.map +1 -0
- package/lib/features/canvas/effects/effectChains.js +95 -0
- package/lib/features/canvas/effects/effectChains.js.map +1 -0
- package/lib/features/canvas/effects/effectFamilies.js +137 -0
- package/lib/features/canvas/effects/effectFamilies.js.map +1 -0
- package/lib/features/canvas/effects/effectLibrary.js +143 -0
- package/lib/features/canvas/effects/effectLibrary.js.map +1 -0
- package/lib/features/canvas/effects/hubChains.js +454 -0
- package/lib/features/canvas/effects/hubChains.js.map +1 -0
- package/lib/features/canvas/effects/motionFamilies.js +226 -0
- package/lib/features/canvas/effects/motionFamilies.js.map +1 -0
- package/lib/features/canvas/effects/videoSeed.js +40 -0
- package/lib/features/canvas/effects/videoSeed.js.map +1 -0
- package/lib/features/canvas/elements/ElementForm.js +109 -16
- package/lib/features/canvas/elements/ElementForm.js.map +1 -1
- package/lib/features/canvas/elements/ElementImport.js +206 -0
- package/lib/features/canvas/elements/ElementImport.js.map +1 -0
- package/lib/features/canvas/elements/ElementMediaFields.js +365 -0
- package/lib/features/canvas/elements/ElementMediaFields.js.map +1 -0
- package/lib/features/canvas/elements/ElementMentionMenu.js +31 -7
- package/lib/features/canvas/elements/ElementMentionMenu.js.map +1 -1
- package/lib/features/canvas/elements/ElementThumb.js +32 -1
- package/lib/features/canvas/elements/ElementThumb.js.map +1 -1
- package/lib/features/canvas/elements/ElementsSheet.js +394 -31
- package/lib/features/canvas/elements/ElementsSheet.js.map +1 -1
- package/lib/features/canvas/elements/MentionedElements.js +3 -3
- package/lib/features/canvas/elements/MentionedElements.js.map +1 -1
- package/lib/features/canvas/elements/elementCopy.js +34 -13
- package/lib/features/canvas/elements/elementCopy.js.map +1 -1
- package/lib/features/canvas/elements/elementShare.js +264 -0
- package/lib/features/canvas/elements/elementShare.js.map +1 -0
- package/lib/features/canvas/elements/elementsStore.js +609 -41
- package/lib/features/canvas/elements/elementsStore.js.map +1 -1
- package/lib/features/canvas/elements/elementsSwitchState.js +30 -0
- package/lib/features/canvas/elements/elementsSwitchState.js.map +1 -0
- package/lib/features/canvas/elements/importElements.js +512 -0
- package/lib/features/canvas/elements/importElements.js.map +1 -0
- package/lib/features/canvas/elements/importWithModel.js +54 -0
- package/lib/features/canvas/elements/importWithModel.js.map +1 -0
- package/lib/features/canvas/elements/officeText.js +97 -0
- package/lib/features/canvas/elements/officeText.js.map +1 -0
- package/lib/features/canvas/elements/turnaround.js +104 -0
- package/lib/features/canvas/elements/turnaround.js.map +1 -0
- package/lib/features/canvas/elements/useGeneratorElements.js +47 -8
- package/lib/features/canvas/elements/useGeneratorElements.js.map +1 -1
- package/lib/features/canvas/elements/useSavedElements.js +164 -14
- package/lib/features/canvas/elements/useSavedElements.js.map +1 -1
- package/lib/features/canvas/elements/zipRead.js +222 -0
- package/lib/features/canvas/elements/zipRead.js.map +1 -0
- package/lib/features/canvas/enhance/AnimateControls.js +296 -90
- package/lib/features/canvas/enhance/AnimateControls.js.map +1 -1
- package/lib/features/canvas/enhance/ClipAudioControls.js +219 -7
- package/lib/features/canvas/enhance/ClipAudioControls.js.map +1 -1
- package/lib/features/canvas/enhance/GarmentCatalogPicker.js +45 -0
- package/lib/features/canvas/enhance/GarmentCatalogPicker.js.map +1 -0
- package/lib/features/canvas/enhance/ImageAiControls.js +181 -25
- package/lib/features/canvas/enhance/ImageAiControls.js.map +1 -1
- package/lib/features/canvas/enhance/PixelToolControls.js +122 -11
- package/lib/features/canvas/enhance/PixelToolControls.js.map +1 -1
- package/lib/features/canvas/enhance/RemixControls.js +406 -62
- package/lib/features/canvas/enhance/RemixControls.js.map +1 -1
- package/lib/features/canvas/enhance/StylistControls.js +329 -0
- package/lib/features/canvas/enhance/StylistControls.js.map +1 -0
- package/lib/features/canvas/enhance/enhanceUi.js +1 -1
- package/lib/features/canvas/enhance/garmentCatalog.js +248 -0
- package/lib/features/canvas/enhance/garmentCatalog.js.map +1 -0
- package/lib/features/canvas/enhance/imageEnhanceListing.js +113 -0
- package/lib/features/canvas/enhance/imageEnhanceListing.js.map +1 -0
- package/lib/features/canvas/enhance/motionOptions.js +165 -0
- package/lib/features/canvas/enhance/motionOptions.js.map +1 -0
- package/lib/features/canvas/enhance/myStyles.js +81 -0
- package/lib/features/canvas/enhance/myStyles.js.map +1 -0
- package/lib/features/canvas/enhance/postRemix.js +129 -0
- package/lib/features/canvas/enhance/postRemix.js.map +1 -0
- package/lib/features/canvas/enhance/relightWords.js +135 -0
- package/lib/features/canvas/enhance/relightWords.js.map +1 -0
- package/lib/features/canvas/enhance/remixCatalog.js +171 -0
- package/lib/features/canvas/enhance/remixCatalog.js.map +1 -0
- package/lib/features/canvas/enhance/stylist.js +119 -0
- package/lib/features/canvas/enhance/stylist.js.map +1 -0
- package/lib/features/canvas/enhance/upscaleWords.js +65 -0
- package/lib/features/canvas/enhance/upscaleWords.js.map +1 -0
- package/lib/features/canvas/enhance/useEnhanceRunner.js +57 -18
- package/lib/features/canvas/enhance/useEnhanceRunner.js.map +1 -1
- package/lib/features/canvas/enhanceCatalog.js +256 -9
- package/lib/features/canvas/enhanceCatalog.js.map +1 -1
- package/lib/features/canvas/enhanceOps.js +485 -121
- package/lib/features/canvas/enhanceOps.js.map +1 -1
- package/lib/features/canvas/enhancePending.js +151 -0
- package/lib/features/canvas/enhancePending.js.map +1 -0
- package/lib/features/canvas/enhanceRpc.js +202 -45
- package/lib/features/canvas/enhanceRpc.js.map +1 -1
- package/lib/features/canvas/extendVideo.js +6 -1
- package/lib/features/canvas/extendVideo.js.map +1 -1
- package/lib/features/canvas/featured/FeaturedPanel.js +134 -0
- package/lib/features/canvas/featured/FeaturedPanel.js.map +1 -0
- package/lib/features/canvas/frameExtract.js +3 -1
- package/lib/features/canvas/frameExtract.js.map +1 -1
- package/lib/features/canvas/generationModels.js +118 -18
- package/lib/features/canvas/generationModels.js.map +1 -1
- package/lib/features/canvas/generator/BottomSheet.js +55 -4
- package/lib/features/canvas/generator/BottomSheet.js.map +1 -1
- package/lib/features/canvas/generator/DirectorSheet.js +97 -11
- package/lib/features/canvas/generator/DirectorSheet.js.map +1 -1
- package/lib/features/canvas/generator/EditStyleFields.js +38 -0
- package/lib/features/canvas/generator/EditStyleFields.js.map +1 -0
- package/lib/features/canvas/generator/GeneratorModelMenu.js +70 -23
- package/lib/features/canvas/generator/GeneratorModelMenu.js.map +1 -1
- package/lib/features/canvas/generator/appClip.js +109 -0
- package/lib/features/canvas/generator/appClip.js.map +1 -0
- package/lib/features/canvas/generator/audio/AudioHistory.js +126 -0
- package/lib/features/canvas/generator/audio/AudioHistory.js.map +1 -0
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js +72 -6
- package/lib/features/canvas/generator/audio/AudioLaneSettings.js.map +1 -1
- package/lib/features/canvas/generator/audio/SpeechControls.js +465 -0
- package/lib/features/canvas/generator/audio/SpeechControls.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioHistoryRows.js +65 -0
- package/lib/features/canvas/generator/audio/audioHistoryRows.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioLane.js +139 -19
- package/lib/features/canvas/generator/audio/audioLane.js.map +1 -1
- package/lib/features/canvas/generator/audio/audioModelCaps.js +176 -0
- package/lib/features/canvas/generator/audio/audioModelCaps.js.map +1 -0
- package/lib/features/canvas/generator/audio/audioRunParams.js +72 -0
- package/lib/features/canvas/generator/audio/audioRunParams.js.map +1 -0
- package/lib/features/canvas/generator/audio/clipAudio.js +122 -13
- package/lib/features/canvas/generator/audio/clipAudio.js.map +1 -1
- package/lib/features/canvas/generator/audio/dialogue.js +101 -0
- package/lib/features/canvas/generator/audio/dialogue.js.map +1 -0
- package/lib/features/canvas/generator/audio/lineVoice.js +67 -0
- package/lib/features/canvas/generator/audio/lineVoice.js.map +1 -0
- package/lib/features/canvas/generator/audio/lipSyncSpeakers.js +50 -0
- package/lib/features/canvas/generator/audio/lipSyncSpeakers.js.map +1 -0
- package/lib/features/canvas/generator/audio/micLine.js +14 -0
- package/lib/features/canvas/generator/audio/micLine.js.map +1 -0
- package/lib/features/canvas/generator/audio/namedReferences.js +54 -0
- package/lib/features/canvas/generator/audio/namedReferences.js.map +1 -0
- package/lib/features/canvas/generator/audio/scene.js +137 -0
- package/lib/features/canvas/generator/audio/scene.js.map +1 -0
- package/lib/features/canvas/generator/audio/talkingAvatars.js +42 -0
- package/lib/features/canvas/generator/audio/talkingAvatars.js.map +1 -0
- package/lib/features/canvas/generator/audio/useVoiceLibrary.js +34 -0
- package/lib/features/canvas/generator/audio/useVoiceLibrary.js.map +1 -0
- package/lib/features/canvas/generator/audio/voiceLibrary.js +360 -0
- package/lib/features/canvas/generator/audio/voiceLibrary.js.map +1 -0
- package/lib/features/canvas/generator/audio/voiceMentions.js +103 -0
- package/lib/features/canvas/generator/audio/voiceMentions.js.map +1 -0
- package/lib/features/canvas/generator/batchImages.js +81 -28
- package/lib/features/canvas/generator/batchImages.js.map +1 -1
- package/lib/features/canvas/generator/batchLayout.js +22 -9
- package/lib/features/canvas/generator/batchLayout.js.map +1 -1
- package/lib/features/canvas/generator/brandKitGeneration.js +4 -1
- package/lib/features/canvas/generator/brandKitGeneration.js.map +1 -1
- package/lib/features/canvas/generator/cameraVocabulary.js +177 -2
- package/lib/features/canvas/generator/cameraVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/cinema/composerHandoff.js +18 -0
- package/lib/features/canvas/generator/cinema/composerHandoff.js.map +1 -0
- package/lib/features/canvas/generator/cinema/filmLook.js +30 -0
- package/lib/features/canvas/generator/cinema/filmLook.js.map +1 -0
- package/lib/features/canvas/generator/cinema/nativeCamera.js +14 -0
- package/lib/features/canvas/generator/cinema/nativeCamera.js.map +1 -0
- package/lib/features/canvas/generator/cinema/nativeCinema.js +101 -0
- package/lib/features/canvas/generator/cinema/nativeCinema.js.map +1 -0
- package/lib/features/canvas/generator/cinema/presetPictures.js +80 -0
- package/lib/features/canvas/generator/cinema/presetPictures.js.map +1 -0
- package/lib/features/canvas/generator/cinema/shotPlan.js +58 -0
- package/lib/features/canvas/generator/cinema/shotPlan.js.map +1 -0
- package/lib/features/canvas/generator/cinema/useFilmLook.js +4 -0
- package/lib/features/canvas/generator/cinema/useFilmLook.js.map +1 -0
- package/lib/features/canvas/generator/cinematicVocabulary.js +296 -3
- package/lib/features/canvas/generator/cinematicVocabulary.js.map +1 -1
- package/lib/features/canvas/generator/direction.js +3 -3
- package/lib/features/canvas/generator/direction.js.map +1 -1
- package/lib/features/canvas/generator/editStyles.js +95 -0
- package/lib/features/canvas/generator/editStyles.js.map +1 -0
- package/lib/features/canvas/generator/elementMentions.js +389 -29
- package/lib/features/canvas/generator/elementMentions.js.map +1 -1
- package/lib/features/canvas/generator/image/ImageOptionPills.js +382 -0
- package/lib/features/canvas/generator/image/ImageOptionPills.js.map +1 -0
- package/lib/features/canvas/generator/image/colorSignatures.js +128 -0
- package/lib/features/canvas/generator/image/colorSignatures.js.map +1 -0
- package/lib/features/canvas/generator/image/generateCost.js +5 -0
- package/lib/features/canvas/generator/image/generateCost.js.map +1 -0
- package/lib/features/canvas/generator/image/imageFraming.js +39 -0
- package/lib/features/canvas/generator/image/imageFraming.js.map +1 -0
- package/lib/features/canvas/generator/image/imageModelCaps.js +178 -0
- package/lib/features/canvas/generator/image/imageModelCaps.js.map +1 -0
- package/lib/features/canvas/generator/image/imageModelRouting.js +34 -0
- package/lib/features/canvas/generator/image/imageModelRouting.js.map +1 -0
- package/lib/features/canvas/generator/image/imageOutput.js +97 -0
- package/lib/features/canvas/generator/image/imageOutput.js.map +1 -0
- package/lib/features/canvas/generator/image/imageResolutions.js +10 -0
- package/lib/features/canvas/generator/image/imageResolutions.js.map +1 -0
- package/lib/features/canvas/generator/image/imageRun.js +55 -0
- package/lib/features/canvas/generator/image/imageRun.js.map +1 -0
- package/lib/features/canvas/generator/image/imageStyle.js +20 -0
- package/lib/features/canvas/generator/image/imageStyle.js.map +1 -0
- package/lib/features/canvas/generator/image/palette.js +99 -0
- package/lib/features/canvas/generator/image/palette.js.map +1 -0
- package/lib/features/canvas/generator/image/pictureColors.js +19 -0
- package/lib/features/canvas/generator/image/pictureColors.js.map +1 -0
- package/lib/features/canvas/generator/image/referenceCap.js +11 -0
- package/lib/features/canvas/generator/image/referenceCap.js.map +1 -0
- package/lib/features/canvas/generator/image/referenceLimit.js +6 -0
- package/lib/features/canvas/generator/image/referenceLimit.js.map +1 -0
- package/lib/features/canvas/generator/image/soulIdPick.js +52 -0
- package/lib/features/canvas/generator/image/soulIdPick.js.map +1 -0
- package/lib/features/canvas/generator/image/stylePictures.js +89 -0
- package/lib/features/canvas/generator/image/stylePictures.js.map +1 -0
- package/lib/features/canvas/generator/image/trainedImageRun.js +79 -0
- package/lib/features/canvas/generator/image/trainedImageRun.js.map +1 -0
- package/lib/features/canvas/generator/image/useImageComposer.js +66 -0
- package/lib/features/canvas/generator/image/useImageComposer.js.map +1 -0
- package/lib/features/canvas/generator/promoScript.js +17 -0
- package/lib/features/canvas/generator/promoScript.js.map +1 -0
- package/lib/features/canvas/generator/providerWords.js +18 -0
- package/lib/features/canvas/generator/providerWords.js.map +1 -0
- package/lib/features/canvas/generator/reuse/BatchCountPill.js +74 -13
- package/lib/features/canvas/generator/reuse/BatchCountPill.js.map +1 -1
- package/lib/features/canvas/generator/reuse/BatchStop.js +94 -0
- package/lib/features/canvas/generator/reuse/BatchStop.js.map +1 -0
- package/lib/features/canvas/generator/reuse/generationRecord.js +6 -2
- package/lib/features/canvas/generator/reuse/generationRecord.js.map +1 -1
- package/lib/features/canvas/generator/reuse/runBoard.js +21 -6
- package/lib/features/canvas/generator/reuse/runBoard.js.map +1 -1
- package/lib/features/canvas/generator/video/VideoContractControls.js +342 -0
- package/lib/features/canvas/generator/video/VideoContractControls.js.map +1 -0
- package/lib/features/canvas/generator/video/VideoExtrasControls.js +23 -6
- package/lib/features/canvas/generator/video/VideoExtrasControls.js.map +1 -1
- package/lib/features/canvas/generator/video/VoiceSoundtrack.js +152 -0
- package/lib/features/canvas/generator/video/VoiceSoundtrack.js.map +1 -0
- package/lib/features/canvas/generator/video/drivingAudio.js +33 -0
- package/lib/features/canvas/generator/video/drivingAudio.js.map +1 -0
- package/lib/features/canvas/generator/video/referenceMedia.js +9 -6
- package/lib/features/canvas/generator/video/referenceMedia.js.map +1 -1
- package/lib/features/canvas/generator/video/referenceTrim.js +54 -0
- package/lib/features/canvas/generator/video/referenceTrim.js.map +1 -0
- package/lib/features/canvas/generator/video/useVideoGenExtras.js +1 -1
- package/lib/features/canvas/generator/video/useVideoGenExtras.js.map +1 -1
- package/lib/features/canvas/generator/video/useVideoShotPlan.js +148 -0
- package/lib/features/canvas/generator/video/useVideoShotPlan.js.map +1 -0
- package/lib/features/canvas/generator/video/videoAdvanced.js +93 -0
- package/lib/features/canvas/generator/video/videoAdvanced.js.map +1 -0
- package/lib/features/canvas/generator/video/videoBatch.js +197 -0
- package/lib/features/canvas/generator/video/videoBatch.js.map +1 -0
- package/lib/features/canvas/generator/video/videoBatchSummary.js +51 -0
- package/lib/features/canvas/generator/video/videoBatchSummary.js.map +1 -0
- package/lib/features/canvas/generator/video/videoBitrate.js +27 -0
- package/lib/features/canvas/generator/video/videoBitrate.js.map +1 -0
- package/lib/features/canvas/generator/video/videoExtras.js +8 -4
- package/lib/features/canvas/generator/video/videoExtras.js.map +1 -1
- package/lib/features/canvas/generator/video/videoGenContract.js +155 -0
- package/lib/features/canvas/generator/video/videoGenContract.js.map +1 -0
- package/lib/features/canvas/generator/video/videoModelCaps.js +21 -11
- package/lib/features/canvas/generator/video/videoModelCaps.js.map +1 -1
- package/lib/features/canvas/generator/video/videoModelTiers.js +61 -0
- package/lib/features/canvas/generator/video/videoModelTiers.js.map +1 -0
- package/lib/features/canvas/generator/video/voiceClips.js +145 -0
- package/lib/features/canvas/generator/video/voiceClips.js.map +1 -0
- package/lib/features/canvas/generatorReferences.js +12 -11
- package/lib/features/canvas/generatorReferences.js.map +1 -1
- package/lib/features/canvas/history/HistoryPanel.js +283 -0
- package/lib/features/canvas/history/HistoryPanel.js.map +1 -0
- package/lib/features/canvas/history/historyIndex.js +199 -0
- package/lib/features/canvas/history/historyIndex.js.map +1 -0
- package/lib/features/canvas/history/toolRuns.js +64 -0
- package/lib/features/canvas/history/toolRuns.js.map +1 -0
- package/lib/features/canvas/home/BoardMenuSheet.js +14 -4
- package/lib/features/canvas/home/BoardMenuSheet.js.map +1 -1
- package/lib/features/canvas/home/BoardTile.js +1 -1
- package/lib/features/canvas/home/FolderSheets.js +196 -0
- package/lib/features/canvas/home/FolderSheets.js.map +1 -0
- package/lib/features/canvas/home/HeroComposer.js +7 -3
- package/lib/features/canvas/home/HeroComposer.js.map +1 -1
- package/lib/features/canvas/home/heroShots.js.map +1 -1
- package/lib/features/canvas/home/useYourWork.js +183 -4
- package/lib/features/canvas/home/useYourWork.js.map +1 -1
- package/lib/features/canvas/homeWork.js +14 -2
- package/lib/features/canvas/homeWork.js.map +1 -1
- package/lib/features/canvas/imageEditor/CropFrame.js +146 -0
- package/lib/features/canvas/imageEditor/CropFrame.js.map +1 -0
- package/lib/features/canvas/imageEditor/GradeSection.js +351 -0
- package/lib/features/canvas/imageEditor/GradeSection.js.map +1 -0
- package/lib/features/canvas/imageEditor/cropExpand.js +86 -0
- package/lib/features/canvas/imageEditor/cropExpand.js.map +1 -0
- package/lib/features/canvas/imageEditor/grade.js +376 -0
- package/lib/features/canvas/imageEditor/grade.js.map +1 -0
- package/lib/features/canvas/imageEditor/gradeHistory.js +33 -0
- package/lib/features/canvas/imageEditor/gradeHistory.js.map +1 -0
- package/lib/features/canvas/imageEditor/skiaPixels.js +117 -0
- package/lib/features/canvas/imageEditor/skiaPixels.js.map +1 -0
- package/lib/features/canvas/influencer/OnCameraFields.js +357 -0
- package/lib/features/canvas/influencer/OnCameraFields.js.map +1 -0
- package/lib/features/canvas/influencer/adDirection.js +282 -0
- package/lib/features/canvas/influencer/adDirection.js.map +1 -0
- package/lib/features/canvas/influencer/heldProduct.js +33 -0
- package/lib/features/canvas/influencer/heldProduct.js.map +1 -0
- package/lib/features/canvas/influencer/influencerPipeline.js +159 -74
- package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -1
- package/lib/features/canvas/influencer/presenters.js +94 -0
- package/lib/features/canvas/influencer/presenters.js.map +1 -0
- package/lib/features/canvas/influencer/productInShot.js +39 -0
- package/lib/features/canvas/influencer/productInShot.js.map +1 -0
- package/lib/features/canvas/influencer/reelCast.js +107 -0
- package/lib/features/canvas/influencer/reelCast.js.map +1 -0
- package/lib/features/canvas/influencer/reelCost.js +29 -0
- package/lib/features/canvas/influencer/reelCost.js.map +1 -0
- package/lib/features/canvas/influencer/reelPlan.js +6 -2
- package/lib/features/canvas/influencer/reelPlan.js.map +1 -1
- package/lib/features/canvas/influencer/reelRun.js +229 -0
- package/lib/features/canvas/influencer/reelRun.js.map +1 -0
- package/lib/features/canvas/lazyEditors.js +3 -1
- package/lib/features/canvas/lazyEditors.js.map +1 -1
- package/lib/features/canvas/library/libraryDownload.js +221 -0
- package/lib/features/canvas/library/libraryDownload.js.map +1 -0
- package/lib/features/canvas/library/libraryStore.js +149 -0
- package/lib/features/canvas/library/libraryStore.js.map +1 -0
- package/lib/features/canvas/libraryIndex.js +714 -0
- package/lib/features/canvas/libraryIndex.js.map +1 -0
- package/lib/features/canvas/longform/NewSeriesForm.js +290 -0
- package/lib/features/canvas/longform/NewSeriesForm.js.map +1 -0
- package/lib/features/canvas/longform/SeriesStudio.js +528 -0
- package/lib/features/canvas/longform/SeriesStudio.js.map +1 -0
- package/lib/features/canvas/longform/episodes.js +137 -0
- package/lib/features/canvas/longform/episodes.js.map +1 -0
- package/lib/features/canvas/longform/manga.js +43 -0
- package/lib/features/canvas/longform/manga.js.map +1 -0
- package/lib/features/canvas/longform/narratorVoices.js +67 -0
- package/lib/features/canvas/longform/narratorVoices.js.map +1 -0
- package/lib/features/canvas/longform/planner.js +84 -0
- package/lib/features/canvas/longform/planner.js.map +1 -0
- package/lib/features/canvas/longform/productionCatalog.js +382 -0
- package/lib/features/canvas/longform/productionCatalog.js.map +1 -0
- package/lib/features/canvas/longform/productionResolution.js +11 -0
- package/lib/features/canvas/longform/productionResolution.js.map +1 -0
- package/lib/features/canvas/longform/seriesHost.js +77 -0
- package/lib/features/canvas/longform/seriesHost.js.map +1 -0
- package/lib/features/canvas/longform/seriesList.js +125 -0
- package/lib/features/canvas/longform/seriesList.js.map +1 -0
- package/lib/features/canvas/longform/seriesStore.js +287 -0
- package/lib/features/canvas/longform/seriesStore.js.map +1 -0
- package/lib/features/canvas/longform/styleOrder.js +9 -0
- package/lib/features/canvas/longform/styleOrder.js.map +1 -0
- package/lib/features/canvas/marketing/AdReferenceTool.js +171 -0
- package/lib/features/canvas/marketing/AdReferenceTool.js.map +1 -0
- package/lib/features/canvas/marketing/CatalogPanel.js +163 -0
- package/lib/features/canvas/marketing/CatalogPanel.js.map +1 -0
- package/lib/features/canvas/marketing/DraftLines.js +34 -0
- package/lib/features/canvas/marketing/DraftLines.js.map +1 -0
- package/lib/features/canvas/marketing/LibrarySection.js +130 -0
- package/lib/features/canvas/marketing/LibrarySection.js.map +1 -0
- package/lib/features/canvas/marketing/PersonPicker.js +131 -0
- package/lib/features/canvas/marketing/PersonPicker.js.map +1 -0
- package/lib/features/canvas/marketing/ProductPanel.js +603 -0
- package/lib/features/canvas/marketing/ProductPanel.js.map +1 -0
- package/lib/features/canvas/marketing/ProductTools.js +648 -0
- package/lib/features/canvas/marketing/ProductTools.js.map +1 -0
- package/lib/features/canvas/marketing/UgcPresetCards.js +139 -0
- package/lib/features/canvas/marketing/UgcPresetCards.js.map +1 -0
- package/lib/features/canvas/marketing/adReference.js +97 -0
- package/lib/features/canvas/marketing/adReference.js.map +1 -0
- package/lib/features/canvas/marketing/adReferenceActions.js +151 -0
- package/lib/features/canvas/marketing/adReferenceActions.js.map +1 -0
- package/lib/features/canvas/marketing/adSet.js +215 -0
- package/lib/features/canvas/marketing/adSet.js.map +1 -0
- package/lib/features/canvas/marketing/brandIdentity.js +330 -0
- package/lib/features/canvas/marketing/brandIdentity.js.map +1 -0
- package/lib/features/canvas/marketing/captionTranslate.js +25 -0
- package/lib/features/canvas/marketing/captionTranslate.js.map +1 -0
- package/lib/features/canvas/marketing/catalogImport.js +272 -0
- package/lib/features/canvas/marketing/catalogImport.js.map +1 -0
- package/lib/features/canvas/marketing/cells.js +70 -0
- package/lib/features/canvas/marketing/cells.js.map +1 -0
- package/lib/features/canvas/marketing/cleanOffer.js +41 -0
- package/lib/features/canvas/marketing/cleanOffer.js.map +1 -0
- package/lib/features/canvas/marketing/handoffs.js +184 -0
- package/lib/features/canvas/marketing/handoffs.js.map +1 -0
- package/lib/features/canvas/marketing/marketplaceSet.js +76 -0
- package/lib/features/canvas/marketing/marketplaceSet.js.map +1 -0
- package/lib/features/canvas/marketing/multiplier.js +256 -0
- package/lib/features/canvas/marketing/multiplier.js.map +1 -0
- package/lib/features/canvas/marketing/pastedDetails.js +53 -0
- package/lib/features/canvas/marketing/pastedDetails.js.map +1 -0
- package/lib/features/canvas/marketing/product.js +151 -0
- package/lib/features/canvas/marketing/product.js.map +1 -0
- package/lib/features/canvas/marketing/productActions.js +708 -0
- package/lib/features/canvas/marketing/productActions.js.map +1 -0
- package/lib/features/canvas/marketing/productDraft.js +68 -0
- package/lib/features/canvas/marketing/productDraft.js.map +1 -0
- package/lib/features/canvas/marketing/productLibrary.js +116 -0
- package/lib/features/canvas/marketing/productLibrary.js.map +1 -0
- package/lib/features/canvas/marketing/productPage.js +340 -0
- package/lib/features/canvas/marketing/productPage.js.map +1 -0
- package/lib/features/canvas/marketing/productStore.js +162 -0
- package/lib/features/canvas/marketing/productStore.js.map +1 -0
- package/lib/features/canvas/marketing/research.js +233 -0
- package/lib/features/canvas/marketing/research.js.map +1 -0
- package/lib/features/canvas/marketing/shotStyles.js +96 -0
- package/lib/features/canvas/marketing/shotStyles.js.map +1 -0
- package/lib/features/canvas/marketing/templates.js +152 -0
- package/lib/features/canvas/marketing/templates.js.map +1 -0
- package/lib/features/canvas/marketing/ugcPresetArt.js +175 -0
- package/lib/features/canvas/marketing/ugcPresetArt.js.map +1 -0
- package/lib/features/canvas/marketing/videoAd.js +6 -0
- package/lib/features/canvas/marketing/videoAd.js.map +1 -0
- package/lib/features/canvas/marketing/videoMultiplier.js +373 -0
- package/lib/features/canvas/marketing/videoMultiplier.js.map +1 -0
- package/lib/features/canvas/mask/MaskPainter.js +125 -0
- package/lib/features/canvas/mask/MaskPainter.js.map +1 -0
- package/lib/features/canvas/mask/maskRaster.js +222 -0
- package/lib/features/canvas/mask/maskRaster.js.map +1 -0
- package/lib/features/canvas/native/nativeCaps.js +82 -0
- package/lib/features/canvas/native/nativeCaps.js.map +1 -0
- package/lib/features/canvas/nativeViewerRegistry.js.map +1 -1
- package/lib/features/canvas/nav/CanvasTopNav.js +220 -0
- package/lib/features/canvas/nav/CanvasTopNav.js.map +1 -0
- package/lib/features/canvas/nav/FeaturePage.js +207 -0
- package/lib/features/canvas/nav/FeaturePage.js.map +1 -0
- package/lib/features/canvas/nav/canvasView.js +40 -0
- package/lib/features/canvas/nav/canvasView.js.map +1 -0
- package/lib/features/canvas/nav/features.js +334 -0
- package/lib/features/canvas/nav/features.js.map +1 -0
- package/lib/features/canvas/promoVideo.js +154 -21
- package/lib/features/canvas/promoVideo.js.map +1 -1
- package/lib/features/canvas/recorder/recorderOps.js +12 -1
- package/lib/features/canvas/recorder/recorderOps.js.map +1 -1
- package/lib/features/canvas/set/SetViewport.js +817 -0
- package/lib/features/canvas/set/SetViewport.js.map +1 -0
- package/lib/features/canvas/set/agent/agentTurn.js +178 -0
- package/lib/features/canvas/set/agent/agentTurn.js.map +1 -0
- package/lib/features/canvas/set/agent/brain.js +104 -0
- package/lib/features/canvas/set/agent/brain.js.map +1 -0
- package/lib/features/canvas/set/agent/prompt.js +90 -5
- package/lib/features/canvas/set/agent/prompt.js.map +1 -1
- package/lib/features/canvas/set/agent/reference.js +131 -0
- package/lib/features/canvas/set/agent/reference.js.map +1 -0
- package/lib/features/canvas/set/agent/review.js +141 -0
- package/lib/features/canvas/set/agent/review.js.map +1 -0
- package/lib/features/canvas/set/agent/setOps.js +322 -18
- package/lib/features/canvas/set/agent/setOps.js.map +1 -1
- package/lib/features/canvas/set/agent/setTurn.js +39 -94
- package/lib/features/canvas/set/agent/setTurn.js.map +1 -1
- package/lib/features/canvas/set/agent/snapshot.js +71 -6
- package/lib/features/canvas/set/agent/snapshot.js.map +1 -1
- package/lib/features/canvas/set/agent/surveyPlan.js +223 -0
- package/lib/features/canvas/set/agent/surveyPlan.js.map +1 -0
- package/lib/features/canvas/set/agent/tools.js +1735 -176
- package/lib/features/canvas/set/agent/tools.js.map +1 -1
- package/lib/features/canvas/set/agent/useSetAgent.js +399 -0
- package/lib/features/canvas/set/agent/useSetAgent.js.map +1 -0
- package/lib/features/canvas/set/animation.js +637 -0
- package/lib/features/canvas/set/animation.js.map +1 -0
- package/lib/features/canvas/set/backup.js +107 -0
- package/lib/features/canvas/set/backup.js.map +1 -0
- package/lib/features/canvas/set/cameraPath.js.map +1 -1
- package/lib/features/canvas/set/cleanMeshRuns.js +82 -0
- package/lib/features/canvas/set/cleanMeshRuns.js.map +1 -0
- package/lib/features/canvas/set/continuity.js +162 -0
- package/lib/features/canvas/set/continuity.js.map +1 -0
- package/lib/features/canvas/set/drawPreview.js +74 -0
- package/lib/features/canvas/set/drawPreview.js.map +1 -0
- package/lib/features/canvas/set/drawnPath.js +175 -0
- package/lib/features/canvas/set/drawnPath.js.map +1 -0
- package/lib/features/canvas/set/endCard.js +68 -0
- package/lib/features/canvas/set/endCard.js.map +1 -0
- package/lib/features/canvas/set/figure.js +448 -0
- package/lib/features/canvas/set/figure.js.map +1 -0
- package/lib/features/canvas/set/filmParts.js +81 -0
- package/lib/features/canvas/set/filmParts.js.map +1 -0
- package/lib/features/canvas/set/filmShot.js +142 -0
- package/lib/features/canvas/set/filmShot.js.map +1 -0
- package/lib/features/canvas/set/formations.js +207 -0
- package/lib/features/canvas/set/formations.js.map +1 -0
- package/lib/features/canvas/set/glAssets.js +113 -0
- package/lib/features/canvas/set/glAssets.js.map +1 -0
- package/lib/features/canvas/set/inspectorValues.js +3 -0
- package/lib/features/canvas/set/inspectorValues.js.map +1 -0
- package/lib/features/canvas/set/links.js +110 -0
- package/lib/features/canvas/set/links.js.map +1 -0
- package/lib/features/canvas/set/notes.js +72 -0
- package/lib/features/canvas/set/notes.js.map +1 -0
- package/lib/features/canvas/set/orbit.js +118 -0
- package/lib/features/canvas/set/orbit.js.map +1 -0
- package/lib/features/canvas/set/paidAsk.js +101 -0
- package/lib/features/canvas/set/paidAsk.js.map +1 -0
- package/lib/features/canvas/set/paidCost.js +94 -0
- package/lib/features/canvas/set/paidCost.js.map +1 -0
- package/lib/features/canvas/set/panels/BuildPanel.js +499 -0
- package/lib/features/canvas/set/panels/BuildPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/InspectorPanel.js +773 -0
- package/lib/features/canvas/set/panels/InspectorPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/ObjectsPanel.js +337 -0
- package/lib/features/canvas/set/panels/ObjectsPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/RenderPanel.js +1111 -0
- package/lib/features/canvas/set/panels/RenderPanel.js.map +1 -0
- package/lib/features/canvas/set/panels/TimelinePanel.js +883 -0
- package/lib/features/canvas/set/panels/TimelinePanel.js.map +1 -0
- package/lib/features/canvas/set/panels/WorldPanel.js +284 -0
- package/lib/features/canvas/set/panels/WorldPanel.js.map +1 -0
- package/lib/features/canvas/set/pickFile.js +22 -0
- package/lib/features/canvas/set/pickFile.js.map +1 -0
- package/lib/features/canvas/set/recording.js +155 -0
- package/lib/features/canvas/set/recording.js.map +1 -0
- package/lib/features/canvas/set/renderMove.js +92 -0
- package/lib/features/canvas/set/renderMove.js.map +1 -0
- package/lib/features/canvas/set/renderPrompt.js +12 -0
- package/lib/features/canvas/set/renderPrompt.js.map +1 -0
- package/lib/features/canvas/set/renderSize.js +44 -0
- package/lib/features/canvas/set/renderSize.js.map +1 -0
- package/lib/features/canvas/set/retime.js +96 -0
- package/lib/features/canvas/set/retime.js.map +1 -0
- package/lib/features/canvas/set/rigRuns.js +93 -0
- package/lib/features/canvas/set/rigRuns.js.map +1 -0
- package/lib/features/canvas/set/rotation.js +89 -0
- package/lib/features/canvas/set/rotation.js.map +1 -0
- package/lib/features/canvas/set/script.js +192 -0
- package/lib/features/canvas/set/script.js.map +1 -0
- package/lib/features/canvas/set/setFile.js +17 -0
- package/lib/features/canvas/set/setFile.js.map +1 -0
- package/lib/features/canvas/set/setRpc.js +263 -0
- package/lib/features/canvas/set/setRpc.js.map +1 -0
- package/lib/features/canvas/set/shotCamera.js +545 -0
- package/lib/features/canvas/set/shotCamera.js.map +1 -0
- package/lib/features/canvas/set/splatWorldJob.js +167 -0
- package/lib/features/canvas/set/splatWorldJob.js.map +1 -0
- package/lib/features/canvas/set/state.js +880 -0
- package/lib/features/canvas/set/state.js.map +1 -0
- package/lib/features/canvas/set/storyboard.js +168 -0
- package/lib/features/canvas/set/storyboard.js.map +1 -0
- package/lib/features/canvas/set/supplyLibrary.js +246 -89
- package/lib/features/canvas/set/supplyLibrary.js.map +1 -1
- package/lib/features/canvas/set/three/framing.js +30 -0
- package/lib/features/canvas/set/three/framing.js.map +1 -0
- package/lib/features/canvas/set/three/objects.js +296 -0
- package/lib/features/canvas/set/three/objects.js.map +1 -0
- package/lib/features/canvas/set/three/skeletonRig.js +108 -0
- package/lib/features/canvas/set/three/skeletonRig.js.map +1 -0
- package/lib/features/canvas/set/three/splatWorld.js +1 -0
- package/lib/features/canvas/set/three/splatWorld.js.map +1 -0
- package/lib/features/canvas/set/three/stage.js +1387 -0
- package/lib/features/canvas/set/three/stage.js.map +1 -0
- package/lib/features/canvas/set/three/threeLib.js +3 -0
- package/lib/features/canvas/set/three/threeLib.js.map +1 -0
- package/lib/features/canvas/set/transformClipboard.js +53 -0
- package/lib/features/canvas/set/transformClipboard.js.map +1 -0
- package/lib/features/canvas/set/types.js +609 -0
- package/lib/features/canvas/set/types.js.map +1 -0
- package/lib/features/canvas/set/ui/setUi.js +224 -0
- package/lib/features/canvas/set/ui/setUi.js.map +1 -0
- package/lib/features/canvas/shorts/ShortsControls.js +533 -0
- package/lib/features/canvas/shorts/ShortsControls.js.map +1 -0
- package/lib/features/canvas/shorts/shortsPlan.js +188 -0
- package/lib/features/canvas/shorts/shortsPlan.js.map +1 -0
- package/lib/features/canvas/shorts/shortsRun.js +609 -0
- package/lib/features/canvas/shorts/shortsRun.js.map +1 -0
- package/lib/features/canvas/shorts/shortsStore.js +240 -0
- package/lib/features/canvas/shorts/shortsStore.js.map +1 -0
- package/lib/features/canvas/shorts/shortsStyle.js +26 -0
- package/lib/features/canvas/shorts/shortsStyle.js.map +1 -0
- package/lib/features/canvas/skills/SkillsShowcase.js +153 -0
- package/lib/features/canvas/skills/SkillsShowcase.js.map +1 -0
- package/lib/features/canvas/skills/skillsCatalog.js +543 -0
- package/lib/features/canvas/skills/skillsCatalog.js.map +1 -0
- package/lib/features/canvas/storageLibrary.js +5 -1
- package/lib/features/canvas/storageLibrary.js.map +1 -1
- package/lib/features/canvas/surfaceIndex.js +3 -3
- package/lib/features/canvas/surfaceIndex.js.map +1 -1
- package/lib/features/canvas/useBoardDocument.js +126 -0
- package/lib/features/canvas/useBoardDocument.js.map +1 -0
- package/lib/features/canvas/video3d.js +167 -19
- package/lib/features/canvas/video3d.js.map +1 -1
- package/lib/features/canvas/videoClips.js +3 -42
- package/lib/features/canvas/videoClips.js.map +1 -1
- package/lib/features/canvas/videoEditor/EditorPanels.js +55 -4
- package/lib/features/canvas/videoEditor/EditorPanels.js.map +1 -1
- package/lib/features/canvas/videoEditor/OverlayStage.js +77 -0
- package/lib/features/canvas/videoEditor/OverlayStage.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/AgentCutPane.js +41 -8
- package/lib/features/canvas/videoEditor/agent/AgentCutPane.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/MakeVideoAsk.js +113 -0
- package/lib/features/canvas/videoEditor/agent/MakeVideoAsk.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/agentLoop.js +70 -22
- package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/cutTools.js +624 -63
- package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -1
- package/lib/features/canvas/videoEditor/agent/finishingOps.js +269 -0
- package/lib/features/canvas/videoEditor/agent/finishingOps.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/makeRequest.js +147 -0
- package/lib/features/canvas/videoEditor/agent/makeRequest.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/overlayTools.js +570 -0
- package/lib/features/canvas/videoEditor/agent/overlayTools.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/reference.js +163 -0
- package/lib/features/canvas/videoEditor/agent/reference.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/voiceLines.js +152 -0
- package/lib/features/canvas/videoEditor/agent/voiceLines.js.map +1 -0
- package/lib/features/canvas/videoEditor/backdrop.js +145 -0
- package/lib/features/canvas/videoEditor/backdrop.js.map +1 -0
- package/lib/features/canvas/videoEditor/captionLooks.js +334 -0
- package/lib/features/canvas/videoEditor/captionLooks.js.map +1 -0
- package/lib/features/canvas/videoEditor/captions.js +33 -1
- package/lib/features/canvas/videoEditor/captions.js.map +1 -1
- package/lib/features/canvas/videoEditor/compileTimeline.js +156 -11
- package/lib/features/canvas/videoEditor/compileTimeline.js.map +1 -1
- package/lib/features/canvas/videoEditor/editorModel.js +12 -4
- package/lib/features/canvas/videoEditor/editorModel.js.map +1 -1
- package/lib/features/canvas/videoEditor/exportPipeline.js +135 -6
- package/lib/features/canvas/videoEditor/exportPipeline.js.map +1 -1
- package/lib/features/canvas/videoEditor/exportTask.js +5 -3
- package/lib/features/canvas/videoEditor/exportTask.js.map +1 -1
- package/lib/features/canvas/videoEditor/layers.js +26 -4
- package/lib/features/canvas/videoEditor/layers.js.map +1 -1
- package/lib/features/canvas/videoEditor/mediaActions.js +7 -3
- package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -1
- package/lib/features/canvas/videoEditor/motion/apng.js +7 -0
- package/lib/features/canvas/videoEditor/motion/apng.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/bake.js +4 -0
- package/lib/features/canvas/videoEditor/motion/bake.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/fonts.js +185 -0
- package/lib/features/canvas/videoEditor/motion/fonts.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/presets.js +722 -0
- package/lib/features/canvas/videoEditor/motion/presets.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/skiaContext.js +437 -0
- package/lib/features/canvas/videoEditor/motion/skiaContext.js.map +1 -0
- package/lib/features/canvas/videoEditor/motion/spec.js +414 -0
- package/lib/features/canvas/videoEditor/motion/spec.js.map +1 -0
- package/lib/features/canvas/videoEditor/overlays.js +200 -0
- package/lib/features/canvas/videoEditor/overlays.js.map +1 -0
- package/lib/features/canvas/videoEditor/produce/produceScenes.js +96 -20
- package/lib/features/canvas/videoEditor/produce/produceScenes.js.map +1 -1
- package/lib/features/canvas/videoEditor/produce/speechPad.js +66 -0
- package/lib/features/canvas/videoEditor/produce/speechPad.js.map +1 -0
- package/lib/features/canvas/videoEditor/recreate/RecreateSection.js +318 -0
- package/lib/features/canvas/videoEditor/recreate/RecreateSection.js.map +1 -0
- package/lib/features/canvas/videoEditor/recreate/motionRecreate.js +294 -0
- package/lib/features/canvas/videoEditor/recreate/motionRecreate.js.map +1 -0
- package/lib/features/canvas/videoEditor/renewLinks.js +14 -4
- package/lib/features/canvas/videoEditor/renewLinks.js.map +1 -1
- package/lib/features/canvas/videoEditor/sceneLayers.js +5 -2
- package/lib/features/canvas/videoEditor/sceneLayers.js.map +1 -1
- package/lib/features/canvas/videoEditor/transitions.js +5 -1
- package/lib/features/canvas/videoEditor/transitions.js.map +1 -1
- package/lib/features/canvas/videoEditor/videoProjectsStore.js +6 -4
- package/lib/features/canvas/videoEditor/videoProjectsStore.js.map +1 -1
- package/lib/features/canvas/videoTools/VideoAiControls.js +432 -0
- package/lib/features/canvas/videoTools/VideoAiControls.js.map +1 -0
- package/lib/features/canvas/videoTools/capabilityPanels.js +349 -0
- package/lib/features/canvas/videoTools/capabilityPanels.js.map +1 -0
- package/lib/features/canvas/videoTools/frameMarks.js +73 -0
- package/lib/features/canvas/videoTools/frameMarks.js.map +1 -0
- package/lib/features/canvas/videoTools/videoDrafts.js +106 -0
- package/lib/features/canvas/videoTools/videoDrafts.js.map +1 -0
- package/lib/features/canvas/videoTools/videoEnhanceRpc.js +179 -0
- package/lib/features/canvas/videoTools/videoEnhanceRpc.js.map +1 -0
- package/lib/features/canvas/videoTools/videoToolCatalog.js +266 -0
- package/lib/features/canvas/videoTools/videoToolCatalog.js.map +1 -0
- package/lib/features/canvas/videoTools/videoToolOps.js +314 -0
- package/lib/features/canvas/videoTools/videoToolOps.js.map +1 -0
- package/lib/features/canvas/workflow/StepSheet.js +581 -0
- package/lib/features/canvas/workflow/StepSheet.js.map +1 -0
- package/lib/features/canvas/workflow/WorkflowExperience.js +702 -0
- package/lib/features/canvas/workflow/WorkflowExperience.js.map +1 -0
- package/lib/features/canvas/workflow/WorkflowPlane.js +319 -0
- package/lib/features/canvas/workflow/WorkflowPlane.js.map +1 -0
- package/lib/features/canvas/workflow/WorkflowSheets.js +346 -0
- package/lib/features/canvas/workflow/WorkflowSheets.js.map +1 -0
- package/lib/features/canvas/workflow/characterCards.js +23 -0
- package/lib/features/canvas/workflow/characterCards.js.map +1 -0
- package/lib/features/canvas/workflow/draftLane.js +73 -0
- package/lib/features/canvas/workflow/draftLane.js.map +1 -0
- package/lib/features/canvas/workflow/errors.js +8 -0
- package/lib/features/canvas/workflow/errors.js.map +1 -0
- package/lib/features/canvas/workflow/graphView.js +166 -0
- package/lib/features/canvas/workflow/graphView.js.map +1 -0
- package/lib/features/canvas/workflow/lookWords.js +11 -0
- package/lib/features/canvas/workflow/lookWords.js.map +1 -0
- package/lib/features/canvas/workflow/runLanding.js +140 -0
- package/lib/features/canvas/workflow/runLanding.js.map +1 -0
- package/lib/features/canvas/workflow/spend.js +41 -0
- package/lib/features/canvas/workflow/spend.js.map +1 -0
- package/lib/features/canvas/workflow/starters.js +339 -0
- package/lib/features/canvas/workflow/starters.js.map +1 -0
- package/lib/features/canvas/workflow/stepSignature.js +117 -0
- package/lib/features/canvas/workflow/stepSignature.js.map +1 -0
- package/lib/features/canvas/workflow/templateStore.js +227 -0
- package/lib/features/canvas/workflow/templateStore.js.map +1 -0
- package/lib/features/canvas/workflow/useWorkflow.js +1415 -0
- package/lib/features/canvas/workflow/useWorkflow.js.map +1 -0
- package/lib/features/canvas/workflow/workflowGraph.js +803 -0
- package/lib/features/canvas/workflow/workflowGraph.js.map +1 -0
- package/lib/features/canvas/workflow/workflowRunner.js +96 -0
- package/lib/features/canvas/workflow/workflowRunner.js.map +1 -0
- package/lib/features/canvas/workflow/workflowSteps.js +444 -0
- package/lib/features/canvas/workflow/workflowSteps.js.map +1 -0
- package/lib/features/canvas/workflow/workflowUi.js +212 -0
- package/lib/features/canvas/workflow/workflowUi.js.map +1 -0
- package/lib/features/chat/ComposerModeSwitch.js +37 -7
- package/lib/features/chat/ComposerModeSwitch.js.map +1 -1
- package/lib/features/chat/ShoppingResultsWidgetCard.js +152 -0
- package/lib/features/chat/ShoppingResultsWidgetCard.js.map +1 -0
- package/lib/features/chat/hostTranscriptProtocol.js +12 -2
- package/lib/features/chat/hostTranscriptProtocol.js.map +1 -1
- package/lib/features/design/surface/useBrandKitInUse.js +22 -10
- package/lib/features/design/surface/useBrandKitInUse.js.map +1 -1
- package/lib/features/shopping/BetterPricePanel.js +277 -0
- package/lib/features/shopping/BetterPricePanel.js.map +1 -0
- package/lib/features/shopping/CardOpeningNotice.js +67 -0
- package/lib/features/shopping/CardOpeningNotice.js.map +1 -0
- package/lib/features/shopping/CompareProducts.js +398 -0
- package/lib/features/shopping/CompareProducts.js.map +1 -0
- package/lib/features/shopping/CompareToggle.js +30 -0
- package/lib/features/shopping/CompareToggle.js.map +1 -0
- package/lib/features/shopping/DealCard.js +289 -0
- package/lib/features/shopping/DealCard.js.map +1 -0
- package/lib/features/shopping/DealRails.js +361 -0
- package/lib/features/shopping/DealRails.js.map +1 -0
- package/lib/features/shopping/DealsPanel.js +460 -171
- package/lib/features/shopping/DealsPanel.js.map +1 -1
- package/lib/features/shopping/DeliverToControl.js +189 -0
- package/lib/features/shopping/DeliverToControl.js.map +1 -0
- package/lib/features/shopping/HorizontalScroller.js +192 -0
- package/lib/features/shopping/HorizontalScroller.js.map +1 -0
- package/lib/features/shopping/ProductCard.js +440 -45
- package/lib/features/shopping/ProductCard.js.map +1 -1
- package/lib/features/shopping/ProductCardDetails.js +133 -0
- package/lib/features/shopping/ProductCardDetails.js.map +1 -0
- package/lib/features/shopping/ProductDetailSheet.js +279 -120
- package/lib/features/shopping/ProductDetailSheet.js.map +1 -1
- package/lib/features/shopping/ProductFilterBar.js +207 -77
- package/lib/features/shopping/ProductFilterBar.js.map +1 -1
- package/lib/features/shopping/ProductMediaCarousel.js +229 -0
- package/lib/features/shopping/ProductMediaCarousel.js.map +1 -0
- package/lib/features/shopping/ProductPageSections.js +448 -0
- package/lib/features/shopping/ProductPageSections.js.map +1 -0
- package/lib/features/shopping/ProductSwatches.js +136 -0
- package/lib/features/shopping/ProductSwatches.js.map +1 -0
- package/lib/features/shopping/ProductVideoSlide.js +117 -0
- package/lib/features/shopping/ProductVideoSlide.js.map +1 -0
- package/lib/features/shopping/RequirementChips.js +90 -0
- package/lib/features/shopping/RequirementChips.js.map +1 -0
- package/lib/features/shopping/SearchResults.js +608 -0
- package/lib/features/shopping/SearchResults.js.map +1 -0
- package/lib/features/shopping/ShoppingAgentChatPane.js +205 -87
- package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -1
- package/lib/features/shopping/ShoppingComputerMonitor.js +51 -0
- package/lib/features/shopping/ShoppingComputerMonitor.js.map +1 -0
- package/lib/features/shopping/ShoppingExperience.js +236 -296
- package/lib/features/shopping/ShoppingExperience.js.map +1 -1
- package/lib/features/shopping/ShoppingHero.js +321 -0
- package/lib/features/shopping/ShoppingHero.js.map +1 -0
- package/lib/features/shopping/TrendingSections.js +29 -23
- package/lib/features/shopping/TrendingSections.js.map +1 -1
- package/lib/features/shopping/WatchlistPanel.js +287 -63
- package/lib/features/shopping/WatchlistPanel.js.map +1 -1
- package/lib/features/shopping/cartCloudSync.js +17 -17
- package/lib/features/shopping/cartCloudSync.js.map +1 -1
- package/lib/features/shopping/catalog.js +46 -86
- package/lib/features/shopping/catalog.js.map +1 -1
- package/lib/features/shopping/chat/brainRouter.js +165 -0
- package/lib/features/shopping/chat/brainRouter.js.map +1 -0
- package/lib/features/shopping/chat/brainRouterKit.js +95 -0
- package/lib/features/shopping/chat/brainRouterKit.js.map +1 -0
- package/lib/features/shopping/chat/chatKit.js +93 -0
- package/lib/features/shopping/chat/chatKit.js.map +1 -0
- package/lib/features/shopping/chat/computerHandoff.js +13 -0
- package/lib/features/shopping/chat/computerHandoff.js.map +1 -0
- package/lib/features/shopping/chat/openShopNative.js +18 -2
- package/lib/features/shopping/chat/openShopNative.js.map +1 -1
- package/lib/features/shopping/chat/pickReplies.js +20 -0
- package/lib/features/shopping/chat/pickReplies.js.map +1 -0
- package/lib/features/shopping/chat/shoppingTurn.js +106 -0
- package/lib/features/shopping/chat/shoppingTurn.js.map +1 -0
- package/lib/features/shopping/chat/widgetContent.js +49 -162
- package/lib/features/shopping/chat/widgetContent.js.map +1 -1
- package/lib/features/shopping/deals/aggregate.js +191 -0
- package/lib/features/shopping/deals/aggregate.js.map +1 -0
- package/lib/features/shopping/deals/registry.js +101 -0
- package/lib/features/shopping/deals/registry.js.map +1 -0
- package/lib/features/shopping/deliveryText.js +33 -0
- package/lib/features/shopping/deliveryText.js.map +1 -0
- package/lib/features/shopping/heroBackground.js +64 -0
- package/lib/features/shopping/heroBackground.js.map +1 -0
- package/lib/features/shopping/hooks/useNearViewport.js +37 -0
- package/lib/features/shopping/hooks/useNearViewport.js.map +1 -0
- package/lib/features/shopping/hooks/useProductMedia.js +24 -0
- package/lib/features/shopping/hooks/useProductMedia.js.map +1 -0
- package/lib/features/shopping/hooks/useProductPage.js +42 -0
- package/lib/features/shopping/hooks/useProductPage.js.map +1 -0
- package/lib/features/shopping/hooks/useShoppingHistorySync.js +134 -0
- package/lib/features/shopping/hooks/useShoppingHistorySync.js.map +1 -0
- package/lib/features/shopping/hooks/useTrendingProducts.js +194 -83
- package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -1
- package/lib/features/shopping/imageSizing.js +69 -0
- package/lib/features/shopping/imageSizing.js.map +1 -0
- package/lib/features/shopping/mediaSlides.js +39 -0
- package/lib/features/shopping/mediaSlides.js.map +1 -0
- package/lib/features/shopping/mobile/PosterCard.js +408 -0
- package/lib/features/shopping/mobile/PosterCard.js.map +1 -0
- package/lib/features/shopping/mobile/PosterDeck.js +310 -0
- package/lib/features/shopping/mobile/PosterDeck.js.map +1 -0
- package/lib/features/shopping/mobile/PosterResults.js +133 -0
- package/lib/features/shopping/mobile/PosterResults.js.map +1 -0
- package/lib/features/shopping/mobile/deckGesture.js +18 -0
- package/lib/features/shopping/mobile/deckGesture.js.map +1 -0
- package/lib/features/shopping/mobile/posterLayout.js +78 -0
- package/lib/features/shopping/mobile/posterLayout.js.map +1 -0
- package/lib/features/shopping/mobile/vetting.js +49 -0
- package/lib/features/shopping/mobile/vetting.js.map +1 -0
- package/lib/features/shopping/productHighlight.js +39 -0
- package/lib/features/shopping/productHighlight.js.map +1 -0
- package/lib/features/shopping/productImage.js +7 -28
- package/lib/features/shopping/productImage.js.map +1 -1
- package/lib/features/shopping/resolveProductImage.js +56 -0
- package/lib/features/shopping/resolveProductImage.js.map +1 -0
- package/lib/features/shopping/savedProducts.js +33 -18
- package/lib/features/shopping/savedProducts.js.map +1 -1
- package/lib/features/shopping/services/amazonProductSearch.js +170 -0
- package/lib/features/shopping/services/amazonProductSearch.js.map +1 -0
- package/lib/features/shopping/services/betterPrice.js +306 -0
- package/lib/features/shopping/services/betterPrice.js.map +1 -0
- package/lib/features/shopping/services/buildShoppingAttachment.js +95 -0
- package/lib/features/shopping/services/buildShoppingAttachment.js.map +1 -0
- package/lib/features/shopping/services/buildShoppingWidgetMessage.js +125 -0
- package/lib/features/shopping/services/buildShoppingWidgetMessage.js.map +1 -0
- package/lib/features/shopping/services/cartCloud.js +18 -12
- package/lib/features/shopping/services/cartCloud.js.map +1 -1
- package/lib/features/shopping/services/catalogProductSearch.js +411 -0
- package/lib/features/shopping/services/catalogProductSearch.js.map +1 -0
- package/lib/features/shopping/services/compareTable.js +120 -0
- package/lib/features/shopping/services/compareTable.js.map +1 -0
- package/lib/features/shopping/services/countText.js +18 -0
- package/lib/features/shopping/services/countText.js.map +1 -0
- package/lib/features/shopping/services/couponDeals.js +125 -0
- package/lib/features/shopping/services/couponDeals.js.map +1 -0
- package/lib/features/shopping/services/dealProviders.js +158 -0
- package/lib/features/shopping/services/dealProviders.js.map +1 -0
- package/lib/features/shopping/services/dealsSearch.js +127 -0
- package/lib/features/shopping/services/dealsSearch.js.map +1 -0
- package/lib/features/shopping/services/liveDealLanes.js +111 -0
- package/lib/features/shopping/services/liveDealLanes.js.map +1 -0
- package/lib/features/shopping/services/livePriceCheckClient.js +112 -0
- package/lib/features/shopping/services/livePriceCheckClient.js.map +1 -0
- package/lib/features/shopping/services/livePriceCheckReport.js +71 -0
- package/lib/features/shopping/services/livePriceCheckReport.js.map +1 -0
- package/lib/features/shopping/services/parsePriceCheckIntent.js +17 -4
- package/lib/features/shopping/services/parsePriceCheckIntent.js.map +1 -1
- package/lib/features/shopping/services/parseShoppingIntent.js +25 -2
- package/lib/features/shopping/services/parseShoppingIntent.js.map +1 -1
- package/lib/features/shopping/services/parseShoppingIntentViaBrain.js +134 -0
- package/lib/features/shopping/services/parseShoppingIntentViaBrain.js.map +1 -0
- package/lib/features/shopping/services/pricing.js +93 -0
- package/lib/features/shopping/services/pricing.js.map +1 -0
- package/lib/features/shopping/services/productAvailability.js.map +1 -1
- package/lib/features/shopping/services/productFilters.js +240 -4
- package/lib/features/shopping/services/productFilters.js.map +1 -1
- package/lib/features/shopping/services/productMedia.js +169 -0
- package/lib/features/shopping/services/productMedia.js.map +1 -0
- package/lib/features/shopping/services/productOffers.js +133 -0
- package/lib/features/shopping/services/productOffers.js.map +1 -0
- package/lib/features/shopping/services/productPage.js +229 -0
- package/lib/features/shopping/services/productPage.js.map +1 -0
- package/lib/features/shopping/services/productPageEvidence.js +66 -0
- package/lib/features/shopping/services/productPageEvidence.js.map +1 -0
- package/lib/features/shopping/services/productTitleQuality.js +30 -0
- package/lib/features/shopping/services/productTitleQuality.js.map +1 -0
- package/lib/features/shopping/services/readShoppingAttachment.js +173 -0
- package/lib/features/shopping/services/readShoppingAttachment.js.map +1 -0
- package/lib/features/shopping/services/resolveShoppingRelevance.js +23 -0
- package/lib/features/shopping/services/resolveShoppingRelevance.js.map +1 -0
- package/lib/features/shopping/services/retailerProductSearch.js +240 -0
- package/lib/features/shopping/services/retailerProductSearch.js.map +1 -0
- package/lib/features/shopping/services/retailerUrl.js +103 -9
- package/lib/features/shopping/services/retailerUrl.js.map +1 -1
- package/lib/features/shopping/services/salesDealsStore.js +336 -0
- package/lib/features/shopping/services/salesDealsStore.js.map +1 -0
- package/lib/features/shopping/services/searchCardFields.js +155 -0
- package/lib/features/shopping/services/searchCardFields.js.map +1 -0
- package/lib/features/shopping/services/searchRelevance.js +143 -0
- package/lib/features/shopping/services/searchRelevance.js.map +1 -0
- package/lib/features/shopping/services/searchRequirements.js +226 -0
- package/lib/features/shopping/services/searchRequirements.js.map +1 -0
- package/lib/features/shopping/services/shoppingChatReply.js +1 -46
- package/lib/features/shopping/services/shoppingChatReply.js.map +1 -1
- package/lib/features/shopping/services/shoppingComputer.js +80 -0
- package/lib/features/shopping/services/shoppingComputer.js.map +1 -0
- package/lib/features/shopping/services/shoppingDepartments.js +1 -0
- package/lib/features/shopping/services/shoppingDepartments.js.map +1 -0
- package/lib/features/shopping/services/shoppingProductSearch.js +261 -146
- package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -1
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js +208 -9
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -1
- package/lib/features/shopping/services/shoppingSubgraph.js +76 -0
- package/lib/features/shopping/services/shoppingSubgraph.js.map +1 -0
- package/lib/features/shopping/services/surfaceChannel.js +35 -0
- package/lib/features/shopping/services/surfaceChannel.js.map +1 -0
- package/lib/features/shopping/services/variantCards.js +221 -0
- package/lib/features/shopping/services/variantCards.js.map +1 -0
- package/lib/features/shopping/services/verifyProducts.js +188 -0
- package/lib/features/shopping/services/verifyProducts.js.map +1 -0
- package/lib/features/shopping/services/webPriceSearch.js +107 -0
- package/lib/features/shopping/services/webPriceSearch.js.map +1 -0
- package/lib/features/shopping/shoppingCart.js.map +1 -1
- package/lib/features/shopping/shoppingHistoryStore.js +55 -3
- package/lib/features/shopping/shoppingHistoryStore.js.map +1 -1
- package/lib/features/shopping/shoppingRuntime.js +10 -1
- package/lib/features/shopping/shoppingRuntime.js.map +1 -1
- package/lib/features/shopping/state/compareSelection.js +70 -0
- package/lib/features/shopping/state/compareSelection.js.map +1 -0
- package/lib/features/shopping/state/deliveryLocation.js +118 -0
- package/lib/features/shopping/state/deliveryLocation.js.map +1 -0
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js +216 -0
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js.map +1 -0
- package/lib/features/shopping/tutorials/shoppingTutorials.js +52 -0
- package/lib/features/shopping/tutorials/shoppingTutorials.js.map +1 -0
- package/lib/features/shopping/tutorials/tutorials.js +88 -0
- package/lib/features/shopping/tutorials/tutorials.js.map +1 -0
- package/lib/features/shopping/useShoppingSearch.js +752 -115
- package/lib/features/shopping/useShoppingSearch.js.map +1 -1
- package/lib/features/webbuilder/WebBuilderExperience.js +15 -1
- package/lib/features/webbuilder/WebBuilderExperience.js.map +1 -1
- package/lib/features/webbuilder/components/SiteUploadSheet.js +88 -12
- package/lib/features/webbuilder/components/SiteUploadSheet.js.map +1 -1
- package/lib/features/webbuilder/components/TemplatePreviewSheet.js +132 -0
- package/lib/features/webbuilder/components/TemplatePreviewSheet.js.map +1 -0
- package/lib/features/webbuilder/components/TemplatesSheet.js +42 -5
- package/lib/features/webbuilder/components/TemplatesSheet.js.map +1 -1
- package/lib/features/webbuilder/connectorTemplates.js +7 -2
- package/lib/features/webbuilder/connectorTemplates.js.map +1 -1
- package/lib/features/webbuilder/templateCatalog.js +20 -2
- package/lib/features/webbuilder/templateCatalog.js.map +1 -1
- package/lib/features/webbuilder/templateClip.js +5 -0
- package/lib/features/webbuilder/templateClip.js.map +1 -0
- package/lib/features/webbuilder/web/upload/sitePhotos.js +51 -6
- package/lib/features/webbuilder/web/upload/sitePhotos.js.map +1 -1
- package/lib/features/webbuilder/workflow.js +7 -3
- package/lib/features/webbuilder/workflow.js.map +1 -1
- package/lib/hooks/useKeyboardBottomOffset.js +17 -1
- package/lib/hooks/useKeyboardBottomOffset.js.map +1 -1
- package/lib/screens/CanvasBoard/index.js +17 -0
- package/lib/screens/CanvasBoard/index.js.map +1 -1
- package/lib/screens/CanvasBoard/useCanvasHostChat.js +50 -0
- package/lib/screens/CanvasBoard/useCanvasHostChat.js.map +1 -0
- package/lib/screens/Home/HomeScreen.js +68 -15
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/ShoppingNative/index.js +9 -3
- package/lib/screens/ShoppingNative/index.js.map +1 -1
- package/lib/services/brainQuickReply.js +16 -1
- package/lib/services/brainQuickReply.js.map +1 -1
- package/package.json +8 -5
- package/lib/features/canvas/set/SetViewportWebView.js +0 -345
- package/lib/features/canvas/set/SetViewportWebView.js.map +0 -1
- package/lib/features/canvas/set/setPresets.js +0 -85
- package/lib/features/canvas/set/setPresets.js.map +0 -1
- package/lib/features/canvas/set/setProject.js +0 -66
- package/lib/features/canvas/set/setProject.js.map +0 -1
- package/lib/features/shopping/services/catalogActions.js +0 -166
- package/lib/features/shopping/services/catalogActions.js.map +0 -1
- package/lib/features/shopping/useCartCloudSync.js +0 -33
- package/lib/features/shopping/useCartCloudSync.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {KIT_ENTRIES}from'../supplyLibrary.js';import {newObjectId,vec3,MESH_TARGET_HEIGHT_M,SET_ASPECTS,
|
|
1
|
+
import {KIT_ENTRIES}from'../supplyLibrary.js';import {newObjectId,vec3,MESH_TARGET_HEIGHT_M,SET_ASPECTS,FIGURE_POSES,CAMERA_FOLLOW_MODES,CAMERA_CARRIES,DEFAULT_CAMERA,surveyIsCurrent,DEFAULT_LIGHTING,SET_EASINGS,GAITS,MAX_TIMELINE_SEC}from'../types.js';import {describeSet,describeObjects}from'./snapshot.js';import {landSplatWorld,pendingSplatWorld}from'../splatWorldJob.js';import {toUserMessage}from'../setRpc.js';import {planFromSurvey}from'./surveyPlan.js';import {LOOK_FRAMES_MAX,ideasOf}from'./review.js';import {PREVIEW_CAPTURE_EDGE}from'../drawPreview.js';import {standInsOf}from'../renderPrompt.js';import {PREVIEW_COUNTS,DEFAULT_PREVIEW_COUNT,previewMoments,shotSignature}from'../storyboard.js';import {isPerson,cameraById,setCameraFollow,setCameraRig,CARRY_LABEL,camerasOf,setCuts,shotSegments,addCamera,switchCamera,activeCameraId}from'../shotCamera.js';import {continuityWarnings}from'../continuity.js';import {cameraPathAlong,walkGroupPath,walkPath}from'../drawnPath.js';import {retimeRange}from'../retime.js';import {newBeatId,posesFromScript,scriptLines}from'../script.js';import {FORMATIONS,arrangeObjects,moveGroup}from'../formations.js';import {unlink,duplicateLinked,shareLook}from'../links.js';import {hasLimbs,GAIT_PACE,setHipHeightIn}from'../figure.js';import {timelineOf,clearObjectKeys,clearCameraKeys,hasAnimation,cameraAt,poseProject,setObjectKeys,topSpeed,setTimeline,retimeShot}from'../animation.js';import {uniqueName,tidySet,SHOT_SIZES,SHOT_ANGLES,frameShot,cameraFromShot,whatBlocksLens,removeObjects,updateObjects,placeObjects}from'./setOps.js';import {SPLAT_WORLD_MODELS}from'../../video3d.js';var __defProp = Object.defineProperty;
|
|
2
2
|
var __defProps = Object.defineProperties;
|
|
3
3
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -17,6 +17,19 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
const MAX_LOOKS_PER_TURN = 4;
|
|
20
33
|
class ToolInputError extends Error {
|
|
21
34
|
}
|
|
22
35
|
const argsOf = (raw) => raw && typeof raw === "object" ? raw : {};
|
|
@@ -34,12 +47,16 @@ const point = (v) => {
|
|
|
34
47
|
};
|
|
35
48
|
function sizing(raw) {
|
|
36
49
|
const scaleXyz = point(raw.scale_xyz);
|
|
37
|
-
return __spreadValues(__spreadValues(__spreadValues({}, scaleXyz ? {
|
|
50
|
+
return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, scaleXyz ? {
|
|
38
51
|
scaleXyz
|
|
39
52
|
} : {}), isNum(raw.scale) ? {
|
|
40
53
|
scale: raw.scale
|
|
41
54
|
} : {}), isNum(raw.height_m) ? {
|
|
42
55
|
heightM: raw.height_m
|
|
56
|
+
} : {}), isNum(raw.width_m) ? {
|
|
57
|
+
widthM: raw.width_m
|
|
58
|
+
} : {}), isNum(raw.depth_m) ? {
|
|
59
|
+
depthM: raw.depth_m
|
|
43
60
|
} : {});
|
|
44
61
|
}
|
|
45
62
|
function toPlacement(raw) {
|
|
@@ -70,7 +87,7 @@ function toUpdate(raw) {
|
|
|
70
87
|
if (!id) return null;
|
|
71
88
|
const position = point(o.position);
|
|
72
89
|
const rotation = point(o.rotation);
|
|
73
|
-
return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
90
|
+
return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
74
91
|
id
|
|
75
92
|
}, str(o.name) ? {
|
|
76
93
|
name: str(o.name)
|
|
@@ -86,6 +103,10 @@ function toUpdate(raw) {
|
|
|
86
103
|
hidden: o.hidden
|
|
87
104
|
} : {}), typeof o.locked === "boolean" ? {
|
|
88
105
|
locked: o.locked
|
|
106
|
+
} : {}), o.gait === "none" || GAITS.includes(o.gait) ? {
|
|
107
|
+
gait: o.gait
|
|
108
|
+
} : {}), FIGURE_POSES.includes(o.pose) ? {
|
|
109
|
+
pose: o.pose
|
|
89
110
|
} : {});
|
|
90
111
|
}
|
|
91
112
|
const KIT_IDS = KIT_ENTRIES.map((entry) => entry.id).join(", ");
|
|
@@ -124,6 +145,14 @@ const SIZING = {
|
|
|
124
145
|
type: "number",
|
|
125
146
|
description: "The height this piece should end up, in metres. The simplest way to size anything."
|
|
126
147
|
},
|
|
148
|
+
width_m: {
|
|
149
|
+
type: "number",
|
|
150
|
+
description: "Its size across its front, in metres, when it should not keep the stock proportions: a 2.6m desk, a 0.45m pillar from a wall, a floor cut to the room. Turns with the piece."
|
|
151
|
+
},
|
|
152
|
+
depth_m: {
|
|
153
|
+
type: "number",
|
|
154
|
+
description: "Its size front to back, in metres, likewise."
|
|
155
|
+
},
|
|
127
156
|
scale: {
|
|
128
157
|
type: "number",
|
|
129
158
|
description: "Uniform multiplier on the kit size. Ignored when height_m is given."
|
|
@@ -162,7 +191,15 @@ const PLACEMENT = {
|
|
|
162
191
|
}),
|
|
163
192
|
required: ["kit"]
|
|
164
193
|
};
|
|
165
|
-
const SET_AGENT_TOOLS = [tool("
|
|
194
|
+
const SET_AGENT_TOOLS = [tool("rebuild_from_survey", "Build the REFERENCE SURVEY: places every element and person it lists exactly as written, replacing the set, and puts on its camera, light and backdrop. One call, no copying.", {
|
|
195
|
+
leave_out: {
|
|
196
|
+
type: "array",
|
|
197
|
+
items: {
|
|
198
|
+
type: "string"
|
|
199
|
+
},
|
|
200
|
+
description: "Names from the survey to leave off the set, only when the user asked."
|
|
201
|
+
}
|
|
202
|
+
}, []), tool("block_set", 'Place stock geometry. mode "replace" blocks a whole new set in one call (use this for a fresh brief); mode "add" keeps what is there and adds to it.', {
|
|
166
203
|
mode: {
|
|
167
204
|
type: "string",
|
|
168
205
|
enum: ["replace", "add"],
|
|
@@ -199,6 +236,20 @@ const SET_AGENT_TOOLS = [tool("block_set", 'Place stock geometry. mode "replace"
|
|
|
199
236
|
},
|
|
200
237
|
locked: {
|
|
201
238
|
type: "boolean"
|
|
239
|
+
},
|
|
240
|
+
gait: {
|
|
241
|
+
type: "string",
|
|
242
|
+
enum: ["none", ...GAITS],
|
|
243
|
+
description: "How a person moves: walk or run swing their limbs in step with the ground they cover; idle breathes; none stands still."
|
|
244
|
+
},
|
|
245
|
+
pose: {
|
|
246
|
+
type: "string",
|
|
247
|
+
enum: [...FIGURE_POSES],
|
|
248
|
+
description: "What a person does with their body all through the shot. For changes over time, pose_over_time."
|
|
249
|
+
},
|
|
250
|
+
hip_height_m: {
|
|
251
|
+
type: "number",
|
|
252
|
+
description: "A stand-in person's hips above the floor: standing, it makes them taller or shorter (0.83 is 1.75m tall); seated, it is the seat height (chair 0.45, bar stool 0.75)."
|
|
202
253
|
}
|
|
203
254
|
}),
|
|
204
255
|
required: ["id"]
|
|
@@ -238,8 +289,43 @@ const SET_AGENT_TOOLS = [tool("block_set", 'Place stock geometry. mode "replace"
|
|
|
238
289
|
},
|
|
239
290
|
position: __spreadProps(__spreadValues({}, VEC3), {
|
|
240
291
|
description: "An exact camera position; overrides distance/height/azimuth."
|
|
241
|
-
})
|
|
242
|
-
|
|
292
|
+
}),
|
|
293
|
+
roll_deg: {
|
|
294
|
+
type: "number",
|
|
295
|
+
description: "A Dutch angle: degrees the picture leans, + clockwise. 0 is level; 10-20 unsettles."
|
|
296
|
+
},
|
|
297
|
+
camera_id: {
|
|
298
|
+
type: "string",
|
|
299
|
+
description: "Which camera, when the shot has more than one. Default: the one being worked on."
|
|
300
|
+
}
|
|
301
|
+
}), tool("frame_shot", "Aim the camera at an object with a standard shot, measured from its real size and the way it faces. Prefer this to set_camera whenever the shot is about something in the set.", {
|
|
302
|
+
subject_id: {
|
|
303
|
+
type: "string",
|
|
304
|
+
description: "The object to frame, copied from the snapshot."
|
|
305
|
+
},
|
|
306
|
+
size: {
|
|
307
|
+
type: "string",
|
|
308
|
+
enum: [...SHOT_SIZES],
|
|
309
|
+
description: "How much of it: wide, full (all of it), medium (waist up), close (head and shoulders), macro (a lens skimming a small thing from centimetres away)."
|
|
310
|
+
},
|
|
311
|
+
angle: {
|
|
312
|
+
type: "string",
|
|
313
|
+
enum: [...SHOT_ANGLES],
|
|
314
|
+
description: 'Default "front". two-shot and over-shoulder need second_subject_id; reverse goes to the far side of the current camera.'
|
|
315
|
+
},
|
|
316
|
+
second_subject_id: {
|
|
317
|
+
type: "string",
|
|
318
|
+
description: "The other person in a two-shot, or whose shoulder an over-shoulder looks past."
|
|
319
|
+
},
|
|
320
|
+
lens_mm: {
|
|
321
|
+
type: "number",
|
|
322
|
+
description: "Override the lens the size would choose."
|
|
323
|
+
},
|
|
324
|
+
camera_id: {
|
|
325
|
+
type: "string",
|
|
326
|
+
description: "Which camera, when the shot has more than one. Default: the one being worked on."
|
|
327
|
+
}
|
|
328
|
+
}, ["subject_id"]), tool("set_light", "Aim the key light and set the ambient fill.", {
|
|
243
329
|
azimuth_deg: {
|
|
244
330
|
type: "number",
|
|
245
331
|
description: "Direction around the set, in degrees."
|
|
@@ -255,6 +341,10 @@ const SET_AGENT_TOOLS = [tool("block_set", 'Place stock geometry. mode "replace"
|
|
|
255
341
|
ambient: {
|
|
256
342
|
type: "number",
|
|
257
343
|
description: "Fill intensity, 0-5. Raise it for a soft overcast look."
|
|
344
|
+
},
|
|
345
|
+
fog: {
|
|
346
|
+
type: "number",
|
|
347
|
+
description: "Haze in the air, 0-1. 0 is clear, 0.2 a morning haze, 0.7 thick fog that swallows the back of the set."
|
|
258
348
|
}
|
|
259
349
|
}), tool("set_world", "The backdrop behind the set, and the ground under it.", {
|
|
260
350
|
background: {
|
|
@@ -304,183 +394,1535 @@ const SET_AGENT_TOOLS = [tool("block_set", 'Place stock geometry. mode "replace"
|
|
|
304
394
|
type: "string",
|
|
305
395
|
description: 'The place, plainly: "a rain-slicked city street at night, neon signage". No subject.'
|
|
306
396
|
}
|
|
307
|
-
}, ["prompt"]), tool("
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
function blockSet(args, ctx) {
|
|
321
|
-
const specs = list(args.objects).map(toPlacement).filter((s) => s !== null);
|
|
322
|
-
if (specs.length === 0) throw new ToolInputError(`no placeable objects - every entry needs a "kit" from: ${KIT_IDS}`);
|
|
323
|
-
const mode = args.mode === "replace" ? "replace" : "add";
|
|
324
|
-
const {
|
|
325
|
-
project,
|
|
326
|
-
placed,
|
|
327
|
-
unknownKits
|
|
328
|
-
} = placeObjects(ctx.project(), specs, mode);
|
|
329
|
-
if (placed.length === 0) throw new ToolInputError(`none of those kit ids exist (${unknownKits.join(", ")}); use one of: ${KIT_IDS}`);
|
|
330
|
-
const dropped = unknownKits.length > 0 ? ` Dropped ${plural(unknownKits.length, "entry")} with an unknown kit (${unknownKits.join(", ")}); the library is: ${KIT_IDS}.` : "";
|
|
331
|
-
const verb = mode === "replace" ? "Replaced the set with" : "Added";
|
|
332
|
-
const camera = project.camera;
|
|
333
|
-
const untouched = camera.position.x === DEFAULT_CAMERA.position.x && camera.position.y === DEFAULT_CAMERA.position.y && camera.position.z === DEFAULT_CAMERA.position.z;
|
|
334
|
-
const nextStep = untouched ? " The camera has NOT been set - it is still on the default angle. Call set_camera now; the shot is not blocked until you do." : "";
|
|
335
|
-
return committed(ctx, project, `${verb} ${plural(placed.length, "object")}.${dropped}${nextStep}`, `${mode === "replace" ? "Blocked" : "Added"} ${plural(placed.length, "object")}`, placed.slice(0, 6).map((o) => o.name).join(", "));
|
|
336
|
-
}
|
|
337
|
-
function updateTool(args, ctx) {
|
|
338
|
-
const specs = list(args.updates).map(toUpdate).filter((s) => s !== null);
|
|
339
|
-
if (specs.length === 0) throw new ToolInputError('no updates - every entry needs the "id" of an object in the set');
|
|
340
|
-
const {
|
|
341
|
-
project,
|
|
342
|
-
updated,
|
|
343
|
-
missing
|
|
344
|
-
} = updateObjects(ctx.project(), specs);
|
|
345
|
-
if (updated.length === 0) throw new ToolInputError(`no object in the set has ${missing.length === 1 ? `id ${missing[0]}` : `any of those ids (${missing.join(", ")})`}`);
|
|
346
|
-
const note = missing.length > 0 ? ` No object has ${missing.length === 1 ? `id ${missing[0]}` : `ids ${missing.join(", ")}`}.` : "";
|
|
347
|
-
return committed(ctx, project, `Updated ${plural(updated.length, "object")}.${note}`, `Updated ${plural(updated.length, "object")}`, updated.map((o) => o.name).slice(0, 6).join(", "));
|
|
348
|
-
}
|
|
349
|
-
function removeTool(args, ctx) {
|
|
350
|
-
const ids = list(args.ids).map((v) => str(v)).filter(Boolean);
|
|
351
|
-
if (ids.length === 0) throw new ToolInputError("no ids given");
|
|
352
|
-
const {
|
|
353
|
-
project,
|
|
354
|
-
removed,
|
|
355
|
-
missing
|
|
356
|
-
} = removeObjects(ctx.project(), ids);
|
|
357
|
-
if (removed.length === 0) throw new ToolInputError(`no object in the set has ${missing.length === 1 ? `id ${missing[0]}` : `any of those ids (${missing.join(", ")})`}`);
|
|
358
|
-
const note = missing.length > 0 ? ` ${plural(missing.length, "id")} matched nothing.` : "";
|
|
359
|
-
return committed(ctx, project, `Removed ${plural(removed.length, "object")}.${note}`, `Removed ${plural(removed.length, "object")}`, removed.map((o) => o.name).join(", "));
|
|
360
|
-
}
|
|
361
|
-
function cameraTool(args, ctx) {
|
|
362
|
-
var _a;
|
|
363
|
-
const spec = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, point(args.target) ? {
|
|
364
|
-
target: point(args.target)
|
|
365
|
-
} : {}), point(args.position) ? {
|
|
366
|
-
position: point(args.position)
|
|
367
|
-
} : {}), isNum(args.distance) ? {
|
|
368
|
-
distance: args.distance
|
|
369
|
-
} : {}), isNum(args.height) ? {
|
|
370
|
-
height: args.height
|
|
371
|
-
} : {}), isNum(args.azimuth_deg) ? {
|
|
372
|
-
azimuthDeg: args.azimuth_deg
|
|
373
|
-
} : {}), isNum(args.lens_mm) ? {
|
|
374
|
-
lensMm: args.lens_mm
|
|
375
|
-
} : {}), isNum(args.fov) ? {
|
|
376
|
-
fov: args.fov
|
|
377
|
-
} : {});
|
|
378
|
-
if (Object.keys(spec).length === 0) throw new ToolInputError("nothing to change - give a distance, a height, an azimuth, a lens or a target");
|
|
379
|
-
const project = ctx.project();
|
|
380
|
-
const camera = cameraFromShot(project.camera, spec);
|
|
381
|
-
const next = tidySet(__spreadProps(__spreadValues({}, project), {
|
|
382
|
-
camera
|
|
383
|
-
}));
|
|
384
|
-
ctx.commit(next);
|
|
385
|
-
(_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, next.camera);
|
|
386
|
-
const mm = isNum(args.lens_mm) ? `${Math.round(args.lens_mm)}mm` : `${Math.round(next.camera.fov)}\xB0`;
|
|
387
|
-
const away = Math.hypot(next.camera.position.x - next.camera.target.x, next.camera.position.z - next.camera.target.z);
|
|
388
|
-
return {
|
|
389
|
-
result: `Camera at ${[next.camera.position.x, next.camera.position.y, next.camera.position.z].map((v) => Math.round(v * 100) / 100).join(",")} looking at ${[next.camera.target.x, next.camera.target.y, next.camera.target.z].map((v) => Math.round(v * 100) / 100).join(",")}, ${Math.round(next.camera.fov)}\xB0 fov.`,
|
|
390
|
-
label: "Set the camera",
|
|
391
|
-
detail: `${mm} \xB7 ${Math.round(away * 10) / 10}m out \xB7 ${Math.round(next.camera.position.y * 100) / 100}m up`
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
function lightTool(args, ctx) {
|
|
395
|
-
const project = ctx.project();
|
|
396
|
-
const lighting = __spreadValues({}, lightingOf(project));
|
|
397
|
-
let touched = false;
|
|
398
|
-
if (isNum(args.azimuth_deg)) {
|
|
399
|
-
lighting.keyAzimuthDeg = (args.azimuth_deg % 360 + 360) % 360;
|
|
400
|
-
touched = true;
|
|
397
|
+
}, ["prompt"]), tool("build_3d_world", "Build a 3D world around the set: a real place in depth that the camera can travel into, where a panorama only turns. A paid run of 2 to 6 minutes; it lands on its own while you carry on, and the set then stands in it.", {
|
|
398
|
+
prompt: {
|
|
399
|
+
type: "string",
|
|
400
|
+
description: 'The place, plainly, with its light: "a sunlit loft with brick walls and a long oak table". No people.'
|
|
401
|
+
},
|
|
402
|
+
still_id: {
|
|
403
|
+
type: "string",
|
|
404
|
+
description: "A picture of the place from the board to build it from instead."
|
|
405
|
+
},
|
|
406
|
+
kind: {
|
|
407
|
+
type: "string",
|
|
408
|
+
enum: SPLAT_WORLD_MODELS.map((model) => model.label.toLowerCase()),
|
|
409
|
+
description: "standard for a room or a street (the default), large for open country or a big interior."
|
|
401
410
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
411
|
+
}), tool("set_timeline", "How long the shot runs and at what frame rate. Do this first when the user names a length, or the movement needs more than the default 6 seconds. On a shot that already moves, a new length stretches or squeezes the whole move to fit.", {
|
|
412
|
+
duration_s: {
|
|
413
|
+
type: "number",
|
|
414
|
+
description: `Seconds, up to ${MAX_TIMELINE_SEC}.`
|
|
415
|
+
},
|
|
416
|
+
fps: {
|
|
417
|
+
type: "number",
|
|
418
|
+
description: "24 is film, 30 is video, 12 reads as a storyboard."
|
|
405
419
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
420
|
+
}), tool("animate_object", "Lay a movement on one object, in time order: anything a key leaves out carries over from the one before. Its keys before your first key stay, so a run added from 30s keeps the walk before it; start at 0 to replace the whole move.", {
|
|
421
|
+
id: {
|
|
422
|
+
type: "string",
|
|
423
|
+
description: "Object id, copied from the snapshot."
|
|
424
|
+
},
|
|
425
|
+
keys: {
|
|
426
|
+
type: "array",
|
|
427
|
+
items: {
|
|
428
|
+
type: "object",
|
|
429
|
+
properties: {
|
|
430
|
+
t: {
|
|
431
|
+
type: "number",
|
|
432
|
+
description: "Seconds into the shot."
|
|
433
|
+
},
|
|
434
|
+
position: __spreadProps(__spreadValues({}, VEC3), {
|
|
435
|
+
description: "Where its base is at this moment. x and z are usually all that change."
|
|
436
|
+
}),
|
|
437
|
+
rotation_y: {
|
|
438
|
+
type: "number",
|
|
439
|
+
description: "Which way it faces, degrees. Skip it with face_travel."
|
|
440
|
+
},
|
|
441
|
+
easing: {
|
|
442
|
+
type: "string",
|
|
443
|
+
enum: [...SET_EASINGS],
|
|
444
|
+
description: "How it leaves this key. Default smooth."
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
required: ["t"]
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
face_travel: {
|
|
451
|
+
type: "boolean",
|
|
452
|
+
description: "Turn to face the way it is going. True for anyone or anything travelling."
|
|
409
453
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
454
|
+
}, ["id", "keys"]), tool("key_camera", "Move the shot camera over the shot, replacing any camera keys. Give the keys in time order: each is a camera described like set_camera, or a named shot on a subject like frame_shot.", {
|
|
455
|
+
keys: {
|
|
456
|
+
type: "array",
|
|
457
|
+
items: {
|
|
458
|
+
type: "object",
|
|
459
|
+
properties: {
|
|
460
|
+
t: {
|
|
461
|
+
type: "number",
|
|
462
|
+
description: "Seconds into the shot."
|
|
463
|
+
},
|
|
464
|
+
subject_id: {
|
|
465
|
+
type: "string",
|
|
466
|
+
description: "Aim this key at an object with a named shot, using the size and angle fields. Any of distance, height, azimuth_deg, target or position on the same key wins over the named shot."
|
|
467
|
+
},
|
|
468
|
+
size: {
|
|
469
|
+
type: "string",
|
|
470
|
+
enum: [...SHOT_SIZES],
|
|
471
|
+
description: "macro skims a small thing from centimetres away."
|
|
472
|
+
},
|
|
473
|
+
angle: {
|
|
474
|
+
type: "string",
|
|
475
|
+
enum: [...SHOT_ANGLES]
|
|
476
|
+
},
|
|
477
|
+
second_subject_id: {
|
|
478
|
+
type: "string",
|
|
479
|
+
description: "Whose shoulder an over-shoulder looks past."
|
|
480
|
+
},
|
|
481
|
+
target: __spreadProps(__spreadValues({}, VEC3), {
|
|
482
|
+
description: "What it looks at."
|
|
483
|
+
}),
|
|
484
|
+
distance: {
|
|
485
|
+
type: "number",
|
|
486
|
+
description: "Metres from the target, on the ground."
|
|
487
|
+
},
|
|
488
|
+
height: {
|
|
489
|
+
type: "number",
|
|
490
|
+
description: "Lens height above the floor, in metres. A desk top is 0.75."
|
|
491
|
+
},
|
|
492
|
+
azimuth_deg: {
|
|
493
|
+
type: "number",
|
|
494
|
+
description: "0 is +Z, 90 is +X."
|
|
495
|
+
},
|
|
496
|
+
lens_mm: {
|
|
497
|
+
type: "number"
|
|
498
|
+
},
|
|
499
|
+
position: __spreadProps(__spreadValues({}, VEC3), {
|
|
500
|
+
description: "An exact camera position."
|
|
501
|
+
}),
|
|
502
|
+
roll_deg: {
|
|
503
|
+
type: "number",
|
|
504
|
+
description: "Dutch angle at this key."
|
|
505
|
+
},
|
|
506
|
+
easing: {
|
|
507
|
+
type: "string",
|
|
508
|
+
enum: [...SET_EASINGS],
|
|
509
|
+
description: "How it leaves this key. Default smooth."
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
required: ["t"]
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
camera_id: {
|
|
516
|
+
type: "string",
|
|
517
|
+
description: "Which camera, when the shot has more than one. Default: the one being worked on."
|
|
413
518
|
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
const project = ctx.project();
|
|
426
|
-
const world = __spreadValues({}, project.world);
|
|
427
|
-
let touched = false;
|
|
428
|
-
if (/^#[0-9a-f]{3,8}$/i.test(str(args.background))) {
|
|
429
|
-
world.background = str(args.background);
|
|
430
|
-
touched = true;
|
|
519
|
+
}, ["keys"]), tool("clear_animation", "Stop things moving. They stay where the shot opens.", {
|
|
520
|
+
ids: {
|
|
521
|
+
type: "array",
|
|
522
|
+
items: {
|
|
523
|
+
type: "string"
|
|
524
|
+
},
|
|
525
|
+
description: "Objects to stop moving."
|
|
526
|
+
},
|
|
527
|
+
camera: {
|
|
528
|
+
type: "boolean",
|
|
529
|
+
description: "Stop the camera moving."
|
|
431
530
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
531
|
+
}), tool("get_set", "Read the set back as it stands now.", {}), tool("look_at_shot", `See the shot: render the shot camera at up to ${LOOK_FRAMES_MAX} moments and have a vision model judge the frames as a director of photography would, against what the user asked. Answers VERDICT good or needs work, FIX lines to act on, and IDEA lines that are shown to the user under your reply. The only way you can see the stage.`, {
|
|
532
|
+
at_s: {
|
|
533
|
+
type: "array",
|
|
534
|
+
items: {
|
|
535
|
+
type: "number"
|
|
536
|
+
},
|
|
537
|
+
description: `Seconds into the shot to look at, at most ${LOOK_FRAMES_MAX}. Default: the start, the middle and the end of a moving shot, or the camera as it stands for a still.`
|
|
538
|
+
},
|
|
539
|
+
focus: {
|
|
540
|
+
type: "string",
|
|
541
|
+
description: 'What to judge in particular, when the user named something: "only the camera", "is Steve readable when the bats arrive".'
|
|
435
542
|
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
543
|
+
}), tool("resolve_note", "Close a note once its change is made, with one line of what you changed. Only after the tool calls that made it.", {
|
|
544
|
+
id: {
|
|
545
|
+
type: "string",
|
|
546
|
+
description: "The note id from OPEN NOTES."
|
|
547
|
+
},
|
|
548
|
+
summary: {
|
|
549
|
+
type: "string",
|
|
550
|
+
description: 'What you changed, in one line: "Turned Steve 180 degrees to face the camera."'
|
|
439
551
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}
|
|
449
|
-
function formatTool(args, ctx) {
|
|
450
|
-
const project = ctx.project();
|
|
451
|
-
const aspect = str(args.aspect);
|
|
452
|
-
const title = str(args.title);
|
|
453
|
-
if (aspect && !SET_ASPECTS.includes(aspect)) {
|
|
454
|
-
throw new ToolInputError(`aspect must be one of ${SET_ASPECTS.join(", ")}`);
|
|
552
|
+
}, ["id", "summary"]), tool("add_note", "Pin a suggestion on an object for the person to approve, numbered on the stage. For changes they did not ask you to make.", {
|
|
553
|
+
object_id: {
|
|
554
|
+
type: "string",
|
|
555
|
+
description: "The object it is about."
|
|
556
|
+
},
|
|
557
|
+
text: {
|
|
558
|
+
type: "string",
|
|
559
|
+
description: 'The change, said as an instruction: "Move the crate left so it does not hide Dustin."'
|
|
455
560
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
async function generateObjectTool(args, ctx) {
|
|
468
|
-
var _a, _b;
|
|
469
|
-
const prompt = str(args.prompt);
|
|
470
|
-
const stillId = str(args.still_id);
|
|
471
|
-
const still = stillId ? ctx.stills.find((s) => s.id === stillId) : void 0;
|
|
472
|
-
if (stillId && !still) {
|
|
473
|
-
throw new ToolInputError(ctx.stills.length > 0 ? `no still with id ${stillId}; the board has ${ctx.stills.map((s) => s.id).join(", ")}` : "there are no stills on the board to generate from");
|
|
561
|
+
}, ["object_id", "text"]), tool("preview_frames", "Draw the finished look of the shot at a few moments as pictures, from the 3D frames and the photographs: what the real video will look like, before anyone pays for one. They show in the transcript and in Render, where the person decides to film it or keep the pictures.", {
|
|
562
|
+
count: {
|
|
563
|
+
type: "number",
|
|
564
|
+
enum: [...PREVIEW_COUNTS],
|
|
565
|
+
description: `How many moments. Default ${DEFAULT_PREVIEW_COUNT}: the start, the middle and the end, or the camera keys when there are that few.`
|
|
566
|
+
},
|
|
567
|
+
look: {
|
|
568
|
+
type: "string",
|
|
569
|
+
description: `How the finished picture should look, in the user's words: "night, wet street, neon", "warm window light, shot on film".`
|
|
474
570
|
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
571
|
+
}), tool("add_camera", "Add another camera to the shot - a second angle to cut to - and work on it: set_camera, frame_shot and key_camera act on it until you name another camera_id. Aim it like frame_shot (subject_id, size, angle) or set_camera (distance, height, azimuth_deg, target, position).", {
|
|
572
|
+
name: {
|
|
573
|
+
type: "string",
|
|
574
|
+
description: 'What it is: "Wide", "Close on Anna", "Reverse".'
|
|
575
|
+
},
|
|
576
|
+
subject_id: {
|
|
577
|
+
type: "string"
|
|
578
|
+
},
|
|
579
|
+
size: {
|
|
580
|
+
type: "string",
|
|
581
|
+
enum: [...SHOT_SIZES]
|
|
582
|
+
},
|
|
583
|
+
angle: {
|
|
584
|
+
type: "string",
|
|
585
|
+
enum: [...SHOT_ANGLES]
|
|
586
|
+
},
|
|
587
|
+
second_subject_id: {
|
|
588
|
+
type: "string"
|
|
589
|
+
},
|
|
590
|
+
target: VEC3,
|
|
591
|
+
distance: {
|
|
592
|
+
type: "number"
|
|
593
|
+
},
|
|
594
|
+
height: {
|
|
595
|
+
type: "number"
|
|
596
|
+
},
|
|
597
|
+
azimuth_deg: {
|
|
598
|
+
type: "number"
|
|
599
|
+
},
|
|
600
|
+
lens_mm: {
|
|
601
|
+
type: "number"
|
|
602
|
+
},
|
|
603
|
+
position: VEC3
|
|
604
|
+
}), tool("set_cuts", "Say which camera the shot is seen through, and from when, replacing any cuts. The first is what it opens on. A video model films each camera's stretch as its own take and they are joined.", {
|
|
605
|
+
cuts: {
|
|
606
|
+
type: "array",
|
|
607
|
+
items: {
|
|
608
|
+
type: "object",
|
|
609
|
+
properties: {
|
|
610
|
+
t: {
|
|
611
|
+
type: "number",
|
|
612
|
+
description: "Seconds into the shot."
|
|
613
|
+
},
|
|
614
|
+
camera_id: {
|
|
615
|
+
type: "string"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
required: ["t", "camera_id"]
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}, ["cuts"]), tool("camera_carry", "How a camera is carried, which is the motion it has of its own on top of its keys: tripod (none), steadicam (a slow float), handheld (a gentle drift), shoulder (a heavier sway), shaky (documentary).", {
|
|
622
|
+
carry: {
|
|
623
|
+
type: "string",
|
|
624
|
+
enum: [...CAMERA_CARRIES]
|
|
625
|
+
},
|
|
626
|
+
amount: {
|
|
627
|
+
type: "number",
|
|
628
|
+
description: "0-1, how much. Default 0.5."
|
|
629
|
+
},
|
|
630
|
+
camera_id: {
|
|
631
|
+
type: "string"
|
|
632
|
+
}
|
|
633
|
+
}, ["carry"]), tool("camera_follow", "Tie a camera to an object: aim keeps it in frame from where the camera stands; follow travels with it keeping the framing; mount rides on it and turns with it, like a camera on a car. Leave object_id empty to untie.", {
|
|
634
|
+
object_id: {
|
|
635
|
+
type: "string"
|
|
636
|
+
},
|
|
637
|
+
mode: {
|
|
638
|
+
type: "string",
|
|
639
|
+
enum: [...CAMERA_FOLLOW_MODES],
|
|
640
|
+
description: "Default aim."
|
|
641
|
+
},
|
|
642
|
+
camera_id: {
|
|
643
|
+
type: "string"
|
|
644
|
+
}
|
|
645
|
+
}), tool("walk_route", "Send an object, or the camera, along a route on the floor: the keys land on the points, timed by the distance between them. A person also gets the gait of the pace. Keys before from_s stay.", {
|
|
646
|
+
id: {
|
|
647
|
+
type: "string",
|
|
648
|
+
description: "The object. Leave it out and set camera true to move the camera."
|
|
649
|
+
},
|
|
650
|
+
ids: {
|
|
651
|
+
type: "array",
|
|
652
|
+
items: {
|
|
653
|
+
type: "string"
|
|
654
|
+
},
|
|
655
|
+
description: "A group to walk the route together, keeping its shape, instead of one id."
|
|
656
|
+
},
|
|
657
|
+
camera: {
|
|
658
|
+
type: "boolean"
|
|
659
|
+
},
|
|
660
|
+
points: {
|
|
661
|
+
type: "array",
|
|
662
|
+
items: {
|
|
663
|
+
type: "object",
|
|
664
|
+
properties: {
|
|
665
|
+
x: {
|
|
666
|
+
type: "number"
|
|
667
|
+
},
|
|
668
|
+
z: {
|
|
669
|
+
type: "number"
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
required: ["x", "z"]
|
|
673
|
+
},
|
|
674
|
+
description: "At least two, in order. The first is where it starts."
|
|
675
|
+
},
|
|
676
|
+
from_s: {
|
|
677
|
+
type: "number",
|
|
678
|
+
description: "When it sets off. Default 0."
|
|
679
|
+
},
|
|
680
|
+
pace: {
|
|
681
|
+
type: "string",
|
|
682
|
+
enum: ["walk", "run", "fit"],
|
|
683
|
+
description: "walk 1.4 m/s, run 4 m/s, or fit to spread it over the rest of the shot. Default walk for a person, fit for the camera."
|
|
684
|
+
}
|
|
685
|
+
}, ["points"]), tool("arrange_group", "Put several objects in a formation at once, facing a way, and optionally move them as one keeping the shape. Members keep their order: the first is the point of a V and the middle of an arc.", {
|
|
686
|
+
ids: {
|
|
687
|
+
type: "array",
|
|
688
|
+
items: {
|
|
689
|
+
type: "string"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
formation: {
|
|
693
|
+
type: "string",
|
|
694
|
+
enum: [...FORMATIONS]
|
|
695
|
+
},
|
|
696
|
+
spacing: {
|
|
697
|
+
type: "number",
|
|
698
|
+
description: "Metres between neighbours. 1.2 at ease, 0.8 tight, 2 spread."
|
|
699
|
+
},
|
|
700
|
+
center: {
|
|
701
|
+
type: "object",
|
|
702
|
+
properties: {
|
|
703
|
+
x: {
|
|
704
|
+
type: "number"
|
|
705
|
+
},
|
|
706
|
+
z: {
|
|
707
|
+
type: "number"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
description: "Default: the middle of where they are."
|
|
711
|
+
},
|
|
712
|
+
facing_deg: {
|
|
713
|
+
type: "number",
|
|
714
|
+
description: "Which way the group faces, 0 is +Z. Default: toward the camera."
|
|
715
|
+
},
|
|
716
|
+
move_by: {
|
|
717
|
+
type: "object",
|
|
718
|
+
properties: {
|
|
719
|
+
x: {
|
|
720
|
+
type: "number"
|
|
721
|
+
},
|
|
722
|
+
z: {
|
|
723
|
+
type: "number"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
description: "Then move the whole group this far, together."
|
|
727
|
+
},
|
|
728
|
+
from_s: {
|
|
729
|
+
type: "number",
|
|
730
|
+
description: "When the move starts."
|
|
731
|
+
},
|
|
732
|
+
to_s: {
|
|
733
|
+
type: "number",
|
|
734
|
+
description: "When it ends."
|
|
735
|
+
}
|
|
736
|
+
}, ["ids", "formation"]), tool("retime_range", "Make one stretch of the shot take a different length - slow a walk down, cut a pause short - moving every key, every camera and every cut after it along. The shot grows or shrinks by the difference.", {
|
|
737
|
+
from_s: {
|
|
738
|
+
type: "number"
|
|
739
|
+
},
|
|
740
|
+
to_s: {
|
|
741
|
+
type: "number"
|
|
742
|
+
},
|
|
743
|
+
length_s: {
|
|
744
|
+
type: "number",
|
|
745
|
+
description: "How long the stretch should last now."
|
|
746
|
+
}
|
|
747
|
+
}, ["from_s", "to_s", "length_s"]), tool("pose_over_time", "What a person does with their body over the shot, replacing any timed poses: look-left at 8s, crouch at 14s, stand at 20s. It blends from one to the next. Their walk and run come from moving them (gait), this is everything else.", {
|
|
748
|
+
id: {
|
|
749
|
+
type: "string"
|
|
750
|
+
},
|
|
751
|
+
poses: {
|
|
752
|
+
type: "array",
|
|
753
|
+
items: {
|
|
754
|
+
type: "object",
|
|
755
|
+
// No enum here: a provider that checks the schema fails the whole turn over one odd word; the tool answers it instead.
|
|
756
|
+
properties: {
|
|
757
|
+
t: {
|
|
758
|
+
type: "number"
|
|
759
|
+
},
|
|
760
|
+
pose: {
|
|
761
|
+
type: "string",
|
|
762
|
+
description: `One of: ${FIGURE_POSES.join(", ")}. stand is neutral: back from a crouch or a look.`
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
required: ["t", "pose"]
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}, ["id", "poses"]), tool("rig_character", "Fit a skeleton to a generated humanoid character, so it walks, runs, crouches, turns its head and holds poses on its own body like the stand-ins. One paid run of about a minute or two; humanoids only (a head, two arms, two legs). Only for a generated mesh, never a stand-in, which already moves.", {
|
|
769
|
+
id: {
|
|
770
|
+
type: "string",
|
|
771
|
+
description: "A generated mesh, copied from the snapshot."
|
|
772
|
+
}
|
|
773
|
+
}, ["id"]), tool("write_script", "Write what happens and what is said, beat by beat, replacing any script. The blocking says where everyone is; the script says what they do there and their lines, and every video run is told the beats in it. Write lines word for word, short, in the voice of the person.", {
|
|
774
|
+
beats: {
|
|
775
|
+
type: "array",
|
|
776
|
+
items: {
|
|
777
|
+
type: "object",
|
|
778
|
+
properties: {
|
|
779
|
+
t: {
|
|
780
|
+
type: "number",
|
|
781
|
+
description: "Seconds into the shot."
|
|
782
|
+
},
|
|
783
|
+
who_id: {
|
|
784
|
+
type: "string",
|
|
785
|
+
description: "The person acting or speaking, copied from the snapshot. Leave out for the scene as a whole."
|
|
786
|
+
},
|
|
787
|
+
line: {
|
|
788
|
+
type: "string",
|
|
789
|
+
description: "What they say, word for word."
|
|
790
|
+
},
|
|
791
|
+
action: {
|
|
792
|
+
type: "string",
|
|
793
|
+
description: 'What happens: "She leans on the counter beside him."'
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
required: ["t"]
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}, ["beats"]), tool("cast_photo", "Tie a person on the set to the reference photograph they are, by its number in REFERENCE PHOTOGRAPHS (1 is the first). Every picture and video then keeps that face. Do this for every person when there are photographs of more than one.", {
|
|
800
|
+
id: {
|
|
801
|
+
type: "string"
|
|
802
|
+
},
|
|
803
|
+
photo: {
|
|
804
|
+
type: "number",
|
|
805
|
+
description: "1-based. 0 unties."
|
|
806
|
+
}
|
|
807
|
+
}, ["id", "photo"]), tool("end_card", "End the real video on a title: it fades to black and the words come up and hold. Call it whenever the user asks for a title, an end card or closing words, with their exact words. Empty text takes it off.", {
|
|
808
|
+
text: {
|
|
809
|
+
type: "string",
|
|
810
|
+
description: 'Short: "Still us."'
|
|
811
|
+
},
|
|
812
|
+
seconds: {
|
|
813
|
+
type: "number",
|
|
814
|
+
description: "1-10. Default 3."
|
|
815
|
+
}
|
|
816
|
+
}, ["text"]), tool("carry_object", "Have one object carried by another - a mug in a hand, a rider on a horse, a box on a cart: it moves and turns with the carrier from where it is at at_s. Empty carrier_id lets it go.", {
|
|
817
|
+
id: {
|
|
818
|
+
type: "string"
|
|
819
|
+
},
|
|
820
|
+
carrier_id: {
|
|
821
|
+
type: "string"
|
|
822
|
+
},
|
|
823
|
+
at_s: {
|
|
824
|
+
type: "number",
|
|
825
|
+
description: "The moment it is picked up, where its place on the carrier is measured. Default 0."
|
|
826
|
+
}
|
|
827
|
+
}, ["id"]), tool("linked_copies", "Make copies of an object that share its look - a crowd of extras, a row of chairs - set out beside it. A later change of colour or model on one goes to every copy. unlink true lets the object go its own way instead.", {
|
|
828
|
+
id: {
|
|
829
|
+
type: "string"
|
|
830
|
+
},
|
|
831
|
+
count: {
|
|
832
|
+
type: "number",
|
|
833
|
+
description: "1-20."
|
|
834
|
+
},
|
|
835
|
+
spacing: {
|
|
836
|
+
type: "number",
|
|
837
|
+
description: "Metres between copies. Default 0.8."
|
|
838
|
+
},
|
|
839
|
+
unlink: {
|
|
840
|
+
type: "boolean"
|
|
841
|
+
}
|
|
842
|
+
}, ["id"])];
|
|
843
|
+
function defaultLookTimes(project) {
|
|
844
|
+
var _a, _b;
|
|
845
|
+
const {
|
|
846
|
+
durationSec
|
|
847
|
+
} = timelineOf(project);
|
|
848
|
+
const moving = ((_b = (_a = project.cameraTrack) == null ? void 0 : _a.length) != null ? _b : 0) > 1 || hasAnimation(project);
|
|
849
|
+
return moving ? [0, Math.round(durationSec / 2 * 10) / 10, durationSec] : [0];
|
|
850
|
+
}
|
|
851
|
+
function resolveNoteTool(args, ctx) {
|
|
852
|
+
var _a, _b;
|
|
853
|
+
const id = str(args.id);
|
|
854
|
+
const note = (_a = ctx.notes) == null ? void 0 : _a.call(ctx).find((n) => n.id === id);
|
|
855
|
+
if (!note) throw new ToolInputError(`no note has id ${id || "(none given)"}; the ids are in OPEN NOTES`);
|
|
856
|
+
if (note.status === "done") return {
|
|
857
|
+
result: `Note ${note.n} was already done.`,
|
|
858
|
+
label: `Note ${note.n} already done`
|
|
859
|
+
};
|
|
860
|
+
const summary = str(args.summary);
|
|
861
|
+
if (!summary) throw new ToolInputError("say in one line what you changed for it");
|
|
862
|
+
(_b = ctx.resolveNote) == null ? void 0 : _b.call(ctx, id, summary);
|
|
863
|
+
return {
|
|
864
|
+
result: `Note ${note.n} is done.`,
|
|
865
|
+
label: `Did note ${note.n}`,
|
|
866
|
+
detail: summary
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
function addNoteTool(args, ctx) {
|
|
870
|
+
const objectId = str(args.object_id);
|
|
871
|
+
const object = ctx.project().objects.find((o) => o.id === objectId);
|
|
872
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${objectId || "(none given)"}`);
|
|
873
|
+
const text = str(args.text);
|
|
874
|
+
if (!text) throw new ToolInputError("give the note some text");
|
|
875
|
+
if (!ctx.addNote) throw new Error("notes cannot be pinned here");
|
|
876
|
+
ctx.addNote(objectId, text);
|
|
877
|
+
return {
|
|
878
|
+
result: `Pinned a note on ${object.name}. The person sees it numbered on the stage and approves it.`,
|
|
879
|
+
label: `Pinned a note on ${object.name}`,
|
|
880
|
+
detail: text
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
async function previewFramesTool(args, ctx) {
|
|
884
|
+
var _a, _b, _c;
|
|
885
|
+
if (!ctx.seeShot) throw new Error("this studio cannot render frames here, so there is nothing to draw from");
|
|
886
|
+
const draw = ctx.services.drawPreviews;
|
|
887
|
+
if (!draw) throw new Error("no image model is set up for this studio");
|
|
888
|
+
const project = ctx.project();
|
|
889
|
+
if (project.objects.length === 0) throw new ToolInputError("the set is empty: block it first");
|
|
890
|
+
const count = (_a = PREVIEW_COUNTS.find((n) => n === args.count)) != null ? _a : DEFAULT_PREVIEW_COUNT;
|
|
891
|
+
const times = previewMoments(project, count);
|
|
892
|
+
const look = str(args.look);
|
|
893
|
+
ctx.progress("Rendering the moments\u2026");
|
|
894
|
+
const shots = await ctx.seeShot(project, times, PREVIEW_CAPTURE_EDGE);
|
|
895
|
+
const frames = await draw(__spreadValues({
|
|
896
|
+
shots,
|
|
897
|
+
times,
|
|
898
|
+
photos: ((_b = project.references) != null ? _b : []).map((reference) => reference.url),
|
|
899
|
+
look,
|
|
900
|
+
standIns: standInsOf(project),
|
|
901
|
+
onProgress: ctx.progress
|
|
902
|
+
}, ctx.signal ? {
|
|
903
|
+
signal: ctx.signal
|
|
904
|
+
} : {}));
|
|
905
|
+
(_c = ctx.onPreviews) == null ? void 0 : _c.call(ctx, {
|
|
906
|
+
frames,
|
|
907
|
+
look,
|
|
908
|
+
madeFor: shotSignature(project)
|
|
909
|
+
});
|
|
910
|
+
const missing = times.length - frames.length;
|
|
911
|
+
return {
|
|
912
|
+
result: `Drew ${plural(frames.length, "preview frame")} at ${frames.map((f) => `${f.t}s`).join(", ")}.${missing > 0 ? ` ${plural(missing, "frame")} could not be drawn.` : ""} They show under your reply and in Render. Tell the user they can film the shot from them, or keep them as pictures; do not describe what they look like, you have not seen them.`,
|
|
913
|
+
label: "Drew preview frames",
|
|
914
|
+
detail: `${frames.length} at ${frames.map((f) => `${f.t}s`).join(", ")}`
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
function checkAgain(outcome, ctx) {
|
|
918
|
+
var _a;
|
|
919
|
+
const looks = (_a = ctx.looks) != null ? _a : 0;
|
|
920
|
+
if (looks === 0 || looks >= MAX_LOOKS_PER_TURN) return outcome;
|
|
921
|
+
return __spreadProps(__spreadValues({}, outcome), {
|
|
922
|
+
result: `${outcome.result}
|
|
923
|
+
The shot changed since you looked at it: look_at_shot again before you answer.`
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
async function lookAtShotTool(args, ctx) {
|
|
927
|
+
var _a, _b, _c, _d;
|
|
928
|
+
if (!ctx.seeShot) throw new Error("this studio cannot render frames here, so the shot cannot be looked at");
|
|
929
|
+
const review = ctx.services.reviewShot;
|
|
930
|
+
if (!review) throw new Error("no reviewer is set up for this studio");
|
|
931
|
+
const taken = (_a = ctx.looks) != null ? _a : 0;
|
|
932
|
+
if (taken >= MAX_LOOKS_PER_TURN) {
|
|
933
|
+
throw new ToolInputError(`you have looked ${MAX_LOOKS_PER_TURN} times this turn. Stop here and tell the user what is still not right.`);
|
|
934
|
+
}
|
|
935
|
+
ctx.looks = taken + 1;
|
|
936
|
+
const project = ctx.project();
|
|
937
|
+
const {
|
|
938
|
+
durationSec
|
|
939
|
+
} = timelineOf(project);
|
|
940
|
+
const asked = list(args.at_s).filter(isNum).map((t) => Math.round(Math.min(durationSec, Math.max(0, t)) * 10) / 10);
|
|
941
|
+
const times = [...new Set(asked.length > 0 ? asked : defaultLookTimes(project))].slice(0, LOOK_FRAMES_MAX);
|
|
942
|
+
ctx.progress(times.length === 1 ? "Looking at the shot\u2026" : `Looking at ${times.length} moments of the shot\u2026`);
|
|
943
|
+
const frames = await ctx.seeShot(project, times);
|
|
944
|
+
const focus = str(args.focus);
|
|
945
|
+
const found = await review(__spreadValues(__spreadValues({
|
|
946
|
+
frames,
|
|
947
|
+
times,
|
|
948
|
+
project,
|
|
949
|
+
brief: (_b = ctx.brief) != null ? _b : ""
|
|
950
|
+
}, focus ? {
|
|
951
|
+
focus
|
|
952
|
+
} : {}), ctx.signal ? {
|
|
953
|
+
signal: ctx.signal
|
|
954
|
+
} : {}));
|
|
955
|
+
if (!found) {
|
|
956
|
+
return {
|
|
957
|
+
result: "No model on this workspace can see pictures, so the shot could not be judged. Say so; do not claim to have looked.",
|
|
958
|
+
label: "Could not look at the shot"
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
(_c = ctx.onLook) == null ? void 0 : _c.call(ctx, {
|
|
962
|
+
times,
|
|
963
|
+
review: found
|
|
964
|
+
});
|
|
965
|
+
const ideas = ideasOf(found.text);
|
|
966
|
+
const left = MAX_LOOKS_PER_TURN - ((_d = ctx.looks) != null ? _d : 0);
|
|
967
|
+
return {
|
|
968
|
+
result: [`Looked at ${times.map((t) => `${t}s`).join(", ")}.`, found.text, ideas.length > 0 ? "The IDEA lines are shown to the user under your reply: do not act on them or repeat them." : "", found.verdict === "needs work" && left > 0 ? `Make the FIX changes, then look again (${left} ${left === 1 ? "look" : "looks"} left this turn).` : ""].filter(Boolean).join("\n"),
|
|
969
|
+
label: "Looked at the shot",
|
|
970
|
+
detail: `${found.verdict} \xB7 ${times.length} ${times.length === 1 ? "frame" : "frames"}`
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
function cameraIdOf(args, project) {
|
|
974
|
+
const id = str(args.camera_id);
|
|
975
|
+
if (!id || cameraById(project, id)) return id || activeCameraId(project);
|
|
976
|
+
return camerasOf(project).length === 1 ? activeCameraId(project) : id;
|
|
977
|
+
}
|
|
978
|
+
function selectCamera(args, ctx) {
|
|
979
|
+
const project = ctx.project();
|
|
980
|
+
const id = cameraIdOf(args, project);
|
|
981
|
+
if (id === activeCameraId(project)) return;
|
|
982
|
+
if (!cameraById(project, id)) throw new ToolInputError(`no camera has id ${id}; the cameras are ${camerasOf(project).map((c) => c.id).join(", ")}`);
|
|
983
|
+
ctx.commit(switchCamera(project, id));
|
|
984
|
+
}
|
|
985
|
+
function continuityNote(project, kinds) {
|
|
986
|
+
const warnings = continuityWarnings(project).filter((warning) => !kinds || kinds.includes(warning.kind));
|
|
987
|
+
return warnings.length > 0 ? `
|
|
988
|
+
CONTINUITY (fix what you caused): ${warnings.map((warning) => warning.message).join(" ")}` : "";
|
|
989
|
+
}
|
|
990
|
+
const CUT_KINDS = ["line", "direction", "jump-cut", "flash-cut"];
|
|
991
|
+
const MOTION_KINDS = ["walk-in-place", "pace", "glide", "sideways"];
|
|
992
|
+
function shotSpecOf(args) {
|
|
993
|
+
return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, point(args.target) ? {
|
|
994
|
+
target: point(args.target)
|
|
995
|
+
} : {}), point(args.position) ? {
|
|
996
|
+
position: point(args.position)
|
|
997
|
+
} : {}), isNum(args.distance) ? {
|
|
998
|
+
distance: args.distance
|
|
999
|
+
} : {}), isNum(args.height) ? {
|
|
1000
|
+
height: args.height
|
|
1001
|
+
} : {}), isNum(args.azimuth_deg) ? {
|
|
1002
|
+
azimuthDeg: args.azimuth_deg
|
|
1003
|
+
} : {}), isNum(args.lens_mm) ? {
|
|
1004
|
+
lensMm: args.lens_mm
|
|
1005
|
+
} : {});
|
|
1006
|
+
}
|
|
1007
|
+
function addCameraTool(args, ctx) {
|
|
1008
|
+
var _a;
|
|
1009
|
+
const project = ctx.project();
|
|
1010
|
+
let camera = cameraAt(project, 0);
|
|
1011
|
+
const subjectId = str(args.subject_id);
|
|
1012
|
+
if (subjectId) {
|
|
1013
|
+
const size = SHOT_SIZES.find((value) => value === str(args.size));
|
|
1014
|
+
const angle = SHOT_ANGLES.find((value) => value === str(args.angle));
|
|
1015
|
+
const shot = frameShot(__spreadProps(__spreadValues({}, poseProject(project, 0)), {
|
|
1016
|
+
camera
|
|
1017
|
+
}), __spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
1018
|
+
subjectId
|
|
1019
|
+
}, size ? {
|
|
1020
|
+
size
|
|
1021
|
+
} : {}), angle ? {
|
|
1022
|
+
angle
|
|
1023
|
+
} : {}), str(args.second_subject_id) ? {
|
|
1024
|
+
secondId: str(args.second_subject_id)
|
|
1025
|
+
} : {}), isNum(args.lens_mm) ? {
|
|
1026
|
+
lensMm: args.lens_mm
|
|
1027
|
+
} : {}));
|
|
1028
|
+
if (shot.ok === false) throw new ToolInputError(shot.reason);
|
|
1029
|
+
camera = shot.camera;
|
|
1030
|
+
}
|
|
1031
|
+
const stated = shotSpecOf(args);
|
|
1032
|
+
if (Object.keys(stated).length > 0) camera = cameraFromShot(camera, stated);
|
|
1033
|
+
const blocked = whatBlocksLens(poseProject(project, 0), camera, str(args.second_subject_id) || void 0);
|
|
1034
|
+
if (blocked) throw new ToolInputError(blocked.inside ? `that puts the lens inside ${blocked.object.name}` : `${blocked.object.name} stands between that lens and what it aims at`);
|
|
1035
|
+
const {
|
|
1036
|
+
project: added,
|
|
1037
|
+
id
|
|
1038
|
+
} = addCamera(project, camera, str(args.name) || void 0);
|
|
1039
|
+
const next = tidySet(switchCamera(added, id));
|
|
1040
|
+
ctx.commit(next);
|
|
1041
|
+
(_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, next.camera);
|
|
1042
|
+
const name = camerasOf(next).find((c) => c.id === id).name;
|
|
1043
|
+
return {
|
|
1044
|
+
result: `Added ${name} (camera_id ${id}) and switched to it: set_camera, frame_shot and key_camera now act on it. The shot is not seen through it until set_cuts says so.`,
|
|
1045
|
+
label: `Added ${name}`,
|
|
1046
|
+
detail: `${Math.round(Math.hypot(camera.position.x - camera.target.x, camera.position.z - camera.target.z) * 10) / 10}m out`
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
function setCutsTool(args, ctx) {
|
|
1050
|
+
const project = ctx.project();
|
|
1051
|
+
const raw = list(args.cuts).map(argsOf).filter((cut) => isNum(cut.t) && str(cut.camera_id));
|
|
1052
|
+
if (raw.length === 0) throw new ToolInputError("no cuts - each needs t and a camera_id");
|
|
1053
|
+
const unknown = raw.map((cut) => str(cut.camera_id)).filter((id) => !cameraById(project, id));
|
|
1054
|
+
if (unknown.length > 0) throw new ToolInputError(`no camera has id ${[...new Set(unknown)].join(", ")}; the cameras are ${camerasOf(project).map((c) => c.id).join(", ")}`);
|
|
1055
|
+
const next = setCuts(project, raw.map((cut) => ({
|
|
1056
|
+
t: cut.t,
|
|
1057
|
+
cameraId: str(cut.camera_id)
|
|
1058
|
+
})));
|
|
1059
|
+
ctx.commit(next);
|
|
1060
|
+
const segments = shotSegments(next);
|
|
1061
|
+
const said = segments.map((segment) => `${segment.cameraId} ${Math.round(segment.from * 10) / 10}-${Math.round(segment.to * 10) / 10}s`).join(", ");
|
|
1062
|
+
return {
|
|
1063
|
+
result: `${segments.length === 1 ? "The shot is seen through one camera throughout" : "The shot is seen through"}: ${said}.${continuityNote(next, CUT_KINDS)}`,
|
|
1064
|
+
label: segments.length === 1 ? "One camera throughout" : `Cut ${segments.length - 1} ${segments.length === 2 ? "time" : "times"}`,
|
|
1065
|
+
detail: said
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
function cameraCarryTool(args, ctx) {
|
|
1069
|
+
const project = ctx.project();
|
|
1070
|
+
const id = cameraIdOf(args, project);
|
|
1071
|
+
if (!cameraById(project, id)) throw new ToolInputError(`no camera has id ${id}`);
|
|
1072
|
+
const carry = CAMERA_CARRIES.find((value) => value === str(args.carry));
|
|
1073
|
+
if (!carry) throw new ToolInputError(`carry must be one of ${CAMERA_CARRIES.join(", ")}`);
|
|
1074
|
+
const next = setCameraRig(project, id, __spreadValues({
|
|
1075
|
+
carry
|
|
1076
|
+
}, isNum(args.amount) ? {
|
|
1077
|
+
amount: args.amount
|
|
1078
|
+
} : {}));
|
|
1079
|
+
ctx.commit(next);
|
|
1080
|
+
return {
|
|
1081
|
+
result: `Camera ${id} is carried ${carry === "tripod" ? "on a tripod: no motion of its own" : CARRY_LABEL[carry].toLowerCase()}. It moves in playback and the renders, not while framing.`,
|
|
1082
|
+
label: `${CARRY_LABEL[carry]} camera`
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
function cameraFollowTool(args, ctx) {
|
|
1086
|
+
var _a;
|
|
1087
|
+
const project = ctx.project();
|
|
1088
|
+
const id = cameraIdOf(args, project);
|
|
1089
|
+
if (!cameraById(project, id)) throw new ToolInputError(`no camera has id ${id}`);
|
|
1090
|
+
const objectId = str(args.object_id);
|
|
1091
|
+
if (!objectId) {
|
|
1092
|
+
ctx.commit(setCameraFollow(project, id, null));
|
|
1093
|
+
return {
|
|
1094
|
+
result: `Camera ${id} is no longer tied to anything.`,
|
|
1095
|
+
label: "Untied the camera"
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
const object = project.objects.find((item) => item.id === objectId);
|
|
1099
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${objectId}`);
|
|
1100
|
+
const mode = (_a = CAMERA_FOLLOW_MODES.find((value) => value === str(args.mode))) != null ? _a : "aim";
|
|
1101
|
+
const next = setCameraFollow(project, id, {
|
|
1102
|
+
objectId,
|
|
1103
|
+
mode
|
|
1104
|
+
});
|
|
1105
|
+
ctx.commit(next);
|
|
1106
|
+
const how = mode === "aim" ? "aims at" : mode === "follow" ? "travels with" : "rides on";
|
|
1107
|
+
return {
|
|
1108
|
+
result: `Camera ${id} ${how} ${object.name}.`,
|
|
1109
|
+
label: `Camera ${how} ${object.name}`
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
function walkRouteTool(args, ctx) {
|
|
1113
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1114
|
+
const project = ctx.project();
|
|
1115
|
+
const points = list(args.points).map(argsOf).filter((p) => isNum(p.x) && isNum(p.z)).map((p) => ({
|
|
1116
|
+
x: p.x,
|
|
1117
|
+
y: 0,
|
|
1118
|
+
z: p.z
|
|
1119
|
+
}));
|
|
1120
|
+
if (points.length < 2) throw new ToolInputError("a route needs at least two points, each with x and z");
|
|
1121
|
+
const from = isNum(args.from_s) ? Math.max(0, args.from_s) : 0;
|
|
1122
|
+
if (args.camera === true) {
|
|
1123
|
+
const pace2 = str(args.pace);
|
|
1124
|
+
const next2 = cameraPathAlong(project, points, __spreadValues({
|
|
1125
|
+
fromSec: from
|
|
1126
|
+
}, pace2 === "walk" || pace2 === "run" ? {
|
|
1127
|
+
pace: GAIT_PACE[pace2]
|
|
1128
|
+
} : {}));
|
|
1129
|
+
ctx.commit(next2);
|
|
1130
|
+
(_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, cameraAt(next2, from));
|
|
1131
|
+
return {
|
|
1132
|
+
result: `The camera travels ${points.length} points from ${from}s, at its own height.`,
|
|
1133
|
+
label: "Camera route"
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
const group = list(args.ids).map((v) => str(v)).filter((id2) => project.objects.some((object2) => object2.id === id2));
|
|
1137
|
+
if (group.length > 0) {
|
|
1138
|
+
const pace2 = str(args.pace) || "walk";
|
|
1139
|
+
let next2 = walkGroupPath(project, group, points, __spreadValues({
|
|
1140
|
+
fromSec: from
|
|
1141
|
+
}, pace2 === "walk" || pace2 === "run" ? {
|
|
1142
|
+
pace: GAIT_PACE[pace2]
|
|
1143
|
+
} : {}));
|
|
1144
|
+
if (pace2 === "walk" || pace2 === "run") next2 = __spreadProps(__spreadValues({}, next2), {
|
|
1145
|
+
objects: next2.objects.map((item) => group.includes(item.id) && hasLimbs(item) && !item.gait ? __spreadProps(__spreadValues({}, item), {
|
|
1146
|
+
gait: pace2
|
|
1147
|
+
}) : item)
|
|
1148
|
+
});
|
|
1149
|
+
ctx.commit(next2);
|
|
1150
|
+
return {
|
|
1151
|
+
result: `${plural(group.length, "object")} go along the route together from ${from}s, keeping their places.${continuityNote(next2, MOTION_KINDS)}
|
|
1152
|
+
|
|
1153
|
+
${describeObjects(next2)}`,
|
|
1154
|
+
label: "Group route",
|
|
1155
|
+
detail: plural(group.length, "object")
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
const id = str(args.id);
|
|
1159
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1160
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"} - give id, ids, or camera true`);
|
|
1161
|
+
const person = isPerson(object);
|
|
1162
|
+
const pace = str(args.pace) || (person ? "walk" : "fit");
|
|
1163
|
+
let next = walkPath(project, id, points, __spreadValues({
|
|
1164
|
+
fromSec: from
|
|
1165
|
+
}, pace === "walk" || pace === "run" ? {
|
|
1166
|
+
pace: GAIT_PACE[pace]
|
|
1167
|
+
} : {}));
|
|
1168
|
+
if (person && (pace === "walk" || pace === "run")) next = __spreadProps(__spreadValues({}, next), {
|
|
1169
|
+
objects: next.objects.map((item) => item.id === id ? __spreadProps(__spreadValues({}, item), {
|
|
1170
|
+
gait: pace
|
|
1171
|
+
}) : item)
|
|
1172
|
+
});
|
|
1173
|
+
ctx.commit(next);
|
|
1174
|
+
const keys = (_d = (_c = (_b = next.objects.find((item) => item.id === id)) == null ? void 0 : _b.track) == null ? void 0 : _c.keys) != null ? _d : [];
|
|
1175
|
+
return {
|
|
1176
|
+
result: `${object.name} goes along ${points.length} points from ${from}s to ${(_f = (_e = keys.at(-1)) == null ? void 0 : _e.t) != null ? _f : from}s${person && (pace === "walk" || pace === "run") ? `, ${pace === "walk" ? "walking" : "running"}` : ""}, facing where it goes.${continuityNote(next, MOTION_KINDS)}
|
|
1177
|
+
|
|
1178
|
+
${describeObjects(next)}`,
|
|
1179
|
+
label: `${object.name}'s route`,
|
|
1180
|
+
detail: `${points.length} points`
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
function arrangeGroupTool(args, ctx) {
|
|
1184
|
+
const project = ctx.project();
|
|
1185
|
+
const ids = list(args.ids).map((v) => str(v)).filter((id) => project.objects.some((object) => object.id === id));
|
|
1186
|
+
if (ids.length < 2) throw new ToolInputError("give at least two ids of objects in the set");
|
|
1187
|
+
const formation = FORMATIONS.find((value) => value === str(args.formation));
|
|
1188
|
+
if (!formation) throw new ToolInputError(`formation must be one of ${FORMATIONS.join(", ")}`);
|
|
1189
|
+
const centre = argsOf(args.center);
|
|
1190
|
+
const members = project.objects.filter((object) => ids.includes(object.id));
|
|
1191
|
+
const middle = isNum(centre.x) && isNum(centre.z) ? {
|
|
1192
|
+
x: centre.x,
|
|
1193
|
+
z: centre.z
|
|
1194
|
+
} : members.reduce((sum, o) => ({
|
|
1195
|
+
x: sum.x + o.position.x / members.length,
|
|
1196
|
+
z: sum.z + o.position.z / members.length
|
|
1197
|
+
}), {
|
|
1198
|
+
x: 0,
|
|
1199
|
+
z: 0
|
|
1200
|
+
});
|
|
1201
|
+
const lens = cameraAt(project, 0).position;
|
|
1202
|
+
const facing = isNum(args.facing_deg) ? args.facing_deg : Math.round(Math.atan2(lens.x - middle.x, lens.z - middle.z) * 180 / Math.PI);
|
|
1203
|
+
let next = arrangeObjects(project, ids, __spreadProps(__spreadValues({
|
|
1204
|
+
kind: formation
|
|
1205
|
+
}, isNum(args.spacing) ? {
|
|
1206
|
+
spacing: args.spacing
|
|
1207
|
+
} : {}), {
|
|
1208
|
+
centre: middle,
|
|
1209
|
+
facingDeg: facing
|
|
1210
|
+
}));
|
|
1211
|
+
const by = argsOf(args.move_by);
|
|
1212
|
+
const moving = isNum(by.x) || isNum(by.z);
|
|
1213
|
+
if (moving) {
|
|
1214
|
+
const from = isNum(args.from_s) ? args.from_s : 0;
|
|
1215
|
+
const to = isNum(args.to_s) ? args.to_s : timelineOf(next).durationSec;
|
|
1216
|
+
next = moveGroup(next, ids, {
|
|
1217
|
+
x: isNum(by.x) ? by.x : 0,
|
|
1218
|
+
z: isNum(by.z) ? by.z : 0
|
|
1219
|
+
}, from, to);
|
|
1220
|
+
}
|
|
1221
|
+
ctx.commit(tidySet(next));
|
|
1222
|
+
return {
|
|
1223
|
+
result: `Arranged ${plural(ids.length, "object")} in a ${formation}, facing ${Math.round(facing)}\xB0${moving ? ", and moved them together" : ""}.${continuityNote(next, MOTION_KINDS)}
|
|
1224
|
+
|
|
1225
|
+
${describeObjects(next)}`,
|
|
1226
|
+
label: `Arranged a ${formation}`,
|
|
1227
|
+
detail: plural(ids.length, "object")
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
function retimeRangeTool(args, ctx) {
|
|
1231
|
+
if (!isNum(args.from_s) || !isNum(args.to_s) || !isNum(args.length_s) || args.length_s <= 0) throw new ToolInputError("give from_s, to_s and a length_s above 0");
|
|
1232
|
+
const before = ctx.project();
|
|
1233
|
+
const {
|
|
1234
|
+
project,
|
|
1235
|
+
durationSec
|
|
1236
|
+
} = retimeRange(before, args.from_s, args.to_s, args.length_s);
|
|
1237
|
+
if (project === before) throw new ToolInputError("that stretch is shorter than a twentieth of a second, or outside the shot");
|
|
1238
|
+
ctx.commit(project);
|
|
1239
|
+
return {
|
|
1240
|
+
result: `${args.from_s}-${args.to_s}s now lasts ${args.length_s}s; everything after moved along, and the shot runs ${durationSec}s.${continuityNote(project)}`,
|
|
1241
|
+
label: "Retimed a stretch",
|
|
1242
|
+
detail: `${args.from_s}-${args.to_s}s to ${args.length_s}s`
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
function poseOverTimeTool(args, ctx) {
|
|
1246
|
+
const project = ctx.project();
|
|
1247
|
+
const id = str(args.id);
|
|
1248
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1249
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"}`);
|
|
1250
|
+
const {
|
|
1251
|
+
durationSec
|
|
1252
|
+
} = timelineOf(project);
|
|
1253
|
+
const keys = list(args.poses).map(argsOf).flatMap((raw) => isNum(raw.t) && raw.t >= 0 && FIGURE_POSES.includes(str(raw.pose)) ? [{
|
|
1254
|
+
t: Math.min(durationSec, Math.round(raw.t * 100) / 100),
|
|
1255
|
+
pose: str(raw.pose)
|
|
1256
|
+
}] : []).sort((a, b) => a.t - b.t);
|
|
1257
|
+
if (keys.length === 0) throw new ToolInputError(`no usable poses - each needs a time t and a pose from ${FIGURE_POSES.join(", ")}`);
|
|
1258
|
+
const _a = object, {
|
|
1259
|
+
poseKeys: _old
|
|
1260
|
+
} = _a, rest = __objRest(_a, [
|
|
1261
|
+
"poseKeys"
|
|
1262
|
+
]);
|
|
1263
|
+
ctx.commit(__spreadProps(__spreadValues({}, project), {
|
|
1264
|
+
objects: project.objects.map((item) => item.id === id ? __spreadProps(__spreadValues({}, rest), {
|
|
1265
|
+
poseKeys: keys
|
|
1266
|
+
}) : item)
|
|
1267
|
+
}));
|
|
1268
|
+
const limbs = hasLimbs(object) ? "" : object.source === "mesh" ? " This generated character has no skeleton yet: rig_character it so the poses show on the stage. The real video acts them either way." : " This piece has no joints, so the poses show only in the real video.";
|
|
1269
|
+
return {
|
|
1270
|
+
result: `${object.name}: ${keys.map((key) => `${key.t}s ${key.pose}`).join(", ")}.${limbs}`,
|
|
1271
|
+
label: `Posed ${object.name}`,
|
|
1272
|
+
detail: plural(keys.length, "pose")
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
async function rigCharacterTool(args, ctx) {
|
|
1276
|
+
var _a;
|
|
1277
|
+
const project = ctx.project();
|
|
1278
|
+
const id = str(args.id);
|
|
1279
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1280
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"}`);
|
|
1281
|
+
if (object.source === "kit") throw new ToolInputError(`${object.name} is a stand-in: it already walks, runs, crouches and turns its head - give it a gait and poses`);
|
|
1282
|
+
if (object.source !== "mesh" || !object.modelUrl) throw new ToolInputError(`${object.name} is not a generated 3D character`);
|
|
1283
|
+
if ((_a = object.rig) == null ? void 0 : _a.riggedGlbUrl) return {
|
|
1284
|
+
result: `${object.name} is rigged already: give it a gait and poses.`,
|
|
1285
|
+
label: `${object.name} is rigged`
|
|
1286
|
+
};
|
|
1287
|
+
if (!ctx.services.rigCharacter) throw new Error("nothing on this workspace can rig a character yet");
|
|
1288
|
+
ctx.progress(`Rigging ${object.name}\u2026`);
|
|
1289
|
+
const rig = await ctx.services.rigCharacter(__spreadValues({
|
|
1290
|
+
modelUrl: object.modelUrl,
|
|
1291
|
+
onProgress: (line) => ctx.progress(`${object.name}: ${line}`)
|
|
1292
|
+
}, ctx.signal ? {
|
|
1293
|
+
signal: ctx.signal
|
|
1294
|
+
} : {}));
|
|
1295
|
+
if (!(rig == null ? void 0 : rig.riggedGlbUrl)) throw new Error(`rigging finished without a skeleton - it works on humanoid characters only, and ${object.name} may not read as one`);
|
|
1296
|
+
const now = ctx.project();
|
|
1297
|
+
ctx.commit(__spreadProps(__spreadValues({}, now), {
|
|
1298
|
+
objects: now.objects.map((item) => item.id === id ? __spreadProps(__spreadValues({}, item), {
|
|
1299
|
+
rig
|
|
1300
|
+
}) : item)
|
|
1301
|
+
}));
|
|
1302
|
+
return {
|
|
1303
|
+
result: `${object.name} has a skeleton now: with a gait it walks and breaks into a run on its own legs, and pose_over_time crouches it or turns its head.`,
|
|
1304
|
+
label: `Rigged ${object.name}`
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
function writeScriptTool(args, ctx) {
|
|
1308
|
+
const project = ctx.project();
|
|
1309
|
+
const {
|
|
1310
|
+
durationSec
|
|
1311
|
+
} = timelineOf(project);
|
|
1312
|
+
const unknown = /* @__PURE__ */ new Set();
|
|
1313
|
+
const beats = list(args.beats).map(argsOf).flatMap((raw) => {
|
|
1314
|
+
if (!isNum(raw.t) || raw.t < 0) return [];
|
|
1315
|
+
const line = str(raw.line);
|
|
1316
|
+
const action = str(raw.action);
|
|
1317
|
+
if (!line && !action) return [];
|
|
1318
|
+
const who = str(raw.who_id);
|
|
1319
|
+
if (who && !project.objects.some((object) => object.id === who)) unknown.add(who);
|
|
1320
|
+
return [__spreadValues(__spreadValues(__spreadValues({
|
|
1321
|
+
id: newBeatId(),
|
|
1322
|
+
t: Math.min(durationSec, Math.round(raw.t * 100) / 100)
|
|
1323
|
+
}, who && !unknown.has(who) ? {
|
|
1324
|
+
who
|
|
1325
|
+
} : {}), line ? {
|
|
1326
|
+
line
|
|
1327
|
+
} : {}), action ? {
|
|
1328
|
+
action
|
|
1329
|
+
} : {})];
|
|
1330
|
+
}).sort((a, b) => a.t - b.t);
|
|
1331
|
+
if (beats.length === 0) throw new ToolInputError("no beats - each needs a time t and a line or an action");
|
|
1332
|
+
const _a = project, {
|
|
1333
|
+
script: _old
|
|
1334
|
+
} = _a, rest = __objRest(_a, [
|
|
1335
|
+
"script"
|
|
1336
|
+
]);
|
|
1337
|
+
const {
|
|
1338
|
+
project: next,
|
|
1339
|
+
posed
|
|
1340
|
+
} = posesFromScript(__spreadProps(__spreadValues({}, rest), {
|
|
1341
|
+
script: beats
|
|
1342
|
+
}), (object) => hasLimbs(object) || object.source === "mesh");
|
|
1343
|
+
ctx.commit(next);
|
|
1344
|
+
const missing = unknown.size > 0 ? ` No object has id ${[...unknown].join(", ")}: those beats belong to the scene.` : "";
|
|
1345
|
+
const lines = beats.filter((beat) => beat.line).length;
|
|
1346
|
+
return {
|
|
1347
|
+
result: `The script has ${plural(beats.length, "beat")}, ${plural(lines, "line")} spoken.${missing}${lines > 0 ? " Spoken lines need a model that makes sound; Render says which do." : ""}${posed.length ? ` Posed from it: ${posed.join("; ")}.` : ""}
|
|
1348
|
+
${scriptLines(next).join("\n")}`,
|
|
1349
|
+
label: "Wrote the script",
|
|
1350
|
+
detail: `${plural(beats.length, "beat")}`
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
function castPhotoTool(args, ctx) {
|
|
1354
|
+
var _a;
|
|
1355
|
+
const project = ctx.project();
|
|
1356
|
+
const id = str(args.id);
|
|
1357
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1358
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"}`);
|
|
1359
|
+
const references = (_a = project.references) != null ? _a : [];
|
|
1360
|
+
const n = isNum(args.photo) ? Math.round(args.photo) : -1;
|
|
1361
|
+
if (n < 0 || n > references.length) throw new ToolInputError(references.length ? `photo must be 1 to ${references.length}, or 0 to untie` : "there are no reference photographs on this set");
|
|
1362
|
+
const _b = object, {
|
|
1363
|
+
lookRef: _was
|
|
1364
|
+
} = _b, rest = __objRest(_b, [
|
|
1365
|
+
"lookRef"
|
|
1366
|
+
]);
|
|
1367
|
+
const tied = n === 0 ? rest : __spreadProps(__spreadValues({}, rest), {
|
|
1368
|
+
lookRef: references[n - 1].id
|
|
1369
|
+
});
|
|
1370
|
+
ctx.commit(__spreadProps(__spreadValues({}, project), {
|
|
1371
|
+
objects: project.objects.map((item) => item.id === id ? tied : item)
|
|
1372
|
+
}));
|
|
1373
|
+
return {
|
|
1374
|
+
result: n === 0 ? `${object.name} is tied to no photograph.` : `${object.name} is the person in photograph ${n}.`,
|
|
1375
|
+
label: n === 0 ? `Untied ${object.name}` : `${object.name} is photo ${n}`
|
|
1376
|
+
};
|
|
1377
|
+
}
|
|
1378
|
+
function endCardTool(args, ctx) {
|
|
1379
|
+
const project = ctx.project();
|
|
1380
|
+
const text = str(args.text).slice(0, 120);
|
|
1381
|
+
const _a = project, {
|
|
1382
|
+
endCard: _was
|
|
1383
|
+
} = _a, rest = __objRest(_a, [
|
|
1384
|
+
"endCard"
|
|
1385
|
+
]);
|
|
1386
|
+
if (!text) {
|
|
1387
|
+
ctx.commit(rest);
|
|
1388
|
+
return {
|
|
1389
|
+
result: "The video ends on the shot, with no title.",
|
|
1390
|
+
label: "No end title"
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
const seconds = isNum(args.seconds) ? Math.min(10, Math.max(1, args.seconds)) : 3;
|
|
1394
|
+
ctx.commit(__spreadProps(__spreadValues({}, rest), {
|
|
1395
|
+
endCard: {
|
|
1396
|
+
text,
|
|
1397
|
+
seconds
|
|
1398
|
+
}
|
|
1399
|
+
}));
|
|
1400
|
+
return {
|
|
1401
|
+
result: `The real video fades to black and holds "${text}" for ${seconds}s.`,
|
|
1402
|
+
label: "End title",
|
|
1403
|
+
detail: text
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
function carryObjectTool(args, ctx) {
|
|
1407
|
+
const project = ctx.project();
|
|
1408
|
+
const id = str(args.id);
|
|
1409
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1410
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"}`);
|
|
1411
|
+
const carrierId = str(args.carrier_id);
|
|
1412
|
+
if (!carrierId) {
|
|
1413
|
+
const _a = object, {
|
|
1414
|
+
attachedTo: _was
|
|
1415
|
+
} = _a, free = __objRest(_a, [
|
|
1416
|
+
"attachedTo"
|
|
1417
|
+
]);
|
|
1418
|
+
ctx.commit(__spreadProps(__spreadValues({}, project), {
|
|
1419
|
+
objects: project.objects.map((item) => item.id === id ? free : item)
|
|
1420
|
+
}));
|
|
1421
|
+
return {
|
|
1422
|
+
result: `${object.name} stands on its own again.`,
|
|
1423
|
+
label: `Let go of ${object.name}`
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
const carrier = project.objects.find((item) => item.id === carrierId);
|
|
1427
|
+
if (!carrier || carrierId === id) throw new ToolInputError(`no other object in the set has id ${carrierId}`);
|
|
1428
|
+
for (let at = carrier, depth = 0; (at == null ? void 0 : at.attachedTo) && depth < 8; depth += 1) {
|
|
1429
|
+
if (at.attachedTo.objectId === id) throw new ToolInputError(`${carrier.name} is already carried by ${object.name}`);
|
|
1430
|
+
at = project.objects.find((item) => item.id === at.attachedTo.objectId);
|
|
1431
|
+
}
|
|
1432
|
+
const atSec = isNum(args.at_s) ? Math.max(0, args.at_s) : 0;
|
|
1433
|
+
ctx.commit(__spreadProps(__spreadValues({}, project), {
|
|
1434
|
+
objects: project.objects.map((item) => item.id === id ? __spreadProps(__spreadValues({}, item), {
|
|
1435
|
+
attachedTo: {
|
|
1436
|
+
objectId: carrierId,
|
|
1437
|
+
atSec
|
|
1438
|
+
}
|
|
1439
|
+
}) : item)
|
|
1440
|
+
}));
|
|
1441
|
+
return {
|
|
1442
|
+
result: `${carrier.name} carries ${object.name} from where it is at ${atSec}s: it moves and turns with it.`,
|
|
1443
|
+
label: `${carrier.name} carries ${object.name}`
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
function linkedCopiesTool(args, ctx) {
|
|
1447
|
+
const project = ctx.project();
|
|
1448
|
+
const id = str(args.id);
|
|
1449
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1450
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"}`);
|
|
1451
|
+
if (args.unlink === true) {
|
|
1452
|
+
ctx.commit(unlink(project, id));
|
|
1453
|
+
return {
|
|
1454
|
+
result: `${object.name} goes its own way: a change to it no longer reaches the copies.`,
|
|
1455
|
+
label: `Unlinked ${object.name}`
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
const count = isNum(args.count) ? Math.max(1, Math.min(20, Math.round(args.count))) : 1;
|
|
1459
|
+
const {
|
|
1460
|
+
project: next,
|
|
1461
|
+
ids
|
|
1462
|
+
} = duplicateLinked(project, id, count, isNum(args.spacing) ? args.spacing : 0.8);
|
|
1463
|
+
const copies = `${ids.length} linked ${ids.length === 1 ? "copy" : "copies"}`;
|
|
1464
|
+
return committed(ctx, next, `Made ${copies} of ${object.name}, set out beside it: ${ids.join(", ")}. A new colour or model on one goes to every copy.`, `Made ${copies}`, object.name);
|
|
1465
|
+
}
|
|
1466
|
+
function committed(ctx, project, said, label, detail) {
|
|
1467
|
+
const tidy = tidySet(project);
|
|
1468
|
+
ctx.commit(tidy);
|
|
1469
|
+
return __spreadValues({
|
|
1470
|
+
result: `${said}
|
|
1471
|
+
|
|
1472
|
+
${describeObjects(tidy)}`,
|
|
1473
|
+
label
|
|
1474
|
+
}, detail ? {
|
|
1475
|
+
detail
|
|
1476
|
+
} : {});
|
|
1477
|
+
}
|
|
1478
|
+
function blockSet(args, ctx) {
|
|
1479
|
+
const specs = list(args.objects).map(toPlacement).filter((s) => s !== null);
|
|
1480
|
+
if (specs.length === 0) throw new ToolInputError(`no placeable objects - every entry needs a "kit" from: ${KIT_IDS}`);
|
|
1481
|
+
const mode = args.mode === "replace" ? "replace" : "add";
|
|
1482
|
+
const before = ctx.project();
|
|
1483
|
+
const placedSet = placeObjects(before, specs, mode);
|
|
1484
|
+
const looks = new Map(before.objects.filter((object) => object.lookRef).map((object) => [object.name.toLowerCase(), object.lookRef]));
|
|
1485
|
+
const recast = mode === "replace" && looks.size > 0 ? __spreadProps(__spreadValues({}, placedSet.project), {
|
|
1486
|
+
objects: placedSet.project.objects.map((object) => !object.lookRef && looks.has(object.name.toLowerCase()) ? __spreadProps(__spreadValues({}, object), {
|
|
1487
|
+
lookRef: looks.get(object.name.toLowerCase())
|
|
1488
|
+
}) : object)
|
|
1489
|
+
}) : placedSet.project;
|
|
1490
|
+
const project = mode === "replace" ? clearCameraKeys(recast) : recast;
|
|
1491
|
+
const {
|
|
1492
|
+
placed,
|
|
1493
|
+
unknownKits
|
|
1494
|
+
} = placedSet;
|
|
1495
|
+
if (placed.length === 0) throw new ToolInputError(`none of those kit ids exist (${unknownKits.join(", ")}); use one of: ${KIT_IDS}`);
|
|
1496
|
+
const dropped = unknownKits.length > 0 ? ` Dropped ${plural(unknownKits.length, "entry")} with an unknown kit (${unknownKits.join(", ")}); the library is: ${KIT_IDS}.` : "";
|
|
1497
|
+
const verb = mode === "replace" ? "Replaced the set with" : "Added";
|
|
1498
|
+
const camera = project.camera;
|
|
1499
|
+
const untouched = camera.position.x === DEFAULT_CAMERA.position.x && camera.position.y === DEFAULT_CAMERA.position.y && camera.position.z === DEFAULT_CAMERA.position.z;
|
|
1500
|
+
const unlit = surveyIsCurrent(project) && Boolean(project.referenceSurvey) && project.lighting.keyAzimuthDeg === DEFAULT_LIGHTING.keyAzimuthDeg && project.lighting.keyElevationDeg === DEFAULT_LIGHTING.keyElevationDeg;
|
|
1501
|
+
const nextStep = (untouched ? " The camera has NOT been set - it is still on the default angle. Call set_camera now; the shot is not blocked until you do." : "") + (unlit ? " The survey's LIGHT has NOT been applied - the set is still on the default key. Call set_light with it now." : "");
|
|
1502
|
+
return committed(ctx, project, `${verb} ${plural(placed.length, "object")}.${dropped}${nextStep}`, `${mode === "replace" ? "Blocked" : "Added"} ${plural(placed.length, "object")}`, placed.slice(0, 6).map((o) => o.name).join(", "));
|
|
1503
|
+
}
|
|
1504
|
+
function rebuildFromSurveyTool(args, ctx) {
|
|
1505
|
+
var _a;
|
|
1506
|
+
const before = ctx.project();
|
|
1507
|
+
if (!surveyIsCurrent(before) || !before.referenceSurvey) throw new ToolInputError("there is no current survey of the photographs on this set");
|
|
1508
|
+
const plan = planFromSurvey(before.referenceSurvey.text);
|
|
1509
|
+
const leaveOut = new Set(list(args.leave_out).map((name) => str(name).toLowerCase()).filter(Boolean));
|
|
1510
|
+
const specs = plan.placements.filter((spec) => {
|
|
1511
|
+
var _a2;
|
|
1512
|
+
return !leaveOut.has(((_a2 = spec.name) != null ? _a2 : "").toLowerCase());
|
|
1513
|
+
});
|
|
1514
|
+
const {
|
|
1515
|
+
project: blocked,
|
|
1516
|
+
placed,
|
|
1517
|
+
unknownKits
|
|
1518
|
+
} = placeObjects(before, specs, "replace");
|
|
1519
|
+
if (placed.length === 0) throw new ToolInputError("the survey has no lines that can be built; use block_set with what it says");
|
|
1520
|
+
const next = tidySet(clearCameraKeys(__spreadProps(__spreadValues({}, blocked), {
|
|
1521
|
+
camera: plan.camera ? cameraFromShot(blocked.camera, plan.camera) : blocked.camera,
|
|
1522
|
+
lighting: plan.light ? litBy(blocked.lighting, plan.light) : blocked.lighting,
|
|
1523
|
+
world: plan.backdrop ? __spreadProps(__spreadValues({}, blocked.world), {
|
|
1524
|
+
background: plan.backdrop
|
|
1525
|
+
}) : blocked.world
|
|
1526
|
+
})));
|
|
1527
|
+
ctx.commit(next);
|
|
1528
|
+
(_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, next.camera);
|
|
1529
|
+
const lost = [...unknownKits.length > 0 ? [`${plural(unknownKits.length, "line")} named a piece the library does not have (${unknownKits.join(", ")})`] : [], ...plan.unreadLines > 0 ? [`${plural(plan.unreadLines, "line")} could not be read`] : []];
|
|
1530
|
+
const lostNote = lost.length > 0 ? ` ${lost.join(" and ")}: add what is missing with block_set mode "add".` : "";
|
|
1531
|
+
return {
|
|
1532
|
+
result: `Built ${plural(placed.length, "object")} from the survey and put on its camera and light.${lostNote}
|
|
1533
|
+
|
|
1534
|
+
${describeObjects(next)}`,
|
|
1535
|
+
label: "Built the photographs",
|
|
1536
|
+
detail: placed.slice(0, 6).map((o) => o.name).join(", ")
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
function updateTool(args, ctx) {
|
|
1540
|
+
const specs = list(args.updates).map(toUpdate).filter((s) => s !== null);
|
|
1541
|
+
if (specs.length === 0) throw new ToolInputError('no updates - every entry needs the "id" of an object in the set');
|
|
1542
|
+
const timed = new Set(ctx.project().objects.filter((object) => {
|
|
1543
|
+
var _a;
|
|
1544
|
+
return (_a = object.poseKeys) == null ? void 0 : _a.length;
|
|
1545
|
+
}).map((object) => object.id));
|
|
1546
|
+
const posedOverTime = specs.filter((spec) => spec.pose && timed.has(spec.id));
|
|
1547
|
+
for (const spec of posedOverTime) delete spec.pose;
|
|
1548
|
+
const changed = updateObjects(ctx.project(), specs);
|
|
1549
|
+
const shared = specs.filter((spec) => spec.color).reduce((set, spec) => shareLook(set, spec.id), changed.project);
|
|
1550
|
+
const hips = list(args.updates).map(argsOf).filter((u) => isNum(u.hip_height_m) && str(u.id));
|
|
1551
|
+
const project = hips.reduce((set, u) => setHipHeightIn(set, str(u.id), u.hip_height_m), shared);
|
|
1552
|
+
const {
|
|
1553
|
+
updated,
|
|
1554
|
+
missing
|
|
1555
|
+
} = changed;
|
|
1556
|
+
if (updated.length === 0) throw new ToolInputError(`no object in the set has ${missing.length === 1 ? `id ${missing[0]}` : `any of those ids (${missing.join(", ")})`}`);
|
|
1557
|
+
const missingNote = missing.length > 0 ? ` No object has ${missing.length === 1 ? `id ${missing[0]}` : `ids ${missing.join(", ")}`}.` : "";
|
|
1558
|
+
const keyed = updated.filter((o) => {
|
|
1559
|
+
var _a, _b;
|
|
1560
|
+
return ((_b = (_a = o.track) == null ? void 0 : _a.keys.length) != null ? _b : 0) > 0 && specs.some((s) => s.id === o.id && (s.position || s.rotation || isNum(s.rotationY)));
|
|
1561
|
+
});
|
|
1562
|
+
const keyedNote = keyed.length > 0 ? ` ${keyed.map((o) => o.name).join(", ")} moves on keys, so where it is comes from them: use animate_object to change that.` : "";
|
|
1563
|
+
const poseNote = posedOverTime.length ? ` ${posedOverTime.map((spec) => {
|
|
1564
|
+
var _a;
|
|
1565
|
+
return (_a = project.objects.find((o) => o.id === spec.id)) == null ? void 0 : _a.name;
|
|
1566
|
+
}).join(", ")} has poses over time, so a pose for the whole shot was not set: change them with pose_over_time.` : "";
|
|
1567
|
+
const note = missingNote + keyedNote + poseNote + (specs.some((spec) => spec.gait) ? continuityNote(project, MOTION_KINDS) : "");
|
|
1568
|
+
return committed(ctx, project, `Updated ${plural(updated.length, "object")}.${note}`, `Updated ${plural(updated.length, "object")}`, updated.map((o) => o.name).slice(0, 6).join(", "));
|
|
1569
|
+
}
|
|
1570
|
+
function removeTool(args, ctx) {
|
|
1571
|
+
const ids = list(args.ids).map((v) => str(v)).filter(Boolean);
|
|
1572
|
+
if (ids.length === 0) throw new ToolInputError("no ids given");
|
|
1573
|
+
const {
|
|
1574
|
+
project,
|
|
1575
|
+
removed,
|
|
1576
|
+
missing
|
|
1577
|
+
} = removeObjects(ctx.project(), ids);
|
|
1578
|
+
if (removed.length === 0) throw new ToolInputError(`no object in the set has ${missing.length === 1 ? `id ${missing[0]}` : `any of those ids (${missing.join(", ")})`}`);
|
|
1579
|
+
const note = missing.length > 0 ? ` ${plural(missing.length, "id")} matched nothing.` : "";
|
|
1580
|
+
return committed(ctx, project, `Removed ${plural(removed.length, "object")}.${note}`, `Removed ${plural(removed.length, "object")}`, removed.map((o) => o.name).join(", "));
|
|
1581
|
+
}
|
|
1582
|
+
function cameraTool(args, ctx) {
|
|
1583
|
+
var _b;
|
|
1584
|
+
const spec = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, point(args.target) ? {
|
|
1585
|
+
target: point(args.target)
|
|
1586
|
+
} : {}), point(args.position) ? {
|
|
1587
|
+
position: point(args.position)
|
|
1588
|
+
} : {}), isNum(args.distance) ? {
|
|
1589
|
+
distance: args.distance
|
|
1590
|
+
} : {}), isNum(args.height) ? {
|
|
1591
|
+
height: args.height
|
|
1592
|
+
} : {}), isNum(args.azimuth_deg) ? {
|
|
1593
|
+
azimuthDeg: args.azimuth_deg
|
|
1594
|
+
} : {}), isNum(args.lens_mm) ? {
|
|
1595
|
+
lensMm: args.lens_mm
|
|
1596
|
+
} : {}), isNum(args.fov) ? {
|
|
1597
|
+
fov: args.fov
|
|
1598
|
+
} : {});
|
|
1599
|
+
if (Object.keys(spec).length === 0 && !isNum(args.roll_deg)) throw new ToolInputError("nothing to change - give a distance, a height, an azimuth, a lens, a target or a roll");
|
|
1600
|
+
const project = ctx.project();
|
|
1601
|
+
const framed = cameraFromShot(project.camera, spec);
|
|
1602
|
+
const roll = isNum(args.roll_deg) ? Math.max(-60, Math.min(60, args.roll_deg)) : framed.roll;
|
|
1603
|
+
const _a = framed, {
|
|
1604
|
+
roll: _was
|
|
1605
|
+
} = _a, level = __objRest(_a, [
|
|
1606
|
+
"roll"
|
|
1607
|
+
]);
|
|
1608
|
+
const camera = roll ? __spreadProps(__spreadValues({}, level), {
|
|
1609
|
+
roll
|
|
1610
|
+
}) : level;
|
|
1611
|
+
const next = tidySet(__spreadProps(__spreadValues({}, project), {
|
|
1612
|
+
camera
|
|
1613
|
+
}));
|
|
1614
|
+
ctx.commit(next);
|
|
1615
|
+
(_b = ctx.applyCamera) == null ? void 0 : _b.call(ctx, next.camera);
|
|
1616
|
+
const mm = isNum(args.lens_mm) ? `${Math.round(args.lens_mm)}mm` : `${Math.round(next.camera.fov)}\xB0`;
|
|
1617
|
+
const away = Math.hypot(next.camera.position.x - next.camera.target.x, next.camera.position.z - next.camera.target.z);
|
|
1618
|
+
return {
|
|
1619
|
+
result: `${cameraKeyedNote(project).trim()} Camera at ${[next.camera.position.x, next.camera.position.y, next.camera.position.z].map((v) => Math.round(v * 100) / 100).join(",")} looking at ${[next.camera.target.x, next.camera.target.y, next.camera.target.z].map((v) => Math.round(v * 100) / 100).join(",")}, ${Math.round(next.camera.fov)}\xB0 fov.`,
|
|
1620
|
+
label: "Set the camera",
|
|
1621
|
+
detail: `${mm} \xB7 ${Math.round(away * 10) / 10}m out \xB7 ${Math.round(next.camera.position.y * 100) / 100}m up`
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
function longEnough(project, lastKey) {
|
|
1625
|
+
const {
|
|
1626
|
+
durationSec
|
|
1627
|
+
} = timelineOf(project);
|
|
1628
|
+
return lastKey > durationSec ? setTimeline(project, {
|
|
1629
|
+
durationSec: Math.ceil(lastKey)
|
|
1630
|
+
}) : project;
|
|
1631
|
+
}
|
|
1632
|
+
const cameraKeyedNote = (project) => {
|
|
1633
|
+
var _a;
|
|
1634
|
+
return ((_a = project.cameraTrack) == null ? void 0 : _a.length) ? " The camera moves on keys, so this rest position will not show: use key_camera to change the move, or clear_animation to stop it." : "";
|
|
1635
|
+
};
|
|
1636
|
+
const easingOf = (value) => SET_EASINGS.includes(value) ? {
|
|
1637
|
+
easing: value
|
|
1638
|
+
} : {};
|
|
1639
|
+
function timelineTool(args, ctx) {
|
|
1640
|
+
const patch = __spreadValues(__spreadValues({}, isNum(args.duration_s) && args.duration_s > 0 ? {
|
|
1641
|
+
durationSec: args.duration_s
|
|
1642
|
+
} : {}), isNum(args.fps) && args.fps > 0 ? {
|
|
1643
|
+
fps: Math.round(Math.min(60, args.fps))
|
|
1644
|
+
} : {});
|
|
1645
|
+
if (Object.keys(patch).length === 0) throw new ToolInputError("nothing to change - give a duration_s or an fps");
|
|
1646
|
+
const project = ctx.project();
|
|
1647
|
+
const next = setTimeline(patch.durationSec ? retimeShot(project, patch.durationSec) : project, patch.fps ? {
|
|
1648
|
+
fps: patch.fps
|
|
1649
|
+
} : {});
|
|
1650
|
+
ctx.commit(next);
|
|
1651
|
+
const {
|
|
1652
|
+
durationSec,
|
|
1653
|
+
fps
|
|
1654
|
+
} = timelineOf(next);
|
|
1655
|
+
const fitted = patch.durationSec && hasAnimation(project) ? " Everything already moving was fitted to the new length." : "";
|
|
1656
|
+
return {
|
|
1657
|
+
result: `The shot runs ${durationSec}s at ${fps}fps.${fitted}`,
|
|
1658
|
+
label: "Set the timeline",
|
|
1659
|
+
detail: `${durationSec}s \xB7 ${fps}fps`
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1662
|
+
function animateObjectTool(args, ctx) {
|
|
1663
|
+
var _a, _b, _c, _d, _e;
|
|
1664
|
+
const id = str(args.id);
|
|
1665
|
+
const project = ctx.project();
|
|
1666
|
+
const object = project.objects.find((item) => item.id === id);
|
|
1667
|
+
if (!object) throw new ToolInputError(`no object in the set has id ${id || "(none given)"}`);
|
|
1668
|
+
const specs = list(args.keys).flatMap((raw) => {
|
|
1669
|
+
const key = argsOf(raw);
|
|
1670
|
+
if (!isNum(key.t) || key.t < 0) return [];
|
|
1671
|
+
const position = point(key.position);
|
|
1672
|
+
return [__spreadValues(__spreadValues(__spreadValues({
|
|
1673
|
+
t: key.t
|
|
1674
|
+
}, position ? {
|
|
1675
|
+
position
|
|
1676
|
+
} : {}), isNum(key.rotation_y) ? {
|
|
1677
|
+
rotationY: key.rotation_y
|
|
1678
|
+
} : {}), easingOf(key.easing))];
|
|
1679
|
+
});
|
|
1680
|
+
if (specs.length === 0) throw new ToolInputError("no usable keys - every key needs a time t in seconds");
|
|
1681
|
+
const grown = longEnough(project, Math.max(...specs.map((spec) => spec.t)));
|
|
1682
|
+
const first = Math.min(...specs.map((spec) => spec.t));
|
|
1683
|
+
const earlier = ((_b = (_a = object.track) == null ? void 0 : _a.keys) != null ? _b : []).filter((key) => key.t < first - 1e-3);
|
|
1684
|
+
const laid = setObjectKeys(grown, id, specs, typeof args.face_travel === "boolean" ? {
|
|
1685
|
+
faceTravel: args.face_travel
|
|
1686
|
+
} : {});
|
|
1687
|
+
const next = earlier.length === 0 ? laid : __spreadProps(__spreadValues({}, laid), {
|
|
1688
|
+
objects: laid.objects.map((item) => item.id === id && item.track ? __spreadProps(__spreadValues({}, item), {
|
|
1689
|
+
track: __spreadProps(__spreadValues({}, item.track), {
|
|
1690
|
+
keys: [...earlier, ...item.track.keys]
|
|
1691
|
+
})
|
|
1692
|
+
}) : item)
|
|
1693
|
+
});
|
|
1694
|
+
ctx.commit(next);
|
|
1695
|
+
const placed = next.objects.find((item) => item.id === id);
|
|
1696
|
+
const speed = topSpeed((_d = (_c = placed.track) == null ? void 0 : _c.keys) != null ? _d : []);
|
|
1697
|
+
const person = /^figure/.test((_e = object.kitId) != null ? _e : "");
|
|
1698
|
+
const warning = person && speed > 7 ? ` It moves at ${Math.round(speed * 10) / 10} m/s at its fastest; a person sprints at about 7. Give it more time or a shorter route.` : "";
|
|
1699
|
+
return {
|
|
1700
|
+
result: `${object.name} has ${plural(specs.length, "key")}.${warning}${person ? " If they also crouch, look round, wave or point on the way, call pose_over_time for it, and put every action in write_script with their id." : ""}${continuityNote(next, MOTION_KINDS)}
|
|
1701
|
+
|
|
1702
|
+
${describeObjects(next)}`,
|
|
1703
|
+
label: `Animated ${object.name}`,
|
|
1704
|
+
detail: plural(specs.length, "key")
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
function keyCameraTool(args, ctx) {
|
|
1708
|
+
var _a;
|
|
1709
|
+
const raw = list(args.keys).map(argsOf).filter((key) => isNum(key.t) && key.t >= 0);
|
|
1710
|
+
if (raw.length === 0) throw new ToolInputError("no usable keys - every key needs a time t in seconds");
|
|
1711
|
+
raw.sort((a, b) => a.t - b.t);
|
|
1712
|
+
const project = longEnough(ctx.project(), raw[raw.length - 1].t);
|
|
1713
|
+
const {
|
|
1714
|
+
durationSec
|
|
1715
|
+
} = timelineOf(project);
|
|
1716
|
+
let before = project.camera;
|
|
1717
|
+
const keys = raw.map((key) => {
|
|
1718
|
+
const subjectId = str(key.subject_id);
|
|
1719
|
+
const stated = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, point(key.target) ? {
|
|
1720
|
+
target: point(key.target)
|
|
1721
|
+
} : {}), point(key.position) ? {
|
|
1722
|
+
position: point(key.position)
|
|
1723
|
+
} : {}), isNum(key.distance) ? {
|
|
1724
|
+
distance: key.distance
|
|
1725
|
+
} : {}), isNum(key.height) ? {
|
|
1726
|
+
height: key.height
|
|
1727
|
+
} : {}), isNum(key.azimuth_deg) ? {
|
|
1728
|
+
azimuthDeg: key.azimuth_deg
|
|
1729
|
+
} : {}), isNum(key.lens_mm) ? {
|
|
1730
|
+
lensMm: key.lens_mm
|
|
1731
|
+
} : {});
|
|
1732
|
+
let camera;
|
|
1733
|
+
if (subjectId) {
|
|
1734
|
+
const size = SHOT_SIZES.find((value) => value === str(key.size));
|
|
1735
|
+
const angle = SHOT_ANGLES.find((value) => value === str(key.angle));
|
|
1736
|
+
const shot = frameShot(__spreadProps(__spreadValues({}, poseProject(project, key.t)), {
|
|
1737
|
+
camera: before
|
|
1738
|
+
}), __spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
1739
|
+
subjectId
|
|
1740
|
+
}, size ? {
|
|
1741
|
+
size
|
|
1742
|
+
} : {}), angle ? {
|
|
1743
|
+
angle
|
|
1744
|
+
} : {}), str(key.second_subject_id) ? {
|
|
1745
|
+
secondId: str(key.second_subject_id)
|
|
1746
|
+
} : {}), isNum(key.lens_mm) ? {
|
|
1747
|
+
lensMm: key.lens_mm
|
|
1748
|
+
} : {}));
|
|
1749
|
+
if (shot.ok === false) throw new ToolInputError(shot.reason);
|
|
1750
|
+
camera = size === "macro" ? shot.camera : cameraFromShot(shot.camera, stated);
|
|
1751
|
+
} else {
|
|
1752
|
+
camera = cameraFromShot(before, stated);
|
|
1753
|
+
}
|
|
1754
|
+
const blocked = whatBlocksLens(poseProject(project, key.t), camera, str(key.second_subject_id) || void 0);
|
|
1755
|
+
if (blocked) {
|
|
1756
|
+
throw new ToolInputError(blocked.inside ? `the key at ${key.t}s puts the lens inside ${blocked.object.name}, so that frame would show nothing else. Move it clear of ${blocked.object.name}.` : `at the key at ${key.t}s, ${blocked.object.name} stands between the lens and what it aims at. Move the lens so it can see past it.`);
|
|
1757
|
+
}
|
|
1758
|
+
if (isNum(key.roll_deg)) camera = __spreadProps(__spreadValues({}, camera), {
|
|
1759
|
+
roll: Math.max(-60, Math.min(60, key.roll_deg))
|
|
1760
|
+
});
|
|
1761
|
+
before = camera;
|
|
1762
|
+
return __spreadValues(__spreadProps(__spreadValues({}, camera), {
|
|
1763
|
+
t: Math.min(durationSec, key.t)
|
|
1764
|
+
}), easingOf(key.easing));
|
|
1765
|
+
});
|
|
1766
|
+
const next = __spreadProps(__spreadValues({}, project), {
|
|
1767
|
+
cameraTrack: keys
|
|
1768
|
+
});
|
|
1769
|
+
ctx.commit(next);
|
|
1770
|
+
(_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, cameraAt(next, 0));
|
|
1771
|
+
return {
|
|
1772
|
+
result: `The camera has ${plural(keys.length, "key")}, from ${keys[0].t}s to ${keys[keys.length - 1].t}s.${continuityNote(next, CUT_KINDS)}`,
|
|
1773
|
+
label: "Moved the camera",
|
|
1774
|
+
detail: plural(keys.length, "key")
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
function clearAnimationTool(args, ctx) {
|
|
1778
|
+
var _a;
|
|
1779
|
+
const ids = list(args.ids).map((v) => str(v)).filter(Boolean);
|
|
1780
|
+
if (ids.length === 0 && args.camera !== true) throw new ToolInputError("nothing to clear - give ids, or camera true");
|
|
1781
|
+
let next = ctx.project();
|
|
1782
|
+
for (const id of ids) next = clearObjectKeys(next, id);
|
|
1783
|
+
if (args.camera === true) next = clearCameraKeys(next);
|
|
1784
|
+
ctx.commit(next);
|
|
1785
|
+
if (args.camera === true) (_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, next.camera);
|
|
1786
|
+
return {
|
|
1787
|
+
result: `Stopped ${ids.length ? plural(ids.length, "object") : "the camera"} moving.${hasAnimation(next) ? " Other things still move." : " Nothing moves now."}`,
|
|
1788
|
+
label: "Cleared the animation"
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
function frameShotTool(args, ctx) {
|
|
1792
|
+
var _a;
|
|
1793
|
+
const subjectId = str(args.subject_id);
|
|
1794
|
+
if (!subjectId) throw new ToolInputError("give the subject_id of an object in the set");
|
|
1795
|
+
const size = SHOT_SIZES.find((value) => value === str(args.size));
|
|
1796
|
+
const angle = SHOT_ANGLES.find((value) => value === str(args.angle));
|
|
1797
|
+
if (str(args.size) && !size) throw new ToolInputError(`size must be one of ${SHOT_SIZES.join(", ")}`);
|
|
1798
|
+
if (str(args.angle) && !angle) throw new ToolInputError(`angle must be one of ${SHOT_ANGLES.join(", ")}`);
|
|
1799
|
+
const project = ctx.project();
|
|
1800
|
+
const shot = frameShot(poseProject(project, 0), __spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
1801
|
+
subjectId
|
|
1802
|
+
}, str(args.second_subject_id) ? {
|
|
1803
|
+
secondId: str(args.second_subject_id)
|
|
1804
|
+
} : {}), size ? {
|
|
1805
|
+
size
|
|
1806
|
+
} : {}), angle ? {
|
|
1807
|
+
angle
|
|
1808
|
+
} : {}), isNum(args.lens_mm) ? {
|
|
1809
|
+
lensMm: args.lens_mm
|
|
1810
|
+
} : {}));
|
|
1811
|
+
if (shot.ok === false) throw new ToolInputError(shot.reason);
|
|
1812
|
+
const next = tidySet(__spreadProps(__spreadValues({}, project), {
|
|
1813
|
+
camera: shot.camera
|
|
1814
|
+
}));
|
|
1815
|
+
ctx.commit(next);
|
|
1816
|
+
(_a = ctx.applyCamera) == null ? void 0 : _a.call(ctx, next.camera);
|
|
1817
|
+
const {
|
|
1818
|
+
position,
|
|
1819
|
+
target,
|
|
1820
|
+
fov
|
|
1821
|
+
} = next.camera;
|
|
1822
|
+
const away = Math.hypot(position.x - target.x, position.z - target.z);
|
|
1823
|
+
return {
|
|
1824
|
+
result: `Camera on ${shot.subject.name}${shot.second ? ` and ${shot.second.name}` : ""}: at ${position.x},${position.y},${position.z} looking at ${target.x},${target.y},${target.z}, ${fov}\xB0 fov, ${Math.round(away * 10) / 10}m out.${cameraKeyedNote(project)}`,
|
|
1825
|
+
label: "Framed the shot",
|
|
1826
|
+
detail: `${shot.subject.name} \xB7 ${size != null ? size : "medium"}${angle ? ` \xB7 ${angle}` : ""}`
|
|
1827
|
+
};
|
|
1828
|
+
}
|
|
1829
|
+
function litBy(current, change) {
|
|
1830
|
+
return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, current), isNum(change.azimuthDeg) ? {
|
|
1831
|
+
keyAzimuthDeg: (change.azimuthDeg % 360 + 360) % 360
|
|
1832
|
+
} : {}), isNum(change.elevationDeg) ? {
|
|
1833
|
+
keyElevationDeg: Math.min(89, Math.max(1, change.elevationDeg))
|
|
1834
|
+
} : {}), isNum(change.key) ? {
|
|
1835
|
+
keyIntensity: Math.min(10, Math.max(0, change.key))
|
|
1836
|
+
} : {}), isNum(change.ambient) ? {
|
|
1837
|
+
ambientIntensity: Math.min(5, Math.max(0, change.ambient))
|
|
1838
|
+
} : {}), isNum(change.fog) ? {
|
|
1839
|
+
fog: Math.min(1, Math.max(0, change.fog))
|
|
1840
|
+
} : {});
|
|
1841
|
+
}
|
|
1842
|
+
function lightTool(args, ctx) {
|
|
1843
|
+
const project = ctx.project();
|
|
1844
|
+
const change = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, isNum(args.azimuth_deg) ? {
|
|
1845
|
+
azimuthDeg: args.azimuth_deg
|
|
1846
|
+
} : {}), isNum(args.elevation_deg) ? {
|
|
1847
|
+
elevationDeg: args.elevation_deg
|
|
1848
|
+
} : {}), isNum(args.key) ? {
|
|
1849
|
+
key: args.key
|
|
1850
|
+
} : {}), isNum(args.ambient) ? {
|
|
1851
|
+
ambient: args.ambient
|
|
1852
|
+
} : {}), isNum(args.fog) ? {
|
|
1853
|
+
fog: args.fog
|
|
1854
|
+
} : {});
|
|
1855
|
+
if (Object.keys(change).length === 0) throw new ToolInputError("nothing to change - give an azimuth, an elevation, a key, an ambient or a fog");
|
|
1856
|
+
const lighting = litBy(project.lighting, change);
|
|
1857
|
+
ctx.commit(__spreadProps(__spreadValues({}, project), {
|
|
1858
|
+
lighting
|
|
1859
|
+
}));
|
|
1860
|
+
return {
|
|
1861
|
+
result: `Key light from ${Math.round(lighting.keyAzimuthDeg)}\xB0 at ${Math.round(lighting.keyElevationDeg)}\xB0 above the horizon, intensity ${lighting.keyIntensity}, ambient ${lighting.ambientIntensity}${lighting.fog ? `, fog ${lighting.fog}` : ""}.`,
|
|
1862
|
+
label: "Set the light",
|
|
1863
|
+
detail: `${Math.round(lighting.keyAzimuthDeg)}\xB0 / ${Math.round(lighting.keyElevationDeg)}\xB0`
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
function worldTool(args, ctx) {
|
|
1867
|
+
const project = ctx.project();
|
|
1868
|
+
const world = __spreadValues({}, project.world);
|
|
1869
|
+
let touched = false;
|
|
1870
|
+
if (/^#[0-9a-f]{3,8}$/i.test(str(args.background))) {
|
|
1871
|
+
world.background = str(args.background);
|
|
1872
|
+
touched = true;
|
|
1873
|
+
}
|
|
1874
|
+
if (typeof args.show_ground === "boolean") {
|
|
1875
|
+
world.showGround = args.show_ground;
|
|
1876
|
+
touched = true;
|
|
1877
|
+
}
|
|
1878
|
+
if (isNum(args.rotation_deg)) {
|
|
1879
|
+
world.rotationDeg = (args.rotation_deg % 360 + 360) % 360;
|
|
1880
|
+
touched = true;
|
|
1881
|
+
}
|
|
1882
|
+
if (!touched) throw new ToolInputError("nothing to change - give a background colour, show_ground, or a rotation");
|
|
1883
|
+
ctx.commit(__spreadProps(__spreadValues({}, project), {
|
|
1884
|
+
world
|
|
1885
|
+
}));
|
|
1886
|
+
return {
|
|
1887
|
+
result: `Backdrop ${world.background}, ground ${world.showGround ? "on" : "off"}, panorama turned ${Math.round(world.rotationDeg)}\xB0.`,
|
|
1888
|
+
label: "Set the world"
|
|
1889
|
+
};
|
|
1890
|
+
}
|
|
1891
|
+
function formatTool(args, ctx) {
|
|
1892
|
+
const project = ctx.project();
|
|
1893
|
+
const aspect = str(args.aspect);
|
|
1894
|
+
const title = str(args.title);
|
|
1895
|
+
if (aspect && !SET_ASPECTS.includes(aspect)) {
|
|
1896
|
+
throw new ToolInputError(`aspect must be one of ${SET_ASPECTS.join(", ")}`);
|
|
1897
|
+
}
|
|
1898
|
+
if (!aspect && !title) throw new ToolInputError("nothing to change - give an aspect or a title");
|
|
1899
|
+
ctx.commit(__spreadValues(__spreadValues(__spreadValues({}, project), aspect ? {
|
|
1900
|
+
aspect
|
|
1901
|
+
} : {}), title ? {
|
|
1902
|
+
title
|
|
1903
|
+
} : {}));
|
|
1904
|
+
return {
|
|
1905
|
+
result: `Framed ${aspect || project.aspect}${title ? `, called "${title}"` : ""}.`,
|
|
1906
|
+
label: aspect ? `Framed ${aspect}` : "Renamed the set"
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
async function generateObjectTool(args, ctx) {
|
|
1910
|
+
var _a, _b;
|
|
1911
|
+
const prompt = str(args.prompt);
|
|
1912
|
+
const stillId = str(args.still_id);
|
|
1913
|
+
const still = stillId ? ctx.stills.find((s) => s.id === stillId) : void 0;
|
|
1914
|
+
if (stillId && !still) {
|
|
1915
|
+
throw new ToolInputError(ctx.stills.length > 0 ? `no still with id ${stillId}; the board has ${ctx.stills.map((s) => s.id).join(", ")}` : "there are no stills on the board to generate from");
|
|
1916
|
+
}
|
|
1917
|
+
if (!prompt && !still) throw new ToolInputError("give a prompt describing the object, or a still_id from the board");
|
|
1918
|
+
const name = str(args.name) || (prompt ? prompt.slice(0, 28) : (_a = still == null ? void 0 : still.label) != null ? _a : "Object");
|
|
1919
|
+
ctx.progress(`Generating ${name}\u2026`);
|
|
1920
|
+
const result = await ctx.services.generateObject(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, prompt ? {
|
|
1921
|
+
prompt
|
|
1922
|
+
} : {}), still ? {
|
|
1923
|
+
imageUrl: still.src
|
|
1924
|
+
} : {}), {
|
|
1925
|
+
onProgress: (message) => ctx.progress(`${name}: ${message}`)
|
|
484
1926
|
}), ctx.signal ? {
|
|
485
1927
|
signal: ctx.signal
|
|
486
1928
|
} : {}));
|
|
@@ -500,6 +1942,7 @@ async function generateObjectTool(args, ctx) {
|
|
|
500
1942
|
} : {}), still ? {
|
|
501
1943
|
sourceImageUrl: still.src
|
|
502
1944
|
} : {}), {
|
|
1945
|
+
generated: true,
|
|
503
1946
|
position: {
|
|
504
1947
|
x: isNum(position == null ? void 0 : position.x) ? position.x : project.camera.target.x,
|
|
505
1948
|
y: isNum(position == null ? void 0 : position.y) ? position.y : 0,
|
|
@@ -532,11 +1975,76 @@ async function generateWorldTool(args, ctx) {
|
|
|
532
1975
|
detail: prompt.slice(0, 60)
|
|
533
1976
|
};
|
|
534
1977
|
}
|
|
1978
|
+
async function buildSplatWorldTool(args, ctx) {
|
|
1979
|
+
var _a, _b, _c;
|
|
1980
|
+
const start = ctx.services.startSplatWorld;
|
|
1981
|
+
if (!start) throw new Error("3D worlds cannot be built here");
|
|
1982
|
+
const project = ctx.project();
|
|
1983
|
+
const running = (_a = project.world.splat) == null ? void 0 : _a.job;
|
|
1984
|
+
if (running) {
|
|
1985
|
+
const minutes2 = Math.max(1, Math.round((Date.now() - running.startedAt) / 6e4));
|
|
1986
|
+
return {
|
|
1987
|
+
result: `A 3D world is already being built (started about ${minutes2} min ago). It lands on its own; do not start another.`,
|
|
1988
|
+
label: "A 3D world is already on its way"
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
const prompt = str(args.prompt);
|
|
1992
|
+
const stillId = str(args.still_id);
|
|
1993
|
+
const still = stillId ? ctx.stills.find((s) => s.id === stillId) : void 0;
|
|
1994
|
+
if (stillId && !still) {
|
|
1995
|
+
throw new ToolInputError(ctx.stills.length > 0 ? `no still with id ${stillId}; the board has ${ctx.stills.map((s) => s.id).join(", ")}` : "there are no stills on the board to build from");
|
|
1996
|
+
}
|
|
1997
|
+
if (!prompt && !still) throw new ToolInputError("give a prompt describing the place, or a still_id from the board");
|
|
1998
|
+
const kind = (_b = SPLAT_WORLD_MODELS.find((model) => model.label.toLowerCase() === str(args.kind).toLowerCase())) != null ? _b : SPLAT_WORLD_MODELS[0];
|
|
1999
|
+
ctx.progress("Starting the 3D world\u2026");
|
|
2000
|
+
const started = await start(__spreadProps(__spreadValues({}, still ? {
|
|
2001
|
+
imageUrl: still.src
|
|
2002
|
+
} : {
|
|
2003
|
+
prompt
|
|
2004
|
+
}), {
|
|
2005
|
+
model: kind.id
|
|
2006
|
+
})).catch((error) => {
|
|
2007
|
+
throw new Error(toUserMessage(error, "The 3D world could not be started"));
|
|
2008
|
+
});
|
|
2009
|
+
const source = __spreadValues(__spreadValues({}, prompt && !still ? {
|
|
2010
|
+
prompt
|
|
2011
|
+
} : {}), still && /^https?:\/\//i.test(still.src) ? {
|
|
2012
|
+
pictureUrl: still.src
|
|
2013
|
+
} : {});
|
|
2014
|
+
const about = prompt && !still ? prompt : `the picture ${(_c = still == null ? void 0 : still.label) != null ? _c : still == null ? void 0 : still.id}`;
|
|
2015
|
+
const now = ctx.project();
|
|
2016
|
+
if (started.status === "completed") {
|
|
2017
|
+
ctx.commit(__spreadProps(__spreadValues({}, now), {
|
|
2018
|
+
world: __spreadValues(__spreadValues({}, now.world), landSplatWorld(now.world, started, source))
|
|
2019
|
+
}));
|
|
2020
|
+
return {
|
|
2021
|
+
result: `The set now stands in a 3D world of ${about}. Its floor is the set floor and the ground plane is off.`,
|
|
2022
|
+
label: "Built the 3D world",
|
|
2023
|
+
detail: about.slice(0, 60)
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
ctx.commit(__spreadProps(__spreadValues({}, now), {
|
|
2027
|
+
world: __spreadValues(__spreadValues({}, now.world), pendingSplatWorld(now.world, __spreadValues({
|
|
2028
|
+
id: started.jobId,
|
|
2029
|
+
model: started.model,
|
|
2030
|
+
startedAt: Date.now(),
|
|
2031
|
+
typicalSeconds: started.typicalSeconds
|
|
2032
|
+
}, source)))
|
|
2033
|
+
}));
|
|
2034
|
+
const minutes = Math.max(1, Math.round(started.typicalSeconds / 60));
|
|
2035
|
+
return {
|
|
2036
|
+
result: `Building a 3D world of ${about}: about ${minutes} min. It lands on its own, with its floor at the set floor; block the set on the floor as usual meanwhile, and tell the user it is on its way.`,
|
|
2037
|
+
label: "Building the 3D world",
|
|
2038
|
+
detail: about.slice(0, 60)
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
535
2041
|
async function executeSetTool(name, rawArgs, ctx) {
|
|
536
2042
|
var _a;
|
|
537
2043
|
const args = argsOf(rawArgs);
|
|
538
2044
|
try {
|
|
539
2045
|
switch (name) {
|
|
2046
|
+
case "rebuild_from_survey":
|
|
2047
|
+
return rebuildFromSurveyTool(args, ctx);
|
|
540
2048
|
case "block_set":
|
|
541
2049
|
return blockSet(args, ctx);
|
|
542
2050
|
case "update_objects":
|
|
@@ -544,7 +2052,48 @@ async function executeSetTool(name, rawArgs, ctx) {
|
|
|
544
2052
|
case "remove_objects":
|
|
545
2053
|
return removeTool(args, ctx);
|
|
546
2054
|
case "set_camera":
|
|
547
|
-
|
|
2055
|
+
selectCamera(args, ctx);
|
|
2056
|
+
return checkAgain(cameraTool(args, ctx), ctx);
|
|
2057
|
+
case "frame_shot":
|
|
2058
|
+
selectCamera(args, ctx);
|
|
2059
|
+
return checkAgain(frameShotTool(args, ctx), ctx);
|
|
2060
|
+
case "set_timeline":
|
|
2061
|
+
return timelineTool(args, ctx);
|
|
2062
|
+
case "animate_object":
|
|
2063
|
+
return animateObjectTool(args, ctx);
|
|
2064
|
+
case "key_camera":
|
|
2065
|
+
selectCamera(args, ctx);
|
|
2066
|
+
return checkAgain(keyCameraTool(args, ctx), ctx);
|
|
2067
|
+
case "add_camera":
|
|
2068
|
+
return checkAgain(addCameraTool(args, ctx), ctx);
|
|
2069
|
+
case "set_cuts":
|
|
2070
|
+
return checkAgain(setCutsTool(args, ctx), ctx);
|
|
2071
|
+
case "camera_carry":
|
|
2072
|
+
return cameraCarryTool(args, ctx);
|
|
2073
|
+
case "camera_follow":
|
|
2074
|
+
return checkAgain(cameraFollowTool(args, ctx), ctx);
|
|
2075
|
+
case "walk_route":
|
|
2076
|
+
return walkRouteTool(args, ctx);
|
|
2077
|
+
case "arrange_group":
|
|
2078
|
+
return arrangeGroupTool(args, ctx);
|
|
2079
|
+
case "carry_object":
|
|
2080
|
+
return carryObjectTool(args, ctx);
|
|
2081
|
+
case "retime_range":
|
|
2082
|
+
return retimeRangeTool(args, ctx);
|
|
2083
|
+
case "write_script":
|
|
2084
|
+
return writeScriptTool(args, ctx);
|
|
2085
|
+
case "pose_over_time":
|
|
2086
|
+
return poseOverTimeTool(args, ctx);
|
|
2087
|
+
case "rig_character":
|
|
2088
|
+
return await rigCharacterTool(args, ctx);
|
|
2089
|
+
case "cast_photo":
|
|
2090
|
+
return castPhotoTool(args, ctx);
|
|
2091
|
+
case "end_card":
|
|
2092
|
+
return endCardTool(args, ctx);
|
|
2093
|
+
case "linked_copies":
|
|
2094
|
+
return linkedCopiesTool(args, ctx);
|
|
2095
|
+
case "clear_animation":
|
|
2096
|
+
return clearAnimationTool(args, ctx);
|
|
548
2097
|
case "set_light":
|
|
549
2098
|
return lightTool(args, ctx);
|
|
550
2099
|
case "set_world":
|
|
@@ -555,11 +2104,21 @@ async function executeSetTool(name, rawArgs, ctx) {
|
|
|
555
2104
|
return await generateObjectTool(args, ctx);
|
|
556
2105
|
case "generate_world":
|
|
557
2106
|
return await generateWorldTool(args, ctx);
|
|
2107
|
+
case "build_3d_world":
|
|
2108
|
+
return await buildSplatWorldTool(args, ctx);
|
|
558
2109
|
case "get_set":
|
|
559
2110
|
return {
|
|
560
2111
|
result: describeSet(ctx.project(), ctx.stills),
|
|
561
2112
|
label: "Read the set"
|
|
562
2113
|
};
|
|
2114
|
+
case "look_at_shot":
|
|
2115
|
+
return await lookAtShotTool(args, ctx);
|
|
2116
|
+
case "preview_frames":
|
|
2117
|
+
return await previewFramesTool(args, ctx);
|
|
2118
|
+
case "resolve_note":
|
|
2119
|
+
return resolveNoteTool(args, ctx);
|
|
2120
|
+
case "add_note":
|
|
2121
|
+
return addNoteTool(args, ctx);
|
|
563
2122
|
default:
|
|
564
2123
|
return {
|
|
565
2124
|
result: `error: unknown tool "${name}"`,
|
|
@@ -577,4 +2136,4 @@ async function executeSetTool(name, rawArgs, ctx) {
|
|
|
577
2136
|
detail: message.length > 80 ? `${message.slice(0, 79)}\u2026` : message
|
|
578
2137
|
};
|
|
579
2138
|
}
|
|
580
|
-
}export{SET_AGENT_TOOLS,executeSetTool};//# sourceMappingURL=tools.js.map
|
|
2139
|
+
}export{MAX_LOOKS_PER_TURN,SET_AGENT_TOOLS,defaultLookTimes,executeSetTool};//# sourceMappingURL=tools.js.map
|