@sentry/junior 0.156.0 → 0.157.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 (80) hide show
  1. package/dist/{agent-hooks-CCAR46PQ.js → agent-hooks-QI5EPOKQ.js} +10 -10
  2. package/dist/api/conversations/attachments.d.ts +32 -0
  3. package/dist/api/conversations/priority.d.ts +21 -0
  4. package/dist/api/conversations/routes.d.ts +4 -1
  5. package/dist/api/locations/detail.d.ts +3 -1
  6. package/dist/api/schema/conversation.d.ts +14 -4
  7. package/dist/api/schema/location.d.ts +3 -1
  8. package/dist/api/schema/person.d.ts +3 -1
  9. package/dist/api/schema/task.d.ts +8 -8
  10. package/dist/api/schema.js +1 -1
  11. package/dist/api.js +158 -36
  12. package/dist/app.js +35 -54
  13. package/dist/{catalog-runtime-3SNKYCBG.js → catalog-runtime-HUGHAFUN.js} +5 -5
  14. package/dist/chat/agent-invocations/types.d.ts +12 -12
  15. package/dist/chat/attachments/storage.d.ts +2 -0
  16. package/dist/chat/attachments/store.d.ts +16 -0
  17. package/dist/chat/event-tasks/tool-support.d.ts +1 -1
  18. package/dist/chat/event-tasks/types.d.ts +1 -1
  19. package/dist/chat/plugins/unfinished-work.d.ts +6 -1
  20. package/dist/chat/scheduled-tasks/tool-support.d.ts +5 -5
  21. package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
  22. package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
  23. package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
  24. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
  25. package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -2
  26. package/dist/chat/task-execution/slack-work.d.ts +2 -2
  27. package/dist/{chunk-AIJRG227.js → chunk-3GS7O66Z.js} +1 -1
  28. package/dist/{chunk-KBGMYLSV.js → chunk-46ADYIPE.js} +1 -1
  29. package/dist/{chunk-SE3D225X.js → chunk-4M25PSFB.js} +1 -1
  30. package/dist/{chunk-TN4LVILT.js → chunk-5TIH5GOE.js} +5 -5
  31. package/dist/{chunk-EDJ64P2P.js → chunk-6MI43QZO.js} +1 -1
  32. package/dist/{chunk-WD7SEUZO.js → chunk-77QB5FNI.js} +1 -1
  33. package/dist/{chunk-CN2XSVKF.js → chunk-7J65DOBL.js} +6 -6
  34. package/dist/{chunk-4ZZDTHFC.js → chunk-AFQ47JQ7.js} +8 -8
  35. package/dist/{chunk-6CINHXIL.js → chunk-BLCVTEE7.js} +4 -4
  36. package/dist/{chunk-X5NZQH5U.js → chunk-CZCMFRUQ.js} +16 -0
  37. package/dist/{chunk-MJE7XKWP.js → chunk-D7BNWRYL.js} +1 -1
  38. package/dist/{chunk-OGZPRMZA.js → chunk-F7VOY4VQ.js} +1 -1
  39. package/dist/{chunk-IIO5PFZX.js → chunk-G2FN3I66.js} +3 -3
  40. package/dist/{chunk-3L2PMOSR.js → chunk-GEY6IFXH.js} +4 -4
  41. package/dist/{chunk-6JUU7J2B.js → chunk-GO2W3VZY.js} +4 -4
  42. package/dist/{chunk-KCA5MKHU.js → chunk-HJ3EZHIX.js} +351 -5
  43. package/dist/{chunk-MC57E5U5.js → chunk-I3OQVVMV.js} +1 -1
  44. package/dist/{chunk-NTNU6T2D.js → chunk-MDZQ62PB.js} +2 -2
  45. package/dist/{chunk-3FFUC32L.js → chunk-MGJW3SW4.js} +6 -6
  46. package/dist/{chunk-X7W45B5G.js → chunk-MKA3T2R6.js} +1 -1
  47. package/dist/{chunk-IZEBHYI4.js → chunk-MXO6VFB3.js} +1 -1
  48. package/dist/{chunk-53W3LZEW.js → chunk-OWASYHHV.js} +64 -361
  49. package/dist/{chunk-GSBPZHLQ.js → chunk-PP4UQTH3.js} +9 -9
  50. package/dist/{chunk-SRJA6QLM.js → chunk-RQBRGPUF.js} +2 -2
  51. package/dist/{chunk-A6WPDFHQ.js → chunk-S4PFOWRA.js} +1 -1
  52. package/dist/{chunk-OMQJB7YN.js → chunk-TA5R6BME.js} +18 -18
  53. package/dist/{chunk-GKC43TLS.js → chunk-UJYA75N5.js} +2 -2
  54. package/dist/{chunk-PMFGVLDU.js → chunk-VBKFO65J.js} +35 -10
  55. package/dist/{chunk-7RAETIYO.js → chunk-VDAEXEBB.js} +6 -6
  56. package/dist/{chunk-JUJR6WTL.js → chunk-VIBHFGQC.js} +4 -4
  57. package/dist/{chunk-CK2H7CFO.js → chunk-VYDM7HUF.js} +1 -1
  58. package/dist/{chunk-ZNWRYNCA.js → chunk-WNNYOPXX.js} +5 -5
  59. package/dist/{chunk-TNXGMFWV.js → chunk-XRERMHPN.js} +1 -1
  60. package/dist/cli/chat.js +30 -30
  61. package/dist/cli/check.js +6 -6
  62. package/dist/cli/plugins.js +13 -13
  63. package/dist/cli/snapshot-create.js +9 -9
  64. package/dist/cli/upgrade.js +7 -7
  65. package/dist/db/schema/agent-invocations.d.ts +4 -4
  66. package/dist/db/schema.d.ts +4 -4
  67. package/dist/{db-TYUUKGJX.js → db-VQAV4PJ3.js} +7 -7
  68. package/dist/instrumentation.js +4 -4
  69. package/dist/nitro.js +2 -2
  70. package/dist/{oauth-callback-server-AWVDKPR5.js → oauth-callback-server-K5KQAAAX.js} +23 -23
  71. package/dist/{runner-JUQXMACC.js → runner-U7QI7P4S.js} +14 -15
  72. package/dist/{skills-4GZTZX4V.js → skills-ENKRBZ7K.js} +6 -6
  73. package/dist/spawn-4XGNONLS.js +37 -0
  74. package/dist/{validation-DRLNJRND.js → validation-VKCDVGA6.js} +6 -6
  75. package/dist/version.js +1 -1
  76. package/dist/{work-TGIXRRJY.js → work-IBD6PWP2.js} +17 -17
  77. package/dist/worker-TJFXOZRC.js +24 -0
  78. package/package.json +4 -4
  79. package/dist/spawn-32SSRWU4.js +0 -37
  80. package/dist/worker-IFXZOYED.js +0 -24
