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

推荐订阅源

MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
小众软件
小众软件
F
Fortinet All Blogs
爱范儿
爱范儿
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
C
Check Point Blog
博客园 - 聂微东
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
宝玉的分享
宝玉的分享
Jina AI
Jina AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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: remove bundled public surface runtime shim · op...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -192,7 +192,6 @@ function loadGeneratedBundledChannelModule(params: {

192192

rootScope: BundledChannelRootScope;

193193

metadata: BundledChannelPluginMetadata;

194194

entry: BundledChannelPluginMetadata["source"] | BundledChannelPluginMetadata["setupSource"];

195-

installRuntimeDeps?: boolean;

196195

}): unknown {

197196

let modulePath = resolveGeneratedBundledChannelModulePath(params);

198197

if (!modulePath) {

@@ -224,7 +223,6 @@ function loadGeneratedBundledChannelEntry(params: {

224223

rootScope: params.rootScope,

225224

metadata: params.metadata,

226225

entry: params.metadata.source,

227-

installRuntimeDeps: false,

228226

}),

229227

);

230228

if (!entry) {

@@ -257,7 +255,6 @@ function loadGeneratedBundledChannelSetupEntry(params: {

257255

rootScope: params.rootScope,

258256

metadata: params.metadata,

259257

entry: params.metadata.setupSource,

260-

installRuntimeDeps: false,

261258

}),

262259

);

263260

if (!setupEntry) {

Original file line numberDiff line numberDiff line change

@@ -54,7 +54,6 @@ describe("channel doctor contract api fast path", () => {

5454

expect(loadBundledPluginPublicArtifactModuleSyncMock).toHaveBeenCalledWith({

5555

dirName: "discord",

5656

artifactBasename: "doctor-contract-api.js",

57-

installRuntimeDeps: false,

5857

});

5958

});

6059

@@ -65,12 +64,10 @@ describe("channel doctor contract api fast path", () => {

6564

expect(loadBundledPluginPublicArtifactModuleSyncMock).toHaveBeenCalledWith({

6665

dirName: "whatsapp",

6766

artifactBasename: "doctor-contract-api.js",

68-

installRuntimeDeps: false,

6967

});

7068

expect(loadBundledPluginPublicArtifactModuleSyncMock).not.toHaveBeenCalledWith({

7169

dirName: "whatsapp",

7270

artifactBasename: "contract-api.js",

73-

installRuntimeDeps: false,

7471

});

7572

});

7673

@@ -86,12 +83,10 @@ describe("channel doctor contract api fast path", () => {

8683

expect(loadBundledPluginPublicArtifactModuleSyncMock).toHaveBeenCalledWith({

8784

dirName: "telegram",

8885

artifactBasename: "doctor-contract-api.js",

89-

installRuntimeDeps: false,

9086

});

9187

expect(loadBundledPluginPublicArtifactModuleSyncMock).not.toHaveBeenCalledWith({

9288

dirName: "telegram",

9389

artifactBasename: "contract-api.js",

94-

installRuntimeDeps: false,

9590

});

9691

});

9792

});

Original file line numberDiff line numberDiff line change

