@adhdev/daemon-core 0.9.76-rc.33 → 0.9.76-rc.34
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.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +26 -0
package/dist/index.js
CHANGED
|
@@ -12245,6 +12245,14 @@ function buildChatDebugBundleSummary(bundle) {
|
|
|
12245
12245
|
const readChat = bundle.readChat && typeof bundle.readChat === "object" ? bundle.readChat : {};
|
|
12246
12246
|
const cli = bundle.cli && typeof bundle.cli === "object" ? bundle.cli : null;
|
|
12247
12247
|
const frontend = bundle.frontend && typeof bundle.frontend === "object" ? bundle.frontend : null;
|
|
12248
|
+
const debugReadChat = readChat.debugReadChat && typeof readChat.debugReadChat === "object" ? readChat.debugReadChat : {};
|
|
12249
|
+
const parsedStatus = cli?.parsedStatus && typeof cli.parsedStatus === "object" ? cli.parsedStatus : null;
|
|
12250
|
+
const cliParsedMessageCount = Array.isArray(parsedStatus?.messages) ? parsedStatus.messages.length : void 0;
|
|
12251
|
+
const readChatReturnedMessages = Array.isArray(readChat.messagesTail) ? readChat.messagesTail.length : void 0;
|
|
12252
|
+
const cliPartialResponse = typeof cli?.partialResponse === "string" ? cli.partialResponse : "";
|
|
12253
|
+
const readChatStatus = typeof readChat.status === "string" ? readChat.status : "";
|
|
12254
|
+
const cliStatus = typeof cli?.status === "string" ? cli.status : "";
|
|
12255
|
+
const cliParsedStatus = typeof parsedStatus?.status === "string" ? parsedStatus.status : "";
|
|
12248
12256
|
return {
|
|
12249
12257
|
createdAt: bundle.createdAt,
|
|
12250
12258
|
targetSessionId: target.targetSessionId,
|
|
@@ -12253,8 +12261,22 @@ function buildChatDebugBundleSummary(bundle) {
|
|
|
12253
12261
|
readChatSuccess: readChat.success,
|
|
12254
12262
|
readChatStatus: readChat.status,
|
|
12255
12263
|
readChatTotalMessages: readChat.totalMessages,
|
|
12264
|
+
readChatReturnedMessages,
|
|
12256
12265
|
cliStatus: cli?.status,
|
|
12266
|
+
cliParsedStatus: cliParsedStatus || void 0,
|
|
12257
12267
|
cliMessageCount: cli?.messageCount,
|
|
12268
|
+
cliParsedMessageCount,
|
|
12269
|
+
cliPartialResponseChars: cliPartialResponse.length,
|
|
12270
|
+
parserAdapterStatusMismatch: Boolean(cliStatus && cliParsedStatus && cliStatus !== cliParsedStatus),
|
|
12271
|
+
parserReadChatStatusMismatch: Boolean(readChatStatus && cliParsedStatus && readChatStatus !== cliParsedStatus),
|
|
12272
|
+
readChatDebug: Object.keys(debugReadChat).length ? {
|
|
12273
|
+
adapterStatus: debugReadChat.adapterStatus,
|
|
12274
|
+
parsedStatus: debugReadChat.parsedStatus,
|
|
12275
|
+
returnedStatus: debugReadChat.returnedStatus,
|
|
12276
|
+
parsedMsgCount: debugReadChat.parsedMsgCount,
|
|
12277
|
+
returnedMsgCount: debugReadChat.returnedMsgCount,
|
|
12278
|
+
shouldPreferAdapterMessages: debugReadChat.shouldPreferAdapterMessages
|
|
12279
|
+
} : void 0,
|
|
12258
12280
|
hasFrontendSnapshot: !!frontend
|
|
12259
12281
|
};
|
|
12260
12282
|
}
|