geroge
d8a19f1473
Merge pull request #79 from IronRookieCoder/personal-ironrookiecoder-fix-issue-42-43
...
fix: merge sub-agent readFileState to prevent cross-agent write confl…
2026-05-13 19:37:09 +08:00
geroge
e570eee02a
Merge pull request #78 from IronRookieCoder/fix/issue-28-costrict-provider
...
fix: 修复 CoStrict provider 提前停止与 token override 问题
2026-05-13 19:36:34 +08:00
geroge
3cf17ad756
Merge pull request #74 from IronRookieCoder/fix/sdd-design-invalid-tool-params
...
Fix/sdd design invalid tool params
2026-05-13 19:33:47 +08:00
IronRookieCoder
233971c6ce
fix: merge sub-agent readFileState to prevent cross-agent write conflicts
...
子代理完成后将其 readFileState 合并回主代理缓存,防止主代理写文件时因
缓存过期而误报 FILE_UNEXPECTEDLY_MODIFIED_ERROR。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 16:36:46 +08:00
IronRookieCoder
62f4cb9daf
fix: 修复 CoStrict provider 提前停止与 token override 问题
2026-05-13 16:24:34 +08:00
IronRookieCoder
65e55ac763
Merge remote-tracking branch 'origin' into fix/sdd-design-invalid-tool-params
2026-05-12 21:31:12 +08:00
IronRookieCoder
b58fd8f782
fix: 修复子代理参数兼容问题
2026-05-12 21:24:12 +08:00
geroge
5c2e1918ca
Merge pull request #73 from mini2s/fix-autocompact
...
feat(compact): add CoStrict model support and prevent infinite compaction loops
2026-05-12 20:12:15 +08:00
mini2s
a796a328c9
feat(compact): add CoStrict model support and prevent infinite compaction loops
2026-05-12 20:07:24 +08:00
geroge
9fb1410b6f
Merge pull request #72 from Askhz/fix/costrict-subagent-model-inherit
...
fix: costrict provider 下子 agent 模型别名继承父模型
2026-05-12 19:35:06 +08:00
Askhz
339ef4bc63
fix: costrict provider 下子 agent 模型别名继承父模型
...
costrict 没有 haiku/sonnet/opus 模型层级,当子 agent(如 Explore)
配置为 haiku 时,parseUserSpecifiedModel 会解析到 Claude haiku
模型 ID 而非继承主会话所选模型。修复为 costrict 下所有 family
alias 强制走 inherit 逻辑,使用 getRuntimeMainLoopModel 以正确
支持 plan mode 等场景。
Co-Authored-By: CoStrict-DeepSeek-V4-Pro <deepseek-ai@claude-code-best.win>
2026-05-12 19:31:36 +08:00
geroge
00887762a2
Merge pull request #68 from IronRookieCoder/feat/proxy-ca-improvements
...
feat: 添加代理和 CA 证书功能改进及测试
2026-05-12 17:15:25 +08:00
geroge
fbae6383fd
Merge pull request #69 from y574444354/test-pattern-with-root
...
test: add unit tests for patternWithRoot with Windows path improvements
2026-05-12 17:14:59 +08:00
geroge
021ce31f31
Merge pull request #67 from y574444354/fix/tab-protection-measured-text
...
fix: protect tabs from wrap-ansi expansion in MeasuredText
2026-05-12 17:11:00 +08:00
unknown_
24e62eb6f3
test: add unit tests for patternWithRoot with Windows path improvements
2026-05-12 17:07:46 +08:00
IronRookieCoder
c473fef8d8
refactor: 将 undici 移至运行时依赖
...
undici 仍被代理和 mTLS 逻辑按需 require,因此需要保留为运行时依赖。
2026-05-12 16:49:28 +08:00
IronRookieCoder
b39887b2d3
feat: 添加代理和 CA 证书功能改进及测试
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 16:24:02 +08:00
unknown_
ade163561b
fix: protect tabs from wrap-ansi expansion in MeasuredText
2026-05-12 16:05:08 +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
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
y574444354
cb38087940
merge: 合并 merge 分支(社区 upstream v2.4.2 同步及大量功能增强)
...
包含:
- 社区 upstream 代码同步至 v2.4.2
- 内存优化与泄漏修复
- Tool Search 基础设施
- Agent/Team 功能增强
- Remote Control 条件工具注入
- 大量测试修复与性能优化
2026-05-12 14:07:32 +08:00
y574444354
d3100178e3
fix: 修复 betas 导入名称不匹配
...
TOOL_SEARCH_BETA_HEADER_* → SEARCH_EXTRA_TOOLS_BETA_HEADER_*
与 src/constants/betas.ts 的导出名称保持一致
2026-05-12 12:34:38 +08:00
y574444354
c2f831c4bf
chore: remove npm auth token from .npmrc
2026-05-12 12:27:11 +08:00
y574444354
666d2ba2eb
Merge branch 'main' into merge
2026-05-12 12:25:05 +08:00
y574444354
7b2b5871ed
fix: 使用 HTTPS + gh token 替代 SSH 克隆 review 仓库
...
将 generate-review-builtin.ts 的 CLONE_URL 从 SSH (git@github.com:)
改为 HTTPS,并通过 gh auth token 或环境变量获取认证令牌,
解决 SSH key 未配置时无法克隆私有仓库的问题。
2026-05-12 12:23:50 +08:00
y574444354
b1a6a22e5d
fix: 使用 HTTPS + gh token 替代 SSH 克隆 review 仓库
...
将 generate-review-builtin.ts 的 CLONE_URL 从 SSH (git@github.com:)
改为 HTTPS,并通过 gh auth token 或环境变量获取认证令牌,
解决 SSH key 未配置时无法克隆私有仓库的问题。
2026-05-12 12:23:50 +08:00
y574444354
4fce66348c
Revert "Merge pull request #60 from y574444354/feat/migrate-review-agents"
...
This reverts commit 62398b2dcc , reversing
changes made to ba39b17a7e .
2026-05-12 12:11:37 +08:00
y574444354
8b6bdd44d8
Revert "Merge pull request #60 from y574444354/feat/migrate-review-agents"
...
This reverts commit 62398b2dcc , reversing
changes made to ba39b17a7e .
2026-05-12 12:11:37 +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
geroge
eb955e44b8
Merge pull request #63 from Askhz/feat/costrict-max-tokens
...
feat(costrict): 根据模型列表动态设置 max_tokens 参数
2026-05-12 10:20:11 +08:00
Askhz
158ead6cbe
Merge branch 'main' into feat/costrict-max-tokens
2026-05-12 10:16:21 +08:00
geroge
62398b2dcc
Merge pull request #60 from y574444354/feat/migrate-review-agents
...
feat: migrate review system to bundled skill files mechanism
2026-05-12 10:11:29 +08:00
geroge
ba39b17a7e
Merge pull request #56 from Askhz/chore/remove-attribution-header
...
chore: remove x-anthropic-billing-header from system prompt
2026-05-12 10:11:03 +08:00
geroge
d1197c2efc
Merge pull request #54 from Askhz/feat/costrict-agent-type-header
...
feat: add agent-type request header to CoStrict provider
2026-05-12 10:10:48 +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
Askhz
1970c698ea
feat(costrict): 根据模型列表动态设置 max_tokens 参数
...
从 /ai-gateway/api/v1/models 返回的模型信息中读取 maxTokensKey
和 maxTokens 字段,发送请求时动态注入对应参数名和参数值。
maxTokensKey 缺失时默认使用 max_tokens,maxTokens 无值时不传该参数。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 21:23:28 +08:00
kingboung
62efcef508
refactor: consolidate review skill registration and fix command conflicts
...
- Merge strict:review/strict:security-review into reviewSkills.ts (single
file registers all four commands: /review, /security-review,
/strict:review, /strict:security-review)
- Remove conflicting prompt commands from src/commands/ (review.ts,
security-review.ts) so bundled skills take precedence
- Remove REVIEW_AGENTS import from builtInAgents.ts and mcp.ts
- Remove agent generation logic from generate-review-builtin.ts
- Configure allowedTools and model: 'inherit' per claudecode spec
- Switch test branch to optimize/agent-prompts
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 20:52:18 +08:00
linkai0924
d9bc165378
Merge pull request #61 from y574444354/feat/add-timestamp-to-version
...
Feat/add timestamp to version
2026-05-11 20:43:26 +08:00
林凯90331
f8d4feee98
feat(rawDump): disable raw dump by default
...
Invert the enablement logic so raw dump is disabled unless
CSC_DISABLE_RAW_DUMP or COSTRICT_DISABLE_RAW_DUMP is explicitly
set to 0 or false.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-11 20:41:56 +08:00
claude-code-best
89d2c80d78
chore: 2.4.2
2026-05-11 20:37:53 +08:00
林凯90331
e8dca4d3bd
feat(cli): add git commit hash and build time to --version output
...
Include commit short hash and formatted build timestamp in the
version string, matching the output format of cs --version.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-11 20:27:22 +08:00
kingboung
a5235ab03c
Merge remote-tracking branch 'origin/main' into feat/migrate-review-agents
2026-05-11 20:21:16 +08:00
kingboung
e3ba147dbe
refactor: migrate review system to bundled skill files mechanism
...
Replace custom extension.ts initialization and agent-based routing with
csc's built-in registerBundledSkill({ files }) mechanism. Review and
security-review skills are now registered with embedded files that
get lazily extracted to disk on first invocation. Locale is resolved
at startup via getResolvedLanguage().
- Remove agent generation from generate-review-builtin.ts (skill-only)
- Remove extension.ts, REVIEW_AGENTS registration, strict:* skills
- Add reviewSkills.ts with registerReviewSkills() for unified registration
- Adapt to new costrict-review index.json format (skills-only, new paths)
- Remove src/costrict/command/locales/ (no longer needed)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 20:19:05 +08:00
linkai0924
ab2195b5d1
Merge pull request #59 from y574444354/feat/package-binary
...
build(scripts): add bun compile scripts for linux and windows binaries
2026-05-11 17:50:46 +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
Askhz
5d288c4290
chore: remove x-anthropic-billing-header from system prompt
2026-05-11 11:47:39 +08:00
y574444354
dbef683bb2
docs: update contributors
2026-05-11 03:45:52 +00:00
linkai0924
6651109d9c
Merge pull request #55 from y574444354/fix/batch-work-issue
...
fix(rawDump): prevent batch worker concurrency cascade and add fetch …
2026-05-11 11:41:18 +08:00
林凯90331
1240a1a499
fix(rawDump): prevent batch worker concurrency cascade and add fetch timeout
...
- Add in-process isRunning flag to block reentrant runBatch (file lock
fails when pid === process.pid)
- Replace setInterval + double immediate trigger with self-scheduling
setTimeout that only fires after previous batch awaits
- Move clearQueue() to right after readQueue() so any unexpected
concurrent runBatch sees an empty queue and exits immediately
- Cache repoInfo and workingTreeDiff in processTask, pass into all three
upload functions to halve git invocations per task
- Add 30s AbortController timeout on postJson fetch so the worker no
longer hangs indefinitely on unresponsive networks
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 11:34:44 +08:00
Askhz
4dcb3a2107
feat: add agent-type request header to CoStrict provider
...
在 CoStrict provider 的所有 API 请求中注入 agent-type header,
反映当前会话所使用的 agent 或 skill,默认值为 "build"。
- fetch.ts: createCoStrictFetch 接受可选 agentType 参数,PascalCase
自动转 kebab-case(StrictSpec → strict-spec),注入 agent-type header
- index.ts: queryModelCoStrict 读取 getMainThreadAgentType()(--agent 启动)
或 getActiveSkillName()(slash skill 触发)作为 agentType
- models.ts: /v1/models 请求添加 User-Agent: csc/{VERSION} header
- state.ts: 新增 activeSkillName 状态及 getter/setter
- processSlashCommand.tsx: inline skill 和 fork skill(context:fork)
触发时均调用 setActiveSkillName 记录当前 skill/agent 名
- caches.ts: /clear 时调用 setActiveSkillName(undefined) 重置状态,
避免新会话继承上一会话的 agent-type
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 11:17:02 +08:00