foliko 1.0.40 → 1.0.41
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.
- package/.claude/settings.local.json +35 -1
- package/cli/src/ui/chat-ui.js +7 -2
- package/docs/features.md +120 -0
- package/examples/basic.js +110 -110
- package/examples/bootstrap.js +19 -0
- package/examples/mcp-example.js +53 -53
- package/examples/skill-example.js +49 -49
- package/examples/test-chat.js +6 -0
- package/examples/test-mcp.js +79 -79
- package/examples/test-reload.js +61 -61
- package/examples/test-web-plugin.js +98 -0
- package/package.json +4 -3
- package/plugins/default-plugins.js +11 -10
- package/plugins/feishu-plugin.js +291 -537
- package/plugins/scheduler-plugin.js +1 -1
- package/plugins/subagent-plugin.js +4 -4
- package/plugins/telegram-plugin.js +307 -522
- package/plugins/think-plugin.js +2 -2
- package/plugins/web-plugin.js +542 -0
- package/plugins/weixin-plugin.js +320 -274
- package/src/core/agent-chat.js +24 -27
- package/src/core/agent.js +77 -0
- package/src/core/framework.js +35 -0
- package/src/executors/executor-base.js +58 -58
- package/test-server.js +25 -0
|
@@ -243,7 +243,7 @@ class SubAgentPlugin extends Plugin {
|
|
|
243
243
|
})
|
|
244
244
|
|
|
245
245
|
try {
|
|
246
|
-
const result = await this._agent.
|
|
246
|
+
const result = await this._agent.pushMessage(args.task)
|
|
247
247
|
// 发射子Agent完成处理事件
|
|
248
248
|
parentAgent.emit('subagent:chat:end', {
|
|
249
249
|
parentAgent,
|
|
@@ -298,7 +298,7 @@ class SubAgentPlugin extends Plugin {
|
|
|
298
298
|
if (!this._agent) {
|
|
299
299
|
throw new Error(`SubAgent ${this.config.name} not initialized`)
|
|
300
300
|
}
|
|
301
|
-
return this._agent.
|
|
301
|
+
return this._agent.pushMessage(task)
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
reload(framework) {
|
|
@@ -412,7 +412,7 @@ class SubAgentManagerPlugin extends Plugin {
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
try {
|
|
415
|
-
const result = await plugin.
|
|
415
|
+
const result = await plugin.pushMessage(args.task)
|
|
416
416
|
return {
|
|
417
417
|
success: true,
|
|
418
418
|
agent: args.agentName,
|
|
@@ -475,7 +475,7 @@ class SubAgentManagerPlugin extends Plugin {
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
try {
|
|
478
|
-
const result = await plugin.
|
|
478
|
+
const result = await plugin.pushMessage(args.task)
|
|
479
479
|
return {
|
|
480
480
|
success: true,
|
|
481
481
|
agent: args.agentName,
|