feat: personal notes, each person's standing instructions for how Jarvis answers them

A personalNotes tool (add, list, delete the asker's own notes) offered only
with a notes backend. The app keeps the notes in config/notes.json and sends
the asker's with every voice, chat and task reply; the reply engine puts them
in a <person_notes> fence as that person's preferences, which never permit an
action or a tool. The worker's schedule bridge becomes a shared app bridge
for schedule_action and note_action. A 사람별 지침 screen edits and deletes
any note; features.notes turns the tool and the notes off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-14 17:10:53 +09:00
parent e4b6327cf9
commit a5bd25b86f
32 changed files with 901 additions and 91 deletions

View File

@@ -64,7 +64,8 @@ manages the MCP servers it connects.
brain tool `botBrowser`, `src/jarvis/tools/builtin/bot_browser.spec.md`), also on by default;
`browserShare` (봇용 크롬창 화면공유 선택 표시, the bot browser on the virtual monitor, below
"Virtual monitor"), off by default; `schedule` (reminders and scheduled tasks, below
"Schedules", and the brain tool `schedule`), on by default. The tools of a feature that
"Schedules", and the brain tool `schedule`), on by default; `notes` (personal notes, below
"Personal notes", and the brain tool `personalNotes`), on by default. The tools of a feature that
is off go into the brain's `disabled_tools`: they are neither offered nor run
(`voice_worker.spec.md`, "Tools"). The other features of the 기능 screen (PC control, screen
viewing) come with their milestone (M7).
@@ -161,6 +162,23 @@ decision 2026-11-14). What Jarvis may do on this PC and for whom; the PC control
- The PC 제어 screen edits the section and shows, read-only, what is never done and each registered
chat channel's send and delete switches (changed on the 채팅 채널 screen).
## Personal notes (`app/src/notes.rs`)
`docs/v2/proactive.md` (제안 4). Each person's standing instructions for how Jarvis answers them,
saved by the brain's `personalNotes` tool (`src/jarvis/tools/builtin/personal_notes.spec.md`) and
editable on the 사람별 지침 screen.
- **Store**: `config/notes.json`, `{nextId, items}`; each `{id, user, name, text, created}`. Text
1-300 characters (whitespace collapsed), at most 20 per person. Read and written whole, one change
at a time in the process.
- **The brain's actions** (`note_action`, `voice_worker.spec.md`, "Personal notes") are done for the
person named in it only: `add` (named as Discord shows them now), `list`, `delete` (one of theirs).
- **Sent with replies**: every voice answer, chat answer and scheduled task carries the asker's notes
(`reply` `notes`), oldest first; nobody else's. With `features.notes` off (on by default) none are
sent and the tool is not offered; the notes stay and can be edited.
- `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.
## Activity (`app/src/activity.rs`)
`docs/v2/proactive.md` (제안 5). What Jarvis did outside its answers, for the 한 일 screen: each chat
@@ -572,6 +590,7 @@ back as Korean messages for the screen. The Tauri shell passes the screens' `inv
| `settings_fields` / `settings_view` / `settings_apply` `{changes}` | the settings editor above; `restartNeeded` when the services run; `sync` with the chat channels sent to Discord (below) |
| `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 |
| `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) |
@@ -615,6 +634,7 @@ Plain HTML, CSS and an ES module, no build step, dark theme after `DESIGN.md`. A
as plain text). The 예약 screen has `schedule.chatChannel` and every person's schedules (next time
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).
- **한 일**: 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 "설치하고