pixelkiln 0.91.0 → 0.91.2
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 +11 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/docs/CHARACTERS.md +9 -4
- package/docs/ENDPOINTS.md +9 -3
- package/package.json +1 -1
- package/skills/pixelkiln/references/pixellab-roadmap.md +4 -2
- package/skills/pixelkiln/references/pixellab.md +2 -1
package/dist/cli.js
CHANGED
|
@@ -12899,11 +12899,18 @@ function assetInStyle(asset, styleId, style) {
|
|
|
12899
12899
|
function parentAssetId(asset) {
|
|
12900
12900
|
return asset?.revision?.from ?? asset?.state?.of ?? asset?.animation?.of ?? asset?.portrait?.of ?? asset?.outfit?.of;
|
|
12901
12901
|
}
|
|
12902
|
-
function dependencyAssetIds(asset) {
|
|
12902
|
+
function dependencyAssetIds(asset, styleAnchors = []) {
|
|
12903
12903
|
const parent = parentAssetId(asset);
|
|
12904
12904
|
return [
|
|
12905
12905
|
...parent ? [parent] : [],
|
|
12906
|
-
...[
|
|
12906
|
+
...[
|
|
12907
|
+
asset?.connect?.lower?.of,
|
|
12908
|
+
asset?.connect?.upper?.of,
|
|
12909
|
+
asset?.animation?.motionFrom,
|
|
12910
|
+
asset?.mirror,
|
|
12911
|
+
asset?.styleCharacter,
|
|
12912
|
+
...asset?.styleCharacter ? [] : styleAnchors
|
|
12913
|
+
].filter((id) => Boolean(id))
|
|
12907
12914
|
];
|
|
12908
12915
|
}
|
|
12909
12916
|
function formatManifestIssues(issues) {
|
|
@@ -12993,9 +13000,10 @@ async function resolveSpecs(loaded, filter) {
|
|
|
12993
13000
|
}
|
|
12994
13001
|
const requestedAssetIds = new Set(assetFilter.length ? assetFilter : Object.keys(manifest.assets));
|
|
12995
13002
|
const resolutionAssetIds = new Set(requestedAssetIds);
|
|
13003
|
+
const styleAnchors = Object.values(manifest.styles).map((style) => style.styleCharacter).filter((id) => Boolean(id));
|
|
12996
13004
|
const pending = [...requestedAssetIds];
|
|
12997
13005
|
while (pending.length) {
|
|
12998
|
-
for (const dependency of dependencyAssetIds(manifest.assets[pending.pop()])) {
|
|
13006
|
+
for (const dependency of dependencyAssetIds(manifest.assets[pending.pop()], styleAnchors)) {
|
|
12999
13007
|
if (resolutionAssetIds.has(dependency) || !manifest.assets[dependency]) continue;
|
|
13000
13008
|
resolutionAssetIds.add(dependency);
|
|
13001
13009
|
pending.push(dependency);
|