@patronage/software-factory 1.0.0-alpha.34 → 1.0.0-alpha.36

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/schemas.d.ts CHANGED
@@ -416,183 +416,6 @@ interface FollowUpAction {
416
416
  */
417
417
  type ResolvedPrVerifyMode = "docs-only" | "trivial" | "full";
418
418
  //#endregion
419
- //#region src/pr-readiness/readiness-ledger.d.ts
420
- declare const readinessRepairSchema: z.ZodObject<{
421
- action: z.ZodString;
422
- code: z.ZodEnum<{
423
- "undraft-pr": "undraft-pr";
424
- "await-post-undraft-checks": "await-post-undraft-checks";
425
- }>;
426
- command: z.ZodString;
427
- }, z.core.$strip>;
428
- declare const managedReadinessLedgerSchema: z.ZodObject<{
429
- baseSha: z.ZodString;
430
- blockingReasons: z.ZodArray<z.ZodString>;
431
- classification: z.ZodEnum<{
432
- "docs/process-only": "docs/process-only";
433
- trivial: "trivial";
434
- "non-trivial": "non-trivial";
435
- }>;
436
- externalChecks: z.ZodOptional<z.ZodArray<z.ZodObject<{
437
- checkType: z.ZodEnum<{
438
- review: "review";
439
- verify: "verify";
440
- }>;
441
- name: z.ZodString;
442
- reason: z.ZodOptional<z.ZodString>;
443
- scope: z.ZodOptional<z.ZodObject<{
444
- classifications: z.ZodArray<z.ZodEnum<{
445
- "docs/process-only": "docs/process-only";
446
- trivial: "trivial";
447
- "non-trivial": "non-trivial";
448
- }>>;
449
- }, z.core.$strict>>;
450
- scopeReason: z.ZodString;
451
- status: z.ZodEnum<{
452
- satisfied: "satisfied";
453
- unmet: "unmet";
454
- "out-of-scope": "out-of-scope";
455
- }>;
456
- }, z.core.$strip>>>;
457
- github: z.ZodObject<{
458
- draft: z.ZodBoolean;
459
- mergeStateStatus: z.ZodString;
460
- mergeable: z.ZodString;
461
- requiredChecks: z.ZodEnum<{
462
- unknown: "unknown";
463
- passed: "passed";
464
- failed: "failed";
465
- pending: "pending";
466
- none: "none";
467
- }>;
468
- reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
- unresolvedReviewThreads: z.ZodNumber;
470
- }, z.core.$strip>;
471
- headSha: z.ZodString;
472
- mergeBaseSha: z.ZodOptional<z.ZodString>;
473
- patchId: z.ZodString;
474
- pr: z.ZodNumber;
475
- repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
476
- action: z.ZodString;
477
- code: z.ZodEnum<{
478
- "undraft-pr": "undraft-pr";
479
- "await-post-undraft-checks": "await-post-undraft-checks";
480
- }>;
481
- command: z.ZodString;
482
- }, z.core.$strip>>>;
483
- reviewCycleState: z.ZodOptional<z.ZodObject<{
484
- autoBlockingFindings: z.ZodNumber;
485
- countsBySeverity: z.ZodObject<{
486
- critical: z.ZodNumber;
487
- high: z.ZodNumber;
488
- low: z.ZodNumber;
489
- medium: z.ZodNumber;
490
- unknown: z.ZodNumber;
491
- }, z.core.$strip>;
492
- highestBlockingSeverity: z.ZodOptional<z.ZodEnum<{
493
- unknown: "unknown";
494
- critical: "critical";
495
- high: "high";
496
- low: "low";
497
- medium: "medium";
498
- }>>;
499
- highestOpenSeverity: z.ZodOptional<z.ZodEnum<{
500
- unknown: "unknown";
501
- critical: "critical";
502
- high: "high";
503
- low: "low";
504
- medium: "medium";
505
- }>>;
506
- maxReviewCycles: z.ZodOptional<z.ZodNumber>;
507
- nonBlockingFindings: z.ZodNumber;
508
- openFindings: z.ZodNumber;
509
- reviewCycle: z.ZodOptional<z.ZodNumber>;
510
- staleRepeatFindings: z.ZodOptional<z.ZodNumber>;
511
- windowExhausted: z.ZodBoolean;
512
- }, z.core.$strip>>;
513
- reviewLadder: z.ZodOptional<z.ZodObject<{
514
- cycleCounts: z.ZodObject<{
515
- gate: z.ZodNumber;
516
- interior: z.ZodNumber;
517
- }, z.core.$strip>;
518
- forcedTransition: z.ZodOptional<z.ZodEnum<{
519
- "gate-cap-exhausted": "gate-cap-exhausted";
520
- "interior-cap-reached": "interior-cap-reached";
521
- }>>;
522
- nextAction: z.ZodEnum<{
523
- "run-interior-cycle": "run-interior-cycle";
524
- "advance-to-gate": "advance-to-gate";
525
- "run-gate-cycle": "run-gate-cycle";
526
- "accept-nonblocking-findings": "accept-nonblocking-findings";
527
- "escalate-to-triage": "escalate-to-triage";
528
- "ready-for-human": "ready-for-human";
529
- }>;
530
- stage: z.ZodEnum<{
531
- gate: "gate";
532
- interior: "interior";
533
- "interior-complete": "interior-complete";
534
- }>;
535
- }, z.core.$strip>>;
536
- reviewRuns: z.ZodOptional<z.ZodArray<z.ZodType<PrReviewResult, unknown, z.core.$ZodTypeInternals<PrReviewResult, unknown>>>>;
537
- reviewTerminalState: z.ZodOptional<z.ZodEnum<{
538
- blocked: "blocked";
539
- "accepted-with-findings": "accepted-with-findings";
540
- clean: "clean";
541
- }>>;
542
- reviews: z.ZodObject<{
543
- correctness: z.ZodObject<{
544
- required: z.ZodBoolean;
545
- reviewedHeadSha: z.ZodOptional<z.ZodString>;
546
- reviewedPatchId: z.ZodOptional<z.ZodString>;
547
- status: z.ZodEnum<{
548
- blocked: "blocked";
549
- "not-required": "not-required";
550
- current: "current";
551
- stale: "stale";
552
- missing: "missing";
553
- }>;
554
- }, z.core.$strip>;
555
- security: z.ZodOptional<z.ZodObject<{
556
- required: z.ZodBoolean;
557
- reviewedHeadSha: z.ZodOptional<z.ZodString>;
558
- reviewedPatchId: z.ZodOptional<z.ZodString>;
559
- status: z.ZodEnum<{
560
- blocked: "blocked";
561
- "not-required": "not-required";
562
- current: "current";
563
- stale: "stale";
564
- missing: "missing";
565
- }>;
566
- }, z.core.$strip>>;
567
- }, z.core.$strip>;
568
- schemaVersion: z.ZodLiteral<2>;
569
- verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
570
- command: z.ZodLiteral<"patronage-factory pr:verify">;
571
- prVerify: z.ZodLiteral<"missing">;
572
- }, z.core.$strict>, z.ZodObject<{
573
- command: z.ZodLiteral<"patronage-factory pr:verify">;
574
- prVerify: z.ZodLiteral<"stale">;
575
- verifiedHeadSha: z.ZodString;
576
- }, z.core.$strict>, z.ZodObject<{
577
- command: z.ZodLiteral<"patronage-factory pr:verify">;
578
- prVerify: z.ZodLiteral<"passed-via-head">;
579
- verifiedHeadSha: z.ZodString;
580
- }, z.core.$strict>, z.ZodObject<{
581
- command: z.ZodLiteral<"patronage-factory pr:verify">;
582
- docsOnlyVerifiedHeadSha: z.ZodString;
583
- prVerify: z.ZodLiteral<"docs-only-delta">;
584
- verifiedHeadSha: z.ZodOptional<z.ZodString>;
585
- }, z.core.$strict>, z.ZodObject<{
586
- command: z.ZodLiteral<"patronage-factory pr:verify">;
587
- prVerify: z.ZodLiteral<"trivial-delta">;
588
- trivialVerifiedHeadSha: z.ZodString;
589
- verifiedHeadSha: z.ZodOptional<z.ZodString>;
590
- }, z.core.$strict>], "prVerify">;
591
- }, z.core.$strip>;
592
- type ReadinessRepair = z.infer<typeof readinessRepairSchema>;
593
- type ReadinessStatus = "ready" | "blocked";
594
- type ManagedReadinessLedger = z.infer<typeof managedReadinessLedgerSchema>;
595
- //#endregion
596
419
  //#region src/pr-verify-proof-contract.d.ts
