flightdeck 0.2.3 → 0.2.5
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/dist/flightdeck.$configPath.schema.json +3 -0
- package/dist/flightdeck.bin.js +6 -6071
- package/dist/flightdeck.main.schema.json +3 -0
- package/dist/flightdeck_log.json +68 -0
- package/dist/klaxon.bin.js +3 -88
- package/dist/lib.d.ts +891 -2
- package/dist/lib.js +6 -6030
- package/gen/.gitkeep +0 -0
- package/gen/flightdeck_log.json +168 -0
- package/gen/lnav-format-schema.gen.ts +1558 -0
- package/package.json +15 -11
- package/src/flightdeck.bin.ts +20 -2
- package/src/flightdeck.lib.ts +233 -30
package/dist/lib.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Server } from 'node:http';
|
|
|
2
2
|
import { Future } from 'atom.io/internal';
|
|
3
3
|
import { ChildSocket } from 'atom.io/realtime-server';
|
|
4
4
|
import { CronJob } from 'cron';
|
|
5
|
+
import { z } from 'zod';
|
|
5
6
|
|
|
6
7
|
type FilesystemStorageOptions = {
|
|
7
8
|
path: string;
|
|
@@ -17,6 +18,784 @@ declare class FilesystemStorage<T extends Record<string, string> = Record<string
|
|
|
17
18
|
get length(): number;
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
declare const lnavFormatSchema: z.ZodObject<{
|
|
22
|
+
regex: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
23
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
24
|
+
"module-format": z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
pattern?: string | undefined;
|
|
27
|
+
"module-format"?: boolean | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
pattern?: string | undefined;
|
|
30
|
+
"module-format"?: boolean | undefined;
|
|
31
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
32
|
+
pattern?: string | undefined;
|
|
33
|
+
"module-format"?: boolean | undefined;
|
|
34
|
+
}>, Record<string, {
|
|
35
|
+
pattern?: string | undefined;
|
|
36
|
+
"module-format"?: boolean | undefined;
|
|
37
|
+
}>>>;
|
|
38
|
+
json: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
"convert-to-local-time": z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
"hide-extra": z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
"timestamp-divisor": z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNumber]>>;
|
|
43
|
+
"file-pattern": z.ZodOptional<z.ZodString>;
|
|
44
|
+
converter: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
type: z.ZodOptional<z.ZodString>;
|
|
46
|
+
header: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
expr: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
|
|
48
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
}, "strict", z.ZodTypeAny, {
|
|
50
|
+
size?: number | undefined;
|
|
51
|
+
expr?: Record<string, string> | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
size?: number | undefined;
|
|
54
|
+
expr?: Record<string, string> | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
command: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, "strict", z.ZodTypeAny, {
|
|
58
|
+
type?: string | undefined;
|
|
59
|
+
header?: {
|
|
60
|
+
size?: number | undefined;
|
|
61
|
+
expr?: Record<string, string> | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
command?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
type?: string | undefined;
|
|
66
|
+
header?: {
|
|
67
|
+
size?: number | undefined;
|
|
68
|
+
expr?: Record<string, string> | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
command?: string | undefined;
|
|
71
|
+
}>>;
|
|
72
|
+
"level-field": z.ZodOptional<z.ZodString>;
|
|
73
|
+
"level-pointer": z.ZodOptional<z.ZodString>;
|
|
74
|
+
"timestamp-field": z.ZodOptional<z.ZodString>;
|
|
75
|
+
"subsecond-field": z.ZodOptional<z.ZodString>;
|
|
76
|
+
"subsecond-units": z.ZodOptional<z.ZodEnum<["milli", "micro", "nano"]>>;
|
|
77
|
+
"time-field": z.ZodOptional<z.ZodString>;
|
|
78
|
+
"body-field": z.ZodOptional<z.ZodString>;
|
|
79
|
+
url: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
|
|
80
|
+
title: z.ZodOptional<z.ZodString>;
|
|
81
|
+
description: z.ZodOptional<z.ZodString>;
|
|
82
|
+
"timestamp-format": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
83
|
+
"module-field": z.ZodOptional<z.ZodString>;
|
|
84
|
+
"opid-field": z.ZodOptional<z.ZodString>;
|
|
85
|
+
opid: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
subid: z.ZodOptional<z.ZodString>;
|
|
87
|
+
description: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
88
|
+
format: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
field: z.ZodOptional<z.ZodString>;
|
|
90
|
+
extractor: z.ZodOptional<z.ZodString>;
|
|
91
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
92
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
93
|
+
joiner: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, "strict", z.ZodTypeAny, {
|
|
95
|
+
field?: string | undefined;
|
|
96
|
+
extractor?: string | undefined;
|
|
97
|
+
prefix?: string | undefined;
|
|
98
|
+
suffix?: string | undefined;
|
|
99
|
+
joiner?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
field?: string | undefined;
|
|
102
|
+
extractor?: string | undefined;
|
|
103
|
+
prefix?: string | undefined;
|
|
104
|
+
suffix?: string | undefined;
|
|
105
|
+
joiner?: string | undefined;
|
|
106
|
+
}>, "many">>;
|
|
107
|
+
}, "strict", z.ZodTypeAny, {
|
|
108
|
+
format?: {
|
|
109
|
+
field?: string | undefined;
|
|
110
|
+
extractor?: string | undefined;
|
|
111
|
+
prefix?: string | undefined;
|
|
112
|
+
suffix?: string | undefined;
|
|
113
|
+
joiner?: string | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
}, {
|
|
116
|
+
format?: {
|
|
117
|
+
field?: string | undefined;
|
|
118
|
+
extractor?: string | undefined;
|
|
119
|
+
prefix?: string | undefined;
|
|
120
|
+
suffix?: string | undefined;
|
|
121
|
+
joiner?: string | undefined;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
124
|
+
format?: {
|
|
125
|
+
field?: string | undefined;
|
|
126
|
+
extractor?: string | undefined;
|
|
127
|
+
prefix?: string | undefined;
|
|
128
|
+
suffix?: string | undefined;
|
|
129
|
+
joiner?: string | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
}>, Record<string, {
|
|
132
|
+
format?: {
|
|
133
|
+
field?: string | undefined;
|
|
134
|
+
extractor?: string | undefined;
|
|
135
|
+
prefix?: string | undefined;
|
|
136
|
+
suffix?: string | undefined;
|
|
137
|
+
joiner?: string | undefined;
|
|
138
|
+
}[] | undefined;
|
|
139
|
+
}>>>;
|
|
140
|
+
"sub-description": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
141
|
+
format: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
+
field: z.ZodOptional<z.ZodString>;
|
|
143
|
+
extractor: z.ZodOptional<z.ZodString>;
|
|
144
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
145
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
146
|
+
joiner: z.ZodOptional<z.ZodString>;
|
|
147
|
+
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
field?: string | undefined;
|
|
149
|
+
extractor?: string | undefined;
|
|
150
|
+
prefix?: string | undefined;
|
|
151
|
+
suffix?: string | undefined;
|
|
152
|
+
joiner?: string | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
field?: string | undefined;
|
|
155
|
+
extractor?: string | undefined;
|
|
156
|
+
prefix?: string | undefined;
|
|
157
|
+
suffix?: string | undefined;
|
|
158
|
+
joiner?: string | undefined;
|
|
159
|
+
}>, "many">>;
|
|
160
|
+
}, "strict", z.ZodTypeAny, {
|
|
161
|
+
format?: {
|
|
162
|
+
field?: string | undefined;
|
|
163
|
+
extractor?: string | undefined;
|
|
164
|
+
prefix?: string | undefined;
|
|
165
|
+
suffix?: string | undefined;
|
|
166
|
+
joiner?: string | undefined;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
format?: {
|
|
170
|
+
field?: string | undefined;
|
|
171
|
+
extractor?: string | undefined;
|
|
172
|
+
prefix?: string | undefined;
|
|
173
|
+
suffix?: string | undefined;
|
|
174
|
+
joiner?: string | undefined;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
177
|
+
format?: {
|
|
178
|
+
field?: string | undefined;
|
|
179
|
+
extractor?: string | undefined;
|
|
180
|
+
prefix?: string | undefined;
|
|
181
|
+
suffix?: string | undefined;
|
|
182
|
+
joiner?: string | undefined;
|
|
183
|
+
}[] | undefined;
|
|
184
|
+
}>, Record<string, {
|
|
185
|
+
format?: {
|
|
186
|
+
field?: string | undefined;
|
|
187
|
+
extractor?: string | undefined;
|
|
188
|
+
prefix?: string | undefined;
|
|
189
|
+
suffix?: string | undefined;
|
|
190
|
+
joiner?: string | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
}>>>;
|
|
193
|
+
}, "strict", z.ZodTypeAny, {
|
|
194
|
+
description?: Record<string, {
|
|
195
|
+
format?: {
|
|
196
|
+
field?: string | undefined;
|
|
197
|
+
extractor?: string | undefined;
|
|
198
|
+
prefix?: string | undefined;
|
|
199
|
+
suffix?: string | undefined;
|
|
200
|
+
joiner?: string | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
}> | undefined;
|
|
203
|
+
subid?: string | undefined;
|
|
204
|
+
"sub-description"?: Record<string, {
|
|
205
|
+
format?: {
|
|
206
|
+
field?: string | undefined;
|
|
207
|
+
extractor?: string | undefined;
|
|
208
|
+
prefix?: string | undefined;
|
|
209
|
+
suffix?: string | undefined;
|
|
210
|
+
joiner?: string | undefined;
|
|
211
|
+
}[] | undefined;
|
|
212
|
+
}> | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
description?: Record<string, {
|
|
215
|
+
format?: {
|
|
216
|
+
field?: string | undefined;
|
|
217
|
+
extractor?: string | undefined;
|
|
218
|
+
prefix?: string | undefined;
|
|
219
|
+
suffix?: string | undefined;
|
|
220
|
+
joiner?: string | undefined;
|
|
221
|
+
}[] | undefined;
|
|
222
|
+
}> | undefined;
|
|
223
|
+
subid?: string | undefined;
|
|
224
|
+
"sub-description"?: Record<string, {
|
|
225
|
+
format?: {
|
|
226
|
+
field?: string | undefined;
|
|
227
|
+
extractor?: string | undefined;
|
|
228
|
+
prefix?: string | undefined;
|
|
229
|
+
suffix?: string | undefined;
|
|
230
|
+
joiner?: string | undefined;
|
|
231
|
+
}[] | undefined;
|
|
232
|
+
}> | undefined;
|
|
233
|
+
}>>;
|
|
234
|
+
"ordered-by-time": z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
level: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodNever]>>, Record<string, string | number>, Record<string, string | number>>>;
|
|
236
|
+
value: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
237
|
+
kind: z.ZodOptional<z.ZodEnum<["string", "integer", "float", "boolean", "json", "struct", "quoted", "xml"]>>;
|
|
238
|
+
collate: z.ZodOptional<z.ZodString>;
|
|
239
|
+
unit: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
field: z.ZodOptional<z.ZodString>;
|
|
241
|
+
"scaling-factor": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
242
|
+
op: z.ZodOptional<z.ZodEnum<["identity", "multiply", "divide"]>>;
|
|
243
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
244
|
+
}, "strict", z.ZodTypeAny, {
|
|
245
|
+
value?: number | undefined;
|
|
246
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
value?: number | undefined;
|
|
249
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
250
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
251
|
+
value?: number | undefined;
|
|
252
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
253
|
+
}>, Record<string, {
|
|
254
|
+
value?: number | undefined;
|
|
255
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
256
|
+
}>>>;
|
|
257
|
+
}, "strict", z.ZodTypeAny, {
|
|
258
|
+
field?: string | undefined;
|
|
259
|
+
"scaling-factor"?: Record<string, {
|
|
260
|
+
value?: number | undefined;
|
|
261
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
262
|
+
}> | undefined;
|
|
263
|
+
}, {
|
|
264
|
+
field?: string | undefined;
|
|
265
|
+
"scaling-factor"?: Record<string, {
|
|
266
|
+
value?: number | undefined;
|
|
267
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
268
|
+
}> | undefined;
|
|
269
|
+
}>>;
|
|
270
|
+
identifier: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
"foreign-key": z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
"action-list": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
274
|
+
rewriter: z.ZodOptional<z.ZodString>;
|
|
275
|
+
description: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, "strict", z.ZodTypeAny, {
|
|
277
|
+
description?: string | undefined;
|
|
278
|
+
kind?: "string" | "boolean" | "json" | "integer" | "float" | "struct" | "quoted" | "xml" | undefined;
|
|
279
|
+
collate?: string | undefined;
|
|
280
|
+
unit?: {
|
|
281
|
+
field?: string | undefined;
|
|
282
|
+
"scaling-factor"?: Record<string, {
|
|
283
|
+
value?: number | undefined;
|
|
284
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
285
|
+
}> | undefined;
|
|
286
|
+
} | undefined;
|
|
287
|
+
identifier?: boolean | undefined;
|
|
288
|
+
"foreign-key"?: boolean | undefined;
|
|
289
|
+
hidden?: boolean | undefined;
|
|
290
|
+
"action-list"?: string[] | undefined;
|
|
291
|
+
rewriter?: string | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
description?: string | undefined;
|
|
294
|
+
kind?: "string" | "boolean" | "json" | "integer" | "float" | "struct" | "quoted" | "xml" | undefined;
|
|
295
|
+
collate?: string | undefined;
|
|
296
|
+
unit?: {
|
|
297
|
+
field?: string | undefined;
|
|
298
|
+
"scaling-factor"?: Record<string, {
|
|
299
|
+
value?: number | undefined;
|
|
300
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
301
|
+
}> | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
identifier?: boolean | undefined;
|
|
304
|
+
"foreign-key"?: boolean | undefined;
|
|
305
|
+
hidden?: boolean | undefined;
|
|
306
|
+
"action-list"?: string[] | undefined;
|
|
307
|
+
rewriter?: string | undefined;
|
|
308
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
309
|
+
description?: string | undefined;
|
|
310
|
+
kind?: "string" | "boolean" | "json" | "integer" | "float" | "struct" | "quoted" | "xml" | undefined;
|
|
311
|
+
collate?: string | undefined;
|
|
312
|
+
unit?: {
|
|
313
|
+
field?: string | undefined;
|
|
314
|
+
"scaling-factor"?: Record<string, {
|
|
315
|
+
value?: number | undefined;
|
|
316
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
317
|
+
}> | undefined;
|
|
318
|
+
} | undefined;
|
|
319
|
+
identifier?: boolean | undefined;
|
|
320
|
+
"foreign-key"?: boolean | undefined;
|
|
321
|
+
hidden?: boolean | undefined;
|
|
322
|
+
"action-list"?: string[] | undefined;
|
|
323
|
+
rewriter?: string | undefined;
|
|
324
|
+
}>, Record<string, {
|
|
325
|
+
description?: string | undefined;
|
|
326
|
+
kind?: "string" | "boolean" | "json" | "integer" | "float" | "struct" | "quoted" | "xml" | undefined;
|
|
327
|
+
collate?: string | undefined;
|
|
328
|
+
unit?: {
|
|
329
|
+
field?: string | undefined;
|
|
330
|
+
"scaling-factor"?: Record<string, {
|
|
331
|
+
value?: number | undefined;
|
|
332
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
333
|
+
}> | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
identifier?: boolean | undefined;
|
|
336
|
+
"foreign-key"?: boolean | undefined;
|
|
337
|
+
hidden?: boolean | undefined;
|
|
338
|
+
"action-list"?: string[] | undefined;
|
|
339
|
+
rewriter?: string | undefined;
|
|
340
|
+
}>>>;
|
|
341
|
+
tags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
342
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
343
|
+
glob: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, "strict", z.ZodTypeAny, {
|
|
345
|
+
glob?: string | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
glob?: string | undefined;
|
|
348
|
+
}>, "many">>;
|
|
349
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
350
|
+
description: z.ZodOptional<z.ZodString>;
|
|
351
|
+
level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
|
|
352
|
+
}, "strict", z.ZodTypeAny, {
|
|
353
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
354
|
+
pattern?: string | undefined;
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
paths?: {
|
|
357
|
+
glob?: string | undefined;
|
|
358
|
+
}[] | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
361
|
+
pattern?: string | undefined;
|
|
362
|
+
description?: string | undefined;
|
|
363
|
+
paths?: {
|
|
364
|
+
glob?: string | undefined;
|
|
365
|
+
}[] | undefined;
|
|
366
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
367
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
368
|
+
pattern?: string | undefined;
|
|
369
|
+
description?: string | undefined;
|
|
370
|
+
paths?: {
|
|
371
|
+
glob?: string | undefined;
|
|
372
|
+
}[] | undefined;
|
|
373
|
+
}>, Record<string, {
|
|
374
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
375
|
+
pattern?: string | undefined;
|
|
376
|
+
description?: string | undefined;
|
|
377
|
+
paths?: {
|
|
378
|
+
glob?: string | undefined;
|
|
379
|
+
}[] | undefined;
|
|
380
|
+
}>>>;
|
|
381
|
+
partitions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
382
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
383
|
+
glob: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, "strict", z.ZodTypeAny, {
|
|
385
|
+
glob?: string | undefined;
|
|
386
|
+
}, {
|
|
387
|
+
glob?: string | undefined;
|
|
388
|
+
}>, "many">>;
|
|
389
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
390
|
+
description: z.ZodOptional<z.ZodString>;
|
|
391
|
+
level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
|
|
392
|
+
}, "strict", z.ZodTypeAny, {
|
|
393
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
394
|
+
pattern?: string | undefined;
|
|
395
|
+
description?: string | undefined;
|
|
396
|
+
paths?: {
|
|
397
|
+
glob?: string | undefined;
|
|
398
|
+
}[] | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
401
|
+
pattern?: string | undefined;
|
|
402
|
+
description?: string | undefined;
|
|
403
|
+
paths?: {
|
|
404
|
+
glob?: string | undefined;
|
|
405
|
+
}[] | undefined;
|
|
406
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
407
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
408
|
+
pattern?: string | undefined;
|
|
409
|
+
description?: string | undefined;
|
|
410
|
+
paths?: {
|
|
411
|
+
glob?: string | undefined;
|
|
412
|
+
}[] | undefined;
|
|
413
|
+
}>, Record<string, {
|
|
414
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
415
|
+
pattern?: string | undefined;
|
|
416
|
+
description?: string | undefined;
|
|
417
|
+
paths?: {
|
|
418
|
+
glob?: string | undefined;
|
|
419
|
+
}[] | undefined;
|
|
420
|
+
}>>>;
|
|
421
|
+
action: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
422
|
+
label: z.ZodOptional<z.ZodString>;
|
|
423
|
+
"capture-output": z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
425
|
+
}, "strict", z.ZodTypeAny, {
|
|
426
|
+
label?: string | undefined;
|
|
427
|
+
"capture-output"?: boolean | undefined;
|
|
428
|
+
cmd?: string[] | undefined;
|
|
429
|
+
}, {
|
|
430
|
+
label?: string | undefined;
|
|
431
|
+
"capture-output"?: boolean | undefined;
|
|
432
|
+
cmd?: string[] | undefined;
|
|
433
|
+
}>]>, z.ZodNever]>>, Record<string, string | {
|
|
434
|
+
label?: string | undefined;
|
|
435
|
+
"capture-output"?: boolean | undefined;
|
|
436
|
+
cmd?: string[] | undefined;
|
|
437
|
+
}>, Record<string, string | {
|
|
438
|
+
label?: string | undefined;
|
|
439
|
+
"capture-output"?: boolean | undefined;
|
|
440
|
+
cmd?: string[] | undefined;
|
|
441
|
+
}>>>;
|
|
442
|
+
sample: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
443
|
+
description: z.ZodOptional<z.ZodString>;
|
|
444
|
+
line: z.ZodOptional<z.ZodString>;
|
|
445
|
+
level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
|
|
446
|
+
}, "strict", z.ZodTypeAny, {
|
|
447
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
448
|
+
description?: string | undefined;
|
|
449
|
+
line?: string | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
452
|
+
description?: string | undefined;
|
|
453
|
+
line?: string | undefined;
|
|
454
|
+
}>, "many">>;
|
|
455
|
+
"line-format": z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
456
|
+
field: z.ZodOptional<z.ZodString>;
|
|
457
|
+
"default-value": z.ZodOptional<z.ZodString>;
|
|
458
|
+
"timestamp-format": z.ZodOptional<z.ZodString>;
|
|
459
|
+
"min-width": z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
"auto-width": z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
"max-width": z.ZodOptional<z.ZodNumber>;
|
|
462
|
+
align: z.ZodOptional<z.ZodEnum<["left", "right"]>>;
|
|
463
|
+
overflow: z.ZodOptional<z.ZodEnum<["abbrev", "truncate", "dot-dot", "last-word"]>>;
|
|
464
|
+
"text-transform": z.ZodOptional<z.ZodEnum<["none", "uppercase", "lowercase", "capitalize"]>>;
|
|
465
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
466
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
467
|
+
}, "strict", z.ZodTypeAny, {
|
|
468
|
+
"timestamp-format"?: string | undefined;
|
|
469
|
+
field?: string | undefined;
|
|
470
|
+
prefix?: string | undefined;
|
|
471
|
+
suffix?: string | undefined;
|
|
472
|
+
"default-value"?: string | undefined;
|
|
473
|
+
"min-width"?: number | undefined;
|
|
474
|
+
"auto-width"?: boolean | undefined;
|
|
475
|
+
"max-width"?: number | undefined;
|
|
476
|
+
align?: "left" | "right" | undefined;
|
|
477
|
+
overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
|
|
478
|
+
"text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
"timestamp-format"?: string | undefined;
|
|
481
|
+
field?: string | undefined;
|
|
482
|
+
prefix?: string | undefined;
|
|
483
|
+
suffix?: string | undefined;
|
|
484
|
+
"default-value"?: string | undefined;
|
|
485
|
+
"min-width"?: number | undefined;
|
|
486
|
+
"auto-width"?: boolean | undefined;
|
|
487
|
+
"max-width"?: number | undefined;
|
|
488
|
+
align?: "left" | "right" | undefined;
|
|
489
|
+
overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
|
|
490
|
+
"text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
491
|
+
}>]>, "many">>;
|
|
492
|
+
"search-table": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
493
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
494
|
+
glob: z.ZodOptional<z.ZodString>;
|
|
495
|
+
level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
|
|
496
|
+
}, "strict", z.ZodTypeAny, {
|
|
497
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
498
|
+
pattern?: string | undefined;
|
|
499
|
+
glob?: string | undefined;
|
|
500
|
+
}, {
|
|
501
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
502
|
+
pattern?: string | undefined;
|
|
503
|
+
glob?: string | undefined;
|
|
504
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
505
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
506
|
+
pattern?: string | undefined;
|
|
507
|
+
glob?: string | undefined;
|
|
508
|
+
}>, Record<string, {
|
|
509
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
510
|
+
pattern?: string | undefined;
|
|
511
|
+
glob?: string | undefined;
|
|
512
|
+
}>>>;
|
|
513
|
+
highlights: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
514
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
515
|
+
color: z.ZodOptional<z.ZodString>;
|
|
516
|
+
"background-color": z.ZodOptional<z.ZodString>;
|
|
517
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
blink: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
+
}, "strict", z.ZodTypeAny, {
|
|
520
|
+
blink?: boolean | undefined;
|
|
521
|
+
pattern?: string | undefined;
|
|
522
|
+
color?: string | undefined;
|
|
523
|
+
"background-color"?: string | undefined;
|
|
524
|
+
underline?: boolean | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
blink?: boolean | undefined;
|
|
527
|
+
pattern?: string | undefined;
|
|
528
|
+
color?: string | undefined;
|
|
529
|
+
"background-color"?: string | undefined;
|
|
530
|
+
underline?: boolean | undefined;
|
|
531
|
+
}>, z.ZodNever]>>, Record<string, {
|
|
532
|
+
blink?: boolean | undefined;
|
|
533
|
+
pattern?: string | undefined;
|
|
534
|
+
color?: string | undefined;
|
|
535
|
+
"background-color"?: string | undefined;
|
|
536
|
+
underline?: boolean | undefined;
|
|
537
|
+
}>, Record<string, {
|
|
538
|
+
blink?: boolean | undefined;
|
|
539
|
+
pattern?: string | undefined;
|
|
540
|
+
color?: string | undefined;
|
|
541
|
+
"background-color"?: string | undefined;
|
|
542
|
+
underline?: boolean | undefined;
|
|
543
|
+
}>>>;
|
|
544
|
+
"file-type": z.ZodOptional<z.ZodEnum<["text", "json", "csv"]>>;
|
|
545
|
+
"max-unrecognized-lines": z.ZodOptional<z.ZodNumber>;
|
|
546
|
+
}, "strict", z.ZodTypeAny, {
|
|
547
|
+
json?: boolean | undefined;
|
|
548
|
+
value?: Record<string, {
|
|
549
|
+
description?: string | undefined;
|
|
550
|
+
kind?: "string" | "boolean" | "json" | "integer" | "float" | "struct" | "quoted" | "xml" | undefined;
|
|
551
|
+
collate?: string | undefined;
|
|
552
|
+
unit?: {
|
|
553
|
+
field?: string | undefined;
|
|
554
|
+
"scaling-factor"?: Record<string, {
|
|
555
|
+
value?: number | undefined;
|
|
556
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
557
|
+
}> | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
identifier?: boolean | undefined;
|
|
560
|
+
"foreign-key"?: boolean | undefined;
|
|
561
|
+
hidden?: boolean | undefined;
|
|
562
|
+
"action-list"?: string[] | undefined;
|
|
563
|
+
rewriter?: string | undefined;
|
|
564
|
+
}> | undefined;
|
|
565
|
+
action?: Record<string, string | {
|
|
566
|
+
label?: string | undefined;
|
|
567
|
+
"capture-output"?: boolean | undefined;
|
|
568
|
+
cmd?: string[] | undefined;
|
|
569
|
+
}> | undefined;
|
|
570
|
+
level?: Record<string, string | number> | undefined;
|
|
571
|
+
regex?: Record<string, {
|
|
572
|
+
pattern?: string | undefined;
|
|
573
|
+
"module-format"?: boolean | undefined;
|
|
574
|
+
}> | undefined;
|
|
575
|
+
"convert-to-local-time"?: boolean | undefined;
|
|
576
|
+
"hide-extra"?: boolean | undefined;
|
|
577
|
+
multiline?: boolean | undefined;
|
|
578
|
+
"timestamp-divisor"?: number | undefined;
|
|
579
|
+
"file-pattern"?: string | undefined;
|
|
580
|
+
converter?: {
|
|
581
|
+
type?: string | undefined;
|
|
582
|
+
header?: {
|
|
583
|
+
size?: number | undefined;
|
|
584
|
+
expr?: Record<string, string> | undefined;
|
|
585
|
+
} | undefined;
|
|
586
|
+
command?: string | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
"level-field"?: string | undefined;
|
|
589
|
+
"level-pointer"?: string | undefined;
|
|
590
|
+
"timestamp-field"?: string | undefined;
|
|
591
|
+
"subsecond-field"?: string | undefined;
|
|
592
|
+
"subsecond-units"?: "milli" | "micro" | "nano" | undefined;
|
|
593
|
+
"time-field"?: string | undefined;
|
|
594
|
+
"body-field"?: string | undefined;
|
|
595
|
+
url?: string | string[] | undefined;
|
|
596
|
+
title?: string | undefined;
|
|
597
|
+
description?: string | undefined;
|
|
598
|
+
"timestamp-format"?: string[] | undefined;
|
|
599
|
+
"module-field"?: string | undefined;
|
|
600
|
+
"opid-field"?: string | undefined;
|
|
601
|
+
opid?: {
|
|
602
|
+
description?: Record<string, {
|
|
603
|
+
format?: {
|
|
604
|
+
field?: string | undefined;
|
|
605
|
+
extractor?: string | undefined;
|
|
606
|
+
prefix?: string | undefined;
|
|
607
|
+
suffix?: string | undefined;
|
|
608
|
+
joiner?: string | undefined;
|
|
609
|
+
}[] | undefined;
|
|
610
|
+
}> | undefined;
|
|
611
|
+
subid?: string | undefined;
|
|
612
|
+
"sub-description"?: Record<string, {
|
|
613
|
+
format?: {
|
|
614
|
+
field?: string | undefined;
|
|
615
|
+
extractor?: string | undefined;
|
|
616
|
+
prefix?: string | undefined;
|
|
617
|
+
suffix?: string | undefined;
|
|
618
|
+
joiner?: string | undefined;
|
|
619
|
+
}[] | undefined;
|
|
620
|
+
}> | undefined;
|
|
621
|
+
} | undefined;
|
|
622
|
+
"ordered-by-time"?: boolean | undefined;
|
|
623
|
+
tags?: Record<string, {
|
|
624
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
625
|
+
pattern?: string | undefined;
|
|
626
|
+
description?: string | undefined;
|
|
627
|
+
paths?: {
|
|
628
|
+
glob?: string | undefined;
|
|
629
|
+
}[] | undefined;
|
|
630
|
+
}> | undefined;
|
|
631
|
+
partitions?: Record<string, {
|
|
632
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
633
|
+
pattern?: string | undefined;
|
|
634
|
+
description?: string | undefined;
|
|
635
|
+
paths?: {
|
|
636
|
+
glob?: string | undefined;
|
|
637
|
+
}[] | undefined;
|
|
638
|
+
}> | undefined;
|
|
639
|
+
sample?: {
|
|
640
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
641
|
+
description?: string | undefined;
|
|
642
|
+
line?: string | undefined;
|
|
643
|
+
}[] | undefined;
|
|
644
|
+
"line-format"?: (string | {
|
|
645
|
+
"timestamp-format"?: string | undefined;
|
|
646
|
+
field?: string | undefined;
|
|
647
|
+
prefix?: string | undefined;
|
|
648
|
+
suffix?: string | undefined;
|
|
649
|
+
"default-value"?: string | undefined;
|
|
650
|
+
"min-width"?: number | undefined;
|
|
651
|
+
"auto-width"?: boolean | undefined;
|
|
652
|
+
"max-width"?: number | undefined;
|
|
653
|
+
align?: "left" | "right" | undefined;
|
|
654
|
+
overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
|
|
655
|
+
"text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
656
|
+
})[] | undefined;
|
|
657
|
+
"search-table"?: Record<string, {
|
|
658
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
659
|
+
pattern?: string | undefined;
|
|
660
|
+
glob?: string | undefined;
|
|
661
|
+
}> | undefined;
|
|
662
|
+
highlights?: Record<string, {
|
|
663
|
+
blink?: boolean | undefined;
|
|
664
|
+
pattern?: string | undefined;
|
|
665
|
+
color?: string | undefined;
|
|
666
|
+
"background-color"?: string | undefined;
|
|
667
|
+
underline?: boolean | undefined;
|
|
668
|
+
}> | undefined;
|
|
669
|
+
"file-type"?: "json" | "text" | "csv" | undefined;
|
|
670
|
+
"max-unrecognized-lines"?: number | undefined;
|
|
671
|
+
}, {
|
|
672
|
+
json?: boolean | undefined;
|
|
673
|
+
value?: Record<string, {
|
|
674
|
+
description?: string | undefined;
|
|
675
|
+
kind?: "string" | "boolean" | "json" | "integer" | "float" | "struct" | "quoted" | "xml" | undefined;
|
|
676
|
+
collate?: string | undefined;
|
|
677
|
+
unit?: {
|
|
678
|
+
field?: string | undefined;
|
|
679
|
+
"scaling-factor"?: Record<string, {
|
|
680
|
+
value?: number | undefined;
|
|
681
|
+
op?: "identity" | "multiply" | "divide" | undefined;
|
|
682
|
+
}> | undefined;
|
|
683
|
+
} | undefined;
|
|
684
|
+
identifier?: boolean | undefined;
|
|
685
|
+
"foreign-key"?: boolean | undefined;
|
|
686
|
+
hidden?: boolean | undefined;
|
|
687
|
+
"action-list"?: string[] | undefined;
|
|
688
|
+
rewriter?: string | undefined;
|
|
689
|
+
}> | undefined;
|
|
690
|
+
action?: Record<string, string | {
|
|
691
|
+
label?: string | undefined;
|
|
692
|
+
"capture-output"?: boolean | undefined;
|
|
693
|
+
cmd?: string[] | undefined;
|
|
694
|
+
}> | undefined;
|
|
695
|
+
level?: Record<string, string | number> | undefined;
|
|
696
|
+
regex?: Record<string, {
|
|
697
|
+
pattern?: string | undefined;
|
|
698
|
+
"module-format"?: boolean | undefined;
|
|
699
|
+
}> | undefined;
|
|
700
|
+
"convert-to-local-time"?: boolean | undefined;
|
|
701
|
+
"hide-extra"?: boolean | undefined;
|
|
702
|
+
multiline?: boolean | undefined;
|
|
703
|
+
"timestamp-divisor"?: number | undefined;
|
|
704
|
+
"file-pattern"?: string | undefined;
|
|
705
|
+
converter?: {
|
|
706
|
+
type?: string | undefined;
|
|
707
|
+
header?: {
|
|
708
|
+
size?: number | undefined;
|
|
709
|
+
expr?: Record<string, string> | undefined;
|
|
710
|
+
} | undefined;
|
|
711
|
+
command?: string | undefined;
|
|
712
|
+
} | undefined;
|
|
713
|
+
"level-field"?: string | undefined;
|
|
714
|
+
"level-pointer"?: string | undefined;
|
|
715
|
+
"timestamp-field"?: string | undefined;
|
|
716
|
+
"subsecond-field"?: string | undefined;
|
|
717
|
+
"subsecond-units"?: "milli" | "micro" | "nano" | undefined;
|
|
718
|
+
"time-field"?: string | undefined;
|
|
719
|
+
"body-field"?: string | undefined;
|
|
720
|
+
url?: string | string[] | undefined;
|
|
721
|
+
title?: string | undefined;
|
|
722
|
+
description?: string | undefined;
|
|
723
|
+
"timestamp-format"?: string[] | undefined;
|
|
724
|
+
"module-field"?: string | undefined;
|
|
725
|
+
"opid-field"?: string | undefined;
|
|
726
|
+
opid?: {
|
|
727
|
+
description?: Record<string, {
|
|
728
|
+
format?: {
|
|
729
|
+
field?: string | undefined;
|
|
730
|
+
extractor?: string | undefined;
|
|
731
|
+
prefix?: string | undefined;
|
|
732
|
+
suffix?: string | undefined;
|
|
733
|
+
joiner?: string | undefined;
|
|
734
|
+
}[] | undefined;
|
|
735
|
+
}> | undefined;
|
|
736
|
+
subid?: string | undefined;
|
|
737
|
+
"sub-description"?: Record<string, {
|
|
738
|
+
format?: {
|
|
739
|
+
field?: string | undefined;
|
|
740
|
+
extractor?: string | undefined;
|
|
741
|
+
prefix?: string | undefined;
|
|
742
|
+
suffix?: string | undefined;
|
|
743
|
+
joiner?: string | undefined;
|
|
744
|
+
}[] | undefined;
|
|
745
|
+
}> | undefined;
|
|
746
|
+
} | undefined;
|
|
747
|
+
"ordered-by-time"?: boolean | undefined;
|
|
748
|
+
tags?: Record<string, {
|
|
749
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
750
|
+
pattern?: string | undefined;
|
|
751
|
+
description?: string | undefined;
|
|
752
|
+
paths?: {
|
|
753
|
+
glob?: string | undefined;
|
|
754
|
+
}[] | undefined;
|
|
755
|
+
}> | undefined;
|
|
756
|
+
partitions?: Record<string, {
|
|
757
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
758
|
+
pattern?: string | undefined;
|
|
759
|
+
description?: string | undefined;
|
|
760
|
+
paths?: {
|
|
761
|
+
glob?: string | undefined;
|
|
762
|
+
}[] | undefined;
|
|
763
|
+
}> | undefined;
|
|
764
|
+
sample?: {
|
|
765
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
766
|
+
description?: string | undefined;
|
|
767
|
+
line?: string | undefined;
|
|
768
|
+
}[] | undefined;
|
|
769
|
+
"line-format"?: (string | {
|
|
770
|
+
"timestamp-format"?: string | undefined;
|
|
771
|
+
field?: string | undefined;
|
|
772
|
+
prefix?: string | undefined;
|
|
773
|
+
suffix?: string | undefined;
|
|
774
|
+
"default-value"?: string | undefined;
|
|
775
|
+
"min-width"?: number | undefined;
|
|
776
|
+
"auto-width"?: boolean | undefined;
|
|
777
|
+
"max-width"?: number | undefined;
|
|
778
|
+
align?: "left" | "right" | undefined;
|
|
779
|
+
overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
|
|
780
|
+
"text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
|
781
|
+
})[] | undefined;
|
|
782
|
+
"search-table"?: Record<string, {
|
|
783
|
+
level?: "error" | "info" | "debug" | "trace" | "warning" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
|
|
784
|
+
pattern?: string | undefined;
|
|
785
|
+
glob?: string | undefined;
|
|
786
|
+
}> | undefined;
|
|
787
|
+
highlights?: Record<string, {
|
|
788
|
+
blink?: boolean | undefined;
|
|
789
|
+
pattern?: string | undefined;
|
|
790
|
+
color?: string | undefined;
|
|
791
|
+
"background-color"?: string | undefined;
|
|
792
|
+
underline?: boolean | undefined;
|
|
793
|
+
}> | undefined;
|
|
794
|
+
"file-type"?: "json" | "text" | "csv" | undefined;
|
|
795
|
+
"max-unrecognized-lines"?: number | undefined;
|
|
796
|
+
}>;
|
|
797
|
+
type LnavFormat = z.infer<typeof lnavFormatSchema>;
|
|
798
|
+
|
|
20
799
|
declare const FLIGHTDECK_SETUP_PHASES: readonly ["downloaded", "installed"];
|
|
21
800
|
type FlightDeckSetupPhase = (typeof FLIGHTDECK_SETUP_PHASES)[number];
|
|
22
801
|
declare const FLIGHTDECK_UPDATE_PHASES: readonly ["notified", "confirmed"];
|
|
@@ -37,6 +816,7 @@ type FlightDeckOptions<S extends string = string> = {
|
|
|
37
816
|
};
|
|
38
817
|
port?: number | undefined;
|
|
39
818
|
flightdeckRootDir?: string | undefined;
|
|
819
|
+
jsonLogging?: boolean | undefined;
|
|
40
820
|
};
|
|
41
821
|
declare class FlightDeck<S extends string = string> {
|
|
42
822
|
readonly options: FlightDeckOptions<S>;
|
|
@@ -68,7 +848,7 @@ declare class FlightDeck<S extends string = string> {
|
|
|
68
848
|
autoRespawnDeadServices: boolean;
|
|
69
849
|
protected logger: Pick<Console, `error` | `info` | `warn`>;
|
|
70
850
|
protected serviceLoggers: {
|
|
71
|
-
readonly [service in S]:
|
|
851
|
+
readonly [service in S]: FlightDeckLogger;
|
|
72
852
|
};
|
|
73
853
|
protected updateAvailabilityChecker: CronJob | null;
|
|
74
854
|
servicesLive: Future<void>[];
|
|
@@ -87,6 +867,115 @@ declare class FlightDeck<S extends string = string> {
|
|
|
87
867
|
stopAllServices(): Future<unknown>;
|
|
88
868
|
stopService(serviceName: S): void;
|
|
89
869
|
}
|
|
870
|
+
declare const flightDeckLogSchema: z.ZodObject<{
|
|
871
|
+
level: z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"warn">, z.ZodLiteral<"ERR!">]>;
|
|
872
|
+
timestamp: z.ZodNumber;
|
|
873
|
+
package: z.ZodString;
|
|
874
|
+
service: z.ZodOptional<z.ZodString>;
|
|
875
|
+
process: z.ZodNumber;
|
|
876
|
+
body: z.ZodString;
|
|
877
|
+
}, "strip", z.ZodTypeAny, {
|
|
878
|
+
timestamp: number;
|
|
879
|
+
level: "warn" | "info" | "ERR!";
|
|
880
|
+
package: string;
|
|
881
|
+
process: number;
|
|
882
|
+
body: string;
|
|
883
|
+
service?: string | undefined;
|
|
884
|
+
}, {
|
|
885
|
+
timestamp: number;
|
|
886
|
+
level: "warn" | "info" | "ERR!";
|
|
887
|
+
package: string;
|
|
888
|
+
process: number;
|
|
889
|
+
body: string;
|
|
890
|
+
service?: string | undefined;
|
|
891
|
+
}>;
|
|
892
|
+
type FlightDeckLog = z.infer<typeof flightDeckLogSchema>;
|
|
893
|
+
declare const LINE_FORMAT = "line-format";
|
|
894
|
+
declare const VALUE = "value";
|
|
895
|
+
type LnavFormatVisualComponent = Exclude<Exclude<LnavFormat[`line-format`], undefined>[number], string>;
|
|
896
|
+
type LnavFormatBreakdown = Exclude<LnavFormat[`value`], undefined>;
|
|
897
|
+
type MemberOf<T> = T[keyof T];
|
|
898
|
+
type LnavFormatValueDefinition = MemberOf<LnavFormatBreakdown>;
|
|
899
|
+
type FlightDeckFormat = {
|
|
900
|
+
[LINE_FORMAT]: (string | (LnavFormatVisualComponent & {
|
|
901
|
+
field: keyof FlightDeckLog | `__level__` | `__timestamp__`;
|
|
902
|
+
}))[];
|
|
903
|
+
[VALUE]: {
|
|
904
|
+
[K in keyof FlightDeckLog]: LnavFormatValueDefinition & {
|
|
905
|
+
kind: FlightDeckLog[K] extends number | undefined ? `integer` : FlightDeckLog[K] extends string | undefined ? `string` : never;
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
declare const FLIGHTDECK_LNAV_FORMAT: {
|
|
910
|
+
readonly title: "FlightDeck Log";
|
|
911
|
+
readonly description: "Format for events logged by the FlightDeck process manager.";
|
|
912
|
+
readonly "file-type": "json";
|
|
913
|
+
readonly "timestamp-field": "timestamp";
|
|
914
|
+
readonly "subsecond-field": "subsecond";
|
|
915
|
+
readonly "subsecond-units": "milli";
|
|
916
|
+
readonly "opid-field": "service";
|
|
917
|
+
readonly "level-field": "level";
|
|
918
|
+
readonly level: {
|
|
919
|
+
readonly info: "info";
|
|
920
|
+
readonly warning: "warn";
|
|
921
|
+
readonly error: "err!";
|
|
922
|
+
};
|
|
923
|
+
readonly "ordered-by-time": true;
|
|
924
|
+
readonly "line-format": [{
|
|
925
|
+
readonly field: "__level__";
|
|
926
|
+
}, {
|
|
927
|
+
readonly prefix: " ";
|
|
928
|
+
readonly field: "__timestamp__";
|
|
929
|
+
readonly "timestamp-format": "%Y-%m-%dT%H:%M:%S.%L%Z";
|
|
930
|
+
}, {
|
|
931
|
+
readonly prefix: " ";
|
|
932
|
+
readonly field: "package";
|
|
933
|
+
}, {
|
|
934
|
+
readonly prefix: "::";
|
|
935
|
+
readonly field: "service";
|
|
936
|
+
readonly "default-value": "";
|
|
937
|
+
}, {
|
|
938
|
+
readonly prefix: "[";
|
|
939
|
+
readonly field: "process";
|
|
940
|
+
readonly suffix: "]";
|
|
941
|
+
readonly "min-width": 5;
|
|
942
|
+
}, {
|
|
943
|
+
readonly prefix: ": ";
|
|
944
|
+
readonly field: "body";
|
|
945
|
+
}];
|
|
946
|
+
readonly value: {
|
|
947
|
+
readonly timestamp: {
|
|
948
|
+
readonly kind: "integer";
|
|
949
|
+
};
|
|
950
|
+
readonly level: {
|
|
951
|
+
readonly kind: "string";
|
|
952
|
+
};
|
|
953
|
+
readonly package: {
|
|
954
|
+
readonly kind: "string";
|
|
955
|
+
};
|
|
956
|
+
readonly service: {
|
|
957
|
+
readonly kind: "string";
|
|
958
|
+
};
|
|
959
|
+
readonly process: {
|
|
960
|
+
readonly kind: "integer";
|
|
961
|
+
};
|
|
962
|
+
readonly body: {
|
|
963
|
+
readonly kind: "string";
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
declare class FlightDeckLogger implements Pick<Console, `error` | `info` | `warn`> {
|
|
968
|
+
readonly packageName: string;
|
|
969
|
+
readonly serviceName?: string;
|
|
970
|
+
readonly jsonLogging: boolean;
|
|
971
|
+
processCode: number;
|
|
972
|
+
constructor(packageName: string, processCode: number, serviceName?: string, options?: {
|
|
973
|
+
jsonLogging: boolean;
|
|
974
|
+
});
|
|
975
|
+
info(...messages: unknown[]): void;
|
|
976
|
+
warn(...messages: unknown[]): void;
|
|
977
|
+
error(...messages: unknown[]): void;
|
|
978
|
+
}
|
|
90
979
|
|
|
91
980
|
type AlertOptions = {
|
|
92
981
|
secret: string;
|
|
@@ -141,4 +1030,4 @@ declare namespace klaxon_lib {
|
|
|
141
1030
|
export { type klaxon_lib_AlertOptions as AlertOptions, type klaxon_lib_ChangesetsPublishResult as ChangesetsPublishResult, type klaxon_lib_ChangesetsPublishedPackage as ChangesetsPublishedPackage, type klaxon_lib_PackageConfig as PackageConfig, type klaxon_lib_ScrambleOptions as ScrambleOptions, type klaxon_lib_ScrambleResult as ScrambleResult, type klaxon_lib_SecretsConfig as SecretsConfig, klaxon_lib_alert as alert, klaxon_lib_scramble as scramble };
|
|
142
1031
|
}
|
|
143
1032
|
|
|
144
|
-
export { FLIGHTDECK_SETUP_PHASES, FLIGHTDECK_UPDATE_PHASES, FilesystemStorage, type FilesystemStorageOptions, FlightDeck, type FlightDeckOptions, type FlightDeckSetupPhase, type FlightDeckUpdatePhase, klaxon_lib as Klaxon, isVersionNumber };
|
|
1033
|
+
export { FLIGHTDECK_LNAV_FORMAT, FLIGHTDECK_SETUP_PHASES, FLIGHTDECK_UPDATE_PHASES, FilesystemStorage, type FilesystemStorageOptions, FlightDeck, type FlightDeckFormat, type FlightDeckLog, FlightDeckLogger, type FlightDeckOptions, type FlightDeckSetupPhase, type FlightDeckUpdatePhase, klaxon_lib as Klaxon, type LnavFormatBreakdown, type LnavFormatValueDefinition, type LnavFormatVisualComponent, type MemberOf, flightDeckLogSchema, isVersionNumber };
|