mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:20:43 +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,
|
configPath,
|
||||||
`${JSON.stringify(
|
`${JSON.stringify(
|
||||||
{
|
{
|
||||||
|
plugins: {
|
||||||
|
allow: ["matrix"],
|
||||||
|
entries: {
|
||||||
|
matrix: { enabled: true },
|
||||||
|
},
|
||||||
|
},
|
||||||
channels: {
|
channels: {
|
||||||
matrix: {
|
matrix: {
|
||||||
defaultAccount: params.accountId,
|
defaultAccount: params.accountId,
|
||||||
|
|||||||
@@ -413,6 +413,12 @@ async function createMatrixQaCliSelfVerificationRuntime(params: {
|
|||||||
configPath,
|
configPath,
|
||||||
`${JSON.stringify(
|
`${JSON.stringify(
|
||||||
{
|
{
|
||||||
|
plugins: {
|
||||||
|
allow: ["matrix"],
|
||||||
|
entries: {
|
||||||
|
matrix: { enabled: true },
|
||||||
|
},
|
||||||
|
},
|
||||||
channels: {
|
channels: {
|
||||||
matrix: {
|
matrix: {
|
||||||
defaultAccount: params.accountId,
|
defaultAccount: params.accountId,
|
||||||
|
|||||||
@@ -3047,8 +3047,16 @@ describe("matrix live qa scenarios", () => {
|
|||||||
accounts?: Record<string, Record<string, unknown>>;
|
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(" ");
|
const joined = args.join(" ");
|
||||||
if (joined === "matrix verify status --account cli --json") {
|
if (joined === "matrix verify status --account cli --json") {
|
||||||
@@ -3155,6 +3163,8 @@ describe("matrix live qa scenarios", () => {
|
|||||||
deviceId: "CLIDEVICE",
|
deviceId: "CLIDEVICE",
|
||||||
encryption: true,
|
encryption: true,
|
||||||
homeserver: "http://127.0.0.1:28008/",
|
homeserver: "http://127.0.0.1:28008/",
|
||||||
|
pluginAllow: expect.arrayContaining(["matrix"]),
|
||||||
|
pluginEnabled: true,
|
||||||
startupVerification: "off",
|
startupVerification: "off",
|
||||||
userId: "@driver:matrix-qa.test",
|
userId: "@driver:matrix-qa.test",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user