@@ -23,7 +23,6 @@ function loadBundledChannelPublicArtifact(

2323

return loadBundledPluginPublicArtifactModuleSync<BundledChannelDoctorContractApi>({

2424

dirName: channelId,

2525

artifactBasename,

26-

installRuntimeDeps: false,

2726

});

2827

} catch (error) {

2928

if (

Original file line numberDiff line numberDiff line change

@@ -4,7 +4,6 @@ import path from "node:path";

44

import { fileURLToPath, pathToFileURL } from "node:url";

55

import { openBoundaryFileSync } from "../infra/boundary-file-read.js";

66

import { resolveBundledPluginsDir } from "../plugins/bundled-dir.js";

7-

import { prepareBuiltBundledPluginPublicSurfaceLocation } from "../plugins/bundled-public-surface-runtime-root.js";

87

import {

98

getCachedPluginJitiLoader,

109

type PluginJitiLoaderCache,

@@ -212,19 +211,14 @@ export async function loadBundledPluginPublicSurfaceModule<T extends object>(par

212211

dirName: string;

213212

artifactBasename: string;

214213

trackedPluginId?: string | (() => string);

215-

env?: NodeJS.ProcessEnv;

216214

}): Promise<T> {

217215

const location = resolveFacadeModuleLocation(params);

218216

if (!location) {

219217

throw new Error(

220218

`Unable to resolve bundled plugin public surface ${params.dirName}/${params.artifactBasename}`,

221219

);

222220

}

223-

const preparedLocation = prepareBuiltBundledPluginPublicSurfaceLocation({

224-

location,

225-

pluginId: params.dirName,

226-

...(params.env ? { env: params.env } : {}),

227-

});

221+

const preparedLocation = location;

228222

const cached = loadedFacadeModules.get(preparedLocation.modulePath);

229223

if (cached) {

230224

return cached as T;

Original file line numberDiff line numberDiff line change

@@ -68,7 +68,6 @@ describe("provider public artifacts", () => {

6868

expect(loadBundledPluginPublicArtifactModuleSync).toHaveBeenCalledWith({

6969

dirName: "openai",

7070

artifactBasename: "provider-policy-api.js",

71-

installRuntimeDeps: false,

7271

});

7372

expect(

7473

surface

@@ -109,7 +108,6 @@ describe("provider public artifacts", () => {

109108

expect(loadBundledPluginPublicArtifactModuleSync).toHaveBeenCalledWith({

110109

dirName: "openai",

111110

artifactBasename: "provider-policy-api.js",

112-

installRuntimeDeps: false,

113111

});

114112

});

115113

});

Original file line numberDiff line numberDiff line change

@@ -48,7 +48,6 @@ function tryLoadBundledProviderPolicySurface(

4848

const mod = loadBundledPluginPublicArtifactModuleSync<Record<string, unknown>>({

4949

dirName: pluginId,

5050

artifactBasename,

51-

installRuntimeDeps: false,

5251

});

5352

if (hasProviderPolicyHook(mod)) {

5453

return mod;

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,6 @@ import { fileURLToPath } from "node:url";

55

import { openBoundaryFileSync } from "../infra/boundary-file-read.js";

66

import { sameFileIdentity } from "../infra/file-identity.js";

77

import { resolveBundledPluginsDir } from "./bundled-dir.js";

8-

import { prepareBuiltBundledPluginPublicSurfaceLocation } from "./bundled-public-surface-runtime-root.js";

98

import { getCachedPluginJitiLoader, type PluginJitiLoaderCache } from "./jiti-loader-cache.js";

109

import { tryNativeRequireJavaScriptModule } from "./native-module-require.js";

1110

import { resolveBundledPluginPublicSurfacePath } from "./public-surface-runtime.js";

@@ -151,19 +150,14 @@ function getSharedBundledPublicSurfaceJiti(modulePath: string, tryNative: boolea

151150

export function loadBundledPluginPublicArtifactModuleSync<T extends object>(params: {

152151

dirName: string;

153152

artifactBasename: string;

154-

installRuntimeDeps?: boolean;

155153

}): T {

156154

const location = resolvePublicSurfaceLocation(params);

157155

if (!location) {

158156

throw new Error(

159157

`Unable to resolve bundled plugin public surface ${params.dirName}/${params.artifactBasename}`,

160158

);

161159

}

162-

const preparedLocation = prepareBuiltBundledPluginPublicSurfaceLocation({

163-

location,

164-

pluginId: params.dirName,

165-

installRuntimeDeps: params.installRuntimeDeps,

166-

});

160+

const preparedLocation = location;

167161

const cached =

168162

loadedPublicSurfaceModules.get(location.modulePath) ??

169163

loadedPublicSurfaceModules.get(preparedLocation.modulePath);

Original file line numberDiff line numberDiff line change

@@ -58,7 +58,6 @@ describe("channel contract api explicit fast path", () => {

5858

expect(loadBundledPluginPublicArtifactModuleSyncMock).toHaveBeenCalledWith({

5959

dirName: "bluebubbles",

6060

artifactBasename: "secret-contract-api.js",

61-

installRuntimeDeps: false,

6261

});

6362

expect(api?.secretTargetRegistryEntries).toEqual(

6463

expect.arrayContaining([

@@ -80,7 +79,6 @@ describe("channel contract api explicit fast path", () => {

8079

expect(loadBundledPluginPublicArtifactModuleSyncMock).toHaveBeenCalledWith({

8180

dirName: "whatsapp",

8281

artifactBasename: "security-contract-api.js",

83-

installRuntimeDeps: false,

8482

});

8583

expect(loadPluginManifestRegistryMock).not.toHaveBeenCalled();

8684

});

Original file line numberDiff line numberDiff line change

@@ -30,7 +30,6 @@ function loadBundledChannelPublicArtifact(

3030

return loadBundledPluginPublicArtifactModuleSync<BundledChannelContractApi>({

3131

dirName: channelId,

3232

artifactBasename,

33-

installRuntimeDeps: false,

3433

});

3534

} catch (error) {

3635

if (