@triedotdev/mcp 1.0.84 → 1.0.85

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/main.js CHANGED
@@ -81,7 +81,7 @@ import {
81
81
  // src/cli/main.ts
82
82
  import { resolve, join as join2, dirname } from "path";
83
83
  import { existsSync as existsSync3, readFileSync } from "fs";
84
- import { fileURLToPath } from "url";
84
+ import { fileURLToPath, pathToFileURL } from "url";
85
85
 
86
86
  // src/cli/skills.ts
87
87
  async function handleSkillsCommand(args) {
@@ -2796,10 +2796,17 @@ async function main() {
2796
2796
  }
2797
2797
  }
2798
2798
  }
2799
- main().catch((error) => {
2800
- console.error("Error:", error);
2801
- process.exit(1);
2802
- });
2799
+ var isEntryPoint = (() => {
2800
+ const entry = process.argv[1];
2801
+ if (!entry) return false;
2802
+ return pathToFileURL(entry).href === import.meta.url;
2803
+ })();
2804
+ if (isEntryPoint) {
2805
+ main().catch((error) => {
2806
+ console.error("Error:", error);
2807
+ process.exit(1);
2808
+ });
2809
+ }
2803
2810
  export {
2804
2811
  handleStatusCommand
2805
2812
  };