From 3f4ca7c53bb2175dd7b59b3bb4c837ebe81821a1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 00:31:49 +0100 Subject: [PATCH] refactor: trim auth and exec type exports --- src/agents/auth-health.ts | 6 +++--- src/agents/bash-tools.exec-types.ts | 2 +- src/agents/cli-backends.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/agents/auth-health.ts b/src/agents/auth-health.ts index 92241e493f0..e76664eb920 100644 --- a/src/agents/auth-health.ts +++ b/src/agents/auth-health.ts @@ -10,11 +10,11 @@ import { resolveEffectiveOAuthCredential } from "./auth-profiles/effective-oauth import type { AuthProfileCredential, AuthProfileStore } from "./auth-profiles/types.js"; import { normalizeProviderId } from "./provider-id.js"; -export type AuthProfileSource = "store"; +type AuthProfileSource = "store"; export type AuthProfileHealthStatus = "ok" | "expiring" | "expired" | "missing" | "static"; -export type AuthProfileHealth = { +type AuthProfileHealth = { profileId: string; provider: string; type: "oauth" | "token" | "api_key"; @@ -45,7 +45,7 @@ export type AuthHealthSummary = { export const DEFAULT_OAUTH_WARN_MS = 24 * 60 * 60 * 1000; -export function resolveAuthProfileSource(_profileId: string): AuthProfileSource { +function resolveAuthProfileSource(_profileId: string): AuthProfileSource { return "store"; } diff --git a/src/agents/bash-tools.exec-types.ts b/src/agents/bash-tools.exec-types.ts index ca18d4da91c..b9e12e7fb61 100644 --- a/src/agents/bash-tools.exec-types.ts +++ b/src/agents/bash-tools.exec-types.ts @@ -46,7 +46,7 @@ export type ExecApprovalFollowupOutcome = { reason?: string; }; -export type ExecApprovalFollowupContext = { +type ExecApprovalFollowupContext = { approvalId: string; sessionId: string; trigger?: string; diff --git a/src/agents/cli-backends.ts b/src/agents/cli-backends.ts index 087232c4c70..b3c9f003f12 100644 --- a/src/agents/cli-backends.ts +++ b/src/agents/cli-backends.ts @@ -41,7 +41,7 @@ export type ResolvedCliBackend = { nativeToolMode?: CliBackendNativeToolMode; }; -export type ResolvedCliBackendLiveTest = { +type ResolvedCliBackendLiveTest = { defaultModelRef?: string; defaultImageProbe: boolean; defaultMcpProbe: boolean;