cc-viewer 1.9.3 → 1.9.4
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 +5 -5
- package/cli.js +24 -0
- package/dist/assets/App-DtBVNYE7.js +2 -0
- package/dist/assets/App-DuDeDOuX.css +1 -0
- package/dist/assets/{MdxEditorPanel-Ck8B5a5v.js → MdxEditorPanel-C8Cij93y.js} +1 -1
- package/dist/assets/{Mobile-B8AkKb0z.js → Mobile-OKCVi8un.js} +1 -1
- package/dist/assets/{ProxyStatsModal-DsDVMf-c.js → ProxyStatsModal-DGlngtM9.js} +1 -1
- package/dist/assets/index-Clt4dw8Y.js +2 -0
- package/dist/assets/{seqResourceLoaders-BsMFNfvR.css → seqResourceLoaders-Bg9Lz8pH.css} +1 -1
- package/dist/assets/seqResourceLoaders-zlIVjapi.js +2 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/interceptor.js +11 -0
- package/server/lib/sdk-manager.js +1521 -895
- package/server/routes/events.js +20 -0
- package/server/routes/resume.js +62 -1
- package/server/routes/sdk-context.js +24 -0
- package/server/routes/sdk-mcp-status.js +24 -0
- package/server/routes/workspaces.js +24 -1
- package/server/scratch-pty-manager.js +127 -46
- package/server/server.js +326 -41
- package/dist/assets/App-BzXO6ATr.js +0 -2
- package/dist/assets/App-DJ4yNvwz.css +0 -1
- package/dist/assets/index-Dq5UPr6v.js +0 -2
- package/dist/assets/seqResourceLoaders-BsQ6KXpV.js +0 -2
package/dist/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
// 整体显示大小已弃用 CSS zoom:Electron 改用 webFrame.setZoomFactor(首屏抢占见
|
|
22
22
|
// electron/tab-content-preload.js),纯浏览器交由用户用浏览器自带快捷键缩放,故此处不再设 zoom。
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="./assets/index-
|
|
24
|
+
<script type="module" crossorigin src="./assets/index-Clt4dw8Y.js"></script>
|
|
25
25
|
<link rel="modulepreload" crossorigin href="./assets/vendor-antd-CS_S2mBN.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="./assets/vendor-codemirror-B5l-VbBO.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="./assets/vendor-mdxeditor-Cz09a1_I.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-viewer",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"description": "Claude Code logging, visualization, and management toolkit — launch a web viewer alongside Claude Code with full request/response tracing, proxy, and mobile support",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "server.js",
|
package/server/interceptor.js
CHANGED
|
@@ -52,6 +52,17 @@ export function resetStreamingState() {
|
|
|
52
52
|
streamingState.chunksReceived = 0;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
// Turn-level active flag (whole user-prompt turn, incl. local tool execution
|
|
56
|
+
// between API calls). Lives here — next to streamingState — because the PTY hook
|
|
57
|
+
// paths (server.js onTaskEvent / queue-suppress) and the SSE connect replay
|
|
58
|
+
// (routes/events.js) share the value, and interceptor.js is already imported by
|
|
59
|
+
// both. SDK mode does NOT use this flag — it relays session_state_changed over
|
|
60
|
+
// the terminal WS instead (sdk-manager `_announceSessionState`). Transitions are
|
|
61
|
+
// broadcast by the caller (server.js `_broadcastTurnActive`); this module is
|
|
62
|
+
// state-only on purpose.
|
|
63
|
+
export const turnActive = { active: false };
|
|
64
|
+
export function setTurnActive(v) { turnActive.active = !!v; }
|
|
65
|
+
|
|
55
66
|
// ─── IM 逐字流式的文本源 ───
|
|
56
67
|
// 钉钉 AI 卡片流式(server/lib/adapters/dingtalk-adapter.js)需要「对话过程中」的主 agent 增量文本。
|
|
57
68
|
// 复用本拦截器对主 agent SSE 的增量解析,累计 text_delta(跳过 thinking_delta,与 im-bridge-core
|