@tellagen/mcp-server 0.5.1 → 0.7.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/README.md +53 -3
- package/SKILL.md +143 -19
- package/contracts/mcp-protocol.json +64 -3
- package/contracts/runbooks/manifest.json +24 -14
- package/contracts/runbooks/v2/client-protocol.json +65 -2
- package/contracts/runbooks/v2/client-writes.guidance.json +16 -1
- package/contracts/runbooks/v2/fixtures/filesystem-pressure.json +22 -31
- package/contracts/runbooks/v2/fixtures/timeline-event-blocks-rejected.json +15 -1
- package/contracts/runbooks/v2/investigation-window.guidance.json +45 -0
- package/contracts/runbooks/v2/question-checks.guidance.json +49 -0
- package/contracts/runbooks/v2/result-summary.guidance.json +53 -5
- package/contracts/runbooks/v2/timeline-event-blocks.schema.json +66 -3
- package/contracts/tellagen-runbook-contracts.json +3 -3
- package/dist/active-run.d.ts +6 -0
- package/dist/active-run.js +14 -0
- package/dist/active-run.js.map +1 -1
- package/dist/cli/doctor.d.ts +19 -0
- package/dist/cli/doctor.js +179 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/kubernetes.d.ts +47 -0
- package/dist/cli/kubernetes.js +369 -0
- package/dist/cli/kubernetes.js.map +1 -0
- package/dist/cli/main.js +10 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/diagnosis-structure.d.ts +380 -102
- package/dist/diagnosis-structure.js +334 -14
- package/dist/diagnosis-structure.js.map +1 -1
- package/dist/doctor/checks.d.ts +42 -0
- package/dist/doctor/checks.js +181 -0
- package/dist/doctor/checks.js.map +1 -0
- package/dist/doctor/config-files.d.ts +49 -0
- package/dist/doctor/config-files.js +121 -0
- package/dist/doctor/config-files.js.map +1 -0
- package/dist/doctor/k8s-read-only.d.ts +16 -0
- package/dist/doctor/k8s-read-only.js +89 -0
- package/dist/doctor/k8s-read-only.js.map +1 -0
- package/dist/doctor/real-fs.d.ts +3 -0
- package/dist/doctor/real-fs.js +36 -0
- package/dist/doctor/real-fs.js.map +1 -0
- package/dist/doctor/toml.d.ts +13 -0
- package/dist/doctor/toml.js +205 -0
- package/dist/doctor/toml.js.map +1 -0
- package/dist/figures.d.ts +520 -101
- package/dist/figures.js +341 -7
- package/dist/figures.js.map +1 -1
- package/dist/heartbeat.d.ts +3 -0
- package/dist/heartbeat.js +32 -1
- package/dist/heartbeat.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/k8s-safety.d.ts +42 -0
- package/dist/k8s-safety.js +33 -0
- package/dist/k8s-safety.js.map +1 -0
- package/dist/listen-config.d.ts +5 -5
- package/dist/listen-probe.d.ts +14 -1
- package/dist/listen-probe.js +83 -5
- package/dist/listen-probe.js.map +1 -1
- package/dist/listen-settings.d.ts +8 -0
- package/dist/listen-settings.js +29 -0
- package/dist/listen-settings.js.map +1 -1
- package/dist/listener.d.ts +11 -0
- package/dist/listener.js +60 -16
- package/dist/listener.js.map +1 -1
- package/dist/log-lines.d.ts +118 -0
- package/dist/log-lines.js +534 -0
- package/dist/log-lines.js.map +1 -0
- package/dist/redact.d.ts +21 -0
- package/dist/redact.js +212 -5
- package/dist/redact.js.map +1 -1
- package/dist/run-events.js +13 -1
- package/dist/run-events.js.map +1 -1
- package/dist/run-requests.d.ts +16 -0
- package/dist/run-requests.js +56 -0
- package/dist/run-requests.js.map +1 -0
- package/dist/run-window.d.ts +59 -0
- package/dist/run-window.js +141 -0
- package/dist/run-window.js.map +1 -0
- package/dist/server.d.ts +1 -1
- package/dist/server.js +11 -9
- package/dist/server.js.map +1 -1
- package/dist/session.d.ts +37 -0
- package/dist/session.js +59 -0
- package/dist/session.js.map +1 -1
- package/dist/tool-report.d.ts +2 -0
- package/dist/tool-report.js +3 -0
- package/dist/tool-report.js.map +1 -0
- package/dist/tools/amendments.d.ts +13 -0
- package/dist/tools/amendments.js +206 -0
- package/dist/tools/amendments.js.map +1 -0
- package/dist/tools/catalog.js +4 -0
- package/dist/tools/catalog.js.map +1 -1
- package/dist/tools/diagnostics.js +131 -3
- package/dist/tools/diagnostics.js.map +1 -1
- package/dist/tools/figures.d.ts +2 -2
- package/dist/tools/figures.js +37 -9
- package/dist/tools/figures.js.map +1 -1
- package/dist/tools/findings.d.ts +136 -0
- package/dist/tools/findings.js +68 -7
- package/dist/tools/findings.js.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/investigations.d.ts +3223 -5
- package/dist/tools/investigations.js +202 -50
- package/dist/tools/investigations.js.map +1 -1
- package/dist/tools/next.d.ts +16 -0
- package/dist/tools/next.js +49 -1
- package/dist/tools/next.js.map +1 -1
- package/dist/tools/postmortem-runbooks.d.ts +20 -20
- package/dist/tools/requests.d.ts +3 -0
- package/dist/tools/requests.js +62 -0
- package/dist/tools/requests.js.map +1 -0
- package/dist/tools/resume.js +14 -1
- package/dist/tools/resume.js.map +1 -1
- package/dist/tools/source-links.d.ts +7 -0
- package/dist/tools/source-links.js +32 -5
- package/dist/tools/source-links.js.map +1 -1
- package/dist/tools/timeline.js +24 -2
- package/dist/tools/timeline.js.map +1 -1
- package/dist/version.d.ts +4 -2
- package/dist/version.js +6 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/server.json +1 -1
package/dist/figures.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type RunWindow } from "./run-window.js";
|
|
2
3
|
/**
|
|
3
4
|
* Figures are the typed widgets Tellagen draws in the Diagnosis tab, on the
|
|
4
5
|
* timeline and in the postmortem. The agent sends data and Tellagen draws it.
|
|
@@ -13,17 +14,29 @@ import { z } from "zod";
|
|
|
13
14
|
* Types a causal step may carry as its `figure`. table and changes are
|
|
14
15
|
* timeline blocks only.
|
|
15
16
|
*/
|
|
16
|
-
export declare const STEP_FIGURE_TYPES: readonly ["stats", "compare", "trend", "checks", "range_overlap", "histogram", "run_history", "diff"];
|
|
17
|
+
export declare const STEP_FIGURE_TYPES: readonly ["stats", "compare", "trend", "checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"];
|
|
17
18
|
/** Types the API accepts in a timeline event's `blocks`. */
|
|
18
|
-
export declare const TIMELINE_BLOCK_TYPES: readonly ["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff"];
|
|
19
|
+
export declare const TIMELINE_BLOCK_TYPES: readonly ["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff", "log_lines"];
|
|
19
20
|
/** The most JSON one step figure may take, as the backend measures it. */
|
|
20
21
|
export declare const MAX_STEP_FIGURE_BYTES: number;
|
|
22
|
+
/**
|
|
23
|
+
* A log_lines figure may take more: 8 lines of 500 characters with fields are
|
|
24
|
+
* about 20 KB. A Tellagen that lists log_lines_v1 accepts a step figure of
|
|
25
|
+
* this size.
|
|
26
|
+
*/
|
|
27
|
+
export declare const MAX_LOG_LINES_STEP_FIGURE_BYTES: number;
|
|
28
|
+
/** The most JSON a step figure of this type may take. */
|
|
29
|
+
export declare function maxStepFigureBytes(type: unknown): number;
|
|
21
30
|
export type FigurePlacement = "step_figure" | "timeline_block";
|
|
22
31
|
/** Stats a server with figure_extras_v1 takes; the first MAX_STATS_TILES are tiles. */
|
|
23
32
|
export declare const MAX_STATS_ITEMS = 8;
|
|
24
33
|
export declare const MAX_STATS_TILES = 4;
|
|
25
34
|
/** The server takes a stats title, more than 4 stats and runs_not_shown. */
|
|
26
35
|
export declare const FIGURE_EXTRAS_CAPABILITY = "figure_extras_v1";
|
|
36
|
+
/** The server takes a `limit` on a compare row (the row is then "after against limit"). */
|
|
37
|
+
export declare const FIGURE_LIMITS_CAPABILITY = "figure_limits_v1";
|
|
38
|
+
/** The server takes a log_lines figure. */
|
|
39
|
+
export declare const LOG_LINES_CAPABILITY = "log_lines_v1";
|
|
27
40
|
export declare const RUN_RESULTS: readonly ["success", "failure", "cancelled", "pending"];
|
|
28
41
|
export declare const RUN_MARK_CHANGES: readonly ["regression", "fix", "change"];
|
|
29
42
|
/** Exported for the step figure schema of tellagen_complete_investigation. */
|
|
@@ -88,10 +101,10 @@ export declare const rangeOverlapBlockSchema: z.ZodObject<{
|
|
|
88
101
|
to: number;
|
|
89
102
|
}[];
|
|
90
103
|
title?: string | undefined;
|
|
104
|
+
window?: [number, number] | undefined;
|
|
91
105
|
unit?: string | undefined;
|
|
92
106
|
max?: number | undefined;
|
|
93
107
|
min?: number | undefined;
|
|
94
|
-
window?: [number, number] | undefined;
|
|
95
108
|
}, {
|
|
96
109
|
type: "range_overlap";
|
|
97
110
|
rows: {
|
|
@@ -100,10 +113,10 @@ export declare const rangeOverlapBlockSchema: z.ZodObject<{
|
|
|
100
113
|
to: number;
|
|
101
114
|
}[];
|
|
102
115
|
title?: string | undefined;
|
|
116
|
+
window?: [number, number] | undefined;
|
|
103
117
|
unit?: string | undefined;
|
|
104
118
|
max?: number | undefined;
|
|
105
119
|
min?: number | undefined;
|
|
106
|
-
window?: [number, number] | undefined;
|
|
107
120
|
}>;
|
|
108
121
|
export declare const histogramBlockSchema: z.ZodObject<{
|
|
109
122
|
type: z.ZodLiteral<"histogram">;
|
|
@@ -133,17 +146,17 @@ export declare const histogramBlockSchema: z.ZodObject<{
|
|
|
133
146
|
}, "strict", z.ZodTypeAny, {
|
|
134
147
|
datasource?: string | undefined;
|
|
135
148
|
kind?: string | undefined;
|
|
136
|
-
query?: string | undefined;
|
|
137
149
|
from?: string | undefined;
|
|
138
150
|
to?: string | undefined;
|
|
151
|
+
query?: string | undefined;
|
|
139
152
|
step?: string | undefined;
|
|
140
153
|
artifact_id?: string | undefined;
|
|
141
154
|
}, {
|
|
142
155
|
datasource?: string | undefined;
|
|
143
156
|
kind?: string | undefined;
|
|
144
|
-
query?: string | undefined;
|
|
145
157
|
from?: string | undefined;
|
|
146
158
|
to?: string | undefined;
|
|
159
|
+
query?: string | undefined;
|
|
147
160
|
step?: string | undefined;
|
|
148
161
|
artifact_id?: string | undefined;
|
|
149
162
|
}>>;
|
|
@@ -156,9 +169,9 @@ export declare const histogramBlockSchema: z.ZodObject<{
|
|
|
156
169
|
source?: {
|
|
157
170
|
datasource?: string | undefined;
|
|
158
171
|
kind?: string | undefined;
|
|
159
|
-
query?: string | undefined;
|
|
160
172
|
from?: string | undefined;
|
|
161
173
|
to?: string | undefined;
|
|
174
|
+
query?: string | undefined;
|
|
162
175
|
step?: string | undefined;
|
|
163
176
|
artifact_id?: string | undefined;
|
|
164
177
|
} | undefined;
|
|
@@ -176,9 +189,9 @@ export declare const histogramBlockSchema: z.ZodObject<{
|
|
|
176
189
|
source?: {
|
|
177
190
|
datasource?: string | undefined;
|
|
178
191
|
kind?: string | undefined;
|
|
179
|
-
query?: string | undefined;
|
|
180
192
|
from?: string | undefined;
|
|
181
193
|
to?: string | undefined;
|
|
194
|
+
query?: string | undefined;
|
|
182
195
|
step?: string | undefined;
|
|
183
196
|
artifact_id?: string | undefined;
|
|
184
197
|
} | undefined;
|
|
@@ -202,16 +215,16 @@ export declare const runHistoryBlockSchema: z.ZodObject<{
|
|
|
202
215
|
job: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
203
216
|
url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
204
217
|
}, "strict", z.ZodTypeAny, {
|
|
205
|
-
ref: string;
|
|
206
218
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
219
|
+
ref: string;
|
|
207
220
|
at?: string | undefined;
|
|
208
221
|
url?: string | undefined;
|
|
209
222
|
sha?: string | undefined;
|
|
210
223
|
trigger?: string | undefined;
|
|
211
224
|
job?: string | undefined;
|
|
212
225
|
}, {
|
|
213
|
-
ref: string;
|
|
214
226
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
227
|
+
ref: string;
|
|
215
228
|
at?: string | undefined;
|
|
216
229
|
url?: string | undefined;
|
|
217
230
|
sha?: string | undefined;
|
|
@@ -254,8 +267,8 @@ export declare const runHistoryBlockSchema: z.ZodObject<{
|
|
|
254
267
|
}, "strict", z.ZodTypeAny, {
|
|
255
268
|
type: "run_history";
|
|
256
269
|
runs: {
|
|
257
|
-
ref: string;
|
|
258
270
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
271
|
+
ref: string;
|
|
259
272
|
at?: string | undefined;
|
|
260
273
|
url?: string | undefined;
|
|
261
274
|
sha?: string | undefined;
|
|
@@ -281,8 +294,8 @@ export declare const runHistoryBlockSchema: z.ZodObject<{
|
|
|
281
294
|
}, {
|
|
282
295
|
type: "run_history";
|
|
283
296
|
runs: {
|
|
284
|
-
ref: string;
|
|
285
297
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
298
|
+
ref: string;
|
|
286
299
|
at?: string | undefined;
|
|
287
300
|
url?: string | undefined;
|
|
288
301
|
sha?: string | undefined;
|
|
@@ -362,6 +375,99 @@ export declare const diffBlockSchema: z.ZodObject<{
|
|
|
362
375
|
title?: string | undefined;
|
|
363
376
|
repo?: string | undefined;
|
|
364
377
|
}>;
|
|
378
|
+
export declare const logLinesBlockSchema: z.ZodObject<{
|
|
379
|
+
type: z.ZodLiteral<"log_lines">;
|
|
380
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
381
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
383
|
+
datasource: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
384
|
+
query: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
385
|
+
from: z.ZodOptional<z.ZodString>;
|
|
386
|
+
to: z.ZodOptional<z.ZodString>;
|
|
387
|
+
}, "strict", z.ZodTypeAny, {
|
|
388
|
+
datasource?: string | undefined;
|
|
389
|
+
kind?: string | undefined;
|
|
390
|
+
from?: string | undefined;
|
|
391
|
+
to?: string | undefined;
|
|
392
|
+
query?: string | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
datasource?: string | undefined;
|
|
395
|
+
kind?: string | undefined;
|
|
396
|
+
from?: string | undefined;
|
|
397
|
+
to?: string | undefined;
|
|
398
|
+
query?: string | undefined;
|
|
399
|
+
}>>;
|
|
400
|
+
matched: z.ZodNumber;
|
|
401
|
+
scanned: z.ZodOptional<z.ZodNumber>;
|
|
402
|
+
event_at: z.ZodOptional<z.ZodString>;
|
|
403
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
404
|
+
time: z.ZodString;
|
|
405
|
+
level: z.ZodEnum<["error", "warn", "info", "debug", "other"]>;
|
|
406
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
407
|
+
fields: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, Record<string, string>, Record<string, string>>>;
|
|
408
|
+
relation: z.ZodOptional<z.ZodEnum<["matches_event", "context", "unrelated"]>>;
|
|
409
|
+
note: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
410
|
+
}, "strict", z.ZodTypeAny, {
|
|
411
|
+
text: string;
|
|
412
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
413
|
+
time: string;
|
|
414
|
+
fields?: Record<string, string> | undefined;
|
|
415
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
416
|
+
note?: string | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
text: string;
|
|
419
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
420
|
+
time: string;
|
|
421
|
+
fields?: Record<string, string> | undefined;
|
|
422
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
423
|
+
note?: string | undefined;
|
|
424
|
+
}>, "many">>;
|
|
425
|
+
lines_not_shown: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
}, "strict", z.ZodTypeAny, {
|
|
427
|
+
type: "log_lines";
|
|
428
|
+
matched: number;
|
|
429
|
+
title?: string | undefined;
|
|
430
|
+
source?: {
|
|
431
|
+
datasource?: string | undefined;
|
|
432
|
+
kind?: string | undefined;
|
|
433
|
+
from?: string | undefined;
|
|
434
|
+
to?: string | undefined;
|
|
435
|
+
query?: string | undefined;
|
|
436
|
+
} | undefined;
|
|
437
|
+
lines?: {
|
|
438
|
+
text: string;
|
|
439
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
440
|
+
time: string;
|
|
441
|
+
fields?: Record<string, string> | undefined;
|
|
442
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
443
|
+
note?: string | undefined;
|
|
444
|
+
}[] | undefined;
|
|
445
|
+
scanned?: number | undefined;
|
|
446
|
+
event_at?: string | undefined;
|
|
447
|
+
lines_not_shown?: number | undefined;
|
|
448
|
+
}, {
|
|
449
|
+
type: "log_lines";
|
|
450
|
+
matched: number;
|
|
451
|
+
title?: string | undefined;
|
|
452
|
+
source?: {
|
|
453
|
+
datasource?: string | undefined;
|
|
454
|
+
kind?: string | undefined;
|
|
455
|
+
from?: string | undefined;
|
|
456
|
+
to?: string | undefined;
|
|
457
|
+
query?: string | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
lines?: {
|
|
460
|
+
text: string;
|
|
461
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
462
|
+
time: string;
|
|
463
|
+
fields?: Record<string, string> | undefined;
|
|
464
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
465
|
+
note?: string | undefined;
|
|
466
|
+
}[] | undefined;
|
|
467
|
+
scanned?: number | undefined;
|
|
468
|
+
event_at?: string | undefined;
|
|
469
|
+
lines_not_shown?: number | undefined;
|
|
470
|
+
}>;
|
|
365
471
|
export type FigureRuleIssue = {
|
|
366
472
|
path: Array<string | number>;
|
|
367
473
|
message: string;
|
|
@@ -390,12 +496,12 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
390
496
|
value: string;
|
|
391
497
|
label: string;
|
|
392
498
|
caption?: string | undefined;
|
|
393
|
-
tone?: "
|
|
499
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
394
500
|
}, {
|
|
395
501
|
value: string;
|
|
396
502
|
label: string;
|
|
397
503
|
caption?: string | undefined;
|
|
398
|
-
tone?: "
|
|
504
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
399
505
|
}>, "many">;
|
|
400
506
|
} & {
|
|
401
507
|
slot: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -407,7 +513,7 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
407
513
|
value: string;
|
|
408
514
|
label: string;
|
|
409
515
|
caption?: string | undefined;
|
|
410
|
-
tone?: "
|
|
516
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
411
517
|
}[];
|
|
412
518
|
title?: string | undefined;
|
|
413
519
|
anchor?: string | undefined;
|
|
@@ -419,7 +525,7 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
419
525
|
value: string;
|
|
420
526
|
label: string;
|
|
421
527
|
caption?: string | undefined;
|
|
422
|
-
tone?: "
|
|
528
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
423
529
|
}[];
|
|
424
530
|
title?: string | undefined;
|
|
425
531
|
anchor?: string | undefined;
|
|
@@ -443,11 +549,12 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
443
549
|
value: number;
|
|
444
550
|
label?: string | undefined;
|
|
445
551
|
}>>;
|
|
446
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
552
|
+
rows: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
447
553
|
label: z.ZodString;
|
|
448
554
|
mono: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
-
before: z.ZodNumber
|
|
555
|
+
before: z.ZodOptional<z.ZodNumber>;
|
|
450
556
|
after: z.ZodNumber;
|
|
557
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
451
558
|
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
452
559
|
label: z.ZodString;
|
|
453
560
|
before: z.ZodString;
|
|
@@ -463,7 +570,6 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
463
570
|
}>, "many">>;
|
|
464
571
|
}, "strict", z.ZodTypeAny, {
|
|
465
572
|
label: string;
|
|
466
|
-
before: number;
|
|
467
573
|
after: number;
|
|
468
574
|
details?: {
|
|
469
575
|
label: string;
|
|
@@ -471,9 +577,32 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
471
577
|
after: string;
|
|
472
578
|
}[] | undefined;
|
|
473
579
|
mono?: boolean | undefined;
|
|
580
|
+
before?: number | undefined;
|
|
581
|
+
limit?: number | undefined;
|
|
582
|
+
}, {
|
|
583
|
+
label: string;
|
|
584
|
+
after: number;
|
|
585
|
+
details?: {
|
|
586
|
+
label: string;
|
|
587
|
+
before: string;
|
|
588
|
+
after: string;
|
|
589
|
+
}[] | undefined;
|
|
590
|
+
mono?: boolean | undefined;
|
|
591
|
+
before?: number | undefined;
|
|
592
|
+
limit?: number | undefined;
|
|
593
|
+
}>, {
|
|
594
|
+
label: string;
|
|
595
|
+
after: number;
|
|
596
|
+
details?: {
|
|
597
|
+
label: string;
|
|
598
|
+
before: string;
|
|
599
|
+
after: string;
|
|
600
|
+
}[] | undefined;
|
|
601
|
+
mono?: boolean | undefined;
|
|
602
|
+
before?: number | undefined;
|
|
603
|
+
limit?: number | undefined;
|
|
474
604
|
}, {
|
|
475
605
|
label: string;
|
|
476
|
-
before: number;
|
|
477
606
|
after: number;
|
|
478
607
|
details?: {
|
|
479
608
|
label: string;
|
|
@@ -481,6 +610,8 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
481
610
|
after: string;
|
|
482
611
|
}[] | undefined;
|
|
483
612
|
mono?: boolean | undefined;
|
|
613
|
+
before?: number | undefined;
|
|
614
|
+
limit?: number | undefined;
|
|
484
615
|
}>, "many">;
|
|
485
616
|
} & {
|
|
486
617
|
slot: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -490,7 +621,6 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
490
621
|
type: "compare";
|
|
491
622
|
rows: {
|
|
492
623
|
label: string;
|
|
493
|
-
before: number;
|
|
494
624
|
after: number;
|
|
495
625
|
details?: {
|
|
496
626
|
label: string;
|
|
@@ -498,6 +628,8 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
498
628
|
after: string;
|
|
499
629
|
}[] | undefined;
|
|
500
630
|
mono?: boolean | undefined;
|
|
631
|
+
before?: number | undefined;
|
|
632
|
+
limit?: number | undefined;
|
|
501
633
|
}[];
|
|
502
634
|
title?: string | undefined;
|
|
503
635
|
anchor?: string | undefined;
|
|
@@ -516,7 +648,6 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
516
648
|
type: "compare";
|
|
517
649
|
rows: {
|
|
518
650
|
label: string;
|
|
519
|
-
before: number;
|
|
520
651
|
after: number;
|
|
521
652
|
details?: {
|
|
522
653
|
label: string;
|
|
@@ -524,6 +655,8 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
524
655
|
after: string;
|
|
525
656
|
}[] | undefined;
|
|
526
657
|
mono?: boolean | undefined;
|
|
658
|
+
before?: number | undefined;
|
|
659
|
+
limit?: number | undefined;
|
|
527
660
|
}[];
|
|
528
661
|
title?: string | undefined;
|
|
529
662
|
anchor?: string | undefined;
|
|
@@ -577,17 +710,17 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
577
710
|
}, "strict", z.ZodTypeAny, {
|
|
578
711
|
datasource?: string | undefined;
|
|
579
712
|
kind?: string | undefined;
|
|
580
|
-
query?: string | undefined;
|
|
581
713
|
from?: string | undefined;
|
|
582
714
|
to?: string | undefined;
|
|
715
|
+
query?: string | undefined;
|
|
583
716
|
step?: string | undefined;
|
|
584
717
|
artifact_id?: string | undefined;
|
|
585
718
|
}, {
|
|
586
719
|
datasource?: string | undefined;
|
|
587
720
|
kind?: string | undefined;
|
|
588
|
-
query?: string | undefined;
|
|
589
721
|
from?: string | undefined;
|
|
590
722
|
to?: string | undefined;
|
|
723
|
+
query?: string | undefined;
|
|
591
724
|
step?: string | undefined;
|
|
592
725
|
artifact_id?: string | undefined;
|
|
593
726
|
}>>;
|
|
@@ -603,9 +736,9 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
603
736
|
source?: {
|
|
604
737
|
datasource?: string | undefined;
|
|
605
738
|
kind?: string | undefined;
|
|
606
|
-
query?: string | undefined;
|
|
607
739
|
from?: string | undefined;
|
|
608
740
|
to?: string | undefined;
|
|
741
|
+
query?: string | undefined;
|
|
609
742
|
step?: string | undefined;
|
|
610
743
|
artifact_id?: string | undefined;
|
|
611
744
|
} | undefined;
|
|
@@ -631,9 +764,9 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
631
764
|
source?: {
|
|
632
765
|
datasource?: string | undefined;
|
|
633
766
|
kind?: string | undefined;
|
|
634
|
-
query?: string | undefined;
|
|
635
767
|
from?: string | undefined;
|
|
636
768
|
to?: string | undefined;
|
|
769
|
+
query?: string | undefined;
|
|
637
770
|
step?: string | undefined;
|
|
638
771
|
artifact_id?: string | undefined;
|
|
639
772
|
} | undefined;
|
|
@@ -748,14 +881,14 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
748
881
|
note: z.ZodOptional<z.ZodString>;
|
|
749
882
|
}, "strict", z.ZodTypeAny, {
|
|
750
883
|
label: string;
|
|
884
|
+
note?: string | undefined;
|
|
751
885
|
from?: string | undefined;
|
|
752
886
|
to?: string | undefined;
|
|
753
|
-
note?: string | undefined;
|
|
754
887
|
}, {
|
|
755
888
|
label: string;
|
|
889
|
+
note?: string | undefined;
|
|
756
890
|
from?: string | undefined;
|
|
757
891
|
to?: string | undefined;
|
|
758
|
-
note?: string | undefined;
|
|
759
892
|
}>, "many">;
|
|
760
893
|
} & {
|
|
761
894
|
slot: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
@@ -765,9 +898,9 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
765
898
|
type: "changes";
|
|
766
899
|
rows: {
|
|
767
900
|
label: string;
|
|
901
|
+
note?: string | undefined;
|
|
768
902
|
from?: string | undefined;
|
|
769
903
|
to?: string | undefined;
|
|
770
|
-
note?: string | undefined;
|
|
771
904
|
}[];
|
|
772
905
|
title?: string | undefined;
|
|
773
906
|
anchor?: string | undefined;
|
|
@@ -777,9 +910,9 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
777
910
|
type: "changes";
|
|
778
911
|
rows: {
|
|
779
912
|
label: string;
|
|
913
|
+
note?: string | undefined;
|
|
780
914
|
from?: string | undefined;
|
|
781
915
|
to?: string | undefined;
|
|
782
|
-
note?: string | undefined;
|
|
783
916
|
}[];
|
|
784
917
|
title?: string | undefined;
|
|
785
918
|
anchor?: string | undefined;
|
|
@@ -819,10 +952,10 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
819
952
|
title?: string | undefined;
|
|
820
953
|
anchor?: string | undefined;
|
|
821
954
|
postmortem?: boolean | undefined;
|
|
955
|
+
window?: [number, number] | undefined;
|
|
822
956
|
unit?: string | undefined;
|
|
823
957
|
max?: number | undefined;
|
|
824
958
|
min?: number | undefined;
|
|
825
|
-
window?: [number, number] | undefined;
|
|
826
959
|
slot?: "summary" | undefined;
|
|
827
960
|
}, {
|
|
828
961
|
type: "range_overlap";
|
|
@@ -834,10 +967,10 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
834
967
|
title?: string | undefined;
|
|
835
968
|
anchor?: string | undefined;
|
|
836
969
|
postmortem?: boolean | undefined;
|
|
970
|
+
window?: [number, number] | undefined;
|
|
837
971
|
unit?: string | undefined;
|
|
838
972
|
max?: number | undefined;
|
|
839
973
|
min?: number | undefined;
|
|
840
|
-
window?: [number, number] | undefined;
|
|
841
974
|
slot?: "summary" | undefined;
|
|
842
975
|
}>, z.ZodObject<{
|
|
843
976
|
type: z.ZodLiteral<"histogram">;
|
|
@@ -867,17 +1000,17 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
867
1000
|
}, "strict", z.ZodTypeAny, {
|
|
868
1001
|
datasource?: string | undefined;
|
|
869
1002
|
kind?: string | undefined;
|
|
870
|
-
query?: string | undefined;
|
|
871
1003
|
from?: string | undefined;
|
|
872
1004
|
to?: string | undefined;
|
|
1005
|
+
query?: string | undefined;
|
|
873
1006
|
step?: string | undefined;
|
|
874
1007
|
artifact_id?: string | undefined;
|
|
875
1008
|
}, {
|
|
876
1009
|
datasource?: string | undefined;
|
|
877
1010
|
kind?: string | undefined;
|
|
878
|
-
query?: string | undefined;
|
|
879
1011
|
from?: string | undefined;
|
|
880
1012
|
to?: string | undefined;
|
|
1013
|
+
query?: string | undefined;
|
|
881
1014
|
step?: string | undefined;
|
|
882
1015
|
artifact_id?: string | undefined;
|
|
883
1016
|
}>>;
|
|
@@ -895,9 +1028,9 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
895
1028
|
source?: {
|
|
896
1029
|
datasource?: string | undefined;
|
|
897
1030
|
kind?: string | undefined;
|
|
898
|
-
query?: string | undefined;
|
|
899
1031
|
from?: string | undefined;
|
|
900
1032
|
to?: string | undefined;
|
|
1033
|
+
query?: string | undefined;
|
|
901
1034
|
step?: string | undefined;
|
|
902
1035
|
artifact_id?: string | undefined;
|
|
903
1036
|
} | undefined;
|
|
@@ -918,9 +1051,9 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
918
1051
|
source?: {
|
|
919
1052
|
datasource?: string | undefined;
|
|
920
1053
|
kind?: string | undefined;
|
|
921
|
-
query?: string | undefined;
|
|
922
1054
|
from?: string | undefined;
|
|
923
1055
|
to?: string | undefined;
|
|
1056
|
+
query?: string | undefined;
|
|
924
1057
|
step?: string | undefined;
|
|
925
1058
|
artifact_id?: string | undefined;
|
|
926
1059
|
} | undefined;
|
|
@@ -945,16 +1078,16 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
945
1078
|
job: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
946
1079
|
url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
947
1080
|
}, "strict", z.ZodTypeAny, {
|
|
948
|
-
ref: string;
|
|
949
1081
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
1082
|
+
ref: string;
|
|
950
1083
|
at?: string | undefined;
|
|
951
1084
|
url?: string | undefined;
|
|
952
1085
|
sha?: string | undefined;
|
|
953
1086
|
trigger?: string | undefined;
|
|
954
1087
|
job?: string | undefined;
|
|
955
1088
|
}, {
|
|
956
|
-
ref: string;
|
|
957
1089
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
1090
|
+
ref: string;
|
|
958
1091
|
at?: string | undefined;
|
|
959
1092
|
url?: string | undefined;
|
|
960
1093
|
sha?: string | undefined;
|
|
@@ -1001,8 +1134,8 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1001
1134
|
}, "strict", z.ZodTypeAny, {
|
|
1002
1135
|
type: "run_history";
|
|
1003
1136
|
runs: {
|
|
1004
|
-
ref: string;
|
|
1005
1137
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
1138
|
+
ref: string;
|
|
1006
1139
|
at?: string | undefined;
|
|
1007
1140
|
url?: string | undefined;
|
|
1008
1141
|
sha?: string | undefined;
|
|
@@ -1031,8 +1164,8 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1031
1164
|
}, {
|
|
1032
1165
|
type: "run_history";
|
|
1033
1166
|
runs: {
|
|
1034
|
-
ref: string;
|
|
1035
1167
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
1168
|
+
ref: string;
|
|
1036
1169
|
at?: string | undefined;
|
|
1037
1170
|
url?: string | undefined;
|
|
1038
1171
|
sha?: string | undefined;
|
|
@@ -1123,6 +1256,108 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1123
1256
|
postmortem?: boolean | undefined;
|
|
1124
1257
|
repo?: string | undefined;
|
|
1125
1258
|
slot?: "summary" | undefined;
|
|
1259
|
+
}>, z.ZodObject<{
|
|
1260
|
+
type: z.ZodLiteral<"log_lines">;
|
|
1261
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1262
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1263
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1264
|
+
datasource: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1265
|
+
query: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1266
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
to: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
}, "strict", z.ZodTypeAny, {
|
|
1269
|
+
datasource?: string | undefined;
|
|
1270
|
+
kind?: string | undefined;
|
|
1271
|
+
from?: string | undefined;
|
|
1272
|
+
to?: string | undefined;
|
|
1273
|
+
query?: string | undefined;
|
|
1274
|
+
}, {
|
|
1275
|
+
datasource?: string | undefined;
|
|
1276
|
+
kind?: string | undefined;
|
|
1277
|
+
from?: string | undefined;
|
|
1278
|
+
to?: string | undefined;
|
|
1279
|
+
query?: string | undefined;
|
|
1280
|
+
}>>;
|
|
1281
|
+
matched: z.ZodNumber;
|
|
1282
|
+
scanned: z.ZodOptional<z.ZodNumber>;
|
|
1283
|
+
event_at: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1285
|
+
time: z.ZodString;
|
|
1286
|
+
level: z.ZodEnum<["error", "warn", "info", "debug", "other"]>;
|
|
1287
|
+
text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1288
|
+
fields: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, Record<string, string>, Record<string, string>>>;
|
|
1289
|
+
relation: z.ZodOptional<z.ZodEnum<["matches_event", "context", "unrelated"]>>;
|
|
1290
|
+
note: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1291
|
+
}, "strict", z.ZodTypeAny, {
|
|
1292
|
+
text: string;
|
|
1293
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
1294
|
+
time: string;
|
|
1295
|
+
fields?: Record<string, string> | undefined;
|
|
1296
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
1297
|
+
note?: string | undefined;
|
|
1298
|
+
}, {
|
|
1299
|
+
text: string;
|
|
1300
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
1301
|
+
time: string;
|
|
1302
|
+
fields?: Record<string, string> | undefined;
|
|
1303
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
1304
|
+
note?: string | undefined;
|
|
1305
|
+
}>, "many">>;
|
|
1306
|
+
lines_not_shown: z.ZodOptional<z.ZodNumber>;
|
|
1307
|
+
} & {
|
|
1308
|
+
slot: z.ZodOptional<z.ZodLiteral<"summary">>;
|
|
1309
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
postmortem: z.ZodOptional<z.ZodBoolean>;
|
|
1311
|
+
}, "strict", z.ZodTypeAny, {
|
|
1312
|
+
type: "log_lines";
|
|
1313
|
+
matched: number;
|
|
1314
|
+
title?: string | undefined;
|
|
1315
|
+
anchor?: string | undefined;
|
|
1316
|
+
source?: {
|
|
1317
|
+
datasource?: string | undefined;
|
|
1318
|
+
kind?: string | undefined;
|
|
1319
|
+
from?: string | undefined;
|
|
1320
|
+
to?: string | undefined;
|
|
1321
|
+
query?: string | undefined;
|
|
1322
|
+
} | undefined;
|
|
1323
|
+
postmortem?: boolean | undefined;
|
|
1324
|
+
lines?: {
|
|
1325
|
+
text: string;
|
|
1326
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
1327
|
+
time: string;
|
|
1328
|
+
fields?: Record<string, string> | undefined;
|
|
1329
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
1330
|
+
note?: string | undefined;
|
|
1331
|
+
}[] | undefined;
|
|
1332
|
+
scanned?: number | undefined;
|
|
1333
|
+
event_at?: string | undefined;
|
|
1334
|
+
lines_not_shown?: number | undefined;
|
|
1335
|
+
slot?: "summary" | undefined;
|
|
1336
|
+
}, {
|
|
1337
|
+
type: "log_lines";
|
|
1338
|
+
matched: number;
|
|
1339
|
+
title?: string | undefined;
|
|
1340
|
+
anchor?: string | undefined;
|
|
1341
|
+
source?: {
|
|
1342
|
+
datasource?: string | undefined;
|
|
1343
|
+
kind?: string | undefined;
|
|
1344
|
+
from?: string | undefined;
|
|
1345
|
+
to?: string | undefined;
|
|
1346
|
+
query?: string | undefined;
|
|
1347
|
+
} | undefined;
|
|
1348
|
+
postmortem?: boolean | undefined;
|
|
1349
|
+
lines?: {
|
|
1350
|
+
text: string;
|
|
1351
|
+
level: "other" | "info" | "error" | "warn" | "debug";
|
|
1352
|
+
time: string;
|
|
1353
|
+
fields?: Record<string, string> | undefined;
|
|
1354
|
+
relation?: "context" | "matches_event" | "unrelated" | undefined;
|
|
1355
|
+
note?: string | undefined;
|
|
1356
|
+
}[] | undefined;
|
|
1357
|
+
scanned?: number | undefined;
|
|
1358
|
+
event_at?: string | undefined;
|
|
1359
|
+
lines_not_shown?: number | undefined;
|
|
1360
|
+
slot?: "summary" | undefined;
|
|
1126
1361
|
}>]>;
|
|
1127
1362
|
/**
|
|
1128
1363
|
* The light check the timeline tools apply to `blocks`. The full schema above
|
|
@@ -1131,11 +1366,11 @@ export declare const timelineBlockSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1131
1366
|
* type is one the API accepts. tellagen_build_figure does the full check.
|
|
1132
1367
|
*/
|
|
1133
1368
|
export declare const timelineBlockRefSchema: z.ZodObject<{
|
|
1134
|
-
type: z.ZodEnum<["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff"]>;
|
|
1369
|
+
type: z.ZodEnum<["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
|
|
1135
1370
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1136
|
-
type: z.ZodEnum<["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff"]>;
|
|
1371
|
+
type: z.ZodEnum<["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
|
|
1137
1372
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1138
|
-
type: z.ZodEnum<["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff"]>;
|
|
1373
|
+
type: z.ZodEnum<["stats", "compare", "trend", "table", "checks", "changes", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
|
|
1139
1374
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1140
1375
|
/** What tellagen_build_figure accepts. */
|
|
1141
1376
|
export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1150,12 +1385,12 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1150
1385
|
value: string;
|
|
1151
1386
|
label: string;
|
|
1152
1387
|
caption?: string | undefined;
|
|
1153
|
-
tone?: "
|
|
1388
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1154
1389
|
}, {
|
|
1155
1390
|
value: string;
|
|
1156
1391
|
label: string;
|
|
1157
1392
|
caption?: string | undefined;
|
|
1158
|
-
tone?: "
|
|
1393
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1159
1394
|
}>, "many">;
|
|
1160
1395
|
}, "strict", z.ZodTypeAny, {
|
|
1161
1396
|
type: "stats";
|
|
@@ -1163,7 +1398,7 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1163
1398
|
value: string;
|
|
1164
1399
|
label: string;
|
|
1165
1400
|
caption?: string | undefined;
|
|
1166
|
-
tone?: "
|
|
1401
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1167
1402
|
}[];
|
|
1168
1403
|
title?: string | undefined;
|
|
1169
1404
|
}, {
|
|
@@ -1172,7 +1407,7 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1172
1407
|
value: string;
|
|
1173
1408
|
label: string;
|
|
1174
1409
|
caption?: string | undefined;
|
|
1175
|
-
tone?: "
|
|
1410
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1176
1411
|
}[];
|
|
1177
1412
|
title?: string | undefined;
|
|
1178
1413
|
}>, z.ZodObject<{
|
|
@@ -1193,11 +1428,12 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1193
1428
|
value: number;
|
|
1194
1429
|
label?: string | undefined;
|
|
1195
1430
|
}>>;
|
|
1196
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
1431
|
+
rows: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1197
1432
|
label: z.ZodString;
|
|
1198
1433
|
mono: z.ZodOptional<z.ZodBoolean>;
|
|
1199
|
-
before: z.ZodNumber
|
|
1434
|
+
before: z.ZodOptional<z.ZodNumber>;
|
|
1200
1435
|
after: z.ZodNumber;
|
|
1436
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1201
1437
|
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1202
1438
|
label: z.ZodString;
|
|
1203
1439
|
before: z.ZodString;
|
|
@@ -1213,7 +1449,6 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1213
1449
|
}>, "many">>;
|
|
1214
1450
|
}, "strict", z.ZodTypeAny, {
|
|
1215
1451
|
label: string;
|
|
1216
|
-
before: number;
|
|
1217
1452
|
after: number;
|
|
1218
1453
|
details?: {
|
|
1219
1454
|
label: string;
|
|
@@ -1221,9 +1456,10 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1221
1456
|
after: string;
|
|
1222
1457
|
}[] | undefined;
|
|
1223
1458
|
mono?: boolean | undefined;
|
|
1459
|
+
before?: number | undefined;
|
|
1460
|
+
limit?: number | undefined;
|
|
1224
1461
|
}, {
|
|
1225
1462
|
label: string;
|
|
1226
|
-
before: number;
|
|
1227
1463
|
after: number;
|
|
1228
1464
|
details?: {
|
|
1229
1465
|
label: string;
|
|
@@ -1231,12 +1467,35 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1231
1467
|
after: string;
|
|
1232
1468
|
}[] | undefined;
|
|
1233
1469
|
mono?: boolean | undefined;
|
|
1470
|
+
before?: number | undefined;
|
|
1471
|
+
limit?: number | undefined;
|
|
1472
|
+
}>, {
|
|
1473
|
+
label: string;
|
|
1474
|
+
after: number;
|
|
1475
|
+
details?: {
|
|
1476
|
+
label: string;
|
|
1477
|
+
before: string;
|
|
1478
|
+
after: string;
|
|
1479
|
+
}[] | undefined;
|
|
1480
|
+
mono?: boolean | undefined;
|
|
1481
|
+
before?: number | undefined;
|
|
1482
|
+
limit?: number | undefined;
|
|
1483
|
+
}, {
|
|
1484
|
+
label: string;
|
|
1485
|
+
after: number;
|
|
1486
|
+
details?: {
|
|
1487
|
+
label: string;
|
|
1488
|
+
before: string;
|
|
1489
|
+
after: string;
|
|
1490
|
+
}[] | undefined;
|
|
1491
|
+
mono?: boolean | undefined;
|
|
1492
|
+
before?: number | undefined;
|
|
1493
|
+
limit?: number | undefined;
|
|
1234
1494
|
}>, "many">;
|
|
1235
1495
|
}, "strict", z.ZodTypeAny, {
|
|
1236
1496
|
type: "compare";
|
|
1237
1497
|
rows: {
|
|
1238
1498
|
label: string;
|
|
1239
|
-
before: number;
|
|
1240
1499
|
after: number;
|
|
1241
1500
|
details?: {
|
|
1242
1501
|
label: string;
|
|
@@ -1244,6 +1503,8 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1244
1503
|
after: string;
|
|
1245
1504
|
}[] | undefined;
|
|
1246
1505
|
mono?: boolean | undefined;
|
|
1506
|
+
before?: number | undefined;
|
|
1507
|
+
limit?: number | undefined;
|
|
1247
1508
|
}[];
|
|
1248
1509
|
title?: string | undefined;
|
|
1249
1510
|
metric?: string | undefined;
|
|
@@ -1259,7 +1520,6 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1259
1520
|
type: "compare";
|
|
1260
1521
|
rows: {
|
|
1261
1522
|
label: string;
|
|
1262
|
-
before: number;
|
|
1263
1523
|
after: number;
|
|
1264
1524
|
details?: {
|
|
1265
1525
|
label: string;
|
|
@@ -1267,6 +1527,8 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1267
1527
|
after: string;
|
|
1268
1528
|
}[] | undefined;
|
|
1269
1529
|
mono?: boolean | undefined;
|
|
1530
|
+
before?: number | undefined;
|
|
1531
|
+
limit?: number | undefined;
|
|
1270
1532
|
}[];
|
|
1271
1533
|
title?: string | undefined;
|
|
1272
1534
|
metric?: string | undefined;
|
|
@@ -1289,11 +1551,11 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1289
1551
|
t: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1290
1552
|
v: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
1291
1553
|
}, "strict", z.ZodTypeAny, {
|
|
1292
|
-
t: string | number;
|
|
1293
1554
|
v: string | number | null;
|
|
1294
|
-
}, {
|
|
1295
1555
|
t: string | number;
|
|
1556
|
+
}, {
|
|
1296
1557
|
v: string | number | null;
|
|
1558
|
+
t: string | number;
|
|
1297
1559
|
}>, "many">>;
|
|
1298
1560
|
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1299
1561
|
at: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
@@ -1340,17 +1602,17 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1340
1602
|
}, "strict", z.ZodTypeAny, {
|
|
1341
1603
|
datasource?: string | undefined;
|
|
1342
1604
|
kind?: string | undefined;
|
|
1343
|
-
query?: string | undefined;
|
|
1344
1605
|
from?: string | undefined;
|
|
1345
1606
|
to?: string | undefined;
|
|
1607
|
+
query?: string | undefined;
|
|
1346
1608
|
step?: string | undefined;
|
|
1347
1609
|
artifact_id?: string | undefined;
|
|
1348
1610
|
}, {
|
|
1349
1611
|
datasource?: string | undefined;
|
|
1350
1612
|
kind?: string | undefined;
|
|
1351
|
-
query?: string | undefined;
|
|
1352
1613
|
from?: string | undefined;
|
|
1353
1614
|
to?: string | undefined;
|
|
1615
|
+
query?: string | undefined;
|
|
1354
1616
|
step?: string | undefined;
|
|
1355
1617
|
artifact_id?: string | undefined;
|
|
1356
1618
|
}>>;
|
|
@@ -1365,9 +1627,9 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1365
1627
|
source?: {
|
|
1366
1628
|
datasource?: string | undefined;
|
|
1367
1629
|
kind?: string | undefined;
|
|
1368
|
-
query?: string | undefined;
|
|
1369
1630
|
from?: string | undefined;
|
|
1370
1631
|
to?: string | undefined;
|
|
1632
|
+
query?: string | undefined;
|
|
1371
1633
|
step?: string | undefined;
|
|
1372
1634
|
artifact_id?: string | undefined;
|
|
1373
1635
|
} | undefined;
|
|
@@ -1385,8 +1647,8 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1385
1647
|
i: number;
|
|
1386
1648
|
}[] | undefined;
|
|
1387
1649
|
points?: {
|
|
1388
|
-
t: string | number;
|
|
1389
1650
|
v: string | number | null;
|
|
1651
|
+
t: string | number;
|
|
1390
1652
|
}[] | undefined;
|
|
1391
1653
|
max_points?: number | undefined;
|
|
1392
1654
|
precision?: number | undefined;
|
|
@@ -1401,9 +1663,9 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1401
1663
|
source?: {
|
|
1402
1664
|
datasource?: string | undefined;
|
|
1403
1665
|
kind?: string | undefined;
|
|
1404
|
-
query?: string | undefined;
|
|
1405
1666
|
from?: string | undefined;
|
|
1406
1667
|
to?: string | undefined;
|
|
1668
|
+
query?: string | undefined;
|
|
1407
1669
|
step?: string | undefined;
|
|
1408
1670
|
artifact_id?: string | undefined;
|
|
1409
1671
|
} | undefined;
|
|
@@ -1421,8 +1683,8 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1421
1683
|
i: number;
|
|
1422
1684
|
}[] | undefined;
|
|
1423
1685
|
points?: {
|
|
1424
|
-
t: string | number;
|
|
1425
1686
|
v: string | number | null;
|
|
1687
|
+
t: string | number;
|
|
1426
1688
|
}[] | undefined;
|
|
1427
1689
|
max_points?: number | undefined;
|
|
1428
1690
|
precision?: number | undefined;
|
|
@@ -1503,31 +1765,31 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1503
1765
|
note: z.ZodOptional<z.ZodString>;
|
|
1504
1766
|
}, "strict", z.ZodTypeAny, {
|
|
1505
1767
|
label: string;
|
|
1768
|
+
note?: string | undefined;
|
|
1506
1769
|
from?: string | undefined;
|
|
1507
1770
|
to?: string | undefined;
|
|
1508
|
-
note?: string | undefined;
|
|
1509
1771
|
}, {
|
|
1510
1772
|
label: string;
|
|
1773
|
+
note?: string | undefined;
|
|
1511
1774
|
from?: string | undefined;
|
|
1512
1775
|
to?: string | undefined;
|
|
1513
|
-
note?: string | undefined;
|
|
1514
1776
|
}>, "many">;
|
|
1515
1777
|
}, "strict", z.ZodTypeAny, {
|
|
1516
1778
|
type: "changes";
|
|
1517
1779
|
rows: {
|
|
1518
1780
|
label: string;
|
|
1781
|
+
note?: string | undefined;
|
|
1519
1782
|
from?: string | undefined;
|
|
1520
1783
|
to?: string | undefined;
|
|
1521
|
-
note?: string | undefined;
|
|
1522
1784
|
}[];
|
|
1523
1785
|
title?: string | undefined;
|
|
1524
1786
|
}, {
|
|
1525
1787
|
type: "changes";
|
|
1526
1788
|
rows: {
|
|
1527
1789
|
label: string;
|
|
1790
|
+
note?: string | undefined;
|
|
1528
1791
|
from?: string | undefined;
|
|
1529
1792
|
to?: string | undefined;
|
|
1530
|
-
note?: string | undefined;
|
|
1531
1793
|
}[];
|
|
1532
1794
|
title?: string | undefined;
|
|
1533
1795
|
}>, z.ZodObject<{
|
|
@@ -1558,10 +1820,10 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1558
1820
|
to: number;
|
|
1559
1821
|
}[];
|
|
1560
1822
|
title?: string | undefined;
|
|
1823
|
+
window?: [number, number] | undefined;
|
|
1561
1824
|
unit?: string | undefined;
|
|
1562
1825
|
max?: number | undefined;
|
|
1563
1826
|
min?: number | undefined;
|
|
1564
|
-
window?: [number, number] | undefined;
|
|
1565
1827
|
}, {
|
|
1566
1828
|
type: "range_overlap";
|
|
1567
1829
|
rows: {
|
|
@@ -1570,10 +1832,10 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1570
1832
|
to: number;
|
|
1571
1833
|
}[];
|
|
1572
1834
|
title?: string | undefined;
|
|
1835
|
+
window?: [number, number] | undefined;
|
|
1573
1836
|
unit?: string | undefined;
|
|
1574
1837
|
max?: number | undefined;
|
|
1575
1838
|
min?: number | undefined;
|
|
1576
|
-
window?: [number, number] | undefined;
|
|
1577
1839
|
}>, z.ZodObject<{
|
|
1578
1840
|
type: z.ZodLiteral<"histogram">;
|
|
1579
1841
|
title: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -1617,17 +1879,17 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1617
1879
|
}, "strict", z.ZodTypeAny, {
|
|
1618
1880
|
datasource?: string | undefined;
|
|
1619
1881
|
kind?: string | undefined;
|
|
1620
|
-
query?: string | undefined;
|
|
1621
1882
|
from?: string | undefined;
|
|
1622
1883
|
to?: string | undefined;
|
|
1884
|
+
query?: string | undefined;
|
|
1623
1885
|
step?: string | undefined;
|
|
1624
1886
|
artifact_id?: string | undefined;
|
|
1625
1887
|
}, {
|
|
1626
1888
|
datasource?: string | undefined;
|
|
1627
1889
|
kind?: string | undefined;
|
|
1628
|
-
query?: string | undefined;
|
|
1629
1890
|
from?: string | undefined;
|
|
1630
1891
|
to?: string | undefined;
|
|
1892
|
+
query?: string | undefined;
|
|
1631
1893
|
step?: string | undefined;
|
|
1632
1894
|
artifact_id?: string | undefined;
|
|
1633
1895
|
}>>;
|
|
@@ -1637,9 +1899,9 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1637
1899
|
source?: {
|
|
1638
1900
|
datasource?: string | undefined;
|
|
1639
1901
|
kind?: string | undefined;
|
|
1640
|
-
query?: string | undefined;
|
|
1641
1902
|
from?: string | undefined;
|
|
1642
1903
|
to?: string | undefined;
|
|
1904
|
+
query?: string | undefined;
|
|
1643
1905
|
step?: string | undefined;
|
|
1644
1906
|
artifact_id?: string | undefined;
|
|
1645
1907
|
} | undefined;
|
|
@@ -1664,9 +1926,9 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1664
1926
|
source?: {
|
|
1665
1927
|
datasource?: string | undefined;
|
|
1666
1928
|
kind?: string | undefined;
|
|
1667
|
-
query?: string | undefined;
|
|
1668
1929
|
from?: string | undefined;
|
|
1669
1930
|
to?: string | undefined;
|
|
1931
|
+
query?: string | undefined;
|
|
1670
1932
|
step?: string | undefined;
|
|
1671
1933
|
artifact_id?: string | undefined;
|
|
1672
1934
|
} | undefined;
|
|
@@ -1699,16 +1961,16 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1699
1961
|
job: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1700
1962
|
url: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1701
1963
|
}, "strict", z.ZodTypeAny, {
|
|
1702
|
-
ref: string;
|
|
1703
1964
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
1965
|
+
ref: string;
|
|
1704
1966
|
at?: string | undefined;
|
|
1705
1967
|
url?: string | undefined;
|
|
1706
1968
|
sha?: string | undefined;
|
|
1707
1969
|
trigger?: string | undefined;
|
|
1708
1970
|
job?: string | undefined;
|
|
1709
1971
|
}, {
|
|
1710
|
-
ref: string;
|
|
1711
1972
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
1973
|
+
ref: string;
|
|
1712
1974
|
at?: string | undefined;
|
|
1713
1975
|
url?: string | undefined;
|
|
1714
1976
|
sha?: string | undefined;
|
|
@@ -1813,8 +2075,8 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1813
2075
|
repo?: string | undefined;
|
|
1814
2076
|
branch?: string | undefined;
|
|
1815
2077
|
runs?: {
|
|
1816
|
-
ref: string;
|
|
1817
2078
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
2079
|
+
ref: string;
|
|
1818
2080
|
at?: string | undefined;
|
|
1819
2081
|
url?: string | undefined;
|
|
1820
2082
|
sha?: string | undefined;
|
|
@@ -1858,8 +2120,8 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1858
2120
|
repo?: string | undefined;
|
|
1859
2121
|
branch?: string | undefined;
|
|
1860
2122
|
runs?: {
|
|
1861
|
-
ref: string;
|
|
1862
2123
|
result: "pending" | "success" | "failure" | "cancelled";
|
|
2124
|
+
ref: string;
|
|
1863
2125
|
at?: string | undefined;
|
|
1864
2126
|
url?: string | undefined;
|
|
1865
2127
|
sha?: string | undefined;
|
|
@@ -1951,10 +2213,120 @@ export declare const figureInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
1951
2213
|
repo?: string | undefined;
|
|
1952
2214
|
patch?: string | undefined;
|
|
1953
2215
|
select_hunks?: number[] | undefined;
|
|
2216
|
+
}>, z.ZodObject<{
|
|
2217
|
+
type: z.ZodLiteral<"log_lines">;
|
|
2218
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2219
|
+
query: z.ZodOptional<z.ZodString>;
|
|
2220
|
+
datasource: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2221
|
+
kind: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2222
|
+
from: z.ZodOptional<z.ZodString>;
|
|
2223
|
+
to: z.ZodOptional<z.ZodString>;
|
|
2224
|
+
streams: z.ZodOptional<z.ZodUnknown>;
|
|
2225
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
2226
|
+
matched: z.ZodOptional<z.ZodNumber>;
|
|
2227
|
+
scanned: z.ZodOptional<z.ZodNumber>;
|
|
2228
|
+
event_at: z.ZodOptional<z.ZodString>;
|
|
2229
|
+
match: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2230
|
+
marks: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2231
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
2232
|
+
field: z.ZodOptional<z.ZodObject<{
|
|
2233
|
+
key: z.ZodString;
|
|
2234
|
+
value: z.ZodString;
|
|
2235
|
+
}, "strict", z.ZodTypeAny, {
|
|
2236
|
+
value: string;
|
|
2237
|
+
key: string;
|
|
2238
|
+
}, {
|
|
2239
|
+
value: string;
|
|
2240
|
+
key: string;
|
|
2241
|
+
}>>;
|
|
2242
|
+
relation: z.ZodEnum<["matches_event", "context", "unrelated"]>;
|
|
2243
|
+
note: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2244
|
+
}, "strict", z.ZodTypeAny, {
|
|
2245
|
+
relation: "context" | "matches_event" | "unrelated";
|
|
2246
|
+
field?: {
|
|
2247
|
+
value: string;
|
|
2248
|
+
key: string;
|
|
2249
|
+
} | undefined;
|
|
2250
|
+
note?: string | undefined;
|
|
2251
|
+
contains?: string | undefined;
|
|
2252
|
+
}, {
|
|
2253
|
+
relation: "context" | "matches_event" | "unrelated";
|
|
2254
|
+
field?: {
|
|
2255
|
+
value: string;
|
|
2256
|
+
key: string;
|
|
2257
|
+
} | undefined;
|
|
2258
|
+
note?: string | undefined;
|
|
2259
|
+
contains?: string | undefined;
|
|
2260
|
+
}>, {
|
|
2261
|
+
relation: "context" | "matches_event" | "unrelated";
|
|
2262
|
+
field?: {
|
|
2263
|
+
value: string;
|
|
2264
|
+
key: string;
|
|
2265
|
+
} | undefined;
|
|
2266
|
+
note?: string | undefined;
|
|
2267
|
+
contains?: string | undefined;
|
|
2268
|
+
}, {
|
|
2269
|
+
relation: "context" | "matches_event" | "unrelated";
|
|
2270
|
+
field?: {
|
|
2271
|
+
value: string;
|
|
2272
|
+
key: string;
|
|
2273
|
+
} | undefined;
|
|
2274
|
+
note?: string | undefined;
|
|
2275
|
+
contains?: string | undefined;
|
|
2276
|
+
}>, "many">>;
|
|
2277
|
+
field_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2278
|
+
}, "strict", z.ZodTypeAny, {
|
|
2279
|
+
type: "log_lines";
|
|
2280
|
+
entries?: Record<string, unknown>[] | undefined;
|
|
2281
|
+
title?: string | undefined;
|
|
2282
|
+
datasource?: string | undefined;
|
|
2283
|
+
kind?: string | undefined;
|
|
2284
|
+
match?: string[] | undefined;
|
|
2285
|
+
from?: string | undefined;
|
|
2286
|
+
to?: string | undefined;
|
|
2287
|
+
query?: string | undefined;
|
|
2288
|
+
marks?: {
|
|
2289
|
+
relation: "context" | "matches_event" | "unrelated";
|
|
2290
|
+
field?: {
|
|
2291
|
+
value: string;
|
|
2292
|
+
key: string;
|
|
2293
|
+
} | undefined;
|
|
2294
|
+
note?: string | undefined;
|
|
2295
|
+
contains?: string | undefined;
|
|
2296
|
+
}[] | undefined;
|
|
2297
|
+
matched?: number | undefined;
|
|
2298
|
+
scanned?: number | undefined;
|
|
2299
|
+
event_at?: string | undefined;
|
|
2300
|
+
streams?: unknown;
|
|
2301
|
+
field_keys?: string[] | undefined;
|
|
2302
|
+
}, {
|
|
2303
|
+
type: "log_lines";
|
|
2304
|
+
entries?: Record<string, unknown>[] | undefined;
|
|
2305
|
+
title?: string | undefined;
|
|
2306
|
+
datasource?: string | undefined;
|
|
2307
|
+
kind?: string | undefined;
|
|
2308
|
+
match?: string[] | undefined;
|
|
2309
|
+
from?: string | undefined;
|
|
2310
|
+
to?: string | undefined;
|
|
2311
|
+
query?: string | undefined;
|
|
2312
|
+
marks?: {
|
|
2313
|
+
relation: "context" | "matches_event" | "unrelated";
|
|
2314
|
+
field?: {
|
|
2315
|
+
value: string;
|
|
2316
|
+
key: string;
|
|
2317
|
+
} | undefined;
|
|
2318
|
+
note?: string | undefined;
|
|
2319
|
+
contains?: string | undefined;
|
|
2320
|
+
}[] | undefined;
|
|
2321
|
+
matched?: number | undefined;
|
|
2322
|
+
scanned?: number | undefined;
|
|
2323
|
+
event_at?: string | undefined;
|
|
2324
|
+
streams?: unknown;
|
|
2325
|
+
field_keys?: string[] | undefined;
|
|
1954
2326
|
}>]>;
|
|
1955
2327
|
export type FigureInput = z.infer<typeof figureInputSchema>;
|
|
1956
2328
|
/** The four figure types whose fields the tool listing leaves to the guide. */
|
|
1957
|
-
export declare const GUIDE_ONLY_FIGURE_TYPES: readonly ["range_overlap", "histogram", "run_history", "diff"];
|
|
2329
|
+
export declare const GUIDE_ONLY_FIGURE_TYPES: readonly ["range_overlap", "histogram", "run_history", "diff", "log_lines"];
|
|
1958
2330
|
/**
|
|
1959
2331
|
* The figure as tellagen_build_figure lists it. The six original types carry
|
|
1960
2332
|
* their full schema; the four newer ones only their type, so the listing stays
|
|
@@ -1973,12 +2345,12 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1973
2345
|
value: string;
|
|
1974
2346
|
label: string;
|
|
1975
2347
|
caption?: string | undefined;
|
|
1976
|
-
tone?: "
|
|
2348
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1977
2349
|
}, {
|
|
1978
2350
|
value: string;
|
|
1979
2351
|
label: string;
|
|
1980
2352
|
caption?: string | undefined;
|
|
1981
|
-
tone?: "
|
|
2353
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1982
2354
|
}>, "many">;
|
|
1983
2355
|
}, "strict", z.ZodTypeAny, {
|
|
1984
2356
|
type: "stats";
|
|
@@ -1986,7 +2358,7 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1986
2358
|
value: string;
|
|
1987
2359
|
label: string;
|
|
1988
2360
|
caption?: string | undefined;
|
|
1989
|
-
tone?: "
|
|
2361
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1990
2362
|
}[];
|
|
1991
2363
|
title?: string | undefined;
|
|
1992
2364
|
}, {
|
|
@@ -1995,7 +2367,7 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1995
2367
|
value: string;
|
|
1996
2368
|
label: string;
|
|
1997
2369
|
caption?: string | undefined;
|
|
1998
|
-
tone?: "
|
|
2370
|
+
tone?: "warn" | "good" | "bad" | "neutral" | undefined;
|
|
1999
2371
|
}[];
|
|
2000
2372
|
title?: string | undefined;
|
|
2001
2373
|
}>, z.ZodObject<{
|
|
@@ -2016,11 +2388,12 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2016
2388
|
value: number;
|
|
2017
2389
|
label?: string | undefined;
|
|
2018
2390
|
}>>;
|
|
2019
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
2391
|
+
rows: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2020
2392
|
label: z.ZodString;
|
|
2021
2393
|
mono: z.ZodOptional<z.ZodBoolean>;
|
|
2022
|
-
before: z.ZodNumber
|
|
2394
|
+
before: z.ZodOptional<z.ZodNumber>;
|
|
2023
2395
|
after: z.ZodNumber;
|
|
2396
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2024
2397
|
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2025
2398
|
label: z.ZodString;
|
|
2026
2399
|
before: z.ZodString;
|
|
@@ -2036,7 +2409,6 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2036
2409
|
}>, "many">>;
|
|
2037
2410
|
}, "strict", z.ZodTypeAny, {
|
|
2038
2411
|
label: string;
|
|
2039
|
-
before: number;
|
|
2040
2412
|
after: number;
|
|
2041
2413
|
details?: {
|
|
2042
2414
|
label: string;
|
|
@@ -2044,9 +2416,32 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2044
2416
|
after: string;
|
|
2045
2417
|
}[] | undefined;
|
|
2046
2418
|
mono?: boolean | undefined;
|
|
2419
|
+
before?: number | undefined;
|
|
2420
|
+
limit?: number | undefined;
|
|
2421
|
+
}, {
|
|
2422
|
+
label: string;
|
|
2423
|
+
after: number;
|
|
2424
|
+
details?: {
|
|
2425
|
+
label: string;
|
|
2426
|
+
before: string;
|
|
2427
|
+
after: string;
|
|
2428
|
+
}[] | undefined;
|
|
2429
|
+
mono?: boolean | undefined;
|
|
2430
|
+
before?: number | undefined;
|
|
2431
|
+
limit?: number | undefined;
|
|
2432
|
+
}>, {
|
|
2433
|
+
label: string;
|
|
2434
|
+
after: number;
|
|
2435
|
+
details?: {
|
|
2436
|
+
label: string;
|
|
2437
|
+
before: string;
|
|
2438
|
+
after: string;
|
|
2439
|
+
}[] | undefined;
|
|
2440
|
+
mono?: boolean | undefined;
|
|
2441
|
+
before?: number | undefined;
|
|
2442
|
+
limit?: number | undefined;
|
|
2047
2443
|
}, {
|
|
2048
2444
|
label: string;
|
|
2049
|
-
before: number;
|
|
2050
2445
|
after: number;
|
|
2051
2446
|
details?: {
|
|
2052
2447
|
label: string;
|
|
@@ -2054,12 +2449,13 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2054
2449
|
after: string;
|
|
2055
2450
|
}[] | undefined;
|
|
2056
2451
|
mono?: boolean | undefined;
|
|
2452
|
+
before?: number | undefined;
|
|
2453
|
+
limit?: number | undefined;
|
|
2057
2454
|
}>, "many">;
|
|
2058
2455
|
}, "strict", z.ZodTypeAny, {
|
|
2059
2456
|
type: "compare";
|
|
2060
2457
|
rows: {
|
|
2061
2458
|
label: string;
|
|
2062
|
-
before: number;
|
|
2063
2459
|
after: number;
|
|
2064
2460
|
details?: {
|
|
2065
2461
|
label: string;
|
|
@@ -2067,6 +2463,8 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2067
2463
|
after: string;
|
|
2068
2464
|
}[] | undefined;
|
|
2069
2465
|
mono?: boolean | undefined;
|
|
2466
|
+
before?: number | undefined;
|
|
2467
|
+
limit?: number | undefined;
|
|
2070
2468
|
}[];
|
|
2071
2469
|
title?: string | undefined;
|
|
2072
2470
|
metric?: string | undefined;
|
|
@@ -2082,7 +2480,6 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2082
2480
|
type: "compare";
|
|
2083
2481
|
rows: {
|
|
2084
2482
|
label: string;
|
|
2085
|
-
before: number;
|
|
2086
2483
|
after: number;
|
|
2087
2484
|
details?: {
|
|
2088
2485
|
label: string;
|
|
@@ -2090,6 +2487,8 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2090
2487
|
after: string;
|
|
2091
2488
|
}[] | undefined;
|
|
2092
2489
|
mono?: boolean | undefined;
|
|
2490
|
+
before?: number | undefined;
|
|
2491
|
+
limit?: number | undefined;
|
|
2093
2492
|
}[];
|
|
2094
2493
|
title?: string | undefined;
|
|
2095
2494
|
metric?: string | undefined;
|
|
@@ -2112,11 +2511,11 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2112
2511
|
t: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2113
2512
|
v: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
2114
2513
|
}, "strict", z.ZodTypeAny, {
|
|
2115
|
-
t: string | number;
|
|
2116
2514
|
v: string | number | null;
|
|
2117
|
-
}, {
|
|
2118
2515
|
t: string | number;
|
|
2516
|
+
}, {
|
|
2119
2517
|
v: string | number | null;
|
|
2518
|
+
t: string | number;
|
|
2120
2519
|
}>, "many">>;
|
|
2121
2520
|
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2122
2521
|
at: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
@@ -2163,17 +2562,17 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2163
2562
|
}, "strict", z.ZodTypeAny, {
|
|
2164
2563
|
datasource?: string | undefined;
|
|
2165
2564
|
kind?: string | undefined;
|
|
2166
|
-
query?: string | undefined;
|
|
2167
2565
|
from?: string | undefined;
|
|
2168
2566
|
to?: string | undefined;
|
|
2567
|
+
query?: string | undefined;
|
|
2169
2568
|
step?: string | undefined;
|
|
2170
2569
|
artifact_id?: string | undefined;
|
|
2171
2570
|
}, {
|
|
2172
2571
|
datasource?: string | undefined;
|
|
2173
2572
|
kind?: string | undefined;
|
|
2174
|
-
query?: string | undefined;
|
|
2175
2573
|
from?: string | undefined;
|
|
2176
2574
|
to?: string | undefined;
|
|
2575
|
+
query?: string | undefined;
|
|
2177
2576
|
step?: string | undefined;
|
|
2178
2577
|
artifact_id?: string | undefined;
|
|
2179
2578
|
}>>;
|
|
@@ -2188,9 +2587,9 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2188
2587
|
source?: {
|
|
2189
2588
|
datasource?: string | undefined;
|
|
2190
2589
|
kind?: string | undefined;
|
|
2191
|
-
query?: string | undefined;
|
|
2192
2590
|
from?: string | undefined;
|
|
2193
2591
|
to?: string | undefined;
|
|
2592
|
+
query?: string | undefined;
|
|
2194
2593
|
step?: string | undefined;
|
|
2195
2594
|
artifact_id?: string | undefined;
|
|
2196
2595
|
} | undefined;
|
|
@@ -2208,8 +2607,8 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2208
2607
|
i: number;
|
|
2209
2608
|
}[] | undefined;
|
|
2210
2609
|
points?: {
|
|
2211
|
-
t: string | number;
|
|
2212
2610
|
v: string | number | null;
|
|
2611
|
+
t: string | number;
|
|
2213
2612
|
}[] | undefined;
|
|
2214
2613
|
max_points?: number | undefined;
|
|
2215
2614
|
precision?: number | undefined;
|
|
@@ -2224,9 +2623,9 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2224
2623
|
source?: {
|
|
2225
2624
|
datasource?: string | undefined;
|
|
2226
2625
|
kind?: string | undefined;
|
|
2227
|
-
query?: string | undefined;
|
|
2228
2626
|
from?: string | undefined;
|
|
2229
2627
|
to?: string | undefined;
|
|
2628
|
+
query?: string | undefined;
|
|
2230
2629
|
step?: string | undefined;
|
|
2231
2630
|
artifact_id?: string | undefined;
|
|
2232
2631
|
} | undefined;
|
|
@@ -2244,8 +2643,8 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2244
2643
|
i: number;
|
|
2245
2644
|
}[] | undefined;
|
|
2246
2645
|
points?: {
|
|
2247
|
-
t: string | number;
|
|
2248
2646
|
v: string | number | null;
|
|
2647
|
+
t: string | number;
|
|
2249
2648
|
}[] | undefined;
|
|
2250
2649
|
max_points?: number | undefined;
|
|
2251
2650
|
precision?: number | undefined;
|
|
@@ -2326,39 +2725,39 @@ export declare const figureToolInputSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2326
2725
|
note: z.ZodOptional<z.ZodString>;
|
|
2327
2726
|
}, "strict", z.ZodTypeAny, {
|
|
2328
2727
|
label: string;
|
|
2728
|
+
note?: string | undefined;
|
|
2329
2729
|
from?: string | undefined;
|
|
2330
2730
|
to?: string | undefined;
|
|
2331
|
-
note?: string | undefined;
|
|
2332
2731
|
}, {
|
|
2333
2732
|
label: string;
|
|
2733
|
+
note?: string | undefined;
|
|
2334
2734
|
from?: string | undefined;
|
|
2335
2735
|
to?: string | undefined;
|
|
2336
|
-
note?: string | undefined;
|
|
2337
2736
|
}>, "many">;
|
|
2338
2737
|
}, "strict", z.ZodTypeAny, {
|
|
2339
2738
|
type: "changes";
|
|
2340
2739
|
rows: {
|
|
2341
2740
|
label: string;
|
|
2741
|
+
note?: string | undefined;
|
|
2342
2742
|
from?: string | undefined;
|
|
2343
2743
|
to?: string | undefined;
|
|
2344
|
-
note?: string | undefined;
|
|
2345
2744
|
}[];
|
|
2346
2745
|
title?: string | undefined;
|
|
2347
2746
|
}, {
|
|
2348
2747
|
type: "changes";
|
|
2349
2748
|
rows: {
|
|
2350
2749
|
label: string;
|
|
2750
|
+
note?: string | undefined;
|
|
2351
2751
|
from?: string | undefined;
|
|
2352
2752
|
to?: string | undefined;
|
|
2353
|
-
note?: string | undefined;
|
|
2354
2753
|
}[];
|
|
2355
2754
|
title?: string | undefined;
|
|
2356
2755
|
}>, z.ZodObject<{
|
|
2357
|
-
type: z.ZodEnum<["range_overlap", "histogram", "run_history", "diff"]>;
|
|
2756
|
+
type: z.ZodEnum<["range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
|
|
2358
2757
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2359
|
-
type: z.ZodEnum<["range_overlap", "histogram", "run_history", "diff"]>;
|
|
2758
|
+
type: z.ZodEnum<["range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
|
|
2360
2759
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2361
|
-
type: z.ZodEnum<["range_overlap", "histogram", "run_history", "diff"]>;
|
|
2760
|
+
type: z.ZodEnum<["range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
|
|
2362
2761
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2363
2762
|
export type BuildFigureInput = {
|
|
2364
2763
|
placement: FigurePlacement;
|
|
@@ -2388,8 +2787,16 @@ export declare function validateBlock(block: unknown): string[];
|
|
|
2388
2787
|
export type FigureOptions = {
|
|
2389
2788
|
/** The server lists figure_extras_v1: a stats title, more than 4 stats and runs_not_shown. */
|
|
2390
2789
|
figureExtras?: boolean;
|
|
2790
|
+
/** The server lists figure_limits_v1: a compare row may carry a limit. */
|
|
2791
|
+
figureLimits?: boolean;
|
|
2391
2792
|
/** The server lists diff_lines_v1: a diff may carry unchanged lines and line numbers. */
|
|
2392
2793
|
diffLines?: boolean;
|
|
2794
|
+
/** The server lists log_lines_v1: it takes a log_lines figure. */
|
|
2795
|
+
logLines?: boolean;
|
|
2796
|
+
/** The window of the run, the default range of a log_lines figure. */
|
|
2797
|
+
window?: RunWindow;
|
|
2798
|
+
/** The clock, for the end of an open window. */
|
|
2799
|
+
now?: Date;
|
|
2393
2800
|
};
|
|
2394
2801
|
/**
|
|
2395
2802
|
* A diff block as a server without diff_lines_v1 takes it: no unchanged lines
|
|
@@ -2408,6 +2815,18 @@ export declare function withoutFigureExtrasInBlock(block: unknown): {
|
|
|
2408
2815
|
block: unknown;
|
|
2409
2816
|
what: string[];
|
|
2410
2817
|
};
|
|
2818
|
+
/**
|
|
2819
|
+
* A compare block as a server without figure_limits_v1 takes it: no `limit`
|
|
2820
|
+
* on a row. A row that had only a limit has no before then, so `unusable` is
|
|
2821
|
+
* true and the figure cannot be sent. Any other block is returned as it is.
|
|
2822
|
+
*/
|
|
2823
|
+
export declare function withoutFigureLimitsInBlock(block: unknown): {
|
|
2824
|
+
block: unknown;
|
|
2825
|
+
what: string[];
|
|
2826
|
+
unusable: boolean;
|
|
2827
|
+
};
|
|
2828
|
+
/** Whether a block is a log_lines figure. */
|
|
2829
|
+
export declare function isLogLinesBlock(block: unknown): boolean;
|
|
2411
2830
|
/**
|
|
2412
2831
|
* Turns the numbers an agent already read from a tool result into a figure
|
|
2413
2832
|
* Tellagen accepts. It reshapes and checks. It has no data source of its own
|