@sentry/junior 0.160.0 → 0.162.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 (78) hide show
  1. package/dist/{agent-hooks-U6R3O2V4.js → agent-hooks-TL2SGC5W.js} +13 -10
  2. package/dist/api/locations/detail.d.ts +17 -0
  3. package/dist/api/people/plugin-reports.d.ts +7 -0
  4. package/dist/api/schema/conversation.d.ts +80 -8
  5. package/dist/api/schema/location.d.ts +30 -0
  6. package/dist/api/schema/person.d.ts +30 -0
  7. package/dist/api/schema.js +1 -1
  8. package/dist/api.js +128 -27
  9. package/dist/app.js +73 -42
  10. package/dist/{catalog-runtime-HIDNHGOP.js → catalog-runtime-IGSMIADJ.js} +5 -5
  11. package/dist/chat/artifacts/store.d.ts +42 -0
  12. package/dist/chat/conversations/message-search.d.ts +6 -0
  13. package/dist/chat/plugins/agent-hooks.d.ts +9 -1
  14. package/dist/chat/plugins/annotations.d.ts +3 -0
  15. package/dist/chat/plugins/conversation-sidebar.d.ts +3 -0
  16. package/dist/chat/plugins/viewer.d.ts +4 -0
  17. package/dist/chat/slack/mrkdwn.d.ts +3 -4
  18. package/dist/chat/slack/tools/conversation-message-search.d.ts +9 -0
  19. package/dist/chat/tools/publish-image.d.ts +44 -0
  20. package/dist/chat/tools/unpublish-image.d.ts +35 -0
  21. package/dist/{chunk-RJGRXDA7.js → chunk-4WYGQ47U.js} +5 -5
  22. package/dist/{chunk-FKMWPA4A.js → chunk-5NEBOHRG.js} +4 -4
  23. package/dist/{chunk-BGVQGEKB.js → chunk-6BJFIWEV.js} +4 -4
  24. package/dist/{chunk-TBRJGMTO.js → chunk-7DTPFFQX.js} +1 -1
  25. package/dist/{chunk-WACYTIIK.js → chunk-AJ7J2HWY.js} +6 -6
  26. package/dist/{chunk-YPMDNE7R.js → chunk-BPZQWAZJ.js} +1 -1
  27. package/dist/{chunk-TPFOVXRB.js → chunk-C3KUKA27.js} +19 -21
  28. package/dist/{chunk-4UO3UAW7.js → chunk-CZ6EHOU5.js} +239 -199
  29. package/dist/{chunk-JQZIUESN.js → chunk-DDQ43S5Q.js} +49 -4
  30. package/dist/{chunk-UNDTW2PY.js → chunk-DZC3F2UI.js} +1 -1
  31. package/dist/{chunk-42E7432W.js → chunk-EBEHJPFF.js} +1 -1
  32. package/dist/{chunk-M5HCOMDR.js → chunk-EHQLTK3X.js} +450 -115
  33. package/dist/{chunk-2SFMRMDV.js → chunk-FESUWAYU.js} +1 -1
  34. package/dist/{chunk-XPX3DYG7.js → chunk-FEWT5KPP.js} +2 -2
  35. package/dist/{chunk-2MK6S2UA.js → chunk-H2KW7AZC.js} +1 -1
  36. package/dist/{chunk-FJR66CQT.js → chunk-HW4BW3PC.js} +4 -4
  37. package/dist/{chunk-PZUJPPON.js → chunk-JJ3VXFDI.js} +1 -1
  38. package/dist/{chunk-MBDWMEO6.js → chunk-JRVURR3H.js} +10 -10
  39. package/dist/{chunk-756F567I.js → chunk-K7IV6UV3.js} +5 -5
  40. package/dist/{chunk-URPLKXLG.js → chunk-KQSO4DJ4.js} +9 -9
  41. package/dist/{chunk-LNUZXEEI.js → chunk-MMBMDSRK.js} +1 -1
  42. package/dist/{chunk-J77DLAPE.js → chunk-MNCEGXEH.js} +2 -2
  43. package/dist/{chunk-P7W3ZL5J.js → chunk-O6P7DZ6O.js} +8 -36
  44. package/dist/{chunk-PVIM2RWO.js → chunk-OBFRMQBY.js} +8 -10
  45. package/dist/{chunk-3AHIB66R.js → chunk-OPNJRQDP.js} +5 -5
  46. package/dist/{chunk-U26KRMYX.js → chunk-QHCIZLIX.js} +537 -27
  47. package/dist/{chunk-472VVYYV.js → chunk-RDV4BQRZ.js} +1 -1
  48. package/dist/{chunk-UYUS4L6F.js → chunk-SA6BEEAB.js} +16 -9
  49. package/dist/{chunk-HDPH4CHJ.js → chunk-THXMSSFZ.js} +1 -1
  50. package/dist/{chunk-RLOXMHLA.js → chunk-V7QL4QMW.js} +4 -4
  51. package/dist/{chunk-56TFPTZU.js → chunk-WHAJ3QVY.js} +1 -1
  52. package/dist/{chunk-ZNBGWMVQ.js → chunk-Y75ZDQB5.js} +1 -1
  53. package/dist/cli/chat.js +29 -30
  54. package/dist/cli/check.js +6 -6
  55. package/dist/cli/plugins.js +12 -13
  56. package/dist/cli/snapshot-create.js +9 -9
  57. package/dist/cli/upgrade.js +7 -7
  58. package/dist/db/schema/artifacts.d.ts +178 -0
  59. package/dist/db/schema.d.ts +179 -1
  60. package/dist/{db-2JKT3BB5.js → db-66XZ4HHQ.js} +7 -7
  61. package/dist/handlers/artifacts.d.ts +8 -0
  62. package/dist/instrumentation.js +4 -4
  63. package/dist/nitro.js +2 -2
  64. package/dist/{oauth-callback-server-7MC2UMQC.js → oauth-callback-server-FMLKDUUF.js} +22 -23
  65. package/dist/{runner-GUU4G7XO.js → runner-YZONUMNY.js} +12 -13
  66. package/dist/{skills-7NW5N3VM.js → skills-3UDJJXSO.js} +6 -6
  67. package/dist/spawn-TBPVA5S2.js +37 -0
  68. package/dist/{validation-AQLI6N2C.js → validation-3HTDBONC.js} +6 -6
  69. package/dist/version.js +1 -1
  70. package/dist/{work-FLFK5XNU.js → work-O4YTIS54.js} +17 -17
  71. package/dist/worker-WHURUEYX.js +24 -0
  72. package/migrations/0028_artifacts.sql +16 -0
  73. package/migrations/meta/0028_snapshot.json +2685 -0
  74. package/migrations/meta/_journal.json +8 -1
  75. package/package.json +4 -4
  76. package/dist/chunk-OUAZDZTZ.js +0 -441
  77. package/dist/spawn-WGK4W3XF.js +0 -37
  78. package/dist/worker-KSJIRBQJ.js +0 -24
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  createJuniorSqlExecutor,
3
+ juniorConversationAnnotations,
3
4
  juniorConversationBindings,
