(context: ToolUseContext)
| 299 | } |
| 300 | |
| 301 | export function writeRepaintDiagnostic(context: ToolUseContext): string { |
| 302 | const dir = getDiagnosticDir() |
| 303 | mkdirSync(dir, { recursive: true }) |
| 304 | const path = join(dir, `repaint-${Date.now()}-${process.pid}.json`) |
| 305 | const payload = { |
| 306 | kind: 'ncode-repaint-diagnostic', |
| 307 | env: { |
| 308 | TERM: process.env.TERM, |
| 309 | TMUX: process.env.TMUX, |
| 310 | COLORTERM: process.env.COLORTERM, |
| 311 | TERM_PROGRAM: process.env.TERM_PROGRAM, |
| 312 | TERM_PROGRAM_VERSION: process.env.TERM_PROGRAM_VERSION, |
| 313 | NCODE_CONFIG_DIR: process.env.NCODE_CONFIG_DIR, |
| 314 | }, |
| 315 | before: buildPayload(context, 'before'), |
| 316 | } |
| 317 | writePayload(path, payload) |
| 318 | return path |
| 319 | } |
| 320 | |
| 321 | export async function call( |
| 322 | _args: string, |
no test coverage detected