taskforceai-cli 0.3.2 → 0.3.3
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/bin/taskforceai.js +10 -1
- package/dist/taskforceai +0 -0
- package/package.json +1 -1
package/bin/taskforceai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawn } from 'node:child_process';
|
|
3
|
-
import { existsSync } from 'node:fs';
|
|
3
|
+
import { chmodSync, existsSync } from 'node:fs';
|
|
4
4
|
import { dirname, join } from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
|
|
@@ -16,6 +16,15 @@ if (!existsSync(binaryPath)) {
|
|
|
16
16
|
process.exit(1);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
// Ensure binary has execute permissions (npm doesn't preserve them in tarballs)
|
|
20
|
+
if (process.platform !== 'win32') {
|
|
21
|
+
try {
|
|
22
|
+
chmodSync(binaryPath, 0o755);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
// Silently ignore permission errors (might not have write access)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
const args = process.argv.slice(2);
|
|
20
29
|
const child = spawn(binaryPath, args, { stdio: 'inherit' });
|
|
21
30
|
|
package/dist/taskforceai
CHANGED
|
Binary file
|