foliko 1.0.87 → 1.1.1

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 (259) hide show
  1. package/.agent/.shared/ui-ux-pro-max/data/charts.csv +26 -0
  2. package/.agent/.shared/ui-ux-pro-max/data/colors.csv +97 -0
  3. package/.agent/.shared/ui-ux-pro-max/data/icons.csv +101 -0
  4. package/.agent/.shared/ui-ux-pro-max/data/landing.csv +31 -0
  5. package/.agent/.shared/ui-ux-pro-max/data/products.csv +97 -0
  6. package/.agent/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
  7. package/.agent/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
  8. package/.agent/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  9. package/.agent/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  10. package/.agent/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  11. package/.agent/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  12. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  13. package/.agent/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  14. package/.agent/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  15. package/.agent/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
  16. package/.agent/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  17. package/.agent/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  18. package/.agent/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  19. package/.agent/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  20. package/.agent/.shared/ui-ux-pro-max/data/styles.csv +59 -0
  21. package/.agent/.shared/ui-ux-pro-max/data/typography.csv +58 -0
  22. package/.agent/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  23. package/.agent/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  24. package/.agent/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
  25. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/core.cpython-313.pyc +0 -0
  26. package/.agent/.shared/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
  27. package/.agent/.shared/ui-ux-pro-max/scripts/core.py +258 -0
  28. package/.agent/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
  29. package/.agent/.shared/ui-ux-pro-max/scripts/search.py +106 -0
  30. package/.agent/ARCHITECTURE.md +288 -0
  31. package/.agent/agents/ambient-agent.md +57 -0
  32. package/.agent/agents/debugger.md +55 -0
  33. package/.agent/agents/email-assistant.md +49 -0
  34. package/.agent/agents/file-manager.md +42 -0
  35. package/.agent/agents/python-developer.md +60 -0
  36. package/.agent/agents/scheduler.md +59 -0
  37. package/.agent/agents/web-developer.md +45 -0
  38. package/.agent/data/default.json +325 -21
  39. package/.agent/data/plugins-state.json +194 -162
  40. package/.agent/data/puppeteer-sessions/undefined.json +6 -0
  41. package/.agent/mcp_config.json +0 -1
  42. package/.agent/mcp_config_updated.json +12 -0
  43. package/.agent/plugins/poster-plugin/README.md +304 -0
  44. package/.agent/plugins/poster-plugin/fonts/NotoColorEmoji-Regular.ttf +0 -0
  45. package/.agent/plugins/poster-plugin/fonts/PatuaOne-Regular.ttf +0 -0
  46. package/.agent/plugins/poster-plugin/fonts//345/276/256/350/275/257/351/233/205/351/273/221.ttf +0 -0
  47. 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
  48. package/.agent/plugins/poster-plugin/index.js +13 -0
  49. package/.agent/plugins/poster-plugin/package.json +28 -0
  50. package/.agent/plugins/poster-plugin/src/canvas.js +161 -0
  51. package/.agent/plugins/poster-plugin/src/components/arrow.js +84 -0
  52. package/.agent/plugins/poster-plugin/src/components/avatar.js +71 -0
  53. package/.agent/plugins/poster-plugin/src/components/badge.js +85 -0
  54. package/.agent/plugins/poster-plugin/src/components/card.js +88 -0
  55. package/.agent/plugins/poster-plugin/src/components/chart.js +127 -0
  56. package/.agent/plugins/poster-plugin/src/components/chip.js +88 -0
  57. package/.agent/plugins/poster-plugin/src/components/columns.js +107 -0
  58. package/.agent/plugins/poster-plugin/src/components/cta.js +85 -0
  59. package/.agent/plugins/poster-plugin/src/components/divider.js +55 -0
  60. package/.agent/plugins/poster-plugin/src/components/feature.js +85 -0
  61. package/.agent/plugins/poster-plugin/src/components/featureGrid.js +112 -0
  62. package/.agent/plugins/poster-plugin/src/components/grid.js +118 -0
  63. package/.agent/plugins/poster-plugin/src/components/imageFrame.js +155 -0
  64. package/.agent/plugins/poster-plugin/src/components/index.js +62 -0
  65. package/.agent/plugins/poster-plugin/src/components/listItem.js +146 -0
  66. package/.agent/plugins/poster-plugin/src/components/notification.js +123 -0
  67. package/.agent/plugins/poster-plugin/src/components/progress.js +79 -0
  68. package/.agent/plugins/poster-plugin/src/components/progressCircle.js +117 -0
  69. package/.agent/plugins/poster-plugin/src/components/quote.js +97 -0
  70. package/.agent/plugins/poster-plugin/src/components/rating.js +85 -0
  71. package/.agent/plugins/poster-plugin/src/components/star.js +70 -0
  72. package/.agent/plugins/poster-plugin/src/components/statCard.js +105 -0
  73. package/.agent/plugins/poster-plugin/src/components/stepper.js +118 -0
  74. package/.agent/plugins/poster-plugin/src/components/table.js +159 -0
  75. package/.agent/plugins/poster-plugin/src/components/tagCloud.js +78 -0
  76. package/.agent/plugins/poster-plugin/src/components/timeline.js +105 -0
  77. package/.agent/plugins/poster-plugin/src/components/watermark.js +52 -0
  78. package/.agent/plugins/poster-plugin/src/composer.js +1904 -0
  79. package/.agent/plugins/poster-plugin/src/elements/artText.js +60 -0
  80. package/.agent/plugins/poster-plugin/src/elements/background.js +52 -0
  81. package/.agent/plugins/poster-plugin/src/elements/circle.js +31 -0
  82. package/.agent/plugins/poster-plugin/src/elements/image.js +71 -0
  83. package/.agent/plugins/poster-plugin/src/elements/index.js +26 -0
  84. package/.agent/plugins/poster-plugin/src/elements/line.js +23 -0
  85. package/.agent/plugins/poster-plugin/src/elements/polygon.js +63 -0
  86. package/.agent/plugins/poster-plugin/src/elements/rectangle.js +32 -0
  87. package/.agent/plugins/poster-plugin/src/elements/svg.js +92 -0
  88. package/.agent/plugins/poster-plugin/src/elements/text.js +107 -0
  89. package/.agent/plugins/poster-plugin/src/fonts.js +233 -0
  90. package/.agent/plugins/poster-plugin/src/index.js +1658 -0
  91. package/.agent/plugins/poster-plugin/src/presets.js +36 -0
  92. package/.agent/plugins/poster-plugin/src/templates/business.js +60 -0
  93. package/.agent/plugins/poster-plugin/src/templates/gradient.js +64 -0
  94. package/.agent/plugins/poster-plugin/src/templates/index.js +43 -0
  95. package/.agent/plugins/poster-plugin/src/templates/modern.js +69 -0
  96. package/.agent/plugins/poster-plugin/src/templates/simple.js +58 -0
  97. package/.agent/plugins/poster-plugin/src/templates/social.js +62 -0
  98. package/.agent/plugins/poster-plugin/src/templates/tech.js +84 -0
  99. package/.agent/plugins/{temp-repo/puppeteer-plugin → puppeteer-plugin}/index.js +1 -1
  100. package/.agent/plugins.json +5 -11
  101. package/.agent/rules/GEMINI.md +273 -0
  102. package/.agent/rules/allow-rule.md +77 -0
  103. package/.agent/rules/log-rule.md +83 -0
  104. package/.agent/rules/security-rule.md +93 -0
  105. package/.agent/scripts/auto_preview.py +148 -0
  106. package/.agent/scripts/checklist.py +217 -0
  107. package/.agent/scripts/session_manager.py +120 -0
  108. package/.agent/scripts/verify_all.py +327 -0
  109. package/.agent/sessions/cli_default.json +419 -0
  110. package/.agent/sessions/weixin_o9cq80zgZqKPA2-s59PN43GdDy1w@im.wechat.json +2195 -0
  111. package/.agent/skills/api-patterns/SKILL.md +81 -0
  112. package/.agent/skills/api-patterns/api-style.md +42 -0
  113. package/.agent/skills/api-patterns/auth.md +24 -0
  114. package/.agent/skills/api-patterns/documentation.md +26 -0
  115. package/.agent/skills/api-patterns/graphql.md +41 -0
  116. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  117. package/.agent/skills/api-patterns/response.md +37 -0
  118. package/.agent/skills/api-patterns/rest.md +40 -0
  119. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  120. package/.agent/skills/api-patterns/security-testing.md +122 -0
  121. package/.agent/skills/api-patterns/trpc.md +41 -0
  122. package/.agent/skills/api-patterns/versioning.md +22 -0
  123. package/.agent/skills/app-builder/SKILL.md +75 -0
  124. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  125. package/.agent/skills/app-builder/feature-building.md +53 -0
  126. package/.agent/skills/app-builder/project-detection.md +34 -0
  127. package/.agent/skills/app-builder/scaffolding.md +118 -0
  128. package/.agent/skills/app-builder/tech-stack.md +40 -0
  129. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  130. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  131. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  132. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  133. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  134. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  135. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  136. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  137. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  138. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  139. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  140. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  141. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  142. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  143. package/.agent/skills/architecture/SKILL.md +55 -0
  144. package/.agent/skills/architecture/context-discovery.md +43 -0
  145. package/.agent/skills/architecture/examples.md +94 -0
  146. package/.agent/skills/architecture/pattern-selection.md +68 -0
  147. package/.agent/skills/architecture/patterns-reference.md +50 -0
  148. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  149. package/.agent/skills/clean-code/SKILL.md +201 -0
  150. package/.agent/skills/doc.md +177 -0
  151. package/.agent/skills/frontend-design/SKILL.md +418 -0
  152. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  153. package/.agent/skills/frontend-design/color-system.md +311 -0
  154. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  155. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  156. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  157. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  158. package/.agent/skills/frontend-design/typography-system.md +345 -0
  159. package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  160. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  161. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  162. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  163. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  164. package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  165. package/.agent/workflows/brainstorm.md +113 -0
  166. package/.agent/workflows/create.md +59 -0
  167. package/.agent/workflows/debug.md +103 -0
  168. package/.agent/workflows/deploy.md +176 -0
  169. package/.agent/workflows/enhance.md +63 -0
  170. package/.agent/workflows/orchestrate.md +237 -0
  171. package/.agent/workflows/plan.md +89 -0
  172. package/.agent/workflows/preview.md +81 -0
  173. package/.agent/workflows/simple-test.md +42 -0
  174. package/.agent/workflows/status.md +86 -0
  175. package/.agent/workflows/structured-orchestrate.md +180 -0
  176. package/.agent/workflows/test.md +144 -0
  177. package/.agent/workflows/ui-ux-pro-max.md +296 -0
  178. package/.claude/settings.local.json +20 -8
  179. package/.env.example +56 -56
  180. package/CLAUDE.md +144 -108
  181. package/README.md +441 -441
  182. package/calc_tokens_weixin.js +81 -0
  183. package/cli/src/commands/chat.js +2 -1
  184. package/docs/CONTEXT_DESIGN.md +1596 -0
  185. package/examples/test-concurrent-chat.js +60 -60
  186. package/foliko-creative-3.png +0 -0
  187. package/foliko-creative-4.png +0 -0
  188. package/foliko-creative-5.png +0 -0
  189. package/package.json +2 -2
  190. package/plugins/default-plugins.js +2 -1
  191. package/plugins/extension-executor-plugin.js +91 -2
  192. package/plugins/file-system-plugin.js +2 -2
  193. package/plugins/memory-plugin.js +984 -0
  194. package/plugins/session-plugin.js +57 -1
  195. package/plugins/weixin-plugin.js +33 -23
  196. package/skills/find-skills/AGENTS.md +162 -162
  197. package/skills/find-skills/SKILL.md +133 -133
  198. package/skills/poster-guide/SKILL.md +1059 -0
  199. package/skills/python-plugin-dev/SKILL.md +238 -238
  200. package/skills/skill-guide/SKILL.md +130 -108
  201. package/src/capabilities/skill-manager.js +99 -0
  202. package/src/core/agent-chat.js +620 -141
  203. package/src/core/agent-context.js +188 -0
  204. package/src/core/agent.js +6 -2
  205. package/src/core/context-manager.js +283 -0
  206. package/src/core/framework.js +264 -3
  207. package/src/core/plugin-manager.js +79 -2
  208. package/src/core/request-context.js +98 -0
  209. package/src/core/session-context.js +341 -0
  210. package/src/core/session-storage.js +274 -0
  211. package/src/executors/mcp-executor.js +2 -2
  212. package/src/utils/index.js +239 -67
  213. package/src/utils/plugin-helpers.js +17 -0
  214. package/story-cover-book-v2.png +0 -0
  215. package/story-cover-japanese-1.png +0 -0
  216. package/story-cover-japanese-2.png +0 -0
  217. package/story-cover-japanese-3.png +0 -0
  218. package/story-cover-moran.png +0 -0
  219. package/undefined.png +0 -0
  220. package//346/265/267/346/212/245/346/217/222/344/273/266.md +621 -0
  221. package/.agent/agents/code-assistant.json +0 -14
  222. package/.agent/agents/email-assistant.json +0 -14
  223. package/.agent/agents/file-assistant.json +0 -15
  224. package/.agent/agents/system-assistant.json +0 -15
  225. package/.agent/agents/web-assistant.json +0 -12
  226. package/.agent/data/ambient/goals.json +0 -50
  227. package/.agent/data/ambient/memories.json +0 -7
  228. package/.agent/data/scheduler/tasks.json +0 -1
  229. package/.agent/package.json +0 -8
  230. package/.agent/plugins/__pycache__/test_plugin.cpython-312.pyc +0 -0
  231. package/.agent/plugins/daytona/README.md +0 -89
  232. package/.agent/plugins/daytona/index.js +0 -377
  233. package/.agent/plugins/daytona/package.json +0 -12
  234. package/.agent/plugins/marknative/README.md +0 -134
  235. package/.agent/plugins/marknative/index.js +0 -228
  236. package/.agent/plugins/marknative/package.json +0 -12
  237. package/.agent/plugins/marknative/update-readme.js +0 -134
  238. package/.agent/plugins/system-info/index.js +0 -387
  239. package/.agent/plugins/system-info/package.json +0 -4
  240. package/.agent/plugins/system-info/test.js +0 -40
  241. package/.agent/plugins/temp-repo/LICENSE +0 -201
  242. package/.agent/plugins/test_plugin.py +0 -304
  243. package/.agent/python-scripts/test_sample.py +0 -24
  244. package/.agent/skills/agent-browser/SKILL.md +0 -311
  245. package/.agent/skills/agent-browser/TEST_PLAN.md +0 -200
  246. package/.agent/skills/sysinfo/SKILL.md +0 -38
  247. package/.agent/skills/sysinfo/system-info.sh +0 -130
  248. package/.agent/skills/workflow/SKILL.md +0 -324
  249. package/.agent/workflows/email-digest.json +0 -50
  250. package/.agent/workflows/file-backup.json +0 -21
  251. package/.agent/workflows/get-ip-notify.json +0 -32
  252. package/.agent/workflows/news-aggregator.json +0 -93
  253. package/.agent/workflows/news-dashboard-v2.json +0 -94
  254. package/.agent/workflows/notification-batch.json +0 -32
  255. package/examples/test-chat-debug.js +0 -102
  256. package/examples/test-chat-result.js +0 -76
  257. package/examples/test-chat-stream-diff.js +0 -63
  258. /package/.agent/plugins/{temp-repo/puppeteer-plugin → puppeteer-plugin}/README.md +0 -0
  259. /package/.agent/plugins/{temp-repo/puppeteer-plugin → puppeteer-plugin}/package.json +0 -0
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: scheduler
3
+ description: 定时任务管理专家。用于设置提醒、定时任务、Cron表达式、任务调度等任务。触发关键词:定时、提醒、调度、任务、计划、Cron。
4
+ tools: schedule_task, schedule_list, schedule_cancel, cron_examples
5
+ model: inherit
6
+ ---
7
+
8
+ # 定时任务管理专家
9
+
10
+ 你是一个专业的定时任务管理专家,擅长设置和管理各种定时任务。
11
+
12
+ ## 核心能力
13
+
14
+ 1. **定时提醒**:设置一次性或重复的提醒
15
+ 2. **Cron任务**:使用Cron表达式创建复杂调度
16
+ 3. **任务管理**:列出、取消、管理定时任务
17
+ 4. **时间查询**:获取常用Cron表达式示例
18
+
19
+ ## 工具使用
20
+
21
+ ### 任务管理
22
+ - `schedule_task`: 创建定时任务,支持多种时间格式
23
+ - `schedule_list`: 列出所有定时任务
24
+ - `schedule_cancel`: 取消指定的定时任务
25
+
26
+ ### 辅助功能
27
+ - `cron_examples`: 获取常用Cron表达式示例
28
+
29
+ ## 时间格式支持
30
+
31
+ ### 相对时间
32
+ - `"1 minute"` - 1分钟后
33
+ - `"2 hours"` - 2小时后
34
+ - `"1 day"` - 1天后
35
+
36
+ ### 具体时间
37
+ - `"12:00"` - 今天12:00
38
+ - `"14:30"` - 今天14:30
39
+
40
+ ### Cron表达式
41
+ - `"* * * * *"` - 每分钟
42
+ - `"*/5 * * * *"` - 每5分钟
43
+ - `"0 * * * *"` - 每小时
44
+ - `"0 0 * * *"` - 每天午夜
45
+
46
+ ## 参数说明
47
+
48
+ - `name`: 任务名称(可选)
49
+ - `message`: 提醒消息内容
50
+ - `repeat`: 是否重复执行(默认false)
51
+ - `cronExpression`: Cron表达式(repeat为true时使用)
52
+ - `llm`: 是否需要LLM处理(自动检测)
53
+
54
+ ## 最佳实践
55
+
56
+ 1. 清晰描述提醒内容
57
+ 2. 合理设置重复周期
58
+ 3. 使用有意义的任务名称
59
+ 4. 记得保存任务ID以便取消
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: web-developer
3
+ description: Web开发专家。用于HTTP请求、Web服务、API调用、网页数据抓取等任务。触发关键词:HTTP、API、请求、Web、网页、抓取、网络。
4
+ tools: fetch, web_request, web_start, web_stop, web_register_route, web_register_webhook, web_register_static, web_list_routes
5
+ skills: api-patterns
6
+ model: inherit
7
+ ---
8
+
9
+ # Web开发专家
10
+
11
+ 你是一个专业的Web开发专家,擅长处理HTTP请求、API开发和Web服务相关任务。
12
+
13
+ ## 核心能力
14
+
15
+ 1. **HTTP请求**:GET/POST/PUT/DELETE等各类请求
16
+ 2. **API开发**:RESTful API设计、Webhook开发
17
+ 3. **数据抓取**:网页内容获取、API数据采集
18
+ 4. **Web服务**:启动服务、注册路由、处理请求
19
+
20
+ ## 工具使用
21
+
22
+ ### HTTP请求
23
+ - `fetch`: 获取远程数据,支持代理重试
24
+ - `web_request`: 发送HTTP请求到指定路径
25
+
26
+ ### Web服务
27
+ - `web_start`: 启动Web服务(默认端口3000)
28
+ - `web_register_route`: 注册HTTP路由处理函数
29
+ - `web_register_webhook`: 注册Webhook接收外部请求
30
+ - `web_register_static`: 注册静态资源文件夹
31
+ - `web_list_routes`: 列出所有已注册路由
32
+
33
+ ## 工作流程
34
+
35
+ 1. **分析需求**:确定是客户端请求还是服务端开发
36
+ 2. **选择工具**:根据任务选择合适的HTTP工具
37
+ 3. **处理响应**:解析返回数据,处理错误
38
+ 4. **结果返回**:提供清晰的执行结果
39
+
40
+ ## 最佳实践
41
+
42
+ 1. 请求失败时自动使用代理重试
43
+ 2. 设置合理的超时时间
44
+ 3. 正确处理JSON响应格式
45
+ 4. Webhook提示词要描述清楚数据处理逻辑
@@ -3,114 +3,418 @@
3
3
  "messages": [
4
4
  {
5
5
  "role": "user",
6
- "content": "你号"
6
+ "content": "你好啊"
7
7
  },
8
8
  {
9
9
  "role": "assistant",
10
10
  "content": [
11
11
  {
12
12
  "type": "text",
13
- "text": "<think>\n用户说\"你号\",这看起来像是一个打招呼或者问候的简短表达,可能是\"你好\"的打字错误或者网络用语。我应该友好地回应。\n</think>\n\n你好!有什么可以帮你的吗?"
13
+ "text": "<think>\n用户只是打了个招呼\"你好啊\",这是一个简单的问候。我应该友好地回应,并简单介绍一下我能帮助做什么。不需要调用任何工具。\n</think>\n\n你好!👋\n\n我是你的 AI 助手,可以帮助你完成各种任务:\n\n- 📁 **文件操作**:读取、写入、搜索文件和目录\n- 💻 **代码执行**:运行 Python 代码、Shell 命令\n- 🔧 **系统管理**:管理插件、定时任务、子 Agent\n- 🌐 **Web 功能**:HTTP 请求、网页自动化\n- 📧 **邮件处理**:发送和接收邮件\n- 💰 **交易**:Gate.io 加密货币交易\n- 🧠 **AI 能力**:主动思考、后台任务、持续监控\n\n有什么我可以帮你的吗?"
14
14
  }
15
15
  ]
16
16
  },
17
17
  {
18
18
  "role": "user",
19
- "content": "今天星期几?"
19
+ "content": "查看插件列表"
20
20
  },
21
21
  {
22
22
  "role": "assistant",
23
23
  "content": [
24
24
  {
25
25
  "type": "text",
26
- "text": "<think>\n用户问今天星期几,我需要获取当前时间。\n</think>\n\n\n"
26
+ "text": "<think>\n用户想要查看插件列表,我可以使用 list_plugins 工具来列出所有已注册的插件。\n</think>\n\n\n"
27
+ },
28
+ {
29
+ "type": "tool-call",
30
+ "toolCallId": "call_function_r4kvj3k0hdup_1",
31
+ "toolName": "list_plugins",
32
+ "input": {}
27
33
  }
28
34
  ]
29
35
  },
30
36
  {
31
- "role": "user",
32
- "content": "有什么好玩的"
37
+ "role": "tool",
38
+ "content": [
39
+ {
40
+ "type": "tool-result",
41
+ "toolCallId": "call_function_r4kvj3k0hdup_1",
42
+ "toolName": "list_plugins",
43
+ "output": {
44
+ "type": "json",
45
+ "value": {
46
+ "success": true,
47
+ "plugins": [
48
+ {
49
+ "name": "defaults",
50
+ "status": "loaded",
51
+ "enabled": true,
52
+ "version": "1.0.0",
53
+ "system": true
54
+ },
55
+ {
56
+ "name": "install",
57
+ "status": "loaded",
58
+ "enabled": true,
59
+ "version": "1.0.0",
60
+ "system": true
61
+ },
62
+ {
63
+ "name": "ai",
64
+ "status": "loaded",
65
+ "enabled": true,
66
+ "version": "1.0.0",
67
+ "system": true
68
+ },
69
+ {
70
+ "name": "skill-manager",
71
+ "status": "loaded",
72
+ "enabled": true,
73
+ "version": "1.0.0",
74
+ "system": true
75
+ },
76
+ {
77
+ "name": "mcp-executor",
78
+ "status": "loaded",
79
+ "enabled": true,
80
+ "version": "1.0.0",
81
+ "system": true
82
+ },
83
+ {
84
+ "name": "python-plugin-loader",
85
+ "status": "loaded",
86
+ "enabled": true,
87
+ "version": "1.0.0",
88
+ "system": true
89
+ },
90
+ {
91
+ "name": "subagent-manager",
92
+ "status": "loaded",
93
+ "enabled": true,
94
+ "version": "1.0.0",
95
+ "system": false
96
+ },
97
+ {
98
+ "name": "puppeteer",
99
+ "status": "loaded",
100
+ "enabled": true,
101
+ "version": "1.0.0",
102
+ "system": false
103
+ },
104
+ {
105
+ "name": "ambient",
106
+ "status": "loaded",
107
+ "enabled": true,
108
+ "version": "1.0.0",
109
+ "system": true
110
+ },
111
+ {
112
+ "name": "audit",
113
+ "status": "loaded",
114
+ "enabled": true,
115
+ "version": "1.0.0",
116
+ "system": true
117
+ },
118
+ {
119
+ "name": "email",
120
+ "status": "loaded",
121
+ "enabled": true,
122
+ "version": "1.1.0",
123
+ "system": false
124
+ },
125
+ {
126
+ "name": "extension-executor",
127
+ "status": "loaded",
128
+ "enabled": true,
129
+ "version": "1.0.0",
130
+ "system": true
131
+ },
132
+ {
133
+ "name": "feishu",
134
+ "status": "registered",
135
+ "enabled": false,
136
+ "version": "1.1.0",
137
+ "system": false
138
+ },
139
+ {
140
+ "name": "file-system",
141
+ "status": "loaded",
142
+ "enabled": true,
143
+ "version": "1.0.0",
144
+ "system": true
145
+ },
146
+ {
147
+ "name": "gate-trading",
148
+ "status": "loaded",
149
+ "enabled": true,
150
+ "version": "1.1.0",
151
+ "system": false
152
+ },
153
+ {
154
+ "name": "plugin_manager",
155
+ "status": "loaded",
156
+ "enabled": true,
157
+ "version": "1.0.0",
158
+ "system": true
159
+ },
160
+ {
161
+ "name": "python-executor",
162
+ "status": "loaded",
163
+ "enabled": true,
164
+ "version": "1.0.0",
165
+ "system": true
166
+ },
167
+ {
168
+ "name": "rules",
169
+ "status": "loaded",
170
+ "enabled": true,
171
+ "version": "1.0.0",
172
+ "system": true
173
+ },
174
+ {
175
+ "name": "scheduler",
176
+ "status": "loaded",
177
+ "enabled": true,
178
+ "version": "1.0.0",
179
+ "system": true
180
+ },
181
+ {
182
+ "name": "session",
183
+ "status": "loaded",
184
+ "enabled": true,
185
+ "version": "1.0.0",
186
+ "system": true
187
+ },
188
+ {
189
+ "name": "shell-executor",
190
+ "status": "loaded",
191
+ "enabled": true,
192
+ "version": "1.0.0",
193
+ "system": true
194
+ },
195
+ {
196
+ "name": "storage",
197
+ "status": "loaded",
198
+ "enabled": true,
199
+ "version": "1.0.0",
200
+ "system": true
201
+ },
202
+ {
203
+ "name": "telegram",
204
+ "status": "registered",
205
+ "enabled": false,
206
+ "version": "2.1.0",
207
+ "system": false
208
+ },
209
+ {
210
+ "name": "think",
211
+ "status": "loaded",
212
+ "enabled": true,
213
+ "version": "1.0.0",
214
+ "system": false
215
+ },
216
+ {
217
+ "name": "tools",
218
+ "status": "loaded",
219
+ "enabled": true,
220
+ "version": "1.0.0",
221
+ "system": true
222
+ },
223
+ {
224
+ "name": "web",
225
+ "status": "loaded",
226
+ "enabled": true,
227
+ "version": "3.1.0",
228
+ "system": true
229
+ },
230
+ {
231
+ "name": "weixin",
232
+ "status": "registered",
233
+ "enabled": false,
234
+ "version": "1.0.0",
235
+ "system": false
236
+ }
237
+ ]
238
+ }
239
+ }
240
+ }
241
+ ]
33
242
  },
34
243
  {
35
244
  "role": "assistant",
36
245
  "content": [
37
246
  {
38
247
  "type": "text",
39
- "text": "<think>\n用户问有什么好玩的,但没有具体说明想要什么类型的好玩内容。我可以先获取当前时间来了解更多信息,然后根据情况给出建议。\n</think>\n\n\n"
248
+ "text": "<think>\n好的,我获取到了插件列表。让我整理一下给用户展示。\n</think>\n\n当前已安装 **27 个插件**:\n\n## ✅ 已加载插件 (22个)\n\n| 插件名 | 版本 | 类型 | 功能 |\n|--------|------|------|------|\n| ai | 1.0.0 | 系统 | AI 对话能力 |\n| skill-manager | 1.0.0 | 系统 | 技能管理器 |\n| mcp-executor | 1.0.0 | 系统 | MCP 执行器 |\n| python-plugin-loader | 1.0.0 | 系统 | Python 插件加载 |\n| subagent-manager | 1.0.0 | - | 子Agent 管理器 |\n| puppeteer | 1.0.0 | - | 网页自动化 |\n| email | 1.1.0 | - | 邮件收发 |\n| gate-trading | 1.1.0 | - | Gate.io 交易 |\n| think | 1.0.0 | - | 主动思考 |\n| web | 3.1.0 | 系统 | HTTP 服务 |\n| ambient | 1.0.0 | 系统 | Ambient Agent |\n| audit | 1.0.0 | 系统 | 审计日志 |\n| file-system | 1.0.0 | 系统 | 文件系统 |\n| python-executor | 1.0.0 | 系统 | Python 执行 |\n| shell-executor | 1.0.0 | 系统 | Shell 执行 |\n| storage | 1.0.0 | 系统 | 键值存储 |\n| scheduler | 1.0.0 | 系统 | 定时任务 |\n| session | 1.0.0 | 系统 | 会话管理 |\n| rules | 1.0.0 | 系统 | 规则引擎 |\n| tools | 1.0.0 | 系统 | 工具管理 |\n| extension-executor | 1.0.0 | 系统 | 扩展执行器 |\n| plugin_manager | 1.0.0 | 系统 | 插件管理 |\n\n## ⚪ 已注册但未启用 (5个)\n\n| 插件名 | 版本 | 状态 |\n|--------|------|------|\n| feishu | 1.1.0 | 禁用 |\n| telegram | 2.1.0 | 禁用 |\n| weixin | 1.0.0 | 禁用 |\n\n需要我帮你管理这些插件(如启用/禁用)或查看远程插件仓库吗?"
40
249
  }
41
250
  ]
42
251
  },
43
252
  {
44
253
  "role": "user",
45
- "content": "你好啊"
254
+ "content": "你好"
46
255
  },
47
256
  {
48
257
  "role": "assistant",
49
258
  "content": [
50
259
  {
51
260
  "type": "text",
52
- "text": "<think>\n用户只是打了个招呼\"你好啊\",我简单回应一下就好,不需要调用工具。\n</think>\n\n你好啊!👋\n\n有什么我可以帮你的吗?比如:\n\n- 💻 **代码问题** - 帮你写代码、调试、解释代码\n- 📁 **文件操作** - 读写文件、管理项目\n- 🔧 **系统操作** - 查询系统信息、执行命令\n- 🌐 **网页浏览** - 访问网页、抓取内容\n- 📦 **插件管理** - 安装和管理插件\n- ⏰ **定时任务** - 设置提醒和定时任务\n- 💬 **其他问题** - 聊天、问答等\n\n随便聊聊也行~ 😄"
261
+ "text": "<think>\n用户又打了个招呼,我简短回复即可。\n</think>\n\n你好!有什么可以帮你的吗? 😊"
53
262
  }
54
263
  ]
55
264
  },
56
265
  {
57
266
  "role": "user",
58
- "content": "查看插件列表"
267
+ "content": "查看审计日志"
59
268
  },
60
269
  {
61
270
  "role": "assistant",
62
271
  "content": [
63
272
  {
64
273
  "type": "text",
65
- "text": "<think>\n用户想查看插件列表,我应该调用 list_plugins 工具来列出所有可用的插件。\n</think>\n\n\n"
274
+ "text": "<think>\n用户想查看审计日志,我需要调用 audit_query 工具来获取审计日志。\n</think>\n\n\n"
275
+ },
276
+ {
277
+ "type": "tool-call",
278
+ "toolCallId": "call_function_68cr9nw4lepv_1",
279
+ "toolName": "audit_query",
280
+ "input": {
281
+ "limit": 50
282
+ }
66
283
  }
67
284
  ]
68
285
  },
69
286
  {
70
- "role": "user",
71
- "content": "你好啊"
287
+ "role": "tool",
288
+ "content": [
289
+ {
290
+ "type": "tool-result",
291
+ "toolCallId": "call_function_68cr9nw4lepv_1",
292
+ "toolName": "audit_query",
293
+ "output": {
294
+ "type": "json",
295
+ "value": {
296
+ "success": true,
297
+ "logs": [],
298
+ "total": 0,
299
+ "offset": 0,
300
+ "limit": 50
301
+ }
302
+ }
303
+ }
304
+ ]
72
305
  },
73
306
  {
74
307
  "role": "assistant",
75
308
  "content": [
76
309
  {
77
310
  "type": "text",
78
- "text": "<think>\n用户又打招呼了,我应该简单友好地回复。\n</think>\n\n你好!😊 有什么需要帮忙的吗?\n\n刚才查看了插件列表,你是想安装新插件还是想了解某个插件的使用方法?"
311
+ "text": "<think>\n审计日志为空,这可能是因为审计功能刚启动或者还没有记录任何操作。让我获取一下审计统计信息,看看有什么可用的。\n</think>\n\n\n"
312
+ },
313
+ {
314
+ "type": "tool-call",
315
+ "toolCallId": "call_function_9cb4nt21wcb1_1",
316
+ "toolName": "audit_stats",
317
+ "input": {}
79
318
  }
80
319
  ]
81
320
  },
82
321
  {
83
- "role": "user",
84
- "content": "嗯"
322
+ "role": "tool",
323
+ "content": [
324
+ {
325
+ "type": "tool-result",
326
+ "toolCallId": "call_function_9cb4nt21wcb1_1",
327
+ "toolName": "audit_stats",
328
+ "output": {
329
+ "type": "json",
330
+ "value": {
331
+ "success": true,
332
+ "stats": {
333
+ "total": 0,
334
+ "maxLogs": 1000,
335
+ "counts": {},
336
+ "oldest": null,
337
+ "newest": null
338
+ }
339
+ }
340
+ }
341
+ }
342
+ ]
85
343
  },
86
344
  {
87
345
  "role": "assistant",
88
346
  "content": [
89
347
  {
90
348
  "type": "text",
91
- "text": "<think>\n用户只是简单回复\"嗯\",我需要引导用户明确需求,或者主动提供一些选项。\n</think>\n\n好的~ 给你几个常用选项参考:\n\n| 操作 | 说明 |\n|------|------|\n| 📦 安装插件 | 从远程仓库安装新插件 |\n| 🔍 搜索技能 | 查找可能对你有帮助的技能 |\n| ⚙️ 查看已装插件 | 查看当前已安装的插件列表 |\n| 🔧 插件管理 | 启用/禁用/重载插件 |\n\n想试试哪个?或者直接告诉我你想做什么也行 😄"
349
+ "text": "<think>\n审计统计显示没有任何日志条目,总数为0。这是正常的,说明目前还没有记录任何审计日志。\n</think>\n\n当前审计日志为空:\n\n- **总记录数**:0\n- **最大存储**:1000 条\n- **最旧记录**:无\n- **最新记录**:无\n\n审计日志会记录工具调用、技能执行、错误信息等操作历史。如果你刚启动系统,或者之前没有进行过操作,日志为空是正常的。\n\n需要进行什么操作让我帮你记录到审计日志中吗?"
92
350
  }
93
351
  ]
94
352
  },
95
353
  {
96
354
  "role": "user",
97
- "content": "下一条"
355
+ "content": "重载插件"
356
+ },
357
+ {
358
+ "role": "assistant",
359
+ "content": [
360
+ {
361
+ "type": "text",
362
+ "text": "<think>\n用户想要重载插件。根据工具说明,可以重载单个指定插件,或重载所有插件。用户没有指定具体插件,我应该重载所有插件。\n</think>\n\n\n"
363
+ },
364
+ {
365
+ "type": "tool-call",
366
+ "toolCallId": "call_function_splroz4d6kzp_1",
367
+ "toolName": "reload_plugins",
368
+ "input": {}
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ "role": "tool",
374
+ "content": [
375
+ {
376
+ "type": "tool-result",
377
+ "toolCallId": "call_function_splroz4d6kzp_1",
378
+ "toolName": "reload_plugins",
379
+ "output": {
380
+ "type": "json",
381
+ "value": {
382
+ "success": true,
383
+ "message": "All plugins reloaded successfully"
384
+ }
385
+ }
386
+ }
387
+ ]
98
388
  },
99
389
  {
100
390
  "role": "assistant",
101
391
  "content": [
102
392
  {
103
393
  "type": "text",
104
- "text": "<think>\n用户说\"下一条\",这可能是指下一条消息或者下一个话题。我不确定用户的具体意思,可能是:\n1. 想要看其他东西\n2. 想要换个话题\n3. 想要我推荐什么\n\n我应该简单回复,询问用户具体想要什么。\n</think>\n\n好的~ 你是想:\n\n1. 🔍 **查看其他内容** - 比如查看系统信息、文件目录等\n2. 💬 **换个话题聊**\n3. 🚀 **开始做点什么** - 比如写代码、处理文件等\n\n告诉我你想做什么?或者直接说说你想了解什么 😄"
394
+ "text": "<think>\n插件重载成功,返回了成功消息。\n</think>\n\n 所有插件已成功重载!"
105
395
  }
106
396
  ]
397
+ },
398
+ {
399
+ "role": "user",
400
+ "content": "你好"
107
401
  }
108
402
  ],
109
403
  "variables": {},
110
404
  "metadata": {
111
405
  "platform": "cli"
112
406
  },
113
- "createdAt": "2026-04-04T07:00:46.316Z",
114
- "lastActive": "2026-04-04T07:14:48.755Z"
407
+ "createdAt": "2026-04-03T05:49:17.397Z",
408
+ "lastActive": "2026-04-03T09:38:30.327Z"
409
+ },
410
+ "session:weixin_o9cq80zgZqKPA2-s59PN43GdDy1w@im.wechat": {
411
+ "messages": [],
412
+ "variables": {},
413
+ "metadata": {
414
+ "platform": "weixin",
415
+ "userId": "o9cq80zgZqKPA2-s59PN43GdDy1w@im.wechat"
416
+ },
417
+ "createdAt": "2026-04-07T09:33:14.887Z",
418
+ "lastActive": "2026-04-07T09:33:14.887Z"
115
419
  }
116
420
  }