refactor(auto-reply): hide delivery helper types · openclaw/openclaw@cda11ce
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import type { ReplyPayload } from "../types.js";
|
5 | 5 | import type { BlockStreamingCoalescing } from "./block-streaming.js"; |
6 | 6 | |
7 | 7 | /** Coalesces many streaming reply fragments into fewer outbound payloads. */ |
8 | | -export type BlockReplyCoalescer = { |
| 8 | +type BlockReplyCoalescer = { |
9 | 9 | enqueue: (payload: ReplyPayload) => void; |
10 | 10 | flush: (options?: { force?: boolean }) => Promise<void>; |
11 | 11 | hasBuffered: () => boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ export type BlockReplyPipeline = {
|
23 | 23 | }; |
24 | 24 | |
25 | 25 | /** Optional buffering strategy used before payloads enter block delivery. */ |
26 | | -export type BlockReplyBuffer = { |
| 26 | +type BlockReplyBuffer = { |
27 | 27 | shouldBuffer: (payload: ReplyPayload) => boolean; |
28 | 28 | onEnqueue?: (payload: ReplyPayload) => void; |
29 | 29 | finalize?: (payload: ReplyPayload) => ReplyPayload; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -82,7 +82,7 @@ export type BlockStreamingCoalescing = {
|
82 | 82 | flushOnEnqueue?: boolean; |
83 | 83 | }; |
84 | 84 | |
85 | | -export type BlockStreamingChunking = { |
| 85 | +type BlockStreamingChunking = { |
86 | 86 | minChars: number; |
87 | 87 | maxChars: number; |
88 | 88 | breakPreference: "paragraph" | "newline" | "sentence"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,9 +5,9 @@ import { deriveSessionChatTypeFromKey } from "../../sessions/session-chat-type-s
|
5 | 5 | import type { DeliveryContext } from "../../utils/delivery-context.types.js"; |
6 | 6 | import { resolveSourceReplyDeliveryMode } from "./source-reply-delivery-mode.js"; |
7 | 7 | |
8 | | -export type CompletionChatType = ChatType | "unknown"; |
| 8 | +type CompletionChatType = ChatType | "unknown"; |
9 | 9 | |
10 | | -export type CompletionDeliverySessionEntry = { |
| 10 | +type CompletionDeliverySessionEntry = { |
11 | 11 | chatType?: string | null; |
12 | 12 | origin?: { chatType?: string | null } | null; |
13 | 13 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。