cc-viewer 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -23
- package/cli.js +142 -16
- package/i18n.js +85 -0
- package/interceptor.js +3 -1
- package/lib/assets/index-BX8W4MxH.js +551 -0
- package/lib/index.html +1 -1
- package/lib/server.js +191 -42
- package/locales/ar.json +62 -0
- package/locales/da.json +62 -0
- package/locales/de.json +62 -0
- package/locales/en.json +62 -0
- package/locales/es.json +62 -0
- package/locales/fr.json +62 -0
- package/locales/it.json +62 -0
- package/locales/ja.json +62 -0
- package/locales/ko.json +62 -0
- package/locales/no.json +62 -0
- package/locales/pl.json +62 -0
- package/locales/pt-BR.json +62 -0
- package/locales/ru.json +62 -0
- package/locales/th.json +62 -0
- package/locales/tr.json +62 -0
- package/locales/uk.json +62 -0
- package/locales/zh-TW.json +62 -0
- package/locales/zh.json +62 -0
- package/package.json +4 -2
- package/lib/assets/index-W-UhJiNi.js +0 -401
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli.inject.success": "✅ CC Viewer 注入成功",
|
|
3
|
+
"cli.inject.exists": "✅ CC Viewer 已注入,無需重複操作",
|
|
4
|
+
"cli.inject.fail": "❌ 注入失敗: {error}",
|
|
5
|
+
"cli.inject.notFound": "❌ 找不到 Claude Code cli.js: {path}",
|
|
6
|
+
"cli.inject.notFoundHint": " 請確認 @anthropic-ai/claude-code 已安裝",
|
|
7
|
+
"cli.hook.installed": "✅ 自動重注入 hook 已寫入 {path}",
|
|
8
|
+
"cli.hook.exists": "✅ 自動重注入 hook 已存在於 {path}",
|
|
9
|
+
"cli.hook.fail": "⚠️ shell hook 寫入失敗: {error}",
|
|
10
|
+
"cli.usage.hint": "\n直接執行 claude 即可,Claude Code 更新後會自動重新注入",
|
|
11
|
+
"cli.usage.uninstallHint": "如需卸載,請執行: ccv --uninstall",
|
|
12
|
+
"cli.uninstall.cliCleaned": "✅ cli.js 注入已清理",
|
|
13
|
+
"cli.uninstall.cliNotFound": "⚠️ 未找到 Claude Code cli.js,跳過",
|
|
14
|
+
"cli.uninstall.cliFail": "❌ cli.js 清理失敗",
|
|
15
|
+
"cli.uninstall.hookRemoved": "✅ shell hook 已從 {path} 移除",
|
|
16
|
+
"cli.uninstall.hookClean": "✅ {path} 中無需清理",
|
|
17
|
+
"cli.uninstall.hookFail": "❌ shell hook 清理失敗: {error}",
|
|
18
|
+
"cli.uninstall.done": "\n🗑️ CC Viewer 已完全卸載",
|
|
19
|
+
|
|
20
|
+
"server.started": "\n🔍 Claude 請求監控服務已啟動: http://{host}:{port}\n",
|
|
21
|
+
"server.reuse": "\n🔍 CC Viewer 已在運行: http://{host}:{port}\n",
|
|
22
|
+
"server.portsBusy": "⚠️ 端口 {start}-{end} 均被佔用,請求監控服務未啟動",
|
|
23
|
+
|
|
24
|
+
"ui.requestList": "請求列表",
|
|
25
|
+
"ui.totalRequests": "總請求數: {count}",
|
|
26
|
+
"ui.waitingRequests": "等待請求...",
|
|
27
|
+
"ui.importLocalLogs": "匯入本地日誌",
|
|
28
|
+
"ui.saveLog": "當前日誌另存為",
|
|
29
|
+
"ui.exportPrompts": "匯出用戶 Prompt",
|
|
30
|
+
"ui.tokenStats": "Token 消耗統計",
|
|
31
|
+
"ui.liveMonitoring": "即時監控中",
|
|
32
|
+
"ui.historyLog": "歷史日誌: {file}",
|
|
33
|
+
"ui.chatMode": "對話模式",
|
|
34
|
+
"ui.rawMode": "回到原文模式",
|
|
35
|
+
"ui.cacheExpired": "已失效",
|
|
36
|
+
"ui.cacheCountdown": "MainAgent 快取{type}失效倒數:",
|
|
37
|
+
"ui.minuteSecond": "{m}分{s}秒",
|
|
38
|
+
"ui.second": "{s}秒",
|
|
39
|
+
"ui.hitRate": "命中率",
|
|
40
|
+
"ui.userPrompt": "用戶 Prompt",
|
|
41
|
+
"ui.noPrompt": "暫無用戶 Prompt",
|
|
42
|
+
"ui.unknownTime": "未知時間",
|
|
43
|
+
"ui.userSelection": "👤 用戶選擇",
|
|
44
|
+
"ui.noAnswer": "無回答",
|
|
45
|
+
"ui.systemContext": "系統上下文_{index}",
|
|
46
|
+
"ui.logCount": "{count} 個日誌",
|
|
47
|
+
"ui.noLogs": "暫無日誌檔案",
|
|
48
|
+
|
|
49
|
+
"ui.toolReturn": "工具返回",
|
|
50
|
+
"ui.toolReturnNamed": "{name} 返回",
|
|
51
|
+
"ui.lastResponse": "Last Response",
|
|
52
|
+
|
|
53
|
+
"ui.copySuccess": "複製成功",
|
|
54
|
+
"ui.noHeaders": "無 Headers",
|
|
55
|
+
"ui.noBody": "無 Body",
|
|
56
|
+
"ui.streamingResponse": "⚡ 串流回應 — 此請求使用了 SSE 串流傳輸,回應內容無法完整擷取。",
|
|
57
|
+
"ui.responseNotCaptured": "回應資料未擷取",
|
|
58
|
+
|
|
59
|
+
"ui.expand": "▶ 展開",
|
|
60
|
+
"ui.collapse": "▼ 收起",
|
|
61
|
+
"ui.noChat": "暫無 MainAgent 對話資料"
|
|
62
|
+
}
|
package/locales/zh.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cli.inject.success": "✅ CC Viewer 注入成功",
|
|
3
|
+
"cli.inject.exists": "✅ CC Viewer 已注入,无需重复操作",
|
|
4
|
+
"cli.inject.fail": "❌ 注入失败: {error}",
|
|
5
|
+
"cli.inject.notFound": "❌ 找不到 Claude Code cli.js: {path}",
|
|
6
|
+
"cli.inject.notFoundHint": " 请确认 @anthropic-ai/claude-code 已安装",
|
|
7
|
+
"cli.hook.installed": "✅ 自动重注入 hook 已写入 {path}",
|
|
8
|
+
"cli.hook.exists": "✅ 自动重注入 hook 已存在于 {path}",
|
|
9
|
+
"cli.hook.fail": "⚠️ shell hook 写入失败: {error}",
|
|
10
|
+
"cli.usage.hint": "\n直接运行 claude 即可,Claude Code 更新后会自动重新注入",
|
|
11
|
+
"cli.usage.uninstallHint": "如需卸载,请运行: ccv --uninstall",
|
|
12
|
+
"cli.uninstall.cliCleaned": "✅ cli.js 注入已清理",
|
|
13
|
+
"cli.uninstall.cliNotFound": "⚠️ 未找到 Claude Code cli.js,跳过",
|
|
14
|
+
"cli.uninstall.cliFail": "❌ cli.js 清理失败",
|
|
15
|
+
"cli.uninstall.hookRemoved": "✅ shell hook 已从 {path} 移除",
|
|
16
|
+
"cli.uninstall.hookClean": "✅ {path} 中无需清理",
|
|
17
|
+
"cli.uninstall.hookFail": "❌ shell hook 清理失败: {error}",
|
|
18
|
+
"cli.uninstall.done": "\n🗑️ CC Viewer 已完全卸载",
|
|
19
|
+
|
|
20
|
+
"server.started": "\n🔍 Claude 请求监控服务已启动: http://{host}:{port}\n",
|
|
21
|
+
"server.reuse": "\n🔍 CC Viewer 已在运行: http://{host}:{port}\n",
|
|
22
|
+
"server.portsBusy": "⚠️ 端口 {start}-{end} 均被占用,请求监控服务未启动",
|
|
23
|
+
|
|
24
|
+
"ui.requestList": "请求列表",
|
|
25
|
+
"ui.totalRequests": "总请求数: {count}",
|
|
26
|
+
"ui.waitingRequests": "等待请求...",
|
|
27
|
+
"ui.importLocalLogs": "导入本地日志",
|
|
28
|
+
"ui.saveLog": "当前日志另存为",
|
|
29
|
+
"ui.exportPrompts": "导出用户 Prompt",
|
|
30
|
+
"ui.tokenStats": "Token 消耗统计",
|
|
31
|
+
"ui.liveMonitoring": "实时监控中",
|
|
32
|
+
"ui.historyLog": "历史日志: {file}",
|
|
33
|
+
"ui.chatMode": "对话模式",
|
|
34
|
+
"ui.rawMode": "回到原文模式",
|
|
35
|
+
"ui.cacheExpired": "已失效",
|
|
36
|
+
"ui.cacheCountdown": "MainAgent 缓存{type}失效倒计时:",
|
|
37
|
+
"ui.minuteSecond": "{m}分{s}秒",
|
|
38
|
+
"ui.second": "{s}秒",
|
|
39
|
+
"ui.hitRate": "命中率",
|
|
40
|
+
"ui.userPrompt": "用户 Prompt",
|
|
41
|
+
"ui.noPrompt": "暂无用户 Prompt",
|
|
42
|
+
"ui.unknownTime": "未知时间",
|
|
43
|
+
"ui.userSelection": "👤 用户选择",
|
|
44
|
+
"ui.noAnswer": "无回答",
|
|
45
|
+
"ui.systemContext": "系统上下文_{index}",
|
|
46
|
+
"ui.logCount": "{count} 个日志",
|
|
47
|
+
"ui.noLogs": "暂无日志文件",
|
|
48
|
+
|
|
49
|
+
"ui.toolReturn": "工具返回",
|
|
50
|
+
"ui.toolReturnNamed": "{name} 返回",
|
|
51
|
+
"ui.lastResponse": "Last Response",
|
|
52
|
+
|
|
53
|
+
"ui.copySuccess": "复制成功",
|
|
54
|
+
"ui.noHeaders": "无 Headers",
|
|
55
|
+
"ui.noBody": "无 Body",
|
|
56
|
+
"ui.streamingResponse": "⚡ 流式响应 — 此请求使用了 SSE 流式传输,响应内容无法完整捕获。",
|
|
57
|
+
"ui.responseNotCaptured": "响应数据未捕获",
|
|
58
|
+
|
|
59
|
+
"ui.expand": "▶ 展开",
|
|
60
|
+
"ui.collapse": "▼ 收起",
|
|
61
|
+
"ui.noChat": "暂无 MainAgent 对话数据"
|
|
62
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Claude Code Logger visualization management tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
"files": [
|
|
44
44
|
"lib/",
|
|
45
45
|
"cli.js",
|
|
46
|
-
"interceptor.js"
|
|
46
|
+
"interceptor.js",
|
|
47
|
+
"i18n.js",
|
|
48
|
+
"locales/"
|
|
47
49
|
],
|
|
48
50
|
"devDependencies": {
|
|
49
51
|
"react": "^18.3.1",
|