@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/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 second on one pull request (#1280). A round is
60
- * every review recorded at one patch, so a pair of clean sessions at one
61
- * head is one round. Only an operator waiver clears it: `pr:review
62
- * --assemble` refuses to start a third round without one, and `pr:ready`
63
- * refuses a ladder that holds more than two. The waiver rationale carries
64
- * the operator's disposition.
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
- 1116352408,
333
- 1899447441,
334
- 3049323471,
335
- 3921009573,
340
+ 0x428a2f98,
341
+ 0x71374491,
342
+ 0xb5c0fbcf,
343
+ 0xe9b5dba5,
336
344
  961987163,
337
- 1508970993,
338
- 2453635748,
339
- 2870763221,
340
- 3624381080,
345
+ 0x59f111f1,
346
+ 0x923f82a4,
347
+ 0xab1c5ed5,
348
+ 0xd807aa98,
341
349
  310598401,
342
350
  607225278,
343
- 1426881987,
344
- 1925078388,
345
- 2162078206,
346
- 2614888103,
347
- 3248222580,
348
- 3835390401,
349
- 4022224774,
350
- 264347078,
351
+ 0x550c7dc3,
352
+ 0x72be5d74,
353
+ 0x80deb1fe,
354
+ 0x9bdc06a7,
355
+ 0xc19bf174,
356
+ 0xe49b69c1,
357
+ 0xefbe4786,
358
+ 0xfc19dc6,
351
359
  604807628,
352
360
  770255983,
353
- 1249150122,
354
- 1555081692,
355
- 1996064986,
356
- 2554220882,
357
- 2821834349,
358
- 2952996808,
359
- 3210313671,
360
- 3336571891,
361
- 3584528711,
362
- 113926993,
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
- 1294757372,
367
- 1396182291,
368
- 1695183700,
369
- 1986661051,
370
- 2177026350,
371
- 2456956037,
372
- 2730485921,
373
- 2820302411,
374
- 3259730800,
375
- 3345764771,
376
- 3516065817,
377
- 3600352804,
378
- 4094571909,
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
- 1322822218,
386
- 1537002063,
387
- 1747873779,
388
- 1955562222,
389
- 2024104815,
390
- 2227730452,
391
- 2361852424,
392
- 2428436474,
393
- 2756734187,
394
- 3204031479,
395
- 3329325298
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
- 1779033703,
399
- 3144134277,
400
- 1013904242,
401
- 2773480762,
402
- 1359893119,
403
- 2600822924,
406
+ 0x6a09e667,
407
+ 0xbb67ae85,
408
+ 0x3c6ef372,
409
+ 0xa54ff53a,
410
+ 0x510e527f,
411
+ 0x9b05688c,
404
412
  528734635,
405
- 1541459225
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
- // src/required-check-policy.ts
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.46",
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.46",
37
- "commander": "15.0.0",
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.0.5",
46
- "dependency-cruiser": "18.8.0-beta-1",
47
- "knip": "6.43.0",
48
- "oxfmt": "0.75.0",
49
- "oxlint": "1.90.0",
50
- "oxlint-tsgolint": "7.0.2005",
51
- "tsdown": "0.23.2",
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.0",
56
- "vitest": "5.0.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 };