gitarsenal-cli 1.9.88 → 1.9.89

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-21T04:45:52.473Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
1
+ {"created":"2025-08-21T07:38:12.600Z","packages":["modal","gitingest","requests","anthropic"],"uv_version":"uv 0.8.4 (Homebrew 2025-07-30)"}
package/bin/gitarsenal.js CHANGED
@@ -1240,7 +1240,7 @@ async function runContainerCommand(options) {
1240
1240
  }
1241
1241
 
1242
1242
  // Prompt for GPU count if not already specified via CLI
1243
- if (!options.gpuCount || gpuCount === 1) {
1243
+ if (!options.gpuCount) {
1244
1244
  const gpuCountAnswers = await inquirer.prompt([
1245
1245
  {
1246
1246
  type: 'list',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitarsenal-cli",
3
- "version": "1.9.88",
3
+ "version": "1.9.89",
4
4
  "description": "CLI tool for creating Modal sandboxes with GitHub repositories",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1065,7 +1065,7 @@ if __name__ == "__main__":
1065
1065
  parser.add_argument('--yes', action='store_true', help='Automatically confirm prompts (non-interactive)')
1066
1066
 
1067
1067
  parser.add_argument('--gpu', default='A10G', help='GPU type to use')
1068
- parser.add_argument('--gpu-count', type=int, default=1, help='Number of GPUs to use (default: 1)')
1068
+ parser.add_argument('--gpu-count', type=int, default=None, help='Number of GPUs to use (default: 1)')
1069
1069
  parser.add_argument('--repo-url', help='Repository URL')
1070
1070
 
1071
1071
  # Authentication-related arguments
@@ -1219,7 +1219,7 @@ if __name__ == "__main__":
1219
1219
  # Display configuration after GPU selection
1220
1220
  print("\nšŸ“‹ Container Configuration:")
1221
1221
  print(f"Repository URL: {args.repo_url or 'Not specified'}")
1222
- gpu_count = getattr(args, 'gpu_count', 1)
1222
+ gpu_count = args.gpu_count if args.gpu_count is not None else 1
1223
1223
  if gpu_count > 1:
1224
1224
  print(f"GPU Type: {gpu_count}x {gpu_type}")
1225
1225
  else:
@@ -1274,8 +1274,8 @@ if __name__ == "__main__":
1274
1274
  sys.exit(1)
1275
1275
 
1276
1276
  # Ask about GPU count if not specified
1277
- gpu_count = getattr(args, 'gpu_count', 1)
1278
- if not hasattr(args, 'gpu_count') or args.gpu_count == 1:
1277
+ gpu_count = getattr(args, 'gpu_count', None)
1278
+ if gpu_count is None:
1279
1279
  try:
1280
1280
  gpu_count_input = input("? How many GPUs do you need? (1-8, default: 1): ").strip()
1281
1281
  if gpu_count_input:
@@ -1287,6 +1287,9 @@ if __name__ == "__main__":
1287
1287
  except ValueError:
1288
1288
  print("āš ļø Invalid GPU count. Using default: 1")
1289
1289
  gpu_count = 1
1290
+ else:
1291
+ # User pressed enter without input, use default
1292
+ gpu_count = 1
1290
1293
  except KeyboardInterrupt:
1291
1294
  print("\nšŸ›‘ Setup cancelled.")
1292
1295
  sys.exit(1)
@@ -1393,7 +1396,7 @@ if __name__ == "__main__":
1393
1396
  timeout_minutes=args.timeout,
1394
1397
  ssh_password=ssh_password,
1395
1398
  interactive=args.interactive,
1396
- gpu_count=getattr(args, 'gpu_count', 1),
1399
+ gpu_count=args.gpu_count if args.gpu_count is not None else 1,
1397
1400
  analysis_data=analysis_data, # Pass parsed analysis_data instead of raw args.analysis_data
1398
1401
  )
1399
1402