@ikijs/mcp 0.28.0 → 0.29.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-D2OLX5S7.mjs";
4
+ } from "./chunk-IG2FZKTW.mjs";
5
5
 
6
6
  // src/cli.ts
7
7
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/dist/index.js CHANGED
@@ -487,6 +487,14 @@ var FixedStepClock = class {
487
487
  get isSeedFrame() {
488
488
  return this.prevNowMs === void 0;
489
489
  }
490
+ /**
491
+ * Time carried in the accumulator, in seconds: how far the frame's timestamp is
492
+ * past the last whole sub-step. Drivers extrapolate their state by it so what
493
+ * they emit is the state at the frame's time, not at the last sub-step.
494
+ */
495
+ get remainderS() {
496
+ return this.accumulatorS;
497
+ }
490
498
  /**
491
499
  * Fold `nowMs` into the accumulator and return how many {@link FIXED_DT_S}
492
500
  * sub-steps to run this frame. On the seed frame it only records the
@@ -822,7 +830,8 @@ var PhysicsMotion = class {
822
830
  const rig = this.rigs[index];
823
831
  const outParam = this.params.get(rig.output.parameter);
824
832
  const outDefault = outParam ? clamp(outParam.default, outParam.min, outParam.max) : 0;
825
- const value = outDefault + (st.x - st.lag) * rig.output.scale;
833
+ const x = st.x + st.v * this.clock.remainderS;
834
+ const value = outDefault + (x - st.lag) * rig.output.scale;
826
835
  const finite = Number.isFinite(value);
827
836
  if (!finite) this.resetCounts[index]++;
828
837
  this.sink(rig.output.parameter, finite ? value : outDefault);
@@ -2725,11 +2734,15 @@ var STANDARD_PARAMETER_INFO = [
2725
2734
  },
2726
2735
  {
2727
2736
  id: import_format9.StandardParameter.HairSwayX,
2728
- description: "Horizontal hair-sway driver. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2737
+ description: "Front hair's horizontal sway driver. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2729
2738
  },
2730
2739
  {
2731
2740
  id: import_format9.StandardParameter.HairSwayZ,
2732
- description: "Hair-sway driver behind a head tilt. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2741
+ description: "Front hair's sway driver behind a head tilt. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2742
+ },
2743
+ {
2744
+ id: import_format9.StandardParameter.HairBackSway,
2745
+ description: "Back hair's sway driver behind the head turn, tilt and ambient drift, one spring slower than the front hair's so the two swing out of phase. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
2733
2746
  },
2734
2747
  {
2735
2748
  id: import_format9.StandardParameter.ArmLeft,
@@ -5681,7 +5694,7 @@ function formatPatchReports(reports) {
5681
5694
  });
5682
5695
  }
5683
5696
  function createIkiMcpServer() {
5684
- const server = new import_mcp.McpServer({ name: "iki", version: "0.28.0" });
5697
+ const server = new import_mcp.McpServer({ name: "iki", version: "0.29.0" });
5685
5698
  server.registerTool(
5686
5699
  "validate_iki",
5687
5700
  {