pixelkiln 0.102.1 → 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.d.cts CHANGED
@@ -2359,9 +2359,10 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2359
2359
  hipWidth?: number | undefined;
2360
2360
  }>]>>;
2361
2361
  /**
2362
- * `character` only. How closely a `standard` base and a template loop
2363
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
2364
- * engines do not take it.
2362
+ * `character` and `pixflux`. How closely a `standard` character base
2363
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
2364
+ * PixelLab's default is 8. The v3 and pro character engines do not take
2365
+ * it. Part of a `pixflux` asset's identity only when set.
2365
2366
  */
2366
2367
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
2367
2368
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -3858,9 +3859,10 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
3858
3859
  hipWidth?: number | undefined;
3859
3860
  }>]>>;
3860
3861
  /**
3861
- * `character` only. How closely a `standard` base and a template loop
3862
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
3863
- * engines do not take it.
3862
+ * `character` and `pixflux`. How closely a `standard` character base
3863
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
3864
+ * PixelLab's default is 8. The v3 and pro character engines do not take
3865
+ * it. Part of a `pixflux` asset's identity only when set.
3864
3866
  */
3865
3867
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
3866
3868
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -7108,9 +7110,10 @@ declare const ManifestSchema: z.ZodObject<{
7108
7110
  hipWidth?: number | undefined;
7109
7111
  }>]>>;
7110
7112
  /**
7111
- * `character` only. How closely a `standard` base and a template loop
7112
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
7113
- * engines do not take it.
7113
+ * `character` and `pixflux`. How closely a `standard` character base
7114
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
7115
+ * PixelLab's default is 8. The v3 and pro character engines do not take
7116
+ * it. Part of a `pixflux` asset's identity only when set.
7114
7117
  */
7115
7118
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
7116
7119
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -10484,9 +10487,10 @@ declare const ManifestInputSchema: z.ZodObject<{
10484
10487
  hipWidth?: number | undefined;
10485
10488
  }>]>>;
10486
10489
  /**
10487
- * `character` only. How closely a `standard` base and a template loop
10488
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
10489
- * engines do not take it.
10490
+ * `character` and `pixflux`. How closely a `standard` character base
10491
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
10492
+ * PixelLab's default is 8. The v3 and pro character engines do not take
10493
+ * it. Part of a `pixflux` asset's identity only when set.
10490
10494
  */
10491
10495
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
10492
10496
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -17554,6 +17558,8 @@ interface ResolvedSpec {
17554
17558
  width: number;
17555
17559
  height: number;
17556
17560
  view: string;
17561
+ /** The style's own `view`, absent when `view` above is the generator's default. Not part of identity; `view` is. */
17562
+ styleView?: string;
17557
17563
  size: number;
17558
17564
  styleImagePaths: string[];
17559
17565
  outFile: string;
@@ -17663,6 +17669,8 @@ interface ResolvedSpec {
17663
17669
  terrainSideWallThickness?: number;
17664
17670
  terrainSideWallPlacement?: number;
17665
17671
  terrainEnhance?: boolean;
17672
+ /** `pixflux` only: prompt adherence, 1 to 20. Absent leaves PixelLab's 8. */
17673
+ textGuidanceScale?: number;
17666
17674
  terrainPlatformThickness?: number;
17667
17675
  terrainLowerWalkable?: boolean;
17668
17676
  terrainUpperWalkable?: boolean;
@@ -21562,6 +21570,10 @@ declare class PixelLabClient {
21562
21570
  outline?: string;
21563
21571
  shading?: string;
21564
21572
  detail?: string;
21573
+ /** Camera angle, weakly guiding: side, low top-down or high top-down. */
21574
+ view?: string;
21575
+ /** How closely to follow the description, 1 to 20; the API default is 8. */
21576
+ textGuidanceScale?: number;
21565
21577
  seed?: number;
21566
21578
  }): Promise<{
21567
21579
  png: Buffer;
package/dist/index.d.ts CHANGED
@@ -2359,9 +2359,10 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2359
2359
  hipWidth?: number | undefined;
2360
2360
  }>]>>;
