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.