@mgcrea/mcp-apple-mail 1.15.0 → 1.17.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/README.md +15 -31
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +184 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{server-DK4F_-So.js → server-D62cuBVz.js} +1333 -608
- package/dist/server-D62cuBVz.js.map +1 -0
- package/package.json +2 -2
- package/dist/server-DK4F_-So.js.map +0 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ _reader_ that needs permission, not Mail.
|
|
|
51
51
|
**Automation** is granted to the app that launches the server (Terminal, iTerm, VS Code, Claude…).
|
|
52
52
|
macOS prompts for it on the first Apple Event, so usually you just click Allow.
|
|
53
53
|
|
|
54
|
-
**Full Disk Access** is the awkward one
|
|
54
|
+
**Full Disk Access** is the awkward one.
|
|
55
55
|
|
|
56
56
|
### Why you should not just grant it to your editor
|
|
57
57
|
|
|
@@ -70,43 +70,27 @@ defeats `APPLE_MAIL_ACCOUNTS`, which exists to bound exactly this.
|
|
|
70
70
|
You cannot avoid it by granting the permission to `.mcp.json` (it is data, not code) or to `node`
|
|
71
71
|
(it is not the responsible process, and it is shared by every node program on the machine).
|
|
72
72
|
|
|
73
|
-
###
|
|
73
|
+
### What to do instead
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
Install [**Cupertino.app**](https://cupertino.mgcrea.io), the signed menu bar app this package is
|
|
76
|
+
developed in. It holds one Full Disk Access grant and serves this server beneath it, so the
|
|
77
|
+
permission belongs to a notarized binary rather than to your editor:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
|
|
81
|
-
./scripts/install-wrapper.sh
|
|
80
|
+
brew install --cask mgcrea/tap/cupertino
|
|
82
81
|
```
|
|
83
82
|
|
|
84
|
-
|
|
83
|
+
Measured: Full Disk Access and Automation granted to a signed `.app` are inherited two levels deep
|
|
84
|
+
by the processes it spawns, so a `node` grandchild reads the Envelope Index and `tccd` resolves a
|
|
85
|
+
grandchild `osascript` to the app rather than to whatever launched it.
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"command": "/Users/YOU/Library/Application Support/apple-mail-mcp/bin/apple-mail-mcp",
|
|
91
|
-
"env": { "APPLE_MAIL_ALLOW_WRITES": "1" }
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
Verified on macOS 26.6: the launcher reads Mail's index while plain `node` in the same shell stays
|
|
98
|
-
denied, so the grant really is scoped. `apple_mail_diagnostics` will confirm it.
|
|
99
|
-
|
|
100
|
-
Three things worth knowing:
|
|
87
|
+
Earlier versions of this package described a small compiled launcher that made itself its own
|
|
88
|
+
responsible process through a private API. It is no longer built or shipped — there is nothing left
|
|
89
|
+
to escape — though `native/launcher.c` stays in the repository as the clearest statement of the
|
|
90
|
+
problem.
|
|
101
91
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
told would let any local process read your whole disk using a permission you granted for mail.
|
|
105
|
-
- **Install it once, outside the repo.** macOS ties the grant to a file path, so a launcher living in
|
|
106
|
-
`node_modules` or an `npx` cache would silently lose its permission on the next version bump.
|
|
107
|
-
- **`responsibility_spawnattrs_setdisclaim` is a private API.** It has been stable since 10.14, and
|
|
108
|
-
if it ever disappears the launcher says so on stderr and starts the server anyway — you lose the
|
|
109
|
-
search and body lanes, not the server. The fallback is granting Full Disk Access to the host app.
|
|
92
|
+
If you would rather not install the app, granting Full Disk Access to your editor does work. Read
|
|
93
|
+
the paragraph above about what that grant actually covers before you do.
|
|
110
94
|
|
|
111
95
|
Restart your MCP host after granting. `apple_mail_diagnostics` reports which permission is missing
|
|
112
96
|
and what it is blocking.
|
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-
|
|
2
|
+
import { a as loadConfig, b as MAIL_SURFACE, j as BUILD_INFO, r as createServer } from "./server-D62cuBVz.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,156 @@ 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
|
+
* **What "read back" has to mean here, learned the hard way.** Mail's composer
|
|
203
|
+
* web area answers `AXFocused: false` while holding the keyboard — measured
|
|
204
|
+
* over 1.2 s without ever flipping, with a command-V landing in it the whole
|
|
205
|
+
* time. `apple_desktop_focus` used to return that flag, so this guard refused
|
|
206
|
+
* to press command-V and every native reply came back "Nothing landed in it"
|
|
207
|
+
* for a body that would have gone in. The driver now answers from the
|
|
208
|
+
* APPLICATION's `AXFocusedUIElement`, which is what the window server routes
|
|
209
|
+
* keystrokes by and so cannot disagree with where one will land.
|
|
210
|
+
*
|
|
211
|
+
* The guard itself stays. Posting command-V without knowing where the focus is
|
|
212
|
+
* types into whatever happens to be in front, and that is the user's window.
|
|
213
|
+
*/
|
|
214
|
+
paste(ref: ComposerRef, focusTimeoutMs?: number): Promise<boolean>;
|
|
215
|
+
/**
|
|
216
|
+
* Send the composer, or save it as a draft.
|
|
217
|
+
*
|
|
218
|
+
* A keyboard shortcut rather than the Send button, and that is a correctness
|
|
219
|
+
* choice rather than a shortcut in the other sense: the button's name is
|
|
220
|
+
* localised — a French Mail says "Envoyer" — while command-shift-D is the same
|
|
221
|
+
* on every Mac. Addressing it by name would have worked on the machine it was
|
|
222
|
+
* written on and nowhere else.
|
|
223
|
+
*
|
|
224
|
+
* This is the step that replaces `draft.send()`, and the reason it had to. A
|
|
225
|
+
* JXA object reference cannot outlive the `osascript` process that made it,
|
|
226
|
+
* and this flow now spans two processes: Apple Events opens the composer, and
|
|
227
|
+
* everything after is native. Re-finding the draft to send it was the
|
|
228
|
+
* alternative and is worse — drafts are discovered by subject, so two with the
|
|
229
|
+
* same one are indistinguishable, on the single path whose named failure is
|
|
230
|
+
* sending the wrong thing.
|
|
231
|
+
*/
|
|
232
|
+
finish(sendNow: boolean): Promise<void>;
|
|
233
|
+
/**
|
|
234
|
+
* Has the composer for this subject gone?
|
|
235
|
+
*
|
|
236
|
+
* How a send is confirmed. Mail closes the window when it accepts one, so the
|
|
237
|
+
* window still being there means it did not go — which is checked rather than
|
|
238
|
+
* assumed, because nothing in this path may report success on the strength of
|
|
239
|
+
* a keystroke having been delivered.
|
|
240
|
+
*/
|
|
241
|
+
composerGone(subject: string, timeoutMs: number): Promise<boolean>;
|
|
242
|
+
/** Select everything in the body, for the quote strip. */
|
|
243
|
+
selectAll(): Promise<void>;
|
|
244
|
+
/**
|
|
245
|
+
* The deepest quote level anywhere in the body; 0 once the citation is gone.
|
|
246
|
+
*
|
|
247
|
+
* `AXBlockQuoteLevel` is not in the tree's field set, which is chosen for
|
|
248
|
+
* addressing controls — so it is read one element at a time. That is
|
|
249
|
+
* affordable only natively: 343 elements at 0.2 ms is well under a tenth of a
|
|
250
|
+
* second, where the same walk through System Events would be sixteen.
|
|
251
|
+
*/
|
|
252
|
+
maxQuoteLevel(body: string): Promise<number>;
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
105
255
|
//#region src/client/mime.d.ts
|
|
106
256
|
type Attachment = {
|
|
107
257
|
filename: string | null;
|
|
@@ -260,7 +410,14 @@ declare class EnvelopeIndex {
|
|
|
260
410
|
* real top-N unless you already knew to doubt it.
|
|
261
411
|
*/
|
|
262
412
|
groupBy(filters: Omit<SearchFilters, "offset">, field: GroupField): GroupResult;
|
|
263
|
-
|
|
413
|
+
/**
|
|
414
|
+
* Narrowed to the one filter this actually applies.
|
|
415
|
+
*
|
|
416
|
+
* It used to take the whole filter set, which promised a query/sender/date
|
|
417
|
+
* scope it silently dropped. No caller passed one, so the lie was free —
|
|
418
|
+
* until somebody added a caller that did.
|
|
419
|
+
*/
|
|
420
|
+
count(filters: Pick<SearchFilters, "mailboxRowids">): {
|
|
264
421
|
total: number;
|
|
265
422
|
unread: number;
|
|
266
423
|
};
|
|
@@ -372,6 +529,15 @@ type AppleMailClientOptions = {
|
|
|
372
529
|
config: Config;
|
|
373
530
|
logger?: Logger | undefined;
|
|
374
531
|
osascript?: OsascriptRunner | undefined;
|
|
532
|
+
/**
|
|
533
|
+
* The composer lane, for tests.
|
|
534
|
+
*
|
|
535
|
+
* A seam of the same shape as `osascript`: passing null pins the System Events
|
|
536
|
+
* path on a machine that IS hosted, and passing a stub drives the native one
|
|
537
|
+
* on a machine that is not. Undefined means "ask the environment", which is
|
|
538
|
+
* what the server does.
|
|
539
|
+
*/
|
|
540
|
+
ax?: MailAxLane | null | undefined;
|
|
375
541
|
};
|
|
376
542
|
declare class AppleMailClient {
|
|
377
543
|
#private;
|
|
@@ -379,6 +545,8 @@ declare class AppleMailClient {
|
|
|
379
545
|
readonly runner: OsascriptRunner;
|
|
380
546
|
readonly mailboxes: MailboxMap;
|
|
381
547
|
constructor(opts: AppleMailClientOptions);
|
|
548
|
+
/** Which composer lane is live, for `diagnostics` to report. */
|
|
549
|
+
get composerLane(): "accessibility" | "system-events";
|
|
382
550
|
accounts(force?: boolean): Promise<MailAccount[]>;
|
|
383
551
|
/**
|
|
384
552
|
* Where the Envelope Index is and whether we may read it. Resolved lazily and
|
|
@@ -412,6 +580,20 @@ declare class AppleMailClient {
|
|
|
412
580
|
uiRead: "granted" | "denied" | "inconclusive" | "unknown";
|
|
413
581
|
windows: (string | null)[] | null;
|
|
414
582
|
}>;
|
|
583
|
+
/**
|
|
584
|
+
* Can the NATIVE lane actually read Mail's windows, right now?
|
|
585
|
+
*
|
|
586
|
+
* The same principle `composerAccess` states for the System Events path, for
|
|
587
|
+
* the same reason: `composerLane` above says which lane is configured, and
|
|
588
|
+
* configured is a claim. This is the functional read, and when the two
|
|
589
|
+
* disagree this is the one to believe.
|
|
590
|
+
*
|
|
591
|
+
* Null when there is no native lane, which is not a failure — see `#ax`.
|
|
592
|
+
*/
|
|
593
|
+
composerAxReach(): Promise<{
|
|
594
|
+
ok: boolean;
|
|
595
|
+
windows: string[] | null;
|
|
596
|
+
} | null>;
|
|
415
597
|
lanes(): Promise<LaneStatus>;
|
|
416
598
|
listMailboxes(opts: {
|
|
417
599
|
accountUuids?: string[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;;;
|
|
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;;E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ACA;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-
|
|
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-D62cuBVz.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 };
|