emailengine-app 2.79.1 → 2.79.3

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.
Files changed (87) hide show
  1. package/.github/workflows/deploy.yml +92 -39
  2. package/.github/workflows/release.yaml +94 -34
  3. package/.release-please-manifest.json +1 -1
  4. package/CHANGELOG.md +85 -0
  5. package/bin/emailengine.js +8 -1
  6. package/config/default.toml +6 -0
  7. package/copy-static-files.sh +23 -2
  8. package/data/google-crawlers.json +1 -1
  9. package/lib/account.js +138 -18
  10. package/lib/api-routes/account-routes.js +13 -1
  11. package/lib/api-routes/index.js +12 -0
  12. package/lib/api-routes/mailbox-routes.js +6 -0
  13. package/lib/api-routes/mcp-oauth-routes.js +259 -0
  14. package/lib/api-routes/mcp-routes.js +172 -0
  15. package/lib/api-routes/message-routes.js +125 -4
  16. package/lib/api-routes/outbox-routes.js +7 -0
  17. package/lib/api-routes/permission-map.js +97 -1
  18. package/lib/api-routes/route-helpers.js +16 -4
  19. package/lib/api-routes/route-metadata.js +24 -4
  20. package/lib/api-routes/submit-routes.js +41 -0
  21. package/lib/api-routes/template-routes.js +7 -0
  22. package/lib/api-routes/token-routes.js +4 -2
  23. package/lib/consts.js +30 -1
  24. package/lib/email-client/base-client.js +235 -163
  25. package/lib/email-client/gmail-client.js +99 -22
  26. package/lib/email-client/imap/mailbox.js +140 -66
  27. package/lib/email-client/imap-client.js +74 -68
  28. package/lib/email-client/outlook-client.js +29 -14
  29. package/lib/enum-descriptions.js +2 -1
  30. package/lib/field-usage.js +17 -1
  31. package/lib/logger.js +43 -3
  32. package/lib/lua/s-list-accounts.lua +5 -2
  33. package/lib/mcp/index.js +29 -0
  34. package/lib/mcp/inject.js +70 -0
  35. package/lib/mcp/json-schema.js +120 -0
  36. package/lib/mcp/listen.js +171 -0
  37. package/lib/mcp/oauth.js +324 -0
  38. package/lib/mcp/protocol.js +489 -0
  39. package/lib/mcp/resources.js +139 -0
  40. package/lib/mcp/tools.js +655 -0
  41. package/lib/openapi/index.js +3 -1
  42. package/lib/response-stream.js +52 -21
  43. package/lib/routes-ui.js +4 -0
  44. package/lib/schemas.js +24 -3
  45. package/lib/token-permission-view.js +104 -8
  46. package/lib/tokens.js +34 -5
  47. package/lib/tools.js +96 -0
  48. package/lib/ui-routes/account-routes.js +43 -1
  49. package/lib/ui-routes/admin-config-routes.js +114 -1
  50. package/lib/ui-routes/admin-entities-routes.js +54 -5
  51. package/lib/ui-routes/auth-routes.js +13 -0
  52. package/lib/ui-routes/mcp-consent-routes.js +330 -0
  53. package/lib/ui-routes/route-helpers.js +116 -1
  54. package/lib/utils/network.js +9 -1
  55. package/lib/web-safe-html.js +61 -0
  56. package/lib/webhooks.js +3 -8
  57. package/package.json +15 -14
  58. package/sbom.json +1 -1
  59. package/scripts/README.md +25 -0
  60. package/scripts/build-icon.js +77 -0
  61. package/server.js +21 -9
  62. package/static/css/flyonui.css +1 -1
  63. package/static/css/src/app.tailwind.css +98 -0
  64. package/static/emailengine.ico +0 -0
  65. package/static/js/ui.js +465 -1
  66. package/static/licenses.html +85 -135
  67. package/translations/messages.pot +103 -103
  68. package/views/config/mcp.hbs +361 -0
  69. package/views/config/oauth/index.hbs +7 -0
  70. package/views/layout/prompt.hbs +62 -0
  71. package/views/mcp/authorize.hbs +136 -0
  72. package/views/partials/head_assets.hbs +3 -3
  73. package/views/partials/mcp_access_levels.hbs +13 -0
  74. package/views/partials/mcp_account_limit.hbs +14 -0
  75. package/views/partials/mcp_tool_count.hbs +19 -0
  76. package/views/partials/side_menu.hbs +1 -0
  77. package/views/partials/ui/account-picker.hbs +59 -0
  78. package/views/partials/ui/code-block.hbs +26 -0
  79. package/views/partials/ui/menu-item.hbs +5 -0
  80. package/views/partials/ui/radio.hbs +41 -0
  81. package/views/partials/ui/tab.hbs +15 -10
  82. package/views/partials/ui/tabs.hbs +8 -5
  83. package/views/templates/template.hbs +4 -3
  84. package/views/tokens/index.hbs +8 -2
  85. package/views/tokens/new.hbs +514 -243
  86. package/winconf.js +148 -48
  87. package/workers/api.js +198 -48
