From e5d2273e050f4442758aeea3d429e21ed0357cb8 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 12:16:51 +0100 Subject: [PATCH] refactor: trim runtime test helper type exports --- src/auto-reply/reply.test-harness.ts | 2 +- src/commands/onboard-non-interactive.test-helpers.ts | 2 +- src/gateway/agent-command.test-helpers.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auto-reply/reply.test-harness.ts b/src/auto-reply/reply.test-harness.ts index be80e958f55..149cb3173b6 100644 --- a/src/auto-reply/reply.test-harness.ts +++ b/src/auto-reply/reply.test-harness.ts @@ -4,7 +4,7 @@ import path from "node:path"; import { afterAll, beforeAll, vi, type Mock } from "vitest"; import { withFastReplyConfig } from "./reply/get-reply-fast-path.js"; -export type ReplyRuntimeMocks = { +type ReplyRuntimeMocks = { runEmbeddedPiAgent: Mock; loadModelCatalog: Mock; webAuthExists: Mock; diff --git a/src/commands/onboard-non-interactive.test-helpers.ts b/src/commands/onboard-non-interactive.test-helpers.ts index d20d5fdabdd..849a7dcb9f4 100644 --- a/src/commands/onboard-non-interactive.test-helpers.ts +++ b/src/commands/onboard-non-interactive.test-helpers.ts @@ -2,7 +2,7 @@ import type { RuntimeEnv } from "../runtime.js"; type RuntimeLike = Pick; -export type NonInteractiveRuntime = { +type NonInteractiveRuntime = { log: RuntimeLike["log"]; error: RuntimeLike["error"]; exit: RuntimeLike["exit"]; diff --git a/src/gateway/agent-command.test-helpers.ts b/src/gateway/agent-command.test-helpers.ts index f071a6a8805..427fbed7433 100644 --- a/src/gateway/agent-command.test-helpers.ts +++ b/src/gateway/agent-command.test-helpers.ts @@ -1,7 +1,7 @@ import { vi } from "vitest"; import { agentCommand } from "./test-helpers.runtime-state.js"; -export type AgentCommandCall = Record; +type AgentCommandCall = Record; function agentCommandCalls(): Array<[AgentCommandCall]> { return vi.mocked(agentCommand).mock.calls as unknown as Array<[AgentCommandCall]>;