@songsid/agend 2.1.3 → 2.1.4-beta.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.
@@ -426,8 +426,6 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
426
426
  private handleOutboundFromInstance;
427
427
  /** Side effects of a routed reply: cancel-button lifecycle, logs, SSE, chat log. */
428
428
  private afterReplyRouted;
429
- /** Handle tool status update from a daemon instance */
430
- private handleToolStatusFromInstance;
431
429
  private handleScheduleTrigger;
432
430
  private notifySourceTopic;
433
431
  private notifyScheduleFailure;
@@ -2607,9 +2607,6 @@ export class FleetManager {
2607
2607
  }
2608
2608
  await this.handleOutboundFromInstance(name, msg);
2609
2609
  }
2610
- else if (msg.type === "fleet_tool_status") {
2611
- this.handleToolStatusFromInstance(name, msg);
2612
- }
2613
2610
  else if (msg.type === "fleet_schedule_create" || msg.type === "fleet_schedule_list" ||
2614
2611
  msg.type === "fleet_schedule_update" || msg.type === "fleet_schedule_delete") {
2615
2612
  this.handleScheduleCrud(name, msg);
@@ -3482,34 +3479,6 @@ export class FleetManager {
3482
3479
  ClassicChannelManager.logMessage(instanceName, "bot", args.text ?? "", new Date());
3483
3480
  }
3484
3481
  }
3485
- /** Handle tool status update from a daemon instance */
3486
- handleToolStatusFromInstance(instanceName, msg) {
3487
- const statusAdapter = this.getAdapterForInstance(instanceName) ?? this.adapter;
3488
- if (!statusAdapter)
3489
- return;
3490
- const text = msg.text;
3491
- const editMessageId = msg.editMessageId;
3492
- const senderSessionName = msg.senderSessionName;
3493
- const senderInstanceName = senderSessionName && this.fleetConfig?.instances[senderSessionName]
3494
- ? senderSessionName
3495
- : null;
3496
- const routingConfig = senderInstanceName
3497
- ? this.fleetConfig?.instances[senderInstanceName]
3498
- : (senderSessionName ? undefined : this.fleetConfig?.instances[instanceName]);
3499
- const threadId = routingConfig?.topic_id ? String(routingConfig.topic_id) : undefined;
3500
- const chatId = statusAdapter.getChatId();
3501
- if (!chatId)
3502
- return;
3503
- if (editMessageId) {
3504
- statusAdapter.editMessage(chatId, editMessageId, text, threadId).catch(e => this.logger.debug({ err: e }, "Failed to edit tool status message"));
3505
- }
3506
- else {
3507
- statusAdapter.sendText(chatId, text, { threadId }).then((sent) => {
3508
- const ipc = this.instanceIpcClients.get(instanceName);
3509
- ipc?.send({ type: "fleet_tool_status_ack", messageId: sent.messageId });
3510
- }).catch(e => this.logger.warn({ err: e }, "Failed to send tool status message"));
3511
- }
3512
- }
3513
3482
  // ===================== Scheduler =====================
3514
3483
  async handleScheduleTrigger(schedule) {
3515
3484
  const { target, reply_chat_id, reply_thread_id, message, label, id, source, silent } = schedule;