@sentry/junior-github 0.300.0 → 0.302.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 (54) hide show
  1. package/dist/account-links.d.ts +8 -0
  2. package/dist/{chunk-YUF5P5I7.js → chunk-6SOJ5TN6.js} +142 -31
  3. package/dist/clone-command.d.ts +2 -0
  4. package/dist/configured-repository.d.ts +10 -0
  5. package/dist/db/schema.d.ts +23 -14
  6. package/dist/draft-readiness.d.ts +31 -0
  7. package/dist/events/pull-request.d.ts +1 -1
  8. package/dist/events/repository.d.ts +1 -1
  9. package/dist/graphql-documents.d.ts +13 -0
  10. package/dist/hooks-path-command.d.ts +5 -0
  11. package/dist/images.d.ts +8 -0
  12. package/dist/index.js +2355 -1801
  13. package/dist/merge-conflict-checks/heartbeat.d.ts +9 -5
  14. package/dist/merge-conflict-checks/policy.d.ts +74 -0
  15. package/dist/object-facts.d.ts +14 -3
  16. package/dist/pull-request-outcomes/reconcile.d.ts +2 -1
  17. package/dist/pull-request-outcomes/store.d.ts +15 -10
  18. package/dist/reply-markdown.d.ts +18 -2
  19. package/dist/testing.js +1 -1
  20. package/dist/tool-support/github-api.d.ts +7 -0
  21. package/dist/tool-support/github-text.d.ts +8 -0
  22. package/dist/tools/clone-repository.d.ts +89 -7
  23. package/dist/tools/comment-on-issue.d.ts +87 -3
  24. package/dist/tools/comment-on-pull-request.d.ts +87 -3
  25. package/dist/tools/create-issue.d.ts +86 -4
  26. package/dist/tools/create-pull-request.d.ts +88 -6
  27. package/dist/tools/get-deployment.d.ts +90 -8
  28. package/dist/tools/get-issue.d.ts +98 -16
  29. package/dist/tools/get-pull-request.d.ts +112 -9
  30. package/dist/tools/get-release.d.ts +90 -8
  31. package/dist/tools/get-repository.d.ts +90 -8
  32. package/dist/tools/get-status.d.ts +87 -5
  33. package/dist/tools/react-to-issue.d.ts +87 -3
  34. package/dist/tools/resolve-pull-request-review-thread.d.ts +87 -5
  35. package/dist/tools/submit-pull-request-review.d.ts +87 -3
  36. package/dist/tools/update-issue-comment.d.ts +87 -3
  37. package/dist/tools/update-issue.d.ts +106 -24
  38. package/dist/tools/update-pull-request-feedback.d.ts +87 -5
  39. package/dist/tools/update-pull-request.d.ts +109 -26
  40. package/dist/tools.d.ts +3 -3
  41. package/dist/webhooks/check-suite.d.ts +30 -3
  42. package/dist/webhooks/handler.d.ts +2 -0
  43. package/dist/webhooks/installation-requests.d.ts +8 -1
  44. package/dist/webhooks/merge-conflict.d.ts +7 -2
  45. package/dist/webhooks/pull-request-action.d.ts +37 -0
  46. package/migrations/0012_pull_request_next_action.sql +5 -0
  47. package/migrations/meta/0012_snapshot.json +434 -0
  48. package/migrations/meta/_journal.json +7 -0
  49. package/package.json +7 -2
  50. package/skills/github-code/SKILL.md +1 -1
  51. package/skills/github-code/SPEC.md +2 -2
  52. package/skills/github-code/references/workflow.md +1 -1
  53. package/dist/webhooks/pull-request-ready.d.ts +0 -31
  54. package/dist/webhooks/pull-request-review-request.d.ts +0 -32
