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

推荐订阅源

J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
雷峰网
雷峰网
T
Tailwind CSS Blog
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
博客园 - 司徒正美
I
InfoQ
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
小众软件
小众软件
U
Unit 42
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net

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): require declared runtime setup entries · op...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -168,6 +168,64 @@ export async function validatePackageExtensionEntriesForInstall(params: {

168168

}

169169

}

170170171+

const packageManifest = getPackageManifestMetadata(params.manifest);

172+

const setupEntry = normalizeOptionalString(packageManifest?.setupEntry);

173+

const runtimeSetupEntry = normalizeOptionalString(packageManifest?.runtimeSetupEntry);

174+

if (runtimeSetupEntry && !setupEntry) {

175+

return {

176+

ok: false,

177+

error: "package.json openclaw.runtimeSetupEntry requires openclaw.setupEntry",

178+

};

179+

}

180+

if (setupEntry) {

181+

const sourceEntry = await validatePackageExtensionEntry({

182+

packageDir: params.packageDir,

183+

entry: setupEntry,

184+

label: "setup entry",

185+

requireExisting: false,

186+

});

187+

if (!sourceEntry.ok) {

188+

return sourceEntry;

189+

}

190+191+

if (runtimeSetupEntry) {

192+

const runtimeResult = await validatePackageExtensionEntry({

193+

packageDir: params.packageDir,

194+

entry: runtimeSetupEntry,

195+

label: "runtime setup entry",

196+

requireExisting: true,

197+

});

198+

if (!runtimeResult.ok) {

199+

return runtimeResult;

200+

}

201+

return { ok: true };

202+

}

203+204+

if (sourceEntry.exists) {

205+

return { ok: true };

206+

}

207+208+

let foundBuiltSetupEntry = false;

209+

for (const builtEntry of listBuiltRuntimeEntryCandidates(setupEntry)) {

210+

const builtResult = await validatePackageExtensionEntry({

211+

packageDir: params.packageDir,

212+

entry: builtEntry,

213+

label: "inferred runtime setup entry",

214+

requireExisting: false,

215+

});

216+

if (!builtResult.ok) {

217+

return builtResult;

218+

}

219+

if (builtResult.exists) {

220+

foundBuiltSetupEntry = true;

221+

break;

222+

}

223+

}

224+

if (!foundBuiltSetupEntry) {

225+

return { ok: false, error: `setup entry not found: ${setupEntry}` };

226+

}

227+

}

228+171229

return { ok: true };

172230

}

173231

@@ -307,6 +365,7 @@ function resolvePackageRuntimeEntrySource(params: {

307365

packageRootRealPath?: string;

308366

entryPath: string;

309367

runtimeEntryPath?: string;

368+

runtimeEntryLabel?: string;

310369

origin: PluginOrigin;

311370

sourceLabel: string;

312371

diagnostics: PluginDiagnostic[];

@@ -340,6 +399,12 @@ function resolvePackageRuntimeEntrySource(params: {

340399

if (runtimeSource) {

341400

return runtimeSource;

342401

}

402+

params.diagnostics.push({

403+

level: "error",

404+

message: `${params.runtimeEntryLabel ?? "runtime entry"} not found: ${params.runtimeEntryPath}`,

405+

source: params.sourceLabel,

406+

});

407+

return null;

343408

}

344409345410

if (shouldInferBuiltRuntimeEntry(params.origin)) {

@@ -397,6 +462,7 @@ export function resolvePackageSetupSource(params: {

397462

: {}),

398463

entryPath: setupEntryPath,

399464

runtimeEntryPath: normalizeOptionalString(packageManifest?.runtimeSetupEntry),

465+

runtimeEntryLabel: "runtime setup entry",

400466

origin: params.origin,

401467

sourceLabel: params.sourceLabel,

402468

diagnostics: params.diagnostics,

@@ -435,6 +501,7 @@ export function resolvePackageRuntimeExtensionSources(params: {

435501

: {}),

436502

entryPath,

437503

runtimeEntryPath: runtimeResolution.runtimeExtensions[index],

504+

runtimeEntryLabel: "runtime extension entry",

438505

origin: params.origin,

439506

sourceLabel: params.sourceLabel,

440507

diagnostics: params.diagnostics,