@pinepaper.studio/mcp-server 1.4.2 → 1.5.0

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.
Files changed (199) hide show
  1. package/README.md +213 -18
  2. package/dist/__tests__/fixtures/mock-generators.d.ts +147 -0
  3. package/dist/__tests__/fixtures/mock-generators.d.ts.map +1 -1
  4. package/dist/__tests__/fixtures/mock-generators.js +85 -0
  5. package/dist/__tests__/fixtures/mock-generators.js.map +1 -1
  6. package/dist/agent/export-manager.d.ts +77 -0
  7. package/dist/agent/export-manager.d.ts.map +1 -0
  8. package/dist/agent/export-manager.js +455 -0
  9. package/dist/agent/export-manager.js.map +1 -0
  10. package/dist/agent/index.d.ts +9 -0
  11. package/dist/agent/index.d.ts.map +1 -0
  12. package/dist/agent/index.js +12 -0
  13. package/dist/agent/index.js.map +1 -0
  14. package/dist/agent/session-manager.d.ts +109 -0
  15. package/dist/agent/session-manager.d.ts.map +1 -0
  16. package/dist/agent/session-manager.js +311 -0
  17. package/dist/agent/session-manager.js.map +1 -0
  18. package/dist/agent/types.d.ts +385 -0
  19. package/dist/agent/types.d.ts.map +1 -0
  20. package/dist/agent/types.js +141 -0
  21. package/dist/agent/types.js.map +1 -0
  22. package/dist/browser/index.d.ts +1 -1
  23. package/dist/browser/index.d.ts.map +1 -1
  24. package/dist/browser/index.js +1 -1
  25. package/dist/browser/index.js.map +1 -1
  26. package/dist/browser/puppeteer-controller.d.ts +89 -5
  27. package/dist/browser/puppeteer-controller.d.ts.map +1 -1
  28. package/dist/browser/puppeteer-controller.js +412 -11
  29. package/dist/browser/puppeteer-controller.js.map +1 -1
  30. package/dist/cli.js +3 -2
  31. package/dist/cli.js.map +1 -1
  32. package/dist/i18n/locales/ar.d.ts.map +1 -1
  33. package/dist/i18n/locales/ar.js +37 -0
  34. package/dist/i18n/locales/ar.js.map +1 -1
  35. package/dist/i18n/locales/base.d.ts.map +1 -1
  36. package/dist/i18n/locales/base.js +49 -0
  37. package/dist/i18n/locales/base.js.map +1 -1
  38. package/dist/i18n/locales/bn.d.ts.map +1 -1
  39. package/dist/i18n/locales/bn.js +10 -0
  40. package/dist/i18n/locales/bn.js.map +1 -1
  41. package/dist/i18n/locales/cs.d.ts.map +1 -1
  42. package/dist/i18n/locales/cs.js +10 -0
  43. package/dist/i18n/locales/cs.js.map +1 -1
  44. package/dist/i18n/locales/da.d.ts.map +1 -1
  45. package/dist/i18n/locales/da.js +10 -0
  46. package/dist/i18n/locales/da.js.map +1 -1
  47. package/dist/i18n/locales/de.d.ts.map +1 -1
  48. package/dist/i18n/locales/de.js +107 -0
  49. package/dist/i18n/locales/de.js.map +1 -1
  50. package/dist/i18n/locales/el.d.ts.map +1 -1
  51. package/dist/i18n/locales/el.js +10 -0
  52. package/dist/i18n/locales/el.js.map +1 -1
  53. package/dist/i18n/locales/en.d.ts.map +1 -1
  54. package/dist/i18n/locales/en.js +162 -0
  55. package/dist/i18n/locales/en.js.map +1 -1
  56. package/dist/i18n/locales/es.d.ts.map +1 -1
  57. package/dist/i18n/locales/es.js +106 -0
  58. package/dist/i18n/locales/es.js.map +1 -1
  59. package/dist/i18n/locales/fa.d.ts.map +1 -1
  60. package/dist/i18n/locales/fa.js +10 -0
  61. package/dist/i18n/locales/fa.js.map +1 -1
  62. package/dist/i18n/locales/fi.d.ts.map +1 -1
  63. package/dist/i18n/locales/fi.js +10 -0
  64. package/dist/i18n/locales/fi.js.map +1 -1
  65. package/dist/i18n/locales/fil.d.ts.map +1 -1
  66. package/dist/i18n/locales/fil.js +10 -0
  67. package/dist/i18n/locales/fil.js.map +1 -1
  68. package/dist/i18n/locales/fr.d.ts.map +1 -1
  69. package/dist/i18n/locales/fr.js +37 -0
  70. package/dist/i18n/locales/fr.js.map +1 -1
  71. package/dist/i18n/locales/gu.d.ts.map +1 -1
  72. package/dist/i18n/locales/gu.js +10 -0
  73. package/dist/i18n/locales/gu.js.map +1 -1
  74. package/dist/i18n/locales/he.d.ts.map +1 -1
  75. package/dist/i18n/locales/he.js +10 -0
  76. package/dist/i18n/locales/he.js.map +1 -1
  77. package/dist/i18n/locales/hi.d.ts.map +1 -1
  78. package/dist/i18n/locales/hi.js +37 -0
  79. package/dist/i18n/locales/hi.js.map +1 -1
  80. package/dist/i18n/locales/hu.d.ts.map +1 -1
  81. package/dist/i18n/locales/hu.js +10 -0
  82. package/dist/i18n/locales/hu.js.map +1 -1
  83. package/dist/i18n/locales/id.d.ts.map +1 -1
  84. package/dist/i18n/locales/id.js +108 -0
  85. package/dist/i18n/locales/id.js.map +1 -1
  86. package/dist/i18n/locales/is.d.ts.map +1 -1
  87. package/dist/i18n/locales/is.js +10 -0
  88. package/dist/i18n/locales/is.js.map +1 -1
  89. package/dist/i18n/locales/it.d.ts.map +1 -1
  90. package/dist/i18n/locales/it.js +108 -0
  91. package/dist/i18n/locales/it.js.map +1 -1
  92. package/dist/i18n/locales/ja.d.ts.map +1 -1
  93. package/dist/i18n/locales/ja.js +108 -0
  94. package/dist/i18n/locales/ja.js.map +1 -1
  95. package/dist/i18n/locales/kn.d.ts.map +1 -1
  96. package/dist/i18n/locales/kn.js +10 -0
  97. package/dist/i18n/locales/kn.js.map +1 -1
  98. package/dist/i18n/locales/ko.d.ts.map +1 -1
  99. package/dist/i18n/locales/ko.js +37 -0
  100. package/dist/i18n/locales/ko.js.map +1 -1
  101. package/dist/i18n/locales/ml.d.ts.map +1 -1
  102. package/dist/i18n/locales/ml.js +10 -0
  103. package/dist/i18n/locales/ml.js.map +1 -1
  104. package/dist/i18n/locales/mr.d.ts.map +1 -1
  105. package/dist/i18n/locales/mr.js +10 -0
  106. package/dist/i18n/locales/mr.js.map +1 -1
  107. package/dist/i18n/locales/ms.d.ts.map +1 -1
  108. package/dist/i18n/locales/ms.js +10 -0
  109. package/dist/i18n/locales/ms.js.map +1 -1
  110. package/dist/i18n/locales/nl.d.ts.map +1 -1
  111. package/dist/i18n/locales/nl.js +108 -0
  112. package/dist/i18n/locales/nl.js.map +1 -1
  113. package/dist/i18n/locales/no.d.ts.map +1 -1
  114. package/dist/i18n/locales/no.js +10 -0
  115. package/dist/i18n/locales/no.js.map +1 -1
  116. package/dist/i18n/locales/pa.d.ts.map +1 -1
  117. package/dist/i18n/locales/pa.js +10 -0
  118. package/dist/i18n/locales/pa.js.map +1 -1
  119. package/dist/i18n/locales/pl.d.ts.map +1 -1
  120. package/dist/i18n/locales/pl.js +108 -0
  121. package/dist/i18n/locales/pl.js.map +1 -1
  122. package/dist/i18n/locales/pt-BR.d.ts.map +1 -1
  123. package/dist/i18n/locales/pt-BR.js +108 -0
  124. package/dist/i18n/locales/pt-BR.js.map +1 -1
  125. package/dist/i18n/locales/pt.d.ts.map +1 -1
  126. package/dist/i18n/locales/pt.js +10 -0
  127. package/dist/i18n/locales/pt.js.map +1 -1
  128. package/dist/i18n/locales/ro.d.ts.map +1 -1
  129. package/dist/i18n/locales/ro.js +10 -0
  130. package/dist/i18n/locales/ro.js.map +1 -1
  131. package/dist/i18n/locales/ru.d.ts.map +1 -1
  132. package/dist/i18n/locales/ru.js +108 -0
  133. package/dist/i18n/locales/ru.js.map +1 -1
  134. package/dist/i18n/locales/sv.d.ts.map +1 -1
  135. package/dist/i18n/locales/sv.js +10 -0
  136. package/dist/i18n/locales/sv.js.map +1 -1
  137. package/dist/i18n/locales/ta.d.ts.map +1 -1
  138. package/dist/i18n/locales/ta.js +10 -0
  139. package/dist/i18n/locales/ta.js.map +1 -1
  140. package/dist/i18n/locales/te.d.ts.map +1 -1
  141. package/dist/i18n/locales/te.js +10 -0
  142. package/dist/i18n/locales/te.js.map +1 -1
  143. package/dist/i18n/locales/th.d.ts.map +1 -1
  144. package/dist/i18n/locales/th.js +108 -0
  145. package/dist/i18n/locales/th.js.map +1 -1
  146. package/dist/i18n/locales/tl.d.ts.map +1 -1
  147. package/dist/i18n/locales/tl.js +10 -0
  148. package/dist/i18n/locales/tl.js.map +1 -1
  149. package/dist/i18n/locales/tr.d.ts.map +1 -1
  150. package/dist/i18n/locales/tr.js +108 -0
  151. package/dist/i18n/locales/tr.js.map +1 -1
  152. package/dist/i18n/locales/uk.d.ts.map +1 -1
  153. package/dist/i18n/locales/uk.js +108 -0
  154. package/dist/i18n/locales/uk.js.map +1 -1
  155. package/dist/i18n/locales/ur.d.ts.map +1 -1
  156. package/dist/i18n/locales/ur.js +10 -0
  157. package/dist/i18n/locales/ur.js.map +1 -1
  158. package/dist/i18n/locales/vi.d.ts.map +1 -1
  159. package/dist/i18n/locales/vi.js +108 -0
  160. package/dist/i18n/locales/vi.js.map +1 -1
  161. package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
  162. package/dist/i18n/locales/zh-CN.js +108 -0
  163. package/dist/i18n/locales/zh-CN.js.map +1 -1
  164. package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
  165. package/dist/i18n/locales/zh-TW.js +108 -0
  166. package/dist/i18n/locales/zh-TW.js.map +1 -1
  167. package/dist/index.d.ts +3 -0
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +2717 -147
  170. package/dist/index.js.map +1 -1
  171. package/dist/prompts/index.d.ts +39 -0
  172. package/dist/prompts/index.d.ts.map +1 -0
  173. package/dist/prompts/index.js +254 -0
  174. package/dist/prompts/index.js.map +1 -0
  175. package/dist/tools/compact-descriptions.d.ts +9 -0
  176. package/dist/tools/compact-descriptions.d.ts.map +1 -0
  177. package/dist/tools/compact-descriptions.js +260 -0
  178. package/dist/tools/compact-descriptions.js.map +1 -0
  179. package/dist/tools/definitions.d.ts +12 -0
  180. package/dist/tools/definitions.d.ts.map +1 -1
  181. package/dist/tools/definitions.js +4921 -957
  182. package/dist/tools/definitions.js.map +1 -1
  183. package/dist/tools/handlers.d.ts.map +1 -1
  184. package/dist/tools/handlers.js +985 -17
  185. package/dist/tools/handlers.js.map +1 -1
  186. package/dist/tools/index.d.ts +2 -1
  187. package/dist/tools/index.d.ts.map +1 -1
  188. package/dist/tools/index.js +1 -1
  189. package/dist/tools/index.js.map +1 -1
  190. package/dist/types/code-generator.d.ts +233 -1
  191. package/dist/types/code-generator.d.ts.map +1 -1
  192. package/dist/types/code-generator.js +2578 -26
  193. package/dist/types/code-generator.js.map +1 -1
  194. package/dist/types/schemas.d.ts +5438 -805
  195. package/dist/types/schemas.d.ts.map +1 -1
  196. package/dist/types/schemas.js +1135 -4
  197. package/dist/types/schemas.js.map +1 -1
  198. package/manifest.json +106 -2
  199. package/package.json +2 -2
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAqB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAiB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAEL,QAAQ,EAER,cAAc,GACf,MAAM,iBAAiB,CAAC;AAEzB,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,oEAAoE;CAClF,CAAC;AAEF,gFAAgF;AAChF,uCAAuC;AACvC,gFAAgF;AAEhF,MAAM,SAAS,GAAG;IAChB;QACE,GAAG,EAAE,kCAAkC;QACvC,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,eAAe;KAC1B;IACD;QACE,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,oDAAoD;QACjE,QAAQ,EAAE,eAAe;KAC1B;IACD;QACE,GAA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;AAClE,MAAM,iBAAiB,GAAG,OAAQ,MAAM,CAAC,IAAY,CAAC,IAAI,KAAK,SAAS;IACtE,CAAC,CAAE,MAAM,CAAC,IAAY,CAAC,IAAI;IAC3B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE9D,IAAI,iBAAiB,EAAE,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * MCP Prompts — Template Recipes
3
+ *
4
+ * Each prompt replicates a specific PinePaper template pattern.
5
+ * The assistant message is kept ultra-concise to prevent:
6
+ * - Token waste from verbose planning
7
+ * - Pipeline restarts from step-by-step tool lists
8
+ * - Duplicate items from re-execution
9
+ *
10
+ * Rules:
11
+ * - User message: frames the request with the user's description
12
+ * - Assistant message: short commitment to single-pass execution
13
+ * - Visual templates: use SINGLE_PASS_RULES (batch_execute) with layer labels (CANVAS/ITEMS/ANIMATE/EFFECTS/PLAY)
14
+ * - Diagram templates: use DIAGRAM_RULES (create_diagram_shape + connect + auto_layout)
15
+ * - NEVER restart the pipeline
16
+ */
17
+ export interface PromptArgument {
18
+ name: string;
19
+ description: string;
20
+ required?: boolean;
21
+ }
22
+ export interface PromptMetadata {
23
+ name: string;
24
+ description: string;
25
+ arguments?: PromptArgument[];
26
+ }
27
+ export interface PromptMessage {
28
+ role: 'user' | 'assistant';
29
+ content: {
30
+ type: 'text';
31
+ text: string;
32
+ };
33
+ }
34
+ export declare const PROMPTS: PromptMetadata[];
35
+ export declare function getPromptMessages(name: string, args?: Record<string, string>): {
36
+ description?: string;
37
+ messages: PromptMessage[];
38
+ };
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC;AA+FD,eAAO,MAAM,OAAO,EAAE,cAAc,EAMnC,CAAC;AA6JF,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC5B;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,CAUrD"}
@@ -0,0 +1,254 @@
1
+ /**
2
+ * MCP Prompts — Template Recipes
3
+ *
4
+ * Each prompt replicates a specific PinePaper template pattern.
5
+ * The assistant message is kept ultra-concise to prevent:
6
+ * - Token waste from verbose planning
7
+ * - Pipeline restarts from step-by-step tool lists
8
+ * - Duplicate items from re-execution
9
+ *
10
+ * Rules:
11
+ * - User message: frames the request with the user's description
12
+ * - Assistant message: short commitment to single-pass execution
13
+ * - Visual templates: use SINGLE_PASS_RULES (batch_execute) with layer labels (CANVAS/ITEMS/ANIMATE/EFFECTS/PLAY)
14
+ * - Diagram templates: use DIAGRAM_RULES (create_diagram_shape + connect + auto_layout)
15
+ * - NEVER restart the pipeline
16
+ */
17
+ // -----------------------------------------------------------------------------
18
+ // Shared rules injected into every assistant message
19
+ // -----------------------------------------------------------------------------
20
+ const SINGLE_PASS_RULES = `RULES — follow exactly:
21
+ - start_job → batch_execute (ALL operations in ONE call) → end_job (screenshot) → show user → iterate
22
+ - batch_execute supports: set_canvas_size, set_background, execute_generator, create, modify, delete, animate, keyframe_animate, relation, apply_mask, apply_effect, play_timeline
23
+ - Use execute_generator for rich backgrounds (drawBokeh, drawGradientMesh, drawWaves, etc.) — much better than solid colors
24
+ - NEVER restart the pipeline — if user wants changes, modify items or start a new job
25
+ - After end_job, SHOW the screenshot and ask user if the design looks good`;
26
+ const DIAGRAM_RULES = `RULES — follow exactly:
27
+ - start_job → create shapes (pinepaper_create_diagram_shape) → connect (pinepaper_connect) → optionally auto_layout → end_job
28
+ - Analyze the description to infer ALL shapes, decisions, and connections
29
+ - Shape types: terminal (start/end), process (steps), decision (branches), data (I/O), document, database
30
+ - Position shapes explicitly when layout matters; use auto_layout only for tree/hierarchical flows
31
+ - Curved connectors follow source→target regardless of positioning, so manual placement works fine
32
+ - NEVER restart the pipeline
33
+ - After end_job, SHOW the screenshot and ask user if the design looks good`;
34
+ // -----------------------------------------------------------------------------
35
+ // Prompt definitions — each has a single declarative description argument
36
+ // -----------------------------------------------------------------------------
37
+ const MOTIVATIONAL_QUOTE_PROMPT = {
38
+ name: 'motivational-quote',
39
+ description: 'Animated motivational quote poster with stylized lettering and background generator.',
40
+ arguments: [
41
+ {
42
+ name: 'description',
43
+ description: 'Your quote and desired mood, e.g. "Stay hungry, stay foolish — warm sunset vibes"',
44
+ required: true,
45
+ },
46
+ ],
47
+ };
48
+ const TEXT_REVEAL_UP_PROMPT = {
49
+ name: 'text-reveal-up',
50
+ description: 'Words appear one by one with smooth wipeUp mask reveal effects.',
51
+ arguments: [
52
+ {
53
+ name: 'description',
54
+ description: 'The text and style, e.g. "Hello Beautiful World — elegant purple gradient feel"',
55
+ required: true,
56
+ },
57
+ ],
58
+ };
59
+ const SIMPLE_DECISION_FLOW_PROMPT = {
60
+ name: 'simple-decision-flow',
61
+ description: 'Decision flowchart with shapes, connectors, and auto-layout.',
62
+ arguments: [
63
+ {
64
+ name: 'description',
65
+ description: 'The flow, e.g. "User login: enter credentials → validate → success or retry"',
66
+ required: true,
67
+ },
68
+ ],
69
+ };
70
+ const SOLAR_SYSTEM_PROMPT = {
71
+ name: 'solar-system-education',
72
+ description: 'Animated planets with orbital relations, surface details, and a comet.',
73
+ arguments: [
74
+ {
75
+ name: 'description',
76
+ description: 'What to include, e.g. "Show inner planets with realistic colors and a bright comet"',
77
+ required: false,
78
+ },
79
+ ],
80
+ };
81
+ const CINEMA_TITLES_PROMPT = {
82
+ name: 'cinema-titles',
83
+ description: 'Cinematic title sequence with dramatic keyframe animations and letterbox mask effects.',
84
+ arguments: [
85
+ {
86
+ name: 'description',
87
+ description: 'The title sequence, e.g. "ARRIVAL — sci-fi mood, slow fade, minimal"',
88
+ required: true,
89
+ },
90
+ ],
91
+ };
92
+ // -----------------------------------------------------------------------------
93
+ // PROMPTS array — exported for ListPrompts handler
94
+ // -----------------------------------------------------------------------------
95
+ export const PROMPTS = [
96
+ MOTIVATIONAL_QUOTE_PROMPT,
97
+ TEXT_REVEAL_UP_PROMPT,
98
+ SIMPLE_DECISION_FLOW_PROMPT,
99
+ SOLAR_SYSTEM_PROMPT,
100
+ CINEMA_TITLES_PROMPT,
101
+ ];
102
+ // -----------------------------------------------------------------------------
103
+ // Message builders — ultra-concise, batch-first, no tool lists
104
+ // -----------------------------------------------------------------------------
105
+ function buildMotivationalQuote(args = {}) {
106
+ const description = args.description || 'Dream big — bold and energetic';
107
+ return [
108
+ {
109
+ role: 'user',
110
+ content: {
111
+ type: 'text',
112
+ text: `Create an animated motivational quote poster: ${description}`,
113
+ },
114
+ },
115
+ {
116
+ role: 'assistant',
117
+ content: {
118
+ type: 'text',
119
+ text: `I'll create this. All operations in one batch_execute call, then show you the result for feedback.
120
+
121
+ ${SINGLE_PASS_RULES}
122
+
123
+ CANVAS: execute_generator (match mood) / ITEMS: create text (quote + attribution) / ANIMATE: keyframe_animate (staggered reveals) / EFFECTS: apply_mask (wipeUp or iris) / PLAY: play_timeline.
124
+
125
+ Starting now.`,
126
+ },
127
+ },
128
+ ];
129
+ }
130
+ function buildTextRevealUp(args = {}) {
131
+ const description = args.description || 'Create Beautiful Graphics — colorful and modern';
132
+ return [
133
+ {
134
+ role: 'user',
135
+ content: {
136
+ type: 'text',
137
+ text: `Create a text reveal animation: ${description}`,
138
+ },
139
+ },
140
+ {
141
+ role: 'assistant',
142
+ content: {
143
+ type: 'text',
144
+ text: `I'll create this. All operations in one batch_execute call, then show you the result.
145
+
146
+ ${SINGLE_PASS_RULES}
147
+
148
+ CANVAS: execute_generator (match style) / ITEMS: create text (one per word, each on its own line — stack vertically with Y spacing ≥ fontSize × 1.4, NEVER same position) / ANIMATE: keyframe_animate (staggered fade-in, each word 0.3s after previous) / EFFECTS: apply_mask (wipeUp per item) / PLAY: play_timeline.
149
+
150
+ Starting now.`,
151
+ },
152
+ },
153
+ ];
154
+ }
155
+ function buildSimpleDecisionFlow(args = {}) {
156
+ const description = args.description || 'Start → Check Input → Valid? → Process Data or Show Error → End';
157
+ return [
158
+ {
159
+ role: 'user',
160
+ content: {
161
+ type: 'text',
162
+ text: `Create a decision flowchart: ${description}`,
163
+ },
164
+ },
165
+ {
166
+ role: 'assistant',
167
+ content: {
168
+ type: 'text',
169
+ text: `I'll create this flowchart using diagram tools, then show you the result.
170
+
171
+ ${DIAGRAM_RULES}
172
+
173
+ DESIGN: Analyze description → identify shapes (terminal, process, decision) → create_diagram_shape each (position explicitly or let auto_layout arrange) → connect with arrows.
174
+
175
+ Starting now.`,
176
+ },
177
+ },
178
+ ];
179
+ }
180
+ function buildSolarSystem(args = {}) {
181
+ const description = args.description || 'Inner planets with realistic colors, visible orbits, asteroid belt, and a comet with tail';
182
+ return [
183
+ {
184
+ role: 'user',
185
+ content: {
186
+ type: 'text',
187
+ text: `Create an animated solar system: ${description}`,
188
+ },
189
+ },
190
+ {
191
+ role: 'assistant',
192
+ content: {
193
+ type: 'text',
194
+ text: `I'll create this. All operations in one batch_execute call, then show you the result.
195
+
196
+ ${SINGLE_PASS_RULES}
197
+
198
+ CANVAS: set_background (#0a0a2e) + execute_generator (drawBokeh starfield) / ITEMS: create (sun, orbits, planets) / ANIMATE: animate (sun pulse) + relation (orbits) + keyframe_animate (comet) / PLAY: play_timeline.
199
+
200
+ Starting now.`,
201
+ },
202
+ },
203
+ ];
204
+ }
205
+ function buildCinemaTitles(args = {}) {
206
+ const description = args.description || 'INCEPTION — A film by Christopher Nolan — dark, dramatic, slow fade';
207
+ return [
208
+ {
209
+ role: 'user',
210
+ content: {
211
+ type: 'text',
212
+ text: `Create a cinematic title sequence: ${description}`,
213
+ },
214
+ },
215
+ {
216
+ role: 'assistant',
217
+ content: {
218
+ type: 'text',
219
+ text: `I'll create this. All operations in one batch_execute call, then show you the result.
220
+
221
+ ${SINGLE_PASS_RULES}
222
+
223
+ CANVAS: set_background (#000000) / ITEMS: create text (title + subtitle, opacity:0) / ANIMATE: keyframe_animate (fade in + scale, staggered) / EFFECTS: apply_mask (cinematic letterbox) / PLAY: play_timeline.
224
+
225
+ Starting now.`,
226
+ },
227
+ },
228
+ ];
229
+ }
230
+ // -----------------------------------------------------------------------------
231
+ // Prompt message builder map
232
+ // -----------------------------------------------------------------------------
233
+ const PROMPT_BUILDERS = {
234
+ 'motivational-quote': buildMotivationalQuote,
235
+ 'text-reveal-up': buildTextRevealUp,
236
+ 'simple-decision-flow': buildSimpleDecisionFlow,
237
+ 'solar-system-education': buildSolarSystem,
238
+ 'cinema-titles': buildCinemaTitles,
239
+ };
240
+ // -----------------------------------------------------------------------------
241
+ // getPromptMessages — exported for GetPrompt handler
242
+ // -----------------------------------------------------------------------------
243
+ export function getPromptMessages(name, args) {
244
+ const builder = PROMPT_BUILDERS[name];
245
+ if (!builder) {
246
+ throw new Error(`Unknown prompt: ${name}`);
247
+ }
248
+ const meta = PROMPTS.find(p => p.name === name);
249
+ return {
250
+ description: meta.description,
251
+ messages: builder(args ?? {}),
252
+ };
253
+ }
254
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAuBH,gFAAgF;AAChF,qDAAqD;AACrD,gFAAgF;AAEhF,MAAM,iBAAiB,GAAG;;;;;2EAKiD,CAAC;AAE5E,MAAM,aAAa,GAAG;;;;;;;2EAOqD,CAAC;AAE5E,gFAAgF;AAChF,0EAA0E;AAC1E,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,Q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IAC5C,gBAAgB,EAAE,iBAAiB;IACnC,sBAAsB,EAAE,uBAAuB;IAC/C,wBAAwB,EAAE,gBAAgB;IAC1C,eAAe,EAAE,iBAAiB;CACnC,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"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Compact tool descriptions for reduced context usage.
3
+ *
4
+ * Activated via PINEPAPER_TOOL_VERBOSITY=compact env var.
5
+ * Cuts ~58% from the 13 largest tool descriptions while preserving
6
+ * USE WHEN guidance, critical warnings, and resource doc references.
7
+ */
8
+ export declare const COMPACT_DESCRIPTIONS: Record<string, string>;
9
+ //# sourceMappingURL=compact-descriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact-descriptions.d.ts","sourceRoot":"","sources":["../../src/tools/compact-descriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyQvD,CAAC"}
@@ -0,0 +1,260 @@
1
+ /**
2
+ * Compact tool descriptions for reduced context usage.
3
+ *
4
+ * Activated via PINEPAPER_TOOL_VERBOSITY=compact env var.
5
+ * Cuts ~58% from the 13 largest tool descriptions while preserving
6
+ * USE WHEN guidance, critical warnings, and resource doc references.
7
+ */
8
+ export const COMPACT_DESCRIPTIONS = {
9
+ // -------------------------------------------------------------------------
10
+ // batch_execute — 4382 → ~1200 chars
11
+ // -------------------------------------------------------------------------
12
+ pinepaper_agent_batch_execute: `Execute ALL operations in a single call for building animated scenes — canvas setup, backgrounds, items, animations, masks, effects, and playback.
13
+
14
+ NOTE: For diagrams (flowcharts, UML), use pinepaper_create_diagram_shape + pinepaper_connect instead.
15
+
16
+ ⚠️ EVERY operation executes LIVE on the canvas. Calling this twice DOUBLES all items. Call ONCE per pipeline.
17
+
18
+ WORKFLOW: pinepaper_agent_start_job → pinepaper_agent_batch_execute → pinepaper_agent_end_job
19
+
20
+ OPERATION TYPES (12, use in order): set_canvas_size, set_background, execute_generator, create, modify, delete, animate, keyframe_animate, relation, apply_mask, apply_effect, play_timeline.
21
+
22
+ VARIABLE REFERENCES: "$0", "$1" etc. reference items by creation order within the batch.
23
+
24
+ ⚠️ 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.
25
+
26
+ See inputSchema for per-operation params and enum values. See pinepaper://docs/getting-started for full workflow.`,
27
+ // -------------------------------------------------------------------------
28
+ // create_item — 4287 → ~1500 chars
29
+ // -------------------------------------------------------------------------
30
+ pinepaper_create_item: `Create an item on the PinePaper canvas. Returns an itemId (e.g., "item_1") that you MUST save to reference this item later.
31
+
32
+ USE WHEN: Adding text, shapes, or graphics to the canvas.
33
+
34
+ IMPORTANT:
35
+ - Save the returned itemId for later use with relations, modify, delete, etc.
36
+ - If there's a welcome template on the canvas, use pinepaper_clear_canvas first.
37
+ - Position defaults to canvas center (400, 300). Use position: {x, y} to place elsewhere.
38
+ - DO NOT take screenshots after every create. Trust the API response — take ONE screenshot at the end.
39
+
40
+ ⚠️ COMPLEX CHARACTERS (witch, cat face, person): Use pinepaper_import_svg or compose from simple shapes. Do NOT attempt pixel-level path drawing.
41
+
42
+ ITEM TYPES: text, circle, rectangle, star, triangle, polygon, ellipse, path, line, arc.
43
+
44
+ PATH FOR CUSTOM SHAPES: Use itemType "path" with segments ([[x,y]...]) or pathData (SVG string).
45
+
46
+ STYLING: All shapes support gradients (color object with stops), shadows (shadowColor, shadowBlur, shadowOffset), blend modes, and opacity. See inputSchema for full properties per type.
47
+
48
+ EXAMPLE: {itemType: "text", properties: {content: "HELLO", color: "#ef4444", fontSize: 48}}
49
+
50
+ After creating items, use pinepaper_add_relation to animate them.`,
51
+ // -------------------------------------------------------------------------
52
+ // p5_draw — 3394 → ~1200 chars
53
+ // -------------------------------------------------------------------------
54
+ pinepaper_p5_draw: `Execute p5.js-style drawing code on the PinePaper canvas. Code is translated to Paper.js automatically. This is a SUBSET of p5.js for static drawings.
55
+
56
+ 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.
57
+
58
+ NOT SUPPORTED (use native PinePaper tools instead):
59
+ - setup()/draw() loop → pinepaper_animate / pinepaper_add_relation
60
+ - noise(), text(), loadImage(), push()/pop()/translate()/rotate()/scale(), beginShape()/vertex()/endShape()
61
+
62
+ Code runs directly — NO setup() or draw() wrapper. Items are auto-registered, selectable, animatable, and exportable.
63
+
64
+ EXAMPLE:
65
+ background(30);
66
+ noStroke();
67
+ for (let i = 0; i < 20; i++) {
68
+ fill(random(255), random(255), random(255));
69
+ circle(random(width), random(height), random(20, 80));
70
+ }`,
71
+ // -------------------------------------------------------------------------
72
+ // create_scene — 2754 → ~1500 chars
73
+ // -------------------------------------------------------------------------
74
+ pinepaper_create_scene: `Create a complete scene with multiple items, relations, and animations in a single operation. The MOST EFFICIENT way to create complex animated scenes.
75
+
76
+ USE WHEN: Creating multi-item animated scenes (solar systems, bouncing balls, etc.) where performance matters. Reduces 4+ tool calls to 1.
77
+
78
+ HOW IT WORKS:
79
+ 1. Define items with "name" references (e.g., "sun", "earth", "moon")
80
+ 2. Define relations using those names (e.g., source: "earth", target: "sun")
81
+ 3. Define animations using names (e.g., target: "sun", type: "pulse")
82
+ 4. Server creates all items, then establishes relations and animations
83
+
84
+ EXAMPLE — Solar System:
85
+ {backgroundColor: "#0a0a0a", items: [
86
+ {name: "sun", itemType: "circle", position: {x: 400, y: 300}, properties: {radius: 50, color: "#fbbf24"}},
87
+ {name: "earth", itemType: "circle", position: {x: 550, y: 300}, properties: {radius: 20, color: "#3b82f6"}}
88
+ ], relations: [
89
+ {source: "earth", target: "sun", type: "orbits", params: {radius: 150, speed: 0.5}}
90
+ ], animations: [
91
+ {target: "sun", type: "pulse", speed: 0.3}
92
+ ]}
93
+
94
+ Item types: text, circle, star, rectangle, triangle, polygon, ellipse, path, line, arc.
95
+ Relations: orbits, follows, attached_to, maintains_distance, points_at, mirrors, parallax, bounds_to, morphs_to, + more (see inputSchema).
96
+ Animations: pulse, rotate, bounce, fade, wobble, slide, typewriter.`,
97
+ // -------------------------------------------------------------------------
98
+ // execute_generator — 2202 → ~900 chars
99
+ // -------------------------------------------------------------------------
100
+ pinepaper_execute_generator: `Execute a background generator to create procedural patterns.
101
+
102
+ USE WHEN: Creating dynamic procedural backgrounds — sunbursts, bokeh, gradients, waves, noise textures, etc.
103
+
104
+ GENERATORS (14):
105
+ Classic: drawSunburst, drawSunsetScene, drawGrid, drawStackedCircles, drawCircuit, drawWaves, drawPattern
106
+ Effects: drawBokeh
107
+ Organic: drawGradientMesh, drawFluidFlow, drawOrganicFlow
108
+ Geometric: drawGeometricAbstract
109
+ Particles: drawWindField
110
+ Textures: drawNoiseTexture
111
+
112
+ Each generator accepts generatorParams — see pinepaper://docs/generators for full parameter docs per generator, or use inputSchema for the param schema.`,
113
+ // -------------------------------------------------------------------------
114
+ // get_performance_metrics — 2176 → ~1000 chars
115
+ // -------------------------------------------------------------------------
116
+ pinepaper_get_performance_metrics: `[Utility] Get execution performance metrics to identify bottlenecks and optimize workflows.
117
+
118
+ USE WHEN: Analyzing tool performance, debugging slow operations, optimizing workflows.
119
+
120
+ RETURNS: Per-tool timing breakdown (validation, code gen, execution, screenshot), aggregate statistics (avg, p50, p95, p99), success rates, error counts.
121
+
122
+ FORMAT OPTIONS: 'summary' (human-readable, slowest first), 'detailed' (full JSON), 'csv' (spreadsheet export).
123
+
124
+ FILTER OPTIONS: toolName, phase, since (Unix timestamp), limit.
125
+
126
+ EXAMPLES:
127
+ - Summary of all: {}
128
+ - Last 50 create_item ops: {toolName: 'pinepaper_create_item', limit: 50}
129
+ - Export CSV: {format: 'csv'}`,
130
+ // -------------------------------------------------------------------------
131
+ // add_relation — 2025 → ~1200 chars
132
+ // -------------------------------------------------------------------------
133
+ pinepaper_add_relation: `Create a behavior relationship between two items. Relations are the PRIMARY way to add animation in PinePaper — they describe HOW items behave relative to each other.
134
+
135
+ USE WHEN:
136
+ - "moon orbits earth" → orbits
137
+ - "label follows player" → follows
138
+ - "hat attached to character" → attached_to
139
+ - "arrow points at target" → points_at
140
+ - "reflection mirrors original" → mirrors
141
+ - "background parallax" → parallax
142
+
143
+ RELATION TYPES: orbits, follows, attached_to, maintains_distance, points_at, mirrors, parallax, bounds_to, morphs_to (+ more in inputSchema, each with specific params).
144
+
145
+ COMPATIBILITY: Position-based relations (orbits, follows, attached_to, etc.) work with ALL item types including imported SVGs/images. morphs_to has type-specific behavior.
146
+
147
+ Relations are COMPOSITIONAL — an item can have multiple relations that work together.`,
148
+ // -------------------------------------------------------------------------
149
+ // create_diagram_shape — 1974 → ~1000 chars
150
+ // -------------------------------------------------------------------------
151
+ pinepaper_create_diagram_shape: `Create a diagram shape for flowcharts, UML, network diagrams, and technical drawings.
152
+
153
+ USE WHEN: Creating flowcharts, process diagrams, UML diagrams, network topologies, org charts, or decision trees.
154
+
155
+ SHAPE TYPES:
156
+ Flowchart: process, decision, terminal, data, document, database, preparation
157
+ UML: uml-class, uml-usecase, uml-actor
158
+ Network: cloud, server
159
+ Basic: rectangle, circle, triangle, star
160
+
161
+ All shapes have connection ports, support labels, and can be connected via pinepaper_connect.
162
+
163
+ EXAMPLE: {shapeType: "terminal", label: "Start", position: {x: 400, y: 100}}
164
+
165
+ WORKFLOW: Create shapes → pinepaper_connect to draw connectors → pinepaper_auto_layout to arrange. See pinepaper://docs/diagrams for detailed guide.`,
166
+ // -------------------------------------------------------------------------
167
+ // search_assets — 1939 → ~1000 chars
168
+ // -------------------------------------------------------------------------
169
+ pinepaper_search_assets: `Search for free SVG assets from open repositories (SVGRepo, OpenClipart, Iconify, FontAwesome).
170
+
171
+ USE WHEN: Need icons, illustrations, clipart, or graphics too complex to draw with paths.
172
+
173
+ WORKFLOW:
174
+ 1. Search: pinepaper_search_assets(query: "rocket")
175
+ 2. Review results (assetIds, previews, licenses)
176
+ 3. Import: pinepaper_import_asset(assetId: "svgrepo_rocket_12345")
177
+
178
+ IMPORTANT: Always check license field. CC-BY requires attribution (tracked automatically). CC0 has no restrictions.
179
+
180
+ Set includeSvgContent: true to fetch SVG markup inline (slower, use lower limit). Search queries work best with simple, specific terms.
181
+
182
+ EXAMPLE: {query: "rocket", limit: 5}`,
183
+ // -------------------------------------------------------------------------
184
+ // connect — 1863 → ~1000 chars
185
+ // -------------------------------------------------------------------------
186
+ pinepaper_connect: `Connect two items with a smart connector — the primary way to draw lines/arrows between diagram shapes.
187
+
188
+ USE WHEN: Drawing arrows between flowchart steps, UML associations, network connections, or any diagram needing lines/arrows.
189
+
190
+ FEATURES: Auto port selection, smart routing, animated bolt effect, labels.
191
+
192
+ ROUTING: orthogonal (right-angle, default), direct (straight), curved (bezier).
193
+ ARROW STYLES: classic, stealth, sharp, open, diamond, circle, none — see inputSchema for head/tail options.
194
+ LINE STYLES: solid, dashed, dotted.
195
+
196
+ Enable boltEnabled: true for animated data flow particles.
197
+
198
+ EXAMPLES:
199
+ - Simple arrow: {sourceItemId: "shape_1", targetItemId: "shape_2"}
200
+ - Labeled: {sourceItemId: "a", targetItemId: "b", label: "1..*"}
201
+ - Dashed: {sourceItemId: "a", targetItemId: "b", lineStyle: "dashed", headStyle: "open"}`,
202
+ // -------------------------------------------------------------------------
203
+ // auto_layout — 1853 → ~1000 chars
204
+ // -------------------------------------------------------------------------
205
+ pinepaper_auto_layout: `Automatically arrange diagram items using a layout algorithm for cleaner, more readable diagrams.
206
+
207
+ USE WHEN: Items are messy/overlapping, need professional layout, or creating hierarchical structures.
208
+
209
+ LAYOUT TYPES:
210
+ - hierarchical: Flowcharts, org charts, dependency graphs (direction: TB/BT/LR/RL)
211
+ - force-directed: Network diagrams, relationship graphs (physics simulation)
212
+ - tree: Hierarchies, file systems (optimized tree structure)
213
+ - radial: Mind maps, hub-and-spoke (concentric circles)
214
+ - grid: Equal-importance items, component libraries (rows/columns)
215
+
216
+ Set animate: false for instant repositioning. Pass itemIds to layout only specific items.
217
+
218
+ EXAMPLES:
219
+ - Flowchart: {layoutType: "hierarchical", options: {direction: "TB", levelSpacing: 100}}
220
+ - Network: {layoutType: "force-directed", options: {iterations: 200}}
221
+ - Grid: {layoutType: "grid", options: {columns: 4}}`,
222
+ // -------------------------------------------------------------------------
223
+ // import_asset — 1714 → ~800 chars
224
+ // -------------------------------------------------------------------------
225
+ pinepaper_import_asset: `Import an SVG asset from search results or direct URL onto the canvas.
226
+
227
+ USE WHEN: After searching with pinepaper_search_assets, or importing from a direct SVG URL.
228
+
229
+ WORKFLOW: Search → Choose (check license) → Import → Modify/Animate as needed.
230
+
231
+ PARAMS: assetId (from search) OR url (direct SVG URL), position, scale, color (override for monochrome icons).
232
+
233
+ License metadata is tracked automatically. CC-BY attribution is added to canvas metadata. Downloaded SVGs are cached in memory for the session.
234
+
235
+ EXAMPLE: {assetId: "svgrepo_rocket_001", position: {x: 400, y: 300}, scale: 2.0}
236
+
237
+ RETURNS: itemId (for further modifications), metadata (including license).`,
238
+ // -------------------------------------------------------------------------
239
+ // agent_export — 1615 → ~900 chars
240
+ // -------------------------------------------------------------------------
241
+ pinepaper_agent_export: `Smart export with automatic format detection and platform optimization.
242
+
243
+ USE WHEN: Exporting for social media, print, or web with optimal format auto-selected.
244
+
245
+ PLATFORMS:
246
+ | Platform | Size | Static | Animated |
247
+ |------------------|------------|--------|----------|
248
+ | instagram | 1080x1080 | PNG | MP4 |
249
+ | instagram-story | 1080x1920 | PNG | MP4 |
250
+ | tiktok | 1080x1920 | PNG | MP4@60fps|
251
+ | youtube | 1920x1080 | PNG | MP4 |
252
+ | youtube-thumbnail| 1280x720 | PNG | PNG |
253
+ | twitter | 1200x675 | PNG | GIF |
254
+ | linkedin | 1200x627 | PNG | GIF |
255
+ | web | flexible | SVG | SVG |
256
+ | print-a4/letter | A4/Letter | PDF | PDF |
257
+
258
+ Format override: svg, png, gif, mp4, webm, pdf. Quality: draft, standard, high. See inputSchema for details.`,
259
+ };
260
+ //# sourceMappingURL=compact-descriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact-descriptions.js","sourceRoot":"","sources":["../../src/tools/compact-descriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAA2B;IAE1D,4EAA4E;IAC5E,qCAAqC;IACrC,4EAA4E;IAC5E,6BAA6B,EAAE;;;;;;;;;;;;;;kHAciF;IAEhH,4EAA4E;IAC5E,mCAAmC;IACnC,4EAA4E;IAC5E,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;kEAoByC;IAEhE,4EAA4E;IAC5E,+BAA+B;IAC/B,4EAA4E;IAC5E,iBAAiB,EAAE;;;;;;;;;;;;;;;;EAgBnB;IAEA,4EAA4E;IAC5E,oCAAoC;IACpC,4EAA4E;IAC5E,sBAAsB,EAAE;;;;;;;;;;;;;;;;;;;;;;oEAsB0C;IAElE,4EAA4E;IAC5E,wCAAwC;IACxC,4EAA4E;IAC5E,2BAA2B,EAAE;;;;;;;;;;;;yJAY0H;IAEvJ,4EAA4E;IAC5E,+CAA+C;IAC/C,4EAA4E;IAC5E,iCAAiC,EAAE;;;;;;;;;;;;;8BAaP;IAE5B,4EAA4E;IAC5E,oCAAoC;IACpC,4EAA4E;IAC5E,sBAAsB,EAAE;;;;;;;;;;;;;;sFAc4D;IAEpF,4EAA4E;IAC5E,4CAA4C;IAC5C,4EAA4E;IAC5E,8BAA8B,EAAE;;;;;;;;;;;;;;qJAcmH;IAEnJ,4EAA4E;IAC5E,qCAAqC;IACrC,4EAA4E;IAC5E,uBAAuB,EAAE;;;;;;;;;;;;;qCAaU;IAEnC,4EAA4E;IAC5E,+BAA+B;IAC/B,4EAA4E;IAC5E,iBAAiB,EAAE;;;;;;;;;;;;;;;yFAeoE;IAEvF,4EAA4E;IAC5E,mCAAmC;IACnC,4EAA4E;IAC5E,qBAAqB,EAAE;;;;;;;;;;;;;;;;oDAgB2B;IAElD,4EAA4E;IAC5E,mCAAmC;IACnC,4EAA4E;IAC5E,sBAAsB,EAAE;;;;;;;;;;;;2EAYiD;IAEzE,4EAA4E;IAC5E,mCAAmC;IACnC,4EAA4E;IAC5E,sBAAsB,EAAE;;;;;;;;;;;;;;;;;6GAiBmF;CAE5G,CAAC"}
@@ -23,4 +23,16 @@ export declare function getToolNames(): string[];
23
23
  * Tool descriptions remain in English for AI, but names can be localized for UI
24
24
  */
25
25
  export declare function getLocalizedTools(i18n: I18nManager): Tool[];
26
+ /**
27
+ * Tool description verbosity level.
28
+ * - 'verbose': Full descriptions (default, ~42K tokens)
29
+ * - 'compact': Trimmed descriptions for the 13 largest tools (~37K tokens)
30
+ */
31
+ export type ToolVerbosity = 'verbose' | 'compact';
32
+ /**
33
+ * Get tools with the specified verbosity level.
34
+ * Compact mode swaps in shorter descriptions for the 13 largest tools,
35
+ * reducing context usage by ~5K tokens while preserving critical guidance.
36
+ */
37
+ export declare function getToolsForVerbosity(verbosity: ToolVerbosity): Tool[];
26
38
  //# sourceMappingURL=definitions.d.ts.map