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

推荐订阅源

H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
L
LangChain Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
Hugging Face - Blog
Hugging Face - Blog
G
Google Developers Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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
fix: retain local memory runtime deps · openclaw/openclaw...
steipete · 2026-04-30 · via Recent Commits to openclaw:main

@@ -9,6 +9,7 @@ import {

99

collectPackageRuntimeDeps,

1010

normalizeInstallableRuntimeDepName,

1111

parseInstallableRuntimeDep,

12+

parseInstallableRuntimeDepSpec,

1213

type RuntimeDepEntry,

1314

} from "./bundled-runtime-deps-specs.js";

1415

import {

@@ -30,6 +31,7 @@ export type BundledPluginRuntimeDepsManifest = {

3031

enabledByDefault: boolean;

3132

id?: string;

3233

legacyPluginIds: string[];

34+

localMemoryEmbeddingRuntimeDeps: RuntimeDepEntry[];

3335

modelSupport?: BundledPluginRuntimeDepsModelSupport;

3436

providers: string[];

3537

};

@@ -110,6 +112,9 @@ function readBundledPluginRuntimeDepsManifest(

110112

const manifest = readRuntimeDepsJsonObject(path.join(pluginDir, "openclaw.plugin.json"));

111113

const channels = manifest?.channels;

112114

const legacyPluginIds = manifest?.legacyPluginIds;

115+

const localMemoryEmbeddingRuntimeDeps = readBundledPluginLocalMemoryEmbeddingRuntimeDeps(

116+

manifest?.runtimeDependencies,

117+

);

113118

const modelSupport = readBundledPluginRuntimeDepsModelSupport(manifest?.modelSupport);

114119

const providers = manifest?.providers;

115120

const runtimeDepsManifest = {

@@ -123,6 +128,7 @@ function readBundledPluginRuntimeDepsManifest(

123128

(entry): entry is string => typeof entry === "string" && entry !== "",

124129

)

125130

: [],

131+

localMemoryEmbeddingRuntimeDeps,

126132

...(modelSupport ? { modelSupport } : {}),

127133

providers: Array.isArray(providers)

128134

? providers.filter((entry): entry is string => typeof entry === "string" && entry !== "")

@@ -132,6 +138,24 @@ function readBundledPluginRuntimeDepsManifest(

132138

return runtimeDepsManifest;

133139

}

134140141+

function readBundledPluginLocalMemoryEmbeddingRuntimeDeps(value: unknown): RuntimeDepEntry[] {

142+

if (!isRecord(value)) {

143+

return [];

144+

}

145+

const specs = value.localMemoryEmbedding;

146+

if (!Array.isArray(specs)) {

147+

return [];

148+

}

149+

return specs.map((spec) => {

150+

if (typeof spec !== "string") {

151+

throw new Error(

152+

"openclaw.plugin.json runtimeDependencies.localMemoryEmbedding must contain strings",

153+

);

154+

}

155+

return { ...parseInstallableRuntimeDepSpec(spec), pluginIds: [] };

156+

});

157+

}

158+135159

function readBundledPluginRuntimeDepsModelSupport(

136160

value: unknown,

137161

): BundledPluginRuntimeDepsModelSupport | undefined {

@@ -353,6 +377,30 @@ function collectConfiguredProviderIds(config: OpenClawConfig): Set<string> {

353377

return collectConfiguredRuntimeDepsTargets(config).providerIds;

354378

}

355379380+

function memorySearchConfigUsesProvider(

381+

value: { enabled?: boolean; provider?: string } | undefined,

382+

providerId: string,

383+

): boolean {

384+

return (

385+

value?.enabled !== false && normalizeOptionalLowercaseString(value?.provider) === providerId

386+

);

387+

}

388+389+

function isMemoryEmbeddingProviderConfiguredForRuntimeDeps(

390+

config: OpenClawConfig | undefined,

391+

providerId: string,

392+

): boolean {

393+

if (!config) {

394+

return false;

395+

}

396+

if (memorySearchConfigUsesProvider(config.agents?.defaults?.memorySearch, providerId)) {

397+

return true;

398+

}

399+

return (config.agents?.list ?? []).some((agent) =>

400+

memorySearchConfigUsesProvider(agent.memorySearch, providerId),

401+

);

402+

}

403+356404

function matchesBundledRuntimeDepsModelSupport(

357405

manifest: BundledPluginRuntimeDepsManifest,

358406

modelId: string,

@@ -665,20 +713,32 @@ export function collectBundledPluginRuntimeDeps(params: {

665713

continue;

666714

}

667715

includedPluginIds.add(pluginId);

716+

const manifest = readBundledPluginRuntimeDepsManifest(pluginDir, manifestCache);

668717

const packageJson = readRuntimeDepsJsonObject(path.join(pluginDir, "package.json"));

669-

if (!packageJson) {

670-

continue;

718+

if (packageJson) {

719+

for (const [name, rawVersion] of Object.entries(collectPackageRuntimeDeps(packageJson))) {

720+

const dep = parseInstallableRuntimeDep(name, rawVersion);

721+

if (!dep) {

722+

continue;

723+

}

724+

const byVersion = versionMap.get(dep.name) ?? new Map<string, Set<string>>();

725+

const pluginIds = byVersion.get(dep.version) ?? new Set<string>();

726+

pluginIds.add(pluginId);

727+

byVersion.set(dep.version, pluginIds);

728+

versionMap.set(dep.name, byVersion);

729+

}

671730

}

672-

for (const [name, rawVersion] of Object.entries(collectPackageRuntimeDeps(packageJson))) {

673-

const dep = parseInstallableRuntimeDep(name, rawVersion);

674-

if (!dep) {

675-

continue;

731+

if (

732+

manifest.localMemoryEmbeddingRuntimeDeps.length > 0 &&

733+

isMemoryEmbeddingProviderConfiguredForRuntimeDeps(params.config, "local")

734+

) {

735+

for (const dep of manifest.localMemoryEmbeddingRuntimeDeps) {

736+

const byVersion = versionMap.get(dep.name) ?? new Map<string, Set<string>>();

737+

const pluginIds = byVersion.get(dep.version) ?? new Set<string>();

738+

pluginIds.add(pluginId);

739+

byVersion.set(dep.version, pluginIds);

740+

versionMap.set(dep.name, byVersion);

676741

}

677-

const byVersion = versionMap.get(dep.name) ?? new Map<string, Set<string>>();

678-

const pluginIds = byVersion.get(dep.version) ?? new Set<string>();

679-

pluginIds.add(pluginId);

680-

byVersion.set(dep.version, pluginIds);

681-

versionMap.set(dep.name, byVersion);

682742

}

683743

}

684744