576 Commits

Author SHA1 Message Date
konstantin-paulus
1a10ee1583 Enhance caption positioning logic in media runtime
- Updated the caption positioning function to account for `Sequential` traits, ensuring proper handling of parent nodes that are not spatial constructs.
- Improved the logic for retrieving the parent node, enhancing the accuracy of caption placement within the media runtime.
v0.205.2
2026-09-18 09:35:22 +02:00
konstantin-paulus
e0ff7ecaea Refactor attachment display in agent chat components
- Updated the `AttachmentChip` component to include a border and change the background to transparent, enhancing visual clarity.
- Modified the `UserItem` component layout to improve the display of attachments and conditionally render the item text, ensuring better organization and readability.
2026-09-18 09:24:38 +02:00
konstantin-paulus
ac7f6aa247 Enhance project navigation with return state management
- Integrated `useReturnHere` hook to capture the current location state for project navigation, allowing users to return to the previous view after opening a project.
- Updated navigation calls in `DashboardHomeView`, `DashboardProjectsView`, and `FileMenu` components to include the return state, improving user experience by maintaining context.
- Refactored `ProjectMenu` and `ProjectPage` to utilize location state for consistent navigation behavior across the application.
2026-09-17 23:28:57 +02:00
konstantin-paulus
a0f843fcac Refactor prop handling in JSX editing
- Removed the `isWritable` function, simplifying the logic for determining if a prop can be overwritten.
- Updated the `applyEdits` method to allow overwriting props with expressions, ensuring user edits take precedence over existing values.
- Clarified comments to reflect the new behavior of prop value handling, enhancing code readability and maintainability.
2026-09-17 23:27:54 +02:00
konstantin-paulus
0afd65d33e Update project menu navigation to use dynamic dashboard route
- Modified the `handleOpenDashboard` function in the ProjectMenu component to navigate using a new `dashboardRoute` function, enhancing routing flexibility based on the current dashboard view.
- Introduced `dashboardRoute` in the dashboard page to determine the correct path based on the last viewed dashboard state, improving user experience and navigation consistency.
2026-09-17 21:08:40 +02:00
konstantin-paulus
0110f8c2d2 Implement auto-scrolling feature in Transcript component
- Added a new `pin` function to ensure the chat view automatically scrolls to the bottom when new messages are received or when the chat key changes.
- Updated the effect dependencies to include both `chatKey` and message length, enhancing the user experience by keeping the latest messages in view.
2026-09-17 20:51:23 +02:00
konstantin-paulus
5166153c29 Refactor agent chat components and update sidebar functionality
- Removed the right sidebar component and replaced it with a left sidebar structure, enhancing the layout for better usability.
- Updated sidebar tab labels from "Editor" to "Assets" to reflect the new structure.
- Adjusted the sidebar width calculations and related settings to accommodate the new layout.
- Enhanced the ChatPanel and HeaderActions components for improved integration with the updated sidebar.
- Streamlined the Assets component to include SidebarTabs for consistent navigation.
2026-09-17 20:42:52 +02:00
konstantin-paulus
e7c71ba21e Enhance cask bump workflow with tag validation and retry logic
- Added validation to ensure only valid version tags (vX.Y.Z) are used for cask updates, preventing erroneous bumps.
- Implemented retry logic for downloading the DMG file to handle potential 404 errors during the release event, improving reliability.
2026-09-17 13:26:44 +02:00
konstantin-paulus
f1e6809c20 Remove unused skill management and prompt serving functionality
- Deleted the `prompts-session.ts` and its associated test file, as they are no longer needed.
- Removed the `Skill` type and related functions from `docs.ts`, streamlining the codebase by eliminating unnecessary complexity.
- Updated the `DapiServer` class to reflect these changes by removing the `servePrompts` call, ensuring the server's functionality remains focused on essential features.
2026-09-17 13:18:34 +02:00
konstantin-paulus
cb1116b23d Enhance desktop analytics tracking and event handling
- Updated the analytics module to support direct event posting to Umami from the main process, addressing the renderer's limitations in Electron.
- Introduced a new `trackEvent` function for product events, allowing the renderer to send analytics data through the main process.
- Modified the `trackInstall` function to streamline install tracking and ensure it only sends data on the first launch of a packaged build.
- Added a new `ANALYTICS_TRACK` channel in main-channels for handling analytics events from the renderer.
- Refactored the analytics tracking logic in the web context to improve event handling and reporting consistency.
2026-09-17 10:50:15 +02:00
konstantin-paulus
6d2d52450e Update package versions to 0.205.2 across all modules
- Incremented version number from 0.205.1 to 0.205.2 in package.json and package-lock.json for the editor, CLI, desktop, and web applications.
- Ensured consistency in versioning across all related packages.
2026-09-17 10:31:01 +02:00
konstantin-paulus
cb852b0ca5 Update brand documentation and assets
- Renamed and clarified sections in design, library, and video guides to enhance consistency and understanding.
- Removed outdated logo assets and adjusted references to branding terminology throughout the documentation.
- Updated color and typography guidelines to reflect a more neutral and flexible approach.
- Streamlined instructions for applying the brand style and using reusable components.
- Enhanced clarity in voice and language guidelines to ensure alignment with the updated brand identity.
2026-09-17 10:27:49 +02:00
konstantin-paulus
f0040775d1 Add skill management and prompt serving functionality
- Introduced a new `Skill` type to represent skills with their names, descriptions, and paths.
- Implemented `skills` function to read skills from `INSTRUCTIONS.md` and filter out missing pages.
- Added `skillPrompt` function to generate a prompt for each skill, including its content.
- Created `servePrompts` function to register skills as prompts in the MCP server, allowing clients to access them via slash commands.
- Added tests for the `servePrompts` functionality to ensure skills are listed and served correctly.
2026-09-17 10:07:43 +02:00
Konstantin Paulus
b31741213f
Merge pull request #68 from diffusionstudio/subagent-fix
Subagent fix
2026-09-14 21:20:02 +02:00
konstantin-paulus
5529819672 v0.205.1
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
v0.205.1
2026-09-14 21:03:21 +02:00
konstantin-paulus
5a229bd7a9 Update ClaudeSession to disallow specific tools and modify Codex spawn arguments
- Added `disallowedTools` property to `ClaudeSession` to restrict usage of "Agent" and "Task".
- Updated the arguments in `spawnAppServer` function in `codex.ts` to disable multi-agent features, enhancing configuration control.
2026-09-14 21:01:21 +02:00
konstantin-paulus
2593b928fe Refactor import statement in document.ts for consistency
- Updated the import statement for runtime components in document.ts to maintain consistent formatting and improve readability.
v0.205.0
2026-09-14 11:56:13 +02:00
Konstantin Paulus
805affff28
Merge pull request #63 from diffusionstudio/mcp-support
Mcp support
2026-09-14 11:40:33 +02:00
konstantin-paulus
53a9ecc7d9 Merge remote-tracking branch 'origin/main' into mcp-support 2026-09-14 11:40:13 +02:00
konstantin-paulus
9cfdc0d921 Update package.json to add test script for workspaces
- Added a new `test` script to the `scripts` section of package.json, enabling testing across workspaces when present.
- Ensured consistency in script execution by maintaining the existing `check` script functionality.
2026-09-14 11:26:26 +02:00
konstantin-paulus
8691f37399 Refactor project creation and dashboard interaction logic
- Updated the `createNewProject` function to simplify project creation flow by removing unnecessary parameters and handling folder selection directly.
- Modified the `DashboardPage` component to replace the project creation logic with folder picking functionality, enhancing user experience.
- Removed unused imports and streamlined interaction handling in the `interactions.ts` file, improving code clarity and maintainability.
- Adjusted the `DocumentEditor` class to reset asset selection when a new selection is made, ensuring consistent state management.
2026-09-14 11:14:43 +02:00
konstantin-paulus
5d94b6d794 Add dynamic textarea height adjustment in DashboardHomeView
- Introduced a new constant `PROMPT_MAX_HEIGHT_PX` to limit the maximum height of the textarea.
- Implemented a height adjustment mechanism for the textarea that dynamically sets its height based on content, ensuring it does not exceed the defined maximum height.
- Updated the textarea class to allow for vertical scrolling when content exceeds the visible area, enhancing user experience.
2026-09-14 00:27:48 +02:00
konstantin-paulus
763ce7aa5c Enhance playhead management and update scene documentation
- Added `playhead` property to the scene, allowing the editor to track the playhead's position when the project is opened, improving playback accuracy.
- Introduced `editPlayhead` function to manage playhead updates, ensuring the file reflects the playhead's position during scrubbing and timeline interactions.
- Updated documentation to clarify the role of the `playhead` property in the scene, emphasizing its importance for project state management.
2026-09-14 00:16:55 +02:00
konstantin-paulus
3cf1453968 Enhance model selection logic in agent chat store
- Introduced a new constant `PREFERRED_MODELS` to prioritize model families during selection.
- Updated the `currentModel` function to first check for remembered models, then preferred models, and finally fallback to the first ready default, improving the model selection process for users.
2026-09-13 21:38:01 +02:00
konstantin-paulus
7d9d2330a5 Enhance app launch functionality and update route key
- Modified the `launchApp` function in `cli-client.ts` to ensure the environment is correctly passed when launching the app, preventing issues with Electron running as Node.
- Updated the `ROUTE_KEY` in `persist-route.tsx` to a new versioned key, improving route persistence management.
2026-09-13 21:27:24 +02:00
konstantin-paulus
2874735936 Update scene and stage documentation, and adjust default camera settings
- Enhanced the `scene.md` documentation to clarify the `workarea` property and its implications for playback and export.
- Revised the `stage.md` documentation to provide clearer guidance on the `camera` property, emphasizing the importance of setting a camera for non-standard compositions.
- Updated the default camera settings in the `world.ts` and `types.ts` files to better frame typical project dimensions, ensuring a more intuitive starting point for users.
2026-09-13 21:15:22 +02:00
konstantin-paulus
f023adb4cd Remove legacy skills cleanup functionality
- Deleted the `skills-cleanup.ts` file and removed the `pruneLegacySkills` function from `main.ts`, streamlining the codebase by eliminating unused features related to legacy skills management.
- Updated the main application logic to reflect the removal of the legacy skills pruning process.
2026-09-13 20:35:38 +02:00
konstantin-paulus
6bde47b9a1 Replace and remove SVG icons in the assets directory
- Deleted the old `agent-cursor.svg` and `antigravity.svg` icons, along with several other outdated icons.
- Introduced new SVG icons including `agent.claude-code.svg`, `agent.codex.svg`, `agent.cursor.svg`, `agent.devin-windsurf.svg`, `agent.google-antigravity.svg`, `agent.google-gemini-cli.svg`, `agent.vscode-copilot.svg`, and `dapi-cli.svg`.
- Updated the dashboard component to utilize new icons and improved the layout for better user experience.
- Refactored the `mcp-view.tsx` to enhance the handling of agent connections with a new toggle switch component.
2026-09-13 16:51:07 +02:00
konstantin-paulus
df9d7d9f84 Remove fetch command and related functionality from the application
- Deleted the `fetch` command from the CLI and associated handlers, streamlining the toolset.
- Updated documentation to reflect the removal of the `fetch` command, emphasizing the use of `yt-dlp` directly for downloading videos.
- Adjusted various components and types to remove references to `fetch`, ensuring consistency across the codebase.
- Enhanced error handling to clarify the absence of the `fetch` functionality.
2026-09-13 16:08:07 +02:00
konstantin-paulus
04f388ff33 Add project initialization tests and refactor project handling logic
- Introduced a new test suite in `projects.init.test.ts` to validate the behavior of the `initProject` function, ensuring it correctly initializes new projects and handles existing project directories.
- Refactored the `initProject` function in `projects.ts` to streamline project setup, including improved handling of entry files and package.json records.
- Enhanced error handling for invalid paths in the `initProject` function, ensuring only absolute paths are accepted.
- Updated the `scaffold` function to utilize the new `ensureRecord` function, improving code clarity and maintainability.
- Added tests for various scenarios, including creating new projects, preserving existing project data, and handling invalid inputs, to ensure robust project management functionality.
2026-09-13 15:53:07 +02:00
konstantin-paulus
223a39b87b Refactor project listing and update project handling logic
- Removed the `PROJECTS_LIST` channel and associated `listProjects` function, streamlining project retrieval to focus on direct project records.
- Updated the `MainRequestMap` to reflect the removal of the `PROJECTS_LIST` channel.
- Introduced `openProjectFromList` function to handle project opening logic, ensuring accurate project state management.
- Adjusted various components to utilize the new project handling methods, enhancing overall project management and user experience.
2026-09-13 13:19:47 +02:00
konstantin-paulus
c5bdfd88aa Update package versions to 0.205.0 across all modules
- Bumped version numbers in `package.json` and `package-lock.json` for the main editor and all related applications (CLI, desktop, web, and JSX) to 0.205.0, ensuring consistency across the project.
2026-09-13 12:35:37 +02:00
konstantin-paulus
b36383c50f Add PROJECTS_SCAN channel and implement project scanning functionality
- Introduced a new `PROJECTS_SCAN` channel in `main-channels.ts` to facilitate scanning for project folders.
- Implemented the `scanProjects` function in `projects.ts` to retrieve direct child directories of a specified root that could hold projects.
- Updated the main process in `main.ts` to handle requests for scanning projects.
- Adjusted the `DashboardProjectsFolderBar` component to improve the display of the selected projects folder.
- Refactored project root handling to utilize localStorage for better performance and user experience.
2026-09-13 12:30:39 +02:00
konstantin-paulus
79a27580df Refactor project creation logic and streamline dashboard interactions
- Introduced a new `createNewProject` function to centralize project creation logic, improving code reuse and clarity.
- Removed desktop-specific checks from project creation in `DashboardHomeView` and `DashboardProjectsView`, simplifying the user experience.
- Updated the `DashboardPage` to handle keyboard shortcuts for creating new projects, enhancing accessibility and user interaction.
- Improved error handling during project creation to provide clearer feedback to users.
2026-09-13 12:18:31 +02:00
konstantin-paulus
9e8b209f04 Refactor project handling and update request parameters
- Updated the `ProjectInfo` documentation to clarify project folder definitions.
- Changed request parameters in `MainRequestMap` for `PROJECTS_LIST` and `PROJECTS_RESOLVE` to use `dirs` and `dir` respectively, enhancing clarity and consistency.
- Refactored the `listProjects` function to accept an array of directories instead of a single root, improving project listing logic.
- Adjusted the `resolveProject` function to streamline project resolution based on directory input.
- Updated various components to reflect changes in project data handling, ensuring compatibility with the new structure.
2026-09-13 12:00:54 +02:00
konstantin-paulus
d9d5f3a19c Update build configuration and resource staging for runtime
- Added `runtime` to `.gitignore` to prevent unnecessary file tracking.
- Updated `forge.config.ts` to include `runtime` in the `extraResource` array for proper resource staging.
- Modified `package.json` scripts to include a new `stage:runtime` command, ensuring the runtime is staged alongside other resources during build processes.
- Adjusted `projects.ts` to load modules from the new `runtime` directory, enhancing the application's resource management.
2026-09-13 11:13:03 +02:00
konstantin-paulus
ba792a3295 Enhance attachment tile styling and improve composer layout
- Added a `class` prop to the `AttachmentTile` component for customizable styling.
- Updated the `composer.tsx` to apply a new class for better layout and spacing of attachment tiles, improving the overall user interface.
2026-09-13 10:44:03 +02:00
konstantin-paulus
f92a8339a4 Refactor documentation and enhance instruction clarity
- Updated the README to clarify how the app's MCP server interacts with agents, emphasizing the guidance provided during sessions.
- Removed outdated comments and code related to skill directories in `skills-cleanup.ts`, streamlining the cleanup process.
- Simplified the `docs.test.ts` file by removing unnecessary tests and focusing on the core functionality of the instructions.
- Refactored the `docs.ts` file to improve the instructions function, ensuring it accurately reflects the current documentation structure and skill usage.
- Enhanced the `server.ts` file by removing the registration of prompts, as this functionality has been deprecated, and clarified the documentation structure in comments.
- Updated `INSTRUCTIONS.md` to provide clearer guidance on using skills and their corresponding documentation, improving user onboarding.
2026-09-13 10:28:18 +02:00
konstantin-paulus
8346fcdcb2 Add atomic file writing functionality and enhance project file handling
- Introduced a new `atomic.ts` module for atomic file writing, ensuring that files are written to temporary locations before being renamed to their final destination, preventing partial reads.
- Updated the `onWrite` callback in `SourceContext` to include the text being written, allowing watchers to differentiate between app writes and external changes.
- Refactored file writing logic in `edit.ts`, `projects.ts`, and `main.ts` to utilize the new atomic writing method, enhancing reliability during file operations.
- Added tests to verify the behavior of the new atomic writing functionality and its interaction with the file watcher.
- Improved project file handling to ensure that changes made by the app do not trigger unnecessary reloads in the watcher.
2026-09-13 01:07:29 +02:00
konstantin-paulus
2367cb78da Refactor media selection and enhance prompt input component
- Updated the `PromptInput` component to improve layout responsiveness by adjusting the maximum width.
- Refactored the `useMediaSelection` hook to streamline the selection of media nodes, introducing a new `resolve` function for better clarity.
- Enhanced the `useGenerationRecords` function to utilize the updated media selection logic, ensuring accurate source declarations.
- Added a new `sourceWidth` function in the `AssetThumbnail` component to optimize thumbnail sizing based on asset dimensions and display settings.
- Adjusted the `PartialAssetItem` component to improve icon sizing for better visual consistency.
2026-09-12 23:23:01 +02:00
konstantin-paulus
65d80a5b17 Enhance file writing and logging functionality in desktop and web applications
- Updated the file writing logic in `main.ts` to ensure that generated asset folders are properly marked to prevent unwanted reloads during writes.
- Introduced detailed logging for model call procedures in `trpc.ts`, capturing input arguments and execution time for better debugging and monitoring.
- Simplified logging in `gen-ai.ts` by removing unnecessary details from generation logs.
- Enhanced asset management in `library.ts` by adding functionality to handle partial assets and ensuring unique paths for stored assets.
2026-09-12 22:52:20 +02:00
konstantin-paulus
4acfb3e447 Add keyboard shortcuts for seeking playhead to selection and timeline edges 2026-09-12 22:12:20 +02:00
konstantin-paulus
1bbe992345 Refactor and enhance transform functionality in the asset management system
- Replaced the `useModifiers` hook with `useTransforms` to better reflect the new transform functionality.
- Updated components to utilize the new `useTransforms` hook, including `ActionBar` and `PromptInputActions`, improving the handling of transformations.
- Introduced new `TransformItem` component for managing transform actions in the UI.
- Refactored asset handling logic to accommodate the new transform types and ensure compatibility with existing features.
- Removed deprecated modifier-related code and documentation, streamlining the codebase and enhancing clarity.
- Updated documentation to reflect changes in transform functionality and usage examples.
2026-09-12 16:31:36 +02:00
konstantin-paulus
28ad0372db Enhance asset management and introduce partial asset handling
- Updated the `Assets` component to include support for partial assets, allowing for better management of assets that are still generating.
- Introduced a new `PartialAssetItem` component to represent partial documents in the asset panel, providing options to retry or delete failed generations.
- Modified the `AssetInfoPanel` to display information about partial assets, including their status and error messages.
- Refactored the `useAssetSelection` hook to accommodate both assets and partial assets, improving the selection logic.
- Updated the `FolderItem` component to count partial assets alongside regular assets, enhancing folder statistics.
- Removed the `sourceErrorSystem` as part of the cleanup, streamlining error handling for asset generations.
- Added documentation updates to reflect changes in asset handling and the introduction of partial assets.
2026-09-12 15:52:41 +02:00
konstantin-paulus
d97d63baec Remove ldrs dependency and introduce activity styles for agent chat
- Removed the `ldrs` package from `package.json` and `package-lock.json` to streamline dependencies.
- Added a new `activity.css` file to enhance the visual representation of agent chat activities.
- Updated components to utilize the new activity styles, improving the user experience during chat interactions.
- Refactored the `RunningIndicator` and `Transcript` components to align with the new styling and functionality.
2026-09-12 15:05:22 +02:00
konstantin-paulus
a0ccde9e59 Add ldrs dependency and enhance Transcript component
- Added the `ldrs` package to `package.json` and `package-lock.json` for improved functionality.
- Updated the `Transcript` component to include a `waiting` prop, allowing for better handling of chat states.
- Integrated a `RunningIndicator` to visually represent ongoing chat processes when not waiting for user input.
2026-09-12 11:55:25 +02:00
konstantin-paulus
277d44e636 Add MCP server command and enhance dashboard integration
- Introduced a new CLI command to serve the MCP server over stdio for agents unable to connect via URL.
- Updated the dashboard to include a dedicated MCP section, allowing users to manage agent connections and view MCP status.
- Enhanced the sidebar navigation to include a link to the MCP settings, improving user accessibility.
- Added new types and handlers for MCP-related requests in the main application logic.
- Updated the dashboard components to support displaying MCP-related information and actions.
2026-09-12 10:59:38 +02:00
konstantin-paulus
7a95fada7a Refactor MCP integration and update dependencies
- Removed the `@modelcontextprotocol/sdk` dependency from `package-lock.json` and `package.json`.
- Updated the CLI client to connect via Streamable HTTP instead of a socket, enhancing communication with the MCP server.
- Simplified the `ping` and `call` functions in `cli-client.ts` to utilize the new connection method.
- Removed the `mcp-proxy.ts` file as it is no longer needed with the new HTTP integration.
- Updated documentation to reflect changes in MCP server access and removed references to the socket transport.
- Cleaned up unused imports and refactored related code for improved clarity and maintainability.
2026-09-12 09:18:46 +02:00
konstantin-paulus
c893dd6537 Enhance tool item functionality to support image display
- Updated the `ToolItem` component to include support for displaying images associated with tool results.
- Modified the `expandable` logic to account for images in addition to existing detail and output properties.
- Introduced a new `collectResult` function to process tool result parts, allowing for the inclusion of images while managing output text.
- Added tests for the `collectResult` function to ensure proper handling of text and image parts, including limits on the number of images and text truncation.
2026-09-12 00:41:57 +02:00
konstantin-paulus
ae07aa4bc9 Add keyboard shortcut indication for prompt input in DashboardHomeView
- Introduced a visual cue for the "Tab" key using the Kbd component to enhance user experience.
- Implemented logic to set the prompt when the "Tab" key is pressed and the input field is empty.
- Updated aria attributes to improve accessibility and provide context for keyboard shortcuts.
2026-09-11 23:54:55 +02:00