From 884a6a113ccfe02bc21783c6bfbce92d1d7986c3 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 17 Jun 2026 16:02:46 +0800 Subject: [PATCH] refactor(shared): hide helper option types --- src/shared/assistant-error-format.ts | 2 +- src/shared/config-eval.ts | 2 +- src/shared/entry-status.ts | 2 +- src/shared/lazy-promise.ts | 2 +- src/shared/node-presence.ts | 2 +- src/shared/store-writer-queue.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shared/assistant-error-format.ts b/src/shared/assistant-error-format.ts index a2a35f1df9c1..57460382ad30 100644 --- a/src/shared/assistant-error-format.ts +++ b/src/shared/assistant-error-format.ts @@ -27,7 +27,7 @@ const MALFORMED_STREAMING_FRAGMENT_USER_MESSAGE = type ErrorPayload = Record; -export type ApiErrorInfo = { +type ApiErrorInfo = { httpCode?: string; type?: string; message?: string; diff --git a/src/shared/config-eval.ts b/src/shared/config-eval.ts index 8ef064cf8337..e95c04c9783a 100644 --- a/src/shared/config-eval.ts +++ b/src/shared/config-eval.ts @@ -45,7 +45,7 @@ export function isConfigPathTruthyWithDefaults( return isTruthy(value); } -export type RuntimeRequires = { +type RuntimeRequires = { bins?: string[]; anyBins?: string[]; env?: string[]; diff --git a/src/shared/entry-status.ts b/src/shared/entry-status.ts index f59a594f993e..e5cf2e6e178f 100644 --- a/src/shared/entry-status.ts +++ b/src/shared/entry-status.ts @@ -8,7 +8,7 @@ import { type RequirementsMetadata, } from "./requirements.js"; -export type EntryMetadataRequirementsParams = Parameters< +type EntryMetadataRequirementsParams = Parameters< typeof evaluateEntryMetadataRequirements >[0]; diff --git a/src/shared/lazy-promise.ts b/src/shared/lazy-promise.ts index f87100ff6dc2..1a798fbbbc46 100644 --- a/src/shared/lazy-promise.ts +++ b/src/shared/lazy-promise.ts @@ -7,7 +7,7 @@ export type LazyPromiseLoader = { }; /** Options for controlling lazy promise cache behavior. */ -export type LazyPromiseLoaderOptions = { +type LazyPromiseLoaderOptions = { /** Keep rejected promises cached instead of allowing the next caller to retry. */ cacheRejections?: boolean; }; diff --git a/src/shared/node-presence.ts b/src/shared/node-presence.ts index a9d4f4ec5045..c3a9fb243319 100644 --- a/src/shared/node-presence.ts +++ b/src/shared/node-presence.ts @@ -15,7 +15,7 @@ const NODE_PRESENCE_ALIVE_REASONS = [ ] as const; /** Canonical trigger reason stored with node presence updates. */ -export type NodePresenceAliveReason = (typeof NODE_PRESENCE_ALIVE_REASONS)[number]; +type NodePresenceAliveReason = (typeof NODE_PRESENCE_ALIVE_REASONS)[number]; const NODE_PRESENCE_ALIVE_REASON_SET = new Set(NODE_PRESENCE_ALIVE_REASONS); diff --git a/src/shared/store-writer-queue.ts b/src/shared/store-writer-queue.ts index c69064d9fb7c..3e1cb26dd00b 100644 --- a/src/shared/store-writer-queue.ts +++ b/src/shared/store-writer-queue.ts @@ -19,7 +19,7 @@ export type StoreWriterQueue = { }; /** Store writer queues keyed by the canonical store path. */ -export type StoreWriterQueues = Map; +type StoreWriterQueues = Map; function getOrCreateStoreWriterQueue( queues: StoreWriterQueues,