@sentry/junior 0.228.0 → 0.230.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 (57) hide show
  1. package/dist/{agent-hooks-DUQ3ASdp.js → agent-hooks-Im1UUKhZ.js} +10 -10
  2. package/dist/{agent-runner-CIesujf5.js → agent-runner-B9dvsdM8.js} +52 -37
  3. package/dist/api/schema.d.ts +20 -269
  4. package/dist/api/schema.js +3 -3
  5. package/dist/api.js +18 -18
  6. package/dist/{app-BRZB3MuD.d.ts → app-xk2-Id1T.d.ts} +2 -2
  7. package/dist/app.d.ts +1 -1
  8. package/dist/app.js +22 -21
  9. package/dist/{briefs-BTrVMqUg.js → briefs-BC3DPfsh.js} +4 -4
  10. package/dist/{catalog-runtime-NOBDOyJi.js → catalog-runtime-Blx7IGY9.js} +1 -1
  11. package/dist/{checkpoint-CzN3gXoB.js → checkpoint-BDaS7x3C.js} +7 -9
  12. package/dist/cli/chat.js +13 -13
  13. package/dist/cli/check.js +3 -3
  14. package/dist/cli/main.js +1 -1
  15. package/dist/cli/plugins.js +3 -3
  16. package/dist/cli/snapshot-create.js +3 -3
  17. package/dist/cli/upgrade.js +3 -3
  18. package/dist/{client-C6VUBzL_.js → client-DucHsb6b.js} +3 -5
  19. package/dist/{config-BLPaWN1Q.js → config-HqsfInxG.js} +2 -2
  20. package/dist/{conversation-DOI6Y60M.js → conversation-DsuDtoYR.js} +96 -74
  21. package/dist/{conversation-privacy-DJ88ECSq.js → conversation-privacy-k2Ucs1Lg.js} +1 -1
  22. package/dist/{credential-sync-OKs419AB.js → credential-sync-DEF6P_Qr.js} +13 -13
  23. package/dist/{executor-DZVZBfmX.js → executor-C-LEhjeD.js} +1 -1
  24. package/dist/history-DvqWZlYX.d.ts +86 -0
  25. package/dist/{images-D3x6EemU.js → images-owPAu3eq.js} +3 -3
  26. package/dist/instrumentation.js +2 -2
  27. package/dist/{job-queue-BuSPM0cX.js → job-queue-CpNnv-n1.js} +1 -1
  28. package/dist/{logging-Blgn76r3.js → logging-BO1fVUQe.js} +1 -1
  29. package/dist/nitro.d.ts +1 -1
  30. package/dist/nitro.js +3 -3
  31. package/dist/{oauth-authorization-t-NPqTNB.js → oauth-authorization-DPPpHxSI.js} +1 -1
  32. package/dist/{oauth-callback-server-BP7SgTcu.js → oauth-callback-server-BvVXBrQt.js} +2 -2
  33. package/dist/{pending-auth-CXLwmDaG.js → pending-auth-BWgfMCZE.js} +1 -1
  34. package/dist/{profile-a5xmeUHf.js → profile-DpHUuqjR.js} +4 -4
  35. package/dist/{prompt-9C-wUwwx.js → prompt-D5RPLy92.js} +1 -1
  36. package/dist/{registry-BUbczT2k.js → registry-CIi9NkkR.js} +1 -1
  37. package/dist/{resolve-3PhWSiEF.js → resolve-SohTTVYa.js} +2 -2
  38. package/dist/{runner-CsnuKcsq.js → runner-JhOJ60On.js} +9 -9
  39. package/dist/{sandbox-egress-signals-D34sI4J6.js → sandbox-egress-signals-DyO-LeUT.js} +1 -1
  40. package/dist/{schema-CXmCvVLn.js → schema-B-Taar1W.js} +1 -1
  41. package/dist/{skills-CLgyYrgF.js → skills-DElnSC0r.js} +2 -2
  42. package/dist/{spawn-CS56i7Nm.js → spawn-DrH6CP9W.js} +2 -2
  43. package/dist/{task-queue-C2sTDXqQ.js → task-queue-BEzJHMbQ.js} +3 -3
  44. package/dist/{task-runner-uSodiP4v.js → task-runner-DrC1UgCK.js} +9 -9
  45. package/dist/{thread-state-BurqeqMv.js → thread-state-BIXM2uhZ.js} +5 -5
  46. package/dist/{turn-failure-response-Bshcqa0a.js → turn-failure-response-9Ql2NYKh.js} +17 -15
  47. package/dist/{turn-lifecycle-foKlVl_T.js → turn-lifecycle-_YDXUFqj.js} +1 -1
  48. package/dist/{turn-session-routing-DDUMJ2GY.js → turn-session-routing-DYxwlqQl.js} +1 -1
  49. package/dist/{validation-DZc56dXw.js → validation-_gPdrVG7.js} +1 -1
  50. package/dist/{version-y4cRp5Y2.js → version-Y7rGnMXG.js} +1 -1
  51. package/dist/version.js +1 -1
  52. package/dist/{web-authorization-BfVYx0t1.js → web-authorization-COF8MUa5.js} +6 -6
  53. package/dist/{web-input-B6FZlrgg.js → web-input-BmLFoSUw.js} +49 -31
  54. package/dist/{work-Dy8sW9MZ.js → work-CP3L3bNf.js} +7 -7
  55. package/dist/{worker-BH0RP7Hj.js → worker-DlZMqtCm.js} +5 -5
  56. package/package.json +5 -5
  57. package/dist/history-H-SI5Dej.d.ts +0 -128
@@ -1,29 +1,29 @@
1
- import { $t as recordFinishedTurnForAutomatedLimit, B as isListedScheduledAutomation, Cn as createUserTokenStore, D as renderBlockText, E as renderAttachmentText, F as resolveSlackChannelIdFromThreadId, G as readScheduledAutomation, I as listThreadReplies, K as saveScheduledAutomation, M as parseSlackThreadId, N as readSlackRawMessageContext, On as AuthorizationFlowDisabledError, P as resolveSlackChannelIdFromMessage, Pt as getConversationWorkState, Q as effectiveTaskOutcomes, Qt as maybePostAutomatedTurnLimitNotice, Tn as RetryableDeliveryError, V as listPublicScheduledAutomationsForTeams, W as parseScheduledAutomationRow, Z as eventAutomationTriggerAvailable, _n as truncateStatusText, _t as getEventCatalog, a as isExperimentalFeatureEnabled, at as listEventAutomationsCreatedBy, bn as removeReactionFromMessage, bt as appendAndEnqueueExclusiveInboundMessage, c as createContextCompactor, et as deleteEventAutomation, gn as normalizeSlackStatusText, gt as isEventMailboxMetadata, hn as normalizeSlackReplyMarkdown, ht as EVENT_WAIT_MS, it as listDeletedEventAutomationsCreatedBy, j as storeAttachment, kn as shouldEmitDevAgentTrace, mn as formatSlackLink, ot as listPublicEventAutomationsForTeams, pn as escapeSlackMrkdwnText, rt as getEventAutomation, s as executeAgentRun, t as createAgentRunner, tt as eventAutomationBelongsToUser, v as PluginCredentialFailureError, vn as addReactionToMessage, wn as buildSteeringPiMessage, xt as appendAndEnqueueInboundMessage, y as latestProgressStatus, yn as postSlackMessage } from "./agent-runner-CIesujf5.js";
2
- import { b as isProviderRetryError, i as completeText, m as escapeXml, r as completeObject } from "./client-C6VUBzL_.js";
3
- import { C as withLogContext, I as isRecord, L as toOptionalNumber, R as toOptionalString, _ as setSentryUser, b as setTags, d as logException, f as logInfo, n as createChatSdkLogger, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, u as logError, v as setSpanAttributes, w as withSpan } from "./logging-Blgn76r3.js";
4
- import { a as getChatConfig, c as getSlackClientId, d as getSlackSigningSecret, h as normalizeSlackEmojiName, l as getSlackClientSecret, n as botConfig, s as getSlackBotToken } from "./config-BLPaWN1Q.js";
1
+ import { $t as recordFinishedTurnForAutomatedLimit, B as isListedScheduledAutomation, Cn as createUserTokenStore, D as renderBlockText, E as renderAttachmentText, F as resolveSlackChannelIdFromThreadId, G as readScheduledAutomation, I as listThreadReplies, K as saveScheduledAutomation, M as parseSlackThreadId, N as readSlackRawMessageContext, On as AuthorizationFlowDisabledError, P as resolveSlackChannelIdFromMessage, Pt as getConversationWorkState, Q as effectiveTaskOutcomes, Qt as maybePostAutomatedTurnLimitNotice, Tn as RetryableDeliveryError, V as listPublicScheduledAutomationsForTeams, W as parseScheduledAutomationRow, Z as eventAutomationTriggerAvailable, _n as truncateStatusText, _t as getEventCatalog, a as isExperimentalFeatureEnabled, at as listEventAutomationsCreatedBy, bn as removeReactionFromMessage, bt as appendAndEnqueueExclusiveInboundMessage, c as createContextCompactor, et as deleteEventAutomation, gn as normalizeSlackStatusText, gt as isEventMailboxMetadata, hn as normalizeSlackReplyMarkdown, ht as EVENT_WAIT_MS, it as listDeletedEventAutomationsCreatedBy, j as storeAttachment, kn as shouldEmitDevAgentTrace, mn as formatSlackLink, ot as listPublicEventAutomationsForTeams, pn as escapeSlackMrkdwnText, rt as getEventAutomation, s as executeAgentRun, t as createAgentRunner, tt as eventAutomationBelongsToUser, v as PluginCredentialFailureError, vn as addReactionToMessage, wn as buildSteeringPiMessage, xt as appendAndEnqueueInboundMessage, y as latestProgressStatus, yn as postSlackMessage } from "./agent-runner-B9dvsdM8.js";
2
+ import { f as escapeXml, i as completeText, r as completeObject, v as isProviderRetryError } from "./client-DucHsb6b.js";
3
+ import { C as withLogContext, I as isRecord, L as toOptionalNumber, R as toOptionalString, _ as setSentryUser, b as setTags, d as logException, f as logInfo, n as createChatSdkLogger, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, u as logError, v as setSpanAttributes, w as withSpan } from "./logging-BO1fVUQe.js";
4
+ import { a as getChatConfig, c as getSlackClientId, d as getSlackSigningSecret, h as normalizeSlackEmojiName, l as getSlackClientSecret, n as botConfig, s as getSlackBotToken } from "./config-HqsfInxG.js";
5
5
  import { o as modelIdForProfile, r as defaultModelId } from "./model-profile-BwU8mqwD.js";
