-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: init full-featured Logseq CLI #12340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a comprehensive Logseq CLI for reading/writing DB-graphs with full Node.js compatibility for the db-worker. It establishes the CLI's core architecture, command structure, and output conventions.
Changes:
- Makes db-worker Node.js compatible through platform adapters
- Implements a full-featured CLI with commands for graph management, content manipulation, and server control
- Adds platform abstraction layer for browser/Node.js environments
- Introduces db-worker-node daemon for CLI operations
Reviewed changes
Copilot reviewed 69 out of 72 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds better-sqlite3@12.6.0 and ws@8.19.0 dependencies |
| src/test/logseq/cli/*.cljs | Comprehensive test suite for CLI commands, transport, format, config, and server |
| src/test/frontend/worker/*.cljs | Tests for platform adapters and shared service Node.js compatibility |
| src/main/logseq/cli/*.cljs | Core CLI implementation with commands, transport, formatting, and configuration |
| src/main/frontend/worker/platform*.cljs | Platform adapter contract and browser/Node.js implementations |
| src/main/frontend/worker/db_worker_node.cljs | Node.js daemon for db-worker with HTTP API |
| src/main/frontend/persist_db*.cljs | Node.js client for db-worker daemon |
| src/main/frontend/worker/*.cljs | Updates for platform compatibility and Node.js support |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
see also docs/cli/logseq-cli.md
src/main/logseq/clidocs/cli/logseq-cli.md