@@ -1,10 +1,10 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Content-Type: text/plain; charset=ascii\n"
4
- "POT-Creation-Date: 2026-08-17 09:37+0000\n"
4
+ "POT-Creation-Date: 2026-08-24 13:48+0000\n"
5
5
 
6
6
  #: views/error.hbs:6
7
- #: workers/api.js:2913
7
+ #: workers/api.js:3134
8
8
  msgid "Something went wrong"
9
9
  msgstr ""
10
10
 
@@ -27,35 +27,6 @@ msgid_plural "%d days"
27
27
  msgstr[0] ""
28
28
  msgstr[1] ""
29
29
 
30
- #: views/redirect.hbs:1
31
- msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
32
- msgstr ""
33
-
34
- #: views/oauth-scope-error.hbs:5
35
- msgid "Insufficient Permissions"
36
- msgstr ""
37
-
38
- #: views/oauth-scope-error.hbs:10
39
- msgid ""
40
- "All requested permissions are required for this service to function "
41
- "properly. Some required permissions were not granted during sign-in."
42
- msgstr ""
43
-
44
- #: views/oauth-scope-error.hbs:14
45
- msgid "The following permissions were not granted:"
46
- msgstr ""
47
-
48
- #: views/oauth-scope-error.hbs:23
49
- msgid ""
50
- "Please try again and make sure all permission checkboxes are selected on "
51
- "the Google consent screen."
52
- msgstr ""
53
-
54
- #: views/oauth-scope-error.hbs:28
55
- #: views/account-identity-error.hbs:32
56
- msgid "Try Again"
57
- msgstr ""
58
-
59
30
  #: views/unsubscribe.hbs:7
60
31
  #: views/unsubscribe.hbs:60
61
32
  #: views/unsubscribe.hbs:75
@@ -100,42 +71,41 @@ msgstr ""
100
71
  msgid "Email address"
101
72
  msgstr ""
102
73
 
103
- #: views/accounts/register/index.hbs:6
104
- msgid "Choose your email account provider"
105
- msgstr ""
106
-
107
- #: views/accounts/register/index.hbs:19
108
- msgid "Standard IMAP"
74
+ #: views/redirect.hbs:1
75
+ msgid "Click <a href=\"%s\">here</a> to continue&mldr;"
109
76
  msgstr ""
110
77
 
111
- #: views/accounts/register/imap.hbs:13
112
- msgid "Your name"
78
+ #: views/oauth-scope-error.hbs:5
79
+ msgid "Insufficient Permissions"
113
80
  msgstr ""
114
81
 
115
- #: views/accounts/register/imap.hbs:19
116
- msgid "Enter your full name"
82
+ #: views/oauth-scope-error.hbs:10
83
+ msgid ""
84
+ "All requested permissions are required for this service to function "
85
+ "properly. Some required permissions were not granted during sign-in."
117
86
  msgstr ""
118
87
 
119
- #: views/accounts/register/imap.hbs:35
120
- msgid "This setup link is restricted to this email address"
88
+ #: views/oauth-scope-error.hbs:14
89
+ msgid "The following permissions were not granted:"
121
90
  msgstr ""
