@arcane-fly/desktop-monkey 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.
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'node:child_process';
3
+
4
+ const args = process.argv.slice(2);
5
+ const candidates = [
6
+ ['dmonkey', args],
7
+ ['uvx', ['--from', 'desktop-monkey', 'dmonkey', ...args]],
8
+ ['python3', ['-m', 'desktop_monkey.cli', ...args]],
9
+ ['python', ['-m', 'desktop_monkey.cli', ...args]],
10
+ ];
11
+
12
+ for (const [cmd, cmdArgs] of candidates) {
13
+ const res = spawnSync(cmd, cmdArgs, { stdio: 'inherit', shell: process.platform === 'win32' });
14
+ if (!res.error) {
15
+ process.exit(res.status ?? 0);
16
+ }
17
+ }
18
+
19
+ console.error('Desktop Monkey CLI requires `uv` (`uvx`) or `python` on PATH. Install uv from https://astral.sh/uv');
20
+ process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcane-fly/desktop-monkey",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Desktop Commander-parity remote MCP plus a device mesh that pools compute, GPU, RAM and disk across your own machines. Name holder: the implementation is the Python package desktop-monkey; this npm package ships no JavaScript yet.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,11 +8,16 @@
8
8
  },
9
9
  "license": "MIT",
10
10
  "files": [
11
+ "bin/",
11
12
  "README.md",
12
13
  "LICENSE"
13
14
  ],
14
15
  "scripts": {
15
16
  "build": "echo 'No TypeScript to build - Python package only'",
16
17
  "test": "echo 'No npm tests - Python tests only'"
18
+ },
19
+ "bin": {
20
+ "desktop-monkey": "bin/desktop-monkey.mjs",
21
+ "dmonkey": "bin/desktop-monkey.mjs"
17
22
  }
18
23
  }