@pinepaper.studio/mcp-server 1.0.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 (295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +406 -0
  3. package/dist/__tests__/fixtures/index.d.ts +8 -0
  4. package/dist/__tests__/fixtures/index.d.ts.map +1 -0
  5. package/dist/__tests__/fixtures/index.js +8 -0
  6. package/dist/__tests__/fixtures/index.js.map +1 -0
  7. package/dist/__tests__/fixtures/mock-animations.d.ts +213 -0
  8. package/dist/__tests__/fixtures/mock-animations.d.ts.map +1 -0
  9. package/dist/__tests__/fixtures/mock-animations.js +96 -0
  10. package/dist/__tests__/fixtures/mock-animations.js.map +1 -0
  11. package/dist/__tests__/fixtures/mock-generators.d.ts +147 -0
  12. package/dist/__tests__/fixtures/mock-generators.d.ts.map +1 -0
  13. package/dist/__tests__/fixtures/mock-generators.js +90 -0
  14. package/dist/__tests__/fixtures/mock-generators.js.map +1 -0
  15. package/dist/__tests__/fixtures/mock-items.d.ts +157 -0
  16. package/dist/__tests__/fixtures/mock-items.d.ts.map +1 -0
  17. package/dist/__tests__/fixtures/mock-items.js +74 -0
  18. package/dist/__tests__/fixtures/mock-items.js.map +1 -0
  19. package/dist/__tests__/fixtures/mock-relations.d.ts +147 -0
  20. package/dist/__tests__/fixtures/mock-relations.d.ts.map +1 -0
  21. package/dist/__tests__/fixtures/mock-relations.js +90 -0
  22. package/dist/__tests__/fixtures/mock-relations.js.map +1 -0
  23. package/dist/browser/bridge.d.ts +127 -0
  24. package/dist/browser/bridge.d.ts.map +1 -0
  25. package/dist/browser/bridge.js +320 -0
  26. package/dist/browser/bridge.js.map +1 -0
  27. package/dist/browser/index.d.ts +8 -0
  28. package/dist/browser/index.d.ts.map +1 -0
  29. package/dist/browser/index.js +8 -0
  30. package/dist/browser/index.js.map +1 -0
  31. package/dist/browser/puppeteer-controller.d.ts +93 -0
  32. package/dist/browser/puppeteer-controller.d.ts.map +1 -0
  33. package/dist/browser/puppeteer-controller.js +280 -0
  34. package/dist/browser/puppeteer-controller.js.map +1 -0
  35. package/dist/cli.d.ts +8 -0
  36. package/dist/cli.d.ts.map +1 -0
  37. package/dist/cli.js +109 -0
  38. package/dist/cli.js.map +1 -0
  39. package/dist/i18n/i18n-manager.d.ts +88 -0
  40. package/dist/i18n/i18n-manager.d.ts.map +1 -0
  41. package/dist/i18n/i18n-manager.js +209 -0
  42. package/dist/i18n/i18n-manager.js.map +1 -0
  43. package/dist/i18n/index.d.ts +10 -0
  44. package/dist/i18n/index.d.ts.map +1 -0
  45. package/dist/i18n/index.js +10 -0
  46. package/dist/i18n/index.js.map +1 -0
  47. package/dist/i18n/locales/ar.d.ts +6 -0
  48. package/dist/i18n/locales/ar.d.ts.map +1 -0
  49. package/dist/i18n/locales/ar.js +106 -0
  50. package/dist/i18n/locales/ar.js.map +1 -0
  51. package/dist/i18n/locales/base.d.ts +17 -0
  52. package/dist/i18n/locales/base.d.ts.map +1 -0
  53. package/dist/i18n/locales/base.js +213 -0
  54. package/dist/i18n/locales/base.js.map +1 -0
  55. package/dist/i18n/locales/bn.d.ts +6 -0
  56. package/dist/i18n/locales/bn.d.ts.map +1 -0
  57. package/dist/i18n/locales/bn.js +106 -0
  58. package/dist/i18n/locales/bn.js.map +1 -0
  59. package/dist/i18n/locales/chp.d.ts +8 -0
  60. package/dist/i18n/locales/chp.d.ts.map +1 -0
  61. package/dist/i18n/locales/chp.js +11 -0
  62. package/dist/i18n/locales/chp.js.map +1 -0
  63. package/dist/i18n/locales/cr.d.ts +8 -0
  64. package/dist/i18n/locales/cr.d.ts.map +1 -0
  65. package/dist/i18n/locales/cr.js +11 -0
  66. package/dist/i18n/locales/cr.js.map +1 -0
  67. package/dist/i18n/locales/crg.d.ts +8 -0
  68. package/dist/i18n/locales/crg.d.ts.map +1 -0
  69. package/dist/i18n/locales/crg.js +11 -0
  70. package/dist/i18n/locales/crg.js.map +1 -0
  71. package/dist/i18n/locales/cs.d.ts +6 -0
  72. package/dist/i18n/locales/cs.d.ts.map +1 -0
  73. package/dist/i18n/locales/cs.js +106 -0
  74. package/dist/i18n/locales/cs.js.map +1 -0
  75. package/dist/i18n/locales/da.d.ts +6 -0
  76. package/dist/i18n/locales/da.d.ts.map +1 -0
  77. package/dist/i18n/locales/da.js +106 -0
  78. package/dist/i18n/locales/da.js.map +1 -0
  79. package/dist/i18n/locales/de.d.ts +6 -0
  80. package/dist/i18n/locales/de.d.ts.map +1 -0
  81. package/dist/i18n/locales/de.js +106 -0
  82. package/dist/i18n/locales/de.js.map +1 -0
  83. package/dist/i18n/locales/el.d.ts +6 -0
  84. package/dist/i18n/locales/el.d.ts.map +1 -0
  85. package/dist/i18n/locales/el.js +106 -0
  86. package/dist/i18n/locales/el.js.map +1 -0
  87. package/dist/i18n/locales/en.d.ts +6 -0
  88. package/dist/i18n/locales/en.d.ts.map +1 -0
  89. package/dist/i18n/locales/en.js +383 -0
  90. package/dist/i18n/locales/en.js.map +1 -0
  91. package/dist/i18n/locales/es.d.ts +6 -0
  92. package/dist/i18n/locales/es.d.ts.map +1 -0
  93. package/dist/i18n/locales/es.js +106 -0
  94. package/dist/i18n/locales/es.js.map +1 -0
  95. package/dist/i18n/locales/fa.d.ts +6 -0
  96. package/dist/i18n/locales/fa.d.ts.map +1 -0
  97. package/dist/i18n/locales/fa.js +106 -0
  98. package/dist/i18n/locales/fa.js.map +1 -0
  99. package/dist/i18n/locales/fi.d.ts +6 -0
  100. package/dist/i18n/locales/fi.d.ts.map +1 -0
  101. package/dist/i18n/locales/fi.js +106 -0
  102. package/dist/i18n/locales/fi.js.map +1 -0
  103. package/dist/i18n/locales/fil.d.ts +6 -0
  104. package/dist/i18n/locales/fil.d.ts.map +1 -0
  105. package/dist/i18n/locales/fil.js +383 -0
  106. package/dist/i18n/locales/fil.js.map +1 -0
  107. package/dist/i18n/locales/fr.d.ts +6 -0
  108. package/dist/i18n/locales/fr.d.ts.map +1 -0
  109. package/dist/i18n/locales/fr.js +106 -0
  110. package/dist/i18n/locales/fr.js.map +1 -0
  111. package/dist/i18n/locales/gu.d.ts +6 -0
  112. package/dist/i18n/locales/gu.d.ts.map +1 -0
  113. package/dist/i18n/locales/gu.js +106 -0
  114. package/dist/i18n/locales/gu.js.map +1 -0
  115. package/dist/i18n/locales/he.d.ts +6 -0
  116. package/dist/i18n/locales/he.d.ts.map +1 -0
  117. package/dist/i18n/locales/he.js +106 -0
  118. package/dist/i18n/locales/he.js.map +1 -0
  119. package/dist/i18n/locales/hi.d.ts +6 -0
  120. package/dist/i18n/locales/hi.d.ts.map +1 -0
  121. package/dist/i18n/locales/hi.js +106 -0
  122. package/dist/i18n/locales/hi.js.map +1 -0
  123. package/dist/i18n/locales/hu.d.ts +6 -0
  124. package/dist/i18n/locales/hu.d.ts.map +1 -0
  125. package/dist/i18n/locales/hu.js +106 -0
  126. package/dist/i18n/locales/hu.js.map +1 -0
  127. package/dist/i18n/locales/id.d.ts +6 -0
  128. package/dist/i18n/locales/id.d.ts.map +1 -0
  129. package/dist/i18n/locales/id.js +106 -0
  130. package/dist/i18n/locales/id.js.map +1 -0
  131. package/dist/i18n/locales/index.d.ts +110 -0
  132. package/dist/i18n/locales/index.d.ts.map +1 -0
  133. package/dist/i18n/locales/index.js +123 -0
  134. package/dist/i18n/locales/index.js.map +1 -0
  135. package/dist/i18n/locales/is.d.ts +6 -0
  136. package/dist/i18n/locales/is.d.ts.map +1 -0
  137. package/dist/i18n/locales/is.js +383 -0
  138. package/dist/i18n/locales/is.js.map +1 -0
  139. package/dist/i18n/locales/it.d.ts +6 -0
  140. package/dist/i18n/locales/it.d.ts.map +1 -0
  141. package/dist/i18n/locales/it.js +106 -0
  142. package/dist/i18n/locales/it.js.map +1 -0
  143. package/dist/i18n/locales/iu.d.ts +8 -0
  144. package/dist/i18n/locales/iu.d.ts.map +1 -0
  145. package/dist/i18n/locales/iu.js +11 -0
  146. package/dist/i18n/locales/iu.js.map +1 -0
  147. package/dist/i18n/locales/ja.d.ts +6 -0
  148. package/dist/i18n/locales/ja.d.ts.map +1 -0
  149. package/dist/i18n/locales/ja.js +106 -0
  150. package/dist/i18n/locales/ja.js.map +1 -0
  151. package/dist/i18n/locales/kn.d.ts +6 -0
  152. package/dist/i18n/locales/kn.d.ts.map +1 -0
  153. package/dist/i18n/locales/kn.js +106 -0
  154. package/dist/i18n/locales/kn.js.map +1 -0
  155. package/dist/i18n/locales/ko.d.ts +6 -0
  156. package/dist/i18n/locales/ko.d.ts.map +1 -0
  157. package/dist/i18n/locales/ko.js +106 -0
  158. package/dist/i18n/locales/ko.js.map +1 -0
  159. package/dist/i18n/locales/mic.d.ts +8 -0
  160. package/dist/i18n/locales/mic.d.ts.map +1 -0
  161. package/dist/i18n/locales/mic.js +11 -0
  162. package/dist/i18n/locales/mic.js.map +1 -0
  163. package/dist/i18n/locales/ml.d.ts +6 -0
  164. package/dist/i18n/locales/ml.d.ts.map +1 -0
  165. package/dist/i18n/locales/ml.js +106 -0
  166. package/dist/i18n/locales/ml.js.map +1 -0
  167. package/dist/i18n/locales/moh.d.ts +8 -0
  168. package/dist/i18n/locales/moh.d.ts.map +1 -0
  169. package/dist/i18n/locales/moh.js +11 -0
  170. package/dist/i18n/locales/moh.js.map +1 -0
  171. package/dist/i18n/locales/mr.d.ts +6 -0
  172. package/dist/i18n/locales/mr.d.ts.map +1 -0
  173. package/dist/i18n/locales/mr.js +106 -0
  174. package/dist/i18n/locales/mr.js.map +1 -0
  175. package/dist/i18n/locales/ms.d.ts +6 -0
  176. package/dist/i18n/locales/ms.d.ts.map +1 -0
  177. package/dist/i18n/locales/ms.js +106 -0
  178. package/dist/i18n/locales/ms.js.map +1 -0
  179. package/dist/i18n/locales/nl.d.ts +6 -0
  180. package/dist/i18n/locales/nl.d.ts.map +1 -0
  181. package/dist/i18n/locales/nl.js +106 -0
  182. package/dist/i18n/locales/nl.js.map +1 -0
  183. package/dist/i18n/locales/no.d.ts +6 -0
  184. package/dist/i18n/locales/no.d.ts.map +1 -0
  185. package/dist/i18n/locales/no.js +106 -0
  186. package/dist/i18n/locales/no.js.map +1 -0
  187. package/dist/i18n/locales/oj.d.ts +8 -0
  188. package/dist/i18n/locales/oj.d.ts.map +1 -0
  189. package/dist/i18n/locales/oj.js +11 -0
  190. package/dist/i18n/locales/oj.js.map +1 -0
  191. package/dist/i18n/locales/pa.d.ts +6 -0
  192. package/dist/i18n/locales/pa.d.ts.map +1 -0
  193. package/dist/i18n/locales/pa.js +106 -0
  194. package/dist/i18n/locales/pa.js.map +1 -0
  195. package/dist/i18n/locales/pl.d.ts +6 -0
  196. package/dist/i18n/locales/pl.d.ts.map +1 -0
  197. package/dist/i18n/locales/pl.js +106 -0
  198. package/dist/i18n/locales/pl.js.map +1 -0
  199. package/dist/i18n/locales/pt-BR.d.ts +6 -0
  200. package/dist/i18n/locales/pt-BR.d.ts.map +1 -0
  201. package/dist/i18n/locales/pt-BR.js +106 -0
  202. package/dist/i18n/locales/pt-BR.js.map +1 -0
  203. package/dist/i18n/locales/pt.d.ts +6 -0
  204. package/dist/i18n/locales/pt.d.ts.map +1 -0
  205. package/dist/i18n/locales/pt.js +106 -0
  206. package/dist/i18n/locales/pt.js.map +1 -0
  207. package/dist/i18n/locales/ro.d.ts +6 -0
  208. package/dist/i18n/locales/ro.d.ts.map +1 -0
  209. package/dist/i18n/locales/ro.js +106 -0
  210. package/dist/i18n/locales/ro.js.map +1 -0
  211. package/dist/i18n/locales/ru.d.ts +6 -0
  212. package/dist/i18n/locales/ru.d.ts.map +1 -0
  213. package/dist/i18n/locales/ru.js +106 -0
  214. package/dist/i18n/locales/ru.js.map +1 -0
  215. package/dist/i18n/locales/sv.d.ts +6 -0
  216. package/dist/i18n/locales/sv.d.ts.map +1 -0
  217. package/dist/i18n/locales/sv.js +106 -0
  218. package/dist/i18n/locales/sv.js.map +1 -0
  219. package/dist/i18n/locales/ta.d.ts +6 -0
  220. package/dist/i18n/locales/ta.d.ts.map +1 -0
  221. package/dist/i18n/locales/ta.js +106 -0
  222. package/dist/i18n/locales/ta.js.map +1 -0
  223. package/dist/i18n/locales/te.d.ts +6 -0
  224. package/dist/i18n/locales/te.d.ts.map +1 -0
  225. package/dist/i18n/locales/te.js +106 -0
  226. package/dist/i18n/locales/te.js.map +1 -0
  227. package/dist/i18n/locales/th.d.ts +6 -0
  228. package/dist/i18n/locales/th.d.ts.map +1 -0
  229. package/dist/i18n/locales/th.js +106 -0
  230. package/dist/i18n/locales/th.js.map +1 -0
  231. package/dist/i18n/locales/tl.d.ts +6 -0
  232. package/dist/i18n/locales/tl.d.ts.map +1 -0
  233. package/dist/i18n/locales/tl.js +106 -0
  234. package/dist/i18n/locales/tl.js.map +1 -0
  235. package/dist/i18n/locales/tr.d.ts +6 -0
  236. package/dist/i18n/locales/tr.d.ts.map +1 -0
  237. package/dist/i18n/locales/tr.js +106 -0
  238. package/dist/i18n/locales/tr.js.map +1 -0
  239. package/dist/i18n/locales/uk.d.ts +6 -0
  240. package/dist/i18n/locales/uk.d.ts.map +1 -0
  241. package/dist/i18n/locales/uk.js +106 -0
  242. package/dist/i18n/locales/uk.js.map +1 -0
  243. package/dist/i18n/locales/ur.d.ts +6 -0
  244. package/dist/i18n/locales/ur.d.ts.map +1 -0
  245. package/dist/i18n/locales/ur.js +383 -0
  246. package/dist/i18n/locales/ur.js.map +1 -0
  247. package/dist/i18n/locales/vi.d.ts +6 -0
  248. package/dist/i18n/locales/vi.d.ts.map +1 -0
  249. package/dist/i18n/locales/vi.js +106 -0
  250. package/dist/i18n/locales/vi.js.map +1 -0
  251. package/dist/i18n/locales/zh-CN.d.ts +6 -0
  252. package/dist/i18n/locales/zh-CN.d.ts.map +1 -0
  253. package/dist/i18n/locales/zh-CN.js +106 -0
  254. package/dist/i18n/locales/zh-CN.js.map +1 -0
  255. package/dist/i18n/locales/zh-TW.d.ts +6 -0
  256. package/dist/i18n/locales/zh-TW.d.ts.map +1 -0
  257. package/dist/i18n/locales/zh-TW.js +106 -0
  258. package/dist/i18n/locales/zh-TW.js.map +1 -0
  259. package/dist/i18n/types.d.ts +101 -0
  260. package/dist/i18n/types.d.ts.map +1 -0
  261. package/dist/i18n/types.js +65 -0
  262. package/dist/i18n/types.js.map +1 -0
  263. package/dist/index.d.ts +20 -0
  264. package/dist/index.d.ts.map +1 -0
  265. package/dist/index.js +472 -0
  266. package/dist/index.js.map +1 -0
  267. package/dist/server/index.d.ts +39 -0
  268. package/dist/server/index.d.ts.map +1 -0
  269. package/dist/server/index.js +89 -0
  270. package/dist/server/index.js.map +1 -0
  271. package/dist/tools/definitions.d.ts +26 -0
  272. package/dist/tools/definitions.d.ts.map +1 -0
  273. package/dist/tools/definitions.js +785 -0
  274. package/dist/tools/definitions.js.map +1 -0
  275. package/dist/tools/handlers.d.ts +19 -0
  276. package/dist/tools/handlers.d.ts.map +1 -0
  277. package/dist/tools/handlers.js +477 -0
  278. package/dist/tools/handlers.js.map +1 -0
  279. package/dist/tools/index.d.ts +3 -0
  280. package/dist/tools/index.d.ts.map +1 -0
  281. package/dist/tools/index.js +3 -0
  282. package/dist/tools/index.js.map +1 -0
  283. package/dist/types/code-generator.d.ts +97 -0
  284. package/dist/types/code-generator.d.ts.map +1 -0
  285. package/dist/types/code-generator.js +545 -0
  286. package/dist/types/code-generator.js.map +1 -0
  287. package/dist/types/index.d.ts +3 -0
  288. package/dist/types/index.d.ts.map +1 -0
  289. package/dist/types/index.js +3 -0
  290. package/dist/types/index.js.map +1 -0
  291. package/dist/types/schemas.d.ts +707 -0
  292. package/dist/types/schemas.d.ts.map +1 -0
  293. package/dist/types/schemas.js +341 -0
  294. package/dist/types/schemas.js.map +1 -0
  295. package/package.json +81 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Simplified Chinese Translations
3
+ */
4
+ export declare const zhCN: import("../types.js").TranslationKeys;
5
+ export default zhCN;
6
+ //# sourceMappingURL=zh-CN.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/zh-CN.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,IAAI,uCA0Gf,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Simplified Chinese Translations
3
+ */
4
+ import { createBaseTranslation } from './base.js';
5
+ export const zhCN = createBaseTranslation({
6
+ tools: {
7
+ pinepaper_create_item: { name: '创建元素', description: '' },
8
+ pinepaper_modify_item: { name: '修改元素', description: '' },
9
+ pinepaper_delete_item: { name: '删除元素', description: '' },
10
+ pinepaper_add_relation: { name: '添加关系', description: '' },
11
+ pinepaper_remove_relation: { name: '移除关系', description: '' },
12
+ pinepaper_query_relations: { name: '查询关系', description: '' },
13
+ pinepaper_animate: { name: '动画', description: '' },
14
+ pinepaper_keyframe_animate: { name: '关键帧动画', description: '' },
15
+ pinepaper_play_timeline: { name: '播放时间轴', description: '' },
16
+ pinepaper_execute_generator: { name: '执行生成器', description: '' },
17
+ pinepaper_list_generators: { name: '列出生成器', description: '' },
18
+ pinepaper_apply_effect: { name: '应用效果', description: '' },
19
+ pinepaper_get_items: { name: '获取元素', description: '' },
20
+ pinepaper_get_relation_stats: { name: '关系统计', description: '' },
21
+ pinepaper_set_background_color: { name: '设置背景色', description: '' },
22
+ pinepaper_set_canvas_size: { name: '设置画布大小', description: '' },
23
+ pinepaper_export_svg: { name: '导出SVG', description: '' },
24
+ pinepaper_export_training_data: { name: '导出训练数据', description: '' },
25
+ },
26
+ errors: {
27
+ itemNotFound: '未找到元素:{{itemId}}',
28
+ invalidRelation: '无效的关系:{{relationType}}',
29
+ invalidParams: '无效的参数:{{details}}',
30
+ generatorNotFound: '未找到生成器:{{generatorName}}',
31
+ exportFailed: '导出失败:{{reason}}',
32
+ executionError: '执行错误:{{message}}',
33
+ validationError: '验证错误:{{message}}',
34
+ unknownTool: '未知工具:{{toolName}}',
35
+ apiKeyRequired: '需要API密钥',
36
+ apiKeyInvalid: 'API密钥无效',
37
+ apiKeyExpired: 'API密钥已过期',
38
+ rateLimitExceeded: '超出请求限制。请在{{seconds}}秒后重试。',
39
+ },
40
+ success: {
41
+ itemCreated: '在位置({{x}}, {{y}})创建了{{itemType}}',
42
+ itemModified: '已修改元素{{itemId}}',
43
+ itemDeleted: '已删除元素{{itemId}}',
44
+ relationAdded: '已添加{{relationType}}关系:{{sourceId}} → {{targetId}}',
45
+ relationRemoved: '已移除{{sourceId}}和{{targetId}}之间的关系',
46
+ animationApplied: '已将{{animationType}}动画应用于{{itemId}}',
47
+ generatorExecuted: '已执行{{generatorName}}生成器',
48
+ effectApplied: '已将{{effectType}}效果应用于{{itemId}}',
49
+ backgroundSet: '背景色已设置为{{color}}',
50
+ canvasSizeSet: '画布大小已设置为{{width}}×{{height}}',
51
+ exported: '{{format}}导出成功',
52
+ },
53
+ itemTypes: {
54
+ text: '文本',
55
+ circle: '圆形',
56
+ star: '星形',
57
+ rectangle: '矩形',
58
+ triangle: '三角形',
59
+ polygon: '多边形',
60
+ ellipse: '椭圆',
61
+ path: '路径',
62
+ line: '线条',
63
+ arc: '弧形',
64
+ },
65
+ relationTypes: {
66
+ orbits: '环绕',
67
+ follows: '跟随',
68
+ attached_to: '附着于',
69
+ maintains_distance: '保持距离',
70
+ points_at: '指向',
71
+ mirrors: '镜像',
72
+ parallax: '视差',
73
+ bounds_to: '限制于',
74
+ },
75
+ animationTypes: {
76
+ pulse: '脉冲',
77
+ rotate: '旋转',
78
+ bounce: '弹跳',
79
+ fade: '淡入淡出',
80
+ wobble: '摇摆',
81
+ slide: '滑动',
82
+ typewriter: '打字机',
83
+ },
84
+ generators: {
85
+ drawSunburst: '太阳光芒',
86
+ drawSunsetScene: '日落场景',
87
+ drawGrid: '网格',
88
+ drawStackedCircles: '堆叠圆形',
89
+ drawCircuit: '电路板',
90
+ drawWaves: '波浪',
91
+ drawPattern: '图案',
92
+ },
93
+ common: {
94
+ at: '在',
95
+ with: '与',
96
+ to: '到',
97
+ from: '从',
98
+ position: '位置',
99
+ radius: '半径',
100
+ color: '颜色',
101
+ speed: '速度',
102
+ duration: '持续时间',
103
+ },
104
+ });
105
+ export default zhCN;
106
+ //# sourceMappingURL=zh-CN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-CN.js","sourceRoot":"","sources":["../../../src/i18n/locales/zh-CN.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,MAAM,CAAC,MAAM,IAAI,GAAG,qBAAqB,CAAC;IACxC,KAAK,EAAE;QACL,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACxD,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACxD,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACxD,sBAAsB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACzD,yBAAyB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QAC5D,yBAAyB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QAC5D,iBAAiB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAClD,0BAA0B,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC9D,uBAAuB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC3D,2BAA2B,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC/D,yBAAyB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC7D,sBAAsB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,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V,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,IAAI;KACV;IAED,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,KAAK;QAClB,kBAAkB,EAAE,MAAM;QAC1B,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,KAAK;KACjB;IAED,cAAc,EAAE;QACd,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,KAAK;KAClB;IAED,UAAU,EAAE;QACV,YAAY,EAAE,MAAM;QACpB,eAAe,EAAE,MAAM;QACvB,QAAQ,EAAE,IAAI;QACd,kBAAkB,EAAE,MAAM;QAC1B,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;KAClB;IAED,MAAM,EAAE;QACN,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,GAAG;QACT,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Traditional Chinese Translations
3
+ */
4
+ export declare const zhTW: import("../types.js").TranslationKeys;
5
+ export default zhTW;
6
+ //# sourceMappingURL=zh-TW.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/zh-TW.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,IAAI,uCA0Gf,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Traditional Chinese Translations
3
+ */
4
+ import { createBaseTranslation } from './base.js';
5
+ export const zhTW = createBaseTranslation({
6
+ tools: {
7
+ pinepaper_create_item: { name: '建立元素', description: '' },
8
+ pinepaper_modify_item: { name: '修改元素', description: '' },
9
+ pinepaper_delete_item: { name: '刪除元素', description: '' },
10
+ pinepaper_add_relation: { name: '新增關係', description: '' },
11
+ pinepaper_remove_relation: { name: '移除關係', description: '' },
12
+ pinepaper_query_relations: { name: '查詢關係', description: '' },
13
+ pinepaper_animate: { name: '動畫', description: '' },
14
+ pinepaper_keyframe_animate: { name: '關鍵影格動畫', description: '' },
15
+ pinepaper_play_timeline: { name: '播放時間軸', description: '' },
16
+ pinepaper_execute_generator: { name: '執行產生器', description: '' },
17
+ pinepaper_list_generators: { name: '列出產生器', description: '' },
18
+ pinepaper_apply_effect: { name: '套用效果', description: '' },
19
+ pinepaper_get_items: { name: '取得元素', description: '' },
20
+ pinepaper_get_relation_stats: { name: '關係統計', description: '' },
21
+ pinepaper_set_background_color: { name: '設定背景色', description: '' },
22
+ pinepaper_set_canvas_size: { name: '設定畫布大小', description: '' },
23
+ pinepaper_export_svg: { name: '匯出SVG', description: '' },
24
+ pinepaper_export_training_data: { name: '匯出訓練資料', description: '' },
25
+ },
26
+ errors: {
27
+ itemNotFound: '找不到元素:{{itemId}}',
28
+ invalidRelation: '無效的關係:{{relationType}}',
29
+ invalidParams: '無效的參數:{{details}}',
30
+ generatorNotFound: '找不到產生器:{{generatorName}}',
31
+ exportFailed: '匯出失敗:{{reason}}',
32
+ executionError: '執行錯誤:{{message}}',
33
+ validationError: '驗證錯誤:{{message}}',
34
+ unknownTool: '未知工具:{{toolName}}',
35
+ apiKeyRequired: '需要API金鑰',
36
+ apiKeyInvalid: 'API金鑰無效',
37
+ apiKeyExpired: 'API金鑰已過期',
38
+ rateLimitExceeded: '超出請求限制。請在{{seconds}}秒後重試。',
39
+ },
40
+ success: {
41
+ itemCreated: '在位置({{x}}, {{y}})建立了{{itemType}}',
42
+ itemModified: '已修改元素{{itemId}}',
43
+ itemDeleted: '已刪除元素{{itemId}}',
44
+ relationAdded: '已新增{{relationType}}關係:{{sourceId}} → {{targetId}}',
45
+ relationRemoved: '已移除{{sourceId}}和{{targetId}}之間的關係',
46
+ animationApplied: '已將{{animationType}}動畫套用於{{itemId}}',
47
+ generatorExecuted: '已執行{{generatorName}}產生器',
48
+ effectApplied: '已將{{effectType}}效果套用於{{itemId}}',
49
+ backgroundSet: '背景色已設定為{{color}}',
50
+ canvasSizeSet: '畫布大小已設定為{{width}}×{{height}}',
51
+ exported: '{{format}}匯出成功',
52
+ },
53
+ itemTypes: {
54
+ text: '文字',
55
+ circle: '圓形',
56
+ star: '星形',
57
+ rectangle: '矩形',
58
+ triangle: '三角形',
59
+ polygon: '多邊形',
60
+ ellipse: '橢圓',
61
+ path: '路徑',
62
+ line: '線條',
63
+ arc: '弧形',
64
+ },
65
+ relationTypes: {
66
+ orbits: '環繞',
67
+ follows: '跟隨',
68
+ attached_to: '附著於',
69
+ maintains_distance: '保持距離',
70
+ points_at: '指向',
71
+ mirrors: '鏡像',
72
+ parallax: '視差',
73
+ bounds_to: '限制於',
74
+ },
75
+ animationTypes: {
76
+ pulse: '脈衝',
77
+ rotate: '旋轉',
78
+ bounce: '彈跳',
79
+ fade: '淡入淡出',
80
+ wobble: '搖擺',
81
+ slide: '滑動',
82
+ typewriter: '打字機',
83
+ },
84
+ generators: {
85
+ drawSunburst: '太陽光芒',
86
+ drawSunsetScene: '日落場景',
87
+ drawGrid: '網格',
88
+ drawStackedCircles: '堆疊圓形',
89
+ drawCircuit: '電路板',
90
+ drawWaves: '波浪',
91
+ drawPattern: '圖案',
92
+ },
93
+ common: {
94
+ at: '在',
95
+ with: '與',
96
+ to: '到',
97
+ from: '從',
98
+ position: '位置',
99
+ radius: '半徑',
100
+ color: '顏色',
101
+ speed: '速度',
102
+ duration: '持續時間',
103
+ },
104
+ });
105
+ export default zhTW;
106
+ //# sourceMappingURL=zh-TW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-TW.js","sourceRoot":"","sources":["../../../src/i18n/locales/zh-TW.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,MAAM,CAAC,MAAM,IAAI,GAAG,qBAAqB,CAAC;IACxC,KAAK,EAAE;QACL,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACxD,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACxD,qBAAqB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACxD,sBAAsB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QACzD,yBAAyB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QAC5D,yBAAyB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE;QAC5D,iBAAiB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAClD,0BAA0B,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;QAC/D,uBAAuB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC3D,2BAA2B,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC/D,yBAAyB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;QAC7D,sBAAsB,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AM,EAAE,IAAI;QACZ,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,IAAI;KACV;IAED,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,KAAK;QAClB,kBAAkB,EAAE,MAAM;QAC1B,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,KAAK;KACjB;IAED,cAAc,EAAE;QACd,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,KAAK;KAClB;IAED,UAAU,EAAE;QACV,YAAY,EAAE,MAAM;QACpB,eAAe,EAAE,MAAM;QACvB,QAAQ,EAAE,IAAI;QACd,kBAAkB,EAAE,MAAM;QAC1B,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;KAClB;IAED,MAAM,EAAE;QACN,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,GAAG;QACT,EAAE,EAAE,GAAG;QACP,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,101 @@
1
+ /**
2
+ * i18n Type Definitions
3
+ *
4
+ * Supports all 41 locales from PinePaper Studio
5
+ */
6
+ export type SupportedLocale = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'pt-BR' | 'nl' | 'pl' | 'ru' | 'uk' | 'zh-CN' | 'zh-TW' | 'ja' | 'ko' | 'th' | 'vi' | 'id' | 'ms' | 'tl' | 'hi' | 'bn' | 'ta' | 'te' | 'mr' | 'gu' | 'kn' | 'ml' | 'pa' | 'ar' | 'he' | 'fa' | 'tr' | 'sv' | 'da' | 'no' | 'fi' | 'cs' | 'el' | 'hu' | 'ro';
7
+ export declare const DEFAULT_LOCALE: SupportedLocale;
8
+ export declare const SUPPORTED_LOCALES: SupportedLocale[];
9
+ export declare const RTL_LOCALES: SupportedLocale[];
10
+ export declare const LOCALE_NAMES: Record<SupportedLocale, string>;
11
+ export interface TranslationKeys {
12
+ tools: {
13
+ [toolName: string]: {
14
+ name: string;
15
+ description: string;
16
+ params?: {
17
+ [paramName: string]: string;
18
+ };
19
+ };
20
+ };
21
+ errors: {
22
+ itemNotFound: string;
23
+ invalidRelation: string;
24
+ invalidParams: string;
25
+ generatorNotFound: string;
26
+ exportFailed: string;
27
+ executionError: string;
28
+ validationError: string;
29
+ unknownTool: string;
30
+ apiKeyRequired: string;
31
+ apiKeyInvalid: string;
32
+ apiKeyExpired: string;
33
+ rateLimitExceeded: string;
34
+ };
35
+ success: {
36
+ itemCreated: string;
37
+ itemModified: string;
38
+ itemDeleted: string;
39
+ relationAdded: string;
40
+ relationRemoved: string;
41
+ animationApplied: string;
42
+ generatorExecuted: string;
43
+ effectApplied: string;
44
+ backgroundSet: string;
45
+ canvasSizeSet: string;
46
+ exported: string;
47
+ };
48
+ itemTypes: {
49
+ text: string;
50
+ circle: string;
51
+ star: string;
52
+ rectangle: string;
53
+ triangle: string;
54
+ polygon: string;
55
+ ellipse: string;
56
+ path: string;
57
+ line: string;
58
+ arc: string;
59
+ };
60
+ relationTypes: {
61
+ orbits: string;
62
+ follows: string;
63
+ attached_to: string;
64
+ maintains_distance: string;
65
+ points_at: string;
66
+ mirrors: string;
67
+ parallax: string;
68
+ bounds_to: string;
69
+ };
70
+ animationTypes: {
71
+ pulse: string;
72
+ rotate: string;
73
+ bounce: string;
74
+ fade: string;
75
+ wobble: string;
76
+ slide: string;
77
+ typewriter: string;
78
+ };
79
+ generators: {
80
+ drawSunburst: string;
81
+ drawSunsetScene: string;
82
+ drawGrid: string;
83
+ drawStackedCircles: string;
84
+ drawCircuit: string;
85
+ drawWaves: string;
86
+ drawPattern: string;
87
+ };
88
+ common: {
89
+ at: string;
90
+ with: string;
91
+ to: string;
92
+ from: string;
93
+ position: string;
94
+ radius: string;
95
+ color: string;
96
+ speed: string;
97
+ duration: string;
98
+ };
99
+ }
100
+ export type TranslationFunction = (key: string, params?: Record<string, string | number>) => string;
101
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,eAAe,GAEvB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GAGJ,OAAO,GACP,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GAGJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GAGJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GAGJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,eAAO,MAAM,cAAc,EAAE,eAAsB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAW9C,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,eAAe,EAAuB,CAAC;AAGjE,eAAO,MAAM,YAAY,EAAE,MAAM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EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * i18n Type Definitions
3
+ *
4
+ * Supports all 41 locales from PinePaper Studio
5
+ */
6
+ export const DEFAULT_LOCALE = 'en';
7
+ export const SUPPORTED_LOCALES = [
8
+ // Major Languages
9
+ 'en', 'es', 'fr', 'de', 'it', 'pt', 'pt-BR', 'nl', 'pl', 'ru', 'uk',
10
+ // Asian Languages
11
+ 'zh-CN', 'zh-TW', 'ja', 'ko', 'th', 'vi', 'id', 'ms', 'tl',
12
+ // South Asian Languages
13
+ 'hi', 'bn', 'ta', 'te', 'mr', 'gu', 'kn', 'ml', 'pa',
14
+ // Middle Eastern Languages
15
+ 'ar', 'he', 'fa', 'tr',
16
+ // European Languages
17
+ 'sv', 'da', 'no', 'fi', 'cs', 'el', 'hu', 'ro'
18
+ ];
19
+ // RTL languages
20
+ export const RTL_LOCALES = ['ar', 'he', 'fa'];
21
+ // Locale display names (in their native script)
22
+ export const LOCALE_NAMES = {
23
+ 'en': 'English',
24
+ 'es': 'Español',
25
+ 'fr': 'Français',
26
+ 'de': 'Deutsch',
27
+ 'it': 'Italiano',
28
+ 'pt': 'Português',
29
+ 'pt-BR': 'Português (Brasil)',
30
+ 'nl': 'Nederlands',
31
+ 'pl': 'Polski',
32
+ 'ru': 'Русский',
33
+ 'uk': 'Українська',
34
+ 'zh-CN': '简体中文',
35
+ 'zh-TW': '繁體中文',
36
+ 'ja': '日本語',
37
+ 'ko': '한국어',
38
+ 'th': 'ไทย',
39
+ 'vi': 'Tiếng Việt',
40
+ 'id': 'Bahasa Indonesia',
41
+ 'ms': 'Bahasa Melayu',
42
+ 'tl': 'Filipino',
43
+ 'hi': 'हिन्दी',
44
+ 'bn': 'বাংলা',
45
+ 'ta': 'தமிழ்',
46
+ 'te': 'తెలుగు',
47
+ 'mr': 'मराठी',
48
+ 'gu': 'ગુજરાતી',
49
+ 'kn': 'ಕನ್ನಡ',
50
+ 'ml': 'മലയാളം',
51
+ 'pa': 'ਪੰਜਾਬੀ',
52
+ 'ar': 'العربية',
53
+ 'he': 'עברית',
54
+ 'fa': 'فارسی',
55
+ 'tr': 'Türkçe',
56
+ 'sv': 'Svenska',
57
+ 'da': 'Dansk',
58
+ 'no': 'Norsk',
59
+ 'fi': 'Suomi',
60
+ 'cs': 'Čeština',
61
+ 'el': 'Ελληνικά',
62
+ 'hu': 'Magyar',
63
+ 'ro': 'Română',
64
+ };
65
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/i18n/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAsDH,MAAM,CAAC,MAAM,cAAc,GAAoB,IAAI,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,kBAAkB;IAClB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IACnE,kBAAkB;IAClB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IAC1D,wBAAwB;IACxB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IACpD,2BAA2B;IAC3B,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IACtB,qBAAqB;IACrB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CAC/C,CAAC;AAEF,gBAAgB;AAChB,MAAM,CAAC,MAAM,WAAW,GAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEjE,gDAAgD;AAChD,MAAM,CAAC,MAAM,YAAY,GAAoC;IAC3D,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,oBAAoB;IAC7B,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;CACf,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * PinePaper MCP Server
3
+ *
4
+ * Main server implementation that exposes PinePaper tools via the Model Context Protocol.
5
+ *
6
+ * This server can operate in two modes:
7
+ * 1. Local (stdio): For Claude Desktop and local AI agents
8
+ * 2. Cloud (SSE/HTTP): For cloud-hosted premium features (future)
9
+ *
10
+ * Supports i18n for 41 locales matching PinePaper Studio.
11
+ */
12
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
13
+ import { SupportedLocale } from './i18n/index.js';
14
+ export interface ServerOptions {
15
+ locale?: SupportedLocale;
16
+ /** Enable browser execution mode - executes code in real browser via Puppeteer */
17
+ browserMode?: boolean;
18
+ }
19
+ export declare function createServer(options?: ServerOptions): Promise<Server>;
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAWnE,OAAO,EAGL,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAqTzB,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAMD,wBAAsB,YAAY,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoE/E"}