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

推荐订阅源

量子位
F
Fortinet All Blogs
J
Java Code Geeks
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
M
MIT News - Artificial intelligence
腾讯CDC
Last Week in AI
Last Week in AI
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
博客园 - 叶小钗
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
L
LangChain Blog
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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): contain bundled entry paths · openclaw/open...
vincentkoc · 2026-05-17 · via Recent Commits to openclaw:main

@@ -637,6 +637,56 @@ describe("bundled plugin metadata", () => {

637637

);

638638

});

639639640+

it("keeps generated entry path resolution inside bundled plugin roots", () => {

641+

const tempRoot = createGeneratedPluginTempRoot("openclaw-bundled-plugin-path-contained-");

642+

const sourcePluginRoot = path.join(tempRoot, "extensions", "alpha");

643+

const distPluginRoot = path.join(tempRoot, "dist", "extensions", "alpha");

644+

const absoluteEscape = path.join(tempRoot, "absolute.js");

645+

const absolutePluginEntry = path.join(sourcePluginRoot, "index.ts");

646+647+

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

648+

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

649+

fs.writeFileSync(absolutePluginEntry, "export {};\n", "utf8");

650+

fs.writeFileSync(path.join(tempRoot, "extensions", "escape.ts"), "export {};\n", "utf8");

651+

fs.writeFileSync(

652+

path.join(tempRoot, "dist", "extensions", "escape.js"),

653+

"export {};\n",

654+

"utf8",

655+

);

656+

fs.writeFileSync(absoluteEscape, "export {};\n", "utf8");

657+658+

expect(

659+

resolveBundledPluginGeneratedPath(

660+

tempRoot,

661+

{

662+

source: absolutePluginEntry,

663+

built: absolutePluginEntry,

664+

},

665+

"alpha",

666+

),

667+

).toBe(absolutePluginEntry);

668+

expect(

669+

resolveBundledPluginGeneratedPath(

670+

tempRoot,

671+

{

672+

source: "../escape.ts",

673+

built: "../escape.js",

674+

},

675+

"alpha",

676+

),

677+

).toBeNull();

678+

expect(

679+

resolveBundledPluginGeneratedPath(

680+

tempRoot,

681+

{

682+

source: absoluteEscape,

683+

built: absoluteEscape,

684+

},

685+

"alpha",

686+

),

687+

).toBeNull();

688+

});

689+640690

it("scans direct plugin-tree overrides and resolves generated paths from that scan dir", () => {

641691

const tempRoot = createGeneratedPluginTempRoot("openclaw-bundled-plugin-direct-tree-");

642692

const pluginsDir = path.join(tempRoot, "bundled-plugins");

@@ -767,6 +817,38 @@ describe("bundled plugin metadata", () => {

767817

).toBe(path.join(distPluginRoot, "index.js"));

768818

});

769819820+

it("keeps bundled repo entry path resolution inside the plugin directory", () => {

821+

const tempRoot = createGeneratedPluginTempRoot("openclaw-bundled-plugin-repo-contained-");

822+

const pluginRoot = path.join(tempRoot, "extensions", "alpha");

823+824+

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

825+

name: "@openclaw/alpha",

826+

version: "0.0.1",

827+

openclaw: {

828+

extensions: ["../escape.ts"],

829+

},

830+

});

831+

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

832+

id: "alpha",

833+

configSchema: { type: "object" },

834+

});

835+

fs.writeFileSync(path.join(tempRoot, "extensions", "escape.ts"), "export {};\n", "utf8");

836+

fs.mkdirSync(path.join(tempRoot, "dist", "extensions"), { recursive: true });

837+

fs.writeFileSync(

838+

path.join(tempRoot, "dist", "extensions", "escape.js"),

839+

"export {};\n",

840+

"utf8",

841+

);

842+843+

expect(

844+

resolveBundledPluginRepoEntryPath({

845+

rootDir: tempRoot,

846+

pluginId: "alpha",

847+

preferBuilt: true,

848+

}),

849+

).toBeNull();

850+

});

851+770852

it("merges runtime channel schema metadata with manifest-owned channel config fields", () => {

771853

const tempRoot = createGeneratedPluginTempRoot("openclaw-bundled-plugin-channel-configs-");

772854