@sentry/junior 0.9.0 → 0.9.1

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.
@@ -247,19 +247,18 @@ function getVercelSandboxCredentials() {
247
247
  const token = toOptionalTrimmed2(process.env.VERCEL_TOKEN);
248
248
  const teamId = toOptionalTrimmed2(process.env.VERCEL_TEAM_ID);
249
249
  const projectId = toOptionalTrimmed2(process.env.VERCEL_PROJECT_ID);
250
- if (!token && !teamId && !projectId) {
250
+ if (token && teamId && projectId) {
251
+ return { token, teamId, projectId };
252
+ }
253
+ if (toOptionalTrimmed2(process.env.VERCEL_OIDC_TOKEN)) {
251
254
  return void 0;
252
255
  }
253
- if (!token || !teamId || !projectId) {
256
+ if (token || teamId || projectId) {
254
257
  throw new Error(
255
- "Missing Vercel Sandbox credentials: set VERCEL_TOKEN, VERCEL_TEAM_ID, and VERCEL_PROJECT_ID together."
258
+ "Missing Vercel Sandbox credentials: set VERCEL_TOKEN, VERCEL_TEAM_ID, and VERCEL_PROJECT_ID together, or provide VERCEL_OIDC_TOKEN."
256
259
  );
257
260
  }
258
- return {
259
- token,
260
- teamId,
261
- projectId
262
- };
261
+ return void 0;
263
262
  }
264
263
 
265
264
  // src/chat/sandbox/paths.ts
@@ -26,7 +26,7 @@ import {
26
26
  resolveRuntimeDependencySnapshot,
27
27
  runNonInteractiveCommand,
28
28
  sandboxSkillDir
29
- } from "./chunk-IJVZEV3K.js";
29
+ } from "./chunk-7GLBFSWP.js";
30
30
  import {
31
31
  CredentialUnavailableError,
32
32
  createPluginBroker,
@@ -12,7 +12,7 @@ import {
12
12
  import { after } from "next/server";
13
13
  import * as Sentry from "@sentry/nextjs";
14
14
  async function loadBot() {
15
- const { bot } = await import("./production-XMCJXOOI.js");
15
+ const { bot } = await import("./production-PPQEQOPO.js");
16
16
  return bot;
17
17
  }
18
18
  async function POST(request, context) {
@@ -7,11 +7,11 @@ import {
7
7
  getThreadMessageTopic,
8
8
  removeReactionFromMessage,
9
9
  slackRuntime
10
- } from "./chunk-DIMXJUSL.js";
10
+ } from "./chunk-JNHYSCAO.js";
11
11
  import {
12
12
  getConnectedStateContext,
13
13
  getStateAdapter
14
- } from "./chunk-IJVZEV3K.js";
14
+ } from "./chunk-7GLBFSWP.js";
15
15
  import {
16
16
  createRequestContext,
17
17
  logError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  disconnectStateAdapter,
3
3
  resolveRuntimeDependencySnapshot
4
- } from "../chunk-IJVZEV3K.js";
4
+ } from "../chunk-7GLBFSWP.js";
5
5
  import {
6
6
  getPluginProviders,
7
7
  getPluginRuntimeDependencies,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  POST
3
- } from "../chunk-4G2LA7RO.js";
4
- import "../chunk-DIMXJUSL.js";
3
+ } from "../chunk-UPCIISWE.js";
4
+ import "../chunk-JNHYSCAO.js";
5
5
  import "../chunk-VM3CPAZF.js";
6
- import "../chunk-IJVZEV3K.js";
6
+ import "../chunk-7GLBFSWP.js";
7
7
  import "../chunk-ZBWWHP6Q.js";
8
8
  import "../chunk-KCLEEKYX.js";
9
9
  import "../chunk-ZW4OVKF5.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  POST as POST2
3
- } from "../chunk-I3DYWLM6.js";
3
+ } from "../chunk-T7BIFBYH.js";
4
4
  import {
5
5
  POST
6
- } from "../chunk-4G2LA7RO.js";
6
+ } from "../chunk-UPCIISWE.js";
7
7
  import {
8
8
  buildConversationContext,
9
9
  buildSlackOutputMessage,
@@ -31,7 +31,7 @@ import {
31
31
  updateConversationStats,
32
32
  uploadFilesToThread,
33
33
  upsertConversationMessage
34
- } from "../chunk-DIMXJUSL.js";
34
+ } from "../chunk-JNHYSCAO.js";
35
35
  import {
36
36
  GET
37
37
  } from "../chunk-4RBEYCOG.js";
@@ -39,7 +39,7 @@ import "../chunk-VM3CPAZF.js";
39
39
  import {
40
40
  botConfig,
41
41
  getStateAdapter
42
- } from "../chunk-IJVZEV3K.js";
42
+ } from "../chunk-7GLBFSWP.js";
43
43
  import {
44
44
  buildOAuthTokenRequest,
45
45
  getPluginOAuthConfig,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  POST
3
- } from "../chunk-I3DYWLM6.js";
3
+ } from "../chunk-T7BIFBYH.js";
4
4
  import "../chunk-ZW4OVKF5.js";
5
5
  export {
6
6
  POST
@@ -2,9 +2,9 @@ import {
2
2
  bot,
3
3
  createNormalizingStream,
4
4
  slackRuntime
5
- } from "./chunk-DIMXJUSL.js";
5
+ } from "./chunk-JNHYSCAO.js";
6
6
  import "./chunk-VM3CPAZF.js";
7
- import "./chunk-IJVZEV3K.js";
7
+ import "./chunk-7GLBFSWP.js";
8
8
  import "./chunk-ZBWWHP6Q.js";
9
9
  import "./chunk-KCLEEKYX.js";
10
10
  import "./chunk-ZW4OVKF5.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"