mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-29 14:02:19 +00:00
feat(memory): singleton ingestion + status RPC + UI pill (#1126)
This commit is contained in:
@@ -72,6 +72,23 @@ pub enum DomainEvent {
|
||||
/// this variant is a hook for future ingestion subscribers to react to pull
|
||||
/// requests. See `src/openhuman/memory/ops.rs` for the RPC handlers.
|
||||
MemorySyncRequested { channel_id: Option<String> },
|
||||
/// A memory ingestion job started running on the local extraction LLM.
|
||||
/// Ingestion is singleton — this fires once, then a matching
|
||||
/// [`Self::MemoryIngestionCompleted`] follows when the job finishes.
|
||||
MemoryIngestionStarted {
|
||||
document_id: String,
|
||||
title: String,
|
||||
namespace: String,
|
||||
queue_depth: usize,
|
||||
},
|
||||
/// A memory ingestion job finished (successfully or with an error).
|
||||
MemoryIngestionCompleted {
|
||||
document_id: String,
|
||||
namespace: String,
|
||||
success: bool,
|
||||
elapsed_ms: u64,
|
||||
queue_depth: usize,
|
||||
},
|
||||
|
||||
// ── Channels ────────────────────────────────────────────────────────
|
||||
/// An inbound channel message from the transport layer, ready for processing.
|
||||
@@ -366,7 +383,9 @@ impl DomainEvent {
|
||||
|
||||
Self::MemoryStored { .. }
|
||||
| Self::MemoryRecalled { .. }
|
||||
| Self::MemorySyncRequested { .. } => "memory",
|
||||
| Self::MemorySyncRequested { .. }
|
||||
| Self::MemoryIngestionStarted { .. }
|
||||
| Self::MemoryIngestionCompleted { .. } => "memory",
|
||||
|
||||
Self::ChannelInboundMessage { .. }
|
||||
| Self::ChannelMessageReceived { .. }
|
||||
|
||||
Reference in New Issue
Block a user