@ikijs/mcp 0.32.0 → 0.33.1
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 +6 -6
- package/dist/{chunk-576N2JWR.mjs → chunk-VTJEYDRK.mjs} +254 -18
- package/dist/chunk-VTJEYDRK.mjs.map +1 -0
- package/dist/cli.js +298 -65
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +46 -7
- package/dist/index.d.ts +46 -7
- package/dist/index.js +300 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
- package/dist/chunk-576N2JWR.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -278,10 +278,10 @@ type AutoRigResult = {
|
|
|
278
278
|
* fallback path has no measured edge to report at all. Passed to the
|
|
279
279
|
* generator so it can land each candidate through its OWN motion
|
|
280
280
|
* (hair_front's silhouette hold, a turn group's grid for the face and
|
|
281
|
-
* its features,
|
|
282
|
-
* outline and lands where it rests,
|
|
283
|
-
*
|
|
284
|
-
* REST pixel. */
|
|
281
|
+
* its features, a side lock's own shear, the body's own turn
|
|
282
|
+
* translate; `hair_back` holds the outline and lands where it rests,
|
|
283
|
+
* and a role outside that table is refused) and take the outermost
|
|
284
|
+
* LANDING, not just the outermost REST pixel. */
|
|
285
285
|
headEdges?: {
|
|
286
286
|
left: {
|
|
287
287
|
role: string;
|
|
@@ -322,8 +322,9 @@ type AutoRigResult = {
|
|
|
322
322
|
/** What the turn solve settled on — the cues the rig reaches, the
|
|
323
323
|
* targets it had to cut down (`clamped`) and, per side whose far iris
|
|
324
324
|
* the bangs' run still covers at some far stop, how much of it
|
|
325
|
-
* (`strandOverlap`)
|
|
326
|
-
*
|
|
325
|
+
* (`strandOverlap`) and, per side lock, how it keeps its room on the turn
|
|
326
|
+
* (`hairSide`, report-only, printed as `HAIRSIDE` lines). Absent for a
|
|
327
|
+
* layer set with no nose, which solves no turn at all. */
|
|
327
328
|
turn?: TurnSolveReport;
|
|
328
329
|
/** The written model's folds over the engine's pose set, its eyes and
|
|
329
330
|
* mouth shutting on purpose set apart as `expected`. Report-only: a
|
|
@@ -640,6 +641,22 @@ declare const DEFAULT_LAYOUT: {
|
|
|
640
641
|
w: number;
|
|
641
642
|
mirror: true;
|
|
642
643
|
};
|
|
644
|
+
hair_side_L: {
|
|
645
|
+
src: string;
|
|
646
|
+
cx: number;
|
|
647
|
+
cy: number;
|
|
648
|
+
w: number;
|
|
649
|
+
optional: true;
|
|
650
|
+
mirror: true;
|
|
651
|
+
};
|
|
652
|
+
hair_side_R: {
|
|
653
|
+
src: string;
|
|
654
|
+
cx: number;
|
|
655
|
+
cy: number;
|
|
656
|
+
w: number;
|
|
657
|
+
optional: true;
|
|
658
|
+
mirror: false;
|
|
659
|
+
};
|
|
643
660
|
hair_front: {
|
|
644
661
|
src: string;
|
|
645
662
|
cx: number;
|
|
@@ -796,6 +813,28 @@ declare function formatFoldReport(report: FoldReport, canvas: {
|
|
|
796
813
|
*/
|
|
797
814
|
declare function formatPhysicsReport(report: PhysicsReport): string[];
|
|
798
815
|
|
|
816
|
+
/**
|
|
817
|
+
* The text lines `auto_rig_from_layers` prints the turn solve's report-only
|
|
818
|
+
* `hairSide` numbers as, after the `PHYSICS` lines. An agent reads them; none
|
|
819
|
+
* refuses the rig.
|
|
820
|
+
*/
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* `hairSide` as text lines, none when it is absent (a set with no side lock,
|
|
824
|
+
* whose result text stays as it was). Per side lock, the screen-left one
|
|
825
|
+
* first and labelled by its ROLE — `hair_side_R` hangs on the screen left —
|
|
826
|
+
* one line per metric the report holds: `HAIRSIDE cover <role>`, `HAIRSIDE
|
|
827
|
+
* tail <role>`; for a lock with neither, `HAIRSIDE <role>: no cover or tail
|
|
828
|
+
* row`; for a lock with no `rowRuns`, `HAIRSIDE <role>: unavailable — <why>`.
|
|
829
|
+
* Poses read as the parameter setting that reproduces them; px are model px,
|
|
830
|
+
* and the cover's row is given in model space and as model px from the
|
|
831
|
+
* top of the model's `canvas`, as a `FOLD` line gives its rest point.
|
|
832
|
+
*/
|
|
833
|
+
declare function formatHairSideReport(hairSide: TurnSolveReport["hairSide"], canvas: {
|
|
834
|
+
width: number;
|
|
835
|
+
height: number;
|
|
836
|
+
}): string[];
|
|
837
|
+
|
|
799
838
|
/**
|
|
800
839
|
* Measure the head-turn cues in a PAIR of images of the same character — one
|
|
801
840
|
* facing front, one turned — and report them as three ratios. It is how a
|
|
@@ -1184,4 +1223,4 @@ interface SweepManifest {
|
|
|
1184
1223
|
|
|
1185
1224
|
declare function createIkiMcpServer(): McpServer;
|
|
1186
1225
|
|
|
1187
|
-
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 NodReport, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, describeRigPlan, formatFoldReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|
|
1226
|
+
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 NodReport, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, describeRigPlan, formatFoldReport, formatHairSideReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|
package/dist/index.d.ts
CHANGED
|
@@ -278,10 +278,10 @@ type AutoRigResult = {
|
|
|
278
278
|
* fallback path has no measured edge to report at all. Passed to the
|
|
279
279
|
* generator so it can land each candidate through its OWN motion
|
|
280
280
|
* (hair_front's silhouette hold, a turn group's grid for the face and
|
|
281
|
-
* its features,
|
|
282
|
-
* outline and lands where it rests,
|
|
283
|
-
*
|
|
284
|
-
* REST pixel. */
|
|
281
|
+
* its features, a side lock's own shear, the body's own turn
|
|
282
|
+
* translate; `hair_back` holds the outline and lands where it rests,
|
|
283
|
+
* and a role outside that table is refused) and take the outermost
|
|
284
|
+
* LANDING, not just the outermost REST pixel. */
|
|
285
285
|
headEdges?: {
|
|
286
286
|
left: {
|
|
287
287
|
role: string;
|
|
@@ -322,8 +322,9 @@ type AutoRigResult = {
|
|
|
322
322
|
/** What the turn solve settled on — the cues the rig reaches, the
|
|
323
323
|
* targets it had to cut down (`clamped`) and, per side whose far iris
|
|
324
324
|
* the bangs' run still covers at some far stop, how much of it
|
|
325
|
-
* (`strandOverlap`)
|
|
326
|
-
*
|
|
325
|
+
* (`strandOverlap`) and, per side lock, how it keeps its room on the turn
|
|
326
|
+
* (`hairSide`, report-only, printed as `HAIRSIDE` lines). Absent for a
|
|
327
|
+
* layer set with no nose, which solves no turn at all. */
|
|
327
328
|
turn?: TurnSolveReport;
|
|
328
329
|
/** The written model's folds over the engine's pose set, its eyes and
|
|
329
330
|
* mouth shutting on purpose set apart as `expected`. Report-only: a
|
|
@@ -640,6 +641,22 @@ declare const DEFAULT_LAYOUT: {
|
|
|
640
641
|
w: number;
|
|
641
642
|
mirror: true;
|
|
642
643
|
};
|
|
644
|
+
hair_side_L: {
|
|
645
|
+
src: string;
|
|
646
|
+
cx: number;
|
|
647
|
+
cy: number;
|
|
648
|
+
w: number;
|
|
649
|
+
optional: true;
|
|
650
|
+
mirror: true;
|
|
651
|
+
};
|
|
652
|
+
hair_side_R: {
|
|
653
|
+
src: string;
|
|
654
|
+
cx: number;
|
|
655
|
+
cy: number;
|
|
656
|
+
w: number;
|
|
657
|
+
optional: true;
|
|
658
|
+
mirror: false;
|
|
659
|
+
};
|
|
643
660
|
hair_front: {
|
|
644
661
|
src: string;
|
|
645
662
|
cx: number;
|
|
@@ -796,6 +813,28 @@ declare function formatFoldReport(report: FoldReport, canvas: {
|
|
|
796
813
|
*/
|
|
797
814
|
declare function formatPhysicsReport(report: PhysicsReport): string[];
|
|
798
815
|
|
|
816
|
+
/**
|
|
817
|
+
* The text lines `auto_rig_from_layers` prints the turn solve's report-only
|
|
818
|
+
* `hairSide` numbers as, after the `PHYSICS` lines. An agent reads them; none
|
|
819
|
+
* refuses the rig.
|
|
820
|
+
*/
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* `hairSide` as text lines, none when it is absent (a set with no side lock,
|
|
824
|
+
* whose result text stays as it was). Per side lock, the screen-left one
|
|
825
|
+
* first and labelled by its ROLE — `hair_side_R` hangs on the screen left —
|
|
826
|
+
* one line per metric the report holds: `HAIRSIDE cover <role>`, `HAIRSIDE
|
|
827
|
+
* tail <role>`; for a lock with neither, `HAIRSIDE <role>: no cover or tail
|
|
828
|
+
* row`; for a lock with no `rowRuns`, `HAIRSIDE <role>: unavailable — <why>`.
|
|
829
|
+
* Poses read as the parameter setting that reproduces them; px are model px,
|
|
830
|
+
* and the cover's row is given in model space and as model px from the
|
|
831
|
+
* top of the model's `canvas`, as a `FOLD` line gives its rest point.
|
|
832
|
+
*/
|
|
833
|
+
declare function formatHairSideReport(hairSide: TurnSolveReport["hairSide"], canvas: {
|
|
834
|
+
width: number;
|
|
835
|
+
height: number;
|
|
836
|
+
}): string[];
|
|
837
|
+
|
|
799
838
|
/**
|
|
800
839
|
* Measure the head-turn cues in a PAIR of images of the same character — one
|
|
801
840
|
* facing front, one turned — and report them as three ratios. It is how a
|
|
@@ -1184,4 +1223,4 @@ interface SweepManifest {
|
|
|
1184
1223
|
|
|
1185
1224
|
declare function createIkiMcpServer(): McpServer;
|
|
1186
1225
|
|
|
1187
|
-
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 NodReport, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, describeRigPlan, formatFoldReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|
|
1226
|
+
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 NodReport, type PartSummary, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, autoRigFromLayers, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, describeIki, describeIkiAt, describeRigPlan, formatFoldReport, formatHairSideReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, renderPoses, validateIki };
|