13529 Commits

Author SHA1 Message Date
Elian Doran
e23b2f3ddd
fix(mobile): bring back scrolling to toolbar 2025-04-10 14:07:44 +03:00
Elian Doran
0f2bc529bf
feat(mobile): improve editing toolbar positioning on Android 2025-04-10 12:10:56 +03:00
Elian Doran
fbba76bbb3
refactor(components): split editor toolbar for mobile 2025-04-10 11:50:28 +03:00
Elian Doran
c422c3e5b9
fix(mobile): detection when authentication is disabled (closes #1660) 2025-04-10 10:35:24 +03:00
Elian Doran
ce4b5b8193
fix(desktop): missing </body> 2025-04-10 09:45:05 +03:00
renovate[bot]
30e9f01a6c
chore(deps): update dependency webpack to v5.99.5 2025-04-10 01:51:33 +00:00
renovate[bot]
aee169dd4c
fix(deps): update dependency marked to v15.0.8 2025-04-10 01:51:23 +00:00
renovate[bot]
b676086972
chore(deps): update dependency typescript-eslint to v8.29.1 2025-04-10 01:51:02 +00:00
renovate[bot]
572de20bd3
chore(deps): update dependency typedoc to v0.28.2 2025-04-10 01:50:46 +00:00
renovate[bot]
6e48db2d0c
chore(deps): update dependency electron to v35.1.5 2025-04-10 01:50:34 +00:00
perf3ct
b68ff88840
some more docstrings 2025-04-09 21:33:30 +00: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
perf3ct
7f92dfc3f1
okay I can call tools? 2025-04-09 20:15:21 +00:00
perf3ct
b05b88dd76
yes, this finally does set streaming to true 2025-04-09 19:53:45 +00:00
perf3ct
59a358a3ee
use this new providerMetadata approach 2025-04-09 19:21:34 +00:00
perf3ct
1dfbabc1d1
try using a new ProviderOptions approach 2025-04-09 19:11:27 +00:00
perf3ct
4f812cd2ce
require that ChatCompletionOptions be defined 2025-04-09 17:39:47 +00:00
perf3ct
8ff3f4f269
handle streaming responses better in Chat UI 2025-04-09 17:35:53 +00:00
Elian Doran
2e48837c89
feat(docs): document basic search functionality 2025-04-09 17:06:45 +03:00
Elian Doran
feb43193b1
feat(docs): document search in note functionality 2025-04-09 16:47:07 +03:00
Elian Doran
475c3bdde8
chore(docs): add rewritten links for navigation (closes #1643) 2025-04-09 15:57:19 +03:00
Elian Doran
a88a92d490
feat(edit-docs): rewrite links to allow navigation in help 2025-04-09 15:48:03 +03:00
Elian Doran
652fc48a86
chore(docs): sync 2025-04-09 15:13:10 +03:00
Elian Doran
f7fbda1b00
fix(docs): import errors due to file case errors 2025-04-09 14:46:21 +03:00
Elian Doran
27ad451bd8
feat(electron): support transparency on Linux if background effects are enabled 2025-04-09 14:10:11 +03:00
Elian Doran
c603efb44b
Merge pull request #1655 from TriliumNext/type_sql-transactional
types: use type variable for sql.transactional's return value
2025-04-09 12:07:57 +03:00
JYC333
34d401574c
Merge pull request #1650 from TriliumNext/eslint
Use eslint simple-import-sort plugin to enable auto fix
2025-04-09 16:49:27 +08:00
Panagiotis Papadopoulos
6d74f6c1c4 chore(deps): run npm audit fix
fixes
vite  6.2.0 - 6.2.4
Severity: moderate
Vite allows server.fs.deny to be bypassed with .svg or relative paths - https://github.com/advisories/GHSA-xcj6-pq6g-qj4x
2025-04-09 09:52:01 +02: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
eae68064e5 types(recovery_codes): use sql.transactional Generics to simplify typings 2025-04-09 08:41:55 +02:00
Panagiotis Papadopoulos
af85ef0b47 types(services/sql): explicitly cast return value as type variable T instead of any
previously the type variable was useless, because
`const ret = (dbConnection.transaction(func) as any).deferred();` was inferred as "any".
2025-04-09 08:34:42 +02:00
Panagiotis Papadopoulos
80dd925231 chore(lint): fix minor lint issues in recovery_codes
/home/pano/Programming/0_repos/TriliumNextNotes/src/services/encryption/recovery_codes.ts
   2:1  error  Imports should be sorted alphabetically                            sort-imports
   3:1  error  Imports should be sorted alphabetically                            sort-imports
  13:9  error  'encryptedRecoveryCodes' is never reassigned. Use 'const' instead  prefer-const
  57:5  error  Unexpected var, use let or const instead                           no-var
2025-04-09 08:19:20 +02:00
perf3ct
208267edb8
increase context window size 2025-04-09 01:24:43 +00:00
perf3ct
c95b9f798c
recursive thinking? 2025-04-09 01:24:32 +00:00
perf3ct
39f979ea8c
sheeeesh 2025-04-09 00:42:15 +00:00
perf3ct
e523d88d23
did I really need to specify the context window size in API requests this whole time? 2025-04-08 23:55:04 +00:00
Panagiotis Papadopoulos
4ea82bb50b
Merge branch 'develop' into deps_express5 2025-04-09 00:21:17 +02:00
Panagiotis Papadopoulos
26d5462af4 refactor(routes/custom): update path "/custom/*path" for express v5 2025-04-09 00:17:30 +02:00
perf3ct
7373249dee
well this works for tool calling the "readNote" func 2025-04-08 22:08:52 +00:00
perf3ct
683d1a5481
I think we're close to getting tooling to work
close?
2025-04-08 22:02:54 +00: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
43c2818299
fix(calendar_view): promoted attributes overlap 2025-04-08 23:38:04 +03:00
Elian Doran
05a006faca
fix(calendar_view): add back note icon 2025-04-08 23:33:57 +03:00
Elian Doran
b1c8e625b2
fix(calendar_view): display hours in calendar view 2025-04-08 23:28:27 +03:00
perf3ct
cdd4529828
add even more tools 2025-04-08 20:00:49 +00:00