refactor(gateway): hide local helper types · openclaw/openclaw@d7d4852
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ const GATEWAY_SERVICE_KIND = "gateway";
|
9 | 9 | |
10 | 10 | // Doctor/startup warning shape for shells where OPENCLAW_GATEWAY_TOKEN would |
11 | 11 | // make direct clients use a different token than the managed gateway service. |
12 | | -export type GatewayAuthTokenSourceConflict = { |
| 12 | +type GatewayAuthTokenSourceConflict = { |
13 | 13 | checkId: "gateway.env_token_overrides_config"; |
14 | 14 | title: string; |
15 | 15 | detail: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,7 @@ type ReloadRule = {
|
32 | 32 | actions?: ReloadAction[]; |
33 | 33 | }; |
34 | 34 | |
35 | | -export type ConfigReloadMetadata = { |
| 35 | +type ConfigReloadMetadata = { |
36 | 36 | kind: ReloadRule["kind"]; |
37 | 37 | }; |
38 | 38 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@
|
3 | 3 | import type { GatewayReloadMode } from "../config/types.gateway.js"; |
4 | 4 | import type { OpenClawConfig } from "../config/types.openclaw.js"; |
5 | 5 | |
6 | | -export type GatewayReloadSettings = { |
| 6 | +type GatewayReloadSettings = { |
7 | 7 | mode: GatewayReloadMode; |
8 | 8 | debounceMs: number; |
9 | 9 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ export type CachedModelPricing = {
|
22 | 22 | tieredPricing?: CachedPricingTier[]; |
23 | 23 | }; |
24 | 24 | |
25 | | -export type GatewayModelPricingHealthSource = "openrouter" | "litellm" | "bootstrap" | "refresh"; |
| 25 | +type GatewayModelPricingHealthSource = "openrouter" | "litellm" | "bootstrap" | "refresh"; |
26 | 26 | |
27 | 27 | export type GatewayModelPricingHealth = { |
28 | 28 | state: "ok" | "degraded" | "disabled"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ import {
|
21 | 21 | // Node connect reconciliation turns declared caps/commands/permissions into the |
22 | 22 | // effective runtime surface. New or upgraded surfaces create a pending pairing |
23 | 23 | // request while already-approved surfaces are intersected with the declaration. |
24 | | -export type NodeConnectPairingReconcileResult = { |
| 24 | +type NodeConnectPairingReconcileResult = { |
25 | 25 | nodeId: string; |
26 | 26 | declaredCaps: string[]; |
27 | 27 | effectiveCaps: string[]; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。