@@ -86,8 +86,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
86
86
  conversationId: z.ZodString;
87
87
  }, z.core.$strict>], "platform">;
88
88
  destinationVisibility: z.ZodOptional<z.ZodEnum<{
89
- public: "public";
90
89
  private: "private";
90
+ public: "public";
91
91
  }>>;
92
92
  input: z.ZodString;
93
93
  invocationId: z.ZodString;
@@ -108,8 +108,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
108
108
  teamId: z.ZodString;
109
109
  channelId: z.ZodString;
110
110
  visibility: z.ZodEnum<{
111
- public: "public";
112
111
  private: "private";
112
+ public: "public";
113
113
  }>;
114
114
  messageTs: z.ZodOptional<z.ZodString>;
115
115
  threadTs: z.ZodOptional<z.ZodString>;
@@ -120,8 +120,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
120
120
  }, z.core.$strict>, z.ZodObject<{
121
121
  platform: z.ZodLiteral<"web">;
122
122
  visibility: z.ZodEnum<{
123
- public: "public";
124
123
  private: "private";
124
+ public: "public";
125
125
  }>;
126
126
  conversationId: z.ZodString;
127
127
  }, z.core.$strict>], "platform">;
@@ -211,8 +211,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
211
211
  conversationId: z.ZodString;