@@ -3,20 +3,7 @@ import { type Actor, type Identity, type PluginEgress, type PluginLogger, type U
3
3
  * Read one GitHub issue. Sandbox issue reads are routed here so the result can
4
4
  * tell the agent to claim an issue that the requester does not own yet.
5
5
  */
6
- export declare function createGitHubGetIssueTool(ctx: {
7
- actor?: Actor;
8
- egress: PluginEgress;
9
- events: {
10
- canSubscribe: boolean;
11
- };
12
- log: PluginLogger;
13
- users: {
14
- resolveActor(): Promise<{
15
- identity?: Identity;
16
- user?: User;
17
- } | undefined>;
18
- };
19
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
6
+ export declare const gitHubGetIssueTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
20
7
  repo: string;
21
8
  number: number;
22
9
  }, {
@@ -24,7 +11,7 @@ export declare function createGitHubGetIssueTool(ctx: {
24
11
  kind: "object";
25
12
  key: string;
26
13
  label: string;
27
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
14
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
28
15
  title: string;
29
16
  url: string | null;
30
17
  description?: string | undefined;
@@ -60,6 +47,10 @@ export declare function createGitHubGetIssueTool(ctx: {
60
47
  cycle?: string | undefined;
61
48
  dueDate?: string | undefined;
62
49
  labels?: string[] | undefined;
50
+ trend?: {
51
+ label: string;
52
+ points: number[];
53
+ } | undefined;
63
54
  } | {
64
55
  type: "deployment";
65
56
  summary?: string | undefined;
@@ -82,6 +73,7 @@ export declare function createGitHubGetIssueTool(ctx: {
82
73
  summary?: string | undefined;
83
74
  owner?: string | undefined;
84
75
  modifiedAt?: string | undefined;
76
+ thumbnailUrl?: string | undefined;
85
77
  } | {
86
78
  type: "message";
87
79
  summary?: string | undefined;
@@ -93,7 +85,43 @@ export declare function createGitHubGetIssueTool(ctx: {
93
85
  summary?: string | undefined;
94
86
  siteName?: string | undefined;
95
87
  author?: string | undefined;
88
+ media?: "image" | "video" | undefined;
96
89
  thumbnailUrl?: string | undefined;
90
+ } | {
91
+ type: "chart";
92
+ summary?: string | undefined;
93
+ display: "area" | "bar" | "line";
94
+ yAxis: string;
95
+ range: string;
96
+ series: {
97
+ label: string;
98
+ points: number[];
99
+ }[];
100
+ } | {
101
+ type: "event";
102
+ summary?: string | undefined;
103
+ level?: string | undefined;
104
+ project?: string | undefined;
105
+ release?: string | undefined;
106
+ environment?: string | undefined;
107
+ occurredAt?: string | undefined;
108
+ } | {
109
+ type: "trace";
110
+ summary?: string | undefined;
111
+ rootOp?: string | undefined;
112
+ rootName?: string | undefined;
113
+ durationMs: number;
114
+ spanCount: number;
115
+ errorCount: number;
116
+ performanceIssueCount: number;
117
+ projects: string[];
118
+ spans: {
119
+ op?: string | undefined;
120
+ name: string;
121
+ startMs: number;
122
+ durationMs: number;
123
+ issue?: boolean | undefined;
124
+ }[];
97
125
  } | {
98
126
  type: "person";
99
127
  summary?: string | undefined;
@@ -137,7 +165,7 @@ export declare function createGitHubGetIssueTool(ctx: {
137
165
  kind: "object";
138
166
  key: string;
139
167
  label: string;
140
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
168
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
141
169
  title: string;
142
170
  url: string | null;
143
171
  description?: string | undefined;
@@ -173,6 +201,10 @@ export declare function createGitHubGetIssueTool(ctx: {
173
201
  cycle?: string | undefined;
174
202
  dueDate?: string | undefined;
175
203
  labels?: string[] | undefined;
204
+ trend?: {
205
+ label: string;
206
+ points: number[];
207
+ } | undefined;
176
208
  } | {
177
209
  type: "deployment";
178
210
  summary?: string | undefined;
@@ -195,6 +227,7 @@ export declare function createGitHubGetIssueTool(ctx: {
195
227
  summary?: string | undefined;
196
228
  owner?: string | undefined;
197
229
  modifiedAt?: string | undefined;
230
+ thumbnailUrl?: string | undefined;
198
231
  } | {
199
232
  type: "message";
200
233
  summary?: string | undefined;
@@ -206,7 +239,43 @@ export declare function createGitHubGetIssueTool(ctx: {
206
239
  summary?: string | undefined;
207
240
  siteName?: string | undefined;
208
241
  author?: string | undefined;
242
+ media?: "image" | "video" | undefined;
209
243
  thumbnailUrl?: string | undefined;
244
+ } | {
245
+ type: "chart";
246
+ summary?: string | undefined;
247
+ display: "area" | "bar" | "line";
248
+ yAxis: string;
249
+ range: string;
250
+ series: {
251
+ label: string;
252
+ points: number[];
253
+ }[];
254
+ } | {
255
+ type: "event";
256
+ summary?: string | undefined;
257
+ level?: string | undefined;
258
+ project?: string | undefined;
259
+ release?: string | undefined;
260
+ environment?: string | undefined;
261
+ occurredAt?: string | undefined;
262
+ } | {
263
+ type: "trace";
264
+ summary?: string | undefined;
265
+ rootOp?: string | undefined;
266
+ rootName?: string | undefined;
267
+ durationMs: number;
268
+ spanCount: number;
269
+ errorCount: number;
270
+ performanceIssueCount: number;
271
+ projects: string[];
272
+ spans: {
273
+ op?: string | undefined;
274
+ name: string;
275
+ startMs: number;
276
+ durationMs: number;
277
+ issue?: boolean | undefined;
278
+ }[];
210
279
  } | {
211
280
  type: "person";
212
281
  summary?: string | undefined;
@@ -245,4 +314,17 @@ export declare function createGitHubGetIssueTool(ctx: {
245
314
  title: string;
246
315
  url: string;
247
316
  target: "getIssue";
317
+ }, {
318
+ actor?: Actor;
319
+ egress: PluginEgress;
320
+ events: {
321
+ canSubscribe: boolean;
322
+ };
323
+ log: PluginLogger;
324
+ users: {
325
+ resolveActor(): Promise<{
326
+ identity?: Identity;
327
+ user?: User;
328
+ } | undefined>;
329
+ };
248
330
  }>;
@@ -1,11 +1,6 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
1
+ import { type PluginConversationToolContext, type PluginEgress } from "@sentry/junior-plugin-api";
2
2
  /** Read one PR and expose its stable subscription identity when webhooks are enabled. */
3
- export declare function createGitHubGetPullRequestTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
3
+ export declare const gitHubGetPullRequestTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
4
  repo: string;
10
5
  number: number;
11
6
  }, {
@@ -13,7 +8,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
13
8
  kind: "object";
14
9
  key: string;
15
10
  label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
11
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
17
12
  title: string;
18
13
  url: string | null;
19
14
  description?: string | undefined;
@@ -49,6 +44,10 @@ export declare function createGitHubGetPullRequestTool(ctx: {
49
44
  cycle?: string | undefined;
50
45
  dueDate?: string | undefined;
51
46
  labels?: string[] | undefined;
47
+ trend?: {
48
+ label: string;
49
+ points: number[];
50
+ } | undefined;
52
51
  } | {
53
52
  type: "deployment";
54
53
  summary?: string | undefined;
@@ -71,6 +70,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
71
70
  summary?: string | undefined;
72
71
  owner?: string | undefined;
73
72
  modifiedAt?: string | undefined;
73
+ thumbnailUrl?: string | undefined;
74
74
  } | {
75
75
  type: "message";
76
76
  summary?: string | undefined;
@@ -82,7 +82,43 @@ export declare function createGitHubGetPullRequestTool(ctx: {
82
82
  summary?: string | undefined;
83
83
  siteName?: string | undefined;
84
84
  author?: string | undefined;
85
+ media?: "image" | "video" | undefined;
85
86
  thumbnailUrl?: string | undefined;
87
+ } | {
88
+ type: "chart";
89
+ summary?: string | undefined;
90
+ display: "area" | "bar" | "line";
91
+ yAxis: string;
92
+ range: string;
93
+ series: {
94
+ label: string;
95
+ points: number[];
96
+ }[];
97
+ } | {
98
+ type: "event";
99
+ summary?: string | undefined;
100
+ level?: string | undefined;
101
+ project?: string | undefined;
102
+ release?: string | undefined;
103
+ environment?: string | undefined;
104
+ occurredAt?: string | undefined;
105
+ } | {
106
+ type: "trace";
107
+ summary?: string | undefined;
108
+ rootOp?: string | undefined;
109
+ rootName?: string | undefined;
110
+ durationMs: number;
111
+ spanCount: number;
112
+ errorCount: number;
113
+ performanceIssueCount: number;
114
+ projects: string[];
115
+ spans: {
116
+ op?: string | undefined;
117
+ name: string;
118
+ startMs: number;
119
+ durationMs: number;
120
+ issue?: boolean | undefined;
121
+ }[];
86
122
  } | {
87
123
  type: "person";
88
124
  summary?: string | undefined;
@@ -102,6 +138,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
102
138
  reason?: string | undefined;
103
139
  } | undefined;
104
140
  base: string;
141
+ agents_md?: string | undefined;
105
142
  checks: {
106
143
  required: "failing" | "not_reported" | "passing" | "pending";
107
144
  failing: string[];
@@ -112,11 +149,20 @@ export declare function createGitHubGetPullRequestTool(ctx: {
112
149
  review_decision: string | null;
113
150
  auto_merge: boolean;
114
151
  };
152
+ code_owners?: string[] | undefined;
115
153
  draft: boolean;
116
154
  head: string;
117
155
  head_sha: string;
118
156
  merged: boolean;
119
157
  number: number;
158
+ related_conversations?: {
159
+ conversation_id: string;
160
+ root_conversation_id?: string | undefined;
161
+ status: "idle" | "paused" | "pending" | "running";
162
+ title?: string | undefined;
163
+ summary?: string | undefined;
164
+ updated_at: string;
165
+ }[] | undefined;
120
166
  state: string;
121
167
  subscribable?: {
122
168
  identifier: string;
@@ -135,7 +181,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
135
181
  kind: "object";
136
182
  key: string;
137
183
  label: string;
138
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
184
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
139
185
  title: string;
140
186
  url: string | null;
141
187
  description?: string | undefined;
@@ -171,6 +217,10 @@ export declare function createGitHubGetPullRequestTool(ctx: {
171
217
  cycle?: string | undefined;
172
218
  dueDate?: string | undefined;
173
219
  labels?: string[] | undefined;
220
+ trend?: {
221
+ label: string;
222
+ points: number[];
223
+ } | undefined;
174
224
  } | {
175
225
  type: "deployment";
176
226
  summary?: string | undefined;
@@ -193,6 +243,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
193
243
  summary?: string | undefined;
194
244
  owner?: string | undefined;
195
245
  modifiedAt?: string | undefined;
246
+ thumbnailUrl?: string | undefined;
196
247
  } | {
197
248
  type: "message";
198
249
  summary?: string | undefined;
@@ -204,7 +255,43 @@ export declare function createGitHubGetPullRequestTool(ctx: {
204
255
  summary?: string | undefined;
205
256
  siteName?: string | undefined;
206
257
  author?: string | undefined;
258
+ media?: "image" | "video" | undefined;
207
259
  thumbnailUrl?: string | undefined;
260
+ } | {
261
+ type: "chart";
262
+ summary?: string | undefined;
263
+ display: "area" | "bar" | "line";
264
+ yAxis: string;
265
+ range: string;
266
+ series: {
267
+ label: string;
268
+ points: number[];
269
+ }[];
270
+ } | {
271
+ type: "event";
272
+ summary?: string | undefined;
273
+ level?: string | undefined;
274
+ project?: string | undefined;
275
+ release?: string | undefined;
276
+ environment?: string | undefined;
277
+ occurredAt?: string | undefined;
278
+ } | {
279
+ type: "trace";
280
+ summary?: string | undefined;
281
+ rootOp?: string | undefined;
282
+ rootName?: string | undefined;
283
+ durationMs: number;
284
+ spanCount: number;
285
+ errorCount: number;
286
+ performanceIssueCount: number;
287
+ projects: string[];
288
+ spans: {
289
+ op?: string | undefined;
290
+ name: string;
291
+ startMs: number;
292
+ durationMs: number;
293
+ issue?: boolean | undefined;
294
+ }[];
208
295
  } | {
209
296
  type: "person";
210
297
  summary?: string | undefined;
@@ -224,6 +311,7 @@ export declare function createGitHubGetPullRequestTool(ctx: {
224
311
  reason?: string | undefined;
225
312
  } | undefined;
226
313
  base: string;
314
+ agents_md?: string | undefined;
227
315
  checks: {
228
316
  required: "failing" | "not_reported" | "passing" | "pending";
229
317
  failing: string[];
@@ -234,11 +322,20 @@ export declare function createGitHubGetPullRequestTool(ctx: {
234
322
  review_decision: string | null;
235
323
  auto_merge: boolean;
236
324
  };
325
+ code_owners?: string[] | undefined;
237
326
  draft: boolean;
238
327
  head: string;
239
328
  head_sha: string;
240
329
  merged: boolean;
241
330
  number: number;
331
+ related_conversations?: {
332
+ conversation_id: string;
333
+ root_conversation_id?: string | undefined;
334
+ status: "idle" | "paused" | "pending" | "running";
335
+ title?: string | undefined;
336
+ summary?: string | undefined;
337
+ updated_at: string;
338
+ }[] | undefined;
242
339
  state: string;
243
340
  subscribable?: {
244
341
  identifier: string;
@@ -252,4 +349,10 @@ export declare function createGitHubGetPullRequestTool(ctx: {
252
349
  title: string;
253
350
  url: string;
254
351
  target: "getPullRequest";
352
+ }, {
353
+ conversations?: PluginConversationToolContext;
354
+ egress: PluginEgress;
355
+ events: {
356
+ canSubscribe: boolean;
357
+ };
255
358
  }>;
@@ -1,11 +1,6 @@
1
1
  import { type PluginEgress } from "@sentry/junior-plugin-api";
2
2
  /** Read release metadata and expose its stable subscription identity. */
3
- export declare function createGitHubGetReleaseTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
3
+ export declare const gitHubGetReleaseTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
4
  repo: string;
10
5
  tag?: string | undefined;
11
6
  }, {
@@ -13,7 +8,7 @@ export declare function createGitHubGetReleaseTool(ctx: {
13
8
  kind: "object";
14
9
  key: string;
15
10
  label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
11
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
17
12
  title: string;
18
13
  url: string | null;
19
14
  description?: string | undefined;
@@ -49,6 +44,10 @@ export declare function createGitHubGetReleaseTool(ctx: {
49
44
  cycle?: string | undefined;
50
45
  dueDate?: string | undefined;
51
46
  labels?: string[] | undefined;
47
+ trend?: {
48
+ label: string;
49
+ points: number[];
50
+ } | undefined;
52
51
  } | {
53
52
  type: "deployment";
54
53
  summary?: string | undefined;
@@ -71,6 +70,7 @@ export declare function createGitHubGetReleaseTool(ctx: {
71
70
  summary?: string | undefined;
72
71
  owner?: string | undefined;
73
72
  modifiedAt?: string | undefined;
73
+ thumbnailUrl?: string | undefined;
74
74
  } | {
75
75
  type: "message";
76
76
  summary?: string | undefined;
@@ -82,7 +82,43 @@ export declare function createGitHubGetReleaseTool(ctx: {
82
82
  summary?: string | undefined;
83
83
  siteName?: string | undefined;
84
84
  author?: string | undefined;
85
+ media?: "image" | "video" | undefined;
85
86
  thumbnailUrl?: string | undefined;
87
+ } | {
88
+ type: "chart";
89
+ summary?: string | undefined;
90
+ display: "area" | "bar" | "line";
91
+ yAxis: string;
92
+ range: string;
93
+ series: {
94
+ label: string;
95
+ points: number[];
96
+ }[];
97
+ } | {
98
+ type: "event";
99
+ summary?: string | undefined;
100
+ level?: string | undefined;
101
+ project?: string | undefined;
102
+ release?: string | undefined;
103
+ environment?: string | undefined;
104
+ occurredAt?: string | undefined;
105
+ } | {
106
+ type: "trace";
107
+ summary?: string | undefined;
108
+ rootOp?: string | undefined;
109
+ rootName?: string | undefined;
110
+ durationMs: number;
111
+ spanCount: number;
112
+ errorCount: number;
113
+ performanceIssueCount: number;
114
+ projects: string[];
115
+ spans: {
116
+ op?: string | undefined;
117
+ name: string;
118
+ startMs: number;
119
+ durationMs: number;
120
+ issue?: boolean | undefined;
121
+ }[];
86
122
  } | {
87
123
  type: "person";
88
124
  summary?: string | undefined;
@@ -129,7 +165,7 @@ export declare function createGitHubGetReleaseTool(ctx: {
129
165
  kind: "object";
130
166
  key: string;
131
167
  label: string;
132
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
168
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
133
169
  title: string;
134
170
  url: string | null;
135
171
  description?: string | undefined;
@@ -165,6 +201,10 @@ export declare function createGitHubGetReleaseTool(ctx: {
165
201
  cycle?: string | undefined;
166
202
  dueDate?: string | undefined;
167
203
  labels?: string[] | undefined;
204
+ trend?: {
205
+ label: string;
206
+ points: number[];
207
+ } | undefined;
168
208
  } | {
169
209
  type: "deployment";
170
210
  summary?: string | undefined;
@@ -187,6 +227,7 @@ export declare function createGitHubGetReleaseTool(ctx: {
187
227
  summary?: string | undefined;
188
228
  owner?: string | undefined;
189
229
  modifiedAt?: string | undefined;
230
+ thumbnailUrl?: string | undefined;
190
231
  } | {
191
232
  type: "message";
192
233
  summary?: string | undefined;
@@ -198,7 +239,43 @@ export declare function createGitHubGetReleaseTool(ctx: {
198
239
  summary?: string | undefined;
199
240
  siteName?: string | undefined;
200
241
  author?: string | undefined;
242
+ media?: "image" | "video" | undefined;
201
243
  thumbnailUrl?: string | undefined;
244
+ } | {
245
+ type: "chart";
246
+ summary?: string | undefined;
247
+ display: "area" | "bar" | "line";
248
+ yAxis: string;
249
+ range: string;
250
+ series: {
251
+ label: string;
252
+ points: number[];
253
+ }[];
254
+ } | {
255
+ type: "event";
256
+ summary?: string | undefined;
257
+ level?: string | undefined;
258
+ project?: string | undefined;
259
+ release?: string | undefined;
260
+ environment?: string | undefined;
261
+ occurredAt?: string | undefined;
262
+ } | {
263
+ type: "trace";
264
+ summary?: string | undefined;
265
+ rootOp?: string | undefined;
266
+ rootName?: string | undefined;
267
+ durationMs: number;
268
+ spanCount: number;
269
+ errorCount: number;
270
+ performanceIssueCount: number;
271
+ projects: string[];
272
+ spans: {
273
+ op?: string | undefined;
274
+ name: string;
275
+ startMs: number;
276
+ durationMs: number;
277
+ issue?: boolean | undefined;
278
+ }[];
202
279
  } | {
203
280
  type: "person";
204
281
  summary?: string | undefined;
@@ -240,4 +317,9 @@ export declare function createGitHubGetReleaseTool(ctx: {
240
317
  } | undefined;
241
318
  tag: string | null;
242
319
  target: "getRelease";
320
+ }, {
321
+ egress: PluginEgress;
322
+ events: {
323
+ canSubscribe: boolean;
324
+ };
243
325
  }>;