@mgcrea/mcp-apple-mail 1.37.0 → 1.39.0

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/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as loadConfig, b as MAIL_SURFACE, j as BUILD_INFO, r as createServer } from "./server-D5S4dzq6.js";
2
+ import { a as loadConfig, b as MAIL_SURFACE, j as BUILD_INFO, r as createServer } from "./server-xvo5NH7k.js";
3
3
  import { runStdioServer } from "@mgcrea/mcp-apple-core";
4
4
  //#region src/cli.ts
5
5
  const LOG_PREFIX = "apple-mail-mcp";
package/dist/index.d.ts CHANGED
@@ -193,11 +193,25 @@ type EditComposerArgs = {
193
193
  attachments?: string[];
194
194
  save?: boolean;
195
195
  expectHead?: string;
196
+ /**
197
+ * With `expectHead`: the head is the draft's whole stored text (up to its
198
+ * cap), so below 120 characters the window must hold exactly that text, not
199
+ * merely begin it. Sent for a draft that is not a reply, whose stored text is
200
+ * its own; a reply's runs on into its quote, which the window lists apart. An
201
+ * app that predates it ignores it and checks the prefix.
202
+ */
203
+ expectWhole?: boolean;
196
204
  };
197
205
  type ReachReport = {
198
206
  ok: boolean;
199
- /** `accessibility` when Mail's windows cannot be read; null when they can. */
200
- reason: "accessibility" | null;
207
+ /**
208
+ * `accessibility` when the app tried and Mail's windows could not be read;
209
+ * `refused` when the app would not lend its driver at all; null when they
210
+ * could be read.
211
+ */
212
+ reason: "accessibility" | "refused" | null;
213
+ /** The host's own sentence when `reason` is `refused`; null otherwise. */
214
+ refusal: string | null;
201
215
  windows: string[] | null;
202
216
  };
