feat(cli-tools): add effort level configuration for Claude CLI

- Introduced effort level options (low, medium, high) in the CLI tool settings.
- Updated the SettingsPage and CliToolCard components to handle effort level updates.
- Enhanced CLI command options to accept effort level via --effort parameter.
- Modified backend routes to support effort level updates in tool configurations.
- Created a new CliViewerToolbar component for improved CLI viewer interactions.
- Implemented logic to manage and display execution statuses and layouts in the CLI viewer.
This commit is contained in:
catlog22
2026-02-17 20:02:44 +08:00
parent 41c6f07ee0
commit c67bf86244
27 changed files with 696 additions and 241 deletions

View File

@@ -21,7 +21,14 @@
"toolbar": {
"refresh": "Refresh",
"clearAll": "Clear All",
"settings": "Settings"
"settings": "Settings",
"back": "Back",
"addExecution": "Add",
"running": "running",
"executions": "executions",
"executionsList": "Recent Executions",
"fullscreen": "Fullscreen",
"exitFullscreen": "Exit Fullscreen"
},
"emptyState": {
"title": "No CLI Executions",

View File

@@ -41,7 +41,12 @@
"saveToConfig": "Save to Config",
"saving": "Saving...",
"configSaved": "Configuration saved to ~/.claude/cli-tools.json",
"configSaveError": "Failed to save configuration"
"configSaveError": "Failed to save configuration",
"effort": "Effort Level",
"effortHint": "Controls thinking effort for Claude sessions. Default: high.",
"effortLow": "Low",
"effortMedium": "Medium",
"effortHigh": "High"
},
"display": {
"title": "Display Settings",

View File

@@ -84,7 +84,8 @@
"modeDefault": "Default",
"modeYolo": "Yolo",
"quickCreate": "Quick Create",
"configure": "Configure..."
"configure": "Configure...",
"fullscreen": "Fullscreen"
},
"cliConfig": {
"title": "Create CLI Session",
@@ -113,7 +114,15 @@
"copied": "Copied",
"insertPath": "Insert into terminal",
"loading": "Loading...",
"loadFailed": "Failed to load file tree"
"loadFailed": "Failed to load file tree",
"showHidden": "Toggle filtered files"
},
"fileSidebar": {
"title": "Files",
"refresh": "Refresh",
"collapse": "Collapse",
"noProject": "No project open",
"openProjectHint": "Open a project to browse files"
},
"artifacts": {
"types": {
@@ -134,7 +143,8 @@
"linkedIssue": "Linked Issue",
"restart": "Restart Session",
"pause": "Pause Session",
"resume": "Resume Session"
"resume": "Resume Session",
"backToTerminal": "Back to terminal"
},
"tabBar": {
"noTabs": "No terminal sessions"

View File

@@ -41,7 +41,12 @@
"saveToConfig": "保存到配置文件",
"saving": "保存中...",
"configSaved": "配置已保存到 ~/.claude/cli-tools.json",
"configSaveError": "保存配置失败"
"configSaveError": "保存配置失败",
"effort": "思考力度",
"effortHint": "控制 Claude 会话的思考力度。默认high。",
"effortLow": "低",
"effortMedium": "中",
"effortHigh": "高"
},
"display": {
"title": "显示设置",

View File

@@ -84,7 +84,8 @@
"modeDefault": "默认",
"modeYolo": "Yolo",
"quickCreate": "快速创建",
"configure": "配置..."
"configure": "配置...",
"fullscreen": "全屏"
},
"cliConfig": {
"title": "创建 CLI 会话",
@@ -113,7 +114,15 @@
"copied": "已复制",
"insertPath": "插入到终端",
"loading": "加载中...",
"loadFailed": "加载文件树失败"
"loadFailed": "加载文件树失败",
"showHidden": "显示/隐藏过滤文件"
},
"fileSidebar": {
"title": "文件",
"refresh": "刷新",
"collapse": "折叠",
"noProject": "未打开项目",
"openProjectHint": "打开项目以浏览文件"
},
"artifacts": {
"types": {
@@ -134,7 +143,8 @@
"linkedIssue": "关联问题",
"restart": "重启会话",
"pause": "暂停会话",
"resume": "恢复会话"
"resume": "恢复会话",
"backToTerminal": "返回终端"
},
"tabBar": {
"noTabs": "暂无终端会话"