foliko 1.0.83 → 1.0.85

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 (168) 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 +355 -6
  39. package/.agent/data/plugins-state.json +185 -146
  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/puppeteer-plugin/README.md +147 -0
  44. package/.agent/plugins/puppeteer-plugin/index.js +1418 -0
  45. package/.agent/plugins/puppeteer-plugin/package.json +9 -0
  46. package/.agent/plugins.json +5 -14
  47. package/.agent/rules/GEMINI.md +273 -0
  48. package/.agent/rules/allow-rule.md +77 -0
  49. package/.agent/rules/log-rule.md +83 -0
  50. package/.agent/rules/security-rule.md +93 -0
  51. package/.agent/scripts/auto_preview.py +148 -0
  52. package/.agent/scripts/checklist.py +217 -0
  53. package/.agent/scripts/session_manager.py +120 -0
  54. package/.agent/scripts/verify_all.py +327 -0
  55. package/.agent/skills/api-patterns/SKILL.md +81 -0
  56. package/.agent/skills/api-patterns/api-style.md +42 -0
  57. package/.agent/skills/api-patterns/auth.md +24 -0
  58. package/.agent/skills/api-patterns/documentation.md +26 -0
  59. package/.agent/skills/api-patterns/graphql.md +41 -0
  60. package/.agent/skills/api-patterns/rate-limiting.md +31 -0
  61. package/.agent/skills/api-patterns/response.md +37 -0
  62. package/.agent/skills/api-patterns/rest.md +40 -0
  63. package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
  64. package/.agent/skills/api-patterns/security-testing.md +122 -0
  65. package/.agent/skills/api-patterns/trpc.md +41 -0
  66. package/.agent/skills/api-patterns/versioning.md +22 -0
  67. package/.agent/skills/app-builder/SKILL.md +75 -0
  68. package/.agent/skills/app-builder/agent-coordination.md +71 -0
  69. package/.agent/skills/app-builder/feature-building.md +53 -0
  70. package/.agent/skills/app-builder/project-detection.md +34 -0
  71. package/.agent/skills/app-builder/scaffolding.md +118 -0
  72. package/.agent/skills/app-builder/tech-stack.md +40 -0
  73. package/.agent/skills/app-builder/templates/SKILL.md +39 -0
  74. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
  75. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
  76. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
  77. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
  78. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
  79. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
  80. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
  81. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
  82. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
  83. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
  84. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
  85. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
  86. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
  87. package/.agent/skills/architecture/SKILL.md +55 -0
  88. package/.agent/skills/architecture/context-discovery.md +43 -0
  89. package/.agent/skills/architecture/examples.md +94 -0
  90. package/.agent/skills/architecture/pattern-selection.md +68 -0
  91. package/.agent/skills/architecture/patterns-reference.md +50 -0
  92. package/.agent/skills/architecture/trade-off-analysis.md +77 -0
  93. package/.agent/skills/clean-code/SKILL.md +201 -0
  94. package/.agent/skills/doc.md +177 -0
  95. package/.agent/skills/frontend-design/SKILL.md +418 -0
  96. package/.agent/skills/frontend-design/animation-guide.md +331 -0
  97. package/.agent/skills/frontend-design/color-system.md +311 -0
  98. package/.agent/skills/frontend-design/decision-trees.md +418 -0
  99. package/.agent/skills/frontend-design/motion-graphics.md +306 -0
  100. package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
  101. package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
  102. package/.agent/skills/frontend-design/typography-system.md +345 -0
  103. package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
  104. package/.agent/skills/frontend-design/visual-effects.md +383 -0
  105. package/.agent/skills/i18n-localization/SKILL.md +154 -0
  106. package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
  107. package/.agent/skills/mcp-builder/SKILL.md +176 -0
  108. package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
  109. package/.agent/workflows/brainstorm.md +113 -0
  110. package/.agent/workflows/create.md +59 -0
  111. package/.agent/workflows/debug.md +103 -0
  112. package/.agent/workflows/deploy.md +176 -0
  113. package/.agent/workflows/enhance.md +63 -0
  114. package/.agent/workflows/orchestrate.md +237 -0
  115. package/.agent/workflows/plan.md +89 -0
  116. package/.agent/workflows/preview.md +81 -0
  117. package/.agent/workflows/simple-test.md +42 -0
  118. package/.agent/workflows/status.md +86 -0
  119. package/.agent/workflows/structured-orchestrate.md +180 -0
  120. package/.agent/workflows/test.md +144 -0
  121. package/.agent/workflows/ui-ux-pro-max.md +296 -0
  122. package/.claude/settings.local.json +178 -171
  123. package/.env.example +56 -56
  124. package/cli/src/commands/plugin.js +482 -0
  125. package/cli/src/index.js +7 -0
  126. package/cli/src/utils/plugin-config.js +50 -0
  127. package/package.json +1 -1
  128. package/plugins/audit-plugin.js +2 -0
  129. package/plugins/extension-executor-plugin.js +38 -0
  130. package/plugins/plugin-manager-plugin.js +402 -0
  131. package/plugins/session-plugin.js +3 -3
  132. package/skills/find-skills/AGENTS.md +162 -162
  133. package/skills/find-skills/SKILL.md +133 -133
  134. package/skills/foliko-dev/SKILL.md +563 -563
  135. package/skills/plugin-guide/SKILL.md +139 -0
  136. package/skills/python-plugin-dev/SKILL.md +238 -238
  137. package/src/core/agent-chat.js +103 -45
  138. package/src/core/framework.js +42 -1
  139. package/src/executors/mcp-executor.js +33 -0
  140. package/src/utils/index.js +153 -0
  141. package/xhs_auth.json +268 -0
  142. package/.agent/agents/code-assistant.json +0 -14
  143. package/.agent/agents/email-assistant.json +0 -14
  144. package/.agent/agents/file-assistant.json +0 -15
  145. package/.agent/agents/system-assistant.json +0 -15
  146. package/.agent/agents/web-assistant.json +0 -12
  147. package/.agent/data/ambient/goals.json +0 -50
  148. package/.agent/data/ambient/memories.json +0 -7
  149. package/.agent/data/scheduler/tasks.json +0 -1
  150. package/.agent/package.json +0 -8
  151. package/.agent/plugins/__pycache__/test_plugin.cpython-312.pyc +0 -0
  152. package/.agent/plugins/system-info/index.js +0 -387
  153. package/.agent/plugins/system-info/package.json +0 -4
  154. package/.agent/plugins/system-info/test.js +0 -40
  155. package/.agent/plugins/test_plugin.py +0 -304
  156. package/.agent/python-scripts/test_sample.py +0 -24
  157. package/.agent/skills/sysinfo/SKILL.md +0 -38
  158. package/.agent/skills/sysinfo/system-info.sh +0 -130
  159. package/.agent/skills/workflow/SKILL.md +0 -324
  160. package/.agent/workflows/email-digest.json +0 -50
  161. package/.agent/workflows/file-backup.json +0 -21
  162. package/.agent/workflows/get-ip-notify.json +0 -32
  163. package/.agent/workflows/news-aggregator.json +0 -93
  164. package/.agent/workflows/news-dashboard-v2.json +0 -94
  165. package/.agent/workflows/notification-batch.json +0 -32
  166. package/reports/system-health-report-20260401.md +0 -79
  167. package/test/tool-registry-validation.test.js +0 -218
  168. package/test_report.md +0 -70
