@ikijs/mcp 0.38.2 → 0.39.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 +2 -1
- package/dist/{chunk-I4P7THTB.mjs → chunk-3XQLLYUF.mjs} +144 -14
- package/dist/chunk-3XQLLYUF.mjs.map +1 -0
- package/dist/cli.js +140 -16
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +331 -203
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/render-page.global.js +132 -17
- package/package.json +4 -4
- package/dist/chunk-I4P7THTB.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { IkiModel, IkiOcclusion } from '@ikijs/format';
|
|
1
|
+
import { IkiGenerator, IkiModel, IkiOcclusion } from '@ikijs/format';
|
|
2
2
|
import { CustomPart, TurnTargets, RigPlan, RigPatch, RigBakes, IrisStrand, TurnSolveReport, PatchReport, RigPlanReport, RigPlanField } from '@ikijs/editor';
|
|
3
3
|
export { RigPlanReport, TurnSolveReport } from '@ikijs/editor';
|
|
4
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
5
|
|
|
6
|
+
/** The environment variable a plugin names itself in, as `name@version`, when
|
|
7
|
+
* it launches the server: recorded as the model's `generator.plugin`. */
|
|
8
|
+
declare const PLUGIN_ENV = "IKI_PLUGIN";
|
|
9
|
+
/**
|
|
10
|
+
* What the tool server records in a model it writes: itself, the auto-rigger
|
|
11
|
+
* it runs (the installed `@ikijs/editor`, which may be newer than the one it
|
|
12
|
+
* was built against), and the plugin named in {@link PLUGIN_ENV}, if any. An
|
|
13
|
+
* unset or empty variable names none; one that is no valid label throws an
|
|
14
|
+
* `IkiFormatError` naming the variable.
|
|
15
|
+
*/
|
|
16
|
+
declare function toolGenerator(env?: Record<string, string | undefined>): IkiGenerator;
|
|
17
|
+
|
|
6
18
|
/** A parameter setting to check the rig at; every other parameter rests at its default. */
|
|
7
19
|
interface FoldPose {
|
|
8
20
|
/** Its sorted `id=value` pairs joined by one space; `rest` when empty. */
|
|
@@ -379,6 +391,8 @@ type ValidateResult = {
|
|
|
379
391
|
};
|
|
380
392
|
interface IkiSummary {
|
|
381
393
|
name: string;
|
|
394
|
+
/** What wrote the model, when it says. */
|
|
395
|
+
generator?: IkiGenerator;
|
|
382
396
|
canvas: {
|
|
383
397
|
width: number;
|
|
384
398
|
height: number;
|
|
@@ -479,6 +493,10 @@ interface AutoRigLayerInput {
|
|
|
479
493
|
}
|
|
480
494
|
interface AutoRigInput {
|
|
481
495
|
layers: AutoRigLayerInput[];
|
|
496
|
+
/** Written as the model's `generator`. The MCP tool passes its own
|
|
497
|
+
* (`toolGenerator`) and takes none from its caller; absent, the model
|
|
498
|
+
* carries none, so the same layers give the same bytes across releases. */
|
|
499
|
+
generator?: IkiGenerator;
|
|
482
500
|
/** Output `.iki` path (relative paths resolve against the process cwd). */
|
|
483
501
|
outputPath?: string;
|
|
484
502
|
/** Palette-quantize the atlas PNG to this many colours (integer, 2..256).
|
|
@@ -1933,4 +1951,4 @@ declare function formatCutReport(r: Extract<CutLayersFromIllustrationResult, {
|
|
|
1933
1951
|
|
|
1934
1952
|
declare function createIkiMcpServer(): McpServer;
|
|
1935
1953
|
|
|
1936
|
-
export { type AutoRigCustomPartInput, type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type BakeCheck, CUSTOM_GATE_LIMITS, type ComposeInput, type ComposeResult, type CustomGateAreaReading, type CustomGateLimits, type CustomGateOptions, type CustomGatePart, type CustomGatePartReport, type CustomGateReading, type CustomGateReport, type CustomGateTip, type CustomPartReport, type CutCheck, type CutCustomPart, type CutLayer, type CutLayersFromIllustrationInput, type CutLayersFromIllustrationResult, type CutMeasure, type DeformerSummary, type DescribeResult, type GridCrop, type IkiSummary, type IllustrationBrow, type IllustrationCustomCut, type IllustrationEye, type IllustrationLandmarks, type IllustrationPolygonCut, type IllustrationSamples, type IllustrationSideCut, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type NodReport, type PaintRuns, type PartSummary, type ProbeInput, type ProbePoint, type ProbeQuery, type ProbeQueryResult, type ProbeResult, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, type ViewIllustrationGridInput, type ViewIllustrationGridResult, autoRigFromLayers, checkCustomGate, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, cutLayersFromIllustration, describeIki, describeIkiAt, describeRigPlan, failedCustomGate, formatCustomGate, formatCutReport, formatFoldReport, formatHairSideReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, probeRig, renderPoses, validateIki, viewIllustrationGrid };
|
|
1954
|
+
export { type AutoRigCustomPartInput, type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type BakeCheck, CUSTOM_GATE_LIMITS, type ComposeInput, type ComposeResult, type CustomGateAreaReading, type CustomGateLimits, type CustomGateOptions, type CustomGatePart, type CustomGatePartReport, type CustomGateReading, type CustomGateReport, type CustomGateTip, type CustomPartReport, type CutCheck, type CutCustomPart, type CutLayer, type CutLayersFromIllustrationInput, type CutLayersFromIllustrationResult, type CutMeasure, type DeformerSummary, type DescribeResult, type GridCrop, type IkiSummary, type IllustrationBrow, type IllustrationCustomCut, type IllustrationEye, type IllustrationLandmarks, type IllustrationPolygonCut, type IllustrationSamples, type IllustrationSideCut, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type NodReport, PLUGIN_ENV, type PaintRuns, type PartSummary, type ProbeInput, type ProbePoint, type ProbeQuery, type ProbeQueryResult, type ProbeResult, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, type ViewIllustrationGridInput, type ViewIllustrationGridResult, autoRigFromLayers, checkCustomGate, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, cutLayersFromIllustration, describeIki, describeIkiAt, describeRigPlan, failedCustomGate, formatCustomGate, formatCutReport, formatFoldReport, formatHairSideReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, probeRig, renderPoses, toolGenerator, validateIki, viewIllustrationGrid };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { IkiModel, IkiOcclusion } from '@ikijs/format';
|
|
1
|
+
import { IkiGenerator, IkiModel, IkiOcclusion } from '@ikijs/format';
|
|
2
2
|
import { CustomPart, TurnTargets, RigPlan, RigPatch, RigBakes, IrisStrand, TurnSolveReport, PatchReport, RigPlanReport, RigPlanField } from '@ikijs/editor';
|
|
3
3
|
export { RigPlanReport, TurnSolveReport } from '@ikijs/editor';
|
|
4
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
5
|
|
|
6
|
+
/** The environment variable a plugin names itself in, as `name@version`, when
|
|
7
|
+
* it launches the server: recorded as the model's `generator.plugin`. */
|
|
8
|
+
declare const PLUGIN_ENV = "IKI_PLUGIN";
|
|
9
|
+
/**
|
|
10
|
+
* What the tool server records in a model it writes: itself, the auto-rigger
|
|
11
|
+
* it runs (the installed `@ikijs/editor`, which may be newer than the one it
|
|
12
|
+
* was built against), and the plugin named in {@link PLUGIN_ENV}, if any. An
|
|
13
|
+
* unset or empty variable names none; one that is no valid label throws an
|
|
14
|
+
* `IkiFormatError` naming the variable.
|
|
15
|
+
*/
|
|
16
|
+
declare function toolGenerator(env?: Record<string, string | undefined>): IkiGenerator;
|
|
17
|
+
|
|
6
18
|
/** A parameter setting to check the rig at; every other parameter rests at its default. */
|
|
7
19
|
interface FoldPose {
|
|
8
20
|
/** Its sorted `id=value` pairs joined by one space; `rest` when empty. */
|
|
@@ -379,6 +391,8 @@ type ValidateResult = {
|
|
|
379
391
|
};
|
|
380
392
|
interface IkiSummary {
|
|
381
393
|
name: string;
|
|
394
|
+
/** What wrote the model, when it says. */
|
|
395
|
+
generator?: IkiGenerator;
|
|
382
396
|
canvas: {
|
|
383
397
|
width: number;
|
|
384
398
|
height: number;
|
|
@@ -479,6 +493,10 @@ interface AutoRigLayerInput {
|
|
|
479
493
|
}
|
|
480
494
|
interface AutoRigInput {
|
|
481
495
|
layers: AutoRigLayerInput[];
|
|
496
|
+
/** Written as the model's `generator`. The MCP tool passes its own
|
|
497
|
+
* (`toolGenerator`) and takes none from its caller; absent, the model
|
|
498
|
+
* carries none, so the same layers give the same bytes across releases. */
|
|
499
|
+
generator?: IkiGenerator;
|
|
482
500
|
/** Output `.iki` path (relative paths resolve against the process cwd). */
|
|
483
501
|
outputPath?: string;
|
|
484
502
|
/** Palette-quantize the atlas PNG to this many colours (integer, 2..256).
|
|
@@ -1933,4 +1951,4 @@ declare function formatCutReport(r: Extract<CutLayersFromIllustrationResult, {
|
|
|
1933
1951
|
|
|
1934
1952
|
declare function createIkiMcpServer(): McpServer;
|
|
1935
1953
|
|
|
1936
|
-
export { type AutoRigCustomPartInput, type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type BakeCheck, CUSTOM_GATE_LIMITS, type ComposeInput, type ComposeResult, type CustomGateAreaReading, type CustomGateLimits, type CustomGateOptions, type CustomGatePart, type CustomGatePartReport, type CustomGateReading, type CustomGateReport, type CustomGateTip, type CustomPartReport, type CutCheck, type CutCustomPart, type CutLayer, type CutLayersFromIllustrationInput, type CutLayersFromIllustrationResult, type CutMeasure, type DeformerSummary, type DescribeResult, type GridCrop, type IkiSummary, type IllustrationBrow, type IllustrationCustomCut, type IllustrationEye, type IllustrationLandmarks, type IllustrationPolygonCut, type IllustrationSamples, type IllustrationSideCut, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type NodReport, type PaintRuns, type PartSummary, type ProbeInput, type ProbePoint, type ProbeQuery, type ProbeQueryResult, type ProbeResult, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, type ViewIllustrationGridInput, type ViewIllustrationGridResult, autoRigFromLayers, checkCustomGate, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, cutLayersFromIllustration, describeIki, describeIkiAt, describeRigPlan, failedCustomGate, formatCustomGate, formatCutReport, formatFoldReport, formatHairSideReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, probeRig, renderPoses, validateIki, viewIllustrationGrid };
|
|
1954
|
+
export { type AutoRigCustomPartInput, type AutoRigInput, type AutoRigLayerInput, type AutoRigResult, type AutoRigTurnTargets, type BakeCheck, CUSTOM_GATE_LIMITS, type ComposeInput, type ComposeResult, type CustomGateAreaReading, type CustomGateLimits, type CustomGateOptions, type CustomGatePart, type CustomGatePartReport, type CustomGateReading, type CustomGateReport, type CustomGateTip, type CustomPartReport, type CutCheck, type CutCustomPart, type CutLayer, type CutLayersFromIllustrationInput, type CutLayersFromIllustrationResult, type CutMeasure, type DeformerSummary, type DescribeResult, type GridCrop, type IkiSummary, type IllustrationBrow, type IllustrationCustomCut, type IllustrationEye, type IllustrationLandmarks, type IllustrationPolygonCut, type IllustrationSamples, type IllustrationSideCut, type IrisBlob, type IrisColor, type LayoutOverride, type MeasureInput, type MeasureResult, type MeasureTurnInput, type MeasureTurnResult, type NodReport, PLUGIN_ENV, type PaintRuns, type PartSummary, type ProbeInput, type ProbePoint, type ProbeQuery, type ProbeQueryResult, type ProbeResult, type RenderPosesInput, type RenderPosesResult, type RequestedPose, type RequestedSweep, SWEEP_PRESETS, type StandardParameterInfo, type SweepManifest, type SweepPreset, type SweepReport, type TurnImageMeasure, type TurnMeasurement, type ValidateResult, type ViewIllustrationGridInput, type ViewIllustrationGridResult, autoRigFromLayers, checkCustomGate, checkModelFolds, checkNod, checkSweep, composeLayersFromParts, createIkiMcpServer, cutLayersFromIllustration, describeIki, describeIkiAt, describeRigPlan, failedCustomGate, formatCustomGate, formatCutReport, formatFoldReport, formatHairSideReport, formatMeasureReport, formatNodReport, formatPhysicsReport, formatRigPlanReport, formatSweepReport, formatTurnReport, listStandardParameters, measureLayers, measureTurnReference, probeRig, renderPoses, toolGenerator, validateIki, viewIllustrationGrid };
|