mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-06 06:44:37 +00:00
Context.syncIncoming carried real protocol policy — the NIP-59 gift-wrap since-cursor rule (2-day lookback, advance only when events arrive), per-group cursor bookkeeping, and the MIP-00 consumed-KeyPackage rotation — that the Android app implements separately. Divergence there silently drops DMs, so the policy now lives once in commons/marmot/MarmotSyncPolicy with Cursors/Relays/drain/publish injected, and the CLI Context wires itself in as a thin adapter. Behavior is unchanged (the body moved verbatim, comments included). Also resolves aliases from the per-account aliases.json in Context.requireUserHex, so 'amy dm send bob ...' works with a local alias — previously aliases.json was written but never read. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CP4kfLCa3wWtE8Khy21Pkj