103 Commits

Author SHA1 Message Date
Gabriel Horner
ed805f039f chore: cleanup bb tasks after file graph removal
Remove needless 'db-' prefix for several dev tasks. Remove linter for
file and db graph separation. It served us well :)
2026-01-22 13:19:58 -05:00
Gabriel Horner
173898240e fix: remove most file graph uses in deps
except for graph-parser and publish deps

- Removed most mentions of 'repo' in deps, which cleaned up a lot related
  to export cli and worker
- Removed db-based-graph? checks in deps except for unknown use
  in entity-plus?
- Removing db-based-graph? checks resulted in deleting unused file graph
  code paths e.g. get-pid
- Removed file graph handling in cli list command
- Remove file-based-graph? checks from deps
2026-01-22 13:19:58 -05:00
Gabriel Horner
37af8f690e fix: remove remaining uses of file graph specific attributes
Removed all file graph uses of :block/namespace, :block/file, :block/type and
:block/properties except for graph-parser which still uses them for db
importer.
Removed all uses of :block/format except for graph-parser and
src/main/frontend
2026-01-22 13:19:58 -05:00
Gabriel Horner
37d9ebda1f chore: remove file-specific graph-parser code
Also removed file graph code for markdown export as a prereq
2026-01-22 13:19:57 -05:00
Gabriel Horner
3e0d57bc32 chore: prefix deps workflows with 'deps-'
to organize workflow files better
2026-01-21 14:16:38 -05:00
Tienson Qin
bcc478b5f7 refactor: separate og and db version (#12276)
separate og and new version apps

remove file sync, tldraw, excalidraw and zotero
2025-12-29 15:39:32 +08:00
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
Gabriel Horner
ee97b8cda6 enhance(cli): Add -h/--help to commands 2025-12-17 08:24:46 -05:00
Gabriel Horner
3a9b00f21f chore(cli): changelog for 0.4.2 and tweak option descriptions 2025-12-17 08:02:30 -05:00
Gabriel Horner
9d49ba6d49 fix(cli): import-edn and mcp-server commands
don't transact refs for local graphs
2025-12-16 10:37:31 -05:00
Gabriel Horner
dce3b4111f fix: refs not built for imported EDN
from UI form or when using cli in-app graph
2025-12-16 10:37:31 -05:00
Gabriel Horner
a4d3bd4d93 fix(cli): CLI can't run in CI envs
For now just downgrade desktop check to warning. Decided
against CI flag since that requires more setup for all
2025-12-12 11:14:11 -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
07a0feb856 enhance(cli): Add validate option to export-edn command
Useful for sanity checking exports and dev
2025-12-04 10:30:56 -05:00
Gabriel Horner
8fc56bfaa3 refactor: Update importer to use validate-local-db
Also update validation in DB scripts:
* replace alternative validate-db impl with standard CLI one
* Add validation to import script
* Choose to decouple other DB scripts from validate-db as it may go away
  later
2025-12-04 10:30:56 -05:00
Gabriel Horner
c8f99d1ff3 refactor: make CLI and testing validation consistent
Both have needs that are more for local graphs
2025-12-04 10:30:56 -05:00
Tienson Qin
05ba914a42 Merge branch 'master' into enhance/ios-native-navigation 2025-11-26 23:12:10 +08:00
Gabriel Horner
6b5e25bcf7 chore(cli): Bump cli to 0.4.1 2025-11-26 09:32:17 -05:00
Gabriel Horner
9565d6eeaf chore(cli): tweak new validate option to be more descriptive
Thanks to @hdansou for the feedback
2025-11-26 09:26:45 -05:00
Tienson Qin
357c8f0667 Merge branch 'master' into enhance/ios-native-navigation 2025-11-26 16:18:54 +08:00
Gabriel Horner
0f71352103 fix(cli): append -a not appending
A possible fix for https://github.com/logseq/db-test/issues/615.
Looks like regression from api refactoring
2025-11-25 21:51:21 -05:00
Tienson Qin
73d4ee7caa Merge branch 'master' into enhance/ios-native-navigation 2025-11-24 22:36:50 +08:00
Gabriel Horner
5153b0ba83 chore: add dev instructions to build+install CLI locally 2025-11-21 10:21:51 -05:00
Gabriel Horner
36c361af86 enhance(cli): Add option to validate cmd to relax
closed validation of entity maps. Users probably won't care about this
as much
2025-11-21 10:11:46 -05:00
Gabriel Horner
99636a2bac chore(cli): bump CLI version for release 2025-11-20 15:13:11 -05:00
Gabriel Horner
cb039a615d chore(cli): Prep for cli release
Also tweak readme and list command desc
2025-11-20 15:04:44 -05:00
Gabriel Horner
45a4326293 fix: typo 2025-11-20 13:02:27 -05:00
Gabriel Horner
23937b59fc fix(cli): mcp-server api mode can fail confusingly
Describe the required setup and fail fast with CLI instead
of lazily in the llm client
2025-11-20 12:13:04 -05:00
Gabriel Horner
b699ebf24c fix(cli): most API commands not pinging API when $LOGSEQ_API_SERVER_TOKEN set 2025-11-20 10:20:17 -05:00
Gabriel Horner
7bb8655d71 chore: remove unused errors-by-type 2025-11-19 23:31:04 -05:00
Gabriel Horner
79e75060d6 enhance(cli): Add validate command for local graph(s)
Improves :errors of invalid errors to be more user friendly.
Also enable closed-value validation optionally as it is useful
to have higher data quality for non RTC graphs
2025-11-19 17:51:45 -05:00
Gabriel Horner
d6a20e6a9b fix(cli): ensure cli commands are running against DB graphs
Fixed all local graphs and a couple of API commands
2025-11-18 11:56:45 -05:00
Gabriel Horner
7b07116b41 enhance(cli): improve error messages for unspecified graphs
Introduced a breaking change for query and search commands where
graph(s) are specified as options instead of arguments. This
makes local graph usage consistent across all commands.
Also fixed in-app search not working and local query with multiple
graphs not querying from the right db
2025-11-17 17:40:23 -05:00
Gabriel Horner
62deed7e7f enhance(cli): add api mode for export-edn command
Also changes :graph from being a required arg to an option
2025-11-17 15:11:02 -05:00
Gabriel Horner
d7f7dbea1d fix(cli): fix pluralization of import/export messages
also fix export :classes having wrong count
2025-11-06 16:42:46 -05:00
Gabriel Horner
0bc0892b8a enhance(cli): Add import-edn command
Works for both current and local graphs. Addresses CLI and API for
https://discord.com/channels/725182569297215569/1365819617079066744/1365819617079066744
2025-11-06 16:42:46 -05:00
Gabriel Horner
a138a0e973 chore: bump cli to 0.3.0 for release 2025-10-29 16:13:01 -04:00
Gabriel Horner
e3ce613a74 fix: update :block :add op supported args 2025-10-29 14:27:21 -04:00
Gabriel Horner
1ebfd30b50 fix: page refs display uuids instead of text for getPage 2025-10-27 16:30:04 -04:00
Gabriel Horner
dc76a94e01 fix: edit block operation shouldn't require page id
Address feedback. This was an implementation detail that added a
needless constraint
2025-10-27 15:41:12 -04:00
Gabriel Horner
20ed5bccfb Merge branch 'master' into feat/mcp-server 2025-10-22 12:20:54 -04: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
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