Repository navigation
Commit deee4bd
committed
fix(client): 合并重复的 summarizeSub 声明 + 补面板产物解析闸
CodeRabbit review 抓到的真问题:rebase 到含 #316(summarizeReasoningEffort)的 main
时,我在 autoSummarize 子块新加的 `const summarizeSub` 与上游同名声明撞车——
`node --check lib/client.js` 报 "Identifier 'summarizeSub' has already been declared",
面板 bundle 一执行就抛 SyntaxError,整个设置页加载失败。而当时 CI 全绿。
- 把错峰时段输入**并入上游那个 summarizeSub**(保留思考强度下拉与其 hint),
而不是并列第二个声明。
- 补一道解析闸(test/client.test.js):该文件此前只把面板当**文本**读(断言全是
正则/字符串包含),仓库 CI 里没有任何一步解析 lib/client.js,而 lib/client.js
无 src 对应物、不参与 sync —— 于是这类语法错误能全绿进主干。新增用例用
`node --check` 解析产物;已实测「注入重复声明 → 该用例失败、还原后通过」。
- 全量 npm test:1399 条,失败集合仍与上游 main 逐条一致(9 条 runtime-verify
环境相关用例)。1 parent 26b5619 commit deee4bd
2 files changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
2236 | | - | |
2237 | 2230 | | |
2238 | 2231 | | |
2239 | 2232 | | |
| |||
2288 | 2281 | | |
2289 | 2282 | | |
2290 | 2283 | | |
2291 | | - | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
2292 | 2289 | | |
2293 | 2290 | | |
2294 | 2291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
943 | 944 | | |
944 | 945 | | |
945 | 946 | | |
946 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
0 commit comments