pixelkiln 0.148.0 → 0.149.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
@@ -1645,6 +1645,13 @@ declare const CharacterLayerSchema: z.ZodEffects<z.ZodObject<{
1645
1645
  skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1646
1646
  /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
1647
1647
  key: z.ZodOptional<z.ZodString>;
1648
+ /**
1649
+ * Key every opaque pixel inside the mask, whatever its colour, not only
1650
+ * skin. For a base that wears underwear (or anything else it cannot be
1651
+ * drawn without): what it wears is body to dress over, so the outfit
1652
+ * covers it instead of being drawn around it. Default false.
1653
+ */
1654
+ cover: z.ZodOptional<z.ZodBoolean>;
1648
1655
  /**
1649
1656
  * Remove animation ghosts from the loops before dressing them, judged
1650
1657
  * against the stills among `of` (bases and states). Default true; it has
@@ -1781,6 +1788,7 @@ declare const CharacterLayerSchema: z.ZodEffects<z.ZodObject<{
1781
1788
  mask?: string | undefined;
1782
1789
  keyed?: string | undefined;
1783
1790
  skin?: string[] | undefined;
1791
+ cover?: boolean | undefined;
1784
1792
  clean?: boolean | undefined;
1785
1793
  columns?: number | undefined;
1786
1794
  region?: "body" | "head" | "around" | undefined;
@@ -1805,6 +1813,7 @@ declare const CharacterLayerSchema: z.ZodEffects<z.ZodObject<{
1805
1813
  mask?: string | undefined;
1806
1814
  keyed?: string | undefined;
1807
1815
  skin?: string[] | undefined;
1816
+ cover?: boolean | undefined;
1808
1817
  clean?: boolean | undefined;
1809
1818
  columns?: number | undefined;
1810
1819
  region?: "body" | "head" | "around" | undefined;
@@ -1829,6 +1838,7 @@ declare const CharacterLayerSchema: z.ZodEffects<z.ZodObject<{
1829
1838
  mask?: string | undefined;
1830
1839
  keyed?: string | undefined;
1831
1840
  skin?: string[] | undefined;
1841
+ cover?: boolean | undefined;
1832
1842
  clean?: boolean | undefined;
1833
1843
  columns?: number | undefined;
1834
1844
  region?: "body" | "head" | "around" | undefined;
@@ -1853,6 +1863,7 @@ declare const CharacterLayerSchema: z.ZodEffects<z.ZodObject<{
1853
1863
  mask?: string | undefined;
1854
1864
  keyed?: string | undefined;
1855
1865
  skin?: string[] | undefined;
1866
+ cover?: boolean | undefined;
1856
1867
  clean?: boolean | undefined;
1857
1868
  columns?: number | undefined;
1858
1869
  region?: "body" | "head" | "around" | undefined;
@@ -2116,6 +2127,8 @@ interface ResolvedCharacter {
2116
2127
  };
2117
2128
  skin?: string[];
2118
2129
  key?: string;
2130
+ /** Key everything inside the mask; absent unless set, so a layer made before it existed keeps its identity. */
2131
+ cover?: true;
2119
2132
  clean: boolean;
2120
2133
  columns?: number;
2121
2134
  region: "body" | "head" | "around";
@@ -6417,6 +6430,13 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6417
6430
  skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6418
6431
  /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
6419
6432
  key: z.ZodOptional<z.ZodString>;
6433
+ /**
6434
+ * Key every opaque pixel inside the mask, whatever its colour, not only
6435
+ * skin. For a base that wears underwear (or anything else it cannot be
6436
+ * drawn without): what it wears is body to dress over, so the outfit
6437
+ * covers it instead of being drawn around it. Default false.
6438
+ */
6439
+ cover: z.ZodOptional<z.ZodBoolean>;
6420
6440
  /**
6421
6441
  * Remove animation ghosts from the loops before dressing them, judged
6422
6442
  * against the stills among `of` (bases and states). Default true; it has
@@ -6553,6 +6573,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6553
6573
  mask?: string | undefined;
6554
6574
  keyed?: string | undefined;
6555
6575
  skin?: string[] | undefined;
6576
+ cover?: boolean | undefined;
6556
6577
  clean?: boolean | undefined;
6557
6578
  columns?: number | undefined;
6558
6579
  region?: "body" | "head" | "around" | undefined;
@@ -6577,6 +6598,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6577
6598
  mask?: string | undefined;
6578
6599
  keyed?: string | undefined;
6579
6600
  skin?: string[] | undefined;
6601
+ cover?: boolean | undefined;
6580
6602
  clean?: boolean | undefined;
6581
6603
  columns?: number | undefined;
6582
6604
  region?: "body" | "head" | "around" | undefined;
@@ -6601,6 +6623,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6601
6623
  mask?: string | undefined;
6602
6624
  keyed?: string | undefined;
6603
6625
  skin?: string[] | undefined;
6626
+ cover?: boolean | undefined;
6604
6627
  clean?: boolean | undefined;
6605
6628
  columns?: number | undefined;
6606
6629
  region?: "body" | "head" | "around" | undefined;
@@ -6625,6 +6648,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6625
6648
  mask?: string | undefined;
6626
6649
  keyed?: string | undefined;
6627
6650
  skin?: string[] | undefined;
6651
+ cover?: boolean | undefined;
6628
6652
  clean?: boolean | undefined;
6629
6653
  columns?: number | undefined;
6630
6654
  region?: "body" | "head" | "around" | undefined;
@@ -7131,6 +7155,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
7131
7155
  mask?: string | undefined;
7132
7156
  keyed?: string | undefined;
7133
7157
  skin?: string[] | undefined;
7158
+ cover?: boolean | undefined;
7134
7159
  clean?: boolean | undefined;
7135
7160
  columns?: number | undefined;
7136
7161
  region?: "body" | "head" | "around" | undefined;
@@ -7345,6 +7370,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
7345
7370
  mask?: string | undefined;
7346
7371
  keyed?: string | undefined;
7347
7372
  skin?: string[] | undefined;
7373
+ cover?: boolean | undefined;
7348
7374
  clean?: boolean | undefined;
7349
7375
  columns?: number | undefined;
7350
7376
  region?: "body" | "head" | "around" | undefined;
@@ -7569,6 +7595,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
7569
7595
  mask?: string | undefined;
7570
7596
  keyed?: string | undefined;
7571
7597
  skin?: string[] | undefined;
7598
+ cover?: boolean | undefined;
7572
7599
  clean?: boolean | undefined;
7573
7600
  columns?: number | undefined;
7574
7601
  region?: "body" | "head" | "around" | undefined;
@@ -7783,6 +7810,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
7783
7810
  mask?: string | undefined;
7784
7811
  keyed?: string | undefined;
7785
7812
  skin?: string[] | undefined;
7813
+ cover?: boolean | undefined;
7786
7814
  clean?: boolean | undefined;
7787
7815
  columns?: number | undefined;
7788
7816
  region?: "body" | "head" | "around" | undefined;
@@ -10428,6 +10456,13 @@ declare const ManifestSchema: z.ZodObject<{
10428
10456
  skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10429
10457
  /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
10430
10458
  key: z.ZodOptional<z.ZodString>;
10459
+ /**
10460
+ * Key every opaque pixel inside the mask, whatever its colour, not only
10461
+ * skin. For a base that wears underwear (or anything else it cannot be
10462
+ * drawn without): what it wears is body to dress over, so the outfit
10463
+ * covers it instead of being drawn around it. Default false.
10464
+ */
10465
+ cover: z.ZodOptional<z.ZodBoolean>;
10431
10466
  /**
10432
10467
  * Remove animation ghosts from the loops before dressing them, judged
10433
10468
  * against the stills among `of` (bases and states). Default true; it has
@@ -10564,6 +10599,7 @@ declare const ManifestSchema: z.ZodObject<{
10564
10599
  mask?: string | undefined;
10565
10600
  keyed?: string | undefined;
10566
10601
  skin?: string[] | undefined;
10602
+ cover?: boolean | undefined;
10567
10603
  clean?: boolean | undefined;
10568
10604
  columns?: number | undefined;
10569
10605
  region?: "body" | "head" | "around" | undefined;
@@ -10588,6 +10624,7 @@ declare const ManifestSchema: z.ZodObject<{
10588
10624
  mask?: string | undefined;
10589
10625
  keyed?: string | undefined;
10590
10626
  skin?: string[] | undefined;
10627
+ cover?: boolean | undefined;
10591
10628
  clean?: boolean | undefined;
10592
10629
  columns?: number | undefined;
10593
10630
  region?: "body" | "head" | "around" | undefined;
@@ -10612,6 +10649,7 @@ declare const ManifestSchema: z.ZodObject<{
10612
10649
  mask?: string | undefined;
10613
10650
  keyed?: string | undefined;
10614
10651
  skin?: string[] | undefined;
10652
+ cover?: boolean | undefined;
10615
10653
  clean?: boolean | undefined;
10616
10654
  columns?: number | undefined;
10617
10655
  region?: "body" | "head" | "around" | undefined;
@@ -10636,6 +10674,7 @@ declare const ManifestSchema: z.ZodObject<{
10636
10674
  mask?: string | undefined;
10637
10675
  keyed?: string | undefined;
10638
10676
  skin?: string[] | undefined;
10677
+ cover?: boolean | undefined;
10639
10678
  clean?: boolean | undefined;
10640
10679
  columns?: number | undefined;
10641
10680
  region?: "body" | "head" | "around" | undefined;
@@ -11142,6 +11181,7 @@ declare const ManifestSchema: z.ZodObject<{
11142
11181
  mask?: string | undefined;
11143
11182
  keyed?: string | undefined;
11144
11183
  skin?: string[] | undefined;
11184
+ cover?: boolean | undefined;
11145
11185
  clean?: boolean | undefined;
11146
11186
  columns?: number | undefined;
11147
11187
  region?: "body" | "head" | "around" | undefined;
@@ -11356,6 +11396,7 @@ declare const ManifestSchema: z.ZodObject<{
11356
11396
  mask?: string | undefined;
11357
11397
  keyed?: string | undefined;
11358
11398
  skin?: string[] | undefined;
11399
+ cover?: boolean | undefined;
11359
11400
  clean?: boolean | undefined;
11360
11401
  columns?: number | undefined;
11361
11402
  region?: "body" | "head" | "around" | undefined;
@@ -11580,6 +11621,7 @@ declare const ManifestSchema: z.ZodObject<{
11580
11621
  mask?: string | undefined;
11581
11622
  keyed?: string | undefined;
11582
11623
  skin?: string[] | undefined;
11624
+ cover?: boolean | undefined;
11583
11625
  clean?: boolean | undefined;
11584
11626
  columns?: number | undefined;
11585
11627
  region?: "body" | "head" | "around" | undefined;
@@ -11794,6 +11836,7 @@ declare const ManifestSchema: z.ZodObject<{
11794
11836
  mask?: string | undefined;
11795
11837
  keyed?: string | undefined;
11796
11838
  skin?: string[] | undefined;
11839
+ cover?: boolean | undefined;
11797
11840
  clean?: boolean | undefined;
11798
11841
  columns?: number | undefined;
11799
11842
  region?: "body" | "head" | "around" | undefined;
@@ -12524,6 +12567,7 @@ declare const ManifestSchema: z.ZodObject<{
12524
12567
  mask?: string | undefined;
12525
12568
  keyed?: string | undefined;
12526
12569
  skin?: string[] | undefined;
12570
+ cover?: boolean | undefined;
12527
12571
  clean?: boolean | undefined;
12528
12572
  columns?: number | undefined;
12529
12573
  region?: "body" | "head" | "around" | undefined;
@@ -12889,6 +12933,7 @@ declare const ManifestSchema: z.ZodObject<{
12889
12933
  mask?: string | undefined;
12890
12934
  keyed?: string | undefined;
12891
12935
  skin?: string[] | undefined;
12936
+ cover?: boolean | undefined;
12892
12937
  clean?: boolean | undefined;
12893
12938
  columns?: number | undefined;
12894
12939
  region?: "body" | "head" | "around" | undefined;
@@ -15280,6 +15325,13 @@ declare const ManifestInputSchema: z.ZodObject<{
15280
15325
  skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15281
15326
  /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
15282
15327
  key: z.ZodOptional<z.ZodString>;
15328
+ /**
15329
+ * Key every opaque pixel inside the mask, whatever its colour, not only
15330
+ * skin. For a base that wears underwear (or anything else it cannot be
15331
+ * drawn without): what it wears is body to dress over, so the outfit
15332
+ * covers it instead of being drawn around it. Default false.
15333
+ */
15334
+ cover: z.ZodOptional<z.ZodBoolean>;
15283
15335
  /**
15284
15336
  * Remove animation ghosts from the loops before dressing them, judged
15285
15337
  * against the stills among `of` (bases and states). Default true; it has
@@ -15416,6 +15468,7 @@ declare const ManifestInputSchema: z.ZodObject<{
15416
15468
  mask?: string | undefined;
15417
15469
  keyed?: string | undefined;
15418
15470
  skin?: string[] | undefined;
15471
+ cover?: boolean | undefined;
15419
15472
  clean?: boolean | undefined;
15420
15473
  columns?: number | undefined;
15421
15474
  region?: "body" | "head" | "around" | undefined;
@@ -15440,6 +15493,7 @@ declare const ManifestInputSchema: z.ZodObject<{
15440
15493
  mask?: string | undefined;
15441
15494
  keyed?: string | undefined;
15442
15495
  skin?: string[] | undefined;
15496
+ cover?: boolean | undefined;
15443
15497
  clean?: boolean | undefined;
15444
15498
  columns?: number | undefined;
15445
15499
  region?: "body" | "head" | "around" | undefined;
@@ -15464,6 +15518,7 @@ declare const ManifestInputSchema: z.ZodObject<{
15464
15518
  mask?: string | undefined;
15465
15519
  keyed?: string | undefined;
15466
15520
  skin?: string[] | undefined;
15521
+ cover?: boolean | undefined;
15467
15522
  clean?: boolean | undefined;
15468
15523
  columns?: number | undefined;
15469
15524
  region?: "body" | "head" | "around" | undefined;
@@ -15488,6 +15543,7 @@ declare const ManifestInputSchema: z.ZodObject<{
15488
15543
  mask?: string | undefined;
15489
15544
  keyed?: string | undefined;
15490
15545
  skin?: string[] | undefined;
15546
+ cover?: boolean | undefined;
15491
15547
  clean?: boolean | undefined;
15492
15548
  columns?: number | undefined;
15493
15549
  region?: "body" | "head" | "around" | undefined;
@@ -15994,6 +16050,7 @@ declare const ManifestInputSchema: z.ZodObject<{
15994
16050
  mask?: string | undefined;
15995
16051
  keyed?: string | undefined;
15996
16052
  skin?: string[] | undefined;
16053
+ cover?: boolean | undefined;
15997
16054
  clean?: boolean | undefined;
15998
16055
  columns?: number | undefined;
15999
16056
  region?: "body" | "head" | "around" | undefined;
@@ -16208,6 +16265,7 @@ declare const ManifestInputSchema: z.ZodObject<{
16208
16265
  mask?: string | undefined;
16209
16266
  keyed?: string | undefined;
16210
16267
  skin?: string[] | undefined;
16268
+ cover?: boolean | undefined;
16211
16269
  clean?: boolean | undefined;
16212
16270
  columns?: number | undefined;
16213
16271
  region?: "body" | "head" | "around" | undefined;
@@ -16432,6 +16490,7 @@ declare const ManifestInputSchema: z.ZodObject<{
16432
16490
  mask?: string | undefined;
16433
16491
  keyed?: string | undefined;
16434
16492
  skin?: string[] | undefined;
16493
+ cover?: boolean | undefined;
16435
16494
  clean?: boolean | undefined;
16436
16495
  columns?: number | undefined;
16437
16496
  region?: "body" | "head" | "around" | undefined;
@@ -16646,6 +16705,7 @@ declare const ManifestInputSchema: z.ZodObject<{
16646
16705
  mask?: string | undefined;
16647
16706
  keyed?: string | undefined;
16648
16707
  skin?: string[] | undefined;
16708
+ cover?: boolean | undefined;
16649
16709
  clean?: boolean | undefined;
16650
16710
  columns?: number | undefined;
16651
16711
  region?: "body" | "head" | "around" | undefined;
@@ -17481,6 +17541,7 @@ declare const ManifestInputSchema: z.ZodObject<{
17481
17541
  mask?: string | undefined;
17482
17542
  keyed?: string | undefined;
17483
17543
  skin?: string[] | undefined;
17544
+ cover?: boolean | undefined;
17484
17545
  clean?: boolean | undefined;
17485
17546
  columns?: number | undefined;
17486
17547
  region?: "body" | "head" | "around" | undefined;
@@ -17952,6 +18013,7 @@ declare const ManifestInputSchema: z.ZodObject<{
17952
18013
  mask?: string | undefined;
17953
18014
  keyed?: string | undefined;
17954
18015
  skin?: string[] | undefined;
18016
+ cover?: boolean | undefined;
17955
18017
  clean?: boolean | undefined;
17956
18018
  columns?: number | undefined;
17957
18019
  region?: "body" | "head" | "around" | undefined;
@@ -27419,6 +27481,20 @@ declare class PixelLabMcpClient {
27419
27481
  }
27420
27482
  declare function mcpClientFromEnv(): PixelLabMcpClient;
27421
27483
 
27484
+ interface DecodedPng {
27485
+ width: number;
27486
+ height: number;
27487
+ /** RGBA, 4 bytes per pixel, row-major. */
27488
+ pixels: Buffer;
27489
+ }
27490
+ interface PaletteEntry {
27491
+ r: number;
27492
+ g: number;
27493
+ b: number;
27494
+ /** Share of opaque pixels using this colour, 0-1. */
27495
+ weight: number;
27496
+ }
27497
+
27422
27498
  declare class PixelLabProvider implements Provider {
27423
27499
  private readonly client;
27424
27500
  private readonly mcp?;
@@ -30757,20 +30833,6 @@ declare function verifyRecipe(target: string, options?: {
30757
30833
  }): Promise<RecipeVerification>;
30758
30834
  declare function installRecipe(target: string, options?: InstallRecipeOptions): Promise<InstallRecipeResult>;
30759
30835
 
30760
- interface DecodedPng {
30761
- width: number;
30762
- height: number;
30763
- /** RGBA, 4 bytes per pixel, row-major. */
30764
- pixels: Buffer;
30765
- }
30766
- interface PaletteEntry {
30767
- r: number;
30768
- g: number;
30769
- b: number;
30770
- /** Share of opaque pixels using this colour, 0-1. */
30771
- weight: number;
30772
- }
30773
-
30774
30836
  /**
30775
30837
  * Perceptual-ish RGB distance that weights channels by where the colour sits
30776
30838
  * (Riemersma's redmean). Cheap and good enough to pick a swatch; not a