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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
量子位
雷峰网
雷峰网
宝玉的分享
宝玉的分享
V
Visual Studio Blog
博客园_首页
小众软件
小众软件
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
S
SegmentFault 最新的问题
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学

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: stabilize release smoke reruns · openclaw/openclaw@8...
steipete · 2026-04-19 · via Recent Commits to openclaw:main

@@ -241,12 +241,14 @@ function collectInstalledRuntimeDependencyRoots(

241241

rootNodeModulesDir,

242242

dependencySpecs,

243243

directDependencyPackageRoot = null,

244+

optionalDependencyNames = new Set(),

244245

) {

245246

const packageCache = new Map();

246247

const directRoots = [];

247248

const allRoots = [];

248249

const queue = Object.entries(dependencySpecs).map(([depName, spec]) => ({

249250

depName,

251+

optional: optionalDependencyNames.has(depName),

250252

spec,

251253

parentPackageRoot: directDependencyPackageRoot,

252254

direct: true,

@@ -263,6 +265,9 @@ function collectInstalledRuntimeDependencyRoots(

263265

rootNodeModulesDir,

264266

});

265267

if (depRoot === null) {

268+

if (current.optional) {

269+

continue;

270+

}

266271

return null;

267272

}

268273

const canonicalDepRoot = fs.realpathSync(depRoot);

@@ -285,6 +290,7 @@ function collectInstalledRuntimeDependencyRoots(

285290

for (const [childName, childSpec] of Object.entries(packageJson.dependencies ?? {})) {

286291

queue.push({

287292

depName: childName,

293+

optional: false,

288294

spec: childSpec,

289295

parentPackageRoot: depRoot,

290296

direct: false,

@@ -293,6 +299,7 @@ function collectInstalledRuntimeDependencyRoots(

293299

for (const [childName, childSpec] of Object.entries(packageJson.optionalDependencies ?? {})) {

294300

queue.push({

295301

depName: childName,

302+

optional: true,

296303

spec: childSpec,

297304

parentPackageRoot: depRoot,

298305

direct: false,

@@ -391,6 +398,7 @@ function resolveInstalledDirectDependencyNames(

391398

rootNodeModulesDir,

392399

dependencySpecs,

393400

directDependencyPackageRoot = null,

401+

optionalDependencyNames = new Set(),

394402

) {

395403

const directDependencyNames = [];

396404

for (const [depName, spec] of Object.entries(dependencySpecs)) {

@@ -401,6 +409,9 @@ function resolveInstalledDirectDependencyNames(

401409

rootNodeModulesDir,

402410

});

403411

if (depRoot === null) {

412+

if (optionalDependencyNames.has(depName)) {

413+

continue;

414+

}

404415

return null;

405416

}

406417

const installedVersion = readInstalledDependencyVersionFromRoot(depRoot);

@@ -463,6 +474,7 @@ function resolveInstalledRuntimeClosureFingerprint(params) {

463474

params.rootNodeModulesDir,

464475

dependencySpecs,

465476

params.directDependencyPackageRoot,

477+

new Set(Object.keys(params.packageJson.optionalDependencies ?? {})),

466478

);

467479

if (resolution === null) {

468480

return null;

@@ -890,6 +902,7 @@ function stageInstalledRootRuntimeDeps(params) {

890902

...packageJson.dependencies,

891903

...packageJson.optionalDependencies,

892904

};

905+

const optionalDependencyNames = new Set(Object.keys(packageJson.optionalDependencies ?? {}));

893906

const rootNodeModulesDir = path.join(repoRoot, "node_modules");

894907

if (Object.keys(dependencySpecs).length === 0 || !fs.existsSync(rootNodeModulesDir)) {

895908

return false;

@@ -899,6 +912,7 @@ function stageInstalledRootRuntimeDeps(params) {

899912

rootNodeModulesDir,

900913

dependencySpecs,

901914

directDependencyPackageRoot,

915+

optionalDependencyNames,

902916

);

903917

if (directDependencyNames === null) {

904918

return false;

@@ -907,15 +921,25 @@ function stageInstalledRootRuntimeDeps(params) {

907921

rootNodeModulesDir,

908922

dependencySpecs,

909923

directDependencyPackageRoot,

924+

optionalDependencyNames,

910925

);

911926

if (resolution === null) {

912927

return false;

913928

}

914929

const rootsToCopy = selectRuntimeDependencyRootsToCopy(resolution);

915-

const allowedRealRoots = rootsToCopy.map((record) => record.realRoot);

916-917930

const nodeModulesDir = path.join(pluginDir, "node_modules");

918931

const stampPath = resolveRuntimeDepsStampPath(pluginDir);

932+

if (rootsToCopy.length === 0) {

933+

assertPathIsNotSymlink(nodeModulesDir, "remove runtime deps");

934+

removePathIfExists(nodeModulesDir);

935+

writeJsonAtomically(stampPath, {

936+

fingerprint,

937+

generatedAt: new Date().toISOString(),

938+

});

939+

return true;

940+

}

941+

const allowedRealRoots = rootsToCopy.map((record) => record.realRoot);

942+919943

const stagedNodeModulesDir = path.join(

920944

makePluginOwnedTempDir(pluginDir, "stage"),

921945

"node_modules",