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.cjs
CHANGED
|
@@ -2400,6 +2400,10 @@ function pixelLabObjectUrl(generator, objectId) {
|
|
|
2400
2400
|
const setId = objectId.split("#")[0];
|
|
2401
2401
|
return setId ? `https://www.pixellab.ai/maps/tiles/${encodeURIComponent(setId)}` : null;
|
|
2402
2402
|
}
|
|
2403
|
+
if (generator === "character") {
|
|
2404
|
+
const characterId = objectId.split("#")[0];
|
|
2405
|
+
return characterId ? `https://www.pixellab.ai/create-character/${encodeURIComponent(characterId)}` : null;
|
|
2406
|
+
}
|
|
2403
2407
|
return null;
|
|
2404
2408
|
}
|
|
2405
2409
|
function characterCost(spec) {
|
|
@@ -9019,8 +9023,9 @@ async function fetchAssets(provider, specs, lock, lockPath, opts = {}) {
|
|
|
9019
9023
|
const superseded = (entry.supersededOutputs ?? []).find(
|
|
9020
9024
|
(output, oldIndex, all) => currentOutputPath(output, spec, oldIndex, all.length) === target
|
|
9021
9025
|
);
|
|
9026
|
+
const outgoing = Boolean(superseded && currentHash === superseded.sha256);
|
|
9022
9027
|
if (!opts.force) {
|
|
9023
|
-
if (
|
|
9028
|
+
if (outgoing) {
|
|
9024
9029
|
} else if (recorded || superseded) {
|
|
9025
9030
|
throw new Error(
|
|
9026
9031
|
`refusing to overwrite modified output ${target}; pass --force to replace it`
|
|
@@ -9031,6 +9036,14 @@ async function fetchAssets(provider, specs, lock, lockPath, opts = {}) {
|
|
|
9031
9036
|
);
|
|
9032
9037
|
}
|
|
9033
9038
|
}
|
|
9039
|
+
if (outgoing && cacheDir) {
|
|
9040
|
+
try {
|
|
9041
|
+
const oldBytes = await (0, import_promises11.readFile)(target);
|
|
9042
|
+
const oldMediaType = detectMediaType(oldBytes);
|
|
9043
|
+
if (oldMediaType) await cacheMedia(cacheDir, oldBytes, oldMediaType, currentHash);
|
|
9044
|
+
} catch {
|
|
9045
|
+
}
|
|
9046
|
+
}
|
|
9034
9047
|
log(
|
|
9035
9048
|
` replace ${import_node_path18.default.relative(process.cwd(), target)}` + (opts.force ? " (--force)" : " (previous tracked generation)")
|
|
9036
9049
|
);
|