@sentry/junior-vercel 0.313.0 → 0.315.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.
@@ -142,7 +142,7 @@ const vercelDeploymentTool = definePluginTool({
142
142
  const parsed = await readJson(response);
143
143
  if (!response.ok) {
144
144
  const message = `Vercel project lookup failed with HTTP ${response.status}`;
145
- if (response.status === 404) throw new PluginToolInputError(message);
145
+ if (response.status === 404) throw new PluginToolInputError(`${message}. Check project, and set team when the project belongs to a team.`);
146
146
  throw new Error(message);
147
147
  }
148
148
  const projectId = z.object({ id: vercelProjectIdSchema }).parse(parsed).id;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as VERCEL_DEPLOYMENT_MATCH_FIELDS, i as VERCEL_DEPLOYMENT_EVENTS, o as VERCEL_DEPLOYMENT_SUGGESTED_EVENTS, r as vercelDeploymentTool, t as createVercelWebhookRoute } from "./handler-yrda69iT.js";
1
+ import { a as VERCEL_DEPLOYMENT_MATCH_FIELDS, i as VERCEL_DEPLOYMENT_EVENTS, o as VERCEL_DEPLOYMENT_SUGGESTED_EVENTS, r as vercelDeploymentTool, t as createVercelWebhookRoute } from "./handler-BXN5t4qw.js";
2
2
  import { PluginToolInputError, defineJuniorPlugin, definePluginTool, pluginToolOutputSchema } from "@sentry/junior-plugin-api";
3
3
  import * as z from "zod";
4
4
  // src/tool-support/vercel-api.ts
@@ -100,7 +100,7 @@ async function vercelRequest(egress, operation, path, scope, method = "GET", bod
100
100
  });
101
101
  if (!response.ok) {
102
102
  const message = `${operation} failed with HTTP ${response.status}`;
103
- if (response.status === 400 || response.status === 404) throw new PluginToolInputError(message);
103
+ if (response.status === 400 || response.status === 404) throw new PluginToolInputError(`${message}. Check the ids and names in the arguments.`);
104
104
  throw new Error(message);
105
105
  }
106
106
  if (response.status === 204) return void 0;
package/dist/testing.d.ts CHANGED
@@ -27,12 +27,12 @@ export declare const vercelDeploymentTool: import("@sentry/junior-plugin-api").P
27
27
  targetBranch?: string | undefined;
28
28
  reviewers?: string[] | undefined;
29
29
  review?: "approved" | "changes_requested" | "required" | undefined;
30
- checks?: {
30
+ checks?: "pending" | {
31
31
  passed: number;
32
32
  failed: number;
33
33
  pending: number;
34
34
  } | undefined;
35
- mergeable?: boolean | undefined;
35
+ mergeable?: "pending" | boolean | undefined;
36
36
  changedFiles?: number | undefined;
37
37
  additions?: number | undefined;
38
38
  deletions?: number | undefined;
@@ -227,12 +227,12 @@ export declare const vercelDeploymentTool: import("@sentry/junior-plugin-api").P
227
227
  targetBranch?: string | undefined;
228
228
  reviewers?: string[] | undefined;
229
229
  review?: "approved" | "changes_requested" | "required" | undefined;
230
- checks?: {
230
+ checks?: "pending" | {
231
231
  passed: number;
232
232
  failed: number;
233
233
  pending: number;
234
234
  } | undefined;
235
- mergeable?: boolean | undefined;
235
+ mergeable?: "pending" | boolean | undefined;
236
236
  changedFiles?: number | undefined;
237
237
  additions?: number | undefined;
238
238
  deletions?: number | undefined;
package/dist/testing.js CHANGED
@@ -1 +1 @@
1
- export { t as createVercelWebhookRoute, n as normalizeVercelEvents, r as vercelDeploymentTool } from "./handler-yrda69iT.js";
1
+ export { t as createVercelWebhookRoute, n as normalizeVercelEvents, r as vercelDeploymentTool } from "./handler-BXN5t4qw.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-vercel",
3
- "version": "0.313.0",
3
+ "version": "0.315.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -26,7 +26,7 @@
26
26
  "skills"
27
27
  ],
28
28
  "dependencies": {
29
- "@sentry/junior-plugin-api": "0.313.0",
29
+ "@sentry/junior-plugin-api": "0.315.0",
30
30
  "zod": "^4.6.7"
31
31
  },
32
32
  "devDependencies": {