@sentry/junior 0.176.2 → 0.178.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-LQZFBXBK.js → agent-hooks-PBT4NNBV.js} +12 -12
- package/dist/api/conversations/archive.d.ts +5 -2
- package/dist/api/conversations/list.d.ts +0 -1
- package/dist/api/conversations/membership.d.ts +14 -0
- package/dist/api/conversations/projection.d.ts +2 -1
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/people/shared.d.ts +2 -2
- package/dist/api/schema/conversation.d.ts +4 -4
- package/dist/api/schema/location.d.ts +1 -1
- package/dist/api/schema/person.d.ts +1 -1
- package/dist/api/schema.js +1 -1
- package/dist/api.js +245 -166
- package/dist/app.js +52 -57
- package/dist/{catalog-runtime-P3DBC3XM.js → catalog-runtime-M7QGKPFZ.js} +5 -5
- package/dist/chat/agent/sandbox.d.ts +2 -0
- package/dist/chat/conversations/sql/participants.d.ts +1 -0
- package/dist/chat/conversations/store.d.ts +0 -1
- package/dist/chat/resource-events/notification.d.ts +6 -1
- package/dist/chat/sandbox/errors.d.ts +4 -0
- package/dist/chat/sandbox/noninteractive-command.d.ts +1 -0
- package/dist/chat/sandbox/prepare-workspace.d.ts +27 -3
- package/dist/chat/sandbox/sandbox.d.ts +2 -0
- package/dist/chat/sandbox/session.d.ts +2 -0
- package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +5 -0
- package/dist/chat/sandbox/snapshot/install.d.ts +2 -2
- package/dist/chat/sandbox/snapshot/span.d.ts +3 -0
- package/dist/chat/sandbox/snapshot/store.d.ts +20 -17
- package/dist/chat/sandbox/snapshot/waiting-error.d.ts +15 -0
- package/dist/chat/sandbox/snapshot/workspace.d.ts +17 -0
- package/dist/chat/services/workspace-snapshot-wait.d.ts +27 -0
- package/dist/chat/workspaces/types.d.ts +1 -0
- package/dist/{chunk-2PWBS4JK.js → chunk-22T3HB44.js} +1 -1
- package/dist/{chunk-LNV3NNDO.js → chunk-3ZZEPLLB.js} +2 -2
- package/dist/{chunk-DBXTXY2Z.js → chunk-4K6VNP3S.js} +9 -9
- package/dist/{chunk-SZWILPFG.js → chunk-534BO42N.js} +45 -276
- package/dist/{chunk-QWPKRFG6.js → chunk-6OYVH66J.js} +1 -1
- package/dist/{chunk-ESIS6NVJ.js → chunk-ABLODWPO.js} +1 -1
- package/dist/{chunk-LY6QWCJI.js → chunk-AGJ4OQ2V.js} +1 -1
- package/dist/{chunk-KKY2R2QF.js → chunk-AQHSXA3J.js} +331 -2
- package/dist/{chunk-JRDM64UU.js → chunk-AVRWMQ4U.js} +1 -1
- package/dist/{chunk-B2RBW7CX.js → chunk-BFLMRTPD.js} +6 -6
- package/dist/{chunk-HXX3CSGJ.js → chunk-BHHWCNXI.js} +5 -5
- package/dist/{chunk-H5SVUUPE.js → chunk-BUGO42R6.js} +4 -4
- package/dist/{chunk-2XQ45FB2.js → chunk-D3UJTX4U.js} +1 -1
- package/dist/{chunk-V4SBMRZ3.js → chunk-FQ6BMP5P.js} +767 -81
- package/dist/{chunk-AJ6M3LLM.js → chunk-G3CQEUHI.js} +5 -5
- package/dist/{chunk-RHNT2FYF.js → chunk-H6ZXBFGX.js} +1 -1
- package/dist/{chunk-FLBOMXLS.js → chunk-IQRPDKPJ.js} +1 -1
- package/dist/{chunk-OOH45KJS.js → chunk-JVXZ3WDH.js} +6 -6
- package/dist/{chunk-HLEE6JNT.js → chunk-KEQAA42D.js} +1 -1
- package/dist/{chunk-E7MUDWFH.js → chunk-LAOP4EPL.js} +6 -6
- package/dist/{chunk-FIWDSKL2.js → chunk-OGRD5PFM.js} +1 -1
- package/dist/{chunk-MNKXBIIA.js → chunk-PRDKO3QB.js} +124 -13
- package/dist/{chunk-YAB6CALP.js → chunk-QCCLDJHB.js} +8 -8
- package/dist/{chunk-FDA3E627.js → chunk-RE4XWXBV.js} +6 -6
- package/dist/{chunk-WVDCJ26T.js → chunk-RGV6KHDM.js} +4 -4
- package/dist/{chunk-73FXUNOB.js → chunk-RGXOLPWO.js} +1 -1
- package/dist/{chunk-ELEAIRTG.js → chunk-TKB25A3L.js} +2 -2
- package/dist/{chunk-UZM72ORS.js → chunk-U3UDPGZG.js} +2 -2
- package/dist/{chunk-PLJ3UO67.js → chunk-UGWBJAGN.js} +1 -1
- package/dist/{chunk-OJQTYDDD.js → chunk-UMG7M32G.js} +19 -19
- package/dist/{chunk-MOVIDCPX.js → chunk-XCNS3CXE.js} +11 -17
- package/dist/{chunk-TRG4RCTT.js → chunk-XWUJWHFD.js} +204 -100
- package/dist/{chunk-2KSPJ6EE.js → chunk-ZCHHVTMF.js} +14 -5
- package/dist/cli/chat.js +31 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/conversation-participants.d.ts +17 -0
- package/dist/db/schema/conversations.d.ts +629 -1
- package/dist/db/schema/snapshots.d.ts +1 -1
- package/dist/db/schema.d.ts +18 -1
- package/dist/{db-ATGRVFSI.js → db-QVYOWATH.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-55TYSRIZ.js → oauth-callback-server-PLPAFXO6.js} +23 -23
- package/dist/{runner-FD4BRECW.js → runner-AGNEIOZS.js} +15 -15
- package/dist/{skills-5YY7QYV6.js → skills-U5KQ66EM.js} +6 -6
- package/dist/spawn-ZRYYZP2B.js +37 -0
- package/dist/{validation-KH5UQUV4.js → validation-QE4U45KS.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-5LWDUEO4.js → work-ATAXAHJJ.js} +18 -18
- package/dist/worker-LIL5AOER.js +24 -0
- package/migrations/0033_workspace_snapshot_active_build.sql +1 -0
- package/migrations/0034_strong_randall.sql +31 -0
- package/migrations/meta/0033_snapshot.json +2914 -0
- package/migrations/meta/0034_snapshot.json +3038 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +5 -5
- package/dist/spawn-6IS46YNW.js +0 -37
- package/dist/worker-XKVLTAI2.js +0 -24
|
@@ -13,25 +13,25 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XWUJWHFD.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XCNS3CXE.js";
|
|
19
|
+
import "./chunk-ZCHHVTMF.js";
|
|
20
|
+
import "./chunk-AQHSXA3J.js";
|
|
21
|
+
import "./chunk-H6ZXBFGX.js";
|
|
22
|
+
import "./chunk-3ZZEPLLB.js";
|
|
23
23
|
import "./chunk-VFUK3X5B.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-KEQAA42D.js";
|
|
25
|
+
import "./chunk-ABLODWPO.js";
|
|
26
|
+
import "./chunk-D3UJTX4U.js";
|
|
27
27
|
import "./chunk-CGA4ERJ5.js";
|
|
28
28
|
import "./chunk-M63DETLL.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-UGWBJAGN.js";
|
|
30
30
|
import "./chunk-6GWA276C.js";
|
|
31
31
|
import "./chunk-OOUNJNMR.js";
|
|
32
32
|
import "./chunk-H4HBKISO.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-AGJ4OQ2V.js";
|
|
34
|
+
import "./chunk-IQRPDKPJ.js";
|
|
35
35
|
import "./chunk-MLKGABMK.js";
|
|
36
36
|
export {
|
|
37
37
|
PluginHookDeniedError,
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { User } from "@sentry/junior-plugin-api";
|
|
1
2
|
import type { ArchiveConversationBody, ArchiveConversationResponse } from "../schema/conversation";
|
|
2
|
-
/**
|
|
3
|
-
export declare function
|
|
3
|
+
/** Read one viewer's archive timestamp for a conversation root. */
|
|
4
|
+
export declare function readConversationArchivedAt(viewer: User, conversationId: string): Promise<number | undefined>;
|
|
5
|
+
/** Archive or restore one conversation for the signed-in viewer. */
|
|
6
|
+
export declare function archiveConversation(viewer: User, conversationId: string, body: ArchiveConversationBody): Promise<ArchiveConversationResponse>;
|
|
@@ -7,10 +7,24 @@ export declare function conversationHasParticipantUser(userId: string): SQL;
|
|
|
7
7
|
* conversation. Used only for the actorEmail feed fallback.
|
|
8
8
|
*/
|
|
9
9
|
export declare function conversationHasParticipantEmail(email: string): SQL;
|
|
10
|
+
/** True when one user's personal feed has archived this root. */
|
|
11
|
+
export declare function conversationArchivedForUser(userId: string): SQL;
|
|
12
|
+
/** True when one user's personal feed has not archived this root. */
|
|
13
|
+
export declare function conversationNotArchivedForUser(userId: string): SQL;
|
|
14
|
+
/** True when one primary-email user's personal feed has archived this root. */
|
|
15
|
+
export declare function conversationArchivedForEmail(email: string): SQL;
|
|
16
|
+
/** True when one primary-email user's personal feed has not archived this root. */
|
|
17
|
+
export declare function conversationNotArchivedForEmail(email: string): SQL;
|
|
10
18
|
/** Root-actor ownership or a materialized participant row for the same person. */
|
|
11
19
|
export declare function viewerConversationMembership(args: {
|
|
12
20
|
actorMatch: SQL | undefined;
|
|
13
21
|
participantMatch: SQL | undefined;
|
|
14
22
|
}): SQL | undefined;
|
|
23
|
+
/** Read personal archive timestamps for a bounded set of conversation roots. */
|
|
24
|
+
export declare function conversationArchiveTimes(db: JuniorDatabase, conversationIds: readonly string[], subject: {
|
|
25
|
+
email: string;
|
|
26
|
+
} | {
|
|
27
|
+
userId: string;
|
|
28
|
+
} | undefined): Promise<Map<string, number>>;
|
|
15
29
|
/** Find which of the supplied roots include the linked viewer as a participant. */
|
|
16
30
|
export declare function conversationIdsWithParticipantUser(db: JuniorDatabase, conversationIds: readonly string[], userId: string): Promise<Set<string>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Conversation as StoredConversation } from "@/chat/conversations/store";
|
|
2
2
|
import type { ConversationEventHistory, ConversationSummaryReport, ConversationUsage } from "../schema/conversation";
|
|
3
3
|
import type { ConversationAccess } from "./access";
|
|
4
|
-
type ConversationProjectionSource = Pick<StoredConversation, "actor" | "
|
|
4
|
+
type ConversationProjectionSource = Pick<StoredConversation, "actor" | "channelName" | "conversationId" | "createdAtMs" | "execution" | "lastActivityAtMs" | "source" | "sessionSource" | "title" | "updatedAtMs">;
|
|
5
5
|
/** Describe whether a viewer can read one conversation's retained events. */
|
|
6
6
|
export declare function conversationEventHistory(args: {
|
|
7
7
|
canExposePayload: boolean;
|
|
@@ -10,6 +10,7 @@ export declare function conversationEventHistory(args: {
|
|
|
10
10
|
/** Project one durable conversation and its SQL metrics into the REST summary. */
|
|
11
11
|
export declare function conversationSummaryFromStoredConversation(args: {
|
|
12
12
|
access?: ConversationAccess;
|
|
13
|
+
archivedAtMs?: number;
|
|
13
14
|
auxiliaryCosts?: ConversationSummaryReport["auxiliaryCosts"];
|
|
14
15
|
conversation: ConversationProjectionSource;
|
|
15
16
|
durationMs: number;
|
|
@@ -80,7 +80,7 @@ export declare function readLocationDetail(locationId: string, options?: {
|
|
|
80
80
|
slackUserId?: string | undefined;
|
|
81
81
|
slackUserName?: string | undefined;
|
|
82
82
|
} | undefined;
|
|
83
|
-
archivedAt?: string | undefined;
|
|
83
|
+
archivedAt?: string | null | undefined;
|
|
84
84
|
channel?: string | undefined;
|
|
85
85
|
channelName?: string | undefined;
|
|
86
86
|
channelNameRedacted?: boolean | undefined;
|
|
@@ -630,7 +630,7 @@ export declare const peopleTreeConversation: import("drizzle-orm/pg-core").PgTab
|
|
|
630
630
|
identity: undefined;
|
|
631
631
|
generated: undefined;
|
|
632
632
|
}, {}, {}>;
|
|
633
|
-
|
|
633
|
+
legacyArchivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
634
634
|
name: string;
|
|
635
635
|
tableName: "junior_conversations";
|
|
636
636
|
dataType: "date";
|
|
@@ -1221,7 +1221,7 @@ export declare const peopleTreeConversation: import("drizzle-orm/pg-core").PgTab
|
|
|
1221
1221
|
identity: undefined;
|
|
1222
1222
|
generated: undefined;
|
|
1223
1223
|
}, {}, {}>;
|
|
1224
|
-
|
|
1224
|
+
legacyArchivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1225
1225
|
name: string;
|
|
1226
1226
|
tableName: "people_tree_conversation";
|
|
1227
1227
|
dataType: "date";
|
|
@@ -58,7 +58,7 @@ export declare const archiveConversationBodySchema: z.ZodObject<{
|
|
|
58
58
|
lastSeenAt: z.ZodString;
|
|
59
59
|
}, z.core.$strict>;
|
|
60
60
|
export declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
61
|
-
|
|
61
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
62
62
|
}, z.core.$strict>;
|
|
63
63
|
export declare const createConversationBodySchema: z.ZodObject<{
|
|
64
64
|
idempotencyKey: z.ZodString;
|
|
@@ -237,7 +237,7 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
237
237
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
238
238
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
239
239
|
}, z.core.$strict>>;
|
|
240
|
-
archivedAt: z.ZodOptional<z.ZodString
|
|
240
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
241
|
channel: z.ZodOptional<z.ZodString>;
|
|
242
242
|
channelName: z.ZodOptional<z.ZodString>;
|
|
243
243
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -749,7 +749,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
749
749
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
750
750
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
751
751
|
}, z.core.$strict>>;
|
|
752
|
-
archivedAt: z.ZodOptional<z.ZodString
|
|
752
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
753
|
channel: z.ZodOptional<z.ZodString>;
|
|
754
754
|
channelName: z.ZodOptional<z.ZodString>;
|
|
755
755
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1288,7 +1288,7 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
1288
1288
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
1289
1289
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
1290
1290
|
}, z.core.$strict>>;
|
|
1291
|
-
archivedAt: z.ZodOptional<z.ZodString
|
|
1291
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1292
1292
|
channel: z.ZodOptional<z.ZodString>;
|
|
1293
1293
|
channelName: z.ZodOptional<z.ZodString>;
|
|
1294
1294
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -187,7 +187,7 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
187
187
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
188
188
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
189
189
|
}, z.core.$strict>>;
|
|
190
|
-
archivedAt: z.ZodOptional<z.ZodString
|
|
190
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
191
|
channel: z.ZodOptional<z.ZodString>;
|
|
192
192
|
channelName: z.ZodOptional<z.ZodString>;
|
|
193
193
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -154,7 +154,7 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
154
154
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
155
155
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
156
156
|
}, z.core.$strict>>;
|
|
157
|
-
archivedAt: z.ZodOptional<z.ZodString
|
|
157
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
158
|
channel: z.ZodOptional<z.ZodString>;
|
|
159
159
|
channelName: z.ZodOptional<z.ZodString>;
|
|
160
160
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|