perf(test): replace module resets with direct spies and runtime seams
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
resolvePackedRootDir,
|
||||
} from "../infra/archive.js";
|
||||
import { runCommandWithTimeout } from "../process/exec.js";
|
||||
import { scanDirectoryWithSummary } from "../security/skill-scanner.js";
|
||||
import * as skillScanner from "../security/skill-scanner.js";
|
||||
import { CONFIG_DIR, resolveUserPath } from "../utils.js";
|
||||
|
||||
type PluginInstallLogger = {
|
||||
@@ -196,7 +196,7 @@ async function installPluginFromPackageDir(params: {
|
||||
|
||||
// Scan plugin source for dangerous code patterns (warn-only; never blocks install)
|
||||
try {
|
||||
const scanSummary = await scanDirectoryWithSummary(params.packageDir, {
|
||||
const scanSummary = await skillScanner.scanDirectoryWithSummary(params.packageDir, {
|
||||
includeFiles: forcedScanEntries,
|
||||
});
|
||||
if (scanSummary.critical > 0) {
|
||||
|
||||
Reference in New Issue
Block a user