@sentry/junior-plugin-api 0.73.0 → 0.74.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/index.d.ts CHANGED
@@ -273,6 +273,21 @@ export interface AgentPluginState {
273
273
  export interface AgentPluginReadState {
274
274
  get<T = unknown>(key: string): Promise<T | undefined>;
275
275
  }
276
+ export type AgentPluginConversationStatus = "active" | "completed" | "failed" | "hung" | "superseded";
277
+ export interface AgentPluginConversationSummary {
278
+ channelName?: string;
279
+ conversationId: string;
280
+ displayTitle: string;
281
+ lastActivityAt: string;
282
+ lastUpdatedAt: string;
283
+ source?: "api" | "internal" | "local" | "plugin" | "scheduler" | "slack";
284
+ status: AgentPluginConversationStatus;
285
+ }
286
+ export interface AgentPluginConversations {
287
+ listRecent(options?: {
288
+ limit?: number;
289
+ }): Promise<AgentPluginConversationSummary[]>;
290
+ }
276
291
  export interface HeartbeatHookContext extends AgentPluginContext {
277
292
  agent: {
278
293
  dispatch(options: DispatchOptions): Promise<DispatchResult>;
@@ -315,6 +330,7 @@ export interface PluginOperationalReport extends PluginOperationalReportContent
315
330
  pluginName: string;
316
331
  }
317
332
  export interface OperationalReportHookContext extends AgentPluginContext {
333
+ conversations: AgentPluginConversations;
318
334
  nowMs: number;
319
335
  state: AgentPluginReadState;
320
336
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-plugin-api",
3
- "version": "0.73.0",
3
+ "version": "0.74.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/index.ts CHANGED
@@ -367,6 +367,29 @@ export interface AgentPluginReadState {
367
367
  get<T = unknown>(key: string): Promise<T | undefined>;
368
368
  }
369
369
 
370
+ export type AgentPluginConversationStatus =
371
+ | "active"
372
+ | "completed"
373
+ | "failed"
374
+ | "hung"
375
+ | "superseded";
376
+
377
+ export interface AgentPluginConversationSummary {
378
+ channelName?: string;
379
+ conversationId: string;
380
+ displayTitle: string;
381
+ lastActivityAt: string;
382
+ lastUpdatedAt: string;
383
+ source?: "api" | "internal" | "local" | "plugin" | "scheduler" | "slack";
384
+ status: AgentPluginConversationStatus;
385
+ }
386
+
387
+ export interface AgentPluginConversations {
388
+ listRecent(options?: {
389
+ limit?: number;
390
+ }): Promise<AgentPluginConversationSummary[]>;
391
+ }
392
+
370
393
  export interface HeartbeatHookContext extends AgentPluginContext {
371
394
  agent: {
372
395
  dispatch(options: DispatchOptions): Promise<DispatchResult>;
@@ -418,6 +441,7 @@ export interface PluginOperationalReport extends PluginOperationalReportContent
418
441
  }
419
442
 
420
443
  export interface OperationalReportHookContext extends AgentPluginContext {
444
+ conversations: AgentPluginConversations;
421
445
  nowMs: number;
422
446
  state: AgentPluginReadState;
423
447
  }