Commit Graph

737 Commits (f97bd7711704c23cf9af74b5a15c79d8df54bc28)

Author SHA1 Message Date
Elian Doran e87789d92b
Merge pull request #2208 from TriliumNext/fix/llm-chat-save-bug
fix(llm): save to the same note that the chat request was sent from
2025-06-08 10:45:58 +07:00
Elian Doran a95acd5529
Merge pull request #2210 from TriliumNext/renovate/compression-1.x
chore(deps): update dependency @types/compression to v1.8.1
2025-06-08 10:45:39 +07:00
renovate[bot] e3d0a73459
chore(deps): update dependency @types/compression to v1.8.1 2025-06-08 07:43:23 +07:00
Elian Doran 93b5fc2236
Merge pull request #2206 from TriliumNext/fix/llm-embeddings-removal-increment-version
fix(server): increment SYNC_VERSION and APP_DB_VERSION for LLM embedd…
2025-06-08 10:42:59 +07:00
Elian Doran 916e855ed0
Merge pull request #2215 from TriliumNext/renovate/multer-1.x
chore(deps): update dependency @types/multer to v1.4.13
2025-06-08 10:33:11 +07:00
renovate[bot] 5b154d2544
chore(deps): update dependency @types/multer to v1.4.13 2025-06-08 07:31:57 +07:00
Elian Doran 6734dae956
chore(server): add serve-nodir 2025-06-08 10:29:20 +07:00
Elian Doran 6b844063b6
Merge pull request #2216 from TriliumNext/renovate/serve-static-1.x
chore(deps): update dependency @types/serve-static to v1.15.8
2025-06-08 10:28:11 +07:00
Elian Doran 5313ce7843
Merge pull request #2211 from TriliumNext/renovate/cookie-parser-1.x
chore(deps): update dependency @types/cookie-parser to v1.4.9
2025-06-08 10:27:33 +07:00
Elian Doran 34fa770748
Merge pull request #2213 from TriliumNext/renovate/express-session-1.x
chore(deps): update dependency @types/express-session to v1.18.2
2025-06-08 10:26:58 +07:00
renovate[bot] 858801502d
chore(deps): update dependency @types/serve-static to v1.15.8 2025-06-08 01:58:09 +07:00
renovate[bot] f83d33754e
chore(deps): update dependency @types/mime-types to v3.0.1 2025-06-08 01:56:48 +07:00
renovate[bot] a3c655ffc5
chore(deps): update dependency @types/express-session to v1.18.2 2025-06-08 01:55:20 +07:00
renovate[bot] cf9f59304c
chore(deps): update dependency @types/cookie-parser to v1.4.9 2025-06-08 01:53:26 +07:00
perf3ct c6062f453a
fix(llm): changing providers works now 2025-06-07 23:57:35 +07:00
perf3ct 414781936b
fix(llm): always fetch the user's selected model 2025-06-07 23:36:53 +07:00
perf3ct 0ce5307c0b
fix(llm): well this has been using the wrong value the whole time 2025-06-07 23:16:44 +07:00
perf3ct d8bbece02a
feat(e2e): llm tests mostly pass 2025-06-07 23:07:54 +07:00
perf3ct bb483558b0
feat(llm): add e2e tests for llm 2025-06-07 22:41:55 +07:00
perf3ct b6b88dff86
fix(server): increment SYNC_VERSION and APP_DB_VERSION for LLM embeddings removal 2025-06-07 21:13:02 +07:00
perf3ct 7f9ad04b57
feat(llm): create unit tests for LLM services 2025-06-07 21:03:54 +07:00
Elian Doran ebb1654d0e
Merge pull request #2205 from TriliumNext/feat/llm-remove-embeddings
Remove Embeddings from LLM feature
2025-06-07 22:54:05 +07:00
perf3ct ff37050470
fix(llm): delete provider_manager for embeddings too 2025-06-07 19:33:19 +07:00
perf3ct b0d804da08
fix(llm): remove the vectorSearch stage from the pipeline 2025-06-07 18:57:08 +07:00
perf3ct 4550c12c6e
feat(llm): remove everything to do with embeddings, part 3 2025-06-07 18:30:46 +07:00
perf3ct 44a2e7df21
feat(llm): remove everything to do with embeddings, part 2 2025-06-07 18:20:06 +07:00
Elian Doran bed3c61142
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-07 21:15:38 +07:00
perf3ct 44a45780b7
feat(llm): remove everything to do with embeddings 2025-06-07 18:11:12 +07:00
Elian Doran 7281233012
chore(build): enable source maps 2025-06-07 20:12:13 +07:00
Elian Doran 4def18e882
fix(desktop): query parameters not working 2025-06-07 18:46:29 +07:00
Elian Doran 03024ef7a9
chore(desktop): bypass query error 2025-06-07 15:59:17 +07:00
Elian Doran 9907f7f60f
fix(desktop): CLS failing due to lack of listeners 2025-06-07 15:45:56 +07:00
Elian Doran ebeabe2b54
fix(desktop): adapt request mocking to express 5 2025-06-07 14:58:07 +07:00
Panagiotis Papadopoulos 0bc91349f6
refactor(routes/custom): update path "/custom/*path" for express v5 2025-06-07 14:21:37 +07:00
Panagiotis Papadopoulos 23297c9860
fix(routes): remove unused wildcard in apiRoute "/api/options/:name/:value*"
the updateOption function that handles the req.param is just destructuring `const { name, value } = req.params;` and does nothing else with the path or any params.
The remaining parts of the wildcard (which can be accessed via req.param[0]) are just ignored here.

