@fluxmail/core 0.17.1 → 0.18.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/errors.d.ts +5 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -2
- package/dist/errors.js.map +1 -1
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +3 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/scopes.d.ts +11 -0
- package/dist/mcp/scopes.d.ts.map +1 -0
- package/dist/mcp/scopes.js +31 -0
- package/dist/mcp/scopes.js.map +1 -0
- package/dist/mcp/tools.d.ts +26 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.generated.d.ts +2 -0
- package/dist/mcp/tools.generated.d.ts.map +1 -0
- package/dist/mcp/tools.generated.js +1704 -0
- package/dist/mcp/tools.generated.js.map +1 -0
- package/dist/mcp/tools.js +257 -0
- package/dist/mcp/tools.js.map +1 -0
- package/package.json +5 -1
package/dist/errors.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Provider } from './types.js';
|
|
|
2
2
|
export type EmailErrorCode = 'auth_expired' | 'rate_limited' | 'not_found' | 'invalid_request' | 'idempotency_conflict' | 'provider_unavailable' | 'entitlement_exceeded' | 'permission_denied' | 'unsupported_capability';
|
|
3
3
|
export declare const MAIL_PROVIDERS: readonly Provider[];
|
|
4
4
|
/** Fixed causes for a provider failure. These are safe to report in telemetry. */
|
|
5
|
-
export declare const FAILURE_REASONS: readonly ["search_timeout", "insufficient_scope", "connection_refused", "host_not_found", "network_unreachable", "connection_timeout", "connection_reset", "tls_mismatch", "tls_error", "server_no", "server_bad", "http_error", "invalid_response", "other"];
|
|
5
|
+
export declare const FAILURE_REASONS: readonly ["search_timeout", "insufficient_scope", "connection_refused", "host_not_found", "network_unreachable", "connection_timeout", "connection_reset", "tls_mismatch", "tls_error", "server_no", "server_bad", "http_error", "invalid_response", "other", "request_timeout"];
|
|
6
6
|
export type FailureReason = (typeof FAILURE_REASONS)[number];
|
|
7
7
|
/** The step of a provider call that failed. */
|
|
8
8
|
export declare const FAILURE_PHASES: readonly ["connect", "folders", "select", "search", "fetch", "smtp", "token_refresh", "request"];
|
|
@@ -30,7 +30,10 @@ export declare class EmailError extends Error {
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Classify a network or TLS failure from the error codes on an error and its
|
|
33
|
-
* causes.
|
|
33
|
+
* causes. A `TimeoutError`, such as the one `fetch` throws when an
|
|
34
|
+
* `AbortSignal.timeout` fires, is a request timeout unless the same chain has a
|
|
35
|
+
* recognized code. An `AbortError` is not, because the caller may have
|
|
36
|
+
* cancelled the request. Returns undefined when nothing is recognized.
|
|
34
37
|
*/
|
|
35
38
|
export declare function networkFailure(error: unknown): Pick<ProviderFailure, 'reason' | 'ioCode'> | undefined;
|
|
36
39
|
/** A provider response is missing data Fluxmail needs. */
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,cAAc,GACd,WAAW,GACX,iBAAiB,GACjB,sBAAsB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,wBAAwB,CAAC;AAE7B,eAAO,MAAM,cAAc,EAAE,SAAS,QAAQ,EAAiC,CAAC;AAEhF,kFAAkF;AAClF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,cAAc,GACd,WAAW,GACX,iBA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B,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAEhE;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE5D"}
|
package/dist/errors.js
CHANGED
|
@@ -15,6 +15,7 @@ export const FAILURE_REASONS = [
|
|
|
15
15
|
'http_error',
|
|
16
16
|
'invalid_response',
|
|
17
17
|
'other',
|
|
18
|
+
'request_timeout',
|
|
18
19
|
];
|
|
19
20
|
/** The step of a provider call that failed. */
|
|
20
21
|
export const FAILURE_PHASES = [
|
|
@@ -78,18 +79,24 @@ const IO_REASONS = {
|
|
|
78
79
|
};
|
|
79
80
|
/**
|
|
80
81
|
* Classify a network or TLS failure from the error codes on an error and its
|
|
81
|
-
* causes.
|
|
82
|
+
* causes. A `TimeoutError`, such as the one `fetch` throws when an
|
|
83
|
+
* `AbortSignal.timeout` fires, is a request timeout unless the same chain has a
|
|
84
|
+
* recognized code. An `AbortError` is not, because the caller may have
|
|
85
|
+
* cancelled the request. Returns undefined when nothing is recognized.
|
|
82
86
|
*/
|
|
83
87
|
export function networkFailure(error) {
|
|
84
88
|
let current = error;
|
|
89
|
+
let timedOut = false;
|
|
85
90
|
for (let depth = 0; depth < 4 && current && typeof current === 'object'; depth++) {
|
|
86
91
|
const code = current.code;
|
|
87
92
|
if (typeof code === 'string' && FAILURE_IO_CODES.includes(code)) {
|
|
88
93
|
return { reason: IO_REASONS[code] ?? 'tls_error', ioCode: code };
|
|
89
94
|
}
|
|
95
|
+
if (current.name === 'TimeoutError')
|
|
96
|
+
timedOut = true;
|
|
90
97
|
current = current.cause;
|
|
91
98
|
}
|
|
92
|
-
return undefined;
|
|
99
|
+
return timedOut ? { reason: 'request_timeout' } : undefined;
|
|
93
100
|
}
|
|
94
101
|
/** A provider response is missing data Fluxmail needs. */
|
|
95
102
|
export function invalidResponseError(message) {
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,cAAc,GAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAEhF,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;IACpB,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB;IACpB,kBAAkB;IAClB,cAAc;IACd,WAAW;IACX,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,kBAAkB;IAClB,OAAO;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,cAAc,GAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAEhF,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;IACpB,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB;IACpB,kBAAkB;IAClB,cAAc;IACd,WAAW;IACX,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,kBAAkB;IAClB,OAAO;IACP,iBAAiB;CACT,CAAC;AAGX,+CAA+C;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,eAAe;IACf,SAAS;CACD,CAAC;AAGX,6FAA6F;AAC7F,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,cAAc;IACd,YAAY;IACZ,cAAc;IACd,OAAO;IACP,WAAW;IACX,WAAW;IACX,WAAW;IACX,cAAc;IACd,WAAW;IACX,aAAa;IACb,UAAU;IACV,kBAAkB;IAClB,6BAA6B;IAC7B,2BAA2B;IAC3B,iCAAiC;IACjC,mCAAmC;IACnC,8BAA8B;IAC9B,8BAA8B;CACtB,CAAC;AAcX,MAA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AM,EAAE,IAAI,EAAE,CAAC;QACnE,CAAC;QACD,IAAK,OAA8B,CAAC,IAAI,KAAK,cAAc;YAAE,QAAQ,GAAG,IAAI,CAAC;QAC7E,OAAO,GAAI,OAA+B,CAAC,KAAK,CAAC;IACnD,CAAC;IACD,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9D,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,OAAO,IAAI,UAAU,CAAC,sBAAsB,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;AACpG,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAY;IACvC,OAAO,GAAG,YAAY,UAAU,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ModifyAction } from '../types.js';
|
|
2
|
+
/** Mail scopes shared by every Fluxmail product, in display order. */
|
|
3
|
+
export declare const MAIL_SCOPES: readonly ["mail.read", "mail.drafts", "mail.organize", "mail.trash", "mail.delete", "mail.send"];
|
|
4
|
+
export type MailScope = (typeof MAIL_SCOPES)[number];
|
|
5
|
+
export declare const PERMISSION_PRESET_NAMES: readonly ["read-only", "read-write", "full"];
|
|
6
|
+
export type PermissionPreset = (typeof PERMISSION_PRESET_NAMES)[number];
|
|
7
|
+
export declare const PERMISSION_PRESETS: Record<PermissionPreset, readonly MailScope[]>;
|
|
8
|
+
export type ModifyActionName = Exclude<ModifyAction, object> | 'move' | 'addLabels' | 'removeLabels';
|
|
9
|
+
/** The scope each modify action needs. */
|
|
10
|
+
export declare const MODIFY_ACTION_SCOPES: Record<ModifyActionName, MailScope>;
|
|
11
|
+
//# sourceMappingURL=scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../src/mcp/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,sEAAsE;AACtE,eAAO,MAAM,WAAW,kGAOd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,uBAAuB,8CAA+C,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,EAAE,SAAS,SAAS,EAAE,CAK7E,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAC;AAErG,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAYpE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Mail scopes shared by every Fluxmail product, in display order. */
|
|
2
|
+
export const MAIL_SCOPES = [
|
|
3
|
+
'mail.read',
|
|
4
|
+
'mail.drafts',
|
|
5
|
+
'mail.organize',
|
|
6
|
+
'mail.trash',
|
|
7
|
+
'mail.delete',
|
|
8
|
+
'mail.send',
|
|
9
|
+
];
|
|
10
|
+
export const PERMISSION_PRESET_NAMES = ['read-only', 'read-write', 'full'];
|
|
11
|
+
export const PERMISSION_PRESETS = {
|
|
12
|
+
'read-only': ['mail.read'],
|
|
13
|
+
'read-write': ['mail.read', 'mail.drafts', 'mail.organize', 'mail.trash'],
|
|
14
|
+
// Permanent deletion is never part of a preset; it must be allowed explicitly.
|
|
15
|
+
full: MAIL_SCOPES.filter((scope) => scope !== 'mail.delete'),
|
|
16
|
+
};
|
|
17
|
+
/** The scope each modify action needs. */
|
|
18
|
+
export const MODIFY_ACTION_SCOPES = {
|
|
19
|
+
markRead: 'mail.organize',
|
|
20
|
+
markUnread: 'mail.organize',
|
|
21
|
+
star: 'mail.organize',
|
|
22
|
+
unstar: 'mail.organize',
|
|
23
|
+
archive: 'mail.organize',
|
|
24
|
+
move: 'mail.organize',
|
|
25
|
+
addLabels: 'mail.organize',
|
|
26
|
+
removeLabels: 'mail.organize',
|
|
27
|
+
trash: 'mail.trash',
|
|
28
|
+
untrash: 'mail.trash',
|
|
29
|
+
delete: 'mail.delete',
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=scopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/mcp/scopes.ts"],"names":[],"mappings":"AAEA,sEAAsE;AACtE,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW;IACX,aAAa;IACb,eAAe;IACf,YAAY;IACZ,aAAa;IACb,WAAW;CACH,CAAC;AAIX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,CAAU,CAAC;AAGpF,MAAM,CAAC,MAAM,kBAAkB,GAAmD;IAChF,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,YAAY,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,CAAC;IACzE,+EAA+E;IAC/E,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,aAAa,CAAC;CAC7D,CAAC;AAIF,0CAA0C;AAC1C,MAAM,CAAC,MAAM,oBAAoB,GAAwC;IACvE,QAAQ,EAAE,eAAe;IACzB,UAAU,EAAE,eAAe;IAC3B,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,eAAe;IACrB,SAAS,EAAE,eAAe;IAC1B,YAAY,EAAE,eAAe;IAC7B,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,aAAa;CACtB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type MailScope } from './scopes.js';
|
|
2
|
+
export interface SharedToolAnnotations {
|
|
3
|
+
readOnlyHint: boolean;
|
|
4
|
+
destructiveHint: boolean;
|
|
5
|
+
/** Required whenever readOnlyHint is false. */
|
|
6
|
+
idempotentHint?: boolean;
|
|
7
|
+
openWorldHint: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const SHARED_TOOL_NAMES: readonly ["list_accounts", "list_folders", "list_labels", "list_send_as", "list_emails", "search_emails", "search_emails_batch", "get_email", "get_email_body", "get_thread", "get_draft", "create_draft", "update_draft", "delete_draft", "preview_send", "send_email", "get_delivery_operation", "forward_email", "mark_emails_read", "mark_emails_unread", "star_emails", "unstar_emails", "archive_emails", "move_emails", "add_labels", "remove_labels", "trash_emails", "restore_emails", "delete_emails", "download_attachment"];
|
|
10
|
+
export type SharedToolName = (typeof SHARED_TOOL_NAMES)[number];
|
|
11
|
+
export interface SharedTool {
|
|
12
|
+
name: SharedToolName;
|
|
13
|
+
title: string;
|
|
14
|
+
/** Base description. A product may append sentences about its own arguments or limits, but may not reword this text. */
|
|
15
|
+
description: string;
|
|
16
|
+
scope: MailScope;
|
|
17
|
+
/** A second scope required on every call, e.g. forward_email reads the original message. */
|
|
18
|
+
alsoRequires?: MailScope;
|
|
19
|
+
annotations: SharedToolAnnotations;
|
|
20
|
+
/** JSON Schema of the shared arguments, exactly as advertised by tools/list (optional args accept null). */
|
|
21
|
+
inputSchema: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
/** The MCP tools every Fluxmail product offers with the same names, arguments, annotations and scopes. */
|
|
24
|
+
export declare const SHARED_TOOLS: readonly SharedTool[];
|
|
25
|
+
export declare function sharedTool(name: SharedToolName): SharedTool;
|
|
26
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAGnE,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,ygBA+BpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,wHAAwH;IACxH,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,EAAE,qBAAqB,CAAC;IACnC,4GAA4G;IAC5G,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AA+ND,0GAA0G;AAC1G,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAK3C,CAAC;AAIJ,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,CAE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.generated.d.ts","sourceRoot":"","sources":["../../src/mcp/tools.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA2qDvF,CAAC"}
|