@sentry/junior-github 0.301.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 (48) hide show
  1. package/dist/{chunk-YUF5P5I7.js → chunk-6SOJ5TN6.js} +142 -31
  2. package/dist/clone-command.d.ts +2 -0
  3. package/dist/db/schema.d.ts +23 -14
  4. package/dist/draft-readiness.d.ts +31 -0
  5. package/dist/events/pull-request.d.ts +1 -1
  6. package/dist/events/repository.d.ts +1 -1
  7. package/dist/graphql-documents.d.ts +13 -0
  8. package/dist/hooks-path-command.d.ts +5 -0
  9. package/dist/index.js +2060 -1699
  10. package/dist/merge-conflict-checks/heartbeat.d.ts +9 -5
  11. package/dist/merge-conflict-checks/policy.d.ts +74 -0
  12. package/dist/pull-request-outcomes/reconcile.d.ts +2 -1
  13. package/dist/pull-request-outcomes/store.d.ts +15 -10
  14. package/dist/testing.js +1 -1
  15. package/dist/tool-support/github-text.d.ts +2 -2
  16. package/dist/tools/clone-repository.d.ts +89 -7
  17. package/dist/tools/comment-on-issue.d.ts +87 -3
  18. package/dist/tools/comment-on-pull-request.d.ts +87 -3
  19. package/dist/tools/create-issue.d.ts +86 -4
  20. package/dist/tools/create-pull-request.d.ts +88 -6
  21. package/dist/tools/get-deployment.d.ts +90 -8
  22. package/dist/tools/get-issue.d.ts +98 -16
  23. package/dist/tools/get-pull-request.d.ts +112 -9
  24. package/dist/tools/get-release.d.ts +90 -8
  25. package/dist/tools/get-repository.d.ts +90 -8
  26. package/dist/tools/get-status.d.ts +87 -5
  27. package/dist/tools/react-to-issue.d.ts +87 -3
  28. package/dist/tools/resolve-pull-request-review-thread.d.ts +87 -5
  29. package/dist/tools/submit-pull-request-review.d.ts +87 -3
  30. package/dist/tools/update-issue-comment.d.ts +87 -3
  31. package/dist/tools/update-issue.d.ts +106 -24
  32. package/dist/tools/update-pull-request-feedback.d.ts +87 -5
  33. package/dist/tools/update-pull-request.d.ts +109 -26
  34. package/dist/tools.d.ts +3 -3
  35. package/dist/webhooks/check-suite.d.ts +30 -3
  36. package/dist/webhooks/handler.d.ts +2 -0
  37. package/dist/webhooks/installation-requests.d.ts +8 -1
  38. package/dist/webhooks/merge-conflict.d.ts +7 -2
  39. package/dist/webhooks/pull-request-action.d.ts +37 -0
  40. package/migrations/0012_pull_request_next_action.sql +5 -0
  41. package/migrations/meta/0012_snapshot.json +434 -0
  42. package/migrations/meta/_journal.json +7 -0
  43. package/package.json +3 -2
  44. package/skills/github-code/SKILL.md +1 -1
  45. package/skills/github-code/SPEC.md +2 -2
  46. package/skills/github-code/references/workflow.md +1 -1
  47. package/dist/webhooks/pull-request-ready.d.ts +0 -31
  48. package/dist/webhooks/pull-request-review-request.d.ts +0 -32
@@ -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
  }>;
@@ -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
  }>;