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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub 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
chore(plugins): add SDK retirement plan report · openclaw...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -30,6 +30,7 @@ const PLUGIN_SDK_SPECIFIER_PATTERN =

3030

type CliOptions = {

3131

json: boolean;

3232

summary: boolean;

33+

retirementPlan: boolean;

3334

owner?: string;

3435

failOnCrossOwner: boolean;

3536

failOnEligibleCompat: boolean;

@@ -162,6 +163,7 @@ function parseArgs(args: readonly string[]): CliOptions {

162163

const options: CliOptions = {

163164

json: false,

164165

summary: false,

166+

retirementPlan: false,

165167

failOnCrossOwner: false,

166168

failOnEligibleCompat: false,

167169

failOnUnclassifiedUnusedReserved: false,

@@ -173,6 +175,8 @@ function parseArgs(args: readonly string[]): CliOptions {

173175

options.json = true;

174176

} else if (arg === "--summary") {

175177

options.summary = true;

178+

} else if (arg === "--retirement-plan") {

179+

options.retirementPlan = true;

176180

} else if (arg === "--owner") {

177181

const owner = args[index + 1];

178182

if (!owner || owner.startsWith("--")) {

@@ -192,6 +196,9 @@ function parseArgs(args: readonly string[]): CliOptions {

192196

throw new Error(`Unknown argument: ${arg}`);

193197

}

194198

}

199+

if (options.retirementPlan && (options.json || options.summary)) {

200+

throw new Error("--retirement-plan cannot be combined with --summary or --json");

201+

}

195202

return options;

196203

}

197204

@@ -202,6 +209,7 @@ function renderHelp(): string {

202209

"Options:",

203210

" --summary Print compact counts only.",

204211

" --json Emit JSON instead of text.",

212+

" --retirement-plan Emit an issue/PR-ready dormant SDK subpath retirement checklist.",

205213

" --owner <id> Filter compat/imports/reserved shims by owner id.",

206214

" --fail-on-cross-owner Exit non-zero on cross-owner reserved SDK imports.",

207215

" --fail-on-eligible-compat Exit non-zero when deprecated compat is due for removal.",

@@ -570,6 +578,49 @@ function renderText(report: BoundaryReport, owner?: string): string {

570578

return lines.join("\n");

571579

}

572580581+

function renderRetirementPlan(report: BoundaryReport, owner?: string): string {

582+

const records = report.pluginSdk.dormantReservedRecords.toSorted(

583+

(left, right) =>

584+

left.owner.localeCompare(right.owner) ||

585+

left.removeAfter.localeCompare(right.removeAfter) ||

586+

left.subpath.localeCompare(right.subpath),

587+

);

588+

const dueSubpaths = new Set(report.pluginSdk.dormantReservedEligibleForRemovalSubpaths);

589+

const owners = [...new Set(records.map((record) => record.owner))];

590+

const removeAfterDates = [...new Set(records.map((record) => record.removeAfter))];

591+

const lines: string[] = [];

592+

lines.push(`# Plugin SDK Dormant Reserved Subpath Retirement Plan`);

593+

lines.push("");

594+

lines.push(`Generated: ${report.generatedAt}`);

595+

if (owner) {

596+

lines.push(`Owner filter: \`${owner}\``);

597+

}

598+

lines.push("");

599+

lines.push("## Summary");

600+

lines.push("");

601+

lines.push(`- Dormant reserved subpaths: ${records.length}`);

602+

lines.push(`- Owners: ${owners.length}`);

603+

lines.push(`- Removal dates: ${removeAfterDates.join(", ") || "none"}`);

604+

lines.push(`- Eligible for removal now: ${dueSubpaths.size}`);

605+

lines.push(`- CI gate: \`pnpm plugins:boundary-report:ci\``);

606+

if (records.length === 0) {

607+

lines.push("");

608+

lines.push("No dormant reserved SDK subpaths match this filter.");

609+

return lines.join("\n");

610+

}

611+

for (const ownerId of owners) {

612+

lines.push("");

613+

lines.push(`## ${ownerId}`);

614+

for (const record of records.filter((candidate) => candidate.owner === ownerId)) {

615+

const status = dueSubpaths.has(record.subpath) ? "due" : "waiting";

616+

lines.push(

617+

`- [ ] \`openclaw/plugin-sdk/${record.subpath}\` remove after \`${record.removeAfter}\` (${status}); reason=\`${record.reason}\`; replacement: ${record.replacement}`,

618+

);

619+

}

620+

}

621+

return lines.join("\n");

622+

}

623+573624

function collectFailures(report: BoundaryReport, options: CliOptions): string[] {

574625

const failures: string[] = [];

575626

if (options.failOnCrossOwner && report.pluginSdk.crossOwnerReservedImports.length > 0) {

@@ -618,7 +669,9 @@ if (options.help) {

618669619670

const report = buildReport(options);

620671

const summary = buildSummary(report, options.owner);

621-

if (options.json) {

672+

if (options.retirementPlan) {

673+

process.stdout.write(`${renderRetirementPlan(report, options.owner)}\n`);

674+

} else if (options.json) {

622675

process.stdout.write(`${JSON.stringify(options.summary ? summary : report, null, 2)}\n`);

623676

} else if (options.summary) {

624677

process.stdout.write(`${renderSummaryText(summary)}\n`);