@fluxmail/core 0.32.0 → 0.33.1
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/attachmentStreams.d.ts +24 -0
- package/dist/attachmentStreams.d.ts.map +1 -0
- package/dist/attachmentStreams.js +114 -0
- package/dist/attachmentStreams.js.map +1 -0
- package/dist/attachments.d.ts +6 -2
- package/dist/attachments.d.ts.map +1 -1
- package/dist/attachments.js +9 -4
- package/dist/attachments.js.map +1 -1
- package/dist/draftAttachment.d.ts +14 -0
- package/dist/draftAttachment.d.ts.map +1 -0
- package/dist/draftAttachment.js +152 -0
- package/dist/draftAttachment.js.map +1 -0
- package/dist/errors.d.ts +8 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +24 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/apps.d.ts +9 -13
- package/dist/mcp/apps.d.ts.map +1 -1
- package/dist/mcp/apps.js +13 -18
- package/dist/mcp/apps.js.map +1 -1
- package/dist/mcp/draftUpdate.d.ts +3 -2
- package/dist/mcp/draftUpdate.d.ts.map +1 -1
- package/dist/mcp/draftUpdate.js.map +1 -1
- package/dist/mcp/tools.generated.d.ts.map +1 -1
- package/dist/mcp/tools.generated.js +75 -16
- package/dist/mcp/tools.generated.js.map +1 -1
- package/dist/mcp/tools.js +1 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/provider.d.ts +38 -0
- package/dist/provider.d.ts.map +1 -1
- package/dist/types.d.ts +24 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +24 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp/apps.js
CHANGED
|
@@ -13,19 +13,13 @@ export const SEND_CONFIRMATION_TOOL = 'preview_send';
|
|
|
13
13
|
export const SEND_CONFIRMATION_SEND_TOOL = 'send_email';
|
|
14
14
|
/**
|
|
15
15
|
* Resource metadata for the card. Empty CSP lists declare that the view loads nothing from any origin, the
|
|
16
|
-
* strictest policy MCP Apps allows. The card requests no device permissions.
|
|
17
|
-
* `openai/widgetDescription` when the card loads, so its reply doesn't restate what the card shows; other
|
|
18
|
-
* hosts ignore it. It describes the card rather than instructing the model.
|
|
16
|
+
* strictest policy MCP Apps allows. The card requests no device permissions.
|
|
19
17
|
*/
|
|
20
18
|
export const SEND_CONFIRMATION_RESOURCE_META = {
|
|
21
19
|
ui: {
|
|
22
20
|
csp: { connectDomains: [], resourceDomains: [], frameDomains: [], baseUriDomains: [] },
|
|
23
21
|
prefersBorder: true,
|
|
24
22
|
},
|
|
25
|
-
'openai/widgetDescription': 'Shows the user the previewed email as it will be sent: the sender, To, Cc and Bcc recipients, subject, ' +
|
|
26
|
-
'body and attachments, with a Send button when the email can be sent from the card. The user sees these ' +
|
|
27
|
-
'details in the card; a very long body is cut short there. When the preview fails, the card shows only an ' +
|
|
28
|
-
'error and asks the user to have the assistant fix it.',
|
|
29
23
|
};
|
|
30
24
|
/** The card as `resources/list` advertises it. */
|
|
31
25
|
export const SEND_CONFIRMATION_RESOURCE = {
|
|
@@ -121,19 +115,20 @@ function bounded(value) {
|
|
|
121
115
|
return { value: value.slice(0, end), truncated: true };
|
|
122
116
|
}
|
|
123
117
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* card
|
|
128
|
-
*
|
|
118
|
+
* The `cardNote` of a successful preview_send result that carries the card's `_meta`, beside `data` in
|
|
119
|
+
* structuredContent and in the JSON text. ChatGPT and claude.ai give the model structuredContent, not other text
|
|
120
|
+
* blocks. The model can't see the card or the body it shows, so without this it repeats the preview under the
|
|
121
|
+
* card. It goes wherever the card's `_meta` goes, not only to clients that declare MCP Apps: some that declare it
|
|
122
|
+
* show no card, and some that render it send no capabilities with tool calls. So the text holds whether or not a
|
|
123
|
+
* card rendered, and says what follows where one did.
|
|
129
124
|
*/
|
|
130
|
-
export const SEND_CONFIRMATION_RESULT_NOTE = "
|
|
131
|
-
'subject, body and attachments, with a Send button when
|
|
132
|
-
'
|
|
125
|
+
export const SEND_CONFIRMATION_RESULT_NOTE = "Clients that support Fluxmail's send card show this email to the user in the card: the sender, recipients, " +
|
|
126
|
+
'subject, body and attachments, with a Send button when it can be sent from there. Where the card is shown, ' +
|
|
127
|
+
'the user has already seen these details, so repeating them under the card is redundant. A very long body is ' +
|
|
128
|
+
'cut short in the card.';
|
|
133
129
|
/**
|
|
134
|
-
* The `_meta` to add to a successful preview_send result for hosts that may render the card.
|
|
135
|
-
*
|
|
136
|
-
* `_meta` to model context.
|
|
130
|
+
* The `_meta` to add to a successful preview_send result for hosts that may render the card. The result also
|
|
131
|
+
* gains SEND_CONFIRMATION_RESULT_NOTE as `cardNote`; hosts don't add `_meta` to model context.
|
|
137
132
|
*/
|
|
138
133
|
export function sendConfirmationResultMeta(input) {
|
|
139
134
|
const text = bounded(input.body.text);
|
package/dist/mcp/apps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/mcp/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,CAAC;AAEvG,2FAA2F;AAC3F,MAAM,CAAC,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAClE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,2BAA2B,CAAC;AAE9D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,8BAA8B,GAAG,yCAAyC,CAAC;AACxF,qDAAqD;AACrD,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC;AACr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
|
|
1
|
+
import type { AttachmentInput, AttachmentMeta, AttachmentReference, EmailAddress, Message } from '../types.js';
|
|
2
2
|
/** The update_draft arguments that change a draft's content. */
|
|
3
3
|
export interface DraftUpdateFields {
|
|
4
4
|
to?: string[];
|
|
@@ -7,7 +7,8 @@ export interface DraftUpdateFields {
|
|
|
7
7
|
subject?: string;
|
|
8
8
|
bodyText?: string;
|
|
9
9
|
bodyHtml?: string;
|
|
10
|
-
attachments
|
|
10
|
+
/** Attachment content, or references to attachments in the mailbox, which replace the draft's attachments. */
|
|
11
|
+
attachments?: Array<Partial<AttachmentInput> & Partial<AttachmentReference>>;
|
|
11
12
|
replyToMessageId?: string;
|
|
12
13
|
replyAll?: boolean;
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draftUpdate.d.ts","sourceRoot":"","sources":["../../src/mcp/draftUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"draftUpdate.d.ts","sourceRoot":"","sources":["../../src/mcp/draftUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE/G,gEAAgE;AAChE,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8GAA8G;IAC9G,WAAW,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAoBD,KAAK,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,kBAAkB,GAAG,UAAU,CAAC,EAC/E,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC,CAWjD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC,EACtE,OAAO,EAAE,OAAO,GACf,cAAc,EAAE,CAWlB;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,EAChE,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,GAC9D,OAAO,CAAC,CAAC,CAAC,CA4BZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draftUpdate.js","sourceRoot":"","sources":["../../src/mcp/draftUpdate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draftUpdate.js","sourceRoot":"","sources":["../../src/mcp/draftUpdate.ts"],"names":[],"mappings":"AAgBA,SAAS,eAAe,CAAC,OAAqB;IAC5C,2FAA2F;IAC3F,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;AACjG,CAAC;AAED,uGAAuG;A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B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA+
|
|
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,CA+nEvF,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAy7DxF,CAAC"}
|
|
@@ -815,33 +815,47 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
|
|
|
815
815
|
type: 'object',
|
|
816
816
|
properties: {
|
|
817
817
|
filename: {
|
|
818
|
+
description: 'Required with content',
|
|
818
819
|
type: 'string',
|
|
819
820
|
minLength: 1,
|
|
820
821
|
maxLength: 255,
|
|
821
822
|
},
|
|
822
823
|
mimeType: {
|
|
824
|
+
description: 'Required with content',
|
|
823
825
|
type: 'string',
|
|
824
826
|
minLength: 1,
|
|
825
827
|
maxLength: 255,
|
|
826
828
|
},
|
|
827
829
|
content: {
|
|
828
|
-
type: 'string',
|
|
829
830
|
description: 'base64',
|
|
831
|
+
type: 'string',
|
|
830
832
|
},
|
|
831
833
|
contentId: {
|
|
832
|
-
description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
834
|
+
description: 'With content: Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
833
835
|
type: 'string',
|
|
834
836
|
minLength: 1,
|
|
835
837
|
maxLength: 255,
|
|
836
838
|
},
|
|
837
839
|
disposition: {
|
|
838
|
-
description: '
|
|
840
|
+
description: 'With content: defaults to attachment',
|
|
839
841
|
type: 'string',
|
|
840
842
|
enum: ['inline', 'attachment'],
|
|
841
843
|
},
|
|
844
|
+
messageId: {
|
|
845
|
+
description: 'Instead of content: a message in this mailbox with the attachment to include. Requires mail.read',
|
|
846
|
+
type: 'string',
|
|
847
|
+
minLength: 1,
|
|
848
|
+
maxLength: 512,
|
|
849
|
+
},
|
|
850
|
+
attachmentId: {
|
|
851
|
+
description: 'With messageId: the attachment ID from get_email',
|
|
852
|
+
type: 'string',
|
|
853
|
+
minLength: 1,
|
|
854
|
+
maxLength: 512,
|
|
855
|
+
},
|
|
842
856
|
},
|
|
843
|
-
required: ['filename', 'mimeType', 'content'],
|
|
844
857
|
additionalProperties: false,
|
|
858
|
+
description: 'Give content with a filename and mimeType, or messageId and attachmentId',
|
|
845
859
|
},
|
|
846
860
|
},
|
|
847
861
|
{
|
|
@@ -1002,33 +1016,47 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
|
|
|
1002
1016
|
type: 'object',
|
|
1003
1017
|
properties: {
|
|
1004
1018
|
filename: {
|
|
1019
|
+
description: 'Required with content',
|
|
1005
1020
|
type: 'string',
|
|
1006
1021
|
minLength: 1,
|
|
1007
1022
|
maxLength: 255,
|
|
1008
1023
|
},
|
|
1009
1024
|
mimeType: {
|
|
1025
|
+
description: 'Required with content',
|
|
1010
1026
|
type: 'string',
|
|
1011
1027
|
minLength: 1,
|
|
1012
1028
|
maxLength: 255,
|
|
1013
1029
|
},
|
|
1014
1030
|
content: {
|
|
1015
|
-
type: 'string',
|
|
1016
1031
|
description: 'base64',
|
|
1032
|
+
type: 'string',
|
|
1017
1033
|
},
|
|
1018
1034
|
contentId: {
|
|
1019
|
-
description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
1035
|
+
description: 'With content: Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
1020
1036
|
type: 'string',
|
|
1021
1037
|
minLength: 1,
|
|
1022
1038
|
maxLength: 255,
|
|
1023
1039
|
},
|
|
1024
1040
|
disposition: {
|
|
1025
|
-
description: '
|
|
1041
|
+
description: 'With content: defaults to attachment',
|
|
1026
1042
|
type: 'string',
|
|
1027
1043
|
enum: ['inline', 'attachment'],
|
|
1028
1044
|
},
|
|
1045
|
+
messageId: {
|
|
1046
|
+
description: 'Instead of content: a message in this mailbox with the attachment to include. Requires mail.read',
|
|
1047
|
+
type: 'string',
|
|
1048
|
+
minLength: 1,
|
|
1049
|
+
maxLength: 512,
|
|
1050
|
+
},
|
|
1051
|
+
attachmentId: {
|
|
1052
|
+
description: 'With messageId: the attachment ID from get_email',
|
|
1053
|
+
type: 'string',
|
|
1054
|
+
minLength: 1,
|
|
1055
|
+
maxLength: 512,
|
|
1056
|
+
},
|
|
1029
1057
|
},
|
|
1030
|
-
required: ['filename', 'mimeType', 'content'],
|
|
1031
1058
|
additionalProperties: false,
|
|
1059
|
+
description: 'Give content with a filename and mimeType, or messageId and attachmentId',
|
|
1032
1060
|
},
|
|
1033
1061
|
},
|
|
1034
1062
|
{
|
|
@@ -1223,33 +1251,47 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
|
|
|
1223
1251
|
type: 'object',
|
|
1224
1252
|
properties: {
|
|
1225
1253
|
filename: {
|
|
1254
|
+
description: 'Required with content',
|
|
1226
1255
|
type: 'string',
|
|
1227
1256
|
minLength: 1,
|
|
1228
1257
|
maxLength: 255,
|
|
1229
1258
|
},
|
|
1230
1259
|
mimeType: {
|
|
1260
|
+
description: 'Required with content',
|
|
1231
1261
|
type: 'string',
|
|
1232
1262
|
minLength: 1,
|
|
1233
1263
|
maxLength: 255,
|
|
1234
1264
|
},
|
|
1235
1265
|
content: {
|
|
1236
|
-
type: 'string',
|
|
1237
1266
|
description: 'base64',
|
|
1267
|
+
type: 'string',
|
|
1238
1268
|
},
|
|
1239
1269
|
contentId: {
|
|
1240
|
-
description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
1270
|
+
description: 'With content: Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
1241
1271
|
type: 'string',
|
|
1242
1272
|
minLength: 1,
|
|
1243
1273
|
maxLength: 255,
|
|
1244
1274
|
},
|
|
1245
1275
|
disposition: {
|
|
1246
|
-
description: '
|
|
1276
|
+
description: 'With content: defaults to attachment',
|
|
1247
1277
|
type: 'string',
|
|
1248
1278
|
enum: ['inline', 'attachment'],
|
|
1249
1279
|
},
|
|
1280
|
+
messageId: {
|
|
1281
|
+
description: 'Instead of content: a message in this mailbox with the attachment to include. Requires mail.read',
|
|
1282
|
+
type: 'string',
|
|
1283
|
+
minLength: 1,
|
|
1284
|
+
maxLength: 512,
|
|
1285
|
+
},
|
|
1286
|
+
attachmentId: {
|
|
1287
|
+
description: 'With messageId: the attachment ID from get_email',
|
|
1288
|
+
type: 'string',
|
|
1289
|
+
minLength: 1,
|
|
1290
|
+
maxLength: 512,
|
|
1291
|
+
},
|
|
1250
1292
|
},
|
|
1251
|
-
required: ['filename', 'mimeType', 'content'],
|
|
1252
1293
|
additionalProperties: false,
|
|
1294
|
+
description: 'Give content with a filename and mimeType, or messageId and attachmentId',
|
|
1253
1295
|
},
|
|
1254
1296
|
},
|
|
1255
1297
|
{
|
|
@@ -1423,33 +1465,47 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
|
|
|
1423
1465
|
type: 'object',
|
|
1424
1466
|
properties: {
|
|
1425
1467
|
filename: {
|
|
1468
|
+
description: 'Required with content',
|
|
1426
1469
|
type: 'string',
|
|
1427
1470
|
minLength: 1,
|
|
1428
1471
|
maxLength: 255,
|
|
1429
1472
|
},
|
|
1430
1473
|
mimeType: {
|
|
1474
|
+
description: 'Required with content',
|
|
1431
1475
|
type: 'string',
|
|
1432
1476
|
minLength: 1,
|
|
1433
1477
|
maxLength: 255,
|
|
1434
1478
|
},
|
|
1435
1479
|
content: {
|
|
1436
|
-
type: 'string',
|
|
1437
1480
|
description: 'base64',
|
|
1481
|
+
type: 'string',
|
|
1438
1482
|
},
|
|
1439
1483
|
contentId: {
|
|
1440
|
-
description: 'Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
1484
|
+
description: 'With content: Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>',
|
|
1441
1485
|
type: 'string',
|
|
1442
1486
|
minLength: 1,
|
|
1443
1487
|
maxLength: 255,
|
|
1444
1488
|
},
|
|
1445
1489
|
disposition: {
|
|
1446
|
-
description: '
|
|
1490
|
+
description: 'With content: defaults to attachment',
|
|
1447
1491
|
type: 'string',
|
|
1448
1492
|
enum: ['inline', 'attachment'],
|
|
1449
1493
|
},
|
|
1494
|
+
messageId: {
|
|
1495
|
+
description: 'Instead of content: a message in this mailbox with the attachment to include. Requires mail.read',
|
|
1496
|
+
type: 'string',
|
|
1497
|
+
minLength: 1,
|
|
1498
|
+
maxLength: 512,
|
|
1499
|
+
},
|
|
1500
|
+
attachmentId: {
|
|
1501
|
+
description: 'With messageId: the attachment ID from get_email',
|
|
1502
|
+
type: 'string',
|
|
1503
|
+
minLength: 1,
|
|
1504
|
+
maxLength: 512,
|
|
1505
|
+
},
|
|
1450
1506
|
},
|
|
1451
|
-
required: ['filename', 'mimeType', 'content'],
|
|
1452
1507
|
additionalProperties: false,
|
|
1508
|
+
description: 'Give content with a filename and mimeType, or messageId and attachmentId',
|
|
1453
1509
|
},
|
|
1454
1510
|
},
|
|
1455
1511
|
{
|
|
@@ -3315,6 +3371,9 @@ export const SHARED_TOOL_OUTPUT_SCHEMAS = {
|
|
|
3315
3371
|
required: ['accountId', 'from', 'to', 'cc', 'bcc', 'subject', 'attachments', 'bodyTextChars', 'bodyHtmlChars'],
|
|
3316
3372
|
additionalProperties: false,
|
|
3317
3373
|
},
|
|
3374
|
+
cardNote: {
|
|
3375
|
+
type: 'string',
|
|
3376
|
+
},
|
|
3318
3377
|
},
|
|
3319
3378
|
required: ['data'],
|
|
3320
3379
|
additionalProperties: false,
|