summaryrefslogtreecommitdiff
path: root/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-04-18 18:08:43 -0400
committerN. Taylor Mullen <[email protected]>2025-04-18 18:10:57 -0400
commit383b9177848eeefb8c123a7a7ecc0ee391380eea (patch)
tree4b1e06d5e74500ad81a61f9442581648063f86c0 /packages/cli/src/utils/BackgroundTerminalAnalyzer.ts
parentfa264e42863474a809d06ef569f7ad5388d48072 (diff)
Run `npm run format`
- This has the entirety of the changes. Part of https://b.corp.google.com/issues/411720532
Diffstat (limited to 'packages/cli/src/utils/BackgroundTerminalAnalyzer.ts')
-rw-r--r--packages/cli/src/utils/BackgroundTerminalAnalyzer.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts b/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts
index 10448859..ae02e571 100644
--- a/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts
+++ b/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts
@@ -14,7 +14,7 @@ export interface AiClient {
generateJson(
prompt: Content[], // Keep flexible or define a stricter prompt structure type
schema: SchemaUnion,
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<any>; // Ideally, specify the expected JSON structure TAnalysisResult | TAnalysisFailure
}
@@ -127,10 +127,14 @@ export class BackgroundTerminalAnalyzer {
// Reread files one last time in case output was written just before exit
try {
currentStdout = await fs.readFile(tempStdoutFilePath, 'utf-8');
- } catch { /* ignore */ }
+ } catch {
+ /* ignore */
+ }
try {
currentStderr = await fs.readFile(tempStderrFilePath, 'utf-8');
- } catch { /* ignore */ }
+ } catch {
+ /* ignore */
+ }
lastAnalysisResult = await this.analyzeOutputWithLLM(
currentStdout,