@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
@@ -4,7 +4,7 @@ import { type PluginEgress } from "@sentry/junior-plugin-api";
4
4
  * thread. GitHub keeps conversation comments under the issues endpoint and
5
5
  * thread replies under the pulls endpoint.
6
6
  */
7
- export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgress): import("@sentry/junior-plugin-api").PluginToolDefinition<{
7
+ export declare const gitHubCommentOnPullRequestTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
8
8
  repo: string;
9
9
  number: number;
10
10
  body: string;
@@ -15,7 +15,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
15
15
  kind: "object";
16
16
  key: string;
17
17
  label: string;
18
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
18
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
19
19
  title: string;
20
20
  url: string | null;
21
21
  description?: string | undefined;
@@ -51,6 +51,10 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
51
51
  cycle?: string | undefined;
52
52
  dueDate?: string | undefined;
53
53
  labels?: string[] | undefined;
54
+ trend?: {
55
+ label: string;
56
+ points: number[];
57
+ } | undefined;
54
58
  } | {
55
59
  type: "deployment";
56
60
  summary?: string | undefined;
@@ -73,6 +77,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
73
77
  summary?: string | undefined;
74
78
  owner?: string | undefined;
75
79
  modifiedAt?: string | undefined;
80
+ thumbnailUrl?: string | undefined;
76
81
  } | {
77
82
  type: "message";
78
83
  summary?: string | undefined;
@@ -84,7 +89,43 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
84
89
  summary?: string | undefined;
85
90
  siteName?: string | undefined;
86
91
  author?: string | undefined;
92
+ media?: "image" | "video" | undefined;
87
93
  thumbnailUrl?: string | undefined;
94
+ } | {
95
+ type: "chart";
96
+ summary?: string | undefined;
97
+ display: "area" | "bar" | "line";
98
+ yAxis: string;
99
+ range: string;
100
+ series: {
101
+ label: string;
102
+ points: number[];
103
+ }[];
104
+ } | {
105
+ type: "event";
106
+ summary?: string | undefined;
107
+ level?: string | undefined;
108
+ project?: string | undefined;
109
+ release?: string | undefined;
110
+ environment?: string | undefined;
111
+ occurredAt?: string | undefined;
112
+ } | {
113
+ type: "trace";
114
+ summary?: string | undefined;
115
+ rootOp?: string | undefined;
116
+ rootName?: string | undefined;
117
+ durationMs: number;
118
+ spanCount: number;
119
+ errorCount: number;
120
+ performanceIssueCount: number;
121
+ projects: string[];
122
+ spans: {
123
+ op?: string | undefined;
124
+ name: string;
125
+ startMs: number;
126
+ durationMs: number;
127
+ issue?: boolean | undefined;
128
+ }[];
88
129
  } | {
89
130
  type: "person";
90
131
  summary?: string | undefined;
@@ -114,7 +155,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
114
155
  kind: "object";
115
156
  key: string;
116
157
  label: string;
117
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
158
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
118
159
  title: string;
119
160
  url: string | null;
120
161
  description?: string | undefined;
@@ -150,6 +191,10 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
150
191
  cycle?: string | undefined;
151
192
  dueDate?: string | undefined;
152
193
  labels?: string[] | undefined;
194
+ trend?: {
195
+ label: string;
196
+ points: number[];
197
+ } | undefined;
153
198
  } | {
154
199
  type: "deployment";
155
200
  summary?: string | undefined;
@@ -172,6 +217,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
172
217
  summary?: string | undefined;
173
218
  owner?: string | undefined;
174
219
  modifiedAt?: string | undefined;
220
+ thumbnailUrl?: string | undefined;
175
221
  } | {
176
222
  type: "message";
177
223
  summary?: string | undefined;
@@ -183,7 +229,43 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
183
229
  summary?: string | undefined;
184
230
  siteName?: string | undefined;
185
231
  author?: string | undefined;
232
+ media?: "image" | "video" | undefined;
186
233
  thumbnailUrl?: string | undefined;
234
+ } | {
235
+ type: "chart";
236
+ summary?: string | undefined;
237
+ display: "area" | "bar" | "line";
238
+ yAxis: string;
239
+ range: string;
240
+ series: {
241
+ label: string;
242
+ points: number[];
243
+ }[];
244
+ } | {
245
+ type: "event";
246
+ summary?: string | undefined;
247
+ level?: string | undefined;
248
+ project?: string | undefined;
249
+ release?: string | undefined;
250
+ environment?: string | undefined;
251
+ occurredAt?: string | undefined;
252
+ } | {
253
+ type: "trace";
254
+ summary?: string | undefined;
255
+ rootOp?: string | undefined;
256
+ rootName?: string | undefined;
257
+ durationMs: number;
258
+ spanCount: number;
259
+ errorCount: number;
260
+ performanceIssueCount: number;
261
+ projects: string[];
262
+ spans: {
263
+ op?: string | undefined;
264
+ name: string;
265
+ startMs: number;
266
+ durationMs: number;
267
+ issue?: boolean | undefined;
268
+ }[];
187
269
  } | {
188
270
  type: "person";
189
271
  summary?: string | undefined;
@@ -207,4 +289,6 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
207
289
  number: number;
208
290
  comment_id: number;
209
291
  url: string;
292
+ }, {
293
+ egress: PluginEgress;
210
294
  }>;
