spacehub

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

Revert "agents-md: the truncated-read tests laid out as the formatter lays them"Browse files
poteat authored 25 days ago parent 8364969 · commit 5beaf4f3df84
1 changed file+2 -11compared with 8364969
Mmods/agents-md/tests/register.test.ts
@@ -93,13 +93,8 @@
9393 ],
9494 ['an incomplete line range', {}, { content: '# head', numLines: 1 }, true],
9595 ['a complete read', {}, {}, false],
96+ ['an explicit limit', { limit: 1 }, { content: '# head', numLines: 1 }, true],
9697 [
97- 'an explicit limit',
98- { limit: 1 },
99- { content: '# head', numLines: 1 },
100- true,
101- ],
102- [
10398 'an explicit offset',
10499 { offset: 2 },
105100 { content: 'follow the tail rule', numLines: 1, startLine: 2 },
@@ -138,11 +133,7 @@
138133 : 'read',
139134 }))
140135
141- const direct = await $.tool.call({
142- tool: 'Read',
143- file_path: path,
144- ...args,
145- })
136+ const direct = await $.tool.call({ tool: 'Read', file_path: path, ...args })
146137 const source = { tool: 'Read', file_path: `${dir}/source.ts` } as const
147138 const after = await $.tool.call(source)
148139 const repeated = await $.tool.call(source)