212
212
  }, z.core.$strict>], "platform">;
213
213
  destinationVisibility: z.ZodOptional<z.ZodEnum<{
214
- public: "public";
215
214
  private: "private";
215
+ public: "public";
216
216
  }>>;
217
217
  input: z.ZodString;
218
218
  invocationId: z.ZodString;
@@ -233,8 +233,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
233
233
  teamId: z.ZodString;
234
234
  channelId: z.ZodString;
235
235
  visibility: z.ZodEnum<{
236
- public: "public";
237
236
  private: "private";
237
+ public: "public";
238
238
  }>;
239
239
  messageTs: z.ZodOptional<z.ZodString>;
240
240
  threadTs: z.ZodOptional<z.ZodString>;
@@ -245,8 +245,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
245
245
  }, z.core.$strict>, z.ZodObject<{
246
246
  platform: z.ZodLiteral<"web">;
247
247
  visibility: z.ZodEnum<{
248
- public: "public";
249
248
  private: "private";
249
+ public: "public";
250
250
  }>;
251
251
  conversationId: z.ZodString;
252
252
  }, z.core.$strict>], "platform">;
@@ -334,8 +334,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
334
334
  conversationId: z.ZodString;
335
335
  }, z.core.$strict>], "platform">;
336
336
  destinationVisibility: z.ZodOptional<z.ZodEnum<{
337
- public: "public";
338
337
  private: "private";
338
+ public: "public";
339
339
  }>>;
340
340
  input: z.ZodString;
341
341
  invocationId: z.ZodString;
@@ -356,8 +356,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
356
356
  teamId: z.ZodString;
357
357
  channelId: z.ZodString;
358
358
  visibility: z.ZodEnum<{
359
- public: "public";
360
359
  private: "private";
360
+ public: "public";
361
361
  }>;
362
362
  messageTs: z.ZodOptional<z.ZodString>;
363
363
  threadTs: z.ZodOptional<z.ZodString>;
@@ -368,8 +368,8 @@ export declare const agentInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
368
368
  }, z.core.$strict>, z.ZodObject<{
369
369
  platform: z.ZodLiteral<"web">;
370
370
  visibility: z.ZodEnum<{
371
- public: "public";
372
371
  private: "private";
372
+ public: "public";
373
373
  }>;
374
374
  conversationId: z.ZodString;
375
375
  }, z.core.$strict>], "platform">;
@@ -459,8 +459,8 @@ export declare const createAgentInvocationSchema: z.ZodObject<{
459
459
  conversationId: z.ZodString;
460
460
  }, z.core.$strict>], "platform">;
461
461
  destinationVisibility: z.ZodOptional<z.ZodEnum<{
462
- public: "public";
463
462
  private: "private";
463
+ public: "public";
464
464
  }>>;
465
465
  idempotencyKey: z.ZodString;
466
466
  input: z.ZodString;
@@ -477,8 +477,8 @@ export declare const createAgentInvocationSchema: z.ZodObject<{
477
477
  teamId: z.ZodString;
478
478
  channelId: z.ZodString;
479
479
  visibility: z.ZodEnum<{
480
- public: "public";
481
480
  private: "private";
481
+ public: "public";
482
482
  }>;
483
483
  messageTs: z.ZodOptional<z.ZodString>;
484
484
  threadTs: z.ZodOptional<z.ZodString>;
@@ -489,8 +489,8 @@ export declare const createAgentInvocationSchema: z.ZodObject<{
489
489
  }, z.core.$strict>, z.ZodObject<{
490
490
  platform: z.ZodLiteral<"web">;
491
491
  visibility: z.ZodEnum<{
492
- public: "public";
493
492
  private: "private";
493
+ public: "public";
494
494
  }>;
495
495
  conversationId: z.ZodString;
496
496
  }, z.core.$strict>], "platform">;
