proto: memory, the arguments of recall and memory and eight message kinds

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-25 16:41:35 -07:00
committed by kyle
parent 861ff7d06a
commit 964bd99b12
15 changed files with 616 additions and 1 deletions
+9 -1
View File
@@ -88,7 +88,7 @@ impl Broker {
}
}
/// The snake_case wire name of a message: all eighteen kinds, none with a leading underscore.
/// The snake_case wire name of a message: all twenty-six kinds, none with a leading underscore.
pub fn kind(msg: &Message) -> &'static str {
match msg {
Message::ToolRequest(_) => "tool_request",
@@ -109,6 +109,14 @@ pub fn kind(msg: &Message) -> &'static str {
Message::ApprovalPosted(_) => "approval_posted",
Message::ApprovalReply(_) => "approval_reply",
Message::ApprovalOutcome(_) => "approval_outcome",
Message::MemoryBlock(_) => "memory_block",
Message::MemoryBlockReply(_) => "memory_block_reply",
Message::SessionUpdated(_) => "session_updated",
Message::MemoryCall(_) => "memory_call",
Message::Reindex(_) => "reindex",
Message::Reindexed(_) => "reindexed",
Message::MemoryAdmin(_) => "memory_admin",
Message::MemoryAdminReply(_) => "memory_admin_reply",
}
}