Commit cbba8a6
committed
feat(reviewer): propagate provider errors; pass prompts dir to review tool
Change Reviewer::new to async fn new() -> Result<Self>, replacing
.expect() with ? for error propagation on BaselineRegistry and
create_provider_cached. Update main.rs call site to match on
Result. Add --prompts arg to run_review_tool using
settings.get_prompts_dir(). Update src/bin/review.rs to use
ToolBox::with_config, PromptRegistry::with_settings, and
Option<PathBuf> for --prompts arg.
Signed-off-by: derekbarbosa <derekasobrab@gmail.com>1 parent 600cabe commit cbba8a6
3 files changed
Lines changed: 39 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
370 | 373 | | |
371 | 374 | | |
372 | | - | |
373 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
374 | 388 | | |
375 | 389 | | |
376 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
577 | 583 | | |
578 | 584 | | |
579 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
113 | 101 | | |
114 | 102 | | |
115 | 103 | | |
116 | 104 | | |
117 | 105 | | |
118 | 106 | | |
119 | | - | |
120 | | - | |
| 107 | + | |
121 | 108 | | |
122 | | - | |
| 109 | + | |
123 | 110 | | |
124 | 111 | | |
125 | 112 | | |
126 | 113 | | |
127 | 114 | | |
128 | 115 | | |
129 | | - | |
| 116 | + | |
130 | 117 | | |
131 | 118 | | |
132 | 119 | | |
| |||
1553 | 1540 | | |
1554 | 1541 | | |
1555 | 1542 | | |
| 1543 | + | |
| 1544 | + | |
1556 | 1545 | | |
1557 | 1546 | | |
1558 | 1547 | | |
| |||
0 commit comments