@sentry/junior 0.109.0 → 0.110.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 (92) hide show
  1. package/dist/{agent-hooks-FHHVLNPA.js → agent-hooks-ELT4ODFF.js} +12 -13
  2. package/dist/api/conversations/access.d.ts +9 -0
  3. package/dist/api/conversations/aggregate.d.ts +12 -1
  4. package/dist/api/conversations/archive.d.ts +3 -5
  5. package/dist/api/conversations/detail.d.ts +156 -7
  6. package/dist/api/conversations/events.d.ts +1 -1
  7. package/dist/api/conversations/list.d.ts +57 -6
  8. package/dist/api/conversations/projection.d.ts +6 -7
  9. package/dist/api/conversations/reporting.d.ts +10 -4
  10. package/dist/api/conversations/routes.d.ts +2 -1
  11. package/dist/api/conversations/shared.d.ts +1 -1
  12. package/dist/api/conversations/stats.d.ts +37 -6
  13. package/dist/api/conversations/stats.query.d.ts +1 -1
  14. package/dist/api/conversations/usage.d.ts +9 -0
  15. package/dist/api/http.d.ts +7 -0
  16. package/dist/api/locations/detail.d.ts +102 -6
  17. package/dist/api/locations/list.d.ts +43 -5
  18. package/dist/api/locations/query.d.ts +4 -2
  19. package/dist/api/locations/routes.d.ts +2 -1
  20. package/dist/api/people/list.d.ts +28 -6
  21. package/dist/api/people/list.query.d.ts +1 -1
  22. package/dist/api/people/profile.d.ts +96 -7
  23. package/dist/api/people/profile.query.d.ts +4 -2
  24. package/dist/api/people/routes.d.ts +2 -1
  25. package/dist/api/people/shared.d.ts +1219 -2
  26. package/dist/api/route.d.ts +18 -4
  27. package/dist/api/schema/common.d.ts +6 -0
  28. package/dist/api/{conversations/schema.d.ts → schema/conversation.d.ts} +31 -3
  29. package/dist/api/{locations/schema.d.ts → schema/location.d.ts} +5 -0
  30. package/dist/api/{people/schema.d.ts → schema/person.d.ts} +37 -45
  31. package/dist/api/schema.d.ts +8 -22
  32. package/dist/api/schema.js +10 -2
  33. package/dist/api.d.ts +5 -1
  34. package/dist/api.js +767 -384
  35. package/dist/app.js +87 -70
  36. package/dist/catalog-runtime-4GI22PXK.js +16 -0
  37. package/dist/chat/agent/resume.d.ts +11 -12
  38. package/dist/chat/conversations/history.d.ts +3 -0
  39. package/dist/chat/conversations/sql/privacy.d.ts +3 -15
  40. package/dist/chat/pi/messages.d.ts +2 -2
  41. package/dist/chat/pi/sql-model-usage.d.ts +4 -1
  42. package/dist/chat/services/auth-pause.d.ts +4 -0
  43. package/dist/chat/services/context-compaction.d.ts +1 -0
  44. package/dist/chat/task-execution/queue-signing.d.ts +10 -8
  45. package/dist/chat/task-execution/queue.d.ts +9 -7
  46. package/dist/chat/task-execution/slack-work.d.ts +6 -6
  47. package/dist/{chunk-QY636HZU.js → chunk-2T7TIEXI.js} +90 -7
  48. package/dist/{chunk-CEA3A3UA.js → chunk-2ZTTXTSZ.js} +24 -1
  49. package/dist/{chunk-FWJRXN4F.js → chunk-3S7YYHBI.js} +3 -139
  50. package/dist/{chunk-3SXUV423.js → chunk-3TV7OEHL.js} +1 -1
  51. package/dist/{chunk-MXW4GL53.js → chunk-3UBQI73J.js} +7 -7
  52. package/dist/{chunk-IVVGFRQQ.js → chunk-42WRQLJ6.js} +10 -38
  53. package/dist/{chunk-FENLIFJD.js → chunk-4QU44P7Q.js} +69 -10
  54. package/dist/{chunk-O3JMSZLI.js → chunk-6Y5L4BOM.js} +3 -5
  55. package/dist/{chunk-PLB7MRCQ.js → chunk-C4MZ3GP5.js} +1 -1
  56. package/dist/{chunk-72OMGPDS.js → chunk-C5XAFTHY.js} +7 -9
  57. package/dist/{chunk-HHVY4SMP.js → chunk-FPK7XY3F.js} +98 -92
  58. package/dist/{chunk-OUHNWH46.js → chunk-GK47NBDE.js} +1 -1
  59. package/dist/{chunk-ISMWX44P.js → chunk-IYKPU7H6.js} +2 -2
  60. package/dist/{chunk-TMBRFULF.js → chunk-JQFJO5WH.js} +7 -1
  61. package/dist/{chunk-RGX4V75M.js → chunk-L5XQPJ7T.js} +3 -3
  62. package/dist/{chunk-7Q6WCISF.js → chunk-MIAKQNYX.js} +43 -31
  63. package/dist/{chunk-IXKSQGIO.js → chunk-RHHRKSPI.js} +178 -142
  64. package/dist/{chunk-WHMOBKT7.js → chunk-SBOBTS27.js} +2 -2
  65. package/dist/{chunk-HO5NT6OE.js → chunk-W6RJZG7F.js} +4 -4
  66. package/dist/chunk-W75ZPAGG.js +44 -0
  67. package/dist/{chunk-JNAVF45E.js → chunk-WNOVRQ67.js} +2 -2
  68. package/dist/{chunk-TT6GMXNA.js → chunk-Y3H2DN6F.js} +2 -2
  69. package/dist/{chunk-MGUMR35T.js → chunk-Y5FK3CNG.js} +1 -1
  70. package/dist/{chunk-OCD3OZRK.js → chunk-ZKIOWEFL.js} +1 -1
  71. package/dist/cli/chat.js +23 -24
  72. package/dist/cli/check.js +8 -8
  73. package/dist/cli/plugins.js +15 -16
  74. package/dist/cli/snapshot-warmup.js +11 -11
  75. package/dist/cli/upgrade.js +9 -9
  76. package/dist/db/schema/conversations.d.ts +17 -0
  77. package/dist/db/schema.d.ts +17 -0
  78. package/dist/{db-V3NU72O2.js → db-Y6W6CWWW.js} +8 -9
  79. package/dist/instrumentation.js +4 -4
  80. package/dist/nitro.js +3 -4
  81. package/dist/reporting-schema.d.ts +46 -0
  82. package/dist/{runner-JYBCQBLK.js → runner-BBFV5GLR.js} +14 -15
  83. package/dist/{skills-U6MDAST7.js → skills-AR4AF32L.js} +8 -8
  84. package/dist/{validation-72N3JVRU.js → validation-FBIEPTC2.js} +8 -8
  85. package/dist/version.js +1 -1
  86. package/migrations/0007_thick_sugar_man.sql +23 -0
  87. package/migrations/meta/0007_snapshot.json +1013 -0
  88. package/migrations/meta/_journal.json +7 -0
  89. package/package.json +5 -5
  90. package/dist/catalog-runtime-DMGJSLV2.js +0 -16
  91. package/dist/chunk-OB42YVAE.js +0 -16
  92. package/dist/chunk-SYAQIR5Z.js +0 -53