597
420
  /**
598
421
  * The pr:verify proof versions a reader accepts: the current one only (#920
@@ -855,6 +678,183 @@ declare const prVerifyProofSchema: z.ZodObject<{
855
678
  }, z.core.$strip>>;
856
679
  }, z.core.$strip>;
857
680
  //#endregion
681
+ //#region src/pr-readiness/readiness-ledger.d.ts
682
+ declare const readinessRepairSchema: z.ZodObject<{
683
+ action: z.ZodString;
684
+ code: z.ZodEnum<{
685
+ "undraft-pr": "undraft-pr";
686
+ "await-post-undraft-checks": "await-post-undraft-checks";
687
+ }>;
688
+ command: z.ZodString;
689
+ }, z.core.$strip>;
690
+ declare const managedReadinessLedgerSchema: z.ZodObject<{
691
+ baseSha: z.ZodString;
692
+ blockingReasons: z.ZodArray<z.ZodString>;
693
+ classification: z.ZodEnum<{
694
+ "docs/process-only": "docs/process-only";
695
+ trivial: "trivial";
696
+ "non-trivial": "non-trivial";
697
+ }>;
698
+ externalChecks: z.ZodOptional<z.ZodArray<z.ZodObject<{
699
+ checkType: z.ZodEnum<{
700
+ review: "review";
701
+ verify: "verify";
702
+ }>;
703
+ name: z.ZodString;
704
+ reason: z.ZodOptional<z.ZodString>;
705
+ scope: z.ZodOptional<z.ZodObject<{
706
+ classifications: z.ZodArray<z.ZodEnum<{
707
+ "docs/process-only": "docs/process-only";
708
+ trivial: "trivial";
709
+ "non-trivial": "non-trivial";
710
+ }>>;
711
+ }, z.core.$strict>>;
712
+ scopeReason: z.ZodString;
713
+ status: z.ZodEnum<{
714
+ satisfied: "satisfied";
715
+ unmet: "unmet";
716
+ "out-of-scope": "out-of-scope";
717
+ }>;
718
+ }, z.core.$strip>>>;
719
+ github: z.ZodObject<{
720
+ draft: z.ZodBoolean;
721
+ mergeStateStatus: z.ZodString;
722
+ mergeable: z.ZodString;
723
+ requiredChecks: z.ZodEnum<{
724
+ unknown: "unknown";
725
+ passed: "passed";
726
+ failed: "failed";
727
+ pending: "pending";
728
+ none: "none";
729
+ }>;
730
+ reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
+ unresolvedReviewThreads: z.ZodNumber;
732
+ }, z.core.$strip>;
733
+ headSha: z.ZodString;
734
+ mergeBaseSha: z.ZodOptional<z.ZodString>;
735
+ patchId: z.ZodString;
736
+ pr: z.ZodNumber;
737
+ repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
738
+ action: z.ZodString;
739
+ code: z.ZodEnum<{
740
+ "undraft-pr": "undraft-pr";
741
+ "await-post-undraft-checks": "await-post-undraft-checks";
742
+ }>;
743
+ command: z.ZodString;
744
+ }, z.core.$strip>>>;
745
+ reviewCycleState: z.ZodOptional<z.ZodObject<{
746
+ autoBlockingFindings: z.ZodNumber;
747
+ countsBySeverity: z.ZodObject<{
748
+ critical: z.ZodNumber;
749
+ high: z.ZodNumber;
750
+ low: z.ZodNumber;
751
+ medium: z.ZodNumber;
752
+ unknown: z.ZodNumber;
753
+ }, z.core.$strip>;
754
+ highestBlockingSeverity: z.ZodOptional<z.ZodEnum<{
755
+ unknown: "unknown";
756
+ critical: "critical";
757
+ high: "high";
758
+ low: "low";
759
+ medium: "medium";
760
+ }>>;
761
+ highestOpenSeverity: z.ZodOptional<z.ZodEnum<{
762
+ unknown: "unknown";
763
+ critical: "critical";
764
+ high: "high";
765
+ low: "low";
766
+ medium: "medium";
767
+ }>>;
768
+ maxReviewCycles: z.ZodOptional<z.ZodNumber>;
769
+ nonBlockingFindings: z.ZodNumber;
770
+ openFindings: z.ZodNumber;
771
+ reviewCycle: z.ZodOptional<z.ZodNumber>;
772
+ staleRepeatFindings: z.ZodOptional<z.ZodNumber>;
773
+ windowExhausted: z.ZodBoolean;
774
+ }, z.core.$strip>>;
775
+ reviewLadder: z.ZodOptional<z.ZodObject<{
776
+ cycleCounts: z.ZodObject<{
777
+ gate: z.ZodNumber;
778
+ interior: z.ZodNumber;
779
+ }, z.core.$strip>;
780
+ forcedTransition: z.ZodOptional<z.ZodEnum<{
781
+ "gate-cap-exhausted": "gate-cap-exhausted";
782
+ "interior-cap-reached": "interior-cap-reached";
783
+ }>>;
784
+ nextAction: z.ZodEnum<{
785
+ "run-interior-cycle": "run-interior-cycle";
786
+ "advance-to-gate": "advance-to-gate";
787
+ "run-gate-cycle": "run-gate-cycle";
788
+ "accept-nonblocking-findings": "accept-nonblocking-findings";
789
+ "escalate-to-triage": "escalate-to-triage";
790
+ "ready-for-human": "ready-for-human";
791
+ }>;
792
+ stage: z.ZodEnum<{
793
+ gate: "gate";
794
+ interior: "interior";
795
+ "interior-complete": "interior-complete";
796
+ }>;
797
+ }, z.core.$strip>>;
798
+ reviewRuns: z.ZodOptional<z.ZodArray<z.ZodType<PrReviewResult, unknown, z.core.$ZodTypeInternals<PrReviewResult, unknown>>>>;
799
+ reviewTerminalState: z.ZodOptional<z.ZodEnum<{
800
+ blocked: "blocked";
801
+ "accepted-with-findings": "accepted-with-findings";
802
+ clean: "clean";
803
+ }>>;
804
+ reviews: z.ZodObject<{
805
+ correctness: z.ZodObject<{
806
+ required: z.ZodBoolean;
807
+ reviewedHeadSha: z.ZodOptional<z.ZodString>;
808
+ reviewedPatchId: z.ZodOptional<z.ZodString>;
809
+ status: z.ZodEnum<{
810
+ blocked: "blocked";
811
+ "not-required": "not-required";
812
+ current: "current";
813
+ stale: "stale";
814
+ missing: "missing";
815
+ }>;
816
+ }, z.core.$strip>;
817
+ security: z.ZodOptional<z.ZodObject<{
818
+ required: z.ZodBoolean;
819
+ reviewedHeadSha: z.ZodOptional<z.ZodString>;
820
+ reviewedPatchId: z.ZodOptional<z.ZodString>;
821
+ status: z.ZodEnum<{
822
+ blocked: "blocked";
823
+ "not-required": "not-required";
824
+ current: "current";
825
+ stale: "stale";
826
+ missing: "missing";
827
+ }>;
828
+ }, z.core.$strip>>;
829
+ }, z.core.$strip>;
830
+ schemaVersion: z.ZodLiteral<2>;
831
+ verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
832
+ command: z.ZodLiteral<"patronage-factory pr:verify">;
833
+ prVerify: z.ZodLiteral<"missing">;
834
+ }, z.core.$strict>, z.ZodObject<{
835
+ command: z.ZodLiteral<"patronage-factory pr:verify">;
836
+ prVerify: z.ZodLiteral<"stale">;
837
+ verifiedHeadSha: z.ZodString;
838
+ }, z.core.$strict>, z.ZodObject<{
839
+ command: z.ZodLiteral<"patronage-factory pr:verify">;
840
+ prVerify: z.ZodLiteral<"passed-via-head">;
841
+ verifiedHeadSha: z.ZodString;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ command: z.ZodLiteral<"patronage-factory pr:verify">;
844
+ docsOnlyVerifiedHeadSha: z.ZodString;
845
+ prVerify: z.ZodLiteral<"docs-only-delta">;
846
+ verifiedHeadSha: z.ZodOptional<z.ZodString>;
847
+ }, z.core.$strict>, z.ZodObject<{
848
+ command: z.ZodLiteral<"patronage-factory pr:verify">;
849
+ prVerify: z.ZodLiteral<"trivial-delta">;
850
+ trivialVerifiedHeadSha: z.ZodString;
851
+ verifiedHeadSha: z.ZodOptional<z.ZodString>;
852
+ }, z.core.$strict>], "prVerify">;
853
+ }, z.core.$strip>;
854
+ type ReadinessRepair = z.infer<typeof readinessRepairSchema>;
855
+ type ReadinessStatus = "ready" | "blocked";
856
+ type ManagedReadinessLedger = z.infer<typeof managedReadinessLedgerSchema>;
857
+ //#endregion
858
858
  //#region src/pr-ready.d.ts
859
859
  interface PrReadyProof {
860
860
  schemaVersion: 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patronage/software-factory",
3
- "version": "1.0.0-alpha.34",
3
+ "version": "1.0.0-alpha.36",
4
4
  "description": "Shared Patronage software factory CLI and project-profile validation tools",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,6 +23,10 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "default": "./dist/index.js"
25
25
  },
26
+ "./oxlint-jev": {
27
+ "types": "./dist/oxlint-jev/index.d.ts",
28
+ "default": "./dist/oxlint-jev/index.js"
29
+ },
26
30
  "./schemas": {
27
31
  "types": "./dist/schemas.d.ts",
28
32
  "default": "./dist/schemas.js"
@@ -33,13 +37,15 @@
33
37
  "tag": "next"
34
38
  },
35
39
  "dependencies": {
40
+ "@typesafe-ai/sdk": "0.6.0",
36
41
  "commander": "14.0.3",
37
42
  "picomatch": "^4.0.5",
38
43
  "yaml": "^2.9.0",
39
44
  "zod": "4.4.3",
40
- "@patronage/factory-ci": "1.0.0-alpha.34"
45
+ "@patronage/factory-ci": "1.0.0-alpha.36"
41
46
  },
42
47
  "devDependencies": {
48
+ "@oxlint/plugins": "1.76.0",
43
49
  "@types/node": "24.13.3",
44
50
  "@types/picomatch": "^4.0.3",
45
51
  "@vitest/coverage-v8": "4.1.10",