proton-mail-bridge-client 2.2.4 → 2.3.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.
package/dist/index.js CHANGED
@@ -1345,7 +1345,7 @@ const TOOLS = [
1345
1345
  },
1346
1346
  {
1347
1347
  name: "search_indexed_emails",
1348
- description: "Search the local SQLite mailbox index (of ALL configured accounts by default; pass `account` = address or slug to search only one; non-primary ids are prefixed '<slug>::') without making any IMAP connection. Supports free-text and field shortcuts inline: from:alice@example.com, to:bob, subject:invoice, label:Archive, domain:acme.com. Use for fast, offline-capable searches when the index is populated. Prefer search_emails when you need live IMAP results or when the index is stale or empty. Prefer this over search_emails when the index is current. Use search_emails if messages were received after the last sync. Each email's attachments are metadata only (id/filename/contentType/size/disposition) — use list_attachments or get_email_by_id for full attachment detail.",
1348
+ description: "Search the local SQLite mailbox index (of ALL configured accounts by default; pass `account` = address or slug to search only one; non-primary ids are prefixed '<slug>::') without making any IMAP connection. Supports free-text and field shortcuts inline: from:alice@example.com, to:bob, subject:invoice, label:Archive, domain:acme.com. Use for fast, offline-capable searches when the index is populated. Prefer search_emails when you need live IMAP results or when the index is stale or empty. Prefer this over search_emails when the index is current. Use search_emails if messages were received after the last sync. Each email's attachments are metadata only (id/filename/contentType/size/disposition) — use list_attachments or get_email_by_id for full attachment detail. Matching ignores case and accents and also spelling variants: pelcova finds Pelcová, lodzi finds Łodzi, strasse finds Straße, and mueller and muller both find Müller (ä/ö/ü/ø/å also match their ae/oe/ue/oe/aa spellings).",
1349
1349
  annotations: { readOnlyHint: true },
1350
1350
  inputSchema: {
1351
1351
  type: "object",
@@ -2862,7 +2862,7 @@ async function refreshIndexForSearch(bundle) {
2862
2862
  }
2863
2863
  }
2864
2864
  async function maybeRefreshLocalIndex(imapService, localIndexService, input = {}) {
2865
- const status = await localIndexService.getStatus();
2865
+ const status = await localIndexService.getFreshness();
2866
2866
  if (!input.force && status.storedMessageCount > 0 && !status.isStale) {
2867
2867
  // Not stale by age, but age alone cannot see mail that arrived since the last sync
2868
2868
  // (background sync/IDLE may be off, failing, or not covering this account). Compare the