From 854b6a30c98cd6db9a6cb85f7b43e2428734d654 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 6 Jun 2026 00:15:28 -0700 Subject: [PATCH] =?UTF-8?q?fix(lint):=20empty-interface=20PrSourceDescript?= =?UTF-8?q?or=20=E2=86=92=20type=20alias,=20drop=20unused=20eslint-disable?= =?UTF-8?q?=20directives?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/routes/__tests__/workflow-design-route.test.ts | 2 -- packages/engine/src/pr-nodes.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/dashboard/src/routes/__tests__/workflow-design-route.test.ts b/packages/dashboard/src/routes/__tests__/workflow-design-route.test.ts index e763820042..4558d0e6f2 100644 --- a/packages/dashboard/src/routes/__tests__/workflow-design-route.test.ts +++ b/packages/dashboard/src/routes/__tests__/workflow-design-route.test.ts @@ -26,7 +26,6 @@ import { request } from "../../test-request.js"; /** Captures the prompt the route fed the agent and returns canned `text`. */ function makeFakeAgent(text: string) { const captured: { systemPrompt?: string; userPrompt?: string } = {}; - // eslint-disable-next-line @typescript-eslint/no-explicit-any const factory: any = async (opts: any) => { captured.systemPrompt = opts.systemPrompt; let textListener: ((delta: string) => void) | undefined; @@ -49,7 +48,6 @@ function makeFakeAgent(text: string) { * can assert the route releases the session even when the model turn throws. */ function makeRejectingAgent() { const state = { disposed: false }; - // eslint-disable-next-line @typescript-eslint/no-explicit-any const factory: any = async () => { const session = { on(_event: "text", _listener: (delta: string) => void) {}, diff --git a/packages/engine/src/pr-nodes.ts b/packages/engine/src/pr-nodes.ts index a9c3e04da7..40cbedb213 100644 --- a/packages/engine/src/pr-nodes.ts +++ b/packages/engine/src/pr-nodes.ts @@ -65,7 +65,7 @@ function resolveActivePrEntity(store: PrNodeStore, task: TaskDetail): PrEntity | } /** Identity of the PR an entity is created for, resolved from the task + node. */ -export interface PrSourceDescriptor extends PrEntityCreateInput {} +export type PrSourceDescriptor = PrEntityCreateInput; /** Input for the injected `createPr` callback (the dashboard GitHubClient wrapper). */ export interface PrCreateCallInput {