carrick 0.3.157 → 0.3.158
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/dist/cli.d.ts +7 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/contract.d.ts +8 -1
- package/dist/contract.js.map +1 -1
- package/dist/engine-ask.d.ts +21 -0
- package/dist/engine-ask.js +50 -0
- package/dist/engine-ask.js.map +1 -0
- package/dist/facts/diff.d.ts +14 -1
- package/dist/facts/diff.js +21 -8
- package/dist/facts/diff.js.map +1 -1
- package/dist/facts/fetch.d.ts +7 -0
- package/dist/facts/fetch.js +22 -1
- package/dist/facts/fetch.js.map +1 -1
- package/dist/facts/lines.d.ts +22 -4
- package/dist/facts/lines.js +31 -9
- package/dist/facts/lines.js.map +1 -1
- package/dist/facts/peers.d.ts +13 -4
- package/dist/facts/peers.js +17 -15
- package/dist/facts/peers.js.map +1 -1
- package/dist/facts/rules/packages.js +3 -1
- package/dist/facts/rules/packages.js.map +1 -1
- package/dist/facts/rules/same-name.js +1 -1
- package/dist/facts/rules/same-name.js.map +1 -1
- package/dist/facts/store.d.ts +15 -0
- package/dist/facts/store.js +30 -0
- package/dist/facts/store.js.map +1 -1
- package/dist/held/backoff.d.ts +8 -0
- package/dist/held/backoff.js +43 -0
- package/dist/held/backoff.js.map +1 -0
- package/dist/held/build.d.ts +17 -0
- package/dist/held/build.js +62 -0
- package/dist/held/build.js.map +1 -0
- package/dist/held/client.d.ts +12 -3
- package/dist/held/client.js +123 -8
- package/dist/held/client.js.map +1 -1
- package/dist/held/daemon.d.ts +47 -2
- package/dist/held/daemon.js +115 -23
- package/dist/held/daemon.js.map +1 -1
- package/dist/held/early.d.ts +28 -0
- package/dist/held/early.js +115 -0
- package/dist/held/early.js.map +1 -0
- package/dist/held/paths.d.ts +6 -0
- package/dist/held/paths.js +17 -0
- package/dist/held/paths.js.map +1 -1
- package/dist/held/place.d.ts +76 -30
- package/dist/held/place.js +121 -83
- package/dist/held/place.js.map +1 -1
- package/dist/held/run.js +24 -6
- package/dist/held/run.js.map +1 -1
- package/dist/held/runtime.d.ts +22 -0
- package/dist/held/runtime.js +612 -0
- package/dist/held/runtime.js.map +1 -0
- package/dist/held/shadow.d.ts +33 -0
- package/dist/held/shadow.js +68 -0
- package/dist/held/shadow.js.map +1 -0
- package/dist/held/steps.d.ts +11 -0
- package/dist/held/steps.js +29 -0
- package/dist/held/steps.js.map +1 -0
- package/dist/hook/confirm.d.ts +79 -0
- package/dist/hook/confirm.js +220 -0
- package/dist/hook/confirm.js.map +1 -0
- package/dist/hook/edit-flow.d.ts +14 -3
- package/dist/hook/edit-flow.js +113 -33
- package/dist/hook/edit-flow.js.map +1 -1
- package/dist/hook/generation.d.ts +19 -0
- package/dist/hook/generation.js +75 -0
- package/dist/hook/generation.js.map +1 -0
- package/dist/hook/late.d.ts +50 -9
- package/dist/hook/late.js +104 -24
- package/dist/hook/late.js.map +1 -1
- package/dist/hook/post-bash.js +3 -3
- package/dist/hook/post-bash.js.map +1 -1
- package/dist/hook/post-edit.js +2 -2
- package/dist/hook/post-edit.js.map +1 -1
- package/dist/hook/post-read.js +25 -3
- package/dist/hook/post-read.js.map +1 -1
- package/dist/hook/post-search.js +1 -1
- package/dist/hook/post-search.js.map +1 -1
- package/dist/hook/probe.js +1 -0
- package/dist/hook/probe.js.map +1 -1
- package/dist/hook/read-answer.d.ts +5 -0
- package/dist/hook/read-answer.js +8 -4
- package/dist/hook/read-answer.js.map +1 -1
- package/dist/hook/rechecks.d.ts +58 -2
- package/dist/hook/rechecks.js +132 -9
- package/dist/hook/rechecks.js.map +1 -1
- package/dist/hook/session-start.d.ts +1 -1
- package/dist/hook/session-start.js +19 -5
- package/dist/hook/session-start.js.map +1 -1
- package/dist/hook/similar.d.ts +1 -1
- package/dist/hook/similar.js +21 -8
- package/dist/hook/similar.js.map +1 -1
- package/dist/hook/stop-wait.js +35 -16
- package/dist/hook/stop-wait.js.map +1 -1
- package/dist/hook/timings.d.ts +29 -1
- package/dist/hook/timings.js +7 -1
- package/dist/hook/timings.js.map +1 -1
- package/dist/hook/user-prompt.js +2 -2
- package/dist/hook/user-prompt.js.map +1 -1
- package/dist/hosted-snapshot.d.ts +27 -0
- package/dist/hosted-snapshot.js +32 -0
- package/dist/hosted-snapshot.js.map +1 -1
- package/dist/init/hosted.js +2 -9
- package/dist/init/hosted.js.map +1 -1
- package/dist/render.d.ts +15 -1
- package/dist/render.js +50 -4
- package/dist/render.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +6 -6
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/capture/anchors.d.ts +8 -0
- package/sidecar/dist/src/capture/anchors.js +3 -2
- package/sidecar/dist/src/capture/api.d.ts +70 -3
- package/sidecar/dist/src/capture/check-classify.d.ts +7 -0
- package/sidecar/dist/src/capture/check-classify.js +24 -0
- package/sidecar/dist/src/capture/check-probe.d.ts +76 -7
- package/sidecar/dist/src/capture/check-probe.js +147 -19
- package/sidecar/dist/src/capture/check.js +13 -1
- package/sidecar/dist/src/capture/graphql-leaves.d.ts +46 -0
- package/sidecar/dist/src/capture/graphql-leaves.js +142 -0
- package/sidecar/dist/src/capture/index.d.ts +4 -1
- package/sidecar/dist/src/capture/index.js +3 -1
- package/sidecar/dist/src/definition-resolver.d.ts +2 -1
- package/sidecar/dist/src/definition-resolver.js +15 -9
- package/sidecar/dist/src/engine-stamp.json +1 -1
- package/sidecar/dist/src/held-shadow.d.ts +12 -2
- package/sidecar/dist/src/held-shadow.js +9 -9
- package/sidecar/dist/src/index.js +18 -1
- package/sidecar/dist/src/library-claims.js +26 -3
- package/sidecar/dist/src/retype.d.ts +47 -0
- package/sidecar/dist/src/retype.js +274 -18
- package/sidecar/dist/src/site-find.d.ts +27 -0
- package/sidecar/dist/src/site-find.js +109 -0
- package/sidecar/dist/src/type-inferrer.d.ts +5 -0
- package/sidecar/dist/src/type-inferrer.js +8 -4
- package/sidecar/dist/src/type-structural-expander.d.ts +10 -0
- package/sidecar/dist/src/type-structural-expander.js +73 -4
- package/sidecar/dist/src/types.d.ts +50 -2
- package/sidecar/dist/src/validators.d.ts +328 -8
- package/sidecar/dist/src/validators.js +29 -0
|
@@ -244,9 +244,24 @@ export const CaptureV2RequestSchema = BaseRequestSchema.extend({
|
|
|
244
244
|
backfill_texts: z.record(z.string()).optional(),
|
|
245
245
|
backfill_out_dir: z.string().min(1).optional(),
|
|
246
246
|
});
|
|
247
|
+
const GraphqlLeafSchema = z.lazy(() => z.union([
|
|
248
|
+
z.object({ scalar: z.string().min(1) }).strict(),
|
|
249
|
+
z.object({ enum: z.string().min(1) }).strict(),
|
|
250
|
+
z.object({ list: GraphqlLeafSchema }).strict(),
|
|
251
|
+
z.object({ non_null: GraphqlLeafSchema }).strict(),
|
|
252
|
+
z.object({ type: z.string().min(1) }).strict(),
|
|
253
|
+
]));
|
|
254
|
+
/** carrick#4403: a service's SDL output types by name (`GraphqlTypes`). */
|
|
255
|
+
const GraphqlTypesSchema = z.record(z.union([
|
|
256
|
+
z.object({ fields: z.record(GraphqlLeafSchema) }).strict(),
|
|
257
|
+
z.object({ members: z.array(z.string().min(1)) }).strict(),
|
|
258
|
+
]));
|
|
259
|
+
/** carrick#4403: the root field a GraphQL producer response answers. */
|
|
260
|
+
const GraphqlRootSchema = z.object({ type: z.string().min(1), field: z.string().min(1) });
|
|
247
261
|
const CheckStubInputSchema = z.object({
|
|
248
262
|
service_name: z.string().min(1),
|
|
249
263
|
stub_dir: z.string().min(1),
|
|
264
|
+
graphql_types: GraphqlTypesSchema.optional(),
|
|
250
265
|
});
|
|
251
266
|
const CheckPairEndpointSchema = z.object({
|
|
252
267
|
service_name: z.string().min(1),
|
|
@@ -260,6 +275,8 @@ const CheckPairSpecSchema = z
|
|
|
260
275
|
producer: CheckPairEndpointSchema,
|
|
261
276
|
consumer: CheckPairEndpointSchema,
|
|
262
277
|
topic: z.string().min(1).optional(),
|
|
278
|
+
procedure: z.literal(true).optional(),
|
|
279
|
+
graphql_root: GraphqlRootSchema.optional(),
|
|
263
280
|
})
|
|
264
281
|
.superRefine((spec, ctx) => {
|
|
265
282
|
// carrick#1979: the topic is the pub/sub operation's own key. It is
|
|
@@ -307,6 +324,14 @@ export const WriteShadowRequestSchema = BaseRequestSchema.extend({
|
|
|
307
324
|
action: z.literal('write_shadow'),
|
|
308
325
|
out_dir: z.string().min(1),
|
|
309
326
|
});
|
|
327
|
+
export const FindSiteRequestSchema = BaseRequestSchema.extend({
|
|
328
|
+
action: z.literal('find_site'),
|
|
329
|
+
file: z.string().min(1),
|
|
330
|
+
oldText: z.string(),
|
|
331
|
+
newText: z.string(),
|
|
332
|
+
start: z.number().int().nonnegative(),
|
|
333
|
+
end: z.number().int().nonnegative(),
|
|
334
|
+
});
|
|
310
335
|
export const ReachGraphRequestSchema = BaseRequestSchema.extend({
|
|
311
336
|
action: z.literal('reach_graph'),
|
|
312
337
|
});
|
|
@@ -359,6 +384,7 @@ export const ImplementationsRequestSchema = BaseRequestSchema.extend({
|
|
|
359
384
|
export const ResolveDefinitionsRequestSchema = BaseRequestSchema.extend({
|
|
360
385
|
action: z.literal('resolve_definitions'),
|
|
361
386
|
stub_dir: z.string().min(1, 'Stub dir cannot be empty'),
|
|
387
|
+
graphql_types: GraphqlTypesSchema.optional(),
|
|
362
388
|
aliases: z
|
|
363
389
|
.array(z.object({
|
|
364
390
|
alias: z.string().min(1),
|
|
@@ -366,6 +392,7 @@ export const ResolveDefinitionsRequestSchema = BaseRequestSchema.extend({
|
|
|
366
392
|
type_kind: z.enum(['request', 'response']),
|
|
367
393
|
side: z.enum(['producer', 'consumer']),
|
|
368
394
|
procedure: z.boolean(),
|
|
395
|
+
graphql_root: GraphqlRootSchema.optional(),
|
|
369
396
|
}))
|
|
370
397
|
.min(1, 'At least one alias is required'),
|
|
371
398
|
});
|
|
@@ -386,6 +413,7 @@ const RetypeItemSchema = RetypeLocatorItemSchema.extend({
|
|
|
386
413
|
producer_type: z.string().min(1),
|
|
387
414
|
producer_unwidened_type: z.string().min(1).optional(),
|
|
388
415
|
wire: z.boolean(),
|
|
416
|
+
procedure_path: z.string().min(1).optional(),
|
|
389
417
|
});
|
|
390
418
|
export const RetypeCheckRequestSchema = BaseRequestSchema.extend({
|
|
391
419
|
action: z.literal('retype_check'),
|
|
@@ -742,6 +770,7 @@ export const SidecarRequestSchema = z.discriminatedUnion('action', [
|
|
|
742
770
|
ShutdownRequestSchema,
|
|
743
771
|
ListProgramFilesRequestSchema,
|
|
744
772
|
WriteShadowRequestSchema,
|
|
773
|
+
FindSiteRequestSchema,
|
|
745
774
|
ReachGraphRequestSchema,
|
|
746
775
|
ReachRequestSchema,
|
|
747
776
|
AddProgramFilesRequestSchema,
|