Skip to content

feat(cruncher): disk-composed queries with standalone server package#41

Merged
IamShobe merged 6 commits into
mainfrom
feat/disk-composed-queries
Mar 14, 2026
Merged

feat(cruncher): disk-composed queries with standalone server package#41
IamShobe merged 6 commits into
mainfrom
feat/disk-composed-queries

Conversation

@IamShobe

@IamShobe IamShobe commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extract the Electron server process from apps/cruncher/src/processes/server/ into a standalone apps/cruncher-server/ package with its own vite build
  • Move shared server/frontend types and pipeline engine to packages/server-shared/ (@cruncher/server-shared)
  • Revamp engine to support disk-composed queries via DuckDB sessions
  • Remove unused Chakra UI v2-style components (avatar, checkbox, dialog, drawer, etc.)
  • Update forge.config.ts and prepare-server-runtime.mjs for new layout
  • Add knip dead-code analysis + CI check
  • Fix all lint warnings (unused types and functions removed)

Test plan

  • lint / format / tests / typecheck all pass (CI)
  • knip check passes (CI)
  • Electron app builds and server process starts correctly
  • Disk-composed queries execute end-to-end

Move server process to apps/cruncher-server/ and shared types to
packages/server-shared/ (@cruncher/server-shared) to complete the
disk-composed queries engine revamp.

- cruncher-server: standalone vite-built server bundle (private)
- server-shared: shared types/pipeline engine used by both frontend and server
- Remove unused UI components (avatar, checkbox, dialog, drawer, etc.)
- Update forge config and prepare-server-runtime script for new layout
- Add knip for dead code analysis + CI check
- Fix all lint warnings (unused types/functions removed)
- Delete unreachable loki runner chain (loki/, lib/procLock, lib/state, lib/zip)
  that was imported but never called in the previous codebase
- Remove associated deps: winston, winston-daily-rotate-file, yauzl
- Remove remaining unused exports flagged by knip:
  ReceivedMessageSchema, writeSessionMeta/readSessionMeta,
  supportedPluginsSelector, ExtractShortcutType
The loki runner chain was accidentally removed: the initLoki import was
present but the call was dropped during the engine revamp (e4743b1),
causing the import to appear unused to the linter.

Restore loki/, lib/procLock, lib/state, lib/zip and their deps (winston,
winston-daily-rotate-file, yauzl). Update config import path to use
@cruncher/server-shared where the schema now lives.
@IamShobe
IamShobe merged commit 73a494e into main Mar 14, 2026
4 checks passed
@IamShobe
IamShobe deleted the feat/disk-composed-queries branch March 14, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant