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

推荐订阅源

A
About on SuperTechFans
G
Google Developers Blog
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
小众软件
小众软件
月光博客
月光博客
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
P
Proofpoint News Feed
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
The Cloudflare Blog
博客园_首页
美团技术团队
大猫的无限游戏
大猫的无限游戏
B
Blog
IT之家
IT之家
Jina AI
Jina AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
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
fix: align bundled provider contracts with externalized p...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -5,7 +5,13 @@ import {

55

normalizeBundledPluginStringList,

66

resolveBundledPluginScanDir,

77

} from "../../bundled-plugin-scan.js";

8-

import { PLUGIN_MANIFEST_FILENAME, type PluginManifest } from "../../manifest.js";

8+

import {

9+

getPackageManifestMetadata,

10+

isPackageIncludedInCoreBundle,

11+

PLUGIN_MANIFEST_FILENAME,

12+

type PackageManifest,

13+

type PluginManifest,

14+

} from "../../manifest.js";

915

import { resolveLoaderPackageRoot } from "../../sdk-alias.js";

1016

import { uniqueStrings } from "../shared.js";

1117

@@ -65,17 +71,7 @@ function readJsonRecord(filePath: string): Record<string, unknown> | undefined {

6571

}

6672
6773

function isExplicitlyDownloadablePlugin(packageJson: Record<string, unknown> | undefined): boolean {

68-

const openclaw = packageJson?.openclaw;

69-

if (!openclaw || typeof openclaw !== "object" || Array.isArray(openclaw)) {

70-

return false;

71-

}

72-

const bundle = (openclaw as { bundle?: unknown }).bundle;

73-

return (

74-

bundle !== null &&

75-

typeof bundle === "object" &&

76-

!Array.isArray(bundle) &&

77-

(bundle as { includeInCore?: unknown }).includeInCore === false

78-

);

74+

return !isPackageIncludedInCoreBundle(getPackageManifestMetadata(packageJson as PackageManifest));

7975

}

8076
8177

