refactor(agents): hide runner transcript types · openclaw/openclaw@074a4ef
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
src/agents/embedded-agent-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@
|
4 | 4 | import crypto from "node:crypto"; |
5 | 5 | import type { NormalizedUsage } from "../usage.js"; |
6 | 6 | |
7 | | -export type PromptCacheChangeCode = |
| 7 | +type PromptCacheChangeCode = |
8 | 8 | | "cacheRetention" |
9 | 9 | | "model" |
10 | 10 | | "streamStrategy" |
@@ -17,7 +17,7 @@ export type PromptCacheChange = {
|
17 | 17 | detail: string; |
18 | 18 | }; |
19 | 19 | |
20 | | -export type PromptCacheSnapshot = { |
| 20 | +type PromptCacheSnapshot = { |
21 | 21 | provider: string; |
22 | 22 | modelId: string; |
23 | 23 | modelApi?: string | null; |
@@ -30,7 +30,7 @@ export type PromptCacheSnapshot = {
|
30 | 30 | toolNames: string[]; |
31 | 31 | }; |
32 | 32 | |
33 | | -export type PromptCacheObservationStart = { |
| 33 | +type PromptCacheObservationStart = { |
34 | 34 | snapshot: PromptCacheSnapshot; |
35 | 35 | changes: PromptCacheChange[] | null; |
36 | 36 | previousCacheRead: number | null; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ type SessionInfoEntry = Extract<SessionEntry, { type: "session_info" }>;
|
30 | 30 | type SessionMessageEntry = Extract<SessionEntry, { type: "message" }>; |
31 | 31 | type ThinkingLevelChangeEntry = Extract<SessionEntry, { type: "thinking_level_change" }>; |
32 | 32 | |
33 | | -export type TranscriptLeafControlEntry = { |
| 33 | +type TranscriptLeafControlEntry = { |
34 | 34 | type: "leaf"; |
35 | 35 | id: string; |
36 | 36 | parentId: string | null; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。