even with express v4, this would *always* just take and process the very first part of the path, in the exact wildcard's place, e.g.

`/api/options/locale/de` and
`/api/options/locale/de/test/whatever`
would *both* end up destructuring "value" from req.param as "de" (because it is in the exact place of the 'value' wildcard)

in express v5 the wildcard behaviour changes -> here req.param.value would return an array with the paths split into separate string.

but since the code previously regarded only the first part of the path -> we can just get rid of the wildcard and use a named route param

the only thing to keep in mind: if a request with more than one "value" is received, (e.g. `/api/options/locale/de/test/whatever`) -> since we don't have the wildcard anymore  -> this will turn to a 404.
IMHO that is actually desirable here though
2025-06-07 14:21:35 +07:00
renovate[bot] 086bd10f84
fix(deps): update dependency express to v5 2025-06-07 11:15:22 +07:00
Jin bffb47645c fix: 🐛 fix SSO icon loading 2025-06-07 12:10:41 +07:00
Jin 4cafd83c25 feat: 🎸 set SSO login page ui 2025-06-07 12:10:41 +07:00
Jin db3bf4c12c feat: 🎸 set SSO login logic 2025-06-07 12:10:41 +07:00
Jin fa44a5343b feat: 🎸 support custon oidc server 2025-06-07 12:10:41 +07:00
Elian Doran c8b3cdf01b
feat(ci): introduce RelativeCI for the client 2025-06-07 13:02:37 +07:00
Elian Doran 408dcf7713
chore(release): prepare for v0.94.1 2025-06-07 12:46:18 +07:00
Elian Doran 4fd99e1728
docs(user): describe session management 2025-06-07 12:38:06 +07:00
Elian Doran 7a04c8a7fd
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-07 12:04:16 +07:00
Elian Doran 68631150af
chore(test): adjust timeout 2025-06-07 12:04:14 +07:00
Elian Doran 9ead5abc62
Merge pull request #2181 from TriliumNext/feat/llm-change-to-single-provider
LLM integration, part 4
2025-06-07 11:38:30 +07:00
Elian Doran a7f4bcda8f
fix(test): wrong assertion after changing expiration interval 2025-06-07 11:38:18 +07:00
Elian Doran 68163f90d1
fix(server): keep session cookies up to to 24h (closes #2196) 2025-06-07 11:28:30 +07:00
Elian Doran dc35ad9ace
fix(server): type errors due to session management 2025-06-07 11:27:07 +07:00
Elian Doran 244a162e42
feat(server): renew session when "Remember me" is off 2025-06-07 11:12:36 +07:00
Elian Doran f8ded7b171
test(server): sessions are cleaned up 2025-06-07 10:47:02 +07:00
Elian Doran 3cf35f9e0c
refactor(test): group login tests 2025-06-07 10:33:02 +07:00
Elian Doran 8516df8f9b
test(server): ensure session expiry date is well set 2025-06-07 10:10:04 +07:00
Elian Doran e003ec3b6f
test(server): ensure session info exists 2025-06-07 10:03:53 +07:00
Elian Doran 2ceab66b98
refactor(server): augment session data instead of replacing it at request level 2025-06-07 09:55:19 +07:00
perf3ct cb3844e627
fix(llm): fix duplicated text when streaming responses 2025-06-07 00:27:56 +07:00
perf3ct 6bc9b3c184
feat(llm): resolve sending double headers in responses, and not being able to send requests to ollama 2025-06-07 00:02:26 +07:00
perf3ct 20ec294774
feat(llm): still work on decomplicating provider creation 2025-06-06 20:30:24 +07:00
Elian Doran acaaf1f1f4
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-06 23:26:34 +07:00
Elian Doran c18451a378
fix(server): no longer working subdir due to assets (fixes #2098) 2025-06-06 23:26:30 +07:00
perf3ct 8f33f37de3
feat(llm): for sure overcomplicate what should be a very simple thing 2025-06-06 20:11:33 +07:00
perf3ct 85cfc8fbd4
feat(llm): have OpenAI provider not require API keys (for endpoints like LM Studio) 2025-06-06 19:22:39 +07:00
Elian Doran 091cd7a18a
fix(server): totp asked even if no authentication is enabled 2025-06-06 16:17:21 +07:00
Elian Doran 63a6f00a47
chore(server): add logs to debug missing session 2025-06-06 09:27:51 +07:00
renovate[bot] bc09c6f217
chore(deps): update dependency openai to v5.1.1 2025-06-06 01:30:50 +07:00
perf3ct c26b74495c
feat(llm): remove LLM deprecated functions 2025-06-05 22:34:20 +07:00
perf3ct 3a4bb47cc1
feat(llm): embeddings work and are created when launching for the first ever time 2025-06-05 21:03:15 +07:00
JYC333 96431fc581
Merge branch 'develop' into date/time 2025-06-05 21:29:39 +07:00
perf3ct bb8a374ab8
feat(llm): transition from initializing LLM providers, to creating them on demand 2025-06-05 19:27:45 +07:00
perf3ct c1b10d70b8
feat(llm): also add functions to clear/unregister embedding providers 2025-06-05 18:59:32 +07:00
perf3ct 49e123f399
feat(llm): create endpoints for starting/stopping embeddings 2025-06-05 18:47:25 +07:00
perf3ct a084805762
Merge branch 'develop' into feat/llm-change-to-single-provider 2025-06-05 18:26:40 +07:00
Jin 4770bdeb90 docs: ✏️ Fix Journal demo relation name 2025-06-05 17:16:37 +07:00
Elian Doran b39119119b
fix(share): custom share templates no longer working 2025-06-05 14:32:49 +07:00
Elian Doran 79dae44dbc
feat(share): improve error logging for missing templates 2025-06-05 14:32:49 +07:00
Elian Doran b81be8f8d7
feat(share): pass t for translations 2025-06-05 14:32:49 +07:00
SiriusXT 5d017f4524 Merge branch 'develop' into date/time 2025-06-05 18:57:19 +07:00
renovate[bot] c06ca0dbf8
chore(deps): update dependency electron to v36.4.0 2025-06-05 09:24:16 +07:00
renovate[bot] 446a38e861
chore(deps): update dependency @anthropic-ai/sdk to v0.53.0 2025-06-05 08:36:11 +07:00
Elian Doran 0c8ea23345
Revert "chore: 🤖 Update docs"
This reverts commit 6caba39621.
2025-06-05 08:52:38 +07:00
perf3ct 5bc2c3ac18
feat(llm): also have the embedding provider settings be changeable 2025-06-04 22:58:20 +07:00
perf3ct 63722a28a2
feat(llm): also add embeddings options for embedding creation 2025-06-04 22:30:16 +07:00
perf3ct fe15a0378a
fix(llm): have the model_selection_stage use the instance of the aiServiceManager 2025-06-04 20:23:06 +07:00
perf3ct a20e36f4ee
feat(llm): change from using precedence list to using a sing specified provider for either chat and/or embeddings 2025-06-04 20:13:13 +07:00
Elian Doran 9bfadd7799
Merge branch 'develop' into dateNote 2025-06-04 22:54:10 +07:00
Elian Doran 4475568d19
fix(server): migration not working due to change in becca loader 2025-06-04 22:36:51 +07:00
Elian Doran f9d8bf26c4
test(server): migrate integration database to latest 2025-06-04 21:51:46 +07:00
Elian Doran 86689896a1
test(server): don't do automatic backup if migrating database 2025-06-04 21:44:27 +07:00
Elian Doran 1818ae1f72
fix(desktop): blank screen when starting (closes #2103) 2025-06-04 19:55:04 +07:00
Jin 3339b36e61 docs: ✏️ Fix day note docs error 2025-06-04 17:01:00 +07:00
Jin f3aa6adb65 docs: ✏️ Update day note and template docs 2025-06-04 11:14:42 +07:00
Jin 6caba39621 chore: 🤖 Update docs 2025-06-04 11:00:14 +07:00
Jin deacd7f340 docs: ✏️ Update day note docs 2025-06-04 10:52:19 +07:00
SiriusXT 3cdee1ac86 Merge branch 'develop' into date/time 2025-06-04 16:48:37 +07:00
Elian Doran df7f0d4099
Merge pull request #2110 from TriliumNext/feat/llm-integration-part3
LLM Integration, part 3
2025-06-04 11:41:49 +07:00
Elian Doran 6563601667
Merge pull request #2123 from FliegendeWurst/shortcuts-i18n
feat(i18n): description for all keyboard shortcuts
2025-06-04 11:39:47 +07:00
Elian Doran 8445ece231
Merge pull request #2106 from TriliumNext/fix/llm-becca-sync
fix(llm): Fix Note Embeddings not being synced correctly and causing sync loops
2025-06-04 11:38:49 +07:00
Elian Doran dfed0d5f5b
Merge pull request #2092 from TriliumNext/feature/grafana-dashboard
feat(metrics): add documentation for using grafana dashboard
2025-06-04 11:35:55 +07:00
Elian Doran 2e1ced38e4
Merge pull request #2127 from TriliumNext/fix/llm-model-names
fix(llm): don't filter for specific words when pulling models for openai
2025-06-04 11:34:47 +07:00
Jin 48ad381a50 refactor: 💡 Add typing 2025-06-04 10:33:40 +07:00
Elian Doran 4cab710dfd
Merge pull request #2101 from TriliumNext/patch-theme-2
fix(theme): theme is not enabled on the phone
2025-06-04 11:28:22 +07:00
Elian Doran 555c596a0f
Merge branch 'develop' into shortcuts-i18n 2025-06-04 11:04:41 +07:00
Elian Doran d61fe70f4e
Merge branch 'develop' of github.com:TriliumNext/Notes into develop 2025-06-04 10:53:09 +07:00
Elian Doran 6405b6e7e4
chore(server): remove configuration for reporters 2025-06-04 10:52:52 +07:00
Jin f650cca652 refactor: 💡 replace substr with substring 2025-06-04 09:47:05 +07:00
Elian Doran ce570bf080
Merge branch 'develop' into feature/grafana-dashboard 2025-06-04 10:36:56 +07:00
Elian Doran 3ccc16ca19
Merge pull request #2130 from TriliumNext/renovate/multer-2.x
chore(deps): update dependency multer to v2.0.1
2025-06-04 10:33:37 +07:00
renovate[bot] 93ea1e7cdb
chore(deps): update dependency openai to v5.1.0 2025-06-04 07:05:07 +07:00
renovate[bot] e24b467801
chore(deps): update dependency multer to v2.0.1 2025-06-04 07:03:31 +07:00
Elian Doran dbeb4e1c87
fix(share): missing CK editor stylesheet (closes #2124) 2025-06-04 09:22:07 +07:00
perf3ct 3050424d53
fix(llm): don't filter for specific words when pulling models for openai 2025-06-03 20:47:16 +07:00
Elian Doran 307af229ae
fix(test): one more flaky test 2025-06-03 21:25:00 +07:00
Elian Doran 4a4c34e966
fix(test): some etapi tests failing 2025-06-03 20:16:39 +07:00
FliegendeWurst 12d018fdfc feat(i18n): description for all keyboard shortcuts 2025-06-03 19:10:12 +07:00
Elian Doran cecbe5862c
fix(etapi): some endpoints failing due to async (closes #2105) 2025-06-03 19:46:38 +07:00
Elian Doran ff1a8d2280
test(etapi): port get-date-notes 2025-06-03 19:32:17 +07:00
Elian Doran 931f9e572a
test(etapi): deduplicate cloning in delete-entities 2025-06-03 19:24:23 +07:00
Elian Doran cd310119bc
test(etapi): delete-entities not running properly due to missing await 2025-06-03 19:23:11 +07:00
Elian Doran 594e264eea
test(etapi): port delete-note-with-all-branches 2025-06-03 19:21:02 +07:00
Elian Doran 9d1717ca9f
test(etapi): port delete-cloned-branch 2025-06-03 19:16:59 +07:00
Elian Doran 94fd53db05
test(etapi): port delete-attribute 2025-06-03 19:11:27 +07:00
Elian Doran fe19e05715
test(etapi): port delete-attachment 2025-06-03 19:08:50 +07:00
Elian Doran 3ec29b2e21
test(etapi): port get-inherited-attribute-cloned 2025-06-03 18:38:15 +07:00
Elian Doran 9d24ed902c
test(etapi): port get-inherited-attribute 2025-06-03 18:26:13 +07:00
Elian Doran 8b2d951ad1
test(etapi): port patch-attribute 2025-06-03 18:14:49 +07:00
JYC333 9966413402
Merge pull request #2111 from TriliumNext/renovate/openai-5.x
chore(deps): update dependency openai to v5.0.2
2025-06-03 16:48:11 +07:00
Elian Doran ee4f9b265e
test(etapi): port patch branch 2025-06-03 12:07:44 +07:00
Elian Doran cfe2bd135b
test(etapi): port patch attachment 2025-06-03 12:07:44 +07:00
Elian Doran 2dd2adefae
test(etapi): port import zip 2025-06-03 12:07:44 +07:00
Elian Doran 3dfe2ce066
test(etapi): port export note subtree 2025-06-03 12:07:44 +07:00
Elian Doran 94cb18589a
test(etapi): port patch note 2025-06-03 12:07:44 +07:00
Elian Doran 842c8a5028
test(etapi): port post revision 2025-06-03 12:07:44 +07:00
Elian Doran bef121239c
test(etapi): port metrics 2025-06-03 12:07:44 +07:00
Elian Doran dddbb9d4d1
test(etapi): port attachment content 2025-06-03 12:07:44 +07:00
Elian Doran d75e86789d
test(etapi): port note content 2025-06-03 12:07:44 +07:00
perf3ct b76166b0d5
fix(llm): always fetch the embedding model 2025-06-03 05:13:32 +07:00
perf3ct 336cd1fbda
fix(llm): storing >1 message in a chat note works
fix(llm): storing >1 message in a chat note works
2025-06-03 03:15:17 +07:00
perf3ct d4d55b20a8
fix(llm): get rid of a lot of log.info() statements that were spammy 2025-06-03 03:00:15 +07:00
renovate[bot] be3b72d6b0
chore(deps): update dependency openai to v5.0.2 2025-06-03 00:58:57 +07:00
perf3ct d2ba270fdf
fix(llm): sending messages no longer throws an error at first 2025-06-03 00:18:45 +07:00
perf3ct ab3758c9b3
refactor(llm): resolve issue with headers being sent after request was sent 2025-06-02 23:54:38 +07:00
perf3ct e7e04b7ccd
refactor(llm): streamline chat response handling by simplifying content accumulation and removing unnecessary thinking content processing 2025-06-02 23:25:15 +07:00
perf3ct aad92b57c7
fix(llm): prevent sent message duplication 2025-06-02 22:47:30 +07:00
perf3ct 7b498cf384
refactor(llm): update chat saving logic to prevent race conditions between client and server 2025-06-02 22:30:59 +07:00
perf3ct ed64a5b4f7
refactor(llm): simplify chat handling by removing session store and directly integrating chat storage service 2025-06-02 22:09:59 +07:00
perf3ct d8d5318ace
refactor(llm): remove deprecated validateEmbeddingProviders method and update session handling in chat services 2025-06-02 21:55:52 +07:00
Jon Fuller 4aa936bd2b
Merge branch 'develop' into fix/llm-becca-sync 2025-06-02 14:52:03 +07:00
perf3ct 3a55735cd5
refactor(llm): implement new configuration methods for provider order and validation, enhancing error handling and deprecating legacy functions 2025-06-02 21:49:35 +07:00
perf3ct 5a5a69ebb8
refactor(llm): streamline model selection by utilizing the new configuration system and enhance error handling 2025-06-02 21:44:43 +07:00
perf3ct ce7c4a31a1
refactor(llm): enhance configuration handling to avoid default assumptions and improve error handling 2025-06-02 21:43:36 +07:00