@neat.is/core 0.2.7 → 0.2.9
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-T2U4U256.js → chunk-5KX7EI4F.js} +76 -13
- package/dist/chunk-5KX7EI4F.js.map +1 -0
- package/dist/{chunk-6JT6L2OV.js → chunk-BVF7MVR5.js} +8 -10
- package/dist/{chunk-6JT6L2OV.js.map → chunk-BVF7MVR5.js.map} +1 -1
- package/dist/{chunk-6SFEITLJ.js → chunk-IRPH6KL4.js} +541 -136
- package/dist/chunk-IRPH6KL4.js.map +1 -0
- package/dist/cli.cjs +1480 -479
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +22 -1
- package/dist/cli.d.ts +22 -1
- package/dist/cli.js +757 -39
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +566 -339
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +16 -18
- package/dist/neatd.cjs +303 -153
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +2 -3
- package/dist/neatd.js.map +1 -1
- package/dist/server.cjs +430 -168
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-6SFEITLJ.js.map +0 -1
- package/dist/chunk-T2U4U256.js.map +0 -1
- package/dist/chunk-WX55TLUT.js +0 -184
- package/dist/chunk-WX55TLUT.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -13,6 +13,7 @@ interface ExtractResult {
|
|
|
13
13
|
}
|
|
14
14
|
interface ExtractOptions {
|
|
15
15
|
onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
|
|
16
|
+
project?: string;
|
|
16
17
|
}
|
|
17
18
|
declare function extractFromDirectory(graph: NeatGraph, scanPath: string, opts?: ExtractOptions): Promise<ExtractResult>;
|
|
18
19
|
|
|
@@ -184,6 +185,7 @@ declare function startOtelGrpcReceiver(opts: BuildOtelGrpcReceiverOptions & {
|
|
|
184
185
|
interface IngestContext {
|
|
185
186
|
graph: NeatGraph;
|
|
186
187
|
errorsPath: string;
|
|
188
|
+
project?: string;
|
|
187
189
|
now?: () => number;
|
|
188
190
|
writeErrorEventInline?: boolean;
|
|
189
191
|
onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
|
|
@@ -207,6 +209,7 @@ interface MarkStaleOptions {
|
|
|
207
209
|
thresholds?: Record<string, number>;
|
|
208
210
|
now?: number;
|
|
209
211
|
staleEventsPath?: string;
|
|
212
|
+
project?: string;
|
|
210
213
|
}
|
|
211
214
|
declare function markStaleEdges(graph: NeatGraph, options?: MarkStaleOptions): Promise<{
|
|
212
215
|
count: number;
|
|
@@ -217,6 +220,7 @@ interface StalenessLoopOptions {
|
|
|
217
220
|
thresholds?: Record<string, number>;
|
|
218
221
|
intervalMs?: number;
|
|
219
222
|
staleEventsPath?: string;
|
|
223
|
+
project?: string;
|
|
220
224
|
onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
|
|
221
225
|
}
|
|
222
226
|
declare function startStalenessLoop(graph: NeatGraph, options?: StalenessLoopOptions): () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface ExtractResult {
|
|
|
13
13
|
}
|
|
14
14
|
interface ExtractOptions {
|
|
15
15
|
onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
|
|
16
|
+
project?: string;
|
|
16
17
|
}
|
|
17
18
|
declare function extractFromDirectory(graph: NeatGraph, scanPath: string, opts?: ExtractOptions): Promise<ExtractResult>;
|
|
18
19
|
|
|
@@ -184,6 +185,7 @@ declare function startOtelGrpcReceiver(opts: BuildOtelGrpcReceiverOptions & {
|
|
|
184
185
|
interface IngestContext {
|
|
185
186
|
graph: NeatGraph;
|
|
186
187
|
errorsPath: string;
|
|
188
|
+
project?: string;
|
|
187
189
|
now?: () => number;
|
|
188
190
|
writeErrorEventInline?: boolean;
|
|
189
191
|
onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
|
|
@@ -207,6 +209,7 @@ interface MarkStaleOptions {
|
|
|
207
209
|
thresholds?: Record<string, number>;
|
|
208
210
|
now?: number;
|
|
209
211
|
staleEventsPath?: string;
|
|
212
|
+
project?: string;
|
|
210
213
|
}
|
|
211
214
|
declare function markStaleEdges(graph: NeatGraph, options?: MarkStaleOptions): Promise<{
|
|
212
215
|
count: number;
|
|
@@ -217,6 +220,7 @@ interface StalenessLoopOptions {
|
|
|
217
220
|
thresholds?: Record<string, number>;
|
|
218
221
|
intervalMs?: number;
|
|
219
222
|
staleEventsPath?: string;
|
|
223
|
+
project?: string;
|
|
220
224
|
onPolicyTrigger?: (graph: NeatGraph) => Promise<void> | void;
|
|
221
225
|
}
|
|
222
226
|
declare function startStalenessLoop(graph: NeatGraph, options?: StalenessLoopOptions): () => void;
|
package/dist/index.js
CHANGED
|
@@ -1,47 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeSpanToProject,
|
|
3
3
|
startDaemon
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
ProjectNameCollisionError,
|
|
7
|
-
addProject,
|
|
8
|
-
getProject,
|
|
9
|
-
listProjects,
|
|
10
|
-
normalizeProjectPath,
|
|
11
|
-
readRegistry,
|
|
12
|
-
registryLockPath,
|
|
13
|
-
registryPath,
|
|
14
|
-
removeProject,
|
|
15
|
-
setStatus,
|
|
16
|
-
touchLastSeen,
|
|
17
|
-
writeAtomically
|
|
18
|
-
} from "./chunk-WX55TLUT.js";
|
|
4
|
+
} from "./chunk-BVF7MVR5.js";
|
|
19
5
|
import {
|
|
20
6
|
buildApi,
|
|
21
7
|
computeGraphDiff,
|
|
22
8
|
loadSnapshotForDiff
|
|
23
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5KX7EI4F.js";
|
|
24
10
|
import {
|
|
11
|
+
ProjectNameCollisionError,
|
|
12
|
+
addProject,
|
|
25
13
|
checkCompatibility,
|
|
26
14
|
compatPairs,
|
|
27
15
|
confidenceForEdge,
|
|
28
16
|
extractFromDirectory,
|
|
29
17
|
getBlastRadius,
|
|
30
18
|
getGraph,
|
|
19
|
+
getProject,
|
|
31
20
|
getRootCause,
|
|
32
21
|
handleSpan,
|
|
22
|
+
listProjects,
|
|
33
23
|
loadGraphFromDisk,
|
|
34
24
|
makeSpanHandler,
|
|
35
25
|
markStaleEdges,
|
|
26
|
+
normalizeProjectPath,
|
|
36
27
|
readErrorEvents,
|
|
28
|
+
readRegistry,
|
|
37
29
|
readStaleEvents,
|
|
30
|
+
registryLockPath,
|
|
31
|
+
registryPath,
|
|
32
|
+
removeProject,
|
|
38
33
|
resetGraph,
|
|
39
34
|
saveGraphToDisk,
|
|
35
|
+
setStatus,
|
|
40
36
|
startPersistLoop,
|
|
41
37
|
startStalenessLoop,
|
|
42
38
|
stitchTrace,
|
|
43
|
-
thresholdForEdgeType
|
|
44
|
-
|
|
39
|
+
thresholdForEdgeType,
|
|
40
|
+
touchLastSeen,
|
|
41
|
+
writeAtomically
|
|
42
|
+
} from "./chunk-IRPH6KL4.js";
|
|
45
43
|
import {
|
|
46
44
|
buildOtelReceiver,
|
|
47
45
|
logSpanHandler,
|