@sentry/junior 0.172.0 → 0.174.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-IZMIMXUX.js → agent-hooks-HBZUWB4D.js} +12 -12
- package/dist/api/conversations/list.d.ts +3 -1
- package/dist/api/schema/conversation.d.ts +4 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +33 -31
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-PDNXCNCJ.js → catalog-runtime-J3R3LC7Y.js} +5 -5
- package/dist/{chunk-G4GNP4Q2.js → chunk-2BNKQSPC.js} +5 -5
- package/dist/{chunk-ELAP5LB5.js → chunk-2E353AHN.js} +1 -1
- package/dist/{chunk-XSO5JEHI.js → chunk-47LO5GDT.js} +12 -12
- package/dist/{chunk-6RWQHBTV.js → chunk-4ALVTB7F.js} +1 -1
- package/dist/{chunk-FESC2EW7.js → chunk-5EWBGDW2.js} +1 -1
- package/dist/{chunk-27T2WQJV.js → chunk-6FWEUJGH.js} +1 -1
- package/dist/{chunk-SU7QH274.js → chunk-7V25DLCB.js} +8 -8
- package/dist/{chunk-QCGDWFYC.js → chunk-AJMUVCXW.js} +4 -4
- package/dist/{chunk-QBHPQCEQ.js → chunk-BFNNCBTK.js} +4 -4
- package/dist/{chunk-YRBLN5PJ.js → chunk-BLBKORDG.js} +6 -6
- package/dist/{chunk-G2DJ7LUE.js → chunk-DIW6IQYK.js} +6 -6
- package/dist/{chunk-EXEO2R4S.js → chunk-DRRUFZKZ.js} +1 -1
- package/dist/{chunk-UTMP45YM.js → chunk-ELEAIRTG.js} +2 -1
- package/dist/{chunk-QAEKVEZY.js → chunk-FFUNPZA2.js} +1 -1
- package/dist/{chunk-BTD6ZYFL.js → chunk-GWZBBIV6.js} +2 -2
- package/dist/{chunk-AQ4GXXRD.js → chunk-GX2ISGLH.js} +18 -18
- package/dist/{chunk-FUYKKSDV.js → chunk-HJFWO72I.js} +1 -1
- package/dist/{chunk-NB7WS4SP.js → chunk-IYI7RPHU.js} +1 -1
- package/dist/{chunk-Y4AEFUEV.js → chunk-JVORBSUR.js} +3 -3
- package/dist/{chunk-TWIRPYVB.js → chunk-KIU7RKE5.js} +6 -6
- package/dist/{chunk-CO47EWFW.js → chunk-N7Y3T47I.js} +4 -4
- package/dist/{chunk-AHWLGR5T.js → chunk-OTAPFODZ.js} +5 -5
- package/dist/{chunk-CBPREIWS.js → chunk-OXYAEFKS.js} +2 -2
- package/dist/{chunk-Q36YWAJT.js → chunk-REUKFWLH.js} +1 -1
- package/dist/{chunk-HEOOUGVL.js → chunk-RL23S5DG.js} +1 -1
- package/dist/{chunk-CUJ2T7FO.js → chunk-T5VGNZ7F.js} +9 -9
- package/dist/{chunk-LVNMMESU.js → chunk-VZFLAGFK.js} +1 -1
- package/dist/{chunk-W6THM2TX.js → chunk-W6HVH5JJ.js} +5 -5
- package/dist/{chunk-A6AJ354O.js → chunk-WEL4NWRR.js} +5 -5
- package/dist/{chunk-JOSDA5SZ.js → chunk-WH7F67EN.js} +17 -17
- package/dist/{chunk-IFSKN5VH.js → chunk-XOXKL2DL.js} +1 -1
- package/dist/{chunk-IAOQPDO6.js → chunk-Z23POK2V.js} +1 -1
- package/dist/{chunk-MNYAYK5I.js → chunk-ZBWAXCR3.js} +1 -1
- 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 +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-32P3ZO4Z.js → db-6JOWUGLP.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-ZOHC35HH.js → oauth-callback-server-ZLOKNXOW.js} +23 -23
- package/dist/{runner-QWGQH425.js → runner-YD4J2GBE.js} +15 -15
- package/dist/{skills-2T6JZT2K.js → skills-YMSY2LFN.js} +6 -6
- package/dist/spawn-ZVO5IUCR.js +37 -0
- package/dist/{validation-LMGCYHRK.js → validation-KAOZ7UHD.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-CVXCACZK.js → work-ILZ3L7AD.js} +18 -18
- package/dist/worker-D34ZL6RU.js +24 -0
- package/package.json +4 -4
- package/dist/spawn-55U4TVHQ.js +0 -37
- package/dist/worker-SWMVAAN6.js +0 -24
|
@@ -13,24 +13,24 @@ import {
|
|
|
13
13
|
getPlugins,
|
|
14
14
|
setPlugins,
|
|
15
15
|
validatePlugins
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-BLBKORDG.js";
|
|
17
|
+
import "./chunk-JVORBSUR.js";
|
|
18
|
+
import "./chunk-VZFLAGFK.js";
|
|
19
|
+
import "./chunk-XOXKL2DL.js";
|
|
20
|
+
import "./chunk-HJFWO72I.js";
|
|
21
|
+
import "./chunk-OXYAEFKS.js";
|
|
22
22
|
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-FFUNPZA2.js";
|
|
24
|
+
import "./chunk-RL23S5DG.js";
|
|
25
|
+
import "./chunk-IYI7RPHU.js";
|
|
26
26
|
import "./chunk-CGA4ERJ5.js";
|
|
27
27
|
import "./chunk-M63DETLL.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-Z23POK2V.js";
|
|
29
29
|
import "./chunk-6GWA276C.js";
|
|
30
30
|
import "./chunk-OOUNJNMR.js";
|
|
31
31
|
import "./chunk-H4HBKISO.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-DRRUFZKZ.js";
|
|
33
|
+
import "./chunk-2E353AHN.js";
|
|
34
34
|
import "./chunk-MLKGABMK.js";
|
|
35
35
|
export {
|
|
36
36
|
PluginHookDeniedError,
|
|
@@ -9,7 +9,7 @@ type ConversationFeedMembership = {
|
|
|
9
9
|
kind: "actorEmail";
|
|
10
10
|
email: string;
|
|
11
11
|
};
|
|
12
|
-
declare function conversationRows(db: JuniorDatabase, limit: number, filter?: ConversationFeedMembership): Promise<{
|
|
12
|
+
declare function conversationRows(db: JuniorDatabase, limit: number, status: "active" | "archived", filter?: ConversationFeedMembership): Promise<{
|
|
13
13
|
conversation: {
|
|
14
14
|
conversationId: string;
|
|
15
15
|
schemaVersion: number;
|
|
@@ -124,6 +124,7 @@ export declare function readConversationRecordFromSql(conversationId: string): P
|
|
|
124
124
|
export declare function readConversationFeedFromSql(options?: {
|
|
125
125
|
actorEmail?: string;
|
|
126
126
|
limit?: number;
|
|
127
|
+
status?: "active" | "archived";
|
|
127
128
|
viewer?: User;
|
|
128
129
|
}): Promise<ConversationFeed>;
|
|
129
130
|
/**
|
|
@@ -132,6 +133,7 @@ export declare function readConversationFeedFromSql(options?: {
|
|
|
132
133
|
*/
|
|
133
134
|
export declare function readConversationFeed(options?: {
|
|
134
135
|
actorEmail?: string;
|
|
136
|
+
status?: "active" | "archived";
|
|
135
137
|
viewer?: User;
|
|
136
138
|
}): Promise<ConversationFeed>;
|
|
137
139
|
export {};
|
|
@@ -48,6 +48,10 @@ export declare const conversationEventsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
}, z.core.$strict>;
|
|
49
49
|
export declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
50
50
|
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
51
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
active: "active";
|
|
53
|
+
archived: "archived";
|
|
54
|
+
}>>;
|
|
51
55
|
}, z.core.$strict>;
|
|
52
56
|
export declare const archiveConversationBodySchema: z.ZodObject<{
|
|
53
57
|
archived: z.ZodBoolean;
|
package/dist/api/schema.js
CHANGED
package/dist/api.js
CHANGED
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
workspaceListSchema,
|
|
42
42
|
workspaceParamsSchema,
|
|
43
43
|
workspaceSchema
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ELEAIRTG.js";
|
|
45
45
|
import {
|
|
46
46
|
appendAndEnqueueApiConversationMessage,
|
|
47
47
|
authenticatePersonalToken,
|
|
@@ -59,15 +59,15 @@ import {
|
|
|
59
59
|
revokePersonalToken,
|
|
60
60
|
viewerConversationMembership,
|
|
61
61
|
webActorFromEmail
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-47LO5GDT.js";
|
|
63
63
|
import {
|
|
64
64
|
buildSentryConversationUrl,
|
|
65
65
|
getWebAuthorization
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-6FWEUJGH.js";
|
|
67
67
|
import {
|
|
68
68
|
cancelHumanFacingPendingMessages,
|
|
69
69
|
getConversation
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-N7Y3T47I.js";
|
|
71
71
|
import {
|
|
72
72
|
readTaskExecutionByConversationId,
|
|
73
73
|
readTaskExecutionDays,
|
|
@@ -75,8 +75,8 @@ import {
|
|
|
75
75
|
readTaskExecutionSummaries,
|
|
76
76
|
readTaskExecutions,
|
|
77
77
|
readTaskRuns
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-T5VGNZ7F.js";
|
|
79
|
+
import "./chunk-WEL4NWRR.js";
|
|
80
80
|
import {
|
|
81
81
|
healthReportSchema,
|
|
82
82
|
pluginOperationalReportFeedSchema,
|
|
@@ -101,20 +101,20 @@ import {
|
|
|
101
101
|
listPublicScheduledTasksForTeams,
|
|
102
102
|
readLiveAttachment,
|
|
103
103
|
readStats
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-OTAPFODZ.js";
|
|
105
105
|
import {
|
|
106
106
|
parseSlackThreadId
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-5EWBGDW2.js";
|
|
108
108
|
import {
|
|
109
109
|
agentTurnUsageSchema,
|
|
110
110
|
fallbackShortTitle,
|
|
111
111
|
hasAgentTurnUsage,
|
|
112
112
|
renderJuniorNativeConversationEvent
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-2BNKQSPC.js";
|
|
114
114
|
import "./chunk-3Y47VMHV.js";
|
|
115
115
|
import {
|
|
116
116
|
getCachedSnapshot
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-BFNNCBTK.js";
|
|
118
118
|
import "./chunk-PDO5BLNM.js";
|
|
119
119
|
import {
|
|
120
120
|
SANDBOX_RUNTIME,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
updateWorkspace,
|
|
136
136
|
withSlackRetries,
|
|
137
137
|
workspaceRepoCheckoutPath
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-BLBKORDG.js";
|
|
139
139
|
import {
|
|
140
140
|
decodeStoredConversationEvent,
|
|
141
141
|
getConversationStore,
|
|
@@ -143,25 +143,25 @@ import {
|
|
|
143
143
|
getSqlExecutor,
|
|
144
144
|
locationFromRow,
|
|
145
145
|
parseSessionSource
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-JVORBSUR.js";
|
|
147
147
|
import {
|
|
148
148
|
juniorConversationEvents,
|
|
149
149
|
juniorConversations,
|
|
150
150
|
juniorIdentities,
|
|
151
151
|
juniorUsers
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-VZFLAGFK.js";
|
|
153
153
|
import {
|
|
154
154
|
create,
|
|
155
155
|
hash
|
|
156
|
-
} from "./chunk-
|
|
157
|
-
import "./chunk-
|
|
158
|
-
import "./chunk-
|
|
156
|
+
} from "./chunk-XOXKL2DL.js";
|
|
157
|
+
import "./chunk-HJFWO72I.js";
|
|
158
|
+
import "./chunk-OXYAEFKS.js";
|
|
159
159
|
import {
|
|
160
160
|
juniorDestinations
|
|
161
161
|
} from "./chunk-VFUK3X5B.js";
|
|
162
|
-
import "./chunk-
|
|
163
|
-
import "./chunk-
|
|
164
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-FFUNPZA2.js";
|
|
163
|
+
import "./chunk-RL23S5DG.js";
|
|
164
|
+
import "./chunk-IYI7RPHU.js";
|
|
165
165
|
import "./chunk-CGA4ERJ5.js";
|
|
166
166
|
import {
|
|
167
167
|
parseSlackChannelId,
|
|
@@ -171,12 +171,12 @@ import {
|
|
|
171
171
|
import {
|
|
172
172
|
logException,
|
|
173
173
|
logWarn
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-Z23POK2V.js";
|
|
175
175
|
import "./chunk-6GWA276C.js";
|
|
176
176
|
import "./chunk-OOUNJNMR.js";
|
|
177
177
|
import "./chunk-H4HBKISO.js";
|
|
178
|
-
import "./chunk-
|
|
179
|
-
import "./chunk-
|
|
178
|
+
import "./chunk-DRRUFZKZ.js";
|
|
179
|
+
import "./chunk-2E353AHN.js";
|
|
180
180
|
import "./chunk-MLKGABMK.js";
|
|
181
181
|
|
|
182
182
|
// src/api.ts
|
|
@@ -1167,7 +1167,7 @@ async function readConversationEventPage(executor, args) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
// src/api/conversations/list.ts
|
|
1170
|
-
import { and as and7, asc as asc2, desc as desc2, eq as eq7, isNull as isNull3 } from "drizzle-orm";
|
|
1170
|
+
import { and as and7, asc as asc2, desc as desc2, eq as eq7, isNotNull as isNotNull4, isNull as isNull3 } from "drizzle-orm";
|
|
1171
1171
|
|
|
1172
1172
|
// src/api/conversations/shared.ts
|
|
1173
1173
|
function slackStatsLocationLabel(input) {
|
|
@@ -1736,7 +1736,7 @@ function conversationFeedMembershipFilter(filter) {
|
|
|
1736
1736
|
participantMatch: conversationHasParticipantEmail(filter.email)
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
|
-
async function conversationRows(db, limit, filter) {
|
|
1739
|
+
async function conversationRows(db, limit, status, filter) {
|
|
1740
1740
|
return db.select({
|
|
1741
1741
|
conversation: juniorConversations,
|
|
1742
1742
|
destination: juniorDestinations,
|
|
@@ -1756,7 +1756,7 @@ async function conversationRows(db, limit, filter) {
|
|
|
1756
1756
|
).leftJoin(juniorUsers, eq7(juniorUsers.id, juniorIdentities.userId)).where(
|
|
1757
1757
|
and7(
|
|
1758
1758
|
isNull3(juniorConversations.parentConversationId),
|
|
1759
|
-
isNull3(juniorConversations.archivedAt),
|
|
1759
|
+
status === "archived" ? isNotNull4(juniorConversations.archivedAt) : isNull3(juniorConversations.archivedAt),
|
|
1760
1760
|
conversationFeedMembershipFilter(filter)
|
|
1761
1761
|
)
|
|
1762
1762
|
).orderBy(
|
|
@@ -1850,6 +1850,7 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
1850
1850
|
const rows = await conversationRows(
|
|
1851
1851
|
db,
|
|
1852
1852
|
options.limit ?? CONVERSATION_FEED_LIMIT,
|
|
1853
|
+
options.status ?? "active",
|
|
1853
1854
|
conversationFeedFilter(options)
|
|
1854
1855
|
);
|
|
1855
1856
|
const conversations = rows.map((row) => conversationFromRow(row));
|
|
@@ -3171,12 +3172,13 @@ function createConversationRoutes(options) {
|
|
|
3171
3172
|
"Invalid query parameters."
|
|
3172
3173
|
),
|
|
3173
3174
|
async (context) => {
|
|
3174
|
-
const { actorEmail } = context.req.valid("query");
|
|
3175
|
+
const { actorEmail, status } = context.req.valid("query");
|
|
3175
3176
|
const viewer = context.get("viewer");
|
|
3176
3177
|
return jsonResponse(
|
|
3177
3178
|
conversationFeedSchema,
|
|
3178
3179
|
await readConversationFeed({
|
|
3179
3180
|
...actorEmail ? { actorEmail } : {},
|
|
3181
|
+
status,
|
|
3180
3182
|
...viewer ? { viewer } : {}
|
|
3181
3183
|
})
|
|
3182
3184
|
);
|
|
@@ -4077,7 +4079,7 @@ async function readPeoplePluginReports(args) {
|
|
|
4077
4079
|
source: "plugins"
|
|
4078
4080
|
});
|
|
4079
4081
|
}
|
|
4080
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
4082
|
+
const { getPluginProfileReports } = await import("./agent-hooks-HBZUWB4D.js");
|
|
4081
4083
|
return pluginOperationalReportFeedSchema.parse({
|
|
4082
4084
|
generatedAt: new Date(nowMs).toISOString(),
|
|
4083
4085
|
reports: await getPluginProfileReports({
|
|
@@ -4796,7 +4798,7 @@ function readDescriptionText(home) {
|
|
|
4796
4798
|
}
|
|
4797
4799
|
}
|
|
4798
4800
|
async function readSkillReports() {
|
|
4799
|
-
const { discoverSkills } = await import("./skills-
|
|
4801
|
+
const { discoverSkills } = await import("./skills-YMSY2LFN.js");
|
|
4800
4802
|
const skills = await discoverSkills();
|
|
4801
4803
|
return skillReportsSchema.parse(
|
|
4802
4804
|
skills.map((skill) => ({
|
|
@@ -4806,7 +4808,7 @@ async function readSkillReports() {
|
|
|
4806
4808
|
);
|
|
4807
4809
|
}
|
|
4808
4810
|
async function readPlugins() {
|
|
4809
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4811
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-J3R3LC7Y.js");
|
|
4810
4812
|
return pluginsSchema.parse(
|
|
4811
4813
|
pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4812
4814
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
@@ -4819,7 +4821,7 @@ async function readPlugins() {
|
|
|
4819
4821
|
async function readRuntimeInfoReport() {
|
|
4820
4822
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4821
4823
|
import("./discovery-GUFTFBTL.js"),
|
|
4822
|
-
import("./catalog-runtime-
|
|
4824
|
+
import("./catalog-runtime-J3R3LC7Y.js"),
|
|
4823
4825
|
readPlugins(),
|
|
4824
4826
|
readSkillReports()
|
|
4825
4827
|
]);
|
|
@@ -4835,7 +4837,7 @@ async function readRuntimeInfoReport() {
|
|
|
4835
4837
|
}
|
|
4836
4838
|
async function readPluginOperationalReportFeed() {
|
|
4837
4839
|
const nowMs = Date.now();
|
|
4838
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4840
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-HBZUWB4D.js");
|
|
4839
4841
|
return pluginOperationalReportFeedSchema.parse({
|
|
4840
4842
|
source: "plugins",
|
|
4841
4843
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
processConversationWork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AJMUVCXW.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZBWAXCR3.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KIU7RKE5.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -36,12 +36,12 @@ import {
|
|
|
36
36
|
startSlackProcessingReaction,
|
|
37
37
|
stripLeadingBotMention,
|
|
38
38
|
wakePausedTurn
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WH7F67EN.js";
|
|
40
40
|
import "./chunk-FA6POGLH.js";
|
|
41
41
|
import {
|
|
42
42
|
getTurnRequestDeadline,
|
|
43
43
|
runWithTurnRequestDeadline
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-REUKFWLH.js";
|
|
45
45
|
import {
|
|
46
46
|
GET,
|
|
47
47
|
apiTurnIdForMessage,
|
|
@@ -58,8 +58,8 @@ import {
|
|
|
58
58
|
resolveSlackConversationContext,
|
|
59
59
|
routeApiTurnWork,
|
|
60
60
|
webActorFromEmail
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-47LO5GDT.js";
|
|
62
|
+
import "./chunk-6FWEUJGH.js";
|
|
63
63
|
import {
|
|
64
64
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
65
65
|
appendAndEnqueueInboundMessage,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
isInvalidConversationRecordError,
|
|
71
71
|
listActiveConversationIds,
|
|
72
72
|
removeActiveConversation
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-N7Y3T47I.js";
|
|
74
74
|
import {
|
|
75
75
|
buildDeliveredTurnStatePatch,
|
|
76
76
|
claimDispatchMailboxAppend,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
requireTurnFailureEventId,
|
|
102
102
|
resolveTurnSessionRouting,
|
|
103
103
|
scheduleSessionCompletedPluginTasks
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-T5VGNZ7F.js";
|
|
105
105
|
import {
|
|
106
106
|
ConversationTurnLifecycleService,
|
|
107
107
|
coerceThreadConversationState,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
persistThreadRuntimeState,
|
|
112
112
|
persistThreadState,
|
|
113
113
|
persistThreadStateById
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-WEL4NWRR.js";
|
|
115
115
|
import "./chunk-UTL3MHPC.js";
|
|
116
116
|
import {
|
|
117
117
|
getVercelConversationWorkQueue,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
import {
|
|
131
131
|
validatePluginEgressCredentialHooks,
|
|
132
132
|
validatePluginRegistrations
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-4ALVTB7F.js";
|
|
134
134
|
import {
|
|
135
135
|
defineJuniorPlugins,
|
|
136
136
|
pluginCatalogConfigFromEnv,
|
|
@@ -165,11 +165,11 @@ import {
|
|
|
165
165
|
shouldEmitDevAgentTrace,
|
|
166
166
|
shouldPropagateSandboxEgressTrace,
|
|
167
167
|
unpublishedArtifactHeaders
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-GX2ISGLH.js";
|
|
169
169
|
import {
|
|
170
170
|
AuthorizationFlowDisabledError,
|
|
171
171
|
PluginCredentialFailureError
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-W6HVH5JJ.js";
|
|
173
173
|
import "./chunk-DIB4GX3G.js";
|
|
174
174
|
import {
|
|
175
175
|
createAgentRunner,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
deleteMcpAuthSessionsForUserProvider,
|
|
178
178
|
deleteMcpServerSessionId,
|
|
179
179
|
deleteMcpStoredOAuthCredentials
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-7V25DLCB.js";
|
|
181
181
|
import {
|
|
182
182
|
RetryableDeliveryError
|
|
183
183
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
formatProviderLabel,
|
|
186
186
|
postSlackMessage,
|
|
187
187
|
startOAuthFlow
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-DIW6IQYK.js";
|
|
189
189
|
import "./chunk-6ZWRNC4D.js";
|
|
190
190
|
import {
|
|
191
191
|
getExperimentalFeatures,
|
|
@@ -199,10 +199,10 @@ import {
|
|
|
199
199
|
logScheduledTaskRunSkipped,
|
|
200
200
|
requestAttachmentDeletion,
|
|
201
201
|
scheduledTaskRunAttributes
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-OTAPFODZ.js";
|
|
203
203
|
import {
|
|
204
204
|
parseSlackThreadId
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-5EWBGDW2.js";
|
|
206
206
|
import {
|
|
207
207
|
ConversationTurnBoundaryError,
|
|
208
208
|
CooperativeTurnYieldError,
|
|
@@ -254,12 +254,12 @@ import {
|
|
|
254
254
|
trimTrailingAssistantMessages,
|
|
255
255
|
turnHasReply,
|
|
256
256
|
upsertConversationMessage
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-2BNKQSPC.js";
|
|
258
258
|
import "./chunk-3Y47VMHV.js";
|
|
259
259
|
import {
|
|
260
260
|
getSandboxResourceConfig,
|
|
261
261
|
setSandboxResourceConfig
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-BFNNCBTK.js";
|
|
263
263
|
import "./chunk-PDO5BLNM.js";
|
|
264
264
|
import "./chunk-UIE3R5XU.js";
|
|
265
265
|
import {
|
|
@@ -287,7 +287,7 @@ import {
|
|
|
287
287
|
verifyEventTaskCredentialSubject,
|
|
288
288
|
verifyScheduledTaskCredentialSubject,
|
|
289
289
|
verifySlackDirectCredentialSubject
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-BLBKORDG.js";
|
|
291
291
|
import {
|
|
292
292
|
contextProvenance,
|
|
293
293
|
createSlackDestination,
|
|
@@ -300,21 +300,21 @@ import {
|
|
|
300
300
|
requireSlackDestination,
|
|
301
301
|
withConversationEventLock,
|
|
302
302
|
withConversationMutationLock
|
|
303
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-JVORBSUR.js";
|
|
304
304
|
import {
|
|
305
305
|
juniorAgentBindings,
|
|
306
306
|
juniorAgentInvocations,
|
|
307
307
|
juniorConversationEvents,
|
|
308
308
|
juniorConversations
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-VZFLAGFK.js";
|
|
310
310
|
import {
|
|
311
311
|
sleep
|
|
312
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-XOXKL2DL.js";
|
|
313
313
|
import {
|
|
314
314
|
acquireActiveLock,
|
|
315
315
|
getStateAdapter,
|
|
316
316
|
withActiveLock
|
|
317
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-HJFWO72I.js";
|
|
318
318
|
import {
|
|
319
319
|
STANDARD_MODEL_PROFILE,
|
|
320
320
|
botConfig,
|
|
@@ -332,16 +332,16 @@ import {
|
|
|
332
332
|
modelIdForProfile,
|
|
333
333
|
setSlackReactionConfig,
|
|
334
334
|
standardModelId
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-OXYAEFKS.js";
|
|
336
336
|
import {
|
|
337
337
|
juniorDestinations
|
|
338
338
|
} from "./chunk-VFUK3X5B.js";
|
|
339
|
-
import "./chunk-
|
|
340
|
-
import "./chunk-
|
|
339
|
+
import "./chunk-FFUNPZA2.js";
|
|
340
|
+
import "./chunk-GWZBBIV6.js";
|
|
341
341
|
import {
|
|
342
342
|
pluginCatalogRuntime
|
|
343
|
-
} from "./chunk-
|
|
344
|
-
import "./chunk-
|
|
343
|
+
} from "./chunk-RL23S5DG.js";
|
|
344
|
+
import "./chunk-IYI7RPHU.js";
|
|
345
345
|
import {
|
|
346
346
|
credentialContextForActor
|
|
347
347
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -373,7 +373,7 @@ import {
|
|
|
373
373
|
withContext,
|
|
374
374
|
withLogContext,
|
|
375
375
|
withSpan
|
|
376
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-Z23POK2V.js";
|
|
377
377
|
import {
|
|
378
378
|
continueTrace
|
|
379
379
|
} from "./chunk-6GWA276C.js";
|
|
@@ -381,10 +381,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
381
381
|
import "./chunk-H4HBKISO.js";
|
|
382
382
|
import {
|
|
383
383
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
384
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-DRRUFZKZ.js";
|
|
385
385
|
import {
|
|
386
386
|
JUNIOR_VERSION
|
|
387
|
-
} from "./chunk-
|
|
387
|
+
} from "./chunk-2E353AHN.js";
|
|
388
388
|
import "./chunk-MLKGABMK.js";
|
|
389
389
|
|
|
390
390
|
// src/app.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RL23S5DG.js";
|
|
4
|
+
import "./chunk-IYI7RPHU.js";
|
|
5
5
|
import "./chunk-CGA4ERJ5.js";
|
|
6
6
|
import "./chunk-M63DETLL.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-Z23POK2V.js";
|
|
8
8
|
import "./chunk-6GWA276C.js";
|
|
9
9
|
import "./chunk-OOUNJNMR.js";
|
|
10
10
|
import "./chunk-H4HBKISO.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DRRUFZKZ.js";
|
|
12
|
+
import "./chunk-2E353AHN.js";
|
|
13
13
|
import "./chunk-MLKGABMK.js";
|
|
14
14
|
export {
|
|
15
15
|
pluginCatalogRuntime
|
|
@@ -13,25 +13,25 @@ import {
|
|
|
13
13
|
instructionProvenanceFor,
|
|
14
14
|
sanitizePostgresJson,
|
|
15
15
|
withConversationEventLock
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JVORBSUR.js";
|
|
17
17
|
import {
|
|
18
18
|
SANDBOX_REPOS_ROOT,
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT,
|
|
20
20
|
sleep
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XOXKL2DL.js";
|
|
22
22
|
import {
|
|
23
23
|
MUTATION_LOCK_TTL_MS,
|
|
24
24
|
fenceLock,
|
|
25
25
|
getStateAdapter,
|
|
26
26
|
withLock
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HJFWO72I.js";
|
|
28
28
|
import {
|
|
29
29
|
botConfig,
|
|
30
30
|
completeText,
|
|
31
31
|
escapeXml,
|
|
32
32
|
resolveGatewayModel,
|
|
33
33
|
unwrapCurrentInstruction
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OXYAEFKS.js";
|
|
35
35
|
import {
|
|
36
36
|
parseSlackMessageTs,
|
|
37
37
|
toStoredSlackActor
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
logException,
|
|
42
42
|
logWarn,
|
|
43
43
|
setSpanAttributes
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Z23POK2V.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/turn-context-tag.ts
|
|
47
47
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWebAuthorization,
|
|
3
3
|
deleteWebAuthorization
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6FWEUJGH.js";
|
|
5
5
|
import {
|
|
6
6
|
appendAndEnqueueInboundMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N7Y3T47I.js";
|
|
8
8
|
import {
|
|
9
9
|
buildDeliveredTurnStatePatch,
|
|
10
10
|
completeAuthPauseTurn,
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
getTurnUserMessage,
|
|
13
13
|
processPluginTask,
|
|
14
14
|
scheduleSessionCompletedPluginTasks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T5VGNZ7F.js";
|
|
16
16
|
import {
|
|
17
17
|
ConversationTurnLifecycleService,
|
|
18
18
|
coerceThreadConversationState,
|
|
19
19
|
getPersistedSandboxState,
|
|
20
20
|
getPersistedThreadState,
|
|
21
21
|
persistThreadStateById
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WEL4NWRR.js";
|
|
23
23
|
import {
|
|
24
24
|
healthReportSchema
|
|
25
25
|
} from "./chunk-UTL3MHPC.js";
|
|
26
26
|
import {
|
|
27
27
|
parseSlackThreadId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5EWBGDW2.js";
|
|
29
29
|
import {
|
|
30
30
|
TurnInputCommitLostError,
|
|
31
31
|
abandonTurnRecord,
|
|
@@ -49,31 +49,31 @@ import {
|
|
|
49
49
|
saveTurnCheckpoint,
|
|
50
50
|
startActiveTurn,
|
|
51
51
|
upsertConversationMessage
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-2BNKQSPC.js";
|
|
53
53
|
import {
|
|
54
54
|
normalizeSlackConversationId
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-BLBKORDG.js";
|
|
56
56
|
import {
|
|
57
57
|
getConversationEventStore,
|
|
58
58
|
getConversationStore,
|
|
59
59
|
getDb
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-JVORBSUR.js";
|
|
61
61
|
import {
|
|
62
62
|
juniorApiTokens,
|
|
63
63
|
juniorConversationParticipants,
|
|
64
64
|
juniorConversations,
|
|
65
65
|
juniorIdentities,
|
|
66
66
|
juniorUsers
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-VZFLAGFK.js";
|
|
68
68
|
import {
|
|
69
69
|
getSlackBotToken
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-OXYAEFKS.js";
|
|
71
71
|
import {
|
|
72
72
|
juniorDestinations
|
|
73
73
|
} from "./chunk-VFUK3X5B.js";
|
|
74
74
|
import {
|
|
75
75
|
canExposeConversationPayload
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-FFUNPZA2.js";
|
|
77
77
|
import {
|
|
78
78
|
credentialContextForActor
|
|
79
79
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
logWarn,
|
|
83
83
|
setTags,
|
|
84
84
|
withLogContext
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-Z23POK2V.js";
|
|
86
86
|
|
|
87
87
|
// src/handlers/health.ts
|
|
88
88
|
function readHealthReport() {
|