@wonderwhy-er/desktop-commander 0.2.18-alpha.0 → 0.2.18-alpha.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.
@@ -212,6 +212,9 @@ function getPackageSpec() {
212
212
  // e.g., npx @wonderwhy-er/desktop-commander@0.2.18-alpha setup
213
213
  const argv = process.argv;
214
214
 
215
+ // Debug: log what we're seeing
216
+ console.log('[DEBUG] process.argv:', JSON.stringify(argv, null, 2));
217
+
215
218
  // Look for the package name in argv
216
219
  for (let i = 0; i < argv.length; i++) {
217
220
  const arg = argv[i];
@@ -219,11 +222,22 @@ function getPackageSpec() {
219
222
  // Extract just the package spec (e.g., @wonderwhy-er/desktop-commander@0.2.18-alpha)
220
223
  const match = arg.match(/(@wonderwhy-er\/desktop-commander(@[^\/\s]+)?)/);
221
224
  if (match) {
225
+ console.log('[DEBUG] Found package spec in argv:', match[1]);
222
226
  return match[1];
223
227
  }
224
228
  }
225
229
  }
226
230
 
231
+ // Also check npm environment variables
232
+ const npmPackage = process.env.npm_package_name;
233
+ const npmVersion = process.env.npm_package_version;
234
+ if (npmPackage === '@wonderwhy-er/desktop-commander' && npmVersion) {
235
+ const spec = `${npmPackage}@${npmVersion}`;
236
+ console.log('[DEBUG] Found package spec from npm env:', spec);
237
+ return spec;
238
+ }
239
+
240
+ console.log('[DEBUG] Falling back to @latest');
227
241
  // Fallback to @latest if we can't detect
228
242
  return '@wonderwhy-er/desktop-commander@latest';
229
243
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.2.18-alpha.0";
1
+ export declare const VERSION = "0.2.18-alpha.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.18-alpha.0';
1
+ export const VERSION = '0.2.18-alpha.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderwhy-er/desktop-commander",
3
- "version": "0.2.18-alpha.0",
3
+ "version": "0.2.18-alpha.1",
4
4
  "description": "MCP server for terminal operations and file editing",
5
5
  "mcpName": "io.github.wonderwhy-er/desktop-commander",
6
6
  "license": "MIT",