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

推荐订阅源

D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
B
Blog RSS Feed
H
Help Net Security
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
L
LangChain Blog
Vercel News
Vercel News

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): align provider auth metadata · openclaw/ope...
vincentkoc · 2026-04-24 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -23,6 +23,7 @@ Docs: https://docs.openclaw.ai

2323

- Providers/Google: honor the private-network SSRF opt-in for Gemini image generation requests, so trusted proxy setups that resolve Google API hosts to private addresses can use `image_generate`. Fixes #67216.

2424

- Agents/transport: stop embedded runs from lowering the process-wide undici stream timeouts, so slow Gemini image generation and other long-running provider requests no longer inherit short run-attempt headers timeouts. Fixes #70423. Thanks @giangthb.

2525

- Providers/OpenRouter: send image-understanding prompts as user text before image parts, restoring non-empty vision responses for OpenRouter multimodal models. Fixes #70410.

26+

- Plugins/providers: mirror runtime auth choices in bundled provider manifests and detect `KIMI_API_KEY` for Moonshot/Kimi web search before plugin runtime loads. Thanks @vincentkoc.

2627

- Memory/QMD: recreate stale managed QMD collections when startup repair finds the collection name already exists, so root memory narrows back to `MEMORY.md` instead of staying on broad workspace markdown indexing.

2728

- Agents/OpenAI: surface selected-model capacity failures from PI, Codex, and auto-reply harness paths with a model-switch hint instead of the generic empty-response error. Thanks @vincentkoc.

2829

- Providers/OpenAI: route `openai/gpt-image-2` through configured Codex OAuth directly when an `openai-codex` profile is active, instead of probing `OPENAI_API_KEY` first.

Original file line numberDiff line numberDiff line change

@@ -23,6 +23,17 @@

2323

"groupLabel": "Anthropic",

2424

"groupHint": "Claude CLI + API key"

2525

},

26+

{

27+

"provider": "anthropic",

28+

"method": "setup-token",

29+

"choiceId": "setup-token",

30+

"choiceLabel": "Anthropic setup-token",

31+

"choiceHint": "Manual token path",

32+

"assistantPriority": 40,

33+

"groupId": "anthropic",

34+

"groupLabel": "Anthropic",

35+

"groupHint": "Claude CLI + API key + token"

36+

},

2637

{

2738

"provider": "anthropic",

2839

"method": "api-key",

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,41 @@

1+

import fs from "node:fs";

2+

import { describe, expect, it } from "vitest";

3+

import { resolveProviderPluginChoice } from "../../src/plugins/provider-auth-choice.runtime.js";

4+

import { registerSingleProviderPlugin } from "../../test/helpers/plugins/plugin-registration.js";

5+

import plugin from "./index.js";

6+
7+

type ComfyManifest = {

8+

providerAuthChoices?: Array<{ choiceId?: string; method?: string; provider?: string }>;

9+

};

10+
11+

function readManifest(): ComfyManifest {

12+

return JSON.parse(

13+

fs.readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),

14+

) as ComfyManifest;

15+

}

16+
17+

describe("comfy provider plugin", () => {

18+

it("registers cloud API-key auth metadata", async () => {

19+

const provider = await registerSingleProviderPlugin(plugin);

20+
21+

expect(provider.id).toBe("comfy");

22+

expect(provider.envVars).toEqual(["COMFY_API_KEY", "COMFY_CLOUD_API_KEY"]);

23+

expect(provider.auth?.map((method) => method.id)).toEqual(["cloud-api-key"]);

24+
25+

const choice = resolveProviderPluginChoice({

26+

providers: [provider],

27+

choice: "comfy-cloud-api-key",

28+

});

29+

expect(choice?.provider.id).toBe("comfy");

30+

expect(choice?.method.id).toBe("cloud-api-key");

31+

expect(readManifest().providerAuthChoices).toEqual(

32+

expect.arrayContaining([

33+

expect.objectContaining({

34+

provider: "comfy",

35+

method: "cloud-api-key",

36+

choiceId: "comfy-cloud-api-key",

37+

}),

38+

]),

39+

);

40+

});

41+

});

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,5 @@

