@sentry/junior 0.15.0 → 0.15.2

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.
package/dist/app.js CHANGED
@@ -2058,9 +2058,18 @@ function getChannelConfigurationService(thread) {
2058
2058
  import {
2059
2059
  completeSimple,
2060
2060
  getEnvApiKey,
2061
- getModels
2061
+ getModels,
2062
+ registerApiProvider
2062
2063
  } from "@mariozechner/pi-ai";
2063
- import "@mariozechner/pi-ai/anthropic";
2064
+ import {
2065
+ streamAnthropic,
2066
+ streamSimpleAnthropic
2067
+ } from "@mariozechner/pi-ai/anthropic";
2068
+ registerApiProvider({
2069
+ api: "anthropic-messages",
2070
+ stream: streamAnthropic,
2071
+ streamSimple: streamSimpleAnthropic
2072
+ });
2064
2073
  var GATEWAY_PROVIDER = "vercel-ai-gateway";
2065
2074
  var GEN_AI_PROVIDER_NAME = GATEWAY_PROVIDER;
2066
2075
  var GEN_AI_OPERATION_CHAT = "chat";
package/dist/nitro.js CHANGED
@@ -17,6 +17,13 @@ function juniorNitro(options = {}) {
17
17
  nitro.options.vercel ??= {};
18
18
  nitro.options.vercel.functions ??= {};
19
19
  nitro.options.vercel.functions.maxDuration ??= options.maxDuration ?? 800;
20
+ nitro.options.rolldownConfig = {
21
+ ...nitro.options.rolldownConfig,
22
+ treeshake: {
23
+ ...nitro.options.rolldownConfig?.treeshake,
24
+ moduleSideEffects: true
25
+ }
26
+ };
20
27
  nitro.options.virtual["#junior/config"] = `export const pluginPackages = ${JSON.stringify(options.pluginPackages ?? [])};`;
21
28
  nitro.hooks.hook("compiled", () => {
22
29
  copyAppAndPluginContent(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"