@@ -8,5 +8,7 @@ export interface AttachmentWrite {
8
8
  export interface AttachmentStorage {
9
9
  readonly provider: string;
10
10
  put(input: AttachmentWrite): Promise<void>;
11
+ /** Return live object bytes, or null when the key is missing. */
12
+ get(key: string): Promise<ReadableStream<Uint8Array> | null>;
11
13
  delete(keys: string[]): Promise<void>;
12
14
  }
@@ -4,6 +4,16 @@ import type { AttachmentStorage } from "./storage";
4
4
  export interface StoredAttachment {
5
5
  id: string;
6
6
  }
7
+ /** Live conversation-owned attachment metadata. */
8
+ export interface AttachmentRecord {
9
+ bytes: number;
10
+ contentType: string;
11
+ conversationId: string;
12
+ filename: string;
13
+ id: string;
14
+ provider: string;
15
+ storageKey: string;
16
+ }
7
17
  export interface AttachmentGarbageCollectionResult {
8
18
  deleted: number;
9
19
  }
@@ -26,6 +36,12 @@ export declare function storeAttachment(args: {
26
36
  nowMs?: number;
27
37
  storage: AttachmentStorage;
28
38
  }): Promise<StoredAttachment>;
39
+ /** Load one live attachment owned by a conversation. */
40
+ export declare function readLiveAttachment(args: {
41
+ attachmentId: string;
42
+ conversationId: string;
43
+ db: JuniorSqlDatabase;
44
+ }): Promise<AttachmentRecord | null>;
29
45
  /** Persist many conversation-owned files. */
30
46
  export declare function storeAttachments(args: {
31
47
  conversationId: string;
@@ -92,7 +92,7 @@ export declare function requireEventTaskSlackContext(context: ToolRuntimeContext
92
92
  platform: "slack";
93
93
  teamId: string;
94
94
  channelId: string;
95
- visibility: "public" | "private";
95
+ visibility: "private" | "public";
96
96
  messageTs?: string | undefined;
97
97
  threadTs?: string | undefined;
98
98
  };
@@ -26,8 +26,8 @@ export declare const eventTaskSchema: z.ZodObject<{
26
26
  channelId: z.ZodString;
27
27
  }, z.core.$strict>;
28
28
  destinationVisibility: z.ZodEnum<{
29
- public: "public";
30
29
  private: "private";
30
+ public: "public";
31
31
  }>;
32
32
  task: z.ZodObject<{
33
33
  text: z.ZodString;
@@ -1,8 +1,13 @@
1
1
  export type ConversationWork = {
2
2
  assignedIds: string[];
3
+ /** Latest finish time per conversation, used with activity for Priority. */
4
+ finishedAtById: Record<string, string>;
3
5
  unfinishedIds: string[];
4
6
  };
5
- /** Return assigned and unfinished plugin work for the candidate conversations. */
7
+ /**
8
+ * Return assigned and unfinished plugin work for the candidate conversations.
9
+ * Feed Priority combines these signals with conversation activity on the host.
10
+ */
6
11
  export declare function listConversationWork(conversationIds: string[]): Promise<ConversationWork>;
7
12
  /** Return candidate conversations that have unfinished plugin work. */
8
13
  export declare function listUnfinishedWork(conversationIds: string[]): Promise<string[]>;
@@ -41,8 +41,8 @@ declare const compactTaskResultSchema: z.ZodObject<{
41
41
  group: "group";
42
42
  }>;
43
43
  visibility: z.ZodEnum<{
44
- public: "public";
45
44
  private: "private";
45
+ public: "public";
46
46
  }>;
47
47
  }, z.core.$strict>;
48
48
  credential_mode: z.ZodEnum<{
@@ -86,8 +86,8 @@ export declare const scheduleTaskToolResultSchema: z.ZodObject<{
86
86
  group: "group";
87
87
  }>;
88
88
  visibility: z.ZodEnum<{
89
- public: "public";
90
89
  private: "private";
90
+ public: "public";
91
91
  }>;
92
92
  }, z.core.$strict>;
93
93
  credential_mode: z.ZodEnum<{
@@ -131,8 +131,8 @@ export declare const scheduleListToolResultSchema: z.ZodObject<{
131
131
  group: "group";
132
132
  }>;
133
133
  visibility: z.ZodEnum<{
134
- public: "public";
135
134
  private: "private";
135
+ public: "public";
136
136
  }>;
137
137
  }, z.core.$strict>;
138
138
  credential_mode: z.ZodEnum<{
@@ -181,7 +181,7 @@ export declare function scheduleTaskToolResult(target: string, task: CompactTask
181
181
  };
182
182
  conversation_access: {
183
183
  audience: "channel" | "direct" | "group";
184
- visibility: "public" | "private";
184
+ visibility: "private" | "public";
185
185
  };
186
186
  credential_mode: "system" | "creator";
187
187
  dashboard_url: string | null;
@@ -211,7 +211,7 @@ export declare function scheduleListToolResult(args: {
211
211
  };
212
212
  conversation_access: {
213
213
  audience: "channel" | "direct" | "group";
214
- visibility: "public" | "private";
214
+ visibility: "private" | "public";
215
215
  };
216
216
  credential_mode: "system" | "creator";
217
217
  dashboard_url: string | null;
@@ -48,7 +48,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
48
48
  };
49
49
  conversation_access: {
50
50
  audience: "channel" | "direct" | "group";
51
- visibility: "public" | "private";
51
+ visibility: "private" | "public";
52
52
  };
53
53
  credential_mode: "system" | "creator";
54
54
  dashboard_url: string | null;
@@ -78,7 +78,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
78
78
  };
79
79
  conversation_access: {
80
80
  audience: "channel" | "direct" | "group";
81
- visibility: "public" | "private";
81
+ visibility: "private" | "public";
82
82
  };
83
83
  credential_mode: "system" | "creator";
84
84
  dashboard_url: string | null;
@@ -23,7 +23,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
23
23
  };
24
24
  conversation_access: {
25
25
  audience: "channel" | "direct" | "group";
26
- visibility: "public" | "private";
26
+ visibility: "private" | "public";
27
27
  };
28
28
  credential_mode: "system" | "creator";
29
29
  dashboard_url: string | null;
@@ -53,7 +53,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
53
53
  };
54
54
  conversation_access: {
55
55
  audience: "channel" | "direct" | "group";
56
- visibility: "public" | "private";
56
+ visibility: "private" | "public";
57
57
  };
58
58
  credential_mode: "system" | "creator";
59
59
  dashboard_url: string | null;
@@ -24,7 +24,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
24
24
  };