@@ -1,6 +1,6 @@
1
1
  import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
2
2
  /** Own issue creation so provider writes use host egress and the footer stays deterministic. */
3
- export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
3
+ export declare const gitHubIssueTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
4
  repo: string;
5
5
  title: string;
6
6
  body?: string | undefined;
@@ -10,7 +10,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
10
10
  kind: "object";
11
11
  key: string;
12
12
  label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
13
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
14
14
  title: string;
15
15
  url: string | null;
16
16
  description?: string | undefined;
@@ -46,6 +46,10 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
46
46
  cycle?: string | undefined;
47
47
  dueDate?: string | undefined;
48
48
  labels?: string[] | undefined;
49
+ trend?: {
50
+ label: string;
51
+ points: number[];
52
+ } | undefined;
49
53
  } | {
50
54
  type: "deployment";
51
55
  summary?: string | undefined;
@@ -68,6 +72,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
68
72
  summary?: string | undefined;
69
73
  owner?: string | undefined;
70
74
  modifiedAt?: string | undefined;
75
+ thumbnailUrl?: string | undefined;
71
76
  } | {
72
77
  type: "message";
73
78
  summary?: string | undefined;
@@ -79,7 +84,43 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
79
84
  summary?: string | undefined;
80
85
  siteName?: string | undefined;
81
86
  author?: string | undefined;
87
+ media?: "image" | "video" | undefined;
82
88
  thumbnailUrl?: string | undefined;
89
+ } | {
90
+ type: "chart";
91
+ summary?: string | undefined;
92
+ display: "area" | "bar" | "line";
93
+ yAxis: string;
94
+ range: string;
95
+ series: {
96
+ label: string;
97
+ points: number[];
98
+ }[];
99
+ } | {
100
+ type: "event";
101
+ summary?: string | undefined;
102
+ level?: string | undefined;
103
+ project?: string | undefined;
104
+ release?: string | undefined;
105
+ environment?: string | undefined;
106
+ occurredAt?: string | undefined;
107
+ } | {
108
+ type: "trace";
109
+ summary?: string | undefined;
110
+ rootOp?: string | undefined;
111
+ rootName?: string | undefined;
112
+ durationMs: number;
113
+ spanCount: number;
114
+ errorCount: number;
115
+ performanceIssueCount: number;
116
+ projects: string[];
117
+ spans: {
118
+ op?: string | undefined;
119
+ name: string;
120
+ startMs: number;
121
+ durationMs: number;
122
+ issue?: boolean | undefined;
123
+ }[];
83
124
  } | {
84
125
  type: "person";
85
126
  summary?: string | undefined;
@@ -115,7 +156,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
115
156
  kind: "object";
116
157
  key: string;
117
158
  label: string;
118
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
159
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
119
160
  title: string;
120
161
  url: string | null;
121
162
  description?: string | undefined;
@@ -151,6 +192,10 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
151
192
  cycle?: string | undefined;
152
193
  dueDate?: string | undefined;
153
194
  labels?: string[] | undefined;
195
+ trend?: {
196
+ label: string;
197
+ points: number[];
198
+ } | undefined;
154
199
  } | {
155
200
  type: "deployment";
156
201
  summary?: string | undefined;
@@ -173,6 +218,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
173
218
  summary?: string | undefined;
174
219
  owner?: string | undefined;
175
220
  modifiedAt?: string | undefined;
221
+ thumbnailUrl?: string | undefined;
176
222
  } | {
177
223
  type: "message";
178
224
  summary?: string | undefined;
@@ -184,7 +230,43 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
184
230
  summary?: string | undefined;
185
231
  siteName?: string | undefined;
186
232
  author?: string | undefined;
233
+ media?: "image" | "video" | undefined;
187
234
  thumbnailUrl?: string | undefined;
235
+ } | {
236
+ type: "chart";
237
+ summary?: string | undefined;
238
+ display: "area" | "bar" | "line";
239
+ yAxis: string;
240
+ range: string;
241
+ series: {
242
+ label: string;
243
+ points: number[];
244
+ }[];
245
+ } | {
246
+ type: "event";
247
+ summary?: string | undefined;
248
+ level?: string | undefined;
249
+ project?: string | undefined;
250
+ release?: string | undefined;
251
+ environment?: string | undefined;
252
+ occurredAt?: string | undefined;
253
+ } | {
254
+ type: "trace";
255
+ summary?: string | undefined;
256
+ rootOp?: string | undefined;
257
+ rootName?: string | undefined;
258
+ durationMs: number;
259
+ spanCount: number;
260
+ errorCount: number;
261
+ performanceIssueCount: number;
262
+ projects: string[];
263
+ spans: {
264
+ op?: string | undefined;
265
+ name: string;
266
+ startMs: number;
267
+ durationMs: number;
268
+ issue?: boolean | undefined;
269
+ }[];
188
270
  } | {
189
271
  type: "person";
190
272
  summary?: string | undefined;
@@ -215,4 +297,4 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
215
297
  } | undefined;
