Skip to content

Latest commit

 

History

History
120 lines (92 loc) · 3.77 KB

File metadata and controls

120 lines (92 loc) · 3.77 KB

Logseq HTTP Server - Version History

Version 0.0.5 (2025-12-16)

Bug Fix:

  • 🐛 Fixed EPERM: operation not permitted, uv_cwd error
  • Set explicit working directory (cwd) when executing subprocess commands
  • Prevents Node.js from failing when it can't access the current working directory
  • Fixes /list command not returning graphs in extension settings

Technical Details:

  • Added cwd=os.path.expanduser('~') to both subprocess.Popen and subprocess.run calls
  • Uses user's home directory as safe working directory
  • Affects all Logseq CLI command executions (list, show, search, query)

Impact:

  • Extension "Refresh Graphs" button now works correctly
  • Graph dropdown in settings now populates with available graphs
  • No breaking changes - fully backward compatible

Version 0.0.4 (2025-11-21)

CLI Compatibility Update:

  • ✅ Updated for @logseq/cli v4.0 compatibility
  • Fixed query command to use new -g flag format
  • Updated /search endpoint - now uses logseq query "..." -g graph-name
  • Updated /query endpoint (POST) - now uses logseq query "..." -g graph-name
  • Note: show command still uses positional arguments (unchanged in v4.0)

Breaking Change:

  • Requires @logseq/cli >= 4.0.0
  • Will NOT work with @logseq/cli < 4.0.0 (use v0.0.3 for older CLI versions)

Migration:

# Update CLI to v4.0+
npm update -g @logseq/cli

# Verify version
logseq --version  # Should show 0.4.0 or higher

# No changes needed to HTTP server code - works automatically

Version 0.0.3 (2025-11-13)

Privacy Improvements:

  • 🔒 Default mode no longer logs search queries or graph names
  • 🔒 Only logs health checks, startup, shutdown, and errors
  • Added --debug flag for troubleshooting (with privacy warning)
  • Debug mode displays prominent warning about logging user activity
  • Clear messaging about privacy protection

Breaking Changes:

  • Request logging now minimal by default (may affect debugging)
  • Use --debug flag to see detailed request logs when needed
  • Existing logs may contain historical search queries - consider clearing

Migration:

  • No action required - privacy mode is automatic
  • Clear existing logs: cat /dev/null > /tmp/logseq-server.log
  • For debugging: add --debug flag when starting server

Version 0.0.2 (2025-11-13)

Major Features:

  • Added macOS background service support via LaunchAgent
  • Created AppleScript control app for managing server
  • Automated install/uninstall scripts
  • Single unified log file (/tmp/logseq-server.log)
  • Fixed PATH environment variable for logseq CLI access

New Files:

  • macos/com.logseq.sidekick.server.plist - LaunchAgent configuration
  • macos/Logseq Server Control.app - GUI control application
  • macos/install.sh - Automated installer
  • macos/uninstall.sh - Automated uninstaller
  • macos/README.md - macOS setup documentation
  • macos/POC-NOTES.md - Technical implementation notes

API Changes:

  • Added GET /version endpoint - Returns server version

Improvements:

  • Server now displays version in startup banner
  • Version logged in startup message
  • Comprehensive documentation for macOS setup

Bug Fixes:

  • Fixed logseq CLI not found in LaunchAgent environment

Version 0.0.1 (2025-11-09)

Initial Release:

  • Basic HTTP server for Logseq CLI commands
  • REST API endpoints for graph operations
  • Support for DB (database) graphs
  • Datalog query execution via @logseq/cli
  • EDN to JSON conversion using jet
  • CORS support for browser extensions

API Endpoints:

  • GET /health - Health check
  • GET /list - List all graphs
  • GET /show?graph=NAME - Show graph info
  • GET /search?q=QUERY&graph=NAME - Search graphs
  • POST /query - Execute datalog queries

Requirements:

  • Python 3
  • @logseq/cli (npm package)
  • jet (Clojure EDN processor)