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/cli.js +9 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -12
- package/dist/index.d.ts +20 -12
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/docs/GENERATORS.md +15 -0
- package/docs/MANIFEST.md +1 -1
- package/package.json +1 -1
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`
|
|
2363
|
-
* follow their text, 1 to 20;
|
|
2364
|
-
* engines do not take
|
|
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`
|
|
3862
|
-
* follow their text, 1 to 20;
|
|
3863
|
-
* engines do not take
|
|
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`
|
|
7112
|
-
* follow their text, 1 to 20;
|
|
7113
|
-
* engines do not take
|
|
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`
|
|
10488
|
-
* follow their text, 1 to 20;
|
|
10489
|
-
* engines do not take
|
|
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. */
|
|
@@ -17665,6 +17669,8 @@ interface ResolvedSpec {
|
|
|
17665
17669
|
terrainSideWallThickness?: number;
|
|
17666
17670
|
terrainSideWallPlacement?: number;
|
|
17667
17671
|
terrainEnhance?: boolean;
|
|
17672
|
+
/** `pixflux` only: prompt adherence, 1 to 20. Absent leaves PixelLab's 8. */
|
|
17673
|
+
textGuidanceScale?: number;
|
|
17668
17674
|
terrainPlatformThickness?: number;
|
|
17669
17675
|
terrainLowerWalkable?: boolean;
|
|
17670
17676
|
terrainUpperWalkable?: boolean;
|
|
@@ -21566,6 +21572,8 @@ declare class PixelLabClient {
|
|
|
21566
21572
|
detail?: string;
|
|
21567
21573
|
/** Camera angle, weakly guiding: side, low top-down or high top-down. */
|
|
21568
21574
|
view?: string;
|
|
21575
|
+
/** How closely to follow the description, 1 to 20; the API default is 8. */
|
|
21576
|
+
textGuidanceScale?: number;
|
|
21569
21577
|
seed?: number;
|
|
21570
21578
|
}): Promise<{
|
|
21571
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`
|
|
2363
|
-
* follow their text, 1 to 20;
|
|
2364
|
-
* engines do not take
|
|
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`
|
|
3862
|
-
* follow their text, 1 to 20;
|
|
3863
|
-
* engines do not take
|
|
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`
|
|
7112
|
-
* follow their text, 1 to 20;
|
|
7113
|
-
* engines do not take
|
|
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`
|
|
10488
|
-
* follow their text, 1 to 20;
|
|
10489
|
-
* engines do not take
|
|
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. */
|
|
@@ -17665,6 +17669,8 @@ interface ResolvedSpec {
|
|
|
17665
17669
|
terrainSideWallThickness?: number;
|
|
17666
17670
|
terrainSideWallPlacement?: number;
|
|
17667
17671
|
terrainEnhance?: boolean;
|
|
17672
|
+
/** `pixflux` only: prompt adherence, 1 to 20. Absent leaves PixelLab's 8. */
|
|
17673
|
+
textGuidanceScale?: number;
|
|
17668
17674
|
terrainPlatformThickness?: number;
|
|
17669
17675
|
terrainLowerWalkable?: boolean;
|
|
17670
17676
|
terrainUpperWalkable?: boolean;
|
|
@@ -21566,6 +21572,8 @@ declare class PixelLabClient {
|
|
|
21566
21572
|
detail?: string;
|
|
21567
21573
|
/** Camera angle, weakly guiding: side, low top-down or high top-down. */
|
|
21568
21574
|
view?: string;
|
|
21575
|
+
/** How closely to follow the description, 1 to 20; the API default is 8. */
|
|
21576
|
+
textGuidanceScale?: number;
|
|
21569
21577
|
seed?: number;
|
|
21570
21578
|
}): Promise<{
|
|
21571
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`
|
|
1084
|
-
* follow their text, 1 to 20;
|
|
1085
|
-
* engines do not take
|
|
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. */
|
|
@@ -2944,6 +2945,7 @@ var PixelLabClient = class {
|
|
|
2944
2945
|
if (args.shading) body.shading = args.shading;
|
|
2945
2946
|
if (args.detail) body.detail = args.detail;
|
|
2946
2947
|
if (args.view) body.view = args.view;
|
|
2948
|
+
if (args.textGuidanceScale != null) body.text_guidance_scale = args.textGuidanceScale;
|
|
2947
2949
|
if (args.seed != null) body.seed = args.seed;
|
|
2948
2950
|
const res = validateResponse(
|
|
2949
2951
|
PixfluxResponseSchema,
|
|
@@ -4875,6 +4877,8 @@ function specHash(spec, styleImageHashes, providerOptionIdentity = spec.provider
|
|
|
4875
4877
|
terrainSideWallThickness: spec.terrainSideWallThickness,
|
|
4876
4878
|
terrainSideWallPlacement: spec.terrainSideWallPlacement,
|
|
4877
4879
|
terrainEnhance: spec.terrainEnhance,
|
|
4880
|
+
// Absent unless a pixflux style sets it, so every older hash stands.
|
|
4881
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
4878
4882
|
terrainPlatformThickness: spec.terrainPlatformThickness,
|
|
4879
4883
|
// Reference images enter as their bytes' hashes, never their paths.
|
|
4880
4884
|
// The starting image by its bytes, with its strength only when set.
|
|
@@ -7414,6 +7418,7 @@ var PixelLabProvider = class _PixelLabProvider {
|
|
|
7414
7418
|
detail: spec.detail,
|
|
7415
7419
|
// Only a view the style states: the resolved default would steer every scene and banner top-down.
|
|
7416
7420
|
view: spec.styleView,
|
|
7421
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
7417
7422
|
seed: spec.seed,
|
|
7418
7423
|
...await initImageArgs(spec)
|
|
7419
7424
|
});
|
|
@@ -11968,6 +11973,7 @@ async function resolveSpecs(loaded, filter) {
|
|
|
11968
11973
|
size,
|
|
11969
11974
|
view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
|
|
11970
11975
|
...style.view !== void 0 ? { styleView: style.view } : {},
|
|
11976
|
+
...generator === "pixflux" && style.textGuidanceScale !== void 0 ? { textGuidanceScale: style.textGuidanceScale } : {},
|
|
11971
11977
|
styleImagePaths: style.styleImages.map((s) => s.path),
|
|
11972
11978
|
outline: style.outline,
|
|
11973
11979
|
shading: style.shading,
|