Commit Graph

23218 Commits

Author SHA1 Message Date
Tienson Qin
ab35c360b6 rename to remove-conflict-datoms 2025-10-24 18:34:01 +08:00
Tienson Qin
5b9ea857a2 fix: remove duplicated eavt from tx-report datoms 2025-10-24 18:28:40 +08:00
Tienson Qin
6253dbf248 fix(rtc): don't create page if the id has been used by other page 2025-10-24 16:04:46 +08:00
Tienson Qin
c03b55b841 fix: alias property created tags
fix https://github.com/logseq/db-test/issues/520
2025-10-23 15:22:59 +08:00
Gabriel Horner
22c1fa0c18 chore: mv api cli fns to their own ns
Move to keep inline with recent api refactor.
Also more lint config for api
2025-10-22 15:26:51 -04:00
Tienson Qin
ac14dfd172 fix: multiple assets upload support
fix https://github.com/logseq/db-test/issues/516
2025-10-23 03:13:21 +08:00
Gabriel Horner
f8b4277e60 fix: db api fn using file graph attributes + fns 2025-10-22 13:52:51 -04:00
Tienson Qin
031f2bc57e fix: invalid data when creating assets 2025-10-23 01:01:49 +08:00
Tienson Qin
8a9a9321d7 Add debug log when reloading mobile app 2025-10-23 00:41:11 +08:00
Gabriel Horner
20ed5bccfb Merge branch 'master' into feat/mcp-server 2025-10-22 12:20:54 -04:00
Gabriel Horner
2500fe888a fix: dev import can't import
All CLI imports were failing with "Maximum call stack size exceeded".
2025-10-22 10:37:25 -04:00
Tienson Qin
da185db4ad fix: Sidebar doesn't display page names under Recent
fix https://github.com/logseq/db-test/issues/515

Safari doesn't support display: ruby
2025-10-22 22:11:00 +08:00
Tienson Qin
bf2d9dfd7c fix: don't show "No property" when the value is not set yet
and there's a default value for this property.

