@sentry/junior-vercel 0.164.0 → 0.165.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.
@@ -48,6 +48,7 @@ function vercelWebhookSecret() {
48
48
  // src/tools/deployment.ts
49
49
  import {
50
50
  definePluginTool,
51
+ PluginToolInputError,
51
52
  pluginToolOutputSchema,
52
53
  subscribableResourceSchema
53
54
  } from "@sentry/junior-plugin-api";
@@ -118,9 +119,11 @@ function createVercelDeploymentTool(ctx) {
118
119
  });
119
120
  const parsed = await readJson(response);
120
121
  if (!response.ok) {
121
- throw new Error(
122
- `Vercel project lookup failed with HTTP ${response.status}`
123
- );
122
+ const message = `Vercel project lookup failed with HTTP ${response.status}`;
123
+ if (response.status === 404) {
124
+ throw new PluginToolInputError(message);
125
+ }
126
+ throw new Error(message);
124
127
  }
125
128
  const projectId = z2.object({ id: vercelProjectIdSchema }).parse(parsed).id;
126
129
  const commitSha2 = input.commitSha?.toLowerCase();
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createVercelDeploymentTool,
5
5
  createVercelWebhookRoute,
6
6
  vercelWebhookSecret
7
- } from "./chunk-5K3GVRRE.js";
7
+ } from "./chunk-ILTVLDNC.js";
8
8
 
9
9
  // src/index.ts
10
10
  import {
package/dist/testing.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createVercelDeploymentTool,
3
3
  createVercelWebhookRoute,
4
4
  normalizeVercelResourceEvents
5
- } from "./chunk-5K3GVRRE.js";
5
+ } from "./chunk-ILTVLDNC.js";
6
6
  export {
7
7
  createVercelDeploymentTool,
8
8
  createVercelWebhookRoute,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-vercel",
3
- "version": "0.164.0",
3
+ "version": "0.165.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "zod": "^4.4.3",
30
- "@sentry/junior-plugin-api": "0.164.0"
30
+ "@sentry/junior-plugin-api": "0.165.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^25.9.1",