- 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.
- 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.
- 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.
- Revised README.md to clarify the app's MCP server functionality and updated prompt usage instructions, replacing `dapi` references with `diffusion` for consistency.
- Refactored MCP server configuration to use `diffusion` as the server name instead of `dapi`, ensuring alignment with the updated terminology.
- Enhanced tests to reflect changes in server naming and configuration, ensuring accurate validation of the new structure.
- Added new skills and prompts for `editor` and `watch`, improving user guidance and interaction with the app's features.
- Replaced all instances of `runsIn` with `environment` across the DAPI codebase to standardize terminology.
- Updated related tests and tool definitions to reflect the new property name, ensuring alignment in functionality and documentation.
- Enhanced error handling in the DapiServer class to maintain robustness with the updated property references.
- Removed Babel-related dependencies from apps/cli/package.json and package-lock.json to streamline the build process.
- Added esbuild as a devDependency in apps/cli/package.json for improved bundling.
- Updated README.md to provide a more detailed description of the dapi CLI tool, clarifying its role as a client of the MCP server and stdio proxy.
- Deleted untyped-modules.d.ts to eliminate unnecessary type declarations for Babel presets.
- Enhanced comments in stage-cli.mjs to clarify the staging process for the dapi CLI within the Electron app.
- Replaced the `time` argument with `times` in the CLI commands for consistency across tools.
- Updated the `capture` and `media_grab` tools to handle multiple timestamps, improving flexibility in frame extraction.
- Refactored input validation to utilize `zod` for better error handling and user feedback.
- Removed the `help.ts` module as its functionality has been integrated into the main CLI structure.
- Updated documentation to reflect changes in command syntax and input handling, ensuring clarity for users.
- Replaced references to 'docs' and 'skills' with 'knowledge' in various configurations and scripts to streamline the knowledge base integration.
- Removed the `stage-docs.mjs` and `stage-skills.mjs` scripts, replacing them with `stage-knowledge.mjs` to facilitate the staging of the knowledge base.
- Updated `README.md` and other documentation to reflect the new structure and paths for the knowledge base resources.
- Adjusted the DAPI server and related components to serve knowledge resources, ensuring agents can access the latest documentation and instructions.
- Enhanced test cases to validate the new knowledge base structure and resource accessibility.
- Added `zod` as a dependency in package-lock.json and apps/cli/package.json for input validation.
- Introduced new help.ts module to provide descriptions and validation for CLI commands, ensuring consistency with the app's tool catalog.
- Refactored cli-client.ts to improve timeout handling for tool calls, enhancing error management.
- Created mcp-proxy.ts to facilitate communication between agents and the app's MCP server.
- Updated index.ts to streamline command execution and improve error handling.
- Implemented mcp-config.ts and mcp-install.ts for managing MCP server configurations across different agents.
- Enhanced desktop application to support MCP registration from the menu, improving user experience.
- Added @modelcontextprotocol/sdk as a dependency in package-lock.json and apps/cli/package.json.
- Removed unused @types/ws dependency from package-lock.json and apps/cli/package.json.
- Refactored cli-client.ts to utilize the new SDK for tool interactions, enhancing modularity and performance.
- Updated media handling functions in index.ts to streamline output handling and improve clarity.
- Deleted obsolete protocol.ts and ytdlp.ts files, consolidating functionality within the new SDK.
- Introduced edit-types.ts to define types for source edits, improving type safety and maintainability in the editing process.
- Updated package.json files to include vitest for testing support in both CLI and desktop applications.
- Removed @trpc/client and @trpc/server dependencies from package-lock.json and apps/cli/package.json.
- Updated TypeScript configuration in apps/cli/tsconfig.json to simplify compiler options.
- Refactored cli-client.ts to replace TRPC client calls with direct calls to the DAPI, enhancing modularity and performance.
- Adjusted media handling functions in index.ts to utilize the new call method for better clarity and maintainability.
- Cleaned up protocol.ts by introducing encoding and decoding functions for replies, improving data handling consistency.
- Added @diffusionstudio/dapi as a dependency in package-lock.json, apps/cli/package.json, apps/desktop/package.json, and apps/web/package.json.
- Refactored imports in CLI and desktop source files to utilize types and constants from @diffusionstudio/dapi, enhancing code modularity and maintainability.
- Removed the cli-channels.ts file as its functionality is now encapsulated within the new dapi package.
- Introduced a new MCP server design proposal in docs/mcp-server.md, outlining the transition to a unified API for tool interactions.
- 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.