@patronage/software-factory 1.0.0-alpha.46 → 1.0.0-alpha.48
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 +28 -1
- package/dist/cloud/credentials.d.mts +21 -0
- package/dist/cloud/credentials.mjs +136 -0
- package/dist/cloud/gh-shim.mjs +1026 -0
- package/dist/cloud/install-tools.sh +59 -0
- package/dist/cloud/run.sh +74 -0
- package/dist/cloud/session-env.sh +75 -0
- package/dist/index.d.ts +2233 -2553
- package/dist/index.js +324 -251
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/schemas.d.ts +494 -478
- package/dist/schemas.js +74 -71
- package/package.json +20 -14
- package/dist/rolldown-runtime-D8jQpDG7.js +0 -12
package/dist/schemas.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import "yaml";
|
|
3
3
|
import "picomatch";
|
|
4
|
+
// src/arming-outcome.ts
|
|
5
|
+
const ARMING_OUTCOMES = [
|
|
6
|
+
"armed",
|
|
7
|
+
"merged",
|
|
8
|
+
"not-armed"
|
|
9
|
+
];
|
|
4
10
|
// src/review-rungs.ts
|
|
5
11
|
const EVIDENCE_REVIEW_RUNGS = [
|
|
6
12
|
"independent-model",
|
|
@@ -56,12 +62,14 @@ const DEMAND_KEYS = {
|
|
|
56
62
|
/** The profile-resolved review ladder policy. */
|
|
57
63
|
reviewLadder: "review-ladder",
|
|
58
64
|
/**
|
|
59
|
-
* A review round past the
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* the
|
|
65
|
+
* A review round past the repository's round limit on one pull request
|
|
66
|
+
* (#1280). The limit is `review.roundsWithoutWaiver` in the profile on the
|
|
67
|
+
* base ref, 2 when absent; the candidate's own value is never read (#922).
|
|
68
|
+
* A round is every review recorded at one patch, so a pair of clean
|
|
69
|
+
* sessions at one head is one round. Only an operator waiver clears it:
|
|
70
|
+
* `pr:review --assemble` refuses to start a round past the limit without
|
|
71
|
+
* one, and `pr:ready` refuses a ladder that holds more rounds than the
|
|
72
|
+
* limit. The waiver rationale carries the operator's disposition.
|
|
65
73
|
*/
|
|
66
74
|
reviewRoundLimit: "review-round-limit",
|
|
67
75
|
/** Unresolved GitHub review threads. */
|
|
@@ -329,80 +337,80 @@ const hasDuplicateProvenance = (sections) => new Set(sections.map((section) => s
|
|
|
329
337
|
const isOutOfAssemblyOrder = (sections) => sections.some((section, index) => index > 0 && promptSectionRank(section) < promptSectionRank(sections[index - 1]));
|
|
330
338
|
const reviewPromptSectionsSchema = z.array(reviewPromptSectionSchema).min(1).refine((sections) => !hasDuplicateProvenance(sections) && !isOutOfAssemblyOrder(sections), { message: "prompt sections must be in assembly order without duplicates" });
|
|
331
339
|
new Uint32Array([
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
340
|
+
0x428a2f98,
|
|
341
|
+
0x71374491,
|
|
342
|
+
0xb5c0fbcf,
|
|
343
|
+
0xe9b5dba5,
|
|
336
344
|
961987163,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
345
|
+
0x59f111f1,
|
|
346
|
+
0x923f82a4,
|
|
347
|
+
0xab1c5ed5,
|
|
348
|
+
0xd807aa98,
|
|
341
349
|
310598401,
|
|
342
350
|
607225278,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
+
0x550c7dc3,
|
|
352
|
+
0x72be5d74,
|
|
353
|
+
0x80deb1fe,
|
|
354
|
+
0x9bdc06a7,
|
|
355
|
+
0xc19bf174,
|
|
356
|
+
0xe49b69c1,
|
|
357
|
+
0xefbe4786,
|
|
358
|
+
0xfc19dc6,
|
|
351
359
|
604807628,
|
|
352
360
|
770255983,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
0x4a7484aa,
|
|
362
|
+
0x5cb0a9dc,
|
|
363
|
+
0x76f988da,
|
|
364
|
+
0x983e5152,
|
|
365
|
+
0xa831c66d,
|
|
366
|
+
0xb00327c8,
|
|
367
|
+
0xbf597fc7,
|
|
368
|
+
0xc6e00bf3,
|
|
369
|
+
0xd5a79147,
|
|
370
|
+
0x6ca6351,
|
|
363
371
|
338241895,
|
|
364
372
|
666307205,
|
|
365
373
|
773529912,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
374
|
+
0x4d2c6dfc,
|
|
375
|
+
0x53380d13,
|
|
376
|
+
0x650a7354,
|
|
377
|
+
0x766a0abb,
|
|
378
|
+
0x81c2c92e,
|
|
379
|
+
0x92722c85,
|
|
380
|
+
0xa2bfe8a1,
|
|
381
|
+
0xa81a664b,
|
|
382
|
+
0xc24b8b70,
|
|
383
|
+
0xc76c51a3,
|
|
384
|
+
0xd192e819,
|
|
385
|
+
0xd6990624,
|
|
386
|
+
0xf40e3585,
|
|
379
387
|
275423344,
|
|
380
388
|
430227734,
|
|
381
389
|
506948616,
|
|
382
390
|
659060556,
|
|
383
391
|
883997877,
|
|
384
392
|
958139571,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
393
|
+
0x4ed8aa4a,
|
|
394
|
+
0x5b9cca4f,
|
|
395
|
+
0x682e6ff3,
|
|
396
|
+
0x748f82ee,
|
|
397
|
+
0x78a5636f,
|
|
398
|
+
0x84c87814,
|
|
399
|
+
0x8cc70208,
|
|
400
|
+
0x90befffa,
|
|
401
|
+
0xa4506ceb,
|
|
402
|
+
0xbef9a3f7,
|
|
403
|
+
0xc67178f2
|
|
396
404
|
]);
|
|
397
405
|
new Uint32Array([
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
406
|
+
0x6a09e667,
|
|
407
|
+
0xbb67ae85,
|
|
408
|
+
0x3c6ef372,
|
|
409
|
+
0xa54ff53a,
|
|
410
|
+
0x510e527f,
|
|
411
|
+
0x9b05688c,
|
|
404
412
|
528734635,
|
|
405
|
-
|
|
413
|
+
0x5be0cd19
|
|
406
414
|
]);
|
|
407
415
|
// src/review-ladder-policy.ts
|
|
408
416
|
const REVIEW_CATEGORIES = [
|
|
@@ -857,8 +865,7 @@ const prReviewProofSchema = z.object({
|
|
|
857
865
|
path: ["reviewCycle"]
|
|
858
866
|
});
|
|
859
867
|
});
|
|
860
|
-
|
|
861
|
-
const EVIDENCE_CHECK_TYPES = ["review", "verify"];
|
|
868
|
+
const evidenceCheckTypeSchema = z.enum(["review", "verify"]);
|
|
862
869
|
const requiredCheckScopeSchema = z.object({ classifications: z.array(z.enum(DIFF_CLASSIFICATIONS)).min(1) }).strict();
|
|
863
870
|
const reviewStatusSchema = z.enum([
|
|
864
871
|
"not-required",
|
|
@@ -1274,6 +1281,7 @@ const prVerifyProofSchema = z.object({
|
|
|
1274
1281
|
projectKey: z.string().min(1),
|
|
1275
1282
|
repository: z.string().min(1),
|
|
1276
1283
|
runner: runnerSchema.optional(),
|
|
1284
|
+
runScope: z.literal("whole-tree").optional(),
|
|
1277
1285
|
schemaVersion: prVerifySchemaVersionSchema,
|
|
1278
1286
|
startedAt: z.iso.datetime(),
|
|
1279
1287
|
verificationCommands: z.array(z.object({
|
|
@@ -1361,7 +1369,6 @@ const gateTimingRecordSchema = z.object({
|
|
|
1361
1369
|
startedAt: z.iso.datetime()
|
|
1362
1370
|
}).strict();
|
|
1363
1371
|
// src/schemas.ts
|
|
1364
|
-
const evidenceCheckTypeSchema = z.enum(EVIDENCE_CHECK_TYPES);
|
|
1365
1372
|
const evidenceReviewRungSchema = z.enum(EVIDENCE_REVIEW_RUNGS);
|
|
1366
1373
|
const diffClassificationSchema = z.enum(DIFF_CLASSIFICATIONS);
|
|
1367
1374
|
const ladderStageSchema = z.enum(LADDER_STAGES);
|
|
@@ -1641,11 +1648,7 @@ const prReadyProofSchema = z.object({
|
|
|
1641
1648
|
arming: z.object({
|
|
1642
1649
|
detail: z.string().min(1).optional(),
|
|
1643
1650
|
headSha: z.string().regex(/^[0-9a-f]{40}$/u),
|
|
1644
|
-
outcome: z.enum(
|
|
1645
|
-
"armed",
|
|
1646
|
-
"merged",
|
|
1647
|
-
"not-armed"
|
|
1648
|
-
])
|
|
1651
|
+
outcome: z.enum(ARMING_OUTCOMES)
|
|
1649
1652
|
}).optional(),
|
|
1650
1653
|
authoringSession: z.string().min(1).optional(),
|
|
1651
1654
|
blockedReasons: blockedReasonsSchema.optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patronage/software-factory",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.48",
|
|
4
4
|
"description": "Shared Patronage software factory CLI and project-profile validation tools",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,34 +26,41 @@
|
|
|
26
26
|
"./schemas": {
|
|
27
27
|
"types": "./dist/schemas.d.ts",
|
|
28
28
|
"default": "./dist/schemas.js"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"./cloud": {
|
|
31
|
+
"types": "./dist/cloud/credentials.d.mts",
|
|
32
|
+
"default": "./dist/cloud/credentials.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./cloud/install-tools.sh": "./dist/cloud/install-tools.sh",
|
|
35
|
+
"./cloud/run.sh": "./dist/cloud/run.sh"
|
|
30
36
|
},
|
|
31
37
|
"publishConfig": {
|
|
32
38
|
"access": "public",
|
|
33
39
|
"tag": "next"
|
|
34
40
|
},
|
|
35
41
|
"dependencies": {
|
|
36
|
-
"@patronage/factory-ci": "1.0.0-alpha.
|
|
37
|
-
"commander": "15.
|
|
42
|
+
"@patronage/factory-ci": "1.0.0-alpha.48",
|
|
43
|
+
"commander": "15.1.0",
|
|
38
44
|
"picomatch": "^4.0.7",
|
|
39
45
|
"yaml": "^2.9.1",
|
|
40
46
|
"zod": "4.6.7"
|
|
41
47
|
},
|
|
42
48
|
"devDependencies": {
|
|
49
|
+
"@cloudflare/oxlint-config": "0.1.0",
|
|
43
50
|
"@types/node": "24.19.2",
|
|
44
51
|
"@types/picomatch": "^4.0.3",
|
|
45
|
-
"@vitest/coverage-v8": "5.
|
|
46
|
-
"dependency-cruiser": "18.8.0
|
|
47
|
-
"knip": "6.
|
|
48
|
-
"oxfmt": "0.
|
|
49
|
-
"oxlint": "1.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
53
|
+
"dependency-cruiser": "18.8.0",
|
|
54
|
+
"knip": "6.46.1",
|
|
55
|
+
"oxfmt": "0.79.0",
|
|
56
|
+
"oxlint": "1.94.0",
|
|
57
|
+
"tsdown": "0.23.7",
|
|
58
|
+
"tsrs": "0.25.0-ts7.1.0-beta",
|
|
52
59
|
"tsx": "4.23.15",
|
|
53
60
|
"typescript": "7.1.0-beta",
|
|
54
61
|
"typescript-api": "npm:typescript@5.9.3",
|
|
55
|
-
"ultracite": "8.1
|
|
56
|
-
"vitest": "5.
|
|
62
|
+
"ultracite": "8.3.1",
|
|
63
|
+
"vitest": "5.1.1"
|
|
57
64
|
},
|
|
58
65
|
"engines": {
|
|
59
66
|
"node": "^24.0.0"
|
|
@@ -84,7 +91,6 @@
|
|
|
84
91
|
"typecheck": "tsc --noEmit",
|
|
85
92
|
"precheck": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
86
93
|
"check": "ultracite check",
|
|
87
|
-
"check:type-aware": "oxlint --type-aware --tsconfig=tsconfig.json -c oxlint.type-aware.jsonc src",
|
|
88
94
|
"prefix": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
89
95
|
"fix": "ultracite fix",
|
|
90
96
|
"knip": "knip"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
-
return target;
|
|
11
|
-
};
|
|
12
|
-
export { __exportAll as t };
|