@tx5dr/contracts 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +41 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.js +78 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.js.map +1 -0
- package/dist/schema/ability.d.ts +85 -0
- package/dist/schema/ability.d.ts.map +1 -0
- package/dist/schema/ability.js +119 -0
- package/dist/schema/ability.js.map +1 -0
- package/dist/schema/api-response.schema.d.ts +1017 -0
- package/dist/schema/api-response.schema.d.ts.map +1 -0
- package/dist/schema/api-response.schema.js +137 -0
- package/dist/schema/api-response.schema.js.map +1 -0
- package/dist/schema/audio-sidecar.schema.d.ts +106 -0
- package/dist/schema/audio-sidecar.schema.d.ts.map +1 -0
- package/dist/schema/audio-sidecar.schema.js +47 -0
- package/dist/schema/audio-sidecar.schema.js.map +1 -0
- package/dist/schema/audio.schema.d.ts +227 -0
- package/dist/schema/audio.schema.d.ts.map +1 -0
- package/dist/schema/audio.schema.js +56 -0
- package/dist/schema/audio.schema.js.map +1 -0
- package/dist/schema/auth.schema.d.ts +738 -0
- package/dist/schema/auth.schema.d.ts.map +1 -0
- package/dist/schema/auth.schema.js +161 -0
- package/dist/schema/auth.schema.js.map +1 -0
- package/dist/schema/cycle.schema.d.ts +33 -0
- package/dist/schema/cycle.schema.d.ts.map +1 -0
- package/dist/schema/cycle.schema.js +23 -0
- package/dist/schema/cycle.schema.js.map +1 -0
- package/dist/schema/desktop-https.schema.d.ts +146 -0
- package/dist/schema/desktop-https.schema.d.ts.map +1 -0
- package/dist/schema/desktop-https.schema.js +31 -0
- package/dist/schema/desktop-https.schema.js.map +1 -0
- package/dist/schema/ft8.schema.d.ts +1107 -0
- package/dist/schema/ft8.schema.d.ts.map +1 -0
- package/dist/schema/ft8.schema.js +268 -0
- package/dist/schema/ft8.schema.js.map +1 -0
- package/dist/schema/hello.schema.d.ts +10 -0
- package/dist/schema/hello.schema.d.ts.map +1 -0
- package/dist/schema/hello.schema.js +5 -0
- package/dist/schema/hello.schema.js.map +1 -0
- package/dist/schema/logbook.schema.d.ts +1472 -0
- package/dist/schema/logbook.schema.d.ts.map +1 -0
- package/dist/schema/logbook.schema.js +256 -0
- package/dist/schema/logbook.schema.js.map +1 -0
- package/dist/schema/mode.schema.d.ts +130 -0
- package/dist/schema/mode.schema.d.ts.map +1 -0
- package/dist/schema/mode.schema.js +141 -0
- package/dist/schema/mode.schema.js.map +1 -0
- package/dist/schema/openwebrx.schema.d.ts +352 -0
- package/dist/schema/openwebrx.schema.d.ts.map +1 -0
- package/dist/schema/openwebrx.schema.js +139 -0
- package/dist/schema/openwebrx.schema.js.map +1 -0
- package/dist/schema/operator.schema.d.ts +883 -0
- package/dist/schema/operator.schema.d.ts.map +1 -0
- package/dist/schema/operator.schema.js +97 -0
- package/dist/schema/operator.schema.js.map +1 -0
- package/dist/schema/plugin.schema.d.ts +1579 -0
- package/dist/schema/plugin.schema.d.ts.map +1 -0
- package/dist/schema/plugin.schema.js +336 -0
- package/dist/schema/plugin.schema.js.map +1 -0
- package/dist/schema/process-monitor.schema.d.ts +282 -0
- package/dist/schema/process-monitor.schema.d.ts.map +1 -0
- package/dist/schema/process-monitor.schema.js +31 -0
- package/dist/schema/process-monitor.schema.js.map +1 -0
- package/dist/schema/pskreporter.schema.d.ts +185 -0
- package/dist/schema/pskreporter.schema.d.ts.map +1 -0
- package/dist/schema/pskreporter.schema.js +80 -0
- package/dist/schema/pskreporter.schema.js.map +1 -0
- package/dist/schema/qso.schema.d.ts +419 -0
- package/dist/schema/qso.schema.d.ts.map +1 -0
- package/dist/schema/qso.schema.js +137 -0
- package/dist/schema/qso.schema.js.map +1 -0
- package/dist/schema/radio-capability.schema.d.ts +625 -0
- package/dist/schema/radio-capability.schema.d.ts.map +1 -0
- package/dist/schema/radio-capability.schema.js +191 -0
- package/dist/schema/radio-capability.schema.js.map +1 -0
- package/dist/schema/radio-power-support.d.ts +45 -0
- package/dist/schema/radio-power-support.d.ts.map +1 -0
- package/dist/schema/radio-power-support.js +64 -0
- package/dist/schema/radio-power-support.js.map +1 -0
- package/dist/schema/radio-power.schema.d.ts +319 -0
- package/dist/schema/radio-power.schema.d.ts.map +1 -0
- package/dist/schema/radio-power.schema.js +87 -0
- package/dist/schema/radio-power.schema.js.map +1 -0
- package/dist/schema/radio-profile.schema.d.ts +2694 -0
- package/dist/schema/radio-profile.schema.d.ts.map +1 -0
- package/dist/schema/radio-profile.schema.js +71 -0
- package/dist/schema/radio-profile.schema.js.map +1 -0
- package/dist/schema/radio.schema.d.ts +1438 -0
- package/dist/schema/radio.schema.d.ts.map +1 -0
- package/dist/schema/radio.schema.js +314 -0
- package/dist/schema/radio.schema.js.map +1 -0
- package/dist/schema/realtime.schema.d.ts +1299 -0
- package/dist/schema/realtime.schema.d.ts.map +1 -0
- package/dist/schema/realtime.schema.js +184 -0
- package/dist/schema/realtime.schema.js.map +1 -0
- package/dist/schema/rigctld.schema.d.ts +151 -0
- package/dist/schema/rigctld.schema.d.ts.map +1 -0
- package/dist/schema/rigctld.schema.js +42 -0
- package/dist/schema/rigctld.schema.js.map +1 -0
- package/dist/schema/server-message-keys.d.ts +21 -0
- package/dist/schema/server-message-keys.d.ts.map +1 -0
- package/dist/schema/server-message-keys.js +22 -0
- package/dist/schema/server-message-keys.js.map +1 -0
- package/dist/schema/slot-info.schema.d.ts +696 -0
- package/dist/schema/slot-info.schema.d.ts.map +1 -0
- package/dist/schema/slot-info.schema.js +144 -0
- package/dist/schema/slot-info.schema.js.map +1 -0
- package/dist/schema/spectrum.schema.d.ts +716 -0
- package/dist/schema/spectrum.schema.d.ts.map +1 -0
- package/dist/schema/spectrum.schema.js +128 -0
- package/dist/schema/spectrum.schema.js.map +1 -0
- package/dist/schema/station-info.schema.d.ts +202 -0
- package/dist/schema/station-info.schema.d.ts.map +1 -0
- package/dist/schema/station-info.schema.js +32 -0
- package/dist/schema/station-info.schema.js.map +1 -0
- package/dist/schema/system.schema.d.ts +113 -0
- package/dist/schema/system.schema.d.ts.map +1 -0
- package/dist/schema/system.schema.js +95 -0
- package/dist/schema/system.schema.js.map +1 -0
- package/dist/schema/transmission.schema.d.ts +413 -0
- package/dist/schema/transmission.schema.d.ts.map +1 -0
- package/dist/schema/transmission.schema.js +78 -0
- package/dist/schema/transmission.schema.js.map +1 -0
- package/dist/schema/voice.schema.d.ts +38 -0
- package/dist/schema/voice.schema.d.ts.map +1 -0
- package/dist/schema/voice.schema.js +24 -0
- package/dist/schema/voice.schema.js.map +1 -0
- package/dist/schema/websocket.schema.d.ts +16916 -0
- package/dist/schema/websocket.schema.d.ts.map +1 -0
- package/dist/schema/websocket.schema.js +1050 -0
- package/dist/schema/websocket.schema.js.map +1 -0
- package/dist/utils/grid.d.ts +13 -0
- package/dist/utils/grid.d.ts.map +1 -0
- package/dist/utils/grid.js +71 -0
- package/dist/utils/grid.js.map +1 -0
- package/eslint.config.js +15 -0
- package/package.json +28 -0
- package/src/index.ts +152 -0
- package/src/schema/__tests__/plugin-runtime-log.schema.test.ts +90 -0
- package/src/schema/ability.ts +205 -0
- package/src/schema/api-response.schema.ts +187 -0
- package/src/schema/audio-sidecar.schema.ts +53 -0
- package/src/schema/audio.schema.ts +73 -0
- package/src/schema/auth.schema.ts +224 -0
- package/src/schema/cycle.schema.ts +25 -0
- package/src/schema/desktop-https.schema.ts +43 -0
- package/src/schema/ft8.schema.ts +362 -0
- package/src/schema/hello.schema.ts +7 -0
- package/src/schema/logbook.schema.ts +310 -0
- package/src/schema/mode.schema.ts +158 -0
- package/src/schema/openwebrx.schema.ts +160 -0
- package/src/schema/operator.schema.ts +112 -0
- package/src/schema/plugin.schema.ts +503 -0
- package/src/schema/process-monitor.schema.ts +41 -0
- package/src/schema/pskreporter.schema.ts +102 -0
- package/src/schema/qso.schema.ts +173 -0
- package/src/schema/radio-capability.schema.ts +244 -0
- package/src/schema/radio-power-support.ts +107 -0
- package/src/schema/radio-power.schema.ts +101 -0
- package/src/schema/radio-profile.schema.ts +91 -0
- package/src/schema/radio.schema.ts +385 -0
- package/src/schema/realtime.schema.ts +262 -0
- package/src/schema/rigctld.schema.ts +51 -0
- package/src/schema/server-message-keys.ts +26 -0
- package/src/schema/slot-info.schema.ts +162 -0
- package/src/schema/spectrum.schema.ts +166 -0
- package/src/schema/station-info.schema.ts +40 -0
- package/src/schema/system.schema.ts +121 -0
- package/src/schema/transmission.schema.ts +105 -0
- package/src/schema/voice.schema.ts +28 -0
- package/src/schema/websocket.schema.ts +1480 -0
- package/src/utils/grid.ts +94 -0
- package/test/mode-schema.test.ts +48 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.schema.d.ts","sourceRoot":"","sources":["../../src/schema/plugin.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,oCAAkC,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,mCAAiC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,wBAAsB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,e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OAAO,2BAA2B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;EAKxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
// ===== 核心枚举 =====
|
|
3
|
+
/**
|
|
4
|
+
* High-level plugin category.
|
|
5
|
+
*
|
|
6
|
+
* - `strategy`: owns the operator's automation runtime and is mutually
|
|
7
|
+
* exclusive per operator.
|
|
8
|
+
* - `utility`: composes with other utility plugins to filter, score, monitor or
|
|
9
|
+
* augment UI.
|
|
10
|
+
*/
|
|
11
|
+
export const PluginTypeSchema = z.enum(['strategy', 'utility']);
|
|
12
|
+
/**
|
|
13
|
+
* Runtime instance scope for a plugin.
|
|
14
|
+
*
|
|
15
|
+
* - `operator`: the host creates one instance per operator.
|
|
16
|
+
* - `global`: the host creates a single shared instance for the whole station.
|
|
17
|
+
*/
|
|
18
|
+
export const PluginInstanceScopeSchema = z.enum(['operator', 'global']);
|
|
19
|
+
/**
|
|
20
|
+
* Explicit permission declarations requested by a plugin.
|
|
21
|
+
*
|
|
22
|
+
* Permissions let the host gate sensitive capabilities behind manifest-level
|
|
23
|
+
* intent. Plugins should request the smallest possible set.
|
|
24
|
+
*/
|
|
25
|
+
export const PluginPermissionSchema = z.enum(['network']);
|
|
26
|
+
/**
|
|
27
|
+
* Built-in frontend renderer kinds supported by declarative plugin panels.
|
|
28
|
+
*/
|
|
29
|
+
export const PluginPanelComponentSchema = z.enum(['table', 'key-value', 'chart', 'log', 'iframe']);
|
|
30
|
+
// ===== 设置声明 =====
|
|
31
|
+
/**
|
|
32
|
+
* Supported generated-form field types for plugin settings.
|
|
33
|
+
*
|
|
34
|
+
* These values control both validation expectations and default frontend
|
|
35
|
+
* rendering in plugin settings UIs.
|
|
36
|
+
*/
|
|
37
|
+
export const PluginSettingTypeSchema = z.enum(['boolean', 'number', 'string', 'string[]', 'info']);
|
|
38
|
+
/**
|
|
39
|
+
* Label/value pair used by select-like plugin settings.
|
|
40
|
+
*/
|
|
41
|
+
export const PluginSettingOptionSchema = z.object({
|
|
42
|
+
label: z.string(),
|
|
43
|
+
value: z.string(),
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Persistence and UI scope for a plugin setting.
|
|
47
|
+
*
|
|
48
|
+
* - `global`: shared by the whole station and typically edited in plugin
|
|
49
|
+
* management views.
|
|
50
|
+
* - `operator`: isolated per operator and typically edited in operator-specific
|
|
51
|
+
* automation settings.
|
|
52
|
+
*/
|
|
53
|
+
export const PluginSettingScopeSchema = z.enum(['global', 'operator']);
|
|
54
|
+
/**
|
|
55
|
+
* Declarative description of a persisted plugin setting.
|
|
56
|
+
*
|
|
57
|
+
* The host uses this schema to generate configuration forms, validate updates
|
|
58
|
+
* and resolve default values before injecting them into `ctx.config`.
|
|
59
|
+
*/
|
|
60
|
+
export const PluginSettingDescriptorSchema = z.object({
|
|
61
|
+
type: PluginSettingTypeSchema,
|
|
62
|
+
default: z.unknown(),
|
|
63
|
+
label: z.string(),
|
|
64
|
+
description: z.string().optional(),
|
|
65
|
+
min: z.number().optional(),
|
|
66
|
+
max: z.number().optional(),
|
|
67
|
+
options: z.array(PluginSettingOptionSchema).optional(),
|
|
68
|
+
/** 设置作用域:global(所有操作员共享)或 operator(每操作员独立),默认 global */
|
|
69
|
+
scope: PluginSettingScopeSchema.optional().default('global'),
|
|
70
|
+
});
|
|
71
|
+
// ===== 快捷操作 =====
|
|
72
|
+
/**
|
|
73
|
+
* Declarative quick-action button shown in operator-facing plugin UI.
|
|
74
|
+
*
|
|
75
|
+
* Quick actions are intended for one-shot commands and are dispatched through
|
|
76
|
+
* the plugin user-action channel when clicked.
|
|
77
|
+
*/
|
|
78
|
+
export const PluginQuickActionSchema = z.object({
|
|
79
|
+
id: z.string(),
|
|
80
|
+
label: z.string(),
|
|
81
|
+
icon: z.string().optional(),
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* Shortcut reference to an operator-scope setting that should be surfaced in a
|
|
85
|
+
* compact quick-settings panel.
|
|
86
|
+
*/
|
|
87
|
+
export const PluginQuickSettingSchema = z.object({
|
|
88
|
+
settingKey: z.string(),
|
|
89
|
+
});
|
|
90
|
+
// ===== 能力标签 =====
|
|
91
|
+
/**
|
|
92
|
+
* Host-derived capability tags exposed to the frontend.
|
|
93
|
+
*
|
|
94
|
+
* These tags are computed from the plugin definition so the UI can reason
|
|
95
|
+
* about plugin roles without hard-coding specific plugin names.
|
|
96
|
+
*/
|
|
97
|
+
export const PluginCapabilitySchema = z.enum([
|
|
98
|
+
'auto_call_candidate',
|
|
99
|
+
'auto_call_execution',
|
|
100
|
+
]);
|
|
101
|
+
// ===== 面板 =====
|
|
102
|
+
/**
|
|
103
|
+
* Rendering slot that determines where a panel appears in the UI.
|
|
104
|
+
*
|
|
105
|
+
* - `operator`: shown in the expanded operator card's live-panel area (default).
|
|
106
|
+
* - `automation`: shown inside the top-right automation quick-action popover.
|
|
107
|
+
*/
|
|
108
|
+
export const PluginPanelSlotSchema = z.enum(['operator', 'automation']);
|
|
109
|
+
/**
|
|
110
|
+
* Preferred width hint for plugin-owned panels.
|
|
111
|
+
*
|
|
112
|
+
* Hosts may interpret this hint differently per slot. Today the operator-card
|
|
113
|
+
* host treats `full` as "span the full row on desktop", while automation
|
|
114
|
+
* popover hosts may choose to ignore it.
|
|
115
|
+
*/
|
|
116
|
+
export const PluginPanelWidthSchema = z.enum(['half', 'full']);
|
|
117
|
+
/**
|
|
118
|
+
* Declarative definition of a plugin-owned panel in the frontend.
|
|
119
|
+
*
|
|
120
|
+
* Panels are passive containers rendered by the host. A plugin sends data into
|
|
121
|
+
* them through `ctx.ui.send(panelId, data)`. When `component` is `'iframe'`,
|
|
122
|
+
* the panel renders a custom UI page inside a sandboxed iframe instead.
|
|
123
|
+
*/
|
|
124
|
+
export const PluginPanelDescriptorSchema = z.object({
|
|
125
|
+
id: z.string(),
|
|
126
|
+
title: z.string(),
|
|
127
|
+
component: PluginPanelComponentSchema,
|
|
128
|
+
/** Required when `component` is `'iframe'`. References a page id from `ui.pages`. */
|
|
129
|
+
pageId: z.string().optional(),
|
|
130
|
+
/** Where the panel renders. Defaults to `'operator'` (operator card live-panel area). */
|
|
131
|
+
slot: PluginPanelSlotSchema.optional(),
|
|
132
|
+
/** Preferred width hint. Defaults to `'half'`. */
|
|
133
|
+
width: PluginPanelWidthSchema.optional(),
|
|
134
|
+
});
|
|
135
|
+
// ===== 自定义 UI 页面 =====
|
|
136
|
+
/**
|
|
137
|
+
* Declarative descriptor for a custom UI page served from a plugin's static
|
|
138
|
+
* file directory and rendered inside an iframe by the host.
|
|
139
|
+
*
|
|
140
|
+
* Pages are registered in `PluginDefinition.ui.pages` and can be consumed by
|
|
141
|
+
* any host component via `<PluginIframeHost pluginName={...} pageId={...} />`.
|
|
142
|
+
*/
|
|
143
|
+
export const PluginUIPageDescriptorSchema = z.object({
|
|
144
|
+
/** Unique page identifier within the plugin (e.g. 'settings', 'dashboard'). */
|
|
145
|
+
id: z.string(),
|
|
146
|
+
/** Display title (i18n key or literal text). */
|
|
147
|
+
title: z.string(),
|
|
148
|
+
/** Entry HTML file path relative to the UI directory (e.g. 'settings.html'). */
|
|
149
|
+
entry: z.string(),
|
|
150
|
+
/** Optional icon identifier. */
|
|
151
|
+
icon: z.string().optional(),
|
|
152
|
+
/** Who may access this page through the host iframe bridge. Defaults to admin. */
|
|
153
|
+
accessScope: z.enum(['admin', 'operator']).optional().default('admin'),
|
|
154
|
+
/** Optional resource binding enforced by the host for iframe invoke requests. */
|
|
155
|
+
resourceBinding: z.enum(['none', 'callsign', 'operator']).optional().default('none'),
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Declares that a plugin provides custom UI pages hosted in an iframe.
|
|
159
|
+
*/
|
|
160
|
+
export const PluginUIConfigSchema = z.object({
|
|
161
|
+
/** Static file directory relative to the plugin root (default: 'ui'). */
|
|
162
|
+
dir: z.string().optional().default('ui'),
|
|
163
|
+
/** Registered custom UI pages. */
|
|
164
|
+
pages: z.array(PluginUIPageDescriptorSchema).optional().default([]),
|
|
165
|
+
});
|
|
166
|
+
// ===== 存储配置 =====
|
|
167
|
+
/**
|
|
168
|
+
* Storage scope requested by a plugin.
|
|
169
|
+
*/
|
|
170
|
+
export const PluginStorageScopeSchema = z.enum(['global', 'operator']);
|
|
171
|
+
/**
|
|
172
|
+
* Declares which persistent storage scopes the host should provision.
|
|
173
|
+
*/
|
|
174
|
+
export const PluginStorageConfigSchema = z.object({
|
|
175
|
+
scopes: z.array(PluginStorageScopeSchema),
|
|
176
|
+
});
|
|
177
|
+
// ===== 插件清单 =====
|
|
178
|
+
/**
|
|
179
|
+
* Normalized manifest describing a plugin's static metadata and declarations.
|
|
180
|
+
*
|
|
181
|
+
* This is effectively the serializable subset of a plugin definition that the
|
|
182
|
+
* host can expose to management UI and diagnostics.
|
|
183
|
+
*/
|
|
184
|
+
export const PluginManifestSchema = z.object({
|
|
185
|
+
name: z.string(),
|
|
186
|
+
version: z.string(),
|
|
187
|
+
type: PluginTypeSchema,
|
|
188
|
+
instanceScope: PluginInstanceScopeSchema.optional().default('operator'),
|
|
189
|
+
description: z.string().optional(),
|
|
190
|
+
permissions: z.array(PluginPermissionSchema).optional(),
|
|
191
|
+
settings: z.record(z.string(), PluginSettingDescriptorSchema).optional(),
|
|
192
|
+
quickActions: z.array(PluginQuickActionSchema).optional(),
|
|
193
|
+
quickSettings: z.array(PluginQuickSettingSchema).optional(),
|
|
194
|
+
panels: z.array(PluginPanelDescriptorSchema).optional(),
|
|
195
|
+
storage: PluginStorageConfigSchema.optional(),
|
|
196
|
+
ui: PluginUIConfigSchema.optional(),
|
|
197
|
+
});
|
|
198
|
+
// ===== 运行时状态(推送给前端) =====
|
|
199
|
+
/**
|
|
200
|
+
* Runtime-facing plugin status snapshot exposed to the frontend.
|
|
201
|
+
*
|
|
202
|
+
* This extends the static manifest with host state such as whether the plugin
|
|
203
|
+
* is loaded, enabled, auto-disabled or currently assigned to operators.
|
|
204
|
+
*/
|
|
205
|
+
export const PluginStatusSchema = z.object({
|
|
206
|
+
name: z.string(),
|
|
207
|
+
type: PluginTypeSchema,
|
|
208
|
+
instanceScope: PluginInstanceScopeSchema.optional().default('operator'),
|
|
209
|
+
version: z.string(),
|
|
210
|
+
description: z.string().optional(),
|
|
211
|
+
isBuiltIn: z.boolean(),
|
|
212
|
+
loaded: z.boolean().default(true),
|
|
213
|
+
enabled: z.boolean(),
|
|
214
|
+
/** 是否被自动禁用(连续错误达到阈值) */
|
|
215
|
+
autoDisabled: z.boolean().optional().default(false),
|
|
216
|
+
errorCount: z.number(),
|
|
217
|
+
lastError: z.string().optional(),
|
|
218
|
+
/** 仅对 strategy 插件有意义:当前被哪些 operator 选中 */
|
|
219
|
+
assignedOperatorIds: z.array(z.string()).optional(),
|
|
220
|
+
settings: z.record(z.string(), PluginSettingDescriptorSchema).optional(),
|
|
221
|
+
quickActions: z.array(PluginQuickActionSchema).optional(),
|
|
222
|
+
quickSettings: z.array(PluginQuickSettingSchema).optional(),
|
|
223
|
+
panels: z.array(PluginPanelDescriptorSchema).optional(),
|
|
224
|
+
permissions: z.array(PluginPermissionSchema).optional(),
|
|
225
|
+
capabilities: z.array(PluginCapabilitySchema).optional(),
|
|
226
|
+
ui: PluginUIConfigSchema.optional(),
|
|
227
|
+
locales: z.record(z.string(), z.record(z.string(), z.string())).optional(),
|
|
228
|
+
});
|
|
229
|
+
export const PluginSystemStateSchema = z.enum(['ready', 'reloading', 'error']);
|
|
230
|
+
export const PluginSystemSnapshotSchema = z.object({
|
|
231
|
+
state: PluginSystemStateSchema,
|
|
232
|
+
generation: z.number().int().nonnegative(),
|
|
233
|
+
plugins: z.array(PluginStatusSchema),
|
|
234
|
+
lastError: z.string().optional(),
|
|
235
|
+
});
|
|
236
|
+
// ===== 插件宿主运行时信息 =====
|
|
237
|
+
export const PluginDistributionSchema = z.enum([
|
|
238
|
+
'electron',
|
|
239
|
+
'docker',
|
|
240
|
+
'linux-service',
|
|
241
|
+
'generic-server',
|
|
242
|
+
'web-dev',
|
|
243
|
+
]);
|
|
244
|
+
export const PluginRuntimeInfoSchema = z.object({
|
|
245
|
+
pluginDir: z.string(),
|
|
246
|
+
pluginDataDir: z.string(),
|
|
247
|
+
dataDir: z.string(),
|
|
248
|
+
configDir: z.string(),
|
|
249
|
+
logsDir: z.string(),
|
|
250
|
+
cacheDir: z.string(),
|
|
251
|
+
distribution: PluginDistributionSchema,
|
|
252
|
+
hostPluginDirHint: z.string().optional(),
|
|
253
|
+
});
|
|
254
|
+
// ===== 持久化配置(存入 config.json) =====
|
|
255
|
+
/**
|
|
256
|
+
* 单个插件的持久化配置
|
|
257
|
+
*/
|
|
258
|
+
export const PluginConfigEntrySchema = z.object({
|
|
259
|
+
enabled: z.boolean(),
|
|
260
|
+
settings: z.record(z.string(), z.unknown()),
|
|
261
|
+
});
|
|
262
|
+
/**
|
|
263
|
+
* 所有插件的持久化配置
|
|
264
|
+
*/
|
|
265
|
+
export const PluginsConfigSchema = z.object({
|
|
266
|
+
/** 全局插件配置(enabled 状态 + global scope settings) */
|
|
267
|
+
configs: z.record(z.string(), PluginConfigEntrySchema).optional().default({}),
|
|
268
|
+
/** 每操作员的策略插件选择 */
|
|
269
|
+
operatorStrategies: z.record(z.string(), z.string()).optional().default({}),
|
|
270
|
+
/** 每操作员的 operator scope plugin settings:operatorId → pluginName → settings */
|
|
271
|
+
operatorSettings: z.record(z.string(), z.record(z.string(), z.record(z.string(), z.unknown()))).optional().default({}),
|
|
272
|
+
});
|
|
273
|
+
// ===== WebSocket 数据载荷 =====
|
|
274
|
+
/**
|
|
275
|
+
* 插件数据推送载荷(ctx.ui.send() 发送到前端)
|
|
276
|
+
*/
|
|
277
|
+
export const PluginDataPayloadSchema = z.object({
|
|
278
|
+
pluginName: z.string(),
|
|
279
|
+
operatorId: z.string(),
|
|
280
|
+
panelId: z.string(),
|
|
281
|
+
data: z.unknown(),
|
|
282
|
+
});
|
|
283
|
+
/**
|
|
284
|
+
* 插件日志条目
|
|
285
|
+
*/
|
|
286
|
+
export const PluginLogEntrySchema = z.object({
|
|
287
|
+
pluginName: z.string(),
|
|
288
|
+
level: z.enum(['debug', 'info', 'warn', 'error']),
|
|
289
|
+
message: z.string(),
|
|
290
|
+
data: z.unknown().optional(),
|
|
291
|
+
timestamp: z.number(),
|
|
292
|
+
});
|
|
293
|
+
export const PluginRuntimeLogStageSchema = z.enum([
|
|
294
|
+
'scan',
|
|
295
|
+
'load',
|
|
296
|
+
'validate',
|
|
297
|
+
'reload',
|
|
298
|
+
'activate',
|
|
299
|
+
]);
|
|
300
|
+
/**
|
|
301
|
+
* 宿主级插件运行日志条目
|
|
302
|
+
*/
|
|
303
|
+
export const PluginRuntimeLogEntrySchema = z.object({
|
|
304
|
+
source: z.literal('system'),
|
|
305
|
+
stage: PluginRuntimeLogStageSchema,
|
|
306
|
+
level: z.enum(['debug', 'info', 'warn', 'error']),
|
|
307
|
+
message: z.string(),
|
|
308
|
+
timestamp: z.number(),
|
|
309
|
+
pluginName: z.string().optional(),
|
|
310
|
+
directoryName: z.string().optional(),
|
|
311
|
+
details: z.unknown().optional(),
|
|
312
|
+
});
|
|
313
|
+
/**
|
|
314
|
+
* 宿主级插件运行日志历史响应载荷
|
|
315
|
+
*/
|
|
316
|
+
export const PluginRuntimeLogHistoryPayloadSchema = z.object({
|
|
317
|
+
entries: z.array(PluginRuntimeLogEntrySchema),
|
|
318
|
+
});
|
|
319
|
+
/**
|
|
320
|
+
* 插件用户操作载荷(前端 → 后端)
|
|
321
|
+
*/
|
|
322
|
+
export const PluginUserActionPayloadSchema = z.object({
|
|
323
|
+
pluginName: z.string(),
|
|
324
|
+
actionId: z.string(),
|
|
325
|
+
operatorId: z.string().optional(),
|
|
326
|
+
payload: z.unknown().optional(),
|
|
327
|
+
});
|
|
328
|
+
/**
|
|
329
|
+
* 操作员维度的插件设置更新载荷
|
|
330
|
+
*/
|
|
331
|
+
export const PluginOperatorSettingsPayloadSchema = z.object({
|
|
332
|
+
pluginName: z.string(),
|
|
333
|
+
operatorId: z.string(),
|
|
334
|
+
settings: z.record(z.string(), z.unknown()),
|
|
335
|
+
});
|
|
336
|
+
//# sourceMappingURL=plugin.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.schema.js","sourceRoot":"","sources":["../../src/schema/plugin.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,mBAAmB;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;AAOhE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOxE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAO1D;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,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AAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ProcessMemorySchema: z.ZodObject<{
|
|
3
|
+
heapUsed: z.ZodNumber;
|
|
4
|
+
heapTotal: z.ZodNumber;
|
|
5
|
+
rss: z.ZodNumber;
|
|
6
|
+
external: z.ZodNumber;
|
|
7
|
+
arrayBuffers: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
heapUsed: number;
|
|
10
|
+
heapTotal: number;
|
|
11
|
+
rss: number;
|
|
12
|
+
external: number;
|
|
13
|
+
arrayBuffers: number;
|
|
14
|
+
}, {
|
|
15
|
+
heapUsed: number;
|
|
16
|
+
heapTotal: number;
|
|
17
|
+
rss: number;
|
|
18
|
+
external: number;
|
|
19
|
+
arrayBuffers: number;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const ProcessCpuSchema: z.ZodObject<{
|
|
22
|
+
user: z.ZodNumber;
|
|
23
|
+
system: z.ZodNumber;
|
|
24
|
+
total: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
system: number;
|
|
27
|
+
total: number;
|
|
28
|
+
user: number;
|
|
29
|
+
}, {
|
|
30
|
+
system: number;
|
|
31
|
+
total: number;
|
|
32
|
+
user: number;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const EventLoopDelaySchema: z.ZodObject<{
|
|
35
|
+
mean: z.ZodNumber;
|
|
36
|
+
p50: z.ZodNumber;
|
|
37
|
+
p99: z.ZodNumber;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
mean: number;
|
|
40
|
+
p50: number;
|
|
41
|
+
p99: number;
|
|
42
|
+
}, {
|
|
43
|
+
mean: number;
|
|
44
|
+
p50: number;
|
|
45
|
+
p99: number;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const ProcessSnapshotSchema: z.ZodObject<{
|
|
48
|
+
timestamp: z.ZodNumber;
|
|
49
|
+
uptimeSeconds: z.ZodNumber;
|
|
50
|
+
memory: z.ZodObject<{
|
|
51
|
+
heapUsed: z.ZodNumber;
|
|
52
|
+
heapTotal: z.ZodNumber;
|
|
53
|
+
rss: z.ZodNumber;
|
|
54
|
+
external: z.ZodNumber;
|
|
55
|
+
arrayBuffers: z.ZodNumber;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
heapUsed: number;
|
|
58
|
+
heapTotal: number;
|
|
59
|
+
rss: number;
|
|
60
|
+
external: number;
|
|
61
|
+
arrayBuffers: number;
|
|
62
|
+
}, {
|
|
63
|
+
heapUsed: number;
|
|
64
|
+
heapTotal: number;
|
|
65
|
+
rss: number;
|
|
66
|
+
external: number;
|
|
67
|
+
arrayBuffers: number;
|
|
68
|
+
}>;
|
|
69
|
+
cpu: z.ZodObject<{
|
|
70
|
+
user: z.ZodNumber;
|
|
71
|
+
system: z.ZodNumber;
|
|
72
|
+
total: z.ZodNumber;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
system: number;
|
|
75
|
+
total: number;
|
|
76
|
+
user: number;
|
|
77
|
+
}, {
|
|
78
|
+
system: number;
|
|
79
|
+
total: number;
|
|
80
|
+
user: number;
|
|
81
|
+
}>;
|
|
82
|
+
eventLoop: z.ZodObject<{
|
|
83
|
+
mean: z.ZodNumber;
|
|
84
|
+
p50: z.ZodNumber;
|
|
85
|
+
p99: z.ZodNumber;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
mean: number;
|
|
88
|
+
p50: number;
|
|
89
|
+
p99: number;
|
|
90
|
+
}, {
|
|
91
|
+
mean: number;
|
|
92
|
+
p50: number;
|
|
93
|
+
p99: number;
|
|
94
|
+
}>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
timestamp: number;
|
|
97
|
+
uptimeSeconds: number;
|
|
98
|
+
memory: {
|
|
99
|
+
heapUsed: number;
|
|
100
|
+
heapTotal: number;
|
|
101
|
+
rss: number;
|
|
102
|
+
external: number;
|
|
103
|
+
arrayBuffers: number;
|
|
104
|
+
};
|
|
105
|
+
cpu: {
|
|
106
|
+
system: number;
|
|
107
|
+
total: number;
|
|
108
|
+
user: number;
|
|
109
|
+
};
|
|
110
|
+
eventLoop: {
|
|
111
|
+
mean: number;
|
|
112
|
+
p50: number;
|
|
113
|
+
p99: number;
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
timestamp: number;
|
|
117
|
+
uptimeSeconds: number;
|
|
118
|
+
memory: {
|
|
119
|
+
heapUsed: number;
|
|
120
|
+
heapTotal: number;
|
|
121
|
+
rss: number;
|
|
122
|
+
external: number;
|
|
123
|
+
arrayBuffers: number;
|
|
124
|
+
};
|
|
125
|
+
cpu: {
|
|
126
|
+
system: number;
|
|
127
|
+
total: number;
|
|
128
|
+
user: number;
|
|
129
|
+
};
|
|
130
|
+
eventLoop: {
|
|
131
|
+
mean: number;
|
|
132
|
+
p50: number;
|
|
133
|
+
p99: number;
|
|
134
|
+
};
|
|
135
|
+
}>;
|
|
136
|
+
export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
|
|
137
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
138
|
+
timestamp: z.ZodNumber;
|
|
139
|
+
uptimeSeconds: z.ZodNumber;
|
|
140
|
+
memory: z.ZodObject<{
|
|
141
|
+
heapUsed: z.ZodNumber;
|
|
142
|
+
heapTotal: z.ZodNumber;
|
|
143
|
+
rss: z.ZodNumber;
|
|
144
|
+
external: z.ZodNumber;
|
|
145
|
+
arrayBuffers: z.ZodNumber;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
heapUsed: number;
|
|
148
|
+
heapTotal: number;
|
|
149
|
+
rss: number;
|
|
150
|
+
external: number;
|
|
151
|
+
arrayBuffers: number;
|
|
152
|
+
}, {
|
|
153
|
+
heapUsed: number;
|
|
154
|
+
heapTotal: number;
|
|
155
|
+
rss: number;
|
|
156
|
+
external: number;
|
|
157
|
+
arrayBuffers: number;
|
|
158
|
+
}>;
|
|
159
|
+
cpu: z.ZodObject<{
|
|
160
|
+
user: z.ZodNumber;
|
|
161
|
+
system: z.ZodNumber;
|
|
162
|
+
total: z.ZodNumber;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
system: number;
|
|
165
|
+
total: number;
|
|
166
|
+
user: number;
|
|
167
|
+
}, {
|
|
168
|
+
system: number;
|
|
169
|
+
total: number;
|
|
170
|
+
user: number;
|
|
171
|
+
}>;
|
|
172
|
+
eventLoop: z.ZodObject<{
|
|
173
|
+
mean: z.ZodNumber;
|
|
174
|
+
p50: z.ZodNumber;
|
|
175
|
+
p99: z.ZodNumber;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
mean: number;
|
|
178
|
+
p50: number;
|
|
179
|
+
p99: number;
|
|
180
|
+
}, {
|
|
181
|
+
mean: number;
|
|
182
|
+
p50: number;
|
|
183
|
+
p99: number;
|
|
184
|
+
}>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
timestamp: number;
|
|
187
|
+
uptimeSeconds: number;
|
|
188
|
+
memory: {
|
|
189
|
+
heapUsed: number;
|
|
190
|
+
heapTotal: number;
|
|
191
|
+
rss: number;
|
|
192
|
+
external: number;
|
|
193
|
+
arrayBuffers: number;
|
|
194
|
+
};
|
|
195
|
+
cpu: {
|
|
196
|
+
system: number;
|
|
197
|
+
total: number;
|
|
198
|
+
user: number;
|
|
199
|
+
};
|
|
200
|
+
eventLoop: {
|
|
201
|
+
mean: number;
|
|
202
|
+
p50: number;
|
|
203
|
+
p99: number;
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
timestamp: number;
|
|
207
|
+
uptimeSeconds: number;
|
|
208
|
+
memory: {
|
|
209
|
+
heapUsed: number;
|
|
210
|
+
heapTotal: number;
|
|
211
|
+
rss: number;
|
|
212
|
+
external: number;
|
|
213
|
+
arrayBuffers: number;
|
|
214
|
+
};
|
|
215
|
+
cpu: {
|
|
216
|
+
system: number;
|
|
217
|
+
total: number;
|
|
218
|
+
user: number;
|
|
219
|
+
};
|
|
220
|
+
eventLoop: {
|
|
221
|
+
mean: number;
|
|
222
|
+
p50: number;
|
|
223
|
+
p99: number;
|
|
224
|
+
};
|
|
225
|
+
}>, "many">;
|
|
226
|
+
intervalMs: z.ZodNumber;
|
|
227
|
+
maxHistory: z.ZodNumber;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
snapshots: {
|
|
230
|
+
timestamp: number;
|
|
231
|
+
uptimeSeconds: number;
|
|
232
|
+
memory: {
|
|
233
|
+
heapUsed: number;
|
|
234
|
+
heapTotal: number;
|
|
235
|
+
rss: number;
|
|
236
|
+
external: number;
|
|
237
|
+
arrayBuffers: number;
|
|
238
|
+
};
|
|
239
|
+
cpu: {
|
|
240
|
+
system: number;
|
|
241
|
+
total: number;
|
|
242
|
+
user: number;
|
|
243
|
+
};
|
|
244
|
+
eventLoop: {
|
|
245
|
+
mean: number;
|
|
246
|
+
p50: number;
|
|
247
|
+
p99: number;
|
|
248
|
+
};
|
|
249
|
+
}[];
|
|
250
|
+
intervalMs: number;
|
|
251
|
+
maxHistory: number;
|
|
252
|
+
}, {
|
|
253
|
+
snapshots: {
|
|
254
|
+
timestamp: number;
|
|
255
|
+
uptimeSeconds: number;
|
|
256
|
+
memory: {
|
|
257
|
+
heapUsed: number;
|
|
258
|
+
heapTotal: number;
|
|
259
|
+
rss: number;
|
|
260
|
+
external: number;
|
|
261
|
+
arrayBuffers: number;
|
|
262
|
+
};
|
|
263
|
+
cpu: {
|
|
264
|
+
system: number;
|
|
265
|
+
total: number;
|
|
266
|
+
user: number;
|
|
267
|
+
};
|
|
268
|
+
eventLoop: {
|
|
269
|
+
mean: number;
|
|
270
|
+
p50: number;
|
|
271
|
+
p99: number;
|
|
272
|
+
};
|
|
273
|
+
}[];
|
|
274
|
+
intervalMs: number;
|
|
275
|
+
maxHistory: number;
|
|
276
|
+
}>;
|
|
277
|
+
export type ProcessMemory = z.infer<typeof ProcessMemorySchema>;
|
|
278
|
+
export type ProcessCpu = z.infer<typeof ProcessCpuSchema>;
|
|
279
|
+
export type EventLoopDelay = z.infer<typeof EventLoopDelaySchema>;
|
|
280
|
+
export type ProcessSnapshot = z.infer<typeof ProcessSnapshotSchema>;
|
|
281
|
+
export type ProcessSnapshotHistory = z.infer<typeof ProcessSnapshotHistorySchema>;
|
|
282
|
+
//# sourceMappingURL=process-monitor.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-monitor.schema.d.ts","sourceRoot":"","sources":["../../src/schema/process-monitor.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const ProcessMemorySchema = z.object({
|
|
3
|
+
heapUsed: z.number(),
|
|
4
|
+
heapTotal: z.number(),
|
|
5
|
+
rss: z.number(),
|
|
6
|
+
external: z.number(),
|
|
7
|
+
arrayBuffers: z.number(),
|
|
8
|
+
});
|
|
9
|
+
export const ProcessCpuSchema = z.object({
|
|
10
|
+
user: z.number(),
|
|
11
|
+
system: z.number(),
|
|
12
|
+
total: z.number(),
|
|
13
|
+
});
|
|
14
|
+
export const EventLoopDelaySchema = z.object({
|
|
15
|
+
mean: z.number(),
|
|
16
|
+
p50: z.number(),
|
|
17
|
+
p99: z.number(),
|
|
18
|
+
});
|
|
19
|
+
export const ProcessSnapshotSchema = z.object({
|
|
20
|
+
timestamp: z.number(),
|
|
21
|
+
uptimeSeconds: z.number(),
|
|
22
|
+
memory: ProcessMemorySchema,
|
|
23
|
+
cpu: ProcessCpuSchema,
|
|
24
|
+
eventLoop: EventLoopDelaySchema,
|
|
25
|
+
});
|
|
26
|
+
export const ProcessSnapshotHistorySchema = z.object({
|
|
27
|
+
snapshots: z.array(ProcessSnapshotSchema),
|
|
28
|
+
intervalMs: z.number(),
|
|
29
|
+
maxHistory: z.number(),
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=process-monitor.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-monitor.schema.js","sourceRoot":"","sources":["../../src/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