@sentry/junior-github 0.298.0 → 0.300.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 (49) hide show
  1. package/dist/{chunk-OK6BNAGC.js → chunk-YUF5P5I7.js} +50 -20
  2. package/dist/credential-support.d.ts +7 -0
  3. package/dist/db/schema.d.ts +34 -0
  4. package/dist/events/pull-request.d.ts +8 -2
  5. package/dist/graphql-documents.d.ts +31 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +1532 -785
  8. package/dist/object-facts.d.ts +16 -1
  9. package/dist/plugin.d.ts +3 -0
  10. package/dist/pull-request-outcomes/apply.d.ts +3 -1
  11. package/dist/pull-request-outcomes/reconcile.d.ts +10 -5
  12. package/dist/pull-request-outcomes/store.d.ts +5 -0
  13. package/dist/pull-request-requesters/draft-reviewers.d.ts +15 -0
  14. package/dist/testing.js +1 -1
  15. package/dist/tool-support/attribution.d.ts +4 -2
  16. package/dist/tool-support/pull-request-description.d.ts +8 -0
  17. package/dist/tools/clone-repository.d.ts +70 -2
  18. package/dist/tools/comment-on-issue.d.ts +70 -2
  19. package/dist/tools/comment-on-pull-request.d.ts +70 -2
  20. package/dist/tools/create-issue.d.ts +70 -2
  21. package/dist/tools/create-pull-request.d.ts +75 -4
  22. package/dist/tools/get-deployment.d.ts +70 -2
  23. package/dist/tools/get-issue.d.ts +70 -2
  24. package/dist/tools/get-pull-request.d.ts +90 -2
  25. package/dist/tools/get-release.d.ts +70 -2
  26. package/dist/tools/get-repository.d.ts +70 -2
  27. package/dist/tools/get-status.d.ts +70 -2
  28. package/dist/tools/react-to-issue.d.ts +70 -2
  29. package/dist/tools/resolve-pull-request-review-thread.d.ts +70 -2
  30. package/dist/tools/submit-pull-request-review.d.ts +70 -2
  31. package/dist/tools/update-issue-comment.d.ts +70 -2
  32. package/dist/tools/update-issue.d.ts +70 -2
  33. package/dist/tools/update-pull-request-feedback.d.ts +70 -4
  34. package/dist/tools/update-pull-request.d.ts +74 -4
  35. package/dist/tools.d.ts +10 -1
  36. package/dist/webhooks/check-suite.d.ts +2 -4
  37. package/dist/webhooks/fail-open-log.d.ts +10 -0
  38. package/dist/webhooks/handler.d.ts +1 -1
  39. package/dist/webhooks/installation-requests.d.ts +12 -1
  40. package/dist/webhooks/merge-conflict.d.ts +1 -1
  41. package/dist/webhooks/pull-request-preview.d.ts +12 -0
  42. package/dist/webhooks/pull-request-ready-reviewers.d.ts +25 -0
  43. package/dist/webhooks/pull-request-ready.d.ts +1 -1
  44. package/migrations/0011_pull_request_draft.sql +1 -0
  45. package/migrations/meta/0011_snapshot.json +434 -0
  46. package/migrations/meta/_journal.json +7 -0
  47. package/package.json +7 -4
  48. package/skills/github-code/SKILL.md +1 -1
  49. package/skills/github-code/SPEC.md +1 -1
@@ -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" | "deployment" | "item" | "task";
13
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
14
14
  title: string;
15
15
  url: string | null;
16
16
  description?: string | undefined;
@@ -21,6 +21,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
21
21
  sourceUpdatedAt?: string | undefined;
