@k-msg/cli 0.3.1 → 0.3.3

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 +15 -0
  2. package/README.md +18 -0
  3. package/package.json +5 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @k-msg/cli
2
2
 
3
+ ## 0.3.3 — 2026-02-16
4
+
5
+ ### Patch changes
6
+
7
+ - Updated dependencies: k-msg@0.9.0
8
+
9
+ ## 0.3.2 — 2026-02-16
10
+
11
+ ### Patch changes
12
+
13
+ - [4faaeec](https://github.com/k-otp/k-msg/commit/4faaeec2b7e81c20a7695e9d84214cdaf92afa6b) Align the CLI bootstrap with Bunli type-generation by registering commands from
14
+ `apps/cli/.bunli/commands.gen.ts`, and run `bunli generate` before local `test`,
15
+ `dev`, and `build:js` scripts so command registration works reliably in fresh
16
+ environments and CI. — Thanks @imjlk!
17
+
3
18
  ## 0.3.1 — 2026-02-16
4
19
 
5
20
  ### Patch changes
package/README.md CHANGED
@@ -68,6 +68,9 @@ Optionally copy it as `kmsg.exe` as an alias.
68
68
  ## Run (local/dev)
69
69
 
70
70
  ```bash
71
+ # Generate command types
72
+ bun run --cwd apps/cli generate
73
+
71
74
  # Build native binary
72
75
  bun run --cwd apps/cli build
73
76
  ./apps/cli/dist/k-msg --help
@@ -127,6 +130,21 @@ k-msg alimtalk send \
127
130
  --channel main
128
131
  ```
129
132
 
133
+ Failover options:
134
+
135
+ ```bash
136
+ k-msg alimtalk send \
137
+ --to 01012345678 \
138
+ --template-code TPL_001 \
139
+ --vars '{"name":"Jane"}' \
140
+ --failover true \
141
+ --fallback-channel sms \
142
+ --fallback-content "Fallback SMS text" \
143
+ --fallback-title "Fallback LMS title"
144
+ ```
145
+
146
+ When providers return send warnings (for example failover partial/unsupported), CLI prints `WARNING ...` lines in text mode and includes them in `--json` output.
147
+
130
148
  ### Advanced JSON send
131
149
 
132
150
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
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": {