6 Commits
Author SHA1 Message Date
Kevin BurchellandClaude Opus 5.5 9abc58d49b setup.sh: compare cron fields by their first word
'hermes cron list' prints explanations after values, e.g. 'no-agent (script
stdout delivered directly)', so the exact mode comparison rejected the
correct job. Compare script/mode/delivery by first word and accept trailing
text after the schedule; a mismatch error no longer suggests removing a job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 19:26:35 -07:00
Kevin BurchellandClaude Opus 5.5 6e73f598a1 Hermes 1.3.1 + API v5: fixes from Hermes's 1.3 review
1. Specific-dates reminders can't be split: a DB trigger keeps due_at on one
   of the dates whatever changes it; the API rejects single-time edits and
   accepts dates_local to replace the list atomically; web snooze hidden.
2. Claims return has_more_dates; delivery says 'last scheduled date' on the
   final one instead of promising more.
3. append_note is one atomic UPDATE (bf_append_note); the web app's
   'Add to this note' uses the same pattern (append_to_note).
4. setup.sh parses 'hermes cron list' blocks and matches the job name
   exactly; a failed or unreadable listing aborts instead of creating;
   duplicates abort; paused jobs are resumed and the schedule reconciled.
Docs: calendar week vs next 7 days, overdue_before, checklist wording,
archived notes in calendar vs search. Tests: 53 pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:53:52 -07:00
Kevin BurchellandClaude Opus 5.5 f90f78c0c7 setup.sh: fix cron job detection under pipefail
grep -q exited on the first match, hermes then hit SIGPIPE while printing
its trailing gateway warning, and pipefail reported the existing job as
missing. That made 'test' wrong and could let 'activate' create a duplicate
or 'uninstall' skip removal. Capture the list first, then match.
README: troubleshooting for gateway/terminal environment mismatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:58:57 -07:00
Kevin BurchellandClaude Opus 5.5 f2a78717d6 Hermes skill 1.1: request files instead of shell heredocs; fix cron runs docs
Hermes review found (1) note text in a fixed-delimiter heredoc could escape
into the shell, (2) 'hermes cron runs' takes a job ID, not a name.

- helper: 'call NAME.json' reads a JSON request from a private inbox
  (plain files only, no links/paths, 64 KB cap, deleted after reading,
  allow-listed ops only); status reports the inbox path
- SKILL.md: agent writes requests with its file tool; user text never
  appears in a shell command
- setup.sh creates inbox/ (700); docs use cron list -> runs <id>
- tests: hostile payloads stored verbatim with no execution, bad names,
  links, disallowed ops, oversized and non-JSON requests (36 pass)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:49:32 -07:00
Kevin BurchellandClaude Opus 5.5 c9db4c61b0 Hermes setup: keep an installed copy of setup.sh for status/uninstall
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:21:02 -07:00
Kevin BurchellandClaude Opus 5.5 9c07eaa0af Hermes integration: agent API, skill, helper, setup, tests
- brainfeed-api edge function: fixed v1 operations (add/search/edit notes
  and reminders, claim/ack delivery, self-revoke), token bound to user,
  sha256 fingerprints only, constant-time compare, X-BrainFeed-Token header
- DB: api_tokens with column-locked RLS, lease-based reminder claims,
  DST-safe anchored recurrence, reactivation rules
- Hermes skill + stdlib helper + setup.sh (install/activate/status/test/
  uninstall) + end-to-end tests
- Web app: Settings panel for time zone and connected agents

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:20:19 -07:00