230 Commits

Author SHA1 Message Date
Elian Doran
03024ef7a9
chore(desktop): bypass query error 2025-06-07 15:59:17 +03:00
Elian Doran
9907f7f60f
fix(desktop): CLS failing due to lack of listeners 2025-06-07 15:45:56 +03:00
Elian Doran
ebeabe2b54
fix(desktop): adapt request mocking to express 5 2025-06-07 14:58:07 +03:00
Panagiotis Papadopoulos
0bc91349f6
refactor(routes/custom): update path "/custom/*path" for express v5 2025-06-07 14:21:37 +03: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 +03:00
Jin
db3bf4c12c feat: 🎸 set SSO login logic 2025-06-07 12:10:41 +02:00
Elian Doran
7a04c8a7fd
Merge branch 'develop' of https://github.com/TriliumNext/Notes into develop 2025-06-07 12:04:16 +03:00
Elian Doran
68631150af
chore(test): adjust timeout 2025-06-07 12:04:14 +03: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 +03:00
Elian Doran
a7f4bcda8f
fix(test): wrong assertion after changing expiration interval 2025-06-07 11:38:18 +03:00
Elian Doran
68163f90d1
fix(server): keep session cookies up to to 24h (closes #2196) 2025-06-07 11:28:30 +03:00
Elian Doran
244a162e42
feat(server): renew session when "Remember me" is off 2025-06-07 11:12:36 +03:00
Elian Doran
f8ded7b171
test(server): sessions are cleaned up 2025-06-07 10:47:02 +03:00
Elian Doran
3cf35f9e0c
refactor(test): group login tests 2025-06-07 10:33:02 +03:00
Elian Doran
8516df8f9b
test(server): ensure session expiry date is well set 2025-06-07 10:10:04 +03:00
Elian Doran
e003ec3b6f
test(server): ensure session info exists 2025-06-07 10:03:53 +03: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 +00:00
perf3ct
85cfc8fbd4
feat(llm): have OpenAI provider not require API keys (for endpoints like LM Studio) 2025-06-06 19:22:39 +00:00
perf3ct
c26b74495c
feat(llm): remove LLM deprecated functions 2025-06-05 22:34:20 +00:00
perf3ct
49e123f399
feat(llm): create endpoints for starting/stopping embeddings 2025-06-05 18:47:25 +00:00
perf3ct
5bc2c3ac18
feat(llm): also have the embedding provider settings be changeable 2025-06-04 22:58:20 +00: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 +00:00
SiriusXT
3cdee1ac86 Merge branch 'develop' into date/time 2025-06-04 16:48:37 +08:00
Elian Doran
df7f0d4099
Merge pull request #2110 from TriliumNext/feat/llm-integration-part3
LLM Integration, part 3
2025-06-04 11:41:49 +03:00
perf3ct
3050424d53
fix(llm): don't filter for specific words when pulling models for openai 2025-06-03 20:47:16 +00: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 +00:00
perf3ct
d2ba270fdf
fix(llm): sending messages no longer throws an error at first 2025-06-03 00:18:45 +00:00
perf3ct
ab3758c9b3
refactor(llm): resolve issue with headers being sent after request was sent 2025-06-02 23:54:38 +00: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 +00:00
perf3ct
aad92b57c7
fix(llm): prevent sent message duplication 2025-06-02 22:47:30 +00:00
perf3ct
ed64a5b4f7
refactor(llm): simplify chat handling by removing session store and directly integrating chat storage service 2025-06-02 22:09:59 +00:00
perf3ct
35f78aede9
feat(llm): redo chat storage, part 1 2025-06-02 00:56:19 +00:00
SiriusXT
029d6df5ec Merge branch 'develop' into date/time 2025-06-01 15:41:46 +08:00
SiriusXT
a8c4b11c9f feat(insert time): Add configurable date/time format for Alt+T shortcut 2025-06-01 15:27:50 +08:00
perf3ct
2c48a70bfb
feat(llm): use ckeditor for text input area for mention support instead of textinput 2025-06-01 03:03:26 +00:00
SngAbc
e2ac581b14
Merge pull request #2072 from vanndoublen/feature/custom-datetime-format
Feature/custom datetime format
2025-05-31 21:50:26 +08:00
Elian Doran
ba7c93967e
chore(server): fix some type errors 2025-05-28 19:03:53 +03:00
perf3ct
758b22e6b1
feat(server): remove the use of "any" for metrics endpoint 2025-05-26 20:26:03 +00:00
perf3ct
52fb5fa298
feat(server): add metrics endpoint and functionality 2025-05-26 19:50:04 +00:00
Elian Doran
79422da733
Merge pull request #2014 from FliegendeWurst/demo-mode
feat(server): add option to mount database read-only
2025-05-26 16:47:10 +03:00
Elian Doran
9688013c91
fix(server): login rendering failure 2025-05-25 17:36:53 +03:00
Elian Doran
adc8e8ad73
fix(server): serving of images in dev mode 2025-05-25 14:15:12 +03:00
Elian Doran
1abf1d3f60
chore(server/esbuild): switch to cjs to embed deps 2025-05-23 11:58:36 +03:00
Elian Doran
9a18fea073
feat(server): add safeguard if public is missing 2025-05-21 23:31:40 +03:00
FliegendeWurst
2427addf65 feat(server): override options for read-only database 2025-05-21 17:24:36 +02:00
Elian Doran
9d6758b315
refactor(server); electron imports causing issues in bundle 2025-05-21 16:32:51 +03:00
Elian Doran
3b6679a744
refactor(serve): solve some more type errors 2025-05-21 16:00:57 +03:00
Elian Doran
de83029c3a
refactor(server): various type errors 2025-05-21 15:42:53 +03:00
Elian Doran
e573fd7fdb
fix(server): serving of Excalidraw assets 2025-05-20 20:19:34 +03:00
Elian Doran
5d47d2652d
test(server): broken test due to changes in path 2025-05-20 19:47:34 +03:00