gitarsenal-cli 1.9.103 → 1.9.106

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-09-14T11:00:57.034Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
1
+ {"created":"2025-09-14T11:13:49.409Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
@@ -65,7 +65,6 @@ async function fetchAnthropicApiKey() {
65
65
 
66
66
  return null;
67
67
  } catch (error) {
68
- console.error(chalk.red(`❌ Error fetching Anthropic API key: ${error.message}`));
69
68
  return null;
70
69
  }
71
70
  }
@@ -183,10 +182,8 @@ async function runE2BSandbox(options) {
183
182
 
184
183
  // If Anthropic API key is not found, try to fetch it directly from the server
185
184
  if (!anthropicApiKey) {
186
- console.log(chalk.blue('🔄 Fetching Anthropic API key directly from server...'));
187
185
  anthropicApiKey = await fetchAnthropicApiKey();
188
186
  if (anthropicApiKey) {
189
- console.log(chalk.green('✅ Successfully fetched Anthropic API key from server'));
190
187
  // Add it to apiKeys so it gets passed to the Python script
191
188
  apiKeys.ANTHROPIC_API_KEY = anthropicApiKey;
192
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitarsenal-cli",
3
- "version": "1.9.103",
3
+ "version": "1.9.106",
4
4
  "description": "CLI tool for creating Modal sandboxes with GitHub repositories",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -487,7 +487,6 @@ def run_e2b_sandbox(repo_url, setup_commands=None, api_keys=None):
487
487
  if e2b_api_key and e2b_api_key != "your_e2b_api_key" and not e2b_api_key.startswith("placeholder"):
488
488
  # Set it in the environment for the Sandbox.create() call
489
489
  os.environ["E2B_API_KEY"] = e2b_api_key
490
- print(f"✅ Successfully fetched E2B API key from server (format: {e2b_api_key[:6]}...)")
491
490
  else:
492
491
  print("⚠️ Could not get valid E2B API key from server")
493
492
  e2b_api_key = None
@@ -497,7 +496,6 @@ def run_e2b_sandbox(repo_url, setup_commands=None, api_keys=None):
497
496
  if api_keys is None:
498
497
  api_keys = {}
499
498
  api_keys["ANTHROPIC_API_KEY"] = anthropic_api_key
500
- print(f"✅ Successfully fetched Anthropic API key from server (format: {anthropic_api_key[:5]}...)")
501
499
  except Exception as e:
502
500
  print(f"⚠️ Could not fetch API keys from server: {e}")
503
501
  e2b_api_key = None
@@ -644,7 +642,6 @@ else:
644
642
  print("="*80)
645
643
  print(f"Repository: {repo_url}")
646
644
  print(f"Working Directory: /home/user")
647
- print(f"Available Credentials: {len(api_keys) if api_keys else 0} items")
648
645
  print("="*80 + "\n")
649
646
 
650
647
  print("\n" + "="*60)
@@ -658,15 +655,6 @@ else:
658
655
  print("🚀 Running claude_code_agent.py...")
659
656
  if api_keys and 'ANTHROPIC_API_KEY' in api_keys:
660
657
  anthropic_key = api_keys['ANTHROPIC_API_KEY']
661
- # Print the first few characters of the API key to verify it's being passed correctly
662
- print(f"✅ Using Anthropic API key: {anthropic_key[:8]}...")
663
-
664
- # Run the claude_code_agent.py directly with the environment variable
665
- print("📝 Running claude_code_agent.py directly...")
666
-
667
- # Debug: Check if the file exists and is executable
668
- result = sandbox.commands.run("ls -la /home/user/kill_claude/claude_code_agent.py")
669
- print(f"File check: {result.stdout}")
670
658
 
671
659
  # Test importing the module
672
660
  import_test = sandbox.run_code("""
@@ -699,12 +687,9 @@ except Exception as e:
699
687
  print(f"❌ Failed to import claude_code_agent module: {e}")
700
688
  """)
701
689
 
702
- # Now run the actual command with more debugging
703
- print("📝 Running claude_code_agent.py with debugging...")
704
690
 
705
691
  # Try with a simpler approach - just the query subcommand
706
692
  debug_cmd = f"cd /home/user && ANTHROPIC_API_KEY=\"{anthropic_key}\" python /home/user/kill_claude/claude_code_agent.py query \"{claude_prompt}\""
707
- print("Command to execute:", debug_cmd)
708
693
 
709
694
  # Define stdout and stderr handlers to stream output in real-time
710
695
  def on_stdout(data):