From d2f1e43d1d6048c17fa736eab16de045747b3e2e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 30 Aug 2025 19:38:21 -0500 Subject: minor fixes --- packages/core/src/core/loggingContentGenerator.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'packages/core/src') diff --git a/packages/core/src/core/loggingContentGenerator.ts b/packages/core/src/core/loggingContentGenerator.ts index 3c1feb62..7cf20a66 100644 --- a/packages/core/src/core/loggingContentGenerator.ts +++ b/packages/core/src/core/loggingContentGenerator.ts @@ -30,7 +30,7 @@ import { import { ContentGenerator } from './contentGenerator.js'; import { toContents } from '../code_assist/converter.js'; import { isStructuredError } from '../utils/quotaErrorDetection.js'; -import { ExecException } from 'child_process'; +import { ExecException, exec } from 'child_process'; interface StructuredError { status: number; @@ -119,7 +119,6 @@ export class LoggingContentGenerator implements ContentGenerator { const jsonPayload = JSON.stringify(req, null, 2); fs.writeFileSync(filePath, jsonPayload); this.requestCounter++; - const { exec } = require('child_process'); exec(`regex --json ${filePath}`, (error: ExecException | null, stdout: string, stderr: string) => { if (error) { console.error(`exec error: ${error}`); @@ -157,7 +156,6 @@ export class LoggingContentGenerator implements ContentGenerator { const jsonPayload = JSON.stringify(req, null, 2); fs.writeFileSync(filePath, jsonPayload); this.requestCounter++; - const { exec } = require('child_process'); exec(`regex --json ${filePath}`, (error: ExecException | null, stdout: string, stderr: string) => { if (error) { console.error(`exec error: ${error}`); -- cgit v1.2.3