no-mistakes 0.80.0 → 0.81.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.
|
|
3
|
+
"version": "0.81.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.81.0",
|
|
49
|
+
"no-mistakes-linux-arm64-gnu": "0.81.0",
|
|
50
|
+
"no-mistakes-linux-x64-gnu": "0.81.0",
|
|
51
|
+
"no-mistakes-win32-x64-msvc": "0.81.0"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -17,7 +17,8 @@ export type PostgresSqlExpressionRoot =
|
|
|
17
17
|
| { kind: "parenthesized"; expression: PostgresSqlExpressionRoot }
|
|
18
18
|
| { kind: "cast"; dataType: string; expression: PostgresSqlExpressionRoot }
|
|
19
19
|
| { kind: "literal"; sql: string }
|
|
20
|
-
| { kind: "binary"
|
|
20
|
+
| { kind: "binary"; operator: string }
|
|
21
|
+
| { kind: "unary"; operator: string; expression: PostgresSqlExpressionRoot }
|
|
21
22
|
| { kind: "case" | "subquery" | "other" };
|
|
22
23
|
/** Bare CURRENT_TIMESTAMP is a value function; CURRENT_TIMESTAMP(3) uses call syntax. */
|
|
23
24
|
export type PostgresSqlFunctionSyntax = "call" | "value";
|
|
@@ -15,6 +15,7 @@ export interface PostgresSqlInsert {
|
|
|
15
15
|
source: PostgresSqlInsertSource;
|
|
16
16
|
onConflict: PostgresSqlConflict | null;
|
|
17
17
|
span: PostgresSqlSpan | null;
|
|
18
|
+
/** Syntax completeness is independent of provenance and does not imply replay safety. */
|
|
18
19
|
complete: boolean;
|
|
19
20
|
diagnostics: PostgresSqlDiagnostic[];
|
|
20
21
|
}
|
|
@@ -32,7 +33,12 @@ export interface PostgresSqlConflict {
|
|
|
32
33
|
export type PostgresSqlConflictTarget =
|
|
33
34
|
| { kind: "omitted" }
|
|
34
35
|
| { kind: "columns"; columns: PostgresSqlIdentifier[] }
|
|
35
|
-
| { kind: "constraint"; name: PostgresSqlName }
|
|
36
|
+
| { kind: "constraint"; name: PostgresSqlName }
|
|
37
|
+
| {
|
|
38
|
+
kind: "expressions";
|
|
39
|
+
expressions: PostgresSqlExpression[];
|
|
40
|
+
operatorClasses?: (PostgresSqlArbiterOperatorClass | null)[];
|
|
41
|
+
};
|
|
36
42
|
export type PostgresSqlConflictAction =
|
|
37
43
|
| { kind: "doNothing" }
|
|
38
44
|
| {
|
|
@@ -40,11 +46,29 @@ export type PostgresSqlConflictAction =
|
|
|
40
46
|
assignments: PostgresSqlInsertAssignment[];
|
|
41
47
|
predicate: PostgresSqlExpression | null;
|
|
42
48
|
};
|
|
49
|
+
/** Ordered index expressions retain source spans; catalog resolution is not implied. */
|
|
50
|
+
export interface PostgresSqlAssignmentTarget {
|
|
51
|
+
base: PostgresSqlExpression;
|
|
52
|
+
subscripts: PostgresSqlExpression[];
|
|
53
|
+
indirection?: PostgresSqlAssignmentStep[];
|
|
54
|
+
span: PostgresSqlSpan | null;
|
|
55
|
+
}
|
|
56
|
+
export interface PostgresSqlArbiterOperatorClass {
|
|
57
|
+
name: PostgresSqlName;
|
|
58
|
+
parameters?: PostgresSqlArbiterParameter[];
|
|
59
|
+
span: PostgresSqlSpan | null;
|
|
60
|
+
}
|
|
61
|
+
export type PostgresSqlAssignmentStep =
|
|
62
|
+
| { kind: "subscript"; expression: PostgresSqlExpression; span: PostgresSqlSpan | null }
|
|
63
|
+
| { kind: "field"; name: PostgresSqlIdentifier; span: PostgresSqlSpan | null };
|
|
43
64
|
export interface PostgresSqlInsertAssignment {
|
|
44
65
|
columns: PostgresSqlName[];
|
|
66
|
+
target?: PostgresSqlAssignmentTarget;
|
|
45
67
|
expression: PostgresSqlExpression;
|
|
68
|
+
/** Conservative syntactic lineage; derived and unresolved do not imply missing syntax. */
|
|
46
69
|
provenance: PostgresSqlInsertProvenance;
|
|
47
70
|
span: PostgresSqlSpan | null;
|
|
71
|
+
/** Whether the assignment syntax is fully represented, independently of provenance. */
|
|
48
72
|
complete: boolean;
|
|
49
73
|
}
|
|
50
74
|
export type PostgresSqlInsertProvenance =
|
|
@@ -52,4 +76,10 @@ export type PostgresSqlInsertProvenance =
|
|
|
52
76
|
| "excludedColumn"
|
|
53
77
|
| "literal"
|
|
54
78
|
| "placeholder"
|
|
79
|
+
| "derived"
|
|
55
80
|
| "unresolved";
|
|
81
|
+
|
|
82
|
+
export interface PostgresSqlArbiterParameter {
|
|
83
|
+
name: PostgresSqlIdentifier;
|
|
84
|
+
value: PostgresSqlExpression;
|
|
85
|
+
}
|
|
@@ -26,4 +26,16 @@ export interface PostgresSqlConditionalBranch {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/** Original body source slices retain this enclosing literal encoding. */
|
|
29
|
-
export type PostgresSqlBodyEncoding = "dollarQuoted" | "singleQuoted";
|
|
29
|
+
export type PostgresSqlBodyEncoding = "dollarQuoted" | "singleQuoted" | "escapedString";
|
|
30
|
+
|
|
31
|
+
/** Wrapper literalSpan uses enclosing source coordinates. All child spans and
|
|
32
|
+
* diagnostics use decodedSql coordinates, including nested expression spans.
|
|
33
|
+
* Source occurrences never imply that SQL executes. */
|
|
34
|
+
export interface PostgresSqlLiteralExecute {
|
|
35
|
+
literalSpan: PostgresSqlSpan;
|
|
36
|
+
bodyEncoding: PostgresSqlBodyEncoding;
|
|
37
|
+
decodedSql: string;
|
|
38
|
+
statements: PostgresSqlStatement[];
|
|
39
|
+
diagnostics: PostgresSqlDiagnostic[];
|
|
40
|
+
complete: boolean;
|
|
41
|
+
}
|
|
@@ -15,6 +15,7 @@ export type * from "./postgres-drop-types";
|
|
|
15
15
|
import type {
|
|
16
16
|
PostgresSqlConditionalBranch,
|
|
17
17
|
PostgresSqlProceduralBlock,
|
|
18
|
+
PostgresSqlLiteralExecute,
|
|
18
19
|
} from "./postgres-procedural-types";
|
|
19
20
|
export type * from "./postgres-procedural-types";
|
|
20
21
|
/** Pure SQL source input. No repository, database, or filesystem options are needed. */
|
|
@@ -96,6 +97,8 @@ export interface PostgresSqlConstraint {
|
|
|
96
97
|
onUpdate: string | null;
|
|
97
98
|
characteristics: string | null;
|
|
98
99
|
sql: string;
|
|
100
|
+
/** UTF-8 source range; null when no proven token boundary is available. */
|
|
101
|
+
span: PostgresSqlSpan | null;
|
|
99
102
|
}
|
|
100
103
|
export type PostgresSqlAlterOperation =
|
|
101
104
|
| { kind: "addColumn"; column: PostgresSqlColumn }
|
|
@@ -119,6 +122,7 @@ export interface PostgresSqlIndexKey {
|
|
|
119
122
|
export interface PostgresSqlIndex {
|
|
120
123
|
name: PostgresSqlName | null;
|
|
121
124
|
table: PostgresSqlName;
|
|
125
|
+
only: boolean;
|
|
122
126
|
method: string;
|
|
123
127
|
unique: boolean;
|
|
124
128
|
nullsDistinct: boolean;
|
|
@@ -178,6 +182,7 @@ export type PostgresSqlStatementKind =
|
|
|
178
182
|
| { kind: "createTrigger"; trigger: PostgresSqlTrigger }
|
|
179
183
|
| { kind: "createFunction"; function: PostgresSqlFunction }
|
|
180
184
|
| { kind: "drop"; drop: PostgresSqlDrop }
|
|
185
|
+
| { kind: "literalExecute"; execute: PostgresSqlLiteralExecute }
|
|
181
186
|
| { kind: "doBlock"; block: PostgresSqlProceduralBlock }
|
|
182
187
|
| { kind: "conditional"; branches: PostgresSqlConditionalBranch[] }
|
|
183
188
|
| { kind: "other" };
|