@ikijs/mcp 0.16.0 → 0.17.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-J4J3D4ZR.mjs";
4
+ } from "./chunk-NNFD636K.mjs";
5
5
 
6
6
  // src/cli.ts
7
7
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/dist/index.d.mts CHANGED
@@ -26,6 +26,13 @@ interface IkiSummary {
26
26
  deformer?: string;
27
27
  }[];
28
28
  deformers: DeformerSummary[];
29
+ /** Each expression's id and the description a host picks it by. */
30
+ expressions: {
31
+ id: string;
32
+ description: string;
33
+ }[];
34
+ /** Each motion group's clip descriptions, by clip index. */
35
+ motions: Record<string, string[]>;
29
36
  }
30
37
  interface DeformerSummary {
31
38
  id: string;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,13 @@ interface IkiSummary {
26
26
  deformer?: string;
27
27
  }[];
28
28
  deformers: DeformerSummary[];
29
+ /** Each expression's id and the description a host picks it by. */
30
+ expressions: {
31
+ id: string;
32
+ description: string;
33
+ }[];
34
+ /** Each motion group's clip descriptions, by clip index. */
35
+ motions: Record<string, string[]>;
29
36
  }
30
37
  interface DeformerSummary {
31
38
  id: string;
package/dist/index.js CHANGED
@@ -304,12 +304,24 @@ function describeIki(model) {
304
304
  return entry;
305
305
  }
306
306
  );
307
+ const expressions = (m.expressions ?? []).map((e) => ({
308
+ id: e.id,
309
+ description: e.description
310
+ }));
311
+ const motions = Object.fromEntries(
312
+ Object.entries(m.motions ?? {}).map(([group, clips]) => [
313
+ group,
314
+ clips.map((c) => c.description)
315
+ ])
316
+ );
307
317
  const summary = {
308
318
  name: m.name,
309
319
  canvas: { width: m.canvas.width, height: m.canvas.height },
310
320
  parameters,
311
321
  parts,
312
- deformers
322
+ deformers,
323
+ expressions,
324
+ motions
313
325
  };
314
326
  return { ok: true, summary };
315
327
  }
@@ -370,6 +382,10 @@ var STANDARD_PARAMETER_INFO = [
370
382
  id: import_format.StandardParameter.BrowRightAngle,
371
383
  description: "Right brow tilt/angle (-1 .. 1)."
372
384
  },
385
+ {
386
+ id: import_format.StandardParameter.Cheek,
387
+ description: "Cheek blush strength (0 .. 1), raised by an expression."
388
+ },
373
389
  {
374
390
  id: import_format.StandardParameter.HairSwayX,
375
391
  description: "Horizontal hair-sway driver. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
@@ -1254,8 +1270,7 @@ var DEFAULT_LAYOUT = {
1254
1270
  // eye's centre and 55 px under its row, above the nose tip: on bob's face,
1255
1271
  // which narrows fast below the eye row, a 2:1 blush there stays on the
1256
1272
  // cheek through the turn, where one 26 px further out reached the ears.
1257
- // OPTIONAL, and decoration: a parts dir without it composes, and nothing
1258
- // reports it missing.
1273
+ // OPTIONAL: a parts dir without it composes, and nothing reports it missing.
1259
1274
  blush_L: { src: "blush.png", cx: 641, cy: 530, w: 56, optional: true, mirror: true },
1260
1275
  // prettier-ignore
1261
1276
  blush_R: { src: "blush.png", cx: 459, cy: 530, w: 56, optional: true, mirror: false },
@@ -1857,7 +1872,7 @@ async function composeLayersFromParts(input) {
1857
1872
  var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
1858
1873
  var import_zod = require("zod");
1859
1874
  function createIkiMcpServer() {
1860
- const server = new import_mcp.McpServer({ name: "iki", version: "0.16.0" });
1875
+ const server = new import_mcp.McpServer({ name: "iki", version: "0.17.0" });
1861
1876
  server.registerTool(
1862
1877
  "validate_iki",
1863
1878
  {
@@ -1884,7 +1899,7 @@ function createIkiMcpServer() {
1884
1899
  server.registerTool(
1885
1900
  "describe_iki",
1886
1901
  {
1887
- description: "Summarizes a valid model's canvas/params/parts/deformers; returns an error for an invalid model.",
1902
+ description: "Summarizes a valid model's canvas/params/parts/deformers and its expressions and motion clips (with the descriptions a host picks them by); returns an error for an invalid model.",
1888
1903
  inputSchema: {
1889
1904
  model: import_zod.z.unknown().describe("Raw .iki model JSON (object or JSON string)")
1890
1905
  }