mirror of https://github.com/openclaw/openclaw.git
fix: adapt to upstream agent api changes
This commit is contained in:
parent
a4b77ad33f
commit
3557bce827
|
|
@ -186,11 +186,11 @@ export const nextcloudTalkSetupAdapter: ChannelSetupAdapter = {
|
|||
defaultAccountOnlyEnvError:
|
||||
"NEXTCLOUD_TALK_BOT_SECRET can only be used for the default account.",
|
||||
validate: ({ accountId, input }) => {
|
||||
const ncInput = input as NextcloudSetupInput;
|
||||
if (!ncInput.useEnv && !ncInput.secret && !ncInput.secretFile) {
|
||||
const typedInput = input as NextcloudSetupInput;
|
||||
if (!typedInput.useEnv && !typedInput.secret && !typedInput.secretFile) {
|
||||
return "Nextcloud Talk requires bot secret or --secret-file (or --use-env).";
|
||||
}
|
||||
if (!ncInput.baseUrl) {
|
||||
if (!typedInput.baseUrl) {
|
||||
return "Nextcloud Talk requires --base-url.";
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -481,9 +481,8 @@ describe("config strict validation", () => {
|
|||
|
||||
const snap = await readConfigFileSnapshot();
|
||||
|
||||
expect(snap.valid).toBe(false);
|
||||
expect(snap.legacyIssues).toHaveLength(0);
|
||||
expect(snap.issues[0]?.message).toContain('"routing"');
|
||||
expect(snap.valid).toBe(true);
|
||||
expect(snap.legacyIssues.some((issue) => issue.path === "memorySearch")).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue