@sentry/junior 0.23.0 → 0.24.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.
- package/dist/app.js +1322 -1178
- package/dist/{chunk-MCJJKEB3.js → chunk-I3WA75AD.js} +29 -1
- package/dist/{chunk-JWBWBJYJ.js → chunk-O5N42P7K.js} +1 -1
- package/dist/{chunk-THPM7NSG.js → chunk-RMVXZMXQ.js} +1 -1
- package/dist/cli/check.js +2 -2
- package/dist/cli/snapshot-warmup.js +2 -2
- package/package.json +19 -19
|
@@ -653,6 +653,18 @@ function getPrettyConsoleSummaryTokens(level, eventName, attributes) {
|
|
|
653
653
|
attributes["app.message.attachment_count"]
|
|
654
654
|
)
|
|
655
655
|
);
|
|
656
|
+
const rawAttachmentCount = toOptionalNumber(
|
|
657
|
+
attributes["app.message.attachment_count"]
|
|
658
|
+
);
|
|
659
|
+
const promptAttachmentCount = toOptionalNumber(
|
|
660
|
+
attributes["app.message.prompt_attachment_count"]
|
|
661
|
+
);
|
|
662
|
+
if (promptAttachmentCount !== void 0 && promptAttachmentCount !== rawAttachmentCount) {
|
|
663
|
+
pushPrettyConsoleToken(
|
|
664
|
+
tokens,
|
|
665
|
+
numericConsoleToken("prompt_attachments", promptAttachmentCount)
|
|
666
|
+
);
|
|
667
|
+
}
|
|
656
668
|
const filePath = toOptionalString(attributes["file.path"]);
|
|
657
669
|
if (filePath && eventName.endsWith("_loaded")) {
|
|
658
670
|
pushPrettyConsoleToken(tokens, toRelativeConsolePath(filePath));
|
|
@@ -1224,7 +1236,7 @@ function collectUsageRoots(source) {
|
|
|
1224
1236
|
}
|
|
1225
1237
|
return roots;
|
|
1226
1238
|
}
|
|
1227
|
-
function
|
|
1239
|
+
function extractGenAiUsageSummary(...sources) {
|
|
1228
1240
|
const roots = sources.flatMap((source) => collectUsageRoots(source));
|
|
1229
1241
|
if (roots.length === 0) {
|
|
1230
1242
|
return {};
|
|
@@ -1249,6 +1261,21 @@ function extractGenAiUsageAttributes(...sources) {
|
|
|
1249
1261
|
"completionTokenCount"
|
|
1250
1262
|
])
|
|
1251
1263
|
).find((value) => value !== void 0) ?? void 0;
|
|
1264
|
+
const totalTokens = roots.map(
|
|
1265
|
+
(root) => readTokenCount(root, [
|
|
1266
|
+
"total_tokens",
|
|
1267
|
+
"totalTokens",
|
|
1268
|
+
"totalTokenCount"
|
|
1269
|
+
])
|
|
1270
|
+
).find((value) => value !== void 0) ?? void 0;
|
|
1271
|
+
return {
|
|
1272
|
+
...inputTokens !== void 0 ? { inputTokens } : {},
|
|
1273
|
+
...outputTokens !== void 0 ? { outputTokens } : {},
|
|
1274
|
+
...totalTokens !== void 0 ? { totalTokens } : {}
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
function extractGenAiUsageAttributes(...sources) {
|
|
1278
|
+
const { inputTokens, outputTokens } = extractGenAiUsageSummary(...sources);
|
|
1252
1279
|
return {
|
|
1253
1280
|
...inputTokens !== void 0 ? { "gen_ai.usage.input_tokens": inputTokens } : {},
|
|
1254
1281
|
...outputTokens !== void 0 ? { "gen_ai.usage.output_tokens": outputTokens } : {}
|
|
@@ -2777,6 +2804,7 @@ export {
|
|
|
2777
2804
|
getActiveTraceId,
|
|
2778
2805
|
resolveErrorReference,
|
|
2779
2806
|
serializeGenAiAttribute,
|
|
2807
|
+
extractGenAiUsageSummary,
|
|
2780
2808
|
extractGenAiUsageAttributes,
|
|
2781
2809
|
resolveAuthTokenPlaceholder,
|
|
2782
2810
|
parsePluginManifest,
|
package/dist/cli/check.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-O5N42P7K.js";
|
|
4
4
|
import {
|
|
5
5
|
parsePluginManifest
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-I3WA75AD.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-
|
|
4
|
+
} from "../chunk-RMVXZMXQ.js";
|
|
5
5
|
import {
|
|
6
6
|
getPluginProviders,
|
|
7
7
|
getPluginRuntimeDependencies,
|
|
8
8
|
getPluginRuntimePostinstall
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-I3WA75AD.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.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"bin"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ai-sdk/gateway": "^3.0.
|
|
24
|
-
"@chat-adapter/slack": "4.
|
|
25
|
-
"@chat-adapter/state-memory": "4.
|
|
26
|
-
"@chat-adapter/state-redis": "4.
|
|
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
27
|
"@logtape/logtape": "^2.0.5",
|
|
28
28
|
"@mariozechner/pi-agent-core": "0.59.0",
|
|
29
29
|
"@mariozechner/pi-ai": "0.59.0",
|
|
30
30
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
31
31
|
"@sinclair/typebox": "^0.34.49",
|
|
32
|
-
"@slack/web-api": "^7.15.
|
|
32
|
+
"@slack/web-api": "^7.15.1",
|
|
33
33
|
"@vercel/functions": "^3.4.3",
|
|
34
|
-
"@vercel/sandbox": "^1.
|
|
35
|
-
"ai": "^6.0.
|
|
36
|
-
"bash-tool": "^1.3.
|
|
37
|
-
"chat": "4.
|
|
38
|
-
"hono": "^4.12.
|
|
39
|
-
"just-bash": "^2.14.
|
|
34
|
+
"@vercel/sandbox": "^1.10.0",
|
|
35
|
+
"ai": "^6.0.162",
|
|
36
|
+
"bash-tool": "^1.3.16",
|
|
37
|
+
"chat": "4.26.0",
|
|
38
|
+
"hono": "^4.12.14",
|
|
39
|
+
"just-bash": "^2.14.2",
|
|
40
40
|
"node-html-markdown": "^2.0.0",
|
|
41
41
|
"yaml": "^2.8.3",
|
|
42
42
|
"zod": "^4.3.6"
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"@sentry/node": ">=10.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@sentry/node": "^10.
|
|
49
|
-
"@types/node": "^25.
|
|
48
|
+
"@sentry/node": "^10.48.0",
|
|
49
|
+
"@types/node": "^25.6.0",
|
|
50
50
|
"dependency-cruiser": "^17.3.10",
|
|
51
|
-
"msw": "^2.
|
|
52
|
-
"nitro": "3.0.
|
|
53
|
-
"oxlint": "^1.
|
|
51
|
+
"msw": "^2.13.3",
|
|
52
|
+
"nitro": "3.0.260415-beta",
|
|
53
|
+
"oxlint": "^1.60.0",
|
|
54
54
|
"tsup": "^8.5.1",
|
|
55
55
|
"typescript": "^5.9.3",
|
|
56
|
-
"vercel": "^
|
|
57
|
-
"vitest": "^4.1.
|
|
56
|
+
"vercel": "^51.4.0",
|
|
57
|
+
"vitest": "^4.1.4"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsup",
|