cgx-engine 0.4.1

Core engine for cgx — Tree-sitter parsing, DuckDB graph storage, git analysis, and clustering
Documentation
# Codebase Architecture
> Auto-generated by cgx 2026-05-10T08:52:34.911886+00:00. Re-run `cgx analyze` to refresh.
> For the full skill context used by AI agents, see `CGX_SKILL.md`.

## Overview
- **Nodes:** 12 across 3 files
- **Languages:** typescript 100%
- **Communities:** 3 architectural clusters

## Module Map
The graph is partitioned into 3 communities via Louvain clustering.
Each community is a cohesive module — edits inside one community rarely ripple outside it.
- **#1 — Function:login** (4 nodes)
- **#3 — File:src/auth.ts** (4 nodes)
- **#2 — File:src/db.ts** (4 nodes)

## Hotspots (High Risk — Review Before Editing)
Files ranked by churn × coupling score. Editing these is likely to break things.
| File | Churn | Callers |
|------|-------|--------|
| `src/auth.ts` | 1.00 | 3 |
| `src/db.ts` | 1.00 | 2 |
| `src/router.ts` | 0.33 | 1 |


## Entry Points
Files/functions with no inbound dependencies — safe places to start tracing.
_(none detected)_


## God Nodes (Most Depended-On)
These are used everywhere. Breaking them has maximum blast radius.
- `login` (Function) — 2 callers, in `src/auth.ts`
- `query` (Function) — 1 callers, in `src/db.ts`
- `connect` (Function) — 1 callers, in `src/db.ts`
- `handleLogin` (Function) — 1 callers, in `src/router.ts`
- `resetPassword` (Function) — 1 callers, in `src/auth.ts`

> Query this graph before opening any file. See `CGX_SKILL.md` for full command reference.