pixelkiln 0.131.0 → 0.133.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 +3 -2
- package/dist/cli.js +1169 -481
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1122 -458
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -14
- package/dist/index.d.ts +39 -14
- package/dist/index.js +1122 -458
- package/dist/index.js.map +1 -1
- package/docs/CHARACTERS_3D.md +4 -0
- package/docs/CLI.md +35 -18
- package/docs/GETTING_STARTED.md +1 -1
- package/docs/RESEARCH_3D.md +44 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -31675,33 +31675,41 @@ interface SheetGroup {
|
|
|
31675
31675
|
/**
|
|
31676
31676
|
* A batch member's declared slot in the shared candidate set (confirmed
|
|
31677
31677
|
* live: `item_descriptions[i]` reliably lands at candidate index `i`; see
|
|
31678
|
-
* docs/GENERATORS.md#1dir).
|
|
31679
|
-
*
|
|
31680
|
-
* still just a starting point, not an auto-pick.
|
|
31678
|
+
* docs/GENERATORS.md#1dir). The page starts that asset on this candidate
|
|
31679
|
+
* instead of the first: still a starting point, not an auto-pick.
|
|
31681
31680
|
*/
|
|
31682
31681
|
recommendedIndex?: number;
|
|
31683
31682
|
}
|
|
31684
|
-
/**
|
|
31685
|
-
* A contact sheet for choosing among generated candidates.
|
|
31686
|
-
*
|
|
31687
|
-
* This is the only step that needs human judgement, so it is optimised for one
|
|
31688
|
-
* thing: deciding fast. Small candidates render at an exact integer zoom with
|
|
31689
|
-
* a transparency checkerboard and a true-size swatch. Large candidates are
|
|
31690
|
-
* fitted without changing their aspect ratio, so a wide browser cannot turn a
|
|
31691
|
-
* review into an oversized or stretched image wall. Keyboard-first, one row
|
|
31692
|
-
* per asset, and the page posts back and closes itself.
|
|
31693
|
-
*/
|
|
31694
31683
|
interface RenderSheetOptions {
|
|
31695
31684
|
/** Where selections are POSTed. Default `/apply`, the standalone review server. */
|
|
31696
31685
|
applyUrl?: string;
|
|
31697
|
-
/** Extra headers on the
|
|
31686
|
+
/** Extra headers on every request the page makes, e.g. a gallery session token. */
|
|
31698
31687
|
applyHeaders?: Record<string, string>;
|
|
31699
31688
|
/**
|
|
31700
31689
|
* Hosted inside another page: after a successful apply the sheet tells its
|
|
31701
31690
|
* parent window (same origin only) so the host can close it and refresh.
|
|
31702
31691
|
*/
|
|
31703
31692
|
embedded?: boolean;
|
|
31693
|
+
/** GET: the live groups, saved selections and reroll progress. Absent, the page keeps selections in the browser only. */
|
|
31694
|
+
sessionUrl?: string;
|
|
31695
|
+
/** POST `{ key, chosen, flagged, later }`: saves one asset's selection to the review state. */
|
|
31696
|
+
stateUrl?: string;
|
|
31697
|
+
/** POST `{ key }`: regenerates one asset with `--force` inside the running review. Absent, the page offers no reroll. */
|
|
31698
|
+
rerollUrl?: string;
|
|
31704
31699
|
}
|
|
31700
|
+
/**
|
|
31701
|
+
* The review queue: every asset waiting on a human choice.
|
|
31702
|
+
*
|
|
31703
|
+
* Built for 50+ assets in one sitting. A master list on the left holds one
|
|
31704
|
+
* compact row per asset with its candidate already playing; the stage on the
|
|
31705
|
+
* right shows the current asset at the largest integer scale that fits, with
|
|
31706
|
+
* the art it replaces one key away. Frames stay hidden until the strip is
|
|
31707
|
+
* opened. Every action has a key, and every choice is saved to the server as
|
|
31708
|
+
* it is made, so a refresh or a restarted run reopens where it was left.
|
|
31709
|
+
*
|
|
31710
|
+
* Each frame URL is loaded once into one Image and drawn to canvases from
|
|
31711
|
+
* there, so the list thumbnail, the stage and the strip share one request.
|
|
31712
|
+
*/
|
|
31705
31713
|
declare function renderSheet(groups: SheetGroup[], options?: RenderSheetOptions): string;
|
|
31706
31714
|
|
|
31707
31715
|
interface PickResult {
|
|
@@ -31752,9 +31760,22 @@ interface PrepareReviewOptions {
|
|
|
31752
31760
|
* since dropped is still reviewable and appliable from that cache.
|
|
31753
31761
|
*/
|
|
31754
31762
|
lockPath?: string;
|
|
31763
|
+
/**
|
|
31764
|
+
* First number for this session's media routes. A reroll prepares one asset
|
|
31765
|
+
* again while the page is open, and its new frames need routes no earlier
|
|
31766
|
+
* group used.
|
|
31767
|
+
*/
|
|
31768
|
+
routeBase?: number;
|
|
31755
31769
|
}
|
|
31756
31770
|
/** Gather every entry in review for this provider. Null when nothing is waiting. */
|
|
31757
31771
|
declare function prepareReview(provider: Provider, lock: Lock, opts?: PrepareReviewOptions): Promise<ReviewSession | null>;
|
|
31772
|
+
/**
|
|
31773
|
+
* Resubmit one asset with `--force` and wait until it is back in review. It
|
|
31774
|
+
* mutates and saves the lockfile itself; it throws when the asset cannot be
|
|
31775
|
+
* regenerated (a budget refusal, a provider failure, a job that never
|
|
31776
|
+
* reached review).
|
|
31777
|
+
*/
|
|
31778
|
+
type RerollAsset = (key: string) => Promise<void>;
|
|
31758
31779
|
/**
|
|
31759
31780
|
* Serves the contact sheet on localhost, waits for the selections to be
|
|
31760
31781
|
* applied, then shuts down.
|
|
@@ -31762,6 +31783,8 @@ declare function prepareReview(provider: Provider, lock: Lock, opts?: PrepareRev
|
|
|
31762
31783
|
* Selections are committed through the provider (`select-frames` promotes the chosen
|
|
31763
31784
|
* candidate to its own object and drops the rest) and written to the lockfile
|
|
31764
31785
|
* before the browser gets its response, so a closed tab never loses a choice.
|
|
31786
|
+
* Choices made before apply are saved to the review state as they happen, so
|
|
31787
|
+
* a refresh or a restarted run reopens the page where it was left.
|
|
31765
31788
|
*/
|
|
31766
31789
|
declare function runPicker(provider: Provider, lock: Lock, lockPath: string, opts?: {
|
|
31767
31790
|
port?: number;
|
|
@@ -31779,6 +31802,8 @@ declare function runPicker(provider: Provider, lock: Lock, lockPath: string, opt
|
|
|
31779
31802
|
* the rest. `gen --yes` sets this so an unattended run cannot block.
|
|
31780
31803
|
*/
|
|
31781
31804
|
autoAcceptSingle?: boolean;
|
|
31805
|
+
/** Regenerates one asset from the page; without it the page offers no reroll. */
|
|
31806
|
+
reroll?: RerollAsset;
|
|
31782
31807
|
}): Promise<PickResult>;
|
|
31783
31808
|
|
|
31784
31809
|
type TextureRole = "baseColor" | "normal" | "metallicRoughness" | "occlusion" | "emissive";
|
package/dist/index.d.ts
CHANGED
|
@@ -31675,33 +31675,41 @@ interface SheetGroup {
|
|
|
31675
31675
|
/**
|
|
31676
31676
|
* A batch member's declared slot in the shared candidate set (confirmed
|
|
31677
31677
|
* live: `item_descriptions[i]` reliably lands at candidate index `i`; see
|
|
31678
|
-
* docs/GENERATORS.md#1dir).
|
|
31679
|
-
*
|
|
31680
|
-
* still just a starting point, not an auto-pick.
|
|
31678
|
+
* docs/GENERATORS.md#1dir). The page starts that asset on this candidate
|
|
31679
|
+
* instead of the first: still a starting point, not an auto-pick.
|
|
31681
31680
|
*/
|
|
31682
31681
|
recommendedIndex?: number;
|
|
31683
31682
|
}
|
|
31684
|
-
/**
|
|
31685
|
-
* A contact sheet for choosing among generated candidates.
|
|
31686
|
-
*
|
|
31687
|
-
* This is the only step that needs human judgement, so it is optimised for one
|
|
31688
|
-
* thing: deciding fast. Small candidates render at an exact integer zoom with
|
|
31689
|
-
* a transparency checkerboard and a true-size swatch. Large candidates are
|
|
31690
|
-
* fitted without changing their aspect ratio, so a wide browser cannot turn a
|
|
31691
|
-
* review into an oversized or stretched image wall. Keyboard-first, one row
|
|
31692
|
-
* per asset, and the page posts back and closes itself.
|
|
31693
|
-
*/
|
|
31694
31683
|
interface RenderSheetOptions {
|
|
31695
31684
|
/** Where selections are POSTed. Default `/apply`, the standalone review server. */
|
|
31696
31685
|
applyUrl?: string;
|
|
31697
|
-
/** Extra headers on the
|
|
31686
|
+
/** Extra headers on every request the page makes, e.g. a gallery session token. */
|
|
31698
31687
|
applyHeaders?: Record<string, string>;
|
|
31699
31688
|
/**
|
|
31700
31689
|
* Hosted inside another page: after a successful apply the sheet tells its
|
|
31701
31690
|
* parent window (same origin only) so the host can close it and refresh.
|
|
31702
31691
|
*/
|
|
31703
31692
|
embedded?: boolean;
|
|
31693
|
+
/** GET: the live groups, saved selections and reroll progress. Absent, the page keeps selections in the browser only. */
|
|
31694
|
+
sessionUrl?: string;
|
|
31695
|
+
/** POST `{ key, chosen, flagged, later }`: saves one asset's selection to the review state. */
|
|
31696
|
+
stateUrl?: string;
|
|
31697
|
+
/** POST `{ key }`: regenerates one asset with `--force` inside the running review. Absent, the page offers no reroll. */
|
|
31698
|
+
rerollUrl?: string;
|
|
31704
31699
|
}
|
|
31700
|
+
/**
|
|
31701
|
+
* The review queue: every asset waiting on a human choice.
|
|
31702
|
+
*
|
|
31703
|
+
* Built for 50+ assets in one sitting. A master list on the left holds one
|
|
31704
|
+
* compact row per asset with its candidate already playing; the stage on the
|
|
31705
|
+
* right shows the current asset at the largest integer scale that fits, with
|
|
31706
|
+
* the art it replaces one key away. Frames stay hidden until the strip is
|
|
31707
|
+
* opened. Every action has a key, and every choice is saved to the server as
|
|
31708
|
+
* it is made, so a refresh or a restarted run reopens where it was left.
|
|
31709
|
+
*
|
|
31710
|
+
* Each frame URL is loaded once into one Image and drawn to canvases from
|
|
31711
|
+
* there, so the list thumbnail, the stage and the strip share one request.
|
|
31712
|
+
*/
|
|
31705
31713
|
declare function renderSheet(groups: SheetGroup[], options?: RenderSheetOptions): string;
|
|
31706
31714
|
|
|
31707
31715
|
interface PickResult {
|
|
@@ -31752,9 +31760,22 @@ interface PrepareReviewOptions {
|
|
|
31752
31760
|
* since dropped is still reviewable and appliable from that cache.
|
|
31753
31761
|
*/
|
|
31754
31762
|
lockPath?: string;
|
|
31763
|
+
/**
|
|
31764
|
+
* First number for this session's media routes. A reroll prepares one asset
|
|
31765
|
+
* again while the page is open, and its new frames need routes no earlier
|
|
31766
|
+
* group used.
|
|
31767
|
+
*/
|
|
31768
|
+
routeBase?: number;
|
|
31755
31769
|
}
|
|
31756
31770
|
/** Gather every entry in review for this provider. Null when nothing is waiting. */
|
|
31757
31771
|
declare function prepareReview(provider: Provider, lock: Lock, opts?: PrepareReviewOptions): Promise<ReviewSession | null>;
|
|
31772
|
+
/**
|
|
31773
|
+
* Resubmit one asset with `--force` and wait until it is back in review. It
|
|
31774
|
+
* mutates and saves the lockfile itself; it throws when the asset cannot be
|
|
31775
|
+
* regenerated (a budget refusal, a provider failure, a job that never
|
|
31776
|
+
* reached review).
|
|
31777
|
+
*/
|
|
31778
|
+
type RerollAsset = (key: string) => Promise<void>;
|
|
31758
31779
|
/**
|
|
31759
31780
|
* Serves the contact sheet on localhost, waits for the selections to be
|
|
31760
31781
|
* applied, then shuts down.
|
|
@@ -31762,6 +31783,8 @@ declare function prepareReview(provider: Provider, lock: Lock, opts?: PrepareRev
|
|
|
31762
31783
|
* Selections are committed through the provider (`select-frames` promotes the chosen
|
|
31763
31784
|
* candidate to its own object and drops the rest) and written to the lockfile
|
|
31764
31785
|
* before the browser gets its response, so a closed tab never loses a choice.
|
|
31786
|
+
* Choices made before apply are saved to the review state as they happen, so
|
|
31787
|
+
* a refresh or a restarted run reopens the page where it was left.
|
|
31765
31788
|
*/
|
|
31766
31789
|
declare function runPicker(provider: Provider, lock: Lock, lockPath: string, opts?: {
|
|
31767
31790
|
port?: number;
|
|
@@ -31779,6 +31802,8 @@ declare function runPicker(provider: Provider, lock: Lock, lockPath: string, opt
|
|
|
31779
31802
|
* the rest. `gen --yes` sets this so an unattended run cannot block.
|
|
31780
31803
|
*/
|
|
31781
31804
|
autoAcceptSingle?: boolean;
|
|
31805
|
+
/** Regenerates one asset from the page; without it the page offers no reroll. */
|
|
31806
|
+
reroll?: RerollAsset;
|
|
31782
31807
|
}): Promise<PickResult>;
|
|
31783
31808
|
|
|
31784
31809
|
type TextureRole = "baseColor" | "normal" | "metallicRoughness" | "occlusion" | "emissive";
|