geroge
9975d8c38d
Merge branch 'claude-code-best:main' into main
2026-04-10 15:42:09 +08:00
geroge
989bd7f2a7
Merge pull request #17 from Askhz/feat/disable-nonessential-traffic
...
feat(cli): disable nonessential traffic and remote settings by default
2026-04-10 15:42:00 +08:00
geroge
c5b44cbe4d
Merge pull request #18 from y574444354/refactor/replace-claude-with-costrict
...
refactor: replace Claude's with CoStrict's in user-facing copy
2026-04-10 15:40:14 +08:00
y574444354
8ea29466ee
refactor: replace "Claude's" with "CoStrict's" in user-facing copy
...
Replace all "Claude's" references with "CoStrict's" across 34 source files
including commands, components, services, tools, and utilities.
2026-04-10 15:35:08 +08:00
Askhz
49ec57a226
feat(cli): disable nonessential traffic and remote settings by default
2026-04-10 14:50:27 +08:00
y574444354
121537e969
docs: update contributors
2026-04-10 06:24:46 +00:00
y574444354
2f3038c0ef
Merge pull request #16 from yhangf/main\n\nrefactor skills structure\n\n* docs: update contributors\n* refactor(skills): move projectWiki and tdd skills from bundled to src/costrict/skill\n* docs: update contributors
2026-04-10 14:24:24 +08:00
xixingde
47b2db23df
feat(strictPlan): add allowedTools configuration to restrict available tools
2026-04-10 12:24:43 +08:00
xixingde
082345b8aa
refactor(costrict): replace SpecPlan agent with StrictPlan skill
2026-04-10 12:17:56 +08:00
guunergooner
c82f59943c
fix(openai): fix stop_reason null, zero usage fields and max_tokens forwarding
...
- Fix stop_reason always null in assembled AssistantMessage by applying
the value captured from message_delta event
- Reset partialMessage to null after message_stop to prevent duplicate
AssistantMessage emission causing doubled content in next API request
- Forward computed maxTokens into buildOpenAIRequestBody as max_tokens
so OpenAI-compatible endpoints receive the intended output cap
- Extract assembleFinalAssistantOutputs helper to deduplicate message
assembly logic between message_stop handler and post-loop fallback
- Fix test helper to use events parameter instead of hidden global
- Add regression test for max_tokens request forwarding
Signed-off-by: guunergooner <tongchao0923@gmail.com>
2026-04-10 12:17:52 +08:00
claude-code-best
e70319e8f5
docs: 更新远程控制及 rg 下载
2026-04-10 12:11:04 +08:00
y574444354
79a058e8ce
docs: update contributors
2026-04-10 03:02:08 +00:00
y574444354
90908ba929
merge upstream/main: 同步上游更新并解决冲突
...
冲突解决策略:
- CLAUDE.md: 保留版本号 4.0.1 和品牌化(csc/claude-code-best),
采纳上游的 CI 信息、Ink 框架位置提醒、Type Safety Guidelines
- configs.ts: 保留 costrict provider,同时采纳上游新增的 grok provider
- ConsoleOAuthFlow.tsx: 保留简洁的 orgResult.message 写法
- contributors.svg: 使用上游版本
2026-04-10 10:57:02 +08:00
xixingde
46ba58e46e
refactor(strictPlan): update system prompt to clarify role and correct tool references
2026-04-10 10:29:56 +08:00
claude-code-best
609e91143f
docs: 尝试 docs 文档更新
2026-04-10 10:15:19 +08:00
yhangf
d18c9ac86a
docs: update contributors
2026-04-10 02:10:12 +00:00
yhangf
b3207747c4
refactor(skills): move projectWiki and tdd skills from bundled to src/costrict/skill
2026-04-10 10:09:48 +08:00
xixingde
2f115cfd0b
refactor(agents): reorganize strictPlan agent workflow and remove constraints
2026-04-10 10:00:09 +08:00
yhangf
8b6bca6820
docs: update contributors
2026-04-10 01:50:04 +00:00
y574444354
b00608c2f3
docs: update contributors
2026-04-10 01:49:02 +00:00
geroge
1f68cd74e3
Merge pull request #14 from Askhz/refactor/first-login
...
refactor: remove OAuth/preflight from onboarding and fix model picker reload after CoStrict login
2026-04-10 09:48:50 +08:00
xixingde
7c35afe819
docs: update contributors
2026-04-10 01:44:11 +00:00
y574444354
a9ee8d6317
docs: update contributors
2026-04-10 01:39:45 +00:00
geroge
795000f116
Merge pull request #15 from yhangf/main
...
Migrate StrictSpec workflow to CSC with two-layer architecture
2026-04-10 09:39:32 +08:00
yhangf
697c5fe29d
docs: update contributors
2026-04-10 01:34:22 +00:00
yhangf
f5489e0880
Merge branch 'main' of https://github.com/yhangf/csc
2026-04-10 09:34:08 +08:00
yhangf
0d1754614a
refactor(agents): 改回2层架构,StrictSpec 直接调 SubCoding
...
- StrictSpec 精简为~60行,stage 4 直接调 SubCoding(绕过 SpecPlan 中间层)
- 移除 SpecPlan 注册(3层嵌套对外部用户不可用,ALL_AGENT_DISALLOWED_TOOLS 限制)
- SubCoding 自带探索/实施能力,无需上层准备 proposal/task.md
- 支持 teammates 并行调用 SubCoding,自动降级串行
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 09:32:21 +08:00
yhangf
7ee0b3a6a2
refactor(agents): 清理 StrictSpec 架构,删除 PlanManager
...
- StrictSpec 精简为纯4阶段分发器(~40行),只负责编排,不含实施细节
- SpecPlan 成为唯一实施协调逻辑来源(探索→提案→验证→实施→收尾)
- 删除 planManager.ts 文件
- builtInAgents.ts 去除重复注册、移除 PLAN_MANAGER_AGENT
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 09:23:19 +08:00
yhangf
d7800bdde9
docs: update contributors
2026-04-10 00:56:26 +00:00
yhangf
bb1e88ea82
Merge branch 'main' of https://github.com/yhangf/csc
2026-04-10 08:56:09 +08:00
yhangf
fc9bbc9b0f
Merge pull request: feat/strictspec-agent
...
迁移 StrictSpec 工作流到 csc,采用2层架构:
- StrictSpec 作为唯一协调者,直接调度 Requirement/DesignAgent/TaskPlan/QuickExplore/TaskCheck/SubCoding
- 支持 SubCoding teammates 并行实施,自动降级串行
- 注册所有叶子 agent 到 builtInAgents
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 08:49:23 +08:00
claude-code-best
637531f81f
fix(types): simplify bridge transport message type
...
Replace StdoutMessageWithSession conditional type with simpler
TransportMessage intersection type. The conditional type was
over-engineered for what is just StdoutMessage & { session_id? }.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:55:54 +08:00
claude-code-best
875510e1eb
docs: update CLAUDE.md with architecture details and type safety guidelines
...
- Update build/dev mode descriptions to reflect current feature flags
- Add workspace packages table and multi-API compatibility layer docs
- Add Type Safety Guidelines section: prohibit `as any` in non-test code,
document proper alternatives (Record<string, unknown>, dual assertion,
type guards, specific SDK types)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:55:05 +08:00
claude-code-best
34bbc1d403
fix(types): replace all as any with proper type assertions
...
Eliminate unsafe `as any` casts across 21 non-test source files,
replacing them with specific type annotations:
- Bridge transport: use StdoutMessage type for write/writeBatch calls
- print.ts: type msg.request as Record<string, unknown> for unknown
SDK control subtypes; use StdoutMessage for output.enqueue()
- API providers (openai/grok/gemini): import ChatCompletion types,
type streams as AsyncIterable<ChatCompletionChunk>, type request
bodies as ChatCompletionCreateParamsStreaming
- Computer use executor: use Partial<ResolvePrepareCaptureResult>
for cross-platform screenshot result
- Components: replace Ink color string casts with proper typing
- Win32 bridge: type stdin as Writable after null check
All 2453 tests pass with 0 failures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:51:33 +08:00
claude-code-best
a14d3dc8f0
fix(types): clean type fixes across 92 files
...
Apply proper TypeScript type corrections without any unsafe casts:
- Fix unknown/never/{} types from decompilation
- Correct function signatures and parameter types
- Add missing type declarations and interfaces
- Fix Ink component prop types
- Update API client/provider type annotations
Test files with mock data casts are included as-is (acceptable pattern).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 23:45:56 +08:00
claude-code-best
ab3d8ef87e
docs: update contributors
2026-04-09 14:04:36 +00:00
claude-code-best
dfce6d02f9
docs: 更新私有部署文档
2026-04-09 22:03:54 +08:00
claude-code-best
01cf45f4ac
fix: 修复 permission 面板
2026-04-09 22:03:54 +08:00
HitMargin
e6affc7053
1. 修复 src/commands/fork/index.ts — 将空 stub 改为有效的 Command 定义 2. 新增 src/commands/fork/fork.tsx — 完整实现 /fork 命令,复用了 AgentTool 的 fork 子 agent 逻辑 ( #221 )
...
* 1. 修复 src/commands/fork/index.ts — 将空 stub 改为有效的 Command 定义
2. 新增 src/commands/fork/fork.tsx — 完整实现 /fork 命令,复用了 AgentTool 的 fork 子 agent 逻辑
* Update src/commands/fork/fork.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix
---------
Co-authored-by: HitMargin <hitmargin@qq.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-09 21:53:07 +08:00
Alan
bb07836231
fix: support CRLF SSE frame parsing ( #223 )
2026-04-09 21:52:28 +08:00
Askhz
a33063fbad
refactor: remove OAuth/preflight from onboarding and fix model picker reload after CoStrict login
...
- Remove preflight and OAuth steps from onboarding flow
- Clear both modelType and model settings on logout
- Reload ModelPicker via key after successful CoStrict login instead of closing it
- Pre-fetch and cache CoStrict models silently after login
2026-04-09 21:10:32 +08:00
yhangf
51b88ecb24
refactor(agents): 改为2层架构,StrictSpec 直接调度所有叶子 agent
...
- StrictSpec 吸收 SpecPlan 的全部实施协调逻辑
- 完整流程:Requirement→DesignAgent→TaskPlan→QuickExplore/TaskCheck/SubCoding
- 移除 SpecPlan 注册(不再是链路中间层)
- 调用深度:StrictSpec → leaf agents(2层)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 21:00:52 +08:00
geroge
e5f88ca25b
Merge pull request #13 from xixingde/main
...
多 Agent 增强
2026-04-09 20:52:43 +08:00
yhangf
1f768d682a
refactor(agents): 3层架构重构 StrictSpec 工作流
...
- SpecPlan 合并 PlanManager/SpecPlan/PlanApply 为统一 Layer 2 协调者
- StrictSpec Stage 4 直接调用 SpecPlan,移除中间层 PlanManager
- SpecPlan 支持 SubCoding 串行(模式A)和 teammates 并行(模式B),自动降级
- builtInAgents.ts 移除 PLAN_MANAGER_AGENT 注册(不再是 StrictSpec 链路必需)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 20:52:41 +08:00
xixingde
69e946e290
docs: update contributors
2026-04-09 12:48:11 +00:00
claude-code-best
87230cf3bf
docs: update contributors
2026-04-09 12:47:35 +00:00
claude-code-best
8c619a215c
build: 修复构建报错
2026-04-09 20:47:13 +08:00
xixingde
57d0e1feac
refactor(agents): consolidate PlanApply functionality into StrictPlan agent
...
- Remove separate PlanApply agent and integrate task distribution logic directly into StrictPlan agent
- Move PlanApply and TDD agents to backup directory
- Update StrictPlan system prompt to reflect dual role as PlanAgent and CodingAgent
- Update builtInAgents registry to remove PlanApply and update TDD import path
2026-04-09 20:46:18 +08:00
xixingde
12601d3faf
Merge branch 'main' of https://github.com/xixingde/csc
2026-04-09 20:45:06 +08:00
yhangf
fe8ad9df69
feat: migrate strictSpec workflow agents into csc built-in agent registry
...
Register 6 previously-unregistered costrict agents as first-class built-in
agents: StrictSpec (4-stage orchestrator), Requirement, DesignAgent, TaskPlan,
PlanManager, and SpecPlan.
Adapt system prompts in strictSpec.ts, planManager.ts, specPlan.ts to use the
csc Agent tool (subagent_type parameter) instead of the legacy costrict-specific
`task` tool. Also fix a broken relative import in taskPlan.ts.
Agent call chain for StrictSpec workflow:
StrictSpec → Requirement / DesignAgent / TaskPlan / PlanManager
PlanManager → SpecPlan
SpecPlan → QuickExplore / TaskCheck / PlanApply
PlanApply → SubCoding
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 20:44:50 +08:00