docs(plugins): clarify registry-derived relocations · openclaw/openclaw@f70d77b
vincentkoc
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,6 +5,9 @@ import type { InstalledPluginIndexRecord } from "../plugins/installed-plugin-ind
|
5 | 5 | function buildBridgeFromPersistedBundledRecord( |
6 | 6 | record: InstalledPluginIndexRecord, |
7 | 7 | ): ExternalizedBundledPluginBridge | null { |
| 8 | +// Relocation is derived from the previous persisted registry, not a hardcoded |
| 9 | +// table. A plugin moving from bundled to npm keeps the same plugin id; the old |
| 10 | +// registry row is the proof that this user actually had it bundled/enabled. |
8 | 11 | if (record.origin !== "bundled" || record.enabled === false) { |
9 | 12 | return null; |
10 | 13 | } |
@@ -24,6 +27,9 @@ export async function listPersistedBundledPluginLocationBridges(options: {
|
24 | 27 | workspaceDir?: string; |
25 | 28 | env?: NodeJS.ProcessEnv; |
26 | 29 | }): Promise<readonly ExternalizedBundledPluginBridge[]> { |
| 30 | +// This intentionally reads the pre-update registry. The current build may no |
| 31 | +// longer contain the bundled plugin, so normal discovery cannot recover its |
| 32 | +// package install hint. |
27 | 33 | const index = await readPersistedInstalledPluginIndex(options); |
28 | 34 | if (!index) { |
29 | 35 | return []; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。