- Updated babelOptions to accept project-specific plugins, allowing for more flexible Babel configurations.
- Introduced projectBabelPlugins function to load plugins from the project's Babel config, improving compatibility with custom setups.
- Modified solidLoader to utilize project-specific plugins during the transformation process, ensuring better integration with user-defined settings.
- Bumped version from 0.202.0 to 0.202.1 in package.json and package-lock.json for the editor, CLI, desktop, and web applications.
- Ensured consistency in versioning across all related packages to reflect the latest updates.
- Updated .gitignore to include the new skills directory.
- Modified forge.config.ts to stage skills as an app resource.
- Added new script stage-skills.mjs for staging agent skills.
- Enhanced skills installation logic in skills-install.ts to support symlinking skills and added a healing function for broken links.
- Updated main.ts to call the new healing function on app launch.
- Adjusted onboarding page to streamline skills installation feedback and removed unnecessary checks for Node.js availability.
- Bumped version from 0.201.0 to 0.202.0 in package.json and package-lock.json for the editor, CLI, desktop, and web applications.
- Ensured consistency in versioning across all related packages to reflect the latest updates.
- Introduced CLI installation logic in cli-install.ts, allowing the app to link the dapi command line tool into the user's PATH with appropriate permissions.
- Updated main-channels.ts to include new channels for checking CLI installation status and initiating CLI installation.
- Integrated CLI installation handling in main.ts, enabling the app to respond to installation requests.
- Created skills-install.ts to manage the installation of agent skills, checking for existing installations and executing the installation command.
- Enhanced the app menu to provide an option for installing the dapi CLI, with user feedback on installation success or failure.
- Developed an onboarding page to guide users through CLI and skills setup, improving the initial user experience.
- Changed the JSX_VERSION from a function to a static string "latest" for consistency and simplicity.
- Updated the packageJson function to reflect this change in the devDependencies section, ensuring the correct version is used for the @diffusionstudio/jsx package.
- Included a new entry in the JSX documentation for `@inspect` variables, detailing their role as annotated constants that serve as live inspector controls.
- This addition enhances the clarity and usability of the documentation for developers working with variable annotations.
- Added support for boolean and select types in the @inspect annotation, allowing for more diverse variable configurations.
- Implemented UI controls for boolean toggles and select dropdowns in the inspector, improving user interaction.
- Updated the inspect plugin to validate options for select types and ensure proper initialization.
- Enhanced documentation to reflect the new variable types and their usage in the inspector.
- Introduced the `@inspect` annotation for top-level constants, allowing live editing through the inspector.
- Implemented the `VariablesSettings` component to manage and display `@inspect` variables in the sidebar.
- Enhanced the editor to handle variable edits, ensuring changes are reflected in the source code.
- Updated the history management to track variable changes, allowing for undo functionality.
- Added utility functions to manage `@inspect` entries within the project, ensuring consistent access across components.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Added the `dapi open` command to launch the app and open or create a project folder, with updates to the `README.md` and `projects.ts` for clarity.
- Implemented `initProject` function to initialize project folders, ensuring they can be opened from any location on disk.
- Updated the `main-channels.ts` and `main.ts` to handle new project initialization requests.
- Enhanced the database schema to support project root types, allowing for better project organization and retrieval.
- Improved the IPC layer to manage multiple routers for different command contexts, ensuring efficient command handling.
- Revised the `dapi context` command description in `README.md`, `index.ts`, and `projects.ts` to clarify its purpose in reporting the current project and playhead position.
- Enhanced the `handleContextGet` function to return detailed project information, including project ID, name, directory, and frame rate.
- Updated the API response structure in `context.ts` to reflect the new project context format, ensuring accurate data representation for users.
- Improved documentation in `context.md` and `README.md` to provide clearer guidance on the command's functionality and expected output.
- Revised the documentation in `projects.ts` to clarify that npm packages are treated as standard packages, allowing for direct installation and bundling from `node_modules`.
- Updated `module.md` to reflect changes in userland package resolution, emphasizing the need for browser compatibility and the removal of CDN fallback.
- Enhanced clarity on local imports and the handling of type declarations for userland packages, ensuring accurate guidance for developers.
- Introduced `canonicalizeTagsPlugin` to rewrite composition tags to PascalCase, preventing naming collisions with native DOM elements.
- Updated `sourcePlugin` to integrate SVG collision detection and ensure proper handling of composition tags within SVG contexts.
- Refactored `DocumentEditor` to improve scene node management and ensure correct DOM node handling during element creation.
- Removed deprecated `SurfaceHost` and `HtmlHost` implementations, streamlining media handling and improving performance.
- Enhanced type definitions and documentation for better clarity on scene node properties and DOM interactions.
- Introduced `SerializedAssetRef` and `EditValue` types to support new asset reference handling in JSX.
- Updated `setProp` and related functions to accommodate `SerializedAssetRef`, allowing for more complex prop values.
- Refactored `SourceSet`, `SourceInsert`, and `SourceIteration` interfaces to utilize `EditValue`, improving type safety and flexibility.
- Implemented `ensureGenerateImport` function to manage `generate` imports dynamically, enhancing code organization.
- Removed obsolete `use-auto-captions.ts` and integrated its functionality into `use-auto-captions.tsx`, streamlining the codebase.
- Added new `use-generate-image.tsx` to replace the previous image generation logic, improving asset management and integration with the editor.
- Enhanced the `PromptInput` component to support new asset handling and improve user experience in image generation workflows.
- Added `nanoid` dependency for generating unique project IDs, ensuring stable identification across renames.
- Introduced `PROJECTS_RESOLVE` channel to resolve project references by ID or folder name, improving project retrieval.
- Updated project-related functions to utilize the new ID system, enhancing consistency in project management.
- Refactored project handling in various components to accommodate the new project structure, ensuring seamless integration with existing functionality.
- Adjusted routing to reflect project IDs in URLs, maintaining user experience during project renaming.
- Introduced a new channel `APP_SHOW_IN_FOLDER` to allow the application to reveal files or folders in the OS file manager.
- Implemented the corresponding handler in `main.ts` to utilize the new channel for revealing paths.
- Added a `DashboardProjectsFolderBar` component to the dashboard, enabling users to change and reveal the projects folder.
- Updated the dashboard layout to incorporate the new folder bar, enhancing user interaction with project management.
- Refactored related components for improved organization and readability, setting the stage for future enhancements.
- Introduced a new `editTransform` function to streamline the editing of transform properties (x, y, width, height, rotation) for entities, ensuring keyframes are synchronized correctly during user interactions.
- Refactored existing interaction functions to utilize `editTransform`, enhancing the consistency and readability of the code.
- Updated the `nudgeSelection` function to apply transformations using the new method, improving the handling of animated nodes during nudging.
- Improved overall code organization and readability across affected components, setting the stage for future enhancements.
- Introduced a new `TextEdit` interface to handle changes to `<text>` elements, allowing for direct editing of their content.
- Updated the `DocumentEditor` class with an `editText` method to facilitate text updates, ensuring proper reporting of changes.
- Modified the `EditWriter` to manage text edits separately, integrating them into the overall editing workflow.
- Enhanced the `RuntimeDocument` class with a `setText` method to replace the content of `<text>` elements, maintaining the integrity of text nodes during rendering.
- Refactored the `SourceSet` interface to include a `text` property, enabling the writing of text content alongside element properties.
- Improved the `TextPanel` component to utilize the new text editing functionality, streamlining the user experience for text modifications.
- Refactored project configuration management to enhance scene-specific export settings, allowing for more granular control over how each scene is exported.
- Updated the `ExportPanel` to utilize the new `exportOf` method for retrieving scene-specific export configurations, improving the user experience.
- Modified the `ProjectConfig` class to support scene-based export settings, ensuring that exports are correctly mapped to their respective scene IDs.
- Improved documentation and comments throughout the code to clarify the structure and purpose of project export configurations.
- Introduced new channels for reading and writing project configuration from the `diffusion` field in `package.json`, enhancing project management capabilities.
- Implemented `readConfig` and `writeConfig` functions to handle project configuration, allowing for dynamic updates and retrieval of project settings.
- Updated `main-channels.ts` to include new channel definitions for project config operations, ensuring proper integration with the main bridge.
- Refactored related components to utilize the new project config functionality, improving overall state management and user experience in the application.
- Added necessary types and utility functions to support the new project configuration structure, ensuring type safety and maintainability.
- Eliminated the `sqids` package from the project, simplifying ID generation.
- Updated ID allocation logic to use native methods for generating unique IDs, enhancing performance and maintainability.
- Added `@diffusionstudio/assets` dependency to improve asset management capabilities across applications.
- Adjusted related components to reflect changes in ID handling, ensuring consistent functionality.
- Introduced `AssetCache` to manage derived data such as thumbnails and audio peaks, stored under a new `cache/` directory.
- Implemented methods for deriving and retrieving thumbnails and audio peaks, enhancing performance by reducing redundant calculations.
- Updated asset management to utilize the cache, ensuring efficient access to derived data during rendering.
- Enhanced the `AssetThumbnail` component to support cached thumbnails, improving loading times and user experience.
- Refactored related components and systems to integrate caching functionality, streamlining asset handling across the application.
- Added support for asset manifests with read and write capabilities, allowing for better organization of project assets.
- Introduced new project channels for manifest reading and writing, enhancing communication between main and renderer processes.
- Improved file system interactions with new methods for listing, statting, and removing project files, streamlining asset management.
- Updated package dependencies to include `yaml` for manifest handling and linked `@diffusionstudio/assets` for asset management.
- Refactored existing code to integrate new asset handling features and improve overall project structure.
- Introduced `SourceUnroll` and `LoopIteration` types to support unrolling loop elements into individual iterations, allowing for more granular editing of looped content.
- Updated `DocumentEditor` to manage unroll edits, ensuring that edits to looped entities are handled correctly and reported accurately.
- Enhanced `EditWriter` to process unroll edits first during project writes, ensuring proper management of looped elements.
- Added `LOOP_ATTR` to track the source of loop elements, facilitating the editor's ability to manage and unroll loops effectively.
- Refactored related components and types to improve clarity and maintainability in handling looped entities and their iterations.
- Introduced `SourceRemove` and `RemoveEdit` interfaces to support element deletion, allowing for the removal of elements and their descendants from the document structure.
- Updated `DocumentEditor` to handle the removal of entities, ensuring that deleted elements are accurately reported and managed within the editor.
- Enhanced `EditWriter` to track and process removal edits, ensuring proper cleanup of related inserts and moves during project writes.
- Implemented a new `shortcutSystem` to manage keyboard shortcuts, enabling actions like deletion of selected entities via backspace and delete keys.
- Refactored input handling to utilize the updated `Keys` trait, improving responsiveness to key events and maintaining accurate state during interactions.
- Streamlined event handling in the HUD and input systems to reflect changes in key state management, enhancing overall user experience.
- Introduced `SourceMove` interface to facilitate element movement within the JSX structure, allowing elements to be repositioned without altering their content.
- Updated `DocumentEditor` to support reparenting of entities, enabling dynamic changes in the entity hierarchy while maintaining accurate reporting of moves.
- Refactored `EditWriter` to handle move edits alongside insertions, ensuring proper management of element positions during project writes.
- Improved cursor update logic in `CameraController` to reflect the current interaction state, enhancing user experience during editing operations.
- Streamlined event handling in the engine to support new pointer event types, improving responsiveness to user interactions.
- Removed obsolete `use-running` hook to simplify the codebase and improve clarity in engine state management.
- Introduced `selected` property in `PatchProps` to track entity selection state, allowing for better management of selected elements.
- Enhanced `DocumentEditor` with `select`, `deselect`, and `clearSelection` methods to handle entity selection and deselection, improving user interaction.
- Updated `setProp` function to remove attributes for boolean props when set to false, ensuring cleaner output and accurate representation of selection state.
- Refactored `DrawOverlay` and `SceneInitOverlay` components to utilize the new selection management, streamlining the selection process in the editor.
- Adjusted related types and documentation to reflect the new selection handling capabilities.
- Updated `SourceInsert` and `InsertEdit` interfaces to include `text` for handling literal text content in elements.
- Introduced `jsxText` function for proper text content formatting in JSX.
- Refactored `DrawOverlay` and `SceneInitOverlay` components to utilize the new text handling features and improved tool management.
- Implemented `useTool` hook for reactive access to the current tool, enhancing the toolbar and tool menu functionality.
- Enhanced `DocumentEditor` to manage text node insertion and editing, improving overall document interaction.
- Introduced a new `useEditor` hook to streamline document editing operations, replacing the previous `useDocument` hook.
- Updated components (BackgroundSettings, InspectorHeader, CameraController) to utilize the new `useEditor` for managing property edits and reporting changes.
- Enhanced the `DocumentEditor` class to handle property edits and element insertions, improving the connection between the editor and the JSX source.
- Refactored the `EditWriter` class to manage pending edits and ensure accurate write-backs to the project, supporting real-time updates.
- Removed the obsolete `useProject` hook to simplify project management and improve code clarity.
- Added `ts-morph` as a dependency to facilitate advanced JSX editing capabilities.
- Introduced a new `edit.ts` module to manage JSX element modifications, separating reading and writing logic from the previous `source.ts`.
- Updated imports across the project to reflect the new structure, ensuring consistent usage of the editing functionalities.
- Enhanced the `sourcePlugin` to maintain compatibility with the new editing approach while ensuring accurate JSX element tracking.
- Removed obsolete code from `source.ts` to streamline the module and improve maintainability.
- Removed the `<rect>` element's promotion to a scene, simplifying the element structure.
- Introduced `<scene>` as a new top-level element under `<stage>`, allowing for clipped, playable frames in compositions.
- Updated `RuntimeDocument` to handle `<scene>` creation and management, ensuring proper entity spawning and timeline ownership.
- Enhanced type definitions in the JSX package to include `SceneProps`, improving integration with the new scene functionality.
- Refactored entity management methods to support the new scene structure and ensure correct parent-child relationships in the document.
- Added support for writing project edits back to JSX, allowing real-time updates from the editor to the source files.
- Introduced new `writeProject` function to handle edits, ensuring changes are reflected in the project's JSX without triggering a full compile.
- Updated `main-channels` to include a new `PROJECTS_WRITE` channel for handling write requests.
- Enhanced `RuntimeDocument` to manage edits and maintain a connection between the editor and the JSX source.
- Improved type definitions in the JSX package to support new source properties, ensuring better integration with the editing workflow.