@sentry/junior 0.176.0 → 0.176.1
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-ZPCHKYXI.js → agent-hooks-ZCRXEWPE.js} +12 -12
- package/dist/api.js +26 -26
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-3Z2Y5IP6.js → catalog-runtime-O7ZMK27R.js} +5 -5
- package/dist/{chunk-PS3ZPRL2.js → chunk-425VJ2C7.js} +1 -1
- package/dist/{chunk-CUA5SZR5.js → chunk-4BO7CQTP.js} +1 -1
- package/dist/{chunk-CI4JX64I.js → chunk-4OLTNDE5.js} +1 -1
- package/dist/{chunk-64EGCW34.js → chunk-53D4PCKF.js} +6 -6
- package/dist/{chunk-Z2YZ6QLG.js → chunk-7V5CF6SH.js} +2 -2
- package/dist/{chunk-FNOLPLXJ.js → chunk-B74MKQA3.js} +4 -4
- package/dist/{chunk-B65VEBJV.js → chunk-BTAXMONT.js} +2 -2
- package/dist/{chunk-KYHHJ6LS.js → chunk-BV66CCPV.js} +1 -1
- package/dist/{chunk-2N7YRFMW.js → chunk-DKQC4BZG.js} +12 -12
- package/dist/{chunk-CTYWFV6L.js → chunk-DKXXKOHJ.js} +6 -6
- package/dist/{chunk-RSIHA3XC.js → chunk-F4K7AAHQ.js} +5 -5
- package/dist/{chunk-IPOB6IL5.js → chunk-FFQR4YEB.js} +4 -4
- package/dist/{chunk-JIZ3RFER.js → chunk-G26PYGXP.js} +6 -6
- package/dist/{chunk-5JB5JJO5.js → chunk-GUIEHC3H.js} +1 -1
- package/dist/{chunk-B6IOTX7W.js → chunk-H4WJ6GCS.js} +1 -1
- package/dist/{chunk-B7U2QBMT.js → chunk-I2OSXB2S.js} +9 -9
- package/dist/{chunk-OKXHYVKE.js → chunk-I7VX7SFH.js} +4 -4
- package/dist/{chunk-665JOQEP.js → chunk-IKIQ6N44.js} +6 -6
- package/dist/{chunk-GYRGJVWR.js → chunk-KMZ54JGE.js} +18 -18
- package/dist/{chunk-H7KTMGNI.js → chunk-NBASTXA5.js} +1 -1
- package/dist/{chunk-6NQJQP7O.js → chunk-O72OX3BI.js} +5 -5
- package/dist/{chunk-BNGK2J6X.js → chunk-OCK3LT7D.js} +1 -1
- package/dist/{chunk-VUAHVGPY.js → chunk-OYQSJ2NN.js} +4 -4
- package/dist/{chunk-JHCAX7XY.js → chunk-QD27ZPYB.js} +3 -3
- package/dist/{chunk-SBIQ5MZW.js → chunk-QHEYFDCZ.js} +1 -1
- package/dist/{chunk-AJEZETLT.js → chunk-RTNSAKYV.js} +1 -1
- package/dist/{chunk-COFZR2CO.js → chunk-SZPWKEVR.js} +1 -1
- package/dist/{chunk-CNC65LIX.js → chunk-VRWFZY2Q.js} +1 -1
- package/dist/{chunk-VVLQGGJJ.js → chunk-X3M2JJGL.js} +1 -1
- package/dist/{chunk-Q374NKGS.js → chunk-XGGLAKES.js} +8 -8
- package/dist/{chunk-DVHYQDGM.js → chunk-YGIPCZZD.js} +1 -1
- package/dist/{chunk-SGLLADGQ.js → chunk-ZO7WMPPR.js} +17 -17
- 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-63K2IY36.js → db-N4UWAT3N.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-JZXBDXGO.js → oauth-callback-server-BYURWP3V.js} +23 -23
- package/dist/{runner-3KWZJVK6.js → runner-AYSX73AQ.js} +15 -15
- package/dist/{skills-TFQQ3WSE.js → skills-L4ZYR5E3.js} +6 -6
- package/dist/spawn-GXHJJJYU.js +37 -0
- package/dist/{validation-RKLSF2UH.js → validation-AAFNNQUZ.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-RKDS3J2X.js → work-JHA35XRS.js} +18 -18
- package/dist/worker-F3BYG2FG.js +24 -0
- package/package.json +4 -4
- package/dist/spawn-3GVQNWFH.js +0 -37
- package/dist/worker-5RJNDPYW.js +0 -24
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I7VX7SFH.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService,
|
|
6
6
|
getPersistedSandboxState,
|
|
7
7
|
getPersistedThreadState,
|
|
8
8
|
persistThreadStateById
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O72OX3BI.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-F4K7AAHQ.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-53D4PCKF.js";
|
|
30
30
|
import {
|
|
31
31
|
getConversationEventStore,
|
|
32
32
|
getConversationStore,
|
|
33
33
|
getSqlExecutor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QD27ZPYB.js";
|
|
35
35
|
import {
|
|
36
36
|
juniorAgentBindings,
|
|
37
37
|
juniorAgentInvocations
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-4BO7CQTP.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/agent-invocations/work.ts
|
|
41
41
|
import { z } from "zod";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
formatProviderLabel,
|
|
6
6
|
startOAuthFlow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IKIQ6N44.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-53D4PCKF.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_INVOCATION_MAILBOX_STATUSES
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4BO7CQTP.js";
|
|
19
19
|
import {
|
|
20
20
|
TURN_REASONING_LEVELS
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7V5CF6SH.js";
|
|
22
22
|
import {
|
|
23
23
|
pluginCatalogRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GUIEHC3H.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialContextSchema
|
|
27
27
|
} from "./chunk-CGA4ERJ5.js";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ToolInputError,
|
|
3
3
|
canRouteResourceEvents,
|
|
4
4
|
getPlugins
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G26PYGXP.js";
|
|
6
6
|
import {
|
|
7
7
|
getDb
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QD27ZPYB.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-4BO7CQTP.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-QHEYFDCZ.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/resource-events/catalog.ts
|
|
25
25
|
import {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getConversationEventStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QD27ZPYB.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-4BO7CQTP.js";
|
|
18
18
|
import {
|
|
19
19
|
SANDBOX_WORKSPACE_ROOT,
|
|
20
20
|
hash,
|
|
21
21
|
runNonInteractiveCommand,
|
|
22
22
|
sleep
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VRWFZY2Q.js";
|
|
24
24
|
import {
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H4WJ6GCS.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-7V5CF6SH.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-QHEYFDCZ.js";
|
|
50
50
|
|
|
51
51
|
// src/chat/plugins/agent-hooks.ts
|
|
52
52
|
import {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState,
|
|
4
4
|
persistThreadStateById
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-O72OX3BI.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-53D4PCKF.js";
|
|
26
26
|
import {
|
|
27
27
|
createPluginConversationEvents,
|
|
28
28
|
createPluginEmbedder,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
createPluginModel,
|
|
31
31
|
createPluginState,
|
|
32
32
|
getPlugins
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-G26PYGXP.js";
|
|
34
34
|
import {
|
|
35
35
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
36
36
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -38,20 +38,20 @@ import {
|
|
|
38
38
|
getConversationStore,
|
|
39
39
|
getDb,
|
|
40
40
|
sameActorIdentity
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QD27ZPYB.js";
|
|
42
42
|
import {
|
|
43
43
|
juniorConversations,
|
|
44
44
|
juniorTaskExecutions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-4BO7CQTP.js";
|
|
46
46
|
import {
|
|
47
47
|
getStateAdapter
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-H4WJ6GCS.js";
|
|
49
49
|
import {
|
|
50
50
|
ProviderError,
|
|
51
51
|
findProviderError,
|
|
52
52
|
getProviderErrorAttributes,
|
|
53
53
|
getProviderErrorUserMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7V5CF6SH.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-QHEYFDCZ.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-N4UWAT3N.js")).getConversationStore();
|
|
91
91
|
const conversation = await conversationStore.get({
|
|
92
92
|
conversationId: args.conversationId
|
|
93
93
|
});
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QD27ZPYB.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H4WJ6GCS.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7V5CF6SH.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-QHEYFDCZ.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
isDmChannel,
|
|
6
6
|
normalizeSlackConversationId,
|
|
7
7
|
withSlackRetries
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G26PYGXP.js";
|
|
9
9
|
import {
|
|
10
10
|
parseDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QD27ZPYB.js";
|
|
12
12
|
import {
|
|
13
13
|
getStateAdapter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H4WJ6GCS.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeSlackEmojiName
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7V5CF6SH.js";
|
|
18
18
|
import {
|
|
19
19
|
pluginCatalogRuntime
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GUIEHC3H.js";
|
|
21
21
|
import {
|
|
22
22
|
parseSlackMessageTs,
|
|
23
23
|
parseSlackUserId
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
isRecord,
|
|
27
27
|
logInfo,
|
|
28
28
|
logWarn
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QHEYFDCZ.js";
|
|
30
30
|
|
|
31
31
|
// src/chat/slack/outbound.ts
|
|
32
32
|
var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F4K7AAHQ.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-XGGLAKES.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-IKIQ6N44.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-FFQR4YEB.js";
|
|
91
91
|
import {
|
|
92
92
|
parseSlackThreadId
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-RTNSAKYV.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-53D4PCKF.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-B74MKQA3.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-G26PYGXP.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-QD27ZPYB.js";
|
|
235
235
|
import {
|
|
236
236
|
juniorArtifacts,
|
|
237
237
|
juniorIdentities
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-4BO7CQTP.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-VRWFZY2Q.js";
|
|
254
254
|
import {
|
|
255
255
|
getStateAdapter
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-H4WJ6GCS.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-7V5CF6SH.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-NBASTXA5.js";
|
|
300
300
|
import {
|
|
301
301
|
discoverSkills,
|
|
302
302
|
findSkillByName,
|
|
303
303
|
loadSkillsByName,
|
|
304
304
|
parseSkillInvocation
|
|
305
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-BTAXMONT.js";
|
|
306
306
|
import {
|
|
307
307
|
pluginCatalogRuntime
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-GUIEHC3H.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-4OLTNDE5.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-QHEYFDCZ.js";
|
|
347
347
|
import {
|
|
348
348
|
startInactiveSpan,
|
|
349
349
|
withActiveSpan
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
persistConversationMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-53D4PCKF.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-QD27ZPYB.js";
|
|
10
10
|
import {
|
|
11
11
|
juniorLocationConfigurations
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4BO7CQTP.js";
|
|
13
13
|
import {
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H4WJ6GCS.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-QHEYFDCZ.js";
|
|
24
24
|
|
|
25
25
|
// src/chat/conversations/turn-lifecycle.ts
|
|
26
26
|
var ConversationTurnLifecycleService = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-425VJ2C7.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-I7VX7SFH.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-7V5CF6SH.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QHEYFDCZ.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
juniorConversations,
|
|
8
8
|
juniorIdentities,
|
|
9
9
|
juniorUsers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4BO7CQTP.js";
|
|
11
11
|
import {
|
|
12
12
|
TURN_REASONING_LEVELS,
|
|
13
13
|
getChatConfig,
|
|
14
14
|
modelProfileSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7V5CF6SH.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-QHEYFDCZ.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/conversations/sql/store.ts
|
|
29
29
|
import { randomUUID as randomUUID2 } 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-IKIQ6N44.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-G26PYGXP.js";
|
|
16
16
|
import {
|
|
17
17
|
getDb,
|
|
18
18
|
parseDestination
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QD27ZPYB.js";
|
|
20
20
|
import {
|
|
21
21
|
sleep
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VRWFZY2Q.js";
|
|
23
23
|
import {
|
|
24
24
|
acquireActiveLock,
|
|
25
25
|
getStateAdapter
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H4WJ6GCS.js";
|
|
27
27
|
import {
|
|
28
28
|
pluginCatalogRuntime
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GUIEHC3H.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchWithBoundedOAuthErrorBodies
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4OLTNDE5.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QHEYFDCZ.js";
|
|
36
36
|
|
|
37
37
|
// src/chat/capabilities/router.ts
|
|
38
38
|
var ProviderCredentialRouter = class {
|