6
6
  import { a as createActor, b as parseSlackMessageTs, c as isActorUserId, l as isUserActor, o as createSlackActor, p as parseSlackChannelId, s as createSlackResumeActor, t as credentialContextForActor, u as parseActorUserId } from "./context-0Et9iVSB.js";
7
- import { $t as getConversationStore, B as downloadPrivateSlackFile, Bt as recordSlackAttachment, G as isDmChannel, H as getHeaderString, It as buildSentryConversationUrl, K as normalizeSlackConversationId, Lt as getSlackFileId, U as getSlackClient, Zt as getConversationEventStore, _n as createSlackDestination, _t as getDashboardObjectIconLink, en as getDb, gt as getDashboardConversationLink, ht as JUNIOR_THREAD_STATE_TTL_MS, o as getPluginSlackConversationLink, ot as cancelSubscriptions, q as runWithSlackInstallationToken, tn as getSqlExecutor, yn as requireSlackDestination, z as SlackActionError, zt as readAttachmentVisionSummary } from "./agent-hooks-DUQ3ASdp.js";
7
+ import { $t as getConversationStore, B as downloadPrivateSlackFile, Bt as recordSlackAttachment, G as isDmChannel, H as getHeaderString, It as buildSentryConversationUrl, K as normalizeSlackConversationId, Lt as getSlackFileId, U as getSlackClient, Zt as getConversationEventStore, _n as createSlackDestination, _t as getDashboardObjectIconLink, en as getDb, gt as getDashboardConversationLink, ht as JUNIOR_THREAD_STATE_TTL_MS, o as getPluginSlackConversationLink, ot as cancelSubscriptions, q as runWithSlackInstallationToken, tn as getSqlExecutor, yn as requireSlackDestination, z as SlackActionError, zt as readAttachmentVisionSummary } from "./agent-hooks-Im1UUKhZ.js";
8
8
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
9
- import { D as juniorIdentities, O as juniorUsers, o as juniorSchedulerTasks } from "./executor-DZVZBfmX.js";
10
- import { I as readMessageAttachments, R as isVisionImageMediaType, tt as instructionProvenanceFor } from "./conversation-DOI6Y60M.js";
11
- import { $ as fallbackShortTitle, A as commitAcceptedReply, B as recordAuthorizationCompleted, J as hydrateConversationMessages, N as loadConversationProjection, O as trimTrailingAssistantMessages, P as loadProjection, Q as resolveConversationTitle, W as recordSubscribedReplyRoute, Y as persistConversationMessages, Z as persistConversationMessageSummaries, a as completeTurnRecord, at as estimateConversationContextTokens, c as listTurnSummaries, ct as markConversationMessage, dt as turnHasReply, ft as upsertConversationMessage, i as abandonTurnRecord, it as createConversationMemoryService, j as commitMessages, l as recordTurnSummary, lt as normalizeConversationText, n as loadTurnCheckpoint, nt as appendThreadContextMessages, o as failTurnRecord, ot as getConversationMessageSlackTs, p as buildTurnErrorResponse, pt as estimateTextTokens, r as saveTurnCheckpoint, rt as buildConversationContext, s as getTurnRecord, st as isHumanConversationMessage, u as persistWithRetry, ut as recordDeliveredAssistantMessage } from "./checkpoint-CzN3gXoB.js";
12
- import { E as acquireActiveLock, O as withLock, T as MUTATION_LOCK_TTL_MS, w as getStateAdapter } from "./profile-a5xmeUHf.js";
13
- import { a as isPendingAuthLatestRequest, o as buildDeterministicAssistantMessageId, r as clearPendingAuth, s as buildDeterministicTurnId } from "./pending-auth-CXLwmDaG.js";
14
- import { _ as markTurnFailed, c as CooperativeTurnYieldError, d as getConversationTurnBoundaryError, f as isCooperativeTurnYieldError, g as markTurnCompleted, h as markTurnClosed, l as TurnInputCommitLostError, m as isTurnInputDeferredError, p as isTurnInputCommitLostError, r as getAssistantReplyText, s as ConversationTurnBoundaryError, u as TurnInputDeferredError, v as startActiveTurn } from "./oauth-authorization-t-NPqTNB.js";
15
- import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-9C-wUwwx.js";
16
- import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-BuSPM0cX.js";
9
+ import { D as juniorIdentities, O as juniorUsers, o as juniorSchedulerTasks } from "./executor-C-LEhjeD.js";
10
+ import { N as isVisionImageMediaType, j as readMessageAttachments, nt as instructionProvenanceFor } from "./conversation-DsuDtoYR.js";
11
+ import { $ as fallbackShortTitle, A as commitAcceptedReply, B as recordAuthorizationCompleted, J as hydrateConversationMessages, N as loadConversationProjection, O as trimTrailingAssistantMessages, P as loadProjection, Q as resolveConversationTitle, W as recordSubscribedReplyRoute, Y as persistConversationMessages, Z as persistConversationMessageSummaries, a as completeTurnRecord, at as estimateConversationContextTokens, c as listTurnSummaries, ct as markConversationMessage, dt as turnHasReply, ft as upsertConversationMessage, i as abandonTurnRecord, it as createConversationMemoryService, j as commitMessages, l as recordTurnSummary, lt as normalizeConversationText, n as loadTurnCheckpoint, nt as appendThreadContextMessages, o as failTurnRecord, ot as getConversationMessageSlackTs, p as buildTurnErrorResponse, pt as estimateTextTokens, r as saveTurnCheckpoint, rt as buildConversationContext, s as getTurnRecord, st as isHumanConversationMessage, u as persistWithRetry, ut as recordDeliveredAssistantMessage } from "./checkpoint-BDaS7x3C.js";
12
+ import { E as acquireActiveLock, O as withLock, T as MUTATION_LOCK_TTL_MS, w as getStateAdapter } from "./profile-DpHUuqjR.js";
13
+ import { a as isPendingAuthLatestRequest, o as buildDeterministicAssistantMessageId, r as clearPendingAuth, s as buildDeterministicTurnId } from "./pending-auth-BWgfMCZE.js";
14
+ import { _ as markTurnFailed, c as CooperativeTurnYieldError, d as getConversationTurnBoundaryError, f as isCooperativeTurnYieldError, g as markTurnCompleted, h as markTurnClosed, l as TurnInputCommitLostError, m as isTurnInputDeferredError, p as isTurnInputCommitLostError, r as getAssistantReplyText, s as ConversationTurnBoundaryError, u as TurnInputDeferredError, v as startActiveTurn } from "./oauth-authorization-DPPpHxSI.js";
15
+ import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-D5RPLy92.js";
16
+ import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-CpNnv-n1.js";
17
17
  import { c as sumUtcHoursIntoSixHours, m as healthReportSchema, t as webMessageId } from "./web-message-id-xPI_EFSC.js";
