338 Commits

Author SHA1 Message Date
konstantin-paulus
091631e559 Add live mount functionality to the mounting process
Enhance the `mount` command to support a new `--live` option, allowing the reactive graph to remain active after mounting. This change includes updates to the `MountRequest` and `MountOptions` types, as well as modifications to the `handleMount` function to manage live mounts effectively. Additionally, a new utility for managing live mounts has been introduced, improving the overall handling of reactive entities in the engine.
2026-07-17 09:18:41 +02:00
konstantin-paulus
79daf8a037 Update default objectFit value in image and elements documentation for consistency
Change the default value of the `objectFit` property in the image documentation from "contain" to "cover" to align with the updated description in the elements documentation. This ensures clarity and consistency across the documentation regarding how media pixels map into the box.
2026-07-17 08:36:41 +02:00
konstantin-paulus
f925e36f13 Refactor entity size propagation and transform logic for improved spatial handling
Enhance the resize and transform systems to better manage entity constraints and spatial relationships. Introduced logic to handle sequential entities more effectively, ensuring they mirror their parent's frame. Updated comments for clarity and refined the computation of group bounds. These changes improve the overall stability and accuracy of the engine's spatial management.
2026-07-17 08:27:43 +02:00
konstantin-paulus
a8329f0274 Enhance dashboard components with improved styling and layout
Updated the DashboardProjectsView to include padding, modified the DashboardSearchBar for stronger border styling, and refined the DashboardCardButton and DashboardCardPreview components for better visual consistency. Additionally, introduced a class prop to the DashboardViewSection for flexible styling. These changes contribute to a more cohesive and polished user interface across the dashboard.
2026-07-16 13:58:55 +02:00
Konstantin Paulus
e1e6cbd634
Merge branch 'main' into bugfix/file-handle-types 2026-07-16 13:53:16 +02:00
konstantin-paulus
604394f9f3 Update dashboard and scene components with improved styling for better UI consistency
Refactor various components in the dashboard and scene initialization overlay to enhance visual appeal and user interaction. Changes include updating button and card background colors, adjusting separator styles, and modifying sidebar item active states. These updates contribute to a more cohesive and polished user interface across the application.
2026-07-16 13:51:03 +02:00
konstantin-paulus
3e6cc22718 Update button styling in Alignment component for improved visibility
Change the button class from "text-muted-foreground" to "text-foreground" in the Alignment component to enhance its visibility and ensure better user interaction. This update contributes to a more consistent and appealing user interface.
2026-07-16 11:57:46 +02:00
konstantin-paulus
aa2f5f0bce Refactor camera restoration logic and improve scaling in camera controller
Update the restoreWorld function to validate camera properties before applying them, ensuring only valid camera configurations are used. Introduce a fallback mechanism for the camera and background settings. In the camera controller, adjust the scaling logic to prevent zero or negative dimensions, enhancing stability and user experience. This change improves the robustness of the camera system and ensures a more reliable rendering process.
2026-07-16 11:32:59 +02:00
konstantin-paulus
fafeb763b2 Refactor VolumeMeter and VerticalMeter components for improved styling and functionality
Update the VolumeMeter component to apply rounded corners to individual VerticalMeter instances. Introduce a class prop to VerticalMeter for flexible styling. Enhance the rendering logic to utilize clip-path for the meter overlay, improving visual representation. Additionally, update color classes for better UI consistency in MeterScale. This change enhances the overall user experience and visual appeal of the soundboard interface.
2026-07-16 11:10:47 +02:00
konstantin-paulus
c87c2dff40 Add center constraint functionality and improve hover effects in ConstraintsRow component
Introduce a new function to assign center constraints for both horizontal and vertical alignment in the ConstraintsRow component. Update the CSS classes to enhance hover effects for better user interaction, ensuring a more responsive and visually appealing interface. This change improves the overall usability of the constraints feature in the UI.
2026-07-16 10:47:18 +02:00
konstantin-paulus
86c4d96103 Update color variables and improve UI consistency
Modify various color variables in CSS to enhance visual consistency across the application. Adjust background color defaults in the engine to ensure a cohesive look. Update HUD system colors for better contrast and readability. Refactor asset and folder item components to use a unified text color, improving overall UI clarity. Introduce an IncrementDecrementControl component for better user interaction in time settings. This change enhances the user experience by providing a more polished and consistent interface.
2026-07-16 10:41:00 +02:00
konstantin-paulus
4499f21432 Integrate TypeGPU support and update ESLint configuration
Add TypeGPU as a dependency and configure ESLint to include the TypeGPU plugin for enhanced type checking in JavaScript and TypeScript files. Update the Vite configuration to utilize the TypeGPU plugin, improving the development experience for GPU programming. Additionally, modify the .gitignore to exclude new AI-related files. This change enhances the project's capabilities for GPU-based computations and ensures consistent linting practices.
2026-07-16 08:49:09 +02:00
konstantin-paulus
05f1f53f29 Enhance macOS support and update UI styling
Add native corner radius and backdrop functionality for macOS, improving the visual integration of the application. Update the build process to include a new native build script. Additionally, introduce new CSS variables for stronger border styling across the web application, ensuring a consistent and polished user interface. This change enhances the overall user experience on macOS and improves visual consistency across platforms.
2026-07-15 20:34:34 +02:00
konstantin-paulus
5a8b56d29b Add animations prop to various components and documentation
Introduce the `animations` prop across multiple components, including audio, elements, and text, allowing for preset in/out animations. Update related documentation to reflect this new feature and enhance the `animations` handling in the node patching process. This change improves the flexibility and visual dynamics of the UI elements.
2026-07-15 15:33:44 +02:00
konstantin-paulus
29824441b8 Enhance macOS desktop experience with native vibrancy and sidebar styling
Update the main window configuration to support macOS native vibrancy, allowing for a transparent background and improved visual integration. Introduce new CSS variables for sidebar colors in both light and dark themes, ensuring a consistent look across platforms. Additionally, adjust component styles to reflect these changes, enhancing the overall user interface and experience.
2026-07-15 13:31:34 +02:00
konstantin-paulus
67dcb6fdcc Refactor asset and folder command outputs for consistency and clarity
Update the output format for various asset and folder commands to ensure JSON Lines are emitted on stdout, providing a consistent structure across commands. Enhance error handling to ensure that unknown ids or invalid inputs fail the entire command, improving user feedback and command reliability. This change streamlines the user experience and aligns with the fail-fast convention for batch commands.
2026-07-15 12:39:25 +02:00
konstantin-paulus
429a6c8153 Enhance node capture functionality with output directory option
Add an `output` option to the `CaptureOptions` type, allowing users to specify a directory for saving captured PNG files. Update the `nodeCapture` function to create the specified directory recursively if it doesn't exist, improving flexibility in file management during node captures. This change enhances user experience by providing control over file output locations.
2026-07-15 11:48:28 +02:00
konstantin-paulus
95f4a8d5f5 Refactor error handling and improve directory creation in CLI client
Update the `errnoCode` function to ensure it only processes TRPCClientError instances, enhancing error handling accuracy. Additionally, modify the media processing functions to create output directories recursively, ensuring that the necessary paths exist before file operations. This change improves robustness and reliability in file handling within the CLI application.
2026-07-15 07:35:31 +02:00
Doruk Kavcioglu
678e451dd7
fix asset imports for ElectronFileHandle
showFileDialog can return ElectronFileHandle in desktop builds, but the sidebar importAssets helper did not accept it.

