20 Commits

Author SHA1 Message Date
Tienson Qin
1ae9e2c496 fix: extends tags query and support eid|title|db-ident
Previously `tags` doesn't return blocks that have children tag(s).

Also, `tags` support both db/ident and block/title to make it easy
to use:
(tags ?b #{144})
(tags ?b #{"Task"})
(tags ?b #{:logseq.class/Task})
2025-12-24 14:37:57 +08:00
Gabriel Horner
87dff14f4c chore(cli): bump to 0.4.2 2025-12-17 08:40:42 -05:00
Tienson Qin
f594e2034f fix(rtc): batch store and validate db (#12249)
* fix(rtc): batch store and validate db

* fix: logseq.db/transact! shouldn't distinct tx-data

since move-op include 2 steps:
1. insert-block
2. update-attrs

This results in db invalid after step 1.

* refactor: add transact-with-temp-conn!

* bump nbb-logseq and add tests for ldb/transact* fns

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
2025-12-09 20:47:37 +08:00
Gabriel Horner
6b5e25bcf7 chore(cli): Bump cli to 0.4.1 2025-11-26 09:32:17 -05:00
Gabriel Horner
99636a2bac chore(cli): bump CLI version for release 2025-11-20 15:13:11 -05:00
Gabriel Horner
a138a0e973 chore: bump cli to 0.3.0 for release 2025-10-29 16:13:01 -04:00
Gabriel Horner
20ed5bccfb Merge branch 'master' into feat/mcp-server 2025-10-22 12:20:54 -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
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
Gabriel Horner
27d5a369fd fix: bump to latest nbb-logseq to fix most logseq.db dependent ns 2025-10-13 21:34:00 -04:00
Gabriel Horner
f93f889f8a chore: bump to latest nbb w/ datascript update 2025-09-03 10:00:45 -04:00
Gabriel Horner
ffaccbb33e enhance: export command can save to file option
Also update export-edn command to have same default behavior as
export command. Printing to stdout was ok for dev but is surprising and
possibly overwhelming for most graphs
2025-08-26 11:27:34 -04:00
Gabriel Horner
6a84e56984 enhance: working spike for export md command
export namespaces aren't reused yet. Fixed bug w/ get-block-and-children
not invoking correctly in nbb. Bumped all deps to use latest nbb-logseq
2025-08-26 11:27:34 -04:00
Gabriel Horner
cc1093ac85 enhancement: add offline CLI search and predefined query
to address https://github.com/logseq/logseq/pull/12000#issuecomment-3177406045.
Also bump version for initial release
2025-08-13 10:59:08 -04:00
Gabriel Horner
7c610cfd51 chore: bump cli alpha release 2025-08-11 17:14:50 -04:00
Gabriel Horner
637d158478 chore: prep package.json for alpha release
confirmed with npm pack that CLI works with files config
2025-08-11 17:05:39 -04:00
Gabriel Horner
8beb52e213 fix: bump to latest nbb-logseq to fix quirky datascript require 2025-08-11 17:05:39 -04:00
Gabriel Horner
a60b1177d2 Add readme and confirm logseq installs as a local CLI 2025-08-11 17:05:39 -04:00
Gabriel Horner
c67e254b4a enhance: search cmd highlights search term and
allows for user specified limit of results.
Also enabled nbb-logseq tests for cli since first
test was introduced
2025-08-11 17:05:39 -04:00
Gabriel Horner
887d91d2ac enhance: start CLI dep and implement list command
Also move common db graph list to shared ns and move common prefix
constants to common-config
2025-08-11 17:05:39 -04:00