22
22
  facts?: {
23
23
  type: "code_change";
24
+ summary?: string | undefined;
24
25
  author?: string | undefined;
25
26
  sourceBranch?: string | undefined;
26
27
  targetBranch?: string | undefined;
@@ -35,8 +36,10 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
35
36
  changedFiles?: number | undefined;
36
37
  additions?: number | undefined;
37
38
  deletions?: number | undefined;
39
+ previewImageUrls?: string[] | undefined;
38
40
  } | {
39
41
  type: "task";
42
+ summary?: string | undefined;
40
43
  assignees?: string[] | undefined;
41
44
  priority?: string | undefined;
42
45
  project?: string | undefined;
@@ -45,14 +48,45 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
45
48
  labels?: string[] | undefined;
46
49
  } | {
47
50
  type: "deployment";
51
+ summary?: string | undefined;
48
52
  project?: string | undefined;
49
53
  environment?: string | undefined;
50
54
  revision?: string | undefined;
51
55
  branch?: string | undefined;
52
56
  } | {
53
57
  type: "calendar_event";
58
+ summary?: string | undefined;
54
59
  when?: string | undefined;
55
60
  attendees?: string[] | undefined;
61
+ } | {
62
+ type: "conversation";
63
+ summary?: string | undefined;
64
+ participants?: string[] | undefined;
65
+ lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
71
+ } | {
72
+ type: "message";
73
+ summary?: string | undefined;
74
+ channel?: string | undefined;
75
+ author?: string | undefined;
76
+ sentAt?: string | undefined;
77
+ } | {
78
+ type: "web_page";
79
+ summary?: string | undefined;
80
+ siteName?: string | undefined;
81
+ author?: string | undefined;
82
+ thumbnailUrl?: string | undefined;
83
+ } | {
84
+ type: "person";
85
+ summary?: string | undefined;
86
+ email?: string | undefined;
87
+ slackHandle?: string | undefined;
88
+ githubHandle?: string | undefined;
89
+ avatarUrl?: string | undefined;
56
90
  } | undefined;
57
91
  }[] | undefined;
58
92
  reply?: {
@@ -81,7 +115,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
81
115
  kind: "object";
82
116
  key: string;
83
117
  label: string;
84
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
118
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
85
119
  title: string;
86
120
  url: string | null;
87
121
  description?: string | undefined;
@@ -92,6 +126,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
92
126
  sourceUpdatedAt?: string | undefined;
93
127
  facts?: {
94
128
  type: "code_change";
129
+ summary?: string | undefined;
95
130
  author?: string | undefined;
96
131
  sourceBranch?: string | undefined;
97
132
  targetBranch?: string | undefined;
@@ -106,8 +141,10 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
106
141
  changedFiles?: number | undefined;
107
142
  additions?: number | undefined;
108
143
  deletions?: number | undefined;
144
+ previewImageUrls?: string[] | undefined;
109
145
  } | {
110
146
  type: "task";
147
+ summary?: string | undefined;
111
148
  assignees?: string[] | undefined;
112
149
  priority?: string | undefined;
113
150
  project?: string | undefined;
@@ -116,14 +153,45 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
116
153
  labels?: string[] | undefined;
117
154
  } | {
118
155
  type: "deployment";
156
+ summary?: string | undefined;
119
157
  project?: string | undefined;
120
158
  environment?: string | undefined;
121
159
  revision?: string | undefined;
122
160
  branch?: string | undefined;
123
161
  } | {
124
162
  type: "calendar_event";
163
+ summary?: string | undefined;
125
164
  when?: string | undefined;
126
165
  attendees?: string[] | undefined;
166
+ } | {
167
+ type: "conversation";
168
+ summary?: string | undefined;
169
+ participants?: string[] | undefined;
170
+ lastActivityAt?: string | undefined;
171
+ } | {
172
+ type: "document";
173
+ summary?: string | undefined;
174
+ owner?: string | undefined;
175
+ modifiedAt?: string | undefined;
176
+ } | {
177
+ type: "message";
178
+ summary?: string | undefined;
179
+ channel?: string | undefined;
180
+ author?: string | undefined;
181
+ sentAt?: string | undefined;
182
+ } | {
183
+ type: "web_page";
184
+ summary?: string | undefined;
185
+ siteName?: string | undefined;
186
+ author?: string | undefined;
187
+ thumbnailUrl?: string | undefined;
188
+ } | {
189
+ type: "person";
190
+ summary?: string | undefined;
191
+ email?: string | undefined;
192
+ slackHandle?: string | undefined;
193
+ githubHandle?: string | undefined;
194
+ avatarUrl?: string | undefined;
127
195
  } | undefined;
128
196
  }[] | undefined;