2361
2361
  /**
2362
- * `character` only. How closely a `standard` base and a template loop
2363
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
2364
- * engines do not take it.
2362
+ * `character` and `pixflux`. How closely a `standard` character base
2363
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
2364
+ * PixelLab's default is 8. The v3 and pro character engines do not take
2365
+ * it. Part of a `pixflux` asset's identity only when set.
2365
2366
  */
2366
2367
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
2367
2368
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -3858,9 +3859,10 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
3858
3859
  hipWidth?: number | undefined;
3859
3860
  }>]>>;
3860
3861
  /**
3861
- * `character` only. How closely a `standard` base and a template loop
3862
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
3863
- * engines do not take it.
3862
+ * `character` and `pixflux`. How closely a `standard` character base
3863
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
3864
+ * PixelLab's default is 8. The v3 and pro character engines do not take
3865
+ * it. Part of a `pixflux` asset's identity only when set.
3864
3866
  */
3865
3867
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
3866
3868
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -7108,9 +7110,10 @@ declare const ManifestSchema: z.ZodObject<{
7108
7110
  hipWidth?: number | undefined;
7109
7111
  }>]>>;
7110
7112
  /**
7111
- * `character` only. How closely a `standard` base and a template loop
7112
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
7113
- * engines do not take it.
7113
+ * `character` and `pixflux`. How closely a `standard` character base
7114
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
7115
+ * PixelLab's default is 8. The v3 and pro character engines do not take
7116
+ * it. Part of a `pixflux` asset's identity only when set.
7114
7117
  */
7115
7118
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
7116
7119
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -10484,9 +10487,10 @@ declare const ManifestInputSchema: z.ZodObject<{
10484
10487
  hipWidth?: number | undefined;
10485
10488
  }>]>>;
10486
10489
  /**
10487
- * `character` only. How closely a `standard` base and a template loop
10488
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
10489
- * engines do not take it.
10490
+ * `character` and `pixflux`. How closely a `standard` character base
10491
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
10492
+ * PixelLab's default is 8. The v3 and pro character engines do not take
10493
+ * it. Part of a `pixflux` asset's identity only when set.
10490
10494
  */
