@sentry/junior 0.304.0 → 0.305.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/{adapter-context-B1IpoELr.js → adapter-context-BpvbUki8.js} +2 -2
- package/dist/{admin-BnVFGo_z.js → admin-CoDt35ny.js} +2 -2
- package/dist/{agent-runner-CoEeZSRh.js → agent-runner-C5d6rY5g.js} +75 -38
- package/dist/api.js +28 -28
- package/dist/app.js +38 -47
- package/dist/{background-compaction-queue-WLPNSF_b.js → background-compaction-queue-BTqMIfTA.js} +7 -3
- package/dist/{briefs-CagVVefw.js → briefs-BRdznF7c.js} +2 -2
- package/dist/{catalog-runtime-B8ZXvXWm.js → catalog-runtime-J52Tej47.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-DdO1BNcw.js → config-CBZp0udd.js} +2 -2
- package/dist/{connections-D20kp0j5.js → connections-BYmuJ6Vm.js} +6 -6
- package/dist/{continue-in-slack-BKEVMBj1.js → continue-in-slack-Cvot6S38.js} +5 -5
- package/dist/{conversation-privacy-L1SK_v0V.js → conversation-privacy-D2pOzBNl.js} +1 -1
- package/dist/{conversation-turn-BptVJylj.js → conversation-turn-CI8WDpnK.js} +15 -15
- package/dist/{credential-sync-D1J1CGzL.js → credential-sync-COqnZ1Dx.js} +13 -13
- package/dist/{db-EKJnkrIb.js → db-DU84dCVu.js} +3 -3
- package/dist/{executor-CoIZmFK8.js → executor-CFyrgOu1.js} +2 -2
- package/dist/{install-BT2Pf6HP.js → install-CQ76CfRw.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-C5DGQCS_.js → lineage-DLd2UxVP.js} +2 -2
- package/dist/{logging-QSZuMcvo.js → logging-BPNTQVFu.js} +1 -1
- package/dist/{message-TtxftRHj.js → message-BWJLeQ5e.js} +8 -8
- package/dist/{model-input-BHXfA29g.js → model-input-DoM9Ht-d.js} +2 -2
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-B0enqHtZ.js → oauth-callback-server-DeHbnAQl.js} +2 -2
- package/dist/{projection-CNKK7doO.js → projection-CcFBVFUo.js} +15 -12
- package/dist/{prompt-DSjhoKu5.js → prompt-C5LREK2p.js} +3 -3
- package/dist/{queue-CDxkit82.js → queue-B2AAL3ym.js} +4 -4
- package/dist/{registry-DBDNUUmz.js → registry-BjZZqKqi.js} +1 -1
- package/dist/{resolve-CQLhMWSu.js → resolve-CeJgXuH1.js} +3 -3
- package/dist/{result-B-pauj42.js → result-icDrueyB.js} +8 -8
- package/dist/{runner-B3KxKks5.js → runner-nVfMkMMB.js} +8 -8
- package/dist/{sandbox-egress-signals-DJJX9ClG.js → sandbox-egress-signals-H9vQ5qRf.js} +1 -1
- package/dist/{service-account-2HmlNPvy.js → service-account-DU5865XA.js} +5 -5
- package/dist/{service-account-DQLqkSVv.js → service-account-Dw06p3zm.js} +3 -3
- package/dist/{session-stop-DEeZKqbX.js → session-stop-uotLtp4g.js} +79 -22
- package/dist/{skills-2UrD7JkN.js → skills-Bex1EaO5.js} +2 -2
- package/dist/{slack-conversation-unfurl-Dd129Uov.js → slack-conversation-unfurl-EPG3riWF.js} +9 -9
- package/dist/{spawn-eMho9HDJ.js → spawn-CoD3vDuS.js} +6 -6
- package/dist/{state-Bveuc4Zh.js → state-nCR4Muhn.js} +4 -4
- package/dist/{stop-D_ltJLDS.js → stop-BFVd0P0m.js} +29 -30
- package/dist/{store-COeYnPL_.js → store-Ca6G962n.js} +5 -5
- package/dist/{task-queue-CBIDXZpV.js → task-queue-BLPZU6kC.js} +3 -3
- package/dist/{task-runner-CJF7zIJL.js → task-runner-xsOPIxCZ.js} +6 -6
- package/dist/{thread-context-Cg0jt0aE.js → thread-context-BOvZhsKK.js} +7 -7
- package/dist/{turn-session-routing-CaY3Tp8m.js → turn-session-routing-2bW2qfeb.js} +7 -7
- package/dist/{turn-user-message-tcom1RYd.js → turn-user-message-BrhuyYrH.js} +3 -3
- package/dist/{validation-EU91JwIT.js → validation-BnY9K5WB.js} +1 -1
- package/dist/{version-BYRPhY5G.js → version-qROlRQGF.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-Cf8ISkAc.js → viewer-CxUiOraX.js} +3 -3
- package/dist/{warmup-TgY4S1vx.js → warmup--Gkz7iB-.js} +21 -24
- package/dist/{worker-C6Uq4OKD.js → worker-DJ8d9fmD.js} +7 -7
- package/package.json +6 -6
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { $ as loadTurnCheckpoint, $a as workspaceRepoCheckoutPath, $i as setWorkspaceSnapshotBuild, $r as EVERYONE_ASSIGNEE, Ar as dismissOpenReviewItems, Ba as isWorkspaceSnapshotNotReadyError, Br as PLUGIN_REVIEW_ITEM_KEY_PREFIX, Ca as getSlackMessagePermalink, Cn as getTerminalAssistantMessages, Cs as defaultTimezone, Dr as closeReviewItem, Fi as getDashboardTaskLink, Ga as createSandboxEgressCredentialToken, Gi as getWorkspaceByName, Gn as renderTag, H as PluginCredentialFailureError, Hi as createWorkspace, Hr as canAgentChangeReviewItem, Ja as buildSandboxEgressNetworkPolicy, Ji as updateWorkspace, Jo as readLiveAttachment, Jr as requireReviewItemAssignees, K as AuthorizationFlowDisabledError, Ki as listWorkspaces, Lo as FORK_INSTRUCTIONS, Lr as searchReviewItems, Mr as getReviewItem, Nr as insertReviewItem, Pa as isAbortError, Qi as setWorkspaceSnapshot, Ra as WorkspaceSnapshotNotReadyError, Ro as loadForkHistory, T as resolveTaskTitle, Ui as deleteWorkspace, Ur as canReadReviewItem, Vn as escapeClosingTags, Vo as matchSlackAttachments, Wi as getWorkspace, X as clearPendingAuth, Xi as invalidateReadySnapshot, Xn as getOAuthAccountProviders, Yi as WorkspaceValidationError, Yo as recordUploadedAttachment, Yr as requireReviewItemLinks, Za as SANDBOX_RUNTIME, Zi as loadSnapshotsForProfile, _a as slackMention, _i as findMatchingWatches, _o as createPluginLogger, _s as searchConversations, as as isConversationScopedChannel, at as failTurnRecord, bs as createPluginAnnotations, ci as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, cn as replyTextSchema, cr as getPlugins, cs as normalizeSlackConversationId, ds as withSlackRetries, ea as create, ei as activeParticipantUserIds, eo as ToolInputError, es as SlackActionError, et as lostWorkerBeforeFirstSave, fi as cancelWatch, fn as NO_REPLY_TOOL_NAME, fs as sleep, gi as deliverWatch, hi as createWatch, ia as getSandboxProvider, in as REPLY_TOOL_NAME, is as getSlackClient, j as markConversationMessage, jr as getOpenReviewItemByDedupeKey, ki as getDashboardConversationLink, ks as createPluginCache, li as RESOURCE_WATCH_TOOL_SOURCE, lo as SANDBOX_WORKSPACE_ROOT, lr as getStaticPluginToolDefinitions, mi as createTimerWatch, mn as isLegacyNoReplyMarker, na as isStale, ni as resolveAssignee, ns as getFilePermalink, nt as saveTurnCheckpoint, oi as getSlackToolContext, on as readTurnAnswer, pn as findLegacyNoReplyMarker, qr as readReviewItemAgentScope, ri as resolveAssignees, rn as isTurnExecutionLimitExceededError, rt as abandonTurnRecord, s as openConversationProjection, si as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, so as SANDBOX_REPOS_ROOT, st as getTurnRecord, ti as automationCreatorUserId, tr as createPluginHookRunner, ts as downloadPrivateSlackFile, tt as pauseLostWorkerTurn, ui as STOP_WATCHING_TOOL_NAME, un as getAssistantReplyText, v as hydrateConversationMessages, vi as getWatch, vn as REPORT_BLOCKED_TOOL_NAME, vo as canAccessConversation, w as fallbackShortTitle, wa as openSlackDirectMessage, xo as readConversationAccessFromSql, yi as listWatches, ys as saveObjectAnnotations, zr as updateReviewItemContent } from "./projection-
|
|
3
|
-
import { $ as bufferBody, X as isProviderRetryError, _ as TURN_REASONING_LEVELS, i as getChatConfig, k as resolveGatewayModel, n as botConfig } from "./config-
|
|
4
|
-
import { E as withSpan, G as normalizeIdentityEmail, J as toOptionalString, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, x as setSpanStatus, z as getDeploymentId } from "./logging-
|
|
2
|
+
import { $ as loadTurnCheckpoint, $a as workspaceRepoCheckoutPath, $i as setWorkspaceSnapshotBuild, $r as EVERYONE_ASSIGNEE, Ar as dismissOpenReviewItems, Ba as isWorkspaceSnapshotNotReadyError, Br as PLUGIN_REVIEW_ITEM_KEY_PREFIX, Ca as getSlackMessagePermalink, Cn as getTerminalAssistantMessages, Cs as defaultTimezone, Dr as closeReviewItem, Fi as getDashboardTaskLink, Ga as createSandboxEgressCredentialToken, Gi as getWorkspaceByName, Gn as renderTag, H as PluginCredentialFailureError, Hi as createWorkspace, Hr as canAgentChangeReviewItem, Ja as buildSandboxEgressNetworkPolicy, Ji as updateWorkspace, Jo as readLiveAttachment, Jr as requireReviewItemAssignees, K as AuthorizationFlowDisabledError, Ki as listWorkspaces, Lo as FORK_INSTRUCTIONS, Lr as searchReviewItems, Mr as getReviewItem, Nr as insertReviewItem, Pa as isAbortError, Qi as setWorkspaceSnapshot, Ra as WorkspaceSnapshotNotReadyError, Ro as loadForkHistory, T as resolveTaskTitle, Ui as deleteWorkspace, Ur as canReadReviewItem, Vn as escapeClosingTags, Vo as matchSlackAttachments, Wi as getWorkspace, X as clearPendingAuth, Xi as invalidateReadySnapshot, Xn as getOAuthAccountProviders, Yi as WorkspaceValidationError, Yo as recordUploadedAttachment, Yr as requireReviewItemLinks, Za as SANDBOX_RUNTIME, Zi as loadSnapshotsForProfile, _a as slackMention, _i as findMatchingWatches, _o as createPluginLogger, _s as searchConversations, as as isConversationScopedChannel, at as failTurnRecord, bs as createPluginAnnotations, ci as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, cn as replyTextSchema, cr as getPlugins, cs as normalizeSlackConversationId, ds as withSlackRetries, ea as create, ei as activeParticipantUserIds, eo as ToolInputError, es as SlackActionError, et as lostWorkerBeforeFirstSave, fi as cancelWatch, fn as NO_REPLY_TOOL_NAME, fs as sleep, gi as deliverWatch, hi as createWatch, ia as getSandboxProvider, in as REPLY_TOOL_NAME, is as getSlackClient, j as markConversationMessage, jr as getOpenReviewItemByDedupeKey, ki as getDashboardConversationLink, ks as createPluginCache, li as RESOURCE_WATCH_TOOL_SOURCE, lo as SANDBOX_WORKSPACE_ROOT, lr as getStaticPluginToolDefinitions, mi as createTimerWatch, mn as isLegacyNoReplyMarker, na as isStale, ni as resolveAssignee, ns as getFilePermalink, nt as saveTurnCheckpoint, oi as getSlackToolContext, on as readTurnAnswer, pn as findLegacyNoReplyMarker, qr as readReviewItemAgentScope, ri as resolveAssignees, rn as isTurnExecutionLimitExceededError, rt as abandonTurnRecord, s as openConversationProjection, si as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, so as SANDBOX_REPOS_ROOT, st as getTurnRecord, ti as automationCreatorUserId, tr as createPluginHookRunner, ts as downloadPrivateSlackFile, tt as pauseLostWorkerTurn, ui as STOP_WATCHING_TOOL_NAME, un as getAssistantReplyText, v as hydrateConversationMessages, vi as getWatch, vn as REPORT_BLOCKED_TOOL_NAME, vo as canAccessConversation, w as fallbackShortTitle, wa as openSlackDirectMessage, xo as readConversationAccessFromSql, yi as listWatches, ys as saveObjectAnnotations, zr as updateReviewItemContent } from "./projection-CcFBVFUo.js";
|
|
3
|
+
import { $ as bufferBody, X as isProviderRetryError, _ as TURN_REASONING_LEVELS, i as getChatConfig, k as resolveGatewayModel, n as botConfig } from "./config-CBZp0udd.js";
|
|
4
|
+
import { E as withSpan, G as normalizeIdentityEmail, J as toOptionalString, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, x as setSpanStatus, z as getDeploymentId } from "./logging-BPNTQVFu.js";
|
|
5
5
|
import { h as startSpan, n as captureMessage, u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
6
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
7
|
-
import { A as enqueueEventNotification, B as resolveEventMentions, C as listActiveMailboxTurns, G as
|
|
6
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-J52Tej47.js";
|
|
7
|
+
import { A as enqueueEventNotification, B as resolveEventMentions, C as listActiveMailboxTurns, G as recordFinishedTurnForAutomatedLimit, I as maybePostAutomatedTurnLimitNotice, J as conversationSubtreeColumns, K as resetAutomatedTurnLimit, M as isEventMailboxMetadata, Q as getEventCatalog, S as listActiveMailboxTurnSources, X as isExperimentalFeatureEnabled, at as WORKSPACE_SNAPSHOT_FAILED_EVENT, b as getAuthPausedConversationTurnId, ct as workspaceSnapshotWatch, et as requireSlackChannelMessageScope, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, i as resumeStoppedConversationTree, it as slackChannelMessageTrigger, k as EVENT_WAIT_MS, lt as buildDeploymentSystemPrompt, m as instructionForInputs, n as isSkippedAfterConversationStop, ot as WORKSPACE_SNAPSHOT_READY_EVENT, q as conversationSubtree, r as markConversationsStopped, st as workspaceSnapshotFinishedEvent, t as getConversationStoppedAtMs, v as saveUserCustomization, y as addConversationNote } from "./session-stop-uotLtp4g.js";
|
|
8
8
|
import { A as agentTypeSchema, H as removedCardSchema, O as AGENT_TYPES, X as briefLinkSchema, Z as briefOutcomeStatusSchema, j as formatAgentTypes, k as agentTypeInstructions } from "./conversation-BOqdRtUx.js";
|
|
9
9
|
import { A as eventAutomationTriggerSchema, F as compileScheduleIntent, H as automationTaskSchema, L as toolScheduleIntentSchema, P as ScheduleIntentError, R as weekdaySchema, U as automationTaskText, V as automationTaskDescription, l as automationListQuerySchema, z as automationSkillNameSchema } from "./automation-CuA3yEcD.js";
|
|
10
10
|
import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
11
|
-
import { A as conversationKindFromRow, E as isTopLevelKind, I as resolveActorIdentityId, O as promptModeTurnTools, P as SYSTEM_IDENTITY_ID, T as isPersonInput, X as getStateAdapter, _ as readConversationTrees, a as getConversationStore, dt as resolveRootConversationId, ft as rootConversationIsArchived, g as conversationDescendants, h as conversationAncestors, i as getConversationMessageSearchStore, k as turnBehavior, mt as nextDetailVersion, nt as withLock, o as getDb, r as getConversationEventStore, s as getSqlExecutor, tt as fenceLock, v as setArchivedAt, x as userMessageQueries, yt as sameDestination } from "./db-
|
|
12
|
-
import { $ as deleteEventAutomation, A as readAutomationExecutionStatusDays, Ct as hasEventCatalogEntries, D as emptyAutomationRunWindows, Dt as registeredResourceTypeSchema, Et as registeredEventTypeSchema, H as deleteScheduledAutomation, K as saveScheduledAutomation, M as readAutomationExecutionSummaries, N as readAutomationExecutions, Ot as requireEventIdentifier, P as readAutomationRuns, St as eventWatchUnavailable, Tt as registeredEventTriggerProblems, W as parseScheduledAutomationRow, _t as automationEventCatalog, a as getPersistedThreadState, at as setEventAutomationStatus, c as coerceThreadConversationState, ct as automationDefinition, dt as readAutomationVersion, ft as sameDefinitionValue, g as getDispatchRecord, h as getDispatchInputMessageId, ht as requireAutomationRevision, i as getPersistedSandboxState, it as saveEventAutomation, j as readAutomationExecutionStatusHours, k as readAutomationExecutionByConversationId, kt as requireValidEventTrigger, m as getDispatchIdForConversation, mt as automationRevision, n as resolveTurnSessionRouting, nt as listDeletedEventAutomationsCreatedBy, rt as parseEventAutomationRow, s as persistThreadStateById, ut as listAutomationVersions, vt as describeRegisteredEventTrigger, wt as registeredEventMatchSchema, xt as eventNamespaceSchema } from "./turn-session-routing-
|
|
13
|
-
import { A as juniorAttachmentUploads, F as juniorUsers, I as juniorDestinations, N as juniorConversations, P as juniorIdentities, T as juniorConversationEvents, _ as juniorConversationReadPositions, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorAttachments, p as juniorStats, u as juniorAutomationRuns, v as juniorConversationParticipants } from "./executor-
|
|
11
|
+
import { A as conversationKindFromRow, E as isTopLevelKind, I as resolveActorIdentityId, O as promptModeTurnTools, P as SYSTEM_IDENTITY_ID, T as isPersonInput, X as getStateAdapter, _ as readConversationTrees, a as getConversationStore, dt as resolveRootConversationId, ft as rootConversationIsArchived, g as conversationDescendants, h as conversationAncestors, i as getConversationMessageSearchStore, k as turnBehavior, mt as nextDetailVersion, nt as withLock, o as getDb, r as getConversationEventStore, s as getSqlExecutor, tt as fenceLock, v as setArchivedAt, x as userMessageQueries, yt as sameDestination } from "./db-DU84dCVu.js";
|
|
12
|
+
import { $ as deleteEventAutomation, A as readAutomationExecutionStatusDays, Ct as hasEventCatalogEntries, D as emptyAutomationRunWindows, Dt as registeredResourceTypeSchema, Et as registeredEventTypeSchema, H as deleteScheduledAutomation, K as saveScheduledAutomation, M as readAutomationExecutionSummaries, N as readAutomationExecutions, Ot as requireEventIdentifier, P as readAutomationRuns, St as eventWatchUnavailable, Tt as registeredEventTriggerProblems, W as parseScheduledAutomationRow, _t as automationEventCatalog, a as getPersistedThreadState, at as setEventAutomationStatus, c as coerceThreadConversationState, ct as automationDefinition, dt as readAutomationVersion, ft as sameDefinitionValue, g as getDispatchRecord, h as getDispatchInputMessageId, ht as requireAutomationRevision, i as getPersistedSandboxState, it as saveEventAutomation, j as readAutomationExecutionStatusHours, k as readAutomationExecutionByConversationId, kt as requireValidEventTrigger, m as getDispatchIdForConversation, mt as automationRevision, n as resolveTurnSessionRouting, nt as listDeletedEventAutomationsCreatedBy, rt as parseEventAutomationRow, s as persistThreadStateById, ut as listAutomationVersions, vt as describeRegisteredEventTrigger, wt as registeredEventMatchSchema, xt as eventNamespaceSchema } from "./turn-session-routing-2bW2qfeb.js";
|
|
13
|
+
import { A as juniorAttachmentUploads, F as juniorUsers, I as juniorDestinations, N as juniorConversations, P as juniorIdentities, T as juniorConversationEvents, _ as juniorConversationReadPositions, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorAttachments, p as juniorStats, u as juniorAutomationRuns, v as juniorConversationParticipants } from "./executor-CFyrgOu1.js";
|
|
14
14
|
import { i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-cP0AACm1.js";
|
|
15
|
-
import { t as discoverSkills } from "./skills-
|
|
15
|
+
import { t as discoverSkills } from "./skills-Bex1EaO5.js";
|
|
16
16
|
import { M as sumUtcHoursIntoSixHours, T as apiErrorSchema, c as formatUserInputAnswer, d as userInputRequestSchema, g as USER_CUSTOMIZATION_MAX_CHARS, h as isVisionImageMediaType, m as detectImageMediaType, n as AGENT_INVOCATION_MAILBOX_STATUSES, r as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, t as webMessageId, v as userCustomizationTextSchema, w as isAgentInvocationResultEventType, x as AGENT_PARENT_MESSAGE_EVENT_TYPE, y as AGENT_INVOCATION_EVENT_NAMESPACE } from "./web-message-id-lNodcCOI.js";
|
|
17
|
-
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-
|
|
18
|
-
import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, I as getUnnamedAgentConversationId, N as getChildAgentLockName, O as getAgentInvocationIdForResult, P as getNamedAgentConversationId, R as buildDeterministicTurnId, S as listChildMessages, T as getAgentInvocationId, _ as ConversationTurnLifecycleService, b as hasAgentInvocationReply, d as isTurnInputCommitLostError, j as getAgentInvocationTurnId, k as getAgentInvocationMessageId, l as getConversationTurnBoundaryError, p as markTurnClosed, s as TurnInputCommitLostError, t as getTurnUserMessage, w as readChildMessageSender } from "./turn-user-message-
|
|
19
|
-
import { D as stopConversationWork, _ as getConversationWorkState, h as ensureConversationWake, m as dropPendingMessages, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage, v as getConversationWorkStates, w as requestConversationWork } from "./store-
|
|
17
|
+
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-CxUiOraX.js";
|
|
18
|
+
import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, I as getUnnamedAgentConversationId, N as getChildAgentLockName, O as getAgentInvocationIdForResult, P as getNamedAgentConversationId, R as buildDeterministicTurnId, S as listChildMessages, T as getAgentInvocationId, _ as ConversationTurnLifecycleService, b as hasAgentInvocationReply, d as isTurnInputCommitLostError, j as getAgentInvocationTurnId, k as getAgentInvocationMessageId, l as getConversationTurnBoundaryError, p as markTurnClosed, s as TurnInputCommitLostError, t as getTurnUserMessage, w as readChildMessageSender } from "./turn-user-message-BrhuyYrH.js";
|
|
19
|
+
import { D as stopConversationWork, _ as getConversationWorkState, h as ensureConversationWake, m as dropPendingMessages, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage, v as getConversationWorkStates, w as requestConversationWork } from "./store-Ca6G962n.js";
|
|
20
20
|
import { d as contextProvenance, m as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as agentInstructionProvenance } from "./history-m2-ceTTX.js";
|
|
21
|
-
import { f as credentialContextForActor, p as credentialContextSchema } from "./registry-
|
|
22
|
-
import { o as getVercelConversationWorkQueue, p as getTurnRequestDeadline } from "./background-compaction-queue-
|
|
23
|
-
import { p as searchWeb, r as EVENT_AUTHOR_ID, u as completeText } from "./prompt-
|
|
24
|
-
import { n as postinstall, o as getSandboxResources, t as dependencies } from "./install-
|
|
25
|
-
import { a as sendCacheWarmup, c as sendWorkspaceSnapshotJob, s as sendNextWorkspaceSnapshotJob } from "./queue-
|
|
21
|
+
import { f as credentialContextForActor, p as credentialContextSchema } from "./registry-BjZZqKqi.js";
|
|
22
|
+
import { o as getVercelConversationWorkQueue, p as getTurnRequestDeadline } from "./background-compaction-queue-BTqMIfTA.js";
|
|
23
|
+
import { p as searchWeb, r as EVENT_AUTHOR_ID, u as completeText } from "./prompt-C5LREK2p.js";
|
|
24
|
+
import { n as postinstall, o as getSandboxResources, t as dependencies } from "./install-CQ76CfRw.js";
|
|
25
|
+
import { a as sendCacheWarmup, c as sendWorkspaceSnapshotJob, s as sendNextWorkspaceSnapshotJob } from "./queue-B2AAL3ym.js";
|
|
26
26
|
import * as z from "zod";
|
|
27
27
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
|
28
28
|
import path from "node:path";
|
|
@@ -6080,10 +6080,10 @@ const agentInvocationMailboxMetadataSchema = z.object({
|
|
|
6080
6080
|
agentInvocationId: z.string().min(1),
|
|
6081
6081
|
kind: z.literal("agent_invocation")
|
|
6082
6082
|
}).strict();
|
|
6083
|
-
/** Map a durable invocation's model settings
|
|
6084
|
-
function agentInvocationRunPolicy(invocation
|
|
6083
|
+
/** Map a durable invocation's model settings to the child Run policy. */
|
|
6084
|
+
function agentInvocationRunPolicy(invocation) {
|
|
6085
6085
|
return {
|
|
6086
|
-
disabledFeatures:
|
|
6086
|
+
disabledFeatures: ["interactive-auth"],
|
|
6087
6087
|
...invocation.reasoningLevel ? { reasoning: invocation.reasoningLevel } : void 0
|
|
6088
6088
|
};
|
|
6089
6089
|
}
|
|
@@ -6368,11 +6368,8 @@ async function saveAgentInvocationResult(args) {
|
|
|
6368
6368
|
* Build the invocation consumer that advances work through the shared runner.
|
|
6369
6369
|
* `enqueueResult` sends each terminal result to the parent mailbox. Omit it
|
|
6370
6370
|
* only where the parent has no mailbox, such as the local CLI.
|
|
6371
|
-
* `maxAgentDepth` is the number of child agent levels that can start their
|
|
6372
|
-
* own child agents. The default, 0, lets only the root start child agents.
|
|
6373
6371
|
*/
|
|
6374
6372
|
function createAgentInvocationWorker(agentRunner, options = {}) {
|
|
6375
|
-
const canSpawn = (options.maxAgentDepth ?? 0) > 0;
|
|
6376
6373
|
return async (context, invocationId) => {
|
|
6377
6374
|
let invocation = await getAgentInvocation(invocationId);
|
|
6378
6375
|
if (!invocation) throw new Error(`Agent invocation is missing for ${invocationId}`);
|
|
@@ -6487,7 +6484,7 @@ function createAgentInvocationWorker(agentRunner, options = {}) {
|
|
|
6487
6484
|
surface: "internal",
|
|
6488
6485
|
deadlineAtMs: getTurnRequestDeadline()?.deadlineAtMs,
|
|
6489
6486
|
...stopSignal ? { signal: stopSignal } : void 0,
|
|
6490
|
-
...agentInvocationRunPolicy(invocation
|
|
6487
|
+
...agentInvocationRunPolicy(invocation),
|
|
6491
6488
|
state: { sandboxRef },
|
|
6492
6489
|
durability: {
|
|
6493
6490
|
drainSteeringMessages: createAgentMessageSteeringDrain(context, invocation),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { Ct as countPendingConversationMessages, Nt as isFinalAttempt, Pt as isInvalidConversationRecordError, jt as hasConversationStop } from "./projection-
|
|
3
|
-
import { X as isProviderRetryError, i as getChatConfig } from "./config-
|
|
4
|
-
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import { t as getConversationStoppedAtMs } from "./session-stop-
|
|
6
|
-
import { _ as nudgeIdempotencyKey, m as ConversationQueueMessageRejectedError, p as getTurnRequestDeadline } from "./background-compaction-queue-
|
|
7
|
-
import { C as requestAnotherSlice, S as releaseConversationWork, T as startConversationWork, _ as getConversationWorkState, b as recordAttemptFailure, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, x as recordConversationRetry } from "./store-
|
|
8
|
-
import { Ln as isAttemptInterrupt, Rn as selectAttemptMessages } from "./warmup
|
|
2
|
+
import { Ct as countPendingConversationMessages, Nt as isFinalAttempt, Pt as isInvalidConversationRecordError, jt as hasConversationStop } from "./projection-CcFBVFUo.js";
|
|
3
|
+
import { X as isProviderRetryError, i as getChatConfig } from "./config-CBZp0udd.js";
|
|
4
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-BPNTQVFu.js";
|
|
5
|
+
import { t as getConversationStoppedAtMs } from "./session-stop-uotLtp4g.js";
|
|
6
|
+
import { _ as nudgeIdempotencyKey, m as ConversationQueueMessageRejectedError, p as getTurnRequestDeadline } from "./background-compaction-queue-BTqMIfTA.js";
|
|
7
|
+
import { C as requestAnotherSlice, S as releaseConversationWork, T as startConversationWork, _ as getConversationWorkState, b as recordAttemptFailure, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, x as recordConversationRetry } from "./store-Ca6G962n.js";
|
|
8
|
+
import { Ln as isAttemptInterrupt, Rn as selectAttemptMessages } from "./warmup--Gkz7iB-.js";
|
|
9
9
|
// src/chat/task-execution/lost-lease.ts
|
|
10
10
|
/**
|
|
11
11
|
* Count a slice that lost its Conversation Lease as a failed attempt, then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.305.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@logtape/logtape": "^2.1.1",
|
|
65
65
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
66
66
|
"@neondatabase/serverless": "^1.1.0",
|
|
67
|
-
"@sentry/junior-plugin-api": "0.
|
|
67
|
+
"@sentry/junior-plugin-api": "0.305.0",
|
|
68
68
|
"@sentry/nitro": "11.10.0",
|
|
69
69
|
"@sentry/node": "11.10.0",
|
|
70
70
|
"@sentry/server-utils": "11.10.0",
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
"@emnapi/core": "^1.10.0",
|
|
116
116
|
"@emnapi/runtime": "^1.10.0",
|
|
117
117
|
"@hono/node-server": "2.1.3",
|
|
118
|
-
"@sentry/junior-github": "0.
|
|
119
|
-
"@sentry/junior-memory": "0.
|
|
120
|
-
"@sentry/junior-notion": "0.
|
|
121
|
-
"@sentry/junior-sentry": "0.
|
|
118
|
+
"@sentry/junior-github": "0.305.0",
|
|
119
|
+
"@sentry/junior-memory": "0.305.0",
|
|
120
|
+
"@sentry/junior-notion": "0.305.0",
|
|
121
|
+
"@sentry/junior-sentry": "0.305.0",
|
|
122
122
|
"@sentry/junior-testing": "0.0.0",
|
|
123
123
|
"@types/node": "^24.19.2",
|
|
124
124
|
"@types/pg": "^8.15.6",
|