@sentry/junior 0.300.0 → 0.301.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-S5UkjNK3.js → adapter-CNjGEJO9.js} +1 -1
- package/dist/{admin-UrTniSPO.js → admin-CRJHvCGg.js} +2 -2
- package/dist/{agent-runner-bY4_0UPm.js → agent-runner-H4YhvNBj.js} +32 -93
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +67 -33
- package/dist/{app-D-AcIcCV.d.ts → app-HDZglaIu.d.ts} +3 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +36 -34
- package/dist/{automation-Dw82oQ-h.js → automation-Cva5ZOwW.js} +1 -1
- package/dist/{background-compaction-queue-B6U3060-.js → background-compaction-queue-CNrZ3QcU.js} +3 -3
- package/dist/{briefs-DqiwWu-n.js → briefs-x6Mzwxmg.js} +3 -3
- package/dist/{catalog-runtime-D1oYNv04.js → catalog-runtime-BEY6EGRi.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-9nHoFiJP.js → config-CmjhyqgB.js} +2 -2
- package/dist/{connections-DZjTN3JC.js → connections-CfIRm0xv.js} +6 -6
- package/dist/{continue-in-slack-Dtv7_U42.js → continue-in-slack-DPoABVkB.js} +6 -6
- package/dist/{conversation-Dyjq2CZ8.js → conversation-BNXfq6Lb.js} +11 -1
- package/dist/{conversation-feed-CcDxlrlQ.js → conversation-feed-CfpyFMHP.js} +1 -1
- package/dist/{conversation-privacy-D-5HTXjS.js → conversation-privacy-0CM0V2qK.js} +1 -1
- package/dist/{conversation-turn-Cxl8WZD7.js → conversation-turn-C0sxyvS-.js} +17 -17
- package/dist/{credential-sync-C49ClwDX.js → credential-sync-tEMKZ_8M.js} +15 -15
- package/dist/{db-2resqBh1.d.ts → db-BdUHQhrC.d.ts} +1 -1
- package/dist/{db-BJNo6fK5.js → db-Czra10QW.js} +4 -4
- package/dist/{executor-DBIaOeJ_.js → executor-D_023K0H.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-0dereG7H.js → lineage-DmMIE0VL.js} +2 -2
- package/dist/{logging-BIclibct.js → logging-DcjLDDqi.js} +1 -1
- package/dist/{message-dkOl-Iii.js → message-C0JY9RJP.js} +8 -8
- package/dist/{model-input-CLo9TaUd.js → model-input-CBp-p24N.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-WmpjfJgQ.js → oauth-callback-server-BRq9QNhU.js} +2 -2
- package/dist/{projection-w_X-zi7v.js → projection-CQNDOi82.js} +167 -45
- package/dist/{prompt-B1Xw46-S.js → prompt-DLUB5m72.js} +4 -4
- package/dist/{registry-BmP5vnlj.js → registry-Dj377ADs.js} +1 -1
- package/dist/{resolve-goo34bJK.js → resolve-DJkh9Fky.js} +3 -3
- package/dist/{result-PVBeU0Wf.js → result-C8iIpDl1.js} +8 -8
- package/dist/{runner-DKrfvNV6.js → runner-DZqrOy8C.js} +9 -9
- package/dist/{sandbox-egress-signals-DsUcqrI0.js → sandbox-egress-signals-CGwH86S9.js} +1 -1
- package/dist/{schema-Dns-sTas.d.ts → schema-CdZFn7Qd.d.ts} +30 -1
- package/dist/{schema-C9iNFz5n.js → schema-DyHXiQKI.js} +12 -4
- package/dist/{service-account-CMAAloAL.js → service-account-D6jGR4a1.js} +3 -3
- package/dist/{service-account-CmowamcB.js → service-account-suY004dx.js} +4 -4
- package/dist/{session-stop-BcAXze8a.js → session-stop-BLmfFI3d.js} +117 -16
- package/dist/{skills-DfsazET6.js → skills-CmNG0dHb.js} +2 -2
- package/dist/{slack-conversation-unfurl-CzQonuWz.js → slack-conversation-unfurl-Bty-DlHe.js} +7 -7
- package/dist/{spawn-C7o0FDDp.js → spawn-CNjkpXpk.js} +6 -6
- package/dist/{state-zSilNpbi.js → state-CEbZuZD6.js} +2 -2
- package/dist/{stop-CFOujp8C.js → stop-Bjy2-K4H.js} +249 -2237
- package/dist/{store-E3x2Fg_F.js → store-DmV4CoNr.js} +5 -5
- package/dist/{store-Dkeis_8o.js → store-Epv6t4vV.js} +9 -9
- package/dist/{task-queue-D-hCqdZW.js → task-queue-AhG1tSXR.js} +3 -3
- package/dist/{task-runner-vohUPLHe.js → task-runner-BMxZI3o7.js} +8 -8
- package/dist/{thread-context-BzvdkgI9.js → thread-context-CXLnbg7g.js} +8 -8
- package/dist/{turn-session-routing-Bo_LxFum.js → turn-session-routing-BD3-jJl7.js} +5 -5
- package/dist/{turn-user-message-D5RnVmxQ.js → turn-user-message-DsUZi9gn.js} +3 -3
- package/dist/{users-2bggndVg.js → users-BxvYclQg.js} +3 -3
- package/dist/{validation-BbWikeSa.js → validation-DOz8X9BU.js} +1 -1
- package/dist/{version-GVBMW2jA.js → version-CGMRmMPK.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BpxRliyO.js → viewer-H3EsMWtJ.js} +3 -3
- package/dist/{warmup-BW2qwnal.js → warmup-CdU5hR49.js} +47 -25
- package/dist/{worker-Cbd-iuwZ.js → worker-ClphajjD.js} +7 -7
- package/package.json +6 -6
|
@@ -585,6 +585,10 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
585
585
|
plugin: z.ZodString;
|
|
586
586
|
createdAt: z.ZodString;
|
|
587
587
|
updatedAt: z.ZodString;
|
|
588
|
+
previewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
589
|
+
src: z.ZodString;
|
|
590
|
+
srcSet: z.ZodString;
|
|
591
|
+
}, z.core.$strict>>>;
|
|
588
592
|
}, z.core.$strip>>>>;
|
|
589
593
|
sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
590
594
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1817,6 +1821,10 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1817
1821
|
plugin: z.ZodString;
|
|
1818
1822
|
createdAt: z.ZodString;
|
|
1819
1823
|
updatedAt: z.ZodString;
|
|
1824
|
+
previewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1825
|
+
src: z.ZodString;
|
|
1826
|
+
srcSet: z.ZodString;
|
|
1827
|
+
}, z.core.$strict>>>;
|
|
1820
1828
|
}, z.core.$strip>>>>;
|
|
1821
1829
|
sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1822
1830
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3458,6 +3466,10 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3458
3466
|
plugin: z.ZodString;
|
|
3459
3467
|
createdAt: z.ZodString;
|
|
3460
3468
|
updatedAt: z.ZodString;
|
|
3469
|
+
previewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3470
|
+
src: z.ZodString;
|
|
3471
|
+
srcSet: z.ZodString;
|
|
3472
|
+
}, z.core.$strict>>>;
|
|
3461
3473
|
}, z.core.$strip>>>>;
|
|
3462
3474
|
sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3463
3475
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5419,6 +5431,10 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
5419
5431
|
plugin: z.ZodString;
|
|
5420
5432
|
createdAt: z.ZodString;
|
|
5421
5433
|
updatedAt: z.ZodString;
|
|
5434
|
+
previewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5435
|
+
src: z.ZodString;
|
|
5436
|
+
srcSet: z.ZodString;
|
|
5437
|
+
}, z.core.$strict>>>;
|
|
5422
5438
|
}, z.core.$strip>>>>;
|
|
5423
5439
|
sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5424
5440
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5903,6 +5919,10 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
5903
5919
|
plugin: z.ZodString;
|
|
5904
5920
|
createdAt: z.ZodString;
|
|
5905
5921
|
updatedAt: z.ZodString;
|
|
5922
|
+
previewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5923
|
+
src: z.ZodString;
|
|
5924
|
+
srcSet: z.ZodString;
|
|
5925
|
+
}, z.core.$strict>>>;
|
|
5906
5926
|
}, z.core.$strip>>>>;
|
|
5907
5927
|
sidebarAnnotations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5908
5928
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6027,6 +6047,15 @@ type NotificationSettings = z.output<typeof notificationSettingsSchema>;
|
|
|
6027
6047
|
declare const testNotificationResponseSchema: z.ZodObject<{
|
|
6028
6048
|
delivered: z.ZodNumber;
|
|
6029
6049
|
}, z.core.$strict>;
|
|
6050
|
+
declare const cacheWarmingBreakerListSchema: z.ZodObject<{
|
|
6051
|
+
breakers: z.ZodArray<z.ZodObject<{
|
|
6052
|
+
provider: z.ZodString;
|
|
6053
|
+
open: z.ZodBoolean;
|
|
6054
|
+
}, z.core.$strict>>;
|
|
6055
|
+
}, z.core.$strict>;
|
|
6056
|
+
declare const closeCacheWarmingBreakerResponseSchema: z.ZodObject<{
|
|
6057
|
+
closed: z.ZodLiteral<true>;
|
|
6058
|
+
}, z.core.$strict>;
|
|
6030
6059
|
declare const serviceAccountSchema: z.ZodObject<{
|
|
6031
6060
|
provider: z.ZodString;
|
|
6032
6061
|
displayName: z.ZodString;
|
|
@@ -8298,4 +8327,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
8298
8327
|
spend: z.ZodString;
|
|
8299
8328
|
}, z.core.$strict>;
|
|
8300
8329
|
type Versions = z.output<typeof versionsSchema>;
|
|
8301
|
-
export { AutomationVersionList as $, ConversationSurface as $i, ConversationDeliveryResponse as $n, steerConversationPendingMessagesBodySchema as $r, isWithinNotificationSchedule as $t, runtimeInfoReportSchema as A, USER_INPUT_NOTE as Aa, conversationObjectCard as Ai, personParamsSchema as An, ConversationAutoArchive as Ar, workspaceListSchema as At, replyTimeSegmentsReportSchema as B, InputFile as Ba, ConversationAuxiliaryCosts as Bi, CONVERSATION_TITLE_MAX_LENGTH as Bn, ConversationPendingMessage as Br, personalTokenMetadataSchema as Bt, healthReportSchema as C, conversationTurnFailureReasonSchema as Ca, AttachObjectLinkResponse as Ci, ActorTotalsReport as Cn, ConversationStatsItem as Cr, scheduledAutomationSummarySchema as Ct, pluginPackageContentReportSchema as D, resolveMessageCards as Da, attachObjectLinkResponseSchema as Di, PersonalSpendReport as Dn, conversationStatsReportSchema as Dr, baselineSnapshotSchema as Dt, pluginPackageContentItemReportSchema as E, messageCardText as Ea, attachObjectLinkBodySchema as Ei, PersonParams as En, GuardianStats as Er, WorkspaceReport as Et, StatsReport as F, isEmptyUserInputAnswer as Fa, ActorIdentity as Fi, conversationWatchesReportSchema as Fn, ConversationFeed as Fr, userCustomizationSchema as Ft, AutomationList as G, INPUT_IMAGE_TYPES as Ga, ConversationModelUsage as Gi, CONVERSATION_OUTLINE_TEXT_LENGTH as Gn, cancelConversationPendingMessagesBodySchema as Gr, serviceAccountParamsSchema as Gt, AutomationExecution as H, MAX_INPUT_ATTACHMENTS as Ha, ConversationDetailReport as Hi, RenameConversationResponse as Hn, ConversationPendingMessagesReport as Hr, revokePersonalTokenResponseSchema as Ht, statSchema as I, normalizeUserInputAnswer as Ia, CONVERSATION_DETAIL_VERSION_HEADER as Ii, ConversationChildAgent as In, ConversationFeedItem as Ir, PersonalTokenMetadata as It, AutomationRunList as J, ConversationReportEventData as Ji, ConversationSubscriptionBody as Jn, conversationPendingAuthorizationSchema as Jr, NotificationSettings as Jt, AutomationListQuery as K, ConversationParams as Ki, ConversationOutline as Kn, cancelConversationPendingMessagesResponseSchema as Kr, serviceAccountSchema as Kt, statsReportSchema as L, webMessageId as La, CONVERSATION_VERSION_HEADER as Li, ConversationChildAgentsReport as Ln, conversationFeedSchema as Lr, createPersonalTokenBodySchema as Lt, skillReportSchema as M, UserInputField as Ma, personObjectCard as Mi, ConversationWatch as Mn, archiveConversationResponseSchema as Mr, workspaceRepoSchema as Mt, skillReportsSchema as N, UserInputRequest as Na, webPageObjectCard as Ni, ConversationWatchesReport as Nn, archiveDoneConversationsResponseSchema as Nr, workspaceSchema as Nt, pluginSchema as O, AutomationTask as Oa, objectLinksQuerySchema as Oi, actorDirectoryReportSchema as On, ArchiveConversationBody as Or, deleteWorkspaceResponseSchema as Ot, StatReport as P, buttonUserInputField as Pa, AcceptedConversationMessage as Pi, conversationWatchSchema as Pn, conversationAutoArchiveSchema as Pr, USER_CUSTOMIZATION_MAX_CHARS as Pt, AutomationUpdate as Q, ConversationSummaryReport as Qi, ConversationDeliveryBody as Qn, conversationUnchangedDetailWithMailboxSchema as Qr, NotificationSchedule as Qt, ReplyTimeHistogram as R, AGENT_REPLY_EVENT_TYPE as Ra, ConversationActivityPreview as Ri, conversationChildAgentSchema as Rn, CancelConversationPendingMessagesBody as Rr, createdPersonalTokenSchema as Rt, SkillReports as S, conversationTurnFailureCodeSchema as Sa, dailyConversationActivitySchema as Si, ActorSummaryReport as Sn, ConversationMetricDay as Sr, eventAutomationSummarySchema as St, pluginOperationalReportSchema as T, annotationCard as Ta, ObjectLinksReport as Ti, PeopleActivityDayReport as Tn, GuardianMetricDay as Tr, WorkspaceListReport as Tt, AutomationExecutionList as U, MessageAttachment as Ua, ConversationEventHistory as Ui, renameConversationBodySchema as Un, SteerConversationPendingMessagesBody as Ur, disconnectServiceAccountResponseSchema as Ut, AutomationEdit as V, MAX_ATTACHMENT_BYTES as Va, ConversationCost as Vi, RenameConversationBody as Vn, ConversationPendingMessageDelivery as Vr, personalTokenParamsSchema as Vt, AutomationExecutionStatusDay as W, INLINE_VIDEO_TYPES as Wa, ConversationEventPage as Wi, renameConversationResponseSchema as Wn, SteerConversationPendingMessagesResponse as Wr, serviceAccountListSchema as Wt, AutomationScheduleIntent as X, ConversationReportStatus as Xi, conversationSubscriptionBodySchema as Xn, conversationPendingMessageSchema as Xr, testNotificationResponseSchema as Xt, AutomationRunWindows as Y, ConversationReportMessageEvent as Yi, ConversationSubscriptionResponse as Yn, conversationPendingMessageDeliverySchema as Yr, notificationSettingsSchema as Yt, AutomationSummary as Z, ConversationSourceTask as Zi, conversationSubscriptionResponseSchema as Zn, conversationPendingMessagesReportSchema as Zr, DEFAULT_NOTIFICATION_SCHEDULE as Zt, PluginPackageContentReport as _, conversationSummaryReportSchema as _a, codeRepositoryReportSchema as _i, locationParamsSchema as _n, ContinueConversationInSlackResponse as _r, automationUpdateSchema as _t, ReviewItemPayload as a, acceptedConversationMessageSchema as aa, CodeActivityDay as ai, startConnectionResponseSchema as an, ReorderPinnedConversationsResponse as ar, automationExecutionSchema as at, SkillDetailReport as b, forkConversationBodySchema as ba, conversationChildAgentTotalsSchema as bi, ActorDirectoryWindows as bn, StopConversationTurnResponse as br, automationVersionParamsSchema as bt, reviewItemListSchema as c, conversationDetailQuerySchema as ca, CodePersonReport as ci, LocationActivityDayReport as cn, reorderPinnedConversationsBodySchema as cr, automationListQuerySchema as ct, ReviewItemChangeRecord as d, conversationEventPageSchema as da, codeActivityDaySchema as di, LocationDirectoryReport as dn, ConversationCatchUpBody as dr, automationRunListSchema as dt, ConversationTurnFailureCode as ea, steerConversationPendingMessagesResponseSchema as ei, notificationScheduleSchema as en, conversationDeliveryBodySchema as er, ListedAutomationVersion as et, HealthReport as f, conversationEventsQuerySchema as fa, codeChangeSummaryReportSchema as fi, LocationParams as fn, conversationCatchUpBodySchema as fr, automationRunSchema as ft, PluginPackageContentItemReport as g, conversationReportEventSchema as ga, codeRepositoryParamsSchema as gi, locationDirectoryReportSchema as gn, ContinueConversationInSlackBody as gr, automationSummarySchema as gt, PluginOperationalReportFeed as h, conversationReportEventDataSchema as ha, codePersonReportSchema as hi, locationDetailReportSchema as hn, conversationReadPositionSchema as hr, automationSchedulePreviewSchema as ht, ReviewItemActionBody as i, CreateConversationMessageBody as ia, createAttachmentUploadBodySchema as ii, disconnectConnectionResponseSchema as in, ReorderPinnedConversationsBody as ir, automationExecutionListSchema as it, skillDetailReportSchema as j, UserInputAnswer as ja, messageObjectCard as ji, personalSpendReportSchema as jn, archiveConversationBodySchema as jr, workspaceParamsSchema as jt, pluginsSchema as k, AutomationCard as ka, objectLinksReportSchema as ki, actorProfileReportSchema as kn, ArchiveConversationResponse as kr, workspaceBodySchema as kt, reviewItemSchema as l, conversationDetailReportSchema as la, CodeRepositoryReport as li, LocationActorSummaryReport as ln, reorderPinnedConversationsResponseSchema as lr, automationListSchema as lt, PluginOperationalReport as m, conversationParamsSchema as ma, codeOverviewReportSchema as mi, locationActivityDayReportSchema as mn, ConversationReadPosition as mr, automationScheduleIntentSchema as mt, Versions as n, ConversationUsage as na, CreateAttachmentUploadBody as ni, connectionParamsSchema as nn, PinConversationBody as nr, automationEditSchema as nt, reviewItemActionSchema as o, conversationActivityPreviewSchema as oa, CodeChangeSummaryReport as oi, ApiError as on, pinConversationBodySchema as or, automationExecutionStatusDaySchema as ot, Plugin as p, conversationFeedQuerySchema as pa, codeChangeSummarySchema as pi, LocationSummaryReport as pn, conversationCatchUpSchema as pr, automationRunWindowsSchema as pt, AutomationRun as q, ConversationReportEvent as qi, conversationOutlineSchema as qn, conversationDetailWithMailboxReportSchema as qr, startServiceAccountSignInResponseSchema as qt, versionsSchema as r, CreateConversationBody as ra, attachmentUploadSchema as ri, connectionSchema as rn, PinConversationResponse as rr, automationEventCatalogSchema as rt, reviewItemCountSchema as s, conversationAuxiliaryCostsSchema as sa, CodeOverviewReport as si, apiErrorSchema as sn, pinConversationResponseSchema as sr, automationExecutionStatusSchema as st, OwnedObjectAnnotation$1 as t, ConversationTurnFailureReason as ta, AttachmentUpload as ti, connectionListSchema as tn, conversationDeliveryResponseSchema as tr, automationEditErrorSchema as tt, reviewItemWaitingConversationsSchema as u, conversationEventHistorySchema as ua, CodeRepositorySummary as ui, LocationDetailReport as un, ConversationCatchUp as ur, automationParamsSchema as ut, Plugins as v, createConversationBodySchema as va, codeRepositorySummarySchema as vi, ActorActivityDayReport as vn, continueConversationInSlackBodySchema as vr, automationVersionActivateSchema as vt, pluginOperationalReportFeedSchema as w, MessageCard as wa, MAX_OBJECT_LINKS as wi, ActorWindowMetrics as wn, ConversationStatsReport as wr, BaselineSnapshotReport as wt, SkillReport as x, forkConversationResponseSchema as xa, DailyConversationActivity as xi, ActorProfileReport as xn, stopConversationTurnResponseSchema as xr, automationVersionSchema as xt, RuntimeInfoReport as y, createConversationMessageBodySchema as ya, ConversationChildAgentTotals as yi, ActorDirectoryReport as yn, continueConversationInSlackResponseSchema as yr, automationVersionListSchema as yt, ReplyTimeSegmentsReport as z, isAgentInvocationResultEventType as za, ConversationAgentTreeNode as zi, conversationChildAgentsReportSchema as zn, CancelConversationPendingMessagesResponse as zr, personalTokenListSchema as zt };
|
|
8330
|
+
export { AutomationVersionList as $, ConversationSourceTask as $i, conversationSubscriptionResponseSchema as $n, conversationPendingMessagesReportSchema as $r, DEFAULT_NOTIFICATION_SCHEDULE as $t, runtimeInfoReportSchema as A, AutomationTask as Aa, objectLinksQuerySchema as Ai, actorDirectoryReportSchema as An, ArchiveConversationBody as Ar, workspaceListSchema as At, replyTimeSegmentsReportSchema as B, AGENT_REPLY_EVENT_TYPE as Ba, ConversationActivityPreview as Bi, conversationChildAgentSchema as Bn, CancelConversationPendingMessagesBody as Br, personalTokenMetadataSchema as Bt, healthReportSchema as C, forkConversationResponseSchema as Ca, DailyConversationActivity as Ci, ActorProfileReport as Cn, stopConversationTurnResponseSchema as Cr, scheduledAutomationSummarySchema as Ct, pluginPackageContentReportSchema as D, annotationCard as Da, ObjectLinksReport as Di, PeopleActivityDayReport as Dn, GuardianMetricDay as Dr, baselineSnapshotSchema as Dt, pluginPackageContentItemReportSchema as E, MessageCard as Ea, MAX_OBJECT_LINKS as Ei, ActorWindowMetrics as En, ConversationStatsReport as Er, WorkspaceReport as Et, StatsReport as F, UserInputRequest as Fa, webPageObjectCard as Fi, ConversationWatchesReport as Fn, archiveDoneConversationsResponseSchema as Fr, userCustomizationSchema as Ft, AutomationList as G, MessageAttachment as Ga, ConversationEventHistory as Gi, renameConversationBodySchema as Gn, SteerConversationPendingMessagesBody as Gr, serviceAccountParamsSchema as Gt, AutomationExecution as H, InputFile as Ha, ConversationAuxiliaryCosts as Hi, CONVERSATION_TITLE_MAX_LENGTH as Hn, ConversationPendingMessage as Hr, revokePersonalTokenResponseSchema as Ht, statSchema as I, buttonUserInputField as Ia, AcceptedConversationMessage as Ii, conversationWatchSchema as In, conversationAutoArchiveSchema as Ir, PersonalTokenMetadata as It, AutomationRunList as J, ConversationParams as Ji, ConversationOutline as Jn, cancelConversationPendingMessagesResponseSchema as Jr, cacheWarmingBreakerListSchema as Jt, AutomationListQuery as K, INLINE_VIDEO_TYPES as Ka, ConversationEventPage as Ki, renameConversationResponseSchema as Kn, SteerConversationPendingMessagesResponse as Kr, serviceAccountSchema as Kt, statsReportSchema as L, isEmptyUserInputAnswer as La, ActorIdentity as Li, conversationWatchesReportSchema as Ln, ConversationFeed as Lr, createPersonalTokenBodySchema as Lt, skillReportSchema as M, USER_INPUT_NOTE as Ma, conversationObjectCard as Mi, personParamsSchema as Mn, ConversationAutoArchive as Mr, workspaceRepoSchema as Mt, skillReportsSchema as N, UserInputAnswer as Na, messageObjectCard as Ni, personalSpendReportSchema as Nn, archiveConversationBodySchema as Nr, workspaceSchema as Nt, pluginSchema as O, messageCardText as Oa, attachObjectLinkBodySchema as Oi, PersonParams as On, GuardianStats as Or, deleteWorkspaceResponseSchema as Ot, StatReport as P, UserInputField as Pa, personObjectCard as Pi, ConversationWatch as Pn, archiveConversationResponseSchema as Pr, USER_CUSTOMIZATION_MAX_CHARS as Pt, AutomationUpdate as Q, ConversationReportStatus as Qi, conversationSubscriptionBodySchema as Qn, conversationPendingMessageSchema as Qr, testNotificationResponseSchema as Qt, ReplyTimeHistogram as R, normalizeUserInputAnswer as Ra, CONVERSATION_DETAIL_VERSION_HEADER as Ri, ConversationChildAgent as Rn, ConversationFeedItem as Rr, createdPersonalTokenSchema as Rt, SkillReports as S, forkConversationBodySchema as Sa, conversationChildAgentTotalsSchema as Si, ActorDirectoryWindows as Sn, StopConversationTurnResponse as Sr, eventAutomationSummarySchema as St, pluginOperationalReportSchema as T, conversationTurnFailureReasonSchema as Ta, AttachObjectLinkResponse as Ti, ActorTotalsReport as Tn, ConversationStatsItem as Tr, WorkspaceListReport as Tt, AutomationExecutionList as U, MAX_ATTACHMENT_BYTES as Ua, ConversationCost as Ui, RenameConversationBody as Un, ConversationPendingMessageDelivery as Ur, disconnectServiceAccountResponseSchema as Ut, AutomationEdit as V, isAgentInvocationResultEventType as Va, ConversationAgentTreeNode as Vi, conversationChildAgentsReportSchema as Vn, CancelConversationPendingMessagesResponse as Vr, personalTokenParamsSchema as Vt, AutomationExecutionStatusDay as W, MAX_INPUT_ATTACHMENTS as Wa, ConversationDetailReport as Wi, RenameConversationResponse as Wn, ConversationPendingMessagesReport as Wr, serviceAccountListSchema as Wt, AutomationScheduleIntent as X, ConversationReportEventData as Xi, ConversationSubscriptionBody as Xn, conversationPendingAuthorizationSchema as Xr, NotificationSettings as Xt, AutomationRunWindows as Y, ConversationReportEvent as Yi, conversationOutlineSchema as Yn, conversationDetailWithMailboxReportSchema as Yr, closeCacheWarmingBreakerResponseSchema as Yt, AutomationSummary as Z, ConversationReportMessageEvent as Zi, ConversationSubscriptionResponse as Zn, conversationPendingMessageDeliverySchema as Zr, notificationSettingsSchema as Zt, PluginPackageContentReport as _, conversationReportEventDataSchema as _a, codePersonReportSchema as _i, locationDetailReportSchema as _n, conversationReadPositionSchema as _r, automationUpdateSchema as _t, ReviewItemPayload as a, CreateConversationBody as aa, attachmentUploadSchema as ai, connectionSchema as an, PinConversationResponse as ar, automationExecutionSchema as at, SkillDetailReport as b, createConversationBodySchema as ba, codeRepositorySummarySchema as bi, ActorActivityDayReport as bn, continueConversationInSlackBodySchema as br, automationVersionParamsSchema as bt, reviewItemListSchema as c, conversationActivityPreviewSchema as ca, CodeChangeSummaryReport as ci, ApiError as cn, pinConversationBodySchema as cr, automationListQuerySchema as ct, ReviewItemChangeRecord as d, conversationDetailReportSchema as da, CodeRepositoryReport as di, LocationActorSummaryReport as dn, reorderPinnedConversationsResponseSchema as dr, automationRunListSchema as dt, ConversationSummaryReport as ea, conversationUnchangedDetailWithMailboxSchema as ei, NotificationSchedule as en, ConversationDeliveryBody as er, ListedAutomationVersion as et, HealthReport as f, conversationEventHistorySchema as fa, CodeRepositorySummary as fi, LocationDetailReport as fn, ConversationCatchUp as fr, automationRunSchema as ft, PluginPackageContentItemReport as g, conversationParamsSchema as ga, codeOverviewReportSchema as gi, locationActivityDayReportSchema as gn, ConversationReadPosition as gr, automationSummarySchema as gt, PluginOperationalReportFeed as h, conversationFeedQuerySchema as ha, codeChangeSummarySchema as hi, LocationSummaryReport as hn, conversationCatchUpSchema as hr, automationSchedulePreviewSchema as ht, ReviewItemActionBody as i, ConversationUsage as ia, CreateAttachmentUploadBody as ii, connectionParamsSchema as in, PinConversationBody as ir, automationExecutionListSchema as it, skillDetailReportSchema as j, AutomationCard as ja, objectLinksReportSchema as ji, actorProfileReportSchema as jn, ArchiveConversationResponse as jr, workspaceParamsSchema as jt, pluginsSchema as k, resolveMessageCards as ka, attachObjectLinkResponseSchema as ki, PersonalSpendReport as kn, conversationStatsReportSchema as kr, workspaceBodySchema as kt, reviewItemSchema as l, conversationAuxiliaryCostsSchema as la, CodeOverviewReport as li, apiErrorSchema as ln, pinConversationResponseSchema as lr, automationListSchema as lt, PluginOperationalReport as m, conversationEventsQuerySchema as ma, codeChangeSummaryReportSchema as mi, LocationParams as mn, conversationCatchUpBodySchema as mr, automationScheduleIntentSchema as mt, Versions as n, ConversationTurnFailureCode as na, steerConversationPendingMessagesResponseSchema as ni, notificationScheduleSchema as nn, conversationDeliveryBodySchema as nr, automationEditSchema as nt, reviewItemActionSchema as o, CreateConversationMessageBody as oa, createAttachmentUploadBodySchema as oi, disconnectConnectionResponseSchema as on, ReorderPinnedConversationsBody as or, automationExecutionStatusDaySchema as ot, Plugin as p, conversationEventPageSchema as pa, codeActivityDaySchema as pi, LocationDirectoryReport as pn, ConversationCatchUpBody as pr, automationRunWindowsSchema as pt, AutomationRun as q, INPUT_IMAGE_TYPES as qa, ConversationModelUsage as qi, CONVERSATION_OUTLINE_TEXT_LENGTH as qn, cancelConversationPendingMessagesBodySchema as qr, startServiceAccountSignInResponseSchema as qt, versionsSchema as r, ConversationTurnFailureReason as ra, AttachmentUpload as ri, connectionListSchema as rn, conversationDeliveryResponseSchema as rr, automationEventCatalogSchema as rt, reviewItemCountSchema as s, acceptedConversationMessageSchema as sa, CodeActivityDay as si, startConnectionResponseSchema as sn, ReorderPinnedConversationsResponse as sr, automationExecutionStatusSchema as st, OwnedObjectAnnotation$1 as t, ConversationSurface as ta, steerConversationPendingMessagesBodySchema as ti, isWithinNotificationSchedule as tn, ConversationDeliveryResponse as tr, automationEditErrorSchema as tt, reviewItemWaitingConversationsSchema as u, conversationDetailQuerySchema as ua, CodePersonReport as ui, LocationActivityDayReport as un, reorderPinnedConversationsBodySchema as ur, automationParamsSchema as ut, Plugins as v, conversationReportEventSchema as va, codeRepositoryParamsSchema as vi, locationDirectoryReportSchema as vn, ContinueConversationInSlackBody as vr, automationVersionActivateSchema as vt, pluginOperationalReportFeedSchema as w, conversationTurnFailureCodeSchema as wa, dailyConversationActivitySchema as wi, ActorSummaryReport as wn, ConversationMetricDay as wr, BaselineSnapshotReport as wt, SkillReport as x, createConversationMessageBodySchema as xa, ConversationChildAgentTotals as xi, ActorDirectoryReport as xn, continueConversationInSlackResponseSchema as xr, automationVersionSchema as xt, RuntimeInfoReport as y, conversationSummaryReportSchema as ya, codeRepositoryReportSchema as yi, locationParamsSchema as yn, ContinueConversationInSlackResponse as yr, automationVersionListSchema as yt, ReplyTimeSegmentsReport as z, webMessageId as za, CONVERSATION_VERSION_HEADER as zi, ConversationChildAgentsReport as zn, conversationFeedSchema as zr, personalTokenListSchema as zt };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { D as idempotencyKeySchema, O as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, c as conversationAuxiliaryCostsSchema, i as actorIdentitySchema, q as inputFileSchema } from "./conversation-
|
|
2
|
+
import { D as idempotencyKeySchema, O as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, c as conversationAuxiliaryCostsSchema, i as actorIdentitySchema, q as inputFileSchema } from "./conversation-BNXfq6Lb.js";
|
|
3
3
|
import { r as AGENT_INVOCATION_STATUSES, u as userInputRequestSchema } from "./statuses-Hn-HsOph.js";
|
|
4
4
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-DopzcOHh.js";
|
|
5
|
-
import "./automation-
|
|
6
|
-
import "./conversation-feed-
|
|
5
|
+
import "./automation-Cva5ZOwW.js";
|
|
6
|
+
import "./conversation-feed-CfpyFMHP.js";
|
|
7
7
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
8
8
|
import * as z from "zod";
|
|
9
9
|
import { codeChangeStateSchema, eventMatchSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
|
|
@@ -664,6 +664,14 @@ const serviceAccountListSchema = z.object({ serviceAccounts: z.array(serviceAcco
|
|
|
664
664
|
const serviceAccountParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
665
665
|
const startServiceAccountSignInResponseSchema = z.object({ authorizationUrl: z.string().url() }).strict();
|
|
666
666
|
const disconnectServiceAccountResponseSchema = z.object({ disconnected: z.literal(true) }).strict();
|
|
667
|
+
// src/api/schema/cache-warming.ts
|
|
668
|
+
const cacheWarmingBreakerSchema = z.object({
|
|
669
|
+
provider: z.string(),
|
|
670
|
+
open: z.boolean()
|
|
671
|
+
}).strict();
|
|
672
|
+
const cacheWarmingBreakerListSchema = z.object({ breakers: z.array(cacheWarmingBreakerSchema) }).strict();
|
|
673
|
+
const cacheWarmingBreakerParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
674
|
+
const closeCacheWarmingBreakerResponseSchema = z.object({ closed: z.literal(true) }).strict();
|
|
667
675
|
// src/api/schema/review-item.ts
|
|
668
676
|
const answerSchema = z.object({
|
|
669
677
|
other: z.string().max(4e3).optional(),
|
|
@@ -888,4 +896,4 @@ const versionsSchema = z.object({
|
|
|
888
896
|
/** The viewer's rolling model spend. */
|
|
889
897
|
spend: z.string().min(1)
|
|
890
898
|
}).strict();
|
|
891
|
-
export {
|
|
899
|
+
export { connectionSchema as $, personalTokenListSchema as A, conversationSubscriptionResponseSchema as At, locationDetailReportSchema as B, attachmentUploadSchema as Bt, disconnectServiceAccountResponseSchema as C, CONVERSATION_OUTLINE_TEXT_LENGTH as Ct, startServiceAccountSignInResponseSchema as D, archiveDoneConversationsResponseSchema as Dt, serviceAccountSchema as E, archiveConversationResponseSchema as Et, actorProfileReportSchema as F, reorderPinnedConversationsBodySchema as Ft, activitySixHours as G, locationParamsSchema as H, avatarParamsSchema as I, reorderPinnedConversationsResponseSchema as It, pushSubscriptionBodySchema as J, dailyConversationActivitySchema as K, personParamsSchema as L, conversationCatchUpBodySchema as Lt, personalTokenParamsSchema as M, conversationDeliveryResponseSchema as Mt, revokePersonalTokenResponseSchema as N, pinConversationBodySchema as Nt, createPersonalTokenBodySchema as O, conversationAutoArchiveSchema as Ot, actorDirectoryReportSchema as P, pinConversationResponseSchema as Pt, connectionParamsSchema as Q, personalSpendReportSchema as R, conversationCatchUpSchema as Rt, closeCacheWarmingBreakerResponseSchema as S, conversationStatsReportSchema as St, serviceAccountParamsSchema as T, archiveConversationBodySchema as Tt, activityDays as U, locationDirectoryReportSchema as V, createAttachmentUploadBodySchema as Vt, activityHours as W, testNotificationResponseSchema as X, pushSubscriptionDeleteBodySchema as Y, connectionListSchema as Z, reviewItemParamsSchema as _, attachObjectLinkBodySchema as _t, replyTimeSegmentsReportSchema as a, codeOverviewReportSchema as at, cacheWarmingBreakerListSchema as b, objectLinksReportSchema as bt, workspaceBodySchema as c, codeRepositoryReportSchema as ct, workspaceRepoSchema as d, conversationWatchesReportSchema as dt, disconnectConnectionResponseSchema as et, workspaceSchema as f, conversationChildAgentSchema as ft, reviewItemListSchema as g, MAX_OBJECT_LINKS as gt, reviewItemListQuerySchema as h, continueConversationInSlackResponseSchema as ht, statsReportSchema as i, codeChangeSummarySchema as it, personalTokenMetadataSchema as j, conversationDeliveryBodySchema as jt, createdPersonalTokenSchema as k, conversationSubscriptionBodySchema as kt, workspaceListSchema as l, codeRepositorySummarySchema as lt, reviewItemCountSchema as m, continueConversationInSlackBodySchema as mt, versionsSchema as n, codeActivityDaySchema as nt, baselineSnapshotSchema as o, codePersonReportSchema as ot, reviewItemActionSchema as p, conversationChildAgentsReportSchema as pt, notificationSettingsSchema as q, statSchema as r, codeChangeSummaryReportSchema as rt, deleteWorkspaceResponseSchema as s, codeRepositoryParamsSchema as st, versionsQuerySchema as t, startConnectionResponseSchema as tt, workspaceParamsSchema as u, conversationWatchSchema as ut, reviewItemSchema as v, attachObjectLinkResponseSchema as vt, serviceAccountListSchema as w, conversationOutlineSchema as wt, cacheWarmingBreakerParamsSchema as x, stopConversationTurnResponseSchema as xt, reviewItemWaitingConversationsSchema as y, objectLinksQuerySchema as yt, locationActivityDayReportSchema as z, attachmentUploadParamsSchema as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as disconnectStateAdapter } from "./adapter-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
3
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
1
|
+
import { t as disconnectStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BEY6EGRi.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-suY004dx.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-
|
|
2
|
-
import { c as fenceLock, l as withLock, o as MUTATION_LOCK_TTL_MS, r as getStateAdapter } from "./adapter-
|
|
3
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
4
|
-
import { n as readEncryptedState, t as createEncryptedState } from "./state-
|
|
1
|
+
import { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-DcjLDDqi.js";
|
|
2
|
+
import { c as fenceLock, l as withLock, o as MUTATION_LOCK_TTL_MS, r as getStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
3
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-Dj377ADs.js";
|
|
4
|
+
import { n as readEncryptedState, t as createEncryptedState } from "./state-CEbZuZD6.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import { I as renderCurrentInstruction, R as escapeXml, n as botConfig, z as escapeXmlText } from "./config-
|
|
4
|
-
import { h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
2
|
+
import { Bn as SCRIPT_TOOLS_SECTION_TAG, Da as postSlackMessage, Di as verifyTimerWatchCredentialSubject, Fn as retainRuntimeTurnContext, Hn as TURN_CONTEXT_TAG, In as stripRuntimeTurnContext, Io as buildSentryConversationUrl, Jn as renderUntrustedTag, Ki as listWorkspaces, Kn as renderChildTag, M as normalizeConversationText, Nn as latestTurnContextSection, Nr as getReviewItem, Oi as JUNIOR_THREAD_STATE_TTL_MS, Rn as CAPABILITY_SECTION_TAG, Tn as hasRuntimeTurnContext, Un as escapeClosingTags, Vn as SESSION_CONTEXT_SECTION_TAG, Wn as escapeTagText, Yn as tagJson, _a as slackMention, cr as getPluginSlackConversationLink, ct as listTurnSummaries, di as cancelSubscriptions, do as sandboxSkillFile, dr as getPluginUserPromptContributions, eo as ToolInputError, fn as NO_REPLY_TOOL_NAME, fo as sandboxSkillPathResolution, fr as getPlugins, ha as normalizeSlackReplyMarkdown, in as REPLY_TOOL_NAME, ji as getDashboardObjectIconLink, ki as getDashboardConversationLink, lo as SANDBOX_WORKSPACE_ROOT, lr as getPluginSystemPromptContributions, ma as formatSlackLink, oo as SANDBOX_DATA_ROOT, ot as getStoredTurnFields, pa as escapeSlackMrkdwnText, qn as renderTag$1, so as SANDBOX_REPOS_ROOT, st as getTurnRecord, uo as sandboxSkillDir, vn as REPORT_BLOCKED_TOOL_NAME, x as toStoredConversationMessage, zn as REQUEST_CONTEXT_SECTION_TAG } from "./projection-CQNDOi82.js";
|
|
3
|
+
import { I as renderCurrentInstruction, R as escapeXml, n as botConfig, z as escapeXmlText } from "./config-CmjhyqgB.js";
|
|
4
|
+
import { W as normalizeIdentityEmail, h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-DcjLDDqi.js";
|
|
5
5
|
import { o as isUserActor, t as createActor } from "./actor-D2iXzvlN.js";
|
|
6
|
-
import { C as isPersonInput, a as getConversationStore, j as SYSTEM_IDENTITY_ID, nt as nextDetailVersion, o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-
|
|
7
|
-
import { N as juniorUsers, j as juniorConversations } from "./executor-
|
|
8
|
-
import { r as getStateAdapter } from "./adapter-
|
|
6
|
+
import { C as isPersonInput, a as getConversationStore, j as SYSTEM_IDENTITY_ID, nt as nextDetailVersion, o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-Czra10QW.js";
|
|
7
|
+
import { M as juniorIdentities, N as juniorUsers, j as juniorConversations } from "./executor-D_023K0H.js";
|
|
8
|
+
import { r as getStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
9
9
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-DJhGdS4c.js";
|
|
10
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
11
|
-
import { i as parseSkillFile } from "./skills-
|
|
12
|
-
import { a as EVENT_SYSTEM_ACTOR, d as JUNIOR_NATIVE_EVENT_NAMESPACE, h as conversationNoteEvent, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage, r as EVENT_AUTHOR_ID } from "./prompt-
|
|
13
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
14
|
-
import { f as eventCatalogEntry, l as CORE_EVENT_NAMESPACE, p as eventGuidance } from "./turn-session-routing-
|
|
10
|
+
import { h as credentialSubjectSchema } from "./registry-Dj377ADs.js";
|
|
11
|
+
import { i as parseSkillFile } from "./skills-CmNG0dHb.js";
|
|
12
|
+
import { a as EVENT_SYSTEM_ACTOR, d as JUNIOR_NATIVE_EVENT_NAMESPACE, h as conversationNoteEvent, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage, r as EVENT_AUTHOR_ID } from "./prompt-DLUB5m72.js";
|
|
13
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DmV4CoNr.js";
|
|
14
|
+
import { f as eventCatalogEntry, l as CORE_EVENT_NAMESPACE, p as eventGuidance } from "./turn-session-routing-BD3-jJl7.js";
|
|
15
15
|
import { _ as userCustomizationTextSchema, m as isVisionImageMediaType, s as formatUserInputAnswer } from "./statuses-Hn-HsOph.js";
|
|
16
16
|
import * as z from "zod";
|
|
17
17
|
import path from "node:path";
|
|
@@ -19,6 +19,7 @@ import { isDeepStrictEqual } from "node:util";
|
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
import { and, eq, inArray, isNull, lt, lte, or, sql } from "drizzle-orm";
|
|
21
21
|
import { agentEventKeys, createEventSource, createLocalSource, createWebSource, eventMatchFieldsSchema, objectFactFields, objectPresentation, objectTypeSchema } from "@sentry/junior-plugin-api";
|
|
22
|
+
import { alias } from "drizzle-orm/pg-core";
|
|
22
23
|
import fs from "node:fs";
|
|
23
24
|
import pLimit from "p-limit";
|
|
24
25
|
// src/chat/repository-instructions.ts
|
|
@@ -1535,6 +1536,91 @@ function buildSlackReplyBlocks(text, footer) {
|
|
|
1535
1536
|
}
|
|
1536
1537
|
return blocks.length ? blocks : void 0;
|
|
1537
1538
|
}
|
|
1539
|
+
// src/chat/events/people.ts
|
|
1540
|
+
const linkedSlackIdentity = alias(juniorIdentities, "event_people_slack");
|
|
1541
|
+
function personKey(person) {
|
|
1542
|
+
return "email" in person ? `email:${normalizeIdentityEmail(person.email)}` : `${person.provider}:${person.handle.toLowerCase()}`;
|
|
1543
|
+
}
|
|
1544
|
+
function personCondition(person) {
|
|
1545
|
+
if ("email" in person) return and(eq(juniorIdentities.emailVerified, true), eq(juniorIdentities.emailNormalized, normalizeIdentityEmail(person.email)));
|
|
1546
|
+
return and(eq(juniorIdentities.provider, person.provider), sql`lower(${juniorIdentities.handle}) = lower(${person.handle})`);
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Read the Slack users in one workspace whose linked User has an identity that
|
|
1550
|
+
* matches `condition`, by person key. A key with more than one Slack user is
|
|
1551
|
+
* ambiguous, so callers must not mention it.
|
|
1552
|
+
*/
|
|
1553
|
+
async function readLinkedSlackUsers(condition, slackTeamId) {
|
|
1554
|
+
const rows = await getSqlExecutor().db().select({
|
|
1555
|
+
emailNormalized: juniorIdentities.emailNormalized,
|
|
1556
|
+
emailVerified: juniorIdentities.emailVerified,
|
|
1557
|
+
handle: juniorIdentities.handle,
|
|
1558
|
+
provider: juniorIdentities.provider,
|
|
1559
|
+
slackUserId: linkedSlackIdentity.providerSubjectId
|
|
1560
|
+
}).from(juniorIdentities).innerJoin(linkedSlackIdentity, and(eq(linkedSlackIdentity.userId, juniorIdentities.userId), eq(linkedSlackIdentity.kind, "user"), eq(linkedSlackIdentity.provider, "slack"), eq(linkedSlackIdentity.providerTenantId, slackTeamId))).where(and(eq(juniorIdentities.kind, "user"), condition));
|
|
1561
|
+
const slackUsersByKey = /* @__PURE__ */ new Map();
|
|
1562
|
+
const add = (key, slackUserId) => {
|
|
1563
|
+
const users = slackUsersByKey.get(key) ?? /* @__PURE__ */ new Set();
|
|
1564
|
+
users.add(slackUserId);
|
|
1565
|
+
slackUsersByKey.set(key, users);
|
|
1566
|
+
};
|
|
1567
|
+
for (const row of rows) {
|
|
1568
|
+
if (row.handle) add(`${row.provider}:${row.handle.toLowerCase()}`, row.slackUserId);
|
|
1569
|
+
if (row.emailVerified && row.emailNormalized) add(`email:${row.emailNormalized}`, row.slackUserId);
|
|
1570
|
+
}
|
|
1571
|
+
return slackUsersByKey;
|
|
1572
|
+
}
|
|
1573
|
+
function soleMention(users) {
|
|
1574
|
+
return users?.size === 1 ? slackMention([...users][0]) : void 0;
|
|
1575
|
+
}
|
|
1576
|
+
const HANDLE_MENTION_PATTERN = /(?<![\w.@/-])@([A-Za-z0-9][A-Za-z0-9_.-]*[A-Za-z0-9]|[A-Za-z0-9])/g;
|
|
1577
|
+
const MAX_REPLY_HANDLES = 50;
|
|
1578
|
+
/**
|
|
1579
|
+
* Resolve the `@handle` words in reply text to Slack mentions of known people
|
|
1580
|
+
* in one Slack workspace, by `provider:handle` key in lowercase. A handle
|
|
1581
|
+
* resolves only when exactly one linked Slack user has it for that provider.
|
|
1582
|
+
* Plugins pick the provider when they format the reply.
|
|
1583
|
+
*/
|
|
1584
|
+
async function resolveHandleMentions(text, slackTeamId) {
|
|
1585
|
+
const handles = [...new Set([...text.matchAll(HANDLE_MENTION_PATTERN)].map((match) => match[1].toLowerCase()))].slice(0, MAX_REPLY_HANDLES);
|
|
1586
|
+
if (handles.length === 0) return /* @__PURE__ */ new Map();
|
|
1587
|
+
const slackUsersByKey = await readLinkedSlackUsers(inArray(sql`lower(${juniorIdentities.handle})`, handles), slackTeamId);
|
|
1588
|
+
const mentions = /* @__PURE__ */ new Map();
|
|
1589
|
+
for (const [key, users] of slackUsersByKey) {
|
|
1590
|
+
const mention = soleMention(users);
|
|
1591
|
+
if (mention && !key.startsWith("email:")) mentions.set(key, mention);
|
|
1592
|
+
}
|
|
1593
|
+
return mentions;
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Resolve the Event people and the Event doer to Slack mentions through
|
|
1597
|
+
* linked user identities in one Slack workspace, with one query.
|
|
1598
|
+
*
|
|
1599
|
+
* A person resolves only when exactly one linked Slack user in that workspace
|
|
1600
|
+
* matches. Core drops unlinked and ambiguous people, so a provider value never
|
|
1601
|
+
* guesses a mention.
|
|
1602
|
+
*/
|
|
1603
|
+
async function resolveEventMentions(event, slackTeamId) {
|
|
1604
|
+
const people = event.people ?? [];
|
|
1605
|
+
const lookup = event.doneBy ? [...people, event.doneBy] : people;
|
|
1606
|
+
if (lookup.length === 0) return { people: [] };
|
|
1607
|
+
const slackUsersByKey = await readLinkedSlackUsers(or(...lookup.map(personCondition)), slackTeamId);
|
|
1608
|
+
const mentionOf = (person) => soleMention(slackUsersByKey.get(personKey(person)));
|
|
1609
|
+
const mentions = [];
|
|
1610
|
+
for (const person of people) {
|
|
1611
|
+
const mention = mentionOf(person);
|
|
1612
|
+
if (mention && !mentions.includes(mention)) mentions.push(mention);
|
|
1613
|
+
}
|
|
1614
|
+
const doneByMention = event.doneBy ? mentionOf(event.doneBy) : void 0;
|
|
1615
|
+
if (!doneByMention || !event.doneBy) return { people: mentions };
|
|
1616
|
+
return {
|
|
1617
|
+
people: mentions,
|
|
1618
|
+
doneBy: {
|
|
1619
|
+
mention: doneByMention,
|
|
1620
|
+
..."handle" in event.doneBy ? { handle: event.doneBy.handle } : void 0
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1538
1624
|
// src/chat/slack/output.ts
|
|
1539
1625
|
const MAX_INLINE_CHARS = 4e3;
|
|
1540
1626
|
function getFenceContinuation(text) {
|
|
@@ -1593,9 +1679,9 @@ function takeChunk(text) {
|
|
|
1593
1679
|
};
|
|
1594
1680
|
}
|
|
1595
1681
|
/** Split a normalized Slack reply into thread posts that fit Slack limits. */
|
|
1596
|
-
function splitSlackReplyText(text) {
|
|
1682
|
+
function splitSlackReplyText(text, format) {
|
|
1597
1683
|
const chunks = [];
|
|
1598
|
-
let remaining = normalizeSlackReplyMarkdown(text);
|
|
1684
|
+
let remaining = normalizeSlackReplyMarkdown(text, format);
|
|
1599
1685
|
while (remaining.length > MAX_INLINE_CHARS) {
|
|
1600
1686
|
const { chunk, rest } = takeChunk(remaining);
|
|
1601
1687
|
chunks.push(chunk);
|
|
@@ -1624,14 +1710,29 @@ function resolveSlackReplyTarget(args) {
|
|
|
1624
1710
|
...threadTs ? { threadTs } : void 0
|
|
1625
1711
|
};
|
|
1626
1712
|
}
|
|
1713
|
+
/** Resolve known people for plugin formatting. Fails open, like the hooks. */
|
|
1714
|
+
async function resolveReplyMentions(text, teamId) {
|
|
1715
|
+
try {
|
|
1716
|
+
return await resolveHandleMentions(text, teamId);
|
|
1717
|
+
} catch (error) {
|
|
1718
|
+
logWarn("slack.reply.mentions.failed", { "exception.message": error instanceof Error ? error.message : String(error) });
|
|
1719
|
+
return;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1627
1722
|
/**
|
|
1628
1723
|
* Send one destination-visible Slack reply.
|
|
1629
1724
|
*
|
|
1630
1725
|
* Chunks oversized text, builds compact attribution and conversation footer
|
|
1631
|
-
* context, and posts through the shared Slack outbound boundary.
|
|
1726
|
+
* context, and posts through the shared Slack outbound boundary. Pass
|
|
1727
|
+
* `formatting` for agent replies so plugin formatting can use Location
|
|
1728
|
+
* defaults, such as a default repository, and mention known people.
|
|
1632
1729
|
*/
|
|
1633
1730
|
async function sendSlackReply(args) {
|
|
1634
|
-
const
|
|
1731
|
+
const format = args.formatting && {
|
|
1732
|
+
configuration: args.formatting.configuration,
|
|
1733
|
+
mentions: await resolveReplyMentions(args.text, args.formatting.teamId)
|
|
1734
|
+
};
|
|
1735
|
+
const posts = splitSlackReplyText(args.text, format).map((text) => ({
|
|
1635
1736
|
text,
|
|
1636
1737
|
cards: []
|
|
1637
1738
|
}));
|
|
@@ -3327,4 +3428,4 @@ async function saveStoppedConversationEvents(conversationId, messages) {
|
|
|
3327
3428
|
}
|
|
3328
3429
|
}]);
|
|
3329
3430
|
}
|
|
3330
|
-
export { sendSlackReply as $, turnInputFactsFromConversationMessage as A, requireSlackChannelMessageScope as B, getAuthPausedConversationTurnId as C, parseEventMessages as D, listActiveMailboxTurns as E, isEventMailboxMetadata as F, WORKSPACE_SNAPSHOT_FAILED_EVENT as G, slackChannelMessageReplyThreadTs as H, renderEventBatchInputs as I, workspaceSnapshotWatch as J, WORKSPACE_SNAPSHOT_READY_EVENT as K, timerWatchCredentialSubject as L, EVENT_WAIT_MS as M, enqueueEventNotification as N, resolveMailboxTurnWork as O, eventBatchMessageMeta as P, resolveSlackReplyTarget as Q, getEventCatalog as R, addConversationNote as S, listActiveMailboxTurnSources as T, slackChannelMessageRunsAutomation as U, slackChannelMessageEvent as V, slackChannelMessageTrigger as W, maybePostAutomatedTurnLimitNotice as X, renderTaskInput as Y, postAutomatedTurnLimitNoticeForConversation as Z, readUserCustomization as _, session_stop_exports as a,
|
|
3431
|
+
export { sendSlackReply as $, turnInputFactsFromConversationMessage as A, requireSlackChannelMessageScope as B, getAuthPausedConversationTurnId as C, parseEventMessages as D, listActiveMailboxTurns as E, isEventMailboxMetadata as F, WORKSPACE_SNAPSHOT_FAILED_EVENT as G, slackChannelMessageReplyThreadTs as H, renderEventBatchInputs as I, workspaceSnapshotWatch as J, WORKSPACE_SNAPSHOT_READY_EVENT as K, timerWatchCredentialSubject as L, EVENT_WAIT_MS as M, enqueueEventNotification as N, resolveMailboxTurnWork as O, eventBatchMessageMeta as P, resolveSlackReplyTarget as Q, getEventCatalog as R, addConversationNote as S, listActiveMailboxTurnSources as T, slackChannelMessageRunsAutomation as U, slackChannelMessageEvent as V, slackChannelMessageTrigger as W, maybePostAutomatedTurnLimitNotice as X, renderTaskInput as Y, postAutomatedTurnLimitNoticeForConversation as Z, readUserCustomization as _, session_stop_exports as a, conversationSubtree as at, isExperimentalFeatureEnabled as b, loadReviewItemInput as c, systemPromptHash as ct, buildPromptInput as d, AGENTS_REPLACEMENT_NOTICE as dt, resolveEventMentions as et, buildSteeringPiMessage as f, buildAgentsInstructionsMessage as ft, withoutSavedSteeringMessages as g, showsAgentsInstructions as gt, loadPromptTurnContext as h, renderAgentsInstructions as ht, resumeStoppedConversationTree as i, resetAutomatedTurnLimit as it, legacyWebMailboxMetadataSchema as j, sourceFromTurnInput as k, savedInputInstruction as l, JUNIOR_PERSONALITY as lt, instructionForInputs as m, readRepositoryInstructions as mt, isSkippedAfterConversationStop as n, admitAutomatedTurn as nt, skipInputAfterConversationStop as o, conversationSubtreeColumns as ot, instructionActorFor as p, findVisibleAgentsInstructions as pt, workspaceSnapshotFinishedEvent as q, markConversationsStopped as r, recordFinishedTurnForAutomatedLimit as rt, eventReviewItemInputs as s, buildDeploymentSystemPrompt as st, getConversationStoppedAtMs as t, renderSlackObjectCard as tt, assemblePrompt as u, AGENTS_REMOVAL_NOTICE as ut, saveUserCustomization as v, getEventBatchDelayMs as w, setExperimentalFeatures as x, getExperimentalFeatures as y, SLACK_EVENT_NAMESPACE as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
2
|
+
import { h as logWarn } from "./logging-DcjLDDqi.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-DJhGdS4c.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BEY6EGRi.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
package/dist/{slack-conversation-unfurl-CzQonuWz.js → slack-conversation-unfurl-Bty-DlHe.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import { E as withSpan } from "./logging-
|
|
2
|
+
import { Ao as readLatestConversationBrief, Ea as postSlackEphemeralMessage, Li as parseDashboardConversationLink, Tt as deferConversationMove, as as getWorkspaceTeamId, ka as unfurlSlackLinks, ma as formatSlackLink, pa as escapeSlackMrkdwnText, xo as readConversationAccessFromSql } from "./projection-CQNDOi82.js";
|
|
3
|
+
import { E as withSpan } from "./logging-DcjLDDqi.js";
|
|
4
4
|
import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
|
|
5
|
-
import { K as getConversationIdByProviderConversation, W as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor } from "./db-
|
|
6
|
-
import { i as readActorIdentity } from "./viewer-
|
|
7
|
-
import "./store-
|
|
8
|
-
import { a as runWithSlackInstallation, r as lookupSlackUserProfile, s as checkSlackChannelReadAccess, t as lookupSlackBot } from "./users-
|
|
9
|
-
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-
|
|
5
|
+
import { K as getConversationIdByProviderConversation, W as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor } from "./db-Czra10QW.js";
|
|
6
|
+
import { i as readActorIdentity } from "./viewer-H3EsMWtJ.js";
|
|
7
|
+
import "./store-DmV4CoNr.js";
|
|
8
|
+
import { a as runWithSlackInstallation, r as lookupSlackUserProfile, s as checkSlackChannelReadAccess, t as lookupSlackBot } from "./users-BxvYclQg.js";
|
|
9
|
+
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-DPoABVkB.js";
|
|
10
10
|
import * as z from "zod";
|
|
11
11
|
// src/chat/ingress/workspace-membership.ts
|
|
12
12
|
const MEMBER_TTL_MS = 3e5;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-
|
|
4
|
-
import { $ as AgentDepthLimitError, _ as getAgentInvocation, ot as getAgentBinding, z as createAndEnqueueAgentInvocation } from "./warmup-
|
|
5
|
-
import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-
|
|
6
|
-
import { _ as getConversationWorkState } from "./store-
|
|
7
|
-
import { t as readConversationLineage } from "./lineage-
|
|
2
|
+
import { n as botConfig } from "./config-CmjhyqgB.js";
|
|
3
|
+
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-H4YhvNBj.js";
|
|
4
|
+
import { $ as AgentDepthLimitError, _ as getAgentInvocation, ot as getAgentBinding, z as createAndEnqueueAgentInvocation } from "./warmup-CdU5hR49.js";
|
|
5
|
+
import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-DsUZi9gn.js";
|
|
6
|
+
import { _ as getConversationWorkState } from "./store-DmV4CoNr.js";
|
|
7
|
+
import { t as readConversationLineage } from "./lineage-DmMIE0VL.js";
|
|
8
8
|
// src/chat/agent-invocations/spawn.ts
|
|
9
9
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-CmjhyqgB.js";
|
|
2
|
+
import { h as logWarn } from "./logging-DcjLDDqi.js";
|
|
3
3
|
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
|
4
4
|
// src/chat/encryption/secret.ts
|
|
5
5
|
/**
|