carrick 0.3.125 → 0.3.126

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.
@@ -277,6 +277,15 @@ export const PositionRowsRequestSchema = BaseRequestSchema.extend({
277
277
  out_path: z.string().min(1, 'Out path cannot be empty'),
278
278
  service: z.string(),
279
279
  });
280
+ export const ImplementationsRequestSchema = BaseRequestSchema.extend({
281
+ action: z.literal('implementations'),
282
+ queries: z.array(z.object({
283
+ file: z.string().min(1, 'File path cannot be empty'),
284
+ start: z.number().int().nonnegative(),
285
+ end: z.number().int().nonnegative(),
286
+ })),
287
+ scan_root: z.string().min(1, 'Scan root cannot be empty'),
288
+ });
280
289
  export const ResolveDefinitionsRequestSchema = BaseRequestSchema.extend({
281
290
  action: z.literal('resolve_definitions'),
282
291
  stub_dir: z.string().min(1, 'Stub dir cannot be empty'),
@@ -522,6 +531,7 @@ export const SidecarRequestSchema = z.discriminatedUnion('action', [
522
531
  ListProgramFilesRequestSchema,
523
532
  AddProgramFilesRequestSchema,
524
533
  PositionRowsRequestSchema,
534
+ ImplementationsRequestSchema,
525
535
  ]);
526
536
  /**
527
537
  * Validates and parses incoming JSON into a typed SidecarRequest