mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:10:42 +00:00
fix(ci): restore main typecheck
This commit is contained in:
@@ -14,11 +14,7 @@ import {
|
||||
updateSessionStore,
|
||||
} from "openclaw/plugin-sdk/config-runtime";
|
||||
import type { DmPolicy } from "openclaw/plugin-sdk/config-runtime";
|
||||
import type {
|
||||
TelegramDirectConfig,
|
||||
TelegramGroupConfig,
|
||||
TelegramTopicConfig,
|
||||
} from "openclaw/plugin-sdk/config-runtime";
|
||||
import type { TelegramGroupConfig, TelegramTopicConfig } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { applyModelOverrideToSessionEntry } from "openclaw/plugin-sdk/config-runtime";
|
||||
import {
|
||||
buildPluginBindingResolvedText,
|
||||
@@ -304,7 +300,7 @@ export const registerTelegramHandlers = ({
|
||||
senderId?: string | number;
|
||||
}): {
|
||||
agentId: string;
|
||||
sessionEntry: ReturnType<typeof loadSessionStore>[string] | undefined;
|
||||
sessionEntry: ReturnType<typeof resolveSessionStoreEntry>["existing"];
|
||||
sessionKey: string;
|
||||
model?: string;
|
||||
} => {
|
||||
@@ -836,8 +832,9 @@ export const registerTelegramHandlers = ({
|
||||
// for reactions, we cannot determine if the reaction came from a topic, so block all
|
||||
// reactions if requireTopic is enabled for this DM.
|
||||
if (!isGroup) {
|
||||
const requireTopic = (eventAuthContext.groupConfig)
|
||||
?.requireTopic;
|
||||
const requireTopic = (
|
||||
eventAuthContext.groupConfig as { requireTopic?: boolean } | undefined
|
||||
)?.requireTopic;
|
||||
if (requireTopic === true) {
|
||||
logVerbose(
|
||||
`Blocked telegram reaction in DM ${chatId}: requireTopic=true but topic unknown for reactions`,
|
||||
@@ -1535,7 +1532,7 @@ export const registerTelegramHandlers = ({
|
||||
}
|
||||
return;
|
||||
}
|
||||
const models = [...modelSet].toSorted();
|
||||
const models = [...modelSet].toSorted((left, right) => left.localeCompare(right));
|
||||
const pageSize = getModelsPageSize();
|
||||
const totalPages = calculateTotalPages(models.length, pageSize);
|
||||
const safePage = Math.max(1, Math.min(page, totalPages));
|
||||
|
||||
Reference in New Issue
Block a user