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
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
Gabriel Horner
c6a6156188
fix: CLI integration tests failing in CI
...
Also split out integration tests to separate step and command as they
have their own setup
2026-03-12 15:12:34 +08:00
Gabriel Horner
b45a3a8b80
fix: common lint
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
rcmerci
c8da78efd1
051-logseq-cli-sync-upload-fix.md
2026-03-12 15:12:34 +08:00
rcmerci
fefab4d00f
050-sync-download-create-empty-db.md
2026-03-12 15:12:34 +08:00
Gabriel Horner
c73fdb8c6f
fix: 'Replace graph' command not working
2026-03-12 15:12:34 +08:00
Gabriel Horner
2864aab594
fix: cli help double printing usage and meaningless Options
2026-03-12 15:12:34 +08:00
Gabriel Horner
0900b9b41b
enhance: graph list displays current graph
...
like git and npm. Also remove confusing GRAPH header and
make validate consistent like other read graph commands
2026-03-12 15:12:34 +08:00
rcmerci
79446b2c8a
049-logseq-cli-graph-info-kv-display.md
2026-03-12 15:12:34 +08:00
Gabriel Horner
d74d6b6316
048-sync-download-start-reliability.md
2026-03-12 15:12:34 +08:00
rcmerci
2449dc27e4
047-logseq-cli-sync-command.md
2026-03-12 15:12:34 +08:00
Gabriel Horner
426d4f10b3
enhance: validate cmd option to fix graph
...
Give users the option to fix while validating.
Validate implies read-only so give users the extra ability in
cli to toggle this behavior
2026-03-12 15:12:34 +08:00
Gabriel Horner
aa2f05c1b6
fix: integration test assertion
...
Only assertion that fails locally
2026-03-12 15:12:34 +08:00
Gabriel Horner
16ae5b2ef7
fix: validate graph does not handle invalid graphs
...
Invalid graphs were pretending to be valid. Instead
validation errors should be displayed and command should
exit 1. This also fixes other commands that were exiting 0
even though they returned an :error
2026-03-12 15:12:34 +08:00
Gabriel Horner
76776c53a8
fix: old file graphs showing up in app list of graphs
...
Both in sidebar but also in commands to select graphs
like 'Select graph to open'
2026-03-12 15:12:33 +08:00
Gabriel Horner
703581d37b
enhance: more user-friendly behavior when no args given
...
Be more helpful when no args given like cp, zip and npm.
Also fix frontend lint
2026-03-12 15:12:33 +08:00
Gabriel Horner
2b66fb0f1b
fix: turn off noisy logging in db-worker-node-test
...
So much noise makes it hard to see actual failure in test suite
2026-03-12 15:12:33 +08:00
Gabriel Horner
edf0853e0a
fix: crypt tests to handle new caching
...
Also mark more ^:long tests so most unit tests can still
be run locally in ~30s
2026-03-12 15:12:33 +08:00
Gabriel Horner
a1989f9c3d
enhance: add aliases for more used global options
2026-03-12 15:12:33 +08:00
Gabriel Horner
fe3d68176d
fix: confusing and incorrect naming for --repo global option
...
Repo refers to internal identifiers that start with 'logseq_db_' and
used to start with 'logseq_local_'. The --repo option was not being
used in that way and was just a reference to a graph name. While it's
reasonable for internal CLIs like db-worker-node.js to use --repo, it is
needlessly confusing to introduce repo to users. Almost all of our apps and docs
label graphs as 'graph' and not 'repo'
2026-03-12 15:12:33 +08:00
Gabriel Horner
4073d47fe4
fix: frontend lint
2026-03-12 15:12:33 +08:00
Gabriel Horner
859c4cee41
fix: graph export's command option conflicts with global option
...
--output was being used as a global and command option. This resulted in
buggy, coupled behavior e.g. unable to set a global output unless the
export file was named human, edn or json. `--ouput` was also
not listed as a command option which was confusing. Renamed the command
--ouput to --file for explicit and uncoupled behavior
2026-03-12 15:12:33 +08:00
rcmerci
0331c598df
046-logseq-cli-upsert-tag-rename-by-id.md
2026-03-12 15:12:33 +08:00
rcmerci
fa3fda5849
045-logseq-cli-property-type-and-upsert-option-unification.md
2026-03-12 15:12:33 +08:00
rcmerci
67645700cc
044-logseq-cli-upsert-block-page.md
2026-03-12 15:12:33 +08:00
rcmerci
85ebeb976e
043-logseq-cli-tag-property-management.md
2026-03-12 15:12:33 +08:00
Gabriel Horner
dfa80b084e
fix: common lint and outdated lockfile
2026-03-12 15:12:33 +08:00
rcmerci
ccbbd3c88e
042-logseq-cli-add-tag-command.md
2026-03-12 15:12:33 +08:00
rcmerci
48c1f5374e
041-logseq-cli-add-block-json-identifiers.md
2026-03-12 15:12:33 +08:00
rcmerci
b9b21e9ece
fix: ignore daemon process stdio if cli spawn it
2026-03-12 15:12:33 +08:00
rcmerci
a4b8f2aeff
040-hide-db-prefix-in-user-visible-graph-names.md
2026-03-12 15:12:33 +08:00