@tellagen/mcp-server 0.5.1 → 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 (74) hide show
  1. package/README.md +29 -3
  2. package/SKILL.md +40 -3
  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 +103 -78
  18. package/dist/diagnosis-structure.js +62 -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 +407 -83
  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-window.d.ts +59 -0
  44. package/dist/run-window.js +141 -0
  45. package/dist/run-window.js.map +1 -0
  46. package/dist/server.d.ts +1 -1
  47. package/dist/server.js +1 -1
  48. package/dist/tool-report.d.ts +2 -0
  49. package/dist/tool-report.js +3 -0
  50. package/dist/tool-report.js.map +1 -0
  51. package/dist/tools/catalog.js +1 -0
  52. package/dist/tools/catalog.js.map +1 -1
  53. package/dist/tools/diagnostics.js +85 -2
  54. package/dist/tools/diagnostics.js.map +1 -1
  55. package/dist/tools/figures.d.ts +2 -2
  56. package/dist/tools/figures.js +29 -7
  57. package/dist/tools/figures.js.map +1 -1
  58. package/dist/tools/findings.d.ts +8 -0
  59. package/dist/tools/findings.js +63 -2
  60. package/dist/tools/findings.js.map +1 -1
  61. package/dist/tools/investigations.d.ts +1 -1
  62. package/dist/tools/investigations.js +43 -4
  63. package/dist/tools/investigations.js.map +1 -1
  64. package/dist/tools/postmortem-runbooks.d.ts +20 -20
  65. package/dist/tools/source-links.d.ts +7 -0
  66. package/dist/tools/source-links.js +32 -5
  67. package/dist/tools/source-links.js.map +1 -1
  68. package/dist/tools/timeline.js +13 -2
  69. package/dist/tools/timeline.js.map +1 -1
  70. package/dist/version.d.ts +2 -2
  71. package/dist/version.js +3 -1
  72. package/dist/version.js.map +1 -1
  73. package/package.json +1 -1
  74. package/server.json +1 -1
@@ -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,11 +95,11 @@ 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, {
82
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
98
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
83
99
  label: string;
84
100
  url: string;
85
101
  }, {
86
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
102
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
87
103
  label: string;
88
104
  url: string;
89
105
  }>;
@@ -92,11 +108,11 @@ 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, {
95
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
111
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
96
112
  label: string;
97
113
  url: string;
98
114
  }, {
99
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
115
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
100
116
  label: string;
101
117
  url: string;
102
118
  }>, "many">;
@@ -107,11 +123,11 @@ export declare const evidenceRefStructureShape: {
107
123
  label: z.ZodString;
108
124
  url: z.ZodEffects<z.ZodString, string, string>;
109
125
  }, "strip", z.ZodTypeAny, {
110
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
126
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
111
127
  label: string;
112
128
  url: string;
113
129
  }, {
114
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
130
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
115
131
  label: string;
116
132
  url: string;
117
133
  }>, "many">>;
@@ -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;
@@ -313,17 +329,17 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
313
329
  }, "strict", z.ZodTypeAny, {
314
330
  datasource?: string | undefined;
315
331
  kind?: string | undefined;
316
- query?: 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
338
  datasource?: string | undefined;
323
339
  kind?: string | undefined;
324
- query?: 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
  }>>;
@@ -339,9 +355,9 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
339
355
  source?: {
340
356
  datasource?: string | undefined;
341
357
  kind?: string | undefined;
342
- query?: 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;
@@ -367,9 +383,9 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
367
383
  source?: {
368
384
  datasource?: string | undefined;
369
385
  kind?: string | undefined;
370
- query?: 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;
@@ -438,9 +454,9 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
438
454
  source?: {
439
455
  datasource?: string | undefined;
440
456
  kind?: string | undefined;
441
- query?: 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;
@@ -505,9 +521,9 @@ export declare const stepFigureSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"typ
505
521
  source?: {
506
522
  datasource?: string | undefined;
507
523
  kind?: string | undefined;
508
- query?: 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;
@@ -723,17 +739,17 @@ export declare const stepStructureShape: {
723
739
  }, "strict", z.ZodTypeAny, {
724
740
  datasource?: string | undefined;
725
741
  kind?: string | undefined;
726
- query?: 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
748
  datasource?: string | undefined;
733
749
  kind?: string | undefined;
734
- query?: 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
  }>>;
@@ -749,9 +765,9 @@ export declare const stepStructureShape: {
749
765
  source?: {
750
766
  datasource?: string | undefined;
751
767
  kind?: string | undefined;
752
- query?: 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;
@@ -777,9 +793,9 @@ export declare const stepStructureShape: {
777
793
  source?: {
778
794
  datasource?: string | undefined;
779
795
  kind?: string | undefined;
780
- query?: 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;
@@ -848,9 +864,9 @@ export declare const stepStructureShape: {
848
864
  source?: {
849
865
  datasource?: string | undefined;
850
866
  kind?: string | undefined;
851
- query?: 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;
@@ -915,9 +931,9 @@ export declare const stepStructureShape: {
915
931
  source?: {
916
932
  datasource?: string | undefined;
917
933
  kind?: string | undefined;
918
- query?: 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,18 +952,18 @@ 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, {
946
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
962
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
947
963
  label: string;
948
964
  url: string;
949
965
  }, {
950
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
966
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
951
967
  label: string;
952
968
  url: string;
953
969
  }>, "many">>;
@@ -962,11 +978,11 @@ 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, {
965
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
981
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
966
982
  label: string;
967
983
  url: string;
968
984
  }, {
969
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
985
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
970
986
  label: string;
971
987
  url: string;
972
988
  }>, "many">>;
@@ -975,7 +991,7 @@ export declare const ruledOutSchema: z.ZodObject<{
975
991
  label: string;
976
992
  id?: string | undefined;
977
993
  links?: {
978
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
994
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
979
995
  label: string;
980
996
  url: string;
981
997
  }[] | undefined;
@@ -986,7 +1002,7 @@ export declare const ruledOutSchema: z.ZodObject<{
986
1002
  label: string;
987
1003
  id?: string | undefined;
988
1004
  links?: {
989
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1005
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
990
1006
  label: string;
991
1007
  url: string;
992
1008
  }[] | undefined;
@@ -1004,11 +1020,11 @@ 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, {
1007
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1023
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1008
1024
  label: string;
1009
1025
  url: string;
1010
1026
  }, {
1011
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1027
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1012
1028
  label: string;
1013
1029
  url: string;
1014
1030
  }>, "many">>;
@@ -1021,7 +1037,7 @@ export declare const coverageEntrySchema: z.ZodObject<{
1021
1037
  id?: string | undefined;
1022
1038
  summary?: string | undefined;
1023
1039
  links?: {
1024
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1040
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1025
1041
  label: string;
1026
1042
  url: string;
1027
1043
  }[] | undefined;
@@ -1034,7 +1050,7 @@ export declare const coverageEntrySchema: z.ZodObject<{
1034
1050
  id?: string | undefined;
1035
1051
  summary?: string | undefined;
1036
1052
  links?: {
1037
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1053
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1038
1054
  label: string;
1039
1055
  url: string;
1040
1056
  }[] | undefined;
@@ -1085,11 +1101,11 @@ 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, {
1088
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1104
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1089
1105
  label: string;
1090
1106
  url: string;
1091
1107
  }, {
1092
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1108
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1093
1109
  label: string;
1094
1110
  url: string;
1095
1111
  }>, "many">>;
@@ -1100,12 +1116,12 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
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?: {
1108
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1124
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1109
1125
  label: string;
1110
1126
  url: string;
1111
1127
  }[] | undefined;
@@ -1121,12 +1137,12 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
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?: {
1129
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1145
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1130
1146
  label: string;
1131
1147
  url: string;
1132
1148
  }[] | undefined;
@@ -1142,12 +1158,12 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
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?: {
1150
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1166
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1151
1167
  label: string;
1152
1168
  url: string;
1153
1169
  }[] | undefined;
@@ -1163,12 +1179,12 @@ export declare const changeRefSchema: z.ZodEffects<z.ZodObject<{
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?: {
1171
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1187
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1172
1188
  label: string;
1173
1189
  url: string;
1174
1190
  }[] | undefined;
@@ -1200,11 +1216,11 @@ export declare const resultChangeShape: {
1200
1216
  label: z.ZodString;
1201
1217
  url: z.ZodEffects<z.ZodString, string, string>;
1202
1218
  }, "strip", z.ZodTypeAny, {
1203
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1219
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1204
1220
  label: string;
1205
1221
  url: string;
1206
1222
  }, {
1207
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1223
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1208
1224
  label: string;
1209
1225
  url: string;
1210
1226
  }>, "many">>;
@@ -1215,12 +1231,12 @@ export declare const resultChangeShape: {
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?: {
1223
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1239
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1224
1240
  label: string;
1225
1241
  url: string;
1226
1242
  }[] | undefined;
@@ -1236,12 +1252,12 @@ export declare const resultChangeShape: {
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?: {
1244
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1260
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1245
1261
  label: string;
1246
1262
  url: string;
1247
1263
  }[] | undefined;
@@ -1257,12 +1273,12 @@ export declare const resultChangeShape: {
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?: {
1265
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1281
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1266
1282
  label: string;
1267
1283
  url: string;
1268
1284
  }[] | undefined;
@@ -1278,12 +1294,12 @@ export declare const resultChangeShape: {
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?: {
1286
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1302
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1287
1303
  label: string;
1288
1304
  url: string;
1289
1305
  }[] | undefined;
@@ -1305,11 +1321,11 @@ export declare const resultStructureShape: {
1305
1321
  label: z.ZodString;
1306
1322
  url: z.ZodEffects<z.ZodString, string, string>;
1307
1323
  }, "strip", z.ZodTypeAny, {
1308
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1324
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1309
1325
  label: string;
1310
1326
  url: string;
1311
1327
  }, {
1312
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1328
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1313
1329
  label: string;
1314
1330
  url: string;
1315
1331
  }>, "many">>;
@@ -1318,7 +1334,7 @@ export declare const resultStructureShape: {
1318
1334
  label: string;
1319
1335
  id?: string | undefined;
1320
1336
  links?: {
1321
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1337
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1322
1338
  label: string;
1323
1339
  url: string;
1324
1340
  }[] | undefined;
@@ -1329,7 +1345,7 @@ export declare const resultStructureShape: {
1329
1345
  label: string;
1330
1346
  id?: string | undefined;
1331
1347
  links?: {
1332
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1348
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1333
1349
  label: string;
1334
1350
  url: string;
1335
1351
  }[] | undefined;
@@ -1347,11 +1363,11 @@ export declare const resultStructureShape: {
1347
1363
  label: z.ZodString;
1348
1364
  url: z.ZodEffects<z.ZodString, string, string>;
1349
1365
  }, "strip", z.ZodTypeAny, {
1350
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1366
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1351
1367
  label: string;
1352
1368
  url: string;
1353
1369
  }, {
1354
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1370
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1355
1371
  label: string;
1356
1372
  url: string;
1357
1373
  }>, "many">>;
@@ -1364,7 +1380,7 @@ export declare const resultStructureShape: {
1364
1380
  id?: string | undefined;
1365
1381
  summary?: string | undefined;
1366
1382
  links?: {
1367
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1383
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1368
1384
  label: string;
1369
1385
  url: string;
1370
1386
  }[] | undefined;
@@ -1377,7 +1393,7 @@ export declare const resultStructureShape: {
1377
1393
  id?: string | undefined;
1378
1394
  summary?: string | undefined;
1379
1395
  links?: {
1380
- kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "deployment" | "explore" | "panel" | "logs" | "trace";
1396
+ kind: "diff" | "commit" | "pr" | "ci_run" | "release" | "trace" | "deployment" | "explore" | "panel" | "logs";
1381
1397
  label: string;
1382
1398
  url: string;
1383
1399
  }[] | 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 = {