thronglets 0.4.3 → 0.4.4

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 CHANGED
@@ -2,12 +2,13 @@
2
2
 
3
3
  AI-first decision substrate for coding agents.
4
4
 
5
- This npm package installs the `thronglets` CLI wrapper and downloads a native binary for supported platforms.
5
+ This npm package installs the `thronglets` CLI wrapper and downloads a matching prebuilt native binary from the official GitHub release.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```bash
10
10
  npm install -g thronglets
11
+ thronglets version --json
11
12
  thronglets setup
12
13
  ```
13
14
 
@@ -65,7 +66,6 @@ thronglets run --bootstrap /ip4/47.93.32.88/tcp/4001
65
66
  ## Links
66
67
 
67
68
  - [GitHub](https://github.com/Shangri-la-0428/Thronglets)
68
- - [crates.io](https://crates.io/crates/thronglets)
69
69
 
70
70
  ## License
71
71
 
package/bin/thronglets.js CHANGED
@@ -5,9 +5,15 @@ const { execFileSync } = require("child_process");
5
5
  const path = require("path");
6
6
  const fs = require("fs");
7
7
 
8
- const binPath = path.join(__dirname, "thronglets-bin");
8
+ const candidates =
9
+ process.platform === "win32"
10
+ ? ["thronglets-bin.exe", "thronglets-bin"]
11
+ : ["thronglets-bin"];
12
+ const binPath = candidates
13
+ .map((name) => path.join(__dirname, name))
14
+ .find((candidate) => fs.existsSync(candidate));
9
15
 
10
- if (!fs.existsSync(binPath)) {
16
+ if (!binPath) {
11
17
  console.error("Thronglets binary not found. Run: npm rebuild thronglets");
12
18
  process.exit(1);
13
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thronglets",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Local AI substrate for agents with sparse signals, hooks, and optional adapters",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -29,7 +29,7 @@
29
29
  "scripts/",
30
30
  "README.md"
31
31
  ],
32
- "os": ["darwin", "linux"],
32
+ "os": ["darwin", "linux", "win32"],
33
33
  "cpu": ["arm64", "x64"],
34
34
  "mcpName": "io.github.Shangri-la-0428/thronglets"
35
35
  }
@@ -14,11 +14,15 @@ const REPO = process.env.THRONGLETS_INSTALL_REPO || "Shangri-la-0428/Thronglets"
14
14
  const PLATFORMS = {
15
15
  "darwin-arm64": {
16
16
  asset: `thronglets-mcp-darwin-arm64`,
17
- sha256: "7b0546e9381b8dc9180036afc1cbcd504068b4ac13d92f497a44945fc3faad5e",
17
+ binName: "thronglets-bin",
18
18
  },
19
19
  "linux-x64": {
20
20
  asset: `thronglets-mcp-linux-amd64`,
21
- sha256: "d02883a6eecb861de8c1328ee9f264d4eb2d17635eb8db069bdf66ea7e9f33e6",
21
+ binName: "thronglets-bin",
22
+ },
23
+ "win32-x64": {
24
+ asset: `thronglets-mcp-windows-amd64.exe`,
25
+ binName: "thronglets-bin.exe",
22
26
  },
23
27
  };
24
28
 
@@ -28,12 +32,14 @@ const target = PLATFORMS[platform];
28
32
  if (!target) {
29
33
  console.error(`Unsupported platform: ${platform}`);
30
34
  console.error(`Supported: ${Object.keys(PLATFORMS).join(", ")}`);
31
- console.error("You can install from source: cargo install thronglets");
35
+ console.error(
36
+ "Install from an official release binary. Source builds are for Thronglets development only."
37
+ );
32
38
  process.exit(1);
33
39
  }
34
40
 
35
41
  const binDir = path.join(__dirname, "..", "bin");
36
- const binPath = path.join(binDir, "thronglets-bin");
42
+ const binPath = path.join(binDir, target.binName);
37
43
  const url = `https://github.com/${REPO}/releases/download/v${VERSION}/${target.asset}`;
38
44
 
39
45
  function download(url, dest) {
@@ -72,7 +78,9 @@ async function main() {
72
78
  console.log("Thronglets installed successfully.");
73
79
  } catch (err) {
74
80
  console.error(`Failed to download: ${err.message}`);
75
- console.error("You can install from source: cargo install thronglets");
81
+ console.error(
82
+ "Download a matching release asset or see the README for the supported prebuilt install paths."
83
+ );
76
84
  process.exit(1);
77
85
  }
78
86
  }