feat(app): 대화 screen to read what people said, Jarvis's answers and how each answer was made

The management app reads the worker's history store (read only) and shows
people's words, Jarvis's answers and the answer traces in time order, with
filters for kind, place, person, channel, day and text, live follow, older
items on demand and expandable traces (records given, tools offered, plan,
model thinking, tool calls and results).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-16 03:08:38 +09:00
parent a20ebe4eae
commit 46f71e7f03
15 changed files with 724 additions and 4 deletions

View File

@@ -221,6 +221,26 @@ editable on the 사람별 지침 screen.
- `notes_list` (everyone's, by person, IDs as strings), `note_update` `{id, text}` and `note_delete`
`{id}` serve the screen. Logs carry note ids only, never their text.
## Conversations (`app/src/history_view.rs`)
What people said, what Jarvis answered and how it made each answer, for the 대화 screen. Read
only, from the worker's history store `memory/history.sqlite` (`src/jarvis/memory/history.spec.md`,
records and "Traces"), so it works while the services are stopped. Nothing it reads goes to a log.
- Each item is `said` (a voice transcript, or a chat message by someone other than Jarvis),
`answered` (a spoken answer, or Jarvis's own chat message; to whom, when it answers someone) or
`thought` (a trace: the question, the answer or none, how long it took and its steps). Jarvis's
chat messages are known by the bot's user id (the first part of the stored token is that id in
base64) and by the author of any chat answer to someone.
- `history_query` `{said, answered, thought, via, person, channel, find, since, until, limit}`: the
three kinds (each on unless false), where (`voice`, `chat`, `task`; a task has traces only), a
person (their records, answers to them and traces of their questions), a channel, text the record
or the trace's question, answer or steps contains (records folded like the store: NFKC, lower
case), Unix seconds from (inclusive) and to (exclusive), and `limit` (1-2000, default 200). Answers
`{items, more, people, channels}`: the newest `limit` items in time order, whether older ones
were left out, the people who spoke (their latest name) and the channels with records (with the
name given a chat channel in the settings). Without the file: no items and `missing: true`.
## Activity (`app/src/activity.rs`)
`docs/v2/proactive.md` (제안 5). What Jarvis did outside its answers, for the 한 일 screen: each chat
@@ -664,6 +684,7 @@ back as Korean messages for the screen. The Tauri shell passes the screens' `inv
| `service_start` / `service_stop` / `service_restart` / `dashboard` | the controller and its snapshot; start and restart run in the background, stop also cancels a start |
| `discord_channel_info` `{id}` / `channel_sync_status` | a channel's Discord name and topic / each synced chat channel's last result (above) |
| `notes_list` / `note_update` `{id, text}` / `note_delete` `{id}` | everyone's personal notes (above) / change one's text / delete one |
| `history_query` `{said, answered, thought, via, person, channel, find, since, until, limit}` | the 대화 screen's records and answer traces (above, "Conversations") |
| `activity_list` `{limit}` | what Jarvis did (above, "Activity"), newest first |
| `schedules_list` / `schedule_delete` `{id}` | every person's schedules (above), soonest first, with IDs as strings / delete one |
| `collect_results` `{target, limit}` | `{targets, items}`: every target folder with results, and the collected items newest first (`target` null: every target; `limit` 1-500, default 100) |
@@ -708,6 +729,16 @@ Plain HTML, CSS and an ES module, no build step, dark theme after `DESIGN.md`. A
or "다시 울리지 않음", repeat, who and how they asked, kind and text as plain text, the last
outcome, delete).
- **사람별 지침**: every person's notes (name and ID, the text in a box, save and delete).
- **대화**: what people said, Jarvis's answers and how each answer was made, in time order with a
date line between days; people's words on the left, Jarvis's on the right with whom it answered,
each with its time, voice or chat and channel, and a copy button. A trace is a closed card (whose
question, how many tool calls, seconds, no answer) that opens to the question, the records and
notes it was given, the tools offered, the plan, the model's thinking, each tool call (name,
arguments, success, failure or skipped and why, its result) and the answer. Filters: the three
kinds as chips, where (음성, 채팅, 정기 작업), person, channel, one day and text; "실시간" (on by
default) refreshes every 3 seconds and redraws only when something changed, keeping the cards the
user opened open and the scroll where it was unless it was at the end; "이전 기록 더 보기" adds 200
older items; "생각 모두 펼치기/접기"; a count of each kind shown.
- **한 일**: the activity (time, kind, target, who asked, outcome and why it failed), newest 200,
with a refresh button.
- **업데이트**: the version here, the state, "다시 확인", "받기" (with its percentage) and "설치하고