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

推荐订阅源

F
Fortinet All Blogs
有赞技术团队
有赞技术团队
量子位
N
Netflix TechBlog - Medium
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
Martin Fowler
Martin Fowler
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
V2EX
IT之家
IT之家
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & 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
fix: materialize staged plugin runtime chunks · openclaw/...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -1714,6 +1714,110 @@ module.exports = {

17141714

expect(registry?.plugins.find((entry) => entry.id === "alpha")?.status).toBe("loaded");

17151715

});

171617161717+

it("materializes plugin-owned root chunks in external runtime mirrors", () => {

1718+

const packageRoot = makeTempDir();

1719+

const stageDir = makeTempDir();

1720+

const bundledDir = path.join(packageRoot, "dist", "extensions");

1721+

const pluginRoot = path.join(bundledDir, "browser");

1722+

fs.mkdirSync(pluginRoot, { recursive: true });

1723+

fs.writeFileSync(

1724+

path.join(packageRoot, "package.json"),

1725+

JSON.stringify({ name: "openclaw", version: "2026.4.24", type: "module" }),

1726+

"utf-8",

1727+

);

1728+

fs.writeFileSync(

1729+

path.join(packageRoot, "dist", "pw-ai.js"),

1730+

[

1731+

`//#region extensions/browser/src/pw-ai.ts`,

1732+

`import { marker } from "playwright-core";`,

1733+

`export { marker };`,

1734+

`//#endregion`,

1735+

"",

1736+

].join("\n"),

1737+

"utf-8",

1738+

);

1739+

fs.writeFileSync(

1740+

path.join(pluginRoot, "index.js"),

1741+

[

1742+

`import { marker } from "../../pw-ai.js";`,

1743+

`export default {`,

1744+

` id: "browser",`,

1745+

` register(api) {`,

1746+

` api.registerCommand({ name: "browser-marker", handler: () => marker });`,

1747+

` },`,

1748+

`};`,

1749+

"",

1750+

].join("\n"),

1751+

"utf-8",

1752+

);

1753+

fs.writeFileSync(

1754+

path.join(pluginRoot, "package.json"),

1755+

JSON.stringify(

1756+

{

1757+

name: "@openclaw/browser",

1758+

version: "1.0.0",

1759+

type: "module",

1760+

dependencies: {

1761+

"playwright-core": "1.0.0",

1762+

},

1763+

openclaw: { extensions: ["./index.js"] },

1764+

},

1765+

null,

1766+

2,

1767+

),

1768+

"utf-8",

1769+

);

1770+

fs.writeFileSync(

1771+

path.join(pluginRoot, "openclaw.plugin.json"),

1772+

JSON.stringify(

1773+

{

1774+

id: "browser",

1775+

enabledByDefault: true,

1776+

configSchema: EMPTY_PLUGIN_SCHEMA,

1777+

},

1778+

null,

1779+

2,

1780+

),

1781+

"utf-8",

1782+

);

1783+

process.env.OPENCLAW_BUNDLED_PLUGINS_DIR = bundledDir;

1784+

process.env.OPENCLAW_PLUGIN_STAGE_DIR = stageDir;

1785+1786+

let actualInstallRoot = "";

1787+

let stagedMirrorChunk = "";

1788+

const registry = loadOpenClawPlugins({

1789+

cache: false,

1790+

config: {

1791+

plugins: {

1792+

enabled: true,

1793+

},

1794+

},

1795+

bundledRuntimeDepsInstaller: ({ installRoot }) => {

1796+

actualInstallRoot = installRoot;

1797+

stagedMirrorChunk = path.join(installRoot, "dist", "pw-ai.js");

1798+

fs.mkdirSync(path.dirname(stagedMirrorChunk), { recursive: true });

1799+

fs.symlinkSync(path.join(packageRoot, "dist", "pw-ai.js"), stagedMirrorChunk, "file");

1800+

const depRoot = path.join(installRoot, "node_modules", "playwright-core");

1801+

fs.mkdirSync(depRoot, { recursive: true });

1802+

fs.writeFileSync(

1803+

path.join(depRoot, "package.json"),

1804+

JSON.stringify({

1805+

name: "playwright-core",

1806+

version: "1.0.0",

1807+

type: "module",

1808+

exports: "./index.js",

1809+

}),

1810+

"utf-8",

1811+

);

1812+

fs.writeFileSync(path.join(depRoot, "index.js"), "export const marker = 'stage-ok';\n");

1813+

},

1814+

});

1815+1816+

expect(actualInstallRoot).not.toBe("");

1817+

expect(registry.plugins.find((entry) => entry.id === "browser")?.status).toBe("loaded");

1818+

expect(fs.lstatSync(stagedMirrorChunk).isSymbolicLink()).toBe(false);

1819+

});

1820+17171821

it("loads bundled plugins with plugin-sdk imports from an external stage dir", () => {

17181822

const packageRoot = makeTempDir();

17191823

const stageDir = makeTempDir();

@@ -1913,6 +2017,17 @@ module.exports = {

19132017

);

19142018

fs.mkdirSync(pluginRoot, { recursive: true });

19152019

fs.mkdirSync(canonicalPluginRoot, { recursive: true });

2020+

fs.writeFileSync(

2021+

path.join(packageRoot, "dist", "pw-ai.js"),

2022+

[

2023+

`//#region extensions/acpx/src/pw-ai.ts`,

2024+

`import runtimeDep from "external-runtime";`,

2025+

`export const marker = runtimeDep.marker;`,

2026+

`//#endregion`,

2027+

"",

2028+

].join("\n"),

2029+

"utf-8",

2030+

);

19162031

fs.writeFileSync(

19172032

path.join(pluginRoot, "index.js"),

19182033

[

@@ -1926,11 +2041,11 @@ module.exports = {

19262041

fs.writeFileSync(

19272042

path.join(canonicalPluginRoot, "index.js"),

19282043

[

1929-

`import runtimeDep from "external-runtime";`,

2044+

`import { marker } from "../../pw-ai.js";`,

19302045

`export default {`,

19312046

` id: "acpx",`,

19322047

` register(api) {`,

1933-

` api.registerCommand({ name: "external-runtime", handler: () => runtimeDep.marker });`,

2048+

` api.registerCommand({ name: "external-runtime", handler: () => marker });`,

19342049

` },`,

19352050

`};`,

19362051

"",

@@ -1970,6 +2085,7 @@ module.exports = {

19702085

"utf-8",

19712086

);

197220872088+

let actualInstallRoot = "";

19732089

const registry = loadOpenClawPlugins({

19742090

cache: false,

19752091

config: {

@@ -1978,6 +2094,7 @@ module.exports = {

19782094

},

19792095

},

19802096

bundledRuntimeDepsInstaller: ({ installRoot }) => {

2097+

actualInstallRoot = installRoot;

19812098

const depRoot = path.join(installRoot, "node_modules", "external-runtime");

19822099

fs.mkdirSync(depRoot, { recursive: true });

19832100

fs.writeFileSync(

@@ -1999,6 +2116,10 @@ module.exports = {

19992116

});

2000211720012118

expect(registry.plugins.find((entry) => entry.id === "acpx")?.status).toBe("loaded");

2119+

expect(fs.lstatSync(path.join(actualInstallRoot, "dist")).isSymbolicLink()).toBe(false);

2120+

expect(fs.lstatSync(path.join(actualInstallRoot, "dist", "pw-ai.js")).isSymbolicLink()).toBe(

2121+

false,

2122+

);

20022123

});

2003212420042125

it("loads source-checkout bundled runtime deps without mirroring the repo tree", () => {