@tellagen/mcp-server 0.1.3 → 0.4.1

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 (78) hide show
  1. package/README.md +208 -12
  2. package/SKILL.md +395 -15
  3. package/contracts/runbooks/manifest.json +47 -0
  4. package/contracts/runbooks/v1/fixtures/global-runbook.json +7 -0
  5. package/contracts/runbooks/v1/runbook-definition.schema.json +25 -0
  6. package/contracts/runbooks/v2/compiled-plan.schema.json +40 -0
  7. package/contracts/runbooks/v2/fixtures/filesystem-pressure.json +181 -0
  8. package/contracts/runbooks/v2/fixtures/grafana-error-rate-plan.json +50 -0
  9. package/contracts/runbooks/v2/fixtures/grafana-error-rate.json +58 -0
  10. package/contracts/runbooks/v2/fixtures/timeline-event-blocks-rejected.json +90 -0
  11. package/contracts/runbooks/v2/fixtures/timeline-event-with-blocks.json +61 -0
  12. package/contracts/runbooks/v2/runbook-definition.schema.json +377 -0
  13. package/contracts/runbooks/v2/timeline-event-blocks.schema.json +480 -0
  14. package/contracts/tellagen-runbook-contracts.json +8 -0
  15. package/dist/auth.d.ts +2 -1
  16. package/dist/auth.js +2 -1
  17. package/dist/auth.js.map +1 -1
  18. package/dist/client.d.ts +20 -0
  19. package/dist/client.js +81 -12
  20. package/dist/client.js.map +1 -1
  21. package/dist/diagnosis-structure.d.ts +1416 -0
  22. package/dist/diagnosis-structure.js +656 -0
  23. package/dist/diagnosis-structure.js.map +1 -0
  24. package/dist/errors.d.ts +2 -1
  25. package/dist/errors.js +4 -1
  26. package/dist/errors.js.map +1 -1
  27. package/dist/figures.d.ts +2336 -0
  28. package/dist/figures.js +1288 -0
  29. package/dist/figures.js.map +1 -0
  30. package/dist/image-info.d.ts +14 -0
  31. package/dist/image-info.js +65 -0
  32. package/dist/image-info.js.map +1 -0
  33. package/dist/index.js +2 -6
  34. package/dist/index.js.map +1 -1
  35. package/dist/server.js +66 -7
  36. package/dist/server.js.map +1 -1
  37. package/dist/source-links.d.ts +101 -0
  38. package/dist/source-links.js +374 -0
  39. package/dist/source-links.js.map +1 -0
  40. package/dist/start.d.ts +11 -0
  41. package/dist/start.js +14 -0
  42. package/dist/start.js.map +1 -0
  43. package/dist/tools/attachments.d.ts +19 -0
  44. package/dist/tools/attachments.js +177 -0
  45. package/dist/tools/attachments.js.map +1 -0
  46. package/dist/tools/causes.d.ts +50 -0
  47. package/dist/tools/causes.js +97 -0
  48. package/dist/tools/causes.js.map +1 -0
  49. package/dist/tools/datasources.d.ts +3 -0
  50. package/dist/tools/datasources.js +325 -0
  51. package/dist/tools/datasources.js.map +1 -0
  52. package/dist/tools/diagnostics.d.ts +3 -0
  53. package/dist/tools/diagnostics.js +113 -0
  54. package/dist/tools/diagnostics.js.map +1 -0
  55. package/dist/tools/figures.d.ts +8 -0
  56. package/dist/tools/figures.js +209 -0
  57. package/dist/tools/figures.js.map +1 -0
  58. package/dist/tools/findings.js +85 -7
  59. package/dist/tools/findings.js.map +1 -1
  60. package/dist/tools/incidents.js +44 -4
  61. package/dist/tools/incidents.js.map +1 -1
  62. package/dist/tools/index.js +14 -0
  63. package/dist/tools/index.js.map +1 -1
  64. package/dist/tools/investigations.js +546 -21
  65. package/dist/tools/investigations.js.map +1 -1
  66. package/dist/tools/postmortem-runbooks.d.ts +786 -0
  67. package/dist/tools/postmortem-runbooks.js +330 -0
  68. package/dist/tools/postmortem-runbooks.js.map +1 -0
  69. package/dist/tools/source-links.d.ts +47 -0
  70. package/dist/tools/source-links.js +302 -0
  71. package/dist/tools/source-links.js.map +1 -0
  72. package/dist/tools/timeline.js +178 -13
  73. package/dist/tools/timeline.js.map +1 -1
  74. package/dist/version.d.ts +2 -0
  75. package/dist/version.js +12 -0
  76. package/dist/version.js.map +1 -0
  77. package/package.json +3 -2
  78. package/server.json +15 -1
