refactor(providers): share xai and replay helpers

This commit is contained in:
Vincent Koc
2026-04-04 04:08:06 +09:00
parent cc1881a838
commit 9224afca3d
9 changed files with 156 additions and 92 deletions

View File

@@ -11,10 +11,15 @@ export type {
ModelCompatConfig,
ModelDefinitionConfig,
} from "../config/types.models.js";
export type {
ProviderEndpointClass,
ProviderEndpointResolution,
} from "../agents/provider-attribution.js";
export type { ProviderPlugin } from "../plugins/types.js";
export type { KilocodeModelCatalogEntry } from "../plugins/provider-model-kilocode.js";
export { DEFAULT_CONTEXT_TOKENS } from "../agents/defaults.js";
export { resolveProviderEndpoint } from "../agents/provider-attribution.js";
export {
applyModelCompatPatch,
hasToolSchemaProfile,
@@ -24,6 +29,10 @@ export {
resolveToolCallArgumentsEncoding,
} from "../plugins/provider-model-compat.js";
export { normalizeProviderId } from "../agents/provider-id.js";
export {
buildOpenAICompatibleReplayPolicy,
buildStrictAnthropicReplayPolicy,
} from "../plugins/provider-replay-helpers.js";
export {
createMoonshotThinkingWrapper,
resolveMoonshotThinkingType,