limn-review 0.1.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +133 -0
  3. package/dist/ai/runtime.js +535 -0
  4. package/dist/api/plugins/auth.js +169 -0
  5. package/dist/api/plugins/error-handler.js +114 -0
  6. package/dist/api/plugins/rate-limit.js +855 -0
  7. package/dist/api/plugins/security.js +321 -0
  8. package/dist/api/routes/activity.js +103 -0
  9. package/dist/api/routes/ai-runtime.js +67 -0
  10. package/dist/api/routes/auth.js +194 -0
  11. package/dist/api/routes/billing.js +209 -0
  12. package/dist/api/routes/bot-triage.js +1289 -0
  13. package/dist/api/routes/conflicts.js +730 -0
  14. package/dist/api/routes/contact.js +318 -0
  15. package/dist/api/routes/daily-brief.js +58 -0
  16. package/dist/api/routes/flow.js +71 -0
  17. package/dist/api/routes/health.js +7 -0
  18. package/dist/api/routes/insights.js +200 -0
  19. package/dist/api/routes/me.js +458 -0
  20. package/dist/api/routes/mentions.js +22 -0
  21. package/dist/api/routes/mergers.js +8 -0
  22. package/dist/api/routes/ml-labels.js +109 -0
  23. package/dist/api/routes/open-prs.js +35 -0
  24. package/dist/api/routes/prs.js +1633 -0
  25. package/dist/api/routes/reactions.js +217 -0
  26. package/dist/api/routes/repos.js +563 -0
  27. package/dist/api/routes/search.js +41 -0
  28. package/dist/api/routes/threads.js +118 -0
  29. package/dist/api/routes/timeline.js +150 -0
  30. package/dist/api/routes/users.js +67 -0
  31. package/dist/api/routes/webhooks.js +181 -0
  32. package/dist/api/routes/workspaces.js +322 -0
  33. package/dist/app.js +274 -0
  34. package/dist/ascii.js +19 -0
  35. package/dist/auth/account.js +482 -0
  36. package/dist/auth/crypto.js +46 -0
  37. package/dist/bot-triage/resolve.js +59 -0
  38. package/dist/cli.js +388 -0
  39. package/dist/coding/activity.js +80 -0
  40. package/dist/coding/agent.js +288 -0
  41. package/dist/coding/ai-fix/auto-fix.js +212 -0
  42. package/dist/coding/ai-fix/manager.js +370 -0
  43. package/dist/coding/ai-fix/persist.js +213 -0
  44. package/dist/coding/ai-fix/pr-context.js +58 -0
  45. package/dist/coding/ai-fix/prompts.js +138 -0
  46. package/dist/coding/ai-fix/review-seed.js +357 -0
  47. package/dist/coding/ai-fix/routes.js +425 -0
  48. package/dist/coding/git-ops.js +321 -0
  49. package/dist/coding/git.js +184 -0
  50. package/dist/coding/merge.js +262 -0
  51. package/dist/coding/safe-path.js +75 -0
  52. package/dist/coding/schema.js +43 -0
  53. package/dist/config.js +648 -0
  54. package/dist/conflict/diff.js +304 -0
  55. package/dist/conflict/git.js +118 -0
  56. package/dist/conflict/hash.js +73 -0
  57. package/dist/conflict/janitor.js +218 -0
  58. package/dist/conflict/land.js +675 -0
  59. package/dist/conflict/model-types.js +2 -0
  60. package/dist/conflict/model.js +1081 -0
  61. package/dist/conflict/parse.js +142 -0
  62. package/dist/conflict/seam.js +136 -0
  63. package/dist/conflict/session.js +532 -0
  64. package/dist/conflict/suggestion.js +398 -0
  65. package/dist/conflict/tokens.js +72 -0
  66. package/dist/data-dir.js +112 -0
  67. package/dist/db/actor-lanes.js +213 -0
  68. package/dist/db/automation-ids.js +97 -0
  69. package/dist/db/automation-output.js +349 -0
  70. package/dist/db/blast-radius-query.js +36 -0
  71. package/dist/db/blast-radius.js +226 -0
  72. package/dist/db/bot-dormancy.js +115 -0
  73. package/dist/db/bot-overlap.js +579 -0
  74. package/dist/db/bot-volume.js +722 -0
  75. package/dist/db/bot-window.js +35 -0
  76. package/dist/db/branch-queries.js +310 -0
  77. package/dist/db/change-shape.js +243 -0
  78. package/dist/db/changepoint.js +75 -0
  79. package/dist/db/cleanup.js +36 -0
  80. package/dist/db/client.js +102 -0
  81. package/dist/db/code-loc.js +388 -0
  82. package/dist/db/credits.js +79 -0
  83. package/dist/db/daily-brief.js +406 -0
  84. package/dist/db/dependency-cards.js +145 -0
  85. package/dist/db/erase-account.js +255 -0
  86. package/dist/db/export-account.js +189 -0
  87. package/dist/db/failing-checks.js +124 -0
  88. package/dist/db/file-coupling.js +197 -0
  89. package/dist/db/flow-detail.js +661 -0
  90. package/dist/db/flow-pointers.js +197 -0
  91. package/dist/db/flow-settings.js +67 -0
  92. package/dist/db/forecast.js +114 -0
  93. package/dist/db/line-overlap.js +81 -0
  94. package/dist/db/merge-queue.js +189 -0
  95. package/dist/db/migrate.js +17 -0
  96. package/dist/db/migrations/0000_purple_ben_grimm.sql +155 -0
  97. package/dist/db/migrations/0001_colorful_ozymandias.sql +31 -0
  98. package/dist/db/migrations/0002_famous_sersi.sql +9 -0
  99. package/dist/db/migrations/0003_clever_shinobi_shaw.sql +3 -0
  100. package/dist/db/migrations/0004_pale_scalphunter.sql +1 -0
  101. package/dist/db/migrations/0005_daffy_guardian.sql +2 -0
  102. package/dist/db/migrations/0006_cute_violations.sql +45 -0
  103. package/dist/db/migrations/0007_dark_anthem.sql +2 -0
  104. package/dist/db/migrations/0008_multitenant_accounts.sql +44 -0
  105. package/dist/db/migrations/0009_lean_bodies.sql +13 -0
  106. package/dist/db/migrations/0010_lean_bodies_nullable.sql +56 -0
  107. package/dist/db/migrations/0011_pr_diff_size.sql +10 -0
  108. package/dist/db/migrations/0012_findings_included_default.sql +7 -0
  109. package/dist/db/migrations/0013_review_routing.sql +9 -0
  110. package/dist/db/migrations/0014_account_last_active.sql +6 -0
  111. package/dist/db/migrations/0015_repos_inbox_watch.sql +9 -0
  112. package/dist/db/migrations/0016_repo_viewer_permission.sql +7 -0
  113. package/dist/db/migrations/0017_account_display_name.sql +7 -0
  114. package/dist/db/migrations/0018_finding_comment_kind.sql +7 -0
  115. package/dist/db/migrations/0019_finding_file_in_diff.sql +7 -0
  116. package/dist/db/migrations/0020_claude_review_cost_telemetry.sql +11 -0
  117. package/dist/db/migrations/0021_account_feed_last_seen.sql +7 -0
  118. package/dist/db/migrations/0022_ci_status_events.sql +21 -0
  119. package/dist/db/migrations/0023_ai_usage.sql +21 -0
  120. package/dist/db/migrations/0024_pr_head_ref_name.sql +6 -0
  121. package/dist/db/migrations/0025_account_billing.sql +7 -0
  122. package/dist/db/migrations/0026_ai_credit_allowance.sql +5 -0
  123. package/dist/db/migrations/0027_user_github_type.sql +6 -0
  124. package/dist/db/migrations/0028_bot_review_classification.sql +21 -0
  125. package/dist/db/migrations/0029_bot_mute_rules.sql +19 -0
  126. package/dist/db/migrations/0030_teams.sql +32 -0
  127. package/dist/db/migrations/0031_events_pr_idx.sql +7 -0
  128. package/dist/db/migrations/0032_benchmark_contributions.sql +29 -0
  129. package/dist/db/migrations/0033_thread_addressed_confidence.sql +9 -0
  130. package/dist/db/migrations/0034_thread_resolved_at.sql +6 -0
  131. package/dist/db/migrations/0035_pr_first_review_requested_at.sql +5 -0
  132. package/dist/db/migrations/0036_search_index.sql +25 -0
  133. package/dist/db/migrations/0037_author_indexes.sql +15 -0
  134. package/dist/db/migrations/0038_auto_merge_requests.sql +37 -0
  135. package/dist/db/migrations/0039_branch_status.sql +44 -0
  136. package/dist/db/migrations/0040_pr_review_decision.sql +10 -0
  137. package/dist/db/migrations/0041_branch_commit_detail.sql +38 -0
  138. package/dist/db/migrations/0042_repo_reviewers.sql +176 -0
  139. package/dist/db/migrations/0043_account_reviewers.sql +131 -0
  140. package/dist/db/migrations/0044_workspaces.sql +138 -0
  141. package/dist/db/migrations/0045_workspace_reviewers.sql +180 -0
  142. package/dist/db/migrations/0046_drop_inbox_watch.sql +25 -0
  143. package/dist/db/migrations/0047_ml_comment_labels.sql +40 -0
  144. package/dist/db/migrations/0048_ml_vendor_severity.sql +31 -0
  145. package/dist/db/migrations/0049_seat_pricing_repo_description.sql +21 -0
  146. package/dist/db/migrations/0050_users_app_slug.sql +12 -0
  147. package/dist/db/migrations/0051_auto_merge_queue.sql +17 -0
  148. package/dist/db/migrations/0052_trunk_ci_status_events.sql +43 -0
  149. package/dist/db/migrations/0053_automation_roles.sql +79 -0
  150. package/dist/db/migrations/0054_automation_vendor_kinds.sql +514 -0
  151. package/dist/db/migrations/0055_auto_merge_phase.sql +12 -0
  152. package/dist/db/migrations/0056_pr_mentions.sql +22 -0
  153. package/dist/db/migrations/0057_large_pr_threshold.sql +14 -0
  154. package/dist/db/migrations/0058_pending_mute.sql +53 -0
  155. package/dist/db/migrations/0059_merge_queue_state.sql +33 -0
  156. package/dist/db/migrations/0060_drop_my_turn_dismissals.sql +33 -0
  157. package/dist/db/migrations/0061_auto_merge_durable_anchors.sql +27 -0
  158. package/dist/db/migrations/0062_blast_radius_config.sql +21 -0
  159. package/dist/db/migrations/0063_repo_file_coupling.sql +33 -0
  160. package/dist/db/migrations/0064_pr_content_kind.sql +21 -0
  161. package/dist/db/migrations/0065_workspace_flow_settings.sql +13 -0
  162. package/dist/db/migrations/0066_review_request_events.sql +31 -0
  163. package/dist/db/migrations/0067_pr_security_signals.sql +86 -0
  164. package/dist/db/migrations/0068_my_turn_settings.sql +18 -0
  165. package/dist/db/migrations/0069_my_turn_dismissals.sql +41 -0
  166. package/dist/db/migrations/0070_claude_review_follow_up_ticket.sql +22 -0
  167. package/dist/db/migrations/0071_claude_review_trigger.sql +11 -0
  168. package/dist/db/migrations/0072_commit_message_headline.sql +13 -0
  169. package/dist/db/migrations/0073_claude_review_chat.sql +31 -0
  170. package/dist/db/migrations/0074_adopt_agentic_tables.sql +98 -0
  171. package/dist/db/migrations/0075_review_lens_drop_learnings.sql +15 -0
  172. package/dist/db/migrations/0076_claude_review_threads.sql +17 -0
  173. package/dist/db/migrations/0077_claude_review_ci_failures.sql +10 -0
  174. package/dist/db/migrations/0078_ai_fix_change_report.sql +17 -0
  175. package/dist/db/migrations/0079_claude_finding_story.sql +16 -0
  176. package/dist/db/migrations/meta/0000_snapshot.json +1116 -0
  177. package/dist/db/migrations/meta/0001_snapshot.json +1321 -0
  178. package/dist/db/migrations/meta/0002_snapshot.json +1375 -0
  179. package/dist/db/migrations/meta/0003_snapshot.json +1396 -0
  180. package/dist/db/migrations/meta/0004_snapshot.json +1416 -0
  181. package/dist/db/migrations/meta/0005_snapshot.json +1430 -0
  182. package/dist/db/migrations/meta/0006_snapshot.json +1745 -0
  183. package/dist/db/migrations/meta/0007_snapshot.json +1759 -0
  184. package/dist/db/migrations/meta/_journal.json +566 -0
  185. package/dist/db/migrations-pg/0000_tired_alex_power.sql +268 -0
  186. package/dist/db/migrations-pg/0001_dizzy_mockingbird.sql +3 -0
  187. package/dist/db/migrations-pg/0002_glorious_ikaris.sql +4 -0
  188. package/dist/db/migrations-pg/0003_melted_secret_warriors.sql +2 -0
  189. package/dist/db/migrations-pg/0004_numerous_triton.sql +1 -0
  190. package/dist/db/migrations-pg/0005_thick_blockbuster.sql +2 -0
  191. package/dist/db/migrations-pg/0006_majestic_dracula.sql +1 -0
  192. package/dist/db/migrations-pg/0007_same_human_torch.sql +2 -0
  193. package/dist/db/migrations-pg/0008_slimy_toxin.sql +1 -0
  194. package/dist/db/migrations-pg/0009_fuzzy_jubilee.sql +4 -0
  195. package/dist/db/migrations-pg/0010_late_hammerhead.sql +1 -0
  196. package/dist/db/migrations-pg/0011_happy_leech.sql +16 -0
  197. package/dist/db/migrations-pg/0012_woozy_captain_midlands.sql +16 -0
  198. package/dist/db/migrations-pg/0013_yielding_nicolaos.sql +1 -0
  199. package/dist/db/migrations-pg/0014_wakeful_bill_hollister.sql +2 -0
  200. package/dist/db/migrations-pg/0015_aspiring_black_tom.sql +1 -0
  201. package/dist/db/migrations-pg/0016_cute_ghost_rider.sql +30 -0
  202. package/dist/db/migrations-pg/0017_far_changeling.sql +24 -0
  203. package/dist/db/migrations-pg/0018_fancy_miss_america.sql +1 -0
  204. package/dist/db/migrations-pg/0019_benchmark_contributions.sql +22 -0
  205. package/dist/db/migrations-pg/0020_majestic_edwin_jarvis.sql +3 -0
  206. package/dist/db/migrations-pg/0021_green_salo.sql +1 -0
  207. package/dist/db/migrations-pg/0022_wise_baron_strucker.sql +1 -0
  208. package/dist/db/migrations-pg/0023_search_index.sql +19 -0
  209. package/dist/db/migrations-pg/0024_author_indexes.sql +9 -0
  210. package/dist/db/migrations-pg/0025_auto_merge_requests.sql +26 -0
  211. package/dist/db/migrations-pg/0026_branch_status.sql +32 -0
  212. package/dist/db/migrations-pg/0027_pr_review_decision.sql +5 -0
  213. package/dist/db/migrations-pg/0028_branch_commit_detail.sql +9 -0
  214. package/dist/db/migrations-pg/0029_repo_reviewers.sql +127 -0
  215. package/dist/db/migrations-pg/0030_account_reviewers.sql +77 -0
  216. package/dist/db/migrations-pg/0031_workspaces.sql +131 -0
  217. package/dist/db/migrations-pg/0032_workspace_reviewers.sql +165 -0
  218. package/dist/db/migrations-pg/0033_drop_inbox_watch.sql +14 -0
  219. package/dist/db/migrations-pg/0034_ml_comment_labels.sql +33 -0
  220. package/dist/db/migrations-pg/0035_ml_vendor_severity.sql +16 -0
  221. package/dist/db/migrations-pg/0036_seat_pricing_repo_description.sql +12 -0
  222. package/dist/db/migrations-pg/0037_users_app_slug.sql +9 -0
  223. package/dist/db/migrations-pg/0038_auto_merge_queue.sql +10 -0
  224. package/dist/db/migrations-pg/0039_trunk_ci_status_events.sql +27 -0
  225. package/dist/db/migrations-pg/0040_automation_roles.sql +63 -0
  226. package/dist/db/migrations-pg/0041_automation_vendor_kinds.sql +488 -0
  227. package/dist/db/migrations-pg/0042_auto_merge_phase.sql +8 -0
  228. package/dist/db/migrations-pg/0043_pr_mentions.sql +19 -0
  229. package/dist/db/migrations-pg/0044_large_pr_threshold.sql +6 -0
  230. package/dist/db/migrations-pg/0045_pending_mute.sql +26 -0
  231. package/dist/db/migrations-pg/0046_merge_queue_state.sql +18 -0
  232. package/dist/db/migrations-pg/0047_drop_my_turn_dismissals.sql +21 -0
  233. package/dist/db/migrations-pg/0048_auto_merge_durable_anchors.sql +27 -0
  234. package/dist/db/migrations-pg/0049_blast_radius_config.sql +8 -0
  235. package/dist/db/migrations-pg/0050_repo_file_coupling.sql +13 -0
  236. package/dist/db/migrations-pg/0051_pr_content_kind.sql +6 -0
  237. package/dist/db/migrations-pg/0052_workspace_flow_settings.sql +4 -0
  238. package/dist/db/migrations-pg/0053_review_request_events.sql +18 -0
  239. package/dist/db/migrations-pg/0054_pr_security_signals.sql +59 -0
  240. package/dist/db/migrations-pg/0055_my_turn_settings.sql +6 -0
  241. package/dist/db/migrations-pg/0056_my_turn_dismissals.sql +21 -0
  242. package/dist/db/migrations-pg/0057_claude_review_follow_up_ticket.sql +8 -0
  243. package/dist/db/migrations-pg/0058_claude_review_trigger.sql +4 -0
  244. package/dist/db/migrations-pg/0059_commit_message_headline.sql +3 -0
  245. package/dist/db/migrations-pg/0060_claude_review_chat.sql +24 -0
  246. package/dist/db/migrations-pg/0061_adopt_agentic_tables.sql +79 -0
  247. package/dist/db/migrations-pg/0062_review_lens_drop_learnings.sql +5 -0
  248. package/dist/db/migrations-pg/0063_claude_review_threads.sql +7 -0
  249. package/dist/db/migrations-pg/0064_claude_review_ci_failures.sql +4 -0
  250. package/dist/db/migrations-pg/0065_ai_fix_change_report.sql +9 -0
  251. package/dist/db/migrations-pg/0066_claude_finding_story.sql +7 -0
  252. package/dist/db/migrations-pg/meta/0000_snapshot.json +2137 -0
  253. package/dist/db/migrations-pg/meta/0001_snapshot.json +2143 -0
  254. package/dist/db/migrations-pg/meta/0002_snapshot.json +2170 -0
  255. package/dist/db/migrations-pg/meta/0003_snapshot.json +2182 -0
  256. package/dist/db/migrations-pg/meta/0004_snapshot.json +2188 -0
  257. package/dist/db/migrations-pg/meta/0005_snapshot.json +2201 -0
  258. package/dist/db/migrations-pg/meta/0006_snapshot.json +2207 -0
  259. package/dist/db/migrations-pg/meta/0007_snapshot.json +2219 -0
  260. package/dist/db/migrations-pg/meta/0008_snapshot.json +2226 -0
  261. package/dist/db/migrations-pg/meta/0009_snapshot.json +2250 -0
  262. package/dist/db/migrations-pg/meta/0010_snapshot.json +2256 -0
  263. package/dist/db/migrations-pg/meta/0011_snapshot.json +2412 -0
  264. package/dist/db/migrations-pg/meta/0012_snapshot.json +2528 -0
  265. package/dist/db/migrations-pg/meta/0013_snapshot.json +2534 -0
  266. package/dist/db/migrations-pg/meta/0014_snapshot.json +2547 -0
  267. package/dist/db/migrations-pg/meta/0015_snapshot.json +2553 -0
  268. package/dist/db/migrations-pg/meta/0016_snapshot.json +2774 -0
  269. package/dist/db/migrations-pg/meta/0017_snapshot.json +2999 -0
  270. package/dist/db/migrations-pg/meta/0018_snapshot.json +3020 -0
  271. package/dist/db/migrations-pg/meta/0020_snapshot.json +3228 -0
  272. package/dist/db/migrations-pg/meta/0021_snapshot.json +3234 -0
  273. package/dist/db/migrations-pg/meta/0022_snapshot.json +3240 -0
  274. package/dist/db/migrations-pg/meta/_journal.json +475 -0
  275. package/dist/db/ml-labels.js +1666 -0
  276. package/dist/db/my-turn-dismissals.js +343 -0
  277. package/dist/db/my-turn-settings.js +34 -0
  278. package/dist/db/pending-classify.js +46 -0
  279. package/dist/db/pending-mute.js +171 -0
  280. package/dist/db/pending-tabs.js +238 -0
  281. package/dist/db/period-metrics.js +820 -0
  282. package/dist/db/person-period.js +763 -0
  283. package/dist/db/pr-intervals.js +930 -0
  284. package/dist/db/pr-liveness.js +240 -0
  285. package/dist/db/pr-mentions.js +279 -0
  286. package/dist/db/pr-merge-queue-stamp.js +91 -0
  287. package/dist/db/queries.js +14631 -0
  288. package/dist/db/reaction-targets.js +94 -0
  289. package/dist/db/repo-activity.js +171 -0
  290. package/dist/db/retention.js +138 -0
  291. package/dist/db/review-threads-for-review.js +240 -0
  292. package/dist/db/run-migrations.js +24 -0
  293. package/dist/db/schema.pg.js +1220 -0
  294. package/dist/db/schema.sqlite.js +1801 -0
  295. package/dist/db/search.js +317 -0
  296. package/dist/db/security-alerts.js +218 -0
  297. package/dist/db/synthesis-input.js +565 -0
  298. package/dist/db/triage.js +320 -0
  299. package/dist/db/usage.js +63 -0
  300. package/dist/db/work-plan.js +1086 -0
  301. package/dist/db/working-hours.js +161 -0
  302. package/dist/feed/my-turn.js +122 -0
  303. package/dist/github/actions-logs.js +397 -0
  304. package/dist/github/auth.js +86 -0
  305. package/dist/github/branch-queries.js +229 -0
  306. package/dist/github/client.js +454 -0
  307. package/dist/github/codeowners.js +221 -0
  308. package/dist/github/commit-checks.js +105 -0
  309. package/dist/github/compare.js +110 -0
  310. package/dist/github/diff-anchor.js +227 -0
  311. package/dist/github/mutations.js +706 -0
  312. package/dist/github/pr-file-content.js +254 -0
  313. package/dist/github/pr-liveness.js +161 -0
  314. package/dist/github/queries.js +875 -0
  315. package/dist/github/rate-budget.js +129 -0
  316. package/dist/github/reactions.js +161 -0
  317. package/dist/github/reviewer-suggest.js +104 -0
  318. package/dist/github/team-reviewers.js +96 -0
  319. package/dist/index.js +184 -0
  320. package/dist/merge/auto-merge-runner.js +960 -0
  321. package/dist/ml/severity-client.js +218 -0
  322. package/dist/pr/detail-enricher.js +26 -0
  323. package/dist/pro/bind.js +302 -0
  324. package/dist/pro/contract.js +37 -0
  325. package/dist/pro/migrate.js +64 -0
  326. package/dist/review/agent-context.js +127 -0
  327. package/dist/review/agent.js +385 -0
  328. package/dist/review/agentic.js +59 -0
  329. package/dist/review/auth.js +94 -0
  330. package/dist/review/chat-agent.js +179 -0
  331. package/dist/review/claude-review/ai-ready.js +16 -0
  332. package/dist/review/claude-review/auto-settings.js +139 -0
  333. package/dist/review/claude-review/auto.js +244 -0
  334. package/dist/review/claude-review/chat.js +489 -0
  335. package/dist/review/claude-review/ci-failures.js +350 -0
  336. package/dist/review/claude-review/follow-up.js +310 -0
  337. package/dist/review/claude-review/manager.js +686 -0
  338. package/dist/review/claude-review/persist.js +996 -0
  339. package/dist/review/claude-review/prompts.js +357 -0
  340. package/dist/review/claude-review/routes.js +518 -0
  341. package/dist/review/claude-review/routing.js +61 -0
  342. package/dist/review/claude-review/specialists.js +190 -0
  343. package/dist/review/claude-review/threads.js +265 -0
  344. package/dist/review/claude-review/ticket.js +282 -0
  345. package/dist/review/clone-hygiene.js +380 -0
  346. package/dist/review/clone-manager.js +367 -0
  347. package/dist/review/llm.js +113 -0
  348. package/dist/review/model-options.js +48 -0
  349. package/dist/review/plugin-providers.js +12 -0
  350. package/dist/review/post-review.js +216 -0
  351. package/dist/review/post-seam.js +161 -0
  352. package/dist/review/prepare.js +168 -0
  353. package/dist/review/pricing.js +17 -0
  354. package/dist/review/schema.js +156 -0
  355. package/dist/review/submit-map.js +41 -0
  356. package/dist/review/usage.js +90 -0
  357. package/dist/shared/claude-review.js +335 -0
  358. package/dist/shared/conflict-fold.js +151 -0
  359. package/dist/shared/conflicts.js +30 -0
  360. package/dist/shared/flow-settings.js +191 -0
  361. package/dist/shared/index.js +8 -0
  362. package/dist/shared/my-turn-settings.js +238 -0
  363. package/dist/shared/pending-rules.js +281 -0
  364. package/dist/shared/product.js +54 -0
  365. package/dist/shared/types.js +896 -0
  366. package/dist/status.js +386 -0
  367. package/dist/sync/adaptive.js +185 -0
  368. package/dist/sync/app-attribution.js +66 -0
  369. package/dist/sync/auth-notices.js +36 -0
  370. package/dist/sync/backfill-ci-history.js +315 -0
  371. package/dist/sync/backfill-commit-headlines.js +136 -0
  372. package/dist/sync/backfill-pr-security.js +175 -0
  373. package/dist/sync/backfill-review-requests.js +97 -0
  374. package/dist/sync/benchmark-rollup.js +50 -0
  375. package/dist/sync/bot-detection.js +309 -0
  376. package/dist/sync/bot-resolution-markers.js +30 -0
  377. package/dist/sync/branch-status.js +634 -0
  378. package/dist/sync/classify-change-shape.js +150 -0
  379. package/dist/sync/commit-files.js +74 -0
  380. package/dist/sync/derive-thread-state.js +99 -0
  381. package/dist/sync/drain-review-threads.js +212 -0
  382. package/dist/sync/hydrate-detail.js +482 -0
  383. package/dist/sync/mention-scan.js +89 -0
  384. package/dist/sync/ml-enrichment.js +478 -0
  385. package/dist/sync/pr-change-signal.js +96 -0
  386. package/dist/sync/pr-liveness-sweep.js +139 -0
  387. package/dist/sync/pr-settle.js +381 -0
  388. package/dist/sync/refresh-pr.js +163 -0
  389. package/dist/sync/reparse-vendor-badges.js +495 -0
  390. package/dist/sync/resync-after-write.js +280 -0
  391. package/dist/sync/review-fingerprint.js +117 -0
  392. package/dist/sync/reviewer-behavior.js +103 -0
  393. package/dist/sync/reviewer-classify.js +503 -0
  394. package/dist/sync/routing-files.js +97 -0
  395. package/dist/sync/scheduled-jobs.js +12 -0
  396. package/dist/sync/scheduler.js +159 -0
  397. package/dist/sync/security-detect.js +521 -0
  398. package/dist/sync/sync-manager.js +750 -0
  399. package/dist/sync/sync-one-pr.js +205 -0
  400. package/dist/sync/sync-repo.js +400 -0
  401. package/dist/sync/unsettled-prs.js +506 -0
  402. package/dist/sync/upsert.js +1190 -0
  403. package/package.json +56 -0
  404. package/public/apple-touch-icon.png +0 -0
  405. package/public/assets/AiFixTab-CQP6PT5u.js +2 -0
  406. package/public/assets/ClaudeReviewTab-DQJ-58ZA.js +8 -0
  407. package/public/assets/PrBotBehaviourTab-CCnFrWbC.js +1 -0
  408. package/public/assets/archivo-latin-600-BN-JkNrl.woff2 +0 -0
  409. package/public/assets/highlight-BEHUn5zE.css +10 -0
  410. package/public/assets/highlight-CIIZLa6Z.js +12 -0
  411. package/public/assets/index-BDnYs6zg.js +73 -0
  412. package/public/assets/index-mCuI--RC.css +1 -0
  413. package/public/assets/markdown-I_JLLVAZ.js +32 -0
  414. package/public/assets/perfProbe-Da13EhTE.js +1 -0
  415. package/public/assets/tanstack-5qsxxaLe.js +17 -0
  416. package/public/assets/vis-C3BCkP5U.js +1280 -0
  417. package/public/assets/vis-ziCVehMy.css +1 -0
  418. package/public/favicon-16.png +0 -0
  419. package/public/favicon-32.png +0 -0
  420. package/public/favicon-48.png +0 -0
  421. package/public/favicon.svg +5 -0
  422. package/public/index.html +41 -0
  423. package/public-landing/apple-touch-icon.png +0 -0
  424. package/public-landing/assets/archivo-latin-500-BWmvx2Mg.woff2 +0 -0
  425. package/public-landing/assets/archivo-latin-600-BN-JkNrl.woff2 +0 -0
  426. package/public-landing/assets/index-CA3eEGXO.js +40 -0
  427. package/public-landing/assets/index-naQrQ6Fe.css +1 -0
  428. package/public-landing/assets/jetbrains-mono-latin-400-RruCX7RW.woff2 +0 -0
  429. package/public-landing/assets/newsreader-latin-400-DExrRRrN.woff2 +0 -0
  430. package/public-landing/assets/newsreader-latin-400-italic-b0I-AwbV.woff2 +0 -0
  431. package/public-landing/bots/index.html +156 -0
  432. package/public-landing/contact/index.html +156 -0
  433. package/public-landing/cookies/index.html +156 -0
  434. package/public-landing/demo/limn-walkthrough-poster.jpg +0 -0
  435. package/public-landing/demo/limn-walkthrough.cues.json +44 -0
  436. package/public-landing/demo/limn-walkthrough.mp4 +0 -0
  437. package/public-landing/favicon-16.png +0 -0
  438. package/public-landing/favicon-32.png +0 -0
  439. package/public-landing/favicon-48.png +0 -0
  440. package/public-landing/favicon.svg +5 -0
  441. package/public-landing/features/index.html +156 -0
  442. package/public-landing/for-developers/index.html +156 -0
  443. package/public-landing/for-managers/index.html +156 -0
  444. package/public-landing/how-it-works/index.html +156 -0
  445. package/public-landing/how-we-measure/index.html +156 -0
  446. package/public-landing/icon-192.png +0 -0
  447. package/public-landing/icon-512.png +0 -0
  448. package/public-landing/index.html +156 -0
  449. package/public-landing/insights/index.html +156 -0
  450. package/public-landing/og-image.png +0 -0
  451. package/public-landing/pricing/index.html +156 -0
  452. package/public-landing/privacy/index.html +156 -0
  453. package/public-landing/pro/index.html +156 -0
  454. package/public-landing/reviews/index.html +156 -0
  455. package/public-landing/robots.txt +8 -0
  456. package/public-landing/shots/benchmark.png +0 -0
  457. package/public-landing/shots/bot-roi.png +0 -0
  458. package/public-landing/shots/bot-settings.png +0 -0
  459. package/public-landing/shots/chronology.png +0 -0
  460. package/public-landing/shots/feed.png +0 -0
  461. package/public-landing/shots/flow-metrics.png +0 -0
  462. package/public-landing/shots/free-reports.png +0 -0
  463. package/public-landing/shots/pending-board.png +0 -0
  464. package/public-landing/shots/pending-card.png +0 -0
  465. package/public-landing/shots/period-report.png +0 -0
  466. package/public-landing/shots/pr-detail.png +0 -0
  467. package/public-landing/shots/pr-threads.png +0 -0
  468. package/public-landing/shots/reach.png +0 -0
  469. package/public-landing/shots/repo-rows.png +0 -0
  470. package/public-landing/shots/severity-findings.png +0 -0
  471. package/public-landing/shots/severity-strip.png +0 -0
  472. package/public-landing/site.webmanifest +14 -0
  473. package/public-landing/sitemap.xml +51 -0
  474. package/public-landing/terms/index.html +156 -0