4
5
  juniorConversationEvents,
5
6
  juniorConversationParticipants,
6
7
  juniorConversations,
7
8
  juniorIdentities,
8
9
  juniorUsers
9
- } from "./chunk-4UO3UAW7.js";
10
+ } from "./chunk-CZ6EHOU5.js";
10
11
  import {
11
12
  TURN_REASONING_LEVELS,
12
13
  getChatConfig,
13
14
  modelProfileSchema
14
- } from "./chunk-J77DLAPE.js";
15
+ } from "./chunk-MNCEGXEH.js";
15
16
  import {
16
17
  juniorDestinations
17
18
  } from "./chunk-VFUK3X5B.js";
@@ -22,7 +23,7 @@ import {
22
23
  } from "./chunk-V7YE4WCP.js";
23
24
  import {
24
25
  normalizeIdentityEmail
25
- } from "./chunk-ZNBGWMVQ.js";
26
+ } from "./chunk-Y75ZDQB5.js";
26
27
 
27
28
  // src/chat/conversations/sql/store.ts
28
29
  import { randomUUID as randomUUID2 } from "crypto";
@@ -1941,7 +1942,16 @@ function createSqlConversationEventStore(executor) {
1941
1942
  }
1942
1943
 
1943
1944
  // src/chat/conversations/sql/message-search.ts
