remote-term 0.1.1 → 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.
@@ -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
+ }
@@ -1,2 +1,2 @@
1
1
  @echo off
2
- "%~dp0\remote-term.exe" %*
2
+ "%~dp0\remote-term-binary.exe" %*
package/install.js CHANGED
@@ -60,7 +60,7 @@ async function main() {
60
60
  const url = getDownloadUrl(binaryName);
61
61
  const binDir = path.join(__dirname, "bin");
62
62
  const isWindows = process.platform === "win32";
63
- const outputName = isWindows ? "remote-term.exe" : "remote-term";
63
+ const outputName = isWindows ? "remote-term-binary.exe" : "remote-term-binary";
64
64
  const outputPath = path.join(binDir, outputName);
65
65
 
66
66
  console.log(`Downloading remote-term v${VERSION} for ${process.platform}-${process.arch}...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remote-term",
3
- "version": "0.1.1",
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": {