@ikijs/mcp 0.8.0 → 0.8.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/dist/{chunk-JPWDKP43.mjs → chunk-LIWK4PQV.mjs} +14 -4
- package/dist/chunk-LIWK4PQV.mjs.map +1 -0
- package/dist/cli.js +13 -3
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-JPWDKP43.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -99,10 +99,12 @@ type AutoRigResult = {
|
|
|
99
99
|
* `headHalfWidth`, per side, each with its own rest x there (canvas px)
|
|
100
100
|
* — present only when `headHalfWidthApplied` is true, since the
|
|
101
101
|
* fallback path has no measured edge to report at all. Passed to the
|
|
102
|
-
* generator so it can land each candidate through its OWN
|
|
103
|
-
* (hair_front's
|
|
104
|
-
*
|
|
105
|
-
*
|
|
102
|
+
* generator so it can land each candidate through its OWN motion
|
|
103
|
+
* (hair_front's silhouette hold, a turn group's grid for the face and
|
|
104
|
+
* its features, the body's own turn translate; `hair_back` holds the
|
|
105
|
+
* outline and lands where it rests, and a role outside that table is
|
|
106
|
+
* refused) and take the outermost LANDING, not just the outermost
|
|
107
|
+
* REST pixel. */
|
|
106
108
|
headEdges?: {
|
|
107
109
|
left: {
|
|
108
110
|
role: string;
|
|
@@ -129,7 +131,10 @@ type AutoRigResult = {
|
|
|
129
131
|
*
|
|
130
132
|
* The head turn is fitted to `input.turnTargets`, on the head half-width this
|
|
131
133
|
* measures off the layers themselves; what the solve settled on comes back in
|
|
132
|
-
* `turn`.
|
|
134
|
+
* `turn`. The face layer alone also gets its per-row painted half-widths
|
|
135
|
+
* (`LayerInput.rowHalfWidths`), which bend the face plate on a row-dependent
|
|
136
|
+
* radius: the generator reads no other role's, so measuring any other layer's
|
|
137
|
+
* would only hand it bytes it discards.
|
|
133
138
|
*
|
|
134
139
|
* Re-host of examples/editor/src/store.ts `importLayerSet` with the three DOM
|
|
135
140
|
* pixel functions swapped for the sharp-backed ./node-images helpers; the pure
|
package/dist/index.d.ts
CHANGED
|
@@ -99,10 +99,12 @@ type AutoRigResult = {
|
|
|
99
99
|
* `headHalfWidth`, per side, each with its own rest x there (canvas px)
|
|
100
100
|
* — present only when `headHalfWidthApplied` is true, since the
|
|
101
101
|
* fallback path has no measured edge to report at all. Passed to the
|
|
102
|
-
* generator so it can land each candidate through its OWN
|
|
103
|
-
* (hair_front's
|
|
104
|
-
*
|
|
105
|
-
*
|
|
102
|
+
* generator so it can land each candidate through its OWN motion
|
|
103
|
+
* (hair_front's silhouette hold, a turn group's grid for the face and
|
|
104
|
+
* its features, the body's own turn translate; `hair_back` holds the
|
|
105
|
+
* outline and lands where it rests, and a role outside that table is
|
|
106
|
+
* refused) and take the outermost LANDING, not just the outermost
|
|
107
|
+
* REST pixel. */
|
|
106
108
|
headEdges?: {
|
|
107
109
|
left: {
|
|
108
110
|
role: string;
|
|
@@ -129,7 +131,10 @@ type AutoRigResult = {
|
|
|
129
131
|
*
|
|
130
132
|
* The head turn is fitted to `input.turnTargets`, on the head half-width this
|
|
131
133
|
* measures off the layers themselves; what the solve settled on comes back in
|
|
132
|
-
* `turn`.
|
|
134
|
+
* `turn`. The face layer alone also gets its per-row painted half-widths
|
|
135
|
+
* (`LayerInput.rowHalfWidths`), which bend the face plate on a row-dependent
|
|
136
|
+
* radius: the generator reads no other role's, so measuring any other layer's
|
|
137
|
+
* would only hand it bytes it discards.
|
|
133
138
|
*
|
|
134
139
|
* Re-host of examples/editor/src/store.ts `importLayerSet` with the three DOM
|
|
135
140
|
* pixel functions swapped for the sharp-backed ./node-images helpers; the pure
|
package/dist/index.js
CHANGED
|
@@ -880,7 +880,7 @@ async function autoRigFromLayers(input) {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
rowSpansByRole.push({ role, rowLeft, rowRight });
|
|
883
|
-
|
|
883
|
+
const layer = {
|
|
884
884
|
role,
|
|
885
885
|
fileName,
|
|
886
886
|
canvasW,
|
|
@@ -888,7 +888,17 @@ async function autoRigFromLayers(input) {
|
|
|
888
888
|
bbox,
|
|
889
889
|
cropW: bbox.w,
|
|
890
890
|
cropH: bbox.h
|
|
891
|
-
}
|
|
891
|
+
};
|
|
892
|
+
if (role === "face") {
|
|
893
|
+
const rowHalfWidths = [];
|
|
894
|
+
for (let y = bbox.y; y < bbox.y + bbox.h; y++) {
|
|
895
|
+
rowHalfWidths.push(
|
|
896
|
+
rowRight[y] >= rowLeft[y] ? headHalfOf({ left: rowLeft[y], right: rowRight[y] }) : 0
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
layer.rowHalfWidths = rowHalfWidths;
|
|
900
|
+
}
|
|
901
|
+
layerInputs.push(layer);
|
|
892
902
|
crops.push({ id: role, buffer, width: bbox.w, height: bbox.h });
|
|
893
903
|
}
|
|
894
904
|
const eyeRow = eyeRowOf(layerInputs);
|
|
@@ -1526,7 +1536,7 @@ async function composeLayersFromParts(input) {
|
|
|
1526
1536
|
var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
1527
1537
|
var import_zod = require("zod");
|
|
1528
1538
|
function createIkiMcpServer() {
|
|
1529
|
-
const server = new import_mcp.McpServer({ name: "iki", version: "0.8.
|
|
1539
|
+
const server = new import_mcp.McpServer({ name: "iki", version: "0.8.1" });
|
|
1530
1540
|
server.registerTool(
|
|
1531
1541
|
"validate_iki",
|
|
1532
1542
|
{
|