@dinoxx/ducko 0.0.0-stage → 0.2.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 +24 -2
- package/bin/ducko.js +32 -0
- package/package.json +34 -4
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ducko
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The computer side of Ducko, the phone terminal for CLI coding agents (Claude Code, Codex).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i -g @dinoxx/ducko
|
|
7
|
+
ducko pair
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
`ducko pair` prints a QR code; scan it with the Ducko app. It also starts a background
|
|
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
|
|
13
|
+
Remote Login, no admin rights, no token. The phone adds its own key when it scans.
|
|
14
|
+
|
|
15
|
+
Install it globally (`npm i -g`), not through `npx`: the background service and agent hooks
|
|
16
|
+
point at the installed binary, and npx's cache moves on every version.
|
|
17
|
+
|
|
18
|
+
- `ducko claude` / `ducko codex`: start an agent your phone can see and drive.
|
|
19
|
+
- `ducko service status`: is the tunnel up.
|
|
20
|
+
- `ducko pair --relay https://your.relay`: use your own relay instead of the public one.
|
|
21
|
+
|
|
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
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs the ducko binary that npm installed for this platform (the optional
|
|
3
|
+
// dependency @dinoxx/ducko-<os>-<arch>). The binary records its own path wherever it
|
|
4
|
+
// must run later (the background service, agent hooks, the pair URI), so only
|
|
5
|
+
// commands typed by hand go through this shim.
|
|
6
|
+
'use strict';
|
|
7
|
+
const { spawnSync } = require('node:child_process');
|
|
8
|
+
const path = require('node:path');
|
|
9
|
+
|
|
10
|
+
const arch = { x64: 'x64', arm64: 'arm64' }[process.arch];
|
|
11
|
+
const os = { darwin: 'darwin', linux: 'linux', win32: 'win32' }[process.platform];
|
|
12
|
+
const pkg = os && arch ? `@dinoxx/ducko-${os}-${arch}` : null;
|
|
13
|
+
|
|
14
|
+
let bin;
|
|
15
|
+
try {
|
|
16
|
+
bin = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), 'bin', os === 'win32' ? 'ducko.exe' : 'ducko');
|
|
17
|
+
} catch {
|
|
18
|
+
console.error(
|
|
19
|
+
pkg
|
|
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, Linux and Windows, x64 and arm64)`,
|
|
22
|
+
);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const r = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' });
|
|
27
|
+
if (r.error) {
|
|
28
|
+
console.error(`ducko: ${r.error.message}`);
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
if (r.signal) process.kill(process.pid, r.signal);
|
|
32
|
+
process.exit(r.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dinoxx/ducko",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Host agent for the Ducko phone terminal: watch and steer Claude Code and Codex from your phone",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ducko": "bin/ducko.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/ducko.js",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"os": [
|
|
17
|
+
"darwin",
|
|
18
|
+
"linux",
|
|
19
|
+
"win32"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"claude-code",
|
|
23
|
+
"codex",
|
|
24
|
+
"ssh",
|
|
25
|
+
"terminal",
|
|
26
|
+
"mobile"
|
|
27
|
+
],
|
|
28
|
+
"optionalDependencies": {
|
|
29
|
+
"@dinoxx/ducko-darwin-arm64": "0.2.0",
|
|
30
|
+
"@dinoxx/ducko-darwin-x64": "0.2.0",
|
|
31
|
+
"@dinoxx/ducko-linux-x64": "0.2.0",
|
|
32
|
+
"@dinoxx/ducko-linux-arm64": "0.2.0",
|
|
33
|
+
"@dinoxx/ducko-win32-x64": "0.2.0",
|
|
34
|
+
"@dinoxx/ducko-win32-arm64": "0.2.0"
|
|
35
|
+
}
|
|
36
|
+
}
|