@sentry/junior 0.282.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 (75) hide show
  1. package/dist/{adapter-BAqo7eOH.js → adapter-CW5UW7vL.js} +1 -1
  2. package/dist/{admin-DbWpMHh6.js → admin-DUWN8zZX.js} +1 -1
  3. package/dist/{agent-runner-h4CDcnDV.js → agent-runner-Cqr21pOU.js} +53 -25
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +7 -6
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +167 -59
  8. package/dist/{app-B-0wwAxr.d.ts → app-CvGalMxi.d.ts} +2 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +34 -31
  11. package/dist/{assistant-reply-4Wvo95-N.js → assistant-reply-CFE-OZMS.js} +1 -1
  12. package/dist/{automation-sIsmIXH7.js → automation-Zvx_I9Z5.js} +2 -2
  13. package/dist/{background-compaction-queue-CoWqScCC.js → background-compaction-queue-CHFzrQbS.js} +2 -2
  14. package/dist/{briefs-CMiotFo9.js → briefs-Cx7mkfSk.js} +4 -4
  15. package/dist/{catalog-runtime-Cpje_Uic.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-BHgCXeaF.js → client-CMyH5rDz.js} +2 -2
  24. package/dist/{config-DBdBimZ9.js → config-Dt3CpG17.js} +97 -4
  25. package/dist/{connections-DjY72_uF.js → connections-CCHPybZP.js} +10 -10
  26. package/dist/{conversation-DNtcULyX.js → conversation-DdT7SNar.js} +3 -1
  27. package/dist/{conversation-pending-messages-LlFnr9-m.js → conversation-pending-messages-Dct5pheX.js} +1 -1
  28. package/dist/{conversation-privacy-DiDh9KE4.js → conversation-privacy-BpHHhEVp.js} +1 -1
  29. package/dist/{credential-sync-DUrQwccr.js → credential-sync-BBPw8dam.js} +13 -13
  30. package/dist/{db-hQsoB16L.d.ts → db-D7CCwAo8.d.ts} +1 -1
  31. package/dist/{executor-CGqJCxgR.js → executor-CyIwHz9r.js} +26 -3
  32. package/dist/instrumentation.js +37 -13
  33. package/dist/{logging-DapIaJAi.js → logging-Qo-7xGp1.js} +1 -1
  34. package/dist/{media-Dq9_svfQ.js → media-Bu9C6lz0.js} +3 -1
  35. package/dist/{message-BjN5sKad.js → message-DFbtOWqv.js} +9 -9
  36. package/dist/nitro.d.ts +1 -1
  37. package/dist/nitro.js +3 -3
  38. package/dist/{oauth-callback-server-DVHKrjJP.js → oauth-callback-server-BB1gixWo.js} +2 -2
  39. package/dist/{projection-ii_OYu6z.js → projection-0UcUeuzn.js} +319 -18
  40. package/dist/{prompt-DI6KCtwb.js → prompt-CCtaGgbI.js} +1 -1
  41. package/dist/push-endpoint-CO-nomUd.js +36 -0
  42. package/dist/{registry-DpjG3yS-.js → registry-DOnPkI8g.js} +1 -1
  43. package/dist/{resolve-iMW9Dgo2.js → resolve-Di3omymY.js} +3 -3
  44. package/dist/{result-BrlvfyIj.js → result-NvndYzCb.js} +9 -9
  45. package/dist/{runner-Bg9mr2pB.js → runner-CnX_dTKw.js} +11 -11
  46. package/dist/{sandbox-egress-signals-Bd3lb_Wd.js → sandbox-egress-signals-CtxLJmmg.js} +1 -1
  47. package/dist/{cadence-R7Em4RjE.js → schedule-BTp__wrw.js} +81 -1
  48. package/dist/{schema-CsqJzkP5.d.ts → schema-B017enNE.d.ts} +61 -1
  49. package/dist/{schema-BN34Jy-U.js → schema-Bn3miEd_.js} +42 -4
  50. package/dist/{service-account-Dfl9Pitm.js → service-account-KhZIqXRi.js} +3 -3
  51. package/dist/{service-account-Bd1348kw.js → service-account-ewDAx4Mx.js} +3 -3
  52. package/dist/{session-stop-CVEEx_YD.js → session-stop-D_1SysjC.js} +12 -12
  53. package/dist/{skills-DqUUuf4L.js → skills-CKyotM4g.js} +2 -2
  54. package/dist/{spawn-e7rQs14T.js → spawn-D5D2MQdz.js} +2 -2
  55. package/dist/{stop-DtpBUUJq.js → stop-BSKRTaRS.js} +71 -122
  56. package/dist/{store-nETG4KVg.js → store-G3S0kWSD.js} +4 -4
  57. package/dist/{store-nu3Xx08K.js → store-ymkEUWe4.js} +3 -3
  58. package/dist/{task-queue-CYje8WKs.js → task-queue-BcOHzXxe.js} +3 -3
  59. package/dist/{task-runner-CwegN45x.js → task-runner-B65cDumh.js} +18 -9
  60. package/dist/{thread-state-BDaMl9yd.js → thread-state-D6rNGQu9.js} +4 -4
  61. package/dist/{turn-failure-response-CV06tN_R.js → turn-failure-response-BlO4nuDJ.js} +7 -7
  62. package/dist/{turn-lifecycle-CF2N7ud5.js → turn-lifecycle-BQ8ETk63.js} +1 -1
  63. package/dist/{turn-session-routing-BIJGJjVh.js → turn-session-routing-D_GXfcAG.js} +9 -9
  64. package/dist/{validation-DXvxEEjq.js → validation-DJG_wrg2.js} +1 -1
  65. package/dist/{version-CzEk1KBX.js → version-i1An1eTS.js} +1 -1
  66. package/dist/version.js +1 -1
  67. package/dist/{viewer-C2PztlYX.js → viewer-BlpnzZZa.js} +4 -4
  68. package/dist/{work-BM_L0Pv9.js → work-BgCW3FDC.js} +11 -11
  69. package/dist/{worker-2no53G60.js → worker-BJz1mwYt.js} +6 -6
  70. package/migrations/0081_conversation_pin_position.sql +1 -0
  71. package/migrations/0082_push_notifications.sql +14 -0
  72. package/migrations/meta/0081_snapshot.json +4271 -0
  73. package/migrations/meta/0082_snapshot.json +4373 -0
  74. package/migrations/meta/_journal.json +14 -0
  75. package/package.json +6 -4
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-ii_OYu6z.js";
2
- import { a as completeText, m as escapeXml } from "./client-BHgCXeaF.js";
3
- import { n as botConfig } from "./config-DBdBimZ9.js";
4
- import { m as logInfo, p as logException } from "./logging-DapIaJAi.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-C2PztlYX.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-CGqJCxgR.js";
7
- import { t as INPUT_IMAGE_TYPES } from "./media-Dq9_svfQ.js";
8
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Cpje_Uic.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-h4CDcnDV.js";
10
- import { r as getStateAdapter } from "./adapter-BAqo7eOH.js";
11
- 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-DNtcULyX.js";
12
- import { n as briefEntriesFromReportEvents } from "./prompt-DI6KCtwb.js";
13
- import { d as getEventCatalog } from "./session-stop-CVEEx_YD.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
+ import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-Bu9C6lz0.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";
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";
13
+ import { n as briefEntriesFromReportEvents } from "./prompt-CCtaGgbI.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-iMW9Dgo2.js";
16
- import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CoWqScCC.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-BIJGJjVh.js";
18
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-Dfl9Pitm.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-sIsmIXH7.js";
20
- 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-LlFnr9-m.js";
21
- import { $ as DEFAULT_AUTO_ARCHIVE_SETTINGS, C as requireConversationPendingMessages, J as ReviewItemActionError, M as isAllowedSignInEmail, O as getProductionSlackAdapter, T as archiveConversation, Y as actOnReviewItem, Z as readReviewItemForUser, _ as appendConversationMessageForViewer, a as readConversationDetailEtag, at as emptyResponse, c as keepQuickQuestionForViewer, ct as getAttachmentStorage, et as archiveViewerDoneConversations, f as readConversationAuxiliaryCostsFromSql, ft as readHealthReport, g as readFirstHumanMessageTexts, h as conversationSummaryFromStoredConversation, i as readConversationDetail, it as updateUserAutoArchiveSettings, l as readConversationEvents, m as readConversationTreeMetricsFromSql, n as steerConversationPendingMessagesForViewer, o as markConversationRead, ot as jsonResponse, p as childAgentTotalsReport, r as pinConversation, rt as setConversationAutoArchive, s as forkConversationForViewer, st as throwApiError, t as stopConversationTurnForViewer, tt as readUserAutoArchiveSettings, u as readConversationFeed, v as createConversationForViewer, w as resolveMentions, x as cancelConversationPendingMessagesForViewer } from "./stop-DtpBUUJq.js";
22
- import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-DjY72_uF.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 conversationCatchUpBodySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationAutoArchiveSchema, m as reviewItemParamsSchema, n as statsReportSchema, o as workspaceListSchema, ot as archiveConversationBodySchema, p as reviewItemListSchema, pt as conversationCatchUpSchema, 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-BN34Jy-U.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";
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";
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";
@@ -231,45 +232,83 @@ async function requireConversationChildAgents(conversationId, options = {}) {
231
232
  });
