@tellagen/mcp-server 0.5.0 → 0.6.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.
Files changed (85) hide show
  1. package/README.md +32 -6
  2. package/SKILL.md +44 -7
  3. package/contracts/mcp-protocol.json +13 -1
  4. package/contracts/runbooks/manifest.json +20 -10
  5. package/contracts/runbooks/v2/client-protocol.json +59 -2
  6. package/contracts/runbooks/v2/client-writes.guidance.json +16 -1
  7. package/contracts/runbooks/v2/fixtures/timeline-event-blocks-rejected.json +15 -1
  8. package/contracts/runbooks/v2/investigation-window.guidance.json +45 -0
  9. package/contracts/runbooks/v2/question-checks.guidance.json +49 -0
  10. package/contracts/runbooks/v2/timeline-event-blocks.schema.json +62 -1
  11. package/contracts/tellagen-runbook-contracts.json +3 -3
  12. package/dist/cli/doctor.d.ts +19 -0
  13. package/dist/cli/doctor.js +212 -0
  14. package/dist/cli/doctor.js.map +1 -0
  15. package/dist/cli/main.js +5 -0
  16. package/dist/cli/main.js.map +1 -1
  17. package/dist/diagnosis-structure.d.ts +131 -106
  18. package/dist/diagnosis-structure.js +64 -7
  19. package/dist/diagnosis-structure.js.map +1 -1
  20. package/dist/doctor/checks.d.ts +42 -0
  21. package/dist/doctor/checks.js +175 -0
  22. package/dist/doctor/checks.js.map +1 -0
  23. package/dist/doctor/config-files.d.ts +49 -0
  24. package/dist/doctor/config-files.js +121 -0
  25. package/dist/doctor/config-files.js.map +1 -0
  26. package/dist/doctor/toml.d.ts +13 -0
  27. package/dist/doctor/toml.js +205 -0
  28. package/dist/doctor/toml.js.map +1 -0
  29. package/dist/figures.d.ts +447 -123
  30. package/dist/figures.js +297 -5
  31. package/dist/figures.js.map +1 -1
  32. package/dist/index.js +1 -1
  33. package/dist/index.js.map +1 -1
  34. package/dist/k8s-safety.d.ts +42 -0
  35. package/dist/k8s-safety.js +33 -0
  36. package/dist/k8s-safety.js.map +1 -0
  37. package/dist/log-lines.d.ts +118 -0
  38. package/dist/log-lines.js +534 -0
  39. package/dist/log-lines.js.map +1 -0
  40. package/dist/redact.d.ts +21 -0
  41. package/dist/redact.js +212 -5
  42. package/dist/redact.js.map +1 -1
  43. package/dist/run-state.d.ts +37 -0
  44. package/dist/run-state.js +14 -0
  45. package/dist/run-state.js.map +1 -1
  46. package/dist/run-window.d.ts +59 -0
  47. package/dist/run-window.js +141 -0
  48. package/dist/run-window.js.map +1 -0
  49. package/dist/server.d.ts +1 -1
  50. package/dist/server.js +1 -1
  51. package/dist/session.d.ts +13 -0
  52. package/dist/session.js +32 -0
  53. package/dist/session.js.map +1 -1
  54. package/dist/source-bases.d.ts +75 -0
  55. package/dist/source-bases.js +125 -0
  56. package/dist/source-bases.js.map +1 -0
  57. package/dist/tool-report.d.ts +2 -0
  58. package/dist/tool-report.js +3 -0
  59. package/dist/tool-report.js.map +1 -0
  60. package/dist/tools/catalog.js +1 -0
  61. package/dist/tools/catalog.js.map +1 -1
  62. package/dist/tools/datasources.js +70 -13
  63. package/dist/tools/datasources.js.map +1 -1
  64. package/dist/tools/diagnostics.js +85 -2
  65. package/dist/tools/diagnostics.js.map +1 -1
  66. package/dist/tools/figures.d.ts +2 -2
  67. package/dist/tools/figures.js +29 -7
  68. package/dist/tools/figures.js.map +1 -1
  69. package/dist/tools/findings.d.ts +8 -0
  70. package/dist/tools/findings.js +63 -2
  71. package/dist/tools/findings.js.map +1 -1
  72. package/dist/tools/investigations.d.ts +1 -1
  73. package/dist/tools/investigations.js +46 -4
  74. package/dist/tools/investigations.js.map +1 -1
  75. package/dist/tools/postmortem-runbooks.d.ts +20 -20
  76. package/dist/tools/source-links.d.ts +23 -0
  77. package/dist/tools/source-links.js +53 -16
  78. package/dist/tools/source-links.js.map +1 -1
  79. package/dist/tools/timeline.js +13 -2
  80. package/dist/tools/timeline.js.map +1 -1
  81. package/dist/version.d.ts +2 -2
  82. package/dist/version.js +3 -1
  83. package/dist/version.js.map +1 -1
  84. package/package.json +1 -1
  85. package/server.json +5 -5