@@ -50,6 +50,13 @@
50
50
  "when": 1784780915306,
51
51
  "tag": "0006_drop_legacy_conversation_messages",
52
52
  "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "7",
57
+ "when": 1784783172749,
58
+ "tag": "0007_thick_sugar_man",
59
+ "breakpoints": true
53
60
  }
54
61
  ]
55
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.109.0",
3
+ "version": "0.110.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.109.0"
82
+ "@sentry/junior-plugin-api": "0.110.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-github": "0.109.0",
100
- "@sentry/junior-memory": "0.109.0",
99
+ "@sentry/junior-github": "0.110.0",
100
+ "@sentry/junior-scheduler": "0.110.0",
101
101
  "@sentry/junior-testing": "0.0.0",
102
- "@sentry/junior-scheduler": "0.109.0"
102
+ "@sentry/junior-memory": "0.110.0"
103
103
  },
104
104
  "scripts": {
105
105
  "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
@@ -1,16 +0,0 @@
1
- import {
2
- pluginCatalogRuntime
3
- } from "./chunk-3SXUV423.js";
4
- import "./chunk-TT6GMXNA.js";
5
- import "./chunk-PLB7MRCQ.js";
6
- import "./chunk-ISMWX44P.js";
7
- import "./chunk-OB42YVAE.js";
8
- import "./chunk-6GWA276C.js";
9
- import "./chunk-B3IT5END.js";
10
- import "./chunk-3V7OFJZC.js";
11
- import "./chunk-IVVGFRQQ.js";
12
- import "./chunk-OCD3OZRK.js";
13
- import "./chunk-MLKGABMK.js";
14
- export {
15
- pluginCatalogRuntime
16
- };
@@ -1,16 +0,0 @@
1
- // src/chat/coerce.ts
2
- function toOptionalString(value) {
3
- return typeof value === "string" && value.trim() ? value : void 0;
4
- }
5
- function toOptionalNumber(value) {
6
- return typeof value === "number" && Number.isFinite(value) ? value : void 0;
7
- }
8
- function isRecord(value) {
9
- return typeof value === "object" && value !== null;
10
- }
11
-
12
- export {
13
- toOptionalString,
14
- toOptionalNumber,
15
- isRecord
16
- };
@@ -1,53 +0,0 @@
1
- import {
2
- parseSlackChannelReferenceId,
3
- parseSlackTeamId
4
- } from "./chunk-IVVGFRQQ.js";
5
-
6
- // src/chat/destination.ts
7
- import {
8
- destinationSchema
9
- } from "@sentry/junior-plugin-api";
10
- function createSlackDestination(input) {
11
- const channelId = parseSlackChannelReferenceId(input.channelId);
12
- const teamId = parseSlackTeamId(input.teamId);
13
- if (!channelId || !teamId) {
14
- return void 0;
15
- }
16
- return { platform: "slack", teamId, channelId };
17
- }
18
- function parseDestination(value) {
19
- const parsed = destinationSchema.safeParse(value);
20
- return parsed.success ? parsed.data : void 0;
21
- }
22
- function requireSlackDestination(destination, action) {
23
- if (destination?.platform === "slack") {
24
- return destination;
25
- }
26
- throw new Error(`${action} requires a Slack destination`);
27
- }
28
- function sameDestination(left, right) {
29
- if (left.platform !== right.platform) {
30
- return false;
31
- }
32
- if (left.platform === "local" && right.platform === "local") {
33
- return left.conversationId === right.conversationId;
34
- }
35
- if (left.platform === "slack" && right.platform === "slack") {
36
- return left.teamId === right.teamId && left.channelId === right.channelId;
37
- }
38
- return false;
39
- }
40
- function destinationKey(destination) {
41
- if (destination.platform === "local") {
42
- return destination.conversationId;
43
- }
44
- return `slack:${destination.teamId}:${destination.channelId}`;
45
- }
46
-
47
- export {
48
- createSlackDestination,
49
- parseDestination,
50
- requireSlackDestination,
51
- sameDestination,
52
- destinationKey
53
- };