mirror of https://github.com/openclaw/openclaw.git
chore: Fix types after ChatType changes.
This commit is contained in:
parent
5c2cb6c591
commit
49fb8f74e4
|
|
@ -6,12 +6,7 @@ import {
|
|||
DEFAULT_GROUP_HISTORY_LIMIT,
|
||||
type HistoryEntry,
|
||||
} from "openclaw/plugin-sdk";
|
||||
import type {
|
||||
FeishuConfig,
|
||||
FeishuMessageContext,
|
||||
FeishuMediaInfo,
|
||||
ResolvedFeishuAccount,
|
||||
} from "./types.js";
|
||||
import type { FeishuMessageContext, FeishuMediaInfo, ResolvedFeishuAccount } from "./types.js";
|
||||
import type { DynamicAgentCreationConfig } from "./types.js";
|
||||
import { resolveFeishuAccount } from "./accounts.js";
|
||||
import { createFeishuClient } from "./client.js";
|
||||
|
|
@ -716,7 +711,7 @@ export async function handleFeishuMessage(params: {
|
|||
cfg: result.updatedCfg,
|
||||
channel: "feishu",
|
||||
accountId: account.accountId,
|
||||
peer: { kind: "dm", id: ctx.senderOpenId },
|
||||
peer: { kind: "direct", id: ctx.senderOpenId },
|
||||
});
|
||||
log(
|
||||
`feishu[${account.accountId}]: dynamic agent created, new route: ${route.sessionKey}`,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export async function maybeCreateDynamicAgent(params: {
|
|||
const hasBinding = existingBindings.some(
|
||||
(b) =>
|
||||
b.match?.channel === "feishu" &&
|
||||
b.match?.peer?.kind === "dm" &&
|
||||
b.match?.peer?.kind === "direct" &&
|
||||
b.match?.peer?.id === senderOpenId,
|
||||
);
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ export async function maybeCreateDynamicAgent(params: {
|
|||
agentId,
|
||||
match: {
|
||||
channel: "feishu",
|
||||
peer: { kind: "dm", id: senderOpenId },
|
||||
peer: { kind: "direct", id: senderOpenId },
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
@ -108,7 +108,7 @@ export async function maybeCreateDynamicAgent(params: {
|
|||
agentId,
|
||||
match: {
|
||||
channel: "feishu",
|
||||
peer: { kind: "dm", id: senderOpenId },
|
||||
peer: { kind: "direct", id: senderOpenId },
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue