+ {activeTab === "chunks" && (
+
+ {entry.usage && (
+
+
+
+ Input Tokens
+
+
+ {entry.usage.inputTokens}
+
+
+
+
+ Output Tokens
+
+
+ {entry.usage.outputTokens}
+
+
+
+
+ Total Tokens
+
+
+ {entry.usage.totalTokens}
+
+
+
+ )}
+
+ {chunks.length === 0 ? (
+
+
+ No memories were promoted to the Ledger during this turn.
+
+
+ All working memory buffer entries were summarized or
+ forgotten.
+
+
+ ) : (
+
+
+ Ledger Additions
+
+ {chunks.map((chunk: any, index: number) => (
+
+
+
+ {chunk.content}
+
+
+ Importance: {chunk.importance}
+
+
+
+ {chunk.quotes && chunk.quotes.length > 0 && (
+
+ {chunk.quotes.map((quote: string, qIdx: number) => (
+
“{quote}”
+ ))}
+
+ )}
+
+
+ {chunk.retainInBuffer ? (
+
+ Pinned in Buffer
+
+ ) : (
+
+ Pruned from Buffer
+
+ )}
+
+ {chunk.involvedEntityIds &&
+ chunk.involvedEntityIds.length > 0 && (
+
+ Entities:
+ {chunk.involvedEntityIds.map((entId: string) => (
+
+ {entId}
+
+ ))}
+
+ )}
+
+
+ ))}
+
+ )}
+
+ )}
+
+ {activeTab === "prompt" && entry.rawPrompt && (
+
+
+
+ System Prompt
+
+
+ {entry.rawPrompt.systemPrompt}
+
+
+
+
+
+ User Context (Candidates)
+
+
+ {entry.rawPrompt.userContext}
+
+
+
+ )}
+
+ {activeTab === "output" && (
+
+
+ Raw JSON Output
+
+
+ {handoffResult
+ ? JSON.stringify(handoffResult, null, 2)
+ : "No JSON Output recorded."}
+
+
+ )}
+
+