@sentry/junior 0.175.0 → 0.176.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-DOXAOEHI.js → agent-hooks-ZPCHKYXI.js} +12 -12
- package/dist/api.js +26 -26
- package/dist/app.js +256 -342
- package/dist/{catalog-runtime-OTFZT3R2.js → catalog-runtime-3Z2Y5IP6.js} +5 -5
- package/dist/chat/agent-dispatch/heartbeat.d.ts +1 -1
- package/dist/chat/agent-dispatch/store.d.ts +3 -16
- package/dist/chat/resource-events/catalog.d.ts +2 -2
- package/dist/chat/resource-events/notification.d.ts +1 -1
- package/dist/{chunk-DVWHUWTB.js → chunk-2N7YRFMW.js} +12 -12
- package/dist/{chunk-XL24YNNO.js → chunk-5JB5JJO5.js} +1 -1
- package/dist/{chunk-YMBCD6FB.js → chunk-64EGCW34.js} +6 -6
- package/dist/{chunk-HHAR5IDU.js → chunk-665JOQEP.js} +6 -6
- package/dist/{chunk-RMANRIHC.js → chunk-6NQJQP7O.js} +5 -5
- package/dist/{chunk-WNQBHYAQ.js → chunk-AJEZETLT.js} +1 -1
- package/dist/{chunk-2WCXOLNX.js → chunk-B65VEBJV.js} +2 -2
- package/dist/{chunk-CSV5XEQN.js → chunk-B6IOTX7W.js} +1 -1
- package/dist/{chunk-T3RN2B3T.js → chunk-B7U2QBMT.js} +13 -55
- package/dist/{chunk-WHKREAVX.js → chunk-BNGK2J6X.js} +1 -1
- package/dist/{chunk-2AEUOTQL.js → chunk-CI4JX64I.js} +1 -1
- package/dist/{chunk-YUUMDYLN.js → chunk-CNC65LIX.js} +1 -1
- package/dist/{chunk-KGKKBFOI.js → chunk-COFZR2CO.js} +1 -1
- package/dist/{chunk-JLHYNMXZ.js → chunk-CTYWFV6L.js} +6 -6
- package/dist/{chunk-RG6JSBDJ.js → chunk-CUA5SZR5.js} +1 -1
- package/dist/{chunk-4CVWSS6Q.js → chunk-DVHYQDGM.js} +1 -1
- package/dist/{chunk-UQURHDWJ.js → chunk-FNOLPLXJ.js} +4 -4
- package/dist/{chunk-DSZNZ7AW.js → chunk-GYRGJVWR.js} +18 -18
- package/dist/{chunk-NBE6DME6.js → chunk-H7KTMGNI.js} +1 -1
- package/dist/{chunk-I7F7WVUW.js → chunk-IPOB6IL5.js} +6 -6
- package/dist/{chunk-46BUAC7H.js → chunk-JHCAX7XY.js} +3 -3
- package/dist/{chunk-K4SGLRWX.js → chunk-JIZ3RFER.js} +6 -6
- package/dist/{chunk-HVI3ZLMV.js → chunk-KYHHJ6LS.js} +1 -1
- package/dist/{chunk-PQV33DEV.js → chunk-OKXHYVKE.js} +4 -4
- package/dist/{chunk-2XWTVTLS.js → chunk-PS3ZPRL2.js} +1 -1
- package/dist/{chunk-TYSWSX3M.js → chunk-Q374NKGS.js} +8 -8
- package/dist/{chunk-GBDCHVNI.js → chunk-RSIHA3XC.js} +5 -5
- package/dist/{chunk-VMVTHLJM.js → chunk-SBIQ5MZW.js} +1 -1
- package/dist/{chunk-V7QS3Z53.js → chunk-SGLLADGQ.js} +17 -17
- package/dist/{chunk-6KKCC7CG.js → chunk-VUAHVGPY.js} +4 -4
- package/dist/{chunk-GLYH4OBP.js → chunk-VVLQGGJJ.js} +1 -1
- package/dist/{chunk-RAV6B2TQ.js → chunk-Z2YZ6QLG.js} +2 -2
- 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-B7NVPW7Y.js → db-63K2IY36.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-TMTQK74Z.js → oauth-callback-server-JZXBDXGO.js} +23 -23
- package/dist/{runner-HROVFS4C.js → runner-3KWZJVK6.js} +15 -15
- package/dist/{skills-77LC6PFU.js → skills-TFQQ3WSE.js} +6 -6
- package/dist/spawn-3GVQNWFH.js +37 -0
- package/dist/{validation-EL4J4FYB.js → validation-RKLSF2UH.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-5UQRXUOD.js → work-RKDS3J2X.js} +18 -18
- package/dist/worker-5RJNDPYW.js +24 -0
- package/package.json +5 -5
- package/dist/chat/agent-dispatch/signing.d.ts +0 -14
- package/dist/handlers/agent-dispatch.d.ts +0 -12
- package/dist/spawn-JBWVVXIL.js +0 -37
- package/dist/worker-3FBM4GWV.js +0 -24
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RSIHA3XC.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-Q374NKGS.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-665JOQEP.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-IPOB6IL5.js";
|
|
91
91
|
import {
|
|
92
92
|
parseSlackThreadId
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-AJEZETLT.js";
|
|
94
94
|
import {
|
|
95
95
|
AGENTS_REMOVAL_NOTICE,
|
|
96
96
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
stripRuntimeTurnContext,
|
|
161
161
|
trimTrailingAssistantMessages,
|
|
162
162
|
truncateText
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-64EGCW34.js";
|
|
164
164
|
import {
|
|
165
165
|
bindSandboxFileSystem,
|
|
166
166
|
createSandboxSession,
|
|
@@ -176,7 +176,7 @@ import {
|
|
|
176
176
|
stopSession,
|
|
177
177
|
throwSandboxOperationError,
|
|
178
178
|
wrapSandboxSetupError
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-FNOLPLXJ.js";
|
|
180
180
|
import {
|
|
181
181
|
privateTraceResultAttributes
|
|
182
182
|
} from "./chunk-UIE3R5XU.js";
|
|
@@ -219,7 +219,7 @@ import {
|
|
|
219
219
|
updateWorkspace,
|
|
220
220
|
withSlackRetries,
|
|
221
221
|
workspaceRepoCheckoutPath
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-JIZ3RFER.js";
|
|
223
223
|
import {
|
|
224
224
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
225
225
|
contextProvenance,
|
|
@@ -231,11 +231,11 @@ import {
|
|
|
231
231
|
instructionActors,
|
|
232
232
|
instructionProvenanceFor,
|
|
233
233
|
sameActorIdentity
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-JHCAX7XY.js";
|
|
235
235
|
import {
|
|
236
236
|
juniorArtifacts,
|
|
237
237
|
juniorIdentities
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-CUA5SZR5.js";
|
|
239
239
|
import {
|
|
240
240
|
SANDBOX_DATA_ROOT,
|
|
241
241
|
SANDBOX_REPOS_ROOT,
|
|
@@ -250,10 +250,10 @@ import {
|
|
|
250
250
|
sandboxSkillFile,
|
|
251
251
|
sandboxSkillPathResolution,
|
|
252
252
|
sleep
|
|
253
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-CNC65LIX.js";
|
|
254
254
|
import {
|
|
255
255
|
getStateAdapter
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-B6IOTX7W.js";
|
|
257
257
|
import {
|
|
258
258
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
259
259
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -286,7 +286,7 @@ import {
|
|
|
286
286
|
resolveGatewayCredential,
|
|
287
287
|
resolveGatewayModel,
|
|
288
288
|
unwrapCurrentInstruction
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-Z2YZ6QLG.js";
|
|
290
290
|
import {
|
|
291
291
|
canExposeConversationPayload,
|
|
292
292
|
resolveConversationPrivacy,
|
|
@@ -296,16 +296,16 @@ import {
|
|
|
296
296
|
toGenAiMessagesTraceAttributes,
|
|
297
297
|
toGenAiPayloadMetadata,
|
|
298
298
|
toGenAiPayloadTraceAttributes
|
|
299
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-H7KTMGNI.js";
|
|
300
300
|
import {
|
|
301
301
|
discoverSkills,
|
|
302
302
|
findSkillByName,
|
|
303
303
|
loadSkillsByName,
|
|
304
304
|
parseSkillInvocation
|
|
305
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-B65VEBJV.js";
|
|
306
306
|
import {
|
|
307
307
|
pluginCatalogRuntime
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-5JB5JJO5.js";
|
|
309
309
|
import {
|
|
310
310
|
CredentialUnavailableError,
|
|
311
311
|
OAuthProviderError,
|
|
@@ -313,7 +313,7 @@ import {
|
|
|
313
313
|
getOAuthProviderErrorAttributes,
|
|
314
314
|
resolveAuthTokenPlaceholder,
|
|
315
315
|
resolvePluginCommandEnv
|
|
316
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-CI4JX64I.js";
|
|
317
317
|
import {
|
|
318
318
|
credentialUserSubjectId
|
|
319
319
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -343,7 +343,7 @@ import {
|
|
|
343
343
|
summarizeMessageText,
|
|
344
344
|
withLogContext,
|
|
345
345
|
withSpan
|
|
346
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-SBIQ5MZW.js";
|
|
347
347
|
import {
|
|
348
348
|
startInactiveSpan,
|
|
349
349
|
withActiveSpan
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ToolInputError,
|
|
3
3
|
canRouteResourceEvents,
|
|
4
4
|
getPlugins
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JIZ3RFER.js";
|
|
6
6
|
import {
|
|
7
7
|
getDb
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JHCAX7XY.js";
|
|
9
9
|
import {
|
|
10
10
|
juniorAttachments,
|
|
11
11
|
juniorConversations,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CUA5SZR5.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-SBIQ5MZW.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/resource-events/catalog.ts
|
|
25
25
|
import {
|
|
@@ -67,9 +67,9 @@ function registeredResourceTypeSchema(catalog) {
|
|
|
67
67
|
function pluginSupportsEvent(catalog, namespace, resourceType, eventType) {
|
|
68
68
|
return catalog[namespace]?.resourceTypes.find((candidate) => candidate.type === resourceType)?.supportedEvents.includes(eventType) ?? false;
|
|
69
69
|
}
|
|
70
|
-
function resourceEventGuidance(catalog, namespace, eventType) {
|
|
70
|
+
function resourceEventGuidance(catalog, namespace, resourceType, eventType) {
|
|
71
71
|
return catalog[namespace]?.resourceTypes.find(
|
|
72
|
-
(
|
|
72
|
+
(candidate) => candidate.type === resourceType
|
|
73
73
|
)?.guidance?.[eventType];
|
|
74
74
|
}
|
|
75
75
|
function normalizeEventIdentifier(catalog, namespace, identifier) {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
juniorConversations,
|
|
8
8
|
juniorIdentities,
|
|
9
9
|
juniorUsers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CUA5SZR5.js";
|
|
11
11
|
import {
|
|
12
12
|
TURN_REASONING_LEVELS,
|
|
13
13
|
getChatConfig,
|
|
14
14
|
modelProfileSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z2YZ6QLG.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-SBIQ5MZW.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/conversations/sql/store.ts
|
|
29
29
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getConversationEventStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JHCAX7XY.js";
|
|
9
9
|
import {
|
|
10
10
|
juniorConversationAnnotations,
|
|
11
11
|
juniorConversationEvents,
|
|
@@ -14,23 +14,23 @@ import {
|
|
|
14
14
|
juniorUsers,
|
|
15
15
|
juniorWorkspaceRepos,
|
|
16
16
|
juniorWorkspaces
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CUA5SZR5.js";
|
|
18
18
|
import {
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT,
|
|
20
20
|
hash,
|
|
21
21
|
runNonInteractiveCommand,
|
|
22
22
|
sleep
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CNC65LIX.js";
|
|
24
24
|
import {
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B6IOTX7W.js";
|
|
27
27
|
import {
|
|
28
28
|
botConfig,
|
|
29
29
|
completeObject,
|
|
30
30
|
embedTexts,
|
|
31
31
|
getSlackBotToken,
|
|
32
32
|
standardModelId
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z2YZ6QLG.js";
|
|
34
34
|
import {
|
|
35
35
|
isActorUserId,
|
|
36
36
|
parseActorUserId,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
setSpanAttributes,
|
|
47
47
|
setSpanStatus,
|
|
48
48
|
withSpan
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SBIQ5MZW.js";
|
|
50
50
|
|
|
51
51
|
// src/chat/plugins/agent-hooks.ts
|
|
52
52
|
import {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JHCAX7XY.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B6IOTX7W.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Z2YZ6QLG.js";
|
|
19
19
|
import {
|
|
20
20
|
parseStoredSlackActor
|
|
21
21
|
} from "./chunk-M63DETLL.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isRecord,
|
|
24
24
|
toOptionalNumber,
|
|
25
25
|
toOptionalString
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SBIQ5MZW.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RF6J3DIO.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-665JOQEP.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-JIZ3RFER.js";
|
|
16
16
|
import {
|
|
17
17
|
getDb,
|
|
18
18
|
parseDestination
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JHCAX7XY.js";
|
|
20
20
|
import {
|
|
21
21
|
sleep
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CNC65LIX.js";
|
|
23
23
|
import {
|
|
24
24
|
acquireActiveLock,
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B6IOTX7W.js";
|
|
27
27
|
import {
|
|
28
28
|
pluginCatalogRuntime
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5JB5JJO5.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchWithBoundedOAuthErrorBodies
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CI4JX64I.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SBIQ5MZW.js";
|
|
36
36
|
|
|
37
37
|
// src/chat/capabilities/router.ts
|
|
38
38
|
var ProviderCredentialRouter = class {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-665JOQEP.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-64EGCW34.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CUA5SZR5.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Z2YZ6QLG.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5JB5JJO5.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-FA6POGLH.js";
|
|
4
4
|
import {
|
|
5
5
|
getTurnRequestDeadline
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PS3ZPRL2.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSentryConversationUrl,
|
|
9
9
|
deleteWebAuthorization
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VVLQGGJJ.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureConversationWake,
|
|
13
13
|
requestConversationWork
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OKXHYVKE.js";
|
|
15
15
|
import {
|
|
16
16
|
buildDeliveredTurnStatePatch,
|
|
17
17
|
finalizeFailedTurnReplyWithEvent,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
requireTurnFailureEventId,
|
|
25
25
|
resolveTurnSessionRouting,
|
|
26
26
|
scheduleSessionCompletedPluginTasks
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-B7U2QBMT.js";
|
|
28
28
|
import {
|
|
29
29
|
ConversationTurnLifecycleService,
|
|
30
30
|
coerceThreadConversationState,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getPersistedSandboxState,
|
|
34
34
|
getPersistedThreadState,
|
|
35
35
|
persistThreadStateById
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6NQJQP7O.js";
|
|
37
37
|
import {
|
|
38
38
|
getVercelConversationWorkQueue
|
|
39
39
|
} from "./chunk-WR76IVA5.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
lookupSlackUserProfile,
|
|
48
48
|
resolvePluginOAuthAccount,
|
|
49
49
|
runAgentWithTimeout
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-Q374NKGS.js";
|
|
51
51
|
import {
|
|
52
52
|
RetryableDeliveryError
|
|
53
53
|
} from "./chunk-RF6J3DIO.js";
|
|
@@ -63,13 +63,13 @@ import {
|
|
|
63
63
|
removeReactionFromMessage,
|
|
64
64
|
resolveBaseUrl,
|
|
65
65
|
truncateStatusText
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-665JOQEP.js";
|
|
67
67
|
import {
|
|
68
68
|
parseSlackThreadId,
|
|
69
69
|
readSlackRawMessageContext,
|
|
70
70
|
resolveSlackChannelIdFromMessage,
|
|
71
71
|
resolveSlackChannelIdFromThreadId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-AJEZETLT.js";
|
|
73
73
|
import {
|
|
74
74
|
CooperativeTurnYieldError,
|
|
75
75
|
TurnSliceLimitExceededError,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
recordTurnSummary,
|
|
97
97
|
saveTurnCheckpoint,
|
|
98
98
|
turnHasReply
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-64EGCW34.js";
|
|
100
100
|
import {
|
|
101
101
|
SlackActionError,
|
|
102
102
|
getDashboardConversationLink,
|
|
@@ -105,18 +105,18 @@ import {
|
|
|
105
105
|
getSlackClient,
|
|
106
106
|
isDmChannel,
|
|
107
107
|
normalizeSlackConversationId
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-JIZ3RFER.js";
|
|
109
109
|
import {
|
|
110
110
|
getConversationEventStore,
|
|
111
111
|
getSqlExecutor,
|
|
112
112
|
requireSlackDestination,
|
|
113
113
|
upsertIdentity,
|
|
114
114
|
upsertLinkedIdentity
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-JHCAX7XY.js";
|
|
116
116
|
import {
|
|
117
117
|
acquireActiveLock,
|
|
118
118
|
getStateAdapter
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-B6IOTX7W.js";
|
|
120
120
|
import {
|
|
121
121
|
botConfig,
|
|
122
122
|
escapeXml,
|
|
@@ -124,18 +124,18 @@ import {
|
|
|
124
124
|
getRuntimeMetadata,
|
|
125
125
|
normalizeSlackEmojiName,
|
|
126
126
|
standardModelId
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-Z2YZ6QLG.js";
|
|
128
128
|
import {
|
|
129
129
|
discoverSkills
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-B65VEBJV.js";
|
|
131
131
|
import {
|
|
132
132
|
pluginCatalogRuntime
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-5JB5JJO5.js";
|
|
134
134
|
import {
|
|
135
135
|
buildOAuthTokenRequest,
|
|
136
136
|
hasRequiredOAuthScope,
|
|
137
137
|
parseOAuthTokenResponse
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-CI4JX64I.js";
|
|
139
139
|
import {
|
|
140
140
|
createSlackResumeActor,
|
|
141
141
|
isUserActor,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
setTags,
|
|
152
152
|
toOptionalString,
|
|
153
153
|
withLogContext
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-SBIQ5MZW.js";
|
|
155
155
|
import {
|
|
156
156
|
homeDir
|
|
157
157
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PS3ZPRL2.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-OKXHYVKE.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-Z2YZ6QLG.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-SBIQ5MZW.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-H7KTMGNI.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-SBIQ5MZW.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/services/provider-error.ts
|
|
17
17
|
var ProviderError = class extends Error {
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-GYRGJVWR.js";
|
|
4
|
+
import "../chunk-RSIHA3XC.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentRunner
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-Q374NKGS.js";
|
|
9
9
|
import "../chunk-RF6J3DIO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-665JOQEP.js";
|
|
11
11
|
import "../chunk-6ZWRNC4D.js";
|
|
12
12
|
import "../chunk-VRS6WDK5.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-IPOB6IL5.js";
|
|
14
|
+
import "../chunk-AJEZETLT.js";
|
|
15
|
+
import "../chunk-64EGCW34.js";
|
|
16
|
+
import "../chunk-FNOLPLXJ.js";
|
|
17
17
|
import "../chunk-PDO5BLNM.js";
|
|
18
18
|
import "../chunk-UIE3R5XU.js";
|
|
19
19
|
import {
|
|
20
20
|
loadAppPluginSet
|
|
21
21
|
} from "../chunk-Y2CM7HXH.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-JIZ3RFER.js";
|
|
23
23
|
import "../chunk-3Y47VMHV.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-JHCAX7XY.js";
|
|
25
|
+
import "../chunk-CUA5SZR5.js";
|
|
26
|
+
import "../chunk-CNC65LIX.js";
|
|
27
|
+
import "../chunk-B6IOTX7W.js";
|
|
28
|
+
import "../chunk-Z2YZ6QLG.js";
|
|
29
29
|
import "../chunk-VFUK3X5B.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-H7KTMGNI.js";
|
|
31
|
+
import "../chunk-B65VEBJV.js";
|
|
32
|
+
import "../chunk-5JB5JJO5.js";
|
|
33
|
+
import "../chunk-CI4JX64I.js";
|
|
34
34
|
import "../chunk-CGA4ERJ5.js";
|
|
35
35
|
import "../chunk-M63DETLL.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-SBIQ5MZW.js";
|
|
37
37
|
import "../chunk-6GWA276C.js";
|
|
38
38
|
import "../chunk-OOUNJNMR.js";
|
|
39
39
|
import "../chunk-H4HBKISO.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-KYHHJ6LS.js";
|
|
41
|
+
import "../chunk-DVHYQDGM.js";
|
|
42
42
|
import "../chunk-MLKGABMK.js";
|
|
43
43
|
|
|
44
44
|
// src/cli/chat.ts
|
|
@@ -161,10 +161,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
161
161
|
databaseModule
|
|
162
162
|
] = await Promise.all([
|
|
163
163
|
import("../plugins-HW4VWW6G.js"),
|
|
164
|
-
import("../agent-hooks-
|
|
165
|
-
import("../catalog-runtime-
|
|
166
|
-
import("../validation-
|
|
167
|
-
import("../db-
|
|
164
|
+
import("../agent-hooks-ZPCHKYXI.js"),
|
|
165
|
+
import("../catalog-runtime-3Z2Y5IP6.js"),
|
|
166
|
+
import("../validation-RKLSF2UH.js"),
|
|
167
|
+
import("../db-63K2IY36.js")
|
|
168
168
|
]);
|
|
169
169
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
170
170
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -230,14 +230,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
230
230
|
await configureLocalChatPlugins(pluginSet);
|
|
231
231
|
const { setExperimentalFeatures } = await import("../experimental-XVDOSRBS.js");
|
|
232
232
|
setExperimentalFeatures({ subagents: true });
|
|
233
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
234
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
233
|
+
const { runLocalAgentTurn } = await import("../runner-3KWZJVK6.js");
|
|
234
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-JZXBDXGO.js");
|
|
235
235
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
236
236
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-DXOOBSBI.js");
|
|
237
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
238
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
237
|
+
const { bindSpawnAgent } = await import("../spawn-3GVQNWFH.js");
|
|
238
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-RKDS3J2X.js");
|
|
239
239
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
240
|
-
const { processConversationWork } = await import("../worker-
|
|
240
|
+
const { processConversationWork } = await import("../worker-5RJNDPYW.js");
|
|
241
241
|
let agentRunner;
|
|
242
242
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
243
243
|
if (!agentRunner) {
|