Skip to content

Conversation

@RCmerci
Copy link
Contributor

@RCmerci RCmerci commented Jan 21, 2026

  • Make db-worker nodejs compatible
  • Introduces a new Logseq CLI which can read/write DB-graphs
  • Establishes the CLI’s core architecture, command structure, and output conventions.
  • Adds supporting documentation and tests for the new CLI surface.
  • src dir: src/main/logseq/cli
  • see also docs/cli/logseq-cli.md

Copy link
Contributor

Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:type/feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants