@neat.is/core 0.4.0 → 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
@@ -117,6 +117,14 @@ interface BuildApiOptions {
117
117
  authToken?: string;
118
118
  trustProxy?: boolean;
119
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
+ };
120
128
  }
121
129
  declare function buildApi(opts: BuildApiOptions): Promise<FastifyInstance>;
122
130
 
@@ -350,6 +358,15 @@ interface ProjectSlot {
350
358
  status: 'active' | 'broken';
351
359
  errorReason?: string;
352
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
+ }
353
370
  interface DaemonHandle {
354
371
  slots: Map<string, ProjectSlot>;
355
372
  reload: () => Promise<void>;
@@ -357,6 +374,8 @@ interface DaemonHandle {
357
374
  pidPath: string;
358
375
  restAddress: string;
359
376
  otlpAddress: string;
377
+ bootstrap: BootstrapTracker;
378
+ initialBootstrap: Promise<void>;
360
379
  }
361
380
  /**
362
381
  * Resolve which project's graph an OTel span belongs to. Looks up the
package/dist/index.d.ts CHANGED
@@ -117,6 +117,14 @@ interface BuildApiOptions {
117
117
  authToken?: string;
118
118
  trustProxy?: boolean;
119
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
+ };
120
128
  }
121
129
  declare function buildApi(opts: BuildApiOptions): Promise<FastifyInstance>;
122
130
 
@@ -350,6 +358,15 @@ interface ProjectSlot {
350
358
  status: 'active' | 'broken';
351
359
  errorReason?: string;
352
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
+ }
353
370
  interface DaemonHandle {
354
371
  slots: Map<string, ProjectSlot>;
355
372
  reload: () => Promise<void>;
@@ -357,6 +374,8 @@ interface DaemonHandle {
357
374
  pidPath: string;
358
375
  restAddress: string;
359
376
  otlpAddress: string;
377
+ bootstrap: BootstrapTracker;
378
+ initialBootstrap: Promise<void>;
360
379
  }
361
380
  /**
362
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-N6RPINEJ.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-UPW4CMOH.js";
40
+ } from "./chunk-NTQHMXWE.js";
41
41
  import {
42
42
  startOtelGrpcReceiver
43
- } from "./chunk-IXIFJKMM.js";
43
+ } from "./chunk-D5PIJFBE.js";
44
44
  import {
45
45
  buildOtelReceiver,
46
46
  logSpanHandler,
47
47
  parseOtlpRequest
48
- } from "./chunk-4V23KYOP.js";
48
+ } from "./chunk-KYRIQIPG.js";
49
49
  export {
50
50
  ProjectNameCollisionError,
51
51
  addProject,