@sentry/junior 0.172.0 → 0.173.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-TKE6PDE3.js} +12 -12
- package/dist/api.js +26 -26
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-PDNXCNCJ.js → catalog-runtime-247LR4L4.js} +5 -5
- package/dist/{chunk-EXEO2R4S.js → chunk-2XUT3VLE.js} +1 -1
- package/dist/{chunk-CO47EWFW.js → chunk-33SJGQG6.js} +4 -4
- package/dist/{chunk-A6AJ354O.js → chunk-3J7WUHKY.js} +5 -5
- package/dist/{chunk-NB7WS4SP.js → chunk-54LKZSAW.js} +1 -1
- package/dist/{chunk-FESC2EW7.js → chunk-6PHOLDQI.js} +1 -1
- package/dist/{chunk-HEOOUGVL.js → chunk-7PNMY4NE.js} +1 -1
- package/dist/{chunk-QBHPQCEQ.js → chunk-A3U4JTWA.js} +4 -4
- package/dist/{chunk-IAOQPDO6.js → chunk-A7TBEENH.js} +1 -1
- package/dist/{chunk-LVNMMESU.js → chunk-C4I6OV7U.js} +1 -1
- package/dist/{chunk-YRBLN5PJ.js → chunk-D3XNZ5GJ.js} +6 -6
- package/dist/{chunk-6RWQHBTV.js → chunk-EHE45OBY.js} +1 -1
- package/dist/{chunk-G2DJ7LUE.js → chunk-FAMC3HC7.js} +6 -6
- package/dist/{chunk-G4GNP4Q2.js → chunk-FMM3B64Q.js} +5 -5
- package/dist/{chunk-CBPREIWS.js → chunk-FWM663LY.js} +2 -2
- package/dist/{chunk-XSO5JEHI.js → chunk-GBPGKJZF.js} +12 -12
- package/dist/{chunk-BTD6ZYFL.js → chunk-HWLN37DJ.js} +2 -2
- package/dist/{chunk-QAEKVEZY.js → chunk-KSQ2BFUK.js} +1 -1
- package/dist/{chunk-AQ4GXXRD.js → chunk-KUZQEAZB.js} +18 -18
- package/dist/{chunk-W6THM2TX.js → chunk-MAE6RNYQ.js} +5 -5
- package/dist/{chunk-27T2WQJV.js → chunk-NDJ5XLSR.js} +1 -1
- package/dist/{chunk-SU7QH274.js → chunk-NMUEJHPW.js} +8 -8
- package/dist/{chunk-CUJ2T7FO.js → chunk-OWJJB5DQ.js} +9 -9
- package/dist/{chunk-MNYAYK5I.js → chunk-Q2457VTU.js} +1 -1
- package/dist/{chunk-ELAP5LB5.js → chunk-SZ6HE45O.js} +1 -1
- package/dist/{chunk-FUYKKSDV.js → chunk-TZIZCB6V.js} +1 -1
- package/dist/{chunk-Y4AEFUEV.js → chunk-UDSVV7MC.js} +3 -3
- package/dist/{chunk-AHWLGR5T.js → chunk-VEZ4VIJX.js} +5 -5
- package/dist/{chunk-QCGDWFYC.js → chunk-VKBONIMW.js} +4 -4
- package/dist/{chunk-TWIRPYVB.js → chunk-VQTMPROS.js} +6 -6
- package/dist/{chunk-IFSKN5VH.js → chunk-WVFTUTAK.js} +1 -1
- package/dist/{chunk-JOSDA5SZ.js → chunk-YJOBW6ON.js} +17 -17
- package/dist/{chunk-Q36YWAJT.js → chunk-YY3XHPFQ.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-DN7KYTNR.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-5HSUJNR4.js} +23 -23
- package/dist/{runner-QWGQH425.js → runner-62H3GPAH.js} +15 -15
- package/dist/{skills-2T6JZT2K.js → skills-76ZK6SH7.js} +6 -6
- package/dist/spawn-UOEYRXD7.js +37 -0
- package/dist/{validation-LMGCYHRK.js → validation-6HZIOXZG.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-CVXCACZK.js → work-ZWH4KG3U.js} +18 -18
- package/dist/worker-LB7JCNA5.js +24 -0
- package/package.json +4 -4
- package/dist/spawn-55U4TVHQ.js +0 -37
- package/dist/worker-SWMVAAN6.js +0 -24
|
@@ -13,25 +13,25 @@ import {
|
|
|
13
13
|
instructionProvenanceFor,
|
|
14
14
|
sanitizePostgresJson,
|
|
15
15
|
withConversationEventLock
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UDSVV7MC.js";
|
|
17
17
|
import {
|
|
18
18
|
SANDBOX_REPOS_ROOT,
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT,
|
|
20
20
|
sleep
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WVFTUTAK.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-TZIZCB6V.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-FWM663LY.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-A7TBEENH.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/turn-context-tag.ts
|
|
47
47
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KSQ2BFUK.js";
|
|
7
7
|
import {
|
|
8
8
|
extractGenAiUsageAttributes,
|
|
9
9
|
logException,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeGenAiFinishReason,
|
|
12
12
|
serializeGenAiAttribute,
|
|
13
13
|
withSpan
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A7TBEENH.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/services/provider-error.ts
|
|
17
17
|
var ProviderError = class extends Error {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWebAuthorization,
|
|
3
3
|
deleteWebAuthorization
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NDJ5XLSR.js";
|
|
5
5
|
import {
|
|
6
6
|
appendAndEnqueueInboundMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-33SJGQG6.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-OWJJB5DQ.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-3J7WUHKY.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-6PHOLDQI.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-FMM3B64Q.js";
|
|
53
53
|
import {
|
|
54
54
|
normalizeSlackConversationId
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-D3XNZ5GJ.js";
|
|
56
56
|
import {
|
|
57
57
|
getConversationEventStore,
|
|
58
58
|
getConversationStore,
|
|
59
59
|
getDb
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UDSVV7MC.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-C4I6OV7U.js";
|
|
68
68
|
import {
|
|
69
69
|
getSlackBotToken
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FWM663LY.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-KSQ2BFUK.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-A7TBEENH.js";
|
|
86
86
|
|
|
87
87
|
// src/handlers/health.ts
|
|
88
88
|
function readHealthReport() {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MAE6RNYQ.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-NMUEJHPW.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-FAMC3HC7.js";
|
|
52
52
|
import {
|
|
53
53
|
parseSandboxEgressAuthRequiredSignal,
|
|
54
54
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -87,10 +87,10 @@ import {
|
|
|
87
87
|
scheduledTaskAttributes,
|
|
88
88
|
storeAttachments,
|
|
89
89
|
writableEventTask
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-VEZ4VIJX.js";
|
|
91
91
|
import {
|
|
92
92
|
parseSlackThreadId
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-6PHOLDQI.js";
|
|
94
94
|
import {
|
|
95
95
|
AGENTS_REMOVAL_NOTICE,
|
|
96
96
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
stripRuntimeTurnContext,
|
|
162
162
|
trimTrailingAssistantMessages,
|
|
163
163
|
truncateText
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-FMM3B64Q.js";
|
|
165
165
|
import {
|
|
166
166
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
167
167
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
stopSession,
|
|
181
181
|
throwSandboxOperationError,
|
|
182
182
|
wrapSandboxSetupError
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-A3U4JTWA.js";
|
|
184
184
|
import {
|
|
185
185
|
privateTraceResultAttributes
|
|
186
186
|
} from "./chunk-UIE3R5XU.js";
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
updateWorkspace,
|
|
213
213
|
withSlackRetries,
|
|
214
214
|
workspaceRepoCheckoutPath
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-D3XNZ5GJ.js";
|
|
216
216
|
import {
|
|
217
217
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
218
218
|
contextProvenance,
|
|
@@ -224,11 +224,11 @@ import {
|
|
|
224
224
|
instructionActors,
|
|
225
225
|
instructionProvenanceFor,
|
|
226
226
|
sameActorIdentity
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-UDSVV7MC.js";
|
|
228
228
|
import {
|
|
229
229
|
juniorArtifacts,
|
|
230
230
|
juniorIdentities
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-C4I6OV7U.js";
|
|
232
232
|
import {
|
|
233
233
|
SANDBOX_DATA_ROOT,
|
|
234
234
|
SANDBOX_REPOS_ROOT,
|
|
@@ -243,10 +243,10 @@ import {
|
|
|
243
243
|
sandboxSkillFile,
|
|
244
244
|
sandboxSkillPathResolution,
|
|
245
245
|
sleep
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-WVFTUTAK.js";
|
|
247
247
|
import {
|
|
248
248
|
getStateAdapter
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-TZIZCB6V.js";
|
|
250
250
|
import {
|
|
251
251
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
252
252
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
resolveGatewayCredential,
|
|
280
280
|
resolveGatewayModel,
|
|
281
281
|
unwrapCurrentInstruction
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-FWM663LY.js";
|
|
283
283
|
import {
|
|
284
284
|
canExposeConversationPayload,
|
|
285
285
|
resolveConversationPrivacy,
|
|
@@ -289,16 +289,16 @@ import {
|
|
|
289
289
|
toGenAiMessagesTraceAttributes,
|
|
290
290
|
toGenAiPayloadMetadata,
|
|
291
291
|
toGenAiPayloadTraceAttributes
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-KSQ2BFUK.js";
|
|
293
293
|
import {
|
|
294
294
|
discoverSkills,
|
|
295
295
|
findSkillByName,
|
|
296
296
|
loadSkillsByName,
|
|
297
297
|
parseSkillInvocation
|
|
298
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-HWLN37DJ.js";
|
|
299
299
|
import {
|
|
300
300
|
pluginCatalogRuntime
|
|
301
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-7PNMY4NE.js";
|
|
302
302
|
import {
|
|
303
303
|
CredentialUnavailableError,
|
|
304
304
|
OAuthProviderError,
|
|
@@ -306,7 +306,7 @@ import {
|
|
|
306
306
|
getOAuthProviderErrorAttributes,
|
|
307
307
|
resolveAuthTokenPlaceholder,
|
|
308
308
|
resolvePluginCommandEnv
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-54LKZSAW.js";
|
|
310
310
|
import {
|
|
311
311
|
credentialUserSubjectId
|
|
312
312
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -336,7 +336,7 @@ import {
|
|
|
336
336
|
summarizeMessageText,
|
|
337
337
|
withLogContext,
|
|
338
338
|
withSpan
|
|
339
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-A7TBEENH.js";
|
|
340
340
|
import {
|
|
341
341
|
startInactiveSpan,
|
|
342
342
|
withActiveSpan
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FAMC3HC7.js";
|
|
8
8
|
import {
|
|
9
9
|
parseSandboxEgressAuthRequiredSignal
|
|
10
10
|
} from "./chunk-6ZWRNC4D.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
abandonReplacedPendingAuth,
|
|
13
13
|
canReusePendingAuthLink,
|
|
14
14
|
recordAuthorizationRequested
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FMM3B64Q.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-C4I6OV7U.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FWM663LY.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7PNMY4NE.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RF6J3DIO.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FAMC3HC7.js";
|
|
7
7
|
import {
|
|
8
8
|
isExperimentalFeatureEnabled
|
|
9
9
|
} from "./chunk-VRS6WDK5.js";
|
|
@@ -12,27 +12,27 @@ import {
|
|
|
12
12
|
getPlugins,
|
|
13
13
|
getSlackClient,
|
|
14
14
|
withSlackRetries
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-D3XNZ5GJ.js";
|
|
16
16
|
import {
|
|
17
17
|
getDb,
|
|
18
18
|
parseDestination
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UDSVV7MC.js";
|
|
20
20
|
import {
|
|
21
21
|
sleep
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WVFTUTAK.js";
|
|
23
23
|
import {
|
|
24
24
|
acquireActiveLock,
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TZIZCB6V.js";
|
|
27
27
|
import {
|
|
28
28
|
pluginCatalogRuntime
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7PNMY4NE.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchWithBoundedOAuthErrorBodies
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-54LKZSAW.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-A7TBEENH.js";
|
|
36
36
|
|
|
37
37
|
// src/chat/capabilities/router.ts
|
|
38
38
|
var ProviderCredentialRouter = class {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState,
|
|
4
4
|
persistThreadStateById
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3J7WUHKY.js";
|
|
6
6
|
import {
|
|
7
7
|
pluginTaskId,
|
|
8
8
|
pluginTaskParamsSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
markTurnCompleted,
|
|
23
23
|
normalizeToolNameFromResult,
|
|
24
24
|
stripRuntimeTurnContext
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FMM3B64Q.js";
|
|
26
26
|
import {
|
|
27
27
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
28
28
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
createPluginModel,
|
|
34
34
|
createPluginState,
|
|
35
35
|
getPlugins
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-D3XNZ5GJ.js";
|
|
37
37
|
import {
|
|
38
38
|
getConversationStore,
|
|
39
39
|
getDb,
|
|
40
40
|
sameActorIdentity
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UDSVV7MC.js";
|
|
42
42
|
import {
|
|
43
43
|
juniorConversations,
|
|
44
44
|
juniorTaskExecutions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-C4I6OV7U.js";
|
|
46
46
|
import {
|
|
47
47
|
getStateAdapter
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TZIZCB6V.js";
|
|
49
49
|
import {
|
|
50
50
|
ProviderError,
|
|
51
51
|
findProviderError,
|
|
52
52
|
getProviderErrorAttributes,
|
|
53
53
|
getProviderErrorUserMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-FWM663LY.js";
|
|
55
55
|
import {
|
|
56
56
|
credentialSubjectSchema
|
|
57
57
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
buildTurnFailureResponse,
|
|
63
63
|
logWarn
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-A7TBEENH.js";
|
|
65
65
|
|
|
66
66
|
// src/chat/runtime/delivered-turn-state.ts
|
|
67
67
|
function buildDeliveredTurnStatePatch(args) {
|
|
@@ -87,7 +87,7 @@ import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
|
|
|
87
87
|
|
|
88
88
|
// src/chat/services/turn-session-routing.ts
|
|
89
89
|
async function resolveTurnSessionRouting(args) {
|
|
90
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
90
|
+
const conversationStore = args.conversationStore ?? (await import("./db-DN7KYTNR.js")).getConversationStore();
|
|
91
91
|
const conversation = await conversationStore.get({
|
|
92
92
|
conversationId: args.conversationId
|
|
93
93
|
});
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
juniorConversations,
|
|
8
8
|
juniorIdentities,
|
|
9
9
|
juniorUsers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4I6OV7U.js";
|
|
11
11
|
import {
|
|
12
12
|
TURN_REASONING_LEVELS,
|
|
13
13
|
getChatConfig,
|
|
14
14
|
modelProfileSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FWM663LY.js";
|
|
16
16
|
import {
|
|
17
17
|
juniorDestinations
|
|
18
18
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-M63DETLL.js";
|
|
24
24
|
import {
|
|
25
25
|
normalizeIdentityEmail
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A7TBEENH.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/conversations/sql/store.ts
|
|
29
29
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FMM3B64Q.js";
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3XNZ5GJ.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UDSVV7MC.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-C4I6OV7U.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-A7TBEENH.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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YY3XHPFQ.js";
|
|
4
4
|
import {
|
|
5
5
|
CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
|
|
6
6
|
CONVERSATION_WORK_MAX_RETRIES,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
releaseConversationWork,
|
|
22
22
|
requestAnotherSlice,
|
|
23
23
|
startConversationWork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-33SJGQG6.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversationQueueMessageRejectedError
|
|
27
27
|
} from "./chunk-JAL3CH4G.js";
|
|
28
28
|
import {
|
|
29
29
|
getChatConfig,
|
|
30
30
|
isProviderRetryError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FWM663LY.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-A7TBEENH.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-33SJGQG6.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService,
|
|
6
6
|
getPersistedSandboxState,
|
|
7
7
|
getPersistedThreadState,
|
|
8
8
|
persistThreadStateById
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3J7WUHKY.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-
|
|
18
|
+
} from "./chunk-MAE6RNYQ.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-
|
|
29
|
+
} from "./chunk-FMM3B64Q.js";
|
|
30
30
|
import {
|
|
31
31
|
getConversationEventStore,
|
|
32
32
|
getConversationStore,
|
|
33
33
|
getSqlExecutor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UDSVV7MC.js";
|
|
35
35
|
import {
|
|
36
36
|
juniorAgentBindings,
|
|
37
37
|
juniorAgentInvocations
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-C4I6OV7U.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/agent-invocations/work.ts
|
|
41
41
|
import { z } from "zod";
|