@sentry/junior 0.283.0 → 0.284.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/{adapter-D8-lqOBF.js → adapter-CW5UW7vL.js} +1 -1
  2. package/dist/{admin-Dnw5SCXp.js → admin-DUWN8zZX.js} +1 -1
  3. package/dist/{agent-runner-Bj7GhysW.js → agent-runner-Cqr21pOU.js} +24 -22
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +4 -3
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +96 -23
  8. package/dist/{app-CMBP-N43.d.ts → app-CvGalMxi.d.ts} +2 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +32 -29
  11. package/dist/{assistant-reply-CdYsLbXL.js → assistant-reply-CFE-OZMS.js} +1 -1
  12. package/dist/{automation-MLWOrghe.js → automation-Zvx_I9Z5.js} +1 -1
  13. package/dist/{background-compaction-queue-Bbsqx8Vm.js → background-compaction-queue-CHFzrQbS.js} +2 -2
  14. package/dist/{briefs-C4qBY-jb.js → briefs-Cx7mkfSk.js} +2 -2
  15. package/dist/{catalog-runtime-B7NRB7eH.js → catalog-runtime-dKOVbR7l.js} +1 -1
  16. package/dist/cli/chat.js +14 -14
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +4 -4
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +30 -4
  23. package/dist/{client-a3Ib6wxr.js → client-CMyH5rDz.js} +2 -2
  24. package/dist/{config-DFVlYCeY.js → config-Dt3CpG17.js} +1 -1
  25. package/dist/{connections-BtnvpBEV.js → connections-CCHPybZP.js} +10 -10
  26. package/dist/{conversation-privacy-DLq-abjU.js → conversation-privacy-BpHHhEVp.js} +1 -1
  27. package/dist/{credential-sync-B4XFVcjM.js → credential-sync-BBPw8dam.js} +13 -13
  28. package/dist/{db-A_WrTY-s.d.ts → db-D7CCwAo8.d.ts} +1 -1
  29. package/dist/{executor-HPgHGAWK.js → executor-CyIwHz9r.js} +20 -3
  30. package/dist/instrumentation.js +37 -13
  31. package/dist/{logging-2BXvW7Mp.js → logging-Qo-7xGp1.js} +1 -1
  32. package/dist/{message-BG1v1lXX.js → message-DFbtOWqv.js} +9 -9
  33. package/dist/nitro.d.ts +1 -1
  34. package/dist/nitro.js +3 -3
  35. package/dist/{oauth-callback-server-CXNZJymo.js → oauth-callback-server-BB1gixWo.js} +2 -2
  36. package/dist/{projection-BfKkpOGQ.js → projection-0UcUeuzn.js} +305 -13
  37. package/dist/push-endpoint-CO-nomUd.js +36 -0
  38. package/dist/{registry-CLooHPAz.js → registry-DOnPkI8g.js} +1 -1
  39. package/dist/{resolve-D3MK9oRJ.js → resolve-Di3omymY.js} +3 -3
  40. package/dist/{result-BPCjUefO.js → result-NvndYzCb.js} +8 -8
  41. package/dist/{runner-Ds31u3rB.js → runner-CnX_dTKw.js} +10 -10
  42. package/dist/{sandbox-egress-signals-CLd5RPUw.js → sandbox-egress-signals-CtxLJmmg.js} +1 -1
  43. package/dist/{cadence-R7Em4RjE.js → schedule-BTp__wrw.js} +81 -1
  44. package/dist/{schema-jW3ccLjp.d.ts → schema-B017enNE.d.ts} +40 -1
  45. package/dist/{schema-CHNP0GfH.js → schema-Bn3miEd_.js} +33 -2
  46. package/dist/{service-account-D6AMahy7.js → service-account-KhZIqXRi.js} +3 -3
  47. package/dist/{service-account-CWpTsoIM.js → service-account-ewDAx4Mx.js} +3 -3
  48. package/dist/{session-stop-D8LGC3H6.js → session-stop-D_1SysjC.js} +10 -10
  49. package/dist/{skills-DuOKByQH.js → skills-CKyotM4g.js} +2 -2
  50. package/dist/{spawn-CNIQGgAS.js → spawn-D5D2MQdz.js} +2 -2
  51. package/dist/{stop-DX2oOIgl.js → stop-BSKRTaRS.js} +45 -37
  52. package/dist/{store-61mD4ZSh.js → store-G3S0kWSD.js} +4 -4
  53. package/dist/{store-DAJntSEv.js → store-ymkEUWe4.js} +3 -3
  54. package/dist/{task-queue-BE70Pb9p.js → task-queue-BcOHzXxe.js} +3 -3
  55. package/dist/{task-runner-CmmfddSZ.js → task-runner-B65cDumh.js} +17 -8
  56. package/dist/{thread-state-0UfRMWYd.js → thread-state-D6rNGQu9.js} +4 -4
  57. package/dist/{turn-failure-response-DKdzxJHE.js → turn-failure-response-BlO4nuDJ.js} +6 -6
  58. package/dist/{turn-lifecycle-24sBZ4Ip.js → turn-lifecycle-BQ8ETk63.js} +1 -1
  59. package/dist/{turn-session-routing-CzCnNAUO.js → turn-session-routing-D_GXfcAG.js} +9 -9
  60. package/dist/{validation-Cs_knhR8.js → validation-DJG_wrg2.js} +1 -1
  61. package/dist/{version-ZMC4cXWN.js → version-i1An1eTS.js} +1 -1
  62. package/dist/version.js +1 -1
  63. package/dist/{viewer-CYB9T4rm.js → viewer-BlpnzZZa.js} +3 -3
  64. package/dist/{work-J1n6RQkY.js → work-BgCW3FDC.js} +10 -10
  65. package/dist/{worker-s1fCvj1z.js → worker-BJz1mwYt.js} +6 -6
  66. package/migrations/0082_push_notifications.sql +14 -0
  67. package/migrations/meta/0082_snapshot.json +4373 -0
  68. package/migrations/meta/_journal.json +7 -0
  69. package/package.json +7 -5
@@ -1,4 +1,4 @@
1
- import { i as getChatConfig } from "./config-DFVlYCeY.js";
1
+ import { i as getChatConfig } from "./config-Dt3CpG17.js";
2
2
  import { t as ACTIVE_LOCK_TTL_MS } from "./locks-D-0h111u.js";
3
3
  import { createMemoryState } from "@chat-adapter/state-memory";
4
4
  import { createRedisState } from "@chat-adapter/state-redis";
