diff --git a/src/infra/format-time/format-datetime.ts b/src/infra/format-time/format-datetime.ts index e2b772493e2..2a25546136f 100644 --- a/src/infra/format-time/format-datetime.ts +++ b/src/infra/format-time/format-datetime.ts @@ -17,12 +17,12 @@ export function resolveTimezone(value: string): string | undefined { } } -export type FormatTimestampOptions = { +type FormatTimestampOptions = { /** Include seconds in the output. Default: false */ displaySeconds?: boolean; }; -export type FormatZonedTimestampOptions = FormatTimestampOptions & { +type FormatZonedTimestampOptions = FormatTimestampOptions & { /** IANA timezone string (e.g., 'America/New_York'). Default: system timezone */ timeZone?: string; }; diff --git a/src/infra/format-time/format-relative.ts b/src/infra/format-time/format-relative.ts index 4b4da396fb3..8a6c8431337 100644 --- a/src/infra/format-time/format-relative.ts +++ b/src/infra/format-time/format-relative.ts @@ -8,7 +8,7 @@ * - `formatRelativeTimestamp(epochMs)` — format an epoch timestamp relative to now (handles future) */ -export type FormatTimeAgoOptions = { +type FormatTimeAgoOptions = { /** Append "ago" suffix. Default: true. When false, returns bare unit: "5m", "2h" */ suffix?: boolean; /** Return value for invalid/null/negative input. Default: "unknown" */ @@ -51,7 +51,7 @@ export function formatTimeAgo( return suffix ? `${days}d ago` : `${days}d`; } -export type FormatRelativeTimestampOptions = { +type FormatRelativeTimestampOptions = { /** If true, fall back to short date (e.g. "Oct 5") for timestamps >7 days. Default: false */ dateFallback?: boolean; /** IANA timezone for date fallback display */ diff --git a/src/infra/net/fetch-guard.ts b/src/infra/net/fetch-guard.ts index 74212dbf8e6..0c4e5b0287e 100644 --- a/src/infra/net/fetch-guard.ts +++ b/src/infra/net/fetch-guard.ts @@ -108,7 +108,7 @@ type GuardedFetchInternalOptions = GuardedFetchOptions & { useEnvProxyForEligibleUrls?: boolean; }; -export type GuardedFetchConfiguredLocalOriginOptions = GuardedFetchOptions & { +type GuardedFetchConfiguredLocalOriginOptions = GuardedFetchOptions & { configuredLocalOriginBaseUrl: string; }; diff --git a/src/infra/net/proxy/active-proxy-state.ts b/src/infra/net/proxy/active-proxy-state.ts index 08d0ae697bc..ec0f0673478 100644 --- a/src/infra/net/proxy/active-proxy-state.ts +++ b/src/infra/net/proxy/active-proxy-state.ts @@ -6,7 +6,7 @@ import type { ManagedProxyTlsOptions } from "./proxy-tls.js"; export type ActiveManagedProxyUrl = Readonly; /** Managed proxy loopback behavior shared by gateway and child-process fetch paths. */ -export type ActiveManagedProxyLoopbackMode = NonNullable["loopbackMode"]>; +type ActiveManagedProxyLoopbackMode = NonNullable["loopbackMode"]>; /** Ref-counted active proxy handle; callers must stop it when their proxy scope ends. */ export type ActiveManagedProxyRegistration = { @@ -17,7 +17,7 @@ export type ActiveManagedProxyRegistration = { }; /** Registration metadata for managed proxy URLs and their TLS trust material. */ -export type RegisterActiveManagedProxyOptions = { +type RegisterActiveManagedProxyOptions = { loopbackMode?: ActiveManagedProxyLoopbackMode; proxyTls?: ManagedProxyTlsOptions; }; diff --git a/src/infra/net/proxy/managed-proxy-undici.ts b/src/infra/net/proxy/managed-proxy-undici.ts index f49e3911206..d8b63b521a4 100644 --- a/src/infra/net/proxy/managed-proxy-undici.ts +++ b/src/infra/net/proxy/managed-proxy-undici.ts @@ -10,7 +10,7 @@ import { type ManagedProxyTlsOptions, } from "./proxy-tls.js"; -export type ManagedEnvHttpProxyAgentOptions = ConstructorParameters[0]; +type ManagedEnvHttpProxyAgentOptions = ConstructorParameters[0]; function readProxyTlsRecord(options: object | undefined): Record | undefined { if (!options || !("proxyTls" in options)) { diff --git a/src/infra/net/proxy/proxy-lifecycle.ts b/src/infra/net/proxy/proxy-lifecycle.ts index 0e69365f781..b673044a19c 100644 --- a/src/infra/net/proxy/proxy-lifecycle.ts +++ b/src/infra/net/proxy/proxy-lifecycle.ts @@ -7,7 +7,7 @@ import { } from "@openclaw/proxyline"; import type { ProxyConfig } from "../../../config/zod-schema.proxy.js"; -export type ProxyLoopbackMode = NonNullable["loopbackMode"]>; +type ProxyLoopbackMode = NonNullable["loopbackMode"]>; import { isLoopbackIpAddress } from "@openclaw/net-policy/ip"; import { logInfo, logWarn } from "../../../logger.js"; import { forceResetGlobalDispatcher } from "../undici-global-dispatcher.js";