@sentry/junior-github 0.301.0 → 0.303.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 (97) hide show
  1. package/dist/events-CrbJHQ0w.js +2466 -0
  2. package/dist/index.d.ts +71 -3
  3. package/dist/index.js +7294 -7881
  4. package/dist/testing.d.ts +51 -1
  5. package/dist/testing.js +1 -6
  6. package/migrations/0012_pull_request_next_action.sql +5 -0
  7. package/migrations/meta/0012_snapshot.json +434 -0
  8. package/migrations/meta/_journal.json +7 -0
  9. package/package.json +11 -13
  10. package/skills/github-code/SKILL.md +1 -1
  11. package/skills/github-code/SPEC.md +2 -2
  12. package/skills/github-code/references/workflow.md +1 -1
  13. package/dist/account-links.d.ts +0 -8
  14. package/dist/annotations.d.ts +0 -33
  15. package/dist/chunk-YUF5P5I7.js +0 -2507
  16. package/dist/clone-command.d.ts +0 -5
  17. package/dist/configured-repository.d.ts +0 -10
  18. package/dist/conversation-title-context.d.ts +0 -20
  19. package/dist/credential-support.d.ts +0 -107
  20. package/dist/db/database.d.ts +0 -5
  21. package/dist/db/schema.d.ts +0 -1403
  22. package/dist/default-branch.d.ts +0 -15
  23. package/dist/egress-policy.d.ts +0 -25
  24. package/dist/events/comment.d.ts +0 -14
  25. package/dist/events/declarations.d.ts +0 -18
  26. package/dist/events/deployment.d.ts +0 -38
  27. package/dist/events/issue.d.ts +0 -42
  28. package/dist/events/pull-request.d.ts +0 -75
  29. package/dist/events/release.d.ts +0 -42
  30. package/dist/events/repository.d.ts +0 -23
  31. package/dist/events/resource-url.d.ts +0 -5
  32. package/dist/events/scope.d.ts +0 -13
  33. package/dist/git-config.d.ts +0 -52
  34. package/dist/github-status.d.ts +0 -16
  35. package/dist/graphql-documents.d.ts +0 -31
  36. package/dist/images.d.ts +0 -8
  37. package/dist/issue-outcomes/store.d.ts +0 -42
  38. package/dist/merge-conflict-checks/heartbeat.d.ts +0 -27
  39. package/dist/merge-conflict-checks/store.d.ts +0 -44
  40. package/dist/merge-conflict-checks/webhooks.d.ts +0 -23
  41. package/dist/object-facts.d.ts +0 -29
  42. package/dist/permissions.d.ts +0 -6
  43. package/dist/plugin.d.ts +0 -45
  44. package/dist/pull-request-outcomes/apply.d.ts +0 -22
  45. package/dist/pull-request-outcomes/commit-composition.d.ts +0 -6
  46. package/dist/pull-request-outcomes/reconcile.d.ts +0 -41
  47. package/dist/pull-request-outcomes/store.d.ts +0 -115
  48. package/dist/pull-request-requesters/draft-reviewers.d.ts +0 -15
  49. package/dist/pull-request-requesters/store.d.ts +0 -41
  50. package/dist/pull-request-review-policy.d.ts +0 -6
  51. package/dist/receive-pack-policy.d.ts +0 -21
  52. package/dist/reply-markdown.d.ts +0 -18
  53. package/dist/sandbox-paths.d.ts +0 -4
  54. package/dist/tool-support/attribution.d.ts +0 -52
  55. package/dist/tool-support/github-api.d.ts +0 -51
  56. package/dist/tool-support/github-text.d.ts +0 -8
  57. package/dist/tool-support/pull-request-description.d.ts +0 -8
  58. package/dist/tools/clone-repository.d.ts +0 -205
  59. package/dist/tools/comment-on-issue.d.ts +0 -205
  60. package/dist/tools/comment-on-pull-request.d.ts +0 -210
  61. package/dist/tools/create-issue.d.ts +0 -218
  62. package/dist/tools/create-pull-request.d.ts +0 -240
  63. package/dist/tools/footer.d.ts +0 -17
  64. package/dist/tools/get-deployment.d.ts +0 -264
  65. package/dist/tools/get-issue.d.ts +0 -248
  66. package/dist/tools/get-pull-request.d.ts +0 -255
  67. package/dist/tools/get-release.d.ts +0 -243
  68. package/dist/tools/get-repository.d.ts +0 -226
  69. package/dist/tools/get-status.d.ts +0 -213
  70. package/dist/tools/react-to-issue.d.ts +0 -205
  71. package/dist/tools/resolve-pull-request-review-thread.d.ts +0 -206
  72. package/dist/tools/stack-pull-request.d.ts +0 -43
  73. package/dist/tools/submit-pull-request-review.d.ts +0 -216
  74. package/dist/tools/update-issue-comment.d.ts +0 -206
  75. package/dist/tools/update-issue.d.ts +0 -249
  76. package/dist/tools/update-pull-request-feedback.d.ts +0 -242
  77. package/dist/tools/update-pull-request.d.ts +0 -255
  78. package/dist/tools.d.ts +0 -13
  79. package/dist/webhooks/check-suite.d.ts +0 -94
  80. package/dist/webhooks/event-targets.d.ts +0 -44
  81. package/dist/webhooks/events.d.ts +0 -23
  82. package/dist/webhooks/fail-open-log.d.ts +0 -10
  83. package/dist/webhooks/handler.d.ts +0 -55
  84. package/dist/webhooks/installation-requests.d.ts +0 -98
  85. package/dist/webhooks/issue-outcome.d.ts +0 -11
  86. package/dist/webhooks/issue-update.d.ts +0 -8
  87. package/dist/webhooks/merge-conflict.d.ts +0 -48
  88. package/dist/webhooks/ownership.d.ts +0 -14
  89. package/dist/webhooks/pull-request-activity.d.ts +0 -11
  90. package/dist/webhooks/pull-request-match-data.d.ts +0 -31
  91. package/dist/webhooks/pull-request-outcome.d.ts +0 -16
  92. package/dist/webhooks/pull-request-people.d.ts +0 -51
  93. package/dist/webhooks/pull-request-preview.d.ts +0 -12
  94. package/dist/webhooks/pull-request-ready-reviewers.d.ts +0 -25
  95. package/dist/webhooks/pull-request-ready.d.ts +0 -31
  96. package/dist/webhooks/pull-request-review-request.d.ts +0 -32
  97. package/dist/workspace-prepare.d.ts +0 -3
