()
| 30 | const OVERSIZED_INLINE_CONTENT = 'x'.repeat(TOOL_RESULT_MAX_INLINE_CHARS + 1) |
| 31 | |
| 32 | function makeVfs() { |
| 33 | return { |
| 34 | grep: vi.fn(), |
| 35 | grepFile: vi.fn(), |
| 36 | glob: vi.fn().mockReturnValue([]), |
| 37 | read: vi.fn(), |
| 38 | readFileContent: vi.fn(), |
| 39 | suggestSimilar: vi.fn().mockReturnValue([]), |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | const GREP_CTX = { userId: 'user-1', workflowId: 'wf-1', workspaceId: 'ws-1' } |
| 44 | const GREP_CTX_CHAT = { ...GREP_CTX, chatId: 'chat-1' } |