Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@factory/cli

Package Overview
Dependencies
Maintainers
5
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@factory/cli - npm Package Compare versions

Comparing version
0.57.14
to
0.58.0
+9
-9
package.json
{
"name": "@factory/cli",
"version": "0.57.14",
"version": "0.58.0",
"description": "Factory Droid CLI - AI-powered software engineering agent",

@@ -19,10 +19,10 @@ "bin": {

"optionalDependencies": {
"@factory/cli-darwin-arm64": "0.57.14",
"@factory/cli-darwin-x64": "0.57.14",
"@factory/cli-darwin-x64-baseline": "0.57.14",
"@factory/cli-linux-arm64": "0.57.14",
"@factory/cli-linux-x64": "0.57.14",
"@factory/cli-linux-x64-baseline": "0.57.14",
"@factory/cli-win32-x64": "0.57.14",
"@factory/cli-win32-x64-baseline": "0.57.14"
"@factory/cli-darwin-arm64": "0.58.0",
"@factory/cli-darwin-x64": "0.58.0",
"@factory/cli-darwin-x64-baseline": "0.58.0",
"@factory/cli-linux-arm64": "0.58.0",
"@factory/cli-linux-x64": "0.58.0",
"@factory/cli-linux-x64-baseline": "0.58.0",
"@factory/cli-win32-x64": "0.58.0",
"@factory/cli-win32-x64-baseline": "0.58.0"
},

@@ -29,0 +29,0 @@ "engines": {

@@ -67,17 +67,17 @@ /**

// This is the same method used by the Factory CLI installer and Bun
const script = `
try {
$hasAvx2 = (Add-Type -MemberDefinition '[DllImport("kernel32.dll")] public static extern bool IsProcessorFeaturePresent(int ProcessorFeature);' -Name 'Kernel32' -Namespace 'Win32' -PassThru -ErrorAction Stop)::IsProcessorFeaturePresent(40)
if ($hasAvx2) { Write-Output 'true' } else { Write-Output 'false' }
} catch {
try {
$hasAvx2 = ([Win32.Kernel32]::IsProcessorFeaturePresent(40))
if ($hasAvx2) { Write-Output 'true' } else { Write-Output 'false' }
} catch {
Write-Output 'unknown'
}
}
`;
const script =
'$ProgressPreference = "SilentlyContinue"; ' +
'try { ' +
'$hasAvx2 = (Add-Type -MemberDefinition \'[DllImport("kernel32.dll")] public static extern bool IsProcessorFeaturePresent(int ProcessorFeature);\' -Name "Kernel32" -Namespace "Win32" -PassThru -ErrorAction Stop)::IsProcessorFeaturePresent(40); ' +
'if ($hasAvx2) { Write-Output "true" } else { Write-Output "false" } ' +
'} catch { ' +
'try { ' +
'$hasAvx2 = ([Win32.Kernel32]::IsProcessorFeaturePresent(40)); ' +
'if ($hasAvx2) { Write-Output "true" } else { Write-Output "false" } ' +
'} catch { ' +
'Write-Output "unknown" ' +
'} }';
const encodedScript = Buffer.from(script, 'utf16le').toString('base64');
const result = child_process.execSync(
`powershell -NoProfile -Command "${script.replace(/\n/g, ' ')}"`,
`powershell -NoProfile -NonInteractive -EncodedCommand ${encodedScript}`,
{ encoding: 'utf8', timeout: 10000 }

@@ -100,3 +100,5 @@ );

try {
return require.resolve(`${packageName}/bin/${getBinaryName()}`);
return require.resolve(`${packageName}/bin/${getBinaryName()}`, {
paths: [__dirname, process.cwd()],
});
} catch (e) {

@@ -103,0 +105,0 @@ return null;