feat(desktop): add cron tool to Tools page UI

- Add 'group:cron' to TOOL_GROUPS in IPC handler and agent tools
- Add cron tool description and group name to use-tools hook
- Add Time04Icon for cron group in tool-list component
- Add subagent group icon (UserMultipleIcon) for completeness

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jiang Bohan 2026-02-05 18:03:01 +08:00
parent 321b48a1cf
commit ea7a2c837b
4 changed files with 13 additions and 0 deletions

View file

@ -14,6 +14,7 @@ const TOOL_GROUPS: Record<string, string[]> = {
'group:web': ['web_search', 'web_fetch'],
'group:memory': ['memory_search'],
'group:subagent': ['sessions_spawn'],
'group:cron': ['cron'],
}
// All known tool names (for display when agent not available)
@ -23,6 +24,7 @@ const ALL_KNOWN_TOOLS = [
...TOOL_GROUPS['group:web'],
...TOOL_GROUPS['group:memory'],
...TOOL_GROUPS['group:subagent'],
...TOOL_GROUPS['group:cron'],
]
/**

View file

@ -11,6 +11,8 @@ import {
ArrowDown01Icon,
ArrowUp01Icon,
Loading03Icon,
Time04Icon,
UserMultipleIcon,
} from '@hugeicons/core-free-icons'
import type { ToolInfo, ToolGroup } from '../hooks/use-tools'
@ -20,6 +22,8 @@ const GROUP_ICONS: Record<string, typeof FolderOpenIcon> = {
runtime: CodeIcon,
web: GlobalIcon,
memory: AiBrainIcon,
subagent: UserMultipleIcon,
cron: Time04Icon,
other: CodeIcon,
}

View file

@ -31,6 +31,8 @@ const TOOL_DESCRIPTIONS: Record<string, string> = {
memory_set: 'Store a memory value',
memory_delete: 'Delete a memory value',
memory_list: 'List all memory keys',
memory_search: 'Search memory files for keywords',
cron: 'Create and manage scheduled tasks',
}
// Group display names
@ -39,6 +41,8 @@ const GROUP_NAMES: Record<string, string> = {
runtime: 'Runtime',
web: 'Web',
memory: 'Memory',
subagent: 'Subagent',
cron: 'Cron',
other: 'Other',
}

View file

@ -36,6 +36,9 @@ export const TOOL_GROUPS: Record<string, string[]> = {
// Subagent tools
"group:subagent": ["sessions_spawn"],
// Cron/scheduling tools
"group:cron": ["cron"],
// All core tools
"group:core": [
"read",