no-mistakes 0.87.3 → 0.89.2

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/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export function analyzeTypeScriptModules(
5
5
  options: WithInvocationOptions<TypeScriptModulesOptions>,
6
6
  ): Promise<TypeScriptModulesReport>;
7
7
  import type { PostgresSqlSource, PostgresSqlFacts } from "./postgres-source-types";
8
+ export { extractExecutedPostgresSql } from "./executed-postgres-sql-types";
8
9
  export * from "./postgres-source-types";
9
10
  /** Parse SQL on the native async worker without repository I/O or a database. */
10
11
  export function parsePostgresSql(source: PostgresSqlSource): Promise<PostgresSqlFacts>;
@@ -15,7 +16,6 @@ import type {
15
16
  PostgresCompleteCatalog,
16
17
  PostgresOrderingCatalog,
17
18
  } from "./postgres-catalog-types";
18
- export type * from "./postgres-catalog-types";
19
19
  import type {
20
20
  CheckReport,
21
21
  AnalyzeProjectOptions,
package/index.js CHANGED
@@ -40,6 +40,7 @@ const jsonApis = createJsonApis({
40
40
  deadExports: "deadExportsJson",
41
41
  dependencies: "dependenciesJson",
42
42
  dependents: "dependentsJson",
43
+ diagnosticsSnapshot: "diagnosticsSnapshotJson",
43
44
  effects: "effectsJson",
44
45
  exportsOf: "exportsOfJson",
45
46
  fetches: "fetchesJson",
@@ -134,6 +135,7 @@ module.exports.dataPw = jsonApis.dataPw;
134
135
  module.exports.deadExports = jsonApis.deadExports;
135
136
  module.exports.dependencies = jsonApis.dependencies;
136
137
  module.exports.dependents = jsonApis.dependents;
138
+ module.exports.diagnosticsSnapshot = jsonApis.diagnosticsSnapshot;
137
139
  module.exports.effects = jsonApis.effects;
138
140
  module.exports.exportsOf = jsonApis.exportsOf;
139
141
  module.exports.fetches = jsonApis.fetches;
package/index.mjs CHANGED
@@ -18,6 +18,7 @@ export const {
18
18
  deadExports,
19
19
  dependencies,
20
20
  dependents,
21
+ diagnosticsSnapshot,
21
22
  effects,
22
23
  exportsOf,
23
24
  fetches,
@@ -19,6 +19,37 @@ export interface InvocationOptions {
19
19
  jobs?: number | null;
20
20
  /** `ci` sets unbounded command and lock timeouts. CLI `--profile ci` does the same. */
21
21
  profile?: "ci";
22
+ /** Register live, stderr-free phase progress under a unique ID. Use diagnosticsSnapshot({ id }) while the request runs; completion or failure removes the ID. */
23
+ diagnosticsId?: string;
22
24
  }
23
25
 
24
26
  export type WithInvocationOptions<T> = T & InvocationOptions;
27
+
28
+ /** One live span; siblings may overlap and labels form the enclosing phase path. */
29
+ export interface ActiveTimingSpan {
30
+ id: number;
31
+ phase: string[];
32
+ startedMs: number;
33
+ elapsedMs: number;
34
+ parallel: boolean;
35
+ }
36
+
37
+ /** Completed durations grouped by label and parallel status within the live request. */
38
+ export interface CompletedTimingSpan {
39
+ label: string;
40
+ durationMs: number;
41
+ parallel: boolean;
42
+ }
43
+
44
+ export interface DiagnosticsProgressSnapshot {
45
+ elapsedMs: number;
46
+ startedSpans: number;
47
+ completedSpans: number;
48
+ active: ActiveTimingSpan[];
49
+ completed: CompletedTimingSpan[];
50
+ }
51
+
52
+ /** Poll a live diagnosticsId without waiting for the filesystem invocation lock. Returns null before registration and after completion or failure. */
53
+ export function diagnosticsSnapshot(options: {
54
+ id: string;
55
+ }): Promise<DiagnosticsProgressSnapshot | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.87.3",
3
+ "version": "0.89.2",
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.87.3",
69
- "no-mistakes-linux-arm64-gnu": "0.87.3",
70
- "no-mistakes-linux-x64-gnu": "0.87.3",
71
- "no-mistakes-win32-x64-msvc": "0.87.3"
68
+ "no-mistakes-darwin-arm64": "0.89.2",
69
+ "no-mistakes-linux-arm64-gnu": "0.89.2",
70
+ "no-mistakes-linux-x64-gnu": "0.89.2",
71
+ "no-mistakes-win32-x64-msvc": "0.89.2"
72
72
  }
73
73
  }
@@ -117,7 +117,7 @@ function decodeManifest(contents) {
117
117
  }
118
118
  function invocationOptions(options) {
119
119
  return Object.fromEntries(
120
- ["timeout", "lockTimeout", "failOnLock", "jobs", "profile"]
120
+ ["timeout", "lockTimeout", "failOnLock", "jobs", "profile", "diagnosticsId"]
121
121
  .filter((name) => Object.hasOwn(options, name))
122
122
  .map((name) => [name, options[name]]),
123
123
  );
package/types.d.ts CHANGED
@@ -14,5 +14,6 @@ export * from "./named-query-types";
14
14
  export * from "./mermaid-types";
15
15
  export * from "./resolve-config-types";
16
16
  export * from "./postgres-query-annotation-types";
17
+ export * from "./postgres-catalog-types";
17
18
  export * from "./planning-impact-artifacts-types";
18
19
  export * from "./declared-payload-types";