@patronage/software-factory 1.0.0-alpha.1 → 1.0.0-alpha.13
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/CONTEXT.md +10 -0
- package/README.md +14 -6
- package/dist/index.d.ts +51 -53
- package/dist/index.js +1302 -522
- package/dist/schemas.d.ts +4 -2
- package/dist/schemas.js +5 -4
- package/package.json +7 -3
package/dist/schemas.d.ts
CHANGED
|
@@ -497,7 +497,7 @@ declare const impactStampSchema: z.ZodObject<{
|
|
|
497
497
|
conservative: "conservative";
|
|
498
498
|
}>;
|
|
499
499
|
reasons: z.ZodArray<z.ZodString>;
|
|
500
|
-
stampVersion: z.ZodLiteral<
|
|
500
|
+
stampVersion: z.ZodLiteral<3>;
|
|
501
501
|
targets: z.ZodArray<z.ZodObject<{
|
|
502
502
|
basis: z.ZodString;
|
|
503
503
|
impact: z.ZodEnum<{
|
|
@@ -506,6 +506,7 @@ declare const impactStampSchema: z.ZodObject<{
|
|
|
506
506
|
}>;
|
|
507
507
|
name: z.ZodString;
|
|
508
508
|
}, z.core.$strip>>;
|
|
509
|
+
unsubscribedPaths: z.ZodArray<z.ZodString>;
|
|
509
510
|
}, z.core.$strip>;
|
|
510
511
|
type ImpactStamp = z.infer<typeof impactStampSchema>;
|
|
511
512
|
//#endregion
|
|
@@ -1366,7 +1367,7 @@ declare const prVerifyProofSchema: z.ZodObject<{
|
|
|
1366
1367
|
conservative: "conservative";
|
|
1367
1368
|
}>;
|
|
1368
1369
|
reasons: z.ZodArray<z.ZodString>;
|
|
1369
|
-
stampVersion: z.ZodLiteral<
|
|
1370
|
+
stampVersion: z.ZodLiteral<3>;
|
|
1370
1371
|
targets: z.ZodArray<z.ZodObject<{
|
|
1371
1372
|
basis: z.ZodString;
|
|
1372
1373
|
impact: z.ZodEnum<{
|
|
@@ -1375,6 +1376,7 @@ declare const prVerifyProofSchema: z.ZodObject<{
|
|
|
1375
1376
|
}>;
|
|
1376
1377
|
name: z.ZodString;
|
|
1377
1378
|
}, z.core.$strip>>;
|
|
1379
|
+
unsubscribedPaths: z.ZodArray<z.ZodString>;
|
|
1378
1380
|
}, z.core.$strip>>;
|
|
1379
1381
|
mergeBaseSha: z.ZodOptional<z.ZodString>;
|
|
1380
1382
|
mode: z.ZodEnum<{
|
package/dist/schemas.js
CHANGED
|
@@ -242,14 +242,15 @@ const impactStampTargetSchema = z.object({
|
|
|
242
242
|
const impactStampSchema = z.object({
|
|
243
243
|
basis: z.enum(["target-scoped", "conservative"]),
|
|
244
244
|
reasons: z.array(z.string()),
|
|
245
|
-
stampVersion: z.literal(
|
|
245
|
+
stampVersion: z.literal(3),
|
|
246
246
|
targets: z.array(impactStampTargetSchema).superRefine((targets, context) => {
|
|
247
247
|
const names = targets.map((target) => target.name);
|
|
248
248
|
if (new Set(names).size !== names.length) context.addIssue({
|
|
249
249
|
code: "custom",
|
|
250
250
|
message: "impact stamp targets must have distinct names."
|
|
251
251
|
});
|
|
252
|
-
})
|
|
252
|
+
}),
|
|
253
|
+
unsubscribedPaths: z.array(z.string())
|
|
253
254
|
});
|
|
254
255
|
/**
|
|
255
256
|
* The surfaces that consume the stamp. One classification, consumed
|
|
@@ -287,8 +288,8 @@ const impactStampScopeDecision = ({ stamp, surface, targetName }) => {
|
|
|
287
288
|
reason: `no trusted identity-bound impact stamp covers this candidate; ${floor}`,
|
|
288
289
|
scoped: false
|
|
289
290
|
};
|
|
290
|
-
if (stamp.stampVersion !==
|
|
291
|
-
reason: `impact stamp version ${String(stamp.stampVersion)} is not this build's version
|
|
291
|
+
if (stamp.stampVersion !== 3) return {
|
|
292
|
+
reason: `impact stamp version ${String(stamp.stampVersion)} is not this build's version 3; ${floor}`,
|
|
292
293
|
scoped: false
|
|
293
294
|
};
|
|
294
295
|
if (stamp.basis !== "target-scoped") return {
|
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.13",
|
|
4
4
|
"description": "Shared Patronage software factory CLI and project-profile validation tools",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -29,13 +29,15 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
|
-
"access": "public"
|
|
32
|
+
"access": "public",
|
|
33
|
+
"tag": "next"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"commander": "14.0.3",
|
|
36
37
|
"picomatch": "^4.0.5",
|
|
37
38
|
"yaml": "^2.9.0",
|
|
38
|
-
"zod": "4.4.3"
|
|
39
|
+
"zod": "4.4.3",
|
|
40
|
+
"@patronage/factory-ci": "1.0.0-alpha.13"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@types/node": "24.13.3",
|
|
@@ -75,6 +77,8 @@
|
|
|
75
77
|
"profile:schema": "tsx scripts/generate-profile-schema.ts",
|
|
76
78
|
"pretest": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
77
79
|
"test": "vitest run",
|
|
80
|
+
"pretest:profile": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
81
|
+
"test:profile": "tsx scripts/vitest-profile.ts",
|
|
78
82
|
"pretest:stress": "bash ../scripts/ensure-worktree-bootstrap.sh",
|
|
79
83
|
"test:stress": "node scripts/stress-tests.mjs",
|
|
80
84
|
"pretypecheck": "bash ../scripts/ensure-worktree-bootstrap.sh",
|