mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add uvx as a supported package manager so that `uvx` commands are routed through safe-chain's MITM proxy for malware detection, just like `uv`. Previously, `uvx` bypassed all safe-chain protections. The uvx package manager reuses the existing uv command runner since uvx is functionally equivalent to `uv tool run`. Fixes #268 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
450 B
JavaScript
Executable file
16 lines
450 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
import { main } from "../src/main.js";
|
|
import { initializePackageManager } from "../src/packagemanager/currentPackageManager.js";
|
|
import { setEcoSystem, ECOSYSTEM_PY } from "../src/config/settings.js";
|
|
|
|
// Set eco system
|
|
setEcoSystem(ECOSYSTEM_PY);
|
|
|
|
initializePackageManager("uvx");
|
|
|
|
(async () => {
|
|
// Pass through only user-supplied uvx args
|
|
var exitCode = await main(process.argv.slice(2));
|
|
process.exit(exitCode);
|
|
})();
|