refactor(logging): hide diagnostic bundle types · openclaw/openclaw@0c6ebcd
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -112,12 +112,12 @@ export type DiagnosticStabilityBundle = {
|
112 | 112 | snapshot: DiagnosticStabilitySnapshot; |
113 | 113 | }; |
114 | 114 | |
115 | | -export type WriteDiagnosticStabilityBundleResult = |
| 115 | +type WriteDiagnosticStabilityBundleResult = |
116 | 116 | | { status: "written"; path: string; bundle: DiagnosticStabilityBundle } |
117 | 117 | | { status: "skipped"; reason: "empty" } |
118 | 118 | | { status: "failed"; error: unknown }; |
119 | 119 | |
120 | | -export type WriteDiagnosticStabilityBundleOptions = { |
| 120 | +type WriteDiagnosticStabilityBundleOptions = { |
121 | 121 | reason: string; |
122 | 122 | error?: unknown; |
123 | 123 | includeEmpty?: boolean; |
@@ -129,7 +129,7 @@ export type WriteDiagnosticStabilityBundleOptions = {
|
129 | 129 | evidence?: DiagnosticStabilityBundleEvidence; |
130 | 130 | }; |
131 | 131 | |
132 | | -export type DiagnosticStabilityBundleLocationOptions = { |
| 132 | +type DiagnosticStabilityBundleLocationOptions = { |
133 | 133 | env?: NodeJS.ProcessEnv; |
134 | 134 | stateDir?: string; |
135 | 135 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,7 @@ const SUPPORT_EXPORT_SUFFIX = ".zip";
|
42 | 42 | type Awaitable<T> = T | Promise<T>; |
43 | 43 | type SupportSnapshotReader = () => Awaitable<unknown>; |
44 | 44 | |
45 | | -export type DiagnosticSupportExportOptions = { |
| 45 | +type DiagnosticSupportExportOptions = { |
46 | 46 | outputPath?: string; |
47 | 47 | cwd?: string; |
48 | 48 | env?: NodeJS.ProcessEnv; |
@@ -56,7 +56,7 @@ export type DiagnosticSupportExportOptions = {
|
56 | 56 | readHealthSnapshot?: SupportSnapshotReader; |
57 | 57 | }; |
58 | 58 | |
59 | | -export type DiagnosticSupportExportManifest = { |
| 59 | +type DiagnosticSupportExportManifest = { |
60 | 60 | version: typeof DIAGNOSTIC_SUPPORT_EXPORT_VERSION; |
61 | 61 | generatedAt: string; |
62 | 62 | openclawVersion: string; |
@@ -72,9 +72,9 @@ export type DiagnosticSupportExportManifest = {
|
72 | 72 | }; |
73 | 73 | }; |
74 | 74 | |
75 | | -export type DiagnosticSupportExportFile = DiagnosticSupportBundleFile; |
| 75 | +type DiagnosticSupportExportFile = DiagnosticSupportBundleFile; |
76 | 76 | |
77 | | -export type DiagnosticSupportExportArtifact = { |
| 77 | +type DiagnosticSupportExportArtifact = { |
78 | 78 | manifest: DiagnosticSupportExportManifest; |
79 | 79 | files: DiagnosticSupportExportFile[]; |
80 | 80 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。