1623 Commits

Author SHA1 Message Date
Elian Doran
0133e83d23
Merge remote-tracking branch 'origin/develop' into ai-llm-integration 2025-04-17 22:24:55 +03:00
Elian Doran
069e307ec4
refactor(note_autocomplete): icon as separate field 2025-04-17 20:49:45 +03:00
perf3ct
5e1fc5625d
closer to decoupling sessions...
douple sessions, again

closer...

uhhh

closer....

closer...
2025-04-16 22:56:54 +00:00
perf3ct
cdc84f1cef
decouple sessions even further
i think this is a better idea?
2025-04-16 22:42:10 +00:00
perf3ct
1968a5fff8
create restoreSessionFromChatNote function 2025-04-16 21:18:01 +00:00
perf3ct
8f1723c386
get rid of unused functions 2025-04-16 20:10:41 +00:00
perf3ct
77e637384d
have the Chat Note be the single source of truth, part 1 2025-04-16 18:52:22 +00:00
perf3ct
2acc30f94a
Merge branch 'develop' into ai-llm-integration 2025-04-16 00:18:10 +00:00
Elian Doran
0f06bf43f0
Merge pull request #1708 from TriliumNext/fix_http-code-failed-login_#1707
fix(login): send back 401 Unauthorized on failed login attempt
2025-04-15 13:12:28 +03:00
Panagiotis Papadopoulos
ce83c918fb fix(login): fix regression that removed support for setting custom cookieMaxAge
regression introduced with #401
custom cookieMaxAge feature added with #1156

fixes #1709
2025-04-15 09:09:28 +02:00
Panagiotis Papadopoulos
fa350e13f6 fix(login): send back 401 Unauthorized on failed login attempt 2025-04-15 08:48:57 +02:00
perf3ct
3bddb60ecc
get anthropic sdk to send tools
nice

close

what is even going on lol

anthropic tools mostly work
2025-04-15 01:08:25 +00:00
perf3ct
6750467edc
Merge branch 'develop' into ai-llm-integration 2025-04-14 19:27:08 +00:00
Panagiotis Papadopoulos
a979e87a7f refactor(cookiePath): remove non-working cookiePath option
this option will currently not work => the cookie will never
be set by the server, if you use a different path other than "/"

in order for this to work we would need to introduce some kind of
"custom route prefix", that would make express serve the routes with
the custom prefix — but that kinda falls more into a reverse proxy
job territory.

So let's remove this feature for now and amend the docs on how to
correctly handle the cookies per instance via the reverse proxy.
2025-04-13 10:53:34 +02:00
Jon Fuller
8727ff95f1
Merge branch 'develop' into ai-llm-integration 2025-04-11 13:27:51 -07:00
perf3ct
451e5ea31f
getting closer to streaming?
even closer?

closer streaming...

this is darn close
2025-04-11 20:18:20 +00:00
Elian Doran
d8964aee28
Revert "deps: manual upgrade to express 5.1.0" 2025-04-11 16:51:42 +03:00
Jin
7f381cb733 fix: 🐛 fix sender.ts build error 2025-04-10 20:59:18 +02:00
Jin
6322f8473c fix: 🐛 fix clipper build error 2025-04-10 20:58:04 +02:00
Elian Doran
32a6aed93b
Merge remote-tracking branch 'origin/develop' into calendar 2025-04-10 21:25:58 +03:00
Elian Doran
9cfc08389c
Merge pull request #1626 from TriliumNext/deps_express5
deps: manual upgrade to express 5.1.0
2025-04-10 21:14:10 +03:00
Elian Doran
c422c3e5b9
fix(mobile): detection when authentication is disabled (closes #1660) 2025-04-10 10:35:24 +03:00
perf3ct
6fe2b87901
rip out openai custom implementation in favor of sdk 2025-04-09 21:16:29 +00:00
perf3ct
f71351db6a
also rip out our custom anthropic implementation 2025-04-09 21:08:30 +00:00
perf3ct
53223b5750
well, we ripped out our custom ollama implementation in favor of the SDK 2025-04-09 20:33:55 +00:00
Panagiotis Papadopoulos
c494cca229
Merge branch 'develop' into type_sql-transactional 2025-04-09 09:44:47 +02:00
Panagiotis Papadopoulos
da649d75c0 refactor(routes/api/recovery_codes): use Array.from with mapFn in generateRecoveryCodes
gives us the identical result as before, but a lot more concise and "DRY"
2025-04-09 09:43:38 +02:00
Panagiotis Papadopoulos
68ea84a2cb refactor(routes/api/recovery_codes): use .map instead of .forEach
it doesn't make sense to use a forEach here, when all we do is push values into an array => just use .map directly as it returns an array
2025-04-09 09:24:28 +02:00
Panagiotis Papadopoulos
05917fd815 fix(routes/api/recovery_codes): convert number into string
fixes type error, as usedStatus is expecting string[] and "indexOf" returns a number
2025-04-09 09:21:20 +02:00
Panagiotis Papadopoulos
26d5462af4 refactor(routes/custom): update path "/custom/*path" for express v5 2025-04-09 00:17:30 +02:00
Panagiotis Papadopoulos
8d09ff4299 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-04-08 23:50:53 +02:00
Elian Doran
5daed43c0f
Merge branch 'develop' into ai-llm-integration 2025-04-06 18:07:39 +03:00
Jin
6a0207dc45 fix: 🐛 fix async errors 2025-04-04 13:46:39 +02:00
Jin
bf70b949a6 Merge branch 'develop' into calendar 2025-04-02 23:28:15 +02:00
Panagiotis Papadopoulos
3f0dbb9063 chore: fix typo in verifyRecoveryCode function name 2025-04-02 21:41:48 +02:00
perf3ct
14705eb1c5
split up sendMessage into its own service 2025-04-02 19:14:26 +00:00
perf3ct
caada309ec
try using XML tags in sending to LLM, so it can more easily pick out information 2025-04-02 18:57:04 +00:00
Jin
396c32bb7d Merge branch 'develop' into calendar 2025-04-02 12:23:19 +02:00
JYC333
4b64c34cbb
Merge pull request #1595 from TriliumNext/fix/logout-headers-sent-error
Fix "Cannot set headers after they are sent" error in logout function
2025-04-02 11:44:19 +02:00
Nriver
30fb754a5f hotfix(auth): fix TOTP validation bypass issue 2025-04-02 14:29:37 +08:00
Nriver
dab65a6364 Fix "Cannot set headers after they are sent" error in logout function 2025-04-02 14:13:38 +08:00
perf3ct
49076e3cf6
clean up unused options 2025-04-01 20:38:03 +00:00
Elian Doran
ba506c9c10
refactor(dev): use es6-string-html for some of the SQL statements (closes #274) 2025-04-01 23:30:21 +03:00
perf3ct
7ae55de8b1
move the embeddings api endpoint to underneath llm 2025-04-01 18:44:10 +00:00
perf3ct
1690217797
update LLM API endpoints 2025-04-01 10:55:20 -07:00
perf3ct
b7f2a9663e
swap route for apiRoute in LLM routes 2025-04-01 10:47:05 -07:00
Jin
50009bfb6e feat: 🎸 add frontend api support 2025-04-01 19:13:09 +02:00
Jin
1313003bdb feat: 🎸 add create week note func 2025-04-01 16:57:52 +02:00
Jin
c43cca6c22 feat: 🎸 add and fix week note api services 2025-04-01 16:25:03 +02:00
SiriusXT
adcb803caa To prevent search lag when there are a large number of notes 2025-04-01 21:07:15 +08:00