From dcc3d8af0e6704c2a71fd20770cd70e48ccb9942 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sun, 28 Jun 2026 21:51:35 +0900 Subject: [PATCH] feat: add base channel --- src/channel/base.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/channel/base.ts diff --git a/src/channel/base.ts b/src/channel/base.ts new file mode 100644 index 0000000..2a6036a --- /dev/null +++ b/src/channel/base.ts @@ -0,0 +1,11 @@ +import type { Brain } from "@/brain"; +import type { AvailabilityStatus } from "@/openrouter/schema"; + +export interface BaseChannel { + readonly brain: Brain; + + init(): Promise; + + send(text: string, opts?: { replyTo?: string }): Promise; + setAvailability(status: AvailabilityStatus): Promise; +}