@sentry/junior 0.150.1 → 0.152.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.
Files changed (77) hide show
  1. package/dist/{agent-hooks-G4LEACQB.js → agent-hooks-U66Q3X2P.js} +10 -10
  2. package/dist/api/schema/conversation.d.ts +35 -4
  3. package/dist/api/schema.d.ts +1 -1
  4. package/dist/api/schema.js +3 -1
  5. package/dist/api.js +81 -38
  6. package/dist/app.js +129 -206
  7. package/dist/{catalog-runtime-ZRSNE2MH.js → catalog-runtime-CVCR7SND.js} +5 -5
  8. package/dist/chat/agent/skills.d.ts +5 -4
  9. package/dist/chat/agent/tools.d.ts +5 -5
  10. package/dist/chat/api-turns/authorization.d.ts +23 -0
  11. package/dist/chat/conversations/history.d.ts +12 -3
  12. package/dist/chat/conversations/projection.d.ts +7 -3
  13. package/dist/chat/mcp/tool-manager.d.ts +0 -4
  14. package/dist/chat/runtime/agent-run-outcome.d.ts +4 -0
  15. package/dist/chat/tools/search-conversation-events.d.ts +1 -1
  16. package/dist/chat/tools/skill/call-mcp-tool.d.ts +0 -1
  17. package/dist/chat/tools/skill/load-skill.d.ts +2 -5
  18. package/dist/chat/tools/types.d.ts +1 -2
  19. package/dist/{chunk-2AWDPNP7.js → chunk-3PCKG4BT.js} +16 -10
  20. package/dist/{chunk-2Z7YX5PI.js → chunk-3UJ3QYRV.js} +156 -19
  21. package/dist/{chunk-IQW6RFXG.js → chunk-5LDOQV7Y.js} +72 -218
  22. package/dist/{chunk-JBYWR6FW.js → chunk-67VR4BJK.js} +5 -5
  23. package/dist/{chunk-5NOHC2Z4.js → chunk-732P2RBQ.js} +1 -1
  24. package/dist/{chunk-3WIFZBJL.js → chunk-7TZM33YX.js} +1 -1
  25. package/dist/{chunk-JVOLC6JZ.js → chunk-AYPU5T5L.js} +4 -4
  26. package/dist/{chunk-TZRYLW3R.js → chunk-CLX3T7Q3.js} +1 -1
  27. package/dist/{chunk-JUBPTYNO.js → chunk-ELAVLP7Z.js} +1 -1
  28. package/dist/{chunk-LSI3EKZQ.js → chunk-ETXLHT3S.js} +4 -4
  29. package/dist/{chunk-N6QJAPZS.js → chunk-I4LR7MS2.js} +45 -11
  30. package/dist/{chunk-6ZYGORV4.js → chunk-KC47ZY6Q.js} +2 -2
  31. package/dist/{chunk-6A24WEKX.js → chunk-KC5XZBRB.js} +4 -4
  32. package/dist/{chunk-D2PVJU5E.js → chunk-KTYC3GDO.js} +3 -3
  33. package/dist/{chunk-AD6N2KNE.js → chunk-KW2MGCW5.js} +5 -5
  34. package/dist/{chunk-QO3OSJDS.js → chunk-LETPYIDF.js} +1 -1
  35. package/dist/{chunk-6IWDFUXW.js → chunk-M6PWM3OK.js} +1 -1
  36. package/dist/{chunk-LWFHRWJI.js → chunk-N2472SQK.js} +8 -8
  37. package/dist/{chunk-QNSV46AW.js → chunk-NF733C66.js} +6 -6
  38. package/dist/{chunk-FGP5W3NS.js → chunk-OEECXAGT.js} +2 -2
  39. package/dist/{chunk-SZ74ECCC.js → chunk-QKPIW2CY.js} +6 -6
  40. package/dist/{chunk-4JV7GUUH.js → chunk-RCBAXKMB.js} +1 -1
  41. package/dist/{chunk-QZGYKKH6.js → chunk-SDMVFTH4.js} +173 -70
  42. package/dist/chunk-SFYDSI34.js +89 -0
  43. package/dist/{chunk-W3FQZAX5.js → chunk-TSQMITMQ.js} +6 -6
  44. package/dist/{chunk-IZE2EGCX.js → chunk-UFKSILED.js} +5 -5
  45. package/dist/{chunk-3JVUWLR7.js → chunk-UG5UCHHJ.js} +15 -1
  46. package/dist/{chunk-OWLJZ6I7.js → chunk-VD6CRYCT.js} +1 -1
  47. package/dist/{chunk-2DIRU2C2.js → chunk-WZN4RQ64.js} +1 -1
  48. package/dist/{chunk-KFHJQYKQ.js → chunk-X4RM4TBW.js} +1 -1
  49. package/dist/{chunk-B2YA2G26.js → chunk-X6JP6AMX.js} +1 -1
  50. package/dist/{chunk-GZ25ZSTX.js → chunk-XTLF7C4I.js} +11 -4
  51. package/dist/{chunk-R53UTQ2Q.js → chunk-Z5WLTGME.js} +1 -1
  52. package/dist/cli/chat.js +30 -30
  53. package/dist/cli/check.js +6 -6
  54. package/dist/cli/plugins.js +13 -13
  55. package/dist/cli/snapshot-create.js +9 -9
  56. package/dist/cli/upgrade.js +7 -7
  57. package/dist/{db-WRA5ZHYE.js → db-HQAZQASY.js} +7 -7
  58. package/dist/handlers/mcp-oauth-callback.d.ts +3 -0
  59. package/dist/handlers/oauth-callback.d.ts +3 -0
  60. package/dist/instrumentation.js +4 -4
  61. package/dist/nitro.js +2 -2
  62. package/dist/{oauth-callback-server-QWAYG3MI.js → oauth-callback-server-OJONZ7T3.js} +23 -24
  63. package/dist/{runner-5JQ54J6P.js → runner-BIJAVQDX.js} +14 -16
  64. package/dist/{skills-3YD55WPO.js → skills-SIPNY4AT.js} +6 -6
  65. package/dist/spawn-ABDIBQT6.js +38 -0
  66. package/dist/{validation-ZXE3IRSB.js → validation-KRPOY5RQ.js} +6 -6
  67. package/dist/version.js +1 -1
  68. package/dist/{work-7G2U64WI.js → work-KS3JOEI2.js} +17 -17
  69. package/dist/{worker-HJM2FZNI.js → worker-CZ5KNZUI.js} +11 -11
  70. package/migrations/0025_mcp_credential_subject.sql +8 -0
  71. package/migrations/meta/0025_snapshot.json +2275 -0
  72. package/migrations/meta/_journal.json +7 -0
  73. package/package.json +5 -5
  74. package/dist/chat/pi/derived-state.d.ts +0 -5
  75. package/dist/chunk-4CODA7P5.js +0 -43
  76. package/dist/chunk-XED3H34M.js +0 -48
  77. package/dist/spawn-OOO26XDL.js +0 -38
