@sentry/junior 0.124.1 → 0.125.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 (72) hide show
  1. package/dist/{agent-hooks-2YRIRKNT.js → agent-hooks-MF5UZRCO.js} +8 -8
  2. package/dist/api/conversations/auxiliary-costs.d.ts +6 -0
  3. package/dist/api/conversations/detail.d.ts +10 -0
  4. package/dist/api/conversations/list.d.ts +11 -0
  5. package/dist/api/conversations/projection.d.ts +2 -1
  6. package/dist/api/locations/detail.d.ts +20 -0
  7. package/dist/api/people/profile.d.ts +10 -0
  8. package/dist/api/people/shared.d.ts +36 -0
  9. package/dist/api/plugin-reports.d.ts +1 -0
  10. package/dist/api/schema/conversation.d.ts +40 -0
  11. package/dist/api/schema/location.d.ts +10 -0
  12. package/dist/api/schema/person.d.ts +10 -0
  13. package/dist/api/schema.d.ts +2 -2
  14. package/dist/api/schema.js +4 -2
  15. package/dist/api.js +322 -169
  16. package/dist/app.js +22 -23
  17. package/dist/{catalog-runtime-R4N3NYWQ.js → catalog-runtime-V6SJTUV7.js} +5 -5
  18. package/dist/chat/agent/prompt.d.ts +1 -0
  19. package/dist/chat/conversations/history.d.ts +4 -2
  20. package/dist/chat/conversations/sql/conversation-row.d.ts +7 -4
  21. package/dist/chat/conversations/sql/store.d.ts +2 -1
  22. package/dist/chat/conversations/store.d.ts +9 -1
  23. package/dist/chat/pi/client.d.ts +1 -0
  24. package/dist/chat/plugins/agent-hooks.d.ts +1 -0
  25. package/dist/chat/plugins/conversation-event-stats.d.ts +3 -0
  26. package/dist/chat/plugins/conversation-events.d.ts +1 -1
  27. package/dist/chat/slack/source-link.d.ts +5 -0
  28. package/dist/chat/source.d.ts +16 -0
  29. package/dist/{chunk-6RHGQF6H.js → chunk-2R5MASH3.js} +1 -1
  30. package/dist/{chunk-SFYFRZ6A.js → chunk-2U5CLBYF.js} +1 -1
  31. package/dist/{chunk-AYQZCJZJ.js → chunk-6ZBSTNYN.js} +14 -0
  32. package/dist/{chunk-P2RFRHJS.js → chunk-7K57FJXR.js} +6 -5
  33. package/dist/{chunk-S7KM4EQY.js → chunk-CAPBVX4L.js} +2 -2
  34. package/dist/{chunk-V6O47TCR.js → chunk-EXD2Z3YR.js} +2 -2
  35. package/dist/{chunk-TWHNWGXY.js → chunk-HT7DSLKL.js} +16 -14
  36. package/dist/{chunk-PR3M62LK.js → chunk-HX236W2U.js} +6 -4
  37. package/dist/{chunk-B3Y7UZVA.js → chunk-IHNBJHEP.js} +1 -1
  38. package/dist/{chunk-5FEVPYXP.js → chunk-IS4DGI5J.js} +73 -17
  39. package/dist/{chunk-LCIYVQBM.js → chunk-JT3YMQR3.js} +7 -9
  40. package/dist/{chunk-J45CX6IY.js → chunk-K6MQWEEJ.js} +7 -7
  41. package/dist/{chunk-ZOYZCEYE.js → chunk-KN7QI56S.js} +23 -3
  42. package/dist/{chunk-GI56KFRQ.js → chunk-LG5TXWXI.js} +11 -11
  43. package/dist/{chunk-5HFV6BEV.js → chunk-MVYNJECP.js} +1 -1
  44. package/dist/{chunk-MXVTNDYF.js → chunk-MYKSUTUV.js} +4 -4
  45. package/dist/{chunk-7SCPUYHG.js → chunk-NM3PMQS6.js} +1 -1
  46. package/dist/{chunk-XDX3QTFA.js → chunk-ODB55JM7.js} +162 -15
  47. package/dist/{chunk-OAUFSZ54.js → chunk-Q3UF3K77.js} +2 -2
  48. package/dist/{chunk-GCGJGSQL.js → chunk-S4PUICSB.js} +2 -0
  49. package/dist/{chunk-PE44LDDQ.js → chunk-UTL3MHPC.js} +1 -0
  50. package/dist/{chunk-WTB3ATMR.js → chunk-XJYGLTYI.js} +1 -1
  51. package/dist/{chunk-BBSB62UJ.js → chunk-ZXGBLAYQ.js} +1 -1
  52. package/dist/cli/chat.js +23 -23
  53. package/dist/cli/check.js +6 -6
  54. package/dist/cli/plugins.js +11 -11
  55. package/dist/cli/snapshot-create.js +8 -8
  56. package/dist/cli/upgrade.js +6 -6
  57. package/dist/db/schema/conversations.d.ts +20 -0
  58. package/dist/db/schema.d.ts +19 -0
  59. package/dist/{db-NPESWXWE.js → db-JSDSWK7T.js} +6 -6
  60. package/dist/instrumentation.js +2 -2
  61. package/dist/nitro.js +2 -2
  62. package/dist/{oauth-callback-server-V6OVD7NI.js → oauth-callback-server-UMS2T3HN.js} +16 -17
  63. package/dist/reporting-schema.d.ts +2 -0
  64. package/dist/{runner-ORVU25XU.js → runner-RGOANIRV.js} +11 -12
  65. package/dist/{skills-Y3OSYR6V.js → skills-GBLPOQOD.js} +6 -6
  66. package/dist/{validation-4MRKY64W.js → validation-BMQY6CD4.js} +6 -6
  67. package/dist/version.js +1 -1
  68. package/migrations/0013_conversation_session_source.sql +38 -0
  69. package/migrations/meta/0013_snapshot.json +1250 -0
  70. package/migrations/meta/_journal.json +8 -1
  71. package/package.json +6 -6
  72. package/dist/chunk-DVSAX7MS.js +0 -55
