mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:10:42 +00:00
fix(ci): repair main type and lint failures
This commit is contained in:
@@ -604,6 +604,9 @@ function buildInstalledPluginIndex(
|
||||
if (record.enabledByDefault === true) {
|
||||
indexRecord.enabledByDefault = true;
|
||||
}
|
||||
if (record.syntheticAuthRefs && record.syntheticAuthRefs.length > 0) {
|
||||
indexRecord.syntheticAuthRefs = record.syntheticAuthRefs;
|
||||
}
|
||||
if (record.setupSource) {
|
||||
indexRecord.setupSource = record.setupSource;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,22 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
type SyntheticAuthRegistrySnapshotResult = {
|
||||
source: "persisted" | "provided" | "derived";
|
||||
snapshot: {
|
||||
plugins: Array<{ syntheticAuthRefs?: string[] }>;
|
||||
};
|
||||
diagnostics: [];
|
||||
};
|
||||
|
||||
const getPluginRegistryState = vi.hoisted(() => vi.fn());
|
||||
const pluginRegistryMocks = vi.hoisted(() => ({
|
||||
loadPluginRegistrySnapshotWithMetadata: vi.fn((_params?: unknown) => ({
|
||||
source: "persisted",
|
||||
snapshot: { plugins: [] },
|
||||
diagnostics: [],
|
||||
})),
|
||||
loadPluginRegistrySnapshotWithMetadata: vi.fn(
|
||||
(_params?: unknown): SyntheticAuthRegistrySnapshotResult => ({
|
||||
source: "persisted",
|
||||
snapshot: { plugins: [] },
|
||||
diagnostics: [],
|
||||
}),
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock("./runtime-state.js", () => ({
|
||||
|
||||
Reference in New Issue
Block a user