cc-viewer 1.0.3 → 1.0.5
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 +44 -46
- package/cli.js +1 -1
- package/dist/assets/{index-Cc1O-iKV.js → index-DZBQn9fO.js} +125 -125
- package/dist/index.html +1 -1
- package/locales/ar.json +2 -3
- package/locales/da.json +2 -3
- package/locales/de.json +2 -3
- package/locales/en.json +2 -3
- package/locales/es.json +2 -3
- package/locales/fr.json +2 -3
- package/locales/it.json +2 -3
- package/locales/ja.json +2 -3
- package/locales/ko.json +2 -3
- package/locales/no.json +2 -3
- package/locales/pl.json +2 -3
- package/locales/pt-BR.json +2 -3
- package/locales/ru.json +2 -3
- package/locales/th.json +2 -3
- package/locales/tr.json +2 -3
- package/locales/uk.json +2 -3
- package/locales/zh-TW.json +2 -3
- package/locales/zh.json +2 -3
- package/package.json +1 -1
- package/server.js +26 -136
package/README.md
CHANGED
|
@@ -1,83 +1,81 @@
|
|
|
1
1
|
# CC-Viewer
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A request monitoring system for Claude Code that captures and visualizes all API requests and responses in real time. Helps developers monitor their Context for reviewing and debugging during Vibe Coding.
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
[简体中文](./docs/README.zh.md) | [繁體中文](./docs/README.zh-TW.md) | [한국어](./docs/README.ko.md) | [日本語](./docs/README.ja.md) | [Deutsch](./docs/README.de.md) | [Español](./docs/README.es.md) | [Français](./docs/README.fr.md) | [Italiano](./docs/README.it.md) | [Dansk](./docs/README.da.md) | [Polski](./docs/README.pl.md) | [Русский](./docs/README.ru.md) | [العربية](./docs/README.ar.md) | [Norsk](./docs/README.no.md) | [Português (Brasil)](./docs/README.pt-BR.md) | [ไทย](./docs/README.th.md) | [Türkçe](./docs/README.tr.md) | [Українська](./docs/README.uk.md)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Usage
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install -g cc-viewer
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
After installation, run:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
ccv
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Then use Claude Code as usual and open `http://localhost:7008` in your browser to view the monitoring interface.
|
|
20
20
|
|
|
21
|
-
Claude Code
|
|
21
|
+
After Claude Code updates, no manual action is needed — the next time you run `claude`, it will automatically detect and reconfigure.
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### Uninstall
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
ccv --uninstall
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
## Features
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
### Request Monitoring (Raw Mode)
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
- Real-time capture of all API requests from Claude Code, including streaming responses
|
|
34
|
+
- Left panel shows request method, URL, duration, and status code
|
|
35
|
+
- Automatically identifies and labels Main Agent and Sub Agent requests
|
|
36
|
+
- Right panel supports Request / Response tab switching
|
|
37
|
+
- Request Body expands `messages`, `system`, `tools` one level by default
|
|
38
|
+
- Response Body fully expanded by default
|
|
39
|
+
- Toggle between JSON view and plain text view
|
|
40
|
+
- One-click JSON content copy
|
|
41
|
+
- MainAgent requests support Body Diff JSON, showing a collapsible diff with the previous MainAgent request (only changed/added fields)
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
- 左侧请求列表展示请求方法、URL、耗时、状态码
|
|
37
|
-
- 自动识别并标记 Main Agent 和 Sub Agent 请求
|
|
38
|
-
- 右侧详情面板支持 Request / Response 两个 Tab 切换查看
|
|
39
|
-
- Request Body 中 `messages`、`system`、`tools` 默认展开一层子属性
|
|
40
|
-
- Response Body 默认全部展开
|
|
41
|
-
- 支持 JSON 视图与纯文本视图切换
|
|
42
|
-
- 支持一键复制 JSON 内容
|
|
43
|
-
- MainAgent 请求支持 Body Diff JSON,折叠展示与上一次 MainAgent 请求的差异(仅显示变更/新增字段)
|
|
43
|
+
### Chat Mode
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Click the "Chat mode" button in the top right to parse Main Agent's full conversation history into a chat interface:
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
- User messages right-aligned (blue bubbles), Main Agent replies left-aligned (dark bubbles) with Markdown rendering
|
|
48
|
+
- `/compact` messages auto-detected and displayed collapsed, click to expand full summary
|
|
49
|
+
- Tool call results displayed inline within the corresponding Assistant message
|
|
50
|
+
- `thinking` blocks collapsed by default, click to expand
|
|
51
|
+
- `tool_use` shown as compact tool call cards (Bash, Read, Edit, Write, Glob, Grep, Task each have dedicated displays)
|
|
52
|
+
- User selection messages (AskUserQuestion) shown in Q&A format
|
|
53
|
+
- System tags (`<system-reminder>`, `<project-reminder>`, etc.) auto-collapsed
|
|
54
|
+
- System text auto-filtered, showing only real user input
|
|
55
|
+
- Multi-session segmented display (auto-segmented after `/compact`, `/clear`, etc.)
|
|
56
|
+
- Each message shows a timestamp accurate to the second
|
|
48
57
|
|
|
49
|
-
|
|
50
|
-
- `/compact` 消息自动识别并折叠展示,点击展开查看完整摘要
|
|
51
|
-
- 工具调用结果内联显示在对应的 Assistant 消息内部
|
|
52
|
-
- `thinking` 块默认折叠,点击展开查看思考过程
|
|
53
|
-
- `tool_use` 显示为紧凑的工具调用卡片(Bash、Read、Edit、Write、Glob、Grep、Task 等均有专属展示)
|
|
54
|
-
- 用户选择型消息(AskUserQuestion)以问答形式展示
|
|
55
|
-
- 系统标签(`<system-reminder>`、`<project-reminder>` 等)自动折叠
|
|
56
|
-
- 自动过滤系统文本,只展示用户的真实输入
|
|
57
|
-
- 支持多 session 分段展示(`/compact`、`/clear` 等操作后自动分段)
|
|
58
|
-
- 每条消息显示精确到秒的时间戳
|
|
58
|
+
### Token Stats
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
Hover panel in the header area:
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
- Token counts grouped by model (input/output)
|
|
63
|
+
- Cache creation/read counts and cache hit rate
|
|
64
|
+
- Main Agent cache expiration countdown
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
- 显示 cache creation/read 数量及缓存命中率
|
|
66
|
-
- Main Agent 缓存失效倒计时
|
|
66
|
+
### Log Management
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Via the CC-Viewer dropdown menu in the top left:
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
- Import local logs: browse historical log files, grouped by project, opens in new window
|
|
71
|
+
- Load local JSONL file: directly select and load a local `.jsonl` file (up to 200MB)
|
|
72
|
+
- Download current log: download the current monitoring JSONL log file
|
|
73
|
+
- Export user prompts: extract and display all user inputs, with system-reminder collapsible view
|
|
74
|
+
- Export prompts to TXT: export user prompts to a local `.txt` file
|
|
71
75
|
|
|
72
|
-
-
|
|
73
|
-
- 加载本地 JSONL 文件:直接选择本地 `.jsonl` 文件加载查看(支持最大 200MB)
|
|
74
|
-
- 当前日志另存为:下载当前监控的 JSONL 日志文件
|
|
75
|
-
- 导出用户 Prompt:提取并展示所有用户输入,支持 system-reminder 折叠查看
|
|
76
|
-
- 导出 Prompt 为 TXT:将用户 Prompt 导出为本地 `.txt` 文件
|
|
76
|
+
### Multi-language Support
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
CC-Viewer 支持 18 种语言,根据系统语言环境自动切换:
|
|
78
|
+
CC-Viewer supports 18 languages, automatically switching based on system locale:
|
|
81
79
|
|
|
82
80
|
简体中文 | English | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська
|
|
83
81
|
|
package/cli.js
CHANGED
|
@@ -149,7 +149,7 @@ try {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
if (shellResult.status === 'installed') {
|
|
152
|
-
console.log(
|
|
152
|
+
console.log('All READY!');
|
|
153
153
|
} else if (shellResult.status !== 'exists') {
|
|
154
154
|
console.log(t('cli.hook.fail', { error: shellResult.error }));
|
|
155
155
|
}
|