ckweb-cli 0.6.0-beta.0 → 0.6.0-beta.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/README.md +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ Install beta builds with:
|
|
|
237
237
|
npm install -g ckweb-cli@beta
|
|
238
238
|
```
|
|
239
239
|
|
|
240
|
-
Current status:
|
|
240
|
+
Current status: verified on `dev` by Beta Release run `26148322508`, published as `ckweb-cli@0.6.0-beta.0` with npm dist-tag `beta`.
|
|
241
241
|
- no relevant commits → skipped
|
|
242
242
|
|
|
243
243
|
The workflow bumps `package.json`, creates `chore(release): vX.Y.Z` commit + tag,
|
package/dist/index.js
CHANGED
|
@@ -211,7 +211,7 @@ function buildUrl(path2, params) {
|
|
|
211
211
|
}
|
|
212
212
|
function buildHeaders(apiKey, hasBody) {
|
|
213
213
|
const headers = {
|
|
214
|
-
"User-Agent": `ckweb-cli/${"0.6.0-beta.
|
|
214
|
+
"User-Agent": `ckweb-cli/${"0.6.0-beta.1"}`
|
|
215
215
|
};
|
|
216
216
|
if (hasBody) {
|
|
217
217
|
headers["Content-Type"] = "application/json";
|
|
@@ -1494,6 +1494,11 @@ function registerAdminOrdersCommand(admin) {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
|
|
1496
1496
|
// src/commands/admin/admin-users.ts
|
|
1497
|
+
function validateUserUuid(id) {
|
|
1498
|
+
if (!/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(id)) {
|
|
1499
|
+
throw new CliError(`Invalid user ID: "${id}". Expected UUID format.`);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1497
1502
|
function registerAdminUsersCommand(admin) {
|
|
1498
1503
|
const users = admin.command("users").description("Admin user management");
|
|
1499
1504
|
users.command("get <id>").description("Get user details").action(async function(id) {
|
|
@@ -1584,6 +1589,7 @@ function registerAdminUsersCommand(admin) {
|
|
|
1584
1589
|
try {
|
|
1585
1590
|
ensureAdminAuth();
|
|
1586
1591
|
validateId(id, "user ID");
|
|
1592
|
+
validateUserUuid(id);
|
|
1587
1593
|
const { reason } = this.opts();
|
|
1588
1594
|
if (!reason || String(reason).trim().length === 0) {
|
|
1589
1595
|
throw new CliError("--reason is required.");
|
|
@@ -3127,7 +3133,7 @@ function registerAdminCommand(program2) {
|
|
|
3127
3133
|
// src/index.ts
|
|
3128
3134
|
loadDotenvFiles();
|
|
3129
3135
|
var program = new Command();
|
|
3130
|
-
program.name("ckweb").description("CLI for interacting with ClaudeKit.cc API").version("0.6.0-beta.
|
|
3136
|
+
program.name("ckweb").description("CLI for interacting with ClaudeKit.cc API").version("0.6.0-beta.1");
|
|
3131
3137
|
program.option("--json", "Output as JSON").option("--table", "Output as table").option("--quiet", "Minimal output");
|
|
3132
3138
|
registerAuthCommand(program);
|
|
3133
3139
|
registerHealthCommand(program);
|