@@ -18,6 +18,7 @@
18
18
  import { z } from "zod";
19
19
  import type { TellagenClient } from "./client.js";
20
20
  import { FIGURE_EXTRAS_CAPABILITY } from "./figures.js";
21
+ import { type RunWindow } from "./run-window.js";
21
22
  import { RECORDED_STEPS_CAPABILITY } from "./trace-record.js";
22
23
  export { RECORDED_STEPS_CAPABILITY };
23
24
  export declare const DIAGNOSIS_STRUCTURE_CAPABILITY = "diagnosis_structure_v1";
@@ -27,6 +28,8 @@ export declare const DIAGNOSIS_CHANGES_CAPABILITY = "diagnosis_changes_v1";
27
28
  export declare const RUN_IMAGES_CAPABILITY = "run_images_v1";
28
29
  /** The server takes unchanged lines and line numbers in a diff figure. */
29
30
  export declare const DIFF_LINES_CAPABILITY = "diff_lines_v1";
31
+ /** The server takes a log_lines figure. */
32
+ export declare const LOG_LINES_CAPABILITY = "log_lines_v1";
30
33
  export { FIGURE_EXTRAS_CAPABILITY };
31
34
  /**
32
35
  * Remembers the capabilities the backend that answered a pickup or context
@@ -53,6 +56,19 @@ export declare function supportsDiffLines(client: TellagenClient, runId?: string
53
56
  * runs_not_shown. Decided like supportsDiffLines.
54
57
  */
55
58
  export declare function supportsFigureExtras(client: TellagenClient, runId?: string): Promise<boolean>;
59
+ /**
60
+ * Whether the backend takes a log_lines figure. Decided like supportsDiffLines:
61
+ * with a run id it asks for that run, otherwise the latest pickup of this
62
+ * process decides, and with no pickup yet the answer is no.
63
+ */
64
+ export declare function supportsLogLines(client: TellagenClient, runId?: string): Promise<boolean>;
65
+ /**
66
+ * The time window of the run, from its pickup or its context. A run this
67
+ * process did not pick up is read once through the context. Undefined for a
68
+ * run with no window (an older Tellagen, a run made before windows) and when
69
+ * the lookup fails.
70
+ */
71
+ export declare function runWindowOf(client: TellagenClient, runId: string | undefined): Promise<RunWindow | undefined>;
56
72
  /** The capability a Tellagen can list to say that it answers a completion dry run. */
57
73
  export declare const COMPLETION_REPAIRS_CAPABILITY = "completion_repairs_v1";
58
74
  /**
@@ -79,12 +95,12 @@ export declare const evidenceLinkSchema: z.ZodObject<{
79
95
  label: z.ZodString;
80
96
  url: z.ZodEffects<z.ZodString, string, string>;
81
97
  }, "strip", z.ZodTypeAny, {
98
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
82
99
  label: string;
83
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
84
100
  url: string;
85
101
  }, {
102
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
86
103
  label: string;
87
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
88
104
  url: string;
89
105
  }>;
90
106
  export declare const evidenceLinksSchema: z.ZodArray<z.ZodObject<{
@@ -92,12 +108,12 @@ export declare const evidenceLinksSchema: z.ZodArray<z.ZodObject<{
92
108
  label: z.ZodString;
93
109
  url: z.ZodEffects<z.ZodString, string, string>;
94
110
  }, "strip", z.ZodTypeAny, {
111
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
95
112
  label: string;
96
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
97
113
  url: string;
98
114
  }, {
115
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
99
116
  label: string;
100
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
101
117
  url: string;
102
118
  }>, "many">;
103
119
  /** Fields added to every evidence ref by diagnosis_structure_v1. */
