@k-msg/cli 0.9.10 → 0.9.11

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @k-msg/cli
2
2
 
3
+ ## 0.9.11 — 2026-07-10
4
+
5
+ ### Patch changes
6
+
7
+ - [0fd984f](https://github.com/k-otp/k-msg/commit/0fd984fde13ff79e289cf30ac9b157acd906f20d) Improve CLI first-run onboarding and completion UX by fixing npm checksum installs, promoting global config usage, tightening Kakao alias validation, and clarifying interactive config flows. — Thanks @imjlk!
8
+ - Updated dependencies: channel@0.29.8, core@0.29.8, messaging@0.29.8, provider@0.29.8, template@0.29.8, k-msg@0.29.8
9
+
3
10
  ## 0.9.10 — 2026-06-29
4
11
 
5
12
  ### Patch changes
package/README.md CHANGED
@@ -88,10 +88,11 @@ Default config path:
88
88
  Override:
89
89
 
90
90
  ```bash
91
+ k-msg --config /path/to/k-msg.config.json providers list
91
92
  k-msg providers list --config /path/to/k-msg.config.json
92
93
  ```
93
94
 
94
- Note: `--config` is a subcommand option in the current CLI (for example: `providers`, `sms`, `alimtalk`).
95
+ `--config` can be passed either before the command path or as a command-local option.
95
96
 
96
97
  Example file: `apps/cli/k-msg.config.example.json`
97
98
 
@@ -103,10 +104,13 @@ Schema URLs:
103
104
  Initialize config:
104
105
 
105
106
  ```bash
106
- # default: interactive wizard (TTY uses prompt-based setup)
107
+ # default: interactive wizard on a TTY, mock-only template in non-interactive shells
107
108
  k-msg config init
108
109
 
109
- # force full template (also auto-used in non-interactive environments)
110
+ # force a local mock-only starter config
111
+ k-msg config init --template mock-only
112
+
113
+ # force the full multi-provider template
110
114
  k-msg config init --template full
111
115
 
112
116
  # add providers incrementally
@@ -114,13 +118,15 @@ k-msg config init --template full
114
118
  k-msg config provider add
115
119
  k-msg config provider add iwinv
116
120
 
117
- # non-interactive environments stay on the validation/template path
121
+ # explicit interactive mode requires a TTY
122
+ k-msg config init --template interactive
118
123
  ```
119
124
 
120
125
  ### `env:` substitution
121
126
 
122
127
  Any string value like `"env:NAME"` is replaced with the `NAME` environment variable at runtime.
123
- If the env var is missing/empty, commands that need runtime providers will fail with exit code `2`.
128
+ If the env var is missing/empty, commands that need that provider will fail with exit code `2`.
129
+ For a first local smoke test, prefer `k-msg config init --template mock-only`.
124
130
 
125
131
  ### Provider send value guide
126
132
 
package/bin/k-msg.js CHANGED
@@ -135,6 +135,10 @@ function parseChecksums(text) {
135
135
  if (!m) continue;
136
136
  const [, sum, file] = m;
137
137
  out.set(file, sum);
138
+ const normalizedFile = file.replace(/^\.\/+/, "");
139
+ if (normalizedFile !== file) {
140
+ out.set(normalizedFile, sum);
141
+ }
138
142
  }
139
143
  return out;
140
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/cli",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "private": false,
5
5
  "description": "k-msg CLI (prebuilt binaries via GitHub Releases)",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "build:native": "bun run scripts/build-runtime.ts --targets native",
28
28
  "build:js": "bun run generate && bun build src/k-msg.ts --outdir=dist --format=esm --target=bun",
29
29
  "dev": "bun run generate && bun --watch src/k-msg.ts",
30
- "typecheck": "bun run generate && tsc --noEmit -p tsconfig.json",
30
+ "typecheck": "bun run generate && ttsc --noEmit -p tsconfig.json",
31
31
  "test": "bun run generate && bun test",
32
32
  "schema:generate": "bun run scripts/generate-config-schema.ts",
33
33
  "schema:check": "bun run scripts/generate-config-schema.ts --check",
@@ -35,18 +35,19 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@gunshi/plugin-completion": "0.35.1",
38
- "@k-msg/channel": "0.29.6",
39
- "@k-msg/core": "0.29.6",
40
- "@k-msg/messaging": "0.29.6",
41
- "@k-msg/provider": "0.29.6",
42
- "@k-msg/template": "0.29.6",
38
+ "@k-msg/channel": "0.29.7",
39
+ "@k-msg/core": "0.29.7",
40
+ "@k-msg/messaging": "0.29.7",
41
+ "@k-msg/provider": "0.29.7",
42
+ "@k-msg/template": "0.29.7",
43
43
  "@types/bun": "^1.3.14",
44
44
  "@types/node": "^26.0.1",
45
45
  "gunshi": "0.35.1",
46
- "k-msg": "0.29.6",
46
+ "k-msg": "0.29.7",
47
47
  "solapi": "^6.0.1",
48
- "typescript": "^6.0.3",
49
- "zod": "^4.0.14"
48
+ "ttsc": "^0.18.1",
49
+ "typescript": "^7.0.2",
50
+ "zod": "^4.4.3"
50
51
  },
51
52
  "keywords": [
52
53
  "alimtalk",