feat: add CliStreamMonitor and related components for CLI output streaming

- Implemented CliStreamMonitor component for real-time CLI output monitoring with multi-execution support.
- Created JsonFormatter component for displaying JSON content in various formats (text, card, inline).
- Added utility functions for JSON detection and formatting in jsonUtils.ts.
- Introduced LogBlock utility functions for styling CLI output lines.
- Developed a new Collapsible component for better UI interactions.
- Created IssueHubPage for managing issues, queue, and discovery with tab navigation.
This commit is contained in:
catlog22
2026-01-31 23:12:39 +08:00
parent 2f10305945
commit a2206df50f
43 changed files with 5843 additions and 466 deletions

View File

@@ -41,5 +41,42 @@
"sessions": "会话",
"detail": "详情",
"settings": "设置"
},
"cliMonitor": {
"title": "CLI 流式监控",
"live": "实时",
"executions": "个执行",
"active": "活跃",
"errors": "错误",
"lines": "行",
"refresh": "刷新",
"refreshing": "刷新中...",
"searchPlaceholder": "搜索日志...",
"clear": "清除",
"filterAll": "全部",
"filterErrors": "错误",
"filterContent": "内容",
"filterSystem": "系统",
"viewPreview": "预览",
"viewJson": "JSON",
"viewRaw": "原始",
"settings": "设置",
"noExecutions": "无活跃的 CLI 执行",
"noExecutionsHint": "启动 CLI 命令以查看流式输出",
"noMessages": "等待消息...",
"noMatch": "未找到匹配的消息",
"statusBar": "{total} 个执行 | {active} 个活跃 | {errors} 个错误 | {lines} 行",
"copy": "复制",
"copied": "已复制!",
"rawJson": "原始 JSON",
"expand": "展开",
"collapse": "折叠",
"retry": "重试",
"dismiss": "忽略",
"thinking": "思考中...",
"completed": "已完成",
"tokens": "令牌数",
"duration": "耗时",
"model": "模型"
}
}