@sentry/junior 0.166.0 → 0.168.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-ZIPK2HUF.js → agent-hooks-D7JHU7WE.js} +9 -9
- package/dist/api/schema/workspace.d.ts +14 -0
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +3 -1
- package/dist/api.js +51 -27
- package/dist/app.js +34 -35
- package/dist/{catalog-runtime-GEZAHBUP.js → catalog-runtime-LXATMEQ6.js} +5 -5
- package/dist/{chunk-BKP3PVKR.js → chunk-24LYO2C5.js} +1 -1
- package/dist/{chunk-VNPG55CU.js → chunk-2AZWPCBL.js} +1 -1
- package/dist/{chunk-Q2IPCX7J.js → chunk-2IMUHQWT.js} +270 -7
- package/dist/{chunk-JUFZR2LD.js → chunk-36ANNINB.js} +1 -1
- package/dist/{chunk-JDTCQDRU.js → chunk-6MG6K3YZ.js} +3 -3
- package/dist/{chunk-CDBTQQQ4.js → chunk-76TU3ROD.js} +1 -1
- package/dist/{chunk-2KV4BAAN.js → chunk-7GXMR4MF.js} +12 -12
- package/dist/{chunk-P6UQMGM2.js → chunk-7JMIQWSP.js} +1 -1
- package/dist/{chunk-FFE3BMAT.js → chunk-AE7IUAXH.js} +7 -7
- package/dist/{chunk-U2UCDSDF.js → chunk-AGVNNQCS.js} +4 -4
- package/dist/{chunk-FEYQVP64.js → chunk-B547UCF7.js} +5 -5
- package/dist/{chunk-OYN45QUQ.js → chunk-CHYKJIKV.js} +6 -6
- package/dist/{chunk-DTQAMME2.js → chunk-DL4L7BBJ.js} +5 -5
- package/dist/{chunk-SLWGX3G5.js → chunk-FEJNF6FM.js} +35 -35
- package/dist/{chunk-ABNRESX6.js → chunk-GFAFJWSD.js} +1 -1
- package/dist/{chunk-43KLUCAM.js → chunk-H4RVQPJF.js} +17 -17
- package/dist/{chunk-EKBVHDZO.js → chunk-HFCY2MP6.js} +1 -1
- package/dist/{chunk-3EZ5V7XQ.js → chunk-I654GTNX.js} +9 -9
- package/dist/{chunk-ZKJO4K6M.js → chunk-IC2R5ZYK.js} +4 -4
- package/dist/{chunk-65SNO3WK.js → chunk-JW5SNARN.js} +1 -1
- package/dist/{chunk-LGSGPWYH.js → chunk-JYZA27WZ.js} +1 -1
- package/dist/{chunk-OCOGPNHA.js → chunk-KX2QWO3Z.js} +1 -1
- package/dist/{chunk-WX42YNDQ.js → chunk-KXC3RX7T.js} +5 -5
- package/dist/{chunk-4MDEQNSW.js → chunk-ME26L5R4.js} +5 -5
- package/dist/{chunk-KQ5YZGDV.js → chunk-O6KWHWGM.js} +1 -1
- package/dist/{chunk-YTIKGCPC.js → chunk-PGEWSREG.js} +1 -1
- package/dist/{chunk-AEKBVJMV.js → chunk-RQTHGAPN.js} +2 -2
- package/dist/{chunk-MDW5YPXW.js → chunk-SA6HSGDQ.js} +2 -2
- package/dist/{chunk-C3USHSIJ.js → chunk-T5RDAC5O.js} +1 -1
- package/dist/{chunk-4CMORAHL.js → chunk-UTMP45YM.js} +11 -1
- package/dist/{chunk-2ZKFLHVP.js → chunk-WE6OK3UZ.js} +6 -6
- package/dist/{chunk-22RO7IDD.js → chunk-YPLOMUS4.js} +4 -4
- package/dist/cli/chat.js +29 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +10 -12
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-TGZBS2CP.js → db-J2DG77RS.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-Z54WUF5H.js → oauth-callback-server-AZSRYN3C.js} +22 -22
- package/dist/{runner-PVFHKKK6.js → runner-U2WWTGBB.js} +12 -12
- package/dist/{skills-BYRH3QWD.js → skills-VO5YJ2VN.js} +6 -6
- package/dist/spawn-KOVJQOQA.js +37 -0
- package/dist/{validation-VZIE4RHA.js → validation-ZNI5KAOD.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-JTHAOPDQ.js → work-F3T7M2KC.js} +17 -17
- package/dist/worker-B3NU3RWC.js +24 -0
- package/package.json +5 -5
- package/dist/chunk-4DARCEZH.js +0 -274
- package/dist/spawn-RIPWK7EP.js +0 -37
- package/dist/worker-APEVP56Y.js +0 -24
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B547UCF7.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-AE7IUAXH.js";
|
|
36
36
|
import {
|
|
37
37
|
RetryableDeliveryError,
|
|
38
38
|
actorFromRun,
|
|
@@ -48,29 +48,13 @@ import {
|
|
|
48
48
|
getSlackMessagePermalink,
|
|
49
49
|
resolveBaseUrl,
|
|
50
50
|
uploadFilesToConversation
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-CHYKJIKV.js";
|
|
52
52
|
import {
|
|
53
53
|
parseSandboxEgressAuthRequiredSignal,
|
|
54
54
|
parseSandboxEgressPermissionDeniedSignal,
|
|
55
55
|
sandboxEgressCredentialContextSchema,
|
|
56
56
|
sandboxEgressCredentialLeaseSchema
|
|
57
57
|
} from "./chunk-7MA4HV4W.js";
|
|
58
|
-
import {
|
|
59
|
-
bindSandboxFileSystem,
|
|
60
|
-
createSandboxSession,
|
|
61
|
-
getSandboxResources,
|
|
62
|
-
getVercelSandboxCredentials,
|
|
63
|
-
isAlreadyExistsError,
|
|
64
|
-
isMissingError,
|
|
65
|
-
isSandboxCommandStreamInterruptedError,
|
|
66
|
-
isSandboxMissingError,
|
|
67
|
-
isSandboxUnavailableError,
|
|
68
|
-
isSnapshottingError,
|
|
69
|
-
resolve,
|
|
70
|
-
stopSession,
|
|
71
|
-
throwSandboxOperationError,
|
|
72
|
-
wrapSandboxSetupError
|
|
73
|
-
} from "./chunk-Q2IPCX7J.js";
|
|
74
58
|
import {
|
|
75
59
|
SANDBOX_RUNTIME,
|
|
76
60
|
SCHEDULED_TASK_SYSTEM_ACTOR,
|
|
@@ -104,10 +88,10 @@ import {
|
|
|
104
88
|
scheduledTaskAttributes,
|
|
105
89
|
storeAttachments,
|
|
106
90
|
writableEventTask
|
|
107
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-ME26L5R4.js";
|
|
108
92
|
import {
|
|
109
93
|
parseSlackThreadId
|
|
110
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-GFAFJWSD.js";
|
|
111
95
|
import {
|
|
112
96
|
AGENTS_REMOVAL_NOTICE,
|
|
113
97
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -178,14 +162,28 @@ import {
|
|
|
178
162
|
stripRuntimeTurnContext,
|
|
179
163
|
trimTrailingAssistantMessages,
|
|
180
164
|
truncateText
|
|
181
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-YPLOMUS4.js";
|
|
182
166
|
import {
|
|
183
167
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
184
168
|
} from "./chunk-3Y47VMHV.js";
|
|
185
169
|
import {
|
|
170
|
+
bindSandboxFileSystem,
|
|
171
|
+
createSandboxSession,
|
|
186
172
|
ensureDockerDaemon,
|
|
187
|
-
|
|
188
|
-
|
|
173
|
+
getSandboxResources,
|
|
174
|
+
getVercelSandboxCredentials,
|
|
175
|
+
hash,
|
|
176
|
+
isAlreadyExistsError,
|
|
177
|
+
isMissingError,
|
|
178
|
+
isSandboxCommandStreamInterruptedError,
|
|
179
|
+
isSandboxMissingError,
|
|
180
|
+
isSandboxUnavailableError,
|
|
181
|
+
isSnapshottingError,
|
|
182
|
+
resolve,
|
|
183
|
+
stopSession,
|
|
184
|
+
throwSandboxOperationError,
|
|
185
|
+
wrapSandboxSetupError
|
|
186
|
+
} from "./chunk-2IMUHQWT.js";
|
|
189
187
|
import {
|
|
190
188
|
privateTraceResultAttributes
|
|
191
189
|
} from "./chunk-UIE3R5XU.js";
|
|
@@ -211,7 +209,7 @@ import {
|
|
|
211
209
|
tryWorkspaceRepoCheckoutPath,
|
|
212
210
|
withSlackRetries,
|
|
213
211
|
workspaceRepoCheckoutPath
|
|
214
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-KXC3RX7T.js";
|
|
215
213
|
import {
|
|
216
214
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
217
215
|
contextProvenance,
|
|
@@ -223,11 +221,11 @@ import {
|
|
|
223
221
|
instructionActors,
|
|
224
222
|
instructionProvenanceFor,
|
|
225
223
|
sameActorIdentity
|
|
226
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-6MG6K3YZ.js";
|
|
227
225
|
import {
|
|
228
226
|
juniorArtifacts,
|
|
229
227
|
juniorIdentities
|
|
230
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-JW5SNARN.js";
|
|
231
229
|
import {
|
|
232
230
|
SANDBOX_DATA_ROOT,
|
|
233
231
|
SANDBOX_REPOS_ROOT,
|
|
@@ -243,7 +241,7 @@ import {
|
|
|
243
241
|
} from "./chunk-BVREIWBD.js";
|
|
244
242
|
import {
|
|
245
243
|
getStateAdapter
|
|
246
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-HFCY2MP6.js";
|
|
247
245
|
import {
|
|
248
246
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
249
247
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -276,7 +274,7 @@ import {
|
|
|
276
274
|
resolveGatewayCredential,
|
|
277
275
|
resolveGatewayModel,
|
|
278
276
|
unwrapCurrentInstruction
|
|
279
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-RQTHGAPN.js";
|
|
280
278
|
import {
|
|
281
279
|
canExposeConversationPayload,
|
|
282
280
|
resolveConversationPrivacy,
|
|
@@ -286,16 +284,16 @@ import {
|
|
|
286
284
|
toGenAiMessagesTraceAttributes,
|
|
287
285
|
toGenAiPayloadMetadata,
|
|
288
286
|
toGenAiPayloadTraceAttributes
|
|
289
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-O6KWHWGM.js";
|
|
290
288
|
import {
|
|
291
289
|
discoverSkills,
|
|
292
290
|
findSkillByName,
|
|
293
291
|
loadSkillsByName,
|
|
294
292
|
parseSkillInvocation
|
|
295
|
-
} from "./chunk-
|
|
293
|
+
} from "./chunk-SA6HSGDQ.js";
|
|
296
294
|
import {
|
|
297
295
|
pluginCatalogRuntime
|
|
298
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-2AZWPCBL.js";
|
|
299
297
|
import {
|
|
300
298
|
CredentialUnavailableError,
|
|
301
299
|
OAuthProviderError,
|
|
@@ -303,7 +301,7 @@ import {
|
|
|
303
301
|
getOAuthProviderErrorAttributes,
|
|
304
302
|
resolveAuthTokenPlaceholder,
|
|
305
303
|
resolvePluginCommandEnv
|
|
306
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-7JMIQWSP.js";
|
|
307
305
|
import {
|
|
308
306
|
credentialUserSubjectId
|
|
309
307
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -331,7 +329,7 @@ import {
|
|
|
331
329
|
summarizeMessageText,
|
|
332
330
|
withLogContext,
|
|
333
331
|
withSpan
|
|
334
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-36ANNINB.js";
|
|
335
333
|
import {
|
|
336
334
|
startInactiveSpan,
|
|
337
335
|
withActiveSpan
|
|
@@ -13688,12 +13686,14 @@ var repoSchema = z63.object({
|
|
|
13688
13686
|
var workspaceSchema = z63.object({
|
|
13689
13687
|
id: z63.string(),
|
|
13690
13688
|
name: z63.string(),
|
|
13689
|
+
setup_script: z63.string(),
|
|
13691
13690
|
repos: z63.array(repoSchema)
|
|
13692
13691
|
});
|
|
13693
13692
|
function view(workspace) {
|
|
13694
13693
|
return {
|
|
13695
13694
|
id: workspace.id,
|
|
13696
13695
|
name: workspace.name,
|
|
13696
|
+
setup_script: workspace.setupScript,
|
|
13697
13697
|
repos: workspace.repos.map((repo) => ({
|
|
13698
13698
|
provider: repo.provider,
|
|
13699
13699
|
repo: repo.repo,
|
|
@@ -13711,7 +13711,7 @@ function createWorkspaceTools(context) {
|
|
|
13711
13711
|
openWorldHint: false,
|
|
13712
13712
|
readOnlyHint: true
|
|
13713
13713
|
},
|
|
13714
|
-
description: "List named repository workspaces that can replace the current sandbox.",
|
|
13714
|
+
description: "List named repository workspaces that can replace the current sandbox. Manage install-wide Workspace recipes from the authenticated dashboard or `/api/workspaces`.",
|
|
13715
13715
|
inputSchema: z63.object({}).strict(),
|
|
13716
13716
|
outputSchema: juniorToolOutputSchema.extend({
|
|
13717
13717
|
active_workspace_id: z63.string().nullable(),
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-FA6POGLH.js";
|
|
4
4
|
import {
|
|
5
5
|
getTurnRequestDeadline
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76TU3ROD.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSentryConversationUrl,
|
|
9
9
|
deleteWebAuthorization
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KX2QWO3Z.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureConversationWake,
|
|
13
13
|
requestConversationWork
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IC2R5ZYK.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-I654GTNX.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-DL4L7BBJ.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-AE7IUAXH.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-CHYKJIKV.js";
|
|
67
67
|
import {
|
|
68
68
|
parseSlackThreadId,
|
|
69
69
|
readSlackRawMessageContext,
|
|
70
70
|
resolveSlackChannelIdFromMessage,
|
|
71
71
|
resolveSlackChannelIdFromThreadId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-GFAFJWSD.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-YPLOMUS4.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-KXC3RX7T.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-6MG6K3YZ.js";
|
|
116
116
|
import {
|
|
117
117
|
acquireActiveLock,
|
|
118
118
|
getStateAdapter
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-HFCY2MP6.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-RQTHGAPN.js";
|
|
128
128
|
import {
|
|
129
129
|
discoverSkills
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-SA6HSGDQ.js";
|
|
131
131
|
import {
|
|
132
132
|
pluginCatalogRuntime
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-2AZWPCBL.js";
|
|
134
134
|
import {
|
|
135
135
|
buildOAuthTokenRequest,
|
|
136
136
|
hasRequiredOAuthScope,
|
|
137
137
|
parseOAuthTokenResponse
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-7JMIQWSP.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-36ANNINB.js";
|
|
155
155
|
import {
|
|
156
156
|
homeDir
|
|
157
157
|
} from "./chunk-H4HBKISO.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
coerceThreadConversationState,
|
|
3
3
|
getPersistedThreadState,
|
|
4
4
|
persistThreadStateById
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DL4L7BBJ.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-YPLOMUS4.js";
|
|
26
26
|
import {
|
|
27
27
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
28
28
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -33,25 +33,25 @@ import {
|
|
|
33
33
|
createPluginModel,
|
|
34
34
|
createPluginState,
|
|
35
35
|
getPlugins
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KXC3RX7T.js";
|
|
37
37
|
import {
|
|
38
38
|
getConversationStore,
|
|
39
39
|
getDb,
|
|
40
40
|
sameActorIdentity
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6MG6K3YZ.js";
|
|
42
42
|
import {
|
|
43
43
|
juniorConversations,
|
|
44
44
|
juniorTaskExecutions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JW5SNARN.js";
|
|
46
46
|
import {
|
|
47
47
|
getStateAdapter
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-HFCY2MP6.js";
|
|
49
49
|
import {
|
|
50
50
|
ProviderError,
|
|
51
51
|
findProviderError,
|
|
52
52
|
getProviderErrorAttributes,
|
|
53
53
|
getProviderErrorUserMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RQTHGAPN.js";
|
|
55
55
|
import {
|
|
56
56
|
credentialSubjectSchema
|
|
57
57
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
buildTurnFailureResponse,
|
|
63
63
|
logWarn
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-36ANNINB.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-J2DG77RS.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-6MG6K3YZ.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HFCY2MP6.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RQTHGAPN.js";
|
|
19
19
|
import {
|
|
20
20
|
parseStoredSlackActor
|
|
21
21
|
} from "./chunk-V7YE4WCP.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isRecord,
|
|
24
24
|
toOptionalNumber,
|
|
25
25
|
toOptionalString
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-36ANNINB.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getConversationEventStore,
|
|
3
3
|
getDb,
|
|
4
4
|
getSqlExecutor
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6MG6K3YZ.js";
|
|
6
6
|
import {
|
|
7
7
|
juniorConversationAnnotations,
|
|
8
8
|
juniorConversationEvents,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
juniorUsers,
|
|
11
11
|
juniorWorkspaceRepos,
|
|
12
12
|
juniorWorkspaces
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JW5SNARN.js";
|
|
14
14
|
import {
|
|
15
15
|
SANDBOX_WORKSPACE_ROOT,
|
|
16
16
|
runNonInteractiveCommand,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
} from "./chunk-BVREIWBD.js";
|
|
19
19
|
import {
|
|
20
20
|
getStateAdapter
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HFCY2MP6.js";
|
|
22
22
|
import {
|
|
23
23
|
botConfig,
|
|
24
24
|
completeObject,
|
|
25
25
|
embedTexts,
|
|
26
26
|
getSlackBotToken,
|
|
27
27
|
standardModelId
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RQTHGAPN.js";
|
|
29
29
|
import {
|
|
30
30
|
isActorUserId,
|
|
31
31
|
parseActorUserId,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
setSpanAttributes,
|
|
42
42
|
setSpanStatus,
|
|
43
43
|
withSpan
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-36ANNINB.js";
|
|
45
45
|
|
|
46
46
|
// src/chat/plugins/agent-hooks.ts
|
|
47
47
|
import {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YPLOMUS4.js";
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KXC3RX7T.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6MG6K3YZ.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorAttachments,
|
|
13
13
|
juniorConversations,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
juniorSchedulerRuns,
|
|
16
16
|
juniorSchedulerTasks,
|
|
17
17
|
juniorStats
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JW5SNARN.js";
|
|
19
19
|
import {
|
|
20
20
|
juniorDestinations
|
|
21
21
|
} from "./chunk-VFUK3X5B.js";
|
|
22
22
|
import {
|
|
23
23
|
logInfo
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-36ANNINB.js";
|
|
25
25
|
|
|
26
26
|
// src/chat/sandbox/snapshot/runtime.ts
|
|
27
27
|
var SANDBOX_RUNTIME = "node22";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
toCanonicalInputMessage,
|
|
4
4
|
toCanonicalOutputMessage,
|
|
5
5
|
toGenAiMessagesTraceAttributes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O6KWHWGM.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-36ANNINB.js";
|
|
15
15
|
|
|
16
16
|
// src/chat/services/provider-error.ts
|
|
17
17
|
var ProviderError = class extends Error {
|
|
@@ -733,6 +733,12 @@ var workspaceSnapshotSchema = z7.object({
|
|
|
733
733
|
generatedAt: z7.iso.datetime(),
|
|
734
734
|
buildDurationMs: z7.number().int().nonnegative()
|
|
735
735
|
}).strict();
|
|
736
|
+
var baselineSnapshotSchema = z7.object({
|
|
737
|
+
id: z7.string(),
|
|
738
|
+
generatedAt: z7.iso.datetime(),
|
|
739
|
+
buildDurationMs: z7.number().int().nonnegative(),
|
|
740
|
+
dependencyCount: z7.number().int().nonnegative()
|
|
741
|
+
}).strict();
|
|
736
742
|
var workspaceSchema = z7.object({
|
|
737
743
|
id: z7.string().uuid(),
|
|
738
744
|
name: z7.string(),
|
|
@@ -740,7 +746,10 @@ var workspaceSchema = z7.object({
|
|
|
740
746
|
repos: z7.array(workspaceRepoSchema),
|
|
741
747
|
snapshot: workspaceSnapshotSchema.nullable()
|
|
742
748
|
}).strict();
|
|
743
|
-
var workspaceListSchema = z7.object({
|
|
749
|
+
var workspaceListSchema = z7.object({
|
|
750
|
+
baselineSnapshot: baselineSnapshotSchema.nullable(),
|
|
751
|
+
workspaces: z7.array(workspaceSchema)
|
|
752
|
+
}).strict();
|
|
744
753
|
var workspaceBodySchema = z7.object({
|
|
745
754
|
name: z7.string(),
|
|
746
755
|
setupScript: z7.string().optional(),
|
|
@@ -908,6 +917,7 @@ export {
|
|
|
908
917
|
taskRunSchema,
|
|
909
918
|
taskRunListSchema,
|
|
910
919
|
workspaceRepoSchema,
|
|
920
|
+
baselineSnapshotSchema,
|
|
911
921
|
workspaceSchema,
|
|
912
922
|
workspaceListSchema,
|
|
913
923
|
workspaceBodySchema,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IC2R5ZYK.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService,
|
|
6
6
|
getPersistedSandboxState,
|
|
7
7
|
getPersistedThreadState,
|
|
8
8
|
persistThreadStateById
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DL4L7BBJ.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-B547UCF7.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-YPLOMUS4.js";
|
|
30
30
|
import {
|
|
31
31
|
getConversationEventStore,
|
|
32
32
|
getConversationStore,
|
|
33
33
|
getSqlExecutor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6MG6K3YZ.js";
|
|
35
35
|
import {
|
|
36
36
|
juniorAgentBindings,
|
|
37
37
|
juniorAgentInvocations
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-JW5SNARN.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/agent-invocations/work.ts
|
|
41
41
|
import { z } from "zod";
|