@sentry/junior 0.189.0 → 0.191.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-6QRYH6PX.js → agent-hooks-HIWWBBKO.js} +11 -11
- package/dist/api.js +27 -27
- package/dist/app.js +134 -152
- package/dist/{catalog-runtime-IETJLJFG.js → catalog-runtime-4OKH4265.js} +4 -4
- package/dist/chat/actor.d.ts +7 -2
- package/dist/chat/agent/resume.d.ts +0 -1
- package/dist/chat/agent/types.d.ts +0 -1
- package/dist/chat/agent-invocations/types.d.ts +44 -308
- package/dist/chat/event-tasks/tool-support.d.ts +1 -1
- package/dist/chat/providers/slack/runtime.d.ts +1 -2
- package/dist/chat/providers/slack/system-turn.d.ts +9 -4
- package/dist/chat/providers/slack/turn.d.ts +0 -1
- package/dist/chat/resource-events/actor.d.ts +2 -2
- package/dist/chat/services/turn-router.d.ts +1 -1
- package/dist/chat/slack/dispatch-turn.d.ts +0 -1
- package/dist/chat/slack/timestamp-param.d.ts +1 -1
- package/dist/chat/source.d.ts +3 -3
- package/dist/chat/task-execution/assistant-message.d.ts +7 -7
- package/dist/chat/task-execution/checkpoint.d.ts +0 -1
- package/dist/chat/task-execution/conversation-turn.d.ts +2 -2
- package/dist/chat/task-execution/mailbox-turn.d.ts +16 -6
- package/dist/chat/task-execution/state.d.ts +2 -5
- package/dist/chat/task-execution/store.d.ts +1 -2
- package/dist/chat/task-execution/turn-cursor.d.ts +10 -3
- package/dist/chat/task-execution/worker.d.ts +0 -1
- package/dist/chat/tools/types.d.ts +9 -2
- package/dist/{chunk-BYBSI5TI.js → chunk-2JAWOTUT.js} +2 -2
- package/dist/{chunk-WN6VLHOU.js → chunk-3PDR63SX.js} +30 -9
- package/dist/{chunk-SR6OMO5C.js → chunk-5IMKUVMS.js} +8 -11
- package/dist/{chunk-YYSEH2WC.js → chunk-6KISW5UY.js} +2 -2
- package/dist/{chunk-WDHPN2GH.js → chunk-7PYCRKQL.js} +3 -3
- package/dist/{chunk-YNZPOFF3.js → chunk-AWFSSFAX.js} +9 -11
- package/dist/{chunk-OEIITG5F.js → chunk-BVWC5DBM.js} +1 -1
- package/dist/{chunk-DYXVAO2E.js → chunk-BVYUIVXE.js} +1 -1
- package/dist/{chunk-WYDF6PGK.js → chunk-CCPOZMS4.js} +3 -3
- package/dist/{chunk-YYZNESC3.js → chunk-CECRMPXJ.js} +9 -8
- package/dist/{chunk-6AUR6PWR.js → chunk-CUUE5MGF.js} +3 -3
- package/dist/{chunk-MVPLEPSI.js → chunk-DP6H3U2X.js} +1 -1
- package/dist/{chunk-E3PDZPGV.js → chunk-EQZUBYRF.js} +1 -1
- package/dist/{chunk-PCPSX4ES.js → chunk-GQN4REF5.js} +14 -12
- package/dist/{chunk-AC7MDOJW.js → chunk-HNMRX2EN.js} +5 -5
- package/dist/{chunk-7R5JRPCY.js → chunk-K2NKG42A.js} +5 -5
- package/dist/{chunk-MFSET7Q7.js → chunk-KTW62MG5.js} +31 -13
- package/dist/{chunk-PY3EIEAF.js → chunk-L4JLLS6C.js} +1 -1
- package/dist/{chunk-CMWIMFM6.js → chunk-LOYTPSAK.js} +5 -5
- package/dist/{chunk-S3SGZUOI.js → chunk-MFZOIKET.js} +1 -1
- package/dist/{chunk-MI6ZBDTS.js → chunk-NK3UEKAW.js} +25 -10
- package/dist/{chunk-QNIOBNOY.js → chunk-NY5SJGJZ.js} +52 -46
- package/dist/{chunk-4RHJ3CXR.js → chunk-Q32BSFN4.js} +13 -12
- package/dist/{chunk-ZV6PFUA4.js → chunk-QRNJO7DZ.js} +1 -1
- package/dist/{chunk-KN32OWL2.js → chunk-RZS4F5K4.js} +3 -3
- package/dist/{chunk-CUYFCI4G.js → chunk-S7NSFCCW.js} +16 -13
- package/dist/{chunk-5VWAY27R.js → chunk-SEIZ2XLD.js} +1 -1
- package/dist/{chunk-MRXMFB4L.js → chunk-SGRL7NV6.js} +5 -5
- package/dist/{chunk-WWYUYKKV.js → chunk-TH6LMEOW.js} +1 -1
- package/dist/{chunk-WMUAKAIF.js → chunk-VGYZ3YZM.js} +85 -41
- package/dist/{chunk-ZUPDSJUE.js → chunk-WBNQYVCM.js} +2 -2
- package/dist/{chunk-GP32KD2J.js → chunk-WCSXTDOL.js} +1 -1
- package/dist/{chunk-O35GZCKL.js → chunk-WNIVCR74.js} +2 -2
- package/dist/{chunk-UCWO5MKP.js → chunk-X6PQKQTY.js} +5 -7
- package/dist/{chunk-5CXCGDIL.js → chunk-YNRLCUCB.js} +1 -1
- package/dist/{chunk-LHKZKAZ4.js → chunk-ZJRGWZZ2.js} +3 -3
- package/dist/{chunk-NY2F7BZA.js → chunk-ZNFNGDT7.js} +1 -1
- package/dist/{chunk-VKQWU4PO.js → chunk-ZRN3OS7M.js} +1 -1
- 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/agent-invocations.d.ts +18 -6
- package/dist/db/schema.d.ts +18 -6
- package/dist/{db-LPJKR2EO.js → db-LG4ZEWA3.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-DMXF4TTQ.js → oauth-callback-server-KI7ZRTOG.js} +29 -29
- package/dist/{runner-L5DPVYCN.js → runner-K2EOSAZQ.js} +21 -21
- package/dist/{skills-NXG3LBCK.js → skills-JTRDFKMA.js} +5 -5
- package/dist/spawn-SRBETYCF.js +42 -0
- package/dist/task-runner-INQIQ4VF.js +36 -0
- package/dist/{validation-CH36LTOS.js → validation-NBWURHAP.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-HBC5Y5VZ.js → work-35TBEAUI.js} +21 -21
- package/dist/{worker-5RDZHLXH.js → worker-F762M6XM.js} +10 -10
- package/package.json +6 -6
- package/dist/spawn-VRUIGKWW.js +0 -42
- package/dist/task-runner-7YTBSPXW.js +0 -36
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
AgentRunError,
|
|
6
6
|
executeTurn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CCPOZMS4.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-K2NKG42A.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveTurnSessionRouting,
|
|
21
21
|
scheduleSessionCompletedPluginTasks
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Q32BSFN4.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnLifecycle
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TH6LMEOW.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-SGRL7NV6.js";
|
|
34
34
|
import {
|
|
35
35
|
buildSentryConversationUrl,
|
|
36
36
|
deleteWebAuthorization
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZRN3OS7M.js";
|
|
38
38
|
import {
|
|
39
39
|
createUserTokenStore,
|
|
40
40
|
deleteMcpAuthSession,
|
|
@@ -43,8 +43,9 @@ import {
|
|
|
43
43
|
getMcpProviderErrorAttributes,
|
|
44
44
|
getMcpStoredOAuthCredentials,
|
|
45
45
|
lookupSlackUserProfile,
|
|
46
|
+
putMcpStoredOAuthCredentials,
|
|
46
47
|
resolvePluginOAuthAccount
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-CECRMPXJ.js";
|
|
48
49
|
import {
|
|
49
50
|
RetryableDeliveryError,
|
|
50
51
|
addReactionToMessage,
|
|
@@ -58,7 +59,7 @@ import {
|
|
|
58
59
|
removeReactionFromMessage,
|
|
59
60
|
resolveBaseUrl,
|
|
60
61
|
truncateStatusText
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-GQN4REF5.js";
|
|
62
63
|
import {
|
|
63
64
|
CooperativeTurnYieldError,
|
|
64
65
|
clearPendingAuth,
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
isCooperativeTurnYieldError,
|
|
68
69
|
isPendingAuthLatestRequest,
|
|
69
70
|
markTurnFailed
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-WCSXTDOL.js";
|
|
71
72
|
import {
|
|
72
73
|
TurnSliceLimitExceededError,
|
|
73
74
|
abandonTurnRecord,
|
|
@@ -87,20 +88,20 @@ import {
|
|
|
87
88
|
recordTurnSummary,
|
|
88
89
|
saveTurnCheckpoint,
|
|
89
90
|
turnHasReply
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KTW62MG5.js";
|
|
91
92
|
import {
|
|
92
93
|
parseSlackThreadId,
|
|
93
94
|
readSlackRawMessageContext,
|
|
94
95
|
resolveSlackChannelIdFromMessage,
|
|
95
96
|
resolveSlackChannelIdFromThreadId
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-DP6H3U2X.js";
|
|
97
98
|
import {
|
|
98
99
|
ensureConversationWake,
|
|
99
100
|
requestConversationWork
|
|
100
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3PDR63SX.js";
|
|
101
102
|
import {
|
|
102
103
|
getTurnRequestDeadline
|
|
103
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-MFZOIKET.js";
|
|
104
105
|
import {
|
|
105
106
|
getVercelConversationWorkQueue
|
|
106
107
|
} from "./chunk-DKIJ2RP5.js";
|
|
@@ -112,39 +113,39 @@ import {
|
|
|
112
113
|
getSlackClient,
|
|
113
114
|
isDmChannel,
|
|
114
115
|
normalizeSlackConversationId
|
|
115
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-NK3UEKAW.js";
|
|
116
117
|
import {
|
|
117
118
|
getConversationStore,
|
|
118
119
|
getSqlExecutor,
|
|
119
120
|
requireSlackDestination,
|
|
120
121
|
upsertIdentity,
|
|
121
122
|
upsertLinkedIdentity
|
|
122
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-S7NSFCCW.js";
|
|
123
124
|
import {
|
|
124
125
|
acquireActiveLock,
|
|
125
126
|
getStateAdapter
|
|
126
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-YNRLCUCB.js";
|
|
127
128
|
import {
|
|
128
129
|
botConfig,
|
|
129
130
|
escapeXml,
|
|
130
131
|
getChatConfig,
|
|
131
132
|
getRuntimeMetadata,
|
|
132
133
|
normalizeSlackEmojiName
|
|
133
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-2JAWOTUT.js";
|
|
134
135
|
import {
|
|
135
136
|
defaultModelId
|
|
136
137
|
} from "./chunk-D4YV5TDV.js";
|
|
137
138
|
import {
|
|
138
139
|
discoverSkills
|
|
139
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-6KISW5UY.js";
|
|
140
141
|
import {
|
|
141
142
|
pluginCatalogRuntime
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-EQZUBYRF.js";
|
|
143
144
|
import {
|
|
144
145
|
buildOAuthTokenRequest,
|
|
145
146
|
hasRequiredOAuthScope,
|
|
146
147
|
parseOAuthTokenResponse
|
|
147
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-QRNJO7DZ.js";
|
|
148
149
|
import {
|
|
149
150
|
createSlackResumeActor,
|
|
150
151
|
isUserActor,
|
|
@@ -163,7 +164,7 @@ import {
|
|
|
163
164
|
setTags,
|
|
164
165
|
toOptionalString,
|
|
165
166
|
withLogContext
|
|
166
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-L4JLLS6C.js";
|
|
167
168
|
|
|
168
169
|
// src/chat/slack/assistant-thread/status-render.ts
|
|
169
170
|
var DEFAULT_STATUS_CONTEXTS = {
|
|
@@ -1268,7 +1269,7 @@ function buildResumedRun(args, statusSession, delivery) {
|
|
|
1268
1269
|
...savedRun.instruction ?? { text: args.messageText },
|
|
1269
1270
|
text: args.messageText
|
|
1270
1271
|
},
|
|
1271
|
-
source: source.
|
|
1272
|
+
source: source.kind === "slack" ? {
|
|
1272
1273
|
...source,
|
|
1273
1274
|
channelId: args.channelId,
|
|
1274
1275
|
...args.threadTs ? { threadTs: args.threadTs } : void 0
|
|
@@ -1416,15 +1417,13 @@ async function resumeSlackTurnInContext(args) {
|
|
|
1416
1417
|
const deliveryState2 = await getDeliveryConversation();
|
|
1417
1418
|
let slackMessageTs = [];
|
|
1418
1419
|
try {
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1420
|
+
slackMessageTs = await sendSlackReply({
|
|
1421
|
+
channelId: runArgs.channelId,
|
|
1422
|
+
conversationId: runArgs.conversationId,
|
|
1423
|
+
replyAttribution: runArgs.run?.dispatch?.replyAttribution,
|
|
1424
|
+
text,
|
|
1425
|
+
threadTs: runArgs.threadTs
|
|
1426
|
+
});
|
|
1428
1427
|
} catch (error) {
|
|
1429
1428
|
if (isRetryableSlackPostError(error)) {
|
|
1430
1429
|
throw new RetryableDeliveryError(error);
|
|
@@ -2033,6 +2032,7 @@ async function resumeAuthorizedMcpTurn(args) {
|
|
|
2033
2032
|
let actor;
|
|
2034
2033
|
try {
|
|
2035
2034
|
actor = createSlackResumeActor({
|
|
2035
|
+
actor: lockedSessionRecord.actor,
|
|
2036
2036
|
teamId: destination.teamId,
|
|
2037
2037
|
userId: authSession.userId
|
|
2038
2038
|
});
|
|
@@ -2178,7 +2178,7 @@ async function isCurrentMcpAuthorizationAttempt(authSession, provider) {
|
|
|
2178
2178
|
return pendingAuth?.authSessionId === authSession.authSessionId && pendingAuth.sessionId === authSession.sessionId;
|
|
2179
2179
|
}
|
|
2180
2180
|
function mcpConversationId(authSession) {
|
|
2181
|
-
if (authSession.destination?.platform === "local" || authSession.source?.
|
|
2181
|
+
if (authSession.destination?.platform === "local" || authSession.source?.kind === "web") {
|
|
2182
2182
|
return authSession.conversationId;
|
|
2183
2183
|
}
|
|
2184
2184
|
if (authSession.channelId && authSession.threadTs) {
|
|
@@ -2221,6 +2221,45 @@ async function GET(request, provider, waitUntil, options) {
|
|
|
2221
2221
|
return htmlResponse("missing_state");
|
|
2222
2222
|
}
|
|
2223
2223
|
if (error) {
|
|
2224
|
+
try {
|
|
2225
|
+
const pendingSession = await getMcpAuthSession(state);
|
|
2226
|
+
if (pendingSession && pendingSession.provider === provider) {
|
|
2227
|
+
try {
|
|
2228
|
+
await runCurrentMcpCredentialMutation(
|
|
2229
|
+
pendingSession,
|
|
2230
|
+
provider,
|
|
2231
|
+
async () => {
|
|
2232
|
+
const credentials = await getMcpStoredOAuthCredentials(
|
|
2233
|
+
pendingSession.userId,
|
|
2234
|
+
provider
|
|
2235
|
+
);
|
|
2236
|
+
if (!credentials?.clientInformation && !credentials?.discoveryState) {
|
|
2237
|
+
return;
|
|
2238
|
+
}
|
|
2239
|
+
const nextCredentials = credentials.tokens ? { tokens: credentials.tokens } : {};
|
|
2240
|
+
await putMcpStoredOAuthCredentials(
|
|
2241
|
+
pendingSession.userId,
|
|
2242
|
+
provider,
|
|
2243
|
+
nextCredentials
|
|
2244
|
+
);
|
|
2245
|
+
}
|
|
2246
|
+
);
|
|
2247
|
+
} catch (cleanupError) {
|
|
2248
|
+
if (!(cleanupError instanceof McpOAuthAttemptExpiredError)) {
|
|
2249
|
+
logException(
|
|
2250
|
+
cleanupError,
|
|
2251
|
+
"mcp.oauth_callback.provider_error_cleanup.failed",
|
|
2252
|
+
{ "app.credential.provider": provider }
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
await deleteMcpAuthSession(pendingSession.authSessionId);
|
|
2257
|
+
}
|
|
2258
|
+
} catch (cleanupError) {
|
|
2259
|
+
logException(cleanupError, "mcp.oauth_callback.provider_error_cleanup.failed", {
|
|
2260
|
+
"app.credential.provider": provider
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2224
2263
|
return htmlResponse("provider_error");
|
|
2225
2264
|
}
|
|
2226
2265
|
if (!code) {
|
|
@@ -2274,7 +2313,7 @@ async function GET(request, provider, waitUntil, options) {
|
|
|
2274
2313
|
"app.credential.provider": provider
|
|
2275
2314
|
});
|
|
2276
2315
|
}
|
|
2277
|
-
if (authSession.source?.
|
|
2316
|
+
if (authSession.source?.kind === "web" && authSession.destination) {
|
|
2278
2317
|
waitUntil(async () => {
|
|
2279
2318
|
const turn = await getTurnRecord(
|
|
2280
2319
|
authSession.conversationId,
|
|
@@ -2319,7 +2358,7 @@ async function GET(request, provider, waitUntil, options) {
|
|
|
2319
2358
|
return htmlResponse("success", {
|
|
2320
2359
|
// Web roots keep a local destination for conversation-only delivery.
|
|
2321
2360
|
// Only the CLI path should get the local-client success copy.
|
|
2322
|
-
local: authSession.destination?.platform === "local" && authSession.source?.
|
|
2361
|
+
local: authSession.destination?.platform === "local" && authSession.source?.kind !== "web"
|
|
2323
2362
|
});
|
|
2324
2363
|
} catch (callbackError) {
|
|
2325
2364
|
if (callbackError instanceof McpOAuthAttemptExpiredError) {
|
|
@@ -2391,12 +2430,16 @@ async function connectedOAuthTokens(userId, plugin, userTokenStore) {
|
|
|
2391
2430
|
return void 0;
|
|
2392
2431
|
}
|
|
2393
2432
|
async function hasConnectedMcpAccount(userId, plugin) {
|
|
2394
|
-
if (plugin.manifest.mcp) {
|
|
2395
|
-
return
|
|
2396
|
-
(await getMcpStoredOAuthCredentials(userId, plugin.manifest.name))?.tokens
|
|
2397
|
-
);
|
|
2433
|
+
if (!plugin.manifest.mcp) {
|
|
2434
|
+
return false;
|
|
2398
2435
|
}
|
|
2399
|
-
|
|
2436
|
+
const credentials = await getMcpStoredOAuthCredentials(
|
|
2437
|
+
userId,
|
|
2438
|
+
plugin.manifest.name
|
|
2439
|
+
);
|
|
2440
|
+
return Boolean(
|
|
2441
|
+
credentials?.tokens || credentials?.clientInformation || credentials?.discoveryState
|
|
2442
|
+
);
|
|
2400
2443
|
}
|
|
2401
2444
|
async function buildHomeView(userId, userTokenStore) {
|
|
2402
2445
|
const runtimeMetadata = getRuntimeMetadata();
|
|
@@ -2694,6 +2737,7 @@ async function resumeOAuthSessionRecordTurn(stored, options) {
|
|
|
2694
2737
|
let actor;
|
|
2695
2738
|
try {
|
|
2696
2739
|
actor = createSlackResumeActor({
|
|
2740
|
+
actor: lockedSessionRecord.actor,
|
|
2697
2741
|
teamId: destination.teamId,
|
|
2698
2742
|
userId: lockedUserMessage.author.userId
|
|
2699
2743
|
});
|
|
@@ -3045,7 +3089,7 @@ async function GET2(request, provider, waitUntil, options) {
|
|
|
3045
3089
|
{ "app.credential.provider": provider }
|
|
3046
3090
|
);
|
|
3047
3091
|
}
|
|
3048
|
-
if (stored.destination?.platform !== "local" && stored.source?.
|
|
3092
|
+
if (stored.destination?.platform !== "local" && stored.source?.kind !== "web") {
|
|
3049
3093
|
waitUntil(async () => {
|
|
3050
3094
|
try {
|
|
3051
3095
|
await publishAppHomeView(
|
|
@@ -3058,7 +3102,7 @@ async function GET2(request, provider, waitUntil, options) {
|
|
|
3058
3102
|
});
|
|
3059
3103
|
}
|
|
3060
3104
|
const resumesWebTurn = Boolean(
|
|
3061
|
-
stored.source?.
|
|
3105
|
+
stored.source?.kind === "web" && stored.destination && stored.resumeConversationId && stored.resumeSessionId
|
|
3062
3106
|
);
|
|
3063
3107
|
const resumesAgentTurn = Boolean(
|
|
3064
3108
|
stored.destination?.platform !== "local" && stored.resumeConversationId && stored.resumeSessionId
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAndEnqueueAgentInvocation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AWFSSFAX.js";
|
|
4
4
|
import {
|
|
5
5
|
actorFromRun,
|
|
6
6
|
toolInvocationDestination
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GQN4REF5.js";
|
|
8
8
|
|
|
9
9
|
// src/chat/agent-invocations/spawn.ts
|
|
10
10
|
function bindSpawnAgent(run, options) {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-PDO5BLNM.js";
|
|
4
4
|
import {
|
|
5
5
|
botConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2JAWOTUT.js";
|
|
7
7
|
import {
|
|
8
8
|
logWarn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L4JLLS6C.js";
|
|
10
10
|
|
|
11
11
|
// src/chat/conversations/structured-events.ts
|
|
12
12
|
import {
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
releaseConversationWork,
|
|
20
20
|
requestAnotherSlice,
|
|
21
21
|
startConversationWork
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3PDR63SX.js";
|
|
23
23
|
import {
|
|
24
24
|
getTurnRequestDeadline
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MFZOIKET.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-2JAWOTUT.js";
|
|
33
33
|
import {
|
|
34
34
|
logException,
|
|
35
35
|
logInfo,
|
|
36
36
|
logWarn,
|
|
37
37
|
withLogContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-L4JLLS6C.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/task-execution/worker.ts
|
|
41
41
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -49,7 +49,7 @@ function selectContiguousTurnBatch(messages) {
|
|
|
49
49
|
return [];
|
|
50
50
|
}
|
|
51
51
|
const nextTurnIndex = messages.findIndex(
|
|
52
|
-
(message) => message.input.authorId !== first.input.authorId || message.
|
|
52
|
+
(message) => message.input.authorId !== first.input.authorId || message.source !== first.source
|
|
53
53
|
);
|
|
54
54
|
return messages.slice(
|
|
55
55
|
0,
|
|
@@ -457,7 +457,6 @@ async function processConversationWorkInContext(message, options) {
|
|
|
457
457
|
attemptMessageIds = attemptMessages.map(
|
|
458
458
|
(message2) => message2.inboundMessageId
|
|
459
459
|
);
|
|
460
|
-
const publishExternally = attemptMessages[0]?.publishExternally ?? false;
|
|
461
460
|
attemptSelectedMessageIds = new Set(attemptMessageIds);
|
|
462
461
|
const ack = async () => {
|
|
463
462
|
const acknowledged = await ackMessages({
|
|
@@ -494,7 +493,6 @@ async function processConversationWorkInContext(message, options) {
|
|
|
494
493
|
},
|
|
495
494
|
conversationId,
|
|
496
495
|
destination,
|
|
497
|
-
publishExternally,
|
|
498
496
|
shouldYield,
|
|
499
497
|
stopSignal: stop.signal,
|
|
500
498
|
checkIn
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S7NSFCCW.js";
|
|
4
4
|
import {
|
|
5
5
|
juniorConversations,
|
|
6
6
|
juniorTaskExecutions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SEIZ2XLD.js";
|
|
8
8
|
import {
|
|
9
9
|
logWarn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L4JLLS6C.js";
|
|
11
11
|
|
|
12
12
|
// src/chat/tasks/execution-stats.ts
|
|
13
13
|
import {
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-NY5SJGJZ.js";
|
|
4
|
+
import "../chunk-HNMRX2EN.js";
|
|
5
5
|
import "../chunk-6Y5B5PEX.js";
|
|
6
6
|
import "../chunk-DIB4GX3G.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-CECRMPXJ.js";
|
|
8
8
|
import {
|
|
9
9
|
createAgentRunner
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-GQN4REF5.js";
|
|
11
|
+
import "../chunk-WCSXTDOL.js";
|
|
12
|
+
import "../chunk-KTW62MG5.js";
|
|
13
13
|
import "../chunk-2LYHWMR4.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-LOYTPSAK.js";
|
|
15
|
+
import "../chunk-DP6H3U2X.js";
|
|
16
|
+
import "../chunk-3PDR63SX.js";
|
|
17
17
|
import "../chunk-DA2KGZZI.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-WNIVCR74.js";
|
|
19
|
+
import "../chunk-CUUE5MGF.js";
|
|
20
20
|
import "../chunk-PDO5BLNM.js";
|
|
21
21
|
import "../chunk-UIE3R5XU.js";
|
|
22
22
|
import "../chunk-X6GDDWQH.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-MFZOIKET.js";
|
|
24
24
|
import "../chunk-DKIJ2RP5.js";
|
|
25
25
|
import "../chunk-JAL3CH4G.js";
|
|
26
26
|
import "../chunk-7H2VZTWN.js";
|
|
27
27
|
import {
|
|
28
28
|
loadAppPluginSet
|
|
29
29
|
} from "../chunk-Y2CM7HXH.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-NK3UEKAW.js";
|
|
31
31
|
import "../chunk-3Y47VMHV.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-S7NSFCCW.js";
|
|
33
|
+
import "../chunk-SEIZ2XLD.js";
|
|
34
|
+
import "../chunk-7PYCRKQL.js";
|
|
35
|
+
import "../chunk-YNRLCUCB.js";
|
|
36
36
|
import "../chunk-GFBR4S3Q.js";
|
|
37
37
|
import "../chunk-VFUK3X5B.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-2JAWOTUT.js";
|
|
39
39
|
import "../chunk-D4YV5TDV.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-BVYUIVXE.js";
|
|
41
|
+
import "../chunk-6KISW5UY.js";
|
|
42
|
+
import "../chunk-EQZUBYRF.js";
|
|
43
|
+
import "../chunk-QRNJO7DZ.js";
|
|
44
44
|
import "../chunk-CEMMLV5L.js";
|
|
45
45
|
import "../chunk-N7TMSOZH.js";
|
|
46
46
|
import "../chunk-DWPN6SCH.js";
|
|
47
47
|
import "../chunk-TXKUKMVO.js";
|
|
48
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-L4JLLS6C.js";
|
|
49
49
|
import "../chunk-PEQXYSSE.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-ZNFNGDT7.js";
|
|
51
51
|
|
|
52
52
|
// src/cli/chat.ts
|
|
53
53
|
import {
|
|
@@ -169,10 +169,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
169
169
|
databaseModule
|
|
170
170
|
] = await Promise.all([
|
|
171
171
|
import("../plugins-YTYJMMJF.js"),
|
|
172
|
-
import("../agent-hooks-
|
|
173
|
-
import("../catalog-runtime-
|
|
174
|
-
import("../validation-
|
|
175
|
-
import("../db-
|
|
172
|
+
import("../agent-hooks-HIWWBBKO.js"),
|
|
173
|
+
import("../catalog-runtime-4OKH4265.js"),
|
|
174
|
+
import("../validation-NBWURHAP.js"),
|
|
175
|
+
import("../db-LG4ZEWA3.js")
|
|
176
176
|
]);
|
|
177
177
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
178
178
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -238,14 +238,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
238
238
|
await configureLocalChatPlugins(pluginSet);
|
|
239
239
|
const { setExperimentalFeatures } = await import("../experimental-P5FZM4CU.js");
|
|
240
240
|
setExperimentalFeatures({ subagents: true });
|
|
241
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
242
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
241
|
+
const { runLocalAgentTurn } = await import("../runner-K2EOSAZQ.js");
|
|
242
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-KI7ZRTOG.js");
|
|
243
243
|
const { createLocalOAuthState } = await import("../oauth-relay-5XPVRPYB.js");
|
|
244
244
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-FIL7EGPR.js");
|
|
245
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
246
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
245
|
+
const { bindSpawnAgent } = await import("../spawn-SRBETYCF.js");
|
|
246
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-35TBEAUI.js");
|
|
247
247
|
const { createLocalConversationWork } = await import("../conversation-work-VIOQ5ZF3.js");
|
|
248
|
-
const { processConversationWork } = await import("../worker-
|
|
248
|
+
const { processConversationWork } = await import("../worker-F762M6XM.js");
|
|
249
249
|
let agentRunner;
|
|
250
250
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
251
251
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6KISW5UY.js";
|
|
4
|
+
import "../chunk-EQZUBYRF.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-QRNJO7DZ.js";
|
|
9
9
|
import "../chunk-CEMMLV5L.js";
|
|
10
10
|
import "../chunk-N7TMSOZH.js";
|
|
11
11
|
import "../chunk-DWPN6SCH.js";
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
15
15
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
16
16
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-L4JLLS6C.js";
|
|
18
18
|
import "../chunk-PEQXYSSE.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-ZNFNGDT7.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/check.ts
|
|
22
22
|
import fs from "fs/promises";
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-BVWC5DBM.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,30 +14,30 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-NK3UEKAW.js";
|
|
18
18
|
import "../chunk-3Y47VMHV.js";
|
|
19
19
|
import {
|
|
20
20
|
getDb
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-S7NSFCCW.js";
|
|
22
|
+
import "../chunk-SEIZ2XLD.js";
|
|
23
|
+
import "../chunk-7PYCRKQL.js";
|
|
24
|
+
import "../chunk-YNRLCUCB.js";
|
|
25
25
|
import "../chunk-GFBR4S3Q.js";
|
|
26
26
|
import "../chunk-VFUK3X5B.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2JAWOTUT.js";
|
|
28
28
|
import "../chunk-D4YV5TDV.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-BVYUIVXE.js";
|
|
30
30
|
import {
|
|
31
31
|
pluginCatalogRuntime
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-EQZUBYRF.js";
|
|
33
|
+
import "../chunk-QRNJO7DZ.js";
|
|
34
34
|
import "../chunk-CEMMLV5L.js";
|
|
35
35
|
import "../chunk-N7TMSOZH.js";
|
|
36
36
|
import "../chunk-DWPN6SCH.js";
|
|
37
37
|
import "../chunk-TXKUKMVO.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-L4JLLS6C.js";
|
|
39
39
|
import "../chunk-PEQXYSSE.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-ZNFNGDT7.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/plugins.ts
|
|
43
43
|
import { stderr as defaultStderr, stdout as defaultStdout } from "process";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolve
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CUUE5MGF.js";
|
|
4
4
|
import {
|
|
5
5
|
create
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-7PYCRKQL.js";
|
|
7
7
|
import {
|
|
8
8
|
disconnectStateAdapter
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-YNRLCUCB.js";
|
|
10
|
+
import "../chunk-2JAWOTUT.js";
|
|
11
11
|
import "../chunk-D4YV5TDV.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-BVYUIVXE.js";
|
|
13
13
|
import {
|
|
14
14
|
pluginCatalogRuntime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-EQZUBYRF.js";
|
|
16
|
+
import "../chunk-QRNJO7DZ.js";
|
|
17
17
|
import "../chunk-CEMMLV5L.js";
|
|
18
18
|
import "../chunk-N7TMSOZH.js";
|
|
19
19
|
import "../chunk-DWPN6SCH.js";
|
|
20
20
|
import "../chunk-TXKUKMVO.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-L4JLLS6C.js";
|
|
22
22
|
import "../chunk-PEQXYSSE.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZNFNGDT7.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-create.ts
|
|
26
26
|
var DEFAULT_RUNTIME = "node22";
|