11

import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";

2+

import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";

23

import { buildComfyImageGenerationProvider } from "./image-generation-provider.js";

34

import { buildComfyMusicGenerationProvider } from "./music-generation-provider.js";

45

import { buildComfyVideoGenerationProvider } from "./video-generation-provider.js";

@@ -15,7 +16,27 @@ export default definePluginEntry({

1516

label: "ComfyUI",

1617

docsPath: "/providers/comfy",

1718

envVars: ["COMFY_API_KEY", "COMFY_CLOUD_API_KEY"],

18-

auth: [],

19+

auth: [

20+

createProviderApiKeyAuthMethod({

21+

providerId: PROVIDER_ID,

22+

methodId: "cloud-api-key",

23+

label: "Comfy Cloud API key",

24+

hint: "API key for Comfy Cloud workflow runs",

25+

optionKey: "comfyApiKey",

26+

flagName: "--comfy-api-key",

27+

envVar: "COMFY_API_KEY",

28+

promptMessage: "Enter Comfy Cloud API key",

29+

wizard: {

30+

choiceId: "comfy-cloud-api-key",

31+

choiceLabel: "Comfy Cloud API key",

32+

choiceHint: "Required for cloud workflows",

33+

groupId: "comfy",

34+

groupLabel: "ComfyUI",

35+

groupHint: "Local or cloud workflows",

36+

onboardingScopes: ["image-generation"],

37+

},

38+

}),

39+

],

1940

});

2041

api.registerImageGenerationProvider(buildComfyImageGenerationProvider());

2142

api.registerMusicGenerationProvider(buildComfyMusicGenerationProvider());

Original file line numberDiff line numberDiff line change

@@ -5,6 +5,23 @@

55

"providerAuthEnvVars": {

66

"comfy": ["COMFY_API_KEY", "COMFY_CLOUD_API_KEY"]

77

},

8+

"providerAuthChoices": [

9+

{

10+

"provider": "comfy",

11+

"method": "cloud-api-key",

12+

"choiceId": "comfy-cloud-api-key",

13+

"choiceLabel": "Comfy Cloud API key",

14+

"choiceHint": "Required for cloud workflows",

15+

"groupId": "comfy",

16+

"groupLabel": "ComfyUI",

17+

"groupHint": "Local or cloud workflows",

18+

"optionKey": "comfyApiKey",

19+

"cliFlag": "--comfy-api-key",

20+

"cliOption": "--comfy-api-key <key>",

21+

"cliDescription": "Comfy Cloud API key",

22+

"onboardingScopes": ["image-generation"]

23+

}

24+

],

825

"contracts": {

926

"imageGenerationProviders": ["comfy"],

1027

"musicGenerationProviders": ["comfy"],

Original file line numberDiff line numberDiff line change

@@ -1,10 +1,28 @@

1+

import fs from "node:fs";

12

import type { Context, Model } from "@mariozechner/pi-ai";

23

import { describe, expect, it } from "vitest";

34

import { registerSingleProviderPlugin } from "../../test/helpers/plugins/plugin-registration.js";

45

import { createCapturedThinkingConfigStream } from "../../test/helpers/plugins/stream-hooks.js";

56

import plugin from "./index.js";

7+

import { createKimiWebSearchProvider } from "./src/kimi-web-search-provider.js";

8+
9+

type MoonshotManifest = {

10+

providerAuthEnvVars?: Record<string, string[]>;

11+

};

12+
13+

function readManifest(): MoonshotManifest {

14+

return JSON.parse(

15+

fs.readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),

16+

) as MoonshotManifest;

17+

}

618
719

