carrick 0.3.149 → 0.3.151
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/global-install.d.ts +2 -2
- package/dist/global-install.js +1 -1
- package/dist/global-install.js.map +1 -1
- package/dist/hook/post-edit.js +4 -0
- package/dist/hook/post-edit.js.map +1 -1
- package/dist/hook/rechecks.d.ts +6 -0
- package/dist/hook/rechecks.js +19 -0
- package/dist/hook/rechecks.js.map +1 -1
- package/dist/hook/reuse.d.ts +1 -0
- package/dist/hook/reuse.js +10 -1
- package/dist/hook/reuse.js.map +1 -1
- package/dist/hook/session-start.js +15 -13
- package/dist/hook/session-start.js.map +1 -1
- package/dist/hook/stop-wait.js +17 -3
- package/dist/hook/stop-wait.js.map +1 -1
- package/dist/hook/upgrade.d.ts +11 -0
- package/dist/hook/upgrade.js +81 -0
- package/dist/hook/upgrade.js.map +1 -0
- package/dist/hook/worktree.d.ts +10 -0
- package/dist/hook/worktree.js +45 -0
- package/dist/hook/worktree.js.map +1 -0
- package/dist/init/repo-copies.d.ts +2 -0
- package/dist/init/repo-copies.js +1 -1
- package/dist/init/repo-copies.js.map +1 -1
- package/dist/init/self-update.d.ts +2 -2
- package/dist/init/self-update.js +56 -12
- package/dist/init/self-update.js.map +1 -1
- package/dist/self-upgrade.d.ts +1 -0
- package/dist/self-upgrade.js +10 -0
- package/dist/self-upgrade.js.map +1 -0
- package/dist/upgrade.d.ts +26 -0
- package/dist/upgrade.js +86 -0
- package/dist/upgrade.js.map +1 -0
- package/package.json +6 -6
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/capture/anchors.d.ts +7 -0
- package/sidecar/dist/src/capture/anchors.js +13 -4
- package/sidecar/dist/src/capture/check-classify.js +4 -2
- package/sidecar/dist/src/capture/check.js +8 -4
- package/sidecar/dist/src/capture/deep-walk.d.ts +14 -8
- package/sidecar/dist/src/capture/deep-walk.js +26 -9
- package/sidecar/dist/src/capture/index.js +4 -2
- package/sidecar/dist/src/capture/self-check.d.ts +7 -0
- package/sidecar/dist/src/capture/self-check.js +19 -1
- package/sidecar/dist/src/capture/service-config.d.ts +5 -4
- package/sidecar/dist/src/capture/service-config.js +15 -12
- package/sidecar/dist/src/library-claims.js +244 -30
- package/sidecar/dist/src/position-rows.js +25 -3
- package/sidecar/dist/src/types.d.ts +27 -4
- package/sidecar/dist/src/validators.d.ts +284 -34
- package/sidecar/dist/src/validators.js +19 -3
|
@@ -443,12 +443,26 @@ const NamePartsSchema = z
|
|
|
443
443
|
const NameLiteralSchema = z.object({ literal: z.string().min(1) }).strict();
|
|
444
444
|
const BoundNameSchema = z
|
|
445
445
|
.object({
|
|
446
|
-
bound: z.enum(['maker', 'scope', 'key', 'path', 'export', 'subscribed']),
|
|
446
|
+
bound: z.enum(['maker', 'scope', 'key', 'path', 'export', 'subscribed', 'decorated']),
|
|
447
447
|
join: z.string().min(1).optional(),
|
|
448
448
|
param: z.number().int().nonnegative().optional(),
|
|
449
449
|
at: z.array(z.string().min(1)).optional(),
|
|
450
450
|
})
|
|
451
451
|
.strict();
|
|
452
|
+
/**
|
|
453
|
+
* Amendment 8: the first entry the call fills names the op, read in order. An
|
|
454
|
+
* entry is a plain slot or the decorated method's name. How many entries,
|
|
455
|
+
* their order and duplicates are the verifier's verdict, since one element
|
|
456
|
+
* this schema refuses fails the whole request.
|
|
457
|
+
*/
|
|
458
|
+
const NameFirstSchema = z
|
|
459
|
+
.object({
|
|
460
|
+
first: z.array(z.union([
|
|
461
|
+
z.object({ arg: z.number().int().nonnegative(), key: z.string().min(1).optional() }).strict(),
|
|
462
|
+
z.object({ bound: z.literal('decorated') }).strict(),
|
|
463
|
+
])),
|
|
464
|
+
})
|
|
465
|
+
.strict();
|
|
452
466
|
/** Procedure routers (#2474 R6a): where a router member takes its procedures, and how nested keys join. */
|
|
453
467
|
const CollectsSchema = z
|
|
454
468
|
.object({
|
|
@@ -528,7 +542,7 @@ const LibraryClaimSchema = z.discriminatedUnion('kind', [
|
|
|
528
542
|
kind: z.literal('scope'),
|
|
529
543
|
member: z.string().min(1),
|
|
530
544
|
form: z.enum(['call', 'decorate']).optional(),
|
|
531
|
-
// Exactly one of `name` and `
|
|
545
|
+
// Exactly one of `name`, `collects` and `merges`: the verifier's verdict (#2474 R6a).
|
|
532
546
|
name: NameSlotSchema.optional(),
|
|
533
547
|
path: MemberPathSchema.optional(),
|
|
534
548
|
on: ClaimOnSchema.optional(),
|
|
@@ -540,6 +554,8 @@ const LibraryClaimSchema = z.discriminatedUnion('kind', [
|
|
|
540
554
|
yields: YieldsSchema.optional(),
|
|
541
555
|
mounts: ClaimSlotSchema.optional(),
|
|
542
556
|
collects: CollectsSchema.optional(),
|
|
557
|
+
// Amendment 9: a rest slot of collections; the verifier's verdict pairs it.
|
|
558
|
+
merges: ClaimSlotSchema.optional(),
|
|
543
559
|
})
|
|
544
560
|
.strict(),
|
|
545
561
|
z
|
|
@@ -557,7 +573,7 @@ const LibraryClaimSchema = z.discriminatedUnion('kind', [
|
|
|
557
573
|
.strict()
|
|
558
574
|
.optional(),
|
|
559
575
|
returns: z.object({ result: ResultShapeSchema.optional() }).strict().optional(),
|
|
560
|
-
name: z.union([BoundNameSchema, NamePartsSchema, NameLiteralSchema, NameSlotSchema]).optional(),
|
|
576
|
+
name: z.union([BoundNameSchema, NamePartsSchema, NameLiteralSchema, NameFirstSchema, NameSlotSchema]).optional(),
|
|
561
577
|
payload: ClaimSlotSchema.optional(),
|
|
562
578
|
handler: ClaimSlotSchema.optional(),
|
|
563
579
|
ack: ClaimSlotSchema.optional(),
|