@mintlify/cli 4.0.1743 → 4.0.1744

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.
@@ -53,6 +53,8 @@ export type FileContext = {
53
53
  baseDir: string;
54
54
  frontmatter: Record<string, unknown>;
55
55
  tree: Root;
56
+ readFile?: (file: string) => string | undefined;
57
+ anchorLinks?: ReadonlySet<string>;
56
58
  };
57
59
 
58
60
  /** A finding in one file, with an optional edit against the content the rule saw. */
@@ -86,6 +88,7 @@ export type Site = {
86
88
  build?: BuildResult;
87
89
  /** The line and column of the first occurrence of text in a file. */
88
90
  locate: (file: string, text: string) => { line?: number; column?: number };
91
+ read: (file: string) => string | undefined;
89
92
  localSchema: boolean;
90
93
  };
91
94