@pinepaper.studio/mcp-server 1.6.19 → 1.6.21
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.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.hi.md +1 -1
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +161 -5
- package/README.pt-BR.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/build-info.json +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/ontology/upstream-vocabulary.d.ts +2 -2
- package/dist/ontology/upstream-vocabulary.js +3 -3
- package/dist/ontology/upstream-vocabulary.js.map +1 -1
- package/dist/ontology/vocabulary.d.ts.map +1 -1
- package/dist/ontology/vocabulary.js +9 -1
- package/dist/ontology/vocabulary.js.map +1 -1
- package/dist/tools/choreograph.d.ts +64 -0
- package/dist/tools/choreograph.d.ts.map +1 -0
- package/dist/tools/choreograph.js +346 -0
- package/dist/tools/choreograph.js.map +1 -0
- package/dist/tools/compact-descriptions.js +1 -1
- package/dist/tools/craft-tools.d.ts +55 -0
- package/dist/tools/craft-tools.d.ts.map +1 -0
- package/dist/tools/craft-tools.js +139 -0
- package/dist/tools/craft-tools.js.map +1 -0
- package/dist/tools/definitions.d.ts +10 -1
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +401 -32
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/effect-check.d.ts +26 -0
- package/dist/tools/effect-check.d.ts.map +1 -0
- package/dist/tools/effect-check.js +129 -0
- package/dist/tools/effect-check.js.map +1 -0
- package/dist/tools/effect-class.d.ts +31 -0
- package/dist/tools/effect-class.d.ts.map +1 -0
- package/dist/tools/effect-class.js +176 -0
- package/dist/tools/effect-class.js.map +1 -0
- package/dist/tools/engine-lists.d.ts +6 -6
- package/dist/tools/engine-lists.d.ts.map +1 -1
- package/dist/tools/engine-lists.js +11 -9
- package/dist/tools/engine-lists.js.map +1 -1
- package/dist/tools/engine-methods.d.ts.map +1 -1
- package/dist/tools/engine-methods.js +12 -0
- package/dist/tools/engine-methods.js.map +1 -1
- package/dist/tools/engine-surface.d.ts +1 -1
- package/dist/tools/engine-surface.d.ts.map +1 -1
- package/dist/tools/engine-surface.js +221 -10
- package/dist/tools/engine-surface.js.map +1 -1
- package/dist/tools/handlers/export.d.ts.map +1 -1
- package/dist/tools/handlers/export.js +8 -1
- package/dist/tools/handlers/export.js.map +1 -1
- package/dist/tools/handlers/generate.d.ts +28 -28
- package/dist/tools/handlers.d.ts +23 -0
- package/dist/tools/handlers.d.ts.map +1 -1
- package/dist/tools/handlers.js +301 -6
- package/dist/tools/handlers.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/minimal-descriptions.d.ts.map +1 -1
- package/dist/tools/minimal-descriptions.js +16 -3
- package/dist/tools/minimal-descriptions.js.map +1 -1
- package/dist/tools/shape-params.d.ts +2 -2
- package/dist/tools/shape-params.d.ts.map +1 -1
- package/dist/tools/shape-params.js +25 -2
- package/dist/tools/shape-params.js.map +1 -1
- package/dist/tools/stick-vocabulary.d.ts +1 -1
- package/dist/tools/stick-vocabulary.js +1 -1
- package/dist/tools/toolkits.d.ts.map +1 -1
- package/dist/tools/toolkits.js +15 -0
- package/dist/tools/toolkits.js.map +1 -1
- package/dist/types/code-generator.d.ts +44 -1
- package/dist/types/code-generator.d.ts.map +1 -1
- package/dist/types/code-generator.js +1140 -128
- package/dist/types/code-generator.js.map +1 -1
- package/dist/types/schemas.d.ts +3091 -584
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +308 -6
- package/dist/types/schemas.js.map +1 -1
- package/dist/vendor/design/design-style.d.ts +2 -2
- package/dist/vendor/design/design-style.d.ts.map +1 -1
- package/dist/vendor/design/design-style.js +7 -2
- package/dist/vendor/design/design-style.js.map +1 -1
- package/dist/vendor/design/subdivision-tool-schema.d.ts +16 -0
- package/dist/vendor/design/subdivision-tool-schema.d.ts.map +1 -0
- package/dist/vendor/design/subdivision-tool-schema.js +104 -0
- package/dist/vendor/design/subdivision-tool-schema.js.map +1 -0
- package/dist/vendor/design/textile-tool-schema.d.ts +14 -0
- package/dist/vendor/design/textile-tool-schema.d.ts.map +1 -0
- package/dist/vendor/design/textile-tool-schema.js +195 -0
- package/dist/vendor/design/textile-tool-schema.js.map +1 -0
- package/dist/vendor/design/ui-kit-runtime.d.ts +49 -0
- package/dist/vendor/design/ui-kit-runtime.d.ts.map +1 -0
- package/dist/vendor/design/ui-kit-runtime.js +761 -0
- package/dist/vendor/design/ui-kit-runtime.js.map +1 -0
- package/dist/vendor/design/ui-kit-tool-schema.d.ts +280 -0
- package/dist/vendor/design/ui-kit-tool-schema.d.ts.map +1 -0
- package/dist/vendor/design/ui-kit-tool-schema.js +209 -0
- package/dist/vendor/design/ui-kit-tool-schema.js.map +1 -0
- package/manifest.json +53 -1
- package/package.json +5 -4
- package/dist/assets/repositories/openclipart.d.ts +0 -41
- package/dist/assets/repositories/openclipart.d.ts.map +0 -1
- package/dist/assets/repositories/openclipart.js +0 -139
- package/dist/assets/repositories/openclipart.js.map +0 -1
- package/dist/assets/repositories/svgrepo.d.ts +0 -61
- package/dist/assets/repositories/svgrepo.d.ts.map +0 -1
- package/dist/assets/repositories/svgrepo.js +0 -276
- package/dist/assets/repositories/svgrepo.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Every aesthetic style the generators speak. Sliced from the upstream union. */
|
|
2
|
-
export type DesignStyle = "minimal" | "editorial" | "playful" | "cinematic" | "energetic" | "scrapbook" | "swiss_typographic" | "neumorphic_glass" | "risograph_print" | "cyberpunk_neon" | "bauhaus_geometric" | "art_deco_geometric" | "memphis_group" | "brutalist_raw" | "de_stijl_neoplasticism" | "pop_art_expression" | "vaporwave_retro" | "corporate_memphis" | "y2k_frutiger_aero" | "mid_century_upa" | "comic_benday" | "pixel_art_8bit" | "isometric_lowpoly" | "hand_drawn_sketch" | "claymorphism" | "constructivism_suprematism" | "art_nouveau" | "op_art_psychedelic" | "print_monochrome_crisp" | "print_early_learner" | "print_stem_technical" | "embroidery_tapestry" | "woven_textile";
|
|
3
|
-
/** The same
|
|
2
|
+
export type DesignStyle = "minimal" | "editorial" | "playful" | "cinematic" | "energetic" | "scrapbook" | "swiss_typographic" | "neumorphic_glass" | "risograph_print" | "cyberpunk_neon" | "bauhaus_geometric" | "art_deco_geometric" | "memphis_group" | "brutalist_raw" | "de_stijl_neoplasticism" | "pop_art_expression" | "vaporwave_retro" | "corporate_memphis" | "y2k_frutiger_aero" | "mid_century_upa" | "comic_benday" | "pixel_art_8bit" | "isometric_lowpoly" | "hand_drawn_sketch" | "claymorphism" | "constructivism_suprematism" | "art_nouveau" | "op_art_psychedelic" | "print_monochrome_crisp" | "print_early_learner" | "print_stem_technical" | "embroidery_tapestry" | "woven_textile" | "explainer_ink" | "synthwave_outrun" | "sumi_e_ink" | "flat_design" | "blueprint_schematic";
|
|
3
|
+
/** The same 38 styles as DATA, so a runtime list cannot drift from the type. */
|
|
4
4
|
export declare const DESIGN_STYLES: readonly DesignStyle[];
|
|
5
5
|
//# sourceMappingURL=design-style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-style.d.ts","sourceRoot":"","sources":["../../../src/vendor/design/design-style.ts"],"names":[],"mappings":"AAWA,kFAAkF;AAClF,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,eAAe,GACf,eAAe,GACf,wBAAwB,GACxB,oBAAoB,GACpB,iBAAiB,GACjB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,mBAAmB,GACnB,cAAc,GACd,4BAA4B,GAC5B,aAAa,GACb,oBAAoB,GACpB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"design-style.d.ts","sourceRoot":"","sources":["../../../src/vendor/design/design-style.ts"],"names":[],"mappings":"AAWA,kFAAkF;AAClF,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,eAAe,GACf,eAAe,GACf,wBAAwB,GACxB,oBAAoB,GACpB,iBAAiB,GACjB,mBAAmB,GACnB,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,mBAAmB,GACnB,mBAAmB,GACnB,cAAc,GACd,4BAA4B,GAC5B,aAAa,GACb,oBAAoB,GACpB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,eAAe,GAEf,eAAe,GACf,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,qBAAqB,CAAC;AAG1B,gFAAgF;AAChF,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAuC9C,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* GENERATED — DO NOT EDIT.
|
|
2
2
|
*
|
|
3
3
|
* Source: mcp-cloud/src/services/content-recipes.ts (DesignStyle union only)
|
|
4
|
-
* sha256:
|
|
4
|
+
* sha256: 4987265fc982ad8d7191733208ccf9c5fad8aa6149c457e23742f66223a1a677
|
|
5
5
|
* Generator: scripts/sync-design-systems.mjs
|
|
6
6
|
*
|
|
7
7
|
* Edit the TypeScript upstream and re-run the generator. A hand edit here is
|
|
8
8
|
* the second copy of the same design vocabulary that the generator exists to
|
|
9
9
|
* prevent, and the provenance test will fail on it.
|
|
10
10
|
*/
|
|
11
|
-
/** The same
|
|
11
|
+
/** The same 38 styles as DATA, so a runtime list cannot drift from the type. */
|
|
12
12
|
export const DESIGN_STYLES = Object.freeze([
|
|
13
13
|
'minimal',
|
|
14
14
|
'editorial',
|
|
@@ -43,5 +43,10 @@ export const DESIGN_STYLES = Object.freeze([
|
|
|
43
43
|
'print_stem_technical',
|
|
44
44
|
'embroidery_tapestry',
|
|
45
45
|
'woven_textile',
|
|
46
|
+
'explainer_ink',
|
|
47
|
+
'synthwave_outrun',
|
|
48
|
+
'sumi_e_ink',
|
|
49
|
+
'flat_design',
|
|
50
|
+
'blueprint_schematic',
|
|
46
51
|
]);
|
|
47
52
|
//# sourceMappingURL=design-style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-style.js","sourceRoot":"","sources":["../../../src/vendor/design/design-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"design-style.js","sourceRoot":"","sources":["../../../src/vendor/design/design-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA6CH,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAA2B,MAAM,CAAC,MAAM,CAAC;IACjE,SAAS;IACT,WAAW;IACX,SAAS;IACT,WAAW;IACX,WAAW;IACX,WAAW;IACX,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,eAAe;IACf,eAAe;IACf,wBAAwB;IACxB,oBAAoB;IACpB,iBAAiB;IACjB,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,mBAAmB;IACnB,mBAAmB;IACnB,cAAc;IACd,4BAA4B;IAC5B,aAAa;IACb,oBAAoB;IACpB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,kBAAkB;IAClB,YAAY;IACZ,aAAa;IACb,qBAAqB;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subdivision tool schemas for the public MCP server API.
|
|
3
|
+
*
|
|
4
|
+
* Exposes pinepaper_draw_subdivision for autonomous and assisted agents.
|
|
5
|
+
*/
|
|
6
|
+
export interface SubdivisionToolDef {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: "object";
|
|
11
|
+
properties: Record<string, unknown>;
|
|
12
|
+
required?: string[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare function subdivisionTools(): SubdivisionToolDef[];
|
|
16
|
+
//# sourceMappingURL=subdivision-tool-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subdivision-tool-schema.d.ts","sourceRoot":"","sources":["../../../src/vendor/design/subdivision-tool-schema.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AAEH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH;AAED,wBAAgB,gBAAgB,IAAI,kBAAkB,EAAE,CAyFvD"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* GENERATED — DO NOT EDIT.
|
|
2
|
+
*
|
|
3
|
+
* Source: mcp-cloud/src/services/subdivision-tool-schema.ts
|
|
4
|
+
* sha256: ce1d01ac572d9bbf66ea31160548f657dcf6a294eebb36427be64a458ef92d5c
|
|
5
|
+
* Generator: scripts/sync-design-systems.mjs
|
|
6
|
+
*
|
|
7
|
+
* Edit the TypeScript upstream and re-run the generator. A hand edit here is
|
|
8
|
+
* the second copy of the same design vocabulary that the generator exists to
|
|
9
|
+
* prevent, and the provenance test will fail on it.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Subdivision tool schemas for the public MCP server API.
|
|
13
|
+
*
|
|
14
|
+
* Exposes pinepaper_draw_subdivision for autonomous and assisted agents.
|
|
15
|
+
*/
|
|
16
|
+
export function subdivisionTools() {
|
|
17
|
+
return [
|
|
18
|
+
{
|
|
19
|
+
name: "pinepaper_draw_subdivision",
|
|
20
|
+
description: "Generate asymmetric recursive quadtree/rectangular partition compositions (De Stijl/Mondrian, Swiss International Style, Bauhaus, Minimal) with bounded depth, asymmetric rest cell preservation, and crisp orthogonal dividers. Appends to canvas state for rendering and vector export. [Cost: $0.001]",
|
|
21
|
+
inputSchema: {
|
|
22
|
+
type: "object",
|
|
23
|
+
properties: {
|
|
24
|
+
preset: {
|
|
25
|
+
type: "string",
|
|
26
|
+
enum: ["mondrian", "swiss", "bauhaus", "minimal", "custom"],
|
|
27
|
+
description: "Style preset: mondrian = primary red/blue/yellow with heavy black dividers; swiss = clean modernist with hairline grid and nested cards; bauhaus = geometric warm parchment palette; minimal = quiet monochromatic; custom = user-specified palette.",
|
|
28
|
+
},
|
|
29
|
+
maxDepth: {
|
|
30
|
+
type: "integer",
|
|
31
|
+
minimum: 1,
|
|
32
|
+
maximum: 6,
|
|
33
|
+
description: "Maximum subdivision recursion depth (default: 4). Bounded to guarantee non-hanging design generation.",
|
|
34
|
+
},
|
|
35
|
+
minDepth: {
|
|
36
|
+
type: "integer",
|
|
37
|
+
minimum: 1,
|
|
38
|
+
maximum: 6,
|
|
39
|
+
description: "Minimum subdivision depth before leaf cells are permitted (default: 2).",
|
|
40
|
+
},
|
|
41
|
+
splitBias: {
|
|
42
|
+
type: "array",
|
|
43
|
+
items: { type: "number" },
|
|
44
|
+
minItems: 2,
|
|
45
|
+
maxItems: 2,
|
|
46
|
+
description: "Partition ratio range [min, max] along the splitting axis (default: [0.35, 0.65]).",
|
|
47
|
+
},
|
|
48
|
+
colorProbability: {
|
|
49
|
+
type: "number",
|
|
50
|
+
minimum: 0,
|
|
51
|
+
maximum: 1,
|
|
52
|
+
description: "Probability that a leaf cell receives an accent color fill rather than neutral ground (default: 0.35 - 0.45).",
|
|
53
|
+
},
|
|
54
|
+
nestedProbability: {
|
|
55
|
+
type: "number",
|
|
56
|
+
minimum: 0,
|
|
57
|
+
maximum: 1,
|
|
58
|
+
description: "Probability that a colored cell receives an inner nested accent frame (default: 0 - 0.25).",
|
|
59
|
+
},
|
|
60
|
+
dividerWidth: {
|
|
61
|
+
type: "number",
|
|
62
|
+
description: "Stroke thickness in px for orthogonal divider grid lines (e.g. 8 for Mondrian, 1.5 for Swiss, 0 for borderless).",
|
|
63
|
+
},
|
|
64
|
+
dividerColor: {
|
|
65
|
+
type: "string",
|
|
66
|
+
description: "Color of dividing grid lines (hex or rgba, e.g. '#0a0a0a').",
|
|
67
|
+
},
|
|
68
|
+
groundColor: {
|
|
69
|
+
type: "string",
|
|
70
|
+
description: "Canvas background / rest color (e.g. '#ffffff' or '#f8fafc').",
|
|
71
|
+
},
|
|
72
|
+
accentColors: {
|
|
73
|
+
type: "array",
|
|
74
|
+
items: { type: "string" },
|
|
75
|
+
description: "List of hex/rgba colors used for cell fills.",
|
|
76
|
+
},
|
|
77
|
+
cellInset: {
|
|
78
|
+
type: "number",
|
|
79
|
+
description: "Inner padding in px inside each cell (default: 0 - 4).",
|
|
80
|
+
},
|
|
81
|
+
bounds: {
|
|
82
|
+
type: "object",
|
|
83
|
+
properties: {
|
|
84
|
+
x: { type: "number" },
|
|
85
|
+
y: { type: "number" },
|
|
86
|
+
width: { type: "number" },
|
|
87
|
+
height: { type: "number" },
|
|
88
|
+
},
|
|
89
|
+
description: "Bounding box for the subdivision layout (default: full canvas 1280x720 or 1080x1350).",
|
|
90
|
+
},
|
|
91
|
+
seed: {
|
|
92
|
+
type: "integer",
|
|
93
|
+
description: "Deterministic PRNG seed for reproducible composition layouts.",
|
|
94
|
+
},
|
|
95
|
+
idPrefix: {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: "Prefix for generated Paper.js item registry IDs.",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=subdivision-tool-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subdivision-tool-schema.js","sourceRoot":"","sources":["../../../src/vendor/design/subdivision-tool-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH;;;;GAIG;AAYH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL;YACE,IAAI,EAAE,4BAA4B;YAClC,WAAW,EACT,0SAA0S;YAC5S,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;wBAC3D,WAAW,EACT,sPAAsP;qBACzP;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,CAAC;wBACV,OAAO,EAAE,CAAC;wBACV,WAAW,EAAE,uGAAuG;qBACrH;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,CAAC;wBACV,OAAO,EAAE,CAAC;wBACV,WAAW,EAAE,yEAAyE;qBACvF;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACzB,QAAQ,EAAE,CAAC;wBACX,QAAQ,EAAE,CAAC;wBACX,WAAW,EAAE,oFAAoF;qBAClG;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,QAAQ;wBAC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Weave & Embroidery Generation.
|
|
3
|
+
*
|
|
4
|
+
* Declared once and derived directly from generator contracts.
|
|
5
|
+
* Exposes pinepaper_draw_weave, pinepaper_draw_knots, and pinepaper_draw_sashiko
|
|
6
|
+
* to AI models and agentic clients connecting via the Model Context Protocol.
|
|
7
|
+
*/
|
|
8
|
+
export interface TextileToolDef {
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
inputSchema: Record<string, unknown>;
|
|
12
|
+
}
|
|
13
|
+
export declare function textileTools(): TextileToolDef[];
|
|
14
|
+
//# sourceMappingURL=textile-tool-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textile-tool-schema.d.ts","sourceRoot":"","sources":["../../../src/vendor/design/textile-tool-schema.ts"],"names":[],"mappings":"AAUA;;;;;;GAMG;AAEH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,wBAAgB,YAAY,IAAI,cAAc,EAAE,CAmL/C"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* GENERATED — DO NOT EDIT.
|
|
2
|
+
*
|
|
3
|
+
* Source: mcp-cloud/src/services/textile-tool-schema.ts
|
|
4
|
+
* sha256: b360bad615f5735239a7ecdc120577196379874ce20e45b90eb54fc7c32d3e0c
|
|
5
|
+
* Generator: scripts/sync-design-systems.mjs
|
|
6
|
+
*
|
|
7
|
+
* Edit the TypeScript upstream and re-run the generator. A hand edit here is
|
|
8
|
+
* the second copy of the same design vocabulary that the generator exists to
|
|
9
|
+
* prevent, and the provenance test will fail on it.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Public MCP Tool Schemas for Vector Textile, Weave & Embroidery Generation.
|
|
13
|
+
*
|
|
14
|
+
* Declared once and derived directly from generator contracts.
|
|
15
|
+
* Exposes pinepaper_draw_weave, pinepaper_draw_knots, and pinepaper_draw_sashiko
|
|
16
|
+
* to AI models and agentic clients connecting via the Model Context Protocol.
|
|
17
|
+
*/
|
|
18
|
+
export function textileTools() {
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
name: "pinepaper_draw_weave",
|
|
22
|
+
description: "Draw authentic structural woven textiles (Plain/Tabby, Twill, Herringbone, Basketweave/Panama) as vector fiber lattices with alternating over/under warp and weft phase offsets. Supports natural yarn slub jitter, float ratios, and herringbone chevron reversals. Appends to canvas state for high-fidelity export and playback. [Cost: $0.001]",
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: "object",
|
|
25
|
+
properties: {
|
|
26
|
+
weave: {
|
|
27
|
+
type: "string",
|
|
28
|
+
enum: ["plain", "twill", "basket", "herringbone"],
|
|
29
|
+
description: "The weave topology. plain = 1/1 orthogonal interlace; twill = stepped diagonal float ridges; basket = grouped thread checkerboard; herringbone = chevron zig-zag twill.",
|
|
30
|
+
},
|
|
31
|
+
warpColor: {
|
|
32
|
+
type: "string",
|
|
33
|
+
description: "Color of vertical warp threads (hex or rgba, e.g. '#334155').",
|
|
34
|
+
},
|
|
35
|
+
weftColor: {
|
|
36
|
+
type: "string",
|
|
37
|
+
description: "Color of horizontal weft threads (hex or rgba, e.g. '#94a3b8').",
|
|
38
|
+
},
|
|
39
|
+
threadThickness: {
|
|
40
|
+
type: "number",
|
|
41
|
+
description: "Thread stroke width in px (default: 1.8).",
|
|
42
|
+
},
|
|
43
|
+
density: {
|
|
44
|
+
type: "number",
|
|
45
|
+
description: "Thread pitch / grid density (default: 16).",
|
|
46
|
+
},
|
|
47
|
+
floatRatio: {
|
|
48
|
+
type: "number",
|
|
49
|
+
description: "Float span multiplier for twill (e.g. 2 for 2/2 twill, default: 2).",
|
|
50
|
+
},
|
|
51
|
+
twillVariant: {
|
|
52
|
+
type: "string",
|
|
53
|
+
enum: ["standard", "herringbone"],
|
|
54
|
+
description: "Variant for twill weave.",
|
|
55
|
+
},
|
|
56
|
+
chevronWidth: {
|
|
57
|
+
type: "number",
|
|
58
|
+
description: "Width of herringbone chevron directional blocks in px (default: 140).",
|
|
59
|
+
},
|
|
60
|
+
bundleSize: {
|
|
61
|
+
type: "number",
|
|
62
|
+
description: "Number of parallel threads bundled in basketweave blocks (default: 2).",
|
|
63
|
+
},
|
|
64
|
+
bundleGap: {
|
|
65
|
+
type: "number",
|
|
66
|
+
description: "Spacing gap between checkerboard blocks in basketweave (default: 2).",
|
|
67
|
+
},
|
|
68
|
+
slubJitter: {
|
|
69
|
+
type: "number",
|
|
70
|
+
description: "Natural spun fiber imperfection jitter (0 for smooth CAD, 0.15 for natural yarn).",
|
|
71
|
+
},
|
|
72
|
+
opacity: {
|
|
73
|
+
type: "number",
|
|
74
|
+
description: "Weave layer opacity (0.0 to 1.0, default: 0.85).",
|
|
75
|
+
},
|
|
76
|
+
bounds: {
|
|
77
|
+
type: "object",
|
|
78
|
+
description: "Bounding rectangle for weave canvas coverage.",
|
|
79
|
+
properties: {
|
|
80
|
+
x: { type: "number" },
|
|
81
|
+
y: { type: "number" },
|
|
82
|
+
width: { type: "number" },
|
|
83
|
+
height: { type: "number" },
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "pinepaper_draw_knots",
|
|
91
|
+
description: "Draw three-dimensional embroidered knot relief (French knots, bullion coil rolls, and tension anchor tacks) with drop shadows, tight thread wraps, and specular highlight glints. Appends to canvas state for high-fidelity export and playback. [Cost: $0.001]",
|
|
92
|
+
inputSchema: {
|
|
93
|
+
type: "object",
|
|
94
|
+
properties: {
|
|
95
|
+
knotType: {
|
|
96
|
+
type: "string",
|
|
97
|
+
enum: ["french_knot", "bullion_roll", "knot_anchor"],
|
|
98
|
+
description: "Style of knot. french_knot = concentric coiled bead with crescent shadow; bullion_roll = elongated cylindrical coils; knot_anchor = cross-tack stitches.",
|
|
99
|
+
},
|
|
100
|
+
points: {
|
|
101
|
+
type: "array",
|
|
102
|
+
description: "Locations and individual properties of knots.",
|
|
103
|
+
items: {
|
|
104
|
+
type: "object",
|
|
105
|
+
properties: {
|
|
106
|
+
x: { type: "number", description: "X center coordinate." },
|
|
107
|
+
y: { type: "number", description: "Y center coordinate." },
|
|
108
|
+
radius: { type: "number", description: "Knot bead radius." },
|
|
109
|
+
color: { type: "string", description: "Thread body color." },
|
|
110
|
+
highlightColor: { type: "string", description: "Specular glint highlight color." },
|
|
111
|
+
shadowColor: { type: "string", description: "Drop shadow crescent color." },
|
|
112
|
+
length: { type: "number", description: "Length of bullion roll in px." },
|
|
113
|
+
angle: { type: "number", description: "Angle of bullion roll in degrees." },
|
|
114
|
+
},
|
|
115
|
+
required: ["x", "y"],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
threadColor: {
|
|
119
|
+
type: "string",
|
|
120
|
+
description: "Default knot thread color (hex or rgba, e.g. '#fbbf24').",
|
|
121
|
+
},
|
|
122
|
+
highlightColor: {
|
|
123
|
+
type: "string",
|
|
124
|
+
description: "Default highlight glint color (hex or rgba, e.g. '#fef08a').",
|
|
125
|
+
},
|
|
126
|
+
shadowColor: {
|
|
127
|
+
type: "string",
|
|
128
|
+
description: "Default drop shadow color (hex or rgba, e.g. 'rgba(15, 23, 42, 0.4)').",
|
|
129
|
+
},
|
|
130
|
+
defaultRadius: {
|
|
131
|
+
type: "number",
|
|
132
|
+
description: "Default knot bead radius in px (default: 5).",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "pinepaper_draw_sashiko",
|
|
139
|
+
description: "Draw Japanese Sashiko geometric folk embroidery lattices (Seigaiha blue sea waves, Asanoha hemp-leaf stars, Hishi diamond grids) with dashed running stitches on indigo ground cloth. Strictly enforces authentic vertex gaps so stitches never collide at meeting points. Appends to canvas state for high-fidelity export and playback. [Cost: $0.001]",
|
|
140
|
+
inputSchema: {
|
|
141
|
+
type: "object",
|
|
142
|
+
properties: {
|
|
143
|
+
pattern: {
|
|
144
|
+
type: "string",
|
|
145
|
+
enum: ["seigaiha", "asanoha", "hishi", "kaki_no_hana"],
|
|
146
|
+
description: "Traditional Sashiko pattern. seigaiha = concentric overlapping wave arcs; asanoha = hexagonal hemp-leaf star lattice; hishi/kaki_no_hana = diamond grid with persimmon flower intersections.",
|
|
147
|
+
},
|
|
148
|
+
stitchLength: {
|
|
149
|
+
type: "number",
|
|
150
|
+
description: "Length of individual running stitches in px (default: 8).",
|
|
151
|
+
},
|
|
152
|
+
gapLength: {
|
|
153
|
+
type: "number",
|
|
154
|
+
description: "Spacing gap between running stitches in px (default: 4).",
|
|
155
|
+
},
|
|
156
|
+
vertexGap: {
|
|
157
|
+
type: "number",
|
|
158
|
+
description: "Corner standoff clearance distance ensuring stitches do not collide at intersection vertices (default: 3).",
|
|
159
|
+
},
|
|
160
|
+
scale: {
|
|
161
|
+
type: "number",
|
|
162
|
+
description: "Size of repeating geometric unit in px (default: 42).",
|
|
163
|
+
},
|
|
164
|
+
concentricArcs: {
|
|
165
|
+
type: "number",
|
|
166
|
+
description: "Number of concentric wave arcs per crest in Seigaiha (default: 3).",
|
|
167
|
+
},
|
|
168
|
+
threadColor: {
|
|
169
|
+
type: "string",
|
|
170
|
+
description: "Thread color (default: '#ffffff' white cotton).",
|
|
171
|
+
},
|
|
172
|
+
groundColor: {
|
|
173
|
+
type: "string",
|
|
174
|
+
description: "Ground cloth color (default: '#1e3a8a' indigo).",
|
|
175
|
+
},
|
|
176
|
+
threadWidth: {
|
|
177
|
+
type: "number",
|
|
178
|
+
description: "Thread stroke width in px (default: 1.6).",
|
|
179
|
+
},
|
|
180
|
+
bounds: {
|
|
181
|
+
type: "object",
|
|
182
|
+
description: "Bounding rectangle for pattern canvas coverage.",
|
|
183
|
+
properties: {
|
|
184
|
+
x: { type: "number" },
|
|
185
|
+
y: { type: "number" },
|
|
186
|
+
width: { type: "number" },
|
|
187
|
+
height: { type: "number" },
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
];
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=textile-tool-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textile-tool-schema.js","sourceRoot":"","sources":["../../../src/vendor/design/textile-tool-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH;;;;;;GAMG;AAQH,MAAM,UAAU,YAAY;IAC1B,OAAO;QACL;YACE,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EACT,oVAAoV;YACtV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC;wBACjD,WAAW,EAAE,yKAAyK;qBACvL;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,+DAA+D;qBAC7E;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iEAAiE;qBAC/E;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2CAA2C;qBACzD;oBACD,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,4CAA4C;qBAC1D;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qEAAqE;qBACnF;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC;wBACjC,WAAW,EAAE,0BAA0B;qBACxC;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uEAAuE;qBACrF;oBACD,UAAU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S,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,4GAA4G;qBAC1H;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uDAAuD;qBACrE;oBACD,cAAc,EAAE;wBACd,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oEAAoE;qBAClF;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iDAAiD;qBAC/D;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iDAAiD;qBAC/D;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2CAA2C;qBACzD;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iDAAiD;wBAC9D,UAAU,EAAE;4BACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BACrB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC3B;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE UI KIT — phone lock screens, notifications, prompt boxes, toggles, calendar and ad cards (D83, #81).
|
|
3
|
+
*
|
|
4
|
+
* A product video is mostly interface: a phone wakes, three notifications stack in, a prompt box types a
|
|
5
|
+
* request. Asked for that, a model stacked rectangles and guessed at what a Dynamic Island looks like, and
|
|
6
|
+
* every answer was a different, slightly wrong phone. The kit draws them once, properly, as parametric
|
|
7
|
+
* components the designer calls by name — `UIKit.phone(...)`, `UIKit.notifications(...)`,
|
|
8
|
+
* `UIKit.promptBox(...)` — and the result takes its colours, fonts and corner rounding from the brand kit
|
|
9
|
+
* when one is set.
|
|
10
|
+
*
|
|
11
|
+
* IT TRAVELS THE WAY THE RIG LIBRARY DOES (a863f78c): the source is served at /v1/ui-kit-runtime.js, the
|
|
12
|
+
* chat attaches it to generated code that calls the kit without defining it, and the render door attaches
|
|
13
|
+
* it to a scene's custom code (ui-kit-attach.ts). It never travels in the prompt: a model asked to paste a
|
|
14
|
+
* library paraphrases it and the paraphrase drops lines.
|
|
15
|
+
*
|
|
16
|
+
* BUILT ONLY FROM PRIMITIVES EVERY ENGINE DOOR DRAWS: `PinePaper.create` with rectangle (radius), circle,
|
|
17
|
+
* text (justification left/center/right) and path, animated only by `PinePaper.addAnimation` keyframes on
|
|
18
|
+
* opacity, y, x, scale and content. Nothing here reaches for a DOM, a font loader or a network. Each
|
|
19
|
+
* component is a set of ordinary registered items, so it can be selected, edited and recoloured afterwards.
|
|
20
|
+
*
|
|
21
|
+
* WHY A STRING: this is JavaScript that runs inside the engine (the Studio's canvas, the render container,
|
|
22
|
+
* the still engine), not code the Worker executes. Plain ES5 on purpose — no template literals, no arrow
|
|
23
|
+
* functions — so it parses in every one of those realms, and so this file can hold it in a String.raw.
|
|
24
|
+
*/
|
|
25
|
+
/** Names whose presence in generated code means the kit must be attached. */
|
|
26
|
+
export declare const UI_KIT_SYMBOLS: readonly string[];
|
|
27
|
+
/** The sentinel the runtime defines; code that carries it already has the kit. */
|
|
28
|
+
export declare const UI_KIT_SENTINEL = "__PP_UI_KIT__";
|
|
29
|
+
export declare const UI_KIT_RUNTIME: string;
|
|
30
|
+
/** Does this code call the kit without carrying it? */
|
|
31
|
+
export declare function usesUiKit(code: string): boolean;
|
|
32
|
+
/** The engine's brand-kit shape, the part the kit reads. */
|
|
33
|
+
export interface UiKitBrand {
|
|
34
|
+
name?: string;
|
|
35
|
+
colors?: Record<string, string>;
|
|
36
|
+
fonts?: {
|
|
37
|
+
heading?: string;
|
|
38
|
+
body?: string;
|
|
39
|
+
mono?: string;
|
|
40
|
+
};
|
|
41
|
+
radius?: number | "sharp" | "soft" | "round";
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The one line that tells the kit which brand it is drawing in, built from a scene's brand_kit op.
|
|
45
|
+
* Every value is checked where it enters (this becomes code): colours must be colours, fonts plain
|
|
46
|
+
* family names, and the whole thing travels as JSON.
|
|
47
|
+
*/
|
|
48
|
+
export declare function uiKitBrandLine(kit: unknown): string | null;
|
|
49
|
+
//# sourceMappingURL=ui-kit-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-kit-runtime.d.ts","sourceRoot":"","sources":["../../../src/vendor/design/ui-kit-runtime.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAAe,CAAC;AAE5D,kFAAkF;AAClF,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAE/C,eAAO,MAAM,cAAc,EAAE,MAmqB5B,CAAC;AAEF,uDAAuD;AACvD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO/C;AAED,4DAA4D;AAC5D,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;CAC9C;AAKD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAoB1D"}
|