@keychat-io/keychat 0.1.23 → 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/README.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/scripts/install.sh +1 -1
- package/scripts/postinstall.mjs +2 -2
- package/scripts/setup.sh +1 -1
- package/src/bridge-client.ts +2 -2
- package/src/channel.ts +1 -1
- package/src/ensure-binary.ts +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,15 @@ Supported platforms: macOS (ARM/x64), Linux (x64/ARM64).
|
|
|
21
21
|
|
|
22
22
|
### Security Warnings
|
|
23
23
|
|
|
24
|
-
During installation, OpenClaw will show
|
|
24
|
+
During installation, OpenClaw will show the following warning:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
WARNING: Plugin "keychat" contains dangerous code patterns:
|
|
28
|
+
Shell command execution detected (child_process) (src/bridge-client.ts)
|
|
29
|
+
Shell command execution detected (child_process) (src/keychain.ts)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Both are expected and required.** Here's why:
|
|
25
33
|
|
|
26
34
|
| Warning | File | Why it's needed |
|
|
27
35
|
|---------|------|----------------|
|
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-
|
|
34
|
+
const binaryPath = join(binaryDir, "keychat-openclaw");
|
|
35
35
|
|
|
36
36
|
if (existsSync(binaryPath)) return;
|
|
37
37
|
|
package/package.json
CHANGED
package/scripts/install.sh
CHANGED
|
@@ -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-
|
|
8
|
+
BINARY="$INSTALL_DIR/bridge/target/release/keychat-openclaw"
|
|
9
9
|
|
|
10
10
|
echo "🔑 Installing Keychat"
|
|
11
11
|
echo ""
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
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
package/src/bridge-client.ts
CHANGED
|
@@ -101,7 +101,7 @@ export class KeychatBridgeClient {
|
|
|
101
101
|
"bridge",
|
|
102
102
|
"target",
|
|
103
103
|
"release",
|
|
104
|
-
"keychat-
|
|
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-
|
|
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