@sentry/junior 0.298.0 → 0.299.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 (94) hide show
  1. package/dist/{actor-6jsm_v96.js → actor-D2iXzvlN.js} +2 -1
  2. package/dist/{state-CSuA2J1V.js → adapter-AgCNqqsG.js} +49 -133
  3. package/dist/{admin-BF3DbYGf.js → admin-1VwEXztm.js} +2 -2
  4. package/dist/{agent-runner-Q9GkoerG.js → agent-runner-Ciet8_nn.js} +977 -1316
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +8 -7
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +125 -43
  9. package/dist/{app-DOg_mCtV.d.ts → app--ky-Eu33.d.ts} +6 -4
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +126 -299
  12. package/dist/{automation-Cn8qmbdr.js → automation-M3RFJUBf.js} +1 -1
  13. package/dist/{background-compaction-queue-BZhGFOK6.js → background-compaction-queue-CnimvRdk.js} +4 -4
  14. package/dist/{briefs-CQrCRF6-.js → briefs-CwzvgdCa.js} +4 -4
  15. package/dist/{catalog-runtime-DZeD2WbL.js → catalog-runtime-DaBaHY7u.js} +1 -1
  16. package/dist/cli/chat.js +17 -17
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +5 -5
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +4 -4
  23. package/dist/{config-BOByVnxe.js → config-CAXIpWQb.js} +80 -6
  24. package/dist/{connections-BNN5cJam.js → connections-Dy0hPdUq.js} +6 -6
  25. package/dist/continue-in-slack-DIOjFj76.js +176 -0
  26. package/dist/{conversation-DCkzvxqB.js → conversation-fCWD9Az3.js} +24 -12
  27. package/dist/{conversation-feed-CMA12Rjs.js → conversation-feed-BPK8vkkZ.js} +88 -3
  28. package/dist/{conversation-privacy-C0eRxsgb.js → conversation-privacy-DUgtRkf8.js} +1 -1
  29. package/dist/{conversation-turn-D9qvcDX6.js → conversation-turn-DkJB6yMF.js} +85 -68
  30. package/dist/{credential-sync-B_iUpxGL.js → credential-sync-RX24Y8aY.js} +18 -18
  31. package/dist/{db-DoMcnYol.d.ts → db-B07FtU9g.d.ts} +1 -1
  32. package/dist/{db-CoMNr2Zm.js → db-COYOGzYS.js} +171 -12
  33. package/dist/{executor-C-m8VrzX.js → executor-BWmAgSyi.js} +40 -11
  34. package/dist/{media-BepyEUNm.js → history-IjdmO_r6.js} +1 -85
  35. package/dist/instrumentation.js +2 -2
  36. package/dist/lineage-D-5jm_oj.js +37 -0
  37. package/dist/{logging-CJTi5niy.js → logging-DPLEa8Bn.js} +1 -1
  38. package/dist/media-BAHvgkok.js +85 -0
  39. package/dist/{message-Q6_5DAWR.js → message-BIHR1yRk.js} +9 -10
  40. package/dist/model-input-BPZYH8Nd.js +82 -0
  41. package/dist/nitro.d.ts +1 -1
  42. package/dist/nitro.js +17 -9
  43. package/dist/{oauth-callback-server-CH5XAyo-.js → oauth-callback-server-R7qvSzFG.js} +2 -2
  44. package/dist/{plugins-HYh_JOdw.js → plugins-CBW2Prb_.js} +1 -1
  45. package/dist/{projection-BgwEE36_.js → projection-DEdP1q6f.js} +261 -36
  46. package/dist/{prompt-DXc9DYT9.js → prompt-4M98h_tC.js} +4 -4
  47. package/dist/{registry-9XwqSnM-.js → registry-BTKmKM-r.js} +3 -3
  48. package/dist/{resolve-DUIAbcRL.js → resolve-B8hXNVZ3.js} +3 -3
  49. package/dist/{result-C2Vn8QGn.js → result-g-XAaOj6.js} +158 -69
  50. package/dist/{runner-CXGtw-Mc.js → runner-BlPSA5A8.js} +9 -9
  51. package/dist/{sandbox-egress-signals-Di3S_dO7.js → sandbox-egress-signals-Pai-MzEY.js} +1 -1
  52. package/dist/{schema-Dyp7racy.js → schema-BNnY_trV.js} +47 -7
  53. package/dist/{schema-BnbZ-rKv.d.ts → schema-DbuWR-DN.d.ts} +657 -346
  54. package/dist/{service-account-GzAMUQ8a.js → service-account-9OLNQMyz.js} +4 -4
  55. package/dist/{service-account-DM3KBBeG.js → service-account-BYGZ08DQ.js} +3 -3
  56. package/dist/session-stop-2XJrcNCy.js +3356 -0
  57. package/dist/{skills-DCK9SD_l.js → skills-DpBQoeHV.js} +3 -3
  58. package/dist/slack-conversation-unfurl-BcDIWo67.js +370 -0
  59. package/dist/spawn-09GssFod.js +73 -0
  60. package/dist/state-Cufq0_rH.js +132 -0
  61. package/dist/{user-input-request-CXNIov9n.js → statuses-B8mUfghF.js} +30 -25
  62. package/dist/{stop-Dh2DfwpK.js → stop-U7iUrR1g.js} +6008 -5772
  63. package/dist/{store-B1zepKG8.js → store-BHiaHCQu.js} +24 -4
  64. package/dist/{store-DrA17Fbz.js → store-CSgUTMdv.js} +10 -10
  65. package/dist/{task-queue-D1rXWfFN.js → task-queue-bMNq0clp.js} +4 -4
  66. package/dist/{task-runner-CT4M8oDz.js → task-runner-B__rxwxU.js} +10 -10
  67. package/dist/{thread-context-DnqUkbzN.js → thread-context-d0ceWbVT.js} +18 -18
  68. package/dist/{turn-session-routing-VXDVXLRl.js → turn-session-routing-BVZHBFCF.js} +5 -5
  69. package/dist/turn-user-message-BEw7acTP.js +355 -0
  70. package/dist/users-BK3dbxZL.js +424 -0
  71. package/dist/{validation-zxAJBDDy.js → validation-BDVJjO2E.js} +1 -1
  72. package/dist/{version-DcZ40a0g.js → version-DQgZoQ3D.js} +1 -1
  73. package/dist/version.js +1 -1
  74. package/dist/{viewer-CgiGjW10.js → viewer-CAWfFo29.js} +25 -54
  75. package/dist/{warmup-CwKbxQLl.js → warmup-9ySPacF9.js} +1137 -144
  76. package/dist/{worker-CbDUzaBA.js → worker-D8jJO-WO.js} +8 -7
  77. package/migrations/0104_code_change_draft.sql +1 -0
  78. package/migrations/0105_attachment_uploads.sql +14 -0
  79. package/migrations/0106_conversation_agent_config.sql +1 -0
  80. package/migrations/meta/0104_snapshot.json +4516 -0
  81. package/migrations/meta/0105_snapshot.json +4611 -0
  82. package/migrations/meta/0106_snapshot.json +4617 -0
  83. package/migrations/meta/_journal.json +21 -0
  84. package/package.json +4 -4
  85. package/dist/attempt-selection-ClP3MMPr.js +0 -61
  86. package/dist/locks-D-0h111u.js +0 -48
  87. package/dist/notification-Bv25xbj0.js +0 -1284
  88. package/dist/prompt-input-BUr4J9RO.js +0 -1424
  89. package/dist/session-stop-D4i7e6iT.js +0 -181
  90. package/dist/spawn-6cX6xE9G.js +0 -80
  91. package/dist/turn-cancel-l460pfGW.js +0 -201
  92. package/dist/turn-user-message-BSPmkm7X.js +0 -608
  93. package/dist/turn-wake-DVFVXyhX.js +0 -161
  94. package/dist/{oauth-relay-CsfIazeF.js → oauth-relay-DRzq73b6.js} +1 -1
