惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
IT之家
IT之家
V
Visual Studio Blog
The Cloudflare Blog
博客园 - 司徒正美
Jina AI
Jina AI
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
S
SegmentFault 最新的问题
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
博客园 - Franky
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
perf(memory-core): defer embedding engine startup imports...
steipete · 2026-06-01 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -652,6 +652,7 @@ releases.

652652

| `plugin-sdk/zod` | Deprecated Zod compatibility re-export | Import `zod` from `zod` directly |

653653

| `plugin-sdk/memory-core` | Bundled memory-core helpers | Memory manager/config/file/CLI helper surface |

654654

| `plugin-sdk/memory-core-engine-runtime` | Memory engine runtime facade | Memory index/search runtime facade |

655+

| `plugin-sdk/memory-core-host-embedding-registry` | Memory embedding registry | Lightweight memory embedding provider registry helpers |

655656

| `plugin-sdk/memory-core-host-engine-foundation` | Memory host foundation engine | Memory host foundation engine exports |

656657

| `plugin-sdk/memory-core-host-engine-embeddings` | Memory host embedding engine | Memory embedding contracts, registry access, local provider, and generic batch/remote helpers; concrete remote providers live in their owning plugins |

657658

| `plugin-sdk/memory-core-host-engine-qmd` | Memory host QMD engine | Memory host QMD engine exports |

Original file line numberDiff line numberDiff line change

@@ -355,6 +355,7 @@ usage endpoint failed or returned no usable usage data.

355355

| --- | --- |

356356

| `plugin-sdk/memory-core` | Bundled memory-core helper surface for manager/config/file/CLI helpers |

357357

| `plugin-sdk/memory-core-engine-runtime` | Memory index/search runtime facade |

358+

| `plugin-sdk/memory-core-host-embedding-registry` | Lightweight memory embedding provider registry helpers |

358359

| `plugin-sdk/memory-core-host-engine-foundation` | Memory host foundation engine exports |

359360

| `plugin-sdk/memory-core-host-engine-embeddings` | Memory host embedding contracts, registry access, local provider, and generic batch/remote helpers. `registerMemoryEmbeddingProvider` on this surface is deprecated; use the generic embedding provider API for new providers. |

360361

| `plugin-sdk/memory-core-host-engine-qmd` | Memory host QMD engine exports |

Original file line numberDiff line numberDiff line change

@@ -1,12 +1,9 @@

1-

import fsSync from "node:fs";

21

import {

3-

createLocalEmbeddingProvider,

42

DEFAULT_LOCAL_MODEL,

53

listMemoryEmbeddingProviders,

64

listRegisteredMemoryEmbeddingProviderAdapters,

75

type MemoryEmbeddingProviderAdapter,

8-

} from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";

9-

import { resolveUserPath } from "openclaw/plugin-sdk/memory-core-host-engine-foundation";

6+

} from "openclaw/plugin-sdk/memory-core-host-embedding-registry";

107

import { getProviderEnvVars } from "openclaw/plugin-sdk/provider-env-vars";

118

import { formatErrorMessage } from "../dreaming-shared.js";

129

import { filterUnregisteredMemoryEmbeddingProviderAdapters } from "./provider-adapter-registration.js";

@@ -66,22 +63,6 @@ function formatLocalSetupError(err: unknown): string {

6663

.join("\n");

6764

}

6865
69-

function canAutoSelectLocal(modelPath?: string): boolean {

70-

const trimmed = modelPath?.trim();

71-

if (!trimmed) {

72-

return false;

73-

}

74-

if (/^(hf:|https?:)/i.test(trimmed)) {

75-

return false;

76-

}

77-

const resolved = resolveUserPath(trimmed);

78-

try {

79-

return fsSync.statSync(resolved).isFile();

80-

} catch {

81-

return false;

82-

}

83-

}

84-
8566

const localAdapter: MemoryEmbeddingProviderAdapter = {

8667

id: "local",

8768

defaultModel: DEFAULT_LOCAL_MODEL,

@@ -90,6 +71,8 @@ const localAdapter: MemoryEmbeddingProviderAdapter = {

9071

formatSetupError: formatLocalSetupError,

9172

shouldContinueAutoSelection: () => true,

9273

create: async (options) => {

74+

const { createLocalEmbeddingProvider } =

75+

await import("openclaw/plugin-sdk/memory-core-host-engine-embeddings");

9376

const provider = await createLocalEmbeddingProvider({

9477

...options,

9578

provider: "local",

@@ -166,5 +149,3 @@ export function listBuiltinAutoSelectMemoryEmbeddingProviderDoctorMetadata(): Ar

166149

};

167150

});

168151

}

169-
170-

export { canAutoSelectLocal };

Original file line numberDiff line numberDiff line change

@@ -1085,6 +1085,10 @@

10851085

"types": "./dist/plugin-sdk/memory-core-engine-runtime.d.ts",

10861086

"default": "./dist/plugin-sdk/memory-core-engine-runtime.js"

10871087

},

1088+

"./plugin-sdk/memory-core-host-embedding-registry": {

1089+

"types": "./dist/plugin-sdk/memory-core-host-embedding-registry.d.ts",

1090+

"default": "./dist/plugin-sdk/memory-core-host-embedding-registry.js"

1091+

},

10881092

"./plugin-sdk/memory-core-host-engine-embeddings": {

10891093

"types": "./dist/plugin-sdk/memory-core-host-engine-embeddings.d.ts",

10901094

"default": "./dist/plugin-sdk/memory-core-host-engine-embeddings.js"

Original file line numberDiff line numberDiff line change

@@ -250,6 +250,7 @@

250250

"qa-live-transport-scenarios",

251251

"memory-core",

252252

"memory-core-engine-runtime",

253+

"memory-core-host-embedding-registry",

253254

"memory-core-host-engine-embeddings",

254255

"memory-core-host-engine-foundation",

255256

"memory-core-host-engine-qmd",

Original file line numberDiff line numberDiff line change

@@ -58,6 +58,7 @@ export const publicPluginOwnedSdkEntrypoints = [

5858

"browser-config",

5959

"image-generation-core",

6060

"memory-core",

61+

"memory-core-host-embedding-registry",

6162

"memory-core-host-engine-embeddings",

6263

"memory-core-host-engine-foundation",

6364

"memory-core-host-engine-qmd",

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,10 @@

1+

export { DEFAULT_LOCAL_MODEL } from "../../packages/memory-host-sdk/src/host/embedding-defaults.js";

2+

export {

3+

listMemoryEmbeddingProviders,

4+

listRegisteredMemoryEmbeddingProviderAdapters,

5+

} from "../plugins/memory-embedding-provider-runtime.js";

6+

export type {

7+

MemoryEmbeddingProviderAdapter,

8+

MemoryEmbeddingProviderCreateOptions,

9+

MemoryEmbeddingProviderCreateResult,

10+

} from "../plugins/memory-embedding-providers.js";