fix(release): use bundled channel in activation smoke · openclaw/openclaw@7886b62
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -329,7 +329,7 @@ function runPackedBundledPluginPostinstall(packageRoot: string): void {
|
329 | 329 | }); |
330 | 330 | } |
331 | 331 | |
332 | | -function writePackedBundledPluginActivationConfig(homeDir: string): void { |
| 332 | +export function writePackedBundledPluginActivationConfig(homeDir: string): void { |
333 | 333 | const configPath = join(homeDir, ".openclaw", "openclaw.json"); |
334 | 334 | mkdirSync(join(homeDir, ".openclaw"), { recursive: true }); |
335 | 335 | writeFileSync( |
@@ -342,7 +342,7 @@ function writePackedBundledPluginActivationConfig(homeDir: string): void {
|
342 | 342 | }, |
343 | 343 | }, |
344 | 344 | channels: { |
345 | | - feishu: { |
| 345 | + matrix: { |
346 | 346 | enabled: true, |
347 | 347 | }, |
348 | 348 | }, |
@@ -358,7 +358,7 @@ function writePackedBundledPluginActivationConfig(homeDir: string): void {
|
358 | 358 | plugins: { |
359 | 359 | enabled: true, |
360 | 360 | entries: { |
361 | | - feishu: { |
| 361 | + matrix: { |
362 | 362 | enabled: true, |
363 | 363 | }, |
364 | 364 | }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { mkdtempSync, readFileSync, rmSync } from "node:fs"; |
| 2 | +import { tmpdir } from "node:os"; |
| 3 | +import { join } from "node:path"; |
| 4 | +import { describe, expect, it } from "vitest"; |
| 5 | +import { writePackedBundledPluginActivationConfig } from "../../scripts/release-check.ts"; |
| 6 | + |
| 7 | +describe("release-check", () => { |
| 8 | +it("seeds packaged activation smoke with an included channel plugin", () => { |
| 9 | +const homeDir = mkdtempSync(join(tmpdir(), "openclaw-release-check-test-")); |
| 10 | +try { |
| 11 | +writePackedBundledPluginActivationConfig(homeDir); |
| 12 | +const config = JSON.parse( |
| 13 | +readFileSync(join(homeDir, ".openclaw", "openclaw.json"), "utf8"), |
| 14 | +) as { |
| 15 | +channels?: Record<string, unknown>; |
| 16 | +plugins?: { entries?: Record<string, unknown> }; |
| 17 | +}; |
| 18 | + |
| 19 | +expect(config.channels).toHaveProperty("matrix"); |
| 20 | +expect(config.plugins?.entries).toHaveProperty("matrix"); |
| 21 | +expect(config.channels).not.toHaveProperty("feishu"); |
| 22 | +expect(config.plugins?.entries).not.toHaveProperty("feishu"); |
| 23 | +} finally { |
| 24 | +rmSync(homeDir, { recursive: true, force: true }); |
| 25 | +} |
| 26 | +}); |
| 27 | +}); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。