@colinlu50/openclaw-lark-stream 2026.3.28 → 2026.3.29
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/openclaw-lark.js +5 -3
- package/package.json +1 -1
package/bin/openclaw-lark.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { execFileSync } from "node:child_process";
|
|
3
|
+
import { execFileSync, execSync } from "node:child_process";
|
|
4
4
|
import { existsSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
@@ -42,13 +42,15 @@ if (subcommand === "install" || subcommand === "update") {
|
|
|
42
42
|
cleanConfigReferences("openclaw-lark");
|
|
43
43
|
|
|
44
44
|
console.log(`\nInstalling ${SELF_PACKAGE}...`);
|
|
45
|
-
|
|
45
|
+
// Use execSync with shell so that .cmd shims are resolved on Windows
|
|
46
|
+
execSync(`openclaw plugins install ${SELF_PACKAGE}`, {
|
|
46
47
|
stdio: "inherit",
|
|
47
48
|
});
|
|
48
49
|
console.log(`\n✅ ${SELF_PACKAGE} installed successfully.`);
|
|
49
50
|
console.log("Run: openclaw gateway restart");
|
|
50
51
|
} catch (error) {
|
|
51
|
-
console.error(`\n❌ Failed to install ${SELF_PACKAGE}
|
|
52
|
+
console.error(`\n❌ Failed to install ${SELF_PACKAGE}.`);
|
|
53
|
+
console.error(error.message || error);
|
|
52
54
|
console.error("You can retry with: openclaw plugins install " + SELF_PACKAGE);
|
|
53
55
|
process.exit(error.status ?? 1);
|
|
54
56
|
}
|