ckweb-cli 0.2.4 → 0.3.0
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/README.md +8 -1
- package/dist/index.js +2 -2
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -183,9 +183,16 @@ pnpm install
|
|
|
183
183
|
pnpm dev # Watch mode
|
|
184
184
|
pnpm build # Production build
|
|
185
185
|
pnpm lint # Type check
|
|
186
|
-
pnpm test # Run tests
|
|
186
|
+
pnpm test # Run unit + integration tests (hermetic, no key needed)
|
|
187
|
+
pnpm test:e2e # Run e2e tests against the real claudekit API
|
|
187
188
|
```
|
|
188
189
|
|
|
190
|
+
### E2E tests
|
|
191
|
+
|
|
192
|
+
`pnpm test:e2e` builds the CLI and exercises the published binary against the real claudekit API.
|
|
193
|
+
Requires both `CKWEB_API_KEY` and `CKWEB_ADMIN_API_KEY` in `.env` (or shell env).
|
|
194
|
+
These tests run on PRs and on `main` push, and gate the npm publish step in `release.yml`.
|
|
195
|
+
|
|
189
196
|
## Releasing
|
|
190
197
|
|
|
191
198
|
### Auto bump (recommended)
|
package/dist/index.js
CHANGED
|
@@ -197,7 +197,7 @@ async function fetchApi(method, path2, options = {}) {
|
|
|
197
197
|
}
|
|
198
198
|
const headers = {
|
|
199
199
|
"Content-Type": "application/json",
|
|
200
|
-
"User-Agent": `ckweb-cli/${"0.
|
|
200
|
+
"User-Agent": `ckweb-cli/${"0.3.0"}`
|
|
201
201
|
};
|
|
202
202
|
if (apiKey) {
|
|
203
203
|
headers["x-api-key"] = apiKey;
|
|
@@ -2333,7 +2333,7 @@ function registerAdminCommand(program2) {
|
|
|
2333
2333
|
// src/index.ts
|
|
2334
2334
|
loadDotenvFiles();
|
|
2335
2335
|
var program = new Command();
|
|
2336
|
-
program.name("ckweb").description("CLI for interacting with ClaudeKit.cc API").version("0.
|
|
2336
|
+
program.name("ckweb").description("CLI for interacting with ClaudeKit.cc API").version("0.3.0");
|
|
2337
2337
|
program.option("--json", "Output as JSON").option("--table", "Output as table").option("--quiet", "Minimal output");
|
|
2338
2338
|
registerAuthCommand(program);
|
|
2339
2339
|
registerHealthCommand(program);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ckweb-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CLI tool for interacting with ClaudeKit.cc API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"start": "node dist/index.js",
|
|
14
14
|
"test": "vitest run",
|
|
15
15
|
"test:watch": "vitest",
|
|
16
|
-
"test:coverage": "vitest run --coverage"
|
|
16
|
+
"test:coverage": "vitest run --coverage",
|
|
17
|
+
"test:e2e": "pnpm build && vitest run --config vitest.e2e.config.ts"
|
|
17
18
|
},
|
|
18
19
|
"keywords": [
|
|
19
20
|
"claudekit",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/node": "^22.13.0",
|
|
49
50
|
"@vitest/coverage-v8": "^4.0.18",
|
|
51
|
+
"execa": "^9.5.2",
|
|
50
52
|
"tsup": "^8.4.0",
|
|
51
53
|
"typescript": "^5.7.0",
|
|
52
54
|
"vitest": "^4.0.18"
|