onlinechefgroep-herdr 0.7.3 → 0.7.6

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 (3) hide show
  1. package/README.md +4 -4
  2. package/install.js +12 -20
  3. package/package.json +3 -5
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Herdr - fast terminal multiplexer with AI agent detection.
4
4
 
5
- OnlineChefGroep distribution of [ogulcancelik/herdr](https://github.com/ogulcancelik/herdr).
5
+ OnlineChefGroep distribution of [OnlineChefGroep/herdr](https://github.com/OnlineChefGroep/herdr).
6
6
 
7
7
  ## Install
8
8
 
@@ -16,6 +16,8 @@ Or with bun:
16
16
  bun add -g onlinechefgroep-herdr
17
17
  ```
18
18
 
19
+ Prebuilt binaries are published for Linux (x64/arm64) and macOS (x64/arm64). Windows is not part of the v0.7.4 binary release.
20
+
19
21
  ## Quick start
20
22
 
21
23
  ```bash
@@ -43,6 +45,4 @@ cargo build --release
43
45
 
44
46
  ## License
45
47
 
46
- MIT - see [LICENSE](https://github.com/OnlineChefGroep/herdr/blob/master/LICENSE)
47
- RMEOF
48
- echo "README.md OK" && cd ~/herdr-private && git add npm/ && git status --short npm/
48
+ MIT - see [LICENSE](https://github.com/OnlineChefGroep/herdr/blob/main/LICENSE)
package/install.js CHANGED
@@ -2,35 +2,27 @@
2
2
  const { createWriteStream, existsSync, mkdirSync, chmodSync } = require("fs");
3
3
  const { join } = require("path");
4
4
  const https = require("https");
5
- const os = require("os");
6
5
 
7
- const VERSION = "0.7.3";
6
+ const VERSION = "0.7.6";
8
7
  const REPO = "OnlineChefGroep/herdr";
9
8
  const BIN_DIR = join(__dirname, "bin");
10
- const BINARY_NAME = os.platform() === "win32" ? "herdr.exe" : "herdr";
9
+ const BINARY_NAME = "herdr";
11
10
  const BINARY_PATH = join(BIN_DIR, BINARY_NAME);
12
11
 
12
+ if (process.platform !== "linux" || process.arch !== "x64") {
13
+ console.error("No prebuilt binary for " + process.platform + "-" + process.arch);
14
+ console.error("This distribution ships linux-x86_64 only.");
15
+ console.error("Build from source: git clone https://github.com/" + REPO);
16
+ process.exit(1);
17
+ }
18
+
13
19
  if (existsSync(BINARY_PATH)) {
14
20
  console.log("herdr " + VERSION + " already installed");
15
21
  process.exit(0);
16
22
  }
17
23
 
18
- const platformMap = {
19
- "linux-x64": "herdr-linux-x86_64",
20
- "linux-arm64": "herdr-linux-aarch64",
21
- "darwin-x64": "herdr-macos-x86_64",
22
- "darwin-arm64": "herdr-macos-aarch64",
23
- };
24
-
25
- const arch = os.arch() === "arm64" ? "arm64" : "x64";
26
- const platform = os.platform() + "-" + arch;
27
- const asset = platformMap[platform];
28
-
29
- if (!asset) {
30
- console.error("No prebuilt binary for " + platform);
31
- console.error("Build from source: git clone https://github.com/" + REPO);
32
- process.exit(1);
33
- }
24
+ const asset = "herdr-linux-x86_64";
25
+ const platform = "linux-x64";
34
26
 
35
27
  const url = "https://github.com/" + REPO + "/releases/download/v" + VERSION + "/" + asset;
36
28
  console.log("Downloading herdr " + VERSION + " (" + platform + ")...");
@@ -51,7 +43,7 @@ function doDownload(dlUrl) {
51
43
  res.pipe(file);
52
44
  file.on("finish", () => {
53
45
  file.close();
54
- if (os.platform() !== "win32") chmodSync(BINARY_PATH, 0o755);
46
+ chmodSync(BINARY_PATH, 0o755);
55
47
  console.log("herdr " + VERSION + " installed to " + BINARY_PATH);
56
48
  });
57
49
  }).on("error", (err) => {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "onlinechefgroep-herdr",
3
- "version": "0.7.3",
3
+ "version": "0.7.6",
4
4
  "description": "Herdr - fast terminal multiplexer with AI agent detection (OnlineChefGroep distribution)",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/OnlineChefGroep/herdr.git"
9
9
  },
10
- "homepage": "https://github.com/OnlineChefGroep/herdr",
10
+ "homepage": "https://herdr.chefgroep.nl",
11
11
  "keywords": [
12
12
  "terminal",
13
13
  "multiplexer",
@@ -31,8 +31,6 @@
31
31
  "node": ">=18"
32
32
  },
33
33
  "os": [
34
- "linux",
35
- "darwin",
36
- "win32"
34
+ "linux"
37
35
  ]
38
36
  }