@sentry/junior-github 0.299.0 → 0.301.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.
@@ -1,8 +1,19 @@
1
1
  import { type ObjectAnnotation, type ObjectFacts } from "@sentry/junior-plugin-api";
2
2
  /**
3
- * Return the public images in a pull request body, in body order, for card
4
- * previews. Screenshots often come as a before and after pair, so the
5
- * dashboard chooses which one to show.
3
+ * Return where a description image is stored, or nothing when Junior does
4
+ * not serve it. The dashboard loads each one through the Junior image route:
5
+ * - `artifact`: Junior's own public artifacts, under `JUNIOR_BASE_URL`.
6
+ * - `attachment`: `github.com/user-attachments/assets/<id>` images. They
7
+ * need the GitHub App credential on private repositories, and GitHub
8
+ * redirects them to a short-lived signed URL. Junior never saves the
9
+ * signed `private-user-images.githubusercontent.com` URL, because it
10
+ * expires in minutes.
11
+ */
12
+ export declare function githubImageKind(url: URL): "artifact" | "attachment" | undefined;
13
+ /**
14
+ * Return the images in a pull request body that Junior serves, in body
15
+ * order, for card previews. Screenshots often come as a before and after
16
+ * pair, so the dashboard chooses which one to show.
6
17
  */
7
18
  export declare function githubPreviewImageUrls(body: string | null | undefined): string[];
8
19
  type CodeChangeFacts = Extract<ObjectFacts, {
@@ -1,2 +1,18 @@
1
- /** Linkify GitHub issue and pull request shorthand outside Markdown code. */
2
- export declare function linkifyGitHubReferences(text: string): string;
1
+ /**
2
+ * Linkify GitHub autolinked references outside Markdown code and links.
3
+ *
4
+ * `owner/repo#123`, `owner/repo@sha`, and GitHub issue, pull request,
5
+ * discussion, and commit URLs always become links. `#123`, `GH-123`,
6
+ * `user@sha`, and full SHAs need a repository: the one that the text names,
7
+ * else the `repo` config value when the text names none. `@login` becomes the
8
+ * `mention` of the known person with that GitHub login. Other logins become
9
+ * GitHub profile links when the text is GitHub text, or names a repository.
10
+ * Chat `@name` words are often people who are not GitHub accounts. Set
11
+ * `bareUrls` to keep bare URLs, where the place shows them as cards.
12
+ */
13
+ export declare function linkifyGitHubReferences(text: string, options?: {
14
+ bareUrls?: boolean;
15
+ config?: Record<string, string>;
16
+ githubText?: boolean;
17
+ mention?: (login: string) => string | undefined;
18
+ }): string;
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeGitHubEvents
3
- } from "./chunk-O74CQGTZ.js";
3
+ } from "./chunk-YUF5P5I7.js";
4
4
  export {
5
5
  normalizeGitHubEvents
6
6
  };
@@ -24,6 +24,13 @@ export declare function githubApi(egress: PluginEgress, input: {
24
24
  path: string;
25
25
  signal?: AbortSignal;
26
26
  }): Promise<GitHubApiResponse>;
27
+ /**
28
+ * Return where a `github.com` attachment URL redirects, through host
29
+ * egress. GitHub signs that address for a short time, so it needs no
30
+ * credential. Egress does not follow the redirect, so the credential never
31
+ * reaches the image host.
32
+ */
33
+ export declare function githubAttachmentLocation(egress: PluginEgress, url: string): Promise<string | undefined>;
27
34
  /** Return the `/repos/{owner}/{name}` API path prefix for a parsed repo. */
