foliko 1.1.49 → 1.1.50
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.
|
@@ -90,6 +90,74 @@
|
|
|
90
90
|
"text": "好问题!让我给你列一下我能做的事情:\n\n## 🛠️ 核心能力\n\n### 💬 对话聊天\n- 日常聊天、回答问题、提供建议\n\n### 📝 文件操作\n- 读写文件、搜索内容、创建目录、修改文件\n\n### 🌐 网络请求\n- 抓取网页、调用 API、获取远程数据\n\n### 🐍 编程执行\n- 执行 Python 代码、安装 Python 包\n- 执行 Shell 命令、运行脚本\n\n### 🎨 创意设计\n- **制作海报** - 用 poster 插件生成精美海报/卡片\n- **Markdown 转图片** - 把文档渲染成图片\n\n### ⏰ 定时任务\n- 设置提醒、定时执行任务、Cron 表达式\n\n### 🧠 记忆系统\n- 记住你的偏好、项目信息、参考资料\n\n### 🔌 扩展插件\n- **加密货币交易** - Gate.io 现货/合约交易\n- **QQ 消息** - 发送 QQ 私聊/群聊消息\n- **Web 服务** - 启动 HTTP 服务、注册 Webhook\n\n### 🤖 子 Agent 专家团队\n- **前端开发** - 写 React/Vue/HTML/CSS\n- **后端开发** - API、数据库、微服务\n- **UI 设计** - 界面设计、交互设计\n- **数据分析** - 统计、可视化、报表\n- **DevOps** - 部署、Docker、K8s\n- **测试/安全** - 自动化测试、代码审计\n- **产品经理** - 需求分析、PRD\n\n### 🎯 技能系统\n- 浏览器自动化、工作流引擎、主动思考等\n\n---\n\n**想试试哪个?** 比如我马上可以:\n- 给你画张海报 🎨\n- 写个小程序 💻\n- 查个有趣的信息 🌐\n- 设置个定时提醒 ⏰"
|
|
91
91
|
}
|
|
92
92
|
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"role": "user",
|
|
96
|
+
"content": "在吗"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"role": "assistant",
|
|
100
|
+
"content": [
|
|
101
|
+
{
|
|
102
|
+
"type": "reasoning",
|
|
103
|
+
"text": "用户问\"在吗\",很简单的问候。我不需要调用工具,直接友好回应即可。"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "text",
|
|
107
|
+
"text": "在呢!😄 随时待命~\n\n有什么需要帮忙的,直接说!"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"role": "user",
|
|
113
|
+
"content": "Hi"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"role": "assistant",
|
|
117
|
+
"content": [
|
|
118
|
+
{
|
|
119
|
+
"type": "reasoning",
|
|
120
|
+
"text": "用户只是简单打了个招呼\"Hi\",直接友好回应即可,不需要调用工具。"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "text",
|
|
124
|
+
"text": "Hi!👋 有什么可以帮你的吗?"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"role": "user",
|
|
130
|
+
"content": "你好"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"role": "assistant",
|
|
134
|
+
"content": [
|
|
135
|
+
{
|
|
136
|
+
"type": "reasoning",
|
|
137
|
+
"text": "用户再次说\"你好\",看起来像是在测试或者随意打招呼。我就简单回应一下就好。"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "text",
|
|
141
|
+
"text": "你好呀!😊 我一直在,随时可以陪你聊天或者帮你做事~"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"role": "user",
|
|
147
|
+
"content": "哈哈"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"role": "assistant",
|
|
151
|
+
"content": [
|
|
152
|
+
{
|
|
153
|
+
"type": "reasoning",
|
|
154
|
+
"text": "用户只是笑了下,看来心情不错。我可以轻松回应一下,然后可能引导对话继续。"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "text",
|
|
158
|
+
"text": "哈哈,心情不错嘛!😄\n\n有什么想聊的,或者想让我帮你做点好玩的吗?"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
93
161
|
}
|
|
94
162
|
],
|
|
95
163
|
"variables": {},
|
package/package.json
CHANGED
package/plugins/qq-plugin.js
CHANGED
|
@@ -355,13 +355,6 @@ class QQPlugin extends Plugin {
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
async _initBotAsync() {
|
|
358
|
-
log.info('QQ 配置检查:', {
|
|
359
|
-
appId: this.config.appId,
|
|
360
|
-
clientSecret: this.config.clientSecret ? '***' + this.config.clientSecret.slice(-6) : 'undefined',
|
|
361
|
-
envQQ_APP_ID: process.env.QQ_APP_ID,
|
|
362
|
-
envQQ_CLIENT_SECRET: process.env.QQ_CLIENT_SECRET ? '***' + process.env.QQ_CLIENT_SECRET.slice(-6) : 'undefined',
|
|
363
|
-
});
|
|
364
|
-
|
|
365
358
|
if (!this.config.appId || !this.config.clientSecret) {
|
|
366
359
|
log.error('QQ_APP_ID and QQ_CLIENT_SECRET must be configured')
|
|
367
360
|
return
|
package/src/core/subagent.js
CHANGED
|
@@ -67,6 +67,9 @@ class Subagent extends EventEmitter {
|
|
|
67
67
|
// 标记为子Agent(用于区分主Agent)
|
|
68
68
|
this._isSubagent = true;
|
|
69
69
|
|
|
70
|
+
this.providerOptions.deepseek = this.providerOptions.deepseek || {};
|
|
71
|
+
this.providerOptions.deepseek.thinking={ type: 'disabled' }
|
|
72
|
+
|
|
70
73
|
this.framework.once('framework:ready', () => {
|
|
71
74
|
const extExecutor = this.framework?.pluginManager?.get('extension-executor');
|
|
72
75
|
extExecutor._refreshAllAgentsExtPrompt(this.framework);
|