@ikijs/mcp 0.11.2 → 0.12.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/{chunk-ZWDX42O2.mjs → chunk-RMB5YVBU.mjs} +548 -709
- package/dist/chunk-RMB5YVBU.mjs.map +1 -0
- package/dist/cli.js +460 -630
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +12 -18
- package/dist/index.d.ts +12 -18
- package/dist/index.js +460 -630
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-ZWDX42O2.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TurnTargets, IrisStrand, TurnSolveReport } from '@ikijs/editor';
|
|
1
|
+
import { TurnTargets, RigStyle, IrisStrand, TurnSolveReport } from '@ikijs/editor';
|
|
2
2
|
export { TurnSolveReport } from '@ikijs/editor';
|
|
3
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
|
|
@@ -73,6 +73,9 @@ interface AutoRigInput {
|
|
|
73
73
|
/** Head-turn cues to fit the rig to, as `measure_turn_reference` reports
|
|
74
74
|
* them. */
|
|
75
75
|
turnTargets?: AutoRigTurnTargets;
|
|
76
|
+
/** Per-character tuning from the Live2D profile's defaults (see
|
|
77
|
+
* @ikijs/editor's `RigStyle`). */
|
|
78
|
+
style?: RigStyle;
|
|
76
79
|
}
|
|
77
80
|
/** The turn cues a caller may pass, which is every one but `headHalfWidth`:
|
|
78
81
|
* the pixels the shift fractions are fractions of are measured off the layers
|
|
@@ -162,23 +165,13 @@ type AutoRigResult = {
|
|
|
162
165
|
* the textures (Node sharp), validate, and write the renderable `.iki` to disk.
|
|
163
166
|
* Returns the output path + summary stats (the multi-MB model is never inlined).
|
|
164
167
|
*
|
|
165
|
-
* The head turn is fitted to `input.turnTargets`, on
|
|
166
|
-
* measures off the layers
|
|
167
|
-
* `
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* (`strandEdges`), so the turn keeps the far iris from sliding under the bangs
|
|
173
|
-
* any further than it is painted; a run narrower than half the iris there is
|
|
174
|
-
* hair detail the iris may cross, and is skipped. The nose layer alone also
|
|
175
|
-
* gets its dense core measured (`LayerInput.denseCore`, returned as
|
|
176
|
-
* `noseCore`), so a shaded nose is fitted and tilted by the drawing inside its
|
|
177
|
-
* feather rather than by the feather itself — unless that core is a speck of
|
|
178
|
-
* the nose's crop (`isSpeckCore`), which is not handed over: the crop stands
|
|
179
|
-
* in, as it does for a nose with no core. Under `quantizeColors` that nose
|
|
180
|
-
* is atlased alone on a second, lossless page, which the palette would
|
|
181
|
-
* otherwise rim; `atlasBytes` sums both pages.
|
|
168
|
+
* The head turn is fitted to `input.turnTargets`, on what @ikijs/editor's
|
|
169
|
+
* `createLayerSetMeasurer` measures off the decoded layers (the head
|
|
170
|
+
* half-width, `headEdges`, `strandEdges`, the face's `rowHalfWidths` and the
|
|
171
|
+
* nose's dense core, returned as `noseCore`); what the solve settled on comes
|
|
172
|
+
* back in `turn`. Under `quantizeColors` the nose is atlased alone on a
|
|
173
|
+
* second, lossless page, which the palette would otherwise rim; `atlasBytes`
|
|
174
|
+
* sums both pages.
|
|
182
175
|
*
|
|
183
176
|
* Re-host of examples/editor/src/store.ts `importLayerSet` with the three DOM
|
|
184
177
|
* pixel functions swapped for the sharp-backed ./node-images helpers; the pure
|
|
@@ -470,6 +463,7 @@ declare function composeLayersFromParts(input: ComposeInput): Promise<ComposeRes
|
|
|
470
463
|
* `sharp` must stay confined to @ikijs/mcp; the decode and the debug-overlay
|
|
471
464
|
* encode both go through ./node-images, this package's single image boundary.
|
|
472
465
|
*/
|
|
466
|
+
|
|
473
467
|
/**
|
|
474
468
|
* Hue/saturation window that selects the iris. Anime irises are a saturated
|
|
475
469
|
* colour on a face that is not, which is what makes them findable at all; the
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TurnTargets, IrisStrand, TurnSolveReport } from '@ikijs/editor';
|
|
1
|
+
import { TurnTargets, RigStyle, IrisStrand, TurnSolveReport } from '@ikijs/editor';
|
|
2
2
|
export { TurnSolveReport } from '@ikijs/editor';
|
|
3
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
|
|
@@ -73,6 +73,9 @@ interface AutoRigInput {
|
|
|
73
73
|
/** Head-turn cues to fit the rig to, as `measure_turn_reference` reports
|
|
74
74
|
* them. */
|
|
75
75
|
turnTargets?: AutoRigTurnTargets;
|
|
76
|
+
/** Per-character tuning from the Live2D profile's defaults (see
|
|
77
|
+
* @ikijs/editor's `RigStyle`). */
|
|
78
|
+
style?: RigStyle;
|
|
76
79
|
}
|
|
77
80
|
/** The turn cues a caller may pass, which is every one but `headHalfWidth`:
|
|
78
81
|
* the pixels the shift fractions are fractions of are measured off the layers
|
|
@@ -162,23 +165,13 @@ type AutoRigResult = {
|
|
|
162
165
|
* the textures (Node sharp), validate, and write the renderable `.iki` to disk.
|
|
163
166
|
* Returns the output path + summary stats (the multi-MB model is never inlined).
|
|
164
167
|
*
|
|
165
|
-
* The head turn is fitted to `input.turnTargets`, on
|
|
166
|
-
* measures off the layers
|
|
167
|
-
* `
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* (`strandEdges`), so the turn keeps the far iris from sliding under the bangs
|
|
173
|
-
* any further than it is painted; a run narrower than half the iris there is
|
|
174
|
-
* hair detail the iris may cross, and is skipped. The nose layer alone also
|
|
175
|
-
* gets its dense core measured (`LayerInput.denseCore`, returned as
|
|
176
|
-
* `noseCore`), so a shaded nose is fitted and tilted by the drawing inside its
|
|
177
|
-
* feather rather than by the feather itself — unless that core is a speck of
|
|
178
|
-
* the nose's crop (`isSpeckCore`), which is not handed over: the crop stands
|
|
179
|
-
* in, as it does for a nose with no core. Under `quantizeColors` that nose
|
|
180
|
-
* is atlased alone on a second, lossless page, which the palette would
|
|
181
|
-
* otherwise rim; `atlasBytes` sums both pages.
|
|
168
|
+
* The head turn is fitted to `input.turnTargets`, on what @ikijs/editor's
|
|
169
|
+
* `createLayerSetMeasurer` measures off the decoded layers (the head
|
|
170
|
+
* half-width, `headEdges`, `strandEdges`, the face's `rowHalfWidths` and the
|
|
171
|
+
* nose's dense core, returned as `noseCore`); what the solve settled on comes
|
|
172
|
+
* back in `turn`. Under `quantizeColors` the nose is atlased alone on a
|
|
173
|
+
* second, lossless page, which the palette would otherwise rim; `atlasBytes`
|
|
174
|
+
* sums both pages.
|
|
182
175
|
*
|
|
183
176
|
* Re-host of examples/editor/src/store.ts `importLayerSet` with the three DOM
|
|
184
177
|
* pixel functions swapped for the sharp-backed ./node-images helpers; the pure
|
|
@@ -470,6 +463,7 @@ declare function composeLayersFromParts(input: ComposeInput): Promise<ComposeRes
|
|
|
470
463
|
* `sharp` must stay confined to @ikijs/mcp; the decode and the debug-overlay
|
|
471
464
|
* encode both go through ./node-images, this package's single image boundary.
|
|
472
465
|
*/
|
|
466
|
+
|
|
473
467
|
/**
|
|
474
468
|
* Hue/saturation window that selects the iris. Anime irises are a saturated
|
|
475
469
|
* colour on a face that is not, which is what makes them findable at all; the
|