fix(fs): correct Note pre-release link and restore read.ts decline coverage
The Note's pre-release-stance link used the wrong depth and target (../../../CLAUDE.md); point it at ../../../../AGENTS.md with the section anchor so verify-md-links passes. The presentResult decline test's meta lacked the now-required offset, so it declined at meta narrowing instead of exercising the content-shape decline (read.ts:181-183); add offset back.
This commit is contained in:
@@ -534,7 +534,7 @@ describe('tool-owned presentation (pure presentCall)', () => {
|
||||
|
||||
it('read: completed presentation declines errors and non-single-text content', async () => {
|
||||
const envelope = '<path>/tmp/a.txt</path>\n<type>file</type>\n<content>\nbody\n</content>'
|
||||
const meta = { path: '/tmp/a.txt', lines: [{ number: 1, text: 'body' }], totalLines: 1 }
|
||||
const meta = { path: '/tmp/a.txt', offset: 1, lines: [{ number: 1, text: 'body' }], totalLines: 1 }
|
||||
expect(await presentResult('read', { file_path: 'a.txt' }, {
|
||||
content: [{ type: 'text', text: envelope }],
|
||||
isError: true,
|
||||
|
||||
Reference in New Issue
Block a user