@k-msg/cli 0.4.1 → 0.5.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 +17 -0
- package/README.md +25 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @k-msg/cli
|
|
2
2
|
|
|
3
|
+
## 0.5.1 — 2026-02-16
|
|
4
|
+
|
|
5
|
+
### Patch changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies: k-msg@0.11.0
|
|
8
|
+
|
|
9
|
+
## 0.5.0 — 2026-02-16
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- [9f91c30](https://github.com/k-otp/k-msg/commit/9f91c30c7ca372fc9c4caa8ba1d72cdd5eb83cdf) Improve CLI config onboarding and schema distribution:
|
|
14
|
+
|
|
15
|
+
- Make `k-msg config init` interactive by default, with automatic `--template full` fallback in non-interactive environments.
|
|
16
|
+
- Add `k-msg config provider add [type]` for incremental provider setup via prompts.
|
|
17
|
+
- Switch default config lookup to home-based config directories with legacy `./k-msg.config.json` fallback.
|
|
18
|
+
- Publish `k-msg.config.json` schema files (`latest` and `v1`) to GitHub Pages and include `$schema` in generated configs. — Thanks @imjlk!
|
|
19
|
+
|
|
3
20
|
## 0.4.1 — 2026-02-16
|
|
4
21
|
|
|
5
22
|
### Patch changes
|
package/README.md
CHANGED
|
@@ -85,7 +85,11 @@ bun --cwd apps/cli src/k-msg.ts --help
|
|
|
85
85
|
|
|
86
86
|
## Config (`k-msg.config.json`)
|
|
87
87
|
|
|
88
|
-
Default config path:
|
|
88
|
+
Default config path:
|
|
89
|
+
|
|
90
|
+
- macOS/Linux: `${XDG_CONFIG_HOME:-~/.config}/k-msg/k-msg.config.json`
|
|
91
|
+
- Windows: `%APPDATA%\\k-msg\\k-msg.config.json`
|
|
92
|
+
- Fallback: `./k-msg.config.json` (used when home path file does not exist)
|
|
89
93
|
|
|
90
94
|
Override:
|
|
91
95
|
|
|
@@ -95,6 +99,25 @@ k-msg --config /path/to/k-msg.config.json providers list
|
|
|
95
99
|
|
|
96
100
|
Example file: `apps/cli/k-msg.config.example.json`
|
|
97
101
|
|
|
102
|
+
Schema URLs:
|
|
103
|
+
|
|
104
|
+
- Latest: `https://raw.githubusercontent.com/k-otp/k-msg/main/apps/cli/schemas/k-msg.config.schema.json`
|
|
105
|
+
- Versioned (`v1`): `https://raw.githubusercontent.com/k-otp/k-msg/main/apps/cli/schemas/k-msg.config.v1.schema.json`
|
|
106
|
+
|
|
107
|
+
Initialize config:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# default: interactive wizard (TTY)
|
|
111
|
+
k-msg config init
|
|
112
|
+
|
|
113
|
+
# force full template (also auto-used in non-interactive environments)
|
|
114
|
+
k-msg config init --template full
|
|
115
|
+
|
|
116
|
+
# add providers incrementally
|
|
117
|
+
k-msg config provider add
|
|
118
|
+
k-msg config provider add iwinv
|
|
119
|
+
```
|
|
120
|
+
|
|
98
121
|
### `env:` substitution
|
|
99
122
|
|
|
100
123
|
Any string value like `"env:NAME"` is replaced with the `NAME` environment variable at runtime.
|
|
@@ -103,6 +126,7 @@ If the env var is missing/empty, commands that need runtime providers will fail
|
|
|
103
126
|
## Commands
|
|
104
127
|
|
|
105
128
|
- `k-msg config init|show|validate`
|
|
129
|
+
- `k-msg config provider add [type]`
|
|
106
130
|
- `k-msg providers list|health|doctor`
|
|
107
131
|
- `k-msg sms send`
|
|
108
132
|
- `k-msg alimtalk preflight|send`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "k-msg CLI (prebuilt binaries via GitHub Releases)",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"build:js": "bun run generate && bun build src/k-msg.ts --outdir=dist --format=esm --target=bun",
|
|
28
28
|
"dev": "bun run generate && bun --watch src/k-msg.ts",
|
|
29
29
|
"test": "bun run generate && bun test",
|
|
30
|
+
"schema:generate": "bun run scripts/generate-config-schema.ts",
|
|
31
|
+
"schema:check": "bun run scripts/generate-config-schema.ts --check",
|
|
30
32
|
"clean": "rm -rf dist"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|