@pinepaper.studio/mcp-server 1.5.1 → 1.5.4
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 -4
- package/dist/agent/types.d.ts +16 -16
- package/dist/browser/puppeteer-controller.d.ts +5 -1
- package/dist/browser/puppeteer-controller.d.ts.map +1 -1
- package/dist/browser/puppeteer-controller.js +11 -3
- package/dist/browser/puppeteer-controller.js.map +1 -1
- package/dist/browser/url-target.d.ts +26 -0
- package/dist/browser/url-target.d.ts.map +1 -0
- package/dist/browser/url-target.js +50 -0
- package/dist/browser/url-target.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +128 -109
- package/dist/index.js.map +1 -1
- package/dist/ontology/design-graph.d.ts +85 -0
- package/dist/ontology/design-graph.d.ts.map +1 -0
- package/dist/ontology/design-graph.js +944 -0
- package/dist/ontology/design-graph.js.map +1 -0
- package/dist/ontology/hints.d.ts +71 -0
- package/dist/ontology/hints.d.ts.map +1 -0
- package/dist/ontology/hints.js +189 -0
- package/dist/ontology/hints.js.map +1 -0
- package/dist/ontology/index.d.ts +11 -0
- package/dist/ontology/index.d.ts.map +1 -0
- package/dist/ontology/index.js +14 -0
- package/dist/ontology/index.js.map +1 -0
- package/dist/ontology/semantic-vocabulary.d.ts +12 -0
- package/dist/ontology/semantic-vocabulary.d.ts.map +1 -0
- package/dist/ontology/semantic-vocabulary.js +26 -0
- package/dist/ontology/semantic-vocabulary.js.map +1 -0
- package/dist/ontology/types.d.ts +255 -0
- package/dist/ontology/types.d.ts.map +1 -0
- package/dist/ontology/types.js +10 -0
- package/dist/ontology/types.js.map +1 -0
- package/dist/ontology/validator.d.ts +36 -0
- package/dist/ontology/validator.d.ts.map +1 -0
- package/dist/ontology/validator.js +374 -0
- package/dist/ontology/validator.js.map +1 -0
- package/dist/ontology/vocabulary.d.ts +34 -0
- package/dist/ontology/vocabulary.d.ts.map +1 -0
- package/dist/ontology/vocabulary.js +429 -0
- package/dist/ontology/vocabulary.js.map +1 -0
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +146 -0
- package/dist/prompts/index.js.map +1 -1
- package/dist/tools/compact-descriptions.d.ts +5 -2
- package/dist/tools/compact-descriptions.d.ts.map +1 -1
- package/dist/tools/compact-descriptions.js +56 -235
- package/dist/tools/compact-descriptions.js.map +1 -1
- package/dist/tools/definitions.d.ts +1 -1
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +1842 -1784
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/handlers/camera.d.ts +19 -0
- package/dist/tools/handlers/camera.d.ts.map +1 -0
- package/dist/tools/handlers/camera.js +94 -0
- package/dist/tools/handlers/camera.js.map +1 -0
- package/dist/tools/handlers/export.d.ts +12 -0
- package/dist/tools/handlers/export.d.ts.map +1 -0
- package/dist/tools/handlers/export.js +30 -0
- package/dist/tools/handlers/export.js.map +1 -0
- package/dist/tools/handlers/font.d.ts +12 -0
- package/dist/tools/handlers/font.d.ts.map +1 -0
- package/dist/tools/handlers/font.js +135 -0
- package/dist/tools/handlers/font.js.map +1 -0
- package/dist/tools/handlers/maps.d.ts +19 -0
- package/dist/tools/handlers/maps.d.ts.map +1 -0
- package/dist/tools/handlers/maps.js +184 -0
- package/dist/tools/handlers/maps.js.map +1 -0
- package/dist/tools/handlers/ontology.d.ts +20 -0
- package/dist/tools/handlers/ontology.d.ts.map +1 -0
- package/dist/tools/handlers/ontology.js +185 -0
- package/dist/tools/handlers/ontology.js.map +1 -0
- package/dist/tools/handlers/tool-guide.d.ts +14 -0
- package/dist/tools/handlers/tool-guide.d.ts.map +1 -0
- package/dist/tools/handlers/tool-guide.js +52 -0
- package/dist/tools/handlers/tool-guide.js.map +1 -0
- package/dist/tools/handlers.d.ts +18 -0
- package/dist/tools/handlers.d.ts.map +1 -1
- package/dist/tools/handlers.js +321 -574
- package/dist/tools/handlers.js.map +1 -1
- package/dist/tools/minimal-descriptions.d.ts +4 -0
- package/dist/tools/minimal-descriptions.d.ts.map +1 -1
- package/dist/tools/minimal-descriptions.js +65 -54
- package/dist/tools/minimal-descriptions.js.map +1 -1
- package/dist/tools/toolkits.d.ts.map +1 -1
- package/dist/tools/toolkits.js +67 -46
- package/dist/tools/toolkits.js.map +1 -1
- package/dist/types/code-generator.d.ts +49 -2
- package/dist/types/code-generator.d.ts.map +1 -1
- package/dist/types/code-generator.js +1456 -39
- package/dist/types/code-generator.js.map +1 -1
- package/dist/types/schemas.d.ts +1381 -404
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +426 -20
- package/dist/types/schemas.js.map +1 -1
- package/package.json +2 -2
package/dist/prompts/index.js
CHANGED
|
@@ -63,6 +63,76 @@ const CINEMA_TITLES_PROMPT = {
|
|
|
63
63
|
},
|
|
64
64
|
],
|
|
65
65
|
};
|
|
66
|
+
const SOCIAL_GRAPHIC_PROMPT = {
|
|
67
|
+
name: 'social-graphic',
|
|
68
|
+
description: 'Platform-sized social post with background generator, headline text, and call-to-action. Sets the right canvas preset and exports as the platform-recommended format.',
|
|
69
|
+
arguments: [
|
|
70
|
+
{
|
|
71
|
+
name: 'platform',
|
|
72
|
+
description: 'instagram | instagram-story | tiktok | youtube | youtube-thumbnail | twitter | linkedin (default: instagram)',
|
|
73
|
+
required: false,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'description',
|
|
77
|
+
description: 'Headline + vibe, e.g. "Sale: 50% off — neon, urgent" or "Welcome back — calm pastel"',
|
|
78
|
+
required: true,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
const ANIMATED_INFOGRAPHIC_PROMPT = {
|
|
83
|
+
name: 'animated-infographic',
|
|
84
|
+
description: 'Data visualization with chart + reveal animations. Uses pinepaper_create_chart to render bar/line/scatter/area charts; the reveal uses keyframe animations and apply_mask.',
|
|
85
|
+
arguments: [
|
|
86
|
+
{
|
|
87
|
+
name: 'description',
|
|
88
|
+
description: 'The data + framing, e.g. "Q3 revenue by region — bars revealing left-to-right with totals"',
|
|
89
|
+
required: true,
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
};
|
|
93
|
+
const MERMAID_DIAGRAM_PROMPT = {
|
|
94
|
+
name: 'mermaid-diagram',
|
|
95
|
+
description: 'Render Mermaid source as a native PinePaper diagram via pinepaper_import_mermaid. Supports flowchart, sequenceDiagram, erDiagram, classDiagram, stateDiagram. Optional walkthrough animation.',
|
|
96
|
+
arguments: [
|
|
97
|
+
{
|
|
98
|
+
name: 'mermaidText',
|
|
99
|
+
description: 'The Mermaid source string. First non-blank line picks the diagram type.',
|
|
100
|
+
required: true,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'walkthrough',
|
|
104
|
+
description: 'Optional: "true" to add a camera_animates walkthrough that traverses each node.',
|
|
105
|
+
required: false,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
};
|
|
109
|
+
const LOADING_SCREEN_PROMPT = {
|
|
110
|
+
name: 'loading-screen',
|
|
111
|
+
description: 'Branded loading screen with rotating spinner and pulsing logo text. Loops indefinitely.',
|
|
112
|
+
arguments: [
|
|
113
|
+
{
|
|
114
|
+
name: 'description',
|
|
115
|
+
description: 'Brand and feel, e.g. "Acme Corp — minimal monochrome" or "GameZone — neon arcade"',
|
|
116
|
+
required: true,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
};
|
|
120
|
+
const LETTER_COLLAGE_PROMPT = {
|
|
121
|
+
name: 'letter-collage',
|
|
122
|
+
description: 'Decorative word display using pinepaper_create_letter_collage with a chosen palette + style (tile, magazine, paperCut, fold, gradient, image). Pairs with apply_animated_mask for elegant reveals.',
|
|
123
|
+
arguments: [
|
|
124
|
+
{
|
|
125
|
+
name: 'word',
|
|
126
|
+
description: 'The word or short phrase, e.g. "DREAM" or "HELLO"',
|
|
127
|
+
required: true,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'description',
|
|
131
|
+
description: 'Style + palette feel, e.g. "fold style, sunset palette, slow reveal"',
|
|
132
|
+
required: false,
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
};
|
|
66
136
|
// -----------------------------------------------------------------------------
|
|
67
137
|
// PROMPTS array — exported for ListPrompts handler
|
|
68
138
|
// -----------------------------------------------------------------------------
|
|
@@ -72,6 +142,11 @@ export const PROMPTS = [
|
|
|
72
142
|
SIMPLE_DECISION_FLOW_PROMPT,
|
|
73
143
|
SOLAR_SYSTEM_PROMPT,
|
|
74
144
|
CINEMA_TITLES_PROMPT,
|
|
145
|
+
SOCIAL_GRAPHIC_PROMPT,
|
|
146
|
+
ANIMATED_INFOGRAPHIC_PROMPT,
|
|
147
|
+
MERMAID_DIAGRAM_PROMPT,
|
|
148
|
+
LOADING_SCREEN_PROMPT,
|
|
149
|
+
LETTER_COLLAGE_PROMPT,
|
|
75
150
|
];
|
|
76
151
|
// -----------------------------------------------------------------------------
|
|
77
152
|
// Message builders — user message only, no assistant pre-fill
|
|
@@ -136,6 +211,72 @@ function buildCinemaTitles(args = {}) {
|
|
|
136
211
|
},
|
|
137
212
|
];
|
|
138
213
|
}
|
|
214
|
+
function buildSocialGraphic(args = {}) {
|
|
215
|
+
const platform = args.platform || 'instagram';
|
|
216
|
+
const description = args.description || 'Headline content — bold and modern';
|
|
217
|
+
return [
|
|
218
|
+
{
|
|
219
|
+
role: 'user',
|
|
220
|
+
content: {
|
|
221
|
+
type: 'text',
|
|
222
|
+
text: `Create a ${platform} social graphic: ${description}. Use the ${platform} canvas preset and export in the platform-recommended format.`,
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
function buildAnimatedInfographic(args = {}) {
|
|
228
|
+
const description = args.description || 'Quarterly metrics dashboard — bars revealing left-to-right with totals';
|
|
229
|
+
return [
|
|
230
|
+
{
|
|
231
|
+
role: 'user',
|
|
232
|
+
content: {
|
|
233
|
+
type: 'text',
|
|
234
|
+
text: `Create an animated infographic: ${description}. Use pinepaper_create_chart for the data plot and pinepaper_keyframe_animate or pinepaper_apply_animated_mask for the reveal.`,
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
];
|
|
238
|
+
}
|
|
239
|
+
function buildMermaidDiagram(args = {}) {
|
|
240
|
+
const mermaid = args.mermaidText || 'flowchart TD\n A[Start] --> B{Decision}\n B -->|Yes| C[Action]\n B -->|No| D[End]';
|
|
241
|
+
const walkthrough = args.walkthrough === 'true';
|
|
242
|
+
const walkthroughLine = walkthrough
|
|
243
|
+
? '\nThen add a camera_animates walkthrough that visits each node in sequence.'
|
|
244
|
+
: '';
|
|
245
|
+
return [
|
|
246
|
+
{
|
|
247
|
+
role: 'user',
|
|
248
|
+
content: {
|
|
249
|
+
type: 'text',
|
|
250
|
+
text: `Render this Mermaid diagram on the canvas using pinepaper_import_mermaid:\n\n\`\`\`mermaid\n${mermaid}\n\`\`\`${walkthroughLine}`,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
];
|
|
254
|
+
}
|
|
255
|
+
function buildLoadingScreen(args = {}) {
|
|
256
|
+
const description = args.description || 'Acme Corp — minimal monochrome';
|
|
257
|
+
return [
|
|
258
|
+
{
|
|
259
|
+
role: 'user',
|
|
260
|
+
content: {
|
|
261
|
+
type: 'text',
|
|
262
|
+
text: `Create a looping branded loading screen: ${description}. Include a rotating spinner and pulsing logo/text. Loop the timeline.`,
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
];
|
|
266
|
+
}
|
|
267
|
+
function buildLetterCollage(args = {}) {
|
|
268
|
+
const word = args.word || 'HELLO';
|
|
269
|
+
const description = args.description || 'tile style, wordle palette';
|
|
270
|
+
return [
|
|
271
|
+
{
|
|
272
|
+
role: 'user',
|
|
273
|
+
content: {
|
|
274
|
+
type: 'text',
|
|
275
|
+
text: `Create a decorative letter collage of "${word}" using pinepaper_create_letter_collage. Style/palette: ${description}. Add a subtle reveal with apply_animated_mask.`,
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
];
|
|
279
|
+
}
|
|
139
280
|
// -----------------------------------------------------------------------------
|
|
140
281
|
// Prompt message builder map
|
|
141
282
|
// -----------------------------------------------------------------------------
|
|
@@ -145,6 +286,11 @@ const PROMPT_BUILDERS = {
|
|
|
145
286
|
'simple-decision-flow': buildSimpleDecisionFlow,
|
|
146
287
|
'solar-system-education': buildSolarSystem,
|
|
147
288
|
'cinema-titles': buildCinemaTitles,
|
|
289
|
+
'social-graphic': buildSocialGraphic,
|
|
290
|
+
'animated-infographic': buildAnimatedInfographic,
|
|
291
|
+
'mermaid-diagram': buildMermaidDiagram,
|
|
292
|
+
'loading-screen': buildLoadingScreen,
|
|
293
|
+
'letter-collage': buildLetterCollage,
|
|
148
294
|
};
|
|
149
295
|
// -----------------------------------------------------------------------------
|
|
150
296
|
// getPromptMessages — exported for GetPrompt handler
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuBH,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,MAAM,yBAAyB,GAAmB;IAChD,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,sFAAsF;IACxF,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,mFAAmF;YAChG,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF,MAAM,qBAAqB,GAAmB;IAC5C,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,iEAAiE;IACnE,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,iFAAiF;YAC9F,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF,MAAM,2BAA2B,GAAmB;IAClD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,8DAA8D;IAChE,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,8EAA8E;YAC3F,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF,MAAM,mBAAmB,GAAmB;IAC1C,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EACT,wEAAwE;IAC1E,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qFAAqF;YAClG,QAAQ,EAAE,KAAK;SAChB;KACF;CACF,CAAC;AAEF,MAAM,oBAAoB,GAAmB;IAC3C,IAAI,EAAE,eAAe;IACrB,WAAW,EACT,wFAAwF;IAC1F,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF,gFAAgF;AAChF,mDAAmD;AACnD,gFAAgF;AAEhF,MAAM,CAAC,MAAM,OAAO,GAAqB;IACvC,yBAAyB;IACzB,qBAAqB;IACrB,2BAA2B;IAC3B,mBAAmB;IACnB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuBH,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,MAAM,yBAAyB,GAAmB;IAChD,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,sFAAsF;IACxF,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,mFAAmF;YAChG,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF,MAAM,qBAAqB,GAAmB;IAC5C,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,iEAAiE;IACnE,SAAS,EAAE;QACT;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,iFAAiF;YAC9F,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC;AAEF,MAAM,2BAA2B,GAAmB;IAClD,IAAI,EAAE,sBAAsB;IAC5B,W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IAAI,2DAA2D,WAAW,iDAAiD;aAC5K;SACF;KACF,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,6BAA6B;AAC7B,gFAAgF;AAEhF,MAAM,eAAe,GAAsE;IACzF,oBAAoB,EAAE,sBAAsB;IAC5C,gBAAgB,EAAE,iBAAiB;IACnC,sBAAsB,EAAE,uBAAuB;IAC/C,wBAAwB,EAAE,gBAAgB;IAC1C,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,iBAAiB,EAAE,mBAAmB;IACtC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;CACrC,CAAC;AAEF,gFAAgF;AAChF,qDAAqD;AACrD,gFAAgF;AAEhF,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,IAA6B;IAE7B,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAE,CAAC;IACjD,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,QAAQ,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* Compact tool descriptions for reduced context usage.
|
|
3
3
|
*
|
|
4
4
|
* Activated via PINEPAPER_VERBOSITY=compact env var.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Each description says ONLY what the tool does in 1-2 sentences.
|
|
6
|
+
* Workflow instructions belong in pinepaper_tool_guide, not here.
|
|
7
|
+
*
|
|
8
|
+
* Vocabulary enumerations are derived from the ontology + Zod schemas so the
|
|
9
|
+
* lists below never drift from what the server actually validates.
|
|
7
10
|
*/
|
|
8
11
|
export declare const COMPACT_DESCRIPTIONS: Record<string, string>;
|
|
9
12
|
//# sourceMappingURL=compact-descriptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/compact-descriptions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"compact-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/compact-descriptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4HvD,CAAC"}
|
|
@@ -2,290 +2,111 @@
|
|
|
2
2
|
* Compact tool descriptions for reduced context usage.
|
|
3
3
|
*
|
|
4
4
|
* Activated via PINEPAPER_VERBOSITY=compact env var.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Each description says ONLY what the tool does in 1-2 sentences.
|
|
6
|
+
* Workflow instructions belong in pinepaper_tool_guide, not here.
|
|
7
|
+
*
|
|
8
|
+
* Vocabulary enumerations are derived from the ontology + Zod schemas so the
|
|
9
|
+
* lists below never drift from what the server actually validates.
|
|
7
10
|
*/
|
|
11
|
+
import { ItemTypeSchema, RelationTypeSchema, GeneratorNameSchema } from '../types/schemas.js';
|
|
12
|
+
import { DIAGRAM_SHAPE_MAP } from '../ontology/vocabulary.js';
|
|
13
|
+
const ITEM_TYPES = ItemTypeSchema.options.join(', ');
|
|
14
|
+
const RELATION_TYPES = RelationTypeSchema.options.join(', ');
|
|
15
|
+
const DIAGRAM_SHAPES = Object.keys(DIAGRAM_SHAPE_MAP).join(', ');
|
|
16
|
+
const GENERATORS = GeneratorNameSchema.options.join(', ');
|
|
8
17
|
export const COMPACT_DESCRIPTIONS = {
|
|
9
18
|
// -------------------------------------------------------------------------
|
|
10
|
-
// Minimal toolkit tools
|
|
19
|
+
// Minimal toolkit tools
|
|
11
20
|
// -------------------------------------------------------------------------
|
|
12
21
|
pinepaper_set_background_color: `Set the canvas background color. Pass a hex color string (e.g. "#0f172a").`,
|
|
13
|
-
pinepaper_set_canvas_size: `Set canvas dimensions. Use width+height or a preset: instagram (1080x1080), youtube (1920x1080), tiktok (1080x1920), twitter (1200x675)
|
|
22
|
+
pinepaper_set_canvas_size: `Set canvas dimensions. Use width+height or a preset: instagram (1080x1080), youtube (1920x1080), tiktok (1080x1920), twitter (1200x675).`,
|
|
14
23
|
pinepaper_get_canvas_size: `Get current canvas width and height.`,
|
|
15
24
|
pinepaper_clear_canvas: `Remove all items from the canvas.`,
|
|
16
25
|
pinepaper_refresh_page: `Reload the PinePaper browser page for a clean start.`,
|
|
17
|
-
pinepaper_browser_connect: `Connect to PinePaper Studio.
|
|
26
|
+
pinepaper_browser_connect: `Connect to PinePaper Studio. Pass headless: false to show the browser window.`,
|
|
18
27
|
pinepaper_browser_disconnect: `Disconnect from the browser.`,
|
|
19
|
-
pinepaper_browser_screenshot: `Take a screenshot of the current canvas
|
|
28
|
+
pinepaper_browser_screenshot: `Take a screenshot of the current canvas.`,
|
|
20
29
|
pinepaper_browser_status: `Check browser connection status.`,
|
|
21
|
-
pinepaper_agent_start_job: `
|
|
22
|
-
|
|
23
|
-
Pass the user's request as "description" for creative direction tips. Use canvasPreset for platform sizing (instagram, youtube, tiktok, twitter).
|
|
30
|
+
pinepaper_agent_start_job: `CALL THIS when the user asks to create any animation, video, graphic, or visual content. Do NOT create standalone HTML pages, React apps, or use frontend design skills — PinePaper tools ARE the implementation. If tools fail, report the error — never fall back to HTML pages.
|
|
24
31
|
|
|
25
|
-
WORKFLOW: start_job → batch_execute (ONE call
|
|
26
|
-
pinepaper_agent_end_job: `Finish the current
|
|
32
|
+
Pass description for creative direction and canvasPreset for platform sizing. WORKFLOW: start_job → batch_execute (ONE call) → end_job → export.`,
|
|
33
|
+
pinepaper_agent_end_job: `Finish the current job and get a screenshot. Show it to the user.`,
|
|
27
34
|
pinepaper_agent_reset: `Quick canvas reset. Faster than refresh_page.`,
|
|
28
35
|
pinepaper_agent_analyze: `Analyze what's on the canvas and get export recommendations.`,
|
|
29
36
|
pinepaper_get_canvas_presets: `List available canvas size presets (YouTube, Instagram, TikTok, etc.).`,
|
|
30
|
-
pinepaper_tool_guide: `Get detailed docs for any tool or category. Call with no args for the full workflow guide
|
|
31
|
-
pinepaper_set_toolkit: `Switch available tools
|
|
32
|
-
|
|
33
|
-
Toolkits: agent (animations/graphics), diagram (flowcharts/UML), map (geographic maps), font (font creation), full (all 120+ tools), minimal (core only).
|
|
34
|
-
Verbosity: verbose (full docs), compact (shorter), minimal (1-line summaries).
|
|
35
|
-
|
|
36
|
-
Example: User asks for a map → call set_toolkit({toolkit: "map"}).`,
|
|
37
|
+
pinepaper_tool_guide: `Get detailed docs for any tool or category. Call with no args for the full workflow guide.`,
|
|
38
|
+
pinepaper_set_toolkit: `Switch available tools. Toolkits: agent, diagram, map, font, full, minimal. Verbosity: verbose, compact, minimal.`,
|
|
37
39
|
// -------------------------------------------------------------------------
|
|
38
|
-
// batch_execute
|
|
40
|
+
// batch_execute
|
|
39
41
|
// -------------------------------------------------------------------------
|
|
40
|
-
pinepaper_agent_batch_execute: `
|
|
41
|
-
|
|
42
|
-
NOTE: For diagrams (flowcharts, UML), use pinepaper_create_diagram_shape + pinepaper_connect instead.
|
|
43
|
-
|
|
44
|
-
⚠️ EVERY operation executes LIVE on the canvas. Calling this twice DOUBLES all items. Call ONCE per pipeline.
|
|
45
|
-
|
|
46
|
-
WORKFLOW: pinepaper_agent_start_job → pinepaper_agent_batch_execute → pinepaper_agent_end_job
|
|
47
|
-
|
|
48
|
-
PATTERN — Always follow this order:
|
|
49
|
-
1. set_canvas_size / set_background / execute_generator (canvas setup)
|
|
50
|
-
2. create (items — text, shapes, etc.)
|
|
51
|
-
3. animate or keyframe_animate for EACH created item ("$0", "$1", ...) — REQUIRED for animated content
|
|
52
|
-
4. relation / apply_mask / apply_effect (optional enhancements)
|
|
53
|
-
5. play_timeline (REQUIRED — starts playback, without this nothing moves)
|
|
42
|
+
pinepaper_agent_batch_execute: `Execute multiple operations in a single call — canvas setup, items, animations, effects, playback. Call ONCE per pipeline — calling twice doubles all items.
|
|
54
43
|
|
|
55
44
|
OPERATION TYPES (12): set_canvas_size, set_background, execute_generator, create, modify, delete, animate, keyframe_animate, relation, apply_mask, apply_effect, play_timeline.
|
|
56
45
|
|
|
57
|
-
VARIABLE REFERENCES: "$0", "$1" etc. reference items by creation order within the batch
|
|
58
|
-
|
|
59
|
-
⚠️ SIZING: All positions/sizes MUST fit within the canvas. start_job returns canvasSize — keep items within 5%-95% of canvas width/height. Max canvas: 4096x4096.
|
|
60
|
-
|
|
61
|
-
See inputSchema for per-operation params and enum values. See pinepaper://docs/getting-started for full workflow.`,
|
|
46
|
+
VARIABLE REFERENCES: "$0", "$1" etc. reference items by creation order within the batch.`,
|
|
62
47
|
// -------------------------------------------------------------------------
|
|
63
|
-
// create_item
|
|
48
|
+
// create_item
|
|
64
49
|
// -------------------------------------------------------------------------
|
|
65
|
-
pinepaper_create_item: `Create
|
|
66
|
-
|
|
67
|
-
USE WHEN: Adding text, shapes, or graphics to the canvas.
|
|
68
|
-
|
|
69
|
-
IMPORTANT:
|
|
70
|
-
- Save the returned itemId for later use with relations, modify, delete, etc.
|
|
71
|
-
- If there's a welcome template on the canvas, use pinepaper_clear_canvas first.
|
|
72
|
-
- Position defaults to canvas center (400, 300). Use position: {x, y} to place elsewhere.
|
|
73
|
-
- DO NOT take screenshots after every create. Trust the API response — take ONE screenshot at the end.
|
|
74
|
-
|
|
75
|
-
⚠️ COMPLEX CHARACTERS (witch, cat face, person): Use pinepaper_import_svg or compose from simple shapes. Do NOT attempt pixel-level path drawing.
|
|
76
|
-
|
|
77
|
-
ITEM TYPES: text, circle, rectangle, star, triangle, polygon, ellipse, path, line, arc.
|
|
78
|
-
|
|
79
|
-
PATH FOR CUSTOM SHAPES: Use itemType "path" with segments ([[x,y]...]) or pathData (SVG string).
|
|
50
|
+
pinepaper_create_item: `Create a text, shape, or graphic on the canvas. Returns an itemId for later reference.
|
|
80
51
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
EXAMPLE: {itemType: "text", properties: {content: "HELLO", color: "#ef4444", fontSize: 48}}
|
|
84
|
-
|
|
85
|
-
After creating items, use pinepaper_add_relation to animate them.`,
|
|
52
|
+
ITEM TYPES: ${ITEM_TYPES}.
|
|
53
|
+
STYLING: gradients (color object with stops), shadows, blend modes, opacity. See inputSchema for properties.`,
|
|
86
54
|
// -------------------------------------------------------------------------
|
|
87
|
-
// p5_draw
|
|
55
|
+
// p5_draw
|
|
88
56
|
// -------------------------------------------------------------------------
|
|
89
|
-
pinepaper_p5_draw: `
|
|
90
|
-
|
|
91
|
-
AVAILABLE: circle, ellipse, rect, line, triangle, quad, arc, point, fill, noFill, stroke, noStroke, strokeWeight, background, random, map, constrain, dist, lerp, radians, degrees, rectMode, ellipseMode, width, height, PI, TWO_PI, HALF_PI.
|
|
92
|
-
|
|
93
|
-
NOT SUPPORTED (use native PinePaper tools instead):
|
|
94
|
-
- setup()/draw() loop → pinepaper_animate / pinepaper_add_relation
|
|
95
|
-
- noise(), text(), loadImage(), push()/pop()/translate()/rotate()/scale(), beginShape()/vertex()/endShape()
|
|
57
|
+
pinepaper_p5_draw: `Draw on canvas using p5.js-style code (circle, rect, line, fill, etc.). Code is translated to Paper.js automatically.
|
|
96
58
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
EXAMPLE:
|
|
100
|
-
background(30);
|
|
101
|
-
noStroke();
|
|
102
|
-
for (let i = 0; i < 20; i++) {
|
|
103
|
-
fill(random(255), random(255), random(255));
|
|
104
|
-
circle(random(width), random(height), random(20, 80));
|
|
105
|
-
}`,
|
|
59
|
+
AVAILABLE: circle, ellipse, rect, line, triangle, quad, arc, point, fill, noFill, stroke, noStroke, strokeWeight, background, random, map, constrain, dist, lerp, radians, degrees, width, height, PI, TWO_PI, HALF_PI.
|
|
60
|
+
NOT SUPPORTED: setup()/draw() loop, noise(), text(), loadImage(), transforms, beginShape()/vertex().`,
|
|
106
61
|
// -------------------------------------------------------------------------
|
|
107
|
-
// create_scene
|
|
62
|
+
// create_scene
|
|
108
63
|
// -------------------------------------------------------------------------
|
|
109
|
-
pinepaper_create_scene: `Create a complete scene with
|
|
110
|
-
|
|
111
|
-
USE WHEN: Creating multi-item animated scenes (solar systems, bouncing balls, etc.) where performance matters. Reduces 4+ tool calls to 1.
|
|
112
|
-
|
|
113
|
-
HOW IT WORKS:
|
|
114
|
-
1. Define items with "name" references (e.g., "sun", "earth", "moon")
|
|
115
|
-
2. Define relations using those names (e.g., source: "earth", target: "sun")
|
|
116
|
-
3. Define animations using names (e.g., target: "sun", type: "pulse")
|
|
117
|
-
4. Server creates all items, then establishes relations and animations
|
|
118
|
-
|
|
119
|
-
EXAMPLE — Solar System:
|
|
120
|
-
{backgroundColor: "#0a0a0a", items: [
|
|
121
|
-
{name: "sun", itemType: "circle", position: {x: 400, y: 300}, properties: {radius: 50, color: "#fbbf24"}},
|
|
122
|
-
{name: "earth", itemType: "circle", position: {x: 550, y: 300}, properties: {radius: 20, color: "#3b82f6"}}
|
|
123
|
-
], relations: [
|
|
124
|
-
{source: "earth", target: "sun", type: "orbits", params: {radius: 150, speed: 0.5}}
|
|
125
|
-
], animations: [
|
|
126
|
-
{target: "sun", type: "pulse", speed: 0.3}
|
|
127
|
-
]}
|
|
64
|
+
pinepaper_create_scene: `Create a complete scene with items, relations, and animations in one call. Define items with name references, then use those names in relations and animations.
|
|
128
65
|
|
|
129
|
-
Item types:
|
|
130
|
-
Relations:
|
|
66
|
+
Item types: ${ITEM_TYPES}.
|
|
67
|
+
Relations: ${RELATION_TYPES}.
|
|
131
68
|
Animations: pulse, rotate, bounce, fade, wobble, slide, typewriter.`,
|
|
132
69
|
// -------------------------------------------------------------------------
|
|
133
|
-
// execute_generator
|
|
70
|
+
// execute_generator
|
|
134
71
|
// -------------------------------------------------------------------------
|
|
135
|
-
pinepaper_execute_generator: `
|
|
72
|
+
pinepaper_execute_generator: `Run a procedural background generator (sunburst, bokeh, gradient mesh, PineMath plots, etc.).
|
|
136
73
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
GENERATORS (14):
|
|
140
|
-
Classic: drawSunburst, drawSunsetScene, drawGrid, drawStackedCircles, drawCircuit, drawWaves, drawPattern
|
|
141
|
-
Effects: drawBokeh
|
|
142
|
-
Organic: drawGradientMesh, drawFluidFlow, drawOrganicFlow
|
|
143
|
-
Geometric: drawGeometricAbstract
|
|
144
|
-
Particles: drawWindField
|
|
145
|
-
Textures: drawNoiseTexture
|
|
146
|
-
|
|
147
|
-
Each generator accepts generatorParams — see pinepaper://docs/generators for full parameter docs per generator, or use inputSchema for the param schema.`,
|
|
74
|
+
GENERATORS (${GeneratorNameSchema.options.length}): ${GENERATORS}.`,
|
|
148
75
|
// -------------------------------------------------------------------------
|
|
149
|
-
// get_performance_metrics
|
|
76
|
+
// get_performance_metrics
|
|
150
77
|
// -------------------------------------------------------------------------
|
|
151
|
-
pinepaper_get_performance_metrics: `
|
|
152
|
-
|
|
153
|
-
USE WHEN: Analyzing tool performance, debugging slow operations, optimizing workflows.
|
|
154
|
-
|
|
155
|
-
RETURNS: Per-tool timing breakdown (validation, code gen, execution, screenshot), aggregate statistics (avg, p50, p95, p99), success rates, error counts.
|
|
156
|
-
|
|
157
|
-
FORMAT OPTIONS: 'summary' (human-readable, slowest first), 'detailed' (full JSON), 'csv' (spreadsheet export).
|
|
158
|
-
|
|
159
|
-
FILTER OPTIONS: toolName, phase, since (Unix timestamp), limit.
|
|
160
|
-
|
|
161
|
-
EXAMPLES:
|
|
162
|
-
- Summary of all: {}
|
|
163
|
-
- Last 50 create_item ops: {toolName: 'pinepaper_create_item', limit: 50}
|
|
164
|
-
- Export CSV: {format: 'csv'}`,
|
|
78
|
+
pinepaper_get_performance_metrics: `Get execution timing and performance data. Formats: summary, detailed, csv.`,
|
|
165
79
|
// -------------------------------------------------------------------------
|
|
166
|
-
// add_relation
|
|
80
|
+
// add_relation
|
|
167
81
|
// -------------------------------------------------------------------------
|
|
168
|
-
pinepaper_add_relation: `
|
|
82
|
+
pinepaper_add_relation: `Add a behavior relation between two items (orbits, follows, attached_to, etc.). Relations are compositional — an item can have multiple.
|
|
169
83
|
|
|
170
|
-
|
|
171
|
-
- "moon orbits earth" → orbits
|
|
172
|
-
- "label follows player" → follows
|
|
173
|
-
- "hat attached to character" → attached_to
|
|
174
|
-
- "arrow points at target" → points_at
|
|
175
|
-
- "reflection mirrors original" → mirrors
|
|
176
|
-
- "background parallax" → parallax
|
|
177
|
-
|
|
178
|
-
RELATION TYPES: orbits, follows, attached_to, maintains_distance, points_at, mirrors, parallax, bounds_to, morphs_to (+ more in inputSchema, each with specific params).
|
|
179
|
-
|
|
180
|
-
COMPATIBILITY: Position-based relations (orbits, follows, attached_to, etc.) work with ALL item types including imported SVGs/images. morphs_to has type-specific behavior.
|
|
181
|
-
|
|
182
|
-
Relations are COMPOSITIONAL — an item can have multiple relations that work together.`,
|
|
84
|
+
RELATION TYPES: ${RELATION_TYPES}.`,
|
|
183
85
|
// -------------------------------------------------------------------------
|
|
184
|
-
// create_diagram_shape
|
|
86
|
+
// create_diagram_shape
|
|
185
87
|
// -------------------------------------------------------------------------
|
|
186
|
-
pinepaper_create_diagram_shape: `Create a diagram shape
|
|
187
|
-
|
|
188
|
-
USE WHEN: Creating flowcharts, process diagrams, UML diagrams, network topologies, org charts, or decision trees.
|
|
88
|
+
pinepaper_create_diagram_shape: `Create a diagram shape (process, decision, terminal, etc.) for flowcharts and UML.
|
|
189
89
|
|
|
190
|
-
SHAPE TYPES:
|
|
191
|
-
Flowchart: process, decision, terminal, data, document, database, preparation
|
|
192
|
-
UML: uml-class, uml-usecase, uml-actor
|
|
193
|
-
Network: cloud, server
|
|
194
|
-
Basic: rectangle, circle, triangle, star
|
|
195
|
-
|
|
196
|
-
All shapes have connection ports, support labels, and can be connected via pinepaper_connect.
|
|
197
|
-
|
|
198
|
-
EXAMPLE: {shapeType: "terminal", label: "Start", position: {x: 400, y: 100}}
|
|
199
|
-
|
|
200
|
-
WORKFLOW: Create shapes → pinepaper_connect to draw connectors → pinepaper_auto_layout to arrange. See pinepaper://docs/diagrams for detailed guide.`,
|
|
90
|
+
SHAPE TYPES: ${DIAGRAM_SHAPES}.`,
|
|
201
91
|
// -------------------------------------------------------------------------
|
|
202
|
-
// search_assets
|
|
92
|
+
// search_assets
|
|
203
93
|
// -------------------------------------------------------------------------
|
|
204
|
-
pinepaper_search_assets: `Search for free SVG
|
|
205
|
-
|
|
206
|
-
USE WHEN: Need icons, illustrations, clipart, or graphics too complex to draw with paths.
|
|
207
|
-
|
|
208
|
-
WORKFLOW:
|
|
209
|
-
1. Search: pinepaper_search_assets(query: "rocket")
|
|
210
|
-
2. Review results (assetIds, previews, licenses)
|
|
211
|
-
3. Import: pinepaper_import_asset(assetId: "svgrepo_rocket_12345")
|
|
212
|
-
|
|
213
|
-
IMPORTANT: Always check license field. CC-BY requires attribution (tracked automatically). CC0 has no restrictions.
|
|
214
|
-
|
|
215
|
-
Set includeSvgContent: true to fetch SVG markup inline (slower, use lower limit). Search queries work best with simple, specific terms.
|
|
216
|
-
|
|
217
|
-
EXAMPLE: {query: "rocket", limit: 5}`,
|
|
94
|
+
pinepaper_search_assets: `Search for free SVG icons and illustrations from open repositories (SVGRepo, OpenClipart, Iconify, FontAwesome).`,
|
|
218
95
|
// -------------------------------------------------------------------------
|
|
219
|
-
// connect
|
|
96
|
+
// connect
|
|
220
97
|
// -------------------------------------------------------------------------
|
|
221
|
-
pinepaper_connect: `
|
|
222
|
-
|
|
223
|
-
USE WHEN: Drawing arrows between flowchart steps, UML associations, network connections, or any diagram needing lines/arrows.
|
|
224
|
-
|
|
225
|
-
FEATURES: Auto port selection, smart routing, animated bolt effect, labels.
|
|
226
|
-
|
|
227
|
-
ROUTING: orthogonal (right-angle, default), direct (straight), curved (bezier).
|
|
228
|
-
ARROW STYLES: classic, stealth, sharp, open, diamond, circle, none — see inputSchema for head/tail options.
|
|
229
|
-
LINE STYLES: solid, dashed, dotted.
|
|
230
|
-
|
|
231
|
-
Enable boltEnabled: true for animated data flow particles.
|
|
232
|
-
|
|
233
|
-
EXAMPLES:
|
|
234
|
-
- Simple arrow: {sourceItemId: "shape_1", targetItemId: "shape_2"}
|
|
235
|
-
- Labeled: {sourceItemId: "a", targetItemId: "b", label: "1..*"}
|
|
236
|
-
- Dashed: {sourceItemId: "a", targetItemId: "b", lineStyle: "dashed", headStyle: "open"}`,
|
|
98
|
+
pinepaper_connect: `Draw a connector/arrow between two diagram shapes. Routing: orthogonal, direct, curved. Supports labels and animated bolt effect.`,
|
|
237
99
|
// -------------------------------------------------------------------------
|
|
238
|
-
// auto_layout
|
|
100
|
+
// auto_layout
|
|
239
101
|
// -------------------------------------------------------------------------
|
|
240
|
-
pinepaper_auto_layout: `
|
|
241
|
-
|
|
242
|
-
USE WHEN: Items are messy/overlapping, need professional layout, or creating hierarchical structures.
|
|
243
|
-
|
|
244
|
-
LAYOUT TYPES:
|
|
245
|
-
- hierarchical: Flowcharts, org charts, dependency graphs (direction: TB/BT/LR/RL)
|
|
246
|
-
- force-directed: Network diagrams, relationship graphs (physics simulation)
|
|
247
|
-
- tree: Hierarchies, file systems (optimized tree structure)
|
|
248
|
-
- radial: Mind maps, hub-and-spoke (concentric circles)
|
|
249
|
-
- grid: Equal-importance items, component libraries (rows/columns)
|
|
250
|
-
|
|
251
|
-
Set animate: false for instant repositioning. Pass itemIds to layout only specific items.
|
|
252
|
-
|
|
253
|
-
EXAMPLES:
|
|
254
|
-
- Flowchart: {layoutType: "hierarchical", options: {direction: "TB", levelSpacing: 100}}
|
|
255
|
-
- Network: {layoutType: "force-directed", options: {iterations: 200}}
|
|
256
|
-
- Grid: {layoutType: "grid", options: {columns: 4}}`,
|
|
102
|
+
pinepaper_auto_layout: `Arrange diagram items using a layout algorithm (hierarchical, force-directed, tree, radial, grid).`,
|
|
257
103
|
// -------------------------------------------------------------------------
|
|
258
|
-
// import_asset
|
|
104
|
+
// import_asset
|
|
259
105
|
// -------------------------------------------------------------------------
|
|
260
|
-
pinepaper_import_asset: `Import an SVG asset from search results or
|
|
261
|
-
|
|
262
|
-
USE WHEN: After searching with pinepaper_search_assets, or importing from a direct SVG URL.
|
|
263
|
-
|
|
264
|
-
WORKFLOW: Search → Choose (check license) → Import → Modify/Animate as needed.
|
|
265
|
-
|
|
266
|
-
PARAMS: assetId (from search) OR url (direct SVG URL), position, scale, color (override for monochrome icons).
|
|
267
|
-
|
|
268
|
-
License metadata is tracked automatically. CC-BY attribution is added to canvas metadata. Downloaded SVGs are cached in memory for the session.
|
|
269
|
-
|
|
270
|
-
EXAMPLE: {assetId: "svgrepo_rocket_001", position: {x: 400, y: 300}, scale: 2.0}
|
|
271
|
-
|
|
272
|
-
RETURNS: itemId (for further modifications), metadata (including license).`,
|
|
106
|
+
pinepaper_import_asset: `Import an SVG asset from search results or URL onto the canvas. Returns an itemId for modifications.`,
|
|
273
107
|
// -------------------------------------------------------------------------
|
|
274
|
-
// agent_export
|
|
108
|
+
// agent_export
|
|
275
109
|
// -------------------------------------------------------------------------
|
|
276
|
-
pinepaper_agent_export: `Export
|
|
277
|
-
|
|
278
|
-
PLATFORMS & FORMATS:
|
|
279
|
-
| Platform | Size | Static | Animated |
|
|
280
|
-
|------------------|------------|--------|----------|
|
|
281
|
-
| instagram | 1080x1080 | PNG | MP4 |
|
|
282
|
-
| tiktok | 1080x1920 | PNG | MP4 |
|
|
283
|
-
| youtube | 1920x1080 | PNG | MP4 |
|
|
284
|
-
| twitter | 1200x675 | PNG | GIF |
|
|
285
|
-
| web | flexible | SVG | SVG |
|
|
286
|
-
|
|
287
|
-
DEFAULT: When user asks for "video" or "export", use format: "mp4". Only use svg/gif if user specifically requests them.
|
|
288
|
-
Formats: svg, png, gif, mp4, webm, pdf. Quality: draft, standard, high.
|
|
289
|
-
⚠️ If export fails, do NOT retry with different formats — report the error to the user.`,
|
|
110
|
+
pinepaper_agent_export: `Export as MP4, GIF, PNG, SVG, or PDF. Formats: svg, png, gif, mp4, webm, pdf. Quality: draft, standard, high. Framing: canvas (default) or camera (camera_animates viewport — video formats only).`,
|
|
290
111
|
};
|
|
291
112
|
//# sourceMappingURL=compact-descriptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compact-descriptions.js","sourceRoot":"","sources":["../../src/tools/compact-descriptions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"compact-descriptions.js","sourceRoot":"","sources":["../../src/tools/compact-descriptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrD,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7D,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjE,MAAM,UAAU,GAAG,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,oBAAoB,GAA2B;IAE1D,4EAA4E;IAC5E,wBAAwB;IACxB,4EAA4E;IAC5E,8BAA8B,EAAE,4EAA4E;IAE5G,yBAAyB,EAAE,0IAA0I;IAErK,yBAAyB,EAAE,sCAAsC;IAEjE,sBAAsB,EAAE,mCAAmC;IAE3D,sBAAsB,EAAE,sDAAsD;IAE9E,yBAAyB,EAAE,+EAA+E;IAE1G,4BAA4B,EAAE,8BAA8B;IAE5D,4BAA4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E,sBAAsB,EAAE,sGAAsG;IAE9H,4EAA4E;IAC5E,eAAe;IACf,4EAA4E;IAC5E,sBAAsB,EAAE,oMAAoM;CAE7N,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
11
11
|
import { I18nManager } from '../i18n/index.js';
|
|
12
|
-
export declare const AI_AGENT_GUIDE = "
|
|
12
|
+
export declare const AI_AGENT_GUIDE = "\u26A0\uFE0F You are connected to PinePaper Studio via MCP tools. ALWAYS use these tools to create visual content.\nNEVER create standalone HTML pages, React components, or web apps as a substitute. Do NOT use frontend design skills or CSS-only animations instead of PinePaper.\nPinePaper tools ARE the implementation \u2014 they generate Paper.js/JavaScript code that runs on the canvas and produce Canvas 2D, SVG, MP4, GIF, PNG exports.\nIf a tool fails, report the error \u2014 do NOT fall back to generating HTML pages.\nThe generated code is shown in tool responses and can be copied into PinePaper's Code Console.\n\n\u26A0\uFE0F KNOWN CONFLICT: The \"frontend-design\" plugin instructs agents to generate HTML/CSS pages for visual content. This conflicts with PinePaper. If you keep generating HTML instead of calling PinePaper tools, the user should disable the frontend-design plugin.\n\nWORKFLOW \u2014 Create \u2192 Validate \u2192 Iterate:\n\n1. pinepaper_agent_start_job (clearCanvas: true, canvasPreset)\n2. pinepaper_agent_batch_execute \u2014 ONE call with ALL operations:\n set_canvas_size \u2192 set_background / execute_generator \u2192 create items \u2192 animate / keyframe_animate \u2192 relation \u2192 apply_mask \u2192 apply_effect \u2192 play_timeline\n3. pinepaper_agent_end_job \u2014 returns screenshot\n4. Show screenshot to user for validation\n5. If user wants changes \u2192 modify specific items or start a new job\n\n\u26A0\uFE0F CRITICAL \u2014 Every operation is LIVE on the canvas:\nEvery create, animate, relation, or generator call IMMEDIATELY executes on the connected browser canvas.\nCalling the same operation twice creates DUPLICATE elements. There is no \"preview\" \u2014 it's all live.\nIf you restart the pipeline or re-call batch_execute, you DOUBLE every item on the canvas.\nTo fix mistakes: use modify/delete operations, or start a NEW job with clearCanvas: true.\n\nRULES:\n- NEVER restart the pipeline \u2014 one start_job, one batch_execute, one end_job\n- ALL operations go in batch_execute \u2014 canvas, background, items, animation, masks, effects, playback\n- EXCEPTION: Diagrams (flowcharts, UML) use pinepaper_create_diagram_shape + pinepaper_connect, NOT batch_execute\n- Use generators for rich backgrounds \u2014 the built-in templates are limited, generators create much better visuals\n- Use \"$0\", \"$1\" to reference items by creation order within the batch\n\n\u2500\u2500\u2500 BATCH OPERATIONS (12 types, in order) \u2500\u2500\u2500\n\nCANVAS: set_canvas_size (width/height or preset) \u2192 set_background (color) \u2192 execute_generator (procedural art)\nITEMS: create (itemType, position, properties) \u2192 modify (itemId, properties) \u2192 delete (itemId)\nANIMATE: animate (loop presets) \u2192 keyframe_animate (timed reveals) \u2192 relation (behavioral links)\nEFFECTS: apply_mask (reveal animations) \u2192 apply_effect (sparkle/blast/bubbles/fireflies/trail...)\nPLAY: play_timeline (start playback)\n\n\u2500\u2500\u2500 GENERATORS (prefer these for backgrounds) \u2500\u2500\u2500\n\nGenerators fill the canvas with procedural art \u2014 much richer than solid colors.\nChoose based on mood:\n Dreamy/soft: drawBokeh, drawGradientMesh, drawOrganicFlow\n Techy/modern: drawCircuit, drawGrid, drawWindField\n Nature/warm: drawSunsetScene, drawSunburst, drawWaves\n Abstract: drawGeometricAbstract, drawFluidFlow, drawNoiseTexture\n Decorative: drawPattern, drawStackedCircles\n\n\u2500\u2500\u2500 ITEMS \u2500\u2500\u2500\n\nShapes: circle, rectangle, star, ellipse, triangle, polygon, line, arc, path\nText: text (content, fontSize, fontFamily, color, fontWeight)\n Dynamic text: set contentType on text items \u2192 clock (live time), timer (elapsed), countdown (from N seconds), stopwatch (pauseable)\nAll items: opacity, shadowColor, shadowBlur, blendMode, strokeColor, strokeWidth\n\nSVG imports for recognizable objects (planes, cars, animals, buildings):\n pinepaper_search_assets \u2192 pinepaper_import_asset (850k+ SVG icons)\n\n\u2500\u2500\u2500 ANIMATION (all in batch) \u2500\u2500\u2500\n\nLoop presets (animate): pulse, rotate, bounce, fade, wobble, slide, typewriter\nKeyframe (keyframe_animate): [{time, properties, easing}] \u2192 opacity, scale, scaleX, scaleY, x, y, rotation, fillColor, strokeColor, fontSize\nRelations (relation): orbits, follows, attached_to, points_at, mirrors, parallax, wave_through, morphs_to, group_morphs_to, moves_along_path (+ 9 more in batch_execute schema)\nMasks (apply_mask): wipeLeft, wipeRight, wipeUp, wipeDown, iris, irisOut, star, heart, curtainHorizontal, curtainVertical, cinematic, diagonalWipe, revealUp, revealDown\nEffects (apply_effect): sparkle, blast\n\nComposability: one item can have loop + keyframe + relation + mask simultaneously.\n\nTiming templates (stagger reveals across duration):\n 5s: bg 0s \u2192 elements 1-2s \u2192 text 2.5-3.5s \u2192 final 4-5s\n 10s: bg 0-1s \u2192 elements 1-4s \u2192 main 4-7s \u2192 details 7-9s \u2192 finale 9-10s\n\n\u2500\u2500\u2500 VISUAL COMPOSITION \u2500\u2500\u2500\n\nLayer order: background \u2192 large shapes (low opacity) \u2192 main subjects \u2192 text on top\nColor: dark bg (#0f172a) + bright accents (#f472b6, #818cf8, #fbbf24)\nScale: main subject 40-60% of canvas, supporting elements smaller\nSpacing: distribute across canvas with breathing room, don't cluster\n\n\u26A0\uFE0F SIZING \u2014 All positions and sizes MUST fit within the canvas:\n Default canvas is 800x600. For infographics/social media, SET A PRESET FIRST.\n start_job returns canvasSize \u2014 use it to calculate positions.\n Keep all items within 5%-95% of canvas width/height (leave margins).\n Font sizes relative to canvas: titles \u2264 5% of canvas width, body \u2264 3%.\n Example for 1080x1080: title fontSize \u2264 54, body \u2264 32, positions 54-1026.\n Example for 800x600: title fontSize \u2264 40, body \u2264 24, positions 40-760.\n\n\u26A0\uFE0F TEXT OVERLAP \u2014 NEVER place multiple text items at the same position:\n Each text item MUST have a unique Y position. Stack vertically with spacing \u2265 fontSize \u00D7 1.4.\n For N words stacked vertically: startY = centerY - (N-1) \u00D7 spacing / 2, then increment Y by spacing.\n Example for 5 words at fontSize 48 on 800x600: spacing=67, startY=166, positions: 166, 233, 300, 367, 434.\n\n\u2500\u2500\u2500 DIAGRAMS (flowcharts, UML \u2014 do NOT use batch_execute) \u2500\u2500\u2500\n\nDiagrams use their own tools, not batch_execute:\n pinepaper_create_diagram_shape \u2192 pinepaper_connect \u2192 pinepaper_auto_layout\nShapes: process (rect), decision (diamond), terminal (rounded), data, document, database, cloud, server\nWorkflow: create shapes with positions \u2192 connect with arrows \u2192 optional auto_layout\nSee pinepaper://docs/diagrams for full examples.\n\n\u2500\u2500\u2500 STANDALONE TOOLS (not batch \u2014 call directly) \u2500\u2500\u2500\n\nDeformation: pinepaper_deform \u2014 vertex-level presets (fold, squeeze, twist, ripple, wave, breathe, wobble...)\n Phase-driven animation: sin, blink, pingpong, elastic, heartbeat, stepped\n Use for organic motion that keyframes can't achieve.\n\nSprite Sheets: pinepaper_sprite_sheet \u2014 generate from skeleton poses, play, export (PNG + atlas)\n For character animation and game sprite pipelines.\n\nInteraction: pinepaper_interaction \u2014 continuous physics behaviors (repel, attract, follow, orbit, slingshot)\n For interactive storytelling, quizzes, games. trigger_action for state changes (incrementScore, navigate, showFeedback).\n\nStorage: pinepaper_storage \u2014 save/load/list/delete projects (IndexedDB persistence)\n For multi-project workflows and session recovery.\n\nData Viz: pinepaper_create_chart \u2014 create/update/reconfigure/remove charts (bar, line, scatter, area)\n Pass data as array of objects + options. Auto-animated with expression-driven oscillation.\n\nMagic: pinepaper_magic \u2014 ontology-aware auto-animation + style remix\n One-click animate (mood: calm/professional/energetic/dramatic/whimsical) or remix (cycle colors/fonts).\n\nPhysics: pinepaper_physics \u2014 rigid body simulation (init, add_body, apply_force, create_joint)\n For interactive simulations, gravity, collisions. Based on Box2D/Planck.js.\n\nMeasurement: pinepaper_measurement \u2014 rulers, grid, snap-to-grid, get item dimensions\n For precise layouts and alignment.\n\n\u2500\u2500\u2500 CANVAS & EXPORT \u2500\u2500\u2500\n\nPresets: instagram (1080x1080), youtube (1920x1080), tiktok (1080x1920), twitter (1200x675)\nExport: pinepaper_agent_export (SVG/PNG/GIF/MP4/WebM/PDF), pinepaper_export_svg\nWidget: pinepaper_export_widget (pp:PinePaper ontology JSON), pinepaper_export_widget_html (self-contained HTML with tree-shaken runtime)";
|
|
13
13
|
export declare const PINEPAPER_TOOLS: Tool[];
|
|
14
14
|
/**
|
|
15
15
|
* Get a tool definition by name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAsB/C,eAAO,MAAM,cAAc,woRAmI+G,CAAC;AAW3I,eAAO,MAAM,eAAe,EAAE,IAAI,EAyiMjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAE5D;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,EAAE,CAO3D;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9D;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,EAAE,CAQrE"}
|