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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网

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(plugins): derive bundled relocation from registry · o...
vincentkoc · 2026-04-25 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -0,0 +1,35 @@

1+

import type { ExternalizedBundledPluginBridge } from "../plugins/externalized-bundled-plugins.js";

2+

import { readPersistedInstalledPluginIndex } from "../plugins/installed-plugin-index-store.js";

3+

import type { InstalledPluginIndexRecord } from "../plugins/installed-plugin-index.js";

4+
5+

function buildBridgeFromPersistedBundledRecord(

6+

record: InstalledPluginIndexRecord,

7+

): ExternalizedBundledPluginBridge | null {

8+

if (record.origin !== "bundled" || record.enabled === false) {

9+

return null;

10+

}

11+

const npmSpec = record.packageInstall?.npm?.spec;

12+

if (!npmSpec) {

13+

return null;

14+

}

15+

return {

16+

bundledPluginId: record.pluginId,

17+

pluginId: record.pluginId,

18+

npmSpec,

19+

channelIds: record.contributions.channels,

20+

};

21+

}

22+
23+

export async function listPersistedBundledPluginLocationBridges(options: {

24+

workspaceDir?: string;

25+

env?: NodeJS.ProcessEnv;

26+

}): Promise<readonly ExternalizedBundledPluginBridge[]> {

27+

const index = await readPersistedInstalledPluginIndex(options);

28+

if (!index) {

29+

return [];

30+

}

31+

return index.plugins.flatMap((record) => {

32+

const bridge = buildBridgeFromPersistedBundledRecord(record);

33+

return bridge ? [bridge] : [];

34+

});

35+

}

Original file line numberDiff line numberDiff line change

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

5757

terminateStaleGatewayPids,

5858

waitForGatewayHealthyRestart,

5959

} from "../daemon-cli/restart-health.js";

60+

import { listPersistedBundledPluginLocationBridges } from "../plugins-location-bridges.js";

6061

import { refreshPluginRegistryAfterConfigMutation } from "../plugins-registry-refresh.js";

6162

import { createUpdateProgress, printResult } from "./progress.js";

6263

import { prepareRestartScript, runRestartScript } from "./restart-helper.js";

@@ -580,6 +581,9 @@ async function updatePluginsAfterCoreUpdate(params: {

580581

config: params.configSnapshot.sourceConfig,

581582

channel: params.channel,

582583

workspaceDir: params.root,

584+

externalizedBundledPluginBridges: await listPersistedBundledPluginLocationBridges({

585+

workspaceDir: params.root,

586+

}),

583587

logger: pluginLogger,

584588

});

585589

let pluginConfig = syncResult.config;

Original file line numberDiff line numberDiff line change

@@ -15,25 +15,6 @@ export type ExternalizedBundledPluginBridge = {

1515

preferOver?: readonly string[];

1616

};

1717
18-

const EXTERNALIZED_BUNDLED_PLUGIN_BRIDGES: readonly ExternalizedBundledPluginBridge[] = [

19-

{

20-

bundledPluginId: "tlon",

21-

npmSpec: "@openclaw/tlon",

22-

channelIds: ["tlon"],

23-

},

24-

{

25-

bundledPluginId: "twitch",

26-

npmSpec: "@openclaw/twitch",

27-

channelIds: ["twitch", "twitch-chat"],

28-

legacyPluginIds: ["twitch-chat"],

29-

},

30-

{

31-

bundledPluginId: "synology-chat",

32-

npmSpec: "@openclaw/synology-chat",

33-

channelIds: ["synology-chat"],

34-

},

35-

];

36-
3718

function normalizePluginId(value: string | undefined): string {

3819

return value?.trim() ?? "";

3920

}

@@ -60,7 +41,3 @@ export function getExternalizedBundledPluginLookupIds(

6041

),

6142

);

6243

}

63-
64-

export function listExternalizedBundledPluginBridges(): readonly ExternalizedBundledPluginBridge[] {

65-

return EXTERNALIZED_BUNDLED_PLUGIN_BRIDGES;

66-

}

Original file line numberDiff line numberDiff line change

@@ -14,7 +14,6 @@ import { normalizePluginsConfig, resolveEffectiveEnableState } from "./config-st

1414

import {

1515

getExternalizedBundledPluginLookupIds,

1616

getExternalizedBundledPluginTargetId,

17-

listExternalizedBundledPluginBridges,

1817

type ExternalizedBundledPluginBridge,

1918

} from "./externalized-bundled-plugins.js";

2019

import {

@@ -863,8 +862,7 @@ export async function syncPluginsForUpdateChannel(params: {

863862

changed = true;

864863

}

865864

} else {

866-

const bridges =

867-

params.externalizedBundledPluginBridges ?? listExternalizedBundledPluginBridges();

865+

const bridges = params.externalizedBundledPluginBridges ?? [];

868866

for (const bridge of bridges) {

869867

const targetPluginId = getExternalizedBundledPluginTargetId(bridge);

870868

const bundledInfo = bundled.get(bridge.bundledPluginId);