@sentry/junior 0.154.0 → 0.156.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-VEHV2QUA.js → agent-hooks-CCAR46PQ.js} +11 -12
- package/dist/api/conversations/list.d.ts +5 -3
- package/dist/api/conversations/membership.d.ts +16 -0
- package/dist/api/locations/detail.d.ts +2 -0
- package/dist/api/schema/conversation.d.ts +22 -4
- package/dist/api/schema/location.d.ts +2 -0
- package/dist/api/schema/person.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +331 -188
- package/dist/app.js +154 -51
- package/dist/catalog-runtime-3SNKYCBG.js +16 -0
- package/dist/chat/agent/types.d.ts +2 -0
- package/dist/chat/attachments/storage.d.ts +12 -0
- package/dist/chat/attachments/store.d.ts +52 -0
- package/dist/chat/attachments/vercel.d.ts +3 -0
- package/dist/chat/conversations/retention.d.ts +4 -0
- package/dist/chat/conversations/sql/event-actor.d.ts +14 -0
- package/dist/chat/conversations/sql/event-lock.d.ts +1 -1
- package/dist/chat/conversations/sql/participants.d.ts +17 -0
- package/dist/chat/ingress/bot-mention.d.ts +13 -0
- package/dist/chat/plugins/unfinished-work.d.ts +8 -0
- package/dist/chat/runtime/agent-runner.d.ts +4 -0
- package/dist/chat/runtime/slack-resume.d.ts +1 -1
- package/dist/chat/services/conversation-memory.d.ts +1 -1
- package/dist/chat/slack/tools/send-files.d.ts +17 -11
- package/dist/chat/state/conversation.d.ts +3 -1
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/{chunk-XYMCZGH6.js → chunk-3FFUC32L.js} +8 -10
- package/dist/{chunk-4U4MNYGP.js → chunk-3L2PMOSR.js} +6 -8
- package/dist/{chunk-PTJ75ZWR.js → chunk-4ZZDTHFC.js} +94 -9
- package/dist/{chunk-DAJZZFU7.js → chunk-53W3LZEW.js} +386 -93
- package/dist/{chunk-F7QUK3YP.js → chunk-6CINHXIL.js} +5 -5
- package/dist/{chunk-6VWMX7NS.js → chunk-6JUU7J2B.js} +4 -4
- package/dist/{chunk-HUO3UTAQ.js → chunk-7MA4HV4W.js} +1 -1
- package/dist/{chunk-O4AQDOKA.js → chunk-7RAETIYO.js} +7 -7
- package/dist/{chunk-4R2XCKUH.js → chunk-A6WPDFHQ.js} +1 -1
- package/dist/{chunk-CZD6M57V.js → chunk-AIJRG227.js} +191 -126
- package/dist/{chunk-RUIXF3YQ.js → chunk-BDUENQD3.js} +1 -1
- package/dist/{chunk-NUG3VYHL.js → chunk-CK2H7CFO.js} +2 -2
- package/dist/{chunk-HOGJ6TBT.js → chunk-CN2XSVKF.js} +6 -6
- package/dist/{chunk-3567VGCN.js → chunk-EDJ64P2P.js} +1 -1
- package/dist/{chunk-6PJXR4BC.js → chunk-GKC43TLS.js} +2 -2
- package/dist/{chunk-A6LWN4K6.js → chunk-GSBPZHLQ.js} +11 -11
- package/dist/{chunk-Y654CTW2.js → chunk-IIO5PFZX.js} +366 -138
- package/dist/{chunk-F2Q3ZHW2.js → chunk-IZEBHYI4.js} +1 -1
- package/dist/{chunk-QGR6QTC4.js → chunk-JUJR6WTL.js} +4 -4
- package/dist/{chunk-ZQT4RHUO.js → chunk-KBGMYLSV.js} +4 -1
- package/dist/{chunk-DK2FSQHS.js → chunk-KCA5MKHU.js} +5 -5
- package/dist/{chunk-NNN2WYAD.js → chunk-MC57E5U5.js} +1 -1
- package/dist/{chunk-6AF5GOZA.js → chunk-MJE7XKWP.js} +1 -1
- package/dist/{chunk-7CPN5JTA.js → chunk-NTNU6T2D.js} +3 -3
- package/dist/{chunk-NG4IAOVD.js → chunk-OGZPRMZA.js} +1 -1
- package/dist/{chunk-UCH55IGZ.js → chunk-OMQJB7YN.js} +28 -37
- package/dist/{chunk-2XNVS6RC.js → chunk-PMFGVLDU.js} +12 -11
- package/dist/{chunk-65IAU2L2.js → chunk-SE3D225X.js} +1 -1
- package/dist/{chunk-CCAU73CE.js → chunk-SRJA6QLM.js} +2 -2
- package/dist/{chunk-7RFWIHPM.js → chunk-TN4LVILT.js} +5 -5
- package/dist/{chunk-3ZR2R5EQ.js → chunk-TNXGMFWV.js} +1 -1
- package/dist/{chunk-HZF5P5UN.js → chunk-V7YE4WCP.js} +58 -7
- package/dist/{chunk-MSOZLASC.js → chunk-WD7SEUZO.js} +2 -2
- package/dist/{chunk-UG5UCHHJ.js → chunk-X5NZQH5U.js} +4 -2
- package/dist/{chunk-3HX67UPN.js → chunk-X7W45B5G.js} +1 -1
- package/dist/{chunk-FVY7AJ46.js → chunk-ZNWRYNCA.js} +7 -7
- package/dist/cli/chat.js +36 -36
- package/dist/cli/check.js +8 -9
- package/dist/cli/init.js +41 -7
- package/dist/cli/plugins.js +15 -16
- package/dist/cli/snapshot-create.js +11 -12
- package/dist/cli/upgrade.js +9 -10
- package/dist/db/schema/attachments.d.ts +178 -0
- package/dist/db/schema/conversation-events.d.ts +20 -0
- package/dist/db/schema/conversation-participants.d.ts +63 -0
- package/dist/db/schema.d.ts +255 -1
- package/dist/{db-SOJJLMJK.js → db-TYUUKGJX.js} +8 -8
- package/dist/handlers/retention.d.ts +4 -1
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-GCJROMVO.js → oauth-callback-server-AWVDKPR5.js} +26 -26
- package/dist/{runner-SY6KDQCN.js → runner-JUQXMACC.js} +15 -16
- package/dist/{sandbox-egress-signals-EKPAVWQL.js → sandbox-egress-signals-U3ZX7C5W.js} +3 -4
- package/dist/{skills-XJ2LJ2ML.js → skills-4GZTZX4V.js} +8 -9
- package/dist/spawn-32SSRWU4.js +37 -0
- package/dist/{validation-XQWY6QRY.js → validation-DRLNJRND.js} +8 -9
- package/dist/version.js +1 -1
- package/dist/{work-FFT5JAOU.js → work-TGIXRRJY.js} +20 -21
- package/dist/worker-IFXZOYED.js +24 -0
- package/migrations/0026_conversation_event_actor_and_participants.sql +140 -0
- package/migrations/0027_attachment_storage.sql +16 -0
- package/migrations/meta/0026_snapshot.json +2424 -0
- package/migrations/meta/0027_snapshot.json +2554 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +10 -7
- package/dist/catalog-runtime-AK5MY63F.js +0 -17
- package/dist/chunk-F3B2YJ76.js +0 -57
- package/dist/spawn-QFCQREEP.js +0 -38
- package/dist/worker-JAITK72F.js +0 -25
|
@@ -11,21 +11,20 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-3FFUC32L.js";
|
|
15
|
+
import "./chunk-NTNU6T2D.js";
|
|
16
|
+
import "./chunk-IIO5PFZX.js";
|
|
17
|
+
import "./chunk-AIJRG227.js";
|
|
18
18
|
import "./chunk-EM225ITJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MC57E5U5.js";
|
|
20
|
+
import "./chunk-GKC43TLS.js";
|
|
21
21
|
import "./chunk-VFUK3X5B.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-3HX67UPN.js";
|
|
22
|
+
import "./chunk-MJE7XKWP.js";
|
|
23
|
+
import "./chunk-V7YE4WCP.js";
|
|
24
|
+
import "./chunk-X7W45B5G.js";
|
|
26
25
|
import "./chunk-6GWA276C.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-OGZPRMZA.js";
|
|
27
|
+
import "./chunk-KBGMYLSV.js";
|
|
29
28
|
import "./chunk-MLKGABMK.js";
|
|
30
29
|
export {
|
|
31
30
|
PluginHookDeniedError,
|
|
@@ -2,13 +2,14 @@ import type { User } from "@sentry/junior-plugin-api";
|
|
|
2
2
|
import type { Conversation } from "@/chat/conversations/store";
|
|
3
3
|
import type { JuniorDatabase } from "@/db/db";
|
|
4
4
|
import type { ConversationFeed } from "../schema/conversation";
|
|
5
|
-
|
|
5
|
+
type ConversationFeedMembership = {
|
|
6
6
|
kind: "viewer";
|
|
7
7
|
userId: string;
|
|
8
8
|
} | {
|
|
9
9
|
kind: "actorEmail";
|
|
10
10
|
email: string;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
|
+
declare function conversationRows(db: JuniorDatabase, limit: number, filter?: ConversationFeedMembership): Promise<{
|
|
12
13
|
conversation: {
|
|
13
14
|
conversationId: string;
|
|
14
15
|
schemaVersion: number;
|
|
@@ -117,7 +118,8 @@ export declare function readConversationRecordFromSql(conversationId: string): P
|
|
|
117
118
|
} | undefined>;
|
|
118
119
|
/**
|
|
119
120
|
* Build a bounded dashboard feed. Prefer the viewer user when present; otherwise
|
|
120
|
-
* keep only roots linked to actorEmail before applying the limit.
|
|
121
|
+
* keep only roots linked to actorEmail before applying the limit. Membership is
|
|
122
|
+
* root-actor ownership or a materialized participant row for that person.
|
|
121
123
|
*/
|
|
122
124
|
export declare function readConversationFeedFromSql(options?: {
|
|
123
125
|
actorEmail?: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type SQL } from "drizzle-orm";
|
|
2
|
+
import type { JuniorDatabase } from "@/db/db";
|
|
3
|
+
/** True when the viewer is a materialized participant on this root conversation. */
|
|
4
|
+
export declare function conversationHasParticipantUser(userId: string): SQL;
|
|
5
|
+
/**
|
|
6
|
+
* True when a verified primary-email user participates on this root
|
|
7
|
+
* conversation. Used only for the actorEmail feed fallback.
|
|
8
|
+
*/
|
|
9
|
+
export declare function conversationHasParticipantEmail(email: string): SQL;
|
|
10
|
+
/** Root-actor ownership or a materialized participant row for the same person. */
|
|
11
|
+
export declare function viewerConversationMembership(args: {
|
|
12
|
+
actorMatch: SQL | undefined;
|
|
13
|
+
participantMatch: SQL | undefined;
|
|
14
|
+
}): SQL | undefined;
|
|
15
|
+
/** Find which of the supplied roots include the linked viewer as a participant. */
|
|
16
|
+
export declare function conversationIdsWithParticipantUser(db: JuniorDatabase, conversationIds: readonly string[], userId: string): Promise<Set<string>>;
|
|
@@ -88,6 +88,8 @@ export declare function readLocationDetail(locationId: string, options?: {
|
|
|
88
88
|
sentryTraceUrl?: string | undefined;
|
|
89
89
|
sourceUrl?: string | undefined;
|
|
90
90
|
traceId?: string | undefined;
|
|
91
|
+
assignedWork?: boolean | undefined;
|
|
92
|
+
unfinishedWork?: boolean | undefined;
|
|
91
93
|
}[];
|
|
92
94
|
source: "conversation_index";
|
|
93
95
|
windowEnd: string;
|
|
@@ -226,6 +226,8 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
226
226
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
227
227
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
228
228
|
traceId: z.ZodOptional<z.ZodString>;
|
|
229
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
+
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
229
231
|
}, z.core.$strict>;
|
|
230
232
|
/** Privacy-safe event variants owned by the conversation reporting API. */
|
|
231
233
|
export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -236,7 +238,10 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
236
238
|
system: "system";
|
|
237
239
|
assistant: "assistant";
|
|
238
240
|
}>;
|
|
239
|
-
source: z.ZodOptional<z.
|
|
241
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
slack: "slack";
|
|
243
|
+
web: "web";
|
|
244
|
+
}>>;
|
|
240
245
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
241
246
|
email: z.ZodOptional<z.ZodString>;
|
|
242
247
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -420,7 +425,10 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
420
425
|
system: "system";
|
|
421
426
|
assistant: "assistant";
|
|
422
427
|
}>;
|
|
423
|
-
source: z.ZodOptional<z.
|
|
428
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
slack: "slack";
|
|
430
|
+
web: "web";
|
|
431
|
+
}>>;
|
|
424
432
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
425
433
|
email: z.ZodOptional<z.ZodString>;
|
|
426
434
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -682,6 +690,8 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
682
690
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
683
691
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
684
692
|
traceId: z.ZodOptional<z.ZodString>;
|
|
693
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
+
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
685
695
|
annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
686
696
|
kind: z.ZodLiteral<"resource_link">;
|
|
687
697
|
key: z.ZodString;
|
|
@@ -729,7 +739,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
729
739
|
system: "system";
|
|
730
740
|
assistant: "assistant";
|
|
731
741
|
}>;
|
|
732
|
-
source: z.ZodOptional<z.
|
|
742
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
743
|
+
slack: "slack";
|
|
744
|
+
web: "web";
|
|
745
|
+
}>>;
|
|
733
746
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
734
747
|
email: z.ZodOptional<z.ZodString>;
|
|
735
748
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -936,7 +949,10 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
936
949
|
system: "system";
|
|
937
950
|
assistant: "assistant";
|
|
938
951
|
}>;
|
|
939
|
-
source: z.ZodOptional<z.
|
|
952
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
953
|
+
slack: "slack";
|
|
954
|
+
web: "web";
|
|
955
|
+
}>>;
|
|
940
956
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
941
957
|
email: z.ZodOptional<z.ZodString>;
|
|
942
958
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -1183,6 +1199,8 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
1183
1199
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
1184
1200
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
1185
1201
|
traceId: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1203
|
+
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1186
1204
|
}, z.core.$strict>>;
|
|
1187
1205
|
source: z.ZodLiteral<"conversation_index">;
|
|
1188
1206
|
generatedAt: z.ZodString;
|
|
@@ -195,6 +195,8 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
195
195
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
196
196
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
197
197
|
traceId: z.ZodOptional<z.ZodString>;
|
|
198
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
198
200
|
}, z.core.$strict>>;
|
|
199
201
|
source: z.ZodLiteral<"conversation_index">;
|
|
200
202
|
windowEnd: z.ZodString;
|
|
@@ -162,6 +162,8 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
162
162
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
163
163
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
164
164
|
traceId: z.ZodOptional<z.ZodString>;
|
|
165
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
165
167
|
}, z.core.$strict>>;
|
|
166
168
|
actor: z.ZodObject<{
|
|
167
169
|
fullName: z.ZodOptional<z.ZodString>;
|