trace-mcp 1.16.0 → 1.16.1

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
@@ -88596,7 +88596,7 @@ import https from "https";
88596
88596
  import { spawnSync } from "child_process";
88597
88597
  import path63 from "path";
88598
88598
  import fs64 from "fs";
88599
- var CURRENT_VERSION = true ? "1.16.0" : "0.0.0-dev";
88599
+ var CURRENT_VERSION = true ? "1.16.1" : "0.0.0-dev";
88600
88600
  var UPDATE_CACHE_PATH = path63.join(TRACE_MCP_HOME, "update-check.json");
88601
88601
  function readCache() {
88602
88602
  try {
@@ -105959,7 +105959,7 @@ function buildFederatedGraph(mainStore, opts) {
105959
105959
  opts.granularity ?? "file",
105960
105960
  opts.hideIsolated === true
105961
105961
  );
105962
- const mainPrefix = currentRepo?.name ?? "main";
105962
+ const mainPrefix = allRepos.find((r) => r.repo_root === projectRoot)?.name ?? path94.basename(projectRoot);
105963
105963
  for (const n of mainResult.nodes) {
105964
105964
  n.repo = mainPrefix;
105965
105965
  allNodes.push(n);
@@ -106505,7 +106505,7 @@ DATA.edges.forEach(e => {
106505
106505
  });
106506
106506
 
106507
106507
  // BFS to collect neighbors at N levels deep \u2014 returns Map<nodeId, depthLevel>
106508
- let highlightDepth = ${opts.highlightDepth ?? 1};
106508
+ let highlightDepth = ${opts?.highlightDepth ?? 1};
106509
106509
  function getNeighborsAtDepth(startId, maxDepth) {
106510
106510
  const depthMap = new Map(); // nodeId \u2192 depth level (1-based)
106511
106511
  let frontier = new Set([startId]);
@@ -115505,7 +115505,7 @@ var TopologyStore = class {
115505
115505
  };
115506
115506
 
115507
115507
  // src/server/server.ts
115508
- var PKG_VERSION = true ? "1.16.0" : "0.0.0-dev";
115508
+ var PKG_VERSION = true ? "1.16.1" : "0.0.0-dev";
115509
115509
  function j2(value) {
115510
115510
  return JSON.stringify(value, (_key, val) => val === null || val === void 0 ? void 0 : val);
115511
115511
  }
@@ -120703,7 +120703,7 @@ var visualizeCommand = new Command12("visualize").alias("viz").description("Gene
120703
120703
  topoStore?.close();
120704
120704
  db.close();
120705
120705
  if (result.isErr()) {
120706
- console.error("Error:", result.error.message);
120706
+ console.error("Error:", "message" in result.error ? result.error.message : result.error.code);
120707
120707
  process.exit(1);
120708
120708
  }
120709
120709
  console.log(`Graph: ${result.value.nodes} nodes, ${result.value.edges} edges, ${result.value.communities} communities`);
@@ -120722,7 +120722,7 @@ visualizeCommand.command("federation").alias("fed").description("Open federation
120722
120722
  });
120723
120723
  topoStore.close();
120724
120724
  if (result.isErr()) {
120725
- console.error("Error:", result.error.message);
120725
+ console.error("Error:", "message" in result.error ? result.error.message : result.error.code);
120726
120726
  process.exit(1);
120727
120727
  }
120728
120728
  console.log(`Federation: ${result.value.services} services, ${result.value.edges} edges`);
@@ -121085,7 +121085,7 @@ var ProjectManager = class {
121085
121085
 
121086
121086
  // src/cli.ts
121087
121087
  init_global();
121088
- var PKG_VERSION2 = true ? "1.16.0" : "0.0.0-dev";
121088
+ var PKG_VERSION2 = true ? "1.16.1" : "0.0.0-dev";
121089
121089
  function registerDefaultPlugins2(registry) {
121090
121090
  for (const p5 of createAllLanguagePlugins()) registry.registerLanguagePlugin(p5);
121091
121091
  for (const p5 of createAllIntegrationPlugins()) registry.registerFrameworkPlugin(p5);