@hcu-lab.me/mcp-device 1.0.7 → 1.0.8

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.
@@ -221,7 +221,9 @@ async function runNpm(nodePath, npmCliPath, args, execFile) {
221
221
  return await execFile(nodePath, [npmCliPath, ...args]);
222
222
  }
223
223
  export async function findCurrentPackageRoot(entrypoint = process.argv[1]) {
224
- let current = path.resolve(path.dirname(entrypoint || process.execPath));
224
+ const resolvedEntrypoint = path.resolve(entrypoint || process.execPath);
225
+ const canonicalEntrypoint = await fs.realpath(resolvedEntrypoint).catch(() => resolvedEntrypoint);
226
+ let current = path.dirname(canonicalEntrypoint);
225
227
  for (let i = 0; i < 8; i++) {
226
228
  const manifest = path.join(current, 'package.json');
227
229
  if (await exists(manifest)) {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.0.7";
1
+ export declare const VERSION = "1.0.8";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.0.7';
1
+ export const VERSION = '1.0.8';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hcu-lab.me/mcp-device",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "MCP Device runtime.",
5
5
  "license": "MIT",
6
6
  "author": "Hirohimeow",