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:
7
app/tests/fixtures/fake_engine_worker.py
vendored
7
app/tests/fixtures/fake_engine_worker.py
vendored
@@ -29,9 +29,12 @@ class FakeBrain:
|
||||
"예약" adds a reminder through the schedule backend and answers with its result; a task answers
|
||||
"task: <text>"."""
|
||||
|
||||
def reply(self, user, text, history, chat=None, schedule=None, task=False):
|
||||
def reply(self, user, text, history, chat=None, schedule=None, task=False, notes=None, notes_backend=None):
|
||||
if task:
|
||||
return f"task: {text}"
|
||||
return f"task: {text}" + (f" notes={'|'.join(notes)}" if notes else "")
|
||||
if "지침" in text and notes_backend is not None:
|
||||
got = notes_backend.act("add", text="반말로 해")
|
||||
return f"noted {got.get('item', {}).get('id')} {got.get('error', '')}".strip()
|
||||
if "예약" in text and schedule is not None:
|
||||
got = schedule.act("add", kind="remind", text="물 마시기", at=4_000_000_000.0, repeat="daily")
|
||||
return f"scheduled {got.get('item', {}).get('id')} {got.get('error', '')}".strip()
|
||||
|
||||
Reference in New Issue
Block a user