@mgcrea/mcp-apple-mail 1.15.0 → 1.16.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-DK4F_-So.js";
2
+ import { a as loadConfig, b as MAIL_SURFACE, j as BUILD_INFO, r as createServer } from "./server-D7Aj2CJS.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
@@ -1,4 +1,4 @@
1
- import { AppBusyError as MailBusyError, AppNotRunningError as MailNotRunningError, AppleAutomationError, AppleAutomationError as AppleMailError, BuildInfo, IndexUnavailableError, JxaEnvelope, Logger, OsascriptRunner, OsascriptTimeoutError, PlatformError, PreconditionError, ProtocolError, SchemaDriftError, TccDeniedError, WritesDisabledError, assertStaticScript, createOsascriptRunner, inspectFile, mapOsaError, withBusyRetry } from "@mgcrea/mcp-apple-core";
1
+ import { AppBusyError as MailBusyError, AppNotRunningError as MailNotRunningError, AppleAutomationError, AppleAutomationError as AppleMailError, BuildInfo, IndexUnavailableError, InterferenceWatch, JxaEnvelope, Logger, OsascriptRunner, OsascriptTimeoutError, PlatformError, PreconditionError, ProtocolError, SchemaDriftError, TccDeniedError, WritesDisabledError, assertStaticScript, createOsascriptRunner, inspectFile, mapOsaError, withBusyRetry } from "@mgcrea/mcp-apple-core";
2
2
  import { z } from "zod";
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { DatabaseSync } from "node:sqlite";
@@ -102,6 +102,144 @@ type Config = z.infer<typeof ConfigSchema>;
102
102
  */
103
103
  declare const loadConfig: (env?: NodeJS.ProcessEnv) => Config;
104
104
  //#endregion
