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

推荐订阅源

Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
Latest news
Latest news
Cyberwarzone
Cyberwarzone
Spread Privacy
Spread Privacy
F
Future of Privacy Forum
NISL@THU
NISL@THU
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Troy Hunt's Blog
Attack and Defense Labs
Attack and Defense Labs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Schneier on Security
Schneier on Security
腾讯CDC
P
Privacy International News Feed
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
K
Kaspersky official blog
C
Cisco Blogs
The Hacker News
The Hacker News
B
Blog
Stack Overflow Blog
Stack Overflow Blog
T
ThreatConnect
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
宝玉的分享
宝玉的分享
F
Full Disclosure
C
Check Point Blog
Cisco Talos Blog
Cisco Talos Blog
美团技术团队
S
Security Archives - TechRepublic
E
Exploit-DB.com RSS Feed
D
Docker
Security Latest
Security Latest
Blog — PlanetScale
Blog — PlanetScale
S
Secure Thoughts
T
Threatpost
D
DataBreaches.Net
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
The Register - Security
The Register - Security
T
True Tiger Recordings
P
Proofpoint News Feed
L
LINUX DO - 最新话题
F
Fox-IT International blog
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
月光博客
月光博客
G
Google Developers Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
B
Blog RSS Feed

Recent Commits to openclaw:main

