cc-viewer 1.6.261 → 1.6.263

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.
Files changed (83) hide show
  1. package/README.md +80 -81
  2. package/cli.js +1 -0
  3. package/dist/assets/{App-Co-5BI9q.js → App-CX6bF6ke.js} +1 -1
  4. package/dist/assets/{MdxEditorPanel-DFNyQW6b.js → MdxEditorPanel--reKHew0.js} +1 -1
  5. package/dist/assets/{Mobile-DwYIskc6.js → Mobile-YwIGAQWc.js} +1 -1
  6. package/dist/assets/{_baseUniq-DGKwdzTD.js → _baseUniq-DiLy7vi3.js} +1 -1
  7. package/dist/assets/{arc-nTLBi2ib.js → arc-CAB2oIHx.js} +1 -1
  8. package/dist/assets/{architectureDiagram-Q4EWVU46-pWWvthzV.js → architectureDiagram-Q4EWVU46-Cijl_JpW.js} +1 -1
  9. package/dist/assets/{blockDiagram-DXYQGD6D-CpU6v2gv.js → blockDiagram-DXYQGD6D-Bk4yWCPQ.js} +1 -1
  10. package/dist/assets/{c4Diagram-AHTNJAMY-zdTsx1jJ.js → c4Diagram-AHTNJAMY-Vz4JKuzi.js} +1 -1
  11. package/dist/assets/{channel-Cq1UANGu.js → channel-BnYKz_zI.js} +1 -1
  12. package/dist/assets/{chunk-4BX2VUAB-D6w9m5kB.js → chunk-4BX2VUAB-DM3ZjqKX.js} +1 -1
  13. package/dist/assets/{chunk-4TB4RGXK-DjZZc11c.js → chunk-4TB4RGXK-BTiJOoNa.js} +1 -1
  14. package/dist/assets/{chunk-55IACEB6-Cw2U09Tu.js → chunk-55IACEB6-B4fMQcTE.js} +1 -1
  15. package/dist/assets/{chunk-EDXVE4YY-Cv-G70H7.js → chunk-EDXVE4YY-B_WylnyS.js} +1 -1
  16. package/dist/assets/{chunk-FMBD7UC4-Dykxux6b.js → chunk-FMBD7UC4-Cx2lqZi9.js} +1 -1
  17. package/dist/assets/{chunk-OYMX7WX6-Cn9oAaEC.js → chunk-OYMX7WX6-CPZm7o6V.js} +1 -1
  18. package/dist/assets/{chunk-QZHKN3VN-CA1IccbG.js → chunk-QZHKN3VN-DuYVzv7E.js} +1 -1
  19. package/dist/assets/{chunk-YZCP3GAM-CbReBNg5.js → chunk-YZCP3GAM-Bk3OysLK.js} +1 -1
  20. package/dist/assets/classDiagram-6PBFFD2Q-CeAAXpgl.js +1 -0
  21. package/dist/assets/classDiagram-v2-HSJHXN6E-CeAAXpgl.js +1 -0
  22. package/dist/assets/clone-BcGHaFBY.js +1 -0
  23. package/dist/assets/{cose-bilkent-S5V4N54A-TwxpCIwM.js → cose-bilkent-S5V4N54A-CQuaqKHt.js} +1 -1
  24. package/dist/assets/{dagre-KV5264BT-CxuHKd9a.js → dagre-KV5264BT-BFdoRcuo.js} +1 -1
  25. package/dist/assets/{diagram-5BDNPKRD-BzR9Peib.js → diagram-5BDNPKRD-ByFdSFIu.js} +1 -1
  26. package/dist/assets/{diagram-G4DWMVQ6-PWFXrQqF.js → diagram-G4DWMVQ6-C1TcKWp0.js} +1 -1
  27. package/dist/assets/{diagram-MMDJMWI5-CqnrwtNB.js → diagram-MMDJMWI5-B5N1Sn5F.js} +1 -1
  28. package/dist/assets/{diagram-TYMM5635-Do2MhBCf.js → diagram-TYMM5635-B-payI0e.js} +1 -1
  29. package/dist/assets/{erDiagram-SMLLAGMA-CklZI6kO.js → erDiagram-SMLLAGMA-zziefklH.js} +1 -1
  30. package/dist/assets/{flowDiagram-DWJPFMVM-C_SKJN0d.js → flowDiagram-DWJPFMVM-BOSomu1b.js} +1 -1
  31. package/dist/assets/{ganttDiagram-T4ZO3ILL-ChhhqFiR.js → ganttDiagram-T4ZO3ILL-DILUsv0T.js} +1 -1
  32. package/dist/assets/{gitGraphDiagram-UUTBAWPF-HarEJVSI.js → gitGraphDiagram-UUTBAWPF-BKp2DE69.js} +1 -1
  33. package/dist/assets/{graph-BTcI3kpi.js → graph-NObGxitU.js} +1 -1
  34. package/dist/assets/{index-B0NtFDg2.js → index-0aPBVZuP.js} +1 -1
  35. package/dist/assets/{index-B7-pqPyp.js → index-BI-0Lyyt.js} +1 -1
  36. package/dist/assets/{index-CQ579eP2.js → index-BbXZgnby.js} +1 -1
  37. package/dist/assets/{index-BG6Hzhck.js → index-Bq9Sic2n.js} +1 -1
  38. package/dist/assets/{index-NNx0667m.js → index-C88BDuL0.js} +1 -1
  39. package/dist/assets/index-DHUf_c1w.js +2 -0
  40. package/dist/assets/{index-CF0YP7s8.js → index-PsZiLKrC.js} +1 -1
  41. package/dist/assets/{index-Bzp41aRh.js → index-VqFARC4A.js} +1 -1
  42. package/dist/assets/{index-Dzkxj8m_.css → index-_4BCXKKF.css} +1 -1
  43. package/dist/assets/{infoDiagram-42DDH7IO-DOcCtSEj.js → infoDiagram-42DDH7IO-D409o-BL.js} +1 -1
  44. package/dist/assets/{ishikawaDiagram-UXIWVN3A-Crb_pmG4.js → ishikawaDiagram-UXIWVN3A-CMVPOGr3.js} +1 -1
  45. package/dist/assets/{journeyDiagram-VCZTEJTY-BUv2Exj_.js → journeyDiagram-VCZTEJTY-Bl_5WlaZ.js} +1 -1
  46. package/dist/assets/{jszip.min-BuZCDHia.js → jszip.min-C2654z9i.js} +1 -1
  47. package/dist/assets/{kanban-definition-6JOO6SKY-DwSHz9oV.js → kanban-definition-6JOO6SKY-BfCyUP29.js} +1 -1
  48. package/dist/assets/{layout-Dp3N3WRT.js → layout-CgAMa0xE.js} +1 -1
  49. package/dist/assets/{linear-JU5ltHCp.js → linear-J1N1npGr.js} +1 -1
  50. package/dist/assets/{mermaid.core-f1mZHh7u.js → mermaid.core-YnqOkuoS.js} +2 -2
  51. package/dist/assets/{min-CDzial6q.js → min-CowkZam8.js} +1 -1
  52. package/dist/assets/{mindmap-definition-QFDTVHPH-DnhPHplB.js → mindmap-definition-QFDTVHPH-D7yMfot2.js} +1 -1
  53. package/dist/assets/{pieDiagram-DEJITSTG-dMhPj5wG.js → pieDiagram-DEJITSTG-DKUHBCwB.js} +1 -1
  54. package/dist/assets/{quadrantDiagram-34T5L4WZ-GCi1_zHo.js → quadrantDiagram-34T5L4WZ-DhRqBNfT.js} +1 -1
  55. package/dist/assets/{requirementDiagram-MS252O5E-WeErs64x.js → requirementDiagram-MS252O5E-DVE3wKT7.js} +1 -1
  56. package/dist/assets/{sankeyDiagram-XADWPNL6-BKpP6-8Q.js → sankeyDiagram-XADWPNL6-Rn_9b5V_.js} +1 -1
  57. package/dist/assets/seqResourceLoaders-B9D4RGth.js +2 -0
  58. package/dist/assets/{seqResourceLoaders-B8CyM6Ul.css → seqResourceLoaders-DZvMjXCl.css} +2 -2
  59. package/dist/assets/{sequenceDiagram-FGHM5R23-CAC5BKbx.js → sequenceDiagram-FGHM5R23-CemLRaXC.js} +1 -1
  60. package/dist/assets/{stateDiagram-FHFEXIEX-Cxrg604Z.js → stateDiagram-FHFEXIEX-DNT1gAty.js} +1 -1
  61. package/dist/assets/{stateDiagram-v2-QKLJ7IA2-DaUpf340.js → stateDiagram-v2-QKLJ7IA2-DPlMhu-M.js} +1 -1
  62. package/dist/assets/{timeline-definition-GMOUNBTQ-DbvXGDTU.js → timeline-definition-GMOUNBTQ-B-F8vgZN.js} +1 -1
  63. package/dist/assets/{vendor-antd-jGWxgt_-.js → vendor-antd-Dq3DHFa-.js} +1 -1
  64. package/dist/assets/{vendor-codemirror-9gysGjWj.js → vendor-codemirror-DjMkT0sn.js} +1 -1
  65. package/dist/assets/{vendor-mdxeditor-BFiCaYAL.js → vendor-mdxeditor-CrZ9SWce.js} +2 -2
  66. package/dist/assets/{vendor-qrcode-DjZ-VpGR.js → vendor-qrcode-C_77dtHg.js} +1 -1
  67. package/dist/assets/{vendor-virtuoso-DB1J9xKG.js → vendor-virtuoso-aMZPf2fi.js} +1 -1
  68. package/dist/assets/{vennDiagram-DHZGUBPP-BoIw-nWl.js → vennDiagram-DHZGUBPP-K67JHnnN.js} +1 -1
  69. package/dist/assets/{wardley-RL74JXVD-4PjirsHP.js → wardley-RL74JXVD-CCis01LD.js} +1 -1
  70. package/dist/assets/{wardleyDiagram-NUSXRM2D-C8RzJmfU.js → wardleyDiagram-NUSXRM2D-BjqRIOpN.js} +1 -1
  71. package/dist/assets/{xychartDiagram-5P7HB3ND-Ct6fDXwq.js → xychartDiagram-5P7HB3ND-CaXETYTI.js} +1 -1
  72. package/dist/index.html +5 -5
  73. package/lib/ask-bridge.js +19 -1
  74. package/lib/sdk-manager.js +48 -5
  75. package/package.json +1 -1
  76. package/pty-manager.js +1 -1
  77. package/scratch-pty-manager.js +2 -2
  78. package/server.js +110 -11
  79. package/dist/assets/classDiagram-6PBFFD2Q-PgwmelQQ.js +0 -1
  80. package/dist/assets/classDiagram-v2-HSJHXN6E-PgwmelQQ.js +0 -1
  81. package/dist/assets/clone-Dnu1HdEX.js +0 -1
  82. package/dist/assets/index-C6MrFmhs.js +0 -2
  83. package/dist/assets/seqResourceLoaders-80G7f5Kr.js +0 -2
package/README.md CHANGED
@@ -3,14 +3,14 @@
3
3
 
4
4
  # CC-Viewer
5
5
 
6
- A Vibe Coding toolkit distilled from hands-on development experience, built on top of Claude Code:
6
+ Based on Claude Code, a Vibe Coding tool that distills and accumulates real development experience:
7
7
 
8
- 1. Push the capability ceiling run /ultraPlan and /ultraReview locally, so your project code never has to be fully exposed to Claude's cloud;
9
- 2. Multi-device adaptive code from mobile devices over your local network, the web build adapts to every scenario for embedding into browser extensions or OS split views, and a native installer is also provided;
10
- 3. Full audit trail full Claude Code payload interception and analysis, perfect for logging, debugging, learning, and reverse-engineering;
11
- 4. Knowledge sharing comes with accumulated study notes and hands-on experience (look for the "?" icons throughout the app);
12
- 5. Native experience preserved only augments Claude Code's capabilities without any substantive changes to its core, keeping the native experience intact;
13
- 6. Third-party model support works with deepseek-v4-*, GLM 5.1, Kimi K2.6, with built-in cc-switch capability for hot-swapping third-party tools at any time.
8
+ 1. Raise your capability ceiling: run /ultraPlan and /ultraReview locally, while avoiding fully exposing your project code to Claude's cloud;
9
+ 2. Multi-device compatibility: code on mobile devices (within your LAN), the web version adapts to all kinds of scenarios, easy to embed into browser extensions or OS split-screen, and native installers are provided;
10
+ 3. Complete log tracing: full Claude Code payload interception and analysis ideal for logging, troubleshooting, learning, and reverse engineering;
11
+ 4. Shared learning and experience: lots of learning material and development know-how are baked in (see the "?" icons throughout the system);
12
+ 5. Native experience preserved: only enhances Claude Code's capabilities without making any substantive changes to the core, keeping the native experience intact;
13
+ 6. Third-party model support: compatible with deepseek-v4-\*, GLM 5.1, Kimi K2.6, with cc-switch built in so you can hot-swap third-party tools at any time;
14
14
 
15
15
  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)
16
16
 
@@ -18,8 +18,8 @@ English | [简体中文](./docs/README.zh.md) | [繁體中文](./docs/README.zh-
18
18
 
19
19
  ### Prerequisites
20
20
 
21
- - Make sure Node.js 22.0.0+ is installed; [download & install](https://nodejs.org)
22
- - Make sure Claude Code is installed; [installation guide](https://github.com/anthropics/claude-code)
21
+ * Make sure nodejs 20.0.0+ is installed; [Download and install](https://nodejs.org)
22
+ * Make sure claude code is installed; [Installation guide](https://github.com/anthropics/claude-code)
23
23
 
24
24
  ### Install ccv
25
25
 
@@ -34,64 +34,65 @@ npm install -g cc-viewer --registry=https://registry.npmjs.org
34
34
  ```bash
35
35
  brew tap weiesky/cc-viewer
36
36
  brew install cc-viewer
37
- brew upgrade cc-viewer # for updates do NOT use npm install -g for brew installs
37
+ brew upgrade cc-viewer # use this to upgrade; do NOT use npm install -g to upgrade a brew-installed ccv
38
38
  ```
39
39
 
40
- ### Launch
40
+ ### How to start
41
41
 
42
- ccv is a drop-in replacement for claude — all arguments are passed through to claude while launching the Web Viewer.
42
+ ccv is a drop-in replacement for claude — all arguments are passed through to claude while the Web Viewer is launched alongside it.
43
43
 
44
44
  ```bash
45
45
  ccv # == claude (interactive mode)
46
46
  ```
47
47
 
48
- The author's most-used command is:
48
+ The command I use most often is:
49
+
49
50
  ```
50
51
  ccv -c --d # == claude --continue --dangerously-skip-permissions
51
- # ccv passes through all Claude Code launch arguments — combine them however you like
52
+ # ccv passes through every Claude Code launch argumentfeel free to combine them however you like
52
53
  ```
53
54
 
54
- After launching in programming mode, a web page will open automatically.
55
-
56
- CC-Viewer also ships as a native desktop app: [Download page](https://github.com/weiesky/cc-viewer/releases)
55
+ Once started in programming mode, the web page opens automatically.
57
56
 
57
+ cc-viewer also ships as a native desktop app: [download page](https://github.com/weiesky/cc-viewer/releases)
58
58
 
59
- ### Logger Mode
59
+ ### Logger mode
60
60
 
61
61
  If you still prefer the native claude tool or the VS Code extension, use this mode.
62
62
 
63
- In this mode, launching `claude` will automatically start a logging process that records request logs to ~/.claude/cc-viewer/*yourproject*/date.jsonl
63
+ In this mode, launching `claude` will automatically start a logging process that records request logs to \~/.claude/cc-viewer/*yourproject*/date.jsonl
64
64
 
65
65
  Enable logger mode:
66
+
66
67
  ```bash
67
68
  ccv -logger
68
69
  ```
69
70
 
70
- When the console cannot print the specific port, the default first port is 127.0.0.1:7008. Multiple instances use sequential ports like 7009, 7010.
71
+ When the console cannot print a specific port, the default first port is 127.0.0.1:7008. If multiple instances exist, ports increment sequentially — 7009, 7010, and so on.
71
72
 
72
73
  Uninstall logger mode:
74
+
73
75
  ```bash
74
76
  ccv --uninstall
75
77
  ```
76
78
 
77
79
  ### Troubleshooting
78
80
 
79
- If you encounter issues starting cc-viewer, here is the ultimate troubleshooting approach:
80
-
81
- Step 1: Open Claude Code in any directory.
82
-
81
+ If you run into start-up issues, here's the ultimate troubleshooting recipe:
82
+ Step 1: Open Claude Code in any directory;
83
83
  Step 2: Give Claude Code the following instruction:
84
84
 
85
85
  ```
86
- I have installed the cc-viewer npm package, but after running ccv it still doesn't work properly. Please check cc-viewer's cli.js and findcc.js, and adapt them to the local Claude Code deployment based on the specific environment. Keep the scope of changes as constrained as possible within findcc.js.
86
+ I have installed the cc-viewer npm package, but running ccv still doesn't work properly. Check cc-viewer's cli.js and findcc.js and adapt them to the local Claude Code deployment based on the specific environment. Keep the scope of changes confined to findcc.js as much as possible.
87
87
  ```
88
88
 
89
- Letting Claude Code diagnose the issue itself is more effective than asking anyone or reading any documentation!
89
+ Letting Claude Code diagnose the problem on its own is more effective than asking anyone or reading any documentation!
90
90
 
91
- After the above instruction is completed, `findcc.js` will be updated. If your project frequently requires local deployment, or if forked code often needs to resolve installation issues, keeping this file lets you simply copy it next time. At this stage, many projects and companies using Claude Code are not deploying on Mac but rather on server-side hosted environments, so the author has separated `findcc.js` to make it easier to track cc-viewer source code updates going forward.
91
+ Once the instruction is done, `findcc.js` will have been updated. If your project frequently needs local deployment, or your forked code often runs into installation issues, just keep this file next time you can simply copy it over. At this stage many projects and companies use Claude Code on server-side hosted deployments rather than on Mac, so I split out `findcc.js` to make it easier to keep tracking upstream cc-viewer source updates.
92
92
 
93
+ Note: this app conflicts with claude-code-switch and claude-code-router — there is a proxy contention problem, so make sure you turn off claude-code-switch and claude-code-router when using it. cc-viewer provides built-in proxy hot-reload that can replace them.
93
94
 
94
- ### Other Commands
95
+ ### Other helper commands
95
96
 
96
97
  See:
97
98
 
@@ -103,98 +104,96 @@ ccv -h
103
104
 
104
105
  By default, `ccv` runs in silent mode when wrapping `claude`, keeping your terminal output clean and consistent with the native experience. All logs are captured in the background and can be viewed at `http://localhost:7008`.
105
106
 
106
- Once configured, use the `claude` command as normal. Visit `http://localhost:7008` to access the monitoring interface.
107
-
107
+ Once configured, just use the `claude` command as usual. Visit `http://localhost:7008` to open the monitoring UI.
108
108
 
109
109
  ## Features
110
110
 
111
+ ### Programming mode
111
112
 
112
- ### Programming Mode
113
-
114
- After launching with ccv, you can see:
115
-
116
- <img width="1500" height="765" alt="image" src="https://github.com/user-attachments/assets/ab353a2b-f101-409d-a28c-6a4e41571ea2" />
117
-
113
+ After launching with ccv you'll see:
118
114
 
119
- You can view code diffs directly after editing:
115
+ <img height="765" width="1500" alt="image" src="https://github.com/user-attachments/assets/ab353a2b-f101-409d-a28c-6a4e41571ea2" />
120
116
 
121
- <img width="1500" height="728" alt="image" src="https://github.com/user-attachments/assets/2a4acdaa-fc5f-4dc0-9e5f-f3273f0849b2" />
117
+ You can view the code diff directly right after an edit:
122
118
 
123
- While you can open files and code manually, manual coding is not recommended — that's old-school coding!
119
+ <img height="728" width="1500" alt="image" src="https://github.com/user-attachments/assets/2a4acdaa-fc5f-4dc0-9e5f-f3273f0849b2" />
124
120
 
125
- ### Mobile Programming
121
+ While you can open files and code by hand, that's not recommended — that's the old-school way!
126
122
 
127
- You can even scan a QR code to code from your mobile device:
123
+ ### Mobile programming
128
124
 
129
- <img width="3018" height="1460" alt="image" src="https://github.com/user-attachments/assets/8debf48e-daec-420c-b37a-609f8b81cd20" />
130
- <img width="1700" height="790" alt="image" src="https://github.com/user-attachments/assets/da3e519f-ff66-4cd2-81d1-f4e131215f6c" />
125
+ You can even scan a QR code and code from a mobile device:
131
126
 
132
- Fulfill your imagination of mobile programming. There's also a plugin mechanism — if you need to customize for your coding habits, stay tuned for plugin hooks updates.
127
+ <img height="1460" width="3018" alt="image" src="https://github.com/user-attachments/assets/8debf48e-daec-420c-b37a-609f8b81cd20" />
133
128
 
129
+ <img height="790" width="1700" alt="image" src="https://github.com/user-attachments/assets/da3e519f-ff66-4cd2-81d1-f4e131215f6c" />
134
130
 
135
- ### Logger Mode (View Complete Claude Code Sessions)
131
+ Everything you imagined about mobile coding plus a plugin mechanism: if you need to customize for your own coding habits, stay tuned for plugin hook updates.
136
132
 
137
- <img width="1500" height="768" alt="image" src="https://github.com/user-attachments/assets/a8a9f3f7-d876-4f6b-a64d-f323a05c4d21" />
133
+ ### Logger mode (view the complete Claude Code session)
138
134
 
135
+ <img height="768" width="1500" alt="image" src="https://github.com/user-attachments/assets/a8a9f3f7-d876-4f6b-a64d-f323a05c4d21" />
139
136
 
140
- - Captures all API requests from Claude Code in real time, ensuring raw text not redacted logs (this is important!!!)
141
- - Automatically identifies and labels Main Agent and Sub Agent requests (subtypes: Plan, Search, Bash)
142
- - MainAgent requests support Body Diff JSON, showing collapsed differences from the previous MainAgent request (only changed/new fields)
143
- - Each request displays inline Token usage statistics (input/output tokens, cache creation/read, hit rate)
144
- - Compatible with Claude Code Router (CCR) and other proxy scenarios — falls back to API path pattern matching
137
+ * Captures every API request from Claude Code in real time, guaranteeing the raw payload rather than a censored log (this matters a lot!!!)
138
+ * Automatically identifies and labels Main Agent and Sub Agent requests (subtypes: Plan, Search, Bash)
139
+ * MainAgent requests support Body Diff JSON, showing only the diff against the previous MainAgent request (only changed/added fields) in a collapsed view
140
+ * Each request inlines Token usage stats (input/output tokens, cache creation/read, hit rate)
141
+ * Compatible with Claude Code Router (CCR) and other proxy scenarios — falls back to matching requests by API path pattern
145
142
 
146
- ### Conversation Mode
143
+ ### Conversation mode
147
144
 
148
- Click the "Conversation Mode" button in the top-right corner to parse the Main Agent's complete conversation history into a chat interface:
145
+ Click the "Conversation Mode" button at the top right to parse the Main Agent's full conversation history into a chat interface:
149
146
 
150
- <img width="1500" height="764" alt="image" src="https://github.com/user-attachments/assets/725b57c8-6128-4225-b157-7dba2738b1c6" />
147
+ <img height="764" width="1500" alt="image" src="https://github.com/user-attachments/assets/725b57c8-6128-4225-b157-7dba2738b1c6" />
151
148
 
152
- - Agent Team display is not yet supported
153
- - User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
154
- - `thinking` blocks are collapsed by default, rendered as Markdown — click to expand and view the thinking process; one-click translation is supported (feature is still unstable)
155
- - User selection messages (AskUserQuestion) are displayed in Q&A format
156
- - Bidirectional mode sync: switching to conversation mode auto-scrolls to the conversation corresponding to the selected request; switching back to raw mode auto-scrolls to the selected request
157
- - Settings panel: toggle default collapse state for tool results and thinking blocks
158
- - 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 complete conversation history on mobile
149
+ * Agent Team display is not yet supported
150
+ * User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
151
+ * `thinking` blocks are collapsed by default and rendered as Markdown — click to expand and view the reasoning; one-click translation is supported (still unstable)
152
+ * User-selection messages (AskUserQuestion) are displayed in Q&A form
153
+ * Two-way mode sync: switching to Conversation mode auto-scrolls to the conversation that matches the selected request; switching back to the raw mode auto-scrolls to the selected request
154
+ * Settings panel: toggle the default collapsed state of tool results and thinking blocks
155
+ * Mobile conversation browsing: in mobile CLI mode, tap the "Conversation Browse" button in the top bar to slide out a read-only conversation view and browse the full history on your phone
159
156
 
160
- ### Log Management
157
+ ### Log management
161
158
 
162
- Via the CC-Viewer dropdown menu in the top-left corner:
159
+ From the CC-Viewer dropdown menu in the top-left:
163
160
 
164
- <img width="1500" height="760" alt="image" src="https://github.com/user-attachments/assets/33295e2b-f2e0-4968-a6f1-6f3d1404454e" />
161
+ <img height="760" width="1500" alt="image" src="https://github.com/user-attachments/assets/33295e2b-f2e0-4968-a6f1-6f3d1404454e" />
165
162
 
166
- **Log Compression**
167
- Regarding logs, the author wants to clarify that the official Anthropic definitions have not been modified, ensuring log integrity. However, since individual log entries from the 1M Opus model can become extremely large in later stages, thanks to certain log optimizations for MainAgent, at least 66% size reduction is achieved without gzip. The parsing method for these compressed logs can be extracted from the current repository.
163
+ **Log compression**
164
+ Regarding logs, I want to state clearly that I haven't modified Anthropic's official definition log integrity is guaranteed.
165
+ However, individual log entries for the 1M Opus model can get extremely large in later stages. Thanks to some log optimizations applied to MainAgent, the size can be reduced by at least 66% even without gzip.
166
+ The parser for these compressed logs can be extracted from the current repository.
168
167
 
169
- ### More Useful Features
168
+ ### More handy useful features
170
169
 
171
- <img width="1500" height="767" alt="image" src="https://github.com/user-attachments/assets/add558c5-9c4d-468a-ac6f-d8d64759fdbd" />
170
+ <img height="767" width="1500" alt="image" src="https://github.com/user-attachments/assets/add558c5-9c4d-468a-ac6f-d8d64759fdbd" />
172
171
 
173
- You can quickly locate your prompts using the sidebar tools.
172
+ You can quickly locate your prompts via the sidebar tools.
174
173
 
175
- ---
174
+ ***
176
175
 
177
- <img width="1500" height="765" alt="image" src="https://github.com/user-attachments/assets/82b8eb67-82f5-41b1-89d6-341c95a047ed" />
176
+ <img height="765" width="1500" alt="image" src="https://github.com/user-attachments/assets/82b8eb67-82f5-41b1-89d6-341c95a047ed" />
178
177
 
179
- The interesting KV-Cache-Text feature lets you see exactly what Claude sees.
178
+ The interesting KV-Cache-Text feature shows you exactly what Claude sees.
180
179
 
181
- ---
180
+ ***
182
181
 
183
- <img width="1500" height="765" alt="image" src="https://github.com/user-attachments/assets/54cdfa4e-677c-4aed-a5bb-5fd946600c46" />
182
+ <img height="765" width="1500" alt="image" src="https://github.com/user-attachments/assets/54cdfa4e-677c-4aed-a5bb-5fd946600c46" />
184
183
 
185
- You can upload images and describe your needs — Claude's image understanding is incredibly powerful. And as you know, you can paste images directly with Ctrl+V, and your complete content will be displayed in the conversation.
184
+ You can upload images and describe your needs — Claude's image understanding is remarkably strong, and as you know, you can paste images directly with Ctrl + V; the full content shows up in the conversation.
186
185
 
187
- ---
186
+ ***
188
187
 
189
- <img width="600" height="370" alt="image" src="https://github.com/user-attachments/assets/87d332ea-3e34-4957-b442-f9d070211fbf" />
188
+ <img height="370" width="600" alt="image" src="https://github.com/user-attachments/assets/87d332ea-3e34-4957-b442-f9d070211fbf" />
190
189
 
191
- You can customize plugins, manage all CC-Viewer processes, and CC-Viewer supports hot-switching to third-party APIs (yes, you can use GLM, Kimi, MiniMax, Qwen, DeepSeek — although the author considers them all quite weak at this point).
190
+ You can customize plugins directly, manage all cc-viewer processes, and cc-viewer supports hot-switching to third-party APIs (yes, you can use GLM, Kimi, MiniMax, Qwen, DeepSeek — though I think they're all rather weak at the moment).
192
191
 
193
- ---
192
+ ***
194
193
 
195
- <img width="1500" height="746" alt="image" src="https://github.com/user-attachments/assets/b1f60c7c-1438-4ecc-8c64-193d21ee3445" />
194
+ <img height="746" width="1500" alt="image" src="https://github.com/user-attachments/assets/b1f60c7c-1438-4ecc-8c64-193d21ee3445" />
196
195
 
197
- More features waiting to be discovered... For example: the system supports Agent Team, and has a built-in Code Reviewer. Codex Code Reviewer integration is coming soon (the author highly recommends using Codex to review Claude Code's code).
196
+ More features waiting for you to discover... for example: the system supports Agent Team and ships with a built-in Code Reviewer. Codex Code Reviewer integration is coming very soon (I strongly recommend using Codex to review Claude Code's code).
198
197
 
199
198
  ## License
200
199
 
package/cli.js CHANGED
@@ -472,6 +472,7 @@ async function runSdkMode(extraClaudeArgs = [], cwd, noOpen = false) {
472
472
 
473
473
  // 注册 SDK 回调到 server.js(WS 消息路由用)
474
474
  serverMod.setSdkResolveApproval(sdkManager.resolveApproval);
475
+ serverMod.setSdkCancelApproval(sdkManager.cancelApproval);
475
476
  serverMod.setSdkSendUserMessage(sdkManager.sendUserMessage);
476
477
 
477
478
  // 自动打开浏览器