@keychat-io/keychat 0.1.24 → 0.1.25

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/index.ts CHANGED
@@ -31,7 +31,7 @@ function downloadBinary(url: string): Promise<Buffer> {
31
31
  /** Ensure bridge binary exists, download if missing. */
32
32
  async function ensureBinary(): Promise<void> {
33
33
  const binaryDir = join(__dirname, "bridge", "target", "release");
34
- const binaryPath = join(binaryDir, "keychat-bridge");
34
+ const binaryPath = join(binaryDir, "keychat-openclaw");
35
35
 
36
36
  if (existsSync(binaryPath)) return;
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keychat-io/keychat",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Keychat — E2E encrypted chat + Lightning wallet for OpenClaw agents",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -5,7 +5,7 @@ set -e
5
5
 
6
6
  REPO="keychat-io/keychat-openclaw"
7
7
  INSTALL_DIR="${OPENCLAW_EXTENSIONS:-$HOME/.openclaw/extensions}/keychat"
8
- BINARY="$INSTALL_DIR/bridge/target/release/keychat-bridge"
8
+ BINARY="$INSTALL_DIR/bridge/target/release/keychat-openclaw"
9
9
 
10
10
  echo "🔑 Installing Keychat"
11
11
  echo ""
@@ -12,7 +12,7 @@ import https from "node:https";
12
12
  const __dirname = dirname(fileURLToPath(import.meta.url));
13
13
  const REPO = "keychat-io/keychat-openclaw";
14
14
  const BINARY_DIR = join(__dirname, "..", "bridge", "target", "release");
15
- const BINARY_PATH = join(BINARY_DIR, "keychat-bridge");
15
+ const BINARY_PATH = join(BINARY_DIR, "keychat-openclaw");
16
16
 
17
17
  import { statSync } from "node:fs";
18
18
 
@@ -29,7 +29,7 @@ const currentVersion = existsSync(versionFile)
29
29
  const pluginDir = join(__dirname, "..");
30
30
  const pluginDirName = pluginDir.split("/").pop();
31
31
  const scriptInstallDir = join(pluginDir, "..", "keychat");
32
- if (pluginDirName === "keychat-bridge" && existsSync(scriptInstallDir)) {
32
+ if (pluginDirName === "keychat-openclaw" && existsSync(scriptInstallDir)) {
33
33
  console.log(`[keychat] Removing conflicting script-installed copy...`);
34
34
  try { rmSync(scriptInstallDir, { recursive: true, force: true }); } catch {}
35
35
  }
package/scripts/setup.sh CHANGED
@@ -21,7 +21,7 @@ if [ ! -f "$PLUGIN_DIR/package.json" ]; then
21
21
  fi
22
22
 
23
23
  BINARY_DIR="$PLUGIN_DIR/bridge/target/release"
24
- BINARY_PATH="$BINARY_DIR/keychat-bridge"
24
+ BINARY_PATH="$BINARY_DIR/keychat-openclaw"
25
25
 
26
26
  # --- Download binary ---
27
27
  if [ -f "$BINARY_PATH" ]; then
@@ -101,7 +101,7 @@ export class KeychatBridgeClient {
101
101
  "bridge",
102
102
  "target",
103
103
  "release",
104
- "keychat-bridge",
104
+ "keychat-openclaw",
105
105
  );
106
106
  }
107
107
 
@@ -113,7 +113,7 @@ export class KeychatBridgeClient {
113
113
 
114
114
  if (!existsSync(this.bridgePath)) {
115
115
  throw new Error(
116
- `keychat-bridge binary not found at ${this.bridgePath}. Run 'cargo build --release' in the bridge directory.`,
116
+ `keychat-openclaw binary not found at ${this.bridgePath}. Run 'cargo build --release' in the bridge directory.`,
117
117
  );
118
118
  }
119
119
 
package/src/channel.ts CHANGED
@@ -614,7 +614,7 @@ export const keychatPlugin: ChannelPlugin<ResolvedKeychatAccount> = {
614
614
  "bridge",
615
615
  "target",
616
616
  "release",
617
- "keychat-bridge",
617
+ "keychat-openclaw",
618
618
  );
619
619
  if (!existsSync(bridgePath)) {
620
620
  issues.push({
@@ -23,7 +23,7 @@ export function getBridgePath(): string {
23
23
  "bridge",
24
24
  "target",
25
25
  "release",
26
- "keychat-bridge",
26
+ "keychat-openclaw",
27
27
  );
28
28
  }
29
29