refactor(agents): hide runner guard types · openclaw/openclaw@31b69a1
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 |
|---|
@@ -14,13 +14,13 @@ const log = createSubsystemLogger("agents/post-compaction-guard");
|
14 | 14 | |
15 | 15 | const DEFAULT_WINDOW_SIZE = 3; |
16 | 16 | |
17 | | -export type PostCompactionGuardObservation = { |
| 17 | +type PostCompactionGuardObservation = { |
18 | 18 | toolName: string; |
19 | 19 | argsHash: string; |
20 | 20 | resultHash: string; |
21 | 21 | }; |
22 | 22 | |
23 | | -export type PostCompactionGuardVerdict = |
| 23 | +type PostCompactionGuardVerdict = |
24 | 24 | | { shouldAbort: false; armed: boolean; remainingAttempts: number } |
25 | 25 | | { |
26 | 26 | shouldAbort: true; |
@@ -32,7 +32,7 @@ export type PostCompactionGuardVerdict =
|
32 | 32 | message: string; |
33 | 33 | }; |
34 | 34 | |
35 | | -export type PostCompactionLoopGuard = { |
| 35 | +type PostCompactionLoopGuard = { |
36 | 36 | armPostCompaction: () => void; |
37 | 37 | observe: (call: PostCompactionGuardObservation) => PostCompactionGuardVerdict; |
38 | 38 | snapshot: () => { armed: boolean; remainingAttempts: number }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ function resolveSessionManagerCachePruneInterval(ttlMs: number): number {
|
27 | 27 | ); |
28 | 28 | } |
29 | 29 | |
30 | | -export type SessionManagerCache = { |
| 30 | +type SessionManagerCache = { |
31 | 31 | clear: () => void; |
32 | 32 | isSessionManagerCached: (sessionFile: string) => boolean; |
33 | 33 | keys: () => string[]; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。