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

推荐订阅源

MyScale Blog
MyScale Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
V
Visual Studio Blog
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
L
LangChain Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
P
Proofpoint News Feed
博客园_首页
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure 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
refactor(plugin-sdk): annotate dormant reserved subpaths ...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -3,11 +3,13 @@ import { existsSync, readdirSync, readFileSync } from "node:fs";

33

import { join, relative, resolve } from "node:path";

44

import {

55

dormantReservedBundledPluginSdkEntrypoints,

6+

dormantReservedBundledPluginSdkEntrypointRecords,

67

pluginSdkEntrypoints,

78

publicPluginOwnedSdkEntrypoints,

89

reservedBundledPluginSdkEntrypoints,

910

supportedBundledFacadeSdkEntrypoints,

1011

} from "../src/plugin-sdk/entrypoints.ts";

12+

import type { DormantReservedBundledPluginSdkEntrypointRecord } from "../src/plugin-sdk/entrypoints.ts";

1113

import { PLUGIN_COMPAT_RECORDS } from "../src/plugins/compat/registry.ts";

1214

import type { PluginCompatRecord } from "../src/plugins/compat/types.ts";

1315

@@ -75,7 +77,9 @@ type BoundaryReport = {

7577

crossOwnerReservedImports: ReservedSdkImport[];

7678

unusedReservedSubpaths: string[];

7779

dormantReservedSubpaths: string[];

80+

dormantReservedRecords: DormantReservedBundledPluginSdkEntrypointRecord[];

7881

unclassifiedUnusedReservedSubpaths: string[];

82+

dormantReservedEligibleForRemovalSubpaths: string[];

7983

};

8084

