From 92e817bf38dc80aada927cbf450e4f9e2b6fbb1d Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Tue, 11 Aug 2026 20:05:09 +0800 Subject: [PATCH] chore(lint): satisfy the trailing-comma rule and drop dead oxlint directives The Gateway client spec's synthetic Remote namespace now resolves under both analyzers, so its typescript/no-unsafe-call suppressions report as unused. --- packages/api/gateway/tests/client.spec.ts | 4 ---- packages/api/remotes/src/client/index.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/api/gateway/tests/client.spec.ts b/packages/api/gateway/tests/client.spec.ts index cefdd94023..a268206d3f 100644 --- a/packages/api/gateway/tests/client.spec.ts +++ b/packages/api/gateway/tests/client.spec.ts @@ -226,9 +226,6 @@ describe('Client TypeRT API', () => { descriptors: [maybeDescriptor()], }) - // The analyzers disagree on the key-remapped namespace projection: tsc - // resolves this method, oxlint reads it as an error type. - // oxlint-disable-next-line typescript/no-unsafe-call await expect(ctx.remote.probe.maybe(undefined)).resolves.toBeUndefined() expect(call).toHaveBeenNthCalledWith( 1, @@ -237,7 +234,6 @@ describe('Client TypeRT API', () => { { args: {} }, expect.any(AbortSignal), ) - // oxlint-disable-next-line typescript/no-unsafe-call await expect(ctx.remote.probe.maybe(null)).resolves.toBeNull() expect(call).toHaveBeenNthCalledWith( 2, diff --git a/packages/api/remotes/src/client/index.ts b/packages/api/remotes/src/client/index.ts index 7cc59cffb0..c08190ddc1 100644 --- a/packages/api/remotes/src/client/index.ts +++ b/packages/api/remotes/src/client/index.ts @@ -33,7 +33,7 @@ export type { RpcRequest, RpcResponse, RpcResult, SessionId, SessionModels, SessionSearchItem, SessionSummary, SettingsNamespaceView, SettingsPathOpView, SkillEntry, StreamChunk, SubagentAddress, SubagentCatalog, TaskView, ToolCallView, ToolEventView, ToolResultView, - WorkspaceId, WorkspaceView + WorkspaceId, WorkspaceView, } from '@deepseek-ai/dsh-client-connection/client' declare module '@deepseek-ai/cordis' {