562 Commits

Author SHA1 Message Date
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
konstantin-paulus
093aa671ac Enhance media_transcribe tool and logging functionality
- Updated the `media_transcribe` command to write transcripts to a JSON file, including an output option for specifying the file path.
- Implemented a new `presentTranscript` function to handle the writing of transcripts and return relevant metadata.
- Added filtering options for the `logs` command, including `since` and `contains`, to improve log retrieval capabilities.
- Introduced tests for the new logging features and updated documentation to reflect changes in the `media_transcribe` tool and logging options.
2026-09-11 23:20:46 +02:00
konstantin-paulus
7372c40429 Update documentation references and refactor knowledge handling
- Changed references from `knowledge` to `docs` in README and various files to reflect the new documentation structure.
- Updated `.gitignore` to exclude the `docs` directory instead of `knowledge`.
- Refactored `forge.config.ts` and `main.ts` to utilize the new `docs` directory for staging resources.
- Introduced `stage-docs.mjs` script to manage the staging of documentation files.
- Added new documentation files under `docs/`, including `INSTRUCTIONS.md`, brand guidelines, and design specifications.
- Removed outdated `knowledge` related tests and files to streamline the codebase.
2026-09-11 20:33:57 +02:00
konstantin-paulus
716d25c5a4 Refactor HistoryMenu component for improved chat status display
- Updated icon sizes for better visibility in the HistoryMenu.
- Added conditional rendering for chat status messages based on the selected chat.
- Replaced RemoveButton with a button element for enhanced accessibility and interaction.
- Streamlined the layout and styling of chat items in the dropdown menu.
2026-09-11 18:42:36 +02:00
konstantin-paulus
db2a3bd1f3 Implement agent chat functionality in desktop and web applications
- Added `agent-chat.ts` to manage the agent chat host process, including spawning and communication with the host.
- Updated `main.ts` and `main-channels.ts` to integrate agent chat endpoint handling and lifecycle management.
- Introduced new components for the agent chat interface, including `ChatPanel`, `Composer`, and `HeaderActions`, enhancing user interaction.
- Implemented file attachment handling in the chat with `attachments.tsx` and related functionality.
- Updated package dependencies to include `@diffusionstudio/agent-chat` and related libraries for improved chat capabilities.
- Refactored project deletion logic to ensure associated chats are properly managed.
2026-09-11 18:31:56 +02:00
konstantin-paulus
b13dec966a Add agent chat design specification document 2026-09-11 14:25:10 +02:00
konstantin-paulus
90cf84aa9b Add new agent icons and refactor agent handling in DashboardHomeView 2026-09-11 14:19:57 +02:00
konstantin-paulus
f0e66b3dd6 Remove headless mode functionality and related components
- Deleted references to headless mode in `main-channels.ts`, `main.ts`, and `auth.tsx`, streamlining the codebase by eliminating unused features.
- Removed the `HeadlessIndicator` component from the web application, enhancing clarity and maintainability.
- Updated the login page to reflect the removal of headless mode, simplifying the authentication flow.
2026-09-11 11:23:45 +02:00
konstantin-paulus
1532bf0e34 Refactor and remove unused CLI and MCP setup functionality
- Deleted `cli-install.ts`, `mcp-install.ts`, `mcp-config.ts`, and their associated tests to streamline the codebase and eliminate unused components.
- Removed references to CLI installation and MCP registration in `setup.ts`, `menu.ts`, and other related files, enhancing clarity and maintainability.
- Updated `stage-cli.mjs` to reflect changes in CLI handling, simplifying the staging process for the dapi CLI.
- Refactored `main.ts` to remove setup-related logic, focusing on essential application functionality.
- Enhanced skills cleanup logic to ensure legacy skills are properly managed without the removed components.
2026-09-11 11:11:05 +02:00
konstantin-paulus
2e4c673989 Refactor DashboardSidebarSection for improved clarity
- Removed the title prop from `DashboardSidebarSection` in the `DashboardPage` component to simplify its usage.
- Enhanced the conditional rendering logic for the sidebar, maintaining a clean and user-friendly interface.
2026-09-11 10:21:41 +02:00
konstantin-paulus
8fbec32a57 Add arrow-left icon and refactor DashboardSidebar components
- Introduced a new `arrow-left.svg` icon for navigation purposes.
- Added `DashboardSidebarTopSpacer` component to manage spacing in the sidebar.
- Refactored `DashboardSidebarNav` and `DashboardSidebarSection` components for improved structure and clarity.
- Enhanced `DashboardPage` to conditionally render sidebar elements based on navigation state, improving user experience.
2026-09-11 00:09:47 +02:00
konstantin-paulus
50c8375a64 Remove agent detection and related functionality
- Deleted `agent-detect.ts`, `agent-links.ts`, and their associated tests to streamline the codebase and eliminate unused components.
- Removed references to agent handling in `main.ts` and `main-channels.ts`, enhancing clarity and maintainability.
- Updated `DashboardHomeView` to utilize a fixed list of agents, simplifying the agent selection process and improving user experience.
2026-09-10 23:35:26 +02:00
konstantin-paulus
6eedc18141 Refactor DashboardHomeView component to simplify agent handling
- Removed unused agent setup logic and related imports, streamlining the component's functionality.
- Updated the submission logic to eliminate unnecessary agent checks, enhancing clarity and performance.
- Adjusted error messages for improved user feedback when opening projects, ensuring a better user experience.
2026-09-10 23:19:55 +02:00
konstantin-paulus
2ca853ff70 Remove McpSetupBanner component and related functionality
- Deleted the `McpSetupBanner` component from the canvas, streamlining the UI by removing unnecessary elements.
- Updated `canvas.tsx` to reflect the removal of the `McpSetupBanner`, enhancing code clarity.
- Refactored `agents.ts` to remove unused types and functions related to MCP setup, improving maintainability.
- Enhanced the `DashboardHomeView` component with a new placeholder implementation for better user experience.
2026-09-10 23:11:22 +02:00
konstantin-paulus
2e7b8bf3e9 Refactor dashboard project card implementation and cleanup
- Replaced `DashboardCardButton` with `DashboardProjectCard` in `home-view.tsx` for improved project representation.
- Removed unused imports and refactored event handling for project selection and deletion.
- Cleaned up `projects-view.tsx` by removing deprecated context menu code and unused signals related to project renaming, enhancing code clarity and maintainability.
2026-09-10 15:41:53 +02:00