Commit Graph

766 Commits

Author SHA1 Message Date
Ubuntu
e4ab168d72 fix: include run-parallel.mjs in npm package files 2026-04-23 12:02:14 +00:00
claude-code-best
c3d63c8fe2 chore: 添加 release 脚本 2026-04-23 19:58:55 +08:00
Ubuntu
b920b6315c chore: bump version to 4.0.9 and update package info
- Rename package to @costrict/csc
- Update description to costrict
- Add CHANGELOG for v4.0.9
2026-04-23 11:42:28 +00:00
Ubuntu
55dd7fbba1 chore: remove desktop command, force condensed logo, update tip copy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-23 11:20:11 +00:00
Bot
7d4c4278c0 fix: 将 highlight.js 改为静态导入以兼容 Bun --compile 模式
- cliHighlight.ts: 使用静态 import 替换 dynamic import('highlight.js'),
  因为编译模式下模块解析指向内部 bunfs 路径导致无法找到
- color-diff-napi/src/index.ts: 同样改为静态导入,移除 createRequire 延迟加载
2026-04-23 18:47:31 +08:00
Bot
93bfdabff1 feat: 添加 Exa AI 搜索适配器
- 新增 ExaSearchAdapter,基于 MCP 协议调用 Exa 搜索 API
- WebSearchTool 支持 num_results、livecrawl、search_type、context_max_characters 等高级选项
- 非 Anthropic 官方 base URL 时默认使用 Exa 适配器
2026-04-23 18:43:41 +08:00
claude-code-best
1173a62301 refactor: 统一 log.ts/debug.ts 的测试 mock 为共享定义
- 新增 tests/mocks/log.ts 和 tests/mocks/debug.ts,覆盖源文件全部实际导出
- 移除旧 mock 中不存在的导出(logToFile、logEvent、getLogFilePath)
- 13 个测试文件改为使用共享 mock,避免定义分散和不一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-23 11:39:53 +08:00
claude-code-best
7ea69ca279 fix: 修复 build 过程中的问题 2026-04-23 11:39:46 +08:00
yhangf
41d1f88356 chore: remove UI text replacement candidates report 2026-04-23 11:31:05 +08:00
y574444354
7806df4e3d Merge branch 'main' of https://github.com/y574444354/csc 2026-04-23 10:30:28 +08:00
claude-code-best
4e82fb5974
Merge pull request #330 from claude-code-best/feature/improve-v2-final
feat: 整合功能恢复与技能学习闭环 v2 (重构版)
2026-04-22 22:55:20 +08:00
claude-code-best
f43350e600 fix: 修复 4 个测试失败(路径规范化、SDK 签名变更、空消息防护)
- projectContext.test.ts: 使用 realpathSync 处理 macOS /var→/private/var 符号链接
- bedrockClient.test.ts: 适配 Bedrock SDK v0.80 Bearer 认证(原 AWS4-HMAC-SHA256)
- bridge.ts: forwardSessionUpdates 添加 null guard 防止空消息导致 TypeError

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 22:52:37 +08:00
unraid
23fcbf9004 feat: 添加 UI 组件增强与测试覆盖
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
23bb09d240 feat: 添加 model/provider 层改进
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
d208855f07 feat: 添加 builtin-tools 增强与测试覆盖
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
7881cc617c feat: 增强 ACP 桥接与权限处理
- 增强 ACP agent 测试覆盖
- 扩展 ACP bridge 测试用例
- 改进 ACP utils 权限管道

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
c7e1c50b86 feat: 添加服务层增强与零散改进
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
2247026bd5 chore: 添加脚本与构建配置更新
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
eec961352b feat: 添加 napi 包测试覆盖与 stub 改进
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
fb41513b32 feat: 添加工具类增强与状态管理改进
- 新增 workflowRuns、remoteTriggerAudit、pipeStatus 等工具
- 增强 permissionSetup: auto mode 和 bypass permissions 始终可用
- 新增多组测试覆盖 (modifiers, teamDiscovery, deepLink 等)
- 修复 parseInt 缺少 radix 参数
- 移除多余 biome-ignore 注释

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:10 +08:00
unraid
94c4b37eed feat: 添加 summary 命令 TypeScript 重写与其他命令增强
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
6c5df395c3 feat: 添加 compact 缓存与上下文压缩增强
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
be97a0b010 feat: 添加 Bedrock API 客户端及 API 层增强
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
59f8675fa3 feat: 添加 Windows Terminal swarm 后端及 swarm 增强
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
c4775fff58 feat: 添加 autonomy 自主模式命令系统
- 新增 autonomy CLI handler 和交互式面板
- 新增 autonomyCommandSpec 命令规范定义
- 新增 autonomyAuthority 权限控制
- 新增 autonomyStatus 状态管理
- 注册 CLI 子命令 (claude autonomy status/runs/flows/flow)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
31b2fdd97a feat: 添加 provider usage 统计与余额查询
- 新增 providerUsage 服务(anthropic/bedrock/openai 适配器)
- 新增余额查询(deepseek/generic poller)
- StatusLine 保留原有 rateLimits 接口不变

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
1837df5f88 feat: 添加 skill learning 技能学习闭环系统
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:09 +08:00
unraid
04c7ed4250 chore: 删除废弃文档和残留文件
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 22:38:08 +08:00
geroge
3d86840c4b
Merge pull request #37 from Askhz/fix/model-use
fix: 修复对话时模型不一致问题
2026-04-22 18:03:19 +08:00
Askhz
772739c6c9 fix: 在 CoStrict provider 下侧查询统一使用主循环模型
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 16:09:58 +08:00
Askhz
98c9f219f7 fix: pass through user-configured model name instead of overriding with first API model
CoStrict provider now directly passes the user's configured model name
to the API, instead of replacing it with the first model from the
/ai-gateway/api/v1/models list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 15:48:15 +08:00
yhf
3e8a82d01c
Merge pull request #36 from Askhz/fix/model-chat
fix: restrict ANTHROPIC_MODEL to anthropic-compatible providers in model picker
2026-04-22 11:39:13 +08:00
Askhz
c1b7bbc2d3 fix: restrict ANTHROPIC_MODEL to anthropic-compatible providers in model picker
- Only show ANTHROPIC_MODEL env var model for firstParty/bedrock/vertex/foundry
- Do not leak it into OpenAI/Gemini/Grok/CoStrict pickers
- Remove settings.model from custom model options

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 11:17:28 +08:00
yhf
2393020e62
Merge pull request #35 from Askhz/chore/change-logo
chore: change logo
2026-04-22 09:40:53 +08:00
yhf
f9378fc7d1
Merge pull request #34 from Askhz/fix/model-chat
fix: handle reasoning_content for thinking mode in OpenAI compatibility layer
2026-04-22 09:40:16 +08:00
yhangf
5197e2d7cb refactor(cli): rename command references from 'claude --resume' to 'csc --resume' 2026-04-22 09:34:58 +08:00
Askhz
3f7fa33aa1 fix: not login can not show model 2026-04-21 21:08:44 +08:00
yhangf
bd150468b0 chore(branding): replace Claude/Anthropic references with CoStrict in UI strings 2026-04-21 20:13:14 +08:00
Askhz
7ad764b5a4 chore: update changelog URL to y574444354/csc repository
- Changed CHANGELOG_URL and RAW_CHANGELOG_URL to point to y574444354/csc
- Updated both GitHub page and raw content URLs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 19:38:55 +08:00
Askhz
32c6f68734 test: fix empty thinking block test expectation
The code sets reasoning_content to ' ' for empty thinking blocks when
enableThinking is true, but the test expected undefined. Updated the
test to match the actual behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 19:28:08 +08:00
Askhz
3afc49eb82 chore: change terminalTitle 2026-04-21 17:39:53 +08:00
claude-code-best
711927f01b chore: 更新 lock 文件 2026-04-21 08:20:40 +00:00
claude-code-best
956e98a445 fix: 修复重复依赖声明 2026-04-21 16:16:38 +08:00
claude-code-best
cee62bc654 fix: 修复 model alias 导致无限递归栈溢出
当用户 settings 中配置 model = "opus[1m]" 等 alias 值时,
getDefaultOpusModel() → parseUserSpecifiedModel() → getDefaultOpusModel()
形成无限递归,导致启动时 RangeError: Maximum call stack size exceeded。

在 getDefaultOpusModel/Sonnet/Haiku 的 fallback 路径中增加
isAliasOrAliasWithSuffix 守卫,跳过 alias 值直接使用硬编码默认值。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 16:10:16 +08:00
Askhz
c28cd05d89 fix: handle reasoning_content for thinking mode in OpenAI compatibility layer
- Add reasoning_content field when thinking mode is enabled
- Set reasoning_content to empty string when no thinking content available
- Enable model auto-detection for kimi provider
- Add thinking mode support to costrict provider
2026-04-21 15:48:22 +08:00
y574444354
38a604e60e chore: comment out --allow-dangerously-skip-permissions option 2026-04-21 14:35:25 +08:00
claude-code-best
5fc7c8e13d chore: 添加 highlight.js 包 2026-04-21 12:42:10 +08:00
claude-code-best
300faa18d0 Merge branch 'feature/unknown-llm-feature-test' 2026-04-21 12:06:19 +08:00
y574444354
19112528d5 docs: update contributors 2026-04-21 01:39:19 +00:00
geroge
83beec0b5e
Merge pull request #33 from Askhz/refactor/login-logic
refactor: 精简登录选项,保留 4 个主要登录方式
2026-04-21 09:39:06 +08:00