@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.
@@ -13,7 +13,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
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 createGitHubUpdateIssueCommentTool(egress: PluginEgress,
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 createGitHubUpdateIssueCommentTool(egress: PluginEgress,
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 createGitHubUpdateIssueCommentTool(egress: PluginEgress,
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;
@@ -93,7 +111,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
93
111
  kind: "object";
94
112
  key: string;
95
113
  label: string;
96
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
114
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
97
115
  title: string;
98
116
  url: string | null;
99
117
  description?: string | undefined;
@@ -104,6 +122,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
104
122
  sourceUpdatedAt?: string | undefined;
105
123
  facts?: {
106
124
  type: "code_change";
125
+ summary?: string | undefined;
107
126
  author?: string | undefined;
108
127
  sourceBranch?: string | undefined;
109
128
  targetBranch?: string | undefined;
@@ -121,6 +140,7 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
121
140
  previewImageUrls?: string[] | undefined;
122
141
  } | {
123
142
  type: "task";
143
+ summary?: string | undefined;
124
144
  assignees?: string[] | undefined;
125
145
  priority?: string | undefined;
126
146
  project?: string | undefined;
@@ -129,25 +149,41 @@ export declare function createGitHubUpdateIssueCommentTool(egress: PluginEgress,
129
149
  labels?: string[] | undefined;
130
150
  } | {
131
151
  type: "deployment";
152
+ summary?: string | undefined;
132
153
  project?: string | undefined;
133
154
  environment?: string | undefined;
134
155
  revision?: string | undefined;
135
156
  branch?: string | undefined;
136
157
  } | {
137
158
  type: "calendar_event";
159
+ summary?: string | undefined;
138
160
  when?: string | undefined;
139
161
  attendees?: string[] | undefined;
140
162
  } | {
141
163
  type: "conversation";
164
+ summary?: string | undefined;
142
165
  participants?: string[] | undefined;
143
166
  lastActivityAt?: string | undefined;
167
+ } | {
168
+ type: "document";
169
+ summary?: string | undefined;
170
+ owner?: string | undefined;
171
+ modifiedAt?: string | undefined;
144
172
  } | {
145
173
  type: "message";
174
+ summary?: string | undefined;
146
175
  channel?: string | undefined;
147
176
  author?: string | undefined;
148
177
  sentAt?: string | undefined;
178
+ } | {
179
+ type: "web_page";
180
+ summary?: string | undefined;
181
+ siteName?: string | undefined;
182
+ author?: string | undefined;
183
+ thumbnailUrl?: string | undefined;
149
184
  } | {
150
185
  type: "person";
186
+ summary?: string | undefined;
151
187
  email?: string | undefined;
152
188
  slackHandle?: string | undefined;
153
189
  githubHandle?: string | undefined;
@@ -33,7 +33,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
33
33
  kind: "object";
34
34
  key: string;
35
35
  label: string;
36
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
36
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
37
37
  title: string;
38
38
  url: string | null;
39
39
  description?: string | undefined;
@@ -44,6 +44,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
44
44
  sourceUpdatedAt?: string | undefined;
45
45
  facts?: {
46
46
  type: "code_change";
47
+ summary?: string | undefined;
47
48
  author?: string | undefined;
48
49
  sourceBranch?: string | undefined;
49
50
  targetBranch?: string | undefined;
@@ -61,6 +62,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
61
62
  previewImageUrls?: string[] | undefined;
62
63
  } | {
63
64
  type: "task";
65
+ summary?: string | undefined;
64
66
  assignees?: string[] | undefined;
65
67
  priority?: string | undefined;
66
68
  project?: string | undefined;
@@ -69,25 +71,41 @@ export declare function createGitHubUpdateIssueTool(ctx: {
69
71
  labels?: string[] | undefined;
70
72
  } | {
71
73
  type: "deployment";
74
+ summary?: string | undefined;
72
75
  project?: string | undefined;
73
76
  environment?: string | undefined;
74
77
  revision?: string | undefined;
75
78
  branch?: string | undefined;
76
79
  } | {
77
80
  type: "calendar_event";
81
+ summary?: string | undefined;
78
82
  when?: string | undefined;
79
83
  attendees?: string[] | undefined;
80
84
  } | {
81
85
  type: "conversation";
86
+ summary?: string | undefined;
82
87
  participants?: string[] | undefined;
83
88
  lastActivityAt?: string | undefined;
89
+ } | {
90
+ type: "document";
91
+ summary?: string | undefined;
92
+ owner?: string | undefined;
93
+ modifiedAt?: string | undefined;
84
94
  } | {
85
95
  type: "message";
96
+ summary?: string | undefined;
86
97
  channel?: string | undefined;
87
98
  author?: string | undefined;
88
99
  sentAt?: string | undefined;
100
+ } | {
101
+ type: "web_page";
102
+ summary?: string | undefined;
103
+ siteName?: string | undefined;
104
+ author?: string | undefined;
105
+ thumbnailUrl?: string | undefined;
89
106
  } | {
90
107
  type: "person";
108
+ summary?: string | undefined;
91
109
  email?: string | undefined;
92
110
  slackHandle?: string | undefined;
93
111
  githubHandle?: string | undefined;
@@ -124,7 +142,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
124
142
  kind: "object";
125
143
  key: string;
126
144
  label: string;
127
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
145
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
128
146
  title: string;
129
147
  url: string | null;
130
148
  description?: string | undefined;
@@ -135,6 +153,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
135
153
  sourceUpdatedAt?: string | undefined;
136
154
  facts?: {
137
155
  type: "code_change";
156
+ summary?: string | undefined;
138
157
  author?: string | undefined;
139
158
  sourceBranch?: string | undefined;
140
159
  targetBranch?: string | undefined;
@@ -152,6 +171,7 @@ export declare function createGitHubUpdateIssueTool(ctx: {
152
171
  previewImageUrls?: string[] | undefined;
153
172
  } | {
154
173
  type: "task";
174
+ summary?: string | undefined;
155
175
  assignees?: string[] | undefined;
156
176
  priority?: string | undefined;
157
177
  project?: string | undefined;
@@ -160,25 +180,41 @@ export declare function createGitHubUpdateIssueTool(ctx: {
160
180
  labels?: string[] | undefined;
161
181
  } | {
162
182
  type: "deployment";
183
+ summary?: string | undefined;
163
184
  project?: string | undefined;
164
185
  environment?: string | undefined;
165
186
  revision?: string | undefined;
166
187
  branch?: string | undefined;
167
188
  } | {
168
189
  type: "calendar_event";
190
+ summary?: string | undefined;
169
191
  when?: string | undefined;
170
192
  attendees?: string[] | undefined;
171
193
  } | {
172
194
  type: "conversation";
195
+ summary?: string | undefined;
173
196
  participants?: string[] | undefined;
174
197
  lastActivityAt?: string | undefined;
198
+ } | {
199
+ type: "document";
200
+ summary?: string | undefined;
201
+ owner?: string | undefined;
202
+ modifiedAt?: string | undefined;
175
203
  } | {
176
204
  type: "message";
205
+ summary?: string | undefined;
177
206
  channel?: string | undefined;
178
207
  author?: string | undefined;
179
208
  sentAt?: string | undefined;
209
+ } | {
210
+ type: "web_page";
211
+ summary?: string | undefined;
212
+ siteName?: string | undefined;
213
+ author?: string | undefined;
214
+ thumbnailUrl?: string | undefined;
180
215
  } | {
181
216
  type: "person";
217
+ summary?: string | undefined;
182
218
  email?: string | undefined;
183
219
  slackHandle?: string | undefined;
184
220
  githubHandle?: string | undefined;
@@ -48,7 +48,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
48
48
  kind: "object";
49
49
  key: string;
50
50
  label: string;
51
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
51
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
52
52
  title: string;
53
53
  url: string | null;
54
54
  description?: string | undefined;
@@ -59,6 +59,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
59
59
  sourceUpdatedAt?: string | undefined;
60
60
  facts?: {
61
61
  type: "code_change";
62
+ summary?: string | undefined;
62
63
  author?: string | undefined;
63
64
  sourceBranch?: string | undefined;
64
65
  targetBranch?: string | undefined;
@@ -76,6 +77,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
76
77
  previewImageUrls?: string[] | undefined;
77
78
  } | {
78
79
  type: "task";
80
+ summary?: string | undefined;
79
81
  assignees?: string[] | undefined;
80
82
  priority?: string | undefined;
81
83
  project?: string | undefined;
@@ -84,25 +86,41 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
84
86
  labels?: string[] | undefined;
85
87
  } | {
86
88
  type: "deployment";
89
+ summary?: string | undefined;
87
90
  project?: string | undefined;
88
91
  environment?: string | undefined;
89
92
  revision?: string | undefined;
90
93
  branch?: string | undefined;
91
94
  } | {
92
95
  type: "calendar_event";
96
+ summary?: string | undefined;
93
97
  when?: string | undefined;
94
98
  attendees?: string[] | undefined;
95
99
  } | {
96
100
  type: "conversation";
101
+ summary?: string | undefined;
97
102
  participants?: string[] | undefined;
98
103
  lastActivityAt?: string | undefined;
104
+ } | {
105
+ type: "document";
106
+ summary?: string | undefined;
107
+ owner?: string | undefined;
108
+ modifiedAt?: string | undefined;
99
109
  } | {
100
110
  type: "message";
111
+ summary?: string | undefined;
101
112
  channel?: string | undefined;
102
113
  author?: string | undefined;
103
114
  sentAt?: string | undefined;
115
+ } | {
116
+ type: "web_page";
117
+ summary?: string | undefined;
118
+ siteName?: string | undefined;
119
+ author?: string | undefined;
120
+ thumbnailUrl?: string | undefined;
104
121
  } | {
105
122
  type: "person";
123
+ summary?: string | undefined;
106
124
  email?: string | undefined;
107
125
  slackHandle?: string | undefined;
108
126
  githubHandle?: string | undefined;
@@ -128,7 +146,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
128
146
  kind: "object";
129
147
  key: string;
130
148
  label: string;
131
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
149
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
132
150
  title: string;
133
151
  url: string | null;
134
152
  description?: string | undefined;
@@ -139,6 +157,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
139
157
  sourceUpdatedAt?: string | undefined;
140
158
  facts?: {
141
159
  type: "code_change";
160
+ summary?: string | undefined;
142
161
  author?: string | undefined;
143
162
  sourceBranch?: string | undefined;
144
163
  targetBranch?: string | undefined;
@@ -156,6 +175,7 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
156
175
  previewImageUrls?: string[] | undefined;
157
176
  } | {
158
177
  type: "task";
178
+ summary?: string | undefined;
159
179
  assignees?: string[] | undefined;
160
180
  priority?: string | undefined;
161
181
  project?: string | undefined;
@@ -164,25 +184,41 @@ export declare function createGitHubUpdatePullRequestFeedbackTool(ctx: {
164
184
  labels?: string[] | undefined;
165
185
  } | {
166
186
  type: "deployment";
187
+ summary?: string | undefined;
167
188
  project?: string | undefined;
168
189
  environment?: string | undefined;
169
190
  revision?: string | undefined;
170
191
  branch?: string | undefined;
171
192
  } | {
172
193
  type: "calendar_event";
194
+ summary?: string | undefined;
173
195
  when?: string | undefined;
174
196
  attendees?: string[] | undefined;
175
197
  } | {
176
198
  type: "conversation";
199
+ summary?: string | undefined;
177
200
  participants?: string[] | undefined;
178
201
  lastActivityAt?: string | undefined;
202
+ } | {
203
+ type: "document";
204
+ summary?: string | undefined;
205
+ owner?: string | undefined;
206
+ modifiedAt?: string | undefined;
179
207
  } | {
180
208
  type: "message";
209
+ summary?: string | undefined;
181
210
  channel?: string | undefined;
182
211
  author?: string | undefined;
183
212
  sentAt?: string | undefined;
213
+ } | {
214
+ type: "web_page";
215
+ summary?: string | undefined;
216
+ siteName?: string | undefined;
217
+ author?: string | undefined;
218
+ thumbnailUrl?: string | undefined;
184
219
  } | {
185
220
  type: "person";
221
+ summary?: string | undefined;
186
222
  email?: string | undefined;
187
223
  slackHandle?: string | undefined;
188
224
  githubHandle?: string | undefined;
@@ -37,7 +37,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
37
37
  kind: "object";
38
38
  key: string;
39
39
  label: string;
40
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
40
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
41
41
  title: string;
42
42
  url: string | null;
43
43
  description?: string | undefined;
@@ -48,6 +48,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
48
48
  sourceUpdatedAt?: string | undefined;
49
49
  facts?: {
50
50
  type: "code_change";
51
+ summary?: string | undefined;
51
52
  author?: string | undefined;
52
53
  sourceBranch?: string | undefined;
53
54
  targetBranch?: string | undefined;
@@ -65,6 +66,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
65
66
  previewImageUrls?: string[] | undefined;
66
67
  } | {
67
68
  type: "task";
69
+ summary?: string | undefined;
68
70
  assignees?: string[] | undefined;
69
71
  priority?: string | undefined;
70
72
  project?: string | undefined;
@@ -73,25 +75,41 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
73
75
  labels?: string[] | undefined;
74
76
  } | {
75
77
  type: "deployment";
78
+ summary?: string | undefined;
76
79
  project?: string | undefined;
77
80
  environment?: string | undefined;
78
81
  revision?: string | undefined;
79
82
  branch?: string | undefined;
80
83
  } | {
81
84
  type: "calendar_event";
85
+ summary?: string | undefined;
82
86
  when?: string | undefined;
83
87
  attendees?: string[] | undefined;
84
88
  } | {
85
89
  type: "conversation";
90
+ summary?: string | undefined;
86
91
  participants?: string[] | undefined;
87
92
  lastActivityAt?: string | undefined;
93
+ } | {
94
+ type: "document";
95
+ summary?: string | undefined;
96
+ owner?: string | undefined;
97
+ modifiedAt?: string | undefined;
88
98
  } | {
89
99
  type: "message";
100
+ summary?: string | undefined;
90
101
  channel?: string | undefined;
91
102
  author?: string | undefined;
92
103
  sentAt?: string | undefined;
104
+ } | {
105
+ type: "web_page";
106
+ summary?: string | undefined;
107
+ siteName?: string | undefined;
108
+ author?: string | undefined;
109
+ thumbnailUrl?: string | undefined;
93
110
  } | {
94
111
  type: "person";
112
+ summary?: string | undefined;
95
113
  email?: string | undefined;
96
114
  slackHandle?: string | undefined;
97
115
  githubHandle?: string | undefined;
@@ -129,7 +147,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
129
147
  kind: "object";
130
148
  key: string;
131
149
  label: string;
132
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
150
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
133
151
  title: string;
134
152
  url: string | null;
135
153
  description?: string | undefined;
@@ -140,6 +158,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
140
158
  sourceUpdatedAt?: string | undefined;
141
159
  facts?: {
142
160
  type: "code_change";
161
+ summary?: string | undefined;
143
162
  author?: string | undefined;
144
163
  sourceBranch?: string | undefined;
145
164
  targetBranch?: string | undefined;
@@ -157,6 +176,7 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
157
176
  previewImageUrls?: string[] | undefined;
158
177
  } | {
159
178
  type: "task";
179
+ summary?: string | undefined;
160
180
  assignees?: string[] | undefined;
161
181
  priority?: string | undefined;
162
182
  project?: string | undefined;
@@ -165,25 +185,41 @@ descriptionDecider?: PluginDecider): import("@sentry/junior-plugin-api").PluginT
165
185
  labels?: string[] | undefined;
166
186
  } | {
167
187
  type: "deployment";
188
+ summary?: string | undefined;
168
189
  project?: string | undefined;
169
190
  environment?: string | undefined;
170
191
  revision?: string | undefined;
171
192
  branch?: string | undefined;
172
193
  } | {
173
194
  type: "calendar_event";
195
+ summary?: string | undefined;
174
196
  when?: string | undefined;
175
197
  attendees?: string[] | undefined;
176
198
  } | {
177
199
  type: "conversation";
200
+ summary?: string | undefined;
178
201
  participants?: string[] | undefined;
179
202
  lastActivityAt?: string | undefined;
203
+ } | {
204
+ type: "document";
205
+ summary?: string | undefined;
206
+ owner?: string | undefined;
207
+ modifiedAt?: string | undefined;
180
208
  } | {
181
209
  type: "message";
210
+ summary?: string | undefined;
182
211
  channel?: string | undefined;
183
212
  author?: string | undefined;
184
213
  sentAt?: string | undefined;
214
+ } | {
215
+ type: "web_page";
216
+ summary?: string | undefined;
217
+ siteName?: string | undefined;
218
+ author?: string | undefined;
219
+ thumbnailUrl?: string | undefined;
185
220
  } | {
186
221
  type: "person";
222
+ summary?: string | undefined;
187
223
  email?: string | undefined;
188
224
  slackHandle?: string | undefined;
189
225
  githubHandle?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-github",
3
- "version": "0.299.0",
3
+ "version": "0.301.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,14 +30,18 @@
30
30
  "dependencies": {
31
31
  "@0no-co/graphql.web": "^1.3.4",
32
32
  "@sinclair/typebox": "^0.34.49",
33
- "drizzle-orm": "^0.45.2",
33
+ "drizzle-orm": "^0.45.4",
34
34
  "marked": "^18.1.2",
35
+ "mdast-util-from-markdown": "^2.0.3",
36
+ "mdast-util-gfm": "^3.1.0",
37
+ "micromark-extension-gfm": "^3.0.0",
35
38
  "parse5": "^7.3.0",
36
- "zod": "^4.5.4",
37
- "@sentry/junior-plugin-api": "0.299.0"
39
+ "zod": "^4.6.7",
40
+ "@sentry/junior-plugin-api": "0.301.0"
38
41
  },
39
42
  "devDependencies": {
40
43
  "@oxlint/plugins": "1.79.0",
44
+ "@types/mdast": "^4.0.4",
41
45
  "@types/node": "^25.9.1",
42
46
  "@types/pg": "^8.15.6",
43
47
  "drizzle-kit": "^0.31.8",