(text: string)
| 24 | const CHARS_PER_TOKEN = 4; |
| 25 | |
| 26 | function estimateTokens(text: string): number { |
| 27 | return Math.ceil(text.length / CHARS_PER_TOKEN); |
| 28 | } |
| 29 | |
| 30 | async function buildTree(entries: FileEntry[], _rootDir: string, includeSymbols: boolean): Promise<TreeNode> { |
| 31 | const root: TreeNode = { name: ".", relativePath: ".", isDirectory: true, children: [] }; |