remote-term 0.1.2 → 0.1.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/bin/remote-term +22 -0
  2. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require("child_process");
4
+ const path = require("path");
5
+ const fs = require("fs");
6
+
7
+ const isWindows = process.platform === "win32";
8
+ const binaryName = isWindows ? "remote-term-binary.exe" : "remote-term-binary";
9
+ const binaryPath = path.join(__dirname, binaryName);
10
+
11
+ if (!fs.existsSync(binaryPath)) {
12
+ console.error("Error: remote-term binary not found. Try reinstalling: npm i -g remote-term");
13
+ process.exit(1);
14
+ }
15
+
16
+ try {
17
+ const result = execFileSync(binaryPath, process.argv.slice(2), {
18
+ stdio: "inherit",
19
+ });
20
+ } catch (err) {
21
+ process.exit(err.status || 1);
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remote-term",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Remote terminal access via Telegram or browser WebUI. Full PTY support for interactive programs like Claude Code, Python REPL, vim.",
5
5
  "license": "MIT",
6
6
  "repository": {