zbc
7ae2c9ba08
修复LLM response中构建diff不完善的问题
2026-05-25 19:13:47 +08:00
github-actions[bot]
1463f5c272
chore(release): bump version to 4.1.4
2026-05-21 06:28:24 +00:00
IronRookieCoder
4cb047ff48
fix(costrict): recover task updates from missing tool calls
...
## Bug 详情
CSC 在相同模型和输入下,任务流程可能先成功执行 TaskCreate,随后模型返回 stop_reason=tool_use 但没有实际 tool_use block,导致 TaskUpdate/update_todo_list 没有执行,最终任务状态更新失败。
## 根因
CoStrict/OpenAI 兼容流在工具参数不完整或模型续轮缺少工具块时,缺少稳定的结构化恢复路径;query 层原先无法基于已发生的任务工具调用链路区分普通缺失工具调用和任务状态更新流程。
## 修复方案
基于结构化 tool_use 历史识别任务流程,优先引导 CoStrict 使用 update_todo_list 恢复任务清单状态;同时为 CoStrict 工具 JSON 流增加无效参数保留和错误结果回传,避免执行 malformed tool input。
## 变更要点
- 新增 update_todo_list 兼容工具,并注册到 TaskV2 工具列表
- query 缺失 tool_use 恢复改为基于 TaskCreate/TaskUpdate/TaskList/TaskGet/update_todo_list 结构化工具历史判断
- CoStrict provider 保留 malformed tool call 的 id/name 并阻止执行无效参数
- 工具执行和 streaming executor 对 invalid tool call 返回错误 tool_result
- 补充 query 恢复、CoStrict provider、工具执行、消息规范化和 update_todo_list 单测
## 自测
- bun test src/__tests__/queryMissingToolUseRecovery.test.ts
- bun test src/costrict/provider/index.test.ts
- bun test src/utils/__tests__/messages.test.ts
- bun test src/services/tools/__tests__/StreamingToolExecutor.test.ts packages/builtin-tools/src/tools/UpdateTodoListCompatTool/__tests__/UpdateTodoListCompatTool.test.ts
- bun run typecheck 仍有当前工作区既有无关错误,未由本次修改引入
2026-05-20 13:44:12 +08:00
github-actions[bot]
321be8a128
chore(release): bump version to 4.1.3
2026-05-19 04:00:30 +00:00
github-actions[bot]
a76c92ea2d
chore(release): bump version to 4.1.2
2026-05-18 11:17:21 +00:00
github-actions[bot]
9cdff19cb7
chore(release): bump version to 4.1.1
2026-05-16 03:32:18 +00:00
github-actions[bot]
7f9d8ba78a
chore(release): bump version to 4.1.0
2026-05-15 09:03:10 +00:00
github-actions[bot]
de83394e8a
chore(release): bump version to 4.0.26
2026-05-15 03:47:01 +00:00
林凯90331
c0ff0fb716
fix(deps): move semver from devDependencies to dependencies
...
semver is required at runtime by the Node.js polyfill in cli-node.js
(globalThis.Bun.semver fallback) and by src/utils/semver.ts fallback.
Moving it to dependencies ensures it is installed during global npm install.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 11:39:45 +08:00
github-actions[bot]
90f27f36d6
chore(release): bump version to 4.0.25
2026-05-15 03:18:45 +00:00
github-actions[bot]
f2585ae08b
chore(release): bump version to 4.0.24
2026-05-15 02:40:29 +00:00
github-actions[bot]
34903c97e8
chore(release): bump version to 4.0.23
2026-05-14 13:40:24 +00:00
github-actions[bot]
49808bb967
chore(release): bump version to 4.0.22
2026-05-14 12:54:58 +00:00
github-actions[bot]
876dc94ed5
chore(release): bump version to 4.0.21
2026-05-14 11:25:31 +00:00
DoSun
f100568b46
Merge pull request #85 from y574444354/fix/serve-command-real-impl
...
fix: 替换假 server 命令为真实 serve 实现
2026-05-14 19:14:53 +08:00
github-actions[bot]
04aa2dc662
chore(release): bump version to 4.0.20
2026-05-14 09:37:36 +00:00
DoSun
cbc948b044
Merge branch 'feat/server-refactor'
...
# Conflicts:
# build.ts
# src/main.tsx
# src/services/rawDump/worker.ts
2026-05-14 15:21:25 +08:00
geroge
a1dca02b55
Merge pull request #81 from y574444354/fix/raw-dump
...
feat(rawDump): add raw dump reporting module with local mode and deduplication
2026-05-14 11:34:01 +08:00
林凯90331
e24ed3b63d
feat(rawDump): add raw dump reporting module with local mode and deduplication
...
Implement the raw dump data reporting module for uploading conversation,
summary, and commit data to the CoStrict endpoint.
Key features:
- Local dump mode for debugging without network
- PID-based file locking to prevent state corruption with multiple csc instances
- 5-minute deduplication window for summary uploads
- Auto-detect sender (user/agent) and conditional user_input
- Repository fields (repo_addr, repo_branch, work_dir) in conversation
- Anonymous interface fallback when auth fails
- Filter commits to current user and limit fetch range
- Skip empty intermediate conversation turns
- Fix worker spawning for build and binary modes
- Remove git diff HEAD fallback to avoid unrelated working tree changes
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-13 23:49:20 +08:00
y574444354
60856a29bc
chore: bump version to 4.0.17
2026-05-13 20:17:39 +08:00
kingboung
ed513c6292
merge: sync main into feat/migrate-review-agents
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 16:08:01 +08:00
DoSun
3abca0c053
merge: 合并 origin/main 到 feat/server-refactor,解决冲突并保留 server 完整实现
2026-05-13 10:27:14 +08:00
mini2s
a796a328c9
feat(compact): add CoStrict model support and prevent infinite compaction loops
2026-05-12 20:07:24 +08:00
IronRookieCoder
c473fef8d8
refactor: 将 undici 移至运行时依赖
...
undici 仍被代理和 mTLS 逻辑按需 require,因此需要保留为运行时依赖。
2026-05-12 16:49:28 +08:00
kingboung
5ecc8277b8
fix: restore package.json, bun.lock and .gitignore from verified commit
...
Restore to match commit 89c9e87c:
- Add back build:builtin-review script
- Remove undici from devDependencies
- Restore prepare script to .githooks
- Revert .gitignore upstream additions
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 16:15:26 +08:00
y574444354
79548c324e
chore: bump version to 4.0.16 and clean up source maps in build output
...
- 版本号 4.0.15 → 4.0.16 (package.json + MACRO.VERSION)
- build.ts: 新增 Step 6,构建完成后清理 .map 文件(约 64MB)
解决 npm mirror 80MB 包体积限制的同步失败问题
2026-05-12 15:22:34 +08:00
kingboung
a645f34ee5
fix: resolve merge conflicts with main, keep branch review architecture
...
- Remove duplicate extractBundledSkill from generated builtin.ts template
- Keep extract-to-disk extension.ts (branch version)
- Keep SSH clone URL for generate-review-builtin
- Revert .gitignore, package.json, locales to branch versions
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 15:16:17 +08:00
y574444354
73f8641033
chore: bump version to 4.0.15 and update CHANGELOG
...
- 版本号 4.0.14 → 4.0.15
- 更新 CHANGELOG.md 添加 4.0.14 变更记录
- markdownConfigLoader: ripgrep 失败时降级到原生文件搜索
2026-05-12 15:10:39 +08:00
kingboung
8599340c68
Merge remote-tracking branch 'origin/main' into feat/migrate-review-agents
...
Conflicts resolved in favor of our branch for review-related files.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 15:08:13 +08:00
kingboung
18c87ff058
chore: remove duplicate undici dependency
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 14:55:25 +08:00
y574444354
d59d1f590a
chore: 合并社区 upstream/main 代码至 v2.4.2
...
合并 claude-code-best/claude-code 社区最新代码,包含:
- 配置文件更新:precheck/lint-staged/overrides 等
- 新 feature flags:EXPERIMENTAL_SEARCH_EXTRA_TOOLS、AUTOFIX_PR
- 工具系统架构更新:Tool Search、ACP 协议支持
- 文档更新:CLAUDE.md 同步架构变更
- 依赖更新:SDK 版本升级、lint-staged 加入
冲突处理策略:以 costrict 版本为主,选择性合并上游功能改进
2026-05-12 11:55:04 +08:00
kingboung
37f53440f3
Merge remote-tracking branch 'origin/main' into feat/migrate-review-agents
2026-05-12 11:49:50 +08:00
kingboung
c3e19d7d2a
refactor: migrate review skills from registerBundledSkill to extract-to-disk
...
Replace registerBundledSkill() with runtime extract-to-disk + standard
skill scanner discovery, aligning with upstream opencode PR #360 approach.
- Add extractBundledSkill() to generate script output
- Create extension.ts for runtime skill extraction to ~/.claude/skills/
- Remove reviewSkills.ts (registerBundledSkill registration)
- Update bundled/index.ts to call Extension.initializeBuiltinSkills()
- Add build:builtin-review script to package.json
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 11:49:38 +08:00
geroge
206cd1f4d4
Merge pull request #53 from Askhz/fix/undici-dependency-missing
...
fix: 设置https_proxy参数时启动csc卡住
2026-05-12 10:10:23 +08:00
claude-code-best
89d2c80d78
chore: 2.4.2
2026-05-11 20:37:53 +08:00
林凯90331
5515699125
build(scripts): add bun compile scripts for linux and windows binaries
...
Wrap bun build --compile to produce self-contained executables for linux-x64 (glibc/musl) and windows-x64, each in modern (AVX2) and baseline (SSE2) variants. The build:binary:* aliases run the existing build pipeline first so dist/cli.js post-processing (feature flags, import.meta.require) stays in effect.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-11 17:46:44 +08:00
claude-code-best
2017df72e8
chore: 2.4.1
2026-05-11 10:27:53 +08:00
claude-code-best
3d91ba033f
chore: 2.4.0
2026-05-10 20:50:58 +08:00
claude-code-best
97919755b1
chore: 2.3.0
2026-05-10 11:16:09 +08:00
Askhz
636e40a991
fix: move undici to dependencies to fix Node.js startup hang when https_proxy is set
...
When https_proxy is configured, configureGlobalAgents() calls __require("undici")
synchronously. In the npm package, undici was listed as devDependencies and thus
absent from node_modules after installation. Node.js 22 would then attempt to load
its built-in ESM undici via CJS require(), causing an ESM/CJS interop deadlock that
hung the process indefinitely with no way to interrupt it.
Moving undici to dependencies ensures it is installed as a CJS-compatible module,
allowing __require("undici") to resolve correctly under Node.js.
2026-05-10 00:35:18 +08:00
claude-code-best
b909af0963
chore: 2.2.1
2026-05-07 23:50:09 +08:00
kingboung
083e2a7cfc
chore: add gray-matter dependency for frontmatter parsing
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-07 17:04:08 +08:00
claude-code-best
a977c07900
chore: 2.2.0
2026-05-07 08:29:07 +08:00
DoSun
81d9555344
chore: 添加 hono 依赖并精简 lockfile
2026-05-06 14:31:38 +08:00
claude-code-best
cce60af985
chore: 2.1.0
2026-05-05 21:22:20 +08:00
claude-code-best
d139edceda
chore: 2.0.5
2026-05-05 20:16:44 +08:00
claude-code-best
2ac335d7f6
chore: v2.0.4
2026-05-04 23:25:20 +08:00
claude-code-best
9f311994bf
chore: 2.0.3
2026-05-03 17:33:14 +08:00
claude-code-best
e3ac5a8182
chore: v2.0.2
2026-05-02 20:37:46 +08:00
claude-code-best
20d8851e45
chore: v2.0.1
2026-05-02 15:46:55 +08:00