Commit Graph

504 Commits

Author SHA1 Message Date
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
y574444354
928afd355d chore: bump version to 4.0.7 2026-04-16 20:05:15 +08:00
y574444354
50109ff9f5 Merge branch 'pr-31' 2026-04-16 19:57:47 +08:00
geroge
ae0c21765b
Merge pull request #32 from y574444354/feat/node-compat-polyfill-enhancement
feat: Node.js 兼容性增强与 CoStrict provider 修复
2026-04-16 19:56:04 +08:00
y574444354
132c682323 chore: 清理 .omc 缓存文件 2026-04-16 19:54:08 +08:00
y574444354
bd929f1db1 merge: 合并 main 分支,解决冲突 2026-04-16 19:53:05 +08:00
y574444354
e856ec1828 chore: 将 .omc/ 整个目录加入 gitignore 2026-04-16 19:51:43 +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
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
y574444354
531bd9f735 chore: bump version to 4.0.6
- 版本号升级至 4.0.6
- CHANGELOG.md 新增 4.0.6 变更记录
- package.json 描述更新,undici 移至 dependencies
2026-04-16 11:29:23 +08:00
geroge
4790336d03
Merge pull request #28 from y574444354/sync/upstream-main-20250415
merge: sync upstream claude-code-best/claude-code main (1a4e970)
2026-04-16 11:08:42 +08:00
claude-code-best
da60b49b86 fix: 修复类型问题(#267) (#271)
* fix: 修复 Bun 的 polyfill 问题

* fix: 类型修复完成

* feat: 统一所有包的类型文件

* fix: 修复构建问题
2026-04-16 11:07:01 +08:00
claude-code-best
ca28559381 docs: 修复链接 2026-04-16 11:05:18 +08:00
claude-code-best
b241223e70 fix: 修复 node 下 ws 没打包问题 2026-04-16 11:05:18 +08:00
claude-code-best
f166165691 fix: 修复 n 快捷键导致关闭的问题 2026-04-16 11:04:23 +08:00
xixingde
e694ef6a1c docs: update contributors 2026-04-16 03:00:05 +00: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
y574444354
81f54ed981 docs: update contributors 2026-04-16 02:17:43 +00: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
geroge
4be0266e95
Merge pull request #30 from y574444354/feat/node-compat-polyfill-enhancement
feat: 增强 Node.js 兼容性 — 扩展 Bun API polyfill 覆盖范围
2026-04-16 10:13:19 +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
25d155e651 chore: 更新 .gitignore 添加 security-review_result 和 *.bun-build
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 17:17:58 +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
kingboung
05cc71cc83 feat: 内置 skill 下载改用 SSH 传输并增加 commit SHA 缓存比对
移除 GitHub API / raw.githubusercontent.com 的 HTTPS 下载路径,
改为纯 SSH 传输(git ls-remote + git clone)。新增 commit SHA 缓存
比对机制,远程与本地 SHA 一致且缓存文件存在时跳过下载。

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
d7f171e2dc docs: 添加 CHANGELOG.md 记录 4.0.1-4.0.5 版本变更 2026-04-15 15:09:43 +08:00
y574444354
7419c72c99 chore: bump version to 4.0.5 2026-04-15 14:25:27 +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
y574444354
efedc9ff33 微调本地包 2026-04-15 13:06:10 +08:00
xixingde
05c8fe9589 Merge branch 'main' into dev 2026-04-15 10:19:12 +08:00
Ubuntu
4c18f4fdf4 chore: remove node_modules from tracking 2026-04-14 14:23:27 +00:00
Ubuntu
88e2ce1e70 refactor: 重构 provider、agents、status 及相关工具模块 2026-04-14 14:21:21 +00:00
Ubuntu
3c41abe5ef linshi fangchu node_modules 2026-04-14 14:21:21 +00:00
geroge
24319c4838
Merge pull request #27 from Askhz/fix/init-model-load
chore: bump version to 4.0.4
2026-04-14 21:38:13 +08:00
Askhz
b34a8164c2 chore: bump version to 4.0.4 2026-04-14 17:06:14 +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
y574444354
5dd37f97dc docs: update contributors 2026-04-14 06:50:40 +00:00
geroge
7d51b873a3
Merge pull request #25 from y574444354/sync/upstream-main
merge: sync upstream claude-code-best/claude-code (dad3ad2)
2026-04-14 14:50:24 +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