@camox/cli 0.27.0 → 0.28.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.
Files changed (2) hide show
  1. package/dist/index.mjs +18 -0
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -391,6 +391,13 @@ const parser$7 = command("blocks", or(command("types", object({
391
391
  project: projectFlag$3,
392
392
  production: productionFlag$2,
393
393
  json: jsonFlag$3
394
+ })), command("get-many", object({
395
+ command: constant("blocks.get-many"),
396
+ id: multiple(option("--id", integer({ metavar: "ID" })), { min: 1 }),
397
+ live: liveFlag$1,
398
+ project: projectFlag$3,
399
+ production: productionFlag$2,
400
+ json: jsonFlag$3
394
401
  })), command("create", object({
395
402
  command: constant("blocks.create"),
396
403
  pageId: option("--page-id", integer({ metavar: "ID" })),
@@ -487,6 +494,16 @@ async function handler$7(args) {
487
494
  production,
488
495
  outputMode
489
496
  });
497
+ case "blocks.get-many": return dispatch({
498
+ toolName: "getBlocks",
499
+ args: {
500
+ ids: [...args.id],
501
+ source: args.live ? "live" : "draft"
502
+ },
503
+ projectFlag,
504
+ production,
505
+ outputMode
506
+ });
490
507
  case "blocks.create": {
491
508
  const content = parseJsonFlag("--content", args.content);
492
509
  const settings = args.settings !== void 0 ? parseJsonFlag("--settings", args.settings) : void 0;
@@ -1204,6 +1221,7 @@ switch (result.command) {
1204
1221
  case "blocks.types":
1205
1222
  case "blocks.describe":
1206
1223
  case "blocks.get":
1224
+ case "blocks.get-many":
1207
1225
  case "blocks.create":
1208
1226
  case "blocks.edit":
1209
1227
  case "blocks.move":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/cli",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "bin": {
5
5
  "camox": "./dist/index.mjs"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^24.12.2",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
28
28
  "vite-plus": "latest",
29
- "@camox/api-contract": "0.27.0"
29
+ "@camox/api-contract": "0.28.0"
30
30
  },
31
31
  "nx": {
32
32
  "tags": [