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

推荐订阅源

Y
Y Combinator Blog
IT之家
IT之家
博客园_首页
人人都是产品经理
人人都是产品经理
博客园 - Franky
I
InfoQ
Recent Announcements
Recent Announcements
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog RSS Feed
MongoDB | Blog
MongoDB | Blog
雷峰网
雷峰网
博客园 - 聂微东
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
D
Docker

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(release): repair packaged plugin startup metadata · o...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1757,6 +1757,7 @@

17571757

"@mariozechner/pi-coding-agent",

17581758

"@modelcontextprotocol/sdk",

17591759

"ajv",

1760+

"chalk",

17601761

"chokidar",

17611762

"commander",

17621763

"croner",

Original file line numberDiff line numberDiff line change

@@ -289,6 +289,13 @@ describe("prepareGatewayPluginBootstrap runtime-deps staging", () => {

289289

exactPluginIds: ["telegram"],

290290

}),

291291

);

292+

expect(resolveOpenClawPackageRootSync).toHaveBeenCalledWith(

293+

expect.objectContaining({

294+

moduleUrl: expect.stringContaining("server-startup-plugins"),

295+

argv1: process.argv[1],

296+

cwd: process.cwd(),

297+

}),

298+

);

292299

expect(prepareBundledPluginRuntimeLoadRoot).toHaveBeenCalledWith(

293300

expect.objectContaining({

294301

pluginId: "telegram",

Original file line numberDiff line numberDiff line change

@@ -75,7 +75,11 @@ async function prestageGatewayBundledRuntimeDepsImpl(params: {

7575

return {};

7676

}

7777

let repairError: unknown;

78-

const packageRoot = resolveOpenClawPackageRootSync({ moduleUrl: import.meta.url });

78+

const packageRoot = resolveOpenClawPackageRootSync({

79+

moduleUrl: import.meta.url,

80+

argv1: process.argv[1],

81+

cwd: process.cwd(),

82+

});

7983

if (packageRoot) {

8084

try {

8185

pruneUnknownBundledRuntimeDepsRoots({

Original file line numberDiff line numberDiff line change

@@ -29,4 +29,42 @@ describe("plugin loader records", () => {

2929
3030

expect(record.providerIds).toEqual(["kitchen-sink-provider"]);

3131

});

32+
33+

it("preserves manifest-declared capability provider ids before runtime registration", () => {

34+

const record = createPluginRecord({

35+

id: "kitchen-sink",

36+

name: "Kitchen Sink",

37+

source: "/tmp/kitchen-sink/index.js",

38+

origin: "global",

39+

enabled: true,

40+

contracts: {

41+

speechProviders: ["kitchen-sink-speech-provider"],

42+

realtimeTranscriptionProviders: ["kitchen-sink-transcription-provider"],

43+

realtimeVoiceProviders: ["kitchen-sink-voice-provider"],

44+

mediaUnderstandingProviders: ["kitchen-sink-media-provider"],

45+

imageGenerationProviders: ["kitchen-sink-image-provider"],

46+

videoGenerationProviders: ["kitchen-sink-video-provider"],

47+

musicGenerationProviders: ["kitchen-sink-music-provider"],

48+

webFetchProviders: ["kitchen-sink-web-fetch-provider"],

49+

webSearchProviders: ["kitchen-sink-web-search-provider"],

50+

migrationProviders: ["kitchen-sink-migration-provider"],

51+

memoryEmbeddingProviders: ["kitchen-sink-memory-provider"],

52+

},

53+

configSchema: false,

54+

});

55+
56+

expect(record.speechProviderIds).toEqual(["kitchen-sink-speech-provider"]);

57+

expect(record.realtimeTranscriptionProviderIds).toEqual([

58+

"kitchen-sink-transcription-provider",

59+

]);

60+

expect(record.realtimeVoiceProviderIds).toEqual(["kitchen-sink-voice-provider"]);

61+

expect(record.mediaUnderstandingProviderIds).toEqual(["kitchen-sink-media-provider"]);

62+

expect(record.imageGenerationProviderIds).toEqual(["kitchen-sink-image-provider"]);

63+

expect(record.videoGenerationProviderIds).toEqual(["kitchen-sink-video-provider"]);

64+

expect(record.musicGenerationProviderIds).toEqual(["kitchen-sink-music-provider"]);

65+

expect(record.webFetchProviderIds).toEqual(["kitchen-sink-web-fetch-provider"]);

66+

expect(record.webSearchProviderIds).toEqual(["kitchen-sink-web-search-provider"]);

67+

expect(record.migrationProviderIds).toEqual(["kitchen-sink-migration-provider"]);

68+

expect(record.memoryEmbeddingProviderIds).toEqual(["kitchen-sink-memory-provider"]);

69+

});

3270

});

Original file line numberDiff line numberDiff line change

@@ -52,18 +52,18 @@ export function createPluginRecord(params: {

5252

channelIds: [...(params.channelIds ?? [])],

5353

cliBackendIds: [],

5454

providerIds: [...(params.providerIds ?? [])],

55-

speechProviderIds: [],

56-

realtimeTranscriptionProviderIds: [],

57-

realtimeVoiceProviderIds: [],

58-

mediaUnderstandingProviderIds: [],

59-

imageGenerationProviderIds: [],

60-

videoGenerationProviderIds: [],

61-

musicGenerationProviderIds: [],

62-

webFetchProviderIds: [],

63-

webSearchProviderIds: [],

64-

migrationProviderIds: [],

55+

speechProviderIds: [...(params.contracts?.speechProviders ?? [])],

56+

realtimeTranscriptionProviderIds: [...(params.contracts?.realtimeTranscriptionProviders ?? [])],

57+

realtimeVoiceProviderIds: [...(params.contracts?.realtimeVoiceProviders ?? [])],

58+

mediaUnderstandingProviderIds: [...(params.contracts?.mediaUnderstandingProviders ?? [])],

59+

imageGenerationProviderIds: [...(params.contracts?.imageGenerationProviders ?? [])],

60+

videoGenerationProviderIds: [...(params.contracts?.videoGenerationProviders ?? [])],

61+

musicGenerationProviderIds: [...(params.contracts?.musicGenerationProviders ?? [])],

62+

webFetchProviderIds: [...(params.contracts?.webFetchProviders ?? [])],

63+

webSearchProviderIds: [...(params.contracts?.webSearchProviders ?? [])],

64+

migrationProviderIds: [...(params.contracts?.migrationProviders ?? [])],

6565

contextEngineIds: [],

66-

memoryEmbeddingProviderIds: [],

66+

memoryEmbeddingProviderIds: [...(params.contracts?.memoryEmbeddingProviders ?? [])],

6767

agentHarnessIds: [],

6868

gatewayMethods: [],

6969

cliCommands: [],

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,49 @@

1+

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

2+

import { createPluginRecord } from "./loader-records.js";

3+

import { createPluginRegistry } from "./registry.js";

4+

import type { PluginRuntime } from "./runtime/types.js";

5+
6+

function createTestRegistry() {

7+

return createPluginRegistry({

8+

logger: {

9+

info() {},

10+

warn() {},

11+

error() {},

12+

debug() {},

13+

},

14+

runtime: {} as PluginRuntime,

15+

activateGlobalSideEffects: false,

16+

});

17+

}

18+
19+

describe("plugin registry provider-like registrations", () => {

20+

it("does not duplicate manifest-declared capability provider ids during runtime registration", () => {

21+

const pluginRegistry = createTestRegistry();

22+

const record = createPluginRecord({

23+

id: "kitchen-sink",

24+

name: "Kitchen Sink",

25+

source: "/tmp/kitchen-sink/index.js",

26+

origin: "global",

27+

enabled: true,

28+

contracts: {

29+

speechProviders: ["kitchen-sink-speech-provider"],

30+

},

31+

configSchema: false,

32+

});

33+
34+

pluginRegistry.registerSpeechProvider(record, {

35+

id: "kitchen-sink-speech-provider",

36+

label: "Kitchen Sink Speech",

37+

isConfigured: () => true,

38+

synthesize: async () => ({

39+

audioBuffer: Buffer.alloc(0),

40+

fileExtension: "mp3",

41+

outputFormat: "audio/mpeg",

42+

voiceCompatible: true,

43+

}),

44+

});

45+
46+

expect(record.speechProviderIds).toEqual(["kitchen-sink-speech-provider"]);

47+

expect(pluginRegistry.registry.speechProviders).toHaveLength(1);

48+

});

49+

});

Original file line numberDiff line numberDiff line change

@@ -970,7 +970,9 @@ export function createPluginRegistry(registryParams: PluginRegistryParams) {

970970

});

971971

return;

972972

}

973-

params.ownedIds.push(id);

973+

if (!params.ownedIds.includes(id)) {

974+

params.ownedIds.push(id);

975+

}

974976

params.registrations.push({

975977

pluginId: record.id,

976978

pluginName: record.name,

Original file line numberDiff line numberDiff line change

@@ -33,6 +33,11 @@ describe("buildPluginRegistrySnapshotReport", () => {

3333

description: "Manifest-backed list metadata",

3434

version: "1.2.3",

3535

providers: ["indexed-provider"],

36+

contracts: {

37+

speechProviders: ["indexed-speech-provider"],

38+

realtimeTranscriptionProviders: ["indexed-transcription-provider"],

39+

realtimeVoiceProviders: ["indexed-voice-provider"],

40+

},

3641

commandAliases: [{ name: "indexed-demo" }],

3742

configSchema: {

3843

type: "object",

@@ -58,6 +63,9 @@ describe("buildPluginRegistrySnapshotReport", () => {

5863

version: "9.8.7",

5964

format: "openclaw",

6065

providerIds: ["indexed-provider"],

66+

speechProviderIds: ["indexed-speech-provider"],

67+

realtimeTranscriptionProviderIds: ["indexed-transcription-provider"],

68+

realtimeVoiceProviderIds: ["indexed-voice-provider"],

6169

commands: ["indexed-demo"],

6270

source: fs.realpathSync(fixture.runtimeSource),

6371

status: "loaded",

Original file line numberDiff line numberDiff line change

@@ -200,17 +200,19 @@ function buildPluginRecordFromInstalledIndex(

200200

channelIds: [...(manifest?.channels ?? [])],

201201

cliBackendIds: [...(manifest?.cliBackends ?? []), ...(manifest?.setup?.cliBackends ?? [])],

202202

providerIds: [...(manifest?.providers ?? [])],

203-

speechProviderIds: [],

204-

realtimeTranscriptionProviderIds: [],

205-

realtimeVoiceProviderIds: [],

206-

mediaUnderstandingProviderIds: [],

207-

imageGenerationProviderIds: [],

208-

videoGenerationProviderIds: [],

209-

musicGenerationProviderIds: [],

210-

webFetchProviderIds: [],

211-

webSearchProviderIds: [],

212-

migrationProviderIds: [],

213-

memoryEmbeddingProviderIds: [],

203+

speechProviderIds: [...(manifest?.contracts?.speechProviders ?? [])],

204+

realtimeTranscriptionProviderIds: [

205+

...(manifest?.contracts?.realtimeTranscriptionProviders ?? []),

206+

],

207+

realtimeVoiceProviderIds: [...(manifest?.contracts?.realtimeVoiceProviders ?? [])],

208+

mediaUnderstandingProviderIds: [...(manifest?.contracts?.mediaUnderstandingProviders ?? [])],

209+

imageGenerationProviderIds: [...(manifest?.contracts?.imageGenerationProviders ?? [])],

210+

videoGenerationProviderIds: [...(manifest?.contracts?.videoGenerationProviders ?? [])],

211+

musicGenerationProviderIds: [...(manifest?.contracts?.musicGenerationProviders ?? [])],

212+

webFetchProviderIds: [...(manifest?.contracts?.webFetchProviders ?? [])],

213+

webSearchProviderIds: [...(manifest?.contracts?.webSearchProviders ?? [])],

214+

migrationProviderIds: [...(manifest?.contracts?.migrationProviders ?? [])],

215+

memoryEmbeddingProviderIds: [...(manifest?.contracts?.memoryEmbeddingProviders ?? [])],

214216

agentHarnessIds: [],

215217

gatewayMethods: [],

216218

cliCommands: [],