@ikijs/mcp 0.13.5 → 0.14.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 +2 -2
- package/dist/{chunk-FYHLTB6F.mjs → chunk-PKIN326J.mjs} +6 -6
- package/dist/chunk-PKIN326J.mjs.map +1 -0
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-FYHLTB6F.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -73,7 +73,7 @@ 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
|
|
76
|
+
/** Per-character tuning from the profile's defaults (see
|
|
77
77
|
* @ikijs/editor's `RigStyle`). */
|
|
78
78
|
style?: RigStyle;
|
|
79
79
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ 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
|
|
76
|
+
/** Per-character tuning from the profile's defaults (see
|
|
77
77
|
* @ikijs/editor's `RigStyle`). */
|
|
78
78
|
style?: RigStyle;
|
|
79
79
|
}
|
package/dist/index.js
CHANGED
|
@@ -1180,7 +1180,7 @@ async function measureDir(absDir, noseSpeck) {
|
|
|
1180
1180
|
["hair_back", "without it the silhouette is flat behind the face"],
|
|
1181
1181
|
[
|
|
1182
1182
|
"nose",
|
|
1183
|
-
"without it the head still turns on the
|
|
1183
|
+
"without it the head still turns on the default profile, but there is no nose to lead it, and no turn fit to the art (`turnTargets` is inert, no `turn` report)"
|
|
1184
1184
|
]
|
|
1185
1185
|
]) {
|
|
1186
1186
|
if (layers[role] === void 0) warnings.push(`${role}: missing \u2014 ${why}.`);
|
|
@@ -1796,7 +1796,7 @@ async function composeLayersFromParts(input) {
|
|
|
1796
1796
|
var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
1797
1797
|
var import_zod = require("zod");
|
|
1798
1798
|
function createIkiMcpServer() {
|
|
1799
|
-
const server = new import_mcp.McpServer({ name: "iki", version: "0.
|
|
1799
|
+
const server = new import_mcp.McpServer({ name: "iki", version: "0.14.0" });
|
|
1800
1800
|
server.registerTool(
|
|
1801
1801
|
"validate_iki",
|
|
1802
1802
|
{
|
|
@@ -1884,7 +1884,7 @@ function createIkiMcpServer() {
|
|
|
1884
1884
|
noseShift: import_zod.z.number().optional(),
|
|
1885
1885
|
mouthShift: import_zod.z.number().optional()
|
|
1886
1886
|
}).passthrough().optional().describe(
|
|
1887
|
-
"What the head turn is fitted to, as `measure_turn_reference` reports it off a front/turned reference pair. `eyeShift` (and the optional `noseShift`/`mouthShift`) is how far that feature slides across the head at full turn, as a fraction of the head's half-width \u2014 a MAGNITUDE: the rig turns both ways, so the sign is ignored. `farEyeRatio` is the far/near eye width at full turn over that same ratio at rest, `silhouetteRatio` the head's half-width turned over at rest. The half-width the shifts are fractions of is measured off the layers themselves, so it is not an input. An omitted field leaves that part of the turn at the
|
|
1887
|
+
"What the head turn is fitted to, as `measure_turn_reference` reports it off a front/turned reference pair. `eyeShift` (and the optional `noseShift`/`mouthShift`) is how far that feature slides across the head at full turn, as a fraction of the head's half-width \u2014 a MAGNITUDE: the rig turns both ways, so the sign is ignored. `farEyeRatio` is the far/near eye width at full turn over that same ratio at rest, `silhouetteRatio` the head's half-width turned over at rest. The half-width the shifts are fractions of is measured off the layers themselves, so it is not an input. An omitted field leaves that part of the turn at the profile the rig defaults to. A passed `eyeShift` is fitted by the turn's amount and clamped to the room the art leaves the far eye \u2014 the face plate's edge, or the bangs' side strand over the far iris (the result's `turn.clamped` lists every clamped field, `turn.achieved` what the rig reaches, and `turn.strandOverlap` how much of a far iris the bangs still cover). A passed `silhouetteRatio` is clamped too, only on a face drawn without hair and with ear islands, where narrowing the head that far would no longer cover the far ear's slide. Any other passed target this layer set cannot reach comes back as `INVALID: \u2026` naming the field and the attainable range, since it is a measurement rather than a preference. A field not named here is refused the same way."
|
|
1888
1888
|
),
|
|
1889
1889
|
style: import_zod.z.object({
|
|
1890
1890
|
turn: import_zod.z.number().optional(),
|
|
@@ -1894,7 +1894,7 @@ function createIkiMcpServer() {
|
|
|
1894
1894
|
blink: import_zod.z.number().optional(),
|
|
1895
1895
|
sway: import_zod.z.number().optional()
|
|
1896
1896
|
}).passthrough().optional().describe(
|
|
1897
|
-
"Per-character tuning from the
|
|
1897
|
+
"Per-character tuning from the profile the rig defaults to: `turn` scales the whole head turn (plate, features, hair and the eyes' foreshortening; 0..3, 1 = the profile; ignored when `turnTargets.eyeShift` is given), `featureLead` how far the features lead the face plate (0..3, 1 = the profile), `hairFollow` the front hair's share of the face's turn (0..2, profile 1), `outlineFollow` its outer edge's share where the front hair draws the head's outline (0..2, profile 0: the outline holds), `blink` how far the upper lid comes down over the eye's height (0.1..1, profile 0.6), `sway` the hair sway amplitude (0..5, 1 = the profile). A value out of range, or a knob not named here, comes back as `INVALID: \u2026`."
|
|
1898
1898
|
)
|
|
1899
1899
|
}
|
|
1900
1900
|
},
|
|
@@ -1916,7 +1916,7 @@ function createIkiMcpServer() {
|
|
|
1916
1916
|
server.registerTool(
|
|
1917
1917
|
"compose_layers_from_parts",
|
|
1918
1918
|
{
|
|
1919
|
-
description: "Composes AI-generated part PNGs into canvas-aligned, role-named PNG layers on disk, ready for auto_rig_from_layers (the eyewhite split, alpha-trim/white-key, and placement pipeline the character-generation skill needs), with the same geometry report measure_layers returns standalone included inline. face, mouth, eyewhite, iris, brow, hair_front are required; hair_back, body, mouth_open, blush (one blush.png makes the blush_L/blush_R pair) and nose are optional \u2014 without a nose layer the head still turns on the rig's
|
|
1919
|
+
description: "Composes AI-generated part PNGs into canvas-aligned, role-named PNG layers on disk, ready for auto_rig_from_layers (the eyewhite split, alpha-trim/white-key, and placement pipeline the character-generation skill needs), with the same geometry report measure_layers returns standalone included inline. face, mouth, eyewhite, iris, brow, hair_front are required; hair_back, body, mouth_open, blush (one blush.png makes the blush_L/blush_R pair) and nose are optional \u2014 without a nose layer the head still turns on the rig's default profile, but it has no nose to lead the turn, and `auto_rig_from_layers` fits no turn to the art (`turnTargets` is inert, no `turn` report). A nose whose dense core is a speck \u2014 under a quarter of its trimmed part's width or height, such as a lone nostril mark or highlight \u2014 is sized and placed whole, and the inline report warns of it. A light mark drawn detached above the eye white, such as a double-eyelid crease, is dropped from the sclera (the iris's clip); dark strokes there stay lash ink.",
|
|
1920
1920
|
inputSchema: {
|
|
1921
1921
|
partsDir: import_zod.z.string().describe(
|
|
1922
1922
|
"Directory of the source part PNGs (resolved against cwd)."
|