icarus
21ce139df0
refactor(agents): replace unimplemented mutation with simple function
...
Replace the placeholder mutation implementation in useUpdateAgent hook with a simpler function that shows a toast notification. This removes the unnecessary query client usage for an unimplemented feature.
2025-09-18 18:10:53 +08:00
icarus
71536d6ef5
refactor(agents): replace useMutation with simple function in useAddAgent
...
The mutation logic was removed and replaced with a simple function that shows a toast message. This is a temporary solution until the actual API implementation is ready.
2025-09-18 18:09:58 +08:00
icarus
ef1a035701
feat: add AgentsTab component for managing agents
2025-09-18 18:08:59 +08:00
icarus
2b76c326ee
refactor(agents): replace useMutation with simpler implementation in useRemoveAgent
2025-09-18 18:08:45 +08:00
icarus
64ee5c528b
fix(useAgents): use right agents data
2025-09-18 18:08:40 +08:00
icarus
136d343c18
refactor(hooks): replace redux with swr in useAgents hook
...
Simplify agents management by using SWR for data fetching instead of redux store operations
2025-09-18 18:05:55 +08:00
icarus
0b1b9a913f
feat(hooks): add useAgentClient hook for agent API client initialization
2025-09-18 18:02:05 +08:00
icarus
cb0833a915
refactor(api): centralize agent and session paths for better maintainability
...
Add path builder methods to avoid hardcoding URLs and improve consistency
2025-09-18 17:58:53 +08:00
icarus
db58762a13
refactor(AssistantsTab): remove agent-related code and imports
2025-09-18 17:40:12 +08:00
icarus
6e89d0037f
Merge branch 'feat/agents-new' of github.com:CherryHQ/cherry-studio into feat/agents-new
2025-09-18 17:12:10 +08:00
icarus
e1ab17387c
build: add swr dependency for data fetching
2025-09-18 17:11:56 +08:00
icarus
54de2341bd
refactor(agents): remove draggable functionality and simplify agent list rendering
...
Remove unused agent management hooks and replace DraggableList with simple map
Add cursor-pointer style to AgentItem for better UX
2025-09-18 16:24:27 +08:00
beyondkmp
b131f0c48c
pack optimization
2025-09-18 15:25:16 +08:00
Vaayne
9e4b792fc3
🐛 fix: resolve duplicate migration key '156' to '157'
2025-09-18 14:54:45 +08:00
Vaayne
7abd5da57d
♻️ refactor: replace ClaudeCodeService child process with SDK query
...
- Replace process spawning with @anthropic-ai/claude-code SDK query function
- Remove complex process management, stdout/stderr parsing, and JSON buffering
- Directly iterate over typed SDKMessages from AsyncGenerator
- Simplify error handling and completion logic
- Maintain full compatibility with existing SessionMessageService interface
- Eliminate ~130 lines of process management code
- Improve reliability by removing JSON parsing edge cases
2025-09-18 14:54:45 +08:00
icarus
be7399b3c4
Merge branch 'feat/agents-new' of github.com:CherryHQ/cherry-studio into feat/agents-new
2025-09-18 14:49:18 +08:00
icarus
8d92b515ab
feat(agent): return updated agent data from updateAgent method
...
Add response parsing and return type to updateAgent to provide updated agent data to callers
2025-09-18 14:35:57 +08:00
icarus
524098d6d3
feat(agent): add error processing utility and update agent method
...
Introduce processError utility to handle axios errors consistently
Add updateAgent method to support partial updates of agent data
2025-09-18 14:34:05 +08:00
icarus
42fa2d94be
feat(api): add formatAxiosError utility for handling axios errors
2025-09-18 14:33:45 +08:00
icarus
a65b30f3a1
chore: update vscode settings for i18n configuration
...
Remove display language setting and clean up comments
2025-09-18 14:33:10 +08:00
icarus
f1991b356b
feat(agent): add get and delete agent methods with error handling
...
Implement getAgent and deleteAgent methods in AgentClient with proper error handling
Add formatAgentServerError utility for consistent error messages
2025-09-18 14:20:48 +08:00
beyondkmp
352c23180a
add patch for sdk to run cli in electron
2025-09-18 14:11:05 +08:00
icarus
825c376c5c
feat(agent): add create agent endpoint to agent client
2025-09-18 14:08:31 +08:00
icarus
231a923c9d
feat(types): add AgentForm type and move from component to types file
...
Centralize the AgentForm type definition in the types file for better maintainability and reuse across components
2025-09-18 14:03:10 +08:00
icarus
dbf01652f8
feat(agent): add avatar support for agent items
...
Implement getAgentAvatar function to provide avatar images based on agent type. Update AgentItem component to display agent-specific avatars instead of generic ones.
2025-09-18 13:59:37 +08:00
icarus
842a6cb178
style(AssistantsTab): reorder tailwind classes for consistency
2025-09-18 13:54:59 +08:00
icarus
d56c526709
feat(api): add AgentClient class for listing agents
...
Implement a new API client class to handle agent listing operations with proper error handling and validation
2025-09-18 13:48:57 +08:00
icarus
70a68bef27
Revert "feat(types): add DeleteAgentResponse type and update AgentService"
...
This reverts commit 219844cb74 .
2025-09-18 13:31:23 +08:00
icarus
f9b49ffde6
Merge branch 'feat/agents-new' of github.com:CherryHQ/cherry-studio into feat/agents-new
2025-09-18 13:28:36 +08:00
icarus
a264fd42e4
feat(types): add AgentServerError schema for error handling
2025-09-18 13:26:51 +08:00
icarus
219844cb74
feat(types): add DeleteAgentResponse type and update AgentService
...
Update AgentService to use DeleteAgentResponse type instead of boolean for better type safety
2025-09-18 13:24:00 +08:00
icarus
230205d210
feat(types): add UpdateAgentResponse type and schema
...
Update agent service to use new response type for consistency
2025-09-18 13:21:37 +08:00
icarus
f9fb0f9125
feat(agent): add ListAgentsResponse type and update service
...
Add ListAgentsResponse schema and type to handle agent listing responses
Update AgentService to use the new type for listAgents method
2025-09-18 13:19:57 +08:00
icarus
0f777e357d
refactor(types): convert GetAgentSessionResponse interface to zod schema
...
Improve type safety by using zod schema definition and inference instead of manual interface
2025-09-18 13:17:32 +08:00
icarus
5c578c191b
refactor(types): convert AgentSessionMessageEntity interface to zod schema
...
Replace interface with zod schema for better type safety and validation
2025-09-18 13:15:58 +08:00
icarus
7a4952f773
refactor(types): convert AgentSessionEntity interface to zod schema
...
Use zod schema for better type safety and validation capabilities
2025-09-18 13:01:57 +08:00
icarus
71a1daddef
refactor(types): reorder CreateAgentResponse and its schema
...
Place schema definition before type alias for better readability and consistency
2025-09-18 13:00:41 +08:00
icarus
0a82955e91
refactor(types): replace GetAgentResponse interface with zod schema
...
Use zod schema for better type safety and validation
2025-09-18 12:59:49 +08:00
icarus
62d2da3815
refactor(types): convert Tool interface to zod schema
...
Use zod schema for better type safety and validation capabilities
2025-09-18 12:58:56 +08:00
icarus
84aab66aa6
refactor(types): add CreateAgentResponseSchema for consistency
2025-09-18 12:56:29 +08:00
icarus
2d0d599ac8
refactor(types): convert AgentEntity interface to zod schema
...
Use zod schema for better runtime validation and type safety
2025-09-18 12:55:01 +08:00
icarus
dca6be45b0
refactor(types): replace hardcoded agent type check with zod schema
...
Use zod schema validation for type safety and maintainability instead of manual array checking
2025-09-18 12:52:58 +08:00
icarus
5a71807cc9
feat(types): add CreateAgentResponse type and update AgentService return type
2025-09-18 12:50:42 +08:00
icarus
0d0ab4dcf5
refactor(types): convert AgentBase interface to zod schema
...
This change improves type safety and validation by replacing the TypeScript interface with a zod schema definition. The schema provides runtime validation while maintaining the same type inference capabilities.
2025-09-18 12:49:17 +08:00
icarus
ac3da51890
refactor(types): replace AgentConfiguration interface with zod schema
...
Use zod schema for better type safety and validation capabilities
2025-09-18 12:46:45 +08:00
icarus
9ea361f7e8
refactor(types): migrate PermissionMode to zod schema for type safety
2025-09-18 12:45:00 +08:00
icarus
cc6160892a
refactor(types): reorganize agent type interfaces for better clarity
...
Move API DTO interfaces to a dedicated section at the bottom of the file to improve code organization and maintainability
2025-09-18 12:42:01 +08:00
Vaayne
49eed449c3
refactor: Remove outdated validation and planning documents for agents service
2025-09-18 12:02:11 +08:00
Vaayne
8ada7ffaf6
Merge remote-tracking branch 'origin/main' into feat/agents-new
2025-09-18 11:51:34 +08:00
Vaayne
e7c37231e0
feat: Enhance message handling with user message persistence and improved stream management
2025-09-18 00:30:43 +08:00