@@ -7,6 +7,25 @@
7
7
  "enabled": true,
8
8
  "config": {}
9
9
  },
10
+ "ai": {
11
+ "enabled": true
12
+ },
13
+ "storage": {
14
+ "enabled": true,
15
+ "config": {
16
+ "type": "json",
17
+ "path": ".agent/data",
18
+ "namespace": "default"
19
+ }
20
+ },
21
+ "tools": {
22
+ "enabled": true,
23
+ "config": {}
24
+ },
25
+ "workflow": {
26
+ "enabled": true,
27
+ "config": {}
28
+ },
10
29
  "skill-manager": {
11
30
  "enabled": true,
12
31
  "config": {}
@@ -15,214 +34,234 @@
15
34
  "enabled": true,
16
35
  "config": {}
17
36
  },
37
+ "shell-executor": {
38
+ "enabled": true,
39
+ "config": {
40
+ "timeout": 60000,
41
+ "workingDir": "D:\\code\\vb-agent"
42
+ }
43
+ },
44
+ "python-executor": {
45
+ "enabled": true,
46
+ "config": {
47
+ "pythonPath": "python",
48
+ "timeout": 120000,
49
+ "baseDir": ".agent/python-scripts",
50
+ "pipPath": null
51
+ }
52
+ },
53
+ "session": {
54
+ "enabled": true,
55
+ "config": {
56
+ "sessionTTL": 1800000,
57
+ "maxSessions": 100,
58
+ "maxHistoryLength": 150,
59
+ "autoCleanup": true,
60
+ "cleanupInterval": 300000,
61
+ "persistToStorage": true
62
+ }
63
+ },
64
+ "audit": {
65
+ "enabled": true,
66
+ "config": {
67
+ "maxLogs": 1000,
68
+ "retentionDays": 30,
69
+ "logDir": ".agent/logs"
70
+ }
71
+ },
72
+ "rules": {
73
+ "enabled": true,
74
+ "config": {
75
+ "rulesDir": ".agent/rules",
76
+ "autoLoad": true
77
+ }
78
+ },
79
+ "scheduler": {
80
+ "enabled": true,
81
+ "config": {
82
+ "checkInterval": 1000,
83
+ "persistencePath": ".agent/data/scheduler"
84
+ }
85
+ },
86
+ "file-system": {
87
+ "enabled": true,
88
+ "config": {}
89
+ },
90
+ "think": {
91
+ "enabled": true,
92
+ "config": {
93
+ "autoReflect": false,
94
+ "reflectDelay": 2000,
95
+ "maxReflectDepth": 3,
96
+ "enableContinuous": false
97
+ }
98
+ },
18
99
  "python-plugin-loader": {
19
100
  "enabled": true,
20
101
  "config": {}
21
102
  },