@@ -176,6 +176,13 @@
176
176
  "when": 1786313061094,
177
177
  "tag": "0024_misty_typhoid_mary",
178
178
  "breakpoints": true
179
+ },
180
+ {
181
+ "idx": 25,
182
+ "version": "7",
183
+ "when": 1786477029866,
184
+ "tag": "0025_mcp_credential_subject",
185
+ "breakpoints": true
179
186
  }
180
187
  ]
181
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.150.1",
3
+ "version": "0.152.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -81,7 +81,7 @@
81
81
  "pg": "^8.16.3",
82
82
  "yaml": "^2.9.0",
83
83
  "zod": "^4.4.3",
84
- "@sentry/junior-plugin-api": "0.150.1"
84
+ "@sentry/junior-plugin-api": "0.152.0"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@emnapi/core": "^1.10.0",
@@ -98,9 +98,9 @@
98
98
  "typescript": "^6.0.3",
99
99
  "vercel": "^54.4.0",
100
100
  "vitest": "^4.1.7",
101
- "@sentry/junior-memory": "0.150.1",
102
- "@sentry/junior-testing": "0.0.0",
103
- "@sentry/junior-github": "0.150.1"
101
+ "@sentry/junior-github": "0.152.0",
102
+ "@sentry/junior-memory": "0.152.0",
103
+ "@sentry/junior-testing": "0.0.0"
104
104
  },
