@factory/cli
Advanced tools
+9
-9
| { | ||
| "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": { |
+17
-15
@@ -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; |
Explicitly Unlicensed Item
LicenseSomething was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Explicitly Unlicensed Item
LicenseSomething was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
21109
0.93%425
0.47%