@heygaia/cli 0.7.0-beta.3 → 0.7.0-beta.5

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 (3) hide show
  1. package/README.md +8 -6
  2. package/dist/index.js +136 -114
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ CLI tool for setting up and managing [GAIA](https://heygaia.io).
9
9
  - **Node.js 20+** and one package manager (npm, pnpm, or bun)
10
10
  - **macOS or Linux** (Windows via WSL2)
11
11
  - **Docker** — `gaia up` offers to install it on apt-based Linux when missing
12
- - **Git** installed
12
+ - **Git** — only for developer setup (`gaia init`, `gaia setup`, `gaia dev`) and `gaia up --build`. Self-hosting does not need it.
13
13
 
14
14
  The CLI checks prerequisites at startup and reports what is missing.
15
15
 
@@ -52,7 +52,7 @@ gaia --help # Show all commands
52
52
 
53
53
  ### `gaia up`
54
54
 
55
- One-command self-hosted setup: checks prerequisites (installing Docker on apt-based Linux with consent), clones GAIA to `~/gaia` if needed, writes the configuration, pulls the published images and starts the stack. GAIA is served on a single port (default 3000) through a bundled Caddy proxy.
55
+ One-command self-hosted setup: checks prerequisites (installing Docker on apt-based Linux with consent), downloads this release's setup files (`gaia-selfhost-<version>.tar.gz` from the `cli-v<version>` GitHub Release, checked against its `.sha256`) into `~/gaia` if needed, writes the configuration, pulls the published images and starts the stack. GAIA is served on a single port (default 3000) through a bundled Caddy proxy.
56
56
 
57
57
  | Flag | Description |
58
58
  |------|-------------|
@@ -64,12 +64,12 @@ One-command self-hosted setup: checks prerequisites (installing Docker on apt-ba
64
64
  | `--llm-base-url <url>` | Endpoint for `ollama` (default `http://host.docker.internal:11434`) or `custom` (required) |
65
65
  | `--llm-model <model>` | Model for `ollama` (optional) or `custom` (required) |
66
66
  | `--code-sandbox` / `--no-code-sandbox` | Run agent code in local containers through the host Docker socket (root-equivalent; saved for later starts and updates) |
67
- | `--build` | Build images from the checkout instead of pulling |
67
+ | `--build` | Build images from source instead of pulling. Clones the source on a fresh machine; refuses on a bundle install (get the source with `gaia init`) |
68
68
  | `--no-start` | Configure only |
69
69
 
70
70
  ### `gaia update`
71
71
 
72
- Moves the install to the GAIA release this CLI version ships: pulls its `v<version>` images (nothing changes if that fails), checks out the matching `cli-v<version>` compose files, pins `GAIA_VERSION` in `infra/docker/.env`, restarts, and prints what changed. Volumes and `.env` files are preserved.
72
+ Moves the install to the GAIA release this CLI version ships: downloads and verifies its setup-file bundle, pulls its `v<version>` images (nothing changes if either fails), swaps the setup files in (removing ones the release dropped), pins `GAIA_VERSION` in `infra/docker/.env`, restarts, and prints what changed. Volumes, `.env` files and `backups/` are kept. An install that is a git checkout made by an older `gaia up` (a release tag, detached, no local edits) moves to the bundle layout on its next update; a checkout on a branch or with local edits is refused and pointed at `--git`.
73
73
 
74
74
  | Flag | Description |
75
75
  |------|-------------|
@@ -87,7 +87,7 @@ The full interactive wizard, mainly for contributors (developer mode, Infisical)
87
87
 
88
88
  ### `gaia setup`
89
89
 
90
- Reconfigure an existing GAIA repo:
90
+ Reconfigure a GAIA source checkout (developers):
91
91
 
92
92
  ```bash
93
93
  cd /path/to/gaia
@@ -148,12 +148,14 @@ cd packages/cli && pnpm run build
148
148
  ./packages/cli/test-cli.sh
149
149
  ```
150
150
 
151
+ To try unreleased CLI changes on a fresh VM, run `mise run cli:try` from the repo root and paste the command it prints into the VM. See `packages/cli/CLAUDE.md`.
152
+
151
153
  ## Publishing
152
154
 
153
155
  1. Update version in `package.json`
154
156
  2. Build: `pnpm run build`
155
157
  3. Commit and tag: `git tag cli-v<version>`
156
- 4. Push tag — GitHub Actions publishes to npm
158
+ 4. Push tag — GitHub Actions attaches the self-host bundle to the `cli-v<version>` release, then publishes to npm
157
159
 
158
160
  ## License
159
161