@ikijs/mcp 0.27.0 → 0.28.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.js CHANGED
@@ -34,7 +34,7 @@ var import_zod = require("zod");
34
34
  // src/tools.ts
35
35
  var import_node_fs4 = require("fs");
36
36
  var import_node_path4 = __toESM(require("path"));
37
- var import_format7 = require("@ikijs/format");
37
+ var import_format9 = require("@ikijs/format");
38
38
  var import_editor3 = require("@ikijs/editor");
39
39
 
40
40
  // ../engine/src/math.ts
@@ -509,6 +509,10 @@ var SWAY_Y_AMP_DEG = 1.6;
509
509
  var SWAY_Y_PERIOD_MS = 7300;
510
510
  var SWAY_Z_AMP_DEG = 1.1;
511
511
  var SWAY_Z_PERIOD_MS = 11300;
512
+ var AMBIENT_AMP_A = 0.6;
513
+ var AMBIENT_PERIOD_A_MS = 2900;
514
+ var AMBIENT_AMP_B = 0.4;
515
+ var AMBIENT_PERIOD_B_MS = 4300;
512
516
  function blinkEnvelope(phase) {
513
517
  const ms = phase * BLINK_DURATION_MS;
514
518
  if (ms <= 0) return 1;
@@ -540,7 +544,8 @@ var IdleMotion = class {
540
544
  import_format.StandardParameter.EyeballY,
541
545
  import_format.StandardParameter.AngleX,
542
546
  import_format.StandardParameter.AngleY,
543
- import_format.StandardParameter.AngleZ
547
+ import_format.StandardParameter.AngleZ,
548
+ import_format.StandardParameter.AmbientSway
544
549
  ];
545
550
  sink;
546
551
  rng;
@@ -604,6 +609,7 @@ var IdleMotion = class {
604
609
  this.sink(import_format.StandardParameter.AngleX, this.swayX());
605
610
  this.sink(import_format.StandardParameter.AngleY, this.swayY());
606
611
  this.sink(import_format.StandardParameter.AngleZ, this.swayZ());
612
+ this.sink(import_format.StandardParameter.AmbientSway, this.ambientSway());
607
613
  }
608
614
  // ---------------------------------------------------------------------------
609
615
  // Private helpers
@@ -617,6 +623,7 @@ var IdleMotion = class {
617
623
  this.sink(import_format.StandardParameter.AngleX, 0);
618
624
  this.sink(import_format.StandardParameter.AngleY, 0);
619
625
  this.sink(import_format.StandardParameter.AngleZ, 0);
626
+ this.sink(import_format.StandardParameter.AmbientSway, 0);
620
627
  }
621
628
  /** Returns the current eye-open value (0..1) and advances blink state. */
622
629
  advanceBlink() {
@@ -652,6 +659,11 @@ var IdleMotion = class {
652
659
  swayZ() {
653
660
  return SWAY_Z_AMP_DEG * Math.sin(2 * Math.PI * this.clockMs / SWAY_Z_PERIOD_MS);
654
661
  }
662
+ /** Ambient sway (-1..1), pure function of the internal clock. */
663
+ ambientSway() {
664
+ const t = 2 * Math.PI * this.clockMs;
665
+ return AMBIENT_AMP_A * Math.sin(t / AMBIENT_PERIOD_A_MS) + AMBIENT_AMP_B * Math.sin(t / AMBIENT_PERIOD_B_MS);
666
+ }
655
667
  /** Ease gaze current toward target; pick a new target on the internal clock. */
656
668
  advanceGaze(dt) {
657
669
  if (this.clockMs >= this.nextGazeRetargetMs) {
@@ -667,6 +679,7 @@ var IdleMotion = class {
667
679
  };
668
680
 
669
681
  // ../engine/src/physics-motion.ts
682
+ var import_format2 = require("@ikijs/format");
670
683
  function signedNormalized(value, param) {
671
684
  const rest = clamp(param.default, param.min, param.max);
672
685
  const den = Math.max(Math.abs(param.max - rest), Math.abs(rest - param.min));
@@ -684,6 +697,7 @@ var PhysicsMotion = class {
684
697
  resets;
685
698
  resetCounts;
686
699
  rigs;
700
+ inputs;
687
701
  read;
688
702
  sink;
689
703
  params;
@@ -692,10 +706,17 @@ var PhysicsMotion = class {
692
706
  clock = new FixedStepClock();
693
707
  constructor(rigs, params, read, sink) {
694
708
  this.rigs = rigs;
709
+ this.inputs = rigs.map(
710
+ (rig) => (0, import_format2.physicsInputs)(rig).map(({ parameter, weight, mode }) => ({
711
+ parameter,
712
+ weight,
713
+ lag: mode === "lag"
714
+ }))
715
+ );
695
716
  this.read = read;
696
717
  this.sink = sink;
697
718
  this.params = new Map(params.map((p) => [p.id, p]));
698
- this.state = rigs.map(() => ({ x: 0, v: 0 }));
719
+ this.state = rigs.map(() => ({ x: 0, v: 0, lag: 0 }));
699
720
  this.drivenParameterIds = rigs.map((rig) => rig.output.parameter);
700
721
  this.resetCounts = rigs.map(() => 0);
701
722
  this.resets = this.resetCounts;
@@ -704,8 +725,12 @@ var PhysicsMotion = class {
704
725
  * Advance every rig to the given wall-clock timestamp (milliseconds).
705
726
  *
706
727
  * First call: seed each spring to rest AT its current target (so a model
707
- * loaded with a nonzero input does not kick), emit the resting output, and
708
- * return without integrating — mirroring IdleMotion's first-frame behavior.
728
+ * loaded with a nonzero input does not kick: a lag input emits rest, a follow
729
+ * input its value), emit that output, and return without integrating —
730
+ * mirroring IdleMotion's first-frame behavior.
731
+ *
732
+ * A non-finite `nowMs` after that is a dropped frame: every rig re-emits its
733
+ * last output from its stored state without reading its inputs.
709
734
  *
710
735
  * Subsequent calls: {@link FixedStepClock} folds the clamped frame delta into
711
736
  * its accumulator and returns how many {@link FIXED_DT_S} sub-steps are due;
@@ -718,35 +743,52 @@ var PhysicsMotion = class {
718
743
  this.clock.advance(nowMs);
719
744
  for (let i = 0; i < this.rigs.length; i++) {
720
745
  const st = this.state[i];
721
- st.x = this.targetFor(this.rigs[i]);
746
+ const { target: target2, lag } = this.targetFor(i);
747
+ st.x = target2;
722
748
  st.v = 0;
749
+ st.lag = lag;
723
750
  this.emit(i, st);
724
751
  }
725
752
  return;
726
753
  }
754
+ if (!Number.isFinite(nowMs)) {
755
+ for (let i = 0; i < this.rigs.length; i++) this.emit(i, this.state[i]);
756
+ return;
757
+ }
727
758
  const steps = this.clock.advance(nowMs);
728
- const targets = this.rigs.map((rig) => this.targetFor(rig));
759
+ const targets = this.rigs.map((_, i) => this.targetFor(i));
729
760
  for (let s = 0; s < steps; s++) {
730
761
  for (let i = 0; i < this.rigs.length; i++) {
731
- this.step(this.rigs[i], this.state[i], targets[i]);
762
+ this.step(this.rigs[i], this.state[i], targets[i].target);
732
763
  }
733
764
  }
734
765
  for (let i = 0; i < this.rigs.length; i++) {
735
766
  const st = this.state[i];
767
+ const { target: target2, lag } = targets[i];
736
768
  if (!Number.isFinite(st.x) || !Number.isFinite(st.v)) {
737
- st.x = Number.isFinite(targets[i]) ? targets[i] : 0;
769
+ st.x = Number.isFinite(target2) ? target2 : 0;
738
770
  st.v = 0;
739
771
  this.resetCounts[i]++;
740
772
  }
773
+ st.lag = lag;
741
774
  this.emit(i, st);
742
775
  }
743
776
  }
744
- /** Spring target = signed-normalized input value × weight. */
745
- targetFor(rig) {
746
- const param = this.params.get(rig.input.parameter);
747
- const value = this.read(rig.input.parameter);
748
- const norm = param ? signedNormalized(value, param) : 0;
749
- return norm * rig.input.weight;
777
+ /**
778
+ * Rig `index`'s spring target `T` = Σ signed-normalized input value × weight,
779
+ * and `L`, the lag inputs' share of it. Reads each input once.
780
+ */
781
+ targetFor(index) {
782
+ let target2 = 0;
783
+ let lag = 0;
784
+ for (const input of this.inputs[index]) {
785
+ const param = this.params.get(input.parameter);
786
+ const value = this.read(input.parameter);
787
+ const share = (param ? signedNormalized(value, param) : 0) * input.weight;
788
+ target2 += share;
789
+ if (input.lag) lag += share;
790
+ }
791
+ return { target: target2, lag };
750
792
  }
751
793
  /** One semi-implicit (symplectic) Euler sub-step of FIXED_DT_S seconds. */
752
794
  step(rig, st, target2) {
@@ -754,12 +796,12 @@ var PhysicsMotion = class {
754
796
  st.v += accel * FIXED_DT_S;
755
797
  st.x += st.v * FIXED_DT_S;
756
798
  }
757
- /** Write outputDefault + x * scale onto the output param via the sink. */
799
+ /** Write outputDefault + (x − L) * scale onto the output param via the sink. */
758
800
  emit(index, st) {
759
801
  const rig = this.rigs[index];
760
802
  const outParam = this.params.get(rig.output.parameter);
761
803
  const outDefault = outParam ? clamp(outParam.default, outParam.min, outParam.max) : 0;
762
- const value = outDefault + st.x * rig.output.scale;
804
+ const value = outDefault + (st.x - st.lag) * rig.output.scale;
763
805
  const finite = Number.isFinite(value);
764
806
  if (!finite) this.resetCounts[index]++;
765
807
  this.sink(rig.output.parameter, finite ? value : outDefault);
@@ -921,25 +963,25 @@ var HairChainMotion = class {
921
963
  };
922
964
 
923
965
  // ../engine/src/iki-motion.ts
924
- var import_format4 = require("@ikijs/format");
966
+ var import_format5 = require("@ikijs/format");
925
967
 
926
968
  // ../engine/src/clip-player.ts
927
- var import_format2 = require("@ikijs/format");
969
+ var import_format3 = require("@ikijs/format");
928
970
 
929
971
  // ../engine/src/expression-player.ts
930
- var import_format3 = require("@ikijs/format");
972
+ var import_format4 = require("@ikijs/format");
931
973
 
932
974
  // ../engine/src/iki-motion.ts
933
975
  var HEAD_AND_GAZE = /* @__PURE__ */ new Set([
934
- import_format4.StandardParameter.AngleX,
935
- import_format4.StandardParameter.AngleY,
936
- import_format4.StandardParameter.AngleZ,
937
- import_format4.StandardParameter.EyeballX,
938
- import_format4.StandardParameter.EyeballY
976
+ import_format5.StandardParameter.AngleX,
977
+ import_format5.StandardParameter.AngleY,
978
+ import_format5.StandardParameter.AngleZ,
979
+ import_format5.StandardParameter.EyeballX,
980
+ import_format5.StandardParameter.EyeballY
939
981
  ]);
940
982
 
941
983
  // ../engine/src/folds.ts
942
- var import_format5 = require("@ikijs/format");
984
+ var import_format6 = require("@ikijs/format");
943
985
 
944
986
  // ../engine/src/land.ts
945
987
  function staticDeformers(model) {
@@ -999,19 +1041,19 @@ function landPart(landing, store, { worlds, grids }) {
999
1041
  var FLIP = 0;
1000
1042
  var COLLAPSE = 0.1;
1001
1043
  var ANGLES = [
1002
- import_format5.StandardParameter.AngleX,
1003
- import_format5.StandardParameter.AngleY,
1004
- import_format5.StandardParameter.AngleZ,
1005
- import_format5.StandardParameter.BodyAngleX,
1006
- import_format5.StandardParameter.BodyAngleY,
1007
- import_format5.StandardParameter.BodyAngleZ
1044
+ import_format6.StandardParameter.AngleX,
1045
+ import_format6.StandardParameter.AngleY,
1046
+ import_format6.StandardParameter.AngleZ,
1047
+ import_format6.StandardParameter.BodyAngleX,
1048
+ import_format6.StandardParameter.BodyAngleY,
1049
+ import_format6.StandardParameter.BodyAngleZ
1008
1050
  ];
1009
1051
  var CROSSES = [
1010
- [import_format5.StandardParameter.EyeOpenLeft],
1011
- [import_format5.StandardParameter.EyeOpenRight],
1012
- [import_format5.StandardParameter.MouthOpen],
1013
- [import_format5.StandardParameter.ArmLeft, import_format5.StandardParameter.ArmRight],
1014
- [import_format5.StandardParameter.ElbowLeft, import_format5.StandardParameter.ElbowRight]
1052
+ [import_format6.StandardParameter.EyeOpenLeft],
1053
+ [import_format6.StandardParameter.EyeOpenRight],
1054
+ [import_format6.StandardParameter.MouthOpen],
1055
+ [import_format6.StandardParameter.ArmLeft, import_format6.StandardParameter.ArmRight],
1056
+ [import_format6.StandardParameter.ElbowLeft, import_format6.StandardParameter.ElbowRight]
1015
1057
  ];
1016
1058
  function foldPoses(model) {
1017
1059
  const byId = new Map(
@@ -1228,6 +1270,9 @@ function classify(worst) {
1228
1270
  return "ok";
1229
1271
  }
1230
1272
 
1273
+ // ../engine/src/physics-check.ts
1274
+ var import_format7 = require("@ikijs/format");
1275
+
1231
1276
  // ../engine/src/physics-runs.ts
1232
1277
  var FRAME_MS = FIXED_DT_S * 1e3 * (1 + 1e-9);
1233
1278
  var STEP_FRAMES = 300;
@@ -1406,26 +1451,34 @@ function checkPhysics(model) {
1406
1451
  };
1407
1452
  const param = (id) => model.parameters.find((p) => p.id === id);
1408
1453
  const springs = (model.physics ?? []).map((rig) => {
1409
- const input = param(rig.input.parameter);
1454
+ const inputs = (0, import_format7.physicsInputs)(rig).map((i) => param(i.parameter));
1455
+ const ids = inputs.map((p) => p.id);
1410
1456
  const output = param(rig.output.parameter);
1411
- const far = farEnd(input);
1412
- const values = far === void 0 ? {} : { [input.id]: far };
1413
- const reading = stepRun(model, [rig], [], values).get(output.id);
1414
- const step = {
1415
- name: "the step",
1416
- reading,
1417
- displacementPx: displace(output, reading.values),
1418
- values
1419
- };
1457
+ const ranged = inputs.flatMap((input) => {
1458
+ const far = farEnd(input);
1459
+ return far === void 0 ? [] : [{ [input.id]: far }];
1460
+ });
1461
+ const settings = ranged.length === 0 ? [{}] : ranged;
1462
+ const steps = settings.map((values) => {
1463
+ const reading = stepRun(model, [rig], [], values).get(output.id);
1464
+ const setting = inputs.length === 1 ? [] : Object.entries(values).map(([id, v]) => `${id}=${v}`);
1465
+ return {
1466
+ name: ["the step", ...setting].join(" "),
1467
+ reading,
1468
+ displacementPx: displace(output, reading.values),
1469
+ values
1470
+ };
1471
+ });
1420
1472
  const atIdle = idleExcitation(output);
1473
+ const clean = steps.filter((s) => !unstableWhy(output, [s]));
1421
1474
  return target(model, {
1422
1475
  rig: { kind: "spring", id: rig.id },
1423
- input: [input.id],
1476
+ input: ids,
1424
1477
  output,
1425
- step,
1478
+ step: mostMoving(clean.length > 0 ? clean : steps),
1426
1479
  idle: atIdle,
1427
- unstable: springWhy(rig) ?? unstableWhy(output, [step, atIdle]),
1428
- inert: far === void 0 ? `${input.id} has no range` : void 0
1480
+ unstable: springWhy(rig) ?? unstableWhy(output, [...steps, atIdle]),
1481
+ inert: ranged.length === 0 ? `${ids.join(", ")} ${ids.length === 1 ? "has" : "have"} no range` : void 0
1429
1482
  });
1430
1483
  });
1431
1484
  const chains = (model.physicsChains ?? []).flatMap((chain) => {
@@ -1673,7 +1726,7 @@ function ratioText(ratio) {
1673
1726
  // src/render-poses.ts
1674
1727
  var import_node_fs3 = require("fs");
1675
1728
  var import_node_path3 = __toESM(require("path"));
1676
- var import_format6 = require("@ikijs/format");
1729
+ var import_format8 = require("@ikijs/format");
1677
1730
 
1678
1731
  // src/limits.ts
1679
1732
  var import_node_fs = __toESM(require("fs"));
@@ -2174,9 +2227,9 @@ function planRenders(model, requested) {
2174
2227
  }
2175
2228
  const bodyAngles = Object.fromEntries(
2176
2229
  [
2177
- import_format6.StandardParameter.BodyAngleX,
2178
- import_format6.StandardParameter.BodyAngleY,
2179
- import_format6.StandardParameter.BodyAngleZ
2230
+ import_format8.StandardParameter.BodyAngleX,
2231
+ import_format8.StandardParameter.BodyAngleY,
2232
+ import_format8.StandardParameter.BodyAngleZ
2180
2233
  ].filter((id) => model.parameters.some((p) => p.id === id)).map((id) => [id, -10])
2181
2234
  );
2182
2235
  const poses = [
@@ -2262,7 +2315,7 @@ function planRenders(model, requested) {
2262
2315
  whole("full-elbow-r-45", { ParamElbowR: 45 }),
2263
2316
  whole("full-elbow-r-90", { ParamElbowR: 90 })
2264
2317
  );
2265
- if (model.parameters.some((p) => p.id === import_format6.StandardParameter.ArmPoseRight)) {
2318
+ if (model.parameters.some((p) => p.id === import_format8.StandardParameter.ArmPoseRight)) {
2266
2319
  poses.push(
2267
2320
  whole("full-pose-l", { ParamArmPoseL: 1 }),
2268
2321
  whole("full-pose-r", { ParamArmPoseR: 1 }),
@@ -2327,7 +2380,7 @@ async function renderPoses(input) {
2327
2380
  input.modelPath
2328
2381
  );
2329
2382
  const outDir = resolveOutputDir(input.outDir);
2330
- const model = (0, import_format6.loadIkiModel)((0, import_node_fs3.readFileSync)(modelFile, "utf8"));
2383
+ const model = (0, import_format8.loadIkiModel)((0, import_node_fs3.readFileSync)(modelFile, "utf8"));
2331
2384
  const plan = planRenders(model, input.poses);
2332
2385
  const browser = findBrowser();
2333
2386
  if (!browser) return { ok: false, error: NO_BROWSER_MESSAGE };
@@ -2377,7 +2430,7 @@ async function renderPoses(input) {
2377
2430
  physics
2378
2431
  };
2379
2432
  } catch (error) {
2380
- if (error instanceof AutoRigInputError || error instanceof import_format6.IkiFormatError) {
2433
+ if (error instanceof AutoRigInputError || error instanceof import_format8.IkiFormatError) {
2381
2434
  return { ok: false, error: error.message };
2382
2435
  }
2383
2436
  throw error;
@@ -2454,10 +2507,10 @@ async function renderAtlasToDataUri(crops, layout, quantizeColors) {
2454
2507
  // src/tools.ts
2455
2508
  function coerceModel(model) {
2456
2509
  try {
2457
- const parsed = typeof model === "string" ? (0, import_format7.loadIkiModel)(model) : (0, import_format7.parseIkiModel)(model);
2510
+ const parsed = typeof model === "string" ? (0, import_format9.loadIkiModel)(model) : (0, import_format9.parseIkiModel)(model);
2458
2511
  return { ok: true, model: parsed };
2459
2512
  } catch (e) {
2460
- if (e instanceof import_format7.IkiFormatError) return { ok: false, error: e.message };
2513
+ if (e instanceof import_format9.IkiFormatError) return { ok: false, error: e.message };
2461
2514
  throw e;
2462
2515
  }
2463
2516
  }
@@ -2574,115 +2627,119 @@ function describeIkiAt(modelPath) {
2574
2627
  }
2575
2628
  var STANDARD_PARAMETER_INFO = [
2576
2629
  {
2577
- id: import_format7.StandardParameter.MouthOpen,
2630
+ id: import_format9.StandardParameter.MouthOpen,
2578
2631
  description: "Mouth open amount for lip-sync (0 closed .. 1 open)."
2579
2632
  },
2580
2633
  {
2581
- id: import_format7.StandardParameter.MouthForm,
2634
+ id: import_format9.StandardParameter.MouthForm,
2582
2635
  description: "Mouth form / smile (-1 .. 1)."
2583
2636
  },
2584
2637
  {
2585
- id: import_format7.StandardParameter.EyeOpenLeft,
2638
+ id: import_format9.StandardParameter.EyeOpenLeft,
2586
2639
  description: "Left eye open (0 closed .. 1 open). Drive with the right eye for a blink."
2587
2640
  },
2588
2641
  {
2589
- id: import_format7.StandardParameter.EyeOpenRight,
2642
+ id: import_format9.StandardParameter.EyeOpenRight,
2590
2643
  description: "Right eye open (0 closed .. 1 open)."
2591
2644
  },
2592
2645
  {
2593
- id: import_format7.StandardParameter.EyeballX,
2646
+ id: import_format9.StandardParameter.EyeballX,
2594
2647
  description: "Eyeball gaze, horizontal (-1 .. 1)."
2595
2648
  },
2596
2649
  {
2597
- id: import_format7.StandardParameter.EyeballY,
2650
+ id: import_format9.StandardParameter.EyeballY,
2598
2651
  description: "Eyeball gaze, vertical (-1 .. 1)."
2599
2652
  },
2600
2653
  {
2601
- id: import_format7.StandardParameter.AngleX,
2654
+ id: import_format9.StandardParameter.AngleX,
2602
2655
  description: "Head angle, horizontal degrees."
2603
2656
  },
2604
2657
  {
2605
- id: import_format7.StandardParameter.AngleY,
2658
+ id: import_format9.StandardParameter.AngleY,
2606
2659
  description: "Head angle, vertical degrees."
2607
2660
  },
2608
2661
  {
2609
- id: import_format7.StandardParameter.AngleZ,
2662
+ id: import_format9.StandardParameter.AngleZ,
2610
2663
  description: "Head tilt / roll degrees; positive tilts the top of the head toward the viewer's right (clockwise), as in Live2D."
2611
2664
  },
2612
2665
  {
2613
- id: import_format7.StandardParameter.BodyAngleX,
2666
+ id: import_format9.StandardParameter.BodyAngleX,
2614
2667
  description: "Body turn, degrees (-10 .. 10); positive turns the body toward the viewer's right, as AngleX does the head."
2615
2668
  },
2616
2669
  {
2617
- id: import_format7.StandardParameter.BodyAngleY,
2670
+ id: import_format9.StandardParameter.BodyAngleY,
2618
2671
  description: "Body lean, degrees (-10 .. 10); positive moves the upper body up, negative bows."
2619
2672
  },
2620
2673
  {
2621
- id: import_format7.StandardParameter.BodyAngleZ,
2674
+ id: import_format9.StandardParameter.BodyAngleZ,
2622
2675
  description: "Body tilt, degrees (-10 .. 10); positive tilts the top toward the viewer's right (clockwise), as AngleZ does the head."
2623
2676
  },
2624
2677
  {
2625
- id: import_format7.StandardParameter.Breath,
2678
+ id: import_format9.StandardParameter.Breath,
2626
2679
  description: "Idle breath (0 .. 1), cycled by the host."
2627
2680
  },
2628
2681
  {
2629
- id: import_format7.StandardParameter.BrowLeftY,
2682
+ id: import_format9.StandardParameter.AmbientSway,
2683
+ description: "Ambient sway (-1 .. 1): a slow zero-mean drift the idle writes for physics rigs to follow (the auto-rig's hair in idle). Not a wind: no bias. Stays procedural under a declared Idle group, as Breath does."
2684
+ },
2685
+ {
2686
+ id: import_format9.StandardParameter.BrowLeftY,
2630
2687
  description: "Left brow raise/lower (-1 .. 1)."
2631
2688
  },
2632
2689
  {
2633
- id: import_format7.StandardParameter.BrowRightY,
2690
+ id: import_format9.StandardParameter.BrowRightY,
2634
2691
  description: "Right brow raise/lower (-1 .. 1)."
2635
2692
  },
2636
2693
  {
2637
- id: import_format7.StandardParameter.BrowLeftAngle,
2694
+ id: import_format9.StandardParameter.BrowLeftAngle,
2638
2695
  description: "Left brow tilt/angle (-1 .. 1)."
2639
2696
  },
2640
2697
  {
2641
- id: import_format7.StandardParameter.BrowRightAngle,
2698
+ id: import_format9.StandardParameter.BrowRightAngle,
2642
2699
  description: "Right brow tilt/angle (-1 .. 1)."
2643
2700
  },
2644
2701
  {
2645
- id: import_format7.StandardParameter.Cheek,
2702
+ id: import_format9.StandardParameter.Cheek,
2646
2703
  description: "Cheek blush strength (0 .. 1), raised by an expression."
2647
2704
  },
2648
2705
  {
2649
- id: import_format7.StandardParameter.HairSwayX,
2706
+ id: import_format9.StandardParameter.HairSwayX,
2650
2707
  description: "Horizontal hair-sway driver. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2651
2708
  },
2652
2709
  {
2653
- id: import_format7.StandardParameter.HairSwayZ,
2710
+ id: import_format9.StandardParameter.HairSwayZ,
2654
2711
  description: "Hair-sway driver behind a head tilt. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2655
2712
  },
2656
2713
  {
2657
- id: import_format7.StandardParameter.ArmLeft,
2714
+ id: import_format9.StandardParameter.ArmLeft,
2658
2715
  description: "Left shoulder, degrees; positive raises the arm outward (mirrored on the right)."
2659
2716
  },
2660
2717
  {
2661
- id: import_format7.StandardParameter.ArmRight,
2718
+ id: import_format9.StandardParameter.ArmRight,
2662
2719
  description: "Right shoulder, degrees; positive raises the arm outward (mirrored on the left)."
2663
2720
  },
2664
2721
  {
2665
- id: import_format7.StandardParameter.ElbowLeft,
2722
+ id: import_format9.StandardParameter.ElbowLeft,
2666
2723
  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)."
2667
2724
  },
2668
2725
  {
2669
- id: import_format7.StandardParameter.ElbowRight,
2726
+ id: import_format9.StandardParameter.ElbowRight,
2670
2727
  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)."
2671
2728
  },
2672
2729
  {
2673
- id: import_format7.StandardParameter.ArmPoseLeft,
2730
+ id: import_format9.StandardParameter.ArmPoseLeft,
2674
2731
  description: "Left pose-forearm switch, 0..1; 0 the hanging forearm, 1 the drawn pose forearm, between them a crossfade of the two. Declared by auto-rigged models with a pose forearm."
2675
2732
  },
2676
2733
  {
2677
- id: import_format7.StandardParameter.ArmPoseRight,
2734
+ id: import_format9.StandardParameter.ArmPoseRight,
2678
2735
  description: "Right pose-forearm switch, 0..1; 0 the hanging forearm, 1 the drawn pose forearm, between them a crossfade of the two. Declared by auto-rigged models with a pose forearm."
2679
2736
  },
2680
2737
  {
2681
- id: import_format7.StandardParameter.ArmPoseAngleLeft,
2738
+ id: import_format9.StandardParameter.ArmPoseAngleLeft,
2682
2739
  description: "Left pose forearm's own small rotation about the elbow, degrees; positive tips the raised hand outward, away from the body (mirrored on the right)."
2683
2740
  },
2684
2741
  {
2685
- id: import_format7.StandardParameter.ArmPoseAngleRight,
2742
+ id: import_format9.StandardParameter.ArmPoseAngleRight,
2686
2743
  description: "Right pose forearm's own small rotation about the elbow, degrees; positive tips the raised hand outward, away from the body (mirrored on the left)."
2687
2744
  }
2688
2745
  ];
@@ -2882,7 +2939,7 @@ async function autoRigFromLayers(input) {
2882
2939
  patched.parts.find((p) => p.id === partId).texture.index = 1;
2883
2940
  }
2884
2941
  }
2885
- const finalModel = (0, import_format7.parseIkiModel)(patched);
2942
+ const finalModel = (0, import_format9.parseIkiModel)(patched);
2886
2943
  writeFileAtomic(outPath, JSON.stringify(finalModel));
2887
2944
  const folds = checkModelFolds(finalModel);
2888
2945
  const physics = checkPhysics(finalModel);
@@ -5601,7 +5658,7 @@ function formatPatchReports(reports) {
5601
5658
  });
5602
5659
  }
5603
5660
  function createIkiMcpServer() {
5604
- const server = new import_mcp.McpServer({ name: "iki", version: "0.27.0" });
5661
+ const server = new import_mcp.McpServer({ name: "iki", version: "0.28.0" });
5605
5662
  server.registerTool(
5606
5663
  "validate_iki",
5607
5664
  {