Commit Graph

17027 Commits

Author SHA1 Message Date
Gabriel Horner
eec5b4a060 fix: multiple issues with --fields option for list* commands
- 4 visible fields couldn't be used with --fields
- Only print selected fields/columns. Previous behavior didn't make
  sense as unspecified fields were still listed and took up horizontal space
- Allow --fields to work when --expand isn't used. Previous behavior
  wasn't explained to user and needlessly limiting
2026-03-13 16:17:27 -04:00
Gabriel Horner
bad750c173 fix: integration test leaves hanging processes
Hanging db-worker-node.js processes left after running
tests because servers weren't shut down
2026-03-13 13:41:46 -04:00
rcmerci
cde0571e65 fix(cli): treat id-only show targets as missing entities
Make `show` treat id-only pull results as non-existent entities so deleted ids no longer render as empty blocks, and add regressions for deleted block/page lookups.

🤖 Generated with [eca](https://eca.dev)

Co-Authored-By: eca <noreply@eca.dev>
2026-03-13 23:27:21 +08:00
rcmerci
78de33bf68 enhance: 'upsert block' support update --content and --status 2026-03-13 22:30:06 +08:00
rcmerci
da4178d040 fix: update sync-start-poll-interval-ms 2026-03-13 17:51:58 +08:00
rcmerci
630380c482 fix: auth-token reset to nil when 'sync status' 2026-03-13 17:37:10 +08:00
rcmerci
75be7be8df Merge remote-tracking branch 'origin/master' into feat/cliable 2026-03-13 16:32:49 +08:00
megayu
adbaf10abc chore: tech stack upgrade (#12448)
* fix(lint): make worker/frontend separation lint work on Windows

* chore: update cljs:electron-watch script to include test flag

* chore: remove dead root dependencies

* chore(deps): converge better-sqlite3 to 12.6.2 across deps packages

* chore(deps): converge fs-extra to ^11.3.0 across package roots

* fix(test): correct parameters for create-if-not-exists function

* chore(deps): converge cljs-bean to 1.9.0 across deps roots

* fix(tests): escape regex in cljs:run-test script

* chore: pin root packageManager to yarn 1.22.22

* chore(build): replace del with fs.rmSync in gulp clean

* chore(build): replace npm-run-all with npm-run-all2

* chore(security): upgrade dompurify and unify sanitizer path

* chore(observability): upgrade web sentry to 8.x

* chore: remove unused react-draggable dependencies

* chore(ci): fix windows release artifact collection

* fix(build): create static dir before gulp clean scans it

* fix: update nbb-logseq dependency to version feat-db-v33

* fix(test): move start-time initialization after clone repo

* fix(deps): update nbb dependencies and adjust test script paths to compatible with windows path delimiter

* chore(deps): remove dead meander dependency

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-03-13 13:20:49 +08:00
Charlie
ffb82f1ccc fix(login): simplify user login handling for native platforms 2026-03-13 20:41:41 +08:00
rcmerci
4b428094e1 chore: remove unused LOGIN-URL 2026-03-12 23:09:06 +08:00
Tienson Qin
fe1e41f571 fix: tests 2026-03-12 20:59:09 +08:00
rcmerci
5e8462c08a 059-cli-doctor-server-revision-mismatch-warning.md 2026-03-12 20:54:11 +08:00
Tienson Qin
ba62af5e38 fix(sync): don't sync upload metadata tx 2026-03-12 20:19:01 +08:00
Tienson Qin
81d1ded924 fix(sync): gate rtc until snapshot upload finishes 2026-03-12 20:00:29 +08:00
Tienson Qin
880d7d2c3f fix(rtc): isolate e2ee import temp pool 2026-03-12 17:51:23 +08:00
Tienson Qin
1b4943350b fix(rtc): reduce e2ee import finalize memory 2026-03-12 17:51:23 +08:00
Tienson Qin
f538491096 chore: reduce test noise and infer warnings 2026-03-12 17:51:23 +08:00
Tienson Qin
ae11f615a5 fix: clear old db when importing datoms for encrypted graphs 2026-03-12 17:51:23 +08:00
Tienson Qin
80b48b7b86 enhance(rtc): improve snapshot import progress 2026-03-12 17:51:23 +08:00
Tienson Qin
98e262d118 fix: reduce memory usage when encrypting large graph 2026-03-12 17:51:23 +08:00
Tienson Qin
d8e7032e78 fix(search): make index build non-blocking 2026-03-12 17:51:23 +08:00
Tienson Qin
c2512fe355 fix: stop workers when hot-reload 2026-03-12 17:51:23 +08:00
Tienson Qin
f6b5a100d6 fix(sync): stream snapshot import batches 2026-03-12 17:51:23 +08:00
Tienson Qin
0007c48003 fix(sync): close failed import setup dbs 2026-03-12 17:51:23 +08:00
Tienson Qin
6c3a94ea04 fix(sync): isolate chunked import sessions 2026-03-12 17:51:23 +08:00
Tienson Qin
59ab42598b fix(sync): invalidate stale search state on rtc import 2026-03-12 17:51:23 +08:00
briansunter
0594088149 fix(sync): use named search-db-version constant for FTS index versioning
Replace pos?/zero? checks with exact version comparison against a
search-db-version constant. Bumping the constant will auto-trigger
rebuilds when the index format changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 17:51:23 +08:00
briansunter
7679e73b0d fix(sync): chunked import and search rebuild fixes 2026-03-12 17:51:23 +08:00
rcmerci
50261dbb95 058-db-worker-node-revision-and-cli-server-list.md 2026-03-12 17:13:27 +08:00
rcmerci
a1bccdbd33 fix test 2026-03-12 15:18:53 +08:00
Danzu
562eb0140e Add shell argument validation to completion command
Reject missing or unsupported shell arguments (e.g. "fish") at parse time
with a clear error message, rather than letting it fail deep in the generator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 15:18:53 +08:00
Danzu
1b19d1576f Generalize bash context-dependent option completion and fix zsh duplicate functions
Replace hardcoded --name/--sort context branches with auto-detected varied
option keys (find-varied-option-keys), so --type and any future options with
differing completions across commands are handled automatically. Fix zsh
generator to skip group root entries from leaf function emission, avoiding
duplicate function definitions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 15:18:53 +08:00
Danzu
c4d52878bc feat: enhance completion command with long description and setup instructions 2026-03-12 15:18:53 +08:00
rcmerci
faecbd4ea8 056-graph-name-dir-encoding-alignment.md 2026-03-12 15:18:53 +08:00
Gabriel Horner
018281da38 enhance: remove graph command behaves like electron remove
Moves removed graph to 'Unlinked graphs'
2026-03-12 15:18:51 +08:00
Danzu
13d8f0e419 Rename CLI command from "completions" to "completion"
Also fix zsh eval support by replacing `_logseq "$@"` with
`compdef _logseq logseq` so `eval "$(logseq completion zsh)"`
works in ~/.zshrc without the "_arguments: can only be called
from completion function" error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 15:12:34 +08:00
Danzu
051f6381e3 Add tests for completions command and completion generator
- Introduced `completions_test.cljs` to validate the structure and behavior of the completions command registration and argument parsing.
- Added `completion_generator_test.cljs` to extensively test the completion generator, including spec metadata validation, Zsh and Bash output generation, and end-to-end checks for command entries and structural markers.
2026-03-12 15:12:34 +08:00
rcmerci
a89ffb6b0f 057-cli-sync-download-realtime-progress.md 2026-03-12 15:12:34 +08:00
rcmerci
605c86ecd1 056-graph-name-dir-encoding-alignment.md 2026-03-12 15:12:34 +08:00
Gabriel Horner
cb6f6087f2 enhance: remove graph command behaves like electron remove
Moves removed graph to 'Unlinked graphs'
2026-03-12 15:12:34 +08:00
Gabriel Horner
64d48b213c fix: 'Remove graph' command in electron deletes graph
instead of moving to Unlinked graphs
2026-03-12 15:12:34 +08:00
Gabriel Horner
83b7cc8e3e fix: resolve-data-dir - caught by test
Also fix lint and regression on noisy db-worker-node-test
2026-03-12 15:12:34 +08:00
Gabriel Horner
7032e6ba37 refactor: centralize default graphs dir spread across cli and electron
Having different definitions doesn't allow for configurability
and can lead to bugs. Also addressed sqlite-cli having one-off definition
2026-03-12 15:12:34 +08:00
Gabriel Horner
fab20b1081 fix: Unlinked graphs in graph list 2026-03-12 15:12:34 +08:00
Gabriel Horner
9c2b45de91 fix: cli doctor tests
Unit test shouldn't depend on db-worker-node assets.
Removed one test as it tests usage of :script-path which is already done
2026-03-12 15:12:34 +08:00
rcmerci
674e80887e 055-logseq-cli-login-logout.md 2026-03-12 15:12:34 +08:00
Gabriel Horner
9502f57dbe 054-db-sync-test-isolation.md 2026-03-12 15:12:34 +08:00
rcmerci
f0cabc65e9 chore: remove unused fn 2026-03-12 15:12:34 +08:00
rcmerci
900ebf210e 053-logseq-cli-async-test-isolation.md 2026-03-12 15:12:34 +08:00
rcmerci
4fe1dde02f 052-logseq-cli-sync-upload-graph-uuid-alignment.md 2026-03-12 15:12:34 +08:00