@k-msg/cli 0.8.6 → 0.8.8
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/CHANGELOG.md +12 -0
- package/README.md +4 -60
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @k-msg/cli
|
|
2
2
|
|
|
3
|
+
## 0.8.8 — 2026-02-22
|
|
4
|
+
|
|
5
|
+
### Patch changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies: channel@0.23.1, core@0.23.1, messaging@0.23.1, provider@0.23.1, template@0.23.1, k-msg@0.23.1
|
|
8
|
+
|
|
9
|
+
## 0.8.7 — 2026-02-22
|
|
10
|
+
|
|
11
|
+
### Patch changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies: channel@0.23.0, core@0.23.0, messaging@0.23.0, provider@0.23.0, template@0.23.0, k-msg@0.23.0
|
|
14
|
+
|
|
3
15
|
## 0.8.6 — 2026-02-22
|
|
4
16
|
|
|
5
17
|
### Patch changes
|
package/README.md
CHANGED
|
@@ -2,36 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
This CLI is built with [Bunli](https://bunli.dev/) and uses the unified `k-msg` package (KMsg + Providers).
|
|
4
4
|
|
|
5
|
-
## Install (
|
|
6
|
-
|
|
7
|
-
### npm
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install -g @k-msg/cli
|
|
11
|
-
# or: pnpm add -g @k-msg/cli
|
|
12
|
-
|
|
13
|
-
k-msg --help
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Note: the npm package downloads a native binary from GitHub Releases on first run
|
|
17
|
-
(`bunli build:all` artifacts: `k-msg-cli-<version>-<target>.tar.gz`), verifies it
|
|
18
|
-
using `checksums.txt`, then extracts and caches it under your OS cache directory
|
|
19
|
-
(`K_MSG_CLI_CACHE_DIR` to override).
|
|
20
|
-
|
|
21
|
-
When a new native binary is installed, the launcher also performs best-effort sync
|
|
22
|
-
for writable legacy `k-msg` binaries found on PATH (for example, older curl-based
|
|
23
|
-
installs). Set `K_MSG_CLI_SYNC_PATHS=0` to disable this behavior.
|
|
24
|
-
|
|
25
|
-
Env overrides:
|
|
26
|
-
|
|
27
|
-
- `K_MSG_CLI_BASE_URL`: override GitHub release base URL (default: `https://github.com/k-otp/k-msg/releases/download/cli-v<version>`)
|
|
28
|
-
- `K_MSG_CLI_CACHE_DIR`: override where the extracted binary is cached
|
|
29
|
-
- `K_MSG_CLI_LOCAL_BINARY`: copy a local binary instead of downloading (useful for local testing)
|
|
30
|
-
|
|
31
|
-
### curl installer (GitHub Pages)
|
|
5
|
+
## Install (curl only)
|
|
32
6
|
|
|
33
7
|
```bash
|
|
34
8
|
curl -fsSL https://k-otp.github.io/k-msg/cli/install.sh | bash
|
|
9
|
+
k-msg --help
|
|
35
10
|
```
|
|
36
11
|
|
|
37
12
|
Installer environment variables:
|
|
@@ -40,39 +15,8 @@ Installer environment variables:
|
|
|
40
15
|
- `K_MSG_CLI_INSTALL_DIR`: target directory override (default: auto-detect active `k-msg` directory when writable, otherwise `~/.local/bin`)
|
|
41
16
|
- `K_MSG_CLI_BASE_URL`: override release base URL (default: `https://github.com/k-otp/k-msg/releases/download/cli-v<version>`)
|
|
42
17
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
- The installer now prefers updating the currently active `k-msg` path when possible, and also refreshes that path if it differs from the selected install dir. This reduces stale-version issues when users previously installed via `bun`/`npm`/older `curl` flows.
|
|
46
|
-
- For safety, the installer does not overwrite active symlink/script launchers (for example package-manager shims). In that case it installs to `~/.local/bin` unless `K_MSG_CLI_INSTALL_DIR` is set.
|
|
47
|
-
|
|
48
|
-
### GitHub Releases (manual)
|
|
49
|
-
|
|
50
|
-
The distribution workflow also publishes prebuilt binaries to GitHub Releases as:
|
|
51
|
-
|
|
52
|
-
- `k-msg-cli-<version>-darwin-arm64.tar.gz`
|
|
53
|
-
- `k-msg-cli-<version>-darwin-x64.tar.gz`
|
|
54
|
-
- `k-msg-cli-<version>-linux-arm64.tar.gz`
|
|
55
|
-
- `k-msg-cli-<version>-linux-x64.tar.gz`
|
|
56
|
-
- `k-msg-cli-<version>-windows-x64.tar.gz`
|
|
57
|
-
|
|
58
|
-
After extracting, you'll find the binary at `<target>/k-msg` (or `<target>/k-msg.exe`).
|
|
59
|
-
|
|
60
|
-
### macOS/Linux
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
tar -xzf k-msg-cli-<version>-<target>.tar.gz
|
|
64
|
-
sudo install -m 0755 <target>/k-msg /usr/local/bin/k-msg
|
|
65
|
-
|
|
66
|
-
# optional alias
|
|
67
|
-
sudo ln -sf /usr/local/bin/k-msg /usr/local/bin/kmsg
|
|
68
|
-
|
|
69
|
-
k-msg --help
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### Windows
|
|
73
|
-
|
|
74
|
-
Extract the archive and put `k-msg.exe` somewhere on your `PATH`.
|
|
75
|
-
Optionally copy it as `kmsg.exe` as an alias.
|
|
18
|
+
The project now standardizes user-facing CLI installation on the curl installer path.
|
|
19
|
+
Other install paths are intentionally undocumented here.
|
|
76
20
|
|
|
77
21
|
## Run (local/dev)
|
|
78
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "k-msg CLI (prebuilt binaries via GitHub Releases)",
|
|
6
6
|
"type": "module",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"clean": "rm -rf dist"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@k-msg/channel": "0.
|
|
37
|
-
"@k-msg/core": "0.
|
|
38
|
-
"@k-msg/messaging": "0.
|
|
39
|
-
"@k-msg/provider": "0.
|
|
40
|
-
"@k-msg/template": "0.
|
|
36
|
+
"@k-msg/channel": "0.22.3",
|
|
37
|
+
"@k-msg/core": "0.22.3",
|
|
38
|
+
"@k-msg/messaging": "0.22.3",
|
|
39
|
+
"@k-msg/provider": "0.22.3",
|
|
40
|
+
"@k-msg/template": "0.22.3",
|
|
41
41
|
"@bunli/core": "^0.5.4",
|
|
42
42
|
"@bunli/plugin-ai-detect": "^0.5.2",
|
|
43
43
|
"@bunli/test": "^0.3.2",
|
|
44
44
|
"@types/bun": "^1.3.9",
|
|
45
45
|
"@types/node": "^22.0.0",
|
|
46
46
|
"bunli": "^0.5.3",
|
|
47
|
-
"k-msg": "0.
|
|
47
|
+
"k-msg": "0.22.3",
|
|
48
48
|
"solapi": "^5.5.4",
|
|
49
49
|
"typescript": "^5.7.2",
|
|
50
50
|
"zod": "^4.0.14"
|