122
91
 
123
- #: views/accounts/register/imap.hbs:37
124
- msgid "Enter your email address"
92
+ #: views/oauth-scope-error.hbs:23
93
+ msgid ""
94
+ "Please try again and make sure all permission checkboxes are selected on "
95
+ "the Google consent screen."
125
96
  msgstr ""
126
97
 
127
- #: views/accounts/register/imap.hbs:43
128
- #: views/accounts/register/imap-server.hbs:39
129
- #: views/accounts/register/imap-server.hbs:146
130
- msgid "Password"
98
+ #: views/oauth-scope-error.hbs:28
99
+ #: views/account-identity-error.hbs:32
100
+ msgid "Try Again"
131
101
  msgstr ""
132
102
 
133
- #: views/accounts/register/imap.hbs:49
134
- msgid "Enter your account password"
103
+ #: views/accounts/register/index.hbs:6
104
+ msgid "Choose your email account provider"
135
105
  msgstr ""
136
106
 
137
- #: views/accounts/register/imap.hbs:55
138
- msgid "Continue"
107
+ #: views/accounts/register/index.hbs:19
108
+ msgid "Standard IMAP"
139
109
  msgstr ""
140
110
 
141
111
  #: views/accounts/register/imap-server.hbs:22
@@ -147,6 +117,12 @@ msgstr ""
147
117
  msgid "Username"
148
118
  msgstr ""
149
119
 
120
+ #: views/accounts/register/imap-server.hbs:39
121
+ #: views/accounts/register/imap-server.hbs:146
122
+ #: views/accounts/register/imap.hbs:43
123
+ msgid "Password"
124
+ msgstr ""
125
+
150
126
  #: views/accounts/register/imap-server.hbs:51
151
127
  #: views/accounts/register/imap-server.hbs:158
152
128
  msgid "Important"
@@ -251,6 +227,30 @@ msgstr ""
251
227
  msgid "Request failed."
252
228
  msgstr ""
253
229
 
230
+ #: views/accounts/register/imap.hbs:13
231
+ msgid "Your name"
232
+ msgstr ""
233
+
234
+ #: views/accounts/register/imap.hbs:19
235
+ msgid "Enter your full name"
236
+ msgstr ""
237
+
238
+ #: views/accounts/register/imap.hbs:35
239
+ msgid "This setup link is restricted to this email address"
240
+ msgstr ""
241
+
242
+ #: views/accounts/register/imap.hbs:37
243
+ msgid "Enter your email address"
244
+ msgstr ""
245
+
246
+ #: views/accounts/register/imap.hbs:49
247
+ msgid "Enter your account password"
248
+ msgstr ""
249
+
250
+ #: views/accounts/register/imap.hbs:55
251
+ msgid "Continue"
252
+ msgstr ""
253
+
254
254
  #: views/account-identity-error.hbs:7
255
255
  msgid "Wrong Email Account"
256
256
  msgstr ""
@@ -283,99 +283,99 @@ msgid ""
283
283
  "connect your account."
284
284
  msgstr ""
285
285
 
286
- #: lib/tools.js:1228
286
+ #: lib/tools.js:1329
287
287
  #: lib/ui-routes/unsubscribe-routes.js:29
288
288
  #: lib/ui-routes/unsubscribe-routes.js:93
289
289
  msgid "Invalid input"
290
290
  msgstr ""
291
291
 
292
- #: lib/tools.js:2094
292
+ #: lib/tools.js:2179
293
293
  msgid "Signature validation failed"
294
294
  msgstr ""
295
295
 
296
- #: lib/tools.js:2117
297
- #: lib/tools.js:2123
298
- #: lib/tools.js:2128
299
- #: lib/ui-routes/account-routes.js:1058
296
+ #: lib/tools.js:2202
297
+ #: lib/tools.js:2208
298
+ #: lib/tools.js:2213
299
+ #: lib/ui-routes/account-routes.js:1100
300
300
  msgid "Invalid or expired account setup URL"
