@yemi33/minions 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dashboard.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard.js
CHANGED
|
@@ -2430,7 +2430,8 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
2430
2430
|
let selectedPath = '';
|
|
2431
2431
|
if (process.platform === 'win32') {
|
|
2432
2432
|
// PowerShell STA with topmost window as owner — forces folder dialog to foreground
|
|
2433
|
-
|
|
2433
|
+
// Write PS script to temp file to avoid shell quoting issues
|
|
2434
|
+
const psScript = [
|
|
2434
2435
|
'Add-Type -AssemblyName System.Windows.Forms',
|
|
2435
2436
|
'$f = New-Object System.Windows.Forms.FolderBrowserDialog',
|
|
2436
2437
|
'$f.Description = "Select project folder"',
|
|
@@ -2443,8 +2444,13 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
2443
2444
|
'$owner.Hide()',
|
|
2444
2445
|
'if ($f.ShowDialog($owner) -eq "OK") { Write-Output $f.SelectedPath }',
|
|
2445
2446
|
'$owner.Dispose()',
|
|
2446
|
-
].join('
|
|
2447
|
-
|
|
2447
|
+
].join('\r\n');
|
|
2448
|
+
const psPath = path.join(MINIONS_DIR, 'engine', 'tmp', '_browse.ps1');
|
|
2449
|
+
fs.mkdirSync(path.dirname(psPath), { recursive: true });
|
|
2450
|
+
fs.writeFileSync(psPath, psScript);
|
|
2451
|
+
try {
|
|
2452
|
+
selectedPath = execSync(`powershell -STA -NoProfile -ExecutionPolicy Bypass -File "${psPath}"`, { encoding: 'utf8', timeout: 120000 }).trim();
|
|
2453
|
+
} finally { try { fs.unlinkSync(psPath); } catch {} }
|
|
2448
2454
|
} else if (process.platform === 'darwin') {
|
|
2449
2455
|
selectedPath = execSync(`osascript -e 'POSIX path of (choose folder with prompt "Select project folder")'`, { encoding: 'utf8', timeout: 120000 }).trim();
|
|
2450
2456
|
} else {
|
package/package.json
CHANGED