@sentry/junior 0.142.0 → 0.143.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-WDJQQAPH.js → agent-hooks-2EP3QS47.js} +10 -10
- package/dist/api.js +19 -19
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-CLHTYBHB.js → catalog-runtime-IAVW4W3B.js} +5 -5
- package/dist/{chunk-4L7PKEHM.js → chunk-2KLMGRRQ.js} +1 -1
- package/dist/{chunk-LXLBYA6N.js → chunk-2T5CHXRZ.js} +2 -2
- package/dist/{chunk-LGY7YX5O.js → chunk-5YJBS4I5.js} +1 -1
- package/dist/{chunk-A646AKNB.js → chunk-7GVX5SOG.js} +2 -2
- package/dist/{chunk-7R3CGEMF.js → chunk-A3XPSABC.js} +3 -3
- package/dist/{chunk-QDRMQI5W.js → chunk-AEFJN7OK.js} +4 -4
- package/dist/{chunk-R7E476CH.js → chunk-ANG7IWAI.js} +6 -6
- package/dist/{chunk-SF6YKONJ.js → chunk-BJ6ISBOA.js} +1 -1
- package/dist/{chunk-T4NFQ5SG.js → chunk-F6RWNJBK.js} +5 -5
- package/dist/{chunk-XAW6IN6M.js → chunk-GZRWULXF.js} +1 -1
- package/dist/{chunk-RYYBUI34.js → chunk-I25V3XRN.js} +2 -2
- package/dist/{chunk-VJMBLWYR.js → chunk-I4NQNZVW.js} +6 -6
- package/dist/{chunk-WJEW7UNC.js → chunk-I5PIM72M.js} +10 -10
- package/dist/{chunk-N3H7G5K6.js → chunk-LSBQHDI2.js} +1 -1
- package/dist/{chunk-NWO5IB7V.js → chunk-M2T7MHQJ.js} +1 -1
- package/dist/{chunk-SCHH6264.js → chunk-NAINBOZQ.js} +3 -3
- package/dist/{chunk-WYLSMTWU.js → chunk-NVFVM67W.js} +1 -1
- package/dist/{chunk-JIWZ7T4C.js → chunk-OB7ZJK7Y.js} +1 -1
- package/dist/{chunk-5ITSZIAP.js → chunk-OG5JQHKR.js} +1 -1
- package/dist/{chunk-B2H7NI5C.js → chunk-PBV7VXUA.js} +4 -4
- package/dist/{chunk-ZPNUI4L3.js → chunk-QFWXGUAH.js} +15 -15
- package/dist/{chunk-5QVVW3FY.js → chunk-RABHACKG.js} +7 -7
- package/dist/{chunk-PWDCFIQG.js → chunk-SNBTWIQO.js} +6 -6
- package/dist/{chunk-XFHSZNOX.js → chunk-STX5WIH6.js} +2 -2
- package/dist/{chunk-HVTWCMDS.js → chunk-TPJK6AVJ.js} +1 -1
- package/dist/{chunk-CBMIVCPM.js → chunk-U5ATCOHE.js} +2 -2
- package/dist/{chunk-6IMKBHCG.js → chunk-UFCA4EZB.js} +4 -4
- package/dist/{chunk-DRTWANQF.js → chunk-WJHWOAVZ.js} +1 -1
- package/dist/{chunk-CA4WLRA3.js → chunk-WM4PRM7W.js} +4 -4
- package/dist/{chunk-LL3BGP7J.js → chunk-WSWVWP2V.js} +1 -1
- package/dist/{chunk-OQAPYAXH.js → chunk-X5SC2UGE.js} +3 -3
- package/dist/{chunk-4EZV6URQ.js → chunk-XYJNNZYR.js} +19 -19
- package/dist/cli/chat.js +32 -32
- 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-6N4CD5AI.js → db-RBXBVEVO.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-G4K2X56R.js → oauth-callback-server-LRB6BX6C.js} +23 -23
- package/dist/{runner-DEIHVRUE.js → runner-WK5VUOW6.js} +15 -15
- package/dist/{skills-FZVJ6ZFW.js → skills-MJWRME3A.js} +6 -6
- package/dist/{spawn-WD4F67SZ.js → spawn-ZCW6UOAA.js} +17 -17
- package/dist/{validation-EOLSG7B6.js → validation-556WSWVU.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-AS3IBMLA.js → work-W6IXSPY3.js} +16 -16
- package/dist/{worker-VGGNGOUU.js → worker-5KM346HH.js} +10 -10
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
recordTaskExecution
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A3XPSABC.js";
|
|
4
4
|
import {
|
|
5
5
|
pluginTaskId,
|
|
6
6
|
pluginTaskParamsSchema,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
calculateContextCompactionTargetTokens,
|
|
11
11
|
estimateTextTokens,
|
|
12
12
|
getConversationContextCompactionTriggerTokens
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WJHWOAVZ.js";
|
|
14
14
|
import {
|
|
15
15
|
buildDeterministicTurnId,
|
|
16
16
|
clearPendingAuth,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
normalizeToolNameFromResult,
|
|
29
29
|
persistThreadStateById,
|
|
30
30
|
stripRuntimeTurnContext
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PBV7VXUA.js";
|
|
32
32
|
import {
|
|
33
33
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
34
34
|
} from "./chunk-3Y47VMHV.js";
|
|
35
35
|
import {
|
|
36
36
|
fallbackShortTitle,
|
|
37
37
|
generateShortTitle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-STX5WIH6.js";
|
|
39
39
|
import {
|
|
40
40
|
createPluginConversationEvents,
|
|
41
41
|
createPluginEmbedder,
|
|
@@ -43,15 +43,15 @@ import {
|
|
|
43
43
|
createPluginModel,
|
|
44
44
|
createPluginState,
|
|
45
45
|
getPlugins
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SNBTWIQO.js";
|
|
47
47
|
import {
|
|
48
48
|
getConversationStore,
|
|
49
49
|
getDb,
|
|
50
50
|
sameActorIdentity
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NAINBOZQ.js";
|
|
52
52
|
import {
|
|
53
53
|
getStateAdapter
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
55
55
|
import {
|
|
56
56
|
ProviderError,
|
|
57
57
|
botConfig,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
findProviderError,
|
|
60
60
|
getProviderErrorAttributes,
|
|
61
61
|
getProviderErrorUserMessage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-7GVX5SOG.js";
|
|
63
63
|
import {
|
|
64
64
|
credentialSubjectSchema
|
|
65
65
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
buildTurnFailureResponse,
|
|
71
71
|
logWarn,
|
|
72
72
|
setSpanAttributes
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-GZRWULXF.js";
|
|
74
74
|
|
|
75
75
|
// src/chat/services/conversation-memory.ts
|
|
76
76
|
var CONTEXT_MIN_LIVE_MESSAGES = 12;
|
|
@@ -410,7 +410,7 @@ import {
|
|
|
410
410
|
|
|
411
411
|
// src/chat/services/turn-session-routing.ts
|
|
412
412
|
async function resolveTurnSessionRouting(args) {
|
|
413
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
413
|
+
const conversationStore = args.conversationStore ?? (await import("./db-RBXBVEVO.js")).getConversationStore();
|
|
414
414
|
const conversation = await conversationStore.get({
|
|
415
415
|
conversationId: args.conversationId
|
|
416
416
|
});
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
juniorConversations,
|
|
6
6
|
juniorIdentities,
|
|
7
7
|
juniorUsers
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2KLMGRRQ.js";
|
|
9
9
|
import {
|
|
10
10
|
TURN_REASONING_LEVELS,
|
|
11
11
|
getChatConfig,
|
|
12
12
|
modelProfileSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7GVX5SOG.js";
|
|
14
14
|
import {
|
|
15
15
|
juniorDestinations
|
|
16
16
|
} from "./chunk-VFUK3X5B.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-F3B2YJ76.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeIdentityEmail
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GZRWULXF.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/sql/store.ts
|
|
26
26
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -21,18 +21,18 @@ import {
|
|
|
21
21
|
instructionProvenanceFor,
|
|
22
22
|
sanitizePostgresJson,
|
|
23
23
|
withConversationEventLock
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NAINBOZQ.js";
|
|
25
25
|
import {
|
|
26
26
|
SANDBOX_WORKSPACE_ROOT,
|
|
27
27
|
sleep
|
|
28
28
|
} from "./chunk-EM225ITJ.js";
|
|
29
29
|
import {
|
|
30
30
|
getStateAdapter
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
32
32
|
import {
|
|
33
33
|
botConfig,
|
|
34
34
|
unwrapCurrentInstruction
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7GVX5SOG.js";
|
|
36
36
|
import {
|
|
37
37
|
toStoredSlackActor
|
|
38
38
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
logException,
|
|
43
43
|
toOptionalNumber,
|
|
44
44
|
toOptionalString
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GZRWULXF.js";
|
|
46
46
|
|
|
47
47
|
// src/chat/turn-context-tag.ts
|
|
48
48
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ensureConversationWake,
|
|
6
6
|
requestConversationWork
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WM4PRM7W.js";
|
|
8
8
|
import {
|
|
9
9
|
buildConversationContext,
|
|
10
10
|
buildDeliveredTurnStatePatch,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
resolveTurnSessionRouting,
|
|
22
22
|
scheduleSessionCompletedPluginTasks,
|
|
23
23
|
turnHasReply
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I5PIM72M.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversationTurnLifecycleService
|
|
27
27
|
} from "./chunk-Q6QZTTLS.js";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
getMcpProviderErrorAttributes,
|
|
40
40
|
getMcpStoredOAuthCredentials,
|
|
41
41
|
resolvePluginOAuthAccount
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RABHACKG.js";
|
|
43
43
|
import {
|
|
44
44
|
RetryableDeliveryError
|
|
45
45
|
} from "./chunk-R776HKPK.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
removeReactionFromMessage,
|
|
56
56
|
resolveBaseUrl,
|
|
57
57
|
truncateStatusText
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ANG7IWAI.js";
|
|
59
59
|
import {
|
|
60
60
|
TurnSliceLimitExceededError,
|
|
61
61
|
abandonAgentTurnSessionRecord,
|
|
@@ -81,32 +81,32 @@ import {
|
|
|
81
81
|
recordAgentTurnSessionSummary,
|
|
82
82
|
recordAuthenticationLinked,
|
|
83
83
|
recordAuthorizationCompleted
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-PBV7VXUA.js";
|
|
85
85
|
import {
|
|
86
86
|
parseSlackThreadId,
|
|
87
87
|
readSlackRawMessageContext,
|
|
88
88
|
resolveSlackChannelIdFromMessage,
|
|
89
89
|
resolveSlackChannelIdFromThreadId
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-OG5JQHKR.js";
|
|
91
91
|
import {
|
|
92
92
|
getDashboardConversationLink,
|
|
93
93
|
getPluginSlackConversationLink
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-SNBTWIQO.js";
|
|
95
95
|
import {
|
|
96
96
|
SlackActionError,
|
|
97
97
|
getHeaderString,
|
|
98
98
|
getSlackClient,
|
|
99
99
|
isDmChannel,
|
|
100
100
|
normalizeSlackConversationId
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-I25V3XRN.js";
|
|
102
102
|
import {
|
|
103
103
|
getConversationEventStore,
|
|
104
104
|
requireSlackDestination
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-NAINBOZQ.js";
|
|
106
106
|
import {
|
|
107
107
|
acquireActiveLock,
|
|
108
108
|
getStateAdapter
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
110
110
|
import {
|
|
111
111
|
FUNCTION_TIMEOUT_BUFFER_SECONDS,
|
|
112
112
|
botConfig,
|
|
@@ -115,18 +115,18 @@ import {
|
|
|
115
115
|
getRuntimeMetadata,
|
|
116
116
|
normalizeSlackEmojiName,
|
|
117
117
|
standardModelId
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-7GVX5SOG.js";
|
|
119
119
|
import {
|
|
120
120
|
discoverSkills
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-U5ATCOHE.js";
|
|
122
122
|
import {
|
|
123
123
|
pluginCatalogRuntime
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-NVFVM67W.js";
|
|
125
125
|
import {
|
|
126
126
|
buildOAuthTokenRequest,
|
|
127
127
|
hasRequiredOAuthScope,
|
|
128
128
|
parseOAuthTokenResponse
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-BJ6ISBOA.js";
|
|
130
130
|
import {
|
|
131
131
|
createSlackResumeActor,
|
|
132
132
|
isUserActor
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
setTags,
|
|
143
143
|
toOptionalString,
|
|
144
144
|
withLogContext
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-GZRWULXF.js";
|
|
146
146
|
import {
|
|
147
147
|
homeDir
|
|
148
148
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveBaseUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANG7IWAI.js";
|
|
4
4
|
import {
|
|
5
5
|
createPluginLogger,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNBTWIQO.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
parseDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NAINBOZQ.js";
|
|
12
12
|
import {
|
|
13
13
|
sleep
|
|
14
14
|
} from "./chunk-EM225ITJ.js";
|
|
15
15
|
import {
|
|
16
16
|
acquireActiveLock,
|
|
17
17
|
getStateAdapter
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
19
19
|
import {
|
|
20
20
|
pluginCatalogRuntime
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NVFVM67W.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchWithBoundedOAuthErrorBodies
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BJ6ISBOA.js";
|
|
25
25
|
import {
|
|
26
26
|
isRecord
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GZRWULXF.js";
|
|
28
28
|
|
|
29
29
|
// src/chat/capabilities/router.ts
|
|
30
30
|
var ProviderCredentialRouter = class {
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
isConversationScopedChannel,
|
|
5
5
|
isDmChannel,
|
|
6
6
|
normalizeSlackConversationId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I25V3XRN.js";
|
|
8
8
|
import {
|
|
9
9
|
getConversationEventStore,
|
|
10
10
|
getDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NAINBOZQ.js";
|
|
12
12
|
import {
|
|
13
13
|
juniorConversationAnnotations,
|
|
14
14
|
juniorConversationEvents,
|
|
15
15
|
juniorIdentities,
|
|
16
16
|
juniorUsers
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2KLMGRRQ.js";
|
|
18
18
|
import {
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT
|
|
20
20
|
} from "./chunk-EM225ITJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getStateAdapter
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
24
24
|
import {
|
|
25
25
|
botConfig,
|
|
26
26
|
completeObject,
|
|
27
27
|
embedTexts,
|
|
28
28
|
getSlackBotToken,
|
|
29
29
|
standardModelId
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7GVX5SOG.js";
|
|
31
31
|
import {
|
|
32
32
|
isActorUserId,
|
|
33
33
|
parseActorUserId
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
logInfo,
|
|
43
43
|
logWarn,
|
|
44
44
|
normalizeIdentityEmail
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-GZRWULXF.js";
|
|
46
46
|
|
|
47
47
|
// src/chat/plugins/agent-hooks.ts
|
|
48
48
|
import {
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNBTWIQO.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NAINBOZQ.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorEventTasks,
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2KLMGRRQ.js";
|
|
17
17
|
import {
|
|
18
18
|
juniorDestinations
|
|
19
19
|
} from "./chunk-VFUK3X5B.js";
|
|
20
20
|
import {
|
|
21
21
|
logInfo
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GZRWULXF.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/event-tasks/store.ts
|
|
25
25
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
parseDestination,
|
|
7
7
|
sameDestination
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NAINBOZQ.js";
|
|
9
9
|
import {
|
|
10
10
|
getDefaultRedisStateAdapterFor,
|
|
11
11
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
13
13
|
import {
|
|
14
14
|
getChatConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7GVX5SOG.js";
|
|
16
16
|
import {
|
|
17
17
|
parseStoredSlackActor
|
|
18
18
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isRecord,
|
|
21
21
|
toOptionalNumber,
|
|
22
22
|
toOptionalString
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GZRWULXF.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/task-execution/state.ts
|
|
26
26
|
import { randomUUID } from "crypto";
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
releaseConversationWork,
|
|
19
19
|
requestConversationContinuation,
|
|
20
20
|
startConversationWork
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WM4PRM7W.js";
|
|
22
22
|
import {
|
|
23
23
|
ConversationQueueMessageRejectedError
|
|
24
24
|
} from "./chunk-IUFM5JWV.js";
|
|
25
25
|
import {
|
|
26
26
|
getChatConfig,
|
|
27
27
|
isProviderRetryError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7GVX5SOG.js";
|
|
29
29
|
import {
|
|
30
30
|
logException,
|
|
31
31
|
logInfo,
|
|
32
32
|
logWarn,
|
|
33
33
|
withLogContext
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GZRWULXF.js";
|
|
35
35
|
|
|
36
36
|
// src/chat/task-execution/worker.ts
|
|
37
37
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F6RWNJBK.js";
|
|
11
11
|
import {
|
|
12
12
|
authorizationId
|
|
13
13
|
} from "./chunk-DIB4GX3G.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
patchMcpAuthSession,
|
|
29
29
|
selectPluginGrant,
|
|
30
30
|
toMcpProviderError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RABHACKG.js";
|
|
32
32
|
import {
|
|
33
33
|
RetryableDeliveryError,
|
|
34
34
|
actorFromRouting,
|
|
@@ -44,12 +44,12 @@ import {
|
|
|
44
44
|
getSlackMessagePermalink,
|
|
45
45
|
resolveBaseUrl,
|
|
46
46
|
uploadFilesToConversation
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-ANG7IWAI.js";
|
|
48
48
|
import {
|
|
49
49
|
estimateTextTokens,
|
|
50
50
|
getAgentContextCompactionTriggerTokens,
|
|
51
51
|
getAgentContextInputLimitTokens
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-WJHWOAVZ.js";
|
|
53
53
|
import {
|
|
54
54
|
AGENTS_REMOVAL_NOTICE,
|
|
55
55
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
stripRuntimeTurnContext,
|
|
114
114
|
trimTrailingAssistantMessages,
|
|
115
115
|
truncateText
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-PBV7VXUA.js";
|
|
117
117
|
import {
|
|
118
118
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
119
119
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
runNonInteractiveCommand,
|
|
146
146
|
throwSandboxOperationError,
|
|
147
147
|
wrapSandboxSetupError
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-AEFJN7OK.js";
|
|
149
149
|
import {
|
|
150
150
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
151
151
|
compactEventTask,
|
|
@@ -177,15 +177,15 @@ import {
|
|
|
177
177
|
saveEventTask,
|
|
178
178
|
scheduledTaskAttributes,
|
|
179
179
|
writableEventTask
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-UFCA4EZB.js";
|
|
181
181
|
import {
|
|
182
182
|
parseSlackThreadId
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-OG5JQHKR.js";
|
|
184
184
|
import {
|
|
185
185
|
SHORT_TITLE_MAX_LENGTH,
|
|
186
186
|
generateShortTitle,
|
|
187
187
|
resolveTaskTitle
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-STX5WIH6.js";
|
|
189
189
|
import {
|
|
190
190
|
ToolInputError,
|
|
191
191
|
addAgentTurnUsage,
|
|
@@ -203,7 +203,7 @@ import {
|
|
|
203
203
|
getSlackToolContext,
|
|
204
204
|
readActorIdentity,
|
|
205
205
|
resolveChannelCapabilities
|
|
206
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-SNBTWIQO.js";
|
|
207
207
|
import {
|
|
208
208
|
SlackActionError,
|
|
209
209
|
downloadPrivateSlackFile,
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
isConversationScopedChannel,
|
|
213
213
|
normalizeSlackConversationId,
|
|
214
214
|
withSlackRetries
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-I25V3XRN.js";
|
|
216
216
|
import {
|
|
217
217
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
218
218
|
contextProvenance,
|
|
@@ -223,7 +223,7 @@ import {
|
|
|
223
223
|
instructionActors,
|
|
224
224
|
instructionProvenanceFor,
|
|
225
225
|
sameActorIdentity
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-NAINBOZQ.js";
|
|
227
227
|
import {
|
|
228
228
|
SANDBOX_DATA_ROOT,
|
|
229
229
|
SANDBOX_SKILLS_ROOT,
|
|
@@ -235,7 +235,7 @@ import {
|
|
|
235
235
|
} from "./chunk-EM225ITJ.js";
|
|
236
236
|
import {
|
|
237
237
|
getStateAdapter
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-M2T7MHQJ.js";
|
|
239
239
|
import {
|
|
240
240
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
241
241
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -269,7 +269,7 @@ import {
|
|
|
269
269
|
resolveGatewayCredential,
|
|
270
270
|
resolveGatewayModel,
|
|
271
271
|
unwrapCurrentInstruction
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-7GVX5SOG.js";
|
|
273
273
|
import {
|
|
274
274
|
canExposeConversationPayload,
|
|
275
275
|
resolveConversationPrivacy,
|
|
@@ -279,16 +279,16 @@ import {
|
|
|
279
279
|
toGenAiMessagesTraceAttributes,
|
|
280
280
|
toGenAiPayloadMetadata,
|
|
281
281
|
toGenAiPayloadTraceAttributes
|
|
282
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-5YJBS4I5.js";
|
|
283
283
|
import {
|
|
284
284
|
discoverSkills,
|
|
285
285
|
findSkillByName,
|
|
286
286
|
loadSkillsByName,
|
|
287
287
|
parseSkillInvocation
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-U5ATCOHE.js";
|
|
289
289
|
import {
|
|
290
290
|
pluginCatalogRuntime
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-NVFVM67W.js";
|
|
292
292
|
import {
|
|
293
293
|
CredentialUnavailableError,
|
|
294
294
|
OAuthProviderError,
|
|
@@ -296,7 +296,7 @@ import {
|
|
|
296
296
|
getOAuthProviderErrorAttributes,
|
|
297
297
|
resolveAuthTokenPlaceholder,
|
|
298
298
|
resolvePluginCommandEnv
|
|
299
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-BJ6ISBOA.js";
|
|
300
300
|
import {
|
|
301
301
|
credentialUserSubjectId
|
|
302
302
|
} from "./chunk-RUIXF3YQ.js";
|
|
@@ -325,7 +325,7 @@ import {
|
|
|
325
325
|
summarizeMessageText,
|
|
326
326
|
withLogContext,
|
|
327
327
|
withSpan
|
|
328
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-GZRWULXF.js";
|
|
329
329
|
import {
|
|
330
330
|
startInactiveSpan,
|
|
331
331
|
withActiveSpan
|