gitarsenal-cli 1.9.63 → 1.9.64
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-
|
|
1
|
+
{"created":"2025-08-14T08:14:09.791Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
|
package/package.json
CHANGED
|
@@ -394,7 +394,7 @@ def create_modal_ssh_container(gpu_type, repo_url=None, repo_name=None, setup_co
|
|
|
394
394
|
# Define the SSH container function (remove image from decorator)
|
|
395
395
|
@app.function(
|
|
396
396
|
timeout=timeout_minutes * 60, # Convert to seconds
|
|
397
|
-
gpu=
|
|
397
|
+
gpu=gpu_spec['gpu'], # Use the user-selected GPU type
|
|
398
398
|
serialized=True,
|
|
399
399
|
volumes=volumes_config if volumes_config else None,
|
|
400
400
|
)
|
|
@@ -1377,8 +1377,6 @@ def get_setup_commands_from_gitingest(repo_url):
|
|
|
1377
1377
|
api_endpoints = [
|
|
1378
1378
|
"https://www.gitarsenal.dev/api/gitingest-setup-commands",
|
|
1379
1379
|
"https://gitarsenal.dev/api/gitingest-setup-commands",
|
|
1380
|
-
"https://www.gitarsenal.dev/api/analyze-with-gitingest",
|
|
1381
|
-
"http://localhost:3000/api/gitingest-setup-commands"
|
|
1382
1380
|
]
|
|
1383
1381
|
|
|
1384
1382
|
# Generate basic gitingest data
|
|
@@ -2168,27 +2166,9 @@ if __name__ == "__main__":
|
|
|
2168
2166
|
if args.repo_url and (args.use_gitingest and not args.no_gitingest):
|
|
2169
2167
|
# print("🔄 Using gitingest approach to fetch setup commands (default)")
|
|
2170
2168
|
api_commands = get_setup_commands_from_gitingest(args.repo_url)
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
else:
|
|
2175
|
-
print("⚠️ Failed to get commands from gitingest API")
|
|
2176
|
-
if not args.use_api:
|
|
2177
|
-
print("⚠️ Falling back to basic setup commands")
|
|
2178
|
-
setup_commands = generate_fallback_commands(None)
|
|
2179
|
-
else:
|
|
2180
|
-
setup_commands = []
|
|
2181
|
-
# If --use-api flag is set and repo_url is provided, fetch setup commands from API
|
|
2182
|
-
elif args.use_api and args.repo_url:
|
|
2183
|
-
print("🔄 Using original API to fetch setup commands")
|
|
2184
|
-
api_commands = fetch_setup_commands_from_api(args.repo_url)
|
|
2185
|
-
if api_commands:
|
|
2186
|
-
setup_commands = api_commands
|
|
2187
|
-
print(f"📋 Using {len(setup_commands)} commands from original API")
|
|
2188
|
-
else:
|
|
2189
|
-
print("⚠️ Failed to get commands from API, no fallback commands will be used")
|
|
2190
|
-
# Do not fall back to basic setup commands
|
|
2191
|
-
setup_commands = []
|
|
2169
|
+
setup_commands = api_commands
|
|
2170
|
+
print(f"📋 Using {len(setup_commands)} commands from gitingest API")
|
|
2171
|
+
|
|
2192
2172
|
|
|
2193
2173
|
# Parse setup commands from JSON if provided
|
|
2194
2174
|
if args.setup_commands_json:
|
|
@@ -2205,11 +2185,6 @@ if __name__ == "__main__":
|
|
|
2205
2185
|
print(f"⚠️ Error parsing JSON setup commands: {e}")
|
|
2206
2186
|
print(f"Received JSON string: {args.setup_commands_json}")
|
|
2207
2187
|
|
|
2208
|
-
# Print received setup commands for debugging
|
|
2209
|
-
if setup_commands:
|
|
2210
|
-
print(f"📋 Using {len(setup_commands)} setup commands:")
|
|
2211
|
-
for i, cmd in enumerate(setup_commands, 1):
|
|
2212
|
-
print(f" {i}. {cmd}")
|
|
2213
2188
|
|
|
2214
2189
|
# Load commands from file if specified
|
|
2215
2190
|
if args.commands_file and os.path.exists(args.commands_file):
|