- npm workspaces and package layout
-
@codedelta/types -
@codedelta/repo-manager -
@codedelta/serverimport/branches/commits APIs + registry persistence -
@codedelta/webimport/timeline shell + settings shell - README repositioning to CodeDelta
Implemented in this phase:
-
CodeGraph.exportGraph()and edge export support -
@codedelta/snapshot-manager- safe worktree checkout (no active worktree mutation)
- snapshot cache key:
{repoId}/{commitHash}/{analyzerVersion} - CodeGraph primary path + TS/JS fallback extractor
-
@codedelta/graph-diff- added/removed/modified nodes
- added/removed edges
- affected nodes via BFS (
calls,imports)
-
@codedelta/impact-score- deterministic scoring (files, symbols, edges, affected nodes)
- risk tags (
auth,billing,database,migration,env,config,api,routing,dependency)
- Compare API
GET /api/repos/:repoId/compare?base=<hash>&head=<hash>- error mapping for repo/commit/snapshot/timeout/size/unsupported
- Delta View UI first functional version
- base/head selectors
- compare with previous commit
- changed files panel
- graph diff summary panel
- impact/risk panel
- structural node/edge lists
- Timeline integration
- action: Compare with previous commit
POST /api/repos/:id/deltais deprecated and now returns guidance to useGET /compare.- Rich graph rendering is intentionally deferred.
Implemented in this phase:
- Deterministic
DeltaSummarygeneration- changed files/symbols/edges/affected metrics
- main changed areas/modules
- risk breakdown with reasons
- suggested review order
- Impact score explanation
- severity labels (
low/medium/high/critical) - explanation reasons + top contributors
- severity labels (
- File-level diff API
GET /api/repos/:repoId/diff?base=<hash>&head=<hash>&file=<path>- path traversal validation + clear error mapping
- unified patch + parsed hunks
- Delta View UX reorganization
- summary-first information hierarchy
- tabs for files/symbols/edges/metrics
- changed files and symbols open file diff modal
- symbol-to-hunk precise mapping in diff viewer
- richer graph rendering
- LLM-assisted summary (optional mode)
- Trace View foundation
- Codex OAuth(本机
codex login)
Implemented:
type DeltaSource = {
type: 'commit';
commitHash: string;
label?: string;
};Not implemented yet (planned):
branchtagpull_requestworking_treefolder
-
@codedelta/trace-enginedeterministic candidate retrieval + evidence assembly -
@codedelta/provider-runtimeno-AI fallback + minimal OpenAI/OpenAI-compatible adapter -
POST /api/repos/:id/traceproduction foundation implementation - Trace View UI first functional version
- question input / branch / commitLimit / includeDiffEvidence
- candidate commits with reasons and relevance score
- evidence panel + impact radius + evolution + uncertainty
- candidate -> Delta verification navigation (
previous -> candidate)
- low-history fallback behavior (low confidence + uncertainty guidance)
- Codex OAuth provider(本机 CLI 凭据 + ChatGPT backend)
- richer provider adapters (Anthropic/Ollama)
- stronger trace confidence calibration
- richer graph-backed evidence (deeper call-path reasoning)
- branch/PR/working-tree/folder trace sources
- Deeper CodeGraph integration for snapshots (incremental indexing / reuse)
- Rich graph visualization foundation (React Flow panorama — entry exploration, Delta overlay, Trace highlight)
- Private GitHub repository support
- Incremental snapshot acceleration for large repositories
- Timeline-level persisted impact scores
- Extended DeltaSource variants beyond commits
-
@codedelta/serverstatic UI hosting +CODEDELTA_MONOREPO_ROOT - Web boot screen (
/api/healthpolling, git banner) -
scripts/desktop-stage.mjs— embedded Node 22+ (node:sqlite) + production runtime -
apps/desktopTauri 2 shell (spawn/kill API, single instance,127.0.0.1:3847) - Import page recent repositories
-
npm run dev:desktop/stage:desktop/build:desktop - Apple code signing + notarization for public distribution
- Windows desktop (x64 NSIS installer, CI + GitHub Releases)
- Linux desktop
- Auto-update, menu bar quick open, drag-and-drop import
flowchart LR
subgraph phase2 [Phase2_Delta]
Repo[repo_manager]
Snap[snapshot_manager]
Diff[graph_diff]
Impact[impact_score]
API[compare_api]
UI[delta_view_ui]
end
CG[CodeGraph_core]
Repo --> Snap
Snap --> CG
Snap --> Diff
Diff --> Impact
Impact --> API
API --> UI