no-mistakes 0.97.0 → 0.99.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.
@@ -0,0 +1,29 @@
1
+ import type { Unanalyzable } from "./traversal-types";
2
+
3
+ /** An exact callable in the prepared TS/JS catalog. No whole-file roots. */
4
+ export interface CoverageProducerFunction {
5
+ file: string;
6
+ symbol: string;
7
+ }
8
+ /** Binding-aware assertion or modeled dispatch identity. */
9
+ export interface CoverageAssertionImport {
10
+ module: string;
11
+ export: string;
12
+ }
13
+ /** Explicit trusted callback/process contract; the owner must still reach an assertion. */
14
+ export interface CoverageAssertionOwnership {
15
+ producer: CoverageProducerFunction;
16
+ owner: CoverageProducerFunction;
17
+ via: CoverageAssertionImport;
18
+ }
19
+ /** Options for the opt-in coverage-producer-assertion-owner check rule. */
20
+ export interface CoverageProducerAssertionOwnerOptions {
21
+ producers: CoverageProducerFunction[];
22
+ assertions: CoverageAssertionImport[];
23
+ ownership?: CoverageAssertionOwnership[];
24
+ /** Positive canonical edge depth. Default: 64. Truncation is unanalyzable. */
25
+ maxDepth?: number;
26
+ /** Positive visited callable cap, including the producer. Default: 10000. */
27
+ maxNodes?: number;
28
+ unanalyzable?: Unanalyzable;
29
+ }
package/index.d.ts CHANGED
@@ -37,6 +37,7 @@ import type {
37
37
  ResolvedConfig,
38
38
  GraphEdge,
39
39
  PlaywrightOptions,
40
+ PlaywrightCoverageReport,
40
41
  PlaywrightRelatedOptions,
41
42
  ProjectOptions,
42
43
  QueueCheckFinding,
@@ -160,7 +161,7 @@ export function testsGraphMermaid(
160
161
  ): Promise<string>;
161
162
  export function playwrightCheck(
162
163
  options?: WithInvocationOptions<PlaywrightOptions>,
163
- ): Promise<unknown>;
164
+ ): Promise<PlaywrightCoverageReport>;
164
165
  export function playwrightEdges(
165
166
  options?: WithInvocationOptions<PlaywrightOptions>,
166
167
  ): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.97.0",
3
+ "version": "0.99.0",
4
4
  "description": "Deterministic impact maps, test plans, Playwright coverage, and repository checks for coding agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -65,9 +65,9 @@
65
65
  }
66
66
  },
67
67
  "optionalDependencies": {
68
- "no-mistakes-darwin-arm64": "0.97.0",
69
- "no-mistakes-linux-arm64-gnu": "0.97.0",
70
- "no-mistakes-linux-x64-gnu": "0.97.0",
71
- "no-mistakes-win32-x64-msvc": "0.97.0"
68
+ "no-mistakes-darwin-arm64": "0.99.0",
69
+ "no-mistakes-linux-arm64-gnu": "0.99.0",
70
+ "no-mistakes-linux-x64-gnu": "0.99.0",
71
+ "no-mistakes-win32-x64-msvc": "0.99.0"
72
72
  }
73
73
  }
@@ -0,0 +1,21 @@
1
+ import type { Effort, Unanalyzable } from "./traversal-types";
2
+
3
+ /** Legacy SQL policy spelling; use Unanalyzable for the shared policy. */
4
+ export type PostgresUuidPredicateUnanalyzableSql = "fail" | "ignore" | "advise";
5
+
6
+ /** Configuration for `postgres-no-transformed-uuid-predicates`. */
7
+ export interface PostgresNoTransformedUuidPredicatesOptions {
8
+ /** Required unless inherited from the selected project PostgreSQL scope. */
9
+ schemaCatalogPath?: string;
10
+ include?: string[];
11
+ exclude?: string[];
12
+ sqlInclude?: string[];
13
+ importSpecifier?: string;
14
+ executorNames?: string[];
15
+ executorFactoryNames?: string[];
16
+ executorTypeNames?: string[];
17
+ trustedSqlTags?: { module: string; name: string }[];
18
+ effort?: Effort;
19
+ unanalyzable?: Unanalyzable;
20
+ unanalyzableSql?: PostgresUuidPredicateUnanalyzableSql;
21
+ }
package/report-types.d.ts CHANGED
@@ -27,6 +27,14 @@ export interface PlaywrightRelatedOptions extends PlaywrightOptions {
27
27
  files: string[];
28
28
  }
29
29
 
30
+ /** Playwright coverage output; matcher uncertainty is never complete coverage. */
31
+ export interface PlaywrightCoverageReport {
32
+ /** Config-file and property-line diagnostics, omitted for fully known matchers. */
33
+ warnings?: string[];
34
+ /** Other coverage fields retain their existing opaque JSON contract. */
35
+ [field: string]: unknown;
36
+ }
37
+
30
38
  export interface GraphEdge {
31
39
  from: string;
32
40
  to: string;
@@ -1,5 +1,6 @@
1
1
  export type Relationship =
2
2
  | "call"
3
+ | "assertion-owner"
3
4
  | "import"
4
5
  | "import-static"
5
6
  | "import-dynamic"
package/types.d.ts CHANGED
@@ -21,3 +21,5 @@ export * from "./planning-impact-artifacts-types";
21
21
  export * from "./declared-payload-types";
22
22
  export type * from "./forbidden-call-types";
23
23
  export type * from "./postgres-mutable-sql-registry-types";
24
+ export type * from "./postgres-uuid-predicate-types";
25
+ export type * from "./coverage-assertion-owner-types";