veris-cli 2.2.0__tar.gz → 2.3.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.2.0
3
+ Version: 2.3.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.2.0"
3
+ version = "2.3.0"
4
4
  description = "CLI to connect local agents to the Veris backend"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -898,15 +898,16 @@ def run_local(
898
898
  output.print_info("Skipping Docker build\n")
899
899
 
900
900
  # 5. Launch containers in parallel
901
- logs_base = veris_dir / "logs"
902
- logs_base.mkdir(parents=True, exist_ok=True)
901
+ run_id = secrets.token_hex(4)
902
+ run_dir = veris_dir / "logs" / run_id
903
+ run_dir.mkdir(parents=True, exist_ok=True)
903
904
 
904
905
  runs = [] # List of (scenario, sim_id, process, logs_dir) tuples
905
906
 
906
907
  # Helper to launch a single container
907
908
  def launch_container(scenario_id: str):
908
909
  sim_id = secrets.token_hex(4)
909
- logs_dir = logs_base / sim_id
910
+ logs_dir = run_dir / sim_id
910
911
  logs_dir.mkdir(parents=True, exist_ok=True)
911
912
 
912
913
  container_name = f"veris-sim-{sim_id}"
@@ -965,6 +966,7 @@ def run_local(
965
966
  # Launch all at once
966
967
  runs = [launch_container(s) for s in scenario_list]
967
968
 
969
+ output.print_info(f"Run ID: {run_id}")
968
970
  output.print_info(f"Launched {len(runs)} container(s)\n")
969
971
 
970
972
  # 6. Wait for all to complete (if not already waited due to concurrency)
@@ -27,8 +27,15 @@ TEMP_DOCKER_CONFIG=$(mktemp -d)
27
27
  export DOCKER_CONFIG="$TEMP_DOCKER_CONFIG"
28
28
  trap "rm -rf $TEMP_DOCKER_CONFIG" EXIT
29
29
 
30
- # Preserve CLI plugins (buildx, etc.) from the default config directory
30
+ # Preserve credential helpers and CLI plugins from the default config.
31
+ # We only copy credHelpers (not the full config) to avoid importing
32
+ # Docker Desktop context references that break in the temp directory.
31
33
  DEFAULT_DOCKER_CONFIG="${HOME}/.docker"
34
+ if [ -f "$DEFAULT_DOCKER_CONFIG/config.json" ]; then
35
+ if command -v jq &> /dev/null; then
36
+ jq '{"credHelpers": (.credHelpers // {})}' "$DEFAULT_DOCKER_CONFIG/config.json" > "$TEMP_DOCKER_CONFIG/config.json"
37
+ fi
38
+ fi
32
39
  if [ -d "$DEFAULT_DOCKER_CONFIG/cli-plugins" ]; then
33
40
  ln -s "$DEFAULT_DOCKER_CONFIG/cli-plugins" "$TEMP_DOCKER_CONFIG/cli-plugins"
34
41
  fi
@@ -20,6 +20,16 @@ TEMP_DOCKER_CONFIG=$(mktemp -d)
20
20
  export DOCKER_CONFIG="$TEMP_DOCKER_CONFIG"
21
21
  trap "rm -rf $TEMP_DOCKER_CONFIG" EXIT
22
22
 
23
+ # Preserve credential helpers from the default config.
24
+ # We only copy credHelpers (not the full config) to avoid importing
25
+ # Docker Desktop context references that break in the temp directory.
26
+ DEFAULT_DOCKER_CONFIG="${HOME}/.docker"
27
+ if [ -f "$DEFAULT_DOCKER_CONFIG/config.json" ]; then
28
+ if command -v jq &> /dev/null; then
29
+ jq '{"credHelpers": (.credHelpers // {})}' "$DEFAULT_DOCKER_CONFIG/config.json" > "$TEMP_DOCKER_CONFIG/config.json"
30
+ fi
31
+ fi
32
+
23
33
  echo "Logging in to Docker registry..."
24
34
  echo " Registry: $REGISTRY"
25
35
  echo " Username: $USERNAME"
@@ -1,7 +1,7 @@
1
1
  """Static file templates for veris init."""
2
2
 
3
3
  DOCKERFILE_SANDBOX = """# Extends veris-gvisor base with your agent code
4
- FROM us-docker.pkg.dev/veris-ai-dev/veris-sandbox-dev/veris-gvisor:latest
4
+ FROM us-central1-docker.pkg.dev/veris-ai-prod/veris-sandbox/veris-gvisor:latest
5
5
 
6
6
  # Copy agent code and dependencies
7
7
  # NOTE: Build context is project root, so paths are relative to project root
File without changes
File without changes