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