@@ -107,12 +123,12 @@ export declare const evidenceRefStructureShape: {
107
123
  label: z.ZodString;
108
124
  url: z.ZodEffects<z.ZodString, string, string>;
109
125
  }, "strip", z.ZodTypeAny, {
126
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
110
127
  label: string;
111
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
112
128
  url: string;
113
129
  }, {
130
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
114
131
  label: string;
115
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
116
132
  url: string;
117
133
  }>, "many">>;
118
134
  command: z.ZodOptional<z.ZodString>;
@@ -130,12 +146,12 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
130
146
  value: string;
131
147
  label: string;
132
148
  caption?: string | undefined;
133
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
149
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
134
150
  }, {
135
151
  value: string;
136
152
  label: string;
137
153
  caption?: string | undefined;
138
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
154
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
139
155
  }>, "many">;
140
156
  slot: z.ZodOptional<z.ZodLiteral<"summary">>;
141
157
  anchor: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -147,7 +163,7 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
147
163
  value: string;
148
164
  label: string;
149
165
  caption?: string | undefined;
150
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
166
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
151
167
  }[];
152
168
  anchor?: string | undefined;
153
169
  postmortem?: boolean | undefined;
@@ -158,7 +174,7 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
158
174
  value: string;
159
175
  label: string;
160
176
  caption?: string | undefined;
161
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
177
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
162
178
  }[];
163
179
  anchor?: string | undefined;
164
180
  postmortem?: boolean | undefined;
@@ -311,19 +327,19 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
311
327
  step: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
312
328
  artifact_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
313
329
  }, "strict", z.ZodTypeAny, {
314
- kind?: string | undefined;
315
330
  datasource?: string | undefined;
316
- query?: string | undefined;
331
+ kind?: string | undefined;
317
332
  from?: string | undefined;
318
333
  to?: string | undefined;
334
+ query?: string | undefined;
319
335
  step?: string | undefined;
320
336
  artifact_id?: string | undefined;
321
337
  }, {
322
- kind?: string | undefined;
323
338
  datasource?: string | undefined;
324
- query?: string | undefined;
339
+ kind?: string | undefined;
325
340
  from?: string | undefined;
326
341
  to?: string | undefined;
342
+ query?: string | undefined;
327
343
  step?: string | undefined;
328
344
  artifact_id?: string | undefined;
329
345
  }>>;
@@ -337,11 +353,11 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
337
353
  title?: string | undefined;
338
354
  anchor?: string | undefined;
339
355
  source?: {
340
- kind?: string | undefined;
341
356
  datasource?: string | undefined;
342
- query?: string | undefined;
357
+ kind?: string | undefined;
343
358
  from?: string | undefined;
344
359
  to?: string | undefined;
360
+ query?: string | undefined;
345
361
  step?: string | undefined;
346
362
  artifact_id?: string | undefined;
347
363
  } | undefined;
@@ -365,11 +381,11 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
365
381
  title?: string | undefined;
366
382
  anchor?: string | undefined;
367
383
  source?: {
368
- kind?: string | undefined;
369
384
  datasource?: string | undefined;
370
- query?: string | undefined;
385
+ kind?: string | undefined;
371
386
  from?: string | undefined;
372
387
  to?: string | undefined;
388
+ query?: string | undefined;
373
389
  step?: string | undefined;
374
390
  artifact_id?: string | undefined;
375
391
  } | undefined;
@@ -388,18 +404,18 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
388
404
  }[] | undefined;
389
405
  slot?: "summary" | undefined;
390
406
  }>, z.ZodObject<{
391
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
407
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
392
408
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
393
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
409
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
394
410
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
395
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
411
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
396
412
  }, z.ZodTypeAny, "passthrough">>]>, {
397
413
  type: "stats";
398
414
  items: {
399
415
  value: string;
400
416
  label: string;
401
417
  caption?: string | undefined;
402
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
418
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
403
419
  }[];
404
420
  anchor?: string | undefined;
405
421
  postmortem?: boolean | undefined;
@@ -436,11 +452,11 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
436
452
  title?: string | undefined;
437
453
  anchor?: string | undefined;
438
454
  source?: {
439
- kind?: string | undefined;
440
455
  datasource?: string | undefined;
441
- query?: string | undefined;
456
+ kind?: string | undefined;
442
457
  from?: string | undefined;
443
458
  to?: string | undefined;
459
+ query?: string | undefined;
444
460
  step?: string | undefined;
445
461
  artifact_id?: string | undefined;
446
462
  } | undefined;
@@ -459,14 +475,14 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
459
475
  }[] | undefined;
