docs: update pairing docs with SQLite persistence and TUI execution details

This commit is contained in:
William Valentin
2026-02-09 22:09:30 -08:00
parent 99b7e743f4
commit bab3f26ef6
5 changed files with 14 additions and 11 deletions
+3 -1
View File
@@ -161,10 +161,12 @@ All adapters implement `ChannelAdapter` interface (`src/channels/types.ts`): `co
- Gateway lock: Single-client WebSocket mode (`server.lock`)
**DM Pairing Codes:**
- Implementation: `src/channels/pairing.ts`
- Implementation: `src/channels/pairing.ts`, `src/session/store.ts` (SQLite persistence)
- Purpose: Authenticate unknown senders via one-time codes
- Config: `pairing.enabled`, `pairing.code_ttl` (default 5m), `pairing.code_length` (default 6)
- Gateway handlers for code generation/verification
- TUI `/pair` command execution (generate/list/revoke) in `src/frontends/tui/minimal.ts`
- Persistence: `PairingStore` interface with SQLite `pairing_approved` table -- approved senders survive daemon restarts
**Gmail OAuth2:**
- SDK: `googleapis` (`src/automation/gmail.ts`)