@patronage/software-factory 1.0.0-alpha.39 → 1.0.0-alpha.40
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/README.md +0 -2
- package/dist/{chunk-DrSxFLj_.js → chunk-pbuEa-1d.js} +0 -1
- package/dist/index.d.ts +80 -938
- package/dist/index.js +15460 -17390
- package/dist/schemas.d.ts +22 -88
- package/dist/schemas.js +242 -226
- package/package.json +2 -8
- package/dist/oxlint-jev/bridge-PMzq2gZh.js +0 -1068
- package/dist/oxlint-jev/index.d.ts +0 -3996
- package/dist/oxlint-jev/index.js +0 -581
- package/dist/oxlint-jev/worker.d.ts +0 -1
- package/dist/oxlint-jev/worker.js +0 -49
package/dist/schemas.d.ts
CHANGED
|
@@ -33,6 +33,11 @@ declare const policyResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
33
33
|
status: z.ZodLiteral<"authoritative">;
|
|
34
34
|
}, z.core.$strict>, z.ZodObject<{
|
|
35
35
|
baseRefName: z.ZodString;
|
|
36
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
"no-pull-request": "no-pull-request";
|
|
38
|
+
"lookup-failed": "lookup-failed";
|
|
39
|
+
"policy-unreadable": "policy-unreadable";
|
|
40
|
+
}>>;
|
|
36
41
|
reason: z.ZodString;
|
|
37
42
|
status: z.ZodLiteral<"unresolved">;
|
|
38
43
|
}, z.core.$strict>], "status">;
|
|
@@ -54,26 +59,6 @@ interface ReviewFindingAttributes {
|
|
|
54
59
|
title: string;
|
|
55
60
|
}
|
|
56
61
|
//#endregion
|
|
57
|
-
//#region src/review-recovery-item.d.ts
|
|
58
|
-
/**
|
|
59
|
-
* A schema-2 declaration the bounded import could not convert (ADR 0004
|
|
60
|
-
* decision 7): the declaration as stored, the cycle that recorded it, why it
|
|
61
|
-
* was refused and the occurrence addresses it could have meant. While any
|
|
62
|
-
* item is present the proof admits nothing; an operator re-declares by
|
|
63
|
-
* address on the next recording.
|
|
64
|
-
*/
|
|
65
|
-
interface ReviewRecoveryItem {
|
|
66
|
-
candidates: string[];
|
|
67
|
-
cycle: number;
|
|
68
|
-
declaration: {
|
|
69
|
-
disposition: "fixed-in-thread" | "follow-up-filed" | "waived";
|
|
70
|
-
file?: string;
|
|
71
|
-
reference?: string;
|
|
72
|
-
title: string;
|
|
73
|
-
};
|
|
74
|
-
reason: string;
|
|
75
|
-
}
|
|
76
|
-
//#endregion
|
|
77
62
|
//#region src/review-rungs.d.ts
|
|
78
63
|
declare const EVIDENCE_REVIEW_RUNGS: readonly ["independent-model", "oracle", "human"];
|
|
79
64
|
type EvidenceReviewRung = (typeof EVIDENCE_REVIEW_RUNGS)[number];
|
|
@@ -94,7 +79,7 @@ interface ReviewOccurrenceRecord {
|
|
|
94
79
|
*/
|
|
95
80
|
repeatOf?: string;
|
|
96
81
|
}
|
|
97
|
-
declare const POLICY_DECLARATION_RULES: readonly ["cycle-2-severity-floor", "identity-repeat"
|
|
82
|
+
declare const POLICY_DECLARATION_RULES: readonly ["cycle-2-severity-floor", "identity-repeat"];
|
|
98
83
|
type PolicyDeclarationRule = (typeof POLICY_DECLARATION_RULES)[number];
|
|
99
84
|
/**
|
|
100
85
|
* A disposition declaration as stored (CONTEXT.md: disposition declaration):
|
|
@@ -131,22 +116,10 @@ interface ReviewRecordedCycleIdentity {
|
|
|
131
116
|
findingsDigest: string;
|
|
132
117
|
recordingId: string;
|
|
133
118
|
}
|
|
134
|
-
/**
|
|
135
|
-
* A cycle the bounded importer converted from a schema-2 proof (decision 7).
|
|
136
|
-
* No bytes were read for it, so it carries the digest of the retained source
|
|
137
|
-
* proof instead of a recording identity; it can never answer a retry as
|
|
138
|
-
* `already-recorded`.
|
|
139
|
-
*/
|
|
140
|
-
interface ReviewImportedCycleIdentity {
|
|
141
|
-
imported: {
|
|
142
|
-
proofDigest: string;
|
|
143
|
-
schemaVersion: 2;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
119
|
type ReviewCycleRecording = {
|
|
147
120
|
declarations: ReviewDeclarationRecord[]; /** Index-aligned with the cycle's `findings`. */
|
|
148
121
|
occurrences: ReviewOccurrenceRecord[];
|
|
149
|
-
} &
|
|
122
|
+
} & ReviewRecordedCycleIdentity;
|
|
150
123
|
//#endregion
|
|
151
124
|
//#region src/review-ladder.d.ts
|
|
152
125
|
interface LadderSessionAttribution {
|
|
@@ -204,6 +177,9 @@ interface PrReviewResult {
|
|
|
204
177
|
issuesFlagged: number;
|
|
205
178
|
summary: string;
|
|
206
179
|
findings: PrReviewFinding[];
|
|
180
|
+
lowerFindings?: (PrReviewFinding & {
|
|
181
|
+
priority: string;
|
|
182
|
+
})[];
|
|
207
183
|
typedVerdict?: boolean;
|
|
208
184
|
verdictSource?: "footer" | "recovered";
|
|
209
185
|
promptSections?: ReviewPromptSection[];
|
|
@@ -219,21 +195,6 @@ interface PrReviewProof {
|
|
|
219
195
|
changedFiles: string[];
|
|
220
196
|
cleanedPaths: string[];
|
|
221
197
|
ladder?: PrReviewLadderState;
|
|
222
|
-
/**
|
|
223
|
-
* Present when the ladder's earlier cycles were converted from a schema-2
|
|
224
|
-
* proof by the bounded import (#1068): the digest of the original bytes,
|
|
225
|
-
* retained content-addressed for audit before the converted proof is
|
|
226
|
-
* written.
|
|
227
|
-
*/
|
|
228
|
-
importedFrom?: {
|
|
229
|
-
proofDigest: string;
|
|
230
|
-
schemaVersion: 2;
|
|
231
|
-
};
|
|
232
|
-
/**
|
|
233
|
-
* Schema-2 declarations the bounded import refused (#1068). Empty is never
|
|
234
|
-
* written; absent means nothing awaits recovery.
|
|
235
|
-
*/
|
|
236
|
-
recoveryRequired?: ReviewRecoveryItem[];
|
|
237
198
|
/**
|
|
238
199
|
* The policy identity this review run resolved its demanded kinds under
|
|
239
200
|
* (#922 Slice B). Optional: a run that could not reach the authority records
|
|
@@ -657,6 +618,11 @@ declare const prVerifyProofSchema: z.ZodObject<{
|
|
|
657
618
|
status: z.ZodLiteral<"authoritative">;
|
|
658
619
|
}, z.core.$strict>, z.ZodObject<{
|
|
659
620
|
baseRefName: z.ZodString;
|
|
621
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
622
|
+
"no-pull-request": "no-pull-request";
|
|
623
|
+
"lookup-failed": "lookup-failed";
|
|
624
|
+
"policy-unreadable": "policy-unreadable";
|
|
625
|
+
}>>;
|
|
660
626
|
reason: z.ZodString;
|
|
661
627
|
status: z.ZodLiteral<"unresolved">;
|
|
662
628
|
}, z.core.$strict>], "status">>;
|
|
@@ -860,7 +826,8 @@ interface PrReadyProof {
|
|
|
860
826
|
schemaVersion: 3;
|
|
861
827
|
/**
|
|
862
828
|
* What GitHub actually did when this run armed native auto-merge (#477).
|
|
863
|
-
*
|
|
829
|
+
* Also reports an already-merged no-op (#1456). Otherwise present exactly
|
|
830
|
+
* when a ready run called the arming module (#1299): not
|
|
864
831
|
* for an `autoMerge: false` wave, and not when a notice names why the run
|
|
865
832
|
* did not arm. Read back from the PR rather than inferred from the
|
|
866
833
|
* invocation, because `gh pr merge --auto` arms, merges, or does nothing
|
|
@@ -1224,7 +1191,6 @@ declare const prReadyProofSchema: z.ZodObject<{
|
|
|
1224
1191
|
"out-of-scope": "out-of-scope";
|
|
1225
1192
|
}>;
|
|
1226
1193
|
}, z.core.$strip>>>;
|
|
1227
|
-
finalReviewPoint: z.ZodOptional<z.ZodBoolean>;
|
|
1228
1194
|
github: z.ZodObject<{
|
|
1229
1195
|
draft: z.ZodBoolean;
|
|
1230
1196
|
mergeStateStatus: z.ZodString;
|
|
@@ -1239,43 +1205,14 @@ declare const prReadyProofSchema: z.ZodObject<{
|
|
|
1239
1205
|
reviewDecision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1240
1206
|
unresolvedReviewThreads: z.ZodNumber;
|
|
1241
1207
|
}, z.core.$strip>;
|
|
1242
|
-
handledCommentsProducer: z.ZodOptional<z.ZodObject<{
|
|
1243
|
-
identity: z.ZodString;
|
|
1244
|
-
mode: z.ZodEnum<{
|
|
1245
|
-
app: "app";
|
|
1246
|
-
"commit-status": "commit-status";
|
|
1247
|
-
}>;
|
|
1248
|
-
}, z.core.$strip>>;
|
|
1249
|
-
handledHumanComments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1250
|
-
clearedAt: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
1252
|
-
source: z.ZodEnum<{
|
|
1253
|
-
"check-run": "check-run";
|
|
1254
|
-
cli: "cli";
|
|
1255
|
-
}>;
|
|
1256
|
-
url: z.ZodString;
|
|
1257
|
-
}, z.core.$strip>>>;
|
|
1258
1208
|
headSha: z.ZodString;
|
|
1259
1209
|
mergeBaseSha: z.ZodOptional<z.ZodString>;
|
|
1260
1210
|
patchId: z.ZodString;
|
|
1261
|
-
postReadinessHumanComments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1262
|
-
author: z.ZodString;
|
|
1263
|
-
createdAt: z.ZodString;
|
|
1264
|
-
summary: z.ZodString;
|
|
1265
|
-
url: z.ZodString;
|
|
1266
|
-
}, z.core.$strip>>>;
|
|
1267
|
-
postReadinessHumanReviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1268
|
-
author: z.ZodString;
|
|
1269
|
-
createdAt: z.ZodString;
|
|
1270
|
-
summary: z.ZodString;
|
|
1271
|
-
url: z.ZodString;
|
|
1272
|
-
}, z.core.$strip>>>;
|
|
1273
1211
|
pr: z.ZodNumber;
|
|
1274
1212
|
repairs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1275
1213
|
action: z.ZodString;
|
|
1276
1214
|
code: z.ZodEnum<{
|
|
1277
1215
|
"undraft-pr": "undraft-pr";
|
|
1278
|
-
"render-pr-body-sections": "render-pr-body-sections";
|
|
1279
1216
|
"await-post-undraft-checks": "await-post-undraft-checks";
|
|
1280
1217
|
}>;
|
|
1281
1218
|
command: z.ZodString;
|
|
@@ -1366,12 +1303,6 @@ declare const prReadyProofSchema: z.ZodObject<{
|
|
|
1366
1303
|
}, z.core.$strict>>;
|
|
1367
1304
|
}, z.core.$strip>;
|
|
1368
1305
|
schemaVersion: z.ZodLiteral<2>;
|
|
1369
|
-
stackRole: z.ZodOptional<z.ZodEnum<{
|
|
1370
|
-
single: "single";
|
|
1371
|
-
slice: "slice";
|
|
1372
|
-
rollup: "rollup";
|
|
1373
|
-
"merge-gate prerequisite": "merge-gate prerequisite";
|
|
1374
|
-
}>>;
|
|
1375
1306
|
verification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1376
1307
|
command: z.ZodLiteral<"patronage-factory pr:verify">;
|
|
1377
1308
|
prVerify: z.ZodLiteral<"missing">;
|
|
@@ -1406,6 +1337,11 @@ declare const prReadyProofSchema: z.ZodObject<{
|
|
|
1406
1337
|
status: z.ZodLiteral<"authoritative">;
|
|
1407
1338
|
}, z.core.$strict>, z.ZodObject<{
|
|
1408
1339
|
baseRefName: z.ZodString;
|
|
1340
|
+
cause: z.ZodOptional<z.ZodEnum<{
|
|
1341
|
+
"no-pull-request": "no-pull-request";
|
|
1342
|
+
"lookup-failed": "lookup-failed";
|
|
1343
|
+
"policy-unreadable": "policy-unreadable";
|
|
1344
|
+
}>>;
|
|
1409
1345
|
reason: z.ZodString;
|
|
1410
1346
|
status: z.ZodLiteral<"unresolved">;
|
|
1411
1347
|
}, z.core.$strict>], "status">>;
|
|
@@ -1415,7 +1351,6 @@ declare const prReadyProofSchema: z.ZodObject<{
|
|
|
1415
1351
|
action: z.ZodString;
|
|
1416
1352
|
code: z.ZodEnum<{
|
|
1417
1353
|
"undraft-pr": "undraft-pr";
|
|
1418
|
-
"render-pr-body-sections": "render-pr-body-sections";
|
|
1419
1354
|
"await-post-undraft-checks": "await-post-undraft-checks";
|
|
1420
1355
|
}>;
|
|
1421
1356
|
command: z.ZodString;
|
|
@@ -1425,7 +1360,6 @@ declare const prReadyProofSchema: z.ZodObject<{
|
|
|
1425
1360
|
status: z.ZodEnum<{
|
|
1426
1361
|
ready: "ready";
|
|
1427
1362
|
blocked: "blocked";
|
|
1428
|
-
"slice-ready/not-final": "slice-ready/not-final";
|
|
1429
1363
|
}>;
|
|
1430
1364
|
waivedDemands: z.ZodOptional<z.ZodArray<z.ZodType<WaivedDemand, unknown, z.core.$ZodTypeInternals<WaivedDemand, unknown>>>>;
|
|
1431
1365
|
}, z.core.$strip>;
|