|
1 | | -export * from "../../../src/memory-host-sdk/engine-embeddings.js"; |
| 1 | +// Real workspace contract for memory embedding providers and batch helpers. |
| 2 | + |
| 3 | +export { |
| 4 | + getMemoryEmbeddingProvider, |
| 5 | + listRegisteredMemoryEmbeddingProviders, |
| 6 | + listMemoryEmbeddingProviders, |
| 7 | + listRegisteredMemoryEmbeddingProviderAdapters, |
| 8 | +} from "../../../src/plugins/memory-embedding-provider-runtime.js"; |
| 9 | +export type { |
| 10 | + MemoryEmbeddingBatchChunk, |
| 11 | + MemoryEmbeddingBatchOptions, |
| 12 | + MemoryEmbeddingProvider, |
| 13 | + MemoryEmbeddingProviderAdapter, |
| 14 | + MemoryEmbeddingProviderCreateOptions, |
| 15 | + MemoryEmbeddingProviderCreateResult, |
| 16 | + MemoryEmbeddingProviderRuntime, |
| 17 | +} from "../../../src/plugins/memory-embedding-providers.js"; |
| 18 | +export { createLocalEmbeddingProvider, DEFAULT_LOCAL_MODEL } from "./host/embeddings.js"; |
| 19 | +export { extractBatchErrorMessage, formatUnavailableBatchError } from "./host/batch-error-utils.js"; |
| 20 | +export { postJsonWithRetry } from "./host/batch-http.js"; |
| 21 | +export { applyEmbeddingBatchOutputLine } from "./host/batch-output.js"; |
| 22 | +export { |
| 23 | + EMBEDDING_BATCH_ENDPOINT, |
| 24 | + type EmbeddingBatchStatus, |
| 25 | + type ProviderBatchOutputLine, |
| 26 | +} from "./host/batch-provider-common.js"; |
| 27 | +export { |
| 28 | + buildEmbeddingBatchGroupOptions, |
| 29 | + runEmbeddingBatchGroups, |
| 30 | + type EmbeddingBatchExecutionParams, |
| 31 | +} from "./host/batch-runner.js"; |
| 32 | +export { |
| 33 | + resolveBatchCompletionFromStatus, |
| 34 | + resolveCompletedBatchResult, |
| 35 | + throwIfBatchTerminalFailure, |
| 36 | + type BatchCompletionResult, |
| 37 | +} from "./host/batch-status.js"; |
| 38 | +export { uploadBatchJsonlFile } from "./host/batch-upload.js"; |
| 39 | +export { |
| 40 | + buildBatchHeaders, |
| 41 | + normalizeBatchBaseUrl, |
| 42 | + type BatchHttpClientConfig, |
| 43 | +} from "./host/batch-utils.js"; |
| 44 | +export { enforceEmbeddingMaxInputTokens } from "./host/embedding-chunk-limits.js"; |
| 45 | +export { |
| 46 | + isMissingEmbeddingApiKeyError, |
| 47 | + mapBatchEmbeddingsByIndex, |
| 48 | + sanitizeEmbeddingCacheHeaders, |
| 49 | +} from "./host/embedding-provider-adapter-utils.js"; |
| 50 | +export { sanitizeAndNormalizeEmbedding } from "./host/embedding-vectors.js"; |
| 51 | +export { debugEmbeddingsLog } from "./host/embeddings-debug.js"; |
| 52 | +export { normalizeEmbeddingModelWithPrefixes } from "./host/embeddings-model-normalize.js"; |
| 53 | +export { |
| 54 | + resolveRemoteEmbeddingBearerClient, |
| 55 | + type RemoteEmbeddingProviderId, |
| 56 | +} from "./host/embeddings-remote-client.js"; |
| 57 | +export { |
| 58 | + createRemoteEmbeddingProvider, |
| 59 | + resolveRemoteEmbeddingClient, |
| 60 | + type RemoteEmbeddingClient, |
| 61 | +} from "./host/embeddings-remote-provider.js"; |
| 62 | +export { fetchRemoteEmbeddingVectors } from "./host/embeddings-remote-fetch.js"; |
| 63 | +export { |
| 64 | + estimateStructuredEmbeddingInputBytes, |
| 65 | + estimateUtf8Bytes, |
| 66 | +} from "./host/embedding-input-limits.js"; |
| 67 | +export { hasNonTextEmbeddingParts, type EmbeddingInput } from "./host/embedding-inputs.js"; |
| 68 | +export { buildRemoteBaseUrlPolicy, withRemoteHttpResponse } from "./host/remote-http.js"; |
| 69 | +export { |
| 70 | + buildCaseInsensitiveExtensionGlob, |
| 71 | + classifyMemoryMultimodalPath, |
| 72 | + getMemoryMultimodalExtensions, |
| 73 | +} from "./host/multimodal.js"; |
0 commit comments