@ikijs/mcp 0.26.1 → 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/README.md +4 -3
- package/dist/{chunk-GPEGV2AT.mjs → chunk-D2OLX5S7.mjs} +1014 -66
- package/dist/chunk-D2OLX5S7.mjs.map +1 -0
- package/dist/cli.js +1070 -129
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +91 -1
- package/dist/index.d.ts +91 -1
- package/dist/index.js +1074 -131
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/render-page.global.js +9 -1
- package/package.json +4 -4
- package/dist/chunk-GPEGV2AT.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,72 @@ interface FoldReport {
|
|
|
52
52
|
offenders: FoldTarget[];
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/** How a driven output moves over one excitation window. */
|
|
56
|
+
interface PhysicsResponse {
|
|
57
|
+
/**
|
|
58
|
+
* Its largest displacement from its resting value, as the store holds it
|
|
59
|
+
* (clamped): signed in `step`, which has a direction; its size in `idle`,
|
|
60
|
+
* whose sway goes both ways, so a sign there would carry nothing.
|
|
61
|
+
*/
|
|
62
|
+
peak: number;
|
|
63
|
+
/**
|
|
64
|
+
* When it peaks, seconds into the window. Between two near-equal extremes
|
|
65
|
+
* of the idle it may name either.
|
|
66
|
+
*/
|
|
67
|
+
at: number;
|
|
68
|
+
/**
|
|
69
|
+
* The largest vertex move of any part, model px, with the output alone
|
|
70
|
+
* (every other parameter resting) at the values the window reached.
|
|
71
|
+
*/
|
|
72
|
+
displacementPx: number;
|
|
73
|
+
}
|
|
74
|
+
/** One output a physics rig drives: a spring's, or one chain segment's. */
|
|
75
|
+
interface PhysicsTarget {
|
|
76
|
+
rig: {
|
|
77
|
+
kind: "spring";
|
|
78
|
+
id: string;
|
|
79
|
+
} | {
|
|
80
|
+
kind: "chain";
|
|
81
|
+
id: string;
|
|
82
|
+
segment: number;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* The spring's inputs, in rig order; for a chain, every parameter that turns
|
|
86
|
+
* its anchor.
|
|
87
|
+
*/
|
|
88
|
+
input: string[];
|
|
89
|
+
/** The driven parameter. */
|
|
90
|
+
output: string;
|
|
91
|
+
/** What reads `output`: parts, then deformers, each in model order. */
|
|
92
|
+
drives: {
|
|
93
|
+
kind: "part" | "deformer";
|
|
94
|
+
id: string;
|
|
95
|
+
}[];
|
|
96
|
+
kind: "ok" | "frozen" | "unstable";
|
|
97
|
+
/** One phrase saying why, naming the window it came from; present when not `ok`. */
|
|
98
|
+
why?: string;
|
|
99
|
+
/**
|
|
100
|
+
* An input stepped from rest to `values` and held: its displacement over
|
|
101
|
+
* every value the run emitted, `final` the output at the window's end.
|
|
102
|
+
*/
|
|
103
|
+
step: PhysicsResponse & {
|
|
104
|
+
values: Record<string, number>;
|
|
105
|
+
final: number;
|
|
106
|
+
};
|
|
107
|
+
/** Every rig and chain together behind the procedural idle, displaced at every value it emitted. */
|
|
108
|
+
idle: PhysicsResponse;
|
|
109
|
+
}
|
|
110
|
+
interface PhysicsReport {
|
|
111
|
+
thresholds: {
|
|
112
|
+
displacementPx: 1;
|
|
113
|
+
pinnedFrames: 60;
|
|
114
|
+
};
|
|
115
|
+
/** One per `model.physics` rig, then one per chain segment, each in model order. */
|
|
116
|
+
targets: PhysicsTarget[];
|
|
117
|
+
/** The targets that are not `ok`, unstable first. */
|
|
118
|
+
offenders: PhysicsTarget[];
|
|
119
|
+
}
|
|
120
|
+
|
|
55
121
|
type ValidateResult = {
|
|
56
122
|
ok: true;
|
|
57
123
|
} | {
|
|
@@ -252,6 +318,11 @@ type AutoRigResult = {
|
|
|
252
318
|
* mouth shutting on purpose set apart as `expected`. Report-only: a
|
|
253
319
|
* fold never refuses the rig. */
|
|
254
320
|
folds: FoldReport;
|
|
321
|
+
/** The written model's physics rigs, each output excited through the
|
|
322
|
+
* engine's real drivers — a step held at the input's far end and the
|
|
323
|
+
* procedural idle — and read as ok, frozen or unstable with both
|
|
324
|
+
* windows' amplitudes. Report-only: it never refuses the rig. */
|
|
325
|
+
physics: PhysicsReport;
|
|
255
326
|
/** What each of `input.patches` moved on this rig, in order — present
|
|
256
327
|
* whenever `patches` was passed, `[]` included, so a caller can tell
|
|
257
328
|
* this server from one that drops the field. */
|
|
@@ -694,6 +765,21 @@ declare function formatFoldReport(report: FoldReport, canvas: {
|
|
|
694
765
|
height: number;
|
|
695
766
|
}): string[];
|
|
696
767
|
|
|
768
|
+
/**
|
|
769
|
+
* The text lines `auto_rig_from_layers` and `render_poses` print the engine's
|
|
770
|
+
* `checkPhysics` report as, after the fold report.
|
|
771
|
+
*/
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* `report` as text lines: one `PHYSICS` line per target in the report's
|
|
775
|
+
* order, or `PHYSICS: no rigs`. A line gives the target's kind, its rig (`id`,
|
|
776
|
+
* or `id/segment [inputs]` for a chain segment), `input -> output`, the step's
|
|
777
|
+
* setting with the output's peak, when, its final value and the largest part
|
|
778
|
+
* move with what the output drives, then the idle's peak, when and move, and
|
|
779
|
+
* ` — <why>` when the target is not `ok`.
|
|
780
|
+
*/
|
|
781
|
+
declare function formatPhysicsReport(report: PhysicsReport): string[];
|
|
782
|
+
|
|
697
783
|
/**
|
|
698
784
|
* Measure the head-turn cues in a PAIR of images of the same character — one
|
|
699
785
|
* facing front, one turned — and report them as three ratios. It is how a
|
|
@@ -890,6 +976,10 @@ type RenderPosesResult = {
|
|
|
890
976
|
/** The model's folds, as `auto_rig_from_layers` reports them.
|
|
891
977
|
* Report-only: a fold never fails the render. */
|
|
892
978
|
folds: FoldReport;
|
|
979
|
+
/** The model's own physics rigs (`poses` do not enter it), as
|
|
980
|
+
* `auto_rig_from_layers` reports them. Report-only: it never fails
|
|
981
|
+
* the render. */
|
|
982
|
+
physics: PhysicsReport;
|
|
893
983
|
} | {
|
|
894
984
|
ok: false;
|
|
895
985
|
error: string;
|
|
@@ -903,4 +993,4 @@ declare function renderPoses(input: RenderPosesInput): Promise<RenderPosesResult
|
|
|
903
993
|
|
|
904
994
|
declare function createIkiMcpServer(): McpServer;
|
|
905
995
|
|
|
906
|
-
export { type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type ComposeInput, type ComposeResult, type DeformerSummary, type DescribeResult, type IkiSummary, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type StandardParameterInfo, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, formatFoldReport, formatMeasureReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|
|
996
|
+
export { type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type ComposeInput, type ComposeResult, type DeformerSummary, type DescribeResult, type IkiSummary, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type StandardParameterInfo, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, formatFoldReport, formatMeasureReport, formatPhysicsReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,72 @@ interface FoldReport {
|
|
|
52
52
|
offenders: FoldTarget[];
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/** How a driven output moves over one excitation window. */
|
|
56
|
+
interface PhysicsResponse {
|
|
57
|
+
/**
|
|
58
|
+
* Its largest displacement from its resting value, as the store holds it
|
|
59
|
+
* (clamped): signed in `step`, which has a direction; its size in `idle`,
|
|
60
|
+
* whose sway goes both ways, so a sign there would carry nothing.
|
|
61
|
+
*/
|
|
62
|
+
peak: number;
|
|
63
|
+
/**
|
|
64
|
+
* When it peaks, seconds into the window. Between two near-equal extremes
|
|
65
|
+
* of the idle it may name either.
|
|
66
|
+
*/
|
|
67
|
+
at: number;
|
|
68
|
+
/**
|
|
69
|
+
* The largest vertex move of any part, model px, with the output alone
|
|
70
|
+
* (every other parameter resting) at the values the window reached.
|
|
71
|
+
*/
|
|
72
|
+
displacementPx: number;
|
|
73
|
+
}
|
|
74
|
+
/** One output a physics rig drives: a spring's, or one chain segment's. */
|
|
75
|
+
interface PhysicsTarget {
|
|
76
|
+
rig: {
|
|
77
|
+
kind: "spring";
|
|
78
|
+
id: string;
|
|
79
|
+
} | {
|
|
80
|
+
kind: "chain";
|
|
81
|
+
id: string;
|
|
82
|
+
segment: number;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* The spring's inputs, in rig order; for a chain, every parameter that turns
|
|
86
|
+
* its anchor.
|
|
87
|
+
*/
|
|
88
|
+
input: string[];
|
|
89
|
+
/** The driven parameter. */
|
|
90
|
+
output: string;
|
|
91
|
+
/** What reads `output`: parts, then deformers, each in model order. */
|
|
92
|
+
drives: {
|
|
93
|
+
kind: "part" | "deformer";
|
|
94
|
+
id: string;
|
|
95
|
+
}[];
|
|
96
|
+
kind: "ok" | "frozen" | "unstable";
|
|
97
|
+
/** One phrase saying why, naming the window it came from; present when not `ok`. */
|
|
98
|
+
why?: string;
|
|
99
|
+
/**
|
|
100
|
+
* An input stepped from rest to `values` and held: its displacement over
|
|
101
|
+
* every value the run emitted, `final` the output at the window's end.
|
|
102
|
+
*/
|
|
103
|
+
step: PhysicsResponse & {
|
|
104
|
+
values: Record<string, number>;
|
|
105
|
+
final: number;
|
|
106
|
+
};
|
|
107
|
+
/** Every rig and chain together behind the procedural idle, displaced at every value it emitted. */
|
|
108
|
+
idle: PhysicsResponse;
|
|
109
|
+
}
|
|
110
|
+
interface PhysicsReport {
|
|
111
|
+
thresholds: {
|
|
112
|
+
displacementPx: 1;
|
|
113
|
+
pinnedFrames: 60;
|
|
114
|
+
};
|
|
115
|
+
/** One per `model.physics` rig, then one per chain segment, each in model order. */
|
|
116
|
+
targets: PhysicsTarget[];
|
|
117
|
+
/** The targets that are not `ok`, unstable first. */
|
|
118
|
+
offenders: PhysicsTarget[];
|
|
119
|
+
}
|
|
120
|
+
|
|
55
121
|
type ValidateResult = {
|
|
56
122
|
ok: true;
|
|
57
123
|
} | {
|
|
@@ -252,6 +318,11 @@ type AutoRigResult = {
|
|
|
252
318
|
* mouth shutting on purpose set apart as `expected`. Report-only: a
|
|
253
319
|
* fold never refuses the rig. */
|
|
254
320
|
folds: FoldReport;
|
|
321
|
+
/** The written model's physics rigs, each output excited through the
|
|
322
|
+
* engine's real drivers — a step held at the input's far end and the
|
|
323
|
+
* procedural idle — and read as ok, frozen or unstable with both
|
|
324
|
+
* windows' amplitudes. Report-only: it never refuses the rig. */
|
|
325
|
+
physics: PhysicsReport;
|
|
255
326
|
/** What each of `input.patches` moved on this rig, in order — present
|
|
256
327
|
* whenever `patches` was passed, `[]` included, so a caller can tell
|
|
257
328
|
* this server from one that drops the field. */
|
|
@@ -694,6 +765,21 @@ declare function formatFoldReport(report: FoldReport, canvas: {
|
|
|
694
765
|
height: number;
|
|
695
766
|
}): string[];
|
|
696
767
|
|
|
768
|
+
/**
|
|
769
|
+
* The text lines `auto_rig_from_layers` and `render_poses` print the engine's
|
|
770
|
+
* `checkPhysics` report as, after the fold report.
|
|
771
|
+
*/
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* `report` as text lines: one `PHYSICS` line per target in the report's
|
|
775
|
+
* order, or `PHYSICS: no rigs`. A line gives the target's kind, its rig (`id`,
|
|
776
|
+
* or `id/segment [inputs]` for a chain segment), `input -> output`, the step's
|
|
777
|
+
* setting with the output's peak, when, its final value and the largest part
|
|
778
|
+
* move with what the output drives, then the idle's peak, when and move, and
|
|
779
|
+
* ` — <why>` when the target is not `ok`.
|
|
780
|
+
*/
|
|
781
|
+
declare function formatPhysicsReport(report: PhysicsReport): string[];
|
|
782
|
+
|
|
697
783
|
/**
|
|
698
784
|
* Measure the head-turn cues in a PAIR of images of the same character — one
|
|
699
785
|
* facing front, one turned — and report them as three ratios. It is how a
|
|
@@ -890,6 +976,10 @@ type RenderPosesResult = {
|
|
|
890
976
|
/** The model's folds, as `auto_rig_from_layers` reports them.
|
|
891
977
|
* Report-only: a fold never fails the render. */
|
|
892
978
|
folds: FoldReport;
|
|
979
|
+
/** The model's own physics rigs (`poses` do not enter it), as
|
|
980
|
+
* `auto_rig_from_layers` reports them. Report-only: it never fails
|
|
981
|
+
* the render. */
|
|
982
|
+
physics: PhysicsReport;
|
|
893
983
|
} | {
|
|
894
984
|
ok: false;
|
|
895
985
|
error: string;
|
|
@@ -903,4 +993,4 @@ declare function renderPoses(input: RenderPosesInput): Promise<RenderPosesResult
|
|
|
903
993
|
|
|
904
994
|
declare function createIkiMcpServer(): McpServer;
|
|
905
995
|
|
|
906
|
-
export { type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type ComposeInput, type ComposeResult, type DeformerSummary, type DescribeResult, type IkiSummary, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type StandardParameterInfo, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, formatFoldReport, formatMeasureReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|
|
996
|
+
export { type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type ComposeInput, type ComposeResult, type DeformerSummary, type DescribeResult, type IkiSummary, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type StandardParameterInfo, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, formatFoldReport, formatMeasureReport, formatPhysicsReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|