@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/{chunk-N6RPINEJ.js → chunk-CB2UK4EH.js} +138 -41
- package/dist/chunk-CB2UK4EH.js.map +1 -0
- package/dist/{chunk-IXIFJKMM.js → chunk-D5PIJFBE.js} +2 -2
- package/dist/{chunk-4V23KYOP.js → chunk-KYRIQIPG.js} +17 -9
- package/dist/chunk-KYRIQIPG.js.map +1 -0
- package/dist/{chunk-UPW4CMOH.js → chunk-NTQHMXWE.js} +122 -46
- package/dist/chunk-NTQHMXWE.js.map +1 -0
- package/dist/cli.cjs +312 -87
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +2 -1
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +196 -47
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +267 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +4 -4
- package/dist/neatd.cjs +276 -102
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +3 -3
- package/dist/{otel-grpc-GGZHR7VM.js → otel-grpc-QTX2YQJZ.js} +3 -3
- package/dist/server.cjs +120 -44
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-4V23KYOP.js.map +0 -1
- package/dist/chunk-N6RPINEJ.js.map +0 -1
- package/dist/chunk-UPW4CMOH.js.map +0 -1
- /package/dist/{chunk-IXIFJKMM.js.map → chunk-D5PIJFBE.js.map} +0 -0
- /package/dist/{otel-grpc-GGZHR7VM.js.map → otel-grpc-QTX2YQJZ.js.map} +0 -0
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-
|
|
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-
|
|
40
|
+
} from "./chunk-NTQHMXWE.js";
|
|
41
41
|
import {
|
|
42
42
|
startOtelGrpcReceiver
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-D5PIJFBE.js";
|
|
44
44
|
import {
|
|
45
45
|
buildOtelReceiver,
|
|
46
46
|
logSpanHandler,
|
|
47
47
|
parseOtlpRequest
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KYRIQIPG.js";
|
|
49
49
|
export {
|
|
50
50
|
ProjectNameCollisionError,
|
|
51
51
|
addProject,
|