@sentry/junior 0.38.0 → 0.39.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.
@@ -2,7 +2,7 @@ import {
2
2
  getPluginForSkillPath,
3
3
  getPluginSkillRoots,
4
4
  logWarn
5
- } from "./chunk-QZRPUFO6.js";
5
+ } from "./chunk-EQPY4742.js";
6
6
  import {
7
7
  skillRoots
8
8
  } from "./chunk-XPXD3FCE.js";
@@ -7,7 +7,7 @@ import {
7
7
  serializeGenAiAttribute,
8
8
  setSpanAttributes,
9
9
  withSpan
10
- } from "./chunk-QZRPUFO6.js";
10
+ } from "./chunk-EQPY4742.js";
11
11
 
12
12
  // src/chat/state/adapter.ts
13
13
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -1114,18 +1114,9 @@ function getActiveTraceId() {
1114
1114
  return void 0;
1115
1115
  }
1116
1116
  }
1117
- function resolveErrorReference(eventId) {
1118
- const traceId = getActiveTraceId();
1119
- if (!eventId && !traceId) {
1120
- return null;
1121
- }
1122
- if (!traceId) {
1123
- return null;
1124
- }
1125
- return {
1126
- traceId,
1127
- ...eventId ? { eventId } : {}
1128
- };
1117
+ var TURN_FAILURE_RESPONSE_TEMPLATE = "I ran into an internal error while processing that. Reference: `event_id={eventId}`.";
1118
+ function buildTurnFailureResponse(eventId) {
1119
+ return TURN_FAILURE_RESPONSE_TEMPLATE.replace("{eventId}", eventId);
1129
1120
  }
1130
1121
  var GEN_AI_DEFAULT_MAX_ATTRIBUTE_CHARS = 12e3;
1131
1122
  var GEN_AI_MAX_STRING_CHARS = 2e3;
@@ -2908,7 +2899,7 @@ export {
2908
2899
  setSpanAttributes,
2909
2900
  setSpanStatus,
2910
2901
  getActiveTraceId,
2911
- resolveErrorReference,
2902
+ buildTurnFailureResponse,
2912
2903
  serializeGenAiAttribute,
2913
2904
  extractGenAiUsageSummary,
2914
2905
  extractGenAiUsageAttributes,
package/dist/cli/check.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  parseSkillFile
3
- } from "../chunk-LAD5O3RX.js";
3
+ } from "../chunk-7QMPV6YJ.js";
4
4
  import {
5
5
  parsePluginManifest
6
- } from "../chunk-QZRPUFO6.js";
6
+ } from "../chunk-EQPY4742.js";
7
7
  import "../chunk-Z3YD6NHK.js";
8
8
  import "../chunk-XPXD3FCE.js";
9
9
  import "../chunk-2KG3PWR4.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  disconnectStateAdapter,
3
3
  resolveRuntimeDependencySnapshot
4
- } from "../chunk-ERH4OYNB.js";
4
+ } from "../chunk-DVMGFG4W.js";
5
5
  import {
6
6
  getPluginProviders,
7
7
  getPluginRuntimeDependencies,
8
8
  getPluginRuntimePostinstall
9
- } from "../chunk-QZRPUFO6.js";
9
+ } from "../chunk-EQPY4742.js";
10
10
  import "../chunk-Z3YD6NHK.js";
11
11
  import "../chunk-XPXD3FCE.js";
12
12
  import "../chunk-2KG3PWR4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -45,7 +45,7 @@
45
45
  "@sentry/node": ">=10.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@sentry/node": "^10.51.0",
48
+ "@sentry/node": "10.50.0-alpha.0",
49
49
  "@types/node": "^25.6.0",
50
50
  "dependency-cruiser": "^17.4.0",
51
51
  "msw": "^2.14.3",