carrick 0.3.89 → 0.3.91
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/README.md +5 -3
- package/dist/auth/oauth.d.ts +8 -0
- package/dist/auth/oauth.js +65 -11
- package/dist/auth/oauth.js.map +1 -1
- package/dist/init/connect.d.ts +42 -3
- package/dist/init/connect.js +172 -113
- package/dist/init/connect.js.map +1 -1
- package/dist/init/doctor.js +2 -2
- package/dist/init/doctor.js.map +1 -1
- package/dist/init/mcp.d.ts +11 -0
- package/dist/init/mcp.js +14 -8
- package/dist/init/mcp.js.map +1 -1
- package/dist/init/output.d.ts +6 -0
- package/dist/init/output.js +37 -2
- package/dist/init/output.js.map +1 -1
- package/dist/init/projects.d.ts +56 -5
- package/dist/init/projects.js +124 -17
- package/dist/init/projects.js.map +1 -1
- package/dist/init/remove.js +2 -2
- package/dist/init/remove.js.map +1 -1
- package/dist/init/repos.d.ts +33 -0
- package/dist/init/repos.js +8 -1
- package/dist/init/repos.js.map +1 -1
- package/dist/init/run.d.ts +64 -36
- package/dist/init/run.js +268 -166
- package/dist/init/run.js.map +1 -1
- package/package.json +6 -6
- package/sidecar/dist/src/capture/api.d.ts +13 -1
- package/sidecar/dist/src/capture/check-classify.js +12 -7
- package/sidecar/dist/src/capture/check-probe.d.ts +10 -0
- package/sidecar/dist/src/capture/check-probe.js +21 -3
- package/sidecar/dist/src/capture/check.js +1 -0
- package/sidecar/dist/src/capture/index.d.ts +1 -0
- package/sidecar/dist/src/capture/index.js +1 -0
- package/sidecar/dist/src/index.js +37 -9
- package/sidecar/dist/src/retype.d.ts +67 -0
- package/sidecar/dist/src/retype.js +813 -0
- package/sidecar/dist/src/type-inferrer.d.ts +85 -1
- package/sidecar/dist/src/type-inferrer.js +384 -1
- package/sidecar/dist/src/types.d.ts +58 -2
- package/sidecar/dist/src/validators.d.ts +153 -20
- package/sidecar/dist/src/validators.js +17 -0
|
@@ -545,9 +545,6 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
545
545
|
service_name: string;
|
|
546
546
|
}>;
|
|
547
547
|
}, "strip", z.ZodTypeAny, {
|
|
548
|
-
pair_key: string;
|
|
549
|
-
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
550
|
-
type_kind: "request" | "response" | "both";
|
|
551
548
|
producer: {
|
|
552
549
|
alias: string;
|
|
553
550
|
service_name: string;
|
|
@@ -556,10 +553,10 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
556
553
|
alias: string;
|
|
557
554
|
service_name: string;
|
|
558
555
|
};
|
|
559
|
-
}, {
|
|
560
556
|
pair_key: string;
|
|
561
557
|
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
562
558
|
type_kind: "request" | "response" | "both";
|
|
559
|
+
}, {
|
|
563
560
|
producer: {
|
|
564
561
|
alias: string;
|
|
565
562
|
service_name: string;
|
|
@@ -568,6 +565,9 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
568
565
|
alias: string;
|
|
569
566
|
service_name: string;
|
|
570
567
|
};
|
|
568
|
+
pair_key: string;
|
|
569
|
+
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
570
|
+
type_kind: "request" | "response" | "both";
|
|
571
571
|
}>, "many">;
|
|
572
572
|
workspace_root: z.ZodOptional<z.ZodString>;
|
|
573
573
|
keep_workspace: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -579,9 +579,6 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
579
579
|
stub_dir: string;
|
|
580
580
|
}[];
|
|
581
581
|
pairs: {
|
|
582
|
-
pair_key: string;
|
|
583
|
-
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
584
|
-
type_kind: "request" | "response" | "both";
|
|
585
582
|
producer: {
|
|
586
583
|
alias: string;
|
|
587
584
|
service_name: string;
|
|
@@ -590,6 +587,9 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
590
587
|
alias: string;
|
|
591
588
|
service_name: string;
|
|
592
589
|
};
|
|
590
|
+
pair_key: string;
|
|
591
|
+
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
592
|
+
type_kind: "request" | "response" | "both";
|
|
593
593
|
}[];
|
|
594
594
|
workspace_root?: string | undefined;
|
|
595
595
|
keep_workspace?: boolean | undefined;
|
|
@@ -601,9 +601,6 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
601
601
|
stub_dir: string;
|
|
602
602
|
}[];
|
|
603
603
|
pairs: {
|
|
604
|
-
pair_key: string;
|
|
605
|
-
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
606
|
-
type_kind: "request" | "response" | "both";
|
|
607
604
|
producer: {
|
|
608
605
|
alias: string;
|
|
609
606
|
service_name: string;
|
|
@@ -612,6 +609,9 @@ export declare const CheckV2RequestSchema: z.ZodObject<{
|
|
|
612
609
|
alias: string;
|
|
613
610
|
service_name: string;
|
|
614
611
|
};
|
|
612
|
+
pair_key: string;
|
|
613
|
+
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
614
|
+
type_kind: "request" | "response" | "both";
|
|
615
615
|
}[];
|
|
616
616
|
workspace_root?: string | undefined;
|
|
617
617
|
keep_workspace?: boolean | undefined;
|
|
@@ -1129,6 +1129,73 @@ export declare const ResolveDefinitionsRequestSchema: z.ZodObject<{
|
|
|
1129
1129
|
stub_dir: string;
|
|
1130
1130
|
aliases: string[];
|
|
1131
1131
|
}>;
|
|
1132
|
+
export declare const RetypeCheckRequestSchema: z.ZodObject<{
|
|
1133
|
+
request_id: z.ZodString;
|
|
1134
|
+
} & {
|
|
1135
|
+
action: z.ZodLiteral<"retype_check">;
|
|
1136
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1137
|
+
item_id: z.ZodString;
|
|
1138
|
+
file_path: z.ZodString;
|
|
1139
|
+
line_number: z.ZodNumber;
|
|
1140
|
+
span_start: z.ZodOptional<z.ZodNumber>;
|
|
1141
|
+
span_end: z.ZodOptional<z.ZodNumber>;
|
|
1142
|
+
expression_text: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
expression_line: z.ZodOptional<z.ZodNumber>;
|
|
1144
|
+
producer_type: z.ZodString;
|
|
1145
|
+
wire: z.ZodBoolean;
|
|
1146
|
+
}, "strip", z.ZodTypeAny, {
|
|
1147
|
+
wire: boolean;
|
|
1148
|
+
file_path: string;
|
|
1149
|
+
line_number: number;
|
|
1150
|
+
item_id: string;
|
|
1151
|
+
producer_type: string;
|
|
1152
|
+
span_start?: number | undefined;
|
|
1153
|
+
span_end?: number | undefined;
|
|
1154
|
+
expression_text?: string | undefined;
|
|
1155
|
+
expression_line?: number | undefined;
|
|
1156
|
+
}, {
|
|
1157
|
+
wire: boolean;
|
|
1158
|
+
file_path: string;
|
|
1159
|
+
line_number: number;
|
|
1160
|
+
item_id: string;
|
|
1161
|
+
producer_type: string;
|
|
1162
|
+
span_start?: number | undefined;
|
|
1163
|
+
span_end?: number | undefined;
|
|
1164
|
+
expression_text?: string | undefined;
|
|
1165
|
+
expression_line?: number | undefined;
|
|
1166
|
+
}>, "many">;
|
|
1167
|
+
budget_ms: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
+
}, "strip", z.ZodTypeAny, {
|
|
1169
|
+
request_id: string;
|
|
1170
|
+
action: "retype_check";
|
|
1171
|
+
items: {
|
|
1172
|
+
wire: boolean;
|
|
1173
|
+
file_path: string;
|
|
1174
|
+
line_number: number;
|
|
1175
|
+
item_id: string;
|
|
1176
|
+
producer_type: string;
|
|
1177
|
+
span_start?: number | undefined;
|
|
1178
|
+
span_end?: number | undefined;
|
|
1179
|
+
expression_text?: string | undefined;
|
|
1180
|
+
expression_line?: number | undefined;
|
|
1181
|
+
}[];
|
|
1182
|
+
budget_ms?: number | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
request_id: string;
|
|
1185
|
+
action: "retype_check";
|
|
1186
|
+
items: {
|
|
1187
|
+
wire: boolean;
|
|
1188
|
+
file_path: string;
|
|
1189
|
+
line_number: number;
|
|
1190
|
+
item_id: string;
|
|
1191
|
+
producer_type: string;
|
|
1192
|
+
span_start?: number | undefined;
|
|
1193
|
+
span_end?: number | undefined;
|
|
1194
|
+
expression_text?: string | undefined;
|
|
1195
|
+
expression_line?: number | undefined;
|
|
1196
|
+
}[];
|
|
1197
|
+
budget_ms?: number | undefined;
|
|
1198
|
+
}>;
|
|
1132
1199
|
/**
|
|
1133
1200
|
* The main sidecar request schema - a discriminated union on the 'action' field
|
|
1134
1201
|
*/
|
|
@@ -1610,9 +1677,6 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1610
1677
|
service_name: string;
|
|
1611
1678
|
}>;
|
|
1612
1679
|
}, "strip", z.ZodTypeAny, {
|
|
1613
|
-
pair_key: string;
|
|
1614
|
-
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1615
|
-
type_kind: "request" | "response" | "both";
|
|
1616
1680
|
producer: {
|
|
1617
1681
|
alias: string;
|
|
1618
1682
|
service_name: string;
|
|
@@ -1621,10 +1685,10 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1621
1685
|
alias: string;
|
|
1622
1686
|
service_name: string;
|
|
1623
1687
|
};
|
|
1624
|
-
}, {
|
|
1625
1688
|
pair_key: string;
|
|
1626
1689
|
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1627
1690
|
type_kind: "request" | "response" | "both";
|
|
1691
|
+
}, {
|
|
1628
1692
|
producer: {
|
|
1629
1693
|
alias: string;
|
|
1630
1694
|
service_name: string;
|
|
@@ -1633,6 +1697,9 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1633
1697
|
alias: string;
|
|
1634
1698
|
service_name: string;
|
|
1635
1699
|
};
|
|
1700
|
+
pair_key: string;
|
|
1701
|
+
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1702
|
+
type_kind: "request" | "response" | "both";
|
|
1636
1703
|
}>, "many">;
|
|
1637
1704
|
workspace_root: z.ZodOptional<z.ZodString>;
|
|
1638
1705
|
keep_workspace: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1644,9 +1711,6 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1644
1711
|
stub_dir: string;
|
|
1645
1712
|
}[];
|
|
1646
1713
|
pairs: {
|
|
1647
|
-
pair_key: string;
|
|
1648
|
-
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1649
|
-
type_kind: "request" | "response" | "both";
|
|
1650
1714
|
producer: {
|
|
1651
1715
|
alias: string;
|
|
1652
1716
|
service_name: string;
|
|
@@ -1655,6 +1719,9 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1655
1719
|
alias: string;
|
|
1656
1720
|
service_name: string;
|
|
1657
1721
|
};
|
|
1722
|
+
pair_key: string;
|
|
1723
|
+
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1724
|
+
type_kind: "request" | "response" | "both";
|
|
1658
1725
|
}[];
|
|
1659
1726
|
workspace_root?: string | undefined;
|
|
1660
1727
|
keep_workspace?: boolean | undefined;
|
|
@@ -1666,9 +1733,6 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1666
1733
|
stub_dir: string;
|
|
1667
1734
|
}[];
|
|
1668
1735
|
pairs: {
|
|
1669
|
-
pair_key: string;
|
|
1670
|
-
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1671
|
-
type_kind: "request" | "response" | "both";
|
|
1672
1736
|
producer: {
|
|
1673
1737
|
alias: string;
|
|
1674
1738
|
service_name: string;
|
|
@@ -1677,6 +1741,9 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
1677
1741
|
alias: string;
|
|
1678
1742
|
service_name: string;
|
|
1679
1743
|
};
|
|
1744
|
+
pair_key: string;
|
|
1745
|
+
protocol: "http" | "graphql" | "socket" | "pubsub";
|
|
1746
|
+
type_kind: "request" | "response" | "both";
|
|
1680
1747
|
}[];
|
|
1681
1748
|
workspace_root?: string | undefined;
|
|
1682
1749
|
keep_workspace?: boolean | undefined;
|
|
@@ -2169,6 +2236,72 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
|
|
|
2169
2236
|
aliases: string[];
|
|
2170
2237
|
}>, z.ZodObject<{
|
|
2171
2238
|
request_id: z.ZodString;
|
|
2239
|
+
} & {
|
|
2240
|
+
action: z.ZodLiteral<"retype_check">;
|
|
2241
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2242
|
+
item_id: z.ZodString;
|
|
2243
|
+
file_path: z.ZodString;
|
|
2244
|
+
line_number: z.ZodNumber;
|
|
2245
|
+
span_start: z.ZodOptional<z.ZodNumber>;
|
|
2246
|
+
span_end: z.ZodOptional<z.ZodNumber>;
|
|
2247
|
+
expression_text: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
expression_line: z.ZodOptional<z.ZodNumber>;
|
|
2249
|
+
producer_type: z.ZodString;
|
|
2250
|
+
wire: z.ZodBoolean;
|
|
2251
|
+
}, "strip", z.ZodTypeAny, {
|
|
2252
|
+
wire: boolean;
|
|
2253
|
+
file_path: string;
|
|
2254
|
+
line_number: number;
|
|
2255
|
+
item_id: string;
|
|
2256
|
+
producer_type: string;
|
|
2257
|
+
span_start?: number | undefined;
|
|
2258
|
+
span_end?: number | undefined;
|
|
2259
|
+
expression_text?: string | undefined;
|
|
2260
|
+
expression_line?: number | undefined;
|
|
2261
|
+
}, {
|
|
2262
|
+
wire: boolean;
|
|
2263
|
+
file_path: string;
|
|
2264
|
+
line_number: number;
|
|
2265
|
+
item_id: string;
|
|
2266
|
+
producer_type: string;
|
|
2267
|
+
span_start?: number | undefined;
|
|
2268
|
+
span_end?: number | undefined;
|
|
2269
|
+
expression_text?: string | undefined;
|
|
2270
|
+
expression_line?: number | undefined;
|
|
2271
|
+
}>, "many">;
|
|
2272
|
+
budget_ms: z.ZodOptional<z.ZodNumber>;
|
|
2273
|
+
}, "strip", z.ZodTypeAny, {
|
|
2274
|
+
request_id: string;
|
|
2275
|
+
action: "retype_check";
|
|
2276
|
+
items: {
|
|
2277
|
+
wire: boolean;
|
|
2278
|
+
file_path: string;
|
|
2279
|
+
line_number: number;
|
|
2280
|
+
item_id: string;
|
|
2281
|
+
producer_type: string;
|
|
2282
|
+
span_start?: number | undefined;
|
|
2283
|
+
span_end?: number | undefined;
|
|
2284
|
+
expression_text?: string | undefined;
|
|
2285
|
+
expression_line?: number | undefined;
|
|
2286
|
+
}[];
|
|
2287
|
+
budget_ms?: number | undefined;
|
|
2288
|
+
}, {
|
|
2289
|
+
request_id: string;
|
|
2290
|
+
action: "retype_check";
|
|
2291
|
+
items: {
|
|
2292
|
+
wire: boolean;
|
|
2293
|
+
file_path: string;
|
|
2294
|
+
line_number: number;
|
|
2295
|
+
item_id: string;
|
|
2296
|
+
producer_type: string;
|
|
2297
|
+
span_start?: number | undefined;
|
|
2298
|
+
span_end?: number | undefined;
|
|
2299
|
+
expression_text?: string | undefined;
|
|
2300
|
+
expression_line?: number | undefined;
|
|
2301
|
+
}[];
|
|
2302
|
+
budget_ms?: number | undefined;
|
|
2303
|
+
}>, z.ZodObject<{
|
|
2304
|
+
request_id: z.ZodString;
|
|
2172
2305
|
} & {
|
|
2173
2306
|
action: z.ZodLiteral<"health">;
|
|
2174
2307
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -283,6 +283,22 @@ export const ResolveDefinitionsRequestSchema = BaseRequestSchema.extend({
|
|
|
283
283
|
stub_dir: z.string().min(1, 'Stub dir cannot be empty'),
|
|
284
284
|
aliases: z.array(z.string().min(1)).min(1, 'At least one alias is required'),
|
|
285
285
|
});
|
|
286
|
+
const RetypeItemSchema = z.object({
|
|
287
|
+
item_id: z.string().min(1),
|
|
288
|
+
file_path: z.string().min(1),
|
|
289
|
+
line_number: z.number().int().positive(),
|
|
290
|
+
span_start: z.number().int().nonnegative().optional(),
|
|
291
|
+
span_end: z.number().int().nonnegative().optional(),
|
|
292
|
+
expression_text: z.string().optional(),
|
|
293
|
+
expression_line: z.number().int().positive().optional(),
|
|
294
|
+
producer_type: z.string().min(1),
|
|
295
|
+
wire: z.boolean(),
|
|
296
|
+
});
|
|
297
|
+
export const RetypeCheckRequestSchema = BaseRequestSchema.extend({
|
|
298
|
+
action: z.literal('retype_check'),
|
|
299
|
+
items: z.array(RetypeItemSchema).min(1, 'At least one item is required'),
|
|
300
|
+
budget_ms: z.number().int().nonnegative().optional(),
|
|
301
|
+
});
|
|
286
302
|
// ============================================================================
|
|
287
303
|
// Discriminated Union Schema
|
|
288
304
|
// ============================================================================
|
|
@@ -299,6 +315,7 @@ export const SidecarRequestSchema = z.discriminatedUnion('action', [
|
|
|
299
315
|
BuildWorkspaceRequestSchema,
|
|
300
316
|
CheckCompatibilityRequestSchema,
|
|
301
317
|
ResolveDefinitionsRequestSchema,
|
|
318
|
+
RetypeCheckRequestSchema,
|
|
302
319
|
HealthRequestSchema,
|
|
303
320
|
ShutdownRequestSchema,
|
|
304
321
|
]);
|