foliko 1.0.86 → 1.1.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 (104) hide show
  1. package/.agent/data/default.json +3 -4310
  2. package/.agent/data/plugins-state.json +34 -1
  3. package/.agent/mcp_config.json +0 -1
  4. package/.agent/memory/core.md +1 -0
  5. package/.agent/memory/project/mnn93ogy-ypjn27.md +9 -0
  6. package/.agent/memory/project/mnn98fqy-5nhc1u.md +25 -0
  7. package/.agent/memory/user/mnm67t9m-x8rekk.md +9 -0
  8. package/.agent/memory/user/mnn5mmqh-w6aktx.md +11 -0
  9. package/.agent/memory/user/mnnbfhhn-dk1bd1.md +22 -0
  10. package/.agent/plugins/__pycache__/file_writer.cpython-312.pyc +0 -0
  11. package/.agent/plugins/marknative/index.js +2 -7
  12. package/.agent/plugins/poster-plugin/README.md +304 -0
  13. package/.agent/plugins/poster-plugin/fonts/PatuaOne-Regular.ttf +0 -0
  14. package/.agent/plugins/poster-plugin/fonts//345/276/256/350/275/257/351/233/205/351/273/221.ttf +0 -0
  15. package/.agent/plugins/poster-plugin/fonts//345/276/256/350/275/257/351/233/205/351/273/221/347/262/227/344/275/223.ttf +0 -0
  16. package/.agent/plugins/poster-plugin/index.js +13 -0
  17. package/.agent/plugins/poster-plugin/package.json +28 -0
  18. package/.agent/plugins/poster-plugin/src/canvas.js +161 -0
  19. package/.agent/plugins/poster-plugin/src/components/arrow.js +84 -0
  20. package/.agent/plugins/poster-plugin/src/components/avatar.js +71 -0
  21. package/.agent/plugins/poster-plugin/src/components/badge.js +85 -0
  22. package/.agent/plugins/poster-plugin/src/components/card.js +88 -0
  23. package/.agent/plugins/poster-plugin/src/components/chart.js +127 -0
  24. package/.agent/plugins/poster-plugin/src/components/chip.js +88 -0
  25. package/.agent/plugins/poster-plugin/src/components/columns.js +107 -0
  26. package/.agent/plugins/poster-plugin/src/components/cta.js +85 -0
  27. package/.agent/plugins/poster-plugin/src/components/divider.js +55 -0
  28. package/.agent/plugins/poster-plugin/src/components/feature.js +85 -0
  29. package/.agent/plugins/poster-plugin/src/components/featureGrid.js +112 -0
  30. package/.agent/plugins/poster-plugin/src/components/grid.js +118 -0
  31. package/.agent/plugins/poster-plugin/src/components/imageFrame.js +155 -0
  32. package/.agent/plugins/poster-plugin/src/components/index.js +62 -0
  33. package/.agent/plugins/poster-plugin/src/components/listItem.js +146 -0
  34. package/.agent/plugins/poster-plugin/src/components/notification.js +123 -0
  35. package/.agent/plugins/poster-plugin/src/components/progress.js +79 -0
  36. package/.agent/plugins/poster-plugin/src/components/progressCircle.js +117 -0
  37. package/.agent/plugins/poster-plugin/src/components/quote.js +97 -0
  38. package/.agent/plugins/poster-plugin/src/components/rating.js +85 -0
  39. package/.agent/plugins/poster-plugin/src/components/star.js +70 -0
  40. package/.agent/plugins/poster-plugin/src/components/statCard.js +105 -0
  41. package/.agent/plugins/poster-plugin/src/components/stepper.js +118 -0
  42. package/.agent/plugins/poster-plugin/src/components/table.js +159 -0
  43. package/.agent/plugins/poster-plugin/src/components/tagCloud.js +78 -0
  44. package/.agent/plugins/poster-plugin/src/components/timeline.js +105 -0
  45. package/.agent/plugins/poster-plugin/src/components/watermark.js +52 -0
  46. package/.agent/plugins/poster-plugin/src/composer.js +1904 -0
  47. package/.agent/plugins/poster-plugin/src/elements/artText.js +60 -0
  48. package/.agent/plugins/poster-plugin/src/elements/background.js +52 -0
  49. package/.agent/plugins/poster-plugin/src/elements/circle.js +31 -0
  50. package/.agent/plugins/poster-plugin/src/elements/image.js +71 -0
  51. package/.agent/plugins/poster-plugin/src/elements/index.js +26 -0
  52. package/.agent/plugins/poster-plugin/src/elements/line.js +23 -0
  53. package/.agent/plugins/poster-plugin/src/elements/polygon.js +32 -0
  54. package/.agent/plugins/poster-plugin/src/elements/rectangle.js +32 -0
  55. package/.agent/plugins/poster-plugin/src/elements/svg.js +92 -0
  56. package/.agent/plugins/poster-plugin/src/elements/text.js +38 -0
  57. package/.agent/plugins/poster-plugin/src/fonts.js +118 -0
  58. package/.agent/plugins/poster-plugin/src/index.js +1659 -0
  59. package/.agent/plugins/poster-plugin/src/presets.js +36 -0
  60. package/.agent/plugins/poster-plugin/src/templates/business.js +60 -0
  61. package/.agent/plugins/poster-plugin/src/templates/gradient.js +64 -0
  62. package/.agent/plugins/poster-plugin/src/templates/index.js +43 -0
  63. package/.agent/plugins/poster-plugin/src/templates/modern.js +69 -0
  64. package/.agent/plugins/poster-plugin/src/templates/simple.js +58 -0
  65. package/.agent/plugins/poster-plugin/src/templates/social.js +62 -0
  66. package/.agent/plugins/poster-plugin/src/templates/tech.js +84 -0
  67. package/.agent/sessions/cli_default.json +24265 -0
  68. package/.agent/weixin.json +6 -0
  69. package/.claude/settings.local.json +176 -171
  70. package/CLAUDE.md +144 -108
  71. package/docs/CONTEXT_DESIGN.md +1596 -0
  72. package/examples/test-concurrent-chat.js +60 -0
  73. package/examples/test-long-chat.js +77 -0
  74. package/examples/test-session-chat.js +93 -0
  75. package/output/beef-love-poster.png +0 -0
  76. package/package.json +2 -2
  77. package/plugins/default-plugins.js +2 -1
  78. package/plugins/extension-executor-plugin.js +11 -0
  79. package/plugins/memory-plugin.js +984 -0
  80. package/plugins/session-plugin.js +78 -1
  81. package/plugins/weixin-plugin.js +24 -22
  82. package/skills/poster-guide/SKILL.md +743 -0
  83. package/skills/python-plugin-dev/SKILL.md +238 -238
  84. package/skills/skill-guide/SKILL.md +130 -108
  85. package/src/capabilities/skill-manager.js +99 -0
  86. package/src/core/agent-chat.js +627 -180
  87. package/src/core/agent-context.js +188 -0
  88. package/src/core/agent.js +9 -63
  89. package/src/core/context-manager.js +283 -0
  90. package/src/core/framework.js +264 -3
  91. package/src/core/plugin-manager.js +79 -2
  92. package/src/core/request-context.js +98 -0
  93. package/src/core/session-context.js +341 -0
  94. package/src/core/session-storage.js +274 -0
  95. package/src/executors/mcp-executor.js +2 -2
  96. package/src/utils/index.js +239 -67
  97. package/src/utils/plugin-helpers.js +17 -0
  98. package//346/265/267/346/212/245/346/217/222/344/273/266.md +621 -0
  99. package/.agent/plugins/__pycache__/test_plugin.cpython-312.pyc +0 -0
  100. package/.agent/plugins/temp-repo/LICENSE +0 -201
  101. package/.agent/plugins/temp-repo/puppeteer-plugin/README.md +0 -147
  102. package/.agent/plugins/temp-repo/puppeteer-plugin/index.js +0 -1418
  103. package/.agent/plugins/temp-repo/puppeteer-plugin/package.json +0 -9
  104. package/.agent/plugins/test_plugin.py +0 -304
