@k-msg/cli 0.6.2 → 0.7.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 +18 -0
- package/README.md +36 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @k-msg/cli
|
|
2
2
|
|
|
3
|
+
## 0.7.1 — 2026-02-21
|
|
4
|
+
|
|
5
|
+
### Patch changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies: core@0.19.1, messaging@0.19.1, provider@0.19.1, k-msg@0.19.1
|
|
8
|
+
|
|
9
|
+
## 0.7.0 — 2026-02-19
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- [6a1562f](https://github.com/k-otp/k-msg/commit/6a1562f9e276b16e9125c94e71513b34888a976e) Add Cloudflare SQL schema generation APIs and Drizzle adapter helpers to `@k-msg/messaging`, including reusable SQL/Drizzle schema renderers and improved retry-safe lazy initialization for SQL-backed tracking stores and job queues.
|
|
14
|
+
|
|
15
|
+
Add `k-msg db schema print` and `k-msg db schema generate` commands to `@k-msg/cli`, using `@k-msg/messaging/adapters/cloudflare` as the single source of truth for generated SQL and Drizzle schema output. — Thanks @imjlk!
|
|
16
|
+
|
|
17
|
+
### Patch changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies: core@0.19.0, messaging@0.19.0, provider@0.19.0, k-msg@0.19.0
|
|
20
|
+
|
|
3
21
|
## 0.6.2 — 2026-02-19
|
|
4
22
|
|
|
5
23
|
### Patch changes
|
package/README.md
CHANGED
|
@@ -177,9 +177,45 @@ Required values by provider/channel:
|
|
|
177
177
|
- `k-msg sms send`
|
|
178
178
|
- `k-msg alimtalk preflight|send`
|
|
179
179
|
- `k-msg send --input <json> | --file <path> | --stdin` (advanced/raw JSON only)
|
|
180
|
+
- `k-msg db schema print|generate`
|
|
180
181
|
- `k-msg kakao channel categories|list|auth|add`
|
|
181
182
|
- `k-msg kakao template list|get|create|update|delete|request`
|
|
182
183
|
|
|
184
|
+
## DB schema generator
|
|
185
|
+
|
|
186
|
+
Generate canonical SQL DDL and/or Drizzle schema source from the same
|
|
187
|
+
`@k-msg/messaging/adapters/cloudflare` schema utilities.
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Print both drizzle+sql to stdout
|
|
191
|
+
k-msg db schema print --dialect postgres
|
|
192
|
+
|
|
193
|
+
# Print only SQL for queue schema
|
|
194
|
+
k-msg db schema print --dialect postgres --target queue --format sql
|
|
195
|
+
|
|
196
|
+
# Generate both files in cwd
|
|
197
|
+
k-msg db schema generate --dialect postgres
|
|
198
|
+
|
|
199
|
+
# Generate SQL only to a custom path
|
|
200
|
+
k-msg db schema generate \
|
|
201
|
+
--dialect mysql \
|
|
202
|
+
--target tracking \
|
|
203
|
+
--format sql \
|
|
204
|
+
--out-dir ./db \
|
|
205
|
+
--sql-file tracking.sql
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Flags:
|
|
209
|
+
|
|
210
|
+
- `--dialect <postgres|mysql|sqlite>`: required
|
|
211
|
+
- `--target <tracking|queue|both>`: default `both`
|
|
212
|
+
- `--format <drizzle|sql|both>`: default `both`
|
|
213
|
+
- `generate` only:
|
|
214
|
+
- `--out-dir <path>` default current directory
|
|
215
|
+
- `--drizzle-file <name>` default `kmsg.schema.ts`
|
|
216
|
+
- `--sql-file <name>` default `kmsg.schema.sql`
|
|
217
|
+
- `--force` default `false` (without it, generation fails if file exists)
|
|
218
|
+
|
|
183
219
|
## Recommended AlimTalk flow
|
|
184
220
|
|
|
185
221
|
1. Run provider-level diagnostics.
|