@k-msg/cli 0.9.0 → 0.9.1

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/CHANGELOG.md +17 -0
  2. package/README.md +12 -0
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @k-msg/cli
2
2
 
3
+ ## 0.9.1 — 2026-03-01
4
+
5
+ ### Patch changes
6
+
7
+ - [52275fb](https://github.com/k-otp/k-msg/commit/52275fb36874dc9445637931d524cb46af37d835) Automatically configure shell completion during curl installer runs for detected `zsh`, `bash`, and `fish` shells.
8
+
9
+ - Add installer flags:
10
+ - `K_MSG_CLI_SETUP_COMPLETIONS` (`true` by default, set `false` to opt out)
11
+ - `K_MSG_CLI_SHELL` (override shell detection for completion setup)
12
+ - Resolve shell init targets by shell context:
13
+ - `zsh`: `${ZDOTDIR:-$HOME}/.zshrc`
14
+ - `bash`: `~/.bashrc` + login profile (`~/.bash_profile` or `~/.profile`)
15
+ - `fish`: completion file under `~/.config/fish/completions`
16
+ - Register completion alias for `kmsg` alongside `k-msg`.
17
+ - Print shell reload hints after completion setup to reduce post-install confusion.
18
+ - Keep install success resilient by warning instead of failing when completion setup cannot be applied. — Thanks @imjlk!
19
+
3
20
  ## 0.9.0 — 2026-03-01
4
21
 
5
22
  ### Minor changes
package/README.md CHANGED
@@ -14,10 +14,18 @@ Installer environment variables:
14
14
  - `K_MSG_CLI_VERSION`: override target version (default: latest Pages script version)
15
15
  - `K_MSG_CLI_INSTALL_DIR`: target directory override (default: auto-detect active `k-msg` directory when writable, otherwise `~/.local/bin`)
16
16
  - `K_MSG_CLI_BASE_URL`: override release base URL (default: `https://github.com/k-otp/k-msg/releases/download/cli-v<version>`)
17
+ - `K_MSG_CLI_SETUP_COMPLETIONS`: set `false` to skip automatic shell completion setup (default: `true`)
18
+ - `K_MSG_CLI_SHELL`: override shell detection for completion setup (`zsh|bash|fish`)
17
19
 
18
20
  The project now standardizes user-facing CLI installation on the curl installer path.
19
21
  Other install paths are intentionally undocumented here.
20
22
 
23
+ By default, the installer also auto-configures shell completion for detected `zsh`, `bash`, or `fish`.
24
+ It resolves shell init files by context:
25
+ - `zsh`: `${ZDOTDIR:-$HOME}/.zshrc`
26
+ - `bash`: `~/.bashrc` plus login profile (`~/.bash_profile` or `~/.profile`)
27
+ - `fish`: `~/.config/fish/completions/k-msg.fish`
28
+
21
29
  ## Run (local/dev)
22
30
 
23
31
  ```bash
@@ -41,6 +49,10 @@ bun --cwd apps/cli src/k-msg.ts --help
41
49
 
42
50
  ## Shell Completions
43
51
 
52
+ If installed via curl installer, completion is configured automatically for your detected shell.
53
+ Use manual setup only when you want custom paths or a non-default shell setup.
54
+ Installer-generated completion also covers the `kmsg` alias.
55
+
44
56
  ```bash
45
57
  # Print completion script
46
58
  k-msg completions bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "private": false,
5
5
  "description": "k-msg CLI (prebuilt binaries via GitHub Releases)",
6
6
  "type": "module",