chore: fix eslint warnings

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-04 07:08:01 -07:00
parent 027569576e
commit e83d41b2b4
4 changed files with 5 additions and 5 deletions

View File

@@ -829,6 +829,7 @@ export class DashboardTUI {
// them from the stream. // them from the stream.
private installMouseListener(): void { private installMouseListener(): void {
if (this.mouseStdinListener) return; if (this.mouseStdinListener) return;
// eslint-disable-next-line no-control-regex -- ESC byte is intentional for SGR mouse parsing
const mouseRe = /\x1b\[<(\d+);\d+;\d+[Mm]/g; const mouseRe = /\x1b\[<(\d+);\d+;\d+[Mm]/g;
const listener = (chunk: Buffer | string): void => { const listener = (chunk: Buffer | string): void => {
const text = typeof chunk === "string" ? chunk : chunk.toString("utf8"); const text = typeof chunk === "string" ? chunk : chunk.toString("utf8");

View File

@@ -3867,10 +3867,10 @@ export function connectAgentOnboardingStream(
try { handlers.onThinking?.(JSON.parse(event.data)); } catch { handlers.onThinking?.(event.data); } try { handlers.onThinking?.(JSON.parse(event.data)); } catch { handlers.onThinking?.(event.data); }
}, },
question: (event) => { question: (event) => {
try { handlers.onQuestion?.(JSON.parse(event.data) as PlanningQuestion); } catch {} try { handlers.onQuestion?.(JSON.parse(event.data) as PlanningQuestion); } catch { /* ignore parse error */ }
}, },
summary: (event) => { summary: (event) => {
try { handlers.onSummary?.(JSON.parse(event.data) as AgentOnboardingSummary); } catch {} try { handlers.onSummary?.(JSON.parse(event.data) as AgentOnboardingSummary); } catch { /* ignore parse error */ }
}, },
error: (event) => { error: (event) => {
try { try {

View File

@@ -304,7 +304,7 @@ export async function cancelAgentOnboardingSession(sessionId: string): Promise<v
const session = sessions.get(sessionId); const session = sessions.get(sessionId);
if (!session) throw new SessionNotFoundError(`Agent onboarding session ${sessionId} not found or expired`); if (!session) throw new SessionNotFoundError(`Agent onboarding session ${sessionId} not found or expired`);
stopAgentOnboardingGeneration(sessionId); stopAgentOnboardingGeneration(sessionId);
try { session.agent?.session.dispose?.(); } catch {} try { session.agent?.session.dispose?.(); } catch { /* ignore dispose errors */ }
sessions.delete(sessionId); sessions.delete(sessionId);
agentOnboardingStreamManager.cleanupSession(sessionId); agentOnboardingStreamManager.cleanupSession(sessionId);
} }

View File

@@ -348,8 +348,7 @@ export function createEventBridge(
// ToolCall.arguments is typed as Record<string, any> in pi-ai, but we // ToolCall.arguments is typed as Record<string, any> in pi-ai, but we
// intentionally emit a raw string when JSON parse fails completely. // intentionally emit a raw string when JSON parse fails completely.
// Pi handles string arguments gracefully at runtime. // Pi handles string arguments gracefully at runtime.
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- finalArgs may be a raw string when JSON parse fails; pi-ai handles it at runtime (contentBlock as { arguments: unknown }).arguments = finalArgs;
(contentBlock as any).arguments = finalArgs;
const toolCall = { const toolCall = {
type: "toolCall" as const, type: "toolCall" as const,
id: block.id, id: block.id,