103
+ "telegram": {
104
+ "enabled": false,
105
+ "config": {
106
+ "botToken": "1980700161:AAHQQxKRAyg6-MuOTZDIj7x9WjEdIaGhK5I",
107
+ "allowedChats": [],
108
+ "groupMode": false,
109
+ "prefix": "/",
110
+ "systemPrompt": "你是一个有帮助的AI助手。"
111
+ }
112
+ },
113
+ "weixin": {
114
+ "enabled": false,
115
+ "config": {
116
+ "forceLogin": false,
117
+ "qrcodeTerminal": true,
118
+ "allowedUsers": [],
119
+ "systemPrompt": "你是一个有帮助的AI助手。回复内容不要使用markdown格式文本"
120
+ }
121
+ },
122
+ "email": {
123
+ "enabled": true,
124
+ "config": {}
125
+ },
22
126
  "subagent-manager": {
23
127
  "enabled": true,
24
128
  "config": {
25
- "agentsDir": ".agent/agents",
129
+ "agentsDir": "D:\\code\\vb-agent\\.agent\\agents",
26
130
  "agents": [
27
131
  {
28
- "name": "code-assistant",
29
- "description": "代码助手 - 专业的编程和代码分析助手",
30
- "instructions": "你是一个专业的代码助手,精通多种编程语言和开发技术。\n\n【核心能力】\n- 代码编写、调试和优化\n- 代码审查和重构建议\n- 多种编程语言支持(Python、JavaScript、TypeScript、Java等)\n- 代码问题诊断和解决\n- 解释复杂代码逻辑\n\n【工作原则】\n- 提供清晰、规范的代码\n- 包含必要的注释说明\n- 考虑代码性能和安全性\n- 遵循最佳实践",
31
- "tools": [
32
- "read_file",
33
- "write_file",
34
- "modify_file",
35
- "search_file",
36
- "python-execute",
37
- "execute_command",
38
- "shell"
39
- ],
132
+ "name": "code-archaeologist",
133
+ "description": "Expert in legacy code, refactoring, and understanding undocumented systems. Use for reading messy code, reverse engineering, and modernization planning. Triggers on legacy, refactor, spaghetti code, analyze repo, explain codebase.",
134
+ "tools": "Read, Grep, Glob, Edit, Write",
135
+ "model": "inherit",
136
+ "skills": "clean-code, refactoring-patterns, code-review-checklist",
137
+ "_fromDir": true
138
+ },
139
+ {
140
+ "name": "data-analyst",
141
+ "description": "Expert in data analysis, visualization, statistics, and Python data processing. Use for pandas, matplotlib, CSV analysis, statistical tests, and generating charts. Triggers on analyze data, chart, plot, statistics, csv, excel, pandas, matplotlib, correlation, trend.",
142
+ "tools": "Read, Write, Glob, Grep, PythonExecute, PythonScript, PipInstall, Bash",
143
+ "model": "inherit",
144
+ "skills": "python-data, statistics-basics, visualization-patterns",
40
145
  "_fromDir": true
41
146
  },
42
147
  {
43
- "name": "email-assistant",
44
- "description": "邮件助手 - 专业的邮件管理助手",
45
- "instructions": "你是一个专业的邮件助手,擅长邮件的读写、筛选和管理。\n\n【核心能力】\n- 读取和回复邮件\n- 发送新邮件(支持附件)\n- 邮件搜索和筛选\n- 邮件摘要生成\n- 批量邮件处理\n\n【工作原则】\n- 保持邮件格式规范\n- 回复内容专业得体\n- 保护隐私信息\n- 及时处理重要邮件",
46
- "tools": [
47
- "email_read",
48
- "email_send",
49
- "email_mark_read",
50
- "email_delete",
51
- "email_unread_count",
52
- "email_configure",
53
- "notification_send"
54
- ],
148
+ "name": "devops-engineer",
149
+ "description": "Expert in deployment, server management, CI/CD, and production operations. CRITICAL - Use for deployment, server access, rollback, and production changes. HIGH RISK operations. Triggers on deploy, production, server, pm2, ssh, release, rollback, ci/cd.",
150
+ "tools": "Read, Grep, Glob, Bash, Edit, Write",
151
+ "model": "inherit",
152
+ "skills": "clean-code, deployment-procedures, server-management, powershell-windows, bash-linux",
55
153
  "_fromDir": true
56
154
  },
57
155
  {
58
- "name": "file-assistant",
59
- "description": "文件助手 - 专业的文件管理和操作助手",
60
- "instructions": "你是一个专业的文件助手,擅长文件操作、目录管理、文件搜索和内容编辑。\n\n【核心能力】\n- 读取、创建、编辑、删除文件和目录\n- 搜索文件内容和文件名称\n- 批量文件操作\n- 文件内容分析和提取\n\n【工作原则】\n- 执行操作前确认路径正确\n- 危险操作(如删除)需要谨慎\n- 保持文件编码一致性\n- 重要文件操作前可创建备份",
61
- "tools": [
62
- "read_file",
63
- "write_file",
64
- "delete_file",
65
- "modify_file",
66
- "search_file",
67
- "read_directory",
68
- "create_directory",
69
- "execute_command"
70
- ],
156
+ "name": "email-admin",
157
+ "description": "Email management expert for sending, reading, configuring emails, and monitoring inbox. Use for composing emails, checking unread messages, setting up email watches, configuring SMTP/IMAP, and email automation. Triggers on email, mail, inbox, smtp, imap, send email, read email, unread.",
158
+ "tools": "Read, Write, Edit, Glob, Grep, Bash, Shell, ExecuteCommand, EmailSend, EmailRead, EmailConfigure, EmailWatch, EmailUnreadCount, EmailMarkRead, EmailDelete, EmailAutoReply, Fetch",
159
+ "model": "inherit",
160
+ "skills": "clean-code",
71
161
  "_fromDir": true
72
162
  },
73
163
  {
74
- "name": "system-assistant",
75
- "description": "系统助手 - 专业的系统信息监控和管理助手",
76
- "instructions": "你是一个专业的系统助手,精通系统信息监控和基础管理。\n\n【核心能力】\n- CPU、内存、磁盘使用情况监控\n- 网络接口信息查询\n- 系统运行状态分析\n- 性能问题诊断\n- 定时监控和报告\n\n【工作原则】\n- 提供清晰的数据展示\n- 发现异常及时提醒\n- 给出合理的优化建议\n- 保护系统安全",
77
- "tools": [
78
- "get_basic_info",
79
- "get_cpu_info",
80
- "get_memory_info",
81
- "get_disk_info",
82
- "get_network_info",
83
- "get_full_system_info",
84
- "notification_send",
85
- "schedule_task"
86
- ],
164
+ "name": "frontend-specialist",
165
+ "description": "Senior Frontend Architect who builds maintainable React/Next.js systems with performance-first mindset. Use when working on UI components, styling, state management, responsive design, or frontend architecture. Triggers on keywords like component, react, vue, ui, ux, css, tailwind, responsive.",
166
+ "tools": "Read, Grep, Glob, Bash, Edit, Write",
167
+ "model": "inherit",
168
+ "skills": "clean-code, nextjs-react-expert, web-design-guidelines, tailwind-patterns, frontend-design, lint-and-validate",
87
169
  "_fromDir": true
88
170
  },
89
171
  {
90
- "name": "web-assistant",
91
- "description": "网络助手 - 专业的网络数据获取和处理助手",
92
- "instructions": "你是一个专业的网络助手,精通网络数据获取和处理。\n\n【核心能力】\n- HTTP请求发送(GET/POST/PUT/DELETE等)\n- 网页内容抓取和解析\n- API调用和数据处理\n- JSON/XML数据解析\n- 网络问题诊断\n\n【工作原则】\n- 遵守网站使用协议\n- 合理控制请求频率\n- 数据处理规范\n- 异常情况妥善处理",
93
- "tools": [
94
- "fetch",
95
- "web_request",
96
- "execute_command",
97
- "python-execute",
98
- "notification_send"
99
- ],
172
+ "name": "product-manager",
173
+ "description": "Expert in product requirements, user stories, and acceptance criteria. Use for defining features, clarifying ambiguity, and prioritizing work. Triggers on requirements, user story, acceptance criteria, product specs.",
174
+ "tools": "Read, Grep, Glob, Bash",
175
+ "model": "inherit",
176
+ "skills": "plan-writing, brainstorming, clean-code",
177
+ "_fromDir": true
178
+ },
179
+ {
180
+ "name": "python-developer",
181
+ "description": "Expert in Python development including web frameworks (FastAPI, Flask, Django), data processing (pandas, numpy), automation scripts, and API development. Triggers on python, fastapi, flask, django, pandas, numpy, pip, virtualenv, pytest, script, automation.",
182
+ "tools": "Read, Write, Glob, Grep, SearchFile, PythonExecute, PythonScript, PipInstall, Bash",
183
+ "model": "inherit",
184
+ "skills": "python-patterns, fastapi-guide, pandas-cookbook",
185
+ "_fromDir": true
186
+ },
187
+ {
188
+ "name": "security-auditor",
189
+ "description": "Elite cybersecurity expert. Think like an attacker, defend like an expert. OWASP 2025, supply chain security, zero trust architecture. Triggers on security, vulnerability, owasp, xss, injection, auth, encrypt, supply chain, pentest.",
190
+ "tools": "Read, Grep, Glob, Bash, Edit, Write",
191
+ "model": "inherit",
192
+ "skills": "clean-code, vulnerability-scanner, red-team-tactics, api-patterns",
100
193
  "_fromDir": true
101
194
  }
102
195
  ]
103
196
  }
104
197
  },
