@neat.is/core 0.3.8 → 0.4.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
@@ -116,6 +116,15 @@ interface BuildApiOptions {
116
116
  searchIndex?: SearchIndex;
117
117
  authToken?: string;
118
118
  trustProxy?: boolean;
119
+ publicRead?: boolean;
120
+ bootstrap?: {
121
+ status: (name: string) => 'bootstrapping' | 'active' | 'broken' | undefined;
122
+ list: () => Array<{
123
+ name: string;
124
+ status: 'bootstrapping' | 'active' | 'broken';
125
+ elapsedMs: number;
126
+ }>;
127
+ };
119
128
  }
120
129
  declare function buildApi(opts: BuildApiOptions): Promise<FastifyInstance>;
121
130
 
@@ -130,6 +139,7 @@ interface ParsedSpan {
130
139
  endTimeUnixNano: string;
131
140
  startTimeIso?: string;
132
141
  durationNanos: bigint;
142
+ env: string;
133
143
  attributes: Record<string, AttributeValue>;
134
144
  dbSystem?: string;
135
145
  dbName?: string;
@@ -348,6 +358,15 @@ interface ProjectSlot {
348
358
  status: 'active' | 'broken';
349
359
  errorReason?: string;
350
360
  }
361
+ type BootstrapPhase = 'bootstrapping' | 'active' | 'broken';
362
+ interface BootstrapTracker {
363
+ status: (name: string) => BootstrapPhase | undefined;
364
+ list: () => Array<{
365
+ name: string;
366
+ status: BootstrapPhase;
367
+ elapsedMs: number;
368
+ }>;
369
+ }
351
370
  interface DaemonHandle {
352
371
  slots: Map<string, ProjectSlot>;
353
372
  reload: () => Promise<void>;
@@ -355,6 +374,8 @@ interface DaemonHandle {
355
374
  pidPath: string;
356
375
  restAddress: string;
357
376
  otlpAddress: string;
377
+ bootstrap: BootstrapTracker;
378
+ initialBootstrap: Promise<void>;
358
379
  }
359
380
  /**
360
381
  * Resolve which project's graph an OTel span belongs to. Looks up the
package/dist/index.d.ts CHANGED
@@ -116,6 +116,15 @@ interface BuildApiOptions {
116
116
  searchIndex?: SearchIndex;
117
117
  authToken?: string;
118
118
  trustProxy?: boolean;
119
+ publicRead?: boolean;
120
+ bootstrap?: {
121
+ status: (name: string) => 'bootstrapping' | 'active' | 'broken' | undefined;
122
+ list: () => Array<{
123
+ name: string;
124
+ status: 'bootstrapping' | 'active' | 'broken';
125
+ elapsedMs: number;
126
+ }>;
127
+ };
119
128
  }
120
129
  declare function buildApi(opts: BuildApiOptions): Promise<FastifyInstance>;
121
130
 
@@ -130,6 +139,7 @@ interface ParsedSpan {
130
139
  endTimeUnixNano: string;
131
140
  startTimeIso?: string;
132
141
  durationNanos: bigint;
142
+ env: string;
133
143
  attributes: Record<string, AttributeValue>;
134
144
  dbSystem?: string;
135
145
  dbName?: string;
@@ -348,6 +358,15 @@ interface ProjectSlot {
348
358
  status: 'active' | 'broken';
349
359
  errorReason?: string;
350
360
  }
361
+ type BootstrapPhase = 'bootstrapping' | 'active' | 'broken';
362
+ interface BootstrapTracker {
363
+ status: (name: string) => BootstrapPhase | undefined;
364
+ list: () => Array<{
365
+ name: string;
366
+ status: BootstrapPhase;
367
+ elapsedMs: number;
368
+ }>;
369
+ }
351
370
  interface DaemonHandle {
352
371
  slots: Map<string, ProjectSlot>;
353
372
  reload: () => Promise<void>;
@@ -355,6 +374,8 @@ interface DaemonHandle {
355
374
  pidPath: string;
356
375
  restAddress: string;
357
376
  otlpAddress: string;
377
+ bootstrap: BootstrapTracker;
378
+ initialBootstrap: Promise<void>;
358
379
  }
359
380
  /**
360
381
  * Resolve which project's graph an OTel span belongs to. Looks up the
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  routeSpanToProject,
3
3
  startDaemon
4
- } from "./chunk-LQ3JFBTX.js";
4
+ } from "./chunk-CB2UK4EH.js";
5
5
  import {
6
6
  ProjectNameCollisionError,
7
7
  addProject,
@@ -37,15 +37,15 @@ import {
37
37
  thresholdForEdgeType,
38
38
  touchLastSeen,
39
39
  writeAtomically
40
- } from "./chunk-CZ3T6TE2.js";
40
+ } from "./chunk-NTQHMXWE.js";
41
41
  import {
42
42
  startOtelGrpcReceiver
43
- } from "./chunk-V4TU7OKZ.js";
43
+ } from "./chunk-D5PIJFBE.js";
44
44
  import {
45
45
  buildOtelReceiver,
46
46
  logSpanHandler,
47
47
  parseOtlpRequest
48
- } from "./chunk-7TYESDAI.js";
48
+ } from "./chunk-KYRIQIPG.js";
49
49
  export {
50
50
  ProjectNameCollisionError,
51
51
  addProject,