trace-mcp 1.13.0 → 1.14.0

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
@@ -5006,7 +5006,7 @@ import https from "https";
5006
5006
  import { spawnSync } from "child_process";
5007
5007
  import path3 from "path";
5008
5008
  import fs5 from "fs";
5009
- var CURRENT_VERSION = true ? "1.13.0" : "0.0.0-dev";
5009
+ var CURRENT_VERSION = true ? "1.14.0" : "0.0.0-dev";
5010
5010
  var UPDATE_CACHE_PATH = path3.join(TRACE_MCP_HOME, "update-check.json");
5011
5011
  function readCache() {
5012
5012
  try {
@@ -10695,6 +10695,21 @@ var IndexingPipeline = class _IndexingPipeline {
10695
10695
  absolute: false,
10696
10696
  onlyFiles: true
10697
10697
  });
10698
+ if (entries.length === 0) {
10699
+ const deepPatterns = this.config.include.filter((p5) => !p5.startsWith("**/")).map((p5) => `**/${p5}`);
10700
+ if (deepPatterns.length > 0) {
10701
+ entries = await fg3(deepPatterns, {
10702
+ cwd: this.rootPath,
10703
+ ignore,
10704
+ dot: false,
10705
+ absolute: false,
10706
+ onlyFiles: true
10707
+ });
10708
+ if (entries.length > 0) {
10709
+ logger.info({ count: entries.length, root: this.rootPath }, "Workspace root detected \u2014 using deep glob patterns");
10710
+ }
10711
+ }
10712
+ }
10698
10713
  if (this._traceignore) {
10699
10714
  const ti = this._traceignore;
10700
10715
  entries = entries.filter((e) => !ti.isIgnored(e));
@@ -33154,7 +33169,7 @@ var TopologyStore = class {
33154
33169
  };
33155
33170
 
33156
33171
  // src/server/server.ts
33157
- var PKG_VERSION = true ? "1.13.0" : "0.0.0-dev";
33172
+ var PKG_VERSION = true ? "1.14.0" : "0.0.0-dev";
33158
33173
  function j2(value) {
33159
33174
  return JSON.stringify(value, (_key, val) => val === null || val === void 0 ? void 0 : val);
33160
33175
  }
@@ -70004,7 +70019,7 @@ var visualizeCommand = new Command12("visualize").alias("viz").description("Open
70004
70019
  output: outputPath
70005
70020
  });
70006
70021
  db.close();
70007
- if (!result.ok) {
70022
+ if (result.isErr()) {
70008
70023
  console.error("Error:", result.error.message);
70009
70024
  process.exit(1);
70010
70025
  }
@@ -70023,7 +70038,7 @@ visualizeCommand.command("federation").alias("fed").description("Open federation
70023
70038
  output: outputPath
70024
70039
  });
70025
70040
  topoStore.close();
70026
- if (!result.ok) {
70041
+ if (result.isErr()) {
70027
70042
  console.error("Error:", result.error.message);
70028
70043
  process.exit(1);
70029
70044
  }
@@ -70035,7 +70050,7 @@ visualizeCommand.command("federation").alias("fed").description("Open federation
70035
70050
  });
70036
70051
 
70037
70052
  // src/cli.ts
70038
- var PKG_VERSION2 = true ? "1.13.0" : "0.0.0-dev";
70053
+ var PKG_VERSION2 = true ? "1.14.0" : "0.0.0-dev";
70039
70054
  function registerDefaultPlugins(registry) {
70040
70055
  for (const p5 of createAllLanguagePlugins()) registry.registerLanguagePlugin(p5);
70041
70056
  for (const p5 of createAllIntegrationPlugins()) registry.registerFrameworkPlugin(p5);