Commit cce413a
committed
refactor: Use real core types in graph_stub instead of simplified versions
Replace stub type definitions (Version, VersionDiff, IsolationLevel, etc.)
with imports from codegraph_core. This ensures the stub managers return
properly structured data that matches what the NAPI addon expects.
Changes:
- Import Version, VersionDiff, IsolationLevel, Snapshot, and ID types from codegraph_core
- Remove duplicate simplified type definitions
- Add comments explaining stub behavior
- Preserve stub implementation logic while using real types
This aligns the stub API with the real implementation and fixes compilation
issues in the NAPI addon where it expects Version objects with name,
description, and author fields.1 parent 55838af commit cce413a
1 file changed
+19
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 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 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
212 | 187 | | |
213 | 188 | | |
214 | 189 | | |
| |||
218 | 193 | | |
219 | 194 | | |
220 | 195 | | |
221 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
222 | 199 | | |
223 | 200 | | |
224 | 201 | | |
| |||
248 | 225 | | |
249 | 226 | | |
250 | 227 | | |
251 | | - | |
252 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
253 | 235 | | |
254 | 236 | | |
255 | 237 | | |
| 238 | + | |
| 239 | + | |
256 | 240 | | |
257 | 241 | | |
258 | 242 | | |
259 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
260 | 246 | | |
261 | 247 | | |
262 | 248 | | |
| |||
0 commit comments