446 Commits

Author SHA1 Message Date
Konstantin Paulus
853f3afb1f
Merge pull request #33 from diffusionstudio/koota-migration
Koota migration
v0.200.0
2026-08-27 14:04:22 +02:00
konstantin-paulus
f1282fb3ad Refactor JSX version handling and remove unused hook
- Updated the JSX version assignment in `projects.ts` to dynamically retrieve the app version, enhancing maintainability.
- Deleted the `use-running.ts` hook as it was no longer needed, streamlining the codebase.
2026-08-27 13:47:02 +02:00
konstantin-paulus
d0d02b3601 Update package versions to 0.200.0 across all modules
- Bumped version numbers for the editor, CLI, desktop, web applications, and JSX package to 0.200.0 in package.json and package-lock.json.
- Ensured consistency in versioning across all related packages to reflect the latest updates and improvements.
2026-08-27 13:31:48 +02:00
konstantin-paulus
70a22aca4f Refine README.md for clarity on composition IDs and editing process
- Updated the README.md to enhance clarity regarding the structure of compositions as SolidJS modules.
- Improved explanations on how elements carry IDs for bidirectional editing, ensuring users understand the write-back mechanism for canvas interactions.
2026-08-27 13:24:13 +02:00
konstantin-paulus
2a8db05ad0 Update package.json scripts and enhance README.md for clarity
- Changed the default development script to run the desktop version instead of the web version.
- Updated the README.md to clarify the functionality of Diffusion Studio, emphasizing the bidirectional editing capabilities and the structure of compositions as SolidJS modules.
- Improved command descriptions and examples in the documentation to better reflect the current functionality and usage.
2026-08-27 13:23:03 +02:00
konstantin-paulus
13a06a671e Update README.md to clarify installation command and enhance project description
- Removed the global flag from the installation command for the skills package to simplify usage.
- Revised the project description to emphasize the unique coding aspect of video editing in Diffusion Studio.
- Improved clarity in the documentation regarding the desktop app's functionality and command line capabilities.
2026-08-27 13:04:26 +02:00
konstantin-paulus
6890734acf Update package versions to 0.132.2 and refine dashboard features
- Bumped version numbers for the editor, CLI, desktop, and web applications to 0.132.2 in package.json and package-lock.json.
- Updated the dashboard feature labels in the web application to better reflect current offerings, enhancing clarity for users.
- Removed outdated features and added new ones to align with the latest capabilities of the platform.
2026-08-27 13:02:32 +02:00
konstantin-paulus
22c75e7e26 Update capture command to render scene frames and improve documentation
- Modified the `capture` command to render single frames of a scene instead of a node, ensuring the output matches the export's encoding.
- Updated command descriptions and argument details to reflect the new functionality, including changes to the time reference and scene handling.
- Enhanced documentation for the `capture` command and related references to clarify usage and expected behavior.
- Improved error messages for invalid scene captures, guiding users to capture the correct scene id.
2026-08-27 12:08:41 +02:00
konstantin-paulus
cb30dc839d Enhance file system handling with real path support
- Added a new channel `PROJECTS_FS_REAL_PATH` to resolve the real path of a given source, accommodating symbolic links.
- Updated the `listEntries` function to include a `link` property for entries that are symbolic links, improving asset management.
- Introduced the `realPathEntry` function to handle symlink resolution, ensuring accurate path retrieval.
- Enhanced the `removeEntry` function to prevent deletion of files outside the project directory, maintaining project integrity.
- Updated documentation to clarify symlink handling and the implications of linked assets in the project.
2026-08-27 11:07:24 +02:00
konstantin-paulus
9a4d56311c Update documentation and examples for anime.js integration
- Replaced references to GSAP with anime.js in the JSX documentation, ensuring consistency with the current animation framework.
- Updated code examples to reflect the new anime.js syntax and functionality, enhancing clarity for users transitioning from GSAP.
- Improved explanations regarding timeline creation and usage, emphasizing the benefits of using anime.js for frame-accurate animations.
2026-08-27 10:36:33 +02:00
konstantin-paulus
2282835eed Improve error handling and logging in EditorPage
- Added console error logging for compile, render, and load failures in the EditorPage component to enhance debugging capabilities.
- Refactored the loadProject function call into a separate load function to handle errors more gracefully during project loading.
- Updated the motion system to use getLocalWindow instead of getSourceWindow for improved accuracy in local frame calculations.
2026-08-27 10:31:58 +02:00
konstantin-paulus
e6838d4abd Enhance asset handling and documentation for symlink support
- Updated the `listEntries` function in `projects.ts` to include support for symbolic links, ensuring they are treated as valid entries.
- Revised the `media.md` documentation to clarify the handling of symlinks in the asset library, emphasizing the benefits of linking over copying files.
- Improved the description of the `assets/` directory in `module.md` to reflect the inclusion of symlinks and their role in the asset management process.
2026-08-27 09:48:52 +02:00
konstantin-paulus
aea37e16ce Add dapi check command for structural analysis of nodes
- Introduced a new command `dapi check` to analyze a node's subtree for structural issues, including black frames, never-visible nodes, and source errors.
- Implemented types for check requests and results, detailing the structure of issues found during analysis.
- Added a new `check.ts` file to handle the logic for checking nodes, including coverage calculations and issue reporting.
- Updated the `README.md` and reference documentation to include usage instructions and details about the new command.
- Enhanced the CLI with a new command option for checking node integrity without rendering, providing instant feedback on potential issues in the project.
2026-08-26 19:23:29 +02:00
konstantin-paulus
df23d9c649 Update project and media documentation for asset handling
- Revised the description of the `assets/` directory in `projects.ts` to clarify its role in the library and the handling of media files.
- Expanded the `media.md` documentation to include instructions on adding assets to the library, detailing the process for importing files and managing image sequences.
- Updated the `README.md` to reflect changes in the `media.md` section, ensuring consistency in documentation across the project.
2026-08-26 16:25:47 +02:00
konstantin-paulus
f33d5570cc Refactor caption handling and enhance transcript duration management
- Removed the `sceneSpan` function from the `useAutoCaptions` hook to simplify caption insertion logic.
- Updated the `insertFresh` function to streamline caption creation by removing unnecessary parameters.
- Introduced new functions in the `timing.ts` file to manage transcript duration and caption source handling, improving accuracy in timing calculations.
- Added caching for transcript lengths in `utils.ts`, allowing for synchronous access to transcript durations after initial reading.
- Enhanced the overall caption handling process to ensure better integration with the timing system and improve performance.
2026-08-26 14:20:38 +02:00
konstantin-paulus
21a689708b Refactor caption handling and improve styling logic
- Updated the `CaptionSettings` component to clarify the relationship between caption presets and authored styles, enhancing user understanding.
- Simplified the `Inspector` component by removing unnecessary checks for caption targets, streamlining the rendering logic.
- Wrapped the "Grow" control in the `TextPanel` with a conditional display to ensure it only appears when text is selected, improving UI responsiveness.
- Introduced new constants for caption preset styles and fills, centralizing style management and ensuring consistency across different caption types.
- Enhanced the `applyStyles` method in various caption decoders to utilize the new preset styles, improving the overall styling process and ensuring authored properties are correctly applied.
2026-08-26 13:53:08 +02:00
konstantin-paulus
ce691821bb Update caption handling and seed management in auto-captions feature
- Modified the `sceneSpan` function to calculate frames based on `computed.duration` for improved accuracy.
- Enhanced the `insertFresh` function to include a unique seed for each caption insertion, ensuring fresh transcriptions.
- Refactored the seed management logic to utilize `Date.now()` for generating new seeds, streamlining the re-transcription process.
- Cleaned up the `CaptionSettings` component by removing unused alignment logic and context menu, simplifying the UI and improving maintainability.
- Adjusted the `EditorGenAi` class to ensure proper key management for generated assets, preventing unnecessary re-transcriptions.
2026-08-26 11:47:13 +02:00
konstantin-paulus
f54ff6fe80 Refactor label assignment logic in renderClip function
- Updated the label assignment logic to use an else-if structure for better clarity and to prevent unnecessary evaluations when checking for text entities.
- Ensured that the label is correctly derived from captions or text entities, improving the overall readability and maintainability of the code.
2026-08-26 11:13:03 +02:00
konstantin-paulus
9d543aeb20 Enhance AI attachment logic in editor functionality
- Updated the `attachAi` function to accept an optional `dir` parameter, allowing for better project folder management during AI attachment.
- Modified the `EditorGenAi` constructor to incorporate the `dir` parameter, facilitating improved asset transcription handling based on the project's directory.
- Adjusted the `createCapture` function call to utilize the new `dir` property, ensuring accurate source compilation during audio capture processes.
2026-08-26 11:04:54 +02:00
konstantin-paulus
cad0a98986 Enhance asset naming and insertion logic in generation functions
- Updated the `insertGenerated` function to accept an array of asset references, allowing for dynamic naming of generated entities based on their corresponding assets.
- Modified the `useGenerateAudio`, `useGenerateImage`, `useGenerateVideo`, and `useGenerateVoice` hooks to pass asset references during insertion, ensuring generated elements are appropriately named.
- Introduced a new `nameAfterGeneration` function to handle the naming process asynchronously, improving the clarity and organization of the codebase.
2026-08-26 10:57:20 +02:00
konstantin-paulus
48cc213686 Refactor aspect ratio synchronization in RuntimeDocument
- Replaced direct handling of the `keepAspectRatio` property with a dedicated `syncAspectLock` method to streamline aspect ratio management.
- Updated logic to ensure the aspect ratio lock is consistently applied based on node properties, enhancing the integrity of resizing operations.
- Added documentation for the new `syncAspectLock` method to clarify its role in maintaining authored bounds during resizing.
2026-08-26 10:47:26 +02:00
konstantin-paulus
0349c75096 Update Rect components to maintain aspect ratio in image and video generation
- Modified the `useGenerateImage` and `useGenerateVideo` hooks to include the `keepAspectRatio` property in the `Rect` components, ensuring consistent aspect ratio handling for generated assets.
- Updated the `insertAsset` function to apply the `keepAspectRatio` property for both video and image assets, enhancing layout integrity during asset insertion.
2026-08-26 10:26:06 +02:00
konstantin-paulus
5bd5076cf0 Refactor aspect ratio handling in layout and resizing logic
- Updated the `LayoutPanel` component to improve aspect ratio management by introducing a `lockedRatio` function, which determines the aspect ratio based on the current dimensions or authored values.
- Simplified the `resize` function to utilize the new `lockedRatio` for enforcing aspect ratios during resizing operations.
- Enhanced the `toggleAspectRatio` function to directly edit the `keepAspectRatio` property, streamlining the locking mechanism.
- Added documentation for the `keepAspectRatio` property in relevant types and reference materials, clarifying its purpose and usage in the editor.
2026-08-26 10:21:42 +02:00
konstantin-paulus
b6bf78ac64 Enhance MIME type detection and result handling in asset management
- Introduced `resultExtension` function to determine the appropriate file extension for generated assets based on MIME type and URL, improving file identification accuracy.
- Updated the `store` method in `EditorGenAi` to utilize the new extension logic, ensuring generated files are named correctly based on their content.
- Enhanced `detectMimeType` function to include image type sniffing, allowing for better handling of files without explicit extensions, thus improving overall asset processing reliability.
- Added comprehensive documentation for new functions to clarify their purpose and usage in the asset management workflow.
2026-08-26 09:55:47 +02:00
konstantin-paulus
9b53426ea1 Refactor error handling and generation checks in rendering system
- Replaced direct queries for `SourceError` and `Generating` with utility functions `getSourceFailure` and `isGenerating` to streamline error handling and improve code readability.
- Updated the `drawHeader`, `renderClip`, and `renderGenerating` functions to utilize the new utility functions, enhancing consistency across the rendering logic.
- Improved the `isGenerating` and `getSourceFailure` functions to check both the entity and its fills for generation status and source failure, ensuring comprehensive error reporting.
2026-08-26 09:38:22 +02:00
konstantin-paulus
66051a5b86 Refine canvas handling and opacity management in rendering
- Updated the canvas creation in `createCapture` to ensure it remains within the viewport and utilizes `will-change:opacity` for better performance.
- Modified the `AnimeTimeline` component to use `opacity` for text dimming while clarifying the limitations of using fractional opacity on painted boxes in captures.
- Enhanced documentation in `html.md` to provide clearer guidance on the effects of nested opacity on rendering and captures.
2026-08-25 21:04:51 +02:00
konstantin-paulus
52457f1ed7 Enhance export functionality and improve project configuration
- Added `Source` import to `export.tsx` for better trait handling.
- Updated `settings` computation in `ExportPanel` to ensure it reacts to changes in the source.
- Clarified documentation in `project-config.ts` regarding the export settings retrieval process, improving understanding of reactive behavior.
2026-08-25 20:16:34 +02:00
konstantin-paulus
0197f51299 Improve canvas handling and error logging in rendering
- Updated the canvas creation in `createCapture` to ensure it remains within the viewport, preventing issues with cached paints and blank captures.
- Enhanced the `AnimeTimeline` component to use alpha colors instead of opacity for better rendering during animations, avoiding subtree blanking.
- Introduced a `WeakSet` in `render.ts` to track failed HTML roots, preventing console flooding by logging errors only once per root.
- Clarified documentation regarding nested opacity effects on captures to improve user understanding of rendering limitations.
2026-08-25 19:21:33 +02:00
konstantin-paulus
94af336eeb Enhance clip naming logic with fallback options
- Introduced `getClipFallbackName` function to provide meaningful names for unnamed clips based on their type, improving clarity in the timeline.
- Updated the `NodeLayer` component to utilize the new fallback naming logic, ensuring clips display appropriate names when no explicit name is set.
- Adjusted the `renderClip` function to incorporate fallback names, enhancing user experience by reducing ambiguity in clip identification.
2026-08-25 16:52:16 +02:00
konstantin-paulus
fb241b9851 Refactor stage and scene components to include camera and active properties
- Updated all example files and relevant documentation to incorporate the `camera` property in the `<stage>` component, ensuring proper framing for various scene dimensions.
- Marked one scene as `active` in each example to prevent projects from opening on an empty timeline, enhancing usability and clarity in project structure.
- Adjusted the `StageProps` and `SceneProps` types to reflect the new requirements for camera and active properties, improving type safety and documentation accuracy.
2026-08-25 16:43:40 +02:00
konstantin-paulus
572425a511 Enhance useTicker with hold functionality for async work
- Introduced the `hold` method in the `useTicker` hook to manage async operations, ensuring frames wait for necessary resources before sampling.
- Updated example files to utilize the `hold` method for loading models and setting up WebGPU devices, improving frame accuracy during exports and captures.
- Added documentation for the `hold` method, detailing its purpose and usage in managing async work within the rendering pipeline.
- Implemented a timeout mechanism for held promises to prevent indefinite waits during rendering.
2026-08-25 16:31:49 +02:00
konstantin-paulus
f1b86549b9 Refactor asset warmup integration in encoder
- Moved the `warmupAssets` function to be exported for broader use across modules.
- Integrated `warmupAssets` calls in both `createEncoder` and `createImageEncoder` functions to ensure assets are preloaded before processing.
- Removed redundant warmup call from the `render` function in `createEncoder` for cleaner code.
2026-08-25 16:07:41 +02:00
konstantin-paulus
0e68a5d8e4 Enhance context reporting in CLI and DAPI
- Updated the CLI context command description to clarify the information reported, including the application root folder and project details.
- Modified the DAPI context handling to return both the projects root directory and the open project directory, improving the context information available when no project is open.
- Adjusted related documentation to reflect the new structure of the context report, ensuring consistency and clarity for users.
2026-08-25 15:27:56 +02:00
konstantin-paulus
e0e9b761bb Implement syncTo feature for audio/video alignment
- Added support for the `syncTo` trait, allowing elements to align their playback based on the timing of another element's recording.
- Introduced `PendingSync` to manage in-progress sync requests and ensure proper correlation between audio and video sources.
- Enhanced the asset system to handle sync requests, including error handling for cycles and missing sources.
- Updated documentation to reflect the new `syncTo` functionality and its implications for element placement and playback management.
2026-08-25 15:11:39 +02:00
konstantin-paulus
9369730c9a Implement ticker system for playback management
- Introduced a new ticker system to manage playback timing and state updates within the document.
- Refactored the mount function to integrate the ticker, ensuring it advances with each frame.
- Removed the deprecated live mounts utility, streamlining the codebase and enhancing performance.
- Updated the playback system to utilize the new ticker for consistent frame updates across entities.
2026-08-25 14:52:28 +02:00
konstantin-paulus
11fecc09ea Refactor example files to use <stage> and <scene> components
- Updated all example files to replace <rect> with <stage> and <scene> for improved structure and consistency.
- Enhanced the README.md to reflect the new project entry format for examples.
- Added a new dependency on "koota" in package.json for better integration.
- Improved documentation and comments throughout the examples for clarity.
2026-08-25 14:32:48 +02:00
konstantin-paulus
2f30cf944d Update DROP_DWELL_MS constant to improve interaction timing 2026-08-25 11:25:35 +02:00
konstantin-paulus
d843141190 Fix regex in project directory validation to handle trailing slashes correctly 2026-08-25 11:10:13 +02:00
konstantin-paulus
878da57179 Add default project root handling and enhance project management 2026-08-25 11:07:35 +02:00
konstantin-paulus
dc9f7fb135 Enhance documentation staging and resource management
- Added a new script, `stage-docs.mjs`, to stage authoring documentation into the app's resources for packaging.
- Updated `forge.config.ts` to include the new `docs` directory in the `extraResource` configuration.
- Modified `package.json` scripts to incorporate `stage:docs` in the build, package, and publish processes.
- Updated `.gitignore` to exclude the newly created `.diffusion` directory, which contains app-owned documentation.
- Enhanced project documentation to clarify the purpose and structure of the staged docs.
2026-08-25 10:40:18 +02:00
konstantin-paulus
3099d1c122 Refactor asset reference handling and improve media command descriptions
- Updated the `AssetRef` type to only accept paths, simplifying asset reference management.
- Refactored media command descriptions to clarify that local files and URLs can be used without an open project, while library paths require one.
- Enhanced error handling in media commands to specify when paths cannot be resolved, improving user feedback.
- Removed the deprecated `ShellApi` component and integrated its functionality into the new `EditorApi` for better organization and clarity.
2026-08-25 10:27:25 +02:00
konstantin-paulus
af64295ed9 Refactor playback handling and enhance media synchronization
- Updated the `handlePlayInteraction` function to utilize the new `togglePlayback` utility for improved media control.
- Introduced `syncStagePlayback` to manage playback state based on entity hierarchy, ensuring proper media playback for nested entities.
- Enhanced the `togglePlayback` function to reset the playhead position for finished scenes, improving playback experience.
- Refactored imports in `interactions.ts` and `playback.ts` for better organization and clarity.
2026-08-25 09:30:24 +02:00
konstantin-paulus
d0329de830 Refactor rename input handling in DashboardProjectsView
- Updated the focus handling for the rename input to ensure it claims focus correctly after context-menu interactions.
- Replaced the previous focus handler with a new reference function that utilizes `queueMicrotask` for improved focus management.
- Enhanced user experience by ensuring the input is selected upon gaining focus, streamlining the renaming process.
2026-08-24 20:18:07 +02:00
konstantin-paulus
5ea57654d6 Enhance canvas interaction handling with scene coverage checks
- Updated the canvas interaction logic to include checks for scenes that are covered by the marquee selection, ensuring that only visible and interactive entities are selected.
- Introduced a new utility function, `quadContainsQuad`, to determine if one quad fully contains another, improving selection accuracy.
- Refactored the selection process to filter out entities obscured by covered scenes, enhancing user experience during selection operations.
2026-08-24 20:01:55 +02:00
konstantin-paulus
3c9e0e861c Refactor object menu and source settings for improved functionality
- Updated the Object Menu to use `isGroupLike` for better selection handling, allowing both groups and sequences to be recognized as containers.
- Enhanced the SourceSettings component to manage color picking states more effectively, allowing for distinct media and solid fill selections.
- Introduced a new `ColorOpacityPicker` for improved color selection, ensuring a more intuitive user experience when editing solid fills.
- Refactored the handling of fill properties to maintain consistent state management during user interactions.
2026-08-24 18:21:42 +02:00
konstantin-paulus
c629822d3f Enhance context reporting in CLI and desktop applications
- Updated the CLI command description for `dapi context` to include information about asset generations, improving clarity on the project's state.
- Modified the desktop application documentation to reflect the new context reporting, detailing the status of asset generations (generating, failed, or done) alongside project and playhead information.
- Refactored the context handling in the web application to collect and report generation states, enhancing the overall context management functionality.
2026-08-24 17:11:24 +02:00
konstantin-paulus
7e1f3599a6 Enhance cache eviction logic for animated values
- Added logic to reset animated values in the cache when evicting from 'animations' or 'keyframeTracks' lists, ensuring proper state management during animation transitions.
- Improved the handling of cache members to maintain integrity when entities are removed.
2026-08-24 17:08:50 +02:00
konstantin-paulus
a83f4d5ade Enhance object menu with grouping and scene wrapping functionality
- Added new options for grouping and ungrouping selections in the Object Menu, improving user interaction with selected elements.
- Introduced `wrapSelectionInScene` function to allow users to encapsulate selected elements within a scene, maintaining their positions.
- Updated keyboard shortcuts for grouping, ungrouping, and wrapping selections, streamlining workflow efficiency.
- Refactored related functions in the engine to support the new scene wrapping feature, ensuring consistent behavior across the editor.
2026-08-24 16:56:29 +02:00
konstantin-paulus
589be2161d Refactor timing traits to introduce Delay and Trim
- Replaced Start and End traits with Delay and Trim to better represent the node's timing on the timeline.
- Updated related functions and components to utilize the new timing structure, ensuring accurate handling of authored time.
- Enhanced the timing logic to reconcile authored time properties into the runtime's vocabulary, improving consistency across the editor and runtime.
- Refactored serialization and deserialization processes to accommodate the new timing traits, ensuring proper data handling during entity state changes.
2026-08-24 16:32:06 +02:00
Konstantin Paulus
872f363f59
Merge pull request #29 from diffusionstudio/prod
Merge pull request #28 from diffusionstudio/main
2026-08-24 16:23:54 +02:00