28
35
  export declare function repoPath(repo: {
29
36
  name: string;
@@ -0,0 +1,8 @@
1
+ import type { PluginToolDefinition, ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
2
+ /**
3
+ * Make every GitHub tool send GitHub text. The model reads Slack threads, so
4
+ * it can copy Slack mention syntax into a title, body, or comment. GitHub
5
+ * shows that syntax as literal text, so core rewrites it before the tool
6
+ * runs: a Slack user becomes their linked GitHub `@login`, or their name.
7
+ */
8
+ export declare function withGitHubText(tools: Record<string, PluginToolDefinition>, users: ToolRegistrationHookContext["users"]): Record<string, PluginToolDefinition>;
@@ -13,7 +13,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
13
13
  kind: "object";
14
14
  key: string;
15
15
  label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
16
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
17
17
  title: string;
18
18
  url: string | null;
19
19
  description?: string | undefined;
@@ -24,6 +24,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
24
24
  sourceUpdatedAt?: string | undefined;
25
25
  facts?: {
26
26
  type: "code_change";
27
+ summary?: string | undefined;
27
28
  author?: string | undefined;
28
29
  sourceBranch?: string | undefined;
29
30
  targetBranch?: string | undefined;
@@ -41,6 +42,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
41
42
  previewImageUrls?: string[] | undefined;
42
43
  } | {
43
44
  type: "task";
45
+ summary?: string | undefined;
44
46
  assignees?: string[] | undefined;
45
47
  priority?: string | undefined;
46
48
  project?: string | undefined;
@@ -49,25 +51,41 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
49
51
  labels?: string[] | undefined;
50
52
  } | {
51
53
  type: "deployment";
54
+ summary?: string | undefined;
52
55
  project?: string | undefined;
53
56
  environment?: string | undefined;
54
57
  revision?: string | undefined;
55
58
  branch?: string | undefined;
56
59
  } | {
57
60
  type: "calendar_event";
61
+ summary?: string | undefined;
58
62
  when?: string | undefined;
59
63
  attendees?: string[] | undefined;
60
64
  } | {
61
65
  type: "conversation";
66
+ summary?: string | undefined;
62
67
  participants?: string[] | undefined;
63
68
  lastActivityAt?: string | undefined;
69
+ } | {
70
+ type: "document";
71
+ summary?: string | undefined;
72
+ owner?: string | undefined;
73
+ modifiedAt?: string | undefined;
64
74
  } | {
65
75
  type: "message";
76
+ summary?: string | undefined;
66
77
  channel?: string | undefined;
67
78
  author?: string | undefined;
68
79
  sentAt?: string | undefined;
80
+ } | {
81
+ type: "web_page";
82
+ summary?: string | undefined;
83
+ siteName?: string | undefined;
84
+ author?: string | undefined;
85
+ thumbnailUrl?: string | undefined;
69
86
  } | {
70
87
  type: "person";
88
+ summary?: string | undefined;
71
89
  email?: string | undefined;
72
90
  slackHandle?: string | undefined;
73
91
  githubHandle?: string | undefined;
@@ -92,7 +110,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
92
110
  kind: "object";
93
111
  key: string;
94
112
  label: string;
95
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
113
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
96
114
  title: string;
97
115
  url: string | null;
98
116
  description?: string | undefined;
@@ -103,6 +121,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
103
121
  sourceUpdatedAt?: string | undefined;
104
122
  facts?: {
105
123
  type: "code_change";
124
+ summary?: string | undefined;
106
125
  author?: string | undefined;
107
126
  sourceBranch?: string | undefined;
108
127
  targetBranch?: string | undefined;
@@ -120,6 +139,7 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
120
139
  previewImageUrls?: string[] | undefined;
121
140
  } | {
122
141
  type: "task";
142
+ summary?: string | undefined;
123
143
  assignees?: string[] | undefined;
124
144
  priority?: string | undefined;
125
145
  project?: string | undefined;
@@ -128,25 +148,41 @@ export declare function createGitHubCloneRepositoryTool(ctx: {
128
148
  labels?: string[] | undefined;
129
149
  } | {
130
150
  type: "deployment";
151
+ summary?: string | undefined;
131
152
  project?: string | undefined;
132
153
  environment?: string | undefined;
133
154
  revision?: string | undefined;
134
155
  branch?: string | undefined;
135
156
  } | {
136
157
  type: "calendar_event";
158
+ summary?: string | undefined;
137
159
  when?: string | undefined;
138
160
  attendees?: string[] | undefined;
139
161
  } | {
140
162
  type: "conversation";
163
+ summary?: string | undefined;
141
164
  participants?: string[] | undefined;
142
165
  lastActivityAt?: string | undefined;
166
+ } | {
167
+ type: "document";
168
+ summary?: string | undefined;
169
+ owner?: string | undefined;
170
+ modifiedAt?: string | undefined;
143
171
  } | {
144
172
  type: "message";
173
+ summary?: string | undefined;
145
174
  channel?: string | undefined;
146
175
  author?: string | undefined;
147
176
  sentAt?: string | undefined;
177
+ } | {
178
+ type: "web_page";
179
+ summary?: string | undefined;
180
+ siteName?: string | undefined;
181
+ author?: string | undefined;
182
+ thumbnailUrl?: string | undefined;
148
183
  } | {
149
184
  type: "person";
185
+ summary?: string | undefined;
150
186
  email?: string | undefined;
151
187
  slackHandle?: string | undefined;
152
188
  githubHandle?: string | undefined;
@@ -10,7 +10,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
10
10
  kind: "object";
11
11
  key: string;
12
12
  label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "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 createGitHubCommentOnIssueTool(egress: PluginEgress): im
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;
@@ -38,6 +39,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
38
39
  previewImageUrls?: string[] | undefined;
39
40
  } | {
40
41
  type: "task";
42
+ summary?: string | undefined;
41
43
  assignees?: string[] | undefined;
42
44
  priority?: string | undefined;
43
45
  project?: string | undefined;
@@ -46,25 +48,41 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
46
48
  labels?: string[] | undefined;
47
49
  } | {
48
50
  type: "deployment";
51
+ summary?: string | undefined;
49
52
  project?: string | undefined;
50
53
  environment?: string | undefined;
51
54
  revision?: string | undefined;
52
55
  branch?: string | undefined;
53
56
  } | {
54
57
  type: "calendar_event";
58
+ summary?: string | undefined;
55
59
  when?: string | undefined;
56
60
  attendees?: string[] | undefined;
57
61
  } | {
58
62
  type: "conversation";
63
+ summary?: string | undefined;
59
64
  participants?: string[] | undefined;
60
65
  lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
61
71
  } | {
62
72
  type: "message";
73
+ summary?: string | undefined;
63
74
  channel?: string | undefined;
64
75
  author?: string | undefined;
65
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;
66
83
  } | {
67
84
  type: "person";
85
+ summary?: string | undefined;
68
86
  email?: string | undefined;
69
87
  slackHandle?: string | undefined;
70
88
  githubHandle?: string | undefined;
@@ -91,7 +109,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
91
109
  kind: "object";
92
110
  key: string;
93
111
  label: string;
94
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
112
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
95
113
  title: string;
96
114
  url: string | null;
97
115
  description?: string | undefined;
@@ -102,6 +120,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
102
120
  sourceUpdatedAt?: string | undefined;
103
121
  facts?: {
104
122
  type: "code_change";
123
+ summary?: string | undefined;
105
124
  author?: string | undefined;
106
125
  sourceBranch?: string | undefined;
107
126
  targetBranch?: string | undefined;
@@ -119,6 +138,7 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
119
138
  previewImageUrls?: string[] | undefined;
120
139
  } | {
121
140
  type: "task";
141
+ summary?: string | undefined;
122
142
  assignees?: string[] | undefined;
123
143
  priority?: string | undefined;
124
144
  project?: string | undefined;
@@ -127,25 +147,41 @@ export declare function createGitHubCommentOnIssueTool(egress: PluginEgress): im
127
147
  labels?: string[] | undefined;
128
148
  } | {
129
149
  type: "deployment";
150
+ summary?: string | undefined;
130
151
  project?: string | undefined;
131
152
  environment?: string | undefined;
132
153
  revision?: string | undefined;
133
154
  branch?: string | undefined;
134
155
  } | {
135
156
  type: "calendar_event";
157
+ summary?: string | undefined;
136
158
  when?: string | undefined;
137
159
  attendees?: string[] | undefined;
138
160
  } | {
139
161
  type: "conversation";
162
+ summary?: string | undefined;
140
163
  participants?: string[] | undefined;
141
164
  lastActivityAt?: string | undefined;
165
+ } | {
166
+ type: "document";
167
+ summary?: string | undefined;
168
+ owner?: string | undefined;
169
+ modifiedAt?: string | undefined;
142
170
  } | {
143
171
  type: "message";
172
+ summary?: string | undefined;
144
173
  channel?: string | undefined;
145
174
  author?: string | undefined;
146
175
  sentAt?: string | undefined;
176
+ } | {
177
+ type: "web_page";
178
+ summary?: string | undefined;
179
+ siteName?: string | undefined;
180
+ author?: string | undefined;
181
+ thumbnailUrl?: string | undefined;
147
182
  } | {
148
183
  type: "person";
184
+ summary?: string | undefined;
149
185
  email?: string | undefined;
150
186
  slackHandle?: string | undefined;
151
187
  githubHandle?: string | undefined;
@@ -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" | "item" | "message" | "person" | "task";
18
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
19
19
  title: string;
20
20
  url: string | null;
21
21
  description?: string | undefined;
@@ -26,6 +26,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
26
26
  sourceUpdatedAt?: string | undefined;
27
27
  facts?: {
28
28
  type: "code_change";
29
+ summary?: string | undefined;
29
30
  author?: string | undefined;
30
31
  sourceBranch?: string | undefined;
31
32
  targetBranch?: string | undefined;
@@ -43,6 +44,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
43
44
  previewImageUrls?: string[] | undefined;
44
45
  } | {
45
46
  type: "task";
47
+ summary?: string | undefined;
46
48
  assignees?: string[] | undefined;
47
49
  priority?: string | undefined;
48
50
  project?: string | undefined;
@@ -51,25 +53,41 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
51
53
  labels?: string[] | undefined;
52
54
  } | {
53
55
  type: "deployment";
56
+ summary?: string | undefined;
54
57
  project?: string | undefined;
55
58
  environment?: string | undefined;
56
59
  revision?: string | undefined;
57
60
  branch?: string | undefined;
58
61
  } | {
59
62
  type: "calendar_event";
63
+ summary?: string | undefined;
60
64
  when?: string | undefined;
61
65
  attendees?: string[] | undefined;
62
66
  } | {
63
67
  type: "conversation";
68
+ summary?: string | undefined;
64
69
  participants?: string[] | undefined;
65
70
  lastActivityAt?: string | undefined;
71
+ } | {
72
+ type: "document";
73
+ summary?: string | undefined;
74
+ owner?: string | undefined;
75
+ modifiedAt?: string | undefined;
66
76
  } | {
67
77
  type: "message";
78
+ summary?: string | undefined;
68
79
  channel?: string | undefined;
69
80
  author?: string | undefined;
70
81
  sentAt?: string | undefined;
82
+ } | {
83
+ type: "web_page";
84
+ summary?: string | undefined;
85
+ siteName?: string | undefined;
86
+ author?: string | undefined;
87
+ thumbnailUrl?: string | undefined;
71
88
  } | {
72
89
  type: "person";
90
+ summary?: string | undefined;
73
91
  email?: string | undefined;
74
92
  slackHandle?: string | undefined;
75
93
  githubHandle?: string | undefined;
@@ -96,7 +114,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
96
114
  kind: "object";
97
115
  key: string;
98
116
  label: string;
99
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
117
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
100
118
  title: string;
101
119
  url: string | null;
102
120
  description?: string | undefined;
@@ -107,6 +125,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
107
125
  sourceUpdatedAt?: string | undefined;
108
126
  facts?: {
109
127
  type: "code_change";
128
+ summary?: string | undefined;
110
129
  author?: string | undefined;
111
130
  sourceBranch?: string | undefined;
112
131
  targetBranch?: string | undefined;
@@ -124,6 +143,7 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
124
143
  previewImageUrls?: string[] | undefined;
125
144
  } | {
126
145
  type: "task";
146
+ summary?: string | undefined;
127
147
  assignees?: string[] | undefined;
128
148
  priority?: string | undefined;
129
149
  project?: string | undefined;
@@ -132,25 +152,41 @@ export declare function createGitHubCommentOnPullRequestTool(egress: PluginEgres
132
152
  labels?: string[] | undefined;
133
153
  } | {
134
154
  type: "deployment";
155
+ summary?: string | undefined;
135
156
  project?: string | undefined;
136
157
  environment?: string | undefined;
137
158
  revision?: string | undefined;
138
159
  branch?: string | undefined;
139
160
  } | {
140
161
  type: "calendar_event";
162
+ summary?: string | undefined;
141
163
  when?: string | undefined;
142
164
  attendees?: string[] | undefined;
143
165
  } | {
144
166
  type: "conversation";
167
+ summary?: string | undefined;
145
168
  participants?: string[] | undefined;
146
169
  lastActivityAt?: string | undefined;
170
+ } | {
171
+ type: "document";
172
+ summary?: string | undefined;
173
+ owner?: string | undefined;
174
+ modifiedAt?: string | undefined;
147
175
  } | {
148
176
  type: "message";
177
+ summary?: string | undefined;
149
178
  channel?: string | undefined;
150
179
  author?: string | undefined;
151
180
  sentAt?: string | undefined;
181
+ } | {
182
+ type: "web_page";
183
+ summary?: string | undefined;
184
+ siteName?: string | undefined;
185
+ author?: string | undefined;
186
+ thumbnailUrl?: string | undefined;
152
187
  } | {
153
188
  type: "person";
189
+ summary?: string | undefined;
154
190
  email?: string | undefined;
155
191
  slackHandle?: string | undefined;
156
192
  githubHandle?: 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" | "item" | "message" | "person" | "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;
@@ -38,6 +39,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
38
39
  previewImageUrls?: string[] | undefined;
39
40
  } | {
40
41
  type: "task";
42
+ summary?: string | undefined;
41
43
  assignees?: string[] | undefined;
42
44
  priority?: string | undefined;
43
45
  project?: string | undefined;
@@ -46,25 +48,41 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
46
48
  labels?: string[] | undefined;
47
49
  } | {
48
50
  type: "deployment";
51
+ summary?: string | undefined;
49
52
  project?: string | undefined;
50
53
  environment?: string | undefined;
51
54
  revision?: string | undefined;
52
55
  branch?: string | undefined;
53
56
  } | {
54
57
  type: "calendar_event";
58
+ summary?: string | undefined;
55
59
  when?: string | undefined;
56
60
  attendees?: string[] | undefined;
57
61
  } | {
58
62
  type: "conversation";
63
+ summary?: string | undefined;
59
64
  participants?: string[] | undefined;
60
65
  lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
61
71
  } | {
62
72
  type: "message";
73
+ summary?: string | undefined;
63
74
  channel?: string | undefined;
64
75
  author?: string | undefined;
65
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;
66
83
  } | {
67
84
  type: "person";
85
+ summary?: string | undefined;
68
86
  email?: string | undefined;
69
87
  slackHandle?: string | undefined;
70
88
  githubHandle?: string | undefined;
@@ -97,7 +115,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
97
115
  kind: "object";
98
116
  key: string;
99
117
  label: string;
100
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
118
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
101
119
  title: string;
102
120
  url: string | null;
103
121
  description?: string | undefined;
@@ -108,6 +126,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
108
126
  sourceUpdatedAt?: string | undefined;
109
127
  facts?: {
110
128
  type: "code_change";
129
+ summary?: string | undefined;
111
130
  author?: string | undefined;
112
131
  sourceBranch?: string | undefined;
113
132
  targetBranch?: string | undefined;
@@ -125,6 +144,7 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
125
144
  previewImageUrls?: string[] | undefined;
126
145
  } | {
127
146
  type: "task";
147
+ summary?: string | undefined;
128
148
  assignees?: string[] | undefined;
129
149
  priority?: string | undefined;
130
150
  project?: string | undefined;
@@ -133,25 +153,41 @@ export declare function createGitHubIssueTool(ctx: ToolRegistrationHookContext):
133
153
  labels?: string[] | undefined;
134
154
  } | {
135
155
  type: "deployment";
156
+ summary?: string | undefined;
136
157
  project?: string | undefined;
137
158
  environment?: string | undefined;
138
159
  revision?: string | undefined;
139
160
  branch?: string | undefined;
140
161
  } | {
141
162
  type: "calendar_event";
163
+ summary?: string | undefined;
142
164
  when?: string | undefined;
143
165
  attendees?: string[] | undefined;
144
166
  } | {
145
167
  type: "conversation";
168
+ summary?: string | undefined;
146
169
  participants?: string[] | undefined;
147
170
  lastActivityAt?: string | undefined;
171
+ } | {
172
+ type: "document";
173
+ summary?: string | undefined;
174
+ owner?: string | undefined;
175
+ modifiedAt?: string | undefined;
148
176
  } | {
149
177
  type: "message";
178
+ summary?: string | undefined;
150
179
  channel?: string | undefined;
151
180
  author?: string | undefined;
152
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;
153
188
  } | {
154
189
  type: "person";
190
+ summary?: string | undefined;
155
191
  email?: string | undefined;
156
192
  slackHandle?: string | undefined;
157
193
  githubHandle?: string | undefined;