@wheatley-ai/cli 0.2.0 → 0.3.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
@@ -8,13 +8,45 @@ This package installs the `wheatley` command. The daemon, the CLI, and the dashb
8
8
 
9
9
  ## Install
10
10
 
11
- You need Node.js 26.13.1 or newer.
11
+ ### Install script (macOS and Linux)
12
+
13
+ Works on macOS (`arm64`, `x64`) and glibc Linux (`x64`, `arm64`):
14
+
15
+ ```sh
16
+ curl -fsSL https://raw.githubusercontent.com/SphericalKat/wheatley/main/scripts/install.sh | sh
17
+ ```
18
+
19
+ Files go under `${XDG_DATA_HOME:-~/.local/share}/wheatley/` and the binary goes in `${XDG_BIN_HOME:-~/.local/bin}/wheatley`, keeping `~/.wheatley` for config and data. If your machine does not have Node.js `26.13.1` or newer, the script downloads Node.js automatically into `wheatley/runtime` (Linux requires `libatomic1`). Pass `--version <version>` to pin a release or `--no-modify-path` to skip shell profile edits.
20
+
21
+ ### npm, pnpm, yarn, or bun
22
+
23
+ Requires Node.js `26.13.1` or newer:
12
24
 
13
25
  ```sh
14
26
  npm install -g @wheatley-ai/cli
27
+ # or
28
+ pnpm add -g @wheatley-ai/cli
29
+ # or
30
+ yarn global add @wheatley-ai/cli
31
+ # or
32
+ bun install -g @wheatley-ai/cli
33
+ ```
34
+
35
+ ### Homebrew
36
+
37
+ ```sh
38
+ brew install sphericalkat/tap/wheatley
15
39
  ```
16
40
 
17
- pnpm works too: `pnpm add -g @wheatley-ai/cli`.
41
+ Homebrew installs Node.js as a dependency.
42
+
43
+ ### Arch Linux (AUR)
44
+
45
+ ```sh
46
+ paru -S wheatley-cli
47
+ # or
48
+ yay -S wheatley-cli
49
+ ```
18
50
 
19
51
  ## Quick start
20
52
 
@@ -181,7 +213,9 @@ wheatley update --check
181
213
  wheatley update
182
214
  ```
183
215
 
184
- `wheatley update` stays inside your current major version. To move to a new major version, run `npm install -g @wheatley-ai/cli@latest`. Then restart the daemon, for example with `wheatley service restart`.
216
+ `wheatley update` detects how you installed Wheatley (`npm`, `pnpm`, `yarn`, `bun`, Homebrew, or the `curl` script) and upgrades within your current major version. Pass `--method <name>` to override detection. For Volta, mise, AUR, and Docker installs, it prints the native update command without touching files.
217
+
218
+ Major version upgrades are never installed automatically. Run the command `wheatley update` prints for your install method, then restart the daemon (for example `wheatley service restart`).
185
219
 
186
220
  ## Security
187
221
 
package/dist/cli/main.js CHANGED
@@ -19,11 +19,12 @@ Commands:
19
19
  ask Send one prompt to an Agent and print the reply
20
20
  status Show the health of the Deployment
21
21
  service Install or control the Wheatley service: install, start, stop, restart, status
22
- update Update Wheatley within its major version (--check, --manager npm|pnpm)
22
+ update Update Wheatley within its major version (--check, --method npm|pnpm|yarn|bun|brew|curl)
23
23
  restore List the backups of an Agent, or restore agent.sqlite: restore <agent> [backup]
24
24
 
25
25
  Options:
26
26
  -h, --help Show this help
27
+ --version Show the Wheatley version
27
28
  --home <dir> The Deployment home (default: $WHEATLEY_HOME or ~/.wheatley)
28
29
  --url <ws-url> Connect over TCP instead of the Unix socket in the home folder
29
30
  --agent <name> The Agent of chat and ask
@@ -138,9 +139,13 @@ export const runCli = async (argv, io, overrides = {}) => {
138
139
  io.stdout(USAGE);
139
140
  return 0;
140
141
  }
142
+ const version = await packageVersion();
143
+ if (values.version === true) {
144
+ io.stdout(`${version}\n`);
145
+ return 0;
146
+ }
141
147
  const [command, ...rest] = positionals;
142
148
  const home = resolveHome(values.home, io.env);
143
- const version = await packageVersion();
144
149
  const client = { agent: values.agent, home, url: values.url };
145
150
  switch (command) {
146
151
  case "init": {
@@ -201,6 +206,7 @@ const parseCliArgs = (argv) => parseArgs({
201
206
  port: { type: "string" },
202
207
  provider: { type: "string" },
203
208
  url: { type: "string" },
209
+ version: { type: "boolean" },
204
210
  },
205
211
  strict: true,
206
212
  });