mason-context 0.17.4 → 0.18.0

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.
@@ -5,7 +5,7 @@ import path12 from "path";
5
5
  import { stripVTControlCharacters } from "util";
6
6
 
7
7
  // src/review/review.ts
8
- import fs5 from "fs/promises";
8
+ import fs6 from "fs/promises";
9
9
  import path11 from "path";
10
10
  import { execFile as execFile3 } from "child_process";
11
11
  import { promisify as promisify3 } from "util";
@@ -48,7 +48,7 @@ function execGit(args, options) {
48
48
  }
49
49
 
50
50
  // src/drift/drift.ts
51
- import fs3 from "fs/promises";
51
+ import fs4 from "fs/promises";
52
52
  import path6 from "path";
53
53
 
54
54
  // src/snapshot/snapshot.ts
@@ -256,6 +256,10 @@ async function readStoreJson(root, relative) {
256
256
  // src/snapshot/snapshot.ts
257
257
  import { z } from "zod";
258
258
 
259
+ // src/utils/store-lock.ts
260
+ import fs3 from "fs/promises";
261
+ import os from "os";
262
+
259
263
  // src/test-map.ts
260
264
  import path4 from "path";
261
265
  async function buildTestMap(dir) {
@@ -332,6 +336,7 @@ var verificationFields = {
332
336
  refreshedHash: z.string().optional(),
333
337
  verifiedAt: z.string().optional(),
334
338
  verifiedHash: z.string().optional(),
339
+ verificationToken: z.string().optional(),
335
340
  verificationFailed: z.boolean().optional(),
336
341
  verificationNote: z.string().optional()
337
342
  };
@@ -567,7 +572,7 @@ function decisionKnowledge(record, freshness = "unknown", proposalFreshness = "u
567
572
  }
568
573
 
569
574
  // src/decisions/decisions.ts
570
- import fs4 from "fs/promises";
575
+ import fs5 from "fs/promises";
571
576
  import path8 from "path";
572
577
  import { createHash } from "crypto";
573
578
  import { z as z3 } from "zod";
@@ -593,7 +598,7 @@ async function loadDecisionStore(rootDir) {
593
598
  const diagnostics = [];
594
599
  let entries;
595
600
  try {
596
- entries = await fs4.readdir(await storePath(rootDir, ".mason/decisions"));
601
+ entries = await fs5.readdir(await storePath(rootDir, ".mason/decisions"));
597
602
  } catch (error) {
598
603
  if (error.code !== "ENOENT") diagnostics.push({ path: ".mason/decisions", message: String(error) });
599
604
  return { records, diagnostics };
@@ -1235,7 +1240,7 @@ async function computeReview(rootDir, base, options = {}) {
1235
1240
  analyzed,
1236
1241
  async (relPath) => {
1237
1242
  try {
1238
- await fs5.access(path11.join(resolvedRoot, relPath));
1243
+ await fs6.access(path11.join(resolvedRoot, relPath));
1239
1244
  return true;
1240
1245
  } catch {
1241
1246
  return false;