@ikijs/mcp 0.16.0 → 0.17.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/dist/cli.js CHANGED
@@ -288,12 +288,24 @@ function describeIki(model) {
288
288
  return entry;
289
289
  }
290
290
  );
291
+ const expressions = (m.expressions ?? []).map((e) => ({
292
+ id: e.id,
293
+ description: e.description
294
+ }));
295
+ const motions = Object.fromEntries(
296
+ Object.entries(m.motions ?? {}).map(([group, clips]) => [
297
+ group,
298
+ clips.map((c) => c.description)
299
+ ])
300
+ );
291
301
  const summary = {
292
302
  name: m.name,
293
303
  canvas: { width: m.canvas.width, height: m.canvas.height },
294
304
  parameters,
295
305
  parts,
296
- deformers
306
+ deformers,
307
+ expressions,
308
+ motions
297
309
  };
298
310
  return { ok: true, summary };
299
311
  }
@@ -354,6 +366,10 @@ var STANDARD_PARAMETER_INFO = [
354
366
  id: import_format.StandardParameter.BrowRightAngle,
355
367
  description: "Right brow tilt/angle (-1 .. 1)."
356
368
  },
369
+ {
370
+ id: import_format.StandardParameter.Cheek,
371
+ description: "Cheek blush strength (0 .. 1), raised by an expression."
372
+ },
357
373
  {
358
374
  id: import_format.StandardParameter.HairSwayX,
359
375
  description: "Horizontal hair-sway driver. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
@@ -1238,8 +1254,7 @@ var DEFAULT_LAYOUT = {
1238
1254
  // eye's centre and 55 px under its row, above the nose tip: on bob's face,
1239
1255
  // which narrows fast below the eye row, a 2:1 blush there stays on the
1240
1256
  // cheek through the turn, where one 26 px further out reached the ears.
1241
- // OPTIONAL, and decoration: a parts dir without it composes, and nothing
1242
- // reports it missing.
1257
+ // OPTIONAL: a parts dir without it composes, and nothing reports it missing.
1243
1258
  blush_L: { src: "blush.png", cx: 641, cy: 530, w: 56, optional: true, mirror: true },
1244
1259
  // prettier-ignore
1245
1260
  blush_R: { src: "blush.png", cx: 459, cy: 530, w: 56, optional: true, mirror: false },
@@ -1839,7 +1854,7 @@ async function composeLayersFromParts(input) {
1839
1854
 
1840
1855
  // src/server.ts
1841
1856
  function createIkiMcpServer() {
1842
- const server = new import_mcp.McpServer({ name: "iki", version: "0.16.0" });
1857
+ const server = new import_mcp.McpServer({ name: "iki", version: "0.17.1" });
1843
1858
  server.registerTool(
1844
1859
  "validate_iki",
1845
1860
  {
@@ -1866,7 +1881,7 @@ function createIkiMcpServer() {
1866
1881
  server.registerTool(
1867
1882
  "describe_iki",
1868
1883
  {
1869
- description: "Summarizes a valid model's canvas/params/parts/deformers; returns an error for an invalid model.",
1884
+ 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.",
1870
1885
  inputSchema: {
1871
1886
  model: import_zod.z.unknown().describe("Raw .iki model JSON (object or JSON string)")
1872
1887
  }