veris-cli 2.4.0__tar.gz → 2.4.2__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.4.0
3
+ Version: 2.4.2
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.4.0"
3
+ version = "2.4.2"
4
4
  description = "CLI to connect local agents to the Veris backend"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -838,7 +838,7 @@ def _resolve_scenarios(scenarios_dir: Path, scenario_args: tuple[str, ...]) -> l
838
838
  @click.argument("scenarios", nargs=-1)
839
839
  @click.option("--skip-build", is_flag=True, help="Skip building the Docker image")
840
840
  @click.option("--image", default="veris-sandbox", help="Docker image name (default: veris-sandbox)")
841
- @click.option("--platform", default="linux/arm64", help="Docker platform (default: linux/arm64)")
841
+ @click.option("--platform", default="linux/amd64", help="Docker platform (default: linux/amd64)")
842
842
  @click.option(
843
843
  "--scenarios-dir", default="./scenarios", help="Path to scenarios folder (default: ./scenarios)"
844
844
  )
@@ -876,9 +876,9 @@ def run_local(
876
876
  output.print_error(".veris/veris.yaml not found. Run 'veris init' first.")
877
877
  sys.exit(1)
878
878
 
879
- # 2. Load .env file
880
- dotenv_path = project_root / ".env"
881
- env_vars = _load_dotenv(dotenv_path)
879
+ # 2. Load env files: .veris/.env.simulation (infra) then .env (agent, takes precedence)
880
+ env_vars = _load_dotenv(veris_dir / ".env.simulation")
881
+ env_vars.update(_load_dotenv(project_root / ".env"))
882
882
 
883
883
  # Merge into os.environ for subprocess
884
884
  for k, v in env_vars.items():
@@ -898,7 +898,6 @@ def run_local(
898
898
  "build",
899
899
  "--platform",
900
900
  platform,
901
- "--pull",
902
901
  "--load",
903
902
  "-f",
904
903
  str(dockerfile),
@@ -30,10 +30,12 @@ trap "rm -rf $TEMP_DOCKER_CONFIG" EXIT
30
30
  # Preserve credential helpers and CLI plugins from the default config.
31
31
  # We only copy credHelpers (not the full config) to avoid importing
32
32
  # Docker Desktop context references that break in the temp directory.
33
+ # Exclude the target registry from credHelpers so docker login token is used
34
+ # instead of a potentially-stale gcloud credential helper.
33
35
  DEFAULT_DOCKER_CONFIG="${HOME}/.docker"
34
36
  if [ -f "$DEFAULT_DOCKER_CONFIG/config.json" ]; then
35
37
  if command -v jq &> /dev/null; then
36
- jq '{"credHelpers": (.credHelpers // {})}' "$DEFAULT_DOCKER_CONFIG/config.json" > "$TEMP_DOCKER_CONFIG/config.json"
38
+ jq --arg reg "$REGISTRY" '{"credHelpers": ((.credHelpers // {}) | del(.[$reg]))}' "$DEFAULT_DOCKER_CONFIG/config.json" > "$TEMP_DOCKER_CONFIG/config.json"
37
39
  fi
38
40
  fi
39
41
  if [ -d "$DEFAULT_DOCKER_CONFIG/cli-plugins" ]; then
@@ -25,6 +25,7 @@ RUN uv sync --no-dev
25
25
 
26
26
  # Copy veris configuration
27
27
  COPY .veris/veris.yaml /config/veris.yaml
28
+ COPY .veris/.env.simulation /config/.env.simulation
28
29
 
29
30
  # Copy scenarios if you have any
30
31
  # COPY scenarios /scenarios
@@ -52,7 +53,7 @@ agent:
52
53
  code_path: /agent
53
54
  entry_point: app.main:app # TODO: Update this
54
55
  port: 8000 # TODO: Update this
55
- environment: {} # Environment variables loaded from .env.simulation
56
+ environment: {}
56
57
  """
57
58
 
58
59
  ENV_SIMULATION = """# Environment variables for your agent
File without changes
File without changes