Commit Graph
1 Commits
Author SHA1 Message Date
hzrd149andClaude Opus 4.8 478378d14f Sync AI settings to Nostr via NIP-78
Adds encrypted, account-bound sync of AI settings (providers, models, MCP
servers) as a kind 30078 addressable event with a 'shakespeare-ai-settings'
d tag. Settings JSON is nip44-encrypted to the user's own pubkey, so secrets
stay private on relays.

- aiSettingsSync.ts: build/fetch/decrypt helpers + nip44 guard
- useAISettingsSync + provider/context: debounced push-on-change, pull on
  login (newest-wins), manual back up / restore, auto-sync toggle
- configUtils: export aiSettingsSchema; local-only ai-sync.json metadata
- AISettings page: signed-in-only "Sync to Nostr" card
- replaceSettings bulk setter on AISettings context
- i18n keys translated across all locales

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-08 14:51:13 -05:00