refactor(infra): hide local helper types · openclaw/openclaw@a0a0e5e
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
14 | 14 | import { DEFAULT_ACCOUNT_ID } from "../routing/session-key.js"; |
15 | 15 | import { formatTimeAgo } from "./format-time/format-relative.ts"; |
16 | 16 | |
17 | | -export type ChannelSummaryOptions = { |
| 17 | +type ChannelSummaryOptions = { |
18 | 18 | colorize?: boolean; |
19 | 19 | includeAllowFrom?: boolean; |
20 | 20 | plugins?: readonly ChannelPlugin[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ export function resolveControlUiDistIndexPathForRoot(root: string): string {
|
13 | 13 | return path.join(root, ...CONTROL_UI_DIST_PATH_SEGMENTS); |
14 | 14 | } |
15 | 15 | |
16 | | -export type ControlUiDistIndexHealth = { |
| 16 | +type ControlUiDistIndexHealth = { |
17 | 17 | indexPath: string | null; |
18 | 18 | exists: boolean; |
19 | 19 | }; |
@@ -140,7 +140,7 @@ export async function resolveControlUiDistIndexPath(
|
140 | 140 | return null; |
141 | 141 | } |
142 | 142 | |
143 | | -export type ControlUiRootResolveOptions = { |
| 143 | +type ControlUiRootResolveOptions = { |
144 | 144 | argv1?: string; |
145 | 145 | moduleUrl?: string; |
146 | 146 | cwd?: string; |
@@ -270,7 +270,7 @@ export function isPackageProvenControlUiRootSync(
|
270 | 270 | return pathsMatchByRealpathOrResolve(root, packageDistRoot); |
271 | 271 | } |
272 | 272 | |
273 | | -export type EnsureControlUiAssetsResult = { |
| 273 | +type EnsureControlUiAssetsResult = { |
274 | 274 | ok: boolean; |
275 | 275 | built: boolean; |
276 | 276 | message?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ import { generatePairingToken, verifyPairingToken } from "./pairing-token.js";
|
23 | 23 | export const DEVICE_BOOTSTRAP_TOKEN_TTL_MS = 10 * 60 * 1000; |
24 | 24 | |
25 | 25 | /** Persisted bootstrap token state, including binding and role/scope redemption progress. */ |
26 | | -export type DeviceBootstrapTokenRecord = { |
| 26 | +type DeviceBootstrapTokenRecord = { |
27 | 27 | token: string; |
28 | 28 | ts: number; |
29 | 29 | deviceId?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -64,7 +64,7 @@ type DiagnosticsTimelineOptions = {
|
64 | 64 | }; |
65 | 65 | |
66 | 66 | /** Active timeline span carried through async-local scope for nested diagnostics. */ |
67 | | -export type ActiveDiagnosticsTimelineSpan = { |
| 67 | +type ActiveDiagnosticsTimelineSpan = { |
68 | 68 | name: string; |
69 | 69 | phase?: string; |
70 | 70 | spanId: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | /** Context passed to fatal-error hooks before the process exits. */ |
2 | | -export type FatalErrorHookContext = { |
| 2 | +type FatalErrorHookContext = { |
3 | 3 | reason: string; |
4 | 4 | error?: unknown; |
5 | 5 | }; |
6 | 6 | |
7 | 7 | /** Hook that can return one extra diagnostic line for fatal error output. */ |
8 | | -export type FatalErrorHook = (context: FatalErrorHookContext) => string | undefined | void; |
| 8 | +type FatalErrorHook = (context: FatalErrorHookContext) => string | undefined | void; |
9 | 9 | |
10 | 10 | const hooks = new Set<FatalErrorHook>(); |
11 | 11 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。