mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:20:43 +00:00
refactor: tighten support log tail types
This commit is contained in:
@@ -132,18 +132,24 @@ type ConfigExport = {
|
||||
sanitized?: unknown;
|
||||
};
|
||||
|
||||
type SanitizedLogTail = {
|
||||
status: "included" | "failed";
|
||||
type IncludedSanitizedLogTail = {
|
||||
status: "included";
|
||||
file: string;
|
||||
cursor: number;
|
||||
size: number;
|
||||
lineCount: number;
|
||||
truncated: boolean;
|
||||
reset: boolean;
|
||||
error?: string;
|
||||
lines: Array<Record<string, unknown>>;
|
||||
};
|
||||
|
||||
type FailedSanitizedLogTail = Omit<IncludedSanitizedLogTail, "status"> & {
|
||||
status: "failed";
|
||||
error: string;
|
||||
};
|
||||
|
||||
type SanitizedLogTail = IncludedSanitizedLogTail | FailedSanitizedLogTail;
|
||||
|
||||
type SupportSnapshotStatus =
|
||||
| {
|
||||
status: "included";
|
||||
|
||||
Reference in New Issue
Block a user