y574444354
387029744d
Merge branch 'upstream/main' into main
...
同步上游主仓库最新代码,包含以下更新:
- feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288 )
- build: CI 添加通过过滤
- fix: 解决 node 下 loading 按钮计算错误问题
- docs: 更新说明
- test: 修正 mock 的滥用情况
- fix: 修复 linux 端的安装问题
- feat: 重构供应商层次 (#286 )
- Feat/integrate lint preview (#285 )
- feat: 添加对 ACP 协议的支持 (#284 )
- feat(langfuse): LLM generation 记录工具定义
- feat: 添加环境变量支持以覆盖 max_tokens 设置
- build: 新增 vite 构建流程
2026-04-17 17:59:48 +08:00
Cheng Zi Feng
72a2093cd6
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 ( #288 )
...
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
2026-04-17 16:21:27 +08:00
claude-code-best
ac42ce2d67
fix: 解决 node 下 loading 按钮计算错误问题
2026-04-17 10:42:40 +08:00
claude-code-best
a14b7f352b
test: 修正 mock 的滥用情况
2026-04-17 10:13:09 +08:00
claude-code-best
bddd146f25
feat: 重构供应商层次 ( #286 )
...
* refactor: 创建 @anthropic-ai/model-provider 包骨架与类型定义
- 新建 workspace 包 packages/@anthropic-ai/model-provider
- 定义 ModelProviderHooks 接口(依赖注入:分析、成本、日志等)
- 定义 ClientFactories 接口(Anthropic/OpenAI/Gemini/Grok 客户端工厂)
- 搬入核心类型:Message 体系、NonNullableUsage、EMPTY_USAGE、SystemPrompt、错误常量
- 主项目 src/types/message.ts 等改为 re-export,保持向后兼容
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: 提升 OpenAI 转换器和模型映射到 model-provider 包
- 搬入 OpenAI 消息转换(convertMessages)、工具转换(convertTools)、流适配(streamAdapter)
- 搬入 OpenAI 和 Grok 模型映射(resolveOpenAIModel、resolveGrokModel)
- 主项目文件改为 thin re-export proxy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: 搬入 Gemini 兼容层到 model-provider 包
- 搬入 Gemini 类型定义、消息转换、工具转换、流适配、模型映射
- 主项目 gemini/ 目录下文件改为 thin re-export proxy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: 搬入 errorUtils 并迁移消费者导入到 model-provider
- 搬入 formatAPIError、extractConnectionErrorDetails 等 errorUtils
- 迁移 10 个消费者文件直接从 @anthropic-ai/model-provider 导入
- 更新 emptyUsage、sdkUtilityTypes、systemPromptType 为 re-export proxy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: compact 模型降级为 -1 模式(Opus→Sonnet, Sonnet→Haiku)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: 添加 agent-loop 绘图
* Revert "feat: compact 模型降级为 -1 模式(Opus→Sonnet, Sonnet→Haiku)"
This reverts commit e458d6391d .
* docs: 添加简化版 agent loop
* fix: 修复 n 快捷键导致关闭的问题
* fix: 修复 node 下 ws 没打包问题
* docs: 修复链接
* test: 添加测试支持
* fix: 修复类型问题(#267 ) (#271 )
* fix: 修复 Bun 的 polyfill 问题
* fix: 类型修复完成
* feat: 统一所有包的类型文件
* fix: 修复构建问题
* test: 修复类型校验 (#279 )
* fix: 修复 Bun 的 polyfill 问题
* fix: 类型修复完成
* feat: 统一所有包的类型文件
* fix: 修复构建问题
* fix(remote-control): harden self-hosted session flows (#278 )
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
* docs: update contributors
* build: 新增 vite 构建流程
* feat: 添加环境变量支持以覆盖 max_tokens 设置
* feat(langfuse): LLM generation 记录工具定义
将 Anthropic 格式的工具定义转换为 Langfuse 兼容的 OpenAI 格式,
并在 generation 的 input 中以 { messages, tools } 结构传入,
以便在 Langfuse UI 中查看完整的工具定义信息。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: 添加对 ACP 协议的支持 (#284 )
* feat: 适配 zed acp 协议
* docs: 完善 acp 文档
* chore: 1.4.0
* conflict: 解决冲突
* feat: 添加测试覆盖率上报
* style: 改名加移动文件夹位置
* refactor: 移动测试用例及实现
* test: 修复测试用例完成
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cheng Zi Feng <1154238323@qq.com>
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
Co-authored-by: claude-code-best <272536312+claude-code-best@users.noreply.github.com>
2026-04-17 09:33:14 +08:00
claude-code-best
c8d08d235b
Feat/integrate lint preview ( #285 )
...
* feat: 适配 zed acp 协议
* docs: 完善 acp 文档
* feat: integrate feature branches + daemon/job 命令层级化 + 跨平台后台引擎
Cherry-picked from origin/lint/preview (637c908 ), excluding lint-only changes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: correct detectMimeFromBase64 to decode raw bytes from base64
Cherry-picked from origin/lint/preview (ee36954 ).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: daemon 子进程 spawn 跨平台修复 + CliLaunchSpec 集中化重构
Cherry-picked from origin/lint/preview (c5f52cd ), excluding lint-only formatting changes.
- 新建 src/utils/cliLaunch.ts: 集中化 CLI 子进程启动层
- 修复 --daemon-worker=kind 等号格式解析
- 修复 daemon/bg fast path 缺少 setShellIfWindows()
- 修复 checkPathExists 用 existsSync 替代 execSync('dir')
- 7 个 spawn 站点迁移到 CliLaunchSpec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: merge tsconfig.base.json into tsconfig.json with full compiler options
The cherry-pick from 637c908 dropped jsx/strict/etc settings when removing
tsconfig.base.json. This commit restores them in a single tsconfig.json.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: merge tsconfig.base.json into tsconfig.json with full compiler options
The cherry-pick from 637c908 dropped jsx/strict/etc settings when removing
tsconfig.base.json. This commit restores them in a single tsconfig.json.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 20:59:29 +08:00
y574444354
d67b7e4010
fix: 修复 Windows nvm4w 路径下 upgrade 命令识别为 development 的问题
...
- doctorDiagnostic: 增加 Windows nvm4w/nodejs 路径检测
- 路径比较时统一规范化分隔符,确保跨平台匹配
- chore: bump version to 4.0.8
2026-04-16 20:38:26 +08:00
claude-code-best
3cb1e50b25
feat: 添加对 ACP 协议的支持 ( #284 )
...
* feat: 适配 zed acp 协议
* docs: 完善 acp 文档
2026-04-16 20:31:50 +08:00
y574444354
50109ff9f5
Merge branch 'pr-31'
2026-04-16 19:57:47 +08:00
y574444354
bd929f1db1
merge: 合并 main 分支,解决冲突
2026-04-16 19:53:05 +08:00
y574444354
fbeaf1395e
fix: 修复 CoStrict provider 模型选择与 token 估算问题
...
- ConsoleOAuthFlow: 替换 ModelPicker 为直接 Select 组件,避免
getAPIProvider() 竞态导致显示标准 Anthropic 模型列表
- modelOptions: 简化模型选项逻辑,CoStrict 凭证持有者统一走
CoStrict 模型缓存路径,加载中显示提示而非标准模型列表
- provider/index: 回写 usage 和 stop_reason 到已 yield 的
assistant messages,与 Anthropic 原生路径保持一致
- tokenEstimation: 非 Anthropic 原生 provider(costrict/openai/
grok/gemini)统一使用粗略 token 估算
- 品牌文案: Claude → CoStrict 相关措辞修正
2026-04-16 19:12:01 +08:00
claude-code-best
cfab161e28
feat(langfuse): LLM generation 记录工具定义
...
将 Anthropic 格式的工具定义转换为 Langfuse 兼容的 OpenAI 格式,
并在 generation 的 input 中以 { messages, tools } 结构传入,
以便在 Langfuse UI 中查看完整的工具定义信息。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 15:31:18 +08:00
Askhz
13ec1d4510
chore: back fetch.ts
2026-04-16 15:29:09 +08:00
costrict
22fd08537a
fix: 修复 fetch.ts preconnect 重复标识符类型错误
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 15:23:05 +08:00
Askhz
06be8bc88c
fix: csc auth login 默认使用 CoStrict OAuth 登录
...
`csc auth login` 默认打开 CoStrict 登录页面而非 Claude OAuth 页面。
添加 --claudeai / --console 参数保留 Anthropic OAuth 作为备选。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 15:07:17 +08:00
claude-code-best
90027279e6
feat: 添加环境变量支持以覆盖 max_tokens 设置
2026-04-16 13:01:07 +08:00
claude-code-best
f166165691
fix: 修复 n 快捷键导致关闭的问题
2026-04-16 11:04:23 +08:00
xixingde
417a2ada18
Merge branch 'main' of https://github.com/y574444354/csc
2026-04-16 10:58:08 +08:00
xixingde
b58f5b72b0
feat(agents): restrict Agent tool to specific sub-agents and add allowedTools to skills
2026-04-16 10:37:38 +08:00
geroge
294289be5b
Merge pull request #29 from y574444354/feat/security-review-v2
...
Feat/security review v2
2026-04-16 10:17:29 +08:00
xixingde
1e1d32205d
Merge branch 'dev' of https://github.com/y574444354/csc into dev
2026-04-16 09:43:10 +08:00
xixingde
48eca1f35b
fix(slash-command): propagate Agent(x,y,z) allowedAgentTypes restriction to forked command context
2026-04-16 00:14:36 +08:00
xixingde
28b0ecfaf2
fix(agents): remove isMainThread flag and update agent descriptions and tool restrictions
2026-04-15 22:27:50 +08:00
y574444354
003ff2d6cd
feat: 增强 Node.js 兼容性 — 扩展 Bun API polyfill 覆盖范围
...
- build.ts: 大幅扩展 Node.js Bun polyfill,新增 spawn、spawnSync、
file、gc、generateHeapSnapshot、embeddedFiles、semver、YAML、
version、stringWidth、wrapAnsi、listen 等 API 实现
- package.json: 更新描述为多模型终端 AI 编程助手,Node.js 为主要
运行时依赖,ws/yaml 移至 dependencies,bin 入口指向 cli-node.js
- scripts/defines.ts: 版本号更新至 4.0.5.1
- fetch.ts: fetch.preconnect 添加 Node.js 降级实现(net.createConnection)
2026-04-15 18:22:44 +08:00
kingboung
1dfbf08c0e
feat: 替换内置 security-review 为 CoStrict Security 版本
...
- 移除原版 security-review 内置命令(占位 plugin 迁移提示)
- 将 CoStrict Security skill 命令名从 strict-security-review 改为 security-review
- 更新 description 和 whenToUse 描述
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 17:09:18 +08:00
yhangf
0b11d6e215
fix(agents): change QuickExplore hierarchy level from L2 to L1
2026-04-15 16:37:00 +08:00
yhangf
316f306b99
refactor(agents): streamline agent system prompts
2026-04-15 16:25:40 +08:00
xixingde
75c510cb9d
feat(agents): add visibleTo access control and orchestrator agents for TDD/Wiki workflows
...
- Add `visibleTo` field to `BaseAgentDefinition` to restrict agent visibility to specific parent agent types
- Filter agents with `visibleTo` restrictions from wildcard agent lists in prompt generation
- Add new `TDD_AGENT` and `WIKI_AGENT` orchestrator agents as entry points for TDD and Wiki workflows
- Register `WIKI_AGENT` in built-in agents list with workflow grouping comments
- Mark all TDD sub-agents (`TddRunAndFix`, `TddTestAndFix`, `TddTestDesign`, `TddTestPrepare`) as `visibleTo: ['TDD']`
- Mark all Wiki sub-agents (`WikiProjectAnalyze`, `WikiCatalogueDesign`, `WikiDocumentGenerate`, `WikiIndexGeneration`) as `visibleTo: ['WIKI']`
- Mark workflow-specific agents (`DesignAgent`, `QuickExplore`, `Requirement`, `SubCoding`, `TaskCheck`, `TaskPlan`, `StrictSpec`) with appropriate `visibleTo` restrictions
- Refactor `strict-project-wiki` and `strict-test` skills to delegate directly to orchestrator agents via `context: 'fork'`
- Remove stale package-level node_modules symlinks
2026-04-15 15:49:28 +08:00
y574444354
4d446823ea
feat: 品牌重命名 claude → csc 并注册 update 命令
...
- 将用户可见的 CLI 提示从 claude 替换为 csc(错误信息、用法说明、文档)
- 注册 csc update / csc upgrade 子命令
- 设置 MACRO.PACKAGE_URL 为 @costrict/csc
- 更新 auto-updater 和启动流文档
2026-04-15 14:15:50 +08:00
xixingde
05c8fe9589
Merge branch 'main' into dev
2026-04-15 10:19:12 +08:00
Ubuntu
88e2ce1e70
refactor: 重构 provider、agents、status 及相关工具模块
2026-04-14 14:21:21 +00:00
claude-code-best
8442aaadd2
fix: 修复 n 快捷键导致关闭的问题
2026-04-14 21:18:36 +08:00
geroge
fd000d5cf7
Merge pull request #26 from Askhz/fix/init-model-load
...
fix: prioritize settings model and improve bun executable resolution
2026-04-14 16:51:42 +08:00
xixingde
06cd56f6b4
feat(skills): disable model invocation for user-only skills
...
delete .omc session and state files from repository
2026-04-14 15:19:22 +08:00
xixingde
3eb909567a
feat(agents): restrict Agent tool to specific sub-agents in strictPlan and strictSpec
2026-04-14 14:10:19 +08:00
Askhz
ccd135c4ed
fix: prioritize settings model over ANTHROPIC_MODEL env var and improve bun executable resolution
...
- Swap model resolution priority so user's explicit model selection via /login takes precedence over ANTHROPIC_MODEL environment variable
- Use process.execPath instead of hardcoded 'bun'/'bun.exe' for more reliable executable resolution across installation methods
- Disable biome formatter
2026-04-14 11:35:03 +08:00
y574444354
39d21d27c9
merge: sync upstream claude-code-best/claude-code main ( dad3ad2)
...
同步上游主仓库最新代码,整合以下新功能:
- feat: 工具层及 mcp 大重构 (#252 )
- feat: 远程群控 (#243 )
- feat: 添加对 langfuse 监控的支持 (#242 )
- feat: 完成第一个 mcp-chrome 接入版本
- feat: 添加模型 1M 上下文切换
- feat: langfuse 工具调用显示为嵌套结构
- feat: 加上 userId 的传递
- feat: Add Ultraplan Feature for Advanced Multi-Agent Planning (#232 )
- feat: Add brave as alternative WebSearchTool
- fix: 修复 Bun.hash 不存在问题
- fix: 修复缓存
- fix: 修复 interrupt 日志不上传
- fix: 修复 chrome 链接版本
- fix: 使用简化版本的 chrome 桥接器
- fix: 修复 node 环境没有 bun 的问题
- fix: 修复穷鬼模式的写入问题
- fix: 修复对穷鬼模式的 auto dream 和 session memory 越过
- fix: 修复初次登陆的校验问题
- fix(openai): fix stop_reason null, zero usage fields and max_tokens forwarding
- chore: 1.3.3 版本
- docs: 添加浏览器说明支持
冲突解决策略:
- 保留 CoStrict 品牌、4.0.x 版本号、csc bin 命令
- 保留 CoStrict 企业认证体系和 Agent 编排
- 采用上游的 1M context、langfuse、chrome mcp、远程群控等新功能
- 采用上游的 getDialogConfig/promptIdentifier 模式
- 采用上游的 FORCE_INTERACTIVE TTY 修复
- 合并两者:保留 CoStrict 品牌名 + 上游新代码模式
2026-04-14 11:18:05 +08:00
claude-code-best
be80da4ce0
fix: 修复缓存
2026-04-13 20:09:23 +08:00
claude-code-best
fce40fed1f
feat: 加上 userId 的传递
2026-04-13 19:04:51 +08:00
claude-code-best
a7e03a5b30
fix: 修复 interrupt 日志不上传
2026-04-13 18:12:23 +08:00
claude-code-best
05cabbbd73
feat: langfuse 工具调用显示为嵌套结构
2026-04-13 18:09:12 +08:00
yhangf
523018de61
feat(permissions): add configurable auto-select timeout for AskUserQuestion dialogs
2026-04-13 10:37:11 +08:00
claude-code-best
2fb1c9dcd8
feat: 工具层及 mcp 大重构 ( #252 )
...
* feat: 第一版大重构
* fix: 修复类型问题
* chore: 更新版本到 1.3.2
* Add brave as alternative WebSearchTool
* fix: 修正顺序
* fix: 修复对穷鬼模式的 auto dream 和 session memory 越过
* feat: 穷鬼模式去除 session-summary
* feat: 创建 builtin-tools 包,搬运所有工具实现
将 src/tools/ 下的全部 60 个工具目录迁移至 packages/builtin-tools/src/tools/,
内部导入路径已更新为 src/ alias 模式。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: 更新 src/ 中所有工具引用至 builtin-tools 包,删除 src/tools/
- src/tools.ts 及 178 个 src/ 文件的 import 路径从 ./tools/ 改为 builtin-tools/tools/
- 删除 src/tools/ 整个目录(已迁移至 packages/builtin-tools/)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: 添加 builtin-tools 路径别名至 tsconfig,更新 bun.lock
- tsconfig.json 新增 builtin-tools/* 和 builtin-tools 路径映射
- 新增 packages/builtin-tools/src 至 include
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor: 为 builtin-tools、mcp-client、agent-tools 添加 @claude-code-best 作用域前缀
所有包名及 import 路径统一添加 @claude-code-best/ 前缀:
- builtin-tools → @claude-code-best/builtin-tools
- mcp-client → @claude-code-best/mcp-client
- agent-tools → @claude-code-best/agent-tools
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: 修复 node 环境没有 bun 的问题
---------
Co-authored-by: Eric-Guo <eric.guocz@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 09:52:05 +08:00
claude-code-best
3cf94fbda0
fix: 修复对穷鬼模式的 auto dream 和 session memory 越过
2026-04-12 23:24:12 +08:00
claude-code-best
bd6448ecda
fix: 修正顺序
2026-04-12 23:12:09 +08:00
Eric-Guo
711440474c
Add brave as alternative WebSearchTool
2026-04-12 22:23:11 +08:00
claude-code-best
8399d9ed20
fix: 修复类型问题
2026-04-12 22:19:54 +08:00
claude-code-best
513ccc3003
fix: 修复需要鉴权的问题
2026-04-12 21:45:22 +08:00
claude-code-best
e770f1ef9d
feat: 完成第一个 mcp-chrome 接入版本
2026-04-12 21:32:09 +08:00
claude-code-best
227083d31f
fix: 修复截图 MIME 类型硬编码导致 API 拒绝的问题
...
macOS screencapture 输出 PNG,但代码硬编码 mimeType 为 image/jpeg,
导致 API 报错 "specified using image/jpeg but appears to be image/png"。
改为通过 magic bytes 检测实际图片格式。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 17:32:28 +08:00