25
25
  conversation_access: {
26
26
  audience: "channel" | "direct" | "group";
27
- visibility: "public" | "private";
27
+ visibility: "private" | "public";
28
28
  };
29
29
  credential_mode: "system" | "creator";
30
30
  dashboard_url: string | null;
@@ -54,7 +54,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
54
54
  };
55
55
  conversation_access: {
56
56
  audience: "channel" | "direct" | "group";
57
- visibility: "public" | "private";
57
+ visibility: "private" | "public";
58
58
  };
59
59
  credential_mode: "system" | "creator";
60
60
  dashboard_url: string | null;
@@ -23,7 +23,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
23
23
  };
24
24
  conversation_access: {
25
25
  audience: "channel" | "direct" | "group";
26
- visibility: "public" | "private";
26
+ visibility: "private" | "public";
27
27
  };
28
28
  credential_mode: "system" | "creator";
29
29
  dashboard_url: string | null;
@@ -53,7 +53,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
53
53
  };
54
54
  conversation_access: {
55
55
  audience: "channel" | "direct" | "group";
56
- visibility: "public" | "private";
56
+ visibility: "private" | "public";
57
57
  };
58
58
  credential_mode: "system" | "creator";
59
59
  dashboard_url: string | null;
@@ -50,7 +50,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
50
50
  };
51
51
  conversation_access: {
52
52
  audience: "channel" | "direct" | "group";
53
- visibility: "public" | "private";
53
+ visibility: "private" | "public";
54
54
  };
55
55
  credential_mode: "system" | "creator";
56
56
  dashboard_url: string | null;
@@ -80,7 +80,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
80
80
  };
