chat: huginn chat search CLI and render
`huginn chat search [TEXT]... [--room R]... [--after T] [--before T] [--top-k N] [--json]`; T is an RFC 3339 instant or an age (6h, 2d), one parser. The render prints the organ's header line per hit and each message verbatim with its event id, and a truncated listing ends with the --after that continues it. chrono moves from dev-dependency to dependency of eureka-state (already in the lock graph). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3b8fc7da1f
commit
7b70ca8899
6 changed files with 220 additions and 4 deletions
|
|
@ -144,3 +144,16 @@ What changed since the map was written:
|
|||
(`gamecult-chat:ruling:chat-index-minds-rooms`), Discord never.
|
||||
- A Mind that must remember DM content writes a memory citing the chat or room
|
||||
id as its source; the index is not where DM content is kept.
|
||||
|
||||
## Status: read side (cut chat-search)
|
||||
|
||||
Built: `huginn chat search [TEXT]... [--room R]... [--after T] [--before T] [--top-k N] [--json]`
|
||||
over request `SearchChat` (`sources::search_chat`), listing oldest first without
|
||||
texts and ranking by meaning with them. The chat point's shape is `ChatPayload`
|
||||
(`sources/mod.rs`); every point carries `corpus` (`forge` or `chat`) and
|
||||
`SourcesMeta.corpus` is `forge:GameCult+chat:rooms`. Not built: the ingest job
|
||||
that writes chat points through `upsert_chat`, and the event-id window. Until the
|
||||
ingest lands the collection holds no chat points and a chat search answers empty.
|
||||
In a listing across rooms, the last hit's `ts_end_ms + 1` can repeat messages of
|
||||
an earlier-starting longer chunk of another room; within one room it continues
|
||||
exactly.
|
||||
|
|
|
|||
Loading…
Reference in a new issue