@@ -1,2 +1,2 @@
1
- import { $ as AutomationVersionList, $i as codeChangeSummarySchema, $n as ConversationDeliveryResponse, $r as steerConversationPendingMessagesBodySchema, $t as isWithinNotificationSchedule, A as runtimeInfoReportSchema, Ai as conversationDetailReportSchema, An as personParamsSchema, Ar as ConversationAutoArchive, At as workspaceListSchema, B as replyTimeSegmentsReportSchema, Bi as createConversationMessageBodySchema, Bn as CONVERSATION_TITLE_MAX_LENGTH, Br as ConversationPendingMessage, Bt as personalTokenMetadataSchema, C as healthReportSchema, Ca as isAgentInvocationResultEventType, Ci as ConversationUsage, Cn as ActorTotalsReport, Cr as ConversationStatsItem, Ct as scheduledAutomationSummarySchema, D as pluginPackageContentReportSchema, Da as MessageAttachment, Di as conversationActivityPreviewSchema, Dn as PersonalSpendReport, Dr as conversationStatsReportSchema, Dt as baselineSnapshotSchema, E as pluginPackageContentItemReportSchema, Ea as MAX_INPUT_IMAGE_BYTES, Ei as acceptedConversationMessageSchema, En as PersonParams, Er as GuardianStats, Et as WorkspaceReport, F as StatsReport, Fi as conversationParamsSchema, Fn as conversationWatchesReportSchema, Fr as ConversationFeed, Ft as userCustomizationSchema, G as AutomationList, Gi as CodeActivityDay, Gn as CONVERSATION_OUTLINE_TEXT_LENGTH, Gr as cancelConversationPendingMessagesBodySchema, Gt as serviceAccountParamsSchema, H as AutomationExecution, Hi as forkConversationResponseSchema, Hn as RenameConversationResponse, Hr as ConversationPendingMessagesReport, Ht as revokePersonalTokenResponseSchema, I as statSchema, Ii as conversationReportEventDataSchema, In as ConversationChildAgent, Ir as ConversationFeedItem, It as PersonalTokenMetadata, J as AutomationRunList, Ji as CodePersonReport, Jn as ConversationSubscriptionBody, Jr as conversationPendingAuthorizationSchema, Jt as NotificationSettings, K as AutomationListQuery, Ki as CodeChangeSummaryReport, Kn as ConversationOutline, Kr as cancelConversationPendingMessagesResponseSchema, Kt as serviceAccountSchema, L as statsReportSchema, Li as conversationReportEventSchema, Ln as ConversationChildAgentsReport, Lr as conversationFeedSchema, Lt as createPersonalTokenBodySchema, M as skillReportSchema, Mi as conversationEventPageSchema, Mn as ConversationWatch, Mr as archiveConversationResponseSchema, Mt as workspaceRepoSchema, N as skillReportsSchema, Ni as conversationEventsQuerySchema, Nn as ConversationWatchesReport, Nr as archiveDoneConversationsResponseSchema, Nt as workspaceSchema, O as pluginSchema, Oa as INLINE_VIDEO_TYPES, Oi as conversationAuxiliaryCostsSchema, On as actorDirectoryReportSchema, Or as ArchiveConversationBody, Ot as deleteWorkspaceResponseSchema, P as StatReport, Pi as conversationFeedQuerySchema, Pn as conversationWatchSchema, Pr as conversationAutoArchiveSchema, Pt as USER_CUSTOMIZATION_MAX_CHARS, Q as AutomationUpdate, Qi as codeChangeSummaryReportSchema, Qn as ConversationDeliveryBody, Qr as conversationUnchangedDetailWithMailboxSchema, Qt as NotificationSchedule, R as ReplyTimeHistogram, Ri as conversationSummaryReportSchema, Rn as conversationChildAgentSchema, Rr as CancelConversationPendingMessagesBody, Rt as createdPersonalTokenSchema, S as SkillReports, Sa as AGENT_REPLY_EVENT_TYPE, Si as ConversationTurnFailureReason, Sn as ActorSummaryReport, Sr as ConversationMetricDay, St as eventAutomationSummarySchema, T as pluginOperationalReportSchema, Ta as MAX_INPUT_IMAGES, Ti as CreateConversationMessageBody, Tn as PeopleActivityDayReport, Tr as GuardianMetricDay, Tt as WorkspaceListReport, U as AutomationExecutionList, Ui as conversationTurnFailureCodeSchema, Un as renameConversationBodySchema, Ur as SteerConversationPendingMessagesBody, Ut as disconnectServiceAccountResponseSchema, V as AutomationEdit, Vi as forkConversationBodySchema, Vn as RenameConversationBody, Vr as ConversationPendingMessageDelivery, Vt as personalTokenParamsSchema, W as AutomationExecutionStatusDay, Wi as conversationTurnFailureReasonSchema, Wn as renameConversationResponseSchema, Wr as SteerConversationPendingMessagesResponse, Wt as serviceAccountListSchema, X as AutomationScheduleIntent, Xi as CodeRepositorySummary, Xn as conversationSubscriptionBodySchema, Xr as conversationPendingMessageSchema, Xt as testNotificationResponseSchema, Y as AutomationRunWindows, Yi as CodeRepositoryReport, Yn as ConversationSubscriptionResponse, Yr as conversationPendingMessageDeliverySchema, Yt as notificationSettingsSchema, Z as AutomationSummary, Zi as codeActivityDaySchema, Zn as conversationSubscriptionResponseSchema, Zr as conversationPendingMessagesReportSchema, Zt as DEFAULT_NOTIFICATION_SCHEDULE, _ as PluginPackageContentReport, _a as UserInputRequest, _i as ConversationReportStatus, _n as locationParamsSchema, _r as ContinueConversationInSlackResponse, _t as automationUpdateSchema, a as ReviewItemPayload, aa as ConversationChildAgentTotals, ai as ConversationActivityPreview, an as startConnectionResponseSchema, ar as ReorderPinnedConversationsResponse, at as automationExecutionSchema, b as SkillDetailReport, ba as normalizeUserInputAnswer, bi as ConversationSurface, bn as ActorDirectoryWindows, br as StopConversationTurnResponse, bt as automationVersionParamsSchema, c as reviewItemListSchema, ca as dailyConversationActivitySchema, ci as ConversationCost, cn as LocationActivityDayReport, cr as reorderPinnedConversationsBodySchema, ct as automationListQuerySchema, d as ReviewItemChangeRecord, da as resolveMessageCards, di as ConversationEventPage, dn as LocationDirectoryReport, dr as ConversationCatchUpBody, dt as automationRunListSchema, ea as codeOverviewReportSchema, ei as steerConversationPendingMessagesResponseSchema, en as notificationScheduleSchema, er as conversationDeliveryBodySchema, et as ListedAutomationVersion, f as HealthReport, fa as AutomationTask, fi as ConversationModelUsage, fn as LocationParams, fr as conversationCatchUpBodySchema, ft as automationRunSchema, g as PluginPackageContentItemReport, ga as UserInputField, gi as ConversationReportMessageEvent, gn as locationDirectoryReportSchema, gr as ContinueConversationInSlackBody, gt as automationSummarySchema, h as PluginOperationalReportFeed, ha as UserInputAnswer, hi as ConversationReportEventData, hn as locationDetailReportSchema, hr as conversationReadPositionSchema, ht as automationSchedulePreviewSchema, i as ReviewItemActionBody, ia as codeRepositorySummarySchema, ii as CONVERSATION_VERSION_HEADER, in as disconnectConnectionResponseSchema, ir as ReorderPinnedConversationsBody, it as automationExecutionListSchema, j as skillDetailReportSchema, ji as conversationEventHistorySchema, jn as personalSpendReportSchema, jr as archiveConversationBodySchema, jt as workspaceParamsSchema, k as pluginsSchema, ka as INPUT_IMAGE_TYPES, ki as conversationDetailQuerySchema, kn as actorProfileReportSchema, kr as ArchiveConversationResponse, kt as workspaceBodySchema, l as reviewItemSchema, la as MessageCard, li as ConversationDetailReport, ln as LocationActorSummaryReport, lr as reorderPinnedConversationsResponseSchema, lt as automationListSchema, m as PluginOperationalReport, ma as USER_INPUT_NOTE, mi as ConversationReportEvent, mn as locationActivityDayReportSchema, mr as ConversationReadPosition, mt as automationScheduleIntentSchema, n as Versions, na as codeRepositoryParamsSchema, ni as ActorIdentity, nn as connectionParamsSchema, nr as PinConversationBody, nt as automationEditSchema, o as reviewItemActionSchema, oa as conversationChildAgentTotalsSchema, oi as ConversationAgentTreeNode, on as ApiError, or as pinConversationBodySchema, ot as automationExecutionStatusDaySchema, p as Plugin, pa as AutomationCard, pi as ConversationParams, pn as LocationSummaryReport, pr as conversationCatchUpSchema, pt as automationRunWindowsSchema, q as AutomationRun, qi as CodeOverviewReport, qn as conversationOutlineSchema, qr as conversationDetailWithMailboxReportSchema, qt as startServiceAccountSignInResponseSchema, r as versionsSchema, ra as codeRepositoryReportSchema, ri as CONVERSATION_DETAIL_VERSION_HEADER, rn as connectionSchema, rr as PinConversationResponse, rt as automationEventCatalogSchema, s as reviewItemCountSchema, sa as DailyConversationActivity, si as ConversationAuxiliaryCosts, sn as apiErrorSchema, sr as pinConversationResponseSchema, st as automationExecutionStatusSchema, t as OwnedObjectAnnotation, ta as codePersonReportSchema, ti as AcceptedConversationMessage, tn as connectionListSchema, tr as conversationDeliveryResponseSchema, tt as automationEditErrorSchema, u as reviewItemWaitingConversationsSchema, ua as messageCardText, ui as ConversationEventHistory, un as LocationDetailReport, ur as ConversationCatchUp, ut as automationParamsSchema, v as Plugins, va as buttonUserInputField, vi as ConversationSourceTask, vn as ActorActivityDayReport, vr as continueConversationInSlackBodySchema, vt as automationVersionActivateSchema, w as pluginOperationalReportFeedSchema, wa as InputImage, wi as CreateConversationBody, wn as ActorWindowMetrics, wr as ConversationStatsReport, wt as BaselineSnapshotReport, x as SkillReport, xa as webMessageId, xi as ConversationTurnFailureCode, xn as ActorProfileReport, xr as stopConversationTurnResponseSchema, xt as automationVersionSchema, y as RuntimeInfoReport, ya as isEmptyUserInputAnswer, yi as ConversationSummaryReport, yn as ActorDirectoryReport, yr as continueConversationInSlackResponseSchema, yt as automationVersionListSchema, z as ReplyTimeSegmentsReport, zi as createConversationBodySchema, zn as conversationChildAgentsReportSchema, zr as CancelConversationPendingMessagesResponse, zt as personalTokenListSchema } from "../schema-BnbZ-rKv.js";
2
- export { AGENT_REPLY_EVENT_TYPE, type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSubscriptionBody, type ConversationSubscriptionResponse, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReplyTimeHistogram, type ReplyTimeSegmentsReport, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillDetailReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type Versions, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, replyTimeSegmentsReportSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
1
+ import { $ as AutomationVersionList, $i as CreateConversationBody, $n as ConversationDeliveryResponse, $r as steerConversationPendingMessagesBodySchema, $t as isWithinNotificationSchedule, A as runtimeInfoReportSchema, Aa as buttonUserInputField, Ai as AcceptedConversationMessage, An as personParamsSchema, Ar as ConversationAutoArchive, At as workspaceListSchema, B as replyTimeSegmentsReportSchema, Ba as INLINE_VIDEO_TYPES, Bi as ConversationEventPage, Bn as CONVERSATION_TITLE_MAX_LENGTH, Br as ConversationPendingMessage, Bt as personalTokenMetadataSchema, C as healthReportSchema, Ca as resolveMessageCards, Ci as MAX_OBJECT_LINKS, Cn as ActorTotalsReport, Cr as ConversationStatsItem, Ct as scheduledAutomationSummarySchema, D as pluginPackageContentReportSchema, Da as UserInputAnswer, Di as conversationObjectCard, Dn as PersonalSpendReport, Dr as conversationStatsReportSchema, Dt as baselineSnapshotSchema, E as pluginPackageContentItemReportSchema, Ea as USER_INPUT_NOTE, Ei as objectLinksReportSchema, En as PersonParams, Er as GuardianStats, Et as WorkspaceReport, F as StatsReport, Fa as isAgentInvocationResultEventType, Fi as ConversationAgentTreeNode, Fn as conversationWatchesReportSchema, Fr as ConversationFeed, Ft as userCustomizationSchema, G as AutomationList, Gi as ConversationReportMessageEvent, Gn as CONVERSATION_OUTLINE_TEXT_LENGTH, Gr as cancelConversationPendingMessagesBodySchema, Gt as serviceAccountParamsSchema, H as AutomationExecution, Hi as ConversationParams, Hn as RenameConversationResponse, Hr as ConversationPendingMessagesReport, Ht as revokePersonalTokenResponseSchema, I as statSchema, Ia as InputFile, Ii as ConversationAuxiliaryCosts, In as ConversationChildAgent, Ir as ConversationFeedItem, It as PersonalTokenMetadata, J as AutomationRunList, Ji as ConversationSummaryReport, Jn as ConversationSubscriptionBody, Jr as conversationPendingAuthorizationSchema, Jt as NotificationSettings, K as AutomationListQuery, Ki as ConversationReportStatus, Kn as ConversationOutline, Kr as cancelConversationPendingMessagesResponseSchema, Kt as serviceAccountSchema, L as statsReportSchema, La as MAX_INPUT_ATTACHMENTS, Li as ConversationCost, Ln as ConversationChildAgentsReport, Lr as conversationFeedSchema, Lt as createPersonalTokenBodySchema, M as skillReportSchema, Ma as normalizeUserInputAnswer, Mi as CONVERSATION_DETAIL_VERSION_HEADER, Mn as ConversationWatch, Mr as archiveConversationResponseSchema, Mt as workspaceRepoSchema, N as skillReportsSchema, Na as webMessageId, Ni as CONVERSATION_VERSION_HEADER, Nn as ConversationWatchesReport, Nr as archiveDoneConversationsResponseSchema, Nt as workspaceSchema, O as pluginSchema, Oa as UserInputField, Oi as messageObjectCard, On as actorDirectoryReportSchema, Or as ArchiveConversationBody, Ot as deleteWorkspaceResponseSchema, P as StatReport, Pa as AGENT_REPLY_EVENT_TYPE, Pi as ConversationActivityPreview, Pn as conversationWatchSchema, Pr as conversationAutoArchiveSchema, Pt as USER_CUSTOMIZATION_MAX_CHARS, Q as AutomationUpdate, Qi as ConversationUsage, Qn as ConversationDeliveryBody, Qr as conversationUnchangedDetailWithMailboxSchema, Qt as NotificationSchedule, R as ReplyTimeHistogram, Ra as MAX_INPUT_ATTACHMENT_BYTES, Ri as ConversationDetailReport, Rn as conversationChildAgentSchema, Rr as CancelConversationPendingMessagesBody, Rt as createdPersonalTokenSchema, S as SkillReports, Sa as messageCardText, Si as dailyConversationActivitySchema, Sn as ActorSummaryReport, Sr as ConversationMetricDay, St as eventAutomationSummarySchema, T as pluginOperationalReportSchema, Ta as AutomationCard, Ti as objectLinksQuerySchema, Tn as PeopleActivityDayReport, Tr as GuardianMetricDay, Tt as WorkspaceListReport, U as AutomationExecutionList, Ui as ConversationReportEvent, Un as renameConversationBodySchema, Ur as SteerConversationPendingMessagesBody, Ut as disconnectServiceAccountResponseSchema, V as AutomationEdit, Va as INPUT_IMAGE_TYPES, Vi as ConversationModelUsage, Vn as RenameConversationBody, Vr as ConversationPendingMessageDelivery, Vt as personalTokenParamsSchema, W as AutomationExecutionStatusDay, Wi as ConversationReportEventData, Wn as renameConversationResponseSchema, Wr as SteerConversationPendingMessagesResponse, Wt as serviceAccountListSchema, X as AutomationScheduleIntent, Xi as ConversationTurnFailureCode, Xn as conversationSubscriptionBodySchema, Xr as conversationPendingMessageSchema, Xt as testNotificationResponseSchema, Y as AutomationRunWindows, Yi as ConversationSurface, Yn as ConversationSubscriptionResponse, Yr as conversationPendingMessageDeliverySchema, Yt as notificationSettingsSchema, Z as AutomationSummary, Zi as ConversationTurnFailureReason, Zn as conversationSubscriptionResponseSchema, Zr as conversationPendingMessagesReportSchema, Zt as DEFAULT_NOTIFICATION_SCHEDULE, _ as PluginPackageContentReport, _a as forkConversationResponseSchema, _i as codeRepositoryReportSchema, _n as locationParamsSchema, _r as ContinueConversationInSlackResponse, _t as automationUpdateSchema, a as ReviewItemPayload, aa as conversationDetailReportSchema, ai as CodeActivityDay, an as startConnectionResponseSchema, ar as ReorderPinnedConversationsResponse, at as automationExecutionSchema, b as SkillDetailReport, ba as MessageCard, bi as conversationChildAgentTotalsSchema, bn as ActorDirectoryWindows, br as StopConversationTurnResponse, bt as automationVersionParamsSchema, c as reviewItemListSchema, ca as conversationEventsQuerySchema, ci as CodePersonReport, cn as LocationActivityDayReport, cr as reorderPinnedConversationsBodySchema, ct as automationListQuerySchema, d as ReviewItemChangeRecord, da as conversationReportEventDataSchema, di as codeActivityDaySchema, dn as LocationDirectoryReport, dr as ConversationCatchUpBody, dt as automationRunListSchema, ea as CreateConversationMessageBody, ei as steerConversationPendingMessagesResponseSchema, en as notificationScheduleSchema, er as conversationDeliveryBodySchema, et as ListedAutomationVersion, f as HealthReport, fa as conversationReportEventSchema, fi as codeChangeSummaryReportSchema, fn as LocationParams, fr as conversationCatchUpBodySchema, ft as automationRunSchema, g as PluginPackageContentItemReport, ga as forkConversationBodySchema, gi as codeRepositoryParamsSchema, gn as locationDirectoryReportSchema, gr as ContinueConversationInSlackBody, gt as automationSummarySchema, h as PluginOperationalReportFeed, ha as createConversationMessageBodySchema, hi as codePersonReportSchema, hn as locationDetailReportSchema, hr as conversationReadPositionSchema, ht as automationSchedulePreviewSchema, i as ReviewItemActionBody, ia as conversationDetailQuerySchema, ii as createAttachmentUploadBodySchema, in as disconnectConnectionResponseSchema, ir as ReorderPinnedConversationsBody, it as automationExecutionListSchema, j as skillDetailReportSchema, ja as isEmptyUserInputAnswer, ji as ActorIdentity, jn as personalSpendReportSchema, jr as archiveConversationBodySchema, jt as workspaceParamsSchema, k as pluginsSchema, ka as UserInputRequest, ki as personObjectCard, kn as actorProfileReportSchema, kr as ArchiveConversationResponse, kt as workspaceBodySchema, l as reviewItemSchema, la as conversationFeedQuerySchema, li as CodeRepositoryReport, ln as LocationActorSummaryReport, lr as reorderPinnedConversationsResponseSchema, lt as automationListSchema, m as PluginOperationalReport, ma as createConversationBodySchema, mi as codeOverviewReportSchema, mn as locationActivityDayReportSchema, mr as ConversationReadPosition, mt as automationScheduleIntentSchema, n as Versions, na as conversationActivityPreviewSchema, ni as CreateAttachmentUploadBody, nn as connectionParamsSchema, nr as PinConversationBody, nt as automationEditSchema, o as reviewItemActionSchema, oa as conversationEventHistorySchema, oi as CodeChangeSummaryReport, on as ApiError, or as pinConversationBodySchema, ot as automationExecutionStatusDaySchema, p as Plugin, pa as conversationSummaryReportSchema, pi as codeChangeSummarySchema, pn as LocationSummaryReport, pr as conversationCatchUpSchema, pt as automationRunWindowsSchema, q as AutomationRun, qi as ConversationSourceTask, qn as conversationOutlineSchema, qr as conversationDetailWithMailboxReportSchema, qt as startServiceAccountSignInResponseSchema, r as versionsSchema, ra as conversationAuxiliaryCostsSchema, ri as attachmentUploadSchema, rn as connectionSchema, rr as PinConversationResponse, rt as automationEventCatalogSchema, s as reviewItemCountSchema, sa as conversationEventPageSchema, si as CodeOverviewReport, sn as apiErrorSchema, sr as pinConversationResponseSchema, st as automationExecutionStatusSchema, t as OwnedObjectAnnotation, ta as acceptedConversationMessageSchema, ti as AttachmentUpload, tn as connectionListSchema, tr as conversationDeliveryResponseSchema, tt as automationEditErrorSchema, u as reviewItemWaitingConversationsSchema, ua as conversationParamsSchema, ui as CodeRepositorySummary, un as LocationDetailReport, ur as ConversationCatchUp, ut as automationParamsSchema, v as Plugins, va as conversationTurnFailureCodeSchema, vi as codeRepositorySummarySchema, vn as ActorActivityDayReport, vr as continueConversationInSlackBodySchema, vt as automationVersionActivateSchema, w as pluginOperationalReportFeedSchema, wa as AutomationTask, wi as ObjectLinksReport, wn as ActorWindowMetrics, wr as ConversationStatsReport, wt as BaselineSnapshotReport, x as SkillReport, xa as annotationCard, xi as DailyConversationActivity, xn as ActorProfileReport, xr as stopConversationTurnResponseSchema, xt as automationVersionSchema, y as RuntimeInfoReport, ya as conversationTurnFailureReasonSchema, yi as ConversationChildAgentTotals, yn as ActorDirectoryReport, yr as continueConversationInSlackResponseSchema, yt as automationVersionListSchema, z as ReplyTimeSegmentsReport, za as MessageAttachment, zi as ConversationEventHistory, zn as conversationChildAgentsReportSchema, zr as CancelConversationPendingMessagesResponse, zt as personalTokenListSchema } from "../schema-DbuWR-DN.js";
2
+ export { AGENT_REPLY_EVENT_TYPE, type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AttachmentUpload, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSubscriptionBody, type ConversationSubscriptionResponse, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateAttachmentUploadBody, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, type InputFile, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_ATTACHMENTS, MAX_INPUT_ATTACHMENT_BYTES, MAX_OBJECT_LINKS, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, type ObjectLinksReport, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReplyTimeHistogram, type ReplyTimeSegmentsReport, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillDetailReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type Versions, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, annotationCard, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, attachmentUploadSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationObjectCard, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createAttachmentUploadBodySchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, messageObjectCard, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, objectLinksQuerySchema, objectLinksReportSchema, personObjectCard, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, replyTimeSegmentsReportSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
@@ -1,9 +1,10 @@
1
- import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-BepyEUNm.js";
1
+ import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-IjdmO_r6.js";
2
2
  import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-cP0AACm1.js";
3
- import { C as createConversationMessageBodySchema, E as conversationChildAgentTotalsSchema, F as conversationReadPositionSchema, H as resolveMessageCards, N as renameConversationBodySchema, P as renameConversationResponseSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, U as MAX_INPUT_IMAGES, W as MAX_INPUT_IMAGE_BYTES, a as conversationActivityPreviewSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, j as CONVERSATION_TITLE_MAX_LENGTH, l as conversationDetailReportSchema, m as conversationParamsSchema, n as CONVERSATION_VERSION_HEADER, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, s as conversationAuxiliaryCostsSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventHistorySchema, w as forkConversationBodySchema, y as conversationSummaryReportSchema, z as messageCardText } from "../conversation-DCkzvxqB.js";
4
- import { a as isEmptyUserInputAnswer, c as USER_CUSTOMIZATION_MAX_CHARS, g as AGENT_REPLY_EVENT_TYPE, l as userCustomizationSchema, n as USER_INPUT_NOTE, o as normalizeUserInputAnswer, r as buttonUserInputField, v as isAgentInvocationResultEventType } from "../user-input-request-CXNIov9n.js";
3
+ import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-BAHvgkok.js";
4
+ import { B as messageCardText, C as createConversationMessageBodySchema, D as conversationChildAgentTotalsSchema, F as renameConversationResponseSchema, G as MAX_INPUT_ATTACHMENT_BYTES, I as conversationReadPositionSchema, M as CONVERSATION_TITLE_MAX_LENGTH, P as renameConversationBodySchema, R as annotationCard, S as createConversationBodySchema, T as forkConversationResponseSchema, U as resolveMessageCards, W as MAX_INPUT_ATTACHMENTS, a as conversationActivityPreviewSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, l as conversationDetailReportSchema, m as conversationParamsSchema, n as CONVERSATION_VERSION_HEADER, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, s as conversationAuxiliaryCostsSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventHistorySchema, w as forkConversationBodySchema, y as conversationSummaryReportSchema } from "../conversation-fCWD9Az3.js";
5
+ import { _ as AGENT_REPLY_EVENT_TYPE, a as USER_INPUT_NOTE, c as isEmptyUserInputAnswer, d as USER_CUSTOMIZATION_MAX_CHARS, f as userCustomizationSchema, l as normalizeUserInputAnswer, o as buttonUserInputField, y as isAgentInvocationResultEventType } from "../statuses-B8mUfghF.js";
5
6
  import { m as apiErrorSchema, p as webMessageId } from "../reporting-window-DopzcOHh.js";
6
- import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-Cn8qmbdr.js";
7
- import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentReportSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, c as conversationPendingMessageSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, g as pluginPackageContentItemReportSchema, h as pluginOperationalReportSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, o as conversationPendingAuthorizationSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, s as conversationPendingMessageDeliverySchema, u as conversationUnchangedDetailWithMailboxSchema, v as pluginSchema, x as skillDetailReportSchema, y as pluginsSchema } from "../conversation-feed-CMA12Rjs.js";
8
- import { $ as codeActivityDaySchema, A as revokePersonalTokenResponseSchema, At as conversationCatchUpSchema, C as serviceAccountSchema, Ct as conversationDeliveryBodySchema, D as personalTokenListSchema, Dt as reorderPinnedConversationsBodySchema, E as createdPersonalTokenSchema, Et as pinConversationResponseSchema, F as personalSpendReportSchema, I as locationActivityDayReportSchema, J as connectionListSchema, L as locationDetailReportSchema, M as actorProfileReportSchema, O as personalTokenMetadataSchema, Ot as reorderPinnedConversationsResponseSchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationSubscriptionResponseSchema, T as createPersonalTokenBodySchema, Tt as pinConversationBodySchema, U as dailyConversationActivitySchema, W as notificationSettingsSchema, X as connectionSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _t as archiveConversationBodySchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as conversationAutoArchiveSchema, c as workspaceBodySchema, ct as conversationWatchesReportSchema, d as workspaceRepoSchema, dt as continueConversationInSlackBodySchema, et as codeChangeSummaryReportSchema, f as workspaceSchema, ft as continueConversationInSlackResponseSchema, g as reviewItemListSchema, gt as conversationOutlineSchema, ht as CONVERSATION_OUTLINE_TEXT_LENGTH, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, k as personalTokenParamsSchema, kt as conversationCatchUpBodySchema, l as workspaceListSchema, lt as conversationChildAgentSchema, m as reviewItemCountSchema, mt as conversationStatsReportSchema, n as versionsSchema, nt as codeOverviewReportSchema, o as baselineSnapshotSchema, ot as codeRepositorySummarySchema, p as reviewItemActionSchema, pt as stopConversationTurnResponseSchema, q as testNotificationResponseSchema, r as statSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, st as conversationWatchSchema, tt as codeChangeSummarySchema, u as workspaceParamsSchema, ut as conversationChildAgentsReportSchema, v as reviewItemSchema, vt as archiveConversationResponseSchema, w as startServiceAccountSignInResponseSchema, wt as conversationDeliveryResponseSchema, x as serviceAccountListSchema, xt as conversationSubscriptionBodySchema, y as reviewItemWaitingConversationsSchema, yt as archiveDoneConversationsResponseSchema, z as locationParamsSchema } from "../schema-Dyp7racy.js";
9
- export { AGENT_REPLY_EVENT_TYPE, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, replyTimeSegmentsReportSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
7
+ import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-M3RFJUBf.js";
8
+ import { C as skillReportsSchema, E as personObjectCard, S as skillReportSchema, T as messageObjectCard, _ as pluginPackageContentReportSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, c as conversationPendingMessageSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, g as pluginPackageContentItemReportSchema, h as pluginOperationalReportSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, o as conversationPendingAuthorizationSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, s as conversationPendingMessageDeliverySchema, u as conversationUnchangedDetailWithMailboxSchema, v as pluginSchema, w as conversationObjectCard, x as skillDetailReportSchema, y as pluginsSchema } from "../conversation-feed-BPK8vkkZ.js";
9
+ import { $ as connectionSchema, A as revokePersonalTokenResponseSchema, At as reorderPinnedConversationsBodySchema, C as serviceAccountSchema, Ct as conversationAutoArchiveSchema, D as personalTokenListSchema, Dt as conversationDeliveryResponseSchema, E as createdPersonalTokenSchema, Et as conversationDeliveryBodySchema, F as personalSpendReportSchema, Ft as attachmentUploadSchema, G as objectLinksQuerySchema, I as locationActivityDayReportSchema, It as createAttachmentUploadBodySchema, K as objectLinksReportSchema, L as locationDetailReportSchema, M as actorProfileReportSchema, Mt as conversationCatchUpBodySchema, Nt as conversationCatchUpSchema, O as personalTokenMetadataSchema, Ot as pinConversationBodySchema, P as personParamsSchema, Q as connectionParamsSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as archiveDoneConversationsResponseSchema, T as createPersonalTokenBodySchema, Tt as conversationSubscriptionResponseSchema, U as dailyConversationActivitySchema, W as MAX_OBJECT_LINKS, X as testNotificationResponseSchema, Z as connectionListSchema, _t as conversationStatsReportSchema, a as replyTimeSegmentsReportSchema, at as codeOverviewReportSchema, b as disconnectServiceAccountResponseSchema, bt as archiveConversationBodySchema, c as workspaceBodySchema, ct as codeRepositoryReportSchema, d as workspaceRepoSchema, dt as conversationWatchesReportSchema, et as disconnectConnectionResponseSchema, f as workspaceSchema, ft as conversationChildAgentSchema, g as reviewItemListSchema, gt as stopConversationTurnResponseSchema, ht as continueConversationInSlackResponseSchema, i as statsReportSchema, it as codeChangeSummarySchema, j as actorDirectoryReportSchema, jt as reorderPinnedConversationsResponseSchema, k as personalTokenParamsSchema, kt as pinConversationResponseSchema, l as workspaceListSchema, lt as codeRepositorySummarySchema, m as reviewItemCountSchema, mt as continueConversationInSlackBodySchema, n as versionsSchema, nt as codeActivityDaySchema, o as baselineSnapshotSchema, ot as codePersonReportSchema, p as reviewItemActionSchema, pt as conversationChildAgentsReportSchema, q as notificationSettingsSchema, r as statSchema, rt as codeChangeSummaryReportSchema, s as deleteWorkspaceResponseSchema, st as codeRepositoryParamsSchema, tt as startConnectionResponseSchema, u as workspaceParamsSchema, ut as conversationWatchSchema, v as reviewItemSchema, vt as CONVERSATION_OUTLINE_TEXT_LENGTH, w as startServiceAccountSignInResponseSchema, wt as conversationSubscriptionBodySchema, x as serviceAccountListSchema, xt as archiveConversationResponseSchema, y as reviewItemWaitingConversationsSchema, yt as conversationOutlineSchema, z as locationParamsSchema } from "../schema-BNnY_trV.js";
10
+ export { AGENT_REPLY_EVENT_TYPE, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_INPUT_ATTACHMENTS, MAX_INPUT_ATTACHMENT_BYTES, MAX_OBJECT_LINKS, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, annotationCard, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, attachmentUploadSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationObjectCard, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createAttachmentUploadBodySchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, messageObjectCard, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, objectLinksQuerySchema, objectLinksReportSchema, personObjectCard, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, replyTimeSegmentsReportSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as ConversationWorkQueue } from "./queue-CZyYgPF0.js";
2
- import "./db-DoMcnYol.js";
2
+ import "./db-B07FtU9g.js";
3
3
  import { Hono } from "hono";
4
4
  import * as z from "zod";
5
5
  import { User } from "@sentry/junior-plugin-api";
package/dist/api.js CHANGED
@@ -1,37 +1,38 @@
1
- import { Ai as deleteWorkspace, Dr as reviewItemsNeedingUserVersionQuery, Eo as readConversationEventPage, Er as listWaitingConversations, Fi as updateWorkspace, Hi as hash, Hn as createUserTokenStore, Hr as reviewItemReaderForUserInConversation, Ii as WorkspaceValidationError, Ir as isOnlyAssignee, Mr as canActOnReviewItem, Ni as listWorkspaces, Or as searchReviewItems, Pi as listWorkspacesByRepository, Si as getDashboardSettingsLink, Vi as create, Vr as reviewItemReaderForUser, Xa as workspaceRepoCheckoutPath, Zo as createPluginCache, br as countReviewItemsNeedingUser, cr as readWebPushConfig, dr as deletePushSubscription, fo as createPluginLogger, fr as listPushSubscriptions, go as readConversationAccessFromSql, gr as isPausedBySlack, ho as createConversationAccessReader, hr as savePushSubscription, ji as getWorkspace, ki as createWorkspace, lr as sendPushNotificationToUser, mr as saveNotificationSchedule, nr as getPlugins, pr as readNotificationSchedule, qa as SANDBOX_RUNTIME, ur as resolveNotificationTimezone, wo as readConversationBriefThrough } from "./projection-BgwEE36_.js";
2
- import { L as escapeXml, Y as getAttachmentStorage, n as botConfig } from "./config-BOByVnxe.js";
3
- import { m as logInfo, p as logException } from "./logging-CJTi5niy.js";
4
- import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
5
- import { O as conversationKindFromRow, S as withConversationMutationLock, a as getConversationStore, et as nextDetailVersion, o as getDb, s as getSqlExecutor, v as loadConversationSlackTenantIds } from "./db-CoMNr2Zm.js";
6
- import { A as juniorConversations, D as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, b as juniorConversationBriefs, j as juniorIdentities, w as juniorConversationEvents } from "./executor-C-m8VrzX.js";
7
- import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-BepyEUNm.js";
8
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DZeD2WbL.js";
9
- import { $ as readViewerAutomationRuns, C as createSlackReviewItemShow, Dt as jsonResponse, Et as emptyResponse, G as activateViewerAutomationVersion, J as readViewerAutomationEdit, K as changeViewerAutomationLifecycle, Ot as throwApiError, Q as readViewerAutomationExecutions, St as archiveConversation, Tt as reportConversationRead, X as ViewerTaskNotFoundError, Y as updateViewerAutomation, at as listOwnedWatches, et as readViewerAutomationSummary, h as readStats, ht as webActorFromUser, j as runWithSlackInstallation, nt as readViewerAutomations, q as deleteViewerTask, rt as AutomationEditError, tt as readViewerAutomationVersions, y as setConversationSubscription, yt as readLiveAttachment } from "./agent-runner-Q9GkoerG.js";
10
- import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-DXc9DYT9.js";
11
- import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-CgiGjW10.js";
12
- import { a as getStateAdapter } from "./state-CSuA2J1V.js";
1
+ import { $i as hash, Bi as createWorkspace, Bo as readConversationBriefThrough, Cr as saveNotificationSchedule, Fr as listWaitingConversations, Gi as listWorkspacesByRepository, Gr as isOnlyAssignee, Hi as getWorkspace, Ho as readConversationEventPage, Ir as reviewItemsNeedingUserVersionQuery, Ki as updateWorkspace, Lr as searchReviewItems, Mo as readConversationAccessFromSql, Ni as getDashboardSettingsLink, Oo as createPluginLogger, Qi as create, Sr as readNotificationSchedule, Tr as isPausedBySlack, Vi as deleteWorkspace, Vr as canActOnReviewItem, Wi as listWorkspaces, Xr as reviewItemReaderForUser, Zn as createUserTokenStore, Zr as reviewItemReaderForUserInConversation, _r as readWebPushConfig, br as deletePushSubscription, dr as getPlugins, jo as createConversationAccessReader, kr as countReviewItemsNeedingUser, ps as createPluginCache, qi as WorkspaceValidationError, so as SANDBOX_RUNTIME, uo as workspaceRepoCheckoutPath, vr as sendPushNotificationToUser, wr as savePushSubscription, xr as listPushSubscriptions, yr as resolveNotificationTimezone } from "./projection-DEdP1q6f.js";
2
+ import { L as escapeXml, Y as getAttachmentStorage, n as botConfig } from "./config-CAXIpWQb.js";
3
+ import { m as logInfo, p as logException } from "./logging-DPLEa8Bn.js";
4
+ import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
5
+ import { D as conversationKindFromRow, _ as loadConversationSlackTenantIds, a as getConversationStore, nt as nextDetailVersion, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-COYOGzYS.js";
6
+ import { D as juniorCodeChanges, M as juniorIdentities, N as juniorUsers, O as juniorCodeRepositories, P as juniorDestinations, S as juniorConversationMetrics, T as juniorApiTokens, b as juniorConversationBriefs, j as juniorConversations, w as juniorConversationEvents } from "./executor-BWmAgSyi.js";
7
+ import { r as getStateAdapter } from "./adapter-AgCNqqsG.js";
8
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DaBaHY7u.js";
9
+ import { B as deleteViewerTask, C as createSlackReviewItemShow, Ct as emptyResponse, Et as previewOriginBelongsTo, G as readViewerAutomationExecutions, H as updateViewerAutomation, J as readViewerAutomationVersions, K as readViewerAutomationRuns, Q as listOwnedWatches, R as activateViewerAutomationVersion, St as reportConversationRead, Tt as throwApiError, U as ViewerTaskNotFoundError, V as readViewerAutomationEdit, X as AutomationEditError, Y as readViewerAutomations, ct as webActorFromUser, ft as createAttachmentUpload, gt as readLiveAttachment, h as readStats, mt as writeAttachmentUpload, q as readViewerAutomationSummary, ut as AttachmentUploadError, wt as jsonResponse, y as setConversationSubscription, yt as archiveConversation, z as changeViewerAutomationLifecycle } from "./agent-runner-Ciet8_nn.js";
10
+ import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-4M98h_tC.js";
13
11
  import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
14
- import { C as createConversationMessageBodySchema, F as conversationReadPositionSchema, N as renameConversationBodySchema, P as renameConversationResponseSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, l as conversationDetailReportSchema, m as conversationParamsSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as forkConversationBodySchema } from "./conversation-DCkzvxqB.js";
15
- import { d as saveUserCustomization, p as isExperimentalFeatureEnabled, u as readUserCustomization } from "./prompt-input-BUr4J9RO.js";
16
- import { H as gapHistogramReport, L as GAP_SEGMENTS, a as segmentGapsKey, d as listChildAgents } from "./warmup-CwKbxQLl.js";
17
- import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-BZhGFOK6.js";
18
- import { s as getEventCatalog } from "./notification-Bv25xbj0.js";
19
- import { u as automationEventCatalog } from "./turn-session-routing-VXDVXLRl.js";
20
- import { l as userCustomizationSchema } from "./user-input-request-CXNIov9n.js";
21
- import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-DUIAbcRL.js";
22
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-GzAMUQ8a.js";
12
+ import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-BAHvgkok.js";
13
+ import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-CAWfFo29.js";
14
+ import { C as createConversationMessageBodySchema, F as renameConversationResponseSchema, G as MAX_INPUT_ATTACHMENT_BYTES, I as conversationReadPositionSchema, P as renameConversationBodySchema, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, l as conversationDetailReportSchema, m as conversationParamsSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as forkConversationBodySchema } from "./conversation-fCWD9Az3.js";
15
+ import { R as getEventCatalog, _ as readUserCustomization, b as isExperimentalFeatureEnabled, v as saveUserCustomization } from "./session-stop-2XJrcNCy.js";
16
+ import { Dt as GAP_SEGMENTS, Mt as gapHistogramReport, a as segmentGapsKey, d as listChildAgents } from "./warmup-9ySPacF9.js";
17
+ import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CnimvRdk.js";
18
+ import { u as automationEventCatalog } from "./turn-session-routing-BVZHBFCF.js";
19
+ import { f as userCustomizationSchema } from "./statuses-B8mUfghF.js";
20
+ import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-B8hXNVZ3.js";
21
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-9OLNQMyz.js";
23
22
  import { a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, m as apiErrorSchema, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-DopzcOHh.js";
24
- import { F as compileScheduleIntent, P as ScheduleIntentError, U as automationTaskText, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-Cn8qmbdr.js";
25
- import { A as conversationRangeColumns, D as readAutomationTitlesByConversationId, at as AutomationConflictError, j as conversationUsageCostExpr, k as conversationAggregateColumns } from "./store-DrA17Fbz.js";
26
- import { C as skillReportsSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, u as conversationUnchangedDetailWithMailboxSchema, x as skillDetailReportSchema, y as pluginsSchema } from "./conversation-feed-CMA12Rjs.js";
27
- import { C as cancelConversationPendingMessagesForViewer, E as resolveMentions, M as isAllowedSignInEmail, Q as readReviewItemForUser, T as requireConversationPendingMessages, X as actOnReviewItem, Y as ReviewItemActionError, _ as conversationSummaryFromStoredConversation, a as pinConversation, at as archiveViewerDoneConversations, b as createConversationForViewer, c as readConversationAuxiliaryCostsFromSql, ct as setConversationAutoArchive, d as conversationVersionQuery, f as readConversationDetailEtag, h as readConversationEvents, i as readConversationFeed, it as DEFAULT_AUTO_ARCHIVE_SETTINGS, k as getProductionSlackAdapter, l as childAgentTotalsReport, lt as updateUserAutoArchiveSettings, m as keepQuickQuestionForViewer, n as steerConversationPendingMessagesForViewer, nt as continueConversationInSlack, o as reorderPinnedConversations, ot as readUserAutoArchiveSettings, p as forkConversationForViewer, pt as readHealthReport, r as conversationFeedVersionQuery, s as readConversationDetail, t as stopConversationTurnForViewer, tt as canContinueInSlack, u as readConversationTreeMetricsFromSql, v as readFirstHumanMessageTexts, y as appendConversationMessageForViewer } from "./stop-Dh2DfwpK.js";
28
- import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-BNN5cJam.js";
29
- import { c as resumeConversationDelivery, o as canPauseConversationDelivery, s as pauseConversationDelivery } from "./conversation-turn-D9qvcDX6.js";
30
- import { A as revokePersonalTokenResponseSchema, At as conversationCatchUpSchema, B as activityDays$1, Ct as conversationDeliveryBodySchema, D as personalTokenListSchema, Dt as reorderPinnedConversationsBodySchema, E as createdPersonalTokenSchema, Et as pinConversationResponseSchema, F as personalSpendReportSchema, G as pushSubscriptionBodySchema, H as activitySixHours$1, J as connectionListSchema, K as pushSubscriptionDeleteBodySchema, L as locationDetailReportSchema, M as actorProfileReportSchema, N as avatarParamsSchema, Ot as reorderPinnedConversationsResponseSchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationSubscriptionResponseSchema, T as createPersonalTokenBodySchema, Tt as pinConversationBodySchema, V as activityHours$1, W as notificationSettingsSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _ as reviewItemParamsSchema, _t as archiveConversationBodySchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as conversationAutoArchiveSchema, c as workspaceBodySchema, ct as conversationWatchesReportSchema, dt as continueConversationInSlackBodySchema, f as workspaceSchema, ft as continueConversationInSlackResponseSchema, g as reviewItemListSchema, gt as conversationOutlineSchema, h as reviewItemListQuerySchema, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, k as personalTokenParamsSchema, kt as conversationCatchUpBodySchema, l as workspaceListSchema, m as reviewItemCountSchema, mt as conversationStatsReportSchema, n as versionsSchema, nt as codeOverviewReportSchema, p as reviewItemActionSchema, pt as stopConversationTurnResponseSchema, q as testNotificationResponseSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, t as versionsQuerySchema, u as workspaceParamsSchema, ut as conversationChildAgentsReportSchema, v as reviewItemSchema, vt as archiveConversationResponseSchema, w as startServiceAccountSignInResponseSchema, wt as conversationDeliveryResponseSchema, x as serviceAccountListSchema, xt as conversationSubscriptionBodySchema, y as reviewItemWaitingConversationsSchema, yt as archiveDoneConversationsResponseSchema, z as locationParamsSchema } from "./schema-Dyp7racy.js";
23
+ import { F as compileScheduleIntent, P as ScheduleIntentError, U as automationTaskText, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-M3RFJUBf.js";
24
+ import { A as conversationRangeColumns, D as readAutomationTitlesByConversationId, at as AutomationConflictError, j as conversationUsageCostExpr, k as conversationAggregateColumns } from "./store-CSgUTMdv.js";
25
+ import { a as runWithSlackInstallation } from "./users-BK3dbxZL.js";
26
+ import { F as readReviewItemForUser, G as OBJECT_LINK_TTL_MS, H as updateUserAutoArchiveSettings, L as DEFAULT_AUTO_ARCHIVE_SETTINGS, M as ReviewItemActionError, N as actOnReviewItem, O as isAllowedSignInEmail, R as archiveViewerDoneConversations, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, V as setConversationAutoArchive, W as readHealthReport, X as getProductionSlackAdapter, _ as appendConversationMessageForViewer, a as pinConversation, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionQuery, f as readConversationDetailEtag, ft as conversationSummaryFromStoredConversation, h as readConversationEvents, i as readConversationFeed, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as forkConversationForViewer, pt as readFirstHumanMessageTexts, q as resolveObjectLinks, r as conversationFeedVersionQuery, s as readConversationDetail, t as stopConversationTurnForViewer, u as readConversationTreeMetricsFromSql, v as createConversationForViewer, w as requireConversationPendingMessages, y as requireWebMessageConversation, z as readUserAutoArchiveSettings } from "./stop-U7iUrR1g.js";
27
+ import { C as skillReportsSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, u as conversationUnchangedDetailWithMailboxSchema, x as skillDetailReportSchema, y as pluginsSchema } from "./conversation-feed-BPK8vkkZ.js";
28
+ import { a as resumeConversationDelivery, i as pauseConversationDelivery, r as canPauseConversationDelivery } from "./conversation-turn-DkJB6yMF.js";
29
+ import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-Dy0hPdUq.js";
30
+ import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-DIOjFj76.js";
31
+ import { A as revokePersonalTokenResponseSchema, At as reorderPinnedConversationsBodySchema, B as activityDays$1, Ct as conversationAutoArchiveSchema, D as personalTokenListSchema, Dt as conversationDeliveryResponseSchema, E as createdPersonalTokenSchema, Et as conversationDeliveryBodySchema, F as personalSpendReportSchema, Ft as attachmentUploadSchema, G as objectLinksQuerySchema, H as activitySixHours$1, It as createAttachmentUploadBodySchema, J as pushSubscriptionBodySchema, K as objectLinksReportSchema, L as locationDetailReportSchema, M as actorProfileReportSchema, Mt as conversationCatchUpBodySchema, N as avatarParamsSchema, Nt as conversationCatchUpSchema, Ot as pinConversationBodySchema, P as personParamsSchema, Pt as attachmentUploadParamsSchema, Q as connectionParamsSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as archiveDoneConversationsResponseSchema, T as createPersonalTokenBodySchema, Tt as conversationSubscriptionResponseSchema, V as activityHours$1, X as testNotificationResponseSchema, Y as pushSubscriptionDeleteBodySchema, Z as connectionListSchema, _ as reviewItemParamsSchema, _t as conversationStatsReportSchema, a as replyTimeSegmentsReportSchema, at as codeOverviewReportSchema, b as disconnectServiceAccountResponseSchema, bt as archiveConversationBodySchema, c as workspaceBodySchema, ct as codeRepositoryReportSchema, dt as conversationWatchesReportSchema, et as disconnectConnectionResponseSchema, f as workspaceSchema, g as reviewItemListSchema, gt as stopConversationTurnResponseSchema, h as reviewItemListQuerySchema, ht as continueConversationInSlackResponseSchema, i as statsReportSchema, j as actorDirectoryReportSchema, jt as reorderPinnedConversationsResponseSchema, k as personalTokenParamsSchema, kt as pinConversationResponseSchema, l as workspaceListSchema, m as reviewItemCountSchema, mt as continueConversationInSlackBodySchema, n as versionsSchema, ot as codePersonReportSchema, p as reviewItemActionSchema, pt as conversationChildAgentsReportSchema, q as notificationSettingsSchema, s as deleteWorkspaceResponseSchema, st as codeRepositoryParamsSchema, t as versionsQuerySchema, tt as startConnectionResponseSchema, u as workspaceParamsSchema, v as reviewItemSchema, w as startServiceAccountSignInResponseSchema, wt as conversationSubscriptionBodySchema, x as serviceAccountListSchema, xt as archiveConversationResponseSchema, y as reviewItemWaitingConversationsSchema, yt as conversationOutlineSchema, z as locationParamsSchema } from "./schema-BNnY_trV.js";
31
32
  import { Hono } from "hono";
33
+ import * as z from "zod";
32
34
  import path from "node:path";
33
35
  import { createHash, randomBytes, randomUUID } from "node:crypto";
34
- import * as z from "zod";
35
36
  import { and, asc, countDistinct, desc, eq, gt, gte, inArray, isNull, lte, notExists, or, sql } from "drizzle-orm";
36
37
  import { pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
37
38
  import { alias } from "drizzle-orm/pg-core";
@@ -320,6 +321,7 @@ async function continueConversationInSlackForViewer(viewer, conversationId, body
320
321
  conversation
321
322
  })
322
323
  });
324
+ if (result.status === "busy") throwApiError(409, BUSY);
323
325
  if (result.status === "refused") throwApiError(409, result.message);
324
326
  return {
325
327
  conversationId,
@@ -406,6 +408,59 @@ async function conversationAttachmentResponse(args) {
406
408
  function notFound() {
407
409
  throwApiError(404, "Attachment not found.");
408
410
  }
411
+ // src/api/conversations/attachment-uploads.ts
412
+ /** API path that takes upload bytes when storage cannot sign browser writes. */
413
+ function apiUploadPath(uploadId) {
414
+ return `/api/conversations/attachment-uploads/${encodeURIComponent(uploadId)}`;
415
+ }
416
+ /**
417
+ * Reserve one upload for a viewer's next web Message.
418
+ *
419
+ * The upload is bound to the viewer, the target Conversation, and the Message
420
+ * idempotency key. The send checks all three.
421
+ */
422
+ async function createAttachmentUploadForViewer(viewer, body, storage) {
423
+ const conversationId = await requireWebMessageConversation(viewer, body.conversationId, body.idempotencyKey);
424
+ const upload = await createAttachmentUpload({
425
+ db: getSqlExecutor(),
426
+ file: {
427
+ bytes: body.bytes,
428
+ contentType: body.contentType,
429
+ filename: body.filename
430
+ },
431
+ scope: {
432
+ conversationId,
433
+ idempotencyKey: body.idempotencyKey,
434
+ userId: viewer.id
435
+ },
436
+ storage
437
+ });
438
+ return {
439
+ uploadId: upload.id,
440
+ target: upload.target ?? {
441
+ headers: { "content-type": body.contentType },
442
+ method: "PUT",
443
+ url: apiUploadPath(upload.id)
444
+ }
445
+ };
446
+ }
447
+ /** Take upload bytes for storage that cannot sign browser writes. */
448
+ async function writeAttachmentUploadForViewer(args) {
449
+ if (args.storage.createUploadTarget) throwApiError(404, "Upload not found.");
450
+ const body = Buffer.from(await args.readBody());
451
+ try {
452
+ await writeAttachmentUpload({
453
+ body,
454
+ db: getSqlExecutor(),
455
+ storage: args.storage,
456
+ uploadId: args.uploadId,
457
+ userId: args.viewer.id
458
+ });
459
+ } catch (error) {
460
+ if (error instanceof AttachmentUploadError) throwApiError(400, error.message);
461
+ throw error;
462
+ }
463
+ }
409
464
  // src/api/conversations/outline.ts
410
465
  const payload = juniorConversationEvents.payload;
411
466
  /**
@@ -984,18 +1039,14 @@ async function requireConversationWatches(conversationId, options = {}) {
984
1039
  /** Create the HTTP routes owned by the conversations API. */
985
1040
  function createConversationRoutes(options) {
986
1041
  const app = new Hono();
987
- const messageBodyLimit = bodyLimit({
988
- maxSize: 445e4,
989
- onError: () => {
990
- throwApiError(413, "Images must total 3 MB or less.");
991
- }
992
- });
1042
+ const messageBodyLimit = bodyLimit({ maxSize: 262144 });
993
1043
  app.get("/", validateRequest("query", conversationFeedQuerySchema, "Invalid query parameters."), async (context) => {
994
- const { actorEmail, codeRepositoryId, q, status } = context.req.valid("query");
1044
+ const { actorEmail, codeRepositoryId, cursor, q, status } = context.req.valid("query");
995
1045
  const viewer = context.get("viewer");
996
1046
  return jsonResponse(conversationFeedSchema, await readConversationFeed({
997
1047
  ...actorEmail ? { actorEmail } : void 0,
998
1048
  ...codeRepositoryId ? { codeRepositoryId } : void 0,
1049
+ ...cursor ? { cursor } : void 0,
999
1050
  ...q ? { q } : void 0,
1000
1051
  status,
1001
1052
  ...viewer ? { viewer } : void 0
@@ -1007,6 +1058,21 @@ function createConversationRoutes(options) {
1007
1058
  const body = context.req.valid("json");
1008
1059
  return jsonResponse(acceptedConversationMessageSchema, await createConversationForViewer(viewer, body, options));
1009
1060
  });
1061
+ app.post("/attachment-uploads", requireViewer, bodyLimit({ maxSize: 8192 }), validateRequest("json", createAttachmentUploadBodySchema, "Invalid request body."), async (context) => jsonResponse(attachmentUploadSchema, await createAttachmentUploadForViewer(context.get("viewer"), context.req.valid("json"), options.attachmentStorage)));
1062
+ app.put("/attachment-uploads/:uploadId", requireViewer, bodyLimit({
1063
+ maxSize: MAX_INPUT_ATTACHMENT_BYTES,
1064
+ onError: () => {
1065
+ throwApiError(413, "Files must be 25 MB or less.");
1066
+ }
1067
+ }), validateRequest("param", attachmentUploadParamsSchema, "Invalid route parameters."), async (context) => {
1068
+ await writeAttachmentUploadForViewer({
1069
+ readBody: () => context.req.arrayBuffer(),
1070
+ storage: options.attachmentStorage,
1071
+ uploadId: context.req.valid("param").uploadId,
1072
+ viewer: context.get("viewer")
1073
+ });
1074
+ return context.body(null, 204);
1075
+ });
1010
1076
  app.post("/:conversationId/messages", requireViewer, messageBodyLimit, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", createConversationMessageBodySchema, "Invalid request body."), async (context) => {
1011
1077
  const viewer = context.get("viewer");
1012
1078
  const { conversationId } = context.req.valid("param");
@@ -1309,6 +1375,7 @@ async function readCodeWindows(args) {
1309
1375
  /** Columns read for one code change report row. */
1310
1376
  const codeChangeReportColumns = {
1311
1377
  closedAt: juniorCodeChanges.closedAt,
1378
+ draft: juniorCodeChanges.draft,
1312
1379
  id: juniorCodeChanges.id,
1313
1380
  lastActivityAt: juniorCodeChanges.lastActivityAt,
1314
1381
  mergedAt: juniorCodeChanges.mergedAt,
@@ -1392,7 +1459,7 @@ async function readPersonCodeOverview(args) {
1392
1459
  const [windows, changes] = await Promise.all([readCodeWindows({
1393
1460
  nowMs,
1394
1461
  userId: args.userId
1395
- }), db.select(codeChangeReportColumns).from(juniorCodeChanges).innerJoin(juniorCodeRepositories, eq(juniorCodeChanges.repositoryId, juniorCodeRepositories.id)).where(changeScopeFilter({ userId: args.userId })).orderBy(desc(sql`${juniorCodeChanges.state} = 'open'`), desc(juniorCodeChanges.updatedAt)).limit(PERSON_CHANGE_LIMIT)]);
1462
+ }), db.select(codeChangeReportColumns).from(juniorCodeChanges).innerJoin(juniorCodeRepositories, eq(juniorCodeChanges.repositoryId, juniorCodeRepositories.id)).where(changeScopeFilter({ userId: args.userId })).orderBy(desc(sql`${juniorCodeChanges.state} = 'open'`), asc(sql`CASE WHEN ${juniorCodeChanges.state} = 'open' THEN coalesce(${juniorCodeChanges.lastActivityAt}, ${juniorCodeChanges.openedAt}) END`), desc(juniorCodeChanges.updatedAt)).limit(PERSON_CHANGE_LIMIT)]);
1396
1463
  return codePersonReportSchema.parse({
1397
1464
  activityDays: windows.activityDays,
1398
1465
  activityHours: windows.activityHours,
@@ -1563,6 +1630,16 @@ function createNotificationRoutes() {
1563
1630
  });
1564
1631
  return app;
1565
1632
  }
1633
+ // src/api/objects/routes.ts
1634
+ /** Create the viewer-scoped route that resolves links to object cards. */
1635
+ function createObjectRoutes() {
1636
+ const app = new Hono();
1637
+ app.get("/", requireViewer, validateRequest("query", objectLinksQuerySchema, "Invalid object links."), async (context) => jsonResponse(objectLinksReportSchema, { objects: await resolveObjectLinks(context.get("viewer"), context.req.valid("query").url) }, { headers: {
1638
+ "cache-control": `private, max-age=${OBJECT_LINK_TTL_MS / 1e3}`,
1639
+ vary: "Authorization, Cookie"
1640
+ } }));
1641
+ return app;
1642
+ }
1566
1643
  // src/api/conversations/reporting.ts
1567
1644
  /** Return the dashboard label for a conversation surface. */
1568
1645
  function surfaceLabel(surface) {
@@ -2405,7 +2482,7 @@ async function readPeoplePluginReports(args) {
2405
2482
  reports: [],
2406
2483
  source: "plugins"
2407
2484
  });
2408
- const { getPluginProfileReports } = await import("./projection-BgwEE36_.js").then((n) => n.qn);
2485
+ const { getPluginProfileReports } = await import("./projection-DEdP1q6f.js").then((n) => n.nr);
2409
2486
  return pluginOperationalReportFeedSchema.parse({
2410
2487
  generatedAt: new Date(nowMs).toISOString(),
2411
2488
  reports: await getPluginProfileReports({
@@ -2775,6 +2852,10 @@ function createPersonalTokenRoutes() {
2775
2852
  app.post("/", requireViewer, validateRequest("json", createPersonalTokenBodySchema, "Invalid request body."), async (context) => {
2776
2853
  const viewer = context.get("viewer");
2777
2854
  const body = context.req.valid("json");
2855
+ if (body.previewOrigin && !await previewOriginBelongsTo({
2856
+ email: viewer.email,
2857
+ origin: body.previewOrigin
2858
+ })) throwApiError(403, "Junior did not make this Preview for you.");
2778
2859
  return jsonResponse(createdPersonalTokenSchema, await createPersonalToken({
2779
2860
  email: viewer.email,
2780
2861
  name: body.name
@@ -3434,7 +3515,7 @@ function readDescriptionText(home) {
3434
3515
  }
3435
3516
  /** Read discovered skills for runtime diagnostics and the Automation editor. */
3436
3517
  async function readSkillReports() {
3437
- const { discoverSkills } = await import("./skills-DCK9SD_l.js").then((n) => n.o);
3518
+ const { discoverSkills } = await import("./skills-DpBQoeHV.js").then((n) => n.o);
3438
3519
  const skills = await discoverSkills();
3439
3520
  return skillReportsSchema.parse(skills.map((skill) => ({
3440
3521
  name: skill.name,
@@ -3448,7 +3529,7 @@ async function readSkillReports() {
3448
3529
  * what the skill tells Junior. Returns null when no skill has that name.
3449
3530
  */
3450
3531
  async function readSkillDetailReport(name) {
3451
- const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-DCK9SD_l.js").then((n) => n.o);
3532
+ const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-DpBQoeHV.js").then((n) => n.o);
3452
3533
  const skill = findSkillByName(name, await discoverSkills());
3453
3534
  if (!skill) return null;
3454
3535
  const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
@@ -3463,7 +3544,7 @@ async function readSkillDetailReport(name) {
3463
3544
  }
3464
3545
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3465
3546
  async function readPlugins() {
3466
- const { pluginCatalogRuntime } = await import("./catalog-runtime-DZeD2WbL.js").then((n) => n.t);
3547
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-DaBaHY7u.js").then((n) => n.t);
3467
3548
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3468
3549
  configKeys: plugin.manifest.configKeys ?? [],
3469
3550
  description: plugin.manifest.description,
@@ -3475,7 +3556,7 @@ async function readPlugins() {
3475
3556
  async function readRuntimeInfoReport() {
3476
3557
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3477
3558
  import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
3478
- import("./catalog-runtime-DZeD2WbL.js").then((n) => n.t),
3559
+ import("./catalog-runtime-DaBaHY7u.js").then((n) => n.t),
3479
3560
  readPlugins(),
3480
3561
  readSkillReports()
3481
3562
  ]);
@@ -3492,7 +3573,7 @@ async function readRuntimeInfoReport() {
3492
3573
  /** Read sanitized operational summaries contributed by plugins. */
3493
3574
  async function readPluginOperationalReportFeed() {
3494
3575
  const nowMs = Date.now();
3495
- const { getPluginOperationalReports } = await import("./projection-BgwEE36_.js").then((n) => n.qn);
3576
+ const { getPluginOperationalReports } = await import("./projection-DEdP1q6f.js").then((n) => n.nr);
3496
3577
  return pluginOperationalReportFeedSchema.parse({
3497
3578
  source: "plugins",
3498
3579
  generatedAt: new Date(nowMs).toISOString(),
@@ -3530,6 +3611,7 @@ function createJuniorApi(options = {}) {
3530
3611
  app.route("/api/notifications", createNotificationRoutes());
3531
3612
  app.route("/api/personal-tokens", createPersonalTokenRoutes());
3532
3613
  app.route("/api/service-accounts", createServiceAccountRoutes());
3614
+ app.route("/api/objects", createObjectRoutes());
3533
3615
  app.route("/api/people", createPeopleRoutes());
3534
3616
  app.route("/api/locations", createLocationRoutes());
3535
3617
  app.route("/api/user-pages", createUserPageRoutes());
@@ -1,13 +1,13 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
2
- import { t as ConversationStore } from "./db-DoMcnYol.js";
3
- import "./schema-BnbZ-rKv.js";
2
+ import { t as ConversationStore } from "./db-B07FtU9g.js";
3
+ import "./schema-DbuWR-DN.js";
4
4
  import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
5
5
  import "./sentry-DrKC2NeM.js";
6
6
  import { Hono } from "hono";
7
+ import * as z from "zod";
7
8
  import "@earendil-works/pi-ai/compat";
8
9
  import "@earendil-works/pi-ai/api/anthropic-messages";
9
10
  import "ai";
10
- import * as z from "zod";
11
11
  import "drizzle-orm";
12
12
  import { Destination, OwnedObjectAnnotation, PluginRegistration, Source, User } from "@sentry/junior-plugin-api";
13
13
  import "@earendil-works/pi-agent-core";
@@ -15,8 +15,8 @@ import "@earendil-works/pi-ai";
15
15
  import "@modelcontextprotocol/sdk/client/auth.js";
16
16
  import { Client } from "@modelcontextprotocol/sdk/client";
17
17
  import "@sinclair/typebox";
18
+ import { SlackAdapter } from "@chat-adapter/slack";
18
19
  import { Message, StateAdapter } from "chat";
19
- import "@chat-adapter/slack";
20
20
  interface BotModelConfig {
21
21
  /** Model that runs every agent Turn. */
22
22
  modelId?: string;
@@ -199,6 +199,8 @@ interface ConversationWorkerResult {
199
199
  interface ProcessConversationQueueMessageOptions {
200
200
  checkInIntervalMs?: number;
201
201
  conversationStore?: ConversationStore;
202
+ /** Slack installation lookup for work that runs after the Run ends. */
203
+ getSlackAdapter?: () => SlackAdapter;
202
204
  nowMs?: () => number;
203
205
  queue?: ConversationWorkQueue;
204
206
  run(context: ConversationWorkerContext): Promise<ConversationWorkerResult>;
package/dist/app.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-DOg_mCtV.js";
1
+ import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app--ky-Eu33.js";
2
2
  import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
3
3
  import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
4
4
  export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };