林凯90331
f7a405f703
fix(utils): replace using syntax with withDisposable for node v20 compatibility
...
Node.js v20 does not support the syntax. Replace all patterns with a new helper that wraps the operation in try/finally and explicitly calls Symbol.dispose.
Also rename listBuiltinSkillNames to listBuiltinSkills in generate-review-builtin.ts.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 20:48:37 +08:00
DoSun
0fb2ea4af5
fix: 修正 listBuiltinSkills 导入名称
...
Co-Authored-By: Auto <noreply@anthropic.com>
2026-05-14 20:05:48 +08:00
DoSun
f5d6814a01
feat: 恢复 cloud 子命令注册
...
从 feat/server-refactor 分支还原 cloud 命令的 CLI 注册逻辑,
动态导入 cloudHandler 并透传所有参数给 cs-cloud 二进制。
Co-Authored-By: Auto <noreply@anthropic.com>
2026-05-14 19:59:02 +08: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
DoSun
62de2ddc20
Merge pull request #95 from y574444354/feat/server-refactor
...
Feat/server refactor
2026-05-14 19:14:34 +08:00
linkai0924
1c22fe8d2a
Merge pull request #94 from y574444354/feat/server-refactor-90331-2
...
feat(favorite): optimize list caching and expand MCP type support
2026-05-14 19:09:36 +08:00
林凯90331
fd36738e9e
feat(favorite): optimize list caching and expand MCP type support
...
Add 30s in-memory cache for favorite item list to reduce API calls
Expand supported MCP server types beyond local/remote to stdio/sse/ws/sdk and more
Change single MCP server conversion to use stdio type with separate command/args/env fields
Reduce page size from 100 to 20 for faster initial load
Switch parallel remote fetching to sequential to avoid rate limiting
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 18:56:44 +08:00
DoSun
481e6fc3c9
Merge remote-tracking branch 'origin/feat/server-refactor' into fix/serve-command-real-impl
2026-05-14 17:07:50 +08:00
Askhz
4b7922d59b
fix: 更新凭证路径注释为 ~/.costrict/share/auth.json
...
Co-Authored-By: CoStrict-DeepSeek-V4-Pro <deepseek-ai@claude-code-best.win>
2026-05-14 17:03:12 +08:00
Askhz
195c23dbb2
fix: 编译后二进制 serve 子进程 crash 报 unknown option --feature
...
getScriptArgsForChild() 无法正确识别编译后的二进制:argv[1] 仍为原始入口
路径(如 src/entrypoints/cli.tsx),被误判为脚本模式,导致 saveChildSpawnPrefix()
生成 --feature Bun 专有参数传给子进程,子进程不识别直接 crash。
修复:在所有判断之前增加 execPath basename 检查,非 bun/node 的可执行文件
直接视为编译二进制,返回空数组。
Co-Authored-By: CoStrict-DeepSeek-V4-Pro <deepseek-ai@claude-code-best.win>
2026-05-14 17:00:43 +08:00
xixingde
5a306c3ea7
feat(auth): update OAuth flow message to reference Costrict branding
2026-05-14 16:28:24 +08:00
xixingde
25ea4a0cf3
feat(auth): add remote API control config to gate third-party providers
2026-05-14 16:03:04 +08:00
DoSun
b11826c21c
fix: 替换 main 分支的假 server 命令为真实 serve 实现
...
- 移除 DangerousBackend、lockfile、createServerLogger 等不存在的 import
- 使用 EventBus + SessionManager + startServer 真实实现
- 添加 serve 子命令作为 server 的别名
- 默认 host 改为 127.0.0.1,idle-timeout 改为 1800000ms
- 启动 probe session 并正确处理 SIGINT/SIGTERM 关闭
2026-05-14 15:36:27 +08: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
DoSun
fd509086f3
fix: serve 模式下权限事件被 shouldAvoidPermissionPrompts 吞没导致直接拒绝
...
- 当 --permission-prompt-tool 指定时不设置 shouldAvoidPermissionPrompts,允许 can_use_tool 控制消息正常发出
- serve 默认权限模式从 acceptEdits 改为 default,确保权限检查链路完整
2026-05-14 15:04:17 +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
dc82486456
feat(rawDump): enable raw dump by default
...
Change isEnabled() logic so raw dump is on by default unless
explicitly disabled via CSC_DISABLE_RAW_DUMP=1 or
COSTRICT_DISABLE_RAW_DUMP=1.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 11:22:38 +08:00
林凯90331
12caa6706b
perf(rawDump): reduce CPU usage and fix worker spawn reliability
...
Add session messages and repo info caching to avoid repeated JSONL
parsing and git subprocess spawning across tasks.
Share state across all tasks in a single batch to minimize file lock
contention and JSON parse overhead.
Convert queue operations from sync to async to prevent event loop
blocking in the main process.
Restore inline batch worker fallback when external spawn fails,
and increase worker interval from 30s to 2min to reduce CPU impact.
Add 5s debounce per session+messageID to prevent duplicate enqueues.
Improve binary mode spawn reliability by falling back to node runtime
when bun is not available.
Signed-off-by: 林凯90331 <90331@sangfor.com>
Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-14 11:07:02 +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
geroge
42107f7d2f
Merge pull request #64 from y574444354/feat/migrate-review-agents
...
【Review】feat: 将 review skill 迁移到 extract-to-disk 架构
2026-05-13 19:38:26 +08:00
geroge
d3d0dd25d2
Merge pull request #80 from IronRookieCoder/fix/issues-31-32
...
fix: 修复任务列表数字ID乱序和内存轮询导致滚动跳动
2026-05-13 19:37:25 +08:00
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
DoSun
8505fce51a
feat: 会话满时 LRU 驱逐空闲会话,cloud 命令透传参数
2026-05-13 17:56:18 +08:00
IronRookieCoder
5ee2d6dcc3
fix: 修复任务列表数字ID乱序和内存轮询导致滚动跳动
...
两个修复:
1. 任务列表数字ID乱序(#32):新增 compareTaskIds 比较函数,纯数字ID按
数值大小排序(1, 2, 3, 10 而非 1, 10, 2, 3),非纯数字回退到
localeCompare 自然排序。listTasks 和 taskStateMessage 两处排序入口
均已修复。
2. 终端 RSS 内存轮询引发滚动跳动(#31):useRssDisplay hook 新增 isLoading
参数,仅在加载中启用定时轮询,闲时仅渲染一次内存占用值,避免 Ink 重渲染
干扰用户滚动查看结果。
附:TaskCreateTool.isConcurrencySafe 改为 false,防止并发任务创建的文件
IO 竞态。
Co-Authored-By: CoStrict-DeepSeek-V4-Pro <deepseek-ai@claude-code-best.win>
2026-05-13 16:44:13 +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
Askhz
750400470e
fix: 修复 /agents/commands 接口 duplicate command name 和返回多余 TUI 命令
...
1. cost/index.ts 重导出 usage/index.ts,COMMANDS() 中移除 cost 避免 BuildManifest 重复校验
2. /command 端点只返回 prompt 类型的 skills 命令,排除 TUI 命令
Co-Authored-By: DeepSeek-V4-Pro-VIP <deepseek-ai@claude-code-best.win>
2026-05-13 16:13:42 +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
c2eb6bff90
fix: 清理 main 分支的 stub .js 文件,恢复有 .ts 源文件的命令模块
2026-05-13 10:36:04 +08:00
DoSun
3bfc695cb4
chore: 清理临时 rebase 脚本
2026-05-13 10:29:34 +08:00
DoSun
3abca0c053
merge: 合并 origin/main 到 feat/server-refactor,解决冲突并保留 server 完整实现
2026-05-13 10:27:14 +08:00
DoSun
f2d2083b94
feat: 添加 CSC_CLOUD_INVOKER 环境变量标识调用来源
2026-05-13 10:05:37 +08:00
Askhz
902b7d4ed5
fix: 移除闲置字段id/name,认证文件路径改为~/.costrict/share/auth.json
...
Co-Authored-By: CoStrict-DeepSeek-V4-Pro <deepseek-ai@claude-code-best.win>
2026-05-13 09:54:40 +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
kingboung
e0f8c1a289
fix: show (bundled) label for /review and /security-review commands
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 20:45:33 +08:00
DoSun
ef151d84ba
feat(server): 借鉴 vibe-kanban 优化子进程管理与消息可靠性
...
- 添加内存消息缓冲区,解决 tab 切换后用户消息丢失问题
- prompt() 去除重复 waitReady(),减少不必要的等待
- 新增 kill_on_drop 工具(FinalizationRegistry),待后续启用
- 新增权限模式 hooks 自动配置(仅在显式指定 permission_mode 时生效)
- 清除 serve 模式下的调试 timing 日志
2026-05-12 20:38:35 +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
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
DoSun
daa2dce7b9
Merge pull request #70 from y574444354/feat/server-refactor-90331
...
feat(server): support reading subagent transcripts
2026-05-12 19:14:04 +08:00
kingboung
680342bc28
chore: remove /strict:review and /strict:security-review commands
...
Only keep /review and /security-review via extract-to-disk.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 18:00:10 +08:00
DoSun
be821416e5
Merge pull request #71 from Askhz/fix/server-agent-switch
...
fix(server): 修复内置 agent 切换时系统提示未注入及 @agent 出现在用户消息中的问题
2026-05-12 17:54:11 +08:00
Askhz
e7c384bca5
fix(server): 修复内置 agent 切换时系统提示未注入及 @agent 出现在用户消息中的问题
...
- set_agent 控制消息处理中,查找对应 AgentDefinition 并将其 getSystemPrompt()
写入 options.systemPrompt,使 QueryEngine.ask() 能正确使用 agent 系统提示
- 将 "build"(前端默认模式的显示名称)处理为 undefined,切换回默认模式时
同步清空 options.systemPrompt 和 mainThreadAgentType
- /prompt 和 /prompt_async 接口不再将 agentMentions (@agent-*) 拼入 content,
该语法仅用于 REPL 命令模式,出现在 server 模式的 prompt 中会被模型误解
Co-Authored-By: Sonnet-4.6-CoStrict <noreply@anthropic.com>
2026-05-12 17:50:07 +08:00
kingboung
08ad8a55da
refactor: strict review variants load skill via Skill tool
...
Remove embedded files, use Skill tool to load review/security-review
skill instead, matching the same mechanism as /review.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 17:38:56 +08:00
kingboung
909e001100
feat: register /strict:review and /strict:security-review via registerBundledSkill
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 17:31:24 +08:00
kingboung
c374cab5ed
fix: remove registerBundledSkill for strict review variants
...
All review commands now exclusively use extract-to-disk + skill scanner,
no registerBundledSkill duplication.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 17:16:09 +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