(content: string | null)
| 82 | } |
| 83 | |
| 84 | function approxLineCount(content: string | null): number | null { |
| 85 | if (!content) return null; |
| 86 | return (content.match(/\n/g)?.length ?? 0) + 1; |
| 87 | } |
| 88 | |
| 89 | function supersededStub(path: string): string { |
| 90 | return `${STUB_MARK} Full content of ${path} elided to save context — this same file is read again later in the conversation (use that copy), or call read_file again if you need it now.`; |