@deftai/directive 0.126.0 → 0.126.1

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.
@@ -13,6 +13,13 @@ interface ParsedArgs {
13
13
  mergePathArm: boolean;
14
14
  liveWait: boolean;
15
15
  explicitFinish: boolean;
16
+ /**
17
+ * Product mint-gate BLOCKED — refuse --explicit-finish write (#5690).
18
+ * Pass-through to writeMergePathExplicitFinishAttestation.mintGateBlocked.
19
+ */
20
+ mintGateBlocked: boolean;
21
+ /** Optional attestation reason; mint markers also refuse the write (#5690). */
22
+ reason: string | null;
16
23
  stickyLease: boolean;
17
24
  /** DeliveryAttemptRecord.startedAt for Approach 1 arm-startup halt (#5278 P3). */
18
25
  dispatchStartedAt: string | null;
@@ -24,6 +24,8 @@ export function parseVerifyReviewMonitorArgs(argv) {
24
24
  mergePathArm: false,
25
25
  liveWait: false,
26
26
  explicitFinish: false,
27
+ mintGateBlocked: false,
28
+ reason: null,
27
29
  stickyLease: false,
28
30
  dispatchStartedAt: null,
29
31
  help: false,
@@ -45,6 +47,20 @@ export function parseVerifyReviewMonitorArgs(argv) {
45
47
  else if (arg === "--explicit-finish") {
46
48
  acc.explicitFinish = true;
47
49
  }
50
+ else if (arg === "--mint-gate-blocked") {
51
+ acc.mintGateBlocked = true;
52
+ }
53
+ else if (arg === "--reason") {
54
+ const value = argv[i + 1];
55
+ if (value === undefined) {
56
+ return { ...acc, error: "argument --reason: expected one argument" };
57
+ }
58
+ acc.reason = value;
59
+ i += 1;
60
+ }
61
+ else if (arg?.startsWith("--reason=")) {
62
+ acc.reason = arg.slice("--reason=".length);
63
+ }
48
64
  else if (arg === "--sticky-lease") {
49
65
  acc.stickyLease = true;
50
66
  }
@@ -159,6 +175,9 @@ export function run(argv) {
159
175
  " pr:watch CLEAN attestation — #5219;\n" +
160
176
  " parent-shell pr:watch (parent_id=pr-watch) does not arm.\n" +
161
177
  " --explicit-finish Attest option-C BLOCKED/FAILED finish for this PR\n" +
178
+ " --mint-gate-blocked Refuse --explicit-finish write for product mint-gate\n" +
179
+ " BLOCKED (non-option-C; #5690)\n" +
180
+ " --reason TEXT Attestation reason; mint markers also refuse write (#5690)\n" +
162
181
  " --sticky-lease Attest a fresh sticky lease (not sufficient alone)\n" +
163
182
  " --dispatch-started-at DeliveryAttemptRecord.startedAt ISO for Approach 1\n" +
164
183
  " arm-startup halt (#5278); when merge-path-arm stays\n" +
@@ -202,6 +221,8 @@ export function run(argv) {
202
221
  else {
203
222
  const written = writeMergePathExplicitFinishAttestation(resolve(args.projectRoot), args.pr, {
204
223
  source: "verify:review-monitor --explicit-finish",
224
+ reason: args.reason ?? undefined,
225
+ mintGateBlocked: args.mintGateBlocked,
205
226
  });
206
227
  if (!written.ok) {
207
228
  process.stderr.write(`verify_review_monitor: ${written.reason}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deftai/directive",
3
- "version": "0.126.0",
3
+ "version": "0.126.1",
4
4
  "description": "Directive CLI — npm install path for the Deft Directive framework.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://deftai.github.io/directive/",
@@ -35,8 +35,8 @@
35
35
  "provenance": true
36
36
  },
37
37
  "dependencies": {
38
- "@deftai/directive-core": "^0.126.0",
39
- "@deftai/directive-content": "^0.126.0"
38
+ "@deftai/directive-core": "^0.126.1",
39
+ "@deftai/directive-content": "^0.126.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc -b",