Commit graph

302 commits

Author SHA1 Message Date
mic
6494a4f48f Refactor getMailBody function to work also with annidated multiparts. see #335 2025-04-18 14:02:25 +02:00
Mic
e1ad9d9c5d Handle 'get_task' changes in setupStorageChangeListener to update special prompts IDs accordingly. see #333 2025-04-16 23:59:00 +02:00
Mic
12d54d8a31 Refactor getActiveSpecialPromptsIDs calls to use an argument object for improved clarity and consistency 2025-04-16 23:54:00 +02:00
Mic
cfa65c4934 Rename doGetCalendarEvent to doGetSparkFeature for clarity and update related function calls 2025-04-16 23:49:00 +02:00
Mic
6df9f86244 Refactor preference retrieval to use default values in storage queries 2025-04-16 23:39:00 +02:00
Mic
dc0d4339fb improved the additional text form when using an API connection. fixes #97 2025-04-16 00:11:00 +02:00
mic
d73e4e5eb6 Add support for checking ThunderAI Sparks version and update related UI messages. Fixes #315 2025-04-15 23:25:21 +02:00
mic
00a605e794 Imported the fix for #344 from v3.3.4 2025-04-14 22:27:03 +02:00
mic
b7565cc4d1 Fix JSON stringification of original text in openChatGPT function. see #344 2025-04-14 22:16:52 +02:00
mic
b707096ed8 Add process control for incoming emails based on preferences 2025-04-11 22:45:03 +02:00
mic
f86a408513 Update default preference for add_tags to false in reload_pref_init function. Fixes #329 2025-04-06 14:52:43 +02:00
mic
173497bc47 Fix prompt_info.use_diff_viewer condition in openChatGPT function. fixes #321 2025-04-06 14:40:39 +02:00
mic
d44478fdd7 Enhance context menu management for add_tags and spamfilter based on preferences. fixes #302 2025-03-22 22:47:59 +01:00
mic
23adcbf48f Add diff viewer functionality and related UI elements. work in progress. see #109 2025-03-22 17:58:13 +01:00
Mic
928946dfdf Add diff viewer functionality for APIs integrations. see #109 2025-03-21 00:22:00 +01:00
mic
1fd58b4788 Integrate working status management into email automatic and context menu processing flow. see #295 2025-03-19 21:37:19 +01:00
mic
edf7eabdff Add context menu click listener to process emails with tags and spam filter. see #262 2025-03-18 22:36:33 +01:00
mic
717f035803 added processEmails method 2025-03-18 22:29:17 +01:00
mic
72ccc7de90 Add context menu creation and removal functions. see #262 2025-03-16 23:32:48 +01:00
mic
87d22ff9b1 Add onboarding page. fixes #256 2025-03-10 22:39:04 +01:00
mic
715df42cc2 messagesTagsList is now a mandatory permission 2025-03-06 21:34:05 +01:00
mic
ad29a9dc71 Add listener for removed permissions to update menu items. see #286 2025-03-06 21:07:26 +01:00
mic
c8fdf3b884 typo fixed 2025-03-05 22:20:40 +01:00
mic
cd46c03cca Handle Thunderbird 115 compatibility for new mail listener. see #281 2025-03-05 22:20:19 +01:00
mic
e1d97cfc5c Merge branch 'main' of github.com:micz/ThunderAI 2025-03-05 21:26:24 +01:00
mic
9d5fc3800d removed a test line 2025-03-05 21:20:14 +01:00
Mic
5a795a1e1f remove permission checks for add_tags and spamfilter options 2025-03-05 18:15:19 +01:00
mic
5f15fd85a1 unchecking spamfilter if permissions revoked 2025-03-03 21:50:31 +01:00
mic
127f3ab18b unchecking add_tags if permissions revoked. see #276 2025-03-03 21:23:37 +01:00
mic
fc3ca39ee5 tags related permissions are now optional and asked only if the add_tags options is checked. add_tags is now default to false. fixes #259 2025-02-14 23:31:45 +01:00
mic
be6510f5fe spam report added. see #231 2025-02-14 23:22:47 +01:00
mic
720f810533 console.log debug statement commented out 2025-02-14 22:05:35 +01:00
mic
5cdeae70dc marking messages as spam and moving to the account spam folder. see #231 2025-02-14 22:05:15 +01:00
mic
abeb16b0d9 typo fixed 2025-02-11 23:44:56 +01:00
mic
29e7b5591c sending the prompt and receiving a json. see #231 2025-02-11 23:44:31 +01:00
mic
dde5c9fef6 start working on the spam filter 2025-02-10 00:02:07 +01:00
mic
f63dab1e18 specialFullPrompt var renamed and moved in the if block 2025-02-09 23:31:08 +01:00
mic
9fd035764e autotagging implemented. see #237 2025-02-09 23:24:08 +01:00
mic
f022bce638 double await fixed 2025-01-29 22:41:01 +01:00
mic
79c74cde2c forcing thunderai menu reload when installing sparks. see #240 2025-01-29 22:08:04 +01:00
Mic
a9e55c71b5 google_gemini_api: fixed a bug in checking empty apikey and model prefs 2025-01-16 23:01:00 +01:00
Mic
80fcf0e99a comment fixed 2025-01-16 22:56:00 +01:00
Mic
979f14966f console.log debug statements commented out 2025-01-16 22:56:00 +01:00
mic
fc250b9529 condition fixed 2025-01-12 22:46:08 +01:00
mic
a4a0dbdb21 reloading menu fixed 2025-01-12 22:37:44 +01:00
mic
dd00856ef6 correctly handling the calendar menu. see #182 2025-01-11 22:35:54 +01:00
mic
3b538050b6 copyright year updated 2025-01-10 21:21:37 +01:00
mic
3073cf69a3 first working version of the google gemini api. see #204 2025-01-06 00:21:58 +01:00
mic
20eb305987 added an error message if using an unknown API connection type 2025-01-05 23:59:28 +01:00
mic
1803020a6c reloading the needed prefs when reloading menus 2025-01-02 23:13:33 +01:00
mic
f6e73f5481 add_tags correctly defaults to true for the first install 2024-12-25 23:11:24 +01:00
mic
b9a802e676 tags assignment improved. see #183 2024-12-18 22:05:48 +01:00
Mic
4bab16adbc correctly assigning multiple tags. see #183 2024-12-18 01:23:00 +01:00
mic
72e6207d6d assign_tags command implemented. see #183 2024-12-18 00:23:57 +01:00
mic
6f9985cdbd fixed special item menu reload when changing prefs. see #183 2024-12-12 22:39:19 +01:00
Mic
e8ef5c968b correctly setting loading params for the menu at startup. see #183 2024-12-12 00:31:00 +01:00
Mic
938c818b99 correctly handling the menus loading special prompts. see #183 2024-12-12 00:26:00 +01:00
mic
6e9668c45f returning executeMenuAction. see #183 2024-12-10 23:32:23 +01:00
mic
7ddfc41130 listeners are no more async 2024-12-10 21:20:31 +01:00
Mic
503462b9ca more logs added to chatgpt web itnerface 2024-10-29 19:02:17 +01:00
Mic
8b75a7e17d checking the model before sending the prompt 2024-10-22 21:56:06 +02:00
Mic
e40fc8163e [chatgpt web] Now it is possible to specify the model to use and the temporary chat. see #169 and #171 2024-10-21 21:44:47 +02:00
Mic
cac620e26f
Merge pull request #167 from micz/tabmail_alert_bug_workaround
Tabmail alert bug workaround
2024-10-17 18:53:06 +02:00
Mic
6808e3a81f max_prompt_length options added. fixes #165 2024-10-17 17:35:36 +02:00
Mic
3370fbf5e9 Implemented a workaround for a Thunderbird bug, see #166 2024-10-17 17:10:32 +02:00
mic
7544699422 additional_text implemented for chatgpt_web. see #153 2024-10-16 00:20:54 +02:00
mic
1d718b3797 additional_text implemented for api calls. see #153 2024-10-15 23:43:13 +02:00
mic
0c40dc4a12 taStore useless import removed 2024-10-13 20:54:29 +02:00
mic
58cdd01c19 improved the dynamic menu prompts loading 2024-10-05 16:51:54 +02:00
mic
8277645c87 returning type fixed 2024-10-05 16:39:56 +02:00
mic
cff8a60e1c listener no more async 2024-10-05 16:35:20 +02:00
mic
f172196939 fixed chat window opening also in openai comp api. see #143 2024-10-05 16:05:47 +02:00
mic
e833911867 log messages fixed 2024-10-04 21:18:04 +02:00
mic
66ba79833a ported new chat window messaging code from branch issue_143. see #143 2024-10-04 21:16:53 +02:00
mic
55e2fb65c7 commented out a console.log debug statement 2024-09-27 22:57:56 +02:00
mic
fcb9eede32 adde logger to mzta_Menus 2024-09-25 21:35:06 +02:00
mic
f629485555 fixed comp openai api host and model checks. see #126 2024-09-24 23:08:39 +02:00
mic
8caf66eb46 if no dimensions are set, do not use it the open window call. see #137 2024-09-24 22:54:50 +02:00
mic
7f43d0dd20 popup menu correctly working via shortcut and via mouse click. see #130 2024-09-22 22:16:09 +02:00
mic
44fa9b552f typo fixed. 2024-09-22 22:00:14 +02:00
mic
401ae6b8ea working on a shortcut that opens a popup. see #130 2024-09-20 23:55:27 +02:00
mic
5004b2ee82 added prompts migration from sync to local. see #129 2024-09-13 21:05:18 +02:00
Mic
57f7cd3876 case 'openai_comp_api' added to open chat window method. see #126 2024-09-13 19:47:47 +02:00
Mic
fcc66f943d new way of opening the chatgpt web interface window. some other improvments in the chatgpt interface. see #122 2024-09-04 20:37:34 +02:00
mic
142907feff fixed the error reporting string. added a max tries to the chatgpt web interface connect script 2024-09-03 21:38:50 +02:00
mic
8d051b19f6 correctly handling and removing the listener when using the openai api 2024-08-28 22:34:00 +02:00
Mic
e4bfbcf0ea
Merge branch 'main' into 2.1.0 2024-08-28 21:48:44 +02:00
Mic
eabb4b1370
Merge pull request #120 from micz/new_internal_msg_system
New internal msg system between the background script and the chat windows
2024-08-23 14:39:22 +02:00
mic
47a4a8c5bc correctly closing the window 2024-08-23 14:36:48 +02:00
mic
687ac698a7 ollama new internal messaging system fixed 2024-08-23 14:29:23 +02:00
Mic
c104edbf93 new internal communication system for openai api 2024-08-23 14:03:25 +02:00
Mic
9698eb1d01 new internal messaging method in the ollama api call 2024-08-23 13:52:48 +02:00
mic
d7cef5dceb usgin the new logger changeDebug method. fixes #115 2024-08-22 22:32:00 +02:00
mic
afa7815ebe log messages improved. see #117 2024-08-22 22:26:12 +02:00
mic
8071fe4f16 error messages improved. see #117 2024-08-22 22:20:32 +02:00
mic
1ab1da1b68 fixed chatgpt web loop. see #117 2024-08-22 22:17:02 +02:00
mic
43c6c68238 implemented a loop on exception to send a message to the tab 2024-08-22 22:09:44 +02:00
mic
e2aa598f01 ollama_api: first version with a working ollama call! see #79 2024-08-20 18:35:37 +02:00
mic
3acac0d8f0 showNotification method removed 2024-08-20 18:01:01 +02:00
mic
00250bcfeb added the call to ollama and renamed the action from chatgpt_send to api_send when using an API. see #79 2024-08-20 17:50:41 +02:00
mic
19342cbced removed chatgpt web fallback, added error messages. fixes #111 2024-08-20 15:00:55 +02:00
mic
e014bc29ce Ignoring certain tabs when adding content scripts. 2024-08-19 23:40:51 +02:00
mic
135113ada9 using a logger, see #106 2024-08-19 18:00:35 +02:00
Mic
0495b50ccb fixed API web chat windows opnening in Thunderbird 115 2024-08-19 11:48:48 +02:00
mic
ab0a9c5d10 commented out some console.log statement. waint for #106 2024-08-16 14:27:44 +02:00
mic
fa6127bcae console.log statement temporary commented out, wating for #106 2024-08-16 00:15:09 +02:00
mic
e908fbeeff TB128+ waiting for the tab to be really loaded. Fixes #107 2024-08-16 00:07:51 +02:00
mic
ea861cc226 chatgpt_keep_formatting option removed 2024-08-14 22:44:22 +02:00
mic
ffc5c465ce indentation fixed 2024-08-14 21:59:11 +02:00
mic
7ec3a3ad0f no more notifying the error about mising api key and model 2024-08-09 17:07:02 +02:00
mic
4fdd7d3dc2 asking for custom text using the javascript prompt() function. fixes #96. To be improved. 2024-07-30 21:48:43 +02:00
mic
9bff8a0358 chatgpt api prefs renamed 2024-07-29 23:35:10 +02:00
mic
1ba49b64f3 added error notification for empty model or apikey using the ChatGPT API 2024-07-29 22:47:17 +02:00
mic
1ed94ba797 if no API key is present, fall back to the web interface. Fixes #94 2024-07-22 23:03:54 +02:00
mic
283e6fda3d Manage the options when using the API. Fixes #93 2024-07-22 23:00:35 +02:00
mic
874429e341 fixed tab loading for 115. to be fixed also for later versions 2024-07-21 22:29:55 +02:00
mic
580410c4b3 waiting for the tab to load properly 2024-07-21 22:26:40 +02:00
mic
386d49b63d sending the choosen prompt 2024-07-21 16:22:59 +02:00
mic
6b5f16dc91 first call of the new api webchat frontend (work in progress) 2024-07-21 00:19:28 +02:00
mic
c22e6d4b5e upedated error messages 2024-07-20 23:39:52 +02:00
mic
fda0378d08 using the api_active option 2024-07-20 23:27:27 +02:00
mic
dc2f581c7e showing the current prompt name in the chatgpt window. fixes #20 2024-07-16 22:50:00 +02:00
Mic
141e236923 using chatgpt_keep_formatting. fixes #77 2024-06-27 18:27:41 +02:00
mic
7a4d6bfe8c readded code to wait for the tab to be fully loaded 2024-06-26 22:56:38 +02:00
mic
61c10638cd commented out some console.log debug lines 2024-06-19 21:50:46 +02:00
mic
0750aed36e no more waiting for the tab to load 2024-06-18 23:41:23 +02:00
mic
faabd69924 removed useless import 2024-06-18 22:01:15 +02:00
mic
639fe495a7 replying to the right message. fixes #71 2024-06-18 21:08:03 +02:00
mic
6cdfd1489f micz.it url link typo fixed 2024-05-28 18:44:32 +02:00
mic
83f570feaa log desc improved. fixes #63 2024-05-17 22:46:11 +02:00
Mic
fc14199a48 chatgpt url updated 2024-05-15 22:55:21 +02:00
mic
7ae17e29a5 Imported .diff from v105 to v106 2024-05-14 18:39:12 +02:00
mic
201efcc104 fixed menu reloading 2024-05-13 20:28:29 +02:00
mic
9fd14b1276 correctly loading menus 2024-05-13 20:26:58 +02:00
mic
ee9704429d work in progress #32 2024-05-05 23:45:34 +02:00
mic
efe8e9b904 improved handling of chatgpt window dimensions 2024-05-03 23:09:19 +02:00
mic
1547409669 correctly handling the modification of the body. see #30 #34 2024-05-01 00:33:58 +02:00
mic
4a789bac11 inserting text for the reply from the background script. see #30 #34 2024-04-30 22:47:14 +02:00
mic
2044c5cd15 correctly selecting the right identity if found in the original message. fixes #31 2024-04-27 21:41:48 +02:00
mic
55692e7ebd added link to the status page. fixes #28 2024-04-18 22:40:36 +02:00
mic
6f9d80f29e using system menus. fixes #23 2024-04-17 21:12:42 +02:00
mic
42d212c715 License header added to js files 2024-04-16 22:19:52 +02:00
mic
a30810cbee If the prompt is more than 30.000 characters, do not procede and give a warning. Fixes #26 2024-04-13 21:48:36 +02:00
mic
7ec1529cf6 Keeping the quoted text in the reply. Fixes #25. 2024-04-12 23:51:21 +02:00
mic
b80ad8be3f not adding the listener if the early exit condition is met 2024-04-11 00:33:02 +02:00
mic
0ecf655245 Fixed a possible race condition injecting the script. Thanks to John Bieling. 2024-04-10 23:14:01 +02:00
mic
5caa6a6d89 Added the reply type option. related to #14 2024-04-05 12:00:32 +02:00
mic
b5e987f961 chatgpt win dimension checked against screen dimensions. fixes #16 2024-04-04 23:50:50 +02:00
mic
0d626a491c prefs: added chatgpt win dimensions option. related #14. fixes #8. 2024-04-03 22:59:05 +02:00
mic
bc3dff856e COrrectly handling the carraige returns. Fixes #9 2024-04-02 00:50:30 +02:00
mic
1e283cb2aa implemented the reply to action 2024-04-02 00:06:54 +02:00
mic
41e4a2e547 First working version 2024-04-01 22:58:39 +02:00