@@ -0,0 +1,786 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { z } from "zod";
3
+ import { TellagenClient } from "../client.js";
4
+ export declare const postmortemRunbookNoCandidatesReasonCodeSchema: z.ZodEnum<["no_completed_investigation", "insufficient_check_evidence", "unsupported_source_capability", "not_repeatable", "remediation_only", "existing_runbook_covers_pattern", "validation_failed", "tool_unavailable"]>;
5
+ export declare const postmortemRunbookCandidateSchema: z.ZodDiscriminatedUnion<"relation", [z.ZodObject<{
6
+ relation: z.ZodLiteral<"new">;
7
+ existing_runbook: z.ZodOptional<z.ZodNever>;
8
+ name: z.ZodEffects<z.ZodString, string, string>;
9
+ slug: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodEffects<z.ZodString, string, string>;
11
+ rationale: z.ZodEffects<z.ZodString, string, string>;
12
+ reuse_case: z.ZodEffects<z.ZodString, string, string>;
13
+ trigger_summary: z.ZodEffects<z.ZodString, string, string>;
14
+ limitations: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
15
+ definition_json: z.ZodObject<{
16
+ schema_version: z.ZodLiteral<"v2">;
17
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
18
+ schema_version: z.ZodLiteral<"v2">;
19
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
20
+ schema_version: z.ZodLiteral<"v2">;
21
+ }, z.ZodTypeAny, "passthrough">>;
22
+ supporting_evidence: z.ZodArray<z.ZodObject<{
23
+ check_id: z.ZodString;
24
+ investigation_run_id: z.ZodEffects<z.ZodString, string, string>;
25
+ finding_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
26
+ trace_step_ids: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
27
+ }, "strict", z.ZodTypeAny, {
28
+ finding_ids: number[];
29
+ check_id: string;
30
+ investigation_run_id: string;
31
+ trace_step_ids: string[];
32
+ }, {
33
+ check_id: string;
34
+ investigation_run_id: string;
35
+ finding_ids?: number[] | undefined;
36
+ trace_step_ids?: string[] | undefined;
37
+ }>, "many">;
38
+ }, "strict", z.ZodTypeAny, {
39
+ description: string;
40
+ name: string;
41
+ trigger_summary: string;
42
+ relation: "new";
43
+ rationale: string;
44
+ reuse_case: string;
45
+ limitations: string[];
46
+ definition_json: {
47
+ schema_version: "v2";
48
+ } & {
49
+ [k: string]: unknown;
50
+ };
51
+ supporting_evidence: {
52
+ finding_ids: number[];
53
+ check_id: string;
54
+ investigation_run_id: string;
55
+ trace_step_ids: string[];
56
+ }[];
57
+ existing_runbook?: undefined;
58
+ slug?: string | undefined;
59
+ }, {
60
+ description: string;
61
+ name: string;
62
+ trigger_summary: string;
63
+ relation: "new";
64
+ rationale: string;
65
+ reuse_case: string;
66
+ definition_json: {
67
+ schema_version: "v2";
68
+ } & {
69
+ [k: string]: unknown;
70
+ };
71
+ supporting_evidence: {
72
+ check_id: string;
73
+ investigation_run_id: string;
74
+ finding_ids?: number[] | undefined;
75
+ trace_step_ids?: string[] | undefined;
76
+ }[];
77
+ existing_runbook?: undefined;
78
+ slug?: string | undefined;
79
+ limitations?: string[] | undefined;
80
+ }>, z.ZodObject<{
81
+ relation: z.ZodLiteral<"extends">;
82
+ existing_runbook: z.ZodObject<{
83
+ runbook_id: z.ZodNumber;
84
+ version: z.ZodNumber;
85
+ }, "strict", z.ZodTypeAny, {
86
+ version: number;
87
+ runbook_id: number;
88
+ }, {
89
+ version: number;
90
+ runbook_id: number;
91
+ }>;
92
+ name: z.ZodEffects<z.ZodString, string, string>;
93
+ slug: z.ZodOptional<z.ZodString>;
94
+ description: z.ZodEffects<z.ZodString, string, string>;
95
+ rationale: z.ZodEffects<z.ZodString, string, string>;
96
+ reuse_case: z.ZodEffects<z.ZodString, string, string>;
97
+ trigger_summary: z.ZodEffects<z.ZodString, string, string>;
98
+ limitations: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
99
+ definition_json: z.ZodObject<{
100
+ schema_version: z.ZodLiteral<"v2">;
101
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
102
+ schema_version: z.ZodLiteral<"v2">;
103
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
104
+ schema_version: z.ZodLiteral<"v2">;
105
+ }, z.ZodTypeAny, "passthrough">>;
106
+ supporting_evidence: z.ZodArray<z.ZodObject<{
107
+ check_id: z.ZodString;
108
+ investigation_run_id: z.ZodEffects<z.ZodString, string, string>;
109
+ finding_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
110
+ trace_step_ids: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
111
+ }, "strict", z.ZodTypeAny, {
112
+ finding_ids: number[];
113
+ check_id: string;
114
+ investigation_run_id: string;
115
+ trace_step_ids: string[];
116
+ }, {
117
+ check_id: string;
118
+ investigation_run_id: string;
119
+ finding_ids?: number[] | undefined;
120
+ trace_step_ids?: string[] | undefined;
121
+ }>, "many">;
122
+ }, "strict", z.ZodTypeAny, {
123
+ description: string;
124
+ name: string;
125
+ trigger_summary: string;
126
+ relation: "extends";
127
+ rationale: string;
128
+ existing_runbook: {
129
+ version: number;
130
+ runbook_id: number;
131
+ };
132
+ reuse_case: string;
133
+ limitations: string[];
134
+ definition_json: {
135
+ schema_version: "v2";
136
+ } & {
137
+ [k: string]: unknown;
138
+ };
139
+ supporting_evidence: {
140
+ finding_ids: number[];
141
+ check_id: string;
142
+ investigation_run_id: string;
143
+ trace_step_ids: string[];
144
+ }[];
145
+ slug?: string | undefined;
146
+ }, {
147
+ description: string;
148
+ name: string;
149
+ trigger_summary: string;
150
+ relation: "extends";
151
+ rationale: string;
152
+ existing_runbook: {
153
+ version: number;
154
+ runbook_id: number;
155
+ };
156
+ reuse_case: string;
157
+ definition_json: {
158
+ schema_version: "v2";
159
+ } & {
160
+ [k: string]: unknown;
161
+ };
162
+ supporting_evidence: {
163
+ check_id: string;
164
+ investigation_run_id: string;
165
+ finding_ids?: number[] | undefined;
166
+ trace_step_ids?: string[] | undefined;
167
+ }[];
168
+ slug?: string | undefined;
169
+ limitations?: string[] | undefined;
170
+ }>]>;
171
+ export declare const postmortemRunbookCandidatesInputShape: {
172
+ incident_id: z.ZodNumber;
173
+ submission_id: z.ZodString;
174
+ analysis_request_id: z.ZodOptional<z.ZodString>;
175
+ source_bundle_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
176
+ postmortem_version_id: z.ZodOptional<z.ZodNumber>;
177
+ postmortem_timeline_event_id: z.ZodOptional<z.ZodNumber>;
178
+ analysis_summary: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
179
+ no_candidates_reason: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
180
+ no_candidates_reason_code: z.ZodOptional<z.ZodEnum<["no_completed_investigation", "insufficient_check_evidence", "unsupported_source_capability", "not_repeatable", "remediation_only", "existing_runbook_covers_pattern", "validation_failed", "tool_unavailable"]>>;
181
+ covering_runbook: z.ZodOptional<z.ZodObject<{
182
+ runbook_id: z.ZodNumber;
183
+ version: z.ZodNumber;
184
+ }, "strict", z.ZodTypeAny, {
185
+ version: number;
186
+ runbook_id: number;
187
+ }, {
188
+ version: number;
189
+ runbook_id: number;
190
+ }>>;
191
+ candidates: z.ZodArray<z.ZodDiscriminatedUnion<"relation", [z.ZodObject<{
192
+ relation: z.ZodLiteral<"new">;
193
+ existing_runbook: z.ZodOptional<z.ZodNever>;
194
+ name: z.ZodEffects<z.ZodString, string, string>;
195
+ slug: z.ZodOptional<z.ZodString>;
196
+ description: z.ZodEffects<z.ZodString, string, string>;
197
+ rationale: z.ZodEffects<z.ZodString, string, string>;
198
+ reuse_case: z.ZodEffects<z.ZodString, string, string>;
199
+ trigger_summary: z.ZodEffects<z.ZodString, string, string>;
200
+ limitations: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
201
+ definition_json: z.ZodObject<{
202
+ schema_version: z.ZodLiteral<"v2">;
203
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
204
+ schema_version: z.ZodLiteral<"v2">;
205
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
206
+ schema_version: z.ZodLiteral<"v2">;
207
+ }, z.ZodTypeAny, "passthrough">>;
208
+ supporting_evidence: z.ZodArray<z.ZodObject<{
209
+ check_id: z.ZodString;
210
+ investigation_run_id: z.ZodEffects<z.ZodString, string, string>;
211
+ finding_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
212
+ trace_step_ids: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
213
+ }, "strict", z.ZodTypeAny, {
214
+ finding_ids: number[];
215
+ check_id: string;
216
+ investigation_run_id: string;
217
+ trace_step_ids: string[];
218
+ }, {
219
+ check_id: string;
220
+ investigation_run_id: string;
221
+ finding_ids?: number[] | undefined;
222
+ trace_step_ids?: string[] | undefined;
223
+ }>, "many">;
224
+ }, "strict", z.ZodTypeAny, {
225
+ description: string;
226
+ name: string;
227
+ trigger_summary: string;
228
+ relation: "new";
229
+ rationale: string;
230
+ reuse_case: string;
231
+ limitations: string[];
232
+ definition_json: {
233
+ schema_version: "v2";
234
+ } & {
235
+ [k: string]: unknown;
236
+ };
237
+ supporting_evidence: {
238
+ finding_ids: number[];
239
+ check_id: string;
240
+ investigation_run_id: string;
241
+ trace_step_ids: string[];
242
+ }[];
243
+ existing_runbook?: undefined;
244
+ slug?: string | undefined;
245
+ }, {
246
+ description: string;
247
+ name: string;
248
+ trigger_summary: string;
249
+ relation: "new";
250
+ rationale: string;
251
+ reuse_case: string;
252
+ definition_json: {
253
+ schema_version: "v2";
254
+ } & {
255
+ [k: string]: unknown;
256
+ };
257
+ supporting_evidence: {
258
+ check_id: string;
259
+ investigation_run_id: string;
260
+ finding_ids?: number[] | undefined;
261
+ trace_step_ids?: string[] | undefined;
262
+ }[];
263
+ existing_runbook?: undefined;
264
+ slug?: string | undefined;
265
+ limitations?: string[] | undefined;
266
+ }>, z.ZodObject<{
267
+ relation: z.ZodLiteral<"extends">;
268
+ existing_runbook: z.ZodObject<{
269
+ runbook_id: z.ZodNumber;
270
+ version: z.ZodNumber;
271
+ }, "strict", z.ZodTypeAny, {
272
+ version: number;
273
+ runbook_id: number;
274
+ }, {
275
+ version: number;
276
+ runbook_id: number;
277
+ }>;
278
+ name: z.ZodEffects<z.ZodString, string, string>;
279
+ slug: z.ZodOptional<z.ZodString>;
280
+ description: z.ZodEffects<z.ZodString, string, string>;
281
+ rationale: z.ZodEffects<z.ZodString, string, string>;
282
+ reuse_case: z.ZodEffects<z.ZodString, string, string>;
283
+ trigger_summary: z.ZodEffects<z.ZodString, string, string>;
284
+ limitations: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
285
+ definition_json: z.ZodObject<{
286
+ schema_version: z.ZodLiteral<"v2">;
287
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
288
+ schema_version: z.ZodLiteral<"v2">;
289
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
290
+ schema_version: z.ZodLiteral<"v2">;
291
+ }, z.ZodTypeAny, "passthrough">>;
292
+ supporting_evidence: z.ZodArray<z.ZodObject<{
293
+ check_id: z.ZodString;
294
+ investigation_run_id: z.ZodEffects<z.ZodString, string, string>;
295
+ finding_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
296
+ trace_step_ids: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
297
+ }, "strict", z.ZodTypeAny, {
298
+ finding_ids: number[];
299
+ check_id: string;
300
+ investigation_run_id: string;
301
+ trace_step_ids: string[];
302
+ }, {
303
+ check_id: string;
304
+ investigation_run_id: string;
305
+ finding_ids?: number[] | undefined;
306
+ trace_step_ids?: string[] | undefined;
307
+ }>, "many">;
308
+ }, "strict", z.ZodTypeAny, {
309
+ description: string;
310
+ name: string;
311
+ trigger_summary: string;
312
+ relation: "extends";
313
+ rationale: string;
314
+ existing_runbook: {
315
+ version: number;
316
+ runbook_id: number;
317
+ };
318
+ reuse_case: string;
319
+ limitations: string[];
320
+ definition_json: {
321
+ schema_version: "v2";
322
+ } & {
323
+ [k: string]: unknown;
324
+ };
325
+ supporting_evidence: {
326
+ finding_ids: number[];
327
+ check_id: string;
328
+ investigation_run_id: string;
329
+ trace_step_ids: string[];
330
+ }[];
331
+ slug?: string | undefined;
332
+ }, {
333
+ description: string;
334
+ name: string;
335
+ trigger_summary: string;
336
+ relation: "extends";
337
+ rationale: string;
338
+ existing_runbook: {
339
+ version: number;
340
+ runbook_id: number;
341
+ };
342
+ reuse_case: string;
343
+ definition_json: {
344
+ schema_version: "v2";
345
+ } & {
346
+ [k: string]: unknown;
347
+ };
348
+ supporting_evidence: {
349
+ check_id: string;
350
+ investigation_run_id: string;
351
+ finding_ids?: number[] | undefined;
352
+ trace_step_ids?: string[] | undefined;
353
+ }[];
354
+ slug?: string | undefined;
355
+ limitations?: string[] | undefined;
356
+ }>]>, "many">;
357
+ };
358
+ export declare const postmortemRunbookCandidatesInputSchema: z.ZodEffects<z.ZodObject<{
359
+ incident_id: z.ZodNumber;
360
+ submission_id: z.ZodString;
361
+ analysis_request_id: z.ZodOptional<z.ZodString>;
362
+ source_bundle_id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
363
+ postmortem_version_id: z.ZodOptional<z.ZodNumber>;
364
+ postmortem_timeline_event_id: z.ZodOptional<z.ZodNumber>;
365
+ analysis_summary: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
366
+ no_candidates_reason: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
367
+ no_candidates_reason_code: z.ZodOptional<z.ZodEnum<["no_completed_investigation", "insufficient_check_evidence", "unsupported_source_capability", "not_repeatable", "remediation_only", "existing_runbook_covers_pattern", "validation_failed", "tool_unavailable"]>>;
368
+ covering_runbook: z.ZodOptional<z.ZodObject<{
369
+ runbook_id: z.ZodNumber;
370
+ version: z.ZodNumber;
371
+ }, "strict", z.ZodTypeAny, {
372
+ version: number;
373
+ runbook_id: number;
374
+ }, {
375
+ version: number;
376
+ runbook_id: number;
377
+ }>>;
378
+ candidates: z.ZodArray<z.ZodDiscriminatedUnion<"relation", [z.ZodObject<{
379
+ relation: z.ZodLiteral<"new">;
380
+ existing_runbook: z.ZodOptional<z.ZodNever>;
381
+ name: z.ZodEffects<z.ZodString, string, string>;
382
+ slug: z.ZodOptional<z.ZodString>;
383
+ description: z.ZodEffects<z.ZodString, string, string>;
384
+ rationale: z.ZodEffects<z.ZodString, string, string>;
385
+ reuse_case: z.ZodEffects<z.ZodString, string, string>;
386
+ trigger_summary: z.ZodEffects<z.ZodString, string, string>;
387
+ limitations: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
388
+ definition_json: z.ZodObject<{
389
+ schema_version: z.ZodLiteral<"v2">;
390
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
391
+ schema_version: z.ZodLiteral<"v2">;
392
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
393
+ schema_version: z.ZodLiteral<"v2">;
394
+ }, z.ZodTypeAny, "passthrough">>;
395
+ supporting_evidence: z.ZodArray<z.ZodObject<{
396
+ check_id: z.ZodString;
397
+ investigation_run_id: z.ZodEffects<z.ZodString, string, string>;
398
+ finding_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
399
+ trace_step_ids: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
400
+ }, "strict", z.ZodTypeAny, {
401
+ finding_ids: number[];
402
+ check_id: string;
403
+ investigation_run_id: string;
404
+ trace_step_ids: string[];
405
+ }, {
406
+ check_id: string;
407
+ investigation_run_id: string;
408
+ finding_ids?: number[] | undefined;
409
+ trace_step_ids?: string[] | undefined;
410
+ }>, "many">;
411
+ }, "strict", z.ZodTypeAny, {
412
+ description: string;
413
+ name: string;
414
+ trigger_summary: string;
415
+ relation: "new";
416
+ rationale: string;
417
+ reuse_case: string;
418
+ limitations: string[];
419
+ definition_json: {
420
+ schema_version: "v2";
421
+ } & {
422
+ [k: string]: unknown;
423
+ };
424
+ supporting_evidence: {
425
+ finding_ids: number[];
426
+ check_id: string;
427
+ investigation_run_id: string;
428
+ trace_step_ids: string[];
429
+ }[];
430
+ existing_runbook?: undefined;
431
+ slug?: string | undefined;
432
+ }, {
433
+ description: string;
434
+ name: string;
435
+ trigger_summary: string;
436
+ relation: "new";
437
+ rationale: string;
438
+ reuse_case: string;
439
+ definition_json: {
440
+ schema_version: "v2";
441
+ } & {
442
+ [k: string]: unknown;
443
+ };
444
+ supporting_evidence: {
445
+ check_id: string;
446
+ investigation_run_id: string;
447
+ finding_ids?: number[] | undefined;
448
+ trace_step_ids?: string[] | undefined;
449
+ }[];
450
+ existing_runbook?: undefined;
451
+ slug?: string | undefined;
452
+ limitations?: string[] | undefined;
453
+ }>, z.ZodObject<{
454
+ relation: z.ZodLiteral<"extends">;
455
+ existing_runbook: z.ZodObject<{
456
+ runbook_id: z.ZodNumber;
457
+ version: z.ZodNumber;
458
+ }, "strict", z.ZodTypeAny, {
459
+ version: number;
460
+ runbook_id: number;
461
+ }, {
462
+ version: number;
463
+ runbook_id: number;
464
+ }>;
465
+ name: z.ZodEffects<z.ZodString, string, string>;
466
+ slug: z.ZodOptional<z.ZodString>;
467
+ description: z.ZodEffects<z.ZodString, string, string>;
468
+ rationale: z.ZodEffects<z.ZodString, string, string>;
469
+ reuse_case: z.ZodEffects<z.ZodString, string, string>;
470
+ trigger_summary: z.ZodEffects<z.ZodString, string, string>;
471
+ limitations: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
472
+ definition_json: z.ZodObject<{
473
+ schema_version: z.ZodLiteral<"v2">;
474
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
475
+ schema_version: z.ZodLiteral<"v2">;
476
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
477
+ schema_version: z.ZodLiteral<"v2">;
478
+ }, z.ZodTypeAny, "passthrough">>;
479
+ supporting_evidence: z.ZodArray<z.ZodObject<{
480
+ check_id: z.ZodString;
481
+ investigation_run_id: z.ZodEffects<z.ZodString, string, string>;
482
+ finding_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
483
+ trace_step_ids: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
484
+ }, "strict", z.ZodTypeAny, {
485
+ finding_ids: number[];
486
+ check_id: string;
487
+ investigation_run_id: string;
488
+ trace_step_ids: string[];
489
+ }, {
490
+ check_id: string;
491
+ investigation_run_id: string;
492
+ finding_ids?: number[] | undefined;
493
+ trace_step_ids?: string[] | undefined;
494
+ }>, "many">;
495
+ }, "strict", z.ZodTypeAny, {
496
+ description: string;
497
+ name: string;
498
+ trigger_summary: string;
499
+ relation: "extends";
500
+ rationale: string;
501
+ existing_runbook: {
502
+ version: number;
503
+ runbook_id: number;
504
+ };
505
+ reuse_case: string;
506
+ limitations: string[];
507
+ definition_json: {
508
+ schema_version: "v2";
509
+ } & {
510
+ [k: string]: unknown;
511
+ };
512
+ supporting_evidence: {
513
+ finding_ids: number[];
514
+ check_id: string;
515
+ investigation_run_id: string;
516
+ trace_step_ids: string[];
517
+ }[];
518
+ slug?: string | undefined;
519
+ }, {
520
+ description: string;
521
+ name: string;
522
+ trigger_summary: string;
523
+ relation: "extends";
524
+ rationale: string;
525
+ existing_runbook: {
526
+ version: number;
527
+ runbook_id: number;
528
+ };
529
+ reuse_case: string;
530
+ definition_json: {
531
+ schema_version: "v2";
532
+ } & {
533
+ [k: string]: unknown;
534
+ };
535
+ supporting_evidence: {
536
+ check_id: string;
537
+ investigation_run_id: string;
538
+ finding_ids?: number[] | undefined;
539
+ trace_step_ids?: string[] | undefined;
540
+ }[];
541
+ slug?: string | undefined;
542
+ limitations?: string[] | undefined;
543
+ }>]>, "many">;
544
+ }, "strict", z.ZodTypeAny, {
545
+ incident_id: number;
546
+ submission_id: string;
547
+ candidates: ({
548
+ description: string;
549
+ name: string;
550
+ trigger_summary: string;
551
+ relation: "new";
552
+ rationale: string;
553
+ reuse_case: string;
554
+ limitations: string[];
555
+ definition_json: {
556
+ schema_version: "v2";
557
+ } & {
558
+ [k: string]: unknown;
559
+ };
560
+ supporting_evidence: {
561
+ finding_ids: number[];
562
+ check_id: string;
563
+ investigation_run_id: string;
564
+ trace_step_ids: string[];
565
+ }[];
566
+ existing_runbook?: undefined;
567
+ slug?: string | undefined;
568
+ } | {
569
+ description: string;
570
+ name: string;
571
+ trigger_summary: string;
572
+ relation: "extends";
573
+ rationale: string;
574
+ existing_runbook: {
575
+ version: number;
576
+ runbook_id: number;
577
+ };
578
+ reuse_case: string;
579
+ limitations: string[];
580
+ definition_json: {
581
+ schema_version: "v2";
582
+ } & {
583
+ [k: string]: unknown;
584
+ };
585
+ supporting_evidence: {
586
+ finding_ids: number[];
587
+ check_id: string;
588
+ investigation_run_id: string;
589
+ trace_step_ids: string[];
590
+ }[];
591
+ slug?: string | undefined;
592
+ })[];
593
+ source_bundle_id?: string | undefined;
594
+ postmortem_version_id?: number | undefined;
595
+ analysis_request_id?: string | undefined;
596
+ postmortem_timeline_event_id?: number | undefined;
597
+ analysis_summary?: string | undefined;
598
+ no_candidates_reason?: string | undefined;
599
+ no_candidates_reason_code?: "no_completed_investigation" | "insufficient_check_evidence" | "unsupported_source_capability" | "not_repeatable" | "remediation_only" | "existing_runbook_covers_pattern" | "validation_failed" | "tool_unavailable" | undefined;
600
+ covering_runbook?: {
601
+ version: number;
602
+ runbook_id: number;
603
+ } | undefined;
604
+ }, {
605
+ incident_id: number;
606
+ submission_id: string;
607
+ candidates: ({
608
+ description: string;
609
+ name: string;
610
+ trigger_summary: string;
611
+ relation: "new";
612
+ rationale: string;
613
+ reuse_case: string;
614
+ definition_json: {
615
+ schema_version: "v2";
616
+ } & {
617
+ [k: string]: unknown;
618
+ };
619
+ supporting_evidence: {
620
+ check_id: string;
621
+ investigation_run_id: string;
622
+ finding_ids?: number[] | undefined;
623
+ trace_step_ids?: string[] | undefined;
624
+ }[];
625
+ existing_runbook?: undefined;
626
+ slug?: string | undefined;
627
+ limitations?: string[] | undefined;
628
+ } | {
629
+ description: string;
630
+ name: string;
631
+ trigger_summary: string;
632
+ relation: "extends";
633
+ rationale: string;
634
+ existing_runbook: {
635
+ version: number;
636
+ runbook_id: number;
637
+ };
638
+ reuse_case: string;
639
+ definition_json: {
640
+ schema_version: "v2";
641
+ } & {
642
+ [k: string]: unknown;
643
+ };
644
+ supporting_evidence: {
645
+ check_id: string;
646
+ investigation_run_id: string;
647
+ finding_ids?: number[] | undefined;
648
+ trace_step_ids?: string[] | undefined;
649
+ }[];
650
+ slug?: string | undefined;
651
+ limitations?: string[] | undefined;
652
+ })[];
653
+ source_bundle_id?: string | undefined;
654
+ postmortem_version_id?: number | undefined;
655
+ analysis_request_id?: string | undefined;
656
+ postmortem_timeline_event_id?: number | undefined;
657
+ analysis_summary?: string | undefined;
658
+ no_candidates_reason?: string | undefined;
659
+ no_candidates_reason_code?: "no_completed_investigation" | "insufficient_check_evidence" | "unsupported_source_capability" | "not_repeatable" | "remediation_only" | "existing_runbook_covers_pattern" | "validation_failed" | "tool_unavailable" | undefined;
660
+ covering_runbook?: {
661
+ version: number;
662
+ runbook_id: number;
663
+ } | undefined;
664
+ }>, {
665
+ incident_id: number;
666
+ submission_id: string;
667
+ candidates: ({
668
+ description: string;
669
+ name: string;
670
+ trigger_summary: string;
671
+ relation: "new";
672
+ rationale: string;
673
+ reuse_case: string;
674
+ limitations: string[];
675
+ definition_json: {
676
+ schema_version: "v2";
677
+ } & {
678
+ [k: string]: unknown;
679
+ };
680
+ supporting_evidence: {
681
+ finding_ids: number[];
682
+ check_id: string;
683
+ investigation_run_id: string;
684
+ trace_step_ids: string[];
685
+ }[];
686
+ existing_runbook?: undefined;
687
+ slug?: string | undefined;
688
+ } | {
689
+ description: string;
690
+ name: string;
691
+ trigger_summary: string;
692
+ relation: "extends";
693
+ rationale: string;
694
+ existing_runbook: {
695
+ version: number;
696
+ runbook_id: number;
697
+ };
698
+ reuse_case: string;
699
+ limitations: string[];
700
+ definition_json: {
701
+ schema_version: "v2";
702
+ } & {
703
+ [k: string]: unknown;
704
+ };
705
+ supporting_evidence: {
706
+ finding_ids: number[];
707
+ check_id: string;
708
+ investigation_run_id: string;
709
+ trace_step_ids: string[];
710
+ }[];
711
+ slug?: string | undefined;
712
+ })[];
713
+ source_bundle_id?: string | undefined;
714
+ postmortem_version_id?: number | undefined;
715
+ analysis_request_id?: string | undefined;
716
+ postmortem_timeline_event_id?: number | undefined;
717
+ analysis_summary?: string | undefined;
718
+ no_candidates_reason?: string | undefined;
719
+ no_candidates_reason_code?: "no_completed_investigation" | "insufficient_check_evidence" | "unsupported_source_capability" | "not_repeatable" | "remediation_only" | "existing_runbook_covers_pattern" | "validation_failed" | "tool_unavailable" | undefined;
720
+ covering_runbook?: {
721
+ version: number;
722
+ runbook_id: number;
723
+ } | undefined;
724
+ }, {
725
+ incident_id: number;
726
+ submission_id: string;
727
+ candidates: ({
728
+ description: string;
729
+ name: string;
730
+ trigger_summary: string;
731
+ relation: "new";
732
+ rationale: string;
733
+ reuse_case: string;
734
+ definition_json: {
735
+ schema_version: "v2";
736
+ } & {
737
+ [k: string]: unknown;
738
+ };
739
+ supporting_evidence: {
740
+ check_id: string;
741
+ investigation_run_id: string;
742
+ finding_ids?: number[] | undefined;
743
+ trace_step_ids?: string[] | undefined;
744
+ }[];
745
+ existing_runbook?: undefined;
746
+ slug?: string | undefined;
747
+ limitations?: string[] | undefined;
748
+ } | {
749
+ description: string;
750
+ name: string;
751
+ trigger_summary: string;
752
+ relation: "extends";
753
+ rationale: string;
754
+ existing_runbook: {
755
+ version: number;
756
+ runbook_id: number;
757
+ };
758
+ reuse_case: string;
759
+ definition_json: {
760
+ schema_version: "v2";
761
+ } & {
762
+ [k: string]: unknown;
763
+ };
764
+ supporting_evidence: {
765
+ check_id: string;
766
+ investigation_run_id: string;
767
+ finding_ids?: number[] | undefined;
768
+ trace_step_ids?: string[] | undefined;
769
+ }[];
770
+ slug?: string | undefined;
771
+ limitations?: string[] | undefined;
772
+ })[];
773
+ source_bundle_id?: string | undefined;
774
+ postmortem_version_id?: number | undefined;
775
+ analysis_request_id?: string | undefined;
776
+ postmortem_timeline_event_id?: number | undefined;
777
+ analysis_summary?: string | undefined;
778
+ no_candidates_reason?: string | undefined;
779
+ no_candidates_reason_code?: "no_completed_investigation" | "insufficient_check_evidence" | "unsupported_source_capability" | "not_repeatable" | "remediation_only" | "existing_runbook_covers_pattern" | "validation_failed" | "tool_unavailable" | undefined;
780
+ covering_runbook?: {
781
+ version: number;
782
+ runbook_id: number;
783
+ } | undefined;
784
+ }>;
785
+ /** Register independent evidence-grounded analysis and candidate submission. */
786
+ export declare function registerPostmortemRunbookTools(server: McpServer, client: TellagenClient): void;