@dinoxx/ducko 0.1.0 → 0.3.0

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.
package/README.md CHANGED
@@ -8,7 +8,8 @@ ducko pair
8
8
  ```
9
9
 
10
10
  `ducko pair` prints a QR code; scan it with the Ducko app. It also starts a background
11
- service (launchd / systemd user unit) that keeps the tunnel up. Nothing else to set up: no
11
+ service (launchd agent, systemd user unit, or a Task Scheduler task on Windows and in WSL)
12
+ that keeps the tunnel up. Nothing else to set up: no
12
13
  Remote Login, no admin rights, no token. The phone adds its own key when it scans.
13
14
 
14
15
  Install it globally (`npm i -g`), not through `npx`: the background service and agent hooks
@@ -18,5 +19,7 @@ point at the installed binary, and npx's cache moves on every version.
18
19
  - `ducko service status`: is the tunnel up.
19
20
  - `ducko pair --relay https://your.relay`: use your own relay instead of the public one.
20
21
 
21
- macOS and Linux, x64 and arm64. On Linux the OpenSSH server package must be installed (it
22
- need not run).
22
+ macOS, Linux and Windows, x64 and arm64. On Linux the OpenSSH server package must be installed
23
+ (it need not run). On Windows install [psmux](https://github.com/psmux/psmux) (tmux for
24
+ Windows) first; or run ducko inside WSL like on Linux, where `ducko pair` registers a Windows
25
+ task that keeps the distro and the tunnel up.
package/bin/ducko.js CHANGED
@@ -8,17 +8,17 @@ const { spawnSync } = require('node:child_process');
8
8
  const path = require('node:path');
9
9
 
10
10
  const arch = { x64: 'x64', arm64: 'arm64' }[process.arch];
11
- const os = { darwin: 'darwin', linux: 'linux' }[process.platform];
11
+ const os = { darwin: 'darwin', linux: 'linux', win32: 'win32' }[process.platform];
12
12
  const pkg = os && arch ? `@dinoxx/ducko-${os}-${arch}` : null;
13
13
 
14
14
  let bin;
15
15
  try {
16
- bin = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), 'bin', 'ducko');
16
+ bin = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), 'bin', os === 'win32' ? 'ducko.exe' : 'ducko');
17
17
  } catch {
18
18
  console.error(
19
19
  pkg
20
20
  ? `ducko: ${pkg} is not installed. Reinstall without --omit=optional: npm i -g @dinoxx/ducko`
21
- : `ducko: no build for ${process.platform}/${process.arch} (macOS and Linux, x64 and arm64)`,
21
+ : `ducko: no build for ${process.platform}/${process.arch} (macOS, Linux and Windows, x64 and arm64)`,
22
22
  );
23
23
  process.exit(1);
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dinoxx/ducko",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Host agent for the Ducko phone terminal: watch and steer Claude Code and Codex from your phone",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "os": [
17
17
  "darwin",
18
- "linux"
18
+ "linux",
19
+ "win32"
19
20
  ],
20
21
  "keywords": [
21
22
  "claude-code",
@@ -25,9 +26,11 @@
25
26
  "mobile"
26
27
  ],
27
28
  "optionalDependencies": {
28
- "@dinoxx/ducko-darwin-arm64": "0.1.0",
29
- "@dinoxx/ducko-darwin-x64": "0.1.0",
30
- "@dinoxx/ducko-linux-x64": "0.1.0",
31
- "@dinoxx/ducko-linux-arm64": "0.1.0"
29
+ "@dinoxx/ducko-darwin-arm64": "0.3.0",
30
+ "@dinoxx/ducko-darwin-x64": "0.3.0",
31
+ "@dinoxx/ducko-linux-x64": "0.3.0",
32
+ "@dinoxx/ducko-linux-arm64": "0.3.0",
33
+ "@dinoxx/ducko-win32-x64": "0.3.0",
34
+ "@dinoxx/ducko-win32-arm64": "0.3.0"
32
35
  }
33
36
  }