216
298
  url: string;
217
299
  target: "createIssue";
218
- }>;
300
+ }, ToolRegistrationHookContext>;
@@ -1,9 +1,9 @@
1
- import { type PluginDecider, type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
1
+ import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
2
2
  import { type GitHubPullRequestSubscriptionConfig } from "../events/pull-request.js";
3
3
  /** Own PR creation so provider writes use host egress and the footer stays deterministic. */
4
- export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookContext, subscriptionConfig?: GitHubPullRequestSubscriptionConfig,
4
+ export declare function createGitHubPullRequestTool(subscriptionConfig?: GitHubPullRequestSubscriptionConfig,
5
5
  /** Set when the description check experiment is on. */
6
- descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginToolDefinition<{
6
+ descriptionChecks?: boolean): import("@sentry/junior-plugin-api").PluginToolDefinition<{
7
7
  repo: string;
8
8
  title: string;
9
9
  head: string;
@@ -16,7 +16,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
16
16
  kind: "object";
17
17
  key: string;
18
18
  label: string;
19
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
19
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
20
20
  title: string;
21
21
  url: string | null;
22
22
  description?: string | undefined;
@@ -52,6 +52,10 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
52
52
  cycle?: string | undefined;
53
53
  dueDate?: string | undefined;
54
54
  labels?: string[] | undefined;
55
+ trend?: {
56
+ label: string;
57
+ points: number[];
58
+ } | undefined;
55
59
  } | {
56
60
  type: "deployment";
57
61
  summary?: string | undefined;
@@ -74,6 +78,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
74
78
  summary?: string | undefined;
75
79
  owner?: string | undefined;
76
80
  modifiedAt?: string | undefined;
81
+ thumbnailUrl?: string | undefined;
77
82
  } | {
78
83
  type: "message";
79
84
  summary?: string | undefined;
@@ -85,7 +90,43 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
85
90
  summary?: string | undefined;
86
91
  siteName?: string | undefined;
87
92
  author?: string | undefined;
93
+ media?: "image" | "video" | undefined;
88
94
  thumbnailUrl?: string | undefined;
95
+ } | {
96
+ type: "chart";
97
+ summary?: string | undefined;
98
+ display: "area" | "bar" | "line";
99
+ yAxis: string;
100
+ range: string;
101
+ series: {
102
+ label: string;
103
+ points: number[];
104
+ }[];
105
+ } | {
106
+ type: "event";
107
+ summary?: string | undefined;
108
+ level?: string | undefined;
109
+ project?: string | undefined;
110
+ release?: string | undefined;
111
+ environment?: string | undefined;
112
+ occurredAt?: string | undefined;
113
+ } | {
114
+ type: "trace";
115
+ summary?: string | undefined;
116
+ rootOp?: string | undefined;
117
+ rootName?: string | undefined;
118
+ durationMs: number;
119
+ spanCount: number;
120
+ errorCount: number;
121
+ performanceIssueCount: number;
122
+ projects: string[];
123
+ spans: {
124
+ op?: string | undefined;
125
+ name: string;
126
+ startMs: number;
127
+ durationMs: number;
128
+ issue?: boolean | undefined;
129
+ }[];
89
130
  } | {
90
131
  type: "person";
91
132
  summary?: string | undefined;
@@ -129,7 +170,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
129
170
  kind: "object";
130
171
  key: string;
131
172
  label: string;
132
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
173
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
133
174
  title: string;
134
175
  url: string | null;
135
176
  description?: string | undefined;
@@ -165,6 +206,10 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
165
206
  cycle?: string | undefined;
166
207
  dueDate?: string | undefined;
167
208
  labels?: string[] | undefined;
209
+ trend?: {
210
+ label: string;
211
+ points: number[];
212
+ } | undefined;
168
213
  } | {
169
214
  type: "deployment";
170
215
  summary?: string | undefined;
@@ -187,6 +232,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
187
232
  summary?: string | undefined;
188
233
  owner?: string | undefined;
189
234
  modifiedAt?: string | undefined;
235
+ thumbnailUrl?: string | undefined;
190
236
  } | {
191
237
  type: "message";
192
238
  summary?: string | undefined;
@@ -198,7 +244,43 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
198
244
  summary?: string | undefined;
199
245
  siteName?: string | undefined;
200
246
  author?: string | undefined;
247
+ media?: "image" | "video" | undefined;
201
248
  thumbnailUrl?: string | undefined;
249
+ } | {
250
+ type: "chart";
251
+ summary?: string | undefined;
252
+ display: "area" | "bar" | "line";
253
+ yAxis: string;
254
+ range: string;
255
+ series: {
256
+ label: string;
257
+ points: number[];
258
+ }[];
259
+ } | {
260
+ type: "event";
261
+ summary?: string | undefined;
262
+ level?: string | undefined;
263
+ project?: string | undefined;
264
+ release?: string | undefined;
265
+ environment?: string | undefined;
266
+ occurredAt?: string | undefined;
267
+ } | {
268
+ type: "trace";
269
+ summary?: string | undefined;
270
+ rootOp?: string | undefined;
271
+ rootName?: string | undefined;
272
+ durationMs: number;
273
+ spanCount: number;
274
+ errorCount: number;
275
+ performanceIssueCount: number;
276
+ projects: string[];
277
+ spans: {
278
+ op?: string | undefined;
279
+ name: string;
280
+ startMs: number;
281
+ durationMs: number;
282
+ issue?: boolean | undefined;
283
+ }[];
202
284
  } | {
203
285
  type: "person";
204
286
  summary?: string | undefined;
@@ -237,4 +319,4 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
237
319
  id: string;
238
320
  } | undefined;
239
321
  target: "createPullRequest";
240
- }>;
322
+ }, ToolRegistrationHookContext>;
@@ -1,11 +1,6 @@
1
1
  import { type PluginEgress } from "@sentry/junior-plugin-api";
