carrick 0.3.122 → 0.3.124
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/machinery.js +6 -0
- package/sidecar/dist/src/index.js +1 -1
- package/sidecar/dist/src/library-claims.d.ts +1 -1
- package/sidecar/dist/src/library-claims.js +170 -11
- package/sidecar/dist/src/position-rows.d.ts +61 -20
- package/sidecar/dist/src/position-rows.js +26 -168
- package/sidecar/dist/src/type-inferrer.js +21 -0
- package/sidecar/dist/src/types.d.ts +32 -2
- package/sidecar/dist/src/validators.d.ts +392 -60
- package/sidecar/dist/src/validators.js +14 -0
|
@@ -375,6 +375,15 @@ const YieldsSchema = z
|
|
|
375
375
|
side: z.string().min(1),
|
|
376
376
|
})
|
|
377
377
|
.strict();
|
|
378
|
+
/** Route fields (#2474 R0): member paths read off a handler's request parameter. */
|
|
379
|
+
const RequestAtSchema = z
|
|
380
|
+
.object({
|
|
381
|
+
param: z.number().int().nonnegative(),
|
|
382
|
+
path: z.array(z.string().min(1)).optional(),
|
|
383
|
+
url: z.array(z.string().min(1)).optional(),
|
|
384
|
+
method: z.array(z.string().min(1)).optional(),
|
|
385
|
+
})
|
|
386
|
+
.strict();
|
|
378
387
|
const ClaimOnSchema = z.enum(['export', 'instance', 'both']);
|
|
379
388
|
const MemberPathSchema = z.array(z.string().min(1));
|
|
380
389
|
const KeyLabelsSchema = z.record(z.string().min(1), z.enum(['name', 'not_name']));
|
|
@@ -415,6 +424,9 @@ const LibraryClaimSchema = z.discriminatedUnion('kind', [
|
|
|
415
424
|
key_labels: KeyLabelsSchema.optional(),
|
|
416
425
|
name_scope: NameScopeSchema.optional(),
|
|
417
426
|
picker: z.string().optional(),
|
|
427
|
+
runs: ClaimSlotSchema.optional(),
|
|
428
|
+
yields: YieldsSchema.optional(),
|
|
429
|
+
mounts: ClaimSlotSchema.optional(),
|
|
418
430
|
})
|
|
419
431
|
.strict(),
|
|
420
432
|
z
|
|
@@ -439,6 +451,7 @@ const LibraryClaimSchema = z.discriminatedUnion('kind', [
|
|
|
439
451
|
base: ClaimSlotSchema.optional(),
|
|
440
452
|
runs: RunsSlotSchema.optional(),
|
|
441
453
|
yields: YieldsSchema.optional(),
|
|
454
|
+
request: RequestAtSchema.optional(),
|
|
442
455
|
})
|
|
443
456
|
.strict(),
|
|
444
457
|
z
|
|
@@ -475,6 +488,7 @@ const LibraryCheckSchema = z
|
|
|
475
488
|
export const VerifyLibraryClaimsRequestSchema = BaseRequestSchema.extend({
|
|
476
489
|
action: z.literal('verify_library_claims'),
|
|
477
490
|
from_dir: z.string().min(1),
|
|
491
|
+
scan_root: z.string().min(1).optional(),
|
|
478
492
|
checks: z.array(LibraryCheckSchema),
|
|
479
493
|
// The contract's sample sends `null` for "no budget of the request's own".
|
|
480
494
|
budget_ms: z.number().int().nonnegative().nullable().optional(),
|