When dapi mount creates a scene root that did not exist before (no node
with the same key), the camera now fits it into view after it becomes
the active scene. Re-mounts of an existing key still switch the active
scene but leave the camera untouched, so iterating on a project does not
yank the viewport.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Update the image encoder configuration to include a new `resolution` parameter, allowing for customizable output height during node captures. Modify the CLI command description to reflect the fixed 720p height for captures, ensuring consistency in output quality. This change improves the flexibility and precision of the image capturing process, enhancing the overall user experience.
Introduce a new `ImageEncoder` to render frames of an entity into standalone PNGs, enhancing the node capture functionality. Update the `handleNodeCapture` function to utilize the new encoder, allowing for more precise frame capturing with optional timestamp labeling. This change streamlines the capture process and improves the quality of output images, ensuring better representation of animated entities.
Update the `nodeCapture` function to require a non-optional `id` parameter, enhancing type safety. Revise the CLI command to reflect this change, ensuring users must provide a node ID for capturing. Additionally, streamline the `handleNodeCapture` function by asserting canvas readiness and simplifying scene handling, which improves the robustness and clarity of the node capture process.
Introduce a new `inflightLoads` WeakMap to manage concurrent asset loading requests, ensuring that only one promise per asset hash is created and awaited. This change enhances the asset loading process by deduplicating requests for the same asset, improving performance and resource management in the asset subsystem.
Revise the JSX documentation for `<audio>` and `<video>` components to clarify the `volume` prop, now expressed in decibels instead of a linear scale. Update example usages in the README and ensure consistency across related documentation. Additionally, modify the description of volume handling in the CLI to align with the new decibel representation, enhancing user understanding of audio properties.
Revise the documentation for JSX elements, specifically the `<group>`, `<text>`, and paint elements, to enhance clarity regarding their properties and behaviors. The `<group>` now emphasizes its auto-sizing feature based on children, while `<text>` and paint elements have been updated to reflect the use of `fill` instead of `color`. Additionally, the README has been updated to describe the pseudo-SVG nature of the markup, ensuring users have accurate and comprehensive information.
Update timing-related properties across various JSX elements, replacing `inPoint`, `outPoint`, and `startTime` with `start`, `end`, `sourceIn`, and `sourceOut`. This change enhances the clarity of temporal placement semantics and aligns with the new structure for managing media timelines. Additionally, update related documentation to reflect these changes, ensuring users have accurate information on timing properties.
Introduce the `@webgpu/types` package to support WebGPU functionalities in the CLI and web applications. Update the media frame handling logic to include an `auto` option, allowing for automatic frame selection based on visual state changes. This enhancement improves the user experience by providing a more intuitive way to capture frames from video assets, ensuring better quality and relevance in the output.
Modify the `ls` command in the asset and selection sections to allow for multiple aliases, enhancing user flexibility in command usage. This change aims to improve the overall user experience by providing alternative command options while maintaining existing functionality.
Revise descriptions across various CLI commands to enhance user understanding. Changes include clearer explanations for the `context`, `open`, `mount`, `asset`, and `media` commands, ensuring users have precise information on functionality and usage. Additionally, update argument and option descriptions for better context and error handling, contributing to an overall improved user experience in the CLI.
Change the development script commands in `package.json` to improve organization and clarity. Introduce a separate `dev:web` command for the web workspace and update the `dev:desktop` command to run a specific script. Additionally, revise the README to reflect these changes, ensuring users have clear instructions for running the development environment. Set the Vite server to use port 5173 with strict port enforcement for better configuration.
Enhance the `handleNodeCapture` function by integrating multiple rendering systems, including playback, motion, transform, render, and HUD systems. This update ensures that the canvas is updated correctly during the capture process, preventing stale frames and improving the accuracy of captured images. Additionally, add error handling for canvas readiness to enhance robustness. This change builds on previous enhancements to the node capture functionality, further refining the image capture experience.
Add a `--no-timestamp` option to the `node capture` command, allowing users to disable timestamp labeling on captured images. Update the command description and related documentation to reflect this new functionality, ensuring clarity on the capture process and output format. Additionally, implement a utility function for consistent timestamp labeling across the application, improving the overall user experience when capturing node images.
Refactor the `node capture` command to allow capturing images at multiple specified timeline positions, updating the output format to return a JSON line for each capture with the corresponding time and path. Adjust related documentation and descriptions to reflect these changes, improving clarity and usability for users. This update enhances the command's functionality, enabling more precise captures in the application.
Rename the `screenshot` command to `capture` across the codebase and documentation for consistency. Update related descriptions and references to reflect this change, enhancing clarity in the CLI usage and improving user understanding of the command's functionality. This refactor also includes adjustments in the API handling and documentation to ensure a seamless transition.
Introduce a script in `index.html` that detects and applies the user's preferred color scheme (light or dark) based on system settings or stored preferences. This enhancement improves the visual consistency and accessibility of the application by adapting to user preferences.
Revise the `README.md` to update the `dapi node` command description, replacing `export` with `render`. Enhance timestamp handling in the media processing code by ensuring that negative first timestamps are clamped to zero, preventing over-reporting of media track durations. This improves accuracy in video and audio processing functionalities.
Refactor the `grab` command to support new options for frame extraction, including `--count`, `--start`, `--end`, and `--quality`, allowing users to specify the number of frames, sampling window, and resolution presets. Update error handling to ensure proper validation of input parameters. Revise command descriptions for clarity, improving user understanding of frame extraction capabilities and enhancing overall usability in media analysis.
Update the output structure for the `filmstrip` command to simplify the JSON response by removing grid geometry details. Enhance the `waveform` command to include silent stretches in the output, providing users with additional information about audio silence periods. Adjust type definitions and documentation to reflect these changes, improving clarity and usability for media analysis tools.
Refactor the `transcodeForAnalysis` function to accept specific asset types (VideoAsset | AudioAsset) for improved type safety. Increase the `MAX_WIDTH_IN_TOKENS` and `THUMBNAIL_HEIGHT_IN_TOKENS` constants to accommodate larger visual elements. Remove redundant ruler drawing logic to streamline the rendering process, enhancing overall performance and clarity in the transcode utility.
Replace the `visualize` command with `filmstrip` and introduce a new `waveform` command for rendering audio waveforms. Update type definitions and API handling to reflect these changes, ensuring consistency across the application. Revise documentation to clarify command functionalities and improve user understanding of media asset inspection tools, enhancing overall usability.
Add a `--keep-video` option to the `listen` command, allowing users to retain the video track during analysis. Update command descriptions for clarity, including changing the default behavior in the documentation to reflect the new option. This improves user experience by providing more flexibility in media analysis.
Transition the CLI from using `asset` to `media` for various commands, including `probe`, `frame`, `transcribe`, `visualize`, and `listen`. Update type definitions and API handling to reflect this change, ensuring consistency across the application. Revise documentation to enhance user understanding of media asset functionalities, improving overall usability and organization of commands.
Update the CLI to replace the `analyze` command with `listen`, focusing on audio track analysis. Modify related documentation and command descriptions to reflect this change, ensuring clarity on the command's functionality. Adjust type definitions and API handling to support the new command structure, enhancing the user experience when working with audio assets.
Update the CLI descriptions for the `visualize` and `analyze` commands to enhance clarity and usability. The `visualize` command now includes additional aliases and a more comprehensive description of its functionality. The `analyze` command's description has been refined to emphasize its audio-first approach and clarify asset type requirements. Additionally, streamline asset type assertions in the analysis handling to focus on video and audio assets only, improving error messaging and code readability.
Introduce a new `media` command group to replace the previous `asset` command for media inspection tasks, including `probe`, `grab`, `visualize`, `transcribe`, and `analyze`. Update CLI descriptions and documentation to reflect this change, ensuring users can easily understand the functionalities related to media files. This refactor enhances the organization of commands and improves the user experience when working with media assets.
Update the CLI description for the `grab` command to clarify that it outputs high-resolution PNGs with timestamp labels, improving usability for frame inspection. Additionally, export the `formatTimestamp` function for broader use and integrate it into the asset frame handling process, allowing for better timestamp visualization on frames.
Change the `--strip-video` option to `--keep-video` in the asset analysis command, improving the default behavior to include the video stream during analysis. Update related documentation and error handling to reflect this change. Additionally, enhance descriptions for various asset commands to provide clearer guidance on their functionalities and use cases.
Introduce a new `getAssetFile` function to centralize the logic for retrieving asset files, enhancing performance through caching of file handles. Update all relevant components to utilize this new function, ensuring consistent file access across the application. This change simplifies the codebase and improves the efficiency of asset handling.
Revise the CLI description to better convey its capabilities in media analysis, generation, and editing. Enhance the `asset` command description to include details on managing, analyzing, and generating assets, providing users with a clearer understanding of its functionalities.
Update the `visualizeAsset` function to include checks for the browser's ability to decode audio codecs before rendering waveforms. This ensures that only compatible audio tracks are processed, improving error handling and user feedback when unsupported codecs are encountered.
Replace the Electron context with a new Editor API context, improving type safety and structure across the application. Update various components to utilize the new context, including sidebar and project headers, while removing the outdated Electron provider and router. Introduce new API handlers for assets, folders, and project management, streamlining interactions and enhancing overall performance. This update lays the groundwork for future enhancements and better integration with the editor's functionality.
Refactor the CLI and Electron communication to utilize tRPC for improved type safety and structure. Introduce WebSocket support for direct communication between the CLI and renderer, enhancing performance and responsiveness. Update various CLI commands to leverage the new editor API for asset management, folder operations, and project handling. Additionally, enhance TypeScript configurations and dependencies for better development experience. This update streamlines the overall architecture and improves user interaction with the CLI.
Update the `AssetFrameRequest` type to include an optional `resolution` parameter, allowing users to specify the pixel count for each decoded frame. Modify the `assetFrame` function in the CLI and Electron context to handle this new parameter, ensuring proper validation and defaulting behavior. Update the CLI documentation to reflect the new `--resolution` option, enhancing user experience and functionality.
Update the asset addition process in `handleAssetsAdd` to utilize `toAssetRecord` for better data structuring. Enhance error handling in the `CliBridge` class by adding a try-catch block around the reply serialization, ensuring robust error reporting when sending replies to the desktop.
Add a new `--strip-video` flag to the `asset analyze` command, allowing users to analyze only the audio track of video assets, significantly improving performance. Update the implementation to handle this option in the API request and adjust the documentation accordingly. Ensure proper validation for asset types when using the new option, enhancing user experience and functionality.
Update the `transcribe` command to support optional `--start` and `--end` parameters, allowing users to specify a range for the transcript output. Modify the implementation to handle these options in the API request and ensure proper validation of the time inputs. Additionally, update the documentation to reflect these changes, improving user experience and functionality.
Optimize the `setFileInputFiles` function by maintaining the debugger attachment between calls, reducing overhead. Additionally, enhance the `getFile` method in `ElectronFileHandle` to cache the File object, allowing for efficient re-use and preventing race conditions during file materialization. Introduce an `invalidate` method to refresh the cached File when necessary, improving overall file handling efficiency.
Update the documentation and implementation of the `-f, --format` option to specify a default preference for mp4/m4a streams and clarify the behavior of the `-a, --audio` option, ensuring users understand the precedence of audio extraction over format selection. This improves user experience and documentation clarity.
Enhance the `visualize.md` documentation to clarify audio and video rendering details, including the new `HH:MM:SS:FF` timecode format for tick labels. In the `transcode.ts` utility, adjust the maximum width in tokens and refactor the timestamp formatting function to accommodate frame rates, ensuring accurate time representation in visualizations.
Introduce a new command `dapi fetch <url>` to download videos using yt-dlp, which must be installed separately. The command supports various options for output path, format selection, and audio extraction. Update the README to include the new command in the CLI reference, enhancing documentation for user accessibility.