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.
- {veris_cli-2.10.2 → veris_cli-2.12.0}/PKG-INFO +1 -1
- {veris_cli-2.10.2 → veris_cli-2.12.0}/pyproject.toml +1 -1
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/cli.py +12 -2
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/scripts/docker_build.sh +11 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/.gitignore +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/README.md +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/__init__.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/api.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/build_context.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/config.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/output.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/prompts.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/scripts/__init__.py +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/scripts/docker_push.sh +0 -0
- {veris_cli-2.10.2 → veris_cli-2.12.0}/src/veris_cli/templates.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: veris-cli
|
|
3
|
-
Version: 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
|
|
@@ -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/
|
|
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(
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|