rustcodegraph 1.2.6

Local-first code intelligence graph and CLI for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
{
  "_comment": "/agent-eval 的测试语料库。可自由添加条目。size 使用 Small(<~150 个文件)、Medium(~150-1500 个文件)、Large(>~1500 个文件)。question 是一个用于检验跨文件理解的代表性架构问题。",
  "TypeScript": [
    {
      "name": "ky",
      "repo": "https://github.com/sindresorhus/ky",
      "size": "Small",
      "files": "~25",
      "question": "ky 如何实现请求重试和超时?"
    },
    {
      "name": "excalidraw",
      "repo": "https://github.com/excalidraw/excalidraw",
      "size": "Medium",
      "files": "~600",
      "question": "Excalidraw 如何渲染并更新 canvas 元素?"
    },
    {
      "name": "vscode",
      "repo": "https://github.com/microsoft/vscode",
      "size": "Large",
      "files": "~10000",
      "question": "extension host 如何与主进程通信?"
    }
  ],
  "JavaScript": [
    {
      "name": "express",
      "repo": "https://github.com/expressjs/express",
      "size": "Small",
      "files": "~50",
      "question": "Express 如何让请求经过 middleware stack 完成路由?"
    }
  ],
  "Go": [
    {
      "name": "cobra",
      "repo": "https://github.com/spf13/cobra",
      "size": "Small",
      "files": "~50",
      "question": "cobra 如何解析命令和 flag?"
    },
    {
      "name": "gin",
      "repo": "https://github.com/gin-gonic/gin",
      "size": "Medium",
      "files": "~150",
      "question": "gin 如何让请求经过 middleware chain 完成路由?"
    },
    {
      "name": "terraform",
      "repo": "https://github.com/hashicorp/terraform",
      "size": "Large",
      "files": "~4000",
      "question": "Terraform 如何构建并遍历资源依赖图?"
    },
    {
      "name": "cosmos-sdk",
      "repo": "https://github.com/cosmos/cosmos-sdk",
      "size": "Large",
      "files": "~5000",
      "question": "bank 模块的 MsgSend 消息如何到达账户余额更新?追踪从 bank keeper 的 Send handler 到 account/balance store update 的跨模块调用路径。"
    }
  ],
  "Python": [
    {
      "name": "click",
      "repo": "https://github.com/pallets/click",
      "size": "Small",
      "files": "~60",
      "question": "click 如何把命令行参数解析为命令?"
    },
    {
      "name": "flask",
      "repo": "https://github.com/pallets/flask",
      "size": "Medium",
      "files": "~90",
      "question": "Flask 如何把请求分发到 view function?"
    },
    {
      "name": "django",
      "repo": "https://github.com/django/django",
      "size": "Large",
      "files": "~2700",
      "question": "Django 的 ORM 如何从 QuerySet 构建并执行查询?"
    }
  ],
  "Rust": [
    {
      "name": "clap",
      "repo": "https://github.com/clap-rs/clap",
      "size": "Medium",
      "files": "~200",
      "question": "clap 如何依据 derive 出的 command definition 解析参数?"
    },
    {
      "name": "tokio",
      "repo": "https://github.com/tokio-rs/tokio",
      "size": "Large",
      "files": "~700",
      "question": "tokio 如何在 runtime 上调度并运行 async task?"
    },
    {
      "name": "deno",
      "repo": "https://github.com/denoland/deno",
      "size": "Large",
      "files": "~1500",
      "question": "Deno 如何加载并执行 TypeScript module?"
    }
  ],
  "Java": [
    {
      "name": "gson",
      "repo": "https://github.com/google/gson",
      "size": "Medium",
      "files": "~200",
      "question": "Gson 如何把对象序列化为 JSON?"
    },
    {
      "name": "okhttp",
      "repo": "https://github.com/square/okhttp",
      "size": "Medium",
      "files": "~640",
      "question": "OkHttp 如何让请求经过 interceptor chain?"
    },
    {
      "name": "guava",
      "repo": "https://github.com/google/guava",
      "size": "Large",
      "files": "~3000",
      "question": "Guava 的 CacheBuilder 如何构建并配置 cache?"
    }
  ],
  "Kotlin": [
    {
      "name": "koin",
      "repo": "https://github.com/InsertKoinIO/koin",
      "size": "Medium",
      "files": "~300",
      "question": "Koin 如何解析并注入依赖?"
    },
    {
      "name": "leakcanary",
      "repo": "https://github.com/square/leakcanary",
      "size": "Medium",
      "files": "~250",
      "question": "LeakCanary 如何检测并分析内存泄漏?"
    }
  ],
  "Swift": [
    {
      "name": "alamofire",
      "repo": "https://github.com/Alamofire/Alamofire",
      "size": "Small",
      "files": "~100",
      "question": "Alamofire 如何构建、发送并验证请求?"
    }
  ],
  "C#": [
    {
      "name": "serilog",
      "repo": "https://github.com/serilog/serilog",
      "size": "Medium",
      "files": "~250",
      "question": "Serilog 如何把 log event 路由到 sink?"
    },
    {
      "name": "jellyfin",
      "repo": "https://github.com/jellyfin/jellyfin",
      "size": "Large",
      "files": "~2500",
      "question": "Jellyfin 如何扫描并识别 media library 中的 item?"
    }
  ],
  "Ruby": [
    {
      "name": "sinatra",
      "repo": "https://github.com/sinatra/sinatra",
      "size": "Small",
      "files": "~60",
      "question": "Sinatra 如何把请求匹配到 route handler?"
    },
    {
      "name": "discourse",
      "repo": "https://github.com/discourse/discourse",
      "size": "Large",
      "files": "~3000",
      "question": "Discourse 如何创建并渲染新帖子?"
    }
  ],
  "PHP": [
    {
      "name": "slim",
      "repo": "https://github.com/slimphp/Slim",
      "size": "Small",
      "files": "~80",
      "question": "Slim 如何让请求经过 middleware?"
    },
    {
      "name": "laravel",
      "repo": "https://github.com/laravel/framework",
      "size": "Large",
      "files": "~3000",
      "question": "Laravel 如何解析 route 并把它分发到 controller?"
    }
  ],
  "C": [
    {
      "name": "redis",
      "repo": "https://github.com/redis/redis",
      "size": "Large",
      "files": "~600",
      "question": "Redis 如何解析并分发 client command?"
    }
  ],
  "C++": [
    {
      "name": "json",
      "repo": "https://github.com/nlohmann/json",
      "size": "Small",
      "files": "~100",
      "question": "nlohmann::json 如何把 JSON 字符串解析为 value?"
    },
    {
      "name": "grpc",
      "repo": "https://github.com/grpc/grpc",
      "size": "Large",
      "files": "~3000",
      "question": "gRPC 如何把传入 RPC 分发到 handler?"
    }
  ],
  "Dart": [
    {
      "name": "flutter",
      "repo": "https://github.com/flutter/flutter",
      "size": "Large",
      "files": "~6000",
      "question": "Flutter 如何构建并布局 widget tree?"
    }
  ],
  "Svelte": [
    {
      "name": "shadcn-svelte",
      "repo": "https://github.com/huntabyte/shadcn-svelte",
      "size": "Medium",
      "files": "~600",
      "question": "shadcn-svelte 组件如何组合并应用样式?"
    }
  ],
  "Lua": [
    {
      "name": "lualine.nvim",
      "repo": "https://github.com/nvim-lualine/lualine.nvim",
      "size": "Small",
      "files": "~120",
      "question": "lualine 如何组装并渲染 statusline section 和 component?"
    },
    {
      "name": "telescope.nvim",
      "repo": "https://github.com/nvim-telescope/telescope.nvim",
      "size": "Medium",
      "files": "~80",
      "question": "Telescope 如何把 picker 接到 finder、sorter 和 previewer?"
    },
    {
      "name": "kong",
      "repo": "https://github.com/Kong/kong",
      "size": "Large",
      "files": "~1330",
      "question": "Kong 如何在请求生命周期的各个 phase 中执行插件?"
    }
  ],
  "Luau": [
    {
      "name": "Knit",
      "repo": "https://github.com/Sleitnick/Knit",
      "size": "Small",
      "files": "~10",
      "question": "Knit 如何注册 service 并把它们暴露给 client?"
    },
    {
      "name": "vide",
      "repo": "https://github.com/centau/vide",
      "size": "Small",
      "files": "~40",
      "question": "vide 如何追踪 reactive source,并在 state 变化时重新运行 effect?"
    },
    {
      "name": "Fusion",
      "repo": "https://github.com/dphfox/Fusion",
      "size": "Medium",
      "files": "~115",
      "question": "Fusion 如何从 state object 构建并更新 reactive UI graph?"
    }
  ],
  "Objective-C": [
    {
      "name": "Masonry",
      "repo": "https://github.com/SnapKit/Masonry",
      "size": "Small",
      "files": "~50",
      "question": "Masonry 如何从 block DSL 构建并激活 Auto Layout constraint?"
    },
    {
      "name": "FMDB",
      "repo": "https://github.com/ccgus/fmdb",
      "size": "Medium",
      "files": "~80",
      "question": "FMDB 如何执行 prepared SQL statement 并绑定参数?"
    },
    {
      "name": "SDWebImage",
      "repo": "https://github.com/SDWebImage/SDWebImage",
      "size": "Large",
      "files": "~400",
      "question": "SDWebImage 如何为 UIImageView 下载、缓存并解码图片?"
    }
  ],
  "Mixed iOS (Swift+ObjC)": [
    {
      "name": "Charts",
      "repo": "https://github.com/danielgindi/Charts",
      "size": "Small",
      "files": "~270",
      "question": "ChartsDemo ObjC demo controller 如何驱动 Swift Charts library 来执行动画并通知数据更新?"
    },
    {
      "name": "realm-swift",
      "repo": "https://github.com/realm/realm-swift",
      "size": "Medium",
      "files": "~370",
      "question": "Swift `Realm.write { realm.add(obj) }` 如何到达 Objective-C 持久化层?"
    },
    {
      "name": "wikipedia-ios",
      "repo": "https://github.com/wikimedia/wikipedia-ios",
      "size": "Large",
      "files": "~1700",
      "question": "点击 search result 后,如何跨越 Swift / ObjC 边界到达 article-fetch network call?"
    }
  ],
  "React Native (legacy bridge + TurboModule)": [
    {
      "name": "@react-native-async-storage",
      "repo": "https://github.com/react-native-async-storage/async-storage",
      "size": "Small",
      "files": "~60",
      "question": "JS 中的 `setItem` 如何到达原生 `legacy_multiSet` 实现?"
    },
    {
      "name": "react-native-svg",
      "repo": "https://github.com/software-mansion/react-native-svg",
      "size": "Medium",
      "files": "~700",
      "question": "JS 的 `Svg.getTotalLength(...)` 如何通过 TurboModule 到达 iOS / Android 原生实现?"
    },
    {
      "name": "react-native-firebase",
      "repo": "https://github.com/invertase/react-native-firebase",
      "size": "Large",
      "files": "~1100",
      "question": "原生 iOS push notification 如何到达 JS 的 `messaging().onMessage(...)` listener?"
    }
  ],
  "Expo Modules": [
    {
      "name": "expo-haptics",
      "repo": "https://github.com/expo/expo/tree/main/packages/expo-haptics",
      "size": "Small",
      "files": "~15",
      "question": "JS 中的 `Haptics.notificationAsync(...)` 如何到达 Swift Module 中的 `UINotificationFeedbackGenerator`?"
    },
    {
      "name": "expo-camera",
      "repo": "https://github.com/expo/expo/tree/main/packages/expo-camera",
      "size": "Medium",
      "files": "~70",
      "question": "JS 的 `CameraView.takePictureAsync(options)` 如何到达原生 AVCaptureSession / CameraDevice 调用?"
    }
  ],
  "React Native Fabric (view components)": [
    {
      "name": "react-native-segmented-control",
      "repo": "https://github.com/react-native-segmented-control/segmented-control",
      "size": "Small",
      "files": "~25",
      "question": "JSX `<SegmentedControl onChange={cb}/>` 如何到达 iOS/Android 上的原生 onChange handler?"
    },
    {
      "name": "react-native-screens",
      "repo": "https://github.com/software-mansion/react-native-screens",
      "size": "Medium",
      "files": "~1200",
      "question": "JSX `<ScreenStack>` 如何到达原生 RNSScreenStackView component?"
    },
    {
      "name": "react-native-skia",
      "repo": "https://github.com/Shopify/react-native-skia",
      "size": "Large",
      "files": "~1000",
      "question": "`<SkiaPictureView/>` 的 JSX 使用如何到达 iOS / Android 原生 renderer?"
    }
  ],
  "R": [
    {
      "name": "AnomalyDetection",
      "repo": "https://github.com/twitter/AnomalyDetection",
      "size": "Small",
      "files": "~24",
      "question": "AnomalyDetectionTs 如何从导出的入口函数到达底层 S-H-ESD 统计检验?按顺序列出路径上的函数。"
    },
    {
      "name": "dplyr",
      "repo": "https://github.com/tidyverse/dplyr",
      "size": "Medium",
      "files": "~450",
      "question": "在 grouped data frame 上调用 mutate() 时,哪些函数按顺序处理 grouping 和 expression evaluation,一直到 mutate() 底层?"
    },
    {
      "name": "ggplot2",
      "repo": "https://github.com/tidyverse/ggplot2",
      "size": "Large",
      "files": "~1150",
      "question": "打印 ggplot object 时,plot 实际如何构建并绘制?追踪从 print/plot 到 geom 渲染位置的路径,并按顺序列出关键函数。"
    }
  ]
}