@@ -1,255 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Read one PR and expose its stable subscription identity when webhooks are enabled. */
3
- export declare function createGitHubGetPullRequestTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
- repo: string;
10
- number: number;
11
- }, {
12
- objectAnnotations?: {
13
- kind: "object";
14
- key: string;
15
- label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
17
- title: string;
18
- url: string | null;
19
- description?: string | undefined;
20
- status?: string | undefined;
21
- trigger?: string | undefined;
22
- warning?: string | undefined;
23
- displayType?: string | undefined;
24
- sourceUpdatedAt?: string | undefined;
25
- facts?: {
26
- type: "code_change";
27
- summary?: string | undefined;
28
- author?: string | undefined;
29
- sourceBranch?: string | undefined;
30
- targetBranch?: string | undefined;
31
- reviewers?: string[] | undefined;
32
- review?: "approved" | "changes_requested" | "required" | undefined;
33
- checks?: {
34
- passed: number;
35
- failed: number;
36
- pending: number;
37
- } | undefined;
38
- mergeable?: boolean | undefined;
39
- changedFiles?: number | undefined;
40
- additions?: number | undefined;
41
- deletions?: number | undefined;
42
- previewImageUrls?: string[] | undefined;
43
- } | {
44
- type: "task";
45
- summary?: string | undefined;
46
- assignees?: string[] | undefined;
47
- priority?: string | undefined;
48
- project?: string | undefined;
49
- cycle?: string | undefined;
50
- dueDate?: string | undefined;
51
- labels?: string[] | undefined;
52
- } | {
53
- type: "deployment";
54
- summary?: string | undefined;
55
- project?: string | undefined;
56
- environment?: string | undefined;
57
- revision?: string | undefined;
58
- branch?: string | undefined;
59
- } | {
60
- type: "calendar_event";
61
- summary?: string | undefined;
62
- when?: string | undefined;
63
- attendees?: string[] | undefined;
64
- } | {
65
- type: "conversation";
66
- summary?: string | undefined;
67
- participants?: string[] | undefined;
68
- lastActivityAt?: string | undefined;
69
- } | {
70
- type: "document";
71
- summary?: string | undefined;
72
- owner?: string | undefined;
73
- modifiedAt?: string | undefined;
74
- } | {
75
- type: "message";
76
- summary?: string | undefined;
77
- channel?: string | undefined;
78
- author?: string | undefined;
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;
86
- } | {
87
- type: "person";
88
- summary?: string | undefined;
89
- email?: string | undefined;
90
- slackHandle?: string | undefined;
91
- githubHandle?: string | undefined;
92
- avatarUrl?: string | undefined;
93
- } | undefined;
94
- }[] | undefined;
95
- reply?: {
96
- text: string;
97
- url?: string | undefined;
98
- } | undefined;
99
- truncated?: boolean | undefined;
100
- continuation?: {
101
- arguments: Record<string, unknown>;
102
- reason?: string | undefined;
103
- } | undefined;
104
- base: string;
105
- checks: {
106
- required: "failing" | "not_reported" | "passing" | "pending";
107
- failing: string[];
108
- pending: string[];
109
- passing: string[];
110
- incomplete?: true | undefined;
111
- merge_state: string;
112
- review_decision: string | null;
113
- auto_merge: boolean;
114
- };
115
- draft: boolean;
116
- head: string;
117
- head_sha: string;
118
- merged: boolean;
119
- number: number;
120
- state: string;
121
- subscribable?: {
122
- identifier: string;
123
- label: string;
124
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
125
- namespace: string;
126
- suggested_events?: string[] | undefined;
127
- supported_events: string[];
128
- type: string;
129
- } | undefined;
130
- title: string;
131
- url: string;
132
- target: "getPullRequest";
133
- }, {
134
- objectAnnotations?: {
135
- kind: "object";
136
- key: string;
137
- label: string;
138
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
139
- title: string;
140
- url: string | null;
141
- description?: string | undefined;
142
- status?: string | undefined;
143
- trigger?: string | undefined;
144
- warning?: string | undefined;
145
- displayType?: string | undefined;
146
- sourceUpdatedAt?: string | undefined;
147
- facts?: {
148
- type: "code_change";
149
- summary?: string | undefined;
150
- author?: string | undefined;
151
- sourceBranch?: string | undefined;
152
- targetBranch?: string | undefined;
153
- reviewers?: string[] | undefined;
154
- review?: "approved" | "changes_requested" | "required" | undefined;
155
- checks?: {
156
- passed: number;
157
- failed: number;
158
- pending: number;
159
- } | undefined;
160
- mergeable?: boolean | undefined;
161
- changedFiles?: number | undefined;
162
- additions?: number | undefined;
163
- deletions?: number | undefined;
164
- previewImageUrls?: string[] | undefined;
165
- } | {
166
- type: "task";
167
- summary?: string | undefined;
168
- assignees?: string[] | undefined;
169
- priority?: string | undefined;
170
- project?: string | undefined;
171
- cycle?: string | undefined;
172
- dueDate?: string | undefined;
173
- labels?: string[] | undefined;
174
- } | {
175
- type: "deployment";
176
- summary?: string | undefined;
177
- project?: string | undefined;
178
- environment?: string | undefined;
179
- revision?: string | undefined;
180
- branch?: string | undefined;
181
- } | {
182
- type: "calendar_event";
183
- summary?: string | undefined;
184
- when?: string | undefined;
185
- attendees?: string[] | undefined;
186
- } | {
187
- type: "conversation";
188
- summary?: string | undefined;
189
- participants?: string[] | undefined;
190
- lastActivityAt?: string | undefined;
191
- } | {
192
- type: "document";
193
- summary?: string | undefined;
194
- owner?: string | undefined;
195
- modifiedAt?: string | undefined;
196
- } | {
197
- type: "message";
198
- summary?: string | undefined;
199
- channel?: string | undefined;
200
- author?: string | undefined;
201
- sentAt?: string | undefined;
202
- } | {
203
- type: "web_page";
204
- summary?: string | undefined;
205
- siteName?: string | undefined;
206
- author?: string | undefined;
207
- thumbnailUrl?: string | undefined;
208
- } | {
209
- type: "person";
210
- summary?: string | undefined;
211
- email?: string | undefined;
212
- slackHandle?: string | undefined;
213
- githubHandle?: string | undefined;
214
- avatarUrl?: string | undefined;
215
- } | undefined;
216
- }[] | undefined;
217
- reply?: {
218
- text: string;
219
- url?: string | undefined;
220
- } | undefined;
221
- truncated?: boolean | undefined;
222
- continuation?: {
223
- arguments: Record<string, unknown>;
224
- reason?: string | undefined;
225
- } | undefined;
226
- base: string;
227
- checks: {
228
- required: "failing" | "not_reported" | "passing" | "pending";
229
- failing: string[];
230
- pending: string[];
231
- passing: string[];
232
- incomplete?: true | undefined;
233
- merge_state: string;
234
- review_decision: string | null;
235
- auto_merge: boolean;
236
- };
237
- draft: boolean;
238
- head: string;
239
- head_sha: string;
240
- merged: boolean;
241
- number: number;
242
- state: string;
243
- subscribable?: {
244
- identifier: string;
245
- label: string;
246
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
247
- namespace: string;
248
- suggested_events?: string[] | undefined;
249
- supported_events: string[];
250
- type: string;
251
- } | undefined;
252
- title: string;
253
- url: string;
254
- target: "getPullRequest";
255
- }>;
@@ -1,243 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Read release metadata and expose its stable subscription identity. */
3
- export declare function createGitHubGetReleaseTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
- repo: string;
10
- tag?: string | undefined;
11
- }, {
12
- objectAnnotations?: {
13
- kind: "object";
14
- key: string;
15
- label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
17
- title: string;
18
- url: string | null;
19
- description?: string | undefined;
20
- status?: string | undefined;
21
- trigger?: string | undefined;
22
- warning?: string | undefined;
23
- displayType?: string | undefined;
24
- sourceUpdatedAt?: string | undefined;
25
- facts?: {
26
- type: "code_change";
27
- summary?: string | undefined;
28
- author?: string | undefined;
29
- sourceBranch?: string | undefined;
30
- targetBranch?: string | undefined;
31
- reviewers?: string[] | undefined;
32
- review?: "approved" | "changes_requested" | "required" | undefined;
33
- checks?: {
34
- passed: number;
35
- failed: number;
36
- pending: number;
37
- } | undefined;
38
- mergeable?: boolean | undefined;
39
- changedFiles?: number | undefined;
40
- additions?: number | undefined;
41
- deletions?: number | undefined;
42
- previewImageUrls?: string[] | undefined;
43
- } | {
44
- type: "task";
45
- summary?: string | undefined;
46
- assignees?: string[] | undefined;
47
- priority?: string | undefined;
48
- project?: string | undefined;
49
- cycle?: string | undefined;
50
- dueDate?: string | undefined;
51
- labels?: string[] | undefined;
52
- } | {
53
- type: "deployment";
54
- summary?: string | undefined;
55
- project?: string | undefined;
56
- environment?: string | undefined;
57
- revision?: string | undefined;
58
- branch?: string | undefined;
59
- } | {
60
- type: "calendar_event";
61
- summary?: string | undefined;
62
- when?: string | undefined;
63
- attendees?: string[] | undefined;
64
- } | {
65
- type: "conversation";
66
- summary?: string | undefined;
67
- participants?: string[] | undefined;
68
- lastActivityAt?: string | undefined;
69
- } | {
70
- type: "document";
71
- summary?: string | undefined;
72
- owner?: string | undefined;
73
- modifiedAt?: string | undefined;
74
- } | {
75
- type: "message";
76
- summary?: string | undefined;
77
- channel?: string | undefined;
78
- author?: string | undefined;
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;
86
- } | {
87
- type: "person";
88
- summary?: string | undefined;
89
- email?: string | undefined;
90
- slackHandle?: string | undefined;
91
- githubHandle?: string | undefined;
92
- avatarUrl?: string | undefined;
93
- } | undefined;
94
- }[] | undefined;
95
- reply?: {
96
- text: string;
97
- url?: string | undefined;
98
- } | undefined;
99
- truncated?: boolean | undefined;
100
- continuation?: {
101
- arguments: Record<string, unknown>;
102
- reason?: string | undefined;
103
- } | undefined;
104
- release: {
105
- created_at: string;
106
- draft: boolean;
107
- html_url: string;
108
- id: number;
109
- name: string | null;
110
- prerelease: boolean;
111
- published_at: string | null;
112
- tag_name: string;
113
- target_commitish: string;
114
- } | null;
115
- repo: string;
116
- subscribable?: {
117
- identifier: string;
118
- label: string;
119
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
120
- namespace: string;
121
- suggested_events?: string[] | undefined;
122
- supported_events: string[];
123
- type: string;
124
- } | undefined;
125
- tag: string | null;
126
- target: "getRelease";
127
- }, {
128
- objectAnnotations?: {
129
- kind: "object";
130
- key: string;
131
- label: string;
132
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
133
- title: string;
134
- url: string | null;
135
- description?: string | undefined;
136
- status?: string | undefined;
137
- trigger?: string | undefined;
138
- warning?: string | undefined;
139
- displayType?: string | undefined;
140
- sourceUpdatedAt?: string | undefined;
141
- facts?: {
142
- type: "code_change";
143
- summary?: string | undefined;
144
- author?: string | undefined;
145
- sourceBranch?: string | undefined;
146
- targetBranch?: string | undefined;
147
- reviewers?: string[] | undefined;
148
- review?: "approved" | "changes_requested" | "required" | undefined;
149
- checks?: {
150
- passed: number;
151
- failed: number;
152
- pending: number;
153
- } | undefined;
154
- mergeable?: boolean | undefined;
155
- changedFiles?: number | undefined;
156
- additions?: number | undefined;
157
- deletions?: number | undefined;
158
- previewImageUrls?: string[] | undefined;
159
- } | {
160
- type: "task";
161
- summary?: string | undefined;
162
- assignees?: string[] | undefined;
163
- priority?: string | undefined;
164
- project?: string | undefined;
165
- cycle?: string | undefined;
166
- dueDate?: string | undefined;
167
- labels?: string[] | undefined;
168
- } | {
169
- type: "deployment";
170
- summary?: string | undefined;
171
- project?: string | undefined;
172
- environment?: string | undefined;
173
- revision?: string | undefined;
174
- branch?: string | undefined;
175
- } | {
176
- type: "calendar_event";
177
- summary?: string | undefined;
178
- when?: string | undefined;
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;
209
- } | undefined;
210
- }[] | undefined;
211
- reply?: {
212
- text: string;
213
- url?: string | undefined;
214
- } | undefined;
215
- truncated?: boolean | undefined;
216
- continuation?: {
217
- arguments: Record<string, unknown>;
218
- reason?: string | undefined;
219
- } | undefined;
220
- release: {
221
- created_at: string;
222
- draft: boolean;
223
- html_url: string;
224
- id: number;
225
- name: string | null;
226
- prerelease: boolean;
227
- published_at: string | null;
228
- tag_name: string;
229
- target_commitish: string;
230
- } | null;
231
- repo: string;
232
- subscribable?: {
233
- identifier: string;
234
- label: string;
235
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
236
- namespace: string;
237
- suggested_events?: string[] | undefined;
238
- supported_events: string[];
239
- type: string;
240
- } | undefined;
241
- tag: string | null;
242
- target: "getRelease";
243
- }>;