105
+ //#region src/client/ax.d.ts
106
+ type ComposerRef = {
107
+ window: string;
108
+ body: string;
109
+ index: number;
110
+ };
111
+ type ReachReport = {
112
+ ok: boolean;
113
+ /** `accessibility` when Mail's windows cannot be read; null when they can. */
114
+ reason: "accessibility" | null;
115
+ windows: string[] | null;
116
+ };
117
+ declare class MailAxLane {
118
+ #private;
119
+ private constructor();
120
+ /** Null when this server is not hosted by Cupertino — see the note above. */
121
+ static open(env?: NodeJS.ProcessEnv): MailAxLane | null;
122
+ close(): void;
123
+ /** Start watching for someone using the Mac during a sequence. */
124
+ watch(): InterferenceWatch;
125
+ /**
126
+ * Can this process read Mail's windows, right now?
127
+ *
128
+ * Asked BEFORE a composer is opened, keeping the ordering `jxa/write.ts`
129
+ * established: the old shape opened a window, failed the read, and left an
130
+ * empty reply on screen with an error telling the user to close it by hand.
131
+ *
132
+ * Ground truth is the functional read, never a trusted flag. One bundle
133
+ * identifier can hold several Accessibility entries — one per path and
134
+ * signature it has been granted at — so the flag can answer for a different
135
+ * row from the one the request resolves against. A window list that comes back
136
+ * named is proof regardless of what the flag says.
137
+ *
138
+ * Mail with no windows is legitimate — everything closed to the menu bar — so
139
+ * an empty list is not evidence of anything and must not refuse a reply that
140
+ * would have worked.
141
+ */
142
+ reach(): Promise<ReachReport>;
143
+ /**
144
+ * The sentence to say when the composer cannot be reached natively.
145
+ *
146
+ * One grant rather than two, and none of the "quit Cupertino and open it
147
+ * again" ritual the System Events path needs — that exists because a node
148
+ * child started before the grant does not inherit it, and this driver runs in
149
+ * the app itself.
150
+ */
151
+ static grantMessage(mode: string): string;
152
+ /**
153
+ * Poll for the composer window, and for its body.
154
+ *
155
+ * Polled rather than waited for, which `docs/desktop.md` records as the trap
156
+ * that cost it the most: a window's chrome appearing is not its content being
157
+ * ready, so no fixed settle time is correct. Cheap here — a bounded walk is
158
+ * milliseconds.
159
+ *
160
+ * The subject is the identity, and requiring a body area with it rejects the
161
+ * main window and the drafts list. Counting windows does not work: Mail closes
162
+ * and reuses windows around a compose, so the count comes back unchanged with
163
+ * a new composer on screen.
164
+ */
165
+ findComposer(subject: string, timeoutMs: number): Promise<ComposerRef | null>;
166
+ /** Bring Mail to the front. A synthetic keystroke lands in whatever is frontmost. */
167
+ activate(): Promise<void>;
168
+ /**
169
+ * The accessible text under the body, which is what a person would see.
170
+ *
171
+ * One call rather than a bounded walk. The System Events version reads a
172
+ * parent at a time and stops at a character budget because every node costs an
173
+ * Apple Event; here the whole subtree comes back in one answer with each
174
+ * element's value already on it.
175
+ *
176
+ * Returns null when the body cannot be reached at all — a different answer
177
+ * from "", and the two must stay apart: one means we are blind, the other
178
+ * means the composer is empty.
179
+ */
180
+ bodyText(body: string): Promise<string | null>;
181
+ /**
182
+ * How many elements the body holds.
183
+ *
184
+ * A fingerprint, not a reading. Taken before and after a paste it answers "did
185
+ * anything at all land", which is what decides whether pasting again is safe:
186
+ * a paste that landed and cannot be read must NOT be repeated, or the reply
187
+ * ends up in the draft twice with no way to undo it from here.
188
+ *
189
+ * `matched` rather than the returned length, because the response is byte
190
+ * capped and a long quoted message will truncate — a fingerprint taken from a
191
+ * truncated list would compare two different bounds rather than two states.
192
+ */
193
+ bodySize(body: string): Promise<number>;
194
+ /**
195
+ * Focus the body and paste, and say whether the focus took.
196
+ *
197
+ * Focus is not a raise: a raise orders a window forward inside Mail while the
198
+ * keystroke goes wherever the focus actually is. Both are needed, and the
199
+ * focus is read back because an element can report itself focusable and not
200
+ * take it.
201
+ */
202
+ paste(ref: ComposerRef): Promise<boolean>;
203
+ /**
204
+ * Send the composer, or save it as a draft.
205
+ *
206
+ * A keyboard shortcut rather than the Send button, and that is a correctness
207
+ * choice rather than a shortcut in the other sense: the button's name is
208
+ * localised — a French Mail says "Envoyer" — while command-shift-D is the same
209
+ * on every Mac. Addressing it by name would have worked on the machine it was
210
+ * written on and nowhere else.
211
+ *
212
+ * This is the step that replaces `draft.send()`, and the reason it had to. A
213
+ * JXA object reference cannot outlive the `osascript` process that made it,
214
+ * and this flow now spans two processes: Apple Events opens the composer, and
215
+ * everything after is native. Re-finding the draft to send it was the
216
+ * alternative and is worse — drafts are discovered by subject, so two with the
217
+ * same one are indistinguishable, on the single path whose named failure is
218
+ * sending the wrong thing.
219
+ */
220
+ finish(sendNow: boolean): Promise<void>;
221
+ /**
222
+ * Has the composer for this subject gone?
223
+ *
224
+ * How a send is confirmed. Mail closes the window when it accepts one, so the
225
+ * window still being there means it did not go — which is checked rather than
226
+ * assumed, because nothing in this path may report success on the strength of
227
+ * a keystroke having been delivered.
228
+ */
229
+ composerGone(subject: string, timeoutMs: number): Promise<boolean>;
230
+ /** Select everything in the body, for the quote strip. */
231
+ selectAll(): Promise<void>;
232
+ /**
233
+ * The deepest quote level anywhere in the body; 0 once the citation is gone.
234
+ *
235
+ * `AXBlockQuoteLevel` is not in the tree's field set, which is chosen for
236
+ * addressing controls — so it is read one element at a time. That is
237
+ * affordable only natively: 343 elements at 0.2 ms is well under a tenth of a
238
+ * second, where the same walk through System Events would be sixteen.
239
+ */
240
+ maxQuoteLevel(body: string): Promise<number>;
241
+ }
242
+ //#endregion
105
243
  //#region src/client/mime.d.ts
