agent-rdp 0.1.3 → 0.1.4

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.
Binary file
package/bin/agent-rdp.cjs CHANGED
@@ -31,8 +31,14 @@ switch (arch()) {
31
31
  }
32
32
 
33
33
  const ext = os === 'win32' ? '.exe' : '';
34
- const binaryName = `agent-rdp-${os}-${architecture}${ext}`;
35
- const binaryPath = join(scriptDir, binaryName);
34
+ let binaryName = `agent-rdp-${os}-${architecture}${ext}`;
35
+ let binaryPath = join(scriptDir, binaryName);
36
+
37
+ // Fallback: Windows ARM64 can run x64 binaries via emulation
38
+ if (!existsSync(binaryPath) && os === 'win32' && architecture === 'arm64') {
39
+ binaryName = `agent-rdp-win32-x64.exe`;
40
+ binaryPath = join(scriptDir, binaryName);
41
+ }
36
42
 
37
43
  if (!existsSync(binaryPath)) {
38
44
  console.error(`Error: No binary found for ${os}-${architecture}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-rdp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool for AI agents to control Windows Remote Desktop sessions",
5
5
  "repository": {
6
6
  "type": "git",