@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/README.md +1 -1
- package/dist/{chunk-D2OLX5S7.mjs → chunk-IG2FZKTW.mjs} +18 -5
- package/dist/chunk-IG2FZKTW.mjs.map +1 -0
- package/dist/cli.js +17 -4
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/render-page.global.js +4 -2
- package/package.json +4 -4
- package/dist/chunk-D2OLX5S7.mjs.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -466,6 +466,14 @@ var FixedStepClock = class {
|
|
|
466
466
|
get isSeedFrame() {
|
|
467
467
|
return this.prevNowMs === void 0;
|
|
468
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* Time carried in the accumulator, in seconds: how far the frame's timestamp is
|
|
471
|
+
* past the last whole sub-step. Drivers extrapolate their state by it so what
|
|
472
|
+
* they emit is the state at the frame's time, not at the last sub-step.
|
|
473
|
+
*/
|
|
474
|
+
get remainderS() {
|
|
475
|
+
return this.accumulatorS;
|
|
476
|
+
}
|
|
469
477
|
/**
|
|
470
478
|
* Fold `nowMs` into the accumulator and return how many {@link FIXED_DT_S}
|
|
471
479
|
* sub-steps to run this frame. On the seed frame it only records the
|
|
@@ -801,7 +809,8 @@ var PhysicsMotion = class {
|
|
|
801
809
|
const rig = this.rigs[index];
|
|
802
810
|
const outParam = this.params.get(rig.output.parameter);
|
|
803
811
|
const outDefault = outParam ? clamp(outParam.default, outParam.min, outParam.max) : 0;
|
|
804
|
-
const
|
|
812
|
+
const x = st.x + st.v * this.clock.remainderS;
|
|
813
|
+
const value = outDefault + (x - st.lag) * rig.output.scale;
|
|
805
814
|
const finite = Number.isFinite(value);
|
|
806
815
|
if (!finite) this.resetCounts[index]++;
|
|
807
816
|
this.sink(rig.output.parameter, finite ? value : outDefault);
|
|
@@ -2704,11 +2713,15 @@ var STANDARD_PARAMETER_INFO = [
|
|
|
2704
2713
|
},
|
|
2705
2714
|
{
|
|
2706
2715
|
id: import_format9.StandardParameter.HairSwayX,
|
|
2707
|
-
description: "
|
|
2716
|
+
description: "Front hair's horizontal sway driver. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
|
|
2708
2717
|
},
|
|
2709
2718
|
{
|
|
2710
2719
|
id: import_format9.StandardParameter.HairSwayZ,
|
|
2711
|
-
description: "
|
|
2720
|
+
description: "Front hair's sway driver behind a head tilt. Physics OUTPUT \u2014 driven by the spring, hosts should not set it directly."
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
id: import_format9.StandardParameter.HairBackSway,
|
|
2724
|
+
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."
|
|
2712
2725
|
},
|
|
2713
2726
|
{
|
|
2714
2727
|
id: import_format9.StandardParameter.ArmLeft,
|
|
@@ -5658,7 +5671,7 @@ function formatPatchReports(reports) {
|
|
|
5658
5671
|
});
|
|
5659
5672
|
}
|
|
5660
5673
|
function createIkiMcpServer() {
|
|
5661
|
-
const server = new import_mcp.McpServer({ name: "iki", version: "0.
|
|
5674
|
+
const server = new import_mcp.McpServer({ name: "iki", version: "0.29.0" });
|
|
5662
5675
|
server.registerTool(
|
|
5663
5676
|
"validate_iki",
|
|
5664
5677
|
{
|