@neat.is/core 0.2.10 → 0.3.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/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { MultiDirectedGraph } from 'graphology';
2
- import { GraphNode, GraphEdge, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
2
+ import { GraphNode, GraphEdge, StaleEvent, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
3
+ export { StaleEvent } from '@neat.is/types';
3
4
  import { FastifyInstance } from 'fastify';
4
5
 
5
6
  type NeatGraph = MultiDirectedGraph<GraphNode, GraphEdge>;
@@ -195,16 +196,7 @@ declare function stitchTrace(graph: NeatGraph, sourceServiceId: string, ts: stri
195
196
  declare function handleSpan(ctx: IngestContext, span: ParsedSpan): Promise<void>;
196
197
 
197
198
  declare function makeSpanHandler(ctx: IngestContext): (span: ParsedSpan) => Promise<void>;
198
- interface StaleEvent {
199
- edgeId: string;
200
- source: string;
201
- target: string;
202
- edgeType: string;
203
- thresholdMs: number;
204
- ageMs: number;
205
- lastObserved: string;
206
- transitionedAt: string;
207
- }
199
+
208
200
  interface MarkStaleOptions {
209
201
  thresholds?: Record<string, number>;
210
202
  now?: number;
@@ -409,4 +401,4 @@ declare function touchLastSeen(name: string, at?: string): Promise<void>;
409
401
  */
410
402
  declare function removeProject(name: string): Promise<RegistryEntry | undefined>;
411
403
 
412
- export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type StaleEvent, type StalenessLoopOptions, addProject, buildApi, buildOtelReceiver, checkCompatibility, compatPairs, computeGraphDiff, confidenceForEdge, extractFromDirectory, getBlastRadius, getGraph, getProject, getRootCause, handleSpan, listProjects, loadGraphFromDisk, loadSnapshotForDiff, logSpanHandler, makeSpanHandler, markStaleEdges, normalizeProjectPath, parseOtlpRequest, readErrorEvents, readRegistry, readStaleEvents, registryLockPath, registryPath, removeProject, resetGraph, routeSpanToProject, saveGraphToDisk, setStatus, startDaemon, startOtelGrpcReceiver, startPersistLoop, startStalenessLoop, stitchTrace, thresholdForEdgeType, touchLastSeen, writeAtomically };
404
+ export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type StalenessLoopOptions, addProject, buildApi, buildOtelReceiver, checkCompatibility, compatPairs, computeGraphDiff, confidenceForEdge, extractFromDirectory, getBlastRadius, getGraph, getProject, getRootCause, handleSpan, listProjects, loadGraphFromDisk, loadSnapshotForDiff, logSpanHandler, makeSpanHandler, markStaleEdges, normalizeProjectPath, parseOtlpRequest, readErrorEvents, readRegistry, readStaleEvents, registryLockPath, registryPath, removeProject, resetGraph, routeSpanToProject, saveGraphToDisk, setStatus, startDaemon, startOtelGrpcReceiver, startPersistLoop, startStalenessLoop, stitchTrace, thresholdForEdgeType, touchLastSeen, writeAtomically };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { MultiDirectedGraph } from 'graphology';
2
- import { GraphNode, GraphEdge, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
2
+ import { GraphNode, GraphEdge, StaleEvent, ErrorEvent, BlastRadiusResult, RootCauseResult, RegistryEntry, RegistryStatus, RegistryFile } from '@neat.is/types';
3
+ export { StaleEvent } from '@neat.is/types';
3
4
  import { FastifyInstance } from 'fastify';
4
5
 
5
6
  type NeatGraph = MultiDirectedGraph<GraphNode, GraphEdge>;
@@ -195,16 +196,7 @@ declare function stitchTrace(graph: NeatGraph, sourceServiceId: string, ts: stri
195
196
  declare function handleSpan(ctx: IngestContext, span: ParsedSpan): Promise<void>;
196
197
 
197
198
  declare function makeSpanHandler(ctx: IngestContext): (span: ParsedSpan) => Promise<void>;
198
- interface StaleEvent {
199
- edgeId: string;
200
- source: string;
201
- target: string;
202
- edgeType: string;
203
- thresholdMs: number;
204
- ageMs: number;
205
- lastObserved: string;
206
- transitionedAt: string;
207
- }
199
+
208
200
  interface MarkStaleOptions {
209
201
  thresholds?: Record<string, number>;
210
202
  now?: number;
@@ -409,4 +401,4 @@ declare function touchLastSeen(name: string, at?: string): Promise<void>;
409
401
  */
410
402
  declare function removeProject(name: string): Promise<RegistryEntry | undefined>;
411
403
 
412
- export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type StaleEvent, type StalenessLoopOptions, addProject, buildApi, buildOtelReceiver, checkCompatibility, compatPairs, computeGraphDiff, confidenceForEdge, extractFromDirectory, getBlastRadius, getGraph, getProject, getRootCause, handleSpan, listProjects, loadGraphFromDisk, loadSnapshotForDiff, logSpanHandler, makeSpanHandler, markStaleEdges, normalizeProjectPath, parseOtlpRequest, readErrorEvents, readRegistry, readStaleEvents, registryLockPath, registryPath, removeProject, resetGraph, routeSpanToProject, saveGraphToDisk, setStatus, startDaemon, startOtelGrpcReceiver, startPersistLoop, startStalenessLoop, stitchTrace, thresholdForEdgeType, touchLastSeen, writeAtomically };
404
+ export { type BuildApiOptions, type BuildOtelGrpcReceiverOptions, type BuildOtelReceiverOptions, type CompatPair, type CompatibilityResult, type DaemonHandle, type DaemonOptions, type ExtractResult, type GraphDiff, type IngestContext, type MarkStaleOptions, type NeatGraph, type OtelGrpcReceiver, type OtlpTracesRequest, type ParsedSpan, type PersistedSnapshot, ProjectNameCollisionError, type ProjectSlot, type SpanHandler, type StalenessLoopOptions, addProject, buildApi, buildOtelReceiver, checkCompatibility, compatPairs, computeGraphDiff, confidenceForEdge, extractFromDirectory, getBlastRadius, getGraph, getProject, getRootCause, handleSpan, listProjects, loadGraphFromDisk, loadSnapshotForDiff, logSpanHandler, makeSpanHandler, markStaleEdges, normalizeProjectPath, parseOtlpRequest, readErrorEvents, readRegistry, readStaleEvents, registryLockPath, registryPath, removeProject, resetGraph, routeSpanToProject, saveGraphToDisk, setStatus, startDaemon, startOtelGrpcReceiver, startPersistLoop, startStalenessLoop, stitchTrace, thresholdForEdgeType, touchLastSeen, writeAtomically };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  routeSpanToProject,
3
3
  startDaemon
4
- } from "./chunk-5BQWBQJR.js";
4
+ } from "./chunk-I5KODOJV.js";
5
5
  import {
6
6
  buildApi,
7
7
  computeGraphDiff,
8
8
  loadSnapshotForDiff
9
- } from "./chunk-W7ZYJZC7.js";
9
+ } from "./chunk-NVCEZXL7.js";
10
10
  import {
11
11
  ProjectNameCollisionError,
12
12
  addProject,
@@ -39,7 +39,7 @@ import {
39
39
  thresholdForEdgeType,
40
40
  touchLastSeen,
41
41
  writeAtomically
42
- } from "./chunk-JMLZOKCS.js";
42
+ } from "./chunk-B7UUGIXB.js";
43
43
  import {
44
44
  buildOtelReceiver,
45
45
  logSpanHandler,