@sentry/junior 0.102.3 → 0.104.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-I4I2DHSW.js → agent-hooks-EOFSY2PD.js} +5 -5
- package/dist/api/conversations/archive.d.ts +7 -0
- package/dist/api/conversations/detail.d.ts +7 -0
- package/dist/api/conversations/list.d.ts +109 -0
- package/dist/api/conversations/routes.d.ts +3 -0
- package/dist/api/conversations/schema.d.ts +88 -69
- package/dist/api/conversations/stats.d.ts +7 -0
- package/dist/api/conversations/subagent.d.ts +7 -0
- package/dist/api/http.d.ts +5 -0
- package/dist/api/locations/detail.d.ts +10 -2
- package/dist/api/locations/list.d.ts +7 -0
- package/dist/api/locations/routes.d.ts +3 -0
- package/dist/api/locations/schema.d.ts +4 -3
- package/dist/api/people/list.d.ts +7 -0
- package/dist/api/people/profile.d.ts +7 -0
- package/dist/api/people/routes.d.ts +3 -0
- package/dist/api/people/schema.d.ts +35 -33
- package/dist/api/people/shared.d.ts +4 -4
- package/dist/api/route.d.ts +7 -0
- package/dist/api/schema.js +11 -17
- package/dist/api.js +2184 -88
- package/dist/app.js +120 -162
- package/dist/chat/conversations/history.d.ts +6 -6
- package/dist/chat/conversations/store.d.ts +1 -0
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/plugins/agent-hooks.d.ts +2 -2
- package/dist/chat/resource-events/store.d.ts +2 -2
- package/dist/chat/sandbox/runtime-dependencies.d.ts +2 -0
- package/dist/chat/sandbox/sandbox.d.ts +1 -0
- package/dist/chat/services/provider-retry.d.ts +1 -2
- package/dist/chat/slack/tools/conversation-search.d.ts +2 -2
- package/dist/chat/state/session-log.d.ts +2 -2
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/tools/search-tools.d.ts +2 -2
- package/dist/{chunk-ZSHL44IQ.js → chunk-4PDVOHXP.js} +1 -1
- package/dist/{chunk-3OABPOHR.js → chunk-7G4J3CR7.js} +11 -2
- package/dist/chunk-AIRE7Q2W.js +362 -0
- package/dist/{chunk-QZGVPPIJ.js → chunk-BCULHGZK.js} +24 -4
- package/dist/{chunk-IQ36I3DF.js → chunk-CCTCIISK.js} +1 -1
- package/dist/{chunk-SHBPSE7A.js → chunk-M3UAVLEN.js} +2 -3
- package/dist/{chunk-EMUZSROX.js → chunk-O7ILGCMJ.js} +78 -1
- package/dist/{chunk-EOB77KME.js → chunk-QDKRE3LS.js} +340 -9
- package/dist/{chunk-DTUSCR2Y.js → chunk-QVTVCJR4.js} +7 -7
- package/dist/{chunk-5K4N73TP.js → chunk-RMZ65YAA.js} +3 -3
- package/dist/{chunk-VSAFV2GI.js → chunk-RYDF4GOX.js} +3 -3
- package/dist/{chunk-ZIX4PNBI.js → chunk-TMWUGGSA.js} +37 -35
- package/dist/{chunk-3UK5DFKW.js → chunk-U26ZWZCN.js} +1 -1
- package/dist/{chunk-X2IPNCB5.js → chunk-VDHMFCDY.js} +65 -12
- package/dist/cli/chat.js +13 -14
- package/dist/cli/plugins.js +6 -6
- package/dist/cli/snapshot-warmup.js +7 -3
- package/dist/cli/upgrade.js +6 -7
- package/dist/db/schema/conversations.d.ts +17 -0
- package/dist/db/schema.d.ts +17 -0
- package/dist/{db-6QP6HY7U.js → db-PDMC67T3.js} +2 -2
- package/dist/{legacy-import-R3BMM2GH.js → legacy-import-G333RHJZ.js} +3 -3
- package/dist/reporting-schema.d.ts +4 -4
- package/dist/{runner-C2ZTIOUD.js → runner-6A7MQRUE.js} +9 -10
- package/migrations/0004_useful_magus.sql +1 -0
- package/migrations/meta/0004_snapshot.json +1041 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +6 -6
- package/dist/api/conversations/list.query.d.ts +0 -103
- package/dist/chunk-2RNOB32R.js +0 -17
- package/dist/chunk-4XNQSJAX.js +0 -331
- package/dist/chunk-4YN2ZXKB.js +0 -66
- package/dist/chunk-B5QS4AVO.js +0 -319
- package/dist/chunk-F4CQEUTP.js +0 -77
- package/dist/chunk-HYDQULR2.js +0 -214
- package/dist/chunk-KFP3TZOS.js +0 -102
- package/dist/chunk-LJB2TLVT.js +0 -273
- package/dist/chunk-LVUKF5CE.js +0 -63
- package/dist/chunk-NSP6OGL2.js +0 -671
- package/dist/chunk-QNVHH5PU.js +0 -20
- package/dist/chunk-QOZOJNSE.js +0 -96
- package/dist/chunk-WPHCUGN7.js +0 -84
- package/dist/detail-OEIVZYXS.js +0 -68
- package/dist/detail-V37NTVBN.js +0 -29
- package/dist/list-AJ6RWBOG.js +0 -30
- package/dist/list-FWLIZHSW.js +0 -30
- package/dist/list-NTUT6A5M.js +0 -121
- package/dist/plugin-conversations-F3IBVNFX.js +0 -37
- package/dist/profile-3FRQP4HP.js +0 -212
- package/dist/reporting/plugin-conversations.d.ts +0 -3
- package/dist/stats-7UFY6FPE.js +0 -174
- package/dist/subagent-X3ZWJHR4.js +0 -49
|
@@ -40,11 +40,11 @@ export declare function readLocationDetail(locationId: string): Promise<{
|
|
|
40
40
|
displayTitle: string;
|
|
41
41
|
cumulativeDurationMs: number;
|
|
42
42
|
conversationId: string;
|
|
43
|
-
status: "
|
|
43
|
+
status: "completed" | "failed" | "active";
|
|
44
44
|
startedAt: string;
|
|
45
45
|
lastSeenAt: string;
|
|
46
46
|
lastProgressAt: string;
|
|
47
|
-
surface: "
|
|
47
|
+
surface: "slack" | "api" | "internal" | "scheduler";
|
|
48
48
|
cumulativeUsage?: {
|
|
49
49
|
inputTokens?: number | undefined;
|
|
50
50
|
outputTokens?: number | undefined;
|
|
@@ -66,6 +66,7 @@ export declare function readLocationDetail(locationId: string): Promise<{
|
|
|
66
66
|
slackUserId?: string | undefined;
|
|
67
67
|
slackUserName?: string | undefined;
|
|
68
68
|
} | undefined;
|
|
69
|
+
archivedAt?: string | undefined;
|
|
69
70
|
channel?: string | undefined;
|
|
70
71
|
channelName?: string | undefined;
|
|
71
72
|
channelNameRedacted?: boolean | undefined;
|
|
@@ -79,3 +80,10 @@ export declare function readLocationDetail(locationId: string): Promise<{
|
|
|
79
80
|
costUsd?: number | undefined;
|
|
80
81
|
tokens?: number | undefined;
|
|
81
82
|
} | undefined>;
|
|
83
|
+
/** Serve one public location detail endpoint. */
|
|
84
|
+
declare const _default: {
|
|
85
|
+
method: "get";
|
|
86
|
+
path: string;
|
|
87
|
+
handler: (c: import("hono").Context<any, any, import("hono/types").BlankInput>) => Promise<Response>;
|
|
88
|
+
};
|
|
89
|
+
export default _default;
|
|
@@ -35,3 +35,10 @@ export declare function readLocationDirectory(): Promise<{
|
|
|
35
35
|
windowEnd: string;
|
|
36
36
|
windowStart: string;
|
|
37
37
|
}>;
|
|
38
|
+
/** Serve the public location directory endpoint. */
|
|
39
|
+
declare const _default: {
|
|
40
|
+
method: "get";
|
|
41
|
+
path: string;
|
|
42
|
+
handler: () => Promise<Response>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
@@ -151,18 +151,18 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
151
151
|
}, z.core.$strict>>;
|
|
152
152
|
conversationId: z.ZodString;
|
|
153
153
|
status: z.ZodEnum<{
|
|
154
|
-
active: "active";
|
|
155
|
-
failed: "failed";
|
|
156
154
|
completed: "completed";
|
|
155
|
+
failed: "failed";
|
|
156
|
+
active: "active";
|
|
157
157
|
}>;
|
|
158
158
|
startedAt: z.ZodString;
|
|
159
159
|
lastSeenAt: z.ZodString;
|
|
160
160
|
lastProgressAt: z.ZodString;
|
|
161
161
|
surface: z.ZodEnum<{
|
|
162
|
+
slack: "slack";
|
|
162
163
|
api: "api";
|
|
163
164
|
internal: "internal";
|
|
164
165
|
scheduler: "scheduler";
|
|
165
|
-
slack: "slack";
|
|
166
166
|
}>;
|
|
167
167
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
168
168
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -170,6 +170,7 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
170
170
|
slackUserId: z.ZodOptional<z.ZodString>;
|
|
171
171
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
172
172
|
}, z.core.$strict>>;
|
|
173
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
173
174
|
channel: z.ZodOptional<z.ZodString>;
|
|
174
175
|
channelName: z.ZodOptional<z.ZodString>;
|
|
175
176
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import type { ActorDirectoryReport } from "./schema";
|
|
2
2
|
/** Load the people list from verified user identities in SQL. */
|
|
3
3
|
export declare function readPeopleList(): Promise<ActorDirectoryReport>;
|
|
4
|
+
/** Serve the People directory endpoint. */
|
|
5
|
+
declare const _default: {
|
|
6
|
+
method: "get";
|
|
7
|
+
path: string;
|
|
8
|
+
handler: () => Promise<Response>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import type { ActorProfileReport } from "./schema";
|
|
2
2
|
/** Load one person profile from verified user identities in SQL. */
|
|
3
3
|
export declare function readPeopleProfile(email: string): Promise<ActorProfileReport>;
|
|
4
|
+
/** Serve one People profile endpoint. */
|
|
5
|
+
declare const _default: {
|
|
6
|
+
method: "get";
|
|
7
|
+
path: string;
|
|
8
|
+
handler: (c: import("hono").Context<any, any, import("hono/types").BlankInput>) => Promise<Response>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { actorIdentitySchema } from "../conversations/schema";
|
|
3
3
|
export declare const peopleConversationSummaryReportSchema: z.ZodObject<{
|
|
4
|
+
conversationId: z.ZodString;
|
|
5
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
4
6
|
status: z.ZodEnum<{
|
|
5
|
-
active: "active";
|
|
6
|
-
failed: "failed";
|
|
7
7
|
completed: "completed";
|
|
8
|
+
failed: "failed";
|
|
9
|
+
active: "active";
|
|
8
10
|
}>;
|
|
11
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
email: z.ZodOptional<z.ZodString>;
|
|
15
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
16
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
9
19
|
surface: z.ZodEnum<{
|
|
20
|
+
slack: "slack";
|
|
10
21
|
api: "api";
|
|
11
22
|
internal: "internal";
|
|
12
23
|
scheduler: "scheduler";
|
|
13
|
-
slack: "slack";
|
|
14
24
|
}>;
|
|
15
25
|
displayTitle: z.ZodString;
|
|
16
26
|
cumulativeDurationMs: z.ZodNumber;
|
|
17
|
-
conversationId: z.ZodString;
|
|
18
27
|
startedAt: z.ZodString;
|
|
19
28
|
lastSeenAt: z.ZodString;
|
|
20
29
|
lastProgressAt: z.ZodString;
|
|
21
|
-
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
22
|
-
email: z.ZodOptional<z.ZodString>;
|
|
23
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
24
|
-
slackUserId: z.ZodOptional<z.ZodString>;
|
|
25
|
-
slackUserName: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, z.core.$strict>>;
|
|
27
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
28
|
-
channelName: z.ZodOptional<z.ZodString>;
|
|
29
30
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
30
31
|
locationId: z.ZodOptional<z.ZodString>;
|
|
31
32
|
}, z.core.$strict>;
|
|
32
33
|
export declare const peopleConversationStatsItemSchema: z.ZodObject<{
|
|
34
|
+
failed: z.ZodNumber;
|
|
35
|
+
label: z.ZodString;
|
|
36
|
+
durationMs: z.ZodNumber;
|
|
33
37
|
active: z.ZodNumber;
|
|
34
38
|
conversations: z.ZodNumber;
|
|
35
|
-
durationMs: z.ZodNumber;
|
|
36
|
-
failed: z.ZodNumber;
|
|
37
39
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
label: z.ZodString;
|
|
39
40
|
}, z.core.$strict>;
|
|
40
41
|
export declare const actorActivityDayReportSchema: z.ZodObject<{
|
|
41
42
|
active: z.ZodNumber;
|
|
@@ -118,39 +119,40 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
118
119
|
}, z.core.$strict>>;
|
|
119
120
|
generatedAt: z.ZodString;
|
|
120
121
|
locations: z.ZodArray<z.ZodObject<{
|
|
122
|
+
failed: z.ZodNumber;
|
|
123
|
+
label: z.ZodString;
|
|
124
|
+
durationMs: z.ZodNumber;
|
|
121
125
|
active: z.ZodNumber;
|
|
122
126
|
conversations: z.ZodNumber;
|
|
123
|
-
durationMs: z.ZodNumber;
|
|
124
|
-
failed: z.ZodNumber;
|
|
125
127
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
126
|
-
label: z.ZodString;
|
|
127
128
|
}, z.core.$strict>>;
|
|
128
129
|
recentConversations: z.ZodArray<z.ZodObject<{
|
|
130
|
+
conversationId: z.ZodString;
|
|
131
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
129
132
|
status: z.ZodEnum<{
|
|
130
|
-
active: "active";
|
|
131
|
-
failed: "failed";
|
|
132
133
|
completed: "completed";
|
|
134
|
+
failed: "failed";
|
|
135
|
+
active: "active";
|
|
133
136
|
}>;
|
|
137
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
138
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
139
|
+
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
email: z.ZodOptional<z.ZodString>;
|
|
141
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
142
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
143
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
134
145
|
surface: z.ZodEnum<{
|
|
146
|
+
slack: "slack";
|
|
135
147
|
api: "api";
|
|
136
148
|
internal: "internal";
|
|
137
149
|
scheduler: "scheduler";
|
|
138
|
-
slack: "slack";
|
|
139
150
|
}>;
|
|
140
151
|
displayTitle: z.ZodString;
|
|
141
152
|
cumulativeDurationMs: z.ZodNumber;
|
|
142
|
-
conversationId: z.ZodString;
|
|
143
153
|
startedAt: z.ZodString;
|
|
144
154
|
lastSeenAt: z.ZodString;
|
|
145
155
|
lastProgressAt: z.ZodString;
|
|
146
|
-
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
147
|
-
email: z.ZodOptional<z.ZodString>;
|
|
148
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
149
|
-
slackUserId: z.ZodOptional<z.ZodString>;
|
|
150
|
-
slackUserName: z.ZodOptional<z.ZodString>;
|
|
151
|
-
}, z.core.$strict>>;
|
|
152
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
153
|
-
channelName: z.ZodOptional<z.ZodString>;
|
|
154
156
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
155
157
|
locationId: z.ZodOptional<z.ZodString>;
|
|
156
158
|
}, z.core.$strict>>;
|
|
@@ -162,12 +164,12 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
162
164
|
}, z.core.$strict>;
|
|
163
165
|
source: z.ZodLiteral<"conversation_index">;
|
|
164
166
|
surfaces: z.ZodArray<z.ZodObject<{
|
|
167
|
+
failed: z.ZodNumber;
|
|
168
|
+
label: z.ZodString;
|
|
169
|
+
durationMs: z.ZodNumber;
|
|
165
170
|
active: z.ZodNumber;
|
|
166
171
|
conversations: z.ZodNumber;
|
|
167
|
-
durationMs: z.ZodNumber;
|
|
168
|
-
failed: z.ZodNumber;
|
|
169
172
|
tokens: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
label: z.ZodString;
|
|
171
173
|
}, z.core.$strict>>;
|
|
172
174
|
totals: z.ZodObject<{
|
|
173
175
|
active: z.ZodNumber;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ActorActivityDayReport, ConversationStatsItem, ActorTotalsReport } from "./schema";
|
|
2
2
|
export declare const RECENT_LIMIT = 25;
|
|
3
|
-
export declare const ACTIVITY_DAYS =
|
|
3
|
+
export declare const ACTIVITY_DAYS = 365;
|
|
4
4
|
/** Normalize emails before matching people API rows. */
|
|
5
5
|
export declare function normalizeEmail(email: string | undefined): string | undefined;
|
|
6
6
|
/** Build a zeroed totals object for people API aggregations. */
|
|
@@ -11,11 +11,11 @@ export declare function emptyActivityDay(date: string): ActorActivityDayReport;
|
|
|
11
11
|
export declare function activityDays(days: Map<string, ActorActivityDayReport>, nowMs: number): ActorActivityDayReport[];
|
|
12
12
|
/** Return deterministic stats rows for people API responses. */
|
|
13
13
|
export declare function statsItems(map: Map<string, ConversationStatsItem>): {
|
|
14
|
-
active: number;
|
|
15
|
-
conversations: number;
|
|
16
|
-
durationMs: number;
|
|
17
14
|
failed: number;
|
|
18
15
|
label: string;
|
|
16
|
+
durationMs: number;
|
|
17
|
+
active: number;
|
|
18
|
+
conversations: number;
|
|
19
19
|
tokens?: number | undefined;
|
|
20
20
|
}[];
|
|
21
21
|
/** Build the verified Slack actor predicate shared by People aggregate and recent-row queries. */
|
package/dist/api/schema.js
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
+
actorDirectoryReportSchema,
|
|
3
|
+
actorProfileReportSchema,
|
|
4
|
+
conversationDetailReportSchema,
|
|
2
5
|
conversationFeedQuerySchema,
|
|
6
|
+
conversationFeedSchema,
|
|
3
7
|
conversationParamsSchema,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
subagentParamsSchema
|
|
7
|
-
} from "../chunk-2RNOB32R.js";
|
|
8
|
-
import {
|
|
8
|
+
conversationStatsReportSchema,
|
|
9
|
+
conversationSubagentTranscriptReportSchema,
|
|
9
10
|
dailyConversationActivitySchema,
|
|
10
11
|
locationActivityDayReportSchema,
|
|
11
12
|
locationDetailReportSchema,
|
|
12
|
-
locationDirectoryReportSchema
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "../chunk-4YN2ZXKB.js";
|
|
18
|
-
import {
|
|
19
|
-
conversationDetailReportSchema,
|
|
20
|
-
conversationFeedSchema,
|
|
21
|
-
conversationStatsReportSchema,
|
|
22
|
-
conversationSubagentTranscriptReportSchema
|
|
23
|
-
} from "../chunk-HYDQULR2.js";
|
|
13
|
+
locationDirectoryReportSchema,
|
|
14
|
+
locationParamsSchema,
|
|
15
|
+
personParamsSchema,
|
|
16
|
+
subagentParamsSchema
|
|
17
|
+
} from "../chunk-AIRE7Q2W.js";
|
|
24
18
|
import {
|
|
25
19
|
healthReportSchema,
|
|
26
20
|
pluginOperationalReportFeedSchema,
|