@sentry/junior 0.155.0 → 0.156.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/{agent-hooks-AWVTLAV2.js → agent-hooks-CCAR46PQ.js} +10 -10
- package/dist/api/locations/detail.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +19 -4
- package/dist/api/schema/location.d.ts +1 -0
- package/dist/api/schema/person.d.ts +1 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +48 -36
- package/dist/app.js +147 -44
- package/dist/{catalog-runtime-V6YD6KH5.js → catalog-runtime-3SNKYCBG.js} +5 -5
- package/dist/chat/agent/types.d.ts +2 -0
- package/dist/chat/attachments/storage.d.ts +12 -0
- package/dist/chat/attachments/store.d.ts +52 -0
- package/dist/chat/attachments/vercel.d.ts +3 -0
- package/dist/chat/conversations/retention.d.ts +4 -0
- package/dist/chat/ingress/bot-mention.d.ts +13 -0
- package/dist/chat/plugins/unfinished-work.d.ts +6 -0
- package/dist/chat/runtime/agent-runner.d.ts +2 -0
- package/dist/chat/services/conversation-memory.d.ts +1 -1
- package/dist/chat/slack/tools/send-files.d.ts +17 -11
- package/dist/chat/state/conversation.d.ts +2 -1
- package/dist/chat/tools/types.d.ts +2 -0
- package/dist/{chunk-V57LZDHN.js → chunk-3FFUC32L.js} +6 -6
- package/dist/{chunk-J2SYI36O.js → chunk-3L2PMOSR.js} +4 -4
- package/dist/{chunk-2AHVM3HK.js → chunk-4ZZDTHFC.js} +10 -8
- package/dist/{chunk-AENPRXCG.js → chunk-53W3LZEW.js} +381 -55
- package/dist/{chunk-ELOTIL5F.js → chunk-6CINHXIL.js} +4 -4
- package/dist/{chunk-37G5HJ2X.js → chunk-6JUU7J2B.js} +4 -4
- package/dist/{chunk-KBT2I5ER.js → chunk-7RAETIYO.js} +6 -6
- package/dist/{chunk-NWSKFYOH.js → chunk-A6WPDFHQ.js} +1 -1
- package/dist/{chunk-773XC7P4.js → chunk-AIJRG227.js} +159 -128
- package/dist/{chunk-APHDJYN7.js → chunk-CK2H7CFO.js} +1 -1
- package/dist/{chunk-Y7ZUBP2K.js → chunk-CN2XSVKF.js} +6 -6
- package/dist/{chunk-TVXAN43I.js → chunk-EDJ64P2P.js} +1 -1
- package/dist/{chunk-XFZLQANQ.js → chunk-GKC43TLS.js} +2 -2
- package/dist/{chunk-UWTXAYBP.js → chunk-GSBPZHLQ.js} +9 -9
- package/dist/{chunk-JJX77MB7.js → chunk-IIO5PFZX.js} +3 -3
- package/dist/{chunk-RQ62VKM7.js → chunk-IZEBHYI4.js} +1 -1
- package/dist/{chunk-J7MWZFFP.js → chunk-JUJR6WTL.js} +4 -4
- package/dist/{chunk-JFZBGFNX.js → chunk-KBGMYLSV.js} +2 -1
- package/dist/{chunk-LQT3SWFA.js → chunk-KCA5MKHU.js} +5 -5
- package/dist/{chunk-SDRJ2LE3.js → chunk-MC57E5U5.js} +1 -1
- package/dist/{chunk-2WLJDM23.js → chunk-MJE7XKWP.js} +1 -1
- package/dist/{chunk-TKJ7277U.js → chunk-NTNU6T2D.js} +2 -2
- package/dist/{chunk-EORR34UB.js → chunk-OGZPRMZA.js} +1 -1
- package/dist/{chunk-NKFRRZIT.js → chunk-OMQJB7YN.js} +19 -18
- package/dist/{chunk-Y6MVGU7L.js → chunk-PMFGVLDU.js} +10 -10
- package/dist/{chunk-KTVHAHUV.js → chunk-SE3D225X.js} +1 -1
- package/dist/{chunk-JIC33O5L.js → chunk-SRJA6QLM.js} +2 -2
- package/dist/{chunk-4K5N6HTX.js → chunk-TN4LVILT.js} +5 -5
- package/dist/{chunk-MLBH7J7J.js → chunk-TNXGMFWV.js} +1 -1
- package/dist/{chunk-RN3AWYEP.js → chunk-WD7SEUZO.js} +1 -1
- package/dist/{chunk-ZLSFOSDK.js → chunk-X5NZQH5U.js} +2 -1
- package/dist/{chunk-7NYEB2TM.js → chunk-X7W45B5G.js} +1 -1
- package/dist/{chunk-CPQBTTI6.js → chunk-ZNWRYNCA.js} +5 -5
- package/dist/cli/chat.js +30 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/attachments.d.ts +178 -0
- package/dist/db/schema.d.ts +179 -1
- package/dist/{db-WT7P56AH.js → db-TYUUKGJX.js} +7 -7
- package/dist/handlers/retention.d.ts +4 -1
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-R2PK2MCA.js → oauth-callback-server-AWVDKPR5.js} +23 -23
- package/dist/{runner-O7YYUIHT.js → runner-JUQXMACC.js} +13 -13
- package/dist/{skills-S6HLQRH7.js → skills-4GZTZX4V.js} +6 -6
- package/dist/spawn-32SSRWU4.js +37 -0
- package/dist/{validation-46WD2OAR.js → validation-DRLNJRND.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-YT5QUBS3.js → work-TGIXRRJY.js} +17 -17
- package/dist/worker-IFXZOYED.js +24 -0
- package/migrations/0027_attachment_storage.sql +16 -0
- package/migrations/meta/0027_snapshot.json +2554 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +5 -4
- package/dist/spawn-B4SBFFA2.js +0 -37
- package/dist/worker-4C5BEDWN.js +0 -24
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
getPlugins,
|
|
12
12
|
setPlugins,
|
|
13
13
|
validatePlugins
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-3FFUC32L.js";
|
|
15
|
+
import "./chunk-NTNU6T2D.js";
|
|
16
|
+
import "./chunk-IIO5PFZX.js";
|
|
17
|
+
import "./chunk-AIJRG227.js";
|
|
18
18
|
import "./chunk-EM225ITJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MC57E5U5.js";
|
|
20
|
+
import "./chunk-GKC43TLS.js";
|
|
21
21
|
import "./chunk-VFUK3X5B.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MJE7XKWP.js";
|
|
23
23
|
import "./chunk-V7YE4WCP.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-X7W45B5G.js";
|
|
25
25
|
import "./chunk-6GWA276C.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-OGZPRMZA.js";
|
|
27
|
+
import "./chunk-KBGMYLSV.js";
|
|
28
28
|
import "./chunk-MLKGABMK.js";
|
|
29
29
|
export {
|
|
30
30
|
PluginHookDeniedError,
|
|
@@ -88,6 +88,7 @@ export declare function readLocationDetail(locationId: string, options?: {
|
|
|
88
88
|
sentryTraceUrl?: string | undefined;
|
|
89
89
|
sourceUrl?: string | undefined;
|
|
90
90
|
traceId?: string | undefined;
|
|
91
|
+
assignedWork?: boolean | undefined;
|
|
91
92
|
unfinishedWork?: boolean | undefined;
|
|
92
93
|
}[];
|
|
93
94
|
source: "conversation_index";
|
|
@@ -226,6 +226,7 @@ export declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
226
226
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
227
227
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
228
228
|
traceId: z.ZodOptional<z.ZodString>;
|
|
229
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
229
230
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
230
231
|
}, z.core.$strict>;
|
|
231
232
|
/** Privacy-safe event variants owned by the conversation reporting API. */
|
|
@@ -237,7 +238,10 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
|
|
|
237
238
|
system: "system";
|
|
238
239
|
assistant: "assistant";
|
|
239
240
|
}>;
|
|
240
|
-
source: z.ZodOptional<z.
|
|
241
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
slack: "slack";
|
|
243
|
+
web: "web";
|
|
244
|
+
}>>;
|
|
241
245
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
242
246
|
email: z.ZodOptional<z.ZodString>;
|
|
243
247
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -421,7 +425,10 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
421
425
|
system: "system";
|
|
422
426
|
assistant: "assistant";
|
|
423
427
|
}>;
|
|
424
|
-
source: z.ZodOptional<z.
|
|
428
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
slack: "slack";
|
|
430
|
+
web: "web";
|
|
431
|
+
}>>;
|
|
425
432
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
426
433
|
email: z.ZodOptional<z.ZodString>;
|
|
427
434
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -683,6 +690,7 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
683
690
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
684
691
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
685
692
|
traceId: z.ZodOptional<z.ZodString>;
|
|
693
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
686
694
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
687
695
|
annotations: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
688
696
|
kind: z.ZodLiteral<"resource_link">;
|
|
@@ -731,7 +739,10 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
731
739
|
system: "system";
|
|
732
740
|
assistant: "assistant";
|
|
733
741
|
}>;
|
|
734
|
-
source: z.ZodOptional<z.
|
|
742
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
743
|
+
slack: "slack";
|
|
744
|
+
web: "web";
|
|
745
|
+
}>>;
|
|
735
746
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
736
747
|
email: z.ZodOptional<z.ZodString>;
|
|
737
748
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -938,7 +949,10 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
938
949
|
system: "system";
|
|
939
950
|
assistant: "assistant";
|
|
940
951
|
}>;
|
|
941
|
-
source: z.ZodOptional<z.
|
|
952
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
953
|
+
slack: "slack";
|
|
954
|
+
web: "web";
|
|
955
|
+
}>>;
|
|
942
956
|
actorIdentity: z.ZodOptional<z.ZodObject<{
|
|
943
957
|
email: z.ZodOptional<z.ZodString>;
|
|
944
958
|
fullName: z.ZodOptional<z.ZodString>;
|
|
@@ -1185,6 +1199,7 @@ export declare const conversationFeedSchema: z.ZodObject<{
|
|
|
1185
1199
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
1186
1200
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
1187
1201
|
traceId: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1188
1203
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1189
1204
|
}, z.core.$strict>>;
|
|
1190
1205
|
source: z.ZodLiteral<"conversation_index">;
|
|
@@ -195,6 +195,7 @@ export declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
195
195
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
196
196
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
197
197
|
traceId: z.ZodOptional<z.ZodString>;
|
|
198
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
198
199
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
199
200
|
}, z.core.$strict>>;
|
|
200
201
|
source: z.ZodLiteral<"conversation_index">;
|
|
@@ -162,6 +162,7 @@ export declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
162
162
|
sentryTraceUrl: z.ZodOptional<z.ZodString>;
|
|
163
163
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
164
164
|
traceId: z.ZodOptional<z.ZodString>;
|
|
165
|
+
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
165
166
|
unfinishedWork: z.ZodOptional<z.ZodBoolean>;
|
|
166
167
|
}, z.core.$strict>>;
|
|
167
168
|
actor: z.ZodObject<{
|
package/dist/api/schema.js
CHANGED
package/dist/api.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
taskListSchema,
|
|
34
34
|
taskParamsSchema,
|
|
35
35
|
taskRunListSchema
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-X5NZQH5U.js";
|
|
37
37
|
import {
|
|
38
38
|
appendAndEnqueueApiConversationMessage,
|
|
39
39
|
createAndEnqueueApiConversation,
|
|
@@ -42,14 +42,14 @@ import {
|
|
|
42
42
|
readHealthReport,
|
|
43
43
|
resolveSlackConversationContextFromThreadId,
|
|
44
44
|
webActorFromEmail
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PMFGVLDU.js";
|
|
46
46
|
import {
|
|
47
47
|
buildSentryConversationUrl,
|
|
48
48
|
getWebAuthorization
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SE3D225X.js";
|
|
50
50
|
import {
|
|
51
51
|
getConversation
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-6CINHXIL.js";
|
|
53
53
|
import {
|
|
54
54
|
readTaskExecutionByConversationId,
|
|
55
55
|
readTaskExecutionDays,
|
|
@@ -57,8 +57,8 @@ import {
|
|
|
57
57
|
readTaskExecutionSummaries,
|
|
58
58
|
readTaskExecutions,
|
|
59
59
|
readTaskRuns
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-GSBPZHLQ.js";
|
|
61
|
+
import "./chunk-TN4LVILT.js";
|
|
62
62
|
import {
|
|
63
63
|
healthReportSchema,
|
|
64
64
|
pluginOperationalReportFeedSchema,
|
|
@@ -82,16 +82,16 @@ import {
|
|
|
82
82
|
listPublicEventTasksForTeams,
|
|
83
83
|
listPublicScheduledTasksForTeams,
|
|
84
84
|
readStats
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-KCA5MKHU.js";
|
|
86
86
|
import {
|
|
87
87
|
parseSlackThreadId
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-CK2H7CFO.js";
|
|
89
89
|
import {
|
|
90
90
|
agentTurnUsageSchema,
|
|
91
91
|
fallbackShortTitle,
|
|
92
92
|
hasAgentTurnUsage,
|
|
93
93
|
renderJuniorNativeConversationEvent
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-3L2PMOSR.js";
|
|
95
95
|
import "./chunk-3Y47VMHV.js";
|
|
96
96
|
import "./chunk-PDO5BLNM.js";
|
|
97
97
|
import {
|
|
@@ -101,11 +101,11 @@ import {
|
|
|
101
101
|
renderPluginConversationEvent,
|
|
102
102
|
resolveViewerUser,
|
|
103
103
|
updateViewerDisplayName
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-3FFUC32L.js";
|
|
105
105
|
import {
|
|
106
106
|
getSlackClient,
|
|
107
107
|
withSlackRetries
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-NTNU6T2D.js";
|
|
109
109
|
import {
|
|
110
110
|
decodeStoredConversationEvent,
|
|
111
111
|
getConversationStore,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
getSqlExecutor,
|
|
114
114
|
locationFromRow,
|
|
115
115
|
parseSessionSource
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-IIO5PFZX.js";
|
|
117
117
|
import {
|
|
118
118
|
juniorApiTokens,
|
|
119
119
|
juniorConversationEvents,
|
|
@@ -121,16 +121,16 @@ import {
|
|
|
121
121
|
juniorConversations,
|
|
122
122
|
juniorIdentities,
|
|
123
123
|
juniorUsers
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-AIJRG227.js";
|
|
125
125
|
import "./chunk-EM225ITJ.js";
|
|
126
|
-
import "./chunk-
|
|
127
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-MC57E5U5.js";
|
|
127
|
+
import "./chunk-GKC43TLS.js";
|
|
128
128
|
import {
|
|
129
129
|
juniorDestinations
|
|
130
130
|
} from "./chunk-VFUK3X5B.js";
|
|
131
131
|
import {
|
|
132
132
|
canExposeConversationPayload
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-MJE7XKWP.js";
|
|
134
134
|
import "./chunk-BDUENQD3.js";
|
|
135
135
|
import {
|
|
136
136
|
parseSlackChannelId,
|
|
@@ -140,10 +140,10 @@ import {
|
|
|
140
140
|
import {
|
|
141
141
|
logException,
|
|
142
142
|
logWarn
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-X7W45B5G.js";
|
|
144
144
|
import "./chunk-6GWA276C.js";
|
|
145
|
-
import "./chunk-
|
|
146
|
-
import "./chunk-
|
|
145
|
+
import "./chunk-OGZPRMZA.js";
|
|
146
|
+
import "./chunk-KBGMYLSV.js";
|
|
147
147
|
import "./chunk-MLKGABMK.js";
|
|
148
148
|
|
|
149
149
|
// src/api.ts
|
|
@@ -909,7 +909,7 @@ function reportEventData(args) {
|
|
|
909
909
|
type: "message",
|
|
910
910
|
messageId: data.messageId,
|
|
911
911
|
role: data.role,
|
|
912
|
-
...data.meta?.source === "web" ? { source:
|
|
912
|
+
...data.meta?.source === "web" || data.meta?.source === "slack" ? { source: data.meta.source } : {},
|
|
913
913
|
...actorIdentity ? { actorIdentity } : {},
|
|
914
914
|
...typeof data.meta?.eventType === "string" ? { eventType: data.meta.eventType } : {},
|
|
915
915
|
...typeof data.meta?.explicitMention === "boolean" ? { explicitMention: data.meta.explicitMention } : {},
|
|
@@ -1605,9 +1605,12 @@ async function readConversationAuxiliaryCostsFromSql(db, conversationIds, option
|
|
|
1605
1605
|
}
|
|
1606
1606
|
|
|
1607
1607
|
// src/chat/plugins/unfinished-work.ts
|
|
1608
|
-
async function
|
|
1609
|
-
if (conversationIds.length === 0)
|
|
1608
|
+
async function listConversationWork(conversationIds) {
|
|
1609
|
+
if (conversationIds.length === 0) {
|
|
1610
|
+
return { assignedIds: [], unfinishedIds: [] };
|
|
1611
|
+
}
|
|
1610
1612
|
const candidates = new Set(conversationIds);
|
|
1613
|
+
const assigned = /* @__PURE__ */ new Set();
|
|
1611
1614
|
const unfinished = /* @__PURE__ */ new Set();
|
|
1612
1615
|
for (const plugin of getPlugins()) {
|
|
1613
1616
|
const hook = plugin.hooks?.unfinishedWork;
|
|
@@ -1620,21 +1623,28 @@ async function listUnfinishedWork(conversationIds) {
|
|
|
1620
1623
|
plugin: { name: plugin.manifest.name }
|
|
1621
1624
|
});
|
|
1622
1625
|
for (const conversationId of result.conversationIds) {
|
|
1623
|
-
if (candidates.has(conversationId))
|
|
1626
|
+
if (!candidates.has(conversationId)) continue;
|
|
1627
|
+
unfinished.add(conversationId);
|
|
1628
|
+
assigned.add(conversationId);
|
|
1629
|
+
}
|
|
1630
|
+
for (const conversationId of result.assignedConversationIds ?? []) {
|
|
1631
|
+
if (candidates.has(conversationId)) assigned.add(conversationId);
|
|
1624
1632
|
}
|
|
1625
1633
|
} catch (error) {
|
|
1626
1634
|
logWarn("plugin.unfinished_work.hook.failed", {
|
|
1627
1635
|
"app.plugin.name": plugin.manifest.name,
|
|
1628
1636
|
"exception.message": error instanceof Error ? error.message : String(error)
|
|
1629
1637
|
});
|
|
1630
|
-
for (const conversationId of conversationIds) {
|
|
1631
|
-
unfinished.add(conversationId);
|
|
1632
|
-
}
|
|
1633
1638
|
}
|
|
1634
1639
|
}
|
|
1635
|
-
return
|
|
1636
|
-
|
|
1637
|
-
|
|
1640
|
+
return {
|
|
1641
|
+
assignedIds: conversationIds.filter(
|
|
1642
|
+
(conversationId) => assigned.has(conversationId)
|
|
1643
|
+
),
|
|
1644
|
+
unfinishedIds: conversationIds.filter(
|
|
1645
|
+
(conversationId) => unfinished.has(conversationId)
|
|
1646
|
+
)
|
|
1647
|
+
};
|
|
1638
1648
|
}
|
|
1639
1649
|
|
|
1640
1650
|
// src/api/conversations/list.ts
|
|
@@ -1777,7 +1787,7 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
1777
1787
|
auxiliaryCostsByRoot,
|
|
1778
1788
|
metricsByRoot,
|
|
1779
1789
|
teamDomainByTeamId,
|
|
1780
|
-
|
|
1790
|
+
conversationWork
|
|
1781
1791
|
] = await Promise.all([
|
|
1782
1792
|
readConversationAccessFromSql(db, conversationIds, options.viewer),
|
|
1783
1793
|
readConversationAuxiliaryCostsFromSql(db, conversationIds, {
|
|
@@ -1789,9 +1799,10 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
1789
1799
|
(conversation) => conversation.sessionSource?.platform === "slack" ? [conversation.sessionSource.teamId] : []
|
|
1790
1800
|
)
|
|
1791
1801
|
),
|
|
1792
|
-
|
|
1802
|
+
listConversationWork(conversationIds)
|
|
1793
1803
|
]);
|
|
1794
|
-
const
|
|
1804
|
+
const assignedWork = new Set(conversationWork.assignedIds);
|
|
1805
|
+
const unfinishedWork = new Set(conversationWork.unfinishedIds);
|
|
1795
1806
|
return {
|
|
1796
1807
|
conversations: conversations.map((conversation, index) => {
|
|
1797
1808
|
const row = rows[index];
|
|
@@ -1806,6 +1817,7 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
1806
1817
|
...row.destination?.visibility === "public" ? { locationId: row.destination.id } : {},
|
|
1807
1818
|
usage: metrics?.usage ?? row.conversation.usage ?? void 0
|
|
1808
1819
|
}),
|
|
1820
|
+
...assignedWork.has(conversation.conversationId) ? { assignedWork: true } : {},
|
|
1809
1821
|
...unfinishedWork.has(conversation.conversationId) ? { unfinishedWork: true } : {}
|
|
1810
1822
|
};
|
|
1811
1823
|
}),
|
|
@@ -4490,7 +4502,7 @@ function readDescriptionText(home) {
|
|
|
4490
4502
|
}
|
|
4491
4503
|
}
|
|
4492
4504
|
async function readSkillReports() {
|
|
4493
|
-
const { discoverSkills } = await import("./skills-
|
|
4505
|
+
const { discoverSkills } = await import("./skills-4GZTZX4V.js");
|
|
4494
4506
|
const skills = await discoverSkills();
|
|
4495
4507
|
return skillReportsSchema.parse(
|
|
4496
4508
|
skills.map((skill) => ({
|
|
@@ -4500,7 +4512,7 @@ async function readSkillReports() {
|
|
|
4500
4512
|
);
|
|
4501
4513
|
}
|
|
4502
4514
|
async function readPlugins() {
|
|
4503
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4515
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-3SNKYCBG.js");
|
|
4504
4516
|
return pluginsSchema.parse(
|
|
4505
4517
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4506
4518
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -4513,7 +4525,7 @@ async function readPlugins() {
|
|
|
4513
4525
|
async function readRuntimeInfoReport() {
|
|
4514
4526
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4515
4527
|
import("./discovery-GUFTFBTL.js"),
|
|
4516
|
-
import("./catalog-runtime-
|
|
4528
|
+
import("./catalog-runtime-3SNKYCBG.js"),
|
|
4517
4529
|
readPlugins(),
|
|
4518
4530
|
readSkillReports()
|
|
4519
4531
|
]);
|
|
@@ -4529,7 +4541,7 @@ async function readRuntimeInfoReport() {
|
|
|
4529
4541
|
}
|
|
4530
4542
|
async function readPluginOperationalReportFeed() {
|
|
4531
4543
|
const nowMs = Date.now();
|
|
4532
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4544
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-CCAR46PQ.js");
|
|
4533
4545
|
return pluginOperationalReportFeedSchema.parse({
|
|
4534
4546
|
source: "plugins",
|
|
4535
4547
|
generatedAt: new Date(nowMs).toISOString(),
|