18
- import { C as readAutomationExecutionStatusDays, D as readAutomationRuns, E as readAutomationExecutions, S as readAutomationExecutionHours, T as readAutomationExecutionSummaries, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, b as readAutomationExecutionByConversationId, c as getDispatchInputMessageId, f as isTerminalDispatchStatus, g as markDispatchCompleted, h as markDispatchBlocked, i as claimDispatchMailboxAppend, l as getDispatchRecord, m as markDispatchAwaitingResume, n as scheduleSessionCompletedPluginTasks, s as getDispatchConversationId, t as processPluginTask, u as getDispatchTurnId, v as markDispatchRunning, w as readAutomationExecutionStatusHours, x as readAutomationExecutionDays, y as emptyAutomationRunWindows } from "./task-runner-uSodiP4v.js";
19
- import { i as resolveAgentInvocationId, o as AgentRunError, s as executeTurn, t as createAgentInvocationWorker } from "./work-Dy8sW9MZ.js";
20
- import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-foKlVl_T.js";
21
- import { a as persistThreadState, c as configValueSchema, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-BurqeqMv.js";
22
- import { a as getPausedTurnRequest, c as getTurnAuthorization, i as createPausedTurns, n as deleteWebAuthorization, s as wakePausedTurn, t as createWebAuthorization } from "./web-authorization-BfVYx0t1.js";
23
- import { n as resolveTurnSessionRouting } from "./turn-session-routing-DDUMJ2GY.js";
24
- import { t as bindSpawnAgent } from "./spawn-CS56i7Nm.js";
25
- import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as getInterruptionMarker } from "./turn-failure-response-Bshcqa0a.js";
26
- import { r as storeInputImages } from "./images-D3x6EemU.js";
18
+ import { C as readAutomationExecutionStatusDays, D as readAutomationRuns, E as readAutomationExecutions, S as readAutomationExecutionHours, T as readAutomationExecutionSummaries, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, b as readAutomationExecutionByConversationId, c as getDispatchInputMessageId, f as isTerminalDispatchStatus, g as markDispatchCompleted, h as markDispatchBlocked, i as claimDispatchMailboxAppend, l as getDispatchRecord, m as markDispatchAwaitingResume, n as scheduleSessionCompletedPluginTasks, s as getDispatchConversationId, t as processPluginTask, u as getDispatchTurnId, v as markDispatchRunning, w as readAutomationExecutionStatusHours, x as readAutomationExecutionDays, y as emptyAutomationRunWindows } from "./task-runner-DrC1UgCK.js";
19
+ import { i as resolveAgentInvocationId, o as AgentRunError, s as executeTurn, t as createAgentInvocationWorker } from "./work-CP3L3bNf.js";
20
+ import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-_YDXUFqj.js";
21
+ import { a as persistThreadState, c as configValueSchema, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-BIXM2uhZ.js";
22
+ import { a as getPausedTurnRequest, c as getTurnAuthorization, i as createPausedTurns, n as deleteWebAuthorization, s as wakePausedTurn, t as createWebAuthorization } from "./web-authorization-COF8MUa5.js";
23
+ import { n as resolveTurnSessionRouting } from "./turn-session-routing-DYxwlqQl.js";
24
+ import { t as bindSpawnAgent } from "./spawn-DrH6CP9W.js";
25
+ import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as getInterruptionMarker } from "./turn-failure-response-9Ql2NYKh.js";
26
+ import { r as storeInputImages } from "./images-owPAu3eq.js";
27
27
  import { z } from "zod";
