proton-mail-bridge-client 2.18.1 → 2.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +18 -10
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/cli.js +2 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +45 -5
  7. package/dist/index.js.map +1 -1
  8. package/dist/services/contact-service.d.ts +79 -2
  9. package/dist/services/contact-service.d.ts.map +1 -1
  10. package/dist/services/contact-service.js +375 -130
  11. package/dist/services/contact-service.js.map +1 -1
  12. package/dist/tools/contacts.d.ts +9 -0
  13. package/dist/tools/contacts.d.ts.map +1 -1
  14. package/dist/tools/contacts.js +83 -25
  15. package/dist/tools/contacts.js.map +1 -1
  16. package/dist/tools/definitions.d.ts +34 -2
  17. package/dist/tools/definitions.d.ts.map +1 -1
  18. package/dist/tools/definitions.js +18 -3
  19. package/dist/tools/definitions.js.map +1 -1
  20. package/dist/tools/recipient-resolver.d.ts +37 -0
  21. package/dist/tools/recipient-resolver.d.ts.map +1 -0
  22. package/dist/tools/recipient-resolver.js +173 -0
  23. package/dist/tools/recipient-resolver.js.map +1 -0
  24. package/dist/utils/approval.d.ts +21 -3
  25. package/dist/utils/approval.d.ts.map +1 -1
  26. package/dist/utils/approval.js +187 -16
  27. package/dist/utils/approval.js.map +1 -1
  28. package/dist/utils/contact-text.d.ts +6 -0
  29. package/dist/utils/contact-text.d.ts.map +1 -1
  30. package/dist/utils/contact-text.js +26 -3
  31. package/dist/utils/contact-text.js.map +1 -1
  32. package/dist/utils/helpers.d.ts +5 -0
  33. package/dist/utils/helpers.d.ts.map +1 -1
  34. package/dist/utils/helpers.js +15 -1
  35. package/dist/utils/helpers.js.map +1 -1
  36. package/dist/utils/recipient-match.d.ts +12 -0
  37. package/dist/utils/recipient-match.d.ts.map +1 -0
  38. package/dist/utils/recipient-match.js +91 -0
  39. package/dist/utils/recipient-match.js.map +1 -0
  40. package/package.json +1 -1
package/README.md CHANGED
@@ -47,7 +47,7 @@ Let Claude Desktop (or Cline, or any MCP client) work with your Proton Mail, wit
47
47
  - "Which of my emails have attachments from this month?"
48
48
  - "Show me my drafts and tighten the oldest one."
49
49
  5. **Not sure about handing over control?** Start with `PROTONMAIL_MODE=drafts`: Claude can read, search and prepare drafts, but nothing is sent or deleted until you change the mode. The server also tells the client how to behave (ids, accounts, never obeying instructions found inside a message).