460
476
  slot?: "summary" | undefined;
461
477
  } | z.objectOutputType<{
462
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
478
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
463
479
  }, z.ZodTypeAny, "passthrough">, {
464
480
  type: "stats";
465
481
  items: {
466
482
  value: string;
467
483
  label: string;
468
484
  caption?: string | undefined;
469
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
485
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
470
486
  }[];
471
487
  anchor?: string | undefined;
472
488
  postmortem?: boolean | undefined;
@@ -503,11 +519,11 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
503
519
  title?: string | undefined;
504
520
  anchor?: string | undefined;
505
521
  source?: {
506
- kind?: string | undefined;
507
522
  datasource?: string | undefined;
508
- query?: string | undefined;
523
+ kind?: string | undefined;
509
524
  from?: string | undefined;
510
525
  to?: string | undefined;
526
+ query?: string | undefined;
511
527
  step?: string | undefined;
512
528
  artifact_id?: string | undefined;
513
529
  } | undefined;
@@ -526,7 +542,7 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
526
542
  }[] | undefined;
527
543
  slot?: "summary" | undefined;
528
544
  } | z.objectInputType<{
529
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
545
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
530
546
  }, z.ZodTypeAny, "passthrough">>;
531
547
  export declare const stepStructureShape: {
532
548
  finding_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
@@ -540,12 +556,12 @@ export declare const stepStructureShape: {
540
556
  value: string;
541
557
  label: string;
542
558
  caption?: string | undefined;
543
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
559
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
544
560
  }, {
545
561
  value: string;
546
562
  label: string;
547
563
  caption?: string | undefined;
548
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
564
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
549
565
  }>, "many">;
550
566
  slot: z.ZodOptional<z.ZodLiteral<"summary">>;
551
567
  anchor: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -557,7 +573,7 @@ export declare const stepStructureShape: {
557
573
  value: string;
558
574
  label: string;
559
575
  caption?: string | undefined;
560
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
576
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
561
577
  }[];
562
578
  anchor?: string | undefined;
563
579
  postmortem?: boolean | undefined;
@@ -568,7 +584,7 @@ export declare const stepStructureShape: {
568
584
  value: string;
569
585
  label: string;
570
586
  caption?: string | undefined;
571
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
587
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
572
588
  }[];
573
589
  anchor?: string | undefined;
574
590
  postmortem?: boolean | undefined;
@@ -721,19 +737,19 @@ export declare const stepStructureShape: {
721
737
  step: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
722
738
  artifact_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
723
739
  }, "strict", z.ZodTypeAny, {
724
- kind?: string | undefined;
725
740
  datasource?: string | undefined;
726
- query?: string | undefined;
741
+ kind?: string | undefined;
727
742
  from?: string | undefined;
728
743
  to?: string | undefined;
744
+ query?: string | undefined;
729
745
  step?: string | undefined;
730
746
  artifact_id?: string | undefined;
731
747
  }, {
732
- kind?: string | undefined;
733
748
  datasource?: string | undefined;
734
- query?: string | undefined;
749
+ kind?: string | undefined;
735
750
  from?: string | undefined;
736
751
  to?: string | undefined;
752
+ query?: string | undefined;
737
753
  step?: string | undefined;
738
754
  artifact_id?: string | undefined;
739
755
  }>>;
@@ -747,11 +763,11 @@ export declare const stepStructureShape: {
747
763
  title?: string | undefined;
748
764
  anchor?: string | undefined;
749
765
  source?: {
750
- kind?: string | undefined;
751
766
  datasource?: string | undefined;
752
- query?: string | undefined;
767
+ kind?: string | undefined;
753
768
  from?: string | undefined;
754
769
  to?: string | undefined;
770
+ query?: string | undefined;
755
771
  step?: string | undefined;
756
772
  artifact_id?: string | undefined;
757
773
  } | undefined;
@@ -775,11 +791,11 @@ export declare const stepStructureShape: {
775
791
  title?: string | undefined;
776
792
  anchor?: string | undefined;
777
793
  source?: {
778
- kind?: string | undefined;
779
794
  datasource?: string | undefined;
780
- query?: string | undefined;
795
+ kind?: string | undefined;
781
796
  from?: string | undefined;
782
797
  to?: string | undefined;
798
+ query?: string | undefined;
783
799
  step?: string | undefined;
784
800
  artifact_id?: string | undefined;
785
801
  } | undefined;
@@ -798,18 +814,18 @@ export declare const stepStructureShape: {
798
814
  }[] | undefined;
799
815
  slot?: "summary" | undefined;
800
816
  }>, z.ZodObject<{
801
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
817
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
802
818
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
803
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
819
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
804
820
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
805
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
821
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
806
822
  }, z.ZodTypeAny, "passthrough">>]>, {
807
823
  type: "stats";
808
824
  items: {
809
825
  value: string;
810
826
  label: string;
811
827
  caption?: string | undefined;
812
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
828
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
813
829
  }[];
814
830
  anchor?: string | undefined;
815
831
  postmortem?: boolean | undefined;
@@ -846,11 +862,11 @@ export declare const stepStructureShape: {
846
862
  title?: string | undefined;
847
863
  anchor?: string | undefined;
848
864
  source?: {
849
- kind?: string | undefined;
850
865
  datasource?: string | undefined;
851
- query?: string | undefined;
866
+ kind?: string | undefined;
852
867
  from?: string | undefined;
853
868
  to?: string | undefined;
869
+ query?: string | undefined;
854
870
  step?: string | undefined;
855
871
  artifact_id?: string | undefined;
856
872
  } | undefined;
@@ -869,14 +885,14 @@ export declare const stepStructureShape: {
869
885
  }[] | undefined;
870
886
  slot?: "summary" | undefined;
871
887
  } | z.objectOutputType<{
872
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
888
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
873
889
  }, z.ZodTypeAny, "passthrough">, {
874
890
  type: "stats";
875
891
  items: {
876
892
  value: string;
877
893
  label: string;
878
894
  caption?: string | undefined;
879
- tone?: "good" | "warn" | "bad" | "neutral" | undefined;
895
+ tone?: "warn" | "good" | "bad" | "neutral" | undefined;
880
896
  }[];
881
897
  anchor?: string | undefined;
882
898
  postmortem?: boolean | undefined;
@@ -913,11 +929,11 @@ export declare const stepStructureShape: {
913
929
  title?: string | undefined;
914
930
  anchor?: string | undefined;
915
931
  source?: {
916
- kind?: string | undefined;
917
932
  datasource?: string | undefined;
918
- query?: string | undefined;
933
+ kind?: string | undefined;
919
934
  from?: string | undefined;
920
935
  to?: string | undefined;
936
+ query?: string | undefined;
921
937
  step?: string | undefined;
922
938
  artifact_id?: string | undefined;
923
939
  } | undefined;
@@ -936,19 +952,19 @@ export declare const stepStructureShape: {
936
952
  }[] | undefined;
937
953
  slot?: "summary" | undefined;
938
954
  } | z.objectInputType<{
939
- type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff"]>;
955
+ type: z.ZodEnum<["checks", "range_overlap", "histogram", "run_history", "diff", "log_lines"]>;
940
956
  }, z.ZodTypeAny, "passthrough">>>;
941
957
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
942
958
  kind: z.ZodEnum<["explore", "panel", "diff", "commit", "pr", "logs", "trace", "ci_run", "deployment", "release"]>;
943
959
  label: z.ZodString;
944
960
  url: z.ZodEffects<z.ZodString, string, string>;
945
961
  }, "strip", z.ZodTypeAny, {
962
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
946
963
  label: string;
947
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
948
964
  url: string;
949
965
  }, {
966
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
950
967
  label: string;
951
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
952
968
  url: string;
953
969
  }>, "many">>;
954
970
  };
@@ -962,12 +978,12 @@ export declare const ruledOutSchema: z.ZodObject<{
962
978
  label: z.ZodString;
963
979
  url: z.ZodEffects<z.ZodString, string, string>;
964
980
  }, "strip", z.ZodTypeAny, {
981
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
965
982
  label: string;
966
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
967
983
  url: string;
968
984
  }, {
985
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
969
986
  label: string;
970
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
971
987
  url: string;
972
988
  }>, "many">>;
973
989
  confidence_percent: z.ZodOptional<z.ZodNumber>;
@@ -975,8 +991,8 @@ export declare const ruledOutSchema: z.ZodObject<{
975
991
  label: string;
976
992
  id?: string | undefined;
977
993
  links?: {
994
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
978
995
  label: string;
979
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
980
996
  url: string;
981
997
  }[] | undefined;
982
998
  explanation?: string | undefined;
@@ -986,8 +1002,8 @@ export declare const ruledOutSchema: z.ZodObject<{
986
1002
  label: string;
987
1003
  id?: string | undefined;
988
1004
  links?: {
1005
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
989
1006
  label: string;
990
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
991
1007
  url: string;
992
1008
  }[] | undefined;
993
1009
  explanation?: string | undefined;
@@ -1004,12 +1020,12 @@ export declare const coverageEntrySchema: z.ZodObject<{
1004
1020
  label: z.ZodString;
1005
1021
  url: z.ZodEffects<z.ZodString, string, string>;
1006
1022
  }, "strip", z.ZodTypeAny, {
1023
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1007
1024
  label: string;
1008
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1009
1025
  url: string;
1010
1026
  }, {
1027
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1011
1028
  label: string;
1012
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1013
1029
  url: string;
1014
1030
  }>, "many">>;
1015
1031
  step_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1021,8 +1037,8 @@ export declare const coverageEntrySchema: z.ZodObject<{
1021
1037
  id?: string | undefined;
1022
1038
  summary?: string | undefined;
1023
1039
  links?: {
1040
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1024
1041
  label: string;
1025
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1026
1042
  url: string;
1027
1043
  }[] | undefined;
1028
1044
  finding_ids?: number[] | undefined;
@@ -1034,8 +1050,8 @@ export declare const coverageEntrySchema: z.ZodObject<{
1034
1050
  id?: string | undefined;
1035
1051
  summary?: string | undefined;
1036
1052
  links?: {
1053
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1037
1054
  label: string;
1038
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1039
1055
  url: string;
1040
1056
  }[] | undefined;
1041
1057
  finding_ids?: number[] | undefined;
@@ -1085,28 +1101,28 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
1085
1101
  label: z.ZodString;
1086
1102
  url: z.ZodEffects<z.ZodString, string, string>;
1087
1103
  }, "strip", z.ZodTypeAny, {
1104
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1088
1105
  label: string;
1089
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1090
1106
  url: string;
1091
1107
  }, {
1108
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1092
1109
  label: string;
1093
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1094
1110
  url: string;
1095
1111
  }>, "many">>;
1096
1112
  }, "strip", z.ZodTypeAny, {
1097
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1098
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1113
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1114
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1099
1115
  title?: string | undefined;
1100
1116
  id?: string | undefined;
1101
1117
  author?: string | undefined;
1102
1118
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1103
- ref?: string | undefined;
1104
1119
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1120
+ ref?: string | undefined;
1105
1121
  sha?: string | undefined;
1106
1122
  repo?: string | undefined;
1107
1123
  links?: {
1124
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1108
1125
  label: string;
1109
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1110
1126
  url: string;
1111
1127
  }[] | undefined;
1112
1128
  finding_ids?: number[] | undefined;
@@ -1115,19 +1131,19 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
1115
1131
  occurred_at?: string | undefined;
1116
1132
  verification?: "unknown" | "confirmed" | "likely" | undefined;
1117
1133
  }, {
1118
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1119
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1134
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1135
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1120
1136
  title?: string | undefined;
1121
1137
  id?: string | undefined;
1122
1138
  author?: string | undefined;
1123
1139
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1124
- ref?: string | undefined;
1125
1140
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1141
+ ref?: string | undefined;
1126
1142
  sha?: string | undefined;
1127
1143
  repo?: string | undefined;
1128
1144
  links?: {
1145
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1129
1146
  label: string;
1130
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1131
1147
  url: string;
1132
1148
  }[] | undefined;
1133
1149
  finding_ids?: number[] | undefined;
@@ -1136,19 +1152,19 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
1136
1152
  occurred_at?: string | undefined;
1137
1153
  verification?: "unknown" | "confirmed" | "likely" | undefined;
1138
1154
  }>, {
1139
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1140
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1155
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1156
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1141
1157
  title?: string | undefined;
1142
1158
  id?: string | undefined;
1143
1159
  author?: string | undefined;
1144
1160
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1145
- ref?: string | undefined;
1146
1161
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1162
+ ref?: string | undefined;
1147
1163
  sha?: string | undefined;
1148
1164
  repo?: string | undefined;
1149
1165
  links?: {
1166
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1150
1167
  label: string;
1151
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1152
1168
  url: string;
1153
1169
  }[] | undefined;
1154
1170
  finding_ids?: number[] | undefined;
@@ -1157,19 +1173,19 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
1157
1173
  occurred_at?: string | undefined;
1158
1174
  verification?: "unknown" | "confirmed" | "likely" | undefined;
1159
1175
  }, {
1160
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1161
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1176
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1177
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1162
1178
  title?: string | undefined;
1163
1179
  id?: string | undefined;
1164
1180
  author?: string | undefined;
1165
1181
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1166
- ref?: string | undefined;
1167
1182
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1183
+ ref?: string | undefined;
1168
1184
  sha?: string | undefined;
1169
1185
  repo?: string | undefined;
1170
1186
  links?: {
1187
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1171
1188
  label: string;
1172
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1173
1189
  url: string;
1174
1190
  }[] | undefined;
1175
1191
  finding_ids?: number[] | undefined;
@@ -1200,28 +1216,28 @@ export declare const resultChangeShape: {
1200
1216
  label: z.ZodString;
1201
1217
  url: z.ZodEffects<z.ZodString, string, string>;
1202
1218
  }, "strip", z.ZodTypeAny, {
1219
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1203
1220
  label: string;
1204
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1205
1221
  url: string;
1206
1222
  }, {
1223
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1207
1224
  label: string;
1208
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1209
1225
  url: string;
1210
1226
  }>, "many">>;
1211
1227
  }, "strip", z.ZodTypeAny, {
1212
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1213
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1228
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1229
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1214
1230
  title?: string | undefined;
1215
1231
  id?: string | undefined;
1216
1232
  author?: string | undefined;
1217
1233
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1218
- ref?: string | undefined;
1219
1234
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1235
+ ref?: string | undefined;
1220
1236
  sha?: string | undefined;
1221
1237
  repo?: string | undefined;
1222
1238
  links?: {
1239
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1223
1240
  label: string;
1224
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1225
1241
  url: string;
1226
1242
  }[] | undefined;
1227
1243
  finding_ids?: number[] | undefined;
@@ -1230,19 +1246,19 @@ export declare const resultChangeShape: {
1230
1246
  occurred_at?: string | undefined;
1231
1247
  verification?: "unknown" | "confirmed" | "likely" | undefined;
1232
1248
  }, {
1233
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1234
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1249
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1250
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1235
1251
  title?: string | undefined;
1236
1252
  id?: string | undefined;
1237
1253
  author?: string | undefined;
1238
1254
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1239
- ref?: string | undefined;
1240
1255
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1256
+ ref?: string | undefined;
1241
1257
  sha?: string | undefined;
1242
1258
  repo?: string | undefined;
1243
1259
  links?: {
1260
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1244
1261
  label: string;
1245
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1246
1262
  url: string;
1247
1263
  }[] | undefined;
1248
1264
  finding_ids?: number[] | undefined;
@@ -1251,19 +1267,19 @@ export declare const resultChangeShape: {
1251
1267
  occurred_at?: string | undefined;
1252
1268
  verification?: "unknown" | "confirmed" | "likely" | undefined;
1253
1269
  }>, {
1254
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1255
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1270
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1271
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1256
1272
  title?: string | undefined;
1257
1273
  id?: string | undefined;
1258
1274
  author?: string | undefined;
1259
1275
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1260
- ref?: string | undefined;
1261
1276
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1277
+ ref?: string | undefined;
1262
1278
  sha?: string | undefined;
1263
1279
  repo?: string | undefined;
1264
1280
  links?: {
1281
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1265
1282
  label: string;
1266
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1267
1283
  url: string;
1268
1284
  }[] | undefined;
1269
1285
  finding_ids?: number[] | undefined;
@@ -1272,19 +1288,19 @@ export declare const resultChangeShape: {
1272
1288
  occurred_at?: string | undefined;
1273
1289
  verification?: "unknown" | "confirmed" | "likely" | undefined;
1274
1290
  }, {
1275
- kind: "ci_run" | "deployment" | "release" | "commit" | "pull_request" | "config_change";
1276
- role: "fix" | "context" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1291
+ kind: "commit" | "ci_run" | "release" | "deployment" | "pull_request" | "config_change";
1292
+ role: "context" | "fix" | "regression_source" | "first_bad" | "rollback" | "last_good" | "verified_by";
1277
1293
  title?: string | undefined;
1278
1294
  id?: string | undefined;
1279
1295
  author?: string | undefined;
1280
1296
  state?: "open" | "merged" | "closed" | "reverted" | "deployed" | "rolled_back" | undefined;
1281
- ref?: string | undefined;
1282
1297
  result?: "unknown" | "pending" | "skipped" | "success" | "failure" | "cancelled" | undefined;
1298
+ ref?: string | undefined;
1283
1299
  sha?: string | undefined;
1284
1300
  repo?: string | undefined;
1285
1301
  links?: {
1302
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1286
1303
  label: string;
1287
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1288
1304
  url: string;
1289
1305
  }[] | undefined;
1290
1306
  finding_ids?: number[] | undefined;
@@ -1305,12 +1321,12 @@ export declare const resultStructureShape: {
1305
1321
  label: z.ZodString;
1306
1322
  url: z.ZodEffects<z.ZodString, string, string>;
1307
1323
  }, "strip", z.ZodTypeAny, {
1324
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1308
1325
  label: string;
1309
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1310
1326
  url: string;
1311
1327
  }, {
1328
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1312
1329
  label: string;
1313
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1314
1330
  url: string;
1315
1331
  }>, "many">>;
1316
1332
  confidence_percent: z.ZodOptional<z.ZodNumber>;
@@ -1318,8 +1334,8 @@ export declare const resultStructureShape: {
1318
1334
  label: string;
1319
1335
  id?: string | undefined;
1320
1336
  links?: {
1337
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1321
1338
  label: string;
1322
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1323
1339
  url: string;
1324
1340
  }[] | undefined;
1325
1341
  explanation?: string | undefined;
@@ -1329,8 +1345,8 @@ export declare const resultStructureShape: {
1329
1345
  label: string;
1330
1346
  id?: string | undefined;
1331
1347
  links?: {
1348
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1332
1349
  label: string;
1333
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1334
1350
  url: string;
1335
1351
  }[] | undefined;
1336
1352
  explanation?: string | undefined;
@@ -1347,12 +1363,12 @@ export declare const resultStructureShape: {
1347
1363
  label: z.ZodString;
1348
1364
  url: z.ZodEffects<z.ZodString, string, string>;
1349
1365
  }, "strip", z.ZodTypeAny, {
1366
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1350
1367
  label: string;
1351
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1352
1368
  url: string;
1353
1369
  }, {
1370
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1354
1371
  label: string;
1355
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1356
1372
  url: string;
1357
1373
  }>, "many">>;
1358
1374
  step_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1364,8 +1380,8 @@ export declare const resultStructureShape: {
1364
1380
  id?: string | undefined;
1365
1381
  summary?: string | undefined;
1366
1382
  links?: {
1383
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1367
1384
  label: string;
1368
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1369
1385
  url: string;
1370
1386
  }[] | undefined;
1371
1387
  finding_ids?: number[] | undefined;
@@ -1377,8 +1393,8 @@ export declare const resultStructureShape: {
1377
1393
  id?: string | undefined;
1378
1394
  summary?: string | undefined;
1379
1395
  links?: {
1396
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1380
1397
  label: string;
1381
- kind: "diff" | "ci_run" | "deployment" | "release" | "explore" | "panel" | "commit" | "pr" | "logs" | "trace";
1382
1398
  url: string;
1383
1399
  }[] | undefined;
1384
1400
  finding_ids?: number[] | undefined;
@@ -1449,6 +1465,15 @@ export declare function stripResultFigureExtras(summary: unknown): {
1449
1465
  summary: unknown;
1450
1466
  removed: string[];
1451
1467
  };
1468
+ /**
1469
+ * A result summary whose steps carry no log_lines figure: a backend without
1470
+ * log_lines_v1 rejects the figure and drops it. `removed` names each figure
1471
+ * that was taken out of its step.
1472
+ */
1473
+ export declare function stripResultLogLines(summary: unknown): {
1474
+ summary: unknown;
1475
+ removed: string[];
1476
+ };
1452
1477
  /** The sentence the tool adds when it dropped fields for an older backend. */
1453
1478
  export declare function unsupportedNotice(removed: string[], capability?: string): string;
1454
1479
  export type QualityWarning = {