@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/{chunk-LQ3JFBTX.js → chunk-CB2UK4EH.js} +139 -41
- package/dist/chunk-CB2UK4EH.js.map +1 -0
- package/dist/{chunk-V4TU7OKZ.js → chunk-D5PIJFBE.js} +2 -2
- package/dist/{chunk-7TYESDAI.js → chunk-KYRIQIPG.js} +48 -11
- package/dist/chunk-KYRIQIPG.js.map +1 -0
- package/dist/{chunk-CZ3T6TE2.js → chunk-NTQHMXWE.js} +239 -71
- package/dist/chunk-NTQHMXWE.js.map +1 -0
- package/dist/cli.cjs +1209 -176
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +4 -1
- package/dist/cli.d.ts +4 -1
- package/dist/cli.js +940 -99
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +418 -122
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +4 -4
- package/dist/neatd.cjs +427 -131
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +3 -3
- package/dist/{otel-grpc-S3AENOZ6.js → otel-grpc-QTX2YQJZ.js} +3 -3
- package/dist/server.cjs +401 -203
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +5 -4
- package/dist/server.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-7TYESDAI.js.map +0 -1
- package/dist/chunk-CZ3T6TE2.js.map +0 -1
- package/dist/chunk-LQ3JFBTX.js.map +0 -1
- /package/dist/{chunk-V4TU7OKZ.js.map → chunk-D5PIJFBE.js.map} +0 -0
- /package/dist/{otel-grpc-S3AENOZ6.js.map → otel-grpc-QTX2YQJZ.js.map} +0 -0
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-
|
|
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,
|