mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 18:32:54 +00:00
Summary:
- add plugin-state runtime SDK subpaths backed by the existing sidecar DB
- migrate Discord model-picker preferences and Feishu dedup state to plugin-state keyed stores
- wire doctor legacy-state migration imports, including TTL preservation, for existing plugin JSON state
Verification:
- pnpm plugin-sdk:api:check
- focused plugin-state, doctor, Discord, Feishu, and package-boundary Vitest suites
- git diff --check origin/main...HEAD
- env -u OPENCLAW_TESTBOX pnpm check:changed
- autoreview --mode branch --base origin/main
- GitHub Actions PR checks green on 1025c2b570
22 lines
766 B
TypeScript
22 lines
766 B
TypeScript
import { afterAll, describe, expect, it, vi } from "vitest";
|
|
|
|
vi.mock("@larksuiteoapi/node-sdk", () => {
|
|
throw new Error("setup entry must not load the Feishu SDK");
|
|
});
|
|
|
|
describe("feishu setup entry", () => {
|
|
afterAll(() => {
|
|
vi.doUnmock("@larksuiteoapi/node-sdk");
|
|
vi.resetModules();
|
|
});
|
|
|
|
it("declares the setup entry without importing Feishu runtime dependencies", async () => {
|
|
const { default: setupEntry } = await import("./setup-entry.js");
|
|
|
|
expect(setupEntry.kind).toBe("bundled-channel-setup-entry");
|
|
expect(setupEntry.features).toEqual({ legacyStateMigrations: true });
|
|
expect(typeof setupEntry.loadSetupPlugin).toBe("function");
|
|
expect(setupEntry.loadLegacyStateMigrationDetector?.()).toBeTypeOf("function");
|
|
});
|
|
});
|