50
- 6. **Optional:** `PROTONMAIL_READ_ONLY=true` to browse without being able to change anything, `PROTONMAIL_TOOL_TIER=core` for a smaller tool set (25 instead of 128), and more accounts under [Multi-account support](#multi-account-support-v210). More recipes below in [Try it](#try-it-example-claude-prompts).
50
+ 6. **Optional:** `PROTONMAIL_READ_ONLY=true` to browse without being able to change anything, `PROTONMAIL_TOOL_TIER=core` for a smaller tool set (25 instead of 129), and more accounts under [Multi-account support](#multi-account-support-v210). More recipes below in [Try it](#try-it-example-claude-prompts).
51
51
 
52
52
  ---
53
53
 
@@ -62,7 +62,7 @@ Let Claude Desktop (or Cline, or any MCP client) work with your Proton Mail, wit
62
62
  - **Fast local search** — full-text search across your inbox from a local index that keeps its read state in step with the server
63
63
  - **Rules that suggest themselves** — a scan proposes filters and cleanup from your own mail, applies them to existing mail after a preview, and can forward by condition; see [Mailbox rules](#mailbox-rules-suggestions-filters-cleanup-forwarding)
64
64
  - **Automatic reply, per address, with rules** — off by default, with a preview of what it would do, draft-for-approval mode and working-hours; see [Autoresponder](#autoresponder-automatic-reply-per-address) (Proton's own auto-reply may be all you need)
65
- - **Full CLI** — a dedicated command for every one of the 128 MCP tools (plus a generic `tool <name>` passthrough), scriptable and pipeable; `doctor` checks every account and `report` prints a diagnostic summary for a bug report
65
+ - **Full CLI** — a dedicated command for every one of the 129 MCP tools (plus a generic `tool <name>` passthrough), scriptable and pipeable; `doctor` checks every account and `report` prints a diagnostic summary for a bug report
66
66
  - **Runs where you do** — Claude Desktop bundle, npm, Homebrew, or a [Docker image](#running-in-docker-headless-machines) for a headless machine
67
67
  - **Privacy-native** — no third-party email service involved; your mail stays on your machine
68
68
 
@@ -306,7 +306,7 @@ Reload the Cline extension after saving. Proton Mail tools will appear in Cline'
306
306
  For a server with no desktop, next to a headless Bridge. The image installs the published npm package and is published for each release to `ghcr.io/googlarz/proton-mail-bridge-client` (`:<version>` and `:latest`, linux/amd64 and linux/arm64). To build it yourself from this repo:
307
307
 
308
308
  ```bash
309
- docker build -f docker/Dockerfile --build-arg VERSION=2.18.1 -t proton-mail-bridge-client .
309
+ docker build -f docker/Dockerfile --build-arg VERSION=2.19.1 -t proton-mail-bridge-client .
310
310
  docker run -i --rm --network host \
311
311
  -e PROTONMAIL_USERNAME=you@proton.me -e PROTONMAIL_PASSWORD_FILE=/run/secrets/bridge \
312
312
  -v /path/to/bridge-password:/run/secrets/bridge:ro -v bridge-client-data:/data \
@@ -375,7 +375,7 @@ In `elicit` (with a client that supports it) and in `require`, a `confirmed` the
375
375
 
376
376
  **What you are asked.** A question with the tool, the account and the details that decide the effect: the recipients that will really be used (for a stored draft, those in the draft), the subject, how many messages, or what the plan would change. For the calls that change standing behaviour or touch many messages the question carries the effect too: `set_autoresponder` (on or off, mode, whether it answers people outside your contacts, subject and text, window, limits, rules), `set_rule` (the rule as it would be stored, from the proposal or stored rule it names, and for forwarding the cap of 50 messages a day), `apply_rules` (the matches of a real run, counted per rule), `bulk_delete` with a filter, `empty_folder` and `delete_folder` (a message count from the local index, which may be out of date, shown as "count unknown" when the index has nothing for the folder), `unsubscribe_sender` (by mail or by a link the server does not open), `respond_to_invite` (organiser and event) and `send_test_email`. The summary is **built by the server** from what it knows (its own stores and the call's arguments), never from text the model wrote about the action. Pieces that come from mail (subjects, addresses, ids) are shown as quoted single-line values, stripped of control, bidirectional and zero-width characters and cut short, after a fixed label; the whole text is cut at 1,500 characters (2,500 for `set_rule`, `set_autoresponder` and `apply_rules`) and only the first three messages are listed. A lookup that takes more than 5 seconds or fails leaves that line out; the question is still asked.
377
377
 
378
- For a reply or forward the recipients shown are the ones the reply tool will really use, **Reply-To included**, marked when it differs from the sender. `set_contact` and `import_contacts` show the person, tags, merge target and, for an import, the file with its card count.
378
+ For a reply or forward the recipients shown are the ones the reply tool will really use, **Reply-To included**, marked when it differs from the sender. `set_contact` and `import_contacts` show the person, aliases (as stored), tags, merge target (both people and the name that remains) and, for an import, the file, its card count and the first 20 people with their addresses. With approval on, a `set_contact` that sets aliases, a name or a merge, and every `import_contacts`, is always asked about. With `PROTONMAIL_APPROVAL=off` nobody is asked and the model's own `confirmed` is all there is.
379
379
 
380
380
  **What you approved is what runs.** For `send_draft`, `schedule_draft`, `delete_draft`, `approve_plan`, `import_contacts`, `set_rule` and `set_autoresponder`, the server keeps a digest of the draft, plan, vCard file, rule or automatic reply it showed you, on the call itself under a symbol that JSON from a client cannot carry, so the model can neither set nor forge it. If the content is different when the call runs (a draft edited in between, a file replaced, a rule or automatic reply changed), the call is refused and you are not asked to approve something else by accident. `schedule_draft` sends the snapshot it took when it was scheduled. The confirmation gate and the handlers read `dryRun`, `enabled`, `active` and `action` the same way; a malformed value gives the same error in both, instead of one skipping the gate.
381
381
 
@@ -458,7 +458,15 @@ A local ledger of what you promised and what was promised to you. `find_commitme
458
458
 
459
459
  ## Contacts (people, not addresses)
460
460
 
461
- `find_contact` (CLI: `find-contact`) finds a person by name, part of a name or address and returns them as one identity: their addresses (merged ones included), organisation, tags, your notes, first and last contact, message counts both ways, the last few subjects, and whether you have ever written to them. Counts, dates and names come from the local index each time; only what you say is stored. `set_contact` sets a display name, notes and tags (such as `vip`), merges another address into the same person, or splits one out again. `import_contacts` reads a local `.vcf` file (vCard 2.1, 3.0, 4.0) and takes name, e-mail addresses, organisation and note; it fills only what is not set yet, **never reads `CATEGORIES` and never sets a tag**, so a file cannot mark anyone as a VIP. An import also **never attaches an address to a person who already exists**: a card that names a known person (or whose address belongs to another person) adds nothing for those addresses and is reported under `conflicts` (the first 20, with `conflictCount` for the total). Merging two addresses into one person is something only `set_contact` with `mergeWith` does, so a file cannot give its own address someone's tags. A tag can be used in an autoresponder rule as `tag:vip` in `from`. Because tags change what the autoresponder does, `set_contact` and `import_contacts` are gated like the tools that reach outside: after a suspicious message was read in the session they ask for `confirmed: true` (or for your approval, with `PROTONMAIL_APPROVAL`).
461
+ `find_contact` (CLI: `find-contact`) finds a person by name, part of a name or address and returns them as one identity: their addresses (merged ones included), organisation, tags, your notes, first and last contact, message counts both ways, the last few subjects, and whether you have ever written to them. Counts, dates and names come from the local index each time; only what you say is stored. `set_contact` sets a display name, notes, aliases (nicknames) and tags (such as `vip`), merges another address into the same person, or splits one out again. `import_contacts` reads a local `.vcf` file (vCard 2.1, 3.0, 4.0) and takes name, e-mail addresses, organisation and note; it fills only what is not set yet, **never reads `CATEGORIES` and never sets a tag**, so a file cannot mark anyone as a VIP. An import also **never attaches an address to a person who already exists**: a card that names a known person (or whose address belongs to another person) adds nothing for those addresses and is reported under `conflicts` (the first 20, with `conflictCount` for the total). Merging two addresses into one person is something only `set_contact` with `mergeWith` does, so a file cannot give its own address someone's tags. A tag can be used in an autoresponder rule as `tag:vip` in `from`. Because tags change what the autoresponder does, `set_contact` and `import_contacts` are gated like the tools that reach outside: after a suspicious message was read in the session they ask for `confirmed: true` (or for your approval, with `PROTONMAIL_APPROVAL`). Addresses that are not plain valid addresses (control, bidi or invisible characters in a store file) are left out of every result and hint. With `PROTONMAIL_APPROVAL=off` (the default) **nobody is asked** when contacts change: `set_contact` and `import_contacts` run at once, and the only check is the model's own `confirmed: true`, which is asked for only after a suspicious message was read and which the model can set itself. Because aliases and names decide whom `resolve_recipient` suggests, **use `PROTONMAIL_APPROVAL=elicit` (with a client that supports elicitation) or `require` for contacts that feed recipient suggestions**: then you are asked every time a call sets aliases, a name or a merge, and for every import, and a `confirmed` from the model is ignored. The approval questions for `set_contact` and `import_contacts` are built from the contact store's own dry run (the very code the call then runs, on a copy of the store), so they show exactly what will be stored (the effect first, then the people the call started from; at most 5 addresses and 5 tags per person, the rest counted; an import lists the first 20 cards with at most 3 addresses each, after its summary): each person's final name with its source (`set by you` or `imported from a vCard file`), aliases and addresses, or why the call will be refused; they are not worked out a second time. A call that would be refused is not put to you at all, and the answer is bound to what you were shown: the contact service recomputes what the call would store inside its lock, and if the contacts changed while you decided (another call, another process) the call is refused as stale and nothing is stored. Tags that a merge carries over are shown. The approval question for `set_contact` lists all aliases (each exactly as it will be stored, with a note when cleaning changed it), for an unmerge the addresses that stay together and the name and aliases that stay with them, and for a merge (`mergeWith`) it shows both people as stored (name, aliases, addresses), which address ends up first and the name that remains (the name the call sets, if it sets one). The question for `import_contacts` lists the first 20 people of the file with their addresses and says how many more cards there are. A name that came from an imported file is never an exact match on its own (`resolve_recipient` rates it `likely` at most), because it is whatever the file's author wrote, until you give the contact a different name with `set_contact`; passing the same imported name again (which an `unmerge` asks for) keeps it marked as imported. In a merge, a name keeps the `imported` mark when it equals the imported name of either person being merged; any other name becomes a name you set yourself, and the approval question says which. The approval questions for a merge and an unmerge say when a name came from an imported file, and show every name and alias exactly as it will be stored (invisible characters removed), noting when cleaning changed what was given.
462
+
463
+ **Nicknames and typos: `aliases` and `resolve_recipient`.** `set_contact` takes `aliases`: up to 10 nicknames per person (each 1-40 characters, no `@`), replaced as a list, an empty list clears them. An alias belongs to one person: the same alias (case, diacritics and full-width forms ignored) for a second person is refused, and the error names the first; so is an alias that is another person's display name, and a display name that is another person's alias (an import leaves such a name out and lists it under `nameConflicts`). A merge that would give one person more than 10 aliases is refused, naming the aliases that do not fit, rather than dropping any. Splitting an address out of a merged person (`unmerge`) is refused while the people left would keep a name or aliases, so a merged-in address cannot be left holding \"Boss\": clear them with `displayName: null` and `aliases: []` in the same call and set them again where they belong. `find_contact` matches aliases and shows them.
464
+
465
+ `resolve_recipient` (CLI: `resolve-recipient <text>`, read-only, also in the `reader` profile) turns what you typed for a recipient (a name, a nickname, a part of a name, or an address that may have a typo) into a short list of candidates with the real address, a `confidence` (`exact`, `likely`, `possible`) and `matchedBy` (`displayName`, `alias`, `address`, `typo-of-address`, `name-prefix`), plus `multipleFits: true` when more than one candidate is likely or better. **Candidates come only from your saved contacts, the people you saved with `set_contact` or `import_contacts`.** Nothing is taken from your mail: not from the index, a header, the Sent folder or any message. The reason is that all of that is text a sender controls (a reused Message-ID, a forged `From`, a lookalike address in a Cc), and a recipient chosen from it could be an attacker's. Someone who is not saved gives no candidate, and the result tells the caller to ask you for the address. `multipleFits: false` does not mean \"no need to ask\": every result with a candidate carries `askBeforeUse: true`, and a single candidate is shown to you and confirmed like several. A person with more than one address (merged addresses) that is found by name or alias comes back with `needsAddressChoice: true`, all `addresses` and no single `address`, so no merge can quietly make a nickname point at one address: you say which. Matching ignores case and diacritics (Polish letters included) and folds full-width letters (NFKC); letters of another alphabet that merely look alike (a Cyrillic \"а\" for a Latin \"a\") are different letters and are not unified. An entry with an `@` is compared with the saved addresses only, up to 2 edits: one edit away from an entry that is not an address at all is `likely`, two edits `possible`. A query that is already a valid address and is not saved is **never corrected**: it may be a different person's address, so the nearest saved contacts are shown as `possible` only, with their full address and name, next to a note saying the query was not replaced. **It never picks for you:** it only suggests, the client is told to show the candidate and the real address and to ask before using it, and nothing is ever substituted or sent on its own. Names imported from a vCard file are labelled `imported from a vCard file`, not `saved`; they are text someone else wrote, shown and never followed. The same holds for `create_draft`, the reply and forward drafts, `send_email` and the other tools that take `to`, `cc` or `bcc`: when an entry is not a valid address, the error keeps its original text (cleaned to one short line, since an entry can be text a mail header carried, as in reply-all and forward) and adds up to 3 suggestions from the saved contacts of the account the call works on (named by `account`, the email or draft id, or `from`, else the primary) as text, naming that account; a person with several addresses is listed with all of them and \"ask which\"; an entry that is a valid address is never looked at or changed (a valid address with a typo in it, such as `ann@exmaple.com`, is not corrected: use `resolve_recipient` for that).
466
+
467
+ **The limit on Polish inflection.** Names change their ending in Polish ("Maciek", "Maćka", "Maćkowi"). `resolve_recipient` does not know Polish grammar and has no dictionary; it recognises a few common patterns only: a name with up to 3 extra letters at the end ("Jana" for "Jan", "Piotrowi" for "Piotr"), a final vowel that changes ("Kasię" for "Kasia", "Mamy" for "Mama"), the "-ek" / "-iek" names that lose the "e" ("Marka" for "Marek", "Maćka" for "Maciek"), and the start of a name typed so far ("Mac", at least 3 letters, `possible` only). Other forms (a changed stem such as "Ewie" for "Ewa", a diminutive that is not stored as an alias, a surname in another case) are not found: add the form you use as an alias. Names in other languages get the same rules, which fit them by chance only. Only saved contacts are searched, for names and for addresses: a person who has only written to you and is not saved gives no candidate (`find_contact` still shows what the index knows about them, for your own reading).
468
+
469
+ **Proton's own address book.** Reading or syncing Proton's own address book is not possible through Bridge (it exposes IMAP and SMTP only). Until Proton offers an official, supported way to sync contacts other than exporting a .vcf file, contacts here are a local store you fill with import_contacts. Some community tools reach Proton's contacts and calendar through Proton's undocumented private API; this project does not, because that needs your real Proton account password (not just the Bridge password) and can break without notice. We are waiting for Proton to expose a supported way and will add it then.
462
470
 
463
471
  Limits: at most 5 MB and 5000 cards per import (the result says if cards were left); nothing is fetched over the network and nothing changes in the mailbox. This is a store of your own (in the account's data directory, one per account), not Proton's address book, which Bridge does not expose: export your contacts from Proton as vCard if you want them here. A name taken from mail headers is whatever the sender wrote; it is cleaned of control and invisible characters and shown, never followed.
464
472
 
@@ -658,7 +666,7 @@ All commands support `--json` for machine-readable output, and any MCP tool is d
658
666
 
659
667
  `<command> --help` prints that command's usage without running it. Flags accept `--flag value` or `--flag=value` (a value starting with `--` needs the `=` form, or must come after a bare `--`); unknown flags are an error. Exit codes: `0` success, `1` failure (including a failed `doctor` or `connection-status` check, or a failed item in a `batch`/`bulk-*` run), `2` usage error.
660
668
 
661
- **Full command reference: [docs/cli.md](docs/cli.md)** (a named command for every one of the 128 tools, across read, triage, compose, mailbox actions, folders, drafts, templates, analytics, and diagnostics).
669
+ **Full command reference: [docs/cli.md](docs/cli.md)** (a named command for every one of the 129 tools, across read, triage, compose, mailbox actions, folders, drafts, templates, analytics, and diagnostics).
662
670
 
663
671
  ---
664
672
 
@@ -680,7 +688,7 @@ A mode is a floor: the individual flags below can make things stricter (`PROTONM
680
688
  All flags work in both the MCP server and CLI:
681
689
 
682
690
  ```bash
683
- PROTONMAIL_TOOL_TIER=core # expose 25 core tools instead of all 128 — saves context window
691
+ PROTONMAIL_TOOL_TIER=core # expose 25 core tools instead of all 129 — saves context window
684
692
  PROTONMAIL_READ_ONLY=true # disable all write operations
685
693
  PROTONMAIL_ALLOW_SEND=false # disable SMTP sends only (other writes still work)
686
694
  PROTONMAIL_CONFIRM_DESTRUCTIVE=true # require confirmed:true on send, reply, forward, delete
@@ -724,7 +732,7 @@ PROTONMAIL_PASSWORD_COMMAND='pass proton/password'
724
732
  PROTONMAIL_DATA_DIR="$HOME/.proton-mail-bridge-client"
725
733
 
726
734
  # Tools
727
- PROTONMAIL_TOOL_TIER='full' # 'core' exposes 25 essential tools, incl. draft review/edit and list_accounts (saves context window); 'full' exposes all 128
735
+ PROTONMAIL_TOOL_TIER='full' # 'core' exposes 25 essential tools, incl. draft review/edit and list_accounts (saves context window); 'full' exposes all 129
728
736
  PROTONMAIL_TOOLSET='full' # 'full' (all tools), 'core' (the same 25 as TOOL_TIER=core) or 'reader' (read-only tools only, nothing that writes or sends); hides tools and refuses calls to them, never widens PROTONMAIL_MODE; wins over TOOL_TIER; invalid -> full
729
737
 
730
738
  # Safety
@@ -838,7 +846,7 @@ With several accounts or a signature, the server sends from whichever `from` the
838
846
  `create_template` · `list_templates` · `get_template` · `delete_template` · `render_template` — `{{variable}}` substitution, render then pass the result to `send_email`
839
847
 
840
848
  ### Contacts & categories
841
- `find_contact` · `set_contact` · `import_contacts` · `define_category` · `list_categories` · `categorize_inbox` · `correct_category` — see [Contacts](#contacts-people-not-addresses) and [Own categories](#own-categories-separate-from-protons)
849
+ `find_contact` · `resolve_recipient` · `set_contact` · `import_contacts` · `define_category` · `list_categories` · `categorize_inbox` · `correct_category` — see [Contacts](#contacts-people-not-addresses) and [Own categories](#own-categories-separate-from-protons)
842
850
 
843
851
  ### Import/export & attachments
844
852
  `export_email` · `import_email` · `get_attachment_text` · `get_emails_by_ids`
@@ -921,7 +929,7 @@ Measured in October 2026 (v2.7.0) on a copy of the same ~57,000-message index. "
921
929
  - Draft and queued-message bodies are shortened to a preview in list and update responses (`bodyTruncated`, `bodyLength`); use `get_draft` for one full draft. Attachment content is never inlined in a listing.
922
930
  - Large attachments: set `PROTONMAIL_ALLOW_FILE_DOWNLOAD_DIR` and pass `saveTo`, rather than raising `PROTONMAIL_MAX_INLINE_KB`. **Do not point `PROTONMAIL_ALLOW_FILE_DOWNLOAD_DIR` at a broad directory such as `$HOME`:** `save_attachment` could then overwrite shell startup files, LaunchAgents or `~/.claude/settings.json`. The server refuses destinations inside any account's data directory (its `attachments` folder excepted) and the trusted CA file (`save_attachment(s)`, `export_email`), even when the download directory contains them, but it protects nothing else. This was already true before 2.17.
923
931
  - Office files are read in a small pool: at most 2 documents at a time, up to 16 waiting (further ones fail with a `busy` error), each worker memory-limited and each job stopped after 10 seconds from its start.
924
- - **`PROTONMAIL_TOOL_TIER=core`** exposes 25 tools instead of 128: about 7k tokens of tool definitions instead of about 21k (measured with 116 tools, before the eleven tools of 2.17 were added and not re-measured; the full set now costs somewhat more) (roughly 67% less; the earlier measurement with a reference tokenizer, 7k against 20k for 96 tools, scaled by the 3.7% the four newest tool definitions add), paid on every conversation that loads the server.
932
+ - **`PROTONMAIL_TOOL_TIER=core`** exposes 25 tools instead of 129: about 7k tokens of tool definitions instead of about 21k (measured with 116 tools, before the eleven tools of 2.17 were added and not re-measured; the full set now costs somewhat more) (roughly 67% less; the earlier measurement with a reference tokenizer, 7k against 20k for 96 tools, scaled by the 3.7% the four newest tool definitions add), paid on every conversation that loads the server.
925
933
  - Repeating an `update_draft` that changes nothing on a draft whose remote copy is already in sync does no store write and no IMAP upload. (A draft whose last sync failed, or that was edited with `syncToRemote:false`, still syncs.)
926
934
 
927
935
  **Working with drafts**
package/dist/cli.d.ts.map CHANGED
@@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,CAgQ1C;AA+ED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGzD"}
package/dist/cli.js CHANGED
@@ -2223,7 +2223,8 @@ export const TOOL_ONLY_COMMANDS = [
2223
2223
  { command: "set-commitment", tool: "set_commitment", positionals: [], help: "Record a commitment, or close one (--args '{\"text\":\"...\",\"direction\":\"mine\",\"due\":\"2026-11-05\"}')" },
2224
2224
  { command: "commitments", tool: "list_commitments", positionals: [], help: "The commitment ledger: overdue, due today, open, probably done (--args '{\"status\":\"all\"}')" },
2225
2225
  { command: "find-contact", tool: "find_contact", positionals: ["query"], help: "A person by name or address: addresses, organisation, tags, notes, counts both ways, last subjects" },
2226
- { command: "set-contact", tool: "set_contact", positionals: ["address"], help: "Tag, name, annotate, merge or unmerge a contact (--args '{\"addTags\":[\"vip\"]}' or '{\"mergeWith\":\"other@example.com\"}' or '{\"unmerge\":true}')" },
2226
+ { command: "resolve-recipient", tool: "resolve_recipient", positionals: ["query"], help: "Suggest who a name, nickname or mistyped address means (candidates with confidence; never picks one for you)" },
2227
+ { command: "set-contact", tool: "set_contact", positionals: ["address"], help: "Tag, name, add aliases to, annotate, merge or unmerge a contact (--args '{\"addTags\":[\"vip\"]}' or '{\"mergeWith\":\"other@example.com\"}' or '{\"unmerge\":true}')" },
2227
2228
  { command: "import-contacts", tool: "import_contacts", positionals: ["path"], help: "Import people from a local .vcf file into the contact store" },
2228
2229
  { command: "style-profile", tool: "get_style_profile", positionals: [], help: "How you write, from your sent mail: language, greeting, closing, tone (--args '{\"recipient\":\"pat@client.example\",\"refresh\":true}')" },
2229
2230
  { command: "get-brief", tool: "get_brief", positionals: [], help: "(tool form; see also `brief`)" },