@adhdev/daemon-core 0.9.76-rc.33 → 0.9.76-rc.35

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/dist/index.mjs CHANGED
@@ -12048,6 +12048,14 @@ function buildChatDebugBundleSummary(bundle) {
12048
12048
  const readChat = bundle.readChat && typeof bundle.readChat === "object" ? bundle.readChat : {};
12049
12049
  const cli = bundle.cli && typeof bundle.cli === "object" ? bundle.cli : null;
12050
12050
  const frontend = bundle.frontend && typeof bundle.frontend === "object" ? bundle.frontend : null;
12051
+ const debugReadChat = readChat.debugReadChat && typeof readChat.debugReadChat === "object" ? readChat.debugReadChat : {};
12052
+ const parsedStatus = cli?.parsedStatus && typeof cli.parsedStatus === "object" ? cli.parsedStatus : null;
12053
+ const cliParsedMessageCount = Array.isArray(parsedStatus?.messages) ? parsedStatus.messages.length : void 0;
12054
+ const readChatReturnedMessages = Array.isArray(readChat.messagesTail) ? readChat.messagesTail.length : void 0;
12055
+ const cliPartialResponse = typeof cli?.partialResponse === "string" ? cli.partialResponse : "";
12056
+ const readChatStatus = typeof readChat.status === "string" ? readChat.status : "";
12057
+ const cliStatus = typeof cli?.status === "string" ? cli.status : "";
12058
+ const cliParsedStatus = typeof parsedStatus?.status === "string" ? parsedStatus.status : "";
12051
12059
  return {
12052
12060
  createdAt: bundle.createdAt,
12053
12061
  targetSessionId: target.targetSessionId,
@@ -12056,8 +12064,22 @@ function buildChatDebugBundleSummary(bundle) {
12056
12064
  readChatSuccess: readChat.success,
12057
12065
  readChatStatus: readChat.status,
12058
12066
  readChatTotalMessages: readChat.totalMessages,
12067
+ readChatReturnedMessages,
12059
12068
  cliStatus: cli?.status,
12069
+ cliParsedStatus: cliParsedStatus || void 0,
12060
12070
  cliMessageCount: cli?.messageCount,
12071
+ cliParsedMessageCount,
12072
+ cliPartialResponseChars: cliPartialResponse.length,
12073
+ parserAdapterStatusMismatch: Boolean(cliStatus && cliParsedStatus && cliStatus !== cliParsedStatus),
12074
+ parserReadChatStatusMismatch: Boolean(readChatStatus && cliParsedStatus && readChatStatus !== cliParsedStatus),
12075
+ readChatDebug: Object.keys(debugReadChat).length ? {
12076
+ adapterStatus: debugReadChat.adapterStatus,
12077
+ parsedStatus: debugReadChat.parsedStatus,
12078
+ returnedStatus: debugReadChat.returnedStatus,
12079
+ parsedMsgCount: debugReadChat.parsedMsgCount,
12080
+ returnedMsgCount: debugReadChat.returnedMsgCount,
12081
+ shouldPreferAdapterMessages: debugReadChat.shouldPreferAdapterMessages
12082
+ } : void 0,
12061
12083
  hasFrontendSnapshot: !!frontend
12062
12084
  };
12063
12085
  }