Loading...
Loading...
Compare original and translation side by side
| Code Pattern | Presentation |
|---|---|
| "Path A: condition true" vs "Path B: condition false" |
| One choice per case |
| "Success path" vs "Error path" |
| Option to trace into called functions |
| 代码模式 | 展示方式 |
|---|---|
| "路径A:条件为真" vs "路径B:条件为假" |
| 每个case对应一个选项 |
| "成功路径" vs "错误路径" |
| 可选择追踪被调用函数 |
scripts/detect-framework.shreferences/framework-patterns.mdfind_symbol()find_referencing_symbols()get_symbols_overview()write_memory()read_memory()scripts/detect-framework.shreferences/framework-patterns.mdfind_symbol()find_referencing_symbols()get_symbols_overview()write_memory()read_memory()references/| File | Content |
|---|---|
| framework-patterns.md | Entry point detection and request flow for Express, Next.js, Fastify, etc. |
| control-flow-types.md | How to present if/switch/try/loops as interactive choices |
| explanation-style.md | Thinking markers, step format, summary format |
| </reference_index> |
references/| 文件 | 内容 |
|---|---|
| framework-patterns.md | Express、Next.js、Fastify等框架的入口点检测与请求流说明 |
| control-flow-types.md | 如何将if/switch/try/循环等转换为交互式选项 |
| explanation-style.md | 思考标记、步骤格式、概述格式说明 |
| </reference_index> |
workflows/| Workflow | Purpose |
|---|---|
| trace-request.md | Trace HTTP request from entry to response |
| trace-function.md | Trace a specific function's call chain |
| </workflows_index> |
workflows/| 工作流 | 用途 |
|---|---|
| trace-request.md | 追踪HTTP请求从入口到响应的完整流程 |
| trace-function.md | 追踪特定函数的调用链 |
| </workflows_index> |
| Script | Purpose |
|---|---|
| detect-framework.sh | Auto-detect project framework from package.json |
./scripts/detect-framework.sh /path/to/project| 脚本 | 用途 |
|---|---|
| detect-framework.sh | 从package.json自动检测项目框架 |
./scripts/detect-framework.sh /path/to/project</scripts_index>
<success_criteria>
A successful code trace:
- [ ] Entry point correctly identified and explained
- [ ] Framework detected and appropriate patterns applied
- [ ] At least one branch point presented as interactive choice
- [ ] External dependencies summarized (not deep-traced)
- [ ] User navigated to terminal point OR chose to stop
- [ ] Path history shown in ASCII flowchart format
- [ ] Key insights collected and displayed
- [ ] Trace state available for resume (if user chose to save)
</success_criteria>
<boundaries></scripts_index>
<success_criteria>
成功的代码追踪需满足:
- [ ] 正确识别并解释入口点
- [ ] 检测到框架并应用了对应的模式
- [ ] 至少将一个分支点作为交互式选项呈现
- [ ] 对外部依赖进行了概述(未深入追踪)
- [ ] 用户导航至终点或选择停止追踪
- [ ] 以ASCII流程图格式展示路径历史
- [ ] 收集并展示关键见解
- [ ] 追踪状态可恢复(若用户选择保存)
</success_criteria>
<boundaries>