chore(deadcode): dedupe plugin lookup table types · openclaw/openclaw@9750d88
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,33 +10,18 @@ import {
|
10 | 10 | isPluginMetadataSnapshotCompatible, |
11 | 11 | resolvePluginMetadataSnapshot, |
12 | 12 | type PluginMetadataSnapshot, |
13 | | -type PluginMetadataSnapshotOwnerMaps, |
14 | 13 | } from "./plugin-metadata-snapshot.js"; |
15 | 14 | import type { PluginRegistrySnapshot } from "./plugin-registry-snapshot.js"; |
16 | 15 | |
17 | | -export type PluginLookUpTableOwnerMaps = PluginMetadataSnapshotOwnerMaps; |
18 | | - |
19 | | -export type PluginLookUpTableStartupPlan = GatewayStartupPluginPlan; |
20 | | - |
21 | | -export type PluginLookUpTableMetrics = { |
22 | | -registrySnapshotMs: number; |
23 | | -manifestRegistryMs: number; |
| 16 | +export type PluginLookUpTableMetrics = PluginMetadataSnapshot["metrics"] & { |
24 | 17 | startupPlanMs: number; |
25 | | -ownerMapsMs: number; |
26 | | -totalMs: number; |
27 | | -indexPluginCount: number; |
28 | | -manifestPluginCount: number; |
29 | 18 | startupPluginCount: number; |
30 | 19 | deferredChannelPluginCount: number; |
31 | 20 | }; |
32 | 21 | |
33 | 22 | export type PluginLookUpTable = PluginMetadataSnapshot & { |
34 | | -startup: PluginLookUpTableStartupPlan; |
35 | | -metrics: PluginMetadataSnapshot["metrics"] & |
36 | | -Pick< |
37 | | -PluginLookUpTableMetrics, |
38 | | -"startupPlanMs" | "startupPluginCount" | "deferredChannelPluginCount" |
39 | | ->; |
| 23 | +startup: GatewayStartupPluginPlan; |
| 24 | +metrics: PluginLookUpTableMetrics; |
40 | 25 | }; |
41 | 26 | |
42 | 27 | export type LoadPluginLookUpTableParams = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。