Open
Conversation
Contributor
There was a problem hiding this comment.
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.
3562a02 to
17d46e4
Compare
see also docs/cli/logseq-cli.md
|
Full-featured CLI will definitely make agents life easier for powerful users. Thank you and look forward to it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/main/logseq/clidocs/cli/logseq-cli.md