no-mistakes 0.83.0 → 0.84.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 +5 -5
- package/postgres-catalog-types.d.ts +2 -0
- package/postgres-expression-types.d.ts +9 -2
- package/postgres-procedural-types.d.ts +9 -3
- package/postgres-query-annotation-types.d.ts +14 -0
- package/postgres-source-types.d.ts +3 -20
- package/postgres-trigger-types.d.ts +34 -0
- package/types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "no-mistakes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.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.
|
|
49
|
-
"no-mistakes-linux-arm64-gnu": "0.
|
|
50
|
-
"no-mistakes-linux-x64-gnu": "0.
|
|
51
|
-
"no-mistakes-win32-x64-msvc": "0.
|
|
48
|
+
"no-mistakes-darwin-arm64": "0.84.0",
|
|
49
|
+
"no-mistakes-linux-arm64-gnu": "0.84.0",
|
|
50
|
+
"no-mistakes-linux-x64-gnu": "0.84.0",
|
|
51
|
+
"no-mistakes-win32-x64-msvc": "0.84.0"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -79,6 +79,8 @@ export interface PostgresCatalogIndex {
|
|
|
79
79
|
}
|
|
80
80
|
export interface PostgresCatalogTable {
|
|
81
81
|
relationKind: "table" | "partitioned table";
|
|
82
|
+
/** Optional parent table for hand-authored snapshots that include partition leaves. */
|
|
83
|
+
partitionOf?: string;
|
|
82
84
|
columns: Record<string, PostgresCatalogColumn>;
|
|
83
85
|
primaryKey: { columns: string[] } | null;
|
|
84
86
|
uniqueConstraints: Record<string, { columns: string[] }>;
|
|
@@ -2,6 +2,7 @@ import type {
|
|
|
2
2
|
PostgresSqlIdentifier,
|
|
3
3
|
PostgresSqlName,
|
|
4
4
|
PostgresSqlSpan,
|
|
5
|
+
PostgresSqlType,
|
|
5
6
|
} from "./postgres-source-types";
|
|
6
7
|
/** Syntactic root; wrappers never promote a nested call through an unrelated operator. */
|
|
7
8
|
export type PostgresSqlExpressionRoot =
|
|
@@ -15,7 +16,12 @@ export type PostgresSqlExpressionRoot =
|
|
|
15
16
|
modifiers: string[];
|
|
16
17
|
}
|
|
17
18
|
| { kind: "parenthesized"; expression: PostgresSqlExpressionRoot }
|
|
18
|
-
| {
|
|
19
|
+
| {
|
|
20
|
+
kind: "cast";
|
|
21
|
+
dataType: string;
|
|
22
|
+
dataTypeFacts: PostgresSqlType;
|
|
23
|
+
expression: PostgresSqlExpressionRoot;
|
|
24
|
+
}
|
|
19
25
|
| { kind: "nullTest"; negated: boolean }
|
|
20
26
|
| { kind: "distinctness"; negated: boolean }
|
|
21
27
|
| { kind: "parameter"; placeholder: string }
|
|
@@ -50,7 +56,7 @@ export type PostgresSqlExpressionChildRoot =
|
|
|
50
56
|
modifiers: string[];
|
|
51
57
|
}
|
|
52
58
|
| { kind: "parenthesized" }
|
|
53
|
-
| { kind: "cast"; castKind: string; dataType: string }
|
|
59
|
+
| { kind: "cast"; castKind: string; dataType: string; dataTypeFacts: PostgresSqlType }
|
|
54
60
|
| { kind: "nullTest"; negated: boolean }
|
|
55
61
|
| { kind: "distinctness"; negated: boolean }
|
|
56
62
|
| { kind: "parameter"; placeholder: string }
|
|
@@ -66,6 +72,7 @@ export interface PostgresSqlExpressionChild {
|
|
|
66
72
|
span: PostgresSqlSpan | null;
|
|
67
73
|
root: PostgresSqlExpressionChildRoot;
|
|
68
74
|
children: PostgresSqlExpressionChild[];
|
|
75
|
+
/** Complete represented syntax; a missing provenance span does not imply missing structure. */
|
|
69
76
|
childrenComplete: boolean;
|
|
70
77
|
}
|
|
71
78
|
/** Bare CURRENT_TIMESTAMP is a value function; CURRENT_TIMESTAMP(3) uses call syntax. */
|
|
@@ -27,14 +27,20 @@ export interface PostgresSqlConditionalBranch {
|
|
|
27
27
|
|
|
28
28
|
/** Original body source slices retain this enclosing literal encoding. */
|
|
29
29
|
export type PostgresSqlBodyEncoding = "dollarQuoted" | "singleQuoted" | "escapedString";
|
|
30
|
+
/** Concatenated command literals can contain several original string encodings. */
|
|
31
|
+
export type PostgresSqlExecuteEncoding = PostgresSqlBodyEncoding | "concatenated";
|
|
30
32
|
|
|
31
|
-
/**
|
|
32
|
-
* diagnostics use decodedSql coordinates, including
|
|
33
|
+
/** literalSpan and USING expression spans use enclosing source coordinates.
|
|
34
|
+
* Command child spans and diagnostics use decodedSql coordinates, including
|
|
35
|
+
* nested command expression spans.
|
|
33
36
|
* Source occurrences never imply that SQL executes. */
|
|
34
37
|
export interface PostgresSqlLiteralExecute {
|
|
38
|
+
/** The whole literal command expression, including concatenation and parentheses. */
|
|
35
39
|
literalSpan: PostgresSqlSpan;
|
|
36
|
-
bodyEncoding:
|
|
40
|
+
bodyEncoding: PostgresSqlExecuteEncoding;
|
|
37
41
|
decodedSql: string;
|
|
42
|
+
/** Ordered source expressions, with enclosing source spans and no runtime evaluation. */
|
|
43
|
+
using: PostgresSqlExpression[];
|
|
38
44
|
statements: PostgresSqlStatement[];
|
|
39
45
|
diagnostics: PostgresSqlDiagnostic[];
|
|
40
46
|
complete: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Policy for executor SQL whose leading text cannot be proven. Defaults to `report`. */
|
|
2
|
+
export type PostgresUnanalyzableSql = "report" | "ignore";
|
|
3
|
+
|
|
4
|
+
/** Configuration options for the `postgres-require-query-annotation` check rule. */
|
|
5
|
+
export interface PostgresRequireQueryAnnotationOptions {
|
|
6
|
+
include?: string[];
|
|
7
|
+
exclude?: string[];
|
|
8
|
+
importSpecifier?: string;
|
|
9
|
+
executorNames?: string[];
|
|
10
|
+
executorFactoryNames?: string[];
|
|
11
|
+
executorTypeNames?: string[];
|
|
12
|
+
trustedSqlTags?: { module: string; name: string }[];
|
|
13
|
+
unanalyzableSql?: PostgresUnanalyzableSql;
|
|
14
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { PostgresSqlTrigger } from "./postgres-trigger-types";
|
|
2
|
+
export type * from "./postgres-trigger-types";
|
|
1
3
|
import type { PostgresSqlWrapper } from "./postgres-wrapper-types";
|
|
2
4
|
export type * from "./postgres-wrapper-types";
|
|
3
5
|
import type { PostgresSqlFunction } from "./postgres-function-types";
|
|
@@ -62,6 +64,7 @@ export interface PostgresSqlExpression {
|
|
|
62
64
|
functions: PostgresSqlFunctionReference[];
|
|
63
65
|
root: PostgresSqlExpressionRoot;
|
|
64
66
|
children: PostgresSqlExpressionChild[];
|
|
67
|
+
/** True only when the entire represented expression structure is complete, independently of spans. */
|
|
65
68
|
childrenComplete: boolean;
|
|
66
69
|
}
|
|
67
70
|
export interface PostgresSqlType {
|
|
@@ -148,26 +151,6 @@ export interface PostgresSqlView {
|
|
|
148
151
|
dependenciesComplete: boolean;
|
|
149
152
|
functions: PostgresSqlFunctionReference[];
|
|
150
153
|
}
|
|
151
|
-
export interface PostgresSqlTriggerTransition {
|
|
152
|
-
kind: string;
|
|
153
|
-
name: PostgresSqlName;
|
|
154
|
-
}
|
|
155
|
-
export interface PostgresSqlTrigger {
|
|
156
|
-
name: PostgresSqlName;
|
|
157
|
-
table: PostgresSqlName;
|
|
158
|
-
timing: string | null;
|
|
159
|
-
events: string[];
|
|
160
|
-
forEach: string | null;
|
|
161
|
-
condition: PostgresSqlExpression | null;
|
|
162
|
-
function: PostgresSqlName | null;
|
|
163
|
-
arguments: string[];
|
|
164
|
-
constraint: boolean;
|
|
165
|
-
orReplace: boolean;
|
|
166
|
-
referencedTable: PostgresSqlName | null;
|
|
167
|
-
transitions: PostgresSqlTriggerTransition[];
|
|
168
|
-
executionKind: string | null;
|
|
169
|
-
characteristics: string | null;
|
|
170
|
-
}
|
|
171
154
|
export type PostgresSqlStatementKind =
|
|
172
155
|
| { kind: "comment"; comment: PostgresSqlComment }
|
|
173
156
|
| { kind: "alterIndex"; index: PostgresSqlAlterIndex }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
PostgresSqlExpression,
|
|
3
|
+
PostgresSqlIdentifier,
|
|
4
|
+
PostgresSqlName,
|
|
5
|
+
} from "./postgres-source-types";
|
|
6
|
+
|
|
7
|
+
export interface PostgresSqlTriggerTransition {
|
|
8
|
+
kind: string;
|
|
9
|
+
name: PostgresSqlName;
|
|
10
|
+
}
|
|
11
|
+
/** UPDATE OF columns preserve source order and quoted identifiers. */
|
|
12
|
+
export type PostgresSqlTriggerEventKind = "insert" | "delete" | "truncate" | "update";
|
|
13
|
+
export interface PostgresSqlTriggerEvent {
|
|
14
|
+
kind: PostgresSqlTriggerEventKind;
|
|
15
|
+
updateOf: boolean;
|
|
16
|
+
updateColumns: PostgresSqlIdentifier[];
|
|
17
|
+
}
|
|
18
|
+
export interface PostgresSqlTrigger {
|
|
19
|
+
name: PostgresSqlName;
|
|
20
|
+
table: PostgresSqlName;
|
|
21
|
+
timing: string | null;
|
|
22
|
+
events: string[];
|
|
23
|
+
eventFacts: PostgresSqlTriggerEvent[];
|
|
24
|
+
forEach: string | null;
|
|
25
|
+
condition: PostgresSqlExpression | null;
|
|
26
|
+
function: PostgresSqlName | null;
|
|
27
|
+
arguments: string[];
|
|
28
|
+
constraint: boolean;
|
|
29
|
+
orReplace: boolean;
|
|
30
|
+
referencedTable: PostgresSqlName | null;
|
|
31
|
+
transitions: PostgresSqlTriggerTransition[];
|
|
32
|
+
executionKind: string | null;
|
|
33
|
+
characteristics: string | null;
|
|
34
|
+
}
|
package/types.d.ts
CHANGED