gitarsenal-cli 1.9.4 → 1.9.6
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/.venv_status.json +1 -1
- package/lib/sandbox.js +4 -2
- package/package.json +2 -1
- package/scripts/postinstall.js +36 -13
package/.venv_status.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"created":"2025-08-
|
|
1
|
+
{"created":"2025-08-03T17:42:46.952Z","packages":["modal","gitingest","requests"],"uv_version":"uv 0.8.4 (e176e1714 2025-07-30)"}
|
package/lib/sandbox.js
CHANGED
|
@@ -67,7 +67,8 @@ async function runContainer(options) {
|
|
|
67
67
|
console.log(chalk.dim(`\nExecuting: python ${args.join(' ')}`));
|
|
68
68
|
|
|
69
69
|
// Run the Python script with show examples flag
|
|
70
|
-
const
|
|
70
|
+
const pythonExecutable = process.env.PYTHON_EXECUTABLE || 'python';
|
|
71
|
+
const pythonProcess = spawn(pythonExecutable, args, {
|
|
71
72
|
stdio: 'inherit' // Inherit stdio to show real-time output
|
|
72
73
|
});
|
|
73
74
|
|
|
@@ -115,7 +116,8 @@ async function runContainer(options) {
|
|
|
115
116
|
|
|
116
117
|
try {
|
|
117
118
|
// Run the Python script
|
|
118
|
-
const
|
|
119
|
+
const pythonExecutable = process.env.PYTHON_EXECUTABLE || 'python';
|
|
120
|
+
const pythonProcess = spawn(pythonExecutable, args, {
|
|
119
121
|
stdio: 'inherit' // Inherit stdio to show real-time output
|
|
120
122
|
});
|
|
121
123
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gitarsenal-cli",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"description": "CLI tool for creating Modal sandboxes with GitHub repositories",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@supabase/supabase-js": "^2.53.0",
|
|
24
25
|
"boxen": "^5.1.2",
|
|
25
26
|
"chalk": "^4.1.2",
|
|
26
27
|
"commander": "^9.4.1",
|
package/scripts/postinstall.js
CHANGED
|
@@ -25,13 +25,36 @@ async function checkAndInstallUv() {
|
|
|
25
25
|
} catch (error) {
|
|
26
26
|
console.log(chalk.yellow('⚠️ uv not found. Attempting to install...'));
|
|
27
27
|
|
|
28
|
-
//
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
// Detect platform for appropriate installation methods
|
|
29
|
+
const platform = process.platform;
|
|
30
|
+
let installMethods = [];
|
|
31
|
+
|
|
32
|
+
if (platform === 'darwin') {
|
|
33
|
+
// macOS - prioritize Homebrew
|
|
34
|
+
installMethods = [
|
|
35
|
+
'curl -LsSf https://astral.sh/uv/install.sh | sh',
|
|
36
|
+
'pip install uv',
|
|
37
|
+
'pip3 install uv',
|
|
38
|
+
'brew install uv',
|
|
39
|
+
'cargo install uv'
|
|
40
|
+
];
|
|
41
|
+
} else if (platform === 'win32') {
|
|
42
|
+
// Windows - use PowerShell script and pip
|
|
43
|
+
installMethods = [
|
|
44
|
+
'powershell -c "irm https://astral.sh/uv/install.ps1 | iex"',
|
|
45
|
+
'pip install uv',
|
|
46
|
+
'pip3 install uv',
|
|
47
|
+
'cargo install uv'
|
|
48
|
+
];
|
|
49
|
+
} else {
|
|
50
|
+
// Linux and others
|
|
51
|
+
installMethods = [
|
|
52
|
+
'curl -LsSf https://astral.sh/uv/install.sh | sh',
|
|
53
|
+
'pip3 install uv',
|
|
54
|
+
'pip install uv',
|
|
55
|
+
'cargo install uv'
|
|
56
|
+
];
|
|
57
|
+
}
|
|
35
58
|
|
|
36
59
|
for (const method of installMethods) {
|
|
37
60
|
try {
|
|
@@ -43,6 +66,12 @@ async function checkAndInstallUv() {
|
|
|
43
66
|
env: { ...process.env, SHELL: '/bin/bash' },
|
|
44
67
|
stdio: 'inherit'
|
|
45
68
|
});
|
|
69
|
+
} else if (method.includes('powershell')) {
|
|
70
|
+
// For Windows PowerShell installation
|
|
71
|
+
await execAsync(method, {
|
|
72
|
+
shell: 'powershell.exe',
|
|
73
|
+
stdio: 'inherit'
|
|
74
|
+
});
|
|
46
75
|
} else {
|
|
47
76
|
await execAsync(method, { stdio: 'inherit' });
|
|
48
77
|
}
|
|
@@ -55,12 +84,6 @@ async function checkAndInstallUv() {
|
|
|
55
84
|
console.log(chalk.gray(`⚠️ ${method} failed: ${installError.message}`));
|
|
56
85
|
}
|
|
57
86
|
}
|
|
58
|
-
|
|
59
|
-
console.log(chalk.yellow('⚠️ Could not install uv automatically'));
|
|
60
|
-
console.log(chalk.yellow('💡 Please install uv manually:'));
|
|
61
|
-
console.log(chalk.yellow(' curl -LsSf https://astral.sh/uv/install.sh | sh'));
|
|
62
|
-
console.log(chalk.yellow(' or: pip install uv'));
|
|
63
|
-
console.log(chalk.yellow(' or: cargo install uv'));
|
|
64
87
|
return false;
|
|
65
88
|
}
|
|
66
89
|
}
|