2
2
  /** Read deployment metadata and expose its stable subscription identity. */
3
- export declare function createGitHubGetDeploymentTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
3
+ export declare const gitHubGetDeploymentTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
4
  repo: string;
10
5
  commit_sha: string;
11
6
  environment?: string | undefined;
@@ -14,7 +9,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
14
9
  kind: "object";
15
10
  key: string;
16
11
  label: string;
17
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
12
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
18
13
  title: string;
19
14
  url: string | null;
20
15
  description?: string | undefined;
@@ -50,6 +45,10 @@ export declare function createGitHubGetDeploymentTool(ctx: {
50
45
  cycle?: string | undefined;
51
46
  dueDate?: string | undefined;
52
47
  labels?: string[] | undefined;
48
+ trend?: {
49
+ label: string;
50
+ points: number[];
51
+ } | undefined;
53
52
  } | {
54
53
  type: "deployment";
55
54
  summary?: string | undefined;
@@ -72,6 +71,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
72
71
  summary?: string | undefined;
73
72
  owner?: string | undefined;
74
73
  modifiedAt?: string | undefined;
74
+ thumbnailUrl?: string | undefined;
75
75
  } | {
76
76
  type: "message";
77
77
  summary?: string | undefined;
@@ -83,7 +83,43 @@ export declare function createGitHubGetDeploymentTool(ctx: {
83
83
  summary?: string | undefined;
84
84
  siteName?: string | undefined;
85
85
  author?: string | undefined;
86
+ media?: "image" | "video" | undefined;
86
87
  thumbnailUrl?: string | undefined;
88
+ } | {
89
+ type: "chart";
90
+ summary?: string | undefined;
91
+ display: "area" | "bar" | "line";
92
+ yAxis: string;
93
+ range: string;
94
+ series: {
95
+ label: string;
96
+ points: number[];
97
+ }[];
98
+ } | {
99
+ type: "event";
100
+ summary?: string | undefined;
101
+ level?: string | undefined;
102
+ project?: string | undefined;
103
+ release?: string | undefined;
104
+ environment?: string | undefined;
105
+ occurredAt?: string | undefined;
106
+ } | {
107
+ type: "trace";
108
+ summary?: string | undefined;
109
+ rootOp?: string | undefined;
110
+ rootName?: string | undefined;
111
+ durationMs: number;
112
+ spanCount: number;
113
+ errorCount: number;
114
+ performanceIssueCount: number;
115
+ projects: string[];
116
+ spans: {
117
+ op?: string | undefined;
118
+ name: string;
119
+ startMs: number;
120
+ durationMs: number;
121
+ issue?: boolean | undefined;
122
+ }[];
87
123
  } | {
88
124
  type: "person";
89
125
  summary?: string | undefined;
@@ -140,7 +176,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
140
176
  kind: "object";
141
177
  key: string;
142
178
  label: string;
143
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
179
+ objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
144
180
  title: string;
145
181
  url: string | null;
146
182
  description?: string | undefined;
@@ -176,6 +212,10 @@ export declare function createGitHubGetDeploymentTool(ctx: {
176
212
  cycle?: string | undefined;
177
213
  dueDate?: string | undefined;
178
214
  labels?: string[] | undefined;
215
+ trend?: {
216
+ label: string;
217
+ points: number[];
218
+ } | undefined;
179
219
  } | {
180
220
  type: "deployment";
181
221
  summary?: string | undefined;
@@ -198,6 +238,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
198
238
  summary?: string | undefined;
199
239
  owner?: string | undefined;
200
240
  modifiedAt?: string | undefined;
241
+ thumbnailUrl?: string | undefined;
201
242
  } | {
202
243
  type: "message";
203
244
  summary?: string | undefined;
@@ -209,7 +250,43 @@ export declare function createGitHubGetDeploymentTool(ctx: {
209
250
  summary?: string | undefined;
210
251
  siteName?: string | undefined;
211
252
  author?: string | undefined;
253
+ media?: "image" | "video" | undefined;
212
254
  thumbnailUrl?: string | undefined;
255
+ } | {
256
+ type: "chart";
257
+ summary?: string | undefined;
258
+ display: "area" | "bar" | "line";
259
+ yAxis: string;
260
+ range: string;
261
+ series: {
262
+ label: string;
263
+ points: number[];
264
+ }[];
265
+ } | {
266
+ type: "event";
267
+ summary?: string | undefined;
268
+ level?: string | undefined;
269
+ project?: string | undefined;
270
+ release?: string | undefined;
271
+ environment?: string | undefined;
272
+ occurredAt?: string | undefined;
273
+ } | {
274
+ type: "trace";
275
+ summary?: string | undefined;
276
+ rootOp?: string | undefined;
277
+ rootName?: string | undefined;
278
+ durationMs: number;
279
+ spanCount: number;
280
+ errorCount: number;
281
+ performanceIssueCount: number;
282
+ projects: string[];
283
+ spans: {
284
+ op?: string | undefined;
285
+ name: string;
286
+ startMs: number;
287
+ durationMs: number;
288
+ issue?: boolean | undefined;
289
+ }[];
213
290
  } | {
214
291
  type: "person";
215
292
  summary?: string | undefined;
@@ -261,4 +338,9 @@ export declare function createGitHubGetDeploymentTool(ctx: {
261
338
  type: string;
262
339
  } | undefined;
263
340
  target: "getDeployment";
341
+ }, {
342
+ egress: PluginEgress;
343
+ events: {
344
+ canSubscribe: boolean;
345
+ };
264
346
  }>;