@k-msg/cli 0.2.0 → 0.3.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.
- package/CHANGELOG.md +14 -0
- package/README.md +16 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @k-msg/cli
|
|
2
2
|
|
|
3
|
+
## 0.3.1 — 2026-02-16
|
|
4
|
+
|
|
5
|
+
### Patch changes
|
|
6
|
+
|
|
7
|
+
- [4aaa986](https://github.com/k-otp/k-msg/commit/4aaa9865c6df4d611e8f64bdd509a500cb9cda42) Narrow AI auto-JSON detection to explicit Codex/MCP runtime env keys to avoid
|
|
8
|
+
switching human CLI output to JSON on unrelated environment variables. — Thanks @imjlk!
|
|
9
|
+
|
|
10
|
+
## 0.3.0 — 2026-02-16
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- [204531e](https://github.com/k-otp/k-msg/commit/204531ea503a51fc0ee320fa53cf95f0293f66e8) Integrate Bunli `@bunli/plugin-ai-detect` into the CLI and auto-enable JSON output
|
|
15
|
+
in AI-agent environments (including custom detections for `CODEX_*` and `MCP_*`). — Thanks @imjlk!
|
|
16
|
+
|
|
3
17
|
## 0.2.0 — 2026-02-15
|
|
4
18
|
|
|
5
19
|
### 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:
|
|
@@ -153,6 +165,10 @@ k-msg kakao template request --template-code TPL_001 --channel main
|
|
|
153
165
|
## Output / Exit Codes
|
|
154
166
|
|
|
155
167
|
- `--json`: print machine-readable JSON
|
|
168
|
+
- AI environments (Bunli `@bunli/plugin-ai-detect`): JSON output is auto-enabled
|
|
169
|
+
when an agent is detected (`CLAUDECODE`, `CURSOR_AGENT`, `CODEX_CI` /
|
|
170
|
+
`CODEX_SHELL` / `CODEX_THREAD_ID`, `MCP_SERVER_NAME` / `MCP_SESSION_ID` /
|
|
171
|
+
`MCP_TOOL_NAME`)
|
|
156
172
|
- exit code:
|
|
157
173
|
- `0`: success
|
|
158
174
|
- `2`: input/config error
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "k-msg CLI (prebuilt binaries via GitHub Releases)",
|
|
6
6
|
"type": "module",
|
|
@@ -30,11 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@bunli/core": "^0.5.4",
|
|
33
|
+
"@bunli/plugin-ai-detect": "^0.5.2",
|
|
33
34
|
"@bunli/test": "^0.3.2",
|
|
34
35
|
"@types/bun": "latest",
|
|
35
36
|
"@types/node": "^22.0.0",
|
|
36
|
-
"k-msg": "0.7.3",
|
|
37
37
|
"bunli": "^0.5.3",
|
|
38
|
+
"k-msg": "0.8.0",
|
|
38
39
|
"typescript": "^5.7.2",
|
|
39
40
|
"zod": "^4.0.14"
|
|
40
41
|
},
|