@mgcrea/mcp-apple-mail 1.38.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-D-UcpTRv.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
@@ -204,8 +204,14 @@ type EditComposerArgs = {
204
204
  };
205
205
  type ReachReport = {
206
206
  ok: boolean;
207
- /** `accessibility` when Mail's windows cannot be read; null when they can. */
208
- 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;
209
215
  windows: string[] | null;
210
216
  };
211
217
  type MailAxLaneOptions = {
@@ -263,8 +269,16 @@ declare class MailAxLane {
263
269
  * Mail with no windows is legitimate — everything closed to the menu bar — so
264
270
  * an empty list is not evidence of anything and must not refuse a reply that
265
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.
266
278
  */
267
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;
268
282
  /**
269
283
  * The sentence to say when the app is there but Mail's windows cannot be read.
270
284
  *
@@ -415,6 +429,13 @@ type ParsedMessage = {
415
429
  path: string;
416
430
  partial: boolean;
417
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
+ };
418
439
  //#endregion
419
440
  //#region src/client/schema.d.ts
420
441
  type IndexCapabilities = {
@@ -651,6 +672,13 @@ type MailboxMapOptions = {
651
672
  declare class MailboxMap {
652
673
  #private;
653
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;
654
682
  /**
655
683
  * The account list. An expired one is served at once and refreshed behind
656
684
  * the call: LIST_ACCOUNTS measured ~1 s, and with a plain TTL that second
@@ -696,6 +724,15 @@ declare class MailboxMap {
696
724
  account: MailAccount;
697
725
  mailbox: string;
698
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>;
699
736
  invalidate(): void;
700
737
  }
701
738
  //#endregion
@@ -812,6 +849,7 @@ declare class AppleMailClient {
812
849
  */
813
850
  composerAxReach(): Promise<{
814
851
  ok: boolean;
852
+ refusal: string | null;
815
853
  windows: string[] | null;
816
854
  } | null>;
817
855
  lanes(): Promise<LaneStatus>;
@@ -992,10 +1030,7 @@ declare class AppleMailClient {
992
1030
  getMessageSource(ref: string, opts: {
993
1031
  offset: number;
994
1032
  maxBytes: number;
995
- }): Promise<{
996
- source: string;
997
- totalBytes: number | null;
998
- truncated: boolean;
1033
+ }): Promise<SourcePage & {
999
1034
  via: "emlx" | "applescript";
1000
1035
  fallbackReason?: string;
1001
1036
  }>;
@@ -1040,7 +1075,14 @@ declare class AppleMailClient {
1040
1075
  bytes: number;
1041
1076
  from: "inline" | "sidecar" | "mail";
1042
1077
  }>;
1043
- /** 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
+ */
1044
1086
  setFlags(refs: string[], flags: {
1045
1087
  read?: boolean;
1046
1088
  flagged?: boolean;
@@ -1049,6 +1091,7 @@ declare class AppleMailClient {
1049
1091
  }): Promise<{
1050
1092
  changed: number;
1051
1093
  failed: number;
1094
+ unknown?: number;
1052
1095
  results: unknown[];
1053
1096
  }>;
1054
1097
  moveMessages(refs: string[], opts: {
@@ -1057,12 +1100,14 @@ declare class AppleMailClient {
1057
1100
  }): Promise<{
1058
1101
  moved: number;
1059
1102
  failed: number;
1103
+ unknown?: number;
1060
1104
  destination: string;
1061
1105
  results: unknown[];
1062
1106
  }>;
1063
1107
  deleteMessages(refs: string[]): Promise<{
1064
1108
  deleted: number;
1065
1109
  failed: number;
1110
+ unknown?: number;
1066
1111
  movedToTrash: boolean | null;
1067
1112
  results: unknown[];
1068
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;;;;cCe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iBAAe,YAAY;;;;;;;;;;;;;;KCzCxD,cAAc;;EAExB;EACA;EACA;EACA;EACA;EACA;;;;KCgHU;EACV,QAAQ;EACR,QAAQ,KAAK;EACb,SAAS;;EAET,uBAAuB;EACvB;;;;;;;EAOA;;cAGW;;;WA8CF,QAAQ,cAAc;EAwB/B,YAAY,MAAM;;MAWd;;EAKJ,KAAK,UAAU,cAAc;;;;;;;;;;;;;;;;;EAyB7B,UAAU;;;;;;;;;;;EAiMJ,UAAU,mBAAmB;;;;;;EAwCnC,WAAW,mBAAmB;;;;;;EAiB9B,eAAY;IAA6B;;;EAgBzC;EAQA,OAAO;;EAKP,YAAY;;;;;;;;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"}
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;EAC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MAAU,iBAAe,YAAY;;;;;;;;;;;;;;KCzCxD,cAAc;;EAExB;EACA;EACA;EACA;EACA;EACA;;;;KCgHU;EACV,QAAQ;EACR,QAAQ,KAAK;EACb,SAAS;;EAET,uBAAuB;EACvB;;;;;;;EAOA;;cAGW;;;WA8CF,QAAQ,cAAc;EAwB/B,YAAY,MAAM;;MAWd;;EAKJ,KAAK,UAAU,cAAc;;;;;;;;;;;;;;;;;EAyB7B,UAAU;;;;;;;;;;;EAiMJ,UAAU,mBAAmB;;;;;;EAwCnC,WAAW,mBAAmB;;;;;;EAiB9B,eAAY;IAA6B;;;EAgBzC;EAQA,OAAO;;EAKP,YAAY;;;;;;;;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-D-UcpTRv.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 };