

























@@ -2,6 +2,7 @@ import fs from "node:fs";
22import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
33import { describe, expect, it } from "vitest";
44import { validateJsonSchemaValue } from "../../../src/plugins/schema-validator.js";
5+import type { JsonSchemaObject } from "../../../src/shared/json-schema.types.js";
56import { qqbotSetupAdapterShared } from "./bridge/config-shared.js";
67import {
78DEFAULT_ACCOUNT_ID,
@@ -16,7 +17,7 @@ describe("qqbot config", () => {
1617it("accepts top-level speech overrides in the manifest schema", () => {
1718const manifest = JSON.parse(
1819fs.readFileSync(new URL("../openclaw.plugin.json", import.meta.url), "utf-8"),
19-) as { configSchema: Record<string, unknown> };
20+) as { configSchema: JsonSchemaObject };
20212122const result = validateJsonSchemaValue({
2223schema: manifest.configSchema,
@@ -37,7 +38,7 @@ describe("qqbot config", () => {
3738it("accepts defaultAccount in the manifest schema", () => {
3839const manifest = JSON.parse(
3940fs.readFileSync(new URL("../openclaw.plugin.json", import.meta.url), "utf-8"),
40-) as { configSchema: Record<string, unknown> };
41+) as { configSchema: JsonSchemaObject };
41424243const result = validateJsonSchemaValue({
4344schema: manifest.configSchema,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。