@neat.is/core 0.7.3 → 0.7.4

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/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  resolveHost,
7
7
  resolveNeatVersion,
8
8
  writeDaemonRecord
9
- } from "./chunk-3SBEY67S.js";
9
+ } from "./chunk-KN6O7KMK.js";
10
10
  import {
11
11
  buildSearchIndex
12
12
  } from "./chunk-BIY46Q6U.js";
@@ -23,8 +23,10 @@ import {
23
23
  addImports,
24
24
  addInfra,
25
25
  addProject,
26
+ addRoutes,
26
27
  addServiceAliases,
27
28
  addServiceNodes,
29
+ addSymbols,
28
30
  attachGraphToEventBus,
29
31
  autoSlugConnectorId,
30
32
  buildApi,
@@ -72,7 +74,7 @@ import {
72
74
  startStalenessLoop,
73
75
  upsertConnectorEntry,
74
76
  validateConnectorEntry
75
- } from "./chunk-BY6ZP5WA.js";
77
+ } from "./chunk-UU4XKSTO.js";
76
78
  import {
77
79
  startOtelGrpcReceiver
78
80
  } from "./chunk-6H757ZNM.js";
@@ -263,9 +265,11 @@ var ALL_PHASES = [
263
265
  "services",
264
266
  "aliases",
265
267
  "files",
268
+ "symbols",
266
269
  "imports",
267
270
  "databases",
268
271
  "configs",
272
+ "routes",
269
273
  "calls",
270
274
  "infra"
271
275
  ];
@@ -288,7 +292,9 @@ function classifyChange(relPath) {
288
292
  }
289
293
  if (/\.(?:js|jsx|mjs|cjs|ts|tsx|py)$/.test(base)) {
290
294
  phases.add("files");
295
+ phases.add("symbols");
291
296
  phases.add("imports");
297
+ phases.add("routes");
292
298
  phases.add("calls");
293
299
  }
294
300
  if (/\.ya?ml$/.test(base) && !/^docker-compose.*\.ya?ml$/.test(base)) {
@@ -315,6 +321,11 @@ async function runExtractPhases(graph, scanPath, phases, project = DEFAULT_PROJE
315
321
  nodesAdded += r.nodesAdded;
316
322
  edgesAdded += r.edgesAdded;
317
323
  }
324
+ if (phases.has("symbols")) {
325
+ const r = await addSymbols(graph, services);
326
+ nodesAdded += r.nodesAdded;
327
+ edgesAdded += r.edgesAdded;
328
+ }
318
329
  if (phases.has("imports")) {
319
330
  const r = await addImports(graph, services);
320
331
  nodesAdded += r.nodesAdded;
@@ -330,6 +341,11 @@ async function runExtractPhases(graph, scanPath, phases, project = DEFAULT_PROJE
330
341
  nodesAdded += r.nodesAdded;
331
342
  edgesAdded += r.edgesAdded;
332
343
  }
344
+ if (phases.has("routes")) {
345
+ const r = await addRoutes(graph, services);
346
+ nodesAdded += r.nodesAdded;
347
+ edgesAdded += r.edgesAdded;
348
+ }
333
349
  if (phases.has("calls")) {
334
350
  const r = await addCallEdges(graph, services);
335
351
  nodesAdded += r.nodesAdded;