1944
- import { and as and7, desc as desc3, eq as eq7, isNull as isNull2, ne, sql as sql7 } from "drizzle-orm";
1945
+ import {
1946
+ and as and7,
1947
+ desc as desc3,
1948
+ eq as eq7,
1949
+ gte as gte2,
1950
+ isNull as isNull2,
1951
+ lt as lt2,
1952
+ ne,
1953
+ sql as sql7
1954
+ } from "drizzle-orm";
1945
1955
  var EXCERPT_WITHOUT_QUERY_CHARS = 240;
1946
1956
  var SqlConversationMessageSearchStore = class {
1947
1957
  constructor(executor) {
@@ -1976,6 +1986,41 @@ var SqlConversationMessageSearchStore = class {
1976
1986
  eq7(juniorDestinations.providerDestinationId, args.filters.channelId)
1977
1987
  );
1978
1988
  }
1989
+ if (args.filters.afterMs !== void 0 && Number.isFinite(args.filters.afterMs)) {
1990
+ conditions.push(
1991
+ gte2(juniorConversations.lastActivityAt, new Date(args.filters.afterMs))
1992
+ );
1993
+ }
1994
+ if (args.filters.beforeMs !== void 0 && Number.isFinite(args.filters.beforeMs)) {
1995
+ conditions.push(
1996
+ lt2(juniorConversations.lastActivityAt, new Date(args.filters.beforeMs))
1997
+ );
1998
+ }
1999
+ if (args.filters.annotation) {
2000
+ const annotation = args.filters.annotation.toLowerCase();
2001
+ const nestedAnnotationPrefix = `${annotation}#`;
2002
+ conditions.push(
2003
+ sql7`exists (
2004
+ select 1
2005
+ from ${juniorConversationAnnotations}
2006
+ where ${and7(
2007
+ eq7(
2008
+ juniorConversationAnnotations.conversationId,
2009
+ juniorConversations.conversationId
2010
+ ),
2011
+ // Exact key, or a nested child that continues with "#".
2012
+ // Avoids sibling key collisions and partial nested-id prefixes.
2013
+ sql7`(
2014
+ lower(${juniorConversationAnnotations.key}) = ${annotation}
2015
+ or starts_with(
2016
+ lower(${juniorConversationAnnotations.key}),
2017
+ ${nestedAnnotationPrefix}
2018
+ )
2019
+ )`
2020
+ )}
2021
+ )`
2022
+ );
2023
+ }
1979
2024
  const bestPerConversation = db.selectDistinctOn([juniorConversations.conversationId], {
1980
2025
  channelName: juniorDestinations.displayName,
1981
2026
  conversationId: juniorConversations.conversationId,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getChatConfig
3
- } from "./chunk-J77DLAPE.js";
3
+ } from "./chunk-MNCEGXEH.js";
4
4
 
5
5
  // src/chat/state/adapter.ts
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -5,7 +5,7 @@ import {
5
5
  logInfo,
6
6
  logWarn,
7
7
  setSpanAttributes
8
- } from "./chunk-ZNBGWMVQ.js";
8
+ } from "./chunk-Y75ZDQB5.js";
9
9
  import {
10
10
  discoverInstalledPluginPackageContent,
11
11
  normalizePluginPackageNames