mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:30:47 +00:00
fix(matrix): load channel CLI metadata for discovery
This commit is contained in:
@@ -269,6 +269,12 @@ export async function createMatrixQaOpenClawCliRuntime(params: {
|
||||
configPath,
|
||||
`${JSON.stringify(
|
||||
{
|
||||
plugins: {
|
||||
allow: ["matrix"],
|
||||
entries: {
|
||||
matrix: { enabled: true },
|
||||
},
|
||||
},
|
||||
channels: {
|
||||
matrix: {
|
||||
defaultAccount: params.accountId,
|
||||
|
||||
@@ -413,6 +413,12 @@ async function createMatrixQaCliSelfVerificationRuntime(params: {
|
||||
configPath,
|
||||
`${JSON.stringify(
|
||||
{
|
||||
plugins: {
|
||||
allow: ["matrix"],
|
||||
entries: {
|
||||
matrix: { enabled: true },
|
||||
},
|
||||
},
|
||||
channels: {
|
||||
matrix: {
|
||||
defaultAccount: params.accountId,
|
||||
|
||||
@@ -3047,8 +3047,16 @@ describe("matrix live qa scenarios", () => {
|
||||
accounts?: Record<string, Record<string, unknown>>;
|
||||
};
|
||||
};
|
||||
plugins?: {
|
||||
allow?: string[];
|
||||
entries?: Record<string, { enabled?: boolean }>;
|
||||
};
|
||||
};
|
||||
cliAccountConfigDuringRun = {
|
||||
...cliConfig.channels?.matrix?.accounts?.cli,
|
||||
pluginAllow: cliConfig.plugins?.allow,
|
||||
pluginEnabled: cliConfig.plugins?.entries?.matrix?.enabled,
|
||||
};
|
||||
cliAccountConfigDuringRun = cliConfig.channels?.matrix?.accounts?.cli ?? null;
|
||||
}
|
||||
const joined = args.join(" ");
|
||||
if (joined === "matrix verify status --account cli --json") {
|
||||
@@ -3155,6 +3163,8 @@ describe("matrix live qa scenarios", () => {
|
||||
deviceId: "CLIDEVICE",
|
||||
encryption: true,
|
||||
homeserver: "http://127.0.0.1:28008/",
|
||||
pluginAllow: expect.arrayContaining(["matrix"]),
|
||||
pluginEnabled: true,
|
||||
startupVerification: "off",
|
||||
userId: "@driver:matrix-qa.test",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user