@ikijs/mcp 0.19.0 → 0.19.1
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 +1 -1
- package/dist/{chunk-E6DLZPCX.mjs → chunk-RBQJ5FJA.mjs} +4 -4
- package/dist/chunk-RBQJ5FJA.mjs.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-E6DLZPCX.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ The `model` input for `validate_iki` and `describe_iki` accepts either a plain J
|
|
|
22
22
|
|
|
23
23
|
Turns a set of role-named, full-canvas transparent PNG layers into a renderable, validated `.iki` model with the textures atlased and embedded as a base64 `data:image/png` URI. Under `quantizeColors` a `nose` layer is the exception: the palette rims a soft-shaded nose's feather, so the nose is atlased alone on a second, lossless page. The written model declares the head motions Nod, Shake and Tilt and up to six default expressions (smile, laugh, angry, sad, surprised, shy; `shy` needs a blush, `angry` and `sad` need brows), each with a description a host picks by; with a `blush_L`/`blush_R` layer it also declares `ParamCheek`, which fades the blush from faint at rest to as drawn.
|
|
24
24
|
|
|
25
|
-
- **`layers`** — array of `{ path, fileName? }`. `path` is a PNG file path (resolved against the server's working directory); the role is derived from `fileName ?? basename(path)`. Required roles: `face`, `eye_L`, `eye_R`, `mouth`. Optional roles include `iris_L`/`iris_R`, `brow_L`/`brow_R`, `hair_front`/`hair_back`, `lash_L`/`lash_R`, `lash_lower_L`/`lash_lower_R`, `body`, `arm_L`/`arm_R`, etc. An arm — the whole arm drawn hanging, its shoulder at the top — needs the `body` (it hangs from the body's shoulder) and becomes an upper arm and a forearm sharing its crop, on `ParamArmL/R` (the shoulder) and `ParamElbowL/R`. All layers must share the same canvas size (taken from the first layer).
|
|
25
|
+
- **`layers`** — array of `{ path, fileName? }`. `path` is a PNG file path (resolved against the server's working directory); the role is derived from `fileName ?? basename(path)`. Required roles: `face`, `eye_L`, `eye_R`, `mouth`. Optional roles include `iris_L`/`iris_R`, `brow_L`/`brow_R`, `hair_front`/`hair_back`, `lash_L`/`lash_R`, `lash_lower_L`/`lash_lower_R`, `body`, `arm_L`/`arm_R`, etc. An arm — the whole arm drawn hanging, its shoulder at the top — needs the `body` (it hangs from the body's shoulder) and becomes an elbow cap, an upper arm and a forearm sharing its crop, on `ParamArmL/R` (the shoulder) and `ParamElbowL/R`. All layers must share the same canvas size (taken from the first layer).
|
|
26
26
|
- **`outputPath`** — optional `.iki` output path (resolved against the working directory; the parent directory must already exist, and the path must end in `.iki`). Defaults to `auto-rigged-model.iki`.
|
|
27
27
|
- **`turnTargets`** — optional head-turn cues to fit the rig to, in the units `measure_turn_reference` reports off a front/turned reference pair: `eyeShift` (plus `noseShift` and `mouthShift`) is how far that feature slides across the head at full turn, as a fraction of the head's half-width — a **magnitude**, since the rig turns both ways and the sign is the turn's own business; `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. An omitted field leaves that part of the turn at the profile the rig defaults to. An `eyeShift` you pass is fitted by the turn's amount and _clamped_ when it runs past the room the art leaves the far eye — the face plate's edge, or the bangs' side strand over the far iris — since that room is a fact about these layers, not about the reference. Any other target you **do** pass that it cannot reach is refused, because that number is a measurement rather than a preference. A layer set without a `nose` still turns its head, on the profile, but fits no target: `turnTargets` is then inert and the result carries no `turn`.
|
|
28
28
|
- **`style`** — optional per-character tuning from the profile the rig defaults to: `turn` (the whole head turn, the eyes' foreshortening with it, 0..3, 1 = the profile; ignored when `turnTargets.eyeShift` is given), `featureLead` (how far the features lead the face plate, 0..3), `hairFollow` (the front hair's share of the face's turn, 0..2, profile 1), `outlineFollow` (its outer edge's share where it 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) and `sway` (the hair sway amplitude, 0..5). A value out of range, or a knob not named here, is refused.
|
|
@@ -386,11 +386,11 @@ var STANDARD_PARAMETER_INFO = [
|
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
id: StandardParameter.ElbowLeft,
|
|
389
|
-
description: "Left elbow, degrees; positive bends the forearm the
|
|
389
|
+
description: "Left elbow, degrees; positive bends the forearm toward the body (the flexion of a hanging arm), negative a little outward (mirrored on the right)."
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
id: StandardParameter.ElbowRight,
|
|
393
|
-
description: "Right elbow, degrees; positive bends the forearm the
|
|
393
|
+
description: "Right elbow, degrees; positive bends the forearm toward the body (the flexion of a hanging arm), negative a little outward (mirrored on the left)."
|
|
394
394
|
}
|
|
395
395
|
];
|
|
396
396
|
function listStandardParameters() {
|
|
@@ -2086,7 +2086,7 @@ async function composeLayersFromParts(input) {
|
|
|
2086
2086
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2087
2087
|
import { z } from "zod";
|
|
2088
2088
|
function createIkiMcpServer() {
|
|
2089
|
-
const server = new McpServer({ name: "iki", version: "0.19.
|
|
2089
|
+
const server = new McpServer({ name: "iki", version: "0.19.1" });
|
|
2090
2090
|
server.registerTool(
|
|
2091
2091
|
"validate_iki",
|
|
2092
2092
|
{
|
|
@@ -2331,4 +2331,4 @@ export {
|
|
|
2331
2331
|
composeLayersFromParts,
|
|
2332
2332
|
createIkiMcpServer
|
|
2333
2333
|
};
|
|
2334
|
-
//# sourceMappingURL=chunk-
|
|
2334
|
+
//# sourceMappingURL=chunk-RBQJ5FJA.mjs.map
|