pixelkiln 0.146.0 → 0.147.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 +4 -4
- package/dist/cli.js +7 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/docs/CLI.md +9 -2
- package/docs/GETTING_STARTED.md +5 -0
- package/package.json +1 -1
- package/skills/pixelkiln/SKILL.md +4 -0
package/dist/index.cjs
CHANGED
|
@@ -24962,12 +24962,12 @@ async function runPicker(provider, lock, lockPath, opts = {}) {
|
|
|
24962
24962
|
});
|
|
24963
24963
|
if (!session) return { selected: 0, skipped: 0 };
|
|
24964
24964
|
let autoSelected = 0;
|
|
24965
|
-
if (opts.autoAcceptSingle) {
|
|
24966
|
-
const singles = session.groups.filter((g) => g.mode === "frame-set" || g.frameUrls.length === 1);
|
|
24965
|
+
if (opts.acceptFirst || opts.autoAcceptSingle) {
|
|
24966
|
+
const singles = opts.acceptFirst ? session.groups : session.groups.filter((g) => g.mode === "frame-set" || g.frameUrls.length === 1);
|
|
24967
24967
|
if (singles.length) {
|
|
24968
24968
|
const res = await session.apply({ selections: singles.map((g) => ({ key: g.key, index: 0 })) }, lockPath);
|
|
24969
24969
|
autoSelected = res.selected;
|
|
24970
|
-
log(` --yes: accepted ${res.selected} single-candidate asset(s)`);
|
|
24970
|
+
log(opts.acceptFirst ? ` --accept-first: accepted the first candidate of ${res.selected} asset(s)` : ` --yes: accepted ${res.selected} single-candidate asset(s)`);
|
|
24971
24971
|
const rest = session.groups.filter((g) => !singles.includes(g)).map((g) => g.key);
|
|
24972
24972
|
session = rest.length ? await prepareReview(provider, lock, { onProgress: log, keys: rest, specs: opts.specs, lockPath }) : null;
|
|
24973
24973
|
if (!session) return { selected: autoSelected, skipped: 0 };
|