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

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 【当耐特】
H
Help Net Security
腾讯CDC
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
Y
Y Combinator Blog
C
Check Point Blog
博客园 - 司徒正美
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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
refactor(plugins): track activation compat hints · opencl...
vincentkoc · 2026-04-24 · via Recent Commits to openclaw:main

@@ -9,10 +9,14 @@ vi.mock("./manifest-registry.js", () => ({

99

}));

10101111

let resolveManifestActivationPluginIds: typeof import("./activation-planner.js").resolveManifestActivationPluginIds;

12+

let resolveManifestActivationPlan: typeof import("./activation-planner.js").resolveManifestActivationPlan;

13+

let PLUGIN_COMPAT_REASON: typeof import("./compat-reasons.js").PLUGIN_COMPAT_REASON;

12141315

describe("resolveManifestActivationPluginIds", () => {

1416

beforeAll(async () => {

15-

({ resolveManifestActivationPluginIds } = await import("./activation-planner.js"));

17+

({ resolveManifestActivationPluginIds, resolveManifestActivationPlan } =

18+

await import("./activation-planner.js"));

19+

({ PLUGIN_COMPAT_REASON } = await import("./compat-reasons.js"));

1620

});

17211822

beforeEach(() => {

@@ -70,6 +74,20 @@ describe("resolveManifestActivationPluginIds", () => {

7074

},

7175

origin: "workspace",

7276

},

77+

{

78+

id: "legacy-activation-only",

79+

providers: [],

80+

activation: {

81+

onProviders: ["legacy-provider"],

82+

onChannels: ["legacy-channel"],

83+

onCapabilities: ["tool"],

84+

},

85+

channels: [],

86+

cliBackends: [],

87+

skills: [],

88+

hooks: [],

89+

origin: "workspace",

90+

},

7391

],

7492

diagnostics: [],

7593

});

@@ -168,7 +186,7 @@ describe("resolveManifestActivationPluginIds", () => {

168186

capability: "tool",

169187

},

170188

}),

171-

).toEqual(["demo-channel"]);

189+

).toEqual(["demo-channel", "legacy-activation-only"]);

172190173191

expect(

174192

resolveManifestActivationPluginIds({

@@ -191,4 +209,96 @@ describe("resolveManifestActivationPluginIds", () => {

191209

}),

192210

).toEqual([]);

193211

});

212+213+

it("reports legacy activation field compat reasons without changing plugin-id resolution", () => {

214+

expect(

215+

resolveManifestActivationPlan({

216+

trigger: {

217+

kind: "command",

218+

command: "demo-tools",

219+

},

220+

}),

221+

).toEqual({

222+

pluginIds: ["demo-channel"],

223+

entries: [

224+

{

225+

pluginId: "demo-channel",

226+

reasons: ["command:demo-tools"],

227+

compatReasons: [PLUGIN_COMPAT_REASON.legacyActivationField],

228+

},

229+

],

230+

compatReasons: {

231+

"demo-channel": [PLUGIN_COMPAT_REASON.legacyActivationField],

232+

},

233+

});

234+235+

expect(

236+

resolveManifestActivationPlan({

237+

trigger: {

238+

kind: "provider",

239+

provider: "legacy-provider",

240+

},

241+

}).compatReasons,

242+

).toEqual({

243+

"legacy-activation-only": [PLUGIN_COMPAT_REASON.legacyActivationField],

244+

});

245+246+

expect(

247+

resolveManifestActivationPluginIds({

248+

trigger: {

249+

kind: "provider",

250+

provider: "legacy-provider",

251+

},

252+

}),

253+

).toEqual(["legacy-activation-only"]);

254+

});

255+256+

it("does not report compat reasons for stable ownership metadata", () => {

257+

expect(

258+

resolveManifestActivationPlan({

259+

trigger: {

260+

kind: "provider",

261+

provider: "openai",

262+

},

263+

}),

264+

).toEqual({

265+

pluginIds: ["openai"],

266+

entries: [

267+

{

268+

pluginId: "openai",

269+

reasons: ["provider:openai"],

270+

compatReasons: [],

271+

},

272+

],

273+

compatReasons: {},

274+

});

275+

});

276+277+

it("reports legacy activation capability hints separately from stable capabilities", () => {

278+

expect(

279+

resolveManifestActivationPlan({

280+

trigger: {

281+

kind: "capability",

282+

capability: "tool",

283+

},

284+

}),

285+

).toEqual({

286+

pluginIds: ["demo-channel", "legacy-activation-only"],

287+

entries: [

288+

{

289+

pluginId: "demo-channel",

290+

reasons: ["capability:tool"],

291+

compatReasons: [],

292+

},

293+

{

294+

pluginId: "legacy-activation-only",

295+

reasons: ["capability:tool"],

296+

compatReasons: [PLUGIN_COMPAT_REASON.legacyActivationField],

297+

},

298+

],

299+

compatReasons: {

300+

"legacy-activation-only": [PLUGIN_COMPAT_REASON.legacyActivationField],

301+

},

302+

});

303+

});

194304

});