refactor(auto-reply): hide delivery helper types

This commit is contained in:
Vincent Koc
2026-06-17 13:04:38 +08:00
parent 20ef410d64
commit cda11ced07
4 changed files with 5 additions and 5 deletions
@@ -5,7 +5,7 @@ import type { ReplyPayload } from "../types.js";
import type { BlockStreamingCoalescing } from "./block-streaming.js";
/** Coalesces many streaming reply fragments into fewer outbound payloads. */
export type BlockReplyCoalescer = {
type BlockReplyCoalescer = {
enqueue: (payload: ReplyPayload) => void;
flush: (options?: { force?: boolean }) => Promise<void>;
hasBuffered: () => boolean;
+1 -1
View File
@@ -23,7 +23,7 @@ export type BlockReplyPipeline = {
};
/** Optional buffering strategy used before payloads enter block delivery. */
export type BlockReplyBuffer = {
type BlockReplyBuffer = {
shouldBuffer: (payload: ReplyPayload) => boolean;
onEnqueue?: (payload: ReplyPayload) => void;
finalize?: (payload: ReplyPayload) => ReplyPayload;
+1 -1
View File
@@ -82,7 +82,7 @@ export type BlockStreamingCoalescing = {
flushOnEnqueue?: boolean;
};
export type BlockStreamingChunking = {
type BlockStreamingChunking = {
minChars: number;
maxChars: number;
breakPreference: "paragraph" | "newline" | "sentence";
@@ -5,9 +5,9 @@ import { deriveSessionChatTypeFromKey } from "../../sessions/session-chat-type-s
import type { DeliveryContext } from "../../utils/delivery-context.types.js";
import { resolveSourceReplyDeliveryMode } from "./source-reply-delivery-mode.js";
export type CompletionChatType = ChatType | "unknown";
type CompletionChatType = ChatType | "unknown";
export type CompletionDeliverySessionEntry = {
type CompletionDeliverySessionEntry = {
chatType?: string | null;
origin?: { chatType?: string | null } | null;
};