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

@@ -1,6 +1,6 @@
{
"title": "CLI 流式监控",
"searchPlaceholder": "搜索输出...",
"searchPlaceholder": "搜索日志...",
"noExecutions": "没有正在执行的 CLI 任务",
"noExecutionsHint": "启动 CLI 命令以查看实时输出",
"selectExecution": "选择一个任务以查看输出",
@@ -14,5 +14,36 @@
"autoScroll": "自动滚动",
"scrollToBottom": "滚动到底部",
"close": "关闭",
"refresh": "刷新"
"refresh": "刷新",
"refreshing": "刷新中...",
"live": "实时",
"executions": "{count} 个执行",
"active": "{count} 个活跃",
"filter": {
"all": "全部",
"errors": "错误",
"content": "内容",
"system": "系统"
},
"view": {
"preview": "预览",
"json": "JSON",
"raw": "原始"
},
"viewMode": "视图模式",
"settings": "设置",
"noMessages": "等待消息...",
"noMatch": "没有匹配的消息",
"statusBar": "{total} 个执行 | {active} 个活跃 | {error} 个错误 | {lines} 行",
"copy": "复制",
"copied": "已复制",
"rawJson": "原始 JSON",
"retry": "重试",
"dismiss": "关闭",
"thinking": "思考中...",
"streaming": "流式输出中...",
"tokens": "令牌: {count}",
"duration": "时长: {value}",
"model": "模型: {name}",
"user": "用户"
}

View File

@@ -89,6 +89,14 @@
"title": "发现",
"pageTitle": "问题发现",
"description": "查看和管理问题发现会话",
"totalSessions": "总会话数",
"completedSessions": "已完成",
"runningSessions": "运行中",
"totalFindings": "发现",
"sessionList": "会话列表",
"noSessions": "未发现会话",
"noSessionsDescription": "启动新的问题发现会话以开始",
"findingsDetail": "发现详情",
"stats": {
"totalSessions": "总会话数",
"completed": "已完成",
@@ -135,5 +143,14 @@
"export": "导出发现",
"refresh": "刷新"
}
},
"hub": {
"title": "问题中心",
"description": "统一管理问题、队列和发现",
"tabs": {
"issues": "问题列表",
"queue": "执行队列",
"discovery": "问题发现"
}
}
}

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": "模型"
}
}