@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.
- package/dist/{agent-hooks-U6R3O2V4.js → agent-hooks-TL2SGC5W.js} +13 -10
- package/dist/api/locations/detail.d.ts +17 -0
- package/dist/api/people/plugin-reports.d.ts +7 -0
- package/dist/api/schema/conversation.d.ts +80 -8
- package/dist/api/schema/location.d.ts +30 -0
- package/dist/api/schema/person.d.ts +30 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +128 -27
- package/dist/app.js +73 -42
- package/dist/{catalog-runtime-HIDNHGOP.js → catalog-runtime-IGSMIADJ.js} +5 -5
- package/dist/chat/artifacts/store.d.ts +42 -0
- package/dist/chat/conversations/message-search.d.ts +6 -0
- package/dist/chat/plugins/agent-hooks.d.ts +9 -1
- package/dist/chat/plugins/annotations.d.ts +3 -0
- package/dist/chat/plugins/conversation-sidebar.d.ts +3 -0
- package/dist/chat/plugins/viewer.d.ts +4 -0
- package/dist/chat/slack/mrkdwn.d.ts +3 -4
- package/dist/chat/slack/tools/conversation-message-search.d.ts +9 -0
- package/dist/chat/tools/publish-image.d.ts +44 -0
- package/dist/chat/tools/unpublish-image.d.ts +35 -0
- package/dist/{chunk-RJGRXDA7.js → chunk-4WYGQ47U.js} +5 -5
- package/dist/{chunk-FKMWPA4A.js → chunk-5NEBOHRG.js} +4 -4
- package/dist/{chunk-BGVQGEKB.js → chunk-6BJFIWEV.js} +4 -4
- package/dist/{chunk-TBRJGMTO.js → chunk-7DTPFFQX.js} +1 -1
- package/dist/{chunk-WACYTIIK.js → chunk-AJ7J2HWY.js} +6 -6
- package/dist/{chunk-YPMDNE7R.js → chunk-BPZQWAZJ.js} +1 -1
- package/dist/{chunk-TPFOVXRB.js → chunk-C3KUKA27.js} +19 -21
- package/dist/{chunk-4UO3UAW7.js → chunk-CZ6EHOU5.js} +239 -199
- package/dist/{chunk-JQZIUESN.js → chunk-DDQ43S5Q.js} +49 -4
- package/dist/{chunk-UNDTW2PY.js → chunk-DZC3F2UI.js} +1 -1
- package/dist/{chunk-42E7432W.js → chunk-EBEHJPFF.js} +1 -1
- package/dist/{chunk-M5HCOMDR.js → chunk-EHQLTK3X.js} +450 -115
- package/dist/{chunk-2SFMRMDV.js → chunk-FESUWAYU.js} +1 -1
- package/dist/{chunk-XPX3DYG7.js → chunk-FEWT5KPP.js} +2 -2
- package/dist/{chunk-2MK6S2UA.js → chunk-H2KW7AZC.js} +1 -1
- package/dist/{chunk-FJR66CQT.js → chunk-HW4BW3PC.js} +4 -4
- package/dist/{chunk-PZUJPPON.js → chunk-JJ3VXFDI.js} +1 -1
- package/dist/{chunk-MBDWMEO6.js → chunk-JRVURR3H.js} +10 -10
- package/dist/{chunk-756F567I.js → chunk-K7IV6UV3.js} +5 -5
- package/dist/{chunk-URPLKXLG.js → chunk-KQSO4DJ4.js} +9 -9
- package/dist/{chunk-LNUZXEEI.js → chunk-MMBMDSRK.js} +1 -1
- package/dist/{chunk-J77DLAPE.js → chunk-MNCEGXEH.js} +2 -2
- package/dist/{chunk-P7W3ZL5J.js → chunk-O6P7DZ6O.js} +8 -36
- package/dist/{chunk-PVIM2RWO.js → chunk-OBFRMQBY.js} +8 -10
- package/dist/{chunk-3AHIB66R.js → chunk-OPNJRQDP.js} +5 -5
- package/dist/{chunk-U26KRMYX.js → chunk-QHCIZLIX.js} +537 -27
- package/dist/{chunk-472VVYYV.js → chunk-RDV4BQRZ.js} +1 -1
- package/dist/{chunk-UYUS4L6F.js → chunk-SA6BEEAB.js} +16 -9
- package/dist/{chunk-HDPH4CHJ.js → chunk-THXMSSFZ.js} +1 -1
- package/dist/{chunk-RLOXMHLA.js → chunk-V7QL4QMW.js} +4 -4
- package/dist/{chunk-56TFPTZU.js → chunk-WHAJ3QVY.js} +1 -1
- package/dist/{chunk-ZNBGWMVQ.js → chunk-Y75ZDQB5.js} +1 -1
- package/dist/cli/chat.js +29 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/artifacts.d.ts +178 -0
- package/dist/db/schema.d.ts +179 -1
- package/dist/{db-2JKT3BB5.js → db-66XZ4HHQ.js} +7 -7
- package/dist/handlers/artifacts.d.ts +8 -0
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-7MC2UMQC.js → oauth-callback-server-FMLKDUUF.js} +22 -23
- package/dist/{runner-GUU4G7XO.js → runner-YZONUMNY.js} +12 -13
- package/dist/{skills-7NW5N3VM.js → skills-3UDJJXSO.js} +6 -6
- package/dist/spawn-TBPVA5S2.js +37 -0
- package/dist/{validation-AQLI6N2C.js → validation-3HTDBONC.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-FLFK5XNU.js → work-O4YTIS54.js} +17 -17
- package/dist/worker-WHURUEYX.js +24 -0
- package/migrations/0028_artifacts.sql +16 -0
- package/migrations/meta/0028_snapshot.json +2685 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +4 -4
- package/dist/chunk-OUAZDZTZ.js +0 -441
- package/dist/spawn-WGK4W3XF.js +0 -37
- 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-
|
|
10
|
+
} from "./chunk-CZ6EHOU5.js";
|
|
10
11
|
import {
|
|
11
12
|
TURN_REASONING_LEVELS,
|
|
12
13
|
getChatConfig,
|
|
13
14
|
modelProfileSchema
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
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 {
|
|
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,
|