From 09824c1d49dab3bbaa7c86931205df21b4e3b5d4 Mon Sep 17 00:00:00 2001 From: elkaix Date: Sun, 16 Aug 2026 01:40:24 -0400 Subject: [PATCH] chore(server): drop the unused question service type anchor The runtime const existed only to keep the IQuestionService import referenced, and needed an eslint suppression to survive. The class already names the interface in a type position, so a type-only import carries it. --- packages/server/src/services/question/questionService.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/server/src/services/question/questionService.ts b/packages/server/src/services/question/questionService.ts index fd51112c..af90a088 100644 --- a/packages/server/src/services/question/questionService.ts +++ b/packages/server/src/services/question/questionService.ts @@ -2,17 +2,13 @@ import { ulid } from 'ulid'; -import { Disposable, DisposableMap, ErrorCodes, IEventService, IQuestionService, PythinkerError, questionDismissedResult, questionToAgentCoreResponse, questionToBrokerRequest, ILogService, type IDisposable, type QuestionRequest, type QuestionResult } from '@pymodel/agent-core'; +import { Disposable, DisposableMap, ErrorCodes, IEventService, PythinkerError, questionDismissedResult, questionToAgentCoreResponse, questionToBrokerRequest, ILogService, type IDisposable, type IQuestionService, type QuestionRequest, type QuestionResult } from '@pymodel/agent-core'; import type { Event, QuestionRequest as ProtocolQuestionRequest, QuestionResponse as ProtocolQuestionResponse, } from '@pymodel/protocol'; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const _typeAnchor: typeof IQuestionService = IQuestionService; - /** * A pending question waits on a human, so the timer is a leak guard, not a * network timeout. Keep it long enough that a person can read the options,