@sentry/junior 0.34.0 → 0.36.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.
@@ -261,6 +261,14 @@ async function completeObject(params) {
261
261
  var MIN_AGENT_TURN_TIMEOUT_MS = 10 * 1e3;
262
262
  var DEFAULT_AGENT_TURN_TIMEOUT_MS = 12 * 60 * 1e3;
263
263
  var DEFAULT_FUNCTION_MAX_DURATION_SECONDS = 800;
264
+ var ADVISOR_THINKING_LEVELS = [
265
+ "minimal",
266
+ "low",
267
+ "medium",
268
+ "high",
269
+ "xhigh"
270
+ ];
271
+ var DEFAULT_ADVISOR_THINKING_LEVEL = "xhigh";
264
272
  var FUNCTION_TIMEOUT_BUFFER_SECONDS = 20;
265
273
  var DEFAULT_ASSISTANT_LOADING_MESSAGES = [
266
274
  "Consulting the orb",
@@ -319,17 +327,39 @@ function parseLoadingMessages(rawValue) {
319
327
  return value.trim();
320
328
  });
321
329
  }
330
+ function parseAdvisorThinkingLevel(rawValue) {
331
+ const value = toOptionalTrimmed(rawValue);
332
+ if (!value) {
333
+ return DEFAULT_ADVISOR_THINKING_LEVEL;
334
+ }
335
+ if (ADVISOR_THINKING_LEVELS.includes(value)) {
336
+ return value;
337
+ }
338
+ throw new Error(
339
+ `AI_ADVISOR_THINKING_LEVEL must be one of: minimal, low, medium, high, xhigh`
340
+ );
341
+ }
322
342
  var DEFAULT_MODEL_ID = getModel("vercel-ai-gateway", "openai/gpt-5.4").id;
323
343
  var DEFAULT_FAST_MODEL_ID = getModel(
324
344
  "vercel-ai-gateway",
325
345
  "openai/gpt-5.4-mini"
326
346
  ).id;
347
+ var DEFAULT_ADVISOR_MODEL_ID = getModel(
348
+ "vercel-ai-gateway",
349
+ "openai/gpt-5.5"
350
+ ).id;
327
351
  function validateGatewayModelId(raw) {
328
352
  const trimmed = toOptionalTrimmed(raw);
329
353
  if (trimmed === void 0) return void 0;
330
354
  resolveGatewayModel(trimmed);
331
355
  return trimmed;
332
356
  }
357
+ function readAdvisorConfig(env) {
358
+ return {
359
+ modelId: validateGatewayModelId(env.AI_ADVISOR_MODEL) ?? DEFAULT_ADVISOR_MODEL_ID,
360
+ thinkingLevel: parseAdvisorThinkingLevel(env.AI_ADVISOR_THINKING_LEVEL)
361
+ };
362
+ }
333
363
  function readBotConfig(env) {
334
364
  const functionMaxDurationSeconds = resolveFunctionMaxDurationSeconds(env);
335
365
  const maxTurnTimeoutMs = resolveMaxTurnTimeoutMs(functionMaxDurationSeconds);
@@ -342,7 +372,8 @@ function readBotConfig(env) {
342
372
  turnTimeoutMs: parseAgentTurnTimeoutMs(
343
373
  env.AGENT_TURN_TIMEOUT_MS,
344
374
  maxTurnTimeoutMs
345
- )
375
+ ),
376
+ advisor: readAdvisorConfig(env)
346
377
  };
347
378
  }
348
379
  function readChatConfig(env = process.env) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  disconnectStateAdapter,
3
3
  resolveRuntimeDependencySnapshot
4
- } from "../chunk-HZIJ4BSE.js";
4
+ } from "../chunk-ERH4OYNB.js";
5
5
  import {
6
6
  getPluginProviders,
7
7
  getPluginRuntimeDependencies,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,41 +20,41 @@
20
20
  "bin"
21
21
  ],
22
22
  "dependencies": {
23
- "@ai-sdk/gateway": "^3.0.99",
24
- "@chat-adapter/slack": "4.26.0",
25
- "@chat-adapter/state-memory": "4.26.0",
26
- "@chat-adapter/state-redis": "4.26.0",
27
- "@logtape/logtape": "^2.0.5",
28
- "@mariozechner/pi-agent-core": "0.68.1",
29
- "@mariozechner/pi-ai": "0.68.1",
23
+ "@ai-sdk/gateway": "^3.0.110",
24
+ "@chat-adapter/slack": "4.27.0",
25
+ "@chat-adapter/state-memory": "4.27.0",
26
+ "@chat-adapter/state-redis": "4.27.0",
27
+ "@logtape/logtape": "^2.0.7",
28
+ "@mariozechner/pi-agent-core": "0.73.0",
29
+ "@mariozechner/pi-ai": "0.73.0",
30
30
  "@modelcontextprotocol/sdk": "1.29.0",
31
31
  "@sinclair/typebox": "^0.34.49",
32
- "@slack/web-api": "^7.15.1",
33
- "@vercel/functions": "^3.4.3",
32
+ "@slack/web-api": "^7.15.2",
33
+ "@vercel/functions": "^3.5.0",
34
34
  "@vercel/sandbox": "^1.10.0",
35
- "ai": "^6.0.162",
35
+ "ai": "^6.0.175",
36
36
  "bash-tool": "^1.3.16",
37
- "chat": "4.26.0",
38
- "hono": "^4.12.14",
39
- "just-bash": "^2.14.2",
37
+ "chat": "4.27.0",
38
+ "hono": "^4.12.18",
39
+ "just-bash": "2.14.2",
40
40
  "node-html-markdown": "^2.0.0",
41
- "yaml": "^2.8.3",
42
- "zod": "^4.3.6"
41
+ "yaml": "^2.8.4",
42
+ "zod": "^4.4.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@sentry/node": ">=10.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@sentry/node": "^10.48.0",
48
+ "@sentry/node": "^10.51.0",
49
49
  "@types/node": "^25.6.0",
50
- "dependency-cruiser": "^17.3.10",
51
- "msw": "^2.13.3",
52
- "nitro": "3.0.260415-beta",
53
- "oxlint": "^1.60.0",
50
+ "dependency-cruiser": "^17.4.0",
51
+ "msw": "^2.14.3",
52
+ "nitro": "3.0.260429-beta",
53
+ "oxlint": "^1.63.0",
54
54
  "tsup": "^8.5.1",
55
55
  "typescript": "^5.9.3",
56
56
  "vercel": "^51.4.0",
57
- "vitest": "^4.1.4"
57
+ "vitest": "^4.1.5"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "tsup",