no-mistakes 0.71.1 → 0.72.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.71.1",
3
+ "version": "0.72.0",
4
4
  "description": "Deterministic impact maps, test plans, Playwright coverage, and repository checks for coding agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,9 +45,9 @@
45
45
  "access": "public"
46
46
  },
47
47
  "optionalDependencies": {
48
- "no-mistakes-darwin-arm64": "0.71.1",
49
- "no-mistakes-linux-arm64-gnu": "0.71.1",
50
- "no-mistakes-linux-x64-gnu": "0.71.1",
51
- "no-mistakes-win32-x64-msvc": "0.71.1"
48
+ "no-mistakes-darwin-arm64": "0.72.0",
49
+ "no-mistakes-linux-arm64-gnu": "0.72.0",
50
+ "no-mistakes-linux-x64-gnu": "0.72.0",
51
+ "no-mistakes-win32-x64-msvc": "0.72.0"
52
52
  }
53
53
  }
@@ -14,6 +14,11 @@ export interface PostgresCatalogOptions {
14
14
  coverage?: PostgresCatalogCoverage;
15
15
  /** Opt in to evidence for these exact schemas; absent or inaccessible schemas become null. */
16
16
  searchPathSchemas?: string[];
17
+ /**
18
+ * Non-empty name to record as `currentDatabase` instead of the connected database's name.
19
+ * Use the deployed database's name so regeneration does not depend on where it runs.
20
+ */
21
+ currentDatabase?: string;
17
22
  }
18
23
  export interface PostgresOrderingCatalog {
19
24
  formatVersion: 2;
@@ -0,0 +1,29 @@
1
+ import type {
2
+ PostgresSqlIdentifier,
3
+ PostgresSqlName,
4
+ PostgresSqlSpan,
5
+ } from "./postgres-source-types";
6
+ /** Syntactic root; wrappers never promote a nested call through an unrelated operator. */
7
+ export type PostgresSqlExpressionRoot =
8
+ | { kind: "columnReference"; name: PostgresSqlName }
9
+ | {
10
+ kind: "functionCall";
11
+ name: PostgresSqlName;
12
+ arguments: PostgresSqlCallArgument[];
13
+ argumentsComplete: boolean;
14
+ syntax: PostgresSqlFunctionSyntax;
15
+ modifiers: string[];
16
+ }
17
+ | { kind: "parenthesized"; expression: PostgresSqlExpressionRoot }
18
+ | { kind: "cast"; dataType: string; expression: PostgresSqlExpressionRoot }
19
+ | { kind: "literal"; sql: string }
20
+ | { kind: "binary" | "unary"; operator: string }
21
+ | { kind: "case" | "subquery" | "other" };
22
+ /** Bare CURRENT_TIMESTAMP is a value function; CURRENT_TIMESTAMP(3) uses call syntax. */
23
+ export type PostgresSqlFunctionSyntax = "call" | "value";
24
+ export interface PostgresSqlCallArgument {
25
+ name: PostgresSqlIdentifier | null;
26
+ sql: string;
27
+ span: PostgresSqlSpan | null;
28
+ root: PostgresSqlExpressionRoot;
29
+ }
@@ -1,3 +1,5 @@
1
+ import type { PostgresSqlExpressionRoot } from "./postgres-expression-types";
2
+ export type * from "./postgres-expression-types";
1
3
  import type { PostgresSqlDrop } from "./postgres-drop-types";
2
4
  export type * from "./postgres-drop-types";
3
5
  import type {
@@ -44,6 +46,7 @@ export interface PostgresSqlExpression {
44
46
  span: PostgresSqlSpan | null;
45
47
  columns: PostgresSqlName[];
46
48
  functions: PostgresSqlFunctionReference[];
49
+ root: PostgresSqlExpressionRoot;
47
50
  }
48
51
  export interface PostgresSqlType {
49
52
  sql: string;