@@ -92,6 +92,13 @@
92
92
  "when": 1785454412461,
93
93
  "tag": "0012_structured_conversation_events",
94
94
  "breakpoints": true
95
+ },
96
+ {
97
+ "idx": 13,
98
+ "version": "7",
99
+ "when": 1785516038862,
100
+ "tag": "0013_conversation_session_source",
101
+ "breakpoints": true
95
102
  }
96
103
  ]
97
- }
104
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.124.1",
3
+ "version": "0.125.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -79,7 +79,7 @@
79
79
  "pg": "^8.16.3",
80
80
  "yaml": "^2.9.0",
81
81
  "zod": "^4.4.3",
82
- "@sentry/junior-plugin-api": "0.124.1"
82
+ "@sentry/junior-plugin-api": "0.125.0"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@emnapi/core": "^1.10.0",
@@ -96,10 +96,10 @@
96
96
  "typescript": "^6.0.3",
97
97
  "vercel": "^54.4.0",
98
98
  "vitest": "^4.1.7",
99
- "@sentry/junior-memory": "0.124.1",
100
- "@sentry/junior-scheduler": "0.124.1",
101
- "@sentry/junior-github": "0.124.1",
102
- "@sentry/junior-testing": "0.0.0"
99
+ "@sentry/junior-memory": "0.125.0",
100
+ "@sentry/junior-scheduler": "0.125.0",
101
+ "@sentry/junior-testing": "0.0.0",
102
+ "@sentry/junior-github": "0.125.0"
103
103
  },
104
104
  "scripts": {
105
105
  "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
@@ -1,55 +0,0 @@
1
- import {
2
- getPlugins
3
- } from "./chunk-XDX3QTFA.js";
4
- import {
5
- getConversationEventStore
6
- } from "./chunk-5FEVPYXP.js";
7
-
8
- // src/chat/plugins/conversation-events.ts
9
- function registeredDefinition(plugin, value) {
10
- return plugin.conversationEvents?.find(
11
- (definition) => definition === value.definition
12
- );
13
- }
14
- function createPluginConversationEvents(args) {
15
- return {
16
- async emit(value) {
17
- const definition = registeredDefinition(args.plugin, value);
18
- if (!definition) {
19
- throw new Error(
20
- `Plugin "${args.plugin.manifest.name}" cannot emit an unregistered conversation event.`
21
- );
22
- }
23
- const content = definition.parse(value.data);
24
- await getConversationEventStore().append(args.conversationId, [
25
- {
26
- createdAtMs: Date.now(),
27
- idempotencyKey: `plugin:${args.plugin.manifest.name}:operation:${args.operationId}:event:${definition.eventName}@${definition.version}`,
28
- data: {
29
- type: "structured_event",
30
- namespace: args.plugin.manifest.name,
31
- name: definition.eventName,
32
- version: definition.version,
33
- turnId: args.turnId,
34
- content
35
- }
36
- }
37
- ]);
38
- }
39
- };
40
- }
41
- function renderPluginConversationEvent(args) {
42
- const plugin = getPlugins().find(
43
- (candidate) => candidate.manifest.name === args.namespace
44
- );
45
- const definition = plugin?.conversationEvents?.find(
46
- (candidate) => candidate.eventName === args.name && candidate.version === args.version
47
- );
48
- if (!definition) return void 0;
49
- return definition.renderEvent(definition.parse(args.content));
50
- }
51
-
52
- export {
53
- createPluginConversationEvents,
54
- renderPluginConversationEvent
55
- };