(content: string, extra?: Partial<FileState>)
| 6 | import type { FileState } from '../fileStateCache.js' |
| 7 | |
| 8 | function makeEntry(content: string, extra?: Partial<FileState>): FileState { |
| 9 | return { |
| 10 | content, |
| 11 | timestamp: Date.now(), |
| 12 | offset: undefined, |
| 13 | limit: undefined, |
| 14 | ...extra, |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Mirrors coerceToolContentToString from queryHelpers.ts — not exported, |
no test coverage detected