@ikijs/mcp 0.26.0 → 0.27.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 +5 -4
- package/dist/{chunk-K2CWU4AL.mjs → chunk-7POOGY7U.mjs} +989 -70
- package/dist/chunk-7POOGY7U.mjs.map +1 -0
- package/dist/cli.js +990 -74
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +88 -1
- package/dist/index.d.ts +88 -1
- package/dist/index.js +994 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/render-page.global.js +3 -0
- package/package.json +3 -3
- package/dist/chunk-K2CWU4AL.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,69 @@ 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
|
+
/** The spring's input; for a chain, every parameter that turns its anchor. */
|
|
85
|
+
input: string[];
|
|
86
|
+
/** The driven parameter. */
|
|
87
|
+
output: string;
|
|
88
|
+
/** What reads `output`: parts, then deformers, each in model order. */
|
|
89
|
+
drives: {
|
|
90
|
+
kind: "part" | "deformer";
|
|
91
|
+
id: string;
|
|
92
|
+
}[];
|
|
93
|
+
kind: "ok" | "frozen" | "unstable";
|
|
94
|
+
/** One phrase saying why, naming the window it came from; present when not `ok`. */
|
|
95
|
+
why?: string;
|
|
96
|
+
/**
|
|
97
|
+
* An input stepped from rest to `values` and held: its displacement over
|
|
98
|
+
* every value the run emitted, `final` the output at the window's end.
|
|
99
|
+
*/
|
|
100
|
+
step: PhysicsResponse & {
|
|
101
|
+
values: Record<string, number>;
|
|
102
|
+
final: number;
|
|
103
|
+
};
|
|
104
|
+
/** Every rig and chain together behind the procedural idle, displaced at every value it emitted. */
|
|
105
|
+
idle: PhysicsResponse;
|
|
106
|
+
}
|
|
107
|
+
interface PhysicsReport {
|
|
108
|
+
thresholds: {
|
|
109
|
+
displacementPx: 1;
|
|
110
|
+
pinnedFrames: 60;
|
|
111
|
+
};
|
|
112
|
+
/** One per `model.physics` rig, then one per chain segment, each in model order. */
|
|
113
|
+
targets: PhysicsTarget[];
|
|
114
|
+
/** The targets that are not `ok`, unstable first. */
|
|
115
|
+
offenders: PhysicsTarget[];
|
|
116
|
+
}
|
|
117
|
+
|
|
55
118
|
type ValidateResult = {
|
|
56
119
|
ok: true;
|
|
57
120
|
} | {
|
|
@@ -252,6 +315,11 @@ type AutoRigResult = {
|
|
|
252
315
|
* mouth shutting on purpose set apart as `expected`. Report-only: a
|
|
253
316
|
* fold never refuses the rig. */
|
|
254
317
|
folds: FoldReport;
|
|
318
|
+
/** The written model's physics rigs, each output excited through the
|
|
319
|
+
* engine's real drivers — a step held at the input's far end and the
|
|
320
|
+
* procedural idle — and read as ok, frozen or unstable with both
|
|
321
|
+
* windows' amplitudes. Report-only: it never refuses the rig. */
|
|
322
|
+
physics: PhysicsReport;
|
|
255
323
|
/** What each of `input.patches` moved on this rig, in order — present
|
|
256
324
|
* whenever `patches` was passed, `[]` included, so a caller can tell
|
|
257
325
|
* this server from one that drops the field. */
|
|
@@ -694,6 +762,21 @@ declare function formatFoldReport(report: FoldReport, canvas: {
|
|
|
694
762
|
height: number;
|
|
695
763
|
}): string[];
|
|
696
764
|
|
|
765
|
+
/**
|
|
766
|
+
* The text lines `auto_rig_from_layers` and `render_poses` print the engine's
|
|
767
|
+
* `checkPhysics` report as, after the fold report.
|
|
768
|
+
*/
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* `report` as text lines: one `PHYSICS` line per target in the report's
|
|
772
|
+
* order, or `PHYSICS: no rigs`. A line gives the target's kind, its rig (`id`,
|
|
773
|
+
* or `id/segment [inputs]` for a chain segment), `input -> output`, the step's
|
|
774
|
+
* setting with the output's peak, when, its final value and the largest part
|
|
775
|
+
* move with what the output drives, then the idle's peak, when and move, and
|
|
776
|
+
* ` — <why>` when the target is not `ok`.
|
|
777
|
+
*/
|
|
778
|
+
declare function formatPhysicsReport(report: PhysicsReport): string[];
|
|
779
|
+
|
|
697
780
|
/**
|
|
698
781
|
* Measure the head-turn cues in a PAIR of images of the same character — one
|
|
699
782
|
* facing front, one turned — and report them as three ratios. It is how a
|
|
@@ -890,6 +973,10 @@ type RenderPosesResult = {
|
|
|
890
973
|
/** The model's folds, as `auto_rig_from_layers` reports them.
|
|
891
974
|
* Report-only: a fold never fails the render. */
|
|
892
975
|
folds: FoldReport;
|
|
976
|
+
/** The model's own physics rigs (`poses` do not enter it), as
|
|
977
|
+
* `auto_rig_from_layers` reports them. Report-only: it never fails
|
|
978
|
+
* the render. */
|
|
979
|
+
physics: PhysicsReport;
|
|
893
980
|
} | {
|
|
894
981
|
ok: false;
|
|
895
982
|
error: string;
|
|
@@ -903,4 +990,4 @@ declare function renderPoses(input: RenderPosesInput): Promise<RenderPosesResult
|
|
|
903
990
|
|
|
904
991
|
declare function createIkiMcpServer(): McpServer;
|
|
905
992
|
|
|
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 };
|
|
993
|
+
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,69 @@ 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
|
+
/** The spring's input; for a chain, every parameter that turns its anchor. */
|
|
85
|
+
input: string[];
|
|
86
|
+
/** The driven parameter. */
|
|
87
|
+
output: string;
|
|
88
|
+
/** What reads `output`: parts, then deformers, each in model order. */
|
|
89
|
+
drives: {
|
|
90
|
+
kind: "part" | "deformer";
|
|
91
|
+
id: string;
|
|
92
|
+
}[];
|
|
93
|
+
kind: "ok" | "frozen" | "unstable";
|
|
94
|
+
/** One phrase saying why, naming the window it came from; present when not `ok`. */
|
|
95
|
+
why?: string;
|
|
96
|
+
/**
|
|
97
|
+
* An input stepped from rest to `values` and held: its displacement over
|
|
98
|
+
* every value the run emitted, `final` the output at the window's end.
|
|
99
|
+
*/
|
|
100
|
+
step: PhysicsResponse & {
|
|
101
|
+
values: Record<string, number>;
|
|
102
|
+
final: number;
|
|
103
|
+
};
|
|
104
|
+
/** Every rig and chain together behind the procedural idle, displaced at every value it emitted. */
|
|
105
|
+
idle: PhysicsResponse;
|
|
106
|
+
}
|
|
107
|
+
interface PhysicsReport {
|
|
108
|
+
thresholds: {
|
|
109
|
+
displacementPx: 1;
|
|
110
|
+
pinnedFrames: 60;
|
|
111
|
+
};
|
|
112
|
+
/** One per `model.physics` rig, then one per chain segment, each in model order. */
|
|
113
|
+
targets: PhysicsTarget[];
|
|
114
|
+
/** The targets that are not `ok`, unstable first. */
|
|
115
|
+
offenders: PhysicsTarget[];
|
|
116
|
+
}
|
|
117
|
+
|
|
55
118
|
type ValidateResult = {
|
|
56
119
|
ok: true;
|
|
57
120
|
} | {
|
|
@@ -252,6 +315,11 @@ type AutoRigResult = {
|
|
|
252
315
|
* mouth shutting on purpose set apart as `expected`. Report-only: a
|
|
253
316
|
* fold never refuses the rig. */
|
|
254
317
|
folds: FoldReport;
|
|
318
|
+
/** The written model's physics rigs, each output excited through the
|
|
319
|
+
* engine's real drivers — a step held at the input's far end and the
|
|
320
|
+
* procedural idle — and read as ok, frozen or unstable with both
|
|
321
|
+
* windows' amplitudes. Report-only: it never refuses the rig. */
|
|
322
|
+
physics: PhysicsReport;
|
|
255
323
|
/** What each of `input.patches` moved on this rig, in order — present
|
|
256
324
|
* whenever `patches` was passed, `[]` included, so a caller can tell
|
|
257
325
|
* this server from one that drops the field. */
|
|
@@ -694,6 +762,21 @@ declare function formatFoldReport(report: FoldReport, canvas: {
|
|
|
694
762
|
height: number;
|
|
695
763
|
}): string[];
|
|
696
764
|
|
|
765
|
+
/**
|
|
766
|
+
* The text lines `auto_rig_from_layers` and `render_poses` print the engine's
|
|
767
|
+
* `checkPhysics` report as, after the fold report.
|
|
768
|
+
*/
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* `report` as text lines: one `PHYSICS` line per target in the report's
|
|
772
|
+
* order, or `PHYSICS: no rigs`. A line gives the target's kind, its rig (`id`,
|
|
773
|
+
* or `id/segment [inputs]` for a chain segment), `input -> output`, the step's
|
|
774
|
+
* setting with the output's peak, when, its final value and the largest part
|
|
775
|
+
* move with what the output drives, then the idle's peak, when and move, and
|
|
776
|
+
* ` — <why>` when the target is not `ok`.
|
|
777
|
+
*/
|
|
778
|
+
declare function formatPhysicsReport(report: PhysicsReport): string[];
|
|
779
|
+
|
|
697
780
|
/**
|
|
698
781
|
* Measure the head-turn cues in a PAIR of images of the same character — one
|
|
699
782
|
* facing front, one turned — and report them as three ratios. It is how a
|
|
@@ -890,6 +973,10 @@ type RenderPosesResult = {
|
|
|
890
973
|
/** The model's folds, as `auto_rig_from_layers` reports them.
|
|
891
974
|
* Report-only: a fold never fails the render. */
|
|
892
975
|
folds: FoldReport;
|
|
976
|
+
/** The model's own physics rigs (`poses` do not enter it), as
|
|
977
|
+
* `auto_rig_from_layers` reports them. Report-only: it never fails
|
|
978
|
+
* the render. */
|
|
979
|
+
physics: PhysicsReport;
|
|
893
980
|
} | {
|
|
894
981
|
ok: false;
|
|
895
982
|
error: string;
|
|
@@ -903,4 +990,4 @@ declare function renderPoses(input: RenderPosesInput): Promise<RenderPosesResult
|
|
|
903
990
|
|
|
904
991
|
declare function createIkiMcpServer(): McpServer;
|
|
905
992
|
|
|
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 };
|
|
993
|
+
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 };
|