@sentry/junior 0.191.0 → 0.192.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-HIWWBBKO.js → agent-hooks-3JY76L5X.js} +11 -11
- package/dist/api/activity.d.ts +3 -1
- package/dist/api/code/overview.d.ts +12 -0
- package/dist/api/locations/detail.d.ts +8 -0
- package/dist/api/locations/list.d.ts +5 -0
- package/dist/api/people/code.d.ts +6 -0
- package/dist/api/people/shared.d.ts +2 -0
- package/dist/api/reporting-window.d.ts +40 -0
- package/dist/api/schema/code.d.ts +14 -0
- package/dist/api/schema/conversation.d.ts +27 -0
- package/dist/api/schema/location.d.ts +15 -0
- package/dist/api/schema/person.d.ts +104 -0
- package/dist/api/schema/task.d.ts +15 -2
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +2 -2
- package/dist/api.js +536 -141
- package/dist/app.js +39 -39
- package/dist/{catalog-runtime-4OKH4265.js → catalog-runtime-5JVLWXRY.js} +4 -4
- package/dist/chat/tasks/execution-stats.d.ts +12 -0
- package/dist/{chunk-L4JLLS6C.js → chunk-3ADPXQBL.js} +1 -1
- package/dist/{chunk-VGYZ3YZM.js → chunk-3O2NXVGB.js} +21 -21
- package/dist/{chunk-CUUE5MGF.js → chunk-3UJSII43.js} +3 -3
- package/dist/{chunk-X6PQKQTY.js → chunk-47JFLZSF.js} +4 -4
- package/dist/{chunk-WBNQYVCM.js → chunk-4AFSQJD6.js} +2 -2
- package/dist/{chunk-NY5SJGJZ.js → chunk-4B4DQGOM.js} +22 -22
- package/dist/{chunk-AWFSSFAX.js → chunk-4CCQZHD3.js} +9 -9
- package/dist/{chunk-DP6H3U2X.js → chunk-4WIA45WD.js} +1 -1
- package/dist/{chunk-2JAWOTUT.js → chunk-4Z7B5WVV.js} +2 -2
- package/dist/{chunk-BVWC5DBM.js → chunk-5V4BAUCH.js} +1 -1
- package/dist/{chunk-QRNJO7DZ.js → chunk-6FCKJDKS.js} +1 -1
- package/dist/{chunk-7PYCRKQL.js → chunk-6LX6KV5C.js} +3 -3
- package/dist/{chunk-WCSXTDOL.js → chunk-7XO7PTZE.js} +1 -1
- package/dist/{chunk-S7NSFCCW.js → chunk-AKR6W7VV.js} +3 -3
- package/dist/{chunk-ZNFNGDT7.js → chunk-ARSUYYQG.js} +1 -1
- package/dist/{chunk-CCPOZMS4.js → chunk-BGLMT6KP.js} +3 -3
- package/dist/{chunk-NK3UEKAW.js → chunk-BUTAWPUV.js} +50 -8
- package/dist/{chunk-LOYTPSAK.js → chunk-EIYOABL4.js} +4 -4
- package/dist/{chunk-PFAZSRGR.js → chunk-EYIMZY5O.js} +114 -19
- package/dist/{chunk-BVYUIVXE.js → chunk-EYNUOZCN.js} +1 -1
- package/dist/{chunk-EQZUBYRF.js → chunk-FGYWKKTJ.js} +1 -1
- package/dist/{chunk-3PDR63SX.js → chunk-G4E5WIRL.js} +4 -4
- package/dist/{chunk-ZRN3OS7M.js → chunk-H5Q2T5VC.js} +1 -1
- package/dist/{chunk-SEIZ2XLD.js → chunk-IBO4YFFZ.js} +1 -1
- package/dist/{chunk-Q32BSFN4.js → chunk-ITTEDZGY.js} +8 -8
- package/dist/{chunk-5IMKUVMS.js → chunk-KR5F3QSP.js} +9 -9
- package/dist/{chunk-YNRLCUCB.js → chunk-LRTEMMCZ.js} +1 -1
- package/dist/{chunk-ZJRGWZZ2.js → chunk-MB2CTEPD.js} +74 -4
- package/dist/{chunk-WNIVCR74.js → chunk-OBN7UEQJ.js} +2 -2
- package/dist/{chunk-HNMRX2EN.js → chunk-PXP2M32M.js} +5 -5
- package/dist/{chunk-TH6LMEOW.js → chunk-PXUBRZBU.js} +1 -1
- package/dist/{chunk-6KISW5UY.js → chunk-PYVGXGKC.js} +2 -2
- package/dist/{chunk-UTL3MHPC.js → chunk-RC745GGZ.js} +8 -1
- package/dist/{chunk-RZS4F5K4.js → chunk-RWBZZMW6.js} +3 -3
- package/dist/{chunk-GQN4REF5.js → chunk-SSR6YBWW.js} +6 -6
- package/dist/{chunk-MFZOIKET.js → chunk-SZ2O3CGS.js} +1 -1
- package/dist/{chunk-KTW62MG5.js → chunk-VF3EDS7P.js} +6 -6
- package/dist/{chunk-CECRMPXJ.js → chunk-YE6DVM43.js} +8 -8
- package/dist/{chunk-K2NKG42A.js → chunk-YRWGJ5OO.js} +5 -5
- package/dist/{chunk-SGRL7NV6.js → chunk-Z4DNJI5F.js} +5 -5
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/db/schema/stats.d.ts +5 -1
- package/dist/{db-LG4ZEWA3.js → db-LRM6AP66.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-KI7ZRTOG.js → oauth-callback-server-BKCDVYVH.js} +29 -29
- package/dist/reporting-schema.d.ts +2 -2
- package/dist/{runner-K2EOSAZQ.js → runner-RUXGS3E6.js} +21 -21
- package/dist/{skills-JTRDFKMA.js → skills-DXP2RCJF.js} +5 -5
- package/dist/spawn-HH7GH7XT.js +42 -0
- package/dist/task-runner-H5I7R3LJ.js +36 -0
- package/dist/{validation-NBWURHAP.js → validation-F4KYLIF2.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-35TBEAUI.js → work-UUNMNSML.js} +21 -21
- package/dist/{worker-F762M6XM.js → worker-PMIJ5NLD.js} +10 -10
- package/package.json +5 -5
- package/dist/spawn-SRBETYCF.js +0 -42
- package/dist/task-runner-INQIQ4VF.js +0 -36
package/dist/app.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
processConversationWork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-47JFLZSF.js";
|
|
4
4
|
import {
|
|
5
5
|
bindSpawnAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4AFSQJD6.js";
|
|
7
7
|
import {
|
|
8
8
|
createAgentInvocationWorker,
|
|
9
9
|
enqueueAgentInvocation,
|
|
10
10
|
listPendingAgentInvocationMailboxAppends,
|
|
11
11
|
resolveAgentInvocationId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4CCQZHD3.js";
|
|
13
13
|
import {
|
|
14
14
|
GET as GET2,
|
|
15
15
|
GET2 as GET3,
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
startProcessingReaction,
|
|
38
38
|
stripLeadingBotMention,
|
|
39
39
|
wakePausedTurn
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3O2NXVGB.js";
|
|
41
41
|
import "./chunk-FA6POGLH.js";
|
|
42
42
|
import {
|
|
43
43
|
AgentRunError,
|
|
44
44
|
executeTurn
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BGLMT6KP.js";
|
|
46
46
|
import {
|
|
47
47
|
buildDeliveredTurnStatePatch,
|
|
48
48
|
completeAuthPauseTurn,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
getTurnUserSlackMessageTs,
|
|
54
54
|
persistAuthPauseTurnState,
|
|
55
55
|
requireTurnFailureEventId
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-YRWGJ5OO.js";
|
|
57
57
|
import {
|
|
58
58
|
claimDispatchMailboxAppend,
|
|
59
59
|
confirmDispatchMailboxAppend,
|
|
@@ -73,11 +73,11 @@ import {
|
|
|
73
73
|
processPluginTask,
|
|
74
74
|
resolveTurnSessionRouting,
|
|
75
75
|
scheduleSessionCompletedPluginTasks
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-ITTEDZGY.js";
|
|
77
77
|
import {
|
|
78
78
|
ConversationTurnLifecycleService,
|
|
79
79
|
getTurnLifecycle
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-PXUBRZBU.js";
|
|
81
81
|
import {
|
|
82
82
|
coerceThreadConversationState,
|
|
83
83
|
getLocationConfigurationService,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
persistThreadRuntimeState,
|
|
87
87
|
persistThreadState,
|
|
88
88
|
persistThreadStateById
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-Z4DNJI5F.js";
|
|
90
90
|
import {
|
|
91
91
|
GET,
|
|
92
92
|
appendAndEnqueueWebMessage,
|
|
@@ -101,24 +101,24 @@ import {
|
|
|
101
101
|
resolveSlackChannelTypeFromMessage,
|
|
102
102
|
resolveSlackConversationContext,
|
|
103
103
|
webActorFromEmail
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-KR5F3QSP.js";
|
|
105
105
|
import {
|
|
106
106
|
createWebAuthorization,
|
|
107
107
|
deleteWebAuthorization
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-H5Q2T5VC.js";
|
|
109
109
|
import {
|
|
110
110
|
recordTaskExecution
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
111
|
+
} from "./chunk-MB2CTEPD.js";
|
|
112
|
+
import "./chunk-RC745GGZ.js";
|
|
113
113
|
import {
|
|
114
114
|
createVercelPluginTaskCallback,
|
|
115
115
|
queueCallback,
|
|
116
116
|
registerVercelPluginTaskDevConsumer
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-RWBZZMW6.js";
|
|
118
118
|
import {
|
|
119
119
|
validatePluginEgressCredentialHooks,
|
|
120
120
|
validatePluginRegistrations
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-5V4BAUCH.js";
|
|
122
122
|
import {
|
|
123
123
|
defineJuniorPlugins,
|
|
124
124
|
pluginCatalogConfigFromEnv,
|
|
@@ -158,11 +158,11 @@ import {
|
|
|
158
158
|
shouldEmitDevAgentTrace,
|
|
159
159
|
shouldPropagateSandboxEgressTrace,
|
|
160
160
|
unpublishedArtifactHeaders
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-4B4DQGOM.js";
|
|
162
162
|
import {
|
|
163
163
|
AuthorizationFlowDisabledError,
|
|
164
164
|
PluginCredentialFailureError
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-PXP2M32M.js";
|
|
166
166
|
import "./chunk-6Y5B5PEX.js";
|
|
167
167
|
import "./chunk-DIB4GX3G.js";
|
|
168
168
|
import {
|
|
@@ -170,14 +170,14 @@ import {
|
|
|
170
170
|
deleteMcpAuthSessionsForUserProvider,
|
|
171
171
|
deleteMcpServerSessionId,
|
|
172
172
|
deleteMcpStoredOAuthCredentials
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-YE6DVM43.js";
|
|
174
174
|
import {
|
|
175
175
|
RetryableDeliveryError,
|
|
176
176
|
createAgentRunner,
|
|
177
177
|
formatProviderLabel,
|
|
178
178
|
postSlackMessage,
|
|
179
179
|
startOAuthFlow
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-SSR6YBWW.js";
|
|
181
181
|
import {
|
|
182
182
|
ConversationTurnBoundaryError,
|
|
183
183
|
CooperativeTurnYieldError,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
markTurnCompleted,
|
|
194
194
|
markTurnFailed,
|
|
195
195
|
startActiveTurn
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-7XO7PTZE.js";
|
|
197
197
|
import {
|
|
198
198
|
abandonTurnRecord,
|
|
199
199
|
appendThreadContextMessages,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
trimTrailingAssistantMessages,
|
|
230
230
|
turnHasReply,
|
|
231
231
|
upsertConversationMessage
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-VF3EDS7P.js";
|
|
233
233
|
import {
|
|
234
234
|
getExperimentalFeatures,
|
|
235
235
|
isExperimentalFeatureEnabled,
|
|
@@ -249,10 +249,10 @@ import {
|
|
|
249
249
|
scheduledRunId,
|
|
250
250
|
scheduledRunSchema,
|
|
251
251
|
withScheduledTaskLock
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-EIYOABL4.js";
|
|
253
253
|
import {
|
|
254
254
|
parseSlackThreadId
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-4WIA45WD.js";
|
|
256
256
|
import {
|
|
257
257
|
CONVERSATION_WORK_STALE_ENQUEUE_MS,
|
|
258
258
|
appendAndEnqueueInboundMessage,
|
|
@@ -267,16 +267,16 @@ import {
|
|
|
267
267
|
removeActiveConversation,
|
|
268
268
|
requestConversationWork,
|
|
269
269
|
stopConversationWork
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-G4E5WIRL.js";
|
|
271
271
|
import {
|
|
272
272
|
buildDeterministicAssistantMessageId,
|
|
273
273
|
buildDeterministicTurnId
|
|
274
274
|
} from "./chunk-DA2KGZZI.js";
|
|
275
|
-
import "./chunk-
|
|
275
|
+
import "./chunk-OBN7UEQJ.js";
|
|
276
276
|
import {
|
|
277
277
|
getSandboxResourceConfig,
|
|
278
278
|
setSandboxResourceConfig
|
|
279
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-3UJSII43.js";
|
|
280
280
|
import "./chunk-PDO5BLNM.js";
|
|
281
281
|
import "./chunk-UIE3R5XU.js";
|
|
282
282
|
import {
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
} from "./chunk-X6GDDWQH.js";
|
|
286
286
|
import {
|
|
287
287
|
getTurnRequestDeadline
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-SZ2O3CGS.js";
|
|
289
289
|
import {
|
|
290
290
|
getVercelConversationWorkQueue,
|
|
291
291
|
resolveConversationWorkQueueTopic,
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
verifyEventTaskCredentialSubject,
|
|
322
322
|
verifyScheduledTaskCredentialSubject,
|
|
323
323
|
verifySlackDirectCredentialSubject
|
|
324
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-BUTAWPUV.js";
|
|
325
325
|
import "./chunk-3Y47VMHV.js";
|
|
326
326
|
import {
|
|
327
327
|
createSlackDestination,
|
|
@@ -333,7 +333,7 @@ import {
|
|
|
333
333
|
requireSlackDestination,
|
|
334
334
|
withConversationEventLock,
|
|
335
335
|
withConversationMutationLock
|
|
336
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-AKR6W7VV.js";
|
|
337
337
|
import {
|
|
338
338
|
juniorAgentBindings,
|
|
339
339
|
juniorAgentInvocations,
|
|
@@ -341,13 +341,13 @@ import {
|
|
|
341
341
|
juniorConversations,
|
|
342
342
|
juniorSchedulerRuns,
|
|
343
343
|
juniorSchedulerTasks
|
|
344
|
-
} from "./chunk-
|
|
345
|
-
import "./chunk-
|
|
344
|
+
} from "./chunk-IBO4YFFZ.js";
|
|
345
|
+
import "./chunk-6LX6KV5C.js";
|
|
346
346
|
import {
|
|
347
347
|
acquireActiveLock,
|
|
348
348
|
getStateAdapter,
|
|
349
349
|
withActiveLock
|
|
350
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-LRTEMMCZ.js";
|
|
351
351
|
import {
|
|
352
352
|
instructionProvenanceFor
|
|
353
353
|
} from "./chunk-GFBR4S3Q.js";
|
|
@@ -369,17 +369,17 @@ import {
|
|
|
369
369
|
isProviderRetryError,
|
|
370
370
|
setProfiles,
|
|
371
371
|
setSlackReactionConfig
|
|
372
|
-
} from "./chunk-
|
|
372
|
+
} from "./chunk-4Z7B5WVV.js";
|
|
373
373
|
import {
|
|
374
374
|
defaultModelId,
|
|
375
375
|
modelIdForProfile
|
|
376
376
|
} from "./chunk-D4YV5TDV.js";
|
|
377
|
-
import "./chunk-
|
|
378
|
-
import "./chunk-
|
|
377
|
+
import "./chunk-EYNUOZCN.js";
|
|
378
|
+
import "./chunk-PYVGXGKC.js";
|
|
379
379
|
import {
|
|
380
380
|
pluginCatalogRuntime
|
|
381
|
-
} from "./chunk-
|
|
382
|
-
import "./chunk-
|
|
381
|
+
} from "./chunk-FGYWKKTJ.js";
|
|
382
|
+
import "./chunk-6FCKJDKS.js";
|
|
383
383
|
import {
|
|
384
384
|
credentialContextForActor
|
|
385
385
|
} from "./chunk-CEMMLV5L.js";
|
|
@@ -415,13 +415,13 @@ import {
|
|
|
415
415
|
withContext,
|
|
416
416
|
withLogContext,
|
|
417
417
|
withSpan
|
|
418
|
-
} from "./chunk-
|
|
418
|
+
} from "./chunk-3ADPXQBL.js";
|
|
419
419
|
import {
|
|
420
420
|
continueTrace
|
|
421
421
|
} from "./chunk-PEQXYSSE.js";
|
|
422
422
|
import {
|
|
423
423
|
JUNIOR_VERSION
|
|
424
|
-
} from "./chunk-
|
|
424
|
+
} from "./chunk-ARSUYYQG.js";
|
|
425
425
|
|
|
426
426
|
// src/app.ts
|
|
427
427
|
import { createRequire } from "module";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-FGYWKKTJ.js";
|
|
4
|
+
import "./chunk-6FCKJDKS.js";
|
|
5
5
|
import "./chunk-CEMMLV5L.js";
|
|
6
6
|
import "./chunk-N7TMSOZH.js";
|
|
7
7
|
import "./chunk-DWPN6SCH.js";
|
|
8
8
|
import "./chunk-TXKUKMVO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-3ADPXQBL.js";
|
|
10
10
|
import "./chunk-PEQXYSSE.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ARSUYYQG.js";
|
|
12
12
|
export {
|
|
13
13
|
pluginCatalogRuntime
|
|
14
14
|
};
|
|
@@ -46,6 +46,10 @@ export declare function readTaskExecutionSummaries(type: TaskExecutionType, name
|
|
|
46
46
|
export declare function readTaskExecutionDays(dayCount?: number, options?: {
|
|
47
47
|
nowMs?: number;
|
|
48
48
|
}): Promise<TaskExecutionDay[]>;
|
|
49
|
+
/** Load a fixed trailing window of completed executions stacked by hour. */
|
|
50
|
+
export declare function readTaskExecutionHours(hourCount?: number, options?: {
|
|
51
|
+
nowMs?: number;
|
|
52
|
+
}): Promise<TaskExecutionDay[]>;
|
|
49
53
|
/** Load the newest terminal task execution linked to one conversation, if any. */
|
|
50
54
|
export declare function readTaskExecutionByConversationId(args: {
|
|
51
55
|
conversationId: string;
|
|
@@ -78,3 +82,11 @@ export declare function readTaskExecutionStatusDays(args: {
|
|
|
78
82
|
nowMs?: number;
|
|
79
83
|
taskId: string;
|
|
80
84
|
}): Promise<TaskExecutionStatusDay[]>;
|
|
85
|
+
/** Load a fixed trailing window of terminal executions for one task by hour. */
|
|
86
|
+
export declare function readTaskExecutionStatusHours(args: {
|
|
87
|
+
hourCount?: number;
|
|
88
|
+
kind: TaskExecutionType;
|
|
89
|
+
namespace?: string;
|
|
90
|
+
nowMs?: number;
|
|
91
|
+
taskId: string;
|
|
92
|
+
}): Promise<TaskExecutionStatusDay[]>;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
AgentRunError,
|
|
6
6
|
executeTurn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BGLMT6KP.js";
|
|
8
8
|
import {
|
|
9
9
|
buildDeliveredTurnStatePatch,
|
|
10
10
|
finalizeFailedTurnReplyWithEvent,
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
getTurnUserSlackMessageTs,
|
|
16
16
|
persistAuthPauseTurnState,
|
|
17
17
|
requireTurnFailureEventId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YRWGJ5OO.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveTurnSessionRouting,
|
|
21
21
|
scheduleSessionCompletedPluginTasks
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ITTEDZGY.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnLifecycle
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PXUBRZBU.js";
|
|
26
26
|
import {
|
|
27
27
|
coerceThreadConversationState,
|
|
28
28
|
configValueSchema,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
getPersistedSandboxState,
|
|
31
31
|
getPersistedThreadState,
|
|
32
32
|
persistThreadStateById
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z4DNJI5F.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSentryConversationUrl,
|
|
36
36
|
deleteWebAuthorization
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-H5Q2T5VC.js";
|
|
38
38
|
import {
|
|
39
39
|
createUserTokenStore,
|
|
40
40
|
deleteMcpAuthSession,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
lookupSlackUserProfile,
|
|
46
46
|
putMcpStoredOAuthCredentials,
|
|
47
47
|
resolvePluginOAuthAccount
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YE6DVM43.js";
|
|
49
49
|
import {
|
|
50
50
|
RetryableDeliveryError,
|
|
51
51
|
addReactionToMessage,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
removeReactionFromMessage,
|
|
60
60
|
resolveBaseUrl,
|
|
61
61
|
truncateStatusText
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SSR6YBWW.js";
|
|
63
63
|
import {
|
|
64
64
|
CooperativeTurnYieldError,
|
|
65
65
|
clearPendingAuth,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
isCooperativeTurnYieldError,
|
|
69
69
|
isPendingAuthLatestRequest,
|
|
70
70
|
markTurnFailed
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-7XO7PTZE.js";
|
|
72
72
|
import {
|
|
73
73
|
TurnSliceLimitExceededError,
|
|
74
74
|
abandonTurnRecord,
|
|
@@ -88,20 +88,20 @@ import {
|
|
|
88
88
|
recordTurnSummary,
|
|
89
89
|
saveTurnCheckpoint,
|
|
90
90
|
turnHasReply
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VF3EDS7P.js";
|
|
92
92
|
import {
|
|
93
93
|
parseSlackThreadId,
|
|
94
94
|
readSlackRawMessageContext,
|
|
95
95
|
resolveSlackChannelIdFromMessage,
|
|
96
96
|
resolveSlackChannelIdFromThreadId
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-4WIA45WD.js";
|
|
98
98
|
import {
|
|
99
99
|
ensureConversationWake,
|
|
100
100
|
requestConversationWork
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-G4E5WIRL.js";
|
|
102
102
|
import {
|
|
103
103
|
getTurnRequestDeadline
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-SZ2O3CGS.js";
|
|
105
105
|
import {
|
|
106
106
|
getVercelConversationWorkQueue
|
|
107
107
|
} from "./chunk-DKIJ2RP5.js";
|
|
@@ -113,39 +113,39 @@ import {
|
|
|
113
113
|
getSlackClient,
|
|
114
114
|
isDmChannel,
|
|
115
115
|
normalizeSlackConversationId
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-BUTAWPUV.js";
|
|
117
117
|
import {
|
|
118
118
|
getConversationStore,
|
|
119
119
|
getSqlExecutor,
|
|
120
120
|
requireSlackDestination,
|
|
121
121
|
upsertIdentity,
|
|
122
122
|
upsertLinkedIdentity
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-AKR6W7VV.js";
|
|
124
124
|
import {
|
|
125
125
|
acquireActiveLock,
|
|
126
126
|
getStateAdapter
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-LRTEMMCZ.js";
|
|
128
128
|
import {
|
|
129
129
|
botConfig,
|
|
130
130
|
escapeXml,
|
|
131
131
|
getChatConfig,
|
|
132
132
|
getRuntimeMetadata,
|
|
133
133
|
normalizeSlackEmojiName
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-4Z7B5WVV.js";
|
|
135
135
|
import {
|
|
136
136
|
defaultModelId
|
|
137
137
|
} from "./chunk-D4YV5TDV.js";
|
|
138
138
|
import {
|
|
139
139
|
discoverSkills
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-PYVGXGKC.js";
|
|
141
141
|
import {
|
|
142
142
|
pluginCatalogRuntime
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-FGYWKKTJ.js";
|
|
144
144
|
import {
|
|
145
145
|
buildOAuthTokenRequest,
|
|
146
146
|
hasRequiredOAuthScope,
|
|
147
147
|
parseOAuthTokenResponse
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-6FCKJDKS.js";
|
|
149
149
|
import {
|
|
150
150
|
createSlackResumeActor,
|
|
151
151
|
isUserActor,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
setTags,
|
|
165
165
|
toOptionalString,
|
|
166
166
|
withLogContext
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-3ADPXQBL.js";
|
|
168
168
|
|
|
169
169
|
// src/chat/slack/assistant-thread/status-render.ts
|
|
170
170
|
var DEFAULT_STATUS_CONTEXTS = {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
isStale,
|
|
7
7
|
runNonInteractiveCommand,
|
|
8
8
|
sleep
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6LX6KV5C.js";
|
|
10
10
|
import {
|
|
11
11
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LRTEMMCZ.js";
|
|
13
13
|
import {
|
|
14
14
|
setSpanAttributes,
|
|
15
15
|
withSpan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3ADPXQBL.js";
|
|
17
17
|
|
|
18
18
|
// src/chat/sandbox/resources.ts
|
|
19
19
|
var configuredResources;
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
releaseConversationWork,
|
|
20
20
|
requestAnotherSlice,
|
|
21
21
|
startConversationWork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-G4E5WIRL.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnRequestDeadline
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SZ2O3CGS.js";
|
|
26
26
|
import {
|
|
27
27
|
ConversationQueueMessageRejectedError
|
|
28
28
|
} from "./chunk-JAL3CH4G.js";
|
|
29
29
|
import {
|
|
30
30
|
getChatConfig,
|
|
31
31
|
isProviderRetryError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4Z7B5WVV.js";
|
|
33
33
|
import {
|
|
34
34
|
logException,
|
|
35
35
|
logInfo,
|
|
36
36
|
logWarn,
|
|
37
37
|
withLogContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-3ADPXQBL.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/task-execution/worker.ts
|
|
41
41
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAndEnqueueAgentInvocation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4CCQZHD3.js";
|
|
4
4
|
import {
|
|
5
5
|
actorFromRun,
|
|
6
6
|
toolInvocationDestination
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SSR6YBWW.js";
|
|
8
8
|
|
|
9
9
|
// src/chat/agent-invocations/spawn.ts
|
|
10
10
|
function bindSpawnAgent(run, options) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PXP2M32M.js";
|
|
11
11
|
import {
|
|
12
12
|
parseSandboxEgressAuthRequiredSignal,
|
|
13
13
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
searchSlackUsers,
|
|
39
39
|
selectPluginGrant,
|
|
40
40
|
toMcpProviderError
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YE6DVM43.js";
|
|
42
42
|
import {
|
|
43
43
|
RetryableDeliveryError,
|
|
44
44
|
actorFromRun,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
surfaceFromRun,
|
|
53
53
|
toolInvocationDestination,
|
|
54
54
|
uploadFilesToConversation
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-SSR6YBWW.js";
|
|
56
56
|
import {
|
|
57
57
|
CooperativeTurnYieldError,
|
|
58
58
|
NO_REPLY_MARKER,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
isNoReplyMarker,
|
|
66
66
|
isTurnInputCommitLostError,
|
|
67
67
|
sanitizeAssistantText
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-7XO7PTZE.js";
|
|
69
69
|
import {
|
|
70
70
|
AGENTS_REMOVAL_NOTICE,
|
|
71
71
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
stripRuntimeTurnContext,
|
|
120
120
|
trimTrailingAssistantMessages,
|
|
121
121
|
truncateText
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-VF3EDS7P.js";
|
|
123
123
|
import {
|
|
124
124
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
125
125
|
WORKSPACE_SNAPSHOT_FAILED_EVENT,
|
|
@@ -160,13 +160,13 @@ import {
|
|
|
160
160
|
workspaceSnapshotFinishedEvent,
|
|
161
161
|
workspaceSnapshotWatch,
|
|
162
162
|
writableEventTask
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-EIYOABL4.js";
|
|
164
164
|
import {
|
|
165
165
|
parseSlackThreadId
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-4WIA45WD.js";
|
|
167
167
|
import {
|
|
168
168
|
appendAndEnqueueInboundMessage
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-G4E5WIRL.js";
|
|
170
170
|
import {
|
|
171
171
|
SHORT_TITLE_MAX_LENGTH,
|
|
172
172
|
ToolInputError,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
generateShortTitle,
|
|
175
175
|
hasAgentTurnUsage,
|
|
176
176
|
resolveTaskTitle
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-OBN7UEQJ.js";
|
|
178
178
|
import {
|
|
179
179
|
bindSandboxFileSystem,
|
|
180
180
|
createSandboxSession,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
resolve,
|
|
186
186
|
setSnapshotSpanAttributes,
|
|
187
187
|
stopSession
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-3UJSII43.js";
|
|
189
189
|
import {
|
|
190
190
|
privateTraceResultAttributes
|
|
191
191
|
} from "./chunk-UIE3R5XU.js";
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
} from "./chunk-X6GDDWQH.js";
|
|
196
196
|
import {
|
|
197
197
|
getTurnRequestDeadline
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-SZ2O3CGS.js";
|
|
199
199
|
import {
|
|
200
200
|
getVercelConversationWorkQueue
|
|
201
201
|
} from "./chunk-DKIJ2RP5.js";
|
|
@@ -242,19 +242,19 @@ import {
|
|
|
242
242
|
updateWorkspace,
|
|
243
243
|
withSlackRetries,
|
|
244
244
|
workspaceRepoCheckoutPath
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-BUTAWPUV.js";
|
|
246
246
|
import {
|
|
247
247
|
getConversationEventStore,
|
|
248
248
|
getConversationMessageSearchStore,
|
|
249
249
|
getConversationStore,
|
|
250
250
|
getDb,
|
|
251
251
|
getSqlExecutor
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-AKR6W7VV.js";
|
|
253
253
|
import {
|
|
254
254
|
juniorArtifacts,
|
|
255
255
|
juniorIdentities,
|
|
256
256
|
juniorSchedulerRuns
|
|
257
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-IBO4YFFZ.js";
|
|
258
258
|
import {
|
|
259
259
|
SANDBOX_DATA_ROOT,
|
|
260
260
|
SANDBOX_REPOS_ROOT,
|
|
@@ -285,12 +285,12 @@ import {
|
|
|
285
285
|
throwSandboxOperationError,
|
|
286
286
|
workspaceSnapshotNotReadyUserMessage,
|
|
287
287
|
wrapSandboxSetupError
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-6LX6KV5C.js";
|
|
289
289
|
import {
|
|
290
290
|
fenceLock,
|
|
291
291
|
getStateAdapter,
|
|
292
292
|
withLock
|
|
293
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-LRTEMMCZ.js";
|
|
294
294
|
import {
|
|
295
295
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
296
296
|
contextProvenance,
|
|
@@ -323,7 +323,7 @@ import {
|
|
|
323
323
|
resolveGatewayCredential,
|
|
324
324
|
resolveGatewayModel,
|
|
325
325
|
unwrapCurrentInstruction
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-4Z7B5WVV.js";
|
|
327
327
|
import {
|
|
328
328
|
ModelProfileNotConfiguredError,
|
|
329
329
|
TURN_REASONING_LEVELS,
|
|
@@ -340,16 +340,16 @@ import {
|
|
|
340
340
|
toGenAiMessagesTraceAttributes,
|
|
341
341
|
toGenAiPayloadMetadata,
|
|
342
342
|
toGenAiPayloadTraceAttributes
|
|
343
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-EYNUOZCN.js";
|
|
344
344
|
import {
|
|
345
345
|
discoverSkills,
|
|
346
346
|
findSkillByName,
|
|
347
347
|
loadSkillsByName,
|
|
348
348
|
parseSkillInvocation
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-PYVGXGKC.js";
|
|
350
350
|
import {
|
|
351
351
|
pluginCatalogRuntime
|
|
352
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-FGYWKKTJ.js";
|
|
353
353
|
import {
|
|
354
354
|
CredentialUnavailableError,
|
|
355
355
|
OAuthProviderError,
|
|
@@ -357,7 +357,7 @@ import {
|
|
|
357
357
|
getOAuthProviderErrorAttributes,
|
|
358
358
|
resolveAuthTokenPlaceholder,
|
|
359
359
|
resolvePluginCommandEnv
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-6FCKJDKS.js";
|
|
361
361
|
import {
|
|
362
362
|
credentialContextForActor,
|
|
363
363
|
credentialUserSubjectId
|
|
@@ -393,7 +393,7 @@ import {
|
|
|
393
393
|
summarizeMessageText,
|
|
394
394
|
withLogContext,
|
|
395
395
|
withSpan
|
|
396
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-3ADPXQBL.js";
|
|
397
397
|
import {
|
|
398
398
|
startInactiveSpan,
|
|
399
399
|
withActiveSpan
|