@sentry/junior-vercel 0.256.0 → 0.258.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.
@@ -3,25 +3,17 @@ import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
3
3
  export declare function createVercelActionTools(ctx: ToolRegistrationHookContext): {
4
4
  deploymentCreate: import("@sentry/junior-plugin-api").PluginToolDefinition<{
5
5
  project: string;
6
- ref: string;
7
6
  team?: string | undefined;
7
+ ref: string;
8
8
  commitSha?: string | undefined;
9
9
  target?: "preview" | "production" | undefined;
10
10
  }, {
11
11
  [x: string]: unknown;
12
- target: "deployment";
13
- deploymentId: string;
14
- url: string;
15
- state: string;
16
- deploymentTarget: string | null;
17
- projectId: string | null;
18
- commitSha: string | null;
19
- ref: string | null;
20
12
  objectAnnotations?: {
21
13
  kind: "object";
22
14
  key: string;
23
15
  label: string;
24
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
16
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
25
17
  title: string;
26
18
  url: string | null;
27
19
  description?: string | undefined;
@@ -36,7 +28,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
36
28
  sourceBranch?: string | undefined;
37
29
  targetBranch?: string | undefined;
38
30
  reviewers?: string[] | undefined;
39
- review?: "required" | "approved" | "changes_requested" | undefined;
31
+ review?: "approved" | "changes_requested" | "required" | undefined;
40
32
  checks?: {
41
33
  passed: number;
42
34
  failed: number;
@@ -71,8 +63,6 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
71
63
  arguments: Record<string, unknown>;
72
64
  reason?: string | undefined;
73
65
  } | undefined;
74
- }, {
75
- [x: string]: unknown;
76
66
  target: "deployment";
77
67
  deploymentId: string;
78
68
  url: string;
@@ -81,11 +71,13 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
81
71
  projectId: string | null;
82
72
  commitSha: string | null;
83
73
  ref: string | null;
74
+ }, {
75
+ [x: string]: unknown;
84
76
  objectAnnotations?: {
85
77
  kind: "object";
86
78
  key: string;
87
79
  label: string;
88
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
80
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
89
81
  title: string;
90
82
  url: string | null;
91
83
  description?: string | undefined;
@@ -100,7 +92,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
100
92
  sourceBranch?: string | undefined;
101
93
  targetBranch?: string | undefined;
102
94
  reviewers?: string[] | undefined;
103
- review?: "required" | "approved" | "changes_requested" | undefined;
95
+ review?: "approved" | "changes_requested" | "required" | undefined;
104
96
  checks?: {
105
97
  passed: number;
106
98
  failed: number;
@@ -135,12 +127,6 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
135
127
  arguments: Record<string, unknown>;
136
128
  reason?: string | undefined;
137
129
  } | undefined;
138
- }>;
139
- deploymentInspect: import("@sentry/junior-plugin-api").PluginToolDefinition<{
140
- deployment: string;
141
- team?: string | undefined;
142
- }, {
143
- [x: string]: unknown;
144
130
  target: "deployment";
145
131
  deploymentId: string;
146
132
  url: string;
@@ -149,11 +135,17 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
149
135
  projectId: string | null;
150
136
  commitSha: string | null;
151
137
  ref: string | null;
138
+ }>;
139
+ deploymentInspect: import("@sentry/junior-plugin-api").PluginToolDefinition<{
140
+ deployment: string;
141
+ team?: string | undefined;
142
+ }, {
143
+ [x: string]: unknown;
152
144
  objectAnnotations?: {
153
145
  kind: "object";
154
146
  key: string;
155
147
  label: string;
156
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
148
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
157
149
  title: string;
158
150
  url: string | null;
159
151
  description?: string | undefined;
@@ -168,7 +160,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
168
160
  sourceBranch?: string | undefined;
169
161
  targetBranch?: string | undefined;
170
162
  reviewers?: string[] | undefined;
171
- review?: "required" | "approved" | "changes_requested" | undefined;
163
+ review?: "approved" | "changes_requested" | "required" | undefined;
172
164
  checks?: {
173
165
  passed: number;
174
166
  failed: number;
@@ -203,8 +195,6 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
203
195
  arguments: Record<string, unknown>;
204
196
  reason?: string | undefined;
205
197
  } | undefined;
206
- }, {
207
- [x: string]: unknown;
208
198
  target: "deployment";
209
199
  deploymentId: string;
210
200
  url: string;
@@ -213,11 +203,13 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
213
203
  projectId: string | null;
214
204
  commitSha: string | null;
215
205
  ref: string | null;
206
+ }, {
207
+ [x: string]: unknown;
216
208
  objectAnnotations?: {
217
209
  kind: "object";
218
210
  key: string;
219
211
  label: string;
220
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
212
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
221
213
  title: string;
222
214
  url: string | null;
223
215
  description?: string | undefined;
@@ -232,7 +224,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
232
224
  sourceBranch?: string | undefined;
233
225
  targetBranch?: string | undefined;
234
226
  reviewers?: string[] | undefined;
235
- review?: "required" | "approved" | "changes_requested" | undefined;
227
+ review?: "approved" | "changes_requested" | "required" | undefined;
236
228
  checks?: {
237
229
  passed: number;
238
230
  failed: number;
@@ -267,6 +259,14 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
267
259
  arguments: Record<string, unknown>;
268
260
  reason?: string | undefined;
269
261
  } | undefined;
262
+ target: "deployment";
263
+ deploymentId: string;
264
+ url: string;
265
+ state: string;
266
+ deploymentTarget: string | null;
267
+ projectId: string | null;
268
+ commitSha: string | null;
269
+ ref: string | null;
270
270
  }>;
271
271
  aliasAssign: import("@sentry/junior-plugin-api").PluginToolDefinition<{
272
272
  deploymentId: string;
@@ -274,16 +274,11 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
274
274
  team?: string | undefined;
275
275
  }, {
276
276
  [x: string]: unknown;
277
- target: "alias";
278
- alias: string;
279
- deploymentId: string | null;
280
- redirect: string | null;
281
- matches: boolean;
282
277
  objectAnnotations?: {
283
278
  kind: "object";
284
279
  key: string;
285
280
  label: string;
286
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
281
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
287
282
  title: string;
288
283
  url: string | null;
289
284
  description?: string | undefined;
@@ -298,7 +293,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
298
293
  sourceBranch?: string | undefined;
299
294
  targetBranch?: string | undefined;
300
295
  reviewers?: string[] | undefined;
301
- review?: "required" | "approved" | "changes_requested" | undefined;
296
+ review?: "approved" | "changes_requested" | "required" | undefined;
302
297
  checks?: {
303
298
  passed: number;
304
299
  failed: number;
@@ -333,18 +328,18 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
333
328
  arguments: Record<string, unknown>;
334
329
  reason?: string | undefined;
335
330
  } | undefined;
336
- }, {
337
- [x: string]: unknown;
338
331
  target: "alias";
339
332
  alias: string;
340
333
  deploymentId: string | null;
341
334
  redirect: string | null;
342
335
  matches: boolean;
336
+ }, {
337
+ [x: string]: unknown;
343
338
  objectAnnotations?: {
344
339
  kind: "object";
345
340
  key: string;
346
341
  label: string;
347
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
342
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
348
343
  title: string;
349
344
  url: string | null;
350
345
  description?: string | undefined;
@@ -359,7 +354,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
359
354
  sourceBranch?: string | undefined;
360
355
  targetBranch?: string | undefined;
361
356
  reviewers?: string[] | undefined;
362
- review?: "required" | "approved" | "changes_requested" | undefined;
357
+ review?: "approved" | "changes_requested" | "required" | undefined;
363
358
  checks?: {
364
359
  passed: number;
365
360
  failed: number;
@@ -394,21 +389,22 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
394
389
  arguments: Record<string, unknown>;
395
390
  reason?: string | undefined;
396
391
  } | undefined;
392
+ target: "alias";
393
+ alias: string;
394
+ deploymentId: string | null;
395
+ redirect: string | null;
396
+ matches: boolean;
397
397
  }>;
398
398
  aliasInspect: import("@sentry/junior-plugin-api").PluginToolDefinition<{
399
399
  alias: string;
400
400
  team?: string | undefined;
401
401
  }, {
402
402
  [x: string]: unknown;
403
- target: "alias";
404
- alias: string;
405
- deploymentId: string | null;
406
- redirect: string | null;
407
403
  objectAnnotations?: {
408
404
  kind: "object";
409
405
  key: string;
410
406
  label: string;
411
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
407
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
412
408
  title: string;
413
409
  url: string | null;
414
410
  description?: string | undefined;
@@ -423,7 +419,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
423
419
  sourceBranch?: string | undefined;
424
420
  targetBranch?: string | undefined;
425
421
  reviewers?: string[] | undefined;
426
- review?: "required" | "approved" | "changes_requested" | undefined;
422
+ review?: "approved" | "changes_requested" | "required" | undefined;
427
423
  checks?: {
428
424
  passed: number;
429
425
  failed: number;
@@ -458,17 +454,17 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
458
454
  arguments: Record<string, unknown>;
459
455
  reason?: string | undefined;
460
456
  } | undefined;
461
- }, {
462
- [x: string]: unknown;
463
457
  target: "alias";
464
458
  alias: string;
465
459
  deploymentId: string | null;
466
460
  redirect: string | null;
461
+ }, {
462
+ [x: string]: unknown;
467
463
  objectAnnotations?: {
468
464
  kind: "object";
469
465
  key: string;
470
466
  label: string;
471
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
467
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
472
468
  title: string;
473
469
  url: string | null;
474
470
  description?: string | undefined;
@@ -483,7 +479,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
483
479
  sourceBranch?: string | undefined;
484
480
  targetBranch?: string | undefined;
485
481
  reviewers?: string[] | undefined;
486
- review?: "required" | "approved" | "changes_requested" | undefined;
482
+ review?: "approved" | "changes_requested" | "required" | undefined;
487
483
  checks?: {
488
484
  passed: number;
489
485
  failed: number;
@@ -518,20 +514,21 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
518
514
  arguments: Record<string, unknown>;
519
515
  reason?: string | undefined;
520
516
  } | undefined;
517
+ target: "alias";
518
+ alias: string;
519
+ deploymentId: string | null;
520
+ redirect: string | null;
521
521
  }>;
522
522
  deploymentDelete: import("@sentry/junior-plugin-api").PluginToolDefinition<{
523
523
  deploymentId: string;
524
524
  team?: string | undefined;
525
525
  }, {
526
526
  [x: string]: unknown;
527
- target: "deployment";
528
- deploymentId: string;
529
- deleted: true;
530
527
  objectAnnotations?: {
531
528
  kind: "object";
532
529
  key: string;
533
530
  label: string;
534
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
531
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
535
532
  title: string;
536
533
  url: string | null;
537
534
  description?: string | undefined;
@@ -546,7 +543,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
546
543
  sourceBranch?: string | undefined;
547
544
  targetBranch?: string | undefined;
548
545
  reviewers?: string[] | undefined;
549
- review?: "required" | "approved" | "changes_requested" | undefined;
546
+ review?: "approved" | "changes_requested" | "required" | undefined;
550
547
  checks?: {
551
548
  passed: number;
552
549
  failed: number;
@@ -581,16 +578,16 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
581
578
  arguments: Record<string, unknown>;
582
579
  reason?: string | undefined;
583
580
  } | undefined;
584
- }, {
585
- [x: string]: unknown;
586
581
  target: "deployment";
587
582
  deploymentId: string;
588
583
  deleted: true;
584
+ }, {
585
+ [x: string]: unknown;
589
586
  objectAnnotations?: {
590
587
  kind: "object";
591
588
  key: string;
592
589
  label: string;
593
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
590
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
594
591
  title: string;
595
592
  url: string | null;
596
593
  description?: string | undefined;
@@ -605,7 +602,7 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
605
602
  sourceBranch?: string | undefined;
606
603
  targetBranch?: string | undefined;
607
604
  reviewers?: string[] | undefined;
608
- review?: "required" | "approved" | "changes_requested" | undefined;
605
+ review?: "approved" | "changes_requested" | "required" | undefined;
609
606
  checks?: {
610
607
  passed: number;
611
608
  failed: number;
@@ -640,5 +637,8 @@ export declare function createVercelActionTools(ctx: ToolRegistrationHookContext
640
637
  arguments: Record<string, unknown>;
641
638
  reason?: string | undefined;
642
639
  } | undefined;
640
+ target: "deployment";
641
+ deploymentId: string;
642
+ deleted: true;
643
643
  }>;
644
644
  };
@@ -1,20 +1,16 @@
1
1
  import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
2
2
  /** Resolve and return the resource identity for one Vercel deployment. */
3
3
  export declare function createVercelDeploymentTool(ctx: ToolRegistrationHookContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- project: string;
5
4
  commitSha?: string | undefined;
5
+ project: string;
6
6
  target?: "preview" | "production" | "staging" | undefined;
7
7
  team?: string | undefined;
8
8
  }, {
9
- commitSha: string | null;
10
- deploymentTarget: "preview" | "production" | "staging" | null;
11
- projectId: string;
12
- target: "deployment";
13
9
  objectAnnotations?: {
14
10
  kind: "object";
15
11
  key: string;
16
12
  label: string;
17
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
13
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
18
14
  title: string;
19
15
  url: string | null;
20
16
  description?: string | undefined;
@@ -29,7 +25,7 @@ export declare function createVercelDeploymentTool(ctx: ToolRegistrationHookCont
29
25
  sourceBranch?: string | undefined;
30
26
  targetBranch?: string | undefined;
31
27
  reviewers?: string[] | undefined;
32
- review?: "required" | "approved" | "changes_requested" | undefined;
28
+ review?: "approved" | "changes_requested" | "required" | undefined;
33
29
  checks?: {
34
30
  passed: number;
35
31
  failed: number;
@@ -64,24 +60,24 @@ export declare function createVercelDeploymentTool(ctx: ToolRegistrationHookCont
64
60
  arguments: Record<string, unknown>;
65
61
  reason?: string | undefined;
66
62
  } | undefined;
63
+ commitSha: string | null;
64
+ deploymentTarget: "preview" | "production" | "staging" | null;
65
+ projectId: string;
67
66
  subscribable?: {
68
67
  identifier: string;
69
68
  label: string;
70
69
  namespace: string;
70
+ suggestedEvents?: string[] | undefined;
71
71
  supportedEvents: string[];
72
72
  type: string;
73
- suggestedEvents?: string[] | undefined;
74
73
  } | undefined;
75
- }, {
76
- commitSha: string | null;
77
- deploymentTarget: "preview" | "production" | "staging" | null;
78
- projectId: string;
79
74
  target: "deployment";
75
+ }, {
80
76
  objectAnnotations?: {
81
77
  kind: "object";
82
78
  key: string;
83
79
  label: string;
84
- objectType: "deployment" | "code_change" | "task" | "calendar_event" | "automation" | "item";
80
+ objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
85
81
  title: string;
86
82
  url: string | null;
87
83
  description?: string | undefined;
@@ -96,7 +92,7 @@ export declare function createVercelDeploymentTool(ctx: ToolRegistrationHookCont
96
92
  sourceBranch?: string | undefined;
97
93
  targetBranch?: string | undefined;
98
94
  reviewers?: string[] | undefined;
99
- review?: "required" | "approved" | "changes_requested" | undefined;
95
+ review?: "approved" | "changes_requested" | "required" | undefined;
100
96
  checks?: {
101
97
  passed: number;
102
98
  failed: number;
@@ -131,12 +127,16 @@ export declare function createVercelDeploymentTool(ctx: ToolRegistrationHookCont
131
127
  arguments: Record<string, unknown>;
132
128
  reason?: string | undefined;
133
129
  } | undefined;
130
+ commitSha: string | null;
131
+ deploymentTarget: "preview" | "production" | "staging" | null;
132
+ projectId: string;
134
133
  subscribable?: {
135
134
  identifier: string;
136
135
  label: string;
137
136
  namespace: string;
137
+ suggestedEvents?: string[] | undefined;
138
138
  supportedEvents: string[];
139
139
  type: string;
140
- suggestedEvents?: string[] | undefined;
141
140
  } | undefined;
141
+ target: "deployment";
142
142
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-vercel",
3
- "version": "0.256.0",
3
+ "version": "0.258.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,14 +27,14 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "zod": "^4.5.4",
30
- "@sentry/junior-plugin-api": "0.256.0"
30
+ "@sentry/junior-plugin-api": "0.258.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@oxlint/plugins": "1.79.0",
34
34
  "@types/node": "^25.9.1",
35
35
  "oxlint": "^1.79.0",
36
36
  "tsup": "^8.5.1",
37
- "typescript": "^6.0.3",
37
+ "typescript": "^7.0.2",
38
38
  "vitest": "^4.1.7"
39
39
  },
40
40
  "scripts": {