@k-msg/cli 0.3.0 → 0.3.2

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 +16 -0
  2. package/README.md +18 -1
  3. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @k-msg/cli
2
2
 
3
+ ## 0.3.2 — 2026-02-16
4
+
5
+ ### Patch changes
6
+
7
+ - [4faaeec](https://github.com/k-otp/k-msg/commit/4faaeec2b7e81c20a7695e9d84214cdaf92afa6b) Align the CLI bootstrap with Bunli type-generation by registering commands from
8
+ `apps/cli/.bunli/commands.gen.ts`, and run `bunli generate` before local `test`,
9
+ `dev`, and `build:js` scripts so command registration works reliably in fresh
10
+ environments and CI. — Thanks @imjlk!
11
+
12
+ ## 0.3.1 — 2026-02-16
13
+
14
+ ### Patch changes
15
+
16
+ - [4aaa986](https://github.com/k-otp/k-msg/commit/4aaa9865c6df4d611e8f64bdd509a500cb9cda42) Narrow AI auto-JSON detection to explicit Codex/MCP runtime env keys to avoid
17
+ switching human CLI output to JSON on unrelated environment variables. — Thanks @imjlk!
18
+
3
19
  ## 0.3.0 — 2026-02-16
4
20
 
5
21
  ### Minor changes
package/README.md CHANGED
@@ -24,6 +24,18 @@ Env overrides:
24
24
  - `K_MSG_CLI_CACHE_DIR`: override where the extracted binary is cached
25
25
  - `K_MSG_CLI_LOCAL_BINARY`: copy a local binary instead of downloading (useful for local testing)
26
26
 
27
+ ### curl installer (GitHub Pages)
28
+
29
+ ```bash
30
+ curl -fsSL https://k-otp.github.io/k-msg/cli/install.sh | bash
31
+ ```
32
+
33
+ Installer environment variables:
34
+
35
+ - `K_MSG_CLI_VERSION`: override target version (default: latest Pages script version)
36
+ - `K_MSG_CLI_INSTALL_DIR`: target directory (default: `~/.local/bin`)
37
+ - `K_MSG_CLI_BASE_URL`: override release base URL (default: `https://github.com/k-otp/k-msg/releases/download/cli-v<version>`)
38
+
27
39
  ### GitHub Releases (manual)
28
40
 
29
41
  The distribution workflow also publishes prebuilt binaries to GitHub Releases as:
@@ -56,6 +68,9 @@ Optionally copy it as `kmsg.exe` as an alias.
56
68
  ## Run (local/dev)
57
69
 
58
70
  ```bash
71
+ # Generate command types
72
+ bun run --cwd apps/cli generate
73
+
59
74
  # Build native binary
60
75
  bun run --cwd apps/cli build
61
76
  ./apps/cli/dist/k-msg --help
@@ -154,7 +169,9 @@ k-msg kakao template request --template-code TPL_001 --channel main
154
169
 
155
170
  - `--json`: print machine-readable JSON
156
171
  - AI environments (Bunli `@bunli/plugin-ai-detect`): JSON output is auto-enabled
157
- when an agent is detected (`CLAUDECODE`, `CURSOR_AGENT`, `CODEX_*`, `MCP_*`)
172
+ when an agent is detected (`CLAUDECODE`, `CURSOR_AGENT`, `CODEX_CI` /
173
+ `CODEX_SHELL` / `CODEX_THREAD_ID`, `MCP_SERVER_NAME` / `MCP_SESSION_ID` /
174
+ `MCP_TOOL_NAME`)
158
175
  - exit code:
159
176
  - `0`: success
160
177
  - `2`: input/config error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "description": "k-msg CLI (prebuilt binaries via GitHub Releases)",
6
6
  "type": "module",
@@ -20,12 +20,13 @@
20
20
  "CHANGELOG.md"
21
21
  ],
22
22
  "scripts": {
23
+ "generate": "bunli generate",
23
24
  "build": "bunli build",
24
25
  "build:all": "bunli build --targets all",
25
26
  "build:native": "bunli build --targets native",
26
- "build:js": "bun build src/k-msg.ts --outdir=dist --format=esm --target=bun",
27
- "dev": "bun --watch src/k-msg.ts",
28
- "test": "bun test",
27
+ "build:js": "bun run generate && bun build src/k-msg.ts --outdir=dist --format=esm --target=bun",
28
+ "dev": "bun run generate && bun --watch src/k-msg.ts",
29
+ "test": "bun run generate && bun test",
29
30
  "clean": "rm -rf dist"
30
31
  },
31
32
  "devDependencies": {