@sentry/junior 0.238.1 → 0.240.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/{admin-leAJ2k0P.js → admin-D6fRPRgC.js} +1 -1
- package/dist/{agent-hooks-p3UA9FI1.js → agent-hooks-JFbgedMZ.js} +116 -10
- package/dist/{agent-runner-DjQSEVuD.js → agent-runner-0IjJxsL1.js} +60 -121
- package/dist/api/schema.d.ts +43 -4
- package/dist/api/schema.js +2 -2
- package/dist/api.d.ts +1 -1
- package/dist/api.js +21 -20
- package/dist/{app-FB2hmHpZ.d.ts → app-MEd7wbF0.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +24 -23
- package/dist/{automation-CrQGQ2MT.js → automation-B5_c8hEb.js} +2 -253
- package/dist/{briefs-mzUaJkBX.js → briefs-BGWTp-nz.js} +2 -2
- package/dist/cadence-D00SCzT1.js +256 -0
- package/dist/{catalog-runtime-xq-njrMs.js → catalog-runtime-DdigNl7s.js} +1 -1
- package/dist/{checkpoint-C37Xgtj-.js → checkpoint-C1ZnSz7r.js} +15 -11
- package/dist/cli/chat.js +12 -12
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-BZdqKg6S.js → client-Cn73E7br.js} +2 -2
- package/dist/{config-CGK_VplU.js → config-B0S86yw9.js} +2 -2
- package/dist/{conversation-privacy-Ci3QLNOb.js → conversation-privacy-BKlX7D_R.js} +1 -1
- package/dist/{credential-sync-BBeYpK4k.js → credential-sync-DeNQm7st.js} +14 -14
- package/dist/{db-CWZP77Ex.d.ts → db-Ca9Nt5ci.d.ts} +1 -1
- package/dist/{executor-DmIad4GI.js → executor-BQ-A5nov.js} +2 -2
- package/dist/{images-1xUjTHGf.js → images-C7OKd6uy.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-CXpx6KfD.js → job-queue-DgXLqoeB.js} +1 -1
- package/dist/{logging-Bne7JUXI.js → logging-BSNF167N.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-authorization-O8N3knp9.js → oauth-authorization-BM7g61od.js} +1 -1
- package/dist/{oauth-callback-server-Cb-HPZPS.js → oauth-callback-server-Dw-BwI6x.js} +2 -2
- package/dist/{pending-auth-C6w4Gwve.js → pending-auth-Chn_EA1_.js} +2 -2
- package/dist/{profile-DIcHBAxe.js → profile-3t9H_IwL.js} +4 -4
- package/dist/{registry-VSrEYeaD.js → registry-DLZlAhdP.js} +1 -1
- package/dist/{resolve-BkpWmZgN.js → resolve-9_cIPQsq.js} +2 -2
- package/dist/{runner-52ezCnZF.js → runner-C_eUbFyp.js} +9 -9
- package/dist/{sandbox-egress-signals-Cmhf3P6Y.js → sandbox-egress-signals-C1ycxTNA.js} +1 -1
- package/dist/{schema-CxWAN2zq.js → schema-C4XwHTY4.js} +1 -1
- package/dist/{skills-PHvy-ZgH.js → skills-Dqgjr_Tl.js} +2 -2
- package/dist/{spawn-CY34_HCm.js → spawn-BfEr3t7b.js} +2 -2
- package/dist/{store-BxxbxBlm.d.ts → store-DoewL5mG.d.ts} +0 -7
- package/dist/{task-queue-B9uJqkal.js → task-queue-CuFZDOXn.js} +3 -3
- package/dist/{task-runner-BZUoctJ1.js → task-runner-c7gwV8dj.js} +10 -10
- package/dist/{thread-state-SnFcB9Rk.js → thread-state-exTu-G1w.js} +6 -6
- package/dist/{turn-failure-response-CrSc1Vtn.js → turn-failure-response-DFp99ziF.js} +8 -8
- package/dist/{turn-lifecycle-D49hJbjm.js → turn-lifecycle-C4TjuOzG.js} +1 -1
- package/dist/{turn-session-routing-cMvumCLK.js → turn-session-routing-Vpg8jUD1.js} +1 -1
- package/dist/{validation-DsLyiOfn.js → validation-D2lULEG9.js} +1 -1
- package/dist/{version-Dayi_ng2.js → version-BjBMCc2o.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DF3HTfW5.js → viewer-XE3nFqKM.js} +9 -11
- package/dist/{web-authorization-Dg_R1tMc.js → web-authorization-8E8IrWOj.js} +6 -6
- package/dist/{web-input-qVi8134S.js → web-input-DF4GGJrf.js} +28 -44
- package/dist/{work-BbcghZZp.js → work-Dt_JjfbX.js} +7 -7
- package/dist/{worker-B-uRQzKw.js → worker-BrbnLmD3.js} +5 -5
- package/package.json +5 -5
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as escapeXml, i as completeText, r as completeObject, v as isProviderRetryError } from "./client-
|
|
3
|
-
import { C as withLogContext, I as isRecord, L as toOptionalNumber, R as toOptionalString, _ as setSentryUser, b as setTags, d as logException, f as logInfo, n as createChatSdkLogger, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, u as logError, v as setSpanAttributes, w as withSpan } from "./logging-
|
|
4
|
-
import { c as getSlackClientSecret, i as getChatConfig, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName } from "./config-
|
|
1
|
+
import { A as resolveSlackChannelIdFromMessage, B as readScheduledAutomation, C as renderBlockText, Cn as normalizeSlackStatusText, Ct as getEventCatalog, D as storeAttachment, Dn as postSlackMessage, Dt as appendAndEnqueueExclusiveInboundMessage, En as addReactionToMessage, H as saveScheduledAutomationInLock, In as AuthorizationFlowDisabledError, J as effectiveTaskOutcomes, Ln as shouldEmitDevAgentTrace, M as getConversationInfo, Mn as buildSteeringPiMessage, N as listThreadReplies, Nn as RetryableDeliveryError, O as parseSlackThreadId, On as removeReactionFromMessage, Ot as appendAndEnqueueInboundMessage, Q as eventAutomationBelongsToUser, S as renderAttachmentText, Sn as normalizeSlackReplyMarkdown, St as timerWatchCredentialSubject, Tn as truncateStatusText, Tt as pluginEventCatalog, Vt as getConversationWorkState, W as withScheduledAutomationLock, Z as deleteEventAutomation, a as buildAuthPauseResponse, an as maybePostAutomatedTurnLimitNotice, at as automationDefinition, bn as escapeSlackMrkdwnText, bt as EVENT_WAIT_MS, ct as sameDefinitionValue, et as getEventAutomation, h as latestProgressStatus, j as resolveSlackChannelIdFromThreadId, jn as createUserTokenStore, k as readSlackRawMessageContext, m as PluginCredentialFailureError, n as executeAgentRun, nt as parseEventAutomationRow, on as recordFinishedTurnForAutomatedLimit, ot as listAutomationVersions, q as eventAutomationTriggerAvailable, r as createContextCompactor, t as createAgentRunner, tt as listDeletedEventAutomationsCreatedBy, xn as formatSlackLink, xt as isEventMailboxMetadata, z as parseScheduledAutomationRow } from "./agent-runner-0IjJxsL1.js";
|
|
2
|
+
import { f as escapeXml, i as completeText, r as completeObject, v as isProviderRetryError } from "./client-Cn73E7br.js";
|
|
3
|
+
import { C as withLogContext, I as isRecord, L as toOptionalNumber, R as toOptionalString, _ as setSentryUser, b as setTags, d as logException, f as logInfo, n as createChatSdkLogger, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, u as logError, v as setSpanAttributes, w as withSpan } from "./logging-BSNF167N.js";
|
|
4
|
+
import { c as getSlackClientSecret, i as getChatConfig, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName } from "./config-B0S86yw9.js";
|
|
5
5
|
import { o as modelIdForProfile, r as defaultModelId } from "./model-profile-BwU8mqwD.js";
|
|
6
6
|
import { a as isUserActor, g as parseSlackMessageTs, i as isActorUserId, l as parseSlackChannelId, n as createSlackActor, o as parseActorUserId, r as createSlackResumeActor, t as createActor } from "./actor-BTtLaeWy.js";
|
|
7
|
-
import {
|
|
7
|
+
import { M as createSlackDestination, P as requireSlackDestination, c as getConversationEventStore, d as getDb, f as getSqlExecutor, u as getConversationStore } from "./viewer-XE3nFqKM.js";
|
|
8
8
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
9
|
-
import { O as juniorIdentities, c as juniorAutomationExecutions, k as juniorUsers, o as juniorSchedulerTasks, u as juniorEventAutomations } from "./executor-
|
|
9
|
+
import { O as juniorIdentities, c as juniorAutomationExecutions, k as juniorUsers, o as juniorSchedulerTasks, u as juniorEventAutomations } from "./executor-BQ-A5nov.js";
|
|
10
10
|
import { f as instructionProvenanceFor } from "./history-BLTUgFYO.js";
|
|
11
|
-
import { d as credentialContextForActor } from "./registry-
|
|
12
|
-
import { $ as resolveConversationTitle, A as commitAcceptedReply, G as recordSubscribedReplyRoute, N as loadConversationProjection, O as trimTrailingAssistantMessages, P as loadProjection, Q as persistConversationMessageSummaries, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, a as completeTurnRecord, at as createConversationMemoryService, c as listTurnSummaries, ct as isHumanConversationMessage, dt as recordDeliveredAssistantMessage, ft as turnHasReply, i as abandonTurnRecord, it as buildConversationContext, j as commitMessages, l as recordTurnSummary, lt as markConversationMessage, n as loadTurnCheckpoint, o as failTurnRecord, ot as estimateConversationContextTokens, p as buildTurnErrorResponse, pt as upsertConversationMessage, r as saveTurnCheckpoint, rt as appendThreadContextMessages, s as getTurnRecord, st as getConversationMessageSlackTs, tt as fallbackShortTitle, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-
|
|
13
|
-
import { Ft as getSlackFileId, Lt as readAttachmentVisionSummary, Pt as buildSentryConversationUrl, Rt as recordSlackAttachment, at as getSlackClient, ct as normalizeSlackConversationId, et as verifyTimerWatchCredentialSubject, ht as getDashboardObjectIconLink, it as getHeaderString, lt as runWithSlackInstallationToken, mt as getDashboardConversationLink, nt as downloadPrivateSlackFile, o as getPluginSlackConversationLink, pt as JUNIOR_THREAD_STATE_TTL_MS, st as isDmChannel, tt as SlackActionError, z as cancelSubscriptions } from "./agent-hooks-
|
|
11
|
+
import { d as credentialContextForActor } from "./registry-DLZlAhdP.js";
|
|
12
|
+
import { $ as resolveConversationTitle, A as commitAcceptedReply, G as recordSubscribedReplyRoute, N as loadConversationProjection, O as trimTrailingAssistantMessages, P as loadProjection, Q as persistConversationMessageSummaries, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, a as completeTurnRecord, at as createConversationMemoryService, c as listTurnSummaries, ct as isHumanConversationMessage, dt as recordDeliveredAssistantMessage, ft as turnHasReply, i as abandonTurnRecord, it as buildConversationContext, j as commitMessages, l as recordTurnSummary, lt as markConversationMessage, n as loadTurnCheckpoint, o as failTurnRecord, ot as estimateConversationContextTokens, p as buildTurnErrorResponse, pt as upsertConversationMessage, r as saveTurnCheckpoint, rt as appendThreadContextMessages, s as getTurnRecord, st as getConversationMessageSlackTs, tt as fallbackShortTitle, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-C1ZnSz7r.js";
|
|
13
|
+
import { Ft as getSlackFileId, Kt as lookupSlackUser, Lt as readAttachmentVisionSummary, Pt as buildSentryConversationUrl, Rt as recordSlackAttachment, at as getSlackClient, ct as normalizeSlackConversationId, et as verifyTimerWatchCredentialSubject, ht as getDashboardObjectIconLink, it as getHeaderString, lt as runWithSlackInstallationToken, mt as getDashboardConversationLink, nt as downloadPrivateSlackFile, o as getPluginSlackConversationLink, pt as JUNIOR_THREAD_STATE_TTL_MS, st as isDmChannel, tt as SlackActionError, z as cancelSubscriptions } from "./agent-hooks-JFbgedMZ.js";
|
|
14
14
|
import { F as isVisionImageMediaType, N as readMessageAttachments } from "./conversation-DwD-vquD.js";
|
|
15
|
-
import { E as acquireActiveLock, O as withLock, T as MUTATION_LOCK_TTL_MS, w as getStateAdapter } from "./profile-
|
|
16
|
-
import { a as wasPendingAuthStopped, c as getThreadStopDecision, l as buildDeterministicAssistantMessageId, o as decideSubscribedThreadReply, r as clearPendingAuth, s as getSubscribedReplyPreflightDecision, u as buildDeterministicTurnId } from "./pending-auth-
|
|
17
|
-
import { _ as markTurnFailed, c as CooperativeTurnYieldError, d as getConversationTurnBoundaryError, f as isCooperativeTurnYieldError, g as markTurnCompleted, h as markTurnClosed, l as TurnInputCommitLostError, m as isTurnInputDeferredError, p as isTurnInputCommitLostError, r as getAssistantReplyText, s as ConversationTurnBoundaryError, u as TurnInputDeferredError, v as startActiveTurn } from "./oauth-authorization-
|
|
15
|
+
import { E as acquireActiveLock, O as withLock, T as MUTATION_LOCK_TTL_MS, w as getStateAdapter } from "./profile-3t9H_IwL.js";
|
|
16
|
+
import { a as wasPendingAuthStopped, c as getThreadStopDecision, l as buildDeterministicAssistantMessageId, o as decideSubscribedThreadReply, r as clearPendingAuth, s as getSubscribedReplyPreflightDecision, u as buildDeterministicTurnId } from "./pending-auth-Chn_EA1_.js";
|
|
17
|
+
import { _ as markTurnFailed, c as CooperativeTurnYieldError, d as getConversationTurnBoundaryError, f as isCooperativeTurnYieldError, g as markTurnCompleted, h as markTurnClosed, l as TurnInputCommitLostError, m as isTurnInputDeferredError, p as isTurnInputCommitLostError, r as getAssistantReplyText, s as ConversationTurnBoundaryError, u as TurnInputDeferredError, v as startActiveTurn } from "./oauth-authorization-BM7g61od.js";
|
|
18
18
|
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-CMU-B4FA.js";
|
|
19
|
-
import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-
|
|
20
|
-
import { l as automationListQuerySchema } from "./automation-
|
|
19
|
+
import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-DgXLqoeB.js";
|
|
20
|
+
import { l as automationListQuerySchema } from "./automation-B5_c8hEb.js";
|
|
21
21
|
import { r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
|
|
22
22
|
import { c as sumUtcHoursIntoSixHours, m as healthReportSchema, t as webMessageId } from "./web-message-id-xPI_EFSC.js";
|
|
23
|
-
import { C as readAutomationExecutionStatusDays, D as readAutomationRuns, E as readAutomationExecutions, S as readAutomationExecutionHours, T as readAutomationExecutionSummaries, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, b as readAutomationExecutionByConversationId, c as getDispatchInputMessageId, f as isTerminalDispatchStatus, g as markDispatchCompleted, h as markDispatchBlocked, i as claimDispatchMailboxAppend, l as getDispatchRecord, m as markDispatchAwaitingResume, n as scheduleSessionCompletedPluginTasks, s as getDispatchConversationId, t as processPluginTask, u as getDispatchTurnId, v as markDispatchRunning, w as readAutomationExecutionStatusHours, x as readAutomationExecutionDays, y as emptyAutomationRunWindows } from "./task-runner-
|
|
24
|
-
import { i as resolveAgentInvocationId, o as AgentRunError, s as executeTurn, t as createAgentInvocationWorker } from "./work-
|
|
25
|
-
import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
26
|
-
import { a as persistThreadState, c as configValueSchema, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-
|
|
27
|
-
import { a as getPausedTurnRequest, c as getTurnAuthorization, i as createPausedTurns, n as deleteWebAuthorization, s as wakePausedTurn, t as createWebAuthorization } from "./web-authorization-
|
|
28
|
-
import { n as resolveTurnSessionRouting } from "./turn-session-routing-
|
|
29
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
30
|
-
import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as getInterruptionMarker } from "./turn-failure-response-
|
|
31
|
-
import { r as storeInputImages } from "./images-
|
|
23
|
+
import { C as readAutomationExecutionStatusDays, D as readAutomationRuns, E as readAutomationExecutions, S as readAutomationExecutionHours, T as readAutomationExecutionSummaries, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, b as readAutomationExecutionByConversationId, c as getDispatchInputMessageId, f as isTerminalDispatchStatus, g as markDispatchCompleted, h as markDispatchBlocked, i as claimDispatchMailboxAppend, l as getDispatchRecord, m as markDispatchAwaitingResume, n as scheduleSessionCompletedPluginTasks, s as getDispatchConversationId, t as processPluginTask, u as getDispatchTurnId, v as markDispatchRunning, w as readAutomationExecutionStatusHours, x as readAutomationExecutionDays, y as emptyAutomationRunWindows } from "./task-runner-c7gwV8dj.js";
|
|
24
|
+
import { i as resolveAgentInvocationId, o as AgentRunError, s as executeTurn, t as createAgentInvocationWorker } from "./work-Dt_JjfbX.js";
|
|
25
|
+
import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-C4TjuOzG.js";
|
|
26
|
+
import { a as persistThreadState, c as configValueSchema, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-exTu-G1w.js";
|
|
27
|
+
import { a as getPausedTurnRequest, c as getTurnAuthorization, i as createPausedTurns, n as deleteWebAuthorization, s as wakePausedTurn, t as createWebAuthorization } from "./web-authorization-8E8IrWOj.js";
|
|
28
|
+
import { n as resolveTurnSessionRouting } from "./turn-session-routing-Vpg8jUD1.js";
|
|
29
|
+
import { t as bindSpawnAgent } from "./spawn-BfEr3t7b.js";
|
|
30
|
+
import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as getInterruptionMarker } from "./turn-failure-response-DFp99ziF.js";
|
|
31
|
+
import { r as storeInputImages } from "./images-C7OKd6uy.js";
|
|
32
32
|
import { z } from "zod";
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
34
34
|
import { and, asc, count, desc, eq, exists, inArray, ne, or, sql } from "drizzle-orm";
|
|
@@ -404,10 +404,11 @@ function renderSlackObjectCard(card, conversationId, surface = "preview") {
|
|
|
404
404
|
const title = card.title.slice(0, 160);
|
|
405
405
|
const details = surface === "details";
|
|
406
406
|
const deployment = card.objectType === "deployment" || card.objectType === "item" && card.facts?.type === "deployment";
|
|
407
|
-
const
|
|
407
|
+
const calendarEvent = card.objectType === "calendar_event";
|
|
408
|
+
const status = details || deployment || calendarEvent ? card.status : void 0;
|
|
408
409
|
const warning = details || deployment ? card.warning : void 0;
|
|
409
|
-
const facts = objectFactFields(card.facts).filter((field) => details || deployment && field.key === "environment");
|
|
410
|
-
const description = details ? card.description?.trim() ?? "" : descriptionPreview(card.description);
|
|
410
|
+
const facts = objectFactFields(card.facts).filter((field) => details || calendarEvent || deployment && field.key === "environment");
|
|
411
|
+
const description = details ? card.description?.trim() ?? "" : calendarEvent ? "" : descriptionPreview(card.description);
|
|
411
412
|
const text = [
|
|
412
413
|
escapeSlackMrkdwnText(type),
|
|
413
414
|
card.url ? formatSlackLink(card.url, title) : escapeSlackMrkdwnText(title),
|
|
@@ -6674,23 +6675,6 @@ function captureConversationTurnFailure(args) {
|
|
|
6674
6675
|
});
|
|
6675
6676
|
return typeof eventId === "string" ? eventId : void 0;
|
|
6676
6677
|
}
|
|
6677
|
-
/**
|
|
6678
|
-
* Reply in the thread started by a channel-level Conversation's first Message.
|
|
6679
|
-
* Automation runs post at the channel top level, so their Watches need this.
|
|
6680
|
-
*/
|
|
6681
|
-
async function resolveStartedThreadLocation(conversationId, location) {
|
|
6682
|
-
if (location?.provider !== "slack" || location.threadTs) return location;
|
|
6683
|
-
const threadTs = await getConversationStore().getFirstProviderConversationId({
|
|
6684
|
-
conversationId,
|
|
6685
|
-
provider: "slack",
|
|
6686
|
-
providerDestinationId: location.channelId,
|
|
6687
|
-
providerTenantId: location.teamId
|
|
6688
|
-
});
|
|
6689
|
-
return threadTs ? {
|
|
6690
|
-
...location,
|
|
6691
|
-
threadTs
|
|
6692
|
-
} : location;
|
|
6693
|
-
}
|
|
6694
6678
|
/** Return the saved timer creator subject when it is still valid here. */
|
|
6695
6679
|
function resumedTimerWatchCredentialSubject(conversationId, subject) {
|
|
6696
6680
|
if (subject?.binding.type !== "timer-watch") return void 0;
|
|
@@ -6815,7 +6799,7 @@ function createConversationTurnWorker(agentRunner, deliverMessage) {
|
|
|
6815
6799
|
visibility: storedConversation?.visibility
|
|
6816
6800
|
});
|
|
6817
6801
|
const webActor = actor.platform === "web" ? actor : void 0;
|
|
6818
|
-
const conversationLocation =
|
|
6802
|
+
const conversationLocation = storedConversation?.location;
|
|
6819
6803
|
const deliverToProvider = Boolean(conversationLocation) && (source.kind === "event" || savedMessageIsEvent);
|
|
6820
6804
|
const surface = deliverToProvider ? "slack" : "api";
|
|
6821
6805
|
return await withLogContext({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as getConversationEventStore, f as getSqlExecutor, u as getConversationStore } from "./viewer-
|
|
4
|
-
import { m as juniorAgentInvocations, p as juniorAgentBindings } from "./executor-
|
|
5
|
-
import { L as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-
|
|
6
|
-
import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-
|
|
7
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
8
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-
|
|
2
|
+
import { In as AuthorizationFlowDisabledError, Ot as appendAndEnqueueInboundMessage, ft as agentBindingSchema, gt as AgentInvocationLimitError, ht as AgentInvocationBusyError, m as PluginCredentialFailureError, mt as createAgentInvocationSchema, pt as agentInvocationSchema } from "./agent-runner-0IjJxsL1.js";
|
|
3
|
+
import { c as getConversationEventStore, f as getSqlExecutor, u as getConversationStore } from "./viewer-XE3nFqKM.js";
|
|
4
|
+
import { m as juniorAgentInvocations, p as juniorAgentBindings } from "./executor-BQ-A5nov.js";
|
|
5
|
+
import { L as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-C1ZnSz7r.js";
|
|
6
|
+
import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-BM7g61od.js";
|
|
7
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-C4TjuOzG.js";
|
|
8
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-exTu-G1w.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
import { and, asc, count, eq, inArray } from "drizzle-orm";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import {
|
|
3
|
-
import { v as isProviderRetryError } from "./client-
|
|
4
|
-
import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-
|
|
5
|
-
import { i as getChatConfig } from "./config-
|
|
6
|
-
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-
|
|
2
|
+
import { Et as ackMessages, Ft as completeConversationWork, Gt as recordConversationRetry, It as countPendingConversationMessages, Jt as requestAnotherSlice, Kt as releaseConversationWork, Lt as deadLetterAttempt, Mt as clearConsumedConversationWake, Pt as completeConversationStop, Rt as drainConversationMailbox, Vt as getConversationWorkState, Wt as recordAttemptFailure, Xt as startConversationWork, en as hasConversationStop, jt as checkInConversationWork, kt as beginConversationResume, nn as isFinalAttempt, rn as isInvalidConversationRecordError, zt as ensureConversationWake } from "./agent-runner-0IjJxsL1.js";
|
|
3
|
+
import { v as isProviderRetryError } from "./client-Cn73E7br.js";
|
|
4
|
+
import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-BSNF167N.js";
|
|
5
|
+
import { i as getChatConfig } from "./config-B0S86yw9.js";
|
|
6
|
+
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-DgXLqoeB.js";
|
|
7
7
|
//#region src/chat/task-execution/worker.ts
|
|
8
8
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.240.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@earendil-works/pi-ai": "0.85.1",
|
|
62
62
|
"@hono/zod-validator": "^0.9.0",
|
|
63
63
|
"@logtape/logtape": "^2.1.1",
|
|
64
|
-
"@modelcontextprotocol/sdk": "1.
|
|
64
|
+
"@modelcontextprotocol/sdk": "1.31.0",
|
|
65
65
|
"@neondatabase/serverless": "^1.1.0",
|
|
66
66
|
"@opentelemetry/api": "1.9.1",
|
|
67
67
|
"@opentelemetry/core": "2.9.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"pg": "^8.16.3",
|
|
88
88
|
"yaml": "^2.9.0",
|
|
89
89
|
"zod": "^4.5.4",
|
|
90
|
-
"@sentry/junior-plugin-api": "0.
|
|
90
|
+
"@sentry/junior-plugin-api": "0.240.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@emnapi/core": "^1.10.0",
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"typescript": "^6.0.3",
|
|
107
107
|
"vercel": "^54.4.0",
|
|
108
108
|
"vitest": "^4.1.7",
|
|
109
|
-
"@sentry/junior-github": "0.
|
|
109
|
+
"@sentry/junior-github": "0.240.0",
|
|
110
110
|
"@sentry/junior-testing": "0.0.0",
|
|
111
|
-
"@sentry/junior-memory": "0.
|
|
111
|
+
"@sentry/junior-memory": "0.240.0"
|
|
112
112
|
},
|
|
113
113
|
"scripts": {
|
|
114
114
|
"build": "tsdown",
|