301
301
  msgstr ""
302
302
 
303
- #: lib/ui-routes/account-routes.js:426
304
- #: lib/ui-routes/account-routes.js:470
305
- #: lib/ui-routes/account-routes.js:714
306
- #: lib/ui-routes/account-routes.js:765
307
- #: lib/ui-routes/account-routes.js:818
308
- #: lib/ui-routes/account-routes.js:1171
309
- #: lib/ui-routes/route-helpers.js:366
310
- #: workers/api.js:2089
311
- #: workers/api.js:2159
303
+ #: lib/ui-routes/account-routes.js:468
304
+ #: lib/ui-routes/account-routes.js:512
305
+ #: lib/ui-routes/account-routes.js:756
306
+ #: lib/ui-routes/account-routes.js:807
307
+ #: lib/ui-routes/account-routes.js:860
308
+ #: lib/ui-routes/account-routes.js:1213
309
+ #: lib/ui-routes/route-helpers.js:368
310
+ #: workers/api.js:2319
311
+ #: workers/api.js:2389
312
312
  msgid "Email Account Setup"
313
313
  msgstr ""
314
314
 
315
- #: lib/ui-routes/account-routes.js:495
316
- #: lib/ui-routes/account-routes.js:527
315
+ #: lib/ui-routes/account-routes.js:537
316
+ #: lib/ui-routes/account-routes.js:569
317
317
  #: lib/ui-routes/unsubscribe-routes.js:69
318
318
  msgid "Invalid request. Check your input and try again."
319
319
  msgstr ""
320
320
 
321
- #: lib/ui-routes/account-routes.js:660
321
+ #: lib/ui-routes/account-routes.js:702
322
322
  msgid "Too many attempts for this setup link. Request a new setup link to continue."
323
323
  msgstr ""
324
324
 
325
- #: lib/ui-routes/account-routes.js:805
326
- #: lib/ui-routes/account-routes.js:1108
325
+ #: lib/ui-routes/account-routes.js:847
326
+ #: lib/ui-routes/account-routes.js:1150
327
327
  msgid "Couldn't set up account. Try again."
328
328
  msgstr ""
329
329
 
330
- #: lib/ui-routes/account-routes.js:888
331
- #: lib/ui-routes/account-routes.js:899
332
- #: lib/ui-routes/admin-entities-routes.js:2051
330
+ #: lib/ui-routes/account-routes.js:930
331
+ #: lib/ui-routes/account-routes.js:941
332
+ #: lib/ui-routes/admin-entities-routes.js:2058
333
333
  msgid "Server hostname was not found"
334
334
  msgstr ""
335
335
 
336
- #: lib/ui-routes/account-routes.js:891
337
- #: lib/ui-routes/account-routes.js:902
338
- #: lib/ui-routes/admin-entities-routes.js:2054
336
+ #: lib/ui-routes/account-routes.js:933
337
+ #: lib/ui-routes/account-routes.js:944
338
+ #: lib/ui-routes/admin-entities-routes.js:2061
339
339
  msgid "Invalid username or password"
340
340
  msgstr ""
341
341
 
342
- #: lib/ui-routes/account-routes.js:905
343
- #: lib/ui-routes/admin-entities-routes.js:2057
342
+ #: lib/ui-routes/account-routes.js:947
343
+ #: lib/ui-routes/admin-entities-routes.js:2064
344
344
  msgid "Authentication credentials were not provided"
345
345
  msgstr ""
346
346
 
347
- #: lib/ui-routes/account-routes.js:908
348
- #: lib/ui-routes/admin-entities-routes.js:2060
347
+ #: lib/ui-routes/account-routes.js:950
348
+ #: lib/ui-routes/admin-entities-routes.js:2067
349
349
  msgid "OAuth2 authentication failed"
350
350
  msgstr ""
351
351
 
