gitarsenal-cli 1.9.19 โ†’ 1.9.21

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 CHANGED
@@ -1 +1 @@
1
- {"created":"2025-08-06T11:13:13.824Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
1
+ {"created":"2025-08-06T11:52:55.135Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitarsenal-cli",
3
- "version": "1.9.19",
3
+ "version": "1.9.21",
4
4
  "description": "CLI tool for creating Modal sandboxes with GitHub repositories",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -90,12 +90,12 @@ def fetch_tokens_from_proxy(proxy_url=None, api_key=None):
90
90
  if not proxy_url:
91
91
  # print("โŒ No proxy URL provided or found in environment")
92
92
  print("๐Ÿ’ก Set MODAL_PROXY_URL environment variable or use --proxy-url argument")
93
- return None, None, None
93
+ return None, None, None, None
94
94
 
95
95
  if not api_key:
96
96
  print("โŒ No API key provided or found in environment")
97
97
  print("๐Ÿ’ก Set MODAL_PROXY_API_KEY environment variable or use --proxy-api-key argument")
98
- return None, None, None
98
+ return None, None, None, None
99
99
 
100
100
  # Ensure the URL ends with a slash
101
101
  if not proxy_url.endswith("/"):
@@ -42,7 +42,7 @@ except Exception as e:
42
42
  try:
43
43
  # First, try to import the fetch_modal_tokens module
44
44
  from fetch_modal_tokens import get_tokens
45
- TOKEN_ID, TOKEN_SECRET = get_tokens()
45
+ TOKEN_ID, TOKEN_SECRET, _, _ = get_tokens()
46
46
 
47
47
  # Check if we got valid tokens
48
48
  if TOKEN_ID is None or TOKEN_SECRET is None:
@@ -22,7 +22,7 @@ from pathlib import Path
22
22
  try:
23
23
  # First, try to import the fetch_modal_tokens module
24
24
  from fetch_modal_tokens import get_tokens
25
- TOKEN_ID, TOKEN_SECRET = get_tokens()
25
+ TOKEN_ID, TOKEN_SECRET, _, _ = get_tokens()
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
@@ -118,7 +118,7 @@ def setup_modal_auth():
118
118
  # Import the fetch_modal_tokens module
119
119
  logger.info("Fetching Modal tokens from proxy server...")
120
120
  from fetch_modal_tokens import get_tokens
121
- token_id, token_secret = get_tokens()
121
+ token_id, token_secret, _, _ = get_tokens()
122
122
  logger.info("Modal tokens fetched successfully")
123
123
 
124
124
  # Set the tokens in environment variables
@@ -462,7 +462,7 @@ def create_ssh_container():
462
462
  # Import the fetch_modal_tokens module
463
463
  logger.info("Fetching Modal tokens from proxy server in thread...")
464
464
  from fetch_modal_tokens import get_tokens
465
- token_id, token_secret = get_tokens()
465
+ token_id, token_secret, _, _ = get_tokens()
466
466
  logger.info("Modal tokens fetched successfully in thread")
467
467
 
468
468
  # Set the tokens in environment variables
@@ -25,7 +25,7 @@ import time
25
25
  try:
26
26
  # First, try to import the fetch_modal_tokens module
27
27
  from fetch_modal_tokens import get_tokens
28
- TOKEN_ID, TOKEN_SECRET = get_tokens()
28
+ TOKEN_ID, TOKEN_SECRET, _, _ = get_tokens()
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
@@ -2411,7 +2411,7 @@ def switch_to_openai_models():
2411
2411
 
2412
2412
  def get_current_debug_model():
2413
2413
  """Get the currently configured debugging model preference"""
2414
- return os.environ.get("GITARSENAL_DEBUG_MODEL", "openai")
2414
+ return os.environ.get("GITARSENAL_DEBUG_MODEL", "anthropic")
2415
2415
 
2416
2416
  def call_llm_for_debug(command, error_output, api_key=None, current_dir=None, sandbox=None):
2417
2417
  """Unified function to call LLM for debugging - routes to OpenAI or Anthropic based on configuration"""
@@ -2411,7 +2411,7 @@ def switch_to_openai_models():
2411
2411
 
2412
2412
  def get_current_debug_model():
2413
2413
  """Get the currently configured debugging model preference"""
2414
- return os.environ.get("GITARSENAL_DEBUG_MODEL", "openai")
2414
+ return os.environ.get("GITARSENAL_DEBUG_MODEL", "anthropic")
2415
2415
 
2416
2416
  def call_llm_for_debug(command, error_output, api_key=None, current_dir=None, sandbox=None):
2417
2417
  """Unified function to call LLM for debugging - routes to OpenAI or Anthropic based on configuration"""
package/test.js DELETED
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // Simple test script to verify the package works
4
-
5
- const { checkDependencies } = require('./lib/dependencies');
6
- const chalk = require('chalk');
7
-
8
- async function test() {
9
- console.log(chalk.blue('๐Ÿงช Testing GitArsenal CLI...'));
10
-
11
- // Check dependencies
12
- console.log(chalk.yellow('Checking dependencies...'));
13
- const dependenciesOk = await checkDependencies();
14
-
15
- if (dependenciesOk) {
16
- console.log(chalk.green('โœ… All dependencies are installed!'));
17
- console.log(chalk.green('โœ… GitArsenal CLI is ready to use.'));
18
- console.log(chalk.blue('Run "gitarsenal" to start using the CLI.'));
19
- } else {
20
- console.log(chalk.red('โŒ Some dependencies are missing. Please install them before using GitArsenal CLI.'));
21
- }
22
- }
23
-
24
- test().catch(error => {
25
- console.error(chalk.red(`โŒ Test failed: ${error.message}`));
26
- process.exit(1);
27
- });