232
233
  }
233
234
  // src/api/conversations/attachments.ts
235
+ const INLINE_TYPES = [...INPUT_IMAGE_TYPES, ...INLINE_VIDEO_TYPES];
234
236
  function contentDisposition(filename, contentType) {
235
- return `${INPUT_IMAGE_TYPES.some((type) => type === contentType) ? "inline" : "attachment"}; filename="${filename.replace(/[^\x20-\x7e]|["\\]/g, "_")}"; filename*=UTF-8''${encodeURIComponent(filename)}`;
237
+ return `${INLINE_TYPES.includes(contentType) ? "inline" : "attachment"}; filename="${filename.replace(/[^\x20-\x7e]|["\\]/g, "_")}"; filename*=UTF-8''${encodeURIComponent(filename)}`;
236
238
  }
237
- /** Build response headers for one conversation attachment body. */
238
- function conversationAttachmentHeaders(args) {
239
- return new Headers({
240
- "cache-control": "private, no-store",
241
- "content-disposition": contentDisposition(args.filename, args.contentType),
242
- "content-length": String(args.bytes),
243
- "content-type": args.contentType,
244
- "x-content-type-options": "nosniff"
245
- });
239
+ /**
240
+ * Read one `Range` request header against an object size.
241
+ *
242
+ * Return undefined to send the whole object. HTTP lets a server ignore a
243
+ * header it does not support, so this ignores bad syntax and multiple ranges.
244
+ */
245
+ function parseRangeHeader(header, size) {
246
+ const match = header?.trim().match(/^bytes=(\d*)-(\d*)$/);
247
+ if (!match) return void 0;
248
+ const [, first = "", last = ""] = match;
249
+ if (!first) {
250
+ if (!last) return void 0;
251
+ const suffix = Number(last);
252
+ if (suffix === 0 || size === 0) return "unsatisfiable";
253
+ return {
254
+ start: Math.max(0, size - suffix),
255
+ end: size - 1
256
+ };
257
+ }
258
+ const start = Number(first);
259
+ const end = last ? Number(last) : Infinity;
260
+ if (end < start) return void 0;
261
+ if (start >= size) return "unsatisfiable";
262
+ return {
263
+ start,
264
+ end: Math.min(end, size - 1)
265
+ };
246
266
  }
247
267
  /**
248
- * Open one live conversation attachment for an authorized viewer.
268
+ * Answer one attachment read for an authorized viewer, with one byte range
269
+ * when the request asks for it. Media players need ranges to play and seek.
249
270
  *
250
271
  * Missing conversations, missing attachments, purge-marked rows, and viewers
251
- * without private-content access all return null so the route can answer 404.
272
+ * without private-content access all answer 404.
252
273
  */
253
- async function openConversationAttachment(args) {
254
- if (!(await readConversationAccessFromSql(getDb(), [args.conversationId], args.viewer)).get(args.conversationId)?.canViewPrivateContent) return null;
274
+ async function conversationAttachmentResponse(args) {
275
+ if (!(await readConversationAccessFromSql(getDb(), [args.conversationId], args.viewer)).get(args.conversationId)?.canViewPrivateContent) notFound();
255
276
  const attachment = await readLiveAttachment({
256
277
  attachmentId: args.attachmentId,
257
278
  conversationId: args.conversationId,
258
279
  db: getSqlExecutor()
259
280
  });
260
- if (!attachment) return null;
261
- if (attachment.storageProvider !== args.storage.provider) return null;
262
- const body = await args.storage.get(attachment.storageKey);
263
- return body ? {
264
- attachment,
265
- body
266
- } : null;
281
+ if (!attachment || attachment.storageProvider !== args.storage.provider) notFound();
282
+ const headers = new Headers({
283
+ "accept-ranges": "bytes",
284
+ "cache-control": "private, no-store",
285
+ "x-content-type-options": "nosniff"
286
+ });
287
+ const range = parseRangeHeader(args.range, attachment.bytes);
288
+ if (range === "unsatisfiable") {
289
+ headers.set("content-range", `bytes */${attachment.bytes}`);
290
+ return new Response(null, {
291
+ headers,
292
+ status: 416
293
+ });
294
+ }
295
+ const body = await args.storage.get(attachment.storageKey, range);
296
+ if (!body) notFound();
297
+ headers.set("content-disposition", contentDisposition(attachment.filename, attachment.contentType));
298
+ headers.set("content-type", attachment.contentType);
299
+ if (!range) {
300
+ headers.set("content-length", String(attachment.bytes));
301
+ return new Response(body, { headers });
302
+ }
303
+ headers.set("content-range", `bytes ${range.start}-${range.end}/${attachment.bytes}`);
304
+ headers.set("content-length", String(range.end - range.start + 1));
305
+ return new Response(body, {
306
+ headers,
307
+ status: 206
308
+ });
267
309
  }
268
- /** Open one attachment or throw the standard API not-found error. */
269
- async function requireConversationAttachment(args) {
270
- const opened = await openConversationAttachment(args);
271
- if (!opened) throwApiError(404, "Attachment not found.");
272
- return opened;
310
+ function notFound() {
311
+ throwApiError(404, "Attachment not found.");
273
312
  }
274
313
  // src/api/conversations/metric-buckets.ts
275
314
  /** Sum all Conversation metrics into UTC day or hour buckets. */
@@ -723,6 +762,7 @@ function createConversationRoutes(options) {
723
762
  const body = context.req.valid("json");
724
763
  return jsonResponse(conversationReadPositionSchema, await markConversationRead(viewer, conversationId, body));
725
764
  });
765
+ app.put("/pin-order", requireViewer, validateRequest("json", reorderPinnedConversationsBodySchema, "Invalid request body."), async (context) => jsonResponse(reorderPinnedConversationsResponseSchema, await reorderPinnedConversations(context.get("viewer"), context.req.valid("json"))));
726
766
  app.post("/archive-done", requireViewer, async (context) => jsonResponse(archiveDoneConversationsResponseSchema, await archiveViewerDoneConversations(context.get("viewer"))));
727
767
  app.patch("/:conversationId/auto-archive", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationAutoArchiveSchema, "Invalid request body."), async (context) => jsonResponse(conversationAutoArchiveSchema, await setConversationAutoArchive(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json").autoArchive)));
728
768
  app.post("/:conversationId/catch-up", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationCatchUpBodySchema, "Invalid request body."), async (context) => {
@@ -772,17 +812,13 @@ function createConversationRoutes(options) {
772
812
  app.get("/:conversationId/attachments/:attachmentId", validateRequest("param", conversationAttachmentParamsSchema, "Invalid route parameters."), async (context) => {
773
813
  const { attachmentId, conversationId } = context.req.valid("param");
774
814
  const viewer = context.get("viewer");
775
- const opened = await requireConversationAttachment({
815
+ return await conversationAttachmentResponse({
776
816
  attachmentId,
777
817
  conversationId,
818
+ range: context.req.header("range"),
778
819
  storage: options.attachmentStorage,
779
820
  ...viewer ? { viewer } : void 0
780
821
  });
781
- return new Response(opened.body, { headers: conversationAttachmentHeaders({
782
- bytes: opened.attachment.bytes,
783
- contentType: opened.attachment.contentType,
784
- filename: opened.attachment.filename
785
- }) });
786
822
  });
787
823
  app.get("/:conversationId", validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("query", conversationDetailQuerySchema, "Invalid query parameters."), async (context) => {
788
824
  const { conversationId } = context.req.valid("param");
@@ -1323,6 +1359,77 @@ function createConnectionRoutes() {
1323
1359
  });
1324
1360
  return app;
1325
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
+ }
1326
1433
  // src/api/conversations/reporting.ts
1327
1434
  /** Return the dashboard label for a conversation surface. */
1328
1435
  function surfaceLabel(surface) {
@@ -2091,7 +2198,7 @@ async function readPeoplePluginReports(args) {
2091
2198
  reports: [],
2092
2199
  source: "plugins"
2093
2200
  });
2094
- const { getPluginProfileReports } = await import("./projection-ii_OYu6z.js").then((n) => n.kn);
2201
+ const { getPluginProfileReports } = await import("./projection-0UcUeuzn.js").then((n) => n.kn);
2095
2202
  return pluginOperationalReportFeedSchema.parse({
2096
2203
  generatedAt: new Date(nowMs).toISOString(),
2097
2204
  reports: await getPluginProfileReports({
@@ -3119,7 +3226,7 @@ function readDescriptionText(home) {
3119
3226
  }
3120
3227
  /** Read discovered skill names for authenticated runtime diagnostics. */
3121
3228
  async function readSkillReports() {
3122
- const { discoverSkills } = await import("./skills-DqUUuf4L.js").then((n) => n.o);
3229
+ const { discoverSkills } = await import("./skills-CKyotM4g.js").then((n) => n.o);
3123
3230
  const skills = await discoverSkills();
3124
3231
  return skillReportsSchema.parse(skills.map((skill) => ({
3125
3232
  name: skill.name,
@@ -3128,7 +3235,7 @@ async function readSkillReports() {
3128
3235
  }
3129
3236
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3130
3237
  async function readPlugins() {
3131
- const { pluginCatalogRuntime } = await import("./catalog-runtime-Cpje_Uic.js").then((n) => n.t);
3238
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-dKOVbR7l.js").then((n) => n.t);
3132
3239
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3133
3240
  configKeys: plugin.manifest.configKeys ?? [],
3134
3241
  description: plugin.manifest.description,
@@ -3140,7 +3247,7 @@ async function readPlugins() {
3140
3247
  async function readRuntimeInfoReport() {
3141
3248
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3142
3249
  import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
3143
- import("./catalog-runtime-Cpje_Uic.js").then((n) => n.t),
3250
+ import("./catalog-runtime-dKOVbR7l.js").then((n) => n.t),
3144
3251
  readPlugins(),
3145
3252
  readSkillReports()
3146
3253
  ]);
@@ -3157,7 +3264,7 @@ async function readRuntimeInfoReport() {
3157
3264
  /** Read sanitized operational summaries contributed by plugins. */
3158
3265
  async function readPluginOperationalReportFeed() {
3159
3266
  const nowMs = Date.now();
3160
- const { getPluginOperationalReports } = await import("./projection-ii_OYu6z.js").then((n) => n.kn);
3267
+ const { getPluginOperationalReports } = await import("./projection-0UcUeuzn.js").then((n) => n.kn);
3161
3268
  return pluginOperationalReportFeedSchema.parse({
3162
3269
  source: "plugins",
3163
3270
  generatedAt: new Date(nowMs).toISOString(),
@@ -3185,6 +3292,7 @@ function createJuniorApi(options = {}) {
3185
3292
  } }));
3186
3293
  app.route("/api/code", createCodeRoutes());
3187
3294
  app.route("/api/connections", createConnectionRoutes());
3295
+ app.route("/api/notifications", createNotificationRoutes());
3188
3296
  app.route("/api/personal-tokens", createPersonalTokenRoutes());
3189
3297
  app.route("/api/service-accounts", createServiceAccountRoutes());
3190
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-hQsoB16L.js";
3
- import "./schema-CsqJzkP5.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-B-0wwAxr.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 };
package/dist/app.js CHANGED
@@ -1,41 +1,41 @@
1
1
  import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
2
- import { Aa as createPluginLogger, Ar as takeDueTimerWatches, C as settleConversationTitleWork, Cn as setExperimentalFeatures, Co as setConfigDefaults, Cr as collectEventMatchKeys, Ct as isInvalidConversationRecordError, Di as openSlackModal, Dr as findMatchingWatches, Fr as verifyScheduledAutomationCredentialSubject, Gi as getWorkspaceTeamId, Gr as createPluginState, Hn as setBriefsConfig, Hr as getDashboardTaskLink, Ir as verifySlackDirectCredentialSubject, Ja as readConversationEventPageAfter, Ki as runWithWorkspaceTeamId, Kn as dismissOpenReviewItems, Ln as getPlugins, Mn as getPluginRoutes, Mr as bindScheduledAutomationCredentialSubject, Na as readConversationAccessFromSql, Ni as slackEntitySchema, Nr as bindSlackDirectCredentialSubject, Oi as postSlackEphemeralMessage, Pi as slackExternalRefIdSchema, Pr as verifyEventAutomationCredentialSubject, Qn as searchReviewItems, Rn as setPlugins, Sn as isExperimentalFeatureEnabled, So as getConfigDefaults, Ur as setDashboardConversationLinkOptions, Vi as isDmChannel, Vr as getDashboardReviewItemLink, Xa as readConversationLastEventSeq, Za as readConversationMessageEventSeq, _ as appendConversationMessages, aa as parseSandboxEgressCredentialToken, at as CONVERSATION_WORK_STALE_ENQUEUE_MS, b as projectConversationMessages, di as proxyVercelSandboxEgressRequest, dn as SubscribedReplyReason, ha as createPluginEmbedder, hi as resolveBaseUrl, jn as getPluginApiRoutes, jr as bindEventAutomationCredentialSubject, la as normalizeSandboxEgressTracePropagationDomains, lo as listConversationAnnotations, mn as getThreadStopDecision, mo as createPluginCache, na as consumeSandboxEgressAuthRequiredSignal, nr as canActOnReviewItem, oo as resolveRootVisibility, qa as readConversationEventPage, ra as consumeSandboxEgressPermissionDeniedSignal, ta as clearSandboxEgressSignals, ui as isVercelSandboxEgressRequest, ur as reviewItemReaderForUser, wn as createUserTokenStore, xi as slackMention, xn as getExperimentalFeatures, xt as hasRunnableConversationWork, zi as getSlackClient, zn as validatePlugins, zr as getDashboardConversationLink } from "./projection-ii_OYu6z.js";
3
- import { d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-DBdBimZ9.js";
4
- import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-DapIaJAi.js";
5
- import { t as JUNIOR_VERSION } from "./version-CzEk1KBX.js";
2
+ import { Ai as slackMention, Br as bindScheduledAutomationCredentialSubject, C as settleConversationTitleWork, Cn as setExperimentalFeatures, Co as createPluginCache, Ct as isInvalidConversationRecordError, Fr as findMatchingWatches, Ha as readConversationAccessFromSql, Hi as slackEntitySchema, Hn as setBriefsConfig, Hr as verifyEventAutomationCredentialSubject, Ii as openSlackModal, Ji as getSlackClient, Li as postSlackEphemeralMessage, Ln as getPlugins, Mn as getPluginRoutes, Mo as setConfigDefaults, Qr as setDashboardConversationLinkOptions, Rn as setPlugins, Rr as takeDueTimerWatches, Sn as isExperimentalFeatureEnabled, Ui as slackExternalRefIdSchema, Ur as verifyScheduledAutomationCredentialSubject, Vr as bindSlackDirectCredentialSubject, Wr as verifySlackDirectCredentialSubject, Xi as isDmChannel, Yr as getDashboardReviewItemLink, Zr as getDashboardTaskLink, _ as appendConversationMessages, ao as readConversationLastEventSeq, at as CONVERSATION_WORK_STALE_ENQUEUE_MS, b as projectConversationMessages, bi as proxyVercelSandboxEgressRequest, da as consumeSandboxEgressAuthRequiredSignal, dn as SubscribedReplyReason, ea as getWorkspaceTeamId, ei as createPluginState, er as dismissOpenReviewItems, fa as consumeSandboxEgressPermissionDeniedSignal, ho as resolveRootVisibility, jn as getPluginApiRoutes, jo as getConfigDefaults, jr as collectEventMatchKeys, ma as parseSandboxEgressCredentialToken, mn as getThreadStopDecision, no as readConversationEventPage, oo as readConversationMessageEventSeq, or as searchReviewItems, qr as getDashboardConversationLink, ro as readConversationEventPageAfter, ta as runWithWorkspaceTeamId, ua as clearSandboxEgressSignals, ur as canActOnReviewItem, va as normalizeSandboxEgressTracePropagationDomains, vo as listConversationAnnotations, vr as reviewItemReaderForUser, wa as createPluginEmbedder, wi as resolveBaseUrl, wn as createUserTokenStore, xn as getExperimentalFeatures, xt as hasRunnableConversationWork, yi as isVercelSandboxEgressRequest, za as createPluginLogger, zn as validatePlugins, zr as bindEventAutomationCredentialSubject } from "./projection-0UcUeuzn.js";
3
+ import { d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig, y as getAttachmentStorage } from "./config-Dt3CpG17.js";
4
+ import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-Qo-7xGp1.js";
5
+ import { t as JUNIOR_VERSION } from "./version-i1An1eTS.js";
6
6
  import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
7
- import { C as getSqlExecutor, H as recordGoogleSignIn, I as resolveActorIdentityId, M as withConversationMutationLock, S as getDb, Y as touchConversationDetail, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationEventLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore } from "./viewer-C2PztlYX.js";
8
- import { A as juniorConversations, C as juniorConversationEvents, N as juniorDestinations, c as juniorReviewItems, d as juniorAutomations, h as juniorAgentInvocations, l as juniorAutomationRuns, m as juniorAgentBindings, y as juniorConversationBriefs } from "./executor-CGqJCxgR.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-Cpje_Uic.js";
10
- import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as processWorkspaceSnapshotJob, E as buildSlackReviewItemModal, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as ingestEvent, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, _t as requestAttachmentDeletion, at as reviewItemChangeRecord, bt as stopConversationSession, ct as conversationTurnIdForMessage, dt as recordWebConversationActivity, ft as webActorFromUser, g as publicArtifactHeaders, ht as collectAttachmentGarbage, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, n as executeAgentRun, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as appendAndEnqueueWebMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, xt as recordSubagentEnded, y as lookupSlackUserProfile } from "./agent-runner-h4CDcnDV.js";
7
+ import { C as getSqlExecutor, H as recordGoogleSignIn, I as resolveActorIdentityId, M as withConversationMutationLock, S as getDb, Y as touchConversationDetail, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationEventLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore } from "./viewer-BlpnzZZa.js";
8
+ import { P as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorConversations, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-CyIwHz9r.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-dKOVbR7l.js";
10
+ import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as processWorkspaceSnapshotJob, E as buildSlackReviewItemModal, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as ingestEvent, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, _t as requestAttachmentDeletion, at as reviewItemChangeRecord, bt as stopConversationSession, ct as conversationTurnIdForMessage, dt as recordWebConversationActivity, ft as webActorFromUser, g as publicArtifactHeaders, ht as collectAttachmentGarbage, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, n as executeAgentRun, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as appendAndEnqueueWebMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, xt as recordSubagentEnded, y as lookupSlackUserProfile } from "./agent-runner-Cqr21pOU.js";
11
11
  import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
12
- import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-BAqo7eOH.js";
13
- import { n as getNextRunAtMs } from "./cadence-R7Em4RjE.js";
14
- import { H as conversationBriefSchema, b as conversationSurfaceSchema, f as conversationFeedQuerySchema, k as annotationCard, v as conversationReportStatusSchema } from "./conversation-DNtcULyX.js";
12
+ import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-CW5UW7vL.js";
13
+ import { a as getNextRunAtMs } from "./schedule-BTp__wrw.js";
14
+ import { H as conversationBriefSchema, b as conversationSurfaceSchema, f as conversationFeedQuerySchema, k as annotationCard, v as conversationReportStatusSchema } from "./conversation-DdT7SNar.js";
15
15
  import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
16
- import { S as listPendingAgentInvocationResults, x as listPendingAgentInvocationMailboxAppends } from "./store-nETG4KVg.js";
17
- import { A as renderSlackObjectCard, T as renderTaskInput, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-CVEEx_YD.js";
16
+ import { S as listPendingAgentInvocationResults, x as listPendingAgentInvocationMailboxAppends } from "./store-G3S0kWSD.js";
17
+ import { A as renderSlackObjectCard, T as renderTaskInput, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-D_1SysjC.js";
18
18
  import { h as buttonUserInputField } from "./reporting-window-B-QP9zX1.js";
19
- import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-iMW9Dgo2.js";
20
- import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-CoWqScCC.js";
21
- import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-nu3Xx08K.js";
22
- import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-BIJGJjVh.js";
23
- import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-sIsmIXH7.js";
24
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DXvxEEjq.js";
19
+ import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-Di3omymY.js";
20
+ import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-CHFzrQbS.js";
21
+ import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-ymkEUWe4.js";
22
+ import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-D_GXfcAG.js";
23
+ import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-Zvx_I9Z5.js";
24
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DJG_wrg2.js";
25
25
  import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
26
- import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-LlFnr9-m.js";
27
- import { A as assertNoLegacyAllowedDomains, B as normalizeIncomingSlackThreadId, D as createProductionSlackWebhookServices, E as createProductionConversationWorkOptions, F as recordSkippedConversationMessage, G as startProcessingReaction, H as stopConversationTurn, I as buildSlackInboundMessage, J as ReviewItemActionError, K as stripLeadingBotMention, L as clearSlackPendingReactions, M as isAllowedSignInEmail, N as readEnvList, O as getProductionSlackAdapter, P as resolveAllowedDomains, Q as reviewItemChange, R as isSlackMessageStopped, S as readConversationPendingMessages, T as archiveConversation, U as THREAD_OPTOUT_ACK, V as withNormalizedThreadId, W as bindMessageAuthorIdentityId, X as closeReviewItemsAnsweredByReply, Y as actOnReviewItem, Z as readReviewItemForUser, _ as appendConversationMessageForViewer, b as encodeConversationCursor, ct as getAttachmentStorage, d as readConversationRecordFromSql, dt as GET$4, et as archiveViewerDoneConversations, i as readConversationDetail, j as isAllowedDomain, k as createSlackWebApiStatusSender, n as steerConversationPendingMessagesForViewer, nt as runAutoArchiveSweep, o as markConversationRead, q as parseContent, r as pinConversation, rt as setConversationAutoArchive, t as stopConversationTurnForViewer, u as readConversationFeed, ut as enqueueAgentDispatch, v as createConversationForViewer, x as cancelConversationPendingMessagesForViewer, y as decodeConversationCursor, z as stopSlackThread } from "./stop-DtpBUUJq.js";
28
- import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-BrlvfyIj.js";
29
- import { i as enqueueAgentInvocation, r as endAgentInvocationsOfStoppedWork } from "./work-BM_L0Pv9.js";
30
- import { o as coerceThreadConversationState } from "./thread-state-BDaMl9yd.js";
31
- import { o as unlinkProvider } from "./connections-DjY72_uF.js";
32
- import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-DUrQwccr.js";
26
+ import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-Dct5pheX.js";
27
+ import { $ as reviewItemChange, A as createSlackWebApiStatusSender, B as stopSlackThread, C as readConversationPendingMessages, D as createProductionConversationWorkOptions, E as archiveConversation, F as resolveAllowedDomains, G as bindMessageAuthorIdentityId, H as withNormalizedThreadId, I as recordSkippedConversationMessage, J as parseContent, K as startProcessingReaction, L as buildSlackInboundMessage, M as isAllowedDomain, N as isAllowedSignInEmail, O as createProductionSlackWebhookServices, P as readEnvList, Q as readReviewItemForUser, R as clearSlackPendingReactions, S as cancelConversationPendingMessagesForViewer, U as stopConversationTurn, V as normalizeIncomingSlackThreadId, W as THREAD_OPTOUT_ACK, X as actOnReviewItem, Y as ReviewItemActionError, Z as closeReviewItemsAnsweredByReply, a as readConversationDetail, b as decodeConversationCursor, d as readConversationFeed, dt as GET$4, f as readConversationRecordFromSql, it as setConversationAutoArchive, j as assertNoLegacyAllowedDomains, k as getProductionSlackAdapter, n as steerConversationPendingMessagesForViewer, q as stripLeadingBotMention, r as pinConversation, rt as runAutoArchiveSweep, s as markConversationRead, t as stopConversationTurnForViewer, tt as archiveViewerDoneConversations, ut as enqueueAgentDispatch, v as appendConversationMessageForViewer, x as encodeConversationCursor, y as createConversationForViewer, z as isSlackMessageStopped } from "./stop-BSKRTaRS.js";
28
+ import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-NvndYzCb.js";
29
+ import { i as enqueueAgentInvocation, r as endAgentInvocationsOfStoppedWork } from "./work-BgCW3FDC.js";
30
+ import { o as coerceThreadConversationState } from "./thread-state-D6rNGQu9.js";
31
+ import { o as unlinkProvider } from "./connections-CCHPybZP.js";
32
+ import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-BBPw8dam.js";
33
33
  import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
34
- import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-CYje8WKs.js";
35
- import { t as processConversationWork } from "./worker-2no53G60.js";
36
- import { t as bindMessageAgent } from "./message-BjN5sKad.js";
37
- import { t as bindSpawnAgent } from "./spawn-e7rQs14T.js";
38
- import { t as processPluginTask } from "./task-runner-CwegN45x.js";
34
+ import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-BcOHzXxe.js";
35
+ import { t as processConversationWork } from "./worker-BJz1mwYt.js";
36
+ import { t as bindMessageAgent } from "./message-DFbtOWqv.js";
37
+ import { t as bindSpawnAgent } from "./spawn-D5D2MQdz.js";
38
+ import { t as processPluginTask } from "./task-runner-B65cDumh.js";
39
39
  import { createRequire } from "node:module";
40
40
  import { Hono } from "hono";
41
41
  import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -7435,6 +7435,7 @@ function dashboardHostRoutePaths(dashboard, authenticatedRoutes = []) {
7435
7435
  "/_junior/dashboard/assets/*",
7436
7436
  "/_junior/dashboard/icon-512.png",
7437
7437
  "/_junior/dashboard/manifest.webmanifest",
7438
+ "/_junior/dashboard/sw.js",
7438
7439
  loginPath,
7439
7440
  "/api/health",
7440
7441
  "/api/runtime",
@@ -7452,6 +7453,8 @@ function dashboardHostRoutePaths(dashboard, authenticatedRoutes = []) {
7452
7453
  "/api/code/*",
7453
7454
  "/api/connections",
7454
7455
  "/api/connections/*",
7456
+ "/api/notifications",
7457
+ "/api/notifications/*",
7455
7458
  "/api/stats",
7456
7459
  "/api/conversations",
7457
7460
  "/api/conversations/*",
@@ -1,4 +1,4 @@
1
- import { Wt as extractAssistantText } from "./projection-ii_OYu6z.js";
1
+ import { Wt as extractAssistantText } from "./projection-0UcUeuzn.js";
2
2
  // src/chat/no-reply.ts
3
3
  const NO_REPLY_MARKER = "[[NO_REPLY]]";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { a as resolveLocalScheduleAtMs, i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
2
- import { r as actorIdentitySchema } from "./conversation-DNtcULyX.js";
1
+ import { c as resolveLocalScheduleAtMs, i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-BTp__wrw.js";
2
+ import { r as actorIdentitySchema } from "./conversation-DdT7SNar.js";
3
3
  import * as z from "zod";
4
4
  import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
5
5
  // src/chat/scheduled-automations/schedule-intent.ts
@@ -1,5 +1,5 @@
1
- import { i as getChatConfig } from "./config-DBdBimZ9.js";
2
- import { E as withSpan, m as logInfo, p as logException } from "./logging-DapIaJAi.js";
1
+ import { i as getChatConfig } from "./config-Dt3CpG17.js";
2
+ import { E as withSpan, m as logInfo, p as logException } from "./logging-Qo-7xGp1.js";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
5
5
  import * as z from "zod";
@@ -1,6 +1,6 @@
1
- import { i as completeObject } from "./client-BHgCXeaF.js";
2
- import { U as parseBriefInput, c as conversationDetailReportSchema, u as conversationEventPageSchema, z as briefCodeChangeSchema } from "./conversation-DNtcULyX.js";
3
- import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DI6KCtwb.js";
1
+ import { i as completeObject } from "./client-CMyH5rDz.js";
2
+ import { U as parseBriefInput, c as conversationDetailReportSchema, u as conversationEventPageSchema, z as briefCodeChangeSchema } from "./conversation-DdT7SNar.js";
3
+ import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CCtaGgbI.js";
4
4
  import { CLI_USAGE } from "./cli/run.js";
5
5
  import path from "node:path";
6
6
  import * as z from "zod";
@@ -263,7 +263,7 @@ async function parseRunOptions(argv) {
263
263
  * token.
264
264
  */
265
265
  async function configuredBriefModelId() {
266
- const { botConfig } = await import("./config-DBdBimZ9.js").then((n) => n.r);
266
+ const { botConfig } = await import("./config-Dt3CpG17.js").then((n) => n.r);
267
267
  return botConfig.fastModelId;
268
268
  }
269
269
  function apiUrl(baseUrl, pathname) {
@@ -1,5 +1,5 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { t as createPluginCatalogRuntime } from "./registry-DpjG3yS-.js";
2
+ import { t as createPluginCatalogRuntime } from "./registry-DOnPkI8g.js";
3
3
  // src/chat/plugins/catalog-runtime.ts
4
4
  var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
5
5
  const pluginCatalogRuntime = createPluginCatalogRuntime();
package/dist/cli/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-h4CDcnDV.js";
1
+ import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-Cqr21pOU.js";
2
2
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
3
3
  import path from "node:path";
4
4
  import { createHash, randomUUID } from "node:crypto";
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
99
99
  async function configureLocalChatPlugins(pluginSet) {
100
100
  const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
101
101
  import("../plugins-HYh_JOdw.js").then((n) => n.o),
102
- import("../projection-ii_OYu6z.js").then((n) => n.kn),
103
- import("../catalog-runtime-Cpje_Uic.js").then((n) => n.t),
104
- import("../validation-DXvxEEjq.js").then((n) => n.r),
105
- import("../viewer-C2PztlYX.js").then((n) => n.v)
102
+ import("../projection-0UcUeuzn.js").then((n) => n.kn),
103
+ import("../catalog-runtime-dKOVbR7l.js").then((n) => n.t),
104
+ import("../validation-DJG_wrg2.js").then((n) => n.r),
105
+ import("../viewer-BlpnzZZa.js").then((n) => n.v)
106
106
  ]);
107
107
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
108
108
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -152,18 +152,18 @@ function localDevServerUrl() {
152
152
  async function prepareLocalChatRun(io, pluginSet) {
153
153
  defaultStateAdapterForLocalChat();
154
154
  await configureLocalChatPlugins(pluginSet);
155
- const { setBriefsConfig } = await import("../projection-ii_OYu6z.js").then((n) => n.Vn);
155
+ const { setBriefsConfig } = await import("../projection-0UcUeuzn.js").then((n) => n.Vn);
156
156
  setBriefsConfig({ enabled: true });
157
- const { runLocalAgentTurn } = await import("../runner-Bg9mr2pB.js");
158
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-DVHKrjJP.js");
157
+ const { runLocalAgentTurn } = await import("../runner-CnX_dTKw.js");
158
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BB1gixWo.js");
159
159
  const { createLocalOAuthState } = await import("../oauth-relay-D6xxVywK.js").then((n) => n.t);
160
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-Bd3lb_Wd.js");
161
- const { bindSpawnAgent } = await import("../spawn-e7rQs14T.js").then((n) => n.n);
162
- const { bindMessageAgent } = await import("../message-BjN5sKad.js").then((n) => n.n);
163
- const { createChildConversationWorker } = await import("../result-BrlvfyIj.js").then((n) => n.i);
164
- const { skipInputBeforeConversationStop } = await import("../session-stop-CVEEx_YD.js").then((n) => n.r);
160
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CtxLJmmg.js");
161
+ const { bindSpawnAgent } = await import("../spawn-D5D2MQdz.js").then((n) => n.n);
162
+ const { bindMessageAgent } = await import("../message-DFbtOWqv.js").then((n) => n.n);
163
+ const { createChildConversationWorker } = await import("../result-NvndYzCb.js").then((n) => n.i);
164
+ const { skipInputBeforeConversationStop } = await import("../session-stop-D_1SysjC.js").then((n) => n.r);
165
165
  const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
166
- const { processConversationWork } = await import("../worker-2no53G60.js").then((n) => n.n);
166
+ const { processConversationWork } = await import("../worker-BJz1mwYt.js").then((n) => n.n);
167
167
  let agentRunner;
168
168
  const localConversationWork = createLocalConversationWork(async (message) => {
169
169
  if (!agentRunner) throw new Error("Local agent runner is not ready");
package/dist/cli/check.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-DapIaJAi.js";
2
- import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-DpjG3yS-.js";
3
- import { i as parseSkillFile } from "../skills-DqUUuf4L.js";
1
+ import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-Qo-7xGp1.js";
2
+ import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-DOnPkI8g.js";
3
+ import { i as parseSkillFile } from "../skills-CKyotM4g.js";
4
4
  import path from "node:path";
5
5
  import fs from "node:fs/promises";
6
6
  import { pathToFileURL } from "node:url";