@brendanbank/create-atrium-host 0.29.1 → 0.30.0

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/README.md CHANGED
@@ -28,7 +28,7 @@ npx @brendanbank/create-atrium-host test-host --yes-defaults
28
28
  | `--yes-defaults` | Skip prompts; derive everything from the project name |
29
29
  | `--no-git` | Skip `git init` + initial commit |
30
30
  | `--out <dir>` | Output directory (default: `./<name>`) |
31
- | `--atrium <version>` | Atrium image / SDK version pin (default: `0.29`) |
31
+ | `--atrium <version>` | Atrium image / SDK version pin (default: `0.30`) |
32
32
  | `-h`, `--help` | Show help |
33
33
 
34
34
  ## What it emits
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brendanbank/create-atrium-host",
3
- "version": "0.29.1",
3
+ "version": "0.30.0",
4
4
  "description": "Scaffolder for new atrium host extensions: backend Python package + frontend Vite bundle + compose stack + CI, all wired against atrium's published image and host SDK packages. Run via `npx @brendanbank/create-atrium-host <name>`.",
5
5
  "license": "BSD-2-Clause",
6
6
  "type": "module",
package/src/cli.js CHANGED
@@ -37,7 +37,7 @@ const TEMPLATE_DIR = resolve(__dirname, '..', 'template');
37
37
  // The atrium image + SDK packages version in lockstep. Bump this when
38
38
  // cutting a new atrium release so freshly scaffolded hosts pin against
39
39
  // the right line.
40
- const DEFAULT_ATRIUM_VERSION = '0.29';
40
+ const DEFAULT_ATRIUM_VERSION = '0.30';
41
41
 
42
42
  const HELP = `
43
43
  ${kleur.bold('create-atrium-host')} — scaffold a new atrium host extension
@@ -37,6 +37,25 @@ RUN /opt/venv/bin/python -m ensurepip --upgrade \
37
37
  # Bake the host bundle into atrium's static dir at /host/main.js.
38
38
  COPY --from=frontend-builder /app/dist /opt/atrium/static/host
39
39
 
40
+ # Build stamp for ``GET /api/version`` — the SPA renders it in the
41
+ # user menu next to the atrium line, so an operator can see both
42
+ # layers at a glance. ``ATRIUM_VERSION`` / ``ATRIUM_COMMIT`` are
43
+ # inherited as ENV from the atrium base image; these three describe
44
+ # *this* image.
45
+ #
46
+ # Wire them up in CI, e.g.:
47
+ # docker build \
48
+ # --build-arg ATRIUM_APP_VERSION="$(git describe --tags --exact-match 2>/dev/null)" \
49
+ # --build-arg ATRIUM_APP_COMMIT="$(git rev-parse HEAD)" .
50
+ # An untagged build leaves the version empty and the UI renders the
51
+ # line as ``<name>: <short sha>``.
52
+ ARG ATRIUM_APP_NAME="__BRAND_NAME__"
53
+ ARG ATRIUM_APP_VERSION=""
54
+ ARG ATRIUM_APP_COMMIT=""
55
+ ENV ATRIUM_APP_NAME=${ATRIUM_APP_NAME} \
56
+ ATRIUM_APP_VERSION=${ATRIUM_APP_VERSION} \
57
+ ATRIUM_APP_COMMIT=${ATRIUM_APP_COMMIT}
58
+
40
59
  USER app
41
60
 
42
61
  # Re-declare HEALTHCHECK on the derived image. The base atrium image
@@ -115,7 +115,7 @@ make typecheck # tsc --noEmit on the host bundle
115
115
  against a specific release:
116
116
 
117
117
  ```bash
118
- ATRIUM_IMAGE=ghcr.io/brendanbank/atrium:0.29.1 make build up
118
+ ATRIUM_IMAGE=ghcr.io/brendanbank/atrium:0.30.0 make build up
119
119
  ```
120
120
 
121
121
  The frontend SDK packages