carrick 0.3.107 → 0.3.109
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.
- package/package.json +9 -10
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/capture/api.d.ts +15 -0
- package/sidecar/dist/src/capture/check-classify.d.ts +9 -0
- package/sidecar/dist/src/capture/check-classify.js +20 -0
- package/sidecar/dist/src/capture/check-deep.js +2 -1
- package/sidecar/dist/src/capture/check-fields.d.ts +24 -0
- package/sidecar/dist/src/capture/check-fields.js +54 -36
- package/sidecar/dist/src/capture/check-union.d.ts +40 -0
- package/sidecar/dist/src/capture/check-union.js +92 -0
- package/sidecar/dist/src/capture/check-workspace.d.ts +1 -0
- package/sidecar/dist/src/capture/check-workspace.js +13 -2
- package/sidecar/dist/src/capture/check.js +5 -0
- package/sidecar/dist/src/capture/compiler-options.d.ts +39 -0
- package/sidecar/dist/src/capture/compiler-options.js +100 -0
- package/sidecar/dist/src/capture/deno-project.js +3 -2
- package/sidecar/dist/src/capture/index.d.ts +1 -0
- package/sidecar/dist/src/capture/index.js +90 -48
- package/sidecar/dist/src/capture/installed-package.js +3 -2
- package/sidecar/dist/src/capture/self-check.js +3 -2
- package/sidecar/dist/src/definition-resolver.d.ts +5 -8
- package/sidecar/dist/src/definition-resolver.js +8 -9
- package/sidecar/dist/src/index.js +124 -11
- package/sidecar/dist/src/infer-timing.d.ts +54 -0
- package/sidecar/dist/src/infer-timing.js +124 -0
- package/sidecar/dist/src/print-type.d.ts +48 -0
- package/sidecar/dist/src/print-type.js +71 -0
- package/sidecar/dist/src/printed-names.js +2 -1
- package/sidecar/dist/src/program-files.d.ts +44 -0
- package/sidecar/dist/src/program-files.js +64 -0
- package/sidecar/dist/src/project-loader.d.ts +5 -0
- package/sidecar/dist/src/project-loader.js +14 -5
- package/sidecar/dist/src/retype.d.ts +4 -2
- package/sidecar/dist/src/retype.js +16 -5
- package/sidecar/dist/src/type-inferrer.d.ts +157 -1
- package/sidecar/dist/src/type-inferrer.js +444 -20
- package/sidecar/dist/src/types.d.ts +104 -2
- package/sidecar/dist/src/validators.d.ts +166 -80
- package/sidecar/dist/src/validators.js +13 -0
- package/templates/skills/carrick-reuse.md +6 -5
|
@@ -35,22 +35,22 @@ export declare const InferRequestItemSchema: z.ZodObject<{
|
|
|
35
35
|
file_path: string;
|
|
36
36
|
line_number: number;
|
|
37
37
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
38
|
+
param_name?: string | undefined;
|
|
38
39
|
alias?: string | undefined;
|
|
39
40
|
span_start?: number | undefined;
|
|
40
41
|
span_end?: number | undefined;
|
|
41
42
|
expression_text?: string | undefined;
|
|
42
43
|
expression_line?: number | undefined;
|
|
43
|
-
param_name?: string | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
file_path: string;
|
|
46
46
|
line_number: number;
|
|
47
47
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
48
|
+
param_name?: string | undefined;
|
|
48
49
|
alias?: string | undefined;
|
|
49
50
|
span_start?: number | undefined;
|
|
50
51
|
span_end?: number | undefined;
|
|
51
52
|
expression_text?: string | undefined;
|
|
52
53
|
expression_line?: number | undefined;
|
|
53
|
-
param_name?: string | undefined;
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* Per-item locator validation for infer requests.
|
|
@@ -266,16 +266,16 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
266
266
|
array_depth: z.ZodOptional<z.ZodNumber>;
|
|
267
267
|
}, "strip", z.ZodTypeAny, {
|
|
268
268
|
kind: "symbol";
|
|
269
|
+
alias: string;
|
|
269
270
|
symbol_name: string;
|
|
270
271
|
source_file: string;
|
|
271
|
-
alias: string;
|
|
272
272
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
273
273
|
array_depth?: number | undefined;
|
|
274
274
|
}, {
|
|
275
275
|
kind: "symbol";
|
|
276
|
+
alias: string;
|
|
276
277
|
symbol_name: string;
|
|
277
278
|
source_file: string;
|
|
278
|
-
alias: string;
|
|
279
279
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
280
280
|
array_depth?: number | undefined;
|
|
281
281
|
}>, z.ZodObject<{
|
|
@@ -286,15 +286,15 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
286
286
|
anchor_origin: z.ZodEnum<["llm-symbol", "deterministic-infer", "anchor-backfill", "manifest-placeholder"]>;
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
288
288
|
kind: "handler_return";
|
|
289
|
+
alias: string;
|
|
289
290
|
symbol_name: string;
|
|
290
291
|
source_file: string;
|
|
291
|
-
alias: string;
|
|
292
292
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
293
293
|
}, {
|
|
294
294
|
kind: "handler_return";
|
|
295
|
+
alias: string;
|
|
295
296
|
symbol_name: string;
|
|
296
297
|
source_file: string;
|
|
297
|
-
alias: string;
|
|
298
298
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
299
299
|
}>, z.ZodObject<{
|
|
300
300
|
kind: z.ZodLiteral<"infer">;
|
|
@@ -305,12 +305,14 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
305
305
|
span_end: z.ZodOptional<z.ZodNumber>;
|
|
306
306
|
line_number: z.ZodOptional<z.ZodNumber>;
|
|
307
307
|
expression_text: z.ZodOptional<z.ZodString>;
|
|
308
|
+
param_name: z.ZodOptional<z.ZodString>;
|
|
308
309
|
unwrap: z.ZodOptional<z.ZodEnum<["awaited", "none"]>>;
|
|
309
310
|
}, "strip", z.ZodTypeAny, {
|
|
310
311
|
kind: "infer";
|
|
311
|
-
source_file: string;
|
|
312
312
|
alias: string;
|
|
313
|
+
source_file: string;
|
|
313
314
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
315
|
+
param_name?: string | undefined;
|
|
314
316
|
line_number?: number | undefined;
|
|
315
317
|
span_start?: number | undefined;
|
|
316
318
|
span_end?: number | undefined;
|
|
@@ -318,9 +320,10 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
318
320
|
unwrap?: "awaited" | "none" | undefined;
|
|
319
321
|
}, {
|
|
320
322
|
kind: "infer";
|
|
321
|
-
source_file: string;
|
|
322
323
|
alias: string;
|
|
324
|
+
source_file: string;
|
|
323
325
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
326
|
+
param_name?: string | undefined;
|
|
324
327
|
line_number?: number | undefined;
|
|
325
328
|
span_start?: number | undefined;
|
|
326
329
|
span_end?: number | undefined;
|
|
@@ -351,52 +354,49 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
351
354
|
alias: string;
|
|
352
355
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
353
356
|
type_text: string;
|
|
357
|
+
raw_text_read?: true | undefined;
|
|
354
358
|
source_file?: string | undefined;
|
|
355
359
|
printed_names?: {
|
|
356
360
|
name: string;
|
|
357
361
|
file: string;
|
|
358
362
|
export_path: string[];
|
|
359
363
|
}[] | undefined;
|
|
360
|
-
raw_text_read?: true | undefined;
|
|
361
364
|
}, {
|
|
362
365
|
kind: "literal";
|
|
363
366
|
alias: string;
|
|
364
367
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
365
368
|
type_text: string;
|
|
369
|
+
raw_text_read?: true | undefined;
|
|
366
370
|
source_file?: string | undefined;
|
|
367
371
|
printed_names?: {
|
|
368
372
|
name: string;
|
|
369
373
|
file: string;
|
|
370
374
|
export_path: string[];
|
|
371
375
|
}[] | undefined;
|
|
372
|
-
raw_text_read?: true | undefined;
|
|
373
376
|
}>]>, "many">;
|
|
374
377
|
out_dir: z.ZodString;
|
|
375
378
|
tsconfig_path: z.ZodOptional<z.ZodString>;
|
|
376
379
|
scan_root: z.ZodOptional<z.ZodString>;
|
|
377
380
|
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
request_id: string;
|
|
379
|
-
action: "capture_v2";
|
|
380
|
-
repo_root: string;
|
|
381
|
-
service_name: string;
|
|
382
381
|
anchors: ({
|
|
383
382
|
kind: "symbol";
|
|
383
|
+
alias: string;
|
|
384
384
|
symbol_name: string;
|
|
385
385
|
source_file: string;
|
|
386
|
-
alias: string;
|
|
387
386
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
388
387
|
array_depth?: number | undefined;
|
|
389
388
|
} | {
|
|
390
389
|
kind: "handler_return";
|
|
390
|
+
alias: string;
|
|
391
391
|
symbol_name: string;
|
|
392
392
|
source_file: string;
|
|
393
|
-
alias: string;
|
|
394
393
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
395
394
|
} | {
|
|
396
395
|
kind: "infer";
|
|
397
|
-
source_file: string;
|
|
398
396
|
alias: string;
|
|
397
|
+
source_file: string;
|
|
399
398
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
399
|
+
param_name?: string | undefined;
|
|
400
400
|
line_number?: number | undefined;
|
|
401
401
|
span_start?: number | undefined;
|
|
402
402
|
span_end?: number | undefined;
|
|
@@ -407,40 +407,41 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
407
407
|
alias: string;
|
|
408
408
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
409
409
|
type_text: string;
|
|
410
|
+
raw_text_read?: true | undefined;
|
|
410
411
|
source_file?: string | undefined;
|
|
411
412
|
printed_names?: {
|
|
412
413
|
name: string;
|
|
413
414
|
file: string;
|
|
414
415
|
export_path: string[];
|
|
415
416
|
}[] | undefined;
|
|
416
|
-
raw_text_read?: true | undefined;
|
|
417
417
|
})[];
|
|
418
|
-
out_dir: string;
|
|
419
|
-
tsconfig_path?: string | undefined;
|
|
420
|
-
scan_root?: string | undefined;
|
|
421
|
-
}, {
|
|
422
418
|
request_id: string;
|
|
423
419
|
action: "capture_v2";
|
|
424
420
|
repo_root: string;
|
|
425
421
|
service_name: string;
|
|
422
|
+
out_dir: string;
|
|
423
|
+
tsconfig_path?: string | undefined;
|
|
424
|
+
scan_root?: string | undefined;
|
|
425
|
+
}, {
|
|
426
426
|
anchors: ({
|
|
427
427
|
kind: "symbol";
|
|
428
|
+
alias: string;
|
|
428
429
|
symbol_name: string;
|
|
429
430
|
source_file: string;
|
|
430
|
-
alias: string;
|
|
431
431
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
432
432
|
array_depth?: number | undefined;
|
|
433
433
|
} | {
|
|
434
434
|
kind: "handler_return";
|
|
435
|
+
alias: string;
|
|
435
436
|
symbol_name: string;
|
|
436
437
|
source_file: string;
|
|
437
|
-
alias: string;
|
|
438
438
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
439
439
|
} | {
|
|
440
440
|
kind: "infer";
|
|
441
|
-
source_file: string;
|
|
442
441
|
alias: string;
|
|
442
|
+
source_file: string;
|
|
443
443
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
444
|
+
param_name?: string | undefined;
|
|
444
445
|
line_number?: number | undefined;
|
|
445
446
|
span_start?: number | undefined;
|
|
446
447
|
span_end?: number | undefined;
|
|
@@ -451,14 +452,18 @@ export declare const CaptureV2RequestSchema: z.ZodObject<{
|
|
|
451
452
|
alias: string;
|
|
452
453
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
453
454
|
type_text: string;
|
|
455
|
+
raw_text_read?: true | undefined;
|
|
454
456
|
source_file?: string | undefined;
|
|
455
457
|
printed_names?: {
|
|
456
458
|
name: string;
|
|
457
459
|
file: string;
|
|
458
460
|
export_path: string[];
|
|
459
461
|
}[] | undefined;
|
|
460
|
-
raw_text_read?: true | undefined;
|
|
461
462
|
})[];
|
|
463
|
+
request_id: string;
|
|
464
|
+
action: "capture_v2";
|
|
465
|
+
repo_root: string;
|
|
466
|
+
service_name: string;
|
|
462
467
|
out_dir: string;
|
|
463
468
|
tsconfig_path?: string | undefined;
|
|
464
469
|
scan_root?: string | undefined;
|
|
@@ -529,12 +534,6 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
529
534
|
workspace_root: z.ZodOptional<z.ZodString>;
|
|
530
535
|
keep_workspace: z.ZodOptional<z.ZodBoolean>;
|
|
531
536
|
}, "strip", z.ZodTypeAny, {
|
|
532
|
-
request_id: string;
|
|
533
|
-
action: "check_v2";
|
|
534
|
-
stubs: {
|
|
535
|
-
service_name: string;
|
|
536
|
-
stub_dir: string;
|
|
537
|
-
}[];
|
|
538
537
|
pairs: {
|
|
539
538
|
producer: {
|
|
540
539
|
alias: string;
|
|
@@ -548,15 +547,15 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
548
547
|
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
549
548
|
type_kind: "request" | "response" | "both";
|
|
550
549
|
}[];
|
|
551
|
-
workspace_root?: string | undefined;
|
|
552
|
-
keep_workspace?: boolean | undefined;
|
|
553
|
-
}, {
|
|
554
550
|
request_id: string;
|
|
555
551
|
action: "check_v2";
|
|
556
552
|
stubs: {
|
|
557
553
|
service_name: string;
|
|
558
554
|
stub_dir: string;
|
|
559
555
|
}[];
|
|
556
|
+
workspace_root?: string | undefined;
|
|
557
|
+
keep_workspace?: boolean | undefined;
|
|
558
|
+
}, {
|
|
560
559
|
pairs: {
|
|
561
560
|
producer: {
|
|
562
561
|
alias: string;
|
|
@@ -570,6 +569,12 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
570
569
|
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
571
570
|
type_kind: "request" | "response" | "both";
|
|
572
571
|
}[];
|
|
572
|
+
request_id: string;
|
|
573
|
+
action: "check_v2";
|
|
574
|
+
stubs: {
|
|
575
|
+
service_name: string;
|
|
576
|
+
stub_dir: string;
|
|
577
|
+
}[];
|
|
573
578
|
workspace_root?: string | undefined;
|
|
574
579
|
keep_workspace?: boolean | undefined;
|
|
575
580
|
}>;
|
|
@@ -591,22 +596,22 @@ export declare const InferRequestSchema: z.ZodObject<{
|
|
|
591
596
|
file_path: string;
|
|
592
597
|
line_number: number;
|
|
593
598
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
599
|
+
param_name?: string | undefined;
|
|
594
600
|
alias?: string | undefined;
|
|
595
601
|
span_start?: number | undefined;
|
|
596
602
|
span_end?: number | undefined;
|
|
597
603
|
expression_text?: string | undefined;
|
|
598
604
|
expression_line?: number | undefined;
|
|
599
|
-
param_name?: string | undefined;
|
|
600
605
|
}, {
|
|
601
606
|
file_path: string;
|
|
602
607
|
line_number: number;
|
|
603
608
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
609
|
+
param_name?: string | undefined;
|
|
604
610
|
alias?: string | undefined;
|
|
605
611
|
span_start?: number | undefined;
|
|
606
612
|
span_end?: number | undefined;
|
|
607
613
|
expression_text?: string | undefined;
|
|
608
614
|
expression_line?: number | undefined;
|
|
609
|
-
param_name?: string | undefined;
|
|
610
615
|
}>, "many">;
|
|
611
616
|
extraction_config: z.ZodOptional<z.ZodObject<{
|
|
612
617
|
rules: z.ZodArray<z.ZodObject<{
|
|
@@ -662,12 +667,12 @@ export declare const InferRequestSchema: z.ZodObject<{
|
|
|
662
667
|
file_path: string;
|
|
663
668
|
line_number: number;
|
|
664
669
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
670
|
+
param_name?: string | undefined;
|
|
665
671
|
alias?: string | undefined;
|
|
666
672
|
span_start?: number | undefined;
|
|
667
673
|
span_end?: number | undefined;
|
|
668
674
|
expression_text?: string | undefined;
|
|
669
675
|
expression_line?: number | undefined;
|
|
670
|
-
param_name?: string | undefined;
|
|
671
676
|
}[];
|
|
672
677
|
extraction_config?: {
|
|
673
678
|
rules: {
|
|
@@ -687,12 +692,12 @@ export declare const InferRequestSchema: z.ZodObject<{
|
|
|
687
692
|
file_path: string;
|
|
688
693
|
line_number: number;
|
|
689
694
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
695
|
+
param_name?: string | undefined;
|
|
690
696
|
alias?: string | undefined;
|
|
691
697
|
span_start?: number | undefined;
|
|
692
698
|
span_end?: number | undefined;
|
|
693
699
|
expression_text?: string | undefined;
|
|
694
700
|
expression_line?: number | undefined;
|
|
695
|
-
param_name?: string | undefined;
|
|
696
701
|
}[];
|
|
697
702
|
extraction_config?: {
|
|
698
703
|
rules: {
|
|
@@ -728,6 +733,31 @@ export declare const ShutdownRequestSchema: z.ZodObject<{
|
|
|
728
733
|
request_id: string;
|
|
729
734
|
action: "shutdown";
|
|
730
735
|
}>;
|
|
736
|
+
export declare const ListProgramFilesRequestSchema: z.ZodObject<{
|
|
737
|
+
request_id: z.ZodString;
|
|
738
|
+
} & {
|
|
739
|
+
action: z.ZodLiteral<"list_program_files">;
|
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
|
741
|
+
request_id: string;
|
|
742
|
+
action: "list_program_files";
|
|
743
|
+
}, {
|
|
744
|
+
request_id: string;
|
|
745
|
+
action: "list_program_files";
|
|
746
|
+
}>;
|
|
747
|
+
export declare const AddProgramFilesRequestSchema: z.ZodObject<{
|
|
748
|
+
request_id: z.ZodString;
|
|
749
|
+
} & {
|
|
750
|
+
action: z.ZodLiteral<"add_program_files">;
|
|
751
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
|
+
files: string[];
|
|
754
|
+
request_id: string;
|
|
755
|
+
action: "add_program_files";
|
|
756
|
+
}, {
|
|
757
|
+
files: string[];
|
|
758
|
+
request_id: string;
|
|
759
|
+
action: "add_program_files";
|
|
760
|
+
}>;
|
|
731
761
|
export declare const ResolveDefinitionsRequestSchema: z.ZodObject<{
|
|
732
762
|
request_id: z.ZodString;
|
|
733
763
|
} & {
|
|
@@ -1831,17 +1861,17 @@ export declare const ListLibrarySurfaceRequestSchema: z.ZodObject<{
|
|
|
1831
1861
|
max_entries: z.ZodOptional<z.ZodNumber>;
|
|
1832
1862
|
exports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1833
1863
|
}, "strip", z.ZodTypeAny, {
|
|
1864
|
+
packages: string[];
|
|
1834
1865
|
request_id: string;
|
|
1835
1866
|
action: "list_library_surface";
|
|
1836
1867
|
from_dir: string;
|
|
1837
|
-
packages: string[];
|
|
1838
1868
|
max_entries?: number | undefined;
|
|
1839
1869
|
exports?: Record<string, string[]> | undefined;
|
|
1840
1870
|
}, {
|
|
1871
|
+
packages: string[];
|
|
1841
1872
|
request_id: string;
|
|
1842
1873
|
action: "list_library_surface";
|
|
1843
1874
|
from_dir: string;
|
|
1844
|
-
packages: string[];
|
|
1845
1875
|
max_entries?: number | undefined;
|
|
1846
1876
|
exports?: Record<string, string[]> | undefined;
|
|
1847
1877
|
}>;
|
|
@@ -2049,16 +2079,16 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2049
2079
|
array_depth: z.ZodOptional<z.ZodNumber>;
|
|
2050
2080
|
}, "strip", z.ZodTypeAny, {
|
|
2051
2081
|
kind: "symbol";
|
|
2082
|
+
alias: string;
|
|
2052
2083
|
symbol_name: string;
|
|
2053
2084
|
source_file: string;
|
|
2054
|
-
alias: string;
|
|
2055
2085
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2056
2086
|
array_depth?: number | undefined;
|
|
2057
2087
|
}, {
|
|
2058
2088
|
kind: "symbol";
|
|
2089
|
+
alias: string;
|
|
2059
2090
|
symbol_name: string;
|
|
2060
2091
|
source_file: string;
|
|
2061
|
-
alias: string;
|
|
2062
2092
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2063
2093
|
array_depth?: number | undefined;
|
|
2064
2094
|
}>, z.ZodObject<{
|
|
@@ -2069,15 +2099,15 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2069
2099
|
anchor_origin: z.ZodEnum<["llm-symbol", "deterministic-infer", "anchor-backfill", "manifest-placeholder"]>;
|
|
2070
2100
|
}, "strip", z.ZodTypeAny, {
|
|
2071
2101
|
kind: "handler_return";
|
|
2102
|
+
alias: string;
|
|
2072
2103
|
symbol_name: string;
|
|
2073
2104
|
source_file: string;
|
|
2074
|
-
alias: string;
|
|
2075
2105
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2076
2106
|
}, {
|
|
2077
2107
|
kind: "handler_return";
|
|
2108
|
+
alias: string;
|
|
2078
2109
|
symbol_name: string;
|
|
2079
2110
|
source_file: string;
|
|
2080
|
-
alias: string;
|
|
2081
2111
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2082
2112
|
}>, z.ZodObject<{
|
|
2083
2113
|
kind: z.ZodLiteral<"infer">;
|
|
@@ -2088,12 +2118,14 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2088
2118
|
span_end: z.ZodOptional<z.ZodNumber>;
|
|
2089
2119
|
line_number: z.ZodOptional<z.ZodNumber>;
|
|
2090
2120
|
expression_text: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
param_name: z.ZodOptional<z.ZodString>;
|
|
2091
2122
|
unwrap: z.ZodOptional<z.ZodEnum<["awaited", "none"]>>;
|
|
2092
2123
|
}, "strip", z.ZodTypeAny, {
|
|
2093
2124
|
kind: "infer";
|
|
2094
|
-
source_file: string;
|
|
2095
2125
|
alias: string;
|
|
2126
|
+
source_file: string;
|
|
2096
2127
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2128
|
+
param_name?: string | undefined;
|
|
2097
2129
|
line_number?: number | undefined;
|
|
2098
2130
|
span_start?: number | undefined;
|
|
2099
2131
|
span_end?: number | undefined;
|
|
@@ -2101,9 +2133,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2101
2133
|
unwrap?: "awaited" | "none" | undefined;
|
|
2102
2134
|
}, {
|
|
2103
2135
|
kind: "infer";
|
|
2104
|
-
source_file: string;
|
|
2105
2136
|
alias: string;
|
|
2137
|
+
source_file: string;
|
|
2106
2138
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2139
|
+
param_name?: string | undefined;
|
|
2107
2140
|
line_number?: number | undefined;
|
|
2108
2141
|
span_start?: number | undefined;
|
|
2109
2142
|
span_end?: number | undefined;
|
|
@@ -2134,52 +2167,49 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2134
2167
|
alias: string;
|
|
2135
2168
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2136
2169
|
type_text: string;
|
|
2170
|
+
raw_text_read?: true | undefined;
|
|
2137
2171
|
source_file?: string | undefined;
|
|
2138
2172
|
printed_names?: {
|
|
2139
2173
|
name: string;
|
|
2140
2174
|
file: string;
|
|
2141
2175
|
export_path: string[];
|
|
2142
2176
|
}[] | undefined;
|
|
2143
|
-
raw_text_read?: true | undefined;
|
|
2144
2177
|
}, {
|
|
2145
2178
|
kind: "literal";
|
|
2146
2179
|
alias: string;
|
|
2147
2180
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2148
2181
|
type_text: string;
|
|
2182
|
+
raw_text_read?: true | undefined;
|
|
2149
2183
|
source_file?: string | undefined;
|
|
2150
2184
|
printed_names?: {
|
|
2151
2185
|
name: string;
|
|
2152
2186
|
file: string;
|
|
2153
2187
|
export_path: string[];
|
|
2154
2188
|
}[] | undefined;
|
|
2155
|
-
raw_text_read?: true | undefined;
|
|
2156
2189
|
}>]>, "many">;
|
|
2157
2190
|
out_dir: z.ZodString;
|
|
2158
2191
|
tsconfig_path: z.ZodOptional<z.ZodString>;
|
|
2159
2192
|
scan_root: z.ZodOptional<z.ZodString>;
|
|
2160
2193
|
}, "strip", z.ZodTypeAny, {
|
|
2161
|
-
request_id: string;
|
|
2162
|
-
action: "capture_v2";
|
|
2163
|
-
repo_root: string;
|
|
2164
|
-
service_name: string;
|
|
2165
2194
|
anchors: ({
|
|
2166
2195
|
kind: "symbol";
|
|
2196
|
+
alias: string;
|
|
2167
2197
|
symbol_name: string;
|
|
2168
2198
|
source_file: string;
|
|
2169
|
-
alias: string;
|
|
2170
2199
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2171
2200
|
array_depth?: number | undefined;
|
|
2172
2201
|
} | {
|
|
2173
2202
|
kind: "handler_return";
|
|
2203
|
+
alias: string;
|
|
2174
2204
|
symbol_name: string;
|
|
2175
2205
|
source_file: string;
|
|
2176
|
-
alias: string;
|
|
2177
2206
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2178
2207
|
} | {
|
|
2179
2208
|
kind: "infer";
|
|
2180
|
-
source_file: string;
|
|
2181
2209
|
alias: string;
|
|
2210
|
+
source_file: string;
|
|
2182
2211
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2212
|
+
param_name?: string | undefined;
|
|
2183
2213
|
line_number?: number | undefined;
|
|
2184
2214
|
span_start?: number | undefined;
|
|
2185
2215
|
span_end?: number | undefined;
|
|
@@ -2190,40 +2220,41 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2190
2220
|
alias: string;
|
|
2191
2221
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2192
2222
|
type_text: string;
|
|
2223
|
+
raw_text_read?: true | undefined;
|
|
2193
2224
|
source_file?: string | undefined;
|
|
2194
2225
|
printed_names?: {
|
|
2195
2226
|
name: string;
|
|
2196
2227
|
file: string;
|
|
2197
2228
|
export_path: string[];
|
|
2198
2229
|
}[] | undefined;
|
|
2199
|
-
raw_text_read?: true | undefined;
|
|
2200
2230
|
})[];
|
|
2201
|
-
out_dir: string;
|
|
2202
|
-
tsconfig_path?: string | undefined;
|
|
2203
|
-
scan_root?: string | undefined;
|
|
2204
|
-
}, {
|
|
2205
2231
|
request_id: string;
|
|
2206
2232
|
action: "capture_v2";
|
|
2207
2233
|
repo_root: string;
|
|
2208
2234
|
service_name: string;
|
|
2235
|
+
out_dir: string;
|
|
2236
|
+
tsconfig_path?: string | undefined;
|
|
2237
|
+
scan_root?: string | undefined;
|
|
2238
|
+
}, {
|
|
2209
2239
|
anchors: ({
|
|
2210
2240
|
kind: "symbol";
|
|
2241
|
+
alias: string;
|
|
2211
2242
|
symbol_name: string;
|
|
2212
2243
|
source_file: string;
|
|
2213
|
-
alias: string;
|
|
2214
2244
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2215
2245
|
array_depth?: number | undefined;
|
|
2216
2246
|
} | {
|
|
2217
2247
|
kind: "handler_return";
|
|
2248
|
+
alias: string;
|
|
2218
2249
|
symbol_name: string;
|
|
2219
2250
|
source_file: string;
|
|
2220
|
-
alias: string;
|
|
2221
2251
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2222
2252
|
} | {
|
|
2223
2253
|
kind: "infer";
|
|
2224
|
-
source_file: string;
|
|
2225
2254
|
alias: string;
|
|
2255
|
+
source_file: string;
|
|
2226
2256
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2257
|
+
param_name?: string | undefined;
|
|
2227
2258
|
line_number?: number | undefined;
|
|
2228
2259
|
span_start?: number | undefined;
|
|
2229
2260
|
span_end?: number | undefined;
|
|
@@ -2234,14 +2265,18 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2234
2265
|
alias: string;
|
|
2235
2266
|
anchor_origin: "llm-symbol" | "deterministic-infer" | "anchor-backfill" | "manifest-placeholder";
|
|
2236
2267
|
type_text: string;
|
|
2268
|
+
raw_text_read?: true | undefined;
|
|
2237
2269
|
source_file?: string | undefined;
|
|
2238
2270
|
printed_names?: {
|
|
2239
2271
|
name: string;
|
|
2240
2272
|
file: string;
|
|
2241
2273
|
export_path: string[];
|
|
2242
2274
|
}[] | undefined;
|
|
2243
|
-
raw_text_read?: true | undefined;
|
|
2244
2275
|
})[];
|
|
2276
|
+
request_id: string;
|
|
2277
|
+
action: "capture_v2";
|
|
2278
|
+
repo_root: string;
|
|
2279
|
+
service_name: string;
|
|
2245
2280
|
out_dir: string;
|
|
2246
2281
|
tsconfig_path?: string | undefined;
|
|
2247
2282
|
scan_root?: string | undefined;
|
|
@@ -2311,12 +2346,6 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2311
2346
|
workspace_root: z.ZodOptional<z.ZodString>;
|
|
2312
2347
|
keep_workspace: z.ZodOptional<z.ZodBoolean>;
|
|
2313
2348
|
}, "strip", z.ZodTypeAny, {
|
|
2314
|
-
request_id: string;
|
|
2315
|
-
action: "check_v2";
|
|
2316
|
-
stubs: {
|
|
2317
|
-
service_name: string;
|
|
2318
|
-
stub_dir: string;
|
|
2319
|
-
}[];
|
|
2320
2349
|
pairs: {
|
|
2321
2350
|
producer: {
|
|
2322
2351
|
alias: string;
|
|
@@ -2330,15 +2359,15 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2330
2359
|
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
2331
2360
|
type_kind: "request" | "response" | "both";
|
|
2332
2361
|
}[];
|
|
2333
|
-
workspace_root?: string | undefined;
|
|
2334
|
-
keep_workspace?: boolean | undefined;
|
|
2335
|
-
}, {
|
|
2336
2362
|
request_id: string;
|
|
2337
2363
|
action: "check_v2";
|
|
2338
2364
|
stubs: {
|
|
2339
2365
|
service_name: string;
|
|
2340
2366
|
stub_dir: string;
|
|
2341
2367
|
}[];
|
|
2368
|
+
workspace_root?: string | undefined;
|
|
2369
|
+
keep_workspace?: boolean | undefined;
|
|
2370
|
+
}, {
|
|
2342
2371
|
pairs: {
|
|
2343
2372
|
producer: {
|
|
2344
2373
|
alias: string;
|
|
@@ -2352,6 +2381,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2352
2381
|
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
2353
2382
|
type_kind: "request" | "response" | "both";
|
|
2354
2383
|
}[];
|
|
2384
|
+
request_id: string;
|
|
2385
|
+
action: "check_v2";
|
|
2386
|
+
stubs: {
|
|
2387
|
+
service_name: string;
|
|
2388
|
+
stub_dir: string;
|
|
2389
|
+
}[];
|
|
2355
2390
|
workspace_root?: string | undefined;
|
|
2356
2391
|
keep_workspace?: boolean | undefined;
|
|
2357
2392
|
}>, z.ZodObject<{
|
|
@@ -2372,22 +2407,22 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2372
2407
|
file_path: string;
|
|
2373
2408
|
line_number: number;
|
|
2374
2409
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
2410
|
+
param_name?: string | undefined;
|
|
2375
2411
|
alias?: string | undefined;
|
|
2376
2412
|
span_start?: number | undefined;
|
|
2377
2413
|
span_end?: number | undefined;
|
|
2378
2414
|
expression_text?: string | undefined;
|
|
2379
2415
|
expression_line?: number | undefined;
|
|
2380
|
-
param_name?: string | undefined;
|
|
2381
2416
|
}, {
|
|
2382
2417
|
file_path: string;
|
|
2383
2418
|
line_number: number;
|
|
2384
2419
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
2420
|
+
param_name?: string | undefined;
|
|
2385
2421
|
alias?: string | undefined;
|
|
2386
2422
|
span_start?: number | undefined;
|
|
2387
2423
|
span_end?: number | undefined;
|
|
2388
2424
|
expression_text?: string | undefined;
|
|
2389
2425
|
expression_line?: number | undefined;
|
|
2390
|
-
param_name?: string | undefined;
|
|
2391
2426
|
}>, "many">;
|
|
2392
2427
|
extraction_config: z.ZodOptional<z.ZodObject<{
|
|
2393
2428
|
rules: z.ZodArray<z.ZodObject<{
|
|
@@ -2443,12 +2478,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2443
2478
|
file_path: string;
|
|
2444
2479
|
line_number: number;
|
|
2445
2480
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
2481
|
+
param_name?: string | undefined;
|
|
2446
2482
|
alias?: string | undefined;
|
|
2447
2483
|
span_start?: number | undefined;
|
|
2448
2484
|
span_end?: number | undefined;
|
|
2449
2485
|
expression_text?: string | undefined;
|
|
2450
2486
|
expression_line?: number | undefined;
|
|
2451
|
-
param_name?: string | undefined;
|
|
2452
2487
|
}[];
|
|
2453
2488
|
extraction_config?: {
|
|
2454
2489
|
rules: {
|
|
@@ -2468,12 +2503,12 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2468
2503
|
file_path: string;
|
|
2469
2504
|
line_number: number;
|
|
2470
2505
|
infer_kind: "function_return" | "expression" | "call_result" | "variable" | "response_body" | "request_body" | "signature_return" | "function_param" | "receiver_type";
|
|
2506
|
+
param_name?: string | undefined;
|
|
2471
2507
|
alias?: string | undefined;
|
|
2472
2508
|
span_start?: number | undefined;
|
|
2473
2509
|
span_end?: number | undefined;
|
|
2474
2510
|
expression_text?: string | undefined;
|
|
2475
2511
|
expression_line?: number | undefined;
|
|
2476
|
-
param_name?: string | undefined;
|
|
2477
2512
|
}[];
|
|
2478
2513
|
extraction_config?: {
|
|
2479
2514
|
rules: {
|
|
@@ -3585,17 +3620,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
3585
3620
|
max_entries: z.ZodOptional<z.ZodNumber>;
|
|
3586
3621
|
exports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
3587
3622
|
}, "strip", z.ZodTypeAny, {
|
|
3623
|
+
packages: string[];
|
|
3588
3624
|
request_id: string;
|
|
3589
3625
|
action: "list_library_surface";
|
|
3590
3626
|
from_dir: string;
|
|
3591
|
-
packages: string[];
|
|
3592
3627
|
max_entries?: number | undefined;
|
|
3593
3628
|
exports?: Record<string, string[]> | undefined;
|
|
3594
3629
|
}, {
|
|
3630
|
+
packages: string[];
|
|
3595
3631
|
request_id: string;
|
|
3596
3632
|
action: "list_library_surface";
|
|
3597
3633
|
from_dir: string;
|
|
3598
|
-
packages: string[];
|
|
3599
3634
|
max_entries?: number | undefined;
|
|
3600
3635
|
exports?: Record<string, string[]> | undefined;
|
|
3601
3636
|
}>, z.ZodObject<{
|
|
@@ -3618,6 +3653,29 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
3618
3653
|
}, {
|
|
3619
3654
|
request_id: string;
|
|
3620
3655
|
action: "shutdown";
|
|
3656
|
+
}>, z.ZodObject<{
|
|
3657
|
+
request_id: z.ZodString;
|
|
3658
|
+
} & {
|
|
3659
|
+
action: z.ZodLiteral<"list_program_files">;
|
|
3660
|
+
}, "strip", z.ZodTypeAny, {
|
|
3661
|
+
request_id: string;
|
|
3662
|
+
action: "list_program_files";
|
|
3663
|
+
}, {
|
|
3664
|
+
request_id: string;
|
|
3665
|
+
action: "list_program_files";
|
|
3666
|
+
}>, z.ZodObject<{
|
|
3667
|
+
request_id: z.ZodString;
|
|
3668
|
+
} & {
|
|
3669
|
+
action: z.ZodLiteral<"add_program_files">;
|
|
3670
|
+
files: z.ZodArray<z.ZodString, "many">;
|
|
3671
|
+
}, "strip", z.ZodTypeAny, {
|
|
3672
|
+
files: string[];
|
|
3673
|
+
request_id: string;
|
|
3674
|
+
action: "add_program_files";
|
|
3675
|
+
}, {
|
|
3676
|
+
files: string[];
|
|
3677
|
+
request_id: string;
|
|
3678
|
+
action: "add_program_files";
|
|
3621
3679
|
}>]>;
|
|
3622
3680
|
/**
|
|
3623
3681
|
* Result type for parseRequest
|
|
@@ -3650,3 +3708,31 @@ export type ValidatedInferRequest = z.infer<typeof InferRequestSchema>;
|
|
|
3650
3708
|
export type ValidatedHealthRequest = z.infer<typeof HealthRequestSchema>;
|
|
3651
3709
|
export type ValidatedShutdownRequest = z.infer<typeof ShutdownRequestSchema>;
|
|
3652
3710
|
export type ValidatedSidecarRequest = z.infer<typeof SidecarRequestSchema>;
|
|
3711
|
+
/** Every key any member of a union declares. */
|
|
3712
|
+
type KeysOfAny<Union> = Union extends unknown ? keyof Union : never;
|
|
3713
|
+
/** What `Key` holds, across the members of a union that declare it. */
|
|
3714
|
+
type ValueAt<Union, Key extends PropertyKey> = Union extends unknown ? Key extends keyof Union ? Union[Key] : never : never;
|
|
3715
|
+
/** The members of `Other` with the tag `One` has, when `One` has one. */
|
|
3716
|
+
type SameVariant<One, Other> = One extends {
|
|
3717
|
+
action: infer Tag;
|
|
3718
|
+
} ? Extract<Other, {
|
|
3719
|
+
action: Tag;
|
|
3720
|
+
}> : One extends {
|
|
3721
|
+
kind: infer Tag;
|
|
3722
|
+
} ? Extract<Other, {
|
|
3723
|
+
kind: Tag;
|
|
3724
|
+
}> : Other;
|
|
3725
|
+
/**
|
|
3726
|
+
* The keys of `One` that `Other` does not declare, each as the path that
|
|
3727
|
+
* reaches it; `never` when there are none.
|
|
3728
|
+
*/
|
|
3729
|
+
type UndeclaredKeys<One, Other, At extends string = ''> = One extends readonly (infer Item)[] ? UndeclaredKeys<Item, Other extends readonly (infer Element)[] ? Element : never, `${At}[]`> : One extends object ? {
|
|
3730
|
+
[Key in keyof One & string]-?: Key extends KeysOfAny<SameVariant<One, Other>> ? UndeclaredKeys<One[Key], ValueAt<SameVariant<One, Other>, Key>, `${At}.${Key}`> : `${At}.${Key}`;
|
|
3731
|
+
}[keyof One & string] : never;
|
|
3732
|
+
/** Compiles for `never` alone. */
|
|
3733
|
+
type None<Paths extends never> = Paths;
|
|
3734
|
+
/** A key a handler may read that the schema would drop. */
|
|
3735
|
+
export type KeysTheSchemaDrops = None<UndeclaredKeys<SidecarRequest, ValidatedSidecarRequest>>;
|
|
3736
|
+
/** A key the schema lets through that no handler's type knows. */
|
|
3737
|
+
export type KeysNoHandlerKnows = None<UndeclaredKeys<ValidatedSidecarRequest, SidecarRequest>>;
|
|
3738
|
+
export {};
|