Add ElectronFileHandle to the union so the helper matches the values forwarded to loadAsset.
2026-07-14 22:58:45 +03:00
konstantin-paulus
8484330241 Enhance file handling and permissions management in desktop and web applications
Refactor the file dialog logic to support both Electron and standard web file picking methods. Introduce a new `getPathForFile` function to retrieve file paths in the desktop context, improving file handling consistency. Update the `ElectronFileHandle` class to facilitate the creation of file handles from files, ensuring seamless integration with the existing file system APIs. Additionally, enhance permission handling in the `queryPermission` method to provide a fallback mechanism for permission requests. This change improves user experience and file management capabilities across the applications.
2026-07-14 17:59:45 +02:00
konstantin-paulus
7aa51bccfb Enhance ruler drawing logic for improved label placement
Refactor the `drawRuler` function to optimize label rendering on the canvas. Introduce a mechanism to prevent overlapping labels by tracking the end position of the last drawn label and ensuring new labels are only drawn if they fit within the available space. This change improves the clarity and readability of the ruler display in the UI.
2026-07-14 17:14:00 +02:00
konstantin-paulus
e3bbc1e77b Add subtitle support and enhance transcript handling
Introduce parsing for SRT and WebVTT subtitle formats, allowing transcripts to be mounted directly from these files. Update the asset detection logic to recognize subtitle MIME types and adjust the caption handling in the playback system to ensure proper integration. Additionally, enhance the documentation to clarify the usage of the `<captions>` component for manual transcript sourcing.
2026-07-14 11:37:06 +02:00
konstantin-paulus
54cd22f038 Refactor node capture logic for improved clarity and default handling
Simplify the `nodeCapture` function by consolidating time parsing logic and ensuring default values are handled more gracefully. Update the CLI command description to clarify the default time behavior for captures. This change enhances code readability and user experience by providing clearer expectations for time input.
2026-07-14 09:42:27 +02:00
konstantin-paulus
e09244e22c Add shared image decoder for efficient asset management
Implement a caching mechanism for image decoders, allowing multiple entities to share a single decoder instance. Introduce the `SharedImageDecoder` class to manage reference counting and disposal of decoders, enhancing memory efficiency. Update the `resolveImageDecoder` function to utilize the cache, ensuring that asset changes properly release old decoders while acquiring new ones. This change improves performance and resource management in the image decoding process.
2026-07-14 07:46:48 +02:00
konstantin-paulus
6c436b9658 Refactor mount and node insert functions for improved clarity
Update the `dispose` function initialization to include a space for consistency. Remove the `rootCreated` property from the `WorldDocument` class, simplifying the state management during scene handling. This change enhances code readability and maintains functionality in scene mounting and node insertion processes.
2026-07-13 23:16:59 +02:00
konstantin-paulus
dd1d764641 Focus camera on newly mounted scenes
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>
2026-07-13 23:09:19 +02:00
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
7ace383dbe Update JSX documentation to clarify group behavior and paint usage
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.
2026-07-12 10:54:06 +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
b461d278a9 Update CLI asset and selection commands to support multiple aliases for improved usability
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.
2026-07-11 11:51:16 +02:00
konstantin-paulus
babbd0b60d Update CLI command descriptions for improved clarity and usability
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.
2026-07-11 09:40:05 +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
fda2c7e78c Update transcribe command description to include ultra-precise millisecond-level timestamps for improved clarity and usability in media analysis. 2026-07-10 13:13:06 +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
26f5874b80 Enhance media listen command with new option and improved descriptions
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.
2026-07-10 10:25:10 +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