@spotlightjs/spotlight 4.8.0 → 4.9.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.
@@ -2,7 +2,7 @@
2
2
  !function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9a0f2972-d124-46a6-8cc0-f319b99677ec", e._sentryDebugIdIdentifier = "sentry-dbid-9a0f2972-d124-46a6-8cc0-f319b99677ec");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3c7de392-d41e-443c-bb27-4c82dc28dc16", e._sentryDebugIdIdentifier = "sentry-dbid-3c7de392-d41e-443c-bb27-4c82dc28dc16");
6
6
  } catch (e2) {
7
7
  }
8
8
  }();
@@ -59,7 +59,7 @@ function createMCPInstance() {
59
59
  const mcp = wrapMcpServerWithSentry(
60
60
  new McpServer({
61
61
  name: "spotlight-mcp",
62
- version: String("4.8.0")
62
+ version: String("4.9.0")
63
63
  })
64
64
  );
65
65
  mcp.registerTool(
@@ -185,6 +185,52 @@ export type SentryProfileV1Event = CommonEventAttrs & {
185
185
  version: "1";
186
186
  profile: SentryProfile;
187
187
  };
188
+ export type ProfileV2Sample = {
189
+ timestamp: number;
190
+ stack_id: number;
191
+ thread_id: string;
192
+ };
193
+ export type ProfileV2MeasurementValue = {
194
+ timestamp: number;
195
+ value: number;
196
+ };
197
+ export type ProfileV2Measurement = {
198
+ unit: string;
199
+ values: ProfileV2MeasurementValue[];
200
+ };
201
+ export type SentryProfileV2 = {
202
+ samples: ProfileV2Sample[];
203
+ stacks: number[][];
204
+ frames: EventFrame[];
205
+ thread_metadata: Record<string, {
206
+ name?: string;
207
+ priority?: number;
208
+ }>;
209
+ };
210
+ export type SentryProfileV2ChunkEvent = {
211
+ type: "profile_chunk";
212
+ version: "2";
213
+ profiler_id: string;
214
+ chunk_id: string;
215
+ platform: string;
216
+ release?: string;
217
+ environment?: string;
218
+ client_sdk?: {
219
+ name: string;
220
+ version: string;
221
+ };
222
+ debug_meta?: {
223
+ images?: Array<{
224
+ debug_id?: string;
225
+ image_addr?: string;
226
+ type?: string;
227
+ image_size?: number;
228
+ code_file?: string;
229
+ }>;
230
+ };
231
+ measurements?: Record<string, ProfileV2Measurement>;
232
+ profile: SentryProfileV2;
233
+ };
188
234
  export type SentryLogEventItem = SerializedLog & {
189
235
  id: string;
190
236
  severity_number: number;
@@ -194,5 +240,5 @@ export type SentryLogEvent = CommonEventAttrs & {
194
240
  type: "log";
195
241
  items: Array<SentryLogEventItem>;
196
242
  };
197
- export type SentryEvent = SentryErrorEvent | SentryTransactionEvent | SentryProfileV1Event | SentryLogEvent;
243
+ export type SentryEvent = SentryErrorEvent | SentryTransactionEvent | SentryProfileV1Event | SentryProfileV2ChunkEvent | SentryLogEvent;
198
244
  export {};
@@ -14,3 +14,14 @@ export type CLIHandlerOptions = {
14
14
  };
15
15
  export type CLIHandlerReturnType = Promise<any> | any;
16
16
  export type CLIHandler = ((options: CLIHandlerOptions) => CLIHandlerReturnType) | (() => CLIHandlerReturnType);
17
+ export type CommandMeta = {
18
+ name: string;
19
+ short: string;
20
+ usage?: string;
21
+ long?: string;
22
+ examples?: string[];
23
+ };
24
+ export type Command = {
25
+ meta: CommandMeta;
26
+ handler: CLIHandler;
27
+ };