foliko 1.0.39 → 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.
@@ -407,7 +407,7 @@ class SchedulerPlugin extends Plugin {
407
407
  return
408
408
  }
409
409
 
410
- const result = await agent.chat(task.message, {
410
+ const result = await agent.pushMessage(task.message, {
411
411
  isScheduledTask: true,
412
412
  sessionId: task.sessionId
413
413
  })
@@ -243,7 +243,7 @@ class SubAgentPlugin extends Plugin {
243
243
  })
244
244
 
245
245
  try {
246
- const result = await this._agent.chat(args.task)
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.chat(task)
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.chat(args.task)
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.chat(args.task)
478
+ const result = await plugin.pushMessage(args.task)
479
479
  return {
480
480
  success: true,
481
481
  agent: args.agentName,