@sentry/junior 0.95.0 → 0.97.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 (144) hide show
  1. package/dist/{agent-hooks-FTQ5EGPO.js → agent-hooks-XSUIVRQS.js} +10 -8
  2. package/dist/{reporting → api}/conversations/activity.d.ts +1 -1
  3. package/dist/api/conversations/detail-projection.d.ts +10 -0
  4. package/dist/api/conversations/detail.d.ts +3 -0
  5. package/dist/api/conversations/detail.query.d.ts +3 -0
  6. package/dist/api/conversations/list.d.ts +3 -0
  7. package/dist/api/conversations/list.query.d.ts +94 -0
  8. package/dist/api/conversations/projection.d.ts +14 -0
  9. package/dist/api/conversations/schema.d.ts +683 -0
  10. package/dist/{reporting → api}/conversations/shared.d.ts +1 -5
  11. package/dist/api/conversations/stats.d.ts +3 -0
  12. package/dist/api/conversations/stats.query.d.ts +3 -0
  13. package/dist/api/conversations/subagent.d.ts +3 -0
  14. package/dist/{reporting → api}/conversations/transcript.d.ts +4 -4
  15. package/dist/api/people/list.d.ts +1 -2
  16. package/dist/api/people/list.query.d.ts +3 -4
  17. package/dist/api/people/profile.d.ts +1 -2
  18. package/dist/api/people/profile.query.d.ts +3 -4
  19. package/dist/api/people/schema.d.ts +193 -0
  20. package/dist/api/people/shared.d.ts +31 -9
  21. package/dist/api/schema.d.ts +20 -0
  22. package/dist/api/schema.js +50 -0
  23. package/dist/api-reference.d.ts +4 -3
  24. package/dist/api.d.ts +3 -0
  25. package/dist/api.js +156 -0
  26. package/dist/app.d.ts +1 -4
  27. package/dist/app.js +108 -370
  28. package/dist/build/virtual-config.d.ts +2 -2
  29. package/dist/{catalog-runtime-2D7IVKUT.js → catalog-runtime-PFHVMHDR.js} +5 -4
  30. package/dist/chat/agent/resume.d.ts +3 -1
  31. package/dist/chat/agent/tools.d.ts +2 -1
  32. package/dist/chat/config.d.ts +1 -8
  33. package/dist/chat/conversations/history.d.ts +241 -27
  34. package/dist/chat/conversations/legacy-advisor-session.d.ts +7 -0
  35. package/dist/chat/conversations/legacy-import.d.ts +2 -2
  36. package/dist/chat/conversations/projection.d.ts +19 -3
  37. package/dist/chat/conversations/sql/legacy-history-import.d.ts +1 -1
  38. package/dist/chat/conversations/sql/store.d.ts +15 -9
  39. package/dist/chat/conversations/store.d.ts +9 -4
  40. package/dist/chat/logging.d.ts +2 -2
  41. package/dist/chat/model-profile.d.ts +14 -0
  42. package/dist/chat/pi/transcript.d.ts +5 -3
  43. package/dist/chat/plugins/auth/oauth-request.d.ts +2 -0
  44. package/dist/chat/resource-events/notification.d.ts +2 -0
  45. package/dist/chat/resource-events/store.d.ts +2 -2
  46. package/dist/chat/runtime/agent-run-outcome.d.ts +3 -0
  47. package/dist/chat/sentry.d.ts +1 -1
  48. package/dist/chat/services/context-compaction.d.ts +15 -0
  49. package/dist/chat/services/turn-result.d.ts +1 -0
  50. package/dist/chat/services/turn-session-record.d.ts +6 -6
  51. package/dist/chat/state/turn-session.d.ts +18 -5
  52. package/dist/chat/task-execution/store.d.ts +2 -2
  53. package/dist/chat/tools/handoff/tool.d.ts +45 -0
  54. package/dist/chat/tools/types.d.ts +7 -2
  55. package/dist/chat/usage.d.ts +27 -13
  56. package/dist/{chunk-6ONME5IG.js → chunk-35BNLDOJ.js} +339 -578
  57. package/dist/{chunk-HDTO3A74.js → chunk-3ECW2K2O.js} +8 -3
  58. package/dist/{chunk-CRRBJ3JP.js → chunk-3F4OPKGF.js} +90 -56
  59. package/dist/chunk-3V7OFJZC.js +264 -0
  60. package/dist/chunk-4ZNGQH7C.js +25 -0
  61. package/dist/{chunk-NSCHU54X.js → chunk-5HLDPVYS.js} +15 -448
  62. package/dist/{chunk-3DA7X2U3.js → chunk-6GWA276C.js} +15 -0
  63. package/dist/{chunk-HZNJLKKI.js → chunk-6U26PYI5.js} +24 -14
  64. package/dist/chunk-AUUCAFDE.js +546 -0
  65. package/dist/{chunk-6APU57E6.js → chunk-B3IT5END.js} +41 -260
  66. package/dist/chunk-CEA3A3UA.js +86 -0
  67. package/dist/{chunk-AYP4ERVZ.js → chunk-D5KZYS4T.js} +1 -1
  68. package/dist/{chunk-GUE7HTNR.js → chunk-EEZCY5WX.js} +79 -29
  69. package/dist/{chunk-E3E2XNCN.js → chunk-EOWXRY5E.js} +2 -2
  70. package/dist/{chunk-5XMNOD3S.js → chunk-FBHZJFHI.js} +3 -3
  71. package/dist/{chunk-CZEX6KIQ.js → chunk-G3E7SCME.js} +0 -23
  72. package/dist/chunk-GUAP3H7O.js +319 -0
  73. package/dist/{chunk-WCMQJE4F.js → chunk-H66UCBPW.js} +7 -5
  74. package/dist/{chunk-WPOJ443W.js → chunk-I35CTGPO.js} +58 -6
  75. package/dist/{chunk-GVOUCI2O.js → chunk-LMJPRYHP.js} +16 -6
  76. package/dist/chunk-LUAE4MGW.js +199 -0
  77. package/dist/{chunk-GY34VGP5.js → chunk-LVA4I4H7.js} +3 -1
  78. package/dist/chunk-LVUKF5CE.js +63 -0
  79. package/dist/{chunk-EKNJM5IG.js → chunk-NG2AV7IB.js} +2 -72
  80. package/dist/chunk-ON6YKIQ7.js +260 -0
  81. package/dist/chunk-PDO5BLNM.js +22 -0
  82. package/dist/chunk-QNVHH5PU.js +20 -0
  83. package/dist/{chunk-XX4N4E6C.js → chunk-T533JLM3.js} +9 -11
  84. package/dist/chunk-UAMKJPDF.js +11 -0
  85. package/dist/chunk-VFH4ZKZT.js +66 -0
  86. package/dist/{chunk-KDPCGVIT.js → chunk-WGXMTFNU.js} +17 -75
  87. package/dist/{chunk-WAGQ377B.js → chunk-WJOSZOON.js} +288 -263
  88. package/dist/chunk-WTYEKPXU.js +451 -0
  89. package/dist/{chunk-HCXXB35T.js → chunk-XIRPQQVE.js} +613 -369
  90. package/dist/cli/chat.js +26 -23
  91. package/dist/cli/check.js +6 -5
  92. package/dist/cli/init.js +12 -0
  93. package/dist/cli/main.js +1 -1
  94. package/dist/cli/plugins.js +14 -11
  95. package/dist/cli/snapshot-warmup.js +10 -8
  96. package/dist/cli/upgrade.js +267 -139
  97. package/dist/db/db.d.ts +4 -0
  98. package/dist/db/schema/conversations.d.ts +128 -0
  99. package/dist/db/schema.d.ts +129 -60
  100. package/dist/{db-W55B74OP.js → db-BWXYIKFQ.js} +5 -5
  101. package/dist/detail-GA6NXWQJ.js +43 -0
  102. package/dist/discovery-RMHYSRL7.js +43 -0
  103. package/dist/handlers/health.d.ts +3 -0
  104. package/dist/instrumentation.js +2 -2
  105. package/dist/{legacy-import-ZPLGLAFD.js → legacy-import-3NQJVGQL.js} +6 -6
  106. package/dist/{api/people/list.js → list-A3WFRIYX.js} +26 -16
  107. package/dist/list-UXJI5Q5X.js +27 -0
  108. package/dist/nitro.d.ts +1 -1
  109. package/dist/nitro.js +2 -1
  110. package/dist/plugin-conversations-DDNGC35A.js +36 -0
  111. package/dist/{api/people/profile.js → profile-4RYDXWTF.js} +33 -18
  112. package/dist/reporting/plugin-conversations.d.ts +3 -0
  113. package/dist/reporting-schema.d.ts +140 -0
  114. package/dist/reporting.d.ts +12 -81
  115. package/dist/{runner-OOSBDYRK.js → runner-JALSYH2P.js} +19 -14
  116. package/dist/{sentry-EGFOV3DH.js → sentry-JMWTS32N.js} +11 -1
  117. package/dist/skills-MAZXZ2KE.js +26 -0
  118. package/dist/stats-XKXH3PTY.js +217 -0
  119. package/dist/subagent-TZ55XY37.js +48 -0
  120. package/dist/usage-schema.d.ts +25 -0
  121. package/dist/{validation-QCGRFRFZ.js → validation-FMEAEKCY.js} +6 -5
  122. package/migrations/0000_initial.sql +115 -0
  123. package/migrations/0001_conversation_metrics.sql +4 -0
  124. package/migrations/README.md +12 -30
  125. package/migrations/meta/0000_snapshot.json +1 -33
  126. package/migrations/meta/0001_snapshot.json +972 -0
  127. package/migrations/meta/_journal.json +9 -2
  128. package/package.json +14 -18
  129. package/dist/api/people/types.d.ts +0 -85
  130. package/dist/chat/advisor-request.d.ts +0 -4
  131. package/dist/chat/conversations/sql/migrations.d.ts +0 -22
  132. package/dist/chat/tools/advisor/session-store.d.ts +0 -9
  133. package/dist/chat/tools/advisor/tool.d.ts +0 -72
  134. package/dist/chunk-N4RNJ32C.js +0 -48
  135. package/dist/chunk-RAIB6WSG.js +0 -142
  136. package/dist/db/schema/migrations.d.ts +0 -58
  137. package/dist/reporting/conversations/context.d.ts +0 -8
  138. package/dist/reporting/conversations/details.d.ts +0 -6
  139. package/dist/reporting/conversations/index.d.ts +0 -4
  140. package/dist/reporting/conversations/statistics.d.ts +0 -4
  141. package/dist/reporting/conversations/summaries.d.ts +0 -17
  142. package/dist/reporting/conversations/types.d.ts +0 -178
  143. package/dist/reporting/conversations.d.ts +0 -1
  144. package/dist/reporting.js +0 -1065
