pixelkiln 0.46.0 → 0.47.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/README.md +5 -5
- package/dist/cli.js +14 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/docs/AGENTS.md +1 -1
- package/docs/ARCHITECTURE.md +21 -10
- package/docs/CHARACTERS.md +309 -0
- package/docs/CLI.md +24 -3
- package/docs/COMFYUI.md +68 -0
- package/docs/ENDPOINTS.md +33 -2
- package/docs/GENERATORS.md +6 -6
- package/docs/GETTING_STARTED.md +25 -1
- package/docs/MANIFEST.md +144 -437
- package/docs/PIXELLAB.md +8 -5
- package/docs/README.md +3 -2
- package/docs/RETRO_DIFFUSION.md +96 -2
- package/docs/SCENARIO.md +46 -0
- package/package.json +1 -1
- package/skills/pixelkiln/SKILL.md +7 -0
- package/skills/pixelkiln/references/pixellab.md +1 -1
package/dist/index.js
CHANGED
|
@@ -2101,6 +2101,10 @@ function pixelLabObjectUrl(generator, objectId) {
|
|
|
2101
2101
|
const setId = objectId.split("#")[0];
|
|
2102
2102
|
return setId ? `https://www.pixellab.ai/maps/tiles/${encodeURIComponent(setId)}` : null;
|
|
2103
2103
|
}
|
|
2104
|
+
if (generator === "character") {
|
|
2105
|
+
const characterId = objectId.split("#")[0];
|
|
2106
|
+
return characterId ? `https://www.pixellab.ai/create-character/${encodeURIComponent(characterId)}` : null;
|
|
2107
|
+
}
|
|
2104
2108
|
return null;
|
|
2105
2109
|
}
|
|
2106
2110
|
function characterCost(spec) {
|
|
@@ -8720,8 +8724,9 @@ async function fetchAssets(provider, specs, lock, lockPath, opts = {}) {
|
|
|
8720
8724
|
const superseded = (entry.supersededOutputs ?? []).find(
|
|
8721
8725
|
(output, oldIndex, all) => currentOutputPath(output, spec, oldIndex, all.length) === target
|
|
8722
8726
|
);
|
|
8727
|
+
const outgoing = Boolean(superseded && currentHash === superseded.sha256);
|
|
8723
8728
|
if (!opts.force) {
|
|
8724
|
-
if (
|
|
8729
|
+
if (outgoing) {
|
|
8725
8730
|
} else if (recorded || superseded) {
|
|
8726
8731
|
throw new Error(
|
|
8727
8732
|
`refusing to overwrite modified output ${target}; pass --force to replace it`
|
|
@@ -8732,6 +8737,14 @@ async function fetchAssets(provider, specs, lock, lockPath, opts = {}) {
|
|
|
8732
8737
|
);
|
|
8733
8738
|
}
|
|
8734
8739
|
}
|
|
8740
|
+
if (outgoing && cacheDir) {
|
|
8741
|
+
try {
|
|
8742
|
+
const oldBytes = await readFile11(target);
|
|
8743
|
+
const oldMediaType = detectMediaType(oldBytes);
|
|
8744
|
+
if (oldMediaType) await cacheMedia(cacheDir, oldBytes, oldMediaType, currentHash);
|
|
8745
|
+
} catch {
|
|
8746
|
+
}
|
|
8747
|
+
}
|
|
8735
8748
|
log(
|
|
8736
8749
|
` replace ${path17.relative(process.cwd(), target)}` + (opts.force ? " (--force)" : " (previous tracked generation)")
|
|
8737
8750
|
);
|