@patronage/software-factory 0.30.0-beta.1 → 0.30.0-beta.3
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/{chunk-DrSxFLj_.js → chunk-pbuEa-1d.js} +0 -1
- package/dist/index.d.ts +7 -38
- package/dist/index.js +721 -1688
- package/dist/schemas.d.ts +407 -4
- package/dist/schemas.js +68 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -525,20 +525,14 @@ type DiffClassification = (typeof DIFF_CLASSIFICATIONS)[number];
|
|
|
525
525
|
//#region src/profile.d.ts
|
|
526
526
|
declare const DEFAULT_FACTORY_REPOSITORY = "unknown/unknown";
|
|
527
527
|
/** The one profile shape this build accepts (ADR 0023, #318, #351). */
|
|
528
|
-
declare const PROFILE_SCHEMA_VERSION =
|
|
528
|
+
declare const PROFILE_SCHEMA_VERSION = 5;
|
|
529
529
|
declare const factoryProjectProfileSchema: z.ZodObject<{
|
|
530
530
|
$schema: z.ZodOptional<z.ZodString>;
|
|
531
|
-
env: z.ZodOptional<z.ZodObject<{
|
|
532
|
-
required: z.ZodArray<z.ZodString>;
|
|
533
|
-
}, z.core.$strict>>;
|
|
534
531
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
535
532
|
hq: z.ZodOptional<z.ZodObject<{
|
|
536
533
|
enabled: z.ZodBoolean;
|
|
537
534
|
endpoint: z.ZodIntersection<z.ZodString, z.ZodString>;
|
|
538
535
|
}, z.core.$strict>>;
|
|
539
|
-
project: z.ZodObject<{
|
|
540
|
-
key: z.ZodString;
|
|
541
|
-
}, z.core.$strict>;
|
|
542
536
|
proof: z.ZodObject<{
|
|
543
537
|
classificationPolicy: z.ZodObject<{
|
|
544
538
|
docsOnly: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -546,15 +540,10 @@ declare const factoryProjectProfileSchema: z.ZodObject<{
|
|
|
546
540
|
}, z.core.$strict>;
|
|
547
541
|
}, z.core.$strict>;
|
|
548
542
|
repository: z.ZodObject<{
|
|
549
|
-
defaultBranch: z.ZodString;
|
|
550
543
|
name: z.ZodString;
|
|
551
544
|
owner: z.ZodString;
|
|
552
545
|
}, z.core.$strict>;
|
|
553
546
|
requiredChecks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
554
|
-
checkType: z.ZodEnum<{
|
|
555
|
-
review: "review";
|
|
556
|
-
verify: "verify";
|
|
557
|
-
}>;
|
|
558
547
|
name: z.ZodString;
|
|
559
548
|
scope: z.ZodOptional<z.ZodObject<{
|
|
560
549
|
classifications: z.ZodArray<z.ZodEnum<{
|
|
@@ -564,21 +553,12 @@ declare const factoryProjectProfileSchema: z.ZodObject<{
|
|
|
564
553
|
}>>;
|
|
565
554
|
}, z.core.$strict>>;
|
|
566
555
|
}, z.core.$strict>>>;
|
|
567
|
-
review: z.ZodObject<{
|
|
568
|
-
conditional: z.
|
|
569
|
-
modes: z.ZodArray<z.ZodEnum<{
|
|
570
|
-
correctness: "correctness";
|
|
571
|
-
security: "security";
|
|
572
|
-
}>>;
|
|
556
|
+
review: z.ZodOptional<z.ZodObject<{
|
|
557
|
+
conditional: z.ZodArray<z.ZodObject<{
|
|
573
558
|
paths: z.ZodArray<z.ZodString>;
|
|
574
|
-
}, z.core.$strict
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
correctness: "correctness";
|
|
578
|
-
security: "security";
|
|
579
|
-
}>>;
|
|
580
|
-
}, z.core.$strict>;
|
|
581
|
-
schemaVersion: z.ZodLiteral<4>;
|
|
559
|
+
}, z.core.$strict>>;
|
|
560
|
+
}, z.core.$strict>>;
|
|
561
|
+
schemaVersion: z.ZodLiteral<5>;
|
|
582
562
|
verification: z.ZodObject<{
|
|
583
563
|
commands: z.ZodArray<z.ZodObject<{
|
|
584
564
|
command: z.ZodString;
|
|
@@ -889,7 +869,7 @@ interface ReviewLadderPolicy {
|
|
|
889
869
|
cap: number;
|
|
890
870
|
};
|
|
891
871
|
}
|
|
892
|
-
declare const resolveReviewLadderPolicy: (
|
|
872
|
+
declare const resolveReviewLadderPolicy: () => ReviewLadderPolicy;
|
|
893
873
|
//#endregion
|
|
894
874
|
//#region src/review-rungs.d.ts
|
|
895
875
|
declare const EVIDENCE_REVIEW_RUNGS: readonly ["independent-model", "oracle", "human"];
|
|
@@ -2339,7 +2319,6 @@ interface PrReviewArgs extends LoadProjectProfileInput {
|
|
|
2339
2319
|
dispositions?: string;
|
|
2340
2320
|
findings?: string;
|
|
2341
2321
|
issue?: number;
|
|
2342
|
-
maxCycles?: number;
|
|
2343
2322
|
mode: PrReviewMode;
|
|
2344
2323
|
output?: string;
|
|
2345
2324
|
verifyProof?: string;
|
|
@@ -3686,7 +3665,6 @@ interface DoctorReport {
|
|
|
3686
3665
|
profilePath: string;
|
|
3687
3666
|
projectKey: string;
|
|
3688
3667
|
repository: {
|
|
3689
|
-
defaultBranch: string;
|
|
3690
3668
|
name: string;
|
|
3691
3669
|
owner: string;
|
|
3692
3670
|
};
|
|
@@ -4032,18 +4010,15 @@ declare const evaluateReadiness: (input: EvaluationInput) => {
|
|
|
4032
4010
|
interface EvidenceEmitArgs {
|
|
4033
4011
|
base: string;
|
|
4034
4012
|
check: string;
|
|
4035
|
-
checkType: EvidenceCheckType;
|
|
4036
4013
|
cwd: string;
|
|
4037
4014
|
findingsPointer?: string;
|
|
4038
4015
|
json?: boolean;
|
|
4039
|
-
model?: string;
|
|
4040
4016
|
outcome: "pass" | "fail";
|
|
4041
4017
|
output?: string;
|
|
4042
4018
|
policyVersion?: string;
|
|
4043
4019
|
profilePath?: string;
|
|
4044
4020
|
producer: string;
|
|
4045
4021
|
requestId?: string;
|
|
4046
|
-
rung?: EvidenceReviewRung;
|
|
4047
4022
|
sessionId?: string;
|
|
4048
4023
|
}
|
|
4049
4024
|
interface EvidenceEmitDependencies {
|
|
@@ -4157,12 +4132,6 @@ interface EpicStructureEvent {
|
|
|
4157
4132
|
interface BuildEpicStructureEventInput {
|
|
4158
4133
|
/** Parsed dag.yml (or JSON) document. */
|
|
4159
4134
|
document: DagDocument;
|
|
4160
|
-
/** Boundary slug override (else `dag.boundary`, else `epic-<id>`). */
|
|
4161
|
-
boundary?: string;
|
|
4162
|
-
/** Epic display name override (else `dag.name`, else `Epic <id>`). */
|
|
4163
|
-
name?: string;
|
|
4164
|
-
/** Repo name override (else `dag.repo`). Required by one of the two. */
|
|
4165
|
-
repo?: string;
|
|
4166
4135
|
/** Event observedAt; NOT part of the eventId hash. Defaults to now. */
|
|
4167
4136
|
observedAt?: string;
|
|
4168
4137
|
}
|