@sentry/junior 0.279.0 → 0.281.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/{actor-B4DYygOB.js → actor-6jsm_v96.js} +1 -1
- package/dist/{adapter-phTTgw7H.js → adapter-RVQGEa98.js} +1 -1
- package/dist/{admin-PcpJDugZ.js → admin-DQpHx6Og.js} +1 -1
- package/dist/{agent-runner-DwvT1BY0.js → agent-runner-B229gXUY.js} +1002 -980
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +3 -3
- package/dist/api.js +188 -86
- package/dist/{app-DVs6noo7.d.ts → app-BQ9RZS43.d.ts} +4 -4
- package/dist/app.d.ts +1 -1
- package/dist/app.js +45 -38
- package/dist/{assistant-reply-BXfxczd7.js → assistant-reply-DQbtwc6j.js} +1 -1
- package/dist/{automation-BehArCcq.js → automation-sIsmIXH7.js} +2 -2
- package/dist/{background-compaction-queue-CcbuLJrZ.js → background-compaction-queue-oegyrxSe.js} +3 -3
- package/dist/{briefs-Dd_ezwED.js → briefs-BwzGWJgR.js} +5 -9
- package/dist/{catalog-runtime-BWVMeZhW.js → catalog-runtime-ClKzLvbN.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 +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-Bpxe4vKa.js → client-DkG0Tj53.js} +2 -2
- package/dist/{config-C_bmRhrJ.js → config-3AZ11aSM.js} +2 -2
- package/dist/{connections-B2rHe5W5.js → connections-C0ut_6RW.js} +11 -11
- package/dist/{conversation-CIiJtx5q.js → conversation-DNtcULyX.js} +45 -14
- package/dist/{conversation-pending-messages-CnBvE6-6.js → conversation-pending-messages-LlFnr9-m.js} +11 -3
- package/dist/{conversation-privacy-CzOfcz0U.js → conversation-privacy-DAgeBGLN.js} +1 -1
- package/dist/{credential-sync-Dal_unpv.js → credential-sync-Bg8NPuvj.js} +16 -16
- package/dist/{db-CyLrV9C7.d.ts → db-BCFM0CUX.d.ts} +2 -2
- package/dist/{executor-BfYH-Wws.js → executor-DLKnzP6S.js} +149 -6
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CkT3_Xxp.js → logging-DHzrobea.js} +1 -1
- package/dist/{media-DTAA8Qs_.js → media-Dq9_svfQ.js} +1 -1
- package/dist/{message-Q5dkgaJ5.js → message-LR8z5jXJ.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BDRaqe8O.js → oauth-callback-server-EWdpj0_y.js} +2 -2
- package/dist/{oauth-relay-D0G3T16m.js → oauth-relay-D6xxVywK.js} +1 -1
- package/dist/{projection-DWxX7pb1.js → projection-Bhz1tp0G.js} +194 -119
- package/dist/{prompt--dwus7Y-.js → prompt-DI6KCtwb.js} +6 -27
- package/dist/{queue-C37RbDVc.d.ts → queue-CZyYgPF0.d.ts} +1 -1
- package/dist/{registry-DnrdeO4s.js → registry-EjhulgQW.js} +3 -3
- package/dist/{reporting-window-DgHgwQB3.js → reporting-window-B-QP9zX1.js} +28 -2
- package/dist/{resolve-C_QXfqD_.js → resolve-Cw6OW4Fj.js} +4 -4
- package/dist/{result-DNmOxT-N.js → result-BoD0jevy.js} +11 -11
- package/dist/{runner-zd_noJ1l.js → runner-D22bsBDS.js} +11 -11
- package/dist/{sandbox-egress-signals-DQjv-nbG.js → sandbox-egress-signals-BG5GYacQ.js} +1 -1
- package/dist/{schema-CNJNzvr8.js → schema-BN34Jy-U.js} +30 -7
- package/dist/{schema-e90H5FIN.d.ts → schema-CsqJzkP5.d.ts} +95 -13
- package/dist/{service-account-CCH2Hv4h.js → service-account-Dd1nnAQZ.js} +3 -3
- package/dist/{service-account-BK26XlHo.js → service-account-xo-CeMqI.js} +3 -3
- package/dist/{session-stop-6Tf--T7G.js → session-stop-CHSYB2uw.js} +13 -14
- package/dist/{skills-BNrk8gi4.js → skills-BGJr6xtW.js} +3 -3
- package/dist/{spawn-C75hAB9l.js → spawn-Cl8WS7zi.js} +2 -2
- package/dist/{stop-RYbf7PWi.js → stop-C9lHWpvl.js} +332 -149
- package/dist/{store-G3h2djJU.js → store-C4z8gOgZ.js} +3 -3
- package/dist/{store-CO5vGjwD.js → store-DeTnwVJt.js} +6 -6
- package/dist/{task-queue-DlN58XeM.js → task-queue-BBos68l0.js} +4 -4
- package/dist/{task-runner-B-Bdm23d.js → task-runner-BSF9zO-H.js} +8 -8
- package/dist/{thread-state-Cj_7Slru.js → thread-state-DGq1o5JX.js} +4 -4
- package/dist/{turn-failure-response-CE7gaoC7.js → turn-failure-response--9bA4uLP.js} +8 -8
- package/dist/{turn-lifecycle-7sXwXLJ6.js → turn-lifecycle-t5fimxwQ.js} +1 -1
- package/dist/{turn-session-routing-FBdaH1zf.js → turn-session-routing-RBtUe-3y.js} +10 -11
- package/dist/{validation-DLWxEzWW.js → validation-DrR0leBT.js} +1 -1
- package/dist/{version-DtQ8WFIZ.js → version-D_HFt_Dq.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-vsM8_90o.js → viewer-DWlpSFdj.js} +9 -8
- package/dist/{work-DsoFRO_0.js → work-pPoqtRea.js} +12 -12
- package/dist/{worker-6kZEsCXs.js → worker-CoVKgJ-O.js} +6 -6
- package/package.json +5 -5
- package/dist/agent-invocations-CUg_SODU.js +0 -181
package/dist/app.js
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { n as captureMessage } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { Aa as createPluginLogger, Ar as takeDueTimerWatches, C as settleConversationTitleWork, Cn as setExperimentalFeatures, Cr as collectEventMatchKeys, Ct as isInvalidConversationRecordError, Di as openSlackModal, Dr as findMatchingWatches, Fr as verifyScheduledAutomationCredentialSubject,
|
|
3
|
-
import { d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-
|
|
4
|
-
import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
6
|
-
import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-
|
|
7
|
-
import { C as getSqlExecutor, H as recordGoogleSignIn, I as resolveActorIdentityId, M as withConversationMutationLock, S as getDb, Y as touchConversationDetail, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationEventLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as processWorkspaceSnapshotJob, E as buildSlackReviewItemModal, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as ingestEvent, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, _t as requestAttachmentDeletion, at as reviewItemChangeRecord, bt as stopConversationSession, ct as conversationTurnIdForMessage, dt as recordWebConversationActivity, ft as webActorFromUser, g as publicArtifactHeaders, ht as collectAttachmentGarbage, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, n as executeAgentRun, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as appendAndEnqueueWebMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, xt as recordSubagentEnded, y as lookupSlackUserProfile } from "./agent-runner-DwvT1BY0.js";
|
|
1
|
+
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
|
|
2
|
+
import { Aa as createPluginLogger, Ar as takeDueTimerWatches, C as settleConversationTitleWork, Cn as setExperimentalFeatures, Cr as collectEventMatchKeys, Ct as isInvalidConversationRecordError, Di as openSlackModal, Dr as findMatchingWatches, Fr as verifyScheduledAutomationCredentialSubject, Gi as getWorkspaceTeamId, Gr as createPluginState, Hn as setBriefsConfig, Hr as getDashboardTaskLink, Ir as verifySlackDirectCredentialSubject, Ka as readConversationEventPage, Ki as runWithWorkspaceTeamId, Kn as dismissOpenReviewItems, Ln as getPlugins, Ma as readConversationAccessFromSql, Mn as getPluginRoutes, Mr as bindScheduledAutomationCredentialSubject, Ni as slackEntitySchema, Nr as bindSlackDirectCredentialSubject, Oi as postSlackEphemeralMessage, Pi as slackExternalRefIdSchema, Pr as verifyEventAutomationCredentialSubject, Qn as searchReviewItems, Rn as setPlugins, Sn as isExperimentalFeatureEnabled, So as setConfigDefaults, Ur as setDashboardConversationLinkOptions, Vi as isDmChannel, Vr as getDashboardReviewItemLink, Xa as readConversationMessageEventSeq, Ya as readConversationLastEventSeq, _ as appendConversationMessages, aa as parseSandboxEgressCredentialToken, ao as resolveRootVisibility, at as CONVERSATION_WORK_STALE_ENQUEUE_MS, b as projectConversationMessages, co as listConversationAnnotations, di as proxyVercelSandboxEgressRequest, dn as SubscribedReplyReason, ha as createPluginEmbedder, hi as resolveBaseUrl, jn as getPluginApiRoutes, jr as bindEventAutomationCredentialSubject, la as normalizeSandboxEgressTracePropagationDomains, mn as getThreadStopDecision, na as consumeSandboxEgressAuthRequiredSignal, nr as canActOnReviewItem, po as createPluginCache, qa as readConversationEventPageAfter, ra as consumeSandboxEgressPermissionDeniedSignal, ta as clearSandboxEgressSignals, ui as isVercelSandboxEgressRequest, ur as reviewItemReaderForUser, wn as createUserTokenStore, xi as slackMention, xn as getExperimentalFeatures, xo as getConfigDefaults, xt as hasRunnableConversationWork, zi as getSlackClient, zn as validatePlugins, zr as getDashboardConversationLink } from "./projection-Bhz1tp0G.js";
|
|
3
|
+
import { d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-3AZ11aSM.js";
|
|
4
|
+
import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-DHzrobea.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-D_HFt_Dq.js";
|
|
6
|
+
import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
7
|
+
import { C as getSqlExecutor, H as recordGoogleSignIn, I as resolveActorIdentityId, M as withConversationMutationLock, S as getDb, Y as touchConversationDetail, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationEventLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore } from "./viewer-DWlpSFdj.js";
|
|
8
|
+
import { M as juniorDestinations, S as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, h as juniorAgentInvocations, k as juniorConversations, l as juniorAutomationRuns, m as juniorAgentBindings, y as juniorConversationBriefs } from "./executor-DLKnzP6S.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-ClKzLvbN.js";
|
|
10
|
+
import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as processWorkspaceSnapshotJob, E as buildSlackReviewItemModal, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as ingestEvent, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, _t as requestAttachmentDeletion, at as reviewItemChangeRecord, bt as stopConversationSession, ct as conversationTurnIdForMessage, dt as recordWebConversationActivity, ft as webActorFromUser, g as publicArtifactHeaders, ht as collectAttachmentGarbage, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, n as executeAgentRun, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as appendAndEnqueueWebMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, xt as recordSubagentEnded, y as lookupSlackUserProfile } from "./agent-runner-B229gXUY.js";
|
|
12
11
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
13
|
-
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-
|
|
12
|
+
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-RVQGEa98.js";
|
|
14
13
|
import { n as getNextRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
15
|
-
import { H as conversationBriefSchema, b as conversationSurfaceSchema, f as conversationFeedQuerySchema, k as annotationCard, v as conversationReportStatusSchema } from "./conversation-
|
|
14
|
+
import { H as conversationBriefSchema, b as conversationSurfaceSchema, f as conversationFeedQuerySchema, k as annotationCard, v as conversationReportStatusSchema } from "./conversation-DNtcULyX.js";
|
|
16
15
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
17
|
-
import { S as listPendingAgentInvocationResults, x as listPendingAgentInvocationMailboxAppends } from "./store-
|
|
18
|
-
import { A as renderSlackObjectCard, T as renderTaskInput, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-
|
|
19
|
-
import { h as buttonUserInputField } from "./reporting-window-
|
|
20
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
21
|
-
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-
|
|
22
|
-
import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-
|
|
23
|
-
import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-
|
|
24
|
-
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
25
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
16
|
+
import { S as listPendingAgentInvocationResults, x as listPendingAgentInvocationMailboxAppends } from "./store-DeTnwVJt.js";
|
|
17
|
+
import { A as renderSlackObjectCard, T as renderTaskInput, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-CHSYB2uw.js";
|
|
18
|
+
import { h as buttonUserInputField } from "./reporting-window-B-QP9zX1.js";
|
|
19
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-Cw6OW4Fj.js";
|
|
20
|
+
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-oegyrxSe.js";
|
|
21
|
+
import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-C4z8gOgZ.js";
|
|
22
|
+
import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-RBtUe-3y.js";
|
|
23
|
+
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-sIsmIXH7.js";
|
|
24
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DrR0leBT.js";
|
|
26
25
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
|
|
27
|
-
import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-
|
|
28
|
-
import {
|
|
29
|
-
import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-
|
|
30
|
-
import { i as enqueueAgentInvocation, r as endAgentInvocationsOfStoppedWork } from "./work-
|
|
31
|
-
import { o as coerceThreadConversationState } from "./thread-state-
|
|
32
|
-
import { o as unlinkProvider } from "./connections-
|
|
33
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
26
|
+
import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-LlFnr9-m.js";
|
|
27
|
+
import { A as assertNoLegacyAllowedDomains, B as normalizeIncomingSlackThreadId, D as createProductionSlackWebhookServices, E as createProductionConversationWorkOptions, F as recordSkippedConversationMessage, G as startProcessingReaction, H as stopConversationTurn, I as buildSlackInboundMessage, J as ReviewItemActionError, K as stripLeadingBotMention, L as clearSlackPendingReactions, M as isAllowedSignInEmail, N as readEnvList, O as getProductionSlackAdapter, P as resolveAllowedDomains, Q as reviewItemChange, R as isSlackMessageStopped, S as readConversationPendingMessages, T as archiveConversation, U as THREAD_OPTOUT_ACK, V as withNormalizedThreadId, W as bindMessageAuthorIdentityId, X as closeReviewItemsAnsweredByReply, Y as actOnReviewItem, Z as readReviewItemForUser, _ as appendConversationMessageForViewer, b as encodeConversationCursor, ct as getAttachmentStorage, d as readConversationRecordFromSql, dt as GET$4, et as archiveViewerDoneConversations, i as readConversationDetail, j as isAllowedDomain, k as createSlackWebApiStatusSender, n as steerConversationPendingMessagesForViewer, nt as runAutoArchiveSweep, o as markConversationRead, q as parseContent, r as pinConversation, rt as setConversationAutoArchive, t as stopConversationTurnForViewer, u as readConversationFeed, ut as enqueueAgentDispatch, v as createConversationForViewer, x as cancelConversationPendingMessagesForViewer, y as decodeConversationCursor, z as stopSlackThread } from "./stop-C9lHWpvl.js";
|
|
28
|
+
import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-BoD0jevy.js";
|
|
29
|
+
import { i as enqueueAgentInvocation, r as endAgentInvocationsOfStoppedWork } from "./work-pPoqtRea.js";
|
|
30
|
+
import { o as coerceThreadConversationState } from "./thread-state-DGq1o5JX.js";
|
|
31
|
+
import { o as unlinkProvider } from "./connections-C0ut_6RW.js";
|
|
32
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-Bg8NPuvj.js";
|
|
34
33
|
import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
35
|
-
import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-
|
|
36
|
-
import { t as processConversationWork } from "./worker-
|
|
37
|
-
import { t as bindMessageAgent } from "./message-
|
|
38
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
39
|
-
import { t as processPluginTask } from "./task-runner-
|
|
34
|
+
import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-BBos68l0.js";
|
|
35
|
+
import { t as processConversationWork } from "./worker-CoVKgJ-O.js";
|
|
36
|
+
import { t as bindMessageAgent } from "./message-LR8z5jXJ.js";
|
|
37
|
+
import { t as bindSpawnAgent } from "./spawn-Cl8WS7zi.js";
|
|
38
|
+
import { t as processPluginTask } from "./task-runner-BSF9zO-H.js";
|
|
40
39
|
import { createRequire } from "node:module";
|
|
41
40
|
import { Hono } from "hono";
|
|
42
41
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
43
|
-
import
|
|
42
|
+
import * as z from "zod";
|
|
44
43
|
import { and, asc, eq, inArray, isNotNull, isNull, lte, ne, or, sql } from "drizzle-orm";
|
|
45
44
|
import { EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, dispatchOptionsSchema, eventSchema, eventTriggerFiltersText, isSlackDestination, userSchema } from "@sentry/junior-plugin-api";
|
|
46
45
|
import { pathToFileURL } from "node:url";
|
|
@@ -55,6 +54,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
55
54
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
56
55
|
import { bodyLimit } from "hono/body-limit";
|
|
57
56
|
import { createAuthMiddleware } from "better-auth/api";
|
|
57
|
+
import { getSessionCookie } from "better-auth/cookies";
|
|
58
58
|
import { betterAuth } from "better-auth/minimal";
|
|
59
59
|
// src/chat/events/timers.ts
|
|
60
60
|
/** Publish a bounded batch of due timers; the mailbox owns agent execution. */
|
|
@@ -6424,7 +6424,6 @@ function mcpBrief(brief, updatedAt) {
|
|
|
6424
6424
|
intent: brief.intent,
|
|
6425
6425
|
outcome: brief.outcome,
|
|
6426
6426
|
decisions: brief.decisions,
|
|
6427
|
-
openDecisions: brief.openDecisions,
|
|
6428
6427
|
facts: brief.facts,
|
|
6429
6428
|
links: brief.links,
|
|
6430
6429
|
updatedAt
|
|
@@ -7183,6 +7182,11 @@ async function handleAcpAuthorizationPage(args) {
|
|
|
7183
7182
|
*/
|
|
7184
7183
|
const DEFAULT_AUTH_PATH = "/api/auth";
|
|
7185
7184
|
const DEFAULT_SESSION_MAX_AGE_SECONDS = 28800;
|
|
7185
|
+
/** Set one attribute on the request span that runs this sign-in step. */
|
|
7186
|
+
function setRequestSpanAttribute(key, value) {
|
|
7187
|
+
const span = getActiveSpan();
|
|
7188
|
+
if (span) (0, sentry_exports.getRootSpan)(span).setAttribute(key, value);
|
|
7189
|
+
}
|
|
7186
7190
|
const googleClaimsSchema = z.object({
|
|
7187
7191
|
sub: z.string().min(1),
|
|
7188
7192
|
email: z.string().optional(),
|
|
@@ -7285,12 +7289,14 @@ function createBetterAuth(config) {
|
|
|
7285
7289
|
if (!created.user.emailVerified || !email) return;
|
|
7286
7290
|
const google = (await ctx.context.internalAdapter.findAccounts(created.user.id)).find((account) => account.providerId === "google");
|
|
7287
7291
|
if (!google) throw new Error("Google sign-in has no Google account");
|
|
7288
|
-
|
|
7292
|
+
const nowMs = Date.now();
|
|
7293
|
+
const previousSignedInAtMs = await recordGoogleSignIn(getSqlExecutor(), {
|
|
7289
7294
|
email,
|
|
7290
7295
|
subject: google.accountId,
|
|
7291
7296
|
displayName: created.user.name || void 0,
|
|
7292
7297
|
avatarUrl: parseAvatarUrl(created.user.image, GOOGLE_IDENTITY_PROVIDER)
|
|
7293
|
-
});
|
|
7298
|
+
}, nowMs);
|
|
7299
|
+
if (previousSignedInAtMs !== void 0) setRequestSpanAttribute("app.sign_in.previous_age_s", Math.round((nowMs - previousSignedInAtMs) / 1e3));
|
|
7294
7300
|
}) }
|
|
7295
7301
|
});
|
|
7296
7302
|
}
|
|
@@ -7316,6 +7322,7 @@ function createSignInAuth(config) {
|
|
|
7316
7322
|
} };
|
|
7317
7323
|
},
|
|
7318
7324
|
async signInWithGoogle(request, callbackURL, errorCallbackURL) {
|
|
7325
|
+
setRequestSpanAttribute("app.sign_in.session_cookie", getSessionCookie(request) ? "present" : "missing");
|
|
7319
7326
|
const result = await getAuth().api.signInSocial({
|
|
7320
7327
|
body: {
|
|
7321
7328
|
provider: "google",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveLocalScheduleAtMs, i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
2
|
-
import { r as actorIdentitySchema } from "./conversation-
|
|
3
|
-
import
|
|
2
|
+
import { r as actorIdentitySchema } from "./conversation-DNtcULyX.js";
|
|
3
|
+
import * as z from "zod";
|
|
4
4
|
import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
5
5
|
// src/chat/scheduled-automations/schedule-intent.ts
|
|
6
6
|
/**
|
package/dist/{background-compaction-queue-CcbuLJrZ.js → background-compaction-queue-oegyrxSe.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-3AZ11aSM.js";
|
|
2
|
+
import { E as withSpan, m as logInfo, p as logException } from "./logging-DHzrobea.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod";
|
|
6
6
|
import { QueueClient, handleCallback, registerDevConsumer } from "@vercel/queue";
|
|
7
7
|
/** Validate the v2 conversation work hint sent through Vercel Queue. */
|
|
8
8
|
const conversationQueueMessageSchema = z.object({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as completeObject } from "./client-
|
|
2
|
-
import { U as parseBriefInput, c as conversationDetailReportSchema, u as conversationEventPageSchema, z as briefCodeChangeSchema } from "./conversation-
|
|
3
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt
|
|
1
|
+
import { i as completeObject } from "./client-DkG0Tj53.js";
|
|
2
|
+
import { U as parseBriefInput, c as conversationDetailReportSchema, u as conversationEventPageSchema, z as briefCodeChangeSchema } from "./conversation-DNtcULyX.js";
|
|
3
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DI6KCtwb.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import * as z from "zod";
|
|
7
7
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
8
8
|
// src/chat/briefs/render.ts
|
|
9
9
|
function list(items, empty) {
|
|
@@ -76,10 +76,6 @@ function renderBriefMarkdown(args) {
|
|
|
76
76
|
"",
|
|
77
77
|
list(brief.decisions.filter((decision) => decision.kind === "assumed").map((decision) => `${decision.text}${decision.by ? ` — ${decision.by}` : ""}`), "None."),
|
|
78
78
|
"",
|
|
79
|
-
"## Open decisions",
|
|
80
|
-
"",
|
|
81
|
-
list(brief.openDecisions.map((decision) => `${decision.text}${decision.owner ? ` — ${decision.owner}` : ""}`), "None."),
|
|
82
|
-
"",
|
|
83
79
|
"## Facts",
|
|
84
80
|
"",
|
|
85
81
|
list(brief.facts, "None."),
|
|
@@ -267,7 +263,7 @@ async function parseRunOptions(argv) {
|
|
|
267
263
|
* token.
|
|
268
264
|
*/
|
|
269
265
|
async function configuredBriefModelId() {
|
|
270
|
-
const { botConfig } = await import("./config-
|
|
266
|
+
const { botConfig } = await import("./config-3AZ11aSM.js").then((n) => n.r);
|
|
271
267
|
return botConfig.fastModelId;
|
|
272
268
|
}
|
|
273
269
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-EjhulgQW.js";
|
|
3
3
|
// src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
1
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-B229gXUY.js";
|
|
2
2
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
|
|
|
99
99
|
async function configureLocalChatPlugins(pluginSet) {
|
|
100
100
|
const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
|
|
101
101
|
import("../plugins-HYh_JOdw.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../viewer-
|
|
102
|
+
import("../projection-Bhz1tp0G.js").then((n) => n.kn),
|
|
103
|
+
import("../catalog-runtime-ClKzLvbN.js").then((n) => n.t),
|
|
104
|
+
import("../validation-DrR0leBT.js").then((n) => n.r),
|
|
105
|
+
import("../viewer-DWlpSFdj.js").then((n) => n.v)
|
|
106
106
|
]);
|
|
107
107
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
108
108
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -152,18 +152,18 @@ function localDevServerUrl() {
|
|
|
152
152
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
153
153
|
defaultStateAdapterForLocalChat();
|
|
154
154
|
await configureLocalChatPlugins(pluginSet);
|
|
155
|
-
const { setBriefsConfig } = await import("../projection-
|
|
155
|
+
const { setBriefsConfig } = await import("../projection-Bhz1tp0G.js").then((n) => n.Vn);
|
|
156
156
|
setBriefsConfig({ enabled: true });
|
|
157
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
158
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
159
|
-
const { createLocalOAuthState } = await import("../oauth-relay-
|
|
160
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
161
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
162
|
-
const { bindMessageAgent } = await import("../message-
|
|
163
|
-
const { createChildConversationWorker } = await import("../result-
|
|
164
|
-
const { skipInputBeforeConversationStop } = await import("../session-stop-
|
|
157
|
+
const { runLocalAgentTurn } = await import("../runner-D22bsBDS.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-EWdpj0_y.js");
|
|
159
|
+
const { createLocalOAuthState } = await import("../oauth-relay-D6xxVywK.js").then((n) => n.t);
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-BG5GYacQ.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-Cl8WS7zi.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-LR8z5jXJ.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker } = await import("../result-BoD0jevy.js").then((n) => n.i);
|
|
164
|
+
const { skipInputBeforeConversationStop } = await import("../session-stop-CHSYB2uw.js").then((n) => n.r);
|
|
165
165
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
166
|
-
const { processConversationWork } = await import("../worker-
|
|
166
|
+
const { processConversationWork } = await import("../worker-CoVKgJ-O.js").then((n) => n.n);
|
|
167
167
|
let agentRunner;
|
|
168
168
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
169
169
|
if (!agentRunner) throw new Error("Local agent runner is not ready");
|
package/dist/cli/check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-DHzrobea.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-EjhulgQW.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-BGJr6xtW.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/cli/main.js
CHANGED
|
@@ -25,13 +25,13 @@ async function runChat(argv, pluginSet) {
|
|
|
25
25
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
26
26
|
}
|
|
27
27
|
async function runAdmin(argv) {
|
|
28
|
-
return await (await import("../admin-
|
|
28
|
+
return await (await import("../admin-DQpHx6Og.js")).runAdmin(argv);
|
|
29
29
|
}
|
|
30
30
|
async function runServiceAccount(argv) {
|
|
31
|
-
return await (await import("../service-account-
|
|
31
|
+
return await (await import("../service-account-xo-CeMqI.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-BwzGWJgR.js")).runBriefs(argv);
|
|
35
35
|
}
|
|
36
36
|
function topLevelCommand(argv) {
|
|
37
37
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Aa as createPluginLogger, Rn as setPlugins, zn as validatePlugins } from "../projection-
|
|
2
|
-
import { S as getDb } from "../viewer-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { Aa as createPluginLogger, Rn as setPlugins, zn as validatePlugins } from "../projection-Bhz1tp0G.js";
|
|
2
|
+
import { S as getDb } from "../viewer-DWlpSFdj.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-ClKzLvbN.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-DrR0leBT.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-HYh_JOdw.js";
|
|
6
6
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import { stderr, stdout } from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ai as create } from "../projection-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
3
|
-
import { t as disconnectStateAdapter } from "../adapter-
|
|
4
|
-
import { n as resolve } from "../resolve-
|
|
1
|
+
import { ai as create } from "../projection-Bhz1tp0G.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-ClKzLvbN.js";
|
|
3
|
+
import { t as disconnectStateAdapter } from "../adapter-RVQGEa98.js";
|
|
4
|
+
import { n as resolve } from "../resolve-Cw6OW4Fj.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_RUNTIME = "node22";
|
|
7
7
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
package/dist/cli/upgrade.d.ts
CHANGED
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { t as createJuniorSqlExecutor } from "../executor-
|
|
3
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
1
|
+
import { i as getChatConfig } from "../config-3AZ11aSM.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-DLKnzP6S.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-EjhulgQW.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-HYh_JOdw.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
2
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
1
|
+
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-DHzrobea.js";
|
|
2
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-DAgeBGLN.js";
|
|
3
3
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
4
4
|
import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
5
5
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { c as resolveGatewayModel, w as toOptionalTrimmed } from "./client-
|
|
2
|
+
import { c as resolveGatewayModel, w as toOptionalTrimmed } from "./client-DkG0Tj53.js";
|
|
3
3
|
import { AwsClient } from "aws4fetch";
|
|
4
|
-
import
|
|
4
|
+
import * as z from "zod";
|
|
5
5
|
// src/chat/attachments/s3.ts
|
|
6
6
|
function readRequiredSetting(env, name) {
|
|
7
7
|
const value = toOptionalTrimmed(env[name]);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { X as loadTurnCheckpoint, et as failTurnRecord, gi as startOAuthFlow, tt as getTurnRecord } from "./projection-
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { C as getSqlExecutor, R as deleteProviderIdentityForSlackUser, y as getConversationEventStore, z as deleteProviderIdentityForUser } from "./viewer-
|
|
4
|
-
import { u as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-
|
|
7
|
-
import { r as getStateAdapter } from "./adapter-
|
|
8
|
-
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
9
|
-
import { m as ensureConversationWake, w as requestConversationWork } from "./store-
|
|
10
|
-
import { n as resolveTurnSessionRouting } from "./turn-session-routing-
|
|
1
|
+
import { X as loadTurnCheckpoint, et as failTurnRecord, gi as startOAuthFlow, tt as getTurnRecord } from "./projection-Bhz1tp0G.js";
|
|
2
|
+
import { n as botConfig } from "./config-3AZ11aSM.js";
|
|
3
|
+
import { C as getSqlExecutor, R as deleteProviderIdentityForSlackUser, y as getConversationEventStore, z as deleteProviderIdentityForUser } from "./viewer-DWlpSFdj.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-EjhulgQW.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-ClKzLvbN.js";
|
|
6
|
+
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-B229gXUY.js";
|
|
7
|
+
import { r as getStateAdapter } from "./adapter-RVQGEa98.js";
|
|
8
|
+
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-oegyrxSe.js";
|
|
9
|
+
import { m as ensureConversationWake, w as requestConversationWork } from "./store-C4z8gOgZ.js";
|
|
10
|
+
import { n as resolveTurnSessionRouting } from "./turn-session-routing-RBtUe-3y.js";
|
|
11
11
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
12
|
-
import
|
|
12
|
+
import * as z from "zod";
|
|
13
13
|
// src/chat/task-execution/authorized-turn.ts
|
|
14
14
|
/**
|
|
15
15
|
* OAuth callbacks save readiness, not agent history. The conversation worker
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES, v as usageSchema } from "./media-
|
|
2
|
-
import
|
|
1
|
+
import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES, v as usageSchema } from "./media-Dq9_svfQ.js";
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
import { codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, objectFactFields, objectTypeSchema } from "@sentry/junior-plugin-api";
|
|
4
4
|
// src/chat/briefs/schema.ts
|
|
5
5
|
/**
|
|
@@ -75,14 +75,18 @@ const conversationBriefSchema = z.object({
|
|
|
75
75
|
"assumed"
|
|
76
76
|
])
|
|
77
77
|
}).strict()).max(20),
|
|
78
|
-
openDecisions: z.array(z.object({
|
|
79
|
-
text: lineSchema,
|
|
80
|
-
owner: lineSchema.optional()
|
|
81
|
-
}).strict()).max(20),
|
|
82
78
|
facts: z.array(lineSchema).max(30),
|
|
83
79
|
links: z.array(briefLinkSchema).max(40),
|
|
84
80
|
keywords: z.array(z.string().trim().toLowerCase().min(1).max(400)).max(12)
|
|
85
81
|
}).strict();
|
|
82
|
+
/** Parse a stored Brief row, dropping fields that older versions wrote. */
|
|
83
|
+
function parseStoredBrief(content) {
|
|
84
|
+
if (content && typeof content === "object" && "openDecisions" in content) {
|
|
85
|
+
const { openDecisions: _openDecisions, ...rest } = content;
|
|
86
|
+
return conversationBriefSchema.parse(rest);
|
|
87
|
+
}
|
|
88
|
+
return conversationBriefSchema.parse(content);
|
|
89
|
+
}
|
|
86
90
|
const briefEntrySchema = z.object({
|
|
87
91
|
index: z.number().int().nonnegative(),
|
|
88
92
|
role: z.enum([
|
|
@@ -251,7 +255,7 @@ const reviewItemChangeRecordSchema = z.object({
|
|
|
251
255
|
*
|
|
252
256
|
* `lastReadSeq` is the event sequence of the last transcript row the viewer
|
|
253
257
|
* saw. The server keeps the highest value it receives, so it only moves
|
|
254
|
-
* forward.
|
|
258
|
+
* forward. It is never before the viewer's own latest Message.
|
|
255
259
|
*/
|
|
256
260
|
const conversationReadPositionSchema = z.object({ lastReadSeq: z.number().int().nonnegative() }).strict();
|
|
257
261
|
// src/api/schema/child-agent-totals.ts
|
|
@@ -285,19 +289,27 @@ const conversationAttachmentParamsSchema = z.object({
|
|
|
285
289
|
conversationId: z.string().min(1)
|
|
286
290
|
}).strict();
|
|
287
291
|
const conversationDetailQuerySchema = z.object({
|
|
288
|
-
limit
|
|
292
|
+
/** Omit to get the latest three Turns, up to the default page limit. */
|
|
293
|
+
limit: z.coerce.number().int().min(1).max(1e3).optional(),
|
|
289
294
|
/** Also return `unreadPage` when the detail has an `unreadCursor`. */
|
|
290
295
|
unreadPage: z.stringbool().optional(),
|
|
291
296
|
/**
|
|
292
|
-
* Also return `mailbox`, read before history
|
|
293
|
-
*
|
|
297
|
+
* Also return `mailbox`, read before history. A sent version that still
|
|
298
|
+
* matches gets `{ unchanged: true, mailbox }` instead of 304, so a poll
|
|
299
|
+
* needs one request.
|
|
294
300
|
*/
|
|
295
|
-
mailbox: z.stringbool().optional()
|
|
301
|
+
mailbox: z.stringbool().optional(),
|
|
302
|
+
/**
|
|
303
|
+
* An `appendCursor` from an earlier detail. Events then hold only newer
|
|
304
|
+
* events, with `appended: true`, while the cursor still applies.
|
|
305
|
+
*/
|
|
306
|
+
after: z.string().min(1).optional()
|
|
296
307
|
}).strict();
|
|
297
|
-
const conversationEventsLimitSchema = z.coerce.number().int().min(1).max(1e3).default(
|
|
308
|
+
const conversationEventsLimitSchema = z.coerce.number().int().min(1).max(1e3).default(150);
|
|
298
309
|
/**
|
|
299
310
|
* Page toward the start with `before`, toward the latest with `after`, or
|
|
300
|
-
* both ways from one event with `around`.
|
|
311
|
+
* both ways from one event with `around`. A link target asks for the page
|
|
312
|
+
* around one event by its `event` seq, or around the start of a `turn`.
|
|
301
313
|
*/
|
|
302
314
|
const conversationEventsQuerySchema = z.union([
|
|
303
315
|
z.object({
|
|
@@ -311,6 +323,14 @@ const conversationEventsQuerySchema = z.union([
|
|
|
311
323
|
z.object({
|
|
312
324
|
around: z.string().min(1),
|
|
313
325
|
limit: conversationEventsLimitSchema
|
|
326
|
+
}).strict(),
|
|
327
|
+
z.object({
|
|
328
|
+
event: z.coerce.number().int().min(0),
|
|
329
|
+
limit: conversationEventsLimitSchema
|
|
330
|
+
}).strict(),
|
|
331
|
+
z.object({
|
|
332
|
+
turn: z.string().min(1),
|
|
333
|
+
limit: conversationEventsLimitSchema
|
|
314
334
|
}).strict()
|
|
315
335
|
]);
|
|
316
336
|
const conversationFeedQuerySchema = z.object({
|
|
@@ -830,6 +850,17 @@ const conversationDetailReportSchema = conversationSummaryReportSchema.extend({
|
|
|
830
850
|
*/
|
|
831
851
|
authors: z.record(z.string(), actorIdentitySchema).optional(),
|
|
832
852
|
events: z.array(conversationReportEventSchema),
|
|
853
|
+
/**
|
|
854
|
+
* Events hold only the events after the request's `after` cursor. The
|
|
855
|
+
* report omits `previousCursor` and `unreadCursor`: the reader keeps its
|
|
856
|
+
* own.
|
|
857
|
+
*/
|
|
858
|
+
appended: z.literal(true).optional(),
|
|
859
|
+
/**
|
|
860
|
+
* Pass as `after` on the next detail read to get only newer events.
|
|
861
|
+
* Absent after a purge.
|
|
862
|
+
*/
|
|
863
|
+
appendCursor: z.string().min(1).optional(),
|
|
833
864
|
eventHistory: conversationEventHistorySchema,
|
|
834
865
|
previousCursor: z.string().min(1).optional(),
|
|
835
866
|
generatedAt: z.string(),
|
|
@@ -841,4 +872,4 @@ const conversationFeedSchema = z.object({
|
|
|
841
872
|
source: z.literal("conversation_index"),
|
|
842
873
|
generatedAt: z.string()
|
|
843
874
|
}).strict();
|
|
844
|
-
export { messageCardRef as A, briefLinkSchema as B, createConversationMessageBodySchema as C, conversationReadPositionSchema as D, conversationChildAgentTotalsSchema as E, MAX_INPUT_IMAGES as F, conversationBriefSchema as H, MAX_INPUT_IMAGE_BYTES as I, messageAttachmentSchema as L, readMessageCardRefs as M, removedCardSchema as N, reviewItemChangeRecordSchema as O, resolveMessageCards as P, readMessageAttachments as R, createConversationBodySchema as S, forkConversationResponseSchema as T, parseBriefInput as U, briefOutcomeStatusSchema as V, conversationReportMessageEventSchema as _, conversationAttachmentParamsSchema as a, conversationSurfaceSchema as b, conversationDetailReportSchema as c, conversationEventsQuerySchema as d, conversationFeedQuerySchema as f, conversationReportEventSchema as g, conversationReportEventDataSchema as h, conversationActivityPreviewSchema as i, messageCardText as j, annotationCard as k, conversationEventHistorySchema as l, conversationParamsSchema as m, acceptedConversationMessageSchema as n, conversationAuxiliaryCostsSchema as o, conversationFeedSchema as p, actorIdentitySchema as r, conversationDetailQuerySchema as s, CONVERSATION_DETAIL_VERSION_HEADER as t, conversationEventPageSchema as u, conversationReportStatusSchema as v, forkConversationBodySchema as w, conversationUsageSchema as x, conversationSummaryReportSchema as y, briefCodeChangeSchema as z };
|
|
875
|
+
export { messageCardRef as A, briefLinkSchema as B, createConversationMessageBodySchema as C, conversationReadPositionSchema as D, conversationChildAgentTotalsSchema as E, MAX_INPUT_IMAGES as F, conversationBriefSchema as H, MAX_INPUT_IMAGE_BYTES as I, messageAttachmentSchema as L, readMessageCardRefs as M, removedCardSchema as N, reviewItemChangeRecordSchema as O, resolveMessageCards as P, readMessageAttachments as R, createConversationBodySchema as S, forkConversationResponseSchema as T, parseBriefInput as U, briefOutcomeStatusSchema as V, parseStoredBrief as W, conversationReportMessageEventSchema as _, conversationAttachmentParamsSchema as a, conversationSurfaceSchema as b, conversationDetailReportSchema as c, conversationEventsQuerySchema as d, conversationFeedQuerySchema as f, conversationReportEventSchema as g, conversationReportEventDataSchema as h, conversationActivityPreviewSchema as i, messageCardText as j, annotationCard as k, conversationEventHistorySchema as l, conversationParamsSchema as m, acceptedConversationMessageSchema as n, conversationAuxiliaryCostsSchema as o, conversationFeedSchema as p, actorIdentitySchema as r, conversationDetailQuerySchema as s, CONVERSATION_DETAIL_VERSION_HEADER as t, conversationEventPageSchema as u, conversationReportStatusSchema as v, forkConversationBodySchema as w, conversationUsageSchema as x, conversationSummaryReportSchema as y, briefCodeChangeSchema as z };
|
package/dist/{conversation-pending-messages-CnBvE6-6.js → conversation-pending-messages-LlFnr9-m.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as messageAttachmentSchema, O as reviewItemChangeRecordSchema, c as conversationDetailReportSchema, r as actorIdentitySchema } from "./conversation-
|
|
2
|
-
import
|
|
1
|
+
import { L as messageAttachmentSchema, O as reviewItemChangeRecordSchema, c as conversationDetailReportSchema, r as actorIdentitySchema } from "./conversation-DNtcULyX.js";
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
// src/reporting-schema.ts
|
|
4
4
|
const healthReportSchema = z.object({
|
|
5
5
|
status: z.literal("ok"),
|
|
@@ -152,6 +152,14 @@ const conversationPendingMessagesReportSchema = z.object({
|
|
|
152
152
|
}).strict();
|
|
153
153
|
/** Detail report with the mailbox that was read before its history. */
|
|
154
154
|
const conversationDetailWithMailboxReportSchema = conversationDetailReportSchema.extend({ mailbox: conversationPendingMessagesReportSchema });
|
|
155
|
+
/**
|
|
156
|
+
* Answer to a `mailbox=true` poll whose detail version still matches. The
|
|
157
|
+
* client keeps its cached detail and takes the new mailbox.
|
|
158
|
+
*/
|
|
159
|
+
const conversationUnchangedDetailWithMailboxSchema = z.object({
|
|
160
|
+
mailbox: conversationPendingMessagesReportSchema,
|
|
161
|
+
unchanged: z.literal(true)
|
|
162
|
+
}).strict();
|
|
155
163
|
/** Optional filters for cancelling accepted mailbox rows. */
|
|
156
164
|
const cancelConversationPendingMessagesBodySchema = z.object({
|
|
157
165
|
inboundMessageIds: z.array(z.string().min(1)).min(1).optional(),
|
|
@@ -170,4 +178,4 @@ const steerConversationPendingMessagesResponseSchema = z.object({
|
|
|
170
178
|
conversationId: z.string().min(1),
|
|
171
179
|
steeredInboundMessageIds: z.array(z.string().min(1))
|
|
172
180
|
}).strict();
|
|
173
|
-
export {
|
|
181
|
+
export { pluginSchema as _, conversationPendingMessageDeliverySchema as a, skillReportSchema as b, conversationUnchangedDetailWithMailboxSchema as c, apiErrorSchema as d, healthReportSchema as f, pluginPackageContentReportSchema as g, pluginPackageContentItemReportSchema as h, conversationPendingAuthorizationSchema as i, steerConversationPendingMessagesBodySchema as l, pluginOperationalReportSchema as m, cancelConversationPendingMessagesResponseSchema as n, conversationPendingMessageSchema as o, pluginOperationalReportFeedSchema as p, conversationDetailWithMailboxReportSchema as r, conversationPendingMessagesReportSchema as s, cancelConversationPendingMessagesBodySchema as t, steerConversationPendingMessagesResponseSchema as u, pluginsSchema as v, skillReportsSchema as x, runtimeInfoReportSchema as y };
|