Commit Graph

3 Commits

Author SHA1 Message Date
Harry 0be17fa1a7 feat: update tool management and configuration handling
- Changed the tool fetching mechanism to handle missing tools more effectively by introducing a batch fetch method.
- Removed the pull command to streamline the CLI, focusing on tool references and their management.
- Enhanced the list command to display available tool references and their statuses, improving user visibility into tool availability.
- Updated the configuration structure to include new fields for tool references and their enabled status.

This update improves the overall tool management experience in the CLI, making it more efficient and user-friendly.
2026-01-30 03:30:01 +08:00
Harry 4fa55bcdf5 feat: support tool references 2026-01-19 23:03:54 +08:00
Harry 2bb1b2f521 feat: add pull command to fetch and save tools from Dify
- Introduced a new `pull` command that retrieves all available tools from the Dify platform and saves them to the `.dify_cli.json` configuration file.
- Implemented error handling for API requests and configuration saving to enhance reliability.
- Updated the command initialization to include the new `pull` command in the CLI structure.
- Enhanced the `EnvConfig` struct to include a `FilesURL` field for better tool management.

This update improves the CLI's functionality by allowing users to easily pull and manage tools from the Dify platform.
2026-01-02 15:42:10 +08:00