Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(openclaw-plugin): remove legacy provider auth metadata (#4511)

Zayn Jarvis575a366f92e3
diff --git a/examples/openclaw-plugin/openclaw.plugin.json b/examples/openclaw-plugin/openclaw.plugin.json
index 6643a336e..bc8069993 100644
--- a/examples/openclaw-plugin/openclaw.plugin.json
+++ b/examples/openclaw-plugin/openclaw.plugin.json
@@ -42,12 +42,6 @@
"cliCommand": "openviking"
}
],
- "providerAuthEnvVars": {
- "openviking": [
- "OPENVIKING_API_KEY",
- "OPENVIKING_BASE_URL"
- ]
- },
"skills": [
"./skills/install-openviking-memory",
"./skills/openviking-context-database",
diff --git a/examples/openclaw-plugin/tests/ut/manifest-contracts.test.ts b/examples/openclaw-plugin/tests/ut/manifest-contracts.test.ts
index 3c03b66e0..6151f1454 100644
--- a/examples/openclaw-plugin/tests/ut/manifest-contracts.test.ts
+++ b/examples/openclaw-plugin/tests/ut/manifest-contracts.test.ts
@@ -12,6 +12,7 @@ const manifest = JSON.parse(
icon?: string;
activation?: { onStartup?: boolean; onCapabilities?: string[] };
contracts?: { tools?: string[] };
+ setup?: { providers?: Array<{ id?: string; envVars?: string[] }> };
configSchema?: { properties?: Record<string, unknown> };
};
const packageJson = JSON.parse(
@@ -100,6 +101,14 @@ describe("OpenClaw 5.2 manifest contracts", () => {
expect(manifest.activation?.onCapabilities?.toSorted()).toEqual(["hook", "tool"]);
});
+ it("declares provider auth environment variables only in current setup metadata", () => {
+ expect(manifest).not.toHaveProperty("providerAuthEnvVars");
+ expect(manifest.setup?.providers).toContainEqual(expect.objectContaining({
+ id: "openviking",
+ envVars: ["OPENVIKING_API_KEY", "OPENVIKING_BASE_URL"],
+ }));
+ });
+
it("declares recall trace configuration schema keys", () => {
expect(Object.keys(manifest.configSchema?.properties ?? {})).toEqual(expect.arrayContaining([
"traceRecall",