Expose Discord posting to moderation loop

This commit is contained in:
Meta Vens 2026-05-04 21:05:56 +01:00
commit 9b7e2ccbf6
6 changed files with 94 additions and 8 deletions

View file

@ -24,6 +24,12 @@ export const notifyOwnerInputSchema = {
message: z.string().min(1).max(1800),
};
export const postDiscordMessageInputSchema = {
channelId: z.string().min(1),
content: z.string().min(1).max(1800),
replyToMessageId: z.string().min(1).optional(),
};
export const searchSourcesInputSchema = {
query: z.string().min(1).max(240),
limit: z.number().int().min(1).max(MAX_RETRIEVAL_RESULT_LIMIT).optional(),
@ -57,6 +63,12 @@ export interface NotifyOwnerArgs {
message: string;
}
export interface PostDiscordMessageArgs {
channelId: string;
content: string;
replyToMessageId?: string;
}
export interface ListIndexedReposArgs {
[key: string]: never;
}