cc-viewer 1.6.254 → 1.6.255
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/dist/assets/{App-BE6CjL4z.js → App-BhRbMy4X.js} +1 -1
- package/dist/assets/{MdxEditorPanel-BLBytlOn.js → MdxEditorPanel-CfwOM0KR.js} +1 -1
- package/dist/assets/{Mobile-CCp4P4P4.js → Mobile-COrr8adp.js} +1 -1
- package/dist/assets/ProxyModal-C-2vWlT8.js +2 -0
- package/dist/assets/{index-WlCEIiNa.js → index-mBNBJDft.js} +2 -2
- package/dist/index.html +1 -1
- package/package.json +25 -2
- package/server.js +4 -0
- package/dist/assets/ProxyModal-DFqdiF5j.js +0 -2
package/dist/index.html
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
if (pick) document.documentElement.setAttribute('data-theme', pick);
|
|
20
20
|
} catch {}
|
|
21
21
|
</script>
|
|
22
|
-
<script type="module" crossorigin src="/assets/index-
|
|
22
|
+
<script type="module" crossorigin src="/assets/index-mBNBJDft.js"></script>
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/vendor-antd-BeN8xqGk.js">
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/vendor-codemirror-2nbmPewy.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="/assets/vendor-mdxeditor-C7DYEBoH.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-viewer",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.255",
|
|
4
4
|
"description": "Claude Code Logger visualization management tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "server.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"build:sourcemap": "CCV_SOURCEMAP=1 node build.js",
|
|
21
21
|
"start": "node server.js",
|
|
22
22
|
"test": "CCV_LOG_DIR=tmp node --test",
|
|
23
|
-
"test:coverage": "CCV_LOG_DIR=tmp node --test --experimental-test-coverage --test-coverage-include='lib/*.js' --test-coverage-include='*.js'",
|
|
23
|
+
"test:coverage": "CCV_LOG_DIR=tmp node --test --experimental-test-coverage --test-coverage-include='lib/*.js' --test-coverage-include='src/utils/*.js' --test-coverage-include='*.js'",
|
|
24
|
+
"test:coverage:html": "CCV_LOG_DIR=tmp c8 --reporter=text-summary --reporter=html node --test",
|
|
24
25
|
"prepublishOnly": "npm run build",
|
|
25
26
|
"electron:dev": "electron electron/main.js",
|
|
26
27
|
"electron:build": "npm run build && electron-builder",
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
"@xterm/addon-webgl": "^0.19.0",
|
|
89
90
|
"@xterm/xterm": "^6.0.0",
|
|
90
91
|
"antd": "^5.29.2",
|
|
92
|
+
"c8": "^11.0.0",
|
|
91
93
|
"diff": "^8.0.3",
|
|
92
94
|
"electron": "^35.1.2",
|
|
93
95
|
"electron-builder": "^26.0.12",
|
|
@@ -113,5 +115,26 @@
|
|
|
113
115
|
},
|
|
114
116
|
"optionalDependencies": {
|
|
115
117
|
"@anthropic-ai/claude-agent-sdk": "^0.2.91"
|
|
118
|
+
},
|
|
119
|
+
"c8": {
|
|
120
|
+
"include": [
|
|
121
|
+
"lib/**/*.js",
|
|
122
|
+
"src/utils/**/*.js",
|
|
123
|
+
"*.js"
|
|
124
|
+
],
|
|
125
|
+
"exclude": [
|
|
126
|
+
"test/**",
|
|
127
|
+
"dist/**",
|
|
128
|
+
"node_modules/**",
|
|
129
|
+
"build.js",
|
|
130
|
+
"vite.config.js",
|
|
131
|
+
"electron/**",
|
|
132
|
+
"scripts/**",
|
|
133
|
+
"coverage/**"
|
|
134
|
+
],
|
|
135
|
+
"all": true,
|
|
136
|
+
"report-dir": "coverage",
|
|
137
|
+
"skip-full": false,
|
|
138
|
+
"check-coverage": false
|
|
116
139
|
}
|
|
117
140
|
}
|
package/server.js
CHANGED
|
@@ -2384,6 +2384,10 @@ async function handleRequest(req, res) {
|
|
|
2384
2384
|
return;
|
|
2385
2385
|
}
|
|
2386
2386
|
} else {
|
|
2387
|
+
// Fallback id:当 hook caller 没传 toolUseId(如老 Claude Code PreToolUse hook
|
|
2388
|
+
// payload 不含 tool_use_id),生成 ask_${ts}_${rnd} 占位。这个 id 与 jsonl 里
|
|
2389
|
+
// tool_use.id(toolu_xxx)不同名,前端 portal 决策必须按 ask_* 前缀通配命中。
|
|
2390
|
+
// 协议锚点:src/utils/askPortalMatcher.js — 改此处前缀格式必须同步改 matcher。
|
|
2387
2391
|
do { id = `ask_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`; } while (pendingAskHooks.has(id));
|
|
2388
2392
|
}
|
|
2389
2393
|
|