Commit Graph

3 Commits

Author SHA1 Message Date
beo3000 d2f8319772 fix(process): derive target date from message send day, not processing day
A message sent yesterday but processed today (e.g. by the next service
run) landed in today's daily note. The send time was captured in
received_at but only HH:MM reached the LLM; the date defaulted to
date.today(). Now today/weekday in the processor context are derived per
item from received_at, so "gestern"/"heute" resolve relative to when the
message was actually written. Adds day_context() helper and a regression
test (sent 2026-06-25, processed 2026-06-26 -> note 2026-06-25).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 08:19:29 +02:00
beo3000 08756f99ed feat: windows service + WPF tray GUI for journal-bot
Two thin .NET 10 shells around the Python CLI (tools/JournalBot.slnx):

- JournalBot.Service: Windows Service (LocalSystem), PeriodicTimer runs
  `journal_bot ingest` every 15 min, logs to runtime/logs/service.log.
- JournalBot.Tray: WPF tray app, status banner + Historie/Log tabs +
  Ingest/Process/Both buttons; runs `process` (needs user-session LM Studio).
- JournalBot.Shared: QueueItem DTO, BotRunner (subprocess, kills tree on
  cancel), RuntimeReader (history/status/log); 7 xUnit tests.

Python side: QueueItem gains optional result fields (target_path,
written_entry, processed_at); complete() rewrites JSON atomically;
process_once records them so the GUI can show what was written where.

Install via scripts/{build-tools,install-service,install-tray}.ps1;
replaces the old install-task.ps1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 09:37:39 +02:00
beo3000 c3d345b6a7 feat(cli): ingest/process/both/write subcommands wiring all components 2026-06-15 17:36:02 +02:00