299 Commits

Author SHA1 Message Date
konstantin-paulus
66a37207c2 Enhance node capture functionality with resolution support
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.
2026-07-13 22:59:14 +02:00
konstantin-paulus
35534e3189 Implement image encoding for entity frames in node capture
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.
2026-07-13 10:13:11 +02:00
konstantin-paulus
92c2459a5b Refactor node capture functionality for improved type safety and clarity
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.
2026-07-12 15:52:47 +02:00
konstantin-paulus
91a0930640 Add inflight asset loading mechanism to prevent duplicate requests
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.
2026-07-12 14:34:34 +02:00
konstantin-paulus
8fcf8884b8 Update audio and video documentation to reflect volume changes in decibels
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.
2026-07-12 13:57:58 +02:00
konstantin-paulus
efb17d896c Refactor timing properties in JSX elements for improved clarity and consistency
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.
2026-07-12 08:39:04 +02:00
konstantin-paulus
586cd78164 Add WebGPU types and enhance media frame handling with auto selection feature
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.
2026-07-11 15:21:43 +02:00
konstantin-paulus
4037744faf Refactor development scripts and update README for clarity
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.
2026-07-11 09:02:03 +02:00
konstantin-paulus
d9ca2db851 Implement rendering systems in node capture for improved image output
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.
2026-07-11 08:48:20 +02:00
konstantin-paulus
125a156fcb Enhance node capture command with timestamp options and documentation updates
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.
2026-07-11 08:16:32 +02:00
konstantin-paulus
6878007846 Enhance node capture functionality to support multiple timeline positions
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.
2026-07-11 08:10:27 +02:00
konstantin-paulus
6199baf1ab Refactor screenshot command to capture and update documentation
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.
2026-07-11 08:04:38 +02:00
konstantin-paulus
40d1bd357a Add color scheme handling script to index.html for improved user experience
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.
2026-07-10 23:09:01 +02:00
konstantin-paulus
2ec71b57af Update README and improve timestamp handling in media processing
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.
2026-07-10 22:03:27 +02:00
konstantin-paulus
e22e4bbc30 Enhance media frame grabbing functionality and update documentation
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.
2026-07-10 13:08:48 +02:00
konstantin-paulus
25b4187691 Refactor media output structures and enhance waveform functionality
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.
2026-07-10 12:13:42 +02:00
konstantin-paulus
2f09a98b94 Update transcode functions to enhance type handling and adjust token constants
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.
2026-07-10 11:23:52 +02:00
konstantin-paulus
d52f63ec76 Refactor media inspection commands and enhance documentation
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.
2026-07-10 11:01:48 +02:00
konstantin-paulus
5c117fc4bc Refactor media command structure and update asset handling for improved clarity
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.
2026-07-10 10:19:56 +02:00
konstantin-paulus
121ab67a2d Refactor media command: replace analyze with listen for audio analysis
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.
2026-07-10 08:43:52 +02:00
konstantin-paulus
8d073389fa Refactor media command descriptions and improve asset type handling
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.
2026-07-10 08:17:02 +02:00
konstantin-paulus
526d1d934f Enhance asset frame grabbing and timestamp formatting
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.
2026-07-10 07:34:12 +02:00
konstantin-paulus
f159d2c073 Refactor asset analysis options and update CLI descriptions for clarity
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.
2026-07-10 06:34:46 +02:00
konstantin-paulus
f1ddb006ca Refactor asset file retrieval to improve performance and consistency
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.
2026-07-09 16:40:49 +02:00
konstantin-paulus
0f593009b0 Merge branch 'main' of github.com:diffusionstudio/editor 2026-07-09 14:14:30 +02:00
konstantin-paulus
9d0f321eda Enhance audio track handling in asset visualization by adding codec compatibility checks
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.
2026-07-09 14:13:13 +02:00
konstantin-paulus
f392e72819 Rename dapi asset frame command to dapi asset grab for clarity and update related documentation. Modify input parameters across various asset commands to indicate that local files can be analyzed or visualized without being added to the library. Enhance type safety in the CLI by introducing a unified AssetRef type for asset references, streamlining asset handling in the codebase. 2026-07-09 13:56:53 +02:00
konstantin-paulus
dbd1a7393b Refactor Electron context to use Editor API and enhance type safety
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.
2026-07-09 12:45:23 +02:00
konstantin-paulus
6579490978 Update CLI and Electron integration with tRPC and WebSocket enhancements
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.
2026-07-09 10:54:07 +02:00
konstantin-paulus
6f3b3e9427 Enhance asset frame handling by adding resolution parameter for improved frame processing
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.
2026-07-09 09:23:46 +02:00
konstantin-paulus
688543044f Refactor asset handling in Electron to improve data structure and error handling
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.
2026-07-09 08:59:13 +02:00
konstantin-paulus
2e03b6349b Enhance dapi asset analyze command with --strip-video option for audio-only analysis
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.
2026-07-09 08:36:02 +02:00
konstantin-paulus
7414220589 Enhance dapi asset transcribe command with options for time range selection
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.
2026-07-09 08:24:15 +02:00
konstantin-paulus
7328b5d553 Refactor file input handling in Electron to improve performance and caching
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.
2026-07-09 08:09:24 +02:00
konstantin-paulus
ca1403f10b Update asset visualization documentation and improve timestamp formatting in transcode utility
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.
2026-07-09 00:47:26 +02:00
konstantin-paulus
adb095fae4 Refactor timeline and soundboard components by adjusting layout and removing the footer. Update ruler dimensions in timeline configuration for improved UI consistency. 2026-07-08 19:24:26 +02:00
konstantin-paulus
de6326f42f Update versioning across applications to 0.129.0, add release workflow for GitHub Actions, and enhance desktop app with CLI installation feature. Introduce new scripts for release management and asset handling, including staging the CLI for distribution. Update dependencies and documentation to reflect changes in the build process and application structure. 2026-07-08 15:20:21 +02:00
konstantin-paulus
31332d23a1 Refactor and replace @diffusionstudio/ai and @diffusionstudio/solid with @diffusionstudio/jsx across the codebase. Update dependencies in package-lock.json and documentation to reflect the new JSX runtime and asset generation capabilities. Remove the @diffusionstudio/ai package and its references, ensuring a cohesive transition to the new structure. 2026-07-08 13:30:09 +02:00
konstantin-paulus
7acdd62008 Implement transition support in JSX and rendering systems. Introduce transition prop for clips within <sequence>, allowing for various transition types and durations. Update related type definitions and documentation to reflect these changes, ensuring clarity on usage and behavior of transitions in the composition system. 2026-07-08 13:03:57 +02:00
konstantin-paulus
310ee8eb36 Introduce animatable properties and keyframe support in JSX and rendering systems. Update documentation to reflect new animation capabilities for properties like x, y, width, height, rotation, opacity, and cornerRadius. Implement keyframe management functions and enhance easing options for smoother animations. Ensure compatibility with existing rendering logic and improve type definitions for better clarity. 2026-07-08 10:08:58 +02:00
konstantin-paulus
0d86b8fb12 Enhance asset management by introducing generationKey in asset loading and schema definitions. Update related functions to utilize generationKey for improved caching and retrieval of transcript assets. Refactor documentation to clarify caching behavior in the asset library. 2026-07-08 08:52:50 +02:00
konstantin-paulus
13ef14208e Refactor rendering functions to include dispose logic for cleanup in handleMount and handleNodeInsert. Update renderProject to return a dispose function, ensuring proper resource management during project rendering. Introduce DocumentContext for improved context handling in the Solid renderer. 2026-07-08 08:41:19 +02:00
konstantin-paulus
28f71e565c Enhance asset management commands in CLI by introducing dapi asset ls [ids...] for listing raw asset records and dapi asset tree for displaying the asset library as a folder tree. Updated related types and functions to support these changes, ensuring improved flexibility and clarity in asset handling. Adjusted documentation to reflect new command structures and behaviors. 2026-07-07 23:23:32 +02:00
konstantin-paulus
5bee05ba83 Update API specifications and type definitions for asset tree structure. Adjusted documentation to clarify the behavior of children in asset and folder entries, ensuring accurate representation of folder contents. Refactored related types in CLI to support optional children property for better flexibility. 2026-07-07 23:04:46 +02:00
konstantin-paulus
0e2dac7eec Rename transcript command to transcribe across CLI, API, and documentation for consistency. Updated related types, functions, and command descriptions to reflect the new terminology. 2026-07-07 22:21:53 +02:00
konstantin-paulus
bd723d4334 Implement @diffusionstudio/ai and @diffusionstudio/solid packages for generative asset management and Solid JSX runtime. Updated dependencies in package-lock.json and README to reflect new imports. Refactored CLI and documentation to utilize the new packages, ensuring consistency across asset generation and rendering processes. 2026-07-07 21:09:37 +02:00
konstantin-paulus
aac0dad45e Refactor CLI commands and documentation to replace export with render for scene rendering. Updated README, API specifications, and various documentation files to reflect this change and clarify the new syncTo feature for audio alignment. 2026-07-07 16:59:03 +02:00
konstantin-paulus
997d9f30b9 Refactor documentation and descriptions in CLI commands and comments. Removed references to JSX_API.md for clarity and improved readability in compile-project.ts, index.ts, and jsx.ts files. 2026-07-07 13:37:31 +02:00
konstantin-paulus
c3c105aa22 Initial open source release.
This repository contains the initial public version of the project.
The previous development history was intentionally not included.
2026-07-07 09:27:28 +02:00