memoryHostSdk: {

8185

privatePackage: boolean;

@@ -106,6 +110,8 @@ type BoundaryReportSummary = {

106110

dormantReservedCountInUnused: number;

107111

unclassifiedUnusedReservedCount: number;

108112

unclassifiedUnusedReservedSubpaths: string[];

113+

dormantReservedEligibleForRemovalCount: number;

114+

dormantReservedEligibleForRemovalSubpaths: string[];

109115

crossOwnerReservedImports: ReservedSdkImport[];

110116

};

111117

memoryHostSdk: {

@@ -381,6 +387,10 @@ function resolveMemoryHostImplementation(

381387

return "mixed";

382388

}

383389390+

function isDateDue(removeAfter: string, today = new Date()): boolean {

391+

return new Date(`${removeAfter}T00:00:00Z`) <= today;

392+

}

393+384394

function buildSummary(report: BoundaryReport, owner?: string): BoundaryReportSummary {

385395

const eligibleForRemoval = report.compat.records

386396

.filter((record) => record.eligibleForRemoval)

@@ -410,6 +420,10 @@ function buildSummary(report: BoundaryReport, owner?: string): BoundaryReportSum

410420

dormantReservedCountInUnused: report.pluginSdk.dormantReservedSubpaths.length,

411421

unclassifiedUnusedReservedCount: report.pluginSdk.unclassifiedUnusedReservedSubpaths.length,

412422

unclassifiedUnusedReservedSubpaths: report.pluginSdk.unclassifiedUnusedReservedSubpaths,

423+

dormantReservedEligibleForRemovalCount:

424+

report.pluginSdk.dormantReservedEligibleForRemovalSubpaths.length,

425+

dormantReservedEligibleForRemovalSubpaths:

426+

report.pluginSdk.dormantReservedEligibleForRemovalSubpaths,

413427

crossOwnerReservedImports: report.pluginSdk.crossOwnerReservedImports,

414428

},

415429

memoryHostSdk: {

@@ -434,6 +448,9 @@ function buildReport(options: Pick<CliOptions, "owner"> = {}): BoundaryReport {

434448

);

435449

const usedReserved = new Set(reservedImports.map((entry) => entry.subpath));

436450

const dormantReserved = new Set<string>(dormantReservedBundledPluginSdkEntrypoints);

451+

const dormantReservedRecords = dormantReservedBundledPluginSdkEntrypointRecords.filter((record) =>

452+

matchesOwner(options.owner, record.owner),

453+

);

437454

const unusedReservedSubpaths = reservedBundledPluginSdkEntrypoints

438455

.filter(

439456

(subpath) =>

@@ -444,6 +461,11 @@ function buildReport(options: Pick<CliOptions, "owner"> = {}): BoundaryReport {

444461

const dormantReservedSubpaths = unusedReservedSubpaths

445462

.filter((subpath) => dormantReserved.has(subpath))

446463

.toSorted();

464+

const dormantReservedEligibleForRemovalSubpaths = dormantReservedRecords

465+

.filter((record) => unusedReservedSubpaths.includes(record.subpath))

466+

.filter((record) => isDateDue(record.removeAfter))

467+

.map((record) => record.subpath)

468+

.toSorted();

447469

return {

448470

generatedAt: new Date().toISOString(),

449471

compat: {

@@ -463,9 +485,11 @@ function buildReport(options: Pick<CliOptions, "owner"> = {}): BoundaryReport {

463485

),

464486

unusedReservedSubpaths,

465487

dormantReservedSubpaths,

488+

dormantReservedRecords,

466489

unclassifiedUnusedReservedSubpaths: unusedReservedSubpaths

467490

.filter((subpath) => !dormantReserved.has(subpath))

468491

.toSorted(),

492+

dormantReservedEligibleForRemovalSubpaths,

469493

},

470494

memoryHostSdk: collectMemoryHostBoundary(files),

471495

};

@@ -487,9 +511,15 @@ function renderSummaryText(summary: BoundaryReportSummary): string {

487511

lines.push(

488512

` dormantUnused=${summary.pluginSdk.dormantReservedCountInUnused} unclassifiedUnused=${summary.pluginSdk.unclassifiedUnusedReservedCount}`,

489513

);

514+

lines.push(

515+

` dormantEligibleForRemoval=${summary.pluginSdk.dormantReservedEligibleForRemovalCount}`,

516+

);

490517

for (const subpath of summary.pluginSdk.unclassifiedUnusedReservedSubpaths) {

491518

lines.push(` unclassified-unused ${subpath}`);

492519

}

520+

for (const subpath of summary.pluginSdk.dormantReservedEligibleForRemovalSubpaths) {

521+

lines.push(` dormant-due ${subpath}`);

522+

}

493523

for (const entry of summary.pluginSdk.crossOwnerReservedImports) {

494524

lines.push(` cross-owner ${entry.file}: ${entry.specifier} owner=${entry.owner ?? "unknown"}`);

495525

}

@@ -521,9 +551,15 @@ function renderText(report: BoundaryReport, owner?: string): string {

521551

lines.push(

522552

` dormantUnused=${report.pluginSdk.dormantReservedSubpaths.length} unclassifiedUnused=${report.pluginSdk.unclassifiedUnusedReservedSubpaths.length}`,

523553

);

554+

lines.push(

555+

` dormantEligibleForRemoval=${report.pluginSdk.dormantReservedEligibleForRemovalSubpaths.length}`,

556+

);

524557

for (const subpath of report.pluginSdk.unclassifiedUnusedReservedSubpaths) {

525558

lines.push(` unclassified-unused ${subpath}`);

526559

}

560+

for (const subpath of report.pluginSdk.dormantReservedEligibleForRemovalSubpaths) {

561+

lines.push(` dormant-due ${subpath}`);

562+

}

527563

for (const entry of report.pluginSdk.crossOwnerReservedImports) {

528564

lines.push(` cross-owner ${entry.file}: ${entry.specifier} owner=${entry.owner ?? "unknown"}`);

529565

}

@@ -554,6 +590,14 @@ function collectFailures(report: BoundaryReport, options: CliOptions): string[]

554590

`${report.compat.eligibleForRemovalCount} compatibility record(s) are due for removal`,

555591

);

556592

}

593+

if (

594+

options.failOnEligibleCompat &&

595+

report.pluginSdk.dormantReservedEligibleForRemovalSubpaths.length > 0

596+

) {

597+

failures.push(

598+

`${report.pluginSdk.dormantReservedEligibleForRemovalSubpaths.length} dormant reserved SDK subpath(s) are due for removal`,

599+

);

600+

}

557601

return failures;

558602

}

559603