docs: rewrite README problem statement#428
Conversation
… rounds Reframe the value proposition from "saving tokens" to the real benefits: agents that produce structurally sound code and PRs that pass automated review (Greptile, CodeRabbit) on the first round instead of the third.
d3e1d67 to
795a26c
Compare
Greptile SummaryThis PR combines a README problem-statement rewrite (docs-only) with the completion of the Phase 3.3 repository-pattern migration: raw SQL scattered across 14+ source modules is extracted into a clean Key changes:
Concern to address: The repository introduces an inconsistency in statement caching. Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph "Before (scattered SQL)"
B1["builder.js\n(inline db.prepare)"]
B2["cfg.js\n(inline db.prepare)"]
B3["complexity.js\n(inline db.prepare)"]
B4["queries.js\n(inline db.prepare)"]
B5["embedder.js\n(inline db.prepare)"]
B6["...12 more modules"]
end
subgraph "After (repository layer)"
DB["src/db.js\n(barrel re-export)"]
IDX["repository/index.js\n(barrel re-export)"]
N["repository/nodes.js\ngetNodeId · getFunctionNodeId\nbulkNodeIdsByFile · findNode*"]
E["repository/edges.js\nfindCallees · findCallers\nfindImport* · getClassHierarchy"]
C["repository/cfg.js\ngetCfgBlocks · getCfgEdges\ndeleteCfgForNode · hasCfgTables"]
BS["repository/build-stmts.js\npurgeFileData · purgeFilesData"]
GR["repository/graph-read.js\ngetCallableNodes · getCallEdges\ngetFileNodesAll · getImportEdges"]
OT["repository/\ncochange · complexity\ndataflow · embeddings"]
end
B1 & B2 & B3 & B4 & B5 & B6 -->|"now imports from"| DB
DB --> IDX
IDX --> N & E & C & BS & GR & OT
Last reviewed commit: 795a26c |
Summary