fixes https://github.com/logseq/db-test/issues/517
2025-10-22 22:03:00 +08:00
Tienson Qin
9933813018 enhance: fix num prefix db idents when validating db
related to https://github.com/logseq/db-test/issues/518
2025-10-22 21:27:44 +08:00
Tienson Qin
9f5b9c33a1 fix: tag title order with extends
fix https://github.com/logseq/db-test/issues/506
fix https://github.com/logseq/db-test/issues/519
2025-10-22 20:53:24 +08:00
Tienson Qin
4dc66544db chore: bump electron to 38.4.0
fix https://github.com/logseq/db-test/issues/522
2025-10-22 18:51:15 +08:00
Tienson Qin
5618d47454 fix: empty button text font size 2025-10-22 18:30:58 +08:00
Tienson Qin
3f582ec07a fix: keep displaying buttons when adding icon or updating views 2025-10-22 18:19:25 +08:00
Tienson Qin
9b3071e0f3 enhance: display total refs count when there's filter 2025-10-22 15:07:10 +08:00
Tienson Qin
3b499bcd56 enhance: text-autospace 2025-10-22 07:55:42 +08:00
Gabriel Horner
c248ea16aa fix: incorrect validation message
Also bring back docstring that shouldn't have been removed
2025-10-21 12:43:14 -04:00
Gabriel Horner
652a9061ea fix: outdated outliner lint 2025-10-21 10:30:52 -04:00
Tienson Qin
d8809f0b7e feat: cljs sdk (#12168)
Add clojurescript plugins API
2025-10-21 16:32:12 +08:00
Tienson Qin
a9fc1290f2 Merge pull request #12130 from logseq/refactor/plugin-api-properties
refactor: Plugin apis
2025-10-21 15:40:40 +08:00
Gabriel Horner
6412179189 fix: add block on new page doesn't add tags 2025-10-20 16:23:46 -04:00
Gabriel Horner
58c520d17f fix: existing properties failing to be created with a new tag 2025-10-20 15:31:43 -04:00
Gabriel Horner
953e9c18b2 fix: create blocks on new page
Also tweak list* tools description so they expand for more cases e.g.
property types for listProperties
2025-10-20 13:33:08 -04:00
Tienson Qin
3962f1f74e enhance: get-tag-objects accept block uuid, db/ident or title 2025-10-20 18:36:23 +08:00
Tienson Qin
8efd79ece9 add new apis to js sdk 2025-10-20 18:33:01 +08:00
Tienson Qin
75e49b22db Merge branch 'master' into refactor/plugin-api-properties 2025-10-20 18:27:21 +08:00
rcmerci
f89d108f4f fix(rtc): dissoc schema-verison when apply-ops with s3-key 2025-10-19 00:11:51 +08:00
Gabriel Horner
9aaf5db25c enhance(cli): graph args+options can be local files or dirs
This affects all cli commands that take graph args.
Also tweaked mcp-server host+port defaults to match the app
2025-10-17 13:18:03 -04:00
Gabriel Horner
0f7532e3c3 enhance: list* tools default to minimal info
Provide expand option to provide additional detail
2025-10-16 16:53:16 -04:00
Gabriel Horner
0122425e68 fix: upsert-nodes build in db-worker and transacts w/ new op
Ensure full db is available for building import edn.
Transacting w/ new op allows llm changes to be undone
2025-10-16 13:37:29 -04:00
Gabriel Horner
cc054a2850 enhance: dry run option for upsert-nodes
Also give an explicit error when incorrectly using mcp with file graphs.
Better than random errors that vary per tool
2025-10-16 10:44:32 -04:00
Gabriel Horner
e5258c0708 chore: remove unused write tools
Also revert related changes on api fns
2025-10-16 10:44:32 -04:00
Gabriel Horner
a586fc47fb enhance: batch update nodes tool
This improves and replaces all previous tools. Features include:
* Add pages, blocks to pages, tags and properties
* Tags can set parents and tag properties
* Properties can have type, cardinality and classes set for :node
* Add tags to blocks
* Edit blocks
* api and local tools work
* Thorough tool validation
* When doing these operations, most operations can reference new or existing
  entities if they are referenced by uuid
2025-10-16 10:44:32 -04:00
Gabriel Horner
bfcc3590ac fix: getPage should also return data about page
This was causing write tools to fail as llm's usually reach for
getPage over listPages to get a page id. Moved remove-hidden-properties
since it's also used by mcp api responses
2025-10-16 10:44:32 -04:00
Gabriel Horner
917df54d74 fix: read tools should always get correct data
via db-worker thread. Also fix getPageData returning
some temp and untranslated attributes
2025-10-16 10:44:32 -04:00
Gabriel Horner
5b919bd7a7 enhance: simplify enabling mcp server
Automatically enable http server if it's not started. Also fix typo for
http server and failing integration test
2025-10-16 10:44:32 -04:00
Gabriel Horner
16f977207c enhance: add UI setting for toggling MCP server on/off 2025-10-16 10:44:32 -04:00
Gabriel Horner
d83641b08c fix: fixes related to getPage tool
Fix getPage returning successful when no page found. Also make pageName
arg consistent with other tools. Also fix api server error where
a nil response fails the 500 check
2025-10-16 10:44:32 -04:00
Gabriel Horner
743c3807c1 enhance: API tools to add to page, search blocks and
update a block's content. Also fix search not returning usable
uuids in response
2025-10-16 10:44:32 -04:00
Gabriel Horner
a16c89b986 enhance: Add optional mcp server to API server
Also switch CLI MCP server to fastify to reuse frontend code.
Also fix DELETE /mcp which was wrong
2025-10-16 10:44:32 -04:00
Gabriel Horner
a4a1b16852 fix: restart API server consistently
UI inconsistently loses server status. This fix allows for always
restarting correctly, regardless of the UI bug
2025-10-16 10:44:32 -04:00
Gabriel Horner
6c9db3a679 enhance: Add HTTP Streamable mode to MCP server
and default to it
2025-10-16 10:44:32 -04:00
Gabriel Horner
70a6f617aa enhance: add listTags and listProperties to API mcp server
by introducing logseq.cli.* for internal API usage.
Also refactor existing api tools to share same implementation as
local tools. This fixes a couple bugs w/ the api tools as get-page
was returning :block.temp/* keys and list-pages were returning uuids under
the id key unlike all other responses
2025-10-16 10:44:32 -04:00
Gabriel Horner
179f08cf90 enhance: list tags and properties for local mcp 2025-10-16 10:44:31 -04:00
Gabriel Horner
f2f799b49b enhance: mcp server works with local graph
when given -g option
2025-10-16 10:44:31 -04:00
Gabriel Horner
96704e9998 enhance: basic mcp server w/ 2 commands
works w/ api and starting server from
cmdline for now
2025-10-16 10:44:31 -04:00