352
- #: lib/ui-routes/account-routes.js:911
353
- #: lib/ui-routes/account-routes.js:915
354
- #: lib/ui-routes/admin-entities-routes.js:2063
355
- #: lib/ui-routes/admin-entities-routes.js:2067
352
+ #: lib/ui-routes/account-routes.js:953
353
+ #: lib/ui-routes/account-routes.js:957
354
+ #: lib/ui-routes/admin-entities-routes.js:2070
355
+ #: lib/ui-routes/admin-entities-routes.js:2074
356
356
  msgid "TLS protocol error"
357
357
  msgstr ""
358
358
 
359
- #: lib/ui-routes/account-routes.js:919
360
- #: lib/ui-routes/admin-entities-routes.js:2071
359
+ #: lib/ui-routes/account-routes.js:961
360
+ #: lib/ui-routes/admin-entities-routes.js:2078
361
361
  msgid "Connection timed out"
362
362
  msgstr ""
363
363
 
364
- #: lib/ui-routes/account-routes.js:922
365
- #: lib/ui-routes/admin-entities-routes.js:2074
364
+ #: lib/ui-routes/account-routes.js:964
365
+ #: lib/ui-routes/admin-entities-routes.js:2081
366
366
  msgid "Could not connect to server"
367
367
  msgstr ""
368
368
 
369
- #: lib/ui-routes/account-routes.js:925
370
- #: lib/ui-routes/admin-entities-routes.js:2077
369
+ #: lib/ui-routes/account-routes.js:967
370
+ #: lib/ui-routes/admin-entities-routes.js:2084
371
371
  msgid "Unexpected server response"
372
372
  msgstr ""
373
373
 
374
- #: lib/ui-routes/account-routes.js:1046
374
+ #: lib/ui-routes/account-routes.js:1088
375
375
  msgid "Temporary error, please try again"
376
376
  msgstr ""
377
377
 
378
- #: lib/ui-routes/admin-config-routes.js:168
378
+ #: lib/ui-routes/admin-config-routes.js:173
379
379
  msgid "Invalid API key for OpenAI"
380
380
  msgstr ""
381
381
 
@@ -387,33 +387,33 @@ msgstr ""
387
387
  msgid "Indefinite"
388
388
  msgstr ""
389
389
 
390
- #: lib/ui-routes/route-helpers.js:130
390
+ #: lib/ui-routes/route-helpers.js:132
391
391
  msgid ""
392
392
  "Connection timed out. This usually occurs if you are behind a firewall or "
393
393
  "connecting to the wrong port."
394
394
  msgstr ""
395
395
 
396
- #: lib/ui-routes/route-helpers.js:133
396
+ #: lib/ui-routes/route-helpers.js:135
397
397
  msgid "The server unexpectedly closed the connection."
398
398
  msgstr ""
399
399
 
400
- #: lib/ui-routes/route-helpers.js:136
400
+ #: lib/ui-routes/route-helpers.js:138
401
401
  msgid ""
402
402
  "The server unexpectedly closed the connection. This usually happens when "
403
403
  "attempting to connect to a TLS port without TLS enabled."
404
404
  msgstr ""
405
405
 
406
- #: lib/ui-routes/route-helpers.js:141
406
+ #: lib/ui-routes/route-helpers.js:143
407
407
  msgid ""
408
408
  "The server refused the connection. This typically occurs if the server is "
409
409
  "not running, is overloaded, or you are connecting to the wrong host or port."
410
410
  msgstr ""
411
411
 
412
- #: lib/ui-routes/route-helpers.js:195
412
+ #: lib/ui-routes/route-helpers.js:197
413
413
  msgid "Delegated"
414
414
  msgstr ""
415
415
 
416
- #: lib/ui-routes/route-helpers.js:196
416
+ #: lib/ui-routes/route-helpers.js:198
417
417
  msgid "Using credentials from \"%s\""
418
418
  msgstr ""
419
419
 
@@ -429,7 +429,7 @@ msgstr ""
429
429
  msgid "Couldn't process request. Try again."
430
430
  msgstr ""
431
431
 
432
- #: workers/api.js:2912
433
- #: workers/api.js:3013
432
+ #: workers/api.js:3133
433
+ #: workers/api.js:3237
434
434
  msgid "Requested page not found"
435
435
  msgstr ""