@clickraft/cli 0.9.0 → 0.10.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/CHANGELOG.md CHANGED
@@ -1,8 +1,10 @@
1
- ## [0.9.0](https://github.com/clickraft/cli/compare/v0.8.9...v0.9.0) (2026-06-01)
1
+ ## [0.10.0](https://github.com/clickraft/cli/compare/v0.9.0...v0.10.0) (2026-06-18)
2
2
 
3
3
  ### Features
4
4
 
5
- * **mcp:** per-request bearer forwarding, 401 guard, and PRM endpoint ([15ab952](https://github.com/clickraft/cli/commit/15ab95204869273cb178516db6957b6b9d51f204))
5
+ * **cli:** emit multi reference images as { url } objects ([3594ae6](https://github.com/clickraft/cli/commit/3594ae6d2898c937976c7d54082bd496204a9d04))
6
+ * **mcp:** emit multi reference images as { url } objects ([d0e7ffe](https://github.com/clickraft/cli/commit/d0e7ffedd370eea9a3769c293975dbe212c39429))
7
+ * **sdk:** make referenceImages canonical { url, label? } object array ([772354b](https://github.com/clickraft/cli/commit/772354b2e76651c634e58e2ae0e9352336bf5ab5))
6
8
 
7
9
  # Changelog
8
10
 
package/dist/cli.js CHANGED
@@ -123,12 +123,16 @@ 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(z6.string().url()).max(8).optional(),
135
+ referenceImages: z6.array(ReferenceImageSchema).max(8).optional(),
132
136
  aspectRatio: z6.string().regex(/^\d+:\d+$/).optional(),
133
137
  resolution: z6.string().regex(/^\d+x\d+$/).optional(),
134
138
  durationSeconds: z6.number().int().min(1).max(60).optional(),
@@ -2094,7 +2098,7 @@ function buildRequestBody(args) {
2094
2098
  if (args.referenceImages.length === 1) {
2095
2099
  input.referenceImageUrl = args.referenceImages[0];
2096
2100
  } else if (args.referenceImages.length > 1) {
2097
- input.referenceImages = args.referenceImages;
2101
+ input.referenceImages = args.referenceImages.map((url) => ({ url }));
2098
2102
  }
2099
2103
  if (args.aspectRatio !== void 0) input.aspectRatio = args.aspectRatio;
2100
2104
  if (args.resolution !== void 0) input.resolution = args.resolution;