gitarsenal-cli 1.9.87 → 1.9.88

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-20T13:10:12.929Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
1
+ {"created":"2025-08-21T04:45:52.473Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
@@ -57,6 +57,9 @@ Usage notes:
57
57
  - VERY IMPORTANT: You MUST avoid using search commands like `find` and `grep`. Instead use Grep, Glob, or Task to search. You MUST avoid read tools like `cat`, `head`, `tail`, and `ls`, and use Read and LS to read files.
58
58
  - If you _still_ need to run `grep`, STOP. ALWAYS USE ripgrep at `rg` first, which all Claude Code users have pre-installed.
59
59
  - IMPORTANT: Always use `uv pip` instead of just `pip` when running pip commands. For example, use `uv pip install package_name` instead of `pip install package_name`.
60
+ - Create and activate a virtual environment using `uv venv` before running any Python package installations or commands using uv.
61
+ - Add "--privileged" flag to Docker run command to resolve overlayfs and iptables permission issues during container initialization.
62
+ - For repository setup workflows: Print all commands needed for clone/setup/run process at start, then execute them sequentially. Print completion count (e.g., "Executed 5/7 commands"). Assume Linux OS for all commands.
60
63
  - TESTING MODE: For ML training and inference commands, always use minimal/quick parameters to enable fast testing:
61
64
  - FIRST: Read and examine the training script/config files to understand which parameters actually control training speed and duration
62
65
  - Add `--max_steps 10` or `--epochs 1` for training commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitarsenal-cli",
3
- "version": "1.9.87",
3
+ "version": "1.9.88",
4
4
  "description": "CLI tool for creating Modal sandboxes with GitHub repositories",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -74,13 +74,24 @@ def select_base_image_from_analysis(analysis_data):
74
74
  recommended_cuda = cuda_rec.get('recommendedCudaVersion', '')
75
75
  docker_image = cuda_rec.get('dockerImage', '')
76
76
 
77
+ # Handle null values from analysis
78
+ if recommended_cuda == 'null' or recommended_cuda is None:
79
+ recommended_cuda = ''
80
+ if docker_image == 'null' or docker_image is None:
81
+ docker_image = ''
82
+
83
+ # Check if analysis returned no useful CUDA information
84
+ if not recommended_cuda and not docker_image:
85
+ print("⚠️ Repository analysis did not detect specific CUDA requirements")
86
+ print("🐳 Will use default CUDA 12.4.1 image for broad compatibility")
87
+
77
88
  print(f"🔍 CUDA Analysis Results:")
78
- print(f" - Recommended CUDA Version: {recommended_cuda}")
79
- print(f" - Recommended Docker Image: {docker_image}")
89
+ print(f" - Recommended CUDA Version: {recommended_cuda or 'None'}")
90
+ print(f" - Recommended Docker Image: {docker_image or 'None'}")
80
91
  print(f" - Full CUDA Recommendation: {cuda_rec}")
81
92
 
82
93
  # If a specific docker image is recommended, use it
83
- if docker_image:
94
+ if docker_image and docker_image.strip():
84
95
  print(f"🔍 Validating recommended Docker image: {docker_image}")
85
96
  # Validate that the recommended Docker image follows expected patterns
86
97
  is_valid_image = False
@@ -147,7 +158,7 @@ def select_base_image_from_analysis(analysis_data):
147
158
  }
148
159
 
149
160
  # Extract major.minor version from recommended CUDA version
150
- if recommended_cuda:
161
+ if recommended_cuda and recommended_cuda.strip():
151
162
  # Handle versions like "12.4", "CUDA 12.4", "12.4.0", "11.8-runtime", etc.
152
163
  import re
153
164
  version_match = re.search(r'(\d+\.\d+)', recommended_cuda)
@@ -161,7 +172,7 @@ def select_base_image_from_analysis(analysis_data):
161
172
  return selected_image, "3.11"
162
173
 
163
174
  # Try with -runtime suffix if original recommended image was runtime
164
- if 'runtime' in docker_image.lower() or 'runtime' in recommended_cuda.lower():
175
+ if (docker_image and 'runtime' in docker_image.lower()) or 'runtime' in recommended_cuda.lower():
165
176
  runtime_key = f"{cuda_version}-runtime"
166
177
  if runtime_key in cuda_image_mapping:
167
178
  selected_image = cuda_image_mapping[runtime_key]