veris-cli 2.25.2__tar.gz → 2.26.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.
Files changed (28) hide show
  1. {veris_cli-2.25.2 → veris_cli-2.26.0}/PKG-INFO +2 -2
  2. {veris_cli-2.25.2 → veris_cli-2.26.0}/README.md +1 -1
  3. {veris_cli-2.25.2 → veris_cli-2.26.0}/pyproject.toml +1 -1
  4. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/env.py +4 -0
  5. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/scripts/docker_build.sh +11 -8
  6. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/templates.py +4 -4
  7. {veris_cli-2.25.2 → veris_cli-2.26.0}/.gitignore +0 -0
  8. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/__init__.py +0 -0
  9. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/api.py +0 -0
  10. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/build_context.py +0 -0
  11. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/cli.py +0 -0
  12. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/__init__.py +0 -0
  13. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/_helpers.py +0 -0
  14. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/auth.py +0 -0
  15. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/evaluations.py +0 -0
  16. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/profile.py +0 -0
  17. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/reports.py +0 -0
  18. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/run.py +0 -0
  19. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/scenarios.py +0 -0
  20. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/commands/simulations.py +0 -0
  21. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/config.py +0 -0
  22. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/output.py +0 -0
  23. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/prompts.py +0 -0
  24. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/run_output.py +0 -0
  25. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/scripts/__init__.py +0 -0
  26. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/scripts/docker_push.sh +0 -0
  27. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/searchable_checkbox.py +0 -0
  28. {veris_cli-2.25.2 → veris_cli-2.26.0}/src/veris_cli/veris_yaml.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: veris-cli
3
- Version: 2.25.2
3
+ Version: 2.26.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
@@ -356,7 +356,7 @@ my-cool-agent-env:
356
356
  entry_point: uv run app
357
357
  port: 8008
358
358
  environment:
359
- DATABASE_URL: postgresql://postgres:postgres@localhost:5432/SIMULATION_ID
359
+ DATABASE_URL: postgresql://postgres:postgres@localhost:5432/veris
360
360
  ```
361
361
 
362
362
  When only one target is defined, all commands auto-select it.
@@ -332,7 +332,7 @@ my-cool-agent-env:
332
332
  entry_point: uv run app
333
333
  port: 8008
334
334
  environment:
335
- DATABASE_URL: postgresql://postgres:postgres@localhost:5432/SIMULATION_ID
335
+ DATABASE_URL: postgresql://postgres:postgres@localhost:5432/veris
336
336
  ```
337
337
 
338
338
  When only one target is defined, all commands auto-select it.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "veris-cli"
3
- version = "2.25.2"
3
+ version = "2.26.0"
4
4
  description = "CLI to connect local agents to the Veris backend"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -118,6 +118,10 @@ def _env_push_local(
118
118
  "-f",
119
119
  dockerfile,
120
120
  "--build-arg",
121
+ f"VERIS_BASE={base_image}",
122
+ # Also send the legacy name so Dockerfiles still using
123
+ # ARG GVISOR_BASE keep building during the rename period.
124
+ "--build-arg",
121
125
  f"GVISOR_BASE={base_image}",
122
126
  "-t",
123
127
  image_uri,
@@ -2,7 +2,7 @@
2
2
  set -e
3
3
 
4
4
  # Docker build script for Veris CLI
5
- # Usage: docker_build.sh <dockerfile_path> <image_uri> <registry> <username> <password> [no_cache] [gvisor_base]
5
+ # Usage: docker_build.sh <dockerfile_path> <image_uri> <registry> <username> <password> [no_cache] [veris_base]
6
6
 
7
7
  DOCKERFILE_PATH="$1"
8
8
  IMAGE_URI="$2"
@@ -10,7 +10,7 @@ REGISTRY="$3"
10
10
  USERNAME="$4"
11
11
  PASSWORD="$5"
12
12
  NO_CACHE="${6:-0}" # Optional, defaults to 0 (use cache)
13
- GVISOR_BASE="$7" # Optional, overrides GVISOR_BASE build arg
13
+ VERIS_BASE="$7" # Optional, overrides VERIS_BASE build arg
14
14
 
15
15
  if [ -z "$DOCKERFILE_PATH" ] || [ -z "$IMAGE_URI" ] || [ -z "$REGISTRY" ] || [ -z "$USERNAME" ] || [ -z "$PASSWORD" ]; then
16
16
  echo "Usage: $0 <dockerfile_path> <image_uri> <registry> <username> <password> [no_cache]"
@@ -49,13 +49,13 @@ 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
52
+ if [ -n "$VERIS_BASE" ] && ! grep -qE 'ARG (VERIS_BASE|GVISOR_BASE)' "$DOCKERFILE_PATH"; then
53
53
  echo ""
54
- echo "ERROR: Dockerfile is missing 'ARG GVISOR_BASE' declaration."
54
+ echo "ERROR: Dockerfile is missing 'ARG VERIS_BASE' declaration."
55
55
  echo "The base image cannot be overridden without it. Replace your FROM line with:"
56
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}"
57
+ echo " ARG VERIS_BASE"
58
+ echo " FROM \${VERIS_BASE}"
59
59
  echo ""
60
60
  exit 1
61
61
  fi
@@ -72,8 +72,11 @@ echo ""
72
72
  # FROM images via registry metadata, failing for local-only base images
73
73
  # (e.g. veris-gvisor:latest built by build-local.sh).
74
74
  BUILD_ARGS="--platform linux/amd64 -f $DOCKERFILE_PATH -t $IMAGE_URI"
75
- if [ -n "$GVISOR_BASE" ]; then
76
- BUILD_ARGS="$BUILD_ARGS --build-arg GVISOR_BASE=$GVISOR_BASE"
75
+ if [ -n "$VERIS_BASE" ]; then
76
+ # Send both the new name (VERIS_BASE) and the legacy one (GVISOR_BASE)
77
+ # so Dockerfiles with either declaration keep building. Docker ignores
78
+ # --build-arg flags whose ARG isn't declared.
79
+ BUILD_ARGS="$BUILD_ARGS --build-arg VERIS_BASE=$VERIS_BASE --build-arg GVISOR_BASE=$VERIS_BASE"
77
80
  fi
78
81
  if [ "$NO_CACHE" = "1" ]; then
79
82
  docker rmi "$IMAGE_URI" 2>/dev/null || true
@@ -1,8 +1,8 @@
1
1
  """Static file templates for veris init."""
2
2
 
3
- DOCKERFILE_SANDBOX = """# Extends veris-gvisor base with your agent code
4
- ARG GVISOR_BASE=us-central1-docker.pkg.dev/veris-ai-prod/veris-sandbox/veris-gvisor:latest
5
- FROM ${GVISOR_BASE}
3
+ DOCKERFILE_SANDBOX = """# Extends the Veris base image with your agent code
4
+ ARG VERIS_BASE
5
+ FROM ${VERIS_BASE}
6
6
 
7
7
  # ============================================================
8
8
  # 1. AGENT CODE — Update paths to match your project structure
@@ -141,7 +141,7 @@ TARGET_BODY = """\
141
141
  entry_point: uv run --no-sync uvicorn app.main:app --host 0.0.0.0 --port 8008
142
142
  port: 8008
143
143
  # environment:
144
- # DATABASE_URL: postgresql://postgres:postgres@localhost:5432/SIMULATION_ID
144
+ # DATABASE_URL: postgresql://postgres:postgres@localhost:5432/veris
145
145
  """
146
146
 
147
147
 
File without changes