Skip to content

Commit 387dcc6

Browse files
committed
fix: ship feishu bundled runtime dependency
1 parent eb0758e commit 387dcc6

File tree

5 files changed

+36
-16
lines changed

5 files changed

+36
-16
lines changed

docs/channels/feishu.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ Feishu (Lark) is a team chat platform used by companies for messaging and collab
1212

1313
---
1414

15-
## Plugin required
15+
## Bundled plugin
1616

17-
Install the Feishu plugin:
17+
Feishu ships bundled with current OpenClaw releases, so no separate plugin install
18+
is required.
1819

19-
```bash
20-
openclaw plugins install @openclaw/feishu
21-
```
22-
23-
Local checkout (when running from a git repo):
20+
If you are using an older build or a custom install that does not include bundled
21+
Feishu, install it manually:
2422

2523
```bash
26-
openclaw plugins install ./extensions/feishu
24+
openclaw plugins install @openclaw/feishu
2725
```
2826

2927
---

docs/zh-CN/channels/feishu.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ title: 飞书
1212

1313
---
1414

15-
## 需要插件
15+
## 内置插件
1616

17-
安装 Feishu 插件
17+
当前版本的 OpenClaw 已内置 Feishu 插件,因此通常不需要单独安装。
1818

19-
```bash
20-
openclaw plugins install @openclaw/feishu
21-
```
22-
23-
本地 checkout(在 git 仓库内运行):
19+
如果你使用的是较旧版本,或是没有内置 Feishu 的自定义安装,可手动安装:
2420

2521
```bash
26-
openclaw plugins install ./extensions/feishu
22+
openclaw plugins install @openclaw/feishu
2723
```
2824

2925
---

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@
340340
"@grammyjs/runner": "^2.0.3",
341341
"@grammyjs/transformer-throttler": "^1.2.1",
342342
"@homebridge/ciao": "^1.3.5",
343+
"@larksuiteoapi/node-sdk": "^1.59.0",
343344
"@line/bot-sdk": "^10.6.0",
344345
"@lydell/node-pty": "1.2.0-beta.3",
345346
"@mariozechner/pi-agent-core": "0.55.3",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import fs from "node:fs";
2+
import path from "node:path";
3+
import { describe, expect, it } from "vitest";
4+
5+
type PackageManifest = {
6+
dependencies?: Record<string, string>;
7+
};
8+
9+
function readJson<T>(relativePath: string): T {
10+
const absolutePath = path.resolve(process.cwd(), relativePath);
11+
return JSON.parse(fs.readFileSync(absolutePath, "utf8")) as T;
12+
}
13+
14+
describe("bundled plugin runtime dependencies", () => {
15+
it("keeps bundled Feishu runtime deps available from the published root package", () => {
16+
const rootManifest = readJson<PackageManifest>("package.json");
17+
const feishuManifest = readJson<PackageManifest>("extensions/feishu/package.json");
18+
19+
expect(feishuManifest.dependencies?.["@larksuiteoapi/node-sdk"]).toBeTruthy();
20+
expect(rootManifest.dependencies?.["@larksuiteoapi/node-sdk"]).toBeTruthy();
21+
});
22+
});

0 commit comments

Comments
 (0)