()
| 194 | } |
| 195 | |
| 196 | private saveAuthState(): void { |
| 197 | fs.mkdirSync(path.dirname(this.authStatePath), { recursive: true }); |
| 198 | fs.writeFileSync(this.authStatePath, JSON.stringify(this.authState, null, 2), "utf8"); |
| 199 | } |
| 200 | |
| 201 | private embedChunksAsync(chunkIds: string[], chunks: Array<{ id: string; summary?: string; content?: string }>): void { |
| 202 | const embedder = this.opts.embedder; |