@contractspec/lib.contracts 1.45.4 → 1.45.6
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/app-config/contracts.d.ts +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/contract-registry/schemas.d.ts +6 -6
- package/dist/examples/schema.d.ts +14 -14
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/jsonschema.d.ts +17 -2
- package/dist/jsonschema.js +22 -3
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/prompt.d.ts +2 -9
- package/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/server/mcp/registerPrompts.js +28 -24
- package/dist/workspace-config/contractsrc-schema.d.ts +130 -72
- package/dist/workspace-config/contractsrc-schema.js +33 -2
- package/dist/workspace-config/index.d.ts +2 -2
- package/dist/workspace-config/index.js +2 -2
- package/package.json +5 -5
|
@@ -29,14 +29,14 @@ declare const OpenApiSourceConfigSchema: z$2.ZodObject<{
|
|
|
29
29
|
include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
30
30
|
prefix: z$2.ZodOptional<z$2.ZodString>;
|
|
31
31
|
defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
|
|
32
|
+
deprecated: "deprecated";
|
|
32
33
|
experimental: "experimental";
|
|
33
34
|
beta: "beta";
|
|
34
35
|
stable: "stable";
|
|
35
|
-
deprecated: "deprecated";
|
|
36
36
|
}>>;
|
|
37
37
|
defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
|
|
38
|
-
anonymous: "anonymous";
|
|
39
38
|
user: "user";
|
|
39
|
+
anonymous: "anonymous";
|
|
40
40
|
admin: "admin";
|
|
41
41
|
}>>;
|
|
42
42
|
defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
@@ -79,14 +79,14 @@ declare const OpenApiConfigSchema: z$2.ZodObject<{
|
|
|
79
79
|
include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
80
80
|
prefix: z$2.ZodOptional<z$2.ZodString>;
|
|
81
81
|
defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
|
|
82
|
+
deprecated: "deprecated";
|
|
82
83
|
experimental: "experimental";
|
|
83
84
|
beta: "beta";
|
|
84
85
|
stable: "stable";
|
|
85
|
-
deprecated: "deprecated";
|
|
86
86
|
}>>;
|
|
87
87
|
defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
|
|
88
|
-
anonymous: "anonymous";
|
|
89
88
|
user: "user";
|
|
89
|
+
anonymous: "anonymous";
|
|
90
90
|
admin: "admin";
|
|
91
91
|
}>>;
|
|
92
92
|
defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
@@ -326,6 +326,7 @@ declare const VersioningConfigSchema: z$2.ZodObject<{
|
|
|
326
326
|
impact: "impact";
|
|
327
327
|
conventional: "conventional";
|
|
328
328
|
}>>;
|
|
329
|
+
integrateWithChangesets: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
329
330
|
changelogTiers: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
|
|
330
331
|
spec: "spec";
|
|
331
332
|
library: "library";
|
|
@@ -343,18 +344,50 @@ declare const VersioningConfigSchema: z$2.ZodObject<{
|
|
|
343
344
|
include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
344
345
|
exclude: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
345
346
|
}, z$2.core.$strip>;
|
|
347
|
+
/**
|
|
348
|
+
* Supported rule synchronization targets.
|
|
349
|
+
*/
|
|
350
|
+
declare const RuleSyncTargetSchema: z$2.ZodEnum<{
|
|
351
|
+
cursor: "cursor";
|
|
352
|
+
windsurf: "windsurf";
|
|
353
|
+
cline: "cline";
|
|
354
|
+
"claude-code": "claude-code";
|
|
355
|
+
copilot: "copilot";
|
|
356
|
+
subagent: "subagent";
|
|
357
|
+
skill: "skill";
|
|
358
|
+
}>;
|
|
359
|
+
/**
|
|
360
|
+
* Configuration for AI agent rules synchronization (rulesync).
|
|
361
|
+
*/
|
|
362
|
+
declare const RuleSyncConfigSchema: z$2.ZodObject<{
|
|
363
|
+
enabled: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
364
|
+
rulesDir: z$2.ZodDefault<z$2.ZodString>;
|
|
365
|
+
rules: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
366
|
+
targets: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
|
|
367
|
+
cursor: "cursor";
|
|
368
|
+
windsurf: "windsurf";
|
|
369
|
+
cline: "cline";
|
|
370
|
+
"claude-code": "claude-code";
|
|
371
|
+
copilot: "copilot";
|
|
372
|
+
subagent: "subagent";
|
|
373
|
+
skill: "skill";
|
|
374
|
+
}>>>;
|
|
375
|
+
autoSync: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
376
|
+
ejectMode: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
377
|
+
}, z$2.core.$strip>;
|
|
346
378
|
/**
|
|
347
379
|
* Rule severity levels (inspired by ESLint).
|
|
348
380
|
*/
|
|
349
381
|
declare const RuleSeveritySchema: z$2.ZodEnum<{
|
|
382
|
+
error: "error";
|
|
350
383
|
off: "off";
|
|
351
384
|
warn: "warn";
|
|
352
|
-
error: "error";
|
|
353
385
|
}>;
|
|
354
386
|
/**
|
|
355
387
|
* Contract kinds for per-kind rule overrides.
|
|
356
388
|
*/
|
|
357
389
|
declare const SpecKindSchema: z$2.ZodEnum<{
|
|
390
|
+
telemetry: "telemetry";
|
|
358
391
|
operation: "operation";
|
|
359
392
|
event: "event";
|
|
360
393
|
presentation: "presentation";
|
|
@@ -362,7 +395,6 @@ declare const SpecKindSchema: z$2.ZodEnum<{
|
|
|
362
395
|
workflow: "workflow";
|
|
363
396
|
"data-view": "data-view";
|
|
364
397
|
migration: "migration";
|
|
365
|
-
telemetry: "telemetry";
|
|
366
398
|
experiment: "experiment";
|
|
367
399
|
"app-config": "app-config";
|
|
368
400
|
}>;
|
|
@@ -371,64 +403,64 @@ declare const SpecKindSchema: z$2.ZodEnum<{
|
|
|
371
403
|
*/
|
|
372
404
|
declare const LintRulesSchema: z$2.ZodObject<{
|
|
373
405
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
406
|
+
error: "error";
|
|
374
407
|
off: "off";
|
|
375
408
|
warn: "warn";
|
|
376
|
-
error: "error";
|
|
377
409
|
}>>;
|
|
378
410
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
411
|
+
error: "error";
|
|
379
412
|
off: "off";
|
|
380
413
|
warn: "warn";
|
|
381
|
-
error: "error";
|
|
382
414
|
}>>;
|
|
383
415
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
416
|
+
error: "error";
|
|
384
417
|
off: "off";
|
|
385
418
|
warn: "warn";
|
|
386
|
-
error: "error";
|
|
387
419
|
}>>;
|
|
388
420
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
421
|
+
error: "error";
|
|
389
422
|
off: "off";
|
|
390
423
|
warn: "warn";
|
|
391
|
-
error: "error";
|
|
392
424
|
}>>;
|
|
393
425
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
426
|
+
error: "error";
|
|
394
427
|
off: "off";
|
|
395
428
|
warn: "warn";
|
|
396
|
-
error: "error";
|
|
397
429
|
}>>;
|
|
398
430
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
431
|
+
error: "error";
|
|
399
432
|
off: "off";
|
|
400
433
|
warn: "warn";
|
|
401
|
-
error: "error";
|
|
402
434
|
}>>;
|
|
403
435
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
436
|
+
error: "error";
|
|
404
437
|
off: "off";
|
|
405
438
|
warn: "warn";
|
|
406
|
-
error: "error";
|
|
407
439
|
}>>;
|
|
408
440
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
441
|
+
error: "error";
|
|
409
442
|
off: "off";
|
|
410
443
|
warn: "warn";
|
|
411
|
-
error: "error";
|
|
412
444
|
}>>;
|
|
413
445
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
446
|
+
error: "error";
|
|
414
447
|
off: "off";
|
|
415
448
|
warn: "warn";
|
|
416
|
-
error: "error";
|
|
417
449
|
}>>;
|
|
418
450
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
451
|
+
error: "error";
|
|
419
452
|
off: "off";
|
|
420
453
|
warn: "warn";
|
|
421
|
-
error: "error";
|
|
422
454
|
}>>;
|
|
423
455
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
456
|
+
error: "error";
|
|
424
457
|
off: "off";
|
|
425
458
|
warn: "warn";
|
|
426
|
-
error: "error";
|
|
427
459
|
}>>;
|
|
428
460
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
461
|
+
error: "error";
|
|
429
462
|
off: "off";
|
|
430
463
|
warn: "warn";
|
|
431
|
-
error: "error";
|
|
432
464
|
}>>;
|
|
433
465
|
}, z$2.core.$strip>;
|
|
434
466
|
/**
|
|
@@ -437,67 +469,68 @@ declare const LintRulesSchema: z$2.ZodObject<{
|
|
|
437
469
|
declare const RulesConfigSchema: z$2.ZodObject<{
|
|
438
470
|
defaults: z$2.ZodOptional<z$2.ZodObject<{
|
|
439
471
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
472
|
+
error: "error";
|
|
440
473
|
off: "off";
|
|
441
474
|
warn: "warn";
|
|
442
|
-
error: "error";
|
|
443
475
|
}>>;
|
|
444
476
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
477
|
+
error: "error";
|
|
445
478
|
off: "off";
|
|
446
479
|
warn: "warn";
|
|
447
|
-
error: "error";
|
|
448
480
|
}>>;
|
|
449
481
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
482
|
+
error: "error";
|
|
450
483
|
off: "off";
|
|
451
484
|
warn: "warn";
|
|
452
|
-
error: "error";
|
|
453
485
|
}>>;
|
|
454
486
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
487
|
+
error: "error";
|
|
455
488
|
off: "off";
|
|
456
489
|
warn: "warn";
|
|
457
|
-
error: "error";
|
|
458
490
|
}>>;
|
|
459
491
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
492
|
+
error: "error";
|
|
460
493
|
off: "off";
|
|
461
494
|
warn: "warn";
|
|
462
|
-
error: "error";
|
|
463
495
|
}>>;
|
|
464
496
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
497
|
+
error: "error";
|
|
465
498
|
off: "off";
|
|
466
499
|
warn: "warn";
|
|
467
|
-
error: "error";
|
|
468
500
|
}>>;
|
|
469
501
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
502
|
+
error: "error";
|
|
470
503
|
off: "off";
|
|
471
504
|
warn: "warn";
|
|
472
|
-
error: "error";
|
|
473
505
|
}>>;
|
|
474
506
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
507
|
+
error: "error";
|
|
475
508
|
off: "off";
|
|
476
509
|
warn: "warn";
|
|
477
|
-
error: "error";
|
|
478
510
|
}>>;
|
|
479
511
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
512
|
+
error: "error";
|
|
480
513
|
off: "off";
|
|
481
514
|
warn: "warn";
|
|
482
|
-
error: "error";
|
|
483
515
|
}>>;
|
|
484
516
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
517
|
+
error: "error";
|
|
485
518
|
off: "off";
|
|
486
519
|
warn: "warn";
|
|
487
|
-
error: "error";
|
|
488
520
|
}>>;
|
|
489
521
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
522
|
+
error: "error";
|
|
490
523
|
off: "off";
|
|
491
524
|
warn: "warn";
|
|
492
|
-
error: "error";
|
|
493
525
|
}>>;
|
|
494
526
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
527
|
+
error: "error";
|
|
495
528
|
off: "off";
|
|
496
529
|
warn: "warn";
|
|
497
|
-
error: "error";
|
|
498
530
|
}>>;
|
|
499
531
|
}, z$2.core.$strip>>;
|
|
500
532
|
overrides: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodEnum<{
|
|
533
|
+
telemetry: "telemetry";
|
|
501
534
|
operation: "operation";
|
|
502
535
|
event: "event";
|
|
503
536
|
presentation: "presentation";
|
|
@@ -505,72 +538,76 @@ declare const RulesConfigSchema: z$2.ZodObject<{
|
|
|
505
538
|
workflow: "workflow";
|
|
506
539
|
"data-view": "data-view";
|
|
507
540
|
migration: "migration";
|
|
508
|
-
telemetry: "telemetry";
|
|
509
541
|
experiment: "experiment";
|
|
510
542
|
"app-config": "app-config";
|
|
511
543
|
}>, z$2.ZodObject<{
|
|
512
544
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
545
|
+
error: "error";
|
|
513
546
|
off: "off";
|
|
514
547
|
warn: "warn";
|
|
515
|
-
error: "error";
|
|
516
548
|
}>>;
|
|
517
549
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
550
|
+
error: "error";
|
|
518
551
|
off: "off";
|
|
519
552
|
warn: "warn";
|
|
520
|
-
error: "error";
|
|
521
553
|
}>>;
|
|
522
554
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
555
|
+
error: "error";
|
|
523
556
|
off: "off";
|
|
524
557
|
warn: "warn";
|
|
525
|
-
error: "error";
|
|
526
558
|
}>>;
|
|
527
559
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
560
|
+
error: "error";
|
|
528
561
|
off: "off";
|
|
529
562
|
warn: "warn";
|
|
530
|
-
error: "error";
|
|
531
563
|
}>>;
|
|
532
564
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
565
|
+
error: "error";
|
|
533
566
|
off: "off";
|
|
534
567
|
warn: "warn";
|
|
535
|
-
error: "error";
|
|
536
568
|
}>>;
|
|
537
569
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
570
|
+
error: "error";
|
|
538
571
|
off: "off";
|
|
539
572
|
warn: "warn";
|
|
540
|
-
error: "error";
|
|
541
573
|
}>>;
|
|
542
574
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
575
|
+
error: "error";
|
|
543
576
|
off: "off";
|
|
544
577
|
warn: "warn";
|
|
545
|
-
error: "error";
|
|
546
578
|
}>>;
|
|
547
579
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
580
|
+
error: "error";
|
|
548
581
|
off: "off";
|
|
549
582
|
warn: "warn";
|
|
550
|
-
error: "error";
|
|
551
583
|
}>>;
|
|
552
584
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
585
|
+
error: "error";
|
|
553
586
|
off: "off";
|
|
554
587
|
warn: "warn";
|
|
555
|
-
error: "error";
|
|
556
588
|
}>>;
|
|
557
589
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
590
|
+
error: "error";
|
|
558
591
|
off: "off";
|
|
559
592
|
warn: "warn";
|
|
560
|
-
error: "error";
|
|
561
593
|
}>>;
|
|
562
594
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
595
|
+
error: "error";
|
|
563
596
|
off: "off";
|
|
564
597
|
warn: "warn";
|
|
565
|
-
error: "error";
|
|
566
598
|
}>>;
|
|
567
599
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
600
|
+
error: "error";
|
|
568
601
|
off: "off";
|
|
569
602
|
warn: "warn";
|
|
570
|
-
error: "error";
|
|
571
603
|
}>>;
|
|
572
604
|
}, z$2.core.$strip>>>;
|
|
573
605
|
}, z$2.core.$strip>;
|
|
606
|
+
/**
|
|
607
|
+
* Git hooks configuration.
|
|
608
|
+
* Maps hook names (e.g., "pre-commit") to a list of commands or checks to run.
|
|
609
|
+
*/
|
|
610
|
+
declare const HooksConfigSchema: z$2.ZodRecord<z$2.ZodString, z$2.ZodArray<z$2.ZodString>>;
|
|
574
611
|
/**
|
|
575
612
|
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
576
613
|
*/
|
|
@@ -583,9 +620,9 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
583
620
|
}>>;
|
|
584
621
|
aiModel: z$2.ZodOptional<z$2.ZodString>;
|
|
585
622
|
agentMode: z$2.ZodDefault<z$2.ZodEnum<{
|
|
586
|
-
simple: "simple";
|
|
587
623
|
cursor: "cursor";
|
|
588
624
|
"claude-code": "claude-code";
|
|
625
|
+
simple: "simple";
|
|
589
626
|
"openai-codex": "openai-codex";
|
|
590
627
|
}>>;
|
|
591
628
|
customEndpoint: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodURL>>;
|
|
@@ -658,14 +695,14 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
658
695
|
include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
659
696
|
prefix: z$2.ZodOptional<z$2.ZodString>;
|
|
660
697
|
defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
|
|
698
|
+
deprecated: "deprecated";
|
|
661
699
|
experimental: "experimental";
|
|
662
700
|
beta: "beta";
|
|
663
701
|
stable: "stable";
|
|
664
|
-
deprecated: "deprecated";
|
|
665
702
|
}>>;
|
|
666
703
|
defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
|
|
667
|
-
anonymous: "anonymous";
|
|
668
704
|
user: "user";
|
|
705
|
+
anonymous: "anonymous";
|
|
669
706
|
admin: "admin";
|
|
670
707
|
}>>;
|
|
671
708
|
defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
@@ -729,67 +766,68 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
729
766
|
rules: z$2.ZodOptional<z$2.ZodObject<{
|
|
730
767
|
defaults: z$2.ZodOptional<z$2.ZodObject<{
|
|
731
768
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
769
|
+
error: "error";
|
|
732
770
|
off: "off";
|
|
733
771
|
warn: "warn";
|
|
734
|
-
error: "error";
|
|
735
772
|
}>>;
|
|
736
773
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
774
|
+
error: "error";
|
|
737
775
|
off: "off";
|
|
738
776
|
warn: "warn";
|
|
739
|
-
error: "error";
|
|
740
777
|
}>>;
|
|
741
778
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
779
|
+
error: "error";
|
|
742
780
|
off: "off";
|
|
743
781
|
warn: "warn";
|
|
744
|
-
error: "error";
|
|
745
782
|
}>>;
|
|
746
783
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
784
|
+
error: "error";
|
|
747
785
|
off: "off";
|
|
748
786
|
warn: "warn";
|
|
749
|
-
error: "error";
|
|
750
787
|
}>>;
|
|
751
788
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
789
|
+
error: "error";
|
|
752
790
|
off: "off";
|
|
753
791
|
warn: "warn";
|
|
754
|
-
error: "error";
|
|
755
792
|
}>>;
|
|
756
793
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
794
|
+
error: "error";
|
|
757
795
|
off: "off";
|
|
758
796
|
warn: "warn";
|
|
759
|
-
error: "error";
|
|
760
797
|
}>>;
|
|
761
798
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
799
|
+
error: "error";
|
|
762
800
|
off: "off";
|
|
763
801
|
warn: "warn";
|
|
764
|
-
error: "error";
|
|
765
802
|
}>>;
|
|
766
803
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
804
|
+
error: "error";
|
|
767
805
|
off: "off";
|
|
768
806
|
warn: "warn";
|
|
769
|
-
error: "error";
|
|
770
807
|
}>>;
|
|
771
808
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
809
|
+
error: "error";
|
|
772
810
|
off: "off";
|
|
773
811
|
warn: "warn";
|
|
774
|
-
error: "error";
|
|
775
812
|
}>>;
|
|
776
813
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
814
|
+
error: "error";
|
|
777
815
|
off: "off";
|
|
778
816
|
warn: "warn";
|
|
779
|
-
error: "error";
|
|
780
817
|
}>>;
|
|
781
818
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
819
|
+
error: "error";
|
|
782
820
|
off: "off";
|
|
783
821
|
warn: "warn";
|
|
784
|
-
error: "error";
|
|
785
822
|
}>>;
|
|
786
823
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
824
|
+
error: "error";
|
|
787
825
|
off: "off";
|
|
788
826
|
warn: "warn";
|
|
789
|
-
error: "error";
|
|
790
827
|
}>>;
|
|
791
828
|
}, z$2.core.$strip>>;
|
|
792
829
|
overrides: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodEnum<{
|
|
830
|
+
telemetry: "telemetry";
|
|
793
831
|
operation: "operation";
|
|
794
832
|
event: "event";
|
|
795
833
|
presentation: "presentation";
|
|
@@ -797,72 +835,72 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
797
835
|
workflow: "workflow";
|
|
798
836
|
"data-view": "data-view";
|
|
799
837
|
migration: "migration";
|
|
800
|
-
telemetry: "telemetry";
|
|
801
838
|
experiment: "experiment";
|
|
802
839
|
"app-config": "app-config";
|
|
803
840
|
}>, z$2.ZodObject<{
|
|
804
841
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
842
|
+
error: "error";
|
|
805
843
|
off: "off";
|
|
806
844
|
warn: "warn";
|
|
807
|
-
error: "error";
|
|
808
845
|
}>>;
|
|
809
846
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
847
|
+
error: "error";
|
|
810
848
|
off: "off";
|
|
811
849
|
warn: "warn";
|
|
812
|
-
error: "error";
|
|
813
850
|
}>>;
|
|
814
851
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
852
|
+
error: "error";
|
|
815
853
|
off: "off";
|
|
816
854
|
warn: "warn";
|
|
817
|
-
error: "error";
|
|
818
855
|
}>>;
|
|
819
856
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
857
|
+
error: "error";
|
|
820
858
|
off: "off";
|
|
821
859
|
warn: "warn";
|
|
822
|
-
error: "error";
|
|
823
860
|
}>>;
|
|
824
861
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
862
|
+
error: "error";
|
|
825
863
|
off: "off";
|
|
826
864
|
warn: "warn";
|
|
827
|
-
error: "error";
|
|
828
865
|
}>>;
|
|
829
866
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
867
|
+
error: "error";
|
|
830
868
|
off: "off";
|
|
831
869
|
warn: "warn";
|
|
832
|
-
error: "error";
|
|
833
870
|
}>>;
|
|
834
871
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
872
|
+
error: "error";
|
|
835
873
|
off: "off";
|
|
836
874
|
warn: "warn";
|
|
837
|
-
error: "error";
|
|
838
875
|
}>>;
|
|
839
876
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
877
|
+
error: "error";
|
|
840
878
|
off: "off";
|
|
841
879
|
warn: "warn";
|
|
842
|
-
error: "error";
|
|
843
880
|
}>>;
|
|
844
881
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
882
|
+
error: "error";
|
|
845
883
|
off: "off";
|
|
846
884
|
warn: "warn";
|
|
847
|
-
error: "error";
|
|
848
885
|
}>>;
|
|
849
886
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
887
|
+
error: "error";
|
|
850
888
|
off: "off";
|
|
851
889
|
warn: "warn";
|
|
852
|
-
error: "error";
|
|
853
890
|
}>>;
|
|
854
891
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
892
|
+
error: "error";
|
|
855
893
|
off: "off";
|
|
856
894
|
warn: "warn";
|
|
857
|
-
error: "error";
|
|
858
895
|
}>>;
|
|
859
896
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
897
|
+
error: "error";
|
|
860
898
|
off: "off";
|
|
861
899
|
warn: "warn";
|
|
862
|
-
error: "error";
|
|
863
900
|
}>>;
|
|
864
901
|
}, z$2.core.$strip>>>;
|
|
865
902
|
}, z$2.core.$strip>>;
|
|
903
|
+
hooks: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodArray<z$2.ZodString>>>;
|
|
866
904
|
schemaFormat: z$2.ZodDefault<z$2.ZodEnum<{
|
|
867
905
|
contractspec: "contractspec";
|
|
868
906
|
zod: "zod";
|
|
@@ -888,6 +926,7 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
888
926
|
impact: "impact";
|
|
889
927
|
conventional: "conventional";
|
|
890
928
|
}>>;
|
|
929
|
+
integrateWithChangesets: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
891
930
|
changelogTiers: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
|
|
892
931
|
spec: "spec";
|
|
893
932
|
library: "library";
|
|
@@ -905,6 +944,22 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
905
944
|
include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
906
945
|
exclude: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
907
946
|
}, z$2.core.$strip>>;
|
|
947
|
+
ruleSync: z$2.ZodOptional<z$2.ZodObject<{
|
|
948
|
+
enabled: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
949
|
+
rulesDir: z$2.ZodDefault<z$2.ZodString>;
|
|
950
|
+
rules: z$2.ZodDefault<z$2.ZodArray<z$2.ZodString>>;
|
|
951
|
+
targets: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
|
|
952
|
+
cursor: "cursor";
|
|
953
|
+
windsurf: "windsurf";
|
|
954
|
+
cline: "cline";
|
|
955
|
+
"claude-code": "claude-code";
|
|
956
|
+
copilot: "copilot";
|
|
957
|
+
subagent: "subagent";
|
|
958
|
+
skill: "skill";
|
|
959
|
+
}>>>;
|
|
960
|
+
autoSync: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
961
|
+
ejectMode: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
962
|
+
}, z$2.core.$strip>>;
|
|
908
963
|
}, z$2.core.$strip>;
|
|
909
964
|
type OpenApiSourceConfig = z$2.infer<typeof OpenApiSourceConfigSchema>;
|
|
910
965
|
type OpenApiExportConfig = z$2.infer<typeof OpenApiExportConfigSchema>;
|
|
@@ -923,6 +978,7 @@ type RuleSeverity = z$2.infer<typeof RuleSeveritySchema>;
|
|
|
923
978
|
type SpecKind = z$2.infer<typeof SpecKindSchema>;
|
|
924
979
|
type LintRules = z$2.infer<typeof LintRulesSchema>;
|
|
925
980
|
type RulesConfig = z$2.infer<typeof RulesConfigSchema>;
|
|
981
|
+
type HooksConfig = z$2.infer<typeof HooksConfigSchema>;
|
|
926
982
|
type SchemaFormat = z$2.infer<typeof SchemaFormatSchema>;
|
|
927
983
|
type FormatterType = z$2.infer<typeof FormatterTypeSchema>;
|
|
928
984
|
type FormatterConfig = z$2.infer<typeof FormatterConfigSchema>;
|
|
@@ -930,9 +986,11 @@ type BumpStrategy = z$2.infer<typeof BumpStrategySchema>;
|
|
|
930
986
|
type ChangelogFormat = z$2.infer<typeof ChangelogFormatSchema>;
|
|
931
987
|
type ChangelogTier = z$2.infer<typeof ChangelogTierSchema>;
|
|
932
988
|
type VersioningConfig = z$2.infer<typeof VersioningConfigSchema>;
|
|
989
|
+
type RuleSyncTarget = z$2.infer<typeof RuleSyncTargetSchema>;
|
|
990
|
+
type RuleSyncConfig = z$2.infer<typeof RuleSyncConfigSchema>;
|
|
933
991
|
/**
|
|
934
992
|
* Default configuration values.
|
|
935
993
|
*/
|
|
936
994
|
declare const DEFAULT_CONTRACTSRC: ContractsrcConfig;
|
|
937
995
|
//#endregion
|
|
938
|
-
export { BumpStrategy, BumpStrategySchema, ChangelogFormat, ChangelogFormatSchema, ChangelogTier, ChangelogTierSchema, CheckRunConfig, CheckRunConfigSchema, CiConfig, CiConfigSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspace, ExternalWorkspaceSchema, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, GroupingRule, GroupingRuleSchema, GroupingStrategy, GroupingStrategySchema, ImpactConfig, ImpactConfigSchema, LintRules, LintRulesSchema, MetaRepoConfig, MetaRepoConfigSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, PrCommentConfig, PrCommentConfigSchema, RuleSeverity, RuleSeveritySchema, RulesConfig, RulesConfigSchema, SchemaFormat, SchemaFormatSchema, SpecKind, SpecKindSchema, VersioningConfig, VersioningConfigSchema };
|
|
996
|
+
export { BumpStrategy, BumpStrategySchema, ChangelogFormat, ChangelogFormatSchema, ChangelogTier, ChangelogTierSchema, CheckRunConfig, CheckRunConfigSchema, CiConfig, CiConfigSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspace, ExternalWorkspaceSchema, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, GroupingRule, GroupingRuleSchema, GroupingStrategy, GroupingStrategySchema, HooksConfig, HooksConfigSchema, ImpactConfig, ImpactConfigSchema, LintRules, LintRulesSchema, MetaRepoConfig, MetaRepoConfigSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, PrCommentConfig, PrCommentConfigSchema, RuleSeverity, RuleSeveritySchema, RuleSyncConfig, RuleSyncConfigSchema, RuleSyncTarget, RuleSyncTargetSchema, RulesConfig, RulesConfigSchema, SchemaFormat, SchemaFormatSchema, SpecKind, SpecKindSchema, VersioningConfig, VersioningConfigSchema };
|
|
@@ -203,6 +203,7 @@ const ChangelogTierSchema = z$2.enum([
|
|
|
203
203
|
const VersioningConfigSchema = z$2.object({
|
|
204
204
|
autoBump: z$2.boolean().default(false),
|
|
205
205
|
bumpStrategy: BumpStrategySchema.default("impact"),
|
|
206
|
+
integrateWithChangesets: z$2.boolean().default(false),
|
|
206
207
|
changelogTiers: z$2.array(ChangelogTierSchema).default([
|
|
207
208
|
"spec",
|
|
208
209
|
"library",
|
|
@@ -217,6 +218,29 @@ const VersioningConfigSchema = z$2.object({
|
|
|
217
218
|
exclude: z$2.array(z$2.string()).optional()
|
|
218
219
|
});
|
|
219
220
|
/**
|
|
221
|
+
* Supported rule synchronization targets.
|
|
222
|
+
*/
|
|
223
|
+
const RuleSyncTargetSchema = z$2.enum([
|
|
224
|
+
"cursor",
|
|
225
|
+
"windsurf",
|
|
226
|
+
"cline",
|
|
227
|
+
"claude-code",
|
|
228
|
+
"copilot",
|
|
229
|
+
"subagent",
|
|
230
|
+
"skill"
|
|
231
|
+
]);
|
|
232
|
+
/**
|
|
233
|
+
* Configuration for AI agent rules synchronization (rulesync).
|
|
234
|
+
*/
|
|
235
|
+
const RuleSyncConfigSchema = z$2.object({
|
|
236
|
+
enabled: z$2.boolean().default(false),
|
|
237
|
+
rulesDir: z$2.string().default("./.rules"),
|
|
238
|
+
rules: z$2.array(z$2.string()).default(["**/*.rule.md"]),
|
|
239
|
+
targets: z$2.array(RuleSyncTargetSchema).default(["cursor", "windsurf"]),
|
|
240
|
+
autoSync: z$2.boolean().default(true),
|
|
241
|
+
ejectMode: z$2.boolean().default(false)
|
|
242
|
+
});
|
|
243
|
+
/**
|
|
220
244
|
* Rule severity levels (inspired by ESLint).
|
|
221
245
|
*/
|
|
222
246
|
const RuleSeveritySchema = z$2.enum([
|
|
@@ -264,6 +288,11 @@ const RulesConfigSchema = z$2.object({
|
|
|
264
288
|
overrides: z$2.record(SpecKindSchema, LintRulesSchema).optional()
|
|
265
289
|
});
|
|
266
290
|
/**
|
|
291
|
+
* Git hooks configuration.
|
|
292
|
+
* Maps hook names (e.g., "pre-commit") to a list of commands or checks to run.
|
|
293
|
+
*/
|
|
294
|
+
const HooksConfigSchema = z$2.record(z$2.string(), z$2.array(z$2.string()));
|
|
295
|
+
/**
|
|
267
296
|
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
268
297
|
*/
|
|
269
298
|
const ContractsrcSchema = z$2.object({
|
|
@@ -293,9 +322,11 @@ const ContractsrcSchema = z$2.object({
|
|
|
293
322
|
ci: CiConfigSchema.optional(),
|
|
294
323
|
metaRepo: MetaRepoConfigSchema.optional(),
|
|
295
324
|
rules: RulesConfigSchema.optional(),
|
|
325
|
+
hooks: HooksConfigSchema.optional(),
|
|
296
326
|
schemaFormat: SchemaFormatSchema.default("contractspec"),
|
|
297
327
|
formatter: FormatterConfigSchema.optional(),
|
|
298
|
-
versioning: VersioningConfigSchema.optional()
|
|
328
|
+
versioning: VersioningConfigSchema.optional(),
|
|
329
|
+
ruleSync: RuleSyncConfigSchema.optional()
|
|
299
330
|
});
|
|
300
331
|
/**
|
|
301
332
|
* Default configuration values.
|
|
@@ -318,4 +349,4 @@ const DEFAULT_CONTRACTSRC = {
|
|
|
318
349
|
};
|
|
319
350
|
|
|
320
351
|
//#endregion
|
|
321
|
-
export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, GroupingRuleSchema, GroupingStrategySchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema, VersioningConfigSchema };
|
|
352
|
+
export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, GroupingRuleSchema, GroupingStrategySchema, HooksConfigSchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RuleSyncConfigSchema, RuleSyncTargetSchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema, VersioningConfigSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BumpStrategy, BumpStrategySchema, ChangelogFormat, ChangelogFormatSchema, ChangelogTier, ChangelogTierSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, SchemaFormat, SchemaFormatSchema, VersioningConfig, VersioningConfigSchema } from "./contractsrc-schema.js";
|
|
2
|
-
export { type BumpStrategy, BumpStrategySchema, type ChangelogFormat, ChangelogFormatSchema, type ChangelogTier, ChangelogTierSchema, type ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, type FolderConventions, FolderConventionsSchema, type FormatterConfig, FormatterConfigSchema, type FormatterType, FormatterTypeSchema, type OpenApiConfig, OpenApiConfigSchema, type OpenApiExportConfig, OpenApiExportConfigSchema, type OpenApiSourceConfig, OpenApiSourceConfigSchema, type SchemaFormat, SchemaFormatSchema, type VersioningConfig, VersioningConfigSchema };
|
|
1
|
+
import { BumpStrategy, BumpStrategySchema, ChangelogFormat, ChangelogFormatSchema, ChangelogTier, ChangelogTierSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, RuleSyncConfig, RuleSyncConfigSchema, RuleSyncTarget, RuleSyncTargetSchema, SchemaFormat, SchemaFormatSchema, VersioningConfig, VersioningConfigSchema } from "./contractsrc-schema.js";
|
|
2
|
+
export { type BumpStrategy, BumpStrategySchema, type ChangelogFormat, ChangelogFormatSchema, type ChangelogTier, ChangelogTierSchema, type ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, type FolderConventions, FolderConventionsSchema, type FormatterConfig, FormatterConfigSchema, type FormatterType, FormatterTypeSchema, type OpenApiConfig, OpenApiConfigSchema, type OpenApiExportConfig, OpenApiExportConfigSchema, type OpenApiSourceConfig, OpenApiSourceConfigSchema, type RuleSyncConfig, RuleSyncConfigSchema, type RuleSyncTarget, RuleSyncTargetSchema, type SchemaFormat, SchemaFormatSchema, type VersioningConfig, VersioningConfigSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema, VersioningConfigSchema } from "./contractsrc-schema.js";
|
|
1
|
+
import { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, RuleSyncConfigSchema, RuleSyncTargetSchema, SchemaFormatSchema, VersioningConfigSchema } from "./contractsrc-schema.js";
|
|
2
2
|
|
|
3
|
-
export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema, VersioningConfigSchema };
|
|
3
|
+
export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, RuleSyncConfigSchema, RuleSyncTargetSchema, SchemaFormatSchema, VersioningConfigSchema };
|