Document M3 in AGENTS.md
This commit is contained in:
1 file changed
+11
-2
@@ -28,7 +28,10 @@ src/config.rs GSettings wrapper (+ REGENT_RELAYS override)
|
||||
src/runtime.rs tokio runtime + the bridge back to the GTK main loop
|
||||
src/state.rs the key store, once connected, and change notifications
|
||||
src/signer/mod.rs the NIP-46 responder
|
||||
src/signer/approval.rs asking the user (timeout ⇒ deny)
|
||||
src/store/apps.rs the registry of approved applications
|
||||
src/store/keys.rs key storage (Secret Service, one item per key)
|
||||
src/ui/approval.rs approval dialogs
|
||||
src/ui/keys_view.rs the keys page
|
||||
src/ui/signer_view.rs the signer page (pairing string, QR, state)
|
||||
src/ui/qr.rs QR → GdkTexture
|
||||
@@ -45,8 +48,14 @@ data/ desktop, metainfo, gschema, icons, resources (ui/*.blp, sty
|
||||
- Methods: `connect` (verifies the pairing secret), `get_public_key`,
|
||||
`get_relays`, `switch_relays`, `ping`, `sign_event`,
|
||||
`nip04/nip44_encrypt|decrypt`.
|
||||
- **⚠️ Until M4 every request is answered without asking.** The UI says so in the
|
||||
banner, deliberately. M3 adds pairing approval, M4 per-request approval.
|
||||
- **M3 state:** pairing asks first. A client that is not in the registry gets no
|
||||
answer to anything except `connect`, and approvals are remembered in
|
||||
`apps.json`. **Requests from an approved client are still answered without
|
||||
asking** — that is M4; the banner says so.
|
||||
- Approvals go through `signer::approval::Approver`: the responder asks over a
|
||||
channel, the dialog answers, and **a timeout or a missing UI denies** — never
|
||||
allows. Client names/URLs shown in the dialog are client-supplied and must be
|
||||
treated as display hints only.
|
||||
- Relays come from GSettings (`relays`); `REGENT_RELAYS` (comma separated)
|
||||
overrides them, which is what headless tests use. The default is
|
||||
`wss://nostr.kosmos.org` because **many public relays reject or rate-limit
|
||||
|
||||
Reference in new issue
Block a user