refactor(auto-reply): hide local reply types · openclaw/openclaw@1380a9e
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -75,7 +75,7 @@ export function formatModelOverrideResetEvent(params: {
|
75 | 75 | return `Model override not allowed for this agent; reverted to ${params.initialModelLabel}.`; |
76 | 76 | } |
77 | 77 | |
78 | | -export type ApplyDirectiveResult = |
| 78 | +type ApplyDirectiveResult = |
79 | 79 | | { kind: "reply"; reply: ReplyPayload | ReplyPayload[] | undefined } |
80 | 80 | | { |
81 | 81 | kind: "continue"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -105,7 +105,7 @@ function resolveDirectiveCommandText(params: { ctx: MsgContext; sessionCtx: Temp
|
105 | 105 | }; |
106 | 106 | } |
107 | 107 | |
108 | | -export type ReplyDirectiveContinuation = { |
| 108 | +type ReplyDirectiveContinuation = { |
109 | 109 | commandSource: string; |
110 | 110 | command: ReturnType<typeof buildCommandContext>; |
111 | 111 | allowTextCommands: boolean; |
@@ -145,7 +145,7 @@ export type ReplyDirectiveContinuation = {
|
145 | 145 | }; |
146 | 146 | }; |
147 | 147 | |
148 | | -export type ReplyDirectiveResult = |
| 148 | +type ReplyDirectiveResult = |
149 | 149 | | { kind: "reply"; reply: ReplyPayload | ReplyPayload[] | undefined } |
150 | 150 | | { kind: "continue"; result: ReplyDirectiveContinuation }; |
151 | 151 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -130,7 +130,7 @@ function isMentionOnlyResidualText(text: string, wasMentioned: boolean | undefin
|
130 | 130 | } |
131 | 131 | |
132 | 132 | /** Result of attempting to handle an inbound message as an inline action. */ |
133 | | -export type InlineActionResult = |
| 133 | +type InlineActionResult = |
134 | 134 | | { kind: "reply"; reply: ReplyPayload | ReplyPayload[] | undefined } |
135 | 135 | | { |
136 | 136 | kind: "continue"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import type { ActiveRunQueueAction } from "./queue-policy.js";
|
5 | 5 | import type { QueueSettings } from "./queue.js"; |
6 | 6 | |
7 | 7 | /** Snapshot of the active reply run state used by queue admission. */ |
8 | | -export type ReplyRunQueueBusyState = { |
| 8 | +type ReplyRunQueueBusyState = { |
9 | 9 | activeSessionId: string | undefined; |
10 | 10 | isActive: boolean; |
11 | 11 | isStreaming: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@
|
2 | 2 | const DEFAULT_PENDING_TOOL_DRAIN_IDLE_TIMEOUT_MS = 30_000; |
3 | 3 | |
4 | 4 | /** Result from waiting for pending tool tasks before final delivery. */ |
5 | | -export type PendingToolTaskDrainResult = |
| 5 | +type PendingToolTaskDrainResult = |
6 | 6 | | { kind: "settled" } |
7 | 7 | | { kind: "timeout"; remaining: number }; |
8 | 8 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ import { parseReplyDirectives } from "./reply-directives.js";
|
10 | 10 | import { applyReplyTagsToPayload, isRenderablePayload } from "./reply-payloads.js"; |
11 | 11 | import type { TypingSignaler } from "./typing-mode.js"; |
12 | 12 | |
13 | | -export type ReplyDirectiveParseMode = "always" | "auto" | "never"; |
| 13 | +type ReplyDirectiveParseMode = "always" | "auto" | "never"; |
14 | 14 | |
15 | 15 | /** Parses inline reply directives into payload fields and silent-reply state. */ |
16 | 16 | export function normalizeReplyPayloadDirectives(params: { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ export type ReplyDirectiveParseResult = {
|
16 | 16 | }; |
17 | 17 | |
18 | 18 | /** Options for extracting reply directives from model text. */ |
19 | | -export type ReplyDirectiveParseOptions = { |
| 19 | +type ReplyDirectiveParseOptions = { |
20 | 20 | currentMessageId?: string; |
21 | 21 | silentToken?: string; |
22 | 22 | extractMarkdownImages?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { normalizeOptionalString } from "@openclaw/normalization-core/string-coe
|
3 | 3 | import type { ReplyToMode } from "../../config/types.js"; |
4 | 4 | |
5 | 5 | /** Stateful planner for reply-to ids across one delivery flow. */ |
6 | | -export type ReplyReferencePlanner = { |
| 6 | +type ReplyReferencePlanner = { |
7 | 7 | /** Returns the effective reply/thread id for the next send without updating state. */ |
8 | 8 | peek(): string | undefined; |
9 | 9 | /** Returns the effective reply/thread id for the next send and updates state. */ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,7 @@ function replyDeliverySourceMatchesRoute(params: {
|
62 | 62 | ); |
63 | 63 | } |
64 | 64 | |
65 | | -export type RouteReplyParams = { |
| 65 | +type RouteReplyParams = { |
66 | 66 | /** The reply payload to send. */ |
67 | 67 | payload: ReplyPayload; |
68 | 68 | /** The originating channel type. */ |
@@ -105,7 +105,7 @@ export type RouteReplyParams = {
|
105 | 105 | runId?: string; |
106 | 106 | }; |
107 | 107 | |
108 | | -export type RouteReplyResult = { |
| 108 | +type RouteReplyResult = { |
109 | 109 | /** Whether the reply was sent successfully. */ |
110 | 110 | ok: boolean; |
111 | 111 | /** True when a hook intentionally suppressed provider delivery. */ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ import type {
|
8 | 8 | } from "../../plugins/hook-types.js"; |
9 | 9 | |
10 | 10 | /** Session identity attached to plugin session hook payloads. */ |
11 | | -export type SessionHookContext = { |
| 11 | +type SessionHookContext = { |
12 | 12 | sessionId: string; |
13 | 13 | sessionKey: string; |
14 | 14 | agentId: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。