203
217
  type MailAxLaneOptions = {
@@ -255,8 +269,16 @@ declare class MailAxLane {
255
269
  * Mail with no windows is legitimate — everything closed to the menu bar — so
256
270
  * an empty list is not evidence of anything and must not refuse a reply that
257
271
  * would have worked.
272
+ *
273
+ * A refused HANDSHAKE is kept apart from a failed read. The host turns the
274
+ * lend away before any window is asked for — Mail switched off, no licence,
275
+ * or a connection it does not recognise as this server — and every one of
276
+ * those used to come back here as `accessibility`, so the sentence a person
277
+ * read sent them to grant something already granted.
258
278
  */
259
279
  reach(): Promise<ReachReport>;
280
+ /** The sentence to say when the host refused to lend its driver at all. */
281
+ static refusalMessage(mode: string, refusal: string): string;
260
282
  /**
261
283
  * The sentence to say when the app is there but Mail's windows cannot be read.
262
284
  *
@@ -407,6 +429,13 @@ type ParsedMessage = {
407
429
  path: string;
408
430
  partial: boolean;
409
431
  };
432
+ type SourcePage = {
433
+ source: string;
434
+ totalBytes: number;
435
+ truncated: boolean;
436
+ /** Where the next page starts, in bytes. Pass it back as `offset`. */
437
+ nextOffset: number;
438
+ };
410
439
  //#endregion
411
440
  //#region src/client/schema.d.ts
412
441
  type IndexCapabilities = {
@@ -643,6 +672,13 @@ type MailboxMapOptions = {
643
672
  declare class MailboxMap {
644
673
  #private;
645
674
  constructor(opts: MailboxMapOptions);
675
+ /**
676
+ * True when an allowlist is set. A query that names no account then has a
677
+ * scope of its own, the admitted accounts, rather than none: a SQL lane that
678
+ * read "no account given" as "no filter" would count, name and page through
679
+ * mail the user excluded before any row reached this map.
680
+ */
681
+ get restricted(): boolean;
646
682
  /**
647
683
  * The account list. An expired one is served at once and refreshed behind
648
684
  * the call: LIST_ACCOUNTS measured ~1 s, and with a plain TTL that second
@@ -662,6 +698,14 @@ declare class MailboxMap {
662
698
  * `[Gmail]/`-stripped, then final path segment, then case-insensitive.
663
699
  */
664
700
  resolveMailboxName(account: MailAccount, wanted: string): string;
701
+ /**
702
+ * `resolveMailboxName` for a name a caller asked for, with `resolveAccount`'s
703
+ * second chance: the account came out of a list that can be stale by design,
704
+ * so a name it lacks earns one fresh read before it is refused. A mailbox
705
+ * created in Mail, or synced from another device, since that list was taken
706
+ * is then found on the first call rather than the one after.
707
+ */
708
+ resolveMailbox(account: MailAccount, wanted: string): Promise<string>;
665
709
  /**
666
710
  * Map an Envelope Index `mailboxes.url` onto a scriptable account + mailbox.
667
711
  * The URL host is the account UUID (verified against live Mail), so this join
@@ -680,6 +724,15 @@ declare class MailboxMap {
680
724
  account: MailAccount;
681
725
  mailbox: string;
682
726
  } | null;
727
+ /**
728
+ * True when an Envelope Index `mailboxes.url` belongs to an admitted account.
729
+ *
730
+ * The host alone decides, on purpose. `resolveIndexUrl` also needs the path
731
+ * to name a mailbox Mail scripts, and a row whose path does not resolve is
732
+ * still that account's mail: scoping by the host keeps it in the admitted
733
+ * set, where the per-row lookup decides what it can show.
734
+ */
735
+ admitsIndexUrl(url: string): Promise<boolean>;
683
736
  invalidate(): void;
684
737
  }
685
738
  //#endregion
@@ -796,6 +849,7 @@ declare class AppleMailClient {
796
849
  */
797
850
  composerAxReach(): Promise<{
798
851
  ok: boolean;
852
+ refusal: string | null;
799
853
  windows: string[] | null;
800
854
  } | null>;
801
855
  lanes(): Promise<LaneStatus>;
@@ -976,10 +1030,7 @@ declare class AppleMailClient {
976
1030
  getMessageSource(ref: string, opts: {
977
1031
  offset: number;
978
1032
  maxBytes: number;
979
- }): Promise<{
980
- source: string;
981
- totalBytes: number | null;
982
- truncated: boolean;
1033
+ }): Promise<SourcePage & {
983
1034
  via: "emlx" | "applescript";
984
1035
  fallbackReason?: string;
985
1036
  }>;
@@ -1017,14 +1068,21 @@ declare class AppleMailClient {
1017
1068
  * without their attachments is most older mail, Mail is asked to download
1018
1069
  * the attachment (see `#fetchFromMail`).
1019
1070
  */
1020
- saveAttachment(ref: string, filename: string, opts?: {
1071
+ saveAttachment(ref: string, requested: string, opts?: {
1021
1072
  overwrite?: boolean;
1022
1073
  }): Promise<{
1023
1074
  path: string;
1024
1075
  bytes: number;
1025
1076
  from: "inline" | "sidecar" | "mail";
1026
1077
  }>;
1027
- /** Set flags across refs, one Apple Event per distinct mailbox. */
1078
+ /**
1079
+ * Set flags across refs, one Apple Event per distinct mailbox.
1080
+ *
1081
+ * This and the move and delete below settle each mailbox on its own (see
1082
+ * core's `settleGroups`): a mailbox whose script throws gets a failed row
1083
+ * per ref while the mailboxes already changed keep theirs, and `unknown`
1084
+ * counts refs whose script timed out mid-change.
1085
+ */
1028
1086
  setFlags(refs: string[], flags: {
1029
1087
  read?: boolean;
1030
1088
  flagged?: boolean;
@@ -1033,6 +1091,7 @@ declare class AppleMailClient {
1033
1091
  }): Promise<{
1034
1092
  changed: number;
1035
1093
  failed: number;
1094
+ unknown?: number;
1036
1095
  results: unknown[];
1037
1096
  }>;
1038
1097
  moveMessages(refs: string[], opts: {
@@ -1041,12 +1100,14 @@ declare class AppleMailClient {
1041
1100
  }): Promise<{
1042
1101
  moved: number;
1043
1102
  failed: number;
1103
+ unknown?: number;
1044
1104
  destination: string;
1045
1105
  results: unknown[];
1046
1106
  }>;
1047
1107
  deleteMessages(refs: string[]): Promise<{
1048
1108
  deleted: number;
1049
1109
  failed: number;
1110
+ unknown?: number;
1050
1111
  movedToTrash: boolean | null;
1051
1112
  results: unknown[];
1052
1113
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/build-info.ts","../src/client/errors.ts","../src/client/locate.ts","../src/config.ts","../src/client/ax.ts","../src/client/mime.ts","../src/client/emlx.ts","../src/client/schema.ts","../src/client/envelope.ts","../src/client/mailbox-map.ts","../src/client/mail.ts","../src/client/ref.ts","../src/client/watch.ts","../src/tools/watch.ts","../src/server.ts","../src/tools/index.ts"],"mappings":";;;;;cAkBa,YAAY;;;;cCeZ,6BAA6B;WACtB;EAElB,YAAY;;;;;;;;;;;;;;;;;;;;KCbF;;EAEV;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;;KAKU;;EAEV;;EAEA;;EAEA;;EAEA;;cAiBW,sBAAmB,OAAU,kBAAqB;;;;;;;;;;;;;;;cC3CzD,cAAY,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFP,EAAA,KAAA;KAEC,SAAS,EAAE,aAAa;;;;;cAMvB,aAAU,MAAS,OAAO,eAA2B;;;KCxCtD;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;;;;;;;EAWN,oBAAoB,qBAAqB,oBAAoB;;;;;;EAgC7D,kBAAkB,sBAAsB;;EAcxC,IACJ,QAAQ,kBAAkB,kBAC1B,kCACC;IAAU,OAAO;IAAO;;;;;cChiBhB;cACA;KAED;EACV,QAAQ;EACR,SAAS;;EAET,YAAY;;EAEZ,MAAM;;EAEN,UAAU;;EAEV,sBAAsB;;KAGZ;EACV,QAAQ;EACR,QAAQ;;EAER,UAAU;;EAEV,SAAS;;;;;;;cAQE,eAAY,MAAU,wBAAsB;;;KCvC7C;;;;;EAKV;;;;;EAKA,UAAU;;;;;;;;;;;;;cAcC,gBAAa,QAChB,WAAS,QACT,iBAAe,KAClB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/build-info.ts","../src/client/errors.ts","../src/client/locate.ts","../src/config.ts","../src/client/ax.ts","../src/client/mime.ts","../src/client/emlx.ts","../src/client/schema.ts","../src/client/envelope.ts","../src/client/mailbox-map.ts","../src/client/mail.ts","../src/client/ref.ts","../src/client/watch.ts","../src/tools/watch.ts","../src/server.ts","../src/tools/index.ts"],"mappings":";;;;;cAkBa,YAAY;;;;cCeZ,6BAA6B;WACtB;EAElB,YAAY;;;;;;;;;;;;;;;;;;;;KCbF;;EAEV;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;;KAKU;;EAEV;;EAEA;;EAEA;;EAEA;;cAiBW,sBAAmB,OAAU,kBAAqB;;;;;;;;;;;;;;;cC3CzD,cAAY,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFP,EAAA,KAAA;KAEC,SAAS,EAAE,aAAa;;;;;cAMvB,aAAU,MAAS,OAAO,eAA2B;;;KCvCtD;EAAgB;EAAgB;EAAc;;;KAG9C;;;;;;;;;EASV;;;;;;;;;;;EAWA;;EAEA;;;;;;;;EAQA;;EAEA;;EAEA;;EAEA;EACA;EACA;;EAEA;;EAEA;EACA;;;;;;EAMA;;EAEA;;EAEA;;;;;;EAMA;;EAE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AAY;;;;;;;;EAWN,oBAAoB,qBAAqB,oBAAoB;;;;;;EAgC7D,kBAAkB,sBAAsB;;EAcxC,IACJ,QAAQ,kBAAkB,kBAC1B,kCACC;IAAU,OAAO;IAAO;;;;;cCvkBhB;cACA;KAED;EACV,QAAQ;EACR,SAAS;;EAET,YAAY;;EAEZ,MAAM;;EAEN,UAAU;;EAEV,sBAAsB;;KAGZ;EACV,QAAQ;EACR,QAAQ;;EAER,UAAU;;EAEV,SAAS;;;;;;;cAQE,eAAY,MAAU,wBAAsB;;;KCvC7C;;;;;EAKV;;;;;EAKA,UAAU;;;;;;;;;;;;;cAcC,gBAAa,QAChB,WAAS,QACT,iBAAe,KAClB"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as WritesDisabledError, C as MessageNotFoundError, D as ProtocolError, E as PreconditionError, O as SchemaDriftError, S as MailNotRunningError, T as PlatformError, _ as locateEnvelopeIndex, a as loadConfig, c as decodeRef, d as assertStaticScript, f as createOsascriptRunner, g as inspectFile, h as MailboxMap, i as registerTools, j as BUILD_INFO, k as TccDeniedError, l as encodeRef, m as withBusyRetry, n as SERVER_VERSION, o as AppleMailClient, p as mapOsaError, r as createServer, s as REF_VERSION, t as SERVER_NAME, u as groupRefsByMailbox, v as AppleMailError, w as OsascriptTimeoutError, x as MailBusyError, y as IndexUnavailableError } from "./server-D5S4dzq6.js";
1
+ import { A as WritesDisabledError, C as MessageNotFoundError, D as ProtocolError, E as PreconditionError, O as SchemaDriftError, S as MailNotRunningError, T as PlatformError, _ as locateEnvelopeIndex, a as loadConfig, c as decodeRef, d as assertStaticScript, f as createOsascriptRunner, g as inspectFile, h as MailboxMap, i as registerTools, j as BUILD_INFO, k as TccDeniedError, l as encodeRef, m as withBusyRetry, n as SERVER_VERSION, o as AppleMailClient, p as mapOsaError, r as createServer, s as REF_VERSION, t as SERVER_NAME, u as groupRefsByMailbox, v as AppleMailError, w as OsascriptTimeoutError, x as MailBusyError, y as IndexUnavailableError } from "./server-xvo5NH7k.js";
2
2
  export { AppleMailClient, AppleMailError, BUILD_INFO, IndexUnavailableError, MailBusyError, MailNotRunningError, MailboxMap, MessageNotFoundError, OsascriptTimeoutError, PlatformError, PreconditionError, ProtocolError, REF_VERSION, SERVER_NAME, SERVER_VERSION, SchemaDriftError, TccDeniedError, WritesDisabledError, assertStaticScript, createOsascriptRunner, createServer, decodeRef, encodeRef, groupRefsByMailbox, inspectFile, loadConfig, locateEnvelopeIndex, mapOsaError, registerTools, withBusyRetry };