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

推荐订阅源

罗磊的独立博客
The GitHub Blog
The GitHub Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
小众软件
小众软件
博客园_首页
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
B
Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow 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(package): omit unpacked test helpers from inventory ·...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -34,6 +34,40 @@ const OMITTED_PRIVATE_QA_PLUGIN_SDK_FILES = new Set([

3434

"dist/plugin-sdk/src/plugin-sdk/qa-runtime.d.ts",

3535

]);

3636

const OMITTED_PRIVATE_QA_DIST_PREFIXES = ["dist/qa-runtime-"];

37+

const OMITTED_PLUGIN_SDK_TEST_FILES = new Set([

38+

"dist/plugin-sdk/agent-runtime-test-contracts.d.ts",

39+

"dist/plugin-sdk/agent-runtime-test-contracts.js",

40+

"dist/plugin-sdk/channel-contract-testing.d.ts",

41+

"dist/plugin-sdk/channel-contract-testing.js",

42+

"dist/plugin-sdk/channel-target-testing.d.ts",

43+

"dist/plugin-sdk/channel-target-testing.js",

44+

"dist/plugin-sdk/channel-test-helpers.d.ts",

45+

"dist/plugin-sdk/channel-test-helpers.js",

46+

"dist/plugin-sdk/plugin-test-api.d.ts",

47+

"dist/plugin-sdk/plugin-test-api.js",

48+

"dist/plugin-sdk/plugin-test-contracts.d.ts",

49+

"dist/plugin-sdk/plugin-test-contracts.js",

50+

"dist/plugin-sdk/plugin-test-runtime.d.ts",

51+

"dist/plugin-sdk/plugin-test-runtime.js",

52+

"dist/plugin-sdk/provider-http-test-mocks.d.ts",

53+

"dist/plugin-sdk/provider-http-test-mocks.js",

54+

"dist/plugin-sdk/provider-test-contracts.d.ts",

55+

"dist/plugin-sdk/provider-test-contracts.js",

56+

"dist/plugin-sdk/test-env.d.ts",

57+

"dist/plugin-sdk/test-env.js",

58+

"dist/plugin-sdk/test-fixtures.d.ts",

59+

"dist/plugin-sdk/test-fixtures.js",

60+

"dist/plugin-sdk/test-node-mocks.d.ts",

61+

"dist/plugin-sdk/test-node-mocks.js",

62+

"dist/plugin-sdk/testing.d.ts",

63+

"dist/plugin-sdk/testing.js",

64+

]);

65+

const OMITTED_PLUGIN_SDK_TEST_PREFIXES = [

66+

"dist/plugin-sdk/src/agents/test-helpers/",

67+

"dist/plugin-sdk/src/plugin-sdk/test-helpers/",

68+

"dist/plugin-sdk/src/test-helpers/",

69+

"dist/plugin-sdk/src/test-utils/",

70+

];

3771

const OMITTED_DIST_SUBTREE_PATTERNS = [

3872

/^dist\/extensions\/node_modules(?:\/|$)/u,

3973

/^dist\/extensions\/[^/]+\/node_modules(?:\/|$)/u,

@@ -145,6 +179,15 @@ function isExternalizedBundledExtensionDistPath(

145179

);

146180

}

147181182+

function isOmittedPluginSdkTestPath(relativePath: string): boolean {

183+

return (

184+

OMITTED_PLUGIN_SDK_TEST_FILES.has(relativePath) ||

185+

OMITTED_PLUGIN_SDK_TEST_PREFIXES.some(

186+

(prefix) => relativePath === prefix.slice(0, -1) || relativePath.startsWith(prefix),

187+

)

188+

);

189+

}

190+148191

async function collectExternalizedBundledExtensionIds(

149192

packageRoot: string,

150193

): Promise<ExternalizedBundledExtensionIds> {

@@ -177,6 +220,9 @@ function isPackagedDistPath(

177220

if (relativePath === "dist/plugin-sdk/.tsbuildinfo") {

178221

return false;

179222

}

223+

if (isOmittedPluginSdkTestPath(relativePath)) {

224+

return false;

225+

}

180226

if (

181227

OMITTED_PRIVATE_QA_PLUGIN_SDK_PREFIXES.some((prefix) => relativePath.startsWith(prefix)) ||

182228

OMITTED_PRIVATE_QA_PLUGIN_SDK_FILES.has(relativePath) ||

@@ -197,6 +243,7 @@ function isOmittedDistSubtree(

197243

return (

198244

isExternalizedBundledExtensionDistPath(relativePath, externalizedExtensionIds) ||

199245

isLegacyPluginDependencyDirPath(relativePath) ||

246+

isOmittedPluginSdkTestPath(relativePath) ||

200247

OMITTED_DIST_SUBTREE_PATTERNS.some((pattern) => pattern.test(relativePath))

201248

);

202249

}