@@ -1,4 +1,4 @@
1
- import { S as getDb, r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-CYB9T4rm.js";
1
+ import { S as getDb, r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-BlpnzZZa.js";
2
2
  import { CLI_USAGE } from "./cli/run.js";
3
3
  // src/cli/admin.ts
4
4
  /**
@@ -1,32 +1,32 @@
1
1
  import { g as withActiveSpan, i as getActiveSpan, m as startInactiveSpan, v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { $i as isWorkspaceSnapshotNotReadyError, $r as updateWorkspace, $t as isStandaloneRuntimeContextMessage, An as createPluginHookRunner, B as authorizationId, Bi as isConversationScopedChannel, Bt as createTurnLimitGate, Ca as sandboxSkillDir, Ci as addReactionToMessage, Da as buildNonInteractiveShellScript, Dn as getOAuthAccountProviders, Dr as findMatchingWatches, Ea as buildCommandScript, Ei as openSlackDirectMessage, Er as deliverWatch, Fi as SlackActionError, Fn as getPluginTools, Ft as TURN_LIMIT_WRAP_UP_MESSAGE, G as canReusePendingAuthLink, Gt as getPiMessageRole, H as AuthorizationFlowDisabledError, Hi as normalizeSlackConversationId, Hr as getDashboardTaskLink, Ht as CODEMODE_TOOL_NAME, Ii as downloadPrivateSlackFile, In as getPluginUserPromptContributions, It as TurnBudgetExceededError, Ji as isAlreadyExistsError, Jn as getReviewItem, Jr as deleteWorkspace, Jt as hasCurrentInstruction, Kn as dismissOpenReviewItems, Kr as renderToolResultNudge, Kt as getTerminalAssistantMessages, L as createPluginEgress, Li as getFilePermalink, Ln as getPlugins, Lt as TurnSliceLimitExceededError, Mi as uploadFilesToConversation, Na as readConversationAccessFromSql, Oa as runNonInteractiveCommand, Or as getWatch, Pn as getPluginSystemPromptContributions, Qi as getWorkspaceSnapshotNotReadyError, Qn as searchReviewItems, Qt as isContinuablePiBoundary, R as PluginCredentialFailureError, Rt as TurnToolCallLimitExceededError, Sa as SANDBOX_WORKSPACE_ROOT, Sn as isExperimentalFeatureEnabled, So as getConfigDefaults, Sr as cancelWatch, T as resolveTaskTitle, Ta as sandboxSkillPathResolution, Ti as getSlackMessagePermalink, Tn as findLegacyWebActorUserId, Tr as createWatch, U as AuthorizationPauseError, Ui as runWithSlackInstallationToken, V as AuthPausePersistenceError, Vr as getDashboardReviewItemLink, Vt as isTurnExecutionLimitExceededError, W as abandonReplacedPendingAuth, Wi as withSlackRetries, Wn as closeReviewItem, Wr as ToolInputError, Wt as extractAssistantText, X as loadTurnCheckpoint, Xi as wrapSandboxSetupError, Xr as getWorkspaceByName, Y as continuableMessages, Yi as throwSandboxOperationError, Yn as insertReviewItem, Yr as getWorkspace, Yt as hasRuntimeTurnContext, Z as saveTurnCheckpoint, Zi as WorkspaceSnapshotNotReadyError, Zr as listWorkspaces, Zt as isAssistantMessage, _a as SANDBOX_COMMAND_PATH, _i as escapeSlackMrkdwnText, _n as estimateTextTokens, _o as historyItemFromPiMessage, _r as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ai as create, an as trimTrailingAssistantMessages, ba as SANDBOX_REPOS_ROOT, bn as getAgentContextInputLimitTokens, bo as JUNIOR_NATIVE_EVENT_NAMESPACE, br as STOP_WATCHING_TOOL_NAME, c as recordAgentsInstructionsUpdated, ca as resolveSandboxCommandEnvironment, ci as ensureDockerDaemon, cn as TURN_CONTEXT_TAG, co as createPluginAnnotations, cr as requireReviewItemLinks, da as sleep, do as defaultTimezone, dr as EVERYONE_ASSIGNEE, ea as workspaceSnapshotNotReadyUserMessage, ei as WorkspaceValidationError, en as isToolResultError, er as updateReviewItemContent, f as recordAuthorizationRequested, fa as tryWorkspaceRepoCheckoutPath, fi as deliverOAuthAuthorization, fo as resolveUserTimezone, fr as automationCreatorUserId, g as recordToolExecutionStarted, gn as estimateRequestOverheadTokens, gr as getSlackToolContext, hi as resolveBaseUrl, hn as calculateContextCompactionTargetTokens, hr as resolveChannelCapabilities, i as loadConversationProjection, ia as createSandboxEgressCredentialToken, ii as setWorkspaceSnapshotBuild, in as stripRuntimeTurnContext, ir as canReadReviewItem, ja as canAccessConversation, ji as updateSlackMessage, ki as postSlackMessage, kr as listWatches, l as recordAttachmentsDelivered, li as getSandboxProvider, m as recordMcpProviderConnected, ma as PluginToolDeniedError, mr as resolveAssignees, na as consumeSandboxEgressAuthRequiredSignal, ni as loadSnapshotsForProfile, nn as normalizeToolNameFromResult, no as matchSlackAttachments, oi as hash, on as REQUEST_CONTEXT_SECTION_TAG, or as readReviewItemAgentScope, p as recordGuardianActionReviewed, pa as workspaceRepoCheckoutPath, pi as formatProviderLabel, pr as resolveAssignee, qi as isAbortError, qn as getOpenReviewItemByDedupeKey, qr as createWorkspace, qt as getUserMessageInstructionText, r as loadConnectedMcpProviders, ra as consumeSandboxEgressPermissionDeniedSignal, ri as setWorkspaceSnapshot, rn as retainRuntimeTurnContext, rr as canAgentChangeReviewItem, sa as buildSandboxEgressNetworkPolicy, si as isStale, sn as SESSION_CONTEXT_SECTION_TAG, so as saveObjectAnnotations, sr as requireReviewItemAssignees, ta as clearSandboxEgressSignals, ti as invalidateReadySnapshot, tn as isToolResultMessage, tr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, ua as SANDBOX_RUNTIME, un as buildDeterministicTurnId, va as SANDBOX_DATA_ROOT, vn as getAgentBackgroundCompactionMarkTokens, vo as piMessageFromHistoryItem, vr as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, w as fallbackShortTitle, wa as sandboxSkillFile, wi as deleteSlackMessage, wn as createUserTokenStore, wr as createTimerWatch, xa as SANDBOX_SKILLS_ROOT, xi as slackMention, xo as conversationNoteEvent, xr as cancelSubscriptions, ya as SANDBOX_JUNIOR_ROOT, yi as normalizeSlackReplyMarkdown, yn as getAgentContextCompactionTriggerTokens, yo as projectConversationEvents, yr as RESOURCE_WATCH_TOOL_SOURCE, z as createPluginAuthOrchestration, zi as getSlackClient, zr as getDashboardConversationLink } from "./projection-BfKkpOGQ.js";
3
- import { C as resolveGatewayCredential, S as getGatewayApiKey, _ as createProviderError, a as completeText, c as resolveGatewayModel, d as isCompactionSummaryText, f as renderCurrentInstruction, g as ProviderError, h as escapeXmlText, i as completeObject, l as COMPACTION_SUMMARY_PREFIX, m as escapeXml, n as GEN_AI_SERVER_ADDRESS, p as unwrapCurrentInstruction, t as GEN_AI_PROVIDER_NAME, u as hasCompactedConversationContext, v as findProviderError, x as isProviderRetryError, y as getProviderErrorAttributes } from "./client-a3Ib6wxr.js";
4
- import { _ as toPiReasoningLevel, g as TURN_REASONING_LEVELS, n as botConfig, v as normalizeSlackEmojiName } from "./config-DFVlYCeY.js";
5
- import { B as runWithLogAttributes, C as summarizeMessageText, E as withSpan, K as toOptionalString, S as setTags, T as withLogContext, U as normalizeIdentityEmail, W as isRecord$4, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, d as logAudit, f as logError, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, l as getLogContextAttributesForSpan, m as logInfo, p as logException, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-2BXvW7Mp.js";
6
- import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-DLq-abjU.js";
2
+ import { $i as withSlackRetries, $r as ToolInputError, $t as isStandaloneRuntimeContextMessage, Aa as SANDBOX_SKILLS_ROOT, Ai as slackMention, An as createPluginHookRunner, Ao as conversationNoteEvent, Ar as cancelWatch, B as authorizationId, Ba as canAccessConversation, Bi as updateSlackMessage, Bt as createTurnLimitGate, Ca as PluginToolDeniedError, Cr as resolveChannelCapabilities, Da as SANDBOX_DATA_ROOT, Dn as getOAuthAccountProviders, Do as piMessageFromHistoryItem, Dr as RESOURCE_WATCH_TOOL_SOURCE, Ea as SANDBOX_COMMAND_PATH, Ei as escapeSlackMrkdwnText, Eo as historyItemFromPiMessage, Er as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, Fa as buildCommandScript, Fi as openSlackDirectMessage, Fn as getPluginTools, Fr as findMatchingWatches, Ft as TURN_LIMIT_WRAP_UP_MESSAGE, G as canReusePendingAuthLink, Gi as downloadPrivateSlackFile, Gt as getPiMessageRole, H as AuthorizationFlowDisabledError, Ha as readConversationAccessFromSql, Ht as CODEMODE_TOOL_NAME, Ia as buildNonInteractiveShellScript, In as getPluginUserPromptContributions, Ir as getWatch, It as TurnBudgetExceededError, Ji as getSlackClient, Jt as hasCurrentInstruction, Ki as getFilePermalink, Kt as getTerminalAssistantMessages, L as createPluginEgress, La as runNonInteractiveCommand, Ln as getPlugins, Lr as listWatches, Lt as TurnSliceLimitExceededError, Ma as sandboxSkillDir, Mi as addReactionToMessage, Mr as createTimerWatch, Na as sandboxSkillFile, Ni as deleteSlackMessage, Nr as createWatch, Oa as SANDBOX_JUNIOR_ROOT, Oi as normalizeSlackReplyMarkdown, Oo as projectConversationEvents, Or as STOP_WATCHING_TOOL_NAME, Pa as sandboxSkillPathResolution, Pi as getSlackMessagePermalink, Pn as getPluginSystemPromptContributions, Pr as deliverWatch, Qi as runWithSlackInstallationToken, Qn as closeReviewItem, Qt as isContinuablePiBoundary, R as PluginCredentialFailureError, Ri as postSlackMessage, Rt as TurnToolCallLimitExceededError, Sa as workspaceRepoCheckoutPath, Si as formatProviderLabel, Sn as isExperimentalFeatureEnabled, Sr as resolveAssignees, T as resolveTaskTitle, Tn as findLegacyWebActorUserId, Tr as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, U as AuthorizationPauseError, V as AuthPausePersistenceError, Vi as uploadFilesToConversation, Vt as isTurnExecutionLimitExceededError, W as abandonReplacedPendingAuth, Wi as SlackActionError, Wt as extractAssistantText, X as loadTurnCheckpoint, Y as continuableMessages, Yi as isConversationScopedChannel, Yr as getDashboardReviewItemLink, Yt as hasRuntimeTurnContext, Z as saveTurnCheckpoint, Zi as normalizeSlackConversationId, Zr as getDashboardTaskLink, Zt as isAssistantMessage, _a as resolveSandboxCommandEnvironment, _i as ensureDockerDaemon, _n as estimateTextTokens, _o as createPluginAnnotations, aa as wrapSandboxSetupError, ai as getWorkspaceByName, an as trimTrailingAssistantMessages, ba as sleep, bn as getAgentContextInputLimitTokens, bo as defaultTimezone, br as automationCreatorUserId, c as recordAgentsInstructionsUpdated, ca as isWorkspaceSnapshotNotReadyError, ci as updateWorkspace, cn as TURN_CONTEXT_TAG, cr as updateReviewItemContent, da as consumeSandboxEgressAuthRequiredSignal, di as loadSnapshotsForProfile, do as matchSlackAttachments, dr as canAgentChangeReviewItem, en as isToolResultError, er as dismissOpenReviewItems, f as recordAuthorizationRequested, fa as consumeSandboxEgressPermissionDeniedSignal, fi as setWorkspaceSnapshot, fr as canReadReviewItem, g as recordToolExecutionStarted, ga as buildSandboxEgressNetworkPolicy, gi as isStale, gn as estimateRequestOverheadTokens, go as saveObjectAnnotations, gr as requireReviewItemLinks, hi as hash, hn as calculateContextCompactionTargetTokens, hr as requireReviewItemAssignees, i as loadConversationProjection, ia as throwSandboxOperationError, ii as getWorkspace, in as stripRuntimeTurnContext, ja as SANDBOX_WORKSPACE_ROOT, jo as getConfigDefaults, ka as SANDBOX_REPOS_ROOT, ko as JUNIOR_NATIVE_EVENT_NAMESPACE, kr as cancelSubscriptions, l as recordAttachmentsDelivered, la as workspaceSnapshotNotReadyUserMessage, li as WorkspaceValidationError, lr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, m as recordMcpProviderConnected, mi as create, mr as readReviewItemAgentScope, na as isAbortError, ni as createWorkspace, nn as normalizeToolNameFromResult, nr as getReviewItem, oa as WorkspaceSnapshotNotReadyError, oi as listWorkspaces, on as REQUEST_CONTEXT_SECTION_TAG, or as searchReviewItems, p as recordGuardianActionReviewed, pa as createSandboxEgressCredentialToken, pi as setWorkspaceSnapshotBuild, qr as getDashboardConversationLink, qt as getUserMessageInstructionText, r as loadConnectedMcpProviders, ra as isAlreadyExistsError, ri as deleteWorkspace, rn as retainRuntimeTurnContext, rr as insertReviewItem, sa as getWorkspaceSnapshotNotReadyError, sn as SESSION_CONTEXT_SECTION_TAG, ti as renderToolResultNudge, tn as isToolResultMessage, tr as getOpenReviewItemByDedupeKey, ua as clearSandboxEgressSignals, ui as invalidateReadySnapshot, un as buildDeterministicTurnId, vi as getSandboxProvider, vn as getAgentBackgroundCompactionMarkTokens, w as fallbackShortTitle, wi as resolveBaseUrl, wn as createUserTokenStore, wr as getSlackToolContext, xa as tryWorkspaceRepoCheckoutPath, xi as deliverOAuthAuthorization, xo as resolveUserTimezone, xr as resolveAssignee, ya as SANDBOX_RUNTIME, yn as getAgentContextCompactionTriggerTokens, yr as EVERYONE_ASSIGNEE, z as createPluginAuthOrchestration } from "./projection-0UcUeuzn.js";
3
+ import { C as resolveGatewayCredential, S as getGatewayApiKey, _ as createProviderError, a as completeText, c as resolveGatewayModel, d as isCompactionSummaryText, f as renderCurrentInstruction, g as ProviderError, h as escapeXmlText, i as completeObject, l as COMPACTION_SUMMARY_PREFIX, m as escapeXml, n as GEN_AI_SERVER_ADDRESS, p as unwrapCurrentInstruction, t as GEN_AI_PROVIDER_NAME, u as hasCompactedConversationContext, v as findProviderError, x as isProviderRetryError, y as getProviderErrorAttributes } from "./client-CMyH5rDz.js";
4
+ import { _ as toPiReasoningLevel, g as TURN_REASONING_LEVELS, n as botConfig, v as normalizeSlackEmojiName } from "./config-Dt3CpG17.js";
5
+ import { B as runWithLogAttributes, C as summarizeMessageText, E as withSpan, K as toOptionalString, S as setTags, T as withLogContext, U as normalizeIdentityEmail, W as isRecord$4, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, d as logAudit, f as logError, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, l as getLogContextAttributesForSpan, m as logInfo, o as getActiveTraceContext, p as logException, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-Qo-7xGp1.js";
6
+ import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-BpHHhEVp.js";
7
7
  import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, h as parseSlackMessageTs, n as createSlackActor, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
8
- import { C as getSqlExecutor, E as treeHasAnnotationKey, F as SYSTEM_IDENTITY_ID, I as resolveActorIdentityId, S as getDb, T as hasAnnotationKey, X as addAgentTurnUsage, Y as touchConversationDetail, Z as agentTurnCostUsd, a as readActorIdentityFromSql, at as sameDestination, b as getConversationMessageSearchStore, et as hasAgentTurnUsage, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity, q as conversationDetailTouch, rt as parseDestination, w as conversationIdsWithAnnotation, x as getConversationStore, y as getConversationEventStore } from "./viewer-CYB9T4rm.js";
9
- import { A as juniorConversations, M as juniorUsers, N as juniorDestinations, O as juniorAttachments, P as juniorArtifacts, _ as juniorConversationParticipants, d as juniorAutomations, f as juniorStats, h as juniorAgentInvocations, j as juniorIdentities, l as juniorAutomationRuns, m as juniorAgentBindings, s as juniorReviewItemSlackCards, y as juniorConversationBriefs } from "./executor-HPgHGAWK.js";
8
+ import { C as getSqlExecutor, E as treeHasAnnotationKey, F as SYSTEM_IDENTITY_ID, I as resolveActorIdentityId, S as getDb, T as hasAnnotationKey, X as addAgentTurnUsage, Y as touchConversationDetail, Z as agentTurnCostUsd, a as readActorIdentityFromSql, at as sameDestination, b as getConversationMessageSearchStore, et as hasAgentTurnUsage, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity, q as conversationDetailTouch, rt as parseDestination, w as conversationIdsWithAnnotation, x as getConversationStore, y as getConversationEventStore } from "./viewer-BlpnzZZa.js";
9
+ import { F as juniorArtifacts, M as juniorIdentities, N as juniorUsers, P as juniorDestinations, b as juniorConversationBriefs, c as juniorReviewItemSlackCards, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorConversations, k as juniorAttachments, p as juniorStats, u as juniorAutomationRuns, v as juniorConversationParticipants } from "./executor-CyIwHz9r.js";
10
10
  import { _ as instructionProvenanceFor, a as KNOWN_CONVERSATION_EVENT_TYPES, g as instructionActors, h as contextProvenance, i as isVisionImageMediaType, m as agentInstructionProvenance, r as detectImageMediaType, v as sameActorIdentity } from "./media-Bu9C6lz0.js";
11
11
  import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-DJhGdS4c.js";
12
- import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-CLooHPAz.js";
13
- import { n as pluginCatalogRuntime } from "./catalog-runtime-B7NRB7eH.js";
14
- import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-DuOKByQH.js";
12
+ import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-DOnPkI8g.js";
13
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-dKOVbR7l.js";
14
+ import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-CKyotM4g.js";
15
15
  import { a as withLock, i as fenceLock } from "./locks-D-0h111u.js";
16
- import { r as getStateAdapter } from "./adapter-D8-lqOBF.js";
17
- import { i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
16
+ import { r as getStateAdapter } from "./adapter-CW5UW7vL.js";
17
+ import { i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-BTp__wrw.js";
18
18
  import { B as briefLinkSchema, N as removedCardSchema, V as briefOutcomeStatusSchema, W as parseStoredBrief } from "./conversation-DdT7SNar.js";
19
19
  import { r as EVENT_AUTHOR_ID } from "./prompt-CCtaGgbI.js";
20
- import { A as AgentInvocationLimitError, G as TurnInputCommitLostError, H as formatAgentTypes, I as CHILD_AGENT_RESULTS, L as PARENT_AGENT_TARGET, M as AgentMessageQueueFullError, N as AgentMessageTargetError, P as AgentNameInUseError, R as agentNameSchema, W as CooperativeTurnYieldError, Y as isTurnInputCommitLostError, _ as getLatestAgentInvocationForConversation, d as getAgentInvocationIdForResult, f as getAgentInvocationMessageId, g as getChildAgentLockName, j as AgentMessagePausedError, n as NON_TERMINAL_AGENT_INVOCATION_STATUSES, v as invocationFromRow, y as isTerminalAgentInvocation, z as AGENT_TYPES } from "./store-61mD4ZSh.js";
21
- import { i as NO_REPLY_MARKER, n as getAssistantReplyText, o as isNoReplyMarker, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-CdYsLbXL.js";
22
- import { B as remindMissingAutomationResult, F as automationResultSchema$1, O as resolveSlackReplyTarget, P as FINISH_AUTOMATION_RUN_TOOL_NAME, _ as slackChannelMessageTrigger, a as EVENT_WAIT_MS, b as workspaceSnapshotFinishedEvent, d as getEventCatalog, n as markConversationsStopped, o as enqueueEventNotification, p as requireSlackChannelMessageScope, t as getConversationStoppedAtMs, v as WORKSPACE_SNAPSHOT_FAILED_EVENT, x as workspaceSnapshotWatch, y as WORKSPACE_SNAPSHOT_READY_EVENT, z as readAutomationResult } from "./session-stop-D8LGC3H6.js";
20
+ import { A as AgentInvocationLimitError, G as TurnInputCommitLostError, H as formatAgentTypes, I as CHILD_AGENT_RESULTS, L as PARENT_AGENT_TARGET, M as AgentMessageQueueFullError, N as AgentMessageTargetError, P as AgentNameInUseError, R as agentNameSchema, W as CooperativeTurnYieldError, Y as isTurnInputCommitLostError, _ as getLatestAgentInvocationForConversation, d as getAgentInvocationIdForResult, f as getAgentInvocationMessageId, g as getChildAgentLockName, j as AgentMessagePausedError, n as NON_TERMINAL_AGENT_INVOCATION_STATUSES, v as invocationFromRow, y as isTerminalAgentInvocation, z as AGENT_TYPES } from "./store-G3S0kWSD.js";
21
+ import { i as NO_REPLY_MARKER, n as getAssistantReplyText, o as isNoReplyMarker, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-CFE-OZMS.js";
22
+ import { B as remindMissingAutomationResult, F as automationResultSchema$1, O as resolveSlackReplyTarget, P as FINISH_AUTOMATION_RUN_TOOL_NAME, _ as slackChannelMessageTrigger, a as EVENT_WAIT_MS, b as workspaceSnapshotFinishedEvent, d as getEventCatalog, n as markConversationsStopped, o as enqueueEventNotification, p as requireSlackChannelMessageScope, t as getConversationStoppedAtMs, v as WORKSPACE_SNAPSHOT_FAILED_EVENT, x as workspaceSnapshotWatch, y as WORKSPACE_SNAPSHOT_READY_EVENT, z as readAutomationResult } from "./session-stop-D_1SysjC.js";
23
23
  import { E as userCustomizationTextSchema, b as webMessageId, g as formatUserInputAnswer, h as buttonUserInputField, m as USER_INPUT_NOTE, p as USER_INPUT_LIMITS, s as sumUtcHoursIntoSixHours, v as normalizeUserInputAnswer, w as USER_CUSTOMIZATION_MAX_CHARS, y as userInputRequestSchema } from "./reporting-window-B-QP9zX1.js";
24
- import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-D3MK9oRJ.js";
25
- import { f as QUEUE_SIGNATURE_MAX_AGE_MS, g as getTurnRequestDeadline, l as getVercelConversationWorkQueue, n as backgroundCompactionId, o as sendNextWorkspaceSnapshotJob, s as sendWorkspaceSnapshotJob } from "./background-compaction-queue-Bbsqx8Vm.js";
26
- import { D as stopConversationWork, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-DAJntSEv.js";
27
- import { $ as saveEventAutomation, A as readAutomationRuns, B as readScheduledAutomation, C as readAutomationExecutionByConversationId, Ct as requireEventIdentifier, D as readAutomationExecutionStatusHours, E as readAutomationExecutionStatusDays, I as createScheduledAutomation, J as deleteEventAutomation, L as deleteScheduledAutomation, O as readAutomationExecutionSummaries, Q as parseEventAutomationRow, St as registeredResourceTypeSchema, T as readAutomationExecutionHours, V as saveScheduledAutomation, X as getEventAutomation, Z as listDeletedEventAutomationsCreatedBy, _t as eventWatchUnavailable, at as listAutomationVersions, bt as registeredEventTriggerProblems, c as getDispatchIdForConversation, et as setEventAutomationStatus, ft as automationEventCatalog, gt as eventNamespaceSchema, k as readAutomationExecutions, l as getDispatchInputMessageId, lt as automationRevision, ot as readAutomationVersion, pt as describeRegisteredEventTrigger, q as createEventAutomation, rt as automationDefinition, st as sameDefinitionValue, t as resolveConversationRouting, u as getDispatchRecord, ut as requireAutomationRevision, vt as hasEventCatalogEntries, w as readAutomationExecutionDays, wt as requireValidEventTrigger, x as emptyAutomationRunWindows, xt as registeredEventTypeSchema, yt as registeredEventMatchSchema, z as parseScheduledAutomationRow } from "./turn-session-routing-CzCnNAUO.js";
28
- import { _ as getMcpProviderErrorAttributes, a as serviceAccountOnly, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as McpProviderError, g as getMcpAwareTelemetryMessage, h as getMcpAwareErrorType, i as serviceAccountAllows, l as getMcpServiceAccountCredentials, m as McpToolError, p as McpServiceAccountRequiredError, u as McpAuthorizationRequiredError, v as toMcpProviderError } from "./service-account-D6AMahy7.js";
29
- import { A as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as taskOutcomeInputSchema, E as automationTitleSchema, F as scheduleIntentFromTool, I as toolScheduleIntentSchema, L as weekdaySchema, N as ScheduleIntentError, P as compileScheduleIntent, T as automationInstructionToolSchema, k as eventAutomationTriggerSchema, l as automationListQuerySchema } from "./automation-MLWOrghe.js";
24
+ import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-Di3omymY.js";
25
+ import { f as QUEUE_SIGNATURE_MAX_AGE_MS, g as getTurnRequestDeadline, l as getVercelConversationWorkQueue, n as backgroundCompactionId, o as sendNextWorkspaceSnapshotJob, s as sendWorkspaceSnapshotJob } from "./background-compaction-queue-CHFzrQbS.js";
26
+ import { D as stopConversationWork, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-ymkEUWe4.js";
27
+ import { $ as saveEventAutomation, A as readAutomationRuns, B as readScheduledAutomation, C as readAutomationExecutionByConversationId, Ct as requireEventIdentifier, D as readAutomationExecutionStatusHours, E as readAutomationExecutionStatusDays, I as createScheduledAutomation, J as deleteEventAutomation, L as deleteScheduledAutomation, O as readAutomationExecutionSummaries, Q as parseEventAutomationRow, St as registeredResourceTypeSchema, T as readAutomationExecutionHours, V as saveScheduledAutomation, X as getEventAutomation, Z as listDeletedEventAutomationsCreatedBy, _t as eventWatchUnavailable, at as listAutomationVersions, bt as registeredEventTriggerProblems, c as getDispatchIdForConversation, et as setEventAutomationStatus, ft as automationEventCatalog, gt as eventNamespaceSchema, k as readAutomationExecutions, l as getDispatchInputMessageId, lt as automationRevision, ot as readAutomationVersion, pt as describeRegisteredEventTrigger, q as createEventAutomation, rt as automationDefinition, st as sameDefinitionValue, t as resolveConversationRouting, u as getDispatchRecord, ut as requireAutomationRevision, vt as hasEventCatalogEntries, w as readAutomationExecutionDays, wt as requireValidEventTrigger, x as emptyAutomationRunWindows, xt as registeredEventTypeSchema, yt as registeredEventMatchSchema, z as parseScheduledAutomationRow } from "./turn-session-routing-D_GXfcAG.js";
28
+ import { _ as getMcpProviderErrorAttributes, a as serviceAccountOnly, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as McpProviderError, g as getMcpAwareTelemetryMessage, h as getMcpAwareErrorType, i as serviceAccountAllows, l as getMcpServiceAccountCredentials, m as McpToolError, p as McpServiceAccountRequiredError, u as McpAuthorizationRequiredError, v as toMcpProviderError } from "./service-account-KhZIqXRi.js";
29
+ import { A as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as taskOutcomeInputSchema, E as automationTitleSchema, F as scheduleIntentFromTool, I as toolScheduleIntentSchema, L as weekdaySchema, N as ScheduleIntentError, P as compileScheduleIntent, T as automationInstructionToolSchema, k as eventAutomationTriggerSchema, l as automationListQuerySchema } from "./automation-Zvx_I9Z5.js";
30
30
  import { n as privateTraceResultAttributes } from "./private-trace-result-CE7_lEdq.js";
31
31
  import { streamSimple } from "@earendil-works/pi-ai/compat";
32
32
  import { createGatewayProvider } from "@ai-sdk/gateway";
@@ -8341,6 +8341,7 @@ function buildWebInboundMessage(args) {
8341
8341
  existing: args.destination
8342
8342
  });
8343
8343
  const nowMs = args.nowMs ?? Date.now();
8344
+ const traceContext = getActiveTraceContext();
8344
8345
  return {
8345
8346
  conversationId: args.conversationId,
8346
8347
  createdAtMs: args.createdAtMs ?? nowMs,
@@ -8363,7 +8364,8 @@ function buildWebInboundMessage(args) {
8363
8364
  }
8364
8365
  },
8365
8366
  receivedAtMs: nowMs,
8366
- source: "web"
8367
+ source: "web",
8368
+ ...traceContext ? { traceContext } : void 0
8367
8369
  };
8368
8370
  }
8369
8371
  /** Record web activity and create a Conversation root when needed. */
@@ -1,2 +1,2 @@
1
- import { $ as automationExecutionSchema, $n as archiveConversationResponseSchema, $r as conversationFeedSchema, $t as LocationParams, A as StatReport, Ai as resolveMessageCards, An as ReorderPinnedConversationsResponse, Ar as ConversationModelUsage, At as PersonalTokenMetadata, B as AutomationListQuery, Bi as InputImage, Bn as conversationReadPositionSchema, Br as ConversationTurnFailureReason, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as codeRepositorySummarySchema, Cn as ConversationChildAgent, Cr as ConversationAgentTreeNode, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Di as dailyConversationActivitySchema, Dn as PinConversationBody, Dr as ConversationEventHistory, Dt as workspaceSchema, E as pluginsSchema, Ei as DailyConversationActivity, En as conversationChildAgentsReportSchema, Er as ConversationDetailReport, Et as workspaceRepoSchema, F as AutomationExecution, Fi as UserInputRequest, Fn as ConversationCatchUp, Fr as ConversationReportStatus, Ft as personalTokenParamsSchema, G as AutomationSummary, Gi as INPUT_IMAGE_TYPES, Gn as ConversationStatsReport, Gr as conversationActivityPreviewSchema, Gt as disconnectConnectionResponseSchema, H as AutomationRunList, Hi as MAX_INPUT_IMAGE_BYTES, Hn as stopConversationTurnResponseSchema, Hr as CreateConversationBody, Ht as connectionListSchema, I as AutomationExecutionDay, Ii as buttonUserInputField, In as ConversationCatchUpBody, Ir as ConversationSourceTask, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Jn as conversationStatsReportSchema, Jr as conversationDetailReportSchema, Jt as apiErrorSchema, K as AutomationUpdate, Kn as GuardianMetricDay, Kr as conversationAuxiliaryCostsSchema, Kt as startConnectionResponseSchema, L as AutomationExecutionList, Li as isEmptyUserInputAnswer, Ln as conversationCatchUpBodySchema, Lr as ConversationSummaryReport, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mi as USER_INPUT_NOTE, Mn as pinConversationResponseSchema, Mr as ConversationReportEvent, Mt as createdPersonalTokenSchema, N as statsReportSchema, Ni as UserInputAnswer, Nn as reorderPinnedConversationsBodySchema, Nr as ConversationReportEventData, Nt as personalTokenListSchema, O as skillReportSchema, Oi as MessageCard, On as PinConversationResponse, Or as ConversationEventPage, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pi as UserInputField, Pn as reorderPinnedConversationsResponseSchema, Pr as ConversationReportMessageEvent, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qn as archiveConversationBodySchema, Qr as conversationFeedQuerySchema, Qt as LocationDirectoryReport, R as AutomationExecutionStatusDay, Ri as normalizeUserInputAnswer, Rn as conversationCatchUpSchema, Rr as ConversationSurface, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as codeRepositoryReportSchema, Sn as conversationWatchesReportSchema, Sr as ConversationActivityPreview, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as conversationChildAgentTotalsSchema, Tn as conversationChildAgentSchema, Tr as ConversationCost, Tt as workspaceParamsSchema, U as AutomationRunWindows, Ui as MessageAttachment, Un as ConversationMetricDay, Ur as CreateConversationMessageBody, Ut as connectionParamsSchema, V as AutomationRun, Vi as MAX_INPUT_IMAGES, Vn as StopConversationTurnResponse, Vr as ConversationUsage, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wi as INLINE_VIDEO_TYPES, Wn as ConversationStatsItem, Wr as acceptedConversationMessageSchema, Wt as connectionSchema, X as automationEditSchema, Xn as ArchiveConversationResponse, Xr as conversationEventPageSchema, Xt as LocationActorSummaryReport, Y as automationEditErrorSchema, Yn as ArchiveConversationBody, Yr as conversationEventHistorySchema, Yt as LocationActivityDayReport, Z as automationEventCatalogSchema, Zn as ConversationAutoArchive, Zr as conversationEventsQuerySchema, Zt as LocationDetailReport, _ as RuntimeInfoReport, _i as codeChangeSummaryReportSchema, _n as personParamsSchema, _r as steerConversationPendingMessagesBodySchema, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as createConversationMessageBodySchema, an as ActorActivityDayReport, ar as ConversationPendingMessageDelivery, at as automationRunListSchema, b as healthReportSchema, bi as codePersonReportSchema, bn as ConversationWatchesReport, br as ActorIdentity, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as conversationTurnFailureCodeSchema, cn as ActorProfileReport, cr as SteerConversationPendingMessagesResponse, ct as automationScheduleIntentSchema, d as Plugin, di as CodeChangeSummaryReport, dn as ActorWindowMetrics, dr as conversationDetailWithMailboxReportSchema, dt as automationUpdateSchema, ei as conversationParamsSchema, en as LocationSummaryReport, er as archiveDoneConversationsResponseSchema, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as CodeOverviewReport, fn as PeopleActivityDayReport, fr as conversationPendingAuthorizationSchema, ft as automationVersionActivateSchema, g as Plugins, gi as codeActivityDaySchema, gn as actorProfileReportSchema, gr as conversationUnchangedDetailWithMailboxSchema, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as CodeRepositorySummary, hn as actorDirectoryReportSchema, hr as conversationPendingMessagesReportSchema, ht as automationVersionSchema, i as reviewItemActionSchema, ii as createConversationBodySchema, in as locationParamsSchema, ir as ConversationPendingMessage, it as automationParamsSchema, j as StatsReport, ji as AutomationCard, jn as pinConversationBodySchema, jr as ConversationParams, jt as createPersonalTokenBodySchema, k as skillReportsSchema, ki as messageCardText, kn as ReorderPinnedConversationsBody, kr as ConversationFeed, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as conversationTurnFailureReasonSchema, ln as ActorSummaryReport, lr as cancelConversationPendingMessagesBodySchema, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as CodeRepositoryReport, mn as PersonalSpendReport, mr as conversationPendingMessageSchema, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as conversationReportEventSchema, nn as locationDetailReportSchema, nr as CancelConversationPendingMessagesBody, nt as automationListQuerySchema, o as reviewItemListSchema, oi as forkConversationBodySchema, on as ActorDirectoryReport, or as ConversationPendingMessagesReport, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as CodePersonReport, pn as PersonParams, pr as conversationPendingMessageDeliverySchema, pt as automationVersionListSchema, q as AutomationVersionList, qn as GuardianStats, qr as conversationDetailQuerySchema, qt as ApiError, r as ReviewItemPayload, ri as conversationSummaryReportSchema, rn as locationDirectoryReportSchema, rr as CancelConversationPendingMessagesResponse, rt as automationListSchema, s as reviewItemSchema, si as forkConversationResponseSchema, sn as ActorDirectoryWindows, sr as SteerConversationPendingMessagesBody, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as conversationReportEventDataSchema, tn as locationActivityDayReportSchema, tr as conversationAutoArchiveSchema, tt as automationExecutionStatusSchema, u as HealthReport, ui as CodeActivityDay, un as ActorTotalsReport, ur as cancelConversationPendingMessagesResponseSchema, ut as automationSummarySchema, v as SkillReport, vi as codeChangeSummarySchema, vn as personalSpendReportSchema, vr as steerConversationPendingMessagesResponseSchema, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as ConversationChildAgentTotals, wn as ConversationChildAgentsReport, wr as ConversationAuxiliaryCosts, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as codeRepositoryParamsSchema, xn as conversationWatchSchema, xr as CONVERSATION_DETAIL_VERSION_HEADER, xt as baselineSnapshotSchema, y as SkillReports, yi as codeOverviewReportSchema, yn as ConversationWatch, yr as AcceptedConversationMessage, yt as WorkspaceListReport, z as AutomationList, zi as webMessageId, zn as ConversationReadPosition, zr as ConversationTurnFailureCode, zt as serviceAccountParamsSchema } from "../schema-jW3ccLjp.js";
2
- export { 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 AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, 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 ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, 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 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 ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, 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 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, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
1
+ import { $ as automationExecutionSchema, $n as GuardianMetricDay, $r as conversationAuxiliaryCostsSchema, $t as startConnectionResponseSchema, A as StatReport, Ai as codeRepositorySummarySchema, An as ConversationChildAgent, Ar as ConversationAgentTreeNode, At as PersonalTokenMetadata, B as AutomationListQuery, Bi as UserInputAnswer, Bn as reorderPinnedConversationsBodySchema, Br as ConversationReportEventData, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as codeActivityDaySchema, Cn as actorProfileReportSchema, Cr as conversationUnchangedDetailWithMailboxSchema, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Di as codePersonReportSchema, Dn as ConversationWatchesReport, Dr as ActorIdentity, Dt as workspaceSchema, E as pluginsSchema, Ei as codeOverviewReportSchema, En as ConversationWatch, Er as AcceptedConversationMessage, Et as workspaceRepoSchema, F as AutomationExecution, Fi as MessageCard, Fn as PinConversationResponse, Fr as ConversationEventPage, Ft as personalTokenParamsSchema, G as AutomationSummary, Gi as normalizeUserInputAnswer, Gn as conversationCatchUpSchema, Gr as ConversationSurface, Gt as DEFAULT_NOTIFICATION_SCHEDULE, H as AutomationRunList, Hi as UserInputRequest, Hn as ConversationCatchUp, Hr as ConversationReportStatus, Ht as NotificationSettings, I as AutomationExecutionDay, Ii as messageCardText, In as ReorderPinnedConversationsBody, Ir as ConversationFeed, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Ji as MAX_INPUT_IMAGES, Jn as StopConversationTurnResponse, Jr as ConversationUsage, Jt as notificationScheduleSchema, K as AutomationUpdate, Ki as webMessageId, Kn as ConversationReadPosition, Kr as ConversationTurnFailureCode, Kt as NotificationSchedule, L as AutomationExecutionList, Li as resolveMessageCards, Ln as ReorderPinnedConversationsResponse, Lr as ConversationModelUsage, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mi as conversationChildAgentTotalsSchema, Mn as conversationChildAgentSchema, Mr as ConversationCost, Mt as createdPersonalTokenSchema, N as statsReportSchema, Ni as DailyConversationActivity, Nn as conversationChildAgentsReportSchema, Nr as ConversationDetailReport, Nt as personalTokenListSchema, O as skillReportSchema, Oi as codeRepositoryParamsSchema, On as conversationWatchSchema, Or as CONVERSATION_DETAIL_VERSION_HEADER, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pi as dailyConversationActivitySchema, Pn as PinConversationBody, Pr as ConversationEventHistory, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qi as INPUT_IMAGE_TYPES, Qn as ConversationStatsReport, Qr as conversationActivityPreviewSchema, Qt as disconnectConnectionResponseSchema, R as AutomationExecutionStatusDay, Ri as AutomationCard, Rn as pinConversationBodySchema, Rr as ConversationParams, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as CodeRepositorySummary, Sn as actorDirectoryReportSchema, Sr as conversationPendingMessagesReportSchema, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as codeChangeSummarySchema, Tn as personalSpendReportSchema, Tr as steerConversationPendingMessagesResponseSchema, Tt as workspaceParamsSchema, U as AutomationRunWindows, Ui as buttonUserInputField, Un as ConversationCatchUpBody, Ur as ConversationSourceTask, Ut as notificationSettingsSchema, V as AutomationRun, Vi as UserInputField, Vn as reorderPinnedConversationsResponseSchema, Vr as ConversationReportMessageEvent, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wi as isEmptyUserInputAnswer, Wn as conversationCatchUpBodySchema, Wr as ConversationSummaryReport, Wt as testNotificationResponseSchema, X as automationEditSchema, Xi as MessageAttachment, Xn as ConversationMetricDay, Xr as CreateConversationMessageBody, Xt as connectionParamsSchema, Y as automationEditErrorSchema, Yi as MAX_INPUT_IMAGE_BYTES, Yn as stopConversationTurnResponseSchema, Yr as CreateConversationBody, Yt as connectionListSchema, Z as automationEventCatalogSchema, Zi as INLINE_VIDEO_TYPES, Zn as ConversationStatsItem, Zr as acceptedConversationMessageSchema, Zt as connectionSchema, _ as RuntimeInfoReport, _i as CodeActivityDay, _n as ActorTotalsReport, _r as cancelConversationPendingMessagesResponseSchema, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as conversationFeedQuerySchema, an as LocationDirectoryReport, ar as archiveConversationBodySchema, at as automationRunListSchema, b as healthReportSchema, bi as CodePersonReport, bn as PersonParams, br as conversationPendingMessageDeliverySchema, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as conversationReportEventDataSchema, cn as locationActivityDayReportSchema, cr as conversationAutoArchiveSchema, ct as automationScheduleIntentSchema, d as Plugin, di as createConversationBodySchema, dn as locationParamsSchema, dr as ConversationPendingMessage, dt as automationUpdateSchema, ei as conversationDetailQuerySchema, en as ApiError, er as GuardianStats, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as createConversationMessageBodySchema, fn as ActorActivityDayReport, fr as ConversationPendingMessageDelivery, ft as automationVersionActivateSchema, g as Plugins, gi as conversationTurnFailureReasonSchema, gn as ActorSummaryReport, gr as cancelConversationPendingMessagesBodySchema, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as conversationTurnFailureCodeSchema, hn as ActorProfileReport, hr as SteerConversationPendingMessagesResponse, ht as automationVersionSchema, i as reviewItemActionSchema, ii as conversationEventsQuerySchema, in as LocationDetailReport, ir as ConversationAutoArchive, it as automationParamsSchema, j as StatsReport, ji as ConversationChildAgentTotals, jn as ConversationChildAgentsReport, jr as ConversationAuxiliaryCosts, jt as createPersonalTokenBodySchema, k as skillReportsSchema, ki as codeRepositoryReportSchema, kn as conversationWatchesReportSchema, kr as ConversationActivityPreview, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as conversationReportEventSchema, ln as locationDetailReportSchema, lr as CancelConversationPendingMessagesBody, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as forkConversationResponseSchema, mn as ActorDirectoryWindows, mr as SteerConversationPendingMessagesBody, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as conversationEventHistorySchema, nn as LocationActivityDayReport, nr as ArchiveConversationBody, nt as automationListQuerySchema, o as reviewItemListSchema, oi as conversationFeedSchema, on as LocationParams, or as archiveConversationResponseSchema, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as forkConversationBodySchema, pn as ActorDirectoryReport, pr as ConversationPendingMessagesReport, pt as automationVersionListSchema, q as AutomationVersionList, qi as InputImage, qn as conversationReadPositionSchema, qr as ConversationTurnFailureReason, qt as isWithinNotificationSchedule, r as ReviewItemPayload, ri as conversationEventPageSchema, rn as LocationActorSummaryReport, rr as ArchiveConversationResponse, rt as automationListSchema, s as reviewItemSchema, si as conversationParamsSchema, sn as LocationSummaryReport, sr as archiveDoneConversationsResponseSchema, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as conversationDetailReportSchema, tn as apiErrorSchema, tr as conversationStatsReportSchema, tt as automationExecutionStatusSchema, u as HealthReport, ui as conversationSummaryReportSchema, un as locationDirectoryReportSchema, ur as CancelConversationPendingMessagesResponse, ut as automationSummarySchema, v as SkillReport, vi as CodeChangeSummaryReport, vn as ActorWindowMetrics, vr as conversationDetailWithMailboxReportSchema, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as codeChangeSummaryReportSchema, wn as personParamsSchema, wr as steerConversationPendingMessagesBodySchema, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as CodeRepositoryReport, xn as PersonalSpendReport, xr as conversationPendingMessageSchema, xt as baselineSnapshotSchema, y as SkillReports, yi as CodeOverviewReport, yn as PeopleActivityDayReport, yr as conversationPendingAuthorizationSchema, yt as WorkspaceListReport, z as AutomationList, zi as USER_INPUT_NOTE, zn as pinConversationResponseSchema, zr as ConversationReportEvent, zt as serviceAccountParamsSchema } from "../schema-B017enNE.js";
2
+ export { 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 AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, 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 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 ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, 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 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, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
@@ -1,7 +1,8 @@
1
1
  import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-Bu9C6lz0.js";
2
+ import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-BTp__wrw.js";
2
3
  import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, E as conversationChildAgentTotalsSchema, F as MAX_INPUT_IMAGES, I as MAX_INPUT_IMAGE_BYTES, P as resolveMessageCards, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, i as conversationActivityPreviewSchema, j as messageCardText, l as conversationEventHistorySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, o as conversationAuxiliaryCostsSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema, y as conversationSummaryReportSchema } from "../conversation-DdT7SNar.js";
3
4
  import { T as userCustomizationSchema, _ as isEmptyUserInputAnswer, b as webMessageId, h as buttonUserInputField, m as USER_INPUT_NOTE, v as normalizeUserInputAnswer, w as USER_CUSTOMIZATION_MAX_CHARS } from "../reporting-window-B-QP9zX1.js";
4
- 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-MLWOrghe.js";
5
+ 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-Zvx_I9Z5.js";
5
6
  import { _ as pluginSchema, a as conversationPendingMessageDeliverySchema, b as skillReportSchema, c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, g as pluginPackageContentReportSchema, h as pluginPackageContentItemReportSchema, i as conversationPendingAuthorizationSchema, l as steerConversationPendingMessagesBodySchema, m as pluginOperationalReportSchema, n as cancelConversationPendingMessagesResponseSchema, o as conversationPendingMessageSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "../conversation-pending-messages-Dct5pheX.js";
6
- import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, ct as archiveDoneConversationsResponseSchema, d as reviewItemCountSchema, dt as pinConversationResponseSchema, et as conversationWatchSchema, ft as reorderPinnedConversationsBodySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, ht as conversationCatchUpSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationAutoArchiveSchema, mt as conversationCatchUpBodySchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, ot as archiveConversationBodySchema, p as reviewItemListSchema, pt as reorderPinnedConversationsResponseSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, st as archiveConversationResponseSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, ut as pinConversationBodySchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema } from "../schema-CHNP0GfH.js";
7
- export { CONVERSATION_DETAIL_VERSION_HEADER, 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, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
7
+ import { $ as codeOverviewReportSchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as connectionListSchema, I as locationParamsSchema, J as disconnectConnectionResponseSchema, K as connectionParamsSchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeChangeSummarySchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, V as notificationSettingsSchema, W as testNotificationResponseSchema, X as codeActivityDaySchema, Y as startConnectionResponseSchema, Z as codeChangeSummaryReportSchema, _ as disconnectServiceAccountResponseSchema, _t as reorderPinnedConversationsResponseSchema, a as workspaceBodySchema, at as conversationWatchesReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, ct as stopConversationTurnResponseSchema, d as reviewItemCountSchema, dt as archiveConversationResponseSchema, et as codePersonReportSchema, ft as archiveDoneConversationsResponseSchema, g as reviewItemWaitingConversationsSchema, gt as reorderPinnedConversationsBodySchema, h as reviewItemSchema, ht as pinConversationResponseSchema, i as deleteWorkspaceResponseSchema, it as conversationWatchSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationStatsReportSchema, mt as pinConversationBodySchema, n as statsReportSchema, nt as codeRepositoryReportSchema, o as workspaceListSchema, ot as conversationChildAgentSchema, p as reviewItemListSchema, pt as conversationAutoArchiveSchema, q as connectionSchema, r as baselineSnapshotSchema, rt as codeRepositorySummarySchema, s as workspaceParamsSchema, st as conversationChildAgentsReportSchema, t as statSchema, tt as codeRepositoryParamsSchema, u as reviewItemActionSchema, ut as archiveConversationBodySchema, v as serviceAccountListSchema, vt as conversationCatchUpBodySchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, yt as conversationCatchUpSchema } from "../schema-Bn3miEd_.js";
8
+ export { CONVERSATION_DETAIL_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, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, 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-A_WrTY-s.js";
2
+ import "./db-D7CCwAo8.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,26 +1,27 @@
1
- import { $r as updateWorkspace, Aa as createPluginLogger, Ga as readConversationBriefThrough, Gn as countReviewItemsNeedingUser, Jr as deleteWorkspace, Ln as getPlugins, Na as readConversationAccessFromSql, Qn as searchReviewItems, Qr as listWorkspacesByRepository, Sn as isExperimentalFeatureEnabled, Yr as getWorkspace, Zn as listWaitingConversations, Zr as listWorkspaces, ai as create, ar as isOnlyAssignee, ei as WorkspaceValidationError, mo as createPluginCache, nr as canActOnReviewItem, oi as hash, pa as workspaceRepoCheckoutPath, qa as readConversationEventPage, qr as createWorkspace, ua as SANDBOX_RUNTIME, ur as reviewItemReaderForUser, wn as createUserTokenStore } from "./projection-BfKkpOGQ.js";
2
- import { a as completeText, m as escapeXml } from "./client-a3Ib6wxr.js";
3
- import { n as botConfig, y as getAttachmentStorage } from "./config-DFVlYCeY.js";
4
- import { m as logInfo, p as logException } from "./logging-2BXvW7Mp.js";
5
- import { C as getSqlExecutor, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-CYB9T4rm.js";
6
- import { A as juniorConversations, C as juniorConversationEvents, D as juniorCodeRepositories, E as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, j as juniorIdentities, w as juniorApiTokens, x as juniorConversationMetrics } from "./executor-HPgHGAWK.js";
1
+ import { $n as countReviewItemsNeedingUser, Co as createPluginCache, Gn as resolveNotificationTimezone, Ha as readConversationAccessFromSql, Jn as readNotificationSchedule, Kn as deletePushSubscription, Ln as getPlugins, Sa as workspaceRepoCheckoutPath, Sn as isExperimentalFeatureEnabled, Un as readWebPushConfig, Wn as sendPushNotificationToUser, Xn as savePushSubscription, Xr as getDashboardSettingsLink, Yn as saveNotificationSchedule, ar as listWaitingConversations, ci as updateWorkspace, eo as readConversationBriefThrough, hi as hash, ii as getWorkspace, li as WorkspaceValidationError, mi as create, ni as createWorkspace, no as readConversationEventPage, oi as listWorkspaces, or as searchReviewItems, pr as isOnlyAssignee, qn as listPushSubscriptions, ri as deleteWorkspace, si as listWorkspacesByRepository, ur as canActOnReviewItem, vr as reviewItemReaderForUser, wn as createUserTokenStore, ya as SANDBOX_RUNTIME, za as createPluginLogger } from "./projection-0UcUeuzn.js";
2
+ import { a as completeText, m as escapeXml } from "./client-CMyH5rDz.js";
3
+ import { n as botConfig, y as getAttachmentStorage } from "./config-Dt3CpG17.js";
4
+ import { m as logInfo, p as logException } from "./logging-Qo-7xGp1.js";
5
+ import { C as getSqlExecutor, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-BlpnzZZa.js";
6
+ import { D as juniorCodeChanges, M as juniorIdentities, N as juniorUsers, O as juniorCodeRepositories, P as juniorDestinations, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorConversations, w as juniorConversationEvents } from "./executor-CyIwHz9r.js";
7
7
  import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-Bu9C6lz0.js";
8
- import { n as pluginCatalogRuntime } from "./catalog-runtime-B7NRB7eH.js";
9
- import { $ as readViewerAutomations, Ct as listChildAgents, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Mt as saveUserCustomization, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, et as AutomationEditError, ft as webActorFromUser, gt as readLiveAttachment, h as readStats, jt as readUserCustomization, nt as listOwnedWatches, q as ViewerTaskNotFoundError } from "./agent-runner-Bj7GhysW.js";
10
- import { r as getStateAdapter } from "./adapter-D8-lqOBF.js";
8
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-dKOVbR7l.js";
9
+ import { $ as readViewerAutomations, Ct as listChildAgents, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Mt as saveUserCustomization, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, et as AutomationEditError, ft as webActorFromUser, gt as readLiveAttachment, h as readStats, jt as readUserCustomization, nt as listOwnedWatches, q as ViewerTaskNotFoundError } from "./agent-runner-Cqr21pOU.js";
10
+ import { r as getStateAdapter } from "./adapter-CW5UW7vL.js";
11
+ import { r as notificationScheduleSchema } from "./schedule-BTp__wrw.js";
11
12
  import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, a as conversationAttachmentParamsSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema } from "./conversation-DdT7SNar.js";
12
13
  import { n as briefEntriesFromReportEvents } from "./prompt-CCtaGgbI.js";
13
- import { d as getEventCatalog } from "./session-stop-D8LGC3H6.js";
14
+ import { d as getEventCatalog } from "./session-stop-D_1SysjC.js";
14
15
  import { T as userCustomizationSchema, a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, 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-B-QP9zX1.js";
15
- import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-D3MK9oRJ.js";
16
- import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-Bbsqx8Vm.js";
17
- import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-CzCnNAUO.js";
18
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-D6AMahy7.js";
19
- import { N as ScheduleIntentError, P as compileScheduleIntent, _ 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-MLWOrghe.js";
16
+ import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-Di3omymY.js";
17
+ import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CHFzrQbS.js";
18
+ import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-D_GXfcAG.js";
19
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-KhZIqXRi.js";
20
+ import { N as ScheduleIntentError, P as compileScheduleIntent, _ 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-Zvx_I9Z5.js";
20
21
  import { c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "./conversation-pending-messages-Dct5pheX.js";
21
- import { E as archiveConversation, N as isAllowedSignInEmail, Q as readReviewItemForUser, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, X as actOnReviewItem, Y as ReviewItemActionError, _ as readFirstHumanMessageTexts, a as readConversationDetail, at as updateUserAutoArchiveSettings, c as forkConversationForViewer, ct as throwApiError, d as readConversationFeed, et as DEFAULT_AUTO_ARCHIVE_SETTINGS, ft as readHealthReport, g as conversationSummaryFromStoredConversation, h as readConversationTreeMetricsFromSql, i as reorderPinnedConversations, it as setConversationAutoArchive, k as getProductionSlackAdapter, l as keepQuickQuestionForViewer, m as childAgentTotalsReport, n as steerConversationPendingMessagesForViewer, nt as readUserAutoArchiveSettings, o as readConversationDetailEtag, ot as emptyResponse, p as readConversationAuxiliaryCostsFromSql, r as pinConversation, s as markConversationRead, st as jsonResponse, t as stopConversationTurnForViewer, tt as archiveViewerDoneConversations, u as readConversationEvents, v as appendConversationMessageForViewer, w as requireConversationPendingMessages, y as createConversationForViewer } from "./stop-DX2oOIgl.js";
22
- import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-BtnvpBEV.js";
23
- import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, ct as archiveDoneConversationsResponseSchema, d as reviewItemCountSchema, dt as pinConversationResponseSchema, f as reviewItemListQuerySchema, ft as reorderPinnedConversationsBodySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, ht as conversationCatchUpSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationAutoArchiveSchema, m as reviewItemParamsSchema, mt as conversationCatchUpBodySchema, n as statsReportSchema, o as workspaceListSchema, ot as archiveConversationBodySchema, p as reviewItemListSchema, pt as reorderPinnedConversationsResponseSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, st as archiveConversationResponseSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, ut as pinConversationBodySchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, z as activitySixHours$1 } from "./schema-CHNP0GfH.js";
22
+ import { E as archiveConversation, N as isAllowedSignInEmail, Q as readReviewItemForUser, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, X as actOnReviewItem, Y as ReviewItemActionError, _ as readFirstHumanMessageTexts, a as readConversationDetail, at as updateUserAutoArchiveSettings, c as forkConversationForViewer, ct as throwApiError, d as readConversationFeed, et as DEFAULT_AUTO_ARCHIVE_SETTINGS, ft as readHealthReport, g as conversationSummaryFromStoredConversation, h as readConversationTreeMetricsFromSql, i as reorderPinnedConversations, it as setConversationAutoArchive, k as getProductionSlackAdapter, l as keepQuickQuestionForViewer, m as childAgentTotalsReport, n as steerConversationPendingMessagesForViewer, nt as readUserAutoArchiveSettings, o as readConversationDetailEtag, ot as emptyResponse, p as readConversationAuxiliaryCostsFromSql, r as pinConversation, s as markConversationRead, st as jsonResponse, t as stopConversationTurnForViewer, tt as archiveViewerDoneConversations, u as readConversationEvents, v as appendConversationMessageForViewer, w as requireConversationPendingMessages, y as createConversationForViewer } from "./stop-BSKRTaRS.js";
23
+ import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-CCHPybZP.js";
24
+ import { $ as codeOverviewReportSchema, A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as connectionListSchema, H as pushSubscriptionBodySchema, I as locationParamsSchema, J as disconnectConnectionResponseSchema, K as connectionParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, U as pushSubscriptionDeleteBodySchema, V as notificationSettingsSchema, W as testNotificationResponseSchema, Y as startConnectionResponseSchema, _ as disconnectServiceAccountResponseSchema, _t as reorderPinnedConversationsResponseSchema, a as workspaceBodySchema, at as conversationWatchesReportSchema, ct as stopConversationTurnResponseSchema, d as reviewItemCountSchema, dt as archiveConversationResponseSchema, et as codePersonReportSchema, f as reviewItemListQuerySchema, ft as archiveDoneConversationsResponseSchema, g as reviewItemWaitingConversationsSchema, gt as reorderPinnedConversationsBodySchema, h as reviewItemSchema, ht as pinConversationResponseSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationStatsReportSchema, m as reviewItemParamsSchema, mt as pinConversationBodySchema, n as statsReportSchema, nt as codeRepositoryReportSchema, o as workspaceListSchema, p as reviewItemListSchema, pt as conversationAutoArchiveSchema, s as workspaceParamsSchema, st as conversationChildAgentsReportSchema, tt as codeRepositoryParamsSchema, u as reviewItemActionSchema, ut as archiveConversationBodySchema, v as serviceAccountListSchema, vt as conversationCatchUpBodySchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, yt as conversationCatchUpSchema, z as activitySixHours$1 } from "./schema-Bn3miEd_.js";
24
25
  import { Hono } from "hono";
25
26
  import path from "node:path";
26
27
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -1358,6 +1359,77 @@ function createConnectionRoutes() {
1358
1359
  });
1359
1360
  return app;
1360
1361
  }
1362
+ // src/api/notifications/routes.ts
1363
+ async function readSettings(userId) {
1364
+ const db = getDb();
1365
+ const nowMs = Date.now();
1366
+ const schedule = await readNotificationSchedule(db, userId);
1367
+ const [{ source, timezone }, subscriptions] = await Promise.all([resolveNotificationTimezone({
1368
+ db,
1369
+ nowMs,
1370
+ schedule,
1371
+ userId
1372
+ }), listPushSubscriptions(db, userId)]);
1373
+ const config = readWebPushConfig();
1374
+ return notificationSettingsSchema.parse({
1375
+ ...config ? { publicKey: config.publicKey } : void 0,
1376
+ deviceCount: subscriptions.length,
1377
+ schedule,
1378
+ timezone,
1379
+ timezoneSource: source
1380
+ });
1381
+ }
1382
+ async function settingsResponse(userId) {
1383
+ return jsonResponse(notificationSettingsSchema, await readSettings(userId));
1384
+ }
1385
+ /**
1386
+ * Create authenticated routes for the viewer's phone notifications: browser
1387
+ * subscriptions, notification hours, and a test notification.
1388
+ */
1389
+ function createNotificationRoutes() {
1390
+ const app = new Hono();
1391
+ app.get("/", requireViewer, async (context) => settingsResponse(context.get("viewer").id));
1392
+ app.put("/schedule", requireViewer, validateRequest("json", notificationScheduleSchema, "Invalid schedule."), async (context) => {
1393
+ const viewer = context.get("viewer");
1394
+ if (!await saveNotificationSchedule(getDb(), viewer.id, context.req.valid("json"), Date.now())) throwApiError(404, "User not found.");
1395
+ return await settingsResponse(viewer.id);
1396
+ });
1397
+ app.post("/subscriptions", requireViewer, validateRequest("json", pushSubscriptionBodySchema, "Invalid subscription."), async (context) => {
1398
+ if (!readWebPushConfig()) throwApiError(503, "Phone notifications are not configured.");
1399
+ const viewer = context.get("viewer");
1400
+ const { endpoint, keys } = context.req.valid("json");
1401
+ await savePushSubscription(getDb(), viewer.id, {
1402
+ endpoint,
1403
+ keys
1404
+ }, Date.now());
1405
+ logInfo("notification.subscription.saved");
1406
+ return await settingsResponse(viewer.id);
1407
+ });
1408
+ app.delete("/subscriptions", requireViewer, validateRequest("json", pushSubscriptionDeleteBodySchema, "Invalid subscription."), async (context) => {
1409
+ const viewer = context.get("viewer");
1410
+ await deletePushSubscription(getDb(), viewer.id, context.req.valid("json").endpoint);
1411
+ logInfo("notification.subscription.deleted");
1412
+ return await settingsResponse(viewer.id);
1413
+ });
1414
+ app.post("/test", requireViewer, async (context) => {
1415
+ const config = readWebPushConfig();
1416
+ if (!config) throwApiError(503, "Phone notifications are not configured.");
1417
+ const result = await sendPushNotificationToUser({
1418
+ config,
1419
+ db: getDb(),
1420
+ kind: "test",
1421
+ payload: {
1422
+ body: "Notifications work on this device.",
1423
+ tag: "junior-test",
1424
+ title: "Junior",
1425
+ url: getDashboardSettingsLink() ?? "/"
1426
+ },
1427
+ userId: context.get("viewer").id
1428
+ });
1429
+ return jsonResponse(testNotificationResponseSchema, { delivered: result.delivered });
1430
+ });
1431
+ return app;
1432
+ }
1361
1433
  // src/api/conversations/reporting.ts
1362
1434
  /** Return the dashboard label for a conversation surface. */
1363
1435
  function surfaceLabel(surface) {
@@ -2126,7 +2198,7 @@ async function readPeoplePluginReports(args) {
2126
2198
  reports: [],
2127
2199
  source: "plugins"
2128
2200
  });
2129
- const { getPluginProfileReports } = await import("./projection-BfKkpOGQ.js").then((n) => n.kn);
2201
+ const { getPluginProfileReports } = await import("./projection-0UcUeuzn.js").then((n) => n.kn);
2130
2202
  return pluginOperationalReportFeedSchema.parse({
2131
2203
  generatedAt: new Date(nowMs).toISOString(),
2132
2204
  reports: await getPluginProfileReports({
@@ -3154,7 +3226,7 @@ function readDescriptionText(home) {
3154
3226
  }
3155
3227
  /** Read discovered skill names for authenticated runtime diagnostics. */
3156
3228
  async function readSkillReports() {
3157
- const { discoverSkills } = await import("./skills-DuOKByQH.js").then((n) => n.o);
3229
+ const { discoverSkills } = await import("./skills-CKyotM4g.js").then((n) => n.o);
3158
3230
  const skills = await discoverSkills();
3159
3231
  return skillReportsSchema.parse(skills.map((skill) => ({
3160
3232
  name: skill.name,
@@ -3163,7 +3235,7 @@ async function readSkillReports() {
3163
3235
  }
3164
3236
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3165
3237
  async function readPlugins() {
3166
- const { pluginCatalogRuntime } = await import("./catalog-runtime-B7NRB7eH.js").then((n) => n.t);
3238
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-dKOVbR7l.js").then((n) => n.t);
3167
3239
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3168
3240
  configKeys: plugin.manifest.configKeys ?? [],
3169
3241
  description: plugin.manifest.description,
@@ -3175,7 +3247,7 @@ async function readPlugins() {
3175
3247
  async function readRuntimeInfoReport() {
3176
3248
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3177
3249
  import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
3178
- import("./catalog-runtime-B7NRB7eH.js").then((n) => n.t),
3250
+ import("./catalog-runtime-dKOVbR7l.js").then((n) => n.t),
3179
3251
  readPlugins(),
3180
3252
  readSkillReports()
3181
3253
  ]);
@@ -3192,7 +3264,7 @@ async function readRuntimeInfoReport() {
3192
3264
  /** Read sanitized operational summaries contributed by plugins. */
3193
3265
  async function readPluginOperationalReportFeed() {
3194
3266
  const nowMs = Date.now();
3195
- const { getPluginOperationalReports } = await import("./projection-BfKkpOGQ.js").then((n) => n.kn);
3267
+ const { getPluginOperationalReports } = await import("./projection-0UcUeuzn.js").then((n) => n.kn);
3196
3268
  return pluginOperationalReportFeedSchema.parse({
3197
3269
  source: "plugins",
3198
3270
  generatedAt: new Date(nowMs).toISOString(),
@@ -3220,6 +3292,7 @@ function createJuniorApi(options = {}) {
3220
3292
  } }));
3221
3293
  app.route("/api/code", createCodeRoutes());
3222
3294
  app.route("/api/connections", createConnectionRoutes());
3295
+ app.route("/api/notifications", createNotificationRoutes());
3223
3296
  app.route("/api/personal-tokens", createPersonalTokenRoutes());
3224
3297
  app.route("/api/service-accounts", createServiceAccountRoutes());
3225
3298
  app.route("/api/people", createPeopleRoutes());
@@ -1,6 +1,6 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
2
- import { t as ConversationStore } from "./db-A_WrTY-s.js";
3
- import "./schema-jW3ccLjp.js";
2
+ import { t as ConversationStore } from "./db-D7CCwAo8.js";
3
+ import "./schema-B017enNE.js";
4
4
  import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
5
5
  import "./sentry-DrKC2NeM.js";
6
6
  import { Hono } from "hono";
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-CMBP-N43.js";
1
+ import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-CvGalMxi.js";
2
2
  import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DtmjkTza.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 };