81
81
  conversation_access: {
82
82
  audience: "channel" | "direct" | "group";
83
- visibility: "public" | "private";
83
+ visibility: "private" | "public";
84
84
  };
85
85
  credential_mode: "system" | "creator";
86
86
  dashboard_url: string | null;
@@ -72,9 +72,9 @@ declare const slackConversationMessageMetadataSchema: z.ZodUnion<readonly [z.Zod
72
72
  adapterName: z.ZodLiteral<"slack">;
73
73
  channelId: z.ZodString;
74
74
  channelVisibility: z.ZodOptional<z.ZodEnum<{
75
+ private: "private";
75
76
  unknown: "unknown";
76
77
  external: "external";
77
- private: "private";
78
78
  workspace: "workspace";
79
79
  }>>;
80
80
  currentMessage: z.ZodOptional<z.ZodObject<{
@@ -182,9 +182,9 @@ declare const slackConversationMessageMetadataSchema: z.ZodUnion<readonly [z.Zod
182
182
  adapterName: z.ZodLiteral<"slack">;
183
183
  channelId: z.ZodString;
184
184
  channelVisibility: z.ZodOptional<z.ZodEnum<{
185
+ private: "private";
185
186
  unknown: "unknown";
186
187
  external: "external";
187
- private: "private";
188
188
  workspace: "workspace";
189
189
  }>>;
190
190
  currentMessage: z.ZodOptional<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SQL_STATEMENT_TIMEOUT_MS
3
- } from "./chunk-GKC43TLS.js";
3
+ } from "./chunk-UJYA75N5.js";
4
4
  import {
5
5
  juniorDestinations,
6
6
  timestamptz
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.156.0",
4
+ version: "0.157.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getStateAdapter
3
- } from "./chunk-MC57E5U5.js";
3
+ } from "./chunk-I3OQVVMV.js";
4
4
  import {
5
5
  getClient
6
6
  } from "./chunk-6GWA276C.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  persistConversationMessages
3
- } from "./chunk-3L2PMOSR.js";
3
+ } from "./chunk-GEY6IFXH.js";
4
4
  import {
5
5
  JUNIOR_THREAD_STATE_TTL_MS
6
6
  } from "./chunk-3Y47VMHV.js";
7
7
  import {
8
8
  getDb
9
- } from "./chunk-IIO5PFZX.js";
9
+ } from "./chunk-G2FN3I66.js";
10
10
  import {
11
11
  juniorLocationConfigurations
12
- } from "./chunk-AIJRG227.js";
12
+ } from "./chunk-3GS7O66Z.js";
13
13
  import {
14
14
  getStateAdapter
15
- } from "./chunk-MC57E5U5.js";
15
+ } from "./chunk-I3OQVVMV.js";
16
16
  import {
17
17
  juniorDestinations
18
18
  } from "./chunk-VFUK3X5B.js";
@@ -20,7 +20,7 @@ import {
20
20
  isRecord,
21
21
  toOptionalNumber,
22
22
  toOptionalString
23
- } from "./chunk-X7W45B5G.js";
23
+ } from "./chunk-MKA3T2R6.js";
24
24
 
25
25
  // src/chat/conversations/turn-lifecycle.ts
26
26
  var ConversationTurnLifecycleService = class {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createPluginCatalogRuntime
3
- } from "./chunk-WD7SEUZO.js";
3
+ } from "./chunk-77QB5FNI.js";
4
4
 
5
5
  // src/chat/plugins/catalog-runtime.ts
6
6
  var pluginCatalogRuntime = createPluginCatalogRuntime();
@@ -5,7 +5,7 @@ import {
5
5
  logInfo,
6
6
  logWarn,
7
7
  setSpanAttributes
8
- } from "./chunk-X7W45B5G.js";
8
+ } from "./chunk-MKA3T2R6.js";
9
9
  import {
10
10
  discoverInstalledPluginPackageContent,
11
11
  normalizePluginPackageNames
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  appendAndEnqueueInboundMessage
3
- } from "./chunk-6CINHXIL.js";
3
+ } from "./chunk-BLCVTEE7.js";
4
4
  import {
5
5
  ConversationTurnLifecycleService,
6
6
  getPersistedSandboxState,
7
7
  getPersistedThreadState,
8
8
  persistThreadStateById
9
- } from "./chunk-TN4LVILT.js";
9
+ } from "./chunk-5TIH5GOE.js";
10
10
  import {
11
11
  AgentInvocationBusyError,
12
12
  AgentInvocationLimitError,
@@ -15,7 +15,7 @@ import {
15
15
  agentBindingSchema,
16
16
  agentInvocationSchema,
17
17
  createAgentInvocationSchema
18
- } from "./chunk-ZNWRYNCA.js";
18
+ } from "./chunk-WNNYOPXX.js";
19
19
  import {
20
20
  TurnInputCommitLostError,
21
21
  failTurnRecord,
@@ -26,16 +26,16 @@ import {
26
26
  isTurnInputCommitLostError,
27
27
  openConversationProjection,
28
28
  saveTurnCheckpoint
29
- } from "./chunk-3L2PMOSR.js";
29
+ } from "./chunk-GEY6IFXH.js";
30
30
  import {
31
31
  getConversationEventStore,
32
32
  getConversationStore,
33
33
  getSqlExecutor
34
- } from "./chunk-IIO5PFZX.js";
34
+ } from "./chunk-G2FN3I66.js";
35
35
  import {
36
36
  juniorAgentBindings,
37
37
  juniorAgentInvocations
38
- } from "./chunk-AIJRG227.js";
38
+ } from "./chunk-3GS7O66Z.js";
39
39
 
40
40
  // src/chat/agent-invocations/work.ts
41
41
  import { z } from "zod";
@@ -3,38 +3,38 @@ import {
3
3
  } from "./chunk-RF6J3DIO.js";
4
4
  import {
5
5
  resolveBaseUrl
6
- } from "./chunk-7RAETIYO.js";
6
+ } from "./chunk-VDAEXEBB.js";
7
7
  import {
8
8
  isExperimentalFeatureEnabled
9
9
  } from "./chunk-5IDFPCON.js";
10
10
  import {
11
11
  createPluginLogger,
12
12
  getPlugins
13
- } from "./chunk-3FFUC32L.js";
13
+ } from "./chunk-MGJW3SW4.js";
14
14
  import {
15
15
  getSlackClient,
16
16
  withSlackRetries
17
- } from "./chunk-NTNU6T2D.js";
17
+ } from "./chunk-MDZQ62PB.js";
18
18
  import {
19
19
  getDb,
20
20
  parseDestination
21
- } from "./chunk-IIO5PFZX.js";
21
+ } from "./chunk-G2FN3I66.js";
22
22
  import {
23
23
  sleep
24
24
  } from "./chunk-EM225ITJ.js";
25
25
  import {
26
26
  acquireActiveLock,
27
27
  getStateAdapter
28
- } from "./chunk-MC57E5U5.js";
28
+ } from "./chunk-I3OQVVMV.js";
29
29
  import {
30
30
  pluginCatalogRuntime
31
- } from "./chunk-EDJ64P2P.js";
31
+ } from "./chunk-6MI43QZO.js";
32
32
  import {
33
33
  fetchWithBoundedOAuthErrorBodies
34
- } from "./chunk-WD7SEUZO.js";
34
+ } from "./chunk-77QB5FNI.js";
35
35
  import {
36
36
  isRecord
37
- } from "./chunk-X7W45B5G.js";
37
+ } from "./chunk-MKA3T2R6.js";
38
38
 
39
39
  // src/chat/capabilities/router.ts
40
40
  var ProviderCredentialRouter = class {
@@ -8,14 +8,14 @@ import {
8
8
  getConversationStore,
9
9
  parseDestination,
10
10
  sameDestination
11
- } from "./chunk-IIO5PFZX.js";
11
+ } from "./chunk-G2FN3I66.js";
12
12
  import {
13
13
  getDefaultRedisStateAdapterFor,
14
14
  getStateAdapter
15
- } from "./chunk-MC57E5U5.js";
15
+ } from "./chunk-I3OQVVMV.js";
16
16
  import {
17
17
  getChatConfig
18
- } from "./chunk-GKC43TLS.js";
18
+ } from "./chunk-UJYA75N5.js";
19
19
  import {
20
20
  parseStoredSlackActor
21
21
  } from "./chunk-V7YE4WCP.js";
