@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,264 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Read deployment metadata and expose its stable subscription identity. */
3
- export declare function createGitHubGetDeploymentTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
- repo: string;
10
- commit_sha: string;
11
- environment?: string | undefined;
12
- }, {
13
- objectAnnotations?: {
14
- kind: "object";
15
- key: string;
16
- label: string;
17
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
18
- title: string;
19
- url: string | null;
20
- description?: string | undefined;
21
- status?: string | undefined;
22
- trigger?: string | undefined;
23
- warning?: string | undefined;
24
- displayType?: string | undefined;
25
- sourceUpdatedAt?: string | undefined;
26
- facts?: {
27
- type: "code_change";
28
- summary?: string | undefined;
29
- author?: string | undefined;
30
- sourceBranch?: string | undefined;
31
- targetBranch?: string | undefined;
32
- reviewers?: string[] | undefined;
33
- review?: "approved" | "changes_requested" | "required" | undefined;
34
- checks?: {
35
- passed: number;
36
- failed: number;
37
- pending: number;
38
- } | undefined;
39
- mergeable?: boolean | undefined;
40
- changedFiles?: number | undefined;
41
- additions?: number | undefined;
42
- deletions?: number | undefined;
43
- previewImageUrls?: string[] | undefined;
44
- } | {
45
- type: "task";
46
- summary?: string | undefined;
47
- assignees?: string[] | undefined;
48
- priority?: string | undefined;
49
- project?: string | undefined;
50
- cycle?: string | undefined;
51
- dueDate?: string | undefined;
52
- labels?: string[] | undefined;
53
- } | {
54
- type: "deployment";
55
- summary?: string | undefined;
56
- project?: string | undefined;
57
- environment?: string | undefined;
58
- revision?: string | undefined;
59
- branch?: string | undefined;
60
- } | {
61
- type: "calendar_event";
62
- summary?: string | undefined;
63
- when?: string | undefined;
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;
94
- } | undefined;
95
- }[] | undefined;
96
- reply?: {
97
- text: string;
98
- url?: string | undefined;
99
- } | undefined;
100
- truncated?: boolean | undefined;
101
- continuation?: {
102
- arguments: Record<string, unknown>;
103
- reason?: string | undefined;
104
- } | undefined;
105
- commit_sha: string;
106
- deployment: {
107
- created_at: string;
108
- creator: string | null;
109
- description: string | null;
110
- environment: string;
111
- id: number;
112
- latest_status: {
113
- created_at: string;
114
- creator: string | null;
115
- description: string | null;
116
- environment_url: string | null;
117
- id: number;
118
- log_url: string | null;
119
- state: string;
120
- } | null;
121
- ref: string;
122
- sha: string;
123
- updated_at: string;
124
- url: string;
125
- } | null;
126
- environment: string | null;
127
- repo: string;
128
- subscribable?: {
129
- identifier: string;
130
- label: string;
131
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
132
- namespace: string;
133
- suggested_events?: string[] | undefined;
134
- supported_events: string[];
135
- type: string;
136
- } | undefined;
137
- target: "getDeployment";
138
- }, {
139
- objectAnnotations?: {
140
- kind: "object";
141
- key: string;
142
- label: string;
143
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
144
- title: string;
145
- url: string | null;
146
- description?: string | undefined;
147
- status?: string | undefined;
148
- trigger?: string | undefined;
149
- warning?: string | undefined;
150
- displayType?: string | undefined;
151
- sourceUpdatedAt?: string | undefined;
152
- facts?: {
153
- type: "code_change";
154
- summary?: string | undefined;
155
- author?: string | undefined;
156
- sourceBranch?: string | undefined;
157
- targetBranch?: string | undefined;
158
- reviewers?: string[] | undefined;
159
- review?: "approved" | "changes_requested" | "required" | undefined;
160
- checks?: {
161
- passed: number;
162
- failed: number;
163
- pending: number;
164
- } | undefined;
165
- mergeable?: boolean | undefined;
166
- changedFiles?: number | undefined;
167
- additions?: number | undefined;
168
- deletions?: number | undefined;
169
- previewImageUrls?: string[] | undefined;
170
- } | {
171
- type: "task";
172
- summary?: string | undefined;
173
- assignees?: string[] | undefined;
174
- priority?: string | undefined;
175
- project?: string | undefined;
176
- cycle?: string | undefined;
177
- dueDate?: string | undefined;
178
- labels?: string[] | undefined;
179
- } | {
180
- type: "deployment";
181
- summary?: string | undefined;
182
- project?: string | undefined;
183
- environment?: string | undefined;
184
- revision?: string | undefined;
185
- branch?: string | undefined;
186
- } | {
187
- type: "calendar_event";
188
- summary?: string | undefined;
189
- when?: string | undefined;
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;
220
- } | undefined;
221
- }[] | undefined;
222
- reply?: {
223
- text: string;
224
- url?: string | undefined;
225
- } | undefined;
226
- truncated?: boolean | undefined;
227
- continuation?: {
228
- arguments: Record<string, unknown>;
229
- reason?: string | undefined;
230
- } | undefined;
231
- commit_sha: string;
232
- deployment: {
233
- created_at: string;
234
- creator: string | null;
235
- description: string | null;
236
- environment: string;
237
- id: number;
238
- latest_status: {
239
- created_at: string;
240
- creator: string | null;
241
- description: string | null;
242
- environment_url: string | null;
243
- id: number;
244
- log_url: string | null;
245
- state: string;
246
- } | null;
247
- ref: string;
248
- sha: string;
249
- updated_at: string;
250
- url: string;
251
- } | null;
252
- environment: string | null;
253
- repo: string;
254
- subscribable?: {
255
- identifier: string;
256
- label: string;
257
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
258
- namespace: string;
259
- suggested_events?: string[] | undefined;
260
- supported_events: string[];
261
- type: string;
262
- } | undefined;
263
- target: "getDeployment";
264
- }>;
@@ -1,248 +0,0 @@
1
- import { type Actor, type Identity, type PluginEgress, type PluginLogger, type User } from "@sentry/junior-plugin-api";
2
- /**
3
- * Read one GitHub issue. Sandbox issue reads are routed here so the result can
4
- * tell the agent to claim an issue that the requester does not own yet.
5
- */
6
- export declare function createGitHubGetIssueTool(ctx: {
7
- actor?: Actor;
8
- egress: PluginEgress;
9
- events: {
10
- canSubscribe: boolean;
11
- };
12
- log: PluginLogger;
13
- users: {
14
- resolveActor(): Promise<{
15
- identity?: Identity;
16
- user?: User;
17
- } | undefined>;
18
- };
19
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
20
- repo: string;
21
- number: number;
22
- }, {
23
- objectAnnotations?: {
24
- kind: "object";
25
- key: string;
26
- label: string;
27
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
28
- title: string;
29
- url: string | null;
30
- description?: string | undefined;
31
- status?: string | undefined;
32
- trigger?: string | undefined;
33
- warning?: string | undefined;
34
- displayType?: string | undefined;
35
- sourceUpdatedAt?: string | undefined;
36
- facts?: {
37
- type: "code_change";
38
- summary?: string | undefined;
39
- author?: string | undefined;
40
- sourceBranch?: string | undefined;
41
- targetBranch?: string | undefined;
42
- reviewers?: string[] | undefined;
43
- review?: "approved" | "changes_requested" | "required" | undefined;
44
- checks?: {
45
- passed: number;
46
- failed: number;
47
- pending: number;
48
- } | undefined;
49
- mergeable?: boolean | undefined;
50
- changedFiles?: number | undefined;
51
- additions?: number | undefined;
52
- deletions?: number | undefined;
53
- previewImageUrls?: string[] | undefined;
54
- } | {
55
- type: "task";
56
- summary?: string | undefined;
57
- assignees?: string[] | undefined;
58
- priority?: string | undefined;
59
- project?: string | undefined;
60
- cycle?: string | undefined;
61
- dueDate?: string | undefined;
62
- labels?: string[] | undefined;
63
- } | {
64
- type: "deployment";
65
- summary?: string | undefined;
66
- project?: string | undefined;
67
- environment?: string | undefined;
68
- revision?: string | undefined;
69
- branch?: string | undefined;
70
- } | {
71
- type: "calendar_event";
72
- summary?: string | undefined;
73
- when?: string | undefined;
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;
104
- } | undefined;
105
- }[] | undefined;
106
- reply?: {
107
- text: string;
108
- url?: string | undefined;
109
- } | undefined;
110
- truncated?: boolean | undefined;
111
- continuation?: {
112
- arguments: Record<string, unknown>;
113
- reason?: string | undefined;
114
- } | undefined;
115
- assignees: string[];
116
- author?: string | undefined;
117
- body: string | null;
118
- comments: number;
119
- labels: string[];
120
- note?: string | undefined;
121
- number: number;
122
- state: string;
123
- subscribable?: {
124
- identifier: string;
125
- label: string;
126
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
127
- namespace: string;
128
- suggested_events?: string[] | undefined;
129
- supported_events: string[];
130
- type: string;
131
- } | undefined;
132
- title: string;
133
- url: string;
134
- target: "getIssue";
135
- }, {
136
- objectAnnotations?: {
137
- kind: "object";
138
- key: string;
139
- label: string;
140
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
141
- title: string;
142
- url: string | null;
143
- description?: string | undefined;
144
- status?: string | undefined;
145
- trigger?: string | undefined;
146
- warning?: string | undefined;
147
- displayType?: string | undefined;
148
- sourceUpdatedAt?: string | undefined;
149
- facts?: {
150
- type: "code_change";
151
- summary?: string | undefined;
152
- author?: string | undefined;
153
- sourceBranch?: string | undefined;
154
- targetBranch?: string | undefined;
155
- reviewers?: string[] | undefined;
156
- review?: "approved" | "changes_requested" | "required" | undefined;
157
- checks?: {
158
- passed: number;
159
- failed: number;
160
- pending: number;
161
- } | undefined;
162
- mergeable?: boolean | undefined;
163
- changedFiles?: number | undefined;
164
- additions?: number | undefined;
165
- deletions?: number | undefined;
166
- previewImageUrls?: string[] | undefined;
167
- } | {
168
- type: "task";
169
- summary?: string | undefined;
170
- assignees?: string[] | undefined;
171
- priority?: string | undefined;
172
- project?: string | undefined;
173
- cycle?: string | undefined;
174
- dueDate?: string | undefined;
175
- labels?: string[] | undefined;
176
- } | {
177
- type: "deployment";
178
- summary?: string | undefined;
179
- project?: string | undefined;
180
- environment?: string | undefined;
181
- revision?: string | undefined;
182
- branch?: string | undefined;
183
- } | {
184
- type: "calendar_event";
185
- summary?: string | undefined;
186
- when?: string | undefined;
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;
217
- } | undefined;
218
- }[] | undefined;
219
- reply?: {
220
- text: string;
221
- url?: string | undefined;
222
- } | undefined;
223
- truncated?: boolean | undefined;
224
- continuation?: {
225
- arguments: Record<string, unknown>;
226
- reason?: string | undefined;
227
- } | undefined;
228
- assignees: string[];
229
- author?: string | undefined;
230
- body: string | null;
231
- comments: number;
232
- labels: string[];
233
- note?: string | undefined;
234
- number: number;
235
- state: string;
236
- subscribable?: {
237
- identifier: string;
238
- label: string;
239
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
240
- namespace: string;
241
- suggested_events?: string[] | undefined;
242
- supported_events: string[];
243
- type: string;
244
- } | undefined;
245
- title: string;
246
- url: string;
247
- target: "getIssue";
248
- }>;