veris-cli 2.10.2__tar.gz → 2.12.0__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: veris-cli
3
- Version: 2.10.2
3
+ Version: 2.12.0
4
4
  Summary: CLI to connect local agents to the Veris backend
5
5
  Project-URL: Homepage, https://github.com/veris-ai/veris-cli
6
6
  Project-URL: Bug Tracker, https://github.com/veris-ai/veris-cli/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "veris-cli"
3
- version = "2.10.2"
3
+ version = "2.12.0"
4
4
  description = "CLI to connect local agents to the Veris backend"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -149,7 +149,7 @@ def login(ctx, api_key: str | None, backend_url: str | None, org: str | None):
149
149
  thread.start()
150
150
  server_ready.wait()
151
151
 
152
- login_url = f"{effective_url}/v1/auth/google/login?cli_port={port}"
152
+ login_url = f"{effective_url}/v1/auth/login?cli_port={port}"
153
153
  output.print_info("Opening browser to log in with Google...")
154
154
  webbrowser.open(login_url)
155
155
 
@@ -762,8 +762,16 @@ def run():
762
762
  type=int,
763
763
  help="Simulation timeout in seconds (60-3600)",
764
764
  )
765
+ @click.option("--image-tag", default=None, help="Image tag to use (default: latest)")
765
766
  @click.pass_context
766
- def run_create(ctx, scenario_set_id: str, env_id: str, concurrency: int, simulation_timeout: int):
767
+ def run_create(
768
+ ctx,
769
+ scenario_set_id: str,
770
+ env_id: str,
771
+ concurrency: int,
772
+ simulation_timeout: int,
773
+ image_tag: str,
774
+ ):
767
775
  """Create a new run (interactive if flags omitted)"""
768
776
  profile = _get_profile(ctx)
769
777
  try:
@@ -794,6 +802,8 @@ def run_create(ctx, scenario_set_id: str, env_id: str, concurrency: int, simulat
794
802
  config = {}
795
803
  if simulation_timeout is not None:
796
804
  config["simulation_timeout"] = simulation_timeout
805
+ if image_tag is not None:
806
+ config["image_tag"] = image_tag
797
807
 
798
808
  # Create run
799
809
  result = api.create_run(
@@ -49,6 +49,17 @@ echo " Registry: $REGISTRY"
49
49
  echo ""
50
50
  echo "$PASSWORD" | docker login -u "$USERNAME" --password-stdin "$REGISTRY"
51
51
 
52
+ if [ -n "$GVISOR_BASE" ] && ! grep -q 'ARG GVISOR_BASE' "$DOCKERFILE_PATH"; then
53
+ echo ""
54
+ echo "ERROR: Dockerfile is missing 'ARG GVISOR_BASE' declaration."
55
+ echo "The base image cannot be overridden without it. Replace your FROM line with:"
56
+ echo ""
57
+ echo " ARG GVISOR_BASE=us-central1-docker.pkg.dev/veris-ai-prod/veris-sandbox/veris-gvisor:latest"
58
+ echo " FROM \${GVISOR_BASE}"
59
+ echo ""
60
+ exit 1
61
+ fi
62
+
52
63
  echo ""
53
64
  echo "Building Docker image..."
54
65
  echo " Dockerfile: $DOCKERFILE_PATH"
File without changes
File without changes