fix(tools): honor config apiKey in media tool preflight (#85570) · openclaw/openclaw@31c269f fix(e2e): support macOS script wrappers chore(ui): refresh fa control ui locale chore(ui): refresh nl control ui locale · openclaw/openclaw@908464b chore(ui): refresh vi control ui locale · openclaw/openclaw@62b75f4 chore(ui): refresh th control ui locale · openclaw/openclaw@fc4ba31 chore(ui): refresh id control ui locale · openclaw/openclaw@5b1bdd1 chore(ui): refresh pl control ui locale · openclaw/openclaw@534d4b1 chore(ui): refresh uk control ui locale · openclaw/openclaw@055c3bd chore(ui): refresh ar control ui locale · openclaw/openclaw@89c5a68 chore(ui): refresh it control ui locale · openclaw/openclaw@44ca805 chore(ui): refresh tr control ui locale chore(ui): refresh fr control ui locale · openclaw/openclaw@2240b0e chore(ui): refresh ko control ui locale · openclaw/openclaw@5fa250b chore(ui): refresh ja-JP control ui locale · openclaw/openclaw@f4ea401 chore(ui): refresh es control ui locale · openclaw/openclaw@751dde0 chore(ui): refresh de control ui locale · openclaw/openclaw@72a9b5b chore(ui): refresh pt-BR control ui locale · openclaw/openclaw@501b6e0 chore(ui): refresh zh-CN control ui locale chore(ui): refresh zh-TW control ui locale · openclaw/openclaw@88dee79 Add Slack approval QA checkpoints (#85141) fix(agents): mirror internal ui message tool replies (#85564) perf(whatsapp): narrow runtime setter entry (#85589) · openclaw/openclaw@463929d fix: smooth chat focus mode layout · openclaw/openclaw@bb5abef Fix Telegram missing harness spool poison (#85605) · openclaw/openclaw@b745082 fix(session): surface previous-transcript archive failures on /new ro… · openclaw/openclaw@679a46d Policy: add agent workspace conformance checks (#85096) · openclaw/openclaw@a94f344 fix(installer): fail failed Windows git builds · openclaw/openclaw@2edd6e2 fix(codex): honor node exec policy for native surfaces (#85534) · openclaw/openclaw@e0405ec fix(qa-lab): stabilize codex runtime parity fixtures fix(github): preserve sufficient proof against negative relabel (#85567) · openclaw/openclaw@6b52dff docs: add changelog for context pressure preflight · openclaw/openclaw@5ca734f Fix context pressure preflight for tool-heavy sessions (#85541) · openclaw/openclaw@c08400e fix(doctor): classify codex asset notice as info (#85119) · openclaw/openclaw@959b935 fix(ui): keep chat picker search current (#85547) fix: preserve message-tool delivery evidence · openclaw/openclaw@f022b05 fix(codex): add API key paste auth (#85533) fix: satisfy openai video test typecheck · openclaw/openclaw@743caed fix: route openai video edits to edits endpoint · openclaw/openclaw@6c3fcb8 fix(qmd): normalize direct file collection paths (#65212) · openclaw/openclaw@227b4bf fix(testbox): preserve clean sparse checkouts · openclaw/openclaw@58e9628 fix(ui): run ui script through junction paths (#85525) · openclaw/openclaw@ad19dd8 docs: fix troubleshooting logs link (#85545) · openclaw/openclaw@60582b6 Revert chat session picker inline search (#85527) · openclaw/openclaw@d69bcfd fix: preserve guarded video operation cleanup · openclaw/openclaw@ed7d99a fix: honor openai video provider request network policy fix: retry guarded video downloads · openclaw/openclaw@efbf9f3 fix: thread openai video request policy · openclaw/openclaw@31b5145 docs(changelog): note heartbeat message-tool fix · openclaw/openclaw@c127334 fix: use fs-safe trash for agent delete (#84394) · openclaw/openclaw@951bbe6 Fix heartbeat message-tool delivery policy (#85357) · openclaw/openclaw@bd9c78f Scope config preflight note suppression (#84439) · openclaw/openclaw@91d85e7 fix(cron): document best-effort edit delivery mode (#84526) fix(dreaming): open report cards from memory palace (#85144) · openclaw/openclaw@2e15830 fix(openai-codex): preserve image input capability (#85393) · openclaw/openclaw@49ce171 fix(codex): stabilize heartbeat dynamic tool schema (#84681) · openclaw/openclaw@c52daa4 docs: absorb small documentation PRs · openclaw/openclaw@658be7f fix(scripts): preserve bws resolver parse errors (#85528) · openclaw/openclaw@13a4c57 fix(telegram): honor outbound media max bytes (#83478) · openclaw/openclaw@f2d4f93 fix(skills): restore executable bit on bundled whisper script + relea… · openclaw/openclaw@1dd3b52 fix(google): print Gemini OAuth URL before browser launch (#71469) · openclaw/openclaw@2d5bda9 docs: absorb contributor documentation fixes docs: tighten landable bug sweep gates · openclaw/openclaw@8f86383 fix: reuse provider auth lookup facts (#85499) · openclaw/openclaw@299ed80 fix: keep session picker focus separate · openclaw/openclaw@7e12370 feat: start onboarding for fresh CLI installs (#85519) · openclaw/openclaw@464ffc1 docs: refresh contributor docs · openclaw/openclaw@64d13c0 fix(update): prepack npm git update specs · openclaw/openclaw@84f6b5c fix: simplify chat session search · openclaw/openclaw@7e16a50 fix: use native mac settings sidebar · openclaw/openclaw@0556958 chore: ignore antigravity cli state · openclaw/openclaw@dd07fb4 fix(media): replace Gemini CLI fallback with sandboxed Antigravity (#… · openclaw/openclaw@0622fb6 docs: add bugbash landing changelog entries · openclaw/openclaw@faad2b0 fix(diffs): continue after card hydration errors (#84775) · openclaw/openclaw@9b5c281 fix(proxy): add missing clientSocket error handler in CONNECT tunnel … · openclaw/openclaw@e008bc9 fix(memory): report qmd workspace cwd probe failures (#63167) · openclaw/openclaw@7134a95 fix(agents): handle parallel tool call deltas in openai-completions s… test: align release validation package acceptance check (#85515) · openclaw/openclaw@423f525 fix: recover stuck Codex compaction · openclaw/openclaw@44d5330 docs: require visual proof for control ui e2e (#85513) · openclaw/openclaw@8174bfc Policy: add gateway exposure checks (#81981) · openclaw/openclaw@dcc5e45 ci: unblock advisory Tideclaw alpha release checks · openclaw/openclaw@dcfc7e5 fix(installer): tolerate WSL UNC launch cwd · openclaw/openclaw@684a9b2 docs: absorb docs sweep · openclaw/openclaw@bb5010b fix: cancel stale provider auth prewarms (#85503) · openclaw/openclaw@60e3749 Add TUI PTY integration coverage (#85485) · openclaw/openclaw@0a50cbd fix(security): escape entry.id in HTML export to prevent attribute XS… · openclaw/openclaw@7bc4a33 fix: guard openai-completions tool payload with supportsTools compat … · openclaw/openclaw@76a025c fix(slack): surface auth.test failure + normalize explicit-bot mentio… · openclaw/openclaw@995a020 chore(release): bump version to 2026.5.22 fix(ui): keep chat session search inline (#85490) · openclaw/openclaw@2601453 Policy: add secret and auth conformance checks (#81974) · openclaw/openclaw@c85feac fix(delivery): log failDelivery errors instead of silently swallowing… · openclaw/openclaw@f75789f fix(cli): validate debug proxy numeric options (#84260) · openclaw/openclaw@5c866a1 fix(daemon): use exit code instead of localized text for schtasks fal… · openclaw/openclaw@501e74d fix(auto-reply): enforce word boundary in slash command prefix match … · openclaw/openclaw@5c614de fix(message-tool): normalize send body aliases (#84102) docs: absorb maintainer docs sweep · openclaw/openclaw@e0fda55 fix(gateway): coalesce provider auth rewarms docs(voyage): clarify API key setup (#81803) · openclaw/openclaw@57178b1
fix(ci): scope changed shrinkwrap checks · openclaw/openclaw@743fd4c
vincentkoc · 2026-05-23 · via Recent Commits to openclaw:main

@@ -5,13 +5,14 @@ import { tmpdir } from "node:os";

55

import path from "node:path";

66

import { fileURLToPath } from "node:url";

77

import { parse as parseYaml } from "yaml";

8+

import { listChangedPathsFromGit, listStagedChangedPaths } from "./changed-lanes.mjs";

89910

const ROOT_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");

1011

const EXACT_VERSION_PATTERN = /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/u;

11121213

function usage() {

1314

return [

14-

"Usage: node scripts/generate-npm-shrinkwrap.mjs [--check] [--all|--plugins|--package-dir <dir>]",

15+

"Usage: node scripts/generate-npm-shrinkwrap.mjs [--check] [--all|--plugins|--changed|--package-dir <dir>] [--base <ref>] [--head <ref>] [--staged]",

1516

" default: root package only",

1617

].join("\n");

1718

}

@@ -81,11 +82,10 @@ function readPnpmLockPackages() {

8182

);

8283

}

