cc-viewer 0.1.6 → 0.2.1

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.
@@ -0,0 +1,65 @@
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.loadLocalJsonl": "直接选择加载本地jsonl文件",
29
+ "ui.fileTooLarge": "文件大小不能超过 200MB",
30
+ "ui.saveLog": "下载当前日志",
31
+ "ui.exportPrompts": "导出用户 Prompt",
32
+ "ui.exportPromptsTxt": "导出到本地 .txt",
33
+ "ui.tokenStats": "Token 消耗统计",
34
+ "ui.liveMonitoring": "实时监控中",
35
+ "ui.historyLog": "历史日志: {file}",
36
+ "ui.chatMode": "对话模式",
37
+ "ui.rawMode": "回到原文模式",
38
+ "ui.cacheExpired": "已失效",
39
+ "ui.cacheCountdown": "MainAgent 缓存{type}失效倒计时:",
40
+ "ui.minuteSecond": "{m}分{s}秒",
41
+ "ui.second": "{s}秒",
42
+ "ui.hitRate": "命中率",
43
+ "ui.userPrompt": "用户 Prompt",
44
+ "ui.noPrompt": "暂无用户 Prompt",
45
+ "ui.unknownTime": "未知时间",
46
+ "ui.userSelection": "👤 用户选择",
47
+ "ui.noAnswer": "无回答",
48
+ "ui.systemContext": "系统上下文_{index}",
49
+ "ui.logCount": "{count} 个日志",
50
+ "ui.noLogs": "暂无日志文件",
51
+
52
+ "ui.toolReturn": "工具返回",
53
+ "ui.toolReturnNamed": "{name} 返回",
54
+ "ui.lastResponse": "Last Response",
55
+
56
+ "ui.copySuccess": "复制成功",
57
+ "ui.noHeaders": "无 Headers",
58
+ "ui.noBody": "无 Body",
59
+ "ui.streamingResponse": "⚡ 流式响应 — 此请求使用了 SSE 流式传输,响应内容无法完整捕获。",
60
+ "ui.responseNotCaptured": "响应数据未捕获",
61
+
62
+ "ui.expand": "▶ 展开",
63
+ "ui.collapse": "▼ 收起",
64
+ "ui.noChat": "暂无 MainAgent 对话数据"
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-viewer",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
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",