@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/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createIkiMcpServer
4
- } from "./chunk-ZWDX42O2.mjs";
4
+ } from "./chunk-RMB5YVBU.mjs";
5
5
 
6
6
  // src/cli.ts
7
7
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
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 the head half-width this
166
- * measures off the layers themselves; what the solve settled on comes back in
167
- * `turn`. The face layer alone also gets its per-row painted half-widths
168
- * (`LayerInput.rowHalfWidths`), which bend the face plate on a row-dependent
169
- * radius: the generator reads no other role's, so measuring any other layer's
170
- * would only hand it bytes it discards. Each iris's opaque span and the bangs'
171
- * run it would slide under are measured on the iris's own centre row too
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 the head half-width this
166
- * measures off the layers themselves; what the solve settled on comes back in
167
- * `turn`. The face layer alone also gets its per-row painted half-widths
168
- * (`LayerInput.rowHalfWidths`), which bend the face plate on a row-dependent
169
- * radius: the generator reads no other role's, so measuring any other layer's
170
- * would only hand it bytes it discards. Each iris's opaque span and the bangs'
171
- * run it would slide under are measured on the iris's own centre row too
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