@camox/cli 0.27.0 → 0.28.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/dist/index.mjs +18 -0
- package/package.json +9 -9
- package/templates/default/package.json +16 -16
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.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"camox": "./dist/index.mjs"
|
|
6
6
|
},
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@clack/prompts": "^0.10.0",
|
|
18
|
-
"@optique/core": "
|
|
19
|
-
"@optique/run": "
|
|
20
|
-
"@orpc/client": "^1.
|
|
21
|
-
"@orpc/server": "^1.
|
|
18
|
+
"@optique/core": "^1.0.2",
|
|
19
|
+
"@optique/run": "^1.0.2",
|
|
20
|
+
"@orpc/client": "^1.14.3",
|
|
21
|
+
"@orpc/server": "^1.14.3",
|
|
22
22
|
"slugify": "^1.6.9",
|
|
23
|
-
"zod": "^4.3
|
|
23
|
+
"zod": "^4.4.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^24.12.
|
|
26
|
+
"@types/node": "^24.12.4",
|
|
27
27
|
"@typescript/native-preview": "7.0.0-dev.20260412.1",
|
|
28
|
-
"vite-plus": "
|
|
29
|
-
"@camox/api-contract": "0.
|
|
28
|
+
"vite-plus": "^0.1.21",
|
|
29
|
+
"@camox/api-contract": "0.28.1"
|
|
30
30
|
},
|
|
31
31
|
"nx": {
|
|
32
32
|
"tags": [
|
|
@@ -12,36 +12,36 @@
|
|
|
12
12
|
"check": "vp check"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@base-ui/react": "^1.4.
|
|
15
|
+
"@base-ui/react": "^1.4.1",
|
|
16
16
|
"@fontsource-variable/inter": "^5.2.8",
|
|
17
17
|
"@fontsource-variable/noto-serif": "^5.2.9",
|
|
18
|
-
"@tailwindcss/vite": "^4.
|
|
19
|
-
"@tanstack/react-query": "^5.
|
|
20
|
-
"@tanstack/react-router": "^1.
|
|
21
|
-
"@tanstack/react-router-ssr-query": "^1.
|
|
22
|
-
"@tanstack/react-start": "^1.
|
|
23
|
-
"@tanstack/router-plugin": "^1.
|
|
18
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
19
|
+
"@tanstack/react-query": "^5.100.11",
|
|
20
|
+
"@tanstack/react-router": "^1.170.4",
|
|
21
|
+
"@tanstack/react-router-ssr-query": "^1.167.0",
|
|
22
|
+
"@tanstack/react-start": "^1.168.6",
|
|
23
|
+
"@tanstack/router-plugin": "^1.168.6",
|
|
24
24
|
"camox": "workspace:*",
|
|
25
25
|
"class-variance-authority": "^0.7.1",
|
|
26
26
|
"clsx": "^2.1.1",
|
|
27
27
|
"lucide-react": "^0.476.0",
|
|
28
28
|
"nitro": "3.0.260311-beta",
|
|
29
|
-
"react": "^19.2.
|
|
30
|
-
"react-dom": "^19.2.
|
|
31
|
-
"shadcn": "^4.
|
|
32
|
-
"tailwind-merge": "^3.
|
|
33
|
-
"tailwindcss": "^4.0
|
|
29
|
+
"react": "^19.2.6",
|
|
30
|
+
"react-dom": "^19.2.6",
|
|
31
|
+
"shadcn": "^4.7.0",
|
|
32
|
+
"tailwind-merge": "^3.6.0",
|
|
33
|
+
"tailwindcss": "^4.3.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.29.0",
|
|
37
|
-
"@rolldown/plugin-babel": "^0.2.
|
|
37
|
+
"@rolldown/plugin-babel": "^0.2.3",
|
|
38
38
|
"@types/babel__core": "^7.20.5",
|
|
39
39
|
"@types/react": "^19.0.8",
|
|
40
40
|
"@types/react-dom": "^19.2.3",
|
|
41
|
-
"@typescript/native-preview": "
|
|
42
|
-
"@vitejs/plugin-react": "^6.0.
|
|
41
|
+
"@typescript/native-preview": "7.0.0-dev.20260519.1",
|
|
42
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
43
43
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
44
44
|
"tw-animate-css": "^1.4.0",
|
|
45
|
-
"vite-plus": "^0.1.
|
|
45
|
+
"vite-plus": "^0.1.21"
|
|
46
46
|
}
|
|
47
47
|
}
|