refactor(agents): hide message merge helper types · openclaw/openclaw@94e79a0
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
src/agents/embedded-agent-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,14 +5,14 @@ import { mergeOrphanedTrailingUserPrompt } from "./attempt.prompt-helpers.js";
|
5 | 5 | import type { EmbeddedRunAttemptParams } from "./types.js"; |
6 | 6 | |
7 | 7 | /** Inputs required to reconcile an active session leaf with the prompt about to be sent. */ |
8 | | -export type OrphanedTrailingUserPromptMergeParams = { |
| 8 | +type OrphanedTrailingUserPromptMergeParams = { |
9 | 9 | prompt: string; |
10 | 10 | trigger: EmbeddedRunAttemptParams["trigger"]; |
11 | 11 | leafMessage: { content?: unknown }; |
12 | 12 | }; |
13 | 13 | |
14 | 14 | /** Result of merging or dropping a trailing user leaf before provider submission. */ |
15 | | -export type OrphanedTrailingUserPromptMergeResult = { |
| 15 | +type OrphanedTrailingUserPromptMergeResult = { |
16 | 16 | prompt: string; |
17 | 17 | merged: boolean; |
18 | 18 | /** |
@@ -24,7 +24,7 @@ export type OrphanedTrailingUserPromptMergeResult = {
|
24 | 24 | }; |
25 | 25 | |
26 | 26 | /** Registry id for the transcript message merge behavior currently supported by embedded runs. */ |
27 | | -export type MessageMergeStrategyId = "orphan-trailing-user-prompt"; |
| 27 | +type MessageMergeStrategyId = "orphan-trailing-user-prompt"; |
28 | 28 | |
29 | 29 | /** Strategy seam for tests and future runtime variants that alter prompt/leaf reconciliation. */ |
30 | 30 | export type MessageMergeStrategy = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。