@edgemodders/edgedeck-mcp 0.29.2 → 0.29.3

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.
Files changed (2) hide show
  1. package/dist/core.js +11 -5
  2. package/package.json +1 -1
package/dist/core.js CHANGED
@@ -3769,6 +3769,7 @@ __export(core_exports, {
3769
3769
  forgetSizes: () => forgetSizes,
3770
3770
  formatBytes: () => formatBytes,
3771
3771
  forwarderCommand: () => forwarderCommand,
3772
+ forwarderExe: () => forwarderExe,
3772
3773
  frameworkDetail: () => frameworkDetail,
3773
3774
  frameworkFamily: () => frameworkFamily,
3774
3775
  frameworkStates: () => frameworkStates,
@@ -5808,16 +5809,20 @@ function parseNxm(link) {
5808
5809
  userId: userId ? Number(userId) : void 0
5809
5810
  };
5810
5811
  }
5811
- function forwarderCommand() {
5812
- const ps = `Start-Process ('${UriScheme}://${UriAuthority}/nxm?url=' + [uri]::EscapeDataString('%1'))`;
5813
- return `powershell.exe -NoProfile -WindowStyle Hidden -Command "${ps}"`;
5812
+ function forwarderCommand(target = {}) {
5813
+ const url = `$u = '${target.scheme ?? UriScheme}://${UriAuthority}/nxm?url=' + [uri]::EscapeDataString('%1')`;
5814
+ const open = target.exe ? `Start-Process -FilePath '${target.exe.replace(/'/g, "''")}' -ArgumentList '--open-url','--',$u` : "Start-Process $u";
5815
+ return `powershell.exe -NoProfile -WindowStyle Hidden -Command "${url}; ${open}"`;
5816
+ }
5817
+ function forwarderExe(command) {
5818
+ return /-FilePath '((?:[^']|'')+)'/.exec(command)?.[1].replace(/''/g, "'");
5814
5819
  }
5815
5820
  var Key = "HKCU\\Software\\Classes\\nxm";
5816
- async function registerNxmHandler() {
5821
+ async function registerNxmHandler(target = {}) {
5817
5822
  const before = await currentNxmHandler();
5818
5823
  await run3("reg", ["add", Key, "/ve", "/d", "URL:Nexus Mods link", "/f"], { windowsHide: true });
5819
5824
  await run3("reg", ["add", Key, "/v", "URL Protocol", "/d", "", "/f"], { windowsHide: true });
5820
- await run3("reg", ["add", `${Key}\\shell\\open\\command`, "/ve", "/d", forwarderCommand(), "/f"], { windowsHide: true });
5825
+ await run3("reg", ["add", `${Key}\\shell\\open\\command`, "/ve", "/d", forwarderCommand(target), "/f"], { windowsHide: true });
5821
5826
  return before;
5822
5827
  }
5823
5828
  async function unregisterNxmHandler() {
@@ -6665,6 +6670,7 @@ ${mod.files.join("\n")}`;
6665
6670
  forgetSizes,
6666
6671
  formatBytes,
6667
6672
  forwarderCommand,
6673
+ forwarderExe,
6668
6674
  frameworkDetail,
6669
6675
  frameworkFamily,
6670
6676
  frameworkStates,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgemodders/edgedeck-mcp",
3
- "version": "0.29.2",
3
+ "version": "0.29.3",
4
4
  "description": "EDGEdeck's MCP server and command line: manage Cyberpunk 2077 mods (add, turn on or off, order, deploy, undo, conflicts, loadouts) from an AI assistant or a script.",
5
5
  "license": "MIT",
6
6
  "author": "Edgemodders",