pixelkiln 0.78.0 → 0.79.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 +13 -1
- package/dist/cli.js.map +1 -1
- package/dist/client/gallery.css +9 -0
- package/dist/client/gallery.js +174 -2
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/docs/CHARACTERS.md +12 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18897,6 +18897,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18897
18897
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18898
18898
|
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18899
18899
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18900
|
+
/**
|
|
18901
|
+
* A loop shorthand's `animation.directions`, replaced whole: each named
|
|
18902
|
+
* direction is drawn, and each one's flip comes free as a mirror.
|
|
18903
|
+
*/
|
|
18904
|
+
loopDirections: z.ZodOptional<z.ZodArray<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, "many">>;
|
|
18900
18905
|
}, "strict", z.ZodTypeAny, {
|
|
18901
18906
|
width?: number | null | undefined;
|
|
18902
18907
|
height?: number | null | undefined;
|
|
@@ -18908,6 +18913,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18908
18913
|
prompt: string | null;
|
|
18909
18914
|
styleId: string;
|
|
18910
18915
|
} | undefined;
|
|
18916
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18911
18917
|
}, {
|
|
18912
18918
|
width?: number | null | undefined;
|
|
18913
18919
|
height?: number | null | undefined;
|
|
@@ -18919,6 +18925,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18919
18925
|
prompt: string | null;
|
|
18920
18926
|
styleId: string;
|
|
18921
18927
|
} | undefined;
|
|
18928
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18922
18929
|
}>;
|
|
18923
18930
|
} & {
|
|
18924
18931
|
/** Workspace project id; omitted for a single-project gallery. */
|
|
@@ -18939,6 +18946,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18939
18946
|
prompt: string | null;
|
|
18940
18947
|
styleId: string;
|
|
18941
18948
|
} | undefined;
|
|
18949
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18942
18950
|
};
|
|
18943
18951
|
expectedSha256: string;
|
|
18944
18952
|
project?: string | undefined;
|
|
@@ -18956,6 +18964,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18956
18964
|
prompt: string | null;
|
|
18957
18965
|
styleId: string;
|
|
18958
18966
|
} | undefined;
|
|
18967
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18959
18968
|
};
|
|
18960
18969
|
expectedSha256: string;
|
|
18961
18970
|
project?: string | undefined;
|
|
@@ -19917,6 +19926,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19917
19926
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19918
19927
|
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19919
19928
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19929
|
+
/**
|
|
19930
|
+
* A loop shorthand's `animation.directions`, replaced whole: each named
|
|
19931
|
+
* direction is drawn, and each one's flip comes free as a mirror.
|
|
19932
|
+
*/
|
|
19933
|
+
loopDirections: z.ZodOptional<z.ZodArray<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, "many">>;
|
|
19920
19934
|
}, "strict", z.ZodTypeAny, {
|
|
19921
19935
|
width?: number | null | undefined;
|
|
19922
19936
|
height?: number | null | undefined;
|
|
@@ -19928,6 +19942,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19928
19942
|
prompt: string | null;
|
|
19929
19943
|
styleId: string;
|
|
19930
19944
|
} | undefined;
|
|
19945
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19931
19946
|
}, {
|
|
19932
19947
|
width?: number | null | undefined;
|
|
19933
19948
|
height?: number | null | undefined;
|
|
@@ -19939,6 +19954,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19939
19954
|
prompt: string | null;
|
|
19940
19955
|
styleId: string;
|
|
19941
19956
|
} | undefined;
|
|
19957
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19942
19958
|
}>;
|
|
19943
19959
|
}, "strict", z.ZodTypeAny, {
|
|
19944
19960
|
assetId: string;
|
|
@@ -19954,6 +19970,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19954
19970
|
prompt: string | null;
|
|
19955
19971
|
styleId: string;
|
|
19956
19972
|
} | undefined;
|
|
19973
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19957
19974
|
};
|
|
19958
19975
|
}, {
|
|
19959
19976
|
assetId: string;
|
|
@@ -19969,6 +19986,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19969
19986
|
prompt: string | null;
|
|
19970
19987
|
styleId: string;
|
|
19971
19988
|
} | undefined;
|
|
19989
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19972
19990
|
};
|
|
19973
19991
|
}>, z.ZodObject<{
|
|
19974
19992
|
action: z.ZodLiteral<"add-asset">;
|
|
@@ -20884,6 +20902,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20884
20902
|
prompt: string | null;
|
|
20885
20903
|
styleId: string;
|
|
20886
20904
|
} | undefined;
|
|
20905
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
20887
20906
|
};
|
|
20888
20907
|
} | {
|
|
20889
20908
|
assetId: string;
|
|
@@ -21013,6 +21032,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21013
21032
|
prompt: string | null;
|
|
21014
21033
|
styleId: string;
|
|
21015
21034
|
} | undefined;
|
|
21035
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
21016
21036
|
};
|
|
21017
21037
|
} | {
|
|
21018
21038
|
assetId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -18897,6 +18897,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18897
18897
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18898
18898
|
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18899
18899
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18900
|
+
/**
|
|
18901
|
+
* A loop shorthand's `animation.directions`, replaced whole: each named
|
|
18902
|
+
* direction is drawn, and each one's flip comes free as a mirror.
|
|
18903
|
+
*/
|
|
18904
|
+
loopDirections: z.ZodOptional<z.ZodArray<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, "many">>;
|
|
18900
18905
|
}, "strict", z.ZodTypeAny, {
|
|
18901
18906
|
width?: number | null | undefined;
|
|
18902
18907
|
height?: number | null | undefined;
|
|
@@ -18908,6 +18913,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18908
18913
|
prompt: string | null;
|
|
18909
18914
|
styleId: string;
|
|
18910
18915
|
} | undefined;
|
|
18916
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18911
18917
|
}, {
|
|
18912
18918
|
width?: number | null | undefined;
|
|
18913
18919
|
height?: number | null | undefined;
|
|
@@ -18919,6 +18925,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18919
18925
|
prompt: string | null;
|
|
18920
18926
|
styleId: string;
|
|
18921
18927
|
} | undefined;
|
|
18928
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18922
18929
|
}>;
|
|
18923
18930
|
} & {
|
|
18924
18931
|
/** Workspace project id; omitted for a single-project gallery. */
|
|
@@ -18939,6 +18946,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18939
18946
|
prompt: string | null;
|
|
18940
18947
|
styleId: string;
|
|
18941
18948
|
} | undefined;
|
|
18949
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18942
18950
|
};
|
|
18943
18951
|
expectedSha256: string;
|
|
18944
18952
|
project?: string | undefined;
|
|
@@ -18956,6 +18964,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18956
18964
|
prompt: string | null;
|
|
18957
18965
|
styleId: string;
|
|
18958
18966
|
} | undefined;
|
|
18967
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
18959
18968
|
};
|
|
18960
18969
|
expectedSha256: string;
|
|
18961
18970
|
project?: string | undefined;
|
|
@@ -19917,6 +19926,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19917
19926
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19918
19927
|
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19919
19928
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19929
|
+
/**
|
|
19930
|
+
* A loop shorthand's `animation.directions`, replaced whole: each named
|
|
19931
|
+
* direction is drawn, and each one's flip comes free as a mirror.
|
|
19932
|
+
*/
|
|
19933
|
+
loopDirections: z.ZodOptional<z.ZodArray<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, "many">>;
|
|
19920
19934
|
}, "strict", z.ZodTypeAny, {
|
|
19921
19935
|
width?: number | null | undefined;
|
|
19922
19936
|
height?: number | null | undefined;
|
|
@@ -19928,6 +19942,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19928
19942
|
prompt: string | null;
|
|
19929
19943
|
styleId: string;
|
|
19930
19944
|
} | undefined;
|
|
19945
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19931
19946
|
}, {
|
|
19932
19947
|
width?: number | null | undefined;
|
|
19933
19948
|
height?: number | null | undefined;
|
|
@@ -19939,6 +19954,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19939
19954
|
prompt: string | null;
|
|
19940
19955
|
styleId: string;
|
|
19941
19956
|
} | undefined;
|
|
19957
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19942
19958
|
}>;
|
|
19943
19959
|
}, "strict", z.ZodTypeAny, {
|
|
19944
19960
|
assetId: string;
|
|
@@ -19954,6 +19970,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19954
19970
|
prompt: string | null;
|
|
19955
19971
|
styleId: string;
|
|
19956
19972
|
} | undefined;
|
|
19973
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19957
19974
|
};
|
|
19958
19975
|
}, {
|
|
19959
19976
|
assetId: string;
|
|
@@ -19969,6 +19986,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19969
19986
|
prompt: string | null;
|
|
19970
19987
|
styleId: string;
|
|
19971
19988
|
} | undefined;
|
|
19989
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
19972
19990
|
};
|
|
19973
19991
|
}>, z.ZodObject<{
|
|
19974
19992
|
action: z.ZodLiteral<"add-asset">;
|
|
@@ -20884,6 +20902,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20884
20902
|
prompt: string | null;
|
|
20885
20903
|
styleId: string;
|
|
20886
20904
|
} | undefined;
|
|
20905
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
20887
20906
|
};
|
|
20888
20907
|
} | {
|
|
20889
20908
|
assetId: string;
|
|
@@ -21013,6 +21032,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21013
21032
|
prompt: string | null;
|
|
21014
21033
|
styleId: string;
|
|
21015
21034
|
} | undefined;
|
|
21035
|
+
loopDirections?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
|
|
21016
21036
|
};
|
|
21017
21037
|
} | {
|
|
21018
21038
|
assetId: string;
|
package/dist/index.js
CHANGED
|
@@ -15084,7 +15084,12 @@ var AssetPatchSchema = z8.object({
|
|
|
15084
15084
|
width: z8.number().int().nullable().optional(),
|
|
15085
15085
|
height: z8.number().int().nullable().optional(),
|
|
15086
15086
|
size: z8.number().int().nullable().optional(),
|
|
15087
|
-
tags: z8.array(z8.string()).optional()
|
|
15087
|
+
tags: z8.array(z8.string()).optional(),
|
|
15088
|
+
/**
|
|
15089
|
+
* A loop shorthand's `animation.directions`, replaced whole: each named
|
|
15090
|
+
* direction is drawn, and each one's flip comes free as a mirror.
|
|
15091
|
+
*/
|
|
15092
|
+
loopDirections: z8.array(CharacterDirectionSchema).min(1).optional()
|
|
15088
15093
|
}).strict();
|
|
15089
15094
|
var NewStateSchema = z8.object({
|
|
15090
15095
|
/** Asset id of the parent this states; must already exist. */
|
|
@@ -15433,6 +15438,13 @@ function applyEdit(raw, edit) {
|
|
|
15433
15438
|
if (patch.tags.length) asset.tags = patch.tags;
|
|
15434
15439
|
else delete asset.tags;
|
|
15435
15440
|
}
|
|
15441
|
+
if (patch.loopDirections) {
|
|
15442
|
+
const animation = asset.animation;
|
|
15443
|
+
if (!animation || !Array.isArray(animation.directions)) {
|
|
15444
|
+
throw new ManifestEditError(`asset "${edit.assetId}" is not a loop declared with animation.directions`);
|
|
15445
|
+
}
|
|
15446
|
+
asset.animation = { ...animation, directions: patch.loopDirections };
|
|
15447
|
+
}
|
|
15436
15448
|
}
|
|
15437
15449
|
async function withCandidate(manifestPath, edit, use, unchanged) {
|
|
15438
15450
|
const absolute = path26.resolve(manifestPath);
|