105
- "system-info": {
106
- "enabled": true,
107
- "config": {}
108
- },
109
- "ai": {
110
- "enabled": true
111
- },
112
- "ambient": {
113
- "enabled": true,
114
- "config": {
115
- "enabled": true,
116
- "tickInterval": 5000,
117
- "cooldownPeriod": 3000,
118
- "persistencePath": ".agent/data/ambient",
119
- "defaultGoals": []
120
- }
121
- },
122
- "audit": {
123
- "enabled": true,
124
- "config": {
125
- "maxLogs": 1000,
126
- "retentionDays": 30,
127
- "logDir": ".agent/logs"
128
- }
129
- },
130
- "email": {
131
- "enabled": false,
132
- "config": {}
133
- },
134
- "extension-executor": {
198
+ "web": {
135
199
  "enabled": true,
136
200
  "config": {}
137
201
  },
138
202
  "feishu": {
139
203
  "enabled": false,
140
204
  "config": {
141
- "appId": "cli_a90e8b47db235bdb",
142
- "appSecret": "Vmfy9gXWtYQtec36uY3B8ecr1QEZO2N8",
143
205
  "allowedUsers": []
144
206
  }
145
207
  },
146
- "file-system": {
208
+ "test-subagent": {
147
209
  "enabled": true,
148
210
  "config": {}
149
211
  },
150
- "gate-trading": {
212
+ "system-info": {
151
213
  "enabled": true,
152
214
  "config": {}
153
215
  },
154
- "python-executor": {
216
+ "proactive-agent": {
155
217
  "enabled": true,
156
218
  "config": {
157
- "pythonPath": "python",
158
- "timeout": 120000,
159
- "baseDir": ".agent/python-scripts",
160
- "pipPath": null
219
+ "autoStart": false,
220
+ "exploreInterval": 30000,
221
+ "maxNoProgress": 5,
222
+ "maxIterations": 20,
223
+ "enableReflection": true,
224
+ "maxConcurrentGoals": 3,
225
+ "quiet": false,
226
+ "reflectionThreshold": 2
161
227
  }
162
228
  },
163
- "rules": {
229
+ "test-plugin": {
164
230
  "enabled": true,
165
- "config": {
166
- "rulesDir": ".agent/rules",
167
- "autoLoad": true
168
- }
169
- },
170
- "scheduler": {
171
- "enabled": true,
172
- "config": {
173
- "checkInterval": 1000,
174
- "persistencePath": ".agent/data/scheduler"
175
- }
231
+ "config": {}
176
232
  },
177
- "session": {
233
+ "ambient": {
178
234
  "enabled": true,
179
235
  "config": {
180
- "sessionTTL": 1800000,
181
- "maxSessions": 100,
182
- "maxHistoryLength": 150,
183
- "autoCleanup": true,
184
- "cleanupInterval": 300000,
185
- "persistToStorage": true
236
+ "enabled": true,
237
+ "tickInterval": 5000,
238
+ "cooldownPeriod": 3000,
239
+ "persistencePath": ".agent/data/ambient",
240
+ "defaultGoals": [],
241
+ "llmCallTimeout": 30000,
242
+ "actionTimeout": 20000
186
243
  }
187
244
  },
188
- "shell-executor": {
245
+ "puppeteer": {
189
246
  "enabled": true,
190
- "config": {
191
- "timeout": 60000,
192
- "workingDir": "D:\\Code\\vb-agent"
193
- }
247
+ "config": {}
194
248
  },
195
- "storage": {
249
+ "subagents": {
196
250
  "enabled": true,
197
251
  "config": {
198
- "type": "json",
199
- "path": ".agent/data",
200
- "namespace": "default"
201
- }
202
- },
203
- "telegram": {
204
- "enabled": false,
205
- "config": {
206
- "botToken": "\"1980700161:AAHQQxKRAyg6-MuOTZDIj7x9WjEdIaGhK5I\"",
207
- "allowedChats": [],
208
- "groupMode": false,
209
- "prefix": "/"
252
+ "agentsDir": "D:\\code\\vb-agent\\.agent\\agents",
253
+ "agents": []
210
254
  }
211
255
  },
212
- "think": {
256
+ "extension-executor": {
213
257
  "enabled": true,
214
- "config": {
215
- "autoReflect": false,
216
- "reflectDelay": 2000,
217
- "maxReflectDepth": 3,
218
- "enableContinuous": false
219
- }
258
+ "config": {}
220
259
  },
221
- "tools": {
260
+ "gate-trading": {
222
261
  "enabled": true,
223
262
  "config": {}
224
263
  },
225
- "web": {
264
+ "plugin_manager": {
226
265
  "enabled": true,
227
266
  "config": {}
228
267
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "timestamp": 1775122537798,
3
+ "url": "about:blank",
4
+ "cookies": [],
5
+ "storage": null
6
+ }
@@ -1,5 +1,4 @@
1
1
  {
2
2
  "mcpServers": {
3
-
4
3
  }
5
4
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "mcpServers": {
3
+ "MiniMax": {
4
+ "command": "uvx",
5
+ "args": ["minimax-coding-plan-mcp", "-y"],
6
+ "env": {
7
+ "MINIMAX_API_KEY": "sk-cp-jRMMNA-8Nqb3gIszeqj5thnLHpbNeLAFPfWiAH3aR_282Cr6qE7WnINOvq3b_vQ5QLybWMoYiphLYPhZCpW8Jg9zx-XmpTc9qxrVpHIB8J0JGeixxm2KhLw",
8
+ "MINIMAX_API_HOST": "https://api.minimaxi.com"
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,147 @@
1
+ # puppeteer-plugin
2
+
3
+ Puppeteer 网页自动化操作插件,支持浏览器控制、页面操作、元素交互、Session 管理。
4
+
5
+ ## 功能特性
6
+
7
+ - 🌐 浏览器管理:启动/关闭浏览器实例
8
+ - 📄 页面操作:打开页面、导航、截图、获取页面结构
9
+ - 🖱️ 元素交互:查找、点击、输入文本、悬停、按键模拟
10
+ - 🍪 Cookie 管理:获取、设置、清除 Cookie
11
+ - 💾 Session 管理:保存/恢复/删除浏览器会话状态
12
+ - ⏱️ 等待控制:元素等待、网络空闲等待
13
+
14
+ ## 工具列表
15
+
16
+ ### 浏览器控制
17
+ | 工具 | 说明 |
18
+ |------|------|
19
+ | `browser_launch` | 启动 Puppeteer 浏览器实例 |
20
+ | `browser_close` | 关闭浏览器实例 |
21
+ | `browser_status` | 获取当前浏览器状态 |
22
+
23
+ ### 页面操作
24
+ | 工具 | 说明 |
25
+ |------|------|
26
+ | `page_open` | 打开新页面或导航到 URL |
27
+ | `page_navigate` | 页面导航(前进、后退、刷新) |
28
+ | `page_screenshot` | 对页面进行截图 |
29
+ | `page_html` | 获取页面 HTML 内容 |
30
+ | `page_structure` | 获取页面关键结构信息(推荐) |
31
+ | `page_close` | 关闭指定页面 |
32
+
33
+ ### 元素交互
34
+ | 工具 | 说明 |
35
+ |------|------|
36
+ | `element_find` | 查找页面元素 |
37
+ | `element_find_all` | 查找所有匹配的元素 |
38
+ | `element_click` | 点击页面元素 |
39
+ | `element_type` | 向输入框输入文本 |
40
+ | `element_hover` | 鼠标悬停到元素 |
41
+ | `element_press` | 模拟键盘按键 |
42
+ | `element_wait` | 等待元素出现或消失 |
43
+
44
+ ### Cookie 管理
45
+ | 工具 | 说明 |
46
+ |------|------|
47
+ | `cookie_get` | 获取页面 Cookie |
48
+ | `cookie_set` | 设置 Cookie |
49
+ | `cookie_clear` | 清除 Cookie |
50
+
51
+ ### Session 管理
52
+ | 工具 | 说明 |
53
+ |------|------|
54
+ | `session_save` | 保存当前浏览器会话状态 |
55
+ | `session_load` | 加载并恢复浏览器会话状态 |
56
+ | `session_list` | 列出所有保存的 Session |
57
+ | `session_delete` | 删除指定的 Session |
58
+
59
+ ### 其他
60
+ | 工具 | 说明 |
61
+ |------|------|
62
+ | `js_execute` | 在页面中执行 JavaScript 代码 |
63
+ | `wait` | 等待指定时间 |
64
+ | `wait_network_idle` | 等待网络空闲 |
65
+
66
+ ## 安装
67
+
68
+ ```bash
69
+ foliko plugin install puppeteer-plugin
70
+ ```
71
+
72
+ ## 使用示例
73
+
74
+ ### 启动浏览器并打开网页
75
+
76
+ ```javascript
77
+ // 启动浏览器
78
+ await ext_call({
79
+ plugin: "puppeteer",
80
+ tool: "browser_launch",
81
+ args: {}
82
+ });
83
+
84
+ // 打开网页
85
+ await ext_call({
86
+ plugin: "puppeteer",
87
+ tool: "page_open",
88
+ args: { url: "https://example.com" }
89
+ });
90
+
91
+ // 截图
92
+ await ext_call({
93
+ plugin: "puppeteer",
94
+ tool: "page_screenshot",
95
+ args: { path: "screenshot.png" }
96
+ });
97
+ ```
98
+
99
+ ### 元素交互
100
+
101
+ ```javascript
102
+ // 查找并点击按钮
103
+ await ext_call({
104
+ plugin: "puppeteer",
105
+ tool: "element_click",
106
+ args: { selector: "button.submit" }
107
+ });
108
+
109
+ // 输入文本
110
+ await ext_call({
111
+ plugin: "puppeteer",
112
+ tool: "element_type",
113
+ args: { selector: "input[name='username']", text: "myuser" }
114
+ });
115
+ ```
116
+
117
+ ### Session 管理
118
+
119
+ ```javascript
120
+ // 保存当前会话
121
+ await ext_call({
122
+ plugin: "puppeteer",
123
+ tool: "session_save",
124
+ args: { sessionId: "my-session" }
125
+ });
126
+
127
+ // 恢复会话
128
+ await ext_call({
129
+ plugin: "puppeteer",
130
+ tool: "session_load",
131
+ args: { sessionId: "my-session" }
132
+ });
133
+ ```
134
+
135
+ ## 注意事项
136
+
137
+ 1. **无图片识别能力**:该插件没有识别图片的能力,截图只能保存
138
+ 2. **需要 Chromium**:Puppeteer 需要本地安装 Chromium 浏览器
139
+ 3. **Session 恢复**:加载 Session 时会自动恢复 Cookie 和浏览器状态
140
+
141
+ ## 依赖
142
+
143
+ - puppeteer-core: ^24.40.0
144
+
145
+ ## 版本
146
+
147
+ - v1.0.0