@sentry/junior 0.157.0 → 0.158.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-QI5EPOKQ.js → agent-hooks-BOWFTDE5.js} +10 -10
- package/dist/api/conversations/priority.d.ts +2 -1
- package/dist/api/conversations/user-message-activity.d.ts +3 -0
- package/dist/api.js +215 -174
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-HUGHAFUN.js → catalog-runtime-7GZ25WTR.js} +5 -5
- package/dist/{chunk-AFQ47JQ7.js → chunk-3A7VXSPJ.js} +8 -8
- package/dist/{chunk-VDAEXEBB.js → chunk-4JAOLUDB.js} +6 -6
- package/dist/{chunk-HJ3EZHIX.js → chunk-4Q6QVTKA.js} +5 -5
- package/dist/{chunk-5TIH5GOE.js → chunk-4XJ2WSTI.js} +5 -5
- package/dist/{chunk-F7VOY4VQ.js → chunk-6GJCOUTA.js} +1 -1
- package/dist/{chunk-BLCVTEE7.js → chunk-A7EDLNGU.js} +4 -4
- package/dist/{chunk-G2FN3I66.js → chunk-AF4PHIP6.js} +3 -3
- package/dist/{chunk-MXO6VFB3.js → chunk-BNFGY66A.js} +1 -1
- package/dist/{chunk-GEY6IFXH.js → chunk-C3FYJZSA.js} +4 -4
- package/dist/{chunk-VYDM7HUF.js → chunk-DTVTBZNP.js} +1 -1
- package/dist/{chunk-77QB5FNI.js → chunk-EQ6Y37MD.js} +1 -1
- package/dist/{chunk-OWASYHHV.js → chunk-EXITAVHO.js} +18 -18
- package/dist/{chunk-WNNYOPXX.js → chunk-FA32YRZ3.js} +5 -5
- package/dist/{chunk-UJYA75N5.js → chunk-FAJ6SMEE.js} +2 -2
- package/dist/{chunk-PP4UQTH3.js → chunk-IEM3GFXL.js} +9 -9
- package/dist/{chunk-46ADYIPE.js → chunk-IXYGGJRA.js} +1 -1
- package/dist/{chunk-TA5R6BME.js → chunk-JEXQQLEC.js} +18 -18
- package/dist/{chunk-VBKFO65J.js → chunk-KAFYW3O6.js} +10 -10
- package/dist/{chunk-MKA3T2R6.js → chunk-KSZXVR5G.js} +1 -1
- package/dist/{chunk-RQBRGPUF.js → chunk-LUSAAJJA.js} +2 -2
- package/dist/{chunk-MGJW3SW4.js → chunk-NOEERHHR.js} +6 -6
- package/dist/{chunk-I3OQVVMV.js → chunk-PHQDXC27.js} +1 -1
- package/dist/{chunk-S4PFOWRA.js → chunk-RCIKTZZF.js} +1 -1
- package/dist/{chunk-MDZQ62PB.js → chunk-ROOTB7J7.js} +2 -2
- package/dist/{chunk-XRERMHPN.js → chunk-SAJPQLTY.js} +1 -1
- package/dist/{chunk-4M25PSFB.js → chunk-SSU65ZTZ.js} +1 -1
- package/dist/{chunk-GO2W3VZY.js → chunk-UJ6N32ZM.js} +4 -4
- package/dist/{chunk-D7BNWRYL.js → chunk-UPPU3FQU.js} +1 -1
- package/dist/{chunk-VIBHFGQC.js → chunk-UQJO35BP.js} +4 -4
- package/dist/{chunk-3GS7O66Z.js → chunk-VURJ2NSF.js} +1 -1
- package/dist/{chunk-7J65DOBL.js → chunk-X4BLYIMV.js} +6 -6
- package/dist/{chunk-6MI43QZO.js → chunk-YEZS4TEY.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 +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-VQAV4PJ3.js → db-HFWTPYT7.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-K5KQAAAX.js → oauth-callback-server-J3NW4QL5.js} +23 -23
- package/dist/{runner-U7QI7P4S.js → runner-CL6QHML5.js} +13 -13
- package/dist/{skills-ENKRBZ7K.js → skills-WZWKZIFQ.js} +6 -6
- package/dist/spawn-TQJWADG4.js +37 -0
- package/dist/{validation-VKCDVGA6.js → validation-4HVSSLJV.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-IBD6PWP2.js → work-UF4KXPVG.js} +17 -17
- package/dist/worker-HI7I2W2U.js +24 -0
- package/package.json +5 -5
- package/dist/spawn-4XGNONLS.js +0 -37
- package/dist/worker-TJFXOZRC.js +0 -24
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
processConversationWork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UQJO35BP.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BNFGY66A.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
routeAgentInvocationWork
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X4BLYIMV.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-JEXQQLEC.js";
|
|
40
40
|
import "./chunk-FA6POGLH.js";
|
|
41
41
|
import {
|
|
42
42
|
getTurnRequestDeadline,
|
|
43
43
|
runWithTurnRequestDeadline
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-RCIKTZZF.js";
|
|
45
45
|
import {
|
|
46
46
|
GET,
|
|
47
47
|
conversationVisibilityFromSlackChannelType,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
resolveSlackChannelTypeFromMessage,
|
|
52
52
|
resolveSlackConversationContext,
|
|
53
53
|
routeApiTurnWork
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-KAFYW3O6.js";
|
|
55
|
+
import "./chunk-SSU65ZTZ.js";
|
|
56
56
|
import {
|
|
57
57
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
58
58
|
appendAndEnqueueInboundMessage,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
isInvalidConversationRecordError,
|
|
64
64
|
listActiveConversationIds,
|
|
65
65
|
removeActiveConversation
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-A7EDLNGU.js";
|
|
67
67
|
import {
|
|
68
68
|
buildDeliveredTurnStatePatch,
|
|
69
69
|
claimDispatchMailboxAppend,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
requireTurnFailureEventId,
|
|
95
95
|
resolveTurnSessionRouting,
|
|
96
96
|
scheduleSessionCompletedPluginTasks
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IEM3GFXL.js";
|
|
98
98
|
import {
|
|
99
99
|
ConversationTurnLifecycleService,
|
|
100
100
|
coerceThreadConversationState,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
persistThreadRuntimeState,
|
|
105
105
|
persistThreadState,
|
|
106
106
|
persistThreadStateById
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-4XJ2WSTI.js";
|
|
108
108
|
import "./chunk-UTL3MHPC.js";
|
|
109
109
|
import {
|
|
110
110
|
getVercelConversationWorkQueue,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
import {
|
|
124
124
|
validatePluginEgressCredentialHooks,
|
|
125
125
|
validatePluginRegistrations
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-SAJPQLTY.js";
|
|
127
127
|
import {
|
|
128
128
|
defineJuniorPlugins,
|
|
129
129
|
pluginCatalogConfigFromEnv,
|
|
@@ -155,11 +155,11 @@ import {
|
|
|
155
155
|
setConfigDefaults,
|
|
156
156
|
shouldEmitDevAgentTrace,
|
|
157
157
|
shouldPropagateSandboxEgressTrace
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-EXITAVHO.js";
|
|
159
159
|
import {
|
|
160
160
|
AuthorizationFlowDisabledError,
|
|
161
161
|
PluginCredentialFailureError
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-FA32YRZ3.js";
|
|
163
163
|
import "./chunk-DIB4GX3G.js";
|
|
164
164
|
import {
|
|
165
165
|
createAgentRunner,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
deleteMcpAuthSessionsForUserProvider,
|
|
168
168
|
deleteMcpServerSessionId,
|
|
169
169
|
deleteMcpStoredOAuthCredentials
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-3A7VXSPJ.js";
|
|
171
171
|
import {
|
|
172
172
|
RetryableDeliveryError
|
|
173
173
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
formatProviderLabel,
|
|
176
176
|
postSlackMessage,
|
|
177
177
|
startOAuthFlow
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-4JAOLUDB.js";
|
|
179
179
|
import "./chunk-7MA4HV4W.js";
|
|
180
180
|
import {
|
|
181
181
|
getExperimentalFeatures,
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
import {
|
|
185
185
|
getSandboxResourceConfig,
|
|
186
186
|
setSandboxResourceConfig
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-UJ6N32ZM.js";
|
|
188
188
|
import {
|
|
189
189
|
collectAttachmentGarbage,
|
|
190
190
|
createSchedulerSqlStore,
|
|
@@ -192,10 +192,10 @@ import {
|
|
|
192
192
|
logScheduledTaskRunSkipped,
|
|
193
193
|
requestAttachmentDeletion,
|
|
194
194
|
scheduledTaskRunAttributes
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-4Q6QVTKA.js";
|
|
196
196
|
import {
|
|
197
197
|
parseSlackThreadId
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-DTVTBZNP.js";
|
|
199
199
|
import {
|
|
200
200
|
ConversationTurnBoundaryError,
|
|
201
201
|
CooperativeTurnYieldError,
|
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
trimTrailingAssistantMessages,
|
|
246
246
|
turnHasReply,
|
|
247
247
|
upsertConversationMessage
|
|
248
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-C3FYJZSA.js";
|
|
249
249
|
import "./chunk-3Y47VMHV.js";
|
|
250
250
|
import "./chunk-PDO5BLNM.js";
|
|
251
251
|
import "./chunk-UIE3R5XU.js";
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
verifyEventTaskCredentialSubject,
|
|
266
266
|
verifyScheduledTaskCredentialSubject,
|
|
267
267
|
verifySlackDirectCredentialSubject
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-NOEERHHR.js";
|
|
269
269
|
import {
|
|
270
270
|
SlackActionError,
|
|
271
271
|
downloadPrivateSlackFile,
|
|
@@ -275,7 +275,7 @@ import {
|
|
|
275
275
|
normalizeSlackConversationId,
|
|
276
276
|
runWithSlackInstallationToken,
|
|
277
277
|
runWithWorkspaceTeamId
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-ROOTB7J7.js";
|
|
279
279
|
import {
|
|
280
280
|
contextProvenance,
|
|
281
281
|
createSlackDestination,
|
|
@@ -288,19 +288,19 @@ import {
|
|
|
288
288
|
requireSlackDestination,
|
|
289
289
|
withConversationEventLock,
|
|
290
290
|
withConversationMutationLock
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-AF4PHIP6.js";
|
|
292
292
|
import {
|
|
293
293
|
juniorAgentBindings,
|
|
294
294
|
juniorAgentInvocations,
|
|
295
295
|
juniorConversationEvents,
|
|
296
296
|
juniorConversations
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-VURJ2NSF.js";
|
|
298
298
|
import "./chunk-EM225ITJ.js";
|
|
299
299
|
import {
|
|
300
300
|
acquireActiveLock,
|
|
301
301
|
getStateAdapter,
|
|
302
302
|
withActiveLock
|
|
303
|
-
} from "./chunk-
|
|
303
|
+
} from "./chunk-PHQDXC27.js";
|
|
304
304
|
import {
|
|
305
305
|
STANDARD_MODEL_PROFILE,
|
|
306
306
|
botConfig,
|
|
@@ -318,16 +318,16 @@ import {
|
|
|
318
318
|
modelIdForProfile,
|
|
319
319
|
setSlackReactionConfig,
|
|
320
320
|
standardModelId
|
|
321
|
-
} from "./chunk-
|
|
321
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
322
322
|
import {
|
|
323
323
|
juniorDestinations
|
|
324
324
|
} from "./chunk-VFUK3X5B.js";
|
|
325
|
-
import "./chunk-
|
|
326
|
-
import "./chunk-
|
|
325
|
+
import "./chunk-UPPU3FQU.js";
|
|
326
|
+
import "./chunk-LUSAAJJA.js";
|
|
327
327
|
import {
|
|
328
328
|
pluginCatalogRuntime
|
|
329
|
-
} from "./chunk-
|
|
330
|
-
import "./chunk-
|
|
329
|
+
} from "./chunk-YEZS4TEY.js";
|
|
330
|
+
import "./chunk-EQ6Y37MD.js";
|
|
331
331
|
import {
|
|
332
332
|
credentialContextForActor
|
|
333
333
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -359,7 +359,7 @@ import {
|
|
|
359
359
|
withContext,
|
|
360
360
|
withLogContext,
|
|
361
361
|
withSpan
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-KSZXVR5G.js";
|
|
363
363
|
import {
|
|
364
364
|
continueTrace
|
|
365
365
|
} from "./chunk-6GWA276C.js";
|
|
@@ -367,10 +367,10 @@ import "./chunk-OOUNJNMR.js";
|
|
|
367
367
|
import "./chunk-H4HBKISO.js";
|
|
368
368
|
import {
|
|
369
369
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
370
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-6GJCOUTA.js";
|
|
371
371
|
import {
|
|
372
372
|
JUNIOR_VERSION
|
|
373
|
-
} from "./chunk-
|
|
373
|
+
} from "./chunk-IXYGGJRA.js";
|
|
374
374
|
import "./chunk-MLKGABMK.js";
|
|
375
375
|
|
|
376
376
|
// src/app.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YEZS4TEY.js";
|
|
4
|
+
import "./chunk-EQ6Y37MD.js";
|
|
5
5
|
import "./chunk-BDUENQD3.js";
|
|
6
6
|
import "./chunk-V7YE4WCP.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-KSZXVR5G.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-6GJCOUTA.js";
|
|
12
|
+
import "./chunk-IXYGGJRA.js";
|
|
13
13
|
import "./chunk-MLKGABMK.js";
|
|
14
14
|
export {
|
|
15
15
|
pluginCatalogRuntime
|
|
@@ -3,38 +3,38 @@ import {
|
|
|
3
3
|
} from "./chunk-RF6J3DIO.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4JAOLUDB.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-
|
|
13
|
+
} from "./chunk-NOEERHHR.js";
|
|
14
14
|
import {
|
|
15
15
|
getSlackClient,
|
|
16
16
|
withSlackRetries
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ROOTB7J7.js";
|
|
18
18
|
import {
|
|
19
19
|
getDb,
|
|
20
20
|
parseDestination
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AF4PHIP6.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-
|
|
28
|
+
} from "./chunk-PHQDXC27.js";
|
|
29
29
|
import {
|
|
30
30
|
pluginCatalogRuntime
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YEZS4TEY.js";
|
|
32
32
|
import {
|
|
33
33
|
fetchWithBoundedOAuthErrorBodies
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EQ6Y37MD.js";
|
|
35
35
|
import {
|
|
36
36
|
isRecord
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KSZXVR5G.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/capabilities/router.ts
|
|
40
40
|
var ProviderCredentialRouter = class {
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
isDmChannel,
|
|
5
5
|
normalizeSlackConversationId,
|
|
6
6
|
withSlackRetries
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ROOTB7J7.js";
|
|
8
8
|
import {
|
|
9
9
|
parseDestination
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AF4PHIP6.js";
|
|
11
11
|
import {
|
|
12
12
|
getStateAdapter
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PHQDXC27.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeSlackEmojiName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
17
17
|
import {
|
|
18
18
|
pluginCatalogRuntime
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YEZS4TEY.js";
|
|
20
20
|
import {
|
|
21
21
|
parseSlackMessageTs,
|
|
22
22
|
parseSlackUserId
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isRecord,
|
|
26
26
|
logInfo,
|
|
27
27
|
logWarn
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KSZXVR5G.js";
|
|
29
29
|
|
|
30
30
|
// src/chat/slack/outbound.ts
|
|
31
31
|
var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C3FYJZSA.js";
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NOEERHHR.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AF4PHIP6.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorAttachments,
|
|
13
13
|
juniorConversations,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
juniorSchedulerRuns,
|
|
16
16
|
juniorSchedulerTasks,
|
|
17
17
|
juniorStats
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VURJ2NSF.js";
|
|
19
19
|
import {
|
|
20
20
|
juniorDestinations
|
|
21
21
|
} from "./chunk-VFUK3X5B.js";
|
|
22
22
|
import {
|
|
23
23
|
logInfo
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KSZXVR5G.js";
|
|
25
25
|
|
|
26
26
|
// src/chat/event-tasks/store.ts
|
|
27
27
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C3FYJZSA.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-
|
|
9
|
+
} from "./chunk-AF4PHIP6.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VURJ2NSF.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PHQDXC27.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-
|
|
23
|
+
} from "./chunk-KSZXVR5G.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/turn-lifecycle.ts
|
|
26
26
|
var ConversationTurnLifecycleService = class {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AF4PHIP6.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PHQDXC27.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FAJ6SMEE.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-
|
|
26
|
+
} from "./chunk-KSZXVR5G.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
juniorConversations,
|
|
7
7
|
juniorIdentities,
|
|
8
8
|
juniorUsers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VURJ2NSF.js";
|
|
10
10
|
import {
|
|
11
11
|
TURN_REASONING_LEVELS,
|
|
12
12
|
getChatConfig,
|
|
13
13
|
modelProfileSchema
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FAJ6SMEE.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-
|
|
25
|
+
} from "./chunk-KSZXVR5G.js";
|
|
26
26
|
|
|
27
27
|
// src/chat/conversations/sql/store.ts
|
|
28
28
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
instructionProvenanceFor,
|
|
14
14
|
sanitizePostgresJson,
|
|
15
15
|
withConversationEventLock
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AF4PHIP6.js";
|
|
17
17
|
import {
|
|
18
18
|
SANDBOX_WORKSPACE_ROOT,
|
|
19
19
|
sleep
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
fenceLock,
|
|
24
24
|
getStateAdapter,
|
|
25
25
|
withLock
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PHQDXC27.js";
|
|
27
27
|
import {
|
|
28
28
|
botConfig,
|
|
29
29
|
completeText,
|
|
30
30
|
escapeXml,
|
|
31
31
|
resolveGatewayModel,
|
|
32
32
|
unwrapCurrentInstruction
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
34
34
|
import {
|
|
35
35
|
parseSlackMessageTs,
|
|
36
36
|
toStoredSlackActor
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
logException,
|
|
41
41
|
logWarn,
|
|
42
42
|
setSpanAttributes
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KSZXVR5G.js";
|
|
44
44
|
|
|
45
45
|
// src/chat/turn-context-tag.ts
|
|
46
46
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FA32YRZ3.js";
|
|
11
11
|
import {
|
|
12
12
|
authorizationId
|
|
13
13
|
} from "./chunk-DIB4GX3G.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
searchSlackUsers,
|
|
33
33
|
selectPluginGrant,
|
|
34
34
|
toMcpProviderError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3A7VXSPJ.js";
|
|
36
36
|
import {
|
|
37
37
|
RetryableDeliveryError,
|
|
38
38
|
actorFromRun,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
getSlackMessagePermalink,
|
|
49
49
|
resolveBaseUrl,
|
|
50
50
|
uploadFilesToConversation
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-4JAOLUDB.js";
|
|
52
52
|
import {
|
|
53
53
|
parseSandboxEgressAuthRequiredSignal,
|
|
54
54
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
runNonInteractiveCommand,
|
|
75
75
|
throwSandboxOperationError,
|
|
76
76
|
wrapSandboxSetupError
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-UJ6N32ZM.js";
|
|
78
78
|
import {
|
|
79
79
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
80
80
|
compactEventTask,
|
|
@@ -107,10 +107,10 @@ import {
|
|
|
107
107
|
scheduledTaskAttributes,
|
|
108
108
|
storeAttachments,
|
|
109
109
|
writableEventTask
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-4Q6QVTKA.js";
|
|
111
111
|
import {
|
|
112
112
|
parseSlackThreadId
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-DTVTBZNP.js";
|
|
114
114
|
import {
|
|
115
115
|
AGENTS_REMOVAL_NOTICE,
|
|
116
116
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
stripRuntimeTurnContext,
|
|
181
181
|
trimTrailingAssistantMessages,
|
|
182
182
|
truncateText
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-C3FYJZSA.js";
|
|
184
184
|
import {
|
|
185
185
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
186
186
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
getSlackToolContext,
|
|
197
197
|
readActorIdentity,
|
|
198
198
|
resolveChannelCapabilities
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-NOEERHHR.js";
|
|
200
200
|
import {
|
|
201
201
|
SlackActionError,
|
|
202
202
|
downloadPrivateSlackFile,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
isConversationScopedChannel,
|
|
206
206
|
normalizeSlackConversationId,
|
|
207
207
|
withSlackRetries
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-ROOTB7J7.js";
|
|
209
209
|
import {
|
|
210
210
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
211
211
|
contextProvenance,
|
|
@@ -217,10 +217,10 @@ import {
|
|
|
217
217
|
instructionActors,
|
|
218
218
|
instructionProvenanceFor,
|
|
219
219
|
sameActorIdentity
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-AF4PHIP6.js";
|
|
221
221
|
import {
|
|
222
222
|
juniorIdentities
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-VURJ2NSF.js";
|
|
224
224
|
import {
|
|
225
225
|
SANDBOX_DATA_ROOT,
|
|
226
226
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
} from "./chunk-EM225ITJ.js";
|
|
233
233
|
import {
|
|
234
234
|
getStateAdapter
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-PHQDXC27.js";
|
|
236
236
|
import {
|
|
237
237
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
238
238
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
resolveGatewayCredential,
|
|
266
266
|
resolveGatewayModel,
|
|
267
267
|
unwrapCurrentInstruction
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
269
269
|
import {
|
|
270
270
|
canExposeConversationPayload,
|
|
271
271
|
resolveConversationPrivacy,
|
|
@@ -275,16 +275,16 @@ import {
|
|
|
275
275
|
toGenAiMessagesTraceAttributes,
|
|
276
276
|
toGenAiPayloadMetadata,
|
|
277
277
|
toGenAiPayloadTraceAttributes
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-UPPU3FQU.js";
|
|
279
279
|
import {
|
|
280
280
|
discoverSkills,
|
|
281
281
|
findSkillByName,
|
|
282
282
|
loadSkillsByName,
|
|
283
283
|
parseSkillInvocation
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-LUSAAJJA.js";
|
|
285
285
|
import {
|
|
286
286
|
pluginCatalogRuntime
|
|
287
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-YEZS4TEY.js";
|
|
288
288
|
import {
|
|
289
289
|
CredentialUnavailableError,
|
|
290
290
|
OAuthProviderError,
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
292
292
|
getOAuthProviderErrorAttributes,
|
|
293
293
|
resolveAuthTokenPlaceholder,
|
|
294
294
|
resolvePluginCommandEnv
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-EQ6Y37MD.js";
|
|
296
296
|
import {
|
|
297
297
|
credentialUserSubjectId
|
|
298
298
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -320,7 +320,7 @@ import {
|
|
|
320
320
|
summarizeMessageText,
|
|
321
321
|
withLogContext,
|
|
322
322
|
withSpan
|
|
323
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-KSZXVR5G.js";
|
|
324
324
|
import {
|
|
325
325
|
startInactiveSpan,
|
|
326
326
|
withActiveSpan
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4JAOLUDB.js";
|
|
8
8
|
import {
|
|
9
9
|
parseSandboxEgressAuthRequiredSignal
|
|
10
10
|
} from "./chunk-7MA4HV4W.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink,
|
|
14
14
|
recordAuthorizationRequested
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C3FYJZSA.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VURJ2NSF.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FAJ6SMEE.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YEZS4TEY.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-BDUENQD3.js";
|