sandflare-cli 2.0.24__tar.gz → 2.0.26__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sandflare-cli
3
- Version: 2.0.24
3
+ Version: 2.0.26
4
4
  Summary: Sandflare CLI — manage Firecracker microVM sandboxes
5
5
  License: MIT
6
6
  Keywords: sandflare,sandbox,microvm,ai,firecracker
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sandflare-cli"
7
- version = "2.0.24"
7
+ version = "2.0.26"
8
8
  description = "Sandflare CLI — manage Firecracker microVM sandboxes"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -430,7 +430,7 @@ def template_build(args):
430
430
  if args.description:
431
431
  fields["description"] = args.description
432
432
 
433
- result = _multipart_post("/internal/templates/build", fields, context_files)
433
+ result = _multipart_post("/templates/build", fields, context_files)
434
434
  template_id = result.get("id") or result.get("template_id", "")
435
435
  ok(f"Template build started: \033[1m{template_id}\033[0m")
436
436
  info(f"Name : {args.name}")
@@ -442,7 +442,7 @@ def template_build(args):
442
442
  deadline = _time.time() + 3600 # 60 min max
443
443
  while _time.time() < deadline:
444
444
  _time.sleep(5)
445
- status_result = api("GET", f"/internal/templates/{template_id}/build-status")
445
+ status_result = api("GET", f"/templates/{template_id}/build-status")
446
446
  status = status_result.get("status", "")
447
447
  if status == "ready":
448
448
  ok(f"Template \033[1m{template_id}\033[0m is ready!")
@@ -453,7 +453,7 @@ def template_build(args):
453
453
 
454
454
 
455
455
  def template_list(_args):
456
- result = api("GET", "/internal/templates")
456
+ result = api("GET", "/templates")
457
457
  items = result if isinstance(result, list) else result.get("templates", [])
458
458
  custom = [t for t in items if t.get("provider") == "custom"]
459
459
  if not custom:
@@ -475,7 +475,7 @@ def template_list(_args):
475
475
 
476
476
 
477
477
  def template_delete(args):
478
- api("DELETE", f"/internal/templates/{args.id}")
478
+ api("DELETE", f"/templates/{args.id}")
479
479
  ok(f"Template \033[1m{args.id}\033[0m deleted.")
480
480
 
481
481
 
@@ -574,7 +574,7 @@ def main():
574
574
 
575
575
  args = parser.parse_args()
576
576
  if not hasattr(args, "func"):
577
- for subparser in [sandbox_parser, db_parser, keys_parser, config_parser, template_parser]:
577
+ for subparser in [sandbox_parser, keys_parser, config_parser, template_parser]:
578
578
  if args.resource in (
579
579
  getattr(subparser, "prog", "").split()[-1:] + list(subparser._option_string_actions.get("aliases", []))
580
580
  ):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sandflare-cli
3
- Version: 2.0.24
3
+ Version: 2.0.26
4
4
  Summary: Sandflare CLI — manage Firecracker microVM sandboxes
5
5
  License: MIT
6
6
  Keywords: sandflare,sandbox,microvm,ai,firecracker
File without changes
File without changes