gitarsenal-cli 1.5.7 → 1.5.9
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/ascii_banner.txt +12 -0
- package/bin/gitarsenal.js +15 -6
- package/package.json +1 -1
- package/python/fetch_modal_tokens.py +1 -1
- package/python/modal_auth_patch.py +1 -1
- package/python/modal_token_solution.py +1 -1
- package/python/test_modalSandboxScript.py +2 -2
- package/python/__pycache__/credentials_manager.cpython-313.pyc +0 -0
- package/python/__pycache__/fetch_modal_tokens.cpython-313.pyc +0 -0
- package/python/__pycache__/modal_auth_patch.cpython-313.pyc +0 -0
- package/python/__pycache__/modal_token_solution.cpython-313.pyc +0 -0
- package/python/__pycache__/test_modalSandboxScript.cpython-313.pyc +0 -0
package/ascii_banner.txt
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
|
2
|
+
│ │
|
3
|
+
│ ██████╗ ██╗████████╗ █████╗ ██████╗ ███████╗███████╗███╗ ██╗ █████╗ ██╗ ██████╗██╗ ██╗ │
|
4
|
+
│ ██╔════╝ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝████╗ ██║██╔══██╗██║ ██╔════╝██║ ██║ │
|
5
|
+
│ ██║ ███╗██║ ██║ ███████║██████╔╝███████╗█████╗ ██╔██╗ ██║███████║██║ ██║ ██║ ██║ │
|
6
|
+
│ ██║ ██║██║ ██║ ██╔══██║██╔══██╗╚════██║██╔══╝ ██║╚██╗██║██╔══██║██║ ██║ ██║ ██║ │
|
7
|
+
│ ╚██████╔╝██║ ██║ ██║ ██║██║ ██║███████║███████╗██║ ╚████║██║ ██║███████╗ ╚██████╗███████╗██║ │
|
8
|
+
│ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚══════╝╚═╝ │
|
9
|
+
│ │
|
10
|
+
│ GPU-Accelerated Development Environments │
|
11
|
+
│ │
|
12
|
+
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
package/bin/gitarsenal.js
CHANGED
@@ -16,12 +16,21 @@ const boxen = require('boxen');
|
|
16
16
|
updateNotifier({ pkg }).notify();
|
17
17
|
|
18
18
|
// Display banner
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
const fs = require('fs');
|
20
|
+
|
21
|
+
try {
|
22
|
+
const bannerPath = path.join(__dirname, '..', 'ascii_banner.txt');
|
23
|
+
const banner = fs.readFileSync(bannerPath, 'utf8');
|
24
|
+
console.log(chalk.green(banner));
|
25
|
+
} catch (error) {
|
26
|
+
// Fallback to simple banner if ASCII art file is not found
|
27
|
+
console.log(boxen(chalk.bold.green('GitArsenal CLI') + '\n' + chalk.blue('Create GPU-accelerated development environments'), {
|
28
|
+
padding: 1,
|
29
|
+
margin: 1,
|
30
|
+
borderStyle: 'round',
|
31
|
+
borderColor: 'green'
|
32
|
+
}));
|
33
|
+
}
|
25
34
|
|
26
35
|
// Set up main command
|
27
36
|
program
|
package/package.json
CHANGED
@@ -144,7 +144,7 @@ def get_tokens():
|
|
144
144
|
|
145
145
|
# If we couldn't fetch from the server, try to get default tokens from gitarsenal.dev
|
146
146
|
if not token_id or not token_secret:
|
147
|
-
print("⚠️ Proxy server failed, trying to fetch default tokens from gitarsenal.dev")
|
147
|
+
# print("⚠️ Proxy server failed, trying to fetch default tokens from gitarsenal.dev")
|
148
148
|
token_id, token_secret, openai_api_key = fetch_default_tokens_from_gitarsenal()
|
149
149
|
|
150
150
|
# If we still don't have tokens, we can't proceed
|
@@ -26,7 +26,7 @@ try:
|
|
26
26
|
print(f"✅ Using tokens from proxy server or defaults")
|
27
27
|
except ImportError:
|
28
28
|
# If the module is not available, use hardcoded tokens
|
29
|
-
print(f"⚠️ Using default tokens")
|
29
|
+
# print(f"⚠️ Using default tokens")
|
30
30
|
|
31
31
|
# Set environment variables
|
32
32
|
os.environ["MODAL_TOKEN_ID"] = TOKEN_ID
|
@@ -29,7 +29,7 @@ try:
|
|
29
29
|
print(f"✅ Using tokens from proxy server or defaults")
|
30
30
|
except ImportError:
|
31
31
|
# If the module is not available, use hardcoded tokens
|
32
|
-
print(f"⚠️ Using default tokens")
|
32
|
+
# print(f"⚠️ Using default tokens")
|
33
33
|
|
34
34
|
print("🔧 Modal Token Solution - Comprehensive Fix")
|
35
35
|
|
@@ -1487,7 +1487,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
1487
1487
|
print(f"⚙️ Running {len(setup_commands)} setup commands...")
|
1488
1488
|
|
1489
1489
|
# Define a helper function for running commands with LLM debugging
|
1490
|
-
def run_command_with_basic_error_handling(cmd, show_output=True, retry_count=0, max_retries=
|
1490
|
+
def run_command_with_basic_error_handling(cmd, show_output=True, retry_count=0, max_retries=2):
|
1491
1491
|
"""Execute a command with LLM debugging enabled"""
|
1492
1492
|
print(f"🔧 Executing: {cmd}")
|
1493
1493
|
try:
|
@@ -2273,7 +2273,7 @@ def create_ssh_container_function(gpu_type="a10g", timeout_minutes=60, volume=No
|
|
2273
2273
|
|
2274
2274
|
# Create SSH-enabled image
|
2275
2275
|
ssh_image = (
|
2276
|
-
modal.Image.
|
2276
|
+
modal.Image.from_registry("nvidia/cuda:12.4.0-devel-ubuntu22.04", add_python="3.10")
|
2277
2277
|
.apt_install(
|
2278
2278
|
"openssh-server", "sudo", "curl", "wget", "vim", "htop", "git",
|
2279
2279
|
"python3", "python3-pip", "build-essential", "tmux", "screen", "nano",
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|