function readBundledCapabilityManifest(pluginDir: string): BundledCapabilityManifest | undefined {

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,7 @@

11

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

22

import { uniqueSortedStrings } from "../../plugin-sdk/test-helpers/string-utils.js";

33

import { loadPluginManifestRegistry } from "../manifest-registry.js";

4+

import { isPackageIncludedInCoreBundle } from "../manifest.js";

45

import { resolveManifestContractPluginIds } from "../plugin-registry.js";

56

import {

67

pluginRegistrationContractRegistry,

@@ -44,7 +45,11 @@ describe("plugin contract registry", () => {

4445

}) => boolean,

4546

) {

4647

return loadPluginManifestRegistry({})

47-

.plugins.filter(predicate)

48+

.plugins.filter(

49+

(plugin) =>

50+

(plugin.origin !== "bundled" || isPackageIncludedInCoreBundle(plugin.packageManifest)) &&

51+

predicate(plugin),

52+

)

4853

.map((plugin) => plugin.id)

4954

.toSorted((left, right) => left.localeCompare(right));

5055

}

Original file line numberDiff line numberDiff line change

@@ -1530,6 +1530,10 @@ export type OpenClawPackageSetupFeatures = {

15301530

legacySessionSurfaces?: boolean;

15311531

};

15321532
1533+

export type OpenClawPackageBundle = {

1534+

includeInCore?: boolean;

1535+

};

1536+
15331537

export type OpenClawPackageManifest = {

15341538

extensions?: string[];

15351539

runtimeExtensions?: string[];

@@ -1538,6 +1542,7 @@ export type OpenClawPackageManifest = {

15381542

setupFeatures?: OpenClawPackageSetupFeatures;

15391543

channel?: PluginPackageChannel;

15401544

install?: PluginPackageInstall;

1545+

bundle?: OpenClawPackageBundle;

15411546

startup?: OpenClawPackageStartup;

15421547

};

15431548

@@ -1570,6 +1575,12 @@ export function getPackageManifestMetadata(

15701575

return manifest[MANIFEST_KEY];

15711576

}

15721577
1578+

export function isPackageIncludedInCoreBundle(

1579+

manifest: OpenClawPackageManifest | undefined,

1580+

): boolean {

1581+

return manifest?.bundle?.includeInCore !== false;

1582+

}

1583+
15731584

export function resolvePackageExtensionEntries(

15741585

manifest: PackageManifest | undefined,

15751586

): PackageExtensionResolution {

Original file line numberDiff line numberDiff line change

@@ -12,6 +12,7 @@ import type {

1212

PluginManifestRecord,

1313

PluginManifestRegistry,

1414

} from "./manifest-registry.js";

15+

import { isPackageIncludedInCoreBundle } from "./manifest.js";

1516

import type { PluginOrigin } from "./plugin-origin.types.js";

1617

import {

1718

createPluginRegistryIdNormalizer,

@@ -119,6 +120,10 @@ function sortUnique(values: Iterable<string>): string[] {

119120

);

120121

}

121122
123+

function isCoreBundledManifestSurface(plugin: PluginManifestRecord): boolean {

124+

return plugin.origin !== "bundled" || isPackageIncludedInCoreBundle(plugin.packageManifest);

125+

}

126+
122127

function collectObjectKeys(value: Record<string, unknown> | undefined): readonly string[] {

123128

return value ? Object.keys(value) : [];

124129

}

@@ -415,6 +420,7 @@ export function resolveManifestContractPluginIds(

415420

.plugins.filter(

416421

(plugin) =>

417422

(!params.origin || plugin.origin === params.origin) &&

423+

isCoreBundledManifestSurface(plugin) &&

418424

listManifestContractValues(plugin, params.contract).length > 0,

419425

)

420426

.map((plugin) => plugin.id)

@@ -432,6 +438,7 @@ export function resolveManifestContractPluginIdsByCompatibilityRuntimePath(

432438

.plugins.filter(

433439

(plugin) =>

434440

(!params.origin || plugin.origin === params.origin) &&

441+

isCoreBundledManifestSurface(plugin) &&

435442

listManifestContractValues(plugin, params.contract).length > 0 &&

436443

(plugin.configContracts?.compatibilityRuntimePaths ?? []).includes(normalizedPath),

437444

)

Original file line numberDiff line numberDiff line change

@@ -9,6 +9,7 @@ import {

99

} from "./manifest-owner-policy.js";

1010

import { loadPluginManifestRegistryForInstalledIndex } from "./manifest-registry-installed.js";

1111

import { type PluginManifestRecord, type PluginManifestRegistry } from "./manifest-registry.js";

12+

import { isPackageIncludedInCoreBundle } from "./manifest.js";

1213

import {

1314

loadPluginRegistrySnapshot,

1415

normalizePluginsConfigWithRegistry,

@@ -71,10 +72,16 @@ function resolveProviderSurfacePluginIdSet(

7172

resolveManifestRegistry({

7273

...params,

7374

includeDisabled: true,

74-

}).plugins.flatMap((plugin) => (plugin.providers.length > 0 ? [plugin.id] : [])),

75+

}).plugins.flatMap((plugin) =>

76+

plugin.providers.length > 0 && isCoreBundledManifestSurface(plugin) ? [plugin.id] : [],

77+

),

7578

);

7679

}

7780
81+

function isCoreBundledManifestSurface(plugin: PluginManifestRecord): boolean {

82+

return plugin.origin !== "bundled" || isPackageIncludedInCoreBundle(plugin.packageManifest);

83+

}

84+
7885

function resolveProviderOwnerPluginIds(

7986

params: ProviderRegistryLoadParams & {

8087

pluginIds: readonly string[];

@@ -139,6 +146,7 @@ export function resolveBundledProviderCompatPluginIds(params: {

139146

.filter(

140147

(plugin) =>

141148

plugin.origin === "bundled" &&

149+

isCoreBundledManifestSurface(plugin) &&

142150

plugin.providers.length > 0 &&

143151

(!onlyPluginIdSet || onlyPluginIdSet.has(plugin.id)),

144152

)