feat: add matrix channel plugin

This commit is contained in:
Peter Steinberger
2026-01-15 08:29:17 +00:00
parent f4bb5b381d
commit 725a6b71dc
51 changed files with 3986 additions and 24 deletions

View File

@@ -6,10 +6,29 @@ export type ChannelPluginCatalogEntry = {
install: {
npmSpec: string;
localPath?: string;
defaultChoice?: "npm" | "local";
};
};
const CATALOG: ChannelPluginCatalogEntry[] = [
{
id: "matrix",
meta: {
id: "matrix",
label: "Matrix",
selectionLabel: "Matrix (plugin)",
docsPath: "/channels/matrix",
docsLabel: "matrix",
blurb: "open protocol; install the plugin to enable.",
order: 70,
quickstartAllowFrom: true,
},
install: {
npmSpec: "@clawdbot/matrix",
localPath: "extensions/matrix",
defaultChoice: "npm",
},
},
{
id: "zalo",
meta: {

View File

@@ -73,7 +73,7 @@ export type ChannelOutboundContext = {
mediaUrl?: string;
gifPlayback?: boolean;
replyToId?: string | null;
threadId?: number | null;
threadId?: string | number | null;
accountId?: string | null;
deps?: OutboundSendDeps;
};

View File

@@ -31,6 +31,12 @@ export type ChannelSetupInput = {
httpHost?: string;
httpPort?: string;
useEnv?: boolean;
homeserver?: string;
userId?: string;
accessToken?: string;
password?: string;
deviceName?: string;
initialSyncLimit?: number;
};
export type ChannelStatusIssue = {
@@ -196,6 +202,7 @@ export type ChannelThreadingContext = {
To?: string;
ReplyToId?: string;
ThreadLabel?: string;
MessageThreadId?: string | number;
};
export type ChannelThreadingToolContext = {