Commit dbe7e77
Extract shared toJsonSchemaObject helper for JSON Schema conversion
Both ClaudeTextGeneration and CodexTextGeneration had identical logic
to convert an Effect Schema into a flat JSON Schema object. Move it
into textGenerationUtils.ts as a single shared helper.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ac378af commit dbe7e77
3 files changed
Lines changed: 13 additions & 25 deletions
File tree
- apps/server/src/git/Layers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 34 | | |
45 | 35 | | |
46 | 36 | | |
| |||
88 | 78 | | |
89 | 79 | | |
90 | 80 | | |
91 | | - | |
| 81 | + | |
92 | 82 | | |
93 | 83 | | |
94 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
| |||
144 | 133 | | |
145 | 134 | | |
146 | 135 | | |
147 | | - | |
| 136 | + | |
148 | 137 | | |
149 | 138 | | |
150 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
10 | 19 | | |
11 | 20 | | |
12 | 21 | | |
| |||
0 commit comments