106
244
  type Attachment = {
107
245
  filename: string | null;
@@ -372,6 +510,15 @@ type AppleMailClientOptions = {
372
510
  config: Config;
373
511
  logger?: Logger | undefined;
374
512
  osascript?: OsascriptRunner | undefined;
513
+ /**
514
+ * The composer lane, for tests.
515
+ *
516
+ * A seam of the same shape as `osascript`: passing null pins the System Events
517
+ * path on a machine that IS hosted, and passing a stub drives the native one
518
+ * on a machine that is not. Undefined means "ask the environment", which is
519
+ * what the server does.
520
+ */
521
+ ax?: MailAxLane | null | undefined;
375
522
  };
376
523
  declare class AppleMailClient {
377
524
  #private;
@@ -379,6 +526,8 @@ declare class AppleMailClient {
379
526
  readonly runner: OsascriptRunner;
380
527
  readonly mailboxes: MailboxMap;
381
528
  constructor(opts: AppleMailClientOptions);
529
+ /** Which composer lane is live, for `diagnostics` to report. */
530
+ get composerLane(): "accessibility" | "system-events";
382
531
  accounts(force?: boolean): Promise<MailAccount[]>;
383
532
  /**
384
533
  * Where the Envelope Index is and whether we may read it. Resolved lazily and
@@ -412,6 +561,20 @@ declare class AppleMailClient {
412
561
  uiRead: "granted" | "denied" | "inconclusive" | "unknown";
413
562
  windows: (string | null)[] | null;
414
563
  }>;
564
+ /**
565
+ * Can the NATIVE lane actually read Mail's windows, right now?
566
+ *
567
+ * The same principle `composerAccess` states for the System Events path, for
568
+ * the same reason: `composerLane` above says which lane is configured, and
569
+ * configured is a claim. This is the functional read, and when the two
570
+ * disagree this is the one to believe.
571
+ *
572
+ * Null when there is no native lane, which is not a failure — see `#ax`.
573
+ */
574
+ composerAxReach(): Promise<{
575
+ ok: boolean;
576
+ windows: string[] | null;
577
+ } | null>;
415
578
  lanes(): Promise<LaneStatus>;
416
579
  listMailboxes(opts: {
417
580
  accountUuids?: string[];
@@ -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/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/server.ts","../src/tools/index.ts"],"mappings":";;;;;cAkBa,YAAY;;;;cCWZ,6BAA6B;WACtB;EAElB,YAAY;;;;;;;;;;;;;;;;;;;;KCTF;;EAEV;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;;KAKU;;EAEV;;EAEA;;EAEA;;EAEA;;cAiBW,sBAAmB,OAAU,kBAAqB;;;;;;;;;;;;;;;cC3CzD,cAAY,EAAA;;;;;;;;;;;;;;;;;;;;;;;GA8CP,EAAA,KAAA;KAEC,SAAS,EAAE,aAAa;;;;;cAMvB,aAAU,MAAS,OAAO,eAA2B;;;KCvDtD;EACV;EACA;EACA;;;;;;;;;EASA;;EAEA;;;;;;;;;;;;;;;;;;;;;KCEU;EACV,SAAS;EACT;EACA;;EAEA,cAAc;IAAe;;EAC7B;EACA;EACA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I,YACJ,aACA;IAAQ;IAAc;MACrB,QAAQ;EAoBL,gBAAgB,mBAAmB;EAKnC,YAAY;IAChB;IACA;IACA;IACA;IACA;IACA;IACA;MACE;EAaE,eACJ,aACA;IACE;IACA;IACA;IACA;IACA;MAED;;;;;;;;;;;;;;;;;;;;;cCzrCQ;KAED;EACV;EACA;EACA;;cAKW,YAAS,KAAS;cAGlB,YAAS,gBAAkB;;cA2B3B,qBAAkB,MAAU,iBAAe,YAAY;;;cChDvD;cACA;KAED;EACV,QAAQ;EACR,SAAS;;EAET,YAAY;;KAGF;EACV,QAAQ;EACR,QAAQ;;;;;;;cAQG,eAAY,MAAU,wBAAsB;;;KCrB7C;;;;;EAKV;;;;;;;;;;;;cAaW,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/server.ts","../src/tools/index.ts"],"mappings":";;;;;cAkBa,YAAY;;;;cCWZ,6BAA6B;WACtB;EAElB,YAAY;;;;;;;;;;;;;;;;;;;;KCTF;;EAEV;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;;KAKU;;EAEV;;EAEA;;EAEA;;EAEA;;cAiBW,sBAAmB,OAAU,kBAAqB;;;;;;;;;;;;;;;cC3CzD,cAAY,EAAA;;;;;;;;;;;;;;;;;;;;;;;GA8CP,EAAA,KAAA;KAEC,SAAS,EAAE,aAAa;;;;;cAMvB,aAAU,MAAS,OAAO,eAA2B;;;KCRtD;EAAgB;EAAgB;EAAc;;KAE9C;EACV;;EAEA;EACA;;cAGW;;UAGJ;;SAKA,KAAK,MAAK,OAAO,aAA2B;EAKnD;;EAKA,SAAS;;;;;;;;;;;;;;;;;;EAyBH,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AsCvB,eACJ,aACA;IAAQ;MACP;IACD,SAAS;IACT,QAAQ;IACR;;IAEA;;EA2BI,iBACJ,aACA;IAAQ;IAAgB;MACvB;IACD;IACA;IACA;IACA;IACA;;;;;;;;;;;;;;;EA2HI,oBAAoB;IAEtB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;;;;;;;EA0HE,eACJ,aACA,kBACA;IAAQ;MACP;IAAU;IAAc;IAAe;;;EAmCpC,SACJ,gBACA;IAAS;IAAgB;IAAmB;IAAoB;MAC/D;IAAU;IAAiB;IAAgB;;EA6BxC,aACJ,gBACA;IAAQ;IAA4B;MACnC;IAAU;IAAe;IAAgB;IAAqB;;EAqD3D,eAAe,iBAAiB;IACpC;IACA;IACA;IACA;;;;;;;;;;;;;;EAuCI,cACJ,cACA,mBACC;IACD;IACA;IACA;IACA;IACA;;;;;;;;;;;;;;;EAkDI,YACJ,aACA;IAAQ;IAAc;MACrB,QAAQ;EAoBL,gBAAgB,mBAAmB;EAKnC,YAAY;IAChB;IACA;IACA;IACA;IACA;IACA;IACA;MACE;EAaE,eACJ,aACA;IACE;IACA;IACA;IACA;IACA;MAED;;;;;;;;;;;;;;;;;;;;;cCpuCQ;KAED;EACV;EACA;EACA;;cAKW,YAAS,KAAS;cAGlB,YAAS,gBAAkB;;cA2B3B,qBAAkB,MAAU,iBAAe,YAAY;;;cChDvD;cACA;KAED;EACV,QAAQ;EACR,SAAS;;EAET,YAAY;;KAGF;EACV,QAAQ;EACR,QAAQ;;;;;;;cAQG,eAAY,MAAU,wBAAsB;;;KCrB7C;;;;;EAKV;;;;;;;;;;;;cAaW,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-DK4F_-So.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-D7Aj2CJS.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 };