supaterm 26.3.1 → 26.10.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/bin/supaterm.js CHANGED
@@ -16,7 +16,7 @@ try {
16
16
  "supaterm: no Supaterm CLI build is available for this platform (" + key + ").",
17
17
  "Supported platforms: " + SUPPORTED.join(", ") + ".",
18
18
  "If yours is listed, reinstall supaterm so npm fetches its optional dependency.",
19
- "The desktop app and release archives are at https://github.com/supabitapp/supacode-next/releases",
19
+ "The desktop app and release archives are at https://github.com/supabitapp/supaterm/releases",
20
20
  "",
21
21
  ].join("\n"),
22
22
  );
package/package.json CHANGED
@@ -1,25 +1,24 @@
1
1
  {
2
2
  "name": "supaterm",
3
- "version": "26.3.1",
3
+ "version": "26.10.0",
4
4
  "description": "Supaterm CLI. Installs the self-contained executable for this platform.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/supabitapp/supacode-next",
8
+ "url": "https://github.com/supabitapp/supaterm",
9
9
  "directory": "apps/server"
10
10
  },
11
11
  "bin": {
12
12
  "supaterm": "./bin/supaterm.js"
13
13
  },
14
14
  "files": [
15
- "bin",
16
- "dist"
15
+ "bin"
17
16
  ],
18
17
  "optionalDependencies": {
19
- "@supabitapp/supaterm-darwin-arm64": "26.3.1",
20
- "@supabitapp/supaterm-linux-arm64": "26.3.1",
21
- "@supabitapp/supaterm-linux-x64": "26.3.1",
22
- "@supabitapp/supaterm-win32-arm64": "26.3.1",
23
- "@supabitapp/supaterm-win32-x64": "26.3.1"
18
+ "@supabitapp/supaterm-darwin-arm64": "26.10.0",
19
+ "@supabitapp/supaterm-linux-arm64": "26.10.0",
20
+ "@supabitapp/supaterm-linux-x64": "26.10.0",
21
+ "@supabitapp/supaterm-win32-arm64": "26.10.0",
22
+ "@supabitapp/supaterm-win32-x64": "26.10.0"
24
23
  }
25
24
  }
package/dist/bin.mjs DELETED
@@ -1,27 +0,0 @@
1
- import { spawn } from "node:child_process";
2
- import { constants } from "node:os";
3
- import { dirname, join } from "node:path";
4
- import { createRequire } from "node:module";
5
- const require = createRequire(import.meta.url);
6
- const executableName = process.platform === "win32" ? "supaterm.exe" : "supaterm";
7
- const executable = join(dirname(require.resolve("@supabitapp/supaterm-" + process.platform + "-" + process.arch + "/package.json")), executableName);
8
- const ipc = process.send !== undefined;
9
- const child = spawn(executable, process.argv.slice(2), {
10
- stdio: ipc ? ["inherit", "inherit", "inherit", "ipc"] : "inherit",
11
- });
12
- const fail = (error) => {
13
- if (!error) return;
14
- process.stderr.write("supaterm: " + error.message + "\n");
15
- child.kill("SIGTERM");
16
- process.exitCode = 1;
17
- };
18
- if (ipc) {
19
- process.on("message", (message) => { if (child.connected) child.send(message, fail); });
20
- child.on("message", (message) => { if (process.connected) process.send(message, fail); });
21
- process.on("disconnect", () => { if (child.connected) child.disconnect(); });
22
- }
23
- for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) {
24
- process.on(signal, () => child.kill(signal));
25
- }
26
- child.on("error", (error) => { fail(error); process.exit(1); });
27
- child.on("exit", (code, signal) => process.exit(code ?? 128 + (constants.signals[signal] || 1)));