cc-viewer 1.5.12 → 1.5.13

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 CHANGED
@@ -1,6 +1,7 @@
1
1
  # CC-Viewer
2
2
 
3
3
  A Claude Code request monitoring system that captures and visualizes all API requests and responses from Claude Code in real time (raw text, unredacted). Helps developers monitor their context for review and troubleshooting during Vibe Coding sessions.
4
+ The latest version of CC-Viewer also provides a server-deployed web programming solution and mobile programming tools. Feel free to use them in your own projects — more plugin features and cloud deployment support are coming in the future.
4
5
 
5
6
  English | [简体中文](./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
7
 
@@ -9,19 +10,40 @@ English | [简体中文](./docs/README.zh.md) | [繁體中文](./docs/README.zh-
9
10
  ### Installation
10
11
 
11
12
  ```bash
12
- npm install -g cc-viewer
13
+ npm install -g cc-viewer --registry=https://registry.npmjs.org
13
14
  ```
14
15
 
15
- ### Running and Auto-Configuration
16
+ ### Monitor Mode (launching claude or claude --dangerously-skip-permissions in this mode automatically starts a logging process to record request payloads)
16
17
 
17
18
  ```bash
18
19
  ccv
19
20
  ```
20
21
 
22
+ ### Programming Mode
23
+
24
+ == claude
25
+
26
+ ```bash
27
+ ccv -c
28
+ ```
29
+
30
+ == claude --dangerously-skip-permissions
31
+
32
+ ```bash
33
+ ccv -d
34
+ ```
35
+
36
+ After launching programming mode, a web page will open automatically.
37
+
38
+ You can use Claude directly from the web page while viewing the full request payloads and code changes.
39
+
40
+ Even better — you can even code from your mobile device!
41
+
21
42
  This command automatically detects how Claude Code is installed locally (NPM or Native Install) and adapts accordingly.
22
43
 
23
44
  - **NPM Install**: Automatically injects an interceptor script into Claude Code's `cli.js`.
24
45
  - **Native Install**: Automatically detects the `claude` binary, configures a local transparent proxy, and sets up a Zsh Shell Hook to forward traffic automatically.
46
+ - NPM-installed Claude Code is the recommended approach for this project.
25
47
 
26
48
  ### Configuration Override
27
49
 
@@ -56,15 +78,16 @@ ccv --uninstall
56
78
  ### Check Version
57
79
 
58
80
  ```bash
59
- ccv --version
81
+ ccv -v
60
82
  ```
61
83
 
62
84
  ## Features
63
85
 
64
86
  ### Request Monitoring (Raw Mode)
65
87
  <img width="1500" height="720" alt="image" src="https://github.com/user-attachments/assets/519dd496-68bd-4e76-84d7-2a3d14ae3f61" />
88
+
66
89
  - Captures all API requests made by Claude Code in real time, ensuring raw content rather than truncated logs (this is important!!!)
67
- - Automatically identifies and labels Main Agent and Sub Agent requests (subtypes: Bash, Task, Plan, General)
90
+ - Automatically identifies and labels Main Agent and Sub Agent requests (subtypes: Plan, Search, Bash)
68
91
  - MainAgent requests support Body Diff JSON, showing a collapsed diff of changes from the previous MainAgent request (only changed/added fields)
69
92
  - Inline token usage stats per request (input/output tokens, cache creation/read, hit rate)
70
93
  - Compatible with Claude Code Router (CCR) and other proxy scenarios — falls back to API path pattern matching
@@ -74,15 +97,33 @@ ccv --version
74
97
  Click the "Conversation Mode" button in the top-right corner to parse the Main Agent's full conversation history into a chat interface:
75
98
  <img width="1500" height="730" alt="image" src="https://github.com/user-attachments/assets/c973f142-748b-403f-b2b7-31a5d81e33e6" />
76
99
 
77
-
78
100
  - Agent Team display is not yet supported
79
101
  - User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
80
102
  - `thinking` blocks are collapsed by default, rendered in Markdown, and can be expanded to view the reasoning process; one-click translation is supported (feature is still unstable)
81
103
  - User selection messages (AskUserQuestion) are displayed in a Q&A format
82
- - Bidirectional mode sync: switching to Conversation Mode automatically navigates to the conversation corresponding to the selected request; switching back to Raw Mode automatically navigates to the selected request
83
- - Settings panel: toggle the default collapsed state of tool results and thinking blocks
84
- - Mobile chat browse: in mobile CLI mode, tap the "Chat Browse" button in the top bar to slide in a read-only chat view overlay, allowing you to browse the full conversation history on your phone
104
+ - Bidirectional mode sync: switching to Conversation Mode automatically scrolls to the conversation corresponding to the selected request; switching back to Raw Mode automatically scrolls to the selected request
105
+ - Settings panel: toggle the default collapsed state for tool results and thinking blocks
106
+ - Mobile conversation browsing: in mobile CLI mode, tap the "Conversation Browse" button in the top bar to slide out a read-only conversation view for browsing the full conversation history on your phone
107
+
108
+ ### Programming Mode
109
+
110
+ After launching with ccv -c or ccv -d, you will see:
111
+ <img width="1500" height="725" alt="image" src="https://github.com/user-attachments/assets/a64a381e-5a68-430c-b594-6d57dc01f4d3" />
112
+
113
+ You can view code diffs directly after editing:
114
+ <img width="1500" height="728" alt="image" src="https://github.com/user-attachments/assets/2a4acdaa-fc5f-4dc0-9e5f-f3273f0849b2" />
115
+
116
+ While you can open files and edit code manually, manual coding is not recommended — that's old-school coding!
117
+
118
+ ### Mobile Programming
119
+
120
+ You can even scan a QR code to code on your mobile device:
121
+ <img width="3018" height="1460" alt="image" src="https://github.com/user-attachments/assets/8debf48e-daec-420c-b37a-609f8b81cd20" />
122
+
123
+ On mobile you can see:
124
+ <img width="1700" height="790" alt="image" src="https://github.com/user-attachments/assets/da3e519f-ff66-4cd2-81d1-f4e131215f6c" />
85
125
 
126
+ Fulfills everything you can imagine about mobile programming.
86
127
 
87
128
  ### Statistics Tool
88
129
 
@@ -10,6 +10,7 @@ const HOOK_TYPES = {
10
10
  localUrl: 'waterfall',
11
11
  serverStarted: 'parallel',
12
12
  serverStopping: 'parallel',
13
+ onNewEntry: 'parallel',
13
14
  };
14
15
 
15
16
  let _plugins = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-viewer",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "Claude Code Logger visualization management tool",
5
5
  "license": "MIT",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -208,6 +208,7 @@ function watchLogFile(logFile) {
208
208
  try {
209
209
  const parsed = JSON.parse(entry);
210
210
  sendToClients(parsed);
211
+ runParallelHook('onNewEntry', parsed).catch(() => {});
211
212
  } catch (err) {
212
213
  // Skip invalid entries
213
214
  }