carrick 0.3.134 → 0.3.136
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 +6 -6
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/capture/api.d.ts +11 -2
- package/sidecar/dist/src/capture/index.js +89 -1
- package/sidecar/dist/src/capture/machine-paths.d.ts +44 -0
- package/sidecar/dist/src/capture/machine-paths.js +97 -0
- package/sidecar/dist/src/capture/node-builder.d.ts +2 -0
- package/sidecar/dist/src/capture/node-builder.js +1 -1
- package/sidecar/dist/src/index.js +17 -11
- package/sidecar/dist/src/library-claims.d.ts +37 -3
- package/sidecar/dist/src/library-claims.js +408 -65
- package/sidecar/dist/src/type-inferrer.d.ts +63 -19
- package/sidecar/dist/src/type-inferrer.js +192 -71
- package/sidecar/dist/src/types.d.ts +30 -3
- package/sidecar/dist/src/validators.d.ts +18 -0
- package/sidecar/dist/src/validators.js +3 -0
|
@@ -679,6 +679,12 @@ export interface ListLibrarySurfaceRequest extends BaseRequest {
|
|
|
679
679
|
max_entries?: number;
|
|
680
680
|
/** Per package, the only exports to list (the ones the service imports); absent lists every value export. */
|
|
681
681
|
exports?: Record<string, string[]>;
|
|
682
|
+
/** List each member's handler-parameter members (`handlers`, carrick#2674 S3); default false (carrick#2966). */
|
|
683
|
+
handlers?: boolean;
|
|
684
|
+
/** The most handler-parameter members the whole listing lists; default 500000 (carrick#3016). */
|
|
685
|
+
max_handler_members?: number;
|
|
686
|
+
/** List each signature's `result_candidates` (carrick#2817); default false (carrick#2966). */
|
|
687
|
+
result_candidates?: boolean;
|
|
682
688
|
}
|
|
683
689
|
/**
|
|
684
690
|
* Union type for all possible sidecar requests
|
|
@@ -982,6 +988,12 @@ export interface SemanticsResult {
|
|
|
982
988
|
reason?: string;
|
|
983
989
|
/** Verified op verdicts only: the declarations its member resolves to on the receiver. */
|
|
984
990
|
declarations?: SemanticsDeclaration[];
|
|
991
|
+
/**
|
|
992
|
+
* Verified receive op verdicts only: the op verified but its `request`
|
|
993
|
+
* names a member the declarations lack, so the request is dropped and the
|
|
994
|
+
* route kept (carrick#2968). The reason, `request_member_missing`.
|
|
995
|
+
*/
|
|
996
|
+
request_dropped?: string;
|
|
985
997
|
}
|
|
986
998
|
/** How one package of the request resolved, for logs. */
|
|
987
999
|
export interface SemanticsModule {
|
|
@@ -1032,8 +1044,9 @@ export interface SurfaceSignature {
|
|
|
1032
1044
|
returns: string;
|
|
1033
1045
|
/**
|
|
1034
1046
|
* Which parts of the awaited return could hold the response body
|
|
1035
|
-
* (carrick#2817). Left out of the surface hash.
|
|
1036
|
-
*
|
|
1047
|
+
* (carrick#2817). Left out of the surface hash. Listed only on a
|
|
1048
|
+
* `result_candidates: true` request (carrick#2966); absent when the
|
|
1049
|
+
* signature returns nothing.
|
|
1037
1050
|
*/
|
|
1038
1051
|
result_candidates?: SurfaceResultCandidates;
|
|
1039
1052
|
}
|
|
@@ -1065,9 +1078,17 @@ export interface SurfaceMember {
|
|
|
1065
1078
|
/**
|
|
1066
1079
|
* The members the parameters of a function this member takes declare
|
|
1067
1080
|
* (carrick#2674): what a receive op's `request` field names its member
|
|
1068
|
-
* paths in.
|
|
1081
|
+
* paths in. Listed only on a `handlers: true` request, under a cap of
|
|
1082
|
+
* their own: 500 members per parameter, top-level first (carrick#2966).
|
|
1069
1083
|
*/
|
|
1070
1084
|
handlers?: SurfaceHandler[];
|
|
1085
|
+
/**
|
|
1086
|
+
* The object this member returns when called with a path, listed as a
|
|
1087
|
+
* receiver (id `R>scope:m`) when routes are registered on it (carrick#2774).
|
|
1088
|
+
* Instance receivers only, one level, under a cap of its own, and left out
|
|
1089
|
+
* of the hash.
|
|
1090
|
+
*/
|
|
1091
|
+
scope_receiver?: SurfaceReceiver;
|
|
1071
1092
|
signatures: SurfaceSignature[];
|
|
1072
1093
|
}
|
|
1073
1094
|
/**
|
|
@@ -1116,6 +1137,12 @@ export interface LibrarySurface {
|
|
|
1116
1137
|
reason?: string;
|
|
1117
1138
|
/** Entries dropped by `max_entries`. */
|
|
1118
1139
|
truncated: number;
|
|
1140
|
+
/**
|
|
1141
|
+
* With `handlers: true`, the handler-parameter members dropped by the cap of
|
|
1142
|
+
* 500 per parameter (carrick#2966) and the parameters the listing's budget
|
|
1143
|
+
* left out (`max_handler_members`, carrick#3016), summed over every parameter.
|
|
1144
|
+
*/
|
|
1145
|
+
handlers_truncated?: number;
|
|
1119
1146
|
exports: SurfaceExport[];
|
|
1120
1147
|
}
|
|
1121
1148
|
export interface ListLibrarySurfaceResponse extends BaseResponse {
|
|
@@ -2810,20 +2810,29 @@ export declare const ListLibrarySurfaceRequestSchema: z.ZodObject<{
|
|
|
2810
2810
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
2811
2811
|
max_entries: z.ZodOptional<z.ZodNumber>;
|
|
2812
2812
|
exports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
2813
|
+
handlers: z.ZodOptional<z.ZodBoolean>;
|
|
2814
|
+
result_candidates: z.ZodOptional<z.ZodBoolean>;
|
|
2815
|
+
max_handler_members: z.ZodOptional<z.ZodNumber>;
|
|
2813
2816
|
}, "strip", z.ZodTypeAny, {
|
|
2814
2817
|
packages: string[];
|
|
2815
2818
|
request_id: string;
|
|
2816
2819
|
action: "list_library_surface";
|
|
2817
2820
|
from_dir: string;
|
|
2821
|
+
handlers?: boolean | undefined;
|
|
2822
|
+
result_candidates?: boolean | undefined;
|
|
2818
2823
|
max_entries?: number | undefined;
|
|
2819
2824
|
exports?: Record<string, string[]> | undefined;
|
|
2825
|
+
max_handler_members?: number | undefined;
|
|
2820
2826
|
}, {
|
|
2821
2827
|
packages: string[];
|
|
2822
2828
|
request_id: string;
|
|
2823
2829
|
action: "list_library_surface";
|
|
2824
2830
|
from_dir: string;
|
|
2831
|
+
handlers?: boolean | undefined;
|
|
2832
|
+
result_candidates?: boolean | undefined;
|
|
2825
2833
|
max_entries?: number | undefined;
|
|
2826
2834
|
exports?: Record<string, string[]> | undefined;
|
|
2835
|
+
max_handler_members?: number | undefined;
|
|
2827
2836
|
}>;
|
|
2828
2837
|
/**
|
|
2829
2838
|
* The main sidecar request schema - a discriminated union on the 'action' field
|
|
@@ -5388,20 +5397,29 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
5388
5397
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
5389
5398
|
max_entries: z.ZodOptional<z.ZodNumber>;
|
|
5390
5399
|
exports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
5400
|
+
handlers: z.ZodOptional<z.ZodBoolean>;
|
|
5401
|
+
result_candidates: z.ZodOptional<z.ZodBoolean>;
|
|
5402
|
+
max_handler_members: z.ZodOptional<z.ZodNumber>;
|
|
5391
5403
|
}, "strip", z.ZodTypeAny, {
|
|
5392
5404
|
packages: string[];
|
|
5393
5405
|
request_id: string;
|
|
5394
5406
|
action: "list_library_surface";
|
|
5395
5407
|
from_dir: string;
|
|
5408
|
+
handlers?: boolean | undefined;
|
|
5409
|
+
result_candidates?: boolean | undefined;
|
|
5396
5410
|
max_entries?: number | undefined;
|
|
5397
5411
|
exports?: Record<string, string[]> | undefined;
|
|
5412
|
+
max_handler_members?: number | undefined;
|
|
5398
5413
|
}, {
|
|
5399
5414
|
packages: string[];
|
|
5400
5415
|
request_id: string;
|
|
5401
5416
|
action: "list_library_surface";
|
|
5402
5417
|
from_dir: string;
|
|
5418
|
+
handlers?: boolean | undefined;
|
|
5419
|
+
result_candidates?: boolean | undefined;
|
|
5403
5420
|
max_entries?: number | undefined;
|
|
5404
5421
|
exports?: Record<string, string[]> | undefined;
|
|
5422
|
+
max_handler_members?: number | undefined;
|
|
5405
5423
|
}>, z.ZodObject<{
|
|
5406
5424
|
request_id: z.ZodString;
|
|
5407
5425
|
} & {
|
|
@@ -588,6 +588,9 @@ export const ListLibrarySurfaceRequestSchema = BaseRequestSchema.extend({
|
|
|
588
588
|
packages: z.array(z.string().min(1)),
|
|
589
589
|
max_entries: z.number().int().positive().optional(),
|
|
590
590
|
exports: z.record(z.string(), z.array(z.string().min(1))).optional(),
|
|
591
|
+
handlers: z.boolean().optional(),
|
|
592
|
+
result_candidates: z.boolean().optional(),
|
|
593
|
+
max_handler_members: z.number().int().positive().optional(),
|
|
591
594
|
});
|
|
592
595
|
// ============================================================================
|
|
593
596
|
// Discriminated Union Schema
|