838484-

function readPnpmLockSingleVersionOverrides() {

85-

const lockfile = parseYaml(readFileSync(path.join(ROOT_DIR, "pnpm-lock.yaml"), "utf8"));

85+

function collectPnpmLockPackageVersions(lockfile) {

8686

const packages = lockfile?.packages;

8787

if (!packages || typeof packages !== "object" || Array.isArray(packages)) {

88-

throw new Error("pnpm-lock.yaml is missing package resolution data.");

88+

return new Map();

8989

}

9090

const versionsByName = new Map();

9191

for (const packageKey of Object.keys(packages)) {

@@ -97,6 +97,15 @@ function readPnpmLockSingleVersionOverrides() {

9797

versions.add(parsed.version);

9898

versionsByName.set(parsed.name, versions);

9999

}

100+

return versionsByName;

101+

}

102+103+

function readPnpmLockSingleVersionOverrides() {

104+

const lockfile = parseYaml(readFileSync(path.join(ROOT_DIR, "pnpm-lock.yaml"), "utf8"));

105+

const versionsByName = collectPnpmLockPackageVersions(lockfile);

106+

if (versionsByName.size === 0) {

107+

throw new Error("pnpm-lock.yaml is missing package resolution data.");

108+

}

100109

return Object.fromEntries(

101110

[...versionsByName.entries()]

102111

.filter(([, versions]) => versions.size === 1)

@@ -105,6 +114,10 @@ function readPnpmLockSingleVersionOverrides() {

105114

);

106115

}

107116117+

function setKey(values) {

118+

return [...values].toSorted((left, right) => left.localeCompare(right)).join("\0");

119+

}

120+108121

function mergeOverrides(packageOverrides, workspaceOverrides, pnpmLockOverrides) {

109122

const merged = normalizeOverrides(packageOverrides);

110123

for (const [name, spec] of [

@@ -113,9 +126,7 @@ function mergeOverrides(packageOverrides, workspaceOverrides, pnpmLockOverrides)

113126

]) {

114127

const current = merged[name];

115128

if (current !== undefined && JSON.stringify(current) !== JSON.stringify(spec)) {

116-

throw new Error(

117-

`package.json overrides.${name} conflicts with pnpm lock policy for ${name}`,

118-

);

129+

throw new Error(`package.json overrides.${name} conflicts with pnpm lock policy for ${name}`);

119130

}

120131

merged[name] = spec;

121132

}

@@ -394,21 +405,86 @@ function listPublishablePluginPackageDirs() {

394405

.toSorted((left, right) => left.localeCompare(right));

395406

}

396407408+

function shrinkwrapPackageDirsForChangedPaths(changedPaths) {

409+

const packageDirs = new Set();

410+

const publishablePluginPackageDirs = new Set(listPublishablePluginPackageDirs());

411+

let hasAmbiguousDependencyPolicyChange = false;

412+

let hasLockfileChange = false;

413+414+

for (const rawPath of changedPaths) {

415+

const changedPath = String(rawPath ?? "")

416+

.trim()

417+

.replaceAll("\\", "/")

418+

.replace(/^\.\/+/u, "");

419+

if (!changedPath) {

420+

continue;

421+

}

422+

if (changedPath === "package.json" || changedPath === "npm-shrinkwrap.json") {

423+

packageDirs.add(ROOT_DIR);

424+

continue;

425+

}

426+

const extensionMatch = changedPath.match(

427+

/^(extensions\/[^/]+)\/(?:package\.json|npm-shrinkwrap\.json)$/u,

428+

);

429+

if (extensionMatch && publishablePluginPackageDirs.has(extensionMatch[1])) {

430+

packageDirs.add(path.resolve(ROOT_DIR, extensionMatch[1]));

431+

continue;

432+

}

433+

if (changedPath === "pnpm-lock.yaml") {

434+

hasLockfileChange = true;

435+

continue;

436+

}

437+

if (

438+

changedPath === "pnpm-workspace.yaml" ||

439+

changedPath === "scripts/generate-npm-shrinkwrap.mjs"

440+

) {

441+

hasAmbiguousDependencyPolicyChange = true;

442+

}

443+

}

444+445+

if (hasAmbiguousDependencyPolicyChange) {

446+

return [

447+

ROOT_DIR,

448+

...listPublishablePluginPackageDirs().map((dir) => path.resolve(ROOT_DIR, dir)),

449+

];

450+

}

451+452+

if (hasLockfileChange) {

453+

return [

454+

ROOT_DIR,

455+

...listPublishablePluginPackageDirs().map((dir) => path.resolve(ROOT_DIR, dir)),

456+

];

457+

}

458+

return [...packageDirs].toSorted((left, right) =>

459+

packageLabel(left).localeCompare(packageLabel(right)),

460+

);

461+

}

462+397463

function resolvePackageDirs(args) {

398464

const packageDirs = [];

399465

const check = args.includes("--check");

400466

const all = args.includes("--all");

401467

const plugins = args.includes("--plugins");

468+

const changed = args.includes("--changed");

469+

const staged = args.includes("--staged");

402470

const packageDirIndex = args.indexOf("--package-dir");

403-

if (packageDirIndex !== -1 && (all || plugins)) {

404-

throw new Error("--package-dir cannot be combined with --all or --plugins.");

471+

const baseIndex = args.indexOf("--base");

472+

const headIndex = args.indexOf("--head");

473+

if (packageDirIndex !== -1 && (all || plugins || changed)) {

474+

throw new Error("--package-dir cannot be combined with --all, --plugins, or --changed.");

405475

}

406-

if (all && plugins) {

407-

throw new Error("--all cannot be combined with --plugins.");

476+

if ([all, plugins, changed].filter(Boolean).length > 1) {

477+

throw new Error("--all, --plugins, and --changed cannot be combined.");

408478

}

409479

for (let index = 0; index < args.length; index += 1) {

410480

const arg = args[index];

411-

if (arg === "--check" || arg === "--all" || arg === "--plugins") {

481+

if (

482+

arg === "--check" ||

483+

arg === "--all" ||

484+

arg === "--plugins" ||

485+

arg === "--changed" ||

486+

arg === "--staged"

487+

) {

412488

continue;

413489

}

414490

if (arg === "--package-dir") {

@@ -420,9 +496,21 @@ function resolvePackageDirs(args) {

420496

index += 1;

421497

continue;

422498

}

499+

if (arg === "--base" || arg === "--head") {

500+

const value = args[index + 1];

501+

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

502+

throw new Error(`${arg} requires a git ref.`);

503+

}

504+

index += 1;

505+

continue;

506+

}

423507

throw new Error(usage());

424508

}

425509510+

if (!changed && (baseIndex !== -1 || headIndex !== -1 || staged)) {

511+

throw new Error("--base, --head, and --staged require --changed.");

512+

}

513+426514

if (all) {

427515

return {

428516

check,

@@ -438,6 +526,20 @@ function resolvePackageDirs(args) {

438526

packageDirs: listPublishablePluginPackageDirs().map((dir) => path.resolve(ROOT_DIR, dir)),

439527

};

440528

}

529+

if (changed) {

530+

const base = baseIndex === -1 ? "origin/main" : args[baseIndex + 1];

531+

const head = headIndex === -1 ? "HEAD" : args[headIndex + 1];

532+

const changedPaths = staged

533+

? listStagedChangedPaths()

534+

: listChangedPathsFromGit({

535+

base,

536+

head,

537+

});

538+

return {

539+

check,

540+

packageDirs: shrinkwrapPackageDirsForChangedPaths(changedPaths),

541+

};

542+

}

441543

return { check, packageDirs: packageDirs.length > 0 ? packageDirs : [ROOT_DIR] };

442544

}

443545

@@ -469,6 +571,10 @@ function updateOrCheckPackage(packageDir, check) {

469571470572

function main() {

471573

const { check, packageDirs } = resolvePackageDirs(process.argv.slice(2));

574+

if (packageDirs.length === 0) {

575+

process.stdout.write("No shrinkwrap-managed package changes detected.\n");

576+

return;

577+

}

472578

for (const packageDir of packageDirs) {

473579

updateOrCheckPackage(packageDir, check);

474580

}

@@ -492,4 +598,5 @@ export {

492598

normalizeNpmVersionDrift,

493599

parsePnpmPackageKey,

494600

parseLockPackagePath,

601+

shrinkwrapPackageDirsForChangedPaths,

495602

};