claude-code-best
1086f68381
docs: 增加测试及 auto mode 文档
2026-04-02 15:06:51 +08:00
claude-code-best
006ad97fbb
test: 新增测试代码文件
2026-04-02 14:44:56 +08:00
claude-code-best
9c3803d16b
docs: 指定测试计划
2026-04-02 14:14:35 +08:00
claude-code-best
5fda87246d
docs: 更新一下文档
2026-04-02 11:33:15 +08:00
claude-code-best
3c5eb0edbd
Merge branch 'test/test-most-core-func'
2026-04-02 11:32:17 +08:00
claude-code-best
4f323efb61
test: Phase 5 — 添加 12 个测试文件 (+209 tests, 1177 total)
...
新增覆盖: effort, tokenBudget, displayTags, taggedId,
controlMessageCompat, MCP normalization/envExpansion,
gitConfigParser, formatBriefTimestamp, hyperlink, windowsPaths, notebook
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 10:11:43 +08:00
claude-code-best
28e40ddc67
refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入
...
- 删除 cli.tsx 顶部的 globalThis.MACRO / BUILD_* / feature polyfill
- 新增 scripts/defines.ts 作为 MACRO define 映射的单一来源
- 新增 scripts/dev.ts,通过 bun run -d 在转译时注入 MACRO 常量
- build.ts 引用 getMacroDefines() 实现构建时内联
- 清理 global.d.ts (移除 BUILD_*, MACRO 函数声明)
- 55 个 MACRO 消费文件零改动
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 09:51:48 +08:00
claude-code-best
21ac9e441f
test: Phase 2-4 — 添加 12 个测试文件 (+321 tests, 968 total)
...
Phase 2 (轻 Mock): envUtils, sleep/sequential, memoize, groupToolUses, dangerousPatterns, outputLimits
Phase 3 (补全): zodToJsonSchema, PermissionMode, envValidation
Phase 4 (工具模块): mcpStringUtils, destructiveCommandWarning, commandSemantics
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 09:29:01 +08:00
claude-code-best
2d9c2adce3
docs: 排查 test 文件夹
2026-04-02 09:14:49 +08:00
claude-code-best
acfaac5f14
test: Phase 1 — 添加 8 个纯函数测试文件 (+134 tests)
...
- errors.test.ts: 28 tests (isAbortError, toError, errorMessage, getErrnoCode, isFsInaccessible, classifyAxiosError 等)
- shellRuleMatching.test.ts: 22 tests (permissionRuleExtractPrefix, hasWildcards, matchWildcardPattern, parsePermissionRule 等)
- argumentSubstitution.test.ts: 18 tests (parseArguments, parseArgumentNames, generateProgressiveArgumentHint, substituteArguments)
- CircularBuffer.test.ts: 12 tests (add, addAll, getRecent, toArray, clear, length)
- sanitization.test.ts: 14 tests (partiallySanitizeUnicode, recursivelySanitizeUnicode)
- slashCommandParsing.test.ts: 8 tests (parseSlashCommand)
- contentArray.test.ts: 6 tests (insertBlockAfterToolResults)
- objectGroupBy.test.ts: 5 tests (objectGroupBy)
总计:781 tests / 40 files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 08:50:29 +08:00
claude-code-best
2ca56977bf
Merge pull request #30 from claude-code-best/test/test-most-core-func
...
Test/test most core func
2026-04-02 08:50:23 +08:00
claude-code-best
91c5bea27a
docs: 添加后续测试覆盖计划 (Phase 1-4)
...
4 个阶段共计 ~213 tests / 20 files,目标从 647 提升至 ~860 tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 08:46:09 +08:00
claude-code-best
717cc55195
docs: 更改 readme
2026-04-02 08:43:01 +08:00
claude-code-best
0d89079694
docs: 更新测试覆盖状态至 647 tests / 32 files
...
- 新增 json/truncate/path/tokens/FileEditTool/permissions 测试记录
- 更新已知限制(Bun.JSONL bug, spawnMultiAgent 重依赖)
- 添加 Mock 策略总结章节
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 08:08:35 +08:00
claude-code-best
a28a44f9f7
test: 添加 FileEditTool/permissions/filterToolsByDenyRules 测试
...
- FileEditTool/utils.test.ts: 24 tests (normalizeQuotes, stripTrailingWhitespace, findActualString, preserveQuoteStyle, applyEditToFile)
- permissions/permissions.test.ts: 13 tests (getDenyRuleForTool, getAskRuleForTool, getDenyRuleForAgent, filterDeniedAgents)
- tools.test.ts: 扩展 5 tests (filterToolsByDenyRules 过滤逻辑)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 07:36:50 +08:00
claude-code-best
43af260322
test: 添加 json/truncate/path/tokens 模块测试
...
- json.test.ts: 27 tests (safeParseJSON, safeParseJSONC, parseJSONL, addItemToJSONCArray)
- truncate.test.ts: 24 tests (truncateToWidth, truncateStartToWidth, truncatePathMiddle, truncate, wrapText)
- path.test.ts: 15 tests (containsPathTraversal, normalizePathForConfigKey)
- tokens.test.ts: 22 tests (getTokenCountFromUsage, getTokenUsage, tokenCountFromLastAPIResponse, etc.)
使用 mock.module() 切断 log.ts/tokenEstimation.ts/slowOperations.ts 重依赖链
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 23:56:37 +08:00
claude-code-best
fd2ad71a4e
docs: 更新测试规范,记录当前 517 个测试的覆盖状态
...
在 testing-spec.md 新增第 11 节,按 P0/P1/P2 分类记录 25 个
测试文件的覆盖范围、测试数量及已知的重依赖限制。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:50:47 +08:00
claude-code-best
c57950e15e
test: 添加消息处理单元测试 (测试计划 06)
...
为消息创建、查询、文本提取、规范化等函数添加 56 个测试用例,
覆盖 createAssistantMessage、createUserMessage、isSyntheticMessage、
extractTag、isNotEmptyMessage、normalizeMessages 等核心功能。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:43:31 +08:00
claude-code-best
183421361e
test: 添加配置与设置系统单元测试 (测试计划 09)
...
为 SettingsSchema、PermissionsSchema、AllowedMcpServerEntrySchema
验证,MCP 类型守卫,设置常量函数,以及 validation 工具函数添加
62 个测试用例。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:39:21 +08:00
claude-code-best
3df4b95ff9
test: 添加 Git 工具函数单元测试 (测试计划 08)
...
为 normalizeGitRemoteUrl 添加 18 个测试用例,覆盖 SSH、HTTPS、
ssh://、CCR 代理 URL 格式、大小写规范化及边界条件。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:30:45 +08:00
claude-code-best
f81a767f83
test: 添加 Cron 调度单元测试 (测试计划 07)
...
覆盖 parseCronExpression、computeNextCronRun、cronToHuman,
包含有效/无效表达式、字段范围验证、下次运行计算、人类可读描述,
共 38 个测试用例。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:23:26 +08:00
claude-code-best
25839ab454
test: 添加模型路由单元测试 (测试计划 05)
...
覆盖 isModelAlias、isModelFamilyAlias、getAPIProvider、
isFirstPartyAnthropicBaseUrl、firstPartyNameToCanonical,共 40 个测试用例。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:20:25 +08:00
claude-code-best
583d04331b
test: 添加权限规则解析器单元测试 (测试计划 04)
...
覆盖 escapeRuleContent、unescapeRuleContent、permissionRuleValueFromString、
permissionRuleValueToString、normalizeLegacyToolName,共 25 个测试用例。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:18:00 +08:00
claude-code-best
c4344c4df0
test: 添加 Context 构建单元测试 (测试计划 03)
...
覆盖 stripHtmlComments、isMemoryFilePath、getLargeMemoryFiles、
buildEffectiveSystemPrompt 等函数,共 25 个测试用例全部通过。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:14:23 +08:00
claude-code-best
cad6409bfe
test: 添加 Utils 纯函数单元测试 (测试计划 02)
...
覆盖 xml, hash, stringUtils, semver, uuid, format, frontmatterParser,
file, glob, diff 共 10 个模块的纯函数测试。
json.ts 因模块加载链路过重暂跳过。
共 190 个测试用例(含已有 array/set)全部通过。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 22:03:02 +08:00
claude-code-best
67baea3c7f
test: 添加 Tool 系统单元测试 (测试计划 01)
...
覆盖 buildTool、toolMatchesName、findToolByName、getEmptyToolPermissionContext、
filterToolProgressMessages、parseToolPreset、parseGitCommitId、detectGitOperation
共 46 个测试用例全部通过。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 21:32:45 +08:00
claude-code-best
a426a50c0e
docs: 完善测试文档编写
2026-04-01 21:19:41 +08:00
claude-code-best
3b0a5e484d
docs: 更新说明文档
2026-04-01 20:20:56 +08:00
claude-code-best
c57e6ee384
docs: 文档优化完成
2026-04-01 17:18:48 +08:00
claude-code-best
221fb6eb05
fix: 修复 @ typeahead 文件搜索无结果的问题
...
execa 新版将 signal 选项重命名为 cancelSignal,导致 execFileNoThrowWithCwd
调用 git ls-files 时抛出 TypeError,文件索引始终为空。同时改进了
FileIndex 的模糊匹配算法,从多个词边界起始位置评分取最优,提升搜索排名质量。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 17:11:09 +08:00
claude-code-best
8b63e54e94
docs: 文档更新
2026-04-01 16:43:45 +08:00
claude-code-best
7d5271e63e
docs: 更新文档
2026-04-01 16:11:37 +08:00
claude-code-best
503a40f46b
docs: 调整一下表达
v3
2026-04-01 15:41:51 +08:00
claude-code-best
a889ed8402
fix: 移除 Settings 中未定义的 Gates 引用,修复 config 命令报错
...
Gates 是 Anthropic 内部组件,反编译版本中不存在,运行时引用导致 ReferenceError。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 15:40:00 +08:00
claude-code-best
64f79dc3be
feat: 改善 seo
2026-04-01 15:21:46 +08:00
claude-code-best
c5b55c1bf9
docs: 完成大量文档
2026-04-01 14:44:21 +08:00
claude-code-best
2934f30084
fix: 彻底移除 /loop 及 cron 工具的 feature('AGENT_TRIGGERS') gate
...
上次提交仅移除了 isKairosCronEnabled 中的 gate,但 /loop 整条链路
仍被 feature('AGENT_TRIGGERS') 拦截导致无法使用:
- skills/bundled/index.ts: registerLoopSkill() 未被调用
- tools.ts: CronCreate/Delete/List 工具未加载
- constants/tools.ts: cron 工具名未加入 teammate 工具列表
- screens/REPL.tsx: useScheduledTasks hook 被跳过
- cli/print.ts: pipe 模式 cron 调度器未初始化
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 11:57:16 +08:00
claude-code-best
33fe4940e1
fix: 启用 /loop 命令,移除 feature('AGENT_TRIGGERS') gate
...
isKairosCronEnabled() 依赖 feature('AGENT_TRIGGERS'),在反编译版本中
feature() 始终返回 false,导致 /loop skill 被禁用。简化为仅检查
CLAUDE_CODE_DISABLE_CRON 环境变量。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 11:53:32 +08:00
claude-code-best
2fa91489c8
docs: 新增「揭秘:隐藏功能与内部机制」文档栏目
...
添加 5 篇文档揭示 Claude Code 的三层功能门禁系统:
- 构建时 88+ feature flags 分类全解
- GrowthBook 运行时 A/B 测试体系与 tengu_* 命名文化
- KAIROS/PROACTIVE/BRIDGE 等 8 大未公开功能深度分析
- Ant 身份门控下的专属工具、命令与 Beta API
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 11:30:27 +08:00
claude-code-best
4233ee7de6
docs: 更新文档, 加上配图
2026-04-01 11:14:20 +08:00
claude-code-best
03cff1b749
docs: 修正格式
2026-04-01 11:07:48 +08:00
claude-code-best
ecf885d67f
docs: 添加赞助说明
2026-04-01 11:02:30 +08:00
claude-code-best
9a57642d3a
feat: 完成最新的可构建版本
2026-04-01 10:42:53 +08:00
claude-code-best
604110272f
docs: 尝试修复 docs 的位置
2026-04-01 10:09:00 +08:00
claude-code-best
b32dd4549d
fix: 修复构建问题
v2
2026-04-01 09:58:26 +08:00
claude-code-best
0135ad99ad
chore: 更新 lock 文件
2026-04-01 09:54:12 +08:00
claude-code-best
9018c7afdb
Merge branch 'feature/prod'
2026-04-01 09:53:21 +08:00
claude-code-best
65d7f1994c
chore: 调整配置
2026-04-01 09:52:43 +08:00
claude-code-best
ce2f19cc48
Merge pull request #5 from claude-code-best/feature/prod
...
docs: mintlify 文档撰写
2026-04-01 09:29:58 +08:00
claude-code-best
f6fe94463e
docs: mintlify 文档撰写
2026-04-01 09:16:41 +08:00