feat: wire channel mode runtime config and docs

This commit is contained in:
zhi
2026-04-02 04:48:20 +00:00
parent 8073c33f2c
commit d44204fabf
9 changed files with 60 additions and 20 deletions

View File

@@ -12,6 +12,12 @@ export type DirigentConfig = {
schedulingIdentifier?: string;
/** Wait identifier: agent ends with this when waiting for a human reply (default: 👤) */
waitIdentifier?: string;
/** Human-visible marker that enters multi-message mode for a channel (default: ↗️) */
multiMessageStartMarker?: string;
/** Human-visible marker that exits multi-message mode for a channel (default: ↙️) */
multiMessageEndMarker?: string;
/** Moderator marker sent after each human message while multi-message mode is active (default: ⤵️) */
multiMessagePromptMarker?: string;
noReplyProvider: string;
noReplyModel: string;
noReplyPort?: number;
@@ -19,6 +25,14 @@ export type DirigentConfig = {
moderatorBotToken?: string;
};
export type ChannelRuntimeMode = "normal" | "multi-message";
export type ChannelRuntimeState = {
mode: ChannelRuntimeMode;
shuffling: boolean;
lastShuffledAt?: number;
};
export type ChannelPolicy = {
listMode?: "human-list" | "agent-list";
humanList?: string[];