@@ -1,178 +0,0 @@
1
- import type { PluginConversationStatus, PluginConversations, PluginConversationSummary } from "@sentry/junior-plugin-api";
2
- export type { PluginConversationStatus, PluginConversations, PluginConversationSummary, };
3
- export type ConversationReportStatus = "active" | "completed" | "failed" | "hung" | "superseded";
4
- export type ConversationSurface = "api" | "internal" | "scheduler" | "slack";
5
- export interface ConversationUsage {
6
- inputTokens?: number;
7
- outputTokens?: number;
8
- cachedInputTokens?: number;
9
- cacheCreationTokens?: number;
10
- totalTokens?: number;
11
- }
12
- export interface ActorIdentity {
13
- email?: string;
14
- fullName?: string;
15
- slackUserId?: string;
16
- slackUserName?: string;
17
- }
18
- export interface ConversationSummaryReport {
19
- /** Always-populated display title, with privacy redaction applied first. */
20
- displayTitle: string;
21
- cumulativeDurationMs: number;
22
- cumulativeUsage?: ConversationUsage;
23
- conversationId: string;
24
- id: string;
25
- status: ConversationReportStatus;
26
- startedAt: string;
27
- lastSeenAt: string;
28
- lastProgressAt: string;
29
- completedAt?: string;
30
- surface: ConversationSurface;
31
- actorIdentity?: ActorIdentity;
32
- channel?: string;
33
- channelName?: string;
34
- channelNameRedacted?: boolean;
35
- sentryTraceUrl?: string;
36
- traceId?: string;
37
- }
38
- export type TranscriptPartType = "text" | "thinking" | "tool_call" | "tool_result" | "unknown";
39
- export interface TranscriptPart {
40
- bytes?: number;
41
- chars?: number;
42
- id?: string;
43
- input?: unknown;
44
- inputKeys?: string[];
45
- inputSizeBytes?: number;
46
- inputSizeChars?: number;
47
- inputType?: string;
48
- name?: string;
49
- output?: unknown;
50
- outputKeys?: string[];
51
- outputSizeBytes?: number;
52
- outputSizeChars?: number;
53
- outputType?: string;
54
- redacted?: boolean;
55
- sourceType?: string;
56
- text?: string;
57
- type: TranscriptPartType;
58
- }
59
- export type TranscriptRole = "assistant" | "system" | "tool" | "toolResult" | "unknown" | "user";
60
- export interface TranscriptMessage {
61
- parts: TranscriptPart[];
62
- role: TranscriptRole;
63
- timestamp?: number;
64
- }
65
- export interface ConversationRunReport extends ConversationSummaryReport {
66
- activity?: ConversationActivityReport[];
67
- modelId?: string;
68
- reasoningLevel?: string;
69
- transcriptAvailable: boolean;
70
- transcriptMetadata?: TranscriptMessage[];
71
- transcriptMessageCount?: number;
72
- transcriptRedacted?: boolean;
73
- transcriptRedactionReason?: "non_public_conversation";
74
- /**
75
- * True when retention purged this conversation's content. Expiry under
76
- * retention is distinct from privacy redaction: the content aged out and was
77
- * deleted, so no metadata is derived from it (see data-redaction-policy.md).
78
- */
79
- transcriptExpired?: boolean;
80
- /** When the content was purged (ISO 8601); present only with `transcriptExpired`. */
81
- transcriptExpiredAt?: string;
82
- transcript: TranscriptMessage[];
83
- }
84
- export type ConversationActivityStatus = "aborted" | "completed" | "error" | "running" | "success";
85
- export interface ConversationSubagentActivityReport {
86
- type: "subagent";
87
- createdAt: string;
88
- endedAt?: string;
89
- id: string;
90
- modelId?: string;
91
- outcome?: "success" | "error" | "aborted";
92
- parentToolCallId?: string;
93
- reasoningLevel?: string;
94
- status: ConversationActivityStatus;
95
- subagentKind: string;
96
- transcriptAvailable?: boolean;
97
- }
98
- export interface ConversationToolActivityReport {
99
- type: "tool_execution";
100
- args?: unknown;
101
- createdAt: string;
102
- id: string;
103
- inputKeys?: string[];
104
- inputSizeBytes?: number;
105
- inputSizeChars?: number;
106
- inputType?: string;
107
- redacted?: boolean;
108
- status: ConversationActivityStatus;
109
- subagents: ConversationSubagentActivityReport[];
110
- toolCallId: string;
111
- toolName: string;
112
- }
113
- export type ConversationActivityReport = ConversationToolActivityReport | ConversationSubagentActivityReport;
114
- export interface ConversationReport {
115
- conversationId: string;
116
- /** Always-populated display title, computed the same way as per-run reports. */
117
- displayTitle: string;
118
- generatedAt: string;
119
- sentryConversationUrl?: string;
120
- runs: ConversationRunReport[];
121
- }
122
- export interface ConversationSubagentTranscriptReport {
123
- type: "subagent";
124
- createdAt: string;
125
- endedAt?: string;
126
- id: string;
127
- modelId?: string;
128
- outcome?: "success" | "error" | "aborted";
129
- parentToolCallId?: string;
130
- reasoningLevel?: string;
131
- status: ConversationActivityStatus;
132
- subagentConversationId?: string;
133
- subagentKind: string;
134
- subagentSentryConversationUrl?: string;
135
- transcript: TranscriptMessage[];
136
- transcriptAvailable: boolean;
137
- transcriptMessageCount?: number;
138
- transcriptRedacted?: boolean;
139
- transcriptRedactionReason?: "non_public_conversation";
140
- /** True when retention purged the parent conversation's content. */
141
- transcriptExpired?: boolean;
142
- /** When the content was purged (ISO 8601); present only with `transcriptExpired`. */
143
- transcriptExpiredAt?: string;
144
- unavailableReason?: "missing_transcript_range" | "missing_transcript_ref" | "not_found";
145
- }
146
- export interface ConversationFeed {
147
- conversations: ConversationSummaryReport[];
148
- source: "conversation_index";
149
- generatedAt: string;
150
- }
151
- export interface ConversationStatsItem {
152
- active: number;
153
- conversations: number;
154
- durationMs: number;
155
- failed: number;
156
- hung: number;
157
- label: string;
158
- runs: number;
159
- tokens?: number;
160
- }
161
- export interface ConversationStatsReport {
162
- active: number;
163
- conversations: number;
164
- durationMs: number;
165
- failed: number;
166
- generatedAt: string;
167
- hung: number;
168
- locations: ConversationStatsItem[];
169
- actors: ConversationStatsItem[];
170
- sampleLimit: number;
171
- sampleSize: number;
172
- source: "conversation_index";
173
- tokens?: number;
174
- truncated: boolean;
175
- runs: number;
176
- windowEnd: string;
177
- windowStart: string;
178
- }
@@ -1 +0,0 @@
1
- export * from "./conversations/index";