129
197
  reply?: {
@@ -1,19 +1,22 @@
1
- import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
1
+ import { type PluginDecider, 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): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
+ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookContext, subscriptionConfig?: GitHubPullRequestSubscriptionConfig,
5
+ /** Set when the description check experiment is on. */
6
+ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginToolDefinition<{
5
7
  repo: string;
6
8
  title: string;
7
9
  head: string;
8
10
  base: string;
9
11
  body?: string | undefined;
10
12
  draft?: boolean | undefined;
13
+ reviewers?: string[] | undefined;
11
14
  }, {
12
15
  objectAnnotations?: {
13
16
  kind: "object";
14
17
  key: string;
15
18
  label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
19
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
17
20
  title: string;
18
21
  url: string | null;
19
22
  description?: string | undefined;
@@ -24,6 +27,7 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
24
27
  sourceUpdatedAt?: string | undefined;
25
28
  facts?: {
26
29
  type: "code_change";
30
+ summary?: string | undefined;
27
31
  author?: string | undefined;
28
32
  sourceBranch?: string | undefined;
29
33
  targetBranch?: string | undefined;
@@ -38,8 +42,10 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
38
42
  changedFiles?: number | undefined;
39
43
  additions?: number | undefined;
40
44
  deletions?: number | undefined;
45
+ previewImageUrls?: string[] | undefined;
41
46
  } | {
42
47
  type: "task";
48
+ summary?: string | undefined;
43
49
  assignees?: string[] | undefined;
44
50
  priority?: string | undefined;
45
51
  project?: string | undefined;
@@ -48,14 +54,45 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
48
54
  labels?: string[] | undefined;
49
55
  } | {
50
56
  type: "deployment";
57
+ summary?: string | undefined;
51
58
  project?: string | undefined;
52
59
  environment?: string | undefined;
53
60
  revision?: string | undefined;
54
61
  branch?: string | undefined;
55
62
  } | {
56
63
  type: "calendar_event";
64
+ summary?: string | undefined;
57
65
  when?: string | undefined;
58
66
  attendees?: string[] | undefined;
67
+ } | {
68
+ type: "conversation";
69
+ summary?: string | undefined;
70
+ participants?: string[] | undefined;
71
+ lastActivityAt?: string | undefined;
72
+ } | {
73
+ type: "document";
74
+ summary?: string | undefined;
75
+ owner?: string | undefined;
76
+ modifiedAt?: string | undefined;
77
+ } | {
78
+ type: "message";
79
+ summary?: string | undefined;
80
+ channel?: string | undefined;
81
+ author?: string | undefined;
82
+ sentAt?: string | undefined;
83
+ } | {
84
+ type: "web_page";
85
+ summary?: string | undefined;
86
+ siteName?: string | undefined;
87
+ author?: string | undefined;
88
+ thumbnailUrl?: string | undefined;
89
+ } | {
90
+ type: "person";
91
+ summary?: string | undefined;
92
+ email?: string | undefined;
93
+ slackHandle?: string | undefined;
94
+ githubHandle?: string | undefined;
95
+ avatarUrl?: string | undefined;
59
96
  } | undefined;
60
97
  }[] | undefined;
61
98
  reply?: {
@@ -92,7 +129,7 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
92
129
  kind: "object";
93
130
  key: string;
94
131
  label: string;
95
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
132
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
96
133
  title: string;
97
134
  url: string | null;
98
135
  description?: string | undefined;
@@ -103,6 +140,7 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
103
140
  sourceUpdatedAt?: string | undefined;
104
141
  facts?: {
105
142
  type: "code_change";
143
+ summary?: string | undefined;
106
144
  author?: string | undefined;
107
145
  sourceBranch?: string | undefined;
108
146
  targetBranch?: string | undefined;
@@ -117,8 +155,10 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
117
155
  changedFiles?: number | undefined;
118
156
  additions?: number | undefined;
119
157
  deletions?: number | undefined;
158
+ previewImageUrls?: string[] | undefined;
120
159
  } | {
121
160
  type: "task";
161
+ summary?: string | undefined;
122
162
  assignees?: string[] | undefined;
123
163
  priority?: string | undefined;
124
164
  project?: string | undefined;
@@ -127,14 +167,45 @@ export declare function createGitHubPullRequestTool(ctx: ToolRegistrationHookCon
127
167
  labels?: string[] | undefined;
128
168
  } | {
129
169
  type: "deployment";
170
+ summary?: string | undefined;
130
171
  project?: string | undefined;
131
172
  environment?: string | undefined;
132
173
  revision?: string | undefined;
133
174
  branch?: string | undefined;
134
175
  } | {
135
176
  type: "calendar_event";
177
+ summary?: string | undefined;
136
178
  when?: string | undefined;
137
179
  attendees?: string[] | undefined;
180
+ } | {
181
+ type: "conversation";
182
+ summary?: string | undefined;
183
+ participants?: string[] | undefined;
184
+ lastActivityAt?: string | undefined;
185
+ } | {
186
+ type: "document";
187
+ summary?: string | undefined;
188
+ owner?: string | undefined;
189
+ modifiedAt?: string | undefined;
190
+ } | {
191
+ type: "message";
192
+ summary?: string | undefined;
193
+ channel?: string | undefined;
194
+ author?: string | undefined;
195
+ sentAt?: string | undefined;
196
+ } | {
197
+ type: "web_page";
198
+ summary?: string | undefined;
199
+ siteName?: string | undefined;
200
+ author?: string | undefined;
201
+ thumbnailUrl?: string | undefined;
202
+ } | {
203
+ type: "person";
204
+ summary?: string | undefined;
205
+ email?: string | undefined;
206
+ slackHandle?: string | undefined;
207
+ githubHandle?: string | undefined;
208
+ avatarUrl?: string | undefined;
138
209
  } | undefined;
139
210
  }[] | undefined;
140
211
  reply?: {
@@ -14,7 +14,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
14
14
  kind: "object";
15
15
  key: string;
16
16
  label: string;
17
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
17
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
18
18
  title: string;
19
19
  url: string | null;
20
20
  description?: string | undefined;
@@ -25,6 +25,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
25
25
  sourceUpdatedAt?: string | undefined;
26
26
  facts?: {
27
27
  type: "code_change";
28
+ summary?: string | undefined;
28
29
  author?: string | undefined;
29
30
  sourceBranch?: string | undefined;
30
31
  targetBranch?: string | undefined;
@@ -39,8 +40,10 @@ export declare function createGitHubGetDeploymentTool(ctx: {
39
40
  changedFiles?: number | undefined;
40
41
  additions?: number | undefined;
41
42
  deletions?: number | undefined;
43
+ previewImageUrls?: string[] | undefined;
42
44
  } | {
43
45
  type: "task";
46
+ summary?: string | undefined;
44
47
  assignees?: string[] | undefined;
45
48
  priority?: string | undefined;
46
49
  project?: string | undefined;
@@ -49,14 +52,45 @@ export declare function createGitHubGetDeploymentTool(ctx: {
49
52
  labels?: string[] | undefined;
50
53
  } | {
51
54
  type: "deployment";
55
+ summary?: string | undefined;
52
56
  project?: string | undefined;
53
57
  environment?: string | undefined;
54
58
  revision?: string | undefined;
55
59
  branch?: string | undefined;
56
60
  } | {
57
61
  type: "calendar_event";
62
+ summary?: string | undefined;
58
63
  when?: string | undefined;
59
64
  attendees?: string[] | undefined;
65
+ } | {
66
+ type: "conversation";
67
+ summary?: string | undefined;
68
+ participants?: string[] | undefined;
69
+ lastActivityAt?: string | undefined;
70
+ } | {
71
+ type: "document";
72
+ summary?: string | undefined;
73
+ owner?: string | undefined;
74
+ modifiedAt?: string | undefined;
75
+ } | {
76
+ type: "message";
77
+ summary?: string | undefined;
78
+ channel?: string | undefined;
79
+ author?: string | undefined;
80
+ sentAt?: string | undefined;
81
+ } | {
82
+ type: "web_page";
83
+ summary?: string | undefined;
84
+ siteName?: string | undefined;
85
+ author?: string | undefined;
86
+ thumbnailUrl?: string | undefined;
87
+ } | {
88
+ type: "person";
89
+ summary?: string | undefined;
90
+ email?: string | undefined;
91
+ slackHandle?: string | undefined;
92
+ githubHandle?: string | undefined;
93
+ avatarUrl?: string | undefined;
60
94
  } | undefined;
61
95
  }[] | undefined;
62
96
  reply?: {
@@ -106,7 +140,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
106
140
  kind: "object";
107
141
  key: string;
108
142
  label: string;
109
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
143
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
110
144
  title: string;
111
145
  url: string | null;
112
146
  description?: string | undefined;
@@ -117,6 +151,7 @@ export declare function createGitHubGetDeploymentTool(ctx: {
117
151
  sourceUpdatedAt?: string | undefined;
118
152
  facts?: {
119
153
  type: "code_change";
154
+ summary?: string | undefined;
120
155
  author?: string | undefined;
121
156
  sourceBranch?: string | undefined;
122
157
  targetBranch?: string | undefined;
@@ -131,8 +166,10 @@ export declare function createGitHubGetDeploymentTool(ctx: {
131
166
  changedFiles?: number | undefined;
132
167
  additions?: number | undefined;
133
168
  deletions?: number | undefined;
169
+ previewImageUrls?: string[] | undefined;
134
170
  } | {
135
171
  type: "task";
172
+ summary?: string | undefined;
136
173
  assignees?: string[] | undefined;
137
174
  priority?: string | undefined;
138
175
  project?: string | undefined;
@@ -141,14 +178,45 @@ export declare function createGitHubGetDeploymentTool(ctx: {
141
178
  labels?: string[] | undefined;
142
179
  } | {
143
180
  type: "deployment";
181
+ summary?: string | undefined;
144
182
  project?: string | undefined;
145
183
  environment?: string | undefined;
146
184
  revision?: string | undefined;
147
185
  branch?: string | undefined;
148
186
  } | {
149
187
  type: "calendar_event";
188
+ summary?: string | undefined;
150
189
  when?: string | undefined;
151
190
  attendees?: string[] | undefined;
191
+ } | {
192
+ type: "conversation";
193
+ summary?: string | undefined;
194
+ participants?: string[] | undefined;
195
+ lastActivityAt?: string | undefined;
196
+ } | {
197
+ type: "document";
198
+ summary?: string | undefined;
199
+ owner?: string | undefined;
200
+ modifiedAt?: string | undefined;
201
+ } | {
202
+ type: "message";
203
+ summary?: string | undefined;
204
+ channel?: string | undefined;
205
+ author?: string | undefined;
206
+ sentAt?: string | undefined;
207
+ } | {
208
+ type: "web_page";
209
+ summary?: string | undefined;
210
+ siteName?: string | undefined;
211
+ author?: string | undefined;
212
+ thumbnailUrl?: string | undefined;
213
+ } | {
214
+ type: "person";
215
+ summary?: string | undefined;
216
+ email?: string | undefined;
217
+ slackHandle?: string | undefined;
218
+ githubHandle?: string | undefined;
219
+ avatarUrl?: string | undefined;
152
220
  } | undefined;
153
221
  }[] | undefined;
154
222
  reply?: {
@@ -24,7 +24,7 @@ export declare function createGitHubGetIssueTool(ctx: {
24
24
  kind: "object";
25
25
  key: string;
26
26
  label: string;
27
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
27
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
28
28
  title: string;
29
29
  url: string | null;
30
30
  description?: string | undefined;
@@ -35,6 +35,7 @@ export declare function createGitHubGetIssueTool(ctx: {
35
35
  sourceUpdatedAt?: string | undefined;
36
36
  facts?: {
37
37
  type: "code_change";
38
+ summary?: string | undefined;
38
39
  author?: string | undefined;
39
40
  sourceBranch?: string | undefined;
40
41
  targetBranch?: string | undefined;
@@ -49,8 +50,10 @@ export declare function createGitHubGetIssueTool(ctx: {
49
50
  changedFiles?: number | undefined;
50
51
  additions?: number | undefined;
51
52
  deletions?: number | undefined;
53
+ previewImageUrls?: string[] | undefined;
52
54
  } | {
53
55
  type: "task";
56
+ summary?: string | undefined;
54
57
  assignees?: string[] | undefined;
55
58
  priority?: string | undefined;
56
59
  project?: string | undefined;
@@ -59,14 +62,45 @@ export declare function createGitHubGetIssueTool(ctx: {
59
62
  labels?: string[] | undefined;
60
63
  } | {
61
64
  type: "deployment";
65
+ summary?: string | undefined;
62
66
  project?: string | undefined;
63
67
  environment?: string | undefined;
64
68
  revision?: string | undefined;
65
69
  branch?: string | undefined;
66
70
  } | {
67
71
  type: "calendar_event";
72
+ summary?: string | undefined;
68
73
  when?: string | undefined;
69
74
  attendees?: string[] | undefined;
75
+ } | {
76
+ type: "conversation";
77
+ summary?: string | undefined;
78
+ participants?: string[] | undefined;
79
+ lastActivityAt?: string | undefined;
80
+ } | {
81
+ type: "document";
82
+ summary?: string | undefined;
83
+ owner?: string | undefined;
84
+ modifiedAt?: string | undefined;
85
+ } | {
86
+ type: "message";
87
+ summary?: string | undefined;
88
+ channel?: string | undefined;
89
+ author?: string | undefined;
90
+ sentAt?: string | undefined;
91
+ } | {
92
+ type: "web_page";
93
+ summary?: string | undefined;
94
+ siteName?: string | undefined;
95
+ author?: string | undefined;
96
+ thumbnailUrl?: string | undefined;
97
+ } | {
98
+ type: "person";
99
+ summary?: string | undefined;
100
+ email?: string | undefined;
101
+ slackHandle?: string | undefined;
102
+ githubHandle?: string | undefined;
103
+ avatarUrl?: string | undefined;
70
104
  } | undefined;
71
105
  }[] | undefined;
72
106
  reply?: {
@@ -103,7 +137,7 @@ export declare function createGitHubGetIssueTool(ctx: {
103
137
  kind: "object";
104
138
  key: string;
105
139
  label: string;
106
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
140
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
107
141
  title: string;
108
142
  url: string | null;
109
143
  description?: string | undefined;
@@ -114,6 +148,7 @@ export declare function createGitHubGetIssueTool(ctx: {
114
148
  sourceUpdatedAt?: string | undefined;
115
149
  facts?: {
116
150
  type: "code_change";
151
+ summary?: string | undefined;
117
152
  author?: string | undefined;
118
153
  sourceBranch?: string | undefined;
119
154
  targetBranch?: string | undefined;
@@ -128,8 +163,10 @@ export declare function createGitHubGetIssueTool(ctx: {
128
163
  changedFiles?: number | undefined;
129
164
  additions?: number | undefined;
130
165
  deletions?: number | undefined;
166
+ previewImageUrls?: string[] | undefined;
131
167
  } | {
132
168
  type: "task";
169
+ summary?: string | undefined;
133
170
  assignees?: string[] | undefined;
134
171
  priority?: string | undefined;
135
172
  project?: string | undefined;
@@ -138,14 +175,45 @@ export declare function createGitHubGetIssueTool(ctx: {
138
175
  labels?: string[] | undefined;
139
176
  } | {
140
177
  type: "deployment";
178
+ summary?: string | undefined;
141
179
  project?: string | undefined;
142
180
  environment?: string | undefined;
143
181
  revision?: string | undefined;
144
182
  branch?: string | undefined;
145
183
  } | {
146
184
  type: "calendar_event";
185
+ summary?: string | undefined;
147
186
  when?: string | undefined;
148
187
  attendees?: string[] | undefined;
188
+ } | {
189
+ type: "conversation";
190
+ summary?: string | undefined;
191
+ participants?: string[] | undefined;
192
+ lastActivityAt?: string | undefined;
193
+ } | {
194
+ type: "document";
195
+ summary?: string | undefined;
196
+ owner?: string | undefined;
197
+ modifiedAt?: string | undefined;
198
+ } | {
199
+ type: "message";
200
+ summary?: string | undefined;
201
+ channel?: string | undefined;
202
+ author?: string | undefined;
203
+ sentAt?: string | undefined;
204
+ } | {
205
+ type: "web_page";
206
+ summary?: string | undefined;
207
+ siteName?: string | undefined;
208
+ author?: string | undefined;
209
+ thumbnailUrl?: string | undefined;
210
+ } | {
211
+ type: "person";
212
+ summary?: string | undefined;
213
+ email?: string | undefined;
214
+ slackHandle?: string | undefined;
215
+ githubHandle?: string | undefined;
216
+ avatarUrl?: string | undefined;
149
217
  } | undefined;
150
218
  }[] | undefined;
151
219
  reply?: {