@sentry/junior 0.103.0 → 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.
Files changed (77) hide show
  1. package/dist/{agent-hooks-NHIXBJW3.js → agent-hooks-EOFSY2PD.js} +3 -3
  2. package/dist/api/conversations/archive.d.ts +7 -0
  3. package/dist/api/conversations/detail.d.ts +7 -0
  4. package/dist/api/conversations/list.d.ts +109 -0
  5. package/dist/api/conversations/routes.d.ts +3 -0
  6. package/dist/api/conversations/schema.d.ts +72 -69
  7. package/dist/api/conversations/stats.d.ts +7 -0
  8. package/dist/api/conversations/subagent.d.ts +7 -0
  9. package/dist/api/http.d.ts +5 -0
  10. package/dist/api/locations/detail.d.ts +10 -2
  11. package/dist/api/locations/list.d.ts +7 -0
  12. package/dist/api/locations/routes.d.ts +3 -0
  13. package/dist/api/locations/schema.d.ts +4 -3
  14. package/dist/api/people/list.d.ts +7 -0
  15. package/dist/api/people/profile.d.ts +7 -0
  16. package/dist/api/people/routes.d.ts +3 -0
  17. package/dist/api/people/schema.d.ts +35 -33
  18. package/dist/api/people/shared.d.ts +3 -3
  19. package/dist/api/route.d.ts +7 -0
  20. package/dist/api/schema.js +11 -17
  21. package/dist/api.js +2184 -88
  22. package/dist/app.js +107 -101
  23. package/dist/chat/conversations/history.d.ts +6 -6
  24. package/dist/chat/conversations/store.d.ts +1 -0
  25. package/dist/chat/pi/messages.d.ts +2 -2
  26. package/dist/chat/plugins/agent-hooks.d.ts +2 -2
  27. package/dist/chat/resource-events/store.d.ts +2 -2
  28. package/dist/chat/slack/tools/conversation-search.d.ts +2 -2
  29. package/dist/chat/state/session-log.d.ts +2 -2
  30. package/dist/chat/task-execution/store.d.ts +2 -2
  31. package/dist/chat/tools/search-tools.d.ts +2 -2
  32. package/dist/chunk-AIRE7Q2W.js +362 -0
  33. package/dist/{chunk-HOBDQQJY.js → chunk-BCULHGZK.js} +23 -3
  34. package/dist/{chunk-DEQZ23O3.js → chunk-O7ILGCMJ.js} +77 -0
  35. package/dist/{chunk-C4BT2P2K.js → chunk-QDKRE3LS.js} +339 -8
  36. package/dist/{chunk-GY5ZRYPH.js → chunk-QVTVCJR4.js} +5 -5
  37. package/dist/{chunk-JXQWOCBE.js → chunk-RMZ65YAA.js} +2 -2
  38. package/dist/{chunk-E2VS47AZ.js → chunk-RYDF4GOX.js} +2 -2
  39. package/dist/{chunk-OE453VRG.js → chunk-TMWUGGSA.js} +26 -28
  40. package/dist/{chunk-JPXLAJUU.js → chunk-VDHMFCDY.js} +9 -10
  41. package/dist/cli/chat.js +10 -11
  42. package/dist/cli/plugins.js +4 -4
  43. package/dist/cli/upgrade.js +3 -4
  44. package/dist/db/schema/conversations.d.ts +17 -0
  45. package/dist/db/schema.d.ts +17 -0
  46. package/dist/{db-I343BSOM.js → db-PDMC67T3.js} +1 -1
  47. package/dist/{legacy-import-M7VBOQTK.js → legacy-import-G333RHJZ.js} +2 -2
  48. package/dist/reporting-schema.d.ts +4 -4
  49. package/dist/{runner-IEE5G4NV.js → runner-6A7MQRUE.js} +7 -8
  50. package/migrations/0004_useful_magus.sql +1 -0
  51. package/migrations/meta/0004_snapshot.json +1041 -0
  52. package/migrations/meta/_journal.json +7 -0
  53. package/package.json +6 -6
  54. package/dist/api/conversations/list.query.d.ts +0 -103
  55. package/dist/chunk-2RNOB32R.js +0 -17
  56. package/dist/chunk-6FPTHPXF.js +0 -77
  57. package/dist/chunk-6LBNXC4F.js +0 -66
  58. package/dist/chunk-7LLRS2OK.js +0 -215
  59. package/dist/chunk-B43K4C5K.js +0 -102
  60. package/dist/chunk-BQCPAIAB.js +0 -319
  61. package/dist/chunk-FW7DVHTL.js +0 -673
  62. package/dist/chunk-GCGRQJR5.js +0 -84
  63. package/dist/chunk-HRDWLE7Q.js +0 -273
  64. package/dist/chunk-LVUKF5CE.js +0 -63
  65. package/dist/chunk-QNVHH5PU.js +0 -20
  66. package/dist/chunk-QOZOJNSE.js +0 -96
  67. package/dist/chunk-VKFOVMZL.js +0 -331
  68. package/dist/detail-ENVV4HIY.js +0 -68
  69. package/dist/detail-UIOKVIET.js +0 -29
  70. package/dist/list-WR5U6JVM.js +0 -30
  71. package/dist/list-XZ4HKQ4R.js +0 -121
  72. package/dist/list-ZOUSMSEH.js +0 -30
  73. package/dist/plugin-conversations-DTUP4RH6.js +0 -37
  74. package/dist/profile-UO2N3XXG.js +0 -212
  75. package/dist/reporting/plugin-conversations.d.ts +0 -3
  76. package/dist/stats-NZIET4LT.js +0 -174
  77. package/dist/subagent-DY6XKTJ5.js +0 -49
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { Hono } from "hono";
2
+ /** Create the HTTP routes owned by the locations API. */
3
+ export declare function createLocationRoutes(): Hono;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { Hono } from "hono";
2
+ /** Create the HTTP routes owned by the People API. */
3
+ export declare function createPeopleRoutes(): Hono;
@@ -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;
@@ -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. */
@@ -0,0 +1,7 @@
1
+ import type { Handler } from "hono";
2
+ /** Describe one API route with a uniform Hono handler contract. */
3
+ export type ApiRoute = {
4
+ handler: Handler;
5
+ method: "get" | "patch";
6
+ path: string;
7
+ };
@@ -1,26 +1,20 @@
1
1
  import {
2
+ actorDirectoryReportSchema,
3
+ actorProfileReportSchema,
4
+ conversationDetailReportSchema,
2
5
  conversationFeedQuerySchema,
6
+ conversationFeedSchema,
3
7
  conversationParamsSchema,
4
- locationParamsSchema,
5
- personParamsSchema,
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
- } from "../chunk-GCGRQJR5.js";
14
- import {
15
- actorDirectoryReportSchema,
16
- actorProfileReportSchema
17
- } from "../chunk-6LBNXC4F.js";
18
- import {
19
- conversationDetailReportSchema,
20
- conversationFeedSchema,
21
- conversationStatsReportSchema,
22
- conversationSubagentTranscriptReportSchema
23
- } from "../chunk-7LLRS2OK.js";
13
+ locationDirectoryReportSchema,
14
+ locationParamsSchema,
15
+ personParamsSchema,
16
+ subagentParamsSchema
17
+ } from "../chunk-AIRE7Q2W.js";
24
18
  import {
25
19
  healthReportSchema,
26
20
  pluginOperationalReportFeedSchema,