refactor: finish moving provider runtime into extensions

This commit is contained in:
Peter Steinberger
2026-03-27 04:51:16 +00:00
parent 25879be46a
commit 4c27c90fc2
4 changed files with 7 additions and 2 deletions

View File

@@ -2,8 +2,8 @@ import fs from "node:fs/promises";
import path from "node:path";
import { describe, expect, it } from "vitest";
import { useFastShortTimeouts } from "../../../../test/helpers/fast-short-timeouts.js";
import type { MemorySyncProgressUpdate } from "../engine-host-api.js";
import { installEmbeddingManagerFixture } from "./embedding-manager.test-harness.js";
import type { MemorySyncProgressUpdate } from "./types.js";
const fx = installEmbeddingManagerFixture({
fixturePrefix: "openclaw-mem-",

View File

@@ -27,6 +27,7 @@ export {
createOllamaEmbeddingProvider,
DEFAULT_OLLAMA_EMBEDDING_MODEL,
} from "./host/embeddings-ollama.js";
export type { OllamaEmbeddingClient } from "./host/embeddings-ollama.js";
export {
createOpenAiEmbeddingProvider,
DEFAULT_OPENAI_EMBEDDING_MODEL,

View File

@@ -4,7 +4,10 @@ import type { ThinkLevel } from "../../auto-reply/thinking.js";
import { usesMoonshotThinkingPayloadCompat } from "../provider-capabilities.js";
import { normalizeProviderId } from "../provider-id.js";
export { createMoonshotThinkingWrapper, resolveMoonshotThinkingType } from "./moonshot-thinking-stream-wrappers.js";
export {
createMoonshotThinkingWrapper,
resolveMoonshotThinkingType,
} from "./moonshot-thinking-stream-wrappers.js";
export function shouldApplySiliconFlowThinkingOffCompat(params: {
provider: string;

View File

@@ -43,6 +43,7 @@ import {
listChannelSupportedActions,
resolveChannelMessageToolHints,
} from "../../channel-tools.js";
import { DEFAULT_CONTEXT_TOKENS } from "../../defaults.js";
import { resolveOpenClawDocsPath } from "../../docs-path.js";
import { isTimeoutError } from "../../failover-error.js";
import { resolveImageSanitizationLimits } from "../../image-sanitization.js";