From fa83010b17bb0cc52273b555040b731a29eede91 Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Sun, 8 Mar 2026 10:36:41 -0500 Subject: [PATCH] fix(plugins): ship Feishu bundled runtime dependency (#39990) * fix: ship feishu bundled runtime dependency * test: align feishu bundled dependency specs --- docs/channels/feishu.md | 14 ++++++------- docs/zh-CN/channels/feishu.md | 12 ++++-------- src/plugins/bundled-runtime-deps.test.ts | 25 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 16 deletions(-) create mode 100644 src/plugins/bundled-runtime-deps.test.ts diff --git a/docs/channels/feishu.md b/docs/channels/feishu.md index 3158599aa86..67e4fd60379 100644 --- a/docs/channels/feishu.md +++ b/docs/channels/feishu.md @@ -12,20 +12,18 @@ Feishu (Lark) is a team chat platform used by companies for messaging and collab --- -## Plugin required +## Bundled plugin -Install the Feishu plugin: +Feishu ships bundled with current OpenClaw releases, so no separate plugin install +is required. + +If you are using an older build or a custom install that does not include bundled +Feishu, install it manually: ```bash openclaw plugins install @openclaw/feishu ``` -Local checkout (when running from a git repo): - -```bash -openclaw plugins install ./extensions/feishu -``` - --- ## Quickstart diff --git a/docs/zh-CN/channels/feishu.md b/docs/zh-CN/channels/feishu.md index 4cc8b578a6a..7a1c198733c 100644 --- a/docs/zh-CN/channels/feishu.md +++ b/docs/zh-CN/channels/feishu.md @@ -12,20 +12,16 @@ title: 飞书 --- -## 需要插件 +## 内置插件 -安装 Feishu 插件: +当前版本的 OpenClaw 已内置 Feishu 插件,因此通常不需要单独安装。 + +如果你使用的是较旧版本,或是没有内置 Feishu 的自定义安装,可手动安装: ```bash openclaw plugins install @openclaw/feishu ``` -本地 checkout(在 git 仓库内运行): - -```bash -openclaw plugins install ./extensions/feishu -``` - --- ## 快速开始 diff --git a/src/plugins/bundled-runtime-deps.test.ts b/src/plugins/bundled-runtime-deps.test.ts new file mode 100644 index 00000000000..027651c5a07 --- /dev/null +++ b/src/plugins/bundled-runtime-deps.test.ts @@ -0,0 +1,25 @@ +import fs from "node:fs"; +import path from "node:path"; +import { describe, expect, it } from "vitest"; + +type PackageManifest = { + dependencies?: Record; +}; + +function readJson(relativePath: string): T { + const absolutePath = path.resolve(process.cwd(), relativePath); + return JSON.parse(fs.readFileSync(absolutePath, "utf8")) as T; +} + +describe("bundled plugin runtime dependencies", () => { + it("keeps bundled Feishu runtime deps available from the published root package", () => { + const rootManifest = readJson("package.json"); + const feishuManifest = readJson("extensions/feishu/package.json"); + const feishuSpec = feishuManifest.dependencies?.["@larksuiteoapi/node-sdk"]; + const rootSpec = rootManifest.dependencies?.["@larksuiteoapi/node-sdk"]; + + expect(feishuSpec).toBeTruthy(); + expect(rootSpec).toBeTruthy(); + expect(rootSpec).toBe(feishuSpec); + }); +});