icarus
27f98b02a6
feat(sessions): add sessions tab with basic functionality and translations
...
- Create new SessionsTab component with mock data
- Add session item component with context menu for edit/delete
- Include session tab in main navigation
- Add English translations for session-related strings
2025-09-18 19:26:25 +08:00
icarus
af6a3c87d6
fix(AgentItem): add missing onPress dependency to useCallback
...
Ensure the callback is updated when onPress prop changes to avoid stale closures
2025-09-18 19:17:10 +08:00
icarus
d1819274bb
Revert "feat(agent): add name field to AgentSessionEntitySchema"
...
This reverts commit 8058ed21b3 .
2025-09-18 19:13:24 +08:00
icarus
8058ed21b3
feat(agent): add name field to AgentSessionEntitySchema
...
Add name field to agent session schema to support session naming functionality
2025-09-18 19:11:52 +08:00
icarus
eaf302bb40
Merge branch 'feat/agents-new' of github.com:CherryHQ/cherry-studio into feat/agents-new
2025-09-18 19:04:14 +08:00
icarus
3405b7e429
refactor(ui): rename agents to assistantPresets for consistency
...
Update route paths, i18n keys and tab identifiers to use 'assistantPresets' instead of 'agents'
Add new agents tab component while maintaining backward compatibility
2025-09-18 19:04:05 +08:00
icarus
2fc1df8793
refactor(ui): remove unused UI elements and commented code
...
clean up UI by removing unused text spans and commented out code
remove unused timer functionality from AgentModal
2025-09-18 19:00:41 +08:00
icarus
ec82eb2881
build: add @types alias to electron vite config
2025-09-18 18:52:36 +08:00
icarus
1c978e0684
feat(agents): add agent selection functionality
...
- Replace onTagClick with onPress handler in AgentItem
- Add active agent state management in AgentsTab
- Wrap AgentItem content in Button for better interaction
2025-09-18 18:47:37 +08:00
icarus
e938e1572c
feat(chat): add activeAgentId to track current agent state
...
Add activeAgentId field to chat state to track which agent is currently active. This enables UI to reflect the active agent state and handle agent-specific interactions.
2025-09-18 18:43:10 +08:00
icarus
9a7681c5c8
refactor(agent): update agent form types and mutation hooks
...
- Add proper type definitions for AddAgentForm and UpdateAgentForm
- Split agent mutation hooks into separate files
- Update AgentModal to use new form types and hooks
- Remove redundant fields from form submissions
2025-09-18 18:39:02 +08:00
icarus
259f2157f6
refactor(agent): split AgentForm into BaseAgentForm and specific types
...
Improve type safety by separating AgentForm into BaseAgentForm for shared fields and specific types for add/update operations. This better reflects the actual usage patterns in the API client and modal components.
2025-09-18 18:21:52 +08:00
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
Vaayne
984c28d4be
refactor(SessionMessageService): remove unused PermissionMode import
2025-09-18 17:51:45 +08:00
Vaayne
49add96dc0
feat(database): add agent_session_id to session_messages table and update related services
2025-09-18 17:46:05 +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