105
105
  "scripts": {
106
106
  "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
@@ -1,5 +0,0 @@
1
- import type { PiMessage } from "@/chat/pi/messages";
2
- /** Infer MCP providers previously used in durable Pi history. */
3
- export declare function inferActiveMcpProvidersFromPiMessages(messages: PiMessage[] | undefined): string[];
4
- /** Infer successfully loaded skills from durable Pi history. */
5
- export declare function inferLoadedSkillNamesFromPiMessages(messages: PiMessage[] | undefined): string[];
@@ -1,43 +0,0 @@
1
- import {
2
- getClient
3
- } from "./chunk-6GWA276C.js";
4
-
5
- // src/chat/sentry-links.ts
6
- function getSentryOrgSlug() {
7
- const slug = process.env.SENTRY_ORG_SLUG?.trim();
8
- return slug || void 0;
9
- }
10
- function isSentrySaasDsnHost(host) {
11
- return host === "sentry.io" || host.endsWith(".sentry.io");
12
- }
13
- function buildSentryWebBaseUrl(dsn) {
14
- if (isSentrySaasDsnHost(dsn.host)) {
15
- return "https://sentry.io";
16
- }
17
- const port = dsn.port ? `:${dsn.port}` : "";
18
- const path = dsn.path ? `/${dsn.path}` : "";
19
- return `${dsn.protocol}://${dsn.host}${port}${path}`;
20
- }
21
- function buildSentryConversationUrl(conversationId) {
22
- const client = getClient();
23
- const dsn = client?.getDsn();
24
- if (!dsn?.host || !dsn.projectId) {
25
- return void 0;
26
- }
27
- const orgSlug = getSentryOrgSlug();
28
- if (!orgSlug) {
29
- return void 0;
30
- }
31
- const encodedId = encodeURIComponent(conversationId);
32
- const params = new URLSearchParams();
33
- params.set("project", dsn.projectId);
34
- const path = `explore/conversations/${encodedId}/?${params.toString()}`;
35
- if (isSentrySaasDsnHost(dsn.host)) {
36
- return `https://${orgSlug}.sentry.io/${path}`;
37
- }
38
- return `${buildSentryWebBaseUrl(dsn)}/organizations/${orgSlug}/${path}`;
39
- }
40
-
41
- export {
42
- buildSentryConversationUrl
43
- };
@@ -1,48 +0,0 @@
1
- import {
2
- getTurnUserMessageId
3
- } from "./chunk-N6QJAPZS.js";
4
- import {
5
- coerceThreadConversationState,
6
- getPersistedThreadState,
7
- persistThreadStateById
8
- } from "./chunk-JBYWR6FW.js";
9
- import {
10
- hydrateConversationMessages,
11
- markConversationMessage,
12
- markTurnClosed
13
- } from "./chunk-2AWDPNP7.js";
14
-
15
- // src/chat/runtime/auth-pause-state.ts
16
- function completeAuthPauseTurn(args) {
17
- markConversationMessage(
18
- args.conversation,
19
- getTurnUserMessageId(args.conversation, args.sessionId),
20
- {
21
- replied: true,
22
- skippedReason: void 0
23
- }
24
- );
25
- markTurnClosed({
26
- conversation: args.conversation,
27
- nowMs: Date.now(),
28
- sessionId: args.sessionId
29
- });
30
- }
31
- async function persistAuthPauseTurnState(args) {
32
- const currentState = await getPersistedThreadState(args.threadStateId);
33
- const conversation = coerceThreadConversationState(currentState);
34
- await hydrateConversationMessages({
35
- conversation,
36
- conversationId: args.threadStateId
37
- });
38
- completeAuthPauseTurn({
39
- conversation,
40
- sessionId: args.sessionId
41
- });
42
- await persistThreadStateById(args.threadStateId, { conversation });
43
- }
44
-
45
- export {
46
- completeAuthPauseTurn,
47
- persistAuthPauseTurnState
48
- };
@@ -1,38 +0,0 @@
1
- import {
2
- bindSpawnAgent
3
- } from "./chunk-QO3OSJDS.js";
4
- import "./chunk-W3FQZAX5.js";
5
- import "./chunk-JVOLC6JZ.js";
6
- import "./chunk-JBYWR6FW.js";
7
- import "./chunk-JAL3CH4G.js";
8
- import "./chunk-IZE2EGCX.js";
9
- import "./chunk-DIB4GX3G.js";
10
- import "./chunk-RF6J3DIO.js";
11
- import "./chunk-SZ74ECCC.js";
12
- import "./chunk-HUO3UTAQ.js";
13
- import "./chunk-2AWDPNP7.js";
14
- import "./chunk-3Y47VMHV.js";
15
- import "./chunk-PDO5BLNM.js";
16
- import "./chunk-D2PVJU5E.js";
17
- import "./chunk-GZ25ZSTX.js";
18
- import "./chunk-KFHJQYKQ.js";
19
- import "./chunk-EM225ITJ.js";
20
- import "./chunk-B2YA2G26.js";
21
- import "./chunk-FGP5W3NS.js";
22
- import "./chunk-VFUK3X5B.js";
23
- import "./chunk-5NOHC2Z4.js";
24
- import "./chunk-2DIRU2C2.js";
25
- import "./chunk-TZRYLW3R.js";
26
- import "./chunk-RUIXF3YQ.js";
27
- import "./chunk-HZF5P5UN.js";
28
- import "./chunk-F3B2YJ76.js";
29
- import "./chunk-3WIFZBJL.js";
30
- import "./chunk-6GWA276C.js";
31
- import "./chunk-OOUNJNMR.js";
32
- import "./chunk-H4HBKISO.js";
33
- import "./chunk-6IWDFUXW.js";
34
- import "./chunk-JUBPTYNO.js";
35
- import "./chunk-MLKGABMK.js";
36
- export {
37
- bindSpawnAgent
38
- };