surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
| @@ -93,8 +93,13 @@ | ||
| 93 | 93 | ], |
| 94 | 94 | ['an incomplete line range', {}, { content: '# head', numLines: 1 }, true], |
| 95 | 95 | ['a complete read', {}, {}, false], |
| 96 | - ['an explicit limit', { limit: 1 }, { content: '# head', numLines: 1 }, true], | |
| 97 | 96 | [ |
| 97 | + 'an explicit limit', | |
| 98 | + { limit: 1 }, | |
| 99 | + { content: '# head', numLines: 1 }, | |
| 100 | + true, | |
| 101 | + ], | |
| 102 | + [ | |
| 98 | 103 | 'an explicit offset', |
| 99 | 104 | { offset: 2 }, |
| 100 | 105 | { content: 'follow the tail rule', numLines: 1, startLine: 2 }, |
| @@ -133,7 +138,11 @@ | ||
| 133 | 138 | : 'read', |
| 134 | 139 | })) |
| 135 | 140 | |
| 136 | - const direct = await $.tool.call({ tool: 'Read', file_path: path, ...args }) | |
| 141 | + const direct = await $.tool.call({ | |
| 142 | + tool: 'Read', | |
| 143 | + file_path: path, | |
| 144 | + ...args, | |
| 145 | + }) | |
| 137 | 146 | const source = { tool: 'Read', file_path: `${dir}/source.ts` } as const |
| 138 | 147 | const after = await $.tool.call(source) |
| 139 | 148 | const repeated = await $.tool.call(source) |