@clickraft/cli 0.9.0 → 0.10.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/CHANGELOG.md +4 -3
- package/dist/cli.js +14 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
## [0.
|
|
1
|
+
## [0.10.1](https://github.com/clickraft/cli/compare/v0.10.0...v0.10.1) (2026-06-19)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
* **
|
|
5
|
+
* **sdk:** mirror server resolution regex to accept p-token/K-token sizes ([efe4e93](https://github.com/clickraft/cli/commit/efe4e93cffc154e503b4ef1a428c1df65febd6d8))
|
|
6
|
+
* **sdk:** relax assets uploadUrl to z.string() for the dedup branch ([73fdaf5](https://github.com/clickraft/cli/commit/73fdaf5e0c8f59feadafda088d1dd035ca964a95))
|
|
6
7
|
|
|
7
8
|
# Changelog
|
|
8
9
|
|
package/dist/cli.js
CHANGED
|
@@ -123,14 +123,21 @@ var ProductReferenceSchema = z6.object({
|
|
|
123
123
|
id: z6.string().uuid(),
|
|
124
124
|
imageId: z6.string().uuid().optional()
|
|
125
125
|
}).strict();
|
|
126
|
+
var ReferenceImageSchema = z6.object({
|
|
127
|
+
url: z6.string().url(),
|
|
128
|
+
label: z6.string().max(80).optional()
|
|
129
|
+
}).strict();
|
|
126
130
|
var GenerateCreateRequestSchema = z6.object({
|
|
127
131
|
modelSlug: z6.string().min(1).max(100),
|
|
128
132
|
input: z6.object({
|
|
129
133
|
prompt: z6.string().max(1e4).optional(),
|
|
130
134
|
referenceImageUrl: z6.string().url().optional(),
|
|
131
|
-
referenceImages: z6.array(
|
|
135
|
+
referenceImages: z6.array(ReferenceImageSchema).max(8).optional(),
|
|
132
136
|
aspectRatio: z6.string().regex(/^\d+:\d+$/).optional(),
|
|
133
|
-
resolution: z6.string().regex(
|
|
137
|
+
resolution: z6.string().regex(
|
|
138
|
+
/^(\d+x\d+|\d{2,4}p|\d+[Kk])$/,
|
|
139
|
+
"resolution must match WxH (e.g. 1280x720), p-token (e.g. 720p), or K-token (e.g. 1K)"
|
|
140
|
+
).optional(),
|
|
134
141
|
durationSeconds: z6.number().int().min(1).max(60).optional(),
|
|
135
142
|
providerParams: z6.record(z6.string(), z6.unknown()).optional()
|
|
136
143
|
}).strict(),
|
|
@@ -184,7 +191,9 @@ var UploadRequestSchema = z7.object({
|
|
|
184
191
|
}).strict();
|
|
185
192
|
var UploadResponseSchema = z7.object({
|
|
186
193
|
assetId: z7.string().uuid(),
|
|
187
|
-
|
|
194
|
+
// `z.string()` (not `.url()`): the server emits `uploadUrl: ''` on the
|
|
195
|
+
// dedup branch (`deduplicated: true`) — see server `assets.ts` comment.
|
|
196
|
+
uploadUrl: z7.string(),
|
|
188
197
|
publicUrl: z7.string().url(),
|
|
189
198
|
deduplicated: z7.boolean()
|
|
190
199
|
}).strict();
|
|
@@ -2094,7 +2103,7 @@ function buildRequestBody(args) {
|
|
|
2094
2103
|
if (args.referenceImages.length === 1) {
|
|
2095
2104
|
input.referenceImageUrl = args.referenceImages[0];
|
|
2096
2105
|
} else if (args.referenceImages.length > 1) {
|
|
2097
|
-
input.referenceImages = args.referenceImages;
|
|
2106
|
+
input.referenceImages = args.referenceImages.map((url) => ({ url }));
|
|
2098
2107
|
}
|
|
2099
2108
|
if (args.aspectRatio !== void 0) input.aspectRatio = args.aspectRatio;
|
|
2100
2109
|
if (args.resolution !== void 0) input.resolution = args.resolution;
|
|
@@ -4277,7 +4286,7 @@ function renderCommandHelp(command) {
|
|
|
4277
4286
|
" Server enforces reference cap per model",
|
|
4278
4287
|
" --reference-image <v> URL or local path (repeatable, max 8)",
|
|
4279
4288
|
" --aspect-ratio <a:b> e.g. 16:9",
|
|
4280
|
-
" --resolution <
|
|
4289
|
+
" --resolution <size> e.g. 1024x768, 720p, 1K",
|
|
4281
4290
|
" --duration-seconds <n> For video/audio models (1-60)",
|
|
4282
4291
|
" --workflow-id <uuid> Attach to an existing workflow",
|
|
4283
4292
|
" --node-id <id> Attach to a specific node",
|