@patronage/software-factory 1.0.0-alpha.47 → 1.0.0-alpha.49
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 +9 -5
- package/dist/ci.d.ts +1888 -0
- package/dist/ci.js +4519 -0
- package/dist/cloud/review.sh +76 -0
- package/dist/cloud/run.sh +63 -0
- package/dist/cloud/session-env.sh +80 -0
- package/dist/index.d.ts +125 -403
- package/dist/index.js +7716 -5806
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/schemas.d.ts +8 -0
- package/dist/schemas.js +66 -63
- package/package.json +21 -15
- package/dist/rolldown-runtime-D8jQpDG7.js +0 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
|
+
};
|
|
12
|
+
export { __exportAll as t };
|
package/dist/schemas.d.ts
CHANGED
|
@@ -727,6 +727,13 @@ interface PrVerifyProof {
|
|
|
727
727
|
* not move.
|
|
728
728
|
*/
|
|
729
729
|
runner?: PrVerifyRunner;
|
|
730
|
+
/**
|
|
731
|
+
* `whole-tree` when every command saw the whole tree as its run context
|
|
732
|
+
* (#1658): the empty-tree base ref and every tracked path. Absent means the
|
|
733
|
+
* commands saw the diff and may have scoped themselves to it. Only a
|
|
734
|
+
* whole-tree proof can stand in for a merge target's hosted battery.
|
|
735
|
+
*/
|
|
736
|
+
runScope?: "whole-tree";
|
|
730
737
|
startedAt: string;
|
|
731
738
|
verificationCommands: PrVerifyCommandResult[];
|
|
732
739
|
}
|
|
@@ -853,6 +860,7 @@ export declare const prVerifyProofSchema: z.ZodObject<{
|
|
|
853
860
|
"github-actions": "github-actions";
|
|
854
861
|
}>>;
|
|
855
862
|
}, z.core.$strip>>;
|
|
863
|
+
runScope: z.ZodOptional<z.ZodLiteral<"whole-tree">>;
|
|
856
864
|
schemaVersion: z.ZodLiteral<4>;
|
|
857
865
|
startedAt: z.ZodISODateTime;
|
|
858
866
|
verificationCommands: z.ZodArray<z.ZodObject<{
|
package/dist/schemas.js
CHANGED
|
@@ -62,12 +62,14 @@ const DEMAND_KEYS = {
|
|
|
62
62
|
/** The profile-resolved review ladder policy. */
|
|
63
63
|
reviewLadder: "review-ladder",
|
|
64
64
|
/**
|
|
65
|
-
* A review round past the
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* 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.
|
|
71
73
|
*/
|
|
72
74
|
reviewRoundLimit: "review-round-limit",
|
|
73
75
|
/** Unresolved GitHub review threads. */
|
|
@@ -335,80 +337,80 @@ const hasDuplicateProvenance = (sections) => new Set(sections.map((section) => s
|
|
|
335
337
|
const isOutOfAssemblyOrder = (sections) => sections.some((section, index) => index > 0 && promptSectionRank(section) < promptSectionRank(sections[index - 1]));
|
|
336
338
|
const reviewPromptSectionsSchema = z.array(reviewPromptSectionSchema).min(1).refine((sections) => !hasDuplicateProvenance(sections) && !isOutOfAssemblyOrder(sections), { message: "prompt sections must be in assembly order without duplicates" });
|
|
337
339
|
new Uint32Array([
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
0x428a2f98,
|
|
341
|
+
0x71374491,
|
|
342
|
+
0xb5c0fbcf,
|
|
343
|
+
0xe9b5dba5,
|
|
342
344
|
961987163,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
0x59f111f1,
|
|
346
|
+
0x923f82a4,
|
|
347
|
+
0xab1c5ed5,
|
|
348
|
+
0xd807aa98,
|
|
347
349
|
310598401,
|
|
348
350
|
607225278,
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
351
|
+
0x550c7dc3,
|
|
352
|
+
0x72be5d74,
|
|
353
|
+
0x80deb1fe,
|
|
354
|
+
0x9bdc06a7,
|
|
355
|
+
0xc19bf174,
|
|
356
|
+
0xe49b69c1,
|
|
357
|
+
0xefbe4786,
|
|
358
|
+
0xfc19dc6,
|
|
357
359
|
604807628,
|
|
358
360
|
770255983,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
361
|
+
0x4a7484aa,
|
|
362
|
+
0x5cb0a9dc,
|
|
363
|
+
0x76f988da,
|
|
364
|
+
0x983e5152,
|
|
365
|
+
0xa831c66d,
|
|
366
|
+
0xb00327c8,
|
|
367
|
+
0xbf597fc7,
|
|
368
|
+
0xc6e00bf3,
|
|
369
|
+
0xd5a79147,
|
|
370
|
+
0x6ca6351,
|
|
369
371
|
338241895,
|
|
370
372
|
666307205,
|
|
371
373
|
773529912,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
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,
|
|
385
387
|
275423344,
|
|
386
388
|
430227734,
|
|
387
389
|
506948616,
|
|
388
390
|
659060556,
|
|
389
391
|
883997877,
|
|
390
392
|
958139571,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
393
|
+
0x4ed8aa4a,
|
|
394
|
+
0x5b9cca4f,
|
|
395
|
+
0x682e6ff3,
|
|
396
|
+
0x748f82ee,
|
|
397
|
+
0x78a5636f,
|
|
398
|
+
0x84c87814,
|
|
399
|
+
0x8cc70208,
|
|
400
|
+
0x90befffa,
|
|
401
|
+
0xa4506ceb,
|
|
402
|
+
0xbef9a3f7,
|
|
403
|
+
0xc67178f2
|
|
402
404
|
]);
|
|
403
405
|
new Uint32Array([
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
406
|
+
0x6a09e667,
|
|
407
|
+
0xbb67ae85,
|
|
408
|
+
0x3c6ef372,
|
|
409
|
+
0xa54ff53a,
|
|
410
|
+
0x510e527f,
|
|
411
|
+
0x9b05688c,
|
|
410
412
|
528734635,
|
|
411
|
-
|
|
413
|
+
0x5be0cd19
|
|
412
414
|
]);
|
|
413
415
|
// src/review-ladder-policy.ts
|
|
414
416
|
const REVIEW_CATEGORIES = [
|
|
@@ -1279,6 +1281,7 @@ const prVerifyProofSchema = z.object({
|
|
|
1279
1281
|
projectKey: z.string().min(1),
|
|
1280
1282
|
repository: z.string().min(1),
|
|
1281
1283
|
runner: runnerSchema.optional(),
|
|
1284
|
+
runScope: z.literal("whole-tree").optional(),
|
|
1282
1285
|
schemaVersion: prVerifySchemaVersionSchema,
|
|
1283
1286
|
startedAt: z.iso.datetime(),
|
|
1284
1287
|
verificationCommands: z.array(z.object({
|
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.49",
|
|
4
4
|
"description": "Shared Patronage software factory CLI and project-profile validation tools",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,45 +27,52 @@
|
|
|
27
27
|
"types": "./dist/schemas.d.ts",
|
|
28
28
|
"default": "./dist/schemas.js"
|
|
29
29
|
},
|
|
30
|
+
"./ci": {
|
|
31
|
+
"types": "./dist/ci.d.ts",
|
|
32
|
+
"default": "./dist/ci.js"
|
|
33
|
+
},
|
|
30
34
|
"./cloud": {
|
|
31
35
|
"types": "./dist/cloud/credentials.d.mts",
|
|
32
36
|
"default": "./dist/cloud/credentials.mjs"
|
|
33
37
|
},
|
|
34
|
-
"./cloud/install-tools.sh": "./dist/cloud/install-tools.sh"
|
|
38
|
+
"./cloud/install-tools.sh": "./dist/cloud/install-tools.sh",
|
|
39
|
+
"./cloud/review.sh": "./dist/cloud/review.sh",
|
|
40
|
+
"./cloud/run.sh": "./dist/cloud/run.sh"
|
|
35
41
|
},
|
|
36
42
|
"publishConfig": {
|
|
37
43
|
"access": "public",
|
|
38
44
|
"tag": "next"
|
|
39
45
|
},
|
|
40
46
|
"dependencies": {
|
|
41
|
-
"
|
|
42
|
-
"commander": "15.0.0",
|
|
47
|
+
"commander": "15.1.0",
|
|
43
48
|
"picomatch": "^4.0.7",
|
|
44
49
|
"yaml": "^2.9.1",
|
|
45
50
|
"zod": "4.6.7"
|
|
46
51
|
},
|
|
47
52
|
"devDependencies": {
|
|
53
|
+
"@cloudflare/oxlint-config": "0.1.0",
|
|
54
|
+
"@patronage/factory-ci": "1.0.0-alpha.49",
|
|
48
55
|
"@types/node": "24.19.2",
|
|
49
56
|
"@types/picomatch": "^4.0.3",
|
|
50
|
-
"@vitest/coverage-v8": "5.
|
|
51
|
-
"dependency-cruiser": "18.8.0
|
|
52
|
-
"knip": "6.
|
|
53
|
-
"oxfmt": "0.
|
|
54
|
-
"oxlint": "1.
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
58
|
+
"dependency-cruiser": "18.8.0",
|
|
59
|
+
"knip": "6.46.1",
|
|
60
|
+
"oxfmt": "0.79.0",
|
|
61
|
+
"oxlint": "1.94.0",
|
|
62
|
+
"tsdown": "0.23.7",
|
|
63
|
+
"tsrs": "0.25.0-ts7.1.0-beta",
|
|
57
64
|
"tsx": "4.23.15",
|
|
58
65
|
"typescript": "7.1.0-beta",
|
|
59
66
|
"typescript-api": "npm:typescript@5.9.3",
|
|
60
|
-
"ultracite": "8.1
|
|
61
|
-
"vitest": "5.
|
|
67
|
+
"ultracite": "8.3.1",
|
|
68
|
+
"vitest": "5.1.1"
|
|
62
69
|
},
|
|
63
70
|
"engines": {
|
|
64
71
|
"node": "^24.0.0"
|
|
65
72
|
},
|
|
66
73
|
"scripts": {
|
|
67
74
|
"prebuild": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
68
|
-
"build": "tsdown",
|
|
75
|
+
"build": "node ../scripts/factory-ci-dist-stamp.mjs check && tsdown",
|
|
69
76
|
"boundaries": "node scripts/package-boundaries.mjs",
|
|
70
77
|
"api:check": "pnpm build && pnpm api:check:prepared",
|
|
71
78
|
"api:check:prepared": "node scripts/public-api-surface.mjs",
|
|
@@ -89,7 +96,6 @@
|
|
|
89
96
|
"typecheck": "tsc --noEmit",
|
|
90
97
|
"precheck": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
91
98
|
"check": "ultracite check",
|
|
92
|
-
"check:type-aware": "oxlint --type-aware --tsconfig=tsconfig.json -c oxlint.type-aware.jsonc src",
|
|
93
99
|
"prefix": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
94
100
|
"fix": "ultracite fix",
|
|
95
101
|
"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 };
|