10491
10495
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
10492
10496
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -17554,6 +17558,8 @@ interface ResolvedSpec {
17554
17558
  width: number;
17555
17559
  height: number;
17556
17560
  view: string;
17561
+ /** The style's own `view`, absent when `view` above is the generator's default. Not part of identity; `view` is. */
17562
+ styleView?: string;
17557
17563
  size: number;
17558
17564
  styleImagePaths: string[];
17559
17565
  outFile: string;
@@ -17663,6 +17669,8 @@ interface ResolvedSpec {
17663
17669
  terrainSideWallThickness?: number;
17664
17670
  terrainSideWallPlacement?: number;
17665
17671
  terrainEnhance?: boolean;
17672
+ /** `pixflux` only: prompt adherence, 1 to 20. Absent leaves PixelLab's 8. */
17673
+ textGuidanceScale?: number;
17666
17674
  terrainPlatformThickness?: number;
17667
17675
  terrainLowerWalkable?: boolean;
17668
17676
  terrainUpperWalkable?: boolean;
@@ -21562,6 +21570,10 @@ declare class PixelLabClient {
21562
21570
  outline?: string;
21563
21571
  shading?: string;
21564
21572
  detail?: string;
21573
+ /** Camera angle, weakly guiding: side, low top-down or high top-down. */
21574
+ view?: string;
21575
+ /** How closely to follow the description, 1 to 20; the API default is 8. */
21576
+ textGuidanceScale?: number;
21565
21577
  seed?: number;
21566
21578
  }): Promise<{
21567
21579
  png: Buffer;
package/dist/index.js CHANGED
@@ -1080,9 +1080,10 @@ var StyleObjectSchema = z.object({
1080
1080
  /** `character` only, `standard` humanoid bases. A preset or multipliers; an asset may override it. */
1081
1081
  proportions: CharacterProportionsSchema.optional(),
1082
1082
  /**
1083
- * `character` only. How closely a `standard` base and a template loop
1084
- * follow their text, 1 to 20; PixelLab's default is 8. The v3 and pro
1085
- * engines do not take it.
1083
+ * `character` and `pixflux`. How closely a `standard` character base
1084
+ * and a template loop, or a `pixflux` image, follow their text, 1 to 20;
1085
+ * PixelLab's default is 8. The v3 and pro character engines do not take
1086
+ * it. Part of a `pixflux` asset's identity only when set.
1086
1087
  */
1087
1088
  textGuidanceScale: z.number().min(1).max(20).optional(),
1088
1089
  /** `character` only. Draw `standard` bases and every loop in isometric view. */
@@ -2943,6 +2944,8 @@ var PixelLabClient = class {
2943
2944
  if (args.outline) body.outline = args.outline;
2944
2945
  if (args.shading) body.shading = args.shading;
2945
2946
  if (args.detail) body.detail = args.detail;
2947
+ if (args.view) body.view = args.view;
2948
+ if (args.textGuidanceScale != null) body.text_guidance_scale = args.textGuidanceScale;
2946
2949
  if (args.seed != null) body.seed = args.seed;
2947
2950
  const res = validateResponse(
2948
2951
  PixfluxResponseSchema,
@@ -4874,6 +4877,8 @@ function specHash(spec, styleImageHashes, providerOptionIdentity = spec.provider
4874
4877
  terrainSideWallThickness: spec.terrainSideWallThickness,
4875
4878
  terrainSideWallPlacement: spec.terrainSideWallPlacement,
4876
4879
  terrainEnhance: spec.terrainEnhance,
4880
+ // Absent unless a pixflux style sets it, so every older hash stands.
4881
+ textGuidanceScale: spec.textGuidanceScale,
4877
4882
  terrainPlatformThickness: spec.terrainPlatformThickness,
4878
4883
  // Reference images enter as their bytes' hashes, never their paths.
4879
4884
  // The starting image by its bytes, with its strength only when set.
@@ -6435,6 +6440,7 @@ var PixelLabProvider = class _PixelLabProvider {
6435
6440
  "highly detailed shading"
6436
6441
  ]);
6437
6442
  requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
6443
+ requirePixelLabOption("pixflux", "view", spec.styleView, ["side", "low top-down", "high top-down"]);
6438
6444
  }
6439
6445
  if (spec.generator === "terrain") {
6440
6446
  if (spec.outline) {
@@ -7410,6 +7416,9 @@ var PixelLabProvider = class _PixelLabProvider {
7410
7416
  outline: spec.outline,
7411
7417
  shading: spec.shading,
7412
7418
  detail: spec.detail,
7419
+ // Only a view the style states: the resolved default would steer every scene and banner top-down.
7420
+ view: spec.styleView,
7421
+ textGuidanceScale: spec.textGuidanceScale,
7413
7422
  seed: spec.seed,
7414
7423
  ...await initImageArgs(spec)
7415
7424
  });
@@ -11963,6 +11972,8 @@ async function resolveSpecs(loaded, filter) {
11963
11972
  height,
11964
11973
  size,
11965
11974
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
11975
+ ...style.view !== void 0 ? { styleView: style.view } : {},
11976
+ ...generator === "pixflux" && style.textGuidanceScale !== void 0 ? { textGuidanceScale: style.textGuidanceScale } : {},
11966
11977
  styleImagePaths: style.styleImages.map((s) => s.path),
11967
11978
  outline: style.outline,
11968
11979
  shading: style.shading,