From 5046cbc6f99a76ae6d8beda0662ec9da611ac810 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 01:44:49 +0100 Subject: [PATCH] refactor: trim local type exports --- src/agents/internal-events.ts | 2 +- src/cli/command-catalog.ts | 6 +++--- src/cli/command-path-matches.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/agents/internal-events.ts b/src/agents/internal-events.ts index 1480cb29f51..e290a93b5da 100644 --- a/src/agents/internal-events.ts +++ b/src/agents/internal-events.ts @@ -9,7 +9,7 @@ import { INTERNAL_RUNTIME_CONTEXT_END, } from "./internal-runtime-context.js"; -export type AgentTaskCompletionInternalEvent = { +type AgentTaskCompletionInternalEvent = { type: typeof AGENT_INTERNAL_EVENT_TYPE_TASK_COMPLETION; source: AgentInternalEventSource; childSessionKey: string; diff --git a/src/cli/command-catalog.ts b/src/cli/command-catalog.ts index ec67aa494fa..3d1d35c6ac4 100644 --- a/src/cli/command-catalog.ts +++ b/src/cli/command-catalog.ts @@ -5,16 +5,16 @@ export type CliCommandPluginLoadPolicy = | "always" | "text-only" | ((ctx: { argv: string[]; commandPath: string[]; jsonOutputMode: boolean }) => boolean); -export type CliRouteConfigGuardPolicy = "never" | "always" | "when-suppressed"; +type CliRouteConfigGuardPolicy = "never" | "always" | "when-suppressed"; export type CliPluginRegistryScope = "all" | "channels" | "configured-channels"; export type CliPluginRegistryPolicy = { scope: CliPluginRegistryScope; }; export type CliNetworkProxyPolicy = "default" | "bypass"; -export type CliNetworkProxyPolicyResolver = +type CliNetworkProxyPolicyResolver = | CliNetworkProxyPolicy | ((ctx: { argv: string[]; commandPath: string[] }) => CliNetworkProxyPolicy); -export type CliRoutedCommandId = +type CliRoutedCommandId = | "health" | "status" | "gateway-status" diff --git a/src/cli/command-path-matches.ts b/src/cli/command-path-matches.ts index 74ba63e94a2..e50abf5cb6e 100644 --- a/src/cli/command-path-matches.ts +++ b/src/cli/command-path-matches.ts @@ -1,9 +1,9 @@ -export type StructuredCommandPathMatchRule = { +type StructuredCommandPathMatchRule = { pattern: readonly string[]; exact?: boolean; }; -export type CommandPathMatchRule = readonly string[] | StructuredCommandPathMatchRule; +type CommandPathMatchRule = readonly string[] | StructuredCommandPathMatchRule; type NormalizedCommandPathMatchRule = { pattern: readonly string[];