@neat.is/core 0.3.0 → 0.3.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/dist/index.d.cts CHANGED
@@ -301,11 +301,16 @@ declare function computeGraphDiff(liveGraph: NeatGraph, baseSnapshot: PersistedS
301
301
 
302
302
  interface DaemonOptions {
303
303
  neatHome?: string;
304
+ restPort?: number;
305
+ otlpPort?: number;
306
+ host?: string;
307
+ bindListeners?: boolean;
304
308
  }
305
309
  interface ProjectSlot {
306
310
  entry: RegistryEntry;
307
311
  graph: NeatGraph;
308
312
  outPath: string;
313
+ paths: ProjectPaths;
309
314
  stopPersist: () => void;
310
315
  status: 'active' | 'broken';
311
316
  errorReason?: string;
@@ -315,6 +320,8 @@ interface DaemonHandle {
315
320
  reload: () => Promise<void>;
316
321
  stop: () => Promise<void>;
317
322
  pidPath: string;
323
+ restAddress: string;
324
+ otlpAddress: string;
318
325
  }
319
326
  /**
320
327
  * Resolve which project's graph an OTel span belongs to. Looks up the
package/dist/index.d.ts CHANGED
@@ -301,11 +301,16 @@ declare function computeGraphDiff(liveGraph: NeatGraph, baseSnapshot: PersistedS
301
301
 
302
302
  interface DaemonOptions {
303
303
  neatHome?: string;
304
+ restPort?: number;
305
+ otlpPort?: number;
306
+ host?: string;
307
+ bindListeners?: boolean;
304
308
  }
305
309
  interface ProjectSlot {
306
310
  entry: RegistryEntry;
307
311
  graph: NeatGraph;
308
312
  outPath: string;
313
+ paths: ProjectPaths;
309
314
  stopPersist: () => void;
310
315
  status: 'active' | 'broken';
311
316
  errorReason?: string;
@@ -315,6 +320,8 @@ interface DaemonHandle {
315
320
  reload: () => Promise<void>;
316
321
  stop: () => Promise<void>;
317
322
  pidPath: string;
323
+ restAddress: string;
324
+ otlpAddress: string;
318
325
  }
319
326
  /**
320
327
  * Resolve which project's graph an OTel span belongs to. Looks up the
package/dist/index.js CHANGED
@@ -1,17 +1,14 @@
1
1
  import {
2
2
  routeSpanToProject,
3
3
  startDaemon
4
- } from "./chunk-I5KODOJV.js";
5
- import {
6
- buildApi,
7
- computeGraphDiff,
8
- loadSnapshotForDiff
9
- } from "./chunk-NVCEZXL7.js";
4
+ } from "./chunk-66Z5IEFY.js";
10
5
  import {
11
6
  ProjectNameCollisionError,
12
7
  addProject,
8
+ buildApi,
13
9
  checkCompatibility,
14
10
  compatPairs,
11
+ computeGraphDiff,
15
12
  confidenceForEdge,
16
13
  extractFromDirectory,
17
14
  getBlastRadius,
@@ -21,6 +18,7 @@ import {
21
18
  handleSpan,
22
19
  listProjects,
23
20
  loadGraphFromDisk,
21
+ loadSnapshotForDiff,
24
22
  makeSpanHandler,
25
23
  markStaleEdges,
26
24
  normalizeProjectPath,
@@ -39,14 +37,15 @@ import {
39
37
  thresholdForEdgeType,
40
38
  touchLastSeen,
41
39
  writeAtomically
42
- } from "./chunk-B7UUGIXB.js";
40
+ } from "./chunk-FIXKIYNF.js";
41
+ import {
42
+ startOtelGrpcReceiver
43
+ } from "./chunk-G3PDTGOW.js";
43
44
  import {
44
45
  buildOtelReceiver,
45
46
  logSpanHandler,
46
- parseOtlpRequest,
47
- startOtelGrpcReceiver
48
- } from "./chunk-QYUB3FQL.js";
49
- import "./chunk-DGUM43GV.js";
47
+ parseOtlpRequest
48
+ } from "./chunk-4ASCXBZF.js";
50
49
  export {
51
50
  ProjectNameCollisionError,
52
51
  addProject,