@@ -0,0 +1,743 @@
1
+ ---
2
+ name: poster-guide
3
+ description: 海报设计技能 - 收集优秀设计风格、配色方案和创意灵感,当用户询问"海报制作"、"卡片制作"、"配图制作"时立即调用。
4
+ allowed-tools: create_poster_canvas, add_poster_background, add_poster_rectangle, add_poster_circle, add_poster_line, add_poster_polygon, add_poster_text, add_poster_art_text, add_poster_image, add_poster_svg, add_poster_image_frame, add_poster_columns, add_poster_grid, add_poster_card, add_poster_badge, add_poster_cta, add_poster_feature, add_poster_feature_grid, add_poster_divider, add_poster_avatar, add_poster_progress, add_poster_rating, add_poster_quote, add_poster_stat_card, add_poster_tag_cloud, add_poster_stepper, add_poster_timeline, add_poster_list_item, add_poster_notification, add_poster_star, add_poster_arrow, add_poster_progress_circle, add_poster_chip, add_poster_chart, add_poster_watermark, add_poster_table, compose_poster, generate_poster, export_poster_canvas, export_poster_svg, list_poster_components, list_poster_templates
5
+ ---
6
+
7
+ # 海报设计技能指南
8
+
9
+ > 本技能收集了来自日本优秀设计网站(muuuuu.org、ics.media 等)和国际设计平台(Behance、Dribbble,Pinterest 等)的流行趋势和配色方案。
10
+
11
+ ---
12
+
13
+ ## 📐 设计尺寸规范
14
+
15
+ ### 社交媒体
16
+
17
+ | 尺寸 | 用途 |
18
+ | --------- | ----------------------- |
19
+ | 1080×1080 | Instagram 正方形 |
20
+ | 1080×1920 | Instagram Story / Reels |
21
+ | 1200×630 | Facebook 封面 |
22
+ | 1500×500 | Twitter 封面 |
23
+ | 1200×627 | LinkedIn 封面 |
24
+ | 2560×1440 | YouTube 封面 |
25
+
26
+ ### 营销物料
27
+
28
+ | 尺寸 | 用途 |
29
+ | --------- | ---------------- |
30
+ | 1920×1080 | 16:9 宣传海报 |
31
+ | 1080×1920 | 9:16 竖版海报 |
32
+ | 2480×3508 | A4 海报 (300dpi) |
33
+ | 2000×2000 | 方形海报 |
34
+
35
+ ### Banner 广告
36
+
37
+ | 尺寸 | 用途 |
38
+ | -------- | --------------- |
39
+ | 1920×500 | 网站全屏 Banner |
40
+ | 1200×400 | 电商 Banner |
41
+ | 750×300 | 移动端 Banner |
42
+ | 728×90 | PC 端横幅 |
43
+
44
+ ---
45
+
46
+ ## 🧩 组件速查表(共 35 个组件)
47
+
48
+ ### 基础元素 (10)
49
+
50
+ | 组件 | 工具名 | 用途 |
51
+ | ------ | ------------------------ | ---------------- |
52
+ | 背景 | `add_poster_background` | 纯色/渐变背景 |
53
+ | 矩形 | `add_poster_rectangle` | 矩形、圆角矩形 |
54
+ | 圆形 | `add_poster_circle` | 圆形、椭圆 |
55
+ | 线条 | `add_poster_line` | 直线、虚线 |
56
+ | 多边形 | `add_poster_polygon` | 三角形、六边形等 |
57
+ | 文字 | `add_poster_text` | 普通文字 |
58
+ | 艺术字 | `add_poster_art_text` | 渐变文字、描边 |
59
+ | 图片 | `add_poster_image` | 插入图片 |
60
+ | SVG | `add_poster_svg` | SVG 矢量图 |
61
+ | 图片框 | `add_poster_image_frame` | 带装饰边框的图片 |
62
+
63
+ ### 布局组件 (2)
64
+
65
+ | 组件 | 工具名 | 用途 |
66
+ | ---- | -------------------- | ------------------ |
67
+ | 分栏 | `add_poster_columns` | 左右分栏、多栏布局 |
68
+ | 网格 | `add_poster_grid` | 任意行列网格 |
69
+
70
+ ### 装饰组件 (7) ⭐ 新增
71
+
72
+ | 组件 | 工具名 | 用途 |
73
+ | -------- | ---------------------------- | ---------------- |
74
+ | 星形 | `add_poster_star` | 五角星、六角星等 |
75
+ | 箭头 | `add_poster_arrow` | 指示箭头 |
76
+ | 环形进度 | `add_poster_progress_circle` | 圆环进度条 |
77
+ | 标签 | `add_poster_chip` | 小型信息标签 |
78
+ | 图表 | `add_poster_chart` | 柱状图、饼图 |
79
+ | 水印 | `add_poster_watermark` | 倾斜水印 |
80
+ | 表格 | `add_poster_table` | 数据表格 |
81
+
82
+ ### 高级组件 (16)
83
+
84
+ | 组件 | 工具名 | 用途 |
85
+ | -------- | ------------------------- | ------------ |
86
+ | 卡片 | `add_poster_card` | 产品卡片 |
87
+ | 徽章 | `add_poster_badge` | 标签徽章 |
88
+ | 按钮 | `add_poster_cta` | 行动号召按钮 |
89
+ | 特性 | `add_poster_feature` | 功能特性展示 |
90
+ | 特性网格 | `add_poster_feature_grid` | 特性网格布局 |
91
+ | 分隔线 | `add_poster_divider` | 水平分隔线 |
92
+ | 头像 | `add_poster_avatar` | 用户头像 |
93
+ | 进度条 | `add_poster_progress` | 线性进度条 |
94
+ | 评分 | `add_poster_rating` | 星级评分 |
95
+ | 引用 | `add_poster_quote` | 引用块 |
96
+ | 统计卡 | `add_poster_stat_card` | 数据统计卡片 |
97
+ | 标签云 | `add_poster_tag_cloud` | 标签集合 |
98
+ | 步骤条 | `add_poster_stepper` | 步骤指示器 |
99
+ | 时间线 | `add_poster_timeline` | 时间轴 |
100
+ | 列表项 | `add_poster_list_item` | 列表条目 |
101
+ | 通知 | `add_poster_notification` | 提示消息 |
102
+
103
+ ---
104
+
105
+ ## 🆕 新增组件详解
106
+
107
+ ### 星形 (star) ⭐
108
+
109
+ ```javascript
110
+ add_poster_star({
111
+ cx: 200, // 中心X坐标
112
+ cy: 200, // 中心Y坐标
113
+ points: 5, // 星形点数,默认5
114
+ outerRadius: 60, // 外半径
115
+ innerRadius: 25, // 内半径(可选,默认外半径*0.4)
116
+ fill: '#fbbf24', // 填充颜色
117
+ stroke: '#000000', // 边框颜色
118
+ strokeWidth: 2, // 边框宽度
119
+ opacity: 1, // 透明度
120
+ rotation: 0, // 旋转角度
121
+ });
122
+ ```
123
+
124
+ ### 箭头 (arrow) ⭐
125
+
126
+ ```javascript
127
+ add_poster_arrow({
128
+ x1: 100, // 起点X
129
+ y1: 200, // 起点Y
130
+ x2: 300, // 终点X
131
+ y2: 200, // 终点Y
132
+ color: '#3b82f6', // 箭头颜色
133
+ strokeWidth: 3, // 线宽
134
+ headSize: 15, // 箭头头部大小
135
+ style: 'solid', // solid(实线) / dashed(虚线)
136
+ direction: 'end', // end(尾部) / start(头部) / both(双向)
137
+ });
138
+ ```
139
+
140
+ ### 环形进度条 (progressCircle) ⭐
141
+
142
+ ```javascript
143
+ add_poster_progress_circle({
144
+ cx: 200, // 圆心X坐标
145
+ cy: 200, // 圆心Y坐标
146
+ radius: 60, // 圆环半径
147
+ value: 75, // 进度值 0-100
148
+ strokeWidth: 12, // 环宽度
149
+ trackColor: '#e5e7eb', // 轨道颜色
150
+ fillColor: '#3b82f6', // 进度颜色
151
+ backgroundColor: '#ffffff', // 背景填充色
152
+ showLabel: true, // 显示百分比标签
153
+ labelColor: '#3b82f6', // 标签颜色
154
+ });
155
+ ```
156
+
157
+ ### 标签 (chip) ⭐
158
+
159
+ ```javascript
160
+ add_poster_chip({
161
+ x: 200, // X坐标(居中)
162
+ y: 150, // Y坐标
163
+ text: 'NEW', // 标签文字
164
+ background: '#ef4444', // 背景色
165
+ color: '#ffffff', // 文字颜色
166
+ borderColor: '#dc2626', // 边框颜色
167
+ fontSize: 14, // 字体大小
168
+ padding: 12, // 内边距
169
+ radius: 16, // 圆角
170
+ icon: '⭐', // 前置图标(可选)
171
+ });
172
+ ```
173
+
174
+ ### 图表 (chart) ⭐
175
+
176
+ ```javascript
177
+ // 柱状图
178
+ add_poster_chart({
179
+ type: 'bar', // 类型:bar / pie
180
+ x: 100,
181
+ y: 300,
182
+ width: 500,
183
+ height: 250,
184
+ data: [
185
+ { label: '一月', value: 120, color: '#3b82f6' },
186
+ { label: '二月', value: 90, color: '#10b981' },
187
+ { label: '三月', value: 150, color: '#f59e0b' },
188
+ { label: '四月', value: 110, color: '#ef4444' },
189
+ ],
190
+ showLabels: true, // 显示标签
191
+ showValues: true, // 显示数值
192
+ });
193
+
194
+ // 饼图
195
+ add_poster_chart({
196
+ type: 'pie',
197
+ x: 650,
198
+ y: 300,
199
+ width: 250,
200
+ height: 250,
201
+ data: [
202
+ { label: '桌面端', value: 45, color: '#3b82f6' },
203
+ { label: '移动端', value: 35, color: '#10b981' },
204
+ { label: '平板', value: 20, color: '#f59e0b' },
205
+ ],
206
+ showLabels: true,
207
+ });
208
+ ```
209
+
210
+ ### 水印 (watermark) ⭐
211
+
212
+ ```javascript
213
+ add_poster_watermark({
214
+ text: 'VB-Agent', // 水印文字
215
+ cx: 960, // 中心X坐标
216
+ cy: 540, // 中心Y坐标
217
+ color: 'rgba(200,200,200,0.3)', // 水印颜色
218
+ fontSize: 120, // 字体大小
219
+ fontFamily: 'sans-serif',
220
+ opacity: 0.3, // 透明度
221
+ rotation: -30, // 旋转角度
222
+ align: 'center', // 对齐方式
223
+ });
224
+ ```
225
+
226
+ ### 表格 (table) ⭐
227
+
228
+ ```javascript
229
+ add_poster_table({
230
+ x: 100,
231
+ y: 400,
232
+ width: 800,
233
+ columns: [
234
+ { title: '功能', width: 250, align: 'left' },
235
+ { title: '状态', width: 200 },
236
+ { title: '价格', width: 150 },
237
+ ],
238
+ rows: [
239
+ ['智能对话', '可用', '免费'],
240
+ ['图片生成', '可用', '$29'],
241
+ ['代码助手', 'Beta', '免费'],
242
+ ],
243
+ rowHeight: 45,
244
+ headerBg: '#1e293b', // 表头背景
245
+ headerColor: '#ffffff', // 表头文字色
246
+ borderColor: '#e0e0e0',
247
+ fontSize: 14,
248
+ striped: true, // 斑马纹
249
+ });
250
+ ```
251
+
252
+ ### 分栏布局 (columns) ⭐
253
+
254
+ ```javascript
255
+ add_poster_columns({
256
+ x: 100,
257
+ y: 100,
258
+ width: 1720,
259
+ height: 400,
260
+ columns: 3, // 列数,默认2
261
+ gap: 30, // 列间距
262
+ background: '#fafafa',
263
+ borderColor: '#e0e0e0',
264
+ radius: 8,
265
+ align: 'top', // top / center / bottom
266
+ });
267
+ ```
268
+
269
+ ### 网格布局 (grid) ⭐
270
+
271
+ ```javascript
272
+ add_poster_grid({
273
+ x: 100,
274
+ y: 550,
275
+ width: 1720,
276
+ height: 400,
277
+ columns: 4, // 列数,默认3
278
+ rows: 2, // 行数,默认2
279
+ gapX: 20, // 水平间距
280
+ gapY: 20, // 垂直间距
281
+ background: '#fafafa',
282
+ borderColor: '#d0d0d0',
283
+ radius: 0,
284
+ direction: 'row', // row(行优先) / column(列优先)
285
+ });
286
+ ```
287
+
288
+ ### 图片框 (imageFrame) ⭐
289
+
290
+ ```javascript
291
+ add_poster_image_frame({
292
+ src: 'image.png', // 图片路径或URL
293
+ x: 100,
294
+ y: 100,
295
+ width: 400,
296
+ height: 300,
297
+ borderColor: '#ffffff', // 边框颜色
298
+ borderWidth: 3, // 边框宽度
299
+ outerColor: '#1a1a2e', // 外边框颜色
300
+ outerWidth: 6, // 外边框宽度
301
+ radius: 8, // 圆角
302
+ fit: 'cover', // cover / contain / fill
303
+ });
304
+ ```
305
+
306
+ ---
307
+
308
+ ## 🎨 日本设计配色方案(来源:MUUUUU)
309
+
310
+ ### 1. 和風・禅意 (Japanese Zen)
311
+
312
+ ```
313
+ 主色: #1E4D7B (藏蓝 / 藍色)
314
+ 强调: #C41E3A (朱红 / 紅色)
315
+ 背景: #F5F0E8 (米白 / 白茶)
316
+ 文字: #333333 (墨色)
317
+ 点缀: #D4A574 (古铜金)
318
+ ```
319
+
320
+ ### 2. モダン和風 (Modern Japanese)
321
+
322
+ ```
323
+ 主色: #2C3E50 (墨灰)
324
+ 强调: #C0392B (深红)
325
+ 背景: #ECE5D8 (浅麻)
326
+ 文字: #2C2C2C (浓墨)
327
+ 点缀: #D4AF37 (金色)
328
+ ```
329
+
330
+ ---
331
+
332
+ ## 🌸 日本特色设计风格(来源:MUUUUU 分类)
333
+
334
+ ### 1. 和風デザイン (Japanese Style)
335
+
336
+ ```javascript
337
+ compose_poster({
338
+ components: [
339
+ { type: 'background', color: '#F5F0E8' },
340
+ { type: 'rectangle', x: 80, y: 80, width: 920, height: 920, stroke: '#1E4D7B', strokeWidth: 1 },
341
+ { type: 'circle', cx: 540, cy: 300, rx: 6, fill: '#C41E3A' },
342
+ {
343
+ type: 'artText',
344
+ text: '花道',
345
+ x: 540,
346
+ y: 550,
347
+ fontSize: 100,
348
+ gradient: { colors: ['#1E4D7B', '#333333'] },
349
+ },
350
+ { type: 'divider', x: 540, y: 750, width: 100, color: '#C41E3A', thickness: 2 },
351
+ {
352
+ type: 'text',
353
+ text: 'Ikebana',
354
+ x: 540,
355
+ y: 820,
356
+ fontSize: 24,
357
+ color: '#666666',
358
+ align: 'center',
359
+ },
360
+ ],
361
+ });
362
+ ```
363
+
364
+ ### 2. かわいい系 (Kawaii / Cute)
365
+
366
+ ```javascript
367
+ compose_poster({
368
+ components: [
369
+ { type: 'background', color: '#FFF5E6' },
370
+ { type: 'circle', cx: 200, cy: 200, rx: 100, fill: '#FFB6C1', opacity: 0.6 },
371
+ { type: 'star', cx: 400, cy: 300, points: 5, outerRadius: 60, fill: '#FFB6C1' },
372
+ {
373
+ type: 'artText',
374
+ text: 'HELLO',
375
+ x: 540,
376
+ y: 450,
377
+ fontSize: 120,
378
+ gradient: { colors: ['#FF6B9D', '#C44569'] },
379
+ },
380
+ { type: 'chip', x: 540, y: 550, text: 'NEW', background: '#FF6B9D', color: '#ffffff' },
381
+ {
382
+ type: 'cta',
383
+ x: 540,
384
+ y: 700,
385
+ text: 'Learn More',
386
+ background: '#FF6B9D',
387
+ color: '#FFFFFF',
388
+ radius: 25,
389
+ },
390
+ ],
391
+ });
392
+ ```
393
+
394
+ ---
395
+
396
+ ## 📊 实用数据可视化示例
397
+
398
+ ### 仪表盘卡片
399
+
400
+ ```javascript
401
+ compose_poster({
402
+ components: [
403
+ { type: 'background', color: '#0f172a' },
404
+ { type: 'text', text: '数据概览', x: 100, y: 80, fontSize: 32, color: '#ffffff' },
405
+
406
+ // 环形进度条
407
+ {
408
+ type: 'progressCircle',
409
+ cx: 200,
410
+ cy: 250,
411
+ radius: 80,
412
+ value: 75,
413
+ strokeWidth: 15,
414
+ fillColor: '#3b82f6',
415
+ trackColor: '#334155',
416
+ showLabel: true,
417
+ },
418
+ {
419
+ type: 'progressCircle',
420
+ cx: 450,
421
+ cy: 250,
422
+ radius: 80,
423
+ value: 60,
424
+ strokeWidth: 15,
425
+ fillColor: '#10b981',
426
+ trackColor: '#334155',
427
+ showLabel: true,
428
+ },
429
+ {
430
+ type: 'progressCircle',
431
+ cx: 700,
432
+ cy: 250,
433
+ radius: 80,
434
+ value: 45,
435
+ strokeWidth: 15,
436
+ fillColor: '#f59e0b',
437
+ trackColor: '#334155',
438
+ showLabel: true,
439
+ },
440
+
441
+ // 柱状图
442
+ {
443
+ type: 'chart',
444
+ type: 'bar',
445
+ x: 100,
446
+ y: 400,
447
+ width: 600,
448
+ height: 300,
449
+ data: [
450
+ { label: '周一', value: 120, color: '#3b82f6' },
451
+ { label: '周二', value: 90, color: '#10b981' },
452
+ { label: '周三', value: 150, color: '#f59e0b' },
453
+ { label: '周四', value: 110, color: '#ef4444' },
454
+ { label: '周五', value: 180, color: '#8b5cf6' },
455
+ ],
456
+ showLabels: true,
457
+ showValues: true,
458
+ },
459
+
460
+ // 数据表格
461
+ {
462
+ type: 'table',
463
+ x: 750,
464
+ y: 400,
465
+ width: 400,
466
+ columns: [
467
+ { title: '指标', width: 150 },
468
+ { title: '数值', width: 100 },
469
+ ],
470
+ rows: [
471
+ ['总用户', '10,000'],
472
+ ['活跃用户', '7,500'],
473
+ ['增长率', '+25%'],
474
+ ],
475
+ headerBg: '#1e293b',
476
+ headerColor: '#ffffff',
477
+ },
478
+ ],
479
+ });
480
+ ```
481
+
482
+ ### 特性展示海报
483
+
484
+ ```javascript
485
+ compose_poster({
486
+ components: [
487
+ { type: 'background', color: '#ffffff' },
488
+ {
489
+ type: 'text',
490
+ text: '产品特性',
491
+ x: 960,
492
+ y: 80,
493
+ fontSize: 48,
494
+ color: '#1e293b',
495
+ align: 'center',
496
+ },
497
+
498
+ // 分栏布局
499
+ {
500
+ type: 'columns',
501
+ x: 100,
502
+ y: 150,
503
+ width: 1720,
504
+ height: 400,
505
+ columns: 3,
506
+ gap: 40,
507
+ borderColor: '#e2e8f0',
508
+ },
509
+
510
+ // 星星装饰
511
+ { type: 'star', cx: 200, cy: 200, points: 5, outerRadius: 40, fill: '#fbbf24' },
512
+ { type: 'star', cx: 600, cy: 200, points: 6, outerRadius: 35, fill: '#f472b6' },
513
+ { type: 'star', cx: 1000, cy: 200, points: 8, outerRadius: 38, fill: '#60a5fa' },
514
+
515
+ // 标签
516
+ { type: 'chip', x: 200, y: 350, text: 'AI驱动', background: '#dbeafe', color: '#2563eb' },
517
+ { type: 'chip', x: 600, y: 350, text: '实时响应', background: '#dcfce7', color: '#16a34a' },
518
+ { type: 'chip', x: 1000, y: 350, text: '安全可靠', background: '#fef3c7', color: '#d97706' },
519
+
520
+ // CTA按钮
521
+ {
522
+ type: 'cta',
523
+ x: 960,
524
+ y: 600,
525
+ text: '立即体验 →',
526
+ background: '#3b82f6',
527
+ color: '#ffffff',
528
+ radius: 30,
529
+ },
530
+ ],
531
+ });
532
+ ```
533
+
534
+ ---
535
+
536
+ ## 📋 完整海报示例
537
+
538
+ ### AI 产品发布海报
539
+
540
+ ```javascript
541
+ compose_poster({
542
+ components: [
543
+ { type: 'background', color: '#0D0D1A' },
544
+ { type: 'circle', cx: 900, cy: 100, rx: 200, fill: '#00D9FF', opacity: 0.1 },
545
+ { type: 'star', cx: 200, cy: 200, points: 5, outerRadius: 60, fill: '#fbbf24', opacity: 0.8 },
546
+ {
547
+ type: 'artText',
548
+ text: 'FOLIKO',
549
+ x: 540,
550
+ y: 320,
551
+ fontSize: 140,
552
+ gradient: { colors: ['#00D9FF', '#00FF88'] },
553
+ shadow: { color: '#00D9FF', blur: 40 },
554
+ },
555
+ {
556
+ type: 'text',
557
+ text: '简约的插件化 Agent 框架',
558
+ x: 540,
559
+ y: 420,
560
+ fontSize: 36,
561
+ color: '#A0AEC0',
562
+ align: 'center',
563
+ },
564
+ { type: 'divider', x: 540, y: 500, width: 200, color: '#00D9FF' },
565
+ {
566
+ type: 'featureGrid',
567
+ x: 90,
568
+ y: 560,
569
+ columns: 3,
570
+ itemWidth: 300,
571
+ itemHeight: 150,
572
+ items: [
573
+ { icon: '⚡', title: '插件化架构', description: '核心简单' },
574
+ { icon: '🤖', title: '多 AI 支持', description: '多种大模型' },
575
+ { icon: '📡', title: '流式输出', description: '实时响应' },
576
+ ],
577
+ background: '#1A1A2E',
578
+ borderColor: '#00D9FF',
579
+ },
580
+ {
581
+ type: 'cta',
582
+ x: 540,
583
+ y: 950,
584
+ text: 'npm install -g foliko',
585
+ background: '#00D9FF',
586
+ color: '#0D0D1A',
587
+ fontSize: 22,
588
+ },
589
+ ],
590
+ });
591
+ ```
592
+
593
+ ### 数据仪表盘
594
+
595
+ ```javascript
596
+ compose_poster({
597
+ components: [
598
+ { type: 'background', color: '#f8fafc' },
599
+ {
600
+ type: 'text',
601
+ text: '数据概览',
602
+ x: 960,
603
+ y: 60,
604
+ fontSize: 36,
605
+ color: '#1e293b',
606
+ align: 'center',
607
+ },
608
+
609
+ // 环形进度
610
+ {
611
+ type: 'progressCircle',
612
+ cx: 200,
613
+ cy: 200,
614
+ radius: 70,
615
+ value: 85,
616
+ strokeWidth: 12,
617
+ fillColor: '#3b82f6',
618
+ showLabel: true,
619
+ },
620
+ {
621
+ type: 'text',
622
+ text: '完成率',
623
+ x: 200,
624
+ y: 300,
625
+ fontSize: 14,
626
+ color: '#64748b',
627
+ align: 'center',
628
+ },
629
+
630
+ {
631
+ type: 'progressCircle',
632
+ cx: 450,
633
+ cy: 200,
634
+ radius: 70,
635
+ value: 60,
636
+ strokeWidth: 12,
637
+ fillColor: '#10b981',
638
+ showLabel: true,
639
+ },
640
+ {
641
+ type: 'text',
642
+ text: '增长率',
643
+ x: 450,
644
+ y: 300,
645
+ fontSize: 14,
646
+ color: '#64748b',
647
+ align: 'center',
648
+ },
649
+
650
+ // 柱状图
651
+ {
652
+ type: 'chart',
653
+ type: 'bar',
654
+ x: 700,
655
+ y: 100,
656
+ width: 500,
657
+ height: 250,
658
+ data: [
659
+ { label: 'Q1', value: 120, color: '#3b82f6' },
660
+ { label: 'Q2', value: 150, color: '#10b981' },
661
+ { label: 'Q3', value: 180, color: '#f59e0b' },
662
+ { label: 'Q4', value: 220, color: '#ef4444' },
663
+ ],
664
+ showLabels: true,
665
+ showValues: true,
666
+ },
667
+
668
+ // 表格
669
+ {
670
+ type: 'table',
671
+ x: 100,
672
+ y: 400,
673
+ width: 1720,
674
+ columns: [
675
+ { title: '产品', width: 400, align: 'left' },
676
+ { title: '销量', width: 200 },
677
+ { title: '增长率', width: 200 },
678
+ ],
679
+ rows: [
680
+ ['智能助手 Pro', '1,250', '+25%'],
681
+ ['图片生成器', '890', '+18%'],
682
+ ['代码助手', '2,100', '+42%'],
683
+ ],
684
+ headerBg: '#1e293b',
685
+ headerColor: '#ffffff',
686
+ fontSize: 14,
687
+ },
688
+
689
+ // 水印
690
+ {
691
+ type: 'watermark',
692
+ text: 'FOLIKO',
693
+ cx: 960,
694
+ cy: 700,
695
+ fontSize: 200,
696
+ color: 'rgba(0,0,0,0.03)',
697
+ rotation: -15,
698
+ },
699
+ ],
700
+ });
701
+ ```
702
+
703
+ ---
704
+
705
+ ## 🛠️ 工具速查
706
+
707
+ | 工具 | 用途 |
708
+ | ------------------------ | --------------- |
709
+ | `list_poster_components` | 列出所有组件 |
710
+ | `list_poster_templates` | 列出所有模板 |
711
+ | `generate_poster` | 一键生成海报 |
712
+ | `compose_poster` | 组件化生成海报 |
713
+ | `export_poster_canvas` | 导出 PNG |
714
+ | `export_poster_svg` | 导出 SVG (矢量) |
715
+
716
+ ---
717
+
718
+ ## 📚 参考资源
719
+
720
+ ### 日本设计灵感
721
+
722
+ | 网站 | URL | 特点 |
723
+ | ---------- | ------------------------- | ------------------ |
724
+ | MUUUUU | https://muuuuu.org | 卓越Web设计精选 |
725
+ | ICS MEDIA | https://ics.media | 前端技术 + CSS设计 |
726
+ | Lifehacker | https://www.lifehacker.jp | 生活设计科技 |
727
+
728
+ ### 国际设计平台
729
+
730
+ | 网站 | URL | 特点 |
731
+ | --------- | --------------------- | -------------- |
732
+ | Behance | https://behance.net | 专业设计作品集 |
733
+ | Dribbble | https://dribbble.com | 设计师社区 |
734
+ | Pinterest | https://pinterest.com | 视觉灵感收藏 |
735
+ | Awwwards | https://awwwards.com | 最佳网页设计 |
736
+
737
+ ### 配色灵感
738
+
739
+ | 网站 | URL | 特点 |
740
+ | ----------- | ----------------------- | ------------ |
741
+ | Coolors | https://coolors.co | 智能配色生成 |
742
+ | Color Hunt | https://colorhunt.co | 配色方案分享 |
743
+ | Adobe Color | https://color.adobe.com | 配色趋势 |