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
Elian Doran
eea141225d
refactor(calendar): dedicated method for building event content
2025-04-08 22:48:57 +03:00
perf3ct
61eaf46a04
definitely don't need this
2025-04-08 19:15:11 +00:00
perf3ct
c716481ef8
resolve linter errors
2025-04-08 19:15:11 +00:00
perf3ct
2d745c12c8
wow, this actually does something
2025-04-08 19:15:11 +00:00
perf3ct
b8a6da6d52
rename these "agent tools"
2025-04-08 19:15:11 +00:00
perf3ct
7725b924e9
add some more useful tools
...
CLOSER....
works?
2025-04-08 19:15:11 +00:00
perf3ct
26b1b08129
tool calling is close to working
...
getting closer to calling tools...
we definitely need this
closer to tool execution...
agentic tool calling is...kind of working?
2025-04-08 19:15:01 +00:00
Elian Doran
0b0d212854
feat(docs): document recent changes
2025-04-08 21:53:31 +03:00
Elian Doran
5b34e8a327
feat(docs): document advanced options in context menu
2025-04-08 21:44:22 +03:00
Elian Doran
5eb8e478b7
feat(docs): document the note tree contextual menu
2025-04-08 20:06:55 +03:00
Elian Doran
584fa67074
fix(bulk_actions): clarify actions taken by "Update relation target"
2025-04-08 19:38:19 +03:00
Elian Doran
2b56c2acbe
feat(docs): document bulk actions
2025-04-08 19:35:13 +03:00
Elian Doran
8949f68b81
fix(server): duplicating note subtree escapes special characters
2025-04-08 18:09:02 +03:00
Jin
f346c40b7c
fix: 🐛 fix crash when no calendarRoot
2025-04-08 14:00:42 +02:00
Elian Doran
0eec8042ca
fix(new_tab): workspace switcher no longer displayed
...
Regression of 7f1eb9912708e915eb6048ddb1cd3cfd895d5543
2025-04-08 12:46:58 +03:00
Elian Doran
3a1f1ceedb
fix(export/markdown): double slashes breaking math expressions ( closes #1649 )
2025-04-08 12:06:46 +03:00
Elian Doran
d03ee26408
fix(editor): random crashes due to lacking null safety in syntax highlight
2025-04-08 09:06:27 +03:00
Elian Doran
8b7f16d49b
fix(editor): syntax highlighting not working in nested elements ( closes #1609 , closes #843 )
2025-04-07 23:51:56 +03:00
Elian Doran
7f1eb99127
fix(client): build error and simplify doRefresh in type widgets
2025-04-07 22:50:38 +03:00
Elian Doran
c74f51472e
fix(options): "Override theme fonts" not reflecting immediately
2025-04-07 22:34:47 +03:00
Elian Doran
d33162785e
fix(client): right-shift on non-standard themes ( closes #1646 )
2025-04-07 17:55:35 +03:00
Elian Doran
63458d55d3
fix(client): quick search popup not working in horizontal layout ( closes #1647 )
2025-04-07 17:36:29 +03:00
Elian Doran
6cc10a47d1
feat(docs): document the hidden tree
2025-04-07 13:29:22 +03:00
Elian Doran
5130089b34
feat(docs): clarify attribute prefixes
2025-04-07 12:35:52 +03:00
Elian Doran
ec5025d7fd
feat(docs): clarify attribute use cases
2025-04-07 12:30:37 +03:00
Elian Doran
190cff6f7e
feat(docs): improve description of labels and relations
2025-04-07 12:22:48 +03:00
Elian Doran
72f0bc32df
feat(docs): reorganize scripting notes and finalize attribute reference
2025-04-07 11:16:10 +03:00
Elian Doran
cdf9fa5b4a
feat(docs): attribute reference (wip)
2025-04-07 09:47:15 +03:00
perf3ct
eb353df010
fix translations, again
...
fix translations
fix translations
add more missing translations
2025-04-06 20:27:30 +00:00
Elian Doran
b7566ad979
feat(docs): hiding note list
2025-04-06 23:06:21 +03:00
Elian Doran
9fb04b256d
feat(docs): document supported syntax
2025-04-06 22:55:24 +03:00
perf3ct
bbd81f6ef1
use 16 character random string for session ID
2025-04-06 19:14:16 +00:00