@@ -23,7 +23,7 @@ import {
23
23
  isRecord,
24
24
  toOptionalNumber,
25
25
  toOptionalString
26
- } from "./chunk-X7W45B5G.js";
26
+ } from "./chunk-MKA3T2R6.js";
27
27
 
28
28
  // src/chat/task-execution/state.ts
29
29
  import { randomUUID } from "crypto";
@@ -56,6 +56,10 @@ var conversationSurfaceSchema = z2.enum([
56
56
  ]);
57
57
  var conversationUsageSchema = usageSchema;
58
58
  var conversationParamsSchema = z2.object({ conversationId: z2.string().min(1) }).strict();
59
+ var conversationAttachmentParamsSchema = z2.object({
60
+ attachmentId: z2.string().min(1),
61
+ conversationId: z2.string().min(1)
62
+ }).strict();
59
63
  var conversationDetailQuerySchema = z2.object({
60
64
  limit: z2.coerce.number().int().min(1).max(1e3).default(500)
61
65
  }).strict();
@@ -176,6 +180,17 @@ var conversationSummaryReportSchema = z2.object({
176
180
  sourceUrl: z2.string().url().optional(),
177
181
  traceId: z2.string().optional(),
178
182
  assignedWork: z2.boolean().optional(),
183
+ finishedWorkAt: z2.string().datetime().optional(),
184
+ /**
185
+ * Dashboard Priority membership for this conversation summary.
186
+ * Present on the conversation feed. Clients must not recompute it.
187
+ *
188
+ * True only when:
189
+ * - unfinished work was last seen within 48 hours
190
+ * - finished assigned work has conversation activity after the finish time
191
+ * - there is no known work and the conversation was last seen within 3 hours
192
+ */
193
+ isPriority: z2.boolean().optional(),
179
194
  unfinishedWork: z2.boolean().optional()
180
195
  }).strict();
181
196
  var conversationReportMessageEventDataSchema = z2.object({
@@ -782,6 +797,7 @@ var statsReportSchema = z8.object({
782
797
  export {
783
798
  apiErrorSchema,
784
799
  conversationParamsSchema,
800
+ conversationAttachmentParamsSchema,
785
801
  conversationDetailQuerySchema,
786
802
  conversationEventsQuerySchema,
787
803
  conversationFeedQuerySchema,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logWarn
3
- } from "./chunk-X7W45B5G.js";
3
+ } from "./chunk-MKA3T2R6.js";
4
4
 
5
5
  // src/chat/conversation-privacy.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JUNIOR_VERSION
3
- } from "./chunk-KBGMYLSV.js";
3
+ } from "./chunk-46ADYIPE.js";
4
4
 
5
5
  // src/deployment.ts
6
6
  var JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";
@@ -6,12 +6,12 @@ import {
6
6
  juniorConversations,
7
7
  juniorIdentities,
8
8
  juniorUsers
9
- } from "./chunk-AIJRG227.js";
9
+ } from "./chunk-3GS7O66Z.js";
10
10
  import {
11
11
  TURN_REASONING_LEVELS,
12
12
  getChatConfig,
13
13
  modelProfileSchema
14
- } from "./chunk-GKC43TLS.js";
14
+ } from "./chunk-UJYA75N5.js";
15
15
  import {
16
16
  juniorDestinations
17
17
  } from "./chunk-VFUK3X5B.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-V7YE4WCP.js";
23
23
  import {
24
24
  normalizeIdentityEmail
25
- } from "./chunk-X7W45B5G.js";
25
+ } from "./chunk-MKA3T2R6.js";
26
26
 
27
27
  // src/chat/conversations/sql/store.ts
28
28
  import { randomUUID as randomUUID2 } from "crypto";