- Introduced new tray menu icons for various application states (open, hide, ready, busy, project, quit) to improve user experience.
- Enhanced the `AppTray` class to support dynamic icon updates based on the current theme (light/dark).
- Updated the context menu to include icons alongside labels for better visual representation.
- Added a new script command in `package.json` for generating tray menu icons.
- Updated the CLI to include a new `window` command for managing the application window state (show/hide).
- Improved the background launch logic to prevent launching the app if it is already running in the background.
- Added new tray icons for different application states (busy, idle, window) to enhance user experience.
- Refactored the `agent-chat` module to improve the handling of the agent chat endpoint and its lifecycle.
- Introduced a `WindowHost` class to manage the main window's lifecycle, ensuring it only exists when needed and integrates with the tray functionality.
- Removed the deprecated `headless` module and adjusted related logic to streamline the application flow.
- Updated the DAPI server to support window management, allowing tools to interact with the main window effectively.
- Introduced new options for the `fonts` command to filter by provider and popular fonts, enhancing user experience in font selection.
- Updated the documentation to reflect the inclusion of Google Fonts and local fonts, clarifying how to access and utilize them in projects.
- Implemented a new `FontDropdown` component in the web inspector for improved font selection, allowing users to choose from popular and Google Fonts seamlessly.
- Refactored existing components to integrate the new font selection logic, ensuring consistency across the application.
- Enhanced the `present` function to support background track processing in the `media_segment` tool, allowing for real-time tracking and reporting of mask states.
- Introduced a new `presentContext` function to manage the output of background tracks, including their progress and contact sheets.
- Updated the `context` tool to report the status of ongoing background tracks, including their state and associated images.
- Modified the `media_segment` tool to return tracking states and paths, improving integration with the `<mask>` component in the editor.
- Enhanced documentation to clarify the new behavior and usage of background tracks in the context of media segmentation.
- Added tests to verify that text edits preserve associated paint elements and only replace the text content within JSX elements.
- Updated the `setText` function to ensure that only the text is replaced while retaining other child elements, such as paint and comments.
- Improved the logic for identifying which parts of an element's children are considered as text, enhancing the accuracy of text replacements.
- Enhanced documentation to clarify the behavior of text replacements in JSX structures.
- Introduced the `media_segment` tool to segment objects in video footage using SAM 2.1, allowing users to track objects and generate mask files.
- Implemented input validation for prompts, ensuring at least one point or a bounding box is provided for segmentation.
- Enhanced the output structure to include mask paths and tracking details, improving integration with the `<mask>` component in the editor.
- Added comprehensive documentation for the new tool, detailing usage, input parameters, and expected outputs.
- Updated related components and tests to support the new functionality, ensuring robust performance and user experience.
- Updated the CLI installation logic to use `diffusion` instead of `dapi`, including changes to link paths and installation scripts for macOS.
- Enhanced the status checking functions to reflect the new command structure, ensuring accurate detection of installed links.
- Adjusted comments and documentation throughout the codebase to improve clarity regarding the `diffusion` command and its aliases.
- Ensured backward compatibility by maintaining `dapi` as an alias where necessary.
- Updated all instances of the CLI command from `dapi` to `diffusion` in the desktop and web applications for consistency.
- Adjusted related comments and documentation to reflect the new command name, improving clarity for users and developers.
- Ensured that the changes are applied across relevant files, including configuration and dashboard components.
- Introduced OpenCode as a new agent in the MCP configuration, updating the `ServerEntry` type to include boolean values.
- Enhanced the `agentTarget` function to accommodate OpenCode's specific entry format.
- Updated tests to verify OpenCode's integration and ensure proper handling of its configuration settings.
- Added OpenCode's icon to the agent icons mapping in the web application.
- Updated all instances of the CLI command from `dapi` to `diffusion` in README, documentation, and source files for consistency.
- Adjusted related scripts and examples to reflect the new command name, enhancing clarity for users and developers.
- Ensured backward compatibility by maintaining `dapi` as an alias where necessary.
- Revised the `WINDOWS.md` file to reflect the current status of DAPI tools running on Windows, including successful connections and functionality checks.
- Implemented a new `tempDir` function in `present.ts` to ensure correct handling of temporary directories on Windows, improving compatibility.
- Updated the `store.ts` file to reorder preferred models for better prioritization in the agent chat feature.
- Replaced the `symlink:create` and `shim:create` scripts with a unified `link` script for creating a `dapi` command link on both macOS and Windows.
- Introduced a new `dev-link.mjs` script to handle the linking logic, ensuring the latest CLI build is accessible.
- Updated the README and various documentation files to reflect the new linking process and clarify installation instructions for the CLI.
- Removed the obsolete `dev-shim.mjs` script, streamlining the development workflow.
- Simplified the color mode handling for Windows by removing the preference parameter from the `WINDOW_SET_COLOR_MODE` channel, ensuring a more straightforward integration with the title bar overlay.
- Eliminated the Mica implementation due to inconsistencies in visual appearance compared to macOS, reverting to a solid window style.
- Updated the `PreferencesMenu` to retrieve stored theme preferences more robustly, enhancing user experience.
- Removed unused backdrop-related code and CSS, streamlining the application and improving maintainability.
- Introduced Mica support for Windows 11, allowing the app to utilize a transparent backdrop that follows the system theme.
- Updated the color mode handling to differentiate between the displayed mode and user preference, ensuring a consistent user experience.
- Enhanced the title bar overlay logic to accommodate Mica, improving visual integration with the Windows environment.
- Adjusted the preload and main channels to pass backdrop information, enabling transparent rendering in the web context.
- Refactored various components to ensure proper functionality and styling under the new backdrop conditions.
- Adjusted the symbol colors in the Windows overlay to align with the sidebar's muted foreground, enhancing visual coherence across the application.
- Updated comments to clarify the design intent behind the Windows overlay and its color scheme.
- Deleted the `whoami` command from the CLI, including its associated action and description.
- Updated various documentation files to remove references to the `whoami` tool, ensuring consistency across the project.
- Adjusted related test cases and API handlers to reflect the removal of the `whoami` functionality.
- Added a new `dev-shim.mjs` script for creating and removing a Windows shim for the `dapi` command, ensuring it points to the correct executable.
- Updated the `package.json` to include new npm scripts for creating and removing the shim.
- Refactored the CLI installation logic to support Windows, including the addition of `refreshCliShim` to rewrite the shim on app updates.
- Enhanced the `mcp-config` to accommodate Windows-specific command handling for the `dapi` binary.
- Introduced tests for the Windows CLI installation and cloud sync functionalities to ensure reliability across platforms.
- 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.
- 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.
- 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.
- 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.
- Added support for Squirrel.Windows in the desktop app, including configuration for the installer and metadata.
- Updated package-lock.json to include the latest version of @electron-forge/maker-squirrel and other dependencies.
- Modified build scripts to improve compatibility and streamline installation processes.
- Documented the current status of Windows implementation in WINDOWS.md, outlining next steps for CI integration.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Added `uninstallCli` function to remove the `dapi` symlink from PATH, handling various outcomes such as removal, absence, cancellation, and errors.
- Introduced `isCliLinked` function to check for the presence of the symlink, improving the detection of CLI installation status.
- Updated `disconnectSetup` to include CLI uninstallation alongside MCP disconnection, ensuring a complete cleanup process.
- Enhanced `disconnectAgentsFromMenu` to provide user feedback on CLI removal status, integrating it with the existing agent disconnection logic.
- Refactored `refreshAppMenu` to reflect the current setup state, ensuring accurate menu visibility based on agent and CLI status.
- Introduced `removeServer` function in `mcp-config.ts` to facilitate the removal of MCP entries while preserving other configurations.
- Updated `mcp-install.ts` to include `unregisterMcp` function, allowing for the disconnection of agents from the MCP configuration.
- Enhanced `menu.ts` with `disconnectAgentsFromMenu` and `refreshAppMenu` functions to manage agent disconnection and update menu visibility accordingly.
- Refactored `ensureSetup` in `setup.ts` to call `refreshAppMenu`, ensuring the menu reflects the current agent connection status after setup.
- Added tests in `mcp-config.test.ts` to validate the new removal functionality for both JSON and TOML configurations.
- Updated `AgentLaunch` type in `agent-links.ts` to include an optional `attachments` property for dropped files and folders.
- Modified `agentLink` function to append attachment paths to the prompt, ensuring they are included in the generated URL.
- Added tests in `agent-links.test.ts` to verify correct formatting of prompts with attachments and handling of empty attachment lists.
- Updated `main-channels.ts` and `main.ts` to accommodate the new `attachments` parameter in agent launch requests.
- Enhanced `home-view.tsx` to manage dropped files and folders, including drag-and-drop functionality for user attachments.
- Added a new `SETUP_STATUS` channel in `main-channels.ts` to retrieve the current setup status of the application.
- Introduced `setupStatus` and `verifySetup` functions in `setup.ts` to provide detailed information about MCP registration and CLI installation status.
- Updated `main.ts` to handle the new `SETUP_STATUS` channel and improve the setup process.
- Enhanced `agents.ts` with new functions for agent setup status and connection, improving user experience during agent management.
- Integrated `McpSetupBanner` in the canvas component to provide visual feedback on MCP setup status in the UI.
- Replaced CLI installation and MCP registration logic with a unified `ensureSetup` function in `main.ts` and `menu.ts` to streamline agent connection.
- Updated `main-channels.ts` to include new types and channels for setup results, enhancing type safety and clarity.
- Refactored `agents.ts` to rename `connectAgents` to `ensureAgentSetup`, aligning with the new setup process.
- Improved the `home-view.tsx` component to utilize the new `ensureAgentSetup` function for better agent management.
- Enhanced user feedback in the menu dialogs to provide clearer information about agent connections and CLI tool status.
- Simplified the `markerExists` function in `agent-detect.ts` to streamline path checks.
- Removed unnecessary `requires` property from agent variants in `agent-links.ts`, simplifying agent configuration.
- Updated tests in `agent-links.test.ts` to reflect the removal of VS Code checks and enhance clarity.
- Introduced new SVG icons for agents in the assets directory, improving visual representation in the UI.
- Enhanced the `home-view.tsx` component to utilize the new `agentIcon` function for dynamic icon rendering.
- Introduced `agent-detect.ts` to manage agent availability checks and link generation based on installed applications.
- Created `agent-links.ts` to define agent configurations, including their deep links and required markers for detection.
- Implemented tests in `agent-links.test.ts` to validate agent link generation and availability logic.
- Updated `main-channels.ts` to include new channels for listing agents and opening their links.
- Enhanced `main.ts` to handle agent-related requests and integrate with the new agent detection system.
- Added `pickProjectFolder` function to allow users to select project folders directly.
- Refactored dashboard components to utilize the new agent functionality, improving user interaction with coding agents.
- Updated documentation to reflect the new agent features and usage instructions.