From 1f267de1420659e53a9256b51a6ff920cb19468a Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 25 Apr 2026 23:08:43 -0700 Subject: [PATCH] docs(changelog): note cold provider setup guidance --- CHANGELOG.md | 1 + src/commands/provider-setup-cold-imports.test.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9e22ffb260..409d43213ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ Docs: https://docs.openclaw.ai - CLI/models: speed up `models list --all --provider ` for static manifest-backed providers by loading catalog rows through the installed plugin index instead of broad manifest scans or runtime suppression hooks. Thanks @shakkernerd. - CLI/models: use OpenClaw Provider Index preview rows as the final cold fallback for installable providers, while keeping user config, installed manifests, and refreshed cache rows above provider-index metadata. Thanks @vincentkoc. - Providers/plugins: keep onboarding and auth-choice setup lists on cold manifest/install metadata and add Provider Index install metadata for not-yet-installed provider plugins. Thanks @vincentkoc. +- Providers/plugins: keep provider setup guidance and configure auth imports on cold manifest metadata, with a regression guard against static provider-runtime imports on setup/configure list paths. Thanks @vincentkoc. - Plugins/chat commands: refresh the persisted plugin registry after `/plugins enable` and `/plugins disable`, matching the CLI mutation path. Thanks @vincentkoc. - Plugins/compat: mark `OPENCLAW_DISABLE_PERSISTED_PLUGIN_REGISTRY` as a deprecated break-glass switch and point operators at registry repair instead. Thanks @vincentkoc. - Plugins/registry: ignore stale persisted registry reads when plugin policy no longer matches current config, and stamp generated registry files with a do-not-edit warning. Thanks @vincentkoc. diff --git a/src/commands/provider-setup-cold-imports.test.ts b/src/commands/provider-setup-cold-imports.test.ts index 2c843544aa8..272300bc11c 100644 --- a/src/commands/provider-setup-cold-imports.test.ts +++ b/src/commands/provider-setup-cold-imports.test.ts @@ -26,8 +26,9 @@ describe("provider setup cold imports", () => { for (const file of coldProviderSetupFiles) { const source = fs.readFileSync(path.join(repoRoot, file), "utf8"); for (const importPath of forbiddenRuntimeImports) { + const escapedImportPath = importPath.replaceAll(".", "\\."); const staticImportPattern = new RegExp( - `\\bfrom\\s+["'][^"']*${importPath.replaceAll(".", "\\.")}["']`, + `(?:\\bfrom\\s+["'][^"']*${escapedImportPath}["']|\\bimport\\s+["'][^"']*${escapedImportPath}["'])`, ); expect(source, `${file} must not statically import ${importPath}`).not.toMatch( staticImportPattern,