@@ -0,0 +1,2182 @@
1
+ {
2
+ "id": "f40688ee-c2fd-4770-925d-d50ecb5c1ba2",
3
+ "prevId": "2f52e0db-b987-4652-a6f7-24be52bcd9eb",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.accounts": {
8
+ "name": "accounts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "serial",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "github_user_id": {
18
+ "name": "github_user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "github_login": {
24
+ "name": "github_login",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "avatar_url": {
30
+ "name": "avatar_url",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "access_token_enc": {
36
+ "name": "access_token_enc",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "is_local": {
42
+ "name": "is_local",
43
+ "type": "boolean",
44
+ "primaryKey": false,
45
+ "notNull": true,
46
+ "default": false
47
+ },
48
+ "created_at": {
49
+ "name": "created_at",
50
+ "type": "timestamp with time zone",
51
+ "primaryKey": false,
52
+ "notNull": true,
53
+ "default": "now()"
54
+ },
55
+ "last_login_at": {
56
+ "name": "last_login_at",
57
+ "type": "timestamp with time zone",
58
+ "primaryKey": false,
59
+ "notNull": false
60
+ }
61
+ },
62
+ "indexes": {},
63
+ "foreignKeys": {},
64
+ "compositePrimaryKeys": {},
65
+ "uniqueConstraints": {
66
+ "accounts_github_user_id_unique": {
67
+ "name": "accounts_github_user_id_unique",
68
+ "nullsNotDistinct": false,
69
+ "columns": [
70
+ "github_user_id"
71
+ ]
72
+ }
73
+ },
74
+ "policies": {},
75
+ "checkConstraints": {},
76
+ "isRLSEnabled": false
77
+ },
78
+ "public.claude_review_findings": {
79
+ "name": "claude_review_findings",
80
+ "schema": "",
81
+ "columns": {
82
+ "id": {
83
+ "name": "id",
84
+ "type": "serial",
85
+ "primaryKey": true,
86
+ "notNull": true
87
+ },
88
+ "review_id": {
89
+ "name": "review_id",
90
+ "type": "integer",
91
+ "primaryKey": false,
92
+ "notNull": true
93
+ },
94
+ "path": {
95
+ "name": "path",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": true
99
+ },
100
+ "line": {
101
+ "name": "line",
102
+ "type": "integer",
103
+ "primaryKey": false,
104
+ "notNull": false
105
+ },
106
+ "side": {
107
+ "name": "side",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "default": "'RIGHT'"
112
+ },
113
+ "severity": {
114
+ "name": "severity",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true
118
+ },
119
+ "title": {
120
+ "name": "title",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": true
124
+ },
125
+ "body": {
126
+ "name": "body",
127
+ "type": "text",
128
+ "primaryKey": false,
129
+ "notNull": true
130
+ },
131
+ "edited_body": {
132
+ "name": "edited_body",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": false
136
+ },
137
+ "suggestion": {
138
+ "name": "suggestion",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": false
142
+ },
143
+ "diff_hunk": {
144
+ "name": "diff_hunk",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": false
148
+ },
149
+ "anchored": {
150
+ "name": "anchored",
151
+ "type": "boolean",
152
+ "primaryKey": false,
153
+ "notNull": true,
154
+ "default": true
155
+ },
156
+ "included": {
157
+ "name": "included",
158
+ "type": "boolean",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "default": false
162
+ },
163
+ "posted_at": {
164
+ "name": "posted_at",
165
+ "type": "timestamp with time zone",
166
+ "primaryKey": false,
167
+ "notNull": false
168
+ },
169
+ "github_comment_id": {
170
+ "name": "github_comment_id",
171
+ "type": "text",
172
+ "primaryKey": false,
173
+ "notNull": false
174
+ },
175
+ "created_at": {
176
+ "name": "created_at",
177
+ "type": "timestamp with time zone",
178
+ "primaryKey": false,
179
+ "notNull": true,
180
+ "default": "now()"
181
+ }
182
+ },
183
+ "indexes": {
184
+ "crf_review_idx": {
185
+ "name": "crf_review_idx",
186
+ "columns": [
187
+ {
188
+ "expression": "review_id",
189
+ "isExpression": false,
190
+ "asc": true,
191
+ "nulls": "last"
192
+ }
193
+ ],
194
+ "isUnique": false,
195
+ "concurrently": false,
196
+ "method": "btree",
197
+ "with": {}
198
+ }
199
+ },
200
+ "foreignKeys": {
201
+ "claude_review_findings_review_id_claude_reviews_id_fk": {
202
+ "name": "claude_review_findings_review_id_claude_reviews_id_fk",
203
+ "tableFrom": "claude_review_findings",
204
+ "tableTo": "claude_reviews",
205
+ "columnsFrom": [
206
+ "review_id"
207
+ ],
208
+ "columnsTo": [
209
+ "id"
210
+ ],
211
+ "onDelete": "no action",
212
+ "onUpdate": "no action"
213
+ }
214
+ },
215
+ "compositePrimaryKeys": {},
216
+ "uniqueConstraints": {},
217
+ "policies": {},
218
+ "checkConstraints": {},
219
+ "isRLSEnabled": false
220
+ },
221
+ "public.claude_reviews": {
222
+ "name": "claude_reviews",
223
+ "schema": "",
224
+ "columns": {
225
+ "id": {
226
+ "name": "id",
227
+ "type": "serial",
228
+ "primaryKey": true,
229
+ "notNull": true
230
+ },
231
+ "account_id": {
232
+ "name": "account_id",
233
+ "type": "integer",
234
+ "primaryKey": false,
235
+ "notNull": true
236
+ },
237
+ "pr_id": {
238
+ "name": "pr_id",
239
+ "type": "integer",
240
+ "primaryKey": false,
241
+ "notNull": true
242
+ },
243
+ "head_sha": {
244
+ "name": "head_sha",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": true
248
+ },
249
+ "status": {
250
+ "name": "status",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": true
254
+ },
255
+ "model": {
256
+ "name": "model",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": true
260
+ },
261
+ "scope": {
262
+ "name": "scope",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": false
266
+ },
267
+ "review_mode": {
268
+ "name": "review_mode",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": false
272
+ },
273
+ "route_reason": {
274
+ "name": "route_reason",
275
+ "type": "jsonb",
276
+ "primaryKey": false,
277
+ "notNull": false
278
+ },
279
+ "summary": {
280
+ "name": "summary",
281
+ "type": "text",
282
+ "primaryKey": false,
283
+ "notNull": false
284
+ },
285
+ "verdict": {
286
+ "name": "verdict",
287
+ "type": "text",
288
+ "primaryKey": false,
289
+ "notNull": false
290
+ },
291
+ "user_body": {
292
+ "name": "user_body",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": false
296
+ },
297
+ "user_verdict": {
298
+ "name": "user_verdict",
299
+ "type": "text",
300
+ "primaryKey": false,
301
+ "notNull": false
302
+ },
303
+ "cost_usd": {
304
+ "name": "cost_usd",
305
+ "type": "double precision",
306
+ "primaryKey": false,
307
+ "notNull": false
308
+ },
309
+ "input_tokens": {
310
+ "name": "input_tokens",
311
+ "type": "integer",
312
+ "primaryKey": false,
313
+ "notNull": false
314
+ },
315
+ "output_tokens": {
316
+ "name": "output_tokens",
317
+ "type": "integer",
318
+ "primaryKey": false,
319
+ "notNull": false
320
+ },
321
+ "num_turns": {
322
+ "name": "num_turns",
323
+ "type": "integer",
324
+ "primaryKey": false,
325
+ "notNull": false
326
+ },
327
+ "error": {
328
+ "name": "error",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": false
332
+ },
333
+ "excluded_files": {
334
+ "name": "excluded_files",
335
+ "type": "jsonb",
336
+ "primaryKey": false,
337
+ "notNull": false
338
+ },
339
+ "posted_review_id": {
340
+ "name": "posted_review_id",
341
+ "type": "text",
342
+ "primaryKey": false,
343
+ "notNull": false
344
+ },
345
+ "posted_at": {
346
+ "name": "posted_at",
347
+ "type": "timestamp with time zone",
348
+ "primaryKey": false,
349
+ "notNull": false
350
+ },
351
+ "created_at": {
352
+ "name": "created_at",
353
+ "type": "timestamp with time zone",
354
+ "primaryKey": false,
355
+ "notNull": true,
356
+ "default": "now()"
357
+ },
358
+ "finished_at": {
359
+ "name": "finished_at",
360
+ "type": "timestamp with time zone",
361
+ "primaryKey": false,
362
+ "notNull": false
363
+ }
364
+ },
365
+ "indexes": {
366
+ "cr_pr_idx": {
367
+ "name": "cr_pr_idx",
368
+ "columns": [
369
+ {
370
+ "expression": "pr_id",
371
+ "isExpression": false,
372
+ "asc": true,
373
+ "nulls": "last"
374
+ }
375
+ ],
376
+ "isUnique": false,
377
+ "concurrently": false,
378
+ "method": "btree",
379
+ "with": {}
380
+ },
381
+ "cr_pr_sha_idx": {
382
+ "name": "cr_pr_sha_idx",
383
+ "columns": [
384
+ {
385
+ "expression": "pr_id",
386
+ "isExpression": false,
387
+ "asc": true,
388
+ "nulls": "last"
389
+ },
390
+ {
391
+ "expression": "head_sha",
392
+ "isExpression": false,
393
+ "asc": true,
394
+ "nulls": "last"
395
+ }
396
+ ],
397
+ "isUnique": false,
398
+ "concurrently": false,
399
+ "method": "btree",
400
+ "with": {}
401
+ },
402
+ "cr_account_idx": {
403
+ "name": "cr_account_idx",
404
+ "columns": [
405
+ {
406
+ "expression": "account_id",
407
+ "isExpression": false,
408
+ "asc": true,
409
+ "nulls": "last"
410
+ }
411
+ ],
412
+ "isUnique": false,
413
+ "concurrently": false,
414
+ "method": "btree",
415
+ "with": {}
416
+ }
417
+ },
418
+ "foreignKeys": {
419
+ "claude_reviews_account_id_accounts_id_fk": {
420
+ "name": "claude_reviews_account_id_accounts_id_fk",
421
+ "tableFrom": "claude_reviews",
422
+ "tableTo": "accounts",
423
+ "columnsFrom": [
424
+ "account_id"
425
+ ],
426
+ "columnsTo": [
427
+ "id"
428
+ ],
429
+ "onDelete": "no action",
430
+ "onUpdate": "no action"
431
+ },
432
+ "claude_reviews_pr_id_pull_requests_id_fk": {
433
+ "name": "claude_reviews_pr_id_pull_requests_id_fk",
434
+ "tableFrom": "claude_reviews",
435
+ "tableTo": "pull_requests",
436
+ "columnsFrom": [
437
+ "pr_id"
438
+ ],
439
+ "columnsTo": [
440
+ "id"
441
+ ],
442
+ "onDelete": "no action",
443
+ "onUpdate": "no action"
444
+ }
445
+ },
446
+ "compositePrimaryKeys": {},
447
+ "uniqueConstraints": {},
448
+ "policies": {},
449
+ "checkConstraints": {},
450
+ "isRLSEnabled": false
451
+ },
452
+ "public.commit_files": {
453
+ "name": "commit_files",
454
+ "schema": "",
455
+ "columns": {
456
+ "sha": {
457
+ "name": "sha",
458
+ "type": "text",
459
+ "primaryKey": true,
460
+ "notNull": true
461
+ },
462
+ "paths": {
463
+ "name": "paths",
464
+ "type": "jsonb",
465
+ "primaryKey": false,
466
+ "notNull": true
467
+ },
468
+ "fetched_at": {
469
+ "name": "fetched_at",
470
+ "type": "timestamp with time zone",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "default": "now()"
474
+ }
475
+ },
476
+ "indexes": {},
477
+ "foreignKeys": {},
478
+ "compositePrimaryKeys": {},
479
+ "uniqueConstraints": {},
480
+ "policies": {},
481
+ "checkConstraints": {},
482
+ "isRLSEnabled": false
483
+ },
484
+ "public.commits": {
485
+ "name": "commits",
486
+ "schema": "",
487
+ "columns": {
488
+ "id": {
489
+ "name": "id",
490
+ "type": "serial",
491
+ "primaryKey": true,
492
+ "notNull": true
493
+ },
494
+ "sha": {
495
+ "name": "sha",
496
+ "type": "text",
497
+ "primaryKey": false,
498
+ "notNull": true
499
+ },
500
+ "pr_id": {
501
+ "name": "pr_id",
502
+ "type": "integer",
503
+ "primaryKey": false,
504
+ "notNull": true
505
+ },
506
+ "author_id": {
507
+ "name": "author_id",
508
+ "type": "integer",
509
+ "primaryKey": false,
510
+ "notNull": false
511
+ },
512
+ "committer_id": {
513
+ "name": "committer_id",
514
+ "type": "integer",
515
+ "primaryKey": false,
516
+ "notNull": false
517
+ },
518
+ "message": {
519
+ "name": "message",
520
+ "type": "text",
521
+ "primaryKey": false,
522
+ "notNull": false
523
+ },
524
+ "committed_at": {
525
+ "name": "committed_at",
526
+ "type": "timestamp with time zone",
527
+ "primaryKey": false,
528
+ "notNull": true
529
+ }
530
+ },
531
+ "indexes": {
532
+ "commit_pr_idx": {
533
+ "name": "commit_pr_idx",
534
+ "columns": [
535
+ {
536
+ "expression": "pr_id",
537
+ "isExpression": false,
538
+ "asc": true,
539
+ "nulls": "last"
540
+ }
541
+ ],
542
+ "isUnique": false,
543
+ "concurrently": false,
544
+ "method": "btree",
545
+ "with": {}
546
+ },
547
+ "commit_sha_pr_ux": {
548
+ "name": "commit_sha_pr_ux",
549
+ "columns": [
550
+ {
551
+ "expression": "sha",
552
+ "isExpression": false,
553
+ "asc": true,
554
+ "nulls": "last"
555
+ },
556
+ {
557
+ "expression": "pr_id",
558
+ "isExpression": false,
559
+ "asc": true,
560
+ "nulls": "last"
561
+ }
562
+ ],
563
+ "isUnique": true,
564
+ "concurrently": false,
565
+ "method": "btree",
566
+ "with": {}
567
+ }
568
+ },
569
+ "foreignKeys": {
570
+ "commits_pr_id_pull_requests_id_fk": {
571
+ "name": "commits_pr_id_pull_requests_id_fk",
572
+ "tableFrom": "commits",
573
+ "tableTo": "pull_requests",
574
+ "columnsFrom": [
575
+ "pr_id"
576
+ ],
577
+ "columnsTo": [
578
+ "id"
579
+ ],
580
+ "onDelete": "no action",
581
+ "onUpdate": "no action"
582
+ },
583
+ "commits_author_id_users_id_fk": {
584
+ "name": "commits_author_id_users_id_fk",
585
+ "tableFrom": "commits",
586
+ "tableTo": "users",
587
+ "columnsFrom": [
588
+ "author_id"
589
+ ],
590
+ "columnsTo": [
591
+ "id"
592
+ ],
593
+ "onDelete": "no action",
594
+ "onUpdate": "no action"
595
+ },
596
+ "commits_committer_id_users_id_fk": {
597
+ "name": "commits_committer_id_users_id_fk",
598
+ "tableFrom": "commits",
599
+ "tableTo": "users",
600
+ "columnsFrom": [
601
+ "committer_id"
602
+ ],
603
+ "columnsTo": [
604
+ "id"
605
+ ],
606
+ "onDelete": "no action",
607
+ "onUpdate": "no action"
608
+ }
609
+ },
610
+ "compositePrimaryKeys": {},
611
+ "uniqueConstraints": {},
612
+ "policies": {},
613
+ "checkConstraints": {},
614
+ "isRLSEnabled": false
615
+ },
616
+ "public.events": {
617
+ "name": "events",
618
+ "schema": "",
619
+ "columns": {
620
+ "id": {
621
+ "name": "id",
622
+ "type": "serial",
623
+ "primaryKey": true,
624
+ "notNull": true
625
+ },
626
+ "account_id": {
627
+ "name": "account_id",
628
+ "type": "integer",
629
+ "primaryKey": false,
630
+ "notNull": true
631
+ },
632
+ "repo_id": {
633
+ "name": "repo_id",
634
+ "type": "integer",
635
+ "primaryKey": false,
636
+ "notNull": true
637
+ },
638
+ "actor_id": {
639
+ "name": "actor_id",
640
+ "type": "integer",
641
+ "primaryKey": false,
642
+ "notNull": false
643
+ },
644
+ "pr_id": {
645
+ "name": "pr_id",
646
+ "type": "integer",
647
+ "primaryKey": false,
648
+ "notNull": false
649
+ },
650
+ "type": {
651
+ "name": "type",
652
+ "type": "text",
653
+ "primaryKey": false,
654
+ "notNull": true
655
+ },
656
+ "occurred_at": {
657
+ "name": "occurred_at",
658
+ "type": "timestamp with time zone",
659
+ "primaryKey": false,
660
+ "notNull": true
661
+ },
662
+ "ref_table": {
663
+ "name": "ref_table",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": false
667
+ },
668
+ "ref_id": {
669
+ "name": "ref_id",
670
+ "type": "integer",
671
+ "primaryKey": false,
672
+ "notNull": false
673
+ },
674
+ "dedupe_key": {
675
+ "name": "dedupe_key",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true
679
+ }
680
+ },
681
+ "indexes": {
682
+ "events_time_idx": {
683
+ "name": "events_time_idx",
684
+ "columns": [
685
+ {
686
+ "expression": "occurred_at",
687
+ "isExpression": false,
688
+ "asc": true,
689
+ "nulls": "last"
690
+ }
691
+ ],
692
+ "isUnique": false,
693
+ "concurrently": false,
694
+ "method": "btree",
695
+ "with": {}
696
+ },
697
+ "events_repo_time_idx": {
698
+ "name": "events_repo_time_idx",
699
+ "columns": [
700
+ {
701
+ "expression": "repo_id",
702
+ "isExpression": false,
703
+ "asc": true,
704
+ "nulls": "last"
705
+ },
706
+ {
707
+ "expression": "occurred_at",
708
+ "isExpression": false,
709
+ "asc": true,
710
+ "nulls": "last"
711
+ }
712
+ ],
713
+ "isUnique": false,
714
+ "concurrently": false,
715
+ "method": "btree",
716
+ "with": {}
717
+ },
718
+ "events_actor_idx": {
719
+ "name": "events_actor_idx",
720
+ "columns": [
721
+ {
722
+ "expression": "actor_id",
723
+ "isExpression": false,
724
+ "asc": true,
725
+ "nulls": "last"
726
+ }
727
+ ],
728
+ "isUnique": false,
729
+ "concurrently": false,
730
+ "method": "btree",
731
+ "with": {}
732
+ },
733
+ "events_account_idx": {
734
+ "name": "events_account_idx",
735
+ "columns": [
736
+ {
737
+ "expression": "account_id",
738
+ "isExpression": false,
739
+ "asc": true,
740
+ "nulls": "last"
741
+ }
742
+ ],
743
+ "isUnique": false,
744
+ "concurrently": false,
745
+ "method": "btree",
746
+ "with": {}
747
+ },
748
+ "events_account_dedupe": {
749
+ "name": "events_account_dedupe",
750
+ "columns": [
751
+ {
752
+ "expression": "account_id",
753
+ "isExpression": false,
754
+ "asc": true,
755
+ "nulls": "last"
756
+ },
757
+ {
758
+ "expression": "dedupe_key",
759
+ "isExpression": false,
760
+ "asc": true,
761
+ "nulls": "last"
762
+ }
763
+ ],
764
+ "isUnique": true,
765
+ "concurrently": false,
766
+ "method": "btree",
767
+ "with": {}
768
+ }
769
+ },
770
+ "foreignKeys": {
771
+ "events_account_id_accounts_id_fk": {
772
+ "name": "events_account_id_accounts_id_fk",
773
+ "tableFrom": "events",
774
+ "tableTo": "accounts",
775
+ "columnsFrom": [
776
+ "account_id"
777
+ ],
778
+ "columnsTo": [
779
+ "id"
780
+ ],
781
+ "onDelete": "no action",
782
+ "onUpdate": "no action"
783
+ },
784
+ "events_repo_id_repos_id_fk": {
785
+ "name": "events_repo_id_repos_id_fk",
786
+ "tableFrom": "events",
787
+ "tableTo": "repos",
788
+ "columnsFrom": [
789
+ "repo_id"
790
+ ],
791
+ "columnsTo": [
792
+ "id"
793
+ ],
794
+ "onDelete": "no action",
795
+ "onUpdate": "no action"
796
+ },
797
+ "events_actor_id_users_id_fk": {
798
+ "name": "events_actor_id_users_id_fk",
799
+ "tableFrom": "events",
800
+ "tableTo": "users",
801
+ "columnsFrom": [
802
+ "actor_id"
803
+ ],
804
+ "columnsTo": [
805
+ "id"
806
+ ],
807
+ "onDelete": "no action",
808
+ "onUpdate": "no action"
809
+ },
810
+ "events_pr_id_pull_requests_id_fk": {
811
+ "name": "events_pr_id_pull_requests_id_fk",
812
+ "tableFrom": "events",
813
+ "tableTo": "pull_requests",
814
+ "columnsFrom": [
815
+ "pr_id"
816
+ ],
817
+ "columnsTo": [
818
+ "id"
819
+ ],
820
+ "onDelete": "no action",
821
+ "onUpdate": "no action"
822
+ }
823
+ },
824
+ "compositePrimaryKeys": {},
825
+ "uniqueConstraints": {},
826
+ "policies": {},
827
+ "checkConstraints": {},
828
+ "isRLSEnabled": false
829
+ },
830
+ "public.my_turn_dismissals": {
831
+ "name": "my_turn_dismissals",
832
+ "schema": "",
833
+ "columns": {
834
+ "id": {
835
+ "name": "id",
836
+ "type": "serial",
837
+ "primaryKey": true,
838
+ "notNull": true
839
+ },
840
+ "account_id": {
841
+ "name": "account_id",
842
+ "type": "integer",
843
+ "primaryKey": false,
844
+ "notNull": true
845
+ },
846
+ "kind": {
847
+ "name": "kind",
848
+ "type": "text",
849
+ "primaryKey": false,
850
+ "notNull": true
851
+ },
852
+ "ref_id": {
853
+ "name": "ref_id",
854
+ "type": "integer",
855
+ "primaryKey": false,
856
+ "notNull": true
857
+ },
858
+ "dismissed_at": {
859
+ "name": "dismissed_at",
860
+ "type": "timestamp with time zone",
861
+ "primaryKey": false,
862
+ "notNull": true
863
+ }
864
+ },
865
+ "indexes": {
866
+ "mtd_kind_ref_ux": {
867
+ "name": "mtd_kind_ref_ux",
868
+ "columns": [
869
+ {
870
+ "expression": "kind",
871
+ "isExpression": false,
872
+ "asc": true,
873
+ "nulls": "last"
874
+ },
875
+ {
876
+ "expression": "ref_id",
877
+ "isExpression": false,
878
+ "asc": true,
879
+ "nulls": "last"
880
+ }
881
+ ],
882
+ "isUnique": true,
883
+ "concurrently": false,
884
+ "method": "btree",
885
+ "with": {}
886
+ },
887
+ "mtd_account_idx": {
888
+ "name": "mtd_account_idx",
889
+ "columns": [
890
+ {
891
+ "expression": "account_id",
892
+ "isExpression": false,
893
+ "asc": true,
894
+ "nulls": "last"
895
+ }
896
+ ],
897
+ "isUnique": false,
898
+ "concurrently": false,
899
+ "method": "btree",
900
+ "with": {}
901
+ }
902
+ },
903
+ "foreignKeys": {
904
+ "my_turn_dismissals_account_id_accounts_id_fk": {
905
+ "name": "my_turn_dismissals_account_id_accounts_id_fk",
906
+ "tableFrom": "my_turn_dismissals",
907
+ "tableTo": "accounts",
908
+ "columnsFrom": [
909
+ "account_id"
910
+ ],
911
+ "columnsTo": [
912
+ "id"
913
+ ],
914
+ "onDelete": "no action",
915
+ "onUpdate": "no action"
916
+ }
917
+ },
918
+ "compositePrimaryKeys": {},
919
+ "uniqueConstraints": {},
920
+ "policies": {},
921
+ "checkConstraints": {},
922
+ "isRLSEnabled": false
923
+ },
924
+ "public.pr_comments": {
925
+ "name": "pr_comments",
926
+ "schema": "",
927
+ "columns": {
928
+ "id": {
929
+ "name": "id",
930
+ "type": "serial",
931
+ "primaryKey": true,
932
+ "notNull": true
933
+ },
934
+ "github_node_id": {
935
+ "name": "github_node_id",
936
+ "type": "text",
937
+ "primaryKey": false,
938
+ "notNull": true
939
+ },
940
+ "pr_id": {
941
+ "name": "pr_id",
942
+ "type": "integer",
943
+ "primaryKey": false,
944
+ "notNull": true
945
+ },
946
+ "author_id": {
947
+ "name": "author_id",
948
+ "type": "integer",
949
+ "primaryKey": false,
950
+ "notNull": false
951
+ },
952
+ "body": {
953
+ "name": "body",
954
+ "type": "text",
955
+ "primaryKey": false,
956
+ "notNull": false
957
+ },
958
+ "database_id": {
959
+ "name": "database_id",
960
+ "type": "text",
961
+ "primaryKey": false,
962
+ "notNull": false
963
+ },
964
+ "created_at": {
965
+ "name": "created_at",
966
+ "type": "timestamp with time zone",
967
+ "primaryKey": false,
968
+ "notNull": true
969
+ }
970
+ },
971
+ "indexes": {
972
+ "prc_pr_idx": {
973
+ "name": "prc_pr_idx",
974
+ "columns": [
975
+ {
976
+ "expression": "pr_id",
977
+ "isExpression": false,
978
+ "asc": true,
979
+ "nulls": "last"
980
+ }
981
+ ],
982
+ "isUnique": false,
983
+ "concurrently": false,
984
+ "method": "btree",
985
+ "with": {}
986
+ },
987
+ "prc_pr_node": {
988
+ "name": "prc_pr_node",
989
+ "columns": [
990
+ {
991
+ "expression": "pr_id",
992
+ "isExpression": false,
993
+ "asc": true,
994
+ "nulls": "last"
995
+ },
996
+ {
997
+ "expression": "github_node_id",
998
+ "isExpression": false,
999
+ "asc": true,
1000
+ "nulls": "last"
1001
+ }
1002
+ ],
1003
+ "isUnique": true,
1004
+ "concurrently": false,
1005
+ "method": "btree",
1006
+ "with": {}
1007
+ }
1008
+ },
1009
+ "foreignKeys": {
1010
+ "pr_comments_pr_id_pull_requests_id_fk": {
1011
+ "name": "pr_comments_pr_id_pull_requests_id_fk",
1012
+ "tableFrom": "pr_comments",
1013
+ "tableTo": "pull_requests",
1014
+ "columnsFrom": [
1015
+ "pr_id"
1016
+ ],
1017
+ "columnsTo": [
1018
+ "id"
1019
+ ],
1020
+ "onDelete": "no action",
1021
+ "onUpdate": "no action"
1022
+ },
1023
+ "pr_comments_author_id_users_id_fk": {
1024
+ "name": "pr_comments_author_id_users_id_fk",
1025
+ "tableFrom": "pr_comments",
1026
+ "tableTo": "users",
1027
+ "columnsFrom": [
1028
+ "author_id"
1029
+ ],
1030
+ "columnsTo": [
1031
+ "id"
1032
+ ],
1033
+ "onDelete": "no action",
1034
+ "onUpdate": "no action"
1035
+ }
1036
+ },
1037
+ "compositePrimaryKeys": {},
1038
+ "uniqueConstraints": {},
1039
+ "policies": {},
1040
+ "checkConstraints": {},
1041
+ "isRLSEnabled": false
1042
+ },
1043
+ "public.pr_views": {
1044
+ "name": "pr_views",
1045
+ "schema": "",
1046
+ "columns": {
1047
+ "pr_id": {
1048
+ "name": "pr_id",
1049
+ "type": "integer",
1050
+ "primaryKey": true,
1051
+ "notNull": true
1052
+ },
1053
+ "last_viewed_sha": {
1054
+ "name": "last_viewed_sha",
1055
+ "type": "text",
1056
+ "primaryKey": false,
1057
+ "notNull": false
1058
+ },
1059
+ "last_viewed_at": {
1060
+ "name": "last_viewed_at",
1061
+ "type": "timestamp with time zone",
1062
+ "primaryKey": false,
1063
+ "notNull": true
1064
+ }
1065
+ },
1066
+ "indexes": {},
1067
+ "foreignKeys": {
1068
+ "pr_views_pr_id_pull_requests_id_fk": {
1069
+ "name": "pr_views_pr_id_pull_requests_id_fk",
1070
+ "tableFrom": "pr_views",
1071
+ "tableTo": "pull_requests",
1072
+ "columnsFrom": [
1073
+ "pr_id"
1074
+ ],
1075
+ "columnsTo": [
1076
+ "id"
1077
+ ],
1078
+ "onDelete": "no action",
1079
+ "onUpdate": "no action"
1080
+ }
1081
+ },
1082
+ "compositePrimaryKeys": {},
1083
+ "uniqueConstraints": {},
1084
+ "policies": {},
1085
+ "checkConstraints": {},
1086
+ "isRLSEnabled": false
1087
+ },
1088
+ "public.pull_requests": {
1089
+ "name": "pull_requests",
1090
+ "schema": "",
1091
+ "columns": {
1092
+ "id": {
1093
+ "name": "id",
1094
+ "type": "serial",
1095
+ "primaryKey": true,
1096
+ "notNull": true
1097
+ },
1098
+ "github_node_id": {
1099
+ "name": "github_node_id",
1100
+ "type": "text",
1101
+ "primaryKey": false,
1102
+ "notNull": true
1103
+ },
1104
+ "account_id": {
1105
+ "name": "account_id",
1106
+ "type": "integer",
1107
+ "primaryKey": false,
1108
+ "notNull": true
1109
+ },
1110
+ "repo_id": {
1111
+ "name": "repo_id",
1112
+ "type": "integer",
1113
+ "primaryKey": false,
1114
+ "notNull": true
1115
+ },
1116
+ "number": {
1117
+ "name": "number",
1118
+ "type": "integer",
1119
+ "primaryKey": false,
1120
+ "notNull": true
1121
+ },
1122
+ "title": {
1123
+ "name": "title",
1124
+ "type": "text",
1125
+ "primaryKey": false,
1126
+ "notNull": true
1127
+ },
1128
+ "body": {
1129
+ "name": "body",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": false
1133
+ },
1134
+ "author_id": {
1135
+ "name": "author_id",
1136
+ "type": "integer",
1137
+ "primaryKey": false,
1138
+ "notNull": false
1139
+ },
1140
+ "merged_by_id": {
1141
+ "name": "merged_by_id",
1142
+ "type": "integer",
1143
+ "primaryKey": false,
1144
+ "notNull": false
1145
+ },
1146
+ "base_ref_name": {
1147
+ "name": "base_ref_name",
1148
+ "type": "text",
1149
+ "primaryKey": false,
1150
+ "notNull": false
1151
+ },
1152
+ "state": {
1153
+ "name": "state",
1154
+ "type": "text",
1155
+ "primaryKey": false,
1156
+ "notNull": true
1157
+ },
1158
+ "is_draft": {
1159
+ "name": "is_draft",
1160
+ "type": "boolean",
1161
+ "primaryKey": false,
1162
+ "notNull": true,
1163
+ "default": false
1164
+ },
1165
+ "opened_at": {
1166
+ "name": "opened_at",
1167
+ "type": "timestamp with time zone",
1168
+ "primaryKey": false,
1169
+ "notNull": true
1170
+ },
1171
+ "first_review_at": {
1172
+ "name": "first_review_at",
1173
+ "type": "timestamp with time zone",
1174
+ "primaryKey": false,
1175
+ "notNull": false
1176
+ },
1177
+ "last_commit_at": {
1178
+ "name": "last_commit_at",
1179
+ "type": "timestamp with time zone",
1180
+ "primaryKey": false,
1181
+ "notNull": false
1182
+ },
1183
+ "merged_at": {
1184
+ "name": "merged_at",
1185
+ "type": "timestamp with time zone",
1186
+ "primaryKey": false,
1187
+ "notNull": false
1188
+ },
1189
+ "closed_at": {
1190
+ "name": "closed_at",
1191
+ "type": "timestamp with time zone",
1192
+ "primaryKey": false,
1193
+ "notNull": false
1194
+ },
1195
+ "updated_at": {
1196
+ "name": "updated_at",
1197
+ "type": "timestamp with time zone",
1198
+ "primaryKey": false,
1199
+ "notNull": true
1200
+ },
1201
+ "head_sha": {
1202
+ "name": "head_sha",
1203
+ "type": "text",
1204
+ "primaryKey": false,
1205
+ "notNull": false
1206
+ },
1207
+ "ci_status": {
1208
+ "name": "ci_status",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": false
1212
+ },
1213
+ "mergeable": {
1214
+ "name": "mergeable",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": false
1218
+ },
1219
+ "merge_state_status": {
1220
+ "name": "merge_state_status",
1221
+ "type": "text",
1222
+ "primaryKey": false,
1223
+ "notNull": false
1224
+ },
1225
+ "labels": {
1226
+ "name": "labels",
1227
+ "type": "jsonb",
1228
+ "primaryKey": false,
1229
+ "notNull": false
1230
+ },
1231
+ "check_runs": {
1232
+ "name": "check_runs",
1233
+ "type": "jsonb",
1234
+ "primaryKey": false,
1235
+ "notNull": false
1236
+ },
1237
+ "additions": {
1238
+ "name": "additions",
1239
+ "type": "integer",
1240
+ "primaryKey": false,
1241
+ "notNull": true,
1242
+ "default": 0
1243
+ },
1244
+ "deletions": {
1245
+ "name": "deletions",
1246
+ "type": "integer",
1247
+ "primaryKey": false,
1248
+ "notNull": true,
1249
+ "default": 0
1250
+ },
1251
+ "changed_files": {
1252
+ "name": "changed_files",
1253
+ "type": "integer",
1254
+ "primaryKey": false,
1255
+ "notNull": true,
1256
+ "default": 0
1257
+ },
1258
+ "files": {
1259
+ "name": "files",
1260
+ "type": "jsonb",
1261
+ "primaryKey": false,
1262
+ "notNull": false
1263
+ }
1264
+ },
1265
+ "indexes": {
1266
+ "pr_repo_idx": {
1267
+ "name": "pr_repo_idx",
1268
+ "columns": [
1269
+ {
1270
+ "expression": "repo_id",
1271
+ "isExpression": false,
1272
+ "asc": true,
1273
+ "nulls": "last"
1274
+ }
1275
+ ],
1276
+ "isUnique": false,
1277
+ "concurrently": false,
1278
+ "method": "btree",
1279
+ "with": {}
1280
+ },
1281
+ "pr_opened_idx": {
1282
+ "name": "pr_opened_idx",
1283
+ "columns": [
1284
+ {
1285
+ "expression": "opened_at",
1286
+ "isExpression": false,
1287
+ "asc": true,
1288
+ "nulls": "last"
1289
+ }
1290
+ ],
1291
+ "isUnique": false,
1292
+ "concurrently": false,
1293
+ "method": "btree",
1294
+ "with": {}
1295
+ },
1296
+ "pr_account_idx": {
1297
+ "name": "pr_account_idx",
1298
+ "columns": [
1299
+ {
1300
+ "expression": "account_id",
1301
+ "isExpression": false,
1302
+ "asc": true,
1303
+ "nulls": "last"
1304
+ }
1305
+ ],
1306
+ "isUnique": false,
1307
+ "concurrently": false,
1308
+ "method": "btree",
1309
+ "with": {}
1310
+ },
1311
+ "pr_account_node": {
1312
+ "name": "pr_account_node",
1313
+ "columns": [
1314
+ {
1315
+ "expression": "account_id",
1316
+ "isExpression": false,
1317
+ "asc": true,
1318
+ "nulls": "last"
1319
+ },
1320
+ {
1321
+ "expression": "github_node_id",
1322
+ "isExpression": false,
1323
+ "asc": true,
1324
+ "nulls": "last"
1325
+ }
1326
+ ],
1327
+ "isUnique": true,
1328
+ "concurrently": false,
1329
+ "method": "btree",
1330
+ "with": {}
1331
+ }
1332
+ },
1333
+ "foreignKeys": {
1334
+ "pull_requests_account_id_accounts_id_fk": {
1335
+ "name": "pull_requests_account_id_accounts_id_fk",
1336
+ "tableFrom": "pull_requests",
1337
+ "tableTo": "accounts",
1338
+ "columnsFrom": [
1339
+ "account_id"
1340
+ ],
1341
+ "columnsTo": [
1342
+ "id"
1343
+ ],
1344
+ "onDelete": "no action",
1345
+ "onUpdate": "no action"
1346
+ },
1347
+ "pull_requests_repo_id_repos_id_fk": {
1348
+ "name": "pull_requests_repo_id_repos_id_fk",
1349
+ "tableFrom": "pull_requests",
1350
+ "tableTo": "repos",
1351
+ "columnsFrom": [
1352
+ "repo_id"
1353
+ ],
1354
+ "columnsTo": [
1355
+ "id"
1356
+ ],
1357
+ "onDelete": "no action",
1358
+ "onUpdate": "no action"
1359
+ },
1360
+ "pull_requests_author_id_users_id_fk": {
1361
+ "name": "pull_requests_author_id_users_id_fk",
1362
+ "tableFrom": "pull_requests",
1363
+ "tableTo": "users",
1364
+ "columnsFrom": [
1365
+ "author_id"
1366
+ ],
1367
+ "columnsTo": [
1368
+ "id"
1369
+ ],
1370
+ "onDelete": "no action",
1371
+ "onUpdate": "no action"
1372
+ },
1373
+ "pull_requests_merged_by_id_users_id_fk": {
1374
+ "name": "pull_requests_merged_by_id_users_id_fk",
1375
+ "tableFrom": "pull_requests",
1376
+ "tableTo": "users",
1377
+ "columnsFrom": [
1378
+ "merged_by_id"
1379
+ ],
1380
+ "columnsTo": [
1381
+ "id"
1382
+ ],
1383
+ "onDelete": "no action",
1384
+ "onUpdate": "no action"
1385
+ }
1386
+ },
1387
+ "compositePrimaryKeys": {},
1388
+ "uniqueConstraints": {},
1389
+ "policies": {},
1390
+ "checkConstraints": {},
1391
+ "isRLSEnabled": false
1392
+ },
1393
+ "public.repos": {
1394
+ "name": "repos",
1395
+ "schema": "",
1396
+ "columns": {
1397
+ "id": {
1398
+ "name": "id",
1399
+ "type": "serial",
1400
+ "primaryKey": true,
1401
+ "notNull": true
1402
+ },
1403
+ "account_id": {
1404
+ "name": "account_id",
1405
+ "type": "integer",
1406
+ "primaryKey": false,
1407
+ "notNull": true
1408
+ },
1409
+ "owner": {
1410
+ "name": "owner",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": true
1414
+ },
1415
+ "name": {
1416
+ "name": "name",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": true
1420
+ },
1421
+ "github_node_id": {
1422
+ "name": "github_node_id",
1423
+ "type": "text",
1424
+ "primaryKey": false,
1425
+ "notNull": true
1426
+ },
1427
+ "default_branch": {
1428
+ "name": "default_branch",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": false
1432
+ },
1433
+ "backfill_until": {
1434
+ "name": "backfill_until",
1435
+ "type": "timestamp with time zone",
1436
+ "primaryKey": false,
1437
+ "notNull": false
1438
+ },
1439
+ "created_at": {
1440
+ "name": "created_at",
1441
+ "type": "timestamp with time zone",
1442
+ "primaryKey": false,
1443
+ "notNull": true,
1444
+ "default": "now()"
1445
+ }
1446
+ },
1447
+ "indexes": {
1448
+ "repos_account_owner_name": {
1449
+ "name": "repos_account_owner_name",
1450
+ "columns": [
1451
+ {
1452
+ "expression": "account_id",
1453
+ "isExpression": false,
1454
+ "asc": true,
1455
+ "nulls": "last"
1456
+ },
1457
+ {
1458
+ "expression": "owner",
1459
+ "isExpression": false,
1460
+ "asc": true,
1461
+ "nulls": "last"
1462
+ },
1463
+ {
1464
+ "expression": "name",
1465
+ "isExpression": false,
1466
+ "asc": true,
1467
+ "nulls": "last"
1468
+ }
1469
+ ],
1470
+ "isUnique": true,
1471
+ "concurrently": false,
1472
+ "method": "btree",
1473
+ "with": {}
1474
+ },
1475
+ "repos_account_node": {
1476
+ "name": "repos_account_node",
1477
+ "columns": [
1478
+ {
1479
+ "expression": "account_id",
1480
+ "isExpression": false,
1481
+ "asc": true,
1482
+ "nulls": "last"
1483
+ },
1484
+ {
1485
+ "expression": "github_node_id",
1486
+ "isExpression": false,
1487
+ "asc": true,
1488
+ "nulls": "last"
1489
+ }
1490
+ ],
1491
+ "isUnique": true,
1492
+ "concurrently": false,
1493
+ "method": "btree",
1494
+ "with": {}
1495
+ },
1496
+ "repos_account_idx": {
1497
+ "name": "repos_account_idx",
1498
+ "columns": [
1499
+ {
1500
+ "expression": "account_id",
1501
+ "isExpression": false,
1502
+ "asc": true,
1503
+ "nulls": "last"
1504
+ }
1505
+ ],
1506
+ "isUnique": false,
1507
+ "concurrently": false,
1508
+ "method": "btree",
1509
+ "with": {}
1510
+ }
1511
+ },
1512
+ "foreignKeys": {
1513
+ "repos_account_id_accounts_id_fk": {
1514
+ "name": "repos_account_id_accounts_id_fk",
1515
+ "tableFrom": "repos",
1516
+ "tableTo": "accounts",
1517
+ "columnsFrom": [
1518
+ "account_id"
1519
+ ],
1520
+ "columnsTo": [
1521
+ "id"
1522
+ ],
1523
+ "onDelete": "no action",
1524
+ "onUpdate": "no action"
1525
+ }
1526
+ },
1527
+ "compositePrimaryKeys": {},
1528
+ "uniqueConstraints": {},
1529
+ "policies": {},
1530
+ "checkConstraints": {},
1531
+ "isRLSEnabled": false
1532
+ },
1533
+ "public.review_comments": {
1534
+ "name": "review_comments",
1535
+ "schema": "",
1536
+ "columns": {
1537
+ "id": {
1538
+ "name": "id",
1539
+ "type": "serial",
1540
+ "primaryKey": true,
1541
+ "notNull": true
1542
+ },
1543
+ "github_node_id": {
1544
+ "name": "github_node_id",
1545
+ "type": "text",
1546
+ "primaryKey": false,
1547
+ "notNull": true
1548
+ },
1549
+ "thread_id": {
1550
+ "name": "thread_id",
1551
+ "type": "integer",
1552
+ "primaryKey": false,
1553
+ "notNull": true
1554
+ },
1555
+ "pr_id": {
1556
+ "name": "pr_id",
1557
+ "type": "integer",
1558
+ "primaryKey": false,
1559
+ "notNull": true
1560
+ },
1561
+ "author_id": {
1562
+ "name": "author_id",
1563
+ "type": "integer",
1564
+ "primaryKey": false,
1565
+ "notNull": false
1566
+ },
1567
+ "body": {
1568
+ "name": "body",
1569
+ "type": "text",
1570
+ "primaryKey": false,
1571
+ "notNull": false
1572
+ },
1573
+ "excerpt": {
1574
+ "name": "excerpt",
1575
+ "type": "text",
1576
+ "primaryKey": false,
1577
+ "notNull": false
1578
+ },
1579
+ "diff_hunk": {
1580
+ "name": "diff_hunk",
1581
+ "type": "text",
1582
+ "primaryKey": false,
1583
+ "notNull": false
1584
+ },
1585
+ "database_id": {
1586
+ "name": "database_id",
1587
+ "type": "text",
1588
+ "primaryKey": false,
1589
+ "notNull": false
1590
+ },
1591
+ "created_at": {
1592
+ "name": "created_at",
1593
+ "type": "timestamp with time zone",
1594
+ "primaryKey": false,
1595
+ "notNull": true
1596
+ }
1597
+ },
1598
+ "indexes": {
1599
+ "rc_thread_idx": {
1600
+ "name": "rc_thread_idx",
1601
+ "columns": [
1602
+ {
1603
+ "expression": "thread_id",
1604
+ "isExpression": false,
1605
+ "asc": true,
1606
+ "nulls": "last"
1607
+ }
1608
+ ],
1609
+ "isUnique": false,
1610
+ "concurrently": false,
1611
+ "method": "btree",
1612
+ "with": {}
1613
+ },
1614
+ "rc_pr_node": {
1615
+ "name": "rc_pr_node",
1616
+ "columns": [
1617
+ {
1618
+ "expression": "pr_id",
1619
+ "isExpression": false,
1620
+ "asc": true,
1621
+ "nulls": "last"
1622
+ },
1623
+ {
1624
+ "expression": "github_node_id",
1625
+ "isExpression": false,
1626
+ "asc": true,
1627
+ "nulls": "last"
1628
+ }
1629
+ ],
1630
+ "isUnique": true,
1631
+ "concurrently": false,
1632
+ "method": "btree",
1633
+ "with": {}
1634
+ }
1635
+ },
1636
+ "foreignKeys": {
1637
+ "review_comments_thread_id_review_threads_id_fk": {
1638
+ "name": "review_comments_thread_id_review_threads_id_fk",
1639
+ "tableFrom": "review_comments",
1640
+ "tableTo": "review_threads",
1641
+ "columnsFrom": [
1642
+ "thread_id"
1643
+ ],
1644
+ "columnsTo": [
1645
+ "id"
1646
+ ],
1647
+ "onDelete": "no action",
1648
+ "onUpdate": "no action"
1649
+ },
1650
+ "review_comments_pr_id_pull_requests_id_fk": {
1651
+ "name": "review_comments_pr_id_pull_requests_id_fk",
1652
+ "tableFrom": "review_comments",
1653
+ "tableTo": "pull_requests",
1654
+ "columnsFrom": [
1655
+ "pr_id"
1656
+ ],
1657
+ "columnsTo": [
1658
+ "id"
1659
+ ],
1660
+ "onDelete": "no action",
1661
+ "onUpdate": "no action"
1662
+ },
1663
+ "review_comments_author_id_users_id_fk": {
1664
+ "name": "review_comments_author_id_users_id_fk",
1665
+ "tableFrom": "review_comments",
1666
+ "tableTo": "users",
1667
+ "columnsFrom": [
1668
+ "author_id"
1669
+ ],
1670
+ "columnsTo": [
1671
+ "id"
1672
+ ],
1673
+ "onDelete": "no action",
1674
+ "onUpdate": "no action"
1675
+ }
1676
+ },
1677
+ "compositePrimaryKeys": {},
1678
+ "uniqueConstraints": {},
1679
+ "policies": {},
1680
+ "checkConstraints": {},
1681
+ "isRLSEnabled": false
1682
+ },
1683
+ "public.review_requests": {
1684
+ "name": "review_requests",
1685
+ "schema": "",
1686
+ "columns": {
1687
+ "id": {
1688
+ "name": "id",
1689
+ "type": "serial",
1690
+ "primaryKey": true,
1691
+ "notNull": true
1692
+ },
1693
+ "pr_id": {
1694
+ "name": "pr_id",
1695
+ "type": "integer",
1696
+ "primaryKey": false,
1697
+ "notNull": true
1698
+ },
1699
+ "user_id": {
1700
+ "name": "user_id",
1701
+ "type": "integer",
1702
+ "primaryKey": false,
1703
+ "notNull": false
1704
+ },
1705
+ "team_name": {
1706
+ "name": "team_name",
1707
+ "type": "text",
1708
+ "primaryKey": false,
1709
+ "notNull": false
1710
+ }
1711
+ },
1712
+ "indexes": {
1713
+ "rr_pr_idx": {
1714
+ "name": "rr_pr_idx",
1715
+ "columns": [
1716
+ {
1717
+ "expression": "pr_id",
1718
+ "isExpression": false,
1719
+ "asc": true,
1720
+ "nulls": "last"
1721
+ }
1722
+ ],
1723
+ "isUnique": false,
1724
+ "concurrently": false,
1725
+ "method": "btree",
1726
+ "with": {}
1727
+ },
1728
+ "rr_user_idx": {
1729
+ "name": "rr_user_idx",
1730
+ "columns": [
1731
+ {
1732
+ "expression": "user_id",
1733
+ "isExpression": false,
1734
+ "asc": true,
1735
+ "nulls": "last"
1736
+ }
1737
+ ],
1738
+ "isUnique": false,
1739
+ "concurrently": false,
1740
+ "method": "btree",
1741
+ "with": {}
1742
+ }
1743
+ },
1744
+ "foreignKeys": {
1745
+ "review_requests_pr_id_pull_requests_id_fk": {
1746
+ "name": "review_requests_pr_id_pull_requests_id_fk",
1747
+ "tableFrom": "review_requests",
1748
+ "tableTo": "pull_requests",
1749
+ "columnsFrom": [
1750
+ "pr_id"
1751
+ ],
1752
+ "columnsTo": [
1753
+ "id"
1754
+ ],
1755
+ "onDelete": "no action",
1756
+ "onUpdate": "no action"
1757
+ },
1758
+ "review_requests_user_id_users_id_fk": {
1759
+ "name": "review_requests_user_id_users_id_fk",
1760
+ "tableFrom": "review_requests",
1761
+ "tableTo": "users",
1762
+ "columnsFrom": [
1763
+ "user_id"
1764
+ ],
1765
+ "columnsTo": [
1766
+ "id"
1767
+ ],
1768
+ "onDelete": "no action",
1769
+ "onUpdate": "no action"
1770
+ }
1771
+ },
1772
+ "compositePrimaryKeys": {},
1773
+ "uniqueConstraints": {},
1774
+ "policies": {},
1775
+ "checkConstraints": {},
1776
+ "isRLSEnabled": false
1777
+ },
1778
+ "public.review_threads": {
1779
+ "name": "review_threads",
1780
+ "schema": "",
1781
+ "columns": {
1782
+ "id": {
1783
+ "name": "id",
1784
+ "type": "serial",
1785
+ "primaryKey": true,
1786
+ "notNull": true
1787
+ },
1788
+ "github_node_id": {
1789
+ "name": "github_node_id",
1790
+ "type": "text",
1791
+ "primaryKey": false,
1792
+ "notNull": true
1793
+ },
1794
+ "pr_id": {
1795
+ "name": "pr_id",
1796
+ "type": "integer",
1797
+ "primaryKey": false,
1798
+ "notNull": true
1799
+ },
1800
+ "path": {
1801
+ "name": "path",
1802
+ "type": "text",
1803
+ "primaryKey": false,
1804
+ "notNull": true
1805
+ },
1806
+ "line": {
1807
+ "name": "line",
1808
+ "type": "integer",
1809
+ "primaryKey": false,
1810
+ "notNull": false
1811
+ },
1812
+ "is_resolved": {
1813
+ "name": "is_resolved",
1814
+ "type": "boolean",
1815
+ "primaryKey": false,
1816
+ "notNull": true
1817
+ },
1818
+ "is_outdated": {
1819
+ "name": "is_outdated",
1820
+ "type": "boolean",
1821
+ "primaryKey": false,
1822
+ "notNull": true,
1823
+ "default": false
1824
+ },
1825
+ "derived_state": {
1826
+ "name": "derived_state",
1827
+ "type": "text",
1828
+ "primaryKey": false,
1829
+ "notNull": true
1830
+ },
1831
+ "original_commenter_id": {
1832
+ "name": "original_commenter_id",
1833
+ "type": "integer",
1834
+ "primaryKey": false,
1835
+ "notNull": false
1836
+ },
1837
+ "created_at": {
1838
+ "name": "created_at",
1839
+ "type": "timestamp with time zone",
1840
+ "primaryKey": false,
1841
+ "notNull": true
1842
+ }
1843
+ },
1844
+ "indexes": {
1845
+ "thread_pr_idx": {
1846
+ "name": "thread_pr_idx",
1847
+ "columns": [
1848
+ {
1849
+ "expression": "pr_id",
1850
+ "isExpression": false,
1851
+ "asc": true,
1852
+ "nulls": "last"
1853
+ }
1854
+ ],
1855
+ "isUnique": false,
1856
+ "concurrently": false,
1857
+ "method": "btree",
1858
+ "with": {}
1859
+ },
1860
+ "thread_pr_node": {
1861
+ "name": "thread_pr_node",
1862
+ "columns": [
1863
+ {
1864
+ "expression": "pr_id",
1865
+ "isExpression": false,
1866
+ "asc": true,
1867
+ "nulls": "last"
1868
+ },
1869
+ {
1870
+ "expression": "github_node_id",
1871
+ "isExpression": false,
1872
+ "asc": true,
1873
+ "nulls": "last"
1874
+ }
1875
+ ],
1876
+ "isUnique": true,
1877
+ "concurrently": false,
1878
+ "method": "btree",
1879
+ "with": {}
1880
+ }
1881
+ },
1882
+ "foreignKeys": {
1883
+ "review_threads_pr_id_pull_requests_id_fk": {
1884
+ "name": "review_threads_pr_id_pull_requests_id_fk",
1885
+ "tableFrom": "review_threads",
1886
+ "tableTo": "pull_requests",
1887
+ "columnsFrom": [
1888
+ "pr_id"
1889
+ ],
1890
+ "columnsTo": [
1891
+ "id"
1892
+ ],
1893
+ "onDelete": "no action",
1894
+ "onUpdate": "no action"
1895
+ },
1896
+ "review_threads_original_commenter_id_users_id_fk": {
1897
+ "name": "review_threads_original_commenter_id_users_id_fk",
1898
+ "tableFrom": "review_threads",
1899
+ "tableTo": "users",
1900
+ "columnsFrom": [
1901
+ "original_commenter_id"
1902
+ ],
1903
+ "columnsTo": [
1904
+ "id"
1905
+ ],
1906
+ "onDelete": "no action",
1907
+ "onUpdate": "no action"
1908
+ }
1909
+ },
1910
+ "compositePrimaryKeys": {},
1911
+ "uniqueConstraints": {},
1912
+ "policies": {},
1913
+ "checkConstraints": {},
1914
+ "isRLSEnabled": false
1915
+ },
1916
+ "public.reviews": {
1917
+ "name": "reviews",
1918
+ "schema": "",
1919
+ "columns": {
1920
+ "id": {
1921
+ "name": "id",
1922
+ "type": "serial",
1923
+ "primaryKey": true,
1924
+ "notNull": true
1925
+ },
1926
+ "github_node_id": {
1927
+ "name": "github_node_id",
1928
+ "type": "text",
1929
+ "primaryKey": false,
1930
+ "notNull": true
1931
+ },
1932
+ "pr_id": {
1933
+ "name": "pr_id",
1934
+ "type": "integer",
1935
+ "primaryKey": false,
1936
+ "notNull": true
1937
+ },
1938
+ "author_id": {
1939
+ "name": "author_id",
1940
+ "type": "integer",
1941
+ "primaryKey": false,
1942
+ "notNull": false
1943
+ },
1944
+ "state": {
1945
+ "name": "state",
1946
+ "type": "text",
1947
+ "primaryKey": false,
1948
+ "notNull": true
1949
+ },
1950
+ "body": {
1951
+ "name": "body",
1952
+ "type": "text",
1953
+ "primaryKey": false,
1954
+ "notNull": false
1955
+ },
1956
+ "database_id": {
1957
+ "name": "database_id",
1958
+ "type": "text",
1959
+ "primaryKey": false,
1960
+ "notNull": false
1961
+ },
1962
+ "submitted_at": {
1963
+ "name": "submitted_at",
1964
+ "type": "timestamp with time zone",
1965
+ "primaryKey": false,
1966
+ "notNull": true
1967
+ }
1968
+ },
1969
+ "indexes": {
1970
+ "rv_pr_idx": {
1971
+ "name": "rv_pr_idx",
1972
+ "columns": [
1973
+ {
1974
+ "expression": "pr_id",
1975
+ "isExpression": false,
1976
+ "asc": true,
1977
+ "nulls": "last"
1978
+ }
1979
+ ],
1980
+ "isUnique": false,
1981
+ "concurrently": false,
1982
+ "method": "btree",
1983
+ "with": {}
1984
+ },
1985
+ "reviews_pr_node": {
1986
+ "name": "reviews_pr_node",
1987
+ "columns": [
1988
+ {
1989
+ "expression": "pr_id",
1990
+ "isExpression": false,
1991
+ "asc": true,
1992
+ "nulls": "last"
1993
+ },
1994
+ {
1995
+ "expression": "github_node_id",
1996
+ "isExpression": false,
1997
+ "asc": true,
1998
+ "nulls": "last"
1999
+ }
2000
+ ],
2001
+ "isUnique": true,
2002
+ "concurrently": false,
2003
+ "method": "btree",
2004
+ "with": {}
2005
+ }
2006
+ },
2007
+ "foreignKeys": {
2008
+ "reviews_pr_id_pull_requests_id_fk": {
2009
+ "name": "reviews_pr_id_pull_requests_id_fk",
2010
+ "tableFrom": "reviews",
2011
+ "tableTo": "pull_requests",
2012
+ "columnsFrom": [
2013
+ "pr_id"
2014
+ ],
2015
+ "columnsTo": [
2016
+ "id"
2017
+ ],
2018
+ "onDelete": "no action",
2019
+ "onUpdate": "no action"
2020
+ },
2021
+ "reviews_author_id_users_id_fk": {
2022
+ "name": "reviews_author_id_users_id_fk",
2023
+ "tableFrom": "reviews",
2024
+ "tableTo": "users",
2025
+ "columnsFrom": [
2026
+ "author_id"
2027
+ ],
2028
+ "columnsTo": [
2029
+ "id"
2030
+ ],
2031
+ "onDelete": "no action",
2032
+ "onUpdate": "no action"
2033
+ }
2034
+ },
2035
+ "compositePrimaryKeys": {},
2036
+ "uniqueConstraints": {},
2037
+ "policies": {},
2038
+ "checkConstraints": {},
2039
+ "isRLSEnabled": false
2040
+ },
2041
+ "public.sync_state": {
2042
+ "name": "sync_state",
2043
+ "schema": "",
2044
+ "columns": {
2045
+ "repo_id": {
2046
+ "name": "repo_id",
2047
+ "type": "integer",
2048
+ "primaryKey": true,
2049
+ "notNull": true
2050
+ },
2051
+ "last_full_sync_at": {
2052
+ "name": "last_full_sync_at",
2053
+ "type": "timestamp with time zone",
2054
+ "primaryKey": false,
2055
+ "notNull": false
2056
+ },
2057
+ "last_incremental_sync_at": {
2058
+ "name": "last_incremental_sync_at",
2059
+ "type": "timestamp with time zone",
2060
+ "primaryKey": false,
2061
+ "notNull": false
2062
+ },
2063
+ "last_sync_status": {
2064
+ "name": "last_sync_status",
2065
+ "type": "text",
2066
+ "primaryKey": false,
2067
+ "notNull": false
2068
+ },
2069
+ "last_sync_error": {
2070
+ "name": "last_sync_error",
2071
+ "type": "text",
2072
+ "primaryKey": false,
2073
+ "notNull": false
2074
+ }
2075
+ },
2076
+ "indexes": {},
2077
+ "foreignKeys": {
2078
+ "sync_state_repo_id_repos_id_fk": {
2079
+ "name": "sync_state_repo_id_repos_id_fk",
2080
+ "tableFrom": "sync_state",
2081
+ "tableTo": "repos",
2082
+ "columnsFrom": [
2083
+ "repo_id"
2084
+ ],
2085
+ "columnsTo": [
2086
+ "id"
2087
+ ],
2088
+ "onDelete": "no action",
2089
+ "onUpdate": "no action"
2090
+ }
2091
+ },
2092
+ "compositePrimaryKeys": {},
2093
+ "uniqueConstraints": {},
2094
+ "policies": {},
2095
+ "checkConstraints": {},
2096
+ "isRLSEnabled": false
2097
+ },
2098
+ "public.users": {
2099
+ "name": "users",
2100
+ "schema": "",
2101
+ "columns": {
2102
+ "id": {
2103
+ "name": "id",
2104
+ "type": "serial",
2105
+ "primaryKey": true,
2106
+ "notNull": true
2107
+ },
2108
+ "github_login": {
2109
+ "name": "github_login",
2110
+ "type": "text",
2111
+ "primaryKey": false,
2112
+ "notNull": true
2113
+ },
2114
+ "github_node_id": {
2115
+ "name": "github_node_id",
2116
+ "type": "text",
2117
+ "primaryKey": false,
2118
+ "notNull": false
2119
+ },
2120
+ "display_name": {
2121
+ "name": "display_name",
2122
+ "type": "text",
2123
+ "primaryKey": false,
2124
+ "notNull": false
2125
+ },
2126
+ "avatar_url": {
2127
+ "name": "avatar_url",
2128
+ "type": "text",
2129
+ "primaryKey": false,
2130
+ "notNull": false
2131
+ },
2132
+ "is_bot": {
2133
+ "name": "is_bot",
2134
+ "type": "boolean",
2135
+ "primaryKey": false,
2136
+ "notNull": true,
2137
+ "default": false
2138
+ },
2139
+ "is_bot_overridden": {
2140
+ "name": "is_bot_overridden",
2141
+ "type": "boolean",
2142
+ "primaryKey": false,
2143
+ "notNull": true,
2144
+ "default": false
2145
+ }
2146
+ },
2147
+ "indexes": {},
2148
+ "foreignKeys": {},
2149
+ "compositePrimaryKeys": {},
2150
+ "uniqueConstraints": {
2151
+ "users_github_login_unique": {
2152
+ "name": "users_github_login_unique",
2153
+ "nullsNotDistinct": false,
2154
+ "columns": [
2155
+ "github_login"
2156
+ ]
2157
+ },
2158
+ "users_github_node_id_unique": {
2159
+ "name": "users_github_node_id_unique",
2160
+ "nullsNotDistinct": false,
2161
+ "columns": [
2162
+ "github_node_id"
2163
+ ]
2164
+ }
2165
+ },
2166
+ "policies": {},
2167
+ "checkConstraints": {},
2168
+ "isRLSEnabled": false
2169
+ }
2170
+ },
2171
+ "enums": {},
2172
+ "schemas": {},
2173
+ "sequences": {},
2174
+ "roles": {},
2175
+ "policies": {},
2176
+ "views": {},
2177
+ "_meta": {
2178
+ "columns": {},
2179
+ "schemas": {},
2180
+ "tables": {}
2181
+ }
2182
+ }