describe("moonshot provider plugin", () => {

20+

it("mirrors Kimi web-search env credentials in manifest metadata", () => {

21+

const manifestEnvVars = readManifest().providerAuthEnvVars?.moonshot ?? [];

22+
23+

expect(manifestEnvVars).toEqual(expect.arrayContaining(createKimiWebSearchProvider().envVars));

24+

});

25+
826

it("owns replay policy for OpenAI-compatible Moonshot transports without mangling native Kimi tool_call IDs", async () => {

927

const provider = await registerSingleProviderPlugin(plugin);

1028
Original file line numberDiff line numberDiff line change

@@ -3,7 +3,7 @@

33

"enabledByDefault": true,

44

"providers": ["moonshot"],

55

"providerAuthEnvVars": {

6-

"moonshot": ["MOONSHOT_API_KEY"]

6+

"moonshot": ["MOONSHOT_API_KEY", "KIMI_API_KEY"]

77

},

88

"providerAuthChoices": [

99

{

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,41 @@

1+

import fs from "node:fs";

2+

import { describe, expect, it } from "vitest";

3+

import { resolveProviderPluginChoice } from "../../src/plugins/provider-auth-choice.runtime.js";

4+

import { registerSingleProviderPlugin } from "../../test/helpers/plugins/plugin-registration.js";

5+

import plugin from "./index.js";

6+
7+

type NvidiaManifest = {

8+

providerAuthChoices?: Array<{ choiceId?: string; method?: string; provider?: string }>;

9+

};

10+
11+

function readManifest(): NvidiaManifest {

12+

return JSON.parse(

13+

fs.readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),

14+

) as NvidiaManifest;

15+

}

16+
17+

describe("nvidia provider plugin", () => {

18+

it("registers API-key auth metadata", async () => {

19+

const provider = await registerSingleProviderPlugin(plugin);

20+
21+

expect(provider.id).toBe("nvidia");

22+

expect(provider.envVars).toEqual(["NVIDIA_API_KEY"]);

23+

expect(provider.auth?.map((method) => method.id)).toEqual(["api-key"]);

24+
25+

const choice = resolveProviderPluginChoice({

26+

providers: [provider],

27+

choice: "nvidia-api-key",

28+

});

29+

expect(choice?.provider.id).toBe("nvidia");

30+

expect(choice?.method.id).toBe("api-key");

31+

expect(readManifest().providerAuthChoices).toEqual(

32+

expect.arrayContaining([

33+

expect.objectContaining({

34+

provider: "nvidia",

35+

method: "api-key",

36+

choiceId: "nvidia-api-key",

37+

}),

38+

]),

39+

);

40+

});

41+

});

Original file line numberDiff line numberDiff line change

@@ -11,7 +11,24 @@ export default defineSingleProviderPluginEntry({

1111

label: "NVIDIA",

1212

docsPath: "/providers/nvidia",

1313

envVars: ["NVIDIA_API_KEY"],

14-

auth: [],

14+

auth: [

15+

{

16+

methodId: "api-key",

17+

label: "NVIDIA API key",

18+

hint: "API key",

19+

optionKey: "nvidiaApiKey",

20+

flagName: "--nvidia-api-key",

21+

envVar: "NVIDIA_API_KEY",

22+

promptMessage: "Enter NVIDIA API key",

23+

wizard: {

24+

choiceId: "nvidia-api-key",

25+

choiceLabel: "NVIDIA API key",

26+

groupId: "nvidia",

27+

groupLabel: "NVIDIA",

28+

groupHint: "API key",

29+

},

30+

},

31+

],

1532

catalog: {

1633

buildProvider: buildNvidiaProvider,

1734

},

Original file line numberDiff line numberDiff line change

@@ -5,6 +5,21 @@

55

"providerAuthEnvVars": {

66

"nvidia": ["NVIDIA_API_KEY"]

77

},

8+

"providerAuthChoices": [

9+

{

10+

"provider": "nvidia",

11+

"method": "api-key",

12+

"choiceId": "nvidia-api-key",

13+

"choiceLabel": "NVIDIA API key",

14+

"groupId": "nvidia",

15+

"groupLabel": "NVIDIA",

16+

"groupHint": "API key",

17+

"optionKey": "nvidiaApiKey",

18+

"cliFlag": "--nvidia-api-key",

19+

"cliOption": "--nvidia-api-key <key>",

20+

"cliDescription": "NVIDIA API key"

21+

}

22+

],

823

"configSchema": {

924

"type": "object",

1025

"additionalProperties": false,