Commit Graph

23368 Commits

Author SHA1 Message Date
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
Gabriel Horner
2e8d7c6303 fix: bump nbb-logseq to include datascript fix 2026-03-12 10:21:54 -04: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
Gabriel Horner
0ee04cc038 fix: intermittent clj-kondo lint for :private-call
Passes locally but fails on CI
2026-03-12 08:43:06 -04: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
2fb2c56725 set large graph title size 2026-03-12 18:29:45 +08:00
Tienson Qin
7d3d3922d1 enhance: generate large graphs with random text 2026-03-12 18:01:12 +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
a115779028 Remove accidentally committed dz/ folder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 15:18:53 +08:00
Danzu
35b43611c6 Add ncc build prerequisite and shell completion setup to CLI docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
81356c7e32 fix: watched logseq-cli hangs
`npx shadow-cljs watch logseq-cli` hangs. CLIs don't need hot-reload
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
a081d01c6d enhance: allow graphs dir to change with $LOGSEQ_GRAPHS_DIR
Affects electron and cli thanks to previous commit.
Requested at least twice by #db-feedback posts:
https://discord.com/channels/725182569297215569/1421133499477524490
and https://discord.com/channels/725182569297215569/1353859592634892400/1353859592634892400
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
6d2be5a87e chore: bump to latest nbb-logseq
bump to match latest datascript changes in this branch
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