Skip to content

Commit bc10539

Browse files
committed
feat: 更新 CLAUDE.md 文档,添加调试日志记录说明,修正测试单文件命令路径
1 parent aabdbf2 commit bc10539

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
88
- Dev (watch): `bun run dev`
99
- Start (production env): `bun run start`
1010
- Lint (with cache): `bun run lint`
11+
- Lint with auto-fix: `bun run lint --fix`
1112
- Lint fix on staged: `bunx lint-staged`
1213
- Typecheck: `bun run typecheck`
1314
- Test all: `bun test`
14-
- Test single file: `bun test tests/[filename].test.ts`
15+
- Test single file: `bun test tests/path/to/filename.test.ts`
1516
- Package (prepack builds): `bun run prepack`
1617

1718
Notes:
@@ -117,6 +118,7 @@ Error handling
117118

118119
- Debug 日志分析方法
119120
- 使用 `DebugLogger` 自动生成 debug-logs/ 文件夹中的请求日志
121+
- Debug logging: Set `DEBUG_GEMINI_REQUESTS=true` to enable request logging to debug-logs/
120122
- 压缩大日志文件便于分析:用 `compress-logs.js` 脚本删除重复内容
121123
- 分析时用 PowerShell/脚本统计 function calls vs responses 数量:检查 `functionCall``functionResponse` 计数,以及翻译后的 `tool_calls` 与 tool responses 计数
122124
- **调试方法论**

0 commit comments

Comments
 (0)