@zenera/cli 1.3.5 → 1.3.7

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.
package/dist/container.js CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { home, KeyStore, credentials, gcloudAdc, loadProjectEnv, MODEL_CONTEXT_ENV, resolveBuild, writeRuntime, } from '@zenera/engine';
10
10
  import { DEFAULT_SANDBOX_IMAGE, readProjectConfig } from '@zenera/neo';
11
- import { runProcess } from '@zenera/sandbox';
11
+ import { runProcess, SAME_PYTHON_CHECK } from '@zenera/sandbox';
12
12
  import { spawn } from 'node:child_process';
13
13
  import { createHash, randomBytes } from 'node:crypto';
14
14
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
@@ -380,6 +380,14 @@ RUN cd /opt/zenera/app \\
380
380
  ${parts.join('\n')}
381
381
  COPY runtime/ /opt/zenera/runtime/
382
382
  COPY etc/ /opt/zenera/etc/
383
+ # \`python\` and \`python3\` are one interpreter in every agent image: \`python\` is linked to
384
+ # python3 when the base has none, or another one. A base without python3 fails here.
385
+ RUN command -v python3 > /dev/null || { echo "zen: the sandbox image has no python3" >&2; exit 1; } \\
386
+ && if ! { ${SAME_PYTHON_CHECK}; } 2> /dev/null; then \\
387
+ p="$(command -v python || echo /usr/local/bin/python)" \\
388
+ && mkdir -p "$(dirname "$p")" && ln -sf "$(command -v python3)" "$p"; \\
389
+ fi \\
390
+ && ${SAME_PYTHON_CHECK}
383
391
  # Mount points: the image's root is read-only to every command. Node needs glibc: a base
384
392
  # without it fails here, not when the server starts.
385
393
  RUN mkdir -p /project /state /workspace /home/agent /home/zenera \\
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/cli",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
5
5
  "keywords": [
6
6
  "agents",
@@ -56,11 +56,11 @@
56
56
  "@google/genai": "^2.30.0",
57
57
  "@inkjs/ui": "^2.0.0",
58
58
  "@openrouter/sdk": "^1.4.25",
59
- "@zenera/engine": "^1.3.5",
60
- "@zenera/neo": "^1.3.5",
61
- "@zenera/sandbox": "^1.3.5",
62
- "@zenera/server": "^1.3.5",
63
- "@zenera/view": "^1.3.5",
59
+ "@zenera/engine": "^1.3.7",
60
+ "@zenera/neo": "^1.3.7",
61
+ "@zenera/sandbox": "^1.3.7",
62
+ "@zenera/server": "^1.3.7",
63
+ "@zenera/view": "^1.3.7",
64
64
  "google-auth-library": "^10.0.0",
65
65
  "ink": "^7.1.1",
66
66
  "openai": "^6.0.0",
@@ -1,9 +1,12 @@
1
1
  # The container `run_command` runs in. Built by `zen run` and `zen check`, and
2
2
  # named by the `sandbox: build:` block in agents.yaml.
3
3
  #
4
- # It starts from zen's sandbox base: Python and Node, the packages zen's tools
5
- # need, the HTTP clients `requests` (Python) and `axios` (Node), and this `zen`
6
- # itself (the tag is its version - `zen check --fix` moves it after an upgrade).
4
+ # It starts from zen's sandbox base: Python (`python` and `python3` are the
5
+ # same interpreter - zen checks that after every build), Node, the packages zen's
6
+ # tools need, `requests`, `jsonschema`, `pyyaml`, `python-dateutil` and
7
+ # `beautifulsoup4` (Python), `axios` (Node), the command-line tools curl, jq,
8
+ # ripgrep and unzip, and this `zen` itself (the tag is its version - `zen check
9
+ # --fix` moves it after an upgrade).
7
10
  # Pulled once; built here if it cannot be pulled.
8
11
  #
9
12
  # Add what this project always needs below rather than letting an agent install
@@ -16,10 +19,10 @@ FROM ghcr.io/zenera-ai/zenera-sandbox:{{version}}
16
19
  # image once; later runs reuse it.
17
20
  #
18
21
  # Command-line tools for documents and data (Debian packages): PDF to text,
19
- # document conversion, JSON, SQLite, images, audio and video.
22
+ # document conversion, SQLite, images, audio and video.
20
23
  # RUN apt-get update \
21
24
  # && apt-get install -y --no-install-recommends \
22
- # poppler-utils pandoc jq sqlite3 imagemagick ffmpeg \
25
+ # poppler-utils pandoc sqlite3 imagemagick ffmpeg \
23
26
  # && rm -rf /var/lib/apt/lists/*
24
27
  #
25
28
  # Python libraries for analysis, charts, spreadsheets and PDFs: