@sentry/junior 0.270.0 → 0.271.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.
Files changed (69) hide show
  1. package/dist/{actor-CP9K2Idu.js → actor-B4DYygOB.js} +1 -1
  2. package/dist/{adapter-BQNTKVTF.js → adapter-Bqbtr1RV.js} +1 -1
  3. package/dist/{admin-CKVEoXa4.js → admin-CWBjzyN0.js} +1 -1
  4. package/dist/{agent-runner-MSQSMFkq.js → agent-runner-BiHsH8O_.js} +36 -29
  5. package/dist/api/schema.d.ts +1 -1
  6. package/dist/api/schema.js +2 -2
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +34 -32
  9. package/dist/{app-Bz8t4P8p.d.ts → app-C81xfpNa.d.ts} +8 -2
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +72 -31
  12. package/dist/{interruption-marker-CdblrIQK.js → assistant-reply-DgtX9DaJ.js} +2 -8
  13. package/dist/{briefs-DNFzFFVx.js → briefs-0FeSJHQ3.js} +2 -2
  14. package/dist/{catalog-runtime-Bdym_wKy.js → catalog-runtime-Bw9kjGVu.js} +1 -1
  15. package/dist/cli/chat.js +14 -14
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/main.js +3 -3
  18. package/dist/cli/plugins.js +4 -4
  19. package/dist/cli/snapshot-create.js +4 -4
  20. package/dist/cli/upgrade.d.ts +1 -1
  21. package/dist/cli/upgrade.js +3 -3
  22. package/dist/{client-B2MjENki.js → client-B0jlQSgO.js} +2 -2
  23. package/dist/{config-Dm3pWRqY.js → config-DrAeD8sr.js} +2 -2
  24. package/dist/{connections-0BBhiD-p.js → connections-BzN2K0G9.js} +10 -10
  25. package/dist/{conversation-privacy-C1pJ89rs.js → conversation-privacy-D1NhUxyo.js} +1 -1
  26. package/dist/{credential-sync-BRiWYs6_.js → credential-sync-DpNWl4yy.js} +15 -15
  27. package/dist/{credentialed-BeBaJMZ_.js → credentialed-mh7HBqey.js} +31 -24
  28. package/dist/{db-BYOuu6v2.d.ts → db-DSabI7jJ.d.ts} +1 -1
  29. package/dist/{executor-BB6eJkD4.js → executor-C2cRw0hZ.js} +7 -2
  30. package/dist/instrumentation.js +2 -2
  31. package/dist/{job-queue-DiaXoSDg.js → job-queue-CEeLYkSj.js} +2 -2
  32. package/dist/{list-BTDRxkOg.js → list-DjJJ5K0x.js} +26 -26
  33. package/dist/{logging-C6EdT6PP.js → logging-DuwXUuIY.js} +1 -1
  34. package/dist/{message-DsjiWRVg.js → message-CRe3WBKc.js} +4 -4
  35. package/dist/nitro.d.ts +1 -1
  36. package/dist/nitro.js +3 -3
  37. package/dist/{oauth-callback-server-CjFFVGqa.js → oauth-callback-server-oM5TJt34.js} +2 -2
  38. package/dist/{registry-CndmkP2P.js → registry-BPtbAVFo.js} +2 -2
  39. package/dist/{reporting-window-DRCi1Ls_.js → reporting-window-DgHgwQB3.js} +6 -1
  40. package/dist/{resolve-BkAA1wH7.js → resolve-D44G1jJm.js} +3 -3
  41. package/dist/{result-9TJTpuYP.js → result-CvP8c5bb.js} +9 -9
  42. package/dist/{runner-BmKLSyJm.js → runner-FIGIKvk2.js} +10 -10
  43. package/dist/{sandbox-egress-signals-CjLaogMo.js → sandbox-egress-signals-C_JzucwP.js} +1 -1
  44. package/dist/{schema-DNLJ_MzW.js → schema-DKZgO-xf.js} +10 -5
  45. package/dist/{schema-WayPSHFu.d.ts → schema-DPCvePop.d.ts} +13 -2
  46. package/dist/{service-account-DlhYl-Mu.js → service-account-1mJGRAvx.js} +3 -3
  47. package/dist/{service-account-D6e9cVmH.js → service-account-CHO3YXpt.js} +3 -3
  48. package/dist/{session-stop-MZRgYqYH.js → session-stop-DuUB1rwQ.js} +41 -139
  49. package/dist/{skills-BggTR_ue.js → skills-DHK7L9Eo.js} +2 -2
  50. package/dist/{spawn-DmtlcAT_.js → spawn-CKl_ySIq.js} +2 -2
  51. package/dist/{store-BeWGgaMA.js → store-BF2XEeQz.js} +3 -3
  52. package/dist/{store-Byarin7b.js → store-Di0E4EvU.js} +3 -3
  53. package/dist/{task-queue-Dt1_ZoI_.js → task-queue-CC7IFtbT.js} +3 -3
  54. package/dist/{task-runner-DyKqAPpm.js → task-runner-DKZtMFwa.js} +7 -7
  55. package/dist/{thread-state-BHBLMvgb.js → thread-state-BQ1T3eeF.js} +5 -5
  56. package/dist/{turn-failure-response-DWXy_0oJ.js → turn-failure-response-B5eSFoHn.js} +14 -9
  57. package/dist/{turn-lifecycle-AiXkVqCB.js → turn-lifecycle-CTLEIEOn.js} +1 -1
  58. package/dist/{turn-session-routing-B9KLBhaT.js → turn-session-routing-BFVp8TbU.js} +11 -11
  59. package/dist/{validation-BW60Vtx_.js → validation-Cjo-3yt3.js} +1 -1
  60. package/dist/{version-CivPYmkH.js → version-D30MBLLw.js} +1 -1
  61. package/dist/version.js +1 -1
  62. package/dist/{viewer-BTgAfdUg.js → viewer-D3jhuP66.js} +4 -4
  63. package/dist/{work-Bjm52fHo.js → work-CL9QwQcl.js} +10 -10
  64. package/dist/{worker-CMbgtHLu.js → worker-S2P7IJDI.js} +6 -6
  65. package/migrations/0071_review_item_turn.sql +1 -0
  66. package/migrations/AGENTS.md +3 -12
  67. package/migrations/meta/0071_snapshot.json +4003 -0
  68. package/migrations/meta/_journal.json +7 -0
  69. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
- import { i as getChatConfig } from "./config-Dm3pWRqY.js";
2
- import { E as withSpan, m as logInfo, p as logException } from "./logging-C6EdT6PP.js";
1
+ import { i as getChatConfig } from "./config-DrAeD8sr.js";
2
+ import { E as withSpan, m as logInfo, p as logException } from "./logging-DuwXUuIY.js";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { z } from "zod";
5
5
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
@@ -1,37 +1,37 @@
1
- import { $t as appendThreadContextMessages, An as recordTurnSummary, Ar as trimTrailingAssistantMessages, At as loadProjection, Cn as loadTurnCheckpoint, Dn as failTurnRecord, En as completeTurnRecord, Et as commitMessages, Fr as buildDeterministicTurnId, Gt as hydrateConversationMessages, Jt as persistConversationMessageSummaries, Kt as persistConversationMessages, Lr as decideSubscribedThreadReply, Lt as recordAuthorizationCompleted, On as getTurnRecord, Ot as loadConversationProjection, Pr as buildDeterministicAssistantMessageId, Rr as getSubscribedReplyPreflightDecision, Tn as abandonTurnRecord, Tt as commitAcceptedReply, Vt as recordSubscribedReplyRoute, Wr as isExperimentalFeatureEnabled, Yr as piMessageFromHistoryItem, Yt as resolveConversationTitle, Zt as fallbackShortTitle, _ as markDispatchCompleted, a as confirmDispatchMailboxAppend, an as markConversationMessage, cn as turnHasReply, d as getDispatchTurnId, dn as PluginCredentialFailureError, en as buildConversationContext, fr as buildTurnErrorResponse, g as markDispatchBlocked, gr as persistWithRetry, h as markDispatchAwaitingResume, hn as AuthorizationFlowDisabledError, i as claimDispatchMailboxAppend, in as isHumanConversationMessage, j as readAutomationTitlesByConversationId, jt as loadTurnProjection, kn as listTurnSummaries, l as getDispatchInputMessageId, ln as upsertConversationMessage, n as resolveTurnSessionRouting, nn as estimateConversationContextTokens, on as normalizeConversationText, p as isTerminalDispatchStatus, qr as configValueSchema, rn as getConversationMessageSlackTs, s as getDispatchConversationId, sn as recordDeliveredAssistantMessage, t as resolveConversationRouting, tn as createConversationMemoryService, u as getDispatchRecord, v as markDispatchFailed, wn as saveTurnCheckpoint, xn as wasPendingAuthStopped, y as markDispatchRunning, yn as clearPendingAuth, zr as getThreadStopDecision } from "./turn-session-routing-B9KLBhaT.js";
2
- import { a as completeText, p as escapeXml, r as completeDecision, y as isProviderRetryError } from "./client-B2MjENki.js";
3
- import { c as getSlackClientSecret, i as getChatConfig, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName, y as createS3AttachmentStorage } from "./config-Dm3pWRqY.js";
4
- import { B as isRecord, E as withSpan, H as toOptionalString, S as setTags, T as withLogContext, V as toOptionalNumber, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-C6EdT6PP.js";
1
+ import { $t as appendThreadContextMessages, An as recordTurnSummary, Ar as trimTrailingAssistantMessages, At as loadProjection, Cn as loadTurnCheckpoint, Dn as failTurnRecord, En as completeTurnRecord, Et as commitMessages, Fr as buildDeterministicTurnId, Gt as hydrateConversationMessages, Jt as persistConversationMessageSummaries, Kt as persistConversationMessages, Lr as decideSubscribedThreadReply, Lt as recordAuthorizationCompleted, On as getTurnRecord, Ot as loadConversationProjection, Pr as buildDeterministicAssistantMessageId, Rr as getSubscribedReplyPreflightDecision, Tn as abandonTurnRecord, Tt as commitAcceptedReply, Vt as recordSubscribedReplyRoute, Wr as isExperimentalFeatureEnabled, Yr as piMessageFromHistoryItem, Yt as resolveConversationTitle, Zt as fallbackShortTitle, _ as markDispatchCompleted, a as confirmDispatchMailboxAppend, an as markConversationMessage, cn as turnHasReply, d as getDispatchTurnId, dn as PluginCredentialFailureError, en as buildConversationContext, fr as buildTurnErrorResponse, g as markDispatchBlocked, gr as persistWithRetry, h as markDispatchAwaitingResume, hn as AuthorizationFlowDisabledError, i as claimDispatchMailboxAppend, in as isHumanConversationMessage, j as readAutomationTitlesByConversationId, jt as loadTurnProjection, kn as listTurnSummaries, l as getDispatchInputMessageId, ln as upsertConversationMessage, n as resolveTurnSessionRouting, nn as estimateConversationContextTokens, on as normalizeConversationText, p as isTerminalDispatchStatus, qr as configValueSchema, rn as getConversationMessageSlackTs, s as getDispatchConversationId, sn as recordDeliveredAssistantMessage, t as resolveConversationRouting, tn as createConversationMemoryService, u as getDispatchRecord, v as markDispatchFailed, wn as saveTurnCheckpoint, xn as wasPendingAuthStopped, y as markDispatchRunning, yn as clearPendingAuth, zr as getThreadStopDecision } from "./turn-session-routing-BFVp8TbU.js";
2
+ import { a as completeText, p as escapeXml, r as completeDecision, y as isProviderRetryError } from "./client-B0jlQSgO.js";
3
+ import { c as getSlackClientSecret, i as getChatConfig, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName, y as createS3AttachmentStorage } from "./config-DrAeD8sr.js";
4
+ import { B as isRecord, E as withSpan, H as toOptionalString, S as setTags, T as withLogContext, V as toOptionalNumber, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-DuwXUuIY.js";
5
5
  import { i as getActiveSpan, r as continueTrace } from "./sentry-MDkYAVPV.js";
6
6
  import { i as defaultModelId, r as boundProfile, s as modelIdForProfile } from "./model-profile-B998sjVd.js";
7
- import { f as parseSlackTeamId, i as isActorUserId, m as parseSlackMessageTs, n as createSlackActor, o as isUserActor, r as createSlackResumeActor, s as parseActorUserId, t as createActor, u as parseSlackChannelId } from "./actor-CP9K2Idu.js";
8
- import { C as getSqlExecutor, E as loadConversationSlackTenantIds, H as parseSessionSource, M as resolveActorIdentityId, N as saveActorAvatar, S as getDb, T as withConversationEventLock, U as addAgentTurnUsage, Y as createSlackDestination, Z as requireSlackDestination, f as identityAvatarUrl, h as readUserAvatarUrls, k as locationFromRow, q as hasAgentTurnUsage, x as getConversationStore, y as getConversationEventStore } from "./viewer-BTgAfdUg.js";
7
+ import { f as parseSlackTeamId, h as parseSlackMessageTs, i as isActorUserId, n as createSlackActor, o as isUserActor, r as createSlackResumeActor, s as parseActorUserId, t as createActor, u as parseSlackChannelId } from "./actor-B4DYygOB.js";
8
+ import { C as getSqlExecutor, E as loadConversationSlackTenantIds, H as parseSessionSource, M as resolveActorIdentityId, N as saveActorAvatar, S as getDb, T as withConversationEventLock, U as addAgentTurnUsage, Y as createSlackDestination, Z as requireSlackDestination, f as identityAvatarUrl, h as readUserAvatarUrls, k as locationFromRow, q as hasAgentTurnUsage, x as getConversationStore, y as getConversationEventStore } from "./viewer-D3jhuP66.js";
9
9
  import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, o as conversationReadColumns, s as juniorConversations } from "./agent-invocations-C1RNOCs8.js";
10
- import { S as juniorCodeChanges, g as juniorConversationBriefs, y as juniorConversationEvents } from "./executor-BB6eJkD4.js";
10
+ import { S as juniorCodeChanges, g as juniorConversationBriefs, y as juniorConversationEvents } from "./executor-C2cRw0hZ.js";
11
11
  import { g as instructionProvenanceFor, m as contextProvenance, r as isVisionImageMediaType } from "./media-U6Tuz6Mi.js";
12
- import { d as actorLogContext, f as credentialContextForActor } from "./registry-CndmkP2P.js";
13
- import { Et as withoutSavedSteeringMessages, F as getConversationInfo, I as listThreadReplies, M as readSlackRawMessageContext, N as resolveSlackChannelIdFromMessage, Nt as shouldEmitDevAgentTrace, P as resolveSlackChannelIdFromThreadId, St as conversationSubtreeColumns, Tt as buildSteeringPiMessage, b as renderBlockText, ct as webActorFromEmail, et as deliverReviewItemChange, i as buildAuthPauseResponse, j as parseSlackThreadId, k as runWithSlackInstallation, kt as RetryableDeliveryError, lt as resolveConversationDestination, mt as storeAttachment, n as executeAgentRun, ot as createConversationId, p as latestProgressStatus, r as createContextCompactor, st as recordWebConversationActivity, t as createAgentRunner, xt as conversationSubtree, y as renderAttachmentText } from "./agent-runner-MSQSMFkq.js";
14
- import { An as normalizeSlackConversationId, Ar as lookupSlackUser, Cn as SlackActionError, Dn as getSlackClient, Dr as listConversationAnnotationsById, Dt as removeReactionFromMessage, E as listReplyActionItems, En as getHeaderString, F as isOnlyAssignee, In as JUNIOR_THREAD_STATE_TTL_MS, M as canActOnReviewItem, Mn as withSlackRetries, P as canReadReviewItem, Sn as verifyTimerWatchCredentialSubject, Sr as recordSlackAttachment, _t as normalizeSlackStatusText, ar as createPluginLogger, b as closeReviewItem, bt as addReactionToMessage, cr as conversationArchivedForEmail, dr as conversationIsMemberRoot, fr as conversationNotArchivedForEmail, jr as createPluginCache, k as takeReviewItem, kn as isDmChannel, lr as conversationArchivedForUser, mr as viewerConversationMembership, n as createUserTokenStore, on as cancelSubscriptions, or as readConversationAccessFromSql, p as getPlugins, pr as conversationNotArchivedForUser, sr as conversationArchiveTimes, ur as conversationHasParticipantUser, w as getReviewItem, wn as downloadPrivateSlackFile, xr as readAttachmentVisionSummary, yr as getSlackFileId, yt as truncateStatusText, z as reviewItemReaderForUser } from "./credentialed-BeBaJMZ_.js";
12
+ import { d as actorLogContext, f as credentialContextForActor } from "./registry-BPtbAVFo.js";
13
+ import { At as RetryableDeliveryError, Ct as conversationSubtreeColumns, Dt as withoutSavedSteeringMessages, Et as buildSteeringPiMessage, F as getConversationInfo, L as listThreadReplies, M as readSlackRawMessageContext, N as resolveSlackChannelIdFromMessage, P as resolveSlackChannelIdFromThreadId, Pt as shouldEmitDevAgentTrace, St as conversationSubtree, b as renderBlockText, ct as recordWebConversationActivity, ht as storeAttachment, i as buildAuthPauseResponse, j as parseSlackThreadId, k as runWithSlackInstallation, lt as webActorFromEmail, n as executeAgentRun, p as latestProgressStatus, r as createContextCompactor, st as createConversationId, t as createAgentRunner, tt as deliverReviewItemChange, ut as resolveConversationDestination, y as renderAttachmentText } from "./agent-runner-BiHsH8O_.js";
14
+ import { An as normalizeSlackConversationId, Ar as lookupSlackUser, Cn as SlackActionError, Dn as getSlackClient, Dr as listConversationAnnotationsById, Dt as removeReactionFromMessage, E as listReplyActionItems, En as getHeaderString, F as isOnlyAssignee, In as JUNIOR_THREAD_STATE_TTL_MS, M as canActOnReviewItem, Mn as withSlackRetries, P as canReadReviewItem, Sn as verifyTimerWatchCredentialSubject, Sr as recordSlackAttachment, _t as normalizeSlackStatusText, ar as createPluginLogger, b as closeReviewItem, bt as addReactionToMessage, cr as conversationArchivedForEmail, dr as conversationIsMemberRoot, fr as conversationNotArchivedForEmail, jr as createPluginCache, k as takeReviewItem, kn as isDmChannel, lr as conversationArchivedForUser, mr as viewerConversationMembership, n as createUserTokenStore, on as cancelSubscriptions, or as readConversationAccessFromSql, p as getPlugins, pr as conversationNotArchivedForUser, sr as conversationArchiveTimes, ur as conversationHasParticipantUser, w as getReviewItem, wn as downloadPrivateSlackFile, xr as readAttachmentVisionSummary, yr as getSlackFileId, yt as truncateStatusText, z as reviewItemReaderForUser } from "./credentialed-mh7HBqey.js";
15
15
  import { a as withLock, n as MUTATION_LOCK_TTL_MS, r as acquireActiveLock } from "./locks-D-0h111u.js";
16
- import { r as getStateAdapter } from "./adapter-BQNTKVTF.js";
16
+ import { r as getStateAdapter } from "./adapter-Bqbtr1RV.js";
17
17
  import { W as readMessageAttachments, g as conversationFeedSchema } from "./conversation-AhOVzN_k.js";
18
18
  import { a as EVENT_SYSTEM_ACTOR, o as isEventConversationMessage } from "./prompt-BPSdXYXV.js";
19
- import { B as ConversationTurnBoundaryError, G as isCooperativeTurnYieldError, H as TurnInputCommitLostError, J as markTurnClosed, K as isTurnInputCommitLostError, U as TurnInputDeferredError, V as CooperativeTurnYieldError, W as getConversationTurnBoundaryError, X as markTurnFailed, Y as markTurnCompleted, Z as startActiveTurn, q as isTurnInputDeferredError } from "./store-Byarin7b.js";
20
- import { r as getAssistantReplyText } from "./interruption-marker-CdblrIQK.js";
21
- import { C as maybePostAutomatedTurnLimitNotice, D as recordFinishedTurnForAutomatedLimit, I as runDispatchOutcome, M as finishedRunReply, N as postsRunNotices, T as sendSlackReply, c as isEventMailboxMetadata, i as skipInputBeforeConversationStop, j as deliversFinalText, l as renderEventBatchText, s as eventBatchMessageEvents, u as timerWatchCredentialSubject, w as resolveSlackReplyTarget, x as joinMailboxText } from "./session-stop-MZRgYqYH.js";
22
- import { _ as isEmptyUserInputAnswer, v as normalizeUserInputAnswer } from "./reporting-window-DRCi1Ls_.js";
23
- import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-DiaXoSDg.js";
24
- import { D as stopConversationWork, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, w as requestConversationWork } from "./store-BeWGgaMA.js";
19
+ import { B as ConversationTurnBoundaryError, G as isCooperativeTurnYieldError, H as TurnInputCommitLostError, J as markTurnClosed, K as isTurnInputCommitLostError, U as TurnInputDeferredError, V as CooperativeTurnYieldError, W as getConversationTurnBoundaryError, X as markTurnFailed, Y as markTurnCompleted, Z as startActiveTurn, q as isTurnInputDeferredError } from "./store-Di0E4EvU.js";
20
+ import { n as getAssistantReplyText } from "./assistant-reply-DgtX9DaJ.js";
21
+ import { C as maybePostAutomatedTurnLimitNotice, D as recordFinishedTurnForAutomatedLimit, I as runDispatchOutcome, M as finishedRunReply, N as postsRunNotices, T as sendSlackReply, c as isEventMailboxMetadata, i as skipInputBeforeConversationStop, j as deliversFinalText, l as renderEventBatchText, s as eventBatchMessageEvents, u as timerWatchCredentialSubject, w as resolveSlackReplyTarget, x as joinMailboxText } from "./session-stop-DuUB1rwQ.js";
22
+ import { _ as isEmptyUserInputAnswer, v as normalizeUserInputAnswer } from "./reporting-window-DgHgwQB3.js";
23
+ import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-CEeLYkSj.js";
24
+ import { D as stopConversationWork, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, w as requestConversationWork } from "./store-BF2XEeQz.js";
25
25
  import { t as healthReportSchema } from "./reporting-schema-CZREhYc-.js";
26
- import { a as withAgentInvocationResultActors, c as resolveMailboxTurnWork, d as legacyWebMailboxMetadataSchema, l as sourceFromTurnInput, n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId, s as getEventBatchDelayMs, t as createChildConversationWorker, u as turnInputFactsFromConversationMessage } from "./result-9TJTpuYP.js";
27
- import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-AiXkVqCB.js";
28
- import { a as AgentRunError, o as executeTurn } from "./work-Bjm52fHo.js";
29
- import { a as persistThreadStateById, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState, t as getLocationConfigurationService } from "./thread-state-BHBLMvgb.js";
30
- import { c as deleteWebAuthorization, d as createPausedTurns, f as getPausedTurnRequest, h as getTurnAuthorization, m as wakePausedTurn, s as createWebAuthorization } from "./connections-0BBhiD-p.js";
31
- import { t as bindMessageAgent } from "./message-DsjiWRVg.js";
32
- import { t as bindSpawnAgent } from "./spawn-DmtlcAT_.js";
33
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DyKqAPpm.js";
34
- import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-DWXy_0oJ.js";
26
+ import { a as withAgentInvocationResultActors, c as resolveMailboxTurnWork, d as legacyWebMailboxMetadataSchema, l as sourceFromTurnInput, n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId, s as getEventBatchDelayMs, t as createChildConversationWorker, u as turnInputFactsFromConversationMessage } from "./result-CvP8c5bb.js";
27
+ import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-CTLEIEOn.js";
28
+ import { a as AgentRunError, o as executeTurn } from "./work-CL9QwQcl.js";
29
+ import { a as persistThreadStateById, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState, t as getLocationConfigurationService } from "./thread-state-BQ1T3eeF.js";
30
+ import { c as deleteWebAuthorization, d as createPausedTurns, f as getPausedTurnRequest, h as getTurnAuthorization, m as wakePausedTurn, s as createWebAuthorization } from "./connections-BzN2K0G9.js";
31
+ import { t as bindMessageAgent } from "./message-CRe3WBKc.js";
32
+ import { t as bindSpawnAgent } from "./spawn-CKl_ySIq.js";
33
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DKZtMFwa.js";
34
+ import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-B5eSFoHn.js";
35
35
  import { z } from "zod";
36
36
  import { createHash } from "node:crypto";
37
37
  import { and, asc, desc, eq, inArray, isNotNull, isNull, ne, or, sql } from "drizzle-orm";
@@ -1,5 +1,5 @@
1
1
  import { _ as withScope, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-MDkYAVPV.js";
2
- import { t as JUNIOR_VERSION } from "./version-CivPYmkH.js";
2
+ import { t as JUNIOR_VERSION } from "./version-D30MBLLw.js";
3
3
  import path from "node:path";
4
4
  import { styleText } from "node:util";
5
5
  import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
@@ -1,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { At as actorFromRun, jt as toolInvocationDestination } from "./agent-runner-MSQSMFkq.js";
3
- import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-Byarin7b.js";
4
- import { r as enqueueAgentMessageToParent } from "./result-9TJTpuYP.js";
5
- import { r as enqueueAgentInvocation } from "./work-Bjm52fHo.js";
2
+ import { Mt as toolInvocationDestination, jt as actorFromRun } from "./agent-runner-BiHsH8O_.js";
3
+ import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-Di0E4EvU.js";
4
+ import { r as enqueueAgentMessageToParent } from "./result-CvP8c5bb.js";
5
+ import { r as enqueueAgentInvocation } from "./work-CL9QwQcl.js";
6
6
  // src/chat/agent-invocations/message.ts
7
7
  var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
8
8
  /**
package/dist/nitro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as JuniorDashboardOptions } from "./app-Bz8t4P8p.js";
1
+ import { i as JuniorDashboardOptions } from "./app-C81xfpNa.js";
2
2
  import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
3
3
  import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
4
4
  type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
package/dist/nitro.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-C6EdT6PP.js";
1
+ import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-DuwXUuIY.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJBompdd.js";
3
- import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-DiaXoSDg.js";
3
+ import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-CEeLYkSj.js";
4
4
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-DOm9Y6qI.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-Dt1_ZoI_.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-CC7IFtbT.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { n as createUserTokenStore } from "./credentialed-BeBaJMZ_.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BRiWYs6_.js";
1
+ import { n as createUserTokenStore } from "./credentialed-mh7HBqey.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DpNWl4yy.js";
3
3
  import { createServer } from "node:http";
4
4
  // src/chat/local/oauth-callback-server.ts
5
5
  const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
@@ -1,5 +1,5 @@
1
- import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-C6EdT6PP.js";
2
- import { o as isUserActor, s as parseActorUserId } from "./actor-CP9K2Idu.js";
1
+ import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DuwXUuIY.js";
2
+ import { o as isUserActor, s as parseActorUserId } from "./actor-B4DYygOB.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
4
4
  import path from "node:path";
5
5
  import { z } from "zod";
@@ -30,7 +30,8 @@ const labelSchema = z.string().trim().min(1).max(USER_INPUT_LIMITS.maxLabelChars
30
30
  const descriptionSchema = z.string().trim().min(1).max(USER_INPUT_LIMITS.maxDescriptionChars).optional();
31
31
  const optionSchema = z.object({
32
32
  label: labelSchema.describe("Short choice text, such as `Accept` or `Decline`. The answer uses this exact text."),
33
- description: descriptionSchema.describe("Optional short note about what this choice does.")
33
+ description: descriptionSchema.describe("Optional short note about what this choice does."),
34
+ recommended: z.boolean().optional().describe("Set true on the choice that you recommend, and say why in its description. A `choice` field can recommend one option.")
34
35
  });
35
36
  const fieldBase = {
36
37
  id: z.string().regex(/^[a-z][a-z0-9_]{0,31}$/).describe("Stable key for this field, such as `approach`."),
@@ -71,6 +72,10 @@ const userInputRequestSchema = z.object({
71
72
  code: "custom",
72
73
  message: "Each choice of a field needs a different label."
73
74
  });
75
+ if (field.kind === "choice" && field.options.filter((option) => option.recommended).length > 1) context.addIssue({
76
+ code: "custom",
77
+ message: "A `choice` field can recommend only one option."
78
+ });
74
79
  }
75
80
  });
76
81
  /**
@@ -1,6 +1,6 @@
1
- import { E as withSpan, b as setSpanAttributes } from "./logging-C6EdT6PP.js";
2
- import { Kn as runNonInteractiveCommand, Nn as sleep, Qn as SANDBOX_WORKSPACE_ROOT, it as isStale, nt as create, ot as getSandboxProvider, qn as SANDBOX_COMMAND_PATH } from "./credentialed-BeBaJMZ_.js";
3
- import { r as getStateAdapter } from "./adapter-BQNTKVTF.js";
1
+ import { E as withSpan, b as setSpanAttributes } from "./logging-DuwXUuIY.js";
2
+ import { Kn as runNonInteractiveCommand, Nn as sleep, Qn as SANDBOX_WORKSPACE_ROOT, it as isStale, nt as create, ot as getSandboxProvider, qn as SANDBOX_COMMAND_PATH } from "./credentialed-mh7HBqey.js";
3
+ import { r as getStateAdapter } from "./adapter-Bqbtr1RV.js";
4
4
  import { z } from "zod";
5
5
  // src/chat/sandbox/resources.ts
6
6
  let configuredResources;
@@ -1,14 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { On as getTurnRecord, kn as listTurnSummaries } from "./turn-session-routing-B9KLBhaT.js";
3
- import { t as createActor } from "./actor-CP9K2Idu.js";
4
- import { j as SYSTEM_IDENTITY_ID } from "./viewer-BTgAfdUg.js";
5
- import { f as credentialContextForActor } from "./registry-CndmkP2P.js";
6
- import { bt as listUnreportedSiblingAgents } from "./agent-runner-MSQSMFkq.js";
2
+ import { On as getTurnRecord, kn as listTurnSummaries } from "./turn-session-routing-BFVp8TbU.js";
3
+ import { t as createActor } from "./actor-B4DYygOB.js";
4
+ import { j as SYSTEM_IDENTITY_ID } from "./viewer-D3jhuP66.js";
5
+ import { f as credentialContextForActor } from "./registry-BPtbAVFo.js";
6
+ import { xt as listUnreportedSiblingAgents } from "./agent-runner-BiHsH8O_.js";
7
7
  import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-BPSdXYXV.js";
8
- import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-Byarin7b.js";
9
- import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-MZRgYqYH.js";
10
- import { r as appendAndEnqueueInboundMessage } from "./store-BeWGgaMA.js";
11
- import { i as resolveAgentInvocationId, r as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-Bjm52fHo.js";
8
+ import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-Di0E4EvU.js";
9
+ import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-DuUB1rwQ.js";
10
+ import { r as appendAndEnqueueInboundMessage } from "./store-BF2XEeQz.js";
11
+ import { i as resolveAgentInvocationId, r as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-CL9QwQcl.js";
12
12
  import { z } from "zod";
13
13
  import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
14
14
  // src/chat/conversations/web-mailbox.ts
@@ -1,14 +1,14 @@
1
- import { At as loadProjection, Gt as hydrateConversationMessages, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, gr as persistWithRetry, ln as upsertConversationMessage, on as normalizeConversationText, pn as authorizationId, sn as recordDeliveredAssistantMessage, wn as saveTurnCheckpoint } from "./turn-session-routing-B9KLBhaT.js";
2
- import { S as setTags, T as withLogContext, p as logException } from "./logging-C6EdT6PP.js";
3
- import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-BTgAfdUg.js";
4
- import { f as credentialContextForActor } from "./registry-CndmkP2P.js";
1
+ import { At as loadProjection, Gt as hydrateConversationMessages, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, gr as persistWithRetry, ln as upsertConversationMessage, on as normalizeConversationText, pn as authorizationId, sn as recordDeliveredAssistantMessage, wn as saveTurnCheckpoint } from "./turn-session-routing-BFVp8TbU.js";
2
+ import { S as setTags, T as withLogContext, p as logException } from "./logging-DuwXUuIY.js";
3
+ import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-D3jhuP66.js";
4
+ import { f as credentialContextForActor } from "./registry-BPtbAVFo.js";
5
5
  import { R as messageCardText } from "./conversation-AhOVzN_k.js";
6
- import { X as markTurnFailed, Z as startActiveTurn } from "./store-Byarin7b.js";
7
- import { r as getAssistantReplyText } from "./interruption-marker-CdblrIQK.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-AiXkVqCB.js";
9
- import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BHBLMvgb.js";
10
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DyKqAPpm.js";
11
- import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-DWXy_0oJ.js";
6
+ import { X as markTurnFailed, Z as startActiveTurn } from "./store-Di0E4EvU.js";
7
+ import { n as getAssistantReplyText } from "./assistant-reply-DgtX9DaJ.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CTLEIEOn.js";
9
+ import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BQ1T3eeF.js";
10
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DKZtMFwa.js";
11
+ import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-B5eSFoHn.js";
12
12
  import { randomUUID } from "node:crypto";
13
13
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
14
14
  // src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { Kt as sandboxEgressSignalsResponseSchema } from "./credentialed-BeBaJMZ_.js";
1
+ import { Kt as sandboxEgressSignalsResponseSchema } from "./credentialed-mh7HBqey.js";
2
2
  // src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,6 +1,6 @@
1
1
  import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-C1RNOCs8.js";
2
2
  import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-AhOVzN_k.js";
3
- import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-DRCi1Ls_.js";
3
+ import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-DgHgwQB3.js";
4
4
  import "./automation-Dwh_xcqM.js";
5
5
  import "./reporting-schema-CZREhYc-.js";
6
6
  import { z } from "zod";
@@ -484,6 +484,8 @@ const personSchema = z.object({
484
484
  /** One Review item as the viewer sees it. */
485
485
  const reviewItemSchema = z.object({
486
486
  addedByConversationId: z.string().min(1),
487
+ /** Turn that added the item. Unset for a plugin item. */
488
+ addedByTurnId: z.string().min(1).optional(),
487
489
  answer: answerSchema.optional(),
488
490
  assignedToEveryone: z.boolean(),
489
491
  assignees: z.array(personSchema),
@@ -518,8 +520,8 @@ const reviewItemSchema = z.object({
518
520
  }).strict();
519
521
  /**
520
522
  * Review desk list filters. The list has the open items that the viewer can
521
- * see, one page at a time. A search also finds done and dismissed items,
522
- * after the open ones.
523
+ * see, one page at a time. A search or `include=archived` also finds done and
524
+ * dismissed items, after the open ones.
523
525
  */
524
526
  const reviewItemListQuerySchema = z.object({
525
527
  conversationId: z.string().min(1).optional(),
@@ -527,11 +529,14 @@ const reviewItemListQuerySchema = z.object({
527
529
  cursor: z.string().min(1).max(1e3).optional(),
528
530
  /** The number of open items on one page. */
529
531
  limit: z.coerce.number().int().min(1).max(100).default(50),
532
+ /** Also list the newest done and dismissed items, with the first page. */
533
+ include: z.enum(["archived"]).optional(),
530
534
  q: z.string().trim().max(200).optional()
531
535
  }).strict();
532
536
  /**
533
- * One page of the review desk list. Open items come first, newest change
534
- * first. The first page of a search also has the newest archived matches.
537
+ * One page of the review desk list. Open items come first, oldest first.
538
+ * The first page of a search, or of a list that includes archived items,
539
+ * also has the newest archived matches.
535
540
  */
536
541
  const reviewItemListSchema = z.object({
537
542
  items: z.array(reviewItemSchema),
@@ -40,6 +40,7 @@ declare const userInputFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
40
40
  options: z.ZodArray<z.ZodObject<{
41
41
  label: z.ZodString;
42
42
  description: z.ZodOptional<z.ZodString>;
43
+ recommended: z.ZodOptional<z.ZodBoolean>;
43
44
  }, z.core.$strip>>;
44
45
  }, z.core.$strip>, z.ZodObject<{
45
46
  id: z.ZodString;
@@ -49,6 +50,7 @@ declare const userInputFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
49
50
  options: z.ZodArray<z.ZodObject<{
50
51
  label: z.ZodString;
51
52
  description: z.ZodOptional<z.ZodString>;
53
+ recommended: z.ZodOptional<z.ZodBoolean>;
52
54
  }, z.core.$strip>>;
53
55
  }, z.core.$strip>, z.ZodObject<{
54
56
  id: z.ZodString;
@@ -66,6 +68,7 @@ declare const userInputRequestSchema: z.ZodObject<{
66
68
  options: z.ZodArray<z.ZodObject<{
67
69
  label: z.ZodString;
68
70
  description: z.ZodOptional<z.ZodString>;
71
+ recommended: z.ZodOptional<z.ZodBoolean>;
69
72
  }, z.core.$strip>>;
70
73
  }, z.core.$strip>, z.ZodObject<{
71
74
  id: z.ZodString;
@@ -75,6 +78,7 @@ declare const userInputRequestSchema: z.ZodObject<{
75
78
  options: z.ZodArray<z.ZodObject<{
76
79
  label: z.ZodString;
77
80
  description: z.ZodOptional<z.ZodString>;
81
+ recommended: z.ZodOptional<z.ZodBoolean>;
78
82
  }, z.core.$strip>>;
79
83
  }, z.core.$strip>, z.ZodObject<{
80
84
  id: z.ZodString;
@@ -5767,6 +5771,7 @@ type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSch
5767
5771
  /** One Review item as the viewer sees it. */
5768
5772
  declare const reviewItemSchema: z.ZodObject<{
5769
5773
  addedByConversationId: z.ZodString;
5774
+ addedByTurnId: z.ZodOptional<z.ZodString>;
5770
5775
  answer: z.ZodOptional<z.ZodObject<{
5771
5776
  other: z.ZodOptional<z.ZodString>;
5772
5777
  requestId: z.ZodString;
@@ -5806,6 +5811,7 @@ declare const reviewItemSchema: z.ZodObject<{
5806
5811
  options: z.ZodArray<z.ZodObject<{
5807
5812
  label: z.ZodString;
5808
5813
  description: z.ZodOptional<z.ZodString>;
5814
+ recommended: z.ZodOptional<z.ZodBoolean>;
5809
5815
  }, z.core.$strip>>;
5810
5816
  }, z.core.$strip>, z.ZodObject<{
5811
5817
  id: z.ZodString;
@@ -5815,6 +5821,7 @@ declare const reviewItemSchema: z.ZodObject<{
5815
5821
  options: z.ZodArray<z.ZodObject<{
5816
5822
  label: z.ZodString;
5817
5823
  description: z.ZodOptional<z.ZodString>;
5824
+ recommended: z.ZodOptional<z.ZodBoolean>;
5818
5825
  }, z.core.$strip>>;
5819
5826
  }, z.core.$strip>, z.ZodObject<{
5820
5827
  id: z.ZodString;
@@ -5842,12 +5849,14 @@ declare const reviewItemSchema: z.ZodObject<{
5842
5849
  }, z.core.$strict>;
5843
5850
  type ReviewItemPayload = z.output<typeof reviewItemSchema>;
5844
5851
  /**
5845
- * One page of the review desk list. Open items come first, newest change
5846
- * first. The first page of a search also has the newest archived matches.
5852
+ * One page of the review desk list. Open items come first, oldest first.
5853
+ * The first page of a search, or of a list that includes archived items,
5854
+ * also has the newest archived matches.
5847
5855
  */
5848
5856
  declare const reviewItemListSchema: z.ZodObject<{
5849
5857
  items: z.ZodArray<z.ZodObject<{
5850
5858
  addedByConversationId: z.ZodString;
5859
+ addedByTurnId: z.ZodOptional<z.ZodString>;
5851
5860
  answer: z.ZodOptional<z.ZodObject<{
5852
5861
  other: z.ZodOptional<z.ZodString>;
5853
5862
  requestId: z.ZodString;
@@ -5887,6 +5896,7 @@ declare const reviewItemListSchema: z.ZodObject<{
5887
5896
  options: z.ZodArray<z.ZodObject<{
5888
5897
  label: z.ZodString;
5889
5898
  description: z.ZodOptional<z.ZodString>;
5899
+ recommended: z.ZodOptional<z.ZodBoolean>;
5890
5900
  }, z.core.$strip>>;
5891
5901
  }, z.core.$strip>, z.ZodObject<{
5892
5902
  id: z.ZodString;
@@ -5896,6 +5906,7 @@ declare const reviewItemListSchema: z.ZodObject<{
5896
5906
  options: z.ZodArray<z.ZodObject<{
5897
5907
  label: z.ZodString;
5898
5908
  description: z.ZodOptional<z.ZodString>;
5909
+ recommended: z.ZodOptional<z.ZodBoolean>;
5899
5910
  }, z.core.$strip>>;
5900
5911
  }, z.core.$strip>, z.ZodObject<{
5901
5912
  id: z.ZodString;
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Bdym_wKy.js";
2
- import { t as disconnectStateAdapter } from "./adapter-BQNTKVTF.js";
3
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-D6e9cVmH.js";
1
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Bw9kjGVu.js";
2
+ import { t as disconnectStateAdapter } from "./adapter-Bqbtr1RV.js";
3
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CHO3YXpt.js";
4
4
  import { CLI_USAGE } from "./cli/run.js";
5
5
  import { createServer } from "node:http";
6
6
  // src/cli/service-account.ts
@@ -1,7 +1,7 @@
1
- import { B as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-C6EdT6PP.js";
2
- import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-CndmkP2P.js";
1
+ import { B as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-DuwXUuIY.js";
2
+ import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-BPtbAVFo.js";
3
3
  import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
4
- import { r as getStateAdapter } from "./adapter-BQNTKVTF.js";
4
+ import { r as getStateAdapter } from "./adapter-Bqbtr1RV.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";