28
28
  import { createHash } from "node:crypto";
29
29
  import { and, desc, eq, inArray, lt, notInArray, or, sql } from "drizzle-orm";
@@ -388,6 +388,11 @@ function renderSlackAutomationCard(card) {
388
388
  }
389
389
  //#endregion
390
390
  //#region src/chat/slack/object-card.ts
391
+ function descriptionPreview(value) {
392
+ const text = value?.replace(/\r\n/g, "\n").trim() ?? "";
393
+ const preview = text.split("\n").slice(0, 6).join("\n").slice(0, 500);
394
+ return preview.length < text.length ? `${preview.slice(0, 499).trimEnd()}…` : preview;
395
+ }
391
396
  /** Render verified annotation facts as a native Task or Item preview. */
392
397
  function renderSlackObjectCard(card, conversationId) {
393
398
  if (card.objectType === "automation" && card.plugin === "junior") return renderSlackAutomationCard({
@@ -403,11 +408,13 @@ function renderSlackObjectCard(card, conversationId) {
403
408
  const iconUrl = getDashboardObjectIconLink(presentation.icon);
404
409
  const title = card.title.slice(0, 160);
405
410
  const facts = objectFactFields(card.facts);
411
+ const description = descriptionPreview(card.description);
406
412
  const text = [
407
413
  escapeSlackMrkdwnText(type),
408
414
  card.url ? formatSlackLink(card.url, title) : escapeSlackMrkdwnText(title),
409
415
  escapeSlackMrkdwnText(card.label),
410
416
  card.status ? escapeSlackMrkdwnText(card.status) : null,
417
+ description ? escapeSlackMrkdwnText(description) : null,
411
418
  card.warning ? escapeSlackMrkdwnText(`Needs attention: ${card.warning}`) : null,
412
419
  ...facts.map((field) => escapeSlackMrkdwnText(`${field.label}: ${field.value}`))
413
420
  ].filter(Boolean).join("\n");
@@ -426,15 +433,26 @@ function renderSlackObjectCard(card, conversationId) {
426
433
  } : void 0,
427
434
  product_name: card.plugin
428
435
  };
429
- const customFields = [...facts.map((field) => ({
430
- ...field,
431
- type: "string"
432
- })), ...card.warning ? [{
433
- key: "warning",
434
- label: "Needs attention",
435
- type: "string",
436
- value: card.warning
437
- }] : []];
436
+ const customFields = [
437
+ ...description ? [{
438
+ key: "description",
439
+ label: "Description",
440
+ type: "string",
441
+ value: description,
442
+ long: true,
443
+ format: "markdown"
444
+ }] : [],
445
+ ...facts.map((field) => ({
446
+ ...field,
447
+ type: "string"
448
+ })),
449
+ ...card.warning ? [{
450
+ key: "warning",
451
+ label: "Needs attention",
452
+ type: "string",
453
+ value: card.warning
454
+ }] : []
455
+ ];
438
456
  return {
439
457
  text,
440
458
  entity: {
@@ -1,11 +1,11 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { On as AuthorizationFlowDisabledError, ct as agentInvocationSchema, dt as AgentInvocationLimitError, lt as createAgentInvocationSchema, n as runAgentWithTimeout, st as agentBindingSchema, ut as AgentInvocationBusyError, v as PluginCredentialFailureError, xt as appendAndEnqueueInboundMessage } from "./agent-runner-CIesujf5.js";
3
- import { $t as getConversationStore, Zt as getConversationEventStore, tn as getSqlExecutor } from "./agent-hooks-DUQ3ASdp.js";
4
- import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-DZVZBfmX.js";
5
- import { I as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-CzN3gXoB.js";
6
- import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-t-NPqTNB.js";
7
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-foKlVl_T.js";
8
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-BurqeqMv.js";
2
+ import { On as AuthorizationFlowDisabledError, ct as agentInvocationSchema, dt as AgentInvocationLimitError, lt as createAgentInvocationSchema, n as runAgentWithTimeout, st as agentBindingSchema, ut as AgentInvocationBusyError, v as PluginCredentialFailureError, xt as appendAndEnqueueInboundMessage } from "./agent-runner-B9dvsdM8.js";
3
+ import { $t as getConversationStore, Zt as getConversationEventStore, tn as getSqlExecutor } from "./agent-hooks-Im1UUKhZ.js";
4
+ import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-C-LEhjeD.js";
5
+ import { I as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-BDaS7x3C.js";
6
+ import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-DPPpHxSI.js";
7
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-_YDXUFqj.js";
8
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-BIXM2uhZ.js";
9
9
  import { z } from "zod";
10
10
  import { createHash } from "node:crypto";
11
11
  import { and, asc, count, eq, inArray } from "drizzle-orm";
@@ -1,9 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { At as deadLetterAttempt, Dt as completeConversationStop, Lt as recordAttemptFailure, Mt as ensureConversationWake, Ot as completeConversationWork, Pt as getConversationWorkState, Rt as recordConversationRetry, St as beginConversationResume, Tt as clearConsumedConversationWake, Ut as startConversationWork, Vt as requestAnotherSlice, Xt as isInvalidConversationRecordError, Yt as isFinalAttempt, jt as drainConversationMailbox, kt as countPendingConversationMessages, qt as hasConversationStop, wt as checkInConversationWork, yt as ackMessages, zt as releaseConversationWork } from "./agent-runner-CIesujf5.js";
3
- import { b as isProviderRetryError } from "./client-C6VUBzL_.js";
4
- import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-Blgn76r3.js";
5
- import { a as getChatConfig } from "./config-BLPaWN1Q.js";
6
- import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-BuSPM0cX.js";
2
+ import { At as deadLetterAttempt, Dt as completeConversationStop, Lt as recordAttemptFailure, Mt as ensureConversationWake, Ot as completeConversationWork, Pt as getConversationWorkState, Rt as recordConversationRetry, St as beginConversationResume, Tt as clearConsumedConversationWake, Ut as startConversationWork, Vt as requestAnotherSlice, Xt as isInvalidConversationRecordError, Yt as isFinalAttempt, jt as drainConversationMailbox, kt as countPendingConversationMessages, qt as hasConversationStop, wt as checkInConversationWork, yt as ackMessages, zt as releaseConversationWork } from "./agent-runner-B9dvsdM8.js";
3
+ import { v as isProviderRetryError } from "./client-DucHsb6b.js";
4
+ import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-BO1fVUQe.js";
5
+ import { a as getChatConfig } from "./config-HqsfInxG.js";
6
+ import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-CpNnv-n1.js";
7
7
  //#region src/chat/task-execution/worker.ts
8
8
  var worker_exports = /* @__PURE__ */ __exportAll({
9
9
  CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.228.0",
3
+ "version": "0.230.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -86,7 +86,7 @@
86
86
  "pg": "^8.16.3",
87
87
  "yaml": "^2.9.0",
88
88
  "zod": "^4.5.4",
89
- "@sentry/junior-plugin-api": "0.228.0"
89
+ "@sentry/junior-plugin-api": "0.230.0"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@emnapi/core": "^1.10.0",
@@ -105,9 +105,9 @@
105
105
  "typescript": "^6.0.3",
106
106
  "vercel": "^54.4.0",
107
107
  "vitest": "^4.1.7",
108
- "@sentry/junior-memory": "0.228.0",
109
- "@sentry/junior-testing": "0.0.0",
110
- "@sentry/junior-github": "0.228.0"
108
+ "@sentry/junior-github": "0.230.0",
109
+ "@sentry/junior-memory": "0.230.0",
110
+ "@sentry/junior-testing": "0.0.0"
111
111
  },
112
112
  "scripts": {
113
113
  "build": "tsdown",
@@ -1,128 +0,0 @@
1
- import { z } from "zod";
2
- import "@sentry/junior-plugin-api";
3
- //#region src/chat/attachments/input.d.ts
4
- /** Bound JSON image input below the hosting platform's request size limit. */
5
- declare const MAX_INPUT_IMAGE_BYTES: number;
6
- declare const MAX_INPUT_IMAGES = 3;
7
- /** Image bytes accepted with a web message, never stored in its mailbox row. */
8
- declare const inputImageSchema: z.ZodObject<{
9
- filename: z.ZodString;
10
- contentType: z.ZodEnum<{
11
- "image/png": "image/png";
12
- "image/jpeg": "image/jpeg";
13
- "image/gif": "image/gif";
14
- "image/webp": "image/webp";
15
- }>;
16
- data: z.ZodString;
17
- }, z.core.$strict>;
18
- type InputImage = z.output<typeof inputImageSchema>;
19
- /** Safe attachment facts shared by mailbox input and transcript messages. */
20
- declare const messageAttachmentSchema: z.ZodObject<{
21
- id: z.ZodString;
22
- filename: z.ZodString;
23
- contentType: z.ZodString;
24
- bytes: z.ZodNumber;
25
- }, z.core.$strict>;
26
- type MessageAttachment = z.output<typeof messageAttachmentSchema>;
27
- //#endregion
28
- //#region src/chat/conversations/cards.d.ts
29
- /** Built-in response types accepted by Message storage and delivery. */
30
- declare const messageCardSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
31
- kind: z.ZodLiteral<"automation">;
32
- id: z.ZodString;
33
- title: z.ZodString;
34
- url: z.ZodNullable<z.ZodString>;
35
- instruction: z.ZodString;
36
- trigger: z.ZodString;
37
- warning: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strict>, z.ZodObject<{
39
- kind: z.ZodLiteral<"object">;
40
- key: z.ZodString;
41
- label: z.ZodString;
42
- objectType: z.ZodEnum<{
43
- code_change: "code_change";
44
- task: "task";
45
- deployment: "deployment";
46
- automation: "automation";
47
- item: "item";
48
- }>;
49
- title: z.ZodString;
50
- url: z.ZodNullable<z.ZodURL>;
51
- description: z.ZodOptional<z.ZodString>;
52
- status: z.ZodOptional<z.ZodString>;
53
- trigger: z.ZodOptional<z.ZodString>;
54
- warning: z.ZodOptional<z.ZodString>;
55
- displayType: z.ZodOptional<z.ZodString>;
56
- sourceUpdatedAt: z.ZodOptional<z.ZodISODateTime>;
57
- facts: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
58
- type: z.ZodLiteral<"code_change">;
59
- author: z.ZodOptional<z.ZodString>;
60
- sourceBranch: z.ZodOptional<z.ZodString>;
61
- targetBranch: z.ZodOptional<z.ZodString>;
62
- reviewers: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
- review: z.ZodOptional<z.ZodEnum<{
64
- required: "required";
65
- approved: "approved";
66
- changes_requested: "changes_requested";
67
- }>>;
68
- checks: z.ZodOptional<z.ZodObject<{
69
- passed: z.ZodNumber;
70
- failed: z.ZodNumber;
71
- pending: z.ZodNumber;
72
- }, z.core.$strict>>;
73
- mergeable: z.ZodOptional<z.ZodBoolean>;
74
- changedFiles: z.ZodOptional<z.ZodNumber>;
75
- additions: z.ZodOptional<z.ZodNumber>;
76
- deletions: z.ZodOptional<z.ZodNumber>;
77
- }, z.core.$strict>, z.ZodObject<{
78
- type: z.ZodLiteral<"task">;
79
- assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
- priority: z.ZodOptional<z.ZodString>;
81
- project: z.ZodOptional<z.ZodString>;
82
- cycle: z.ZodOptional<z.ZodString>;
83
- dueDate: z.ZodOptional<z.ZodISODate>;
84
- labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
- }, z.core.$strict>, z.ZodObject<{
86
- type: z.ZodLiteral<"deployment">;
87
- project: z.ZodOptional<z.ZodString>;
88
- environment: z.ZodOptional<z.ZodString>;
89
- revision: z.ZodOptional<z.ZodString>;
90
- branch: z.ZodOptional<z.ZodString>;
91
- }, z.core.$strict>], "type">>;
92
- plugin: z.ZodString;
93
- }, z.core.$strict>], "kind">;
94
- type MessageCard = z.output<typeof messageCardSchema>;
95
- /** Render each built-in card with its own text format. */
96
- declare function messageCardText(card: MessageCard): string;
97
- //#endregion
98
- //#region src/chat/conversations/history.d.ts
99
- /** Where a failed turn stopped. */
100
- declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
101
- agent_run_failed: "agent_run_failed";
102
- delivery_failed: "delivery_failed";
103
- model_execution_failed: "model_execution_failed";
104
- persistence_failed: "persistence_failed";
105
- }>;
106
- /**
107
- * Why a failed turn stopped.
108
- * Values are fixed labels only. Do not store raw exception text.
109
- */
110
- declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
111
- unknown: "unknown";
112
- capacity: "capacity";
113
- auth: "auth";
114
- permission: "permission";
115
- rate_limit: "rate_limit";
116
- timeout: "timeout";
117
- network: "network";
118
- server: "server";
119
- invalid_request: "invalid_request";
120
- invalid_response: "invalid_response";
121
- quota: "quota";
122
- content_policy: "content_policy";
123
- empty_output: "empty_output";
124
- tool_errors: "tool_errors";
125
- suppressed_output: "suppressed_output";
126
- }>;
127
- //#endregion
128
- export { InputImage as a, MessageAttachment as c, messageCardText as i, conversationTurnFailureReasonSchema as n, MAX_INPUT_IMAGES as o, MessageCard as r, MAX_INPUT_IMAGE_BYTES as s, conversationTurnFailureCodeSchema as t };