refactor(logging): hide recovery helper types · openclaw/openclaw@2240522
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ export type RecoverStuckSession = (
|
27 | 27 | params: StuckSessionRecoveryRequest, |
28 | 28 | ) => void | StuckSessionRecoveryOutcome | Promise<void | StuckSessionRecoveryOutcome>; |
29 | 29 | |
30 | | -export type RequestStuckSessionRecoveryParams = { |
| 30 | +type RequestStuckSessionRecoveryParams = { |
31 | 31 | recover: RecoverStuckSession; |
32 | 32 | request: StuckSessionRecoveryRequest; |
33 | 33 | classification: SessionAttentionClassification; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,15 +4,15 @@ import type {
|
4 | 4 | DiagnosticSessionState, |
5 | 5 | } from "../infra/diagnostic-events.js"; |
6 | 6 | |
7 | | -export type DiagnosticSessionRecoverySkipReason = |
| 7 | +type DiagnosticSessionRecoverySkipReason = |
8 | 8 | | "active_embedded_run" |
9 | 9 | | "active_reply_work" |
10 | 10 | | "active_lane_task" |
11 | 11 | | "already_in_flight" |
12 | 12 | | "missing_session_ref" |
13 | 13 | | "stale_session_state"; |
14 | 14 | |
15 | | -export type DiagnosticSessionRecoveryNoopReason = "no_active_work"; |
| 15 | +type DiagnosticSessionRecoveryNoopReason = "no_active_work"; |
16 | 16 | |
17 | 17 | export type StuckSessionRecoveryRequest = { |
18 | 18 | sessionId?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ const STUCK_SESSION_PROGRESS_STALE_MS = 5 * 60_000;
|
34 | 34 | const recoveriesInFlight = new Set<string>(); |
35 | 35 | |
36 | 36 | /** Request parameters accepted by the stuck-session recovery runtime. */ |
37 | | -export type StuckSessionRecoveryParams = StuckSessionRecoveryRequest; |
| 37 | +type StuckSessionRecoveryParams = StuckSessionRecoveryRequest; |
38 | 38 | |
39 | 39 | function resolveStaleActiveProgressAbortMs(params: StuckSessionRecoveryParams): number { |
40 | 40 | const configured = params.staleActiveProgressAbortMs; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。