pixelkiln 0.102.2 → 0.103.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/dist/index.cjs CHANGED
@@ -1539,9 +1539,10 @@ var StyleObjectSchema = import_zod.z.object({
1539
1539
  /** `character` only, `standard` humanoid bases. A preset or multipliers; an asset may override it. */
1540
1540
  proportions: CharacterProportionsSchema.optional(),
1541
1541
  /**
1542
- * `character` only. How closely a `standard` base and a template loop
1543
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
1544
- * engines do not take it.
1542
+ * `character` and `pixflux`. How closely a `standard` character base
1543
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
1544
+ * PixelLab's default is 8. The v3 and pro character engines do not take
1545
+ * it. Part of a `pixflux` asset's identity only when set.
1545
1546
  */
1546
1547
  textGuidanceScale: import_zod.z.number().min(1).max(20).optional(),
1547
1548
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -3403,6 +3404,7 @@ var PixelLabClient = class {
3403
3404
  if (args.shading) body.shading = args.shading;
3404
3405
  if (args.detail) body.detail = args.detail;
3405
3406
  if (args.view) body.view = args.view;
3407
+ if (args.textGuidanceScale != null) body.text_guidance_scale = args.textGuidanceScale;
3406
3408
  if (args.seed != null) body.seed = args.seed;
3407
3409
  const res = validateResponse(
3408
3410
  PixfluxResponseSchema,
@@ -5334,6 +5336,8 @@ function specHash(spec, styleImageHashes, providerOptionIdentity = spec.provider
5334
5336
  terrainSideWallThickness: spec.terrainSideWallThickness,
5335
5337
  terrainSideWallPlacement: spec.terrainSideWallPlacement,
5336
5338
  terrainEnhance: spec.terrainEnhance,
5339
+ // Absent unless a pixflux style sets it, so every older hash stands.
5340
+ textGuidanceScale: spec.textGuidanceScale,
5337
5341
  terrainPlatformThickness: spec.terrainPlatformThickness,
5338
5342
  // Reference images enter as their bytes' hashes, never their paths.
5339
5343
  // The starting image by its bytes, with its strength only when set.
@@ -7873,6 +7877,7 @@ var PixelLabProvider = class _PixelLabProvider {
7873
7877
  detail: spec.detail,
7874
7878
  // Only a view the style states: the resolved default would steer every scene and banner top-down.
7875
7879
  view: spec.styleView,
7880
+ textGuidanceScale: spec.textGuidanceScale,
7876
7881
  seed: spec.seed,
7877
7882
  ...await initImageArgs(spec)
7878
7883
  });
@@ -12427,6 +12432,7 @@ async function resolveSpecs(loaded, filter) {
12427
12432
  size,
12428
12433
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
12429
12434
  ...style.view !== void 0 ? { styleView: style.view } : {},
12435
+ ...generator === "pixflux" && style.textGuidanceScale !== void 0 ? { textGuidanceScale: style.textGuidanceScale } : {},
12430
12436
  styleImagePaths: style.styleImages.map((s) => s.path),
12431
12437
  outline: style.outline,
12432
12438
  shading: style.shading,