mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 02:15:26 -06:00
6aa27d6ecd
* refactor(plugin-sdk): retire embedded Pi aliases * refactor(channels): retire explicit target compatibility * refactor(plugins): retire subagent spawning hook * refactor(plugin-sdk): retire shipped channel setup exports * refactor(whatsapp): retire inbound callback aliases Proof: focused build and WhatsApp E2E green; broad WhatsApp suite 188/189 files green. extensions/whatsapp/src/monitor-inbox.policy.test.ts flakes only in the parallel batch and passes isolated (10/10). * refactor(plugin-sdk): retire memory embedding registrar Migrate every bundled provider and manifest to registerEmbeddingProvider and contracts.embeddingProviders. Preserve memory-specific batching, local-service acquisition, index identity, and auto-selection through the canonical generic registry adapter, then remove the parallel registrar, registry, diagnostics, contracts, tests, and docs. * chore(plugin-sdk): tighten retired surface budgets Pin the post-retirement public SDK surface to 144 entrypoints, 4,312 exports, 2,564 callable exports, and 1,133 deprecated exports; agent-harness-runtime now permits exactly nine deprecated exports.
84 lines
2.8 KiB
TypeScript
84 lines
2.8 KiB
TypeScript
// Memory core host embedding exports expose host embedding primitives to the memory plugin.
|
|
|
|
/**
|
|
* @deprecated Load-only bridge for published llama.cpp provider releases from before the
|
|
* managed llama-server cutover. Remove after managed releases have replaced the old npm
|
|
* latest and extended-stable packages and their upgrade window has closed.
|
|
*/
|
|
export function createLocalEmbeddingProvider(..._args: unknown[]): Promise<never> {
|
|
return Promise.reject(
|
|
new Error(
|
|
"The legacy in-process llama.cpp embedding runtime is retired. Run `openclaw update repair` to install the managed llama-server provider, then restart OpenClaw.",
|
|
),
|
|
);
|
|
}
|
|
|
|
export {
|
|
applyEmbeddingBatchOutputLine,
|
|
buildBatchHeaders,
|
|
buildCaseInsensitiveExtensionGlob,
|
|
buildEmbeddingBatchGroupOptions,
|
|
buildRemoteBaseUrlPolicy,
|
|
classifyMemoryMultimodalPath,
|
|
createRemoteEmbeddingProvider,
|
|
debugEmbeddingsLog,
|
|
EmbeddingBatchUnavailableError,
|
|
EMBEDDING_BATCH_ENDPOINT,
|
|
enforceEmbeddingMaxInputTokens,
|
|
estimateStructuredEmbeddingInputBytes,
|
|
estimateUtf8Bytes,
|
|
extractBatchErrorMessage,
|
|
fetchRemoteEmbeddingVectors,
|
|
formatBatchErrorDetail,
|
|
formatUnavailableBatchError,
|
|
getMemoryMultimodalExtensions,
|
|
hasNonTextEmbeddingParts,
|
|
isEmbeddingBatchUnavailableError,
|
|
isMissingEmbeddingApiKeyError,
|
|
mapBatchEmbeddingsByIndex,
|
|
normalizeBatchBaseUrl,
|
|
normalizeEmbeddingModelWithPrefixes,
|
|
postJsonWithRetry,
|
|
readEmbeddingBatchJsonl,
|
|
resolveBatchCompletionFromStatus,
|
|
resolveCompletedBatchResult,
|
|
resolveRemoteEmbeddingBearerClient,
|
|
resolveRemoteEmbeddingClient,
|
|
runEmbeddingBatchGroups,
|
|
sanitizeAndNormalizeEmbedding,
|
|
sanitizeEmbeddingCacheHeaders,
|
|
throwIfBatchCompletionError,
|
|
throwIfBatchTerminalFailure,
|
|
uploadBatchJsonlFile,
|
|
withRemoteHttpResponse,
|
|
} from "../../packages/memory-host-sdk/src/engine-embeddings.js";
|
|
|
|
export type {
|
|
BatchCompletionResult,
|
|
BatchHttpClientConfig,
|
|
EmbeddingBatchExecutionParams,
|
|
EmbeddingBatchStatus,
|
|
EmbeddingInput,
|
|
ProviderBatchOutputLine,
|
|
RemoteEmbeddingClient,
|
|
RemoteEmbeddingProviderId,
|
|
} from "../../packages/memory-host-sdk/src/engine-embeddings.js";
|
|
export {
|
|
getMemoryEmbeddingProvider,
|
|
listMemoryEmbeddingProviders,
|
|
listRegisteredMemoryEmbeddingProviderAdapters,
|
|
} from "../plugins/memory-embedding-provider-runtime.js";
|
|
export { registerRuntimeAuthProfileStoreMutationListener } from "../agents/auth-profiles/runtime-snapshots.js";
|
|
export { adaptMemoryEmbeddingProviderAdapter } from "../plugins/memory-embedding-providers.js";
|
|
export type {
|
|
MemoryEmbeddingBatchChunk,
|
|
MemoryEmbeddingBatchOptions,
|
|
MemoryEmbeddingProvider,
|
|
MemoryEmbeddingProviderAdapter,
|
|
MemoryEmbeddingProviderCallOptions,
|
|
MemoryEmbeddingProviderCreateOptions,
|
|
MemoryEmbeddingProviderCreateResult,
|
|
MemoryEmbeddingProviderIndexIdentity,
|
|
MemoryEmbeddingProviderRuntime,
|
|
} from "../plugins/memory-embedding-providers.js";
|